diff --git a/dist/mathlive.js b/dist/mathlive.js index 5cac937ad..52246efc0 100644 --- a/dist/mathlive.js +++ b/dist/mathlive.js @@ -18517,7 +18517,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`, { key: 'ctrl+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, { key: 'cmd+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, { key: 'ctrl+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, - { key: 'cmd+shift[Comma]', ifMode: 'math', command: 'addColumnAfter' }, + { key: 'cmd+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, // Excel keybindings: // shift+space: select entire row, ctrl+space: select an entire column // ctrl+shift++ or ctrl+numpad+ @@ -33166,6 +33166,17 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`, * | `--text-font-family` | The font stack used in text mode | * | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel | * + * ### CSS Parts + * + * The `virtual-keyboard-toggle` CSS part can be used to style the virtual + * keyboard toggle. To use it, define a CSS style with a `::part()` selector + * for example: + * ```css + * math-field::part(virtual-keyboard-toggle) { + * color: red; + * } + * ``` + * * * ### Attributes * diff --git a/dist/mathlive.min.js b/dist/mathlive.min.js index 4c77c597a..a0ad8e6f2 100644 --- a/dist/mathlive.min.js +++ b/dist/mathlive.min.js @@ -1,5 +1,5 @@ /* MathLive 0.57.0 */ -var global,factory;global=this,factory=function(e){function t(e){return Array.isArray(e)}var i={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0],58:[0,.47534,0,0],59:[.12604,.47534,0,0],61:[-.13099,.36866,0,0],63:[0,.69141,0,0],65:[0,.69141,0,0],66:[0,.69141,0,0],67:[0,.69141,0,0],68:[0,.69141,0,0],69:[0,.69141,0,0],70:[.12604,.69141,0,0],71:[0,.69141,0,0],72:[.06302,.69141,0,0],73:[0,.69141,0,0],74:[.12604,.69141,0,0],75:[0,.69141,0,0],76:[0,.69141,0,0],77:[0,.69141,0,0],78:[0,.69141,0,0],79:[0,.69141,0,0],80:[.18906,.69141,0,0],81:[.03781,.69141,0,0],82:[0,.69141,0,0],83:[0,.69141,0,0],84:[0,.69141,0,0],85:[0,.69141,0,0],86:[0,.69141,0,0],87:[0,.69141,0,0],88:[0,.69141,0,0],89:[.18906,.69141,0,0],90:[.12604,.69141,0,0],91:[.24982,.74947,0,0],93:[.24982,.74947,0,0],94:[0,.69141,0,0],97:[0,.47534,0,0],98:[0,.69141,0,0],99:[0,.47534,0,0],100:[0,.62119,0,0],101:[0,.47534,0,0],102:[.18906,.69141,0,0],103:[.18906,.47534,0,0],104:[.18906,.69141,0,0],105:[0,.69141,0,0],106:[0,.69141,0,0],107:[0,.69141,0,0],108:[0,.69141,0,0],109:[0,.47534,0,0],110:[0,.47534,0,0],111:[0,.47534,0,0],112:[.18906,.52396,0,0],113:[.18906,.47534,0,0],114:[0,.47534,0,0],115:[0,.47534,0,0],116:[0,.62119,0,0],117:[0,.47534,0,0],118:[0,.52396,0,0],119:[0,.52396,0,0],120:[.18906,.47534,0,0],121:[.18906,.47534,0,0],122:[.18906,.47534,0,0],8216:[0,.69141,0,0],8217:[0,.69141,0,0],58112:[0,.62119,0,0],58113:[0,.62119,0,0],58114:[.18906,.69141,0,0],58115:[.18906,.69141,0,0],58116:[.18906,.47534,0,0],58117:[0,.69141,0,0],58118:[0,.62119,0,0],58119:[0,.47534,0,0]},"Main-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.13333,.63333,0,0],44:[.19444,.15556,0,0],45:[0,.44444,0,0],46:[0,.15556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.44444,0,0],59:[.19444,.44444,0,0],60:[.08556,.58556,0,0],61:[-.10889,.39111,0,0],62:[.08556,.58556,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,0,0],67:[0,.68611,0,0],68:[0,.68611,0,0],69:[0,.68611,0,0],70:[0,.68611,0,0],71:[0,.68611,0,0],72:[0,.68611,0,0],73:[0,.68611,0,0],74:[0,.68611,0,0],75:[0,.68611,0,0],76:[0,.68611,0,0],77:[0,.68611,0,0],78:[0,.68611,0,0],79:[0,.68611,0,0],80:[0,.68611,0,0],81:[.19444,.68611,0,0],82:[0,.68611,0,0],83:[0,.68611,0,0],84:[0,.68611,0,0],85:[0,.68611,0,0],86:[0,.68611,.01597,0],87:[0,.68611,.01597,0],88:[0,.68611,0,0],89:[0,.68611,.02875,0],90:[0,.68611,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.13444,.03194,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.10903,0],103:[.19444,.44444,.01597,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,0,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.01597,0],119:[0,.44444,.01597,0],120:[0,.44444,0,0],121:[.19444,.44444,.01597,0],122:[0,.44444,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],172:[0,.44444,0,0],176:[0,.69444,0,0],177:[.13333,.63333,0,0],184:[.17014,0,0,0],198:[0,.68611,0,0],215:[.13333,.63333,0,0],216:[.04861,.73472,0,0],223:[0,.69444,0,0],230:[0,.44444,0,0],247:[.13333,.63333,0,0],248:[.09722,.54167,0,0],305:[0,.44444,0,0],338:[0,.68611,0,0],339:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.59611,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.68611,0,0],916:[0,.68611,0,0],920:[0,.68611,0,0],923:[0,.68611,0,0],926:[0,.68611,0,0],928:[0,.68611,0,0],931:[0,.68611,0,0],933:[0,.68611,0,0],934:[0,.68611,0,0],936:[0,.68611,0,0],937:[0,.68611,0,0],8211:[0,.44444,.03194,0],8212:[0,.44444,.03194,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8242:[0,.55556,0,0],8407:[0,.72444,.15486,0],8463:[0,.69444,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,0],8472:[.19444,.44444,0,0],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.10889,.39111,0,0],8593:[.19444,.69444,0,0],8594:[-.10889,.39111,0,0],8595:[.19444,.69444,0,0],8596:[-.10889,.39111,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8636:[-.10889,.39111,0,0],8637:[-.10889,.39111,0,0],8640:[-.10889,.39111,0,0],8641:[-.10889,.39111,0,0],8656:[-.10889,.39111,0,0],8657:[.19444,.69444,0,0],8658:[-.10889,.39111,0,0],8659:[.19444,.69444,0,0],8660:[-.10889,.39111,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.06389,0],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68611,0,0],8712:[.08556,.58556,0,0],8715:[.08556,.58556,0,0],8722:[.13333,.63333,0,0],8723:[.13333,.63333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.02778,.47222,0,0],8728:[-.02639,.47361,0,0],8729:[-.02639,.47361,0,0],8730:[.18,.82,0,0],8733:[0,.44444,0,0],8734:[0,.44444,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.12778,0],8764:[-.10889,.39111,0,0],8768:[.19444,.69444,0,0],8771:[.00222,.50222,0,0],8776:[.02444,.52444,0,0],8781:[.00222,.50222,0,0],8801:[.00222,.50222,0,0],8804:[.19667,.69667,0,0],8805:[.19667,.69667,0,0],8810:[.08556,.58556,0,0],8811:[.08556,.58556,0,0],8826:[.08556,.58556,0,0],8827:[.08556,.58556,0,0],8834:[.08556,.58556,0,0],8835:[.08556,.58556,0,0],8838:[.19667,.69667,0,0],8839:[.19667,.69667,0,0],8846:[0,.55556,0,0],8849:[.19667,.69667,0,0],8850:[.19667,.69667,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.13333,.63333,0,0],8854:[.13333,.63333,0,0],8855:[.13333,.63333,0,0],8856:[.13333,.63333,0,0],8857:[.13333,.63333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8900:[-.02639,.47361,0,0],8901:[-.02639,.47361,0,0],8902:[-.02778,.47222,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.13889,.36111,0,0],8995:[-.13889,.36111,0,0],9651:[.19444,.69444,0,0],9657:[-.02778,.47222,0,0],9661:[.19444,.69444,0,0],9667:[-.02778,.47222,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10815:[0,.68611,0,0],10927:[.19667,.69667,0,0],10928:[.19667,.69667,0,0],57376:[.19444,.69444,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0],34:[0,.69444,.07939,0],35:[.19444,.69444,.06833,0],37:[.05556,.75,.12861,0],38:[0,.69444,.08528,0],39:[0,.69444,.12945,0],40:[.25,.75,.15806,0],41:[.25,.75,.03306,0],42:[0,.75,.14333,0],43:[.10333,.60333,.03306,0],44:[.19444,.14722,0,0],45:[0,.44444,.02611,0],46:[0,.14722,0,0],47:[.25,.75,.15806,0],48:[0,.64444,.13167,0],49:[0,.64444,.13167,0],50:[0,.64444,.13167,0],51:[0,.64444,.13167,0],52:[.19444,.64444,.13167,0],53:[0,.64444,.13167,0],54:[0,.64444,.13167,0],55:[.19444,.64444,.13167,0],56:[0,.64444,.13167,0],57:[0,.64444,.13167,0],58:[0,.44444,.06695,0],59:[.19444,.44444,.06695,0],61:[-.10889,.39111,.06833,0],63:[0,.69444,.11472,0],64:[0,.69444,.09208,0],65:[0,.68611,0,0],66:[0,.68611,.0992,0],67:[0,.68611,.14208,0],68:[0,.68611,.09062,0],69:[0,.68611,.11431,0],70:[0,.68611,.12903,0],71:[0,.68611,.07347,0],72:[0,.68611,.17208,0],73:[0,.68611,.15681,0],74:[0,.68611,.145,0],75:[0,.68611,.14208,0],76:[0,.68611,0,0],77:[0,.68611,.17208,0],78:[0,.68611,.17208,0],79:[0,.68611,.09062,0],80:[0,.68611,.0992,0],81:[.19444,.68611,.09062,0],82:[0,.68611,.02559,0],83:[0,.68611,.11264,0],84:[0,.68611,.12903,0],85:[0,.68611,.17208,0],86:[0,.68611,.18625,0],87:[0,.68611,.18625,0],88:[0,.68611,.15681,0],89:[0,.68611,.19803,0],90:[0,.68611,.14208,0],91:[.25,.75,.1875,0],93:[.25,.75,.09972,0],94:[0,.69444,.06709,0],95:[.31,.13444,.09811,0],97:[0,.44444,.09426,0],98:[0,.69444,.07861,0],99:[0,.44444,.05222,0],100:[0,.69444,.10861,0],101:[0,.44444,.085,0],102:[.19444,.69444,.21778,0],103:[.19444,.44444,.105,0],104:[0,.69444,.09426,0],105:[0,.69326,.11387,0],106:[.19444,.69326,.1672,0],107:[0,.69444,.11111,0],108:[0,.69444,.10861,0],109:[0,.44444,.09426,0],110:[0,.44444,.09426,0],111:[0,.44444,.07861,0],112:[.19444,.44444,.07861,0],113:[.19444,.44444,.105,0],114:[0,.44444,.11111,0],115:[0,.44444,.08167,0],116:[0,.63492,.09639,0],117:[0,.44444,.09426,0],118:[0,.44444,.11111,0],119:[0,.44444,.11111,0],120:[0,.44444,.12583,0],121:[.19444,.44444,.105,0],122:[0,.44444,.13889,0],126:[.35,.34444,.11472,0],163:[0,.69444,0,0],168:[0,.69444,.11473,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68611,.11431,0],216:[.04861,.73472,.09062,0],223:[.19444,.69444,.09736,0],230:[0,.44444,.085,0],248:[.09722,.54167,.09458,0],305:[0,.44444,.09426,0],338:[0,.68611,.11431,0],339:[0,.44444,.085,0],567:[.19444,.44444,.04611,0],710:[0,.69444,.06709,0],711:[0,.63194,.08271,0],713:[0,.59444,.10444,0],714:[0,.69444,.08528,0],715:[0,.69444,0,0],728:[0,.69444,.10333,0],729:[0,.69444,.12945,0],730:[0,.69444,0,0],732:[0,.69444,.11472,0],733:[0,.69444,.11472,0],915:[0,.68611,.12903,0],916:[0,.68611,0,0],920:[0,.68611,.09062,0],923:[0,.68611,0,0],926:[0,.68611,.15092,0],928:[0,.68611,.17208,0],931:[0,.68611,.11431,0],933:[0,.68611,.10778,0],934:[0,.68611,.05632,0],936:[0,.68611,.10778,0],937:[0,.68611,.0992,0],8211:[0,.44444,.09811,0],8212:[0,.44444,.09811,0],8216:[0,.69444,.12945,0],8217:[0,.69444,.12945,0],8220:[0,.69444,.16772,0],8221:[0,.69444,.07939,0]},"Main-Italic":{33:[0,.69444,.12417,0],34:[0,.69444,.06961,0],35:[.19444,.69444,.06616,0],37:[.05556,.75,.13639,0],38:[0,.69444,.09694,0],39:[0,.69444,.12417,0],40:[.25,.75,.16194,0],41:[.25,.75,.03694,0],42:[0,.75,.14917,0],43:[.05667,.56167,.03694,0],44:[.19444,.10556,0,0],45:[0,.43056,.02826,0],46:[0,.10556,0,0],47:[.25,.75,.16194,0],48:[0,.64444,.13556,0],49:[0,.64444,.13556,0],50:[0,.64444,.13556,0],51:[0,.64444,.13556,0],52:[.19444,.64444,.13556,0],53:[0,.64444,.13556,0],54:[0,.64444,.13556,0],55:[.19444,.64444,.13556,0],56:[0,.64444,.13556,0],57:[0,.64444,.13556,0],58:[0,.43056,.0582,0],59:[.19444,.43056,.0582,0],61:[-.13313,.36687,.06616,0],63:[0,.69444,.1225,0],64:[0,.69444,.09597,0],65:[0,.68333,0,0],66:[0,.68333,.10257,0],67:[0,.68333,.14528,0],68:[0,.68333,.09403,0],69:[0,.68333,.12028,0],70:[0,.68333,.13305,0],71:[0,.68333,.08722,0],72:[0,.68333,.16389,0],73:[0,.68333,.15806,0],74:[0,.68333,.14028,0],75:[0,.68333,.14528,0],76:[0,.68333,0,0],77:[0,.68333,.16389,0],78:[0,.68333,.16389,0],79:[0,.68333,.09403,0],80:[0,.68333,.10257,0],81:[.19444,.68333,.09403,0],82:[0,.68333,.03868,0],83:[0,.68333,.11972,0],84:[0,.68333,.13305,0],85:[0,.68333,.16389,0],86:[0,.68333,.18361,0],87:[0,.68333,.18361,0],88:[0,.68333,.15806,0],89:[0,.68333,.19383,0],90:[0,.68333,.14528,0],91:[.25,.75,.1875,0],93:[.25,.75,.10528,0],94:[0,.69444,.06646,0],95:[.31,.12056,.09208,0],97:[0,.43056,.07671,0],98:[0,.69444,.06312,0],99:[0,.43056,.05653,0],100:[0,.69444,.10333,0],101:[0,.43056,.07514,0],102:[.19444,.69444,.21194,0],103:[.19444,.43056,.08847,0],104:[0,.69444,.07671,0],105:[0,.65536,.1019,0],106:[.19444,.65536,.14467,0],107:[0,.69444,.10764,0],108:[0,.69444,.10333,0],109:[0,.43056,.07671,0],110:[0,.43056,.07671,0],111:[0,.43056,.06312,0],112:[.19444,.43056,.06312,0],113:[.19444,.43056,.08847,0],114:[0,.43056,.10764,0],115:[0,.43056,.08208,0],116:[0,.61508,.09486,0],117:[0,.43056,.07671,0],118:[0,.43056,.10764,0],119:[0,.43056,.10764,0],120:[0,.43056,.12042,0],121:[.19444,.43056,.08847,0],122:[0,.43056,.12292,0],126:[.35,.31786,.11585,0],163:[0,.69444,0,0],168:[0,.66786,.10474,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,.12028,0],216:[.04861,.73194,.09403,0],223:[.19444,.69444,.10514,0],230:[0,.43056,.07514,0],248:[.09722,.52778,.09194,0],305:[0,.43056,0,.02778],338:[0,.68333,.12028,0],339:[0,.43056,.07514,0],567:[.19444,.43056,0,.08334],710:[0,.69444,.06646,0],711:[0,.62847,.08295,0],713:[0,.56167,.10333,0],714:[0,.69444,.09694,0],715:[0,.69444,0,0],728:[0,.69444,.10806,0],729:[0,.66786,.11752,0],730:[0,.69444,0,0],732:[0,.66786,.11585,0],733:[0,.69444,.1225,0],915:[0,.68333,.13305,0],916:[0,.68333,0,0],920:[0,.68333,.09403,0],923:[0,.68333,0,0],926:[0,.68333,.15294,0],928:[0,.68333,.16389,0],931:[0,.68333,.12028,0],933:[0,.68333,.11111,0],934:[0,.68333,.05986,0],936:[0,.68333,.11111,0],937:[0,.68333,.10257,0],8211:[0,.43056,.09208,0],8212:[0,.43056,.09208,0],8216:[0,.69444,.12417,0],8217:[0,.69444,.12417,0],8220:[0,.69444,.1685,0],8221:[0,.69444,.06961,0],8463:[0,.68889,0,0]},"Main-Regular":{32:[0,0,0,0],33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.19444,.10556,0,0],45:[0,.43056,0,0],46:[0,.10556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.43056,0,0],59:[.19444,.43056,0,0],60:[.0391,.5391,0,0],61:[-.13313,.36687,0,0],62:[.0391,.5391,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68333,0,0],66:[0,.68333,0,0],67:[0,.68333,0,0],68:[0,.68333,0,0],69:[0,.68333,0,0],70:[0,.68333,0,0],71:[0,.68333,0,0],72:[0,.68333,0,0],73:[0,.68333,0,0],74:[0,.68333,0,0],75:[0,.68333,0,0],76:[0,.68333,0,0],77:[0,.68333,0,0],78:[0,.68333,0,0],79:[0,.68333,0,0],80:[0,.68333,0,0],81:[.19444,.68333,0,0],82:[0,.68333,0,0],83:[0,.68333,0,0],84:[0,.68333,0,0],85:[0,.68333,0,0],86:[0,.68333,.01389,0],87:[0,.68333,.01389,0],88:[0,.68333,0,0],89:[0,.68333,.025,0],90:[0,.68333,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.12056,.02778,0],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,0],100:[0,.69444,0,0],101:[0,.43056,0,0],102:[0,.69444,.07778,0],103:[.19444,.43056,.01389,0],104:[0,.69444,0,0],105:[0,.66786,0,0],106:[.19444,.66786,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.19444,.43056,0,0],113:[.19444,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.61508,0,0],117:[0,.43056,0,0],118:[0,.43056,.01389,0],119:[0,.43056,.01389,0],120:[0,.43056,0,0],121:[.19444,.43056,.01389,0],122:[0,.43056,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.31786,0,0],160:[0,0,0,0],167:[.19444,.69444,0,0],168:[0,.66786,0,0],172:[0,.43056,0,0],176:[0,.69444,0,0],177:[.08333,.58333,0,0],182:[.19444,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,0,0],215:[.08333,.58333,0,0],216:[.04861,.73194,0,0],223:[0,.69444,0,0],230:[0,.43056,0,0],247:[.08333,.58333,0,0],248:[.09722,.52778,0,0],305:[0,.43056,0,0],338:[0,.68333,0,0],339:[0,.43056,0,0],567:[.19444,.43056,0,0],710:[0,.69444,0,0],711:[0,.62847,0,0],713:[0,.56778,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.66786,0,0],730:[0,.69444,0,0],732:[0,.66786,0,0],733:[0,.69444,0,0],915:[0,.68333,0,0],916:[0,.68333,0,0],920:[0,.68333,0,0],923:[0,.68333,0,0],926:[0,.68333,0,0],928:[0,.68333,0,0],931:[0,.68333,0,0],933:[0,.68333,0,0],934:[0,.68333,0,0],936:[0,.68333,0,0],937:[0,.68333,0,0],8211:[0,.43056,.02778,0],8212:[0,.43056,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8230:[0,.12,0,0],8242:[0,.55556,0,0],8407:[0,.71444,.15382,0],8463:[0,.68889,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,.11111],8472:[.19444,.43056,0,.11111],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.13313,.36687,0,0],8593:[.19444,.69444,0,0],8594:[-.13313,.36687,0,0],8595:[.19444,.69444,0,0],8596:[-.13313,.36687,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8614:[.011,.511,0,0],8617:[.011,.511,0,0],8618:[.011,.511,0,0],8636:[-.13313,.36687,0,0],8637:[-.13313,.36687,0,0],8640:[-.13313,.36687,0,0],8641:[-.13313,.36687,0,0],8652:[.011,.671,0,0],8656:[-.13313,.36687,0,0],8657:[.19444,.69444,0,0],8658:[-.13313,.36687,0,0],8659:[.19444,.69444,0,0],8660:[-.13313,.36687,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.05556,.08334],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68333,0,0],8712:[.0391,.5391,0,0],8715:[.0391,.5391,0,0],8722:[.08333,.58333,0,0],8723:[.08333,.58333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.03472,.46528,0,0],8728:[-.05555,.44445,0,0],8729:[-.05555,.44445,0,0],8730:[.2,.8,0,0],8733:[0,.43056,0,0],8734:[0,.43056,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.11111,0],8764:[-.13313,.36687,0,0],8768:[.19444,.69444,0,0],8771:[-.03625,.46375,0,0],8773:[-.022,.589,0,0],8776:[-.01688,.48312,0,0],8781:[-.03625,.46375,0,0],8784:[-.133,.67,0,0],8801:[-.03625,.46375,0,0],8804:[.13597,.63597,0,0],8805:[.13597,.63597,0,0],8810:[.0391,.5391,0,0],8811:[.0391,.5391,0,0],8826:[.0391,.5391,0,0],8827:[.0391,.5391,0,0],8834:[.0391,.5391,0,0],8835:[.0391,.5391,0,0],8838:[.13597,.63597,0,0],8839:[.13597,.63597,0,0],8846:[0,.55556,0,0],8849:[.13597,.63597,0,0],8850:[.13597,.63597,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.08333,.58333,0,0],8854:[.08333,.58333,0,0],8855:[.08333,.58333,0,0],8856:[.08333,.58333,0,0],8857:[.08333,.58333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8872:[.249,.75,0,0],8900:[-.05555,.44445,0,0],8901:[-.05555,.44445,0,0],8902:[-.03472,.46528,0,0],8904:[.005,.505,0,0],8942:[.03,.9,0,0],8943:[-.19,.31,0,0],8945:[-.1,.82,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.14236,.35764,0,0],8995:[-.14236,.35764,0,0],9136:[.244,.744,0,0],9137:[.244,.744,0,0],9651:[.19444,.69444,0,0],9657:[-.03472,.46528,0,0],9661:[.19444,.69444,0,0],9667:[-.03472,.46528,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10222:[.244,.744,0,0],10223:[.244,.744,0,0],10229:[.011,.511,0,0],10230:[.011,.511,0,0],10231:[.011,.511,0,0],10232:[.024,.525,0,0],10233:[.024,.525,0,0],10234:[.024,.525,0,0],10236:[.011,.511,0,0],10815:[0,.68333,0,0],10927:[.13597,.63597,0,0],10928:[.13597,.63597,0,0],57376:[.19444,.69444,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0],66:[0,.68611,.04835,0],67:[0,.68611,.06979,0],68:[0,.68611,.03194,0],69:[0,.68611,.05451,0],70:[0,.68611,.15972,0],71:[0,.68611,0,0],72:[0,.68611,.08229,0],73:[0,.68611,.07778,0],74:[0,.68611,.10069,0],75:[0,.68611,.06979,0],76:[0,.68611,0,0],77:[0,.68611,.11424,0],78:[0,.68611,.11424,0],79:[0,.68611,.03194,0],80:[0,.68611,.15972,0],81:[.19444,.68611,0,0],82:[0,.68611,.00421,0],83:[0,.68611,.05382,0],84:[0,.68611,.15972,0],85:[0,.68611,.11424,0],86:[0,.68611,.25555,0],87:[0,.68611,.15972,0],88:[0,.68611,.07778,0],89:[0,.68611,.25555,0],90:[0,.68611,.06979,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[.19444,.69444,.11042,0],103:[.19444,.44444,.03704,0],104:[0,.69444,0,0],105:[0,.69326,0,0],106:[.19444,.69326,.0622,0],107:[0,.69444,.01852,0],108:[0,.69444,.0088,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,.03704,0],114:[0,.44444,.03194,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.03704,0],119:[0,.44444,.02778,0],120:[0,.44444,0,0],121:[.19444,.44444,.03704,0],122:[0,.44444,.04213,0],915:[0,.68611,.15972,0],916:[0,.68611,0,0],920:[0,.68611,.03194,0],923:[0,.68611,0,0],926:[0,.68611,.07458,0],928:[0,.68611,.08229,0],931:[0,.68611,.05451,0],933:[0,.68611,.15972,0],934:[0,.68611,0,0],936:[0,.68611,.11653,0],937:[0,.68611,.04835,0],945:[0,.44444,0,0],946:[.19444,.69444,.03403,0],947:[.19444,.44444,.06389,0],948:[0,.69444,.03819,0],949:[0,.44444,0,0],950:[.19444,.69444,.06215,0],951:[.19444,.44444,.03704,0],952:[0,.69444,.03194,0],953:[0,.44444,0,0],954:[0,.44444,0,0],955:[0,.69444,0,0],956:[.19444,.44444,0,0],957:[0,.44444,.06898,0],958:[.19444,.69444,.03021,0],959:[0,.44444,0,0],960:[0,.44444,.03704,0],961:[.19444,.44444,0,0],962:[.09722,.44444,.07917,0],963:[0,.44444,.03704,0],964:[0,.44444,.13472,0],965:[0,.44444,.03704,0],966:[.19444,.44444,0,0],967:[.19444,.44444,0,0],968:[.19444,.69444,.03704,0],969:[0,.44444,.03704,0],977:[0,.69444,0,0],981:[.19444,.69444,0,0],982:[0,.44444,.03194,0],1009:[.19444,.44444,0,0],1013:[0,.44444,0,0]},"Math-Italic":{65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"SansSerif-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.11667,.61667,0,0],44:[.10556,.13056,0,0],45:[0,.45833,0,0],46:[0,.13056,0,0],47:[.25,.75,0,0],48:[0,.69444,0,0],49:[0,.69444,0,0],50:[0,.69444,0,0],51:[0,.69444,0,0],52:[0,.69444,0,0],53:[0,.69444,0,0],54:[0,.69444,0,0],55:[0,.69444,0,0],56:[0,.69444,0,0],57:[0,.69444,0,0],58:[0,.45833,0,0],59:[.10556,.45833,0,0],61:[-.09375,.40625,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.10556,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01528,0],87:[0,.69444,.01528,0],88:[0,.69444,0,0],89:[0,.69444,.0275,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.10833,.03056,0],97:[0,.45833,0,0],98:[0,.69444,0,0],99:[0,.45833,0,0],100:[0,.69444,0,0],101:[0,.45833,0,0],102:[0,.69444,.07639,0],103:[.19444,.45833,.01528,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.45833,0,0],110:[0,.45833,0,0],111:[0,.45833,0,0],112:[.19444,.45833,0,0],113:[.19444,.45833,0,0],114:[0,.45833,.01528,0],115:[0,.45833,0,0],116:[0,.58929,0,0],117:[0,.45833,0,0],118:[0,.45833,.01528,0],119:[0,.45833,.01528,0],120:[0,.45833,0,0],121:[.19444,.45833,.01528,0],122:[0,.45833,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],176:[0,.69444,0,0],180:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.45833,0,0],567:[.19444,.45833,0,0],710:[0,.69444,0,0],711:[0,.63542,0,0],713:[0,.63778,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.45833,.03056,0],8212:[0,.45833,.03056,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"SansSerif-Italic":{33:[0,.69444,.05733,0],34:[0,.69444,.00316,0],35:[.19444,.69444,.05087,0],36:[.05556,.75,.11156,0],37:[.05556,.75,.03126,0],38:[0,.69444,.03058,0],39:[0,.69444,.07816,0],40:[.25,.75,.13164,0],41:[.25,.75,.02536,0],42:[0,.75,.11775,0],43:[.08333,.58333,.02536,0],44:[.125,.08333,0,0],45:[0,.44444,.01946,0],46:[0,.08333,0,0],47:[.25,.75,.13164,0],48:[0,.65556,.11156,0],49:[0,.65556,.11156,0],50:[0,.65556,.11156,0],51:[0,.65556,.11156,0],52:[0,.65556,.11156,0],53:[0,.65556,.11156,0],54:[0,.65556,.11156,0],55:[0,.65556,.11156,0],56:[0,.65556,.11156,0],57:[0,.65556,.11156,0],58:[0,.44444,.02502,0],59:[.125,.44444,.02502,0],61:[-.13,.37,.05087,0],63:[0,.69444,.11809,0],64:[0,.69444,.07555,0],65:[0,.69444,0,0],66:[0,.69444,.08293,0],67:[0,.69444,.11983,0],68:[0,.69444,.07555,0],69:[0,.69444,.11983,0],70:[0,.69444,.13372,0],71:[0,.69444,.11983,0],72:[0,.69444,.08094,0],73:[0,.69444,.13372,0],74:[0,.69444,.08094,0],75:[0,.69444,.11983,0],76:[0,.69444,0,0],77:[0,.69444,.08094,0],78:[0,.69444,.08094,0],79:[0,.69444,.07555,0],80:[0,.69444,.08293,0],81:[.125,.69444,.07555,0],82:[0,.69444,.08293,0],83:[0,.69444,.09205,0],84:[0,.69444,.13372,0],85:[0,.69444,.08094,0],86:[0,.69444,.1615,0],87:[0,.69444,.1615,0],88:[0,.69444,.13372,0],89:[0,.69444,.17261,0],90:[0,.69444,.11983,0],91:[.25,.75,.15942,0],93:[.25,.75,.08719,0],94:[0,.69444,.0799,0],95:[.35,.09444,.08616,0],97:[0,.44444,.00981,0],98:[0,.69444,.03057,0],99:[0,.44444,.08336,0],100:[0,.69444,.09483,0],101:[0,.44444,.06778,0],102:[0,.69444,.21705,0],103:[.19444,.44444,.10836,0],104:[0,.69444,.01778,0],105:[0,.67937,.09718,0],106:[.19444,.67937,.09162,0],107:[0,.69444,.08336,0],108:[0,.69444,.09483,0],109:[0,.44444,.01778,0],110:[0,.44444,.01778,0],111:[0,.44444,.06613,0],112:[.19444,.44444,.0389,0],113:[.19444,.44444,.04169,0],114:[0,.44444,.10836,0],115:[0,.44444,.0778,0],116:[0,.57143,.07225,0],117:[0,.44444,.04169,0],118:[0,.44444,.10836,0],119:[0,.44444,.10836,0],120:[0,.44444,.09169,0],121:[.19444,.44444,.10836,0],122:[0,.44444,.08752,0],126:[.35,.32659,.08826,0],168:[0,.67937,.06385,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,.04169,0],567:[.19444,.44444,.04169,0],710:[0,.69444,.0799,0],711:[0,.63194,.08432,0],713:[0,.60889,.08776,0],714:[0,.69444,.09205,0],715:[0,.69444,0,0],728:[0,.69444,.09483,0],729:[0,.67937,.07774,0],730:[0,.69444,0,0],732:[0,.67659,.08826,0],733:[0,.69444,.09205,0],915:[0,.69444,.13372,0],916:[0,.69444,0,0],920:[0,.69444,.07555,0],923:[0,.69444,0,0],926:[0,.69444,.12816,0],928:[0,.69444,.08094,0],931:[0,.69444,.11983,0],933:[0,.69444,.09031,0],934:[0,.69444,.04603,0],936:[0,.69444,.09031,0],937:[0,.69444,.08293,0],8211:[0,.44444,.08616,0],8212:[0,.44444,.08616,0],8216:[0,.69444,.07816,0],8217:[0,.69444,.07816,0],8220:[0,.69444,.14205,0],8221:[0,.69444,.00316,0]},"SansSerif-Regular":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.125,.08333,0,0],45:[0,.44444,0,0],46:[0,.08333,0,0],47:[.25,.75,0,0],48:[0,.65556,0,0],49:[0,.65556,0,0],50:[0,.65556,0,0],51:[0,.65556,0,0],52:[0,.65556,0,0],53:[0,.65556,0,0],54:[0,.65556,0,0],55:[0,.65556,0,0],56:[0,.65556,0,0],57:[0,.65556,0,0],58:[0,.44444,0,0],59:[.125,.44444,0,0],61:[-.13,.37,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.125,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01389,0],87:[0,.69444,.01389,0],88:[0,.69444,0,0],89:[0,.69444,.025,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.09444,.02778,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.06944,0],103:[.19444,.44444,.01389,0],104:[0,.69444,0,0],105:[0,.67937,0,0],106:[.19444,.67937,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,.01389,0],115:[0,.44444,0,0],116:[0,.57143,0,0],117:[0,.44444,0,0],118:[0,.44444,.01389,0],119:[0,.44444,.01389,0],120:[0,.44444,0,0],121:[.19444,.44444,.01389,0],122:[0,.44444,0,0],126:[.35,.32659,0,0],168:[0,.67937,0,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.60889,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.67937,0,0],730:[0,.69444,0,0],732:[0,.67659,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.44444,.02778,0],8212:[0,.44444,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"Script-Regular":{65:[0,.7,.22925,0],66:[0,.7,.04087,0],67:[0,.7,.1689,0],68:[0,.7,.09371,0],69:[0,.7,.18583,0],70:[0,.7,.13634,0],71:[0,.7,.17322,0],72:[0,.7,.29694,0],73:[0,.7,.19189,0],74:[.27778,.7,.19189,0],75:[0,.7,.31259,0],76:[0,.7,.19189,0],77:[0,.7,.15981,0],78:[0,.7,.3525,0],79:[0,.7,.08078,0],80:[0,.7,.08078,0],81:[0,.7,.03305,0],82:[0,.7,.06259,0],83:[0,.7,.19189,0],84:[0,.7,.29087,0],85:[0,.7,.25815,0],86:[0,.7,.27523,0],87:[0,.7,.27523,0],88:[0,.7,.26006,0],89:[0,.7,.2939,0],90:[0,.7,.24037,0]},"Size1-Regular":{40:[.35001,.85,0,0],41:[.35001,.85,0,0],47:[.35001,.85,0,0],91:[.35001,.85,0,0],92:[.35001,.85,0,0],93:[.35001,.85,0,0],123:[.35001,.85,0,0],125:[.35001,.85,0,0],710:[0,.72222,0,0],732:[0,.72222,0,0],770:[0,.72222,0,0],771:[0,.72222,0,0],8214:[-99e-5,.601,0,0],8593:[1e-5,.6,0,0],8595:[1e-5,.6,0,0],8657:[1e-5,.6,0,0],8659:[1e-5,.6,0,0],8719:[.25001,.75,0,0],8720:[.25001,.75,0,0],8721:[.25001,.75,0,0],8730:[.35001,.85,0,0],8739:[-.00599,.606,0,0],8741:[-.00599,.606,0,0],8747:[.30612,.805,.19445,0],8748:[.306,.805,.19445,0],8749:[.306,.805,.19445,0],8750:[.30612,.805,.19445,0],8896:[.25001,.75,0,0],8897:[.25001,.75,0,0],8898:[.25001,.75,0,0],8899:[.25001,.75,0,0],8968:[.35001,.85,0,0],8969:[.35001,.85,0,0],8970:[.35001,.85,0,0],8971:[.35001,.85,0,0],9168:[-99e-5,.601,0,0],10216:[.35001,.85,0,0],10217:[.35001,.85,0,0],10752:[.25001,.75,0,0],10753:[.25001,.75,0,0],10754:[.25001,.75,0,0],10756:[.25001,.75,0,0],10758:[.25001,.75,0,0]},"Size2-Regular":{40:[.65002,1.15,0,0],41:[.65002,1.15,0,0],47:[.65002,1.15,0,0],91:[.65002,1.15,0,0],92:[.65002,1.15,0,0],93:[.65002,1.15,0,0],123:[.65002,1.15,0,0],125:[.65002,1.15,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8719:[.55001,1.05,0,0],8720:[.55001,1.05,0,0],8721:[.55001,1.05,0,0],8730:[.65002,1.15,0,0],8747:[.86225,1.36,.44445,0],8748:[.862,1.36,.44445,0],8749:[.862,1.36,.44445,0],8750:[.86225,1.36,.44445,0],8896:[.55001,1.05,0,0],8897:[.55001,1.05,0,0],8898:[.55001,1.05,0,0],8899:[.55001,1.05,0,0],8968:[.65002,1.15,0,0],8969:[.65002,1.15,0,0],8970:[.65002,1.15,0,0],8971:[.65002,1.15,0,0],10216:[.65002,1.15,0,0],10217:[.65002,1.15,0,0],10752:[.55001,1.05,0,0],10753:[.55001,1.05,0,0],10754:[.55001,1.05,0,0],10756:[.55001,1.05,0,0],10758:[.55001,1.05,0,0]},"Size3-Regular":{40:[.95003,1.45,0,0],41:[.95003,1.45,0,0],47:[.95003,1.45,0,0],91:[.95003,1.45,0,0],92:[.95003,1.45,0,0],93:[.95003,1.45,0,0],123:[.95003,1.45,0,0],125:[.95003,1.45,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8730:[.95003,1.45,0,0],8968:[.95003,1.45,0,0],8969:[.95003,1.45,0,0],8970:[.95003,1.45,0,0],8971:[.95003,1.45,0,0],10216:[.95003,1.45,0,0],10217:[.95003,1.45,0,0]},"Size4-Regular":{40:[1.25003,1.75,0,0],41:[1.25003,1.75,0,0],47:[1.25003,1.75,0,0],91:[1.25003,1.75,0,0],92:[1.25003,1.75,0,0],93:[1.25003,1.75,0,0],123:[1.25003,1.75,0,0],125:[1.25003,1.75,0,0],710:[0,.825,0,0],732:[0,.825,0,0],770:[0,.825,0,0],771:[0,.825,0,0],8730:[1.25003,1.75,0,0],8968:[1.25003,1.75,0,0],8969:[1.25003,1.75,0,0],8970:[1.25003,1.75,0,0],8971:[1.25003,1.75,0,0],9115:[.64502,1.155,0,0],9116:[1e-5,.6,0,0],9117:[.64502,1.155,0,0],9118:[.64502,1.155,0,0],9119:[1e-5,.6,0,0],9120:[.64502,1.155,0,0],9121:[.64502,1.155,0,0],9122:[-99e-5,.601,0,0],9123:[.64502,1.155,0,0],9124:[.64502,1.155,0,0],9125:[-99e-5,.601,0,0],9126:[.64502,1.155,0,0],9127:[1e-5,.9,0,0],9128:[.65002,1.15,0,0],9129:[.90001,0,0,0],9130:[0,.3,0,0],9131:[1e-5,.9,0,0],9132:[.65002,1.15,0,0],9133:[.90001,0,0,0],9143:[.88502,.915,0,0],10216:[1.25003,1.75,0,0],10217:[1.25003,1.75,0,0],57344:[-.00499,.605,0,0],57345:[-.00499,.605,0,0],57680:[0,.12,0,0],57681:[0,.12,0,0],57682:[0,.12,0,0],57683:[0,.12,0,0]},"Typewriter-Regular":{32:[0,0,0,0],33:[0,.61111,0,0],34:[0,.61111,0,0],35:[0,.61111,0,0],36:[.08333,.69444,0,0],37:[.08333,.69444,0,0],38:[0,.61111,0,0],39:[0,.61111,0,0],40:[.08333,.69444,0,0],41:[.08333,.69444,0,0],42:[0,.52083,0,0],43:[-.08056,.53055,0,0],44:[.13889,.125,0,0],45:[-.08056,.53055,0,0],46:[0,.125,0,0],47:[.08333,.69444,0,0],48:[0,.61111,0,0],49:[0,.61111,0,0],50:[0,.61111,0,0],51:[0,.61111,0,0],52:[0,.61111,0,0],53:[0,.61111,0,0],54:[0,.61111,0,0],55:[0,.61111,0,0],56:[0,.61111,0,0],57:[0,.61111,0,0],58:[0,.43056,0,0],59:[.13889,.43056,0,0],60:[-.05556,.55556,0,0],61:[-.19549,.41562,0,0],62:[-.05556,.55556,0,0],63:[0,.61111,0,0],64:[0,.61111,0,0],65:[0,.61111,0,0],66:[0,.61111,0,0],67:[0,.61111,0,0],68:[0,.61111,0,0],69:[0,.61111,0,0],70:[0,.61111,0,0],71:[0,.61111,0,0],72:[0,.61111,0,0],73:[0,.61111,0,0],74:[0,.61111,0,0],75:[0,.61111,0,0],76:[0,.61111,0,0],77:[0,.61111,0,0],78:[0,.61111,0,0],79:[0,.61111,0,0],80:[0,.61111,0,0],81:[.13889,.61111,0,0],82:[0,.61111,0,0],83:[0,.61111,0,0],84:[0,.61111,0,0],85:[0,.61111,0,0],86:[0,.61111,0,0],87:[0,.61111,0,0],88:[0,.61111,0,0],89:[0,.61111,0,0],90:[0,.61111,0,0],91:[.08333,.69444,0,0],92:[.08333,.69444,0,0],93:[.08333,.69444,0,0],94:[0,.61111,0,0],95:[.09514,0,0,0],96:[0,.61111,0,0],97:[0,.43056,0,0],98:[0,.61111,0,0],99:[0,.43056,0,0],100:[0,.61111,0,0],101:[0,.43056,0,0],102:[0,.61111,0,0],103:[.22222,.43056,0,0],104:[0,.61111,0,0],105:[0,.61111,0,0],106:[.22222,.61111,0,0],107:[0,.61111,0,0],108:[0,.61111,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.22222,.43056,0,0],113:[.22222,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.55358,0,0],117:[0,.43056,0,0],118:[0,.43056,0,0],119:[0,.43056,0,0],120:[0,.43056,0,0],121:[.22222,.43056,0,0],122:[0,.43056,0,0],123:[.08333,.69444,0,0],124:[.08333,.69444,0,0],125:[.08333,.69444,0,0],126:[0,.61111,0,0],127:[0,.61111,0,0],160:[0,0,0,0],176:[0,.61111,0,0],184:[.19445,0,0,0],305:[0,.43056,0,0],567:[.22222,.43056,0,0],711:[0,.56597,0,0],713:[0,.56555,0,0],714:[0,.61111,0,0],715:[0,.61111,0,0],728:[0,.61111,0,0],730:[0,.61111,0,0],770:[0,.61111,0,0],771:[0,.61111,0,0],776:[0,.61111,0,0],915:[0,.61111,0,0],916:[0,.61111,0,0],920:[0,.61111,0,0],923:[0,.61111,0,0],926:[0,.61111,0,0],928:[0,.61111,0,0],931:[0,.61111,0,0],933:[0,.61111,0,0],934:[0,.61111,0,0],936:[0,.61111,0,0],937:[0,.61111,0,0],8216:[0,.61111,0,0],8217:[0,.61111,0,0],8242:[0,.61111,0,0],9251:[.11111,.21944,0,0]}};const a=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,o={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]},r=.04,s=.111,n=.166,l=.1,c={" ":" ","​":" ","Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"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 d(e,t){let o=e.charCodeAt(0);e[0]in c?o=c[e[0]].charCodeAt(0):a.test(e[0])&&(o=77);const r=i[t][o];return r?{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3]}:11034===o?{defaultMetrics:!0,depth:0,height:1,italic:0,skew:0}:{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0}}function m(e,t,i=NaN){if("string"==typeof e){const i=e.match(/([-+]?[0-9.]*)\s*([a-zA-Z]+)/);i?(e=parseFloat(i[1]),t=i[2].toLowerCase()):e=parseFloat(e)}const a={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:10,bp:1.00375,dd:1238/1157,pc:12,in:72.27,mu:10/18}[t]||1;if(isFinite(i)){const t=Math.pow(10,i);return Math.round(e/10*a*t)/t}return e/10*a}function p(e,t){return m(e,t)*(4/3)*10}class u{constructor(e,t,i,a){this.id=e,this.size=t,this.cramped=a,this.sizeMultiplier=i,this.metrics=Object.keys(o).reduce((e,t)=>({...e,[t]:o[t][this.size]}),{}),this.metrics.emPerEx=o.xHeight[this.size]/o.quad[this.size]}sup(){return h[[4,5,4,5,6,7,6,7][this.id]]}sub(){return h[[5,5,5,5,7,7,7,7][this.id]]}fracNum(){return h[[2,3,4,5,6,7,6,7][this.id]]}fracDen(){return h[[3,3,5,5,7,7,7,7][this.id]]}cramp(){return h[[1,1,3,3,5,5,7,7][this.id]]}cls(){return["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"][this.size]}adjustTo(e){let t=[["","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-textstyle displaystyle textstyle","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-scriptstyle textstyle displaystyle","reset-scriptstyle textstyle","","reset-scriptstyle scriptscriptstyle"],["reset-scriptscriptstyle textstyle displaystyle","reset-scriptscriptstyle textstyle","reset-scriptscriptstyle scriptstyle",""]][this.size][e.size];return t.length>0&&(t=" "+t),t}isTight(){return this.size>=2}}const h={0:new u(0,0,1,!1),1:new u(1,0,1,!0),2:new u(2,1,1,!1),3:new u(3,1,1,!0),4:new u(4,2,.7,!1),5:new u(5,2,.7,!0),6:new u(6,3,.5,!1),7:new u(7,3,.5,!0)};h.displaystyle=h[0],h.textstyle=h[2],h.scriptstyle=h[4],h.scriptscriptstyle=h[6];class f{constructor(e){var t,i,a,o,r,s;this.macros=null!==(t=e.macros)&&void 0!==t?t:{},this.atomIdsSettings=e.atomIdsSettings,this.mathstyle=null!==(i=e.mathstyle)&&void 0!==i?i:h.displaystyle,this.letterShapeStyle=null!==(a=e.letterShapeStyle)&&void 0!==a?a:"tex",this.size=null!==(o=e.size)&&void 0!==o?o:"size5",this.parentMathstyle=null!==(r=e.parentMathstyle)&&void 0!==r?r:this.mathstyle,this.parentSize=null!==(s=e.parentSize)&&void 0!==s?s:this.size,this.opacity=e.opacity,this.smartFence=e.smartFence}clone(e={}){const t=new f(this);return void 0!==e&&(Object.assign(t,e),e.mathstyle?(t.parentMathstyle=this.mathstyle,t.parentSize=this.size,"string"==typeof e.mathstyle&&(t.mathstyle=h[e.mathstyle])):t.mathstyle=this.mathstyle),t}setMathstyle(e){e&&"auto"!==e&&(this.mathstyle=h[e])}cramp(){return this.clone({mathstyle:this.mathstyle.cramp()})}sup(){return this.clone({mathstyle:this.mathstyle.sup()})}sub(){return this.clone({mathstyle:this.mathstyle.sub()})}}const g={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"],xleftarrow:[["leftarrow"],1.469,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"],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]},y={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34]},b={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",widetilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",widetilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",widetilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",widetilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};function v(e,t){const i=[];let a,o=[];return e.forEach(e=>{if("first"!==e.type){let r;"variant"===t?(r=e.variant,e.variantStyle&&"up"!==e.variantStyle&&(r+="-"+e.variantStyle)):r=e[t],r!==a?(o.length>0&&i.push(o),o=[e],a=r):o.push(e)}}),o.length>0&&i.push(o),i}const x={};function k(e,t){x[e]={...t}}const _=["","mord","mbin","mop","mrel","mopen","mclose","mpunct","minner","spacing","first","command","error","placeholder","textord","none"];function w(e){return _.includes(e)}const M={"mord+mop":3,"mord+mbin":4,"mord+mrel":5,"mord+minner":3,"mop+mord":3,"mop+mop":3,"mop+mbin":5,"mop+minner":3,"mbin+mord":4,"mbin+mop":4,"mbin+mopen":4,"mbin+minner":4,"mrel+mord":5,"mrel+mop":5,"mrel+mopen":5,"mrel+minner":5,"mclose+mop":3,"mclose+mbin":4,"mclose+mrel":5,"mclose+minner":3,"mpunct+mord":3,"mpunct+mop":3,"mpunct+mbin":4,"mpunct+mrel":5,"mpunct+mopen":3,"mpunct+mpunct":3,"mpunct+minner":3},z={"mord+mop":3,"mop+mord":3,"mop+mop":3,"mclose+mop":3,"minner+mop":3};function S(e){if("string"==typeof e)return e;if("number"==typeof e)return Number(Math.ceil(100*e)/100).toString();if(void 0===e)return"";if(t(e)){let t="";for(const i of e)t+=S(i);return t}return""}class L{constructor(e,i="",a=""){this.classes=i,t(e)?this.children=[].concat(...e):"string"==typeof e?this.body=e:e&&"object"==typeof e&&(this.children=[e]),this.type=a,this.style=null,this.updateDimensions()}updateDimensions(){let e=0,t=0,i=1;this.children?this.children.forEach(a=>{a.height>e&&(e=a.height),a.depth>t&&(t=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}):"string"==typeof this.body&&(e=1.2,t=0),this.height=e,this.depth=t,this.maxFontSize=i}selected(e){e&&!/ML__selected/.test(this.classes)&&(this.classes.length>0&&(this.classes+=" "),this.classes+="ML__selected"),!e&&/ML__selected/.test(this.classes)&&(this.classes=this.classes.replace("ML__selected","")),this.children&&this.children.forEach(t=>t.selected(e))}applyStyle(e){if(!e)return;if(e.color&&("none"!==e.color?this.setStyle("color",e.color):this.setStyle("color","")),e.backgroundColor&&("none"!==e.backgroundColor?this.setStyle("background-color",e.backgroundColor):this.setStyle("background-color","")),e.cssClass&&(this.classes+=" "+e.cssClass),!this.body)return;const t=function(e,t){var i;return(null===(i=x[t.mode])||void 0===i?void 0:i.applyStyle)?x[t.mode].applyStyle(e,t):""}(this,e);if(this.body&&t){this.maxFontSize={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49}[e.fontSize]||1,this.height=0,this.depth=0,this.skew=0,this.italic=0;for(let e=0;e0&&(this.style||(this.style={}),this.style[e]=i)}setTop(e){e&&0!==e&&(this.style||(this.style={}),this.style.top=S(e)+"em",this.height-=e,this.depth+=e)}setLeft(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-left"]=S(e)+"em")}setRight(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-right"]=S(e)+"em")}setWidth(e){e&&0!==e&&(this.style||(this.style={}),this.style.width=S(e)+"em")}toMarkup(e=1,t=1){var i,a,o,r,s;let n="",l=this.body||"";if(this.children){let e="none";for(let o=0;o`${e}="${this.attributes[e]}"`).join(" "));const t=this.classes.split(" ");t.push(null!==(o={command:"ML__command",placeholder:"ML__placeholder",error:"ML__error"}[this.type])&&void 0!==o?o:""),this.caret&&"command"===this.type&&t.push("ML__command-caret");let i="";if(i=t.length>1?t.filter((e,t,i)=>e.length>0&&i.indexOf(e)===t).join(" "):t[0],i.length>0&&(n+=` class="${i}"`),e&&((null===(r=this.style)||void 0===r?void 0:r["margin-left"])?this.style["margin-left"]=S(parseFloat(this.style["margin-left"])+e/18)+"em":(this.style||(this.style={}),this.style["margin-left"]=S(e/18)+"em")),this.style){let e="";const t=/ML__selected/.test(this.classes);for(const i in this.style)Object.prototype.hasOwnProperty.call(this.style,i)&&("background-color"===i&&t||(e+=i+":"+this.style[i]+";"));e.length>0&&(n+=' style="'+e+'"')}n+=">",this.svgBody?n+=function(e){if(y[e]){const t=y[e][2];return``}const[t,i,a,o]=g[e];let r,s;const n=a/1e3;3===t.length?(r=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],s=["xMinYMin","xMidYMin","xMaxYMin"]):2===t.length?(r=["slice-1-of-2","slice-2-of-2"],s=["xMinYMin","xMaxYMin"]):(r=["slice-1-of-1"],s=[o]);const l=t.map((e,t)=>``).join("");return`${l}`}(this.svgBody):this.svgOverlay?(n+='",n+=""):n+=l,n+=""}else n="";return this.caret&&"command"!==this.type&&("text"===this.caret?n+='':n+=''),n}tryCoalesceWith(e){if(this.type!==e.type)return!1;if("error"===this.type||"placeholder"===this.type||"command"===this.type)return!1;if(this.svgBody||!this.body)return!1;if(e.svgBody||!e.body)return!1;const t=this.children&&this.children.length>0,i=e.children&&e.children.length>0;if(t||i)return!1;if((this.style?this.style.length:0)!==(e.style?e.style.length:0))return!1;const a=this.classes.trim().replace(/\s+/g," ").split(" "),o=e.classes.trim().replace(/\s+/g," ").split(" ");if(a.length!==o.length)return!1;a.sort(),o.sort();for(let e=0;e=e.length)return"none";const n=null!==(a=null===(i=e[t-1])||void 0===i?void 0:i.type)&&void 0!==a?a:"none",l=null!==(r=null===(o=e[t+1])||void 0===o?void 0:o.type)&&void 0!==r?r:"none";let c=null!==(s=e[t].type)&&void 0!==s?s:"none";return"first"===c?"none":"textord"===c?"mord":("mbin"===c&&(/first|none|mrel|mpunct|mopen|mbin|mop/.test(n)||/none|mrel|mpunct|mclose/.test(l))&&(c="mord"),c)}function C(e){return e?t(e)?e.reduce((e,t)=>Math.max(e,t.height),0):e.height:0}function $(e){return e?t(e)?e.reduce((e,t)=>Math.max(e,t.depth),0):e.depth:0}function q(e){return e?t(e)?e[e.length-1].italic:e.italic:0}function D(e,i="",a=""){if(t(e)){const t=e.filter(e=>Boolean(e));return 1===t.length?new L(t[0],i,a):new L(t,i,a)}return new L(e,i,a)}function T(e,t,i="",a=""){const o=new L(t,i,a),r=d(t,e);return o.height=r.height,o.depth=r.depth,o.skew=r.skew,o.italic=r.italic,o.setRight(o.italic),o}function K(e,i="",a=""){const o=D("","ML__strut");let r,s;return o.setStyle("height",C(e),"em"),0!==$(e)&&(r=D("","ML__strut--bottom"),r.setStyle("height",C(e)+$(e),"em"),r.setStyle("vertical-align",-$(e),"em")),s=t(e)?[o,r,...e]:[o,r,e],D(s,i,a)}function E(e,t,i,a,o){o=o||"";const r=N(t,(o+=" style-wrap ")+i.adjustTo(a));r.type=e;const s=a.sizeMultiplier/i.sizeMultiplier;return r.height*=s,r.depth*=s,r.maxFontSize=a.sizeMultiplier,r}function N(e,t="",i=""){const a=new L(e,t,i);let o=1;return o=e instanceof L?e.maxFontSize:e.reduce((e,t)=>Math.max(e,t.maxFontSize),o),a.height*=o,a.depth*=o,a}function B(e,i,a="shift",o=0){let r=0,s=0;a=a||"shift";for(let e=0;e0?"em":""),a.attributes={"aria-hidden":"true"}),"size5"!==e.size?new L(a,"fontsize-ensurer reset-"+e.size+" size5"):0!==i?a:null}(e,n),c=[];s=r;for(const e of i)if("number"==typeof e)s+=e;else if(e instanceof L){const t=D([l,e]);t.setTop(-e.depth-s),c.push(t),s+=e.height+e.depth}const d=D(c,"vlist");return d.depth=Math.max(r,$(d)||0),d.height=Math.max(-s,C(d)||0),d}function O(e){const t=new L(null);return t.svgBody=e,t.height=function(e){return g[e]?g[e][2]/1e3:y[e][2]}(e)/2,t.depth=t.height,t}const F={},P={"<":"<",">":">",o:"o","&":"\\&","{":"\\{","}":"\\}","[":"\\lbrack","]":"\\rbrack",":":"\\colon"," ":"~","¬":"\\neg","·":"\\cdot","¼":"\\frac{1}{4}","½":"\\frac{1}{2}","¾":"\\frac{3}{4}","⁰":"^{0}","ⁱ":"^{i}","¹":"^{1}","²":"^{2}","³":"^{3}","†":"\\dagger","‡":"\\ddagger","…":"\\ldots","⁴":"^{4}","⁵":"^{5}","⁶":"^{6}","⁷":"^{7}","⁸":"^{8}","⁹":"^{9}","⁺":"^{+}","⁻":"^{-}","⁼":"^{=}","ⁿ":"^{n}","₀":"_{0}","₁":"_{1}","₂":"_{2}","₃":"_{3}","₄":"_{4}","₅":"_{5}","₆":"_{6}","₇":"_{7}","₈":"_{8}","₉":"_{9}","₊":"_{+}","₋":"_{-}","₌":"_{=}","ₐ":"_{a}","ₑ":"_{e}","ₒ":"_{o}","ₓ":"_{x}","′":"\\prime","'":"\\prime","←":"\\gets","→":"\\to","△":"\\triangle","▽":"\\triangledown","∋":"\\owns","∗":"\\ast","∣":"\\vert","∥":"\\Vert","∧":"\\land","∨":"\\lor","⋅":"\\cdot","⋈":"\\bowtie","≠":"\\ne","≤":"\\le","≥":"\\ge","⊥":"\\bot","⟷":"\\biconditional","⟸":"\\impliedby","⟹":"\\implies","ℂ":"\\C","ℕ":"\\N","ℙ":"\\P","ℚ":"\\Q","ℝ":"\\R","ℤ":"\\Z"},R={},I={},H={iff:"\\;⟺\\;",nicefrac:"^{#1}\\!\\!/\\!_{#2}",bra:"\\mathinner{\\langle{#1}|}",ket:"\\mathinner{|{#1}\\rangle}",braket:"\\mathinner{\\langle{#1}\\rangle}",set:"\\mathinner{\\lbrace #1 \\rbrace}",Bra:"\\left\\langle #1\\right|",Ket:"\\left|#1\\right\\rangle",Braket:"\\left\\langle{#1}\\right\\rangle",Set:"\\left\\lbrace #1 \\right\\rbrace",rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}"},V={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},W={"\\#":"#","\\&":"&","\\$":"$","\\%":"%","\\_":"_","\\euro":"€","\\maltese":"✠","\\{":"{","\\}":"}","\\nobreakspace":" ","\\ldots":"…","\\textellipsis":"…","\\backslash":"\\","`":"‘","'":"’","``":"“","''":"”","\\degree":"°","\\textasciicircum":"^","\\textasciitilde":"~","\\textasteriskcentered":"*","\\textbackslash":"\\","\\textbraceleft":"{","\\textbraceright":"}","\\textbullet":"•","\\textdollar":"$","\\textsterling":"£","\\textdagger":"†","\\textdaggerdbl":"‡","–":"–","—":"—","‘":"‘","’":"’","“":"“","”":"”",'"':"”","\\ss":"ß","\\ae":"æ","\\oe":"œ","\\AE":"Æ","\\OE":"Œ","\\O":"Ø","\\i":"ı","\\j":"ȷ","\\aa":"å","\\AA":"Å"},U=/[a-zA-Z0-9!@*()-=+{}[\]\\';:?/.,~<>`|'$%#&^_" ]/,j="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("\\p{Letter}","u"),X="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[0-9a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("[0-9\\p{Letter}]","u");function G(e,t,i="mord",a=""){F[e]={type:i,variant:a,value:t},P[t]||a||(P[t]=e),W[e]=t}function Z(e,t){for(let i=e;i<=t;i++){const e=String.fromCodePoint(i);G(e,e)}}function Y(e,t){if("math"===e)return P[t]||t;if("text"===e){let e=Object.keys(W).find(e=>W[e]===t);if(!e){const i=t.codePointAt(0).toString(16);e="^".repeat(i.length)+i}return e}return t}const J={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Q=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function ee(e,t,i){if(!/[A-Za-z0-9]/.test(e))return e;if(!t&&!i)return e;const a=e.codePointAt(0);for(let e=0;e=Q[e].offset&&a120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const i in J)if(Object.prototype.hasOwnProperty.call(J,i)&&J[i]===e){e=null!==(t=i.codePointAt(0))&&void 0!==t?t:0;break}for(let t=0;t=Q[t].start&&e=1;)a.params.push({isOptional:!1,type:"math"}),o-=1}}}else"math"===t?a=F[e]:W[e]?a={value:W[e]}:"text"===t&&(a={value:e});return!a||"mord"!==a.type||"f"!==a.value&&"g"!==a.value&&"h"!==a.value||(a.isFunction=!0),a}function ne(e){if(e.length<=1)return[];const t=[];for(const i in R)Object.prototype.hasOwnProperty.call(R,i)&&i.startsWith(e)&&!R[i].infix&&t.push({match:i,frequency:R[i].frequency});for(const i in F)Object.prototype.hasOwnProperty.call(F,i)&&i.startsWith(e)&&t.push({match:i,frequency:F[i].frequency});return t.sort((e,t)=>e.frequency===t.frequency?e.match.length-t.match.length:(t.frequency||0)-(e.frequency||0)),t}function le(e){let t="auto";const i=e.match(/:([^=]+)/);return i&&(t=i[1].trim()),t}function ce(e){if(!e)return[];let t=[],i=e.split("]");if("["===i[0].charAt(0)){t.push({isOptional:!0,type:le(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(ce(i[e]))}else if(i=e.split("}"),"{"===i[0].charAt(0)){t.push({isOptional:!1,type:le(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(ce(i[e]))}return t}function de(e){let t="",i=!0;return e.forEach(e=>{"string"==typeof e.body?t+=e.body:i=!1}),i?t:""}function me(e,t,i,a=!1){"string"==typeof e&&(e=[e]);const o={tabular:a,params:ce(t),parser:i};for(const t of e)I[t]=o}function pe(e,t,i){me(e,t,i,!0)}function ue(e,t,i,a,o){"string"==typeof e&&(e=[e]),i||(i={});const r={params:ce(t),mode:i.mode,infix:Boolean(i.infix),parse:a,emit:o};e.forEach(e=>{R["\\"+e]=r})}const he={acute:"ˊ",grave:"ˋ",dot:"˙",ddot:"¨",mathring:"˚",tilde:"~",bar:"ˉ",breve:"˘",check:"ˇ",hat:"^",vec:"⃗"};ue(Object.keys(he),"{body:auto}",null,(function(e,t){return{type:"accent",accent:he[e.slice(1)],limits:"accent",skipBoundary:!0,body:t[0]}})),ue(["widehat","widecheck","widetilde"],"{body:auto}",null,(e,t)=>{const i=de(t[0]);return{type:"accent",svgAccent:e.slice(1)+(i.length>5?"4":["1","1","2","2","3","3"][i.length]),limits:"accent",skipBoundary:!0,body:t[0]}}),ue("utilde","{body:auto}",null,(e,t)=>{const i=de(t[0]),a="widetilde"+(i.length>5?"4":["1","1","2","2","3","3"][i.length]);return{type:"overunder",body:t[0],svgBelow:a,skipBoundary:!0}},(e,t,i,a)=>`\\utilde{${a(i,i.body)}}`),ue("^","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"}[t[0]]||"^"})),ue("`","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"}[t[0]]||"`"})),ue("'","{:string}",{},(function(e,t){return{type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"á",e:"é",i:"í",o:"ó",u:"ú",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú"}[t[0]]||"^"}})),ue("~","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{n:"ñ",N:"Ñ",a:"ã",o:"õ",A:"Ã",O:"Õ"}[t[0]]||"´"})),ue("c","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{c:"ç",C:"Ç"}[t[0]]||""})),ue("enclose","{notation:string}[style:string]{body:auto}",null,(e,t)=>{var i;const a={type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"auto",captureSelection:!0,body:t[2]};if(t[1]){const e=t[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of e){const e=t.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(e)a.strokeWidth=p(e[1],"px"),isFinite(a.strokeWidth)||(a.strokeWidth=1),a.strokeStyle=e[2],a.strokeColor=e[3];else{const e=t.match(/\s*([a-z]*)\s*=\s*"(.*)"/);e&&("mathbackground"===e[1]?a.backgroundcolor=e[2]:"mathcolor"===e[1]?a.strokeColor=e[2]:"padding"===e[1]?a.padding=p(e[2],"px"):"shadow"===e[1]&&(a.shadow=e[2]))}}"dashed"===a.strokeStyle?a.svgStrokeStyle="5,5":"dotted"===a.strokeStyle&&(a.svgStrokeStyle="1,5")}return a.borderStyle=a.strokeWidth+"px "+a.strokeStyle+" "+a.strokeColor,a.notation={},(null!==(i=t[0])&&void 0!==i?i:"").split(/[, ]/).filter(e=>e.length>0).forEach(e=>{a.notation[e.toLowerCase()]=!0}),a.notation.updiagonalarrow&&(a.notation.updiagonalstrike=!1),a.notation.box&&(a.notation.left=!1,a.notation.right=!1,a.notation.bottom=!1,a.notation.top=!1),a}),ue("cancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0},body:t[0]}})),ue("bcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{downdiagonalstrike:!0},body:t[0]}})),ue("xcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0,downdiagonalstrike:!0},body:t[0]}})),me("math","",()=>({mathstyle:"textstyle"})),me("displaymath","",(function(){return{mathstyle:"displaystyle"}})),pe("array","{columns:colspec}",(e,t)=>({colFormat:t[0],mathstyle:"textstyle"})),pe(["equation","equation","subequations"],"",()=>({colFormat:[{align:"c"}]})),pe("multline","",(function(){return{colFormat:[{align:"m"}]}})),pe(["align","align*","aligned","eqnarray"],"",(e,t,i)=>{let a=0;for(const e of i)a=Math.max(a,e.length);const o=[{gap:0},{align:"r"},{gap:0},{align:"l"}];let r=2;for(;r({colFormat:[{align:"r"},{align:"l"}]})),pe(["gather","gathered"],"",()=>({colFormat:[{gap:.25},{align:"c"},{gap:0}],jot:.3})),pe(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","smallmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*","smallmatrix*"],"[columns:colspec]",(e,t)=>{var i;const a={mathstyle:"textstyle"};switch(e){case"pmatrix":case"pmatrix*":a.leftDelim="(",a.rightDelim=")";break;case"bmatrix":case"bmatrix*":a.leftDelim="[",a.rightDelim="]";break;case"Bmatrix":case"Bmatrix*":a.leftDelim="\\lbrace",a.rightDelim="\\rbrace";break;case"vmatrix":case"vmatrix*":a.leftDelim="\\vert",a.rightDelim="\\vert";break;case"Vmatrix":case"Vmatrix*":a.leftDelim="\\Vert",a.rightDelim="\\Vert";break;case"smallmatrix":case"smallmatrix*":a.mathstyle="scriptstyle";break;case"matrix":case"matrix*":a.leftDelim=".",a.rightDelim="."}return a.colFormat=null!==(i=t[0])&&void 0!==i?i:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}],a}),pe("cases","",()=>({arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",colFormat:[{align:"l"},{gap:1},{align:"l"}]})),me("center","",(function(){return{colFormat:[{align:"c"}]}})),ue(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overbrace","overlinesegment","overgroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgAbove:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),ue(["underrightarrow","underleftarrow","underleftrightarrow","underbrace","underlinesegment","undergroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgBelow:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),ue(["xrightarrow","xleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","xLeftrightarrow","xrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xrightleftarrows","xrightequilibrium","xleftequilibrium"],"[:auto]{:auto}",null,(e,t)=>{let i=t[1];return 0===(null==i?void 0:i.length)&&(i=null),{type:"overunder",mathtype:"mrel",svgBody:e.slice(1),overscript:i,underscript:t[0]}},(e,t,i,a)=>e+(void 0!==i.underscript?`[${a(i,i.underscript)}]`:"")+`{${a(i,i.overscript)}}`),ue(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","coth","ctg","cth","cotg","csc","cosec","deg","dim","exp","hom","inf","ker","lg","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main",variantStyle:"up"}})),ue(["liminf","limsup"],"",null,e=>({type:"mop",limits:"limits",isSymbol:!1,body:{"\\liminf":"lim inf","\\limsup":"lim sup"}[e],variant:"main"})),ue(["lim","mod"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,body:e.slice(1),variant:"main"}})),ue(["det","max","min"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main"}})),ue("sqrt","[index:auto]{radicand:auto}",null,(e,t)=>({type:"surd",body:t[1],index:t[0]}),(e,t,i,a)=>{let o="";return void 0!==i.index&&(o+=`[${a(i,i.index)}]`),o+=`{${a(i,i.body)}}`,e+o}),ue(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{numerator}{denominator}",null,(e,t)=>{const i={type:"genfrac",numer:t[0],denom:t[1],mathstyle:"auto"};switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":case"\\cfrac":i.hasBarLine=!0;break;case"\\\\atopfrac":i.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i.hasBarLine=!1,i.leftDelim="(",i.rightDelim=")"}switch(e){case"\\dfrac":case"\\dbinom":i.mathstyle="displaystyle";break;case"\\tfrac":case"\\tbinom":i.mathstyle="textstyle"}return"\\cfrac"===e&&(i.continuousFraction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),ue(["over","atop","choose"],"",{infix:!0},(e,t)=>{const i=t[0],a=t[1];let o=!1,r=null,s=null;switch(e){case"\\atop":break;case"\\over":o=!0;break;case"\\choose":o=!1,r="(",s=")";break;default:throw new Error("Unrecognized genfrac command")}return{type:"genfrac",numer:i,denom:a,hasBarLine:o,leftDelim:r,rightDelim:s,mathstyle:"auto"}},(e,t,i,a)=>`{${a(i,i.numer)}${e} ${a(i,i.denom)}}`),ue("pdiff","{numerator}{denominator}",null,(e,t)=>({type:"genfrac",numer:t[0],denom:t[1],numerPrefix:"∂",denomPrefix:"∂",hasBarLine:!0,leftDelim:null,rightDelim:null,mathstyle:"auto"}),(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),ue(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","smallint","intop"],"",null,e=>({type:"mop",limits:"auto",isSymbol:!0,variant:"main",body:{coprod:"∐",bigvee:"⋁",bigwedge:"⋀",biguplus:"⨄",bigcap:"⋂",bigcup:"⋃",intop:"∫",prod:"∏",sum:"∑",bigotimes:"⨂",bigoplus:"⨁",bigodot:"⨀",bigsqcup:"⨆",smallint:"∫"}[e.slice(1)]}));const fe={int:"∫",iint:"∬",iiint:"∭",oint:"∮",oiint:"∯",oiiint:"∰",intclockwise:"∱",varointclockwise:"∲",ointctrclockwise:"∳",intctrclockwise:"⨑",sqcup:"⊔",sqcap:"⊓",uplus:"⊎",wr:"≀",amalg:"⨿",Cap:"⋒",Cup:"⋓",doublecap:"⋒",doublecup:"⋓"};ue(Object.keys(fe),"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!0,body:fe[e.slice(1)],variant:{"⋒":"ams","⋓":"ams"}[fe[e.slice(1)]]}})),ue(["Re","Im"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:{"\\Re":"ℜ","\\Im":"ℑ"}[e],variant:"fraktur"}})),ue("middle","{:delim}",null,(function(e,t){return{type:"delim",delim:t[0]}}));const ge={m0:"#3f3d99",m1:"#993d71",m2:"#998b3d",m3:"#3d9956",m4:"#3d5a99",m5:"#993d90",m6:"#996d3d",m7:"#43993d",m8:"#3d7999",m9:"#843d99"},ye=["#d35d60","#7293cb","#e1974d","#84bb5d","#9066a7","#aD6a58","#f5a4ce","#fff590","#212121","#818787","#d4d5d2","#ffffff"],be=["#cc2428","#3769b1","#da7e30","#409852","#6b4c9a","#922426","#e7298a","#ffe907","#000000","#525055","#adafaa","#ffffff"],ve={apricot:"#FBB982",aquamarine:"#00B5BE",bittersweet:"#C04F17",black:"#221E1F",blue:"#2D2F92",bluegreen:"#00B3B8",blueviolet:"#473992",brickred:"#B6321C",brown:"#792500",burntorange:"#F7921D",cadetblue:"#74729A",carnationpink:"#F282B4",cerulean:"#00A2E3",cornflowerblue:"#41B0E4",cyan:"#00AEEF",dandelion:"#FDBC42",darkorchid:"#A4538A",emerald:"#00A99D",forestgreen:"#009B55",fuchsia:"#8C368C",goldenrod:"#FFDF42",gray:"#949698",green:"#00A64F",greenyellow:"#DFE674",junglegreen:"#00A99A",lavender:"#F49EC4",limegreen:"#8DC73E",magenta:"#EC008C",mahogany:"#A9341F",maroon:"#AF3235",melon:"#F89E7B",midnightblue:"#006795",mulberry:"#A93C93",navyblue:"#006EB8",olivegreen:"#3C8031",orange:"#F58137",orangered:"#ED135A",orchid:"#AF72B0",peach:"#F7965A",periwinkle:"#7977B8",pinegreen:"#008B72",plum:"#92268F",processblue:"#00B0F0",purple:"#99479B",rawsienna:"#974006",red:"#ED1B23",redorange:"#F26035",redviolet:"#A1246B",rhodamine:"#EF559F",royalblue:"#0071BC",royalpurple:"#613F99",rubinered:"#ED017D",salmon:"#F69289",seagreen:"#3FBC9D",sepia:"#671800",skyblue:"#46C5DD",springgreen:"#C6DC67",tan:"#DA9D76",tealblue:"#00AEB3",thistle:"#D883B7",turquoise:"#00B4CE",violet:"#58429B",violetred:"#EF58A0",white:"#FFFFFF",wildstrawberry:"#EE2967",yellow:"#FFF200",yellowgreen:"#98CC70",yelloworange:"#FAA21A"};function xe(e){var t;const i=e.toLowerCase().split("!");let a,o,r,s=255,n=255,l=255,c=-1;const d=i.length>0&&"-"===i[0].charAt(0);d&&(i[0]=i[0].slice(1));for(let e=0;e=0&&(s=(1-c)*s+c*a,n=(1-c)*n+c*o,l=(1-c)*l+c*r,c=-1),e+1=0&&(s=c*s+(1-c)*a,n=c*n+(1-c)*o,l=c*l+(1-c)*r),d&&(s=255-s,n=255-n,l=255-l),"#"+("00"+Math.round(s).toString(16)).slice(-2)+("00"+Math.round(n).toString(16)).slice(-2)+("00"+Math.round(l).toString(16)).slice(-2)}function ke(e){let t=e.toUpperCase();for(const e in ve)if(ve[e]===t){t=e;break}for(const e in ge)if(ge[e]===t){t=e;break}return t}ue("ensuremath","{:math}",{},(e,t)=>({type:"group",mode:"math",body:t[0],skipBoundary:!0,latexOpen:"\\ensuremath{",latexClose:"}"}),(e,t,i,a)=>a(i,i.body)),ue("color","{:color}",{},(e,t)=>({color:t[0]})),ue("textcolor","{:color}{content:auto*}",{},(e,t)=>({color:t[0]})),ue("boxed","{content:math}",null,(e,t)=>({type:"box",framecolor:"black",skipBoundary:!0,body:t[0]})),ue("colorbox","{background-color:string}{content:auto}",{},(e,t)=>({type:"box",backgroundcolor:xe(t[0]),skipBoundary:!0,body:t[1],verbatimBackgroundcolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimBackgroundcolor||ke(i.backgroundcolor)}}{${a(i,i.body)}}`),ue("fcolorbox","{frame-color:string}{background-color:string}{content:auto}",{},(e,t)=>({type:"box",framecolor:xe(t[0]),backgroundcolor:xe(t[1]),skipBoundary:!0,body:t[2],verbatimBackgroundcolor:t[1],verbatimFramecolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimFramecolor||ke(i.framecolor)}{${i.verbatimBackgroundcolor||ke(i.backgroundcolor)}}{${a(i,i.body)}}`),ue("bbox","[:bbox]{body:auto}",{},(e,t)=>{if(t[0]){const e=t[0];return{type:"box",padding:e.padding,border:e.border,backgroundcolor:e.backgroundcolor,skipBoundary:!0,body:t[1]}}return{type:"box",skipBoundary:!0,body:t[1]}},(e,t,i,a)=>{let o=e;if(isFinite(i.padding)||void 0!==i.border||void 0!==i.backgroundcolor){const e=[];isFinite(i.padding)&&e.push(Math.floor(100*i.padding)/100+"em"),i.border&&e.push("border:"+i.border),i.backgroundcolor&&e.push(ke(i.backgroundcolor)),o+=`[${e.join(",")}]`}return o+`{${a(i,i.body)}}`}),ue(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"",{},(e,t)=>({mathstyle:e.slice(1)})),ue(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{mode:"text"},(e,t)=>({fontSize:{tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[e.slice(1)]})),ue("fontseries","{:string}",{mode:"text"},(e,t)=>({fontSeries:t[0]})),ue("fontshape","{:string}",{mode:"text"},(e,t)=>({fontShape:t[0]})),ue("fontfamily","{:string}",{mode:"text"},(e,t)=>({fontFamily:t[0]})),ue("selectfont","",{mode:"text"},(e,t)=>({})),ue("bf","",{},(e,t)=>({fontSeries:"b",fontShape:"n",fontFamily:"cmr"})),ue(["boldsymbol","bm"],"{:math*}",{},(e,t)=>({mode:"math",cssClass:"ML__boldsymbol"})),ue("bold","{:math*}",{},(e,t)=>({mode:"math",variantStyle:"bold"})),ue("bfseries","",{mode:"text"},(e,t)=>({fontSeries:"b"})),ue("mdseries","",{mode:"text"},(e,t)=>({fontSeries:"m"})),ue("upshape","",{mode:"text"},(e,t)=>({fontShape:"n"})),ue("slshape","",{mode:"text"},(e,t)=>({fontShape:"sl"})),ue("scshape","",{mode:"text"},(e,t)=>({fontShape:"sc"})),ue("textbf","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"b"})),ue("textmd","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"m"})),ue("textup","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n"})),ue("textnormal","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n",fontSeries:"m"})),ue("textsl","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sl"})),ue("textit","{:text*}",{},(e,t)=>({mode:"text",fontShape:"it"})),ue("textsc","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sc"})),ue("textrm","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"roman"})),ue("textsf","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"sans-serif"})),ue("texttt","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"monospace"})),ue("mathbf","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bold"})),ue("mathit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"italic"})),ue("mathbfit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bolditalic"})),ue("mathrm","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"up"})),ue("mathsf","{:math*}",{},(e,t)=>({mode:"math",variant:"sans-serif",variantStyle:"up"})),ue("mathtt","{:math*}",{},(e,t)=>({mode:"math",variant:"monospace",variantStyle:"up"})),ue("it","",{},(e,t)=>({fontSeries:"m",fontShape:"it",fontFamily:"cmr",variantStyle:"italic"})),ue("rmfamily","",{},(e,t)=>({fontFamily:"roman"})),ue("sffamily","",{},(e,t)=>({fontFamily:"sans-serif"})),ue("ttfamily","",{},(e,t)=>({fontFamily:"monospace"})),ue(["Bbb","mathbb"],"{:math*}",{},(e,t)=>({variant:"double-struck",variantStyle:"up"})),ue(["frak","mathfrak"],"{:math*}",{},(e,t)=>({variant:"fraktur",variantStyle:"up"})),ue("mathcal","{:math*}",{},(e,t)=>({variant:"calligraphic",variantStyle:"up"})),ue("mathscr","{:math*}",{},(e,t)=>({variant:"script",variantStyle:"up"})),ue("mbox","{:text}",null,(e,t)=>({type:"group",mode:"math",body:t[0]})),ue("text","{:text*}",null,(e,t)=>({mode:"text"})),ue("class","{name:string}{content:auto*}",null,(e,t)=>({cssClass:t[0]})),ue("cssId","{id:string}{content:auto}",null,(e,t)=>({type:"group",body:t[1],cssId:t[0]})),ue("em","",null,(e,t)=>({cssClass:"ML__emph"})),ue("emph","{:auto}",null,(e,t)=>({cssClass:"ML__emph",body:t[0],type:"group",skipBoundary:!0}));const _e={"\\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}};function we(e,t,i,a,o,r=""){const s=E(e,T("Size"+i+"-Regular",ae(t),"delimsizing size"+i),o.mathstyle,h.textstyle,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}function Me(e,t){let i="";return"Size1-Regular"===t?i=" delim-size1":"Size4-Regular"===t&&(i=" delim-size4"),T(t,ae(e),"delimsizinginner"+i)}function ze(e,t,i,a,o,r=""){let s,n,l,c;s=l=c=ae(t),n=null;let m="Size1-Regular";"\\vert"===t||"\\lvert"===t||"\\rvert"===t||"\\mvert"===t||"\\mid"===t?l=s=c="∣":"\\Vert"===t||"\\lVert"===t||"\\rVert"===t||"\\mVert"===t||"\\|"===t?l=s=c="∥":"\\uparrow"===t?l=c="⏐":"\\Uparrow"===t?l=c="‖":"\\downarrow"===t?s=l="⏐":"\\Downarrow"===t?s=l="‖":"\\updownarrow"===t?(s="↑",l="⏐",c="↓"):"\\Updownarrow"===t?(s="⇑",l="‖",c="⇓"):"["===t||"\\lbrack"===t?(s="⎡",l="⎢",c="⎣",m="Size4-Regular"):"]"===t||"\\rbrack"===t?(s="⎤",l="⎥",c="⎦",m="Size4-Regular"):"\\lfloor"===t?(l=s="⎢",c="⎣",m="Size4-Regular"):"\\lceil"===t?(s="⎡",l=c="⎢",m="Size4-Regular"):"\\rfloor"===t?(l=s="⎥",c="⎦",m="Size4-Regular"):"\\rceil"===t?(s="⎤",l=c="⎥",m="Size4-Regular"):"("===t?(s="⎛",l="⎜",c="⎝",m="Size4-Regular"):")"===t?(s="⎞",l="⎟",c="⎠",m="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(s="⎧",n="⎨",c="⎩",l="⎪",m="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(s="⎫",n="⎬",c="⎭",l="⎪",m="Size4-Regular"):"\\lgroup"===t?(s="⎧",c="⎩",l="⎪",m="Size4-Regular"):"\\rgroup"===t?(s="⎫",c="⎭",l="⎪",m="Size4-Regular"):"\\lmoustache"===t?(s="⎧",c="⎭",l="⎪",m="Size4-Regular"):"\\rmoustache"===t?(s="⎫",c="⎩",l="⎪",m="Size4-Regular"):"\\surd"===t?(s="",c="⎷",l="",m="Size4-Regular"):"\\ulcorner"===t?(s="┌",l=c=" "):"\\urcorner"===t?(s="┐",l=c=" "):"\\llcorner"===t?(c="└",l=s=" "):"\\lrcorner"===t&&(s="┘",l=s=" ");const p=d(ae(s),m),u=p.height+p.depth,f=d(ae(l),m),g=f.height+f.depth,y=d(ae(c),m),b=y.height+y.depth;let v=0,x=1;if(null!==n){const e=d(ae(n),m);v=e.height+e.depth,x=2}const k=u+b+v,_=Math.ceil((i-k)/(x*g)),w=k+_*x*g;let M=o.mathstyle.metrics.axisHeight;a&&(M*=o.mathstyle.sizeMultiplier);const z=w/2-M,S=[];if(S.push(Me(c,m)),null===n)for(let e=0;e<_;e++)S.push(Me(l,m));else{for(let e=0;e<_;e++)S.push(Me(l,m));S.push(Me(n,m));for(let e=0;e<_;e++)S.push(Me(l,m))}S.push(Me(s,m));const L=B(o,S,"bottom",z);return L.setStyle("color",o.color),"number"==typeof o.opacity&&L.setStyle("opacity",o.opacity),E(e,D(L,"delimsizing mult"),o.mathstyle,h.textstyle,r)}ue(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",null,(function(e,t){return{type:"sizeddelim",size:_e[e].size,cls:_e[e].mclass,delim:t[0]}})),ue(["hspace","hspace*"],"{width:skip}",{},(function(e,t){return{type:"spacing",width:t[0]||0}})),ue(["mathop","mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",null,(e,t)=>{const i={type:{"\\mathop":"mop","\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e],body:t[0],captureSelection:!0};return"\\mathop"===e&&(i.limits="limits",i.isFunction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.body)}}`),ue(["operatorname","operatorname*"],"{operator:math}",null,(function(e,t){const i={type:"mop",captureSelection:!0,body:t[0],isFunction:!0};return i.body.forEach(e=>{e.isFunction=!1,e.variant||e.variantStyle||(e.variant="main",e.variantStyle="up"),e.type="mord",e.body={"∗":"*","−":"-"}[e.body]||e.body}),"\\operatorname"===e?i.limits="nolimits":"\\operatorname*"===e&&(i.limits="limits"),i})),ue("unicode","{charcode:number}",null,(e,t)=>{let i=parseInt(t[0]);return isFinite(i)||(i=10067),{type:"mord",body:String.fromCodePoint(i),codepoint:i}},(e,t,i,a)=>`${e}{"${("000000"+i.codepoint.toString(16)).toUpperCase().substr(-6)}}`),ue("rule","[raise:dimen]{width:dimen}{thickness:dimen}",null,(function(e,t){return{type:"rule",shift:t[0],width:t[1],height:t[2]}})),ue("overline","{:auto}",null,(e,t)=>({type:"line",position:"overline",skipBoundary:!0,body:t[0]})),ue("underline","{:auto}",null,(e,t)=>({type:"line",position:"underline",skipBoundary:!0,body:t[0]})),ue("overset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),ue("underset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",underscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),ue(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0},(function(e,t){return{type:"genfrac",numer:t[0],denom:t[1],hasBarLine:!1,leftDelim:t[2],rightDelim:t[3],mathstyle:"auto"}}),(e,t,i,a)=>`${a(i,i.numer)} ${e}${i.leftDelim}${i.rightDelim}${a(i,i.denom)}`),ue(["stackrel","stackbin"],"{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1],mathtype:"\\stackrel"===e?"mrel":"mbin"}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),ue(["phantom","vphantom","hphantom"],"{:auto*}",{},(e,t)=>({type:"phantom",captureSelection:!0,phantomType:e.slice(1),isPhantom:!0}),(e,t,i,a)=>e+"{"+a(i,i.body)+"}"),ue("smash","[:string]{:auto}",null,(function(e,t){let i="smash";return"b"===t[0]?i="bsmash":"t"===t[0]&&(i="tsmash"),{type:"phantom",phantomType:i,skipBoundary:!0,body:t[1]}})),ue("rlap","{:auto}",null,(function(e,t){return{type:"overlap",align:"right",skipBoundary:!0,body:t[0]}})),ue("llap","{:auto}",null,(function(e,t){return{type:"overlap",align:"left",skipBoundary:!0,body:t[0]}})),ue("mathrlap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"right",skipBoundary:!0,body:t[0]}})),ue("mathllap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"left",skipBoundary:!0,body:t[0]}})),function(e){for(let t=0;t",">","mrel"),G("\\gt",">","mrel"),G("\\le","≤","mrel"),G("\\leq","≤","mrel"),G("\\ge","≥","mrel"),G("\\geq","≥","mrel"),G("\\leqslant","⩽","mrel","ams"),G("\\geqslant","⩾","mrel","ams"),G("\\ll","≪","mrel"),G("\\gg","≫","mrel"),G("\\coloneq","≔","mrel"),G("\\measeq","≝","mrel"),G("\\eqdef","≞","mrel"),G("\\questeq","≟","mrel"),G(":",":","mrel"),G("\\cong","≅","mrel"),G("\\equiv","≡","mrel"),G("\\prec","≺","mrel"),G("\\preceq","⪯","mrel"),G("\\succ","≻","mrel"),G("\\succeq","⪰","mrel"),G("\\perp","⊥","mrel"),G("\\propto","∝","mrel"),G("\\Colon","∷","mrel"),G("\\smile","⌣","mrel"),G("\\frown","⌢","mrel"),G("\\sim","∼","mrel"),G("\\gtrsim","≳","mrel","ams"),G("\\approx","≈","mrel"),G("\\approxeq","≊","mrel","ams"),G("\\thickapprox","≈","mrel","ams"),G("\\lessapprox","⪅","mrel","ams"),G("\\gtrapprox","⪆","mrel","ams"),G("\\precapprox","⪷","mrel","ams"),G("\\succapprox","⪸","mrel","ams"),G("\\thicksim","∼","mrel","ams"),G("\\succsim","≿","mrel","ams"),G("\\precsim","≾","mrel","ams"),G("\\backsim","∽","mrel","ams"),G("\\eqsim","≂","mrel","ams"),G("\\backsimeq","⋍","mrel","ams"),G("\\simeq","≃","mrel"),G("\\lesssim","≲","mrel","ams"),G("\\nleq","≰","mrel","ams"),G("\\ngeq","≱","mrel","ams"),G("\\smallsmile","⌣","mrel","ams"),G("\\smallfrown","⌢","mrel","ams"),G("\\bowtie","⋈","mrel"),G("\\Join","⋈","mrel"),G("\\asymp","≍","mrel"),G("\\sqsubseteq","⊑","mrel"),G("\\sqsupseteq","⊒","mrel"),G("\\leqq","≦","mrel","ams"),G("\\eqslantless","⪕","mrel","ams"),G("\\lll","⋘","mrel","ams"),G("\\lessgtr","≶","mrel","ams"),G("\\lesseqgtr","⋚","mrel","ams"),G("\\lesseqqgtr","⪋","mrel","ams"),G("\\risingdotseq","≓","mrel","ams"),G("\\fallingdotseq","≒","mrel","ams"),G("\\subseteqq","⫅","mrel","ams"),G("\\Subset","⋐","mrel","ams"),G("\\sqsubset","⊏","mrel","ams"),G("\\preccurlyeq","≼","mrel","ams"),G("\\curlyeqprec","⋞","mrel","ams"),G("\\vDash","⊨","mrel","ams"),G("\\Vvdash","⊪","mrel","ams"),G("\\bumpeq","≏","mrel","ams"),G("\\Bumpeq","≎","mrel","ams"),G("\\geqq","≧","mrel","ams"),G("\\eqslantgtr","⪖","mrel","ams"),G("\\ggg","⋙","mrel","ams"),G("\\gtrless","≷","mrel","ams"),G("\\gtreqless","⋛","mrel","ams"),G("\\gtreqqless","⪌","mrel","ams"),G("\\supseteqq","⫆","mrel","ams"),G("\\Supset","⋑","mrel","ams"),G("\\sqsupset","⊐","mrel","ams"),G("\\succcurlyeq","≽","mrel","ams"),G("\\curlyeqsucc","⋟","mrel","ams"),G("\\Vdash","⊩","mrel","ams"),G("\\shortmid","∣","mrel","ams"),G("\\between","≬","mrel","ams"),G("\\pitchfork","⋔","mrel","ams"),G("\\varpropto","∝","mrel","ams"),G("\\backepsilon","∍","mrel","ams"),G("\\llless","⋘","mrel","ams"),G("\\gggtr","⋙","mrel","ams"),G("\\lhd","⊲","mbin","ams"),G("\\rhd","⊳","mbin","ams"),G("\\doteq","≐","mrel"),G("\\doteqdot","≑","mrel","ams"),G("\\Doteq","≑","mrel","ams"),G("\\eqcirc","≖","mrel","ams"),G("\\circeq","≗","mrel","ams"),G("\\lessdot","⋖","mbin","ams"),G("\\gtrdot","⋗","mbin","ams"),G("\\~","~","mrel"),G("\\leftrightarrow","↔","mrel"),G("\\Leftrightarrow","⇔","mrel"),G("\\models","⊨","mrel"),G("\\vdash","⊢","mrel"),G("\\therefore","∴","mrel","ams"),G("\\because","∵","mrel","ams"),G("\\dashv","⊣","mrel"),G("\\roundimplies","⥰","mrel"),G("+","+","mbin"),G("-","−","mbin"),G("−","−","mbin"),G("\\pm","±","mbin"),G("\\mp","∓","mbin"),G("*","∗","mbin"),G("\\times","×","mbin"),G("\\div","÷","mbin"),G("\\surd","√"),G("\\divides","∣","mbin"),G("\\ltimes","⋉","mbin","ams"),G("\\rtimes","⋊","mbin","ams"),G("\\leftthreetimes","⋋","mbin","ams"),G("\\rightthreetimes","⋌","mbin","ams"),G("\\intercal","⊺","mbin","ams"),G("\\dotplus","∔","mbin","ams"),G("\\doublebarwedge","⩞","mbin","ams"),G("\\divideontimes","⋇","mbin","ams"),G("\\centerdot","⋅","mbin","ams"),G("\\cdot","⋅","mbin"),G("\\infty","∞"),G("\\prime","′"),G("\\doubleprime","″"),G("\\angle","∠"),G("`","‘"),G("\\$","$"),G("\\%","%"),G("\\_","_"),G("\\alpha","α"),G("\\beta","β"),G("\\gamma","γ"),G("\\delta","δ"),G("\\epsilon","ϵ"),G("\\varepsilon","ε"),G("\\zeta","ζ"),G("\\eta","η"),G("\\theta","θ"),G("\\vartheta","ϑ"),G("\\iota","ι"),G("\\kappa","κ"),G("\\varkappa","ϰ","mord","ams"),G("\\lambda","λ"),G("\\mu","μ"),G("\\nu","ν"),G("\\xi","ξ"),G("\\omicron","o"),G("\\pi","π"),G("\\varpi","ϖ"),G("\\rho","ρ"),G("\\varrho","ϱ"),G("\\sigma","σ"),G("\\varsigma","ς"),G("\\tau","τ"),G("\\phi","ϕ"),G("\\varphi","φ"),G("\\upsilon","υ"),G("\\chi","χ"),G("\\psi","ψ"),G("\\omega","ω"),G("\\Gamma","Γ"),G("\\Delta","Δ"),G("\\Theta","Θ"),G("\\Lambda","Λ"),G("\\Xi","Ξ"),G("\\Pi","Π"),G("\\Sigma","Σ"),G("\\Upsilon","Υ"),G("\\Phi","Φ"),G("\\Psi","Ψ"),G("\\Omega","Ω"),G("\\digamma","ϝ","mord","ams"),G("\\emptyset","∅"),G("\\varnothing","∅","mord","ams"),G("\\cap","∩","mbin"),G("\\cup","∪","mbin"),G("\\setminus","∖","mbin"),G("\\smallsetminus","∖","mbin","ams"),G("\\complement","∁","mord","ams"),G("\\in","∈","mrel"),G("\\notin","∉","mrel"),G("\\not","̸","mrel"),G("\\ni","∋","mrel"),G("\\owns","∋","mrel"),G("\\subset","⊂","mrel"),G("\\supset","⊃","mrel"),G("\\subseteq","⊆","mrel"),G("\\supseteq","⊇","mrel"),G("\\subsetneq","⊊","mrel","ams"),G("\\varsubsetneq","","mrel","ams"),G("\\subsetneqq","⫋","mrel","ams"),G("\\varsubsetneqq","","mrel","ams"),G("\\nsubset","⊄","mrel","ams"),G("\\nsupset","⊅","mrel","ams"),G("\\nsubseteq","⊈","mrel","ams"),G("\\nsupseteq","⊉","mrel","ams"),G("\\ "," ","spacing"),G("~"," ","spacing"),G("\\space"," ","spacing"),G("\\!",null,"spacing"),G("\\,",null,"spacing"),G("\\:",null,"spacing"),G("\\;",null,"spacing"),G("\\enskip",null,"spacing"),G("\\enspace",null,"spacing"),G("\\quad",null,"spacing"),G("\\qquad",null,"spacing"),G("\\colon",":","mpunct"),G("\\cdotp","⋅","mpunct"),G("\\cdots","⋯","minner"),G("\\ddots","⋱","minner"),G("\\ldots","…","minner"),G("\\mathellipsis","…","minner"),G("\\vdots","⋮"),G("\\ldotp",".","mpunct"),G(",",",","mpunct"),G(";",";","mpunct"),G("\\land","∧","mbin"),G("\\wedge","∧","mbin"),G("\\lor","∨","mbin"),G("\\vee","∨","mbin"),G("\\lnot","¬"),G("\\neg","¬"),G("\\barwedge","⊼","mbin","ams"),G("\\veebar","⊻","mbin","ams"),G("\\nor","⊻","mbin","ams"),G("\\curlywedge","⋏","mbin","ams"),G("\\curlyvee","⋎","mbin","ams"),G("\\square","□","mord","ams"),G("\\Box","□","mord","ams"),G("\\blacksquare","■","mord","ams"),G("\\boxminus","⊟","mbin","ams"),G("\\boxplus","⊞","mbin","ams"),G("\\boxtimes","⊠","mbin","ams"),G("\\boxdot","⊡","mbin","ams"),G("\\circ","∘","mbin"),G("\\bigcirc","◯","mbin"),G("\\bullet","∙","mbin"),G("\\circleddash","⊝","mbin","ams"),G("\\circledast","⊛","mbin","ams"),G("\\oplus","⊕","mbin"),G("\\ominus","⊖","mbin"),G("\\otimes","⊗","mbin"),G("\\odot","⊙","mbin"),G("\\circledcirc","⊚","mbin","ams"),G("\\oslash","⊘","mbin"),G("\\circledS","Ⓢ","mord","ams"),G("\\circledR","®","mord","ams"),G("\\triangle","△"),G("\\bigtriangleup","△","mbin"),G("\\vartriangle","△","mrel","ams"),G("\\triangleq","≜","mrel","ams"),G("\\triangledown","▽","mord","ams"),G("\\bigtriangledown","▽","mbin"),G("\\triangleleft","◃","mbin"),G("\\vartriangleleft","⊲","mrel","ams"),G("\\trianglelefteq","⊴","mrel","ams"),G("\\ntriangleleft","⋪","mrel","ams"),G("\\ntrianglelefteq","⋬","mrel","ams"),G("\\triangleright","▹","mbin"),G("\\vartriangleright","⊳","mrel","ams"),G("\\trianglerighteq","⊵","mrel","ams"),G("\\ntriangleright","⋫","mrel","ams"),G("\\ntrianglerighteq","⋭","mrel","ams"),G("\\blacktriangle","▲","mord","ams"),G("\\blacktriangledown","▼","mord","ams"),G("\\blacktriangleleft","◀","mrel","ams"),G("\\blacktriangleright","▶","mrel","ams"),G("\\/","/"),G("|","∣","textord"),G("\\And","&","mbin"),G("\\imath","ı"),G("\\jmath","ȷ"),G("\\degree","°"),G("'","′"),G('"',"”");const Se=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],Le=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],Ae=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ce=[0,1.2,1.8,2.4,3],$e=[{type:"small",mathstyle:h.scriptscriptstyle},{type:"small",mathstyle:h.scriptstyle},{type:"small",mathstyle:h.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],qe=[{type:"small",mathstyle:h.scriptscriptstyle},{type:"small",mathstyle:h.scriptstyle},{type:"small",mathstyle:h.textstyle},{type:"stack"}],De=[{type:"small",mathstyle:h.scriptscriptstyle},{type:"small",mathstyle:h.scriptstyle},{type:"small",mathstyle:h.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Te(e,t,i,a,o,r=""){if(!t||0===t.length||"."===t)return Ee(e,o,e);let s;"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),s=Ae.includes(t)?$e:Se.includes(t)?De:qe;const n=function(e,t,i,a){for(let r=Math.min(2,3-a.mathstyle.size);rt)return i[r]}var o;return i[i.length-1]}(ae(t),i,s,o);return"small"===n.type?function(e,t,i,a,o,r=""){const s=E(e,T("Main-Regular",ae(t)),o.mathstyle,i,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier/i.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}(e,t,n.mathstyle,a,o,"ML__small-delim "+r):"large"===n.type?we(e,t,n.size,a,o,r):ze(e,t,i,a,o,r)}function Ke(e,t,i,a,o,r=""){if("."===t)return Ee(e,o,r);const s=o.mathstyle.metrics.axisHeight*o.mathstyle.sizeMultiplier,n=Math.max(i-s,a+s);return Te(e,t,Math.max(n/500*901,2*n-.5),!0,o,r)}function Ee(e,t,i){return D("","sizing"+t.mathstyle.adjustTo(h.textstyle)+" nulldelimiter "+(i||""),e)}const Ne=8205,Be=[[Ne,1],[65038,2],[127995,5],[129456,4],[917536,96]];let Oe;const Fe=[127462,127487];function Pe(e){var t;return void 0===Oe&&(Oe={},Be.forEach(e=>{for(let t=e[0];t<=e[0]+e[1]-1;t++)Oe[t]=!0})),null!==(t=Oe[e])&&void 0!==t&&t}function Re(e){return e>=Fe[0]&&e<=Fe[1]}function Ie(e){if(/^[\x20-\xFF]*$/.test(e))return e;const t=[],i=function(e){const t=[];for(let i=0;i=55296&&a<=56319){const t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){const e=a-55296,o=t-56320;a=Math.pow(2,16)+e*Math.pow(2,10)+o,i++}}t.push(a)}return t}(e);let a=0;for(;a=this.s.length}get(){return this.pos";if(this.obeyspaces&&this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]/))return"";const e=this.get();if("\\"===e){if(!this.end()){let e=this.match(/^[a-zA-Z*]+/);if(e)this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]*/);else if(e=this.get()," "===e)return"";return"\\"+e}}else{if("{"===e)return"<{>";if("}"===e)return"<}>";if("^"===e){if("^"===this.peek()){this.get();const e=this.match(/^(\^(\^(\^(\^[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f][0-9a-f]/);if(e)return String.fromCodePoint(parseInt(e.slice(e.lastIndexOf("^")+1),16))}return e}if("#"===e){if(!this.end()){let e=!1;if(/[0-9?]/.test(this.peek())&&(e=!0,this.pos+1"):"<$>"}return e}}function Ve(e,t){var i,a,o,r;let s=[],n=e.next();if(n)if("\\relax"===n);else if("\\noexpand"===n)n=e.next(),n&&s.push(n);else if("\\obeyspaces"===n)e.obeyspaces=!0;else if("\\space"===n||"~"===n)s.push("");else if("\\bgroup"===n)s.push("<{>");else if("\\egroup"===n)s.push("<}>");else if("\\string"===n)n=e.next(),n&&("\\"===n[0]?Array.from(n).forEach(e=>s.push("\\"===e?"\\backslash":e)):"<{>"===n?s.push("\\{"):""===n?s.push("~"):"<}>"===n&&s.push("\\}"));else if("\\csname"===n){for(;""===e.peek();)e.next();let o="",r=!1,l=[];do{if(0===l.length)if(/^#[0-9?]$/.test(e.peek())){const o=e.get().slice(1);l=We(null!==(a=null!==(i=null==t?void 0:t[o])&&void 0!==i?i:null==t?void 0:t["?"])&&void 0!==a?a:"\\placeholder{}",t),n=l[0]}else n=e.next(),l=n?[n]:[];r=0===l.length,r||"\\endcsname"!==n||(r=!0,l.shift()),r||(r="<$>"===n||"<$$>"===n||"<{>"===n||"<}>"===n||n.length>1&&"\\"===n[0]),r||(o+=l.shift())}while(!r);o&&s.push("\\"+o),s=s.concat(l)}else if("\\endcsname"===n);else if(n.length>1&&"#"===n[0]){const e=n.slice(1);s=s.concat(We(null!==(r=null!==(o=null==t?void 0:t[e])&&void 0!==o?o:null==t?void 0:t["?"])&&void 0!==r?r:"\\placeholder{}",t))}else s.push(n);return s}function We(e,t){const i=e.toString().split(/\r?\n/);let a="",o="";for(const e of i){a+=o,o=" ";const t=e.match(/((?:\\%)|[^%])*/);null!==t&&(a+=t[0])}const r=new He(a);let s=[];do{s=s.concat(Ve(r,t))}while(!r.end());return s}function Ue(e){let t="",i="";for(const a of e)a&&(/[a-zA-Z*]/.test(a[0])&&(i+=t),t=/\\[a-zA-Z]+\*?$/.test(a)?" ":"",i+=a);return i}function je(e){return Ue(e.map(e=>{var t;return null!==(t={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[e])&&void 0!==t?t:e}))}const Xe={},Ge={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49};function Ze(e,t){Xe[e]={decompose:t}}function Ye(e,i){var a,o;function r(e){return"mord"===e.type&&Boolean(e.symbol)&&/^[0-9,.]$/.test(e.symbol)}function s(e){return"text"===e.mode}const n=e instanceof f?e:new f(e),l=!n.atomIdsSettings||!n.atomIdsSettings.groupNumbers;let c=[];if(t(i)){if(0===i.length)return[];if(1===i.length)c=i[0].decompose(n),c&&l&&i[0].isSelected&&c.forEach(e=>e.selected(!0));else{let e=[],t="",d=!0,m=null;for(let p=0;pe.selected(!0))):(e.length>0&&(c=[...c,...e],e=[]),c=c.concat(a))}}e.length>0&&(c=[...c,...e],e=[])}}else i instanceof Je&&(c=i.decompose(n),c&&l&&i.isSelected&&c.forEach(e=>e.selected(!0)));if(!c||0===c.length)return null;if(n.mathstyle!==n.parentMathstyle){const e=n.mathstyle.sizeMultiplier/n.parentMathstyle.sizeMultiplier;for(const t of c)t.height*=e,t.depth*=e}if(n.size!==n.parentSize){const e=Ge[n.size]/Ge[n.parentSize];for(const t of c)t.height*=e,t.depth*=e}return c}class Je{constructor(e,t,i="",a={}){this.mode=e,this.type=t,this.body=i,a.isPhantom&&this.setPhantom(!0),this.applyStyle(a)}toLatex(e=!1){return function(e,i){if(!(i=void 0!==i&&i)&&e.latex)return e.latex;let a="",o=0,r=0,s=0;const n=e.symbol;let l=[];const c=(e,a)=>function(e,i,a){let o="";return t(i)?o=function(e,t,i){if(0===t.length)return"";if("first"===t[0].type){if(1===t.length)return"";t=t.slice(1)}return 0===t.length?"":Ue(v(t,"cssClass").map(t=>{const a=Ue(v(t,"color").map(t=>Ue(function(e){const t=[];let i=[],a="NONE";return e.forEach(e=>{"first"!==e.type&&(e.mode!==a?(i.length>0&&t.push(i),i=[e],a=e.mode):i.push(e))}),i.length>0&&t.push(i),t}(t).map(t=>function(e,t,i){var a;return(null===(a=x[t[0].mode])||void 0===a?void 0:a.emitLatexRun)?x[t[0].mode].emitLatexRun(e,t,i):""}(e,t,i)))));return!t[0].cssClass||void 0!==e&&e.cssClass===t[0].cssClass?a:"ML__boldsymbol"===t[0].cssClass?"\\boldsymbol{"+a+"}":"ML__emph"===t[0].cssClass?"\\emph{"+a+"}":"\\class{"+t[0].cssClass+"}{"+a+"}"}))}(e,i,a):"number"==typeof i||"boolean"==typeof i?o=i.toString():"string"==typeof i?o=i.replace(/\s/g,"~"):null!=i&&"function"==typeof i.toLatex&&(o=i.toLatex(a)),o}(e,a,i);switch(e.type){case"group":n?a=i?c(e,e.body):e.latex:(a=e.latexOpen||(e.cssId||e.cssClass?"":"{"),e.cssId&&(a+="\\cssId{"+e.cssId+"}{"),"ML__emph"===e.cssClass?a+="\\emph{"+c(e,e.body):(e.cssClass&&(a+="\\class{"+e.cssClass+"}{"),a+=c(e,e.body),e.cssClass&&(a+="}")),e.cssId&&(a+="}"),a+=e.latexClose||(e.cssId||e.cssClass?"":"}"));break;case"array":if(a+="\\begin{"+e.environmentName+"}","array"===e.environmentName){if(a+="{",void 0!==e.colFormat)for(s=0;s0&&(a+=" & "),a+=c(e,e.array[r][o]);r0&&("first"!==this.body[0].type?e=this.body[0].getInitialBaseElement():this.body[1]&&(e=this.body[1].getInitialBaseElement())),e||this}getFinalBaseElement(){return t(this.body)&&this.body.length>0?this.body[this.body.length-1].getFinalBaseElement():this}isCharacterBox(){const e=this.getInitialBaseElement();return/minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(e.type)}setPhantom(e){this.forEach(t=>{t.isPhantom=e})}forEach(e){if(e(this),t(this.body))for(const t of this.body)t&&t.forEach(e);else this.body&&"object"==typeof this.body&&e(this.body);if(this.superscript)for(const t of this.superscript)t&&t.forEach(e);if(this.subscript)for(const t of this.subscript)t&&t.forEach(e);if(this.overscript)for(const t of this.overscript)t&&t.forEach(e);if(this.underscript)for(const t of this.underscript)t&&t.forEach(e);if(this.numer)for(const t of this.numer)t&&t.forEach(e);if(this.denom)for(const t of this.denom)t&&t.forEach(e);if(this.index)for(const t of this.index)t&&t.forEach(e);if(this.array)for(const t of this.array)for(const i of t)for(const t of i)t.forEach(e)}decomposeGroup(e){const t=D(Ye(e.clone({mathstyle:this.mathstyle?h[this.mathstyle]:void 0}),this.body),"","mord");return this.cssId&&(t.cssId=this.cssId),t.applyStyle({backgroundColor:this.backgroundColor,cssClass:this.cssClass}),t}decomposeOverlap(e){const t=D(Ye(e,this.body),"inner");return D([t,D(null,"fix")],"left"===this.align?"llap":"rlap","mord")}decomposeRule(e){const t=e.mathstyle,i=D("","rule","mord");let a=this.shift&&!isNaN(this.shift)?this.shift:0;a/=t.sizeMultiplier;const o=this.width/t.sizeMultiplier,r=this.height/t.sizeMultiplier;return i.setStyle("border-right-width",o,"em"),i.setStyle("border-top-width",r,"em"),i.setStyle("margin-top",-(r-a),"em"),i.setStyle("border-color",e.color),i.width=o,i.height=r+a,i.depth=-a,i}decompose(e,i=null){var a;let o=null;if(!this.type||/mord|minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(this.type)?(o="string"==typeof this.body?this.makeSpan(e,this.body):this.makeSpan(e,Ye(e,this.body)),o.type=w(this.type)?this.type:""):"group"===this.type||"root"===this.type?o=this.decomposeGroup(e):"delim"===this.type?(o=D(null,""),o.delim=this.delim):"sizeddelim"===this.type?o=this.bind(e,function(e,t,i,a,o=""){return"."===t?Ee(e,a,o):("<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),Se.includes(t)||Ae.includes(t)?we(e,t,i,!1,a,o):Le.includes(t)?ze(e,t,Ce[i],!1,a,o):null)}(this.cls,this.delim,this.size,e)):"overlap"===this.type?o=this.decomposeOverlap(e):"rule"===this.type?o=this.decomposeRule(e):"msubsup"===this.type?(o=D("​","","mord"),i&&(o.height=i[0].height,o.depth=i[0].depth)):"space"===this.type?o=this.makeSpan(e," "):"spacing"===this.type?"​"===this.body?o=this.makeSpan(e,"​"):" "===this.body?o="math"===this.mode?this.makeSpan(e," "):this.makeSpan(e," "):this.width?(o=D("​","mspace "),this.width>0?o.setWidth(this.width):o.setStyle("margin-left",this.width,"em")):o=D("​","mspace "+(null!==(a={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.symbol])&&void 0!==a?a:"mediumspace")):"mathstyle"===this.type?e.setMathstyle(this.mathstyle):"command"===this.type||"error"===this.type?(o=this.makeSpan(e,this.body),o.classes="",this.isError&&(o.classes+=" ML__error"),this.isSuggestion&&(o.classes+=" ML__suggestion")):o="placeholder"===this.type?this.makeSpan(e,"⬚"):"first"===this.type?this.makeSpan(e,"​"):Xe[this.type].decompose(e,this),!o)return null;if(this.caret&&"msubsup"!==this.type&&"command"!==this.type&&"placeholder"!==this.type&&"first"!==this.type&&(t(o)?"leftright"===this.type&&(this.superscript||this.subscript)||(o[o.length-1].caret=this.caret):o.caret=this.caret),this.containsCaret&&(t(o)?(o[0].classes=(o[0].classes||"")+" ML__contains-caret",o[o.length-1].classes=(o[o.length-1].classes||"")+" ML__contains-caret"):o.classes=(o.classes||"")+" ML__contains-caret"),!this.limits&&(this.superscript||this.subscript))if(t(o)){const t=o[o.length-1];o[o.length-1]=this.attachSupsub(e,t,t.type)}else o=[this.attachSupsub(e,o,o.type)];return t(o)?o:[o]}attachSupsub(e,t,i){if(!this.superscript&&!this.subscript)return t;const a=e.mathstyle;let o=null,s=null;this.superscript&&(o=D(Ye(e.sup(),this.superscript),a.adjustTo(a.sup()))),this.subscript&&(s=D(Ye(e.sub(),this.subscript),a.adjustTo(a.sub())));let n,l=0,c=0;this.isCharacterBox()||(l=C(t)-a.metrics.supDrop,c=$(t)+a.metrics.subDrop),n=a===h.displaystyle?a.metrics.sup1:a.cramped?a.metrics.sup3:a.metrics.sup2;const d=.05/(h.textstyle.sizeMultiplier*a.sizeMultiplier);let m=null;if(s&&o){l=Math.max(l,n,o.depth+.25*a.metrics.xHeight),c=Math.max(c,a.metrics.sub2);const i=r;if(l-$(o)-(C(s)-c)<4*i){c=4*i-(l-o.depth)+C(s);const e=.8*a.metrics.xHeight-(l-$(o));e>0&&(l+=e,c-=e)}m=B(e,[s,c,o,-l],"individualShift"),this.isSymbol&&m.children[0].setLeft(-q(t))}else s&&!o?(c=Math.max(c,a.metrics.sub1,C(s)-.8*a.metrics.xHeight),m=B(e,[s],"shift",c),m.children[0].setRight(d),this.isCharacterBox()&&m.children[0].setLeft(-q(t))):!s&&o&&(l=Math.max(l,n,o.depth+.25*a.metrics.xHeight),m=B(e,[o],"shift",-l),m.children[0].setRight(d));const p=D(m,"msubsup");return this.caret&&(p.caret=this.caret,this.caret=""),D([t,p],"",i)}attachLimits(e,t,i,a){const o=this.superscript?D(Ye(e.sup(),this.superscript),e.mathstyle.adjustTo(e.mathstyle.sup())):null,r=this.subscript?D(Ye(e.sub(),this.subscript),e.mathstyle.adjustTo(e.mathstyle.sub())):null;return function(e,t,i,a,o,r){if(!o&&!r)return t;t=D(t);let c=0,d=0;o&&(c=Math.max(s,.2-$(o))),r&&(d=Math.max(n,.6-C(r)));let m=null;if(r&&o){const s=l+C(r)+$(r)+d+$(t)+i;m=B(e,[l,r,d,t,c,o,l],"bottom",s),m.children[0].setLeft(-a),m.children[2].setLeft(a)}else if(r&&!o){const o=C(t)-i;m=B(e,[l,r,d,t],"top",o),m.children[0].setLeft(-a)}else if(!r&&o){const r=$(t)+i;m=B(e,[t,c,o,l],"bottom",r),m.children[1].setLeft(a)}return D(m,"op-limits","mop")}(e,t,i,a,o,r)}bind(e,t){return"first"!==this.type&&"​"!==this.body&&(this.id=function(e){let t;return e.atomIdsSettings&&("number"==typeof e.atomIdsSettings.seed?(t=e.atomIdsSettings.overrideID?e.atomIdsSettings.overrideID:e.atomIdsSettings.seed.toString(36),e.atomIdsSettings.seed+=1):t=Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36)),t}(e),this.id&&(t.attributes||(t.attributes={}),t.attributes["data-atom-id"]=this.id)),t}makeSpan(e,t){const i=D(t,"","textord"===this.type?"mord":w(this.type)?this.type:""),a=this.getStyle();a.letterShapeStyle=e.letterShapeStyle,i.applyStyle(a);const o=(null==a?void 0:a.fontSize)?a.fontSize:"size5";return o!==e.parentSize?(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+o):e.parentSize!==e.size&&(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+e.size),i.maxFontSize=Math.max(i.maxFontSize,e.mathstyle.sizeMultiplier||1),"text"===this.mode&&(i.classes+=" ML__text"),e.mathstyle.isTight()&&(i.isTight=!0),"math"!==this.mode&&(i.italic=0),i.setRight(i.italic),"number"==typeof e.opacity&&i.setStyle("opacity",e.opacity),this.bind(e,i),this.caret&&(this.superscript||this.subscript||(i.caret=this.caret,this.caret="",e.mathstyle.isTight()&&(i.isTight=!0))),i}}function Qe(e,i=[]){const a=new Je(e,"root",i||[]);return!t(a.body)||0!==a.body.length&&"first"===a.body[0].type||a.body.unshift(new Je(e,"first")),a}function et(e){return t(e)}function tt(e){const t=D("​","arraycolsep");return t.setWidth(e),t}function it(e,t,i,a){const o=[];for(const r of t){const t=D(Ye(e,a));t.depth=r.depth,t.height=r.height,o.push(t),o.push(r.pos-i)}return B(e,o,"individualShift")}function at(e){return!/^<({|}|\$|\$\$|space)>$/.test(e)}Ze("accent",(e,i)=>{const a=e.mathstyle;let o=Ye(e.cramp(),i.body);(i.superscript||i.subscript)&&(o=[i.attachSupsub(e,D(o,"","mord"),"mord")]);let r=0;t(i.body)&&1===i.body.length&&i.body[0].isCharacterBox()&&(r=function(e){if(!e)return 0;if(t(e)){let t=0;for(const i of e)t+=i.skew||0;return t}return e.skew}(o));let n,l=Math.min(C(o),a.metrics.xHeight);if(i.svgAccent)n=O(i.svgAccent),l=-l+s;else{const e=T("Main-Regular",i.accent,"math");e.italic=0;const t="⃗"===i.accent?" accent-vec":"";n=D(D(e),"accent-body"+t)}return n=B(e,[o,-l,n]),n.children[1].setLeft(2*r),[D([n],"accent","mord")]}),Ze("array",(e,t)=>{var i;let a=t.colFormat;a&&0===a.length&&(a=[{align:"l"}]),a||(a=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]);const o=[];let r=0;for(const e of a)e.align&&r++;for(const e of t.array){let t=0;for(;t0&&(c+=m,n0&&b.push(B(e,i,"individualShift"))}const v=[];let x=!1,k=!1,_=0,w=!t.leftDelim;for(const t of a){if(t.align&&_>=b.length)break;if(t.align&&_{const i="number"==typeof t.padding?t.padding:.3,a=D(Ye(e,t.body),"","mord");a.setStyle("vertical-align",-$(a),"em"),a.setStyle("height",0);const o=D(a,"","mord"),r=D("","ML__box");r.setStyle("position","absolute"),r.setStyle("height",C(o)+$(o)+2*i,"em"),0!==i?r.setStyle("width","calc(100% + "+2*i+"em)"):r.setStyle("width","100%"),r.setStyle("top",-i,"em"),r.setStyle("left",-i,"em"),r.setStyle("z-index","-1"),r.setStyle("box-sizing","border-box"),t.backgroundcolor&&r.setStyle("background-color",t.backgroundcolor),t.framecolor&&r.setStyle("border","0.04em solid "+t.framecolor),t.border&&r.setStyle("border",t.border),o.setStyle("display","inline-block"),o.setStyle("height",C(o)+$(o),"em");const s=D([r,o]);return s.setStyle("position","relative"),s.setStyle("vertical-align",-i+$(o),"em"),s.height=C(o)+i,s.depth=$(o)+i,s.setLeft(i),s.setRight(i),s.setStyle("height",s.height+s.depth-2*i,"em"),s.setStyle("top",-i,"em"),s.setStyle("display","inline-block"),[s]}),Ze("enclose",(e,t)=>{const i=D(Ye(e,t.body),"","mord"),a="number"==typeof t.padding?t.padding:.3,o=D("","ML__notation");o.setStyle("position","absolute"),o.setStyle("height",C(i)+$(i)+2*a,"em"),o.height=C(i)+a,o.depth=$(i)+a,0!==a?o.setStyle("width","calc(100% + "+2*a+"em)"):o.setStyle("width","100%"),o.setStyle("top","0"),o.setStyle("left",-a,"em"),o.setStyle("z-index","-1"),t.backgroundcolor&&o.setStyle("background-color",t.backgroundcolor),t.notation.box&&o.setStyle("border",t.borderStyle),t.notation.actuarial&&(o.setStyle("border-top",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.madruwb&&(o.setStyle("border-bottom",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.roundedbox&&(o.setStyle("border-radius",(C(i)+$(i))/2,"em"),o.setStyle("border",t.borderStyle)),t.notation.circle&&(o.setStyle("border-radius","50%"),o.setStyle("border",t.borderStyle)),t.notation.top&&o.setStyle("border-top",t.borderStyle),t.notation.left&&o.setStyle("border-left",t.borderStyle),t.notation.right&&o.setStyle("border-right",t.borderStyle),t.notation.bottom&&o.setStyle("border-bottom",t.borderStyle);let r="";if(t.notation.horizontalstrike&&(r+='{const i="auto"===t.mathstyle?e.mathstyle:h[t.mathstyle],a=e.clone({mathstyle:i});let o=[];t.numerPrefix&&o.push(D(t.numerPrefix,"mord"));const s=t.continuousFraction?i:i.fracNum();o=o.concat(Ye(a.clone({mathstyle:s}),t.numer));const n=N(o,e.mathstyle.adjustTo(s));let l=[];t.denomPrefix&&l.push(D(t.denomPrefix,"mord"));const c=t.continuousFraction?i:i.fracDen();l=l.concat(Ye(a.clone({mathstyle:c}),t.denom));const d=N(l,e.mathstyle.adjustTo(c)),m=t.hasBarLine?r/i.sizeMultiplier:0;let p,u,f=0;i.size===h.displaystyle.size?(p=i.metrics.num1,f=m>0?3*m:.28,u=i.metrics.denom1):(m>0?(p=i.metrics.num2,f=m):(p=i.metrics.num3,f=.12),u=i.metrics.denom2);const g=n?$(n):0,y=d?C(d):0;let b;if(0===m){const e=p-g-(y-u);e{if(!t.body)return t.leftDelim?new Je("math","mopen",t.leftDelim).decompose(e):t.rightDelim?new Je("math","mclose",t.rightDelim).decompose(e):null;const i=e.clone(),a=Ye(i,t.body),o=i.mathstyle;let r=0,s=0,n=[];if(r=C(a)*o.sizeMultiplier,s=$(a)*o.sizeMultiplier,t.leftDelim&&(n.push(t.bind(e,Ke("mopen",t.leftDelim,r,s,i,"ML__open"))),n[n.length-1].applyStyle(t.getStyle())),a){for(let o=0;o{const i=e.mathstyle,a=Ye(e.cramp(),t.body),o=r/i.sizeMultiplier,s=D(null,e.mathstyle.adjustTo(h.textstyle)+" "+t.position+"-line");let n;if(s.height=o,s.maxFontSize=1,"overline"===t.position)n=B(e,[a,3*o,s,o]);else{const t=D(a);n=B(e,[o,s,3*o,t],"top",C(t))}return[D(n,t.position,"mord")]}),Ze("mop",(e,i)=>{var a;const o=e.mathstyle;let r,s=0,n=0;if(i.isSymbol){const t=o.size===h.displaystyle.size&&"\\smallint"!==i.symbol;r=T(t?"Size2-Regular":"Size1-Regular",i.body,"op-symbol "+(t?"large-op":"small-op"),"mop"),s=(r.height-r.depth)/2-o.metrics.axisHeight*o.sizeMultiplier,n=r.italic,r.applyStyle({color:i.isPhantom?"transparent":i.color,backgroundColor:i.isPhantom?"transparent":i.backgroundColor,cssId:i.cssId,cssClass:i.cssClass,letterShapeStyle:e.letterShapeStyle})}else r=t(i.body)?D(Ye(e,i.body),"","mop"):i.makeSpan(e,i.body);i.bind(e,r),i.isSymbol&&r.setTop(s);let l=r;if(i.superscript||i.subscript){const t=null!==(a=i.limits)&&void 0!==a?a:"auto";l="limits"===t||"auto"===t&&o.size===h.displaystyle.size?i.attachLimits(e,r,s,n):i.attachSupsub(e,r,"mop")}return[l]}),Ze("overunder",(e,t)=>{const i=t.svgBody?O(t.svgBody):Ye(e,t.body),a=e.clone({mathstyle:h.scriptstyle});let o,r;t.svgAbove?o=O(t.svgAbove):t.overscript&&t.overscript.length>0&&(o=D(Ye(a,t.overscript),e.mathstyle.adjustTo(a.mathstyle))),t.svgBelow?r=O(t.svgBelow):t.underscript&&t.underscript.length>0&&(r=D(Ye(a,t.underscript),e.mathstyle.adjustTo(a.mathstyle))),o&&r&&(r.setLeft(.3),r.setRight(.3),o.setLeft(.3),o.setRight(.3));let l=function(e,t,i,a,o){if(!i&&!a)return D(t,"op-over-under",o);let r=0,l=0;i&&(r=Math.max(s,.2-$(i))),a&&(l=Math.max(n,.6-C(a)));let c=null;if(a&&i){const o=C(a)+$(a)+$(t);c=B(e,[0,a,l,t,r,i,n],"bottom",o)}else a&&!i?c=B(e,[0,a,l,t],"top",C(t)):i&&!a&&(c=B(e,[$(t),t,Math.max(n,r),i],"bottom",$(t)));return D(c,"op-over-under",o)}(e,i,o,r,w(t.type)?t.type:"mrel");return(t.superscript||t.subscript)&&(l=t.attachLimits(e,l,0,0)),[l]}),Ze("phantom",(e,t)=>{if("vphantom"===t.phantomType){const i=D(Ye(e,t.body),"inner");return[D([i,D(null,"fix")],"rlap","mord")]}if("hphantom"===t.phantomType||"smash"===t.phantomType||"bsmash"===t.phantomType||"tsmash"===t.phantomType){const i=D(Ye(e,t.body),"","mord");return"bsmash"!==t.phantomType&&(i.height=0),"tsmash"!==t.phantomType&&(i.depth=0),[D(B(e,[i]),"","mord")]}return[D(Ye(e,t.body),"","mord")]}),Ze("surd",(e,t)=>{var i;const a=e.mathstyle,o=null!==(i=Ye(e.cramp(),t.body))&&void 0!==i?i:D(""),s=r/a.sizeMultiplier;let n=s;a.idC(o)+$(o)+l&&(l=(l+d-(C(o)+$(o)))/2),c.setTop(c.height-C(o)-(l+s));const m=D(null,e.mathstyle.adjustTo(h.textstyle)+" sqrt-line");m.applyStyle(t.getStyle()),m.height=s;const p=B(e,[o,l,m,s]);if(!t.index)return[t.bind(e,D([c,p],"sqrt","mord"))];const u=D(Ye(e.clone({mathstyle:h.scriptscriptstyle}),t.index),a.adjustTo(h.scriptscriptstyle)),f=D([D(B(e,[u],"shift",-.6*(Math.max(c.height,p.height)-Math.max(c.depth,p.depth))),"root"),c,p],"sqrt","mord");return f.height=c.height,f.depth=c.depth,[t.bind(e,f)]});class ot{constructor(e,t,i,a){this.index=0,this.style={},this.parseMode="math",this.smartFence=!1,this.tabularMode=!1,this.atoms=[],this.endCount=0,this.tokens=e,this.args=t,this.macros=i,this.onError=e=>a({before:je(this.tokens.slice(this.index,this.index+10)),after:je(this.tokens.slice(Math.max(0,this.index-10),this.index)),...e})}swapAtoms(e=[]){const t=this.atoms;return this.atoms=e,t}swapParseMode(e){const t=this.parseMode;return this.parseMode=e,t}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}get(){return this.endCount=0,this.index");)e=!0;return e}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){let e=!1;do{const t=this.matchWhitespace(),i=this.match("\\relax");e=!t&&!i}while(!e)}matchKeyword(e){const t=this.index;let i=this.end(),a="";for(;!i;){const t=this.get();at(t)?(a+=t,i=this.end()||a.length>=e.length):i=!0}const o=e.toUpperCase()===a.toUpperCase();return o||(this.index=t),o}scanString(){let e="",t=this.end();for(;!t;){if(this.match(""))e+=" ";else{const i=this.peek();"]"===i?t=!0:at(i)?e+=this.get():"\\"===i[0]?(this.onError({code:"unbalanced-braces"}),e+=this.get()):t=!0}t=t||this.end()}return e}scanBalancedString(){let e="",t=this.end(),i=1;for(;!t;){if(this.match(""))e+=" ";else{const t=this.get();"<{>"===t?(e+="{",i+=1):"<}>"===t?(i-=1,i>0?e+="}":this.index-=1):e+="<$>"===t?"$":"<$$>"===t?"$$":t}t=0===i||this.end()}return e}matchLiteralArg(){var e;let t="";if(this.match("<{>")){let i=1;for(;i>0&&!this.end();){const a=this.get();"<}>"===a?(i-=1,i>0&&(t+="}")):"<{>"===a?(i+=1,t+="{"):t+=null!==(e={"":" ","<$$>":"$$","<$>":"$"}[a])&&void 0!==e?e:a}}return t}scanColor(){return xe(this.scanString())}scanNumber(e=!0){var t,i;let a=!1,o=this.peek();for(;""===o||"+"===o||"-"===o;)this.get(),"-"===o&&(a=!a),o=this.peek();e=Boolean(e);let r=10,s=/[0-9]/;if(this.match("'"))r=8,s=/[0-7]/,e=!0;else if(this.match('"')||this.match("x"))r=16,s=/[0-9A-F]/,e=!0;else if(this.match("`"))return o=this.get(),o?o.startsWith("\\")&&2===o.length?(a?-1:1)*(null!==(t=o.codePointAt(1))&&void 0!==t?t:0):(a?-1:1)*(null!==(i=o.codePointAt(0))&&void 0!==i?i:0):NaN;let n="";for(;this.hasPattern(s);)n+=this.get();if(!e&&(this.match(".")||this.match(",")))for(n+=".";this.hasPattern(s);)n+=this.get();const l=e?parseInt(n,r):parseFloat(n);return a?-l:l}scanDimen(){const e=this.scanNumber(!1);let t;return this.matchWhitespace(),this.matchKeyword("pt")?t=m(e,"pt"):this.matchKeyword("mm")?t=m(e,"mm"):this.matchKeyword("cm")?t=m(e,"cm"):this.matchKeyword("ex")?t=m(e,"ex"):this.matchKeyword("px")?t=m(e,"px"):this.matchKeyword("em")?t=m(e,"em"):this.matchKeyword("bp")?t=m(e,"bp"):this.matchKeyword("dd")?t=m(e,"dd"):this.matchKeyword("pc")?t=m(e,"pc"):this.matchKeyword("in")?t=m(e,"in"):this.matchKeyword("mu")?t=m(e,"mu"):(this.onError({code:"missing-unit"}),t=m(e,"pt")),t}scanSkip(){const e=this.scanDimen();return this.matchWhitespace(),this.matchKeyword("plus")&&this.scanDimen(),this.matchWhitespace(),this.matchKeyword("minus")&&this.scanDimen(),e}scanColspec(){this.matchWhitespace();const e=[];for(;!this.end()&&"<}>"!==this.peek()&&"]"!==this.peek();){const t=this.get();if("c"===t||"r"===t||"l"===t)e.push({align:t});else if("|"===t)e.push({rule:!0});else if("@"===t){if(this.match("<{>")){const t=this.swapParseMode("math");e.push({gap:this.parse(e=>"<}>"===e)}),this.swapParseMode(t)}this.match("<}>")||this.onError({code:"unbalanced-braces"})}}return e}parseModeSet(){let e="";if(this.match("\\(")&&(e="\\)"),!e&&this.match("\\[")&&(e="\\]"),!e)return null;const t=this.swapParseMode("math"),i=new Je("math","group");return i.mathstyle="\\)"===e?"textstyle":"displaystyle",i.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(t),i.body&&0!==i.body.length?i:null}parseModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;const t=new Je("math","group");t.mathstyle="<$>"===e?"textstyle":"displaystyle",t.latexOpen="<$>"===e?"$":"$$",t.latexClose=t.latexOpen;const i=this.swapParseMode("math");return t.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(i),t.body&&0!==t.body.length?t:null}parseEnvironment(){if(!this.match("\\begin"))return null;const e=this.parseArgument("string");if(!e)return null;const t=re(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const i=[];if(null==t?void 0:t.params)for(const a of t.params)if(a.isOptional)i.push(this.parseOptionalArgument(a.type));else{const t=this.parseArgument(a.type);t||this.onError({code:"missing-argument",arg:e}),i.push(t)}const a=this.parseMode,o=this.tabularMode,r=this.swapAtoms([]);this.tabularMode=t.tabular;const s=[],n=[];let l=[],c=!1;do{if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c&&this.match("\\end")&&(this.parseArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c)if(this.matchColumnSeparator())l.push(this.swapAtoms([]));else if(this.matchRowSeparator()){l.push(this.swapAtoms([]));let e=0;this.matchWhitespace(),this.match("[")&&(e=this.scanDimen(),this.matchWhitespace(),this.match("]")),n.push(e||0),s.push(l),l=[]}else this.atoms=this.atoms.concat(this.parse(e=>"<}>"===e||"&"===e||"\\end"===e||"\\cr"===e||"\\\\"===e))}while(!c);l.push(this.swapAtoms([])),l.length>0&&s.push(l);const d=this.swapAtoms(r);if(this.parseMode=a,this.tabularMode=o,!t.tabular&&0===d.length)return null;if(t.tabular&&0===s.length)return null;const m=new Je(this.parseMode,"array",d);return Object.assign(m,t.parser(e,i,s)),m.array=s,m.rowGaps=n,m.environmentName=e,m}parse(e){var t;const i=this.style;e||(e=e=>"<}>"===e);let a="",o=null,r=[],s=null;const n=this.swapAtoms([]);for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!a?(a=this.get(),o=se(a,"math",this.macros),o&&(r=this.parseArguments(o)[1]),s=this.swapAtoms([])):this.parseToken();let l;return a?(r.unshift(this.swapAtoms(n)),s&&r.unshift(s),l=[new Je(this.parseMode,o.type,null!==(t=o.value)&&void 0!==t?t:a.slice(1),o.parse?o.parse(a,r):null)],l[0].symbol=a):l=this.swapAtoms(n),this.style=i,l}parseGroup(){if(!this.match("<{>"))return null;const e=new Je(this.parseMode,"group");return e.body=this.parse(e=>"<}>"===e),this.match("<}>")||this.onError({code:"unbalanced-braces"}),e.latexOpen="{",e.latexClose="}",e}scanSmartFence(){if(this.matchWhitespace(),!this.match("("))return null;const e=new Je(this.parseMode,"leftright");e.leftDelim="(",e.inner=!1;const t=this.swapAtoms([]);let i=1;for(;!this.end()&&0!==i;)this.match("(")&&(i+=1),this.match(")")&&(i-=1),0!==i&&this.parseToken();return 0===i&&this.match(")"),e.rightDelim=0===i?")":"?",e.body=this.swapAtoms(t),e}scanDelim(){this.matchWhitespace();const e=this.get();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;let t=".";("\\"===e[0]||at(e))&&(t=e);const i=se(t,"math",this.macros);return i?i.mode&&!i.mode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:t}),null):"mopen"===i.type||"mclose"===i.type||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(t)?t:(this.onError({code:"unexpected-delimiter",arg:t}),null):(this.onError({code:"unknown-command",arg:t}),null)}parseLeftRight(){if(this.match("\\right")||this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),null;const e=this.style;let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const i=this.scanDelim();if(!i)return null;const a=this.swapAtoms([]);for(;!this.end()&&!this.match(t);)this.parseToken();this.style=e;const o=this.scanDelim(),r=new Je(this.parseMode,"leftright","",this.style);return r.leftDelim=i,r.rightDelim=null!=o?o:void 0,r.inner="right"===t,r.body=this.swapAtoms(a),r}parseSupSub(){var e,t;if("math"!==this.parseMode)return!1;let i=!1,a=this.peek();for(;"^"===a||"_"===a||"'"===a;){const o="_"===a?"subscript":"superscript";if(this.match("^")||this.match("_")){const t=this.parseArgument("math");if(t){const a=this.lastSubsupAtom();a[o]=(null!==(e=a[o])&&void 0!==e?e:[]).concat(t),i=!0}}else if(this.match("'")){const e=this.lastSubsupAtom(),a=new Je(e.mode,"mord","′");a.symbol="\\prime",e.superscript=null!==(t=e.superscript)&&void 0!==t?t:[],e.superscript.push(a),i=!0}a=this.peek()}return i}parseLimits(){if(this.match("\\limits")){const e=this.lastSubsupAtom();return e.limits="limits",e.explicitLimits=!0,!0}if(this.match("\\nolimits")){const e=this.lastSubsupAtom();return e.limits="nolimits",e.explicitLimits=!0,!0}return!1}parseArguments(e){if(!e||!e.params)return[void 0,[]];let t;const i=[];let a=e.infix?2:0;for(;a")){if("delim"===e)return null!==(t=this.scanDelim())&&void 0!==t?t:".";if(/^(math|text)$/.test(e)){const t=this.swapParseMode(e),i=this.parseSimpleToken();return this.swapParseMode(t),i}}const a=this.parseMode;this.parseMode=e;const o=this.swapAtoms([]);if("string"===e)i=this.scanString(),this.skipUntilToken("<}>");else if("balanced-string"===e)i=this.scanBalancedString(),this.skipUntilToken("<}>");else if("number"===e)i=this.scanNumber(),this.skipUntilToken("<}>");else if("dimen"===e)i=this.scanDimen(),this.skipUntilToken("<}>");else if("skip"===e)i=this.scanSkip(),this.skipUntilToken("<}>");else if("colspec"===e)i=this.scanColspec(),this.skipUntilToken("<}>");else if("color"===e)i=this.scanColor()||"#ffffff",this.skipUntilToken("<}>");else if("delim"===e)i=this.scanDelim()||".",this.skipUntilToken("<}>");else{const t=this.index;let a=1;do{const e=this.get();"<}>"===e&&(a-=1),"<{>"===e&&(a+=1)}while(a>0&&!this.end());if(i=function(e,t,i,a){var o;return(null===(o=x[e])||void 0===o?void 0:o.parse)?x[e].parse(t,i,a):null}(e,this.tokens.slice(t,this.index-1),this.onError,{args:this.args,macros:this.macros,smartFence:this.smartFence,style:this.style,parse:(e,t,a)=>{const o=new ot(t,a.args,a.macros,this.onError);return o.parseMode=e,o.style=a.style,i=o.parse(),[i,t.slice(o.index)]}}),!i){this.index=t;do{this.atoms=this.atoms.concat(this.parse())}while(!this.match("<}>")&&!this.end())}}this.parseMode=a;const r=this.swapAtoms(o);return null!=i?i:r}parseOptionalArgument(e){var t;if(e="auto"===e?this.parseMode:e,this.matchWhitespace(),!this.match("["))return null;const i=this.parseMode;this.parseMode=e;const a=this.swapAtoms();let o;for(;!this.end()&&!this.match("]");)if("string"===e)o=this.scanString();else if("number"===e)o=this.scanNumber();else if("dimen"===e)o=this.scanDimen();else if("skip"===e)o=this.scanSkip();else if("colspec"===e)o=this.scanColspec();else if("color"===e)o=null!==(t=this.scanColor())&&void 0!==t?t:"#ffffff";else if("bbox"===e){const e=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/),t={};for(const i of e){const e=xe(i);if(e)t.backgroundcolor=e;else{const e=i.match(/^\s*([0-9.]+)\s*([a-z][a-z])/);if(e)t.padding=m(e[1],e[2]);else{const e=i.match(/^\s*border\s*:\s*(.*)/);e&&(t.border=e[1])}}}o=t}else this.atoms=this.atoms.concat(this.parse(e=>"]"===e));this.parseMode=i;const r=this.swapAtoms(a);return null!=o?o:r}parseSimpleToken(){const e=this.get();if(!e)return null;let i=null;if(""===e)"text"===this.parseMode&&(i=new Je("text",""," ",this.style),i.symbol=" ");else if("\\"===e[0]){if("\\placeholder"===e)i=new Je(this.parseMode,"placeholder",this.parseArgument("string"),this.style),i.captureSelection=!0;else if("\\char"===e){const e=this.index;let t=Math.floor(this.scanNumber(!0));(!isFinite(t)||t<0||t>1114111)&&(t=10067),i=new Je(this.parseMode,"math"===this.parseMode?"mord":"",String.fromCodePoint(t)),i.symbol="\\char",i.latex="\\char"+je(this.tokens.slice(e,this.index))}else if("\\hskip"===e||"\\kern"===e){const t=this.scanSkip();isFinite(t)&&(i=new Je(this.parseMode,"spacing",null,this.style),i.width=t,i.symbol=e,i.latex=e)}else if(i=this.scanMacro(e),!i){const t=se(e,this.parseMode,{});if(!t)return this.onError({code:"unknown-command",arg:e}),i=new Je("math","error",e),i.symbol=e,i.latex=e,[i];if(t.mode&&!t.mode.includes(this.parseMode))return this.onError({code:"invalid-command",arg:e}),i=new Je("math","error",e),i.symbol=e,i.latex=e,[i];const a=this.index,[o,r]=this.parseArguments(t);if(!r)return null;if(t.infix)this.onError({code:"too-many-infix-commands",arg:e});else{if(t.parse){const a=t.parse(e,r);if(a.type)i=new Je(this.parseMode,t.type,o?this.parseArgument(o):null,{...this.style,...a});else{const e=this.parseMode;if(a.mode&&(this.parseMode=a.mode,delete a.mode),a.mathstyle){this.parseMode="math";const e=new Je("math","mathstyle");e.mathstyle=a.mathstyle,this.atoms.push(e)}if(o){const e=this.style;this.style={...this.style,...a},i=this.parseArgument(o),this.style=e}else this.style={...this.style,...a};this.parseMode=e}}else{const a={...this.style,variant:t.variant||this.style.variant,variantStyle:t.variantStyle||this.style.variantStyle};i=new Je(this.parseMode,t.type||"mop",t.value||e,a)}if(i instanceof Je&&!/^\\(llap|rlap|class|cssId)$/.test(e)){i.symbol=e;const t=je(this.tokens.slice(a,this.index));if(t&&(i.latex=i.symbol+t),i.isFunction&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}}}}else if(at(e)){const t=se(e,this.parseMode,this.macros);if(t){const a={...this.style};i=new Je(this.parseMode,t.type,t.value||e,a),t.isFunction&&(i.isFunction=!0)}else i=new Je(this.parseMode,"math"===this.parseMode?"mord":"",e,this.style);if(i.symbol=e,i.latex=te(this.parseMode,e),(null==t?void 0:t.isFunction)&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}else"<}>"===e?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e});return i&&!t(i)?[i]:i}scanMacro(e){var t;const i=e.slice(1);if(!this.macros||!this.macros[i])return null;const a=this.index,o=[];let r,s=0;"string"==typeof this.macros[i]?(r=this.macros[i],/(^|[^\\])#1/.test(r)&&(s=1),/(^|[^\\])#2/.test(r)&&(s=2),/(^|[^\\])#3/.test(r)&&(s=3),/(^|[^\\])#4/.test(r)&&(s=4),/(^|[^\\])#5/.test(r)&&(s=5),/(^|[^\\])#6/.test(r)&&(s=6),/(^|[^\\])#7/.test(r)&&(s=7),/(^|[^\\])#8/.test(r)&&(s=8),/(^|[^\\])#9/.test(r)&&(s=9)):(r=this.macros[i].def,s=this.macros[i].args||0);for(let e=1;e<=s;e++)o[e]=this.matchLiteralArg();o["?"]=null===(t=this.args)||void 0===t?void 0:t["?"];const n=new Je(this.parseMode,"group",rt(r,this.parseMode,o,this.macros,!1,this.onError));return n.captureSelection=!0,n.symbol=e,n.latex=e+je(this.tokens.slice(a,this.index)),n}parseToken(){let e=this.parseEnvironment()||this.parseModeShift()||this.parseModeSet()||this.parseGroup()||this.parseLeftRight();return!(e||!this.parseSupSub()&&!this.parseLimits())||(e||(e=this.parseSimpleToken()),t(e)?this.atoms=this.atoms.concat(e):e&&this.atoms.push(e),null!==e)}}function rt(e,t,i,a,o=!1,r){let s=[];const n=new ot(We(e,i),i,a,t=>{"function"==typeof r&&r({...t,latex:e})});for(n.parseMode=t||"math",o&&(n.smartFence=!0);!n.end();){const e=n.parse();e&&(s=s.concat(e))}return s}var st,nt;const lt=null!==(nt=null===(st=document.currentScript)||void 0===st?void 0:st.src)&&void 0!==nt?nt:function(){const e=String((new Error).stack).replace(/^Error.*\n/,"").split("\n");if(0===e.length)return"";const t=e[0].match(/http.*js/);return t?t[0]:""}();async function ct(e,t){var i;if((null===(i=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))||void 0===i||!i)&&"fonts"in document){const i=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"];let a=!1;if(!/firefox/i.test(navigator.userAgent))try{a=i.every(e=>document.fonts.check("16px "+e))}catch(e){a=!1}if(!a){if(document.body.classList.contains("ML__fonts-loading"))return;document.body.classList.add("ML__fonts-loading");const i=new URL(null!=e?e:"./fonts",lt).toString(),a=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular",{style:"italic"}],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(e=>function(e,t,i={}){return new FontFace(e,`url(${t}.woff2) format('woff2'), url(${t}.woff) format('woff')`,i)}(e[0].replace(/-[a-zA-Z]+$/,""),i+"/"+e[0],e[1]));try{(await Promise.all(a.map(e=>{try{return e.load()}catch(e){"function"==typeof t&&t({code:"font-not-found",arg:e})}}))).forEach(e=>document.fonts.add(e)),document.body.classList.remove("ML__fonts-loading")}catch(e){}}}}function dt(e,t){var i,a;if(!t)return null;let o=null!==(i=null==e?void 0:e.getRootNode())&&void 0!==i?i:null===document||void 0===document?void 0:document.head;if(!o)return null;o===document&&(o=document.head);const r=function(e){let t=0;if(0===e.length)return t;for(let i=0;i{var e;const t=document.head.querySelector(`style[data-id="${r}"]`);if(t){const i=parseFloat(null!==(e=t.getAttribute("data-refcount"))&&void 0!==e?e:"0");1===i?t.remove():t.setAttribute("data-refcount",Number(i-1).toString())}}}}function mt(e){return 0===e.length||1===e.length&&"first"===e[0].type}function pt(e){const t=e.siblings();for(let e=t.length-1;e>=0;e--)t[e].isSuggestion&&t.splice(e,1)}function ut(e){let t=1,i=e.ancestor(t);for(;i;)i.latex=void 0,t+=1,i=e.ancestor(t)}function ht(e,t,i={accessibleAtomsOnly:!1}){const a={...t},o=i.accessibleAtomsOnly?e.lastPosition-1:e.lastPosition;return-1===a.end?a.end=o:isNaN(a.end)?a.end=a.start:a.end=Math.min(a.end,o),a.start1&&(t.extent=parseInt(i[1]));const a=i[0].split("/");for(const e of a){const i=e.match(/([^:]*):(.*)/);i&&t.path.push({relation:i[1],offset:parseInt(i[2])})}return t}function yt(e,t){let i=0,a=-1,o=!1;for(;!o;)a+=1,o=a>=e.length||a>=t.length,o=o||!(e[a].relation===t[a].relation&&e[a].offset===t[a].offset);return i=a===e.length&&a===t.length?0:a+1===e.length&&a+1===t.length&&e[a].relation===t[a].relation?1:2,i}function bt(e){return gt(ft(e)).path}function vt(e,t){let i=0;for(let a=0;a0;)a.col+=1,(!e[a.row]||a.col>=e[a.row].length)&&(a.col=0,a.row+=1),i-=1;return a}function kt(e,i,a=!0){var o;let r;return"object"!=typeof i&&(i=xt(e,i)),t(e[i.row])&&(r=null!==(o=e[i.row][i.col])&&void 0!==o?o:null),a&&r&&(0===r.length||"first"!==r[0].type)&&r.unshift(new Je("math","first")),r}function _t(e){let t=0,i=0,a=1;for(const t of e)i+=1,t.length>a&&(a=t.length);return t=i*a,t}function wt(e,t,i){const a={...t};if(a.row+=i,a.row<0){if(a.col+=i,a.row=e.length-1,a.col<0)return null;for(;a.row>=0&&!kt(e,a);)a.row-=1;if(a.row<0)return null}else if(a.row>=e.length){for(a.col+=i,a.row=0;a.rowe.length-1)return null}return a}const Mt={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML_bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},zt={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[0-9A-Z ]$/,fraktur:/^[0-9A-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/,"sans-serif":/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/},St=/^[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5]$/,Lt=[/^[a-z]$/,/^[A-Z]$/,St,/^[\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9]$/],At={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]};k("math",{emitLatexRun:function(e,t,i){let a=e.variant;return e.variantStyle&&"up"!==e.variantStyle&&(a+="-"+e.variantStyle),Ue(v(t,"color").map(t=>{const o=Ue(v(t,"variant").map(t=>{let o=t[0].variant;if(t[0].variantStyle&&"up"!==t[0].variantStyle&&(o+="-"+t[0].variantStyle),t.every(t=>{const i=se(t.symbol,e.mode,null);if(!i||!i.variant&&!i.variantStyle)return!1;let a=t.variant;return t.variantStyle&&"up"!==t.variantStyle&&(a+="-"+t.variantStyle),a===o}))return Ue(t.map(e=>e.toLatex(i)));let r="";return o&&o!==a&&(r={calligraphic:"\\mathcal{",fraktur:"\\mathfrak{","double-struck":"\\mathbb{",script:"\\mathscr{",monospace:"\\mathtt{","sans-serif":"\\mathsf{",normal:"\\mathrm{","normal-italic":"\\mathit{","normal-bold":"\\mathbf{","normal-bolditalic":"\\mathbfit{",ams:"","ams-italic":"\\mathit{","ams-bold":"\\mathbf{","ams-bolditalic":"\\mathbfit{",main:"","main-italic":"\\mathit{","main-bold":"\\mathbf{","main-bolditalic":"\\mathbfit{"}[o]),r+Ue(t.map(e=>e.toLatex(i)))+(r?"}":"")}));return!t[0].color||e&&e.color===t[0].color?o:"\\textcolor{"+ke(t[0].color)+"}{"+o+"}"}))},applyStyle:function(e,t){const i="auto"!==t.letterShapeStyle&&t.letterShapeStyle?t.letterShapeStyle:"tex";let a=t.variant||"normal",o=t.variantStyle||"";"normal"===a&&!o&&/\u00a3|\u0131|\u0237/.test(e.body)&&(a="main",o="italic"),"normal"!==a||o||1!==e.body.length||Lt.forEach((t,a)=>{t.test(e.body)&&"it"===At[i][a]&&(o="italic")}),"up"===o&&(o="");const r=o?a+"-"+o:a,[s,n]=Mt[r];return zt[a]&&!zt[a].test(e.body)?(e.body=ee(e.body,a,o),e.variant="",e.variantStyle="",null):(St.test(e.body)&&(e.classes+=" lcGreek"),n&&(e.classes+=" "+n),s)}});const Ct={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"};k("text",{emitLatexRun:function(e,t,i){const a=function(e,t,i){return Ue(v(t,"color").map(t=>{const i=function(e,t,i){return function(e,t,i){return Ue(v(t,"fontFamily").map(e=>{const t=function(e,t,i){return Ue(v(t,"fontSize").map(e=>{const t=function(e,t,i){return Ue(v(t,"fontSeries").map(e=>{const t=function(e,t,i){return Ue(v(t,"fontShape").map(e=>{const t=function(e,t,i){let a=!1;return Ue(t.map(e=>{let t="",i="";return e.latex?t=e.latex:"string"==typeof e.body?t=ie("text",e.body):e.symbol&&(t=e.symbol.replace(/\\/g,"\\backslash ")),!a||t&&!/^[a-zA-Z0-9*]/.test(t)||(i="{}"),a=/\\[a-zA-Z0-9]+\*?$/.test(t),i+t}))}(0,e);return"it"===e[0].fontShape?"\\textit{"+t+"}":"sl"===e[0].fontShape?"\\textsl{"+t+"}":"sc"===e[0].fontShape?"\\textsc{"+t+"}":"n"===e[0].fontShape?"\\textup{"+t+"}":e[0].fontShape?"\\fontshape{"+e[0].fontShape+"}"+t:t}))}(0,e);return"b"===e[0].fontSeries?"\\textbf{"+t+"}":"l"===e[0].fontSeries?"\\textlf{"+t+"}":"m"===e[0].fontSeries?"\\textmd{"+t+"}":e[0].fontSeries?"\\fontseries{"+e[0].fontSeries+"}"+t:t}))}(0,e),i={size1:"tiny",size2:"scriptsize",size3:"footnotesize",size4:"small",size5:"normalsize",size6:"large",size7:"Large",size8:"LARGE",size9:"huge",size10:"Huge"}[e[0].fontSize]||"";return i?"\\"+i+" "+t:t}))}(0,e),i={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[e[0].fontFamily]||"";return i?"\\"+i+"{"+t+"}":e[0].fontFamily?"\\fontfamily{"+e[0].fontFamily+"}"+t:t}))}(0,t)}(0,t);return!t[0].color||"none"===t[0].color||e&&e.color===t[0].color?i:"\\textcolor{"+ke(t[0].color)+"}{"+i+"}"}))}(e,t);return t.every(e=>e.fontSeries||e.fontShape||e.fontFamily)&&t[0].mode===e.mode?a:`\\text{${a}}`},applyStyle:function(e,t){const i=t.fontFamily;if(Ct[i]?e.classes+=" "+Ct[i]:i&&e.setStyle("font-family",i),t.fontShape&&(e.classes+=" "+({it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape]||"")),t.fontSeries){const i=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);i&&(e.classes+=" "+({ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[i[1]||""]||""),e.classes+=" "+({uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[i[2]||""]||""))}return"Main-Regular"},parse:(e,t,i)=>function(e,t,i){let a,o=[];for(;e.length>0;){const r=e.shift();if(""===r)a=new Je("text",""," ",i.style),a.symbol=" ",o.push(a);else if("\\"===r[0]){let t;e.unshift(r),[t,e]=i.parse("text",e,i),o=[...o,...t]}else if("<$>"===r||"<$$>"===r){const t=e.slice(0,e.findIndex(e=>e===r));e=e.slice(t.length+1);const[a]=i.parse("math",t,i);o=[...o,...a]}else if("<{>"===r||"<}>"===r);else{const e=se(r,"text",i.macros);!e||e.mode&&!e.mode.includes("text")?t({code:"unexpected-token"}):(a=new Je("text",e?e.type:"",e?e.value:r,i.style),a.symbol=r,a.latex=Y("text",r),o.push(a))}}return[o,e]}(e,t,i)[0]}),ue(["ce","pu"],"{chemformula:balanced-string}",null,(e,t)=>({type:"group",mode:"chem",body:rt(qt.go($t.go(t[0],"\\pu"===e?"pu":"ce"))),latexOpen:"\\"+e+"{",latexClose:"}"}));var $t={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var i,a="0",o={parenthesisLevel:0};e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var r=10,s=[];;){i!==e?(r=10,i=e):r--;var n=$t.stateMachines[t],l=n.transitions[a]||n.transitions["*"];e:for(var c=0;c0))return s;if(m.revisit||(e=d.remainder),!m.toContinue)break e}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var i=0;i":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return $t.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return $t.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return $t.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return $t.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return $t.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return $t.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var i=$t.patterns.findObserveGroups(e,"","$","$","");return i&&(t=i.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,i,a,o,r,s,n,l,c){var d=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var i=e.match(t);return i?i[0]:null},m=d(e,t);if(null===m)return null;if(e=e.substr(m.length),null===(m=d(e,i)))return null;var p=function(e,t,i){for(var a=0;t":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var i;if((e.d||"").match(/^[0-9]+$/)){var a=e.d;e.d=void 0,i=this.output(e),e.b=a}else i=this.output(e);return $t.actions["o="](e,t),i},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var i=[];return $t.concatArray(i,this.output(e)),$t.concatArray(i,$t.actions.bond(e,t,"-")),i}e.d=t},"- after o/d":function(e,t,i){var a=$t.patterns.match_("orbital",e.o||""),o=$t.patterns.match_("one lowercase greek letter $",e.o||""),r=$t.patterns.match_("one lowercase latin letter $",e.o||""),s=$t.patterns.match_("$one lowercase latin letter$ $",e.o||""),n="-"===t&&(a&&""===a.remainder||o||r||s);!n||e.a||e.b||e.p||e.d||e.q||a||!r||(e.o="$"+e.o+"$");var l=[];return n?($t.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(a=$t.patterns.match_("digits",e.d||""),i&&a&&""===a.remainder?($t.concatArray(l,$t.actions["d="](e,t)),$t.concatArray(l,this.output(e))):($t.concatArray(l,this.output(e)),$t.concatArray(l,$t.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:$t.go(t,"o")}},comma:function(e,t){var i=t.replace(/\s*$/,"");return i!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:i}:{type_:"comma enumeration M",p1:i}},output:function(e,t,i){var a,o,r;for(var s in e.r?(o="M"===e.rdt?$t.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:$t.go(e.rd),r="M"===e.rqt?$t.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:$t.go(e.rq),a={type_:"arrow",r:e.r,rd:o,rq:r}):(a=[],(e.a||e.b||e.p||e.o||e.q||e.d||i)&&(e.sb&&a.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===i?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&$t.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),a.push({type_:"chemfive",a:$t.go(e.a,"a"),b:$t.go(e.b,"bd"),p:$t.go(e.p,"pq"),o:$t.go(e.o,"o"),q:$t.go(e.q,"pq"),d:$t.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType}))),e)"parenthesisLevel"!==s&&"beginsWithBond"!==s&&delete e[s];return a},"oxidation-output":function(e,t){var i=["{"];return $t.concatArray(i,$t.go(t,"oxidation")),i.push("}"),i},"frac-output":function(e,t){return{type_:"frac-ce",p1:$t.go(t[0]),p2:$t.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:$t.go(t[0]),p2:$t.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:$t.go(t[0]),p2:$t.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:$t.go(t[0]),p2:$t.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:$t.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,i){return{type_:"operator",kind_:i||t}}}},a:{transitions:$t.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:$t.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var i in e)delete e[i];return t}}}},pq:{transitions:$t.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:$t.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:$t.go(t[1],"pq")}}}},bd:{transitions:$t.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:$t.go(t[1],"bd")}}}},oxidation:{transitions:$t.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"tex-math tight":{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"9,9":{transitions:$t.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),t[1]&&($t.concatArray(i,$t.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?$t.concatArray(i,$t.go(t[2],"pu-9,9")):i.push(t[2])),t[3]=t[4]||t[3],t[3]&&(t[3]=t[3].trim(),"e"===t[3]||"*"===t[3].substr(0,1)?i.push({type_:"cdot"}):i.push({type_:"times"}))),t[3]&&i.push("10^{"+t[5]+"}"),i},"number^":function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),$t.concatArray(i,$t.go(t[1],"pu-9,9")),i.push("^{"+t[2]+"}"),i},operator:function(e,t,i){return{type_:"operator",kind_:i||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,i=$t.patterns.match_("{(...)}",e.d||"");i&&""===i.remainder&&(e.d=i.match_);var a=$t.patterns.match_("{(...)}",e.q||"");if(a&&""===a.remainder&&(e.q=a.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:$t.go(e.d,"pu"),q:$t.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:o.d,p2:o.q}:(t=o.d,o.d.length>1||o.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),$t.concatArray(t,o.q))}else t=$t.go(e.d,"pu-2");for(var r in e)delete e[r];return t}}},"pu-2":{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var i=$t.patterns.match_("{(...)}",e.rm||"");t=i&&""===i.remainder?$t.go(i.match_,"pu"):{type_:"rm",p1:e.rm}}for(var a in e)delete e[a];return t}}},"pu-9,9":{transitions:$t.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var i=e.text_.length%3;0===i&&(i=3);for(var a=e.text_.length-3;a>0;a-=3)t.push(e.text_.substr(a,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,i)),t.reverse()}else t.push(e.text_);for(var o in e)delete e[o];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var i=e.text_.length-3,a=0;a":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"rightleftarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"rightequilibrium";case"<<=>":return"leftequilibrium";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";case"~=":case"~--":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"-~-":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};const Dt={"''":{mode:"math",value:"^{\\doubleprime}"},alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:{mode:"math",value:"\\pi"},"pi ":{mode:"text",value:"\\pi "},Pi:{mode:"math",value:"\\Pi"},theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:{mode:"math",value:"\\nabla"},grad:{mode:"math",value:"\\nabla"},del:{mode:"math",value:"\\partial"},"∞":"\\infty",oo:{mode:"math",after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"∑":{mode:"math",value:"\\sum"},sum:{mode:"math",value:"\\sum_{#?}^{#?}"},prod:{mode:"math",value:"\\prod_{#?}^{#?}"},sqrt:{mode:"math",value:"\\sqrt{#?}"},"∆":{mode:"math",value:"\\differentialD"},"∂":{mode:"math",value:"\\differentialD"},arcsin:{mode:"math",value:"\\arcsin"},arccos:{mode:"math",value:"\\arccos"},arctan:{mode:"math",value:"\\arctan"},sin:{mode:"math",value:"\\sin"},sinh:{mode:"math",value:"\\sinh"},cos:{mode:"math",value:"\\cos"},cosh:{mode:"math",value:"\\cosh"},tan:{mode:"math",value:"\\tan"},tanh:{mode:"math",value:"\\tanh"},sec:{mode:"math",value:"\\sec"},csc:{mode:"math",value:"\\csc"},cot:{mode:"math",value:"\\cot"},log:{mode:"math",value:"\\log"},ln:{mode:"math",value:"\\ln"},exp:{mode:"math",value:"\\exp"},lim:{mode:"math",value:"\\lim_{#?}"},dx:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:{mode:"math",value:"\\forall"},EE:{mode:"math",value:"\\exists"},"!EE":{mode:"math",value:"\\nexists"},"&&":{mode:"math",value:"\\land"},xin:{mode:"math",after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},in:{mode:"math",after:"nothing+letter+closefence",value:"\\in"},"!in":{mode:"math",value:"\\notin"},NN:"\\N",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",PP:"\\P",xx:{mode:"math",value:"\\times"},"+-":{mode:"math",value:"\\pm"},"!=":{mode:"math",value:"\\ne"},">=":{mode:"math",value:"\\ge"},"<=":{mode:"math",value:"\\le"},"<<":{mode:"math",value:"\\ll"},">>":{mode:"math",value:"\\gg"},"~~":{mode:"math",value:"\\approx"},"≈":{mode:"math",value:"\\approx"},"?=":{mode:"math",value:"\\questeq"},"÷":{mode:"math",value:"\\div"},"¬":{mode:"math",value:"\\neg"},":=":{mode:"math",value:"\\coloneq"},"::":{mode:"math",value:"\\Colon"},"(:":{mode:"math",value:"\\langle"},":)":{mode:"math",value:"\\rangle"},beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},"eta ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta "},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},"mu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu "},nu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},"nu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu "},"µ":"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega","Ω":"\\omega",forall:{mode:"math",value:"\\forall"},exists:{mode:"math",value:"\\exists"},"!exists":{mode:"math",value:"\\nexists"},":.":{mode:"math",value:"\\therefore"},liminf:"\\operatorname*{lim~inf}_{#?}",limsup:"\\operatorname*{lim~sup}_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:{mode:"math",value:"\\mod"},max:{mode:"math",value:"\\max"},min:{mode:"math",value:"\\min"},erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:{mode:"math",value:"\\operatorname{bessel}"},mean:{mode:"math",value:"\\operatorname{mean}"},median:{mode:"math",value:"\\operatorname{median}"},fft:{mode:"math",value:"\\operatorname{fft}"},lcm:{mode:"math",value:"\\operatorname{lcm}"},gcd:{mode:"math",value:"\\operatorname{gcd}"},randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:{mode:"math",value:"\\operatorname{Re}"},Im:{mode:"math",value:"\\operatorname{Im}"},mm:{mode:"math",after:"nothing+digit",value:"\\operatorname{mm}"},cm:{mode:"math",after:"nothing+digit",value:"\\operatorname{cm}"},km:{mode:"math",after:"nothing+digit",value:"\\operatorname{km}"},kg:{mode:"math",after:"nothing+digit",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","->":"\\to","|->":"\\mapsto","--\x3e":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","{":"\\{","}":"\\}","*":"\\cdot"};function Tt(e,t,i){var a;return function(e,t){if(!t)return"";if("string"==typeof t)return t;if(!e)return t.value;let i=!1,a=!1,o=!1,r=!1,s=!1,n=!1,l=!1,c=!1,d=!1,m=!1,p=!1,u=!1,h=!1,f=!1,g=e[e.length-1],y=e.length-1;for(;g&&/msubsup|placeholder/.test(g.type);)y-=1,g=e[y];if(i=!g||"first"===g.type,g){if(void 0!==t.mode&&g.mode!==t.mode)return"";h="text"===g.mode,a=!h&&"mord"===g.type&&j.test(g.body),o=!h&&"mord"===g.type&&/[0-9]+$/.test(g.body),r=!h&&g.isFunction,s="genfrac"===g.type,n="surd"===g.type,l="mbin"===g.type,c="mrel"===g.type,d="mpunct"===g.type||"minner"===g.type,m=Boolean(g.array),p="mopen"===g.type,u="mclose"===g.type||"leftright"===g.type,f="space"===g.type}return void 0!==t.after?/nothing/.test(t.after)&&i||/letter/.test(t.after)&&a||/digit/.test(t.after)&&o||/function/.test(t.after)&&r||/frac/.test(t.after)&&s||/surd/.test(t.after)&&n||/binop/.test(t.after)&&l||/relop/.test(t.after)&&c||/punct/.test(t.after)&&d||/array/.test(t.after)&&m||/openfence/.test(t.after)&&p||/closefence/.test(t.after)&&u||/text/.test(t.after)&&h||/space/.test(t.after)&&f?t.value:"":t.value}(e,null!==(a=null==i?void 0:i[t])&&void 0!==a?a:Dt[t])}function Kt(e,t){if(!e)return["latex",""];if(e.length<=1)return["latex",e];if(!t||"ASCIIMath"!==t.format){const t=e.trim();if(t.startsWith("$$")&&t.endsWith("$$")||t.startsWith("\\[")&&t.endsWith("\\]")||t.startsWith("\\(")&&t.endsWith("\\)"))return["latex",t.substring(2,t.length-2)];if(t.startsWith("$")&&t.endsWith("$"))return["latex",t.substring(1,t.length-1)];if(e=e.replace(/\\\\([^\s\n])/g,"\\$1"),/\\/.test(e))return["latex",e]}return e=(e=(e=(e=(e=(e=e.replace(/\u2061/gu,"")).replace(/\u3016/gu,"{")).replace(/\u3017/gu,"}")).replace(/([^\\])sinx/g,"$1\\sin x")).replace(/([^\\])cosx/g,"$1\\cos x ")).replace(/\u2013/g,"-"),[(null==t?void 0:t.format)||"ASCIIMath",Et(e,null!=t?t:{})]}function Et(e,t){var i,a,o,r,s,n,l;if(!e)return"";let c,d=!1;if(d||"^"!==e[0]&&"_"!==e[0]||(c=Nt(e.substr(1),{inlineShortcuts:null!==(i=null==t?void 0:t.inlineShortcuts)&&void 0!==i?i:{},noWrap:!0}),e=e[0]+"{"+c.match+"}",e+=Et(c.rest,t),d=!0),!d&&(c=e.match(/^(sqrt|\u221a)(.*)/),c)&&(c=Nt(c[2],{inlineShortcuts:null!==(a=null==t?void 0:t.inlineShortcuts)&&void 0!==a?a:{},noWrap:!0}),e="\\sqrt{"+(c.match||"\\placeholder{}")+"}",e+=Et(c.rest,t),d=!0),!d&&(c=e.match(/^(\\cbrt|\u221b)(.*)/),c)&&(c=Nt(c[2],{inlineShortcuts:null!==(o=null==t?void 0:t.inlineShortcuts)&&void 0!==o?o:{},noWrap:!0}),e="\\sqrt[3]{"+(c.match||"\\placeholder{}")+"}",e+=Et(c.rest,t),d=!0),d||(c=e.match(/^abs(.*)/),c&&(c=Nt(c[1],{inlineShortcuts:null!==(r=null==t?void 0:t.inlineShortcuts)&&void 0!==r?r:{},noWrap:!0}),e="\\left|"+c.match+"\\right|",e+=Et(c.rest,t),d=!0)),d||(c=e.match(/^["”“](.*?)["”“](.*)/),c&&(e="\\text{"+c[1]+"}",e+=Et(c[2],t),d=!0)),d||(c=e.match(/^([^a-zA-Z({[_^\\\s"]+)(.*)/),c&&(e=Bt(c[1],t),e+=Et(c[2],t),d=!0)),!d&&/^(f|g|h)[^a-zA-Z]/.test(e)&&(c=Nt(e.substring(1),{inlineShortcuts:null!==(s=t.inlineShortcuts)&&void 0!==s?s:{},noWrap:!0}),e="("===e[1]?e[0]+"\\mleft("+c.match+"\\mright)":e[0]+c.match,e+=Et(c.rest,t),d=!0),d||(c=e.match(/^([a-zA-Z]+)(.*)/),c&&(e=Bt(c[1],t),e+=Et(c[2],t),d=!0)),!d)if(c=Nt(e,{inlineShortcuts:null!==(n=t.inlineShortcuts)&&void 0!==n?n:{},noWrap:!0}),c.match&&"/"===c.rest[0]){const i=Nt(c.rest.substr(1),{inlineShortcuts:null!==(l=t.inlineShortcuts)&&void 0!==l?l:{},noWrap:!0});i.match&&(e="\\frac{"+c.match+"}{"+i.match+"}"+Et(i.rest,t)),d=!0}else c.match&&(e="("===e[0]?"\\left("+c.match+"\\right)"+Et(c.rest,t):c.match+Et(c.rest,t),d=!0);return d||(c=e.match(/^(\s+)(.*)$/),c&&(e=" "+Et(c[2],t),d=!0)),e}function Nt(e,t){let i="",a=e=e.trim(),o=e.charAt(0),r={"(":")","{":"}","[":"]"}[o];if(r){let s=1,n=1;for(;n0;)e[n]===o&&s++,e[n]===r&&s--,n++;0===s?(t.noWrap&&"("===o?i=Et(e.substring(1,n-1),t):("{"===o&&"}"===r&&(o="\\{",r="\\}"),i="\\left"+o+Et(e.substring(1,n-1),t)+"\\right"+r),a=e.substring(n)):(i=e.substring(1,n),a="")}else{let o=e.match(/^([a-zA-Z]+)/);if(o){let i=Tt(null,e,t.inlineShortcuts);if(i)return i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),{match:i,rest:e.substring(i.length)}}if(o=e.match(/^([a-zA-Z])/),o)return{match:o[1],rest:e.substring(1)};if(o=e.match(/^(-)?\d+(\.\d*)?/),o)return{match:o[0],rest:e.substring(o[0].length)};/^\\(left|right)/.test(e)||(o=e.match(/^(\\[a-zA-Z]+)/),o&&(a=e.substring(o[1].length),i=o[1]))}return{match:i,rest:a}}function Bt(e,t){let i=Tt(null,e,t);return i?(i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),i+=" "):i=e,i}function Ot(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onSelectionDidChange)||e.suppressChangeNotifications||e.listeners.onSelectionDidChange(e)}function Ft(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onContentDidChange)||e.suppressChangeNotifications||e.listeners.onContentDidChange(e)}function Pt(e){if(e.parent().array)return kt(e.parent().array,e.relation())[e.anchorOffset()];const t=e.siblings();return t[Math.min(t.length-1,e.anchorOffset())]}function Rt(e,i,a=0){let o;if("string"==typeof i)o=gt(i),o.extent=a;else if(t(i)){const t=bt(i),r=e.path;e.path=t,0===a&&"placeholder"===Pt(e).type&&(t[t.length-1].offset=e.anchorOffset()-1,a=1),o={path:t,extent:null!=a?a:0},e.path=r}else o=i;const r=0!==yt(e.path,o.path),s=o.extent!==e.extent;return(r||s)&&(r&&It(e),e.path=bt(o.path),e.siblings().length0&&"command"===t[i].type;)i-=1;let a=e.startOffset()+1;for(;a<=t.length-1&&"command"===t[a].type;)a+=1;return a>i?{start:i+1,end:a}:null}function Ut(e){const t=oi(e)?Pt(e):e.sibling(1);let i;if(t){if("command"===t.type)return"command";i=t.mode}let a=1,o=e.ancestor(a);for(;!i&&o;)o&&(i=o.mode),a+=1,o=e.ancestor(a);return i}function jt(e,t=1,i=!0){var a;const o=e.suppressChangeNotifications;e.suppressChangeNotifications=!0;const r=e.clone(),s=e.extent;Yt(e,t),"placeholder"===Pt(e).type&&Yt(e,t);const n=pi(e,(e,t)=>"placeholder"===e.type||t.path.length>1&&1===t.siblings().length,t);if(0===n.length){if(Rt(e,r,s),i&&(null===(a=e.hooks)||void 0===a?void 0:a.tabOut)&&e.hooks.tabOut(e,t>0?"forward":"backward")&&document.activeElement){const e=function(){function e(e){return!((i=e).disabled||"INPUT"===i.tagName&&"hidden"===i.type||function(e){if(e===document.activeElement||e.contains(document.activeElement))return!1;if("hidden"===getComputedStyle(e).visibility)return!0;const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(i)||function(e){return"INPUT"===e.tagName&&"radio"===e.type&&!function(e){if(!e.name)return!0;const t=function(e,t){for(let i=0;isummary')).filter(e).forEach((e,i)=>{const r=t(e);0===r?a.push(e):o.push({documentOrder:i,tabIndex:r,node:e})}),o.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(a)}(document.body)}();let i=e.indexOf(document.activeElement)+t;i<0&&(i=e.length-1),i>=e.length&&(i=0),e[i].focus()}return e.suppressChangeNotifications=o,!1}return Rt(e,n[0]),"placeholder"===Pt(e).type&&ri(e,-1),e.announce("move",r),Ot(e),e.suppressChangeNotifications=o,!0}function Xt(e,t=0,i=0,a=""){const o=e.path[e.path.length-1].relation;a||(a=o);const r=e.parent();if(!r&&"body"!==a)return!1;const s=a.startsWith("cell");if(!s&&!r[a]||s&&!r.array)return!1;const n=a!==o;e.path[e.path.length-1].relation=a;const l=e.siblings().length;e.path[e.path.length-1].relation=o;const c=e.extent;"end"===i&&(i=l-t-1),ri(e,i);const d=e.extent!==c;ri(e,c),t<0&&(t=l+t),t=Math.max(0,Math.min(t,l-1));const m=e.path[e.path.length-1].offset;return(n||m!==t||d)&&(n&&It(e),e.path[e.path.length-1].relation=a,e.path[e.path.length-1].offset=t,ri(e,i),Ot(e)),!0}function Gt(e,i){var a;i=null!=i?i:{};const o={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(e.anchorOffset()===e.siblings().length-1){It(e);let t=o[e.relation()];const r=e.parent();for(;t&&!r[t];)t=o[t];if(t)return void Xt(e,0,0,t);if(e.parent().array){const t=_t(e.parent().array);let i=parseInt(e.relation().match(/cell([0-9]*)$/)[1])+1;for(;i=0;){if(kt(e.parent().array,t)&&Xt(e,-1,0,"cell"+t))return;t-=1}}return void(1===e.path.length?(e.suppressChangeNotifications||!(null===(a=e.hooks)||void 0===a?void 0:a.moveOut)||e.hooks.moveOut(e,"backward"))&&(e.path[0].offset=e.root.body.length-1):(e.path.pop(),Xt(e,e.anchorOffset()-1)))}const r=Pt(e);if(!r.captureSelection){let i;if(r.array){i="";const t=_t(r.array);let a=t-1;for(;!i&&a0)for(si(e)&&a--;a>0;)Gt(e),a--;else if(a<0)for(ni(e)&&a++;0!==a;)Zt(e),a++}return Ot(e),e.announce("move",a),!0}function Jt(e,t){let i=e.path[e.path.length-1].offset,a=0;const o=e.clone();a=e.extent+t;const r=i+a;if(r<0&&0!==a){if(e.path.length>1)return e.path.pop(),ri(e,-1),Ot(e),e.announce("move",o),!0;i=e.path[e.path.length-1].offset,a=e.extent}else if(r>=e.siblings().length){if(e.path.length>1)return e.path.pop(),e.path[e.path.length-1].offset-=1,ri(e,1),Ot(e),e.announce("move",o),!0;oi(e)&&(i-=1),a-=1}return Xt(e,i,a),e.announce("move",o),!0}function Qt(e,t,i){var a;const o=null!==(a=(i=null!=i?i:{extend:!1}).extend)&&void 0!==a&&a;t=t<0?-1:1;const r=e.clone(),s=e.siblings(),n=e.focusOffset();let l=n+t;if(o&&(l=Math.min(Math.max(0,l),s.length-1)),l<0||l>=s.length)Yt(e,t,i);else{if(s[l]&&"text"===s[l].mode){if(l=function(e,t,i){i=i<0?-1:1;const a=e.siblings();if(!a[t])return t;if("text"!==a[t].mode)return t;let o;if(X.test(a[t].body)){let e,r=t;do{e="text"===a[r].mode&&X.test(a[r].body),r+=i}while(a[r]&&e);o=a[r]?r-2*i:r-i}else if(/\s/.test(a[t].body)){let e=t;for(;a[e]&&"text"===a[e].mode&&/\s/.test(a[e].body);)e+=i;if(a[e]){let t=!0;do{t="text"===a[e].mode&&!/\s/.test(a[e].body),e+=i}while(a[e]&&t);o=a[e]?e-2*i:e-i}else o=e-i}else{let e=t;for(;a[e]&&"text"===a[e].mode&&!/\s/.test(a[e].body);)e+=i;o=a[e]?e:e-i;let r=!0;for(;a[e]&&r;)r="text"===a[e].mode&&/\s/.test(a[e].body),r&&(o=e),e+=i;o=a[e]?e-2*i:e-i}return o-(i>0?0:1)}(e,l,t),l<0&&!o)return void Xt(e,0);if(l>s.length)return Xt(e,s.length-1),void Yt(e,t,i)}else{const e=s[l]?s[l].type:"";if("mopen"===e&&t>0||"mclose"===e&&t<0){let i="mopen"===e?1:-1;for(l+=t>0?1:-1;l>=0&&l0&&(l-=1)}else{for(;s[l]&&"math"===s[l].mode&&s[l].type===e;)l+=t;l-=t>0?1:0}}if(o){const t=e.anchorOffset();Xt(e,t,l-t)}else Xt(e,l);e.announce("move",r)}}function ei(e,t=1,i){var a;i=null!=i?i:{extend:!1},t=t<0?-1:1;const o=e.clone(),r=[{relation:"body",offset:e.path[0].offset}];let s;return null!==(a=!i.extend)&&void 0!==a&&a?(r[0].offset=t<0?0:e.root.body.length-1,s=0):t<0?r[0].offset>0&&(s=-r[0].offset):r[0].offset=a)return Xt(e,e.endOffset()-1,1),!0;Xt(e,i,a-i)}else if("mord"===e.sibling(0).type&&/[0-9,.]/.test(e.sibling(0).body)){let i=e.startOffset(),a=e.endOffset();for(;Vt(t[i]);)i-=1;for(;Vt(t[a]);)a+=1;a-=1,Xt(e,i,a-i)}else Xt(e,0,"end");return!0}function ai(e){return e.path=[{relation:"body",offset:0}],Xt(e,0,"end")}function oi(e){return 0===e.extent}function ri(e,t){e.extent=t}function si(e){return 0!==e.extent&&(Xt(e,e.endOffset()),!0)}function ni(e){return 0!==e.extent&&(Xt(e,e.startOffset()),!0)}function li(e){if(e.path.length>1){const t=e.clone();return e.path.pop(),ri(e,0),e.announce("move",t),!0}return e.announce("plonk"),!1}function ci(e,t,i,a={extendToWordBoundary:!1}){const o=yt(t,i);if(0===o)return a.extendToWordBoundary?ci(e,t=mi(e,t,-1),i=mi(e,i,1)):Rt(e,bt(t),0);if(1===o){const o=i[i.length-1].offset-t[t.length-1].offset;return a.extendToWordBoundary?ci(e,t=mi(e,t,o<0?1:-1),i=mi(e,i,o<0?-1:1)):Rt(e,bt(t),o)}let r=function(e,t){const i=[],a=Math.min(e.length-1,t.length-1);let o=0;for(;o<=a&&e[o].relation===t[o].relation&&e[o].offset===t[o].offset;)i.push(e[o]),o+=1;return i}(t,i);const s=r.length;if(t.length===s||i.length===s||t[s].relation!==i[s].relation)return Rt(e,r,-1);r.push(t[s]),r=bt(r);let n=i[s].offset-t[s].offset+1;return n<=0?i.length>s+1?(r[s].relation=i[s].relation,r[s].offset=i[s].offset,r[r.length-1].offset-=1,n=2-n):(r[s].relation=i[s].relation,r[s].offset=i[s].offset,n=1-n):i.length<=t.length?r[r.length-1].offset-=1:i.length>t.length&&(r[s].offset-=1),Rt(e,r,n)}function di(e,t,i){var a;(i=null!=i?i:{}).recursive=null!==(a=i.recursive)&&void 0!==a&&a;const o=e.siblings(),r=e.startOffset()+1,s=e.endOffset()+1;if(i.recursive)for(let e=r;e=0?si(o):(ni(o),Yt(o,"forward"));const r=Pt(o);do{t(Pt(o),o)&&a.push(o.toString()),i>=0?Gt(o,{iterateAll:!0}):Zt(o,{iterateAll:!0})}while(r!==Pt(o));return a}const ui="apple"===yi()?{id:"apple.en-intl",displayName:"English (international)",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","ı"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","Î"],KeyE:["e","E","´","´"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","˝"],KeyH:["h","H","˙","Ó"],KeyI:["i","I","ˆ","ˆ"],KeyJ:["j","J","∆","Ô"],KeyK:["k","K","˚",""],KeyL:["l","L","¬","Ò"],KeyM:["m","M","µ","Â"],KeyN:["n","N","˜","˜"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®","‰"],KeyS:["s","S","ß","Í"],KeyT:["t","T","†","ˇ"],KeyU:["u","U","¨","¨"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","˛"],KeyY:["y","Y","¥","Á"],KeyZ:["z","Z","Ω","¸"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","ˆ","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["-","_","–","—"],Equal:["=","+","≠","±"],BracketLeft:["[","{","“","”"],BracketRight:["]","}","‘","’"],Backslash:["\\","|","«","»"],Semicolon:[";",":","…","Ú"],Quote:["'",'"',"æ","Æ"],Backquote:["`","˜","`","`"],Comma:[",","<","≤","¯"],Period:[".",">","≥","˘"],Slash:["/","?","÷","¿"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}}:"windows"===yi()?{id:"windows.en-intl",displayName:"English (international)",platform:"windows",locale:"en",score:0,mapping:{KeyA:["a","A","á","Á"],KeyB:["b","B","",""],KeyC:["c","C","©","¢"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","é","É"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","í","Í"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","ø","Ø"],KeyM:["m","M","µ",""],KeyN:["n","N","ñ","Ñ"],KeyO:["o","O","ó","Ó"],KeyP:["p","P","ö","Ö"],KeyQ:["q","Q","ä","Ä"],KeyR:["r","R","®",""],KeyS:["s","S","ß","§"],KeyT:["t","T","þ","Þ"],KeyU:["u","U","ú","Ú"],KeyV:["v","V","",""],KeyW:["w","W","å","Å"],KeyX:["x","X","",""],KeyY:["y","Y","ü","Ü"],KeyZ:["z","Z","æ","Æ"],Digit1:["1","!","¡","¹"],Digit2:["2","@","²",""],Digit3:["3","#","³",""],Digit4:["4","$","¤","£"],Digit5:["5","%","€",""],Digit6:["6","^","¼",""],Digit7:["7","&","½",""],Digit8:["8","*","¾",""],Digit9:["9","(","‘",""],Digit0:["0",")","’",""],Space:[" "," ","",""],Minus:["-","_","¥",""],Equal:["=","+","×","÷"],BracketLeft:["[","{","«",""],BracketRight:["]","}","»",""],Backslash:["\\","|","¬","¦"],Semicolon:[";",":","¶","°"],Quote:["'",'"',"´","¨"],Backquote:["`","~","",""],Comma:[",","<","ç","Ç"],Period:[".",">","",""],Slash:["/","?","¿",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}}:{id:"linux.en",displayName:"English",platform:"linux",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},hi={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},fi=[];let gi;function yi(){let e="linux";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?e="apple":/^(win)/i.test(navigator.platform)?e="windows":/(android)/i.test(navigator.userAgent)?e="linux":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?e="apple":/\bCrOS\b/i.test(navigator.userAgent)&&(e="linux")),e}function bi(e){e.platform===yi()&&fi.push(e)}function vi(e){gi=fi.find(t=>e.startsWith(t.locale))}function xi(){return null!=gi?gi:fi[0]}bi(ui),bi({id:"apple.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","‡","Ω"],KeyB:["b","B","ß","∫"],KeyC:["c","C","©","¢"],KeyD:["d","D","∂","∆"],KeyE:["e","E","ê","Ê"],KeyF:["f","F","ƒ","·"],KeyG:["g","G","fi","fl"],KeyH:["h","H","Ì","Î"],KeyI:["i","I","î","ï"],KeyJ:["j","J","Ï","Í"],KeyK:["k","K","È","Ë"],KeyL:["l","L","¬","|"],KeyM:[",","?","∞","¿"],KeyN:["n","N","~","ı"],KeyO:["o","O","œ","Œ"],KeyP:["p","P","π","∏"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","®","‚"],KeyS:["s","S","Ò","∑"],KeyT:["t","T","†","™"],KeyU:["u","U","º","ª"],KeyV:["v","V","◊","√"],KeyW:["z","Z","Â","Å"],KeyX:["x","X","≈","⁄"],KeyY:["y","Y","Ú","Ÿ"],KeyZ:["w","W","‹","›"],Digit1:["&","1","","´"],Digit2:["é","2","ë","„"],Digit3:['"',"3","“","”"],Digit4:["'","4","‘","’"],Digit5:["(","5","{","["],Digit6:["§","6","¶","å"],Digit7:["è","7","«","»"],Digit8:["!","8","¡","Û"],Digit9:["ç","9","Ç","Á"],Digit0:["à","0","ø","Ø"],Space:[" "," "," "," "],Minus:[")","°","}","]"],Equal:["-","_","—","–"],BracketLeft:["^","¨","ô","Ô"],BracketRight:["$","*","€","¥"],Backslash:["`","£","@","#"],Semicolon:["m","M","µ","Ó"],Quote:["ù","%","Ù","‰"],Backquote:["<",">","≤","≥"],Comma:[";",".","…","•"],Period:[":","/","÷","\\"],Slash:["=","+","≠","±"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","•","Ÿ"],NumpadEqual:["=","=","=","="]}}),bi({id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","ß",""],KeyC:["c","C","©"," "],KeyD:["d","D","∂","∆"],KeyE:["e","E","€","€"],KeyF:["f","F","ƒ","fi"],KeyG:["g","G","","fl"],KeyH:["h","H","™"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","¶","¯"],KeyK:["k","K","§","ˇ"],KeyL:["l","L"," ","˘"],KeyM:["m","M","µ","˚"],KeyN:["n","N"," ","˙"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®"," "],KeyS:["s","S","∫"," "],KeyT:["t","T","†","‡"],KeyU:["u","U"," "," "],KeyV:["v","V","√","◊"],KeyW:["w","W","æ","Æ"],KeyX:["x","X","∑","›"],KeyY:["y","Y","¥"," "],KeyZ:["z","Z","Ω","‹"],Digit1:["1","!","|","ı"],Digit2:["2",'"',"@","˝"],Digit3:["3","·","#","•"],Digit4:["4","$","¢","£"],Digit5:["5","%","∞","‰"],Digit6:["6","&","¬"," "],Digit7:["7","/","÷","⁄"],Digit8:["8","(","“","‘"],Digit9:["9",")","”","’"],Digit0:["0","=","≠","≈"],Space:[" "," "," "," "],Minus:["'","?","´","¸"],Equal:["¡","¿","‚","˛"],BracketLeft:["`","^","[","ˆ"],BracketRight:["+","*","]","±"],Backslash:["ç","Ç","}","»"],Semicolon:["ñ","Ñ","~","˜"],Quote:["´","¨","{","«"],Backquote:["<",">","≤","≥"],Comma:[",",";","„",""],Period:[".",":","…","…"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["º","ª","\\","°"]}}),bi({id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","·","#",""],Digit4:["4","$","~",""],Digit5:["5","%","€",""],Digit6:["6","&","¬",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["¡","¿","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["ç","Ç","}",""],Semicolon:["ñ","Ñ","",""],Quote:["´","¨","{",""],Backquote:["º","ª","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),bi({id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["z","Z","«","<"],Digit1:["1","!","|","¡"],Digit2:["2",'"',"@","⅛"],Digit3:["3","·","#","£"],Digit4:["4","$","~","$"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["'","?","\\","¿"],Equal:["¡","¿","̃","~"],BracketLeft:["̀","̂","[","̊"],BracketRight:["+","*","]","̄"],Backslash:["ç","Ç","}","̆"],Semicolon:["ñ","Ñ","~","̋"],Quote:["́","̈","{","{"],Backquote:["º","ª","\\","\\"],Comma:[",",";","─","×"],Period:[".",":","·","÷"],Slash:["-","_","̣","̇"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}}),bi({id:"linux.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","@","Ω"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:[",","?","́","̋"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["z","Z","«","<"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["w","W","ł","Ł"],Digit1:["&","1","¹","¡"],Digit2:["é","2","~","⅛"],Digit3:['"',"3","#","£"],Digit4:["'","4","{","$"],Digit5:["(","5","[","⅜"],Digit6:["-","6","|","⅝"],Digit7:["è","7","`","⅞"],Digit8:["_","8","\\","™"],Digit9:["ç","9","^","±"],Digit0:["à","0","@","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:[")","°","]","¿"],Equal:["=","+","}","̨"],BracketLeft:["̂","̈","̈","̊"],BracketRight:["$","£","¤","̄"],Backslash:["*","µ","̀","̆"],Semicolon:["m","M","µ","º"],Quote:["ù","%","̂","̌"],Backquote:["²","~","¬","¬"],Comma:[";",".","─","×"],Period:[":","/","·","÷"],Slash:["!","§","̣","̇"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"]}}),bi({id:"windows.french",locale:"fr",displayName:"French",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["é","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["è","7","`",""],Digit8:["_","8","\\",""],Digit9:["ç","9","^",""],Digit0:["à","0","@",""],Space:[" "," ","",""],Minus:[")","°","]",""],Equal:["=","+","}",""],BracketLeft:["^","¨","",""],BracketRight:["$","£","¤",""],Backslash:["*","µ","",""],Semicolon:["m","M","",""],Quote:["ù","%","",""],Backquote:["²","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","§","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),bi({id:"windows.german",locale:"de",displayName:"German",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","µ",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"²",""],Digit3:["3","§","³",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["ß","?","\\","ẞ"],Equal:["´","`","",""],BracketLeft:["ü","Ü","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["ö","Ö","",""],Quote:["ä","Ä","",""],Backquote:["^","°","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}}),bi({id:"apple.german",locale:"de",displayName:"German",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","‹"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","™"],KeyE:["e","E","€","‰"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","Ì"],KeyH:["h","H","ª","Ó"],KeyI:["i","I","⁄","Û"],KeyJ:["j","J","º","ı"],KeyK:["k","K","∆","ˆ"],KeyL:["l","L","@","fl"],KeyM:["m","M","µ","˘"],KeyN:["n","N","~","›"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","«","»"],KeyR:["r","R","®","¸"],KeyS:["s","S","‚","Í"],KeyT:["t","T","†","˝"],KeyU:["u","U","¨","Á"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","Ù"],KeyY:["z","Z","Ω","ˇ"],KeyZ:["y","Y","¥","‡"],Digit1:["1","!","¡","¬"],Digit2:["2",'"',"“","”"],Digit3:["3","§","¶","#"],Digit4:["4","$","¢","£"],Digit5:["5","%","[","fi"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","˜"],Digit9:["9",")","}","·"],Digit0:["0","=","≠","¯"],Space:[" "," "," "," "],Minus:["ß","?","¿","˙"],Equal:["´","`","'","˚"],BracketLeft:["ü","Ü","•","°"],BracketRight:["+","*","±",""],Backslash:["#","'","‘","’"],Semicolon:["ö","Ö","œ","Œ"],Quote:["ä","Ä","æ","Æ"],Backquote:["<",">","≤","≥"],Comma:[",",";","∞","˛"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","°","„","“"],NumpadEqual:["=","=","=","="]}});const ki=[{key:"ctrl+alt+e",command:["insert","\\text{cmd+alt+e}"]},{key:"cmd+alt+a",command:["insert","\\text{cmd+alt+a}"]},{key:"ctrl+alt+a",command:["insert","\\text{ctrl+alt+a}"]},{key:"meta+alt+2",command:["insert","\\text{meta+alt+2}"]},{key:"ctrl+alt+shift+a",command:["insert","\\text{ctrl+alt+shift+a}"]},{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendToPreviousChar"},{key:"shift+[ArrowRight]",command:"extendToNextChar"},{key:"shift+[ArrowUp]",command:"extendUp"},{key:"shift+[ArrowDown]",command:"extendDown"},{key:"[Backspace]",command:"deletePreviousChar"},{key:"alt+[Delete]",command:"deletePreviousChar"},{key:"[Delete]",command:"deleteNextChar"},{key:"alt+[Backspace]",command:"deleteNextChar"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"alt+shift+[ArrowLeft]",command:"extendToPreviousWord"},{key:"alt+shift+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"ctrl+shift+[ArrowLeft]",command:"extendToGroupStart"},{key:"ctrl+shift+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Space]",ifMode:"math",command:"moveAfterParent"},{key:"shift+[Space]",ifMode:"math",command:"moveBeforeParent"},{key:"[Home]",command:"moveToMathFieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathFieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"cmd+shift+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathFieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathFieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"cmd+shift+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",ifMode:"math",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"math",command:"moveToPreviousPlaceholder"},{key:"[Tab]",ifMode:"text",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"text",command:"moveToPreviousPlaceholder"},{key:"[Escape]",ifMode:"math",command:["switchMode","command"]},{key:"\\",ifMode:"math",command:["switchMode","command"]},{key:"alt+[Equal]",ifMode:"math",command:["applyStyle",{mode:"text"}]},{key:"alt+[Equal]",ifMode:"text",command:["applyStyle",{mode:"math"}]},{key:"[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[Tab]",ifMode:"command",command:["complete",{acceptSuggestion:!0}]},{key:"[Return]",ifMode:"command",command:"complete"},{key:"[Enter]",ifMode:"command",command:"complete"},{key:"shift+[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[ArrowDown]",ifMode:"command",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"command",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deletePreviousChar"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"[Undo]",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+y",command:"redo"},{key:"ctrl+shift+z",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+z",command:"redo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathFieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathFieldEnd"},{key:"ctrl+shift+b",ifPlatform:"macos",command:"extendToPreviousChar"},{key:"ctrl+shift+f",ifPlatform:"macos",command:"extendToNextChar"},{key:"ctrl+shift+p",ifPlatform:"macos",command:"extendUp"},{key:"ctrl+shift+n",ifPlatform:"macos",command:"extendDown"},{key:"ctrl+shift+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"ctrl+shift+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"ctrl+alt+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"ctrl+alt+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"ctrl+shift+alt+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"ctrl+shift+alt+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deletePreviousChar"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteNextChar"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"shift+[Quote]",ifMode:"math",command:["switchMode","text","","“"]},{key:"shift+[Quote]",ifMode:"text",command:["switchMode","math","”",""]},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Minus]",ifMode:"math",command:"moveToSubscript"},{key:"alt+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrack #0 \\right\\rbrack$$"]},{key:"alt+shift+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrace #0 \\right\\rbrace$$"]},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+;",ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifMode:"math",command:"addRowAfter"},{key:"ctrl+shift+;",ifMode:"math",command:"addRowBefore"},{key:"cmd+shift+;",ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"ctrl+shift+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+shift[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"alt+p",ifMode:"math",command:["insert","$$\\pi$$"]},{key:"alt+v",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"alt+w",ifMode:"math",command:["insert","$$\\sum_{i=#?}^{#?}$$"]},{key:"alt+u",ifMode:"math",command:["insert","$$\\cup$$"]},{key:"alt+n",ifMode:"math",command:["insert","$$\\cap$$"]},{key:"alt+o",ifMode:"math",command:["insert","$$\\emptyset$$"]},{key:"alt+d",ifMode:"math",command:["insert","$$\\differentialD$$"]},{key:"alt+shift+o",ifMode:"math",command:["insert","$$\\varnothing$$"]},{key:"alt+shift+d",ifMode:"math",command:["insert","$$\\partial$$"]},{key:"alt+shift+p",ifMode:"math",command:["insert","$$\\prod_{i=#?}^{#?}$$"]},{key:"alt+shift+u",ifMode:"math",command:["insert","$$\\bigcup$$"]},{key:"alt+shift+n",ifMode:"math",command:["insert","$$\\bigcap$$"]},{key:"alt+shift+a",ifMode:"math",command:["insert","$$\\forall$$"]},{key:"alt+shift+e",ifMode:"math",command:["insert","$$\\exists$$"]},{key:"alt+[Digit5]",ifMode:"math",command:["insert","$\\infty$$"]},{key:"alt+[Digit6]",ifMode:"math",command:["insert","$$\\wedge$$"]},{key:"alt+shift+[Digit6]",ifMode:"math",command:["insert","$$\\vee$$"]},{key:"alt+[Digit9]",ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifMode:"math",command:["insert",")"]},{key:"alt+shift+[Backslash]",ifMode:"math",command:["insert","|"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","$$\\backslash$$"]},{key:"/",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+/",ifMode:"math",command:["insert","$$\\/$$"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+[Backquote]",ifMode:"math",command:["insert","$$\\~$$"]},{key:"alt+shift+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleVirtualKeyboard"},{key:"ctrl+alt+[ArrowUp]",command:["speak","parent",{withHighlighting:!1}]},{key:"ctrl+alt+[ArrowDown]",command:["speak","all",{withHighlighting:!1}]}],_i={"\\theta":"alt+q","\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\prod":"alt+shift+p","\\sum":"alt+w","\\int":"alt+b","\\cup":"alt+u","\\cap":"alt+n","\\bigcup":"alt+shift+u","\\bigcap":"alt+shift+n","\\forall":"alt+shift+a","\\exists":"alt+shift+e","\\infty":"alt+[Digit5]","\\wedge":"alt+[Digit5]","\\vee":"alt+shift+[Digit6]","\\differentialD":"alt+d","\\partial":"alt+shift+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"alt+shift+o","\\~":"~"};function wi(e){if((null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)){let t;if(/^(mac)/i.test(navigator.platform)?t="macos":/^(win)/i.test(navigator.platform)?t="windows":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos"),e.startsWith("!")&&!e.endsWith(t))return!0;if(e.endsWith(t))return!0}return!1}function Mi(e){let i=e;return t(i)&&(i=i.length>0?i[0]+"("+i.slice(1).join("")+")":""),i}function zi(e){var t;const i=wi("macos")||wi("ios"),a=e.split("+");let o="";for(const e of a)!i&&o&&(o+='+'),e.startsWith("Key")?o+=e.substr(3,1):e.startsWith("Digit")?o+=e.substr(5,1):o+=null!==(t={cmd:"⌘",meta:i?"⌘":"command",shift:i?"⇧":"shift",alt:i?"⌥":"alt",ctrl:i?"⌃":"control","\n":i?"⏎":"return","[return]":i?"⏎":"return","[enter]":i?"⌤":"enter","[tab]":i?"⇥":"tab","[escape]":"esc","[backspace]":i?"⌫":"backspace","[delete]":i?"⌦":"del","[pageup]":i?"⇞":"page up","[pagedown]":i?"⇟":"page down","[home]":i?"⤒":"home","[end]":i?"⤓":"end","[space]":"space","[equal]":"=","[minus]":"-","[comma]":",","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",bracketLeft:"[",bracketRight:"]",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"⇠",up:"⇡",right:"⇢",down:"⇣","[arrowleft]":"⇠","[arrowup]":"⇡","[arrowright]":"⇢","[arrowdown]":"⇣","[digit0]":"0","[digit1]":"1","[digit2]":"2","[digit3]":"3","[digit4]":"4","[digit5]":"5","[digit6]":"6","[digit7]":"7","[digit8]":"8","[digit9]":"9"}[e.toLowerCase()])&&void 0!==t?t:e.toUpperCase();return o}function Si(e,t){const i=[],a=[];return e.forEach(e=>{try{const t=function(e){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);let t=e.key.split("+");const i=t.pop();let a=e.ifPlatform;if(t=t.map(e=>{const t=e.toLowerCase();if("cmd"===t){if(a&&"macos"!==a&&"ios"!==a)throw new Error('Unexpected "cmd" modifier with platform "'+a+'"');return a||(a=wi("ios")?"ios":"macos"),"meta"}if("win"===t){if(a&&"windows"!==a)throw new Error('Unexpected "win" modifier with platform "'+a+'"');return a="windows","meta"}return t}),!a||wi(a)){if(/^\[(.*)\]$/.test(i))t.push(i);else{const a=function(e){var t,i;const a=null!==(t=xi())&&void 0!==t?t:ui;for(const[t,i]of Object.entries(a.mapping)){if(i[0]===e)return"["+t+"]";if(i[1]===e)return"shift+["+t+"]";if(i[2]===e)return"alt+["+t+"]";if(i[3]===e)return"shift+alt+["+t+"]"}return null!==(i=hi[e])&&void 0!==i?i:""}(i);if(!a)throw new Error('Invalid keybinding key "'+e.key+'"');t=t.concat(a.split("+"))}return{...e,ifPlatform:a,key:t.join("+")}}}(e);t&&i.push(t)}catch(e){a.push(e.message)}}),a.length>0&&t(a),i}function Li(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.addEventListener(o[1],i,t)}else e.addEventListener(t,i,a)}}function Ai(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.removeEventListener(o[1],i,t)}else e.removeEventListener(t,i,a)}}function Ci(e,t){let i=document.getElementById(e);return i?i.setAttribute("data-refcount",Number(parseInt(i.getAttribute("data-refcount"))+1).toString()):(i=document.createElement("div"),i.setAttribute("aria-hidden","true"),i.setAttribute("data-refcount","1"),i.className=t,i.id=e,document.body.appendChild(i)),i}function $i(e){if(!e)return;const t=parseInt(e.getAttribute("data-refcount"));t<=1?e.remove():e.setAttribute("data-refcount",Number(t-1).toString())}function qi(e){return e.element&&e.element.mathfield===e}function Di(e){const t=function e(t){if(t.classList.contains("ML__caret")||t.classList.contains("ML__text-caret")||t.classList.contains("ML__command-caret"))return t;let i;for(const a of t.children)if(i=e(a),i)break;return i}(e);if(t){const e=t.getBoundingClientRect();return{x:e.right,y:e.bottom,height:e.height}}return null}function Ti(e){const t=e.querySelectorAll(".ML__selected");if(t&&t.length>0){const i={top:1/0,bottom:-1/0,left:1/0,right:-1/0};t.forEach(e=>{const t=e.getBoundingClientRect();t.lefti.right&&(i.right=t.right),t.bottom>i.bottom&&(i.bottom=t.bottom),t.top{if("mousedown"!==i.type||1===i.buttons){i.stopPropagation(),"touchstart"!==i.type&&i.preventDefault(),t.classList.add("pressed"),a=Date.now(),"touchstart"===i.type&&(r=i.changedTouches[0].identifier);const s=t.getAttribute("data-"+e.options.namespace+"command-pressed");s&&e.executeCommand(JSON.parse(s));const l=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldStart");l&&(o=t,n&&clearTimeout(n),n=window.setTimeout((function(){t.classList.contains("pressed")&&e.executeCommand(JSON.parse(l))}),300))}}),Li(t,"mouseleave touchcancel",()=>{t.classList.remove("pressed")}),Li(t,"touchmove:passive",e=>{for(let t=0;t{1===e.buttons&&t.classList.add("pressed")}),Li(t,"mouseup touchend click",i=>{if(s){i.stopPropagation(),i.preventDefault();const e=s;return s=null,void e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}if(t.classList.remove("pressed"),t.classList.add("active"),"click"===i.type&&0!==i.detail)return i.stopPropagation(),void i.preventDefault();window.setTimeout((function(){t.classList.remove("active")}),150);let r=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldEnd");const n=Date.now();(t!==o||nequal to","\\supseteq":"superset of or
equal to","\\supset":"superset of","\\subset":"subset of","\\partial":"partial derivative","\\bigcup":"union","\\bigcap":"intersection","\\approx":"approximately equal to","\\notin":"not an element of","\\in":["element of","included in"],"\\infty":"infinity","\\land":"logical and","\\sqrt":"square root","\\prod":"product","\\sum":"summation","\\amalg":["amalgamation","coproduct","free product","disjoint union"],"\\cup":"union with","\\cap":"intersection with","\\int":"integral","\\iint":"surface integral","\\oint":"curve integral","\\iiint":"volume integral","\\iff":"if and only if","\\ln":"natural logarithm","\\boldsymbol":"bold","\\setminus":"set subtraction","\\stackrel":"relation with symbol above","\\stackbin":"operator with symbol above","\\underset":"symbol with annotation below","\\overset":"symbol with annotation above","\\hslash":["h-bar","Planck constant"],"\\gtrsim":"greater than or
similar to","\\propto":"proportional to","\\equiv":"equivalent to","\\!":["negative thin space","(-3 mu)"],"\\ ":["space","(6 mu)"],"\\,":["thin space","(3 mu)"],"\\:":["medium space","(4 mu)"],"\\;":["thick space","(5 mu)"],"\\quad":["1 em space","(18 mu)"],"\\qquad":["2 em space","(36 mu)"],"\\enskip":["½ em space","(9 mu)"],"\\mp":"minus or plus","\\pm":"plus or minus","\\Im":"Imaginary part of","\\Re":"Real part of","\\gothicCapitalR":"Real part of","\\gothicCapitalI":"Imaginary part part of","\\differentialD":"differential d","\\aleph":["aleph","infinite cardinal",'Wikipedia '],"\\beth":["beth","beth number",'Wikipedia '],"\\gimel":["gimel","gimel function",'Wikipedia '],"\\O":"empty set","\\N":"set of
natural numbers","\\Z":"set of
integers","\\Q":"set of
rational numbers","\\C":"set of
complex numbers","\\R":"set of
real numbers","\\P":"set of
prime numbers","\\lesseqqgtr":"less than, equal to or
greater than","\\gnapprox":"greater than and
not approximately","\\lnapprox":"lesser than and
not approximately","\\j":"dotless j","\\i":"dotless i","\\cdot":"centered dot","\\lmoustache":"left moustache","\\rmoustache":"right moustache","\\nabla":["nabla","del","differential vector operator"],"\\square":["square","d’Alembert operator",'Wikipedia '],"\\blacksquare":["black square","end of proof","tombstone","Halmos symbol"],"\\Box":"end of proof","\\colon":["such that","ratio"],"\\coloneq":["is defined by","is assigned"],"\\Colon":["is defined by","as"],"\\_":["underbar","underscore"],"\\ll":"much less than","\\gg":"much greater than","\\doteq":"approximately equal to","\\Doteq":"approximately equal to","\\doteqdot":"approximately equal to","\\cong":["isomorphism of","(for algebras, modules...)"],"\\det":["determinant of","(of a matrix)"],"\\dotplus":"Cartesian product algebra","\\otimes":["tensor product","(of algebras)","Kronecker product","(of matrices)"],"\\oplus":["direct sum","(of modules)"],"\\lb":"base-2 logarithm","\\lg":"base-10 logarithm","\\wp":["Weierstrass P",'Wikipedia '],"\\wr":["wreath product",'Wikipedia '],"\\top":["tautology","Proposition P is universally true"],"\\bot":["contradiction","Proposition P is contradictory"],"\\mid":["probability","of event A given B"],"\\mho":["Siemens","electrical conductance in SI unit",'Wikipedia '],"\\Longrightarrow":"implies","\\Longleftrightarrow":"if, and only if,","\\prec":"precedes","\\preceq":"precedes or is equal to","\\succ":"succeedes","\\succeq":"succeedes or is equal to","\\perp":["is perpendicular to","is independent of"],"\\models":["entails","double-turnstyle, models","is a semantic consequence of",'Wikipedia '],"\\vdash":["satisfies","turnstyle, assertion sign","syntactic inference",'Wikipedia '],"\\implies":["implies","logical consequence"],"\\impliedby":["implied by","logical consequence"],"\\surd":["surd","root of","checkmark"],"\\ltimes":["semi direct product",'Wikipedia '],"\\rtimes":["semi direct product",'Wikipedia '],"\\leftthreetimes":["semi direct product",'Wikipedia '],"\\rightthreetimes":["semi direct product",'Wikipedia '],"\\divideontimes":["divide on times"],"\\curlywedge":"nor","\\curlyvee":"nand","\\simeq":"is group isomorphic with","\\vartriangleleft":["is a normal subgroup of","is an ideal ring of"],"\\circ":["circle","ring","function composition"],"\\rlap":["overlap right","\\rlap{x}o"],"\\llap":["overlap left","o\\llap{/}"],"\\colorbox":["color box","\\colorbox{#fbc0bd}{...}"],"\\ast":["asterisk","reflexive closure (as a superscript)"],"\\bullet":"bullet","\\lim":"limit"};function Ni(e,i,a){if(!i||0===i.length)return void Fi(e);const o=i,r=function(e,t){const i=rt(e,"math",null,t.options.macros);return K(D(Ye({mathstyle:h.displaystyle,macros:t.options.macros},i),"ML__base"),"ML__mathlive").toMarkup()}(i,e),s=function(e){let i=Ei[e]||"";return t(i)&&(i=i.join("
")),i}(o),n=function(e,i){let a=[];if("string"==typeof i){const e=_i[i];t(e)?a=e.slice():e&&a.push(e)}const o=Mi(i),r=new RegExp("^"+o.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");return e.forEach(e=>{r.test(Mi(e.command))&&a.push(e)}),a.map(zi)}(e.keybindings,o).join("
");let l=a?'
':"";l+='',l+='
'+r+"
",s&&(l+='
'+s+"
"),n&&(l+='
'+n+"
"),l+="
",l+=a?'
':"",function(e,t){e.popover.innerHTML=e.options.createHTML(t);const i=Di(e.field);i&&Oi(e,i),e.popover.classList.add("is-visible")}(e,l);let c=e.popover.getElementsByClassName("ML__popover__content");c&&c.length>0&&Ki(e,c[0],{default:["complete",{acceptSuggestion:!0}]}),c=e.popover.getElementsByClassName("ML__popover__prev-shortcut"),c&&c.length>0&&Ki(e,c[0],"previousSuggestion"),c=e.popover.getElementsByClassName("ML__popover__next-shortcut"),c&&c.length>0&&Ki(e,c[0],"nextSuggestion")}function Bi(e,t){if(e.element&&e.element.mathfield===e&&e.popover.classList.contains("is-visible"))if(null==t?void 0:t.deferred)window.requestAnimationFrame(()=>Bi(e));else if(Pt(e.model)&&"command"===Pt(e.model).type){const t=Di(e.field);t&&Oi(e,t)}else Fi(e)}function Oi(e,t){const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerWidth-document.documentElement.clientWidth,r=window.innerHeight-document.documentElement.clientHeight,s=e.virtualKeyboardVisible?e.virtualKeyboard.offsetHeight:0;t.x+e.popover.offsetWidth/2>a-o?e.popover.style.left=a-e.popover.offsetWidth-o+"px":t.x-e.popover.offsetWidth/2<0?e.popover.style.left="0":e.popover.style.left=t.x-e.popover.offsetWidth/2+"px",t.y+e.popover.offsetHeight+5>i-r-s?(e.popover.classList.add("ML__popover--reverse-direction"),e.popover.style.top=t.y-t.height-e.popover.offsetHeight-5+"px"):(e.popover.classList.remove("ML__popover--reverse-direction"),e.popover.style.top=t.y+5+"px")}function Fi(e){e.popover.classList.remove("is-visible")}function Pi(e,t=!1){var i;let a="";const o=Wt(e);if(o){const r=t?e.anchorOffset()+1:o.end,s=e.siblings();for(let e=o.start;e{"placeholder"===e.type&&a.push(e)});ri(e,0),e.path[e.path.length-1].offset=i.start-1,0!==a.length&&jt(e,1,!1)||Xt(e,i.start+t.length-1)}else e.siblings().splice(i.start,i.end-i.start),Xt(e,i.start-1,0);Ft(e)}}const Hi={"\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"∥","\\mid":"∣","\\lbrace":"{","\\rbrace":"}","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉","\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};function Vi(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Wi(e,t){return e&&t.generateID?' extid="'+e+'"':""}function Ui(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="",s=-1,n=-1;const l=e.atoms[e.index];if(e.index0){if(a=!0,ji(e)&&(s=e.index,e.index+=1),Xi(e)&&(n=e.index,e.index+=1),s>=0&&n>=0)o=""+r,o+=ea(e.atoms[n].subscript,0,0,i).mathML,o+=ea(e.atoms[s].superscript,0,0,i).mathML,o+="";else if(s>=0){if(o=""+r,ji(e)){const t=ea(e.atoms[s].superscript,0,0,i).mathML,a=ea(e.atoms[s+1].superscript,0,0,i).mathML;o+=""!==t&&""!==t||""!==a&&""!==a?""===t||""===t?"":t:""}else o+=ea(e.atoms[s].superscript,0,0,i).mathML;o+=""}else n>=0?(o=""+r,o+=ea(e.atoms[n].subscript,0,0,i).mathML,o+=""):o=r;"mi"!==e.lastType&&"mn"!==e.lastType&&"mtext"!==e.lastType&&"fence"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),r.endsWith(">f")||r.endsWith(">g")?(o+="&x2061;",e.lastType="applyfunction"):e.lastType=/^(.*)<\/mo>$/.test(o)?"mo":"mi",e.mathML+=o}return a}function ji(e){return e.index"+e,o+=ea(r.subscript,0,0,i).mathML,o+=ea(r.superscript,0,0,i).mathML,o+=""):r.superscript?(o=""+e,o+=ea(r.superscript,0,0,i).mathML,o+=""):r.subscript&&(o=""+e,o+=ea(r.subscript,0,0,i).mathML,o+=""),o.length>0&&(a=!0,t.mathML+=o,t.lastType=""),a))}function Zi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="";for(;e.index0&&(a=!0,r=""+r+"",e.mathML+=r,e.lastType="mtext"),a}function Yi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="",s=function(e){let t=-1,i=e.index,a=!1,o=!1;for(;i=0&&s=0;)r+=e.atoms[e.index].body,e.index+=1;return r.length>0&&(a=!0,r=""+r+"",s<0&&ji(e)&&(s=e.index,e.index+=1),s>=0&&(r=""+r,r+=ea(e.atoms[s].superscript,0,0,i).mathML,r+=""),e.mathML+=r,e.lastType="mn"),a}function Ji(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";if(e.index",o+=ta(e.atoms[l],i),o+=ea(e.atoms,l+1,c,i).mathML,o+=ta(e.atoms[c],i),o+="","mi"!==e.lastType&&"mn"!==e.lastType&&"mfrac"!==e.lastType&&"fence"!==e.lastType||(o=""+o),e.index=c+1,Gi(o,e,i)&&(a=!0,e.lastType="",o=""),r="fence")}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function Qi(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";const s=e.atoms[e.index];if(e.index":"")+e,o+=ea(s.subscript,0,0,i).mathML,o+=ea(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):s.superscript?(o+=("nolimits"!==s.limits?"":"")+e,o+=ea(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):(o+=("nolimits"!==s.limits?"":"")+e,o+=ea(s.subscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""),r="mo"}else{const t=e.atoms[e.index],s="\\operatorname"===t.symbol,n=s?'"+ia(t.body)+"":ta(t,i);o+=n,e.index+=1,Gi(o,e,i)&&(a=!0,e.lastType="",o=""),e.index-=1,s||/^(.*)<\/mo>$/.test(n)?r=s?"mi":"mo":(o+="",r="applyfunction")}"mi"!==e.lastType&&"mn"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),e.index+=1}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function ea(e,t,i,a){const o={atoms:e,index:null!=t?t:0,mathML:"",lastType:""};if("number"==typeof e||"boolean"==typeof e)o.mathML=e.toString();else if("string"==typeof e)o.mathML=e;else if(e instanceof Je)o.mathML=aa(e,a);else if(Array.isArray(e)){let t=0;for(i=i||(e?e.length:0);o.index0&&"genfrac"===o.atoms[o.index].type&&(e=""+e),"genfrac"===o.atoms[o.index].type?o.lastType="mfrac":o.lastType="",e.length>0&&(o.mathML+=e,t+=1),o.index+=1}t>1&&(o.mathML=""+o.mathML+"")}return o}function ta(e,t){let i="";const a=ia(e.body);return a&&(i=""+a+""),i}function ia(e){if(!e)return"";if("string"==typeof e)return Vi(e);if(!Array.isArray(e)&&"string"==typeof e.body)return Vi(e.body);let t="";for(const i of e)"string"==typeof i.body&&(t+=i.body);return Vi(t)}function aa(e,t){var i,a,o,r,s,n,l,c,d,m,p,u;const h={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:"⇋"},f={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"ℏ","\\cdotp":"⋅","\\ldots":"…","\\cdots":"⋯","\\ddots":"⋱","\\vdots":"⋮","\\ldotp":"."},g={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let y,b,v,x,k,_,w="",M="",z={cal:"script",frak:"fraktur",bb:"double-struck",scr:"script",cmtt:"monospace",cmss:"sans-serif"}[e.fontFamily||e.font]||"";z&&(z=' mathvariant="'+z+'"');const S=e.symbol;if("text"===e.mode)w=""+e.body+"";else switch(e.type){case"first":break;case"group":case"root":w=ea(e.body,0,0,t).mathML;break;case"array":if((e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(w+="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Hi[e.leftDelim]||e.leftDelim)+"")),w+="",y=0;y"+ea(e.array[b][y],0,0,t).mathML+"";w+=""}w+="",(e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Hi[e.leftDelim]||e.rightDelim)+""),w+="");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(w+=""),e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Hi[e.leftDelim]||e.leftDelim)+""),e.hasBarLine?(w+="",w+=ea(e.numer,0,0,t).mathML||" ",w+=ea(e.denom,0,0,t).mathML||" ",w+=""):(w+="",w+=""+ea(e.numer,0,0,t).mathML+"",w+=""+ea(e.denom,0,0,t).mathML+"",w+=""),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Hi[e.rightDelim]||e.rightDelim)+""),(e.leftDelim||e.rightDelim)&&(w+="");break;case"surd":e.index?(w+="",w+=ea(e.body,0,0,t).mathML,w+=ea(e.index,0,0,t).mathML,w+=""):(w+="",w+=ea(e.body,0,0,t).mathML,w+="");break;case"leftright":w="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Hi[e.leftDelim]||e.leftDelim)+""),e.body&&(w+=ea(e.body,0,0,t).mathML),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Hi[e.rightDelim]||e.rightDelim)+""),w+="";break;case"sizeddelim":case"delim":w+='"+(Hi[e.delim]||e.delim)+"";break;case"accent":w+='",w+=ea(e.body,0,0,t).mathML,w+=""+(Hi[S]||e.accent)+"",w+="";break;case"line":case"overlap":break;case"overunder":k=e.overscript,x=e.underscript,(e.svgAbove||k)&&(e.svgBelow||x)?_=e.body:k&&k.length>0?(_=e.body,(null===(a=null===(i=e.body)||void 0===i?void 0:i[0])||void 0===a?void 0:a.underscript)?(x=e.body[0].underscript,_=e.body[0].body):"first"===(null===(r=null===(o=e.body)||void 0===o?void 0:o[0])||void 0===r?void 0:r.type)&&(null===(n=null===(s=e.body)||void 0===s?void 0:s[1])||void 0===n?void 0:n.underscript)&&(x=e.body[1].underscript,_=e.body[1].body)):x&&x.length>0&&(_=e.body,(null===(c=null===(l=e.body)||void 0===l?void 0:l[0])||void 0===c?void 0:c.overscript)?(k=e.body[0].overscript,_=e.body[0].body):"first"===(null===(m=null===(d=e.body)||void 0===d?void 0:d[0])||void 0===m?void 0:m.type)&&(null===(u=null===(p=e.body)||void 0===p?void 0:p[1])||void 0===u?void 0:u.overscript)&&(k=e.body[1].overscript,_=e.body[1].body)),(e.svgAbove||k)&&(e.svgBelow||x)?(w+=``,w+=h[e.svgBody]||ea(_,0,0,t).mathML,w+=h[e.svgBelow]||ea(x,0,0,t).mathML,w+=h[e.svgAbove]||ea(k,0,0,t).mathML,w+=""):e.svgAbove||k?(w+=``+(h[e.svgBody]||ea(_,0,0,t).mathML),w+=h[e.svgAbove]||ea(k,0,0,t).mathML,w+=""):(e.svgBelow||x)&&(w+=``+(h[e.svgBody]||ea(_,0,0,t).mathML),w+=h[e.svgBelow]||ea(x,0,0,t).mathML,w+="");break;case"placeholder":case"mord":{w=f[S]||S||("string"==typeof e.body?e.body:"");const i=S?S.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null;i?w="&#x"+i[1]+";":w.length>0&&"\\"===w.charAt(0)&&(w="string"==typeof e.body&&e.body.charCodeAt(0)>255?"&#x"+("000000"+e.body.charCodeAt(0).toString(16)).substr(-4)+";":"string"==typeof e.body?e.body.charAt(0):e.body);const a=/\d/.test(w)?"mn":"mi";w="<"+a+z+Wi(e.id,t)+">"+Vi(w)+"";break}case"mbin":case"mrel":case"textord":case"minner":w=S&&f[S]?""+f[S]+"":S&&Hi[S]?""+Hi[S]+"":ta(e,t);break;case"mpunct":w='"+(Hi[S]||S)+"";break;case"mop":"​"!==e.body&&(w="",w+="\\operatorname"===S?e.body:S||e.body,w+="");break;case"mathstyle":break;case"box":w='"+ea(e.body,0,0,t).mathML+"";break;case"spacing":w+='';break;case"enclose":w=''+ea(e.body,0,0,t).mathML+"";break;case"space":w+=" "}return w}function oa(e,t){return ea(e,0,0,t).mathML}function ra(e){let t=0;for(let i=0;i{qi(e)&&e.dirty&&na(e)}))}function na(e,t){t=null!=t?t:{},e.dirty=!1,window.mathlive||(window.mathlive={}),Pt(e.model)||(e.model.path=[{relation:"body",offset:0}]),e.model.root.forEach(e=>{e.caret="",e.isSelected=!1,e.containsCaret=!1});const i=e.hasFocus();if(oi(e.model)?Pt(e.model).caret=i&&!e.options.readOnly?e.mode:"":di(e.model,e=>{e.isSelected=!0}),i&&!e.options.readOnly){let t=e.model.ancestor(1),i=1,a=!1;for(;t&&!a;)"surd"!==t.type&&"leftright"!==t.type||(t.containsCaret=!0,a=!0),i+=1,t=e.model.ancestor(i)}const a=D(Ye({mathstyle:h.displaystyle,letterShapeStyle:e.options.letterShapeStyle,atomIdsSettings:{seed:ra(e.model.root.toLatex(!1)),groupNumbers:t.forHighlighting},smartFence:e.options.smartFence,macros:e.options.macros},e.model.root),"ML__base");a.attributes={translate:"no","aria-hidden":"true"};const o=K(a,"ML__mathlive");e.field.innerHTML=e.options.createHTML(o.toMarkup(0,e.options.horizontalSpacingScale)),e.field.classList.toggle("ML__focused",i&&!e.options.readOnly),e.accessibleNode.innerHTML=e.options.createHTML(''+oa(e.model.root,e.options)+"");const r=Ti(e.field);if(null!==r){const t=document.createElement("div");t.classList.add("ML__selection"),t.style.position="absolute",t.style.left=Number(r.left).toString()+"px",t.style.top=Number(r.top).toString()+"px",t.style.width=Number(Math.ceil(r.right-r.left)).toString()+"px",t.style.height=Number(Math.ceil(r.bottom-r.top-1)).toString()+"px",e.field.insertBefore(t,e.field.childNodes[0])}}const la={};function ca(e,t){t=null!=t?t:{target:"mathfield",canUndo:!1},Object.keys(e).forEach(i=>{la[i]={...t,fn:e[i]}})}function da(e,t=",",i){if(!e)return[];let a,o=[];for(let r of e)r&&r.length>0&&"first"===r[0].type&&(r=r.slice(1)),r&&r.length>0&&(a?o.push(a):a=new Je("math","mpunct",t,i),o=o.concat(r));return o}function ma(e,i){const a=e.parent();if(a&&"array"===a.type&&t(a.array)){const t=e.relation();if(a.array){const o=xt(a.array,t);"after row"===i||"before row"===i?(o.col=0,o.row=o.row+("after row"===i?1:0),a.array.splice(o.row,0,[[]])):(o.col+="after column"===i?1:0,a.array[o.row].splice(o.col,0,[]));const r=vt(a.array,o);e.path.pop(),e.path.push({relation:"cell"+r.toString(),offset:0}),e.insertFirstAtom()}}}function pa(e){var t;const i=e.parent();if("leftright"===i.type){i.type="array";const a=null!==(t={"(":"pmatrix","\\lbrack":"bmatrix","\\lbrace":"cases"}[i.leftDelim])&&void 0!==t?t:"matrix",o=re(a),r=[[i.body]];Object.assign(i,o.parser(a,[],r)),i.mode=Ut(e),i.environmentName=a,i.array=r,i.rowGaps=[0],delete i.body,e.path[e.path.length-1].relation="cell0"}}function ua(e){return pa(e),ma(e,"after row"),Ft(e),!0}function ha(e){return pa(e),ma(e,"after column"),Ft(e),!0}function fa(e,t=0){const i=e.suppressChangeNotifications;if(e.suppressChangeNotifications=!0,t=t<0?-1:t>0?1:t,pt(e),e.parent().array&&t<0&&0===e.startOffset()){const t=e.parent().array;if(function(e){const t={col:0,row:0};for(;t.row0){let e=t.length;"first"===t[0].type&&(e-=1),e>0&&(i+=1)}a.row+=1}return i}(t,i.col)&&(function(e,t){let i=0;for(;i"placeholder"!==e.type&&"first"!==e.type);e.parent()[t]=null,e.path.pop(),e.siblings().splice(e.anchorOffset(),0,...i),Xt(e,e.anchorOffset()-1),e.announce("deleted: "+t)}else if("denom"===t){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),Xt(e,e.anchorOffset()+t.length-1),e.announce("deleted: denominator")}else if("body"===t){const t=e.siblings().filter(e=>"placeholder"!==e.type);e.path.length>1&&(t.shift(),e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...t),Xt(e,e.anchorOffset()-1),e.announce("deleted: root"))}else Yt(e,"backward"),ga(e,-1)}else if(t>0)if(i!==a.length-1)/^(group|array|genfrac|surd|leftright|overlap|overunder|box|mathstyle|sizing)$/.test(e.sibling(1).type)?Yt(e,"forward"):(e.announce("deleted",null,a.slice(i+1,i+2)),a.splice(i+1,1));else if("numer"===e.relation()){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),Xt(e,e.anchorOffset()+t.length-1),e.announce("deleted: numerator")}else Yt(e,"forward"),ga(e,-1)}else{const t=e.startOffset()+1,i=e.endOffset()+1;e.announce("deleted",null,a.slice(t,i)),a.splice(t,i-t),Xt(e,t-1)}ut(e),e.suppressChangeNotifications=i,Ot(e),Ft(e)}function ga(e,t=0){if(0===t)fa(e,0);else if(t>0)for(;t>0;)fa(e,1),t--;else for(;t<0;)fa(e,-1),t++;return!0}function ya(e,t){if(oi(e))return!1;function i(t,i){let a=!0;return di(e,e=>{a=a&&e[t]===i},{recursive:!0}),a}return t.color&&i("color",t.color)&&(t.color="none"),t.backgroundColor&&i("backgroundColor",t.backgroundColor)&&(t.backgroundColor="none"),t.fontFamily&&i("fontFamily",t.fontFamily)&&(t.fontFamily="none"),t.series&&(t.fontSeries=t.series),t.fontSeries&&i("fontSeries",t.fontSeries)&&(t.fontSeries="auto"),t.shape&&(t.fontShape=t.shape),t.fontShape&&i("fontShape",t.fontShape)&&(t.fontShape="auto"),t.size&&(t.fontSize=t.size),t.fontSize&&i("fontSize",t.fontSize)&&(t.fontSize="size5"),di(e,e=>e.applyStyle(t),{recursive:!0}),Ft(e),!0}function ba(e){e.root.forEach(e=>{!Array.isArray(e.body)||0!==e.body.length&&"first"===e.body[0].type||e.body.unshift(new Je(e.mode,"first")),!e.superscript||0!==e.superscript.length&&"first"===e.superscript[0].type||e.superscript.unshift(new Je(e.mode,"first")),!e.subscript||0!==e.subscript.length&&"first"===e.subscript[0].type||e.subscript.unshift(new Je(e.mode,"first")),!e.overscript||0!==e.overscript.length&&"first"===e.overscript[0].type||e.overscript.unshift(new Je(e.mode,"first")),!e.underscript||0!==e.underscript.length&&"first"===e.underscript[0].type||e.underscript.unshift(new Je(e.mode,"first")),!e.numer||0!==e.numer.length&&"first"===e.numer[0].type||e.numer.unshift(new Je(e.mode,"first")),!e.denom||0!==e.denom.length&&"first"===e.denom[0].type||e.denom.unshift(new Je(e.mode,"first")),!e.index||0!==e.index.length&&"first"===e.index[0].type||e.index.unshift(new Je(e.mode,"first"))})}function va(e,t,i){var a,o,r,s;if(null!==(a=i.smartFence)&&void 0!==a&&a){if(_a(e,t,i.style))return void ba(e)}else{const i=e.parent();if("leftright"===(null==i?void 0:i.type)&&"?"===i.rightDelim&&e.endOffset()===e.siblings().length-1&&/^[)}\]|]$/.test(t))return i.rightDelim=t,Yt(e,"forward"),ba(e),void Ft(e)}const n=e.suppressChangeNotifications;i.suppressChangeNotifications&&(e.suppressChangeNotifications=!0);const l=e.suppressChangeNotifications;e.suppressChangeNotifications=!0,i.insertionMode||(i.insertionMode="replaceSelection"),i.selectionMode||(i.selectionMode="placeholder"),i.format||(i.format="auto"),i.macros=null!==(o=i.macros)&&void 0!==o?o:e.options.macros;const c=i.mode||Ut(e);let d;const m=[Qe("math",ti(e)).toLatex(!1)],p=null!==(r=i.placeholder)&&void 0!==r?r:"\\placeholder{}";m["?"]=p,"replaceSelection"!==i.insertionMode||oi(e)?"replaceAll"===i.insertionMode?(e.root.body=[],e.root.latex="",e.path=[{relation:"body",offset:0}],e.extent=0):"insertBefore"===i.insertionMode?ni(e):"insertAfter"===i.insertionMode&&si(e):ga(e);const u=e.siblings(),h=e.startOffset();if(h+10&&u[h]&&"placeholder"===u[h].type&&ga(e,-1),"math"===c&&"ASCIIMath"===i.format)[,t]=Kt(t,{format:"ASCIIMath"}),d=rt(t,"math",null,null==i?void 0:i.macros,!1,e.listeners.onError),ka(e,d);else if("text"===c||"auto"!==i.format&&"latex"!==i.format)"text"!==c&&"text"!==i.format||(d=rt(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/\\/g,"\\textbackslash ")).replace(/#/g,"\\#")).replace(/\$/g,"\\$")).replace(/%/g,"\\%")).replace(/&/g,"\\&")).replace(/_/g,"\\_")).replace(/{/g,"\\textbraceleft ")).replace(/}/g,"\\textbraceright ")).replace(/\^/g,"\\textasciicircum ")).replace(/~/g,"\\textasciitilde ")).replace(/£/g,"\\textsterling "),"text",m,i.macros,!1,e.listeners.onError));else if("command"===c){d=[];for(const e of t)U.test(e)&&d.push(new Je("command","command",e))}else if(""===t)d=[new Je("command","command","\\")];else{if("auto"===i.format&&([i.format,t]=Kt(t)),m[0])t=t.replace(/(^|[^\\])#@/g,"$1#0");else if(/(^|[^\\])#@/.test(t)){const i=function(e){const t=e.siblings();let i=e.startOffset();if("text"===t[i].mode)for(;i>=1&&"text"===t[i].mode;)i--;else for(;i>=1&&/^(mord|surd|msubsup|leftright|mop)$/.test(t[i].type);)i--;return i}(e);t=t.replace(/(^|[^\\])#@/g,"$1"+function(e,t,i){const a=e.siblings();if(mt(a))return"";if("first"===a[0].type&&0===t&&(t=1),"root"===e.parent().type&&1===t&&i===a.length-1)return e.parent().toLatex(!1);let o="",r=t;for(;r<=i;)o+=a[r].toLatex(!1),r++;return o}(e,i+1,e.startOffset())),function(e,t){t>0?e.siblings().splice(e.anchorOffset()+1,t):(e.siblings().splice(e.anchorOffset()+t+1,-t),Xt(e,e.anchorOffset()+t))}(e,i-e.startOffset())}else t=t.replace(/(^|[^\\])#@/g,"$1#?");/^\$\$(.*)\$\$$/.test(t)&&(t=t.substring(2,t.length-2)),m[0]||(m[0]=p),d=rt(t,c,m,i.macros,null!==(s=i.smartFence)&&void 0!==s&&s,e.listeners.onError),"latex"!==i.format&&ka(e,d)}ut(e),function e(t,i){t&&i&&(et(t)?t.forEach(t=>e(t,i)):"object"==typeof t&&(t.color||t.backgroundColor||t.fontFamily||t.fontShape||t.fontSeries||t.fontSize||(t.applyStyle(i),e(t.body,i),e(t.numer,i),e(t.denom,i),e(t.index,i),e(t.overscript,i),e(t.underscript,i),e(t.subscript,i),e(t.superscript,i))))}(d,i.style);const f=e.parent();if("latex"!==i.format&&e.options.removeExtraneousParentheses&&f&&"leftright"===f.type&&"("===f.leftDelim&&mt(f.body)&&d&&1===d.length&&"genfrac"===d[0].type?(e.path.pop(),e.siblings()[e.anchorOffset()]=d[0]):("latex"!==i.format||1!==m.length||m[0]||"root"===f.type&&mt(f.body)&&(f.latex=t),e.siblings().splice(e.anchorOffset()+1,0,...d)),ba(e),e.suppressChangeNotifications=l,"placeholder"===i.selectionMode){const t=[];for(const e of d)e.forEach(e=>{"placeholder"===e.type&&t.push(e)});0!==t.length&&jt(e,1,!1)?e.announce("move"):Xt(e,e.anchorOffset()+d.length)}else"before"===i.selectionMode||("after"===i.selectionMode?Xt(e,e.anchorOffset()+d.length):"item"===i.selectionMode&&Xt(e,e.anchorOffset(),d.length));Ft(e),e.suppressChangeNotifications=n}function xa(e){if(e)return 1===e.length&&"leftright"===e[0].type&&"("===e[0].leftDelim&&(e=e[0].body),e}function ka(e,t){if(t&&e.options.removeExtraneousParentheses){for(let e=0;t[e];e++)if("leftright"===t[e].type&&"("===t[e].leftDelim&&et(t[e].body)){let i=0,a=0,o=0;for(let r=0;t[e].body[r];r++)"genfrac"===t[e].body[r].type&&(i++,a=r),"first"!==t[e].body[r].type&&o++;0===o&&1===i&&(t[e]=t[e].body[a])}t.forEach(t=>{if("genfrac"===t.type&&(ka(e,t.numer),ka(e,t.denom),t.numer=xa(t.numer),t.denom=xa(t.denom)),t.superscript&&(ka(e,t.superscript),t.superscript=xa(t.superscript)),t.subscript&&(ka(e,t.subscript),t.subscript=xa(t.subscript)),t.underscript&&(ka(e,t.underscript),t.underscript=xa(t.underscript)),t.overscript&&(ka(e,t.overscript),t.overscript=xa(t.overscript)),t.index&&(ka(e,t.index),t.index=xa(t.index)),"surd"===t.type?(ka(e,t.body),t.body=xa(t.body)):et(t.body)&&ka(e,t.body),t.array)for(let i=_t(t.array);i>=0;i--)ka(e,kt(t.array,i))})}}function _a(e,t,i){const a=e.parent();let o="leftright"===a.type?a.leftDelim+a.rightDelim:"";if("\\lbrace\\rbrace"===o&&(o="{}"),"\\{\\}"===o&&(o="{}"),"{}"===o&&/\||\\vert|\\Vert|\\mvert|\\mid/.test(t))return va(e,"\\,\\middle"+t+"\\, ",{mode:"math",format:"latex",style:i}),!0;"{"!==t&&"\\{"!==t||(t="\\lbrace"),"}"!==t&&"\\}"!==t||(t="\\rbrace"),"["===t&&(t="\\lbrack"),"]"===t&&(t="\\rbrack");const r=V[t];if(r&&("leftright"!==a.type||"|"!==a.leftDelim)){let a="";const o=oi(e)||"placeholder"===Pt(e).type;a=e.sibling(0).isFunction?"\\mleft"+t+"\\mright":"\\left"+t+"\\right",a+=o?"?":r;let s=[];return o&&(s=e.siblings().splice(e.anchorOffset()+1,e.siblings().length)),va(e,a,{mode:"math",format:"latex",style:i}),o&&(e.sibling(0).body=s,Yt(e,"backward")),!0}let s;if(Object.keys(V).forEach(e=>{t===V[e]&&(s=e)}),s){if(a&&"leftright"===a.type&&e.endOffset()===e.siblings().length-1)return a.rightDelim=t,Yt(e,"forward"),Ft(e),!0;const o=e.siblings();let r;for(r=e.endOffset();r>=0&&("leftright"!==o[r].type||"?"!==o[r].rightDelim);r--);if(r>=0)return o[r].rightDelim=t,o[r].body=o[r].body.concat(o.slice(r+1,e.endOffset()+1)),o.splice(r+1,e.endOffset()-r),Xt(e,r),Ft(e),!0;if(a&&"leftright"===a.type&&"?"===a.rightDelim){a.rightDelim=t;const i=o.slice(e.endOffset()+1);return o.splice(e.endOffset()+1),e.path.pop(),e.siblings().splice(e.endOffset()+1,0,...i),Ft(e),!0}const s=e.ancestor(2);return!(!s||"leftright"!==s.type||"?"!==s.rightDelim||e.endOffset()!==o.length-1)&&(Yt(e,"forward"),_a(e,t,i))}return!1}ca({performWithFeedback:(e,t)=>function(e,t){return e.focus(),e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),"moveToNextPlaceholder"===(t=t.replace(/-\w/g,e=>e[1].toUpperCase()))||"moveToPreviousPlaceholder"===t||"complete"===t?e.returnKeypressSound?(e.returnKeypressSound.load(),e.returnKeypressSound.play().catch(e=>{})):e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):"deletePreviousChar"!==t&&"deleteNextChar"!==t&&"deletePreviousWord"!==t&&"deleteNextWord"!==t&&"deleteToGroupStart"!==t&&"deleteToGroupEnd"!==t&&"deleteToMathFieldStart"!==t&&"deleteToMathFieldEnd"!==t||!e.deleteKeypressSound?e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):(e.deleteKeypressSound.load(),e.deleteKeypressSound.play().catch(e=>{})),e.executeCommand(t)}(e,t)}),ca({addRowAfter:ua,addColumnAfter:ha,addRowBefore:function(e){return pa(e),ma(e,"before row"),Ft(e),!0},addColumnBefore:function(e){return pa(e),ma(e,"before column"),Ft(e),!0}},{target:"model",category:"array-edit"});class wa{constructor(e){this.positions=[],this.root=e;const t=new La;t.root=e,ba(t);do{this.positions.push({path:t.toString(),atom:Sa(t),depth:t.path.length})}while(Ma(t))}at(e){return this.positions[e]}find(e){for(let t=0;tthis.at(e).path)}}function Ma(e){const i={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(e.anchorOffset()===e.siblings(!1).length-1){let t=i[e.relation()];const a=e.parent();for(;t&&!a[t];)t=i[t];if(t)return za(e,0,t),!0;if(e.parent().array){const t=_t(e.parent().array);let i=parseInt(e.relation().match(/cell([0-9]*)$/)[1])+1;for(;i{},moveOut:(null==e?void 0:e.moveOut)?e.moveOut:()=>!0,tabOut:(null==e?void 0:e.tabOut)?e.tabOut:()=>!0}}get selection(){const e=Pt(this);let t=void 0;if(this.parent().array)t=kt(this.parent().array,this.relation())[this.focusOffset()];else{const e=this.siblings();t=e[Math.min(e.length-1,this.focusOffset())]}const i=new wa(this.root);return[ht(i,{start:i.find(e),end:i.find(t)})]}set selection(e){!function(e,t){const i=Array.isArray(t)?t[0]:t,a=new wa(e.root);let o;i.direction||(i.direction="forward"),void 0===i.end&&(i.end=i.start),i.end<0&&(i.end=a.lastPosition),o="backward"===i.direction?a.at(i.end).path:a.at(i.start).path,Rt(e,o,i.end-i.start)}(this,e)}get lastPosition(){return new wa(this.root).lastPosition}announce(e,t,i=[]){this.hooks.announce(this.mathfield,e,t,i)}toString(){return ft(this.path,this.extent)}siblings(e=!0){var t;if(0===this.path.length)return[];let i;return this.parent().array?i=kt(this.parent().array,this.relation()):(i=null!==(t=this.parent()[this.relation()])&&void 0!==t?t:[],"string"==typeof i&&(i=[])),!e||0!==i.length&&"first"===i[0].type||i.unshift(new Je(this.parent().mode,"first")),i}anchorOffset(){return this.path.length>0?this.path[this.path.length-1].offset:0}focusOffset(){return this.path.length>0?this.path[this.path.length-1].offset+this.extent:0}groupIsSelected(){return 0===this.startOffset()&&this.endOffset()>=this.siblings().length-1}startOffset(){return Math.min(this.focusOffset(),this.anchorOffset())}endOffset(){return Math.max(this.focusOffset(),this.anchorOffset())}sibling(e){return this.siblings()[this.startOffset()+e]}ancestor(e){if(e>this.path.length)return null;let t=this.root;for(let i=0;i0?this.path[this.path.length-1].relation:""}insertFirstAtom(){this.siblings()}}function Aa(e){if(si(e),!Pt(e).superscript)if(Pt(e).subscript)Pt(e).superscript=[new Je(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.superscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.subscript)?(e.path[e.path.length-1].offset+=1,Pt(e).superscript=[new Je(e.parent().mode,"first")]):("limits"!==Pt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Je(e.parent().mode,"msubsup","​",Ht(e))),e.path[e.path.length-1].offset+=1),Pt(e).superscript=[new Je(e.parent().mode,"first")])}return e.path.push({relation:"superscript",offset:0}),ii(e),!0}ca({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",denom:"numer",numer:"denom"}[e.relation()];return t||Aa(e),e.parent()[t]||(e.parent()[t]=[new Je(e.parent().mode,"first")]),Xt(e,0,"end",t),!0},moveBeforeParent:e=>e.path.length>1?(e.path.pop(),Xt(e,e.anchorOffset()-1),!0):(e.announce("plonk"),!1),moveAfterParent:e=>li(e),moveToNextPlaceholder:e=>jt(e,1),moveToPreviousPlaceholder:e=>jt(e,-1),moveToNextChar:e=>Yt(e,"forward"),moveToPreviousChar:e=>Yt(e,"backward"),moveUp:e=>Yt(e,"upward"),moveDown:e=>Yt(e,"downward"),moveToNextWord:e=>Qt(e,1),moveToPreviousWord:e=>Qt(e,-1),moveToGroupStart:e=>Xt(e,0),moveToGroupEnd:e=>Xt(e,-1),moveToMathFieldStart:e=>ei(e,-1),moveToMathFieldEnd:e=>ei(e,1),moveToSuperscript:e=>Aa(e),moveToSubscript:e=>function(e){if(si(e),!Pt(e).subscript)if(Pt(e).superscript)Pt(e).subscript=[new Je(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.subscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.superscript)?(e.path[e.path.length-1].offset+=1,Pt(e).subscript=[new Je(e.parent().mode,"first")]):("limits"!==Pt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Je(e.parent().mode,"msubsup","​",Ht(e))),e.path[e.path.length-1].offset+=1),Pt(e).subscript=[new Je(e.parent().mode,"first")])}return e.path.push({relation:"subscript",offset:0}),ii(e),!0}(e)},{target:"model",category:"selection-anchor"}),ca({selectGroup:e=>ii(e),selectAll:e=>ai(e),extendToNextChar:e=>Jt(e,1),extendToPreviousChar:e=>Jt(e,-1),extendToNextWord:e=>Qt(e,1,{extend:!0}),extendToPreviousWord:e=>Qt(e,-1,{extend:!0}),extendUp:e=>Yt(e,"upward",{extend:!0}),extendDown:e=>Yt(e,"downward",{extend:!0}),extendToNextBoundary:e=>Qt(e,1,{extend:!0}),extendToPreviousBoundary:e=>Qt(e,-1,{extend:!0}),extendToGroupStart:e=>(ri(e,-e.anchorOffset()),!0),extendToGroupEnd:e=>(ri(e,e.siblings().length-e.anchorOffset()),!0),extendToMathFieldStart:e=>ei(e,-1,{extend:!0}),extendToMathFieldEnd:e=>ei(e,1,{extend:!0})},{target:"model",category:"selection-extend"}),ca({deleteAll:e=>(ai(e),ga(e)),deleteNextChar:e=>ga(e,1),deletePreviousChar:e=>ga(e,-1),deleteNextWord:e=>(Qt(e,1,{extend:!0}),ga(e)),deletePreviousWord:e=>(Qt(e,-1,{extend:!0}),ga(e)),deleteToGroupStart:e=>(ri(e,-e.anchorOffset()),ga(e)),deleteToGroupEnd:e=>(ei(e,-1,{extend:!0}),ga(e)),deleteToMathFieldStart:e=>(ei(e,-1,{extend:!0}),ga(e)),deleteToMathFieldEnd:e=>(ei(e,1,{extend:!0}),ga(e))},{target:"model",category:"delete"});const Ca=["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"];function $a(e){return!e.ctrlKey&&!e.metaKey&&"Dead"!==e.key&&Ca.indexOf(e.code)>=0}function qa(e){const t=[];return(e=function(e){if(!e.code){const t=Object.entries(xi().mapping);let i,a=!1,o=!1;for(let r=0;r<4;r++){for(const[s,n]of t)if(n[r]===e.key){i=s,3===r?(a=!0,o=!0):2===r?a=!0:1===r&&(o=!0);break}if(i)break}return new KeyboardEvent(e.type,{...e,altKey:a,shiftKey:o,code:i})}return new KeyboardEvent(e.type,e)}(e)).ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),0===t.length?"["+e.code+"]":(t.push("["+e.code+"]"),t.join("+"))}function Da(e){var t;if(!e)return"";let i;return"Unidentified"===e.key&&e.target&&(i=e.target.value),i=null!==(t=null!=i?i:e.key)&&void 0!==t?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(i)&&(i=""),i}class Ta{constructor(e){this.maximumDepth=1e3,this.record=!1,this.canCoalesce=!1,this.model=e,this.reset()}reset(){this.stack=[],this.index=-1}startRecording(){this.record=!0}canUndo(){return this.index>0}canRedo(){return this.index!==this.stack.length-1}undo(e){this.canUndo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"undo"),this.restore(this.stack[this.index-1],e),this.index-=1,e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"undo"),this.canCoalesce=!1)}redo(e){this.canRedo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"redo"),this.index+=1,this.restore(this.stack[this.index],e),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"redo"),this.canCoalesce=!1)}pop(){this.canUndo()&&(this.index-=1,this.stack.pop())}snapshot(e){this.record&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"snapshot"),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push({latex:this.model.root.toLatex(!1),selection:this.model.selection}),this.index++,this.stack.length>this.maximumDepth&&this.stack.shift(),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"snapshot"),this.canCoalesce=!1)}snapshotAndCoalesce(e){this.canCoalesce&&this.pop(),this.snapshot(e),this.canCoalesce=!0}save(){return{latex:this.model.root.toLatex(!1),selection:this.model.selection}}restore(e,t){const i=this.model.suppressChangeNotifications;void 0!==t.suppressChangeNotifications&&(this.model.suppressChangeNotifications=t.suppressChangeNotifications),va(this.model,e?e.latex:"",{...t,format:"latex",mode:"math",insertionMode:"replaceAll",selectionMode:"after",smartFence:!1}),this.model.selection=e?e.selection:[{start:0}],this.model.suppressChangeNotifications=i}}const Ka={"−":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega"},Ea={"\\pm":"+-","\\times":"xx","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrace":"{","\\rbrace":"}","\\langle":"(:","\\rangle":":)"};function Na(e){if(!e)return"";if(t(e)){let t="";if(0===e.length)return"";if("first"===e[0].type&&(e=e.slice(1)),0===e.length)return"";if("text"===e[0].mode){let i=0;for(t='"';e[i]&&"text"===e[i].mode;)t+=e[i].body,i++;t+='"'+Na(e.slice(i))}else if("math"===e[0].mode){let i=0;for(;e[i]&&"math"===e[i].mode;)t+=Na(e[i]),i++;t+=Na(e.slice(i))}return t.trim()}if("text"===e.mode)return'"'+e.body+'"';let i="";const a=e.symbol;let o;switch(e.type){case"group":case"root":i=Na(e.body);break;case"array":break;case"genfrac":(e.leftDelim||e.rightDelim)&&(i+="."!==e.leftDelim&&e.leftDelim?e.leftDelim:"{:"),e.hasBarLine?(i+="(",i+=Na(e.numer),i+=")/(",i+=Na(e.denom),i+=")"):(i+="("+Na(e.numer)+"),",i+="("+Na(e.denom)+")"),(e.leftDelim||e.rightDelim)&&(i+="."!==e.rightDelim&&e.rightDelim?e.rightDelim:"{:");break;case"surd":e.index?i+="root("+Na(e.index)+")("+Na(e.body)+")":i+="sqrt("+Na(e.body)+")";break;case"leftright":i+="."!==e.leftDelim&&e.leftDelim?e.leftDelim:"{:",i+=Na(e.body),i+="."!==e.rightDelim&&e.rightDelim?e.rightDelim:":}";break;case"sizeddelim":case"delim":case"overlap":case"overunder":break;case"mord":i=Ka[a]||a||("string"==typeof e.body?e.body:""),"\\"===i[0]&&(i=String(i)),o=a?a.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null,o?i=String.fromCharCode(parseInt("0x"+o[1])):i.length>0&&"\\"===i.charAt(0)&&(i="string"==typeof e.body?e.body.charAt(0):e.symbol);break;case"mbin":case"mrel":case"textord":case"minner":i=a&&Ka[a]?Ka[a]:a&&Ea[a]?Ea[a]:e.body;break;case"mopen":case"mclose":i+=e.body;break;case"mpunct":i=Ea[a]||a;break;case"mop":"​"!==e.body&&(i="",i+="\\operatorname"===a?Na(e.body):e.body||a,i+=" ");break;case"mathstyle":case"box":case"spacing":case"enclose":break;case"space":i=" "}if(e.subscript){i+="_";const t=Na(e.subscript);t.length>1&&!/^(-)?\d+(\.\d*)?$/.test(t)?i+="("+t+")":i+=t}if(e.superscript){i+="^";const t=Na(e.superscript);t.length>1&&!/^(-)?\d+(\.\d*)?$/.test(t)?i+="("+t+")":i+=t}return i}const Ba={};function Oa(e){const t=Ba.locale.substring(0,2);let i="";return Ba.strings[Ba.locale]&&(i=Ba.strings[Ba.locale][e]),!i&&Ba.strings[t]&&(i=Ba.strings[t][e]),i||(i=Ba.strings.en[e]),i||(i=e),i}function Fa(e,t,i){pt(e);const a=[],o=t.substr(i);for(const e of o){const t=new Je("command","command",e);t.isSuggestion=!0,a.push(t)}Array.prototype.splice.apply(e.siblings(),[e.anchorOffset()+1,0].concat(a))}function Pa(e,t){if(t=null!=t?t:{acceptSuggestion:!1},Fi(e),t.discard)return Ii(e.model,null),e.switchMode("math"),!0;const i=Pi(e.model,!t.acceptSuggestion);if(i){if("\\("===i||"\\)"===i)Ii(e.model,[]),va(e.model,i.slice(1),{mode:e.mode});else{e.switchMode("math");const t=rt(i,"math",null,e.options.macros);t?Ii(e.model,t):Ri(e.model,!0)}return e.snapshot(),e.model.announce("replacement"),!0}return!1}function Ra(e){!function(e){const t=e.siblings(),i=Wt(e);let a=i.start;for(;a1)}return sa(e),!0}Ba.plural=function(e,t,i){var a;(i=null!=i?i:{}).type=null!==(a=i.type)&&void 0!==a?a:"cardinal";const o=Ba.locale.substring(0,2),r="ordinal"===i.type?Ba._ordinal:Ba._cardinal;let s,n="ordinal"===i.type?Ba._ordinalPluralCategories.indexOf(r.select(e)):Ba._cardinalPluralCategories.indexOf(r.select(e));return Ba.strings[Ba.locale]&&(s=Ba.strings[Ba.locale][t]),!s&&Ba.strings[o]&&(s=Ba.strings[o][t]),s||(s=Ba.strings.en[t],s||(s=t),n="ordinal"===i.type?Ba._ordinalPluralCategories.indexOf(Ba._ordinalEnglish.select(e)):Ba._cardinalPluralCategories.indexOf(Ba._cardinalEnglish.select(e))),s.split(";")[n]||s.split(";")[0]},Ba.merge=function(e,t){if(e&&t){const i=Ba._locale;Ba.locale=e,Ba.strings[e]={...Ba.strings[e],...t},Ba.locale=i}else e&&!t&&Object.keys(e).forEach(t=>Ba.merge(t,e[t]))},Object.defineProperty(Ba,"locale",{set(e){Ba._locale=e,Ba._ordinal=null,Ba._cardinal=null},get(){var e;return Ba._locale||(Ba._locale=null!==(e=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==e?e:"en"),Ba._locale}}),Object.defineProperty(Ba,"ordinal",{get:()=>(Ba._ordinal||(Ba._ordinalEnglish=new Intl.PluralRules("en",{type:"ordinal"}),Ba._ordinalEnglishPluralCategories=Ba._ordinalEnglish.resolvedOptions().pluralCategories,Ba._ordinal=new Intl.PluralRules(Ba.locale,{type:"ordinal"}),Ba._ordinalPluralCategories=Ba._ordinal.resolvedOptions().pluralCategories),Ba._ordinal)}),Object.defineProperty(Ba,"cardinal",{get:()=>(Ba._cardinal||(Ba._cardinalEnglish=new Intl.PluralRules("en",{type:"cardinal"}),Ba._cardinalEnglishPluralCategories=Ba._cardinalEnglish.resolvedOptions().pluralCategories,Ba._cardinal=new Intl.PluralRules(Ba.locale,{type:"cardinal"}),Ba._cardinalPluralCategories=Ba._ordinal.resolvedOptions().pluralCategories),Ba._cardinal)}),Ba.strings={en:{"keyboard.tooltip.functions":"Functions","keyboard.tooltip.symbols":"Symbols","keyboard.tooltip.greek":"Greek Letters","keyboard.tooltip.command":"LaTeX Command Mode","keyboard.tooltip.numeric":"Numeric","keyboard.tooltip.roman":"Roman Letters","tooltip.copy to clipboard":"Copy to Clipboard","tooltip.redo":"Redo","tooltip.toggle virtual keyboard":"Toggle Virtual Keyboard","tooltip.undo":"Undo"},ar:{"keyboard.tooltip.functions":"مهام","keyboard.tooltip.symbols":"حرف او رمز","keyboard.tooltip.greek":"حروف يونانية","keyboard.tooltip.command":"حالة تلقي الأوامر اللاتك","keyboard.tooltip.numeric":"الرقمية","keyboard.tooltip.roman":"رموز الاحرف الرومانية","tooltip.copy to clipboard":"نسخ إلى الحافظة","tooltip.redo":"الإعادة","tooltip.toggle virtual keyboard":"تبديل لوحة المفاتيح الإفتراضية","tooltip.undo":"إلغاء"},de:{"keyboard.tooltip.functions":"Funktionen","keyboard.tooltip.symbols":"Symbole","keyboard.tooltip.greek":"Griechische Buchstaben","keyboard.tooltip.command":"LaTeX-Befehlsmodus","keyboard.tooltip.numeric":"Numerisch","keyboard.tooltip.roman":"Römische Buchstaben","tooltip.copy to clipboard":"In die Zwischenablage kopieren","tooltip.redo":"Wiederholen","tooltip.toggle virtual keyboard":"Virtuelle Tastatur umschalten","tooltip.undo":"Widerrufen"},el:{"keyboard.tooltip.functions":"συναρτήσεις","keyboard.tooltip.symbols":"σύμβολα","keyboard.tooltip.greek":"ελληνικά γράμματα","keyboard.tooltip.command":"Λειτουργία εντολών LaTeX","keyboard.tooltip.numeric":"Αριθμητικός","keyboard.tooltip.roman":"Ρωμαϊκά γράμματα","tooltip.copy to clipboard":"Αντιγραφή στο πρόχειρο","tooltip.redo":"Ξανακάνω","tooltip.toggle virtual keyboard":"Εναλλαγή εικονικού πληκτρολογίου","tooltip.undo":"Ξεκάνω"},es:{"keyboard.tooltip.functions":"Funciones","keyboard.tooltip.symbols":"Símbolos","keyboard.tooltip.greek":"Letras griegas","keyboard.tooltip.command":"Modo Comando LaTeX","keyboard.tooltip.numeric":"Numérico","keyboard.tooltip.roman":"Letras romanas","tooltip.copy to clipboard":"Copiar al portapapeles","tooltip.redo":"Rehacer","tooltip.toggle virtual keyboard":"Alternar teclado virtual","tooltip.undo":"Deshacer"},fa:{"keyboard.tooltip.functions":"توابع","keyboard.tooltip.symbols":"نمادها","keyboard.tooltip.greek":"حروف یونانی","keyboard.tooltip.command":"حالت دستور لاتک","keyboard.tooltip.numeric":"عددی","keyboard.tooltip.roman":"حروف رومی","tooltip.copy to clipboard":"کپی به کلیپبورد","tooltip.redo":"بازگشت به بعد","tooltip.toggle virtual keyboard":"نمایش/نهفتن کیبورد مجازی","tooltip.undo":"بازگشت به قبل"},fr:{"keyboard.tooltip.functions":"Fonctions","keyboard.tooltip.symbols":"Symboles","keyboard.tooltip.greek":"Lettres grecques","keyboard.tooltip.command":"Mode de commandes LaTeX","keyboard.tooltip.numeric":"Numérique","keyboard.tooltip.roman":"Lettres romaines","tooltip.copy to clipboard":"Copier dans le presse-papiers","tooltip.redo":"Rétablir","tooltip.toggle virtual keyboard":"Afficher/Masquer le clavier virtuel","tooltip.undo":"Annuler"},it:{"keyboard.tooltip.functions":"Funzioni","keyboard.tooltip.symbols":"Simboli","keyboard.tooltip.greek":"Lettere greche","keyboard.tooltip.command":"Modalità di comando LaTeX","keyboard.tooltip.numeric":"Numerico","keyboard.tooltip.roman":"Lettere romane","tooltip.copy to clipboard":"Copia negli appunti","tooltip.redo":"Rifare","tooltip.toggle virtual keyboard":"Attiva / disattiva la tastiera virtuale","tooltip.undo":"Disfare"},ja:{"keyboard.tooltip.functions":"関数","keyboard.tooltip.symbols":"シンボル","keyboard.tooltip.greek":"ギリシャ文字","keyboard.tooltip.command":"LaTeXコマンドモード","keyboard.tooltip.numeric":"数値","keyboard.tooltip.roman":"ローマ字","tooltip.copy to clipboard":"クリップボードにコピー","tooltip.redo":"やり直し","tooltip.toggle virtual keyboard":"仮想キーボードの切り替え","tooltip.undo":"元に戻す"},pl:{"keyboard.tooltip.functions":"Funkcje","keyboard.tooltip.symbols":"Symbolika","keyboard.tooltip.greek":"Litery greckie","keyboard.tooltip.command":"Tryb poleceń LaTeX","keyboard.tooltip.numeric":"Numeryczne","keyboard.tooltip.roman":"Litery rzymskie","tooltip.copy to clipboard":"Kopiuj do Schowka","tooltip.redo":"Przywróć","tooltip.toggle virtual keyboard":"Przełącz wirtualną klawiaturę","tooltip.undo":"Cofnij"},ru:{"keyboard.tooltip.functions":"Функции","keyboard.tooltip.symbols":"Символы","keyboard.tooltip.greek":"Греческие буквы","keyboard.tooltip.command":"Режим командной строки LaTeX","keyboard.tooltip.numeric":"числовой","keyboard.tooltip.roman":"Латинские буквы","tooltip.copy to clipboard":"Скопировать в буфер обмена","tooltip.redo":"переделывать","tooltip.toggle virtual keyboard":"Переключить виртуальную клавиатуру","tooltip.undo":"расстегивать"}},ca({complete:Pa,nextSuggestion:function(e){return e.suggestionIndex+=1,Ra(e),!1},previousSuggestion:function(e){if(e.suggestionIndex-=1,e.suggestionIndex<0){pt(e.model);const t=ne(Pi(e.model));e.suggestionIndex=t.length-1}return Ra(e),!1}},{target:"mathfield",category:"autocomplete"});const Ia={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"eye ","\\sum":"Summation ","\\prod":"Product ",a:'a',A:'capital A',"+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","​":"","−":"minus ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"};function Ha(e){let t=0;if(et(e))for(const i of e)"first"!==i.type&&(t+=1);return 1===t}function Va(e){let t="";if(et(e))for(const i of e)"first"!==i.type&&"string"==typeof i.body&&(t+=i.body);return t}function Wa(e,t){var i;const a={...t,textToSpeechRulesOptions:{...t.textToSpeechRulesOptions}};if(window.sre&&"sre"===a.textToSpeechRules){const t=oa(e,a);return t?(a.textToSpeechMarkup&&(a.textToSpeechRulesOptions=null!==(i=a.textToSpeechRulesOptions)&&void 0!==i?i:{},a.textToSpeechRulesOptions.markup=a.textToSpeechMarkup,"ssml"===a.textToSpeechRulesOptions.markup&&(a.textToSpeechRulesOptions.markup="ssml_step"),a.textToSpeechRulesOptions.rate=a.speechEngineRate),a.textToSpeechRulesOptions&&window.sre.System.getInstance().setupEngine(a.textToSpeechRulesOptions),window.sre.System.getInstance().toSpeech(t)):""}let o=function e(t,i,a){function o(e){return""+e+""}if(!i)return"";let r="";if(et(i)){let s=!1,n=!1;for(let l=0;l'),r+=i.body;else{i.id&&"math"===t&&(r+='');let s="",n="",l="",c=!1;switch(i.type){case"group":case"root":r+=e("math",i.body,a);break;case"genfrac":if(s=e("math",i.numer,a),n=e("math",i.denom,a),Ha(i.numer)&&Ha(i.denom)){const e={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Va(i.numer)+"/"+Va(i.denom)];e?r=e:r+=s+" over "+n}else r+=' the fraction '+s+', over '+n+'. End fraction.';break;case"surd":if(l=e("math",i.body,a),i.index){let t=e("math",i.index,a);t=t.trim();const o=t.replace(//g,"");r+="3"===o?' the cube root of '+l+'. End cube root':"n"===o?' the nth root of '+l+'. End root':' the root with index: '+t+', of '+l+'. End root'}else Ha(i.body)?r+=" the square root of "+l+" , ":r+=' the square root of '+l+'. End square root';break;case"leftright":r+=Ia[i.leftDelim]||i.leftDelim,r+=e("math",i.body,a),r+=Ia[i.rightDelim]||i.rightDelim;break;case"rule":case"overunder":case"overlap":break;case"placeholder":r+="placeholder "+i.body;break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":case"textord":{const o=i.symbol;if("\\mathbin"===o||"\\mathrel"===o||"\\mathopen"===o||"\\mathclose"===o||"\\mathpunct"===o||"\\mathord"===o||"\\mathinner"===o){r=e(t,i.body,a);break}let s=i.body,n=i.symbol;if("delim"!==i.type&&"sizeddelim"!==i.type||(s=n=i.delim),"text"===t)r+=s;else{if("mbin"===i.type&&(r+=''),s){const e=Ia[s]||(n?Ia[n.trim()]:"");if(e)r+=" "+e;else{const e=n?function(e){let t="";return"\\"===e.charAt(0)&&(t=" "+e.replace("\\","")+" "),t}(n.trim()):"";r+=e||function(e){let t="";return a.textToSpeechMarkup?/[a-z]/.test(e)?t+=' '+e+"":/[A-Z]/.test(e)?t+=String("capital "+e.toLowerCase()):t+=e:/[a-z]/.test(e)?t+=" '"+e.toUpperCase()+"'":/[A-Z]/.test(e)?t+=" 'capital "+e.toUpperCase()+"'":t+=e,t}(s)}}else r+=e("math",i.body,a);"mbin"===i.type&&(r+='')}break}case"mop":if("​"!==i.body){const t=i.symbol;if("\\sum"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the summation from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the summation from '+t+' of ',c=!0}else r+=" the summation of";else if("\\prod"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the product from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the product from '+t+' of ',c=!0}else r+=" the product of ";else if("\\int"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let s=e("math",i.subscript,a);s=s.trim(),r+=' the integral from '+o(s)+' to '+o(t)+' of ',c=!0}else r+=' the integral of ';else"string"==typeof i.body?r+=Ia[i.body]||Ia[i.symbol]||" "+i.body:i.symbol&&("\\"===i.symbol[0]?r+=" "+i.symbol.substr(1):r+=" "+i.symbol)}break;case"enclose":l=e("math",i.body,a),Ha(i.body)?r+=" crossed out "+l+" , ":r+=" crossed out "+l+". End cross out"}if(!c&&i.superscript){let o=e(t,i.superscript,a);o=o.trim();const s=o.replace(/<[^>]*>/g,"");if(Ha(i.superscript)){if("math"===t){const e=function(e){if(et(e))for(const t of e)if("first"!==t.type&&t.id)return t.id.toString();return""}(i.superscript);e&&(r+='')}"′"===s?r+=" prime ":"2"===s?r+=" squared ":"3"===s?r+=" cubed ":isNaN(parseInt(s))?r+=" to the "+o+"; ":r+=' to the '+s+" power; "}else isNaN(parseInt(s))?r+=" raised to the "+o+"; ":r+=' raised to the '+s+" power; "}if(!c&&i.subscript){let t=e("math",i.subscript,a);t=t.trim(),Ha(i.subscript)?r+=" sub "+t:r+=" subscript "+t+". End subscript. "}}return r}("math",e,a);if("ssml"===a.textToSpeechMarkup){let e="";a.speechEngineRate&&(e=''),o=''+e+"

"+o+"

"+(e?"
":"")+""}else o="mac"===a.textToSpeechMarkup&&"mac"===function(e){let t="other";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?t="mac":/^(win)/i.test(navigator.platform)?t="win":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos")),t===e?e:"!"+e}("mac")?o.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):o.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return o}function Ua(e,t,i){return t+Wa(i,{...e,textToSpeechMarkup:"",textToSpeechRulesOptions:{...e.textToSpeechRulesOptions,markup:"none"}})}function ja(e,t){if(!t&&window&&window.mathlive&&(t=window.mathlive.config),(t=null!=t?t:{}).speechEngine&&"local"!==t.speechEngine)if("amazon"===t.speechEngine){if(window&&window.AWS){const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),a={OutputFormat:"mp3",VoiceId:t.speechEngineVoice,Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes(t.speechEngineVoice)?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(a,(function(e,t){if(e);else if(null==t?void 0:t.AudioStream){const e=new Uint8Array(t.AudioStream),i=new Blob([e.buffer],{type:"audio/mpeg"}),a=URL.createObjectURL(i);new Audio(a).play().catch(e=>{})}}))}}else t.speechEngine;else{const t=new SpeechSynthesisUtterance(e);window&&window.speechSynthesis.speak(t)}}function Xa(e,t,i,a){let o="";"plonk"===t?(e.plonkSound&&(e.plonkSound.load(),e.plonkSound.play().catch(e=>{})),e.resetKeystrokeBuffer()):"delete"===t?o=Ua(e.options,"deleted: ",a):"focus"===t||/move/.test(t)?o=(oi(e.model)?"":"selected: ")+function(e,t){function i(e,t){return"body"===t.relation?{enclose:"cross out",leftright:"fence",surd:"square root",root:"math field"}[e.type]:{numer:"numerator",denom:"denominator",index:"index",body:"parent",subscript:"subscript",superscript:"superscript"}[t.relation]}const a=t?t.path:[],o=e.model.path,r=o[o.length-1];let s="";for(;a.length>o.length;)s+="out of "+i(t.parent(),a[a.length-1])+"; ",a.pop();if(!oi(e.model))return Ua(e.options,"",ti(e.model));const n=i(e.model.parent(),r);0===r.offset&&(s+=(n?"start of "+n:"unknown")+": ");const l=e.model.sibling(Math.max(1,e.model.extent));return l?s+=Ua(e.options,"",l):0!==r.offset&&(s+=n?"end of "+n:"unknown"),s}(e,i):"replacement"===t?o=Ua(e.options,"",e.model.sibling(0)):"line"===t?(o=Ua(e.options,"",e.model.root),e.accessibleNode.innerHTML=e.options.createHTML(''+oa(e.model.root,e.options)+""),e.textarea.setAttribute("aria-label","after: "+o)):o=a?Ua(e.options,t+" ",a):t;const r=/\u00a0/.test(e.ariaLiveText.textContent)?"   ":"   ";e.ariaLiveText.textContent=o+r}ca({speak:(e,t,i)=>function(e,t,i){i=null!=i?i:{withHighlighting:!1};const a=function(e,t){let i=null;switch(t){case"all":i=e.model.root;break;case"selection":oi(e.model)||(i=ti(e.model));break;case"left":{const t=e.model.siblings(),a=e.model.startOffset();if(a>=1){i=[];for(let e=1;e<=a;e++)i.push(t[e])}break}case"right":{const t=e.model.siblings(),a=e.model.endOffset()+1;if(a<=t.length-1){i=[];for(let e=a;e<=t.length-1;e++)i.push(t[e])}break}case"group":i=e.model.siblings();break;case"parent":{const t=e.model.parent();t&&"root"!==t.type&&(i=e.model.parent());break}}return i}(e,t);if(null===a)return e.options.speakHook(function(e){let t="";switch(e){case"all":break;case"selection":t="no selection";break;case"left":t="at start";break;case"right":t="at end";break;case"group":break;case"parent":t="no parent"}return t}(t),e.options),!1;const o={...e.options};(i.withHighlighting||"amazon"===o.speechEngine)&&(o.textToSpeechMarkup=window.sre&&"sre"===o.textToSpeechRules?"ssml_step":"ssml");const r=Wa(a,o);return i.withHighlighting?(window.mathlive.readAloudMathField=e,na(e,{forHighlighting:!0}),e.options.readAloudHook&&e.options.readAloudHook(e.field,r,e.options)):e.options.speakHook&&e.options.speakHook(r,o),!1}(e,t,i)},{target:"mathfield",category:"speech"});const Ga=()=>{};function Za(e){if("string"==typeof e){const t=new Audio;return t.preload="none",t.src=e,t.volume=.5,t}return e}function Ya(e){e instanceof HTMLAudioElement&&(e.pause(),e.removeAttribute("src"),e.load())}function Ja(e,i){const a=Qa(e,Object.keys(e));return Object.keys(i).forEach(e=>{var o,r,s;switch(e){case"scriptDepth":if(t(i.scriptDepth))a.scriptDepth=[i.scriptDepth[0],i.scriptDepth[1]];else{if("number"!=typeof i.scriptDepth)throw Error("Unexpected value for scriptDepth");a.scriptDepth=[i.scriptDepth,i.scriptDepth]}break;case"namespace":if(!/^[a-z]*[-]?$/.test(i.namespace))throw Error("namespace must be a string of lowercase characters only");/-$/.test(i.namespace)?a.namespace=i.namespace:a.namespace=i.namespace+"-";break;case"locale":a.locale="auto"===i.locale?null!==(o=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==o?o:"en":i.locale,Ba.locale=a.locale;break;case"strings":Ba.merge(i.strings),a.strings=Ba.strings;break;case"virtualKeyboardLayout":"auto"===i.virtualKeyboardLayout?a.virtualKeyboardLayout=null!==(r={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Ba.locale.substring(0,2)])&&void 0!==r?r:"qwerty":a.virtualKeyboardLayout=i.virtualKeyboardLayout;break;case"virtualKeyboardMode":{const e=null===(s=window.matchMedia)||void 0===s?void 0:s.call(window,"(any-pointer: coarse)").matches;"auto"===i.virtualKeyboardMode?a.virtualKeyboardMode=e?"onfocus":"off":a.virtualKeyboardMode=i.virtualKeyboardMode}break;case"letterShapeStyle":"auto"===i.letterShapeStyle?"fr"===Ba.locale.substring(0,2)?a.letterShapeStyle="french":a.letterShapeStyle="tex":a.letterShapeStyle=i.letterShapeStyle;break;case"plonkSound":Ya(a.plonkSound),a.plonkSound=Za(i.plonkSound);break;case"keypressSound":if(Ya(a.keypressSound),"string"==typeof i.keypressSound){const e=Za(i.keypressSound);a.keypressSound={delete:e,return:e,spacebar:e,default:e}}else if(i.keypressSound instanceof HTMLAudioElement)a.keypressSound={delete:i.keypressSound,return:i.keypressSound,spacebar:i.keypressSound,default:i.keypressSound};else{if(!i.keypressSound.default)throw Error("Missing keypressSound.default");a.keypressSound={...i.keypressSound},a.keypressSound.return||(a.keypressSound.return=i.keypressSound.default),a.keypressSound.spacebar||(a.keypressSound.spacebar=i.keypressSound.default),a.keypressSound.delete||(a.keypressSound.delete=i.keypressSound.default)}break;case"onBlur":case"onFocus":case"onContentWillChange":case"onContentDidChange":case"onSelectionWillChange":case"onSelectionDidChange":case"onUndoStateWillChange":case"onUndoStateDidChange":case"onModeChange":case"onCommit":case"onVirtualKeyboardToggle":case"onReadAloudStatus":case"onError":if(null===i[e])a[e]=Ga;else if("function"!=typeof i[e])throw Error(e+" must be a function or null");a[e]=i[e];break;default:t(i[e])?a[e]=[...i[e]]:"object"==typeof i[e]?a[e]={...i[e]}:a[e]=i[e]}}),void 0!==i.overrideDefaultInlineShortcuts&&(i.overrideDefaultInlineShortcuts?a.inlineShortcuts=i.inlineShortcuts:a.inlineShortcuts={...Dt,...i.inlineShortcuts}),a}function Qa(e,i){let a;a="string"==typeof i?[i]:void 0===i?Object.keys(e):i;const o={};return a.forEach(i=>{t(o[i])?o[i]=[...o[i]]:"object"==typeof o[i]?o[i]={...o[i]}:o[i]=e[i]}),"string"==typeof i?o[i]:o}function eo(){return{namespace:"",substituteTextArea:void 0,readOnly:!1,createHTML:e=>e,fontsDirectory:"./fonts",defaultMode:"math",macros:H,horizontalSpacingScale:1,letterShapeStyle:"auto",smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,ignoreSpacebarInMathMode:!0,locale:Ba.locale,strings:Ba.strings,keybindings:ki,overrideDefaultInlineShortcuts:!1,inlineShortcuts:{},inlineShortcutTimeout:0,virtualKeyboardToggleGlyph:'',virtualKeyboardMode:"auto",virtualKeyboards:"all",virtualKeyboardLayout:"auto",customVirtualKeyboardLayers:{},customVirtualKeyboards:{},virtualKeyboardTheme:/android|cros/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?"material":"apple",keypressVibration:!0,keypressSound:null,plonkSound:null,textToSpeechRules:"mathlive",textToSpeechMarkup:"",textToSpeechRulesOptions:{},speechEngine:"local",speechEngineVoice:"Joanna",speechEngineRate:"100%",speakHook:Ga,readAloudHook:Ga,onAnnounce:Xa,onKeystroke:()=>!0,onMoveOutOf:()=>!0,onTabOutOf:()=>!0,onBlur:Ga,onFocus:Ga,onContentWillChange:Ga,onContentDidChange:Ga,onSelectionWillChange:Ga,onSelectionDidChange:Ga,onUndoStateWillChange:Ga,onUndoStateDidChange:Ga,onModeChange:Ga,onVirtualKeyboardToggle:Ga,onReadAloudStatus:Ga,onCommit:Ga,onError:()=>{}}}function to(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"math"!==r.mode||!(/mord|textord|mpunct/.test(r.type)||"mop"===r.type&&/[a-zA-Z]+/.test(r.body))||Boolean(r.superscript)||Boolean(r.subscript)||i&&!i(r),o||(r.applyStyle({mode:"text"}),r.symbol=r.body,r.latex=""),a-=1,t-=1}Ft(e.model)}function io(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"text"!==r.mode||" "===r.body||i&&!i(r),o||r.applyStyle({mode:"math"}),a-=1,t-=1}ao(e),Ft(e.model)}function ao(e){let t=0;for(;e.model.sibling(t)&&"math"===e.model.sibling(t).mode;)t-=1;if(e.model.sibling(t)&&"text"===e.model.sibling(t).mode&&" "===e.model.sibling(t).body&&(!e.model.sibling(t-1)||"math"===e.model.sibling(t-1).mode)){e.model.siblings().splice(t-1,1),Ft(e.model);const i=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,Xt(e.model,e.model.anchorOffset()-1),e.model.suppressChangeNotifications=i}}function oo(e,t,i){!function(e){const t=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;if("Unidentified"===e.key)return;if("Dead"===e.key)return;const i=fi.filter(i=>{var a;return(null===(a=i.mapping[e.code])||void 0===a?void 0:a[t])===e.key});0!==i.length&&(i.forEach(e=>{e.score+=1}),fi.sort((e,t)=>t.score-e.score))}(i);const a=xi();if(e.keyboardLayout!==a.id&&(e.keyboardLayout=a.id,e.keybindings=Si(e.options.keybindings,t=>{"function"==typeof e.options.onError&&e.options.onError({code:"invalid-keybinding",arg:t.join("\n")})})),function(e,t){const i=e.keystrokeCaption;if(i&&e.keystrokeCaptionVisible){const a=e.element.getBoundingClientRect();i.style.left=a.left+"px",i.style.top=a.top-64+"px",i.innerHTML=e.options.createHTML(""+(zi(t)||t)+""+i.innerHTML),i.style.visibility="visible",setTimeout((function(){i.childNodes.length>0&&i.removeChild(i.childNodes[i.childNodes.length-1]),0===i.childNodes.length&&(i.style.visibility="hidden")}),3e3)}}(e,t),clearTimeout(e.keystrokeBufferResetTimer),e.options.onKeystroke&&!e.options.onKeystroke(e,t,i))return(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;let o,r,s,n=!1;if("command"!==e.mode&&(!i||!i.ctrlKey&&!i.metaKey))if("[Backspace]"===t)e.keystrokeBuffer=e.keystrokeBuffer.slice(0,-1),e.keystrokeBufferStates.pop(),e.resetKeystrokeBuffer({defer:!0});else if($a(i)){const t=Da(i),a=e.keystrokeBuffer+t;let s=0;for(;!o&&s{e.startsWith(r)&&!i.includes(e)&&i.push(e)});const s=(null==t?void 0:t.inlineShortcuts)?t.inlineShortcuts:null;s&&Object.keys(s).forEach(e=>{e.startsWith(r)&&i.push(e)})}return i}(a,e.options).length<=1?n=!0:e.resetKeystrokeBuffer({defer:!0})}else e.resetKeystrokeBuffer();if(e.options.smartMode){const a=e.mode;o?e.mode="math":function(e,t,i){if(e.smartModeSuppressed)return!1;if(e.model.endOffset()<*|]$/.test(a))return ao(e),!0}else{if("[Space]"===t)return to(e,void 0,e=>/[a-z][:,;.]$/.test(e.body)),!0;if(/[a-zA-Z]{3,}$/.test(o)&&!/(dxd|abc|xyz|uvw)$/.test(o))return to(e,void 0,e=>/[a-zA-Z]/.test(e.body)),!0;if(/(^|\W)(if|If)$/i.test(o))return to(e,1),!0;if(/(\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5){3,}$/u.test(o)&&!/(αβγ)$/.test(o))return to(e,void 0,e=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5)/u.test(e.body)),!0;if("?"===a)return!0;if("."===a&&!/[0-9-+]\.$/.test(o))return!0}return!1}(e,t,i)&&(e.mode={math:"text",text:"math"}[e.mode],s=""),e.mode!==a&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}if(o||s||(s=function(e,t,i){if(0===e.length)return"";for(let a=e.length-1;a>=0;a--)if(e[a].key===i&&(!e[a].ifMode||e[a].ifMode===t))return e[a].command;return""}(e.keybindings,e.mode,t)),!(o||s||"[Enter]"!==t&&"[Return]"!==t)&&"function"==typeof e.options.onCommit)return e.options.onCommit(e),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;if(!o&&!s)return!0;if(e.options.readOnly&&"insert"===s[0])return!0;Ri(e.model,!1);const l=e.model.parent();if("moveAfterParent"===s&&l&&"leftright"===l.type&&e.model.endOffset()===e.model.siblings().length-1&&e.options.smartFence&&_a(e.model,".",e.style)&&(s="",sa(e)),"math"===e.mode&&"[Spacebar]"===t&&!o){const t=e.model.sibling(1),i=e.model.sibling(-1);(t&&"text"===t.mode||i&&"text"===i.mode)&&va(e.model," ",{mode:"text"})}if(s)e.executeCommand(s);else if(o){const t={...Ht(e.model),...e.style};if(!/^(\\{|\\}|\\[|\\]|\\@|\\#|\\$|\\%|\\^|\\_|\\backslash)$/.test(o)){const a=e.mode;va(e.model,Da(i),{suppressChangeNotifications:!0,mode:e.mode,style:t}),e.snapshotAndCoalesce(),e.restoreToUndoRecord(e.keystrokeBufferStates[r]),e.mode=a}const a=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,va(e.model,o,{format:"latex",mode:e.mode,style:t,smartFence:!0}),ao(e),o.endsWith(" ")&&(e.mode="text",va(e.model," ",{mode:"text",style:t})),e.model.suppressChangeNotifications=a,Ft(e.model),Ot(e.model),e.snapshot(),e.dirty=!0,e.model.announce("replacement"),n&&e.resetKeystrokeBuffer()}return e.scrollIntoView(),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1}function ro(e,t,i){if(e.options.readOnly)return void e.model.announce("plonk");if((i=null!=i?i:{}).focus&&e.focus(),i.feedback&&(e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{}))),i.commandMode&&"command"!==e.mode&&e.switchMode("command"),Ri(e.model,!1),i.simulateKeystroke){const i=t.charAt(0);if(!oo(e,i,new KeyboardEvent("keypress",{key:i})))return}let a="",o=!1;if(e.pasteInProgress)e.pasteInProgress=!1,va(e.model,t,{smartFence:e.options.smartFence,mode:"math"});else{const i={...Ht(e.model),...e.style},r=Ie(t);for(const t of r)if("command"===e.mode){pt(e.model),e.suggestionIndex=0;const i=Pi(e.model),r=ne(i+t);o=r.length>1,0===r.length?(va(e.model,t,{mode:"command"}),/^\\[a-zA-Z\\*]+$/.test(i+t)&&Ri(e.model,!0),Fi(e)):(va(e.model,t,{mode:"command"}),r[0].match!==i+t&&Fa(e.model,r[0].match,-r[0].match.length+i.length+1),a=r[0].match)}else if("math"===e.mode){const a={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(a){if("moveToSuperscript"===a){if(so(e)>=e.options.scriptDepth[1])return void e.model.announce("plonk")}else if("moveToSubscript"===a&&no(e)>=e.options.scriptDepth[0])return void e.model.announce("plonk");e.executeCommand(a)}else e.options.smartSuperscript&&"superscript"===e.model.relation()&&/[0-9]/.test(t)&&0===e.model.siblings().filter(e=>"first"!==e.type).length?(va(e.model,t,{mode:"math",style:i}),li(e.model)):va(e.model,t,{mode:"math",style:i,smartFence:e.options.smartFence})}else"text"===e.mode&&va(e.model,t,{mode:"text",style:i})}"command"!==e.mode&&e.snapshotAndCoalesce(),e.dirty=!0,e.scrollIntoView(),Ni(e,a,o)}function so(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!0:a.subscript&&(o=!1),i+=1,a=e.model.ancestor(i);return o?t:0}function no(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!1:a.subscript&&(o=!0),i+=1,a=e.model.ancestor(i);return o?t:0}function lo(e){return e.pasteInProgress=!0,!0}let co;ca({undo:e=>(Pa(e),e.undo(),!0),redo:e=>(Pa(e),e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},enterCommandMode:e=>(e.switchMode("command"),!0),toggleKeystrokeCaption:e=>(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaption.innerHTML="",e.keystrokeCaptionVisible||(e.keystrokeCaption.style.visibility="hidden"),!1),switchMode:(e,t)=>(e.switchMode(t),!0),insert:(e,t,i)=>e.insert(t,i),typedText:(e,t)=>(ro(e,t),!0),commit:e=>("function"==typeof e.options.onCommit&&e.options.onCommit(e),!0)}),ca({applyStyle:function(e,t){e.resetKeystrokeBuffer();const i=function(e){const t={};return"string"==typeof e.mode&&(t.mode=e.mode.toLowerCase()),"string"==typeof e.color&&(t.color=e.color),"string"==typeof e.backgroundColor&&(t.backgroundColor=e.backgroundColor),"string"==typeof e.fontFamily&&(t.fontFamily=e.fontFamily),"string"==typeof e.series&&(t.fontSeries=e.series),"string"==typeof e.fontSeries&&(t.fontSeries=e.fontSeries.toLowerCase()),t.fontSeries&&(t.fontSeries={bold:"b",medium:"m",normal:"m"}[t.fontSeries]||t.fontSeries),"string"==typeof e.shape&&(t.fontShape=e.shape),"string"==typeof e.fontShape&&(t.fontShape=e.fontShape.toLowerCase()),t.fontShape&&(t.fontShape={italic:"it",up:"n",upright:"n",normal:"n"}[t.fontShape]||t.fontShape),"string"==typeof e.size?t.fontSize=e.size:"number"==typeof e.size&&(t.fontSize="size"+Math.min(0,Math.max(10,e.size))),"string"==typeof e.fontSize&&(t.fontSize=e.fontSize.toLowerCase()),t.fontSize&&(t.fontSize={tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normal:"size5",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[t.fontSize]||t.fontSize),t}(t);if(i.mode){if(oi(e.model))e.switchMode(i.mode);else{const t=e.mode,i="math"===(Ut(e.model)||e.options.defaultMode)?"text":"math";let a=e.$selectedText("ASCIIMath");if("math"===i&&/^"[^"]+"$/.test(a)&&(a=a.slice(1,-1)),e.insert(a,{mode:i,selectionMode:"item",format:"text"===i?"text":"ASCIIMath"}),e.mode=i,e.model.groupIsSelected()){const t=e.model.parent();!t||"group"!==t.type&&"root"!==t.type||(t.mode=i)}e.mode!==t&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}delete i.mode}return oi(e.model)?(e.style.fontSeries&&i.fontSeries===e.style.fontSeries&&(i.fontSeries="auto"),i.fontShape&&i.fontShape===e.style.fontShape&&(i.fontShape="auto"),i.color&&i.color===e.style.color&&(i.color="none"),i.backgroundColor&&i.backgroundColor===e.style.backgroundColor&&(i.backgroundColor="none"),i.fontSize&&i.fontSize===e.style.fontSize&&(i.fontSize="auto"),e.style={...e.style,...i}):(ya(e.model,i),e.snapshot()),!0}},{target:"mathfield"}),ca({copyToClipboard:e=>(e.focus(),oi(e.model)&&e.select(),document.execCommand("copy"),!1),cutToClipboard:e=>(e.focus(),document.execCommand("cut"),!0),pasteFromClipboard:e=>(e.focus(),document.execCommand("paste"),!0)},{target:"mathfield",category:"clipboard"});let mo=0;function po(e,t,i,a){var o;(a=null!=a?a:{}).bias=null!==(o=a.bias)&&void 0!==o?o:0;const r=function e(t,i,a){let o={element:null,distance:Number.POSITIVE_INFINITY},r=!0;if(t.getAttribute("data-atom-id")){o.element=t;const e=t.getBoundingClientRect(),s=i-(e.left+e.right)/2,n=a-(e.top+e.bottom)/2;o.distance=s*s+n*n,r=i>=e.left&&i<=e.right}if(r&&t.children)for(const r of t.children){const t=e(r,i,a);t.element&&t.distance<=o.distance&&(o=t)}return o}(e.field,t,i).element,s=r?r.getAttribute("data-atom-id"):null;if(!s)return;const n=pi(e.model,e=>{if(!e.captureSelection)return e.id===s;let t=!1;return e.forEach(e=>{e.id===s&&(t=!0)}),t});if(!n||0===n.length)return;const l=gt(n[0]).path;if(0===a.bias){const e=r.getBoundingClientRect();tf ()",classes:"tex",layers:["functions"]},symbols:{tooltip:"keyboard.tooltip.symbols",layer:"symbols",label:"∞≠∈",classes:"tex",layers:["symbols"]},command:{tooltip:"keyboard.tooltip.command",command:"enterCommandMode",label:"",layers:["lower-command","upper-command","symbols-command"]},style:{tooltip:"keyboard.tooltip.style",layer:"style",label:"bi𝔹"}},ho={"\\varphi ":["Φ","\\Phi "],"\\varsigma ":["Σ","\\Sigma "],"\\epsilon ":["Ɛ",'{\\char"0190}'],"\\rho ":["Ρ",'{\\char"3A1}'],"\\tau ":["Τ",'{\\char"3A4}'],"\\upsilon ":["Υ","\\Upsilon "],"\\theta ":["Θ","\\Theta "],"\\iota ":["Ι",'{\\char"399}'],"\\omicron ":["Ο",'{\\char"39F}'],"\\pi ":["Π","\\Pi "],"\\alpha ":["Α",'{\\char"391}'],"\\sigma ":["Σ","\\Sigma "],"\\delta ":["Δ","\\Delta "],"\\phi ":["Φ","\\Phi "],"\\gamma ":["Γ","\\Gamma "],"\\eta ":["Η",'{\\char"397}'],"\\xi ":["Ξ","\\Xi "],"\\kappa ":["Κ",'{\\char"39A}'],"\\lambda ":["Λ","\\Lambda "],"\\zeta ":["Ζ",'{\\char"396}'],"\\chi ":["Χ",'{\\char"3A7}'],"\\psi ":["Ψ","\\Psi "],"\\omega ":["Ω","\\Omega "],"\\beta ":["Β",'{\\char"392}'],"\\nu ":["Ν",'{\\char"39D}'],"\\mu ":["Μ",'{\\char"39C}']},fo={0:["\\emptyset","\\varnothing","\\infty",{latex:"#?_0",insert:"#@_0"},"\\circ","\\bigcirc","\\bullet"],2:["\\frac{1}{2}",{latex:"#?^2",insert:"#@^2"}],3:["\\frac{1}{3}",{latex:"#?^3",insert:"#@^3"}],".":[",",";","\\colon",{latex:":",aside:"ratio"},{latex:"\\cdotp",aside:"center dot",classes:"box"},{latex:"\\cdots",aside:"center ellipsis",classes:"box"},{latex:"\\ldotp",aside:"low dot",classes:"box"},{latex:"\\ldots",aside:"low ellipsis",classes:"box"},{latex:"\\vdots",aside:"",classes:"box"},{latex:"\\ddots",aside:"",classes:"box"},"\\odot","\\oslash","\\circledcirc"],"*":["\\cdot","\\ast","\\star","\\bigstar","\\ltimes","\\rtimes","\\rightthreetimes","\\leftthreetimes","\\intercal","\\prod",{latex:"\\prod_{n\\mathop=0}^{\\infty}",classes:"small"}],"+":["\\pm","\\mp","\\sum",{latex:"\\sum_{n\\mathop=0}^{\\infty}",classes:"small"},"\\dotplus","\\oplus"],"-":["\\pm","\\mp","\\ominus","\\vert #0 \\vert"],"/":["\\divideontimes","/","\\div"],"(":["\\left( #0\\right)","\\left[ #0\\right]","\\left\\{ #0\\right\\}","\\left\\langle #0\\right\\rangle","\\lfloor","\\llcorner","(","\\lbrack","\\lvert","\\lVert","\\lgroup","\\langle","\\lceil","\\ulcorner","\\lmoustache","\\lbrace"],")":["\\rfloor","\\lrcorner",")","\\rbrack","\\rvert","\\rVert","\\rgroup","\\rangle","\\rceil","\\urcorner","\\rmoustache","\\rbrace"],"=":["\\cong","\\asymp","\\equiv","\\differencedelta","\\varpropto","\\thickapprox","\\approxeq","\\thicksim","\\backsim","\\eqsim","\\simeq","\\Bumpeq","\\bumpeq","\\doteq","\\Doteq","\\fallingdotseq","\\risingdotseq","\\coloneq","\\eqcirc","\\circeq","\\triangleq","\\between"],"!=":["\\neq","\\ncong","","\\nsim"],"<":["\\leq","\\leqq","\\lneqq","\\ll","\\nless","\\nleq","\\precsim","\\lesssim","\\lessgtr","\\prec","\\preccurlyeq","\\lessdot","\\nprec"],">":["\\geq","\\geqq","\\gneqq","\\gg","\\ngtr","\\ngeq","\\succsim","\\gtrsim","\\gtrless","\\succ","\\succcurlyeq","\\gtrdot","\\nsucc"],set:["\\in","\\owns","\\subset","\\nsubset","\\supset","\\nsupset"],"!set":["\\notin","\\backepsilon"],subset:[],supset:[],infinity:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"],"numeric-pi":["\\prod","\\theta","\\rho","\\sin","\\cos","\\tan"],ee:["\\times 10^{#?}","\\ln","\\ln_{10}","\\log"],"^":["_{#?}"],int:[{latex:"\\int_{#?}^{#?}",classes:"small"},{latex:"\\int",classes:"small"},{latex:"\\smallint",classes:"small"},{latex:"\\iint",classes:"small"},{latex:"\\iiint",classes:"small"},{latex:"\\oint",classes:"small"},{latex:"\\dfrac{\\rd}{\\rd x}",classes:"small"},{latex:"\\frac{\\partial}{\\partial x}",classes:"small"},"\\capitalDifferentialD","\\rd","\\partial"],nabla:["\\nabla\\times","\\nabla\\cdot","\\nabla^{2}"],"!":["!!","\\Gamma","\\Pi"],accents:["\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"],A:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],b:[{latex:"\\beth",aside:"beth"}],B:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"}],d:[{latex:"\\daleth",aside:"daleth"}],D:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"}],g:[{latex:"\\gimel",aside:"gimel"}],G:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"}],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\N",aside:"set of natural numbers"}],p:[{latex:"\\P",aside:"set of primes"}],q:[{latex:"\\Q",aside:"set of rational numbers"}],r:[{latex:"\\R",aside:"set of real numbers"}],z:[{latex:"\\Z",aside:"set of integers"}],"x-var":["y","z","t","r",{latex:"f(#?)",classes:"small"},{latex:"g(#?)",classes:"small"},"x^2","x^n","x_n","x_{n+1}","x_i","x_{i+1}"],"n-var":["i","j","p","k","a","u"],ii:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"],logic:[{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"},{latex:"\\ni",aside:"such that"},{latex:"\\Colon",aside:"such that"},{latex:"\\implies",aside:"implies"},{latex:"\\impliedby",aside:"implied by"},{latex:"\\iff",aside:"if and only if"},{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"},{latex:"\\therefore",aside:"therefore"},{latex:"\\because",aside:"because"},{latex:"^\\biconditional",aside:"biconditional"},"\\leftrightarrow","\\Leftrightarrow","\\to","\\models","\\vdash","\\gets","\\dashv","\\roundimplies"],"set-operators":["\\cap","\\cup","\\setminus","\\smallsetminus","\\complement"],"set-relations":["\\in","\\notin","\\ni","\\owns","\\subset","\\supset","\\subseteq","\\supseteq","\\subsetneq","\\supsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsupset","\\nsubseteq","\\nsupseteq"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space
⁻³⧸₁₈ em"},{latex:'\\unicode{"203A}\\,\\unicode{"2039}',insert:"\\,",aside:"thin space
³⧸₁₈ em"},{latex:'\\unicode{"203A}\\:\\unicode{"2039}',insert:"\\:",aside:"medium space
⁴⧸₁₈ em"},{latex:'\\unicode{"203A}\\;\\unicode{"2039}',insert:"\\;",aside:"thick space
⁵⧸₁₈ em"},{latex:'\\unicode{"203A}\\ \\unicode{"2039}',insert:"\\ ",aside:"⅓ em"},{latex:'\\unicode{"203A}\\enspace\\unicode{"2039}',insert:"\\enspace",aside:"½ em"},{latex:'\\unicode{"203A}\\quad\\unicode{"2039}',insert:"\\quad",aside:"1 em"},{latex:'\\unicode{"203A}\\qquad\\unicode{"2039}',insert:"\\qquad",aside:"2 em"}],delete:[{label:'',command:'"deleteAll"'}],"->|":[]};let go={};const yo={math:"\n
\n
    \n
  • x
  • \n
  • n
  • \n
  • \n \n
  • \n
  • e
  • \n
  • i
  • \n
  • \n
\n
    \n
  • <
  • \n
  • >
  • \n
  • \n \n
  • \n
  • x ²
  • \n
  • x
  • \n
  • \n
\n
    \n
  • (
  • \n
  • )
  • \n
  • \n \n
  • \n
  • \n
  • \n
\n \n
    \n
  • \n
  • \n
  • \n \n
  • \n \n
\n
\n ","lower-roman":"\n
\n
    \n \n \n
\n
    \n \n \n
\n
    \n \n \n
\n
    \n \n
  • ;
  • \n
  • ,
  • \n
  •  
  • \n \n
\n
","upper-roman":"\n
\n
    \n \n \n
\n
    \n \n \n
\n
    \n \n \n
\n
    \n \n
  • ;
  • \n
  • ;
  • \n
  •  
  • \n \n
\n
",symbols:"\n
\n
    \n \n
  • {
  • \n
  • }
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • o
  • \n
  • \n
  • \n\n
\n
    \n \n
  • [
  • \n
  • ]
  • \n
  • \n
  • \n
  • \n
  • !
  • \n
  • o
  • \n
  • o
  • \n
  • \n
  • \n\n
\n
    \n \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n\n
  • \n
\n
    \n \n
  • ,
  • \n
  • \n
  • :
  • \n
  • \n
  • \n
  • \n
  • ±
  • \n \n
\n
","lower-greek":"\n
\n
  • φ
  • \n
  • ς
  • \n
  • ϵ
  • \n
  • ρ
  • \n
  • τ
  • \n
  • υ
  • \n
  • θ
  • \n
  • ι
  • \n
  • ο
  • \n
  • π
  • \n
\n
  • α
  • \n
  • σ
  • \n
  • δ
  • \n
  • ϕ
  • \n
  • γ
  • \n
  • η
  • \n
  • ξ
  • \n
  • κ
  • \n
  • λ
  • \n
\n
  • \n
  • ζ
  • \n
  • χ
  • \n
  • ψ
  • \n
  • ω
  • \n
  • β
  • \n
  • ν
  • \n
  • μ
  • \n
  • \n
\n
    \n
  •  
  • \n
  • ,
  • \n
  • ε
  • \n
  • ϑ
  • \n
  • ϰ
  • \n
  • ϖ
  • \n
  • ϱ
  • \n \n
\n
","upper-greek":"\n
\n
  • Φ
  • \n
  • Σ
  • \n
  • Ɛ
  • \n
  • Ρ
  • \n
  • Τ
  • \n
  • Υ
  • \n
  • Θ
  • \n
  • Ι
  • \n
  • Ο
  • \n
  • Π
\n
  • Α
  • \n
  • Σ
  • \n
  • Δ
  • \n
  • Φ
  • \n
  • Γ
  • \n
  • Η
  • \n
  • Ξ
  • \n
  • Κ
  • \n
  • Λ
\n
  • \n
  • Ζ
  • \n
  • Χ
  • \n
  • Ψ
  • \n
  • Ω
  • \n
  • Β
  • \n
  • Ν
  • \n
  • Μ
  • \n
\n
    \n
  •  
  • \n
  • .
  • \n
  •  
  • \n \n
\n
","lower-command":"\n
\n
\n
\n
\n
    \n
  • 01#
  • \n
  • {
  • \n
  • }
  • \n
  • ^
  • \n
  • _
  • \n
  •  
  • \n \n
\n
","upper-command":"\n
\n
\n
\n
\n
    \n
  • \n
  • [
  • \n
  • ]
  • \n
  • (
  • \n
  • )
  • \n
  •  
  • \n \n
\n
","symbols-command":"\n
\n
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 0
\n
  • !
  • @
  • #
  • $
  • %
  • ^
  • &
  • *
  • +
  • =
\n
    \n
  • \\
  • \n
  • |
  • \n
  • /
  • \n
  • `
  • \n
  • ;
  • \n
  • :
  • \n
  • ?
  • \n
  • '
  • \n
  • \"
  • \n
  • \n
\n
    \n
  • abc
  • \n
  • <
  • \n
  • >
  • \n
  • ~
  • \n
  • ,
  • \n
  • .
  • \n
  •  
  • \n \n
\n
",functions:"\n
\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
\n
  • \n
  • (
  • \n
  • )
  • \n
  • \n
  • \n
  •  
  • \n \n
\n
",style:"\n
\n
    \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
\n
    \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
\n
    \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
\n
    \n
  • \n
  • \n
  • \n\n
  • \n
  • \n
  • \n
  • \n
\n
"};function bo(e,t,i){return e=e.replace(/(^|[^\\])#@/g,"$1#?"),K(D(Ye({mathstyle:h.displaystyle,macros:i.options.macros},rt(e,"math",t,i.options.macros)),"ML__base"),"ML__mathlive").toMarkup()}function vo(e,t,i){var a;let o="
";const r=t.replace(/\s+/g," ").split(" ");if(r.length>1){const t={...uo,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}};for(const e of r){if(!t[e])break;o+="
"+t[e].label+"
"}}return o+="
",o+=`\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n `,""}function xo(e,t,i){var a;for(let o=0;o"+r.getAttribute("data-aside").replace(/"/g,'"')+""),void 0!==s&&(r.innerHTML=e.options.createHTML(s)),r.getAttribute("data-classes")&&r.classList.add(r.getAttribute("data-classes"));const n=null===(a=r.getAttribute("data-insert"))||void 0===a?void 0:a.replace(/"/g,'"');let l;if(n&&ho[n]&&(r.setAttribute("data-shifted",ho[n][0]),r.setAttribute("data-shifted-command",JSON.stringify(["insertAndUnshiftKeyboardLayer",ho[n][1]]))),l=r.getAttribute("data-command")?JSON.parse(r.getAttribute("data-command")):r.getAttribute("data-insert")?["insert",r.getAttribute("data-insert"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:r.getAttribute("data-latex")?["insert",r.getAttribute("data-latex"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:["typedText",r.getAttribute("data-key")||r.textContent,{focus:!0,feedback:!0,simulateKeystroke:!0}],i&&(l=[i,l]),r.getAttribute("data-alt-keys")){const e=go[r.getAttribute("data-alt-keys")];e&&(l={default:l,pressAndHoldStart:["showAlternateKeys",r.getAttribute("data-alt-keys"),e],pressAndHoldEnd:"hideAlternateKeys"})}Ki(e,r,l)}}function ko(e,t){const i={qwerty:{"lower-1":"qwertyuiop","lower-2":" asdfghjkl ","lower-3":"^zxcvbnm~","upper-1":"QWERTYUIOP","upper-2":" ASDFGHJKL ","upper-3":"^ZXCVBNM~","numpad-1":"789/","numpad-2":"456*","numpad-3":"123-","numpad-4":"0.=+"},azerty:{"lower-1":"azertyuiop","lower-2":"qsdfghjklm","lower-3":"^ wxcvbn ~","upper-1":"AZERTYUIOP","upper-2":"QSDFGHJKLM","upper-3":"^ WXCVBN ~"},qwertz:{"lower-1":"qwertzuiop","lower-2":" asdfghjkl ","lower-3":"^yxcvbnm~","upper-1":"QWERTZUIOP","upper-2":" ASDFGHJKL","upper-3":"^YXCVBNM~"},dvorak:{"lower-1":"^ pyfgcrl ","lower-2":"aoeuidhtns","lower-3":"qjkxbmwvz~","upper-1":"^ PYFGCRL ","upper-2":"AOEUIDHTNS","upper-3":"QJKXBMWVZ~"},colemak:{"lower-1":" qwfpgjluy ","lower-2":"arstdhneio","lower-3":"^zxcvbkm~","upper-1":" QWFPGNLUY ","upper-2":"ARSTDHNEIO","upper-3":"^ZXCVBKM~"}},a=i[e.options.virtualKeyboardLayout]?i[e.options.virtualKeyboardLayout]:i.qwerty;let o,r=t;r=r.replace(//g,"\n
  • \n \n
  • \n
  • \n \n
  • \n
  • \n
  • ");let s=r.match(/()/);for(;s;){o="";const e=s[2].match(/[a-zA-Z][a-zA-Z0-9-]*=(['"])(.*?)\1/g),t={};for(const i of e){const e=i.match(/([a-zA-Z][a-zA-Z0-9-]*)=(['"])(.*?)\2/);t[e[1]]=e[3]}let n=a[t.name];if(n||(n=i.qwerty[t.name]),n)for(const e of n){let i=t.class||"";i&&(i=" "+i),"~"===e?(o+="
  • \'\n data-shifted-command=\'"deleteAll"\'\n data-alt-keys=\'delete\' data-command=\'["performWithFeedback","deletePreviousChar"]\'\n >⌫
  • '):" "===e?o+="
  • ":"^"===e?o+="
  • ":"/"===e?o+="
  • ÷
  • ":"*"===e?o+="
  • ×
  • ":"-"===e?o+="
  • ":/tt/.test(i)?o+="
  • '+e+"
  • ":o+="
  • "+e+"
  • "}r=r.replace(new RegExp(s[1]+s[2]+s[3]),o),s=r.match(/()/)}return r}function _o(e){const t=document.getElementById("mathlive-alternate-keys-panel");return t&&(t.classList.remove("is-visible"),t.innerHTML="",$i(t)),!1}function wo(e){const t=e.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(t)for(let i=0;ili{display:flex;flex-flow:column;align-items:center;justify-content:center;font-size:30px;height:70px;width:70px;box-sizing:border-box;margin:0;background:transparent;border:1px solid transparent;border-radius:5px;pointer-events:all;color:var(--keyboard-alternate-text);fill:currentColor}@media only screen and (max-height:412px){.ML__keyboard.alternate-keys ul>li{font-size:24px;height:50px;width:50px}}.ML__keyboard.alternate-keys ul>li.active,.ML__keyboard.alternate-keys ul>li.pressed,.ML__keyboard.alternate-keys ul>li:hover{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);background:var(--keyboard-alternate-background-active);color:var(--keyboard-text-active)}.ML__keyboard.alternate-keys ul>li.small{font-size:18px}.ML__keyboard.alternate-keys ul>li.small-button{width:42px;height:42px;margin:2px;background:#fbfbfb}.ML__keyboard.alternate-keys ul>li.small-button:hover{background:var(--keyboard-alternate-background-active)}.ML__keyboard.alternate-keys ul>li.box>div,.ML__keyboard.alternate-keys ul>li.box>span{border:1px dashed rgba(0,0,0,.24)}.ML__keyboard.alternate-keys ul>li .warning{min-height:60px;min-width:60px;background:#cd0030;color:#fff;padding:5px;display:flex;align-items:center;justify-content:center;border-radius:5px}.ML__keyboard.alternate-keys ul>li .warning.active,.ML__keyboard.alternate-keys ul>li .warning.pressed,.ML__keyboard.alternate-keys ul>li .warning:hover{background:red}.ML__keyboard.alternate-keys ul>li .warning svg{width:50px;height:50px}.ML__keyboard.alternate-keys ul>li aside{font-size:12px;line-height:12px;opacity:.78;padding-top:2px}.ML__keyboard>div.keyboard-layer{display:none;outline:none}.ML__keyboard>div.keyboard-layer.is-visible{display:flex;flex-flow:column}.ML__keyboard>div>div.keyboard-toolbar{align-self:center;display:flex;flex-flow:row;justify-content:space-between;width:736px}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard>div>div.keyboard-toolbar{width:556px}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar{width:365px;max-width:100vw}}.ML__keyboard>div>div.keyboard-toolbar svg{height:20px;width:20px}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar svg{height:13px;width:17px}}.ML__keyboard>div>div.keyboard-toolbar>.left{position:relative;display:flex;justify-content:flex-start;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>.right{display:flex;justify-content:flex-end;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>div>div{display:flex;align-items:baseline;justify-content:center;pointer-events:all;color:var(--keyboard-text);fill:currentColor;background:0;font-size:110%;cursor:pointer;min-height:0;padding:4px 10px;margin:7px 4px 6px;box-shadow:none;border:none;border-bottom:2px solid transparent}.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled.pressed svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled:hover svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled svg{color:var(--keyboard-text);opacity:.2}@media only screen and (max-width:414px){.ML__keyboard>div>div.keyboard-toolbar>div>div{font-size:100%;padding:0 6px 0 0}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar>div>div{padding-left:4px;padding-right:4px;font-size:90%}}.ML__keyboard>div>div.keyboard-toolbar>div>div.active,.ML__keyboard>div>div.keyboard-toolbar>div>div.pressed,.ML__keyboard>div>div.keyboard-toolbar>div>div:active,.ML__keyboard>div>div.keyboard-toolbar>div>div:hover{color:var(--keyboard-text-active)}.ML__keyboard>div>div.keyboard-toolbar>div>div.selected{color:var(--keyboard-text-active);border-bottom:2px solid var(--keyboard-text-active);margin-bottom:8px;padding-bottom:0}.ML__keyboard div .rows{border:0;border-collapse:separate;clear:both;margin:auto;display:flex;flex-flow:column;align-items:center}.ML__keyboard div .rows>ul{list-style:none;height:40px;margin:0 0 3px;padding:0}.ML__keyboard div .rows>ul>li{display:flex;flex-flow:column;align-items:center;justify-content:center;width:34px;margin-right:2px;height:40px;box-sizing:border-box;padding:8px 0;vertical-align:top;text-align:center;float:left;color:var(--keycap-text);fill:currentColor;font-size:20px;background:var(--keycap-background);border:1px solid var(--keycap-background-border);border-bottom-color:var(--keycap-background-border-bottom);border-radius:5px;pointer-events:all;position:relative;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ML__keyboard div .rows>ul>li:last-child{margin-right:0}.ML__keyboard div .rows>ul>li.small{font-size:16px}.ML__keyboard div .rows>ul>li.tt{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.bottom{justify-content:flex-end}.ML__keyboard div .rows>ul>li.left{align-items:flex-start;padding-left:4px}.ML__keyboard div .rows>ul>li.right{align-items:flex-end;padding-right:4px}.ML__keyboard div .rows>ul>li svg{width:20px;height:20px}.ML__keyboard div .rows>ul>li .warning{height:25px;width:25px;min-height:25px;min-width:25px;background:#cd0030;color:#fff;border-radius:100%;padding:5px;display:flex;align-items:center;justify-content:center;margin-bottom:-2px}.ML__keyboard div .rows>ul>li .warning svg{width:16px;height:16px}@media only screen and (max-width:768px){.ML__keyboard div .rows>ul>li .warning{height:16px;width:16px;min-height:16px;min-width:16px}.ML__keyboard div .rows>ul>li .warning svg{width:14px;height:14px}}.ML__keyboard div .rows>ul>li>.w0{width:0}.ML__keyboard div .rows>ul>li>.w5{width:16px}.ML__keyboard div .rows>ul>li>.w15{width:52px}.ML__keyboard div .rows>ul>li>.w20{width:70px}.ML__keyboard div .rows>ul>li>.w50{width:178px}.ML__keyboard div .rows>ul>li.separator{background:transparent;border:none;pointer-events:none}@media only screen and (max-width:560px){.ML__keyboard div .rows>ul>li.if-wide{display:none}}.ML__keyboard div .rows>ul>li.tex-math{font-size:25px}.ML__keyboard div .rows>ul>li.pressed,.ML__keyboard div .rows>ul>li:hover{background:var(--keycap-background-active);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.active,.ML__keyboard div .rows>ul>li.action:active,.ML__keyboard div .rows>ul>li.keycap.active,.ML__keyboard div .rows>ul>li.keycap:active{transform:translateY(-20px) scale(1.4);z-index:calc(var(--keyboard-zindex, 105) - 5);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.modifier.active,.ML__keyboard div .rows>ul>li.modifier:active{background:var(--keyboard-text-active);color:var(--keycap-text-active)}.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:18px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:16px}}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton,.ML__keyboard div .rows>ul>li.fnbutton{font-size:12px}}.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:14px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:9px}}.ML__keyboard div .rows>ul>li.action,.ML__keyboard div .rows>ul>li.modifier{background-color:var(--keycap-modifier-background);border-bottom-color:var(--keycap-modifier-border);border-color:var(--keycap-modifier-border) var(--keycap-modifier-border) var(--keycap-modifier-border-bottom);font-size:65%;font-weight:100}.ML__keyboard div .rows>ul>li.action.selected,.ML__keyboard div .rows>ul>li.modifier.selected{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.selected.active,.ML__keyboard div .rows>ul>li.action.selected.pressed,.ML__keyboard div .rows>ul>li.action.selected:active,.ML__keyboard div .rows>ul>li.action.selected:hover,.ML__keyboard div .rows>ul>li.modifier.selected.active,.ML__keyboard div .rows>ul>li.modifier.selected.pressed,.ML__keyboard div .rows>ul>li.modifier.selected:active,.ML__keyboard div .rows>ul>li.modifier.selected:hover{color:#fff}.ML__keyboard div .rows>ul>li.keycap.w50{font-size:80%;padding-top:10px;font-weight:100}.ML__keyboard div .rows>ul>li small{color:#555}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li small{font-size:9px}}.ML__keyboard div .rows>ul>li aside{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:10px;line-height:10px;color:#666}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li aside{display:none}}@media only screen and (max-width:414px){.ML__keyboard div .rows>ul>li{width:calc(10vw - 2px);margin-right:2px}.ML__keyboard div .rows>ul>.w5{width:calc(5vw - 2px)}.ML__keyboard div .rows>ul>.w15{width:calc(15vw - 2px)}.ML__keyboard div .rows>ul>.w20{width:calc(20vw - 2px)}.ML__keyboard div .rows>ul>.w50{width:calc(50vw - 2px)}}@media only screen and (min-width:415px) and (max-width:768px){.ML__keyboard div .rows>ul>li{width:37px;margin-right:3px}.ML__keyboard div .rows>ul>.w5{width:17px}.ML__keyboard div .rows>ul>.w15{width:57px}.ML__keyboard div .rows>ul>.w20{width:77px}.ML__keyboard div .rows>ul>.w50{width:197px}}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:51px;margin-right:4px}.ML__keyboard div .rows>ul>.w5{width:23.5px}.ML__keyboard div .rows>ul>.w15{width:78.5px}.ML__keyboard div .rows>ul>.w20{width:106px}.ML__keyboard div .rows>ul>.w50{width:271px}}@media only screen and (min-width:1025px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:66px;margin-right:6px}.ML__keyboard div .rows>ul>.action,.ML__keyboard div .rows>ul>.modifier{font-size:80%}.ML__keyboard div .rows>ul>.w5{width:30px}.ML__keyboard div .rows>ul>.w15{width:102px}.ML__keyboard div .rows>ul>.w20{width:138px}.ML__keyboard div .rows>ul>.w50{width:354px}}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}div.ML__keyboard.material{--keyboard-background:rgba(209,213,217,0.9);--keyboard-background-border:#ddd;--keycap-background:transparent;--keycap-background-active:#cccfd1;--keycap-background-border:transparent;--keyboard-alternate-background:#efefef;--keyboard-alternate-text:#000;font-family:Roboto,sans-serif}div.ML__keyboard.material.alternate-keys{background:var(--keyboard-alternate-background);border:1px solid transparent;border-radius:5px;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}div.ML__keyboard.material.alternate-keys ul li.active,div.ML__keyboard.material.alternate-keys ul li.pressed,div.ML__keyboard.material.alternate-keys ul li:active,div.ML__keyboard.material.alternate-keys ul li:hover{border:1px solid transparent;background:#5f97fc;color:#fff;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>div{font-size:16px}div.ML__keyboard.material .keyboard-toolbar div.div.active,div.ML__keyboard.material .keyboard-toolbar div.div.pressed,div.ML__keyboard.material .keyboard-toolbar div div:active,div.ML__keyboard.material .keyboard-toolbar div div:hover{color:#5f97fc;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>.selected{color:#5f97fc;fill:currentColor;border-bottom:2px solid #5f97fc;margin-bottom:8px;padding-bottom:0}div.ML__keyboard.material div>.rows>ul>.keycap{background:transparent;border:1px solid transparent;border-radius:5px;color:var(--keycap-text);fill:currentColor;transition:none}div.ML__keyboard.material div>.rows>ul>.keycap.tt{color:#5f97fc}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]{margin-top:10px;margin-bottom:10px;height:20px;background:#e0e0e0}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].pressed,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:hover{background:#d0d0d0;box-shadow:none;transform:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):hover{border:1px solid transparent;background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{background:var(--keyboard-alternate-background);color:var(--keyboard-alternate-text);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);font-size:10px;vertical-align:top;width:19.5px;margin-right:10px;margin-left:10px;transform:translateY(-20px) scale(2);transition:none;justify-content:flex-start;padding:2px 0 0;z-index:calc(var(--ML_keyboard-zindex, 105) - 5)}}@media only screen and (max-width:414px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{width:16.5px}}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:last-child.active,div.ML__keyboard.material div>.rows>ul>.keycap:last-child:active{margin-right:0;margin-left:14px}}div.ML__keyboard.material div div.rows ul li.action,div.ML__keyboard.material div div.rows ul li.modifier{background:transparent;border:0;color:#869096;fill:currentColor;font-size:16px;transition:none}div.ML__keyboard.material div div.rows ul li.action.selected,div.ML__keyboard.material div div.rows ul li.modifier.selected{color:#5f97fc;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.action.active,div.ML__keyboard.material div div.rows ul li.action.pressed,div.ML__keyboard.material div div.rows ul li.action:active,div.ML__keyboard.material div div.rows ul li.action:hover,div.ML__keyboard.material div div.rows ul li.modifier.active,div.ML__keyboard.material div div.rows ul li.modifier.pressed,div.ML__keyboard.material div div.rows ul li.modifier:active,div.ML__keyboard.material div div.rows ul li.modifier:hover{border:0;color:var(--keycap-text);background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div div.rows ul li.bigfnbutton,div.ML__keyboard.material div div.rows ul li.fnbutton{background:transparent;border:0}div.ML__keyboard.material div div.rows ul li.bigfnbutton.selected,div.ML__keyboard.material div div.rows ul li.fnbutton.selected{color:#5f97fc;fill:currentColor;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.bigfnbutton.active,div.ML__keyboard.material div div.rows ul li.bigfnbutton.pressed,div.ML__keyboard.material div div.rows ul li.bigfnbutton:active,div.ML__keyboard.material div div.rows ul li.bigfnbutton:hover,div.ML__keyboard.material div div.rows ul li.fnbutton.active,div.ML__keyboard.material div div.rows ul li.fnbutton.pressed,div.ML__keyboard.material div div.rows ul li.fnbutton:active,div.ML__keyboard.material div div.rows ul li.fnbutton:hover{border:0;color:#5f97fc;fill:currentColor;background:var(--keycap-background-active);box-shadow:none}@media (prefers-color-scheme:dark){body:not([theme=light]) div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}'),fo["foreground-color"]=[];for(const e of be)fo["foreground-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"color":"'+e+'"}]'});fo["background-color"]=[];for(const e of ye)fo["background-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"backgroundColor":"'+e+'"}]'});go={...fo},Object.keys(go).forEach(e=>{go[e]=go[e].slice()});for(let e=0;e<26;e++){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e];go[t]||(go[t]=[]),go[t].unshift({latex:"\\mathbb{"+t+"}",aside:"blackboard",insert:"\\mathbb{"+t+"}"}),go[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),go[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),go[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),go[t].unshift({latex:"\\mathcal{"+t+"}",aside:"calligraphy",insert:"\\mathcal{"+t+"}"}),go[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<=26;e++){const t="abcdefghijklmnopqrstuvwxyz"[e];go[t]||(go[t]=[]),go[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),go[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),go[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),go[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<10;e++){const t="0123456789"[e];go[t]||(go[t]=[]),go[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),go[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),go[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),go[t].unshift({latex:"\\mathcal{"+t+"}",aside:"script",insert:"\\mathcal{"+t+"}"}),go[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}let r=e.options.virtualKeyboards;r||(r="all"),r=r.replace(/\ball\b/i,"numeric functions symbols roman greek");const s={...yo,...null!==(i=e.options.customVirtualKeyboardLayers)&&void 0!==i?i:{}},n={...uo,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}},l=r.replace(/\s+/g," ").split(" ");for(const t of l){if(!n[t])break;let i=n[t].layers||[];n[t].layer&&i.push(n[t].layer),i=Array.from(new Set(i));for(const a of i){if(!s[a])break;if("object"==typeof s[a]){const e=s[a];let t="";if(e.styles&&(t+=``),e.backdrop&&(t+=`
    `),e.container&&(t+=`
    `),e.rows){t+="
    ";for(const i of e.rows){t+="
      ";for(const e of i)t+="${e.label?e.label:""}`;t+="
    "}t+="
    "}e.container&&(t+="
    "),e.backdrop&&(t+="
    "),s[a]=t}o+="
    ",o+=vo(e,r,t);const i=s[a];o+=ko(e,i),o+="
    "}}const c=document.createElement("div");c.className="ML__keyboard",t?c.classList.add(t):e.options.virtualKeyboardTheme&&c.classList.add(e.options.virtualKeyboardTheme),c.innerHTML=e.options.createHTML(o),xo(e,[].slice.call(c.querySelectorAll(".keycap, .action, .fnbutton, .bigfnbutton")));const d=c.getElementsByClassName("layer-switch");for(let t=0;t{e.addEventListener("mousedown",e=>{e.preventDefault(),e.stopPropagation()}),e.addEventListener("touchstart",e=>{e.preventDefault(),e.stopPropagation()},{passive:!1})}),m[0].classList.add("is-visible"),window.addEventListener("mouseup",(function(){_o(),wo(e)})),window.addEventListener("blur",(function(){_o(),wo(e)})),window.addEventListener("touchend",(function(){_o(),wo(e)})),window.addEventListener("touchcancel",(function(){_o(),wo(e)})),c}(e,t),Li(e.virtualKeyboard,"touchstart:passive mousedown",()=>{e.focus()}),document.body.appendChild(e.virtualKeyboard)),window.setTimeout(()=>{e.virtualKeyboard.classList.add("is-visible")},1)):e.virtualKeyboard&&e.virtualKeyboard.classList.remove("is-visible"),"function"==typeof e.options.onVirtualKeyboardToggle&&e.options.onVirtualKeyboardToggle(e,e.virtualKeyboardVisible,e.virtualKeyboard),!1}ca({showAlternateKeys:(e,t,i)=>{const a=Ci("mathlive-alternate-keys-panel","ML__keyboard alternate-keys");e.virtualKeyboard.classList.contains("material")&&a.classList.add("material"),i.length>=7?a.style.width="286px":4===i.length||2===i.length?a.style.width="146px":1===i.length?a.style.width="86px":a.style.width="146px",a.style.height="auto";let o="";for(const e of i)o+="";o="
      "+o+"
    ",a.innerHTML=e.options.createHTML(o),xo(e,[].slice.call(a.getElementsByTagName("li")),"performAlternateKeys");const r=e.virtualKeyboard.querySelector('div.keyboard-layer.is-visible div.rows ul li[data-alt-keys="'+t+'"]').getBoundingClientRect();if(r){r.top-a.clientHeight<0&&(a.style.width="auto",i.length<=6?a.style.height="56px":i.length<=12?a.style.height="108px":a.style.height="205px");const e=(r.top-a.clientHeight+5).toString()+"px",t=Math.max(0,Math.min(window.innerWidth-a.offsetWidth,(r.left+r.right-a.offsetWidth)/2))+"px";a.style.transform="translate("+t+","+e+")",a.classList.add("is-visible")}return!1}},{target:"virtual-keyboard"}),ca({shiftKeyboardLayer:e=>{const i=e.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(i)for(let a=0;a_o(),performAlternateKeys:(e,t)=>(_o(),e.executeCommand(t)),switchKeyboardLayer:(e,t)=>zo(e,t),unshiftKeyboardLayer:e=>wo(e),insertAndUnshiftKeyboardLayer:(e,t)=>(e.insert(t),wo(e),!0)},{target:"virtual-keyboard"}),ca({toggleVirtualKeyboardAlt:e=>{let t=!1;return e.virtualKeyboard&&(t=e.virtualKeyboard.classList.contains("material"),e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),So(e,t?"":"material"),!1},toggleVirtualKeyboardShift:e=>{var t,i;e.options.virtualKeyboardLayout={qwerty:"azerty",azerty:"qwertz",qwertz:"dvorak",dvorak:"colemak",colemak:"qwerty"}[e.options.virtualKeyboardLayout];const a=null!==(i=null===(t=e.virtualKeyboard)||void 0===t?void 0:t.querySelector("div.keyboard-layer.is-visible").id)&&void 0!==i?i:"";return e.virtualKeyboard&&(e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),So(e),a&&zo(e,a),!1}},{target:"virtual-keyboard"}),ca({toggleVirtualKeyboard:(e,t)=>Ao(e,t),hideVirtualKeyboard:e=>Lo(e),showVirtualKeyboard:(e,t)=>So(e,t)},{target:"virtual-keyboard"});var Co='.ML__sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.ML__fonts-loading .ML__base{visibility:hidden}.ML__base{visibility:inherit;display:inline-block;position:relative;cursor:text}.ML__strut,.ML__strut--bottom{display:inline-block;min-height:.5em}.ML__small-delim{font-family:KaTeX_Main}.ML__text{font-family:var(--text-font-family,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif);white-space:pre}.ML__cmr{font-family:KaTeX_Main;font-style:normal}.ML__mathit{font-family:KaTeX_Math;font-style:italic}.ML__mathbf{font-family:KaTeX_Main;font-weight:700}.lcGreek.ML__mathbf{font-family:KaTeX_Math;font-weight:400}.ML__mathbfit{font-family:KaTeX_Math;font-weight:700;font-style:italic}.ML__ams,.ML__bb{font-family:KaTeX_AMS}.ML__cal{font-family:KaTeX_Caligraphic}.ML__frak{font-family:KaTeX_Fraktur}.ML__tt{font-family:KaTeX_Typewriter}.ML__script{font-family:KaTeX_Script}.ML__sans{font-family:KaTeX_SansSerif}.ML__series_el,.ML__series_ul{font-weight:100}.ML__series_l{font-weight:200}.ML__series_sl{font-weight:300}.ML__series_sb{font-weight:500}.ML__bold,.ML__boldsymbol{font-weight:700}.ML__series_eb{font-weight:800}.ML__series_ub{font-weight:900}.ML__series_uc{font-stretch:ultra-condensed}.ML__series_ec{font-stretch:extra-condensed}.ML__series_c{font-stretch:condensed}.ML__series_sc{font-stretch:semi-condensed}.ML__series_sx{font-stretch:semi-expanded}.ML__series_x{font-stretch:expanded}.ML__series_ex{font-stretch:extra-expanded}.ML__series_ux{font-stretch:ultra-expanded}.ML__it{font-style:italic}.ML__shape_ol{-webkit-text-stroke:1px #000;text-stroke:1px #000;color:transparent}.ML__shape_sc{font-variant:small-caps}.ML__shape_sl{font-style:oblique}.ML__emph{color:#bc2612}.ML__emph .ML__emph{color:#0c7f99}.ML__highlight{color:#007cb2;background:#edd1b0}.ML__mathlive{display:inline-block;line-height:0;direction:ltr;text-align:left;text-indent:0;text-rendering:auto;font-family:KaTeX_Main;font-style:normal;font-size-adjust:none;letter-spacing:normal;word-wrap:normal;word-spacing:normal;white-space:nowrap;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:-webkit-min-content;width:-moz-min-content;width:min-content;transform:translateZ(0)}.ML__mathlive .reset-textstyle.scriptstyle{font-size:.7em}.ML__mathlive .reset-textstyle.scriptscriptstyle{font-size:.5em}.ML__mathlive .reset-scriptstyle.textstyle{font-size:1.42857em}.ML__mathlive .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.ML__mathlive .reset-scriptscriptstyle.textstyle{font-size:2em}.ML__mathlive .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.ML__mathlive .style-wrap{position:relative}.ML__mathlive .vlist{display:inline-block}.ML__mathlive .vlist>span{display:block;height:0;position:relative;line-height:0}.ML__mathlive .vlist>span>span{display:inline-block}.ML__mathlive .msubsup{text-align:left}.ML__mathlive .mfrac>span{text-align:center}.ML__mathlive .mfrac .frac-line{width:100%}.ML__mathlive .mfrac .frac-line:after{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor;box-sizing:content-box;transform:translate(0)}.ML__mathlive .rspace.negativethinspace{margin-right:-.16667em}.ML__mathlive .rspace.thinspace{margin-right:.16667em}.ML__mathlive .rspace.negativemediumspace{margin-right:-.22222em}.ML__mathlive .rspace.mediumspace{margin-right:.22222em}.ML__mathlive .rspace.thickspace{margin-right:.27778em}.ML__mathlive .rspace.sixmuspace{margin-right:.333333em}.ML__mathlive .rspace.eightmuspace{margin-right:.444444em}.ML__mathlive .rspace.enspace{margin-right:.5em}.ML__mathlive .rspace.twelvemuspace{margin-right:.666667em}.ML__mathlive .rspace.quad{margin-right:1em}.ML__mathlive .rspace.qquad{margin-right:2em}.ML__mathlive .mspace{display:inline-block}.ML__mathlive .mspace.negativethinspace{margin-left:-.16667em}.ML__mathlive .mspace.thinspace{width:.16667em}.ML__mathlive .mspace.negativemediumspace{margin-left:-.22222em}.ML__mathlive .mspace.mediumspace{width:.22222em}.ML__mathlive .mspace.thickspace{width:.27778em}.ML__mathlive .mspace.sixmuspace{width:.333333em}.ML__mathlive .mspace.eightmuspace{width:.444444em}.ML__mathlive .mspace.enspace{width:.5em}.ML__mathlive .mspace.twelvemuspace{width:.666667em}.ML__mathlive .mspace.quad{width:1em}.ML__mathlive .mspace.qquad{width:2em}.ML__mathlive .llap,.ML__mathlive .rlap{width:0;position:relative}.ML__mathlive .llap>.inner,.ML__mathlive .rlap>.inner{position:absolute}.ML__mathlive .llap>.fix,.ML__mathlive .rlap>.fix{display:inline-block}.ML__mathlive .llap>.inner{right:0}.ML__mathlive .rlap>.inner{left:0}.ML__mathlive .rule{display:inline-block;border:0 solid;position:relative}.ML__mathlive .overline .overline-line,.ML__mathlive .underline .underline-line{width:100%}.ML__mathlive .overline .overline-line:before,.ML__mathlive .underline .underline-line:before{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block}.ML__mathlive .overline .overline-line:after,.ML__mathlive .underline .underline-line:after{border-bottom-style:solid;border-bottom-width:.04em;min-height:thin;content:"";display:block;margin-top:-1px}.ML__mathlive .stretchy{display:block;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .stretchy:after,.ML__mathlive .stretchy:before{content:""}.ML__mathlive .stretchy svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.ML__mathlive .slice-1-of-2{left:0}.ML__mathlive .slice-1-of-2,.ML__mathlive .slice-2-of-2{display:inline-flex;position:absolute;width:50.2%;overflow:hidden}.ML__mathlive .slice-2-of-2{right:0}.ML__mathlive .slice-1-of-3{display:inline-flex;position:absolute;left:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-2-of-3{display:inline-flex;position:absolute;left:25%;width:50%;overflow:hidden}.ML__mathlive .slice-3-of-3{display:inline-flex;position:absolute;right:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-1-of-1{display:inline-flex;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .sqrt{display:inline-block}.ML__mathlive .sqrt>.sqrt-sign{font-family:KaTeX_Main;position:relative}.ML__mathlive .sqrt .sqrt-line{height:.04em;width:100%}.ML__mathlive .sqrt .sqrt-line:before{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor}.ML__mathlive .sqrt .sqrt-line:after{border-bottom-width:1px;content:" ";display:block;margin-top:-.1em;transform:translate(0)}.ML__mathlive .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.ML__mathlive .fontsize-ensurer,.ML__mathlive .sizing{display:inline-block}.ML__mathlive .fontsize-ensurer.reset-size1.size1,.ML__mathlive .sizing.reset-size1.size1{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size1.size2,.ML__mathlive .sizing.reset-size1.size2{font-size:1.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size3,.ML__mathlive .sizing.reset-size1.size3{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size1.size4,.ML__mathlive .sizing.reset-size1.size4{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size1.size5,.ML__mathlive .sizing.reset-size1.size5{font-size:2em}.ML__mathlive .fontsize-ensurer.reset-size1.size6,.ML__mathlive .sizing.reset-size1.size6{font-size:2.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size7,.ML__mathlive .sizing.reset-size1.size7{font-size:2.88em}.ML__mathlive .fontsize-ensurer.reset-size1.size8,.ML__mathlive .sizing.reset-size1.size8{font-size:3.46em}.ML__mathlive .fontsize-ensurer.reset-size1.size9,.ML__mathlive .sizing.reset-size1.size9{font-size:4.14em}.ML__mathlive .fontsize-ensurer.reset-size1.size10,.ML__mathlive .sizing.reset-size1.size10{font-size:4.98em}.ML__mathlive .fontsize-ensurer.reset-size2.size1,.ML__mathlive .sizing.reset-size2.size1{font-size:.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size2,.ML__mathlive .sizing.reset-size2.size2{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size2.size3,.ML__mathlive .sizing.reset-size2.size3{font-size:1.14285714em}.ML__mathlive .fontsize-ensurer.reset-size2.size4,.ML__mathlive .sizing.reset-size2.size4{font-size:1.28571429em}.ML__mathlive .fontsize-ensurer.reset-size2.size5,.ML__mathlive .sizing.reset-size2.size5{font-size:1.42857143em}.ML__mathlive .fontsize-ensurer.reset-size2.size6,.ML__mathlive .sizing.reset-size2.size6{font-size:1.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size7,.ML__mathlive .sizing.reset-size2.size7{font-size:2.05714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size8,.ML__mathlive .sizing.reset-size2.size8{font-size:2.47142857em}.ML__mathlive .fontsize-ensurer.reset-size2.size9,.ML__mathlive .sizing.reset-size2.size9{font-size:2.95714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size10,.ML__mathlive .sizing.reset-size2.size10{font-size:3.55714286em}.ML__mathlive .fontsize-ensurer.reset-size3.size1,.ML__mathlive .sizing.reset-size3.size1{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size3.size2,.ML__mathlive .sizing.reset-size3.size2{font-size:.875em}.ML__mathlive .fontsize-ensurer.reset-size3.size3,.ML__mathlive .sizing.reset-size3.size3{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size3.size4,.ML__mathlive .sizing.reset-size3.size4{font-size:1.125em}.ML__mathlive .fontsize-ensurer.reset-size3.size5,.ML__mathlive .sizing.reset-size3.size5{font-size:1.25em}.ML__mathlive .fontsize-ensurer.reset-size3.size6,.ML__mathlive .sizing.reset-size3.size6{font-size:1.5em}.ML__mathlive .fontsize-ensurer.reset-size3.size7,.ML__mathlive .sizing.reset-size3.size7{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size3.size8,.ML__mathlive .sizing.reset-size3.size8{font-size:2.1625em}.ML__mathlive .fontsize-ensurer.reset-size3.size9,.ML__mathlive .sizing.reset-size3.size9{font-size:2.5875em}.ML__mathlive .fontsize-ensurer.reset-size3.size10,.ML__mathlive .sizing.reset-size3.size10{font-size:3.1125em}.ML__mathlive .fontsize-ensurer.reset-size4.size1,.ML__mathlive .sizing.reset-size4.size1{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size4.size2,.ML__mathlive .sizing.reset-size4.size2{font-size:.77777778em}.ML__mathlive .fontsize-ensurer.reset-size4.size3,.ML__mathlive .sizing.reset-size4.size3{font-size:.88888889em}.ML__mathlive .fontsize-ensurer.reset-size4.size4,.ML__mathlive .sizing.reset-size4.size4{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size4.size5,.ML__mathlive .sizing.reset-size4.size5{font-size:1.11111111em}.ML__mathlive .fontsize-ensurer.reset-size4.size6,.ML__mathlive .sizing.reset-size4.size6{font-size:1.33333333em}.ML__mathlive .fontsize-ensurer.reset-size4.size7,.ML__mathlive .sizing.reset-size4.size7{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size4.size8,.ML__mathlive .sizing.reset-size4.size8{font-size:1.92222222em}.ML__mathlive .fontsize-ensurer.reset-size4.size9,.ML__mathlive .sizing.reset-size4.size9{font-size:2.3em}.ML__mathlive .fontsize-ensurer.reset-size4.size10,.ML__mathlive .sizing.reset-size4.size10{font-size:2.76666667em}.ML__mathlive .fontsize-ensurer.reset-size5.size1,.ML__mathlive .sizing.reset-size5.size1{font-size:.5em}.ML__mathlive .fontsize-ensurer.reset-size5.size2,.ML__mathlive .sizing.reset-size5.size2{font-size:.7em}.ML__mathlive .fontsize-ensurer.reset-size5.size3,.ML__mathlive .sizing.reset-size5.size3{font-size:.8em}.ML__mathlive .fontsize-ensurer.reset-size5.size4,.ML__mathlive .sizing.reset-size5.size4{font-size:.9em}.ML__mathlive .fontsize-ensurer.reset-size5.size5,.ML__mathlive .sizing.reset-size5.size5{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size5.size6,.ML__mathlive .sizing.reset-size5.size6{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size5.size7,.ML__mathlive .sizing.reset-size5.size7{font-size:1.44em}.ML__mathlive .fontsize-ensurer.reset-size5.size8,.ML__mathlive .sizing.reset-size5.size8{font-size:1.73em}.ML__mathlive .fontsize-ensurer.reset-size5.size9,.ML__mathlive .sizing.reset-size5.size9{font-size:2.07em}.ML__mathlive .fontsize-ensurer.reset-size5.size10,.ML__mathlive .sizing.reset-size5.size10{font-size:2.49em}.ML__mathlive .fontsize-ensurer.reset-size6.size1,.ML__mathlive .sizing.reset-size6.size1{font-size:.41666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size2,.ML__mathlive .sizing.reset-size6.size2{font-size:.58333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size3,.ML__mathlive .sizing.reset-size6.size3{font-size:.66666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size4,.ML__mathlive .sizing.reset-size6.size4{font-size:.75em}.ML__mathlive .fontsize-ensurer.reset-size6.size5,.ML__mathlive .sizing.reset-size6.size5{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size6,.ML__mathlive .sizing.reset-size6.size6{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size6.size7,.ML__mathlive .sizing.reset-size6.size7{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size6.size8,.ML__mathlive .sizing.reset-size6.size8{font-size:1.44166667em}.ML__mathlive .fontsize-ensurer.reset-size6.size9,.ML__mathlive .sizing.reset-size6.size9{font-size:1.725em}.ML__mathlive .fontsize-ensurer.reset-size6.size10,.ML__mathlive .sizing.reset-size6.size10{font-size:2.075em}.ML__mathlive .fontsize-ensurer.reset-size7.size1,.ML__mathlive .sizing.reset-size7.size1{font-size:.34722222em}.ML__mathlive .fontsize-ensurer.reset-size7.size2,.ML__mathlive .sizing.reset-size7.size2{font-size:.48611111em}.ML__mathlive .fontsize-ensurer.reset-size7.size3,.ML__mathlive .sizing.reset-size7.size3{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size7.size4,.ML__mathlive .sizing.reset-size7.size4{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size7.size5,.ML__mathlive .sizing.reset-size7.size5{font-size:.69444444em}.ML__mathlive .fontsize-ensurer.reset-size7.size6,.ML__mathlive .sizing.reset-size7.size6{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size7.size7,.ML__mathlive .sizing.reset-size7.size7{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size7.size8,.ML__mathlive .sizing.reset-size7.size8{font-size:1.20138889em}.ML__mathlive .fontsize-ensurer.reset-size7.size9,.ML__mathlive .sizing.reset-size7.size9{font-size:1.4375em}.ML__mathlive .fontsize-ensurer.reset-size7.size10,.ML__mathlive .sizing.reset-size7.size10{font-size:1.72916667em}.ML__mathlive .fontsize-ensurer.reset-size8.size1,.ML__mathlive .sizing.reset-size8.size1{font-size:.28901734em}.ML__mathlive .fontsize-ensurer.reset-size8.size2,.ML__mathlive .sizing.reset-size8.size2{font-size:.40462428em}.ML__mathlive .fontsize-ensurer.reset-size8.size3,.ML__mathlive .sizing.reset-size8.size3{font-size:.46242775em}.ML__mathlive .fontsize-ensurer.reset-size8.size4,.ML__mathlive .sizing.reset-size8.size4{font-size:.52023121em}.ML__mathlive .fontsize-ensurer.reset-size8.size5,.ML__mathlive .sizing.reset-size8.size5{font-size:.57803468em}.ML__mathlive .fontsize-ensurer.reset-size8.size6,.ML__mathlive .sizing.reset-size8.size6{font-size:.69364162em}.ML__mathlive .fontsize-ensurer.reset-size8.size7,.ML__mathlive .sizing.reset-size8.size7{font-size:.83236994em}.ML__mathlive .fontsize-ensurer.reset-size8.size8,.ML__mathlive .sizing.reset-size8.size8{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size8.size9,.ML__mathlive .sizing.reset-size8.size9{font-size:1.19653179em}.ML__mathlive .fontsize-ensurer.reset-size8.size10,.ML__mathlive .sizing.reset-size8.size10{font-size:1.43930636em}.ML__mathlive .fontsize-ensurer.reset-size9.size1,.ML__mathlive .sizing.reset-size9.size1{font-size:.24154589em}.ML__mathlive .fontsize-ensurer.reset-size9.size2,.ML__mathlive .sizing.reset-size9.size2{font-size:.33816425em}.ML__mathlive .fontsize-ensurer.reset-size9.size3,.ML__mathlive .sizing.reset-size9.size3{font-size:.38647343em}.ML__mathlive .fontsize-ensurer.reset-size9.size4,.ML__mathlive .sizing.reset-size9.size4{font-size:.43478261em}.ML__mathlive .fontsize-ensurer.reset-size9.size5,.ML__mathlive .sizing.reset-size9.size5{font-size:.48309179em}.ML__mathlive .fontsize-ensurer.reset-size9.size6,.ML__mathlive .sizing.reset-size9.size6{font-size:.57971014em}.ML__mathlive .fontsize-ensurer.reset-size9.size7,.ML__mathlive .sizing.reset-size9.size7{font-size:.69565217em}.ML__mathlive .fontsize-ensurer.reset-size9.size8,.ML__mathlive .sizing.reset-size9.size8{font-size:.83574879em}.ML__mathlive .fontsize-ensurer.reset-size9.size9,.ML__mathlive .sizing.reset-size9.size9{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size9.size10,.ML__mathlive .sizing.reset-size9.size10{font-size:1.20289855em}.ML__mathlive .fontsize-ensurer.reset-size10.size1,.ML__mathlive .sizing.reset-size10.size1{font-size:.20080321em}.ML__mathlive .fontsize-ensurer.reset-size10.size2,.ML__mathlive .sizing.reset-size10.size2{font-size:.2811245em}.ML__mathlive .fontsize-ensurer.reset-size10.size3,.ML__mathlive .sizing.reset-size10.size3{font-size:.32128514em}.ML__mathlive .fontsize-ensurer.reset-size10.size4,.ML__mathlive .sizing.reset-size10.size4{font-size:.36144578em}.ML__mathlive .fontsize-ensurer.reset-size10.size5,.ML__mathlive .sizing.reset-size10.size5{font-size:.40160643em}.ML__mathlive .fontsize-ensurer.reset-size10.size6,.ML__mathlive .sizing.reset-size10.size6{font-size:.48192771em}.ML__mathlive .fontsize-ensurer.reset-size10.size7,.ML__mathlive .sizing.reset-size10.size7{font-size:.57831325em}.ML__mathlive .fontsize-ensurer.reset-size10.size8,.ML__mathlive .sizing.reset-size10.size8{font-size:.69477912em}.ML__mathlive .fontsize-ensurer.reset-size10.size9,.ML__mathlive .sizing.reset-size10.size9{font-size:.8313253em}.ML__mathlive .fontsize-ensurer.reset-size10.size10,.ML__mathlive .sizing.reset-size10.size10{font-size:1em}.ML__mathlive .delimsizing.size1{font-family:KaTeX_Size1}.ML__mathlive .delimsizing.size2{font-family:KaTeX_Size2}.ML__mathlive .delimsizing.size3{font-family:KaTeX_Size3}.ML__mathlive .delimsizing.size4{font-family:KaTeX_Size4}.ML__mathlive .delimsizing.mult .delim-size1{font-family:KaTeX_Size1;vertical-align:top}.ML__mathlive .delimsizing.mult .delim-size4{font-family:KaTeX_Size4;vertical-align:top}.ML__mathlive .nulldelimiter{width:.12em}.ML__mathlive .op-symbol{position:relative}.ML__mathlive .op-symbol.small-op{font-family:KaTeX_Size1}.ML__mathlive .op-symbol.large-op{font-family:KaTeX_Size2}.ML__mathlive .op-limits .vlist>span{text-align:center}.ML__mathlive .op-over-under{position:relative}.ML__mathlive .op-over-under>.vlist>span:first-child,.ML__mathlive .op-over-under>.vlist>span:last-child{text-align:center}.ML__mathlive .accent>.vlist>span{text-align:center}.ML__mathlive .accent .accent-body>span{font-family:KaTeX_Main;width:0}.ML__mathlive .accent .accent-body.accent-vec>span{position:relative;left:.326em}.ML__mathlive .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid}.ML__mathlive .mtable .arraycolsep{display:inline-block}.ML__mathlive .mtable .col-align-m>.vlist{text-align:center}.ML__mathlive .mtable .col-align-c>.vlist{text-align:center}.ML__mathlive .mtable .col-align-l>.vlist{text-align:left}.ML__mathlive .mtable .col-align-r>.vlist{text-align:right}.ML__error{background-image:radial-gradient(ellipse at center,#cc0041,transparent 70%);background-repeat:repeat-x;background-size:3px 3px;background-position:0 98%}.ML__placeholder{opacity:.7;padding-left:.4ex;padding-right:.4ex;padding-top:.4ex}';const $o={"\\imaginaryI":"ⅈ","\\imaginaryJ":"ⅉ","\\pi":"π","\\exponentialE":"ℯ","﹢":"+","+":"+","−":"-","-":"-","﹣":"-","-":"-","\\times":"*","\\cdot":"*","⨉":"*","️✖":"*","️×":"*",".":"*","÷":"/","⁄":"/","/":"/","!":"factorial","\\mp":"minusplus","\\ne":"!=","\\coloneq":":=","\\questeq":"?=","\\approx":"approx","\\cong":"congruent","\\sim":"similar","\\equiv":"equiv","\\pm":"plusminus","\\land":"and","\\wedge":"and","\\lor":"or","\\vee":"or","\\oplus":"xor","\\veebar":"xor","\\lnot":"not","\\neg":"not","\\exists":"exists","\\nexists":"!exists","\\forall":"forAll","\\backepsilon":"suchThat","\\therefore":"therefore","\\because":"because","\\nabla":"nabla","\\circ":"circle","\\ominus":"ominus","\\odot":"odot","\\otimes":"otimes","\\zeta":"Zeta","\\Gamma":"Gamma","\\min":"min","\\max":"max","\\mod":"mod","\\lim":"lim","\\sum":"sum","\\prod":"prod","\\int":"integral","\\iint":"integral2","\\iiint":"integral3","\\Re":"Re","\\gothicCapitalR":"Re","\\Im":"Im","\\gothicCapitalI":"Im","\\binom":"nCr","\\partial":"partial","\\differentialD":"differentialD","\\capitalDifferentialD":"capitalDifferentialD","\\Finv":"Finv","\\Game":"Game","\\wp":"wp","\\ast":"ast","\\star":"star","\\asymp":"asymp","\\to":"to","\\gets":"gets","\\in":"elementof","\\notin":"!elementof","\\ni":"ownedby","\\owns":"ownedby","\\subset":"subset","\\supset":"superset","\\complement":"complement","\\rightarrow":"shortLogicalImplies","\\leftarrow":"shortLogicalImpliedBy","\\leftrightarrow":"shortLogicalEquivalent","\\longrightarrow":"logicalImplies","\\longleftarrow":"logicalImpliedBy","\\longleftrightarrow":"logicalEquivalent","\\Rightarrow":"shortImplies","\\Leftarrow":"shortImpliedBy","\\Leftrightarrow":"shortEquivalent","\\implies":"implies","\\Longrightarrow":"implies","\\impliedby":"impliedBy","\\Longleftarrow":"impliedBy","\\iff":"equivalent","\\Longleftrightarrow":"equivalent"},qo={"+":"add","*":"multiply","-":"subtract","/":"divide","=":"equal",":=":"assign","!=":"ne","?=":"questeq",approx:"approx",congruent:"congruent",similar:"similar",equiv:"equiv","<":"lt",">":"gt","<=":"le",">=":"ge","≤":"le","≥":"ge",">>":"gg","<<":"ll","**":"pow","++":"increment","--":"decrement"},Do={equal:"%0 = %1",ne:"%0 \\ne %1",questeq:"%0 \\questeq %1",approx:"%0 \\approx %1",congruent:"%0 \\cong %1",similar:"%0 \\sim %1",equiv:"%0 \\equiv %1",assign:"%0 := %1",lt:"%0 < %1",gt:"%0 > %1",le:"%0 \\le %1",ge:"%0 \\ge %1",sin:"\\sin%_%^ %0",cos:"\\cos%_%^ %0",tan:"\\tan%_%^ %0",cot:"\\cot%_%^ %0",sec:"\\sec%_%^ %0",csc:"\\csc%_%^ %0",sinh:"\\sinh %0",cosh:"\\cosh %0",tanh:"\\tanh %0",csch:"\\csch %0",sech:"\\sech %0",coth:"\\coth %0",arcsin:"\\arcsin %0",arccos:"\\arccos %0",arctan:"\\arctan %0",arccot:"\\arcctg %0",arcsec:"\\arcsec %0",arccsc:"\\arccsc %0",arsinh:"\\arsinh %0",arcosh:"\\arcosh %0",artanh:"\\artanh %0",arcsch:"\\arcsch %0",arsech:"\\arsech %0",arcoth:"\\arcoth %0",ln:"\\ln%_%^ %",log:"\\log%_%^ %",lg:"\\lg %",lb:"\\lb %",sum:"\\sum%_%^ %0",prod:"\\prod%_%^ %0",Zeta:"\\zeta%_%^ %",Gamma:"\\Gamma %",min:"\\min%_%^ %",max:"\\max%_%^ %",mod:"\\mod%_%^ %",lim:"\\lim%_%^ %",binom:"\\binom %",nabla:"\\nabla %",curl:"\\nabla\\times %0",div:"\\nabla\\cdot %0",floor:"\\lfloor %0 \\rfloor%_%^",ceil:"\\lceil %0 \\rceil%_%^",abs:"\\left| %0 \\right|%_%^",norm:"\\lVert %0 \\rVert%_%^",ucorner:"\\ulcorner %0 \\urcorner%_%^",lcorner:"\\llcorner %0 \\lrcorner%_%^",angle:"\\langle %0 \\rangle%_%^",group:"\\lgroup %0 \\rgroup%_%^",moustache:"\\lmoustache %0 \\rmoustache%_%^",brace:"\\lbrace %0 \\rbrace%_%^","sqrt[]":"\\sqrt[%^]{%0}",sqrt:"\\sqrt{%0}",lcm:"\\operatorname{lcm}%",gcd:"\\operatorname{gcd}%",erf:"\\operatorname{erf}%",erfc:"\\operatorname{erfc}%",randomReal:"\\operatorname{randomReal}%",randomInteger:"\\operatorname{randomInteger}%",and:"%0 \\land %1",or:"%0 \\lor %1",xor:"%0 \\oplus %1",not:"%0 \\lnot %1",circle:"%0 \\circ %1",ast:"%0 \\ast %1",star:"%0 \\star %1",asymp:"%0 \\asymp %1","/":"\\frac{%0}{%1}",Re:"\\Re{%0}",Im:"\\Im{%0}",factorial:"%0!",factorial2:"%0!!"},To={degree:880,nabla:740,curl:740,partial:740,differentialD:740,capitalDifferentialD:740,"**":720,odot:710,not:680,div:660,solidus:660,"/":660,setminus:650,"%":640,otimes:410,union:350,intersection:350,"*":390,ast:390,".":390,oplus:300,ominus:300,"+":275,"-":275,"+-":275,"-+":275,circle:265,circledast:265,circledcirc:265,star:265,"..":263,to:262,in:262,"|":261,congruent:265,equiv:260,"=":260,"!=":255,"?=":255,similar:250,approx:247,"<":245,">":243,">=":242,"≥":242,"<=":241,complement:240,subset:240,superset:240,elementof:240,"!elementof":240,exists:230,"!exists":230,forall:230,and:200,xor:195,or:190,suchThat:110,":":100,assign:80,":=":80,therefore:70,because:70,shortLogicalImplies:52,shortImplies:51,logicalImplies:50,implies:49,shortLogicalImpliedBy:48,shortImpliedBy:47,logicalImpliedBy:46,impliedBy:45,shortLogicalEquivalent:44,shortEquivalent:43,logicalEquivalent:42,equivalent:41,",":40,";":30};function Ko(e,i){return t(e.arg)?e.arg[i]:void 0}function Eo(e){return e&&To[e]||-1}function No(e){return/=|=>/.test(e)?"right":"left"}function Bo(e){if("f"===e||"g"===e)return!0;const t=Do[e];return!!t&&!!/%[^01_^]?/.test(t)}function Oo(e){e=(e||"").trim();let t=$o[e];if(!t)if(/^\\[^{}]+$/.test(e)){const i=se(e,"math",{});t=i&&i.value||e.slice(1)}else t=e;return t}function Fo(e){if(!e)return null;const t=Oo(Wo(e)),i=[Eo(t),No(t)];return i[0]<=0?null:i}function Po(e){return null!==Fo(e)}const Ro={"\\lfloor\\rfloor":"floor","\\lceil\\rceil":"ceil","\\vert\\vert":"abs","\\lvert\\rvert":"abs","||":"abs","\\Vert\\Vert":"norm","\\lVert\\rVert":"norm","\\ulcorner\\urcorner":"ucorner","\\llcorner\\lrcorner":"lcorner","\\langle\\rangle":"angle","\\lgroup\\rgroup":"group","\\lmoustache\\rmoustache":"moustache","\\lbrace\\rbrace":"brace"},Io={"!":"factorial","\\dag":"dagger","\\dagger":"dagger","\\ddagger":"dagger2","\\maltese":"maltese","\\backprime":"backprime","\\backdoubleprime":"backprime2","\\prime":"prime","\\doubleprime":"prime2","\\$":"$","\\%":"%","\\_":"_","\\degree":"degree"},Ho={"+":"add","-":"add","*":"multiply","=":"equal",",":"list",";":"list2",and:"and",or:"or",xor:"xor",union:"union",shortLogicalEquivalent:"logicalEquivalent",logicalEquivalent:"logicalEquivalent",shortEquivalent:"equivalent",equivalent:"equivalent"},Vo={",":"list",";":"list2"};function Wo(e){if("string"==typeof e)return e;if(t(e)){let t="";for(const i of e)t+=Wo(i);return t}if(e.symbol&&!/^\\math(op|bin|rel|open|punct|ord|inner)/.test(e.symbol))return e.symbol;if("leftright"===e.type)return"";if("string"==typeof e.body)return e.body;if(t(e.body)){let t="";for(const i of e.body)t+=Wo(i);return t}return""}function Uo(e){return"string"==typeof e.sym?function(e){let t=Do[e];return t?t.replace("%1","").replace("%0","").replace("%",""):(e.length>1&&(t="\\"+e),t||(t=ie("math",e)),t)}(e.sym)||e.sym:""}function jo(e){return parseFloat(e.num)}function Xo(e){return"object"==typeof e&&void 0!==e.num}function Go(e){let t=0;return Xo(e)&&(t="object"==typeof e.num?void 0!==e.num.re?gr(e.num.re):0:parseFloat(e.num)),t}function Zo(e){let t=0;return Xo(e)&&"object"==typeof e.num&&(t=void 0!==e.num.im?gr(e.num.im):0),t}function Yo(e){return e&&void 0!==e.sup}function Jo(e){return e&&void 0!==e.sub}function Qo(e,t,i){let a=!1;const o=e.atoms[e.index];return o&&o.type===t&&(a=void 0===i||Wo(o)===i),a}function er(e,...t){const i={fn:e,arg:void 0};if(t){const e=[];for(const i of t)i&&e.push(i);e.length>0&&(i.arg=e)}return i}function tr(e){return"number"==typeof e?{num:e.toString()}:"string"==typeof e||"object"==typeof e?{num:e}:void 0}function ir(e){if(Xo(e)){const t=Go(e),i=Zo(e);return 0!==i?(0!==t&&(e.num.re=(-t).toString()),e.num.im=(-i).toString()):e.num=(-t).toString(),e}return er("negate",e)}function ar(e){const t=e.atoms[e.index+1];return t&&"msubsup"===t.type}function or(e,t){let i=e.atoms[e.index];return!i||void 0===i.superscript&&void 0===i.subscript?i=null:e.index+=1,i||(i=e.atoms[e.index+1],i&&"msubsup"===i.type&&(i.superscript||i.subscript)?e.index+=2:i=null),i?(void 0!==i.subscript&&(e.ast.sub=pr(i.subscript,t)),void 0!==i.superscript&&("msubsup"===i.type?/['\u2032]|\\prime/.test(Wo(i.superscript))?(e.index+=1,i=e.atoms[e.index+1],i&&"msubsup"===i.type&&/['\u2032]|\\prime/.test(Wo(i.superscript))?e.ast.sup={sym:"″"}:(e.ast.sup={sym:"′"},e.index-=1)):/['\u2033]|\\doubleprime/.test(Wo(i.superscript))?e.ast.sup={sym:"″"}:e.ast&&(e.ast.sup=pr(i.superscript,t)):e.ast.sup=pr(i.superscript,t))):e.index+=1,e}function rr(e,t){const i=e.ast;if(nr(e,"!!"))return e.index+=1,e.ast=er("factorial2",i),rr(e=or(e,t),t);if(nr(e,"++"))return e.index+=1,e.ast=er("increment",i),rr(e=or(e,t),t);if(nr(e,"--"))return e.index+=1,e.ast=er("decrement",i),rr(e=or(e,t),t);const a=e.atoms[e.index];return(null==a?void 0:a.symbol)&&Io[a.symbol]&&(e.ast=er(Io[a.symbol],i),e=rr(e=or(e,t),t)),e}function sr(e,t,i,a){if(e.index=e.index||0,0===e.atoms.length||e.index>=e.atoms.length)return e.ast=void 0,e;const o=e.minPrec;e.minPrec=0;let r=e.atoms[e.index];if(t){if("mopen"===r.type&&Wo(r)===t)e.index+=1,r=(e=cr(e,a)).atoms[e.index],r&&"mclose"===r.type&&Wo(r)===i&&(ar(e)&&(e.ast={group:e.ast}),e=rr(e=or(e,a),a));else if("textord"===r.type&&Wo(r)===t)e.index+=1,r=(e=cr(e,a)).atoms[e.index],r&&"textord"===r.type&&Wo(r)===i&&(e.index+=1,e=rr(e=or(e,a),a));else if("\\lVert"===t&&"textord"===r.type&&"|"===r.symbol){if(r=e.atoms[e.index+1],r&&"textord"===r.type&&"|"===r.symbol){e.index+=2,r=(e=cr(e,a)).atoms[e.index];const t=e.atoms[e.index+1];r&&"textord"===r.type&&"|"===r.symbol&&t&&"textord"===t.type&&"|"===t.symbol&&(e.index+=2,e=rr(e=or(e,a),a))}}else if("sizeddelim"===r.type&&r.delim===t)e.index+=1,r=(e=cr(e,a)).atoms[e.index],r&&"sizeddelim"===r.type&&r.delim===i&&(e.index+=1,e=rr(e=or(e,a),a));else{if("leftright"!==r.type||r.leftDelim!==t||"?"!==r.rightDelim&&r.rightDelim!==i)return;e.ast=pr(r.body,a),ar(e)&&(e.ast={group:e.ast}),e=rr(e=or(e,a),a)}return e.minPrec=o,e}{let s=!0;if("mopen"===r.type?(t=r.symbol,i=V[t]):"sizeddelim"===r.type?(t=r.delim,i=V[t]):"leftright"===r.type?(s=!1,t=r.leftDelim,"?"===(i=r.rightDelim)&&(i=V[t])):"textord"===r.type&&(t=r.symbol,i=V[t]),t&&i){if("|"===t&&"|"===i){const a=e.atoms[e.index+1];a&&"textord"===a.type&&"|"===a.symbol&&(t="\\lVert",i="\\rVert")}if(e=sr(e,t,i,a))return s&&(e.index+=1),e.ast={fn:Ro[t+i]||t+i,arg:[e.ast]},e.minPrec=o,e}}}function nr(e,t){return e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)&&t===Wo(e.atoms[e.index])+Wo(e.atoms[e.index+1])}function lr(e){if(e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)){if(!Qo(e,"textord","\\nabla")){const t=e.atoms[e.index].symbol+e.atoms[e.index+1].symbol,i=/^(>=|<=|>>|<<|:=|!=)$/.test(t)?t:"";return i&&(e.index+=1),i}return e.index+=1,Qo(e,"mbin","\\times")?(e.index+=1,e.ast="curl",e):Qo(e,"mbin","\\cdot")?(e.index+=1,e.ast="div",e):void(e.index-=1)}}function cr(e,i){if(e.index=e.index||0,e.ast=void 0,0===e.atoms.length||e.index>=e.atoms.length)return e;e.minPrec=e.minPrec||0;let a=function e(i,a){if(i.index=i.index||0,i.ast=void 0,0===i.atoms.length||i.index>=i.atoms.length)return i;let o=i.atoms[i.index];if("text"===o.mode){let e="";for(;i.atoms[i.index]&&"text"===i.atoms[i.index].mode;)e+=i.atoms[i.index].body,i.index+=1;return i.ast={text:e},i}const r=Oo(Wo(o));if(lr(i))i.ast=er(i.ast,e(i,a).ast);else{if("root"===o.type)return i.index=0,i.atoms=o.body,e(i,a);if("mbin"===o.type&&"-"===r)i.index+=1,(i=e(i,a)).ast=ir(i.ast);else if("mbin"===o.type&&"+"===r)i.index+=1,(i=e(i,a)).ast=er("add",i.ast);else if("mord"===o.type&&/^[0-9.]$/.test(o.symbol)){let t="",r=!1,s=/^[0-9.eEdD]$/;for(;i.index0&&"\\"===d.charAt(0)&&"string"==typeof e.body&&(d=e.body)),l=ee(d,m,p).replace(/[\\]/g,"\\\\").replace(/["]/g,'\\"').replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t"),l!==d?(c={sym:l},m="normal"):c={sym:d};break;case"minner":case"mop":break;case"box":c=pr(e.body,t);break;case"enclose":break;case"array":if("cardinality"===e.environmentName)c=er("card",pr(e.array,t));else if(/array|matrix|pmatrix|bmatrix/.test(e.environmentName)){c={fn:"array",args:[]};for(const i of e.array)c.args.push(i.map(e=>pr(e,t)))}else if("cases"===e.environmentName){c={fn:"cases",args:[]};for(const i of e.array)if(i[0]){const e=[];e.push(pr(i[0],t));let a=pr(i[1],t);a&&"text"===a.fn&&a.arg&&/^(if|when|for)$/i.test(a.arg[0].trim())&&(a=a.arg.filter(e=>"string"!=typeof e)),e.push(null!=a?a:{}),c.args.push(e)}}break;case"spacing":case"space":case"mathstyle":break;default:c=void 0}return c&&m&&"normal"!==m&&(c.variant=m),c&&"string"==typeof e.cssClass&&(c.class=e.cssClass),c&&"string"==typeof e.cssId&&(c.id=e.cssId),c}function mr(e){if(!e)return[];let i;if(t(e)){i=[];for(const t of e){const e=mr(t);i=i.concat(e)}}else{if("spacing"===e.type||"first"===e.type)return[];"box"===e.type?i=mr(e.body):(e.body&&t(e.body)&&(e.body=mr(e.body)),e.superscript&&t(e.superscript)&&(e.superscript=mr(e.superscript)),e.subscript&&t(e.subscript)&&(e.subscript=mr(e.subscript)),e.index&&t(e.index)&&(e.index=mr(e.index)),e.denom&&t(e.denom)&&(e.denom=mr(e.denom)),e.numer&&t(e.numer)&&(e.numer=mr(e.numer)),e.array&&t(e.array)&&(e.array=e.array.map(e=>e.map(e=>mr(e)))),i=[e])}return i}function pr(e,t){return function(e,t){e.index=e.index||0,e.ast=void 0;const i=[];for(;e.atoms[e.index];)if("text"===e.atoms[e.index].mode){let t="";for(;e.atoms[e.index]&&"text"===e.atoms[e.index].mode;)t+=e.atoms[e.index].body,e.index+=1;i.push(er("text",t))}else{const a=cr(e,t).ast;if(!a)return;i.push(a)}return i.length>1?er("sequence",...i):i[0]||void 0}({atoms:mr(e)},t)}function ur(e,t){return pr(e,t)}function hr(e,...t){e=e||".. ";let i="";if(t.length>0){"."!==e[0]&&(i+=e[0]);let a="";for(const o of t)i+=a+o,a=e[2];"."!==e[1]&&(i+=e[1])}return i}function fr(e,t){const i=e.length;e=e.substr(0,t.precision-2);for(let i=0;i1&&(a+r.repeat(s+1)).startsWith(e))return"0"===r?a.replace(/(\d{3})/g,"$1"+t.groupSeparator):a.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.beginRepeatingDigits+r.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.endRepeatingDigits}}return i!==e.length&&(e+="\\ldots"),e.replace(/(\d{3})/g,"$1"+t.groupSeparator)}function gr(e){return parseFloat(parseFloat(e).toPrecision(15))}function yr(e,t){let i,a="";if("number"==typeof t.precision){if("number"!=typeof e){let i="",a="";if("-"===e[0]?(i="-",e=e.substr(1)):"+"===e[0]&&(e=e.substr(1)),e.indexOf(".")>=0){const o=e.match(/(\d*).(\d*)([e|E]([-+]?[0-9]*))?/),r=o[1],s=o[2].substring(0,Math.min(t.precision-r.length,o[2].length));if(a=o[4]||"","0"===r){let a=0;for(;"0"===s[a]&&a=t.precision)o="0",i="";else{o=e[a];const i=fr(e.substr(a+1),t);i&&(o+=t.decimalMarker+i)}"0"!==o&&(e.length-1>t.precision&&!o.endsWith("}")&&!o.endsWith("\\ldots")&&(o+="\\ldots"),a>4&&(o+=t.exponentProduct,t.exponentMarker?o+=t.exponentMarker+(1-a).toString():o+="10^{"+(1-a).toString()+"}")),e=o}else{e=r.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);const i=fr(s,t);i&&(e+=t.decimalMarker+i)}}else if(e.length>t.precision){const i=e.length;let a=e[0];const o=fr(e.substr(2),t);o&&(a+=t.decimalMarker+o,"}"!==a[a.length-1]&&(a+="\\ldots")),"1"!==a?a+=t.exponentProduct:a="",t.exponentMarker?a+=t.exponentMarker+(i-2).toString():a+="10^{"+(i-2).toString()+"}",e=a}else e=e.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);return a&&(a=t.exponentMarker?t.exponentMarker+a:t.exponentProduct+" 10^{"+a+"}"),i+e+a}i=gr(e)}if("engineering"===t.scientificNotation)if(0===i)a="0";else{const e=Math.abs(i);let o=Math.round(Math.log10(e));o-=o%3,e<1e3&&(o=0);const r=e/Math.pow(10,o);let s="";const n=r.toString().match(/^(.*)\.(.*)$/);(null==n?void 0:n[1])&&n[2]&&(s=n[1]+t.decimalMarker+n[2]),t.groupSeparator&&(s=fr(r.toExponential(),t));let l="";l=0===o?"":t.exponentMarker?t.exponentMarker+o:t.exponentProduct+" 10^{"+o+"}",a=(i<0?"-":"")+s+l}else{const i="string"==typeof e?e:e.toString();let o,r,s,n=i.match(/^(.*)[e|E]([-+]?[0-9]*)$/i);o=i,s="",(null==n?void 0:n[1])&&n[2]&&(o=n[1],r=t.exponentMarker?t.exponentMarker+n[2]:t.exponentProduct+" 10^{"+n[2]+"}"),n=o.match(/^(.*)\.(.*)$/),(null==n?void 0:n[1])&&n[2]&&(o=n[1],s=n[2]),t.groupSeparator&&(o=o.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator),s=fr(s,t)),s&&(s=t.decimalMarker+s),a=o+s+(r||"")}return a}class br{constructor(e,t){var i;this.stylesheets=[],this.eventHandlingInProgress="",this.options=Ja(eo(),t),this.element=e,e.mathfield=this,this.originalContent=e.innerHTML;let a=this.element.textContent;a&&(a=a.trim()),ct(this.options.fontsDirectory,this.options.onError),this.stylesheets.push(dt(e,Co)),this.stylesheets.push(dt(e,'@-webkit-keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}.ML__caret:after{content:"";border:none;border-radius:2px;border-right:2px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-2px;position:relative;left:-1px;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__text-caret:after{content:"";border:none;border-radius:1px;border-right:1px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-1px;position:relative;left:0;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__command-caret:after{content:"_";border:none;margin-right:-1ex;position:relative;color:var(--caret,hsl(var(--hue,212),40%,49%));-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__fieldcontainer{display:flex;flex-flow:row;justify-content:space-between;align-items:flex-end;min-height:39px;touch-action:none;width:100%;--hue:212;--secondary:hsl(var(--hue,212),19%,26%);--on-secondary:hsl(var(--hue,212),19%,26%)}.ML__fieldcontainer:focus{outline:2px solid var(--primary,hsl(var(--hue,212),40%,50%));outline-offset:3px}.ML__fieldcontainer__field{align-self:center;position:relative;overflow:hidden;line-height:0;padding:2px;width:100%}.ML__virtual-keyboard-toggle{display:flex;align-self:center;align-items:center;flex-shrink:0;flex-direction:column;justify-content:center;width:34px;height:34px;padding:0;margin-right:4px;cursor:pointer;box-sizing:border-box;border-radius:50%;border:1px solid transparent;transition:background .2s cubic-bezier(.64,.09,.08,1);color:var(--primary,hsl(var(--hue,212),40%,50%));fill:currentColor;background:transparent}.ML__virtual-keyboard-toggle:hover{background:hsl(var(--hue,212),25%,35%);color:#fafafa;fill:currentColor;border-radius:50%;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}.ML__popover{visibility:hidden;min-width:160px;background-color:rgba(97,97,97,.95);color:#fff;text-align:center;border-radius:6px;position:fixed;z-index:1;display:flex;flex-direction:column;justify-content:center;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:all .2s cubic-bezier(.64,.09,.08,1)}.ML__popover:after{content:"";position:absolute;top:-5px;left:calc(50% - 3px);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;font-size:1rem;border-bottom:5px solid rgba(97,97,97,.9)}.ML__popover--reverse-direction:after{top:auto;bottom:-5px;border-top:5px solid rgba(97,97,97,.9);border-bottom:0}.ML__textarea__textarea{transform:scale(0);resize:none;position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;font-size:16px}.ML__focused .ML__text{background:hsla(var(--hue,212),40%,50%,.1)}.ML__smart-fence__close{opacity:.5}.ML__selection{background:var(--highlight-inactive,#ccc);box-sizing:border-box}.ML__focused .ML__selection{background:var(--highlight,hsl(var(--hue,212),97%,85%))!important;color:var(--on-highlight)}.ML__contains-caret.ML__close,.ML__contains-caret.ML__open,.ML__contains-caret>.ML__close,.ML__contains-caret>.ML__open,.sqrt.ML__contains-caret>.sqrt-sign,.sqrt.ML__contains-caret>.vlist>span>.sqrt-line{color:var(--caret,hsl(var(--hue,212),40%,49%))}.ML__command{font-family:IBM Plex Mono,Source Code Pro,Consolas,Roboto Mono,Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Courier,monospace;letter-spacing:-1px;font-weight:400;line-height:1em;color:var(--primary,hsl(var(--hue,212),40%,50%))}:not(.ML__command)+.ML__command{margin-left:.25em}.ML__command+:not(.ML__command){padding-left:.25em}.ML__suggestion{opacity:.5}.ML__virtual-keyboard-toggle.pressed{background:hsla(0,0%,70%,.5)}.ML__virtual-keyboard-toggle:focus{outline:none;border-radius:50%;border:2px solid var(--primary,hsl(var(--hue,212),40%,50%))}.ML__virtual-keyboard-toggle.active,.ML__virtual-keyboard-toggle.active:hover{background:hsla(0,0%,70%,.5);color:#000;fill:currentColor}.ML__scroller{position:fixed;z-index:1;top:0;height:100vh;width:200px}[data-ML__tooltip]{position:relative}[data-ML__tooltip][data-placement=top]:after{top:inherit;bottom:100%}[data-ML__tooltip]:after{position:absolute;visibility:hidden;content:attr(data-ML__tooltip);display:inline-table;top:110%;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:200px;padding:8px;background:#616161;color:#fff;text-align:center;z-index:2;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);border-radius:2px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;font-size:12px;opacity:0;transform:scale(.5);transition:all .15s cubic-bezier(.4,0,1,1)}@media only screen and (max-width:767px){[data-ML__tooltip]:after{padding:8px 16px;font-size:14px}}[data-ML__tooltip]:hover{position:relative}[data-ML__tooltip]:hover:after{visibility:visible;opacity:1;transform:scale(1)}[data-ML__tooltip][data-delay]:after{transition-delay:0s}[data-ML__tooltip][data-delay]:hover:after{transition-delay:1s}'));let o="";this.options.substituteTextArea?"string"==typeof this.options.substituteTextArea?o+=this.options.substituteTextArea:o+="":/android|ipad|ipod|iphone/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?o+="\n \n \n ":o+=``,o+='',"manual"===this.options.virtualKeyboardMode?(o+=`
    `,this.options.virtualKeyboardToggleGlyph?o+=this.options.virtualKeyboardToggleGlyph:o+='',o+="
    "):o+="",o+="
    ",o+='\n
    \n \n \n
    \n ',this.element.innerHTML=this.options.createHTML(o);let r=0;"function"==typeof this.options.substituteTextArea?this.textarea=this.options.substituteTextArea():this.textarea=this.element.children[r++].firstElementChild,this.field=this.element.children[r].children[0],this.field.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const t=void 0===e.deltaX?e.detail:-e.deltaX;isFinite(t)&&this.field.scroll({top:0,left:this.field.scrollLeft-5*t})},{passive:!1}),this.virtualKeyboardToggle=this.element.children[r++].children[1],Ki(this,this.virtualKeyboardToggle,{default:"toggleVirtualKeyboard",alt:"toggleVirtualKeyboardAlt",shift:"toggleVirtualKeyboardShift"}),this.ariaLiveText=this.element.children[r].children[0],this.accessibleNode=this.element.children[r++].children[1],this.popover=Ci("mathlive-popover-panel","ML__popover"),this.stylesheets.push(dt(null,"div.ML__popover.is-visible{visibility:inherit;-webkit-animation:ML__fade-in .15s cubic-bezier(0,0,.2,1);animation:ML__fade-in .15s cubic-bezier(0,0,.2,1)}@-webkit-keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}@keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}.ML__popover__content{border-radius:6px;padding:2px;cursor:pointer;min-height:100px;display:flex;flex-direction:column;justify-content:center;margin-left:8px;margin-right:8px}.ML__popover__content a{color:#5ea6fd;padding-top:.3em;margin-top:.4em;display:block}.ML__popover__content a:hover{color:#5ea6fd;text-decoration:underline}.ML__popover__content.active,.ML__popover__content.pressed,.ML__popover__content:hover{background:hsla(0,0%,100%,.1)}.ML__popover__command{font-size:1.6rem}.ML__popover__prev-shortcut{height:31px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:4px;padding-bottom:2px}.ML__popover__next-shortcut:hover,.ML__popover__prev-shortcut:hover{opacity:.3}.ML__popover__next-shortcut.active,.ML__popover__next-shortcut.pressed,.ML__popover__prev-shortcut.active,.ML__popover__prev-shortcut.pressed{opacity:1}.ML__popover__next-shortcut>span,.ML__popover__prev-shortcut>span{padding:5px;border-radius:50%;width:20px;height:20px;display:inline-block}.ML__popover__prev-shortcut>span>span{margin-top:-2px;display:block}.ML__popover__next-shortcut>span>span{margin-top:2px;display:block}.ML__popover__next-shortcut:hover>span,.ML__popover__prev-shortcut:hover>span{background:hsla(0,0%,100%,.1)}.ML__popover__next-shortcut{height:34px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:2px;padding-bottom:4px}.ML__popover__shortcut{font-size:.8em;margin-top:.25em}.ML__popover__note,.ML__popover__shortcut{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.7;padding-top:.25em}.ML__popover__note{font-size:.8rem;line-height:1em;padding-left:.5em;padding-right:.5em}.ML__shortcut-join{opacity:.5}")),this.keystrokeCaption=Ci("mathlive-keystroke-caption-panel","ML__keystroke-caption"),this.stylesheets.push(dt(null,".ML__keystroke-caption{visibility:hidden;background:var(--secondary);border-color:var(--secondary-border);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);text-align:center;border-radius:6px;padding:16px;position:absolute;z-index:1;display:flex;flex-direction:row;justify-content:center;--keystroke:#fff;--on-keystroke:#555;--keystroke-border:#f7f7f7}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}}body[theme=dark] .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}.ML__keystroke-caption>span{min-width:14px;margin:0 8px 0 0;padding:4px;background-color:var(--keystroke);color:var(--on-keystroke);fill:currentColor;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:1em;border-radius:6px;border:2px solid var(--keystroke-border)}")),this.keystrokeCaptionVisible=!1,this.virtualKeyboardVisible=!1,this.keystrokeBuffer="",this.keystrokeBufferStates=[],this.keystrokeBufferResetTimer=null,this.suggestionIndex=0,this.mode=this.options.defaultMode,this.smartModeSuppressed=!1,this.style={},this.blurred=!0,Li(this.element,"focus",this),Li(this.element,"blur",this),Li(this.textarea,"cut",this),Li(this.textarea,"copy",this),Li(this.textarea,"paste",this),function(e,t){let i,a=null,o=null,r=!1,s=!1,n=!1,l=!1;function c(e){clearTimeout(i),i=setTimeout(()=>{clearTimeout(i),e()})}function d(){if(e.selectionStart!==e.selectionEnd)return;const i=e.value;e.value="",i.length>0&&t.typedText(i)}const m=e;m.addEventListener("keydown",i=>{if(t.allowDeadKey()||"Dead"!==i.key&&"Unidentified"!==i.key&&229!==i.keyCode)l=!1;else{l=!0,r=!1;const i=t.blur,a=t.focus;t.blur=null,t.focus=null,"function"==typeof e.blur&&(e.blur(),e.focus()),t.blur=i,t.focus=a}return!(!r&&"CapsLock"!==i.code&&!/(Control|Meta|Alt|Shift)(Left|Right)/.test(i.code))||(a=i,o=null,t.keystroke(qa(i),i))},!0),m.addEventListener("keypress",e=>{r||(a&&o&&t.keystroke(qa(a),a),o=e,c(d))},!0),m.addEventListener("keyup",()=>{r||!a||o||d()},!0),m.addEventListener("paste",()=>{e.focus();const i=e.value;e.value="",i.length>0&&t.paste(i)},!0),m.addEventListener("blur",e=>{n||s||(n=!0,a=null,o=null,t.blur&&t.blur(),n=!1)},!0),m.addEventListener("focus",e=>{n||s||(s=!0,t.focus&&t.focus(),s=!1)},!0),m.addEventListener("compositionstart",()=>{r=!0},!0),m.addEventListener("compositionend",()=>{r=!1,l&&t.allowDeadKey()&&c(d)},!0),m.addEventListener("input",()=>{if(l){const i=t.blur,a=t.focus;t.blur=null,t.focus=null,e.blur(),e.focus(),t.blur=i,t.focus=a,l=!1,r=!1,t.allowDeadKey()&&c(d)}else r||c(d)})}(this.textarea,{allowDeadKey:()=>"text"===this.mode,typedText:e=>ro(this,e),paste:()=>lo(this),keystroke:(e,t)=>oo(this,e,t),focus:()=>this.onFocus(),blur:()=>this.onBlur()}),window.PointerEvent?Li(this.field,"pointerdown",this):Li(this.field,"touchstart:active mousedown",this),Li(window,"resize",this),this.model=new La({mode:this.options.defaultMode,macros:this.options.macros,removeExtraneousParentheses:this.options.removeExtraneousParentheses},{onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError},{announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)},this),this.undoManager=new Ta(this.model),va(this.model,a,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),this.undoManager.startRecording(),this.undoManager.snapshot(this.options),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(xi().locale)||vi(this.options.locale),this.keybindings=Si(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),sa(this)}$setConfig(e){this.setOptions(e)}setOptions(e){this.options=Ja(this.options,e),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(xi().locale)||vi(this.options.locale),this.keybindings=Si(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),this.options.readOnly||this.onBlur();const t=this.model.root.toLatex();va(this.model,t,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),sa(this)}getConfig(e){return Qa(this.options,e)}getOptions(e){return Qa(this.options,e)}getOption(e){return Qa(this.options,e)}handleEvent(e){switch(e.type){case"focus":this.eventHandlingInProgress||(this.eventHandlingInProgress="focus",this.onFocus(),this.eventHandlingInProgress="");break;case"blur":this.eventHandlingInProgress||(this.eventHandlingInProgress="blur",this.onBlur(),this.eventHandlingInProgress="");break;case"touchstart":case"mousedown":case"pointerdown":!function(e,t){const i=e;let a,o=!1,r=!1,s=!1;if(1!==t.buttons&&0!==t.buttons)return;let n=!1,l=!1;const c=t.touches?t.touches[0].clientX:t.clientX,d=t.touches?t.touches[0].clientY:t.clientY,m=Date.now(),p=setInterval(()=>{n?i.field.scroll({top:0,left:i.field.scrollLeft-16}):l&&i.field.scroll({top:0,left:i.field.scrollLeft+16})},32);function u(e){window.PointerEvent?(Ai(i.field,"pointermove",h),Ai(i.field,"pointerup pointercancel",u),i.field.releasePointerCapture(e.pointerId)):(Ai(i.field,"touchmove",h),Ai(i.field,"touchcancel touchend",u),Ai(window,"mousemove",h),Ai(window,"mouseup blur",u)),o=!1,clearInterval(p),i.element.querySelectorAll(".ML__scroller").forEach(e=>e.parentNode.removeChild(e)),e.preventDefault(),e.stopPropagation()}function h(t){const o=t.touches?t.touches[0].clientX:t.clientX,s=t.touches?t.touches[0].clientY:t.clientY,p="touch"===t.pointerType?20:5;if(Date.now()u.right,n=o=f.left&&c<=f.right&&d>=f.top&&d<=f.bottom){e.hasFocus()||(s=!0,e.textarea.focus&&e.textarea.focus()),e.resetKeystrokeBuffer(),e.smartModeSuppressed=!1;const n=e.field.querySelector(".ML__mathlive").getBoundingClientRect();if(a=c>n.right?[{relation:"body",offset:e.model.root.body.length-1}]:po(e,c,d,{bias:0}),a){let n=document.createElement("div");n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.left-200+"px",n=document.createElement("div"),n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.right+"px",t.shiftKey?(ci(e.model,e.model.path,a),a=bt(e.model.path),a[a.length-1].offset-=1):Rt(e.model,a,0),s=!0,e.style={},3===t.detail||mo>2?(u(t),3!==t.detail&&3!==mo||ai(e.model)):o||(o=!0,window.PointerEvent?(Li(i.field,"pointermove",h),Li(i.field,"pointerup pointercancel",u),i.field.setPointerCapture(t.pointerId)):(Li(window,"blur",u),t.touches?(Li(t.target,"touchmove",h),Li(t.target,"touchcancel touchend",u)):(Li(window,"mousemove",h),Li(window,"mouseup",u))),2!==t.detail&&2!==mo||(r=!0,ii(e.model)))}}else co=null;s&&sa(e),t.preventDefault()}(this,e);break;case"resize":this.resizeTimer&&window.cancelAnimationFrame(this.resizeTimer),this.resizeTimer=window.requestAnimationFrame(()=>qi(this)&&this._onResize());break;case"cut":t=this,setTimeout(function(){t.$clearSelection(),sa(t)}.bind(t),0);break;case"copy":!function(e,t){oi(e.model)?(t.clipboardData.setData("text/plain","$$"+e.getValue("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.getValue("json")),t.clipboardData.setData("application/xml",e.getValue("mathML"))):(t.clipboardData.setData("text/plain","$$"+e.$selectedText("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.$selectedText("json")),t.clipboardData.setData("application/xml",e.$selectedText("mathML"))),t.preventDefault()}(this,e);break;case"paste":lo(this)}var t}$revertToOriginalContent(){this.dispose(),this.element.innerHTML=this.options.createHTML(this.originalContent)}dispose(){this.element.innerHTML="$$"+this.getValue()+"$$",delete this.element.mathfield,delete this.accessibleNode,delete this.ariaLiveText,delete this.field,Ai(this.textarea,"cut",this),Ai(this.textarea,"copy",this),Ai(this.textarea,"paste",this),this.textarea.remove(),delete this.textarea,this.virtualKeyboardToggle.remove(),delete this.virtualKeyboardToggle,$i(this.popover),delete this.popover,$i(this.keystrokeCaption),delete this.keystrokeCaption,$i(this.virtualKeyboard),delete this.virtualKeyboard,$i(document.getElementById("mathlive-alternate-keys-panel")),Ai(this.element,"pointerdown",this),Ai(this.element,"touchstart:active mousedown",this),Ai(this.element,"focus",this),Ai(this.element,"blur",this),Ai(window,"resize",this),delete this.element,this.stylesheets.forEach(e=>e.release())}resetKeystrokeBuffer(e){(e=null!=e?e:{defer:!1}).defer?this.options.inlineShortcutTimeout&&(this.keystrokeBufferResetTimer=setTimeout(()=>{this.resetKeystrokeBuffer()},this.options.inlineShortcutTimeout)):(this.keystrokeBuffer="",this.keystrokeBufferStates=[],clearTimeout(this.keystrokeBufferResetTimer))}_onSelectionDidChange(){!function(e){const t=Wt(e);if(t){const i=e.siblings(),a=e.anchorOffset()+1;for(let e=t.start;e=0;t--)"command"===i[t].type?i.splice(t,1):e(i[t]);else if(e(i.body),e(i.superscript),e(i.subscript),e(i.underscript),e(i.overscript),e(i.numer),e(i.denom),e(i.index),i.array)for(let t=_t(i.array);t>=0;t--)e(kt(i.array,t))}(e.root.body),e.suppressChangeNotifications=i,Ft(e)}(this.model))}Bi(this,{deferred:!0}),"function"==typeof this.options.onSelectionDidChange&&this.options.onSelectionDidChange(this)}onFocus(){this.options.readOnly||this.blurred&&(this.blurred=!1,this.textarea.focus&&this.textarea.focus(),"onfocus"===this.options.virtualKeyboardMode&&So(this),Bi(this),this.options.onFocus&&this.options.onFocus(this),this.valueOnFocus=this.getValue(),sa(this))}onBlur(){this.blurred||(this.blurred=!0,this.ariaLiveText.textContent="",/onfocus|manual/.test(this.options.virtualKeyboardMode)&&Lo(this),Pa(this,{discard:!0}),sa(this),"function"==typeof this.options.onBlur&&this.options.onBlur(this),"function"==typeof this.options.onCommit&&this.getValue()!==this.valueOnFocus&&this.options.onCommit(this))}_onResize(){this.element.classList.remove("ML__isNarrowWidth","ML__isWideWidth","ML__isExtendedWidth"),window.innerWidth>=1024?this.element.classList.add("ML__isExtendedWidth"):window.innerWidth>=768?this.element.classList.add("ML__isWideWidth"):this.element.classList.add("ML__isNarrowWidth"),Bi(this)}$perform(e){return this.executeCommand(e)}executeCommand(e){return function(e,i){var a;if(!i)return!1;let o,r=[],s=!1,n=!1;if(t(i)?(o=i[0],r=i.slice(1)):o=i,o=o.replace(/-\w/g,e=>e[1].toUpperCase()),"model"===(null===(a=la[o])||void 0===a?void 0:a.target)){if(/^(delete|transpose|add)/.test(o)&&"deletePreviousChar"!==o&&e.resetKeystrokeBuffer(),/^(delete|transpose|add)/.test(o)&&"command"!==e.mode&&(e.popUndoStack(),e.snapshot()),la[o].fn(e.model,...r),/^(delete|transpose|add)/.test(o)&&"command"!==e.mode&&e.snapshot(),/^(delete)/.test(o)&&"command"===e.mode){const t=ne(Pi(e.model));0===t.length?Fi(e):Ni(e,t[0].match,t.length>1)}n=!0,s=!0}else{if(!la[o])throw Error('Unknown command "'+o+'"');n=la[o].fn(e,...r),s=!0}return oi(e.model)&&!/^(transpose|paste|complete|((moveToNextChar|moveToPreviousChar|extend).*))_$/.test(o)||(e.resetKeystrokeBuffer(),e.style={}),n&&sa(e),s}(this,e)}atomToString(e,t){let i="";if("latex"===(t=t||"latex")||"latex-expanded"===t)i=e.toLatex("latex-expanded"===t);else if("mathML"===t)i=oa(e,this.options);else if("spoken"===t)i=Wa(e,this.options);else if("spoken-text"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="",i=Wa(e,this.options),this.options.textToSpeechMarkup=t}else if("spoken-ssml"===t||"spoken-ssml-withHighlighting"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="ssml",i=Wa(e,this.options),this.options.textToSpeechMarkup=t}else if("json"===t){const t=ur(e);i=JSON.stringify(t)}else if("json-2"===t){const t=ur(e);i=JSON.stringify(t,null,2)}else"ASCIIMath"===t&&(i=Na(e));return i}get lastPosition(){return this.model.lastPosition}get selection(){return this.model.selection}set selection(e){this.model.selection=e}$text(e){return this.atomToString(this.model.root,e)}getValue(e,t,i){if(void 0===e)return this.atomToString(this.model.root,"latex");let a,o;if("string"==typeof e)return a=e,this.atomToString(this.model.root,a);"number"==typeof e&&"number"==typeof t?(o=[{start:e,end:t}],a=null!=i?i:"latex"):o=Array.isArray(e)?e:[e];const r=new wa(this.model.root);return o.map(e=>{let t="";if((e=ht(r,e,{accessibleAtomsOnly:!0})).start>=0&&!e.collapsed){const i=r.at(e.start).depth;for(let a=e.start+1;a<=e.end;a++)r.at(a).depth===i&&(t+=this.atomToString(r.at(a).atom,"latex"))}return t}).join("")}setValue(e,t){e!==this.getValue()&&(t=null!=t?t:{mode:"math"},va(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),sa(this))}$selectedText(e){const t=ti(this.model);return t?this.atomToString(Qe("math",t),e):""}$selectionIsCollapsed(){return oi(this.model)}$selectionDepth(){return this.model.path.length}$selectionAtStart(){return!1}$selectionAtEnd(){return!1}$latex(e,t){return"string"==typeof e?(e!==this.model.root.toLatex()&&(t=null!=t?t:{mode:"math"},va(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),sa(this)),e):this.model.root.toLatex()}$el(){return this.element}scrollIntoView(){var e;this.dirty&&na(this);let t=null===(e=Di(this.field))||void 0===e?void 0:e.x;const i=this.field.getBoundingClientRect();if(void 0===t){const e=Ti(this.field);null!==e&&(t=e.right+i.left-this.field.scrollLeft)}if(void 0!==t){const e=t-window.scrollX;ei.right&&this.field.scroll({top:0,left:e-i.right+this.field.scrollLeft+20,behavior:"smooth"})}}$insert(e,t){return this.insert(e,t)}insert(e,t){if("string"==typeof e&&e.length>0){if((t=null!=t?t:{mode:"math"}).focus&&this.focus(),t.feedback&&(this.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),this.keypressSound&&(this.keypressSound.load(),this.keypressSound.play())),"\\\\"===e)ua(this.model);else if("&"===e)ha(this.model);else{const i=this.style;va(this.model,e,{mode:this.mode,style:Ht(this.model),...t}),t.resetStyle&&(this.style=i)}return this.undoManager.snapshot(this.options),sa(this),!0}return!1}switchMode(e,t="",i=""){this.resetKeystrokeBuffer(),this.smartModeSuppressed=/text|math/.test(this.mode)&&/text|math/.test(e),t&&this.insert(t,{format:"latex",mode:{math:"text",text:"math"}[e]}),Ri(this.model,!1),"command"===e?(pt(this.model),Fi(this),this.suggestionIndex=0,this.virtualKeyboardVisible&&zo(this,"lower-command"),va(this.model,"",{mode:"math"})):this.mode=e,i&&this.insert(i,{format:"latex",mode:e}),"function"==typeof this.options.onModeChange&&this.options.onModeChange(this,this.mode),sa(this)}$hasFocus(){return this.hasFocus()}hasFocus(){return document.hasFocus()&&function e(t=document){var i,a;return(null===(a=null===(i=t.activeElement)||void 0===i?void 0:i.shadowRoot)||void 0===a?void 0:a.activeElement)?e(t.activeElement.shadowRoot):t.activeElement}(document)===this.textarea}focus(){this.hasFocus()||("function"==typeof this.textarea.focus&&this.textarea.focus(),this.model.announce("line"))}blur(){this.hasFocus()&&"function"==typeof this.textarea.blur&&this.textarea.blur()}$focus(){return this.focus()}$blur(){return this.blur()}$select(){ai(this.model)}select(){ai(this.model)}$clearSelection(){ga(this.model)}applyStyle(e){ya(this.model,e)}$applyStyle(e){ya(this.model,e)}$keystroke(e,t){return oo(this,e,t)}$typedText(e){ro(this,e)}getCaretPosition(){const e=Di(this.field);return e?{x:e.x,y:e.y}:null}setCaretPosition(e,t){const i=this.model.clone(),a=po(this,e,t,{bias:0}),o=Rt(this.model,a,0);return this.model.announce("move",i),sa(this),o}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(){this.undoManager.snapshot({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}snapshotAndCoalesce(){this.undoManager.snapshotAndCoalesce({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}getUndoRecord(){return this.undoManager.save()}restoreToUndoRecord(e){this.undoManager.restore(e,{...this.options,suppressChangeNotifications:!0})}undo(){return this.undoManager.undo({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}redo(){return this.undoManager.redo({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}}function vr(e,t,i){let a=i,o=0;const r=e.length;for(;a0&&o.push({type:"text",data:s.slice(0,c)}),l=!1);let d=!1;for(;!d;){if(l){if(n=s.indexOf(t,c),-1===n){d=!0;break}c!==n&&o.push({type:"text",data:s.slice(c,n)}),c=n}else{if(n=vr(i,s,c+t.length),-1===n){d=!0;break}o.push({type:"math",data:s.slice(c+t.length,n),rawData:s.slice(c,n+i.length),mathstyle:a}),c=n+i.length}l=!l}c";i.innerHTML=t.createHTML?t.createHTML(a):a}catch(t){i.textContent=e}return i.className="ML__sr-only",i}(e,i)),/\bspeakable-text\b/i.test(i.renderAccessibleContent)&&i.renderToSpeakableText){const a=document.createElement("span"),o=i.renderToSpeakableText(e,i);a.innerHTML=i.createHTML?i.createHTML(o):o,a.className="ML__sr-only",t.appendChild(a)}return t.appendChild(o),t}return o}function wr(e,t){let i=null;if(t.TeX.processEnvironments&&/^\s*\\begin/.test(e))i=document.createDocumentFragment(),i.appendChild(_r(e,void 0,t,!0));else{if(!e.trim())return null;const a=kr(e,t.TeX.delimiters);if(1===a.length&&"text"===a[0].type)return null;i=document.createDocumentFragment();for(let e=0;e0?zr(e[t].children,i):e[t];if("string"==typeof t){for(let o=0;o0?zr(e[o].children,i):e[o];if(a=zr(e[o].children,t),a)return a}return a}return null}function Sr(e,t){var i;const a=zr(e,t);return a?null!==(i=a.classes)&&void 0!==i?i:"":null}function Lr(e,t){let i="";return e[t]&&(i+=''+t+"=",i+='',i+=e[t],i+='" '),i}var Ar={mathlistToMarkup:function e(t,i=""){if(!t)return"";let a="";if(Array.isArray(t))for(let o=0;o"),"string"==typeof t.body&&t.body.length>0&&(a+=' ',a+=t.body,(t.body.charCodeAt(0)<32||t.body.charCodeAt(0)>127)&&(a+=" U+"+("000000"+t.body.charCodeAt(0).toString(16)).substr(-6)),a+=" "),"mathrm"===t.fontFamily?(a+='',a+=Lr(t,"fontFamily"),a+=""):a+=Lr(t,"fontFamily"),a+=Lr(t,"hasBarLine"),a+=Lr(t,"leftDelim"),a+=Lr(t,"rightDelim"),a+=Lr(t,"continuousFraction"),a+=Lr(t,"limits"),a+=Lr(t,"symbol"),a+=function(e,t){let i="";return e[t]&&(i+='framecolor=',i+='',i+='',i+=e[t],i+=""),i}(t,"framecolor"),a+=Lr(t,"mathstyle"),a+=Lr(t,"size"),a+=Lr(t,"cls"),a+=Lr(t,"delim"),a+=Lr(t,"shift"),a+=Lr(t,"width"),a+=Lr(t,"height"),a+=Lr(t,"position"),a+=e(t.overscript,i+"↑"),a+=e(t.underscript,i+"↓"),a+=e(t.superscript,i+"↑"),a+=e(t.subscript,i+"↓"),a+=e(t.body,i+"▶"),a+=e(t.numer,i+"▲"),a+=e(t.denom,i+"▼"),t.array)for(let o=0;o"+i+"⌗ row "+(o+1)+"/"+t.array.length;for(let r=0;r"),t.body&&t.body.length>0&&(a+=''+t.body+""),t.classes&&t.classes.length>0&&(a+=' '+t.classes+""),t.isTight&&(a+='  tight '),t.caret&&(a+='  caret '),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=' '+e+":",a+=' '+t.style[e]+"; ");t.children&&(a+=t.children.map(t=>e(t,i+"▷")).join("; "))}return a},spanToString:function e(t,i=""){let a="";if(Array.isArray(t))if(0===t.length)a+="[]\n";else{a+="[\n";for(let o=0;o0&&(a+=i+'body:"'+t.body+'",\n'),t.classes&&t.classes.length>0&&(a+=i+'classes:"'+t.classes+'",\n'),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=i+e+':"',a+=t.style[e]+'",\n');t.children&&t.children.length>0&&(a+=i+"children:"+t.children.map(t=>e(t,i)).join("; ")),a+=i+"}"}return a},hasClass:function(e,t,i){const a=Sr(e,t);if(!a)return!1;const o=a.split(" ");for(let e=0;e{if(e)return;if(!t||!t.AudioStream)return;const i=new TextDecoder("utf-8").decode(new Uint8Array(t.AudioStream));window.mathlive.readAloudMarks=i.split("\n").map(e=>e?JSON.parse(e):{}),window.mathlive.readAloudTokens=[];for(const e of window.mathlive.readAloudMarks)e.value&&window.mathlive.readAloudTokens.push(e.value);window.mathlive.readAloudCurrentMark="",r.OutputFormat="mp3",r.SpeechMarkTypes=[],o.synthesizeSpeech(r,(function(e,t){if(e)return;if(!t||!t.AudioStream)return;const i=new Uint8Array(t.AudioStream),a=new Blob([i.buffer],{type:"audio/mpeg"}),o=URL.createObjectURL(a);window.mathlive.readAloudAudio?window.mathlive.readAloudAudio.pause():(window.mathlive.readAloudAudio=new Audio,window.mathlive.readAloudAudio.addEventListener("ended",()=>{const e=window.mathlive.readAloudMathField;s&&s(e,"ended"),e?(na(e),window.mathlive.readAloudElement=null,window.mathlive.readAloudMathField=null,window.mathlive.readAloudTokens=[],window.mathlive.readAloudMarks=[],window.mathlive.readAloudCurrentMark=""):function e(t){if(t.classList.remove("ML__highlight"),t.children)for(const i of t.children)e(i)}(window.mathlive.readAloudElement)}),window.mathlive.readAloudAudio.addEventListener("timeupdate",()=>{let e="";const t=1e3*window.mathlive.readAloudAudio.currentTime+100;for(const i of window.mathlive.readAloudMarks)i.time0&&Array.from(t.children).forEach(t=>{e(t,i)})):(t.classList.add("ML__highlight"),t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{e(t)}))}(window.mathlive.readAloudElement,window.mathlive.readAloudCurrentMark)))})),window.mathlive.readAloudAudio.src=o,s&&s(window.mathlive.readAloudMathField,"playing"),window.mathlive.readAloudAudio.play()}))})}const $r=1200,qr=3e3,Dr=4e3;function Tr(e,t,i=3e3,a="$0"){t.forEach(t=>{F[t]&&(F[t].frequency=i,F[t].category=e,F[t].template=a.replace(/\$0/g,t)),R[t]&&(R[t]={...R[t],frequency:i,category:e,template:a.replace(/\$0/g,t)})})} +var global,factory;global=this,factory=function(e){function t(e){return Array.isArray(e)}var i={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0],58:[0,.47534,0,0],59:[.12604,.47534,0,0],61:[-.13099,.36866,0,0],63:[0,.69141,0,0],65:[0,.69141,0,0],66:[0,.69141,0,0],67:[0,.69141,0,0],68:[0,.69141,0,0],69:[0,.69141,0,0],70:[.12604,.69141,0,0],71:[0,.69141,0,0],72:[.06302,.69141,0,0],73:[0,.69141,0,0],74:[.12604,.69141,0,0],75:[0,.69141,0,0],76:[0,.69141,0,0],77:[0,.69141,0,0],78:[0,.69141,0,0],79:[0,.69141,0,0],80:[.18906,.69141,0,0],81:[.03781,.69141,0,0],82:[0,.69141,0,0],83:[0,.69141,0,0],84:[0,.69141,0,0],85:[0,.69141,0,0],86:[0,.69141,0,0],87:[0,.69141,0,0],88:[0,.69141,0,0],89:[.18906,.69141,0,0],90:[.12604,.69141,0,0],91:[.24982,.74947,0,0],93:[.24982,.74947,0,0],94:[0,.69141,0,0],97:[0,.47534,0,0],98:[0,.69141,0,0],99:[0,.47534,0,0],100:[0,.62119,0,0],101:[0,.47534,0,0],102:[.18906,.69141,0,0],103:[.18906,.47534,0,0],104:[.18906,.69141,0,0],105:[0,.69141,0,0],106:[0,.69141,0,0],107:[0,.69141,0,0],108:[0,.69141,0,0],109:[0,.47534,0,0],110:[0,.47534,0,0],111:[0,.47534,0,0],112:[.18906,.52396,0,0],113:[.18906,.47534,0,0],114:[0,.47534,0,0],115:[0,.47534,0,0],116:[0,.62119,0,0],117:[0,.47534,0,0],118:[0,.52396,0,0],119:[0,.52396,0,0],120:[.18906,.47534,0,0],121:[.18906,.47534,0,0],122:[.18906,.47534,0,0],8216:[0,.69141,0,0],8217:[0,.69141,0,0],58112:[0,.62119,0,0],58113:[0,.62119,0,0],58114:[.18906,.69141,0,0],58115:[.18906,.69141,0,0],58116:[.18906,.47534,0,0],58117:[0,.69141,0,0],58118:[0,.62119,0,0],58119:[0,.47534,0,0]},"Main-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.13333,.63333,0,0],44:[.19444,.15556,0,0],45:[0,.44444,0,0],46:[0,.15556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.44444,0,0],59:[.19444,.44444,0,0],60:[.08556,.58556,0,0],61:[-.10889,.39111,0,0],62:[.08556,.58556,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,0,0],67:[0,.68611,0,0],68:[0,.68611,0,0],69:[0,.68611,0,0],70:[0,.68611,0,0],71:[0,.68611,0,0],72:[0,.68611,0,0],73:[0,.68611,0,0],74:[0,.68611,0,0],75:[0,.68611,0,0],76:[0,.68611,0,0],77:[0,.68611,0,0],78:[0,.68611,0,0],79:[0,.68611,0,0],80:[0,.68611,0,0],81:[.19444,.68611,0,0],82:[0,.68611,0,0],83:[0,.68611,0,0],84:[0,.68611,0,0],85:[0,.68611,0,0],86:[0,.68611,.01597,0],87:[0,.68611,.01597,0],88:[0,.68611,0,0],89:[0,.68611,.02875,0],90:[0,.68611,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.13444,.03194,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.10903,0],103:[.19444,.44444,.01597,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,0,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.01597,0],119:[0,.44444,.01597,0],120:[0,.44444,0,0],121:[.19444,.44444,.01597,0],122:[0,.44444,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],172:[0,.44444,0,0],176:[0,.69444,0,0],177:[.13333,.63333,0,0],184:[.17014,0,0,0],198:[0,.68611,0,0],215:[.13333,.63333,0,0],216:[.04861,.73472,0,0],223:[0,.69444,0,0],230:[0,.44444,0,0],247:[.13333,.63333,0,0],248:[.09722,.54167,0,0],305:[0,.44444,0,0],338:[0,.68611,0,0],339:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.59611,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.68611,0,0],916:[0,.68611,0,0],920:[0,.68611,0,0],923:[0,.68611,0,0],926:[0,.68611,0,0],928:[0,.68611,0,0],931:[0,.68611,0,0],933:[0,.68611,0,0],934:[0,.68611,0,0],936:[0,.68611,0,0],937:[0,.68611,0,0],8211:[0,.44444,.03194,0],8212:[0,.44444,.03194,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8242:[0,.55556,0,0],8407:[0,.72444,.15486,0],8463:[0,.69444,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,0],8472:[.19444,.44444,0,0],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.10889,.39111,0,0],8593:[.19444,.69444,0,0],8594:[-.10889,.39111,0,0],8595:[.19444,.69444,0,0],8596:[-.10889,.39111,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8636:[-.10889,.39111,0,0],8637:[-.10889,.39111,0,0],8640:[-.10889,.39111,0,0],8641:[-.10889,.39111,0,0],8656:[-.10889,.39111,0,0],8657:[.19444,.69444,0,0],8658:[-.10889,.39111,0,0],8659:[.19444,.69444,0,0],8660:[-.10889,.39111,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.06389,0],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68611,0,0],8712:[.08556,.58556,0,0],8715:[.08556,.58556,0,0],8722:[.13333,.63333,0,0],8723:[.13333,.63333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.02778,.47222,0,0],8728:[-.02639,.47361,0,0],8729:[-.02639,.47361,0,0],8730:[.18,.82,0,0],8733:[0,.44444,0,0],8734:[0,.44444,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.12778,0],8764:[-.10889,.39111,0,0],8768:[.19444,.69444,0,0],8771:[.00222,.50222,0,0],8776:[.02444,.52444,0,0],8781:[.00222,.50222,0,0],8801:[.00222,.50222,0,0],8804:[.19667,.69667,0,0],8805:[.19667,.69667,0,0],8810:[.08556,.58556,0,0],8811:[.08556,.58556,0,0],8826:[.08556,.58556,0,0],8827:[.08556,.58556,0,0],8834:[.08556,.58556,0,0],8835:[.08556,.58556,0,0],8838:[.19667,.69667,0,0],8839:[.19667,.69667,0,0],8846:[0,.55556,0,0],8849:[.19667,.69667,0,0],8850:[.19667,.69667,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.13333,.63333,0,0],8854:[.13333,.63333,0,0],8855:[.13333,.63333,0,0],8856:[.13333,.63333,0,0],8857:[.13333,.63333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8900:[-.02639,.47361,0,0],8901:[-.02639,.47361,0,0],8902:[-.02778,.47222,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.13889,.36111,0,0],8995:[-.13889,.36111,0,0],9651:[.19444,.69444,0,0],9657:[-.02778,.47222,0,0],9661:[.19444,.69444,0,0],9667:[-.02778,.47222,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10815:[0,.68611,0,0],10927:[.19667,.69667,0,0],10928:[.19667,.69667,0,0],57376:[.19444,.69444,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0],34:[0,.69444,.07939,0],35:[.19444,.69444,.06833,0],37:[.05556,.75,.12861,0],38:[0,.69444,.08528,0],39:[0,.69444,.12945,0],40:[.25,.75,.15806,0],41:[.25,.75,.03306,0],42:[0,.75,.14333,0],43:[.10333,.60333,.03306,0],44:[.19444,.14722,0,0],45:[0,.44444,.02611,0],46:[0,.14722,0,0],47:[.25,.75,.15806,0],48:[0,.64444,.13167,0],49:[0,.64444,.13167,0],50:[0,.64444,.13167,0],51:[0,.64444,.13167,0],52:[.19444,.64444,.13167,0],53:[0,.64444,.13167,0],54:[0,.64444,.13167,0],55:[.19444,.64444,.13167,0],56:[0,.64444,.13167,0],57:[0,.64444,.13167,0],58:[0,.44444,.06695,0],59:[.19444,.44444,.06695,0],61:[-.10889,.39111,.06833,0],63:[0,.69444,.11472,0],64:[0,.69444,.09208,0],65:[0,.68611,0,0],66:[0,.68611,.0992,0],67:[0,.68611,.14208,0],68:[0,.68611,.09062,0],69:[0,.68611,.11431,0],70:[0,.68611,.12903,0],71:[0,.68611,.07347,0],72:[0,.68611,.17208,0],73:[0,.68611,.15681,0],74:[0,.68611,.145,0],75:[0,.68611,.14208,0],76:[0,.68611,0,0],77:[0,.68611,.17208,0],78:[0,.68611,.17208,0],79:[0,.68611,.09062,0],80:[0,.68611,.0992,0],81:[.19444,.68611,.09062,0],82:[0,.68611,.02559,0],83:[0,.68611,.11264,0],84:[0,.68611,.12903,0],85:[0,.68611,.17208,0],86:[0,.68611,.18625,0],87:[0,.68611,.18625,0],88:[0,.68611,.15681,0],89:[0,.68611,.19803,0],90:[0,.68611,.14208,0],91:[.25,.75,.1875,0],93:[.25,.75,.09972,0],94:[0,.69444,.06709,0],95:[.31,.13444,.09811,0],97:[0,.44444,.09426,0],98:[0,.69444,.07861,0],99:[0,.44444,.05222,0],100:[0,.69444,.10861,0],101:[0,.44444,.085,0],102:[.19444,.69444,.21778,0],103:[.19444,.44444,.105,0],104:[0,.69444,.09426,0],105:[0,.69326,.11387,0],106:[.19444,.69326,.1672,0],107:[0,.69444,.11111,0],108:[0,.69444,.10861,0],109:[0,.44444,.09426,0],110:[0,.44444,.09426,0],111:[0,.44444,.07861,0],112:[.19444,.44444,.07861,0],113:[.19444,.44444,.105,0],114:[0,.44444,.11111,0],115:[0,.44444,.08167,0],116:[0,.63492,.09639,0],117:[0,.44444,.09426,0],118:[0,.44444,.11111,0],119:[0,.44444,.11111,0],120:[0,.44444,.12583,0],121:[.19444,.44444,.105,0],122:[0,.44444,.13889,0],126:[.35,.34444,.11472,0],163:[0,.69444,0,0],168:[0,.69444,.11473,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68611,.11431,0],216:[.04861,.73472,.09062,0],223:[.19444,.69444,.09736,0],230:[0,.44444,.085,0],248:[.09722,.54167,.09458,0],305:[0,.44444,.09426,0],338:[0,.68611,.11431,0],339:[0,.44444,.085,0],567:[.19444,.44444,.04611,0],710:[0,.69444,.06709,0],711:[0,.63194,.08271,0],713:[0,.59444,.10444,0],714:[0,.69444,.08528,0],715:[0,.69444,0,0],728:[0,.69444,.10333,0],729:[0,.69444,.12945,0],730:[0,.69444,0,0],732:[0,.69444,.11472,0],733:[0,.69444,.11472,0],915:[0,.68611,.12903,0],916:[0,.68611,0,0],920:[0,.68611,.09062,0],923:[0,.68611,0,0],926:[0,.68611,.15092,0],928:[0,.68611,.17208,0],931:[0,.68611,.11431,0],933:[0,.68611,.10778,0],934:[0,.68611,.05632,0],936:[0,.68611,.10778,0],937:[0,.68611,.0992,0],8211:[0,.44444,.09811,0],8212:[0,.44444,.09811,0],8216:[0,.69444,.12945,0],8217:[0,.69444,.12945,0],8220:[0,.69444,.16772,0],8221:[0,.69444,.07939,0]},"Main-Italic":{33:[0,.69444,.12417,0],34:[0,.69444,.06961,0],35:[.19444,.69444,.06616,0],37:[.05556,.75,.13639,0],38:[0,.69444,.09694,0],39:[0,.69444,.12417,0],40:[.25,.75,.16194,0],41:[.25,.75,.03694,0],42:[0,.75,.14917,0],43:[.05667,.56167,.03694,0],44:[.19444,.10556,0,0],45:[0,.43056,.02826,0],46:[0,.10556,0,0],47:[.25,.75,.16194,0],48:[0,.64444,.13556,0],49:[0,.64444,.13556,0],50:[0,.64444,.13556,0],51:[0,.64444,.13556,0],52:[.19444,.64444,.13556,0],53:[0,.64444,.13556,0],54:[0,.64444,.13556,0],55:[.19444,.64444,.13556,0],56:[0,.64444,.13556,0],57:[0,.64444,.13556,0],58:[0,.43056,.0582,0],59:[.19444,.43056,.0582,0],61:[-.13313,.36687,.06616,0],63:[0,.69444,.1225,0],64:[0,.69444,.09597,0],65:[0,.68333,0,0],66:[0,.68333,.10257,0],67:[0,.68333,.14528,0],68:[0,.68333,.09403,0],69:[0,.68333,.12028,0],70:[0,.68333,.13305,0],71:[0,.68333,.08722,0],72:[0,.68333,.16389,0],73:[0,.68333,.15806,0],74:[0,.68333,.14028,0],75:[0,.68333,.14528,0],76:[0,.68333,0,0],77:[0,.68333,.16389,0],78:[0,.68333,.16389,0],79:[0,.68333,.09403,0],80:[0,.68333,.10257,0],81:[.19444,.68333,.09403,0],82:[0,.68333,.03868,0],83:[0,.68333,.11972,0],84:[0,.68333,.13305,0],85:[0,.68333,.16389,0],86:[0,.68333,.18361,0],87:[0,.68333,.18361,0],88:[0,.68333,.15806,0],89:[0,.68333,.19383,0],90:[0,.68333,.14528,0],91:[.25,.75,.1875,0],93:[.25,.75,.10528,0],94:[0,.69444,.06646,0],95:[.31,.12056,.09208,0],97:[0,.43056,.07671,0],98:[0,.69444,.06312,0],99:[0,.43056,.05653,0],100:[0,.69444,.10333,0],101:[0,.43056,.07514,0],102:[.19444,.69444,.21194,0],103:[.19444,.43056,.08847,0],104:[0,.69444,.07671,0],105:[0,.65536,.1019,0],106:[.19444,.65536,.14467,0],107:[0,.69444,.10764,0],108:[0,.69444,.10333,0],109:[0,.43056,.07671,0],110:[0,.43056,.07671,0],111:[0,.43056,.06312,0],112:[.19444,.43056,.06312,0],113:[.19444,.43056,.08847,0],114:[0,.43056,.10764,0],115:[0,.43056,.08208,0],116:[0,.61508,.09486,0],117:[0,.43056,.07671,0],118:[0,.43056,.10764,0],119:[0,.43056,.10764,0],120:[0,.43056,.12042,0],121:[.19444,.43056,.08847,0],122:[0,.43056,.12292,0],126:[.35,.31786,.11585,0],163:[0,.69444,0,0],168:[0,.66786,.10474,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,.12028,0],216:[.04861,.73194,.09403,0],223:[.19444,.69444,.10514,0],230:[0,.43056,.07514,0],248:[.09722,.52778,.09194,0],305:[0,.43056,0,.02778],338:[0,.68333,.12028,0],339:[0,.43056,.07514,0],567:[.19444,.43056,0,.08334],710:[0,.69444,.06646,0],711:[0,.62847,.08295,0],713:[0,.56167,.10333,0],714:[0,.69444,.09694,0],715:[0,.69444,0,0],728:[0,.69444,.10806,0],729:[0,.66786,.11752,0],730:[0,.69444,0,0],732:[0,.66786,.11585,0],733:[0,.69444,.1225,0],915:[0,.68333,.13305,0],916:[0,.68333,0,0],920:[0,.68333,.09403,0],923:[0,.68333,0,0],926:[0,.68333,.15294,0],928:[0,.68333,.16389,0],931:[0,.68333,.12028,0],933:[0,.68333,.11111,0],934:[0,.68333,.05986,0],936:[0,.68333,.11111,0],937:[0,.68333,.10257,0],8211:[0,.43056,.09208,0],8212:[0,.43056,.09208,0],8216:[0,.69444,.12417,0],8217:[0,.69444,.12417,0],8220:[0,.69444,.1685,0],8221:[0,.69444,.06961,0],8463:[0,.68889,0,0]},"Main-Regular":{32:[0,0,0,0],33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.19444,.10556,0,0],45:[0,.43056,0,0],46:[0,.10556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.43056,0,0],59:[.19444,.43056,0,0],60:[.0391,.5391,0,0],61:[-.13313,.36687,0,0],62:[.0391,.5391,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68333,0,0],66:[0,.68333,0,0],67:[0,.68333,0,0],68:[0,.68333,0,0],69:[0,.68333,0,0],70:[0,.68333,0,0],71:[0,.68333,0,0],72:[0,.68333,0,0],73:[0,.68333,0,0],74:[0,.68333,0,0],75:[0,.68333,0,0],76:[0,.68333,0,0],77:[0,.68333,0,0],78:[0,.68333,0,0],79:[0,.68333,0,0],80:[0,.68333,0,0],81:[.19444,.68333,0,0],82:[0,.68333,0,0],83:[0,.68333,0,0],84:[0,.68333,0,0],85:[0,.68333,0,0],86:[0,.68333,.01389,0],87:[0,.68333,.01389,0],88:[0,.68333,0,0],89:[0,.68333,.025,0],90:[0,.68333,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.12056,.02778,0],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,0],100:[0,.69444,0,0],101:[0,.43056,0,0],102:[0,.69444,.07778,0],103:[.19444,.43056,.01389,0],104:[0,.69444,0,0],105:[0,.66786,0,0],106:[.19444,.66786,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.19444,.43056,0,0],113:[.19444,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.61508,0,0],117:[0,.43056,0,0],118:[0,.43056,.01389,0],119:[0,.43056,.01389,0],120:[0,.43056,0,0],121:[.19444,.43056,.01389,0],122:[0,.43056,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.31786,0,0],160:[0,0,0,0],167:[.19444,.69444,0,0],168:[0,.66786,0,0],172:[0,.43056,0,0],176:[0,.69444,0,0],177:[.08333,.58333,0,0],182:[.19444,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,0,0],215:[.08333,.58333,0,0],216:[.04861,.73194,0,0],223:[0,.69444,0,0],230:[0,.43056,0,0],247:[.08333,.58333,0,0],248:[.09722,.52778,0,0],305:[0,.43056,0,0],338:[0,.68333,0,0],339:[0,.43056,0,0],567:[.19444,.43056,0,0],710:[0,.69444,0,0],711:[0,.62847,0,0],713:[0,.56778,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.66786,0,0],730:[0,.69444,0,0],732:[0,.66786,0,0],733:[0,.69444,0,0],915:[0,.68333,0,0],916:[0,.68333,0,0],920:[0,.68333,0,0],923:[0,.68333,0,0],926:[0,.68333,0,0],928:[0,.68333,0,0],931:[0,.68333,0,0],933:[0,.68333,0,0],934:[0,.68333,0,0],936:[0,.68333,0,0],937:[0,.68333,0,0],8211:[0,.43056,.02778,0],8212:[0,.43056,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8230:[0,.12,0,0],8242:[0,.55556,0,0],8407:[0,.71444,.15382,0],8463:[0,.68889,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,.11111],8472:[.19444,.43056,0,.11111],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.13313,.36687,0,0],8593:[.19444,.69444,0,0],8594:[-.13313,.36687,0,0],8595:[.19444,.69444,0,0],8596:[-.13313,.36687,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8614:[.011,.511,0,0],8617:[.011,.511,0,0],8618:[.011,.511,0,0],8636:[-.13313,.36687,0,0],8637:[-.13313,.36687,0,0],8640:[-.13313,.36687,0,0],8641:[-.13313,.36687,0,0],8652:[.011,.671,0,0],8656:[-.13313,.36687,0,0],8657:[.19444,.69444,0,0],8658:[-.13313,.36687,0,0],8659:[.19444,.69444,0,0],8660:[-.13313,.36687,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.05556,.08334],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68333,0,0],8712:[.0391,.5391,0,0],8715:[.0391,.5391,0,0],8722:[.08333,.58333,0,0],8723:[.08333,.58333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.03472,.46528,0,0],8728:[-.05555,.44445,0,0],8729:[-.05555,.44445,0,0],8730:[.2,.8,0,0],8733:[0,.43056,0,0],8734:[0,.43056,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.11111,0],8764:[-.13313,.36687,0,0],8768:[.19444,.69444,0,0],8771:[-.03625,.46375,0,0],8773:[-.022,.589,0,0],8776:[-.01688,.48312,0,0],8781:[-.03625,.46375,0,0],8784:[-.133,.67,0,0],8801:[-.03625,.46375,0,0],8804:[.13597,.63597,0,0],8805:[.13597,.63597,0,0],8810:[.0391,.5391,0,0],8811:[.0391,.5391,0,0],8826:[.0391,.5391,0,0],8827:[.0391,.5391,0,0],8834:[.0391,.5391,0,0],8835:[.0391,.5391,0,0],8838:[.13597,.63597,0,0],8839:[.13597,.63597,0,0],8846:[0,.55556,0,0],8849:[.13597,.63597,0,0],8850:[.13597,.63597,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.08333,.58333,0,0],8854:[.08333,.58333,0,0],8855:[.08333,.58333,0,0],8856:[.08333,.58333,0,0],8857:[.08333,.58333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8872:[.249,.75,0,0],8900:[-.05555,.44445,0,0],8901:[-.05555,.44445,0,0],8902:[-.03472,.46528,0,0],8904:[.005,.505,0,0],8942:[.03,.9,0,0],8943:[-.19,.31,0,0],8945:[-.1,.82,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.14236,.35764,0,0],8995:[-.14236,.35764,0,0],9136:[.244,.744,0,0],9137:[.244,.744,0,0],9651:[.19444,.69444,0,0],9657:[-.03472,.46528,0,0],9661:[.19444,.69444,0,0],9667:[-.03472,.46528,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10222:[.244,.744,0,0],10223:[.244,.744,0,0],10229:[.011,.511,0,0],10230:[.011,.511,0,0],10231:[.011,.511,0,0],10232:[.024,.525,0,0],10233:[.024,.525,0,0],10234:[.024,.525,0,0],10236:[.011,.511,0,0],10815:[0,.68333,0,0],10927:[.13597,.63597,0,0],10928:[.13597,.63597,0,0],57376:[.19444,.69444,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0],66:[0,.68611,.04835,0],67:[0,.68611,.06979,0],68:[0,.68611,.03194,0],69:[0,.68611,.05451,0],70:[0,.68611,.15972,0],71:[0,.68611,0,0],72:[0,.68611,.08229,0],73:[0,.68611,.07778,0],74:[0,.68611,.10069,0],75:[0,.68611,.06979,0],76:[0,.68611,0,0],77:[0,.68611,.11424,0],78:[0,.68611,.11424,0],79:[0,.68611,.03194,0],80:[0,.68611,.15972,0],81:[.19444,.68611,0,0],82:[0,.68611,.00421,0],83:[0,.68611,.05382,0],84:[0,.68611,.15972,0],85:[0,.68611,.11424,0],86:[0,.68611,.25555,0],87:[0,.68611,.15972,0],88:[0,.68611,.07778,0],89:[0,.68611,.25555,0],90:[0,.68611,.06979,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[.19444,.69444,.11042,0],103:[.19444,.44444,.03704,0],104:[0,.69444,0,0],105:[0,.69326,0,0],106:[.19444,.69326,.0622,0],107:[0,.69444,.01852,0],108:[0,.69444,.0088,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,.03704,0],114:[0,.44444,.03194,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.03704,0],119:[0,.44444,.02778,0],120:[0,.44444,0,0],121:[.19444,.44444,.03704,0],122:[0,.44444,.04213,0],915:[0,.68611,.15972,0],916:[0,.68611,0,0],920:[0,.68611,.03194,0],923:[0,.68611,0,0],926:[0,.68611,.07458,0],928:[0,.68611,.08229,0],931:[0,.68611,.05451,0],933:[0,.68611,.15972,0],934:[0,.68611,0,0],936:[0,.68611,.11653,0],937:[0,.68611,.04835,0],945:[0,.44444,0,0],946:[.19444,.69444,.03403,0],947:[.19444,.44444,.06389,0],948:[0,.69444,.03819,0],949:[0,.44444,0,0],950:[.19444,.69444,.06215,0],951:[.19444,.44444,.03704,0],952:[0,.69444,.03194,0],953:[0,.44444,0,0],954:[0,.44444,0,0],955:[0,.69444,0,0],956:[.19444,.44444,0,0],957:[0,.44444,.06898,0],958:[.19444,.69444,.03021,0],959:[0,.44444,0,0],960:[0,.44444,.03704,0],961:[.19444,.44444,0,0],962:[.09722,.44444,.07917,0],963:[0,.44444,.03704,0],964:[0,.44444,.13472,0],965:[0,.44444,.03704,0],966:[.19444,.44444,0,0],967:[.19444,.44444,0,0],968:[.19444,.69444,.03704,0],969:[0,.44444,.03704,0],977:[0,.69444,0,0],981:[.19444,.69444,0,0],982:[0,.44444,.03194,0],1009:[.19444,.44444,0,0],1013:[0,.44444,0,0]},"Math-Italic":{65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"SansSerif-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.11667,.61667,0,0],44:[.10556,.13056,0,0],45:[0,.45833,0,0],46:[0,.13056,0,0],47:[.25,.75,0,0],48:[0,.69444,0,0],49:[0,.69444,0,0],50:[0,.69444,0,0],51:[0,.69444,0,0],52:[0,.69444,0,0],53:[0,.69444,0,0],54:[0,.69444,0,0],55:[0,.69444,0,0],56:[0,.69444,0,0],57:[0,.69444,0,0],58:[0,.45833,0,0],59:[.10556,.45833,0,0],61:[-.09375,.40625,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.10556,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01528,0],87:[0,.69444,.01528,0],88:[0,.69444,0,0],89:[0,.69444,.0275,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.10833,.03056,0],97:[0,.45833,0,0],98:[0,.69444,0,0],99:[0,.45833,0,0],100:[0,.69444,0,0],101:[0,.45833,0,0],102:[0,.69444,.07639,0],103:[.19444,.45833,.01528,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.45833,0,0],110:[0,.45833,0,0],111:[0,.45833,0,0],112:[.19444,.45833,0,0],113:[.19444,.45833,0,0],114:[0,.45833,.01528,0],115:[0,.45833,0,0],116:[0,.58929,0,0],117:[0,.45833,0,0],118:[0,.45833,.01528,0],119:[0,.45833,.01528,0],120:[0,.45833,0,0],121:[.19444,.45833,.01528,0],122:[0,.45833,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],176:[0,.69444,0,0],180:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.45833,0,0],567:[.19444,.45833,0,0],710:[0,.69444,0,0],711:[0,.63542,0,0],713:[0,.63778,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.45833,.03056,0],8212:[0,.45833,.03056,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"SansSerif-Italic":{33:[0,.69444,.05733,0],34:[0,.69444,.00316,0],35:[.19444,.69444,.05087,0],36:[.05556,.75,.11156,0],37:[.05556,.75,.03126,0],38:[0,.69444,.03058,0],39:[0,.69444,.07816,0],40:[.25,.75,.13164,0],41:[.25,.75,.02536,0],42:[0,.75,.11775,0],43:[.08333,.58333,.02536,0],44:[.125,.08333,0,0],45:[0,.44444,.01946,0],46:[0,.08333,0,0],47:[.25,.75,.13164,0],48:[0,.65556,.11156,0],49:[0,.65556,.11156,0],50:[0,.65556,.11156,0],51:[0,.65556,.11156,0],52:[0,.65556,.11156,0],53:[0,.65556,.11156,0],54:[0,.65556,.11156,0],55:[0,.65556,.11156,0],56:[0,.65556,.11156,0],57:[0,.65556,.11156,0],58:[0,.44444,.02502,0],59:[.125,.44444,.02502,0],61:[-.13,.37,.05087,0],63:[0,.69444,.11809,0],64:[0,.69444,.07555,0],65:[0,.69444,0,0],66:[0,.69444,.08293,0],67:[0,.69444,.11983,0],68:[0,.69444,.07555,0],69:[0,.69444,.11983,0],70:[0,.69444,.13372,0],71:[0,.69444,.11983,0],72:[0,.69444,.08094,0],73:[0,.69444,.13372,0],74:[0,.69444,.08094,0],75:[0,.69444,.11983,0],76:[0,.69444,0,0],77:[0,.69444,.08094,0],78:[0,.69444,.08094,0],79:[0,.69444,.07555,0],80:[0,.69444,.08293,0],81:[.125,.69444,.07555,0],82:[0,.69444,.08293,0],83:[0,.69444,.09205,0],84:[0,.69444,.13372,0],85:[0,.69444,.08094,0],86:[0,.69444,.1615,0],87:[0,.69444,.1615,0],88:[0,.69444,.13372,0],89:[0,.69444,.17261,0],90:[0,.69444,.11983,0],91:[.25,.75,.15942,0],93:[.25,.75,.08719,0],94:[0,.69444,.0799,0],95:[.35,.09444,.08616,0],97:[0,.44444,.00981,0],98:[0,.69444,.03057,0],99:[0,.44444,.08336,0],100:[0,.69444,.09483,0],101:[0,.44444,.06778,0],102:[0,.69444,.21705,0],103:[.19444,.44444,.10836,0],104:[0,.69444,.01778,0],105:[0,.67937,.09718,0],106:[.19444,.67937,.09162,0],107:[0,.69444,.08336,0],108:[0,.69444,.09483,0],109:[0,.44444,.01778,0],110:[0,.44444,.01778,0],111:[0,.44444,.06613,0],112:[.19444,.44444,.0389,0],113:[.19444,.44444,.04169,0],114:[0,.44444,.10836,0],115:[0,.44444,.0778,0],116:[0,.57143,.07225,0],117:[0,.44444,.04169,0],118:[0,.44444,.10836,0],119:[0,.44444,.10836,0],120:[0,.44444,.09169,0],121:[.19444,.44444,.10836,0],122:[0,.44444,.08752,0],126:[.35,.32659,.08826,0],168:[0,.67937,.06385,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,.04169,0],567:[.19444,.44444,.04169,0],710:[0,.69444,.0799,0],711:[0,.63194,.08432,0],713:[0,.60889,.08776,0],714:[0,.69444,.09205,0],715:[0,.69444,0,0],728:[0,.69444,.09483,0],729:[0,.67937,.07774,0],730:[0,.69444,0,0],732:[0,.67659,.08826,0],733:[0,.69444,.09205,0],915:[0,.69444,.13372,0],916:[0,.69444,0,0],920:[0,.69444,.07555,0],923:[0,.69444,0,0],926:[0,.69444,.12816,0],928:[0,.69444,.08094,0],931:[0,.69444,.11983,0],933:[0,.69444,.09031,0],934:[0,.69444,.04603,0],936:[0,.69444,.09031,0],937:[0,.69444,.08293,0],8211:[0,.44444,.08616,0],8212:[0,.44444,.08616,0],8216:[0,.69444,.07816,0],8217:[0,.69444,.07816,0],8220:[0,.69444,.14205,0],8221:[0,.69444,.00316,0]},"SansSerif-Regular":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.125,.08333,0,0],45:[0,.44444,0,0],46:[0,.08333,0,0],47:[.25,.75,0,0],48:[0,.65556,0,0],49:[0,.65556,0,0],50:[0,.65556,0,0],51:[0,.65556,0,0],52:[0,.65556,0,0],53:[0,.65556,0,0],54:[0,.65556,0,0],55:[0,.65556,0,0],56:[0,.65556,0,0],57:[0,.65556,0,0],58:[0,.44444,0,0],59:[.125,.44444,0,0],61:[-.13,.37,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.125,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01389,0],87:[0,.69444,.01389,0],88:[0,.69444,0,0],89:[0,.69444,.025,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.09444,.02778,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.06944,0],103:[.19444,.44444,.01389,0],104:[0,.69444,0,0],105:[0,.67937,0,0],106:[.19444,.67937,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,.01389,0],115:[0,.44444,0,0],116:[0,.57143,0,0],117:[0,.44444,0,0],118:[0,.44444,.01389,0],119:[0,.44444,.01389,0],120:[0,.44444,0,0],121:[.19444,.44444,.01389,0],122:[0,.44444,0,0],126:[.35,.32659,0,0],168:[0,.67937,0,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.60889,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.67937,0,0],730:[0,.69444,0,0],732:[0,.67659,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.44444,.02778,0],8212:[0,.44444,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"Script-Regular":{65:[0,.7,.22925,0],66:[0,.7,.04087,0],67:[0,.7,.1689,0],68:[0,.7,.09371,0],69:[0,.7,.18583,0],70:[0,.7,.13634,0],71:[0,.7,.17322,0],72:[0,.7,.29694,0],73:[0,.7,.19189,0],74:[.27778,.7,.19189,0],75:[0,.7,.31259,0],76:[0,.7,.19189,0],77:[0,.7,.15981,0],78:[0,.7,.3525,0],79:[0,.7,.08078,0],80:[0,.7,.08078,0],81:[0,.7,.03305,0],82:[0,.7,.06259,0],83:[0,.7,.19189,0],84:[0,.7,.29087,0],85:[0,.7,.25815,0],86:[0,.7,.27523,0],87:[0,.7,.27523,0],88:[0,.7,.26006,0],89:[0,.7,.2939,0],90:[0,.7,.24037,0]},"Size1-Regular":{40:[.35001,.85,0,0],41:[.35001,.85,0,0],47:[.35001,.85,0,0],91:[.35001,.85,0,0],92:[.35001,.85,0,0],93:[.35001,.85,0,0],123:[.35001,.85,0,0],125:[.35001,.85,0,0],710:[0,.72222,0,0],732:[0,.72222,0,0],770:[0,.72222,0,0],771:[0,.72222,0,0],8214:[-99e-5,.601,0,0],8593:[1e-5,.6,0,0],8595:[1e-5,.6,0,0],8657:[1e-5,.6,0,0],8659:[1e-5,.6,0,0],8719:[.25001,.75,0,0],8720:[.25001,.75,0,0],8721:[.25001,.75,0,0],8730:[.35001,.85,0,0],8739:[-.00599,.606,0,0],8741:[-.00599,.606,0,0],8747:[.30612,.805,.19445,0],8748:[.306,.805,.19445,0],8749:[.306,.805,.19445,0],8750:[.30612,.805,.19445,0],8896:[.25001,.75,0,0],8897:[.25001,.75,0,0],8898:[.25001,.75,0,0],8899:[.25001,.75,0,0],8968:[.35001,.85,0,0],8969:[.35001,.85,0,0],8970:[.35001,.85,0,0],8971:[.35001,.85,0,0],9168:[-99e-5,.601,0,0],10216:[.35001,.85,0,0],10217:[.35001,.85,0,0],10752:[.25001,.75,0,0],10753:[.25001,.75,0,0],10754:[.25001,.75,0,0],10756:[.25001,.75,0,0],10758:[.25001,.75,0,0]},"Size2-Regular":{40:[.65002,1.15,0,0],41:[.65002,1.15,0,0],47:[.65002,1.15,0,0],91:[.65002,1.15,0,0],92:[.65002,1.15,0,0],93:[.65002,1.15,0,0],123:[.65002,1.15,0,0],125:[.65002,1.15,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8719:[.55001,1.05,0,0],8720:[.55001,1.05,0,0],8721:[.55001,1.05,0,0],8730:[.65002,1.15,0,0],8747:[.86225,1.36,.44445,0],8748:[.862,1.36,.44445,0],8749:[.862,1.36,.44445,0],8750:[.86225,1.36,.44445,0],8896:[.55001,1.05,0,0],8897:[.55001,1.05,0,0],8898:[.55001,1.05,0,0],8899:[.55001,1.05,0,0],8968:[.65002,1.15,0,0],8969:[.65002,1.15,0,0],8970:[.65002,1.15,0,0],8971:[.65002,1.15,0,0],10216:[.65002,1.15,0,0],10217:[.65002,1.15,0,0],10752:[.55001,1.05,0,0],10753:[.55001,1.05,0,0],10754:[.55001,1.05,0,0],10756:[.55001,1.05,0,0],10758:[.55001,1.05,0,0]},"Size3-Regular":{40:[.95003,1.45,0,0],41:[.95003,1.45,0,0],47:[.95003,1.45,0,0],91:[.95003,1.45,0,0],92:[.95003,1.45,0,0],93:[.95003,1.45,0,0],123:[.95003,1.45,0,0],125:[.95003,1.45,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8730:[.95003,1.45,0,0],8968:[.95003,1.45,0,0],8969:[.95003,1.45,0,0],8970:[.95003,1.45,0,0],8971:[.95003,1.45,0,0],10216:[.95003,1.45,0,0],10217:[.95003,1.45,0,0]},"Size4-Regular":{40:[1.25003,1.75,0,0],41:[1.25003,1.75,0,0],47:[1.25003,1.75,0,0],91:[1.25003,1.75,0,0],92:[1.25003,1.75,0,0],93:[1.25003,1.75,0,0],123:[1.25003,1.75,0,0],125:[1.25003,1.75,0,0],710:[0,.825,0,0],732:[0,.825,0,0],770:[0,.825,0,0],771:[0,.825,0,0],8730:[1.25003,1.75,0,0],8968:[1.25003,1.75,0,0],8969:[1.25003,1.75,0,0],8970:[1.25003,1.75,0,0],8971:[1.25003,1.75,0,0],9115:[.64502,1.155,0,0],9116:[1e-5,.6,0,0],9117:[.64502,1.155,0,0],9118:[.64502,1.155,0,0],9119:[1e-5,.6,0,0],9120:[.64502,1.155,0,0],9121:[.64502,1.155,0,0],9122:[-99e-5,.601,0,0],9123:[.64502,1.155,0,0],9124:[.64502,1.155,0,0],9125:[-99e-5,.601,0,0],9126:[.64502,1.155,0,0],9127:[1e-5,.9,0,0],9128:[.65002,1.15,0,0],9129:[.90001,0,0,0],9130:[0,.3,0,0],9131:[1e-5,.9,0,0],9132:[.65002,1.15,0,0],9133:[.90001,0,0,0],9143:[.88502,.915,0,0],10216:[1.25003,1.75,0,0],10217:[1.25003,1.75,0,0],57344:[-.00499,.605,0,0],57345:[-.00499,.605,0,0],57680:[0,.12,0,0],57681:[0,.12,0,0],57682:[0,.12,0,0],57683:[0,.12,0,0]},"Typewriter-Regular":{32:[0,0,0,0],33:[0,.61111,0,0],34:[0,.61111,0,0],35:[0,.61111,0,0],36:[.08333,.69444,0,0],37:[.08333,.69444,0,0],38:[0,.61111,0,0],39:[0,.61111,0,0],40:[.08333,.69444,0,0],41:[.08333,.69444,0,0],42:[0,.52083,0,0],43:[-.08056,.53055,0,0],44:[.13889,.125,0,0],45:[-.08056,.53055,0,0],46:[0,.125,0,0],47:[.08333,.69444,0,0],48:[0,.61111,0,0],49:[0,.61111,0,0],50:[0,.61111,0,0],51:[0,.61111,0,0],52:[0,.61111,0,0],53:[0,.61111,0,0],54:[0,.61111,0,0],55:[0,.61111,0,0],56:[0,.61111,0,0],57:[0,.61111,0,0],58:[0,.43056,0,0],59:[.13889,.43056,0,0],60:[-.05556,.55556,0,0],61:[-.19549,.41562,0,0],62:[-.05556,.55556,0,0],63:[0,.61111,0,0],64:[0,.61111,0,0],65:[0,.61111,0,0],66:[0,.61111,0,0],67:[0,.61111,0,0],68:[0,.61111,0,0],69:[0,.61111,0,0],70:[0,.61111,0,0],71:[0,.61111,0,0],72:[0,.61111,0,0],73:[0,.61111,0,0],74:[0,.61111,0,0],75:[0,.61111,0,0],76:[0,.61111,0,0],77:[0,.61111,0,0],78:[0,.61111,0,0],79:[0,.61111,0,0],80:[0,.61111,0,0],81:[.13889,.61111,0,0],82:[0,.61111,0,0],83:[0,.61111,0,0],84:[0,.61111,0,0],85:[0,.61111,0,0],86:[0,.61111,0,0],87:[0,.61111,0,0],88:[0,.61111,0,0],89:[0,.61111,0,0],90:[0,.61111,0,0],91:[.08333,.69444,0,0],92:[.08333,.69444,0,0],93:[.08333,.69444,0,0],94:[0,.61111,0,0],95:[.09514,0,0,0],96:[0,.61111,0,0],97:[0,.43056,0,0],98:[0,.61111,0,0],99:[0,.43056,0,0],100:[0,.61111,0,0],101:[0,.43056,0,0],102:[0,.61111,0,0],103:[.22222,.43056,0,0],104:[0,.61111,0,0],105:[0,.61111,0,0],106:[.22222,.61111,0,0],107:[0,.61111,0,0],108:[0,.61111,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.22222,.43056,0,0],113:[.22222,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.55358,0,0],117:[0,.43056,0,0],118:[0,.43056,0,0],119:[0,.43056,0,0],120:[0,.43056,0,0],121:[.22222,.43056,0,0],122:[0,.43056,0,0],123:[.08333,.69444,0,0],124:[.08333,.69444,0,0],125:[.08333,.69444,0,0],126:[0,.61111,0,0],127:[0,.61111,0,0],160:[0,0,0,0],176:[0,.61111,0,0],184:[.19445,0,0,0],305:[0,.43056,0,0],567:[.22222,.43056,0,0],711:[0,.56597,0,0],713:[0,.56555,0,0],714:[0,.61111,0,0],715:[0,.61111,0,0],728:[0,.61111,0,0],730:[0,.61111,0,0],770:[0,.61111,0,0],771:[0,.61111,0,0],776:[0,.61111,0,0],915:[0,.61111,0,0],916:[0,.61111,0,0],920:[0,.61111,0,0],923:[0,.61111,0,0],926:[0,.61111,0,0],928:[0,.61111,0,0],931:[0,.61111,0,0],933:[0,.61111,0,0],934:[0,.61111,0,0],936:[0,.61111,0,0],937:[0,.61111,0,0],8216:[0,.61111,0,0],8217:[0,.61111,0,0],8242:[0,.61111,0,0],9251:[.11111,.21944,0,0]}};const a=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,o={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]},r=.04,s=.111,n=.166,l=.1,c={" ":" ","​":" ","Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"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 d(e,t){let o=e.charCodeAt(0);e[0]in c?o=c[e[0]].charCodeAt(0):a.test(e[0])&&(o=77);const r=i[t][o];return r?{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3]}:11034===o?{defaultMetrics:!0,depth:0,height:1,italic:0,skew:0}:{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0}}function m(e,t,i=NaN){if("string"==typeof e){const i=e.match(/([-+]?[0-9.]*)\s*([a-zA-Z]+)/);i?(e=parseFloat(i[1]),t=i[2].toLowerCase()):e=parseFloat(e)}const a={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:10,bp:1.00375,dd:1238/1157,pc:12,in:72.27,mu:10/18}[t]||1;if(isFinite(i)){const t=Math.pow(10,i);return Math.round(e/10*a*t)/t}return e/10*a}function p(e,t){return m(e,t)*(4/3)*10}class u{constructor(e,t,i,a){this.id=e,this.size=t,this.cramped=a,this.sizeMultiplier=i,this.metrics=Object.keys(o).reduce((e,t)=>({...e,[t]:o[t][this.size]}),{}),this.metrics.emPerEx=o.xHeight[this.size]/o.quad[this.size]}sup(){return h[[4,5,4,5,6,7,6,7][this.id]]}sub(){return h[[5,5,5,5,7,7,7,7][this.id]]}fracNum(){return h[[2,3,4,5,6,7,6,7][this.id]]}fracDen(){return h[[3,3,5,5,7,7,7,7][this.id]]}cramp(){return h[[1,1,3,3,5,5,7,7][this.id]]}cls(){return["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"][this.size]}adjustTo(e){let t=[["","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-textstyle displaystyle textstyle","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-scriptstyle textstyle displaystyle","reset-scriptstyle textstyle","","reset-scriptstyle scriptscriptstyle"],["reset-scriptscriptstyle textstyle displaystyle","reset-scriptscriptstyle textstyle","reset-scriptscriptstyle scriptstyle",""]][this.size][e.size];return t.length>0&&(t=" "+t),t}isTight(){return this.size>=2}}const h={0:new u(0,0,1,!1),1:new u(1,0,1,!0),2:new u(2,1,1,!1),3:new u(3,1,1,!0),4:new u(4,2,.7,!1),5:new u(5,2,.7,!0),6:new u(6,3,.5,!1),7:new u(7,3,.5,!0)};h.displaystyle=h[0],h.textstyle=h[2],h.scriptstyle=h[4],h.scriptscriptstyle=h[6];class f{constructor(e){var t,i,a,o,r,s;this.macros=null!==(t=e.macros)&&void 0!==t?t:{},this.atomIdsSettings=e.atomIdsSettings,this.mathstyle=null!==(i=e.mathstyle)&&void 0!==i?i:h.displaystyle,this.letterShapeStyle=null!==(a=e.letterShapeStyle)&&void 0!==a?a:"tex",this.size=null!==(o=e.size)&&void 0!==o?o:"size5",this.parentMathstyle=null!==(r=e.parentMathstyle)&&void 0!==r?r:this.mathstyle,this.parentSize=null!==(s=e.parentSize)&&void 0!==s?s:this.size,this.opacity=e.opacity,this.smartFence=e.smartFence}clone(e={}){const t=new f(this);return void 0!==e&&(Object.assign(t,e),e.mathstyle?(t.parentMathstyle=this.mathstyle,t.parentSize=this.size,"string"==typeof e.mathstyle&&(t.mathstyle=h[e.mathstyle])):t.mathstyle=this.mathstyle),t}setMathstyle(e){e&&"auto"!==e&&(this.mathstyle=h[e])}cramp(){return this.clone({mathstyle:this.mathstyle.cramp()})}sup(){return this.clone({mathstyle:this.mathstyle.sup()})}sub(){return this.clone({mathstyle:this.mathstyle.sub()})}}const g={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"],xleftarrow:[["leftarrow"],1.469,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"],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]},y={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34]},b={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",widetilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",widetilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",widetilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",widetilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};function v(e,t){const i=[];let a,o=[];return e.forEach(e=>{if("first"!==e.type){let r;"variant"===t?(r=e.variant,e.variantStyle&&"up"!==e.variantStyle&&(r+="-"+e.variantStyle)):r=e[t],r!==a?(o.length>0&&i.push(o),o=[e],a=r):o.push(e)}}),o.length>0&&i.push(o),i}const x={};function k(e,t){x[e]={...t}}const _=["","mord","mbin","mop","mrel","mopen","mclose","mpunct","minner","spacing","first","command","error","placeholder","textord","none"];function w(e){return _.includes(e)}const M={"mord+mop":3,"mord+mbin":4,"mord+mrel":5,"mord+minner":3,"mop+mord":3,"mop+mop":3,"mop+mbin":5,"mop+minner":3,"mbin+mord":4,"mbin+mop":4,"mbin+mopen":4,"mbin+minner":4,"mrel+mord":5,"mrel+mop":5,"mrel+mopen":5,"mrel+minner":5,"mclose+mop":3,"mclose+mbin":4,"mclose+mrel":5,"mclose+minner":3,"mpunct+mord":3,"mpunct+mop":3,"mpunct+mbin":4,"mpunct+mrel":5,"mpunct+mopen":3,"mpunct+mpunct":3,"mpunct+minner":3},z={"mord+mop":3,"mop+mord":3,"mop+mop":3,"mclose+mop":3,"minner+mop":3};function S(e){if("string"==typeof e)return e;if("number"==typeof e)return Number(Math.ceil(100*e)/100).toString();if(void 0===e)return"";if(t(e)){let t="";for(const i of e)t+=S(i);return t}return""}class L{constructor(e,i="",a=""){this.classes=i,t(e)?this.children=[].concat(...e):"string"==typeof e?this.body=e:e&&"object"==typeof e&&(this.children=[e]),this.type=a,this.style=null,this.updateDimensions()}updateDimensions(){let e=0,t=0,i=1;this.children?this.children.forEach(a=>{a.height>e&&(e=a.height),a.depth>t&&(t=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}):"string"==typeof this.body&&(e=1.2,t=0),this.height=e,this.depth=t,this.maxFontSize=i}selected(e){e&&!/ML__selected/.test(this.classes)&&(this.classes.length>0&&(this.classes+=" "),this.classes+="ML__selected"),!e&&/ML__selected/.test(this.classes)&&(this.classes=this.classes.replace("ML__selected","")),this.children&&this.children.forEach(t=>t.selected(e))}applyStyle(e){if(!e)return;if(e.color&&("none"!==e.color?this.setStyle("color",e.color):this.setStyle("color","")),e.backgroundColor&&("none"!==e.backgroundColor?this.setStyle("background-color",e.backgroundColor):this.setStyle("background-color","")),e.cssClass&&(this.classes+=" "+e.cssClass),!this.body)return;const t=function(e,t){var i;return(null===(i=x[t.mode])||void 0===i?void 0:i.applyStyle)?x[t.mode].applyStyle(e,t):""}(this,e);if(this.body&&t){this.maxFontSize={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49}[e.fontSize]||1,this.height=0,this.depth=0,this.skew=0,this.italic=0;for(let e=0;e0&&(this.style||(this.style={}),this.style[e]=i)}setTop(e){e&&0!==e&&(this.style||(this.style={}),this.style.top=S(e)+"em",this.height-=e,this.depth+=e)}setLeft(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-left"]=S(e)+"em")}setRight(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-right"]=S(e)+"em")}setWidth(e){e&&0!==e&&(this.style||(this.style={}),this.style.width=S(e)+"em")}toMarkup(e=1,t=1){var i,a,o,r,s;let n="",l=this.body||"";if(this.children){let e="none";for(let o=0;o`${e}="${this.attributes[e]}"`).join(" "));const t=this.classes.split(" ");t.push(null!==(o={command:"ML__command",placeholder:"ML__placeholder",error:"ML__error"}[this.type])&&void 0!==o?o:""),this.caret&&"command"===this.type&&t.push("ML__command-caret");let i="";if(i=t.length>1?t.filter((e,t,i)=>e.length>0&&i.indexOf(e)===t).join(" "):t[0],i.length>0&&(n+=` class="${i}"`),e&&((null===(r=this.style)||void 0===r?void 0:r["margin-left"])?this.style["margin-left"]=S(parseFloat(this.style["margin-left"])+e/18)+"em":(this.style||(this.style={}),this.style["margin-left"]=S(e/18)+"em")),this.style){let e="";const t=/ML__selected/.test(this.classes);for(const i in this.style)Object.prototype.hasOwnProperty.call(this.style,i)&&("background-color"===i&&t||(e+=i+":"+this.style[i]+";"));e.length>0&&(n+=' style="'+e+'"')}n+=">",this.svgBody?n+=function(e){if(y[e]){const t=y[e][2];return``}const[t,i,a,o]=g[e];let r,s;const n=a/1e3;3===t.length?(r=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],s=["xMinYMin","xMidYMin","xMaxYMin"]):2===t.length?(r=["slice-1-of-2","slice-2-of-2"],s=["xMinYMin","xMaxYMin"]):(r=["slice-1-of-1"],s=[o]);const l=t.map((e,t)=>``).join("");return`${l}`}(this.svgBody):this.svgOverlay?(n+='",n+=""):n+=l,n+=""}else n="";return this.caret&&"command"!==this.type&&("text"===this.caret?n+='':n+=''),n}tryCoalesceWith(e){if(this.type!==e.type)return!1;if("error"===this.type||"placeholder"===this.type||"command"===this.type)return!1;if(this.svgBody||!this.body)return!1;if(e.svgBody||!e.body)return!1;const t=this.children&&this.children.length>0,i=e.children&&e.children.length>0;if(t||i)return!1;if((this.style?this.style.length:0)!==(e.style?e.style.length:0))return!1;const a=this.classes.trim().replace(/\s+/g," ").split(" "),o=e.classes.trim().replace(/\s+/g," ").split(" ");if(a.length!==o.length)return!1;a.sort(),o.sort();for(let e=0;e=e.length)return"none";const n=null!==(a=null===(i=e[t-1])||void 0===i?void 0:i.type)&&void 0!==a?a:"none",l=null!==(r=null===(o=e[t+1])||void 0===o?void 0:o.type)&&void 0!==r?r:"none";let c=null!==(s=e[t].type)&&void 0!==s?s:"none";return"first"===c?"none":"textord"===c?"mord":("mbin"===c&&(/first|none|mrel|mpunct|mopen|mbin|mop/.test(n)||/none|mrel|mpunct|mclose/.test(l))&&(c="mord"),c)}function C(e){return e?t(e)?e.reduce((e,t)=>Math.max(e,t.height),0):e.height:0}function $(e){return e?t(e)?e.reduce((e,t)=>Math.max(e,t.depth),0):e.depth:0}function q(e){return e?t(e)?e[e.length-1].italic:e.italic:0}function D(e,i="",a=""){if(t(e)){const t=e.filter(e=>Boolean(e));return 1===t.length?new L(t[0],i,a):new L(t,i,a)}return new L(e,i,a)}function T(e,t,i="",a=""){const o=new L(t,i,a),r=d(t,e);return o.height=r.height,o.depth=r.depth,o.skew=r.skew,o.italic=r.italic,o.setRight(o.italic),o}function K(e,i="",a=""){const o=D("","ML__strut");let r,s;return o.setStyle("height",C(e),"em"),0!==$(e)&&(r=D("","ML__strut--bottom"),r.setStyle("height",C(e)+$(e),"em"),r.setStyle("vertical-align",-$(e),"em")),s=t(e)?[o,r,...e]:[o,r,e],D(s,i,a)}function E(e,t,i,a,o){o=o||"";const r=N(t,(o+=" style-wrap ")+i.adjustTo(a));r.type=e;const s=a.sizeMultiplier/i.sizeMultiplier;return r.height*=s,r.depth*=s,r.maxFontSize=a.sizeMultiplier,r}function N(e,t="",i=""){const a=new L(e,t,i);let o=1;return o=e instanceof L?e.maxFontSize:e.reduce((e,t)=>Math.max(e,t.maxFontSize),o),a.height*=o,a.depth*=o,a}function B(e,i,a="shift",o=0){let r=0,s=0;a=a||"shift";for(let e=0;e0?"em":""),a.attributes={"aria-hidden":"true"}),"size5"!==e.size?new L(a,"fontsize-ensurer reset-"+e.size+" size5"):0!==i?a:null}(e,n),c=[];s=r;for(const e of i)if("number"==typeof e)s+=e;else if(e instanceof L){const t=D([l,e]);t.setTop(-e.depth-s),c.push(t),s+=e.height+e.depth}const d=D(c,"vlist");return d.depth=Math.max(r,$(d)||0),d.height=Math.max(-s,C(d)||0),d}function O(e){const t=new L(null);return t.svgBody=e,t.height=function(e){return g[e]?g[e][2]/1e3:y[e][2]}(e)/2,t.depth=t.height,t}const F={},P={"<":"<",">":">",o:"o","&":"\\&","{":"\\{","}":"\\}","[":"\\lbrack","]":"\\rbrack",":":"\\colon"," ":"~","¬":"\\neg","·":"\\cdot","¼":"\\frac{1}{4}","½":"\\frac{1}{2}","¾":"\\frac{3}{4}","⁰":"^{0}","ⁱ":"^{i}","¹":"^{1}","²":"^{2}","³":"^{3}","†":"\\dagger","‡":"\\ddagger","…":"\\ldots","⁴":"^{4}","⁵":"^{5}","⁶":"^{6}","⁷":"^{7}","⁸":"^{8}","⁹":"^{9}","⁺":"^{+}","⁻":"^{-}","⁼":"^{=}","ⁿ":"^{n}","₀":"_{0}","₁":"_{1}","₂":"_{2}","₃":"_{3}","₄":"_{4}","₅":"_{5}","₆":"_{6}","₇":"_{7}","₈":"_{8}","₉":"_{9}","₊":"_{+}","₋":"_{-}","₌":"_{=}","ₐ":"_{a}","ₑ":"_{e}","ₒ":"_{o}","ₓ":"_{x}","′":"\\prime","'":"\\prime","←":"\\gets","→":"\\to","△":"\\triangle","▽":"\\triangledown","∋":"\\owns","∗":"\\ast","∣":"\\vert","∥":"\\Vert","∧":"\\land","∨":"\\lor","⋅":"\\cdot","⋈":"\\bowtie","≠":"\\ne","≤":"\\le","≥":"\\ge","⊥":"\\bot","⟷":"\\biconditional","⟸":"\\impliedby","⟹":"\\implies","ℂ":"\\C","ℕ":"\\N","ℙ":"\\P","ℚ":"\\Q","ℝ":"\\R","ℤ":"\\Z"},R={},I={},H={iff:"\\;⟺\\;",nicefrac:"^{#1}\\!\\!/\\!_{#2}",bra:"\\mathinner{\\langle{#1}|}",ket:"\\mathinner{|{#1}\\rangle}",braket:"\\mathinner{\\langle{#1}\\rangle}",set:"\\mathinner{\\lbrace #1 \\rbrace}",Bra:"\\left\\langle #1\\right|",Ket:"\\left|#1\\right\\rangle",Braket:"\\left\\langle{#1}\\right\\rangle",Set:"\\left\\lbrace #1 \\right\\rbrace",rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}"},V={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},W={"\\#":"#","\\&":"&","\\$":"$","\\%":"%","\\_":"_","\\euro":"€","\\maltese":"✠","\\{":"{","\\}":"}","\\nobreakspace":" ","\\ldots":"…","\\textellipsis":"…","\\backslash":"\\","`":"‘","'":"’","``":"“","''":"”","\\degree":"°","\\textasciicircum":"^","\\textasciitilde":"~","\\textasteriskcentered":"*","\\textbackslash":"\\","\\textbraceleft":"{","\\textbraceright":"}","\\textbullet":"•","\\textdollar":"$","\\textsterling":"£","\\textdagger":"†","\\textdaggerdbl":"‡","–":"–","—":"—","‘":"‘","’":"’","“":"“","”":"”",'"':"”","\\ss":"ß","\\ae":"æ","\\oe":"œ","\\AE":"Æ","\\OE":"Œ","\\O":"Ø","\\i":"ı","\\j":"ȷ","\\aa":"å","\\AA":"Å"},U=/[a-zA-Z0-9!@*()-=+{}[\]\\';:?/.,~<>`|'$%#&^_" ]/,j="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("\\p{Letter}","u"),X="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[0-9a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("[0-9\\p{Letter}]","u");function G(e,t,i="mord",a=""){F[e]={type:i,variant:a,value:t},P[t]||a||(P[t]=e),W[e]=t}function Z(e,t){for(let i=e;i<=t;i++){const e=String.fromCodePoint(i);G(e,e)}}function Y(e,t){if("math"===e)return P[t]||t;if("text"===e){let e=Object.keys(W).find(e=>W[e]===t);if(!e){const i=t.codePointAt(0).toString(16);e="^".repeat(i.length)+i}return e}return t}const J={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Q=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function ee(e,t,i){if(!/[A-Za-z0-9]/.test(e))return e;if(!t&&!i)return e;const a=e.codePointAt(0);for(let e=0;e=Q[e].offset&&a120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const i in J)if(Object.prototype.hasOwnProperty.call(J,i)&&J[i]===e){e=null!==(t=i.codePointAt(0))&&void 0!==t?t:0;break}for(let t=0;t=Q[t].start&&e=1;)a.params.push({isOptional:!1,type:"math"}),o-=1}}}else"math"===t?a=F[e]:W[e]?a={value:W[e]}:"text"===t&&(a={value:e});return!a||"mord"!==a.type||"f"!==a.value&&"g"!==a.value&&"h"!==a.value||(a.isFunction=!0),a}function ne(e){if(e.length<=1)return[];const t=[];for(const i in R)Object.prototype.hasOwnProperty.call(R,i)&&i.startsWith(e)&&!R[i].infix&&t.push({match:i,frequency:R[i].frequency});for(const i in F)Object.prototype.hasOwnProperty.call(F,i)&&i.startsWith(e)&&t.push({match:i,frequency:F[i].frequency});return t.sort((e,t)=>e.frequency===t.frequency?e.match.length-t.match.length:(t.frequency||0)-(e.frequency||0)),t}function le(e){let t="auto";const i=e.match(/:([^=]+)/);return i&&(t=i[1].trim()),t}function ce(e){if(!e)return[];let t=[],i=e.split("]");if("["===i[0].charAt(0)){t.push({isOptional:!0,type:le(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(ce(i[e]))}else if(i=e.split("}"),"{"===i[0].charAt(0)){t.push({isOptional:!1,type:le(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(ce(i[e]))}return t}function de(e){let t="",i=!0;return e.forEach(e=>{"string"==typeof e.body?t+=e.body:i=!1}),i?t:""}function me(e,t,i,a=!1){"string"==typeof e&&(e=[e]);const o={tabular:a,params:ce(t),parser:i};for(const t of e)I[t]=o}function pe(e,t,i){me(e,t,i,!0)}function ue(e,t,i,a,o){"string"==typeof e&&(e=[e]),i||(i={});const r={params:ce(t),mode:i.mode,infix:Boolean(i.infix),parse:a,emit:o};e.forEach(e=>{R["\\"+e]=r})}const he={acute:"ˊ",grave:"ˋ",dot:"˙",ddot:"¨",mathring:"˚",tilde:"~",bar:"ˉ",breve:"˘",check:"ˇ",hat:"^",vec:"⃗"};ue(Object.keys(he),"{body:auto}",null,(function(e,t){return{type:"accent",accent:he[e.slice(1)],limits:"accent",skipBoundary:!0,body:t[0]}})),ue(["widehat","widecheck","widetilde"],"{body:auto}",null,(e,t)=>{const i=de(t[0]);return{type:"accent",svgAccent:e.slice(1)+(i.length>5?"4":["1","1","2","2","3","3"][i.length]),limits:"accent",skipBoundary:!0,body:t[0]}}),ue("utilde","{body:auto}",null,(e,t)=>{const i=de(t[0]),a="widetilde"+(i.length>5?"4":["1","1","2","2","3","3"][i.length]);return{type:"overunder",body:t[0],svgBelow:a,skipBoundary:!0}},(e,t,i,a)=>`\\utilde{${a(i,i.body)}}`),ue("^","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"}[t[0]]||"^"})),ue("`","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"}[t[0]]||"`"})),ue("'","{:string}",{},(function(e,t){return{type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"á",e:"é",i:"í",o:"ó",u:"ú",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú"}[t[0]]||"^"}})),ue("~","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{n:"ñ",N:"Ñ",a:"ã",o:"õ",A:"Ã",O:"Õ"}[t[0]]||"´"})),ue("c","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{c:"ç",C:"Ç"}[t[0]]||""})),ue("enclose","{notation:string}[style:string]{body:auto}",null,(e,t)=>{var i;const a={type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"auto",captureSelection:!0,body:t[2]};if(t[1]){const e=t[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of e){const e=t.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(e)a.strokeWidth=p(e[1],"px"),isFinite(a.strokeWidth)||(a.strokeWidth=1),a.strokeStyle=e[2],a.strokeColor=e[3];else{const e=t.match(/\s*([a-z]*)\s*=\s*"(.*)"/);e&&("mathbackground"===e[1]?a.backgroundcolor=e[2]:"mathcolor"===e[1]?a.strokeColor=e[2]:"padding"===e[1]?a.padding=p(e[2],"px"):"shadow"===e[1]&&(a.shadow=e[2]))}}"dashed"===a.strokeStyle?a.svgStrokeStyle="5,5":"dotted"===a.strokeStyle&&(a.svgStrokeStyle="1,5")}return a.borderStyle=a.strokeWidth+"px "+a.strokeStyle+" "+a.strokeColor,a.notation={},(null!==(i=t[0])&&void 0!==i?i:"").split(/[, ]/).filter(e=>e.length>0).forEach(e=>{a.notation[e.toLowerCase()]=!0}),a.notation.updiagonalarrow&&(a.notation.updiagonalstrike=!1),a.notation.box&&(a.notation.left=!1,a.notation.right=!1,a.notation.bottom=!1,a.notation.top=!1),a}),ue("cancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0},body:t[0]}})),ue("bcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{downdiagonalstrike:!0},body:t[0]}})),ue("xcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0,downdiagonalstrike:!0},body:t[0]}})),me("math","",()=>({mathstyle:"textstyle"})),me("displaymath","",(function(){return{mathstyle:"displaystyle"}})),pe("array","{columns:colspec}",(e,t)=>({colFormat:t[0],mathstyle:"textstyle"})),pe(["equation","equation","subequations"],"",()=>({colFormat:[{align:"c"}]})),pe("multline","",(function(){return{colFormat:[{align:"m"}]}})),pe(["align","align*","aligned","eqnarray"],"",(e,t,i)=>{let a=0;for(const e of i)a=Math.max(a,e.length);const o=[{gap:0},{align:"r"},{gap:0},{align:"l"}];let r=2;for(;r({colFormat:[{align:"r"},{align:"l"}]})),pe(["gather","gathered"],"",()=>({colFormat:[{gap:.25},{align:"c"},{gap:0}],jot:.3})),pe(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","smallmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*","smallmatrix*"],"[columns:colspec]",(e,t)=>{var i;const a={mathstyle:"textstyle"};switch(e){case"pmatrix":case"pmatrix*":a.leftDelim="(",a.rightDelim=")";break;case"bmatrix":case"bmatrix*":a.leftDelim="[",a.rightDelim="]";break;case"Bmatrix":case"Bmatrix*":a.leftDelim="\\lbrace",a.rightDelim="\\rbrace";break;case"vmatrix":case"vmatrix*":a.leftDelim="\\vert",a.rightDelim="\\vert";break;case"Vmatrix":case"Vmatrix*":a.leftDelim="\\Vert",a.rightDelim="\\Vert";break;case"smallmatrix":case"smallmatrix*":a.mathstyle="scriptstyle";break;case"matrix":case"matrix*":a.leftDelim=".",a.rightDelim="."}return a.colFormat=null!==(i=t[0])&&void 0!==i?i:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}],a}),pe("cases","",()=>({arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",colFormat:[{align:"l"},{gap:1},{align:"l"}]})),me("center","",(function(){return{colFormat:[{align:"c"}]}})),ue(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overbrace","overlinesegment","overgroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgAbove:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),ue(["underrightarrow","underleftarrow","underleftrightarrow","underbrace","underlinesegment","undergroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgBelow:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),ue(["xrightarrow","xleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","xLeftrightarrow","xrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xrightleftarrows","xrightequilibrium","xleftequilibrium"],"[:auto]{:auto}",null,(e,t)=>{let i=t[1];return 0===(null==i?void 0:i.length)&&(i=null),{type:"overunder",mathtype:"mrel",svgBody:e.slice(1),overscript:i,underscript:t[0]}},(e,t,i,a)=>e+(void 0!==i.underscript?`[${a(i,i.underscript)}]`:"")+`{${a(i,i.overscript)}}`),ue(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","coth","ctg","cth","cotg","csc","cosec","deg","dim","exp","hom","inf","ker","lg","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main",variantStyle:"up"}})),ue(["liminf","limsup"],"",null,e=>({type:"mop",limits:"limits",isSymbol:!1,body:{"\\liminf":"lim inf","\\limsup":"lim sup"}[e],variant:"main"})),ue(["lim","mod"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,body:e.slice(1),variant:"main"}})),ue(["det","max","min"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main"}})),ue("sqrt","[index:auto]{radicand:auto}",null,(e,t)=>({type:"surd",body:t[1],index:t[0]}),(e,t,i,a)=>{let o="";return void 0!==i.index&&(o+=`[${a(i,i.index)}]`),o+=`{${a(i,i.body)}}`,e+o}),ue(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{numerator}{denominator}",null,(e,t)=>{const i={type:"genfrac",numer:t[0],denom:t[1],mathstyle:"auto"};switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":case"\\cfrac":i.hasBarLine=!0;break;case"\\\\atopfrac":i.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i.hasBarLine=!1,i.leftDelim="(",i.rightDelim=")"}switch(e){case"\\dfrac":case"\\dbinom":i.mathstyle="displaystyle";break;case"\\tfrac":case"\\tbinom":i.mathstyle="textstyle"}return"\\cfrac"===e&&(i.continuousFraction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),ue(["over","atop","choose"],"",{infix:!0},(e,t)=>{const i=t[0],a=t[1];let o=!1,r=null,s=null;switch(e){case"\\atop":break;case"\\over":o=!0;break;case"\\choose":o=!1,r="(",s=")";break;default:throw new Error("Unrecognized genfrac command")}return{type:"genfrac",numer:i,denom:a,hasBarLine:o,leftDelim:r,rightDelim:s,mathstyle:"auto"}},(e,t,i,a)=>`{${a(i,i.numer)}${e} ${a(i,i.denom)}}`),ue("pdiff","{numerator}{denominator}",null,(e,t)=>({type:"genfrac",numer:t[0],denom:t[1],numerPrefix:"∂",denomPrefix:"∂",hasBarLine:!0,leftDelim:null,rightDelim:null,mathstyle:"auto"}),(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),ue(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","smallint","intop"],"",null,e=>({type:"mop",limits:"auto",isSymbol:!0,variant:"main",body:{coprod:"∐",bigvee:"⋁",bigwedge:"⋀",biguplus:"⨄",bigcap:"⋂",bigcup:"⋃",intop:"∫",prod:"∏",sum:"∑",bigotimes:"⨂",bigoplus:"⨁",bigodot:"⨀",bigsqcup:"⨆",smallint:"∫"}[e.slice(1)]}));const fe={int:"∫",iint:"∬",iiint:"∭",oint:"∮",oiint:"∯",oiiint:"∰",intclockwise:"∱",varointclockwise:"∲",ointctrclockwise:"∳",intctrclockwise:"⨑",sqcup:"⊔",sqcap:"⊓",uplus:"⊎",wr:"≀",amalg:"⨿",Cap:"⋒",Cup:"⋓",doublecap:"⋒",doublecup:"⋓"};ue(Object.keys(fe),"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!0,body:fe[e.slice(1)],variant:{"⋒":"ams","⋓":"ams"}[fe[e.slice(1)]]}})),ue(["Re","Im"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:{"\\Re":"ℜ","\\Im":"ℑ"}[e],variant:"fraktur"}})),ue("middle","{:delim}",null,(function(e,t){return{type:"delim",delim:t[0]}}));const ge={m0:"#3f3d99",m1:"#993d71",m2:"#998b3d",m3:"#3d9956",m4:"#3d5a99",m5:"#993d90",m6:"#996d3d",m7:"#43993d",m8:"#3d7999",m9:"#843d99"},ye=["#d35d60","#7293cb","#e1974d","#84bb5d","#9066a7","#aD6a58","#f5a4ce","#fff590","#212121","#818787","#d4d5d2","#ffffff"],be=["#cc2428","#3769b1","#da7e30","#409852","#6b4c9a","#922426","#e7298a","#ffe907","#000000","#525055","#adafaa","#ffffff"],ve={apricot:"#FBB982",aquamarine:"#00B5BE",bittersweet:"#C04F17",black:"#221E1F",blue:"#2D2F92",bluegreen:"#00B3B8",blueviolet:"#473992",brickred:"#B6321C",brown:"#792500",burntorange:"#F7921D",cadetblue:"#74729A",carnationpink:"#F282B4",cerulean:"#00A2E3",cornflowerblue:"#41B0E4",cyan:"#00AEEF",dandelion:"#FDBC42",darkorchid:"#A4538A",emerald:"#00A99D",forestgreen:"#009B55",fuchsia:"#8C368C",goldenrod:"#FFDF42",gray:"#949698",green:"#00A64F",greenyellow:"#DFE674",junglegreen:"#00A99A",lavender:"#F49EC4",limegreen:"#8DC73E",magenta:"#EC008C",mahogany:"#A9341F",maroon:"#AF3235",melon:"#F89E7B",midnightblue:"#006795",mulberry:"#A93C93",navyblue:"#006EB8",olivegreen:"#3C8031",orange:"#F58137",orangered:"#ED135A",orchid:"#AF72B0",peach:"#F7965A",periwinkle:"#7977B8",pinegreen:"#008B72",plum:"#92268F",processblue:"#00B0F0",purple:"#99479B",rawsienna:"#974006",red:"#ED1B23",redorange:"#F26035",redviolet:"#A1246B",rhodamine:"#EF559F",royalblue:"#0071BC",royalpurple:"#613F99",rubinered:"#ED017D",salmon:"#F69289",seagreen:"#3FBC9D",sepia:"#671800",skyblue:"#46C5DD",springgreen:"#C6DC67",tan:"#DA9D76",tealblue:"#00AEB3",thistle:"#D883B7",turquoise:"#00B4CE",violet:"#58429B",violetred:"#EF58A0",white:"#FFFFFF",wildstrawberry:"#EE2967",yellow:"#FFF200",yellowgreen:"#98CC70",yelloworange:"#FAA21A"};function xe(e){var t;const i=e.toLowerCase().split("!");let a,o,r,s=255,n=255,l=255,c=-1;const d=i.length>0&&"-"===i[0].charAt(0);d&&(i[0]=i[0].slice(1));for(let e=0;e=0&&(s=(1-c)*s+c*a,n=(1-c)*n+c*o,l=(1-c)*l+c*r,c=-1),e+1=0&&(s=c*s+(1-c)*a,n=c*n+(1-c)*o,l=c*l+(1-c)*r),d&&(s=255-s,n=255-n,l=255-l),"#"+("00"+Math.round(s).toString(16)).slice(-2)+("00"+Math.round(n).toString(16)).slice(-2)+("00"+Math.round(l).toString(16)).slice(-2)}function ke(e){let t=e.toUpperCase();for(const e in ve)if(ve[e]===t){t=e;break}for(const e in ge)if(ge[e]===t){t=e;break}return t}ue("ensuremath","{:math}",{},(e,t)=>({type:"group",mode:"math",body:t[0],skipBoundary:!0,latexOpen:"\\ensuremath{",latexClose:"}"}),(e,t,i,a)=>a(i,i.body)),ue("color","{:color}",{},(e,t)=>({color:t[0]})),ue("textcolor","{:color}{content:auto*}",{},(e,t)=>({color:t[0]})),ue("boxed","{content:math}",null,(e,t)=>({type:"box",framecolor:"black",skipBoundary:!0,body:t[0]})),ue("colorbox","{background-color:string}{content:auto}",{},(e,t)=>({type:"box",backgroundcolor:xe(t[0]),skipBoundary:!0,body:t[1],verbatimBackgroundcolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimBackgroundcolor||ke(i.backgroundcolor)}}{${a(i,i.body)}}`),ue("fcolorbox","{frame-color:string}{background-color:string}{content:auto}",{},(e,t)=>({type:"box",framecolor:xe(t[0]),backgroundcolor:xe(t[1]),skipBoundary:!0,body:t[2],verbatimBackgroundcolor:t[1],verbatimFramecolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimFramecolor||ke(i.framecolor)}{${i.verbatimBackgroundcolor||ke(i.backgroundcolor)}}{${a(i,i.body)}}`),ue("bbox","[:bbox]{body:auto}",{},(e,t)=>{if(t[0]){const e=t[0];return{type:"box",padding:e.padding,border:e.border,backgroundcolor:e.backgroundcolor,skipBoundary:!0,body:t[1]}}return{type:"box",skipBoundary:!0,body:t[1]}},(e,t,i,a)=>{let o=e;if(isFinite(i.padding)||void 0!==i.border||void 0!==i.backgroundcolor){const e=[];isFinite(i.padding)&&e.push(Math.floor(100*i.padding)/100+"em"),i.border&&e.push("border:"+i.border),i.backgroundcolor&&e.push(ke(i.backgroundcolor)),o+=`[${e.join(",")}]`}return o+`{${a(i,i.body)}}`}),ue(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"",{},(e,t)=>({mathstyle:e.slice(1)})),ue(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{mode:"text"},(e,t)=>({fontSize:{tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[e.slice(1)]})),ue("fontseries","{:string}",{mode:"text"},(e,t)=>({fontSeries:t[0]})),ue("fontshape","{:string}",{mode:"text"},(e,t)=>({fontShape:t[0]})),ue("fontfamily","{:string}",{mode:"text"},(e,t)=>({fontFamily:t[0]})),ue("selectfont","",{mode:"text"},(e,t)=>({})),ue("bf","",{},(e,t)=>({fontSeries:"b",fontShape:"n",fontFamily:"cmr"})),ue(["boldsymbol","bm"],"{:math*}",{},(e,t)=>({mode:"math",cssClass:"ML__boldsymbol"})),ue("bold","{:math*}",{},(e,t)=>({mode:"math",variantStyle:"bold"})),ue("bfseries","",{mode:"text"},(e,t)=>({fontSeries:"b"})),ue("mdseries","",{mode:"text"},(e,t)=>({fontSeries:"m"})),ue("upshape","",{mode:"text"},(e,t)=>({fontShape:"n"})),ue("slshape","",{mode:"text"},(e,t)=>({fontShape:"sl"})),ue("scshape","",{mode:"text"},(e,t)=>({fontShape:"sc"})),ue("textbf","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"b"})),ue("textmd","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"m"})),ue("textup","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n"})),ue("textnormal","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n",fontSeries:"m"})),ue("textsl","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sl"})),ue("textit","{:text*}",{},(e,t)=>({mode:"text",fontShape:"it"})),ue("textsc","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sc"})),ue("textrm","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"roman"})),ue("textsf","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"sans-serif"})),ue("texttt","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"monospace"})),ue("mathbf","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bold"})),ue("mathit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"italic"})),ue("mathbfit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bolditalic"})),ue("mathrm","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"up"})),ue("mathsf","{:math*}",{},(e,t)=>({mode:"math",variant:"sans-serif",variantStyle:"up"})),ue("mathtt","{:math*}",{},(e,t)=>({mode:"math",variant:"monospace",variantStyle:"up"})),ue("it","",{},(e,t)=>({fontSeries:"m",fontShape:"it",fontFamily:"cmr",variantStyle:"italic"})),ue("rmfamily","",{},(e,t)=>({fontFamily:"roman"})),ue("sffamily","",{},(e,t)=>({fontFamily:"sans-serif"})),ue("ttfamily","",{},(e,t)=>({fontFamily:"monospace"})),ue(["Bbb","mathbb"],"{:math*}",{},(e,t)=>({variant:"double-struck",variantStyle:"up"})),ue(["frak","mathfrak"],"{:math*}",{},(e,t)=>({variant:"fraktur",variantStyle:"up"})),ue("mathcal","{:math*}",{},(e,t)=>({variant:"calligraphic",variantStyle:"up"})),ue("mathscr","{:math*}",{},(e,t)=>({variant:"script",variantStyle:"up"})),ue("mbox","{:text}",null,(e,t)=>({type:"group",mode:"math",body:t[0]})),ue("text","{:text*}",null,(e,t)=>({mode:"text"})),ue("class","{name:string}{content:auto*}",null,(e,t)=>({cssClass:t[0]})),ue("cssId","{id:string}{content:auto}",null,(e,t)=>({type:"group",body:t[1],cssId:t[0]})),ue("em","",null,(e,t)=>({cssClass:"ML__emph"})),ue("emph","{:auto}",null,(e,t)=>({cssClass:"ML__emph",body:t[0],type:"group",skipBoundary:!0}));const _e={"\\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}};function we(e,t,i,a,o,r=""){const s=E(e,T("Size"+i+"-Regular",ae(t),"delimsizing size"+i),o.mathstyle,h.textstyle,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}function Me(e,t){let i="";return"Size1-Regular"===t?i=" delim-size1":"Size4-Regular"===t&&(i=" delim-size4"),T(t,ae(e),"delimsizinginner"+i)}function ze(e,t,i,a,o,r=""){let s,n,l,c;s=l=c=ae(t),n=null;let m="Size1-Regular";"\\vert"===t||"\\lvert"===t||"\\rvert"===t||"\\mvert"===t||"\\mid"===t?l=s=c="∣":"\\Vert"===t||"\\lVert"===t||"\\rVert"===t||"\\mVert"===t||"\\|"===t?l=s=c="∥":"\\uparrow"===t?l=c="⏐":"\\Uparrow"===t?l=c="‖":"\\downarrow"===t?s=l="⏐":"\\Downarrow"===t?s=l="‖":"\\updownarrow"===t?(s="↑",l="⏐",c="↓"):"\\Updownarrow"===t?(s="⇑",l="‖",c="⇓"):"["===t||"\\lbrack"===t?(s="⎡",l="⎢",c="⎣",m="Size4-Regular"):"]"===t||"\\rbrack"===t?(s="⎤",l="⎥",c="⎦",m="Size4-Regular"):"\\lfloor"===t?(l=s="⎢",c="⎣",m="Size4-Regular"):"\\lceil"===t?(s="⎡",l=c="⎢",m="Size4-Regular"):"\\rfloor"===t?(l=s="⎥",c="⎦",m="Size4-Regular"):"\\rceil"===t?(s="⎤",l=c="⎥",m="Size4-Regular"):"("===t?(s="⎛",l="⎜",c="⎝",m="Size4-Regular"):")"===t?(s="⎞",l="⎟",c="⎠",m="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(s="⎧",n="⎨",c="⎩",l="⎪",m="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(s="⎫",n="⎬",c="⎭",l="⎪",m="Size4-Regular"):"\\lgroup"===t?(s="⎧",c="⎩",l="⎪",m="Size4-Regular"):"\\rgroup"===t?(s="⎫",c="⎭",l="⎪",m="Size4-Regular"):"\\lmoustache"===t?(s="⎧",c="⎭",l="⎪",m="Size4-Regular"):"\\rmoustache"===t?(s="⎫",c="⎩",l="⎪",m="Size4-Regular"):"\\surd"===t?(s="",c="⎷",l="",m="Size4-Regular"):"\\ulcorner"===t?(s="┌",l=c=" "):"\\urcorner"===t?(s="┐",l=c=" "):"\\llcorner"===t?(c="└",l=s=" "):"\\lrcorner"===t&&(s="┘",l=s=" ");const p=d(ae(s),m),u=p.height+p.depth,f=d(ae(l),m),g=f.height+f.depth,y=d(ae(c),m),b=y.height+y.depth;let v=0,x=1;if(null!==n){const e=d(ae(n),m);v=e.height+e.depth,x=2}const k=u+b+v,_=Math.ceil((i-k)/(x*g)),w=k+_*x*g;let M=o.mathstyle.metrics.axisHeight;a&&(M*=o.mathstyle.sizeMultiplier);const z=w/2-M,S=[];if(S.push(Me(c,m)),null===n)for(let e=0;e<_;e++)S.push(Me(l,m));else{for(let e=0;e<_;e++)S.push(Me(l,m));S.push(Me(n,m));for(let e=0;e<_;e++)S.push(Me(l,m))}S.push(Me(s,m));const L=B(o,S,"bottom",z);return L.setStyle("color",o.color),"number"==typeof o.opacity&&L.setStyle("opacity",o.opacity),E(e,D(L,"delimsizing mult"),o.mathstyle,h.textstyle,r)}ue(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",null,(function(e,t){return{type:"sizeddelim",size:_e[e].size,cls:_e[e].mclass,delim:t[0]}})),ue(["hspace","hspace*"],"{width:skip}",{},(function(e,t){return{type:"spacing",width:t[0]||0}})),ue(["mathop","mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",null,(e,t)=>{const i={type:{"\\mathop":"mop","\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e],body:t[0],captureSelection:!0};return"\\mathop"===e&&(i.limits="limits",i.isFunction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.body)}}`),ue(["operatorname","operatorname*"],"{operator:math}",null,(function(e,t){const i={type:"mop",captureSelection:!0,body:t[0],isFunction:!0};return i.body.forEach(e=>{e.isFunction=!1,e.variant||e.variantStyle||(e.variant="main",e.variantStyle="up"),e.type="mord",e.body={"∗":"*","−":"-"}[e.body]||e.body}),"\\operatorname"===e?i.limits="nolimits":"\\operatorname*"===e&&(i.limits="limits"),i})),ue("unicode","{charcode:number}",null,(e,t)=>{let i=parseInt(t[0]);return isFinite(i)||(i=10067),{type:"mord",body:String.fromCodePoint(i),codepoint:i}},(e,t,i,a)=>`${e}{"${("000000"+i.codepoint.toString(16)).toUpperCase().substr(-6)}}`),ue("rule","[raise:dimen]{width:dimen}{thickness:dimen}",null,(function(e,t){return{type:"rule",shift:t[0],width:t[1],height:t[2]}})),ue("overline","{:auto}",null,(e,t)=>({type:"line",position:"overline",skipBoundary:!0,body:t[0]})),ue("underline","{:auto}",null,(e,t)=>({type:"line",position:"underline",skipBoundary:!0,body:t[0]})),ue("overset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),ue("underset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",underscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),ue(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0},(function(e,t){return{type:"genfrac",numer:t[0],denom:t[1],hasBarLine:!1,leftDelim:t[2],rightDelim:t[3],mathstyle:"auto"}}),(e,t,i,a)=>`${a(i,i.numer)} ${e}${i.leftDelim}${i.rightDelim}${a(i,i.denom)}`),ue(["stackrel","stackbin"],"{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1],mathtype:"\\stackrel"===e?"mrel":"mbin"}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),ue(["phantom","vphantom","hphantom"],"{:auto*}",{},(e,t)=>({type:"phantom",captureSelection:!0,phantomType:e.slice(1),isPhantom:!0}),(e,t,i,a)=>e+"{"+a(i,i.body)+"}"),ue("smash","[:string]{:auto}",null,(function(e,t){let i="smash";return"b"===t[0]?i="bsmash":"t"===t[0]&&(i="tsmash"),{type:"phantom",phantomType:i,skipBoundary:!0,body:t[1]}})),ue("rlap","{:auto}",null,(function(e,t){return{type:"overlap",align:"right",skipBoundary:!0,body:t[0]}})),ue("llap","{:auto}",null,(function(e,t){return{type:"overlap",align:"left",skipBoundary:!0,body:t[0]}})),ue("mathrlap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"right",skipBoundary:!0,body:t[0]}})),ue("mathllap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"left",skipBoundary:!0,body:t[0]}})),function(e){for(let t=0;t",">","mrel"),G("\\gt",">","mrel"),G("\\le","≤","mrel"),G("\\leq","≤","mrel"),G("\\ge","≥","mrel"),G("\\geq","≥","mrel"),G("\\leqslant","⩽","mrel","ams"),G("\\geqslant","⩾","mrel","ams"),G("\\ll","≪","mrel"),G("\\gg","≫","mrel"),G("\\coloneq","≔","mrel"),G("\\measeq","≝","mrel"),G("\\eqdef","≞","mrel"),G("\\questeq","≟","mrel"),G(":",":","mrel"),G("\\cong","≅","mrel"),G("\\equiv","≡","mrel"),G("\\prec","≺","mrel"),G("\\preceq","⪯","mrel"),G("\\succ","≻","mrel"),G("\\succeq","⪰","mrel"),G("\\perp","⊥","mrel"),G("\\propto","∝","mrel"),G("\\Colon","∷","mrel"),G("\\smile","⌣","mrel"),G("\\frown","⌢","mrel"),G("\\sim","∼","mrel"),G("\\gtrsim","≳","mrel","ams"),G("\\approx","≈","mrel"),G("\\approxeq","≊","mrel","ams"),G("\\thickapprox","≈","mrel","ams"),G("\\lessapprox","⪅","mrel","ams"),G("\\gtrapprox","⪆","mrel","ams"),G("\\precapprox","⪷","mrel","ams"),G("\\succapprox","⪸","mrel","ams"),G("\\thicksim","∼","mrel","ams"),G("\\succsim","≿","mrel","ams"),G("\\precsim","≾","mrel","ams"),G("\\backsim","∽","mrel","ams"),G("\\eqsim","≂","mrel","ams"),G("\\backsimeq","⋍","mrel","ams"),G("\\simeq","≃","mrel"),G("\\lesssim","≲","mrel","ams"),G("\\nleq","≰","mrel","ams"),G("\\ngeq","≱","mrel","ams"),G("\\smallsmile","⌣","mrel","ams"),G("\\smallfrown","⌢","mrel","ams"),G("\\bowtie","⋈","mrel"),G("\\Join","⋈","mrel"),G("\\asymp","≍","mrel"),G("\\sqsubseteq","⊑","mrel"),G("\\sqsupseteq","⊒","mrel"),G("\\leqq","≦","mrel","ams"),G("\\eqslantless","⪕","mrel","ams"),G("\\lll","⋘","mrel","ams"),G("\\lessgtr","≶","mrel","ams"),G("\\lesseqgtr","⋚","mrel","ams"),G("\\lesseqqgtr","⪋","mrel","ams"),G("\\risingdotseq","≓","mrel","ams"),G("\\fallingdotseq","≒","mrel","ams"),G("\\subseteqq","⫅","mrel","ams"),G("\\Subset","⋐","mrel","ams"),G("\\sqsubset","⊏","mrel","ams"),G("\\preccurlyeq","≼","mrel","ams"),G("\\curlyeqprec","⋞","mrel","ams"),G("\\vDash","⊨","mrel","ams"),G("\\Vvdash","⊪","mrel","ams"),G("\\bumpeq","≏","mrel","ams"),G("\\Bumpeq","≎","mrel","ams"),G("\\geqq","≧","mrel","ams"),G("\\eqslantgtr","⪖","mrel","ams"),G("\\ggg","⋙","mrel","ams"),G("\\gtrless","≷","mrel","ams"),G("\\gtreqless","⋛","mrel","ams"),G("\\gtreqqless","⪌","mrel","ams"),G("\\supseteqq","⫆","mrel","ams"),G("\\Supset","⋑","mrel","ams"),G("\\sqsupset","⊐","mrel","ams"),G("\\succcurlyeq","≽","mrel","ams"),G("\\curlyeqsucc","⋟","mrel","ams"),G("\\Vdash","⊩","mrel","ams"),G("\\shortmid","∣","mrel","ams"),G("\\between","≬","mrel","ams"),G("\\pitchfork","⋔","mrel","ams"),G("\\varpropto","∝","mrel","ams"),G("\\backepsilon","∍","mrel","ams"),G("\\llless","⋘","mrel","ams"),G("\\gggtr","⋙","mrel","ams"),G("\\lhd","⊲","mbin","ams"),G("\\rhd","⊳","mbin","ams"),G("\\doteq","≐","mrel"),G("\\doteqdot","≑","mrel","ams"),G("\\Doteq","≑","mrel","ams"),G("\\eqcirc","≖","mrel","ams"),G("\\circeq","≗","mrel","ams"),G("\\lessdot","⋖","mbin","ams"),G("\\gtrdot","⋗","mbin","ams"),G("\\~","~","mrel"),G("\\leftrightarrow","↔","mrel"),G("\\Leftrightarrow","⇔","mrel"),G("\\models","⊨","mrel"),G("\\vdash","⊢","mrel"),G("\\therefore","∴","mrel","ams"),G("\\because","∵","mrel","ams"),G("\\dashv","⊣","mrel"),G("\\roundimplies","⥰","mrel"),G("+","+","mbin"),G("-","−","mbin"),G("−","−","mbin"),G("\\pm","±","mbin"),G("\\mp","∓","mbin"),G("*","∗","mbin"),G("\\times","×","mbin"),G("\\div","÷","mbin"),G("\\surd","√"),G("\\divides","∣","mbin"),G("\\ltimes","⋉","mbin","ams"),G("\\rtimes","⋊","mbin","ams"),G("\\leftthreetimes","⋋","mbin","ams"),G("\\rightthreetimes","⋌","mbin","ams"),G("\\intercal","⊺","mbin","ams"),G("\\dotplus","∔","mbin","ams"),G("\\doublebarwedge","⩞","mbin","ams"),G("\\divideontimes","⋇","mbin","ams"),G("\\centerdot","⋅","mbin","ams"),G("\\cdot","⋅","mbin"),G("\\infty","∞"),G("\\prime","′"),G("\\doubleprime","″"),G("\\angle","∠"),G("`","‘"),G("\\$","$"),G("\\%","%"),G("\\_","_"),G("\\alpha","α"),G("\\beta","β"),G("\\gamma","γ"),G("\\delta","δ"),G("\\epsilon","ϵ"),G("\\varepsilon","ε"),G("\\zeta","ζ"),G("\\eta","η"),G("\\theta","θ"),G("\\vartheta","ϑ"),G("\\iota","ι"),G("\\kappa","κ"),G("\\varkappa","ϰ","mord","ams"),G("\\lambda","λ"),G("\\mu","μ"),G("\\nu","ν"),G("\\xi","ξ"),G("\\omicron","o"),G("\\pi","π"),G("\\varpi","ϖ"),G("\\rho","ρ"),G("\\varrho","ϱ"),G("\\sigma","σ"),G("\\varsigma","ς"),G("\\tau","τ"),G("\\phi","ϕ"),G("\\varphi","φ"),G("\\upsilon","υ"),G("\\chi","χ"),G("\\psi","ψ"),G("\\omega","ω"),G("\\Gamma","Γ"),G("\\Delta","Δ"),G("\\Theta","Θ"),G("\\Lambda","Λ"),G("\\Xi","Ξ"),G("\\Pi","Π"),G("\\Sigma","Σ"),G("\\Upsilon","Υ"),G("\\Phi","Φ"),G("\\Psi","Ψ"),G("\\Omega","Ω"),G("\\digamma","ϝ","mord","ams"),G("\\emptyset","∅"),G("\\varnothing","∅","mord","ams"),G("\\cap","∩","mbin"),G("\\cup","∪","mbin"),G("\\setminus","∖","mbin"),G("\\smallsetminus","∖","mbin","ams"),G("\\complement","∁","mord","ams"),G("\\in","∈","mrel"),G("\\notin","∉","mrel"),G("\\not","̸","mrel"),G("\\ni","∋","mrel"),G("\\owns","∋","mrel"),G("\\subset","⊂","mrel"),G("\\supset","⊃","mrel"),G("\\subseteq","⊆","mrel"),G("\\supseteq","⊇","mrel"),G("\\subsetneq","⊊","mrel","ams"),G("\\varsubsetneq","","mrel","ams"),G("\\subsetneqq","⫋","mrel","ams"),G("\\varsubsetneqq","","mrel","ams"),G("\\nsubset","⊄","mrel","ams"),G("\\nsupset","⊅","mrel","ams"),G("\\nsubseteq","⊈","mrel","ams"),G("\\nsupseteq","⊉","mrel","ams"),G("\\ "," ","spacing"),G("~"," ","spacing"),G("\\space"," ","spacing"),G("\\!",null,"spacing"),G("\\,",null,"spacing"),G("\\:",null,"spacing"),G("\\;",null,"spacing"),G("\\enskip",null,"spacing"),G("\\enspace",null,"spacing"),G("\\quad",null,"spacing"),G("\\qquad",null,"spacing"),G("\\colon",":","mpunct"),G("\\cdotp","⋅","mpunct"),G("\\cdots","⋯","minner"),G("\\ddots","⋱","minner"),G("\\ldots","…","minner"),G("\\mathellipsis","…","minner"),G("\\vdots","⋮"),G("\\ldotp",".","mpunct"),G(",",",","mpunct"),G(";",";","mpunct"),G("\\land","∧","mbin"),G("\\wedge","∧","mbin"),G("\\lor","∨","mbin"),G("\\vee","∨","mbin"),G("\\lnot","¬"),G("\\neg","¬"),G("\\barwedge","⊼","mbin","ams"),G("\\veebar","⊻","mbin","ams"),G("\\nor","⊻","mbin","ams"),G("\\curlywedge","⋏","mbin","ams"),G("\\curlyvee","⋎","mbin","ams"),G("\\square","□","mord","ams"),G("\\Box","□","mord","ams"),G("\\blacksquare","■","mord","ams"),G("\\boxminus","⊟","mbin","ams"),G("\\boxplus","⊞","mbin","ams"),G("\\boxtimes","⊠","mbin","ams"),G("\\boxdot","⊡","mbin","ams"),G("\\circ","∘","mbin"),G("\\bigcirc","◯","mbin"),G("\\bullet","∙","mbin"),G("\\circleddash","⊝","mbin","ams"),G("\\circledast","⊛","mbin","ams"),G("\\oplus","⊕","mbin"),G("\\ominus","⊖","mbin"),G("\\otimes","⊗","mbin"),G("\\odot","⊙","mbin"),G("\\circledcirc","⊚","mbin","ams"),G("\\oslash","⊘","mbin"),G("\\circledS","Ⓢ","mord","ams"),G("\\circledR","®","mord","ams"),G("\\triangle","△"),G("\\bigtriangleup","△","mbin"),G("\\vartriangle","△","mrel","ams"),G("\\triangleq","≜","mrel","ams"),G("\\triangledown","▽","mord","ams"),G("\\bigtriangledown","▽","mbin"),G("\\triangleleft","◃","mbin"),G("\\vartriangleleft","⊲","mrel","ams"),G("\\trianglelefteq","⊴","mrel","ams"),G("\\ntriangleleft","⋪","mrel","ams"),G("\\ntrianglelefteq","⋬","mrel","ams"),G("\\triangleright","▹","mbin"),G("\\vartriangleright","⊳","mrel","ams"),G("\\trianglerighteq","⊵","mrel","ams"),G("\\ntriangleright","⋫","mrel","ams"),G("\\ntrianglerighteq","⋭","mrel","ams"),G("\\blacktriangle","▲","mord","ams"),G("\\blacktriangledown","▼","mord","ams"),G("\\blacktriangleleft","◀","mrel","ams"),G("\\blacktriangleright","▶","mrel","ams"),G("\\/","/"),G("|","∣","textord"),G("\\And","&","mbin"),G("\\imath","ı"),G("\\jmath","ȷ"),G("\\degree","°"),G("'","′"),G('"',"”");const Se=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],Le=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],Ae=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ce=[0,1.2,1.8,2.4,3],$e=[{type:"small",mathstyle:h.scriptscriptstyle},{type:"small",mathstyle:h.scriptstyle},{type:"small",mathstyle:h.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],qe=[{type:"small",mathstyle:h.scriptscriptstyle},{type:"small",mathstyle:h.scriptstyle},{type:"small",mathstyle:h.textstyle},{type:"stack"}],De=[{type:"small",mathstyle:h.scriptscriptstyle},{type:"small",mathstyle:h.scriptstyle},{type:"small",mathstyle:h.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Te(e,t,i,a,o,r=""){if(!t||0===t.length||"."===t)return Ee(e,o,e);let s;"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),s=Ae.includes(t)?$e:Se.includes(t)?De:qe;const n=function(e,t,i,a){for(let r=Math.min(2,3-a.mathstyle.size);rt)return i[r]}var o;return i[i.length-1]}(ae(t),i,s,o);return"small"===n.type?function(e,t,i,a,o,r=""){const s=E(e,T("Main-Regular",ae(t)),o.mathstyle,i,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier/i.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}(e,t,n.mathstyle,a,o,"ML__small-delim "+r):"large"===n.type?we(e,t,n.size,a,o,r):ze(e,t,i,a,o,r)}function Ke(e,t,i,a,o,r=""){if("."===t)return Ee(e,o,r);const s=o.mathstyle.metrics.axisHeight*o.mathstyle.sizeMultiplier,n=Math.max(i-s,a+s);return Te(e,t,Math.max(n/500*901,2*n-.5),!0,o,r)}function Ee(e,t,i){return D("","sizing"+t.mathstyle.adjustTo(h.textstyle)+" nulldelimiter "+(i||""),e)}const Ne=8205,Be=[[Ne,1],[65038,2],[127995,5],[129456,4],[917536,96]];let Oe;const Fe=[127462,127487];function Pe(e){var t;return void 0===Oe&&(Oe={},Be.forEach(e=>{for(let t=e[0];t<=e[0]+e[1]-1;t++)Oe[t]=!0})),null!==(t=Oe[e])&&void 0!==t&&t}function Re(e){return e>=Fe[0]&&e<=Fe[1]}function Ie(e){if(/^[\x20-\xFF]*$/.test(e))return e;const t=[],i=function(e){const t=[];for(let i=0;i=55296&&a<=56319){const t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){const e=a-55296,o=t-56320;a=Math.pow(2,16)+e*Math.pow(2,10)+o,i++}}t.push(a)}return t}(e);let a=0;for(;a=this.s.length}get(){return this.pos";if(this.obeyspaces&&this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]/))return"";const e=this.get();if("\\"===e){if(!this.end()){let e=this.match(/^[a-zA-Z*]+/);if(e)this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]*/);else if(e=this.get()," "===e)return"";return"\\"+e}}else{if("{"===e)return"<{>";if("}"===e)return"<}>";if("^"===e){if("^"===this.peek()){this.get();const e=this.match(/^(\^(\^(\^(\^[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f][0-9a-f]/);if(e)return String.fromCodePoint(parseInt(e.slice(e.lastIndexOf("^")+1),16))}return e}if("#"===e){if(!this.end()){let e=!1;if(/[0-9?]/.test(this.peek())&&(e=!0,this.pos+1"):"<$>"}return e}}function Ve(e,t){var i,a,o,r;let s=[],n=e.next();if(n)if("\\relax"===n);else if("\\noexpand"===n)n=e.next(),n&&s.push(n);else if("\\obeyspaces"===n)e.obeyspaces=!0;else if("\\space"===n||"~"===n)s.push("");else if("\\bgroup"===n)s.push("<{>");else if("\\egroup"===n)s.push("<}>");else if("\\string"===n)n=e.next(),n&&("\\"===n[0]?Array.from(n).forEach(e=>s.push("\\"===e?"\\backslash":e)):"<{>"===n?s.push("\\{"):""===n?s.push("~"):"<}>"===n&&s.push("\\}"));else if("\\csname"===n){for(;""===e.peek();)e.next();let o="",r=!1,l=[];do{if(0===l.length)if(/^#[0-9?]$/.test(e.peek())){const o=e.get().slice(1);l=We(null!==(a=null!==(i=null==t?void 0:t[o])&&void 0!==i?i:null==t?void 0:t["?"])&&void 0!==a?a:"\\placeholder{}",t),n=l[0]}else n=e.next(),l=n?[n]:[];r=0===l.length,r||"\\endcsname"!==n||(r=!0,l.shift()),r||(r="<$>"===n||"<$$>"===n||"<{>"===n||"<}>"===n||n.length>1&&"\\"===n[0]),r||(o+=l.shift())}while(!r);o&&s.push("\\"+o),s=s.concat(l)}else if("\\endcsname"===n);else if(n.length>1&&"#"===n[0]){const e=n.slice(1);s=s.concat(We(null!==(r=null!==(o=null==t?void 0:t[e])&&void 0!==o?o:null==t?void 0:t["?"])&&void 0!==r?r:"\\placeholder{}",t))}else s.push(n);return s}function We(e,t){const i=e.toString().split(/\r?\n/);let a="",o="";for(const e of i){a+=o,o=" ";const t=e.match(/((?:\\%)|[^%])*/);null!==t&&(a+=t[0])}const r=new He(a);let s=[];do{s=s.concat(Ve(r,t))}while(!r.end());return s}function Ue(e){let t="",i="";for(const a of e)a&&(/[a-zA-Z*]/.test(a[0])&&(i+=t),t=/\\[a-zA-Z]+\*?$/.test(a)?" ":"",i+=a);return i}function je(e){return Ue(e.map(e=>{var t;return null!==(t={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[e])&&void 0!==t?t:e}))}const Xe={},Ge={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49};function Ze(e,t){Xe[e]={decompose:t}}function Ye(e,i){var a,o;function r(e){return"mord"===e.type&&Boolean(e.symbol)&&/^[0-9,.]$/.test(e.symbol)}function s(e){return"text"===e.mode}const n=e instanceof f?e:new f(e),l=!n.atomIdsSettings||!n.atomIdsSettings.groupNumbers;let c=[];if(t(i)){if(0===i.length)return[];if(1===i.length)c=i[0].decompose(n),c&&l&&i[0].isSelected&&c.forEach(e=>e.selected(!0));else{let e=[],t="",d=!0,m=null;for(let p=0;pe.selected(!0))):(e.length>0&&(c=[...c,...e],e=[]),c=c.concat(a))}}e.length>0&&(c=[...c,...e],e=[])}}else i instanceof Je&&(c=i.decompose(n),c&&l&&i.isSelected&&c.forEach(e=>e.selected(!0)));if(!c||0===c.length)return null;if(n.mathstyle!==n.parentMathstyle){const e=n.mathstyle.sizeMultiplier/n.parentMathstyle.sizeMultiplier;for(const t of c)t.height*=e,t.depth*=e}if(n.size!==n.parentSize){const e=Ge[n.size]/Ge[n.parentSize];for(const t of c)t.height*=e,t.depth*=e}return c}class Je{constructor(e,t,i="",a={}){this.mode=e,this.type=t,this.body=i,a.isPhantom&&this.setPhantom(!0),this.applyStyle(a)}toLatex(e=!1){return function(e,i){if(!(i=void 0!==i&&i)&&e.latex)return e.latex;let a="",o=0,r=0,s=0;const n=e.symbol;let l=[];const c=(e,a)=>function(e,i,a){let o="";return t(i)?o=function(e,t,i){if(0===t.length)return"";if("first"===t[0].type){if(1===t.length)return"";t=t.slice(1)}return 0===t.length?"":Ue(v(t,"cssClass").map(t=>{const a=Ue(v(t,"color").map(t=>Ue(function(e){const t=[];let i=[],a="NONE";return e.forEach(e=>{"first"!==e.type&&(e.mode!==a?(i.length>0&&t.push(i),i=[e],a=e.mode):i.push(e))}),i.length>0&&t.push(i),t}(t).map(t=>function(e,t,i){var a;return(null===(a=x[t[0].mode])||void 0===a?void 0:a.emitLatexRun)?x[t[0].mode].emitLatexRun(e,t,i):""}(e,t,i)))));return!t[0].cssClass||void 0!==e&&e.cssClass===t[0].cssClass?a:"ML__boldsymbol"===t[0].cssClass?"\\boldsymbol{"+a+"}":"ML__emph"===t[0].cssClass?"\\emph{"+a+"}":"\\class{"+t[0].cssClass+"}{"+a+"}"}))}(e,i,a):"number"==typeof i||"boolean"==typeof i?o=i.toString():"string"==typeof i?o=i.replace(/\s/g,"~"):null!=i&&"function"==typeof i.toLatex&&(o=i.toLatex(a)),o}(e,a,i);switch(e.type){case"group":n?a=i?c(e,e.body):e.latex:(a=e.latexOpen||(e.cssId||e.cssClass?"":"{"),e.cssId&&(a+="\\cssId{"+e.cssId+"}{"),"ML__emph"===e.cssClass?a+="\\emph{"+c(e,e.body):(e.cssClass&&(a+="\\class{"+e.cssClass+"}{"),a+=c(e,e.body),e.cssClass&&(a+="}")),e.cssId&&(a+="}"),a+=e.latexClose||(e.cssId||e.cssClass?"":"}"));break;case"array":if(a+="\\begin{"+e.environmentName+"}","array"===e.environmentName){if(a+="{",void 0!==e.colFormat)for(s=0;s0&&(a+=" & "),a+=c(e,e.array[r][o]);r0&&("first"!==this.body[0].type?e=this.body[0].getInitialBaseElement():this.body[1]&&(e=this.body[1].getInitialBaseElement())),e||this}getFinalBaseElement(){return t(this.body)&&this.body.length>0?this.body[this.body.length-1].getFinalBaseElement():this}isCharacterBox(){const e=this.getInitialBaseElement();return/minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(e.type)}setPhantom(e){this.forEach(t=>{t.isPhantom=e})}forEach(e){if(e(this),t(this.body))for(const t of this.body)t&&t.forEach(e);else this.body&&"object"==typeof this.body&&e(this.body);if(this.superscript)for(const t of this.superscript)t&&t.forEach(e);if(this.subscript)for(const t of this.subscript)t&&t.forEach(e);if(this.overscript)for(const t of this.overscript)t&&t.forEach(e);if(this.underscript)for(const t of this.underscript)t&&t.forEach(e);if(this.numer)for(const t of this.numer)t&&t.forEach(e);if(this.denom)for(const t of this.denom)t&&t.forEach(e);if(this.index)for(const t of this.index)t&&t.forEach(e);if(this.array)for(const t of this.array)for(const i of t)for(const t of i)t.forEach(e)}decomposeGroup(e){const t=D(Ye(e.clone({mathstyle:this.mathstyle?h[this.mathstyle]:void 0}),this.body),"","mord");return this.cssId&&(t.cssId=this.cssId),t.applyStyle({backgroundColor:this.backgroundColor,cssClass:this.cssClass}),t}decomposeOverlap(e){const t=D(Ye(e,this.body),"inner");return D([t,D(null,"fix")],"left"===this.align?"llap":"rlap","mord")}decomposeRule(e){const t=e.mathstyle,i=D("","rule","mord");let a=this.shift&&!isNaN(this.shift)?this.shift:0;a/=t.sizeMultiplier;const o=this.width/t.sizeMultiplier,r=this.height/t.sizeMultiplier;return i.setStyle("border-right-width",o,"em"),i.setStyle("border-top-width",r,"em"),i.setStyle("margin-top",-(r-a),"em"),i.setStyle("border-color",e.color),i.width=o,i.height=r+a,i.depth=-a,i}decompose(e,i=null){var a;let o=null;if(!this.type||/mord|minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(this.type)?(o="string"==typeof this.body?this.makeSpan(e,this.body):this.makeSpan(e,Ye(e,this.body)),o.type=w(this.type)?this.type:""):"group"===this.type||"root"===this.type?o=this.decomposeGroup(e):"delim"===this.type?(o=D(null,""),o.delim=this.delim):"sizeddelim"===this.type?o=this.bind(e,function(e,t,i,a,o=""){return"."===t?Ee(e,a,o):("<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),Se.includes(t)||Ae.includes(t)?we(e,t,i,!1,a,o):Le.includes(t)?ze(e,t,Ce[i],!1,a,o):null)}(this.cls,this.delim,this.size,e)):"overlap"===this.type?o=this.decomposeOverlap(e):"rule"===this.type?o=this.decomposeRule(e):"msubsup"===this.type?(o=D("​","","mord"),i&&(o.height=i[0].height,o.depth=i[0].depth)):"space"===this.type?o=this.makeSpan(e," "):"spacing"===this.type?"​"===this.body?o=this.makeSpan(e,"​"):" "===this.body?o="math"===this.mode?this.makeSpan(e," "):this.makeSpan(e," "):this.width?(o=D("​","mspace "),this.width>0?o.setWidth(this.width):o.setStyle("margin-left",this.width,"em")):o=D("​","mspace "+(null!==(a={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.symbol])&&void 0!==a?a:"mediumspace")):"mathstyle"===this.type?e.setMathstyle(this.mathstyle):"command"===this.type||"error"===this.type?(o=this.makeSpan(e,this.body),o.classes="",this.isError&&(o.classes+=" ML__error"),this.isSuggestion&&(o.classes+=" ML__suggestion")):o="placeholder"===this.type?this.makeSpan(e,"⬚"):"first"===this.type?this.makeSpan(e,"​"):Xe[this.type].decompose(e,this),!o)return null;if(this.caret&&"msubsup"!==this.type&&"command"!==this.type&&"placeholder"!==this.type&&"first"!==this.type&&(t(o)?"leftright"===this.type&&(this.superscript||this.subscript)||(o[o.length-1].caret=this.caret):o.caret=this.caret),this.containsCaret&&(t(o)?(o[0].classes=(o[0].classes||"")+" ML__contains-caret",o[o.length-1].classes=(o[o.length-1].classes||"")+" ML__contains-caret"):o.classes=(o.classes||"")+" ML__contains-caret"),!this.limits&&(this.superscript||this.subscript))if(t(o)){const t=o[o.length-1];o[o.length-1]=this.attachSupsub(e,t,t.type)}else o=[this.attachSupsub(e,o,o.type)];return t(o)?o:[o]}attachSupsub(e,t,i){if(!this.superscript&&!this.subscript)return t;const a=e.mathstyle;let o=null,s=null;this.superscript&&(o=D(Ye(e.sup(),this.superscript),a.adjustTo(a.sup()))),this.subscript&&(s=D(Ye(e.sub(),this.subscript),a.adjustTo(a.sub())));let n,l=0,c=0;this.isCharacterBox()||(l=C(t)-a.metrics.supDrop,c=$(t)+a.metrics.subDrop),n=a===h.displaystyle?a.metrics.sup1:a.cramped?a.metrics.sup3:a.metrics.sup2;const d=.05/(h.textstyle.sizeMultiplier*a.sizeMultiplier);let m=null;if(s&&o){l=Math.max(l,n,o.depth+.25*a.metrics.xHeight),c=Math.max(c,a.metrics.sub2);const i=r;if(l-$(o)-(C(s)-c)<4*i){c=4*i-(l-o.depth)+C(s);const e=.8*a.metrics.xHeight-(l-$(o));e>0&&(l+=e,c-=e)}m=B(e,[s,c,o,-l],"individualShift"),this.isSymbol&&m.children[0].setLeft(-q(t))}else s&&!o?(c=Math.max(c,a.metrics.sub1,C(s)-.8*a.metrics.xHeight),m=B(e,[s],"shift",c),m.children[0].setRight(d),this.isCharacterBox()&&m.children[0].setLeft(-q(t))):!s&&o&&(l=Math.max(l,n,o.depth+.25*a.metrics.xHeight),m=B(e,[o],"shift",-l),m.children[0].setRight(d));const p=D(m,"msubsup");return this.caret&&(p.caret=this.caret,this.caret=""),D([t,p],"",i)}attachLimits(e,t,i,a){const o=this.superscript?D(Ye(e.sup(),this.superscript),e.mathstyle.adjustTo(e.mathstyle.sup())):null,r=this.subscript?D(Ye(e.sub(),this.subscript),e.mathstyle.adjustTo(e.mathstyle.sub())):null;return function(e,t,i,a,o,r){if(!o&&!r)return t;t=D(t);let c=0,d=0;o&&(c=Math.max(s,.2-$(o))),r&&(d=Math.max(n,.6-C(r)));let m=null;if(r&&o){const s=l+C(r)+$(r)+d+$(t)+i;m=B(e,[l,r,d,t,c,o,l],"bottom",s),m.children[0].setLeft(-a),m.children[2].setLeft(a)}else if(r&&!o){const o=C(t)-i;m=B(e,[l,r,d,t],"top",o),m.children[0].setLeft(-a)}else if(!r&&o){const r=$(t)+i;m=B(e,[t,c,o,l],"bottom",r),m.children[1].setLeft(a)}return D(m,"op-limits","mop")}(e,t,i,a,o,r)}bind(e,t){return"first"!==this.type&&"​"!==this.body&&(this.id=function(e){let t;return e.atomIdsSettings&&("number"==typeof e.atomIdsSettings.seed?(t=e.atomIdsSettings.overrideID?e.atomIdsSettings.overrideID:e.atomIdsSettings.seed.toString(36),e.atomIdsSettings.seed+=1):t=Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36)),t}(e),this.id&&(t.attributes||(t.attributes={}),t.attributes["data-atom-id"]=this.id)),t}makeSpan(e,t){const i=D(t,"","textord"===this.type?"mord":w(this.type)?this.type:""),a=this.getStyle();a.letterShapeStyle=e.letterShapeStyle,i.applyStyle(a);const o=(null==a?void 0:a.fontSize)?a.fontSize:"size5";return o!==e.parentSize?(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+o):e.parentSize!==e.size&&(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+e.size),i.maxFontSize=Math.max(i.maxFontSize,e.mathstyle.sizeMultiplier||1),"text"===this.mode&&(i.classes+=" ML__text"),e.mathstyle.isTight()&&(i.isTight=!0),"math"!==this.mode&&(i.italic=0),i.setRight(i.italic),"number"==typeof e.opacity&&i.setStyle("opacity",e.opacity),this.bind(e,i),this.caret&&(this.superscript||this.subscript||(i.caret=this.caret,this.caret="",e.mathstyle.isTight()&&(i.isTight=!0))),i}}function Qe(e,i=[]){const a=new Je(e,"root",i||[]);return!t(a.body)||0!==a.body.length&&"first"===a.body[0].type||a.body.unshift(new Je(e,"first")),a}function et(e){return t(e)}function tt(e){const t=D("​","arraycolsep");return t.setWidth(e),t}function it(e,t,i,a){const o=[];for(const r of t){const t=D(Ye(e,a));t.depth=r.depth,t.height=r.height,o.push(t),o.push(r.pos-i)}return B(e,o,"individualShift")}function at(e){return!/^<({|}|\$|\$\$|space)>$/.test(e)}Ze("accent",(e,i)=>{const a=e.mathstyle;let o=Ye(e.cramp(),i.body);(i.superscript||i.subscript)&&(o=[i.attachSupsub(e,D(o,"","mord"),"mord")]);let r=0;t(i.body)&&1===i.body.length&&i.body[0].isCharacterBox()&&(r=function(e){if(!e)return 0;if(t(e)){let t=0;for(const i of e)t+=i.skew||0;return t}return e.skew}(o));let n,l=Math.min(C(o),a.metrics.xHeight);if(i.svgAccent)n=O(i.svgAccent),l=-l+s;else{const e=T("Main-Regular",i.accent,"math");e.italic=0;const t="⃗"===i.accent?" accent-vec":"";n=D(D(e),"accent-body"+t)}return n=B(e,[o,-l,n]),n.children[1].setLeft(2*r),[D([n],"accent","mord")]}),Ze("array",(e,t)=>{var i;let a=t.colFormat;a&&0===a.length&&(a=[{align:"l"}]),a||(a=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]);const o=[];let r=0;for(const e of a)e.align&&r++;for(const e of t.array){let t=0;for(;t0&&(c+=m,n0&&b.push(B(e,i,"individualShift"))}const v=[];let x=!1,k=!1,_=0,w=!t.leftDelim;for(const t of a){if(t.align&&_>=b.length)break;if(t.align&&_{const i="number"==typeof t.padding?t.padding:.3,a=D(Ye(e,t.body),"","mord");a.setStyle("vertical-align",-$(a),"em"),a.setStyle("height",0);const o=D(a,"","mord"),r=D("","ML__box");r.setStyle("position","absolute"),r.setStyle("height",C(o)+$(o)+2*i,"em"),0!==i?r.setStyle("width","calc(100% + "+2*i+"em)"):r.setStyle("width","100%"),r.setStyle("top",-i,"em"),r.setStyle("left",-i,"em"),r.setStyle("z-index","-1"),r.setStyle("box-sizing","border-box"),t.backgroundcolor&&r.setStyle("background-color",t.backgroundcolor),t.framecolor&&r.setStyle("border","0.04em solid "+t.framecolor),t.border&&r.setStyle("border",t.border),o.setStyle("display","inline-block"),o.setStyle("height",C(o)+$(o),"em");const s=D([r,o]);return s.setStyle("position","relative"),s.setStyle("vertical-align",-i+$(o),"em"),s.height=C(o)+i,s.depth=$(o)+i,s.setLeft(i),s.setRight(i),s.setStyle("height",s.height+s.depth-2*i,"em"),s.setStyle("top",-i,"em"),s.setStyle("display","inline-block"),[s]}),Ze("enclose",(e,t)=>{const i=D(Ye(e,t.body),"","mord"),a="number"==typeof t.padding?t.padding:.3,o=D("","ML__notation");o.setStyle("position","absolute"),o.setStyle("height",C(i)+$(i)+2*a,"em"),o.height=C(i)+a,o.depth=$(i)+a,0!==a?o.setStyle("width","calc(100% + "+2*a+"em)"):o.setStyle("width","100%"),o.setStyle("top","0"),o.setStyle("left",-a,"em"),o.setStyle("z-index","-1"),t.backgroundcolor&&o.setStyle("background-color",t.backgroundcolor),t.notation.box&&o.setStyle("border",t.borderStyle),t.notation.actuarial&&(o.setStyle("border-top",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.madruwb&&(o.setStyle("border-bottom",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.roundedbox&&(o.setStyle("border-radius",(C(i)+$(i))/2,"em"),o.setStyle("border",t.borderStyle)),t.notation.circle&&(o.setStyle("border-radius","50%"),o.setStyle("border",t.borderStyle)),t.notation.top&&o.setStyle("border-top",t.borderStyle),t.notation.left&&o.setStyle("border-left",t.borderStyle),t.notation.right&&o.setStyle("border-right",t.borderStyle),t.notation.bottom&&o.setStyle("border-bottom",t.borderStyle);let r="";if(t.notation.horizontalstrike&&(r+='{const i="auto"===t.mathstyle?e.mathstyle:h[t.mathstyle],a=e.clone({mathstyle:i});let o=[];t.numerPrefix&&o.push(D(t.numerPrefix,"mord"));const s=t.continuousFraction?i:i.fracNum();o=o.concat(Ye(a.clone({mathstyle:s}),t.numer));const n=N(o,e.mathstyle.adjustTo(s));let l=[];t.denomPrefix&&l.push(D(t.denomPrefix,"mord"));const c=t.continuousFraction?i:i.fracDen();l=l.concat(Ye(a.clone({mathstyle:c}),t.denom));const d=N(l,e.mathstyle.adjustTo(c)),m=t.hasBarLine?r/i.sizeMultiplier:0;let p,u,f=0;i.size===h.displaystyle.size?(p=i.metrics.num1,f=m>0?3*m:.28,u=i.metrics.denom1):(m>0?(p=i.metrics.num2,f=m):(p=i.metrics.num3,f=.12),u=i.metrics.denom2);const g=n?$(n):0,y=d?C(d):0;let b;if(0===m){const e=p-g-(y-u);e{if(!t.body)return t.leftDelim?new Je("math","mopen",t.leftDelim).decompose(e):t.rightDelim?new Je("math","mclose",t.rightDelim).decompose(e):null;const i=e.clone(),a=Ye(i,t.body),o=i.mathstyle;let r=0,s=0,n=[];if(r=C(a)*o.sizeMultiplier,s=$(a)*o.sizeMultiplier,t.leftDelim&&(n.push(t.bind(e,Ke("mopen",t.leftDelim,r,s,i,"ML__open"))),n[n.length-1].applyStyle(t.getStyle())),a){for(let o=0;o{const i=e.mathstyle,a=Ye(e.cramp(),t.body),o=r/i.sizeMultiplier,s=D(null,e.mathstyle.adjustTo(h.textstyle)+" "+t.position+"-line");let n;if(s.height=o,s.maxFontSize=1,"overline"===t.position)n=B(e,[a,3*o,s,o]);else{const t=D(a);n=B(e,[o,s,3*o,t],"top",C(t))}return[D(n,t.position,"mord")]}),Ze("mop",(e,i)=>{var a;const o=e.mathstyle;let r,s=0,n=0;if(i.isSymbol){const t=o.size===h.displaystyle.size&&"\\smallint"!==i.symbol;r=T(t?"Size2-Regular":"Size1-Regular",i.body,"op-symbol "+(t?"large-op":"small-op"),"mop"),s=(r.height-r.depth)/2-o.metrics.axisHeight*o.sizeMultiplier,n=r.italic,r.applyStyle({color:i.isPhantom?"transparent":i.color,backgroundColor:i.isPhantom?"transparent":i.backgroundColor,cssId:i.cssId,cssClass:i.cssClass,letterShapeStyle:e.letterShapeStyle})}else r=t(i.body)?D(Ye(e,i.body),"","mop"):i.makeSpan(e,i.body);i.bind(e,r),i.isSymbol&&r.setTop(s);let l=r;if(i.superscript||i.subscript){const t=null!==(a=i.limits)&&void 0!==a?a:"auto";l="limits"===t||"auto"===t&&o.size===h.displaystyle.size?i.attachLimits(e,r,s,n):i.attachSupsub(e,r,"mop")}return[l]}),Ze("overunder",(e,t)=>{const i=t.svgBody?O(t.svgBody):Ye(e,t.body),a=e.clone({mathstyle:h.scriptstyle});let o,r;t.svgAbove?o=O(t.svgAbove):t.overscript&&t.overscript.length>0&&(o=D(Ye(a,t.overscript),e.mathstyle.adjustTo(a.mathstyle))),t.svgBelow?r=O(t.svgBelow):t.underscript&&t.underscript.length>0&&(r=D(Ye(a,t.underscript),e.mathstyle.adjustTo(a.mathstyle))),o&&r&&(r.setLeft(.3),r.setRight(.3),o.setLeft(.3),o.setRight(.3));let l=function(e,t,i,a,o){if(!i&&!a)return D(t,"op-over-under",o);let r=0,l=0;i&&(r=Math.max(s,.2-$(i))),a&&(l=Math.max(n,.6-C(a)));let c=null;if(a&&i){const o=C(a)+$(a)+$(t);c=B(e,[0,a,l,t,r,i,n],"bottom",o)}else a&&!i?c=B(e,[0,a,l,t],"top",C(t)):i&&!a&&(c=B(e,[$(t),t,Math.max(n,r),i],"bottom",$(t)));return D(c,"op-over-under",o)}(e,i,o,r,w(t.type)?t.type:"mrel");return(t.superscript||t.subscript)&&(l=t.attachLimits(e,l,0,0)),[l]}),Ze("phantom",(e,t)=>{if("vphantom"===t.phantomType){const i=D(Ye(e,t.body),"inner");return[D([i,D(null,"fix")],"rlap","mord")]}if("hphantom"===t.phantomType||"smash"===t.phantomType||"bsmash"===t.phantomType||"tsmash"===t.phantomType){const i=D(Ye(e,t.body),"","mord");return"bsmash"!==t.phantomType&&(i.height=0),"tsmash"!==t.phantomType&&(i.depth=0),[D(B(e,[i]),"","mord")]}return[D(Ye(e,t.body),"","mord")]}),Ze("surd",(e,t)=>{var i;const a=e.mathstyle,o=null!==(i=Ye(e.cramp(),t.body))&&void 0!==i?i:D(""),s=r/a.sizeMultiplier;let n=s;a.idC(o)+$(o)+l&&(l=(l+d-(C(o)+$(o)))/2),c.setTop(c.height-C(o)-(l+s));const m=D(null,e.mathstyle.adjustTo(h.textstyle)+" sqrt-line");m.applyStyle(t.getStyle()),m.height=s;const p=B(e,[o,l,m,s]);if(!t.index)return[t.bind(e,D([c,p],"sqrt","mord"))];const u=D(Ye(e.clone({mathstyle:h.scriptscriptstyle}),t.index),a.adjustTo(h.scriptscriptstyle)),f=D([D(B(e,[u],"shift",-.6*(Math.max(c.height,p.height)-Math.max(c.depth,p.depth))),"root"),c,p],"sqrt","mord");return f.height=c.height,f.depth=c.depth,[t.bind(e,f)]});class ot{constructor(e,t,i,a){this.index=0,this.style={},this.parseMode="math",this.smartFence=!1,this.tabularMode=!1,this.atoms=[],this.endCount=0,this.tokens=e,this.args=t,this.macros=i,this.onError=e=>a({before:je(this.tokens.slice(this.index,this.index+10)),after:je(this.tokens.slice(Math.max(0,this.index-10),this.index)),...e})}swapAtoms(e=[]){const t=this.atoms;return this.atoms=e,t}swapParseMode(e){const t=this.parseMode;return this.parseMode=e,t}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}get(){return this.endCount=0,this.index");)e=!0;return e}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){let e=!1;do{const t=this.matchWhitespace(),i=this.match("\\relax");e=!t&&!i}while(!e)}matchKeyword(e){const t=this.index;let i=this.end(),a="";for(;!i;){const t=this.get();at(t)?(a+=t,i=this.end()||a.length>=e.length):i=!0}const o=e.toUpperCase()===a.toUpperCase();return o||(this.index=t),o}scanString(){let e="",t=this.end();for(;!t;){if(this.match(""))e+=" ";else{const i=this.peek();"]"===i?t=!0:at(i)?e+=this.get():"\\"===i[0]?(this.onError({code:"unbalanced-braces"}),e+=this.get()):t=!0}t=t||this.end()}return e}scanBalancedString(){let e="",t=this.end(),i=1;for(;!t;){if(this.match(""))e+=" ";else{const t=this.get();"<{>"===t?(e+="{",i+=1):"<}>"===t?(i-=1,i>0?e+="}":this.index-=1):e+="<$>"===t?"$":"<$$>"===t?"$$":t}t=0===i||this.end()}return e}matchLiteralArg(){var e;let t="";if(this.match("<{>")){let i=1;for(;i>0&&!this.end();){const a=this.get();"<}>"===a?(i-=1,i>0&&(t+="}")):"<{>"===a?(i+=1,t+="{"):t+=null!==(e={"":" ","<$$>":"$$","<$>":"$"}[a])&&void 0!==e?e:a}}return t}scanColor(){return xe(this.scanString())}scanNumber(e=!0){var t,i;let a=!1,o=this.peek();for(;""===o||"+"===o||"-"===o;)this.get(),"-"===o&&(a=!a),o=this.peek();e=Boolean(e);let r=10,s=/[0-9]/;if(this.match("'"))r=8,s=/[0-7]/,e=!0;else if(this.match('"')||this.match("x"))r=16,s=/[0-9A-F]/,e=!0;else if(this.match("`"))return o=this.get(),o?o.startsWith("\\")&&2===o.length?(a?-1:1)*(null!==(t=o.codePointAt(1))&&void 0!==t?t:0):(a?-1:1)*(null!==(i=o.codePointAt(0))&&void 0!==i?i:0):NaN;let n="";for(;this.hasPattern(s);)n+=this.get();if(!e&&(this.match(".")||this.match(",")))for(n+=".";this.hasPattern(s);)n+=this.get();const l=e?parseInt(n,r):parseFloat(n);return a?-l:l}scanDimen(){const e=this.scanNumber(!1);let t;return this.matchWhitespace(),this.matchKeyword("pt")?t=m(e,"pt"):this.matchKeyword("mm")?t=m(e,"mm"):this.matchKeyword("cm")?t=m(e,"cm"):this.matchKeyword("ex")?t=m(e,"ex"):this.matchKeyword("px")?t=m(e,"px"):this.matchKeyword("em")?t=m(e,"em"):this.matchKeyword("bp")?t=m(e,"bp"):this.matchKeyword("dd")?t=m(e,"dd"):this.matchKeyword("pc")?t=m(e,"pc"):this.matchKeyword("in")?t=m(e,"in"):this.matchKeyword("mu")?t=m(e,"mu"):(this.onError({code:"missing-unit"}),t=m(e,"pt")),t}scanSkip(){const e=this.scanDimen();return this.matchWhitespace(),this.matchKeyword("plus")&&this.scanDimen(),this.matchWhitespace(),this.matchKeyword("minus")&&this.scanDimen(),e}scanColspec(){this.matchWhitespace();const e=[];for(;!this.end()&&"<}>"!==this.peek()&&"]"!==this.peek();){const t=this.get();if("c"===t||"r"===t||"l"===t)e.push({align:t});else if("|"===t)e.push({rule:!0});else if("@"===t){if(this.match("<{>")){const t=this.swapParseMode("math");e.push({gap:this.parse(e=>"<}>"===e)}),this.swapParseMode(t)}this.match("<}>")||this.onError({code:"unbalanced-braces"})}}return e}parseModeSet(){let e="";if(this.match("\\(")&&(e="\\)"),!e&&this.match("\\[")&&(e="\\]"),!e)return null;const t=this.swapParseMode("math"),i=new Je("math","group");return i.mathstyle="\\)"===e?"textstyle":"displaystyle",i.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(t),i.body&&0!==i.body.length?i:null}parseModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;const t=new Je("math","group");t.mathstyle="<$>"===e?"textstyle":"displaystyle",t.latexOpen="<$>"===e?"$":"$$",t.latexClose=t.latexOpen;const i=this.swapParseMode("math");return t.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(i),t.body&&0!==t.body.length?t:null}parseEnvironment(){if(!this.match("\\begin"))return null;const e=this.parseArgument("string");if(!e)return null;const t=re(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const i=[];if(null==t?void 0:t.params)for(const a of t.params)if(a.isOptional)i.push(this.parseOptionalArgument(a.type));else{const t=this.parseArgument(a.type);t||this.onError({code:"missing-argument",arg:e}),i.push(t)}const a=this.parseMode,o=this.tabularMode,r=this.swapAtoms([]);this.tabularMode=t.tabular;const s=[],n=[];let l=[],c=!1;do{if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c&&this.match("\\end")&&(this.parseArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c)if(this.matchColumnSeparator())l.push(this.swapAtoms([]));else if(this.matchRowSeparator()){l.push(this.swapAtoms([]));let e=0;this.matchWhitespace(),this.match("[")&&(e=this.scanDimen(),this.matchWhitespace(),this.match("]")),n.push(e||0),s.push(l),l=[]}else this.atoms=this.atoms.concat(this.parse(e=>"<}>"===e||"&"===e||"\\end"===e||"\\cr"===e||"\\\\"===e))}while(!c);l.push(this.swapAtoms([])),l.length>0&&s.push(l);const d=this.swapAtoms(r);if(this.parseMode=a,this.tabularMode=o,!t.tabular&&0===d.length)return null;if(t.tabular&&0===s.length)return null;const m=new Je(this.parseMode,"array",d);return Object.assign(m,t.parser(e,i,s)),m.array=s,m.rowGaps=n,m.environmentName=e,m}parse(e){var t;const i=this.style;e||(e=e=>"<}>"===e);let a="",o=null,r=[],s=null;const n=this.swapAtoms([]);for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!a?(a=this.get(),o=se(a,"math",this.macros),o&&(r=this.parseArguments(o)[1]),s=this.swapAtoms([])):this.parseToken();let l;return a?(r.unshift(this.swapAtoms(n)),s&&r.unshift(s),l=[new Je(this.parseMode,o.type,null!==(t=o.value)&&void 0!==t?t:a.slice(1),o.parse?o.parse(a,r):null)],l[0].symbol=a):l=this.swapAtoms(n),this.style=i,l}parseGroup(){if(!this.match("<{>"))return null;const e=new Je(this.parseMode,"group");return e.body=this.parse(e=>"<}>"===e),this.match("<}>")||this.onError({code:"unbalanced-braces"}),e.latexOpen="{",e.latexClose="}",e}scanSmartFence(){if(this.matchWhitespace(),!this.match("("))return null;const e=new Je(this.parseMode,"leftright");e.leftDelim="(",e.inner=!1;const t=this.swapAtoms([]);let i=1;for(;!this.end()&&0!==i;)this.match("(")&&(i+=1),this.match(")")&&(i-=1),0!==i&&this.parseToken();return 0===i&&this.match(")"),e.rightDelim=0===i?")":"?",e.body=this.swapAtoms(t),e}scanDelim(){this.matchWhitespace();const e=this.get();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;let t=".";("\\"===e[0]||at(e))&&(t=e);const i=se(t,"math",this.macros);return i?i.mode&&!i.mode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:t}),null):"mopen"===i.type||"mclose"===i.type||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(t)?t:(this.onError({code:"unexpected-delimiter",arg:t}),null):(this.onError({code:"unknown-command",arg:t}),null)}parseLeftRight(){if(this.match("\\right")||this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),null;const e=this.style;let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const i=this.scanDelim();if(!i)return null;const a=this.swapAtoms([]);for(;!this.end()&&!this.match(t);)this.parseToken();this.style=e;const o=this.scanDelim(),r=new Je(this.parseMode,"leftright","",this.style);return r.leftDelim=i,r.rightDelim=null!=o?o:void 0,r.inner="right"===t,r.body=this.swapAtoms(a),r}parseSupSub(){var e,t;if("math"!==this.parseMode)return!1;let i=!1,a=this.peek();for(;"^"===a||"_"===a||"'"===a;){const o="_"===a?"subscript":"superscript";if(this.match("^")||this.match("_")){const t=this.parseArgument("math");if(t){const a=this.lastSubsupAtom();a[o]=(null!==(e=a[o])&&void 0!==e?e:[]).concat(t),i=!0}}else if(this.match("'")){const e=this.lastSubsupAtom(),a=new Je(e.mode,"mord","′");a.symbol="\\prime",e.superscript=null!==(t=e.superscript)&&void 0!==t?t:[],e.superscript.push(a),i=!0}a=this.peek()}return i}parseLimits(){if(this.match("\\limits")){const e=this.lastSubsupAtom();return e.limits="limits",e.explicitLimits=!0,!0}if(this.match("\\nolimits")){const e=this.lastSubsupAtom();return e.limits="nolimits",e.explicitLimits=!0,!0}return!1}parseArguments(e){if(!e||!e.params)return[void 0,[]];let t;const i=[];let a=e.infix?2:0;for(;a")){if("delim"===e)return null!==(t=this.scanDelim())&&void 0!==t?t:".";if(/^(math|text)$/.test(e)){const t=this.swapParseMode(e),i=this.parseSimpleToken();return this.swapParseMode(t),i}}const a=this.parseMode;this.parseMode=e;const o=this.swapAtoms([]);if("string"===e)i=this.scanString(),this.skipUntilToken("<}>");else if("balanced-string"===e)i=this.scanBalancedString(),this.skipUntilToken("<}>");else if("number"===e)i=this.scanNumber(),this.skipUntilToken("<}>");else if("dimen"===e)i=this.scanDimen(),this.skipUntilToken("<}>");else if("skip"===e)i=this.scanSkip(),this.skipUntilToken("<}>");else if("colspec"===e)i=this.scanColspec(),this.skipUntilToken("<}>");else if("color"===e)i=this.scanColor()||"#ffffff",this.skipUntilToken("<}>");else if("delim"===e)i=this.scanDelim()||".",this.skipUntilToken("<}>");else{const t=this.index;let a=1;do{const e=this.get();"<}>"===e&&(a-=1),"<{>"===e&&(a+=1)}while(a>0&&!this.end());if(i=function(e,t,i,a){var o;return(null===(o=x[e])||void 0===o?void 0:o.parse)?x[e].parse(t,i,a):null}(e,this.tokens.slice(t,this.index-1),this.onError,{args:this.args,macros:this.macros,smartFence:this.smartFence,style:this.style,parse:(e,t,a)=>{const o=new ot(t,a.args,a.macros,this.onError);return o.parseMode=e,o.style=a.style,i=o.parse(),[i,t.slice(o.index)]}}),!i){this.index=t;do{this.atoms=this.atoms.concat(this.parse())}while(!this.match("<}>")&&!this.end())}}this.parseMode=a;const r=this.swapAtoms(o);return null!=i?i:r}parseOptionalArgument(e){var t;if(e="auto"===e?this.parseMode:e,this.matchWhitespace(),!this.match("["))return null;const i=this.parseMode;this.parseMode=e;const a=this.swapAtoms();let o;for(;!this.end()&&!this.match("]");)if("string"===e)o=this.scanString();else if("number"===e)o=this.scanNumber();else if("dimen"===e)o=this.scanDimen();else if("skip"===e)o=this.scanSkip();else if("colspec"===e)o=this.scanColspec();else if("color"===e)o=null!==(t=this.scanColor())&&void 0!==t?t:"#ffffff";else if("bbox"===e){const e=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/),t={};for(const i of e){const e=xe(i);if(e)t.backgroundcolor=e;else{const e=i.match(/^\s*([0-9.]+)\s*([a-z][a-z])/);if(e)t.padding=m(e[1],e[2]);else{const e=i.match(/^\s*border\s*:\s*(.*)/);e&&(t.border=e[1])}}}o=t}else this.atoms=this.atoms.concat(this.parse(e=>"]"===e));this.parseMode=i;const r=this.swapAtoms(a);return null!=o?o:r}parseSimpleToken(){const e=this.get();if(!e)return null;let i=null;if(""===e)"text"===this.parseMode&&(i=new Je("text",""," ",this.style),i.symbol=" ");else if("\\"===e[0]){if("\\placeholder"===e)i=new Je(this.parseMode,"placeholder",this.parseArgument("string"),this.style),i.captureSelection=!0;else if("\\char"===e){const e=this.index;let t=Math.floor(this.scanNumber(!0));(!isFinite(t)||t<0||t>1114111)&&(t=10067),i=new Je(this.parseMode,"math"===this.parseMode?"mord":"",String.fromCodePoint(t)),i.symbol="\\char",i.latex="\\char"+je(this.tokens.slice(e,this.index))}else if("\\hskip"===e||"\\kern"===e){const t=this.scanSkip();isFinite(t)&&(i=new Je(this.parseMode,"spacing",null,this.style),i.width=t,i.symbol=e,i.latex=e)}else if(i=this.scanMacro(e),!i){const t=se(e,this.parseMode,{});if(!t)return this.onError({code:"unknown-command",arg:e}),i=new Je("math","error",e),i.symbol=e,i.latex=e,[i];if(t.mode&&!t.mode.includes(this.parseMode))return this.onError({code:"invalid-command",arg:e}),i=new Je("math","error",e),i.symbol=e,i.latex=e,[i];const a=this.index,[o,r]=this.parseArguments(t);if(!r)return null;if(t.infix)this.onError({code:"too-many-infix-commands",arg:e});else{if(t.parse){const a=t.parse(e,r);if(a.type)i=new Je(this.parseMode,t.type,o?this.parseArgument(o):null,{...this.style,...a});else{const e=this.parseMode;if(a.mode&&(this.parseMode=a.mode,delete a.mode),a.mathstyle){this.parseMode="math";const e=new Je("math","mathstyle");e.mathstyle=a.mathstyle,this.atoms.push(e)}if(o){const e=this.style;this.style={...this.style,...a},i=this.parseArgument(o),this.style=e}else this.style={...this.style,...a};this.parseMode=e}}else{const a={...this.style,variant:t.variant||this.style.variant,variantStyle:t.variantStyle||this.style.variantStyle};i=new Je(this.parseMode,t.type||"mop",t.value||e,a)}if(i instanceof Je&&!/^\\(llap|rlap|class|cssId)$/.test(e)){i.symbol=e;const t=je(this.tokens.slice(a,this.index));if(t&&(i.latex=i.symbol+t),i.isFunction&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}}}}else if(at(e)){const t=se(e,this.parseMode,this.macros);if(t){const a={...this.style};i=new Je(this.parseMode,t.type,t.value||e,a),t.isFunction&&(i.isFunction=!0)}else i=new Je(this.parseMode,"math"===this.parseMode?"mord":"",e,this.style);if(i.symbol=e,i.latex=te(this.parseMode,e),(null==t?void 0:t.isFunction)&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}else"<}>"===e?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e});return i&&!t(i)?[i]:i}scanMacro(e){var t;const i=e.slice(1);if(!this.macros||!this.macros[i])return null;const a=this.index,o=[];let r,s=0;"string"==typeof this.macros[i]?(r=this.macros[i],/(^|[^\\])#1/.test(r)&&(s=1),/(^|[^\\])#2/.test(r)&&(s=2),/(^|[^\\])#3/.test(r)&&(s=3),/(^|[^\\])#4/.test(r)&&(s=4),/(^|[^\\])#5/.test(r)&&(s=5),/(^|[^\\])#6/.test(r)&&(s=6),/(^|[^\\])#7/.test(r)&&(s=7),/(^|[^\\])#8/.test(r)&&(s=8),/(^|[^\\])#9/.test(r)&&(s=9)):(r=this.macros[i].def,s=this.macros[i].args||0);for(let e=1;e<=s;e++)o[e]=this.matchLiteralArg();o["?"]=null===(t=this.args)||void 0===t?void 0:t["?"];const n=new Je(this.parseMode,"group",rt(r,this.parseMode,o,this.macros,!1,this.onError));return n.captureSelection=!0,n.symbol=e,n.latex=e+je(this.tokens.slice(a,this.index)),n}parseToken(){let e=this.parseEnvironment()||this.parseModeShift()||this.parseModeSet()||this.parseGroup()||this.parseLeftRight();return!(e||!this.parseSupSub()&&!this.parseLimits())||(e||(e=this.parseSimpleToken()),t(e)?this.atoms=this.atoms.concat(e):e&&this.atoms.push(e),null!==e)}}function rt(e,t,i,a,o=!1,r){let s=[];const n=new ot(We(e,i),i,a,t=>{"function"==typeof r&&r({...t,latex:e})});for(n.parseMode=t||"math",o&&(n.smartFence=!0);!n.end();){const e=n.parse();e&&(s=s.concat(e))}return s}var st,nt;const lt=null!==(nt=null===(st=document.currentScript)||void 0===st?void 0:st.src)&&void 0!==nt?nt:function(){const e=String((new Error).stack).replace(/^Error.*\n/,"").split("\n");if(0===e.length)return"";const t=e[0].match(/http.*js/);return t?t[0]:""}();async function ct(e,t){var i;if((null===(i=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))||void 0===i||!i)&&"fonts"in document){const i=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"];let a=!1;if(!/firefox/i.test(navigator.userAgent))try{a=i.every(e=>document.fonts.check("16px "+e))}catch(e){a=!1}if(!a){if(document.body.classList.contains("ML__fonts-loading"))return;document.body.classList.add("ML__fonts-loading");const i=new URL(null!=e?e:"./fonts",lt).toString(),a=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular",{style:"italic"}],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(e=>function(e,t,i={}){return new FontFace(e,`url(${t}.woff2) format('woff2'), url(${t}.woff) format('woff')`,i)}(e[0].replace(/-[a-zA-Z]+$/,""),i+"/"+e[0],e[1]));try{(await Promise.all(a.map(e=>{try{return e.load()}catch(e){"function"==typeof t&&t({code:"font-not-found",arg:e})}}))).forEach(e=>document.fonts.add(e)),document.body.classList.remove("ML__fonts-loading")}catch(e){}}}}function dt(e,t){var i,a;if(!t)return null;let o=null!==(i=null==e?void 0:e.getRootNode())&&void 0!==i?i:null===document||void 0===document?void 0:document.head;if(!o)return null;o===document&&(o=document.head);const r=function(e){let t=0;if(0===e.length)return t;for(let i=0;i{var e;const t=document.head.querySelector(`style[data-id="${r}"]`);if(t){const i=parseFloat(null!==(e=t.getAttribute("data-refcount"))&&void 0!==e?e:"0");1===i?t.remove():t.setAttribute("data-refcount",Number(i-1).toString())}}}}function mt(e){return 0===e.length||1===e.length&&"first"===e[0].type}function pt(e){const t=e.siblings();for(let e=t.length-1;e>=0;e--)t[e].isSuggestion&&t.splice(e,1)}function ut(e){let t=1,i=e.ancestor(t);for(;i;)i.latex=void 0,t+=1,i=e.ancestor(t)}function ht(e,t,i={accessibleAtomsOnly:!1}){const a={...t},o=i.accessibleAtomsOnly?e.lastPosition-1:e.lastPosition;return-1===a.end?a.end=o:isNaN(a.end)?a.end=a.start:a.end=Math.min(a.end,o),a.start1&&(t.extent=parseInt(i[1]));const a=i[0].split("/");for(const e of a){const i=e.match(/([^:]*):(.*)/);i&&t.path.push({relation:i[1],offset:parseInt(i[2])})}return t}function yt(e,t){let i=0,a=-1,o=!1;for(;!o;)a+=1,o=a>=e.length||a>=t.length,o=o||!(e[a].relation===t[a].relation&&e[a].offset===t[a].offset);return i=a===e.length&&a===t.length?0:a+1===e.length&&a+1===t.length&&e[a].relation===t[a].relation?1:2,i}function bt(e){return gt(ft(e)).path}function vt(e,t){let i=0;for(let a=0;a0;)a.col+=1,(!e[a.row]||a.col>=e[a.row].length)&&(a.col=0,a.row+=1),i-=1;return a}function kt(e,i,a=!0){var o;let r;return"object"!=typeof i&&(i=xt(e,i)),t(e[i.row])&&(r=null!==(o=e[i.row][i.col])&&void 0!==o?o:null),a&&r&&(0===r.length||"first"!==r[0].type)&&r.unshift(new Je("math","first")),r}function _t(e){let t=0,i=0,a=1;for(const t of e)i+=1,t.length>a&&(a=t.length);return t=i*a,t}function wt(e,t,i){const a={...t};if(a.row+=i,a.row<0){if(a.col+=i,a.row=e.length-1,a.col<0)return null;for(;a.row>=0&&!kt(e,a);)a.row-=1;if(a.row<0)return null}else if(a.row>=e.length){for(a.col+=i,a.row=0;a.rowe.length-1)return null}return a}const Mt={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML_bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},zt={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[0-9A-Z ]$/,fraktur:/^[0-9A-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/,"sans-serif":/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/},St=/^[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5]$/,Lt=[/^[a-z]$/,/^[A-Z]$/,St,/^[\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9]$/],At={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]};k("math",{emitLatexRun:function(e,t,i){let a=e.variant;return e.variantStyle&&"up"!==e.variantStyle&&(a+="-"+e.variantStyle),Ue(v(t,"color").map(t=>{const o=Ue(v(t,"variant").map(t=>{let o=t[0].variant;if(t[0].variantStyle&&"up"!==t[0].variantStyle&&(o+="-"+t[0].variantStyle),t.every(t=>{const i=se(t.symbol,e.mode,null);if(!i||!i.variant&&!i.variantStyle)return!1;let a=t.variant;return t.variantStyle&&"up"!==t.variantStyle&&(a+="-"+t.variantStyle),a===o}))return Ue(t.map(e=>e.toLatex(i)));let r="";return o&&o!==a&&(r={calligraphic:"\\mathcal{",fraktur:"\\mathfrak{","double-struck":"\\mathbb{",script:"\\mathscr{",monospace:"\\mathtt{","sans-serif":"\\mathsf{",normal:"\\mathrm{","normal-italic":"\\mathit{","normal-bold":"\\mathbf{","normal-bolditalic":"\\mathbfit{",ams:"","ams-italic":"\\mathit{","ams-bold":"\\mathbf{","ams-bolditalic":"\\mathbfit{",main:"","main-italic":"\\mathit{","main-bold":"\\mathbf{","main-bolditalic":"\\mathbfit{"}[o]),r+Ue(t.map(e=>e.toLatex(i)))+(r?"}":"")}));return!t[0].color||e&&e.color===t[0].color?o:"\\textcolor{"+ke(t[0].color)+"}{"+o+"}"}))},applyStyle:function(e,t){const i="auto"!==t.letterShapeStyle&&t.letterShapeStyle?t.letterShapeStyle:"tex";let a=t.variant||"normal",o=t.variantStyle||"";"normal"===a&&!o&&/\u00a3|\u0131|\u0237/.test(e.body)&&(a="main",o="italic"),"normal"!==a||o||1!==e.body.length||Lt.forEach((t,a)=>{t.test(e.body)&&"it"===At[i][a]&&(o="italic")}),"up"===o&&(o="");const r=o?a+"-"+o:a,[s,n]=Mt[r];return zt[a]&&!zt[a].test(e.body)?(e.body=ee(e.body,a,o),e.variant="",e.variantStyle="",null):(St.test(e.body)&&(e.classes+=" lcGreek"),n&&(e.classes+=" "+n),s)}});const Ct={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"};k("text",{emitLatexRun:function(e,t,i){const a=function(e,t,i){return Ue(v(t,"color").map(t=>{const i=function(e,t,i){return function(e,t,i){return Ue(v(t,"fontFamily").map(e=>{const t=function(e,t,i){return Ue(v(t,"fontSize").map(e=>{const t=function(e,t,i){return Ue(v(t,"fontSeries").map(e=>{const t=function(e,t,i){return Ue(v(t,"fontShape").map(e=>{const t=function(e,t,i){let a=!1;return Ue(t.map(e=>{let t="",i="";return e.latex?t=e.latex:"string"==typeof e.body?t=ie("text",e.body):e.symbol&&(t=e.symbol.replace(/\\/g,"\\backslash ")),!a||t&&!/^[a-zA-Z0-9*]/.test(t)||(i="{}"),a=/\\[a-zA-Z0-9]+\*?$/.test(t),i+t}))}(0,e);return"it"===e[0].fontShape?"\\textit{"+t+"}":"sl"===e[0].fontShape?"\\textsl{"+t+"}":"sc"===e[0].fontShape?"\\textsc{"+t+"}":"n"===e[0].fontShape?"\\textup{"+t+"}":e[0].fontShape?"\\fontshape{"+e[0].fontShape+"}"+t:t}))}(0,e);return"b"===e[0].fontSeries?"\\textbf{"+t+"}":"l"===e[0].fontSeries?"\\textlf{"+t+"}":"m"===e[0].fontSeries?"\\textmd{"+t+"}":e[0].fontSeries?"\\fontseries{"+e[0].fontSeries+"}"+t:t}))}(0,e),i={size1:"tiny",size2:"scriptsize",size3:"footnotesize",size4:"small",size5:"normalsize",size6:"large",size7:"Large",size8:"LARGE",size9:"huge",size10:"Huge"}[e[0].fontSize]||"";return i?"\\"+i+" "+t:t}))}(0,e),i={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[e[0].fontFamily]||"";return i?"\\"+i+"{"+t+"}":e[0].fontFamily?"\\fontfamily{"+e[0].fontFamily+"}"+t:t}))}(0,t)}(0,t);return!t[0].color||"none"===t[0].color||e&&e.color===t[0].color?i:"\\textcolor{"+ke(t[0].color)+"}{"+i+"}"}))}(e,t);return t.every(e=>e.fontSeries||e.fontShape||e.fontFamily)&&t[0].mode===e.mode?a:`\\text{${a}}`},applyStyle:function(e,t){const i=t.fontFamily;if(Ct[i]?e.classes+=" "+Ct[i]:i&&e.setStyle("font-family",i),t.fontShape&&(e.classes+=" "+({it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape]||"")),t.fontSeries){const i=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);i&&(e.classes+=" "+({ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[i[1]||""]||""),e.classes+=" "+({uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[i[2]||""]||""))}return"Main-Regular"},parse:(e,t,i)=>function(e,t,i){let a,o=[];for(;e.length>0;){const r=e.shift();if(""===r)a=new Je("text",""," ",i.style),a.symbol=" ",o.push(a);else if("\\"===r[0]){let t;e.unshift(r),[t,e]=i.parse("text",e,i),o=[...o,...t]}else if("<$>"===r||"<$$>"===r){const t=e.slice(0,e.findIndex(e=>e===r));e=e.slice(t.length+1);const[a]=i.parse("math",t,i);o=[...o,...a]}else if("<{>"===r||"<}>"===r);else{const e=se(r,"text",i.macros);!e||e.mode&&!e.mode.includes("text")?t({code:"unexpected-token"}):(a=new Je("text",e?e.type:"",e?e.value:r,i.style),a.symbol=r,a.latex=Y("text",r),o.push(a))}}return[o,e]}(e,t,i)[0]}),ue(["ce","pu"],"{chemformula:balanced-string}",null,(e,t)=>({type:"group",mode:"chem",body:rt(qt.go($t.go(t[0],"\\pu"===e?"pu":"ce"))),latexOpen:"\\"+e+"{",latexClose:"}"}));var $t={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var i,a="0",o={parenthesisLevel:0};e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var r=10,s=[];;){i!==e?(r=10,i=e):r--;var n=$t.stateMachines[t],l=n.transitions[a]||n.transitions["*"];e:for(var c=0;c0))return s;if(m.revisit||(e=d.remainder),!m.toContinue)break e}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var i=0;i":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return $t.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return $t.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return $t.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return $t.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return $t.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return $t.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return $t.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var i=$t.patterns.findObserveGroups(e,"","$","$","");return i&&(t=i.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,i,a,o,r,s,n,l,c){var d=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var i=e.match(t);return i?i[0]:null},m=d(e,t);if(null===m)return null;if(e=e.substr(m.length),null===(m=d(e,i)))return null;var p=function(e,t,i){for(var a=0;t":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var i;if((e.d||"").match(/^[0-9]+$/)){var a=e.d;e.d=void 0,i=this.output(e),e.b=a}else i=this.output(e);return $t.actions["o="](e,t),i},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var i=[];return $t.concatArray(i,this.output(e)),$t.concatArray(i,$t.actions.bond(e,t,"-")),i}e.d=t},"- after o/d":function(e,t,i){var a=$t.patterns.match_("orbital",e.o||""),o=$t.patterns.match_("one lowercase greek letter $",e.o||""),r=$t.patterns.match_("one lowercase latin letter $",e.o||""),s=$t.patterns.match_("$one lowercase latin letter$ $",e.o||""),n="-"===t&&(a&&""===a.remainder||o||r||s);!n||e.a||e.b||e.p||e.d||e.q||a||!r||(e.o="$"+e.o+"$");var l=[];return n?($t.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(a=$t.patterns.match_("digits",e.d||""),i&&a&&""===a.remainder?($t.concatArray(l,$t.actions["d="](e,t)),$t.concatArray(l,this.output(e))):($t.concatArray(l,this.output(e)),$t.concatArray(l,$t.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:$t.go(t,"o")}},comma:function(e,t){var i=t.replace(/\s*$/,"");return i!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:i}:{type_:"comma enumeration M",p1:i}},output:function(e,t,i){var a,o,r;for(var s in e.r?(o="M"===e.rdt?$t.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:$t.go(e.rd),r="M"===e.rqt?$t.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:$t.go(e.rq),a={type_:"arrow",r:e.r,rd:o,rq:r}):(a=[],(e.a||e.b||e.p||e.o||e.q||e.d||i)&&(e.sb&&a.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===i?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&$t.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),a.push({type_:"chemfive",a:$t.go(e.a,"a"),b:$t.go(e.b,"bd"),p:$t.go(e.p,"pq"),o:$t.go(e.o,"o"),q:$t.go(e.q,"pq"),d:$t.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType}))),e)"parenthesisLevel"!==s&&"beginsWithBond"!==s&&delete e[s];return a},"oxidation-output":function(e,t){var i=["{"];return $t.concatArray(i,$t.go(t,"oxidation")),i.push("}"),i},"frac-output":function(e,t){return{type_:"frac-ce",p1:$t.go(t[0]),p2:$t.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:$t.go(t[0]),p2:$t.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:$t.go(t[0]),p2:$t.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:$t.go(t[0]),p2:$t.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:$t.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,i){return{type_:"operator",kind_:i||t}}}},a:{transitions:$t.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:$t.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var i in e)delete e[i];return t}}}},pq:{transitions:$t.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:$t.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:$t.go(t[1],"pq")}}}},bd:{transitions:$t.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:$t.go(t[1],"bd")}}}},oxidation:{transitions:$t.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"tex-math tight":{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"9,9":{transitions:$t.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),t[1]&&($t.concatArray(i,$t.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?$t.concatArray(i,$t.go(t[2],"pu-9,9")):i.push(t[2])),t[3]=t[4]||t[3],t[3]&&(t[3]=t[3].trim(),"e"===t[3]||"*"===t[3].substr(0,1)?i.push({type_:"cdot"}):i.push({type_:"times"}))),t[3]&&i.push("10^{"+t[5]+"}"),i},"number^":function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),$t.concatArray(i,$t.go(t[1],"pu-9,9")),i.push("^{"+t[2]+"}"),i},operator:function(e,t,i){return{type_:"operator",kind_:i||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,i=$t.patterns.match_("{(...)}",e.d||"");i&&""===i.remainder&&(e.d=i.match_);var a=$t.patterns.match_("{(...)}",e.q||"");if(a&&""===a.remainder&&(e.q=a.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:$t.go(e.d,"pu"),q:$t.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:o.d,p2:o.q}:(t=o.d,o.d.length>1||o.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),$t.concatArray(t,o.q))}else t=$t.go(e.d,"pu-2");for(var r in e)delete e[r];return t}}},"pu-2":{transitions:$t.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var i=$t.patterns.match_("{(...)}",e.rm||"");t=i&&""===i.remainder?$t.go(i.match_,"pu"):{type_:"rm",p1:e.rm}}for(var a in e)delete e[a];return t}}},"pu-9,9":{transitions:$t.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var i=e.text_.length%3;0===i&&(i=3);for(var a=e.text_.length-3;a>0;a-=3)t.push(e.text_.substr(a,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,i)),t.reverse()}else t.push(e.text_);for(var o in e)delete e[o];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var i=e.text_.length-3,a=0;a":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"rightleftarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"rightequilibrium";case"<<=>":return"leftequilibrium";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";case"~=":case"~--":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"-~-":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};const Dt={"''":{mode:"math",value:"^{\\doubleprime}"},alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:{mode:"math",value:"\\pi"},"pi ":{mode:"text",value:"\\pi "},Pi:{mode:"math",value:"\\Pi"},theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:{mode:"math",value:"\\nabla"},grad:{mode:"math",value:"\\nabla"},del:{mode:"math",value:"\\partial"},"∞":"\\infty",oo:{mode:"math",after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"∑":{mode:"math",value:"\\sum"},sum:{mode:"math",value:"\\sum_{#?}^{#?}"},prod:{mode:"math",value:"\\prod_{#?}^{#?}"},sqrt:{mode:"math",value:"\\sqrt{#?}"},"∆":{mode:"math",value:"\\differentialD"},"∂":{mode:"math",value:"\\differentialD"},arcsin:{mode:"math",value:"\\arcsin"},arccos:{mode:"math",value:"\\arccos"},arctan:{mode:"math",value:"\\arctan"},sin:{mode:"math",value:"\\sin"},sinh:{mode:"math",value:"\\sinh"},cos:{mode:"math",value:"\\cos"},cosh:{mode:"math",value:"\\cosh"},tan:{mode:"math",value:"\\tan"},tanh:{mode:"math",value:"\\tanh"},sec:{mode:"math",value:"\\sec"},csc:{mode:"math",value:"\\csc"},cot:{mode:"math",value:"\\cot"},log:{mode:"math",value:"\\log"},ln:{mode:"math",value:"\\ln"},exp:{mode:"math",value:"\\exp"},lim:{mode:"math",value:"\\lim_{#?}"},dx:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:{mode:"math",value:"\\forall"},EE:{mode:"math",value:"\\exists"},"!EE":{mode:"math",value:"\\nexists"},"&&":{mode:"math",value:"\\land"},xin:{mode:"math",after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},in:{mode:"math",after:"nothing+letter+closefence",value:"\\in"},"!in":{mode:"math",value:"\\notin"},NN:"\\N",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",PP:"\\P",xx:{mode:"math",value:"\\times"},"+-":{mode:"math",value:"\\pm"},"!=":{mode:"math",value:"\\ne"},">=":{mode:"math",value:"\\ge"},"<=":{mode:"math",value:"\\le"},"<<":{mode:"math",value:"\\ll"},">>":{mode:"math",value:"\\gg"},"~~":{mode:"math",value:"\\approx"},"≈":{mode:"math",value:"\\approx"},"?=":{mode:"math",value:"\\questeq"},"÷":{mode:"math",value:"\\div"},"¬":{mode:"math",value:"\\neg"},":=":{mode:"math",value:"\\coloneq"},"::":{mode:"math",value:"\\Colon"},"(:":{mode:"math",value:"\\langle"},":)":{mode:"math",value:"\\rangle"},beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},"eta ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta "},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},"mu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu "},nu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},"nu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu "},"µ":"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega","Ω":"\\omega",forall:{mode:"math",value:"\\forall"},exists:{mode:"math",value:"\\exists"},"!exists":{mode:"math",value:"\\nexists"},":.":{mode:"math",value:"\\therefore"},liminf:"\\operatorname*{lim~inf}_{#?}",limsup:"\\operatorname*{lim~sup}_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:{mode:"math",value:"\\mod"},max:{mode:"math",value:"\\max"},min:{mode:"math",value:"\\min"},erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:{mode:"math",value:"\\operatorname{bessel}"},mean:{mode:"math",value:"\\operatorname{mean}"},median:{mode:"math",value:"\\operatorname{median}"},fft:{mode:"math",value:"\\operatorname{fft}"},lcm:{mode:"math",value:"\\operatorname{lcm}"},gcd:{mode:"math",value:"\\operatorname{gcd}"},randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:{mode:"math",value:"\\operatorname{Re}"},Im:{mode:"math",value:"\\operatorname{Im}"},mm:{mode:"math",after:"nothing+digit",value:"\\operatorname{mm}"},cm:{mode:"math",after:"nothing+digit",value:"\\operatorname{cm}"},km:{mode:"math",after:"nothing+digit",value:"\\operatorname{km}"},kg:{mode:"math",after:"nothing+digit",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","->":"\\to","|->":"\\mapsto","--\x3e":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","{":"\\{","}":"\\}","*":"\\cdot"};function Tt(e,t,i){var a;return function(e,t){if(!t)return"";if("string"==typeof t)return t;if(!e)return t.value;let i=!1,a=!1,o=!1,r=!1,s=!1,n=!1,l=!1,c=!1,d=!1,m=!1,p=!1,u=!1,h=!1,f=!1,g=e[e.length-1],y=e.length-1;for(;g&&/msubsup|placeholder/.test(g.type);)y-=1,g=e[y];if(i=!g||"first"===g.type,g){if(void 0!==t.mode&&g.mode!==t.mode)return"";h="text"===g.mode,a=!h&&"mord"===g.type&&j.test(g.body),o=!h&&"mord"===g.type&&/[0-9]+$/.test(g.body),r=!h&&g.isFunction,s="genfrac"===g.type,n="surd"===g.type,l="mbin"===g.type,c="mrel"===g.type,d="mpunct"===g.type||"minner"===g.type,m=Boolean(g.array),p="mopen"===g.type,u="mclose"===g.type||"leftright"===g.type,f="space"===g.type}return void 0!==t.after?/nothing/.test(t.after)&&i||/letter/.test(t.after)&&a||/digit/.test(t.after)&&o||/function/.test(t.after)&&r||/frac/.test(t.after)&&s||/surd/.test(t.after)&&n||/binop/.test(t.after)&&l||/relop/.test(t.after)&&c||/punct/.test(t.after)&&d||/array/.test(t.after)&&m||/openfence/.test(t.after)&&p||/closefence/.test(t.after)&&u||/text/.test(t.after)&&h||/space/.test(t.after)&&f?t.value:"":t.value}(e,null!==(a=null==i?void 0:i[t])&&void 0!==a?a:Dt[t])}function Kt(e,t){if(!e)return["latex",""];if(e.length<=1)return["latex",e];if(!t||"ASCIIMath"!==t.format){const t=e.trim();if(t.startsWith("$$")&&t.endsWith("$$")||t.startsWith("\\[")&&t.endsWith("\\]")||t.startsWith("\\(")&&t.endsWith("\\)"))return["latex",t.substring(2,t.length-2)];if(t.startsWith("$")&&t.endsWith("$"))return["latex",t.substring(1,t.length-1)];if(e=e.replace(/\\\\([^\s\n])/g,"\\$1"),/\\/.test(e))return["latex",e]}return e=(e=(e=(e=(e=(e=e.replace(/\u2061/gu,"")).replace(/\u3016/gu,"{")).replace(/\u3017/gu,"}")).replace(/([^\\])sinx/g,"$1\\sin x")).replace(/([^\\])cosx/g,"$1\\cos x ")).replace(/\u2013/g,"-"),[(null==t?void 0:t.format)||"ASCIIMath",Et(e,null!=t?t:{})]}function Et(e,t){var i,a,o,r,s,n,l;if(!e)return"";let c,d=!1;if(d||"^"!==e[0]&&"_"!==e[0]||(c=Nt(e.substr(1),{inlineShortcuts:null!==(i=null==t?void 0:t.inlineShortcuts)&&void 0!==i?i:{},noWrap:!0}),e=e[0]+"{"+c.match+"}",e+=Et(c.rest,t),d=!0),!d&&(c=e.match(/^(sqrt|\u221a)(.*)/),c)&&(c=Nt(c[2],{inlineShortcuts:null!==(a=null==t?void 0:t.inlineShortcuts)&&void 0!==a?a:{},noWrap:!0}),e="\\sqrt{"+(c.match||"\\placeholder{}")+"}",e+=Et(c.rest,t),d=!0),!d&&(c=e.match(/^(\\cbrt|\u221b)(.*)/),c)&&(c=Nt(c[2],{inlineShortcuts:null!==(o=null==t?void 0:t.inlineShortcuts)&&void 0!==o?o:{},noWrap:!0}),e="\\sqrt[3]{"+(c.match||"\\placeholder{}")+"}",e+=Et(c.rest,t),d=!0),d||(c=e.match(/^abs(.*)/),c&&(c=Nt(c[1],{inlineShortcuts:null!==(r=null==t?void 0:t.inlineShortcuts)&&void 0!==r?r:{},noWrap:!0}),e="\\left|"+c.match+"\\right|",e+=Et(c.rest,t),d=!0)),d||(c=e.match(/^["”“](.*?)["”“](.*)/),c&&(e="\\text{"+c[1]+"}",e+=Et(c[2],t),d=!0)),d||(c=e.match(/^([^a-zA-Z({[_^\\\s"]+)(.*)/),c&&(e=Bt(c[1],t),e+=Et(c[2],t),d=!0)),!d&&/^(f|g|h)[^a-zA-Z]/.test(e)&&(c=Nt(e.substring(1),{inlineShortcuts:null!==(s=t.inlineShortcuts)&&void 0!==s?s:{},noWrap:!0}),e="("===e[1]?e[0]+"\\mleft("+c.match+"\\mright)":e[0]+c.match,e+=Et(c.rest,t),d=!0),d||(c=e.match(/^([a-zA-Z]+)(.*)/),c&&(e=Bt(c[1],t),e+=Et(c[2],t),d=!0)),!d)if(c=Nt(e,{inlineShortcuts:null!==(n=t.inlineShortcuts)&&void 0!==n?n:{},noWrap:!0}),c.match&&"/"===c.rest[0]){const i=Nt(c.rest.substr(1),{inlineShortcuts:null!==(l=t.inlineShortcuts)&&void 0!==l?l:{},noWrap:!0});i.match&&(e="\\frac{"+c.match+"}{"+i.match+"}"+Et(i.rest,t)),d=!0}else c.match&&(e="("===e[0]?"\\left("+c.match+"\\right)"+Et(c.rest,t):c.match+Et(c.rest,t),d=!0);return d||(c=e.match(/^(\s+)(.*)$/),c&&(e=" "+Et(c[2],t),d=!0)),e}function Nt(e,t){let i="",a=e=e.trim(),o=e.charAt(0),r={"(":")","{":"}","[":"]"}[o];if(r){let s=1,n=1;for(;n0;)e[n]===o&&s++,e[n]===r&&s--,n++;0===s?(t.noWrap&&"("===o?i=Et(e.substring(1,n-1),t):("{"===o&&"}"===r&&(o="\\{",r="\\}"),i="\\left"+o+Et(e.substring(1,n-1),t)+"\\right"+r),a=e.substring(n)):(i=e.substring(1,n),a="")}else{let o=e.match(/^([a-zA-Z]+)/);if(o){let i=Tt(null,e,t.inlineShortcuts);if(i)return i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),{match:i,rest:e.substring(i.length)}}if(o=e.match(/^([a-zA-Z])/),o)return{match:o[1],rest:e.substring(1)};if(o=e.match(/^(-)?\d+(\.\d*)?/),o)return{match:o[0],rest:e.substring(o[0].length)};/^\\(left|right)/.test(e)||(o=e.match(/^(\\[a-zA-Z]+)/),o&&(a=e.substring(o[1].length),i=o[1]))}return{match:i,rest:a}}function Bt(e,t){let i=Tt(null,e,t);return i?(i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),i+=" "):i=e,i}function Ot(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onSelectionDidChange)||e.suppressChangeNotifications||e.listeners.onSelectionDidChange(e)}function Ft(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onContentDidChange)||e.suppressChangeNotifications||e.listeners.onContentDidChange(e)}function Pt(e){if(e.parent().array)return kt(e.parent().array,e.relation())[e.anchorOffset()];const t=e.siblings();return t[Math.min(t.length-1,e.anchorOffset())]}function Rt(e,i,a=0){let o;if("string"==typeof i)o=gt(i),o.extent=a;else if(t(i)){const t=bt(i),r=e.path;e.path=t,0===a&&"placeholder"===Pt(e).type&&(t[t.length-1].offset=e.anchorOffset()-1,a=1),o={path:t,extent:null!=a?a:0},e.path=r}else o=i;const r=0!==yt(e.path,o.path),s=o.extent!==e.extent;return(r||s)&&(r&&It(e),e.path=bt(o.path),e.siblings().length0&&"command"===t[i].type;)i-=1;let a=e.startOffset()+1;for(;a<=t.length-1&&"command"===t[a].type;)a+=1;return a>i?{start:i+1,end:a}:null}function Ut(e){const t=oi(e)?Pt(e):e.sibling(1);let i;if(t){if("command"===t.type)return"command";i=t.mode}let a=1,o=e.ancestor(a);for(;!i&&o;)o&&(i=o.mode),a+=1,o=e.ancestor(a);return i}function jt(e,t=1,i=!0){var a;const o=e.suppressChangeNotifications;e.suppressChangeNotifications=!0;const r=e.clone(),s=e.extent;Yt(e,t),"placeholder"===Pt(e).type&&Yt(e,t);const n=pi(e,(e,t)=>"placeholder"===e.type||t.path.length>1&&1===t.siblings().length,t);if(0===n.length){if(Rt(e,r,s),i&&(null===(a=e.hooks)||void 0===a?void 0:a.tabOut)&&e.hooks.tabOut(e,t>0?"forward":"backward")&&document.activeElement){const e=function(){function e(e){return!((i=e).disabled||"INPUT"===i.tagName&&"hidden"===i.type||function(e){if(e===document.activeElement||e.contains(document.activeElement))return!1;if("hidden"===getComputedStyle(e).visibility)return!0;const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(i)||function(e){return"INPUT"===e.tagName&&"radio"===e.type&&!function(e){if(!e.name)return!0;const t=function(e,t){for(let i=0;isummary')).filter(e).forEach((e,i)=>{const r=t(e);0===r?a.push(e):o.push({documentOrder:i,tabIndex:r,node:e})}),o.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(a)}(document.body)}();let i=e.indexOf(document.activeElement)+t;i<0&&(i=e.length-1),i>=e.length&&(i=0),e[i].focus()}return e.suppressChangeNotifications=o,!1}return Rt(e,n[0]),"placeholder"===Pt(e).type&&ri(e,-1),e.announce("move",r),Ot(e),e.suppressChangeNotifications=o,!0}function Xt(e,t=0,i=0,a=""){const o=e.path[e.path.length-1].relation;a||(a=o);const r=e.parent();if(!r&&"body"!==a)return!1;const s=a.startsWith("cell");if(!s&&!r[a]||s&&!r.array)return!1;const n=a!==o;e.path[e.path.length-1].relation=a;const l=e.siblings().length;e.path[e.path.length-1].relation=o;const c=e.extent;"end"===i&&(i=l-t-1),ri(e,i);const d=e.extent!==c;ri(e,c),t<0&&(t=l+t),t=Math.max(0,Math.min(t,l-1));const m=e.path[e.path.length-1].offset;return(n||m!==t||d)&&(n&&It(e),e.path[e.path.length-1].relation=a,e.path[e.path.length-1].offset=t,ri(e,i),Ot(e)),!0}function Gt(e,i){var a;i=null!=i?i:{};const o={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(e.anchorOffset()===e.siblings().length-1){It(e);let t=o[e.relation()];const r=e.parent();for(;t&&!r[t];)t=o[t];if(t)return void Xt(e,0,0,t);if(e.parent().array){const t=_t(e.parent().array);let i=parseInt(e.relation().match(/cell([0-9]*)$/)[1])+1;for(;i=0;){if(kt(e.parent().array,t)&&Xt(e,-1,0,"cell"+t))return;t-=1}}return void(1===e.path.length?(e.suppressChangeNotifications||!(null===(a=e.hooks)||void 0===a?void 0:a.moveOut)||e.hooks.moveOut(e,"backward"))&&(e.path[0].offset=e.root.body.length-1):(e.path.pop(),Xt(e,e.anchorOffset()-1)))}const r=Pt(e);if(!r.captureSelection){let i;if(r.array){i="";const t=_t(r.array);let a=t-1;for(;!i&&a0)for(si(e)&&a--;a>0;)Gt(e),a--;else if(a<0)for(ni(e)&&a++;0!==a;)Zt(e),a++}return Ot(e),e.announce("move",a),!0}function Jt(e,t){let i=e.path[e.path.length-1].offset,a=0;const o=e.clone();a=e.extent+t;const r=i+a;if(r<0&&0!==a){if(e.path.length>1)return e.path.pop(),ri(e,-1),Ot(e),e.announce("move",o),!0;i=e.path[e.path.length-1].offset,a=e.extent}else if(r>=e.siblings().length){if(e.path.length>1)return e.path.pop(),e.path[e.path.length-1].offset-=1,ri(e,1),Ot(e),e.announce("move",o),!0;oi(e)&&(i-=1),a-=1}return Xt(e,i,a),e.announce("move",o),!0}function Qt(e,t,i){var a;const o=null!==(a=(i=null!=i?i:{extend:!1}).extend)&&void 0!==a&&a;t=t<0?-1:1;const r=e.clone(),s=e.siblings(),n=e.focusOffset();let l=n+t;if(o&&(l=Math.min(Math.max(0,l),s.length-1)),l<0||l>=s.length)Yt(e,t,i);else{if(s[l]&&"text"===s[l].mode){if(l=function(e,t,i){i=i<0?-1:1;const a=e.siblings();if(!a[t])return t;if("text"!==a[t].mode)return t;let o;if(X.test(a[t].body)){let e,r=t;do{e="text"===a[r].mode&&X.test(a[r].body),r+=i}while(a[r]&&e);o=a[r]?r-2*i:r-i}else if(/\s/.test(a[t].body)){let e=t;for(;a[e]&&"text"===a[e].mode&&/\s/.test(a[e].body);)e+=i;if(a[e]){let t=!0;do{t="text"===a[e].mode&&!/\s/.test(a[e].body),e+=i}while(a[e]&&t);o=a[e]?e-2*i:e-i}else o=e-i}else{let e=t;for(;a[e]&&"text"===a[e].mode&&!/\s/.test(a[e].body);)e+=i;o=a[e]?e:e-i;let r=!0;for(;a[e]&&r;)r="text"===a[e].mode&&/\s/.test(a[e].body),r&&(o=e),e+=i;o=a[e]?e-2*i:e-i}return o-(i>0?0:1)}(e,l,t),l<0&&!o)return void Xt(e,0);if(l>s.length)return Xt(e,s.length-1),void Yt(e,t,i)}else{const e=s[l]?s[l].type:"";if("mopen"===e&&t>0||"mclose"===e&&t<0){let i="mopen"===e?1:-1;for(l+=t>0?1:-1;l>=0&&l0&&(l-=1)}else{for(;s[l]&&"math"===s[l].mode&&s[l].type===e;)l+=t;l-=t>0?1:0}}if(o){const t=e.anchorOffset();Xt(e,t,l-t)}else Xt(e,l);e.announce("move",r)}}function ei(e,t=1,i){var a;i=null!=i?i:{extend:!1},t=t<0?-1:1;const o=e.clone(),r=[{relation:"body",offset:e.path[0].offset}];let s;return null!==(a=!i.extend)&&void 0!==a&&a?(r[0].offset=t<0?0:e.root.body.length-1,s=0):t<0?r[0].offset>0&&(s=-r[0].offset):r[0].offset=a)return Xt(e,e.endOffset()-1,1),!0;Xt(e,i,a-i)}else if("mord"===e.sibling(0).type&&/[0-9,.]/.test(e.sibling(0).body)){let i=e.startOffset(),a=e.endOffset();for(;Vt(t[i]);)i-=1;for(;Vt(t[a]);)a+=1;a-=1,Xt(e,i,a-i)}else Xt(e,0,"end");return!0}function ai(e){return e.path=[{relation:"body",offset:0}],Xt(e,0,"end")}function oi(e){return 0===e.extent}function ri(e,t){e.extent=t}function si(e){return 0!==e.extent&&(Xt(e,e.endOffset()),!0)}function ni(e){return 0!==e.extent&&(Xt(e,e.startOffset()),!0)}function li(e){if(e.path.length>1){const t=e.clone();return e.path.pop(),ri(e,0),e.announce("move",t),!0}return e.announce("plonk"),!1}function ci(e,t,i,a={extendToWordBoundary:!1}){const o=yt(t,i);if(0===o)return a.extendToWordBoundary?ci(e,t=mi(e,t,-1),i=mi(e,i,1)):Rt(e,bt(t),0);if(1===o){const o=i[i.length-1].offset-t[t.length-1].offset;return a.extendToWordBoundary?ci(e,t=mi(e,t,o<0?1:-1),i=mi(e,i,o<0?-1:1)):Rt(e,bt(t),o)}let r=function(e,t){const i=[],a=Math.min(e.length-1,t.length-1);let o=0;for(;o<=a&&e[o].relation===t[o].relation&&e[o].offset===t[o].offset;)i.push(e[o]),o+=1;return i}(t,i);const s=r.length;if(t.length===s||i.length===s||t[s].relation!==i[s].relation)return Rt(e,r,-1);r.push(t[s]),r=bt(r);let n=i[s].offset-t[s].offset+1;return n<=0?i.length>s+1?(r[s].relation=i[s].relation,r[s].offset=i[s].offset,r[r.length-1].offset-=1,n=2-n):(r[s].relation=i[s].relation,r[s].offset=i[s].offset,n=1-n):i.length<=t.length?r[r.length-1].offset-=1:i.length>t.length&&(r[s].offset-=1),Rt(e,r,n)}function di(e,t,i){var a;(i=null!=i?i:{}).recursive=null!==(a=i.recursive)&&void 0!==a&&a;const o=e.siblings(),r=e.startOffset()+1,s=e.endOffset()+1;if(i.recursive)for(let e=r;e=0?si(o):(ni(o),Yt(o,"forward"));const r=Pt(o);do{t(Pt(o),o)&&a.push(o.toString()),i>=0?Gt(o,{iterateAll:!0}):Zt(o,{iterateAll:!0})}while(r!==Pt(o));return a}const ui="apple"===yi()?{id:"apple.en-intl",displayName:"English (international)",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","ı"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","Î"],KeyE:["e","E","´","´"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","˝"],KeyH:["h","H","˙","Ó"],KeyI:["i","I","ˆ","ˆ"],KeyJ:["j","J","∆","Ô"],KeyK:["k","K","˚",""],KeyL:["l","L","¬","Ò"],KeyM:["m","M","µ","Â"],KeyN:["n","N","˜","˜"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®","‰"],KeyS:["s","S","ß","Í"],KeyT:["t","T","†","ˇ"],KeyU:["u","U","¨","¨"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","˛"],KeyY:["y","Y","¥","Á"],KeyZ:["z","Z","Ω","¸"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","ˆ","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["-","_","–","—"],Equal:["=","+","≠","±"],BracketLeft:["[","{","“","”"],BracketRight:["]","}","‘","’"],Backslash:["\\","|","«","»"],Semicolon:[";",":","…","Ú"],Quote:["'",'"',"æ","Æ"],Backquote:["`","˜","`","`"],Comma:[",","<","≤","¯"],Period:[".",">","≥","˘"],Slash:["/","?","÷","¿"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}}:"windows"===yi()?{id:"windows.en-intl",displayName:"English (international)",platform:"windows",locale:"en",score:0,mapping:{KeyA:["a","A","á","Á"],KeyB:["b","B","",""],KeyC:["c","C","©","¢"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","é","É"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","í","Í"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","ø","Ø"],KeyM:["m","M","µ",""],KeyN:["n","N","ñ","Ñ"],KeyO:["o","O","ó","Ó"],KeyP:["p","P","ö","Ö"],KeyQ:["q","Q","ä","Ä"],KeyR:["r","R","®",""],KeyS:["s","S","ß","§"],KeyT:["t","T","þ","Þ"],KeyU:["u","U","ú","Ú"],KeyV:["v","V","",""],KeyW:["w","W","å","Å"],KeyX:["x","X","",""],KeyY:["y","Y","ü","Ü"],KeyZ:["z","Z","æ","Æ"],Digit1:["1","!","¡","¹"],Digit2:["2","@","²",""],Digit3:["3","#","³",""],Digit4:["4","$","¤","£"],Digit5:["5","%","€",""],Digit6:["6","^","¼",""],Digit7:["7","&","½",""],Digit8:["8","*","¾",""],Digit9:["9","(","‘",""],Digit0:["0",")","’",""],Space:[" "," ","",""],Minus:["-","_","¥",""],Equal:["=","+","×","÷"],BracketLeft:["[","{","«",""],BracketRight:["]","}","»",""],Backslash:["\\","|","¬","¦"],Semicolon:[";",":","¶","°"],Quote:["'",'"',"´","¨"],Backquote:["`","~","",""],Comma:[",","<","ç","Ç"],Period:[".",">","",""],Slash:["/","?","¿",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}}:{id:"linux.en",displayName:"English",platform:"linux",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},hi={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},fi=[];let gi;function yi(){let e="linux";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?e="apple":/^(win)/i.test(navigator.platform)?e="windows":/(android)/i.test(navigator.userAgent)?e="linux":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?e="apple":/\bCrOS\b/i.test(navigator.userAgent)&&(e="linux")),e}function bi(e){e.platform===yi()&&fi.push(e)}function vi(e){gi=fi.find(t=>e.startsWith(t.locale))}function xi(){return null!=gi?gi:fi[0]}bi(ui),bi({id:"apple.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","‡","Ω"],KeyB:["b","B","ß","∫"],KeyC:["c","C","©","¢"],KeyD:["d","D","∂","∆"],KeyE:["e","E","ê","Ê"],KeyF:["f","F","ƒ","·"],KeyG:["g","G","fi","fl"],KeyH:["h","H","Ì","Î"],KeyI:["i","I","î","ï"],KeyJ:["j","J","Ï","Í"],KeyK:["k","K","È","Ë"],KeyL:["l","L","¬","|"],KeyM:[",","?","∞","¿"],KeyN:["n","N","~","ı"],KeyO:["o","O","œ","Œ"],KeyP:["p","P","π","∏"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","®","‚"],KeyS:["s","S","Ò","∑"],KeyT:["t","T","†","™"],KeyU:["u","U","º","ª"],KeyV:["v","V","◊","√"],KeyW:["z","Z","Â","Å"],KeyX:["x","X","≈","⁄"],KeyY:["y","Y","Ú","Ÿ"],KeyZ:["w","W","‹","›"],Digit1:["&","1","","´"],Digit2:["é","2","ë","„"],Digit3:['"',"3","“","”"],Digit4:["'","4","‘","’"],Digit5:["(","5","{","["],Digit6:["§","6","¶","å"],Digit7:["è","7","«","»"],Digit8:["!","8","¡","Û"],Digit9:["ç","9","Ç","Á"],Digit0:["à","0","ø","Ø"],Space:[" "," "," "," "],Minus:[")","°","}","]"],Equal:["-","_","—","–"],BracketLeft:["^","¨","ô","Ô"],BracketRight:["$","*","€","¥"],Backslash:["`","£","@","#"],Semicolon:["m","M","µ","Ó"],Quote:["ù","%","Ù","‰"],Backquote:["<",">","≤","≥"],Comma:[";",".","…","•"],Period:[":","/","÷","\\"],Slash:["=","+","≠","±"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","•","Ÿ"],NumpadEqual:["=","=","=","="]}}),bi({id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","ß",""],KeyC:["c","C","©"," "],KeyD:["d","D","∂","∆"],KeyE:["e","E","€","€"],KeyF:["f","F","ƒ","fi"],KeyG:["g","G","","fl"],KeyH:["h","H","™"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","¶","¯"],KeyK:["k","K","§","ˇ"],KeyL:["l","L"," ","˘"],KeyM:["m","M","µ","˚"],KeyN:["n","N"," ","˙"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®"," "],KeyS:["s","S","∫"," "],KeyT:["t","T","†","‡"],KeyU:["u","U"," "," "],KeyV:["v","V","√","◊"],KeyW:["w","W","æ","Æ"],KeyX:["x","X","∑","›"],KeyY:["y","Y","¥"," "],KeyZ:["z","Z","Ω","‹"],Digit1:["1","!","|","ı"],Digit2:["2",'"',"@","˝"],Digit3:["3","·","#","•"],Digit4:["4","$","¢","£"],Digit5:["5","%","∞","‰"],Digit6:["6","&","¬"," "],Digit7:["7","/","÷","⁄"],Digit8:["8","(","“","‘"],Digit9:["9",")","”","’"],Digit0:["0","=","≠","≈"],Space:[" "," "," "," "],Minus:["'","?","´","¸"],Equal:["¡","¿","‚","˛"],BracketLeft:["`","^","[","ˆ"],BracketRight:["+","*","]","±"],Backslash:["ç","Ç","}","»"],Semicolon:["ñ","Ñ","~","˜"],Quote:["´","¨","{","«"],Backquote:["<",">","≤","≥"],Comma:[",",";","„",""],Period:[".",":","…","…"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["º","ª","\\","°"]}}),bi({id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","·","#",""],Digit4:["4","$","~",""],Digit5:["5","%","€",""],Digit6:["6","&","¬",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["¡","¿","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["ç","Ç","}",""],Semicolon:["ñ","Ñ","",""],Quote:["´","¨","{",""],Backquote:["º","ª","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),bi({id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["z","Z","«","<"],Digit1:["1","!","|","¡"],Digit2:["2",'"',"@","⅛"],Digit3:["3","·","#","£"],Digit4:["4","$","~","$"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["'","?","\\","¿"],Equal:["¡","¿","̃","~"],BracketLeft:["̀","̂","[","̊"],BracketRight:["+","*","]","̄"],Backslash:["ç","Ç","}","̆"],Semicolon:["ñ","Ñ","~","̋"],Quote:["́","̈","{","{"],Backquote:["º","ª","\\","\\"],Comma:[",",";","─","×"],Period:[".",":","·","÷"],Slash:["-","_","̣","̇"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}}),bi({id:"linux.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","@","Ω"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:[",","?","́","̋"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["z","Z","«","<"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["w","W","ł","Ł"],Digit1:["&","1","¹","¡"],Digit2:["é","2","~","⅛"],Digit3:['"',"3","#","£"],Digit4:["'","4","{","$"],Digit5:["(","5","[","⅜"],Digit6:["-","6","|","⅝"],Digit7:["è","7","`","⅞"],Digit8:["_","8","\\","™"],Digit9:["ç","9","^","±"],Digit0:["à","0","@","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:[")","°","]","¿"],Equal:["=","+","}","̨"],BracketLeft:["̂","̈","̈","̊"],BracketRight:["$","£","¤","̄"],Backslash:["*","µ","̀","̆"],Semicolon:["m","M","µ","º"],Quote:["ù","%","̂","̌"],Backquote:["²","~","¬","¬"],Comma:[";",".","─","×"],Period:[":","/","·","÷"],Slash:["!","§","̣","̇"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"]}}),bi({id:"windows.french",locale:"fr",displayName:"French",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["é","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["è","7","`",""],Digit8:["_","8","\\",""],Digit9:["ç","9","^",""],Digit0:["à","0","@",""],Space:[" "," ","",""],Minus:[")","°","]",""],Equal:["=","+","}",""],BracketLeft:["^","¨","",""],BracketRight:["$","£","¤",""],Backslash:["*","µ","",""],Semicolon:["m","M","",""],Quote:["ù","%","",""],Backquote:["²","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","§","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),bi({id:"windows.german",locale:"de",displayName:"German",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","µ",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"²",""],Digit3:["3","§","³",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["ß","?","\\","ẞ"],Equal:["´","`","",""],BracketLeft:["ü","Ü","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["ö","Ö","",""],Quote:["ä","Ä","",""],Backquote:["^","°","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}}),bi({id:"apple.german",locale:"de",displayName:"German",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","‹"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","™"],KeyE:["e","E","€","‰"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","Ì"],KeyH:["h","H","ª","Ó"],KeyI:["i","I","⁄","Û"],KeyJ:["j","J","º","ı"],KeyK:["k","K","∆","ˆ"],KeyL:["l","L","@","fl"],KeyM:["m","M","µ","˘"],KeyN:["n","N","~","›"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","«","»"],KeyR:["r","R","®","¸"],KeyS:["s","S","‚","Í"],KeyT:["t","T","†","˝"],KeyU:["u","U","¨","Á"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","Ù"],KeyY:["z","Z","Ω","ˇ"],KeyZ:["y","Y","¥","‡"],Digit1:["1","!","¡","¬"],Digit2:["2",'"',"“","”"],Digit3:["3","§","¶","#"],Digit4:["4","$","¢","£"],Digit5:["5","%","[","fi"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","˜"],Digit9:["9",")","}","·"],Digit0:["0","=","≠","¯"],Space:[" "," "," "," "],Minus:["ß","?","¿","˙"],Equal:["´","`","'","˚"],BracketLeft:["ü","Ü","•","°"],BracketRight:["+","*","±",""],Backslash:["#","'","‘","’"],Semicolon:["ö","Ö","œ","Œ"],Quote:["ä","Ä","æ","Æ"],Backquote:["<",">","≤","≥"],Comma:[",",";","∞","˛"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","°","„","“"],NumpadEqual:["=","=","=","="]}});const ki=[{key:"ctrl+alt+e",command:["insert","\\text{cmd+alt+e}"]},{key:"cmd+alt+a",command:["insert","\\text{cmd+alt+a}"]},{key:"ctrl+alt+a",command:["insert","\\text{ctrl+alt+a}"]},{key:"meta+alt+2",command:["insert","\\text{meta+alt+2}"]},{key:"ctrl+alt+shift+a",command:["insert","\\text{ctrl+alt+shift+a}"]},{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendToPreviousChar"},{key:"shift+[ArrowRight]",command:"extendToNextChar"},{key:"shift+[ArrowUp]",command:"extendUp"},{key:"shift+[ArrowDown]",command:"extendDown"},{key:"[Backspace]",command:"deletePreviousChar"},{key:"alt+[Delete]",command:"deletePreviousChar"},{key:"[Delete]",command:"deleteNextChar"},{key:"alt+[Backspace]",command:"deleteNextChar"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"alt+shift+[ArrowLeft]",command:"extendToPreviousWord"},{key:"alt+shift+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"ctrl+shift+[ArrowLeft]",command:"extendToGroupStart"},{key:"ctrl+shift+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Space]",ifMode:"math",command:"moveAfterParent"},{key:"shift+[Space]",ifMode:"math",command:"moveBeforeParent"},{key:"[Home]",command:"moveToMathFieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathFieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"cmd+shift+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathFieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathFieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"cmd+shift+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",ifMode:"math",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"math",command:"moveToPreviousPlaceholder"},{key:"[Tab]",ifMode:"text",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"text",command:"moveToPreviousPlaceholder"},{key:"[Escape]",ifMode:"math",command:["switchMode","command"]},{key:"\\",ifMode:"math",command:["switchMode","command"]},{key:"alt+[Equal]",ifMode:"math",command:["applyStyle",{mode:"text"}]},{key:"alt+[Equal]",ifMode:"text",command:["applyStyle",{mode:"math"}]},{key:"[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[Tab]",ifMode:"command",command:["complete",{acceptSuggestion:!0}]},{key:"[Return]",ifMode:"command",command:"complete"},{key:"[Enter]",ifMode:"command",command:"complete"},{key:"shift+[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[ArrowDown]",ifMode:"command",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"command",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deletePreviousChar"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"[Undo]",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+y",command:"redo"},{key:"ctrl+shift+z",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+z",command:"redo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathFieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathFieldEnd"},{key:"ctrl+shift+b",ifPlatform:"macos",command:"extendToPreviousChar"},{key:"ctrl+shift+f",ifPlatform:"macos",command:"extendToNextChar"},{key:"ctrl+shift+p",ifPlatform:"macos",command:"extendUp"},{key:"ctrl+shift+n",ifPlatform:"macos",command:"extendDown"},{key:"ctrl+shift+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"ctrl+shift+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"ctrl+alt+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"ctrl+alt+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"ctrl+shift+alt+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"ctrl+shift+alt+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deletePreviousChar"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteNextChar"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"shift+[Quote]",ifMode:"math",command:["switchMode","text","","“"]},{key:"shift+[Quote]",ifMode:"text",command:["switchMode","math","”",""]},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Minus]",ifMode:"math",command:"moveToSubscript"},{key:"alt+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrack #0 \\right\\rbrack$$"]},{key:"alt+shift+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrace #0 \\right\\rbrace$$"]},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+;",ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifMode:"math",command:"addRowAfter"},{key:"ctrl+shift+;",ifMode:"math",command:"addRowBefore"},{key:"cmd+shift+;",ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"ctrl+shift+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+shift+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"alt+p",ifMode:"math",command:["insert","$$\\pi$$"]},{key:"alt+v",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"alt+w",ifMode:"math",command:["insert","$$\\sum_{i=#?}^{#?}$$"]},{key:"alt+u",ifMode:"math",command:["insert","$$\\cup$$"]},{key:"alt+n",ifMode:"math",command:["insert","$$\\cap$$"]},{key:"alt+o",ifMode:"math",command:["insert","$$\\emptyset$$"]},{key:"alt+d",ifMode:"math",command:["insert","$$\\differentialD$$"]},{key:"alt+shift+o",ifMode:"math",command:["insert","$$\\varnothing$$"]},{key:"alt+shift+d",ifMode:"math",command:["insert","$$\\partial$$"]},{key:"alt+shift+p",ifMode:"math",command:["insert","$$\\prod_{i=#?}^{#?}$$"]},{key:"alt+shift+u",ifMode:"math",command:["insert","$$\\bigcup$$"]},{key:"alt+shift+n",ifMode:"math",command:["insert","$$\\bigcap$$"]},{key:"alt+shift+a",ifMode:"math",command:["insert","$$\\forall$$"]},{key:"alt+shift+e",ifMode:"math",command:["insert","$$\\exists$$"]},{key:"alt+[Digit5]",ifMode:"math",command:["insert","$\\infty$$"]},{key:"alt+[Digit6]",ifMode:"math",command:["insert","$$\\wedge$$"]},{key:"alt+shift+[Digit6]",ifMode:"math",command:["insert","$$\\vee$$"]},{key:"alt+[Digit9]",ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifMode:"math",command:["insert",")"]},{key:"alt+shift+[Backslash]",ifMode:"math",command:["insert","|"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","$$\\backslash$$"]},{key:"/",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+/",ifMode:"math",command:["insert","$$\\/$$"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+[Backquote]",ifMode:"math",command:["insert","$$\\~$$"]},{key:"alt+shift+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleVirtualKeyboard"},{key:"ctrl+alt+[ArrowUp]",command:["speak","parent",{withHighlighting:!1}]},{key:"ctrl+alt+[ArrowDown]",command:["speak","all",{withHighlighting:!1}]}],_i={"\\theta":"alt+q","\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\prod":"alt+shift+p","\\sum":"alt+w","\\int":"alt+b","\\cup":"alt+u","\\cap":"alt+n","\\bigcup":"alt+shift+u","\\bigcap":"alt+shift+n","\\forall":"alt+shift+a","\\exists":"alt+shift+e","\\infty":"alt+[Digit5]","\\wedge":"alt+[Digit5]","\\vee":"alt+shift+[Digit6]","\\differentialD":"alt+d","\\partial":"alt+shift+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"alt+shift+o","\\~":"~"};function wi(e){if((null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)){let t;if(/^(mac)/i.test(navigator.platform)?t="macos":/^(win)/i.test(navigator.platform)?t="windows":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos"),e.startsWith("!")&&!e.endsWith(t))return!0;if(e.endsWith(t))return!0}return!1}function Mi(e){let i=e;return t(i)&&(i=i.length>0?i[0]+"("+i.slice(1).join("")+")":""),i}function zi(e){var t;const i=wi("macos")||wi("ios"),a=e.split("+");let o="";for(const e of a)!i&&o&&(o+='+'),e.startsWith("Key")?o+=e.substr(3,1):e.startsWith("Digit")?o+=e.substr(5,1):o+=null!==(t={cmd:"⌘",meta:i?"⌘":"command",shift:i?"⇧":"shift",alt:i?"⌥":"alt",ctrl:i?"⌃":"control","\n":i?"⏎":"return","[return]":i?"⏎":"return","[enter]":i?"⌤":"enter","[tab]":i?"⇥":"tab","[escape]":"esc","[backspace]":i?"⌫":"backspace","[delete]":i?"⌦":"del","[pageup]":i?"⇞":"page up","[pagedown]":i?"⇟":"page down","[home]":i?"⤒":"home","[end]":i?"⤓":"end","[space]":"space","[equal]":"=","[minus]":"-","[comma]":",","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",bracketLeft:"[",bracketRight:"]",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"⇠",up:"⇡",right:"⇢",down:"⇣","[arrowleft]":"⇠","[arrowup]":"⇡","[arrowright]":"⇢","[arrowdown]":"⇣","[digit0]":"0","[digit1]":"1","[digit2]":"2","[digit3]":"3","[digit4]":"4","[digit5]":"5","[digit6]":"6","[digit7]":"7","[digit8]":"8","[digit9]":"9"}[e.toLowerCase()])&&void 0!==t?t:e.toUpperCase();return o}function Si(e,t){const i=[],a=[];return e.forEach(e=>{try{const t=function(e){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);let t=e.key.split("+");const i=t.pop();let a=e.ifPlatform;if(t=t.map(e=>{const t=e.toLowerCase();if("cmd"===t){if(a&&"macos"!==a&&"ios"!==a)throw new Error('Unexpected "cmd" modifier with platform "'+a+'"');return a||(a=wi("ios")?"ios":"macos"),"meta"}if("win"===t){if(a&&"windows"!==a)throw new Error('Unexpected "win" modifier with platform "'+a+'"');return a="windows","meta"}return t}),!a||wi(a)){if(/^\[(.*)\]$/.test(i))t.push(i);else{const a=function(e){var t,i;const a=null!==(t=xi())&&void 0!==t?t:ui;for(const[t,i]of Object.entries(a.mapping)){if(i[0]===e)return"["+t+"]";if(i[1]===e)return"shift+["+t+"]";if(i[2]===e)return"alt+["+t+"]";if(i[3]===e)return"shift+alt+["+t+"]"}return null!==(i=hi[e])&&void 0!==i?i:""}(i);if(!a)throw new Error('Invalid keybinding key "'+e.key+'"');t=t.concat(a.split("+"))}return{...e,ifPlatform:a,key:t.join("+")}}}(e);t&&i.push(t)}catch(e){a.push(e.message)}}),a.length>0&&t(a),i}function Li(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.addEventListener(o[1],i,t)}else e.addEventListener(t,i,a)}}function Ai(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.removeEventListener(o[1],i,t)}else e.removeEventListener(t,i,a)}}function Ci(e,t){let i=document.getElementById(e);return i?i.setAttribute("data-refcount",Number(parseInt(i.getAttribute("data-refcount"))+1).toString()):(i=document.createElement("div"),i.setAttribute("aria-hidden","true"),i.setAttribute("data-refcount","1"),i.className=t,i.id=e,document.body.appendChild(i)),i}function $i(e){if(!e)return;const t=parseInt(e.getAttribute("data-refcount"));t<=1?e.remove():e.setAttribute("data-refcount",Number(t-1).toString())}function qi(e){return e.element&&e.element.mathfield===e}function Di(e){const t=function e(t){if(t.classList.contains("ML__caret")||t.classList.contains("ML__text-caret")||t.classList.contains("ML__command-caret"))return t;let i;for(const a of t.children)if(i=e(a),i)break;return i}(e);if(t){const e=t.getBoundingClientRect();return{x:e.right,y:e.bottom,height:e.height}}return null}function Ti(e){const t=e.querySelectorAll(".ML__selected");if(t&&t.length>0){const i={top:1/0,bottom:-1/0,left:1/0,right:-1/0};t.forEach(e=>{const t=e.getBoundingClientRect();t.lefti.right&&(i.right=t.right),t.bottom>i.bottom&&(i.bottom=t.bottom),t.top{if("mousedown"!==i.type||1===i.buttons){i.stopPropagation(),"touchstart"!==i.type&&i.preventDefault(),t.classList.add("pressed"),a=Date.now(),"touchstart"===i.type&&(r=i.changedTouches[0].identifier);const s=t.getAttribute("data-"+e.options.namespace+"command-pressed");s&&e.executeCommand(JSON.parse(s));const l=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldStart");l&&(o=t,n&&clearTimeout(n),n=window.setTimeout((function(){t.classList.contains("pressed")&&e.executeCommand(JSON.parse(l))}),300))}}),Li(t,"mouseleave touchcancel",()=>{t.classList.remove("pressed")}),Li(t,"touchmove:passive",e=>{for(let t=0;t{1===e.buttons&&t.classList.add("pressed")}),Li(t,"mouseup touchend click",i=>{if(s){i.stopPropagation(),i.preventDefault();const e=s;return s=null,void e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}if(t.classList.remove("pressed"),t.classList.add("active"),"click"===i.type&&0!==i.detail)return i.stopPropagation(),void i.preventDefault();window.setTimeout((function(){t.classList.remove("active")}),150);let r=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldEnd");const n=Date.now();(t!==o||nequal to","\\supseteq":"superset of or
    equal to","\\supset":"superset of","\\subset":"subset of","\\partial":"partial derivative","\\bigcup":"union","\\bigcap":"intersection","\\approx":"approximately equal to","\\notin":"not an element of","\\in":["element of","included in"],"\\infty":"infinity","\\land":"logical and","\\sqrt":"square root","\\prod":"product","\\sum":"summation","\\amalg":["amalgamation","coproduct","free product","disjoint union"],"\\cup":"union with","\\cap":"intersection with","\\int":"integral","\\iint":"surface integral","\\oint":"curve integral","\\iiint":"volume integral","\\iff":"if and only if","\\ln":"natural logarithm","\\boldsymbol":"bold","\\setminus":"set subtraction","\\stackrel":"relation with symbol above","\\stackbin":"operator with symbol above","\\underset":"symbol with annotation below","\\overset":"symbol with annotation above","\\hslash":["h-bar","Planck constant"],"\\gtrsim":"greater than or
    similar to","\\propto":"proportional to","\\equiv":"equivalent to","\\!":["negative thin space","(-3 mu)"],"\\ ":["space","(6 mu)"],"\\,":["thin space","(3 mu)"],"\\:":["medium space","(4 mu)"],"\\;":["thick space","(5 mu)"],"\\quad":["1 em space","(18 mu)"],"\\qquad":["2 em space","(36 mu)"],"\\enskip":["½ em space","(9 mu)"],"\\mp":"minus or plus","\\pm":"plus or minus","\\Im":"Imaginary part of","\\Re":"Real part of","\\gothicCapitalR":"Real part of","\\gothicCapitalI":"Imaginary part part of","\\differentialD":"differential d","\\aleph":["aleph","infinite cardinal",'Wikipedia '],"\\beth":["beth","beth number",'Wikipedia '],"\\gimel":["gimel","gimel function",'Wikipedia '],"\\O":"empty set","\\N":"set of
    natural numbers","\\Z":"set of
    integers","\\Q":"set of
    rational numbers","\\C":"set of
    complex numbers","\\R":"set of
    real numbers","\\P":"set of
    prime numbers","\\lesseqqgtr":"less than, equal to or
    greater than","\\gnapprox":"greater than and
    not approximately","\\lnapprox":"lesser than and
    not approximately","\\j":"dotless j","\\i":"dotless i","\\cdot":"centered dot","\\lmoustache":"left moustache","\\rmoustache":"right moustache","\\nabla":["nabla","del","differential vector operator"],"\\square":["square","d’Alembert operator",'Wikipedia '],"\\blacksquare":["black square","end of proof","tombstone","Halmos symbol"],"\\Box":"end of proof","\\colon":["such that","ratio"],"\\coloneq":["is defined by","is assigned"],"\\Colon":["is defined by","as"],"\\_":["underbar","underscore"],"\\ll":"much less than","\\gg":"much greater than","\\doteq":"approximately equal to","\\Doteq":"approximately equal to","\\doteqdot":"approximately equal to","\\cong":["isomorphism of","(for algebras, modules...)"],"\\det":["determinant of","(of a matrix)"],"\\dotplus":"Cartesian product algebra","\\otimes":["tensor product","(of algebras)","Kronecker product","(of matrices)"],"\\oplus":["direct sum","(of modules)"],"\\lb":"base-2 logarithm","\\lg":"base-10 logarithm","\\wp":["Weierstrass P",'Wikipedia '],"\\wr":["wreath product",'Wikipedia '],"\\top":["tautology","Proposition P is universally true"],"\\bot":["contradiction","Proposition P is contradictory"],"\\mid":["probability","of event A given B"],"\\mho":["Siemens","electrical conductance in SI unit",'Wikipedia '],"\\Longrightarrow":"implies","\\Longleftrightarrow":"if, and only if,","\\prec":"precedes","\\preceq":"precedes or is equal to","\\succ":"succeedes","\\succeq":"succeedes or is equal to","\\perp":["is perpendicular to","is independent of"],"\\models":["entails","double-turnstyle, models","is a semantic consequence of",'Wikipedia '],"\\vdash":["satisfies","turnstyle, assertion sign","syntactic inference",'Wikipedia '],"\\implies":["implies","logical consequence"],"\\impliedby":["implied by","logical consequence"],"\\surd":["surd","root of","checkmark"],"\\ltimes":["semi direct product",'Wikipedia '],"\\rtimes":["semi direct product",'Wikipedia '],"\\leftthreetimes":["semi direct product",'Wikipedia '],"\\rightthreetimes":["semi direct product",'Wikipedia '],"\\divideontimes":["divide on times"],"\\curlywedge":"nor","\\curlyvee":"nand","\\simeq":"is group isomorphic with","\\vartriangleleft":["is a normal subgroup of","is an ideal ring of"],"\\circ":["circle","ring","function composition"],"\\rlap":["overlap right","\\rlap{x}o"],"\\llap":["overlap left","o\\llap{/}"],"\\colorbox":["color box","\\colorbox{#fbc0bd}{...}"],"\\ast":["asterisk","reflexive closure (as a superscript)"],"\\bullet":"bullet","\\lim":"limit"};function Ni(e,i,a){if(!i||0===i.length)return void Fi(e);const o=i,r=function(e,t){const i=rt(e,"math",null,t.options.macros);return K(D(Ye({mathstyle:h.displaystyle,macros:t.options.macros},i),"ML__base"),"ML__mathlive").toMarkup()}(i,e),s=function(e){let i=Ei[e]||"";return t(i)&&(i=i.join("
    ")),i}(o),n=function(e,i){let a=[];if("string"==typeof i){const e=_i[i];t(e)?a=e.slice():e&&a.push(e)}const o=Mi(i),r=new RegExp("^"+o.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");return e.forEach(e=>{r.test(Mi(e.command))&&a.push(e)}),a.map(zi)}(e.keybindings,o).join("
    ");let l=a?'
    ':"";l+='',l+='
    '+r+"
    ",s&&(l+='
    '+s+"
    "),n&&(l+='
    '+n+"
    "),l+="
    ",l+=a?'
    ':"",function(e,t){e.popover.innerHTML=e.options.createHTML(t);const i=Di(e.field);i&&Oi(e,i),e.popover.classList.add("is-visible")}(e,l);let c=e.popover.getElementsByClassName("ML__popover__content");c&&c.length>0&&Ki(e,c[0],{default:["complete",{acceptSuggestion:!0}]}),c=e.popover.getElementsByClassName("ML__popover__prev-shortcut"),c&&c.length>0&&Ki(e,c[0],"previousSuggestion"),c=e.popover.getElementsByClassName("ML__popover__next-shortcut"),c&&c.length>0&&Ki(e,c[0],"nextSuggestion")}function Bi(e,t){if(e.element&&e.element.mathfield===e&&e.popover.classList.contains("is-visible"))if(null==t?void 0:t.deferred)window.requestAnimationFrame(()=>Bi(e));else if(Pt(e.model)&&"command"===Pt(e.model).type){const t=Di(e.field);t&&Oi(e,t)}else Fi(e)}function Oi(e,t){const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerWidth-document.documentElement.clientWidth,r=window.innerHeight-document.documentElement.clientHeight,s=e.virtualKeyboardVisible?e.virtualKeyboard.offsetHeight:0;t.x+e.popover.offsetWidth/2>a-o?e.popover.style.left=a-e.popover.offsetWidth-o+"px":t.x-e.popover.offsetWidth/2<0?e.popover.style.left="0":e.popover.style.left=t.x-e.popover.offsetWidth/2+"px",t.y+e.popover.offsetHeight+5>i-r-s?(e.popover.classList.add("ML__popover--reverse-direction"),e.popover.style.top=t.y-t.height-e.popover.offsetHeight-5+"px"):(e.popover.classList.remove("ML__popover--reverse-direction"),e.popover.style.top=t.y+5+"px")}function Fi(e){e.popover.classList.remove("is-visible")}function Pi(e,t=!1){var i;let a="";const o=Wt(e);if(o){const r=t?e.anchorOffset()+1:o.end,s=e.siblings();for(let e=o.start;e{"placeholder"===e.type&&a.push(e)});ri(e,0),e.path[e.path.length-1].offset=i.start-1,0!==a.length&&jt(e,1,!1)||Xt(e,i.start+t.length-1)}else e.siblings().splice(i.start,i.end-i.start),Xt(e,i.start-1,0);Ft(e)}}const Hi={"\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"∥","\\mid":"∣","\\lbrace":"{","\\rbrace":"}","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉","\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};function Vi(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Wi(e,t){return e&&t.generateID?' extid="'+e+'"':""}function Ui(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="",s=-1,n=-1;const l=e.atoms[e.index];if(e.index0){if(a=!0,ji(e)&&(s=e.index,e.index+=1),Xi(e)&&(n=e.index,e.index+=1),s>=0&&n>=0)o=""+r,o+=ea(e.atoms[n].subscript,0,0,i).mathML,o+=ea(e.atoms[s].superscript,0,0,i).mathML,o+="";else if(s>=0){if(o=""+r,ji(e)){const t=ea(e.atoms[s].superscript,0,0,i).mathML,a=ea(e.atoms[s+1].superscript,0,0,i).mathML;o+=""!==t&&""!==t||""!==a&&""!==a?""===t||""===t?"":t:""}else o+=ea(e.atoms[s].superscript,0,0,i).mathML;o+=""}else n>=0?(o=""+r,o+=ea(e.atoms[n].subscript,0,0,i).mathML,o+=""):o=r;"mi"!==e.lastType&&"mn"!==e.lastType&&"mtext"!==e.lastType&&"fence"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),r.endsWith(">f")||r.endsWith(">g")?(o+="&x2061;",e.lastType="applyfunction"):e.lastType=/^(.*)<\/mo>$/.test(o)?"mo":"mi",e.mathML+=o}return a}function ji(e){return e.index"+e,o+=ea(r.subscript,0,0,i).mathML,o+=ea(r.superscript,0,0,i).mathML,o+=""):r.superscript?(o=""+e,o+=ea(r.superscript,0,0,i).mathML,o+=""):r.subscript&&(o=""+e,o+=ea(r.subscript,0,0,i).mathML,o+=""),o.length>0&&(a=!0,t.mathML+=o,t.lastType=""),a))}function Zi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="";for(;e.index0&&(a=!0,r=""+r+"",e.mathML+=r,e.lastType="mtext"),a}function Yi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="",s=function(e){let t=-1,i=e.index,a=!1,o=!1;for(;i=0&&s=0;)r+=e.atoms[e.index].body,e.index+=1;return r.length>0&&(a=!0,r=""+r+"",s<0&&ji(e)&&(s=e.index,e.index+=1),s>=0&&(r=""+r,r+=ea(e.atoms[s].superscript,0,0,i).mathML,r+=""),e.mathML+=r,e.lastType="mn"),a}function Ji(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";if(e.index",o+=ta(e.atoms[l],i),o+=ea(e.atoms,l+1,c,i).mathML,o+=ta(e.atoms[c],i),o+="","mi"!==e.lastType&&"mn"!==e.lastType&&"mfrac"!==e.lastType&&"fence"!==e.lastType||(o=""+o),e.index=c+1,Gi(o,e,i)&&(a=!0,e.lastType="",o=""),r="fence")}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function Qi(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";const s=e.atoms[e.index];if(e.index":"")+e,o+=ea(s.subscript,0,0,i).mathML,o+=ea(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):s.superscript?(o+=("nolimits"!==s.limits?"":"")+e,o+=ea(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):(o+=("nolimits"!==s.limits?"":"")+e,o+=ea(s.subscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""),r="mo"}else{const t=e.atoms[e.index],s="\\operatorname"===t.symbol,n=s?'"+ia(t.body)+"":ta(t,i);o+=n,e.index+=1,Gi(o,e,i)&&(a=!0,e.lastType="",o=""),e.index-=1,s||/^(.*)<\/mo>$/.test(n)?r=s?"mi":"mo":(o+="",r="applyfunction")}"mi"!==e.lastType&&"mn"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),e.index+=1}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function ea(e,t,i,a){const o={atoms:e,index:null!=t?t:0,mathML:"",lastType:""};if("number"==typeof e||"boolean"==typeof e)o.mathML=e.toString();else if("string"==typeof e)o.mathML=e;else if(e instanceof Je)o.mathML=aa(e,a);else if(Array.isArray(e)){let t=0;for(i=i||(e?e.length:0);o.index0&&"genfrac"===o.atoms[o.index].type&&(e=""+e),"genfrac"===o.atoms[o.index].type?o.lastType="mfrac":o.lastType="",e.length>0&&(o.mathML+=e,t+=1),o.index+=1}t>1&&(o.mathML=""+o.mathML+"")}return o}function ta(e,t){let i="";const a=ia(e.body);return a&&(i=""+a+""),i}function ia(e){if(!e)return"";if("string"==typeof e)return Vi(e);if(!Array.isArray(e)&&"string"==typeof e.body)return Vi(e.body);let t="";for(const i of e)"string"==typeof i.body&&(t+=i.body);return Vi(t)}function aa(e,t){var i,a,o,r,s,n,l,c,d,m,p,u;const h={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:"⇋"},f={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"ℏ","\\cdotp":"⋅","\\ldots":"…","\\cdots":"⋯","\\ddots":"⋱","\\vdots":"⋮","\\ldotp":"."},g={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let y,b,v,x,k,_,w="",M="",z={cal:"script",frak:"fraktur",bb:"double-struck",scr:"script",cmtt:"monospace",cmss:"sans-serif"}[e.fontFamily||e.font]||"";z&&(z=' mathvariant="'+z+'"');const S=e.symbol;if("text"===e.mode)w=""+e.body+"";else switch(e.type){case"first":break;case"group":case"root":w=ea(e.body,0,0,t).mathML;break;case"array":if((e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(w+="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Hi[e.leftDelim]||e.leftDelim)+"")),w+="",y=0;y"+ea(e.array[b][y],0,0,t).mathML+"";w+=""}w+="",(e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Hi[e.leftDelim]||e.rightDelim)+""),w+="");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(w+=""),e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Hi[e.leftDelim]||e.leftDelim)+""),e.hasBarLine?(w+="",w+=ea(e.numer,0,0,t).mathML||" ",w+=ea(e.denom,0,0,t).mathML||" ",w+=""):(w+="",w+=""+ea(e.numer,0,0,t).mathML+"",w+=""+ea(e.denom,0,0,t).mathML+"",w+=""),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Hi[e.rightDelim]||e.rightDelim)+""),(e.leftDelim||e.rightDelim)&&(w+="");break;case"surd":e.index?(w+="",w+=ea(e.body,0,0,t).mathML,w+=ea(e.index,0,0,t).mathML,w+=""):(w+="",w+=ea(e.body,0,0,t).mathML,w+="");break;case"leftright":w="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Hi[e.leftDelim]||e.leftDelim)+""),e.body&&(w+=ea(e.body,0,0,t).mathML),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Hi[e.rightDelim]||e.rightDelim)+""),w+="";break;case"sizeddelim":case"delim":w+='"+(Hi[e.delim]||e.delim)+"";break;case"accent":w+='",w+=ea(e.body,0,0,t).mathML,w+=""+(Hi[S]||e.accent)+"",w+="";break;case"line":case"overlap":break;case"overunder":k=e.overscript,x=e.underscript,(e.svgAbove||k)&&(e.svgBelow||x)?_=e.body:k&&k.length>0?(_=e.body,(null===(a=null===(i=e.body)||void 0===i?void 0:i[0])||void 0===a?void 0:a.underscript)?(x=e.body[0].underscript,_=e.body[0].body):"first"===(null===(r=null===(o=e.body)||void 0===o?void 0:o[0])||void 0===r?void 0:r.type)&&(null===(n=null===(s=e.body)||void 0===s?void 0:s[1])||void 0===n?void 0:n.underscript)&&(x=e.body[1].underscript,_=e.body[1].body)):x&&x.length>0&&(_=e.body,(null===(c=null===(l=e.body)||void 0===l?void 0:l[0])||void 0===c?void 0:c.overscript)?(k=e.body[0].overscript,_=e.body[0].body):"first"===(null===(m=null===(d=e.body)||void 0===d?void 0:d[0])||void 0===m?void 0:m.type)&&(null===(u=null===(p=e.body)||void 0===p?void 0:p[1])||void 0===u?void 0:u.overscript)&&(k=e.body[1].overscript,_=e.body[1].body)),(e.svgAbove||k)&&(e.svgBelow||x)?(w+=``,w+=h[e.svgBody]||ea(_,0,0,t).mathML,w+=h[e.svgBelow]||ea(x,0,0,t).mathML,w+=h[e.svgAbove]||ea(k,0,0,t).mathML,w+=""):e.svgAbove||k?(w+=``+(h[e.svgBody]||ea(_,0,0,t).mathML),w+=h[e.svgAbove]||ea(k,0,0,t).mathML,w+=""):(e.svgBelow||x)&&(w+=``+(h[e.svgBody]||ea(_,0,0,t).mathML),w+=h[e.svgBelow]||ea(x,0,0,t).mathML,w+="");break;case"placeholder":case"mord":{w=f[S]||S||("string"==typeof e.body?e.body:"");const i=S?S.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null;i?w="&#x"+i[1]+";":w.length>0&&"\\"===w.charAt(0)&&(w="string"==typeof e.body&&e.body.charCodeAt(0)>255?"&#x"+("000000"+e.body.charCodeAt(0).toString(16)).substr(-4)+";":"string"==typeof e.body?e.body.charAt(0):e.body);const a=/\d/.test(w)?"mn":"mi";w="<"+a+z+Wi(e.id,t)+">"+Vi(w)+"";break}case"mbin":case"mrel":case"textord":case"minner":w=S&&f[S]?""+f[S]+"":S&&Hi[S]?""+Hi[S]+"":ta(e,t);break;case"mpunct":w='"+(Hi[S]||S)+"";break;case"mop":"​"!==e.body&&(w="",w+="\\operatorname"===S?e.body:S||e.body,w+="");break;case"mathstyle":break;case"box":w='"+ea(e.body,0,0,t).mathML+"";break;case"spacing":w+='';break;case"enclose":w=''+ea(e.body,0,0,t).mathML+"";break;case"space":w+=" "}return w}function oa(e,t){return ea(e,0,0,t).mathML}function ra(e){let t=0;for(let i=0;i{qi(e)&&e.dirty&&na(e)}))}function na(e,t){t=null!=t?t:{},e.dirty=!1,window.mathlive||(window.mathlive={}),Pt(e.model)||(e.model.path=[{relation:"body",offset:0}]),e.model.root.forEach(e=>{e.caret="",e.isSelected=!1,e.containsCaret=!1});const i=e.hasFocus();if(oi(e.model)?Pt(e.model).caret=i&&!e.options.readOnly?e.mode:"":di(e.model,e=>{e.isSelected=!0}),i&&!e.options.readOnly){let t=e.model.ancestor(1),i=1,a=!1;for(;t&&!a;)"surd"!==t.type&&"leftright"!==t.type||(t.containsCaret=!0,a=!0),i+=1,t=e.model.ancestor(i)}const a=D(Ye({mathstyle:h.displaystyle,letterShapeStyle:e.options.letterShapeStyle,atomIdsSettings:{seed:ra(e.model.root.toLatex(!1)),groupNumbers:t.forHighlighting},smartFence:e.options.smartFence,macros:e.options.macros},e.model.root),"ML__base");a.attributes={translate:"no","aria-hidden":"true"};const o=K(a,"ML__mathlive");e.field.innerHTML=e.options.createHTML(o.toMarkup(0,e.options.horizontalSpacingScale)),e.field.classList.toggle("ML__focused",i&&!e.options.readOnly),e.accessibleNode.innerHTML=e.options.createHTML(''+oa(e.model.root,e.options)+"");const r=Ti(e.field);if(null!==r){const t=document.createElement("div");t.classList.add("ML__selection"),t.style.position="absolute",t.style.left=Number(r.left).toString()+"px",t.style.top=Number(r.top).toString()+"px",t.style.width=Number(Math.ceil(r.right-r.left)).toString()+"px",t.style.height=Number(Math.ceil(r.bottom-r.top-1)).toString()+"px",e.field.insertBefore(t,e.field.childNodes[0])}}const la={};function ca(e,t){t=null!=t?t:{target:"mathfield",canUndo:!1},Object.keys(e).forEach(i=>{la[i]={...t,fn:e[i]}})}function da(e,t=",",i){if(!e)return[];let a,o=[];for(let r of e)r&&r.length>0&&"first"===r[0].type&&(r=r.slice(1)),r&&r.length>0&&(a?o.push(a):a=new Je("math","mpunct",t,i),o=o.concat(r));return o}function ma(e,i){const a=e.parent();if(a&&"array"===a.type&&t(a.array)){const t=e.relation();if(a.array){const o=xt(a.array,t);"after row"===i||"before row"===i?(o.col=0,o.row=o.row+("after row"===i?1:0),a.array.splice(o.row,0,[[]])):(o.col+="after column"===i?1:0,a.array[o.row].splice(o.col,0,[]));const r=vt(a.array,o);e.path.pop(),e.path.push({relation:"cell"+r.toString(),offset:0}),e.insertFirstAtom()}}}function pa(e){var t;const i=e.parent();if("leftright"===i.type){i.type="array";const a=null!==(t={"(":"pmatrix","\\lbrack":"bmatrix","\\lbrace":"cases"}[i.leftDelim])&&void 0!==t?t:"matrix",o=re(a),r=[[i.body]];Object.assign(i,o.parser(a,[],r)),i.mode=Ut(e),i.environmentName=a,i.array=r,i.rowGaps=[0],delete i.body,e.path[e.path.length-1].relation="cell0"}}function ua(e){return pa(e),ma(e,"after row"),Ft(e),!0}function ha(e){return pa(e),ma(e,"after column"),Ft(e),!0}function fa(e,t=0){const i=e.suppressChangeNotifications;if(e.suppressChangeNotifications=!0,t=t<0?-1:t>0?1:t,pt(e),e.parent().array&&t<0&&0===e.startOffset()){const t=e.parent().array;if(function(e){const t={col:0,row:0};for(;t.row0){let e=t.length;"first"===t[0].type&&(e-=1),e>0&&(i+=1)}a.row+=1}return i}(t,i.col)&&(function(e,t){let i=0;for(;i"placeholder"!==e.type&&"first"!==e.type);e.parent()[t]=null,e.path.pop(),e.siblings().splice(e.anchorOffset(),0,...i),Xt(e,e.anchorOffset()-1),e.announce("deleted: "+t)}else if("denom"===t){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),Xt(e,e.anchorOffset()+t.length-1),e.announce("deleted: denominator")}else if("body"===t){const t=e.siblings().filter(e=>"placeholder"!==e.type);e.path.length>1&&(t.shift(),e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...t),Xt(e,e.anchorOffset()-1),e.announce("deleted: root"))}else Yt(e,"backward"),ga(e,-1)}else if(t>0)if(i!==a.length-1)/^(group|array|genfrac|surd|leftright|overlap|overunder|box|mathstyle|sizing)$/.test(e.sibling(1).type)?Yt(e,"forward"):(e.announce("deleted",null,a.slice(i+1,i+2)),a.splice(i+1,1));else if("numer"===e.relation()){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),Xt(e,e.anchorOffset()+t.length-1),e.announce("deleted: numerator")}else Yt(e,"forward"),ga(e,-1)}else{const t=e.startOffset()+1,i=e.endOffset()+1;e.announce("deleted",null,a.slice(t,i)),a.splice(t,i-t),Xt(e,t-1)}ut(e),e.suppressChangeNotifications=i,Ot(e),Ft(e)}function ga(e,t=0){if(0===t)fa(e,0);else if(t>0)for(;t>0;)fa(e,1),t--;else for(;t<0;)fa(e,-1),t++;return!0}function ya(e,t){if(oi(e))return!1;function i(t,i){let a=!0;return di(e,e=>{a=a&&e[t]===i},{recursive:!0}),a}return t.color&&i("color",t.color)&&(t.color="none"),t.backgroundColor&&i("backgroundColor",t.backgroundColor)&&(t.backgroundColor="none"),t.fontFamily&&i("fontFamily",t.fontFamily)&&(t.fontFamily="none"),t.series&&(t.fontSeries=t.series),t.fontSeries&&i("fontSeries",t.fontSeries)&&(t.fontSeries="auto"),t.shape&&(t.fontShape=t.shape),t.fontShape&&i("fontShape",t.fontShape)&&(t.fontShape="auto"),t.size&&(t.fontSize=t.size),t.fontSize&&i("fontSize",t.fontSize)&&(t.fontSize="size5"),di(e,e=>e.applyStyle(t),{recursive:!0}),Ft(e),!0}function ba(e){e.root.forEach(e=>{!Array.isArray(e.body)||0!==e.body.length&&"first"===e.body[0].type||e.body.unshift(new Je(e.mode,"first")),!e.superscript||0!==e.superscript.length&&"first"===e.superscript[0].type||e.superscript.unshift(new Je(e.mode,"first")),!e.subscript||0!==e.subscript.length&&"first"===e.subscript[0].type||e.subscript.unshift(new Je(e.mode,"first")),!e.overscript||0!==e.overscript.length&&"first"===e.overscript[0].type||e.overscript.unshift(new Je(e.mode,"first")),!e.underscript||0!==e.underscript.length&&"first"===e.underscript[0].type||e.underscript.unshift(new Je(e.mode,"first")),!e.numer||0!==e.numer.length&&"first"===e.numer[0].type||e.numer.unshift(new Je(e.mode,"first")),!e.denom||0!==e.denom.length&&"first"===e.denom[0].type||e.denom.unshift(new Je(e.mode,"first")),!e.index||0!==e.index.length&&"first"===e.index[0].type||e.index.unshift(new Je(e.mode,"first"))})}function va(e,t,i){var a,o,r,s;if(null!==(a=i.smartFence)&&void 0!==a&&a){if(_a(e,t,i.style))return void ba(e)}else{const i=e.parent();if("leftright"===(null==i?void 0:i.type)&&"?"===i.rightDelim&&e.endOffset()===e.siblings().length-1&&/^[)}\]|]$/.test(t))return i.rightDelim=t,Yt(e,"forward"),ba(e),void Ft(e)}const n=e.suppressChangeNotifications;i.suppressChangeNotifications&&(e.suppressChangeNotifications=!0);const l=e.suppressChangeNotifications;e.suppressChangeNotifications=!0,i.insertionMode||(i.insertionMode="replaceSelection"),i.selectionMode||(i.selectionMode="placeholder"),i.format||(i.format="auto"),i.macros=null!==(o=i.macros)&&void 0!==o?o:e.options.macros;const c=i.mode||Ut(e);let d;const m=[Qe("math",ti(e)).toLatex(!1)],p=null!==(r=i.placeholder)&&void 0!==r?r:"\\placeholder{}";m["?"]=p,"replaceSelection"!==i.insertionMode||oi(e)?"replaceAll"===i.insertionMode?(e.root.body=[],e.root.latex="",e.path=[{relation:"body",offset:0}],e.extent=0):"insertBefore"===i.insertionMode?ni(e):"insertAfter"===i.insertionMode&&si(e):ga(e);const u=e.siblings(),h=e.startOffset();if(h+10&&u[h]&&"placeholder"===u[h].type&&ga(e,-1),"math"===c&&"ASCIIMath"===i.format)[,t]=Kt(t,{format:"ASCIIMath"}),d=rt(t,"math",null,null==i?void 0:i.macros,!1,e.listeners.onError),ka(e,d);else if("text"===c||"auto"!==i.format&&"latex"!==i.format)"text"!==c&&"text"!==i.format||(d=rt(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/\\/g,"\\textbackslash ")).replace(/#/g,"\\#")).replace(/\$/g,"\\$")).replace(/%/g,"\\%")).replace(/&/g,"\\&")).replace(/_/g,"\\_")).replace(/{/g,"\\textbraceleft ")).replace(/}/g,"\\textbraceright ")).replace(/\^/g,"\\textasciicircum ")).replace(/~/g,"\\textasciitilde ")).replace(/£/g,"\\textsterling "),"text",m,i.macros,!1,e.listeners.onError));else if("command"===c){d=[];for(const e of t)U.test(e)&&d.push(new Je("command","command",e))}else if(""===t)d=[new Je("command","command","\\")];else{if("auto"===i.format&&([i.format,t]=Kt(t)),m[0])t=t.replace(/(^|[^\\])#@/g,"$1#0");else if(/(^|[^\\])#@/.test(t)){const i=function(e){const t=e.siblings();let i=e.startOffset();if("text"===t[i].mode)for(;i>=1&&"text"===t[i].mode;)i--;else for(;i>=1&&/^(mord|surd|msubsup|leftright|mop)$/.test(t[i].type);)i--;return i}(e);t=t.replace(/(^|[^\\])#@/g,"$1"+function(e,t,i){const a=e.siblings();if(mt(a))return"";if("first"===a[0].type&&0===t&&(t=1),"root"===e.parent().type&&1===t&&i===a.length-1)return e.parent().toLatex(!1);let o="",r=t;for(;r<=i;)o+=a[r].toLatex(!1),r++;return o}(e,i+1,e.startOffset())),function(e,t){t>0?e.siblings().splice(e.anchorOffset()+1,t):(e.siblings().splice(e.anchorOffset()+t+1,-t),Xt(e,e.anchorOffset()+t))}(e,i-e.startOffset())}else t=t.replace(/(^|[^\\])#@/g,"$1#?");/^\$\$(.*)\$\$$/.test(t)&&(t=t.substring(2,t.length-2)),m[0]||(m[0]=p),d=rt(t,c,m,i.macros,null!==(s=i.smartFence)&&void 0!==s&&s,e.listeners.onError),"latex"!==i.format&&ka(e,d)}ut(e),function e(t,i){t&&i&&(et(t)?t.forEach(t=>e(t,i)):"object"==typeof t&&(t.color||t.backgroundColor||t.fontFamily||t.fontShape||t.fontSeries||t.fontSize||(t.applyStyle(i),e(t.body,i),e(t.numer,i),e(t.denom,i),e(t.index,i),e(t.overscript,i),e(t.underscript,i),e(t.subscript,i),e(t.superscript,i))))}(d,i.style);const f=e.parent();if("latex"!==i.format&&e.options.removeExtraneousParentheses&&f&&"leftright"===f.type&&"("===f.leftDelim&&mt(f.body)&&d&&1===d.length&&"genfrac"===d[0].type?(e.path.pop(),e.siblings()[e.anchorOffset()]=d[0]):("latex"!==i.format||1!==m.length||m[0]||"root"===f.type&&mt(f.body)&&(f.latex=t),e.siblings().splice(e.anchorOffset()+1,0,...d)),ba(e),e.suppressChangeNotifications=l,"placeholder"===i.selectionMode){const t=[];for(const e of d)e.forEach(e=>{"placeholder"===e.type&&t.push(e)});0!==t.length&&jt(e,1,!1)?e.announce("move"):Xt(e,e.anchorOffset()+d.length)}else"before"===i.selectionMode||("after"===i.selectionMode?Xt(e,e.anchorOffset()+d.length):"item"===i.selectionMode&&Xt(e,e.anchorOffset(),d.length));Ft(e),e.suppressChangeNotifications=n}function xa(e){if(e)return 1===e.length&&"leftright"===e[0].type&&"("===e[0].leftDelim&&(e=e[0].body),e}function ka(e,t){if(t&&e.options.removeExtraneousParentheses){for(let e=0;t[e];e++)if("leftright"===t[e].type&&"("===t[e].leftDelim&&et(t[e].body)){let i=0,a=0,o=0;for(let r=0;t[e].body[r];r++)"genfrac"===t[e].body[r].type&&(i++,a=r),"first"!==t[e].body[r].type&&o++;0===o&&1===i&&(t[e]=t[e].body[a])}t.forEach(t=>{if("genfrac"===t.type&&(ka(e,t.numer),ka(e,t.denom),t.numer=xa(t.numer),t.denom=xa(t.denom)),t.superscript&&(ka(e,t.superscript),t.superscript=xa(t.superscript)),t.subscript&&(ka(e,t.subscript),t.subscript=xa(t.subscript)),t.underscript&&(ka(e,t.underscript),t.underscript=xa(t.underscript)),t.overscript&&(ka(e,t.overscript),t.overscript=xa(t.overscript)),t.index&&(ka(e,t.index),t.index=xa(t.index)),"surd"===t.type?(ka(e,t.body),t.body=xa(t.body)):et(t.body)&&ka(e,t.body),t.array)for(let i=_t(t.array);i>=0;i--)ka(e,kt(t.array,i))})}}function _a(e,t,i){const a=e.parent();let o="leftright"===a.type?a.leftDelim+a.rightDelim:"";if("\\lbrace\\rbrace"===o&&(o="{}"),"\\{\\}"===o&&(o="{}"),"{}"===o&&/\||\\vert|\\Vert|\\mvert|\\mid/.test(t))return va(e,"\\,\\middle"+t+"\\, ",{mode:"math",format:"latex",style:i}),!0;"{"!==t&&"\\{"!==t||(t="\\lbrace"),"}"!==t&&"\\}"!==t||(t="\\rbrace"),"["===t&&(t="\\lbrack"),"]"===t&&(t="\\rbrack");const r=V[t];if(r&&("leftright"!==a.type||"|"!==a.leftDelim)){let a="";const o=oi(e)||"placeholder"===Pt(e).type;a=e.sibling(0).isFunction?"\\mleft"+t+"\\mright":"\\left"+t+"\\right",a+=o?"?":r;let s=[];return o&&(s=e.siblings().splice(e.anchorOffset()+1,e.siblings().length)),va(e,a,{mode:"math",format:"latex",style:i}),o&&(e.sibling(0).body=s,Yt(e,"backward")),!0}let s;if(Object.keys(V).forEach(e=>{t===V[e]&&(s=e)}),s){if(a&&"leftright"===a.type&&e.endOffset()===e.siblings().length-1)return a.rightDelim=t,Yt(e,"forward"),Ft(e),!0;const o=e.siblings();let r;for(r=e.endOffset();r>=0&&("leftright"!==o[r].type||"?"!==o[r].rightDelim);r--);if(r>=0)return o[r].rightDelim=t,o[r].body=o[r].body.concat(o.slice(r+1,e.endOffset()+1)),o.splice(r+1,e.endOffset()-r),Xt(e,r),Ft(e),!0;if(a&&"leftright"===a.type&&"?"===a.rightDelim){a.rightDelim=t;const i=o.slice(e.endOffset()+1);return o.splice(e.endOffset()+1),e.path.pop(),e.siblings().splice(e.endOffset()+1,0,...i),Ft(e),!0}const s=e.ancestor(2);return!(!s||"leftright"!==s.type||"?"!==s.rightDelim||e.endOffset()!==o.length-1)&&(Yt(e,"forward"),_a(e,t,i))}return!1}ca({performWithFeedback:(e,t)=>function(e,t){return e.focus(),e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),"moveToNextPlaceholder"===(t=t.replace(/-\w/g,e=>e[1].toUpperCase()))||"moveToPreviousPlaceholder"===t||"complete"===t?e.returnKeypressSound?(e.returnKeypressSound.load(),e.returnKeypressSound.play().catch(e=>{})):e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):"deletePreviousChar"!==t&&"deleteNextChar"!==t&&"deletePreviousWord"!==t&&"deleteNextWord"!==t&&"deleteToGroupStart"!==t&&"deleteToGroupEnd"!==t&&"deleteToMathFieldStart"!==t&&"deleteToMathFieldEnd"!==t||!e.deleteKeypressSound?e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):(e.deleteKeypressSound.load(),e.deleteKeypressSound.play().catch(e=>{})),e.executeCommand(t)}(e,t)}),ca({addRowAfter:ua,addColumnAfter:ha,addRowBefore:function(e){return pa(e),ma(e,"before row"),Ft(e),!0},addColumnBefore:function(e){return pa(e),ma(e,"before column"),Ft(e),!0}},{target:"model",category:"array-edit"});class wa{constructor(e){this.positions=[],this.root=e;const t=new La;t.root=e,ba(t);do{this.positions.push({path:t.toString(),atom:Sa(t),depth:t.path.length})}while(Ma(t))}at(e){return this.positions[e]}find(e){for(let t=0;tthis.at(e).path)}}function Ma(e){const i={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(e.anchorOffset()===e.siblings(!1).length-1){let t=i[e.relation()];const a=e.parent();for(;t&&!a[t];)t=i[t];if(t)return za(e,0,t),!0;if(e.parent().array){const t=_t(e.parent().array);let i=parseInt(e.relation().match(/cell([0-9]*)$/)[1])+1;for(;i{},moveOut:(null==e?void 0:e.moveOut)?e.moveOut:()=>!0,tabOut:(null==e?void 0:e.tabOut)?e.tabOut:()=>!0}}get selection(){const e=Pt(this);let t=void 0;if(this.parent().array)t=kt(this.parent().array,this.relation())[this.focusOffset()];else{const e=this.siblings();t=e[Math.min(e.length-1,this.focusOffset())]}const i=new wa(this.root);return[ht(i,{start:i.find(e),end:i.find(t)})]}set selection(e){!function(e,t){const i=Array.isArray(t)?t[0]:t,a=new wa(e.root);let o;i.direction||(i.direction="forward"),void 0===i.end&&(i.end=i.start),i.end<0&&(i.end=a.lastPosition),o="backward"===i.direction?a.at(i.end).path:a.at(i.start).path,Rt(e,o,i.end-i.start)}(this,e)}get lastPosition(){return new wa(this.root).lastPosition}announce(e,t,i=[]){this.hooks.announce(this.mathfield,e,t,i)}toString(){return ft(this.path,this.extent)}siblings(e=!0){var t;if(0===this.path.length)return[];let i;return this.parent().array?i=kt(this.parent().array,this.relation()):(i=null!==(t=this.parent()[this.relation()])&&void 0!==t?t:[],"string"==typeof i&&(i=[])),!e||0!==i.length&&"first"===i[0].type||i.unshift(new Je(this.parent().mode,"first")),i}anchorOffset(){return this.path.length>0?this.path[this.path.length-1].offset:0}focusOffset(){return this.path.length>0?this.path[this.path.length-1].offset+this.extent:0}groupIsSelected(){return 0===this.startOffset()&&this.endOffset()>=this.siblings().length-1}startOffset(){return Math.min(this.focusOffset(),this.anchorOffset())}endOffset(){return Math.max(this.focusOffset(),this.anchorOffset())}sibling(e){return this.siblings()[this.startOffset()+e]}ancestor(e){if(e>this.path.length)return null;let t=this.root;for(let i=0;i0?this.path[this.path.length-1].relation:""}insertFirstAtom(){this.siblings()}}function Aa(e){if(si(e),!Pt(e).superscript)if(Pt(e).subscript)Pt(e).superscript=[new Je(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.superscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.subscript)?(e.path[e.path.length-1].offset+=1,Pt(e).superscript=[new Je(e.parent().mode,"first")]):("limits"!==Pt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Je(e.parent().mode,"msubsup","​",Ht(e))),e.path[e.path.length-1].offset+=1),Pt(e).superscript=[new Je(e.parent().mode,"first")])}return e.path.push({relation:"superscript",offset:0}),ii(e),!0}ca({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",denom:"numer",numer:"denom"}[e.relation()];return t||Aa(e),e.parent()[t]||(e.parent()[t]=[new Je(e.parent().mode,"first")]),Xt(e,0,"end",t),!0},moveBeforeParent:e=>e.path.length>1?(e.path.pop(),Xt(e,e.anchorOffset()-1),!0):(e.announce("plonk"),!1),moveAfterParent:e=>li(e),moveToNextPlaceholder:e=>jt(e,1),moveToPreviousPlaceholder:e=>jt(e,-1),moveToNextChar:e=>Yt(e,"forward"),moveToPreviousChar:e=>Yt(e,"backward"),moveUp:e=>Yt(e,"upward"),moveDown:e=>Yt(e,"downward"),moveToNextWord:e=>Qt(e,1),moveToPreviousWord:e=>Qt(e,-1),moveToGroupStart:e=>Xt(e,0),moveToGroupEnd:e=>Xt(e,-1),moveToMathFieldStart:e=>ei(e,-1),moveToMathFieldEnd:e=>ei(e,1),moveToSuperscript:e=>Aa(e),moveToSubscript:e=>function(e){if(si(e),!Pt(e).subscript)if(Pt(e).superscript)Pt(e).subscript=[new Je(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.subscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.superscript)?(e.path[e.path.length-1].offset+=1,Pt(e).subscript=[new Je(e.parent().mode,"first")]):("limits"!==Pt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Je(e.parent().mode,"msubsup","​",Ht(e))),e.path[e.path.length-1].offset+=1),Pt(e).subscript=[new Je(e.parent().mode,"first")])}return e.path.push({relation:"subscript",offset:0}),ii(e),!0}(e)},{target:"model",category:"selection-anchor"}),ca({selectGroup:e=>ii(e),selectAll:e=>ai(e),extendToNextChar:e=>Jt(e,1),extendToPreviousChar:e=>Jt(e,-1),extendToNextWord:e=>Qt(e,1,{extend:!0}),extendToPreviousWord:e=>Qt(e,-1,{extend:!0}),extendUp:e=>Yt(e,"upward",{extend:!0}),extendDown:e=>Yt(e,"downward",{extend:!0}),extendToNextBoundary:e=>Qt(e,1,{extend:!0}),extendToPreviousBoundary:e=>Qt(e,-1,{extend:!0}),extendToGroupStart:e=>(ri(e,-e.anchorOffset()),!0),extendToGroupEnd:e=>(ri(e,e.siblings().length-e.anchorOffset()),!0),extendToMathFieldStart:e=>ei(e,-1,{extend:!0}),extendToMathFieldEnd:e=>ei(e,1,{extend:!0})},{target:"model",category:"selection-extend"}),ca({deleteAll:e=>(ai(e),ga(e)),deleteNextChar:e=>ga(e,1),deletePreviousChar:e=>ga(e,-1),deleteNextWord:e=>(Qt(e,1,{extend:!0}),ga(e)),deletePreviousWord:e=>(Qt(e,-1,{extend:!0}),ga(e)),deleteToGroupStart:e=>(ri(e,-e.anchorOffset()),ga(e)),deleteToGroupEnd:e=>(ei(e,-1,{extend:!0}),ga(e)),deleteToMathFieldStart:e=>(ei(e,-1,{extend:!0}),ga(e)),deleteToMathFieldEnd:e=>(ei(e,1,{extend:!0}),ga(e))},{target:"model",category:"delete"});const Ca=["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"];function $a(e){return!e.ctrlKey&&!e.metaKey&&"Dead"!==e.key&&Ca.indexOf(e.code)>=0}function qa(e){const t=[];return(e=function(e){if(!e.code){const t=Object.entries(xi().mapping);let i,a=!1,o=!1;for(let r=0;r<4;r++){for(const[s,n]of t)if(n[r]===e.key){i=s,3===r?(a=!0,o=!0):2===r?a=!0:1===r&&(o=!0);break}if(i)break}return new KeyboardEvent(e.type,{...e,altKey:a,shiftKey:o,code:i})}return new KeyboardEvent(e.type,e)}(e)).ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),0===t.length?"["+e.code+"]":(t.push("["+e.code+"]"),t.join("+"))}function Da(e){var t;if(!e)return"";let i;return"Unidentified"===e.key&&e.target&&(i=e.target.value),i=null!==(t=null!=i?i:e.key)&&void 0!==t?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(i)&&(i=""),i}class Ta{constructor(e){this.maximumDepth=1e3,this.record=!1,this.canCoalesce=!1,this.model=e,this.reset()}reset(){this.stack=[],this.index=-1}startRecording(){this.record=!0}canUndo(){return this.index>0}canRedo(){return this.index!==this.stack.length-1}undo(e){this.canUndo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"undo"),this.restore(this.stack[this.index-1],e),this.index-=1,e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"undo"),this.canCoalesce=!1)}redo(e){this.canRedo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"redo"),this.index+=1,this.restore(this.stack[this.index],e),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"redo"),this.canCoalesce=!1)}pop(){this.canUndo()&&(this.index-=1,this.stack.pop())}snapshot(e){this.record&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"snapshot"),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push({latex:this.model.root.toLatex(!1),selection:this.model.selection}),this.index++,this.stack.length>this.maximumDepth&&this.stack.shift(),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"snapshot"),this.canCoalesce=!1)}snapshotAndCoalesce(e){this.canCoalesce&&this.pop(),this.snapshot(e),this.canCoalesce=!0}save(){return{latex:this.model.root.toLatex(!1),selection:this.model.selection}}restore(e,t){const i=this.model.suppressChangeNotifications;void 0!==t.suppressChangeNotifications&&(this.model.suppressChangeNotifications=t.suppressChangeNotifications),va(this.model,e?e.latex:"",{...t,format:"latex",mode:"math",insertionMode:"replaceAll",selectionMode:"after",smartFence:!1}),this.model.selection=e?e.selection:[{start:0}],this.model.suppressChangeNotifications=i}}const Ka={"−":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega"},Ea={"\\pm":"+-","\\times":"xx","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrace":"{","\\rbrace":"}","\\langle":"(:","\\rangle":":)"};function Na(e){if(!e)return"";if(t(e)){let t="";if(0===e.length)return"";if("first"===e[0].type&&(e=e.slice(1)),0===e.length)return"";if("text"===e[0].mode){let i=0;for(t='"';e[i]&&"text"===e[i].mode;)t+=e[i].body,i++;t+='"'+Na(e.slice(i))}else if("math"===e[0].mode){let i=0;for(;e[i]&&"math"===e[i].mode;)t+=Na(e[i]),i++;t+=Na(e.slice(i))}return t.trim()}if("text"===e.mode)return'"'+e.body+'"';let i="";const a=e.symbol;let o;switch(e.type){case"group":case"root":i=Na(e.body);break;case"array":break;case"genfrac":(e.leftDelim||e.rightDelim)&&(i+="."!==e.leftDelim&&e.leftDelim?e.leftDelim:"{:"),e.hasBarLine?(i+="(",i+=Na(e.numer),i+=")/(",i+=Na(e.denom),i+=")"):(i+="("+Na(e.numer)+"),",i+="("+Na(e.denom)+")"),(e.leftDelim||e.rightDelim)&&(i+="."!==e.rightDelim&&e.rightDelim?e.rightDelim:"{:");break;case"surd":e.index?i+="root("+Na(e.index)+")("+Na(e.body)+")":i+="sqrt("+Na(e.body)+")";break;case"leftright":i+="."!==e.leftDelim&&e.leftDelim?e.leftDelim:"{:",i+=Na(e.body),i+="."!==e.rightDelim&&e.rightDelim?e.rightDelim:":}";break;case"sizeddelim":case"delim":case"overlap":case"overunder":break;case"mord":i=Ka[a]||a||("string"==typeof e.body?e.body:""),"\\"===i[0]&&(i=String(i)),o=a?a.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null,o?i=String.fromCharCode(parseInt("0x"+o[1])):i.length>0&&"\\"===i.charAt(0)&&(i="string"==typeof e.body?e.body.charAt(0):e.symbol);break;case"mbin":case"mrel":case"textord":case"minner":i=a&&Ka[a]?Ka[a]:a&&Ea[a]?Ea[a]:e.body;break;case"mopen":case"mclose":i+=e.body;break;case"mpunct":i=Ea[a]||a;break;case"mop":"​"!==e.body&&(i="",i+="\\operatorname"===a?Na(e.body):e.body||a,i+=" ");break;case"mathstyle":case"box":case"spacing":case"enclose":break;case"space":i=" "}if(e.subscript){i+="_";const t=Na(e.subscript);t.length>1&&!/^(-)?\d+(\.\d*)?$/.test(t)?i+="("+t+")":i+=t}if(e.superscript){i+="^";const t=Na(e.superscript);t.length>1&&!/^(-)?\d+(\.\d*)?$/.test(t)?i+="("+t+")":i+=t}return i}const Ba={};function Oa(e){const t=Ba.locale.substring(0,2);let i="";return Ba.strings[Ba.locale]&&(i=Ba.strings[Ba.locale][e]),!i&&Ba.strings[t]&&(i=Ba.strings[t][e]),i||(i=Ba.strings.en[e]),i||(i=e),i}function Fa(e,t,i){pt(e);const a=[],o=t.substr(i);for(const e of o){const t=new Je("command","command",e);t.isSuggestion=!0,a.push(t)}Array.prototype.splice.apply(e.siblings(),[e.anchorOffset()+1,0].concat(a))}function Pa(e,t){if(t=null!=t?t:{acceptSuggestion:!1},Fi(e),t.discard)return Ii(e.model,null),e.switchMode("math"),!0;const i=Pi(e.model,!t.acceptSuggestion);if(i){if("\\("===i||"\\)"===i)Ii(e.model,[]),va(e.model,i.slice(1),{mode:e.mode});else{e.switchMode("math");const t=rt(i,"math",null,e.options.macros);t?Ii(e.model,t):Ri(e.model,!0)}return e.snapshot(),e.model.announce("replacement"),!0}return!1}function Ra(e){!function(e){const t=e.siblings(),i=Wt(e);let a=i.start;for(;a1)}return sa(e),!0}Ba.plural=function(e,t,i){var a;(i=null!=i?i:{}).type=null!==(a=i.type)&&void 0!==a?a:"cardinal";const o=Ba.locale.substring(0,2),r="ordinal"===i.type?Ba._ordinal:Ba._cardinal;let s,n="ordinal"===i.type?Ba._ordinalPluralCategories.indexOf(r.select(e)):Ba._cardinalPluralCategories.indexOf(r.select(e));return Ba.strings[Ba.locale]&&(s=Ba.strings[Ba.locale][t]),!s&&Ba.strings[o]&&(s=Ba.strings[o][t]),s||(s=Ba.strings.en[t],s||(s=t),n="ordinal"===i.type?Ba._ordinalPluralCategories.indexOf(Ba._ordinalEnglish.select(e)):Ba._cardinalPluralCategories.indexOf(Ba._cardinalEnglish.select(e))),s.split(";")[n]||s.split(";")[0]},Ba.merge=function(e,t){if(e&&t){const i=Ba._locale;Ba.locale=e,Ba.strings[e]={...Ba.strings[e],...t},Ba.locale=i}else e&&!t&&Object.keys(e).forEach(t=>Ba.merge(t,e[t]))},Object.defineProperty(Ba,"locale",{set(e){Ba._locale=e,Ba._ordinal=null,Ba._cardinal=null},get(){var e;return Ba._locale||(Ba._locale=null!==(e=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==e?e:"en"),Ba._locale}}),Object.defineProperty(Ba,"ordinal",{get:()=>(Ba._ordinal||(Ba._ordinalEnglish=new Intl.PluralRules("en",{type:"ordinal"}),Ba._ordinalEnglishPluralCategories=Ba._ordinalEnglish.resolvedOptions().pluralCategories,Ba._ordinal=new Intl.PluralRules(Ba.locale,{type:"ordinal"}),Ba._ordinalPluralCategories=Ba._ordinal.resolvedOptions().pluralCategories),Ba._ordinal)}),Object.defineProperty(Ba,"cardinal",{get:()=>(Ba._cardinal||(Ba._cardinalEnglish=new Intl.PluralRules("en",{type:"cardinal"}),Ba._cardinalEnglishPluralCategories=Ba._cardinalEnglish.resolvedOptions().pluralCategories,Ba._cardinal=new Intl.PluralRules(Ba.locale,{type:"cardinal"}),Ba._cardinalPluralCategories=Ba._ordinal.resolvedOptions().pluralCategories),Ba._cardinal)}),Ba.strings={en:{"keyboard.tooltip.functions":"Functions","keyboard.tooltip.symbols":"Symbols","keyboard.tooltip.greek":"Greek Letters","keyboard.tooltip.command":"LaTeX Command Mode","keyboard.tooltip.numeric":"Numeric","keyboard.tooltip.roman":"Roman Letters","tooltip.copy to clipboard":"Copy to Clipboard","tooltip.redo":"Redo","tooltip.toggle virtual keyboard":"Toggle Virtual Keyboard","tooltip.undo":"Undo"},ar:{"keyboard.tooltip.functions":"مهام","keyboard.tooltip.symbols":"حرف او رمز","keyboard.tooltip.greek":"حروف يونانية","keyboard.tooltip.command":"حالة تلقي الأوامر اللاتك","keyboard.tooltip.numeric":"الرقمية","keyboard.tooltip.roman":"رموز الاحرف الرومانية","tooltip.copy to clipboard":"نسخ إلى الحافظة","tooltip.redo":"الإعادة","tooltip.toggle virtual keyboard":"تبديل لوحة المفاتيح الإفتراضية","tooltip.undo":"إلغاء"},de:{"keyboard.tooltip.functions":"Funktionen","keyboard.tooltip.symbols":"Symbole","keyboard.tooltip.greek":"Griechische Buchstaben","keyboard.tooltip.command":"LaTeX-Befehlsmodus","keyboard.tooltip.numeric":"Numerisch","keyboard.tooltip.roman":"Römische Buchstaben","tooltip.copy to clipboard":"In die Zwischenablage kopieren","tooltip.redo":"Wiederholen","tooltip.toggle virtual keyboard":"Virtuelle Tastatur umschalten","tooltip.undo":"Widerrufen"},el:{"keyboard.tooltip.functions":"συναρτήσεις","keyboard.tooltip.symbols":"σύμβολα","keyboard.tooltip.greek":"ελληνικά γράμματα","keyboard.tooltip.command":"Λειτουργία εντολών LaTeX","keyboard.tooltip.numeric":"Αριθμητικός","keyboard.tooltip.roman":"Ρωμαϊκά γράμματα","tooltip.copy to clipboard":"Αντιγραφή στο πρόχειρο","tooltip.redo":"Ξανακάνω","tooltip.toggle virtual keyboard":"Εναλλαγή εικονικού πληκτρολογίου","tooltip.undo":"Ξεκάνω"},es:{"keyboard.tooltip.functions":"Funciones","keyboard.tooltip.symbols":"Símbolos","keyboard.tooltip.greek":"Letras griegas","keyboard.tooltip.command":"Modo Comando LaTeX","keyboard.tooltip.numeric":"Numérico","keyboard.tooltip.roman":"Letras romanas","tooltip.copy to clipboard":"Copiar al portapapeles","tooltip.redo":"Rehacer","tooltip.toggle virtual keyboard":"Alternar teclado virtual","tooltip.undo":"Deshacer"},fa:{"keyboard.tooltip.functions":"توابع","keyboard.tooltip.symbols":"نمادها","keyboard.tooltip.greek":"حروف یونانی","keyboard.tooltip.command":"حالت دستور لاتک","keyboard.tooltip.numeric":"عددی","keyboard.tooltip.roman":"حروف رومی","tooltip.copy to clipboard":"کپی به کلیپبورد","tooltip.redo":"بازگشت به بعد","tooltip.toggle virtual keyboard":"نمایش/نهفتن کیبورد مجازی","tooltip.undo":"بازگشت به قبل"},fr:{"keyboard.tooltip.functions":"Fonctions","keyboard.tooltip.symbols":"Symboles","keyboard.tooltip.greek":"Lettres grecques","keyboard.tooltip.command":"Mode de commandes LaTeX","keyboard.tooltip.numeric":"Numérique","keyboard.tooltip.roman":"Lettres romaines","tooltip.copy to clipboard":"Copier dans le presse-papiers","tooltip.redo":"Rétablir","tooltip.toggle virtual keyboard":"Afficher/Masquer le clavier virtuel","tooltip.undo":"Annuler"},it:{"keyboard.tooltip.functions":"Funzioni","keyboard.tooltip.symbols":"Simboli","keyboard.tooltip.greek":"Lettere greche","keyboard.tooltip.command":"Modalità di comando LaTeX","keyboard.tooltip.numeric":"Numerico","keyboard.tooltip.roman":"Lettere romane","tooltip.copy to clipboard":"Copia negli appunti","tooltip.redo":"Rifare","tooltip.toggle virtual keyboard":"Attiva / disattiva la tastiera virtuale","tooltip.undo":"Disfare"},ja:{"keyboard.tooltip.functions":"関数","keyboard.tooltip.symbols":"シンボル","keyboard.tooltip.greek":"ギリシャ文字","keyboard.tooltip.command":"LaTeXコマンドモード","keyboard.tooltip.numeric":"数値","keyboard.tooltip.roman":"ローマ字","tooltip.copy to clipboard":"クリップボードにコピー","tooltip.redo":"やり直し","tooltip.toggle virtual keyboard":"仮想キーボードの切り替え","tooltip.undo":"元に戻す"},pl:{"keyboard.tooltip.functions":"Funkcje","keyboard.tooltip.symbols":"Symbolika","keyboard.tooltip.greek":"Litery greckie","keyboard.tooltip.command":"Tryb poleceń LaTeX","keyboard.tooltip.numeric":"Numeryczne","keyboard.tooltip.roman":"Litery rzymskie","tooltip.copy to clipboard":"Kopiuj do Schowka","tooltip.redo":"Przywróć","tooltip.toggle virtual keyboard":"Przełącz wirtualną klawiaturę","tooltip.undo":"Cofnij"},ru:{"keyboard.tooltip.functions":"Функции","keyboard.tooltip.symbols":"Символы","keyboard.tooltip.greek":"Греческие буквы","keyboard.tooltip.command":"Режим командной строки LaTeX","keyboard.tooltip.numeric":"числовой","keyboard.tooltip.roman":"Латинские буквы","tooltip.copy to clipboard":"Скопировать в буфер обмена","tooltip.redo":"переделывать","tooltip.toggle virtual keyboard":"Переключить виртуальную клавиатуру","tooltip.undo":"расстегивать"}},ca({complete:Pa,nextSuggestion:function(e){return e.suggestionIndex+=1,Ra(e),!1},previousSuggestion:function(e){if(e.suggestionIndex-=1,e.suggestionIndex<0){pt(e.model);const t=ne(Pi(e.model));e.suggestionIndex=t.length-1}return Ra(e),!1}},{target:"mathfield",category:"autocomplete"});const Ia={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"eye ","\\sum":"Summation ","\\prod":"Product ",a:'a',A:'capital A',"+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","​":"","−":"minus ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"};function Ha(e){let t=0;if(et(e))for(const i of e)"first"!==i.type&&(t+=1);return 1===t}function Va(e){let t="";if(et(e))for(const i of e)"first"!==i.type&&"string"==typeof i.body&&(t+=i.body);return t}function Wa(e,t){var i;const a={...t,textToSpeechRulesOptions:{...t.textToSpeechRulesOptions}};if(window.sre&&"sre"===a.textToSpeechRules){const t=oa(e,a);return t?(a.textToSpeechMarkup&&(a.textToSpeechRulesOptions=null!==(i=a.textToSpeechRulesOptions)&&void 0!==i?i:{},a.textToSpeechRulesOptions.markup=a.textToSpeechMarkup,"ssml"===a.textToSpeechRulesOptions.markup&&(a.textToSpeechRulesOptions.markup="ssml_step"),a.textToSpeechRulesOptions.rate=a.speechEngineRate),a.textToSpeechRulesOptions&&window.sre.System.getInstance().setupEngine(a.textToSpeechRulesOptions),window.sre.System.getInstance().toSpeech(t)):""}let o=function e(t,i,a){function o(e){return""+e+""}if(!i)return"";let r="";if(et(i)){let s=!1,n=!1;for(let l=0;l'),r+=i.body;else{i.id&&"math"===t&&(r+='');let s="",n="",l="",c=!1;switch(i.type){case"group":case"root":r+=e("math",i.body,a);break;case"genfrac":if(s=e("math",i.numer,a),n=e("math",i.denom,a),Ha(i.numer)&&Ha(i.denom)){const e={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Va(i.numer)+"/"+Va(i.denom)];e?r=e:r+=s+" over "+n}else r+=' the fraction '+s+', over '+n+'. End fraction.';break;case"surd":if(l=e("math",i.body,a),i.index){let t=e("math",i.index,a);t=t.trim();const o=t.replace(//g,"");r+="3"===o?' the cube root of '+l+'. End cube root':"n"===o?' the nth root of '+l+'. End root':' the root with index: '+t+', of '+l+'. End root'}else Ha(i.body)?r+=" the square root of "+l+" , ":r+=' the square root of '+l+'. End square root';break;case"leftright":r+=Ia[i.leftDelim]||i.leftDelim,r+=e("math",i.body,a),r+=Ia[i.rightDelim]||i.rightDelim;break;case"rule":case"overunder":case"overlap":break;case"placeholder":r+="placeholder "+i.body;break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":case"textord":{const o=i.symbol;if("\\mathbin"===o||"\\mathrel"===o||"\\mathopen"===o||"\\mathclose"===o||"\\mathpunct"===o||"\\mathord"===o||"\\mathinner"===o){r=e(t,i.body,a);break}let s=i.body,n=i.symbol;if("delim"!==i.type&&"sizeddelim"!==i.type||(s=n=i.delim),"text"===t)r+=s;else{if("mbin"===i.type&&(r+=''),s){const e=Ia[s]||(n?Ia[n.trim()]:"");if(e)r+=" "+e;else{const e=n?function(e){let t="";return"\\"===e.charAt(0)&&(t=" "+e.replace("\\","")+" "),t}(n.trim()):"";r+=e||function(e){let t="";return a.textToSpeechMarkup?/[a-z]/.test(e)?t+=' '+e+"":/[A-Z]/.test(e)?t+=String("capital "+e.toLowerCase()):t+=e:/[a-z]/.test(e)?t+=" '"+e.toUpperCase()+"'":/[A-Z]/.test(e)?t+=" 'capital "+e.toUpperCase()+"'":t+=e,t}(s)}}else r+=e("math",i.body,a);"mbin"===i.type&&(r+='')}break}case"mop":if("​"!==i.body){const t=i.symbol;if("\\sum"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the summation from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the summation from '+t+' of ',c=!0}else r+=" the summation of";else if("\\prod"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the product from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the product from '+t+' of ',c=!0}else r+=" the product of ";else if("\\int"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let s=e("math",i.subscript,a);s=s.trim(),r+=' the integral from '+o(s)+' to '+o(t)+' of ',c=!0}else r+=' the integral of ';else"string"==typeof i.body?r+=Ia[i.body]||Ia[i.symbol]||" "+i.body:i.symbol&&("\\"===i.symbol[0]?r+=" "+i.symbol.substr(1):r+=" "+i.symbol)}break;case"enclose":l=e("math",i.body,a),Ha(i.body)?r+=" crossed out "+l+" , ":r+=" crossed out "+l+". End cross out"}if(!c&&i.superscript){let o=e(t,i.superscript,a);o=o.trim();const s=o.replace(/<[^>]*>/g,"");if(Ha(i.superscript)){if("math"===t){const e=function(e){if(et(e))for(const t of e)if("first"!==t.type&&t.id)return t.id.toString();return""}(i.superscript);e&&(r+='')}"′"===s?r+=" prime ":"2"===s?r+=" squared ":"3"===s?r+=" cubed ":isNaN(parseInt(s))?r+=" to the "+o+"; ":r+=' to the '+s+" power; "}else isNaN(parseInt(s))?r+=" raised to the "+o+"; ":r+=' raised to the '+s+" power; "}if(!c&&i.subscript){let t=e("math",i.subscript,a);t=t.trim(),Ha(i.subscript)?r+=" sub "+t:r+=" subscript "+t+". End subscript. "}}return r}("math",e,a);if("ssml"===a.textToSpeechMarkup){let e="";a.speechEngineRate&&(e=''),o=''+e+"

    "+o+"

    "+(e?"
    ":"")+""}else o="mac"===a.textToSpeechMarkup&&"mac"===function(e){let t="other";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?t="mac":/^(win)/i.test(navigator.platform)?t="win":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos")),t===e?e:"!"+e}("mac")?o.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):o.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return o}function Ua(e,t,i){return t+Wa(i,{...e,textToSpeechMarkup:"",textToSpeechRulesOptions:{...e.textToSpeechRulesOptions,markup:"none"}})}function ja(e,t){if(!t&&window&&window.mathlive&&(t=window.mathlive.config),(t=null!=t?t:{}).speechEngine&&"local"!==t.speechEngine)if("amazon"===t.speechEngine){if(window&&window.AWS){const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),a={OutputFormat:"mp3",VoiceId:t.speechEngineVoice,Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes(t.speechEngineVoice)?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(a,(function(e,t){if(e);else if(null==t?void 0:t.AudioStream){const e=new Uint8Array(t.AudioStream),i=new Blob([e.buffer],{type:"audio/mpeg"}),a=URL.createObjectURL(i);new Audio(a).play().catch(e=>{})}}))}}else t.speechEngine;else{const t=new SpeechSynthesisUtterance(e);window&&window.speechSynthesis.speak(t)}}function Xa(e,t,i,a){let o="";"plonk"===t?(e.plonkSound&&(e.plonkSound.load(),e.plonkSound.play().catch(e=>{})),e.resetKeystrokeBuffer()):"delete"===t?o=Ua(e.options,"deleted: ",a):"focus"===t||/move/.test(t)?o=(oi(e.model)?"":"selected: ")+function(e,t){function i(e,t){return"body"===t.relation?{enclose:"cross out",leftright:"fence",surd:"square root",root:"math field"}[e.type]:{numer:"numerator",denom:"denominator",index:"index",body:"parent",subscript:"subscript",superscript:"superscript"}[t.relation]}const a=t?t.path:[],o=e.model.path,r=o[o.length-1];let s="";for(;a.length>o.length;)s+="out of "+i(t.parent(),a[a.length-1])+"; ",a.pop();if(!oi(e.model))return Ua(e.options,"",ti(e.model));const n=i(e.model.parent(),r);0===r.offset&&(s+=(n?"start of "+n:"unknown")+": ");const l=e.model.sibling(Math.max(1,e.model.extent));return l?s+=Ua(e.options,"",l):0!==r.offset&&(s+=n?"end of "+n:"unknown"),s}(e,i):"replacement"===t?o=Ua(e.options,"",e.model.sibling(0)):"line"===t?(o=Ua(e.options,"",e.model.root),e.accessibleNode.innerHTML=e.options.createHTML(''+oa(e.model.root,e.options)+""),e.textarea.setAttribute("aria-label","after: "+o)):o=a?Ua(e.options,t+" ",a):t;const r=/\u00a0/.test(e.ariaLiveText.textContent)?"   ":"   ";e.ariaLiveText.textContent=o+r}ca({speak:(e,t,i)=>function(e,t,i){i=null!=i?i:{withHighlighting:!1};const a=function(e,t){let i=null;switch(t){case"all":i=e.model.root;break;case"selection":oi(e.model)||(i=ti(e.model));break;case"left":{const t=e.model.siblings(),a=e.model.startOffset();if(a>=1){i=[];for(let e=1;e<=a;e++)i.push(t[e])}break}case"right":{const t=e.model.siblings(),a=e.model.endOffset()+1;if(a<=t.length-1){i=[];for(let e=a;e<=t.length-1;e++)i.push(t[e])}break}case"group":i=e.model.siblings();break;case"parent":{const t=e.model.parent();t&&"root"!==t.type&&(i=e.model.parent());break}}return i}(e,t);if(null===a)return e.options.speakHook(function(e){let t="";switch(e){case"all":break;case"selection":t="no selection";break;case"left":t="at start";break;case"right":t="at end";break;case"group":break;case"parent":t="no parent"}return t}(t),e.options),!1;const o={...e.options};(i.withHighlighting||"amazon"===o.speechEngine)&&(o.textToSpeechMarkup=window.sre&&"sre"===o.textToSpeechRules?"ssml_step":"ssml");const r=Wa(a,o);return i.withHighlighting?(window.mathlive.readAloudMathField=e,na(e,{forHighlighting:!0}),e.options.readAloudHook&&e.options.readAloudHook(e.field,r,e.options)):e.options.speakHook&&e.options.speakHook(r,o),!1}(e,t,i)},{target:"mathfield",category:"speech"});const Ga=()=>{};function Za(e){if("string"==typeof e){const t=new Audio;return t.preload="none",t.src=e,t.volume=.5,t}return e}function Ya(e){e instanceof HTMLAudioElement&&(e.pause(),e.removeAttribute("src"),e.load())}function Ja(e,i){const a=Qa(e,Object.keys(e));return Object.keys(i).forEach(e=>{var o,r,s;switch(e){case"scriptDepth":if(t(i.scriptDepth))a.scriptDepth=[i.scriptDepth[0],i.scriptDepth[1]];else{if("number"!=typeof i.scriptDepth)throw Error("Unexpected value for scriptDepth");a.scriptDepth=[i.scriptDepth,i.scriptDepth]}break;case"namespace":if(!/^[a-z]*[-]?$/.test(i.namespace))throw Error("namespace must be a string of lowercase characters only");/-$/.test(i.namespace)?a.namespace=i.namespace:a.namespace=i.namespace+"-";break;case"locale":a.locale="auto"===i.locale?null!==(o=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==o?o:"en":i.locale,Ba.locale=a.locale;break;case"strings":Ba.merge(i.strings),a.strings=Ba.strings;break;case"virtualKeyboardLayout":"auto"===i.virtualKeyboardLayout?a.virtualKeyboardLayout=null!==(r={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Ba.locale.substring(0,2)])&&void 0!==r?r:"qwerty":a.virtualKeyboardLayout=i.virtualKeyboardLayout;break;case"virtualKeyboardMode":{const e=null===(s=window.matchMedia)||void 0===s?void 0:s.call(window,"(any-pointer: coarse)").matches;"auto"===i.virtualKeyboardMode?a.virtualKeyboardMode=e?"onfocus":"off":a.virtualKeyboardMode=i.virtualKeyboardMode}break;case"letterShapeStyle":"auto"===i.letterShapeStyle?"fr"===Ba.locale.substring(0,2)?a.letterShapeStyle="french":a.letterShapeStyle="tex":a.letterShapeStyle=i.letterShapeStyle;break;case"plonkSound":Ya(a.plonkSound),a.plonkSound=Za(i.plonkSound);break;case"keypressSound":if(Ya(a.keypressSound),"string"==typeof i.keypressSound){const e=Za(i.keypressSound);a.keypressSound={delete:e,return:e,spacebar:e,default:e}}else if(i.keypressSound instanceof HTMLAudioElement)a.keypressSound={delete:i.keypressSound,return:i.keypressSound,spacebar:i.keypressSound,default:i.keypressSound};else{if(!i.keypressSound.default)throw Error("Missing keypressSound.default");a.keypressSound={...i.keypressSound},a.keypressSound.return||(a.keypressSound.return=i.keypressSound.default),a.keypressSound.spacebar||(a.keypressSound.spacebar=i.keypressSound.default),a.keypressSound.delete||(a.keypressSound.delete=i.keypressSound.default)}break;case"onBlur":case"onFocus":case"onContentWillChange":case"onContentDidChange":case"onSelectionWillChange":case"onSelectionDidChange":case"onUndoStateWillChange":case"onUndoStateDidChange":case"onModeChange":case"onCommit":case"onVirtualKeyboardToggle":case"onReadAloudStatus":case"onError":if(null===i[e])a[e]=Ga;else if("function"!=typeof i[e])throw Error(e+" must be a function or null");a[e]=i[e];break;default:t(i[e])?a[e]=[...i[e]]:"object"==typeof i[e]?a[e]={...i[e]}:a[e]=i[e]}}),void 0!==i.overrideDefaultInlineShortcuts&&(i.overrideDefaultInlineShortcuts?a.inlineShortcuts=i.inlineShortcuts:a.inlineShortcuts={...Dt,...i.inlineShortcuts}),a}function Qa(e,i){let a;a="string"==typeof i?[i]:void 0===i?Object.keys(e):i;const o={};return a.forEach(i=>{t(o[i])?o[i]=[...o[i]]:"object"==typeof o[i]?o[i]={...o[i]}:o[i]=e[i]}),"string"==typeof i?o[i]:o}function eo(){return{namespace:"",substituteTextArea:void 0,readOnly:!1,createHTML:e=>e,fontsDirectory:"./fonts",defaultMode:"math",macros:H,horizontalSpacingScale:1,letterShapeStyle:"auto",smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,ignoreSpacebarInMathMode:!0,locale:Ba.locale,strings:Ba.strings,keybindings:ki,overrideDefaultInlineShortcuts:!1,inlineShortcuts:{},inlineShortcutTimeout:0,virtualKeyboardToggleGlyph:'',virtualKeyboardMode:"auto",virtualKeyboards:"all",virtualKeyboardLayout:"auto",customVirtualKeyboardLayers:{},customVirtualKeyboards:{},virtualKeyboardTheme:/android|cros/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?"material":"apple",keypressVibration:!0,keypressSound:null,plonkSound:null,textToSpeechRules:"mathlive",textToSpeechMarkup:"",textToSpeechRulesOptions:{},speechEngine:"local",speechEngineVoice:"Joanna",speechEngineRate:"100%",speakHook:Ga,readAloudHook:Ga,onAnnounce:Xa,onKeystroke:()=>!0,onMoveOutOf:()=>!0,onTabOutOf:()=>!0,onBlur:Ga,onFocus:Ga,onContentWillChange:Ga,onContentDidChange:Ga,onSelectionWillChange:Ga,onSelectionDidChange:Ga,onUndoStateWillChange:Ga,onUndoStateDidChange:Ga,onModeChange:Ga,onVirtualKeyboardToggle:Ga,onReadAloudStatus:Ga,onCommit:Ga,onError:()=>{}}}function to(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"math"!==r.mode||!(/mord|textord|mpunct/.test(r.type)||"mop"===r.type&&/[a-zA-Z]+/.test(r.body))||Boolean(r.superscript)||Boolean(r.subscript)||i&&!i(r),o||(r.applyStyle({mode:"text"}),r.symbol=r.body,r.latex=""),a-=1,t-=1}Ft(e.model)}function io(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"text"!==r.mode||" "===r.body||i&&!i(r),o||r.applyStyle({mode:"math"}),a-=1,t-=1}ao(e),Ft(e.model)}function ao(e){let t=0;for(;e.model.sibling(t)&&"math"===e.model.sibling(t).mode;)t-=1;if(e.model.sibling(t)&&"text"===e.model.sibling(t).mode&&" "===e.model.sibling(t).body&&(!e.model.sibling(t-1)||"math"===e.model.sibling(t-1).mode)){e.model.siblings().splice(t-1,1),Ft(e.model);const i=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,Xt(e.model,e.model.anchorOffset()-1),e.model.suppressChangeNotifications=i}}function oo(e,t,i){!function(e){const t=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;if("Unidentified"===e.key)return;if("Dead"===e.key)return;const i=fi.filter(i=>{var a;return(null===(a=i.mapping[e.code])||void 0===a?void 0:a[t])===e.key});0!==i.length&&(i.forEach(e=>{e.score+=1}),fi.sort((e,t)=>t.score-e.score))}(i);const a=xi();if(e.keyboardLayout!==a.id&&(e.keyboardLayout=a.id,e.keybindings=Si(e.options.keybindings,t=>{"function"==typeof e.options.onError&&e.options.onError({code:"invalid-keybinding",arg:t.join("\n")})})),function(e,t){const i=e.keystrokeCaption;if(i&&e.keystrokeCaptionVisible){const a=e.element.getBoundingClientRect();i.style.left=a.left+"px",i.style.top=a.top-64+"px",i.innerHTML=e.options.createHTML(""+(zi(t)||t)+""+i.innerHTML),i.style.visibility="visible",setTimeout((function(){i.childNodes.length>0&&i.removeChild(i.childNodes[i.childNodes.length-1]),0===i.childNodes.length&&(i.style.visibility="hidden")}),3e3)}}(e,t),clearTimeout(e.keystrokeBufferResetTimer),e.options.onKeystroke&&!e.options.onKeystroke(e,t,i))return(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;let o,r,s,n=!1;if("command"!==e.mode&&(!i||!i.ctrlKey&&!i.metaKey))if("[Backspace]"===t)e.keystrokeBuffer=e.keystrokeBuffer.slice(0,-1),e.keystrokeBufferStates.pop(),e.resetKeystrokeBuffer({defer:!0});else if($a(i)){const t=Da(i),a=e.keystrokeBuffer+t;let s=0;for(;!o&&s{e.startsWith(r)&&!i.includes(e)&&i.push(e)});const s=(null==t?void 0:t.inlineShortcuts)?t.inlineShortcuts:null;s&&Object.keys(s).forEach(e=>{e.startsWith(r)&&i.push(e)})}return i}(a,e.options).length<=1?n=!0:e.resetKeystrokeBuffer({defer:!0})}else e.resetKeystrokeBuffer();if(e.options.smartMode){const a=e.mode;o?e.mode="math":function(e,t,i){if(e.smartModeSuppressed)return!1;if(e.model.endOffset()<*|]$/.test(a))return ao(e),!0}else{if("[Space]"===t)return to(e,void 0,e=>/[a-z][:,;.]$/.test(e.body)),!0;if(/[a-zA-Z]{3,}$/.test(o)&&!/(dxd|abc|xyz|uvw)$/.test(o))return to(e,void 0,e=>/[a-zA-Z]/.test(e.body)),!0;if(/(^|\W)(if|If)$/i.test(o))return to(e,1),!0;if(/(\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5){3,}$/u.test(o)&&!/(αβγ)$/.test(o))return to(e,void 0,e=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5)/u.test(e.body)),!0;if("?"===a)return!0;if("."===a&&!/[0-9-+]\.$/.test(o))return!0}return!1}(e,t,i)&&(e.mode={math:"text",text:"math"}[e.mode],s=""),e.mode!==a&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}if(o||s||(s=function(e,t,i){if(0===e.length)return"";for(let a=e.length-1;a>=0;a--)if(e[a].key===i&&(!e[a].ifMode||e[a].ifMode===t))return e[a].command;return""}(e.keybindings,e.mode,t)),!(o||s||"[Enter]"!==t&&"[Return]"!==t)&&"function"==typeof e.options.onCommit)return e.options.onCommit(e),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;if(!o&&!s)return!0;if(e.options.readOnly&&"insert"===s[0])return!0;Ri(e.model,!1);const l=e.model.parent();if("moveAfterParent"===s&&l&&"leftright"===l.type&&e.model.endOffset()===e.model.siblings().length-1&&e.options.smartFence&&_a(e.model,".",e.style)&&(s="",sa(e)),"math"===e.mode&&"[Spacebar]"===t&&!o){const t=e.model.sibling(1),i=e.model.sibling(-1);(t&&"text"===t.mode||i&&"text"===i.mode)&&va(e.model," ",{mode:"text"})}if(s)e.executeCommand(s);else if(o){const t={...Ht(e.model),...e.style};if(!/^(\\{|\\}|\\[|\\]|\\@|\\#|\\$|\\%|\\^|\\_|\\backslash)$/.test(o)){const a=e.mode;va(e.model,Da(i),{suppressChangeNotifications:!0,mode:e.mode,style:t}),e.snapshotAndCoalesce(),e.restoreToUndoRecord(e.keystrokeBufferStates[r]),e.mode=a}const a=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,va(e.model,o,{format:"latex",mode:e.mode,style:t,smartFence:!0}),ao(e),o.endsWith(" ")&&(e.mode="text",va(e.model," ",{mode:"text",style:t})),e.model.suppressChangeNotifications=a,Ft(e.model),Ot(e.model),e.snapshot(),e.dirty=!0,e.model.announce("replacement"),n&&e.resetKeystrokeBuffer()}return e.scrollIntoView(),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1}function ro(e,t,i){if(e.options.readOnly)return void e.model.announce("plonk");if((i=null!=i?i:{}).focus&&e.focus(),i.feedback&&(e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{}))),i.commandMode&&"command"!==e.mode&&e.switchMode("command"),Ri(e.model,!1),i.simulateKeystroke){const i=t.charAt(0);if(!oo(e,i,new KeyboardEvent("keypress",{key:i})))return}let a="",o=!1;if(e.pasteInProgress)e.pasteInProgress=!1,va(e.model,t,{smartFence:e.options.smartFence,mode:"math"});else{const i={...Ht(e.model),...e.style},r=Ie(t);for(const t of r)if("command"===e.mode){pt(e.model),e.suggestionIndex=0;const i=Pi(e.model),r=ne(i+t);o=r.length>1,0===r.length?(va(e.model,t,{mode:"command"}),/^\\[a-zA-Z\\*]+$/.test(i+t)&&Ri(e.model,!0),Fi(e)):(va(e.model,t,{mode:"command"}),r[0].match!==i+t&&Fa(e.model,r[0].match,-r[0].match.length+i.length+1),a=r[0].match)}else if("math"===e.mode){const a={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(a){if("moveToSuperscript"===a){if(so(e)>=e.options.scriptDepth[1])return void e.model.announce("plonk")}else if("moveToSubscript"===a&&no(e)>=e.options.scriptDepth[0])return void e.model.announce("plonk");e.executeCommand(a)}else e.options.smartSuperscript&&"superscript"===e.model.relation()&&/[0-9]/.test(t)&&0===e.model.siblings().filter(e=>"first"!==e.type).length?(va(e.model,t,{mode:"math",style:i}),li(e.model)):va(e.model,t,{mode:"math",style:i,smartFence:e.options.smartFence})}else"text"===e.mode&&va(e.model,t,{mode:"text",style:i})}"command"!==e.mode&&e.snapshotAndCoalesce(),e.dirty=!0,e.scrollIntoView(),Ni(e,a,o)}function so(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!0:a.subscript&&(o=!1),i+=1,a=e.model.ancestor(i);return o?t:0}function no(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!1:a.subscript&&(o=!0),i+=1,a=e.model.ancestor(i);return o?t:0}function lo(e){return e.pasteInProgress=!0,!0}let co;ca({undo:e=>(Pa(e),e.undo(),!0),redo:e=>(Pa(e),e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},enterCommandMode:e=>(e.switchMode("command"),!0),toggleKeystrokeCaption:e=>(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaption.innerHTML="",e.keystrokeCaptionVisible||(e.keystrokeCaption.style.visibility="hidden"),!1),switchMode:(e,t)=>(e.switchMode(t),!0),insert:(e,t,i)=>e.insert(t,i),typedText:(e,t)=>(ro(e,t),!0),commit:e=>("function"==typeof e.options.onCommit&&e.options.onCommit(e),!0)}),ca({applyStyle:function(e,t){e.resetKeystrokeBuffer();const i=function(e){const t={};return"string"==typeof e.mode&&(t.mode=e.mode.toLowerCase()),"string"==typeof e.color&&(t.color=e.color),"string"==typeof e.backgroundColor&&(t.backgroundColor=e.backgroundColor),"string"==typeof e.fontFamily&&(t.fontFamily=e.fontFamily),"string"==typeof e.series&&(t.fontSeries=e.series),"string"==typeof e.fontSeries&&(t.fontSeries=e.fontSeries.toLowerCase()),t.fontSeries&&(t.fontSeries={bold:"b",medium:"m",normal:"m"}[t.fontSeries]||t.fontSeries),"string"==typeof e.shape&&(t.fontShape=e.shape),"string"==typeof e.fontShape&&(t.fontShape=e.fontShape.toLowerCase()),t.fontShape&&(t.fontShape={italic:"it",up:"n",upright:"n",normal:"n"}[t.fontShape]||t.fontShape),"string"==typeof e.size?t.fontSize=e.size:"number"==typeof e.size&&(t.fontSize="size"+Math.min(0,Math.max(10,e.size))),"string"==typeof e.fontSize&&(t.fontSize=e.fontSize.toLowerCase()),t.fontSize&&(t.fontSize={tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normal:"size5",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[t.fontSize]||t.fontSize),t}(t);if(i.mode){if(oi(e.model))e.switchMode(i.mode);else{const t=e.mode,i="math"===(Ut(e.model)||e.options.defaultMode)?"text":"math";let a=e.$selectedText("ASCIIMath");if("math"===i&&/^"[^"]+"$/.test(a)&&(a=a.slice(1,-1)),e.insert(a,{mode:i,selectionMode:"item",format:"text"===i?"text":"ASCIIMath"}),e.mode=i,e.model.groupIsSelected()){const t=e.model.parent();!t||"group"!==t.type&&"root"!==t.type||(t.mode=i)}e.mode!==t&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}delete i.mode}return oi(e.model)?(e.style.fontSeries&&i.fontSeries===e.style.fontSeries&&(i.fontSeries="auto"),i.fontShape&&i.fontShape===e.style.fontShape&&(i.fontShape="auto"),i.color&&i.color===e.style.color&&(i.color="none"),i.backgroundColor&&i.backgroundColor===e.style.backgroundColor&&(i.backgroundColor="none"),i.fontSize&&i.fontSize===e.style.fontSize&&(i.fontSize="auto"),e.style={...e.style,...i}):(ya(e.model,i),e.snapshot()),!0}},{target:"mathfield"}),ca({copyToClipboard:e=>(e.focus(),oi(e.model)&&e.select(),document.execCommand("copy"),!1),cutToClipboard:e=>(e.focus(),document.execCommand("cut"),!0),pasteFromClipboard:e=>(e.focus(),document.execCommand("paste"),!0)},{target:"mathfield",category:"clipboard"});let mo=0;function po(e,t,i,a){var o;(a=null!=a?a:{}).bias=null!==(o=a.bias)&&void 0!==o?o:0;const r=function e(t,i,a){let o={element:null,distance:Number.POSITIVE_INFINITY},r=!0;if(t.getAttribute("data-atom-id")){o.element=t;const e=t.getBoundingClientRect(),s=i-(e.left+e.right)/2,n=a-(e.top+e.bottom)/2;o.distance=s*s+n*n,r=i>=e.left&&i<=e.right}if(r&&t.children)for(const r of t.children){const t=e(r,i,a);t.element&&t.distance<=o.distance&&(o=t)}return o}(e.field,t,i).element,s=r?r.getAttribute("data-atom-id"):null;if(!s)return;const n=pi(e.model,e=>{if(!e.captureSelection)return e.id===s;let t=!1;return e.forEach(e=>{e.id===s&&(t=!0)}),t});if(!n||0===n.length)return;const l=gt(n[0]).path;if(0===a.bias){const e=r.getBoundingClientRect();tf ()",classes:"tex",layers:["functions"]},symbols:{tooltip:"keyboard.tooltip.symbols",layer:"symbols",label:"∞≠∈",classes:"tex",layers:["symbols"]},command:{tooltip:"keyboard.tooltip.command",command:"enterCommandMode",label:"",layers:["lower-command","upper-command","symbols-command"]},style:{tooltip:"keyboard.tooltip.style",layer:"style",label:"bi𝔹"}},ho={"\\varphi ":["Φ","\\Phi "],"\\varsigma ":["Σ","\\Sigma "],"\\epsilon ":["Ɛ",'{\\char"0190}'],"\\rho ":["Ρ",'{\\char"3A1}'],"\\tau ":["Τ",'{\\char"3A4}'],"\\upsilon ":["Υ","\\Upsilon "],"\\theta ":["Θ","\\Theta "],"\\iota ":["Ι",'{\\char"399}'],"\\omicron ":["Ο",'{\\char"39F}'],"\\pi ":["Π","\\Pi "],"\\alpha ":["Α",'{\\char"391}'],"\\sigma ":["Σ","\\Sigma "],"\\delta ":["Δ","\\Delta "],"\\phi ":["Φ","\\Phi "],"\\gamma ":["Γ","\\Gamma "],"\\eta ":["Η",'{\\char"397}'],"\\xi ":["Ξ","\\Xi "],"\\kappa ":["Κ",'{\\char"39A}'],"\\lambda ":["Λ","\\Lambda "],"\\zeta ":["Ζ",'{\\char"396}'],"\\chi ":["Χ",'{\\char"3A7}'],"\\psi ":["Ψ","\\Psi "],"\\omega ":["Ω","\\Omega "],"\\beta ":["Β",'{\\char"392}'],"\\nu ":["Ν",'{\\char"39D}'],"\\mu ":["Μ",'{\\char"39C}']},fo={0:["\\emptyset","\\varnothing","\\infty",{latex:"#?_0",insert:"#@_0"},"\\circ","\\bigcirc","\\bullet"],2:["\\frac{1}{2}",{latex:"#?^2",insert:"#@^2"}],3:["\\frac{1}{3}",{latex:"#?^3",insert:"#@^3"}],".":[",",";","\\colon",{latex:":",aside:"ratio"},{latex:"\\cdotp",aside:"center dot",classes:"box"},{latex:"\\cdots",aside:"center ellipsis",classes:"box"},{latex:"\\ldotp",aside:"low dot",classes:"box"},{latex:"\\ldots",aside:"low ellipsis",classes:"box"},{latex:"\\vdots",aside:"",classes:"box"},{latex:"\\ddots",aside:"",classes:"box"},"\\odot","\\oslash","\\circledcirc"],"*":["\\cdot","\\ast","\\star","\\bigstar","\\ltimes","\\rtimes","\\rightthreetimes","\\leftthreetimes","\\intercal","\\prod",{latex:"\\prod_{n\\mathop=0}^{\\infty}",classes:"small"}],"+":["\\pm","\\mp","\\sum",{latex:"\\sum_{n\\mathop=0}^{\\infty}",classes:"small"},"\\dotplus","\\oplus"],"-":["\\pm","\\mp","\\ominus","\\vert #0 \\vert"],"/":["\\divideontimes","/","\\div"],"(":["\\left( #0\\right)","\\left[ #0\\right]","\\left\\{ #0\\right\\}","\\left\\langle #0\\right\\rangle","\\lfloor","\\llcorner","(","\\lbrack","\\lvert","\\lVert","\\lgroup","\\langle","\\lceil","\\ulcorner","\\lmoustache","\\lbrace"],")":["\\rfloor","\\lrcorner",")","\\rbrack","\\rvert","\\rVert","\\rgroup","\\rangle","\\rceil","\\urcorner","\\rmoustache","\\rbrace"],"=":["\\cong","\\asymp","\\equiv","\\differencedelta","\\varpropto","\\thickapprox","\\approxeq","\\thicksim","\\backsim","\\eqsim","\\simeq","\\Bumpeq","\\bumpeq","\\doteq","\\Doteq","\\fallingdotseq","\\risingdotseq","\\coloneq","\\eqcirc","\\circeq","\\triangleq","\\between"],"!=":["\\neq","\\ncong","","\\nsim"],"<":["\\leq","\\leqq","\\lneqq","\\ll","\\nless","\\nleq","\\precsim","\\lesssim","\\lessgtr","\\prec","\\preccurlyeq","\\lessdot","\\nprec"],">":["\\geq","\\geqq","\\gneqq","\\gg","\\ngtr","\\ngeq","\\succsim","\\gtrsim","\\gtrless","\\succ","\\succcurlyeq","\\gtrdot","\\nsucc"],set:["\\in","\\owns","\\subset","\\nsubset","\\supset","\\nsupset"],"!set":["\\notin","\\backepsilon"],subset:[],supset:[],infinity:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"],"numeric-pi":["\\prod","\\theta","\\rho","\\sin","\\cos","\\tan"],ee:["\\times 10^{#?}","\\ln","\\ln_{10}","\\log"],"^":["_{#?}"],int:[{latex:"\\int_{#?}^{#?}",classes:"small"},{latex:"\\int",classes:"small"},{latex:"\\smallint",classes:"small"},{latex:"\\iint",classes:"small"},{latex:"\\iiint",classes:"small"},{latex:"\\oint",classes:"small"},{latex:"\\dfrac{\\rd}{\\rd x}",classes:"small"},{latex:"\\frac{\\partial}{\\partial x}",classes:"small"},"\\capitalDifferentialD","\\rd","\\partial"],nabla:["\\nabla\\times","\\nabla\\cdot","\\nabla^{2}"],"!":["!!","\\Gamma","\\Pi"],accents:["\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"],A:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],b:[{latex:"\\beth",aside:"beth"}],B:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"}],d:[{latex:"\\daleth",aside:"daleth"}],D:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"}],g:[{latex:"\\gimel",aside:"gimel"}],G:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"}],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\N",aside:"set of natural numbers"}],p:[{latex:"\\P",aside:"set of primes"}],q:[{latex:"\\Q",aside:"set of rational numbers"}],r:[{latex:"\\R",aside:"set of real numbers"}],z:[{latex:"\\Z",aside:"set of integers"}],"x-var":["y","z","t","r",{latex:"f(#?)",classes:"small"},{latex:"g(#?)",classes:"small"},"x^2","x^n","x_n","x_{n+1}","x_i","x_{i+1}"],"n-var":["i","j","p","k","a","u"],ii:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"],logic:[{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"},{latex:"\\ni",aside:"such that"},{latex:"\\Colon",aside:"such that"},{latex:"\\implies",aside:"implies"},{latex:"\\impliedby",aside:"implied by"},{latex:"\\iff",aside:"if and only if"},{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"},{latex:"\\therefore",aside:"therefore"},{latex:"\\because",aside:"because"},{latex:"^\\biconditional",aside:"biconditional"},"\\leftrightarrow","\\Leftrightarrow","\\to","\\models","\\vdash","\\gets","\\dashv","\\roundimplies"],"set-operators":["\\cap","\\cup","\\setminus","\\smallsetminus","\\complement"],"set-relations":["\\in","\\notin","\\ni","\\owns","\\subset","\\supset","\\subseteq","\\supseteq","\\subsetneq","\\supsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsupset","\\nsubseteq","\\nsupseteq"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space
    ⁻³⧸₁₈ em"},{latex:'\\unicode{"203A}\\,\\unicode{"2039}',insert:"\\,",aside:"thin space
    ³⧸₁₈ em"},{latex:'\\unicode{"203A}\\:\\unicode{"2039}',insert:"\\:",aside:"medium space
    ⁴⧸₁₈ em"},{latex:'\\unicode{"203A}\\;\\unicode{"2039}',insert:"\\;",aside:"thick space
    ⁵⧸₁₈ em"},{latex:'\\unicode{"203A}\\ \\unicode{"2039}',insert:"\\ ",aside:"⅓ em"},{latex:'\\unicode{"203A}\\enspace\\unicode{"2039}',insert:"\\enspace",aside:"½ em"},{latex:'\\unicode{"203A}\\quad\\unicode{"2039}',insert:"\\quad",aside:"1 em"},{latex:'\\unicode{"203A}\\qquad\\unicode{"2039}',insert:"\\qquad",aside:"2 em"}],delete:[{label:'',command:'"deleteAll"'}],"->|":[]};let go={};const yo={math:"\n
    \n
      \n
    • x
    • \n
    • n
    • \n
    • \n \n
    • \n
    • e
    • \n
    • i
    • \n
    • \n
    \n
      \n
    • <
    • \n
    • >
    • \n
    • \n \n
    • \n
    • x ²
    • \n
    • x
    • \n
    • \n
    \n
      \n
    • (
    • \n
    • )
    • \n
    • \n \n
    • \n
    • \n
    • \n
    \n \n
      \n
    • \n
    • \n
    • \n \n
    • \n \n
    \n
    \n ","lower-roman":"\n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n
    • ;
    • \n
    • ,
    • \n
    •  
    • \n \n
    \n
    ","upper-roman":"\n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n
    • ;
    • \n
    • ;
    • \n
    •  
    • \n \n
    \n
    ",symbols:"\n
    \n
      \n \n
    • {
    • \n
    • }
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • o
    • \n
    • \n
    • \n\n
    \n
      \n \n
    • [
    • \n
    • ]
    • \n
    • \n
    • \n
    • \n
    • !
    • \n
    • o
    • \n
    • o
    • \n
    • \n
    • \n\n
    \n
      \n \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n\n
    • \n
    \n
      \n \n
    • ,
    • \n
    • \n
    • :
    • \n
    • \n
    • \n
    • \n
    • ±
    • \n \n
    \n
    ","lower-greek":"\n
    \n
    • φ
    • \n
    • ς
    • \n
    • ϵ
    • \n
    • ρ
    • \n
    • τ
    • \n
    • υ
    • \n
    • θ
    • \n
    • ι
    • \n
    • ο
    • \n
    • π
    • \n
    \n
    • α
    • \n
    • σ
    • \n
    • δ
    • \n
    • ϕ
    • \n
    • γ
    • \n
    • η
    • \n
    • ξ
    • \n
    • κ
    • \n
    • λ
    • \n
    \n
    • \n
    • ζ
    • \n
    • χ
    • \n
    • ψ
    • \n
    • ω
    • \n
    • β
    • \n
    • ν
    • \n
    • μ
    • \n
    • \n
    \n
      \n
    •  
    • \n
    • ,
    • \n
    • ε
    • \n
    • ϑ
    • \n
    • ϰ
    • \n
    • ϖ
    • \n
    • ϱ
    • \n \n
    \n
    ","upper-greek":"\n
    \n
    • Φ
    • \n
    • Σ
    • \n
    • Ɛ
    • \n
    • Ρ
    • \n
    • Τ
    • \n
    • Υ
    • \n
    • Θ
    • \n
    • Ι
    • \n
    • Ο
    • \n
    • Π
    \n
    • Α
    • \n
    • Σ
    • \n
    • Δ
    • \n
    • Φ
    • \n
    • Γ
    • \n
    • Η
    • \n
    • Ξ
    • \n
    • Κ
    • \n
    • Λ
    \n
    • \n
    • Ζ
    • \n
    • Χ
    • \n
    • Ψ
    • \n
    • Ω
    • \n
    • Β
    • \n
    • Ν
    • \n
    • Μ
    • \n
    \n
      \n
    •  
    • \n
    • .
    • \n
    •  
    • \n \n
    \n
    ","lower-command":"\n
    \n
    \n
    \n
    \n
      \n
    • 01#
    • \n
    • {
    • \n
    • }
    • \n
    • ^
    • \n
    • _
    • \n
    •  
    • \n \n
    \n
    ","upper-command":"\n
    \n
    \n
    \n
    \n
      \n
    • \n
    • [
    • \n
    • ]
    • \n
    • (
    • \n
    • )
    • \n
    •  
    • \n \n
    \n
    ","symbols-command":"\n
    \n
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 0
    \n
    • !
    • @
    • #
    • $
    • %
    • ^
    • &
    • *
    • +
    • =
    \n
      \n
    • \\
    • \n
    • |
    • \n
    • /
    • \n
    • `
    • \n
    • ;
    • \n
    • :
    • \n
    • ?
    • \n
    • '
    • \n
    • \"
    • \n
    • \n
    \n
      \n
    • abc
    • \n
    • <
    • \n
    • >
    • \n
    • ~
    • \n
    • ,
    • \n
    • .
    • \n
    •  
    • \n \n
    \n
    ",functions:"\n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • (
    • \n
    • )
    • \n
    • \n
    • \n
    •  
    • \n \n
    \n
    ",style:"\n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n\n
    • \n
    • \n
    • \n
    • \n
    \n
    "};function bo(e,t,i){return e=e.replace(/(^|[^\\])#@/g,"$1#?"),K(D(Ye({mathstyle:h.displaystyle,macros:i.options.macros},rt(e,"math",t,i.options.macros)),"ML__base"),"ML__mathlive").toMarkup()}function vo(e,t,i){var a;let o="
    ";const r=t.replace(/\s+/g," ").split(" ");if(r.length>1){const t={...uo,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}};for(const e of r){if(!t[e])break;o+="
    "+t[e].label+"
    "}}return o+="
    ",o+=`\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n `,""}function xo(e,t,i){var a;for(let o=0;o"+r.getAttribute("data-aside").replace(/"/g,'"')+""),void 0!==s&&(r.innerHTML=e.options.createHTML(s)),r.getAttribute("data-classes")&&r.classList.add(r.getAttribute("data-classes"));const n=null===(a=r.getAttribute("data-insert"))||void 0===a?void 0:a.replace(/"/g,'"');let l;if(n&&ho[n]&&(r.setAttribute("data-shifted",ho[n][0]),r.setAttribute("data-shifted-command",JSON.stringify(["insertAndUnshiftKeyboardLayer",ho[n][1]]))),l=r.getAttribute("data-command")?JSON.parse(r.getAttribute("data-command")):r.getAttribute("data-insert")?["insert",r.getAttribute("data-insert"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:r.getAttribute("data-latex")?["insert",r.getAttribute("data-latex"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:["typedText",r.getAttribute("data-key")||r.textContent,{focus:!0,feedback:!0,simulateKeystroke:!0}],i&&(l=[i,l]),r.getAttribute("data-alt-keys")){const e=go[r.getAttribute("data-alt-keys")];e&&(l={default:l,pressAndHoldStart:["showAlternateKeys",r.getAttribute("data-alt-keys"),e],pressAndHoldEnd:"hideAlternateKeys"})}Ki(e,r,l)}}function ko(e,t){const i={qwerty:{"lower-1":"qwertyuiop","lower-2":" asdfghjkl ","lower-3":"^zxcvbnm~","upper-1":"QWERTYUIOP","upper-2":" ASDFGHJKL ","upper-3":"^ZXCVBNM~","numpad-1":"789/","numpad-2":"456*","numpad-3":"123-","numpad-4":"0.=+"},azerty:{"lower-1":"azertyuiop","lower-2":"qsdfghjklm","lower-3":"^ wxcvbn ~","upper-1":"AZERTYUIOP","upper-2":"QSDFGHJKLM","upper-3":"^ WXCVBN ~"},qwertz:{"lower-1":"qwertzuiop","lower-2":" asdfghjkl ","lower-3":"^yxcvbnm~","upper-1":"QWERTZUIOP","upper-2":" ASDFGHJKL","upper-3":"^YXCVBNM~"},dvorak:{"lower-1":"^ pyfgcrl ","lower-2":"aoeuidhtns","lower-3":"qjkxbmwvz~","upper-1":"^ PYFGCRL ","upper-2":"AOEUIDHTNS","upper-3":"QJKXBMWVZ~"},colemak:{"lower-1":" qwfpgjluy ","lower-2":"arstdhneio","lower-3":"^zxcvbkm~","upper-1":" QWFPGNLUY ","upper-2":"ARSTDHNEIO","upper-3":"^ZXCVBKM~"}},a=i[e.options.virtualKeyboardLayout]?i[e.options.virtualKeyboardLayout]:i.qwerty;let o,r=t;r=r.replace(//g,"\n
  • \n \n
  • \n
  • \n \n
  • \n
  • \n
  • ");let s=r.match(/()/);for(;s;){o="";const e=s[2].match(/[a-zA-Z][a-zA-Z0-9-]*=(['"])(.*?)\1/g),t={};for(const i of e){const e=i.match(/([a-zA-Z][a-zA-Z0-9-]*)=(['"])(.*?)\2/);t[e[1]]=e[3]}let n=a[t.name];if(n||(n=i.qwerty[t.name]),n)for(const e of n){let i=t.class||"";i&&(i=" "+i),"~"===e?(o+="
  • \'\n data-shifted-command=\'"deleteAll"\'\n data-alt-keys=\'delete\' data-command=\'["performWithFeedback","deletePreviousChar"]\'\n >⌫
  • '):" "===e?o+="
  • ":"^"===e?o+="
  • ":"/"===e?o+="
  • ÷
  • ":"*"===e?o+="
  • ×
  • ":"-"===e?o+="
  • ":/tt/.test(i)?o+="
  • '+e+"
  • ":o+="
  • "+e+"
  • "}r=r.replace(new RegExp(s[1]+s[2]+s[3]),o),s=r.match(/()/)}return r}function _o(e){const t=document.getElementById("mathlive-alternate-keys-panel");return t&&(t.classList.remove("is-visible"),t.innerHTML="",$i(t)),!1}function wo(e){const t=e.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(t)for(let i=0;ili{display:flex;flex-flow:column;align-items:center;justify-content:center;font-size:30px;height:70px;width:70px;box-sizing:border-box;margin:0;background:transparent;border:1px solid transparent;border-radius:5px;pointer-events:all;color:var(--keyboard-alternate-text);fill:currentColor}@media only screen and (max-height:412px){.ML__keyboard.alternate-keys ul>li{font-size:24px;height:50px;width:50px}}.ML__keyboard.alternate-keys ul>li.active,.ML__keyboard.alternate-keys ul>li.pressed,.ML__keyboard.alternate-keys ul>li:hover{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);background:var(--keyboard-alternate-background-active);color:var(--keyboard-text-active)}.ML__keyboard.alternate-keys ul>li.small{font-size:18px}.ML__keyboard.alternate-keys ul>li.small-button{width:42px;height:42px;margin:2px;background:#fbfbfb}.ML__keyboard.alternate-keys ul>li.small-button:hover{background:var(--keyboard-alternate-background-active)}.ML__keyboard.alternate-keys ul>li.box>div,.ML__keyboard.alternate-keys ul>li.box>span{border:1px dashed rgba(0,0,0,.24)}.ML__keyboard.alternate-keys ul>li .warning{min-height:60px;min-width:60px;background:#cd0030;color:#fff;padding:5px;display:flex;align-items:center;justify-content:center;border-radius:5px}.ML__keyboard.alternate-keys ul>li .warning.active,.ML__keyboard.alternate-keys ul>li .warning.pressed,.ML__keyboard.alternate-keys ul>li .warning:hover{background:red}.ML__keyboard.alternate-keys ul>li .warning svg{width:50px;height:50px}.ML__keyboard.alternate-keys ul>li aside{font-size:12px;line-height:12px;opacity:.78;padding-top:2px}.ML__keyboard>div.keyboard-layer{display:none;outline:none}.ML__keyboard>div.keyboard-layer.is-visible{display:flex;flex-flow:column}.ML__keyboard>div>div.keyboard-toolbar{align-self:center;display:flex;flex-flow:row;justify-content:space-between;width:736px}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard>div>div.keyboard-toolbar{width:556px}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar{width:365px;max-width:100vw}}.ML__keyboard>div>div.keyboard-toolbar svg{height:20px;width:20px}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar svg{height:13px;width:17px}}.ML__keyboard>div>div.keyboard-toolbar>.left{position:relative;display:flex;justify-content:flex-start;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>.right{display:flex;justify-content:flex-end;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>div>div{display:flex;align-items:baseline;justify-content:center;pointer-events:all;color:var(--keyboard-text);fill:currentColor;background:0;font-size:110%;cursor:pointer;min-height:0;padding:4px 10px;margin:7px 4px 6px;box-shadow:none;border:none;border-bottom:2px solid transparent}.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled.pressed svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled:hover svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled svg{color:var(--keyboard-text);opacity:.2}@media only screen and (max-width:414px){.ML__keyboard>div>div.keyboard-toolbar>div>div{font-size:100%;padding:0 6px 0 0}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar>div>div{padding-left:4px;padding-right:4px;font-size:90%}}.ML__keyboard>div>div.keyboard-toolbar>div>div.active,.ML__keyboard>div>div.keyboard-toolbar>div>div.pressed,.ML__keyboard>div>div.keyboard-toolbar>div>div:active,.ML__keyboard>div>div.keyboard-toolbar>div>div:hover{color:var(--keyboard-text-active)}.ML__keyboard>div>div.keyboard-toolbar>div>div.selected{color:var(--keyboard-text-active);border-bottom:2px solid var(--keyboard-text-active);margin-bottom:8px;padding-bottom:0}.ML__keyboard div .rows{border:0;border-collapse:separate;clear:both;margin:auto;display:flex;flex-flow:column;align-items:center}.ML__keyboard div .rows>ul{list-style:none;height:40px;margin:0 0 3px;padding:0}.ML__keyboard div .rows>ul>li{display:flex;flex-flow:column;align-items:center;justify-content:center;width:34px;margin-right:2px;height:40px;box-sizing:border-box;padding:8px 0;vertical-align:top;text-align:center;float:left;color:var(--keycap-text);fill:currentColor;font-size:20px;background:var(--keycap-background);border:1px solid var(--keycap-background-border);border-bottom-color:var(--keycap-background-border-bottom);border-radius:5px;pointer-events:all;position:relative;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ML__keyboard div .rows>ul>li:last-child{margin-right:0}.ML__keyboard div .rows>ul>li.small{font-size:16px}.ML__keyboard div .rows>ul>li.tt{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.bottom{justify-content:flex-end}.ML__keyboard div .rows>ul>li.left{align-items:flex-start;padding-left:4px}.ML__keyboard div .rows>ul>li.right{align-items:flex-end;padding-right:4px}.ML__keyboard div .rows>ul>li svg{width:20px;height:20px}.ML__keyboard div .rows>ul>li .warning{height:25px;width:25px;min-height:25px;min-width:25px;background:#cd0030;color:#fff;border-radius:100%;padding:5px;display:flex;align-items:center;justify-content:center;margin-bottom:-2px}.ML__keyboard div .rows>ul>li .warning svg{width:16px;height:16px}@media only screen and (max-width:768px){.ML__keyboard div .rows>ul>li .warning{height:16px;width:16px;min-height:16px;min-width:16px}.ML__keyboard div .rows>ul>li .warning svg{width:14px;height:14px}}.ML__keyboard div .rows>ul>li>.w0{width:0}.ML__keyboard div .rows>ul>li>.w5{width:16px}.ML__keyboard div .rows>ul>li>.w15{width:52px}.ML__keyboard div .rows>ul>li>.w20{width:70px}.ML__keyboard div .rows>ul>li>.w50{width:178px}.ML__keyboard div .rows>ul>li.separator{background:transparent;border:none;pointer-events:none}@media only screen and (max-width:560px){.ML__keyboard div .rows>ul>li.if-wide{display:none}}.ML__keyboard div .rows>ul>li.tex-math{font-size:25px}.ML__keyboard div .rows>ul>li.pressed,.ML__keyboard div .rows>ul>li:hover{background:var(--keycap-background-active);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.active,.ML__keyboard div .rows>ul>li.action:active,.ML__keyboard div .rows>ul>li.keycap.active,.ML__keyboard div .rows>ul>li.keycap:active{transform:translateY(-20px) scale(1.4);z-index:calc(var(--keyboard-zindex, 105) - 5);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.modifier.active,.ML__keyboard div .rows>ul>li.modifier:active{background:var(--keyboard-text-active);color:var(--keycap-text-active)}.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:18px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:16px}}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton,.ML__keyboard div .rows>ul>li.fnbutton{font-size:12px}}.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:14px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:9px}}.ML__keyboard div .rows>ul>li.action,.ML__keyboard div .rows>ul>li.modifier{background-color:var(--keycap-modifier-background);border-bottom-color:var(--keycap-modifier-border);border-color:var(--keycap-modifier-border) var(--keycap-modifier-border) var(--keycap-modifier-border-bottom);font-size:65%;font-weight:100}.ML__keyboard div .rows>ul>li.action.selected,.ML__keyboard div .rows>ul>li.modifier.selected{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.selected.active,.ML__keyboard div .rows>ul>li.action.selected.pressed,.ML__keyboard div .rows>ul>li.action.selected:active,.ML__keyboard div .rows>ul>li.action.selected:hover,.ML__keyboard div .rows>ul>li.modifier.selected.active,.ML__keyboard div .rows>ul>li.modifier.selected.pressed,.ML__keyboard div .rows>ul>li.modifier.selected:active,.ML__keyboard div .rows>ul>li.modifier.selected:hover{color:#fff}.ML__keyboard div .rows>ul>li.keycap.w50{font-size:80%;padding-top:10px;font-weight:100}.ML__keyboard div .rows>ul>li small{color:#555}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li small{font-size:9px}}.ML__keyboard div .rows>ul>li aside{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:10px;line-height:10px;color:#666}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li aside{display:none}}@media only screen and (max-width:414px){.ML__keyboard div .rows>ul>li{width:calc(10vw - 2px);margin-right:2px}.ML__keyboard div .rows>ul>.w5{width:calc(5vw - 2px)}.ML__keyboard div .rows>ul>.w15{width:calc(15vw - 2px)}.ML__keyboard div .rows>ul>.w20{width:calc(20vw - 2px)}.ML__keyboard div .rows>ul>.w50{width:calc(50vw - 2px)}}@media only screen and (min-width:415px) and (max-width:768px){.ML__keyboard div .rows>ul>li{width:37px;margin-right:3px}.ML__keyboard div .rows>ul>.w5{width:17px}.ML__keyboard div .rows>ul>.w15{width:57px}.ML__keyboard div .rows>ul>.w20{width:77px}.ML__keyboard div .rows>ul>.w50{width:197px}}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:51px;margin-right:4px}.ML__keyboard div .rows>ul>.w5{width:23.5px}.ML__keyboard div .rows>ul>.w15{width:78.5px}.ML__keyboard div .rows>ul>.w20{width:106px}.ML__keyboard div .rows>ul>.w50{width:271px}}@media only screen and (min-width:1025px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:66px;margin-right:6px}.ML__keyboard div .rows>ul>.action,.ML__keyboard div .rows>ul>.modifier{font-size:80%}.ML__keyboard div .rows>ul>.w5{width:30px}.ML__keyboard div .rows>ul>.w15{width:102px}.ML__keyboard div .rows>ul>.w20{width:138px}.ML__keyboard div .rows>ul>.w50{width:354px}}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}div.ML__keyboard.material{--keyboard-background:rgba(209,213,217,0.9);--keyboard-background-border:#ddd;--keycap-background:transparent;--keycap-background-active:#cccfd1;--keycap-background-border:transparent;--keyboard-alternate-background:#efefef;--keyboard-alternate-text:#000;font-family:Roboto,sans-serif}div.ML__keyboard.material.alternate-keys{background:var(--keyboard-alternate-background);border:1px solid transparent;border-radius:5px;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}div.ML__keyboard.material.alternate-keys ul li.active,div.ML__keyboard.material.alternate-keys ul li.pressed,div.ML__keyboard.material.alternate-keys ul li:active,div.ML__keyboard.material.alternate-keys ul li:hover{border:1px solid transparent;background:#5f97fc;color:#fff;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>div{font-size:16px}div.ML__keyboard.material .keyboard-toolbar div.div.active,div.ML__keyboard.material .keyboard-toolbar div.div.pressed,div.ML__keyboard.material .keyboard-toolbar div div:active,div.ML__keyboard.material .keyboard-toolbar div div:hover{color:#5f97fc;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>.selected{color:#5f97fc;fill:currentColor;border-bottom:2px solid #5f97fc;margin-bottom:8px;padding-bottom:0}div.ML__keyboard.material div>.rows>ul>.keycap{background:transparent;border:1px solid transparent;border-radius:5px;color:var(--keycap-text);fill:currentColor;transition:none}div.ML__keyboard.material div>.rows>ul>.keycap.tt{color:#5f97fc}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]{margin-top:10px;margin-bottom:10px;height:20px;background:#e0e0e0}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].pressed,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:hover{background:#d0d0d0;box-shadow:none;transform:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):hover{border:1px solid transparent;background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{background:var(--keyboard-alternate-background);color:var(--keyboard-alternate-text);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);font-size:10px;vertical-align:top;width:19.5px;margin-right:10px;margin-left:10px;transform:translateY(-20px) scale(2);transition:none;justify-content:flex-start;padding:2px 0 0;z-index:calc(var(--ML_keyboard-zindex, 105) - 5)}}@media only screen and (max-width:414px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{width:16.5px}}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:last-child.active,div.ML__keyboard.material div>.rows>ul>.keycap:last-child:active{margin-right:0;margin-left:14px}}div.ML__keyboard.material div div.rows ul li.action,div.ML__keyboard.material div div.rows ul li.modifier{background:transparent;border:0;color:#869096;fill:currentColor;font-size:16px;transition:none}div.ML__keyboard.material div div.rows ul li.action.selected,div.ML__keyboard.material div div.rows ul li.modifier.selected{color:#5f97fc;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.action.active,div.ML__keyboard.material div div.rows ul li.action.pressed,div.ML__keyboard.material div div.rows ul li.action:active,div.ML__keyboard.material div div.rows ul li.action:hover,div.ML__keyboard.material div div.rows ul li.modifier.active,div.ML__keyboard.material div div.rows ul li.modifier.pressed,div.ML__keyboard.material div div.rows ul li.modifier:active,div.ML__keyboard.material div div.rows ul li.modifier:hover{border:0;color:var(--keycap-text);background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div div.rows ul li.bigfnbutton,div.ML__keyboard.material div div.rows ul li.fnbutton{background:transparent;border:0}div.ML__keyboard.material div div.rows ul li.bigfnbutton.selected,div.ML__keyboard.material div div.rows ul li.fnbutton.selected{color:#5f97fc;fill:currentColor;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.bigfnbutton.active,div.ML__keyboard.material div div.rows ul li.bigfnbutton.pressed,div.ML__keyboard.material div div.rows ul li.bigfnbutton:active,div.ML__keyboard.material div div.rows ul li.bigfnbutton:hover,div.ML__keyboard.material div div.rows ul li.fnbutton.active,div.ML__keyboard.material div div.rows ul li.fnbutton.pressed,div.ML__keyboard.material div div.rows ul li.fnbutton:active,div.ML__keyboard.material div div.rows ul li.fnbutton:hover{border:0;color:#5f97fc;fill:currentColor;background:var(--keycap-background-active);box-shadow:none}@media (prefers-color-scheme:dark){body:not([theme=light]) div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}'),fo["foreground-color"]=[];for(const e of be)fo["foreground-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"color":"'+e+'"}]'});fo["background-color"]=[];for(const e of ye)fo["background-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"backgroundColor":"'+e+'"}]'});go={...fo},Object.keys(go).forEach(e=>{go[e]=go[e].slice()});for(let e=0;e<26;e++){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e];go[t]||(go[t]=[]),go[t].unshift({latex:"\\mathbb{"+t+"}",aside:"blackboard",insert:"\\mathbb{"+t+"}"}),go[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),go[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),go[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),go[t].unshift({latex:"\\mathcal{"+t+"}",aside:"calligraphy",insert:"\\mathcal{"+t+"}"}),go[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<=26;e++){const t="abcdefghijklmnopqrstuvwxyz"[e];go[t]||(go[t]=[]),go[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),go[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),go[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),go[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<10;e++){const t="0123456789"[e];go[t]||(go[t]=[]),go[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),go[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),go[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),go[t].unshift({latex:"\\mathcal{"+t+"}",aside:"script",insert:"\\mathcal{"+t+"}"}),go[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}let r=e.options.virtualKeyboards;r||(r="all"),r=r.replace(/\ball\b/i,"numeric functions symbols roman greek");const s={...yo,...null!==(i=e.options.customVirtualKeyboardLayers)&&void 0!==i?i:{}},n={...uo,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}},l=r.replace(/\s+/g," ").split(" ");for(const t of l){if(!n[t])break;let i=n[t].layers||[];n[t].layer&&i.push(n[t].layer),i=Array.from(new Set(i));for(const a of i){if(!s[a])break;if("object"==typeof s[a]){const e=s[a];let t="";if(e.styles&&(t+=``),e.backdrop&&(t+=`
    `),e.container&&(t+=`
    `),e.rows){t+="
    ";for(const i of e.rows){t+="
      ";for(const e of i)t+="${e.label?e.label:""}`;t+="
    "}t+="
    "}e.container&&(t+="
    "),e.backdrop&&(t+="
    "),s[a]=t}o+="
    ",o+=vo(e,r,t);const i=s[a];o+=ko(e,i),o+="
    "}}const c=document.createElement("div");c.className="ML__keyboard",t?c.classList.add(t):e.options.virtualKeyboardTheme&&c.classList.add(e.options.virtualKeyboardTheme),c.innerHTML=e.options.createHTML(o),xo(e,[].slice.call(c.querySelectorAll(".keycap, .action, .fnbutton, .bigfnbutton")));const d=c.getElementsByClassName("layer-switch");for(let t=0;t{e.addEventListener("mousedown",e=>{e.preventDefault(),e.stopPropagation()}),e.addEventListener("touchstart",e=>{e.preventDefault(),e.stopPropagation()},{passive:!1})}),m[0].classList.add("is-visible"),window.addEventListener("mouseup",(function(){_o(),wo(e)})),window.addEventListener("blur",(function(){_o(),wo(e)})),window.addEventListener("touchend",(function(){_o(),wo(e)})),window.addEventListener("touchcancel",(function(){_o(),wo(e)})),c}(e,t),Li(e.virtualKeyboard,"touchstart:passive mousedown",()=>{e.focus()}),document.body.appendChild(e.virtualKeyboard)),window.setTimeout(()=>{e.virtualKeyboard.classList.add("is-visible")},1)):e.virtualKeyboard&&e.virtualKeyboard.classList.remove("is-visible"),"function"==typeof e.options.onVirtualKeyboardToggle&&e.options.onVirtualKeyboardToggle(e,e.virtualKeyboardVisible,e.virtualKeyboard),!1}ca({showAlternateKeys:(e,t,i)=>{const a=Ci("mathlive-alternate-keys-panel","ML__keyboard alternate-keys");e.virtualKeyboard.classList.contains("material")&&a.classList.add("material"),i.length>=7?a.style.width="286px":4===i.length||2===i.length?a.style.width="146px":1===i.length?a.style.width="86px":a.style.width="146px",a.style.height="auto";let o="";for(const e of i)o+="";o="
      "+o+"
    ",a.innerHTML=e.options.createHTML(o),xo(e,[].slice.call(a.getElementsByTagName("li")),"performAlternateKeys");const r=e.virtualKeyboard.querySelector('div.keyboard-layer.is-visible div.rows ul li[data-alt-keys="'+t+'"]').getBoundingClientRect();if(r){r.top-a.clientHeight<0&&(a.style.width="auto",i.length<=6?a.style.height="56px":i.length<=12?a.style.height="108px":a.style.height="205px");const e=(r.top-a.clientHeight+5).toString()+"px",t=Math.max(0,Math.min(window.innerWidth-a.offsetWidth,(r.left+r.right-a.offsetWidth)/2))+"px";a.style.transform="translate("+t+","+e+")",a.classList.add("is-visible")}return!1}},{target:"virtual-keyboard"}),ca({shiftKeyboardLayer:e=>{const i=e.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(i)for(let a=0;a_o(),performAlternateKeys:(e,t)=>(_o(),e.executeCommand(t)),switchKeyboardLayer:(e,t)=>zo(e,t),unshiftKeyboardLayer:e=>wo(e),insertAndUnshiftKeyboardLayer:(e,t)=>(e.insert(t),wo(e),!0)},{target:"virtual-keyboard"}),ca({toggleVirtualKeyboardAlt:e=>{let t=!1;return e.virtualKeyboard&&(t=e.virtualKeyboard.classList.contains("material"),e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),So(e,t?"":"material"),!1},toggleVirtualKeyboardShift:e=>{var t,i;e.options.virtualKeyboardLayout={qwerty:"azerty",azerty:"qwertz",qwertz:"dvorak",dvorak:"colemak",colemak:"qwerty"}[e.options.virtualKeyboardLayout];const a=null!==(i=null===(t=e.virtualKeyboard)||void 0===t?void 0:t.querySelector("div.keyboard-layer.is-visible").id)&&void 0!==i?i:"";return e.virtualKeyboard&&(e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),So(e),a&&zo(e,a),!1}},{target:"virtual-keyboard"}),ca({toggleVirtualKeyboard:(e,t)=>Ao(e,t),hideVirtualKeyboard:e=>Lo(e),showVirtualKeyboard:(e,t)=>So(e,t)},{target:"virtual-keyboard"});var Co='.ML__sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.ML__fonts-loading .ML__base{visibility:hidden}.ML__base{visibility:inherit;display:inline-block;position:relative;cursor:text}.ML__strut,.ML__strut--bottom{display:inline-block;min-height:.5em}.ML__small-delim{font-family:KaTeX_Main}.ML__text{font-family:var(--text-font-family,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif);white-space:pre}.ML__cmr{font-family:KaTeX_Main;font-style:normal}.ML__mathit{font-family:KaTeX_Math;font-style:italic}.ML__mathbf{font-family:KaTeX_Main;font-weight:700}.lcGreek.ML__mathbf{font-family:KaTeX_Math;font-weight:400}.ML__mathbfit{font-family:KaTeX_Math;font-weight:700;font-style:italic}.ML__ams,.ML__bb{font-family:KaTeX_AMS}.ML__cal{font-family:KaTeX_Caligraphic}.ML__frak{font-family:KaTeX_Fraktur}.ML__tt{font-family:KaTeX_Typewriter}.ML__script{font-family:KaTeX_Script}.ML__sans{font-family:KaTeX_SansSerif}.ML__series_el,.ML__series_ul{font-weight:100}.ML__series_l{font-weight:200}.ML__series_sl{font-weight:300}.ML__series_sb{font-weight:500}.ML__bold,.ML__boldsymbol{font-weight:700}.ML__series_eb{font-weight:800}.ML__series_ub{font-weight:900}.ML__series_uc{font-stretch:ultra-condensed}.ML__series_ec{font-stretch:extra-condensed}.ML__series_c{font-stretch:condensed}.ML__series_sc{font-stretch:semi-condensed}.ML__series_sx{font-stretch:semi-expanded}.ML__series_x{font-stretch:expanded}.ML__series_ex{font-stretch:extra-expanded}.ML__series_ux{font-stretch:ultra-expanded}.ML__it{font-style:italic}.ML__shape_ol{-webkit-text-stroke:1px #000;text-stroke:1px #000;color:transparent}.ML__shape_sc{font-variant:small-caps}.ML__shape_sl{font-style:oblique}.ML__emph{color:#bc2612}.ML__emph .ML__emph{color:#0c7f99}.ML__highlight{color:#007cb2;background:#edd1b0}.ML__mathlive{display:inline-block;line-height:0;direction:ltr;text-align:left;text-indent:0;text-rendering:auto;font-family:KaTeX_Main;font-style:normal;font-size-adjust:none;letter-spacing:normal;word-wrap:normal;word-spacing:normal;white-space:nowrap;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:-webkit-min-content;width:-moz-min-content;width:min-content;transform:translateZ(0)}.ML__mathlive .reset-textstyle.scriptstyle{font-size:.7em}.ML__mathlive .reset-textstyle.scriptscriptstyle{font-size:.5em}.ML__mathlive .reset-scriptstyle.textstyle{font-size:1.42857em}.ML__mathlive .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.ML__mathlive .reset-scriptscriptstyle.textstyle{font-size:2em}.ML__mathlive .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.ML__mathlive .style-wrap{position:relative}.ML__mathlive .vlist{display:inline-block}.ML__mathlive .vlist>span{display:block;height:0;position:relative;line-height:0}.ML__mathlive .vlist>span>span{display:inline-block}.ML__mathlive .msubsup{text-align:left}.ML__mathlive .mfrac>span{text-align:center}.ML__mathlive .mfrac .frac-line{width:100%}.ML__mathlive .mfrac .frac-line:after{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor;box-sizing:content-box;transform:translate(0)}.ML__mathlive .rspace.negativethinspace{margin-right:-.16667em}.ML__mathlive .rspace.thinspace{margin-right:.16667em}.ML__mathlive .rspace.negativemediumspace{margin-right:-.22222em}.ML__mathlive .rspace.mediumspace{margin-right:.22222em}.ML__mathlive .rspace.thickspace{margin-right:.27778em}.ML__mathlive .rspace.sixmuspace{margin-right:.333333em}.ML__mathlive .rspace.eightmuspace{margin-right:.444444em}.ML__mathlive .rspace.enspace{margin-right:.5em}.ML__mathlive .rspace.twelvemuspace{margin-right:.666667em}.ML__mathlive .rspace.quad{margin-right:1em}.ML__mathlive .rspace.qquad{margin-right:2em}.ML__mathlive .mspace{display:inline-block}.ML__mathlive .mspace.negativethinspace{margin-left:-.16667em}.ML__mathlive .mspace.thinspace{width:.16667em}.ML__mathlive .mspace.negativemediumspace{margin-left:-.22222em}.ML__mathlive .mspace.mediumspace{width:.22222em}.ML__mathlive .mspace.thickspace{width:.27778em}.ML__mathlive .mspace.sixmuspace{width:.333333em}.ML__mathlive .mspace.eightmuspace{width:.444444em}.ML__mathlive .mspace.enspace{width:.5em}.ML__mathlive .mspace.twelvemuspace{width:.666667em}.ML__mathlive .mspace.quad{width:1em}.ML__mathlive .mspace.qquad{width:2em}.ML__mathlive .llap,.ML__mathlive .rlap{width:0;position:relative}.ML__mathlive .llap>.inner,.ML__mathlive .rlap>.inner{position:absolute}.ML__mathlive .llap>.fix,.ML__mathlive .rlap>.fix{display:inline-block}.ML__mathlive .llap>.inner{right:0}.ML__mathlive .rlap>.inner{left:0}.ML__mathlive .rule{display:inline-block;border:0 solid;position:relative}.ML__mathlive .overline .overline-line,.ML__mathlive .underline .underline-line{width:100%}.ML__mathlive .overline .overline-line:before,.ML__mathlive .underline .underline-line:before{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block}.ML__mathlive .overline .overline-line:after,.ML__mathlive .underline .underline-line:after{border-bottom-style:solid;border-bottom-width:.04em;min-height:thin;content:"";display:block;margin-top:-1px}.ML__mathlive .stretchy{display:block;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .stretchy:after,.ML__mathlive .stretchy:before{content:""}.ML__mathlive .stretchy svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.ML__mathlive .slice-1-of-2{left:0}.ML__mathlive .slice-1-of-2,.ML__mathlive .slice-2-of-2{display:inline-flex;position:absolute;width:50.2%;overflow:hidden}.ML__mathlive .slice-2-of-2{right:0}.ML__mathlive .slice-1-of-3{display:inline-flex;position:absolute;left:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-2-of-3{display:inline-flex;position:absolute;left:25%;width:50%;overflow:hidden}.ML__mathlive .slice-3-of-3{display:inline-flex;position:absolute;right:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-1-of-1{display:inline-flex;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .sqrt{display:inline-block}.ML__mathlive .sqrt>.sqrt-sign{font-family:KaTeX_Main;position:relative}.ML__mathlive .sqrt .sqrt-line{height:.04em;width:100%}.ML__mathlive .sqrt .sqrt-line:before{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor}.ML__mathlive .sqrt .sqrt-line:after{border-bottom-width:1px;content:" ";display:block;margin-top:-.1em;transform:translate(0)}.ML__mathlive .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.ML__mathlive .fontsize-ensurer,.ML__mathlive .sizing{display:inline-block}.ML__mathlive .fontsize-ensurer.reset-size1.size1,.ML__mathlive .sizing.reset-size1.size1{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size1.size2,.ML__mathlive .sizing.reset-size1.size2{font-size:1.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size3,.ML__mathlive .sizing.reset-size1.size3{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size1.size4,.ML__mathlive .sizing.reset-size1.size4{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size1.size5,.ML__mathlive .sizing.reset-size1.size5{font-size:2em}.ML__mathlive .fontsize-ensurer.reset-size1.size6,.ML__mathlive .sizing.reset-size1.size6{font-size:2.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size7,.ML__mathlive .sizing.reset-size1.size7{font-size:2.88em}.ML__mathlive .fontsize-ensurer.reset-size1.size8,.ML__mathlive .sizing.reset-size1.size8{font-size:3.46em}.ML__mathlive .fontsize-ensurer.reset-size1.size9,.ML__mathlive .sizing.reset-size1.size9{font-size:4.14em}.ML__mathlive .fontsize-ensurer.reset-size1.size10,.ML__mathlive .sizing.reset-size1.size10{font-size:4.98em}.ML__mathlive .fontsize-ensurer.reset-size2.size1,.ML__mathlive .sizing.reset-size2.size1{font-size:.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size2,.ML__mathlive .sizing.reset-size2.size2{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size2.size3,.ML__mathlive .sizing.reset-size2.size3{font-size:1.14285714em}.ML__mathlive .fontsize-ensurer.reset-size2.size4,.ML__mathlive .sizing.reset-size2.size4{font-size:1.28571429em}.ML__mathlive .fontsize-ensurer.reset-size2.size5,.ML__mathlive .sizing.reset-size2.size5{font-size:1.42857143em}.ML__mathlive .fontsize-ensurer.reset-size2.size6,.ML__mathlive .sizing.reset-size2.size6{font-size:1.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size7,.ML__mathlive .sizing.reset-size2.size7{font-size:2.05714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size8,.ML__mathlive .sizing.reset-size2.size8{font-size:2.47142857em}.ML__mathlive .fontsize-ensurer.reset-size2.size9,.ML__mathlive .sizing.reset-size2.size9{font-size:2.95714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size10,.ML__mathlive .sizing.reset-size2.size10{font-size:3.55714286em}.ML__mathlive .fontsize-ensurer.reset-size3.size1,.ML__mathlive .sizing.reset-size3.size1{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size3.size2,.ML__mathlive .sizing.reset-size3.size2{font-size:.875em}.ML__mathlive .fontsize-ensurer.reset-size3.size3,.ML__mathlive .sizing.reset-size3.size3{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size3.size4,.ML__mathlive .sizing.reset-size3.size4{font-size:1.125em}.ML__mathlive .fontsize-ensurer.reset-size3.size5,.ML__mathlive .sizing.reset-size3.size5{font-size:1.25em}.ML__mathlive .fontsize-ensurer.reset-size3.size6,.ML__mathlive .sizing.reset-size3.size6{font-size:1.5em}.ML__mathlive .fontsize-ensurer.reset-size3.size7,.ML__mathlive .sizing.reset-size3.size7{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size3.size8,.ML__mathlive .sizing.reset-size3.size8{font-size:2.1625em}.ML__mathlive .fontsize-ensurer.reset-size3.size9,.ML__mathlive .sizing.reset-size3.size9{font-size:2.5875em}.ML__mathlive .fontsize-ensurer.reset-size3.size10,.ML__mathlive .sizing.reset-size3.size10{font-size:3.1125em}.ML__mathlive .fontsize-ensurer.reset-size4.size1,.ML__mathlive .sizing.reset-size4.size1{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size4.size2,.ML__mathlive .sizing.reset-size4.size2{font-size:.77777778em}.ML__mathlive .fontsize-ensurer.reset-size4.size3,.ML__mathlive .sizing.reset-size4.size3{font-size:.88888889em}.ML__mathlive .fontsize-ensurer.reset-size4.size4,.ML__mathlive .sizing.reset-size4.size4{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size4.size5,.ML__mathlive .sizing.reset-size4.size5{font-size:1.11111111em}.ML__mathlive .fontsize-ensurer.reset-size4.size6,.ML__mathlive .sizing.reset-size4.size6{font-size:1.33333333em}.ML__mathlive .fontsize-ensurer.reset-size4.size7,.ML__mathlive .sizing.reset-size4.size7{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size4.size8,.ML__mathlive .sizing.reset-size4.size8{font-size:1.92222222em}.ML__mathlive .fontsize-ensurer.reset-size4.size9,.ML__mathlive .sizing.reset-size4.size9{font-size:2.3em}.ML__mathlive .fontsize-ensurer.reset-size4.size10,.ML__mathlive .sizing.reset-size4.size10{font-size:2.76666667em}.ML__mathlive .fontsize-ensurer.reset-size5.size1,.ML__mathlive .sizing.reset-size5.size1{font-size:.5em}.ML__mathlive .fontsize-ensurer.reset-size5.size2,.ML__mathlive .sizing.reset-size5.size2{font-size:.7em}.ML__mathlive .fontsize-ensurer.reset-size5.size3,.ML__mathlive .sizing.reset-size5.size3{font-size:.8em}.ML__mathlive .fontsize-ensurer.reset-size5.size4,.ML__mathlive .sizing.reset-size5.size4{font-size:.9em}.ML__mathlive .fontsize-ensurer.reset-size5.size5,.ML__mathlive .sizing.reset-size5.size5{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size5.size6,.ML__mathlive .sizing.reset-size5.size6{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size5.size7,.ML__mathlive .sizing.reset-size5.size7{font-size:1.44em}.ML__mathlive .fontsize-ensurer.reset-size5.size8,.ML__mathlive .sizing.reset-size5.size8{font-size:1.73em}.ML__mathlive .fontsize-ensurer.reset-size5.size9,.ML__mathlive .sizing.reset-size5.size9{font-size:2.07em}.ML__mathlive .fontsize-ensurer.reset-size5.size10,.ML__mathlive .sizing.reset-size5.size10{font-size:2.49em}.ML__mathlive .fontsize-ensurer.reset-size6.size1,.ML__mathlive .sizing.reset-size6.size1{font-size:.41666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size2,.ML__mathlive .sizing.reset-size6.size2{font-size:.58333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size3,.ML__mathlive .sizing.reset-size6.size3{font-size:.66666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size4,.ML__mathlive .sizing.reset-size6.size4{font-size:.75em}.ML__mathlive .fontsize-ensurer.reset-size6.size5,.ML__mathlive .sizing.reset-size6.size5{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size6,.ML__mathlive .sizing.reset-size6.size6{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size6.size7,.ML__mathlive .sizing.reset-size6.size7{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size6.size8,.ML__mathlive .sizing.reset-size6.size8{font-size:1.44166667em}.ML__mathlive .fontsize-ensurer.reset-size6.size9,.ML__mathlive .sizing.reset-size6.size9{font-size:1.725em}.ML__mathlive .fontsize-ensurer.reset-size6.size10,.ML__mathlive .sizing.reset-size6.size10{font-size:2.075em}.ML__mathlive .fontsize-ensurer.reset-size7.size1,.ML__mathlive .sizing.reset-size7.size1{font-size:.34722222em}.ML__mathlive .fontsize-ensurer.reset-size7.size2,.ML__mathlive .sizing.reset-size7.size2{font-size:.48611111em}.ML__mathlive .fontsize-ensurer.reset-size7.size3,.ML__mathlive .sizing.reset-size7.size3{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size7.size4,.ML__mathlive .sizing.reset-size7.size4{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size7.size5,.ML__mathlive .sizing.reset-size7.size5{font-size:.69444444em}.ML__mathlive .fontsize-ensurer.reset-size7.size6,.ML__mathlive .sizing.reset-size7.size6{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size7.size7,.ML__mathlive .sizing.reset-size7.size7{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size7.size8,.ML__mathlive .sizing.reset-size7.size8{font-size:1.20138889em}.ML__mathlive .fontsize-ensurer.reset-size7.size9,.ML__mathlive .sizing.reset-size7.size9{font-size:1.4375em}.ML__mathlive .fontsize-ensurer.reset-size7.size10,.ML__mathlive .sizing.reset-size7.size10{font-size:1.72916667em}.ML__mathlive .fontsize-ensurer.reset-size8.size1,.ML__mathlive .sizing.reset-size8.size1{font-size:.28901734em}.ML__mathlive .fontsize-ensurer.reset-size8.size2,.ML__mathlive .sizing.reset-size8.size2{font-size:.40462428em}.ML__mathlive .fontsize-ensurer.reset-size8.size3,.ML__mathlive .sizing.reset-size8.size3{font-size:.46242775em}.ML__mathlive .fontsize-ensurer.reset-size8.size4,.ML__mathlive .sizing.reset-size8.size4{font-size:.52023121em}.ML__mathlive .fontsize-ensurer.reset-size8.size5,.ML__mathlive .sizing.reset-size8.size5{font-size:.57803468em}.ML__mathlive .fontsize-ensurer.reset-size8.size6,.ML__mathlive .sizing.reset-size8.size6{font-size:.69364162em}.ML__mathlive .fontsize-ensurer.reset-size8.size7,.ML__mathlive .sizing.reset-size8.size7{font-size:.83236994em}.ML__mathlive .fontsize-ensurer.reset-size8.size8,.ML__mathlive .sizing.reset-size8.size8{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size8.size9,.ML__mathlive .sizing.reset-size8.size9{font-size:1.19653179em}.ML__mathlive .fontsize-ensurer.reset-size8.size10,.ML__mathlive .sizing.reset-size8.size10{font-size:1.43930636em}.ML__mathlive .fontsize-ensurer.reset-size9.size1,.ML__mathlive .sizing.reset-size9.size1{font-size:.24154589em}.ML__mathlive .fontsize-ensurer.reset-size9.size2,.ML__mathlive .sizing.reset-size9.size2{font-size:.33816425em}.ML__mathlive .fontsize-ensurer.reset-size9.size3,.ML__mathlive .sizing.reset-size9.size3{font-size:.38647343em}.ML__mathlive .fontsize-ensurer.reset-size9.size4,.ML__mathlive .sizing.reset-size9.size4{font-size:.43478261em}.ML__mathlive .fontsize-ensurer.reset-size9.size5,.ML__mathlive .sizing.reset-size9.size5{font-size:.48309179em}.ML__mathlive .fontsize-ensurer.reset-size9.size6,.ML__mathlive .sizing.reset-size9.size6{font-size:.57971014em}.ML__mathlive .fontsize-ensurer.reset-size9.size7,.ML__mathlive .sizing.reset-size9.size7{font-size:.69565217em}.ML__mathlive .fontsize-ensurer.reset-size9.size8,.ML__mathlive .sizing.reset-size9.size8{font-size:.83574879em}.ML__mathlive .fontsize-ensurer.reset-size9.size9,.ML__mathlive .sizing.reset-size9.size9{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size9.size10,.ML__mathlive .sizing.reset-size9.size10{font-size:1.20289855em}.ML__mathlive .fontsize-ensurer.reset-size10.size1,.ML__mathlive .sizing.reset-size10.size1{font-size:.20080321em}.ML__mathlive .fontsize-ensurer.reset-size10.size2,.ML__mathlive .sizing.reset-size10.size2{font-size:.2811245em}.ML__mathlive .fontsize-ensurer.reset-size10.size3,.ML__mathlive .sizing.reset-size10.size3{font-size:.32128514em}.ML__mathlive .fontsize-ensurer.reset-size10.size4,.ML__mathlive .sizing.reset-size10.size4{font-size:.36144578em}.ML__mathlive .fontsize-ensurer.reset-size10.size5,.ML__mathlive .sizing.reset-size10.size5{font-size:.40160643em}.ML__mathlive .fontsize-ensurer.reset-size10.size6,.ML__mathlive .sizing.reset-size10.size6{font-size:.48192771em}.ML__mathlive .fontsize-ensurer.reset-size10.size7,.ML__mathlive .sizing.reset-size10.size7{font-size:.57831325em}.ML__mathlive .fontsize-ensurer.reset-size10.size8,.ML__mathlive .sizing.reset-size10.size8{font-size:.69477912em}.ML__mathlive .fontsize-ensurer.reset-size10.size9,.ML__mathlive .sizing.reset-size10.size9{font-size:.8313253em}.ML__mathlive .fontsize-ensurer.reset-size10.size10,.ML__mathlive .sizing.reset-size10.size10{font-size:1em}.ML__mathlive .delimsizing.size1{font-family:KaTeX_Size1}.ML__mathlive .delimsizing.size2{font-family:KaTeX_Size2}.ML__mathlive .delimsizing.size3{font-family:KaTeX_Size3}.ML__mathlive .delimsizing.size4{font-family:KaTeX_Size4}.ML__mathlive .delimsizing.mult .delim-size1{font-family:KaTeX_Size1;vertical-align:top}.ML__mathlive .delimsizing.mult .delim-size4{font-family:KaTeX_Size4;vertical-align:top}.ML__mathlive .nulldelimiter{width:.12em}.ML__mathlive .op-symbol{position:relative}.ML__mathlive .op-symbol.small-op{font-family:KaTeX_Size1}.ML__mathlive .op-symbol.large-op{font-family:KaTeX_Size2}.ML__mathlive .op-limits .vlist>span{text-align:center}.ML__mathlive .op-over-under{position:relative}.ML__mathlive .op-over-under>.vlist>span:first-child,.ML__mathlive .op-over-under>.vlist>span:last-child{text-align:center}.ML__mathlive .accent>.vlist>span{text-align:center}.ML__mathlive .accent .accent-body>span{font-family:KaTeX_Main;width:0}.ML__mathlive .accent .accent-body.accent-vec>span{position:relative;left:.326em}.ML__mathlive .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid}.ML__mathlive .mtable .arraycolsep{display:inline-block}.ML__mathlive .mtable .col-align-m>.vlist{text-align:center}.ML__mathlive .mtable .col-align-c>.vlist{text-align:center}.ML__mathlive .mtable .col-align-l>.vlist{text-align:left}.ML__mathlive .mtable .col-align-r>.vlist{text-align:right}.ML__error{background-image:radial-gradient(ellipse at center,#cc0041,transparent 70%);background-repeat:repeat-x;background-size:3px 3px;background-position:0 98%}.ML__placeholder{opacity:.7;padding-left:.4ex;padding-right:.4ex;padding-top:.4ex}';const $o={"\\imaginaryI":"ⅈ","\\imaginaryJ":"ⅉ","\\pi":"π","\\exponentialE":"ℯ","﹢":"+","+":"+","−":"-","-":"-","﹣":"-","-":"-","\\times":"*","\\cdot":"*","⨉":"*","️✖":"*","️×":"*",".":"*","÷":"/","⁄":"/","/":"/","!":"factorial","\\mp":"minusplus","\\ne":"!=","\\coloneq":":=","\\questeq":"?=","\\approx":"approx","\\cong":"congruent","\\sim":"similar","\\equiv":"equiv","\\pm":"plusminus","\\land":"and","\\wedge":"and","\\lor":"or","\\vee":"or","\\oplus":"xor","\\veebar":"xor","\\lnot":"not","\\neg":"not","\\exists":"exists","\\nexists":"!exists","\\forall":"forAll","\\backepsilon":"suchThat","\\therefore":"therefore","\\because":"because","\\nabla":"nabla","\\circ":"circle","\\ominus":"ominus","\\odot":"odot","\\otimes":"otimes","\\zeta":"Zeta","\\Gamma":"Gamma","\\min":"min","\\max":"max","\\mod":"mod","\\lim":"lim","\\sum":"sum","\\prod":"prod","\\int":"integral","\\iint":"integral2","\\iiint":"integral3","\\Re":"Re","\\gothicCapitalR":"Re","\\Im":"Im","\\gothicCapitalI":"Im","\\binom":"nCr","\\partial":"partial","\\differentialD":"differentialD","\\capitalDifferentialD":"capitalDifferentialD","\\Finv":"Finv","\\Game":"Game","\\wp":"wp","\\ast":"ast","\\star":"star","\\asymp":"asymp","\\to":"to","\\gets":"gets","\\in":"elementof","\\notin":"!elementof","\\ni":"ownedby","\\owns":"ownedby","\\subset":"subset","\\supset":"superset","\\complement":"complement","\\rightarrow":"shortLogicalImplies","\\leftarrow":"shortLogicalImpliedBy","\\leftrightarrow":"shortLogicalEquivalent","\\longrightarrow":"logicalImplies","\\longleftarrow":"logicalImpliedBy","\\longleftrightarrow":"logicalEquivalent","\\Rightarrow":"shortImplies","\\Leftarrow":"shortImpliedBy","\\Leftrightarrow":"shortEquivalent","\\implies":"implies","\\Longrightarrow":"implies","\\impliedby":"impliedBy","\\Longleftarrow":"impliedBy","\\iff":"equivalent","\\Longleftrightarrow":"equivalent"},qo={"+":"add","*":"multiply","-":"subtract","/":"divide","=":"equal",":=":"assign","!=":"ne","?=":"questeq",approx:"approx",congruent:"congruent",similar:"similar",equiv:"equiv","<":"lt",">":"gt","<=":"le",">=":"ge","≤":"le","≥":"ge",">>":"gg","<<":"ll","**":"pow","++":"increment","--":"decrement"},Do={equal:"%0 = %1",ne:"%0 \\ne %1",questeq:"%0 \\questeq %1",approx:"%0 \\approx %1",congruent:"%0 \\cong %1",similar:"%0 \\sim %1",equiv:"%0 \\equiv %1",assign:"%0 := %1",lt:"%0 < %1",gt:"%0 > %1",le:"%0 \\le %1",ge:"%0 \\ge %1",sin:"\\sin%_%^ %0",cos:"\\cos%_%^ %0",tan:"\\tan%_%^ %0",cot:"\\cot%_%^ %0",sec:"\\sec%_%^ %0",csc:"\\csc%_%^ %0",sinh:"\\sinh %0",cosh:"\\cosh %0",tanh:"\\tanh %0",csch:"\\csch %0",sech:"\\sech %0",coth:"\\coth %0",arcsin:"\\arcsin %0",arccos:"\\arccos %0",arctan:"\\arctan %0",arccot:"\\arcctg %0",arcsec:"\\arcsec %0",arccsc:"\\arccsc %0",arsinh:"\\arsinh %0",arcosh:"\\arcosh %0",artanh:"\\artanh %0",arcsch:"\\arcsch %0",arsech:"\\arsech %0",arcoth:"\\arcoth %0",ln:"\\ln%_%^ %",log:"\\log%_%^ %",lg:"\\lg %",lb:"\\lb %",sum:"\\sum%_%^ %0",prod:"\\prod%_%^ %0",Zeta:"\\zeta%_%^ %",Gamma:"\\Gamma %",min:"\\min%_%^ %",max:"\\max%_%^ %",mod:"\\mod%_%^ %",lim:"\\lim%_%^ %",binom:"\\binom %",nabla:"\\nabla %",curl:"\\nabla\\times %0",div:"\\nabla\\cdot %0",floor:"\\lfloor %0 \\rfloor%_%^",ceil:"\\lceil %0 \\rceil%_%^",abs:"\\left| %0 \\right|%_%^",norm:"\\lVert %0 \\rVert%_%^",ucorner:"\\ulcorner %0 \\urcorner%_%^",lcorner:"\\llcorner %0 \\lrcorner%_%^",angle:"\\langle %0 \\rangle%_%^",group:"\\lgroup %0 \\rgroup%_%^",moustache:"\\lmoustache %0 \\rmoustache%_%^",brace:"\\lbrace %0 \\rbrace%_%^","sqrt[]":"\\sqrt[%^]{%0}",sqrt:"\\sqrt{%0}",lcm:"\\operatorname{lcm}%",gcd:"\\operatorname{gcd}%",erf:"\\operatorname{erf}%",erfc:"\\operatorname{erfc}%",randomReal:"\\operatorname{randomReal}%",randomInteger:"\\operatorname{randomInteger}%",and:"%0 \\land %1",or:"%0 \\lor %1",xor:"%0 \\oplus %1",not:"%0 \\lnot %1",circle:"%0 \\circ %1",ast:"%0 \\ast %1",star:"%0 \\star %1",asymp:"%0 \\asymp %1","/":"\\frac{%0}{%1}",Re:"\\Re{%0}",Im:"\\Im{%0}",factorial:"%0!",factorial2:"%0!!"},To={degree:880,nabla:740,curl:740,partial:740,differentialD:740,capitalDifferentialD:740,"**":720,odot:710,not:680,div:660,solidus:660,"/":660,setminus:650,"%":640,otimes:410,union:350,intersection:350,"*":390,ast:390,".":390,oplus:300,ominus:300,"+":275,"-":275,"+-":275,"-+":275,circle:265,circledast:265,circledcirc:265,star:265,"..":263,to:262,in:262,"|":261,congruent:265,equiv:260,"=":260,"!=":255,"?=":255,similar:250,approx:247,"<":245,">":243,">=":242,"≥":242,"<=":241,complement:240,subset:240,superset:240,elementof:240,"!elementof":240,exists:230,"!exists":230,forall:230,and:200,xor:195,or:190,suchThat:110,":":100,assign:80,":=":80,therefore:70,because:70,shortLogicalImplies:52,shortImplies:51,logicalImplies:50,implies:49,shortLogicalImpliedBy:48,shortImpliedBy:47,logicalImpliedBy:46,impliedBy:45,shortLogicalEquivalent:44,shortEquivalent:43,logicalEquivalent:42,equivalent:41,",":40,";":30};function Ko(e,i){return t(e.arg)?e.arg[i]:void 0}function Eo(e){return e&&To[e]||-1}function No(e){return/=|=>/.test(e)?"right":"left"}function Bo(e){if("f"===e||"g"===e)return!0;const t=Do[e];return!!t&&!!/%[^01_^]?/.test(t)}function Oo(e){e=(e||"").trim();let t=$o[e];if(!t)if(/^\\[^{}]+$/.test(e)){const i=se(e,"math",{});t=i&&i.value||e.slice(1)}else t=e;return t}function Fo(e){if(!e)return null;const t=Oo(Wo(e)),i=[Eo(t),No(t)];return i[0]<=0?null:i}function Po(e){return null!==Fo(e)}const Ro={"\\lfloor\\rfloor":"floor","\\lceil\\rceil":"ceil","\\vert\\vert":"abs","\\lvert\\rvert":"abs","||":"abs","\\Vert\\Vert":"norm","\\lVert\\rVert":"norm","\\ulcorner\\urcorner":"ucorner","\\llcorner\\lrcorner":"lcorner","\\langle\\rangle":"angle","\\lgroup\\rgroup":"group","\\lmoustache\\rmoustache":"moustache","\\lbrace\\rbrace":"brace"},Io={"!":"factorial","\\dag":"dagger","\\dagger":"dagger","\\ddagger":"dagger2","\\maltese":"maltese","\\backprime":"backprime","\\backdoubleprime":"backprime2","\\prime":"prime","\\doubleprime":"prime2","\\$":"$","\\%":"%","\\_":"_","\\degree":"degree"},Ho={"+":"add","-":"add","*":"multiply","=":"equal",",":"list",";":"list2",and:"and",or:"or",xor:"xor",union:"union",shortLogicalEquivalent:"logicalEquivalent",logicalEquivalent:"logicalEquivalent",shortEquivalent:"equivalent",equivalent:"equivalent"},Vo={",":"list",";":"list2"};function Wo(e){if("string"==typeof e)return e;if(t(e)){let t="";for(const i of e)t+=Wo(i);return t}if(e.symbol&&!/^\\math(op|bin|rel|open|punct|ord|inner)/.test(e.symbol))return e.symbol;if("leftright"===e.type)return"";if("string"==typeof e.body)return e.body;if(t(e.body)){let t="";for(const i of e.body)t+=Wo(i);return t}return""}function Uo(e){return"string"==typeof e.sym?function(e){let t=Do[e];return t?t.replace("%1","").replace("%0","").replace("%",""):(e.length>1&&(t="\\"+e),t||(t=ie("math",e)),t)}(e.sym)||e.sym:""}function jo(e){return parseFloat(e.num)}function Xo(e){return"object"==typeof e&&void 0!==e.num}function Go(e){let t=0;return Xo(e)&&(t="object"==typeof e.num?void 0!==e.num.re?gr(e.num.re):0:parseFloat(e.num)),t}function Zo(e){let t=0;return Xo(e)&&"object"==typeof e.num&&(t=void 0!==e.num.im?gr(e.num.im):0),t}function Yo(e){return e&&void 0!==e.sup}function Jo(e){return e&&void 0!==e.sub}function Qo(e,t,i){let a=!1;const o=e.atoms[e.index];return o&&o.type===t&&(a=void 0===i||Wo(o)===i),a}function er(e,...t){const i={fn:e,arg:void 0};if(t){const e=[];for(const i of t)i&&e.push(i);e.length>0&&(i.arg=e)}return i}function tr(e){return"number"==typeof e?{num:e.toString()}:"string"==typeof e||"object"==typeof e?{num:e}:void 0}function ir(e){if(Xo(e)){const t=Go(e),i=Zo(e);return 0!==i?(0!==t&&(e.num.re=(-t).toString()),e.num.im=(-i).toString()):e.num=(-t).toString(),e}return er("negate",e)}function ar(e){const t=e.atoms[e.index+1];return t&&"msubsup"===t.type}function or(e,t){let i=e.atoms[e.index];return!i||void 0===i.superscript&&void 0===i.subscript?i=null:e.index+=1,i||(i=e.atoms[e.index+1],i&&"msubsup"===i.type&&(i.superscript||i.subscript)?e.index+=2:i=null),i?(void 0!==i.subscript&&(e.ast.sub=pr(i.subscript,t)),void 0!==i.superscript&&("msubsup"===i.type?/['\u2032]|\\prime/.test(Wo(i.superscript))?(e.index+=1,i=e.atoms[e.index+1],i&&"msubsup"===i.type&&/['\u2032]|\\prime/.test(Wo(i.superscript))?e.ast.sup={sym:"″"}:(e.ast.sup={sym:"′"},e.index-=1)):/['\u2033]|\\doubleprime/.test(Wo(i.superscript))?e.ast.sup={sym:"″"}:e.ast&&(e.ast.sup=pr(i.superscript,t)):e.ast.sup=pr(i.superscript,t))):e.index+=1,e}function rr(e,t){const i=e.ast;if(nr(e,"!!"))return e.index+=1,e.ast=er("factorial2",i),rr(e=or(e,t),t);if(nr(e,"++"))return e.index+=1,e.ast=er("increment",i),rr(e=or(e,t),t);if(nr(e,"--"))return e.index+=1,e.ast=er("decrement",i),rr(e=or(e,t),t);const a=e.atoms[e.index];return(null==a?void 0:a.symbol)&&Io[a.symbol]&&(e.ast=er(Io[a.symbol],i),e=rr(e=or(e,t),t)),e}function sr(e,t,i,a){if(e.index=e.index||0,0===e.atoms.length||e.index>=e.atoms.length)return e.ast=void 0,e;const o=e.minPrec;e.minPrec=0;let r=e.atoms[e.index];if(t){if("mopen"===r.type&&Wo(r)===t)e.index+=1,r=(e=cr(e,a)).atoms[e.index],r&&"mclose"===r.type&&Wo(r)===i&&(ar(e)&&(e.ast={group:e.ast}),e=rr(e=or(e,a),a));else if("textord"===r.type&&Wo(r)===t)e.index+=1,r=(e=cr(e,a)).atoms[e.index],r&&"textord"===r.type&&Wo(r)===i&&(e.index+=1,e=rr(e=or(e,a),a));else if("\\lVert"===t&&"textord"===r.type&&"|"===r.symbol){if(r=e.atoms[e.index+1],r&&"textord"===r.type&&"|"===r.symbol){e.index+=2,r=(e=cr(e,a)).atoms[e.index];const t=e.atoms[e.index+1];r&&"textord"===r.type&&"|"===r.symbol&&t&&"textord"===t.type&&"|"===t.symbol&&(e.index+=2,e=rr(e=or(e,a),a))}}else if("sizeddelim"===r.type&&r.delim===t)e.index+=1,r=(e=cr(e,a)).atoms[e.index],r&&"sizeddelim"===r.type&&r.delim===i&&(e.index+=1,e=rr(e=or(e,a),a));else{if("leftright"!==r.type||r.leftDelim!==t||"?"!==r.rightDelim&&r.rightDelim!==i)return;e.ast=pr(r.body,a),ar(e)&&(e.ast={group:e.ast}),e=rr(e=or(e,a),a)}return e.minPrec=o,e}{let s=!0;if("mopen"===r.type?(t=r.symbol,i=V[t]):"sizeddelim"===r.type?(t=r.delim,i=V[t]):"leftright"===r.type?(s=!1,t=r.leftDelim,"?"===(i=r.rightDelim)&&(i=V[t])):"textord"===r.type&&(t=r.symbol,i=V[t]),t&&i){if("|"===t&&"|"===i){const a=e.atoms[e.index+1];a&&"textord"===a.type&&"|"===a.symbol&&(t="\\lVert",i="\\rVert")}if(e=sr(e,t,i,a))return s&&(e.index+=1),e.ast={fn:Ro[t+i]||t+i,arg:[e.ast]},e.minPrec=o,e}}}function nr(e,t){return e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)&&t===Wo(e.atoms[e.index])+Wo(e.atoms[e.index+1])}function lr(e){if(e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)){if(!Qo(e,"textord","\\nabla")){const t=e.atoms[e.index].symbol+e.atoms[e.index+1].symbol,i=/^(>=|<=|>>|<<|:=|!=)$/.test(t)?t:"";return i&&(e.index+=1),i}return e.index+=1,Qo(e,"mbin","\\times")?(e.index+=1,e.ast="curl",e):Qo(e,"mbin","\\cdot")?(e.index+=1,e.ast="div",e):void(e.index-=1)}}function cr(e,i){if(e.index=e.index||0,e.ast=void 0,0===e.atoms.length||e.index>=e.atoms.length)return e;e.minPrec=e.minPrec||0;let a=function e(i,a){if(i.index=i.index||0,i.ast=void 0,0===i.atoms.length||i.index>=i.atoms.length)return i;let o=i.atoms[i.index];if("text"===o.mode){let e="";for(;i.atoms[i.index]&&"text"===i.atoms[i.index].mode;)e+=i.atoms[i.index].body,i.index+=1;return i.ast={text:e},i}const r=Oo(Wo(o));if(lr(i))i.ast=er(i.ast,e(i,a).ast);else{if("root"===o.type)return i.index=0,i.atoms=o.body,e(i,a);if("mbin"===o.type&&"-"===r)i.index+=1,(i=e(i,a)).ast=ir(i.ast);else if("mbin"===o.type&&"+"===r)i.index+=1,(i=e(i,a)).ast=er("add",i.ast);else if("mord"===o.type&&/^[0-9.]$/.test(o.symbol)){let t="",r=!1,s=/^[0-9.eEdD]$/;for(;i.index0&&"\\"===d.charAt(0)&&"string"==typeof e.body&&(d=e.body)),l=ee(d,m,p).replace(/[\\]/g,"\\\\").replace(/["]/g,'\\"').replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t"),l!==d?(c={sym:l},m="normal"):c={sym:d};break;case"minner":case"mop":break;case"box":c=pr(e.body,t);break;case"enclose":break;case"array":if("cardinality"===e.environmentName)c=er("card",pr(e.array,t));else if(/array|matrix|pmatrix|bmatrix/.test(e.environmentName)){c={fn:"array",args:[]};for(const i of e.array)c.args.push(i.map(e=>pr(e,t)))}else if("cases"===e.environmentName){c={fn:"cases",args:[]};for(const i of e.array)if(i[0]){const e=[];e.push(pr(i[0],t));let a=pr(i[1],t);a&&"text"===a.fn&&a.arg&&/^(if|when|for)$/i.test(a.arg[0].trim())&&(a=a.arg.filter(e=>"string"!=typeof e)),e.push(null!=a?a:{}),c.args.push(e)}}break;case"spacing":case"space":case"mathstyle":break;default:c=void 0}return c&&m&&"normal"!==m&&(c.variant=m),c&&"string"==typeof e.cssClass&&(c.class=e.cssClass),c&&"string"==typeof e.cssId&&(c.id=e.cssId),c}function mr(e){if(!e)return[];let i;if(t(e)){i=[];for(const t of e){const e=mr(t);i=i.concat(e)}}else{if("spacing"===e.type||"first"===e.type)return[];"box"===e.type?i=mr(e.body):(e.body&&t(e.body)&&(e.body=mr(e.body)),e.superscript&&t(e.superscript)&&(e.superscript=mr(e.superscript)),e.subscript&&t(e.subscript)&&(e.subscript=mr(e.subscript)),e.index&&t(e.index)&&(e.index=mr(e.index)),e.denom&&t(e.denom)&&(e.denom=mr(e.denom)),e.numer&&t(e.numer)&&(e.numer=mr(e.numer)),e.array&&t(e.array)&&(e.array=e.array.map(e=>e.map(e=>mr(e)))),i=[e])}return i}function pr(e,t){return function(e,t){e.index=e.index||0,e.ast=void 0;const i=[];for(;e.atoms[e.index];)if("text"===e.atoms[e.index].mode){let t="";for(;e.atoms[e.index]&&"text"===e.atoms[e.index].mode;)t+=e.atoms[e.index].body,e.index+=1;i.push(er("text",t))}else{const a=cr(e,t).ast;if(!a)return;i.push(a)}return i.length>1?er("sequence",...i):i[0]||void 0}({atoms:mr(e)},t)}function ur(e,t){return pr(e,t)}function hr(e,...t){e=e||".. ";let i="";if(t.length>0){"."!==e[0]&&(i+=e[0]);let a="";for(const o of t)i+=a+o,a=e[2];"."!==e[1]&&(i+=e[1])}return i}function fr(e,t){const i=e.length;e=e.substr(0,t.precision-2);for(let i=0;i1&&(a+r.repeat(s+1)).startsWith(e))return"0"===r?a.replace(/(\d{3})/g,"$1"+t.groupSeparator):a.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.beginRepeatingDigits+r.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.endRepeatingDigits}}return i!==e.length&&(e+="\\ldots"),e.replace(/(\d{3})/g,"$1"+t.groupSeparator)}function gr(e){return parseFloat(parseFloat(e).toPrecision(15))}function yr(e,t){let i,a="";if("number"==typeof t.precision){if("number"!=typeof e){let i="",a="";if("-"===e[0]?(i="-",e=e.substr(1)):"+"===e[0]&&(e=e.substr(1)),e.indexOf(".")>=0){const o=e.match(/(\d*).(\d*)([e|E]([-+]?[0-9]*))?/),r=o[1],s=o[2].substring(0,Math.min(t.precision-r.length,o[2].length));if(a=o[4]||"","0"===r){let a=0;for(;"0"===s[a]&&a=t.precision)o="0",i="";else{o=e[a];const i=fr(e.substr(a+1),t);i&&(o+=t.decimalMarker+i)}"0"!==o&&(e.length-1>t.precision&&!o.endsWith("}")&&!o.endsWith("\\ldots")&&(o+="\\ldots"),a>4&&(o+=t.exponentProduct,t.exponentMarker?o+=t.exponentMarker+(1-a).toString():o+="10^{"+(1-a).toString()+"}")),e=o}else{e=r.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);const i=fr(s,t);i&&(e+=t.decimalMarker+i)}}else if(e.length>t.precision){const i=e.length;let a=e[0];const o=fr(e.substr(2),t);o&&(a+=t.decimalMarker+o,"}"!==a[a.length-1]&&(a+="\\ldots")),"1"!==a?a+=t.exponentProduct:a="",t.exponentMarker?a+=t.exponentMarker+(i-2).toString():a+="10^{"+(i-2).toString()+"}",e=a}else e=e.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);return a&&(a=t.exponentMarker?t.exponentMarker+a:t.exponentProduct+" 10^{"+a+"}"),i+e+a}i=gr(e)}if("engineering"===t.scientificNotation)if(0===i)a="0";else{const e=Math.abs(i);let o=Math.round(Math.log10(e));o-=o%3,e<1e3&&(o=0);const r=e/Math.pow(10,o);let s="";const n=r.toString().match(/^(.*)\.(.*)$/);(null==n?void 0:n[1])&&n[2]&&(s=n[1]+t.decimalMarker+n[2]),t.groupSeparator&&(s=fr(r.toExponential(),t));let l="";l=0===o?"":t.exponentMarker?t.exponentMarker+o:t.exponentProduct+" 10^{"+o+"}",a=(i<0?"-":"")+s+l}else{const i="string"==typeof e?e:e.toString();let o,r,s,n=i.match(/^(.*)[e|E]([-+]?[0-9]*)$/i);o=i,s="",(null==n?void 0:n[1])&&n[2]&&(o=n[1],r=t.exponentMarker?t.exponentMarker+n[2]:t.exponentProduct+" 10^{"+n[2]+"}"),n=o.match(/^(.*)\.(.*)$/),(null==n?void 0:n[1])&&n[2]&&(o=n[1],s=n[2]),t.groupSeparator&&(o=o.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator),s=fr(s,t)),s&&(s=t.decimalMarker+s),a=o+s+(r||"")}return a}class br{constructor(e,t){var i;this.stylesheets=[],this.eventHandlingInProgress="",this.options=Ja(eo(),t),this.element=e,e.mathfield=this,this.originalContent=e.innerHTML;let a=this.element.textContent;a&&(a=a.trim()),ct(this.options.fontsDirectory,this.options.onError),this.stylesheets.push(dt(e,Co)),this.stylesheets.push(dt(e,'@-webkit-keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}.ML__caret:after{content:"";border:none;border-radius:2px;border-right:2px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-2px;position:relative;left:-1px;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__text-caret:after{content:"";border:none;border-radius:1px;border-right:1px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-1px;position:relative;left:0;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__command-caret:after{content:"_";border:none;margin-right:-1ex;position:relative;color:var(--caret,hsl(var(--hue,212),40%,49%));-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__fieldcontainer{display:flex;flex-flow:row;justify-content:space-between;align-items:flex-end;min-height:39px;touch-action:none;width:100%;--hue:212;--secondary:hsl(var(--hue,212),19%,26%);--on-secondary:hsl(var(--hue,212),19%,26%)}.ML__fieldcontainer:focus{outline:2px solid var(--primary,hsl(var(--hue,212),40%,50%));outline-offset:3px}.ML__fieldcontainer__field{align-self:center;position:relative;overflow:hidden;line-height:0;padding:2px;width:100%}.ML__virtual-keyboard-toggle{display:flex;align-self:center;align-items:center;flex-shrink:0;flex-direction:column;justify-content:center;width:34px;height:34px;padding:0;margin-right:4px;cursor:pointer;box-sizing:border-box;border-radius:50%;border:1px solid transparent;transition:background .2s cubic-bezier(.64,.09,.08,1);color:var(--primary,hsl(var(--hue,212),40%,50%));fill:currentColor;background:transparent}.ML__virtual-keyboard-toggle:hover{background:hsl(var(--hue,212),25%,35%);color:#fafafa;fill:currentColor;border-radius:50%;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}.ML__popover{visibility:hidden;min-width:160px;background-color:rgba(97,97,97,.95);color:#fff;text-align:center;border-radius:6px;position:fixed;z-index:1;display:flex;flex-direction:column;justify-content:center;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:all .2s cubic-bezier(.64,.09,.08,1)}.ML__popover:after{content:"";position:absolute;top:-5px;left:calc(50% - 3px);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;font-size:1rem;border-bottom:5px solid rgba(97,97,97,.9)}.ML__popover--reverse-direction:after{top:auto;bottom:-5px;border-top:5px solid rgba(97,97,97,.9);border-bottom:0}.ML__textarea__textarea{transform:scale(0);resize:none;position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;font-size:16px}.ML__focused .ML__text{background:hsla(var(--hue,212),40%,50%,.1)}.ML__smart-fence__close{opacity:.5}.ML__selection{background:var(--highlight-inactive,#ccc);box-sizing:border-box}.ML__focused .ML__selection{background:var(--highlight,hsl(var(--hue,212),97%,85%))!important;color:var(--on-highlight)}.ML__contains-caret.ML__close,.ML__contains-caret.ML__open,.ML__contains-caret>.ML__close,.ML__contains-caret>.ML__open,.sqrt.ML__contains-caret>.sqrt-sign,.sqrt.ML__contains-caret>.vlist>span>.sqrt-line{color:var(--caret,hsl(var(--hue,212),40%,49%))}.ML__command{font-family:IBM Plex Mono,Source Code Pro,Consolas,Roboto Mono,Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Courier,monospace;letter-spacing:-1px;font-weight:400;line-height:1em;color:var(--primary,hsl(var(--hue,212),40%,50%))}:not(.ML__command)+.ML__command{margin-left:.25em}.ML__command+:not(.ML__command){padding-left:.25em}.ML__suggestion{opacity:.5}.ML__virtual-keyboard-toggle.pressed{background:hsla(0,0%,70%,.5)}.ML__virtual-keyboard-toggle:focus{outline:none;border-radius:50%;border:2px solid var(--primary,hsl(var(--hue,212),40%,50%))}.ML__virtual-keyboard-toggle.active,.ML__virtual-keyboard-toggle.active:hover{background:hsla(0,0%,70%,.5);color:#000;fill:currentColor}.ML__scroller{position:fixed;z-index:1;top:0;height:100vh;width:200px}[data-ML__tooltip]{position:relative}[data-ML__tooltip][data-placement=top]:after{top:inherit;bottom:100%}[data-ML__tooltip]:after{position:absolute;visibility:hidden;content:attr(data-ML__tooltip);display:inline-table;top:110%;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:200px;padding:8px;background:#616161;color:#fff;text-align:center;z-index:2;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);border-radius:2px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;font-size:12px;opacity:0;transform:scale(.5);transition:all .15s cubic-bezier(.4,0,1,1)}@media only screen and (max-width:767px){[data-ML__tooltip]:after{padding:8px 16px;font-size:14px}}[data-ML__tooltip]:hover{position:relative}[data-ML__tooltip]:hover:after{visibility:visible;opacity:1;transform:scale(1)}[data-ML__tooltip][data-delay]:after{transition-delay:0s}[data-ML__tooltip][data-delay]:hover:after{transition-delay:1s}'));let o="";this.options.substituteTextArea?"string"==typeof this.options.substituteTextArea?o+=this.options.substituteTextArea:o+="":/android|ipad|ipod|iphone/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?o+="\n \n \n ":o+=``,o+='',"manual"===this.options.virtualKeyboardMode?(o+=`
    `,this.options.virtualKeyboardToggleGlyph?o+=this.options.virtualKeyboardToggleGlyph:o+='',o+="
    "):o+="",o+="
    ",o+='\n
    \n \n \n
    \n ',this.element.innerHTML=this.options.createHTML(o);let r=0;"function"==typeof this.options.substituteTextArea?this.textarea=this.options.substituteTextArea():this.textarea=this.element.children[r++].firstElementChild,this.field=this.element.children[r].children[0],this.field.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const t=void 0===e.deltaX?e.detail:-e.deltaX;isFinite(t)&&this.field.scroll({top:0,left:this.field.scrollLeft-5*t})},{passive:!1}),this.virtualKeyboardToggle=this.element.children[r++].children[1],Ki(this,this.virtualKeyboardToggle,{default:"toggleVirtualKeyboard",alt:"toggleVirtualKeyboardAlt",shift:"toggleVirtualKeyboardShift"}),this.ariaLiveText=this.element.children[r].children[0],this.accessibleNode=this.element.children[r++].children[1],this.popover=Ci("mathlive-popover-panel","ML__popover"),this.stylesheets.push(dt(null,"div.ML__popover.is-visible{visibility:inherit;-webkit-animation:ML__fade-in .15s cubic-bezier(0,0,.2,1);animation:ML__fade-in .15s cubic-bezier(0,0,.2,1)}@-webkit-keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}@keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}.ML__popover__content{border-radius:6px;padding:2px;cursor:pointer;min-height:100px;display:flex;flex-direction:column;justify-content:center;margin-left:8px;margin-right:8px}.ML__popover__content a{color:#5ea6fd;padding-top:.3em;margin-top:.4em;display:block}.ML__popover__content a:hover{color:#5ea6fd;text-decoration:underline}.ML__popover__content.active,.ML__popover__content.pressed,.ML__popover__content:hover{background:hsla(0,0%,100%,.1)}.ML__popover__command{font-size:1.6rem}.ML__popover__prev-shortcut{height:31px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:4px;padding-bottom:2px}.ML__popover__next-shortcut:hover,.ML__popover__prev-shortcut:hover{opacity:.3}.ML__popover__next-shortcut.active,.ML__popover__next-shortcut.pressed,.ML__popover__prev-shortcut.active,.ML__popover__prev-shortcut.pressed{opacity:1}.ML__popover__next-shortcut>span,.ML__popover__prev-shortcut>span{padding:5px;border-radius:50%;width:20px;height:20px;display:inline-block}.ML__popover__prev-shortcut>span>span{margin-top:-2px;display:block}.ML__popover__next-shortcut>span>span{margin-top:2px;display:block}.ML__popover__next-shortcut:hover>span,.ML__popover__prev-shortcut:hover>span{background:hsla(0,0%,100%,.1)}.ML__popover__next-shortcut{height:34px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:2px;padding-bottom:4px}.ML__popover__shortcut{font-size:.8em;margin-top:.25em}.ML__popover__note,.ML__popover__shortcut{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.7;padding-top:.25em}.ML__popover__note{font-size:.8rem;line-height:1em;padding-left:.5em;padding-right:.5em}.ML__shortcut-join{opacity:.5}")),this.keystrokeCaption=Ci("mathlive-keystroke-caption-panel","ML__keystroke-caption"),this.stylesheets.push(dt(null,".ML__keystroke-caption{visibility:hidden;background:var(--secondary);border-color:var(--secondary-border);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);text-align:center;border-radius:6px;padding:16px;position:absolute;z-index:1;display:flex;flex-direction:row;justify-content:center;--keystroke:#fff;--on-keystroke:#555;--keystroke-border:#f7f7f7}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}}body[theme=dark] .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}.ML__keystroke-caption>span{min-width:14px;margin:0 8px 0 0;padding:4px;background-color:var(--keystroke);color:var(--on-keystroke);fill:currentColor;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:1em;border-radius:6px;border:2px solid var(--keystroke-border)}")),this.keystrokeCaptionVisible=!1,this.virtualKeyboardVisible=!1,this.keystrokeBuffer="",this.keystrokeBufferStates=[],this.keystrokeBufferResetTimer=null,this.suggestionIndex=0,this.mode=this.options.defaultMode,this.smartModeSuppressed=!1,this.style={},this.blurred=!0,Li(this.element,"focus",this),Li(this.element,"blur",this),Li(this.textarea,"cut",this),Li(this.textarea,"copy",this),Li(this.textarea,"paste",this),function(e,t){let i,a=null,o=null,r=!1,s=!1,n=!1,l=!1;function c(e){clearTimeout(i),i=setTimeout(()=>{clearTimeout(i),e()})}function d(){if(e.selectionStart!==e.selectionEnd)return;const i=e.value;e.value="",i.length>0&&t.typedText(i)}const m=e;m.addEventListener("keydown",i=>{if(t.allowDeadKey()||"Dead"!==i.key&&"Unidentified"!==i.key&&229!==i.keyCode)l=!1;else{l=!0,r=!1;const i=t.blur,a=t.focus;t.blur=null,t.focus=null,"function"==typeof e.blur&&(e.blur(),e.focus()),t.blur=i,t.focus=a}return!(!r&&"CapsLock"!==i.code&&!/(Control|Meta|Alt|Shift)(Left|Right)/.test(i.code))||(a=i,o=null,t.keystroke(qa(i),i))},!0),m.addEventListener("keypress",e=>{r||(a&&o&&t.keystroke(qa(a),a),o=e,c(d))},!0),m.addEventListener("keyup",()=>{r||!a||o||d()},!0),m.addEventListener("paste",()=>{e.focus();const i=e.value;e.value="",i.length>0&&t.paste(i)},!0),m.addEventListener("blur",e=>{n||s||(n=!0,a=null,o=null,t.blur&&t.blur(),n=!1)},!0),m.addEventListener("focus",e=>{n||s||(s=!0,t.focus&&t.focus(),s=!1)},!0),m.addEventListener("compositionstart",()=>{r=!0},!0),m.addEventListener("compositionend",()=>{r=!1,l&&t.allowDeadKey()&&c(d)},!0),m.addEventListener("input",()=>{if(l){const i=t.blur,a=t.focus;t.blur=null,t.focus=null,e.blur(),e.focus(),t.blur=i,t.focus=a,l=!1,r=!1,t.allowDeadKey()&&c(d)}else r||c(d)})}(this.textarea,{allowDeadKey:()=>"text"===this.mode,typedText:e=>ro(this,e),paste:()=>lo(this),keystroke:(e,t)=>oo(this,e,t),focus:()=>this.onFocus(),blur:()=>this.onBlur()}),window.PointerEvent?Li(this.field,"pointerdown",this):Li(this.field,"touchstart:active mousedown",this),Li(window,"resize",this),this.model=new La({mode:this.options.defaultMode,macros:this.options.macros,removeExtraneousParentheses:this.options.removeExtraneousParentheses},{onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError},{announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)},this),this.undoManager=new Ta(this.model),va(this.model,a,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),this.undoManager.startRecording(),this.undoManager.snapshot(this.options),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(xi().locale)||vi(this.options.locale),this.keybindings=Si(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),sa(this)}$setConfig(e){this.setOptions(e)}setOptions(e){this.options=Ja(this.options,e),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(xi().locale)||vi(this.options.locale),this.keybindings=Si(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),this.options.readOnly||this.onBlur();const t=this.model.root.toLatex();va(this.model,t,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),sa(this)}getConfig(e){return Qa(this.options,e)}getOptions(e){return Qa(this.options,e)}getOption(e){return Qa(this.options,e)}handleEvent(e){switch(e.type){case"focus":this.eventHandlingInProgress||(this.eventHandlingInProgress="focus",this.onFocus(),this.eventHandlingInProgress="");break;case"blur":this.eventHandlingInProgress||(this.eventHandlingInProgress="blur",this.onBlur(),this.eventHandlingInProgress="");break;case"touchstart":case"mousedown":case"pointerdown":!function(e,t){const i=e;let a,o=!1,r=!1,s=!1;if(1!==t.buttons&&0!==t.buttons)return;let n=!1,l=!1;const c=t.touches?t.touches[0].clientX:t.clientX,d=t.touches?t.touches[0].clientY:t.clientY,m=Date.now(),p=setInterval(()=>{n?i.field.scroll({top:0,left:i.field.scrollLeft-16}):l&&i.field.scroll({top:0,left:i.field.scrollLeft+16})},32);function u(e){window.PointerEvent?(Ai(i.field,"pointermove",h),Ai(i.field,"pointerup pointercancel",u),i.field.releasePointerCapture(e.pointerId)):(Ai(i.field,"touchmove",h),Ai(i.field,"touchcancel touchend",u),Ai(window,"mousemove",h),Ai(window,"mouseup blur",u)),o=!1,clearInterval(p),i.element.querySelectorAll(".ML__scroller").forEach(e=>e.parentNode.removeChild(e)),e.preventDefault(),e.stopPropagation()}function h(t){const o=t.touches?t.touches[0].clientX:t.clientX,s=t.touches?t.touches[0].clientY:t.clientY,p="touch"===t.pointerType?20:5;if(Date.now()u.right,n=o=f.left&&c<=f.right&&d>=f.top&&d<=f.bottom){e.hasFocus()||(s=!0,e.textarea.focus&&e.textarea.focus()),e.resetKeystrokeBuffer(),e.smartModeSuppressed=!1;const n=e.field.querySelector(".ML__mathlive").getBoundingClientRect();if(a=c>n.right?[{relation:"body",offset:e.model.root.body.length-1}]:po(e,c,d,{bias:0}),a){let n=document.createElement("div");n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.left-200+"px",n=document.createElement("div"),n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.right+"px",t.shiftKey?(ci(e.model,e.model.path,a),a=bt(e.model.path),a[a.length-1].offset-=1):Rt(e.model,a,0),s=!0,e.style={},3===t.detail||mo>2?(u(t),3!==t.detail&&3!==mo||ai(e.model)):o||(o=!0,window.PointerEvent?(Li(i.field,"pointermove",h),Li(i.field,"pointerup pointercancel",u),i.field.setPointerCapture(t.pointerId)):(Li(window,"blur",u),t.touches?(Li(t.target,"touchmove",h),Li(t.target,"touchcancel touchend",u)):(Li(window,"mousemove",h),Li(window,"mouseup",u))),2!==t.detail&&2!==mo||(r=!0,ii(e.model)))}}else co=null;s&&sa(e),t.preventDefault()}(this,e);break;case"resize":this.resizeTimer&&window.cancelAnimationFrame(this.resizeTimer),this.resizeTimer=window.requestAnimationFrame(()=>qi(this)&&this._onResize());break;case"cut":t=this,setTimeout(function(){t.$clearSelection(),sa(t)}.bind(t),0);break;case"copy":!function(e,t){oi(e.model)?(t.clipboardData.setData("text/plain","$$"+e.getValue("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.getValue("json")),t.clipboardData.setData("application/xml",e.getValue("mathML"))):(t.clipboardData.setData("text/plain","$$"+e.$selectedText("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.$selectedText("json")),t.clipboardData.setData("application/xml",e.$selectedText("mathML"))),t.preventDefault()}(this,e);break;case"paste":lo(this)}var t}$revertToOriginalContent(){this.dispose(),this.element.innerHTML=this.options.createHTML(this.originalContent)}dispose(){this.element.innerHTML="$$"+this.getValue()+"$$",delete this.element.mathfield,delete this.accessibleNode,delete this.ariaLiveText,delete this.field,Ai(this.textarea,"cut",this),Ai(this.textarea,"copy",this),Ai(this.textarea,"paste",this),this.textarea.remove(),delete this.textarea,this.virtualKeyboardToggle.remove(),delete this.virtualKeyboardToggle,$i(this.popover),delete this.popover,$i(this.keystrokeCaption),delete this.keystrokeCaption,$i(this.virtualKeyboard),delete this.virtualKeyboard,$i(document.getElementById("mathlive-alternate-keys-panel")),Ai(this.element,"pointerdown",this),Ai(this.element,"touchstart:active mousedown",this),Ai(this.element,"focus",this),Ai(this.element,"blur",this),Ai(window,"resize",this),delete this.element,this.stylesheets.forEach(e=>e.release())}resetKeystrokeBuffer(e){(e=null!=e?e:{defer:!1}).defer?this.options.inlineShortcutTimeout&&(this.keystrokeBufferResetTimer=setTimeout(()=>{this.resetKeystrokeBuffer()},this.options.inlineShortcutTimeout)):(this.keystrokeBuffer="",this.keystrokeBufferStates=[],clearTimeout(this.keystrokeBufferResetTimer))}_onSelectionDidChange(){!function(e){const t=Wt(e);if(t){const i=e.siblings(),a=e.anchorOffset()+1;for(let e=t.start;e=0;t--)"command"===i[t].type?i.splice(t,1):e(i[t]);else if(e(i.body),e(i.superscript),e(i.subscript),e(i.underscript),e(i.overscript),e(i.numer),e(i.denom),e(i.index),i.array)for(let t=_t(i.array);t>=0;t--)e(kt(i.array,t))}(e.root.body),e.suppressChangeNotifications=i,Ft(e)}(this.model))}Bi(this,{deferred:!0}),"function"==typeof this.options.onSelectionDidChange&&this.options.onSelectionDidChange(this)}onFocus(){this.options.readOnly||this.blurred&&(this.blurred=!1,this.textarea.focus&&this.textarea.focus(),"onfocus"===this.options.virtualKeyboardMode&&So(this),Bi(this),this.options.onFocus&&this.options.onFocus(this),this.valueOnFocus=this.getValue(),sa(this))}onBlur(){this.blurred||(this.blurred=!0,this.ariaLiveText.textContent="",/onfocus|manual/.test(this.options.virtualKeyboardMode)&&Lo(this),Pa(this,{discard:!0}),sa(this),"function"==typeof this.options.onBlur&&this.options.onBlur(this),"function"==typeof this.options.onCommit&&this.getValue()!==this.valueOnFocus&&this.options.onCommit(this))}_onResize(){this.element.classList.remove("ML__isNarrowWidth","ML__isWideWidth","ML__isExtendedWidth"),window.innerWidth>=1024?this.element.classList.add("ML__isExtendedWidth"):window.innerWidth>=768?this.element.classList.add("ML__isWideWidth"):this.element.classList.add("ML__isNarrowWidth"),Bi(this)}$perform(e){return this.executeCommand(e)}executeCommand(e){return function(e,i){var a;if(!i)return!1;let o,r=[],s=!1,n=!1;if(t(i)?(o=i[0],r=i.slice(1)):o=i,o=o.replace(/-\w/g,e=>e[1].toUpperCase()),"model"===(null===(a=la[o])||void 0===a?void 0:a.target)){if(/^(delete|transpose|add)/.test(o)&&"deletePreviousChar"!==o&&e.resetKeystrokeBuffer(),/^(delete|transpose|add)/.test(o)&&"command"!==e.mode&&(e.popUndoStack(),e.snapshot()),la[o].fn(e.model,...r),/^(delete|transpose|add)/.test(o)&&"command"!==e.mode&&e.snapshot(),/^(delete)/.test(o)&&"command"===e.mode){const t=ne(Pi(e.model));0===t.length?Fi(e):Ni(e,t[0].match,t.length>1)}n=!0,s=!0}else{if(!la[o])throw Error('Unknown command "'+o+'"');n=la[o].fn(e,...r),s=!0}return oi(e.model)&&!/^(transpose|paste|complete|((moveToNextChar|moveToPreviousChar|extend).*))_$/.test(o)||(e.resetKeystrokeBuffer(),e.style={}),n&&sa(e),s}(this,e)}atomToString(e,t){let i="";if("latex"===(t=t||"latex")||"latex-expanded"===t)i=e.toLatex("latex-expanded"===t);else if("mathML"===t)i=oa(e,this.options);else if("spoken"===t)i=Wa(e,this.options);else if("spoken-text"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="",i=Wa(e,this.options),this.options.textToSpeechMarkup=t}else if("spoken-ssml"===t||"spoken-ssml-withHighlighting"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="ssml",i=Wa(e,this.options),this.options.textToSpeechMarkup=t}else if("json"===t){const t=ur(e);i=JSON.stringify(t)}else if("json-2"===t){const t=ur(e);i=JSON.stringify(t,null,2)}else"ASCIIMath"===t&&(i=Na(e));return i}get lastPosition(){return this.model.lastPosition}get selection(){return this.model.selection}set selection(e){this.model.selection=e}$text(e){return this.atomToString(this.model.root,e)}getValue(e,t,i){if(void 0===e)return this.atomToString(this.model.root,"latex");let a,o;if("string"==typeof e)return a=e,this.atomToString(this.model.root,a);"number"==typeof e&&"number"==typeof t?(o=[{start:e,end:t}],a=null!=i?i:"latex"):o=Array.isArray(e)?e:[e];const r=new wa(this.model.root);return o.map(e=>{let t="";if((e=ht(r,e,{accessibleAtomsOnly:!0})).start>=0&&!e.collapsed){const i=r.at(e.start).depth;for(let a=e.start+1;a<=e.end;a++)r.at(a).depth===i&&(t+=this.atomToString(r.at(a).atom,"latex"))}return t}).join("")}setValue(e,t){e!==this.getValue()&&(t=null!=t?t:{mode:"math"},va(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),sa(this))}$selectedText(e){const t=ti(this.model);return t?this.atomToString(Qe("math",t),e):""}$selectionIsCollapsed(){return oi(this.model)}$selectionDepth(){return this.model.path.length}$selectionAtStart(){return!1}$selectionAtEnd(){return!1}$latex(e,t){return"string"==typeof e?(e!==this.model.root.toLatex()&&(t=null!=t?t:{mode:"math"},va(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),sa(this)),e):this.model.root.toLatex()}$el(){return this.element}scrollIntoView(){var e;this.dirty&&na(this);let t=null===(e=Di(this.field))||void 0===e?void 0:e.x;const i=this.field.getBoundingClientRect();if(void 0===t){const e=Ti(this.field);null!==e&&(t=e.right+i.left-this.field.scrollLeft)}if(void 0!==t){const e=t-window.scrollX;ei.right&&this.field.scroll({top:0,left:e-i.right+this.field.scrollLeft+20,behavior:"smooth"})}}$insert(e,t){return this.insert(e,t)}insert(e,t){if("string"==typeof e&&e.length>0){if((t=null!=t?t:{mode:"math"}).focus&&this.focus(),t.feedback&&(this.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),this.keypressSound&&(this.keypressSound.load(),this.keypressSound.play())),"\\\\"===e)ua(this.model);else if("&"===e)ha(this.model);else{const i=this.style;va(this.model,e,{mode:this.mode,style:Ht(this.model),...t}),t.resetStyle&&(this.style=i)}return this.undoManager.snapshot(this.options),sa(this),!0}return!1}switchMode(e,t="",i=""){this.resetKeystrokeBuffer(),this.smartModeSuppressed=/text|math/.test(this.mode)&&/text|math/.test(e),t&&this.insert(t,{format:"latex",mode:{math:"text",text:"math"}[e]}),Ri(this.model,!1),"command"===e?(pt(this.model),Fi(this),this.suggestionIndex=0,this.virtualKeyboardVisible&&zo(this,"lower-command"),va(this.model,"",{mode:"math"})):this.mode=e,i&&this.insert(i,{format:"latex",mode:e}),"function"==typeof this.options.onModeChange&&this.options.onModeChange(this,this.mode),sa(this)}$hasFocus(){return this.hasFocus()}hasFocus(){return document.hasFocus()&&function e(t=document){var i,a;return(null===(a=null===(i=t.activeElement)||void 0===i?void 0:i.shadowRoot)||void 0===a?void 0:a.activeElement)?e(t.activeElement.shadowRoot):t.activeElement}(document)===this.textarea}focus(){this.hasFocus()||("function"==typeof this.textarea.focus&&this.textarea.focus(),this.model.announce("line"))}blur(){this.hasFocus()&&"function"==typeof this.textarea.blur&&this.textarea.blur()}$focus(){return this.focus()}$blur(){return this.blur()}$select(){ai(this.model)}select(){ai(this.model)}$clearSelection(){ga(this.model)}applyStyle(e){ya(this.model,e)}$applyStyle(e){ya(this.model,e)}$keystroke(e,t){return oo(this,e,t)}$typedText(e){ro(this,e)}getCaretPosition(){const e=Di(this.field);return e?{x:e.x,y:e.y}:null}setCaretPosition(e,t){const i=this.model.clone(),a=po(this,e,t,{bias:0}),o=Rt(this.model,a,0);return this.model.announce("move",i),sa(this),o}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(){this.undoManager.snapshot({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}snapshotAndCoalesce(){this.undoManager.snapshotAndCoalesce({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}getUndoRecord(){return this.undoManager.save()}restoreToUndoRecord(e){this.undoManager.restore(e,{...this.options,suppressChangeNotifications:!0})}undo(){return this.undoManager.undo({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}redo(){return this.undoManager.redo({...this.options,onUndoStateDidChange:(e,t)=>{Mo(this),this.options.onUndoStateDidChange(e,t)}})}}function vr(e,t,i){let a=i,o=0;const r=e.length;for(;a0&&o.push({type:"text",data:s.slice(0,c)}),l=!1);let d=!1;for(;!d;){if(l){if(n=s.indexOf(t,c),-1===n){d=!0;break}c!==n&&o.push({type:"text",data:s.slice(c,n)}),c=n}else{if(n=vr(i,s,c+t.length),-1===n){d=!0;break}o.push({type:"math",data:s.slice(c+t.length,n),rawData:s.slice(c,n+i.length),mathstyle:a}),c=n+i.length}l=!l}c";i.innerHTML=t.createHTML?t.createHTML(a):a}catch(t){i.textContent=e}return i.className="ML__sr-only",i}(e,i)),/\bspeakable-text\b/i.test(i.renderAccessibleContent)&&i.renderToSpeakableText){const a=document.createElement("span"),o=i.renderToSpeakableText(e,i);a.innerHTML=i.createHTML?i.createHTML(o):o,a.className="ML__sr-only",t.appendChild(a)}return t.appendChild(o),t}return o}function wr(e,t){let i=null;if(t.TeX.processEnvironments&&/^\s*\\begin/.test(e))i=document.createDocumentFragment(),i.appendChild(_r(e,void 0,t,!0));else{if(!e.trim())return null;const a=kr(e,t.TeX.delimiters);if(1===a.length&&"text"===a[0].type)return null;i=document.createDocumentFragment();for(let e=0;e0?zr(e[t].children,i):e[t];if("string"==typeof t){for(let o=0;o0?zr(e[o].children,i):e[o];if(a=zr(e[o].children,t),a)return a}return a}return null}function Sr(e,t){var i;const a=zr(e,t);return a?null!==(i=a.classes)&&void 0!==i?i:"":null}function Lr(e,t){let i="";return e[t]&&(i+=''+t+"=",i+='',i+=e[t],i+='" '),i}var Ar={mathlistToMarkup:function e(t,i=""){if(!t)return"";let a="";if(Array.isArray(t))for(let o=0;o"),"string"==typeof t.body&&t.body.length>0&&(a+=' ',a+=t.body,(t.body.charCodeAt(0)<32||t.body.charCodeAt(0)>127)&&(a+=" U+"+("000000"+t.body.charCodeAt(0).toString(16)).substr(-6)),a+=" "),"mathrm"===t.fontFamily?(a+='',a+=Lr(t,"fontFamily"),a+=""):a+=Lr(t,"fontFamily"),a+=Lr(t,"hasBarLine"),a+=Lr(t,"leftDelim"),a+=Lr(t,"rightDelim"),a+=Lr(t,"continuousFraction"),a+=Lr(t,"limits"),a+=Lr(t,"symbol"),a+=function(e,t){let i="";return e[t]&&(i+='framecolor=',i+='',i+='',i+=e[t],i+=""),i}(t,"framecolor"),a+=Lr(t,"mathstyle"),a+=Lr(t,"size"),a+=Lr(t,"cls"),a+=Lr(t,"delim"),a+=Lr(t,"shift"),a+=Lr(t,"width"),a+=Lr(t,"height"),a+=Lr(t,"position"),a+=e(t.overscript,i+"↑"),a+=e(t.underscript,i+"↓"),a+=e(t.superscript,i+"↑"),a+=e(t.subscript,i+"↓"),a+=e(t.body,i+"▶"),a+=e(t.numer,i+"▲"),a+=e(t.denom,i+"▼"),t.array)for(let o=0;o"+i+"⌗ row "+(o+1)+"/"+t.array.length;for(let r=0;r"),t.body&&t.body.length>0&&(a+=''+t.body+""),t.classes&&t.classes.length>0&&(a+=' '+t.classes+""),t.isTight&&(a+='  tight '),t.caret&&(a+='  caret '),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=' '+e+":",a+=' '+t.style[e]+"; ");t.children&&(a+=t.children.map(t=>e(t,i+"▷")).join("; "))}return a},spanToString:function e(t,i=""){let a="";if(Array.isArray(t))if(0===t.length)a+="[]\n";else{a+="[\n";for(let o=0;o0&&(a+=i+'body:"'+t.body+'",\n'),t.classes&&t.classes.length>0&&(a+=i+'classes:"'+t.classes+'",\n'),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=i+e+':"',a+=t.style[e]+'",\n');t.children&&t.children.length>0&&(a+=i+"children:"+t.children.map(t=>e(t,i)).join("; ")),a+=i+"}"}return a},hasClass:function(e,t,i){const a=Sr(e,t);if(!a)return!1;const o=a.split(" ");for(let e=0;e{if(e)return;if(!t||!t.AudioStream)return;const i=new TextDecoder("utf-8").decode(new Uint8Array(t.AudioStream));window.mathlive.readAloudMarks=i.split("\n").map(e=>e?JSON.parse(e):{}),window.mathlive.readAloudTokens=[];for(const e of window.mathlive.readAloudMarks)e.value&&window.mathlive.readAloudTokens.push(e.value);window.mathlive.readAloudCurrentMark="",r.OutputFormat="mp3",r.SpeechMarkTypes=[],o.synthesizeSpeech(r,(function(e,t){if(e)return;if(!t||!t.AudioStream)return;const i=new Uint8Array(t.AudioStream),a=new Blob([i.buffer],{type:"audio/mpeg"}),o=URL.createObjectURL(a);window.mathlive.readAloudAudio?window.mathlive.readAloudAudio.pause():(window.mathlive.readAloudAudio=new Audio,window.mathlive.readAloudAudio.addEventListener("ended",()=>{const e=window.mathlive.readAloudMathField;s&&s(e,"ended"),e?(na(e),window.mathlive.readAloudElement=null,window.mathlive.readAloudMathField=null,window.mathlive.readAloudTokens=[],window.mathlive.readAloudMarks=[],window.mathlive.readAloudCurrentMark=""):function e(t){if(t.classList.remove("ML__highlight"),t.children)for(const i of t.children)e(i)}(window.mathlive.readAloudElement)}),window.mathlive.readAloudAudio.addEventListener("timeupdate",()=>{let e="";const t=1e3*window.mathlive.readAloudAudio.currentTime+100;for(const i of window.mathlive.readAloudMarks)i.time0&&Array.from(t.children).forEach(t=>{e(t,i)})):(t.classList.add("ML__highlight"),t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{e(t)}))}(window.mathlive.readAloudElement,window.mathlive.readAloudCurrentMark)))})),window.mathlive.readAloudAudio.src=o,s&&s(window.mathlive.readAloudMathField,"playing"),window.mathlive.readAloudAudio.play()}))})}const $r=1200,qr=3e3,Dr=4e3;function Tr(e,t,i=3e3,a="$0"){t.forEach(t=>{F[t]&&(F[t].frequency=i,F[t].category=e,F[t].template=a.replace(/\$0/g,t)),R[t]&&(R[t]={...R[t],frequency:i,category:e,template:a.replace(/\$0/g,t)})})} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/dist/mathlive.min.mjs b/dist/mathlive.min.mjs index 879d7f27c..71df61ad9 100644 --- a/dist/mathlive.min.mjs +++ b/dist/mathlive.min.mjs @@ -1,5 +1,5 @@ /* MathLive 0.57.0 */ -function e(e){return Array.isArray(e)}var t={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0],58:[0,.47534,0,0],59:[.12604,.47534,0,0],61:[-.13099,.36866,0,0],63:[0,.69141,0,0],65:[0,.69141,0,0],66:[0,.69141,0,0],67:[0,.69141,0,0],68:[0,.69141,0,0],69:[0,.69141,0,0],70:[.12604,.69141,0,0],71:[0,.69141,0,0],72:[.06302,.69141,0,0],73:[0,.69141,0,0],74:[.12604,.69141,0,0],75:[0,.69141,0,0],76:[0,.69141,0,0],77:[0,.69141,0,0],78:[0,.69141,0,0],79:[0,.69141,0,0],80:[.18906,.69141,0,0],81:[.03781,.69141,0,0],82:[0,.69141,0,0],83:[0,.69141,0,0],84:[0,.69141,0,0],85:[0,.69141,0,0],86:[0,.69141,0,0],87:[0,.69141,0,0],88:[0,.69141,0,0],89:[.18906,.69141,0,0],90:[.12604,.69141,0,0],91:[.24982,.74947,0,0],93:[.24982,.74947,0,0],94:[0,.69141,0,0],97:[0,.47534,0,0],98:[0,.69141,0,0],99:[0,.47534,0,0],100:[0,.62119,0,0],101:[0,.47534,0,0],102:[.18906,.69141,0,0],103:[.18906,.47534,0,0],104:[.18906,.69141,0,0],105:[0,.69141,0,0],106:[0,.69141,0,0],107:[0,.69141,0,0],108:[0,.69141,0,0],109:[0,.47534,0,0],110:[0,.47534,0,0],111:[0,.47534,0,0],112:[.18906,.52396,0,0],113:[.18906,.47534,0,0],114:[0,.47534,0,0],115:[0,.47534,0,0],116:[0,.62119,0,0],117:[0,.47534,0,0],118:[0,.52396,0,0],119:[0,.52396,0,0],120:[.18906,.47534,0,0],121:[.18906,.47534,0,0],122:[.18906,.47534,0,0],8216:[0,.69141,0,0],8217:[0,.69141,0,0],58112:[0,.62119,0,0],58113:[0,.62119,0,0],58114:[.18906,.69141,0,0],58115:[.18906,.69141,0,0],58116:[.18906,.47534,0,0],58117:[0,.69141,0,0],58118:[0,.62119,0,0],58119:[0,.47534,0,0]},"Main-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.13333,.63333,0,0],44:[.19444,.15556,0,0],45:[0,.44444,0,0],46:[0,.15556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.44444,0,0],59:[.19444,.44444,0,0],60:[.08556,.58556,0,0],61:[-.10889,.39111,0,0],62:[.08556,.58556,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,0,0],67:[0,.68611,0,0],68:[0,.68611,0,0],69:[0,.68611,0,0],70:[0,.68611,0,0],71:[0,.68611,0,0],72:[0,.68611,0,0],73:[0,.68611,0,0],74:[0,.68611,0,0],75:[0,.68611,0,0],76:[0,.68611,0,0],77:[0,.68611,0,0],78:[0,.68611,0,0],79:[0,.68611,0,0],80:[0,.68611,0,0],81:[.19444,.68611,0,0],82:[0,.68611,0,0],83:[0,.68611,0,0],84:[0,.68611,0,0],85:[0,.68611,0,0],86:[0,.68611,.01597,0],87:[0,.68611,.01597,0],88:[0,.68611,0,0],89:[0,.68611,.02875,0],90:[0,.68611,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.13444,.03194,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.10903,0],103:[.19444,.44444,.01597,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,0,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.01597,0],119:[0,.44444,.01597,0],120:[0,.44444,0,0],121:[.19444,.44444,.01597,0],122:[0,.44444,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],172:[0,.44444,0,0],176:[0,.69444,0,0],177:[.13333,.63333,0,0],184:[.17014,0,0,0],198:[0,.68611,0,0],215:[.13333,.63333,0,0],216:[.04861,.73472,0,0],223:[0,.69444,0,0],230:[0,.44444,0,0],247:[.13333,.63333,0,0],248:[.09722,.54167,0,0],305:[0,.44444,0,0],338:[0,.68611,0,0],339:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.59611,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.68611,0,0],916:[0,.68611,0,0],920:[0,.68611,0,0],923:[0,.68611,0,0],926:[0,.68611,0,0],928:[0,.68611,0,0],931:[0,.68611,0,0],933:[0,.68611,0,0],934:[0,.68611,0,0],936:[0,.68611,0,0],937:[0,.68611,0,0],8211:[0,.44444,.03194,0],8212:[0,.44444,.03194,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8242:[0,.55556,0,0],8407:[0,.72444,.15486,0],8463:[0,.69444,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,0],8472:[.19444,.44444,0,0],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.10889,.39111,0,0],8593:[.19444,.69444,0,0],8594:[-.10889,.39111,0,0],8595:[.19444,.69444,0,0],8596:[-.10889,.39111,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8636:[-.10889,.39111,0,0],8637:[-.10889,.39111,0,0],8640:[-.10889,.39111,0,0],8641:[-.10889,.39111,0,0],8656:[-.10889,.39111,0,0],8657:[.19444,.69444,0,0],8658:[-.10889,.39111,0,0],8659:[.19444,.69444,0,0],8660:[-.10889,.39111,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.06389,0],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68611,0,0],8712:[.08556,.58556,0,0],8715:[.08556,.58556,0,0],8722:[.13333,.63333,0,0],8723:[.13333,.63333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.02778,.47222,0,0],8728:[-.02639,.47361,0,0],8729:[-.02639,.47361,0,0],8730:[.18,.82,0,0],8733:[0,.44444,0,0],8734:[0,.44444,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.12778,0],8764:[-.10889,.39111,0,0],8768:[.19444,.69444,0,0],8771:[.00222,.50222,0,0],8776:[.02444,.52444,0,0],8781:[.00222,.50222,0,0],8801:[.00222,.50222,0,0],8804:[.19667,.69667,0,0],8805:[.19667,.69667,0,0],8810:[.08556,.58556,0,0],8811:[.08556,.58556,0,0],8826:[.08556,.58556,0,0],8827:[.08556,.58556,0,0],8834:[.08556,.58556,0,0],8835:[.08556,.58556,0,0],8838:[.19667,.69667,0,0],8839:[.19667,.69667,0,0],8846:[0,.55556,0,0],8849:[.19667,.69667,0,0],8850:[.19667,.69667,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.13333,.63333,0,0],8854:[.13333,.63333,0,0],8855:[.13333,.63333,0,0],8856:[.13333,.63333,0,0],8857:[.13333,.63333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8900:[-.02639,.47361,0,0],8901:[-.02639,.47361,0,0],8902:[-.02778,.47222,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.13889,.36111,0,0],8995:[-.13889,.36111,0,0],9651:[.19444,.69444,0,0],9657:[-.02778,.47222,0,0],9661:[.19444,.69444,0,0],9667:[-.02778,.47222,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10815:[0,.68611,0,0],10927:[.19667,.69667,0,0],10928:[.19667,.69667,0,0],57376:[.19444,.69444,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0],34:[0,.69444,.07939,0],35:[.19444,.69444,.06833,0],37:[.05556,.75,.12861,0],38:[0,.69444,.08528,0],39:[0,.69444,.12945,0],40:[.25,.75,.15806,0],41:[.25,.75,.03306,0],42:[0,.75,.14333,0],43:[.10333,.60333,.03306,0],44:[.19444,.14722,0,0],45:[0,.44444,.02611,0],46:[0,.14722,0,0],47:[.25,.75,.15806,0],48:[0,.64444,.13167,0],49:[0,.64444,.13167,0],50:[0,.64444,.13167,0],51:[0,.64444,.13167,0],52:[.19444,.64444,.13167,0],53:[0,.64444,.13167,0],54:[0,.64444,.13167,0],55:[.19444,.64444,.13167,0],56:[0,.64444,.13167,0],57:[0,.64444,.13167,0],58:[0,.44444,.06695,0],59:[.19444,.44444,.06695,0],61:[-.10889,.39111,.06833,0],63:[0,.69444,.11472,0],64:[0,.69444,.09208,0],65:[0,.68611,0,0],66:[0,.68611,.0992,0],67:[0,.68611,.14208,0],68:[0,.68611,.09062,0],69:[0,.68611,.11431,0],70:[0,.68611,.12903,0],71:[0,.68611,.07347,0],72:[0,.68611,.17208,0],73:[0,.68611,.15681,0],74:[0,.68611,.145,0],75:[0,.68611,.14208,0],76:[0,.68611,0,0],77:[0,.68611,.17208,0],78:[0,.68611,.17208,0],79:[0,.68611,.09062,0],80:[0,.68611,.0992,0],81:[.19444,.68611,.09062,0],82:[0,.68611,.02559,0],83:[0,.68611,.11264,0],84:[0,.68611,.12903,0],85:[0,.68611,.17208,0],86:[0,.68611,.18625,0],87:[0,.68611,.18625,0],88:[0,.68611,.15681,0],89:[0,.68611,.19803,0],90:[0,.68611,.14208,0],91:[.25,.75,.1875,0],93:[.25,.75,.09972,0],94:[0,.69444,.06709,0],95:[.31,.13444,.09811,0],97:[0,.44444,.09426,0],98:[0,.69444,.07861,0],99:[0,.44444,.05222,0],100:[0,.69444,.10861,0],101:[0,.44444,.085,0],102:[.19444,.69444,.21778,0],103:[.19444,.44444,.105,0],104:[0,.69444,.09426,0],105:[0,.69326,.11387,0],106:[.19444,.69326,.1672,0],107:[0,.69444,.11111,0],108:[0,.69444,.10861,0],109:[0,.44444,.09426,0],110:[0,.44444,.09426,0],111:[0,.44444,.07861,0],112:[.19444,.44444,.07861,0],113:[.19444,.44444,.105,0],114:[0,.44444,.11111,0],115:[0,.44444,.08167,0],116:[0,.63492,.09639,0],117:[0,.44444,.09426,0],118:[0,.44444,.11111,0],119:[0,.44444,.11111,0],120:[0,.44444,.12583,0],121:[.19444,.44444,.105,0],122:[0,.44444,.13889,0],126:[.35,.34444,.11472,0],163:[0,.69444,0,0],168:[0,.69444,.11473,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68611,.11431,0],216:[.04861,.73472,.09062,0],223:[.19444,.69444,.09736,0],230:[0,.44444,.085,0],248:[.09722,.54167,.09458,0],305:[0,.44444,.09426,0],338:[0,.68611,.11431,0],339:[0,.44444,.085,0],567:[.19444,.44444,.04611,0],710:[0,.69444,.06709,0],711:[0,.63194,.08271,0],713:[0,.59444,.10444,0],714:[0,.69444,.08528,0],715:[0,.69444,0,0],728:[0,.69444,.10333,0],729:[0,.69444,.12945,0],730:[0,.69444,0,0],732:[0,.69444,.11472,0],733:[0,.69444,.11472,0],915:[0,.68611,.12903,0],916:[0,.68611,0,0],920:[0,.68611,.09062,0],923:[0,.68611,0,0],926:[0,.68611,.15092,0],928:[0,.68611,.17208,0],931:[0,.68611,.11431,0],933:[0,.68611,.10778,0],934:[0,.68611,.05632,0],936:[0,.68611,.10778,0],937:[0,.68611,.0992,0],8211:[0,.44444,.09811,0],8212:[0,.44444,.09811,0],8216:[0,.69444,.12945,0],8217:[0,.69444,.12945,0],8220:[0,.69444,.16772,0],8221:[0,.69444,.07939,0]},"Main-Italic":{33:[0,.69444,.12417,0],34:[0,.69444,.06961,0],35:[.19444,.69444,.06616,0],37:[.05556,.75,.13639,0],38:[0,.69444,.09694,0],39:[0,.69444,.12417,0],40:[.25,.75,.16194,0],41:[.25,.75,.03694,0],42:[0,.75,.14917,0],43:[.05667,.56167,.03694,0],44:[.19444,.10556,0,0],45:[0,.43056,.02826,0],46:[0,.10556,0,0],47:[.25,.75,.16194,0],48:[0,.64444,.13556,0],49:[0,.64444,.13556,0],50:[0,.64444,.13556,0],51:[0,.64444,.13556,0],52:[.19444,.64444,.13556,0],53:[0,.64444,.13556,0],54:[0,.64444,.13556,0],55:[.19444,.64444,.13556,0],56:[0,.64444,.13556,0],57:[0,.64444,.13556,0],58:[0,.43056,.0582,0],59:[.19444,.43056,.0582,0],61:[-.13313,.36687,.06616,0],63:[0,.69444,.1225,0],64:[0,.69444,.09597,0],65:[0,.68333,0,0],66:[0,.68333,.10257,0],67:[0,.68333,.14528,0],68:[0,.68333,.09403,0],69:[0,.68333,.12028,0],70:[0,.68333,.13305,0],71:[0,.68333,.08722,0],72:[0,.68333,.16389,0],73:[0,.68333,.15806,0],74:[0,.68333,.14028,0],75:[0,.68333,.14528,0],76:[0,.68333,0,0],77:[0,.68333,.16389,0],78:[0,.68333,.16389,0],79:[0,.68333,.09403,0],80:[0,.68333,.10257,0],81:[.19444,.68333,.09403,0],82:[0,.68333,.03868,0],83:[0,.68333,.11972,0],84:[0,.68333,.13305,0],85:[0,.68333,.16389,0],86:[0,.68333,.18361,0],87:[0,.68333,.18361,0],88:[0,.68333,.15806,0],89:[0,.68333,.19383,0],90:[0,.68333,.14528,0],91:[.25,.75,.1875,0],93:[.25,.75,.10528,0],94:[0,.69444,.06646,0],95:[.31,.12056,.09208,0],97:[0,.43056,.07671,0],98:[0,.69444,.06312,0],99:[0,.43056,.05653,0],100:[0,.69444,.10333,0],101:[0,.43056,.07514,0],102:[.19444,.69444,.21194,0],103:[.19444,.43056,.08847,0],104:[0,.69444,.07671,0],105:[0,.65536,.1019,0],106:[.19444,.65536,.14467,0],107:[0,.69444,.10764,0],108:[0,.69444,.10333,0],109:[0,.43056,.07671,0],110:[0,.43056,.07671,0],111:[0,.43056,.06312,0],112:[.19444,.43056,.06312,0],113:[.19444,.43056,.08847,0],114:[0,.43056,.10764,0],115:[0,.43056,.08208,0],116:[0,.61508,.09486,0],117:[0,.43056,.07671,0],118:[0,.43056,.10764,0],119:[0,.43056,.10764,0],120:[0,.43056,.12042,0],121:[.19444,.43056,.08847,0],122:[0,.43056,.12292,0],126:[.35,.31786,.11585,0],163:[0,.69444,0,0],168:[0,.66786,.10474,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,.12028,0],216:[.04861,.73194,.09403,0],223:[.19444,.69444,.10514,0],230:[0,.43056,.07514,0],248:[.09722,.52778,.09194,0],305:[0,.43056,0,.02778],338:[0,.68333,.12028,0],339:[0,.43056,.07514,0],567:[.19444,.43056,0,.08334],710:[0,.69444,.06646,0],711:[0,.62847,.08295,0],713:[0,.56167,.10333,0],714:[0,.69444,.09694,0],715:[0,.69444,0,0],728:[0,.69444,.10806,0],729:[0,.66786,.11752,0],730:[0,.69444,0,0],732:[0,.66786,.11585,0],733:[0,.69444,.1225,0],915:[0,.68333,.13305,0],916:[0,.68333,0,0],920:[0,.68333,.09403,0],923:[0,.68333,0,0],926:[0,.68333,.15294,0],928:[0,.68333,.16389,0],931:[0,.68333,.12028,0],933:[0,.68333,.11111,0],934:[0,.68333,.05986,0],936:[0,.68333,.11111,0],937:[0,.68333,.10257,0],8211:[0,.43056,.09208,0],8212:[0,.43056,.09208,0],8216:[0,.69444,.12417,0],8217:[0,.69444,.12417,0],8220:[0,.69444,.1685,0],8221:[0,.69444,.06961,0],8463:[0,.68889,0,0]},"Main-Regular":{32:[0,0,0,0],33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.19444,.10556,0,0],45:[0,.43056,0,0],46:[0,.10556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.43056,0,0],59:[.19444,.43056,0,0],60:[.0391,.5391,0,0],61:[-.13313,.36687,0,0],62:[.0391,.5391,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68333,0,0],66:[0,.68333,0,0],67:[0,.68333,0,0],68:[0,.68333,0,0],69:[0,.68333,0,0],70:[0,.68333,0,0],71:[0,.68333,0,0],72:[0,.68333,0,0],73:[0,.68333,0,0],74:[0,.68333,0,0],75:[0,.68333,0,0],76:[0,.68333,0,0],77:[0,.68333,0,0],78:[0,.68333,0,0],79:[0,.68333,0,0],80:[0,.68333,0,0],81:[.19444,.68333,0,0],82:[0,.68333,0,0],83:[0,.68333,0,0],84:[0,.68333,0,0],85:[0,.68333,0,0],86:[0,.68333,.01389,0],87:[0,.68333,.01389,0],88:[0,.68333,0,0],89:[0,.68333,.025,0],90:[0,.68333,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.12056,.02778,0],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,0],100:[0,.69444,0,0],101:[0,.43056,0,0],102:[0,.69444,.07778,0],103:[.19444,.43056,.01389,0],104:[0,.69444,0,0],105:[0,.66786,0,0],106:[.19444,.66786,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.19444,.43056,0,0],113:[.19444,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.61508,0,0],117:[0,.43056,0,0],118:[0,.43056,.01389,0],119:[0,.43056,.01389,0],120:[0,.43056,0,0],121:[.19444,.43056,.01389,0],122:[0,.43056,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.31786,0,0],160:[0,0,0,0],167:[.19444,.69444,0,0],168:[0,.66786,0,0],172:[0,.43056,0,0],176:[0,.69444,0,0],177:[.08333,.58333,0,0],182:[.19444,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,0,0],215:[.08333,.58333,0,0],216:[.04861,.73194,0,0],223:[0,.69444,0,0],230:[0,.43056,0,0],247:[.08333,.58333,0,0],248:[.09722,.52778,0,0],305:[0,.43056,0,0],338:[0,.68333,0,0],339:[0,.43056,0,0],567:[.19444,.43056,0,0],710:[0,.69444,0,0],711:[0,.62847,0,0],713:[0,.56778,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.66786,0,0],730:[0,.69444,0,0],732:[0,.66786,0,0],733:[0,.69444,0,0],915:[0,.68333,0,0],916:[0,.68333,0,0],920:[0,.68333,0,0],923:[0,.68333,0,0],926:[0,.68333,0,0],928:[0,.68333,0,0],931:[0,.68333,0,0],933:[0,.68333,0,0],934:[0,.68333,0,0],936:[0,.68333,0,0],937:[0,.68333,0,0],8211:[0,.43056,.02778,0],8212:[0,.43056,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8230:[0,.12,0,0],8242:[0,.55556,0,0],8407:[0,.71444,.15382,0],8463:[0,.68889,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,.11111],8472:[.19444,.43056,0,.11111],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.13313,.36687,0,0],8593:[.19444,.69444,0,0],8594:[-.13313,.36687,0,0],8595:[.19444,.69444,0,0],8596:[-.13313,.36687,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8614:[.011,.511,0,0],8617:[.011,.511,0,0],8618:[.011,.511,0,0],8636:[-.13313,.36687,0,0],8637:[-.13313,.36687,0,0],8640:[-.13313,.36687,0,0],8641:[-.13313,.36687,0,0],8652:[.011,.671,0,0],8656:[-.13313,.36687,0,0],8657:[.19444,.69444,0,0],8658:[-.13313,.36687,0,0],8659:[.19444,.69444,0,0],8660:[-.13313,.36687,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.05556,.08334],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68333,0,0],8712:[.0391,.5391,0,0],8715:[.0391,.5391,0,0],8722:[.08333,.58333,0,0],8723:[.08333,.58333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.03472,.46528,0,0],8728:[-.05555,.44445,0,0],8729:[-.05555,.44445,0,0],8730:[.2,.8,0,0],8733:[0,.43056,0,0],8734:[0,.43056,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.11111,0],8764:[-.13313,.36687,0,0],8768:[.19444,.69444,0,0],8771:[-.03625,.46375,0,0],8773:[-.022,.589,0,0],8776:[-.01688,.48312,0,0],8781:[-.03625,.46375,0,0],8784:[-.133,.67,0,0],8801:[-.03625,.46375,0,0],8804:[.13597,.63597,0,0],8805:[.13597,.63597,0,0],8810:[.0391,.5391,0,0],8811:[.0391,.5391,0,0],8826:[.0391,.5391,0,0],8827:[.0391,.5391,0,0],8834:[.0391,.5391,0,0],8835:[.0391,.5391,0,0],8838:[.13597,.63597,0,0],8839:[.13597,.63597,0,0],8846:[0,.55556,0,0],8849:[.13597,.63597,0,0],8850:[.13597,.63597,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.08333,.58333,0,0],8854:[.08333,.58333,0,0],8855:[.08333,.58333,0,0],8856:[.08333,.58333,0,0],8857:[.08333,.58333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8872:[.249,.75,0,0],8900:[-.05555,.44445,0,0],8901:[-.05555,.44445,0,0],8902:[-.03472,.46528,0,0],8904:[.005,.505,0,0],8942:[.03,.9,0,0],8943:[-.19,.31,0,0],8945:[-.1,.82,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.14236,.35764,0,0],8995:[-.14236,.35764,0,0],9136:[.244,.744,0,0],9137:[.244,.744,0,0],9651:[.19444,.69444,0,0],9657:[-.03472,.46528,0,0],9661:[.19444,.69444,0,0],9667:[-.03472,.46528,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10222:[.244,.744,0,0],10223:[.244,.744,0,0],10229:[.011,.511,0,0],10230:[.011,.511,0,0],10231:[.011,.511,0,0],10232:[.024,.525,0,0],10233:[.024,.525,0,0],10234:[.024,.525,0,0],10236:[.011,.511,0,0],10815:[0,.68333,0,0],10927:[.13597,.63597,0,0],10928:[.13597,.63597,0,0],57376:[.19444,.69444,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0],66:[0,.68611,.04835,0],67:[0,.68611,.06979,0],68:[0,.68611,.03194,0],69:[0,.68611,.05451,0],70:[0,.68611,.15972,0],71:[0,.68611,0,0],72:[0,.68611,.08229,0],73:[0,.68611,.07778,0],74:[0,.68611,.10069,0],75:[0,.68611,.06979,0],76:[0,.68611,0,0],77:[0,.68611,.11424,0],78:[0,.68611,.11424,0],79:[0,.68611,.03194,0],80:[0,.68611,.15972,0],81:[.19444,.68611,0,0],82:[0,.68611,.00421,0],83:[0,.68611,.05382,0],84:[0,.68611,.15972,0],85:[0,.68611,.11424,0],86:[0,.68611,.25555,0],87:[0,.68611,.15972,0],88:[0,.68611,.07778,0],89:[0,.68611,.25555,0],90:[0,.68611,.06979,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[.19444,.69444,.11042,0],103:[.19444,.44444,.03704,0],104:[0,.69444,0,0],105:[0,.69326,0,0],106:[.19444,.69326,.0622,0],107:[0,.69444,.01852,0],108:[0,.69444,.0088,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,.03704,0],114:[0,.44444,.03194,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.03704,0],119:[0,.44444,.02778,0],120:[0,.44444,0,0],121:[.19444,.44444,.03704,0],122:[0,.44444,.04213,0],915:[0,.68611,.15972,0],916:[0,.68611,0,0],920:[0,.68611,.03194,0],923:[0,.68611,0,0],926:[0,.68611,.07458,0],928:[0,.68611,.08229,0],931:[0,.68611,.05451,0],933:[0,.68611,.15972,0],934:[0,.68611,0,0],936:[0,.68611,.11653,0],937:[0,.68611,.04835,0],945:[0,.44444,0,0],946:[.19444,.69444,.03403,0],947:[.19444,.44444,.06389,0],948:[0,.69444,.03819,0],949:[0,.44444,0,0],950:[.19444,.69444,.06215,0],951:[.19444,.44444,.03704,0],952:[0,.69444,.03194,0],953:[0,.44444,0,0],954:[0,.44444,0,0],955:[0,.69444,0,0],956:[.19444,.44444,0,0],957:[0,.44444,.06898,0],958:[.19444,.69444,.03021,0],959:[0,.44444,0,0],960:[0,.44444,.03704,0],961:[.19444,.44444,0,0],962:[.09722,.44444,.07917,0],963:[0,.44444,.03704,0],964:[0,.44444,.13472,0],965:[0,.44444,.03704,0],966:[.19444,.44444,0,0],967:[.19444,.44444,0,0],968:[.19444,.69444,.03704,0],969:[0,.44444,.03704,0],977:[0,.69444,0,0],981:[.19444,.69444,0,0],982:[0,.44444,.03194,0],1009:[.19444,.44444,0,0],1013:[0,.44444,0,0]},"Math-Italic":{65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"SansSerif-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.11667,.61667,0,0],44:[.10556,.13056,0,0],45:[0,.45833,0,0],46:[0,.13056,0,0],47:[.25,.75,0,0],48:[0,.69444,0,0],49:[0,.69444,0,0],50:[0,.69444,0,0],51:[0,.69444,0,0],52:[0,.69444,0,0],53:[0,.69444,0,0],54:[0,.69444,0,0],55:[0,.69444,0,0],56:[0,.69444,0,0],57:[0,.69444,0,0],58:[0,.45833,0,0],59:[.10556,.45833,0,0],61:[-.09375,.40625,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.10556,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01528,0],87:[0,.69444,.01528,0],88:[0,.69444,0,0],89:[0,.69444,.0275,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.10833,.03056,0],97:[0,.45833,0,0],98:[0,.69444,0,0],99:[0,.45833,0,0],100:[0,.69444,0,0],101:[0,.45833,0,0],102:[0,.69444,.07639,0],103:[.19444,.45833,.01528,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.45833,0,0],110:[0,.45833,0,0],111:[0,.45833,0,0],112:[.19444,.45833,0,0],113:[.19444,.45833,0,0],114:[0,.45833,.01528,0],115:[0,.45833,0,0],116:[0,.58929,0,0],117:[0,.45833,0,0],118:[0,.45833,.01528,0],119:[0,.45833,.01528,0],120:[0,.45833,0,0],121:[.19444,.45833,.01528,0],122:[0,.45833,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],176:[0,.69444,0,0],180:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.45833,0,0],567:[.19444,.45833,0,0],710:[0,.69444,0,0],711:[0,.63542,0,0],713:[0,.63778,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.45833,.03056,0],8212:[0,.45833,.03056,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"SansSerif-Italic":{33:[0,.69444,.05733,0],34:[0,.69444,.00316,0],35:[.19444,.69444,.05087,0],36:[.05556,.75,.11156,0],37:[.05556,.75,.03126,0],38:[0,.69444,.03058,0],39:[0,.69444,.07816,0],40:[.25,.75,.13164,0],41:[.25,.75,.02536,0],42:[0,.75,.11775,0],43:[.08333,.58333,.02536,0],44:[.125,.08333,0,0],45:[0,.44444,.01946,0],46:[0,.08333,0,0],47:[.25,.75,.13164,0],48:[0,.65556,.11156,0],49:[0,.65556,.11156,0],50:[0,.65556,.11156,0],51:[0,.65556,.11156,0],52:[0,.65556,.11156,0],53:[0,.65556,.11156,0],54:[0,.65556,.11156,0],55:[0,.65556,.11156,0],56:[0,.65556,.11156,0],57:[0,.65556,.11156,0],58:[0,.44444,.02502,0],59:[.125,.44444,.02502,0],61:[-.13,.37,.05087,0],63:[0,.69444,.11809,0],64:[0,.69444,.07555,0],65:[0,.69444,0,0],66:[0,.69444,.08293,0],67:[0,.69444,.11983,0],68:[0,.69444,.07555,0],69:[0,.69444,.11983,0],70:[0,.69444,.13372,0],71:[0,.69444,.11983,0],72:[0,.69444,.08094,0],73:[0,.69444,.13372,0],74:[0,.69444,.08094,0],75:[0,.69444,.11983,0],76:[0,.69444,0,0],77:[0,.69444,.08094,0],78:[0,.69444,.08094,0],79:[0,.69444,.07555,0],80:[0,.69444,.08293,0],81:[.125,.69444,.07555,0],82:[0,.69444,.08293,0],83:[0,.69444,.09205,0],84:[0,.69444,.13372,0],85:[0,.69444,.08094,0],86:[0,.69444,.1615,0],87:[0,.69444,.1615,0],88:[0,.69444,.13372,0],89:[0,.69444,.17261,0],90:[0,.69444,.11983,0],91:[.25,.75,.15942,0],93:[.25,.75,.08719,0],94:[0,.69444,.0799,0],95:[.35,.09444,.08616,0],97:[0,.44444,.00981,0],98:[0,.69444,.03057,0],99:[0,.44444,.08336,0],100:[0,.69444,.09483,0],101:[0,.44444,.06778,0],102:[0,.69444,.21705,0],103:[.19444,.44444,.10836,0],104:[0,.69444,.01778,0],105:[0,.67937,.09718,0],106:[.19444,.67937,.09162,0],107:[0,.69444,.08336,0],108:[0,.69444,.09483,0],109:[0,.44444,.01778,0],110:[0,.44444,.01778,0],111:[0,.44444,.06613,0],112:[.19444,.44444,.0389,0],113:[.19444,.44444,.04169,0],114:[0,.44444,.10836,0],115:[0,.44444,.0778,0],116:[0,.57143,.07225,0],117:[0,.44444,.04169,0],118:[0,.44444,.10836,0],119:[0,.44444,.10836,0],120:[0,.44444,.09169,0],121:[.19444,.44444,.10836,0],122:[0,.44444,.08752,0],126:[.35,.32659,.08826,0],168:[0,.67937,.06385,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,.04169,0],567:[.19444,.44444,.04169,0],710:[0,.69444,.0799,0],711:[0,.63194,.08432,0],713:[0,.60889,.08776,0],714:[0,.69444,.09205,0],715:[0,.69444,0,0],728:[0,.69444,.09483,0],729:[0,.67937,.07774,0],730:[0,.69444,0,0],732:[0,.67659,.08826,0],733:[0,.69444,.09205,0],915:[0,.69444,.13372,0],916:[0,.69444,0,0],920:[0,.69444,.07555,0],923:[0,.69444,0,0],926:[0,.69444,.12816,0],928:[0,.69444,.08094,0],931:[0,.69444,.11983,0],933:[0,.69444,.09031,0],934:[0,.69444,.04603,0],936:[0,.69444,.09031,0],937:[0,.69444,.08293,0],8211:[0,.44444,.08616,0],8212:[0,.44444,.08616,0],8216:[0,.69444,.07816,0],8217:[0,.69444,.07816,0],8220:[0,.69444,.14205,0],8221:[0,.69444,.00316,0]},"SansSerif-Regular":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.125,.08333,0,0],45:[0,.44444,0,0],46:[0,.08333,0,0],47:[.25,.75,0,0],48:[0,.65556,0,0],49:[0,.65556,0,0],50:[0,.65556,0,0],51:[0,.65556,0,0],52:[0,.65556,0,0],53:[0,.65556,0,0],54:[0,.65556,0,0],55:[0,.65556,0,0],56:[0,.65556,0,0],57:[0,.65556,0,0],58:[0,.44444,0,0],59:[.125,.44444,0,0],61:[-.13,.37,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.125,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01389,0],87:[0,.69444,.01389,0],88:[0,.69444,0,0],89:[0,.69444,.025,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.09444,.02778,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.06944,0],103:[.19444,.44444,.01389,0],104:[0,.69444,0,0],105:[0,.67937,0,0],106:[.19444,.67937,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,.01389,0],115:[0,.44444,0,0],116:[0,.57143,0,0],117:[0,.44444,0,0],118:[0,.44444,.01389,0],119:[0,.44444,.01389,0],120:[0,.44444,0,0],121:[.19444,.44444,.01389,0],122:[0,.44444,0,0],126:[.35,.32659,0,0],168:[0,.67937,0,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.60889,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.67937,0,0],730:[0,.69444,0,0],732:[0,.67659,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.44444,.02778,0],8212:[0,.44444,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"Script-Regular":{65:[0,.7,.22925,0],66:[0,.7,.04087,0],67:[0,.7,.1689,0],68:[0,.7,.09371,0],69:[0,.7,.18583,0],70:[0,.7,.13634,0],71:[0,.7,.17322,0],72:[0,.7,.29694,0],73:[0,.7,.19189,0],74:[.27778,.7,.19189,0],75:[0,.7,.31259,0],76:[0,.7,.19189,0],77:[0,.7,.15981,0],78:[0,.7,.3525,0],79:[0,.7,.08078,0],80:[0,.7,.08078,0],81:[0,.7,.03305,0],82:[0,.7,.06259,0],83:[0,.7,.19189,0],84:[0,.7,.29087,0],85:[0,.7,.25815,0],86:[0,.7,.27523,0],87:[0,.7,.27523,0],88:[0,.7,.26006,0],89:[0,.7,.2939,0],90:[0,.7,.24037,0]},"Size1-Regular":{40:[.35001,.85,0,0],41:[.35001,.85,0,0],47:[.35001,.85,0,0],91:[.35001,.85,0,0],92:[.35001,.85,0,0],93:[.35001,.85,0,0],123:[.35001,.85,0,0],125:[.35001,.85,0,0],710:[0,.72222,0,0],732:[0,.72222,0,0],770:[0,.72222,0,0],771:[0,.72222,0,0],8214:[-99e-5,.601,0,0],8593:[1e-5,.6,0,0],8595:[1e-5,.6,0,0],8657:[1e-5,.6,0,0],8659:[1e-5,.6,0,0],8719:[.25001,.75,0,0],8720:[.25001,.75,0,0],8721:[.25001,.75,0,0],8730:[.35001,.85,0,0],8739:[-.00599,.606,0,0],8741:[-.00599,.606,0,0],8747:[.30612,.805,.19445,0],8748:[.306,.805,.19445,0],8749:[.306,.805,.19445,0],8750:[.30612,.805,.19445,0],8896:[.25001,.75,0,0],8897:[.25001,.75,0,0],8898:[.25001,.75,0,0],8899:[.25001,.75,0,0],8968:[.35001,.85,0,0],8969:[.35001,.85,0,0],8970:[.35001,.85,0,0],8971:[.35001,.85,0,0],9168:[-99e-5,.601,0,0],10216:[.35001,.85,0,0],10217:[.35001,.85,0,0],10752:[.25001,.75,0,0],10753:[.25001,.75,0,0],10754:[.25001,.75,0,0],10756:[.25001,.75,0,0],10758:[.25001,.75,0,0]},"Size2-Regular":{40:[.65002,1.15,0,0],41:[.65002,1.15,0,0],47:[.65002,1.15,0,0],91:[.65002,1.15,0,0],92:[.65002,1.15,0,0],93:[.65002,1.15,0,0],123:[.65002,1.15,0,0],125:[.65002,1.15,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8719:[.55001,1.05,0,0],8720:[.55001,1.05,0,0],8721:[.55001,1.05,0,0],8730:[.65002,1.15,0,0],8747:[.86225,1.36,.44445,0],8748:[.862,1.36,.44445,0],8749:[.862,1.36,.44445,0],8750:[.86225,1.36,.44445,0],8896:[.55001,1.05,0,0],8897:[.55001,1.05,0,0],8898:[.55001,1.05,0,0],8899:[.55001,1.05,0,0],8968:[.65002,1.15,0,0],8969:[.65002,1.15,0,0],8970:[.65002,1.15,0,0],8971:[.65002,1.15,0,0],10216:[.65002,1.15,0,0],10217:[.65002,1.15,0,0],10752:[.55001,1.05,0,0],10753:[.55001,1.05,0,0],10754:[.55001,1.05,0,0],10756:[.55001,1.05,0,0],10758:[.55001,1.05,0,0]},"Size3-Regular":{40:[.95003,1.45,0,0],41:[.95003,1.45,0,0],47:[.95003,1.45,0,0],91:[.95003,1.45,0,0],92:[.95003,1.45,0,0],93:[.95003,1.45,0,0],123:[.95003,1.45,0,0],125:[.95003,1.45,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8730:[.95003,1.45,0,0],8968:[.95003,1.45,0,0],8969:[.95003,1.45,0,0],8970:[.95003,1.45,0,0],8971:[.95003,1.45,0,0],10216:[.95003,1.45,0,0],10217:[.95003,1.45,0,0]},"Size4-Regular":{40:[1.25003,1.75,0,0],41:[1.25003,1.75,0,0],47:[1.25003,1.75,0,0],91:[1.25003,1.75,0,0],92:[1.25003,1.75,0,0],93:[1.25003,1.75,0,0],123:[1.25003,1.75,0,0],125:[1.25003,1.75,0,0],710:[0,.825,0,0],732:[0,.825,0,0],770:[0,.825,0,0],771:[0,.825,0,0],8730:[1.25003,1.75,0,0],8968:[1.25003,1.75,0,0],8969:[1.25003,1.75,0,0],8970:[1.25003,1.75,0,0],8971:[1.25003,1.75,0,0],9115:[.64502,1.155,0,0],9116:[1e-5,.6,0,0],9117:[.64502,1.155,0,0],9118:[.64502,1.155,0,0],9119:[1e-5,.6,0,0],9120:[.64502,1.155,0,0],9121:[.64502,1.155,0,0],9122:[-99e-5,.601,0,0],9123:[.64502,1.155,0,0],9124:[.64502,1.155,0,0],9125:[-99e-5,.601,0,0],9126:[.64502,1.155,0,0],9127:[1e-5,.9,0,0],9128:[.65002,1.15,0,0],9129:[.90001,0,0,0],9130:[0,.3,0,0],9131:[1e-5,.9,0,0],9132:[.65002,1.15,0,0],9133:[.90001,0,0,0],9143:[.88502,.915,0,0],10216:[1.25003,1.75,0,0],10217:[1.25003,1.75,0,0],57344:[-.00499,.605,0,0],57345:[-.00499,.605,0,0],57680:[0,.12,0,0],57681:[0,.12,0,0],57682:[0,.12,0,0],57683:[0,.12,0,0]},"Typewriter-Regular":{32:[0,0,0,0],33:[0,.61111,0,0],34:[0,.61111,0,0],35:[0,.61111,0,0],36:[.08333,.69444,0,0],37:[.08333,.69444,0,0],38:[0,.61111,0,0],39:[0,.61111,0,0],40:[.08333,.69444,0,0],41:[.08333,.69444,0,0],42:[0,.52083,0,0],43:[-.08056,.53055,0,0],44:[.13889,.125,0,0],45:[-.08056,.53055,0,0],46:[0,.125,0,0],47:[.08333,.69444,0,0],48:[0,.61111,0,0],49:[0,.61111,0,0],50:[0,.61111,0,0],51:[0,.61111,0,0],52:[0,.61111,0,0],53:[0,.61111,0,0],54:[0,.61111,0,0],55:[0,.61111,0,0],56:[0,.61111,0,0],57:[0,.61111,0,0],58:[0,.43056,0,0],59:[.13889,.43056,0,0],60:[-.05556,.55556,0,0],61:[-.19549,.41562,0,0],62:[-.05556,.55556,0,0],63:[0,.61111,0,0],64:[0,.61111,0,0],65:[0,.61111,0,0],66:[0,.61111,0,0],67:[0,.61111,0,0],68:[0,.61111,0,0],69:[0,.61111,0,0],70:[0,.61111,0,0],71:[0,.61111,0,0],72:[0,.61111,0,0],73:[0,.61111,0,0],74:[0,.61111,0,0],75:[0,.61111,0,0],76:[0,.61111,0,0],77:[0,.61111,0,0],78:[0,.61111,0,0],79:[0,.61111,0,0],80:[0,.61111,0,0],81:[.13889,.61111,0,0],82:[0,.61111,0,0],83:[0,.61111,0,0],84:[0,.61111,0,0],85:[0,.61111,0,0],86:[0,.61111,0,0],87:[0,.61111,0,0],88:[0,.61111,0,0],89:[0,.61111,0,0],90:[0,.61111,0,0],91:[.08333,.69444,0,0],92:[.08333,.69444,0,0],93:[.08333,.69444,0,0],94:[0,.61111,0,0],95:[.09514,0,0,0],96:[0,.61111,0,0],97:[0,.43056,0,0],98:[0,.61111,0,0],99:[0,.43056,0,0],100:[0,.61111,0,0],101:[0,.43056,0,0],102:[0,.61111,0,0],103:[.22222,.43056,0,0],104:[0,.61111,0,0],105:[0,.61111,0,0],106:[.22222,.61111,0,0],107:[0,.61111,0,0],108:[0,.61111,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.22222,.43056,0,0],113:[.22222,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.55358,0,0],117:[0,.43056,0,0],118:[0,.43056,0,0],119:[0,.43056,0,0],120:[0,.43056,0,0],121:[.22222,.43056,0,0],122:[0,.43056,0,0],123:[.08333,.69444,0,0],124:[.08333,.69444,0,0],125:[.08333,.69444,0,0],126:[0,.61111,0,0],127:[0,.61111,0,0],160:[0,0,0,0],176:[0,.61111,0,0],184:[.19445,0,0,0],305:[0,.43056,0,0],567:[.22222,.43056,0,0],711:[0,.56597,0,0],713:[0,.56555,0,0],714:[0,.61111,0,0],715:[0,.61111,0,0],728:[0,.61111,0,0],730:[0,.61111,0,0],770:[0,.61111,0,0],771:[0,.61111,0,0],776:[0,.61111,0,0],915:[0,.61111,0,0],916:[0,.61111,0,0],920:[0,.61111,0,0],923:[0,.61111,0,0],926:[0,.61111,0,0],928:[0,.61111,0,0],931:[0,.61111,0,0],933:[0,.61111,0,0],934:[0,.61111,0,0],936:[0,.61111,0,0],937:[0,.61111,0,0],8216:[0,.61111,0,0],8217:[0,.61111,0,0],8242:[0,.61111,0,0],9251:[.11111,.21944,0,0]}};const i=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,a={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]},o={" ":" ","​":" ","Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"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 r(e,a){let r=e.charCodeAt(0);e[0]in o?r=o[e[0]].charCodeAt(0):i.test(e[0])&&(r=77);const s=t[a][r];return s?{defaultMetrics:!1,depth:s[0],height:s[1],italic:s[2],skew:s[3]}:11034===r?{defaultMetrics:!0,depth:0,height:1,italic:0,skew:0}:{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0}}function s(e,t,i=NaN){if("string"==typeof e){const i=e.match(/([-+]?[0-9.]*)\s*([a-zA-Z]+)/);i?(e=parseFloat(i[1]),t=i[2].toLowerCase()):e=parseFloat(e)}const a={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:10,bp:1.00375,dd:1238/1157,pc:12,in:72.27,mu:10/18}[t]||1;if(isFinite(i)){const t=Math.pow(10,i);return Math.round(e/10*a*t)/t}return e/10*a}function n(e,t){return s(e,t)*(4/3)*10}class l{constructor(e,t,i,o){this.id=e,this.size=t,this.cramped=o,this.sizeMultiplier=i,this.metrics=Object.keys(a).reduce((e,t)=>({...e,[t]:a[t][this.size]}),{}),this.metrics.emPerEx=a.xHeight[this.size]/a.quad[this.size]}sup(){return c[[4,5,4,5,6,7,6,7][this.id]]}sub(){return c[[5,5,5,5,7,7,7,7][this.id]]}fracNum(){return c[[2,3,4,5,6,7,6,7][this.id]]}fracDen(){return c[[3,3,5,5,7,7,7,7][this.id]]}cramp(){return c[[1,1,3,3,5,5,7,7][this.id]]}cls(){return["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"][this.size]}adjustTo(e){let t=[["","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-textstyle displaystyle textstyle","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-scriptstyle textstyle displaystyle","reset-scriptstyle textstyle","","reset-scriptstyle scriptscriptstyle"],["reset-scriptscriptstyle textstyle displaystyle","reset-scriptscriptstyle textstyle","reset-scriptscriptstyle scriptstyle",""]][this.size][e.size];return t.length>0&&(t=" "+t),t}isTight(){return this.size>=2}}const c={0:new l(0,0,1,!1),1:new l(1,0,1,!0),2:new l(2,1,1,!1),3:new l(3,1,1,!0),4:new l(4,2,.7,!1),5:new l(5,2,.7,!0),6:new l(6,3,.5,!1),7:new l(7,3,.5,!0)};c.displaystyle=c[0],c.textstyle=c[2],c.scriptstyle=c[4],c.scriptscriptstyle=c[6];class d{constructor(e){var t,i,a,o,r,s;this.macros=null!==(t=e.macros)&&void 0!==t?t:{},this.atomIdsSettings=e.atomIdsSettings,this.mathstyle=null!==(i=e.mathstyle)&&void 0!==i?i:c.displaystyle,this.letterShapeStyle=null!==(a=e.letterShapeStyle)&&void 0!==a?a:"tex",this.size=null!==(o=e.size)&&void 0!==o?o:"size5",this.parentMathstyle=null!==(r=e.parentMathstyle)&&void 0!==r?r:this.mathstyle,this.parentSize=null!==(s=e.parentSize)&&void 0!==s?s:this.size,this.opacity=e.opacity,this.smartFence=e.smartFence}clone(e={}){const t=new d(this);return void 0!==e&&(Object.assign(t,e),e.mathstyle?(t.parentMathstyle=this.mathstyle,t.parentSize=this.size,"string"==typeof e.mathstyle&&(t.mathstyle=c[e.mathstyle])):t.mathstyle=this.mathstyle),t}setMathstyle(e){e&&"auto"!==e&&(this.mathstyle=c[e])}cramp(){return this.clone({mathstyle:this.mathstyle.cramp()})}sup(){return this.clone({mathstyle:this.mathstyle.sup()})}sub(){return this.clone({mathstyle:this.mathstyle.sub()})}}const m={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"],xleftarrow:[["leftarrow"],1.469,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"],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]},p={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34]},u={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",widetilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",widetilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",widetilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",widetilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};function h(e,t){const i=[];let a,o=[];return e.forEach(e=>{if("first"!==e.type){let r;"variant"===t?(r=e.variant,e.variantStyle&&"up"!==e.variantStyle&&(r+="-"+e.variantStyle)):r=e[t],r!==a?(o.length>0&&i.push(o),o=[e],a=r):o.push(e)}}),o.length>0&&i.push(o),i}const f={};function g(e,t){f[e]={...t}}const y=["","mord","mbin","mop","mrel","mopen","mclose","mpunct","minner","spacing","first","command","error","placeholder","textord","none"];function b(e){return y.includes(e)}const v={"mord+mop":3,"mord+mbin":4,"mord+mrel":5,"mord+minner":3,"mop+mord":3,"mop+mop":3,"mop+mbin":5,"mop+minner":3,"mbin+mord":4,"mbin+mop":4,"mbin+mopen":4,"mbin+minner":4,"mrel+mord":5,"mrel+mop":5,"mrel+mopen":5,"mrel+minner":5,"mclose+mop":3,"mclose+mbin":4,"mclose+mrel":5,"mclose+minner":3,"mpunct+mord":3,"mpunct+mop":3,"mpunct+mbin":4,"mpunct+mrel":5,"mpunct+mopen":3,"mpunct+mpunct":3,"mpunct+minner":3},x={"mord+mop":3,"mop+mord":3,"mop+mop":3,"mclose+mop":3,"minner+mop":3};function k(t){if("string"==typeof t)return t;if("number"==typeof t)return Number(Math.ceil(100*t)/100).toString();if(void 0===t)return"";if(e(t)){let e="";for(const i of t)e+=k(i);return e}return""}class _{constructor(t,i="",a=""){this.classes=i,e(t)?this.children=[].concat(...t):"string"==typeof t?this.body=t:t&&"object"==typeof t&&(this.children=[t]),this.type=a,this.style=null,this.updateDimensions()}updateDimensions(){let e=0,t=0,i=1;this.children?this.children.forEach(a=>{a.height>e&&(e=a.height),a.depth>t&&(t=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}):"string"==typeof this.body&&(e=1.2,t=0),this.height=e,this.depth=t,this.maxFontSize=i}selected(e){e&&!/ML__selected/.test(this.classes)&&(this.classes.length>0&&(this.classes+=" "),this.classes+="ML__selected"),!e&&/ML__selected/.test(this.classes)&&(this.classes=this.classes.replace("ML__selected","")),this.children&&this.children.forEach(t=>t.selected(e))}applyStyle(e){if(!e)return;if(e.color&&("none"!==e.color?this.setStyle("color",e.color):this.setStyle("color","")),e.backgroundColor&&("none"!==e.backgroundColor?this.setStyle("background-color",e.backgroundColor):this.setStyle("background-color","")),e.cssClass&&(this.classes+=" "+e.cssClass),!this.body)return;const t=function(e,t){var i;return(null===(i=f[t.mode])||void 0===i?void 0:i.applyStyle)?f[t.mode].applyStyle(e,t):""}(this,e);if(this.body&&t){this.maxFontSize={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49}[e.fontSize]||1,this.height=0,this.depth=0,this.skew=0,this.italic=0;for(let e=0;e0&&(this.style||(this.style={}),this.style[e]=i)}setTop(e){e&&0!==e&&(this.style||(this.style={}),this.style.top=k(e)+"em",this.height-=e,this.depth+=e)}setLeft(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-left"]=k(e)+"em")}setRight(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-right"]=k(e)+"em")}setWidth(e){e&&0!==e&&(this.style||(this.style={}),this.style.width=k(e)+"em")}toMarkup(e=1,t=1){var i,a,o,r,s;let n="",l=this.body||"";if(this.children){let e="none";for(let o=0;o`${e}="${this.attributes[e]}"`).join(" "));const t=this.classes.split(" ");t.push(null!==(o={command:"ML__command",placeholder:"ML__placeholder",error:"ML__error"}[this.type])&&void 0!==o?o:""),this.caret&&"command"===this.type&&t.push("ML__command-caret");let i="";if(i=t.length>1?t.filter((e,t,i)=>e.length>0&&i.indexOf(e)===t).join(" "):t[0],i.length>0&&(n+=` class="${i}"`),e&&((null===(r=this.style)||void 0===r?void 0:r["margin-left"])?this.style["margin-left"]=k(parseFloat(this.style["margin-left"])+e/18)+"em":(this.style||(this.style={}),this.style["margin-left"]=k(e/18)+"em")),this.style){let e="";const t=/ML__selected/.test(this.classes);for(const i in this.style)Object.prototype.hasOwnProperty.call(this.style,i)&&("background-color"===i&&t||(e+=i+":"+this.style[i]+";"));e.length>0&&(n+=' style="'+e+'"')}n+=">",this.svgBody?n+=function(e){if(p[e]){const t=p[e][2];return``}const[t,i,a,o]=m[e];let r,s;const n=a/1e3;3===t.length?(r=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],s=["xMinYMin","xMidYMin","xMaxYMin"]):2===t.length?(r=["slice-1-of-2","slice-2-of-2"],s=["xMinYMin","xMaxYMin"]):(r=["slice-1-of-1"],s=[o]);const l=t.map((e,t)=>``).join("");return`${l}`}(this.svgBody):this.svgOverlay?(n+='",n+=""):n+=l,n+=""}else n="";return this.caret&&"command"!==this.type&&("text"===this.caret?n+='':n+=''),n}tryCoalesceWith(e){if(this.type!==e.type)return!1;if("error"===this.type||"placeholder"===this.type||"command"===this.type)return!1;if(this.svgBody||!this.body)return!1;if(e.svgBody||!e.body)return!1;const t=this.children&&this.children.length>0,i=e.children&&e.children.length>0;if(t||i)return!1;if((this.style?this.style.length:0)!==(e.style?e.style.length:0))return!1;const a=this.classes.trim().replace(/\s+/g," ").split(" "),o=e.classes.trim().replace(/\s+/g," ").split(" ");if(a.length!==o.length)return!1;a.sort(),o.sort();for(let e=0;e=e.length)return"none";const n=null!==(a=null===(i=e[t-1])||void 0===i?void 0:i.type)&&void 0!==a?a:"none",l=null!==(r=null===(o=e[t+1])||void 0===o?void 0:o.type)&&void 0!==r?r:"none";let c=null!==(s=e[t].type)&&void 0!==s?s:"none";return"first"===c?"none":"textord"===c?"mord":("mbin"===c&&(/first|none|mrel|mpunct|mopen|mbin|mop/.test(n)||/none|mrel|mpunct|mclose/.test(l))&&(c="mord"),c)}function M(t){return t?e(t)?t.reduce((e,t)=>Math.max(e,t.height),0):t.height:0}function z(t){return t?e(t)?t.reduce((e,t)=>Math.max(e,t.depth),0):t.depth:0}function S(t){return t?e(t)?t[t.length-1].italic:t.italic:0}function L(t,i="",a=""){if(e(t)){const e=t.filter(e=>Boolean(e));return 1===e.length?new _(e[0],i,a):new _(e,i,a)}return new _(t,i,a)}function A(e,t,i="",a=""){const o=new _(t,i,a),s=r(t,e);return o.height=s.height,o.depth=s.depth,o.skew=s.skew,o.italic=s.italic,o.setRight(o.italic),o}function C(t,i="",a=""){const o=L("","ML__strut");let r,s;return o.setStyle("height",M(t),"em"),0!==z(t)&&(r=L("","ML__strut--bottom"),r.setStyle("height",M(t)+z(t),"em"),r.setStyle("vertical-align",-z(t),"em")),s=e(t)?[o,r,...t]:[o,r,t],L(s,i,a)}function $(e,t,i,a,o){o=o||"";const r=q(t,(o+=" style-wrap ")+i.adjustTo(a));r.type=e;const s=a.sizeMultiplier/i.sizeMultiplier;return r.height*=s,r.depth*=s,r.maxFontSize=a.sizeMultiplier,r}function q(e,t="",i=""){const a=new _(e,t,i);let o=1;return o=e instanceof _?e.maxFontSize:e.reduce((e,t)=>Math.max(e,t.maxFontSize),o),a.height*=o,a.depth*=o,a}function D(t,i,a="shift",o=0){let r=0,s=0;a=a||"shift";for(let t=0;t0?"em":""),a.attributes={"aria-hidden":"true"}),"size5"!==e.size?new _(a,"fontsize-ensurer reset-"+e.size+" size5"):0!==i?a:null}(t,n),c=[];s=r;for(const e of i)if("number"==typeof e)s+=e;else if(e instanceof _){const t=L([l,e]);t.setTop(-e.depth-s),c.push(t),s+=e.height+e.depth}const d=L(c,"vlist");return d.depth=Math.max(r,z(d)||0),d.height=Math.max(-s,M(d)||0),d}function T(e){const t=new _(null);return t.svgBody=e,t.height=function(e){return m[e]?m[e][2]/1e3:p[e][2]}(e)/2,t.depth=t.height,t}const K={},E={"<":"<",">":">",o:"o","&":"\\&","{":"\\{","}":"\\}","[":"\\lbrack","]":"\\rbrack",":":"\\colon"," ":"~","¬":"\\neg","·":"\\cdot","¼":"\\frac{1}{4}","½":"\\frac{1}{2}","¾":"\\frac{3}{4}","⁰":"^{0}","ⁱ":"^{i}","¹":"^{1}","²":"^{2}","³":"^{3}","†":"\\dagger","‡":"\\ddagger","…":"\\ldots","⁴":"^{4}","⁵":"^{5}","⁶":"^{6}","⁷":"^{7}","⁸":"^{8}","⁹":"^{9}","⁺":"^{+}","⁻":"^{-}","⁼":"^{=}","ⁿ":"^{n}","₀":"_{0}","₁":"_{1}","₂":"_{2}","₃":"_{3}","₄":"_{4}","₅":"_{5}","₆":"_{6}","₇":"_{7}","₈":"_{8}","₉":"_{9}","₊":"_{+}","₋":"_{-}","₌":"_{=}","ₐ":"_{a}","ₑ":"_{e}","ₒ":"_{o}","ₓ":"_{x}","′":"\\prime","'":"\\prime","←":"\\gets","→":"\\to","△":"\\triangle","▽":"\\triangledown","∋":"\\owns","∗":"\\ast","∣":"\\vert","∥":"\\Vert","∧":"\\land","∨":"\\lor","⋅":"\\cdot","⋈":"\\bowtie","≠":"\\ne","≤":"\\le","≥":"\\ge","⊥":"\\bot","⟷":"\\biconditional","⟸":"\\impliedby","⟹":"\\implies","ℂ":"\\C","ℕ":"\\N","ℙ":"\\P","ℚ":"\\Q","ℝ":"\\R","ℤ":"\\Z"},N={},B={},O={iff:"\\;⟺\\;",nicefrac:"^{#1}\\!\\!/\\!_{#2}",bra:"\\mathinner{\\langle{#1}|}",ket:"\\mathinner{|{#1}\\rangle}",braket:"\\mathinner{\\langle{#1}\\rangle}",set:"\\mathinner{\\lbrace #1 \\rbrace}",Bra:"\\left\\langle #1\\right|",Ket:"\\left|#1\\right\\rangle",Braket:"\\left\\langle{#1}\\right\\rangle",Set:"\\left\\lbrace #1 \\right\\rbrace",rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}"},F={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},P={"\\#":"#","\\&":"&","\\$":"$","\\%":"%","\\_":"_","\\euro":"€","\\maltese":"✠","\\{":"{","\\}":"}","\\nobreakspace":" ","\\ldots":"…","\\textellipsis":"…","\\backslash":"\\","`":"‘","'":"’","``":"“","''":"”","\\degree":"°","\\textasciicircum":"^","\\textasciitilde":"~","\\textasteriskcentered":"*","\\textbackslash":"\\","\\textbraceleft":"{","\\textbraceright":"}","\\textbullet":"•","\\textdollar":"$","\\textsterling":"£","\\textdagger":"†","\\textdaggerdbl":"‡","–":"–","—":"—","‘":"‘","’":"’","“":"“","”":"”",'"':"”","\\ss":"ß","\\ae":"æ","\\oe":"œ","\\AE":"Æ","\\OE":"Œ","\\O":"Ø","\\i":"ı","\\j":"ȷ","\\aa":"å","\\AA":"Å"},R=/[a-zA-Z0-9!@*()-=+{}[\]\\';:?/.,~<>`|'$%#&^_" ]/,I="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("\\p{Letter}","u"),H="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[0-9a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("[0-9\\p{Letter}]","u");function V(e,t,i="mord",a=""){K[e]={type:i,variant:a,value:t},E[t]||a||(E[t]=e),P[e]=t}function W(e,t){for(let i=e;i<=t;i++){const e=String.fromCodePoint(i);V(e,e)}}function U(e,t){if("math"===e)return E[t]||t;if("text"===e){let e=Object.keys(P).find(e=>P[e]===t);if(!e){const i=t.codePointAt(0).toString(16);e="^".repeat(i.length)+i}return e}return t}const j={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},X=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function G(e,t,i){if(!/[A-Za-z0-9]/.test(e))return e;if(!t&&!i)return e;const a=e.codePointAt(0);for(let e=0;e=X[e].offset&&a120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const i in j)if(Object.prototype.hasOwnProperty.call(j,i)&&j[i]===e){e=null!==(t=i.codePointAt(0))&&void 0!==t?t:0;break}for(let t=0;t=X[t].start&&e=1;)a.params.push({isOptional:!1,type:"math"}),o-=1}}}else"math"===t?a=K[e]:P[e]?a={value:P[e]}:"text"===t&&(a={value:e});return!a||"mord"!==a.type||"f"!==a.value&&"g"!==a.value&&"h"!==a.value||(a.isFunction=!0),a}function ie(e){if(e.length<=1)return[];const t=[];for(const i in N)Object.prototype.hasOwnProperty.call(N,i)&&i.startsWith(e)&&!N[i].infix&&t.push({match:i,frequency:N[i].frequency});for(const i in K)Object.prototype.hasOwnProperty.call(K,i)&&i.startsWith(e)&&t.push({match:i,frequency:K[i].frequency});return t.sort((e,t)=>e.frequency===t.frequency?e.match.length-t.match.length:(t.frequency||0)-(e.frequency||0)),t}function ae(e){let t="auto";const i=e.match(/:([^=]+)/);return i&&(t=i[1].trim()),t}function oe(e){if(!e)return[];let t=[],i=e.split("]");if("["===i[0].charAt(0)){t.push({isOptional:!0,type:ae(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(oe(i[e]))}else if(i=e.split("}"),"{"===i[0].charAt(0)){t.push({isOptional:!1,type:ae(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(oe(i[e]))}return t}function re(e){let t="",i=!0;return e.forEach(e=>{"string"==typeof e.body?t+=e.body:i=!1}),i?t:""}function se(e,t,i,a=!1){"string"==typeof e&&(e=[e]);const o={tabular:a,params:oe(t),parser:i};for(const t of e)B[t]=o}function ne(e,t,i){se(e,t,i,!0)}function le(e,t,i,a,o){"string"==typeof e&&(e=[e]),i||(i={});const r={params:oe(t),mode:i.mode,infix:Boolean(i.infix),parse:a,emit:o};e.forEach(e=>{N["\\"+e]=r})}const ce={acute:"ˊ",grave:"ˋ",dot:"˙",ddot:"¨",mathring:"˚",tilde:"~",bar:"ˉ",breve:"˘",check:"ˇ",hat:"^",vec:"⃗"};le(Object.keys(ce),"{body:auto}",null,(function(e,t){return{type:"accent",accent:ce[e.slice(1)],limits:"accent",skipBoundary:!0,body:t[0]}})),le(["widehat","widecheck","widetilde"],"{body:auto}",null,(e,t)=>{const i=re(t[0]);return{type:"accent",svgAccent:e.slice(1)+(i.length>5?"4":["1","1","2","2","3","3"][i.length]),limits:"accent",skipBoundary:!0,body:t[0]}}),le("utilde","{body:auto}",null,(e,t)=>{const i=re(t[0]),a="widetilde"+(i.length>5?"4":["1","1","2","2","3","3"][i.length]);return{type:"overunder",body:t[0],svgBelow:a,skipBoundary:!0}},(e,t,i,a)=>`\\utilde{${a(i,i.body)}}`),le("^","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"}[t[0]]||"^"})),le("`","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"}[t[0]]||"`"})),le("'","{:string}",{},(function(e,t){return{type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"á",e:"é",i:"í",o:"ó",u:"ú",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú"}[t[0]]||"^"}})),le("~","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{n:"ñ",N:"Ñ",a:"ã",o:"õ",A:"Ã",O:"Õ"}[t[0]]||"´"})),le("c","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{c:"ç",C:"Ç"}[t[0]]||""})),le("enclose","{notation:string}[style:string]{body:auto}",null,(e,t)=>{var i;const a={type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"auto",captureSelection:!0,body:t[2]};if(t[1]){const e=t[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of e){const e=t.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(e)a.strokeWidth=n(e[1],"px"),isFinite(a.strokeWidth)||(a.strokeWidth=1),a.strokeStyle=e[2],a.strokeColor=e[3];else{const e=t.match(/\s*([a-z]*)\s*=\s*"(.*)"/);e&&("mathbackground"===e[1]?a.backgroundcolor=e[2]:"mathcolor"===e[1]?a.strokeColor=e[2]:"padding"===e[1]?a.padding=n(e[2],"px"):"shadow"===e[1]&&(a.shadow=e[2]))}}"dashed"===a.strokeStyle?a.svgStrokeStyle="5,5":"dotted"===a.strokeStyle&&(a.svgStrokeStyle="1,5")}return a.borderStyle=a.strokeWidth+"px "+a.strokeStyle+" "+a.strokeColor,a.notation={},(null!==(i=t[0])&&void 0!==i?i:"").split(/[, ]/).filter(e=>e.length>0).forEach(e=>{a.notation[e.toLowerCase()]=!0}),a.notation.updiagonalarrow&&(a.notation.updiagonalstrike=!1),a.notation.box&&(a.notation.left=!1,a.notation.right=!1,a.notation.bottom=!1,a.notation.top=!1),a}),le("cancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0},body:t[0]}})),le("bcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{downdiagonalstrike:!0},body:t[0]}})),le("xcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0,downdiagonalstrike:!0},body:t[0]}})),se("math","",()=>({mathstyle:"textstyle"})),se("displaymath","",(function(){return{mathstyle:"displaystyle"}})),ne("array","{columns:colspec}",(e,t)=>({colFormat:t[0],mathstyle:"textstyle"})),ne(["equation","equation","subequations"],"",()=>({colFormat:[{align:"c"}]})),ne("multline","",(function(){return{colFormat:[{align:"m"}]}})),ne(["align","align*","aligned","eqnarray"],"",(e,t,i)=>{let a=0;for(const e of i)a=Math.max(a,e.length);const o=[{gap:0},{align:"r"},{gap:0},{align:"l"}];let r=2;for(;r({colFormat:[{align:"r"},{align:"l"}]})),ne(["gather","gathered"],"",()=>({colFormat:[{gap:.25},{align:"c"},{gap:0}],jot:.3})),ne(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","smallmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*","smallmatrix*"],"[columns:colspec]",(e,t)=>{var i;const a={mathstyle:"textstyle"};switch(e){case"pmatrix":case"pmatrix*":a.leftDelim="(",a.rightDelim=")";break;case"bmatrix":case"bmatrix*":a.leftDelim="[",a.rightDelim="]";break;case"Bmatrix":case"Bmatrix*":a.leftDelim="\\lbrace",a.rightDelim="\\rbrace";break;case"vmatrix":case"vmatrix*":a.leftDelim="\\vert",a.rightDelim="\\vert";break;case"Vmatrix":case"Vmatrix*":a.leftDelim="\\Vert",a.rightDelim="\\Vert";break;case"smallmatrix":case"smallmatrix*":a.mathstyle="scriptstyle";break;case"matrix":case"matrix*":a.leftDelim=".",a.rightDelim="."}return a.colFormat=null!==(i=t[0])&&void 0!==i?i:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}],a}),ne("cases","",()=>({arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",colFormat:[{align:"l"},{gap:1},{align:"l"}]})),se("center","",(function(){return{colFormat:[{align:"c"}]}})),le(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overbrace","overlinesegment","overgroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgAbove:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),le(["underrightarrow","underleftarrow","underleftrightarrow","underbrace","underlinesegment","undergroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgBelow:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),le(["xrightarrow","xleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","xLeftrightarrow","xrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xrightleftarrows","xrightequilibrium","xleftequilibrium"],"[:auto]{:auto}",null,(e,t)=>{let i=t[1];return 0===(null==i?void 0:i.length)&&(i=null),{type:"overunder",mathtype:"mrel",svgBody:e.slice(1),overscript:i,underscript:t[0]}},(e,t,i,a)=>e+(void 0!==i.underscript?`[${a(i,i.underscript)}]`:"")+`{${a(i,i.overscript)}}`),le(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","coth","ctg","cth","cotg","csc","cosec","deg","dim","exp","hom","inf","ker","lg","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main",variantStyle:"up"}})),le(["liminf","limsup"],"",null,e=>({type:"mop",limits:"limits",isSymbol:!1,body:{"\\liminf":"lim inf","\\limsup":"lim sup"}[e],variant:"main"})),le(["lim","mod"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,body:e.slice(1),variant:"main"}})),le(["det","max","min"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main"}})),le("sqrt","[index:auto]{radicand:auto}",null,(e,t)=>({type:"surd",body:t[1],index:t[0]}),(e,t,i,a)=>{let o="";return void 0!==i.index&&(o+=`[${a(i,i.index)}]`),o+=`{${a(i,i.body)}}`,e+o}),le(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{numerator}{denominator}",null,(e,t)=>{const i={type:"genfrac",numer:t[0],denom:t[1],mathstyle:"auto"};switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":case"\\cfrac":i.hasBarLine=!0;break;case"\\\\atopfrac":i.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i.hasBarLine=!1,i.leftDelim="(",i.rightDelim=")"}switch(e){case"\\dfrac":case"\\dbinom":i.mathstyle="displaystyle";break;case"\\tfrac":case"\\tbinom":i.mathstyle="textstyle"}return"\\cfrac"===e&&(i.continuousFraction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),le(["over","atop","choose"],"",{infix:!0},(e,t)=>{const i=t[0],a=t[1];let o=!1,r=null,s=null;switch(e){case"\\atop":break;case"\\over":o=!0;break;case"\\choose":o=!1,r="(",s=")";break;default:throw new Error("Unrecognized genfrac command")}return{type:"genfrac",numer:i,denom:a,hasBarLine:o,leftDelim:r,rightDelim:s,mathstyle:"auto"}},(e,t,i,a)=>`{${a(i,i.numer)}${e} ${a(i,i.denom)}}`),le("pdiff","{numerator}{denominator}",null,(e,t)=>({type:"genfrac",numer:t[0],denom:t[1],numerPrefix:"∂",denomPrefix:"∂",hasBarLine:!0,leftDelim:null,rightDelim:null,mathstyle:"auto"}),(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),le(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","smallint","intop"],"",null,e=>({type:"mop",limits:"auto",isSymbol:!0,variant:"main",body:{coprod:"∐",bigvee:"⋁",bigwedge:"⋀",biguplus:"⨄",bigcap:"⋂",bigcup:"⋃",intop:"∫",prod:"∏",sum:"∑",bigotimes:"⨂",bigoplus:"⨁",bigodot:"⨀",bigsqcup:"⨆",smallint:"∫"}[e.slice(1)]}));const de={int:"∫",iint:"∬",iiint:"∭",oint:"∮",oiint:"∯",oiiint:"∰",intclockwise:"∱",varointclockwise:"∲",ointctrclockwise:"∳",intctrclockwise:"⨑",sqcup:"⊔",sqcap:"⊓",uplus:"⊎",wr:"≀",amalg:"⨿",Cap:"⋒",Cup:"⋓",doublecap:"⋒",doublecup:"⋓"};le(Object.keys(de),"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!0,body:de[e.slice(1)],variant:{"⋒":"ams","⋓":"ams"}[de[e.slice(1)]]}})),le(["Re","Im"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:{"\\Re":"ℜ","\\Im":"ℑ"}[e],variant:"fraktur"}})),le("middle","{:delim}",null,(function(e,t){return{type:"delim",delim:t[0]}}));const me={m0:"#3f3d99",m1:"#993d71",m2:"#998b3d",m3:"#3d9956",m4:"#3d5a99",m5:"#993d90",m6:"#996d3d",m7:"#43993d",m8:"#3d7999",m9:"#843d99"},pe=["#d35d60","#7293cb","#e1974d","#84bb5d","#9066a7","#aD6a58","#f5a4ce","#fff590","#212121","#818787","#d4d5d2","#ffffff"],ue=["#cc2428","#3769b1","#da7e30","#409852","#6b4c9a","#922426","#e7298a","#ffe907","#000000","#525055","#adafaa","#ffffff"],he={apricot:"#FBB982",aquamarine:"#00B5BE",bittersweet:"#C04F17",black:"#221E1F",blue:"#2D2F92",bluegreen:"#00B3B8",blueviolet:"#473992",brickred:"#B6321C",brown:"#792500",burntorange:"#F7921D",cadetblue:"#74729A",carnationpink:"#F282B4",cerulean:"#00A2E3",cornflowerblue:"#41B0E4",cyan:"#00AEEF",dandelion:"#FDBC42",darkorchid:"#A4538A",emerald:"#00A99D",forestgreen:"#009B55",fuchsia:"#8C368C",goldenrod:"#FFDF42",gray:"#949698",green:"#00A64F",greenyellow:"#DFE674",junglegreen:"#00A99A",lavender:"#F49EC4",limegreen:"#8DC73E",magenta:"#EC008C",mahogany:"#A9341F",maroon:"#AF3235",melon:"#F89E7B",midnightblue:"#006795",mulberry:"#A93C93",navyblue:"#006EB8",olivegreen:"#3C8031",orange:"#F58137",orangered:"#ED135A",orchid:"#AF72B0",peach:"#F7965A",periwinkle:"#7977B8",pinegreen:"#008B72",plum:"#92268F",processblue:"#00B0F0",purple:"#99479B",rawsienna:"#974006",red:"#ED1B23",redorange:"#F26035",redviolet:"#A1246B",rhodamine:"#EF559F",royalblue:"#0071BC",royalpurple:"#613F99",rubinered:"#ED017D",salmon:"#F69289",seagreen:"#3FBC9D",sepia:"#671800",skyblue:"#46C5DD",springgreen:"#C6DC67",tan:"#DA9D76",tealblue:"#00AEB3",thistle:"#D883B7",turquoise:"#00B4CE",violet:"#58429B",violetred:"#EF58A0",white:"#FFFFFF",wildstrawberry:"#EE2967",yellow:"#FFF200",yellowgreen:"#98CC70",yelloworange:"#FAA21A"};function fe(e){var t;const i=e.toLowerCase().split("!");let a,o,r,s=255,n=255,l=255,c=-1;const d=i.length>0&&"-"===i[0].charAt(0);d&&(i[0]=i[0].slice(1));for(let e=0;e=0&&(s=(1-c)*s+c*a,n=(1-c)*n+c*o,l=(1-c)*l+c*r,c=-1),e+1=0&&(s=c*s+(1-c)*a,n=c*n+(1-c)*o,l=c*l+(1-c)*r),d&&(s=255-s,n=255-n,l=255-l),"#"+("00"+Math.round(s).toString(16)).slice(-2)+("00"+Math.round(n).toString(16)).slice(-2)+("00"+Math.round(l).toString(16)).slice(-2)}function ge(e){let t=e.toUpperCase();for(const e in he)if(he[e]===t){t=e;break}for(const e in me)if(me[e]===t){t=e;break}return t}le("ensuremath","{:math}",{},(e,t)=>({type:"group",mode:"math",body:t[0],skipBoundary:!0,latexOpen:"\\ensuremath{",latexClose:"}"}),(e,t,i,a)=>a(i,i.body)),le("color","{:color}",{},(e,t)=>({color:t[0]})),le("textcolor","{:color}{content:auto*}",{},(e,t)=>({color:t[0]})),le("boxed","{content:math}",null,(e,t)=>({type:"box",framecolor:"black",skipBoundary:!0,body:t[0]})),le("colorbox","{background-color:string}{content:auto}",{},(e,t)=>({type:"box",backgroundcolor:fe(t[0]),skipBoundary:!0,body:t[1],verbatimBackgroundcolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimBackgroundcolor||ge(i.backgroundcolor)}}{${a(i,i.body)}}`),le("fcolorbox","{frame-color:string}{background-color:string}{content:auto}",{},(e,t)=>({type:"box",framecolor:fe(t[0]),backgroundcolor:fe(t[1]),skipBoundary:!0,body:t[2],verbatimBackgroundcolor:t[1],verbatimFramecolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimFramecolor||ge(i.framecolor)}{${i.verbatimBackgroundcolor||ge(i.backgroundcolor)}}{${a(i,i.body)}}`),le("bbox","[:bbox]{body:auto}",{},(e,t)=>{if(t[0]){const e=t[0];return{type:"box",padding:e.padding,border:e.border,backgroundcolor:e.backgroundcolor,skipBoundary:!0,body:t[1]}}return{type:"box",skipBoundary:!0,body:t[1]}},(e,t,i,a)=>{let o=e;if(isFinite(i.padding)||void 0!==i.border||void 0!==i.backgroundcolor){const e=[];isFinite(i.padding)&&e.push(Math.floor(100*i.padding)/100+"em"),i.border&&e.push("border:"+i.border),i.backgroundcolor&&e.push(ge(i.backgroundcolor)),o+=`[${e.join(",")}]`}return o+`{${a(i,i.body)}}`}),le(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"",{},(e,t)=>({mathstyle:e.slice(1)})),le(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{mode:"text"},(e,t)=>({fontSize:{tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[e.slice(1)]})),le("fontseries","{:string}",{mode:"text"},(e,t)=>({fontSeries:t[0]})),le("fontshape","{:string}",{mode:"text"},(e,t)=>({fontShape:t[0]})),le("fontfamily","{:string}",{mode:"text"},(e,t)=>({fontFamily:t[0]})),le("selectfont","",{mode:"text"},(e,t)=>({})),le("bf","",{},(e,t)=>({fontSeries:"b",fontShape:"n",fontFamily:"cmr"})),le(["boldsymbol","bm"],"{:math*}",{},(e,t)=>({mode:"math",cssClass:"ML__boldsymbol"})),le("bold","{:math*}",{},(e,t)=>({mode:"math",variantStyle:"bold"})),le("bfseries","",{mode:"text"},(e,t)=>({fontSeries:"b"})),le("mdseries","",{mode:"text"},(e,t)=>({fontSeries:"m"})),le("upshape","",{mode:"text"},(e,t)=>({fontShape:"n"})),le("slshape","",{mode:"text"},(e,t)=>({fontShape:"sl"})),le("scshape","",{mode:"text"},(e,t)=>({fontShape:"sc"})),le("textbf","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"b"})),le("textmd","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"m"})),le("textup","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n"})),le("textnormal","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n",fontSeries:"m"})),le("textsl","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sl"})),le("textit","{:text*}",{},(e,t)=>({mode:"text",fontShape:"it"})),le("textsc","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sc"})),le("textrm","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"roman"})),le("textsf","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"sans-serif"})),le("texttt","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"monospace"})),le("mathbf","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bold"})),le("mathit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"italic"})),le("mathbfit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bolditalic"})),le("mathrm","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"up"})),le("mathsf","{:math*}",{},(e,t)=>({mode:"math",variant:"sans-serif",variantStyle:"up"})),le("mathtt","{:math*}",{},(e,t)=>({mode:"math",variant:"monospace",variantStyle:"up"})),le("it","",{},(e,t)=>({fontSeries:"m",fontShape:"it",fontFamily:"cmr",variantStyle:"italic"})),le("rmfamily","",{},(e,t)=>({fontFamily:"roman"})),le("sffamily","",{},(e,t)=>({fontFamily:"sans-serif"})),le("ttfamily","",{},(e,t)=>({fontFamily:"monospace"})),le(["Bbb","mathbb"],"{:math*}",{},(e,t)=>({variant:"double-struck",variantStyle:"up"})),le(["frak","mathfrak"],"{:math*}",{},(e,t)=>({variant:"fraktur",variantStyle:"up"})),le("mathcal","{:math*}",{},(e,t)=>({variant:"calligraphic",variantStyle:"up"})),le("mathscr","{:math*}",{},(e,t)=>({variant:"script",variantStyle:"up"})),le("mbox","{:text}",null,(e,t)=>({type:"group",mode:"math",body:t[0]})),le("text","{:text*}",null,(e,t)=>({mode:"text"})),le("class","{name:string}{content:auto*}",null,(e,t)=>({cssClass:t[0]})),le("cssId","{id:string}{content:auto}",null,(e,t)=>({type:"group",body:t[1],cssId:t[0]})),le("em","",null,(e,t)=>({cssClass:"ML__emph"})),le("emph","{:auto}",null,(e,t)=>({cssClass:"ML__emph",body:t[0],type:"group",skipBoundary:!0}));const ye={"\\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}};function be(e,t,i,a,o,r=""){const s=$(e,A("Size"+i+"-Regular",J(t),"delimsizing size"+i),o.mathstyle,c.textstyle,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}function ve(e,t){let i="";return"Size1-Regular"===t?i=" delim-size1":"Size4-Regular"===t&&(i=" delim-size4"),A(t,J(e),"delimsizinginner"+i)}function xe(e,t,i,a,o,s=""){let n,l,d,m;n=d=m=J(t),l=null;let p="Size1-Regular";"\\vert"===t||"\\lvert"===t||"\\rvert"===t||"\\mvert"===t||"\\mid"===t?d=n=m="∣":"\\Vert"===t||"\\lVert"===t||"\\rVert"===t||"\\mVert"===t||"\\|"===t?d=n=m="∥":"\\uparrow"===t?d=m="⏐":"\\Uparrow"===t?d=m="‖":"\\downarrow"===t?n=d="⏐":"\\Downarrow"===t?n=d="‖":"\\updownarrow"===t?(n="↑",d="⏐",m="↓"):"\\Updownarrow"===t?(n="⇑",d="‖",m="⇓"):"["===t||"\\lbrack"===t?(n="⎡",d="⎢",m="⎣",p="Size4-Regular"):"]"===t||"\\rbrack"===t?(n="⎤",d="⎥",m="⎦",p="Size4-Regular"):"\\lfloor"===t?(d=n="⎢",m="⎣",p="Size4-Regular"):"\\lceil"===t?(n="⎡",d=m="⎢",p="Size4-Regular"):"\\rfloor"===t?(d=n="⎥",m="⎦",p="Size4-Regular"):"\\rceil"===t?(n="⎤",d=m="⎥",p="Size4-Regular"):"("===t?(n="⎛",d="⎜",m="⎝",p="Size4-Regular"):")"===t?(n="⎞",d="⎟",m="⎠",p="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(n="⎧",l="⎨",m="⎩",d="⎪",p="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(n="⎫",l="⎬",m="⎭",d="⎪",p="Size4-Regular"):"\\lgroup"===t?(n="⎧",m="⎩",d="⎪",p="Size4-Regular"):"\\rgroup"===t?(n="⎫",m="⎭",d="⎪",p="Size4-Regular"):"\\lmoustache"===t?(n="⎧",m="⎭",d="⎪",p="Size4-Regular"):"\\rmoustache"===t?(n="⎫",m="⎩",d="⎪",p="Size4-Regular"):"\\surd"===t?(n="",m="⎷",d="",p="Size4-Regular"):"\\ulcorner"===t?(n="┌",d=m=" "):"\\urcorner"===t?(n="┐",d=m=" "):"\\llcorner"===t?(m="└",d=n=" "):"\\lrcorner"===t&&(n="┘",d=n=" ");const u=r(J(n),p),h=u.height+u.depth,f=r(J(d),p),g=f.height+f.depth,y=r(J(m),p),b=y.height+y.depth;let v=0,x=1;if(null!==l){const e=r(J(l),p);v=e.height+e.depth,x=2}const k=h+b+v,_=Math.ceil((i-k)/(x*g)),w=k+_*x*g;let M=o.mathstyle.metrics.axisHeight;a&&(M*=o.mathstyle.sizeMultiplier);const z=w/2-M,S=[];if(S.push(ve(m,p)),null===l)for(let e=0;e<_;e++)S.push(ve(d,p));else{for(let e=0;e<_;e++)S.push(ve(d,p));S.push(ve(l,p));for(let e=0;e<_;e++)S.push(ve(d,p))}S.push(ve(n,p));const A=D(o,S,"bottom",z);return A.setStyle("color",o.color),"number"==typeof o.opacity&&A.setStyle("opacity",o.opacity),$(e,L(A,"delimsizing mult"),o.mathstyle,c.textstyle,s)}le(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",null,(function(e,t){return{type:"sizeddelim",size:ye[e].size,cls:ye[e].mclass,delim:t[0]}})),le(["hspace","hspace*"],"{width:skip}",{},(function(e,t){return{type:"spacing",width:t[0]||0}})),le(["mathop","mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",null,(e,t)=>{const i={type:{"\\mathop":"mop","\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e],body:t[0],captureSelection:!0};return"\\mathop"===e&&(i.limits="limits",i.isFunction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.body)}}`),le(["operatorname","operatorname*"],"{operator:math}",null,(function(e,t){const i={type:"mop",captureSelection:!0,body:t[0],isFunction:!0};return i.body.forEach(e=>{e.isFunction=!1,e.variant||e.variantStyle||(e.variant="main",e.variantStyle="up"),e.type="mord",e.body={"∗":"*","−":"-"}[e.body]||e.body}),"\\operatorname"===e?i.limits="nolimits":"\\operatorname*"===e&&(i.limits="limits"),i})),le("unicode","{charcode:number}",null,(e,t)=>{let i=parseInt(t[0]);return isFinite(i)||(i=10067),{type:"mord",body:String.fromCodePoint(i),codepoint:i}},(e,t,i,a)=>`${e}{"${("000000"+i.codepoint.toString(16)).toUpperCase().substr(-6)}}`),le("rule","[raise:dimen]{width:dimen}{thickness:dimen}",null,(function(e,t){return{type:"rule",shift:t[0],width:t[1],height:t[2]}})),le("overline","{:auto}",null,(e,t)=>({type:"line",position:"overline",skipBoundary:!0,body:t[0]})),le("underline","{:auto}",null,(e,t)=>({type:"line",position:"underline",skipBoundary:!0,body:t[0]})),le("overset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),le("underset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",underscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),le(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0},(function(e,t){return{type:"genfrac",numer:t[0],denom:t[1],hasBarLine:!1,leftDelim:t[2],rightDelim:t[3],mathstyle:"auto"}}),(e,t,i,a)=>`${a(i,i.numer)} ${e}${i.leftDelim}${i.rightDelim}${a(i,i.denom)}`),le(["stackrel","stackbin"],"{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1],mathtype:"\\stackrel"===e?"mrel":"mbin"}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),le(["phantom","vphantom","hphantom"],"{:auto*}",{},(e,t)=>({type:"phantom",captureSelection:!0,phantomType:e.slice(1),isPhantom:!0}),(e,t,i,a)=>e+"{"+a(i,i.body)+"}"),le("smash","[:string]{:auto}",null,(function(e,t){let i="smash";return"b"===t[0]?i="bsmash":"t"===t[0]&&(i="tsmash"),{type:"phantom",phantomType:i,skipBoundary:!0,body:t[1]}})),le("rlap","{:auto}",null,(function(e,t){return{type:"overlap",align:"right",skipBoundary:!0,body:t[0]}})),le("llap","{:auto}",null,(function(e,t){return{type:"overlap",align:"left",skipBoundary:!0,body:t[0]}})),le("mathrlap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"right",skipBoundary:!0,body:t[0]}})),le("mathllap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"left",skipBoundary:!0,body:t[0]}})),function(e){for(let t=0;t",">","mrel"),V("\\gt",">","mrel"),V("\\le","≤","mrel"),V("\\leq","≤","mrel"),V("\\ge","≥","mrel"),V("\\geq","≥","mrel"),V("\\leqslant","⩽","mrel","ams"),V("\\geqslant","⩾","mrel","ams"),V("\\ll","≪","mrel"),V("\\gg","≫","mrel"),V("\\coloneq","≔","mrel"),V("\\measeq","≝","mrel"),V("\\eqdef","≞","mrel"),V("\\questeq","≟","mrel"),V(":",":","mrel"),V("\\cong","≅","mrel"),V("\\equiv","≡","mrel"),V("\\prec","≺","mrel"),V("\\preceq","⪯","mrel"),V("\\succ","≻","mrel"),V("\\succeq","⪰","mrel"),V("\\perp","⊥","mrel"),V("\\propto","∝","mrel"),V("\\Colon","∷","mrel"),V("\\smile","⌣","mrel"),V("\\frown","⌢","mrel"),V("\\sim","∼","mrel"),V("\\gtrsim","≳","mrel","ams"),V("\\approx","≈","mrel"),V("\\approxeq","≊","mrel","ams"),V("\\thickapprox","≈","mrel","ams"),V("\\lessapprox","⪅","mrel","ams"),V("\\gtrapprox","⪆","mrel","ams"),V("\\precapprox","⪷","mrel","ams"),V("\\succapprox","⪸","mrel","ams"),V("\\thicksim","∼","mrel","ams"),V("\\succsim","≿","mrel","ams"),V("\\precsim","≾","mrel","ams"),V("\\backsim","∽","mrel","ams"),V("\\eqsim","≂","mrel","ams"),V("\\backsimeq","⋍","mrel","ams"),V("\\simeq","≃","mrel"),V("\\lesssim","≲","mrel","ams"),V("\\nleq","≰","mrel","ams"),V("\\ngeq","≱","mrel","ams"),V("\\smallsmile","⌣","mrel","ams"),V("\\smallfrown","⌢","mrel","ams"),V("\\bowtie","⋈","mrel"),V("\\Join","⋈","mrel"),V("\\asymp","≍","mrel"),V("\\sqsubseteq","⊑","mrel"),V("\\sqsupseteq","⊒","mrel"),V("\\leqq","≦","mrel","ams"),V("\\eqslantless","⪕","mrel","ams"),V("\\lll","⋘","mrel","ams"),V("\\lessgtr","≶","mrel","ams"),V("\\lesseqgtr","⋚","mrel","ams"),V("\\lesseqqgtr","⪋","mrel","ams"),V("\\risingdotseq","≓","mrel","ams"),V("\\fallingdotseq","≒","mrel","ams"),V("\\subseteqq","⫅","mrel","ams"),V("\\Subset","⋐","mrel","ams"),V("\\sqsubset","⊏","mrel","ams"),V("\\preccurlyeq","≼","mrel","ams"),V("\\curlyeqprec","⋞","mrel","ams"),V("\\vDash","⊨","mrel","ams"),V("\\Vvdash","⊪","mrel","ams"),V("\\bumpeq","≏","mrel","ams"),V("\\Bumpeq","≎","mrel","ams"),V("\\geqq","≧","mrel","ams"),V("\\eqslantgtr","⪖","mrel","ams"),V("\\ggg","⋙","mrel","ams"),V("\\gtrless","≷","mrel","ams"),V("\\gtreqless","⋛","mrel","ams"),V("\\gtreqqless","⪌","mrel","ams"),V("\\supseteqq","⫆","mrel","ams"),V("\\Supset","⋑","mrel","ams"),V("\\sqsupset","⊐","mrel","ams"),V("\\succcurlyeq","≽","mrel","ams"),V("\\curlyeqsucc","⋟","mrel","ams"),V("\\Vdash","⊩","mrel","ams"),V("\\shortmid","∣","mrel","ams"),V("\\between","≬","mrel","ams"),V("\\pitchfork","⋔","mrel","ams"),V("\\varpropto","∝","mrel","ams"),V("\\backepsilon","∍","mrel","ams"),V("\\llless","⋘","mrel","ams"),V("\\gggtr","⋙","mrel","ams"),V("\\lhd","⊲","mbin","ams"),V("\\rhd","⊳","mbin","ams"),V("\\doteq","≐","mrel"),V("\\doteqdot","≑","mrel","ams"),V("\\Doteq","≑","mrel","ams"),V("\\eqcirc","≖","mrel","ams"),V("\\circeq","≗","mrel","ams"),V("\\lessdot","⋖","mbin","ams"),V("\\gtrdot","⋗","mbin","ams"),V("\\~","~","mrel"),V("\\leftrightarrow","↔","mrel"),V("\\Leftrightarrow","⇔","mrel"),V("\\models","⊨","mrel"),V("\\vdash","⊢","mrel"),V("\\therefore","∴","mrel","ams"),V("\\because","∵","mrel","ams"),V("\\dashv","⊣","mrel"),V("\\roundimplies","⥰","mrel"),V("+","+","mbin"),V("-","−","mbin"),V("−","−","mbin"),V("\\pm","±","mbin"),V("\\mp","∓","mbin"),V("*","∗","mbin"),V("\\times","×","mbin"),V("\\div","÷","mbin"),V("\\surd","√"),V("\\divides","∣","mbin"),V("\\ltimes","⋉","mbin","ams"),V("\\rtimes","⋊","mbin","ams"),V("\\leftthreetimes","⋋","mbin","ams"),V("\\rightthreetimes","⋌","mbin","ams"),V("\\intercal","⊺","mbin","ams"),V("\\dotplus","∔","mbin","ams"),V("\\doublebarwedge","⩞","mbin","ams"),V("\\divideontimes","⋇","mbin","ams"),V("\\centerdot","⋅","mbin","ams"),V("\\cdot","⋅","mbin"),V("\\infty","∞"),V("\\prime","′"),V("\\doubleprime","″"),V("\\angle","∠"),V("`","‘"),V("\\$","$"),V("\\%","%"),V("\\_","_"),V("\\alpha","α"),V("\\beta","β"),V("\\gamma","γ"),V("\\delta","δ"),V("\\epsilon","ϵ"),V("\\varepsilon","ε"),V("\\zeta","ζ"),V("\\eta","η"),V("\\theta","θ"),V("\\vartheta","ϑ"),V("\\iota","ι"),V("\\kappa","κ"),V("\\varkappa","ϰ","mord","ams"),V("\\lambda","λ"),V("\\mu","μ"),V("\\nu","ν"),V("\\xi","ξ"),V("\\omicron","o"),V("\\pi","π"),V("\\varpi","ϖ"),V("\\rho","ρ"),V("\\varrho","ϱ"),V("\\sigma","σ"),V("\\varsigma","ς"),V("\\tau","τ"),V("\\phi","ϕ"),V("\\varphi","φ"),V("\\upsilon","υ"),V("\\chi","χ"),V("\\psi","ψ"),V("\\omega","ω"),V("\\Gamma","Γ"),V("\\Delta","Δ"),V("\\Theta","Θ"),V("\\Lambda","Λ"),V("\\Xi","Ξ"),V("\\Pi","Π"),V("\\Sigma","Σ"),V("\\Upsilon","Υ"),V("\\Phi","Φ"),V("\\Psi","Ψ"),V("\\Omega","Ω"),V("\\digamma","ϝ","mord","ams"),V("\\emptyset","∅"),V("\\varnothing","∅","mord","ams"),V("\\cap","∩","mbin"),V("\\cup","∪","mbin"),V("\\setminus","∖","mbin"),V("\\smallsetminus","∖","mbin","ams"),V("\\complement","∁","mord","ams"),V("\\in","∈","mrel"),V("\\notin","∉","mrel"),V("\\not","̸","mrel"),V("\\ni","∋","mrel"),V("\\owns","∋","mrel"),V("\\subset","⊂","mrel"),V("\\supset","⊃","mrel"),V("\\subseteq","⊆","mrel"),V("\\supseteq","⊇","mrel"),V("\\subsetneq","⊊","mrel","ams"),V("\\varsubsetneq","","mrel","ams"),V("\\subsetneqq","⫋","mrel","ams"),V("\\varsubsetneqq","","mrel","ams"),V("\\nsubset","⊄","mrel","ams"),V("\\nsupset","⊅","mrel","ams"),V("\\nsubseteq","⊈","mrel","ams"),V("\\nsupseteq","⊉","mrel","ams"),V("\\ "," ","spacing"),V("~"," ","spacing"),V("\\space"," ","spacing"),V("\\!",null,"spacing"),V("\\,",null,"spacing"),V("\\:",null,"spacing"),V("\\;",null,"spacing"),V("\\enskip",null,"spacing"),V("\\enspace",null,"spacing"),V("\\quad",null,"spacing"),V("\\qquad",null,"spacing"),V("\\colon",":","mpunct"),V("\\cdotp","⋅","mpunct"),V("\\cdots","⋯","minner"),V("\\ddots","⋱","minner"),V("\\ldots","…","minner"),V("\\mathellipsis","…","minner"),V("\\vdots","⋮"),V("\\ldotp",".","mpunct"),V(",",",","mpunct"),V(";",";","mpunct"),V("\\land","∧","mbin"),V("\\wedge","∧","mbin"),V("\\lor","∨","mbin"),V("\\vee","∨","mbin"),V("\\lnot","¬"),V("\\neg","¬"),V("\\barwedge","⊼","mbin","ams"),V("\\veebar","⊻","mbin","ams"),V("\\nor","⊻","mbin","ams"),V("\\curlywedge","⋏","mbin","ams"),V("\\curlyvee","⋎","mbin","ams"),V("\\square","□","mord","ams"),V("\\Box","□","mord","ams"),V("\\blacksquare","■","mord","ams"),V("\\boxminus","⊟","mbin","ams"),V("\\boxplus","⊞","mbin","ams"),V("\\boxtimes","⊠","mbin","ams"),V("\\boxdot","⊡","mbin","ams"),V("\\circ","∘","mbin"),V("\\bigcirc","◯","mbin"),V("\\bullet","∙","mbin"),V("\\circleddash","⊝","mbin","ams"),V("\\circledast","⊛","mbin","ams"),V("\\oplus","⊕","mbin"),V("\\ominus","⊖","mbin"),V("\\otimes","⊗","mbin"),V("\\odot","⊙","mbin"),V("\\circledcirc","⊚","mbin","ams"),V("\\oslash","⊘","mbin"),V("\\circledS","Ⓢ","mord","ams"),V("\\circledR","®","mord","ams"),V("\\triangle","△"),V("\\bigtriangleup","△","mbin"),V("\\vartriangle","△","mrel","ams"),V("\\triangleq","≜","mrel","ams"),V("\\triangledown","▽","mord","ams"),V("\\bigtriangledown","▽","mbin"),V("\\triangleleft","◃","mbin"),V("\\vartriangleleft","⊲","mrel","ams"),V("\\trianglelefteq","⊴","mrel","ams"),V("\\ntriangleleft","⋪","mrel","ams"),V("\\ntrianglelefteq","⋬","mrel","ams"),V("\\triangleright","▹","mbin"),V("\\vartriangleright","⊳","mrel","ams"),V("\\trianglerighteq","⊵","mrel","ams"),V("\\ntriangleright","⋫","mrel","ams"),V("\\ntrianglerighteq","⋭","mrel","ams"),V("\\blacktriangle","▲","mord","ams"),V("\\blacktriangledown","▼","mord","ams"),V("\\blacktriangleleft","◀","mrel","ams"),V("\\blacktriangleright","▶","mrel","ams"),V("\\/","/"),V("|","∣","textord"),V("\\And","&","mbin"),V("\\imath","ı"),V("\\jmath","ȷ"),V("\\degree","°"),V("'","′"),V('"',"”");const ke=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],_e=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],we=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Me=[0,1.2,1.8,2.4,3],ze=[{type:"small",mathstyle:c.scriptscriptstyle},{type:"small",mathstyle:c.scriptstyle},{type:"small",mathstyle:c.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Se=[{type:"small",mathstyle:c.scriptscriptstyle},{type:"small",mathstyle:c.scriptstyle},{type:"small",mathstyle:c.textstyle},{type:"stack"}],Le=[{type:"small",mathstyle:c.scriptscriptstyle},{type:"small",mathstyle:c.scriptstyle},{type:"small",mathstyle:c.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Ae(e,t,i,a,o,s=""){if(!t||0===t.length||"."===t)return $e(e,o,e);let n;"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),n=we.includes(t)?ze:ke.includes(t)?Le:Se;const l=function(e,t,i,a){for(let s=Math.min(2,3-a.mathstyle.size);st)return i[s]}var o;return i[i.length-1]}(J(t),i,n,o);return"small"===l.type?function(e,t,i,a,o,r=""){const s=$(e,A("Main-Regular",J(t)),o.mathstyle,i,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier/i.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}(e,t,l.mathstyle,a,o,"ML__small-delim "+s):"large"===l.type?be(e,t,l.size,a,o,s):xe(e,t,i,a,o,s)}function Ce(e,t,i,a,o,r=""){if("."===t)return $e(e,o,r);const s=o.mathstyle.metrics.axisHeight*o.mathstyle.sizeMultiplier,n=Math.max(i-s,a+s);return Ae(e,t,Math.max(n/500*901,2*n-.5),!0,o,r)}function $e(e,t,i){return L("","sizing"+t.mathstyle.adjustTo(c.textstyle)+" nulldelimiter "+(i||""),e)}const qe=[[8205,1],[65038,2],[127995,5],[129456,4],[917536,96]];let De;const Te=[127462,127487];function Ke(e){var t;return void 0===De&&(De={},qe.forEach(e=>{for(let t=e[0];t<=e[0]+e[1]-1;t++)De[t]=!0})),null!==(t=De[e])&&void 0!==t&&t}function Ee(e){return e>=Te[0]&&e<=Te[1]}function Ne(e){if(/^[\x20-\xFF]*$/.test(e))return e;const t=[],i=function(e){const t=[];for(let i=0;i=55296&&a<=56319){const t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){const e=a-55296,o=t-56320;a=Math.pow(2,16)+e*Math.pow(2,10)+o,i++}}t.push(a)}return t}(e);let a=0;for(;a=this.s.length}get(){return this.pos";if(this.obeyspaces&&this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]/))return"";const e=this.get();if("\\"===e){if(!this.end()){let e=this.match(/^[a-zA-Z*]+/);if(e)this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]*/);else if(e=this.get()," "===e)return"";return"\\"+e}}else{if("{"===e)return"<{>";if("}"===e)return"<}>";if("^"===e){if("^"===this.peek()){this.get();const e=this.match(/^(\^(\^(\^(\^[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f][0-9a-f]/);if(e)return String.fromCodePoint(parseInt(e.slice(e.lastIndexOf("^")+1),16))}return e}if("#"===e){if(!this.end()){let e=!1;if(/[0-9?]/.test(this.peek())&&(e=!0,this.pos+1"):"<$>"}return e}}function Oe(e,t){var i,a,o,r;let s=[],n=e.next();if(n)if("\\relax"===n);else if("\\noexpand"===n)n=e.next(),n&&s.push(n);else if("\\obeyspaces"===n)e.obeyspaces=!0;else if("\\space"===n||"~"===n)s.push("");else if("\\bgroup"===n)s.push("<{>");else if("\\egroup"===n)s.push("<}>");else if("\\string"===n)n=e.next(),n&&("\\"===n[0]?Array.from(n).forEach(e=>s.push("\\"===e?"\\backslash":e)):"<{>"===n?s.push("\\{"):""===n?s.push("~"):"<}>"===n&&s.push("\\}"));else if("\\csname"===n){for(;""===e.peek();)e.next();let o="",r=!1,l=[];do{if(0===l.length)if(/^#[0-9?]$/.test(e.peek())){const o=e.get().slice(1);l=Fe(null!==(a=null!==(i=null==t?void 0:t[o])&&void 0!==i?i:null==t?void 0:t["?"])&&void 0!==a?a:"\\placeholder{}",t),n=l[0]}else n=e.next(),l=n?[n]:[];r=0===l.length,r||"\\endcsname"!==n||(r=!0,l.shift()),r||(r="<$>"===n||"<$$>"===n||"<{>"===n||"<}>"===n||n.length>1&&"\\"===n[0]),r||(o+=l.shift())}while(!r);o&&s.push("\\"+o),s=s.concat(l)}else if("\\endcsname"===n);else if(n.length>1&&"#"===n[0]){const e=n.slice(1);s=s.concat(Fe(null!==(r=null!==(o=null==t?void 0:t[e])&&void 0!==o?o:null==t?void 0:t["?"])&&void 0!==r?r:"\\placeholder{}",t))}else s.push(n);return s}function Fe(e,t){const i=e.toString().split(/\r?\n/);let a="",o="";for(const e of i){a+=o,o=" ";const t=e.match(/((?:\\%)|[^%])*/);null!==t&&(a+=t[0])}const r=new Be(a);let s=[];do{s=s.concat(Oe(r,t))}while(!r.end());return s}function Pe(e){let t="",i="";for(const a of e)a&&(/[a-zA-Z*]/.test(a[0])&&(i+=t),t=/\\[a-zA-Z]+\*?$/.test(a)?" ":"",i+=a);return i}function Re(e){return Pe(e.map(e=>{var t;return null!==(t={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[e])&&void 0!==t?t:e}))}const Ie={},He={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49};function Ve(e,t){Ie[e]={decompose:t}}function We(t,i){var a,o;function r(e){return"mord"===e.type&&Boolean(e.symbol)&&/^[0-9,.]$/.test(e.symbol)}function s(e){return"text"===e.mode}const n=t instanceof d?t:new d(t),l=!n.atomIdsSettings||!n.atomIdsSettings.groupNumbers;let c=[];if(e(i)){if(0===i.length)return[];if(1===i.length)c=i[0].decompose(n),c&&l&&i[0].isSelected&&c.forEach(e=>e.selected(!0));else{let e=[],t="",d=!0,m=null;for(let p=0;pe.selected(!0))):(e.length>0&&(c=[...c,...e],e=[]),c=c.concat(a))}}e.length>0&&(c=[...c,...e],e=[])}}else i instanceof Ue&&(c=i.decompose(n),c&&l&&i.isSelected&&c.forEach(e=>e.selected(!0)));if(!c||0===c.length)return null;if(n.mathstyle!==n.parentMathstyle){const e=n.mathstyle.sizeMultiplier/n.parentMathstyle.sizeMultiplier;for(const t of c)t.height*=e,t.depth*=e}if(n.size!==n.parentSize){const e=He[n.size]/He[n.parentSize];for(const t of c)t.height*=e,t.depth*=e}return c}class Ue{constructor(e,t,i="",a={}){this.mode=e,this.type=t,this.body=i,a.isPhantom&&this.setPhantom(!0),this.applyStyle(a)}toLatex(t=!1){return function(t,i){if(!(i=void 0!==i&&i)&&t.latex)return t.latex;let a="",o=0,r=0,s=0;const n=t.symbol;let l=[];const c=(t,a)=>function(t,i,a){let o="";return e(i)?o=function(e,t,i){if(0===t.length)return"";if("first"===t[0].type){if(1===t.length)return"";t=t.slice(1)}return 0===t.length?"":Pe(h(t,"cssClass").map(t=>{const a=Pe(h(t,"color").map(t=>Pe(function(e){const t=[];let i=[],a="NONE";return e.forEach(e=>{"first"!==e.type&&(e.mode!==a?(i.length>0&&t.push(i),i=[e],a=e.mode):i.push(e))}),i.length>0&&t.push(i),t}(t).map(t=>function(e,t,i){var a;return(null===(a=f[t[0].mode])||void 0===a?void 0:a.emitLatexRun)?f[t[0].mode].emitLatexRun(e,t,i):""}(e,t,i)))));return!t[0].cssClass||void 0!==e&&e.cssClass===t[0].cssClass?a:"ML__boldsymbol"===t[0].cssClass?"\\boldsymbol{"+a+"}":"ML__emph"===t[0].cssClass?"\\emph{"+a+"}":"\\class{"+t[0].cssClass+"}{"+a+"}"}))}(t,i,a):"number"==typeof i||"boolean"==typeof i?o=i.toString():"string"==typeof i?o=i.replace(/\s/g,"~"):null!=i&&"function"==typeof i.toLatex&&(o=i.toLatex(a)),o}(t,a,i);switch(t.type){case"group":n?a=i?c(t,t.body):t.latex:(a=t.latexOpen||(t.cssId||t.cssClass?"":"{"),t.cssId&&(a+="\\cssId{"+t.cssId+"}{"),"ML__emph"===t.cssClass?a+="\\emph{"+c(t,t.body):(t.cssClass&&(a+="\\class{"+t.cssClass+"}{"),a+=c(t,t.body),t.cssClass&&(a+="}")),t.cssId&&(a+="}"),a+=t.latexClose||(t.cssId||t.cssClass?"":"}"));break;case"array":if(a+="\\begin{"+t.environmentName+"}","array"===t.environmentName){if(a+="{",void 0!==t.colFormat)for(s=0;s0&&(a+=" & "),a+=c(t,t.array[r][o]);r0&&("first"!==this.body[0].type?t=this.body[0].getInitialBaseElement():this.body[1]&&(t=this.body[1].getInitialBaseElement())),t||this}getFinalBaseElement(){return e(this.body)&&this.body.length>0?this.body[this.body.length-1].getFinalBaseElement():this}isCharacterBox(){const e=this.getInitialBaseElement();return/minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(e.type)}setPhantom(e){this.forEach(t=>{t.isPhantom=e})}forEach(t){if(t(this),e(this.body))for(const e of this.body)e&&e.forEach(t);else this.body&&"object"==typeof this.body&&t(this.body);if(this.superscript)for(const e of this.superscript)e&&e.forEach(t);if(this.subscript)for(const e of this.subscript)e&&e.forEach(t);if(this.overscript)for(const e of this.overscript)e&&e.forEach(t);if(this.underscript)for(const e of this.underscript)e&&e.forEach(t);if(this.numer)for(const e of this.numer)e&&e.forEach(t);if(this.denom)for(const e of this.denom)e&&e.forEach(t);if(this.index)for(const e of this.index)e&&e.forEach(t);if(this.array)for(const e of this.array)for(const i of e)for(const e of i)e.forEach(t)}decomposeGroup(e){const t=L(We(e.clone({mathstyle:this.mathstyle?c[this.mathstyle]:void 0}),this.body),"","mord");return this.cssId&&(t.cssId=this.cssId),t.applyStyle({backgroundColor:this.backgroundColor,cssClass:this.cssClass}),t}decomposeOverlap(e){const t=L(We(e,this.body),"inner");return L([t,L(null,"fix")],"left"===this.align?"llap":"rlap","mord")}decomposeRule(e){const t=e.mathstyle,i=L("","rule","mord");let a=this.shift&&!isNaN(this.shift)?this.shift:0;a/=t.sizeMultiplier;const o=this.width/t.sizeMultiplier,r=this.height/t.sizeMultiplier;return i.setStyle("border-right-width",o,"em"),i.setStyle("border-top-width",r,"em"),i.setStyle("margin-top",-(r-a),"em"),i.setStyle("border-color",e.color),i.width=o,i.height=r+a,i.depth=-a,i}decompose(t,i=null){var a;let o=null;if(!this.type||/mord|minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(this.type)?(o="string"==typeof this.body?this.makeSpan(t,this.body):this.makeSpan(t,We(t,this.body)),o.type=b(this.type)?this.type:""):"group"===this.type||"root"===this.type?o=this.decomposeGroup(t):"delim"===this.type?(o=L(null,""),o.delim=this.delim):"sizeddelim"===this.type?o=this.bind(t,function(e,t,i,a,o=""){return"."===t?$e(e,a,o):("<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),ke.includes(t)||we.includes(t)?be(e,t,i,!1,a,o):_e.includes(t)?xe(e,t,Me[i],!1,a,o):null)}(this.cls,this.delim,this.size,t)):"overlap"===this.type?o=this.decomposeOverlap(t):"rule"===this.type?o=this.decomposeRule(t):"msubsup"===this.type?(o=L("​","","mord"),i&&(o.height=i[0].height,o.depth=i[0].depth)):"space"===this.type?o=this.makeSpan(t," "):"spacing"===this.type?"​"===this.body?o=this.makeSpan(t,"​"):" "===this.body?o="math"===this.mode?this.makeSpan(t," "):this.makeSpan(t," "):this.width?(o=L("​","mspace "),this.width>0?o.setWidth(this.width):o.setStyle("margin-left",this.width,"em")):o=L("​","mspace "+(null!==(a={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.symbol])&&void 0!==a?a:"mediumspace")):"mathstyle"===this.type?t.setMathstyle(this.mathstyle):"command"===this.type||"error"===this.type?(o=this.makeSpan(t,this.body),o.classes="",this.isError&&(o.classes+=" ML__error"),this.isSuggestion&&(o.classes+=" ML__suggestion")):o="placeholder"===this.type?this.makeSpan(t,"⬚"):"first"===this.type?this.makeSpan(t,"​"):Ie[this.type].decompose(t,this),!o)return null;if(this.caret&&"msubsup"!==this.type&&"command"!==this.type&&"placeholder"!==this.type&&"first"!==this.type&&(e(o)?"leftright"===this.type&&(this.superscript||this.subscript)||(o[o.length-1].caret=this.caret):o.caret=this.caret),this.containsCaret&&(e(o)?(o[0].classes=(o[0].classes||"")+" ML__contains-caret",o[o.length-1].classes=(o[o.length-1].classes||"")+" ML__contains-caret"):o.classes=(o.classes||"")+" ML__contains-caret"),!this.limits&&(this.superscript||this.subscript))if(e(o)){const e=o[o.length-1];o[o.length-1]=this.attachSupsub(t,e,e.type)}else o=[this.attachSupsub(t,o,o.type)];return e(o)?o:[o]}attachSupsub(e,t,i){if(!this.superscript&&!this.subscript)return t;const a=e.mathstyle;let o=null,r=null;this.superscript&&(o=L(We(e.sup(),this.superscript),a.adjustTo(a.sup()))),this.subscript&&(r=L(We(e.sub(),this.subscript),a.adjustTo(a.sub())));let s,n=0,l=0;this.isCharacterBox()||(n=M(t)-a.metrics.supDrop,l=z(t)+a.metrics.subDrop),s=a===c.displaystyle?a.metrics.sup1:a.cramped?a.metrics.sup3:a.metrics.sup2;const d=.05/(c.textstyle.sizeMultiplier*a.sizeMultiplier);let m=null;if(r&&o){n=Math.max(n,s,o.depth+.25*a.metrics.xHeight),l=Math.max(l,a.metrics.sub2);const i=.04;if(n-z(o)-(M(r)-l)<4*i){l=4*i-(n-o.depth)+M(r);const e=.8*a.metrics.xHeight-(n-z(o));e>0&&(n+=e,l-=e)}m=D(e,[r,l,o,-n],"individualShift"),this.isSymbol&&m.children[0].setLeft(-S(t))}else r&&!o?(l=Math.max(l,a.metrics.sub1,M(r)-.8*a.metrics.xHeight),m=D(e,[r],"shift",l),m.children[0].setRight(d),this.isCharacterBox()&&m.children[0].setLeft(-S(t))):!r&&o&&(n=Math.max(n,s,o.depth+.25*a.metrics.xHeight),m=D(e,[o],"shift",-n),m.children[0].setRight(d));const p=L(m,"msubsup");return this.caret&&(p.caret=this.caret,this.caret=""),L([t,p],"",i)}attachLimits(e,t,i,a){const o=this.superscript?L(We(e.sup(),this.superscript),e.mathstyle.adjustTo(e.mathstyle.sup())):null,r=this.subscript?L(We(e.sub(),this.subscript),e.mathstyle.adjustTo(e.mathstyle.sub())):null;return function(e,t,i,a,o,r){if(!o&&!r)return t;t=L(t);let s=0,n=0;o&&(s=Math.max(.111,.2-z(o))),r&&(n=Math.max(.166,.6-M(r)));let l=null;return r&&o?(l=D(e,[.1,r,n,t,s,o,.1],"bottom",.1+M(r)+z(r)+n+z(t)+i),l.children[0].setLeft(-a),l.children[2].setLeft(a)):r&&!o?(l=D(e,[.1,r,n,t],"top",M(t)-i),l.children[0].setLeft(-a)):!r&&o&&(l=D(e,[t,s,o,.1],"bottom",z(t)+i),l.children[1].setLeft(a)),L(l,"op-limits","mop")}(e,t,i,a,o,r)}bind(e,t){return"first"!==this.type&&"​"!==this.body&&(this.id=function(e){let t;return e.atomIdsSettings&&("number"==typeof e.atomIdsSettings.seed?(t=e.atomIdsSettings.overrideID?e.atomIdsSettings.overrideID:e.atomIdsSettings.seed.toString(36),e.atomIdsSettings.seed+=1):t=Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36)),t}(e),this.id&&(t.attributes||(t.attributes={}),t.attributes["data-atom-id"]=this.id)),t}makeSpan(e,t){const i=L(t,"","textord"===this.type?"mord":b(this.type)?this.type:""),a=this.getStyle();a.letterShapeStyle=e.letterShapeStyle,i.applyStyle(a);const o=(null==a?void 0:a.fontSize)?a.fontSize:"size5";return o!==e.parentSize?(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+o):e.parentSize!==e.size&&(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+e.size),i.maxFontSize=Math.max(i.maxFontSize,e.mathstyle.sizeMultiplier||1),"text"===this.mode&&(i.classes+=" ML__text"),e.mathstyle.isTight()&&(i.isTight=!0),"math"!==this.mode&&(i.italic=0),i.setRight(i.italic),"number"==typeof e.opacity&&i.setStyle("opacity",e.opacity),this.bind(e,i),this.caret&&(this.superscript||this.subscript||(i.caret=this.caret,this.caret="",e.mathstyle.isTight()&&(i.isTight=!0))),i}}function je(t,i=[]){const a=new Ue(t,"root",i||[]);return!e(a.body)||0!==a.body.length&&"first"===a.body[0].type||a.body.unshift(new Ue(t,"first")),a}function Xe(t){return e(t)}function Ge(e){const t=L("​","arraycolsep");return t.setWidth(e),t}function Ze(e,t,i,a){const o=[];for(const r of t){const t=L(We(e,a));t.depth=r.depth,t.height=r.height,o.push(t),o.push(r.pos-i)}return D(e,o,"individualShift")}function Ye(e){return!/^<({|}|\$|\$\$|space)>$/.test(e)}Ve("accent",(t,i)=>{const a=t.mathstyle;let o=We(t.cramp(),i.body);(i.superscript||i.subscript)&&(o=[i.attachSupsub(t,L(o,"","mord"),"mord")]);let r=0;e(i.body)&&1===i.body.length&&i.body[0].isCharacterBox()&&(r=function(t){if(!t)return 0;if(e(t)){let e=0;for(const i of t)e+=i.skew||0;return e}return t.skew}(o));let s,n=Math.min(M(o),a.metrics.xHeight);if(i.svgAccent)s=T(i.svgAccent),n=.111-n;else{const e=A("Main-Regular",i.accent,"math");e.italic=0;const t="⃗"===i.accent?" accent-vec":"";s=L(L(e),"accent-body"+t)}return s=D(t,[o,-n,s]),s.children[1].setLeft(2*r),[L([s],"accent","mord")]}),Ve("array",(e,t)=>{var i;let a=t.colFormat;a&&0===a.length&&(a=[{align:"l"}]),a||(a=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]);const o=[];let r=0;for(const e of a)e.align&&r++;for(const e of t.array){let t=0;for(;t0&&(d+=p,n0&&b.push(D(e,i,"individualShift"))}const v=[];let x=!1,k=!1,_=0,w=!t.leftDelim;for(const t of a){if(t.align&&_>=b.length)break;if(t.align&&_{const i="number"==typeof t.padding?t.padding:.3,a=L(We(e,t.body),"","mord");a.setStyle("vertical-align",-z(a),"em"),a.setStyle("height",0);const o=L(a,"","mord"),r=L("","ML__box");r.setStyle("position","absolute"),r.setStyle("height",M(o)+z(o)+2*i,"em"),0!==i?r.setStyle("width","calc(100% + "+2*i+"em)"):r.setStyle("width","100%"),r.setStyle("top",-i,"em"),r.setStyle("left",-i,"em"),r.setStyle("z-index","-1"),r.setStyle("box-sizing","border-box"),t.backgroundcolor&&r.setStyle("background-color",t.backgroundcolor),t.framecolor&&r.setStyle("border","0.04em solid "+t.framecolor),t.border&&r.setStyle("border",t.border),o.setStyle("display","inline-block"),o.setStyle("height",M(o)+z(o),"em");const s=L([r,o]);return s.setStyle("position","relative"),s.setStyle("vertical-align",-i+z(o),"em"),s.height=M(o)+i,s.depth=z(o)+i,s.setLeft(i),s.setRight(i),s.setStyle("height",s.height+s.depth-2*i,"em"),s.setStyle("top",-i,"em"),s.setStyle("display","inline-block"),[s]}),Ve("enclose",(e,t)=>{const i=L(We(e,t.body),"","mord"),a="number"==typeof t.padding?t.padding:.3,o=L("","ML__notation");o.setStyle("position","absolute"),o.setStyle("height",M(i)+z(i)+2*a,"em"),o.height=M(i)+a,o.depth=z(i)+a,0!==a?o.setStyle("width","calc(100% + "+2*a+"em)"):o.setStyle("width","100%"),o.setStyle("top","0"),o.setStyle("left",-a,"em"),o.setStyle("z-index","-1"),t.backgroundcolor&&o.setStyle("background-color",t.backgroundcolor),t.notation.box&&o.setStyle("border",t.borderStyle),t.notation.actuarial&&(o.setStyle("border-top",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.madruwb&&(o.setStyle("border-bottom",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.roundedbox&&(o.setStyle("border-radius",(M(i)+z(i))/2,"em"),o.setStyle("border",t.borderStyle)),t.notation.circle&&(o.setStyle("border-radius","50%"),o.setStyle("border",t.borderStyle)),t.notation.top&&o.setStyle("border-top",t.borderStyle),t.notation.left&&o.setStyle("border-left",t.borderStyle),t.notation.right&&o.setStyle("border-right",t.borderStyle),t.notation.bottom&&o.setStyle("border-bottom",t.borderStyle);let r="";if(t.notation.horizontalstrike&&(r+='{const i="auto"===t.mathstyle?e.mathstyle:c[t.mathstyle],a=e.clone({mathstyle:i});let o=[];t.numerPrefix&&o.push(L(t.numerPrefix,"mord"));const r=t.continuousFraction?i:i.fracNum();o=o.concat(We(a.clone({mathstyle:r}),t.numer));const s=q(o,e.mathstyle.adjustTo(r));let n=[];t.denomPrefix&&n.push(L(t.denomPrefix,"mord"));const l=t.continuousFraction?i:i.fracDen();n=n.concat(We(a.clone({mathstyle:l}),t.denom));const d=q(n,e.mathstyle.adjustTo(l)),m=t.hasBarLine?.04/i.sizeMultiplier:0;let p,u,h=0;i.size===c.displaystyle.size?(p=i.metrics.num1,h=m>0?3*m:.28,u=i.metrics.denom1):(m>0?(p=i.metrics.num2,h=m):(p=i.metrics.num3,h=.12),u=i.metrics.denom2);const f=s?z(s):0,g=d?M(d):0;let y;if(0===m){const e=p-f-(g-u);e{if(!t.body)return t.leftDelim?new Ue("math","mopen",t.leftDelim).decompose(e):t.rightDelim?new Ue("math","mclose",t.rightDelim).decompose(e):null;const i=e.clone(),a=We(i,t.body),o=i.mathstyle;let r=0,s=0,n=[];if(r=M(a)*o.sizeMultiplier,s=z(a)*o.sizeMultiplier,t.leftDelim&&(n.push(t.bind(e,Ce("mopen",t.leftDelim,r,s,i,"ML__open"))),n[n.length-1].applyStyle(t.getStyle())),a){for(let o=0;o{const i=e.mathstyle,a=We(e.cramp(),t.body),o=.04/i.sizeMultiplier,r=L(null,e.mathstyle.adjustTo(c.textstyle)+" "+t.position+"-line");let s;if(r.height=o,r.maxFontSize=1,"overline"===t.position)s=D(e,[a,3*o,r,o]);else{const t=L(a);s=D(e,[o,r,3*o,t],"top",M(t))}return[L(s,t.position,"mord")]}),Ve("mop",(t,i)=>{var a;const o=t.mathstyle;let r,s=0,n=0;if(i.isSymbol){const e=o.size===c.displaystyle.size&&"\\smallint"!==i.symbol;r=A(e?"Size2-Regular":"Size1-Regular",i.body,"op-symbol "+(e?"large-op":"small-op"),"mop"),s=(r.height-r.depth)/2-o.metrics.axisHeight*o.sizeMultiplier,n=r.italic,r.applyStyle({color:i.isPhantom?"transparent":i.color,backgroundColor:i.isPhantom?"transparent":i.backgroundColor,cssId:i.cssId,cssClass:i.cssClass,letterShapeStyle:t.letterShapeStyle})}else r=e(i.body)?L(We(t,i.body),"","mop"):i.makeSpan(t,i.body);i.bind(t,r),i.isSymbol&&r.setTop(s);let l=r;if(i.superscript||i.subscript){const e=null!==(a=i.limits)&&void 0!==a?a:"auto";l="limits"===e||"auto"===e&&o.size===c.displaystyle.size?i.attachLimits(t,r,s,n):i.attachSupsub(t,r,"mop")}return[l]}),Ve("overunder",(e,t)=>{const i=t.svgBody?T(t.svgBody):We(e,t.body),a=e.clone({mathstyle:c.scriptstyle});let o,r;t.svgAbove?o=T(t.svgAbove):t.overscript&&t.overscript.length>0&&(o=L(We(a,t.overscript),e.mathstyle.adjustTo(a.mathstyle))),t.svgBelow?r=T(t.svgBelow):t.underscript&&t.underscript.length>0&&(r=L(We(a,t.underscript),e.mathstyle.adjustTo(a.mathstyle))),o&&r&&(r.setLeft(.3),r.setRight(.3),o.setLeft(.3),o.setRight(.3));let s=function(e,t,i,a,o){if(!i&&!a)return L(t,"op-over-under",o);let r=0,s=0;i&&(r=Math.max(.111,.2-z(i))),a&&(s=Math.max(.166,.6-M(a)));let n=null;return a&&i?n=D(e,[0,a,s,t,r,i,.166],"bottom",M(a)+z(a)+z(t)):a&&!i?n=D(e,[0,a,s,t],"top",M(t)):i&&!a&&(n=D(e,[z(t),t,Math.max(.166,r),i],"bottom",z(t))),L(n,"op-over-under",o)}(e,i,o,r,b(t.type)?t.type:"mrel");return(t.superscript||t.subscript)&&(s=t.attachLimits(e,s,0,0)),[s]}),Ve("phantom",(e,t)=>{if("vphantom"===t.phantomType){const i=L(We(e,t.body),"inner");return[L([i,L(null,"fix")],"rlap","mord")]}if("hphantom"===t.phantomType||"smash"===t.phantomType||"bsmash"===t.phantomType||"tsmash"===t.phantomType){const i=L(We(e,t.body),"","mord");return"bsmash"!==t.phantomType&&(i.height=0),"tsmash"!==t.phantomType&&(i.depth=0),[L(D(e,[i]),"","mord")]}return[L(We(e,t.body),"","mord")]}),Ve("surd",(e,t)=>{var i;const a=e.mathstyle,o=null!==(i=We(e.cramp(),t.body))&&void 0!==i?i:L(""),r=.04/a.sizeMultiplier;let s=r;a.idM(o)+z(o)+n&&(n=(n+d-(M(o)+z(o)))/2),l.setTop(l.height-M(o)-(n+r));const m=L(null,e.mathstyle.adjustTo(c.textstyle)+" sqrt-line");m.applyStyle(t.getStyle()),m.height=r;const p=D(e,[o,n,m,r]);if(!t.index)return[t.bind(e,L([l,p],"sqrt","mord"))];const u=L(We(e.clone({mathstyle:c.scriptscriptstyle}),t.index),a.adjustTo(c.scriptscriptstyle)),h=L([L(D(e,[u],"shift",-.6*(Math.max(l.height,p.height)-Math.max(l.depth,p.depth))),"root"),l,p],"sqrt","mord");return h.height=l.height,h.depth=l.depth,[t.bind(e,h)]});class Je{constructor(e,t,i,a){this.index=0,this.style={},this.parseMode="math",this.smartFence=!1,this.tabularMode=!1,this.atoms=[],this.endCount=0,this.tokens=e,this.args=t,this.macros=i,this.onError=e=>a({before:Re(this.tokens.slice(this.index,this.index+10)),after:Re(this.tokens.slice(Math.max(0,this.index-10),this.index)),...e})}swapAtoms(e=[]){const t=this.atoms;return this.atoms=e,t}swapParseMode(e){const t=this.parseMode;return this.parseMode=e,t}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}get(){return this.endCount=0,this.index");)e=!0;return e}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){let e=!1;do{const t=this.matchWhitespace(),i=this.match("\\relax");e=!t&&!i}while(!e)}matchKeyword(e){const t=this.index;let i=this.end(),a="";for(;!i;){const t=this.get();Ye(t)?(a+=t,i=this.end()||a.length>=e.length):i=!0}const o=e.toUpperCase()===a.toUpperCase();return o||(this.index=t),o}scanString(){let e="",t=this.end();for(;!t;){if(this.match(""))e+=" ";else{const i=this.peek();"]"===i?t=!0:Ye(i)?e+=this.get():"\\"===i[0]?(this.onError({code:"unbalanced-braces"}),e+=this.get()):t=!0}t=t||this.end()}return e}scanBalancedString(){let e="",t=this.end(),i=1;for(;!t;){if(this.match(""))e+=" ";else{const t=this.get();"<{>"===t?(e+="{",i+=1):"<}>"===t?(i-=1,i>0?e+="}":this.index-=1):e+="<$>"===t?"$":"<$$>"===t?"$$":t}t=0===i||this.end()}return e}matchLiteralArg(){var e;let t="";if(this.match("<{>")){let i=1;for(;i>0&&!this.end();){const a=this.get();"<}>"===a?(i-=1,i>0&&(t+="}")):"<{>"===a?(i+=1,t+="{"):t+=null!==(e={"":" ","<$$>":"$$","<$>":"$"}[a])&&void 0!==e?e:a}}return t}scanColor(){return fe(this.scanString())}scanNumber(e=!0){var t,i;let a=!1,o=this.peek();for(;""===o||"+"===o||"-"===o;)this.get(),"-"===o&&(a=!a),o=this.peek();e=Boolean(e);let r=10,s=/[0-9]/;if(this.match("'"))r=8,s=/[0-7]/,e=!0;else if(this.match('"')||this.match("x"))r=16,s=/[0-9A-F]/,e=!0;else if(this.match("`"))return o=this.get(),o?o.startsWith("\\")&&2===o.length?(a?-1:1)*(null!==(t=o.codePointAt(1))&&void 0!==t?t:0):(a?-1:1)*(null!==(i=o.codePointAt(0))&&void 0!==i?i:0):NaN;let n="";for(;this.hasPattern(s);)n+=this.get();if(!e&&(this.match(".")||this.match(",")))for(n+=".";this.hasPattern(s);)n+=this.get();const l=e?parseInt(n,r):parseFloat(n);return a?-l:l}scanDimen(){const e=this.scanNumber(!1);let t;return this.matchWhitespace(),this.matchKeyword("pt")?t=s(e,"pt"):this.matchKeyword("mm")?t=s(e,"mm"):this.matchKeyword("cm")?t=s(e,"cm"):this.matchKeyword("ex")?t=s(e,"ex"):this.matchKeyword("px")?t=s(e,"px"):this.matchKeyword("em")?t=s(e,"em"):this.matchKeyword("bp")?t=s(e,"bp"):this.matchKeyword("dd")?t=s(e,"dd"):this.matchKeyword("pc")?t=s(e,"pc"):this.matchKeyword("in")?t=s(e,"in"):this.matchKeyword("mu")?t=s(e,"mu"):(this.onError({code:"missing-unit"}),t=s(e,"pt")),t}scanSkip(){const e=this.scanDimen();return this.matchWhitespace(),this.matchKeyword("plus")&&this.scanDimen(),this.matchWhitespace(),this.matchKeyword("minus")&&this.scanDimen(),e}scanColspec(){this.matchWhitespace();const e=[];for(;!this.end()&&"<}>"!==this.peek()&&"]"!==this.peek();){const t=this.get();if("c"===t||"r"===t||"l"===t)e.push({align:t});else if("|"===t)e.push({rule:!0});else if("@"===t){if(this.match("<{>")){const t=this.swapParseMode("math");e.push({gap:this.parse(e=>"<}>"===e)}),this.swapParseMode(t)}this.match("<}>")||this.onError({code:"unbalanced-braces"})}}return e}parseModeSet(){let e="";if(this.match("\\(")&&(e="\\)"),!e&&this.match("\\[")&&(e="\\]"),!e)return null;const t=this.swapParseMode("math"),i=new Ue("math","group");return i.mathstyle="\\)"===e?"textstyle":"displaystyle",i.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(t),i.body&&0!==i.body.length?i:null}parseModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;const t=new Ue("math","group");t.mathstyle="<$>"===e?"textstyle":"displaystyle",t.latexOpen="<$>"===e?"$":"$$",t.latexClose=t.latexOpen;const i=this.swapParseMode("math");return t.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(i),t.body&&0!==t.body.length?t:null}parseEnvironment(){if(!this.match("\\begin"))return null;const e=this.parseArgument("string");if(!e)return null;const t=ee(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const i=[];if(null==t?void 0:t.params)for(const a of t.params)if(a.isOptional)i.push(this.parseOptionalArgument(a.type));else{const t=this.parseArgument(a.type);t||this.onError({code:"missing-argument",arg:e}),i.push(t)}const a=this.parseMode,o=this.tabularMode,r=this.swapAtoms([]);this.tabularMode=t.tabular;const s=[],n=[];let l=[],c=!1;do{if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c&&this.match("\\end")&&(this.parseArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c)if(this.matchColumnSeparator())l.push(this.swapAtoms([]));else if(this.matchRowSeparator()){l.push(this.swapAtoms([]));let e=0;this.matchWhitespace(),this.match("[")&&(e=this.scanDimen(),this.matchWhitespace(),this.match("]")),n.push(e||0),s.push(l),l=[]}else this.atoms=this.atoms.concat(this.parse(e=>"<}>"===e||"&"===e||"\\end"===e||"\\cr"===e||"\\\\"===e))}while(!c);l.push(this.swapAtoms([])),l.length>0&&s.push(l);const d=this.swapAtoms(r);if(this.parseMode=a,this.tabularMode=o,!t.tabular&&0===d.length)return null;if(t.tabular&&0===s.length)return null;const m=new Ue(this.parseMode,"array",d);return Object.assign(m,t.parser(e,i,s)),m.array=s,m.rowGaps=n,m.environmentName=e,m}parse(e){var t;const i=this.style;e||(e=e=>"<}>"===e);let a="",o=null,r=[],s=null;const n=this.swapAtoms([]);for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!a?(a=this.get(),o=te(a,"math",this.macros),o&&(r=this.parseArguments(o)[1]),s=this.swapAtoms([])):this.parseToken();let l;return a?(r.unshift(this.swapAtoms(n)),s&&r.unshift(s),l=[new Ue(this.parseMode,o.type,null!==(t=o.value)&&void 0!==t?t:a.slice(1),o.parse?o.parse(a,r):null)],l[0].symbol=a):l=this.swapAtoms(n),this.style=i,l}parseGroup(){if(!this.match("<{>"))return null;const e=new Ue(this.parseMode,"group");return e.body=this.parse(e=>"<}>"===e),this.match("<}>")||this.onError({code:"unbalanced-braces"}),e.latexOpen="{",e.latexClose="}",e}scanSmartFence(){if(this.matchWhitespace(),!this.match("("))return null;const e=new Ue(this.parseMode,"leftright");e.leftDelim="(",e.inner=!1;const t=this.swapAtoms([]);let i=1;for(;!this.end()&&0!==i;)this.match("(")&&(i+=1),this.match(")")&&(i-=1),0!==i&&this.parseToken();return 0===i&&this.match(")"),e.rightDelim=0===i?")":"?",e.body=this.swapAtoms(t),e}scanDelim(){this.matchWhitespace();const e=this.get();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;let t=".";("\\"===e[0]||Ye(e))&&(t=e);const i=te(t,"math",this.macros);return i?i.mode&&!i.mode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:t}),null):"mopen"===i.type||"mclose"===i.type||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(t)?t:(this.onError({code:"unexpected-delimiter",arg:t}),null):(this.onError({code:"unknown-command",arg:t}),null)}parseLeftRight(){if(this.match("\\right")||this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),null;const e=this.style;let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const i=this.scanDelim();if(!i)return null;const a=this.swapAtoms([]);for(;!this.end()&&!this.match(t);)this.parseToken();this.style=e;const o=this.scanDelim(),r=new Ue(this.parseMode,"leftright","",this.style);return r.leftDelim=i,r.rightDelim=null!=o?o:void 0,r.inner="right"===t,r.body=this.swapAtoms(a),r}parseSupSub(){var e,t;if("math"!==this.parseMode)return!1;let i=!1,a=this.peek();for(;"^"===a||"_"===a||"'"===a;){const o="_"===a?"subscript":"superscript";if(this.match("^")||this.match("_")){const t=this.parseArgument("math");if(t){const a=this.lastSubsupAtom();a[o]=(null!==(e=a[o])&&void 0!==e?e:[]).concat(t),i=!0}}else if(this.match("'")){const e=this.lastSubsupAtom(),a=new Ue(e.mode,"mord","′");a.symbol="\\prime",e.superscript=null!==(t=e.superscript)&&void 0!==t?t:[],e.superscript.push(a),i=!0}a=this.peek()}return i}parseLimits(){if(this.match("\\limits")){const e=this.lastSubsupAtom();return e.limits="limits",e.explicitLimits=!0,!0}if(this.match("\\nolimits")){const e=this.lastSubsupAtom();return e.limits="nolimits",e.explicitLimits=!0,!0}return!1}parseArguments(e){if(!e||!e.params)return[void 0,[]];let t;const i=[];let a=e.infix?2:0;for(;a")){if("delim"===e)return null!==(t=this.scanDelim())&&void 0!==t?t:".";if(/^(math|text)$/.test(e)){const t=this.swapParseMode(e),i=this.parseSimpleToken();return this.swapParseMode(t),i}}const a=this.parseMode;this.parseMode=e;const o=this.swapAtoms([]);if("string"===e)i=this.scanString(),this.skipUntilToken("<}>");else if("balanced-string"===e)i=this.scanBalancedString(),this.skipUntilToken("<}>");else if("number"===e)i=this.scanNumber(),this.skipUntilToken("<}>");else if("dimen"===e)i=this.scanDimen(),this.skipUntilToken("<}>");else if("skip"===e)i=this.scanSkip(),this.skipUntilToken("<}>");else if("colspec"===e)i=this.scanColspec(),this.skipUntilToken("<}>");else if("color"===e)i=this.scanColor()||"#ffffff",this.skipUntilToken("<}>");else if("delim"===e)i=this.scanDelim()||".",this.skipUntilToken("<}>");else{const t=this.index;let a=1;do{const e=this.get();"<}>"===e&&(a-=1),"<{>"===e&&(a+=1)}while(a>0&&!this.end());if(i=function(e,t,i,a){var o;return(null===(o=f[e])||void 0===o?void 0:o.parse)?f[e].parse(t,i,a):null}(e,this.tokens.slice(t,this.index-1),this.onError,{args:this.args,macros:this.macros,smartFence:this.smartFence,style:this.style,parse:(e,t,a)=>{const o=new Je(t,a.args,a.macros,this.onError);return o.parseMode=e,o.style=a.style,i=o.parse(),[i,t.slice(o.index)]}}),!i){this.index=t;do{this.atoms=this.atoms.concat(this.parse())}while(!this.match("<}>")&&!this.end())}}this.parseMode=a;const r=this.swapAtoms(o);return null!=i?i:r}parseOptionalArgument(e){var t;if(e="auto"===e?this.parseMode:e,this.matchWhitespace(),!this.match("["))return null;const i=this.parseMode;this.parseMode=e;const a=this.swapAtoms();let o;for(;!this.end()&&!this.match("]");)if("string"===e)o=this.scanString();else if("number"===e)o=this.scanNumber();else if("dimen"===e)o=this.scanDimen();else if("skip"===e)o=this.scanSkip();else if("colspec"===e)o=this.scanColspec();else if("color"===e)o=null!==(t=this.scanColor())&&void 0!==t?t:"#ffffff";else if("bbox"===e){const e=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/),t={};for(const i of e){const e=fe(i);if(e)t.backgroundcolor=e;else{const e=i.match(/^\s*([0-9.]+)\s*([a-z][a-z])/);if(e)t.padding=s(e[1],e[2]);else{const e=i.match(/^\s*border\s*:\s*(.*)/);e&&(t.border=e[1])}}}o=t}else this.atoms=this.atoms.concat(this.parse(e=>"]"===e));this.parseMode=i;const r=this.swapAtoms(a);return null!=o?o:r}parseSimpleToken(){const t=this.get();if(!t)return null;let i=null;if(""===t)"text"===this.parseMode&&(i=new Ue("text",""," ",this.style),i.symbol=" ");else if("\\"===t[0]){if("\\placeholder"===t)i=new Ue(this.parseMode,"placeholder",this.parseArgument("string"),this.style),i.captureSelection=!0;else if("\\char"===t){const e=this.index;let t=Math.floor(this.scanNumber(!0));(!isFinite(t)||t<0||t>1114111)&&(t=10067),i=new Ue(this.parseMode,"math"===this.parseMode?"mord":"",String.fromCodePoint(t)),i.symbol="\\char",i.latex="\\char"+Re(this.tokens.slice(e,this.index))}else if("\\hskip"===t||"\\kern"===t){const e=this.scanSkip();isFinite(e)&&(i=new Ue(this.parseMode,"spacing",null,this.style),i.width=e,i.symbol=t,i.latex=t)}else if(i=this.scanMacro(t),!i){const e=te(t,this.parseMode,{});if(!e)return this.onError({code:"unknown-command",arg:t}),i=new Ue("math","error",t),i.symbol=t,i.latex=t,[i];if(e.mode&&!e.mode.includes(this.parseMode))return this.onError({code:"invalid-command",arg:t}),i=new Ue("math","error",t),i.symbol=t,i.latex=t,[i];const a=this.index,[o,r]=this.parseArguments(e);if(!r)return null;if(e.infix)this.onError({code:"too-many-infix-commands",arg:t});else{if(e.parse){const a=e.parse(t,r);if(a.type)i=new Ue(this.parseMode,e.type,o?this.parseArgument(o):null,{...this.style,...a});else{const e=this.parseMode;if(a.mode&&(this.parseMode=a.mode,delete a.mode),a.mathstyle){this.parseMode="math";const e=new Ue("math","mathstyle");e.mathstyle=a.mathstyle,this.atoms.push(e)}if(o){const e=this.style;this.style={...this.style,...a},i=this.parseArgument(o),this.style=e}else this.style={...this.style,...a};this.parseMode=e}}else{const a={...this.style,variant:e.variant||this.style.variant,variantStyle:e.variantStyle||this.style.variantStyle};i=new Ue(this.parseMode,e.type||"mop",e.value||t,a)}if(i instanceof Ue&&!/^\\(llap|rlap|class|cssId)$/.test(t)){i.symbol=t;const e=Re(this.tokens.slice(a,this.index));if(e&&(i.latex=i.symbol+e),i.isFunction&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}}}}else if(Ye(t)){const e=te(t,this.parseMode,this.macros);if(e){const a={...this.style};i=new Ue(this.parseMode,e.type,e.value||t,a),e.isFunction&&(i.isFunction=!0)}else i=new Ue(this.parseMode,"math"===this.parseMode?"mord":"",t,this.style);if(i.symbol=t,i.latex=Z(this.parseMode,t),(null==e?void 0:e.isFunction)&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}else"<}>"===t?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:t});return i&&!e(i)?[i]:i}scanMacro(e){var t;const i=e.slice(1);if(!this.macros||!this.macros[i])return null;const a=this.index,o=[];let r,s=0;"string"==typeof this.macros[i]?(r=this.macros[i],/(^|[^\\])#1/.test(r)&&(s=1),/(^|[^\\])#2/.test(r)&&(s=2),/(^|[^\\])#3/.test(r)&&(s=3),/(^|[^\\])#4/.test(r)&&(s=4),/(^|[^\\])#5/.test(r)&&(s=5),/(^|[^\\])#6/.test(r)&&(s=6),/(^|[^\\])#7/.test(r)&&(s=7),/(^|[^\\])#8/.test(r)&&(s=8),/(^|[^\\])#9/.test(r)&&(s=9)):(r=this.macros[i].def,s=this.macros[i].args||0);for(let e=1;e<=s;e++)o[e]=this.matchLiteralArg();o["?"]=null===(t=this.args)||void 0===t?void 0:t["?"];const n=new Ue(this.parseMode,"group",Qe(r,this.parseMode,o,this.macros,!1,this.onError));return n.captureSelection=!0,n.symbol=e,n.latex=e+Re(this.tokens.slice(a,this.index)),n}parseToken(){let t=this.parseEnvironment()||this.parseModeShift()||this.parseModeSet()||this.parseGroup()||this.parseLeftRight();return!(t||!this.parseSupSub()&&!this.parseLimits())||(t||(t=this.parseSimpleToken()),e(t)?this.atoms=this.atoms.concat(t):t&&this.atoms.push(t),null!==t)}}function Qe(e,t,i,a,o=!1,r){let s=[];const n=new Je(Fe(e,i),i,a,t=>{"function"==typeof r&&r({...t,latex:e})});for(n.parseMode=t||"math",o&&(n.smartFence=!0);!n.end();){const e=n.parse();e&&(s=s.concat(e))}return s}var et,tt;const it=null!==(tt=null===(et=document.currentScript)||void 0===et?void 0:et.src)&&void 0!==tt?tt:function(){const e=String((new Error).stack).replace(/^Error.*\n/,"").split("\n");if(0===e.length)return"";const t=e[0].match(/http.*js/);return t?t[0]:""}();async function at(e,t){var i;if((null===(i=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))||void 0===i||!i)&&"fonts"in document){const i=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"];let a=!1;if(!/firefox/i.test(navigator.userAgent))try{a=i.every(e=>document.fonts.check("16px "+e))}catch(e){a=!1}if(!a){if(document.body.classList.contains("ML__fonts-loading"))return;document.body.classList.add("ML__fonts-loading");const i=new URL(null!=e?e:"./fonts",it).toString(),a=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular",{style:"italic"}],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(e=>function(e,t,i={}){return new FontFace(e,`url(${t}.woff2) format('woff2'), url(${t}.woff) format('woff')`,i)}(e[0].replace(/-[a-zA-Z]+$/,""),i+"/"+e[0],e[1]));try{(await Promise.all(a.map(e=>{try{return e.load()}catch(e){"function"==typeof t&&t({code:"font-not-found",arg:e})}}))).forEach(e=>document.fonts.add(e)),document.body.classList.remove("ML__fonts-loading")}catch(e){}}}}function ot(e,t){var i,a;if(!t)return null;let o=null!==(i=null==e?void 0:e.getRootNode())&&void 0!==i?i:null===document||void 0===document?void 0:document.head;if(!o)return null;o===document&&(o=document.head);const r=function(e){let t=0;if(0===e.length)return t;for(let i=0;i{var e;const t=document.head.querySelector(`style[data-id="${r}"]`);if(t){const i=parseFloat(null!==(e=t.getAttribute("data-refcount"))&&void 0!==e?e:"0");1===i?t.remove():t.setAttribute("data-refcount",Number(i-1).toString())}}}}function rt(e){return 0===e.length||1===e.length&&"first"===e[0].type}function st(e){const t=e.siblings();for(let e=t.length-1;e>=0;e--)t[e].isSuggestion&&t.splice(e,1)}function nt(e){let t=1,i=e.ancestor(t);for(;i;)i.latex=void 0,t+=1,i=e.ancestor(t)}function lt(e,t,i={accessibleAtomsOnly:!1}){const a={...t},o=i.accessibleAtomsOnly?e.lastPosition-1:e.lastPosition;return-1===a.end?a.end=o:isNaN(a.end)?a.end=a.start:a.end=Math.min(a.end,o),a.start1&&(t.extent=parseInt(i[1]));const a=i[0].split("/");for(const e of a){const i=e.match(/([^:]*):(.*)/);i&&t.path.push({relation:i[1],offset:parseInt(i[2])})}return t}function mt(e,t){let i=0,a=-1,o=!1;for(;!o;)a+=1,o=a>=e.length||a>=t.length,o=o||!(e[a].relation===t[a].relation&&e[a].offset===t[a].offset);return i=a===e.length&&a===t.length?0:a+1===e.length&&a+1===t.length&&e[a].relation===t[a].relation?1:2,i}function pt(e){return dt(ct(e)).path}function ut(e,t){let i=0;for(let a=0;a0;)a.col+=1,(!e[a.row]||a.col>=e[a.row].length)&&(a.col=0,a.row+=1),i-=1;return a}function ft(t,i,a=!0){var o;let r;return"object"!=typeof i&&(i=ht(t,i)),e(t[i.row])&&(r=null!==(o=t[i.row][i.col])&&void 0!==o?o:null),a&&r&&(0===r.length||"first"!==r[0].type)&&r.unshift(new Ue("math","first")),r}function gt(e){let t=0,i=0,a=1;for(const t of e)i+=1,t.length>a&&(a=t.length);return t=i*a,t}function yt(e,t,i){const a={...t};if(a.row+=i,a.row<0){if(a.col+=i,a.row=e.length-1,a.col<0)return null;for(;a.row>=0&&!ft(e,a);)a.row-=1;if(a.row<0)return null}else if(a.row>=e.length){for(a.col+=i,a.row=0;a.rowe.length-1)return null}return a}const bt={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML_bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},vt={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[0-9A-Z ]$/,fraktur:/^[0-9A-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/,"sans-serif":/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/},xt=/^[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5]$/,kt=[/^[a-z]$/,/^[A-Z]$/,xt,/^[\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9]$/],_t={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]};g("math",{emitLatexRun:function(e,t,i){let a=e.variant;return e.variantStyle&&"up"!==e.variantStyle&&(a+="-"+e.variantStyle),Pe(h(t,"color").map(t=>{const o=Pe(h(t,"variant").map(t=>{let o=t[0].variant;if(t[0].variantStyle&&"up"!==t[0].variantStyle&&(o+="-"+t[0].variantStyle),t.every(t=>{const i=te(t.symbol,e.mode,null);if(!i||!i.variant&&!i.variantStyle)return!1;let a=t.variant;return t.variantStyle&&"up"!==t.variantStyle&&(a+="-"+t.variantStyle),a===o}))return Pe(t.map(e=>e.toLatex(i)));let r="";return o&&o!==a&&(r={calligraphic:"\\mathcal{",fraktur:"\\mathfrak{","double-struck":"\\mathbb{",script:"\\mathscr{",monospace:"\\mathtt{","sans-serif":"\\mathsf{",normal:"\\mathrm{","normal-italic":"\\mathit{","normal-bold":"\\mathbf{","normal-bolditalic":"\\mathbfit{",ams:"","ams-italic":"\\mathit{","ams-bold":"\\mathbf{","ams-bolditalic":"\\mathbfit{",main:"","main-italic":"\\mathit{","main-bold":"\\mathbf{","main-bolditalic":"\\mathbfit{"}[o]),r+Pe(t.map(e=>e.toLatex(i)))+(r?"}":"")}));return!t[0].color||e&&e.color===t[0].color?o:"\\textcolor{"+ge(t[0].color)+"}{"+o+"}"}))},applyStyle:function(e,t){const i="auto"!==t.letterShapeStyle&&t.letterShapeStyle?t.letterShapeStyle:"tex";let a=t.variant||"normal",o=t.variantStyle||"";"normal"===a&&!o&&/\u00a3|\u0131|\u0237/.test(e.body)&&(a="main",o="italic"),"normal"!==a||o||1!==e.body.length||kt.forEach((t,a)=>{t.test(e.body)&&"it"===_t[i][a]&&(o="italic")}),"up"===o&&(o="");const r=o?a+"-"+o:a,[s,n]=bt[r];return vt[a]&&!vt[a].test(e.body)?(e.body=G(e.body,a,o),e.variant="",e.variantStyle="",null):(xt.test(e.body)&&(e.classes+=" lcGreek"),n&&(e.classes+=" "+n),s)}});const wt={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"};g("text",{emitLatexRun:function(e,t,i){const a=function(e,t,i){return Pe(h(t,"color").map(t=>{const i=function(e,t,i){return function(e,t,i){return Pe(h(t,"fontFamily").map(e=>{const t=function(e,t,i){return Pe(h(t,"fontSize").map(e=>{const t=function(e,t,i){return Pe(h(t,"fontSeries").map(e=>{const t=function(e,t,i){return Pe(h(t,"fontShape").map(e=>{const t=function(e,t,i){let a=!1;return Pe(t.map(e=>{let t="",i="";return e.latex?t=e.latex:"string"==typeof e.body?t=Y("text",e.body):e.symbol&&(t=e.symbol.replace(/\\/g,"\\backslash ")),!a||t&&!/^[a-zA-Z0-9*]/.test(t)||(i="{}"),a=/\\[a-zA-Z0-9]+\*?$/.test(t),i+t}))}(0,e);return"it"===e[0].fontShape?"\\textit{"+t+"}":"sl"===e[0].fontShape?"\\textsl{"+t+"}":"sc"===e[0].fontShape?"\\textsc{"+t+"}":"n"===e[0].fontShape?"\\textup{"+t+"}":e[0].fontShape?"\\fontshape{"+e[0].fontShape+"}"+t:t}))}(0,e);return"b"===e[0].fontSeries?"\\textbf{"+t+"}":"l"===e[0].fontSeries?"\\textlf{"+t+"}":"m"===e[0].fontSeries?"\\textmd{"+t+"}":e[0].fontSeries?"\\fontseries{"+e[0].fontSeries+"}"+t:t}))}(0,e),i={size1:"tiny",size2:"scriptsize",size3:"footnotesize",size4:"small",size5:"normalsize",size6:"large",size7:"Large",size8:"LARGE",size9:"huge",size10:"Huge"}[e[0].fontSize]||"";return i?"\\"+i+" "+t:t}))}(0,e),i={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[e[0].fontFamily]||"";return i?"\\"+i+"{"+t+"}":e[0].fontFamily?"\\fontfamily{"+e[0].fontFamily+"}"+t:t}))}(0,t)}(0,t);return!t[0].color||"none"===t[0].color||e&&e.color===t[0].color?i:"\\textcolor{"+ge(t[0].color)+"}{"+i+"}"}))}(e,t);return t.every(e=>e.fontSeries||e.fontShape||e.fontFamily)&&t[0].mode===e.mode?a:`\\text{${a}}`},applyStyle:function(e,t){const i=t.fontFamily;if(wt[i]?e.classes+=" "+wt[i]:i&&e.setStyle("font-family",i),t.fontShape&&(e.classes+=" "+({it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape]||"")),t.fontSeries){const i=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);i&&(e.classes+=" "+({ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[i[1]||""]||""),e.classes+=" "+({uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[i[2]||""]||""))}return"Main-Regular"},parse:(e,t,i)=>function(e,t,i){let a,o=[];for(;e.length>0;){const r=e.shift();if(""===r)a=new Ue("text",""," ",i.style),a.symbol=" ",o.push(a);else if("\\"===r[0]){let t;e.unshift(r),[t,e]=i.parse("text",e,i),o=[...o,...t]}else if("<$>"===r||"<$$>"===r){const t=e.slice(0,e.findIndex(e=>e===r));e=e.slice(t.length+1);const[a]=i.parse("math",t,i);o=[...o,...a]}else if("<{>"===r||"<}>"===r);else{const e=te(r,"text",i.macros);!e||e.mode&&!e.mode.includes("text")?t({code:"unexpected-token"}):(a=new Ue("text",e?e.type:"",e?e.value:r,i.style),a.symbol=r,a.latex=U("text",r),o.push(a))}}return[o,e]}(e,t,i)[0]}),le(["ce","pu"],"{chemformula:balanced-string}",null,(e,t)=>({type:"group",mode:"chem",body:Qe(zt.go(Mt.go(t[0],"\\pu"===e?"pu":"ce"))),latexOpen:"\\"+e+"{",latexClose:"}"}));var Mt={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var i,a="0",o={parenthesisLevel:0};e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var r=10,s=[];;){i!==e?(r=10,i=e):r--;var n=Mt.stateMachines[t],l=n.transitions[a]||n.transitions["*"];e:for(var c=0;c0))return s;if(m.revisit||(e=d.remainder),!m.toContinue)break e}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var i=0;i":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return Mt.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return Mt.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return Mt.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return Mt.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return Mt.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return Mt.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var i=Mt.patterns.findObserveGroups(e,"","$","$","");return i&&(t=i.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,i,a,o,r,s,n,l,c){var d=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var i=e.match(t);return i?i[0]:null},m=d(e,t);if(null===m)return null;if(e=e.substr(m.length),null===(m=d(e,i)))return null;var p=function(e,t,i){for(var a=0;t":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var i;if((e.d||"").match(/^[0-9]+$/)){var a=e.d;e.d=void 0,i=this.output(e),e.b=a}else i=this.output(e);return Mt.actions["o="](e,t),i},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var i=[];return Mt.concatArray(i,this.output(e)),Mt.concatArray(i,Mt.actions.bond(e,t,"-")),i}e.d=t},"- after o/d":function(e,t,i){var a=Mt.patterns.match_("orbital",e.o||""),o=Mt.patterns.match_("one lowercase greek letter $",e.o||""),r=Mt.patterns.match_("one lowercase latin letter $",e.o||""),s=Mt.patterns.match_("$one lowercase latin letter$ $",e.o||""),n="-"===t&&(a&&""===a.remainder||o||r||s);!n||e.a||e.b||e.p||e.d||e.q||a||!r||(e.o="$"+e.o+"$");var l=[];return n?(Mt.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(a=Mt.patterns.match_("digits",e.d||""),i&&a&&""===a.remainder?(Mt.concatArray(l,Mt.actions["d="](e,t)),Mt.concatArray(l,this.output(e))):(Mt.concatArray(l,this.output(e)),Mt.concatArray(l,Mt.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:Mt.go(t,"o")}},comma:function(e,t){var i=t.replace(/\s*$/,"");return i!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:i}:{type_:"comma enumeration M",p1:i}},output:function(e,t,i){var a,o,r;for(var s in e.r?(o="M"===e.rdt?Mt.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:Mt.go(e.rd),r="M"===e.rqt?Mt.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:Mt.go(e.rq),a={type_:"arrow",r:e.r,rd:o,rq:r}):(a=[],(e.a||e.b||e.p||e.o||e.q||e.d||i)&&(e.sb&&a.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===i?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&Mt.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),a.push({type_:"chemfive",a:Mt.go(e.a,"a"),b:Mt.go(e.b,"bd"),p:Mt.go(e.p,"pq"),o:Mt.go(e.o,"o"),q:Mt.go(e.q,"pq"),d:Mt.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType}))),e)"parenthesisLevel"!==s&&"beginsWithBond"!==s&&delete e[s];return a},"oxidation-output":function(e,t){var i=["{"];return Mt.concatArray(i,Mt.go(t,"oxidation")),i.push("}"),i},"frac-output":function(e,t){return{type_:"frac-ce",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Mt.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,i){return{type_:"operator",kind_:i||t}}}},a:{transitions:Mt.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Mt.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var i in e)delete e[i];return t}}}},pq:{transitions:Mt.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:Mt.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Mt.go(t[1],"pq")}}}},bd:{transitions:Mt.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Mt.go(t[1],"bd")}}}},oxidation:{transitions:Mt.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"tex-math tight":{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"9,9":{transitions:Mt.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),t[1]&&(Mt.concatArray(i,Mt.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?Mt.concatArray(i,Mt.go(t[2],"pu-9,9")):i.push(t[2])),t[3]=t[4]||t[3],t[3]&&(t[3]=t[3].trim(),"e"===t[3]||"*"===t[3].substr(0,1)?i.push({type_:"cdot"}):i.push({type_:"times"}))),t[3]&&i.push("10^{"+t[5]+"}"),i},"number^":function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),Mt.concatArray(i,Mt.go(t[1],"pu-9,9")),i.push("^{"+t[2]+"}"),i},operator:function(e,t,i){return{type_:"operator",kind_:i||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,i=Mt.patterns.match_("{(...)}",e.d||"");i&&""===i.remainder&&(e.d=i.match_);var a=Mt.patterns.match_("{(...)}",e.q||"");if(a&&""===a.remainder&&(e.q=a.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:Mt.go(e.d,"pu"),q:Mt.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:o.d,p2:o.q}:(t=o.d,o.d.length>1||o.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),Mt.concatArray(t,o.q))}else t=Mt.go(e.d,"pu-2");for(var r in e)delete e[r];return t}}},"pu-2":{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var i=Mt.patterns.match_("{(...)}",e.rm||"");t=i&&""===i.remainder?Mt.go(i.match_,"pu"):{type_:"rm",p1:e.rm}}for(var a in e)delete e[a];return t}}},"pu-9,9":{transitions:Mt.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var i=e.text_.length%3;0===i&&(i=3);for(var a=e.text_.length-3;a>0;a-=3)t.push(e.text_.substr(a,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,i)),t.reverse()}else t.push(e.text_);for(var o in e)delete e[o];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var i=e.text_.length-3,a=0;a":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"rightleftarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"rightequilibrium";case"<<=>":return"leftequilibrium";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";case"~=":case"~--":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"-~-":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};const St={"''":{mode:"math",value:"^{\\doubleprime}"},alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:{mode:"math",value:"\\pi"},"pi ":{mode:"text",value:"\\pi "},Pi:{mode:"math",value:"\\Pi"},theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:{mode:"math",value:"\\nabla"},grad:{mode:"math",value:"\\nabla"},del:{mode:"math",value:"\\partial"},"∞":"\\infty",oo:{mode:"math",after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"∑":{mode:"math",value:"\\sum"},sum:{mode:"math",value:"\\sum_{#?}^{#?}"},prod:{mode:"math",value:"\\prod_{#?}^{#?}"},sqrt:{mode:"math",value:"\\sqrt{#?}"},"∆":{mode:"math",value:"\\differentialD"},"∂":{mode:"math",value:"\\differentialD"},arcsin:{mode:"math",value:"\\arcsin"},arccos:{mode:"math",value:"\\arccos"},arctan:{mode:"math",value:"\\arctan"},sin:{mode:"math",value:"\\sin"},sinh:{mode:"math",value:"\\sinh"},cos:{mode:"math",value:"\\cos"},cosh:{mode:"math",value:"\\cosh"},tan:{mode:"math",value:"\\tan"},tanh:{mode:"math",value:"\\tanh"},sec:{mode:"math",value:"\\sec"},csc:{mode:"math",value:"\\csc"},cot:{mode:"math",value:"\\cot"},log:{mode:"math",value:"\\log"},ln:{mode:"math",value:"\\ln"},exp:{mode:"math",value:"\\exp"},lim:{mode:"math",value:"\\lim_{#?}"},dx:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:{mode:"math",value:"\\forall"},EE:{mode:"math",value:"\\exists"},"!EE":{mode:"math",value:"\\nexists"},"&&":{mode:"math",value:"\\land"},xin:{mode:"math",after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},in:{mode:"math",after:"nothing+letter+closefence",value:"\\in"},"!in":{mode:"math",value:"\\notin"},NN:"\\N",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",PP:"\\P",xx:{mode:"math",value:"\\times"},"+-":{mode:"math",value:"\\pm"},"!=":{mode:"math",value:"\\ne"},">=":{mode:"math",value:"\\ge"},"<=":{mode:"math",value:"\\le"},"<<":{mode:"math",value:"\\ll"},">>":{mode:"math",value:"\\gg"},"~~":{mode:"math",value:"\\approx"},"≈":{mode:"math",value:"\\approx"},"?=":{mode:"math",value:"\\questeq"},"÷":{mode:"math",value:"\\div"},"¬":{mode:"math",value:"\\neg"},":=":{mode:"math",value:"\\coloneq"},"::":{mode:"math",value:"\\Colon"},"(:":{mode:"math",value:"\\langle"},":)":{mode:"math",value:"\\rangle"},beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},"eta ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta "},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},"mu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu "},nu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},"nu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu "},"µ":"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega","Ω":"\\omega",forall:{mode:"math",value:"\\forall"},exists:{mode:"math",value:"\\exists"},"!exists":{mode:"math",value:"\\nexists"},":.":{mode:"math",value:"\\therefore"},liminf:"\\operatorname*{lim~inf}_{#?}",limsup:"\\operatorname*{lim~sup}_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:{mode:"math",value:"\\mod"},max:{mode:"math",value:"\\max"},min:{mode:"math",value:"\\min"},erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:{mode:"math",value:"\\operatorname{bessel}"},mean:{mode:"math",value:"\\operatorname{mean}"},median:{mode:"math",value:"\\operatorname{median}"},fft:{mode:"math",value:"\\operatorname{fft}"},lcm:{mode:"math",value:"\\operatorname{lcm}"},gcd:{mode:"math",value:"\\operatorname{gcd}"},randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:{mode:"math",value:"\\operatorname{Re}"},Im:{mode:"math",value:"\\operatorname{Im}"},mm:{mode:"math",after:"nothing+digit",value:"\\operatorname{mm}"},cm:{mode:"math",after:"nothing+digit",value:"\\operatorname{cm}"},km:{mode:"math",after:"nothing+digit",value:"\\operatorname{km}"},kg:{mode:"math",after:"nothing+digit",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","->":"\\to","|->":"\\mapsto","--\x3e":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","{":"\\{","}":"\\}","*":"\\cdot"};function Lt(e,t,i){var a;return function(e,t){if(!t)return"";if("string"==typeof t)return t;if(!e)return t.value;let i=!1,a=!1,o=!1,r=!1,s=!1,n=!1,l=!1,c=!1,d=!1,m=!1,p=!1,u=!1,h=!1,f=!1,g=e[e.length-1],y=e.length-1;for(;g&&/msubsup|placeholder/.test(g.type);)y-=1,g=e[y];if(i=!g||"first"===g.type,g){if(void 0!==t.mode&&g.mode!==t.mode)return"";h="text"===g.mode,a=!h&&"mord"===g.type&&I.test(g.body),o=!h&&"mord"===g.type&&/[0-9]+$/.test(g.body),r=!h&&g.isFunction,s="genfrac"===g.type,n="surd"===g.type,l="mbin"===g.type,c="mrel"===g.type,d="mpunct"===g.type||"minner"===g.type,m=Boolean(g.array),p="mopen"===g.type,u="mclose"===g.type||"leftright"===g.type,f="space"===g.type}return void 0!==t.after?/nothing/.test(t.after)&&i||/letter/.test(t.after)&&a||/digit/.test(t.after)&&o||/function/.test(t.after)&&r||/frac/.test(t.after)&&s||/surd/.test(t.after)&&n||/binop/.test(t.after)&&l||/relop/.test(t.after)&&c||/punct/.test(t.after)&&d||/array/.test(t.after)&&m||/openfence/.test(t.after)&&p||/closefence/.test(t.after)&&u||/text/.test(t.after)&&h||/space/.test(t.after)&&f?t.value:"":t.value}(e,null!==(a=null==i?void 0:i[t])&&void 0!==a?a:St[t])}function At(e,t){if(!e)return["latex",""];if(e.length<=1)return["latex",e];if(!t||"ASCIIMath"!==t.format){const t=e.trim();if(t.startsWith("$$")&&t.endsWith("$$")||t.startsWith("\\[")&&t.endsWith("\\]")||t.startsWith("\\(")&&t.endsWith("\\)"))return["latex",t.substring(2,t.length-2)];if(t.startsWith("$")&&t.endsWith("$"))return["latex",t.substring(1,t.length-1)];if(e=e.replace(/\\\\([^\s\n])/g,"\\$1"),/\\/.test(e))return["latex",e]}return e=(e=(e=(e=(e=(e=e.replace(/\u2061/gu,"")).replace(/\u3016/gu,"{")).replace(/\u3017/gu,"}")).replace(/([^\\])sinx/g,"$1\\sin x")).replace(/([^\\])cosx/g,"$1\\cos x ")).replace(/\u2013/g,"-"),[(null==t?void 0:t.format)||"ASCIIMath",Ct(e,null!=t?t:{})]}function Ct(e,t){var i,a,o,r,s,n,l;if(!e)return"";let c,d=!1;if(d||"^"!==e[0]&&"_"!==e[0]||(c=$t(e.substr(1),{inlineShortcuts:null!==(i=null==t?void 0:t.inlineShortcuts)&&void 0!==i?i:{},noWrap:!0}),e=e[0]+"{"+c.match+"}",e+=Ct(c.rest,t),d=!0),!d&&(c=e.match(/^(sqrt|\u221a)(.*)/),c)&&(c=$t(c[2],{inlineShortcuts:null!==(a=null==t?void 0:t.inlineShortcuts)&&void 0!==a?a:{},noWrap:!0}),e="\\sqrt{"+(c.match||"\\placeholder{}")+"}",e+=Ct(c.rest,t),d=!0),!d&&(c=e.match(/^(\\cbrt|\u221b)(.*)/),c)&&(c=$t(c[2],{inlineShortcuts:null!==(o=null==t?void 0:t.inlineShortcuts)&&void 0!==o?o:{},noWrap:!0}),e="\\sqrt[3]{"+(c.match||"\\placeholder{}")+"}",e+=Ct(c.rest,t),d=!0),d||(c=e.match(/^abs(.*)/),c&&(c=$t(c[1],{inlineShortcuts:null!==(r=null==t?void 0:t.inlineShortcuts)&&void 0!==r?r:{},noWrap:!0}),e="\\left|"+c.match+"\\right|",e+=Ct(c.rest,t),d=!0)),d||(c=e.match(/^["”“](.*?)["”“](.*)/),c&&(e="\\text{"+c[1]+"}",e+=Ct(c[2],t),d=!0)),d||(c=e.match(/^([^a-zA-Z({[_^\\\s"]+)(.*)/),c&&(e=qt(c[1],t),e+=Ct(c[2],t),d=!0)),!d&&/^(f|g|h)[^a-zA-Z]/.test(e)&&(c=$t(e.substring(1),{inlineShortcuts:null!==(s=t.inlineShortcuts)&&void 0!==s?s:{},noWrap:!0}),e="("===e[1]?e[0]+"\\mleft("+c.match+"\\mright)":e[0]+c.match,e+=Ct(c.rest,t),d=!0),d||(c=e.match(/^([a-zA-Z]+)(.*)/),c&&(e=qt(c[1],t),e+=Ct(c[2],t),d=!0)),!d)if(c=$t(e,{inlineShortcuts:null!==(n=t.inlineShortcuts)&&void 0!==n?n:{},noWrap:!0}),c.match&&"/"===c.rest[0]){const i=$t(c.rest.substr(1),{inlineShortcuts:null!==(l=t.inlineShortcuts)&&void 0!==l?l:{},noWrap:!0});i.match&&(e="\\frac{"+c.match+"}{"+i.match+"}"+Ct(i.rest,t)),d=!0}else c.match&&(e="("===e[0]?"\\left("+c.match+"\\right)"+Ct(c.rest,t):c.match+Ct(c.rest,t),d=!0);return d||(c=e.match(/^(\s+)(.*)$/),c&&(e=" "+Ct(c[2],t),d=!0)),e}function $t(e,t){let i="",a=e=e.trim(),o=e.charAt(0),r={"(":")","{":"}","[":"]"}[o];if(r){let s=1,n=1;for(;n0;)e[n]===o&&s++,e[n]===r&&s--,n++;0===s?(t.noWrap&&"("===o?i=Ct(e.substring(1,n-1),t):("{"===o&&"}"===r&&(o="\\{",r="\\}"),i="\\left"+o+Ct(e.substring(1,n-1),t)+"\\right"+r),a=e.substring(n)):(i=e.substring(1,n),a="")}else{let o=e.match(/^([a-zA-Z]+)/);if(o){let i=Lt(null,e,t.inlineShortcuts);if(i)return i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),{match:i,rest:e.substring(i.length)}}if(o=e.match(/^([a-zA-Z])/),o)return{match:o[1],rest:e.substring(1)};if(o=e.match(/^(-)?\d+(\.\d*)?/),o)return{match:o[0],rest:e.substring(o[0].length)};/^\\(left|right)/.test(e)||(o=e.match(/^(\\[a-zA-Z]+)/),o&&(a=e.substring(o[1].length),i=o[1]))}return{match:i,rest:a}}function qt(e,t){let i=Lt(null,e,t);return i?(i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),i+=" "):i=e,i}function Dt(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onSelectionDidChange)||e.suppressChangeNotifications||e.listeners.onSelectionDidChange(e)}function Tt(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onContentDidChange)||e.suppressChangeNotifications||e.listeners.onContentDidChange(e)}function Kt(e){if(e.parent().array)return ft(e.parent().array,e.relation())[e.anchorOffset()];const t=e.siblings();return t[Math.min(t.length-1,e.anchorOffset())]}function Et(t,i,a=0){let o;if("string"==typeof i)o=dt(i),o.extent=a;else if(e(i)){const e=pt(i),r=t.path;t.path=e,0===a&&"placeholder"===Kt(t).type&&(e[e.length-1].offset=t.anchorOffset()-1,a=1),o={path:e,extent:null!=a?a:0},t.path=r}else o=i;const r=0!==mt(t.path,o.path),s=o.extent!==t.extent;return(r||s)&&(r&&Nt(t),t.path=pt(o.path),t.siblings().length0&&"command"===t[i].type;)i-=1;let a=e.startOffset()+1;for(;a<=t.length-1&&"command"===t[a].type;)a+=1;return a>i?{start:i+1,end:a}:null}function Pt(e){const t=Jt(e)?Kt(e):e.sibling(1);let i;if(t){if("command"===t.type)return"command";i=t.mode}let a=1,o=e.ancestor(a);for(;!i&&o;)o&&(i=o.mode),a+=1,o=e.ancestor(a);return i}function Rt(e,t=1,i=!0){var a;const o=e.suppressChangeNotifications;e.suppressChangeNotifications=!0;const r=e.clone(),s=e.extent;Wt(e,t),"placeholder"===Kt(e).type&&Wt(e,t);const n=si(e,(e,t)=>"placeholder"===e.type||t.path.length>1&&1===t.siblings().length,t);if(0===n.length){if(Et(e,r,s),i&&(null===(a=e.hooks)||void 0===a?void 0:a.tabOut)&&e.hooks.tabOut(e,t>0?"forward":"backward")&&document.activeElement){const e=function(){function e(e){return!((i=e).disabled||"INPUT"===i.tagName&&"hidden"===i.type||function(e){if(e===document.activeElement||e.contains(document.activeElement))return!1;if("hidden"===getComputedStyle(e).visibility)return!0;const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(i)||function(e){return"INPUT"===e.tagName&&"radio"===e.type&&!function(e){if(!e.name)return!0;const t=function(e,t){for(let i=0;isummary')).filter(e).forEach((e,i)=>{const r=t(e);0===r?a.push(e):o.push({documentOrder:i,tabIndex:r,node:e})}),o.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(a)}(document.body)}();let i=e.indexOf(document.activeElement)+t;i<0&&(i=e.length-1),i>=e.length&&(i=0),e[i].focus()}return e.suppressChangeNotifications=o,!1}return Et(e,n[0]),"placeholder"===Kt(e).type&&Qt(e,-1),e.announce("move",r),Dt(e),e.suppressChangeNotifications=o,!0}function It(e,t=0,i=0,a=""){const o=e.path[e.path.length-1].relation;a||(a=o);const r=e.parent();if(!r&&"body"!==a)return!1;const s=a.startsWith("cell");if(!s&&!r[a]||s&&!r.array)return!1;const n=a!==o;e.path[e.path.length-1].relation=a;const l=e.siblings().length;e.path[e.path.length-1].relation=o;const c=e.extent;"end"===i&&(i=l-t-1),Qt(e,i);const d=e.extent!==c;Qt(e,c),t<0&&(t=l+t),t=Math.max(0,Math.min(t,l-1));const m=e.path[e.path.length-1].offset;return(n||m!==t||d)&&(n&&Nt(e),e.path[e.path.length-1].relation=a,e.path[e.path.length-1].offset=t,Qt(e,i),Dt(e)),!0}function Ht(t,i){var a;i=null!=i?i:{};const o={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(t.anchorOffset()===t.siblings().length-1){Nt(t);let e=o[t.relation()];const r=t.parent();for(;e&&!r[e];)e=o[e];if(e)return void It(t,0,0,e);if(t.parent().array){const e=gt(t.parent().array);let i=parseInt(t.relation().match(/cell([0-9]*)$/)[1])+1;for(;i=0;){if(ft(t.parent().array,e)&&It(t,-1,0,"cell"+e))return;e-=1}}return void(1===t.path.length?(t.suppressChangeNotifications||!(null===(a=t.hooks)||void 0===a?void 0:a.moveOut)||t.hooks.moveOut(t,"backward"))&&(t.path[0].offset=t.root.body.length-1):(t.path.pop(),It(t,t.anchorOffset()-1)))}const r=Kt(t);if(!r.captureSelection){let i;if(r.array){i="";const e=gt(r.array);let a=e-1;for(;!i&&a0)for(ei(e)&&a--;a>0;)Ht(e),a--;else if(a<0)for(ti(e)&&a++;0!==a;)Vt(e),a++}return Dt(e),e.announce("move",a),!0}function Ut(e,t){let i=e.path[e.path.length-1].offset,a=0;const o=e.clone();a=e.extent+t;const r=i+a;if(r<0&&0!==a){if(e.path.length>1)return e.path.pop(),Qt(e,-1),Dt(e),e.announce("move",o),!0;i=e.path[e.path.length-1].offset,a=e.extent}else if(r>=e.siblings().length){if(e.path.length>1)return e.path.pop(),e.path[e.path.length-1].offset-=1,Qt(e,1),Dt(e),e.announce("move",o),!0;Jt(e)&&(i-=1),a-=1}return It(e,i,a),e.announce("move",o),!0}function jt(e,t,i){var a;const o=null!==(a=(i=null!=i?i:{extend:!1}).extend)&&void 0!==a&&a;t=t<0?-1:1;const r=e.clone(),s=e.siblings(),n=e.focusOffset();let l=n+t;if(o&&(l=Math.min(Math.max(0,l),s.length-1)),l<0||l>=s.length)Wt(e,t,i);else{if(s[l]&&"text"===s[l].mode){if(l=function(e,t,i){i=i<0?-1:1;const a=e.siblings();if(!a[t])return t;if("text"!==a[t].mode)return t;let o;if(H.test(a[t].body)){let e,r=t;do{e="text"===a[r].mode&&H.test(a[r].body),r+=i}while(a[r]&&e);o=a[r]?r-2*i:r-i}else if(/\s/.test(a[t].body)){let e=t;for(;a[e]&&"text"===a[e].mode&&/\s/.test(a[e].body);)e+=i;if(a[e]){let t=!0;do{t="text"===a[e].mode&&!/\s/.test(a[e].body),e+=i}while(a[e]&&t);o=a[e]?e-2*i:e-i}else o=e-i}else{let e=t;for(;a[e]&&"text"===a[e].mode&&!/\s/.test(a[e].body);)e+=i;o=a[e]?e:e-i;let r=!0;for(;a[e]&&r;)r="text"===a[e].mode&&/\s/.test(a[e].body),r&&(o=e),e+=i;o=a[e]?e-2*i:e-i}return o-(i>0?0:1)}(e,l,t),l<0&&!o)return void It(e,0);if(l>s.length)return It(e,s.length-1),void Wt(e,t,i)}else{const e=s[l]?s[l].type:"";if("mopen"===e&&t>0||"mclose"===e&&t<0){let i="mopen"===e?1:-1;for(l+=t>0?1:-1;l>=0&&l0&&(l-=1)}else{for(;s[l]&&"math"===s[l].mode&&s[l].type===e;)l+=t;l-=t>0?1:0}}if(o){const t=e.anchorOffset();It(e,t,l-t)}else It(e,l);e.announce("move",r)}}function Xt(e,t=1,i){var a;i=null!=i?i:{extend:!1},t=t<0?-1:1;const o=e.clone(),r=[{relation:"body",offset:e.path[0].offset}];let s;return null!==(a=!i.extend)&&void 0!==a&&a?(r[0].offset=t<0?0:e.root.body.length-1,s=0):t<0?r[0].offset>0&&(s=-r[0].offset):r[0].offset=a)return It(e,e.endOffset()-1,1),!0;It(e,i,a-i)}else if("mord"===e.sibling(0).type&&/[0-9,.]/.test(e.sibling(0).body)){let i=e.startOffset(),a=e.endOffset();for(;Ot(t[i]);)i-=1;for(;Ot(t[a]);)a+=1;a-=1,It(e,i,a-i)}else It(e,0,"end");return!0}function Yt(e){return e.path=[{relation:"body",offset:0}],It(e,0,"end")}function Jt(e){return 0===e.extent}function Qt(e,t){e.extent=t}function ei(e){return 0!==e.extent&&(It(e,e.endOffset()),!0)}function ti(e){return 0!==e.extent&&(It(e,e.startOffset()),!0)}function ii(e){if(e.path.length>1){const t=e.clone();return e.path.pop(),Qt(e,0),e.announce("move",t),!0}return e.announce("plonk"),!1}function ai(e,t,i,a={extendToWordBoundary:!1}){const o=mt(t,i);if(0===o)return a.extendToWordBoundary?ai(e,t=ri(e,t,-1),i=ri(e,i,1)):Et(e,pt(t),0);if(1===o){const o=i[i.length-1].offset-t[t.length-1].offset;return a.extendToWordBoundary?ai(e,t=ri(e,t,o<0?1:-1),i=ri(e,i,o<0?-1:1)):Et(e,pt(t),o)}let r=function(e,t){const i=[],a=Math.min(e.length-1,t.length-1);let o=0;for(;o<=a&&e[o].relation===t[o].relation&&e[o].offset===t[o].offset;)i.push(e[o]),o+=1;return i}(t,i);const s=r.length;if(t.length===s||i.length===s||t[s].relation!==i[s].relation)return Et(e,r,-1);r.push(t[s]),r=pt(r);let n=i[s].offset-t[s].offset+1;return n<=0?i.length>s+1?(r[s].relation=i[s].relation,r[s].offset=i[s].offset,r[r.length-1].offset-=1,n=2-n):(r[s].relation=i[s].relation,r[s].offset=i[s].offset,n=1-n):i.length<=t.length?r[r.length-1].offset-=1:i.length>t.length&&(r[s].offset-=1),Et(e,r,n)}function oi(e,t,i){var a;(i=null!=i?i:{}).recursive=null!==(a=i.recursive)&&void 0!==a&&a;const o=e.siblings(),r=e.startOffset()+1,s=e.endOffset()+1;if(i.recursive)for(let e=r;e=0?ei(o):(ti(o),Wt(o,"forward"));const r=Kt(o);do{t(Kt(o),o)&&a.push(o.toString()),i>=0?Ht(o,{iterateAll:!0}):Vt(o,{iterateAll:!0})}while(r!==Kt(o));return a}const ni="apple"===mi()?{id:"apple.en-intl",displayName:"English (international)",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","ı"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","Î"],KeyE:["e","E","´","´"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","˝"],KeyH:["h","H","˙","Ó"],KeyI:["i","I","ˆ","ˆ"],KeyJ:["j","J","∆","Ô"],KeyK:["k","K","˚",""],KeyL:["l","L","¬","Ò"],KeyM:["m","M","µ","Â"],KeyN:["n","N","˜","˜"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®","‰"],KeyS:["s","S","ß","Í"],KeyT:["t","T","†","ˇ"],KeyU:["u","U","¨","¨"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","˛"],KeyY:["y","Y","¥","Á"],KeyZ:["z","Z","Ω","¸"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","ˆ","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["-","_","–","—"],Equal:["=","+","≠","±"],BracketLeft:["[","{","“","”"],BracketRight:["]","}","‘","’"],Backslash:["\\","|","«","»"],Semicolon:[";",":","…","Ú"],Quote:["'",'"',"æ","Æ"],Backquote:["`","˜","`","`"],Comma:[",","<","≤","¯"],Period:[".",">","≥","˘"],Slash:["/","?","÷","¿"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}}:"windows"===mi()?{id:"windows.en-intl",displayName:"English (international)",platform:"windows",locale:"en",score:0,mapping:{KeyA:["a","A","á","Á"],KeyB:["b","B","",""],KeyC:["c","C","©","¢"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","é","É"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","í","Í"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","ø","Ø"],KeyM:["m","M","µ",""],KeyN:["n","N","ñ","Ñ"],KeyO:["o","O","ó","Ó"],KeyP:["p","P","ö","Ö"],KeyQ:["q","Q","ä","Ä"],KeyR:["r","R","®",""],KeyS:["s","S","ß","§"],KeyT:["t","T","þ","Þ"],KeyU:["u","U","ú","Ú"],KeyV:["v","V","",""],KeyW:["w","W","å","Å"],KeyX:["x","X","",""],KeyY:["y","Y","ü","Ü"],KeyZ:["z","Z","æ","Æ"],Digit1:["1","!","¡","¹"],Digit2:["2","@","²",""],Digit3:["3","#","³",""],Digit4:["4","$","¤","£"],Digit5:["5","%","€",""],Digit6:["6","^","¼",""],Digit7:["7","&","½",""],Digit8:["8","*","¾",""],Digit9:["9","(","‘",""],Digit0:["0",")","’",""],Space:[" "," ","",""],Minus:["-","_","¥",""],Equal:["=","+","×","÷"],BracketLeft:["[","{","«",""],BracketRight:["]","}","»",""],Backslash:["\\","|","¬","¦"],Semicolon:[";",":","¶","°"],Quote:["'",'"',"´","¨"],Backquote:["`","~","",""],Comma:[",","<","ç","Ç"],Period:[".",">","",""],Slash:["/","?","¿",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}}:{id:"linux.en",displayName:"English",platform:"linux",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},li={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},ci=[];let di;function mi(){let e="linux";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?e="apple":/^(win)/i.test(navigator.platform)?e="windows":/(android)/i.test(navigator.userAgent)?e="linux":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?e="apple":/\bCrOS\b/i.test(navigator.userAgent)&&(e="linux")),e}function pi(e){e.platform===mi()&&ci.push(e)}function ui(e){di=ci.find(t=>e.startsWith(t.locale))}function hi(){return null!=di?di:ci[0]}pi(ni),pi({id:"apple.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","‡","Ω"],KeyB:["b","B","ß","∫"],KeyC:["c","C","©","¢"],KeyD:["d","D","∂","∆"],KeyE:["e","E","ê","Ê"],KeyF:["f","F","ƒ","·"],KeyG:["g","G","fi","fl"],KeyH:["h","H","Ì","Î"],KeyI:["i","I","î","ï"],KeyJ:["j","J","Ï","Í"],KeyK:["k","K","È","Ë"],KeyL:["l","L","¬","|"],KeyM:[",","?","∞","¿"],KeyN:["n","N","~","ı"],KeyO:["o","O","œ","Œ"],KeyP:["p","P","π","∏"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","®","‚"],KeyS:["s","S","Ò","∑"],KeyT:["t","T","†","™"],KeyU:["u","U","º","ª"],KeyV:["v","V","◊","√"],KeyW:["z","Z","Â","Å"],KeyX:["x","X","≈","⁄"],KeyY:["y","Y","Ú","Ÿ"],KeyZ:["w","W","‹","›"],Digit1:["&","1","","´"],Digit2:["é","2","ë","„"],Digit3:['"',"3","“","”"],Digit4:["'","4","‘","’"],Digit5:["(","5","{","["],Digit6:["§","6","¶","å"],Digit7:["è","7","«","»"],Digit8:["!","8","¡","Û"],Digit9:["ç","9","Ç","Á"],Digit0:["à","0","ø","Ø"],Space:[" "," "," "," "],Minus:[")","°","}","]"],Equal:["-","_","—","–"],BracketLeft:["^","¨","ô","Ô"],BracketRight:["$","*","€","¥"],Backslash:["`","£","@","#"],Semicolon:["m","M","µ","Ó"],Quote:["ù","%","Ù","‰"],Backquote:["<",">","≤","≥"],Comma:[";",".","…","•"],Period:[":","/","÷","\\"],Slash:["=","+","≠","±"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","•","Ÿ"],NumpadEqual:["=","=","=","="]}}),pi({id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","ß",""],KeyC:["c","C","©"," "],KeyD:["d","D","∂","∆"],KeyE:["e","E","€","€"],KeyF:["f","F","ƒ","fi"],KeyG:["g","G","","fl"],KeyH:["h","H","™"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","¶","¯"],KeyK:["k","K","§","ˇ"],KeyL:["l","L"," ","˘"],KeyM:["m","M","µ","˚"],KeyN:["n","N"," ","˙"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®"," "],KeyS:["s","S","∫"," "],KeyT:["t","T","†","‡"],KeyU:["u","U"," "," "],KeyV:["v","V","√","◊"],KeyW:["w","W","æ","Æ"],KeyX:["x","X","∑","›"],KeyY:["y","Y","¥"," "],KeyZ:["z","Z","Ω","‹"],Digit1:["1","!","|","ı"],Digit2:["2",'"',"@","˝"],Digit3:["3","·","#","•"],Digit4:["4","$","¢","£"],Digit5:["5","%","∞","‰"],Digit6:["6","&","¬"," "],Digit7:["7","/","÷","⁄"],Digit8:["8","(","“","‘"],Digit9:["9",")","”","’"],Digit0:["0","=","≠","≈"],Space:[" "," "," "," "],Minus:["'","?","´","¸"],Equal:["¡","¿","‚","˛"],BracketLeft:["`","^","[","ˆ"],BracketRight:["+","*","]","±"],Backslash:["ç","Ç","}","»"],Semicolon:["ñ","Ñ","~","˜"],Quote:["´","¨","{","«"],Backquote:["<",">","≤","≥"],Comma:[",",";","„",""],Period:[".",":","…","…"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["º","ª","\\","°"]}}),pi({id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","·","#",""],Digit4:["4","$","~",""],Digit5:["5","%","€",""],Digit6:["6","&","¬",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["¡","¿","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["ç","Ç","}",""],Semicolon:["ñ","Ñ","",""],Quote:["´","¨","{",""],Backquote:["º","ª","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),pi({id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["z","Z","«","<"],Digit1:["1","!","|","¡"],Digit2:["2",'"',"@","⅛"],Digit3:["3","·","#","£"],Digit4:["4","$","~","$"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["'","?","\\","¿"],Equal:["¡","¿","̃","~"],BracketLeft:["̀","̂","[","̊"],BracketRight:["+","*","]","̄"],Backslash:["ç","Ç","}","̆"],Semicolon:["ñ","Ñ","~","̋"],Quote:["́","̈","{","{"],Backquote:["º","ª","\\","\\"],Comma:[",",";","─","×"],Period:[".",":","·","÷"],Slash:["-","_","̣","̇"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}}),pi({id:"linux.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","@","Ω"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:[",","?","́","̋"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["z","Z","«","<"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["w","W","ł","Ł"],Digit1:["&","1","¹","¡"],Digit2:["é","2","~","⅛"],Digit3:['"',"3","#","£"],Digit4:["'","4","{","$"],Digit5:["(","5","[","⅜"],Digit6:["-","6","|","⅝"],Digit7:["è","7","`","⅞"],Digit8:["_","8","\\","™"],Digit9:["ç","9","^","±"],Digit0:["à","0","@","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:[")","°","]","¿"],Equal:["=","+","}","̨"],BracketLeft:["̂","̈","̈","̊"],BracketRight:["$","£","¤","̄"],Backslash:["*","µ","̀","̆"],Semicolon:["m","M","µ","º"],Quote:["ù","%","̂","̌"],Backquote:["²","~","¬","¬"],Comma:[";",".","─","×"],Period:[":","/","·","÷"],Slash:["!","§","̣","̇"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"]}}),pi({id:"windows.french",locale:"fr",displayName:"French",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["é","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["è","7","`",""],Digit8:["_","8","\\",""],Digit9:["ç","9","^",""],Digit0:["à","0","@",""],Space:[" "," ","",""],Minus:[")","°","]",""],Equal:["=","+","}",""],BracketLeft:["^","¨","",""],BracketRight:["$","£","¤",""],Backslash:["*","µ","",""],Semicolon:["m","M","",""],Quote:["ù","%","",""],Backquote:["²","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","§","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),pi({id:"windows.german",locale:"de",displayName:"German",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","µ",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"²",""],Digit3:["3","§","³",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["ß","?","\\","ẞ"],Equal:["´","`","",""],BracketLeft:["ü","Ü","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["ö","Ö","",""],Quote:["ä","Ä","",""],Backquote:["^","°","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}}),pi({id:"apple.german",locale:"de",displayName:"German",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","‹"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","™"],KeyE:["e","E","€","‰"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","Ì"],KeyH:["h","H","ª","Ó"],KeyI:["i","I","⁄","Û"],KeyJ:["j","J","º","ı"],KeyK:["k","K","∆","ˆ"],KeyL:["l","L","@","fl"],KeyM:["m","M","µ","˘"],KeyN:["n","N","~","›"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","«","»"],KeyR:["r","R","®","¸"],KeyS:["s","S","‚","Í"],KeyT:["t","T","†","˝"],KeyU:["u","U","¨","Á"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","Ù"],KeyY:["z","Z","Ω","ˇ"],KeyZ:["y","Y","¥","‡"],Digit1:["1","!","¡","¬"],Digit2:["2",'"',"“","”"],Digit3:["3","§","¶","#"],Digit4:["4","$","¢","£"],Digit5:["5","%","[","fi"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","˜"],Digit9:["9",")","}","·"],Digit0:["0","=","≠","¯"],Space:[" "," "," "," "],Minus:["ß","?","¿","˙"],Equal:["´","`","'","˚"],BracketLeft:["ü","Ü","•","°"],BracketRight:["+","*","±",""],Backslash:["#","'","‘","’"],Semicolon:["ö","Ö","œ","Œ"],Quote:["ä","Ä","æ","Æ"],Backquote:["<",">","≤","≥"],Comma:[",",";","∞","˛"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","°","„","“"],NumpadEqual:["=","=","=","="]}});const fi=[{key:"ctrl+alt+e",command:["insert","\\text{cmd+alt+e}"]},{key:"cmd+alt+a",command:["insert","\\text{cmd+alt+a}"]},{key:"ctrl+alt+a",command:["insert","\\text{ctrl+alt+a}"]},{key:"meta+alt+2",command:["insert","\\text{meta+alt+2}"]},{key:"ctrl+alt+shift+a",command:["insert","\\text{ctrl+alt+shift+a}"]},{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendToPreviousChar"},{key:"shift+[ArrowRight]",command:"extendToNextChar"},{key:"shift+[ArrowUp]",command:"extendUp"},{key:"shift+[ArrowDown]",command:"extendDown"},{key:"[Backspace]",command:"deletePreviousChar"},{key:"alt+[Delete]",command:"deletePreviousChar"},{key:"[Delete]",command:"deleteNextChar"},{key:"alt+[Backspace]",command:"deleteNextChar"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"alt+shift+[ArrowLeft]",command:"extendToPreviousWord"},{key:"alt+shift+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"ctrl+shift+[ArrowLeft]",command:"extendToGroupStart"},{key:"ctrl+shift+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Space]",ifMode:"math",command:"moveAfterParent"},{key:"shift+[Space]",ifMode:"math",command:"moveBeforeParent"},{key:"[Home]",command:"moveToMathFieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathFieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"cmd+shift+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathFieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathFieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"cmd+shift+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",ifMode:"math",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"math",command:"moveToPreviousPlaceholder"},{key:"[Tab]",ifMode:"text",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"text",command:"moveToPreviousPlaceholder"},{key:"[Escape]",ifMode:"math",command:["switchMode","command"]},{key:"\\",ifMode:"math",command:["switchMode","command"]},{key:"alt+[Equal]",ifMode:"math",command:["applyStyle",{mode:"text"}]},{key:"alt+[Equal]",ifMode:"text",command:["applyStyle",{mode:"math"}]},{key:"[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[Tab]",ifMode:"command",command:["complete",{acceptSuggestion:!0}]},{key:"[Return]",ifMode:"command",command:"complete"},{key:"[Enter]",ifMode:"command",command:"complete"},{key:"shift+[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[ArrowDown]",ifMode:"command",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"command",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deletePreviousChar"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"[Undo]",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+y",command:"redo"},{key:"ctrl+shift+z",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+z",command:"redo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathFieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathFieldEnd"},{key:"ctrl+shift+b",ifPlatform:"macos",command:"extendToPreviousChar"},{key:"ctrl+shift+f",ifPlatform:"macos",command:"extendToNextChar"},{key:"ctrl+shift+p",ifPlatform:"macos",command:"extendUp"},{key:"ctrl+shift+n",ifPlatform:"macos",command:"extendDown"},{key:"ctrl+shift+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"ctrl+shift+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"ctrl+alt+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"ctrl+alt+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"ctrl+shift+alt+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"ctrl+shift+alt+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deletePreviousChar"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteNextChar"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"shift+[Quote]",ifMode:"math",command:["switchMode","text","","“"]},{key:"shift+[Quote]",ifMode:"text",command:["switchMode","math","”",""]},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Minus]",ifMode:"math",command:"moveToSubscript"},{key:"alt+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrack #0 \\right\\rbrack$$"]},{key:"alt+shift+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrace #0 \\right\\rbrace$$"]},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+;",ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifMode:"math",command:"addRowAfter"},{key:"ctrl+shift+;",ifMode:"math",command:"addRowBefore"},{key:"cmd+shift+;",ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"ctrl+shift+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+shift[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"alt+p",ifMode:"math",command:["insert","$$\\pi$$"]},{key:"alt+v",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"alt+w",ifMode:"math",command:["insert","$$\\sum_{i=#?}^{#?}$$"]},{key:"alt+u",ifMode:"math",command:["insert","$$\\cup$$"]},{key:"alt+n",ifMode:"math",command:["insert","$$\\cap$$"]},{key:"alt+o",ifMode:"math",command:["insert","$$\\emptyset$$"]},{key:"alt+d",ifMode:"math",command:["insert","$$\\differentialD$$"]},{key:"alt+shift+o",ifMode:"math",command:["insert","$$\\varnothing$$"]},{key:"alt+shift+d",ifMode:"math",command:["insert","$$\\partial$$"]},{key:"alt+shift+p",ifMode:"math",command:["insert","$$\\prod_{i=#?}^{#?}$$"]},{key:"alt+shift+u",ifMode:"math",command:["insert","$$\\bigcup$$"]},{key:"alt+shift+n",ifMode:"math",command:["insert","$$\\bigcap$$"]},{key:"alt+shift+a",ifMode:"math",command:["insert","$$\\forall$$"]},{key:"alt+shift+e",ifMode:"math",command:["insert","$$\\exists$$"]},{key:"alt+[Digit5]",ifMode:"math",command:["insert","$\\infty$$"]},{key:"alt+[Digit6]",ifMode:"math",command:["insert","$$\\wedge$$"]},{key:"alt+shift+[Digit6]",ifMode:"math",command:["insert","$$\\vee$$"]},{key:"alt+[Digit9]",ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifMode:"math",command:["insert",")"]},{key:"alt+shift+[Backslash]",ifMode:"math",command:["insert","|"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","$$\\backslash$$"]},{key:"/",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+/",ifMode:"math",command:["insert","$$\\/$$"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+[Backquote]",ifMode:"math",command:["insert","$$\\~$$"]},{key:"alt+shift+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleVirtualKeyboard"},{key:"ctrl+alt+[ArrowUp]",command:["speak","parent",{withHighlighting:!1}]},{key:"ctrl+alt+[ArrowDown]",command:["speak","all",{withHighlighting:!1}]}],gi={"\\theta":"alt+q","\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\prod":"alt+shift+p","\\sum":"alt+w","\\int":"alt+b","\\cup":"alt+u","\\cap":"alt+n","\\bigcup":"alt+shift+u","\\bigcap":"alt+shift+n","\\forall":"alt+shift+a","\\exists":"alt+shift+e","\\infty":"alt+[Digit5]","\\wedge":"alt+[Digit5]","\\vee":"alt+shift+[Digit6]","\\differentialD":"alt+d","\\partial":"alt+shift+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"alt+shift+o","\\~":"~"};function yi(e){if((null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)){let t;if(/^(mac)/i.test(navigator.platform)?t="macos":/^(win)/i.test(navigator.platform)?t="windows":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos"),e.startsWith("!")&&!e.endsWith(t))return!0;if(e.endsWith(t))return!0}return!1}function bi(t){let i=t;return e(i)&&(i=i.length>0?i[0]+"("+i.slice(1).join("")+")":""),i}function vi(e){var t;const i=yi("macos")||yi("ios"),a=e.split("+");let o="";for(const e of a)!i&&o&&(o+='+'),e.startsWith("Key")?o+=e.substr(3,1):e.startsWith("Digit")?o+=e.substr(5,1):o+=null!==(t={cmd:"⌘",meta:i?"⌘":"command",shift:i?"⇧":"shift",alt:i?"⌥":"alt",ctrl:i?"⌃":"control","\n":i?"⏎":"return","[return]":i?"⏎":"return","[enter]":i?"⌤":"enter","[tab]":i?"⇥":"tab","[escape]":"esc","[backspace]":i?"⌫":"backspace","[delete]":i?"⌦":"del","[pageup]":i?"⇞":"page up","[pagedown]":i?"⇟":"page down","[home]":i?"⤒":"home","[end]":i?"⤓":"end","[space]":"space","[equal]":"=","[minus]":"-","[comma]":",","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",bracketLeft:"[",bracketRight:"]",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"⇠",up:"⇡",right:"⇢",down:"⇣","[arrowleft]":"⇠","[arrowup]":"⇡","[arrowright]":"⇢","[arrowdown]":"⇣","[digit0]":"0","[digit1]":"1","[digit2]":"2","[digit3]":"3","[digit4]":"4","[digit5]":"5","[digit6]":"6","[digit7]":"7","[digit8]":"8","[digit9]":"9"}[e.toLowerCase()])&&void 0!==t?t:e.toUpperCase();return o}function xi(e,t){const i=[],a=[];return e.forEach(e=>{try{const t=function(e){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);let t=e.key.split("+");const i=t.pop();let a=e.ifPlatform;if(t=t.map(e=>{const t=e.toLowerCase();if("cmd"===t){if(a&&"macos"!==a&&"ios"!==a)throw new Error('Unexpected "cmd" modifier with platform "'+a+'"');return a||(a=yi("ios")?"ios":"macos"),"meta"}if("win"===t){if(a&&"windows"!==a)throw new Error('Unexpected "win" modifier with platform "'+a+'"');return a="windows","meta"}return t}),!a||yi(a)){if(/^\[(.*)\]$/.test(i))t.push(i);else{const a=function(e){var t,i;const a=null!==(t=hi())&&void 0!==t?t:ni;for(const[t,i]of Object.entries(a.mapping)){if(i[0]===e)return"["+t+"]";if(i[1]===e)return"shift+["+t+"]";if(i[2]===e)return"alt+["+t+"]";if(i[3]===e)return"shift+alt+["+t+"]"}return null!==(i=li[e])&&void 0!==i?i:""}(i);if(!a)throw new Error('Invalid keybinding key "'+e.key+'"');t=t.concat(a.split("+"))}return{...e,ifPlatform:a,key:t.join("+")}}}(e);t&&i.push(t)}catch(e){a.push(e.message)}}),a.length>0&&t(a),i}function ki(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.addEventListener(o[1],i,t)}else e.addEventListener(t,i,a)}}function _i(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.removeEventListener(o[1],i,t)}else e.removeEventListener(t,i,a)}}function wi(e,t){let i=document.getElementById(e);return i?i.setAttribute("data-refcount",Number(parseInt(i.getAttribute("data-refcount"))+1).toString()):(i=document.createElement("div"),i.setAttribute("aria-hidden","true"),i.setAttribute("data-refcount","1"),i.className=t,i.id=e,document.body.appendChild(i)),i}function Mi(e){if(!e)return;const t=parseInt(e.getAttribute("data-refcount"));t<=1?e.remove():e.setAttribute("data-refcount",Number(t-1).toString())}function zi(e){return e.element&&e.element.mathfield===e}function Si(e){const t=function e(t){if(t.classList.contains("ML__caret")||t.classList.contains("ML__text-caret")||t.classList.contains("ML__command-caret"))return t;let i;for(const a of t.children)if(i=e(a),i)break;return i}(e);if(t){const e=t.getBoundingClientRect();return{x:e.right,y:e.bottom,height:e.height}}return null}function Li(e){const t=e.querySelectorAll(".ML__selected");if(t&&t.length>0){const i={top:1/0,bottom:-1/0,left:1/0,right:-1/0};t.forEach(e=>{const t=e.getBoundingClientRect();t.lefti.right&&(i.right=t.right),t.bottom>i.bottom&&(i.bottom=t.bottom),t.top{if("mousedown"!==i.type||1===i.buttons){i.stopPropagation(),"touchstart"!==i.type&&i.preventDefault(),t.classList.add("pressed"),a=Date.now(),"touchstart"===i.type&&(r=i.changedTouches[0].identifier);const s=t.getAttribute("data-"+e.options.namespace+"command-pressed");s&&e.executeCommand(JSON.parse(s));const l=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldStart");l&&(o=t,n&&clearTimeout(n),n=window.setTimeout((function(){t.classList.contains("pressed")&&e.executeCommand(JSON.parse(l))}),300))}}),ki(t,"mouseleave touchcancel",()=>{t.classList.remove("pressed")}),ki(t,"touchmove:passive",e=>{for(let t=0;t{1===e.buttons&&t.classList.add("pressed")}),ki(t,"mouseup touchend click",i=>{if(s){i.stopPropagation(),i.preventDefault();const e=s;return s=null,void e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}if(t.classList.remove("pressed"),t.classList.add("active"),"click"===i.type&&0!==i.detail)return i.stopPropagation(),void i.preventDefault();window.setTimeout((function(){t.classList.remove("active")}),150);let r=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldEnd");const n=Date.now();(t!==o||nequal to","\\supseteq":"superset of or
    equal to","\\supset":"superset of","\\subset":"subset of","\\partial":"partial derivative","\\bigcup":"union","\\bigcap":"intersection","\\approx":"approximately equal to","\\notin":"not an element of","\\in":["element of","included in"],"\\infty":"infinity","\\land":"logical and","\\sqrt":"square root","\\prod":"product","\\sum":"summation","\\amalg":["amalgamation","coproduct","free product","disjoint union"],"\\cup":"union with","\\cap":"intersection with","\\int":"integral","\\iint":"surface integral","\\oint":"curve integral","\\iiint":"volume integral","\\iff":"if and only if","\\ln":"natural logarithm","\\boldsymbol":"bold","\\setminus":"set subtraction","\\stackrel":"relation with symbol above","\\stackbin":"operator with symbol above","\\underset":"symbol with annotation below","\\overset":"symbol with annotation above","\\hslash":["h-bar","Planck constant"],"\\gtrsim":"greater than or
    similar to","\\propto":"proportional to","\\equiv":"equivalent to","\\!":["negative thin space","(-3 mu)"],"\\ ":["space","(6 mu)"],"\\,":["thin space","(3 mu)"],"\\:":["medium space","(4 mu)"],"\\;":["thick space","(5 mu)"],"\\quad":["1 em space","(18 mu)"],"\\qquad":["2 em space","(36 mu)"],"\\enskip":["½ em space","(9 mu)"],"\\mp":"minus or plus","\\pm":"plus or minus","\\Im":"Imaginary part of","\\Re":"Real part of","\\gothicCapitalR":"Real part of","\\gothicCapitalI":"Imaginary part part of","\\differentialD":"differential d","\\aleph":["aleph","infinite cardinal",'Wikipedia '],"\\beth":["beth","beth number",'Wikipedia '],"\\gimel":["gimel","gimel function",'Wikipedia '],"\\O":"empty set","\\N":"set of
    natural numbers","\\Z":"set of
    integers","\\Q":"set of
    rational numbers","\\C":"set of
    complex numbers","\\R":"set of
    real numbers","\\P":"set of
    prime numbers","\\lesseqqgtr":"less than, equal to or
    greater than","\\gnapprox":"greater than and
    not approximately","\\lnapprox":"lesser than and
    not approximately","\\j":"dotless j","\\i":"dotless i","\\cdot":"centered dot","\\lmoustache":"left moustache","\\rmoustache":"right moustache","\\nabla":["nabla","del","differential vector operator"],"\\square":["square","d’Alembert operator",'Wikipedia '],"\\blacksquare":["black square","end of proof","tombstone","Halmos symbol"],"\\Box":"end of proof","\\colon":["such that","ratio"],"\\coloneq":["is defined by","is assigned"],"\\Colon":["is defined by","as"],"\\_":["underbar","underscore"],"\\ll":"much less than","\\gg":"much greater than","\\doteq":"approximately equal to","\\Doteq":"approximately equal to","\\doteqdot":"approximately equal to","\\cong":["isomorphism of","(for algebras, modules...)"],"\\det":["determinant of","(of a matrix)"],"\\dotplus":"Cartesian product algebra","\\otimes":["tensor product","(of algebras)","Kronecker product","(of matrices)"],"\\oplus":["direct sum","(of modules)"],"\\lb":"base-2 logarithm","\\lg":"base-10 logarithm","\\wp":["Weierstrass P",'Wikipedia '],"\\wr":["wreath product",'Wikipedia '],"\\top":["tautology","Proposition P is universally true"],"\\bot":["contradiction","Proposition P is contradictory"],"\\mid":["probability","of event A given B"],"\\mho":["Siemens","electrical conductance in SI unit",'Wikipedia '],"\\Longrightarrow":"implies","\\Longleftrightarrow":"if, and only if,","\\prec":"precedes","\\preceq":"precedes or is equal to","\\succ":"succeedes","\\succeq":"succeedes or is equal to","\\perp":["is perpendicular to","is independent of"],"\\models":["entails","double-turnstyle, models","is a semantic consequence of",'Wikipedia '],"\\vdash":["satisfies","turnstyle, assertion sign","syntactic inference",'Wikipedia '],"\\implies":["implies","logical consequence"],"\\impliedby":["implied by","logical consequence"],"\\surd":["surd","root of","checkmark"],"\\ltimes":["semi direct product",'Wikipedia '],"\\rtimes":["semi direct product",'Wikipedia '],"\\leftthreetimes":["semi direct product",'Wikipedia '],"\\rightthreetimes":["semi direct product",'Wikipedia '],"\\divideontimes":["divide on times"],"\\curlywedge":"nor","\\curlyvee":"nand","\\simeq":"is group isomorphic with","\\vartriangleleft":["is a normal subgroup of","is an ideal ring of"],"\\circ":["circle","ring","function composition"],"\\rlap":["overlap right","\\rlap{x}o"],"\\llap":["overlap left","o\\llap{/}"],"\\colorbox":["color box","\\colorbox{#fbc0bd}{...}"],"\\ast":["asterisk","reflexive closure (as a superscript)"],"\\bullet":"bullet","\\lim":"limit"};function $i(t,i,a){if(!i||0===i.length)return void Ti(t);const o=i,r=function(e,t){const i=Qe(e,"math",null,t.options.macros);return C(L(We({mathstyle:c.displaystyle,macros:t.options.macros},i),"ML__base"),"ML__mathlive").toMarkup()}(i,t),s=function(t){let i=Ci[t]||"";return e(i)&&(i=i.join("
    ")),i}(o),n=function(t,i){let a=[];if("string"==typeof i){const t=gi[i];e(t)?a=t.slice():t&&a.push(t)}const o=bi(i),r=new RegExp("^"+o.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");return t.forEach(e=>{r.test(bi(e.command))&&a.push(e)}),a.map(vi)}(t.keybindings,o).join("
    ");let l=a?'
    ':"";l+='',l+='
    '+r+"
    ",s&&(l+='
    '+s+"
    "),n&&(l+='
    '+n+"
    "),l+="
    ",l+=a?'
    ':"",function(e,t){e.popover.innerHTML=e.options.createHTML(t);const i=Si(e.field);i&&Di(e,i),e.popover.classList.add("is-visible")}(t,l);let d=t.popover.getElementsByClassName("ML__popover__content");d&&d.length>0&&Ai(t,d[0],{default:["complete",{acceptSuggestion:!0}]}),d=t.popover.getElementsByClassName("ML__popover__prev-shortcut"),d&&d.length>0&&Ai(t,d[0],"previousSuggestion"),d=t.popover.getElementsByClassName("ML__popover__next-shortcut"),d&&d.length>0&&Ai(t,d[0],"nextSuggestion")}function qi(e,t){if(e.element&&e.element.mathfield===e&&e.popover.classList.contains("is-visible"))if(null==t?void 0:t.deferred)window.requestAnimationFrame(()=>qi(e));else if(Kt(e.model)&&"command"===Kt(e.model).type){const t=Si(e.field);t&&Di(e,t)}else Ti(e)}function Di(e,t){const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerWidth-document.documentElement.clientWidth,r=window.innerHeight-document.documentElement.clientHeight,s=e.virtualKeyboardVisible?e.virtualKeyboard.offsetHeight:0;t.x+e.popover.offsetWidth/2>a-o?e.popover.style.left=a-e.popover.offsetWidth-o+"px":t.x-e.popover.offsetWidth/2<0?e.popover.style.left="0":e.popover.style.left=t.x-e.popover.offsetWidth/2+"px",t.y+e.popover.offsetHeight+5>i-r-s?(e.popover.classList.add("ML__popover--reverse-direction"),e.popover.style.top=t.y-t.height-e.popover.offsetHeight-5+"px"):(e.popover.classList.remove("ML__popover--reverse-direction"),e.popover.style.top=t.y+5+"px")}function Ti(e){e.popover.classList.remove("is-visible")}function Ki(e,t=!1){var i;let a="";const o=Ft(e);if(o){const r=t?e.anchorOffset()+1:o.end,s=e.siblings();for(let e=o.start;e{"placeholder"===e.type&&a.push(e)});Qt(e,0),e.path[e.path.length-1].offset=i.start-1,0!==a.length&&Rt(e,1,!1)||It(e,i.start+t.length-1)}else e.siblings().splice(i.start,i.end-i.start),It(e,i.start-1,0);Tt(e)}}const Bi={"\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"∥","\\mid":"∣","\\lbrace":"{","\\rbrace":"}","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉","\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};function Oi(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Fi(e,t){return e&&t.generateID?' extid="'+e+'"':""}function Pi(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="",s=-1,n=-1;const l=e.atoms[e.index];if(e.index0){if(a=!0,Ri(e)&&(s=e.index,e.index+=1),Ii(e)&&(n=e.index,e.index+=1),s>=0&&n>=0)o=""+r,o+=Xi(e.atoms[n].subscript,0,0,i).mathML,o+=Xi(e.atoms[s].superscript,0,0,i).mathML,o+="";else if(s>=0){if(o=""+r,Ri(e)){const t=Xi(e.atoms[s].superscript,0,0,i).mathML,a=Xi(e.atoms[s+1].superscript,0,0,i).mathML;o+=""!==t&&""!==t||""!==a&&""!==a?""===t||""===t?"":t:""}else o+=Xi(e.atoms[s].superscript,0,0,i).mathML;o+=""}else n>=0?(o=""+r,o+=Xi(e.atoms[n].subscript,0,0,i).mathML,o+=""):o=r;"mi"!==e.lastType&&"mn"!==e.lastType&&"mtext"!==e.lastType&&"fence"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),r.endsWith(">f")||r.endsWith(">g")?(o+="&x2061;",e.lastType="applyfunction"):e.lastType=/^(.*)<\/mo>$/.test(o)?"mo":"mi",e.mathML+=o}return a}function Ri(e){return e.index"+e,o+=Xi(r.subscript,0,0,i).mathML,o+=Xi(r.superscript,0,0,i).mathML,o+=""):r.superscript?(o=""+e,o+=Xi(r.superscript,0,0,i).mathML,o+=""):r.subscript&&(o=""+e,o+=Xi(r.subscript,0,0,i).mathML,o+=""),o.length>0&&(a=!0,t.mathML+=o,t.lastType=""),a))}function Vi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="";for(;e.index0&&(a=!0,r=""+r+"",e.mathML+=r,e.lastType="mtext"),a}function Wi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="",s=function(e){let t=-1,i=e.index,a=!1,o=!1;for(;i=0&&s=0;)r+=e.atoms[e.index].body,e.index+=1;return r.length>0&&(a=!0,r=""+r+"",s<0&&Ri(e)&&(s=e.index,e.index+=1),s>=0&&(r=""+r,r+=Xi(e.atoms[s].superscript,0,0,i).mathML,r+=""),e.mathML+=r,e.lastType="mn"),a}function Ui(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";if(e.index",o+=Gi(e.atoms[l],i),o+=Xi(e.atoms,l+1,c,i).mathML,o+=Gi(e.atoms[c],i),o+="","mi"!==e.lastType&&"mn"!==e.lastType&&"mfrac"!==e.lastType&&"fence"!==e.lastType||(o=""+o),e.index=c+1,Hi(o,e,i)&&(a=!0,e.lastType="",o=""),r="fence")}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function ji(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";const s=e.atoms[e.index];if(e.index":"")+e,o+=Xi(s.subscript,0,0,i).mathML,o+=Xi(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):s.superscript?(o+=("nolimits"!==s.limits?"":"")+e,o+=Xi(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):(o+=("nolimits"!==s.limits?"":"")+e,o+=Xi(s.subscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""),r="mo"}else{const t=e.atoms[e.index],s="\\operatorname"===t.symbol,n=s?'"+Zi(t.body)+"":Gi(t,i);o+=n,e.index+=1,Hi(o,e,i)&&(a=!0,e.lastType="",o=""),e.index-=1,s||/^(.*)<\/mo>$/.test(n)?r=s?"mi":"mo":(o+="",r="applyfunction")}"mi"!==e.lastType&&"mn"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),e.index+=1}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function Xi(e,t,i,a){const o={atoms:e,index:null!=t?t:0,mathML:"",lastType:""};if("number"==typeof e||"boolean"==typeof e)o.mathML=e.toString();else if("string"==typeof e)o.mathML=e;else if(e instanceof Ue)o.mathML=Yi(e,a);else if(Array.isArray(e)){let t=0;for(i=i||(e?e.length:0);o.index0&&"genfrac"===o.atoms[o.index].type&&(e=""+e),"genfrac"===o.atoms[o.index].type?o.lastType="mfrac":o.lastType="",e.length>0&&(o.mathML+=e,t+=1),o.index+=1}t>1&&(o.mathML=""+o.mathML+"")}return o}function Gi(e,t){let i="";const a=Zi(e.body);return a&&(i=""+a+""),i}function Zi(e){if(!e)return"";if("string"==typeof e)return Oi(e);if(!Array.isArray(e)&&"string"==typeof e.body)return Oi(e.body);let t="";for(const i of e)"string"==typeof i.body&&(t+=i.body);return Oi(t)}function Yi(e,t){var i,a,o,r,s,n,l,c,d,m,p,u;const h={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:"⇋"},f={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"ℏ","\\cdotp":"⋅","\\ldots":"…","\\cdots":"⋯","\\ddots":"⋱","\\vdots":"⋮","\\ldotp":"."},g={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let y,b,v,x,k,_,w="",M="",z={cal:"script",frak:"fraktur",bb:"double-struck",scr:"script",cmtt:"monospace",cmss:"sans-serif"}[e.fontFamily||e.font]||"";z&&(z=' mathvariant="'+z+'"');const S=e.symbol;if("text"===e.mode)w=""+e.body+"";else switch(e.type){case"first":break;case"group":case"root":w=Xi(e.body,0,0,t).mathML;break;case"array":if((e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(w+="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Bi[e.leftDelim]||e.leftDelim)+"")),w+="",y=0;y"+Xi(e.array[b][y],0,0,t).mathML+"";w+=""}w+="",(e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Bi[e.leftDelim]||e.rightDelim)+""),w+="");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(w+=""),e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Bi[e.leftDelim]||e.leftDelim)+""),e.hasBarLine?(w+="",w+=Xi(e.numer,0,0,t).mathML||" ",w+=Xi(e.denom,0,0,t).mathML||" ",w+=""):(w+="",w+=""+Xi(e.numer,0,0,t).mathML+"",w+=""+Xi(e.denom,0,0,t).mathML+"",w+=""),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Bi[e.rightDelim]||e.rightDelim)+""),(e.leftDelim||e.rightDelim)&&(w+="");break;case"surd":e.index?(w+="",w+=Xi(e.body,0,0,t).mathML,w+=Xi(e.index,0,0,t).mathML,w+=""):(w+="",w+=Xi(e.body,0,0,t).mathML,w+="");break;case"leftright":w="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Bi[e.leftDelim]||e.leftDelim)+""),e.body&&(w+=Xi(e.body,0,0,t).mathML),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Bi[e.rightDelim]||e.rightDelim)+""),w+="";break;case"sizeddelim":case"delim":w+='"+(Bi[e.delim]||e.delim)+"";break;case"accent":w+='",w+=Xi(e.body,0,0,t).mathML,w+=""+(Bi[S]||e.accent)+"",w+="";break;case"line":case"overlap":break;case"overunder":k=e.overscript,x=e.underscript,(e.svgAbove||k)&&(e.svgBelow||x)?_=e.body:k&&k.length>0?(_=e.body,(null===(a=null===(i=e.body)||void 0===i?void 0:i[0])||void 0===a?void 0:a.underscript)?(x=e.body[0].underscript,_=e.body[0].body):"first"===(null===(r=null===(o=e.body)||void 0===o?void 0:o[0])||void 0===r?void 0:r.type)&&(null===(n=null===(s=e.body)||void 0===s?void 0:s[1])||void 0===n?void 0:n.underscript)&&(x=e.body[1].underscript,_=e.body[1].body)):x&&x.length>0&&(_=e.body,(null===(c=null===(l=e.body)||void 0===l?void 0:l[0])||void 0===c?void 0:c.overscript)?(k=e.body[0].overscript,_=e.body[0].body):"first"===(null===(m=null===(d=e.body)||void 0===d?void 0:d[0])||void 0===m?void 0:m.type)&&(null===(u=null===(p=e.body)||void 0===p?void 0:p[1])||void 0===u?void 0:u.overscript)&&(k=e.body[1].overscript,_=e.body[1].body)),(e.svgAbove||k)&&(e.svgBelow||x)?(w+=``,w+=h[e.svgBody]||Xi(_,0,0,t).mathML,w+=h[e.svgBelow]||Xi(x,0,0,t).mathML,w+=h[e.svgAbove]||Xi(k,0,0,t).mathML,w+=""):e.svgAbove||k?(w+=``+(h[e.svgBody]||Xi(_,0,0,t).mathML),w+=h[e.svgAbove]||Xi(k,0,0,t).mathML,w+=""):(e.svgBelow||x)&&(w+=``+(h[e.svgBody]||Xi(_,0,0,t).mathML),w+=h[e.svgBelow]||Xi(x,0,0,t).mathML,w+="");break;case"placeholder":case"mord":{w=f[S]||S||("string"==typeof e.body?e.body:"");const i=S?S.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null;i?w="&#x"+i[1]+";":w.length>0&&"\\"===w.charAt(0)&&(w="string"==typeof e.body&&e.body.charCodeAt(0)>255?"&#x"+("000000"+e.body.charCodeAt(0).toString(16)).substr(-4)+";":"string"==typeof e.body?e.body.charAt(0):e.body);const a=/\d/.test(w)?"mn":"mi";w="<"+a+z+Fi(e.id,t)+">"+Oi(w)+"";break}case"mbin":case"mrel":case"textord":case"minner":w=S&&f[S]?""+f[S]+"":S&&Bi[S]?""+Bi[S]+"":Gi(e,t);break;case"mpunct":w='"+(Bi[S]||S)+"";break;case"mop":"​"!==e.body&&(w="",w+="\\operatorname"===S?e.body:S||e.body,w+="");break;case"mathstyle":break;case"box":w='"+Xi(e.body,0,0,t).mathML+"";break;case"spacing":w+='';break;case"enclose":w=''+Xi(e.body,0,0,t).mathML+"";break;case"space":w+=" "}return w}function Ji(e,t){return Xi(e,0,0,t).mathML}function Qi(e){let t=0;for(let i=0;i{zi(e)&&e.dirty&&ta(e)}))}function ta(e,t){t=null!=t?t:{},e.dirty=!1,window.mathlive||(window.mathlive={}),Kt(e.model)||(e.model.path=[{relation:"body",offset:0}]),e.model.root.forEach(e=>{e.caret="",e.isSelected=!1,e.containsCaret=!1});const i=e.hasFocus();if(Jt(e.model)?Kt(e.model).caret=i&&!e.options.readOnly?e.mode:"":oi(e.model,e=>{e.isSelected=!0}),i&&!e.options.readOnly){let t=e.model.ancestor(1),i=1,a=!1;for(;t&&!a;)"surd"!==t.type&&"leftright"!==t.type||(t.containsCaret=!0,a=!0),i+=1,t=e.model.ancestor(i)}const a=L(We({mathstyle:c.displaystyle,letterShapeStyle:e.options.letterShapeStyle,atomIdsSettings:{seed:Qi(e.model.root.toLatex(!1)),groupNumbers:t.forHighlighting},smartFence:e.options.smartFence,macros:e.options.macros},e.model.root),"ML__base");a.attributes={translate:"no","aria-hidden":"true"};const o=C(a,"ML__mathlive");e.field.innerHTML=e.options.createHTML(o.toMarkup(0,e.options.horizontalSpacingScale)),e.field.classList.toggle("ML__focused",i&&!e.options.readOnly),e.accessibleNode.innerHTML=e.options.createHTML(''+Ji(e.model.root,e.options)+"");const r=Li(e.field);if(null!==r){const t=document.createElement("div");t.classList.add("ML__selection"),t.style.position="absolute",t.style.left=Number(r.left).toString()+"px",t.style.top=Number(r.top).toString()+"px",t.style.width=Number(Math.ceil(r.right-r.left)).toString()+"px",t.style.height=Number(Math.ceil(r.bottom-r.top-1)).toString()+"px",e.field.insertBefore(t,e.field.childNodes[0])}}const ia={};function aa(e,t){t=null!=t?t:{target:"mathfield",canUndo:!1},Object.keys(e).forEach(i=>{ia[i]={...t,fn:e[i]}})}function oa(e,t=",",i){if(!e)return[];let a,o=[];for(let r of e)r&&r.length>0&&"first"===r[0].type&&(r=r.slice(1)),r&&r.length>0&&(a?o.push(a):a=new Ue("math","mpunct",t,i),o=o.concat(r));return o}function ra(t,i){const a=t.parent();if(a&&"array"===a.type&&e(a.array)){const e=t.relation();if(a.array){const o=ht(a.array,e);"after row"===i||"before row"===i?(o.col=0,o.row=o.row+("after row"===i?1:0),a.array.splice(o.row,0,[[]])):(o.col+="after column"===i?1:0,a.array[o.row].splice(o.col,0,[]));const r=ut(a.array,o);t.path.pop(),t.path.push({relation:"cell"+r.toString(),offset:0}),t.insertFirstAtom()}}}function sa(e){var t;const i=e.parent();if("leftright"===i.type){i.type="array";const a=null!==(t={"(":"pmatrix","\\lbrack":"bmatrix","\\lbrace":"cases"}[i.leftDelim])&&void 0!==t?t:"matrix",o=ee(a),r=[[i.body]];Object.assign(i,o.parser(a,[],r)),i.mode=Pt(e),i.environmentName=a,i.array=r,i.rowGaps=[0],delete i.body,e.path[e.path.length-1].relation="cell0"}}function na(e){return sa(e),ra(e,"after row"),Tt(e),!0}function la(e){return sa(e),ra(e,"after column"),Tt(e),!0}function ca(e,t=0){const i=e.suppressChangeNotifications;if(e.suppressChangeNotifications=!0,t=t<0?-1:t>0?1:t,st(e),e.parent().array&&t<0&&0===e.startOffset()){const t=e.parent().array;if(function(e){const t={col:0,row:0};for(;t.row0){let e=t.length;"first"===t[0].type&&(e-=1),e>0&&(i+=1)}a.row+=1}return i}(t,i.col)&&(function(e,t){let i=0;for(;i"placeholder"!==e.type&&"first"!==e.type);e.parent()[t]=null,e.path.pop(),e.siblings().splice(e.anchorOffset(),0,...i),It(e,e.anchorOffset()-1),e.announce("deleted: "+t)}else if("denom"===t){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),It(e,e.anchorOffset()+t.length-1),e.announce("deleted: denominator")}else if("body"===t){const t=e.siblings().filter(e=>"placeholder"!==e.type);e.path.length>1&&(t.shift(),e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...t),It(e,e.anchorOffset()-1),e.announce("deleted: root"))}else Wt(e,"backward"),da(e,-1)}else if(t>0)if(i!==a.length-1)/^(group|array|genfrac|surd|leftright|overlap|overunder|box|mathstyle|sizing)$/.test(e.sibling(1).type)?Wt(e,"forward"):(e.announce("deleted",null,a.slice(i+1,i+2)),a.splice(i+1,1));else if("numer"===e.relation()){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),It(e,e.anchorOffset()+t.length-1),e.announce("deleted: numerator")}else Wt(e,"forward"),da(e,-1)}else{const t=e.startOffset()+1,i=e.endOffset()+1;e.announce("deleted",null,a.slice(t,i)),a.splice(t,i-t),It(e,t-1)}nt(e),e.suppressChangeNotifications=i,Dt(e),Tt(e)}function da(e,t=0){if(0===t)ca(e,0);else if(t>0)for(;t>0;)ca(e,1),t--;else for(;t<0;)ca(e,-1),t++;return!0}function ma(e,t){if(Jt(e))return!1;function i(t,i){let a=!0;return oi(e,e=>{a=a&&e[t]===i},{recursive:!0}),a}return t.color&&i("color",t.color)&&(t.color="none"),t.backgroundColor&&i("backgroundColor",t.backgroundColor)&&(t.backgroundColor="none"),t.fontFamily&&i("fontFamily",t.fontFamily)&&(t.fontFamily="none"),t.series&&(t.fontSeries=t.series),t.fontSeries&&i("fontSeries",t.fontSeries)&&(t.fontSeries="auto"),t.shape&&(t.fontShape=t.shape),t.fontShape&&i("fontShape",t.fontShape)&&(t.fontShape="auto"),t.size&&(t.fontSize=t.size),t.fontSize&&i("fontSize",t.fontSize)&&(t.fontSize="size5"),oi(e,e=>e.applyStyle(t),{recursive:!0}),Tt(e),!0}function pa(e){e.root.forEach(e=>{!Array.isArray(e.body)||0!==e.body.length&&"first"===e.body[0].type||e.body.unshift(new Ue(e.mode,"first")),!e.superscript||0!==e.superscript.length&&"first"===e.superscript[0].type||e.superscript.unshift(new Ue(e.mode,"first")),!e.subscript||0!==e.subscript.length&&"first"===e.subscript[0].type||e.subscript.unshift(new Ue(e.mode,"first")),!e.overscript||0!==e.overscript.length&&"first"===e.overscript[0].type||e.overscript.unshift(new Ue(e.mode,"first")),!e.underscript||0!==e.underscript.length&&"first"===e.underscript[0].type||e.underscript.unshift(new Ue(e.mode,"first")),!e.numer||0!==e.numer.length&&"first"===e.numer[0].type||e.numer.unshift(new Ue(e.mode,"first")),!e.denom||0!==e.denom.length&&"first"===e.denom[0].type||e.denom.unshift(new Ue(e.mode,"first")),!e.index||0!==e.index.length&&"first"===e.index[0].type||e.index.unshift(new Ue(e.mode,"first"))})}function ua(e,t,i){var a,o,r,s;if(null!==(a=i.smartFence)&&void 0!==a&&a){if(ga(e,t,i.style))return void pa(e)}else{const i=e.parent();if("leftright"===(null==i?void 0:i.type)&&"?"===i.rightDelim&&e.endOffset()===e.siblings().length-1&&/^[)}\]|]$/.test(t))return i.rightDelim=t,Wt(e,"forward"),pa(e),void Tt(e)}const n=e.suppressChangeNotifications;i.suppressChangeNotifications&&(e.suppressChangeNotifications=!0);const l=e.suppressChangeNotifications;e.suppressChangeNotifications=!0,i.insertionMode||(i.insertionMode="replaceSelection"),i.selectionMode||(i.selectionMode="placeholder"),i.format||(i.format="auto"),i.macros=null!==(o=i.macros)&&void 0!==o?o:e.options.macros;const c=i.mode||Pt(e);let d;const m=[je("math",Gt(e)).toLatex(!1)],p=null!==(r=i.placeholder)&&void 0!==r?r:"\\placeholder{}";m["?"]=p,"replaceSelection"!==i.insertionMode||Jt(e)?"replaceAll"===i.insertionMode?(e.root.body=[],e.root.latex="",e.path=[{relation:"body",offset:0}],e.extent=0):"insertBefore"===i.insertionMode?ti(e):"insertAfter"===i.insertionMode&&ei(e):da(e);const u=e.siblings(),h=e.startOffset();if(h+10&&u[h]&&"placeholder"===u[h].type&&da(e,-1),"math"===c&&"ASCIIMath"===i.format)[,t]=At(t,{format:"ASCIIMath"}),d=Qe(t,"math",null,null==i?void 0:i.macros,!1,e.listeners.onError),fa(e,d);else if("text"===c||"auto"!==i.format&&"latex"!==i.format)"text"!==c&&"text"!==i.format||(d=Qe(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/\\/g,"\\textbackslash ")).replace(/#/g,"\\#")).replace(/\$/g,"\\$")).replace(/%/g,"\\%")).replace(/&/g,"\\&")).replace(/_/g,"\\_")).replace(/{/g,"\\textbraceleft ")).replace(/}/g,"\\textbraceright ")).replace(/\^/g,"\\textasciicircum ")).replace(/~/g,"\\textasciitilde ")).replace(/£/g,"\\textsterling "),"text",m,i.macros,!1,e.listeners.onError));else if("command"===c){d=[];for(const e of t)R.test(e)&&d.push(new Ue("command","command",e))}else if(""===t)d=[new Ue("command","command","\\")];else{if("auto"===i.format&&([i.format,t]=At(t)),m[0])t=t.replace(/(^|[^\\])#@/g,"$1#0");else if(/(^|[^\\])#@/.test(t)){const i=function(e){const t=e.siblings();let i=e.startOffset();if("text"===t[i].mode)for(;i>=1&&"text"===t[i].mode;)i--;else for(;i>=1&&/^(mord|surd|msubsup|leftright|mop)$/.test(t[i].type);)i--;return i}(e);t=t.replace(/(^|[^\\])#@/g,"$1"+function(e,t,i){const a=e.siblings();if(rt(a))return"";if("first"===a[0].type&&0===t&&(t=1),"root"===e.parent().type&&1===t&&i===a.length-1)return e.parent().toLatex(!1);let o="",r=t;for(;r<=i;)o+=a[r].toLatex(!1),r++;return o}(e,i+1,e.startOffset())),function(e,t){t>0?e.siblings().splice(e.anchorOffset()+1,t):(e.siblings().splice(e.anchorOffset()+t+1,-t),It(e,e.anchorOffset()+t))}(e,i-e.startOffset())}else t=t.replace(/(^|[^\\])#@/g,"$1#?");/^\$\$(.*)\$\$$/.test(t)&&(t=t.substring(2,t.length-2)),m[0]||(m[0]=p),d=Qe(t,c,m,i.macros,null!==(s=i.smartFence)&&void 0!==s&&s,e.listeners.onError),"latex"!==i.format&&fa(e,d)}nt(e),function e(t,i){t&&i&&(Xe(t)?t.forEach(t=>e(t,i)):"object"==typeof t&&(t.color||t.backgroundColor||t.fontFamily||t.fontShape||t.fontSeries||t.fontSize||(t.applyStyle(i),e(t.body,i),e(t.numer,i),e(t.denom,i),e(t.index,i),e(t.overscript,i),e(t.underscript,i),e(t.subscript,i),e(t.superscript,i))))}(d,i.style);const f=e.parent();if("latex"!==i.format&&e.options.removeExtraneousParentheses&&f&&"leftright"===f.type&&"("===f.leftDelim&&rt(f.body)&&d&&1===d.length&&"genfrac"===d[0].type?(e.path.pop(),e.siblings()[e.anchorOffset()]=d[0]):("latex"!==i.format||1!==m.length||m[0]||"root"===f.type&&rt(f.body)&&(f.latex=t),e.siblings().splice(e.anchorOffset()+1,0,...d)),pa(e),e.suppressChangeNotifications=l,"placeholder"===i.selectionMode){const t=[];for(const e of d)e.forEach(e=>{"placeholder"===e.type&&t.push(e)});0!==t.length&&Rt(e,1,!1)?e.announce("move"):It(e,e.anchorOffset()+d.length)}else"before"===i.selectionMode||("after"===i.selectionMode?It(e,e.anchorOffset()+d.length):"item"===i.selectionMode&&It(e,e.anchorOffset(),d.length));Tt(e),e.suppressChangeNotifications=n}function ha(e){if(e)return 1===e.length&&"leftright"===e[0].type&&"("===e[0].leftDelim&&(e=e[0].body),e}function fa(e,t){if(t&&e.options.removeExtraneousParentheses){for(let e=0;t[e];e++)if("leftright"===t[e].type&&"("===t[e].leftDelim&&Xe(t[e].body)){let i=0,a=0,o=0;for(let r=0;t[e].body[r];r++)"genfrac"===t[e].body[r].type&&(i++,a=r),"first"!==t[e].body[r].type&&o++;0===o&&1===i&&(t[e]=t[e].body[a])}t.forEach(t=>{if("genfrac"===t.type&&(fa(e,t.numer),fa(e,t.denom),t.numer=ha(t.numer),t.denom=ha(t.denom)),t.superscript&&(fa(e,t.superscript),t.superscript=ha(t.superscript)),t.subscript&&(fa(e,t.subscript),t.subscript=ha(t.subscript)),t.underscript&&(fa(e,t.underscript),t.underscript=ha(t.underscript)),t.overscript&&(fa(e,t.overscript),t.overscript=ha(t.overscript)),t.index&&(fa(e,t.index),t.index=ha(t.index)),"surd"===t.type?(fa(e,t.body),t.body=ha(t.body)):Xe(t.body)&&fa(e,t.body),t.array)for(let i=gt(t.array);i>=0;i--)fa(e,ft(t.array,i))})}}function ga(e,t,i){const a=e.parent();let o="leftright"===a.type?a.leftDelim+a.rightDelim:"";if("\\lbrace\\rbrace"===o&&(o="{}"),"\\{\\}"===o&&(o="{}"),"{}"===o&&/\||\\vert|\\Vert|\\mvert|\\mid/.test(t))return ua(e,"\\,\\middle"+t+"\\, ",{mode:"math",format:"latex",style:i}),!0;"{"!==t&&"\\{"!==t||(t="\\lbrace"),"}"!==t&&"\\}"!==t||(t="\\rbrace"),"["===t&&(t="\\lbrack"),"]"===t&&(t="\\rbrack");const r=F[t];if(r&&("leftright"!==a.type||"|"!==a.leftDelim)){let a="";const o=Jt(e)||"placeholder"===Kt(e).type;a=e.sibling(0).isFunction?"\\mleft"+t+"\\mright":"\\left"+t+"\\right",a+=o?"?":r;let s=[];return o&&(s=e.siblings().splice(e.anchorOffset()+1,e.siblings().length)),ua(e,a,{mode:"math",format:"latex",style:i}),o&&(e.sibling(0).body=s,Wt(e,"backward")),!0}let s;if(Object.keys(F).forEach(e=>{t===F[e]&&(s=e)}),s){if(a&&"leftright"===a.type&&e.endOffset()===e.siblings().length-1)return a.rightDelim=t,Wt(e,"forward"),Tt(e),!0;const o=e.siblings();let r;for(r=e.endOffset();r>=0&&("leftright"!==o[r].type||"?"!==o[r].rightDelim);r--);if(r>=0)return o[r].rightDelim=t,o[r].body=o[r].body.concat(o.slice(r+1,e.endOffset()+1)),o.splice(r+1,e.endOffset()-r),It(e,r),Tt(e),!0;if(a&&"leftright"===a.type&&"?"===a.rightDelim){a.rightDelim=t;const i=o.slice(e.endOffset()+1);return o.splice(e.endOffset()+1),e.path.pop(),e.siblings().splice(e.endOffset()+1,0,...i),Tt(e),!0}const s=e.ancestor(2);return!(!s||"leftright"!==s.type||"?"!==s.rightDelim||e.endOffset()!==o.length-1)&&(Wt(e,"forward"),ga(e,t,i))}return!1}aa({performWithFeedback:(e,t)=>function(e,t){return e.focus(),e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),"moveToNextPlaceholder"===(t=t.replace(/-\w/g,e=>e[1].toUpperCase()))||"moveToPreviousPlaceholder"===t||"complete"===t?e.returnKeypressSound?(e.returnKeypressSound.load(),e.returnKeypressSound.play().catch(e=>{})):e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):"deletePreviousChar"!==t&&"deleteNextChar"!==t&&"deletePreviousWord"!==t&&"deleteNextWord"!==t&&"deleteToGroupStart"!==t&&"deleteToGroupEnd"!==t&&"deleteToMathFieldStart"!==t&&"deleteToMathFieldEnd"!==t||!e.deleteKeypressSound?e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):(e.deleteKeypressSound.load(),e.deleteKeypressSound.play().catch(e=>{})),e.executeCommand(t)}(e,t)}),aa({addRowAfter:na,addColumnAfter:la,addRowBefore:function(e){return sa(e),ra(e,"before row"),Tt(e),!0},addColumnBefore:function(e){return sa(e),ra(e,"before column"),Tt(e),!0}},{target:"model",category:"array-edit"});class ya{constructor(e){this.positions=[],this.root=e;const t=new ka;t.root=e,pa(t);do{this.positions.push({path:t.toString(),atom:xa(t),depth:t.path.length})}while(ba(t))}at(e){return this.positions[e]}find(e){for(let t=0;tthis.at(e).path)}}function ba(t){const i={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(t.anchorOffset()===t.siblings(!1).length-1){let e=i[t.relation()];const a=t.parent();for(;e&&!a[e];)e=i[e];if(e)return va(t,0,e),!0;if(t.parent().array){const e=gt(t.parent().array);let i=parseInt(t.relation().match(/cell([0-9]*)$/)[1])+1;for(;i{},moveOut:(null==e?void 0:e.moveOut)?e.moveOut:()=>!0,tabOut:(null==e?void 0:e.tabOut)?e.tabOut:()=>!0}}get selection(){const e=Kt(this);let t=void 0;if(this.parent().array)t=ft(this.parent().array,this.relation())[this.focusOffset()];else{const e=this.siblings();t=e[Math.min(e.length-1,this.focusOffset())]}const i=new ya(this.root);return[lt(i,{start:i.find(e),end:i.find(t)})]}set selection(e){!function(e,t){const i=Array.isArray(t)?t[0]:t,a=new ya(e.root);let o;i.direction||(i.direction="forward"),void 0===i.end&&(i.end=i.start),i.end<0&&(i.end=a.lastPosition),o="backward"===i.direction?a.at(i.end).path:a.at(i.start).path,Et(e,o,i.end-i.start)}(this,e)}get lastPosition(){return new ya(this.root).lastPosition}announce(e,t,i=[]){this.hooks.announce(this.mathfield,e,t,i)}toString(){return ct(this.path,this.extent)}siblings(e=!0){var t;if(0===this.path.length)return[];let i;return this.parent().array?i=ft(this.parent().array,this.relation()):(i=null!==(t=this.parent()[this.relation()])&&void 0!==t?t:[],"string"==typeof i&&(i=[])),!e||0!==i.length&&"first"===i[0].type||i.unshift(new Ue(this.parent().mode,"first")),i}anchorOffset(){return this.path.length>0?this.path[this.path.length-1].offset:0}focusOffset(){return this.path.length>0?this.path[this.path.length-1].offset+this.extent:0}groupIsSelected(){return 0===this.startOffset()&&this.endOffset()>=this.siblings().length-1}startOffset(){return Math.min(this.focusOffset(),this.anchorOffset())}endOffset(){return Math.max(this.focusOffset(),this.anchorOffset())}sibling(e){return this.siblings()[this.startOffset()+e]}ancestor(e){if(e>this.path.length)return null;let t=this.root;for(let i=0;i0?this.path[this.path.length-1].relation:""}insertFirstAtom(){this.siblings()}}function _a(e){if(ei(e),!Kt(e).superscript)if(Kt(e).subscript)Kt(e).superscript=[new Ue(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.superscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.subscript)?(e.path[e.path.length-1].offset+=1,Kt(e).superscript=[new Ue(e.parent().mode,"first")]):("limits"!==Kt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Ue(e.parent().mode,"msubsup","​",Bt(e))),e.path[e.path.length-1].offset+=1),Kt(e).superscript=[new Ue(e.parent().mode,"first")])}return e.path.push({relation:"superscript",offset:0}),Zt(e),!0}aa({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",denom:"numer",numer:"denom"}[e.relation()];return t||_a(e),e.parent()[t]||(e.parent()[t]=[new Ue(e.parent().mode,"first")]),It(e,0,"end",t),!0},moveBeforeParent:e=>e.path.length>1?(e.path.pop(),It(e,e.anchorOffset()-1),!0):(e.announce("plonk"),!1),moveAfterParent:e=>ii(e),moveToNextPlaceholder:e=>Rt(e,1),moveToPreviousPlaceholder:e=>Rt(e,-1),moveToNextChar:e=>Wt(e,"forward"),moveToPreviousChar:e=>Wt(e,"backward"),moveUp:e=>Wt(e,"upward"),moveDown:e=>Wt(e,"downward"),moveToNextWord:e=>jt(e,1),moveToPreviousWord:e=>jt(e,-1),moveToGroupStart:e=>It(e,0),moveToGroupEnd:e=>It(e,-1),moveToMathFieldStart:e=>Xt(e,-1),moveToMathFieldEnd:e=>Xt(e,1),moveToSuperscript:e=>_a(e),moveToSubscript:e=>function(e){if(ei(e),!Kt(e).subscript)if(Kt(e).superscript)Kt(e).subscript=[new Ue(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.subscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.superscript)?(e.path[e.path.length-1].offset+=1,Kt(e).subscript=[new Ue(e.parent().mode,"first")]):("limits"!==Kt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Ue(e.parent().mode,"msubsup","​",Bt(e))),e.path[e.path.length-1].offset+=1),Kt(e).subscript=[new Ue(e.parent().mode,"first")])}return e.path.push({relation:"subscript",offset:0}),Zt(e),!0}(e)},{target:"model",category:"selection-anchor"}),aa({selectGroup:e=>Zt(e),selectAll:e=>Yt(e),extendToNextChar:e=>Ut(e,1),extendToPreviousChar:e=>Ut(e,-1),extendToNextWord:e=>jt(e,1,{extend:!0}),extendToPreviousWord:e=>jt(e,-1,{extend:!0}),extendUp:e=>Wt(e,"upward",{extend:!0}),extendDown:e=>Wt(e,"downward",{extend:!0}),extendToNextBoundary:e=>jt(e,1,{extend:!0}),extendToPreviousBoundary:e=>jt(e,-1,{extend:!0}),extendToGroupStart:e=>(Qt(e,-e.anchorOffset()),!0),extendToGroupEnd:e=>(Qt(e,e.siblings().length-e.anchorOffset()),!0),extendToMathFieldStart:e=>Xt(e,-1,{extend:!0}),extendToMathFieldEnd:e=>Xt(e,1,{extend:!0})},{target:"model",category:"selection-extend"}),aa({deleteAll:e=>(Yt(e),da(e)),deleteNextChar:e=>da(e,1),deletePreviousChar:e=>da(e,-1),deleteNextWord:e=>(jt(e,1,{extend:!0}),da(e)),deletePreviousWord:e=>(jt(e,-1,{extend:!0}),da(e)),deleteToGroupStart:e=>(Qt(e,-e.anchorOffset()),da(e)),deleteToGroupEnd:e=>(Xt(e,-1,{extend:!0}),da(e)),deleteToMathFieldStart:e=>(Xt(e,-1,{extend:!0}),da(e)),deleteToMathFieldEnd:e=>(Xt(e,1,{extend:!0}),da(e))},{target:"model",category:"delete"});const wa=["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"];function Ma(e){return!e.ctrlKey&&!e.metaKey&&"Dead"!==e.key&&wa.indexOf(e.code)>=0}function za(e){const t=[];return(e=function(e){if(!e.code){const t=Object.entries(hi().mapping);let i,a=!1,o=!1;for(let r=0;r<4;r++){for(const[s,n]of t)if(n[r]===e.key){i=s,3===r?(a=!0,o=!0):2===r?a=!0:1===r&&(o=!0);break}if(i)break}return new KeyboardEvent(e.type,{...e,altKey:a,shiftKey:o,code:i})}return new KeyboardEvent(e.type,e)}(e)).ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),0===t.length?"["+e.code+"]":(t.push("["+e.code+"]"),t.join("+"))}function Sa(e){var t;if(!e)return"";let i;return"Unidentified"===e.key&&e.target&&(i=e.target.value),i=null!==(t=null!=i?i:e.key)&&void 0!==t?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(i)&&(i=""),i}class La{constructor(e){this.maximumDepth=1e3,this.record=!1,this.canCoalesce=!1,this.model=e,this.reset()}reset(){this.stack=[],this.index=-1}startRecording(){this.record=!0}canUndo(){return this.index>0}canRedo(){return this.index!==this.stack.length-1}undo(e){this.canUndo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"undo"),this.restore(this.stack[this.index-1],e),this.index-=1,e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"undo"),this.canCoalesce=!1)}redo(e){this.canRedo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"redo"),this.index+=1,this.restore(this.stack[this.index],e),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"redo"),this.canCoalesce=!1)}pop(){this.canUndo()&&(this.index-=1,this.stack.pop())}snapshot(e){this.record&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"snapshot"),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push({latex:this.model.root.toLatex(!1),selection:this.model.selection}),this.index++,this.stack.length>this.maximumDepth&&this.stack.shift(),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"snapshot"),this.canCoalesce=!1)}snapshotAndCoalesce(e){this.canCoalesce&&this.pop(),this.snapshot(e),this.canCoalesce=!0}save(){return{latex:this.model.root.toLatex(!1),selection:this.model.selection}}restore(e,t){const i=this.model.suppressChangeNotifications;void 0!==t.suppressChangeNotifications&&(this.model.suppressChangeNotifications=t.suppressChangeNotifications),ua(this.model,e?e.latex:"",{...t,format:"latex",mode:"math",insertionMode:"replaceAll",selectionMode:"after",smartFence:!1}),this.model.selection=e?e.selection:[{start:0}],this.model.suppressChangeNotifications=i}}const Aa={"−":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega"},Ca={"\\pm":"+-","\\times":"xx","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrace":"{","\\rbrace":"}","\\langle":"(:","\\rangle":":)"};function $a(t){if(!t)return"";if(e(t)){let e="";if(0===t.length)return"";if("first"===t[0].type&&(t=t.slice(1)),0===t.length)return"";if("text"===t[0].mode){let i=0;for(e='"';t[i]&&"text"===t[i].mode;)e+=t[i].body,i++;e+='"'+$a(t.slice(i))}else if("math"===t[0].mode){let i=0;for(;t[i]&&"math"===t[i].mode;)e+=$a(t[i]),i++;e+=$a(t.slice(i))}return e.trim()}if("text"===t.mode)return'"'+t.body+'"';let i="";const a=t.symbol;let o;switch(t.type){case"group":case"root":i=$a(t.body);break;case"array":break;case"genfrac":(t.leftDelim||t.rightDelim)&&(i+="."!==t.leftDelim&&t.leftDelim?t.leftDelim:"{:"),t.hasBarLine?(i+="(",i+=$a(t.numer),i+=")/(",i+=$a(t.denom),i+=")"):(i+="("+$a(t.numer)+"),",i+="("+$a(t.denom)+")"),(t.leftDelim||t.rightDelim)&&(i+="."!==t.rightDelim&&t.rightDelim?t.rightDelim:"{:");break;case"surd":t.index?i+="root("+$a(t.index)+")("+$a(t.body)+")":i+="sqrt("+$a(t.body)+")";break;case"leftright":i+="."!==t.leftDelim&&t.leftDelim?t.leftDelim:"{:",i+=$a(t.body),i+="."!==t.rightDelim&&t.rightDelim?t.rightDelim:":}";break;case"sizeddelim":case"delim":case"overlap":case"overunder":break;case"mord":i=Aa[a]||a||("string"==typeof t.body?t.body:""),"\\"===i[0]&&(i=String(i)),o=a?a.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null,o?i=String.fromCharCode(parseInt("0x"+o[1])):i.length>0&&"\\"===i.charAt(0)&&(i="string"==typeof t.body?t.body.charAt(0):t.symbol);break;case"mbin":case"mrel":case"textord":case"minner":i=a&&Aa[a]?Aa[a]:a&&Ca[a]?Ca[a]:t.body;break;case"mopen":case"mclose":i+=t.body;break;case"mpunct":i=Ca[a]||a;break;case"mop":"​"!==t.body&&(i="",i+="\\operatorname"===a?$a(t.body):t.body||a,i+=" ");break;case"mathstyle":case"box":case"spacing":case"enclose":break;case"space":i=" "}if(t.subscript){i+="_";const e=$a(t.subscript);e.length>1&&!/^(-)?\d+(\.\d*)?$/.test(e)?i+="("+e+")":i+=e}if(t.superscript){i+="^";const e=$a(t.superscript);e.length>1&&!/^(-)?\d+(\.\d*)?$/.test(e)?i+="("+e+")":i+=e}return i}const qa={};function Da(e){const t=qa.locale.substring(0,2);let i="";return qa.strings[qa.locale]&&(i=qa.strings[qa.locale][e]),!i&&qa.strings[t]&&(i=qa.strings[t][e]),i||(i=qa.strings.en[e]),i||(i=e),i}function Ta(e,t,i){st(e);const a=[],o=t.substr(i);for(const e of o){const t=new Ue("command","command",e);t.isSuggestion=!0,a.push(t)}Array.prototype.splice.apply(e.siblings(),[e.anchorOffset()+1,0].concat(a))}function Ka(e,t){if(t=null!=t?t:{acceptSuggestion:!1},Ti(e),t.discard)return Ni(e.model,null),e.switchMode("math"),!0;const i=Ki(e.model,!t.acceptSuggestion);if(i){if("\\("===i||"\\)"===i)Ni(e.model,[]),ua(e.model,i.slice(1),{mode:e.mode});else{e.switchMode("math");const t=Qe(i,"math",null,e.options.macros);t?Ni(e.model,t):Ei(e.model,!0)}return e.snapshot(),e.model.announce("replacement"),!0}return!1}function Ea(e){!function(e){const t=e.siblings(),i=Ft(e);let a=i.start;for(;a1)}return ea(e),!0}qa.plural=function(e,t,i){var a;(i=null!=i?i:{}).type=null!==(a=i.type)&&void 0!==a?a:"cardinal";const o=qa.locale.substring(0,2),r="ordinal"===i.type?qa._ordinal:qa._cardinal;let s,n="ordinal"===i.type?qa._ordinalPluralCategories.indexOf(r.select(e)):qa._cardinalPluralCategories.indexOf(r.select(e));return qa.strings[qa.locale]&&(s=qa.strings[qa.locale][t]),!s&&qa.strings[o]&&(s=qa.strings[o][t]),s||(s=qa.strings.en[t],s||(s=t),n="ordinal"===i.type?qa._ordinalPluralCategories.indexOf(qa._ordinalEnglish.select(e)):qa._cardinalPluralCategories.indexOf(qa._cardinalEnglish.select(e))),s.split(";")[n]||s.split(";")[0]},qa.merge=function(e,t){if(e&&t){const i=qa._locale;qa.locale=e,qa.strings[e]={...qa.strings[e],...t},qa.locale=i}else e&&!t&&Object.keys(e).forEach(t=>qa.merge(t,e[t]))},Object.defineProperty(qa,"locale",{set(e){qa._locale=e,qa._ordinal=null,qa._cardinal=null},get(){var e;return qa._locale||(qa._locale=null!==(e=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==e?e:"en"),qa._locale}}),Object.defineProperty(qa,"ordinal",{get:()=>(qa._ordinal||(qa._ordinalEnglish=new Intl.PluralRules("en",{type:"ordinal"}),qa._ordinalEnglishPluralCategories=qa._ordinalEnglish.resolvedOptions().pluralCategories,qa._ordinal=new Intl.PluralRules(qa.locale,{type:"ordinal"}),qa._ordinalPluralCategories=qa._ordinal.resolvedOptions().pluralCategories),qa._ordinal)}),Object.defineProperty(qa,"cardinal",{get:()=>(qa._cardinal||(qa._cardinalEnglish=new Intl.PluralRules("en",{type:"cardinal"}),qa._cardinalEnglishPluralCategories=qa._cardinalEnglish.resolvedOptions().pluralCategories,qa._cardinal=new Intl.PluralRules(qa.locale,{type:"cardinal"}),qa._cardinalPluralCategories=qa._ordinal.resolvedOptions().pluralCategories),qa._cardinal)}),qa.strings={en:{"keyboard.tooltip.functions":"Functions","keyboard.tooltip.symbols":"Symbols","keyboard.tooltip.greek":"Greek Letters","keyboard.tooltip.command":"LaTeX Command Mode","keyboard.tooltip.numeric":"Numeric","keyboard.tooltip.roman":"Roman Letters","tooltip.copy to clipboard":"Copy to Clipboard","tooltip.redo":"Redo","tooltip.toggle virtual keyboard":"Toggle Virtual Keyboard","tooltip.undo":"Undo"},ar:{"keyboard.tooltip.functions":"مهام","keyboard.tooltip.symbols":"حرف او رمز","keyboard.tooltip.greek":"حروف يونانية","keyboard.tooltip.command":"حالة تلقي الأوامر اللاتك","keyboard.tooltip.numeric":"الرقمية","keyboard.tooltip.roman":"رموز الاحرف الرومانية","tooltip.copy to clipboard":"نسخ إلى الحافظة","tooltip.redo":"الإعادة","tooltip.toggle virtual keyboard":"تبديل لوحة المفاتيح الإفتراضية","tooltip.undo":"إلغاء"},de:{"keyboard.tooltip.functions":"Funktionen","keyboard.tooltip.symbols":"Symbole","keyboard.tooltip.greek":"Griechische Buchstaben","keyboard.tooltip.command":"LaTeX-Befehlsmodus","keyboard.tooltip.numeric":"Numerisch","keyboard.tooltip.roman":"Römische Buchstaben","tooltip.copy to clipboard":"In die Zwischenablage kopieren","tooltip.redo":"Wiederholen","tooltip.toggle virtual keyboard":"Virtuelle Tastatur umschalten","tooltip.undo":"Widerrufen"},el:{"keyboard.tooltip.functions":"συναρτήσεις","keyboard.tooltip.symbols":"σύμβολα","keyboard.tooltip.greek":"ελληνικά γράμματα","keyboard.tooltip.command":"Λειτουργία εντολών LaTeX","keyboard.tooltip.numeric":"Αριθμητικός","keyboard.tooltip.roman":"Ρωμαϊκά γράμματα","tooltip.copy to clipboard":"Αντιγραφή στο πρόχειρο","tooltip.redo":"Ξανακάνω","tooltip.toggle virtual keyboard":"Εναλλαγή εικονικού πληκτρολογίου","tooltip.undo":"Ξεκάνω"},es:{"keyboard.tooltip.functions":"Funciones","keyboard.tooltip.symbols":"Símbolos","keyboard.tooltip.greek":"Letras griegas","keyboard.tooltip.command":"Modo Comando LaTeX","keyboard.tooltip.numeric":"Numérico","keyboard.tooltip.roman":"Letras romanas","tooltip.copy to clipboard":"Copiar al portapapeles","tooltip.redo":"Rehacer","tooltip.toggle virtual keyboard":"Alternar teclado virtual","tooltip.undo":"Deshacer"},fa:{"keyboard.tooltip.functions":"توابع","keyboard.tooltip.symbols":"نمادها","keyboard.tooltip.greek":"حروف یونانی","keyboard.tooltip.command":"حالت دستور لاتک","keyboard.tooltip.numeric":"عددی","keyboard.tooltip.roman":"حروف رومی","tooltip.copy to clipboard":"کپی به کلیپبورد","tooltip.redo":"بازگشت به بعد","tooltip.toggle virtual keyboard":"نمایش/نهفتن کیبورد مجازی","tooltip.undo":"بازگشت به قبل"},fr:{"keyboard.tooltip.functions":"Fonctions","keyboard.tooltip.symbols":"Symboles","keyboard.tooltip.greek":"Lettres grecques","keyboard.tooltip.command":"Mode de commandes LaTeX","keyboard.tooltip.numeric":"Numérique","keyboard.tooltip.roman":"Lettres romaines","tooltip.copy to clipboard":"Copier dans le presse-papiers","tooltip.redo":"Rétablir","tooltip.toggle virtual keyboard":"Afficher/Masquer le clavier virtuel","tooltip.undo":"Annuler"},it:{"keyboard.tooltip.functions":"Funzioni","keyboard.tooltip.symbols":"Simboli","keyboard.tooltip.greek":"Lettere greche","keyboard.tooltip.command":"Modalità di comando LaTeX","keyboard.tooltip.numeric":"Numerico","keyboard.tooltip.roman":"Lettere romane","tooltip.copy to clipboard":"Copia negli appunti","tooltip.redo":"Rifare","tooltip.toggle virtual keyboard":"Attiva / disattiva la tastiera virtuale","tooltip.undo":"Disfare"},ja:{"keyboard.tooltip.functions":"関数","keyboard.tooltip.symbols":"シンボル","keyboard.tooltip.greek":"ギリシャ文字","keyboard.tooltip.command":"LaTeXコマンドモード","keyboard.tooltip.numeric":"数値","keyboard.tooltip.roman":"ローマ字","tooltip.copy to clipboard":"クリップボードにコピー","tooltip.redo":"やり直し","tooltip.toggle virtual keyboard":"仮想キーボードの切り替え","tooltip.undo":"元に戻す"},pl:{"keyboard.tooltip.functions":"Funkcje","keyboard.tooltip.symbols":"Symbolika","keyboard.tooltip.greek":"Litery greckie","keyboard.tooltip.command":"Tryb poleceń LaTeX","keyboard.tooltip.numeric":"Numeryczne","keyboard.tooltip.roman":"Litery rzymskie","tooltip.copy to clipboard":"Kopiuj do Schowka","tooltip.redo":"Przywróć","tooltip.toggle virtual keyboard":"Przełącz wirtualną klawiaturę","tooltip.undo":"Cofnij"},ru:{"keyboard.tooltip.functions":"Функции","keyboard.tooltip.symbols":"Символы","keyboard.tooltip.greek":"Греческие буквы","keyboard.tooltip.command":"Режим командной строки LaTeX","keyboard.tooltip.numeric":"числовой","keyboard.tooltip.roman":"Латинские буквы","tooltip.copy to clipboard":"Скопировать в буфер обмена","tooltip.redo":"переделывать","tooltip.toggle virtual keyboard":"Переключить виртуальную клавиатуру","tooltip.undo":"расстегивать"}},aa({complete:Ka,nextSuggestion:function(e){return e.suggestionIndex+=1,Ea(e),!1},previousSuggestion:function(e){if(e.suggestionIndex-=1,e.suggestionIndex<0){st(e.model);const t=ie(Ki(e.model));e.suggestionIndex=t.length-1}return Ea(e),!1}},{target:"mathfield",category:"autocomplete"});const Na={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"eye ","\\sum":"Summation ","\\prod":"Product ",a:'a',A:'capital A',"+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","​":"","−":"minus ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"};function Ba(e){let t=0;if(Xe(e))for(const i of e)"first"!==i.type&&(t+=1);return 1===t}function Oa(e){let t="";if(Xe(e))for(const i of e)"first"!==i.type&&"string"==typeof i.body&&(t+=i.body);return t}function Fa(e,t){var i;const a={...t,textToSpeechRulesOptions:{...t.textToSpeechRulesOptions}};if(window.sre&&"sre"===a.textToSpeechRules){const t=Ji(e,a);return t?(a.textToSpeechMarkup&&(a.textToSpeechRulesOptions=null!==(i=a.textToSpeechRulesOptions)&&void 0!==i?i:{},a.textToSpeechRulesOptions.markup=a.textToSpeechMarkup,"ssml"===a.textToSpeechRulesOptions.markup&&(a.textToSpeechRulesOptions.markup="ssml_step"),a.textToSpeechRulesOptions.rate=a.speechEngineRate),a.textToSpeechRulesOptions&&window.sre.System.getInstance().setupEngine(a.textToSpeechRulesOptions),window.sre.System.getInstance().toSpeech(t)):""}let o=function e(t,i,a){function o(e){return""+e+""}if(!i)return"";let r="";if(Xe(i)){let s=!1,n=!1;for(let l=0;l'),r+=i.body;else{i.id&&"math"===t&&(r+='');let s="",n="",l="",c=!1;switch(i.type){case"group":case"root":r+=e("math",i.body,a);break;case"genfrac":if(s=e("math",i.numer,a),n=e("math",i.denom,a),Ba(i.numer)&&Ba(i.denom)){const e={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Oa(i.numer)+"/"+Oa(i.denom)];e?r=e:r+=s+" over "+n}else r+=' the fraction '+s+', over '+n+'. End fraction.';break;case"surd":if(l=e("math",i.body,a),i.index){let t=e("math",i.index,a);t=t.trim();const o=t.replace(//g,"");r+="3"===o?' the cube root of '+l+'. End cube root':"n"===o?' the nth root of '+l+'. End root':' the root with index: '+t+', of '+l+'. End root'}else Ba(i.body)?r+=" the square root of "+l+" , ":r+=' the square root of '+l+'. End square root';break;case"leftright":r+=Na[i.leftDelim]||i.leftDelim,r+=e("math",i.body,a),r+=Na[i.rightDelim]||i.rightDelim;break;case"rule":case"overunder":case"overlap":break;case"placeholder":r+="placeholder "+i.body;break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":case"textord":{const o=i.symbol;if("\\mathbin"===o||"\\mathrel"===o||"\\mathopen"===o||"\\mathclose"===o||"\\mathpunct"===o||"\\mathord"===o||"\\mathinner"===o){r=e(t,i.body,a);break}let s=i.body,n=i.symbol;if("delim"!==i.type&&"sizeddelim"!==i.type||(s=n=i.delim),"text"===t)r+=s;else{if("mbin"===i.type&&(r+=''),s){const e=Na[s]||(n?Na[n.trim()]:"");if(e)r+=" "+e;else{const e=n?function(e){let t="";return"\\"===e.charAt(0)&&(t=" "+e.replace("\\","")+" "),t}(n.trim()):"";r+=e||function(e){let t="";return a.textToSpeechMarkup?/[a-z]/.test(e)?t+=' '+e+"":/[A-Z]/.test(e)?t+=String("capital "+e.toLowerCase()):t+=e:/[a-z]/.test(e)?t+=" '"+e.toUpperCase()+"'":/[A-Z]/.test(e)?t+=" 'capital "+e.toUpperCase()+"'":t+=e,t}(s)}}else r+=e("math",i.body,a);"mbin"===i.type&&(r+='')}break}case"mop":if("​"!==i.body){const t=i.symbol;if("\\sum"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the summation from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the summation from '+t+' of ',c=!0}else r+=" the summation of";else if("\\prod"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the product from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the product from '+t+' of ',c=!0}else r+=" the product of ";else if("\\int"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let s=e("math",i.subscript,a);s=s.trim(),r+=' the integral from '+o(s)+' to '+o(t)+' of ',c=!0}else r+=' the integral of ';else"string"==typeof i.body?r+=Na[i.body]||Na[i.symbol]||" "+i.body:i.symbol&&("\\"===i.symbol[0]?r+=" "+i.symbol.substr(1):r+=" "+i.symbol)}break;case"enclose":l=e("math",i.body,a),Ba(i.body)?r+=" crossed out "+l+" , ":r+=" crossed out "+l+". End cross out"}if(!c&&i.superscript){let o=e(t,i.superscript,a);o=o.trim();const s=o.replace(/<[^>]*>/g,"");if(Ba(i.superscript)){if("math"===t){const e=function(e){if(Xe(e))for(const t of e)if("first"!==t.type&&t.id)return t.id.toString();return""}(i.superscript);e&&(r+='')}"′"===s?r+=" prime ":"2"===s?r+=" squared ":"3"===s?r+=" cubed ":isNaN(parseInt(s))?r+=" to the "+o+"; ":r+=' to the '+s+" power; "}else isNaN(parseInt(s))?r+=" raised to the "+o+"; ":r+=' raised to the '+s+" power; "}if(!c&&i.subscript){let t=e("math",i.subscript,a);t=t.trim(),Ba(i.subscript)?r+=" sub "+t:r+=" subscript "+t+". End subscript. "}}return r}("math",e,a);if("ssml"===a.textToSpeechMarkup){let e="";a.speechEngineRate&&(e=''),o=''+e+"

    "+o+"

    "+(e?"
    ":"")+""}else o="mac"===a.textToSpeechMarkup&&"mac"===function(e){let t="other";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?t="mac":/^(win)/i.test(navigator.platform)?t="win":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos")),t===e?e:"!"+e}("mac")?o.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):o.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return o}function Pa(e,t,i){return t+Fa(i,{...e,textToSpeechMarkup:"",textToSpeechRulesOptions:{...e.textToSpeechRulesOptions,markup:"none"}})}function Ra(e,t){if(!t&&window&&window.mathlive&&(t=window.mathlive.config),(t=null!=t?t:{}).speechEngine&&"local"!==t.speechEngine)if("amazon"===t.speechEngine){if(window&&window.AWS){const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),a={OutputFormat:"mp3",VoiceId:t.speechEngineVoice,Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes(t.speechEngineVoice)?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(a,(function(e,t){if(e);else if(null==t?void 0:t.AudioStream){const e=new Uint8Array(t.AudioStream),i=new Blob([e.buffer],{type:"audio/mpeg"}),a=URL.createObjectURL(i);new Audio(a).play().catch(e=>{})}}))}}else t.speechEngine;else{const t=new SpeechSynthesisUtterance(e);window&&window.speechSynthesis.speak(t)}}function Ia(e,t,i,a){let o="";"plonk"===t?(e.plonkSound&&(e.plonkSound.load(),e.plonkSound.play().catch(e=>{})),e.resetKeystrokeBuffer()):"delete"===t?o=Pa(e.options,"deleted: ",a):"focus"===t||/move/.test(t)?o=(Jt(e.model)?"":"selected: ")+function(e,t){function i(e,t){return"body"===t.relation?{enclose:"cross out",leftright:"fence",surd:"square root",root:"math field"}[e.type]:{numer:"numerator",denom:"denominator",index:"index",body:"parent",subscript:"subscript",superscript:"superscript"}[t.relation]}const a=t?t.path:[],o=e.model.path,r=o[o.length-1];let s="";for(;a.length>o.length;)s+="out of "+i(t.parent(),a[a.length-1])+"; ",a.pop();if(!Jt(e.model))return Pa(e.options,"",Gt(e.model));const n=i(e.model.parent(),r);0===r.offset&&(s+=(n?"start of "+n:"unknown")+": ");const l=e.model.sibling(Math.max(1,e.model.extent));return l?s+=Pa(e.options,"",l):0!==r.offset&&(s+=n?"end of "+n:"unknown"),s}(e,i):"replacement"===t?o=Pa(e.options,"",e.model.sibling(0)):"line"===t?(o=Pa(e.options,"",e.model.root),e.accessibleNode.innerHTML=e.options.createHTML(''+Ji(e.model.root,e.options)+""),e.textarea.setAttribute("aria-label","after: "+o)):o=a?Pa(e.options,t+" ",a):t;const r=/\u00a0/.test(e.ariaLiveText.textContent)?"   ":"   ";e.ariaLiveText.textContent=o+r}aa({speak:(e,t,i)=>function(e,t,i){i=null!=i?i:{withHighlighting:!1};const a=function(e,t){let i=null;switch(t){case"all":i=e.model.root;break;case"selection":Jt(e.model)||(i=Gt(e.model));break;case"left":{const t=e.model.siblings(),a=e.model.startOffset();if(a>=1){i=[];for(let e=1;e<=a;e++)i.push(t[e])}break}case"right":{const t=e.model.siblings(),a=e.model.endOffset()+1;if(a<=t.length-1){i=[];for(let e=a;e<=t.length-1;e++)i.push(t[e])}break}case"group":i=e.model.siblings();break;case"parent":{const t=e.model.parent();t&&"root"!==t.type&&(i=e.model.parent());break}}return i}(e,t);if(null===a)return e.options.speakHook(function(e){let t="";switch(e){case"all":break;case"selection":t="no selection";break;case"left":t="at start";break;case"right":t="at end";break;case"group":break;case"parent":t="no parent"}return t}(t),e.options),!1;const o={...e.options};(i.withHighlighting||"amazon"===o.speechEngine)&&(o.textToSpeechMarkup=window.sre&&"sre"===o.textToSpeechRules?"ssml_step":"ssml");const r=Fa(a,o);return i.withHighlighting?(window.mathlive.readAloudMathField=e,ta(e,{forHighlighting:!0}),e.options.readAloudHook&&e.options.readAloudHook(e.field,r,e.options)):e.options.speakHook&&e.options.speakHook(r,o),!1}(e,t,i)},{target:"mathfield",category:"speech"});const Ha=()=>{};function Va(e){if("string"==typeof e){const t=new Audio;return t.preload="none",t.src=e,t.volume=.5,t}return e}function Wa(e){e instanceof HTMLAudioElement&&(e.pause(),e.removeAttribute("src"),e.load())}function Ua(t,i){const a=ja(t,Object.keys(t));return Object.keys(i).forEach(t=>{var o,r,s;switch(t){case"scriptDepth":if(e(i.scriptDepth))a.scriptDepth=[i.scriptDepth[0],i.scriptDepth[1]];else{if("number"!=typeof i.scriptDepth)throw Error("Unexpected value for scriptDepth");a.scriptDepth=[i.scriptDepth,i.scriptDepth]}break;case"namespace":if(!/^[a-z]*[-]?$/.test(i.namespace))throw Error("namespace must be a string of lowercase characters only");/-$/.test(i.namespace)?a.namespace=i.namespace:a.namespace=i.namespace+"-";break;case"locale":a.locale="auto"===i.locale?null!==(o=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==o?o:"en":i.locale,qa.locale=a.locale;break;case"strings":qa.merge(i.strings),a.strings=qa.strings;break;case"virtualKeyboardLayout":"auto"===i.virtualKeyboardLayout?a.virtualKeyboardLayout=null!==(r={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[qa.locale.substring(0,2)])&&void 0!==r?r:"qwerty":a.virtualKeyboardLayout=i.virtualKeyboardLayout;break;case"virtualKeyboardMode":{const e=null===(s=window.matchMedia)||void 0===s?void 0:s.call(window,"(any-pointer: coarse)").matches;"auto"===i.virtualKeyboardMode?a.virtualKeyboardMode=e?"onfocus":"off":a.virtualKeyboardMode=i.virtualKeyboardMode}break;case"letterShapeStyle":"auto"===i.letterShapeStyle?"fr"===qa.locale.substring(0,2)?a.letterShapeStyle="french":a.letterShapeStyle="tex":a.letterShapeStyle=i.letterShapeStyle;break;case"plonkSound":Wa(a.plonkSound),a.plonkSound=Va(i.plonkSound);break;case"keypressSound":if(Wa(a.keypressSound),"string"==typeof i.keypressSound){const e=Va(i.keypressSound);a.keypressSound={delete:e,return:e,spacebar:e,default:e}}else if(i.keypressSound instanceof HTMLAudioElement)a.keypressSound={delete:i.keypressSound,return:i.keypressSound,spacebar:i.keypressSound,default:i.keypressSound};else{if(!i.keypressSound.default)throw Error("Missing keypressSound.default");a.keypressSound={...i.keypressSound},a.keypressSound.return||(a.keypressSound.return=i.keypressSound.default),a.keypressSound.spacebar||(a.keypressSound.spacebar=i.keypressSound.default),a.keypressSound.delete||(a.keypressSound.delete=i.keypressSound.default)}break;case"onBlur":case"onFocus":case"onContentWillChange":case"onContentDidChange":case"onSelectionWillChange":case"onSelectionDidChange":case"onUndoStateWillChange":case"onUndoStateDidChange":case"onModeChange":case"onCommit":case"onVirtualKeyboardToggle":case"onReadAloudStatus":case"onError":if(null===i[t])a[t]=Ha;else if("function"!=typeof i[t])throw Error(t+" must be a function or null");a[t]=i[t];break;default:e(i[t])?a[t]=[...i[t]]:"object"==typeof i[t]?a[t]={...i[t]}:a[t]=i[t]}}),void 0!==i.overrideDefaultInlineShortcuts&&(i.overrideDefaultInlineShortcuts?a.inlineShortcuts=i.inlineShortcuts:a.inlineShortcuts={...St,...i.inlineShortcuts}),a}function ja(t,i){let a;a="string"==typeof i?[i]:void 0===i?Object.keys(t):i;const o={};return a.forEach(i=>{e(o[i])?o[i]=[...o[i]]:"object"==typeof o[i]?o[i]={...o[i]}:o[i]=t[i]}),"string"==typeof i?o[i]:o}function Xa(){return{namespace:"",substituteTextArea:void 0,readOnly:!1,createHTML:e=>e,fontsDirectory:"./fonts",defaultMode:"math",macros:O,horizontalSpacingScale:1,letterShapeStyle:"auto",smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,ignoreSpacebarInMathMode:!0,locale:qa.locale,strings:qa.strings,keybindings:fi,overrideDefaultInlineShortcuts:!1,inlineShortcuts:{},inlineShortcutTimeout:0,virtualKeyboardToggleGlyph:'',virtualKeyboardMode:"auto",virtualKeyboards:"all",virtualKeyboardLayout:"auto",customVirtualKeyboardLayers:{},customVirtualKeyboards:{},virtualKeyboardTheme:/android|cros/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?"material":"apple",keypressVibration:!0,keypressSound:null,plonkSound:null,textToSpeechRules:"mathlive",textToSpeechMarkup:"",textToSpeechRulesOptions:{},speechEngine:"local",speechEngineVoice:"Joanna",speechEngineRate:"100%",speakHook:Ha,readAloudHook:Ha,onAnnounce:Ia,onKeystroke:()=>!0,onMoveOutOf:()=>!0,onTabOutOf:()=>!0,onBlur:Ha,onFocus:Ha,onContentWillChange:Ha,onContentDidChange:Ha,onSelectionWillChange:Ha,onSelectionDidChange:Ha,onUndoStateWillChange:Ha,onUndoStateDidChange:Ha,onModeChange:Ha,onVirtualKeyboardToggle:Ha,onReadAloudStatus:Ha,onCommit:Ha,onError:()=>{}}}function Ga(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"math"!==r.mode||!(/mord|textord|mpunct/.test(r.type)||"mop"===r.type&&/[a-zA-Z]+/.test(r.body))||Boolean(r.superscript)||Boolean(r.subscript)||i&&!i(r),o||(r.applyStyle({mode:"text"}),r.symbol=r.body,r.latex=""),a-=1,t-=1}Tt(e.model)}function Za(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"text"!==r.mode||" "===r.body||i&&!i(r),o||r.applyStyle({mode:"math"}),a-=1,t-=1}Ya(e),Tt(e.model)}function Ya(e){let t=0;for(;e.model.sibling(t)&&"math"===e.model.sibling(t).mode;)t-=1;if(e.model.sibling(t)&&"text"===e.model.sibling(t).mode&&" "===e.model.sibling(t).body&&(!e.model.sibling(t-1)||"math"===e.model.sibling(t-1).mode)){e.model.siblings().splice(t-1,1),Tt(e.model);const i=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,It(e.model,e.model.anchorOffset()-1),e.model.suppressChangeNotifications=i}}function Ja(e,t,i){!function(e){const t=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;if("Unidentified"===e.key)return;if("Dead"===e.key)return;const i=ci.filter(i=>{var a;return(null===(a=i.mapping[e.code])||void 0===a?void 0:a[t])===e.key});0!==i.length&&(i.forEach(e=>{e.score+=1}),ci.sort((e,t)=>t.score-e.score))}(i);const a=hi();if(e.keyboardLayout!==a.id&&(e.keyboardLayout=a.id,e.keybindings=xi(e.options.keybindings,t=>{"function"==typeof e.options.onError&&e.options.onError({code:"invalid-keybinding",arg:t.join("\n")})})),function(e,t){const i=e.keystrokeCaption;if(i&&e.keystrokeCaptionVisible){const a=e.element.getBoundingClientRect();i.style.left=a.left+"px",i.style.top=a.top-64+"px",i.innerHTML=e.options.createHTML(""+(vi(t)||t)+""+i.innerHTML),i.style.visibility="visible",setTimeout((function(){i.childNodes.length>0&&i.removeChild(i.childNodes[i.childNodes.length-1]),0===i.childNodes.length&&(i.style.visibility="hidden")}),3e3)}}(e,t),clearTimeout(e.keystrokeBufferResetTimer),e.options.onKeystroke&&!e.options.onKeystroke(e,t,i))return(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;let o,r,s,n=!1;if("command"!==e.mode&&(!i||!i.ctrlKey&&!i.metaKey))if("[Backspace]"===t)e.keystrokeBuffer=e.keystrokeBuffer.slice(0,-1),e.keystrokeBufferStates.pop(),e.resetKeystrokeBuffer({defer:!0});else if(Ma(i)){const t=Sa(i),a=e.keystrokeBuffer+t;let s=0;for(;!o&&s{e.startsWith(r)&&!i.includes(e)&&i.push(e)});const s=(null==t?void 0:t.inlineShortcuts)?t.inlineShortcuts:null;s&&Object.keys(s).forEach(e=>{e.startsWith(r)&&i.push(e)})}return i}(a,e.options).length<=1?n=!0:e.resetKeystrokeBuffer({defer:!0})}else e.resetKeystrokeBuffer();if(e.options.smartMode){const a=e.mode;o?e.mode="math":function(e,t,i){if(e.smartModeSuppressed)return!1;if(e.model.endOffset()<*|]$/.test(a))return Ya(e),!0}else{if("[Space]"===t)return Ga(e,void 0,e=>/[a-z][:,;.]$/.test(e.body)),!0;if(/[a-zA-Z]{3,}$/.test(o)&&!/(dxd|abc|xyz|uvw)$/.test(o))return Ga(e,void 0,e=>/[a-zA-Z]/.test(e.body)),!0;if(/(^|\W)(if|If)$/i.test(o))return Ga(e,1),!0;if(/(\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5){3,}$/u.test(o)&&!/(αβγ)$/.test(o))return Ga(e,void 0,e=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5)/u.test(e.body)),!0;if("?"===a)return!0;if("."===a&&!/[0-9-+]\.$/.test(o))return!0}return!1}(e,t,i)&&(e.mode={math:"text",text:"math"}[e.mode],s=""),e.mode!==a&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}if(o||s||(s=function(e,t,i){if(0===e.length)return"";for(let a=e.length-1;a>=0;a--)if(e[a].key===i&&(!e[a].ifMode||e[a].ifMode===t))return e[a].command;return""}(e.keybindings,e.mode,t)),!(o||s||"[Enter]"!==t&&"[Return]"!==t)&&"function"==typeof e.options.onCommit)return e.options.onCommit(e),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;if(!o&&!s)return!0;if(e.options.readOnly&&"insert"===s[0])return!0;Ei(e.model,!1);const l=e.model.parent();if("moveAfterParent"===s&&l&&"leftright"===l.type&&e.model.endOffset()===e.model.siblings().length-1&&e.options.smartFence&&ga(e.model,".",e.style)&&(s="",ea(e)),"math"===e.mode&&"[Spacebar]"===t&&!o){const t=e.model.sibling(1),i=e.model.sibling(-1);(t&&"text"===t.mode||i&&"text"===i.mode)&&ua(e.model," ",{mode:"text"})}if(s)e.executeCommand(s);else if(o){const t={...Bt(e.model),...e.style};if(!/^(\\{|\\}|\\[|\\]|\\@|\\#|\\$|\\%|\\^|\\_|\\backslash)$/.test(o)){const a=e.mode;ua(e.model,Sa(i),{suppressChangeNotifications:!0,mode:e.mode,style:t}),e.snapshotAndCoalesce(),e.restoreToUndoRecord(e.keystrokeBufferStates[r]),e.mode=a}const a=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,ua(e.model,o,{format:"latex",mode:e.mode,style:t,smartFence:!0}),Ya(e),o.endsWith(" ")&&(e.mode="text",ua(e.model," ",{mode:"text",style:t})),e.model.suppressChangeNotifications=a,Tt(e.model),Dt(e.model),e.snapshot(),e.dirty=!0,e.model.announce("replacement"),n&&e.resetKeystrokeBuffer()}return e.scrollIntoView(),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1}function Qa(e,t,i){if(e.options.readOnly)return void e.model.announce("plonk");if((i=null!=i?i:{}).focus&&e.focus(),i.feedback&&(e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{}))),i.commandMode&&"command"!==e.mode&&e.switchMode("command"),Ei(e.model,!1),i.simulateKeystroke){const i=t.charAt(0);if(!Ja(e,i,new KeyboardEvent("keypress",{key:i})))return}let a="",o=!1;if(e.pasteInProgress)e.pasteInProgress=!1,ua(e.model,t,{smartFence:e.options.smartFence,mode:"math"});else{const i={...Bt(e.model),...e.style},r=Ne(t);for(const t of r)if("command"===e.mode){st(e.model),e.suggestionIndex=0;const i=Ki(e.model),r=ie(i+t);o=r.length>1,0===r.length?(ua(e.model,t,{mode:"command"}),/^\\[a-zA-Z\\*]+$/.test(i+t)&&Ei(e.model,!0),Ti(e)):(ua(e.model,t,{mode:"command"}),r[0].match!==i+t&&Ta(e.model,r[0].match,-r[0].match.length+i.length+1),a=r[0].match)}else if("math"===e.mode){const a={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(a){if("moveToSuperscript"===a){if(eo(e)>=e.options.scriptDepth[1])return void e.model.announce("plonk")}else if("moveToSubscript"===a&&to(e)>=e.options.scriptDepth[0])return void e.model.announce("plonk");e.executeCommand(a)}else e.options.smartSuperscript&&"superscript"===e.model.relation()&&/[0-9]/.test(t)&&0===e.model.siblings().filter(e=>"first"!==e.type).length?(ua(e.model,t,{mode:"math",style:i}),ii(e.model)):ua(e.model,t,{mode:"math",style:i,smartFence:e.options.smartFence})}else"text"===e.mode&&ua(e.model,t,{mode:"text",style:i})}"command"!==e.mode&&e.snapshotAndCoalesce(),e.dirty=!0,e.scrollIntoView(),$i(e,a,o)}function eo(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!0:a.subscript&&(o=!1),i+=1,a=e.model.ancestor(i);return o?t:0}function to(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!1:a.subscript&&(o=!0),i+=1,a=e.model.ancestor(i);return o?t:0}function io(e){return e.pasteInProgress=!0,!0}let ao;aa({undo:e=>(Ka(e),e.undo(),!0),redo:e=>(Ka(e),e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},enterCommandMode:e=>(e.switchMode("command"),!0),toggleKeystrokeCaption:e=>(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaption.innerHTML="",e.keystrokeCaptionVisible||(e.keystrokeCaption.style.visibility="hidden"),!1),switchMode:(e,t)=>(e.switchMode(t),!0),insert:(e,t,i)=>e.insert(t,i),typedText:(e,t)=>(Qa(e,t),!0),commit:e=>("function"==typeof e.options.onCommit&&e.options.onCommit(e),!0)}),aa({applyStyle:function(e,t){e.resetKeystrokeBuffer();const i=function(e){const t={};return"string"==typeof e.mode&&(t.mode=e.mode.toLowerCase()),"string"==typeof e.color&&(t.color=e.color),"string"==typeof e.backgroundColor&&(t.backgroundColor=e.backgroundColor),"string"==typeof e.fontFamily&&(t.fontFamily=e.fontFamily),"string"==typeof e.series&&(t.fontSeries=e.series),"string"==typeof e.fontSeries&&(t.fontSeries=e.fontSeries.toLowerCase()),t.fontSeries&&(t.fontSeries={bold:"b",medium:"m",normal:"m"}[t.fontSeries]||t.fontSeries),"string"==typeof e.shape&&(t.fontShape=e.shape),"string"==typeof e.fontShape&&(t.fontShape=e.fontShape.toLowerCase()),t.fontShape&&(t.fontShape={italic:"it",up:"n",upright:"n",normal:"n"}[t.fontShape]||t.fontShape),"string"==typeof e.size?t.fontSize=e.size:"number"==typeof e.size&&(t.fontSize="size"+Math.min(0,Math.max(10,e.size))),"string"==typeof e.fontSize&&(t.fontSize=e.fontSize.toLowerCase()),t.fontSize&&(t.fontSize={tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normal:"size5",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[t.fontSize]||t.fontSize),t}(t);if(i.mode){if(Jt(e.model))e.switchMode(i.mode);else{const t=e.mode,i="math"===(Pt(e.model)||e.options.defaultMode)?"text":"math";let a=e.$selectedText("ASCIIMath");if("math"===i&&/^"[^"]+"$/.test(a)&&(a=a.slice(1,-1)),e.insert(a,{mode:i,selectionMode:"item",format:"text"===i?"text":"ASCIIMath"}),e.mode=i,e.model.groupIsSelected()){const t=e.model.parent();!t||"group"!==t.type&&"root"!==t.type||(t.mode=i)}e.mode!==t&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}delete i.mode}return Jt(e.model)?(e.style.fontSeries&&i.fontSeries===e.style.fontSeries&&(i.fontSeries="auto"),i.fontShape&&i.fontShape===e.style.fontShape&&(i.fontShape="auto"),i.color&&i.color===e.style.color&&(i.color="none"),i.backgroundColor&&i.backgroundColor===e.style.backgroundColor&&(i.backgroundColor="none"),i.fontSize&&i.fontSize===e.style.fontSize&&(i.fontSize="auto"),e.style={...e.style,...i}):(ma(e.model,i),e.snapshot()),!0}},{target:"mathfield"}),aa({copyToClipboard:e=>(e.focus(),Jt(e.model)&&e.select(),document.execCommand("copy"),!1),cutToClipboard:e=>(e.focus(),document.execCommand("cut"),!0),pasteFromClipboard:e=>(e.focus(),document.execCommand("paste"),!0)},{target:"mathfield",category:"clipboard"});let oo=0;function ro(e,t,i,a){var o;(a=null!=a?a:{}).bias=null!==(o=a.bias)&&void 0!==o?o:0;const r=function e(t,i,a){let o={element:null,distance:Number.POSITIVE_INFINITY},r=!0;if(t.getAttribute("data-atom-id")){o.element=t;const e=t.getBoundingClientRect(),s=i-(e.left+e.right)/2,n=a-(e.top+e.bottom)/2;o.distance=s*s+n*n,r=i>=e.left&&i<=e.right}if(r&&t.children)for(const r of t.children){const t=e(r,i,a);t.element&&t.distance<=o.distance&&(o=t)}return o}(e.field,t,i).element,s=r?r.getAttribute("data-atom-id"):null;if(!s)return;const n=si(e.model,e=>{if(!e.captureSelection)return e.id===s;let t=!1;return e.forEach(e=>{e.id===s&&(t=!0)}),t});if(!n||0===n.length)return;const l=dt(n[0]).path;if(0===a.bias){const e=r.getBoundingClientRect();tf ()",classes:"tex",layers:["functions"]},symbols:{tooltip:"keyboard.tooltip.symbols",layer:"symbols",label:"∞≠∈",classes:"tex",layers:["symbols"]},command:{tooltip:"keyboard.tooltip.command",command:"enterCommandMode",label:"",layers:["lower-command","upper-command","symbols-command"]},style:{tooltip:"keyboard.tooltip.style",layer:"style",label:"bi𝔹"}},no={"\\varphi ":["Φ","\\Phi "],"\\varsigma ":["Σ","\\Sigma "],"\\epsilon ":["Ɛ",'{\\char"0190}'],"\\rho ":["Ρ",'{\\char"3A1}'],"\\tau ":["Τ",'{\\char"3A4}'],"\\upsilon ":["Υ","\\Upsilon "],"\\theta ":["Θ","\\Theta "],"\\iota ":["Ι",'{\\char"399}'],"\\omicron ":["Ο",'{\\char"39F}'],"\\pi ":["Π","\\Pi "],"\\alpha ":["Α",'{\\char"391}'],"\\sigma ":["Σ","\\Sigma "],"\\delta ":["Δ","\\Delta "],"\\phi ":["Φ","\\Phi "],"\\gamma ":["Γ","\\Gamma "],"\\eta ":["Η",'{\\char"397}'],"\\xi ":["Ξ","\\Xi "],"\\kappa ":["Κ",'{\\char"39A}'],"\\lambda ":["Λ","\\Lambda "],"\\zeta ":["Ζ",'{\\char"396}'],"\\chi ":["Χ",'{\\char"3A7}'],"\\psi ":["Ψ","\\Psi "],"\\omega ":["Ω","\\Omega "],"\\beta ":["Β",'{\\char"392}'],"\\nu ":["Ν",'{\\char"39D}'],"\\mu ":["Μ",'{\\char"39C}']},lo={0:["\\emptyset","\\varnothing","\\infty",{latex:"#?_0",insert:"#@_0"},"\\circ","\\bigcirc","\\bullet"],2:["\\frac{1}{2}",{latex:"#?^2",insert:"#@^2"}],3:["\\frac{1}{3}",{latex:"#?^3",insert:"#@^3"}],".":[",",";","\\colon",{latex:":",aside:"ratio"},{latex:"\\cdotp",aside:"center dot",classes:"box"},{latex:"\\cdots",aside:"center ellipsis",classes:"box"},{latex:"\\ldotp",aside:"low dot",classes:"box"},{latex:"\\ldots",aside:"low ellipsis",classes:"box"},{latex:"\\vdots",aside:"",classes:"box"},{latex:"\\ddots",aside:"",classes:"box"},"\\odot","\\oslash","\\circledcirc"],"*":["\\cdot","\\ast","\\star","\\bigstar","\\ltimes","\\rtimes","\\rightthreetimes","\\leftthreetimes","\\intercal","\\prod",{latex:"\\prod_{n\\mathop=0}^{\\infty}",classes:"small"}],"+":["\\pm","\\mp","\\sum",{latex:"\\sum_{n\\mathop=0}^{\\infty}",classes:"small"},"\\dotplus","\\oplus"],"-":["\\pm","\\mp","\\ominus","\\vert #0 \\vert"],"/":["\\divideontimes","/","\\div"],"(":["\\left( #0\\right)","\\left[ #0\\right]","\\left\\{ #0\\right\\}","\\left\\langle #0\\right\\rangle","\\lfloor","\\llcorner","(","\\lbrack","\\lvert","\\lVert","\\lgroup","\\langle","\\lceil","\\ulcorner","\\lmoustache","\\lbrace"],")":["\\rfloor","\\lrcorner",")","\\rbrack","\\rvert","\\rVert","\\rgroup","\\rangle","\\rceil","\\urcorner","\\rmoustache","\\rbrace"],"=":["\\cong","\\asymp","\\equiv","\\differencedelta","\\varpropto","\\thickapprox","\\approxeq","\\thicksim","\\backsim","\\eqsim","\\simeq","\\Bumpeq","\\bumpeq","\\doteq","\\Doteq","\\fallingdotseq","\\risingdotseq","\\coloneq","\\eqcirc","\\circeq","\\triangleq","\\between"],"!=":["\\neq","\\ncong","","\\nsim"],"<":["\\leq","\\leqq","\\lneqq","\\ll","\\nless","\\nleq","\\precsim","\\lesssim","\\lessgtr","\\prec","\\preccurlyeq","\\lessdot","\\nprec"],">":["\\geq","\\geqq","\\gneqq","\\gg","\\ngtr","\\ngeq","\\succsim","\\gtrsim","\\gtrless","\\succ","\\succcurlyeq","\\gtrdot","\\nsucc"],set:["\\in","\\owns","\\subset","\\nsubset","\\supset","\\nsupset"],"!set":["\\notin","\\backepsilon"],subset:[],supset:[],infinity:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"],"numeric-pi":["\\prod","\\theta","\\rho","\\sin","\\cos","\\tan"],ee:["\\times 10^{#?}","\\ln","\\ln_{10}","\\log"],"^":["_{#?}"],int:[{latex:"\\int_{#?}^{#?}",classes:"small"},{latex:"\\int",classes:"small"},{latex:"\\smallint",classes:"small"},{latex:"\\iint",classes:"small"},{latex:"\\iiint",classes:"small"},{latex:"\\oint",classes:"small"},{latex:"\\dfrac{\\rd}{\\rd x}",classes:"small"},{latex:"\\frac{\\partial}{\\partial x}",classes:"small"},"\\capitalDifferentialD","\\rd","\\partial"],nabla:["\\nabla\\times","\\nabla\\cdot","\\nabla^{2}"],"!":["!!","\\Gamma","\\Pi"],accents:["\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"],A:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],b:[{latex:"\\beth",aside:"beth"}],B:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"}],d:[{latex:"\\daleth",aside:"daleth"}],D:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"}],g:[{latex:"\\gimel",aside:"gimel"}],G:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"}],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\N",aside:"set of natural numbers"}],p:[{latex:"\\P",aside:"set of primes"}],q:[{latex:"\\Q",aside:"set of rational numbers"}],r:[{latex:"\\R",aside:"set of real numbers"}],z:[{latex:"\\Z",aside:"set of integers"}],"x-var":["y","z","t","r",{latex:"f(#?)",classes:"small"},{latex:"g(#?)",classes:"small"},"x^2","x^n","x_n","x_{n+1}","x_i","x_{i+1}"],"n-var":["i","j","p","k","a","u"],ii:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"],logic:[{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"},{latex:"\\ni",aside:"such that"},{latex:"\\Colon",aside:"such that"},{latex:"\\implies",aside:"implies"},{latex:"\\impliedby",aside:"implied by"},{latex:"\\iff",aside:"if and only if"},{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"},{latex:"\\therefore",aside:"therefore"},{latex:"\\because",aside:"because"},{latex:"^\\biconditional",aside:"biconditional"},"\\leftrightarrow","\\Leftrightarrow","\\to","\\models","\\vdash","\\gets","\\dashv","\\roundimplies"],"set-operators":["\\cap","\\cup","\\setminus","\\smallsetminus","\\complement"],"set-relations":["\\in","\\notin","\\ni","\\owns","\\subset","\\supset","\\subseteq","\\supseteq","\\subsetneq","\\supsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsupset","\\nsubseteq","\\nsupseteq"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space
    ⁻³⧸₁₈ em"},{latex:'\\unicode{"203A}\\,\\unicode{"2039}',insert:"\\,",aside:"thin space
    ³⧸₁₈ em"},{latex:'\\unicode{"203A}\\:\\unicode{"2039}',insert:"\\:",aside:"medium space
    ⁴⧸₁₈ em"},{latex:'\\unicode{"203A}\\;\\unicode{"2039}',insert:"\\;",aside:"thick space
    ⁵⧸₁₈ em"},{latex:'\\unicode{"203A}\\ \\unicode{"2039}',insert:"\\ ",aside:"⅓ em"},{latex:'\\unicode{"203A}\\enspace\\unicode{"2039}',insert:"\\enspace",aside:"½ em"},{latex:'\\unicode{"203A}\\quad\\unicode{"2039}',insert:"\\quad",aside:"1 em"},{latex:'\\unicode{"203A}\\qquad\\unicode{"2039}',insert:"\\qquad",aside:"2 em"}],delete:[{label:'',command:'"deleteAll"'}],"->|":[]};let co={};const mo={math:"\n
    \n
      \n
    • x
    • \n
    • n
    • \n
    • \n \n
    • \n
    • e
    • \n
    • i
    • \n
    • \n
    \n
      \n
    • <
    • \n
    • >
    • \n
    • \n \n
    • \n
    • x ²
    • \n
    • x
    • \n
    • \n
    \n
      \n
    • (
    • \n
    • )
    • \n
    • \n \n
    • \n
    • \n
    • \n
    \n \n
      \n
    • \n
    • \n
    • \n \n
    • \n \n
    \n
    \n ","lower-roman":"\n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n
    • ;
    • \n
    • ,
    • \n
    •  
    • \n \n
    \n
    ","upper-roman":"\n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n
    • ;
    • \n
    • ;
    • \n
    •  
    • \n \n
    \n
    ",symbols:"\n
    \n
      \n \n
    • {
    • \n
    • }
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • o
    • \n
    • \n
    • \n\n
    \n
      \n \n
    • [
    • \n
    • ]
    • \n
    • \n
    • \n
    • \n
    • !
    • \n
    • o
    • \n
    • o
    • \n
    • \n
    • \n\n
    \n
      \n \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n\n
    • \n
    \n
      \n \n
    • ,
    • \n
    • \n
    • :
    • \n
    • \n
    • \n
    • \n
    • ±
    • \n \n
    \n
    ","lower-greek":"\n
    \n
    • φ
    • \n
    • ς
    • \n
    • ϵ
    • \n
    • ρ
    • \n
    • τ
    • \n
    • υ
    • \n
    • θ
    • \n
    • ι
    • \n
    • ο
    • \n
    • π
    • \n
    \n
    • α
    • \n
    • σ
    • \n
    • δ
    • \n
    • ϕ
    • \n
    • γ
    • \n
    • η
    • \n
    • ξ
    • \n
    • κ
    • \n
    • λ
    • \n
    \n
    • \n
    • ζ
    • \n
    • χ
    • \n
    • ψ
    • \n
    • ω
    • \n
    • β
    • \n
    • ν
    • \n
    • μ
    • \n
    • \n
    \n
      \n
    •  
    • \n
    • ,
    • \n
    • ε
    • \n
    • ϑ
    • \n
    • ϰ
    • \n
    • ϖ
    • \n
    • ϱ
    • \n \n
    \n
    ","upper-greek":"\n
    \n
    • Φ
    • \n
    • Σ
    • \n
    • Ɛ
    • \n
    • Ρ
    • \n
    • Τ
    • \n
    • Υ
    • \n
    • Θ
    • \n
    • Ι
    • \n
    • Ο
    • \n
    • Π
    \n
    • Α
    • \n
    • Σ
    • \n
    • Δ
    • \n
    • Φ
    • \n
    • Γ
    • \n
    • Η
    • \n
    • Ξ
    • \n
    • Κ
    • \n
    • Λ
    \n
    • \n
    • Ζ
    • \n
    • Χ
    • \n
    • Ψ
    • \n
    • Ω
    • \n
    • Β
    • \n
    • Ν
    • \n
    • Μ
    • \n
    \n
      \n
    •  
    • \n
    • .
    • \n
    •  
    • \n \n
    \n
    ","lower-command":"\n
    \n
    \n
    \n
    \n
      \n
    • 01#
    • \n
    • {
    • \n
    • }
    • \n
    • ^
    • \n
    • _
    • \n
    •  
    • \n \n
    \n
    ","upper-command":"\n
    \n
    \n
    \n
    \n
      \n
    • \n
    • [
    • \n
    • ]
    • \n
    • (
    • \n
    • )
    • \n
    •  
    • \n \n
    \n
    ","symbols-command":"\n
    \n
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 0
    \n
    • !
    • @
    • #
    • $
    • %
    • ^
    • &
    • *
    • +
    • =
    \n
      \n
    • \\
    • \n
    • |
    • \n
    • /
    • \n
    • `
    • \n
    • ;
    • \n
    • :
    • \n
    • ?
    • \n
    • '
    • \n
    • \"
    • \n
    • \n
    \n
      \n
    • abc
    • \n
    • <
    • \n
    • >
    • \n
    • ~
    • \n
    • ,
    • \n
    • .
    • \n
    •  
    • \n \n
    \n
    ",functions:"\n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • (
    • \n
    • )
    • \n
    • \n
    • \n
    •  
    • \n \n
    \n
    ",style:"\n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n\n
    • \n
    • \n
    • \n
    • \n
    \n
    "};function po(e,t,i){return e=e.replace(/(^|[^\\])#@/g,"$1#?"),C(L(We({mathstyle:c.displaystyle,macros:i.options.macros},Qe(e,"math",t,i.options.macros)),"ML__base"),"ML__mathlive").toMarkup()}function uo(e,t,i){var a;let o="
    ";const r=t.replace(/\s+/g," ").split(" ");if(r.length>1){const t={...so,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}};for(const e of r){if(!t[e])break;o+="
    "+t[e].label+"
    "}}return o+="
    ",o+=`\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n `,""}function ho(e,t,i){var a;for(let o=0;o"+r.getAttribute("data-aside").replace(/"/g,'"')+""),void 0!==s&&(r.innerHTML=e.options.createHTML(s)),r.getAttribute("data-classes")&&r.classList.add(r.getAttribute("data-classes"));const n=null===(a=r.getAttribute("data-insert"))||void 0===a?void 0:a.replace(/"/g,'"');let l;if(n&&no[n]&&(r.setAttribute("data-shifted",no[n][0]),r.setAttribute("data-shifted-command",JSON.stringify(["insertAndUnshiftKeyboardLayer",no[n][1]]))),l=r.getAttribute("data-command")?JSON.parse(r.getAttribute("data-command")):r.getAttribute("data-insert")?["insert",r.getAttribute("data-insert"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:r.getAttribute("data-latex")?["insert",r.getAttribute("data-latex"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:["typedText",r.getAttribute("data-key")||r.textContent,{focus:!0,feedback:!0,simulateKeystroke:!0}],i&&(l=[i,l]),r.getAttribute("data-alt-keys")){const e=co[r.getAttribute("data-alt-keys")];e&&(l={default:l,pressAndHoldStart:["showAlternateKeys",r.getAttribute("data-alt-keys"),e],pressAndHoldEnd:"hideAlternateKeys"})}Ai(e,r,l)}}function fo(e,t){const i={qwerty:{"lower-1":"qwertyuiop","lower-2":" asdfghjkl ","lower-3":"^zxcvbnm~","upper-1":"QWERTYUIOP","upper-2":" ASDFGHJKL ","upper-3":"^ZXCVBNM~","numpad-1":"789/","numpad-2":"456*","numpad-3":"123-","numpad-4":"0.=+"},azerty:{"lower-1":"azertyuiop","lower-2":"qsdfghjklm","lower-3":"^ wxcvbn ~","upper-1":"AZERTYUIOP","upper-2":"QSDFGHJKLM","upper-3":"^ WXCVBN ~"},qwertz:{"lower-1":"qwertzuiop","lower-2":" asdfghjkl ","lower-3":"^yxcvbnm~","upper-1":"QWERTZUIOP","upper-2":" ASDFGHJKL","upper-3":"^YXCVBNM~"},dvorak:{"lower-1":"^ pyfgcrl ","lower-2":"aoeuidhtns","lower-3":"qjkxbmwvz~","upper-1":"^ PYFGCRL ","upper-2":"AOEUIDHTNS","upper-3":"QJKXBMWVZ~"},colemak:{"lower-1":" qwfpgjluy ","lower-2":"arstdhneio","lower-3":"^zxcvbkm~","upper-1":" QWFPGNLUY ","upper-2":"ARSTDHNEIO","upper-3":"^ZXCVBKM~"}},a=i[e.options.virtualKeyboardLayout]?i[e.options.virtualKeyboardLayout]:i.qwerty;let o,r=t;r=r.replace(//g,"\n
  • \n \n
  • \n
  • \n \n
  • \n
  • \n
  • ");let s=r.match(/()/);for(;s;){o="";const e=s[2].match(/[a-zA-Z][a-zA-Z0-9-]*=(['"])(.*?)\1/g),t={};for(const i of e){const e=i.match(/([a-zA-Z][a-zA-Z0-9-]*)=(['"])(.*?)\2/);t[e[1]]=e[3]}let n=a[t.name];if(n||(n=i.qwerty[t.name]),n)for(const e of n){let i=t.class||"";i&&(i=" "+i),"~"===e?(o+="
  • \'\n data-shifted-command=\'"deleteAll"\'\n data-alt-keys=\'delete\' data-command=\'["performWithFeedback","deletePreviousChar"]\'\n >⌫
  • '):" "===e?o+="
  • ":"^"===e?o+="
  • ":"/"===e?o+="
  • ÷
  • ":"*"===e?o+="
  • ×
  • ":"-"===e?o+="
  • ":/tt/.test(i)?o+="
  • '+e+"
  • ":o+="
  • "+e+"
  • "}r=r.replace(new RegExp(s[1]+s[2]+s[3]),o),s=r.match(/()/)}return r}function go(e){const t=document.getElementById("mathlive-alternate-keys-panel");return t&&(t.classList.remove("is-visible"),t.innerHTML="",Mi(t)),!1}function yo(e){const t=e.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(t)for(let i=0;ili{display:flex;flex-flow:column;align-items:center;justify-content:center;font-size:30px;height:70px;width:70px;box-sizing:border-box;margin:0;background:transparent;border:1px solid transparent;border-radius:5px;pointer-events:all;color:var(--keyboard-alternate-text);fill:currentColor}@media only screen and (max-height:412px){.ML__keyboard.alternate-keys ul>li{font-size:24px;height:50px;width:50px}}.ML__keyboard.alternate-keys ul>li.active,.ML__keyboard.alternate-keys ul>li.pressed,.ML__keyboard.alternate-keys ul>li:hover{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);background:var(--keyboard-alternate-background-active);color:var(--keyboard-text-active)}.ML__keyboard.alternate-keys ul>li.small{font-size:18px}.ML__keyboard.alternate-keys ul>li.small-button{width:42px;height:42px;margin:2px;background:#fbfbfb}.ML__keyboard.alternate-keys ul>li.small-button:hover{background:var(--keyboard-alternate-background-active)}.ML__keyboard.alternate-keys ul>li.box>div,.ML__keyboard.alternate-keys ul>li.box>span{border:1px dashed rgba(0,0,0,.24)}.ML__keyboard.alternate-keys ul>li .warning{min-height:60px;min-width:60px;background:#cd0030;color:#fff;padding:5px;display:flex;align-items:center;justify-content:center;border-radius:5px}.ML__keyboard.alternate-keys ul>li .warning.active,.ML__keyboard.alternate-keys ul>li .warning.pressed,.ML__keyboard.alternate-keys ul>li .warning:hover{background:red}.ML__keyboard.alternate-keys ul>li .warning svg{width:50px;height:50px}.ML__keyboard.alternate-keys ul>li aside{font-size:12px;line-height:12px;opacity:.78;padding-top:2px}.ML__keyboard>div.keyboard-layer{display:none;outline:none}.ML__keyboard>div.keyboard-layer.is-visible{display:flex;flex-flow:column}.ML__keyboard>div>div.keyboard-toolbar{align-self:center;display:flex;flex-flow:row;justify-content:space-between;width:736px}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard>div>div.keyboard-toolbar{width:556px}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar{width:365px;max-width:100vw}}.ML__keyboard>div>div.keyboard-toolbar svg{height:20px;width:20px}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar svg{height:13px;width:17px}}.ML__keyboard>div>div.keyboard-toolbar>.left{position:relative;display:flex;justify-content:flex-start;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>.right{display:flex;justify-content:flex-end;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>div>div{display:flex;align-items:baseline;justify-content:center;pointer-events:all;color:var(--keyboard-text);fill:currentColor;background:0;font-size:110%;cursor:pointer;min-height:0;padding:4px 10px;margin:7px 4px 6px;box-shadow:none;border:none;border-bottom:2px solid transparent}.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled.pressed svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled:hover svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled svg{color:var(--keyboard-text);opacity:.2}@media only screen and (max-width:414px){.ML__keyboard>div>div.keyboard-toolbar>div>div{font-size:100%;padding:0 6px 0 0}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar>div>div{padding-left:4px;padding-right:4px;font-size:90%}}.ML__keyboard>div>div.keyboard-toolbar>div>div.active,.ML__keyboard>div>div.keyboard-toolbar>div>div.pressed,.ML__keyboard>div>div.keyboard-toolbar>div>div:active,.ML__keyboard>div>div.keyboard-toolbar>div>div:hover{color:var(--keyboard-text-active)}.ML__keyboard>div>div.keyboard-toolbar>div>div.selected{color:var(--keyboard-text-active);border-bottom:2px solid var(--keyboard-text-active);margin-bottom:8px;padding-bottom:0}.ML__keyboard div .rows{border:0;border-collapse:separate;clear:both;margin:auto;display:flex;flex-flow:column;align-items:center}.ML__keyboard div .rows>ul{list-style:none;height:40px;margin:0 0 3px;padding:0}.ML__keyboard div .rows>ul>li{display:flex;flex-flow:column;align-items:center;justify-content:center;width:34px;margin-right:2px;height:40px;box-sizing:border-box;padding:8px 0;vertical-align:top;text-align:center;float:left;color:var(--keycap-text);fill:currentColor;font-size:20px;background:var(--keycap-background);border:1px solid var(--keycap-background-border);border-bottom-color:var(--keycap-background-border-bottom);border-radius:5px;pointer-events:all;position:relative;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ML__keyboard div .rows>ul>li:last-child{margin-right:0}.ML__keyboard div .rows>ul>li.small{font-size:16px}.ML__keyboard div .rows>ul>li.tt{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.bottom{justify-content:flex-end}.ML__keyboard div .rows>ul>li.left{align-items:flex-start;padding-left:4px}.ML__keyboard div .rows>ul>li.right{align-items:flex-end;padding-right:4px}.ML__keyboard div .rows>ul>li svg{width:20px;height:20px}.ML__keyboard div .rows>ul>li .warning{height:25px;width:25px;min-height:25px;min-width:25px;background:#cd0030;color:#fff;border-radius:100%;padding:5px;display:flex;align-items:center;justify-content:center;margin-bottom:-2px}.ML__keyboard div .rows>ul>li .warning svg{width:16px;height:16px}@media only screen and (max-width:768px){.ML__keyboard div .rows>ul>li .warning{height:16px;width:16px;min-height:16px;min-width:16px}.ML__keyboard div .rows>ul>li .warning svg{width:14px;height:14px}}.ML__keyboard div .rows>ul>li>.w0{width:0}.ML__keyboard div .rows>ul>li>.w5{width:16px}.ML__keyboard div .rows>ul>li>.w15{width:52px}.ML__keyboard div .rows>ul>li>.w20{width:70px}.ML__keyboard div .rows>ul>li>.w50{width:178px}.ML__keyboard div .rows>ul>li.separator{background:transparent;border:none;pointer-events:none}@media only screen and (max-width:560px){.ML__keyboard div .rows>ul>li.if-wide{display:none}}.ML__keyboard div .rows>ul>li.tex-math{font-size:25px}.ML__keyboard div .rows>ul>li.pressed,.ML__keyboard div .rows>ul>li:hover{background:var(--keycap-background-active);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.active,.ML__keyboard div .rows>ul>li.action:active,.ML__keyboard div .rows>ul>li.keycap.active,.ML__keyboard div .rows>ul>li.keycap:active{transform:translateY(-20px) scale(1.4);z-index:calc(var(--keyboard-zindex, 105) - 5);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.modifier.active,.ML__keyboard div .rows>ul>li.modifier:active{background:var(--keyboard-text-active);color:var(--keycap-text-active)}.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:18px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:16px}}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton,.ML__keyboard div .rows>ul>li.fnbutton{font-size:12px}}.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:14px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:9px}}.ML__keyboard div .rows>ul>li.action,.ML__keyboard div .rows>ul>li.modifier{background-color:var(--keycap-modifier-background);border-bottom-color:var(--keycap-modifier-border);border-color:var(--keycap-modifier-border) var(--keycap-modifier-border) var(--keycap-modifier-border-bottom);font-size:65%;font-weight:100}.ML__keyboard div .rows>ul>li.action.selected,.ML__keyboard div .rows>ul>li.modifier.selected{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.selected.active,.ML__keyboard div .rows>ul>li.action.selected.pressed,.ML__keyboard div .rows>ul>li.action.selected:active,.ML__keyboard div .rows>ul>li.action.selected:hover,.ML__keyboard div .rows>ul>li.modifier.selected.active,.ML__keyboard div .rows>ul>li.modifier.selected.pressed,.ML__keyboard div .rows>ul>li.modifier.selected:active,.ML__keyboard div .rows>ul>li.modifier.selected:hover{color:#fff}.ML__keyboard div .rows>ul>li.keycap.w50{font-size:80%;padding-top:10px;font-weight:100}.ML__keyboard div .rows>ul>li small{color:#555}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li small{font-size:9px}}.ML__keyboard div .rows>ul>li aside{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:10px;line-height:10px;color:#666}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li aside{display:none}}@media only screen and (max-width:414px){.ML__keyboard div .rows>ul>li{width:calc(10vw - 2px);margin-right:2px}.ML__keyboard div .rows>ul>.w5{width:calc(5vw - 2px)}.ML__keyboard div .rows>ul>.w15{width:calc(15vw - 2px)}.ML__keyboard div .rows>ul>.w20{width:calc(20vw - 2px)}.ML__keyboard div .rows>ul>.w50{width:calc(50vw - 2px)}}@media only screen and (min-width:415px) and (max-width:768px){.ML__keyboard div .rows>ul>li{width:37px;margin-right:3px}.ML__keyboard div .rows>ul>.w5{width:17px}.ML__keyboard div .rows>ul>.w15{width:57px}.ML__keyboard div .rows>ul>.w20{width:77px}.ML__keyboard div .rows>ul>.w50{width:197px}}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:51px;margin-right:4px}.ML__keyboard div .rows>ul>.w5{width:23.5px}.ML__keyboard div .rows>ul>.w15{width:78.5px}.ML__keyboard div .rows>ul>.w20{width:106px}.ML__keyboard div .rows>ul>.w50{width:271px}}@media only screen and (min-width:1025px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:66px;margin-right:6px}.ML__keyboard div .rows>ul>.action,.ML__keyboard div .rows>ul>.modifier{font-size:80%}.ML__keyboard div .rows>ul>.w5{width:30px}.ML__keyboard div .rows>ul>.w15{width:102px}.ML__keyboard div .rows>ul>.w20{width:138px}.ML__keyboard div .rows>ul>.w50{width:354px}}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}div.ML__keyboard.material{--keyboard-background:rgba(209,213,217,0.9);--keyboard-background-border:#ddd;--keycap-background:transparent;--keycap-background-active:#cccfd1;--keycap-background-border:transparent;--keyboard-alternate-background:#efefef;--keyboard-alternate-text:#000;font-family:Roboto,sans-serif}div.ML__keyboard.material.alternate-keys{background:var(--keyboard-alternate-background);border:1px solid transparent;border-radius:5px;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}div.ML__keyboard.material.alternate-keys ul li.active,div.ML__keyboard.material.alternate-keys ul li.pressed,div.ML__keyboard.material.alternate-keys ul li:active,div.ML__keyboard.material.alternate-keys ul li:hover{border:1px solid transparent;background:#5f97fc;color:#fff;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>div{font-size:16px}div.ML__keyboard.material .keyboard-toolbar div.div.active,div.ML__keyboard.material .keyboard-toolbar div.div.pressed,div.ML__keyboard.material .keyboard-toolbar div div:active,div.ML__keyboard.material .keyboard-toolbar div div:hover{color:#5f97fc;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>.selected{color:#5f97fc;fill:currentColor;border-bottom:2px solid #5f97fc;margin-bottom:8px;padding-bottom:0}div.ML__keyboard.material div>.rows>ul>.keycap{background:transparent;border:1px solid transparent;border-radius:5px;color:var(--keycap-text);fill:currentColor;transition:none}div.ML__keyboard.material div>.rows>ul>.keycap.tt{color:#5f97fc}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]{margin-top:10px;margin-bottom:10px;height:20px;background:#e0e0e0}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].pressed,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:hover{background:#d0d0d0;box-shadow:none;transform:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):hover{border:1px solid transparent;background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{background:var(--keyboard-alternate-background);color:var(--keyboard-alternate-text);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);font-size:10px;vertical-align:top;width:19.5px;margin-right:10px;margin-left:10px;transform:translateY(-20px) scale(2);transition:none;justify-content:flex-start;padding:2px 0 0;z-index:calc(var(--ML_keyboard-zindex, 105) - 5)}}@media only screen and (max-width:414px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{width:16.5px}}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:last-child.active,div.ML__keyboard.material div>.rows>ul>.keycap:last-child:active{margin-right:0;margin-left:14px}}div.ML__keyboard.material div div.rows ul li.action,div.ML__keyboard.material div div.rows ul li.modifier{background:transparent;border:0;color:#869096;fill:currentColor;font-size:16px;transition:none}div.ML__keyboard.material div div.rows ul li.action.selected,div.ML__keyboard.material div div.rows ul li.modifier.selected{color:#5f97fc;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.action.active,div.ML__keyboard.material div div.rows ul li.action.pressed,div.ML__keyboard.material div div.rows ul li.action:active,div.ML__keyboard.material div div.rows ul li.action:hover,div.ML__keyboard.material div div.rows ul li.modifier.active,div.ML__keyboard.material div div.rows ul li.modifier.pressed,div.ML__keyboard.material div div.rows ul li.modifier:active,div.ML__keyboard.material div div.rows ul li.modifier:hover{border:0;color:var(--keycap-text);background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div div.rows ul li.bigfnbutton,div.ML__keyboard.material div div.rows ul li.fnbutton{background:transparent;border:0}div.ML__keyboard.material div div.rows ul li.bigfnbutton.selected,div.ML__keyboard.material div div.rows ul li.fnbutton.selected{color:#5f97fc;fill:currentColor;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.bigfnbutton.active,div.ML__keyboard.material div div.rows ul li.bigfnbutton.pressed,div.ML__keyboard.material div div.rows ul li.bigfnbutton:active,div.ML__keyboard.material div div.rows ul li.bigfnbutton:hover,div.ML__keyboard.material div div.rows ul li.fnbutton.active,div.ML__keyboard.material div div.rows ul li.fnbutton.pressed,div.ML__keyboard.material div div.rows ul li.fnbutton:active,div.ML__keyboard.material div div.rows ul li.fnbutton:hover{border:0;color:#5f97fc;fill:currentColor;background:var(--keycap-background-active);box-shadow:none}@media (prefers-color-scheme:dark){body:not([theme=light]) div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}'),lo["foreground-color"]=[];for(const e of ue)lo["foreground-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"color":"'+e+'"}]'});lo["background-color"]=[];for(const e of pe)lo["background-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"backgroundColor":"'+e+'"}]'});co={...lo},Object.keys(co).forEach(e=>{co[e]=co[e].slice()});for(let e=0;e<26;e++){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e];co[t]||(co[t]=[]),co[t].unshift({latex:"\\mathbb{"+t+"}",aside:"blackboard",insert:"\\mathbb{"+t+"}"}),co[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),co[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),co[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),co[t].unshift({latex:"\\mathcal{"+t+"}",aside:"calligraphy",insert:"\\mathcal{"+t+"}"}),co[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<=26;e++){const t="abcdefghijklmnopqrstuvwxyz"[e];co[t]||(co[t]=[]),co[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),co[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),co[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),co[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<10;e++){const t="0123456789"[e];co[t]||(co[t]=[]),co[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),co[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),co[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),co[t].unshift({latex:"\\mathcal{"+t+"}",aside:"script",insert:"\\mathcal{"+t+"}"}),co[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}let r=e.options.virtualKeyboards;r||(r="all"),r=r.replace(/\ball\b/i,"numeric functions symbols roman greek");const s={...mo,...null!==(i=e.options.customVirtualKeyboardLayers)&&void 0!==i?i:{}},n={...so,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}},l=r.replace(/\s+/g," ").split(" ");for(const t of l){if(!n[t])break;let i=n[t].layers||[];n[t].layer&&i.push(n[t].layer),i=Array.from(new Set(i));for(const a of i){if(!s[a])break;if("object"==typeof s[a]){const e=s[a];let t="";if(e.styles&&(t+=``),e.backdrop&&(t+=`
    `),e.container&&(t+=`
    `),e.rows){t+="
    ";for(const i of e.rows){t+="
      ";for(const e of i)t+="${e.label?e.label:""}`;t+="
    "}t+="
    "}e.container&&(t+="
    "),e.backdrop&&(t+="
    "),s[a]=t}o+="
    ",o+=uo(e,r,t);const i=s[a];o+=fo(e,i),o+="
    "}}const c=document.createElement("div");c.className="ML__keyboard",t?c.classList.add(t):e.options.virtualKeyboardTheme&&c.classList.add(e.options.virtualKeyboardTheme),c.innerHTML=e.options.createHTML(o),ho(e,[].slice.call(c.querySelectorAll(".keycap, .action, .fnbutton, .bigfnbutton")));const d=c.getElementsByClassName("layer-switch");for(let t=0;t{e.addEventListener("mousedown",e=>{e.preventDefault(),e.stopPropagation()}),e.addEventListener("touchstart",e=>{e.preventDefault(),e.stopPropagation()},{passive:!1})}),m[0].classList.add("is-visible"),window.addEventListener("mouseup",(function(){go(),yo(e)})),window.addEventListener("blur",(function(){go(),yo(e)})),window.addEventListener("touchend",(function(){go(),yo(e)})),window.addEventListener("touchcancel",(function(){go(),yo(e)})),c}(e,t),ki(e.virtualKeyboard,"touchstart:passive mousedown",()=>{e.focus()}),document.body.appendChild(e.virtualKeyboard)),window.setTimeout(()=>{e.virtualKeyboard.classList.add("is-visible")},1)):e.virtualKeyboard&&e.virtualKeyboard.classList.remove("is-visible"),"function"==typeof e.options.onVirtualKeyboardToggle&&e.options.onVirtualKeyboardToggle(e,e.virtualKeyboardVisible,e.virtualKeyboard),!1}aa({showAlternateKeys:(e,t,i)=>{const a=wi("mathlive-alternate-keys-panel","ML__keyboard alternate-keys");e.virtualKeyboard.classList.contains("material")&&a.classList.add("material"),i.length>=7?a.style.width="286px":4===i.length||2===i.length?a.style.width="146px":1===i.length?a.style.width="86px":a.style.width="146px",a.style.height="auto";let o="";for(const e of i)o+="";o="
      "+o+"
    ",a.innerHTML=e.options.createHTML(o),ho(e,[].slice.call(a.getElementsByTagName("li")),"performAlternateKeys");const r=e.virtualKeyboard.querySelector('div.keyboard-layer.is-visible div.rows ul li[data-alt-keys="'+t+'"]').getBoundingClientRect();if(r){r.top-a.clientHeight<0&&(a.style.width="auto",i.length<=6?a.style.height="56px":i.length<=12?a.style.height="108px":a.style.height="205px");const e=(r.top-a.clientHeight+5).toString()+"px",t=Math.max(0,Math.min(window.innerWidth-a.offsetWidth,(r.left+r.right-a.offsetWidth)/2))+"px";a.style.transform="translate("+t+","+e+")",a.classList.add("is-visible")}return!1}},{target:"virtual-keyboard"}),aa({shiftKeyboardLayer:t=>{const i=t.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(i)for(let a=0;ago(),performAlternateKeys:(e,t)=>(go(),e.executeCommand(t)),switchKeyboardLayer:(e,t)=>vo(e,t),unshiftKeyboardLayer:e=>yo(e),insertAndUnshiftKeyboardLayer:(e,t)=>(e.insert(t),yo(e),!0)},{target:"virtual-keyboard"}),aa({toggleVirtualKeyboardAlt:e=>{let t=!1;return e.virtualKeyboard&&(t=e.virtualKeyboard.classList.contains("material"),e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),xo(e,t?"":"material"),!1},toggleVirtualKeyboardShift:e=>{var t,i;e.options.virtualKeyboardLayout={qwerty:"azerty",azerty:"qwertz",qwertz:"dvorak",dvorak:"colemak",colemak:"qwerty"}[e.options.virtualKeyboardLayout];const a=null!==(i=null===(t=e.virtualKeyboard)||void 0===t?void 0:t.querySelector("div.keyboard-layer.is-visible").id)&&void 0!==i?i:"";return e.virtualKeyboard&&(e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),xo(e),a&&vo(e,a),!1}},{target:"virtual-keyboard"}),aa({toggleVirtualKeyboard:(e,t)=>_o(e,t),hideVirtualKeyboard:e=>ko(e),showVirtualKeyboard:(e,t)=>xo(e,t)},{target:"virtual-keyboard"});var wo='.ML__sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.ML__fonts-loading .ML__base{visibility:hidden}.ML__base{visibility:inherit;display:inline-block;position:relative;cursor:text}.ML__strut,.ML__strut--bottom{display:inline-block;min-height:.5em}.ML__small-delim{font-family:KaTeX_Main}.ML__text{font-family:var(--text-font-family,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif);white-space:pre}.ML__cmr{font-family:KaTeX_Main;font-style:normal}.ML__mathit{font-family:KaTeX_Math;font-style:italic}.ML__mathbf{font-family:KaTeX_Main;font-weight:700}.lcGreek.ML__mathbf{font-family:KaTeX_Math;font-weight:400}.ML__mathbfit{font-family:KaTeX_Math;font-weight:700;font-style:italic}.ML__ams,.ML__bb{font-family:KaTeX_AMS}.ML__cal{font-family:KaTeX_Caligraphic}.ML__frak{font-family:KaTeX_Fraktur}.ML__tt{font-family:KaTeX_Typewriter}.ML__script{font-family:KaTeX_Script}.ML__sans{font-family:KaTeX_SansSerif}.ML__series_el,.ML__series_ul{font-weight:100}.ML__series_l{font-weight:200}.ML__series_sl{font-weight:300}.ML__series_sb{font-weight:500}.ML__bold,.ML__boldsymbol{font-weight:700}.ML__series_eb{font-weight:800}.ML__series_ub{font-weight:900}.ML__series_uc{font-stretch:ultra-condensed}.ML__series_ec{font-stretch:extra-condensed}.ML__series_c{font-stretch:condensed}.ML__series_sc{font-stretch:semi-condensed}.ML__series_sx{font-stretch:semi-expanded}.ML__series_x{font-stretch:expanded}.ML__series_ex{font-stretch:extra-expanded}.ML__series_ux{font-stretch:ultra-expanded}.ML__it{font-style:italic}.ML__shape_ol{-webkit-text-stroke:1px #000;text-stroke:1px #000;color:transparent}.ML__shape_sc{font-variant:small-caps}.ML__shape_sl{font-style:oblique}.ML__emph{color:#bc2612}.ML__emph .ML__emph{color:#0c7f99}.ML__highlight{color:#007cb2;background:#edd1b0}.ML__mathlive{display:inline-block;line-height:0;direction:ltr;text-align:left;text-indent:0;text-rendering:auto;font-family:KaTeX_Main;font-style:normal;font-size-adjust:none;letter-spacing:normal;word-wrap:normal;word-spacing:normal;white-space:nowrap;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:-webkit-min-content;width:-moz-min-content;width:min-content;transform:translateZ(0)}.ML__mathlive .reset-textstyle.scriptstyle{font-size:.7em}.ML__mathlive .reset-textstyle.scriptscriptstyle{font-size:.5em}.ML__mathlive .reset-scriptstyle.textstyle{font-size:1.42857em}.ML__mathlive .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.ML__mathlive .reset-scriptscriptstyle.textstyle{font-size:2em}.ML__mathlive .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.ML__mathlive .style-wrap{position:relative}.ML__mathlive .vlist{display:inline-block}.ML__mathlive .vlist>span{display:block;height:0;position:relative;line-height:0}.ML__mathlive .vlist>span>span{display:inline-block}.ML__mathlive .msubsup{text-align:left}.ML__mathlive .mfrac>span{text-align:center}.ML__mathlive .mfrac .frac-line{width:100%}.ML__mathlive .mfrac .frac-line:after{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor;box-sizing:content-box;transform:translate(0)}.ML__mathlive .rspace.negativethinspace{margin-right:-.16667em}.ML__mathlive .rspace.thinspace{margin-right:.16667em}.ML__mathlive .rspace.negativemediumspace{margin-right:-.22222em}.ML__mathlive .rspace.mediumspace{margin-right:.22222em}.ML__mathlive .rspace.thickspace{margin-right:.27778em}.ML__mathlive .rspace.sixmuspace{margin-right:.333333em}.ML__mathlive .rspace.eightmuspace{margin-right:.444444em}.ML__mathlive .rspace.enspace{margin-right:.5em}.ML__mathlive .rspace.twelvemuspace{margin-right:.666667em}.ML__mathlive .rspace.quad{margin-right:1em}.ML__mathlive .rspace.qquad{margin-right:2em}.ML__mathlive .mspace{display:inline-block}.ML__mathlive .mspace.negativethinspace{margin-left:-.16667em}.ML__mathlive .mspace.thinspace{width:.16667em}.ML__mathlive .mspace.negativemediumspace{margin-left:-.22222em}.ML__mathlive .mspace.mediumspace{width:.22222em}.ML__mathlive .mspace.thickspace{width:.27778em}.ML__mathlive .mspace.sixmuspace{width:.333333em}.ML__mathlive .mspace.eightmuspace{width:.444444em}.ML__mathlive .mspace.enspace{width:.5em}.ML__mathlive .mspace.twelvemuspace{width:.666667em}.ML__mathlive .mspace.quad{width:1em}.ML__mathlive .mspace.qquad{width:2em}.ML__mathlive .llap,.ML__mathlive .rlap{width:0;position:relative}.ML__mathlive .llap>.inner,.ML__mathlive .rlap>.inner{position:absolute}.ML__mathlive .llap>.fix,.ML__mathlive .rlap>.fix{display:inline-block}.ML__mathlive .llap>.inner{right:0}.ML__mathlive .rlap>.inner{left:0}.ML__mathlive .rule{display:inline-block;border:0 solid;position:relative}.ML__mathlive .overline .overline-line,.ML__mathlive .underline .underline-line{width:100%}.ML__mathlive .overline .overline-line:before,.ML__mathlive .underline .underline-line:before{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block}.ML__mathlive .overline .overline-line:after,.ML__mathlive .underline .underline-line:after{border-bottom-style:solid;border-bottom-width:.04em;min-height:thin;content:"";display:block;margin-top:-1px}.ML__mathlive .stretchy{display:block;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .stretchy:after,.ML__mathlive .stretchy:before{content:""}.ML__mathlive .stretchy svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.ML__mathlive .slice-1-of-2{left:0}.ML__mathlive .slice-1-of-2,.ML__mathlive .slice-2-of-2{display:inline-flex;position:absolute;width:50.2%;overflow:hidden}.ML__mathlive .slice-2-of-2{right:0}.ML__mathlive .slice-1-of-3{display:inline-flex;position:absolute;left:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-2-of-3{display:inline-flex;position:absolute;left:25%;width:50%;overflow:hidden}.ML__mathlive .slice-3-of-3{display:inline-flex;position:absolute;right:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-1-of-1{display:inline-flex;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .sqrt{display:inline-block}.ML__mathlive .sqrt>.sqrt-sign{font-family:KaTeX_Main;position:relative}.ML__mathlive .sqrt .sqrt-line{height:.04em;width:100%}.ML__mathlive .sqrt .sqrt-line:before{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor}.ML__mathlive .sqrt .sqrt-line:after{border-bottom-width:1px;content:" ";display:block;margin-top:-.1em;transform:translate(0)}.ML__mathlive .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.ML__mathlive .fontsize-ensurer,.ML__mathlive .sizing{display:inline-block}.ML__mathlive .fontsize-ensurer.reset-size1.size1,.ML__mathlive .sizing.reset-size1.size1{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size1.size2,.ML__mathlive .sizing.reset-size1.size2{font-size:1.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size3,.ML__mathlive .sizing.reset-size1.size3{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size1.size4,.ML__mathlive .sizing.reset-size1.size4{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size1.size5,.ML__mathlive .sizing.reset-size1.size5{font-size:2em}.ML__mathlive .fontsize-ensurer.reset-size1.size6,.ML__mathlive .sizing.reset-size1.size6{font-size:2.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size7,.ML__mathlive .sizing.reset-size1.size7{font-size:2.88em}.ML__mathlive .fontsize-ensurer.reset-size1.size8,.ML__mathlive .sizing.reset-size1.size8{font-size:3.46em}.ML__mathlive .fontsize-ensurer.reset-size1.size9,.ML__mathlive .sizing.reset-size1.size9{font-size:4.14em}.ML__mathlive .fontsize-ensurer.reset-size1.size10,.ML__mathlive .sizing.reset-size1.size10{font-size:4.98em}.ML__mathlive .fontsize-ensurer.reset-size2.size1,.ML__mathlive .sizing.reset-size2.size1{font-size:.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size2,.ML__mathlive .sizing.reset-size2.size2{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size2.size3,.ML__mathlive .sizing.reset-size2.size3{font-size:1.14285714em}.ML__mathlive .fontsize-ensurer.reset-size2.size4,.ML__mathlive .sizing.reset-size2.size4{font-size:1.28571429em}.ML__mathlive .fontsize-ensurer.reset-size2.size5,.ML__mathlive .sizing.reset-size2.size5{font-size:1.42857143em}.ML__mathlive .fontsize-ensurer.reset-size2.size6,.ML__mathlive .sizing.reset-size2.size6{font-size:1.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size7,.ML__mathlive .sizing.reset-size2.size7{font-size:2.05714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size8,.ML__mathlive .sizing.reset-size2.size8{font-size:2.47142857em}.ML__mathlive .fontsize-ensurer.reset-size2.size9,.ML__mathlive .sizing.reset-size2.size9{font-size:2.95714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size10,.ML__mathlive .sizing.reset-size2.size10{font-size:3.55714286em}.ML__mathlive .fontsize-ensurer.reset-size3.size1,.ML__mathlive .sizing.reset-size3.size1{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size3.size2,.ML__mathlive .sizing.reset-size3.size2{font-size:.875em}.ML__mathlive .fontsize-ensurer.reset-size3.size3,.ML__mathlive .sizing.reset-size3.size3{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size3.size4,.ML__mathlive .sizing.reset-size3.size4{font-size:1.125em}.ML__mathlive .fontsize-ensurer.reset-size3.size5,.ML__mathlive .sizing.reset-size3.size5{font-size:1.25em}.ML__mathlive .fontsize-ensurer.reset-size3.size6,.ML__mathlive .sizing.reset-size3.size6{font-size:1.5em}.ML__mathlive .fontsize-ensurer.reset-size3.size7,.ML__mathlive .sizing.reset-size3.size7{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size3.size8,.ML__mathlive .sizing.reset-size3.size8{font-size:2.1625em}.ML__mathlive .fontsize-ensurer.reset-size3.size9,.ML__mathlive .sizing.reset-size3.size9{font-size:2.5875em}.ML__mathlive .fontsize-ensurer.reset-size3.size10,.ML__mathlive .sizing.reset-size3.size10{font-size:3.1125em}.ML__mathlive .fontsize-ensurer.reset-size4.size1,.ML__mathlive .sizing.reset-size4.size1{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size4.size2,.ML__mathlive .sizing.reset-size4.size2{font-size:.77777778em}.ML__mathlive .fontsize-ensurer.reset-size4.size3,.ML__mathlive .sizing.reset-size4.size3{font-size:.88888889em}.ML__mathlive .fontsize-ensurer.reset-size4.size4,.ML__mathlive .sizing.reset-size4.size4{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size4.size5,.ML__mathlive .sizing.reset-size4.size5{font-size:1.11111111em}.ML__mathlive .fontsize-ensurer.reset-size4.size6,.ML__mathlive .sizing.reset-size4.size6{font-size:1.33333333em}.ML__mathlive .fontsize-ensurer.reset-size4.size7,.ML__mathlive .sizing.reset-size4.size7{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size4.size8,.ML__mathlive .sizing.reset-size4.size8{font-size:1.92222222em}.ML__mathlive .fontsize-ensurer.reset-size4.size9,.ML__mathlive .sizing.reset-size4.size9{font-size:2.3em}.ML__mathlive .fontsize-ensurer.reset-size4.size10,.ML__mathlive .sizing.reset-size4.size10{font-size:2.76666667em}.ML__mathlive .fontsize-ensurer.reset-size5.size1,.ML__mathlive .sizing.reset-size5.size1{font-size:.5em}.ML__mathlive .fontsize-ensurer.reset-size5.size2,.ML__mathlive .sizing.reset-size5.size2{font-size:.7em}.ML__mathlive .fontsize-ensurer.reset-size5.size3,.ML__mathlive .sizing.reset-size5.size3{font-size:.8em}.ML__mathlive .fontsize-ensurer.reset-size5.size4,.ML__mathlive .sizing.reset-size5.size4{font-size:.9em}.ML__mathlive .fontsize-ensurer.reset-size5.size5,.ML__mathlive .sizing.reset-size5.size5{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size5.size6,.ML__mathlive .sizing.reset-size5.size6{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size5.size7,.ML__mathlive .sizing.reset-size5.size7{font-size:1.44em}.ML__mathlive .fontsize-ensurer.reset-size5.size8,.ML__mathlive .sizing.reset-size5.size8{font-size:1.73em}.ML__mathlive .fontsize-ensurer.reset-size5.size9,.ML__mathlive .sizing.reset-size5.size9{font-size:2.07em}.ML__mathlive .fontsize-ensurer.reset-size5.size10,.ML__mathlive .sizing.reset-size5.size10{font-size:2.49em}.ML__mathlive .fontsize-ensurer.reset-size6.size1,.ML__mathlive .sizing.reset-size6.size1{font-size:.41666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size2,.ML__mathlive .sizing.reset-size6.size2{font-size:.58333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size3,.ML__mathlive .sizing.reset-size6.size3{font-size:.66666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size4,.ML__mathlive .sizing.reset-size6.size4{font-size:.75em}.ML__mathlive .fontsize-ensurer.reset-size6.size5,.ML__mathlive .sizing.reset-size6.size5{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size6,.ML__mathlive .sizing.reset-size6.size6{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size6.size7,.ML__mathlive .sizing.reset-size6.size7{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size6.size8,.ML__mathlive .sizing.reset-size6.size8{font-size:1.44166667em}.ML__mathlive .fontsize-ensurer.reset-size6.size9,.ML__mathlive .sizing.reset-size6.size9{font-size:1.725em}.ML__mathlive .fontsize-ensurer.reset-size6.size10,.ML__mathlive .sizing.reset-size6.size10{font-size:2.075em}.ML__mathlive .fontsize-ensurer.reset-size7.size1,.ML__mathlive .sizing.reset-size7.size1{font-size:.34722222em}.ML__mathlive .fontsize-ensurer.reset-size7.size2,.ML__mathlive .sizing.reset-size7.size2{font-size:.48611111em}.ML__mathlive .fontsize-ensurer.reset-size7.size3,.ML__mathlive .sizing.reset-size7.size3{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size7.size4,.ML__mathlive .sizing.reset-size7.size4{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size7.size5,.ML__mathlive .sizing.reset-size7.size5{font-size:.69444444em}.ML__mathlive .fontsize-ensurer.reset-size7.size6,.ML__mathlive .sizing.reset-size7.size6{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size7.size7,.ML__mathlive .sizing.reset-size7.size7{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size7.size8,.ML__mathlive .sizing.reset-size7.size8{font-size:1.20138889em}.ML__mathlive .fontsize-ensurer.reset-size7.size9,.ML__mathlive .sizing.reset-size7.size9{font-size:1.4375em}.ML__mathlive .fontsize-ensurer.reset-size7.size10,.ML__mathlive .sizing.reset-size7.size10{font-size:1.72916667em}.ML__mathlive .fontsize-ensurer.reset-size8.size1,.ML__mathlive .sizing.reset-size8.size1{font-size:.28901734em}.ML__mathlive .fontsize-ensurer.reset-size8.size2,.ML__mathlive .sizing.reset-size8.size2{font-size:.40462428em}.ML__mathlive .fontsize-ensurer.reset-size8.size3,.ML__mathlive .sizing.reset-size8.size3{font-size:.46242775em}.ML__mathlive .fontsize-ensurer.reset-size8.size4,.ML__mathlive .sizing.reset-size8.size4{font-size:.52023121em}.ML__mathlive .fontsize-ensurer.reset-size8.size5,.ML__mathlive .sizing.reset-size8.size5{font-size:.57803468em}.ML__mathlive .fontsize-ensurer.reset-size8.size6,.ML__mathlive .sizing.reset-size8.size6{font-size:.69364162em}.ML__mathlive .fontsize-ensurer.reset-size8.size7,.ML__mathlive .sizing.reset-size8.size7{font-size:.83236994em}.ML__mathlive .fontsize-ensurer.reset-size8.size8,.ML__mathlive .sizing.reset-size8.size8{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size8.size9,.ML__mathlive .sizing.reset-size8.size9{font-size:1.19653179em}.ML__mathlive .fontsize-ensurer.reset-size8.size10,.ML__mathlive .sizing.reset-size8.size10{font-size:1.43930636em}.ML__mathlive .fontsize-ensurer.reset-size9.size1,.ML__mathlive .sizing.reset-size9.size1{font-size:.24154589em}.ML__mathlive .fontsize-ensurer.reset-size9.size2,.ML__mathlive .sizing.reset-size9.size2{font-size:.33816425em}.ML__mathlive .fontsize-ensurer.reset-size9.size3,.ML__mathlive .sizing.reset-size9.size3{font-size:.38647343em}.ML__mathlive .fontsize-ensurer.reset-size9.size4,.ML__mathlive .sizing.reset-size9.size4{font-size:.43478261em}.ML__mathlive .fontsize-ensurer.reset-size9.size5,.ML__mathlive .sizing.reset-size9.size5{font-size:.48309179em}.ML__mathlive .fontsize-ensurer.reset-size9.size6,.ML__mathlive .sizing.reset-size9.size6{font-size:.57971014em}.ML__mathlive .fontsize-ensurer.reset-size9.size7,.ML__mathlive .sizing.reset-size9.size7{font-size:.69565217em}.ML__mathlive .fontsize-ensurer.reset-size9.size8,.ML__mathlive .sizing.reset-size9.size8{font-size:.83574879em}.ML__mathlive .fontsize-ensurer.reset-size9.size9,.ML__mathlive .sizing.reset-size9.size9{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size9.size10,.ML__mathlive .sizing.reset-size9.size10{font-size:1.20289855em}.ML__mathlive .fontsize-ensurer.reset-size10.size1,.ML__mathlive .sizing.reset-size10.size1{font-size:.20080321em}.ML__mathlive .fontsize-ensurer.reset-size10.size2,.ML__mathlive .sizing.reset-size10.size2{font-size:.2811245em}.ML__mathlive .fontsize-ensurer.reset-size10.size3,.ML__mathlive .sizing.reset-size10.size3{font-size:.32128514em}.ML__mathlive .fontsize-ensurer.reset-size10.size4,.ML__mathlive .sizing.reset-size10.size4{font-size:.36144578em}.ML__mathlive .fontsize-ensurer.reset-size10.size5,.ML__mathlive .sizing.reset-size10.size5{font-size:.40160643em}.ML__mathlive .fontsize-ensurer.reset-size10.size6,.ML__mathlive .sizing.reset-size10.size6{font-size:.48192771em}.ML__mathlive .fontsize-ensurer.reset-size10.size7,.ML__mathlive .sizing.reset-size10.size7{font-size:.57831325em}.ML__mathlive .fontsize-ensurer.reset-size10.size8,.ML__mathlive .sizing.reset-size10.size8{font-size:.69477912em}.ML__mathlive .fontsize-ensurer.reset-size10.size9,.ML__mathlive .sizing.reset-size10.size9{font-size:.8313253em}.ML__mathlive .fontsize-ensurer.reset-size10.size10,.ML__mathlive .sizing.reset-size10.size10{font-size:1em}.ML__mathlive .delimsizing.size1{font-family:KaTeX_Size1}.ML__mathlive .delimsizing.size2{font-family:KaTeX_Size2}.ML__mathlive .delimsizing.size3{font-family:KaTeX_Size3}.ML__mathlive .delimsizing.size4{font-family:KaTeX_Size4}.ML__mathlive .delimsizing.mult .delim-size1{font-family:KaTeX_Size1;vertical-align:top}.ML__mathlive .delimsizing.mult .delim-size4{font-family:KaTeX_Size4;vertical-align:top}.ML__mathlive .nulldelimiter{width:.12em}.ML__mathlive .op-symbol{position:relative}.ML__mathlive .op-symbol.small-op{font-family:KaTeX_Size1}.ML__mathlive .op-symbol.large-op{font-family:KaTeX_Size2}.ML__mathlive .op-limits .vlist>span{text-align:center}.ML__mathlive .op-over-under{position:relative}.ML__mathlive .op-over-under>.vlist>span:first-child,.ML__mathlive .op-over-under>.vlist>span:last-child{text-align:center}.ML__mathlive .accent>.vlist>span{text-align:center}.ML__mathlive .accent .accent-body>span{font-family:KaTeX_Main;width:0}.ML__mathlive .accent .accent-body.accent-vec>span{position:relative;left:.326em}.ML__mathlive .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid}.ML__mathlive .mtable .arraycolsep{display:inline-block}.ML__mathlive .mtable .col-align-m>.vlist{text-align:center}.ML__mathlive .mtable .col-align-c>.vlist{text-align:center}.ML__mathlive .mtable .col-align-l>.vlist{text-align:left}.ML__mathlive .mtable .col-align-r>.vlist{text-align:right}.ML__error{background-image:radial-gradient(ellipse at center,#cc0041,transparent 70%);background-repeat:repeat-x;background-size:3px 3px;background-position:0 98%}.ML__placeholder{opacity:.7;padding-left:.4ex;padding-right:.4ex;padding-top:.4ex}';const Mo={"\\imaginaryI":"ⅈ","\\imaginaryJ":"ⅉ","\\pi":"π","\\exponentialE":"ℯ","﹢":"+","+":"+","−":"-","-":"-","﹣":"-","-":"-","\\times":"*","\\cdot":"*","⨉":"*","️✖":"*","️×":"*",".":"*","÷":"/","⁄":"/","/":"/","!":"factorial","\\mp":"minusplus","\\ne":"!=","\\coloneq":":=","\\questeq":"?=","\\approx":"approx","\\cong":"congruent","\\sim":"similar","\\equiv":"equiv","\\pm":"plusminus","\\land":"and","\\wedge":"and","\\lor":"or","\\vee":"or","\\oplus":"xor","\\veebar":"xor","\\lnot":"not","\\neg":"not","\\exists":"exists","\\nexists":"!exists","\\forall":"forAll","\\backepsilon":"suchThat","\\therefore":"therefore","\\because":"because","\\nabla":"nabla","\\circ":"circle","\\ominus":"ominus","\\odot":"odot","\\otimes":"otimes","\\zeta":"Zeta","\\Gamma":"Gamma","\\min":"min","\\max":"max","\\mod":"mod","\\lim":"lim","\\sum":"sum","\\prod":"prod","\\int":"integral","\\iint":"integral2","\\iiint":"integral3","\\Re":"Re","\\gothicCapitalR":"Re","\\Im":"Im","\\gothicCapitalI":"Im","\\binom":"nCr","\\partial":"partial","\\differentialD":"differentialD","\\capitalDifferentialD":"capitalDifferentialD","\\Finv":"Finv","\\Game":"Game","\\wp":"wp","\\ast":"ast","\\star":"star","\\asymp":"asymp","\\to":"to","\\gets":"gets","\\in":"elementof","\\notin":"!elementof","\\ni":"ownedby","\\owns":"ownedby","\\subset":"subset","\\supset":"superset","\\complement":"complement","\\rightarrow":"shortLogicalImplies","\\leftarrow":"shortLogicalImpliedBy","\\leftrightarrow":"shortLogicalEquivalent","\\longrightarrow":"logicalImplies","\\longleftarrow":"logicalImpliedBy","\\longleftrightarrow":"logicalEquivalent","\\Rightarrow":"shortImplies","\\Leftarrow":"shortImpliedBy","\\Leftrightarrow":"shortEquivalent","\\implies":"implies","\\Longrightarrow":"implies","\\impliedby":"impliedBy","\\Longleftarrow":"impliedBy","\\iff":"equivalent","\\Longleftrightarrow":"equivalent"},zo={"+":"add","*":"multiply","-":"subtract","/":"divide","=":"equal",":=":"assign","!=":"ne","?=":"questeq",approx:"approx",congruent:"congruent",similar:"similar",equiv:"equiv","<":"lt",">":"gt","<=":"le",">=":"ge","≤":"le","≥":"ge",">>":"gg","<<":"ll","**":"pow","++":"increment","--":"decrement"},So={equal:"%0 = %1",ne:"%0 \\ne %1",questeq:"%0 \\questeq %1",approx:"%0 \\approx %1",congruent:"%0 \\cong %1",similar:"%0 \\sim %1",equiv:"%0 \\equiv %1",assign:"%0 := %1",lt:"%0 < %1",gt:"%0 > %1",le:"%0 \\le %1",ge:"%0 \\ge %1",sin:"\\sin%_%^ %0",cos:"\\cos%_%^ %0",tan:"\\tan%_%^ %0",cot:"\\cot%_%^ %0",sec:"\\sec%_%^ %0",csc:"\\csc%_%^ %0",sinh:"\\sinh %0",cosh:"\\cosh %0",tanh:"\\tanh %0",csch:"\\csch %0",sech:"\\sech %0",coth:"\\coth %0",arcsin:"\\arcsin %0",arccos:"\\arccos %0",arctan:"\\arctan %0",arccot:"\\arcctg %0",arcsec:"\\arcsec %0",arccsc:"\\arccsc %0",arsinh:"\\arsinh %0",arcosh:"\\arcosh %0",artanh:"\\artanh %0",arcsch:"\\arcsch %0",arsech:"\\arsech %0",arcoth:"\\arcoth %0",ln:"\\ln%_%^ %",log:"\\log%_%^ %",lg:"\\lg %",lb:"\\lb %",sum:"\\sum%_%^ %0",prod:"\\prod%_%^ %0",Zeta:"\\zeta%_%^ %",Gamma:"\\Gamma %",min:"\\min%_%^ %",max:"\\max%_%^ %",mod:"\\mod%_%^ %",lim:"\\lim%_%^ %",binom:"\\binom %",nabla:"\\nabla %",curl:"\\nabla\\times %0",div:"\\nabla\\cdot %0",floor:"\\lfloor %0 \\rfloor%_%^",ceil:"\\lceil %0 \\rceil%_%^",abs:"\\left| %0 \\right|%_%^",norm:"\\lVert %0 \\rVert%_%^",ucorner:"\\ulcorner %0 \\urcorner%_%^",lcorner:"\\llcorner %0 \\lrcorner%_%^",angle:"\\langle %0 \\rangle%_%^",group:"\\lgroup %0 \\rgroup%_%^",moustache:"\\lmoustache %0 \\rmoustache%_%^",brace:"\\lbrace %0 \\rbrace%_%^","sqrt[]":"\\sqrt[%^]{%0}",sqrt:"\\sqrt{%0}",lcm:"\\operatorname{lcm}%",gcd:"\\operatorname{gcd}%",erf:"\\operatorname{erf}%",erfc:"\\operatorname{erfc}%",randomReal:"\\operatorname{randomReal}%",randomInteger:"\\operatorname{randomInteger}%",and:"%0 \\land %1",or:"%0 \\lor %1",xor:"%0 \\oplus %1",not:"%0 \\lnot %1",circle:"%0 \\circ %1",ast:"%0 \\ast %1",star:"%0 \\star %1",asymp:"%0 \\asymp %1","/":"\\frac{%0}{%1}",Re:"\\Re{%0}",Im:"\\Im{%0}",factorial:"%0!",factorial2:"%0!!"},Lo={degree:880,nabla:740,curl:740,partial:740,differentialD:740,capitalDifferentialD:740,"**":720,odot:710,not:680,div:660,solidus:660,"/":660,setminus:650,"%":640,otimes:410,union:350,intersection:350,"*":390,ast:390,".":390,oplus:300,ominus:300,"+":275,"-":275,"+-":275,"-+":275,circle:265,circledast:265,circledcirc:265,star:265,"..":263,to:262,in:262,"|":261,congruent:265,equiv:260,"=":260,"!=":255,"?=":255,similar:250,approx:247,"<":245,">":243,">=":242,"≥":242,"<=":241,complement:240,subset:240,superset:240,elementof:240,"!elementof":240,exists:230,"!exists":230,forall:230,and:200,xor:195,or:190,suchThat:110,":":100,assign:80,":=":80,therefore:70,because:70,shortLogicalImplies:52,shortImplies:51,logicalImplies:50,implies:49,shortLogicalImpliedBy:48,shortImpliedBy:47,logicalImpliedBy:46,impliedBy:45,shortLogicalEquivalent:44,shortEquivalent:43,logicalEquivalent:42,equivalent:41,",":40,";":30};function Ao(t,i){return e(t.arg)?t.arg[i]:void 0}function Co(e){return e&&Lo[e]||-1}function $o(e){return/=|=>/.test(e)?"right":"left"}function qo(e){if("f"===e||"g"===e)return!0;const t=So[e];return!!t&&!!/%[^01_^]?/.test(t)}function Do(e){e=(e||"").trim();let t=Mo[e];if(!t)if(/^\\[^{}]+$/.test(e)){const i=te(e,"math",{});t=i&&i.value||e.slice(1)}else t=e;return t}function To(e){if(!e)return null;const t=Do(Fo(e)),i=[Co(t),$o(t)];return i[0]<=0?null:i}function Ko(e){return null!==To(e)}const Eo={"\\lfloor\\rfloor":"floor","\\lceil\\rceil":"ceil","\\vert\\vert":"abs","\\lvert\\rvert":"abs","||":"abs","\\Vert\\Vert":"norm","\\lVert\\rVert":"norm","\\ulcorner\\urcorner":"ucorner","\\llcorner\\lrcorner":"lcorner","\\langle\\rangle":"angle","\\lgroup\\rgroup":"group","\\lmoustache\\rmoustache":"moustache","\\lbrace\\rbrace":"brace"},No={"!":"factorial","\\dag":"dagger","\\dagger":"dagger","\\ddagger":"dagger2","\\maltese":"maltese","\\backprime":"backprime","\\backdoubleprime":"backprime2","\\prime":"prime","\\doubleprime":"prime2","\\$":"$","\\%":"%","\\_":"_","\\degree":"degree"},Bo={"+":"add","-":"add","*":"multiply","=":"equal",",":"list",";":"list2",and:"and",or:"or",xor:"xor",union:"union",shortLogicalEquivalent:"logicalEquivalent",logicalEquivalent:"logicalEquivalent",shortEquivalent:"equivalent",equivalent:"equivalent"},Oo={",":"list",";":"list2"};function Fo(t){if("string"==typeof t)return t;if(e(t)){let e="";for(const i of t)e+=Fo(i);return e}if(t.symbol&&!/^\\math(op|bin|rel|open|punct|ord|inner)/.test(t.symbol))return t.symbol;if("leftright"===t.type)return"";if("string"==typeof t.body)return t.body;if(e(t.body)){let e="";for(const i of t.body)e+=Fo(i);return e}return""}function Po(e){return"string"==typeof e.sym?function(e){let t=So[e];return t?t.replace("%1","").replace("%0","").replace("%",""):(e.length>1&&(t="\\"+e),t||(t=Y("math",e)),t)}(e.sym)||e.sym:""}function Ro(e){return parseFloat(e.num)}function Io(e){return"object"==typeof e&&void 0!==e.num}function Ho(e){let t=0;return Io(e)&&(t="object"==typeof e.num?void 0!==e.num.re?dr(e.num.re):0:parseFloat(e.num)),t}function Vo(e){let t=0;return Io(e)&&"object"==typeof e.num&&(t=void 0!==e.num.im?dr(e.num.im):0),t}function Wo(e){return e&&void 0!==e.sup}function Uo(e){return e&&void 0!==e.sub}function jo(e,t,i){let a=!1;const o=e.atoms[e.index];return o&&o.type===t&&(a=void 0===i||Fo(o)===i),a}function Xo(e,...t){const i={fn:e,arg:void 0};if(t){const e=[];for(const i of t)i&&e.push(i);e.length>0&&(i.arg=e)}return i}function Go(e){return"number"==typeof e?{num:e.toString()}:"string"==typeof e||"object"==typeof e?{num:e}:void 0}function Zo(e){if(Io(e)){const t=Ho(e),i=Vo(e);return 0!==i?(0!==t&&(e.num.re=(-t).toString()),e.num.im=(-i).toString()):e.num=(-t).toString(),e}return Xo("negate",e)}function Yo(e){const t=e.atoms[e.index+1];return t&&"msubsup"===t.type}function Jo(e,t){let i=e.atoms[e.index];return!i||void 0===i.superscript&&void 0===i.subscript?i=null:e.index+=1,i||(i=e.atoms[e.index+1],i&&"msubsup"===i.type&&(i.superscript||i.subscript)?e.index+=2:i=null),i?(void 0!==i.subscript&&(e.ast.sub=sr(i.subscript,t)),void 0!==i.superscript&&("msubsup"===i.type?/['\u2032]|\\prime/.test(Fo(i.superscript))?(e.index+=1,i=e.atoms[e.index+1],i&&"msubsup"===i.type&&/['\u2032]|\\prime/.test(Fo(i.superscript))?e.ast.sup={sym:"″"}:(e.ast.sup={sym:"′"},e.index-=1)):/['\u2033]|\\doubleprime/.test(Fo(i.superscript))?e.ast.sup={sym:"″"}:e.ast&&(e.ast.sup=sr(i.superscript,t)):e.ast.sup=sr(i.superscript,t))):e.index+=1,e}function Qo(e,t){const i=e.ast;if(tr(e,"!!"))return e.index+=1,e.ast=Xo("factorial2",i),Qo(e=Jo(e,t),t);if(tr(e,"++"))return e.index+=1,e.ast=Xo("increment",i),Qo(e=Jo(e,t),t);if(tr(e,"--"))return e.index+=1,e.ast=Xo("decrement",i),Qo(e=Jo(e,t),t);const a=e.atoms[e.index];return(null==a?void 0:a.symbol)&&No[a.symbol]&&(e.ast=Xo(No[a.symbol],i),e=Qo(e=Jo(e,t),t)),e}function er(e,t,i,a){if(e.index=e.index||0,0===e.atoms.length||e.index>=e.atoms.length)return e.ast=void 0,e;const o=e.minPrec;e.minPrec=0;let r=e.atoms[e.index];if(t){if("mopen"===r.type&&Fo(r)===t)e.index+=1,r=(e=ar(e,a)).atoms[e.index],r&&"mclose"===r.type&&Fo(r)===i&&(Yo(e)&&(e.ast={group:e.ast}),e=Qo(e=Jo(e,a),a));else if("textord"===r.type&&Fo(r)===t)e.index+=1,r=(e=ar(e,a)).atoms[e.index],r&&"textord"===r.type&&Fo(r)===i&&(e.index+=1,e=Qo(e=Jo(e,a),a));else if("\\lVert"===t&&"textord"===r.type&&"|"===r.symbol){if(r=e.atoms[e.index+1],r&&"textord"===r.type&&"|"===r.symbol){e.index+=2,r=(e=ar(e,a)).atoms[e.index];const t=e.atoms[e.index+1];r&&"textord"===r.type&&"|"===r.symbol&&t&&"textord"===t.type&&"|"===t.symbol&&(e.index+=2,e=Qo(e=Jo(e,a),a))}}else if("sizeddelim"===r.type&&r.delim===t)e.index+=1,r=(e=ar(e,a)).atoms[e.index],r&&"sizeddelim"===r.type&&r.delim===i&&(e.index+=1,e=Qo(e=Jo(e,a),a));else{if("leftright"!==r.type||r.leftDelim!==t||"?"!==r.rightDelim&&r.rightDelim!==i)return;e.ast=sr(r.body,a),Yo(e)&&(e.ast={group:e.ast}),e=Qo(e=Jo(e,a),a)}return e.minPrec=o,e}{let s=!0;if("mopen"===r.type?(t=r.symbol,i=F[t]):"sizeddelim"===r.type?(t=r.delim,i=F[t]):"leftright"===r.type?(s=!1,t=r.leftDelim,"?"===(i=r.rightDelim)&&(i=F[t])):"textord"===r.type&&(t=r.symbol,i=F[t]),t&&i){if("|"===t&&"|"===i){const a=e.atoms[e.index+1];a&&"textord"===a.type&&"|"===a.symbol&&(t="\\lVert",i="\\rVert")}if(e=er(e,t,i,a))return s&&(e.index+=1),e.ast={fn:Eo[t+i]||t+i,arg:[e.ast]},e.minPrec=o,e}}}function tr(e,t){return e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)&&t===Fo(e.atoms[e.index])+Fo(e.atoms[e.index+1])}function ir(e){if(e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)){if(!jo(e,"textord","\\nabla")){const t=e.atoms[e.index].symbol+e.atoms[e.index+1].symbol,i=/^(>=|<=|>>|<<|:=|!=)$/.test(t)?t:"";return i&&(e.index+=1),i}return e.index+=1,jo(e,"mbin","\\times")?(e.index+=1,e.ast="curl",e):jo(e,"mbin","\\cdot")?(e.index+=1,e.ast="div",e):void(e.index-=1)}}function ar(t,i){if(t.index=t.index||0,t.ast=void 0,0===t.atoms.length||t.index>=t.atoms.length)return t;t.minPrec=t.minPrec||0;let a=function t(i,a){if(i.index=i.index||0,i.ast=void 0,0===i.atoms.length||i.index>=i.atoms.length)return i;let o=i.atoms[i.index];if("text"===o.mode){let e="";for(;i.atoms[i.index]&&"text"===i.atoms[i.index].mode;)e+=i.atoms[i.index].body,i.index+=1;return i.ast={text:e},i}const r=Do(Fo(o));if(ir(i))i.ast=Xo(i.ast,t(i,a).ast);else{if("root"===o.type)return i.index=0,i.atoms=o.body,t(i,a);if("mbin"===o.type&&"-"===r)i.index+=1,(i=t(i,a)).ast=Zo(i.ast);else if("mbin"===o.type&&"+"===r)i.index+=1,(i=t(i,a)).ast=Xo("add",i.ast);else if("mord"===o.type&&/^[0-9.]$/.test(o.symbol)){let e="",r=!1,s=/^[0-9.eEdD]$/;for(;i.index0&&"\\"===d.charAt(0)&&"string"==typeof e.body&&(d=e.body)),l=G(d,m,p).replace(/[\\]/g,"\\\\").replace(/["]/g,'\\"').replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t"),l!==d?(c={sym:l},m="normal"):c={sym:d};break;case"minner":case"mop":break;case"box":c=sr(e.body,t);break;case"enclose":break;case"array":if("cardinality"===e.environmentName)c=Xo("card",sr(e.array,t));else if(/array|matrix|pmatrix|bmatrix/.test(e.environmentName)){c={fn:"array",args:[]};for(const i of e.array)c.args.push(i.map(e=>sr(e,t)))}else if("cases"===e.environmentName){c={fn:"cases",args:[]};for(const i of e.array)if(i[0]){const e=[];e.push(sr(i[0],t));let a=sr(i[1],t);a&&"text"===a.fn&&a.arg&&/^(if|when|for)$/i.test(a.arg[0].trim())&&(a=a.arg.filter(e=>"string"!=typeof e)),e.push(null!=a?a:{}),c.args.push(e)}}break;case"spacing":case"space":case"mathstyle":break;default:c=void 0}return c&&m&&"normal"!==m&&(c.variant=m),c&&"string"==typeof e.cssClass&&(c.class=e.cssClass),c&&"string"==typeof e.cssId&&(c.id=e.cssId),c}function rr(t){if(!t)return[];let i;if(e(t)){i=[];for(const e of t){const t=rr(e);i=i.concat(t)}}else{if("spacing"===t.type||"first"===t.type)return[];"box"===t.type?i=rr(t.body):(t.body&&e(t.body)&&(t.body=rr(t.body)),t.superscript&&e(t.superscript)&&(t.superscript=rr(t.superscript)),t.subscript&&e(t.subscript)&&(t.subscript=rr(t.subscript)),t.index&&e(t.index)&&(t.index=rr(t.index)),t.denom&&e(t.denom)&&(t.denom=rr(t.denom)),t.numer&&e(t.numer)&&(t.numer=rr(t.numer)),t.array&&e(t.array)&&(t.array=t.array.map(e=>e.map(e=>rr(e)))),i=[t])}return i}function sr(e,t){return function(e,t){e.index=e.index||0,e.ast=void 0;const i=[];for(;e.atoms[e.index];)if("text"===e.atoms[e.index].mode){let t="";for(;e.atoms[e.index]&&"text"===e.atoms[e.index].mode;)t+=e.atoms[e.index].body,e.index+=1;i.push(Xo("text",t))}else{const a=ar(e,t).ast;if(!a)return;i.push(a)}return i.length>1?Xo("sequence",...i):i[0]||void 0}({atoms:rr(e)},t)}function nr(e,t){return sr(e,t)}function lr(e,...t){e=e||".. ";let i="";if(t.length>0){"."!==e[0]&&(i+=e[0]);let a="";for(const o of t)i+=a+o,a=e[2];"."!==e[1]&&(i+=e[1])}return i}function cr(e,t){const i=e.length;e=e.substr(0,t.precision-2);for(let i=0;i1&&(a+r.repeat(s+1)).startsWith(e))return"0"===r?a.replace(/(\d{3})/g,"$1"+t.groupSeparator):a.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.beginRepeatingDigits+r.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.endRepeatingDigits}}return i!==e.length&&(e+="\\ldots"),e.replace(/(\d{3})/g,"$1"+t.groupSeparator)}function dr(e){return parseFloat(parseFloat(e).toPrecision(15))}function mr(e,t){let i,a="";if("number"==typeof t.precision){if("number"!=typeof e){let i="",a="";if("-"===e[0]?(i="-",e=e.substr(1)):"+"===e[0]&&(e=e.substr(1)),e.indexOf(".")>=0){const o=e.match(/(\d*).(\d*)([e|E]([-+]?[0-9]*))?/),r=o[1],s=o[2].substring(0,Math.min(t.precision-r.length,o[2].length));if(a=o[4]||"","0"===r){let a=0;for(;"0"===s[a]&&a=t.precision)o="0",i="";else{o=e[a];const i=cr(e.substr(a+1),t);i&&(o+=t.decimalMarker+i)}"0"!==o&&(e.length-1>t.precision&&!o.endsWith("}")&&!o.endsWith("\\ldots")&&(o+="\\ldots"),a>4&&(o+=t.exponentProduct,t.exponentMarker?o+=t.exponentMarker+(1-a).toString():o+="10^{"+(1-a).toString()+"}")),e=o}else{e=r.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);const i=cr(s,t);i&&(e+=t.decimalMarker+i)}}else if(e.length>t.precision){const i=e.length;let a=e[0];const o=cr(e.substr(2),t);o&&(a+=t.decimalMarker+o,"}"!==a[a.length-1]&&(a+="\\ldots")),"1"!==a?a+=t.exponentProduct:a="",t.exponentMarker?a+=t.exponentMarker+(i-2).toString():a+="10^{"+(i-2).toString()+"}",e=a}else e=e.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);return a&&(a=t.exponentMarker?t.exponentMarker+a:t.exponentProduct+" 10^{"+a+"}"),i+e+a}i=dr(e)}if("engineering"===t.scientificNotation)if(0===i)a="0";else{const e=Math.abs(i);let o=Math.round(Math.log10(e));o-=o%3,e<1e3&&(o=0);const r=e/Math.pow(10,o);let s="";const n=r.toString().match(/^(.*)\.(.*)$/);(null==n?void 0:n[1])&&n[2]&&(s=n[1]+t.decimalMarker+n[2]),t.groupSeparator&&(s=cr(r.toExponential(),t));let l="";l=0===o?"":t.exponentMarker?t.exponentMarker+o:t.exponentProduct+" 10^{"+o+"}",a=(i<0?"-":"")+s+l}else{const i="string"==typeof e?e:e.toString();let o,r,s,n=i.match(/^(.*)[e|E]([-+]?[0-9]*)$/i);o=i,s="",(null==n?void 0:n[1])&&n[2]&&(o=n[1],r=t.exponentMarker?t.exponentMarker+n[2]:t.exponentProduct+" 10^{"+n[2]+"}"),n=o.match(/^(.*)\.(.*)$/),(null==n?void 0:n[1])&&n[2]&&(o=n[1],s=n[2]),t.groupSeparator&&(o=o.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator),s=cr(s,t)),s&&(s=t.decimalMarker+s),a=o+s+(r||"")}return a}class pr{constructor(e,t){var i;this.stylesheets=[],this.eventHandlingInProgress="",this.options=Ua(Xa(),t),this.element=e,e.mathfield=this,this.originalContent=e.innerHTML;let a=this.element.textContent;a&&(a=a.trim()),at(this.options.fontsDirectory,this.options.onError),this.stylesheets.push(ot(e,wo)),this.stylesheets.push(ot(e,'@-webkit-keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}.ML__caret:after{content:"";border:none;border-radius:2px;border-right:2px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-2px;position:relative;left:-1px;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__text-caret:after{content:"";border:none;border-radius:1px;border-right:1px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-1px;position:relative;left:0;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__command-caret:after{content:"_";border:none;margin-right:-1ex;position:relative;color:var(--caret,hsl(var(--hue,212),40%,49%));-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__fieldcontainer{display:flex;flex-flow:row;justify-content:space-between;align-items:flex-end;min-height:39px;touch-action:none;width:100%;--hue:212;--secondary:hsl(var(--hue,212),19%,26%);--on-secondary:hsl(var(--hue,212),19%,26%)}.ML__fieldcontainer:focus{outline:2px solid var(--primary,hsl(var(--hue,212),40%,50%));outline-offset:3px}.ML__fieldcontainer__field{align-self:center;position:relative;overflow:hidden;line-height:0;padding:2px;width:100%}.ML__virtual-keyboard-toggle{display:flex;align-self:center;align-items:center;flex-shrink:0;flex-direction:column;justify-content:center;width:34px;height:34px;padding:0;margin-right:4px;cursor:pointer;box-sizing:border-box;border-radius:50%;border:1px solid transparent;transition:background .2s cubic-bezier(.64,.09,.08,1);color:var(--primary,hsl(var(--hue,212),40%,50%));fill:currentColor;background:transparent}.ML__virtual-keyboard-toggle:hover{background:hsl(var(--hue,212),25%,35%);color:#fafafa;fill:currentColor;border-radius:50%;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}.ML__popover{visibility:hidden;min-width:160px;background-color:rgba(97,97,97,.95);color:#fff;text-align:center;border-radius:6px;position:fixed;z-index:1;display:flex;flex-direction:column;justify-content:center;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:all .2s cubic-bezier(.64,.09,.08,1)}.ML__popover:after{content:"";position:absolute;top:-5px;left:calc(50% - 3px);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;font-size:1rem;border-bottom:5px solid rgba(97,97,97,.9)}.ML__popover--reverse-direction:after{top:auto;bottom:-5px;border-top:5px solid rgba(97,97,97,.9);border-bottom:0}.ML__textarea__textarea{transform:scale(0);resize:none;position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;font-size:16px}.ML__focused .ML__text{background:hsla(var(--hue,212),40%,50%,.1)}.ML__smart-fence__close{opacity:.5}.ML__selection{background:var(--highlight-inactive,#ccc);box-sizing:border-box}.ML__focused .ML__selection{background:var(--highlight,hsl(var(--hue,212),97%,85%))!important;color:var(--on-highlight)}.ML__contains-caret.ML__close,.ML__contains-caret.ML__open,.ML__contains-caret>.ML__close,.ML__contains-caret>.ML__open,.sqrt.ML__contains-caret>.sqrt-sign,.sqrt.ML__contains-caret>.vlist>span>.sqrt-line{color:var(--caret,hsl(var(--hue,212),40%,49%))}.ML__command{font-family:IBM Plex Mono,Source Code Pro,Consolas,Roboto Mono,Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Courier,monospace;letter-spacing:-1px;font-weight:400;line-height:1em;color:var(--primary,hsl(var(--hue,212),40%,50%))}:not(.ML__command)+.ML__command{margin-left:.25em}.ML__command+:not(.ML__command){padding-left:.25em}.ML__suggestion{opacity:.5}.ML__virtual-keyboard-toggle.pressed{background:hsla(0,0%,70%,.5)}.ML__virtual-keyboard-toggle:focus{outline:none;border-radius:50%;border:2px solid var(--primary,hsl(var(--hue,212),40%,50%))}.ML__virtual-keyboard-toggle.active,.ML__virtual-keyboard-toggle.active:hover{background:hsla(0,0%,70%,.5);color:#000;fill:currentColor}.ML__scroller{position:fixed;z-index:1;top:0;height:100vh;width:200px}[data-ML__tooltip]{position:relative}[data-ML__tooltip][data-placement=top]:after{top:inherit;bottom:100%}[data-ML__tooltip]:after{position:absolute;visibility:hidden;content:attr(data-ML__tooltip);display:inline-table;top:110%;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:200px;padding:8px;background:#616161;color:#fff;text-align:center;z-index:2;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);border-radius:2px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;font-size:12px;opacity:0;transform:scale(.5);transition:all .15s cubic-bezier(.4,0,1,1)}@media only screen and (max-width:767px){[data-ML__tooltip]:after{padding:8px 16px;font-size:14px}}[data-ML__tooltip]:hover{position:relative}[data-ML__tooltip]:hover:after{visibility:visible;opacity:1;transform:scale(1)}[data-ML__tooltip][data-delay]:after{transition-delay:0s}[data-ML__tooltip][data-delay]:hover:after{transition-delay:1s}'));let o="";this.options.substituteTextArea?"string"==typeof this.options.substituteTextArea?o+=this.options.substituteTextArea:o+="":/android|ipad|ipod|iphone/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?o+="\n \n \n ":o+=``,o+='',"manual"===this.options.virtualKeyboardMode?(o+=`
    `,this.options.virtualKeyboardToggleGlyph?o+=this.options.virtualKeyboardToggleGlyph:o+='',o+="
    "):o+="",o+="
    ",o+='\n
    \n \n \n
    \n ',this.element.innerHTML=this.options.createHTML(o);let r=0;"function"==typeof this.options.substituteTextArea?this.textarea=this.options.substituteTextArea():this.textarea=this.element.children[r++].firstElementChild,this.field=this.element.children[r].children[0],this.field.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const t=void 0===e.deltaX?e.detail:-e.deltaX;isFinite(t)&&this.field.scroll({top:0,left:this.field.scrollLeft-5*t})},{passive:!1}),this.virtualKeyboardToggle=this.element.children[r++].children[1],Ai(this,this.virtualKeyboardToggle,{default:"toggleVirtualKeyboard",alt:"toggleVirtualKeyboardAlt",shift:"toggleVirtualKeyboardShift"}),this.ariaLiveText=this.element.children[r].children[0],this.accessibleNode=this.element.children[r++].children[1],this.popover=wi("mathlive-popover-panel","ML__popover"),this.stylesheets.push(ot(null,"div.ML__popover.is-visible{visibility:inherit;-webkit-animation:ML__fade-in .15s cubic-bezier(0,0,.2,1);animation:ML__fade-in .15s cubic-bezier(0,0,.2,1)}@-webkit-keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}@keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}.ML__popover__content{border-radius:6px;padding:2px;cursor:pointer;min-height:100px;display:flex;flex-direction:column;justify-content:center;margin-left:8px;margin-right:8px}.ML__popover__content a{color:#5ea6fd;padding-top:.3em;margin-top:.4em;display:block}.ML__popover__content a:hover{color:#5ea6fd;text-decoration:underline}.ML__popover__content.active,.ML__popover__content.pressed,.ML__popover__content:hover{background:hsla(0,0%,100%,.1)}.ML__popover__command{font-size:1.6rem}.ML__popover__prev-shortcut{height:31px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:4px;padding-bottom:2px}.ML__popover__next-shortcut:hover,.ML__popover__prev-shortcut:hover{opacity:.3}.ML__popover__next-shortcut.active,.ML__popover__next-shortcut.pressed,.ML__popover__prev-shortcut.active,.ML__popover__prev-shortcut.pressed{opacity:1}.ML__popover__next-shortcut>span,.ML__popover__prev-shortcut>span{padding:5px;border-radius:50%;width:20px;height:20px;display:inline-block}.ML__popover__prev-shortcut>span>span{margin-top:-2px;display:block}.ML__popover__next-shortcut>span>span{margin-top:2px;display:block}.ML__popover__next-shortcut:hover>span,.ML__popover__prev-shortcut:hover>span{background:hsla(0,0%,100%,.1)}.ML__popover__next-shortcut{height:34px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:2px;padding-bottom:4px}.ML__popover__shortcut{font-size:.8em;margin-top:.25em}.ML__popover__note,.ML__popover__shortcut{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.7;padding-top:.25em}.ML__popover__note{font-size:.8rem;line-height:1em;padding-left:.5em;padding-right:.5em}.ML__shortcut-join{opacity:.5}")),this.keystrokeCaption=wi("mathlive-keystroke-caption-panel","ML__keystroke-caption"),this.stylesheets.push(ot(null,".ML__keystroke-caption{visibility:hidden;background:var(--secondary);border-color:var(--secondary-border);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);text-align:center;border-radius:6px;padding:16px;position:absolute;z-index:1;display:flex;flex-direction:row;justify-content:center;--keystroke:#fff;--on-keystroke:#555;--keystroke-border:#f7f7f7}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}}body[theme=dark] .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}.ML__keystroke-caption>span{min-width:14px;margin:0 8px 0 0;padding:4px;background-color:var(--keystroke);color:var(--on-keystroke);fill:currentColor;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:1em;border-radius:6px;border:2px solid var(--keystroke-border)}")),this.keystrokeCaptionVisible=!1,this.virtualKeyboardVisible=!1,this.keystrokeBuffer="",this.keystrokeBufferStates=[],this.keystrokeBufferResetTimer=null,this.suggestionIndex=0,this.mode=this.options.defaultMode,this.smartModeSuppressed=!1,this.style={},this.blurred=!0,ki(this.element,"focus",this),ki(this.element,"blur",this),ki(this.textarea,"cut",this),ki(this.textarea,"copy",this),ki(this.textarea,"paste",this),function(e,t){let i,a=null,o=null,r=!1,s=!1,n=!1,l=!1;function c(e){clearTimeout(i),i=setTimeout(()=>{clearTimeout(i),e()})}function d(){if(e.selectionStart!==e.selectionEnd)return;const i=e.value;e.value="",i.length>0&&t.typedText(i)}const m=e;m.addEventListener("keydown",i=>{if(t.allowDeadKey()||"Dead"!==i.key&&"Unidentified"!==i.key&&229!==i.keyCode)l=!1;else{l=!0,r=!1;const i=t.blur,a=t.focus;t.blur=null,t.focus=null,"function"==typeof e.blur&&(e.blur(),e.focus()),t.blur=i,t.focus=a}return!(!r&&"CapsLock"!==i.code&&!/(Control|Meta|Alt|Shift)(Left|Right)/.test(i.code))||(a=i,o=null,t.keystroke(za(i),i))},!0),m.addEventListener("keypress",e=>{r||(a&&o&&t.keystroke(za(a),a),o=e,c(d))},!0),m.addEventListener("keyup",()=>{r||!a||o||d()},!0),m.addEventListener("paste",()=>{e.focus();const i=e.value;e.value="",i.length>0&&t.paste(i)},!0),m.addEventListener("blur",e=>{n||s||(n=!0,a=null,o=null,t.blur&&t.blur(),n=!1)},!0),m.addEventListener("focus",e=>{n||s||(s=!0,t.focus&&t.focus(),s=!1)},!0),m.addEventListener("compositionstart",()=>{r=!0},!0),m.addEventListener("compositionend",()=>{r=!1,l&&t.allowDeadKey()&&c(d)},!0),m.addEventListener("input",()=>{if(l){const i=t.blur,a=t.focus;t.blur=null,t.focus=null,e.blur(),e.focus(),t.blur=i,t.focus=a,l=!1,r=!1,t.allowDeadKey()&&c(d)}else r||c(d)})}(this.textarea,{allowDeadKey:()=>"text"===this.mode,typedText:e=>Qa(this,e),paste:()=>io(this),keystroke:(e,t)=>Ja(this,e,t),focus:()=>this.onFocus(),blur:()=>this.onBlur()}),window.PointerEvent?ki(this.field,"pointerdown",this):ki(this.field,"touchstart:active mousedown",this),ki(window,"resize",this),this.model=new ka({mode:this.options.defaultMode,macros:this.options.macros,removeExtraneousParentheses:this.options.removeExtraneousParentheses},{onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError},{announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)},this),this.undoManager=new La(this.model),ua(this.model,a,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),this.undoManager.startRecording(),this.undoManager.snapshot(this.options),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(hi().locale)||ui(this.options.locale),this.keybindings=xi(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),ea(this)}$setConfig(e){this.setOptions(e)}setOptions(e){this.options=Ua(this.options,e),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(hi().locale)||ui(this.options.locale),this.keybindings=xi(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),this.options.readOnly||this.onBlur();const t=this.model.root.toLatex();ua(this.model,t,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),ea(this)}getConfig(e){return ja(this.options,e)}getOptions(e){return ja(this.options,e)}getOption(e){return ja(this.options,e)}handleEvent(e){switch(e.type){case"focus":this.eventHandlingInProgress||(this.eventHandlingInProgress="focus",this.onFocus(),this.eventHandlingInProgress="");break;case"blur":this.eventHandlingInProgress||(this.eventHandlingInProgress="blur",this.onBlur(),this.eventHandlingInProgress="");break;case"touchstart":case"mousedown":case"pointerdown":!function(e,t){const i=e;let a,o=!1,r=!1,s=!1;if(1!==t.buttons&&0!==t.buttons)return;let n=!1,l=!1;const c=t.touches?t.touches[0].clientX:t.clientX,d=t.touches?t.touches[0].clientY:t.clientY,m=Date.now(),p=setInterval(()=>{n?i.field.scroll({top:0,left:i.field.scrollLeft-16}):l&&i.field.scroll({top:0,left:i.field.scrollLeft+16})},32);function u(e){window.PointerEvent?(_i(i.field,"pointermove",h),_i(i.field,"pointerup pointercancel",u),i.field.releasePointerCapture(e.pointerId)):(_i(i.field,"touchmove",h),_i(i.field,"touchcancel touchend",u),_i(window,"mousemove",h),_i(window,"mouseup blur",u)),o=!1,clearInterval(p),i.element.querySelectorAll(".ML__scroller").forEach(e=>e.parentNode.removeChild(e)),e.preventDefault(),e.stopPropagation()}function h(t){const o=t.touches?t.touches[0].clientX:t.clientX,s=t.touches?t.touches[0].clientY:t.clientY,p="touch"===t.pointerType?20:5;if(Date.now()u.right,n=o=f.left&&c<=f.right&&d>=f.top&&d<=f.bottom){e.hasFocus()||(s=!0,e.textarea.focus&&e.textarea.focus()),e.resetKeystrokeBuffer(),e.smartModeSuppressed=!1;const n=e.field.querySelector(".ML__mathlive").getBoundingClientRect();if(a=c>n.right?[{relation:"body",offset:e.model.root.body.length-1}]:ro(e,c,d,{bias:0}),a){let n=document.createElement("div");n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.left-200+"px",n=document.createElement("div"),n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.right+"px",t.shiftKey?(ai(e.model,e.model.path,a),a=pt(e.model.path),a[a.length-1].offset-=1):Et(e.model,a,0),s=!0,e.style={},3===t.detail||oo>2?(u(t),3!==t.detail&&3!==oo||Yt(e.model)):o||(o=!0,window.PointerEvent?(ki(i.field,"pointermove",h),ki(i.field,"pointerup pointercancel",u),i.field.setPointerCapture(t.pointerId)):(ki(window,"blur",u),t.touches?(ki(t.target,"touchmove",h),ki(t.target,"touchcancel touchend",u)):(ki(window,"mousemove",h),ki(window,"mouseup",u))),2!==t.detail&&2!==oo||(r=!0,Zt(e.model)))}}else ao=null;s&&ea(e),t.preventDefault()}(this,e);break;case"resize":this.resizeTimer&&window.cancelAnimationFrame(this.resizeTimer),this.resizeTimer=window.requestAnimationFrame(()=>zi(this)&&this._onResize());break;case"cut":t=this,setTimeout(function(){t.$clearSelection(),ea(t)}.bind(t),0);break;case"copy":!function(e,t){Jt(e.model)?(t.clipboardData.setData("text/plain","$$"+e.getValue("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.getValue("json")),t.clipboardData.setData("application/xml",e.getValue("mathML"))):(t.clipboardData.setData("text/plain","$$"+e.$selectedText("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.$selectedText("json")),t.clipboardData.setData("application/xml",e.$selectedText("mathML"))),t.preventDefault()}(this,e);break;case"paste":io(this)}var t}$revertToOriginalContent(){this.dispose(),this.element.innerHTML=this.options.createHTML(this.originalContent)}dispose(){this.element.innerHTML="$$"+this.getValue()+"$$",delete this.element.mathfield,delete this.accessibleNode,delete this.ariaLiveText,delete this.field,_i(this.textarea,"cut",this),_i(this.textarea,"copy",this),_i(this.textarea,"paste",this),this.textarea.remove(),delete this.textarea,this.virtualKeyboardToggle.remove(),delete this.virtualKeyboardToggle,Mi(this.popover),delete this.popover,Mi(this.keystrokeCaption),delete this.keystrokeCaption,Mi(this.virtualKeyboard),delete this.virtualKeyboard,Mi(document.getElementById("mathlive-alternate-keys-panel")),_i(this.element,"pointerdown",this),_i(this.element,"touchstart:active mousedown",this),_i(this.element,"focus",this),_i(this.element,"blur",this),_i(window,"resize",this),delete this.element,this.stylesheets.forEach(e=>e.release())}resetKeystrokeBuffer(e){(e=null!=e?e:{defer:!1}).defer?this.options.inlineShortcutTimeout&&(this.keystrokeBufferResetTimer=setTimeout(()=>{this.resetKeystrokeBuffer()},this.options.inlineShortcutTimeout)):(this.keystrokeBuffer="",this.keystrokeBufferStates=[],clearTimeout(this.keystrokeBufferResetTimer))}_onSelectionDidChange(){!function(e){const t=Ft(e);if(t){const i=e.siblings(),a=e.anchorOffset()+1;for(let e=t.start;e=0;e--)"command"===i[e].type?i.splice(e,1):t(i[e]);else if(t(i.body),t(i.superscript),t(i.subscript),t(i.underscript),t(i.overscript),t(i.numer),t(i.denom),t(i.index),i.array)for(let e=gt(i.array);e>=0;e--)t(ft(i.array,e))}(t.root.body),t.suppressChangeNotifications=i,Tt(t)}(this.model))}qi(this,{deferred:!0}),"function"==typeof this.options.onSelectionDidChange&&this.options.onSelectionDidChange(this)}onFocus(){this.options.readOnly||this.blurred&&(this.blurred=!1,this.textarea.focus&&this.textarea.focus(),"onfocus"===this.options.virtualKeyboardMode&&xo(this),qi(this),this.options.onFocus&&this.options.onFocus(this),this.valueOnFocus=this.getValue(),ea(this))}onBlur(){this.blurred||(this.blurred=!0,this.ariaLiveText.textContent="",/onfocus|manual/.test(this.options.virtualKeyboardMode)&&ko(this),Ka(this,{discard:!0}),ea(this),"function"==typeof this.options.onBlur&&this.options.onBlur(this),"function"==typeof this.options.onCommit&&this.getValue()!==this.valueOnFocus&&this.options.onCommit(this))}_onResize(){this.element.classList.remove("ML__isNarrowWidth","ML__isWideWidth","ML__isExtendedWidth"),window.innerWidth>=1024?this.element.classList.add("ML__isExtendedWidth"):window.innerWidth>=768?this.element.classList.add("ML__isWideWidth"):this.element.classList.add("ML__isNarrowWidth"),qi(this)}$perform(e){return this.executeCommand(e)}executeCommand(t){return function(t,i){var a;if(!i)return!1;let o,r=[],s=!1,n=!1;if(e(i)?(o=i[0],r=i.slice(1)):o=i,o=o.replace(/-\w/g,e=>e[1].toUpperCase()),"model"===(null===(a=ia[o])||void 0===a?void 0:a.target)){if(/^(delete|transpose|add)/.test(o)&&"deletePreviousChar"!==o&&t.resetKeystrokeBuffer(),/^(delete|transpose|add)/.test(o)&&"command"!==t.mode&&(t.popUndoStack(),t.snapshot()),ia[o].fn(t.model,...r),/^(delete|transpose|add)/.test(o)&&"command"!==t.mode&&t.snapshot(),/^(delete)/.test(o)&&"command"===t.mode){const e=ie(Ki(t.model));0===e.length?Ti(t):$i(t,e[0].match,e.length>1)}n=!0,s=!0}else{if(!ia[o])throw Error('Unknown command "'+o+'"');n=ia[o].fn(t,...r),s=!0}return Jt(t.model)&&!/^(transpose|paste|complete|((moveToNextChar|moveToPreviousChar|extend).*))_$/.test(o)||(t.resetKeystrokeBuffer(),t.style={}),n&&ea(t),s}(this,t)}atomToString(e,t){let i="";if("latex"===(t=t||"latex")||"latex-expanded"===t)i=e.toLatex("latex-expanded"===t);else if("mathML"===t)i=Ji(e,this.options);else if("spoken"===t)i=Fa(e,this.options);else if("spoken-text"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="",i=Fa(e,this.options),this.options.textToSpeechMarkup=t}else if("spoken-ssml"===t||"spoken-ssml-withHighlighting"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="ssml",i=Fa(e,this.options),this.options.textToSpeechMarkup=t}else if("json"===t){const t=nr(e);i=JSON.stringify(t)}else if("json-2"===t){const t=nr(e);i=JSON.stringify(t,null,2)}else"ASCIIMath"===t&&(i=$a(e));return i}get lastPosition(){return this.model.lastPosition}get selection(){return this.model.selection}set selection(e){this.model.selection=e}$text(e){return this.atomToString(this.model.root,e)}getValue(e,t,i){if(void 0===e)return this.atomToString(this.model.root,"latex");let a,o;if("string"==typeof e)return a=e,this.atomToString(this.model.root,a);"number"==typeof e&&"number"==typeof t?(o=[{start:e,end:t}],a=null!=i?i:"latex"):o=Array.isArray(e)?e:[e];const r=new ya(this.model.root);return o.map(e=>{let t="";if((e=lt(r,e,{accessibleAtomsOnly:!0})).start>=0&&!e.collapsed){const i=r.at(e.start).depth;for(let a=e.start+1;a<=e.end;a++)r.at(a).depth===i&&(t+=this.atomToString(r.at(a).atom,"latex"))}return t}).join("")}setValue(e,t){e!==this.getValue()&&(t=null!=t?t:{mode:"math"},ua(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),ea(this))}$selectedText(e){const t=Gt(this.model);return t?this.atomToString(je("math",t),e):""}$selectionIsCollapsed(){return Jt(this.model)}$selectionDepth(){return this.model.path.length}$selectionAtStart(){return!1}$selectionAtEnd(){return!1}$latex(e,t){return"string"==typeof e?(e!==this.model.root.toLatex()&&(t=null!=t?t:{mode:"math"},ua(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),ea(this)),e):this.model.root.toLatex()}$el(){return this.element}scrollIntoView(){var e;this.dirty&&ta(this);let t=null===(e=Si(this.field))||void 0===e?void 0:e.x;const i=this.field.getBoundingClientRect();if(void 0===t){const e=Li(this.field);null!==e&&(t=e.right+i.left-this.field.scrollLeft)}if(void 0!==t){const e=t-window.scrollX;ei.right&&this.field.scroll({top:0,left:e-i.right+this.field.scrollLeft+20,behavior:"smooth"})}}$insert(e,t){return this.insert(e,t)}insert(e,t){if("string"==typeof e&&e.length>0){if((t=null!=t?t:{mode:"math"}).focus&&this.focus(),t.feedback&&(this.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),this.keypressSound&&(this.keypressSound.load(),this.keypressSound.play())),"\\\\"===e)na(this.model);else if("&"===e)la(this.model);else{const i=this.style;ua(this.model,e,{mode:this.mode,style:Bt(this.model),...t}),t.resetStyle&&(this.style=i)}return this.undoManager.snapshot(this.options),ea(this),!0}return!1}switchMode(e,t="",i=""){this.resetKeystrokeBuffer(),this.smartModeSuppressed=/text|math/.test(this.mode)&&/text|math/.test(e),t&&this.insert(t,{format:"latex",mode:{math:"text",text:"math"}[e]}),Ei(this.model,!1),"command"===e?(st(this.model),Ti(this),this.suggestionIndex=0,this.virtualKeyboardVisible&&vo(this,"lower-command"),ua(this.model,"",{mode:"math"})):this.mode=e,i&&this.insert(i,{format:"latex",mode:e}),"function"==typeof this.options.onModeChange&&this.options.onModeChange(this,this.mode),ea(this)}$hasFocus(){return this.hasFocus()}hasFocus(){return document.hasFocus()&&function e(t=document){var i,a;return(null===(a=null===(i=t.activeElement)||void 0===i?void 0:i.shadowRoot)||void 0===a?void 0:a.activeElement)?e(t.activeElement.shadowRoot):t.activeElement}(document)===this.textarea}focus(){this.hasFocus()||("function"==typeof this.textarea.focus&&this.textarea.focus(),this.model.announce("line"))}blur(){this.hasFocus()&&"function"==typeof this.textarea.blur&&this.textarea.blur()}$focus(){return this.focus()}$blur(){return this.blur()}$select(){Yt(this.model)}select(){Yt(this.model)}$clearSelection(){da(this.model)}applyStyle(e){ma(this.model,e)}$applyStyle(e){ma(this.model,e)}$keystroke(e,t){return Ja(this,e,t)}$typedText(e){Qa(this,e)}getCaretPosition(){const e=Si(this.field);return e?{x:e.x,y:e.y}:null}setCaretPosition(e,t){const i=this.model.clone(),a=ro(this,e,t,{bias:0}),o=Et(this.model,a,0);return this.model.announce("move",i),ea(this),o}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(){this.undoManager.snapshot({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}snapshotAndCoalesce(){this.undoManager.snapshotAndCoalesce({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}getUndoRecord(){return this.undoManager.save()}restoreToUndoRecord(e){this.undoManager.restore(e,{...this.options,suppressChangeNotifications:!0})}undo(){return this.undoManager.undo({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}redo(){return this.undoManager.redo({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}}function ur(e,t,i){let a=i,o=0;const r=e.length;for(;a0&&o.push({type:"text",data:s.slice(0,c)}),l=!1);let d=!1;for(;!d;){if(l){if(n=s.indexOf(t,c),-1===n){d=!0;break}c!==n&&o.push({type:"text",data:s.slice(c,n)}),c=n}else{if(n=ur(i,s,c+t.length),-1===n){d=!0;break}o.push({type:"math",data:s.slice(c+t.length,n),rawData:s.slice(c,n+i.length),mathstyle:a}),c=n+i.length}l=!l}c";i.innerHTML=t.createHTML?t.createHTML(a):a}catch(t){i.textContent=e}return i.className="ML__sr-only",i}(e,i)),/\bspeakable-text\b/i.test(i.renderAccessibleContent)&&i.renderToSpeakableText){const a=document.createElement("span"),o=i.renderToSpeakableText(e,i);a.innerHTML=i.createHTML?i.createHTML(o):o,a.className="ML__sr-only",t.appendChild(a)}return t.appendChild(o),t}return o}function yr(e,t){let i=null;if(t.TeX.processEnvironments&&/^\s*\\begin/.test(e))i=document.createDocumentFragment(),i.appendChild(gr(e,void 0,t,!0));else{if(!e.trim())return null;const a=fr(e,t.TeX.delimiters);if(1===a.length&&"text"===a[0].type)return null;i=document.createDocumentFragment();for(let e=0;e0?vr(e[t].children,i):e[t];if("string"==typeof t){for(let o=0;o0?vr(e[o].children,i):e[o];if(a=vr(e[o].children,t),a)return a}return a}return null}function xr(e,t){var i;const a=vr(e,t);return a?null!==(i=a.classes)&&void 0!==i?i:"":null}function kr(e,t){let i="";return e[t]&&(i+=''+t+"=",i+='',i+=e[t],i+='" '),i}var _r,wr={mathlistToMarkup:function e(t,i=""){if(!t)return"";let a="";if(Array.isArray(t))for(let o=0;o"),"string"==typeof t.body&&t.body.length>0&&(a+=' ',a+=t.body,(t.body.charCodeAt(0)<32||t.body.charCodeAt(0)>127)&&(a+=" U+"+("000000"+t.body.charCodeAt(0).toString(16)).substr(-6)),a+=" "),"mathrm"===t.fontFamily?(a+='',a+=kr(t,"fontFamily"),a+=""):a+=kr(t,"fontFamily"),a+=kr(t,"hasBarLine"),a+=kr(t,"leftDelim"),a+=kr(t,"rightDelim"),a+=kr(t,"continuousFraction"),a+=kr(t,"limits"),a+=kr(t,"symbol"),a+=function(e,t){let i="";return e[t]&&(i+='framecolor=',i+='',i+='',i+=e[t],i+=""),i}(t,"framecolor"),a+=kr(t,"mathstyle"),a+=kr(t,"size"),a+=kr(t,"cls"),a+=kr(t,"delim"),a+=kr(t,"shift"),a+=kr(t,"width"),a+=kr(t,"height"),a+=kr(t,"position"),a+=e(t.overscript,i+"↑"),a+=e(t.underscript,i+"↓"),a+=e(t.superscript,i+"↑"),a+=e(t.subscript,i+"↓"),a+=e(t.body,i+"▶"),a+=e(t.numer,i+"▲"),a+=e(t.denom,i+"▼"),t.array)for(let o=0;o"+i+"⌗ row "+(o+1)+"/"+t.array.length;for(let r=0;r"),t.body&&t.body.length>0&&(a+=''+t.body+""),t.classes&&t.classes.length>0&&(a+=' '+t.classes+""),t.isTight&&(a+='  tight '),t.caret&&(a+='  caret '),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=' '+e+":",a+=' '+t.style[e]+"; ");t.children&&(a+=t.children.map(t=>e(t,i+"▷")).join("; "))}return a},spanToString:function e(t,i=""){let a="";if(Array.isArray(t))if(0===t.length)a+="[]\n";else{a+="[\n";for(let o=0;o0&&(a+=i+'body:"'+t.body+'",\n'),t.classes&&t.classes.length>0&&(a+=i+'classes:"'+t.classes+'",\n'),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=i+e+':"',a+=t.style[e]+'",\n');t.children&&t.children.length>0&&(a+=i+"children:"+t.children.map(t=>e(t,i)).join("; ")),a+=i+"}"}return a},hasClass:function(e,t,i){const a=xr(e,t);if(!a)return!1;const o=a.split(" ");for(let e=0;e{if(e)return;if(!t||!t.AudioStream)return;const i=new TextDecoder("utf-8").decode(new Uint8Array(t.AudioStream));window.mathlive.readAloudMarks=i.split("\n").map(e=>e?JSON.parse(e):{}),window.mathlive.readAloudTokens=[];for(const e of window.mathlive.readAloudMarks)e.value&&window.mathlive.readAloudTokens.push(e.value);window.mathlive.readAloudCurrentMark="",r.OutputFormat="mp3",r.SpeechMarkTypes=[],o.synthesizeSpeech(r,(function(e,t){if(e)return;if(!t||!t.AudioStream)return;const i=new Uint8Array(t.AudioStream),a=new Blob([i.buffer],{type:"audio/mpeg"}),o=URL.createObjectURL(a);window.mathlive.readAloudAudio?window.mathlive.readAloudAudio.pause():(window.mathlive.readAloudAudio=new Audio,window.mathlive.readAloudAudio.addEventListener("ended",()=>{const e=window.mathlive.readAloudMathField;s&&s(e,"ended"),e?(ta(e),window.mathlive.readAloudElement=null,window.mathlive.readAloudMathField=null,window.mathlive.readAloudTokens=[],window.mathlive.readAloudMarks=[],window.mathlive.readAloudCurrentMark=""):function e(t){if(t.classList.remove("ML__highlight"),t.children)for(const i of t.children)e(i)}(window.mathlive.readAloudElement)}),window.mathlive.readAloudAudio.addEventListener("timeupdate",()=>{let e="";const t=1e3*window.mathlive.readAloudAudio.currentTime+100;for(const i of window.mathlive.readAloudMarks)i.time0&&Array.from(t.children).forEach(t=>{e(t,i)})):(t.classList.add("ML__highlight"),t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{e(t)}))}(window.mathlive.readAloudElement,window.mathlive.readAloudCurrentMark)))})),window.mathlive.readAloudAudio.src=o,s&&s(window.mathlive.readAloudMathField,"playing"),window.mathlive.readAloudAudio.play()}))})}function zr(e,t,i=3e3,a="$0"){t.forEach(t=>{K[t]&&(K[t].frequency=i,K[t].category=e,K[t].template=a.replace(/\$0/g,t)),N[t]&&(N[t]={...N[t],frequency:i,category:e,template:a.replace(/\$0/g,t)})})} +function e(e){return Array.isArray(e)}var t={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0],58:[0,.47534,0,0],59:[.12604,.47534,0,0],61:[-.13099,.36866,0,0],63:[0,.69141,0,0],65:[0,.69141,0,0],66:[0,.69141,0,0],67:[0,.69141,0,0],68:[0,.69141,0,0],69:[0,.69141,0,0],70:[.12604,.69141,0,0],71:[0,.69141,0,0],72:[.06302,.69141,0,0],73:[0,.69141,0,0],74:[.12604,.69141,0,0],75:[0,.69141,0,0],76:[0,.69141,0,0],77:[0,.69141,0,0],78:[0,.69141,0,0],79:[0,.69141,0,0],80:[.18906,.69141,0,0],81:[.03781,.69141,0,0],82:[0,.69141,0,0],83:[0,.69141,0,0],84:[0,.69141,0,0],85:[0,.69141,0,0],86:[0,.69141,0,0],87:[0,.69141,0,0],88:[0,.69141,0,0],89:[.18906,.69141,0,0],90:[.12604,.69141,0,0],91:[.24982,.74947,0,0],93:[.24982,.74947,0,0],94:[0,.69141,0,0],97:[0,.47534,0,0],98:[0,.69141,0,0],99:[0,.47534,0,0],100:[0,.62119,0,0],101:[0,.47534,0,0],102:[.18906,.69141,0,0],103:[.18906,.47534,0,0],104:[.18906,.69141,0,0],105:[0,.69141,0,0],106:[0,.69141,0,0],107:[0,.69141,0,0],108:[0,.69141,0,0],109:[0,.47534,0,0],110:[0,.47534,0,0],111:[0,.47534,0,0],112:[.18906,.52396,0,0],113:[.18906,.47534,0,0],114:[0,.47534,0,0],115:[0,.47534,0,0],116:[0,.62119,0,0],117:[0,.47534,0,0],118:[0,.52396,0,0],119:[0,.52396,0,0],120:[.18906,.47534,0,0],121:[.18906,.47534,0,0],122:[.18906,.47534,0,0],8216:[0,.69141,0,0],8217:[0,.69141,0,0],58112:[0,.62119,0,0],58113:[0,.62119,0,0],58114:[.18906,.69141,0,0],58115:[.18906,.69141,0,0],58116:[.18906,.47534,0,0],58117:[0,.69141,0,0],58118:[0,.62119,0,0],58119:[0,.47534,0,0]},"Main-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.13333,.63333,0,0],44:[.19444,.15556,0,0],45:[0,.44444,0,0],46:[0,.15556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.44444,0,0],59:[.19444,.44444,0,0],60:[.08556,.58556,0,0],61:[-.10889,.39111,0,0],62:[.08556,.58556,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,0,0],67:[0,.68611,0,0],68:[0,.68611,0,0],69:[0,.68611,0,0],70:[0,.68611,0,0],71:[0,.68611,0,0],72:[0,.68611,0,0],73:[0,.68611,0,0],74:[0,.68611,0,0],75:[0,.68611,0,0],76:[0,.68611,0,0],77:[0,.68611,0,0],78:[0,.68611,0,0],79:[0,.68611,0,0],80:[0,.68611,0,0],81:[.19444,.68611,0,0],82:[0,.68611,0,0],83:[0,.68611,0,0],84:[0,.68611,0,0],85:[0,.68611,0,0],86:[0,.68611,.01597,0],87:[0,.68611,.01597,0],88:[0,.68611,0,0],89:[0,.68611,.02875,0],90:[0,.68611,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.13444,.03194,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.10903,0],103:[.19444,.44444,.01597,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,0,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.01597,0],119:[0,.44444,.01597,0],120:[0,.44444,0,0],121:[.19444,.44444,.01597,0],122:[0,.44444,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],172:[0,.44444,0,0],176:[0,.69444,0,0],177:[.13333,.63333,0,0],184:[.17014,0,0,0],198:[0,.68611,0,0],215:[.13333,.63333,0,0],216:[.04861,.73472,0,0],223:[0,.69444,0,0],230:[0,.44444,0,0],247:[.13333,.63333,0,0],248:[.09722,.54167,0,0],305:[0,.44444,0,0],338:[0,.68611,0,0],339:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.59611,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.68611,0,0],916:[0,.68611,0,0],920:[0,.68611,0,0],923:[0,.68611,0,0],926:[0,.68611,0,0],928:[0,.68611,0,0],931:[0,.68611,0,0],933:[0,.68611,0,0],934:[0,.68611,0,0],936:[0,.68611,0,0],937:[0,.68611,0,0],8211:[0,.44444,.03194,0],8212:[0,.44444,.03194,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8242:[0,.55556,0,0],8407:[0,.72444,.15486,0],8463:[0,.69444,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,0],8472:[.19444,.44444,0,0],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.10889,.39111,0,0],8593:[.19444,.69444,0,0],8594:[-.10889,.39111,0,0],8595:[.19444,.69444,0,0],8596:[-.10889,.39111,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8636:[-.10889,.39111,0,0],8637:[-.10889,.39111,0,0],8640:[-.10889,.39111,0,0],8641:[-.10889,.39111,0,0],8656:[-.10889,.39111,0,0],8657:[.19444,.69444,0,0],8658:[-.10889,.39111,0,0],8659:[.19444,.69444,0,0],8660:[-.10889,.39111,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.06389,0],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68611,0,0],8712:[.08556,.58556,0,0],8715:[.08556,.58556,0,0],8722:[.13333,.63333,0,0],8723:[.13333,.63333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.02778,.47222,0,0],8728:[-.02639,.47361,0,0],8729:[-.02639,.47361,0,0],8730:[.18,.82,0,0],8733:[0,.44444,0,0],8734:[0,.44444,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.12778,0],8764:[-.10889,.39111,0,0],8768:[.19444,.69444,0,0],8771:[.00222,.50222,0,0],8776:[.02444,.52444,0,0],8781:[.00222,.50222,0,0],8801:[.00222,.50222,0,0],8804:[.19667,.69667,0,0],8805:[.19667,.69667,0,0],8810:[.08556,.58556,0,0],8811:[.08556,.58556,0,0],8826:[.08556,.58556,0,0],8827:[.08556,.58556,0,0],8834:[.08556,.58556,0,0],8835:[.08556,.58556,0,0],8838:[.19667,.69667,0,0],8839:[.19667,.69667,0,0],8846:[0,.55556,0,0],8849:[.19667,.69667,0,0],8850:[.19667,.69667,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.13333,.63333,0,0],8854:[.13333,.63333,0,0],8855:[.13333,.63333,0,0],8856:[.13333,.63333,0,0],8857:[.13333,.63333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8900:[-.02639,.47361,0,0],8901:[-.02639,.47361,0,0],8902:[-.02778,.47222,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.13889,.36111,0,0],8995:[-.13889,.36111,0,0],9651:[.19444,.69444,0,0],9657:[-.02778,.47222,0,0],9661:[.19444,.69444,0,0],9667:[-.02778,.47222,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10815:[0,.68611,0,0],10927:[.19667,.69667,0,0],10928:[.19667,.69667,0,0],57376:[.19444,.69444,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0],34:[0,.69444,.07939,0],35:[.19444,.69444,.06833,0],37:[.05556,.75,.12861,0],38:[0,.69444,.08528,0],39:[0,.69444,.12945,0],40:[.25,.75,.15806,0],41:[.25,.75,.03306,0],42:[0,.75,.14333,0],43:[.10333,.60333,.03306,0],44:[.19444,.14722,0,0],45:[0,.44444,.02611,0],46:[0,.14722,0,0],47:[.25,.75,.15806,0],48:[0,.64444,.13167,0],49:[0,.64444,.13167,0],50:[0,.64444,.13167,0],51:[0,.64444,.13167,0],52:[.19444,.64444,.13167,0],53:[0,.64444,.13167,0],54:[0,.64444,.13167,0],55:[.19444,.64444,.13167,0],56:[0,.64444,.13167,0],57:[0,.64444,.13167,0],58:[0,.44444,.06695,0],59:[.19444,.44444,.06695,0],61:[-.10889,.39111,.06833,0],63:[0,.69444,.11472,0],64:[0,.69444,.09208,0],65:[0,.68611,0,0],66:[0,.68611,.0992,0],67:[0,.68611,.14208,0],68:[0,.68611,.09062,0],69:[0,.68611,.11431,0],70:[0,.68611,.12903,0],71:[0,.68611,.07347,0],72:[0,.68611,.17208,0],73:[0,.68611,.15681,0],74:[0,.68611,.145,0],75:[0,.68611,.14208,0],76:[0,.68611,0,0],77:[0,.68611,.17208,0],78:[0,.68611,.17208,0],79:[0,.68611,.09062,0],80:[0,.68611,.0992,0],81:[.19444,.68611,.09062,0],82:[0,.68611,.02559,0],83:[0,.68611,.11264,0],84:[0,.68611,.12903,0],85:[0,.68611,.17208,0],86:[0,.68611,.18625,0],87:[0,.68611,.18625,0],88:[0,.68611,.15681,0],89:[0,.68611,.19803,0],90:[0,.68611,.14208,0],91:[.25,.75,.1875,0],93:[.25,.75,.09972,0],94:[0,.69444,.06709,0],95:[.31,.13444,.09811,0],97:[0,.44444,.09426,0],98:[0,.69444,.07861,0],99:[0,.44444,.05222,0],100:[0,.69444,.10861,0],101:[0,.44444,.085,0],102:[.19444,.69444,.21778,0],103:[.19444,.44444,.105,0],104:[0,.69444,.09426,0],105:[0,.69326,.11387,0],106:[.19444,.69326,.1672,0],107:[0,.69444,.11111,0],108:[0,.69444,.10861,0],109:[0,.44444,.09426,0],110:[0,.44444,.09426,0],111:[0,.44444,.07861,0],112:[.19444,.44444,.07861,0],113:[.19444,.44444,.105,0],114:[0,.44444,.11111,0],115:[0,.44444,.08167,0],116:[0,.63492,.09639,0],117:[0,.44444,.09426,0],118:[0,.44444,.11111,0],119:[0,.44444,.11111,0],120:[0,.44444,.12583,0],121:[.19444,.44444,.105,0],122:[0,.44444,.13889,0],126:[.35,.34444,.11472,0],163:[0,.69444,0,0],168:[0,.69444,.11473,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68611,.11431,0],216:[.04861,.73472,.09062,0],223:[.19444,.69444,.09736,0],230:[0,.44444,.085,0],248:[.09722,.54167,.09458,0],305:[0,.44444,.09426,0],338:[0,.68611,.11431,0],339:[0,.44444,.085,0],567:[.19444,.44444,.04611,0],710:[0,.69444,.06709,0],711:[0,.63194,.08271,0],713:[0,.59444,.10444,0],714:[0,.69444,.08528,0],715:[0,.69444,0,0],728:[0,.69444,.10333,0],729:[0,.69444,.12945,0],730:[0,.69444,0,0],732:[0,.69444,.11472,0],733:[0,.69444,.11472,0],915:[0,.68611,.12903,0],916:[0,.68611,0,0],920:[0,.68611,.09062,0],923:[0,.68611,0,0],926:[0,.68611,.15092,0],928:[0,.68611,.17208,0],931:[0,.68611,.11431,0],933:[0,.68611,.10778,0],934:[0,.68611,.05632,0],936:[0,.68611,.10778,0],937:[0,.68611,.0992,0],8211:[0,.44444,.09811,0],8212:[0,.44444,.09811,0],8216:[0,.69444,.12945,0],8217:[0,.69444,.12945,0],8220:[0,.69444,.16772,0],8221:[0,.69444,.07939,0]},"Main-Italic":{33:[0,.69444,.12417,0],34:[0,.69444,.06961,0],35:[.19444,.69444,.06616,0],37:[.05556,.75,.13639,0],38:[0,.69444,.09694,0],39:[0,.69444,.12417,0],40:[.25,.75,.16194,0],41:[.25,.75,.03694,0],42:[0,.75,.14917,0],43:[.05667,.56167,.03694,0],44:[.19444,.10556,0,0],45:[0,.43056,.02826,0],46:[0,.10556,0,0],47:[.25,.75,.16194,0],48:[0,.64444,.13556,0],49:[0,.64444,.13556,0],50:[0,.64444,.13556,0],51:[0,.64444,.13556,0],52:[.19444,.64444,.13556,0],53:[0,.64444,.13556,0],54:[0,.64444,.13556,0],55:[.19444,.64444,.13556,0],56:[0,.64444,.13556,0],57:[0,.64444,.13556,0],58:[0,.43056,.0582,0],59:[.19444,.43056,.0582,0],61:[-.13313,.36687,.06616,0],63:[0,.69444,.1225,0],64:[0,.69444,.09597,0],65:[0,.68333,0,0],66:[0,.68333,.10257,0],67:[0,.68333,.14528,0],68:[0,.68333,.09403,0],69:[0,.68333,.12028,0],70:[0,.68333,.13305,0],71:[0,.68333,.08722,0],72:[0,.68333,.16389,0],73:[0,.68333,.15806,0],74:[0,.68333,.14028,0],75:[0,.68333,.14528,0],76:[0,.68333,0,0],77:[0,.68333,.16389,0],78:[0,.68333,.16389,0],79:[0,.68333,.09403,0],80:[0,.68333,.10257,0],81:[.19444,.68333,.09403,0],82:[0,.68333,.03868,0],83:[0,.68333,.11972,0],84:[0,.68333,.13305,0],85:[0,.68333,.16389,0],86:[0,.68333,.18361,0],87:[0,.68333,.18361,0],88:[0,.68333,.15806,0],89:[0,.68333,.19383,0],90:[0,.68333,.14528,0],91:[.25,.75,.1875,0],93:[.25,.75,.10528,0],94:[0,.69444,.06646,0],95:[.31,.12056,.09208,0],97:[0,.43056,.07671,0],98:[0,.69444,.06312,0],99:[0,.43056,.05653,0],100:[0,.69444,.10333,0],101:[0,.43056,.07514,0],102:[.19444,.69444,.21194,0],103:[.19444,.43056,.08847,0],104:[0,.69444,.07671,0],105:[0,.65536,.1019,0],106:[.19444,.65536,.14467,0],107:[0,.69444,.10764,0],108:[0,.69444,.10333,0],109:[0,.43056,.07671,0],110:[0,.43056,.07671,0],111:[0,.43056,.06312,0],112:[.19444,.43056,.06312,0],113:[.19444,.43056,.08847,0],114:[0,.43056,.10764,0],115:[0,.43056,.08208,0],116:[0,.61508,.09486,0],117:[0,.43056,.07671,0],118:[0,.43056,.10764,0],119:[0,.43056,.10764,0],120:[0,.43056,.12042,0],121:[.19444,.43056,.08847,0],122:[0,.43056,.12292,0],126:[.35,.31786,.11585,0],163:[0,.69444,0,0],168:[0,.66786,.10474,0],176:[0,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,.12028,0],216:[.04861,.73194,.09403,0],223:[.19444,.69444,.10514,0],230:[0,.43056,.07514,0],248:[.09722,.52778,.09194,0],305:[0,.43056,0,.02778],338:[0,.68333,.12028,0],339:[0,.43056,.07514,0],567:[.19444,.43056,0,.08334],710:[0,.69444,.06646,0],711:[0,.62847,.08295,0],713:[0,.56167,.10333,0],714:[0,.69444,.09694,0],715:[0,.69444,0,0],728:[0,.69444,.10806,0],729:[0,.66786,.11752,0],730:[0,.69444,0,0],732:[0,.66786,.11585,0],733:[0,.69444,.1225,0],915:[0,.68333,.13305,0],916:[0,.68333,0,0],920:[0,.68333,.09403,0],923:[0,.68333,0,0],926:[0,.68333,.15294,0],928:[0,.68333,.16389,0],931:[0,.68333,.12028,0],933:[0,.68333,.11111,0],934:[0,.68333,.05986,0],936:[0,.68333,.11111,0],937:[0,.68333,.10257,0],8211:[0,.43056,.09208,0],8212:[0,.43056,.09208,0],8216:[0,.69444,.12417,0],8217:[0,.69444,.12417,0],8220:[0,.69444,.1685,0],8221:[0,.69444,.06961,0],8463:[0,.68889,0,0]},"Main-Regular":{32:[0,0,0,0],33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.19444,.10556,0,0],45:[0,.43056,0,0],46:[0,.10556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.43056,0,0],59:[.19444,.43056,0,0],60:[.0391,.5391,0,0],61:[-.13313,.36687,0,0],62:[.0391,.5391,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68333,0,0],66:[0,.68333,0,0],67:[0,.68333,0,0],68:[0,.68333,0,0],69:[0,.68333,0,0],70:[0,.68333,0,0],71:[0,.68333,0,0],72:[0,.68333,0,0],73:[0,.68333,0,0],74:[0,.68333,0,0],75:[0,.68333,0,0],76:[0,.68333,0,0],77:[0,.68333,0,0],78:[0,.68333,0,0],79:[0,.68333,0,0],80:[0,.68333,0,0],81:[.19444,.68333,0,0],82:[0,.68333,0,0],83:[0,.68333,0,0],84:[0,.68333,0,0],85:[0,.68333,0,0],86:[0,.68333,.01389,0],87:[0,.68333,.01389,0],88:[0,.68333,0,0],89:[0,.68333,.025,0],90:[0,.68333,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.12056,.02778,0],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,0],100:[0,.69444,0,0],101:[0,.43056,0,0],102:[0,.69444,.07778,0],103:[.19444,.43056,.01389,0],104:[0,.69444,0,0],105:[0,.66786,0,0],106:[.19444,.66786,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.19444,.43056,0,0],113:[.19444,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.61508,0,0],117:[0,.43056,0,0],118:[0,.43056,.01389,0],119:[0,.43056,.01389,0],120:[0,.43056,0,0],121:[.19444,.43056,.01389,0],122:[0,.43056,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.31786,0,0],160:[0,0,0,0],167:[.19444,.69444,0,0],168:[0,.66786,0,0],172:[0,.43056,0,0],176:[0,.69444,0,0],177:[.08333,.58333,0,0],182:[.19444,.69444,0,0],184:[.17014,0,0,0],198:[0,.68333,0,0],215:[.08333,.58333,0,0],216:[.04861,.73194,0,0],223:[0,.69444,0,0],230:[0,.43056,0,0],247:[.08333,.58333,0,0],248:[.09722,.52778,0,0],305:[0,.43056,0,0],338:[0,.68333,0,0],339:[0,.43056,0,0],567:[.19444,.43056,0,0],710:[0,.69444,0,0],711:[0,.62847,0,0],713:[0,.56778,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.66786,0,0],730:[0,.69444,0,0],732:[0,.66786,0,0],733:[0,.69444,0,0],915:[0,.68333,0,0],916:[0,.68333,0,0],920:[0,.68333,0,0],923:[0,.68333,0,0],926:[0,.68333,0,0],928:[0,.68333,0,0],931:[0,.68333,0,0],933:[0,.68333,0,0],934:[0,.68333,0,0],936:[0,.68333,0,0],937:[0,.68333,0,0],8211:[0,.43056,.02778,0],8212:[0,.43056,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8230:[0,.12,0,0],8242:[0,.55556,0,0],8407:[0,.71444,.15382,0],8463:[0,.68889,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,.11111],8472:[.19444,.43056,0,.11111],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.13313,.36687,0,0],8593:[.19444,.69444,0,0],8594:[-.13313,.36687,0,0],8595:[.19444,.69444,0,0],8596:[-.13313,.36687,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8614:[.011,.511,0,0],8617:[.011,.511,0,0],8618:[.011,.511,0,0],8636:[-.13313,.36687,0,0],8637:[-.13313,.36687,0,0],8640:[-.13313,.36687,0,0],8641:[-.13313,.36687,0,0],8652:[.011,.671,0,0],8656:[-.13313,.36687,0,0],8657:[.19444,.69444,0,0],8658:[-.13313,.36687,0,0],8659:[.19444,.69444,0,0],8660:[-.13313,.36687,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.05556,.08334],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68333,0,0],8712:[.0391,.5391,0,0],8715:[.0391,.5391,0,0],8722:[.08333,.58333,0,0],8723:[.08333,.58333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.03472,.46528,0,0],8728:[-.05555,.44445,0,0],8729:[-.05555,.44445,0,0],8730:[.2,.8,0,0],8733:[0,.43056,0,0],8734:[0,.43056,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.11111,0],8764:[-.13313,.36687,0,0],8768:[.19444,.69444,0,0],8771:[-.03625,.46375,0,0],8773:[-.022,.589,0,0],8776:[-.01688,.48312,0,0],8781:[-.03625,.46375,0,0],8784:[-.133,.67,0,0],8801:[-.03625,.46375,0,0],8804:[.13597,.63597,0,0],8805:[.13597,.63597,0,0],8810:[.0391,.5391,0,0],8811:[.0391,.5391,0,0],8826:[.0391,.5391,0,0],8827:[.0391,.5391,0,0],8834:[.0391,.5391,0,0],8835:[.0391,.5391,0,0],8838:[.13597,.63597,0,0],8839:[.13597,.63597,0,0],8846:[0,.55556,0,0],8849:[.13597,.63597,0,0],8850:[.13597,.63597,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.08333,.58333,0,0],8854:[.08333,.58333,0,0],8855:[.08333,.58333,0,0],8856:[.08333,.58333,0,0],8857:[.08333,.58333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8872:[.249,.75,0,0],8900:[-.05555,.44445,0,0],8901:[-.05555,.44445,0,0],8902:[-.03472,.46528,0,0],8904:[.005,.505,0,0],8942:[.03,.9,0,0],8943:[-.19,.31,0,0],8945:[-.1,.82,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.14236,.35764,0,0],8995:[-.14236,.35764,0,0],9136:[.244,.744,0,0],9137:[.244,.744,0,0],9651:[.19444,.69444,0,0],9657:[-.03472,.46528,0,0],9661:[.19444,.69444,0,0],9667:[-.03472,.46528,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10222:[.244,.744,0,0],10223:[.244,.744,0,0],10229:[.011,.511,0,0],10230:[.011,.511,0,0],10231:[.011,.511,0,0],10232:[.024,.525,0,0],10233:[.024,.525,0,0],10234:[.024,.525,0,0],10236:[.011,.511,0,0],10815:[0,.68333,0,0],10927:[.13597,.63597,0,0],10928:[.13597,.63597,0,0],57376:[.19444,.69444,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0],66:[0,.68611,.04835,0],67:[0,.68611,.06979,0],68:[0,.68611,.03194,0],69:[0,.68611,.05451,0],70:[0,.68611,.15972,0],71:[0,.68611,0,0],72:[0,.68611,.08229,0],73:[0,.68611,.07778,0],74:[0,.68611,.10069,0],75:[0,.68611,.06979,0],76:[0,.68611,0,0],77:[0,.68611,.11424,0],78:[0,.68611,.11424,0],79:[0,.68611,.03194,0],80:[0,.68611,.15972,0],81:[.19444,.68611,0,0],82:[0,.68611,.00421,0],83:[0,.68611,.05382,0],84:[0,.68611,.15972,0],85:[0,.68611,.11424,0],86:[0,.68611,.25555,0],87:[0,.68611,.15972,0],88:[0,.68611,.07778,0],89:[0,.68611,.25555,0],90:[0,.68611,.06979,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[.19444,.69444,.11042,0],103:[.19444,.44444,.03704,0],104:[0,.69444,0,0],105:[0,.69326,0,0],106:[.19444,.69326,.0622,0],107:[0,.69444,.01852,0],108:[0,.69444,.0088,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,.03704,0],114:[0,.44444,.03194,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.03704,0],119:[0,.44444,.02778,0],120:[0,.44444,0,0],121:[.19444,.44444,.03704,0],122:[0,.44444,.04213,0],915:[0,.68611,.15972,0],916:[0,.68611,0,0],920:[0,.68611,.03194,0],923:[0,.68611,0,0],926:[0,.68611,.07458,0],928:[0,.68611,.08229,0],931:[0,.68611,.05451,0],933:[0,.68611,.15972,0],934:[0,.68611,0,0],936:[0,.68611,.11653,0],937:[0,.68611,.04835,0],945:[0,.44444,0,0],946:[.19444,.69444,.03403,0],947:[.19444,.44444,.06389,0],948:[0,.69444,.03819,0],949:[0,.44444,0,0],950:[.19444,.69444,.06215,0],951:[.19444,.44444,.03704,0],952:[0,.69444,.03194,0],953:[0,.44444,0,0],954:[0,.44444,0,0],955:[0,.69444,0,0],956:[.19444,.44444,0,0],957:[0,.44444,.06898,0],958:[.19444,.69444,.03021,0],959:[0,.44444,0,0],960:[0,.44444,.03704,0],961:[.19444,.44444,0,0],962:[.09722,.44444,.07917,0],963:[0,.44444,.03704,0],964:[0,.44444,.13472,0],965:[0,.44444,.03704,0],966:[.19444,.44444,0,0],967:[.19444,.44444,0,0],968:[.19444,.69444,.03704,0],969:[0,.44444,.03704,0],977:[0,.69444,0,0],981:[.19444,.69444,0,0],982:[0,.44444,.03194,0],1009:[.19444,.44444,0,0],1013:[0,.44444,0,0]},"Math-Italic":{65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"SansSerif-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.11667,.61667,0,0],44:[.10556,.13056,0,0],45:[0,.45833,0,0],46:[0,.13056,0,0],47:[.25,.75,0,0],48:[0,.69444,0,0],49:[0,.69444,0,0],50:[0,.69444,0,0],51:[0,.69444,0,0],52:[0,.69444,0,0],53:[0,.69444,0,0],54:[0,.69444,0,0],55:[0,.69444,0,0],56:[0,.69444,0,0],57:[0,.69444,0,0],58:[0,.45833,0,0],59:[.10556,.45833,0,0],61:[-.09375,.40625,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.10556,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01528,0],87:[0,.69444,.01528,0],88:[0,.69444,0,0],89:[0,.69444,.0275,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.10833,.03056,0],97:[0,.45833,0,0],98:[0,.69444,0,0],99:[0,.45833,0,0],100:[0,.69444,0,0],101:[0,.45833,0,0],102:[0,.69444,.07639,0],103:[.19444,.45833,.01528,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.45833,0,0],110:[0,.45833,0,0],111:[0,.45833,0,0],112:[.19444,.45833,0,0],113:[.19444,.45833,0,0],114:[0,.45833,.01528,0],115:[0,.45833,0,0],116:[0,.58929,0,0],117:[0,.45833,0,0],118:[0,.45833,.01528,0],119:[0,.45833,.01528,0],120:[0,.45833,0,0],121:[.19444,.45833,.01528,0],122:[0,.45833,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],176:[0,.69444,0,0],180:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.45833,0,0],567:[.19444,.45833,0,0],710:[0,.69444,0,0],711:[0,.63542,0,0],713:[0,.63778,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.45833,.03056,0],8212:[0,.45833,.03056,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"SansSerif-Italic":{33:[0,.69444,.05733,0],34:[0,.69444,.00316,0],35:[.19444,.69444,.05087,0],36:[.05556,.75,.11156,0],37:[.05556,.75,.03126,0],38:[0,.69444,.03058,0],39:[0,.69444,.07816,0],40:[.25,.75,.13164,0],41:[.25,.75,.02536,0],42:[0,.75,.11775,0],43:[.08333,.58333,.02536,0],44:[.125,.08333,0,0],45:[0,.44444,.01946,0],46:[0,.08333,0,0],47:[.25,.75,.13164,0],48:[0,.65556,.11156,0],49:[0,.65556,.11156,0],50:[0,.65556,.11156,0],51:[0,.65556,.11156,0],52:[0,.65556,.11156,0],53:[0,.65556,.11156,0],54:[0,.65556,.11156,0],55:[0,.65556,.11156,0],56:[0,.65556,.11156,0],57:[0,.65556,.11156,0],58:[0,.44444,.02502,0],59:[.125,.44444,.02502,0],61:[-.13,.37,.05087,0],63:[0,.69444,.11809,0],64:[0,.69444,.07555,0],65:[0,.69444,0,0],66:[0,.69444,.08293,0],67:[0,.69444,.11983,0],68:[0,.69444,.07555,0],69:[0,.69444,.11983,0],70:[0,.69444,.13372,0],71:[0,.69444,.11983,0],72:[0,.69444,.08094,0],73:[0,.69444,.13372,0],74:[0,.69444,.08094,0],75:[0,.69444,.11983,0],76:[0,.69444,0,0],77:[0,.69444,.08094,0],78:[0,.69444,.08094,0],79:[0,.69444,.07555,0],80:[0,.69444,.08293,0],81:[.125,.69444,.07555,0],82:[0,.69444,.08293,0],83:[0,.69444,.09205,0],84:[0,.69444,.13372,0],85:[0,.69444,.08094,0],86:[0,.69444,.1615,0],87:[0,.69444,.1615,0],88:[0,.69444,.13372,0],89:[0,.69444,.17261,0],90:[0,.69444,.11983,0],91:[.25,.75,.15942,0],93:[.25,.75,.08719,0],94:[0,.69444,.0799,0],95:[.35,.09444,.08616,0],97:[0,.44444,.00981,0],98:[0,.69444,.03057,0],99:[0,.44444,.08336,0],100:[0,.69444,.09483,0],101:[0,.44444,.06778,0],102:[0,.69444,.21705,0],103:[.19444,.44444,.10836,0],104:[0,.69444,.01778,0],105:[0,.67937,.09718,0],106:[.19444,.67937,.09162,0],107:[0,.69444,.08336,0],108:[0,.69444,.09483,0],109:[0,.44444,.01778,0],110:[0,.44444,.01778,0],111:[0,.44444,.06613,0],112:[.19444,.44444,.0389,0],113:[.19444,.44444,.04169,0],114:[0,.44444,.10836,0],115:[0,.44444,.0778,0],116:[0,.57143,.07225,0],117:[0,.44444,.04169,0],118:[0,.44444,.10836,0],119:[0,.44444,.10836,0],120:[0,.44444,.09169,0],121:[.19444,.44444,.10836,0],122:[0,.44444,.08752,0],126:[.35,.32659,.08826,0],168:[0,.67937,.06385,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,.04169,0],567:[.19444,.44444,.04169,0],710:[0,.69444,.0799,0],711:[0,.63194,.08432,0],713:[0,.60889,.08776,0],714:[0,.69444,.09205,0],715:[0,.69444,0,0],728:[0,.69444,.09483,0],729:[0,.67937,.07774,0],730:[0,.69444,0,0],732:[0,.67659,.08826,0],733:[0,.69444,.09205,0],915:[0,.69444,.13372,0],916:[0,.69444,0,0],920:[0,.69444,.07555,0],923:[0,.69444,0,0],926:[0,.69444,.12816,0],928:[0,.69444,.08094,0],931:[0,.69444,.11983,0],933:[0,.69444,.09031,0],934:[0,.69444,.04603,0],936:[0,.69444,.09031,0],937:[0,.69444,.08293,0],8211:[0,.44444,.08616,0],8212:[0,.44444,.08616,0],8216:[0,.69444,.07816,0],8217:[0,.69444,.07816,0],8220:[0,.69444,.14205,0],8221:[0,.69444,.00316,0]},"SansSerif-Regular":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.125,.08333,0,0],45:[0,.44444,0,0],46:[0,.08333,0,0],47:[.25,.75,0,0],48:[0,.65556,0,0],49:[0,.65556,0,0],50:[0,.65556,0,0],51:[0,.65556,0,0],52:[0,.65556,0,0],53:[0,.65556,0,0],54:[0,.65556,0,0],55:[0,.65556,0,0],56:[0,.65556,0,0],57:[0,.65556,0,0],58:[0,.44444,0,0],59:[.125,.44444,0,0],61:[-.13,.37,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.125,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01389,0],87:[0,.69444,.01389,0],88:[0,.69444,0,0],89:[0,.69444,.025,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.09444,.02778,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.06944,0],103:[.19444,.44444,.01389,0],104:[0,.69444,0,0],105:[0,.67937,0,0],106:[.19444,.67937,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,.01389,0],115:[0,.44444,0,0],116:[0,.57143,0,0],117:[0,.44444,0,0],118:[0,.44444,.01389,0],119:[0,.44444,.01389,0],120:[0,.44444,0,0],121:[.19444,.44444,.01389,0],122:[0,.44444,0,0],126:[.35,.32659,0,0],168:[0,.67937,0,0],176:[0,.69444,0,0],184:[.17014,0,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.60889,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.67937,0,0],730:[0,.69444,0,0],732:[0,.67659,0,0],733:[0,.69444,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.44444,.02778,0],8212:[0,.44444,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"Script-Regular":{65:[0,.7,.22925,0],66:[0,.7,.04087,0],67:[0,.7,.1689,0],68:[0,.7,.09371,0],69:[0,.7,.18583,0],70:[0,.7,.13634,0],71:[0,.7,.17322,0],72:[0,.7,.29694,0],73:[0,.7,.19189,0],74:[.27778,.7,.19189,0],75:[0,.7,.31259,0],76:[0,.7,.19189,0],77:[0,.7,.15981,0],78:[0,.7,.3525,0],79:[0,.7,.08078,0],80:[0,.7,.08078,0],81:[0,.7,.03305,0],82:[0,.7,.06259,0],83:[0,.7,.19189,0],84:[0,.7,.29087,0],85:[0,.7,.25815,0],86:[0,.7,.27523,0],87:[0,.7,.27523,0],88:[0,.7,.26006,0],89:[0,.7,.2939,0],90:[0,.7,.24037,0]},"Size1-Regular":{40:[.35001,.85,0,0],41:[.35001,.85,0,0],47:[.35001,.85,0,0],91:[.35001,.85,0,0],92:[.35001,.85,0,0],93:[.35001,.85,0,0],123:[.35001,.85,0,0],125:[.35001,.85,0,0],710:[0,.72222,0,0],732:[0,.72222,0,0],770:[0,.72222,0,0],771:[0,.72222,0,0],8214:[-99e-5,.601,0,0],8593:[1e-5,.6,0,0],8595:[1e-5,.6,0,0],8657:[1e-5,.6,0,0],8659:[1e-5,.6,0,0],8719:[.25001,.75,0,0],8720:[.25001,.75,0,0],8721:[.25001,.75,0,0],8730:[.35001,.85,0,0],8739:[-.00599,.606,0,0],8741:[-.00599,.606,0,0],8747:[.30612,.805,.19445,0],8748:[.306,.805,.19445,0],8749:[.306,.805,.19445,0],8750:[.30612,.805,.19445,0],8896:[.25001,.75,0,0],8897:[.25001,.75,0,0],8898:[.25001,.75,0,0],8899:[.25001,.75,0,0],8968:[.35001,.85,0,0],8969:[.35001,.85,0,0],8970:[.35001,.85,0,0],8971:[.35001,.85,0,0],9168:[-99e-5,.601,0,0],10216:[.35001,.85,0,0],10217:[.35001,.85,0,0],10752:[.25001,.75,0,0],10753:[.25001,.75,0,0],10754:[.25001,.75,0,0],10756:[.25001,.75,0,0],10758:[.25001,.75,0,0]},"Size2-Regular":{40:[.65002,1.15,0,0],41:[.65002,1.15,0,0],47:[.65002,1.15,0,0],91:[.65002,1.15,0,0],92:[.65002,1.15,0,0],93:[.65002,1.15,0,0],123:[.65002,1.15,0,0],125:[.65002,1.15,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8719:[.55001,1.05,0,0],8720:[.55001,1.05,0,0],8721:[.55001,1.05,0,0],8730:[.65002,1.15,0,0],8747:[.86225,1.36,.44445,0],8748:[.862,1.36,.44445,0],8749:[.862,1.36,.44445,0],8750:[.86225,1.36,.44445,0],8896:[.55001,1.05,0,0],8897:[.55001,1.05,0,0],8898:[.55001,1.05,0,0],8899:[.55001,1.05,0,0],8968:[.65002,1.15,0,0],8969:[.65002,1.15,0,0],8970:[.65002,1.15,0,0],8971:[.65002,1.15,0,0],10216:[.65002,1.15,0,0],10217:[.65002,1.15,0,0],10752:[.55001,1.05,0,0],10753:[.55001,1.05,0,0],10754:[.55001,1.05,0,0],10756:[.55001,1.05,0,0],10758:[.55001,1.05,0,0]},"Size3-Regular":{40:[.95003,1.45,0,0],41:[.95003,1.45,0,0],47:[.95003,1.45,0,0],91:[.95003,1.45,0,0],92:[.95003,1.45,0,0],93:[.95003,1.45,0,0],123:[.95003,1.45,0,0],125:[.95003,1.45,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8730:[.95003,1.45,0,0],8968:[.95003,1.45,0,0],8969:[.95003,1.45,0,0],8970:[.95003,1.45,0,0],8971:[.95003,1.45,0,0],10216:[.95003,1.45,0,0],10217:[.95003,1.45,0,0]},"Size4-Regular":{40:[1.25003,1.75,0,0],41:[1.25003,1.75,0,0],47:[1.25003,1.75,0,0],91:[1.25003,1.75,0,0],92:[1.25003,1.75,0,0],93:[1.25003,1.75,0,0],123:[1.25003,1.75,0,0],125:[1.25003,1.75,0,0],710:[0,.825,0,0],732:[0,.825,0,0],770:[0,.825,0,0],771:[0,.825,0,0],8730:[1.25003,1.75,0,0],8968:[1.25003,1.75,0,0],8969:[1.25003,1.75,0,0],8970:[1.25003,1.75,0,0],8971:[1.25003,1.75,0,0],9115:[.64502,1.155,0,0],9116:[1e-5,.6,0,0],9117:[.64502,1.155,0,0],9118:[.64502,1.155,0,0],9119:[1e-5,.6,0,0],9120:[.64502,1.155,0,0],9121:[.64502,1.155,0,0],9122:[-99e-5,.601,0,0],9123:[.64502,1.155,0,0],9124:[.64502,1.155,0,0],9125:[-99e-5,.601,0,0],9126:[.64502,1.155,0,0],9127:[1e-5,.9,0,0],9128:[.65002,1.15,0,0],9129:[.90001,0,0,0],9130:[0,.3,0,0],9131:[1e-5,.9,0,0],9132:[.65002,1.15,0,0],9133:[.90001,0,0,0],9143:[.88502,.915,0,0],10216:[1.25003,1.75,0,0],10217:[1.25003,1.75,0,0],57344:[-.00499,.605,0,0],57345:[-.00499,.605,0,0],57680:[0,.12,0,0],57681:[0,.12,0,0],57682:[0,.12,0,0],57683:[0,.12,0,0]},"Typewriter-Regular":{32:[0,0,0,0],33:[0,.61111,0,0],34:[0,.61111,0,0],35:[0,.61111,0,0],36:[.08333,.69444,0,0],37:[.08333,.69444,0,0],38:[0,.61111,0,0],39:[0,.61111,0,0],40:[.08333,.69444,0,0],41:[.08333,.69444,0,0],42:[0,.52083,0,0],43:[-.08056,.53055,0,0],44:[.13889,.125,0,0],45:[-.08056,.53055,0,0],46:[0,.125,0,0],47:[.08333,.69444,0,0],48:[0,.61111,0,0],49:[0,.61111,0,0],50:[0,.61111,0,0],51:[0,.61111,0,0],52:[0,.61111,0,0],53:[0,.61111,0,0],54:[0,.61111,0,0],55:[0,.61111,0,0],56:[0,.61111,0,0],57:[0,.61111,0,0],58:[0,.43056,0,0],59:[.13889,.43056,0,0],60:[-.05556,.55556,0,0],61:[-.19549,.41562,0,0],62:[-.05556,.55556,0,0],63:[0,.61111,0,0],64:[0,.61111,0,0],65:[0,.61111,0,0],66:[0,.61111,0,0],67:[0,.61111,0,0],68:[0,.61111,0,0],69:[0,.61111,0,0],70:[0,.61111,0,0],71:[0,.61111,0,0],72:[0,.61111,0,0],73:[0,.61111,0,0],74:[0,.61111,0,0],75:[0,.61111,0,0],76:[0,.61111,0,0],77:[0,.61111,0,0],78:[0,.61111,0,0],79:[0,.61111,0,0],80:[0,.61111,0,0],81:[.13889,.61111,0,0],82:[0,.61111,0,0],83:[0,.61111,0,0],84:[0,.61111,0,0],85:[0,.61111,0,0],86:[0,.61111,0,0],87:[0,.61111,0,0],88:[0,.61111,0,0],89:[0,.61111,0,0],90:[0,.61111,0,0],91:[.08333,.69444,0,0],92:[.08333,.69444,0,0],93:[.08333,.69444,0,0],94:[0,.61111,0,0],95:[.09514,0,0,0],96:[0,.61111,0,0],97:[0,.43056,0,0],98:[0,.61111,0,0],99:[0,.43056,0,0],100:[0,.61111,0,0],101:[0,.43056,0,0],102:[0,.61111,0,0],103:[.22222,.43056,0,0],104:[0,.61111,0,0],105:[0,.61111,0,0],106:[.22222,.61111,0,0],107:[0,.61111,0,0],108:[0,.61111,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.22222,.43056,0,0],113:[.22222,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.55358,0,0],117:[0,.43056,0,0],118:[0,.43056,0,0],119:[0,.43056,0,0],120:[0,.43056,0,0],121:[.22222,.43056,0,0],122:[0,.43056,0,0],123:[.08333,.69444,0,0],124:[.08333,.69444,0,0],125:[.08333,.69444,0,0],126:[0,.61111,0,0],127:[0,.61111,0,0],160:[0,0,0,0],176:[0,.61111,0,0],184:[.19445,0,0,0],305:[0,.43056,0,0],567:[.22222,.43056,0,0],711:[0,.56597,0,0],713:[0,.56555,0,0],714:[0,.61111,0,0],715:[0,.61111,0,0],728:[0,.61111,0,0],730:[0,.61111,0,0],770:[0,.61111,0,0],771:[0,.61111,0,0],776:[0,.61111,0,0],915:[0,.61111,0,0],916:[0,.61111,0,0],920:[0,.61111,0,0],923:[0,.61111,0,0],926:[0,.61111,0,0],928:[0,.61111,0,0],931:[0,.61111,0,0],933:[0,.61111,0,0],934:[0,.61111,0,0],936:[0,.61111,0,0],937:[0,.61111,0,0],8216:[0,.61111,0,0],8217:[0,.61111,0,0],8242:[0,.61111,0,0],9251:[.11111,.21944,0,0]}};const i=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,a={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]},o={" ":" ","​":" ","Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"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 r(e,a){let r=e.charCodeAt(0);e[0]in o?r=o[e[0]].charCodeAt(0):i.test(e[0])&&(r=77);const s=t[a][r];return s?{defaultMetrics:!1,depth:s[0],height:s[1],italic:s[2],skew:s[3]}:11034===r?{defaultMetrics:!0,depth:0,height:1,italic:0,skew:0}:{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0}}function s(e,t,i=NaN){if("string"==typeof e){const i=e.match(/([-+]?[0-9.]*)\s*([a-zA-Z]+)/);i?(e=parseFloat(i[1]),t=i[2].toLowerCase()):e=parseFloat(e)}const a={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:10,bp:1.00375,dd:1238/1157,pc:12,in:72.27,mu:10/18}[t]||1;if(isFinite(i)){const t=Math.pow(10,i);return Math.round(e/10*a*t)/t}return e/10*a}function n(e,t){return s(e,t)*(4/3)*10}class l{constructor(e,t,i,o){this.id=e,this.size=t,this.cramped=o,this.sizeMultiplier=i,this.metrics=Object.keys(a).reduce((e,t)=>({...e,[t]:a[t][this.size]}),{}),this.metrics.emPerEx=a.xHeight[this.size]/a.quad[this.size]}sup(){return c[[4,5,4,5,6,7,6,7][this.id]]}sub(){return c[[5,5,5,5,7,7,7,7][this.id]]}fracNum(){return c[[2,3,4,5,6,7,6,7][this.id]]}fracDen(){return c[[3,3,5,5,7,7,7,7][this.id]]}cramp(){return c[[1,1,3,3,5,5,7,7][this.id]]}cls(){return["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"][this.size]}adjustTo(e){let t=[["","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-textstyle displaystyle textstyle","","reset-textstyle scriptstyle","reset-textstyle scriptscriptstyle"],["reset-scriptstyle textstyle displaystyle","reset-scriptstyle textstyle","","reset-scriptstyle scriptscriptstyle"],["reset-scriptscriptstyle textstyle displaystyle","reset-scriptscriptstyle textstyle","reset-scriptscriptstyle scriptstyle",""]][this.size][e.size];return t.length>0&&(t=" "+t),t}isTight(){return this.size>=2}}const c={0:new l(0,0,1,!1),1:new l(1,0,1,!0),2:new l(2,1,1,!1),3:new l(3,1,1,!0),4:new l(4,2,.7,!1),5:new l(5,2,.7,!0),6:new l(6,3,.5,!1),7:new l(7,3,.5,!0)};c.displaystyle=c[0],c.textstyle=c[2],c.scriptstyle=c[4],c.scriptscriptstyle=c[6];class d{constructor(e){var t,i,a,o,r,s;this.macros=null!==(t=e.macros)&&void 0!==t?t:{},this.atomIdsSettings=e.atomIdsSettings,this.mathstyle=null!==(i=e.mathstyle)&&void 0!==i?i:c.displaystyle,this.letterShapeStyle=null!==(a=e.letterShapeStyle)&&void 0!==a?a:"tex",this.size=null!==(o=e.size)&&void 0!==o?o:"size5",this.parentMathstyle=null!==(r=e.parentMathstyle)&&void 0!==r?r:this.mathstyle,this.parentSize=null!==(s=e.parentSize)&&void 0!==s?s:this.size,this.opacity=e.opacity,this.smartFence=e.smartFence}clone(e={}){const t=new d(this);return void 0!==e&&(Object.assign(t,e),e.mathstyle?(t.parentMathstyle=this.mathstyle,t.parentSize=this.size,"string"==typeof e.mathstyle&&(t.mathstyle=c[e.mathstyle])):t.mathstyle=this.mathstyle),t}setMathstyle(e){e&&"auto"!==e&&(this.mathstyle=c[e])}cramp(){return this.clone({mathstyle:this.mathstyle.cramp()})}sup(){return this.clone({mathstyle:this.mathstyle.sup()})}sub(){return this.clone({mathstyle:this.mathstyle.sub()})}}const m={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"],xleftarrow:[["leftarrow"],1.469,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"],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]},p={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34]},u={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",widetilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",widetilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",widetilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",widetilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};function h(e,t){const i=[];let a,o=[];return e.forEach(e=>{if("first"!==e.type){let r;"variant"===t?(r=e.variant,e.variantStyle&&"up"!==e.variantStyle&&(r+="-"+e.variantStyle)):r=e[t],r!==a?(o.length>0&&i.push(o),o=[e],a=r):o.push(e)}}),o.length>0&&i.push(o),i}const f={};function g(e,t){f[e]={...t}}const y=["","mord","mbin","mop","mrel","mopen","mclose","mpunct","minner","spacing","first","command","error","placeholder","textord","none"];function b(e){return y.includes(e)}const v={"mord+mop":3,"mord+mbin":4,"mord+mrel":5,"mord+minner":3,"mop+mord":3,"mop+mop":3,"mop+mbin":5,"mop+minner":3,"mbin+mord":4,"mbin+mop":4,"mbin+mopen":4,"mbin+minner":4,"mrel+mord":5,"mrel+mop":5,"mrel+mopen":5,"mrel+minner":5,"mclose+mop":3,"mclose+mbin":4,"mclose+mrel":5,"mclose+minner":3,"mpunct+mord":3,"mpunct+mop":3,"mpunct+mbin":4,"mpunct+mrel":5,"mpunct+mopen":3,"mpunct+mpunct":3,"mpunct+minner":3},x={"mord+mop":3,"mop+mord":3,"mop+mop":3,"mclose+mop":3,"minner+mop":3};function k(t){if("string"==typeof t)return t;if("number"==typeof t)return Number(Math.ceil(100*t)/100).toString();if(void 0===t)return"";if(e(t)){let e="";for(const i of t)e+=k(i);return e}return""}class _{constructor(t,i="",a=""){this.classes=i,e(t)?this.children=[].concat(...t):"string"==typeof t?this.body=t:t&&"object"==typeof t&&(this.children=[t]),this.type=a,this.style=null,this.updateDimensions()}updateDimensions(){let e=0,t=0,i=1;this.children?this.children.forEach(a=>{a.height>e&&(e=a.height),a.depth>t&&(t=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}):"string"==typeof this.body&&(e=1.2,t=0),this.height=e,this.depth=t,this.maxFontSize=i}selected(e){e&&!/ML__selected/.test(this.classes)&&(this.classes.length>0&&(this.classes+=" "),this.classes+="ML__selected"),!e&&/ML__selected/.test(this.classes)&&(this.classes=this.classes.replace("ML__selected","")),this.children&&this.children.forEach(t=>t.selected(e))}applyStyle(e){if(!e)return;if(e.color&&("none"!==e.color?this.setStyle("color",e.color):this.setStyle("color","")),e.backgroundColor&&("none"!==e.backgroundColor?this.setStyle("background-color",e.backgroundColor):this.setStyle("background-color","")),e.cssClass&&(this.classes+=" "+e.cssClass),!this.body)return;const t=function(e,t){var i;return(null===(i=f[t.mode])||void 0===i?void 0:i.applyStyle)?f[t.mode].applyStyle(e,t):""}(this,e);if(this.body&&t){this.maxFontSize={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49}[e.fontSize]||1,this.height=0,this.depth=0,this.skew=0,this.italic=0;for(let e=0;e0&&(this.style||(this.style={}),this.style[e]=i)}setTop(e){e&&0!==e&&(this.style||(this.style={}),this.style.top=k(e)+"em",this.height-=e,this.depth+=e)}setLeft(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-left"]=k(e)+"em")}setRight(e){e&&0!==e&&(this.style||(this.style={}),this.style["margin-right"]=k(e)+"em")}setWidth(e){e&&0!==e&&(this.style||(this.style={}),this.style.width=k(e)+"em")}toMarkup(e=1,t=1){var i,a,o,r,s;let n="",l=this.body||"";if(this.children){let e="none";for(let o=0;o`${e}="${this.attributes[e]}"`).join(" "));const t=this.classes.split(" ");t.push(null!==(o={command:"ML__command",placeholder:"ML__placeholder",error:"ML__error"}[this.type])&&void 0!==o?o:""),this.caret&&"command"===this.type&&t.push("ML__command-caret");let i="";if(i=t.length>1?t.filter((e,t,i)=>e.length>0&&i.indexOf(e)===t).join(" "):t[0],i.length>0&&(n+=` class="${i}"`),e&&((null===(r=this.style)||void 0===r?void 0:r["margin-left"])?this.style["margin-left"]=k(parseFloat(this.style["margin-left"])+e/18)+"em":(this.style||(this.style={}),this.style["margin-left"]=k(e/18)+"em")),this.style){let e="";const t=/ML__selected/.test(this.classes);for(const i in this.style)Object.prototype.hasOwnProperty.call(this.style,i)&&("background-color"===i&&t||(e+=i+":"+this.style[i]+";"));e.length>0&&(n+=' style="'+e+'"')}n+=">",this.svgBody?n+=function(e){if(p[e]){const t=p[e][2];return``}const[t,i,a,o]=m[e];let r,s;const n=a/1e3;3===t.length?(r=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],s=["xMinYMin","xMidYMin","xMaxYMin"]):2===t.length?(r=["slice-1-of-2","slice-2-of-2"],s=["xMinYMin","xMaxYMin"]):(r=["slice-1-of-1"],s=[o]);const l=t.map((e,t)=>``).join("");return`${l}`}(this.svgBody):this.svgOverlay?(n+='",n+=""):n+=l,n+=""}else n="";return this.caret&&"command"!==this.type&&("text"===this.caret?n+='':n+=''),n}tryCoalesceWith(e){if(this.type!==e.type)return!1;if("error"===this.type||"placeholder"===this.type||"command"===this.type)return!1;if(this.svgBody||!this.body)return!1;if(e.svgBody||!e.body)return!1;const t=this.children&&this.children.length>0,i=e.children&&e.children.length>0;if(t||i)return!1;if((this.style?this.style.length:0)!==(e.style?e.style.length:0))return!1;const a=this.classes.trim().replace(/\s+/g," ").split(" "),o=e.classes.trim().replace(/\s+/g," ").split(" ");if(a.length!==o.length)return!1;a.sort(),o.sort();for(let e=0;e=e.length)return"none";const n=null!==(a=null===(i=e[t-1])||void 0===i?void 0:i.type)&&void 0!==a?a:"none",l=null!==(r=null===(o=e[t+1])||void 0===o?void 0:o.type)&&void 0!==r?r:"none";let c=null!==(s=e[t].type)&&void 0!==s?s:"none";return"first"===c?"none":"textord"===c?"mord":("mbin"===c&&(/first|none|mrel|mpunct|mopen|mbin|mop/.test(n)||/none|mrel|mpunct|mclose/.test(l))&&(c="mord"),c)}function M(t){return t?e(t)?t.reduce((e,t)=>Math.max(e,t.height),0):t.height:0}function z(t){return t?e(t)?t.reduce((e,t)=>Math.max(e,t.depth),0):t.depth:0}function S(t){return t?e(t)?t[t.length-1].italic:t.italic:0}function L(t,i="",a=""){if(e(t)){const e=t.filter(e=>Boolean(e));return 1===e.length?new _(e[0],i,a):new _(e,i,a)}return new _(t,i,a)}function A(e,t,i="",a=""){const o=new _(t,i,a),s=r(t,e);return o.height=s.height,o.depth=s.depth,o.skew=s.skew,o.italic=s.italic,o.setRight(o.italic),o}function C(t,i="",a=""){const o=L("","ML__strut");let r,s;return o.setStyle("height",M(t),"em"),0!==z(t)&&(r=L("","ML__strut--bottom"),r.setStyle("height",M(t)+z(t),"em"),r.setStyle("vertical-align",-z(t),"em")),s=e(t)?[o,r,...t]:[o,r,t],L(s,i,a)}function $(e,t,i,a,o){o=o||"";const r=q(t,(o+=" style-wrap ")+i.adjustTo(a));r.type=e;const s=a.sizeMultiplier/i.sizeMultiplier;return r.height*=s,r.depth*=s,r.maxFontSize=a.sizeMultiplier,r}function q(e,t="",i=""){const a=new _(e,t,i);let o=1;return o=e instanceof _?e.maxFontSize:e.reduce((e,t)=>Math.max(e,t.maxFontSize),o),a.height*=o,a.depth*=o,a}function D(t,i,a="shift",o=0){let r=0,s=0;a=a||"shift";for(let t=0;t0?"em":""),a.attributes={"aria-hidden":"true"}),"size5"!==e.size?new _(a,"fontsize-ensurer reset-"+e.size+" size5"):0!==i?a:null}(t,n),c=[];s=r;for(const e of i)if("number"==typeof e)s+=e;else if(e instanceof _){const t=L([l,e]);t.setTop(-e.depth-s),c.push(t),s+=e.height+e.depth}const d=L(c,"vlist");return d.depth=Math.max(r,z(d)||0),d.height=Math.max(-s,M(d)||0),d}function T(e){const t=new _(null);return t.svgBody=e,t.height=function(e){return m[e]?m[e][2]/1e3:p[e][2]}(e)/2,t.depth=t.height,t}const K={},E={"<":"<",">":">",o:"o","&":"\\&","{":"\\{","}":"\\}","[":"\\lbrack","]":"\\rbrack",":":"\\colon"," ":"~","¬":"\\neg","·":"\\cdot","¼":"\\frac{1}{4}","½":"\\frac{1}{2}","¾":"\\frac{3}{4}","⁰":"^{0}","ⁱ":"^{i}","¹":"^{1}","²":"^{2}","³":"^{3}","†":"\\dagger","‡":"\\ddagger","…":"\\ldots","⁴":"^{4}","⁵":"^{5}","⁶":"^{6}","⁷":"^{7}","⁸":"^{8}","⁹":"^{9}","⁺":"^{+}","⁻":"^{-}","⁼":"^{=}","ⁿ":"^{n}","₀":"_{0}","₁":"_{1}","₂":"_{2}","₃":"_{3}","₄":"_{4}","₅":"_{5}","₆":"_{6}","₇":"_{7}","₈":"_{8}","₉":"_{9}","₊":"_{+}","₋":"_{-}","₌":"_{=}","ₐ":"_{a}","ₑ":"_{e}","ₒ":"_{o}","ₓ":"_{x}","′":"\\prime","'":"\\prime","←":"\\gets","→":"\\to","△":"\\triangle","▽":"\\triangledown","∋":"\\owns","∗":"\\ast","∣":"\\vert","∥":"\\Vert","∧":"\\land","∨":"\\lor","⋅":"\\cdot","⋈":"\\bowtie","≠":"\\ne","≤":"\\le","≥":"\\ge","⊥":"\\bot","⟷":"\\biconditional","⟸":"\\impliedby","⟹":"\\implies","ℂ":"\\C","ℕ":"\\N","ℙ":"\\P","ℚ":"\\Q","ℝ":"\\R","ℤ":"\\Z"},N={},B={},O={iff:"\\;⟺\\;",nicefrac:"^{#1}\\!\\!/\\!_{#2}",bra:"\\mathinner{\\langle{#1}|}",ket:"\\mathinner{|{#1}\\rangle}",braket:"\\mathinner{\\langle{#1}\\rangle}",set:"\\mathinner{\\lbrace #1 \\rbrace}",Bra:"\\left\\langle #1\\right|",Ket:"\\left|#1\\right\\rangle",Braket:"\\left\\langle{#1}\\right\\rangle",Set:"\\left\\lbrace #1 \\right\\rbrace",rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}"},F={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},P={"\\#":"#","\\&":"&","\\$":"$","\\%":"%","\\_":"_","\\euro":"€","\\maltese":"✠","\\{":"{","\\}":"}","\\nobreakspace":" ","\\ldots":"…","\\textellipsis":"…","\\backslash":"\\","`":"‘","'":"’","``":"“","''":"”","\\degree":"°","\\textasciicircum":"^","\\textasciitilde":"~","\\textasteriskcentered":"*","\\textbackslash":"\\","\\textbraceleft":"{","\\textbraceright":"}","\\textbullet":"•","\\textdollar":"$","\\textsterling":"£","\\textdagger":"†","\\textdaggerdbl":"‡","–":"–","—":"—","‘":"‘","’":"’","“":"“","”":"”",'"':"”","\\ss":"ß","\\ae":"æ","\\oe":"œ","\\AE":"Æ","\\OE":"Œ","\\O":"Ø","\\i":"ı","\\j":"ȷ","\\aa":"å","\\AA":"Å"},R=/[a-zA-Z0-9!@*()-=+{}[\]\\';:?/.,~<>`|'$%#&^_" ]/,I="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("\\p{Letter}","u"),H="undefined"!=typeof navigator&&/firefox|edge|Trident/i.test(navigator.userAgent)?/[0-9a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓ󌜏źŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒäöüßÄÖÜẞàèéìíîòóùúÀÈÉÌÍÎÒÓÙÚáéíñóúüÁÉÍÑÓÚÜ]/:new RegExp("[0-9\\p{Letter}]","u");function V(e,t,i="mord",a=""){K[e]={type:i,variant:a,value:t},E[t]||a||(E[t]=e),P[e]=t}function W(e,t){for(let i=e;i<=t;i++){const e=String.fromCodePoint(i);V(e,e)}}function U(e,t){if("math"===e)return E[t]||t;if("text"===e){let e=Object.keys(P).find(e=>P[e]===t);if(!e){const i=t.codePointAt(0).toString(16);e="^".repeat(i.length)+i}return e}return t}const j={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},X=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function G(e,t,i){if(!/[A-Za-z0-9]/.test(e))return e;if(!t&&!i)return e;const a=e.codePointAt(0);for(let e=0;e=X[e].offset&&a120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const i in j)if(Object.prototype.hasOwnProperty.call(j,i)&&j[i]===e){e=null!==(t=i.codePointAt(0))&&void 0!==t?t:0;break}for(let t=0;t=X[t].start&&e=1;)a.params.push({isOptional:!1,type:"math"}),o-=1}}}else"math"===t?a=K[e]:P[e]?a={value:P[e]}:"text"===t&&(a={value:e});return!a||"mord"!==a.type||"f"!==a.value&&"g"!==a.value&&"h"!==a.value||(a.isFunction=!0),a}function ie(e){if(e.length<=1)return[];const t=[];for(const i in N)Object.prototype.hasOwnProperty.call(N,i)&&i.startsWith(e)&&!N[i].infix&&t.push({match:i,frequency:N[i].frequency});for(const i in K)Object.prototype.hasOwnProperty.call(K,i)&&i.startsWith(e)&&t.push({match:i,frequency:K[i].frequency});return t.sort((e,t)=>e.frequency===t.frequency?e.match.length-t.match.length:(t.frequency||0)-(e.frequency||0)),t}function ae(e){let t="auto";const i=e.match(/:([^=]+)/);return i&&(t=i[1].trim()),t}function oe(e){if(!e)return[];let t=[],i=e.split("]");if("["===i[0].charAt(0)){t.push({isOptional:!0,type:ae(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(oe(i[e]))}else if(i=e.split("}"),"{"===i[0].charAt(0)){t.push({isOptional:!1,type:ae(i[0].slice(1))});for(let e=1;e<=i.length;e++)t=t.concat(oe(i[e]))}return t}function re(e){let t="",i=!0;return e.forEach(e=>{"string"==typeof e.body?t+=e.body:i=!1}),i?t:""}function se(e,t,i,a=!1){"string"==typeof e&&(e=[e]);const o={tabular:a,params:oe(t),parser:i};for(const t of e)B[t]=o}function ne(e,t,i){se(e,t,i,!0)}function le(e,t,i,a,o){"string"==typeof e&&(e=[e]),i||(i={});const r={params:oe(t),mode:i.mode,infix:Boolean(i.infix),parse:a,emit:o};e.forEach(e=>{N["\\"+e]=r})}const ce={acute:"ˊ",grave:"ˋ",dot:"˙",ddot:"¨",mathring:"˚",tilde:"~",bar:"ˉ",breve:"˘",check:"ˇ",hat:"^",vec:"⃗"};le(Object.keys(ce),"{body:auto}",null,(function(e,t){return{type:"accent",accent:ce[e.slice(1)],limits:"accent",skipBoundary:!0,body:t[0]}})),le(["widehat","widecheck","widetilde"],"{body:auto}",null,(e,t)=>{const i=re(t[0]);return{type:"accent",svgAccent:e.slice(1)+(i.length>5?"4":["1","1","2","2","3","3"][i.length]),limits:"accent",skipBoundary:!0,body:t[0]}}),le("utilde","{body:auto}",null,(e,t)=>{const i=re(t[0]),a="widetilde"+(i.length>5?"4":["1","1","2","2","3","3"][i.length]);return{type:"overunder",body:t[0],svgBelow:a,skipBoundary:!0}},(e,t,i,a)=>`\\utilde{${a(i,i.body)}}`),le("^","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"â",e:"ê",i:"î",o:"ô",u:"û",A:"Â",E:"Ê",I:"Î",O:"Ô",U:"Û"}[t[0]]||"^"})),le("`","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"à",e:"è",i:"ì",o:"ò",u:"ù",A:"À",E:"È",I:"Ì",O:"Ò",U:"Ù"}[t[0]]||"`"})),le("'","{:string}",{},(function(e,t){return{type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{a:"á",e:"é",i:"í",o:"ó",u:"ú",A:"Á",E:"É",I:"Í",O:"Ó",U:"Ú"}[t[0]]||"^"}})),le("~","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{n:"ñ",N:"Ñ",a:"ã",o:"õ",A:"Ã",O:"Õ"}[t[0]]||"´"})),le("c","{:string}",{},(e,t)=>({type:"mord",limits:"nolimits",isSymbol:!0,isFunction:!1,body:t[0]&&{c:"ç",C:"Ç"}[t[0]]||""})),le("enclose","{notation:string}[style:string]{body:auto}",null,(e,t)=>{var i;const a={type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"auto",captureSelection:!0,body:t[2]};if(t[1]){const e=t[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const t of e){const e=t.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(e)a.strokeWidth=n(e[1],"px"),isFinite(a.strokeWidth)||(a.strokeWidth=1),a.strokeStyle=e[2],a.strokeColor=e[3];else{const e=t.match(/\s*([a-z]*)\s*=\s*"(.*)"/);e&&("mathbackground"===e[1]?a.backgroundcolor=e[2]:"mathcolor"===e[1]?a.strokeColor=e[2]:"padding"===e[1]?a.padding=n(e[2],"px"):"shadow"===e[1]&&(a.shadow=e[2]))}}"dashed"===a.strokeStyle?a.svgStrokeStyle="5,5":"dotted"===a.strokeStyle&&(a.svgStrokeStyle="1,5")}return a.borderStyle=a.strokeWidth+"px "+a.strokeStyle+" "+a.strokeColor,a.notation={},(null!==(i=t[0])&&void 0!==i?i:"").split(/[, ]/).filter(e=>e.length>0).forEach(e=>{a.notation[e.toLowerCase()]=!0}),a.notation.updiagonalarrow&&(a.notation.updiagonalstrike=!1),a.notation.box&&(a.notation.left=!1,a.notation.right=!1,a.notation.bottom=!1,a.notation.top=!1),a}),le("cancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0},body:t[0]}})),le("bcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{downdiagonalstrike:!0},body:t[0]}})),le("xcancel","{body:auto}",null,(function(e,t){return{type:"enclose",strokeColor:"currentColor",strokeWidth:1,strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"auto",notation:{updiagonalstrike:!0,downdiagonalstrike:!0},body:t[0]}})),se("math","",()=>({mathstyle:"textstyle"})),se("displaymath","",(function(){return{mathstyle:"displaystyle"}})),ne("array","{columns:colspec}",(e,t)=>({colFormat:t[0],mathstyle:"textstyle"})),ne(["equation","equation","subequations"],"",()=>({colFormat:[{align:"c"}]})),ne("multline","",(function(){return{colFormat:[{align:"m"}]}})),ne(["align","align*","aligned","eqnarray"],"",(e,t,i)=>{let a=0;for(const e of i)a=Math.max(a,e.length);const o=[{gap:0},{align:"r"},{gap:0},{align:"l"}];let r=2;for(;r({colFormat:[{align:"r"},{align:"l"}]})),ne(["gather","gathered"],"",()=>({colFormat:[{gap:.25},{align:"c"},{gap:0}],jot:.3})),ne(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","smallmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*","smallmatrix*"],"[columns:colspec]",(e,t)=>{var i;const a={mathstyle:"textstyle"};switch(e){case"pmatrix":case"pmatrix*":a.leftDelim="(",a.rightDelim=")";break;case"bmatrix":case"bmatrix*":a.leftDelim="[",a.rightDelim="]";break;case"Bmatrix":case"Bmatrix*":a.leftDelim="\\lbrace",a.rightDelim="\\rbrace";break;case"vmatrix":case"vmatrix*":a.leftDelim="\\vert",a.rightDelim="\\vert";break;case"Vmatrix":case"Vmatrix*":a.leftDelim="\\Vert",a.rightDelim="\\Vert";break;case"smallmatrix":case"smallmatrix*":a.mathstyle="scriptstyle";break;case"matrix":case"matrix*":a.leftDelim=".",a.rightDelim="."}return a.colFormat=null!==(i=t[0])&&void 0!==i?i:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}],a}),ne("cases","",()=>({arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",colFormat:[{align:"l"},{gap:1},{align:"l"}]})),se("center","",(function(){return{colFormat:[{align:"c"}]}})),le(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overbrace","overlinesegment","overgroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgAbove:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),le(["underrightarrow","underleftarrow","underleftrightarrow","underbrace","underlinesegment","undergroup"],"{:auto}",null,(e,t)=>({type:"overunder",body:t[0],svgBelow:e.slice(1),skipBoundary:!0,limits:"overunder"}),(e,t,i,a)=>`${e}{${a(i,i.body)}}`),le(["xrightarrow","xleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","xLeftrightarrow","xrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xrightleftarrows","xrightequilibrium","xleftequilibrium"],"[:auto]{:auto}",null,(e,t)=>{let i=t[1];return 0===(null==i?void 0:i.length)&&(i=null),{type:"overunder",mathtype:"mrel",svgBody:e.slice(1),overscript:i,underscript:t[0]}},(e,t,i,a)=>e+(void 0!==i.underscript?`[${a(i,i.underscript)}]`:"")+`{${a(i,i.overscript)}}`),le(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","coth","ctg","cth","cotg","csc","cosec","deg","dim","exp","hom","inf","ker","lg","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main",variantStyle:"up"}})),le(["liminf","limsup"],"",null,e=>({type:"mop",limits:"limits",isSymbol:!1,body:{"\\liminf":"lim inf","\\limsup":"lim sup"}[e],variant:"main"})),le(["lim","mod"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,body:e.slice(1),variant:"main"}})),le(["det","max","min"],"",null,(function(e){return{type:"mop",limits:"limits",isSymbol:!1,isFunction:!0,body:e.slice(1),variant:"main"}})),le("sqrt","[index:auto]{radicand:auto}",null,(e,t)=>({type:"surd",body:t[1],index:t[0]}),(e,t,i,a)=>{let o="";return void 0!==i.index&&(o+=`[${a(i,i.index)}]`),o+=`{${a(i,i.body)}}`,e+o}),le(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{numerator}{denominator}",null,(e,t)=>{const i={type:"genfrac",numer:t[0],denom:t[1],mathstyle:"auto"};switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":case"\\cfrac":i.hasBarLine=!0;break;case"\\\\atopfrac":i.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i.hasBarLine=!1,i.leftDelim="(",i.rightDelim=")"}switch(e){case"\\dfrac":case"\\dbinom":i.mathstyle="displaystyle";break;case"\\tfrac":case"\\tbinom":i.mathstyle="textstyle"}return"\\cfrac"===e&&(i.continuousFraction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),le(["over","atop","choose"],"",{infix:!0},(e,t)=>{const i=t[0],a=t[1];let o=!1,r=null,s=null;switch(e){case"\\atop":break;case"\\over":o=!0;break;case"\\choose":o=!1,r="(",s=")";break;default:throw new Error("Unrecognized genfrac command")}return{type:"genfrac",numer:i,denom:a,hasBarLine:o,leftDelim:r,rightDelim:s,mathstyle:"auto"}},(e,t,i,a)=>`{${a(i,i.numer)}${e} ${a(i,i.denom)}}`),le("pdiff","{numerator}{denominator}",null,(e,t)=>({type:"genfrac",numer:t[0],denom:t[1],numerPrefix:"∂",denomPrefix:"∂",hasBarLine:!0,leftDelim:null,rightDelim:null,mathstyle:"auto"}),(e,t,i,a)=>`${e}{${a(i,i.numer)}}{${a(i,i.denom)}}`),le(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","smallint","intop"],"",null,e=>({type:"mop",limits:"auto",isSymbol:!0,variant:"main",body:{coprod:"∐",bigvee:"⋁",bigwedge:"⋀",biguplus:"⨄",bigcap:"⋂",bigcup:"⋃",intop:"∫",prod:"∏",sum:"∑",bigotimes:"⨂",bigoplus:"⨁",bigodot:"⨀",bigsqcup:"⨆",smallint:"∫"}[e.slice(1)]}));const de={int:"∫",iint:"∬",iiint:"∭",oint:"∮",oiint:"∯",oiiint:"∰",intclockwise:"∱",varointclockwise:"∲",ointctrclockwise:"∳",intctrclockwise:"⨑",sqcup:"⊔",sqcap:"⊓",uplus:"⊎",wr:"≀",amalg:"⨿",Cap:"⋒",Cup:"⋓",doublecap:"⋒",doublecup:"⋓"};le(Object.keys(de),"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!0,body:de[e.slice(1)],variant:{"⋒":"ams","⋓":"ams"}[de[e.slice(1)]]}})),le(["Re","Im"],"",null,(function(e){return{type:"mop",limits:"nolimits",isSymbol:!1,isFunction:!0,body:{"\\Re":"ℜ","\\Im":"ℑ"}[e],variant:"fraktur"}})),le("middle","{:delim}",null,(function(e,t){return{type:"delim",delim:t[0]}}));const me={m0:"#3f3d99",m1:"#993d71",m2:"#998b3d",m3:"#3d9956",m4:"#3d5a99",m5:"#993d90",m6:"#996d3d",m7:"#43993d",m8:"#3d7999",m9:"#843d99"},pe=["#d35d60","#7293cb","#e1974d","#84bb5d","#9066a7","#aD6a58","#f5a4ce","#fff590","#212121","#818787","#d4d5d2","#ffffff"],ue=["#cc2428","#3769b1","#da7e30","#409852","#6b4c9a","#922426","#e7298a","#ffe907","#000000","#525055","#adafaa","#ffffff"],he={apricot:"#FBB982",aquamarine:"#00B5BE",bittersweet:"#C04F17",black:"#221E1F",blue:"#2D2F92",bluegreen:"#00B3B8",blueviolet:"#473992",brickred:"#B6321C",brown:"#792500",burntorange:"#F7921D",cadetblue:"#74729A",carnationpink:"#F282B4",cerulean:"#00A2E3",cornflowerblue:"#41B0E4",cyan:"#00AEEF",dandelion:"#FDBC42",darkorchid:"#A4538A",emerald:"#00A99D",forestgreen:"#009B55",fuchsia:"#8C368C",goldenrod:"#FFDF42",gray:"#949698",green:"#00A64F",greenyellow:"#DFE674",junglegreen:"#00A99A",lavender:"#F49EC4",limegreen:"#8DC73E",magenta:"#EC008C",mahogany:"#A9341F",maroon:"#AF3235",melon:"#F89E7B",midnightblue:"#006795",mulberry:"#A93C93",navyblue:"#006EB8",olivegreen:"#3C8031",orange:"#F58137",orangered:"#ED135A",orchid:"#AF72B0",peach:"#F7965A",periwinkle:"#7977B8",pinegreen:"#008B72",plum:"#92268F",processblue:"#00B0F0",purple:"#99479B",rawsienna:"#974006",red:"#ED1B23",redorange:"#F26035",redviolet:"#A1246B",rhodamine:"#EF559F",royalblue:"#0071BC",royalpurple:"#613F99",rubinered:"#ED017D",salmon:"#F69289",seagreen:"#3FBC9D",sepia:"#671800",skyblue:"#46C5DD",springgreen:"#C6DC67",tan:"#DA9D76",tealblue:"#00AEB3",thistle:"#D883B7",turquoise:"#00B4CE",violet:"#58429B",violetred:"#EF58A0",white:"#FFFFFF",wildstrawberry:"#EE2967",yellow:"#FFF200",yellowgreen:"#98CC70",yelloworange:"#FAA21A"};function fe(e){var t;const i=e.toLowerCase().split("!");let a,o,r,s=255,n=255,l=255,c=-1;const d=i.length>0&&"-"===i[0].charAt(0);d&&(i[0]=i[0].slice(1));for(let e=0;e=0&&(s=(1-c)*s+c*a,n=(1-c)*n+c*o,l=(1-c)*l+c*r,c=-1),e+1=0&&(s=c*s+(1-c)*a,n=c*n+(1-c)*o,l=c*l+(1-c)*r),d&&(s=255-s,n=255-n,l=255-l),"#"+("00"+Math.round(s).toString(16)).slice(-2)+("00"+Math.round(n).toString(16)).slice(-2)+("00"+Math.round(l).toString(16)).slice(-2)}function ge(e){let t=e.toUpperCase();for(const e in he)if(he[e]===t){t=e;break}for(const e in me)if(me[e]===t){t=e;break}return t}le("ensuremath","{:math}",{},(e,t)=>({type:"group",mode:"math",body:t[0],skipBoundary:!0,latexOpen:"\\ensuremath{",latexClose:"}"}),(e,t,i,a)=>a(i,i.body)),le("color","{:color}",{},(e,t)=>({color:t[0]})),le("textcolor","{:color}{content:auto*}",{},(e,t)=>({color:t[0]})),le("boxed","{content:math}",null,(e,t)=>({type:"box",framecolor:"black",skipBoundary:!0,body:t[0]})),le("colorbox","{background-color:string}{content:auto}",{},(e,t)=>({type:"box",backgroundcolor:fe(t[0]),skipBoundary:!0,body:t[1],verbatimBackgroundcolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimBackgroundcolor||ge(i.backgroundcolor)}}{${a(i,i.body)}}`),le("fcolorbox","{frame-color:string}{background-color:string}{content:auto}",{},(e,t)=>({type:"box",framecolor:fe(t[0]),backgroundcolor:fe(t[1]),skipBoundary:!0,body:t[2],verbatimBackgroundcolor:t[1],verbatimFramecolor:t[0]}),(e,t,i,a)=>`${e}{${i.verbatimFramecolor||ge(i.framecolor)}{${i.verbatimBackgroundcolor||ge(i.backgroundcolor)}}{${a(i,i.body)}}`),le("bbox","[:bbox]{body:auto}",{},(e,t)=>{if(t[0]){const e=t[0];return{type:"box",padding:e.padding,border:e.border,backgroundcolor:e.backgroundcolor,skipBoundary:!0,body:t[1]}}return{type:"box",skipBoundary:!0,body:t[1]}},(e,t,i,a)=>{let o=e;if(isFinite(i.padding)||void 0!==i.border||void 0!==i.backgroundcolor){const e=[];isFinite(i.padding)&&e.push(Math.floor(100*i.padding)/100+"em"),i.border&&e.push("border:"+i.border),i.backgroundcolor&&e.push(ge(i.backgroundcolor)),o+=`[${e.join(",")}]`}return o+`{${a(i,i.body)}}`}),le(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"",{},(e,t)=>({mathstyle:e.slice(1)})),le(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{mode:"text"},(e,t)=>({fontSize:{tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[e.slice(1)]})),le("fontseries","{:string}",{mode:"text"},(e,t)=>({fontSeries:t[0]})),le("fontshape","{:string}",{mode:"text"},(e,t)=>({fontShape:t[0]})),le("fontfamily","{:string}",{mode:"text"},(e,t)=>({fontFamily:t[0]})),le("selectfont","",{mode:"text"},(e,t)=>({})),le("bf","",{},(e,t)=>({fontSeries:"b",fontShape:"n",fontFamily:"cmr"})),le(["boldsymbol","bm"],"{:math*}",{},(e,t)=>({mode:"math",cssClass:"ML__boldsymbol"})),le("bold","{:math*}",{},(e,t)=>({mode:"math",variantStyle:"bold"})),le("bfseries","",{mode:"text"},(e,t)=>({fontSeries:"b"})),le("mdseries","",{mode:"text"},(e,t)=>({fontSeries:"m"})),le("upshape","",{mode:"text"},(e,t)=>({fontShape:"n"})),le("slshape","",{mode:"text"},(e,t)=>({fontShape:"sl"})),le("scshape","",{mode:"text"},(e,t)=>({fontShape:"sc"})),le("textbf","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"b"})),le("textmd","{:text*}",{},(e,t)=>({mode:"text",fontSeries:"m"})),le("textup","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n"})),le("textnormal","{:text*}",{},(e,t)=>({mode:"text",fontShape:"n",fontSeries:"m"})),le("textsl","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sl"})),le("textit","{:text*}",{},(e,t)=>({mode:"text",fontShape:"it"})),le("textsc","{:text*}",{},(e,t)=>({mode:"text",fontShape:"sc"})),le("textrm","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"roman"})),le("textsf","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"sans-serif"})),le("texttt","{:text*}",{},(e,t)=>({mode:"text",fontFamily:"monospace"})),le("mathbf","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bold"})),le("mathit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"italic"})),le("mathbfit","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"bolditalic"})),le("mathrm","{:math*}",{},(e,t)=>({mode:"math",variant:"normal",variantStyle:"up"})),le("mathsf","{:math*}",{},(e,t)=>({mode:"math",variant:"sans-serif",variantStyle:"up"})),le("mathtt","{:math*}",{},(e,t)=>({mode:"math",variant:"monospace",variantStyle:"up"})),le("it","",{},(e,t)=>({fontSeries:"m",fontShape:"it",fontFamily:"cmr",variantStyle:"italic"})),le("rmfamily","",{},(e,t)=>({fontFamily:"roman"})),le("sffamily","",{},(e,t)=>({fontFamily:"sans-serif"})),le("ttfamily","",{},(e,t)=>({fontFamily:"monospace"})),le(["Bbb","mathbb"],"{:math*}",{},(e,t)=>({variant:"double-struck",variantStyle:"up"})),le(["frak","mathfrak"],"{:math*}",{},(e,t)=>({variant:"fraktur",variantStyle:"up"})),le("mathcal","{:math*}",{},(e,t)=>({variant:"calligraphic",variantStyle:"up"})),le("mathscr","{:math*}",{},(e,t)=>({variant:"script",variantStyle:"up"})),le("mbox","{:text}",null,(e,t)=>({type:"group",mode:"math",body:t[0]})),le("text","{:text*}",null,(e,t)=>({mode:"text"})),le("class","{name:string}{content:auto*}",null,(e,t)=>({cssClass:t[0]})),le("cssId","{id:string}{content:auto}",null,(e,t)=>({type:"group",body:t[1],cssId:t[0]})),le("em","",null,(e,t)=>({cssClass:"ML__emph"})),le("emph","{:auto}",null,(e,t)=>({cssClass:"ML__emph",body:t[0],type:"group",skipBoundary:!0}));const ye={"\\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}};function be(e,t,i,a,o,r=""){const s=$(e,A("Size"+i+"-Regular",J(t),"delimsizing size"+i),o.mathstyle,c.textstyle,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}function ve(e,t){let i="";return"Size1-Regular"===t?i=" delim-size1":"Size4-Regular"===t&&(i=" delim-size4"),A(t,J(e),"delimsizinginner"+i)}function xe(e,t,i,a,o,s=""){let n,l,d,m;n=d=m=J(t),l=null;let p="Size1-Regular";"\\vert"===t||"\\lvert"===t||"\\rvert"===t||"\\mvert"===t||"\\mid"===t?d=n=m="∣":"\\Vert"===t||"\\lVert"===t||"\\rVert"===t||"\\mVert"===t||"\\|"===t?d=n=m="∥":"\\uparrow"===t?d=m="⏐":"\\Uparrow"===t?d=m="‖":"\\downarrow"===t?n=d="⏐":"\\Downarrow"===t?n=d="‖":"\\updownarrow"===t?(n="↑",d="⏐",m="↓"):"\\Updownarrow"===t?(n="⇑",d="‖",m="⇓"):"["===t||"\\lbrack"===t?(n="⎡",d="⎢",m="⎣",p="Size4-Regular"):"]"===t||"\\rbrack"===t?(n="⎤",d="⎥",m="⎦",p="Size4-Regular"):"\\lfloor"===t?(d=n="⎢",m="⎣",p="Size4-Regular"):"\\lceil"===t?(n="⎡",d=m="⎢",p="Size4-Regular"):"\\rfloor"===t?(d=n="⎥",m="⎦",p="Size4-Regular"):"\\rceil"===t?(n="⎤",d=m="⎥",p="Size4-Regular"):"("===t?(n="⎛",d="⎜",m="⎝",p="Size4-Regular"):")"===t?(n="⎞",d="⎟",m="⎠",p="Size4-Regular"):"\\{"===t||"\\lbrace"===t?(n="⎧",l="⎨",m="⎩",d="⎪",p="Size4-Regular"):"\\}"===t||"\\rbrace"===t?(n="⎫",l="⎬",m="⎭",d="⎪",p="Size4-Regular"):"\\lgroup"===t?(n="⎧",m="⎩",d="⎪",p="Size4-Regular"):"\\rgroup"===t?(n="⎫",m="⎭",d="⎪",p="Size4-Regular"):"\\lmoustache"===t?(n="⎧",m="⎭",d="⎪",p="Size4-Regular"):"\\rmoustache"===t?(n="⎫",m="⎩",d="⎪",p="Size4-Regular"):"\\surd"===t?(n="",m="⎷",d="",p="Size4-Regular"):"\\ulcorner"===t?(n="┌",d=m=" "):"\\urcorner"===t?(n="┐",d=m=" "):"\\llcorner"===t?(m="└",d=n=" "):"\\lrcorner"===t&&(n="┘",d=n=" ");const u=r(J(n),p),h=u.height+u.depth,f=r(J(d),p),g=f.height+f.depth,y=r(J(m),p),b=y.height+y.depth;let v=0,x=1;if(null!==l){const e=r(J(l),p);v=e.height+e.depth,x=2}const k=h+b+v,_=Math.ceil((i-k)/(x*g)),w=k+_*x*g;let M=o.mathstyle.metrics.axisHeight;a&&(M*=o.mathstyle.sizeMultiplier);const z=w/2-M,S=[];if(S.push(ve(m,p)),null===l)for(let e=0;e<_;e++)S.push(ve(d,p));else{for(let e=0;e<_;e++)S.push(ve(d,p));S.push(ve(l,p));for(let e=0;e<_;e++)S.push(ve(d,p))}S.push(ve(n,p));const A=D(o,S,"bottom",z);return A.setStyle("color",o.color),"number"==typeof o.opacity&&A.setStyle("opacity",o.opacity),$(e,L(A,"delimsizing mult"),o.mathstyle,c.textstyle,s)}le(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",null,(function(e,t){return{type:"sizeddelim",size:ye[e].size,cls:ye[e].mclass,delim:t[0]}})),le(["hspace","hspace*"],"{width:skip}",{},(function(e,t){return{type:"spacing",width:t[0]||0}})),le(["mathop","mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",null,(e,t)=>{const i={type:{"\\mathop":"mop","\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e],body:t[0],captureSelection:!0};return"\\mathop"===e&&(i.limits="limits",i.isFunction=!0),i},(e,t,i,a)=>`${e}{${a(i,i.body)}}`),le(["operatorname","operatorname*"],"{operator:math}",null,(function(e,t){const i={type:"mop",captureSelection:!0,body:t[0],isFunction:!0};return i.body.forEach(e=>{e.isFunction=!1,e.variant||e.variantStyle||(e.variant="main",e.variantStyle="up"),e.type="mord",e.body={"∗":"*","−":"-"}[e.body]||e.body}),"\\operatorname"===e?i.limits="nolimits":"\\operatorname*"===e&&(i.limits="limits"),i})),le("unicode","{charcode:number}",null,(e,t)=>{let i=parseInt(t[0]);return isFinite(i)||(i=10067),{type:"mord",body:String.fromCodePoint(i),codepoint:i}},(e,t,i,a)=>`${e}{"${("000000"+i.codepoint.toString(16)).toUpperCase().substr(-6)}}`),le("rule","[raise:dimen]{width:dimen}{thickness:dimen}",null,(function(e,t){return{type:"rule",shift:t[0],width:t[1],height:t[2]}})),le("overline","{:auto}",null,(e,t)=>({type:"line",position:"overline",skipBoundary:!0,body:t[0]})),le("underline","{:auto}",null,(e,t)=>({type:"line",position:"underline",skipBoundary:!0,body:t[0]})),le("overset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),le("underset","{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",underscript:t[0],skipBoundary:!0,body:t[1]}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),le(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0},(function(e,t){return{type:"genfrac",numer:t[0],denom:t[1],hasBarLine:!1,leftDelim:t[2],rightDelim:t[3],mathstyle:"auto"}}),(e,t,i,a)=>`${a(i,i.numer)} ${e}${i.leftDelim}${i.rightDelim}${a(i,i.denom)}`),le(["stackrel","stackbin"],"{annotation:auto}{symbol:auto}",null,(function(e,t){return{type:"overunder",overscript:t[0],skipBoundary:!0,body:t[1],mathtype:"\\stackrel"===e?"mrel":"mbin"}}),(e,t,i,a)=>`${e}{${a(i,i.overscript)}}{${a(i,i.body)}}`),le(["phantom","vphantom","hphantom"],"{:auto*}",{},(e,t)=>({type:"phantom",captureSelection:!0,phantomType:e.slice(1),isPhantom:!0}),(e,t,i,a)=>e+"{"+a(i,i.body)+"}"),le("smash","[:string]{:auto}",null,(function(e,t){let i="smash";return"b"===t[0]?i="bsmash":"t"===t[0]&&(i="tsmash"),{type:"phantom",phantomType:i,skipBoundary:!0,body:t[1]}})),le("rlap","{:auto}",null,(function(e,t){return{type:"overlap",align:"right",skipBoundary:!0,body:t[0]}})),le("llap","{:auto}",null,(function(e,t){return{type:"overlap",align:"left",skipBoundary:!0,body:t[0]}})),le("mathrlap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"right",skipBoundary:!0,body:t[0]}})),le("mathllap","{:auto}",null,(function(e,t){return{type:"overlap",mode:"math",align:"left",skipBoundary:!0,body:t[0]}})),function(e){for(let t=0;t",">","mrel"),V("\\gt",">","mrel"),V("\\le","≤","mrel"),V("\\leq","≤","mrel"),V("\\ge","≥","mrel"),V("\\geq","≥","mrel"),V("\\leqslant","⩽","mrel","ams"),V("\\geqslant","⩾","mrel","ams"),V("\\ll","≪","mrel"),V("\\gg","≫","mrel"),V("\\coloneq","≔","mrel"),V("\\measeq","≝","mrel"),V("\\eqdef","≞","mrel"),V("\\questeq","≟","mrel"),V(":",":","mrel"),V("\\cong","≅","mrel"),V("\\equiv","≡","mrel"),V("\\prec","≺","mrel"),V("\\preceq","⪯","mrel"),V("\\succ","≻","mrel"),V("\\succeq","⪰","mrel"),V("\\perp","⊥","mrel"),V("\\propto","∝","mrel"),V("\\Colon","∷","mrel"),V("\\smile","⌣","mrel"),V("\\frown","⌢","mrel"),V("\\sim","∼","mrel"),V("\\gtrsim","≳","mrel","ams"),V("\\approx","≈","mrel"),V("\\approxeq","≊","mrel","ams"),V("\\thickapprox","≈","mrel","ams"),V("\\lessapprox","⪅","mrel","ams"),V("\\gtrapprox","⪆","mrel","ams"),V("\\precapprox","⪷","mrel","ams"),V("\\succapprox","⪸","mrel","ams"),V("\\thicksim","∼","mrel","ams"),V("\\succsim","≿","mrel","ams"),V("\\precsim","≾","mrel","ams"),V("\\backsim","∽","mrel","ams"),V("\\eqsim","≂","mrel","ams"),V("\\backsimeq","⋍","mrel","ams"),V("\\simeq","≃","mrel"),V("\\lesssim","≲","mrel","ams"),V("\\nleq","≰","mrel","ams"),V("\\ngeq","≱","mrel","ams"),V("\\smallsmile","⌣","mrel","ams"),V("\\smallfrown","⌢","mrel","ams"),V("\\bowtie","⋈","mrel"),V("\\Join","⋈","mrel"),V("\\asymp","≍","mrel"),V("\\sqsubseteq","⊑","mrel"),V("\\sqsupseteq","⊒","mrel"),V("\\leqq","≦","mrel","ams"),V("\\eqslantless","⪕","mrel","ams"),V("\\lll","⋘","mrel","ams"),V("\\lessgtr","≶","mrel","ams"),V("\\lesseqgtr","⋚","mrel","ams"),V("\\lesseqqgtr","⪋","mrel","ams"),V("\\risingdotseq","≓","mrel","ams"),V("\\fallingdotseq","≒","mrel","ams"),V("\\subseteqq","⫅","mrel","ams"),V("\\Subset","⋐","mrel","ams"),V("\\sqsubset","⊏","mrel","ams"),V("\\preccurlyeq","≼","mrel","ams"),V("\\curlyeqprec","⋞","mrel","ams"),V("\\vDash","⊨","mrel","ams"),V("\\Vvdash","⊪","mrel","ams"),V("\\bumpeq","≏","mrel","ams"),V("\\Bumpeq","≎","mrel","ams"),V("\\geqq","≧","mrel","ams"),V("\\eqslantgtr","⪖","mrel","ams"),V("\\ggg","⋙","mrel","ams"),V("\\gtrless","≷","mrel","ams"),V("\\gtreqless","⋛","mrel","ams"),V("\\gtreqqless","⪌","mrel","ams"),V("\\supseteqq","⫆","mrel","ams"),V("\\Supset","⋑","mrel","ams"),V("\\sqsupset","⊐","mrel","ams"),V("\\succcurlyeq","≽","mrel","ams"),V("\\curlyeqsucc","⋟","mrel","ams"),V("\\Vdash","⊩","mrel","ams"),V("\\shortmid","∣","mrel","ams"),V("\\between","≬","mrel","ams"),V("\\pitchfork","⋔","mrel","ams"),V("\\varpropto","∝","mrel","ams"),V("\\backepsilon","∍","mrel","ams"),V("\\llless","⋘","mrel","ams"),V("\\gggtr","⋙","mrel","ams"),V("\\lhd","⊲","mbin","ams"),V("\\rhd","⊳","mbin","ams"),V("\\doteq","≐","mrel"),V("\\doteqdot","≑","mrel","ams"),V("\\Doteq","≑","mrel","ams"),V("\\eqcirc","≖","mrel","ams"),V("\\circeq","≗","mrel","ams"),V("\\lessdot","⋖","mbin","ams"),V("\\gtrdot","⋗","mbin","ams"),V("\\~","~","mrel"),V("\\leftrightarrow","↔","mrel"),V("\\Leftrightarrow","⇔","mrel"),V("\\models","⊨","mrel"),V("\\vdash","⊢","mrel"),V("\\therefore","∴","mrel","ams"),V("\\because","∵","mrel","ams"),V("\\dashv","⊣","mrel"),V("\\roundimplies","⥰","mrel"),V("+","+","mbin"),V("-","−","mbin"),V("−","−","mbin"),V("\\pm","±","mbin"),V("\\mp","∓","mbin"),V("*","∗","mbin"),V("\\times","×","mbin"),V("\\div","÷","mbin"),V("\\surd","√"),V("\\divides","∣","mbin"),V("\\ltimes","⋉","mbin","ams"),V("\\rtimes","⋊","mbin","ams"),V("\\leftthreetimes","⋋","mbin","ams"),V("\\rightthreetimes","⋌","mbin","ams"),V("\\intercal","⊺","mbin","ams"),V("\\dotplus","∔","mbin","ams"),V("\\doublebarwedge","⩞","mbin","ams"),V("\\divideontimes","⋇","mbin","ams"),V("\\centerdot","⋅","mbin","ams"),V("\\cdot","⋅","mbin"),V("\\infty","∞"),V("\\prime","′"),V("\\doubleprime","″"),V("\\angle","∠"),V("`","‘"),V("\\$","$"),V("\\%","%"),V("\\_","_"),V("\\alpha","α"),V("\\beta","β"),V("\\gamma","γ"),V("\\delta","δ"),V("\\epsilon","ϵ"),V("\\varepsilon","ε"),V("\\zeta","ζ"),V("\\eta","η"),V("\\theta","θ"),V("\\vartheta","ϑ"),V("\\iota","ι"),V("\\kappa","κ"),V("\\varkappa","ϰ","mord","ams"),V("\\lambda","λ"),V("\\mu","μ"),V("\\nu","ν"),V("\\xi","ξ"),V("\\omicron","o"),V("\\pi","π"),V("\\varpi","ϖ"),V("\\rho","ρ"),V("\\varrho","ϱ"),V("\\sigma","σ"),V("\\varsigma","ς"),V("\\tau","τ"),V("\\phi","ϕ"),V("\\varphi","φ"),V("\\upsilon","υ"),V("\\chi","χ"),V("\\psi","ψ"),V("\\omega","ω"),V("\\Gamma","Γ"),V("\\Delta","Δ"),V("\\Theta","Θ"),V("\\Lambda","Λ"),V("\\Xi","Ξ"),V("\\Pi","Π"),V("\\Sigma","Σ"),V("\\Upsilon","Υ"),V("\\Phi","Φ"),V("\\Psi","Ψ"),V("\\Omega","Ω"),V("\\digamma","ϝ","mord","ams"),V("\\emptyset","∅"),V("\\varnothing","∅","mord","ams"),V("\\cap","∩","mbin"),V("\\cup","∪","mbin"),V("\\setminus","∖","mbin"),V("\\smallsetminus","∖","mbin","ams"),V("\\complement","∁","mord","ams"),V("\\in","∈","mrel"),V("\\notin","∉","mrel"),V("\\not","̸","mrel"),V("\\ni","∋","mrel"),V("\\owns","∋","mrel"),V("\\subset","⊂","mrel"),V("\\supset","⊃","mrel"),V("\\subseteq","⊆","mrel"),V("\\supseteq","⊇","mrel"),V("\\subsetneq","⊊","mrel","ams"),V("\\varsubsetneq","","mrel","ams"),V("\\subsetneqq","⫋","mrel","ams"),V("\\varsubsetneqq","","mrel","ams"),V("\\nsubset","⊄","mrel","ams"),V("\\nsupset","⊅","mrel","ams"),V("\\nsubseteq","⊈","mrel","ams"),V("\\nsupseteq","⊉","mrel","ams"),V("\\ "," ","spacing"),V("~"," ","spacing"),V("\\space"," ","spacing"),V("\\!",null,"spacing"),V("\\,",null,"spacing"),V("\\:",null,"spacing"),V("\\;",null,"spacing"),V("\\enskip",null,"spacing"),V("\\enspace",null,"spacing"),V("\\quad",null,"spacing"),V("\\qquad",null,"spacing"),V("\\colon",":","mpunct"),V("\\cdotp","⋅","mpunct"),V("\\cdots","⋯","minner"),V("\\ddots","⋱","minner"),V("\\ldots","…","minner"),V("\\mathellipsis","…","minner"),V("\\vdots","⋮"),V("\\ldotp",".","mpunct"),V(",",",","mpunct"),V(";",";","mpunct"),V("\\land","∧","mbin"),V("\\wedge","∧","mbin"),V("\\lor","∨","mbin"),V("\\vee","∨","mbin"),V("\\lnot","¬"),V("\\neg","¬"),V("\\barwedge","⊼","mbin","ams"),V("\\veebar","⊻","mbin","ams"),V("\\nor","⊻","mbin","ams"),V("\\curlywedge","⋏","mbin","ams"),V("\\curlyvee","⋎","mbin","ams"),V("\\square","□","mord","ams"),V("\\Box","□","mord","ams"),V("\\blacksquare","■","mord","ams"),V("\\boxminus","⊟","mbin","ams"),V("\\boxplus","⊞","mbin","ams"),V("\\boxtimes","⊠","mbin","ams"),V("\\boxdot","⊡","mbin","ams"),V("\\circ","∘","mbin"),V("\\bigcirc","◯","mbin"),V("\\bullet","∙","mbin"),V("\\circleddash","⊝","mbin","ams"),V("\\circledast","⊛","mbin","ams"),V("\\oplus","⊕","mbin"),V("\\ominus","⊖","mbin"),V("\\otimes","⊗","mbin"),V("\\odot","⊙","mbin"),V("\\circledcirc","⊚","mbin","ams"),V("\\oslash","⊘","mbin"),V("\\circledS","Ⓢ","mord","ams"),V("\\circledR","®","mord","ams"),V("\\triangle","△"),V("\\bigtriangleup","△","mbin"),V("\\vartriangle","△","mrel","ams"),V("\\triangleq","≜","mrel","ams"),V("\\triangledown","▽","mord","ams"),V("\\bigtriangledown","▽","mbin"),V("\\triangleleft","◃","mbin"),V("\\vartriangleleft","⊲","mrel","ams"),V("\\trianglelefteq","⊴","mrel","ams"),V("\\ntriangleleft","⋪","mrel","ams"),V("\\ntrianglelefteq","⋬","mrel","ams"),V("\\triangleright","▹","mbin"),V("\\vartriangleright","⊳","mrel","ams"),V("\\trianglerighteq","⊵","mrel","ams"),V("\\ntriangleright","⋫","mrel","ams"),V("\\ntrianglerighteq","⋭","mrel","ams"),V("\\blacktriangle","▲","mord","ams"),V("\\blacktriangledown","▼","mord","ams"),V("\\blacktriangleleft","◀","mrel","ams"),V("\\blacktriangleright","▶","mrel","ams"),V("\\/","/"),V("|","∣","textord"),V("\\And","&","mbin"),V("\\imath","ı"),V("\\jmath","ȷ"),V("\\degree","°"),V("'","′"),V('"',"”");const ke=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],_e=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],we=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Me=[0,1.2,1.8,2.4,3],ze=[{type:"small",mathstyle:c.scriptscriptstyle},{type:"small",mathstyle:c.scriptstyle},{type:"small",mathstyle:c.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Se=[{type:"small",mathstyle:c.scriptscriptstyle},{type:"small",mathstyle:c.scriptstyle},{type:"small",mathstyle:c.textstyle},{type:"stack"}],Le=[{type:"small",mathstyle:c.scriptscriptstyle},{type:"small",mathstyle:c.scriptstyle},{type:"small",mathstyle:c.textstyle},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Ae(e,t,i,a,o,s=""){if(!t||0===t.length||"."===t)return $e(e,o,e);let n;"<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),n=we.includes(t)?ze:ke.includes(t)?Le:Se;const l=function(e,t,i,a){for(let s=Math.min(2,3-a.mathstyle.size);st)return i[s]}var o;return i[i.length-1]}(J(t),i,n,o);return"small"===l.type?function(e,t,i,a,o,r=""){const s=$(e,A("Main-Regular",J(t)),o.mathstyle,i,r);return a&&s.setTop((1-o.mathstyle.sizeMultiplier/i.sizeMultiplier)*o.mathstyle.metrics.axisHeight),s.setStyle("color",o.color),"number"==typeof o.opacity&&s.setStyle("opacity",o.opacity),s}(e,t,l.mathstyle,a,o,"ML__small-delim "+s):"large"===l.type?be(e,t,l.size,a,o,s):xe(e,t,i,a,o,s)}function Ce(e,t,i,a,o,r=""){if("."===t)return $e(e,o,r);const s=o.mathstyle.metrics.axisHeight*o.mathstyle.sizeMultiplier,n=Math.max(i-s,a+s);return Ae(e,t,Math.max(n/500*901,2*n-.5),!0,o,r)}function $e(e,t,i){return L("","sizing"+t.mathstyle.adjustTo(c.textstyle)+" nulldelimiter "+(i||""),e)}const qe=[[8205,1],[65038,2],[127995,5],[129456,4],[917536,96]];let De;const Te=[127462,127487];function Ke(e){var t;return void 0===De&&(De={},qe.forEach(e=>{for(let t=e[0];t<=e[0]+e[1]-1;t++)De[t]=!0})),null!==(t=De[e])&&void 0!==t&&t}function Ee(e){return e>=Te[0]&&e<=Te[1]}function Ne(e){if(/^[\x20-\xFF]*$/.test(e))return e;const t=[],i=function(e){const t=[];for(let i=0;i=55296&&a<=56319){const t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){const e=a-55296,o=t-56320;a=Math.pow(2,16)+e*Math.pow(2,10)+o,i++}}t.push(a)}return t}(e);let a=0;for(;a=this.s.length}get(){return this.pos";if(this.obeyspaces&&this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]/))return"";const e=this.get();if("\\"===e){if(!this.end()){let e=this.match(/^[a-zA-Z*]+/);if(e)this.match(/^[ \f\n\r\t\v\xA0\u2028\u2029]*/);else if(e=this.get()," "===e)return"";return"\\"+e}}else{if("{"===e)return"<{>";if("}"===e)return"<}>";if("^"===e){if("^"===this.peek()){this.get();const e=this.match(/^(\^(\^(\^(\^[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f])?[0-9a-f][0-9a-f]/);if(e)return String.fromCodePoint(parseInt(e.slice(e.lastIndexOf("^")+1),16))}return e}if("#"===e){if(!this.end()){let e=!1;if(/[0-9?]/.test(this.peek())&&(e=!0,this.pos+1"):"<$>"}return e}}function Oe(e,t){var i,a,o,r;let s=[],n=e.next();if(n)if("\\relax"===n);else if("\\noexpand"===n)n=e.next(),n&&s.push(n);else if("\\obeyspaces"===n)e.obeyspaces=!0;else if("\\space"===n||"~"===n)s.push("");else if("\\bgroup"===n)s.push("<{>");else if("\\egroup"===n)s.push("<}>");else if("\\string"===n)n=e.next(),n&&("\\"===n[0]?Array.from(n).forEach(e=>s.push("\\"===e?"\\backslash":e)):"<{>"===n?s.push("\\{"):""===n?s.push("~"):"<}>"===n&&s.push("\\}"));else if("\\csname"===n){for(;""===e.peek();)e.next();let o="",r=!1,l=[];do{if(0===l.length)if(/^#[0-9?]$/.test(e.peek())){const o=e.get().slice(1);l=Fe(null!==(a=null!==(i=null==t?void 0:t[o])&&void 0!==i?i:null==t?void 0:t["?"])&&void 0!==a?a:"\\placeholder{}",t),n=l[0]}else n=e.next(),l=n?[n]:[];r=0===l.length,r||"\\endcsname"!==n||(r=!0,l.shift()),r||(r="<$>"===n||"<$$>"===n||"<{>"===n||"<}>"===n||n.length>1&&"\\"===n[0]),r||(o+=l.shift())}while(!r);o&&s.push("\\"+o),s=s.concat(l)}else if("\\endcsname"===n);else if(n.length>1&&"#"===n[0]){const e=n.slice(1);s=s.concat(Fe(null!==(r=null!==(o=null==t?void 0:t[e])&&void 0!==o?o:null==t?void 0:t["?"])&&void 0!==r?r:"\\placeholder{}",t))}else s.push(n);return s}function Fe(e,t){const i=e.toString().split(/\r?\n/);let a="",o="";for(const e of i){a+=o,o=" ";const t=e.match(/((?:\\%)|[^%])*/);null!==t&&(a+=t[0])}const r=new Be(a);let s=[];do{s=s.concat(Oe(r,t))}while(!r.end());return s}function Pe(e){let t="",i="";for(const a of e)a&&(/[a-zA-Z*]/.test(a[0])&&(i+=t),t=/\\[a-zA-Z]+\*?$/.test(a)?" ":"",i+=a);return i}function Re(e){return Pe(e.map(e=>{var t;return null!==(t={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[e])&&void 0!==t?t:e}))}const Ie={},He={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49};function Ve(e,t){Ie[e]={decompose:t}}function We(t,i){var a,o;function r(e){return"mord"===e.type&&Boolean(e.symbol)&&/^[0-9,.]$/.test(e.symbol)}function s(e){return"text"===e.mode}const n=t instanceof d?t:new d(t),l=!n.atomIdsSettings||!n.atomIdsSettings.groupNumbers;let c=[];if(e(i)){if(0===i.length)return[];if(1===i.length)c=i[0].decompose(n),c&&l&&i[0].isSelected&&c.forEach(e=>e.selected(!0));else{let e=[],t="",d=!0,m=null;for(let p=0;pe.selected(!0))):(e.length>0&&(c=[...c,...e],e=[]),c=c.concat(a))}}e.length>0&&(c=[...c,...e],e=[])}}else i instanceof Ue&&(c=i.decompose(n),c&&l&&i.isSelected&&c.forEach(e=>e.selected(!0)));if(!c||0===c.length)return null;if(n.mathstyle!==n.parentMathstyle){const e=n.mathstyle.sizeMultiplier/n.parentMathstyle.sizeMultiplier;for(const t of c)t.height*=e,t.depth*=e}if(n.size!==n.parentSize){const e=He[n.size]/He[n.parentSize];for(const t of c)t.height*=e,t.depth*=e}return c}class Ue{constructor(e,t,i="",a={}){this.mode=e,this.type=t,this.body=i,a.isPhantom&&this.setPhantom(!0),this.applyStyle(a)}toLatex(t=!1){return function(t,i){if(!(i=void 0!==i&&i)&&t.latex)return t.latex;let a="",o=0,r=0,s=0;const n=t.symbol;let l=[];const c=(t,a)=>function(t,i,a){let o="";return e(i)?o=function(e,t,i){if(0===t.length)return"";if("first"===t[0].type){if(1===t.length)return"";t=t.slice(1)}return 0===t.length?"":Pe(h(t,"cssClass").map(t=>{const a=Pe(h(t,"color").map(t=>Pe(function(e){const t=[];let i=[],a="NONE";return e.forEach(e=>{"first"!==e.type&&(e.mode!==a?(i.length>0&&t.push(i),i=[e],a=e.mode):i.push(e))}),i.length>0&&t.push(i),t}(t).map(t=>function(e,t,i){var a;return(null===(a=f[t[0].mode])||void 0===a?void 0:a.emitLatexRun)?f[t[0].mode].emitLatexRun(e,t,i):""}(e,t,i)))));return!t[0].cssClass||void 0!==e&&e.cssClass===t[0].cssClass?a:"ML__boldsymbol"===t[0].cssClass?"\\boldsymbol{"+a+"}":"ML__emph"===t[0].cssClass?"\\emph{"+a+"}":"\\class{"+t[0].cssClass+"}{"+a+"}"}))}(t,i,a):"number"==typeof i||"boolean"==typeof i?o=i.toString():"string"==typeof i?o=i.replace(/\s/g,"~"):null!=i&&"function"==typeof i.toLatex&&(o=i.toLatex(a)),o}(t,a,i);switch(t.type){case"group":n?a=i?c(t,t.body):t.latex:(a=t.latexOpen||(t.cssId||t.cssClass?"":"{"),t.cssId&&(a+="\\cssId{"+t.cssId+"}{"),"ML__emph"===t.cssClass?a+="\\emph{"+c(t,t.body):(t.cssClass&&(a+="\\class{"+t.cssClass+"}{"),a+=c(t,t.body),t.cssClass&&(a+="}")),t.cssId&&(a+="}"),a+=t.latexClose||(t.cssId||t.cssClass?"":"}"));break;case"array":if(a+="\\begin{"+t.environmentName+"}","array"===t.environmentName){if(a+="{",void 0!==t.colFormat)for(s=0;s0&&(a+=" & "),a+=c(t,t.array[r][o]);r0&&("first"!==this.body[0].type?t=this.body[0].getInitialBaseElement():this.body[1]&&(t=this.body[1].getInitialBaseElement())),t||this}getFinalBaseElement(){return e(this.body)&&this.body.length>0?this.body[this.body.length-1].getFinalBaseElement():this}isCharacterBox(){const e=this.getInitialBaseElement();return/minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(e.type)}setPhantom(e){this.forEach(t=>{t.isPhantom=e})}forEach(t){if(t(this),e(this.body))for(const e of this.body)e&&e.forEach(t);else this.body&&"object"==typeof this.body&&t(this.body);if(this.superscript)for(const e of this.superscript)e&&e.forEach(t);if(this.subscript)for(const e of this.subscript)e&&e.forEach(t);if(this.overscript)for(const e of this.overscript)e&&e.forEach(t);if(this.underscript)for(const e of this.underscript)e&&e.forEach(t);if(this.numer)for(const e of this.numer)e&&e.forEach(t);if(this.denom)for(const e of this.denom)e&&e.forEach(t);if(this.index)for(const e of this.index)e&&e.forEach(t);if(this.array)for(const e of this.array)for(const i of e)for(const e of i)e.forEach(t)}decomposeGroup(e){const t=L(We(e.clone({mathstyle:this.mathstyle?c[this.mathstyle]:void 0}),this.body),"","mord");return this.cssId&&(t.cssId=this.cssId),t.applyStyle({backgroundColor:this.backgroundColor,cssClass:this.cssClass}),t}decomposeOverlap(e){const t=L(We(e,this.body),"inner");return L([t,L(null,"fix")],"left"===this.align?"llap":"rlap","mord")}decomposeRule(e){const t=e.mathstyle,i=L("","rule","mord");let a=this.shift&&!isNaN(this.shift)?this.shift:0;a/=t.sizeMultiplier;const o=this.width/t.sizeMultiplier,r=this.height/t.sizeMultiplier;return i.setStyle("border-right-width",o,"em"),i.setStyle("border-top-width",r,"em"),i.setStyle("margin-top",-(r-a),"em"),i.setStyle("border-color",e.color),i.width=o,i.height=r+a,i.depth=-a,i}decompose(t,i=null){var a;let o=null;if(!this.type||/mord|minner|mbin|mrel|mpunct|mopen|mclose|textord/.test(this.type)?(o="string"==typeof this.body?this.makeSpan(t,this.body):this.makeSpan(t,We(t,this.body)),o.type=b(this.type)?this.type:""):"group"===this.type||"root"===this.type?o=this.decomposeGroup(t):"delim"===this.type?(o=L(null,""),o.delim=this.delim):"sizeddelim"===this.type?o=this.bind(t,function(e,t,i,a,o=""){return"."===t?$e(e,a,o):("<"===t||"\\lt"===t?t="\\langle":">"!==t&&"\\gt"!==t||(t="\\rangle"),ke.includes(t)||we.includes(t)?be(e,t,i,!1,a,o):_e.includes(t)?xe(e,t,Me[i],!1,a,o):null)}(this.cls,this.delim,this.size,t)):"overlap"===this.type?o=this.decomposeOverlap(t):"rule"===this.type?o=this.decomposeRule(t):"msubsup"===this.type?(o=L("​","","mord"),i&&(o.height=i[0].height,o.depth=i[0].depth)):"space"===this.type?o=this.makeSpan(t," "):"spacing"===this.type?"​"===this.body?o=this.makeSpan(t,"​"):" "===this.body?o="math"===this.mode?this.makeSpan(t," "):this.makeSpan(t," "):this.width?(o=L("​","mspace "),this.width>0?o.setWidth(this.width):o.setStyle("margin-left",this.width,"em")):o=L("​","mspace "+(null!==(a={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.symbol])&&void 0!==a?a:"mediumspace")):"mathstyle"===this.type?t.setMathstyle(this.mathstyle):"command"===this.type||"error"===this.type?(o=this.makeSpan(t,this.body),o.classes="",this.isError&&(o.classes+=" ML__error"),this.isSuggestion&&(o.classes+=" ML__suggestion")):o="placeholder"===this.type?this.makeSpan(t,"⬚"):"first"===this.type?this.makeSpan(t,"​"):Ie[this.type].decompose(t,this),!o)return null;if(this.caret&&"msubsup"!==this.type&&"command"!==this.type&&"placeholder"!==this.type&&"first"!==this.type&&(e(o)?"leftright"===this.type&&(this.superscript||this.subscript)||(o[o.length-1].caret=this.caret):o.caret=this.caret),this.containsCaret&&(e(o)?(o[0].classes=(o[0].classes||"")+" ML__contains-caret",o[o.length-1].classes=(o[o.length-1].classes||"")+" ML__contains-caret"):o.classes=(o.classes||"")+" ML__contains-caret"),!this.limits&&(this.superscript||this.subscript))if(e(o)){const e=o[o.length-1];o[o.length-1]=this.attachSupsub(t,e,e.type)}else o=[this.attachSupsub(t,o,o.type)];return e(o)?o:[o]}attachSupsub(e,t,i){if(!this.superscript&&!this.subscript)return t;const a=e.mathstyle;let o=null,r=null;this.superscript&&(o=L(We(e.sup(),this.superscript),a.adjustTo(a.sup()))),this.subscript&&(r=L(We(e.sub(),this.subscript),a.adjustTo(a.sub())));let s,n=0,l=0;this.isCharacterBox()||(n=M(t)-a.metrics.supDrop,l=z(t)+a.metrics.subDrop),s=a===c.displaystyle?a.metrics.sup1:a.cramped?a.metrics.sup3:a.metrics.sup2;const d=.05/(c.textstyle.sizeMultiplier*a.sizeMultiplier);let m=null;if(r&&o){n=Math.max(n,s,o.depth+.25*a.metrics.xHeight),l=Math.max(l,a.metrics.sub2);const i=.04;if(n-z(o)-(M(r)-l)<4*i){l=4*i-(n-o.depth)+M(r);const e=.8*a.metrics.xHeight-(n-z(o));e>0&&(n+=e,l-=e)}m=D(e,[r,l,o,-n],"individualShift"),this.isSymbol&&m.children[0].setLeft(-S(t))}else r&&!o?(l=Math.max(l,a.metrics.sub1,M(r)-.8*a.metrics.xHeight),m=D(e,[r],"shift",l),m.children[0].setRight(d),this.isCharacterBox()&&m.children[0].setLeft(-S(t))):!r&&o&&(n=Math.max(n,s,o.depth+.25*a.metrics.xHeight),m=D(e,[o],"shift",-n),m.children[0].setRight(d));const p=L(m,"msubsup");return this.caret&&(p.caret=this.caret,this.caret=""),L([t,p],"",i)}attachLimits(e,t,i,a){const o=this.superscript?L(We(e.sup(),this.superscript),e.mathstyle.adjustTo(e.mathstyle.sup())):null,r=this.subscript?L(We(e.sub(),this.subscript),e.mathstyle.adjustTo(e.mathstyle.sub())):null;return function(e,t,i,a,o,r){if(!o&&!r)return t;t=L(t);let s=0,n=0;o&&(s=Math.max(.111,.2-z(o))),r&&(n=Math.max(.166,.6-M(r)));let l=null;return r&&o?(l=D(e,[.1,r,n,t,s,o,.1],"bottom",.1+M(r)+z(r)+n+z(t)+i),l.children[0].setLeft(-a),l.children[2].setLeft(a)):r&&!o?(l=D(e,[.1,r,n,t],"top",M(t)-i),l.children[0].setLeft(-a)):!r&&o&&(l=D(e,[t,s,o,.1],"bottom",z(t)+i),l.children[1].setLeft(a)),L(l,"op-limits","mop")}(e,t,i,a,o,r)}bind(e,t){return"first"!==this.type&&"​"!==this.body&&(this.id=function(e){let t;return e.atomIdsSettings&&("number"==typeof e.atomIdsSettings.seed?(t=e.atomIdsSettings.overrideID?e.atomIdsSettings.overrideID:e.atomIdsSettings.seed.toString(36),e.atomIdsSettings.seed+=1):t=Date.now().toString(36).slice(-2)+Math.floor(1e5*Math.random()).toString(36)),t}(e),this.id&&(t.attributes||(t.attributes={}),t.attributes["data-atom-id"]=this.id)),t}makeSpan(e,t){const i=L(t,"","textord"===this.type?"mord":b(this.type)?this.type:""),a=this.getStyle();a.letterShapeStyle=e.letterShapeStyle,i.applyStyle(a);const o=(null==a?void 0:a.fontSize)?a.fontSize:"size5";return o!==e.parentSize?(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+o):e.parentSize!==e.size&&(i.classes+=" sizing reset-"+e.parentSize,i.classes+=" "+e.size),i.maxFontSize=Math.max(i.maxFontSize,e.mathstyle.sizeMultiplier||1),"text"===this.mode&&(i.classes+=" ML__text"),e.mathstyle.isTight()&&(i.isTight=!0),"math"!==this.mode&&(i.italic=0),i.setRight(i.italic),"number"==typeof e.opacity&&i.setStyle("opacity",e.opacity),this.bind(e,i),this.caret&&(this.superscript||this.subscript||(i.caret=this.caret,this.caret="",e.mathstyle.isTight()&&(i.isTight=!0))),i}}function je(t,i=[]){const a=new Ue(t,"root",i||[]);return!e(a.body)||0!==a.body.length&&"first"===a.body[0].type||a.body.unshift(new Ue(t,"first")),a}function Xe(t){return e(t)}function Ge(e){const t=L("​","arraycolsep");return t.setWidth(e),t}function Ze(e,t,i,a){const o=[];for(const r of t){const t=L(We(e,a));t.depth=r.depth,t.height=r.height,o.push(t),o.push(r.pos-i)}return D(e,o,"individualShift")}function Ye(e){return!/^<({|}|\$|\$\$|space)>$/.test(e)}Ve("accent",(t,i)=>{const a=t.mathstyle;let o=We(t.cramp(),i.body);(i.superscript||i.subscript)&&(o=[i.attachSupsub(t,L(o,"","mord"),"mord")]);let r=0;e(i.body)&&1===i.body.length&&i.body[0].isCharacterBox()&&(r=function(t){if(!t)return 0;if(e(t)){let e=0;for(const i of t)e+=i.skew||0;return e}return t.skew}(o));let s,n=Math.min(M(o),a.metrics.xHeight);if(i.svgAccent)s=T(i.svgAccent),n=.111-n;else{const e=A("Main-Regular",i.accent,"math");e.italic=0;const t="⃗"===i.accent?" accent-vec":"";s=L(L(e),"accent-body"+t)}return s=D(t,[o,-n,s]),s.children[1].setLeft(2*r),[L([s],"accent","mord")]}),Ve("array",(e,t)=>{var i;let a=t.colFormat;a&&0===a.length&&(a=[{align:"l"}]),a||(a=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]);const o=[];let r=0;for(const e of a)e.align&&r++;for(const e of t.array){let t=0;for(;t0&&(d+=p,n0&&b.push(D(e,i,"individualShift"))}const v=[];let x=!1,k=!1,_=0,w=!t.leftDelim;for(const t of a){if(t.align&&_>=b.length)break;if(t.align&&_{const i="number"==typeof t.padding?t.padding:.3,a=L(We(e,t.body),"","mord");a.setStyle("vertical-align",-z(a),"em"),a.setStyle("height",0);const o=L(a,"","mord"),r=L("","ML__box");r.setStyle("position","absolute"),r.setStyle("height",M(o)+z(o)+2*i,"em"),0!==i?r.setStyle("width","calc(100% + "+2*i+"em)"):r.setStyle("width","100%"),r.setStyle("top",-i,"em"),r.setStyle("left",-i,"em"),r.setStyle("z-index","-1"),r.setStyle("box-sizing","border-box"),t.backgroundcolor&&r.setStyle("background-color",t.backgroundcolor),t.framecolor&&r.setStyle("border","0.04em solid "+t.framecolor),t.border&&r.setStyle("border",t.border),o.setStyle("display","inline-block"),o.setStyle("height",M(o)+z(o),"em");const s=L([r,o]);return s.setStyle("position","relative"),s.setStyle("vertical-align",-i+z(o),"em"),s.height=M(o)+i,s.depth=z(o)+i,s.setLeft(i),s.setRight(i),s.setStyle("height",s.height+s.depth-2*i,"em"),s.setStyle("top",-i,"em"),s.setStyle("display","inline-block"),[s]}),Ve("enclose",(e,t)=>{const i=L(We(e,t.body),"","mord"),a="number"==typeof t.padding?t.padding:.3,o=L("","ML__notation");o.setStyle("position","absolute"),o.setStyle("height",M(i)+z(i)+2*a,"em"),o.height=M(i)+a,o.depth=z(i)+a,0!==a?o.setStyle("width","calc(100% + "+2*a+"em)"):o.setStyle("width","100%"),o.setStyle("top","0"),o.setStyle("left",-a,"em"),o.setStyle("z-index","-1"),t.backgroundcolor&&o.setStyle("background-color",t.backgroundcolor),t.notation.box&&o.setStyle("border",t.borderStyle),t.notation.actuarial&&(o.setStyle("border-top",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.madruwb&&(o.setStyle("border-bottom",t.borderStyle),o.setStyle("border-right",t.borderStyle)),t.notation.roundedbox&&(o.setStyle("border-radius",(M(i)+z(i))/2,"em"),o.setStyle("border",t.borderStyle)),t.notation.circle&&(o.setStyle("border-radius","50%"),o.setStyle("border",t.borderStyle)),t.notation.top&&o.setStyle("border-top",t.borderStyle),t.notation.left&&o.setStyle("border-left",t.borderStyle),t.notation.right&&o.setStyle("border-right",t.borderStyle),t.notation.bottom&&o.setStyle("border-bottom",t.borderStyle);let r="";if(t.notation.horizontalstrike&&(r+='{const i="auto"===t.mathstyle?e.mathstyle:c[t.mathstyle],a=e.clone({mathstyle:i});let o=[];t.numerPrefix&&o.push(L(t.numerPrefix,"mord"));const r=t.continuousFraction?i:i.fracNum();o=o.concat(We(a.clone({mathstyle:r}),t.numer));const s=q(o,e.mathstyle.adjustTo(r));let n=[];t.denomPrefix&&n.push(L(t.denomPrefix,"mord"));const l=t.continuousFraction?i:i.fracDen();n=n.concat(We(a.clone({mathstyle:l}),t.denom));const d=q(n,e.mathstyle.adjustTo(l)),m=t.hasBarLine?.04/i.sizeMultiplier:0;let p,u,h=0;i.size===c.displaystyle.size?(p=i.metrics.num1,h=m>0?3*m:.28,u=i.metrics.denom1):(m>0?(p=i.metrics.num2,h=m):(p=i.metrics.num3,h=.12),u=i.metrics.denom2);const f=s?z(s):0,g=d?M(d):0;let y;if(0===m){const e=p-f-(g-u);e{if(!t.body)return t.leftDelim?new Ue("math","mopen",t.leftDelim).decompose(e):t.rightDelim?new Ue("math","mclose",t.rightDelim).decompose(e):null;const i=e.clone(),a=We(i,t.body),o=i.mathstyle;let r=0,s=0,n=[];if(r=M(a)*o.sizeMultiplier,s=z(a)*o.sizeMultiplier,t.leftDelim&&(n.push(t.bind(e,Ce("mopen",t.leftDelim,r,s,i,"ML__open"))),n[n.length-1].applyStyle(t.getStyle())),a){for(let o=0;o{const i=e.mathstyle,a=We(e.cramp(),t.body),o=.04/i.sizeMultiplier,r=L(null,e.mathstyle.adjustTo(c.textstyle)+" "+t.position+"-line");let s;if(r.height=o,r.maxFontSize=1,"overline"===t.position)s=D(e,[a,3*o,r,o]);else{const t=L(a);s=D(e,[o,r,3*o,t],"top",M(t))}return[L(s,t.position,"mord")]}),Ve("mop",(t,i)=>{var a;const o=t.mathstyle;let r,s=0,n=0;if(i.isSymbol){const e=o.size===c.displaystyle.size&&"\\smallint"!==i.symbol;r=A(e?"Size2-Regular":"Size1-Regular",i.body,"op-symbol "+(e?"large-op":"small-op"),"mop"),s=(r.height-r.depth)/2-o.metrics.axisHeight*o.sizeMultiplier,n=r.italic,r.applyStyle({color:i.isPhantom?"transparent":i.color,backgroundColor:i.isPhantom?"transparent":i.backgroundColor,cssId:i.cssId,cssClass:i.cssClass,letterShapeStyle:t.letterShapeStyle})}else r=e(i.body)?L(We(t,i.body),"","mop"):i.makeSpan(t,i.body);i.bind(t,r),i.isSymbol&&r.setTop(s);let l=r;if(i.superscript||i.subscript){const e=null!==(a=i.limits)&&void 0!==a?a:"auto";l="limits"===e||"auto"===e&&o.size===c.displaystyle.size?i.attachLimits(t,r,s,n):i.attachSupsub(t,r,"mop")}return[l]}),Ve("overunder",(e,t)=>{const i=t.svgBody?T(t.svgBody):We(e,t.body),a=e.clone({mathstyle:c.scriptstyle});let o,r;t.svgAbove?o=T(t.svgAbove):t.overscript&&t.overscript.length>0&&(o=L(We(a,t.overscript),e.mathstyle.adjustTo(a.mathstyle))),t.svgBelow?r=T(t.svgBelow):t.underscript&&t.underscript.length>0&&(r=L(We(a,t.underscript),e.mathstyle.adjustTo(a.mathstyle))),o&&r&&(r.setLeft(.3),r.setRight(.3),o.setLeft(.3),o.setRight(.3));let s=function(e,t,i,a,o){if(!i&&!a)return L(t,"op-over-under",o);let r=0,s=0;i&&(r=Math.max(.111,.2-z(i))),a&&(s=Math.max(.166,.6-M(a)));let n=null;return a&&i?n=D(e,[0,a,s,t,r,i,.166],"bottom",M(a)+z(a)+z(t)):a&&!i?n=D(e,[0,a,s,t],"top",M(t)):i&&!a&&(n=D(e,[z(t),t,Math.max(.166,r),i],"bottom",z(t))),L(n,"op-over-under",o)}(e,i,o,r,b(t.type)?t.type:"mrel");return(t.superscript||t.subscript)&&(s=t.attachLimits(e,s,0,0)),[s]}),Ve("phantom",(e,t)=>{if("vphantom"===t.phantomType){const i=L(We(e,t.body),"inner");return[L([i,L(null,"fix")],"rlap","mord")]}if("hphantom"===t.phantomType||"smash"===t.phantomType||"bsmash"===t.phantomType||"tsmash"===t.phantomType){const i=L(We(e,t.body),"","mord");return"bsmash"!==t.phantomType&&(i.height=0),"tsmash"!==t.phantomType&&(i.depth=0),[L(D(e,[i]),"","mord")]}return[L(We(e,t.body),"","mord")]}),Ve("surd",(e,t)=>{var i;const a=e.mathstyle,o=null!==(i=We(e.cramp(),t.body))&&void 0!==i?i:L(""),r=.04/a.sizeMultiplier;let s=r;a.idM(o)+z(o)+n&&(n=(n+d-(M(o)+z(o)))/2),l.setTop(l.height-M(o)-(n+r));const m=L(null,e.mathstyle.adjustTo(c.textstyle)+" sqrt-line");m.applyStyle(t.getStyle()),m.height=r;const p=D(e,[o,n,m,r]);if(!t.index)return[t.bind(e,L([l,p],"sqrt","mord"))];const u=L(We(e.clone({mathstyle:c.scriptscriptstyle}),t.index),a.adjustTo(c.scriptscriptstyle)),h=L([L(D(e,[u],"shift",-.6*(Math.max(l.height,p.height)-Math.max(l.depth,p.depth))),"root"),l,p],"sqrt","mord");return h.height=l.height,h.depth=l.depth,[t.bind(e,h)]});class Je{constructor(e,t,i,a){this.index=0,this.style={},this.parseMode="math",this.smartFence=!1,this.tabularMode=!1,this.atoms=[],this.endCount=0,this.tokens=e,this.args=t,this.macros=i,this.onError=e=>a({before:Re(this.tokens.slice(this.index,this.index+10)),after:Re(this.tokens.slice(Math.max(0,this.index-10),this.index)),...e})}swapAtoms(e=[]){const t=this.atoms;return this.atoms=e,t}swapParseMode(e){const t=this.parseMode;return this.parseMode=e,t}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}get(){return this.endCount=0,this.index");)e=!0;return e}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){let e=!1;do{const t=this.matchWhitespace(),i=this.match("\\relax");e=!t&&!i}while(!e)}matchKeyword(e){const t=this.index;let i=this.end(),a="";for(;!i;){const t=this.get();Ye(t)?(a+=t,i=this.end()||a.length>=e.length):i=!0}const o=e.toUpperCase()===a.toUpperCase();return o||(this.index=t),o}scanString(){let e="",t=this.end();for(;!t;){if(this.match(""))e+=" ";else{const i=this.peek();"]"===i?t=!0:Ye(i)?e+=this.get():"\\"===i[0]?(this.onError({code:"unbalanced-braces"}),e+=this.get()):t=!0}t=t||this.end()}return e}scanBalancedString(){let e="",t=this.end(),i=1;for(;!t;){if(this.match(""))e+=" ";else{const t=this.get();"<{>"===t?(e+="{",i+=1):"<}>"===t?(i-=1,i>0?e+="}":this.index-=1):e+="<$>"===t?"$":"<$$>"===t?"$$":t}t=0===i||this.end()}return e}matchLiteralArg(){var e;let t="";if(this.match("<{>")){let i=1;for(;i>0&&!this.end();){const a=this.get();"<}>"===a?(i-=1,i>0&&(t+="}")):"<{>"===a?(i+=1,t+="{"):t+=null!==(e={"":" ","<$$>":"$$","<$>":"$"}[a])&&void 0!==e?e:a}}return t}scanColor(){return fe(this.scanString())}scanNumber(e=!0){var t,i;let a=!1,o=this.peek();for(;""===o||"+"===o||"-"===o;)this.get(),"-"===o&&(a=!a),o=this.peek();e=Boolean(e);let r=10,s=/[0-9]/;if(this.match("'"))r=8,s=/[0-7]/,e=!0;else if(this.match('"')||this.match("x"))r=16,s=/[0-9A-F]/,e=!0;else if(this.match("`"))return o=this.get(),o?o.startsWith("\\")&&2===o.length?(a?-1:1)*(null!==(t=o.codePointAt(1))&&void 0!==t?t:0):(a?-1:1)*(null!==(i=o.codePointAt(0))&&void 0!==i?i:0):NaN;let n="";for(;this.hasPattern(s);)n+=this.get();if(!e&&(this.match(".")||this.match(",")))for(n+=".";this.hasPattern(s);)n+=this.get();const l=e?parseInt(n,r):parseFloat(n);return a?-l:l}scanDimen(){const e=this.scanNumber(!1);let t;return this.matchWhitespace(),this.matchKeyword("pt")?t=s(e,"pt"):this.matchKeyword("mm")?t=s(e,"mm"):this.matchKeyword("cm")?t=s(e,"cm"):this.matchKeyword("ex")?t=s(e,"ex"):this.matchKeyword("px")?t=s(e,"px"):this.matchKeyword("em")?t=s(e,"em"):this.matchKeyword("bp")?t=s(e,"bp"):this.matchKeyword("dd")?t=s(e,"dd"):this.matchKeyword("pc")?t=s(e,"pc"):this.matchKeyword("in")?t=s(e,"in"):this.matchKeyword("mu")?t=s(e,"mu"):(this.onError({code:"missing-unit"}),t=s(e,"pt")),t}scanSkip(){const e=this.scanDimen();return this.matchWhitespace(),this.matchKeyword("plus")&&this.scanDimen(),this.matchWhitespace(),this.matchKeyword("minus")&&this.scanDimen(),e}scanColspec(){this.matchWhitespace();const e=[];for(;!this.end()&&"<}>"!==this.peek()&&"]"!==this.peek();){const t=this.get();if("c"===t||"r"===t||"l"===t)e.push({align:t});else if("|"===t)e.push({rule:!0});else if("@"===t){if(this.match("<{>")){const t=this.swapParseMode("math");e.push({gap:this.parse(e=>"<}>"===e)}),this.swapParseMode(t)}this.match("<}>")||this.onError({code:"unbalanced-braces"})}}return e}parseModeSet(){let e="";if(this.match("\\(")&&(e="\\)"),!e&&this.match("\\[")&&(e="\\]"),!e)return null;const t=this.swapParseMode("math"),i=new Ue("math","group");return i.mathstyle="\\)"===e?"textstyle":"displaystyle",i.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(t),i.body&&0!==i.body.length?i:null}parseModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;const t=new Ue("math","group");t.mathstyle="<$>"===e?"textstyle":"displaystyle",t.latexOpen="<$>"===e?"$":"$$",t.latexClose=t.latexOpen;const i=this.swapParseMode("math");return t.body=this.parse(t=>t===e),this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.swapParseMode(i),t.body&&0!==t.body.length?t:null}parseEnvironment(){if(!this.match("\\begin"))return null;const e=this.parseArgument("string");if(!e)return null;const t=ee(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const i=[];if(null==t?void 0:t.params)for(const a of t.params)if(a.isOptional)i.push(this.parseOptionalArgument(a.type));else{const t=this.parseArgument(a.type);t||this.onError({code:"missing-argument",arg:e}),i.push(t)}const a=this.parseMode,o=this.tabularMode,r=this.swapAtoms([]);this.tabularMode=t.tabular;const s=[],n=[];let l=[],c=!1;do{if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c&&this.match("\\end")&&(this.parseArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),c=!0),!c)if(this.matchColumnSeparator())l.push(this.swapAtoms([]));else if(this.matchRowSeparator()){l.push(this.swapAtoms([]));let e=0;this.matchWhitespace(),this.match("[")&&(e=this.scanDimen(),this.matchWhitespace(),this.match("]")),n.push(e||0),s.push(l),l=[]}else this.atoms=this.atoms.concat(this.parse(e=>"<}>"===e||"&"===e||"\\end"===e||"\\cr"===e||"\\\\"===e))}while(!c);l.push(this.swapAtoms([])),l.length>0&&s.push(l);const d=this.swapAtoms(r);if(this.parseMode=a,this.tabularMode=o,!t.tabular&&0===d.length)return null;if(t.tabular&&0===s.length)return null;const m=new Ue(this.parseMode,"array",d);return Object.assign(m,t.parser(e,i,s)),m.array=s,m.rowGaps=n,m.environmentName=e,m}parse(e){var t;const i=this.style;e||(e=e=>"<}>"===e);let a="",o=null,r=[],s=null;const n=this.swapAtoms([]);for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!a?(a=this.get(),o=te(a,"math",this.macros),o&&(r=this.parseArguments(o)[1]),s=this.swapAtoms([])):this.parseToken();let l;return a?(r.unshift(this.swapAtoms(n)),s&&r.unshift(s),l=[new Ue(this.parseMode,o.type,null!==(t=o.value)&&void 0!==t?t:a.slice(1),o.parse?o.parse(a,r):null)],l[0].symbol=a):l=this.swapAtoms(n),this.style=i,l}parseGroup(){if(!this.match("<{>"))return null;const e=new Ue(this.parseMode,"group");return e.body=this.parse(e=>"<}>"===e),this.match("<}>")||this.onError({code:"unbalanced-braces"}),e.latexOpen="{",e.latexClose="}",e}scanSmartFence(){if(this.matchWhitespace(),!this.match("("))return null;const e=new Ue(this.parseMode,"leftright");e.leftDelim="(",e.inner=!1;const t=this.swapAtoms([]);let i=1;for(;!this.end()&&0!==i;)this.match("(")&&(i+=1),this.match(")")&&(i-=1),0!==i&&this.parseToken();return 0===i&&this.match(")"),e.rightDelim=0===i?")":"?",e.body=this.swapAtoms(t),e}scanDelim(){this.matchWhitespace();const e=this.get();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;let t=".";("\\"===e[0]||Ye(e))&&(t=e);const i=te(t,"math",this.macros);return i?i.mode&&!i.mode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:t}),null):"mopen"===i.type||"mclose"===i.type||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(t)?t:(this.onError({code:"unexpected-delimiter",arg:t}),null):(this.onError({code:"unknown-command",arg:t}),null)}parseLeftRight(){if(this.match("\\right")||this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),null;const e=this.style;let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const i=this.scanDelim();if(!i)return null;const a=this.swapAtoms([]);for(;!this.end()&&!this.match(t);)this.parseToken();this.style=e;const o=this.scanDelim(),r=new Ue(this.parseMode,"leftright","",this.style);return r.leftDelim=i,r.rightDelim=null!=o?o:void 0,r.inner="right"===t,r.body=this.swapAtoms(a),r}parseSupSub(){var e,t;if("math"!==this.parseMode)return!1;let i=!1,a=this.peek();for(;"^"===a||"_"===a||"'"===a;){const o="_"===a?"subscript":"superscript";if(this.match("^")||this.match("_")){const t=this.parseArgument("math");if(t){const a=this.lastSubsupAtom();a[o]=(null!==(e=a[o])&&void 0!==e?e:[]).concat(t),i=!0}}else if(this.match("'")){const e=this.lastSubsupAtom(),a=new Ue(e.mode,"mord","′");a.symbol="\\prime",e.superscript=null!==(t=e.superscript)&&void 0!==t?t:[],e.superscript.push(a),i=!0}a=this.peek()}return i}parseLimits(){if(this.match("\\limits")){const e=this.lastSubsupAtom();return e.limits="limits",e.explicitLimits=!0,!0}if(this.match("\\nolimits")){const e=this.lastSubsupAtom();return e.limits="nolimits",e.explicitLimits=!0,!0}return!1}parseArguments(e){if(!e||!e.params)return[void 0,[]];let t;const i=[];let a=e.infix?2:0;for(;a")){if("delim"===e)return null!==(t=this.scanDelim())&&void 0!==t?t:".";if(/^(math|text)$/.test(e)){const t=this.swapParseMode(e),i=this.parseSimpleToken();return this.swapParseMode(t),i}}const a=this.parseMode;this.parseMode=e;const o=this.swapAtoms([]);if("string"===e)i=this.scanString(),this.skipUntilToken("<}>");else if("balanced-string"===e)i=this.scanBalancedString(),this.skipUntilToken("<}>");else if("number"===e)i=this.scanNumber(),this.skipUntilToken("<}>");else if("dimen"===e)i=this.scanDimen(),this.skipUntilToken("<}>");else if("skip"===e)i=this.scanSkip(),this.skipUntilToken("<}>");else if("colspec"===e)i=this.scanColspec(),this.skipUntilToken("<}>");else if("color"===e)i=this.scanColor()||"#ffffff",this.skipUntilToken("<}>");else if("delim"===e)i=this.scanDelim()||".",this.skipUntilToken("<}>");else{const t=this.index;let a=1;do{const e=this.get();"<}>"===e&&(a-=1),"<{>"===e&&(a+=1)}while(a>0&&!this.end());if(i=function(e,t,i,a){var o;return(null===(o=f[e])||void 0===o?void 0:o.parse)?f[e].parse(t,i,a):null}(e,this.tokens.slice(t,this.index-1),this.onError,{args:this.args,macros:this.macros,smartFence:this.smartFence,style:this.style,parse:(e,t,a)=>{const o=new Je(t,a.args,a.macros,this.onError);return o.parseMode=e,o.style=a.style,i=o.parse(),[i,t.slice(o.index)]}}),!i){this.index=t;do{this.atoms=this.atoms.concat(this.parse())}while(!this.match("<}>")&&!this.end())}}this.parseMode=a;const r=this.swapAtoms(o);return null!=i?i:r}parseOptionalArgument(e){var t;if(e="auto"===e?this.parseMode:e,this.matchWhitespace(),!this.match("["))return null;const i=this.parseMode;this.parseMode=e;const a=this.swapAtoms();let o;for(;!this.end()&&!this.match("]");)if("string"===e)o=this.scanString();else if("number"===e)o=this.scanNumber();else if("dimen"===e)o=this.scanDimen();else if("skip"===e)o=this.scanSkip();else if("colspec"===e)o=this.scanColspec();else if("color"===e)o=null!==(t=this.scanColor())&&void 0!==t?t:"#ffffff";else if("bbox"===e){const e=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/),t={};for(const i of e){const e=fe(i);if(e)t.backgroundcolor=e;else{const e=i.match(/^\s*([0-9.]+)\s*([a-z][a-z])/);if(e)t.padding=s(e[1],e[2]);else{const e=i.match(/^\s*border\s*:\s*(.*)/);e&&(t.border=e[1])}}}o=t}else this.atoms=this.atoms.concat(this.parse(e=>"]"===e));this.parseMode=i;const r=this.swapAtoms(a);return null!=o?o:r}parseSimpleToken(){const t=this.get();if(!t)return null;let i=null;if(""===t)"text"===this.parseMode&&(i=new Ue("text",""," ",this.style),i.symbol=" ");else if("\\"===t[0]){if("\\placeholder"===t)i=new Ue(this.parseMode,"placeholder",this.parseArgument("string"),this.style),i.captureSelection=!0;else if("\\char"===t){const e=this.index;let t=Math.floor(this.scanNumber(!0));(!isFinite(t)||t<0||t>1114111)&&(t=10067),i=new Ue(this.parseMode,"math"===this.parseMode?"mord":"",String.fromCodePoint(t)),i.symbol="\\char",i.latex="\\char"+Re(this.tokens.slice(e,this.index))}else if("\\hskip"===t||"\\kern"===t){const e=this.scanSkip();isFinite(e)&&(i=new Ue(this.parseMode,"spacing",null,this.style),i.width=e,i.symbol=t,i.latex=t)}else if(i=this.scanMacro(t),!i){const e=te(t,this.parseMode,{});if(!e)return this.onError({code:"unknown-command",arg:t}),i=new Ue("math","error",t),i.symbol=t,i.latex=t,[i];if(e.mode&&!e.mode.includes(this.parseMode))return this.onError({code:"invalid-command",arg:t}),i=new Ue("math","error",t),i.symbol=t,i.latex=t,[i];const a=this.index,[o,r]=this.parseArguments(e);if(!r)return null;if(e.infix)this.onError({code:"too-many-infix-commands",arg:t});else{if(e.parse){const a=e.parse(t,r);if(a.type)i=new Ue(this.parseMode,e.type,o?this.parseArgument(o):null,{...this.style,...a});else{const e=this.parseMode;if(a.mode&&(this.parseMode=a.mode,delete a.mode),a.mathstyle){this.parseMode="math";const e=new Ue("math","mathstyle");e.mathstyle=a.mathstyle,this.atoms.push(e)}if(o){const e=this.style;this.style={...this.style,...a},i=this.parseArgument(o),this.style=e}else this.style={...this.style,...a};this.parseMode=e}}else{const a={...this.style,variant:e.variant||this.style.variant,variantStyle:e.variantStyle||this.style.variantStyle};i=new Ue(this.parseMode,e.type||"mop",e.value||t,a)}if(i instanceof Ue&&!/^\\(llap|rlap|class|cssId)$/.test(t)){i.symbol=t;const e=Re(this.tokens.slice(a,this.index));if(e&&(i.latex=i.symbol+e),i.isFunction&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}}}}else if(Ye(t)){const e=te(t,this.parseMode,this.macros);if(e){const a={...this.style};i=new Ue(this.parseMode,e.type,e.value||t,a),e.isFunction&&(i.isFunction=!0)}else i=new Ue(this.parseMode,"math"===this.parseMode?"mord":"",t,this.style);if(i.symbol=t,i.latex=Z(this.parseMode,t),(null==e?void 0:e.isFunction)&&this.smartFence){const e=this.scanSmartFence();e&&(i=[i,e])}}else"<}>"===t?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:t});return i&&!e(i)?[i]:i}scanMacro(e){var t;const i=e.slice(1);if(!this.macros||!this.macros[i])return null;const a=this.index,o=[];let r,s=0;"string"==typeof this.macros[i]?(r=this.macros[i],/(^|[^\\])#1/.test(r)&&(s=1),/(^|[^\\])#2/.test(r)&&(s=2),/(^|[^\\])#3/.test(r)&&(s=3),/(^|[^\\])#4/.test(r)&&(s=4),/(^|[^\\])#5/.test(r)&&(s=5),/(^|[^\\])#6/.test(r)&&(s=6),/(^|[^\\])#7/.test(r)&&(s=7),/(^|[^\\])#8/.test(r)&&(s=8),/(^|[^\\])#9/.test(r)&&(s=9)):(r=this.macros[i].def,s=this.macros[i].args||0);for(let e=1;e<=s;e++)o[e]=this.matchLiteralArg();o["?"]=null===(t=this.args)||void 0===t?void 0:t["?"];const n=new Ue(this.parseMode,"group",Qe(r,this.parseMode,o,this.macros,!1,this.onError));return n.captureSelection=!0,n.symbol=e,n.latex=e+Re(this.tokens.slice(a,this.index)),n}parseToken(){let t=this.parseEnvironment()||this.parseModeShift()||this.parseModeSet()||this.parseGroup()||this.parseLeftRight();return!(t||!this.parseSupSub()&&!this.parseLimits())||(t||(t=this.parseSimpleToken()),e(t)?this.atoms=this.atoms.concat(t):t&&this.atoms.push(t),null!==t)}}function Qe(e,t,i,a,o=!1,r){let s=[];const n=new Je(Fe(e,i),i,a,t=>{"function"==typeof r&&r({...t,latex:e})});for(n.parseMode=t||"math",o&&(n.smartFence=!0);!n.end();){const e=n.parse();e&&(s=s.concat(e))}return s}var et,tt;const it=null!==(tt=null===(et=document.currentScript)||void 0===et?void 0:et.src)&&void 0!==tt?tt:function(){const e=String((new Error).stack).replace(/^Error.*\n/,"").split("\n");if(0===e.length)return"";const t=e[0].match(/http.*js/);return t?t[0]:""}();async function at(e,t){var i;if((null===(i=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))||void 0===i||!i)&&"fonts"in document){const i=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"];let a=!1;if(!/firefox/i.test(navigator.userAgent))try{a=i.every(e=>document.fonts.check("16px "+e))}catch(e){a=!1}if(!a){if(document.body.classList.contains("ML__fonts-loading"))return;document.body.classList.add("ML__fonts-loading");const i=new URL(null!=e?e:"./fonts",it).toString(),a=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular",{style:"italic"}],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(e=>function(e,t,i={}){return new FontFace(e,`url(${t}.woff2) format('woff2'), url(${t}.woff) format('woff')`,i)}(e[0].replace(/-[a-zA-Z]+$/,""),i+"/"+e[0],e[1]));try{(await Promise.all(a.map(e=>{try{return e.load()}catch(e){"function"==typeof t&&t({code:"font-not-found",arg:e})}}))).forEach(e=>document.fonts.add(e)),document.body.classList.remove("ML__fonts-loading")}catch(e){}}}}function ot(e,t){var i,a;if(!t)return null;let o=null!==(i=null==e?void 0:e.getRootNode())&&void 0!==i?i:null===document||void 0===document?void 0:document.head;if(!o)return null;o===document&&(o=document.head);const r=function(e){let t=0;if(0===e.length)return t;for(let i=0;i{var e;const t=document.head.querySelector(`style[data-id="${r}"]`);if(t){const i=parseFloat(null!==(e=t.getAttribute("data-refcount"))&&void 0!==e?e:"0");1===i?t.remove():t.setAttribute("data-refcount",Number(i-1).toString())}}}}function rt(e){return 0===e.length||1===e.length&&"first"===e[0].type}function st(e){const t=e.siblings();for(let e=t.length-1;e>=0;e--)t[e].isSuggestion&&t.splice(e,1)}function nt(e){let t=1,i=e.ancestor(t);for(;i;)i.latex=void 0,t+=1,i=e.ancestor(t)}function lt(e,t,i={accessibleAtomsOnly:!1}){const a={...t},o=i.accessibleAtomsOnly?e.lastPosition-1:e.lastPosition;return-1===a.end?a.end=o:isNaN(a.end)?a.end=a.start:a.end=Math.min(a.end,o),a.start1&&(t.extent=parseInt(i[1]));const a=i[0].split("/");for(const e of a){const i=e.match(/([^:]*):(.*)/);i&&t.path.push({relation:i[1],offset:parseInt(i[2])})}return t}function mt(e,t){let i=0,a=-1,o=!1;for(;!o;)a+=1,o=a>=e.length||a>=t.length,o=o||!(e[a].relation===t[a].relation&&e[a].offset===t[a].offset);return i=a===e.length&&a===t.length?0:a+1===e.length&&a+1===t.length&&e[a].relation===t[a].relation?1:2,i}function pt(e){return dt(ct(e)).path}function ut(e,t){let i=0;for(let a=0;a0;)a.col+=1,(!e[a.row]||a.col>=e[a.row].length)&&(a.col=0,a.row+=1),i-=1;return a}function ft(t,i,a=!0){var o;let r;return"object"!=typeof i&&(i=ht(t,i)),e(t[i.row])&&(r=null!==(o=t[i.row][i.col])&&void 0!==o?o:null),a&&r&&(0===r.length||"first"!==r[0].type)&&r.unshift(new Ue("math","first")),r}function gt(e){let t=0,i=0,a=1;for(const t of e)i+=1,t.length>a&&(a=t.length);return t=i*a,t}function yt(e,t,i){const a={...t};if(a.row+=i,a.row<0){if(a.col+=i,a.row=e.length-1,a.col<0)return null;for(;a.row>=0&&!ft(e,a);)a.row-=1;if(a.row<0)return null}else if(a.row>=e.length){for(a.col+=i,a.row=0;a.rowe.length-1)return null}return a}const bt={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML_bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},vt={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[0-9A-Z ]$/,fraktur:/^[0-9A-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/,"sans-serif":/^[0-9A-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039b\u039e\u03A0\u03A3\u03A5\u03A8\u03a9]$/},xt=/^[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5]$/,kt=[/^[a-z]$/,/^[A-Z]$/,xt,/^[\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9]$/],_t={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]};g("math",{emitLatexRun:function(e,t,i){let a=e.variant;return e.variantStyle&&"up"!==e.variantStyle&&(a+="-"+e.variantStyle),Pe(h(t,"color").map(t=>{const o=Pe(h(t,"variant").map(t=>{let o=t[0].variant;if(t[0].variantStyle&&"up"!==t[0].variantStyle&&(o+="-"+t[0].variantStyle),t.every(t=>{const i=te(t.symbol,e.mode,null);if(!i||!i.variant&&!i.variantStyle)return!1;let a=t.variant;return t.variantStyle&&"up"!==t.variantStyle&&(a+="-"+t.variantStyle),a===o}))return Pe(t.map(e=>e.toLatex(i)));let r="";return o&&o!==a&&(r={calligraphic:"\\mathcal{",fraktur:"\\mathfrak{","double-struck":"\\mathbb{",script:"\\mathscr{",monospace:"\\mathtt{","sans-serif":"\\mathsf{",normal:"\\mathrm{","normal-italic":"\\mathit{","normal-bold":"\\mathbf{","normal-bolditalic":"\\mathbfit{",ams:"","ams-italic":"\\mathit{","ams-bold":"\\mathbf{","ams-bolditalic":"\\mathbfit{",main:"","main-italic":"\\mathit{","main-bold":"\\mathbf{","main-bolditalic":"\\mathbfit{"}[o]),r+Pe(t.map(e=>e.toLatex(i)))+(r?"}":"")}));return!t[0].color||e&&e.color===t[0].color?o:"\\textcolor{"+ge(t[0].color)+"}{"+o+"}"}))},applyStyle:function(e,t){const i="auto"!==t.letterShapeStyle&&t.letterShapeStyle?t.letterShapeStyle:"tex";let a=t.variant||"normal",o=t.variantStyle||"";"normal"===a&&!o&&/\u00a3|\u0131|\u0237/.test(e.body)&&(a="main",o="italic"),"normal"!==a||o||1!==e.body.length||kt.forEach((t,a)=>{t.test(e.body)&&"it"===_t[i][a]&&(o="italic")}),"up"===o&&(o="");const r=o?a+"-"+o:a,[s,n]=bt[r];return vt[a]&&!vt[a].test(e.body)?(e.body=G(e.body,a,o),e.variant="",e.variantStyle="",null):(xt.test(e.body)&&(e.classes+=" lcGreek"),n&&(e.classes+=" "+n),s)}});const wt={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"};g("text",{emitLatexRun:function(e,t,i){const a=function(e,t,i){return Pe(h(t,"color").map(t=>{const i=function(e,t,i){return function(e,t,i){return Pe(h(t,"fontFamily").map(e=>{const t=function(e,t,i){return Pe(h(t,"fontSize").map(e=>{const t=function(e,t,i){return Pe(h(t,"fontSeries").map(e=>{const t=function(e,t,i){return Pe(h(t,"fontShape").map(e=>{const t=function(e,t,i){let a=!1;return Pe(t.map(e=>{let t="",i="";return e.latex?t=e.latex:"string"==typeof e.body?t=Y("text",e.body):e.symbol&&(t=e.symbol.replace(/\\/g,"\\backslash ")),!a||t&&!/^[a-zA-Z0-9*]/.test(t)||(i="{}"),a=/\\[a-zA-Z0-9]+\*?$/.test(t),i+t}))}(0,e);return"it"===e[0].fontShape?"\\textit{"+t+"}":"sl"===e[0].fontShape?"\\textsl{"+t+"}":"sc"===e[0].fontShape?"\\textsc{"+t+"}":"n"===e[0].fontShape?"\\textup{"+t+"}":e[0].fontShape?"\\fontshape{"+e[0].fontShape+"}"+t:t}))}(0,e);return"b"===e[0].fontSeries?"\\textbf{"+t+"}":"l"===e[0].fontSeries?"\\textlf{"+t+"}":"m"===e[0].fontSeries?"\\textmd{"+t+"}":e[0].fontSeries?"\\fontseries{"+e[0].fontSeries+"}"+t:t}))}(0,e),i={size1:"tiny",size2:"scriptsize",size3:"footnotesize",size4:"small",size5:"normalsize",size6:"large",size7:"Large",size8:"LARGE",size9:"huge",size10:"Huge"}[e[0].fontSize]||"";return i?"\\"+i+" "+t:t}))}(0,e),i={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[e[0].fontFamily]||"";return i?"\\"+i+"{"+t+"}":e[0].fontFamily?"\\fontfamily{"+e[0].fontFamily+"}"+t:t}))}(0,t)}(0,t);return!t[0].color||"none"===t[0].color||e&&e.color===t[0].color?i:"\\textcolor{"+ge(t[0].color)+"}{"+i+"}"}))}(e,t);return t.every(e=>e.fontSeries||e.fontShape||e.fontFamily)&&t[0].mode===e.mode?a:`\\text{${a}}`},applyStyle:function(e,t){const i=t.fontFamily;if(wt[i]?e.classes+=" "+wt[i]:i&&e.setStyle("font-family",i),t.fontShape&&(e.classes+=" "+({it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape]||"")),t.fontSeries){const i=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);i&&(e.classes+=" "+({ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[i[1]||""]||""),e.classes+=" "+({uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[i[2]||""]||""))}return"Main-Regular"},parse:(e,t,i)=>function(e,t,i){let a,o=[];for(;e.length>0;){const r=e.shift();if(""===r)a=new Ue("text",""," ",i.style),a.symbol=" ",o.push(a);else if("\\"===r[0]){let t;e.unshift(r),[t,e]=i.parse("text",e,i),o=[...o,...t]}else if("<$>"===r||"<$$>"===r){const t=e.slice(0,e.findIndex(e=>e===r));e=e.slice(t.length+1);const[a]=i.parse("math",t,i);o=[...o,...a]}else if("<{>"===r||"<}>"===r);else{const e=te(r,"text",i.macros);!e||e.mode&&!e.mode.includes("text")?t({code:"unexpected-token"}):(a=new Ue("text",e?e.type:"",e?e.value:r,i.style),a.symbol=r,a.latex=U("text",r),o.push(a))}}return[o,e]}(e,t,i)[0]}),le(["ce","pu"],"{chemformula:balanced-string}",null,(e,t)=>({type:"group",mode:"chem",body:Qe(zt.go(Mt.go(t[0],"\\pu"===e?"pu":"ce"))),latexOpen:"\\"+e+"{",latexClose:"}"}));var Mt={go:function(e,t){if(!e)return[];void 0===t&&(t="ce");var i,a="0",o={parenthesisLevel:0};e=(e=(e=e.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var r=10,s=[];;){i!==e?(r=10,i=e):r--;var n=Mt.stateMachines[t],l=n.transitions[a]||n.transitions["*"];e:for(var c=0;c0))return s;if(m.revisit||(e=d.remainder),!m.toContinue)break e}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var i=0;i":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return Mt.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return Mt.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return Mt.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return Mt.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return Mt.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return Mt.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return Mt.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t[0],remainder:e.substr(t[0].length)};var i=Mt.patterns.findObserveGroups(e,"","$","$","");return i&&(t=i.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,i,a,o,r,s,n,l,c){var d=function(e,t){if("string"==typeof t)return 0!==e.indexOf(t)?null:t;var i=e.match(t);return i?i[0]:null},m=d(e,t);if(null===m)return null;if(e=e.substr(m.length),null===(m=d(e,i)))return null;var p=function(e,t,i){for(var a=0;t":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var i;if((e.d||"").match(/^[0-9]+$/)){var a=e.d;e.d=void 0,i=this.output(e),e.b=a}else i=this.output(e);return Mt.actions["o="](e,t),i},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var i=[];return Mt.concatArray(i,this.output(e)),Mt.concatArray(i,Mt.actions.bond(e,t,"-")),i}e.d=t},"- after o/d":function(e,t,i){var a=Mt.patterns.match_("orbital",e.o||""),o=Mt.patterns.match_("one lowercase greek letter $",e.o||""),r=Mt.patterns.match_("one lowercase latin letter $",e.o||""),s=Mt.patterns.match_("$one lowercase latin letter$ $",e.o||""),n="-"===t&&(a&&""===a.remainder||o||r||s);!n||e.a||e.b||e.p||e.d||e.q||a||!r||(e.o="$"+e.o+"$");var l=[];return n?(Mt.concatArray(l,this.output(e)),l.push({type_:"hyphen"})):(a=Mt.patterns.match_("digits",e.d||""),i&&a&&""===a.remainder?(Mt.concatArray(l,Mt.actions["d="](e,t)),Mt.concatArray(l,this.output(e))):(Mt.concatArray(l,this.output(e)),Mt.concatArray(l,Mt.actions.bond(e,t,"-")))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:Mt.go(t,"o")}},comma:function(e,t){var i=t.replace(/\s*$/,"");return i!==t&&0===e.parenthesisLevel?{type_:"comma enumeration L",p1:i}:{type_:"comma enumeration M",p1:i}},output:function(e,t,i){var a,o,r;for(var s in e.r?(o="M"===e.rdt?Mt.go(e.rd,"tex-math"):"T"===e.rdt?[{type_:"text",p1:e.rd||""}]:Mt.go(e.rd),r="M"===e.rqt?Mt.go(e.rq,"tex-math"):"T"===e.rqt?[{type_:"text",p1:e.rq||""}]:Mt.go(e.rq),a={type_:"arrow",r:e.r,rd:o,rq:r}):(a=[],(e.a||e.b||e.p||e.o||e.q||e.d||i)&&(e.sb&&a.push({type_:"entitySkip"}),e.o||e.q||e.d||e.b||e.p||2===i?e.o||e.q||e.d||!e.b&&!e.p?e.o&&"kv"===e.dType&&Mt.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&"kv"===e.dType&&!e.q&&(e.dType=void 0):(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):(e.o=e.a,e.a=void 0),a.push({type_:"chemfive",a:Mt.go(e.a,"a"),b:Mt.go(e.b,"bd"),p:Mt.go(e.p,"pq"),o:Mt.go(e.o,"o"),q:Mt.go(e.q,"pq"),d:Mt.go(e.d,"oxidation"===e.dType?"oxidation":"bd"),dType:e.dType}))),e)"parenthesisLevel"!==s&&"beginsWithBond"!==s&&delete e[s];return a},"oxidation-output":function(e,t){var i=["{"];return Mt.concatArray(i,Mt.go(t,"oxidation")),i.push("}"),i},"frac-output":function(e,t){return{type_:"frac-ce",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:Mt.go(t[0]),p2:Mt.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Mt.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,i){return{type_:"operator",kind_:i||t}}}},a:{transitions:Mt.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Mt.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var i in e)delete e[i];return t}}}},pq:{transitions:Mt.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:Mt.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Mt.go(t[1],"pq")}}}},bd:{transitions:Mt.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:Mt.go(t[1],"bd")}}}},oxidation:{transitions:Mt.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"tex-math tight":{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var i in e)delete e[i];return t}}}},"9,9":{transitions:Mt.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),t[1]&&(Mt.concatArray(i,Mt.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?Mt.concatArray(i,Mt.go(t[2],"pu-9,9")):i.push(t[2])),t[3]=t[4]||t[3],t[3]&&(t[3]=t[3].trim(),"e"===t[3]||"*"===t[3].substr(0,1)?i.push({type_:"cdot"}):i.push({type_:"times"}))),t[3]&&i.push("10^{"+t[5]+"}"),i},"number^":function(e,t){var i=[];return"+-"===t[0]||"+/-"===t[0]?i.push("\\pm "):t[0]&&i.push(t[0]),Mt.concatArray(i,Mt.go(t[1],"pu-9,9")),i.push("^{"+t[2]+"}"),i},operator:function(e,t,i){return{type_:"operator",kind_:i||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,i=Mt.patterns.match_("{(...)}",e.d||"");i&&""===i.remainder&&(e.d=i.match_);var a=Mt.patterns.match_("{(...)}",e.q||"");if(a&&""===a.remainder&&(e.q=a.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:Mt.go(e.d,"pu"),q:Mt.go(e.q,"pu")};"//"===e.o?t={type_:"pu-frac",p1:o.d,p2:o.q}:(t=o.d,o.d.length>1||o.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),Mt.concatArray(t,o.q))}else t=Mt.go(e.d,"pu-2");for(var r in e)delete e[r];return t}}},"pu-2":{transitions:Mt.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var i=Mt.patterns.match_("{(...)}",e.rm||"");t=i&&""===i.remainder?Mt.go(i.match_,"pu"):{type_:"rm",p1:e.rm}}for(var a in e)delete e[a];return t}}},"pu-9,9":{transitions:Mt.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var i=e.text_.length%3;0===i&&(i=3);for(var a=e.text_.length-3;a>0;a-=3)t.push(e.text_.substr(a,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,i)),t.reverse()}else t.push(e.text_);for(var o in e)delete e[o];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var i=e.text_.length-3,a=0;a":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"rightleftarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"rightequilibrium";case"<<=>":return"leftequilibrium";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";case"~=":case"~--":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"-~-":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};const St={"''":{mode:"math",value:"^{\\doubleprime}"},alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:{mode:"math",value:"\\pi"},"pi ":{mode:"text",value:"\\pi "},Pi:{mode:"math",value:"\\Pi"},theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:{mode:"math",value:"\\nabla"},grad:{mode:"math",value:"\\nabla"},del:{mode:"math",value:"\\partial"},"∞":"\\infty",oo:{mode:"math",after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"∑":{mode:"math",value:"\\sum"},sum:{mode:"math",value:"\\sum_{#?}^{#?}"},prod:{mode:"math",value:"\\prod_{#?}^{#?}"},sqrt:{mode:"math",value:"\\sqrt{#?}"},"∆":{mode:"math",value:"\\differentialD"},"∂":{mode:"math",value:"\\differentialD"},arcsin:{mode:"math",value:"\\arcsin"},arccos:{mode:"math",value:"\\arccos"},arctan:{mode:"math",value:"\\arctan"},sin:{mode:"math",value:"\\sin"},sinh:{mode:"math",value:"\\sinh"},cos:{mode:"math",value:"\\cos"},cosh:{mode:"math",value:"\\cosh"},tan:{mode:"math",value:"\\tan"},tanh:{mode:"math",value:"\\tanh"},sec:{mode:"math",value:"\\sec"},csc:{mode:"math",value:"\\csc"},cot:{mode:"math",value:"\\cot"},log:{mode:"math",value:"\\log"},ln:{mode:"math",value:"\\ln"},exp:{mode:"math",value:"\\exp"},lim:{mode:"math",value:"\\lim_{#?}"},dx:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:{mode:"math",value:"\\forall"},EE:{mode:"math",value:"\\exists"},"!EE":{mode:"math",value:"\\nexists"},"&&":{mode:"math",value:"\\land"},xin:{mode:"math",after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},in:{mode:"math",after:"nothing+letter+closefence",value:"\\in"},"!in":{mode:"math",value:"\\notin"},NN:"\\N",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",PP:"\\P",xx:{mode:"math",value:"\\times"},"+-":{mode:"math",value:"\\pm"},"!=":{mode:"math",value:"\\ne"},">=":{mode:"math",value:"\\ge"},"<=":{mode:"math",value:"\\le"},"<<":{mode:"math",value:"\\ll"},">>":{mode:"math",value:"\\gg"},"~~":{mode:"math",value:"\\approx"},"≈":{mode:"math",value:"\\approx"},"?=":{mode:"math",value:"\\questeq"},"÷":{mode:"math",value:"\\div"},"¬":{mode:"math",value:"\\neg"},":=":{mode:"math",value:"\\coloneq"},"::":{mode:"math",value:"\\Colon"},"(:":{mode:"math",value:"\\langle"},":)":{mode:"math",value:"\\rangle"},beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},"eta ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta "},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},"mu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu "},nu:{mode:"math",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},"nu ":{mode:"text",after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu "},"µ":"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega","Ω":"\\omega",forall:{mode:"math",value:"\\forall"},exists:{mode:"math",value:"\\exists"},"!exists":{mode:"math",value:"\\nexists"},":.":{mode:"math",value:"\\therefore"},liminf:"\\operatorname*{lim~inf}_{#?}",limsup:"\\operatorname*{lim~sup}_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:{mode:"math",value:"\\mod"},max:{mode:"math",value:"\\max"},min:{mode:"math",value:"\\min"},erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:{mode:"math",value:"\\operatorname{bessel}"},mean:{mode:"math",value:"\\operatorname{mean}"},median:{mode:"math",value:"\\operatorname{median}"},fft:{mode:"math",value:"\\operatorname{fft}"},lcm:{mode:"math",value:"\\operatorname{lcm}"},gcd:{mode:"math",value:"\\operatorname{gcd}"},randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:{mode:"math",value:"\\operatorname{Re}"},Im:{mode:"math",value:"\\operatorname{Im}"},mm:{mode:"math",after:"nothing+digit",value:"\\operatorname{mm}"},cm:{mode:"math",after:"nothing+digit",value:"\\operatorname{cm}"},km:{mode:"math",after:"nothing+digit",value:"\\operatorname{km}"},kg:{mode:"math",after:"nothing+digit",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","->":"\\to","|->":"\\mapsto","--\x3e":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","{":"\\{","}":"\\}","*":"\\cdot"};function Lt(e,t,i){var a;return function(e,t){if(!t)return"";if("string"==typeof t)return t;if(!e)return t.value;let i=!1,a=!1,o=!1,r=!1,s=!1,n=!1,l=!1,c=!1,d=!1,m=!1,p=!1,u=!1,h=!1,f=!1,g=e[e.length-1],y=e.length-1;for(;g&&/msubsup|placeholder/.test(g.type);)y-=1,g=e[y];if(i=!g||"first"===g.type,g){if(void 0!==t.mode&&g.mode!==t.mode)return"";h="text"===g.mode,a=!h&&"mord"===g.type&&I.test(g.body),o=!h&&"mord"===g.type&&/[0-9]+$/.test(g.body),r=!h&&g.isFunction,s="genfrac"===g.type,n="surd"===g.type,l="mbin"===g.type,c="mrel"===g.type,d="mpunct"===g.type||"minner"===g.type,m=Boolean(g.array),p="mopen"===g.type,u="mclose"===g.type||"leftright"===g.type,f="space"===g.type}return void 0!==t.after?/nothing/.test(t.after)&&i||/letter/.test(t.after)&&a||/digit/.test(t.after)&&o||/function/.test(t.after)&&r||/frac/.test(t.after)&&s||/surd/.test(t.after)&&n||/binop/.test(t.after)&&l||/relop/.test(t.after)&&c||/punct/.test(t.after)&&d||/array/.test(t.after)&&m||/openfence/.test(t.after)&&p||/closefence/.test(t.after)&&u||/text/.test(t.after)&&h||/space/.test(t.after)&&f?t.value:"":t.value}(e,null!==(a=null==i?void 0:i[t])&&void 0!==a?a:St[t])}function At(e,t){if(!e)return["latex",""];if(e.length<=1)return["latex",e];if(!t||"ASCIIMath"!==t.format){const t=e.trim();if(t.startsWith("$$")&&t.endsWith("$$")||t.startsWith("\\[")&&t.endsWith("\\]")||t.startsWith("\\(")&&t.endsWith("\\)"))return["latex",t.substring(2,t.length-2)];if(t.startsWith("$")&&t.endsWith("$"))return["latex",t.substring(1,t.length-1)];if(e=e.replace(/\\\\([^\s\n])/g,"\\$1"),/\\/.test(e))return["latex",e]}return e=(e=(e=(e=(e=(e=e.replace(/\u2061/gu,"")).replace(/\u3016/gu,"{")).replace(/\u3017/gu,"}")).replace(/([^\\])sinx/g,"$1\\sin x")).replace(/([^\\])cosx/g,"$1\\cos x ")).replace(/\u2013/g,"-"),[(null==t?void 0:t.format)||"ASCIIMath",Ct(e,null!=t?t:{})]}function Ct(e,t){var i,a,o,r,s,n,l;if(!e)return"";let c,d=!1;if(d||"^"!==e[0]&&"_"!==e[0]||(c=$t(e.substr(1),{inlineShortcuts:null!==(i=null==t?void 0:t.inlineShortcuts)&&void 0!==i?i:{},noWrap:!0}),e=e[0]+"{"+c.match+"}",e+=Ct(c.rest,t),d=!0),!d&&(c=e.match(/^(sqrt|\u221a)(.*)/),c)&&(c=$t(c[2],{inlineShortcuts:null!==(a=null==t?void 0:t.inlineShortcuts)&&void 0!==a?a:{},noWrap:!0}),e="\\sqrt{"+(c.match||"\\placeholder{}")+"}",e+=Ct(c.rest,t),d=!0),!d&&(c=e.match(/^(\\cbrt|\u221b)(.*)/),c)&&(c=$t(c[2],{inlineShortcuts:null!==(o=null==t?void 0:t.inlineShortcuts)&&void 0!==o?o:{},noWrap:!0}),e="\\sqrt[3]{"+(c.match||"\\placeholder{}")+"}",e+=Ct(c.rest,t),d=!0),d||(c=e.match(/^abs(.*)/),c&&(c=$t(c[1],{inlineShortcuts:null!==(r=null==t?void 0:t.inlineShortcuts)&&void 0!==r?r:{},noWrap:!0}),e="\\left|"+c.match+"\\right|",e+=Ct(c.rest,t),d=!0)),d||(c=e.match(/^["”“](.*?)["”“](.*)/),c&&(e="\\text{"+c[1]+"}",e+=Ct(c[2],t),d=!0)),d||(c=e.match(/^([^a-zA-Z({[_^\\\s"]+)(.*)/),c&&(e=qt(c[1],t),e+=Ct(c[2],t),d=!0)),!d&&/^(f|g|h)[^a-zA-Z]/.test(e)&&(c=$t(e.substring(1),{inlineShortcuts:null!==(s=t.inlineShortcuts)&&void 0!==s?s:{},noWrap:!0}),e="("===e[1]?e[0]+"\\mleft("+c.match+"\\mright)":e[0]+c.match,e+=Ct(c.rest,t),d=!0),d||(c=e.match(/^([a-zA-Z]+)(.*)/),c&&(e=qt(c[1],t),e+=Ct(c[2],t),d=!0)),!d)if(c=$t(e,{inlineShortcuts:null!==(n=t.inlineShortcuts)&&void 0!==n?n:{},noWrap:!0}),c.match&&"/"===c.rest[0]){const i=$t(c.rest.substr(1),{inlineShortcuts:null!==(l=t.inlineShortcuts)&&void 0!==l?l:{},noWrap:!0});i.match&&(e="\\frac{"+c.match+"}{"+i.match+"}"+Ct(i.rest,t)),d=!0}else c.match&&(e="("===e[0]?"\\left("+c.match+"\\right)"+Ct(c.rest,t):c.match+Ct(c.rest,t),d=!0);return d||(c=e.match(/^(\s+)(.*)$/),c&&(e=" "+Ct(c[2],t),d=!0)),e}function $t(e,t){let i="",a=e=e.trim(),o=e.charAt(0),r={"(":")","{":"}","[":"]"}[o];if(r){let s=1,n=1;for(;n0;)e[n]===o&&s++,e[n]===r&&s--,n++;0===s?(t.noWrap&&"("===o?i=Ct(e.substring(1,n-1),t):("{"===o&&"}"===r&&(o="\\{",r="\\}"),i="\\left"+o+Ct(e.substring(1,n-1),t)+"\\right"+r),a=e.substring(n)):(i=e.substring(1,n),a="")}else{let o=e.match(/^([a-zA-Z]+)/);if(o){let i=Lt(null,e,t.inlineShortcuts);if(i)return i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),{match:i,rest:e.substring(i.length)}}if(o=e.match(/^([a-zA-Z])/),o)return{match:o[1],rest:e.substring(1)};if(o=e.match(/^(-)?\d+(\.\d*)?/),o)return{match:o[0],rest:e.substring(o[0].length)};/^\\(left|right)/.test(e)||(o=e.match(/^(\\[a-zA-Z]+)/),o&&(a=e.substring(o[1].length),i=o[1]))}return{match:i,rest:a}}function qt(e,t){let i=Lt(null,e,t);return i?(i=i.replace("_{#?}",""),i=i.replace("^{#?}",""),i+=" "):i=e,i}function Dt(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onSelectionDidChange)||e.suppressChangeNotifications||e.listeners.onSelectionDidChange(e)}function Tt(e){var t;"function"!=typeof(null===(t=e.listeners)||void 0===t?void 0:t.onContentDidChange)||e.suppressChangeNotifications||e.listeners.onContentDidChange(e)}function Kt(e){if(e.parent().array)return ft(e.parent().array,e.relation())[e.anchorOffset()];const t=e.siblings();return t[Math.min(t.length-1,e.anchorOffset())]}function Et(t,i,a=0){let o;if("string"==typeof i)o=dt(i),o.extent=a;else if(e(i)){const e=pt(i),r=t.path;t.path=e,0===a&&"placeholder"===Kt(t).type&&(e[e.length-1].offset=t.anchorOffset()-1,a=1),o={path:e,extent:null!=a?a:0},t.path=r}else o=i;const r=0!==mt(t.path,o.path),s=o.extent!==t.extent;return(r||s)&&(r&&Nt(t),t.path=pt(o.path),t.siblings().length0&&"command"===t[i].type;)i-=1;let a=e.startOffset()+1;for(;a<=t.length-1&&"command"===t[a].type;)a+=1;return a>i?{start:i+1,end:a}:null}function Pt(e){const t=Jt(e)?Kt(e):e.sibling(1);let i;if(t){if("command"===t.type)return"command";i=t.mode}let a=1,o=e.ancestor(a);for(;!i&&o;)o&&(i=o.mode),a+=1,o=e.ancestor(a);return i}function Rt(e,t=1,i=!0){var a;const o=e.suppressChangeNotifications;e.suppressChangeNotifications=!0;const r=e.clone(),s=e.extent;Wt(e,t),"placeholder"===Kt(e).type&&Wt(e,t);const n=si(e,(e,t)=>"placeholder"===e.type||t.path.length>1&&1===t.siblings().length,t);if(0===n.length){if(Et(e,r,s),i&&(null===(a=e.hooks)||void 0===a?void 0:a.tabOut)&&e.hooks.tabOut(e,t>0?"forward":"backward")&&document.activeElement){const e=function(){function e(e){return!((i=e).disabled||"INPUT"===i.tagName&&"hidden"===i.type||function(e){if(e===document.activeElement||e.contains(document.activeElement))return!1;if("hidden"===getComputedStyle(e).visibility)return!0;const t=e.getBoundingClientRect();if(0===t.width||0===t.height)return!0;for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(i)||function(e){return"INPUT"===e.tagName&&"radio"===e.type&&!function(e){if(!e.name)return!0;const t=function(e,t){for(let i=0;isummary')).filter(e).forEach((e,i)=>{const r=t(e);0===r?a.push(e):o.push({documentOrder:i,tabIndex:r,node:e})}),o.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(a)}(document.body)}();let i=e.indexOf(document.activeElement)+t;i<0&&(i=e.length-1),i>=e.length&&(i=0),e[i].focus()}return e.suppressChangeNotifications=o,!1}return Et(e,n[0]),"placeholder"===Kt(e).type&&Qt(e,-1),e.announce("move",r),Dt(e),e.suppressChangeNotifications=o,!0}function It(e,t=0,i=0,a=""){const o=e.path[e.path.length-1].relation;a||(a=o);const r=e.parent();if(!r&&"body"!==a)return!1;const s=a.startsWith("cell");if(!s&&!r[a]||s&&!r.array)return!1;const n=a!==o;e.path[e.path.length-1].relation=a;const l=e.siblings().length;e.path[e.path.length-1].relation=o;const c=e.extent;"end"===i&&(i=l-t-1),Qt(e,i);const d=e.extent!==c;Qt(e,c),t<0&&(t=l+t),t=Math.max(0,Math.min(t,l-1));const m=e.path[e.path.length-1].offset;return(n||m!==t||d)&&(n&&Nt(e),e.path[e.path.length-1].relation=a,e.path[e.path.length-1].offset=t,Qt(e,i),Dt(e)),!0}function Ht(t,i){var a;i=null!=i?i:{};const o={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(t.anchorOffset()===t.siblings().length-1){Nt(t);let e=o[t.relation()];const r=t.parent();for(;e&&!r[e];)e=o[e];if(e)return void It(t,0,0,e);if(t.parent().array){const e=gt(t.parent().array);let i=parseInt(t.relation().match(/cell([0-9]*)$/)[1])+1;for(;i=0;){if(ft(t.parent().array,e)&&It(t,-1,0,"cell"+e))return;e-=1}}return void(1===t.path.length?(t.suppressChangeNotifications||!(null===(a=t.hooks)||void 0===a?void 0:a.moveOut)||t.hooks.moveOut(t,"backward"))&&(t.path[0].offset=t.root.body.length-1):(t.path.pop(),It(t,t.anchorOffset()-1)))}const r=Kt(t);if(!r.captureSelection){let i;if(r.array){i="";const e=gt(r.array);let a=e-1;for(;!i&&a0)for(ei(e)&&a--;a>0;)Ht(e),a--;else if(a<0)for(ti(e)&&a++;0!==a;)Vt(e),a++}return Dt(e),e.announce("move",a),!0}function Ut(e,t){let i=e.path[e.path.length-1].offset,a=0;const o=e.clone();a=e.extent+t;const r=i+a;if(r<0&&0!==a){if(e.path.length>1)return e.path.pop(),Qt(e,-1),Dt(e),e.announce("move",o),!0;i=e.path[e.path.length-1].offset,a=e.extent}else if(r>=e.siblings().length){if(e.path.length>1)return e.path.pop(),e.path[e.path.length-1].offset-=1,Qt(e,1),Dt(e),e.announce("move",o),!0;Jt(e)&&(i-=1),a-=1}return It(e,i,a),e.announce("move",o),!0}function jt(e,t,i){var a;const o=null!==(a=(i=null!=i?i:{extend:!1}).extend)&&void 0!==a&&a;t=t<0?-1:1;const r=e.clone(),s=e.siblings(),n=e.focusOffset();let l=n+t;if(o&&(l=Math.min(Math.max(0,l),s.length-1)),l<0||l>=s.length)Wt(e,t,i);else{if(s[l]&&"text"===s[l].mode){if(l=function(e,t,i){i=i<0?-1:1;const a=e.siblings();if(!a[t])return t;if("text"!==a[t].mode)return t;let o;if(H.test(a[t].body)){let e,r=t;do{e="text"===a[r].mode&&H.test(a[r].body),r+=i}while(a[r]&&e);o=a[r]?r-2*i:r-i}else if(/\s/.test(a[t].body)){let e=t;for(;a[e]&&"text"===a[e].mode&&/\s/.test(a[e].body);)e+=i;if(a[e]){let t=!0;do{t="text"===a[e].mode&&!/\s/.test(a[e].body),e+=i}while(a[e]&&t);o=a[e]?e-2*i:e-i}else o=e-i}else{let e=t;for(;a[e]&&"text"===a[e].mode&&!/\s/.test(a[e].body);)e+=i;o=a[e]?e:e-i;let r=!0;for(;a[e]&&r;)r="text"===a[e].mode&&/\s/.test(a[e].body),r&&(o=e),e+=i;o=a[e]?e-2*i:e-i}return o-(i>0?0:1)}(e,l,t),l<0&&!o)return void It(e,0);if(l>s.length)return It(e,s.length-1),void Wt(e,t,i)}else{const e=s[l]?s[l].type:"";if("mopen"===e&&t>0||"mclose"===e&&t<0){let i="mopen"===e?1:-1;for(l+=t>0?1:-1;l>=0&&l0&&(l-=1)}else{for(;s[l]&&"math"===s[l].mode&&s[l].type===e;)l+=t;l-=t>0?1:0}}if(o){const t=e.anchorOffset();It(e,t,l-t)}else It(e,l);e.announce("move",r)}}function Xt(e,t=1,i){var a;i=null!=i?i:{extend:!1},t=t<0?-1:1;const o=e.clone(),r=[{relation:"body",offset:e.path[0].offset}];let s;return null!==(a=!i.extend)&&void 0!==a&&a?(r[0].offset=t<0?0:e.root.body.length-1,s=0):t<0?r[0].offset>0&&(s=-r[0].offset):r[0].offset=a)return It(e,e.endOffset()-1,1),!0;It(e,i,a-i)}else if("mord"===e.sibling(0).type&&/[0-9,.]/.test(e.sibling(0).body)){let i=e.startOffset(),a=e.endOffset();for(;Ot(t[i]);)i-=1;for(;Ot(t[a]);)a+=1;a-=1,It(e,i,a-i)}else It(e,0,"end");return!0}function Yt(e){return e.path=[{relation:"body",offset:0}],It(e,0,"end")}function Jt(e){return 0===e.extent}function Qt(e,t){e.extent=t}function ei(e){return 0!==e.extent&&(It(e,e.endOffset()),!0)}function ti(e){return 0!==e.extent&&(It(e,e.startOffset()),!0)}function ii(e){if(e.path.length>1){const t=e.clone();return e.path.pop(),Qt(e,0),e.announce("move",t),!0}return e.announce("plonk"),!1}function ai(e,t,i,a={extendToWordBoundary:!1}){const o=mt(t,i);if(0===o)return a.extendToWordBoundary?ai(e,t=ri(e,t,-1),i=ri(e,i,1)):Et(e,pt(t),0);if(1===o){const o=i[i.length-1].offset-t[t.length-1].offset;return a.extendToWordBoundary?ai(e,t=ri(e,t,o<0?1:-1),i=ri(e,i,o<0?-1:1)):Et(e,pt(t),o)}let r=function(e,t){const i=[],a=Math.min(e.length-1,t.length-1);let o=0;for(;o<=a&&e[o].relation===t[o].relation&&e[o].offset===t[o].offset;)i.push(e[o]),o+=1;return i}(t,i);const s=r.length;if(t.length===s||i.length===s||t[s].relation!==i[s].relation)return Et(e,r,-1);r.push(t[s]),r=pt(r);let n=i[s].offset-t[s].offset+1;return n<=0?i.length>s+1?(r[s].relation=i[s].relation,r[s].offset=i[s].offset,r[r.length-1].offset-=1,n=2-n):(r[s].relation=i[s].relation,r[s].offset=i[s].offset,n=1-n):i.length<=t.length?r[r.length-1].offset-=1:i.length>t.length&&(r[s].offset-=1),Et(e,r,n)}function oi(e,t,i){var a;(i=null!=i?i:{}).recursive=null!==(a=i.recursive)&&void 0!==a&&a;const o=e.siblings(),r=e.startOffset()+1,s=e.endOffset()+1;if(i.recursive)for(let e=r;e=0?ei(o):(ti(o),Wt(o,"forward"));const r=Kt(o);do{t(Kt(o),o)&&a.push(o.toString()),i>=0?Ht(o,{iterateAll:!0}):Vt(o,{iterateAll:!0})}while(r!==Kt(o));return a}const ni="apple"===mi()?{id:"apple.en-intl",displayName:"English (international)",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","ı"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","Î"],KeyE:["e","E","´","´"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","˝"],KeyH:["h","H","˙","Ó"],KeyI:["i","I","ˆ","ˆ"],KeyJ:["j","J","∆","Ô"],KeyK:["k","K","˚",""],KeyL:["l","L","¬","Ò"],KeyM:["m","M","µ","Â"],KeyN:["n","N","˜","˜"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®","‰"],KeyS:["s","S","ß","Í"],KeyT:["t","T","†","ˇ"],KeyU:["u","U","¨","¨"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","˛"],KeyY:["y","Y","¥","Á"],KeyZ:["z","Z","Ω","¸"],Digit1:["1","!","¡","⁄"],Digit2:["2","@","™","€"],Digit3:["3","#","£","‹"],Digit4:["4","$","¢","›"],Digit5:["5","%","∞","fi"],Digit6:["6","ˆ","§","fl"],Digit7:["7","&","¶","‡"],Digit8:["8","*","•","°"],Digit9:["9","(","ª","·"],Digit0:["0",")","º","‚"],Space:[" "," "," "," "],Minus:["-","_","–","—"],Equal:["=","+","≠","±"],BracketLeft:["[","{","“","”"],BracketRight:["]","}","‘","’"],Backslash:["\\","|","«","»"],Semicolon:[";",":","…","Ú"],Quote:["'",'"',"æ","Æ"],Backquote:["`","˜","`","`"],Comma:[",","<","≤","¯"],Period:[".",">","≥","˘"],Slash:["/","?","÷","¿"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["§","±","§","±"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}}:"windows"===mi()?{id:"windows.en-intl",displayName:"English (international)",platform:"windows",locale:"en",score:0,mapping:{KeyA:["a","A","á","Á"],KeyB:["b","B","",""],KeyC:["c","C","©","¢"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","é","É"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","í","Í"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","ø","Ø"],KeyM:["m","M","µ",""],KeyN:["n","N","ñ","Ñ"],KeyO:["o","O","ó","Ó"],KeyP:["p","P","ö","Ö"],KeyQ:["q","Q","ä","Ä"],KeyR:["r","R","®",""],KeyS:["s","S","ß","§"],KeyT:["t","T","þ","Þ"],KeyU:["u","U","ú","Ú"],KeyV:["v","V","",""],KeyW:["w","W","å","Å"],KeyX:["x","X","",""],KeyY:["y","Y","ü","Ü"],KeyZ:["z","Z","æ","Æ"],Digit1:["1","!","¡","¹"],Digit2:["2","@","²",""],Digit3:["3","#","³",""],Digit4:["4","$","¤","£"],Digit5:["5","%","€",""],Digit6:["6","^","¼",""],Digit7:["7","&","½",""],Digit8:["8","*","¾",""],Digit9:["9","(","‘",""],Digit0:["0",")","’",""],Space:[" "," ","",""],Minus:["-","_","¥",""],Equal:["=","+","×","÷"],BracketLeft:["[","{","«",""],BracketRight:["]","}","»",""],Backslash:["\\","|","¬","¦"],Semicolon:[";",":","¶","°"],Quote:["'",'"',"´","¨"],Backquote:["`","~","",""],Comma:[",","<","ç","Ç"],Period:[".",">","",""],Slash:["/","?","¿",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}}:{id:"linux.en",displayName:"English",platform:"linux",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},li={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},ci=[];let di;function mi(){let e="linux";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?e="apple":/^(win)/i.test(navigator.platform)?e="windows":/(android)/i.test(navigator.userAgent)?e="linux":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?e="apple":/\bCrOS\b/i.test(navigator.userAgent)&&(e="linux")),e}function pi(e){e.platform===mi()&&ci.push(e)}function ui(e){di=ci.find(t=>e.startsWith(t.locale))}function hi(){return null!=di?di:ci[0]}pi(ni),pi({id:"apple.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","‡","Ω"],KeyB:["b","B","ß","∫"],KeyC:["c","C","©","¢"],KeyD:["d","D","∂","∆"],KeyE:["e","E","ê","Ê"],KeyF:["f","F","ƒ","·"],KeyG:["g","G","fi","fl"],KeyH:["h","H","Ì","Î"],KeyI:["i","I","î","ï"],KeyJ:["j","J","Ï","Í"],KeyK:["k","K","È","Ë"],KeyL:["l","L","¬","|"],KeyM:[",","?","∞","¿"],KeyN:["n","N","~","ı"],KeyO:["o","O","œ","Œ"],KeyP:["p","P","π","∏"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","®","‚"],KeyS:["s","S","Ò","∑"],KeyT:["t","T","†","™"],KeyU:["u","U","º","ª"],KeyV:["v","V","◊","√"],KeyW:["z","Z","Â","Å"],KeyX:["x","X","≈","⁄"],KeyY:["y","Y","Ú","Ÿ"],KeyZ:["w","W","‹","›"],Digit1:["&","1","","´"],Digit2:["é","2","ë","„"],Digit3:['"',"3","“","”"],Digit4:["'","4","‘","’"],Digit5:["(","5","{","["],Digit6:["§","6","¶","å"],Digit7:["è","7","«","»"],Digit8:["!","8","¡","Û"],Digit9:["ç","9","Ç","Á"],Digit0:["à","0","ø","Ø"],Space:[" "," "," "," "],Minus:[")","°","}","]"],Equal:["-","_","—","–"],BracketLeft:["^","¨","ô","Ô"],BracketRight:["$","*","€","¥"],Backslash:["`","£","@","#"],Semicolon:["m","M","µ","Ó"],Quote:["ù","%","Ù","‰"],Backquote:["<",">","≤","≥"],Comma:[";",".","…","•"],Period:[":","/","÷","\\"],Slash:["=","+","≠","±"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","•","Ÿ"],NumpadEqual:["=","=","=","="]}}),pi({id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","ß",""],KeyC:["c","C","©"," "],KeyD:["d","D","∂","∆"],KeyE:["e","E","€","€"],KeyF:["f","F","ƒ","fi"],KeyG:["g","G","","fl"],KeyH:["h","H","™"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","¶","¯"],KeyK:["k","K","§","ˇ"],KeyL:["l","L"," ","˘"],KeyM:["m","M","µ","˚"],KeyN:["n","N"," ","˙"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","œ","Œ"],KeyR:["r","R","®"," "],KeyS:["s","S","∫"," "],KeyT:["t","T","†","‡"],KeyU:["u","U"," "," "],KeyV:["v","V","√","◊"],KeyW:["w","W","æ","Æ"],KeyX:["x","X","∑","›"],KeyY:["y","Y","¥"," "],KeyZ:["z","Z","Ω","‹"],Digit1:["1","!","|","ı"],Digit2:["2",'"',"@","˝"],Digit3:["3","·","#","•"],Digit4:["4","$","¢","£"],Digit5:["5","%","∞","‰"],Digit6:["6","&","¬"," "],Digit7:["7","/","÷","⁄"],Digit8:["8","(","“","‘"],Digit9:["9",")","”","’"],Digit0:["0","=","≠","≈"],Space:[" "," "," "," "],Minus:["'","?","´","¸"],Equal:["¡","¿","‚","˛"],BracketLeft:["`","^","[","ˆ"],BracketRight:["+","*","]","±"],Backslash:["ç","Ç","}","»"],Semicolon:["ñ","Ñ","~","˜"],Quote:["´","¨","{","«"],Backquote:["<",">","≤","≥"],Comma:[",",";","„",""],Period:[".",":","…","…"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["º","ª","\\","°"]}}),pi({id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","·","#",""],Digit4:["4","$","~",""],Digit5:["5","%","€",""],Digit6:["6","&","¬",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["¡","¿","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["ç","Ç","}",""],Semicolon:["ñ","Ñ","",""],Quote:["´","¨","{",""],Backquote:["º","ª","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),pi({id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",score:0,mapping:{KeyA:["a","A","æ","Æ"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:["m","M","µ","º"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["q","Q","@","Ω"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["w","W","ł","Ł"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["z","Z","«","<"],Digit1:["1","!","|","¡"],Digit2:["2",'"',"@","⅛"],Digit3:["3","·","#","£"],Digit4:["4","$","~","$"],Digit5:["5","%","½","⅜"],Digit6:["6","&","¬","⅝"],Digit7:["7","/","{","⅞"],Digit8:["8","(","[","™"],Digit9:["9",")","]","±"],Digit0:["0","=","}","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:["'","?","\\","¿"],Equal:["¡","¿","̃","~"],BracketLeft:["̀","̂","[","̊"],BracketRight:["+","*","]","̄"],Backslash:["ç","Ç","}","̆"],Semicolon:["ñ","Ñ","~","̋"],Quote:["́","̈","{","{"],Backquote:["º","ª","\\","\\"],Comma:[",",";","─","×"],Period:[".",":","·","÷"],Slash:["-","_","̣","̇"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}}),pi({id:"linux.french",locale:"fr",displayName:"French",platform:"apple",score:0,mapping:{KeyA:["q","Q","@","Ω"],KeyB:["b","B","”","’"],KeyC:["c","C","¢","©"],KeyD:["d","D","ð","Ð"],KeyE:["e","E","€","¢"],KeyF:["f","F","đ","ª"],KeyG:["g","G","ŋ","Ŋ"],KeyH:["h","H","ħ","Ħ"],KeyI:["i","I","→","ı"],KeyJ:["j","J","̉","̛"],KeyK:["k","K","ĸ","&"],KeyL:["l","L","ł","Ł"],KeyM:[",","?","́","̋"],KeyN:["n","N","n","N"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","þ","Þ"],KeyQ:["a","A","æ","Æ"],KeyR:["r","R","¶","®"],KeyS:["s","S","ß","§"],KeyT:["t","T","ŧ","Ŧ"],KeyU:["u","U","↓","↑"],KeyV:["v","V","“","‘"],KeyW:["z","Z","«","<"],KeyX:["x","X","»",">"],KeyY:["y","Y","←","¥"],KeyZ:["w","W","ł","Ł"],Digit1:["&","1","¹","¡"],Digit2:["é","2","~","⅛"],Digit3:['"',"3","#","£"],Digit4:["'","4","{","$"],Digit5:["(","5","[","⅜"],Digit6:["-","6","|","⅝"],Digit7:["è","7","`","⅞"],Digit8:["_","8","\\","™"],Digit9:["ç","9","^","±"],Digit0:["à","0","@","°"],Enter:["\r","\r","\r","\r"],Escape:["","","",""],Backspace:["\b","\b","\b","\b"],Tab:["\t","","\t",""],Space:[" "," "," "," "],Minus:[")","°","]","¿"],Equal:["=","+","}","̨"],BracketLeft:["̂","̈","̈","̊"],BracketRight:["$","£","¤","̄"],Backslash:["*","µ","̀","̆"],Semicolon:["m","M","µ","º"],Quote:["ù","%","̂","̌"],Backquote:["²","~","¬","¬"],Comma:[";",".","─","×"],Period:[":","/","·","÷"],Slash:["!","§","̣","̇"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","¦"]}}),pi({id:"windows.french",locale:"fr",displayName:"French",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["é","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["è","7","`",""],Digit8:["_","8","\\",""],Digit9:["ç","9","^",""],Digit0:["à","0","@",""],Space:[" "," ","",""],Minus:[")","°","]",""],Equal:["=","+","}",""],BracketLeft:["^","¨","",""],BracketRight:["$","£","¤",""],Backslash:["*","µ","",""],Semicolon:["m","M","",""],Quote:["ù","%","",""],Backquote:["²","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","§","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}}),pi({id:"windows.german",locale:"de",displayName:"German",platform:"windows",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","€",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","µ",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"²",""],Digit3:["3","§","³",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["ß","?","\\","ẞ"],Equal:["´","`","",""],BracketLeft:["ü","Ü","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["ö","Ö","",""],Quote:["ä","Ä","",""],Backquote:["^","°","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}}),pi({id:"apple.german",locale:"de",displayName:"German",platform:"apple",score:0,mapping:{KeyA:["a","A","å","Å"],KeyB:["b","B","∫","‹"],KeyC:["c","C","ç","Ç"],KeyD:["d","D","∂","™"],KeyE:["e","E","€","‰"],KeyF:["f","F","ƒ","Ï"],KeyG:["g","G","©","Ì"],KeyH:["h","H","ª","Ó"],KeyI:["i","I","⁄","Û"],KeyJ:["j","J","º","ı"],KeyK:["k","K","∆","ˆ"],KeyL:["l","L","@","fl"],KeyM:["m","M","µ","˘"],KeyN:["n","N","~","›"],KeyO:["o","O","ø","Ø"],KeyP:["p","P","π","∏"],KeyQ:["q","Q","«","»"],KeyR:["r","R","®","¸"],KeyS:["s","S","‚","Í"],KeyT:["t","T","†","˝"],KeyU:["u","U","¨","Á"],KeyV:["v","V","√","◊"],KeyW:["w","W","∑","„"],KeyX:["x","X","≈","Ù"],KeyY:["z","Z","Ω","ˇ"],KeyZ:["y","Y","¥","‡"],Digit1:["1","!","¡","¬"],Digit2:["2",'"',"“","”"],Digit3:["3","§","¶","#"],Digit4:["4","$","¢","£"],Digit5:["5","%","[","fi"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","˜"],Digit9:["9",")","}","·"],Digit0:["0","=","≠","¯"],Space:[" "," "," "," "],Minus:["ß","?","¿","˙"],Equal:["´","`","'","˚"],BracketLeft:["ü","Ü","•","°"],BracketRight:["+","*","±",""],Backslash:["#","'","‘","’"],Semicolon:["ö","Ö","œ","Œ"],Quote:["ä","Ä","æ","Æ"],Backquote:["<",">","≤","≥"],Comma:[",",";","∞","˛"],Period:[".",":","…","÷"],Slash:["-","_","–","—"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","°","„","“"],NumpadEqual:["=","=","=","="]}});const fi=[{key:"ctrl+alt+e",command:["insert","\\text{cmd+alt+e}"]},{key:"cmd+alt+a",command:["insert","\\text{cmd+alt+a}"]},{key:"ctrl+alt+a",command:["insert","\\text{ctrl+alt+a}"]},{key:"meta+alt+2",command:["insert","\\text{meta+alt+2}"]},{key:"ctrl+alt+shift+a",command:["insert","\\text{ctrl+alt+shift+a}"]},{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendToPreviousChar"},{key:"shift+[ArrowRight]",command:"extendToNextChar"},{key:"shift+[ArrowUp]",command:"extendUp"},{key:"shift+[ArrowDown]",command:"extendDown"},{key:"[Backspace]",command:"deletePreviousChar"},{key:"alt+[Delete]",command:"deletePreviousChar"},{key:"[Delete]",command:"deleteNextChar"},{key:"alt+[Backspace]",command:"deleteNextChar"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"alt+shift+[ArrowLeft]",command:"extendToPreviousWord"},{key:"alt+shift+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"ctrl+shift+[ArrowLeft]",command:"extendToGroupStart"},{key:"ctrl+shift+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Space]",ifMode:"math",command:"moveAfterParent"},{key:"shift+[Space]",ifMode:"math",command:"moveBeforeParent"},{key:"[Home]",command:"moveToMathFieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathFieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"cmd+shift+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathFieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathFieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"cmd+shift+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",ifMode:"math",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"math",command:"moveToPreviousPlaceholder"},{key:"[Tab]",ifMode:"text",command:"moveToNextPlaceholder"},{key:"shift+[Tab]",ifMode:"text",command:"moveToPreviousPlaceholder"},{key:"[Escape]",ifMode:"math",command:["switchMode","command"]},{key:"\\",ifMode:"math",command:["switchMode","command"]},{key:"alt+[Equal]",ifMode:"math",command:["applyStyle",{mode:"text"}]},{key:"alt+[Equal]",ifMode:"text",command:["applyStyle",{mode:"math"}]},{key:"[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[Tab]",ifMode:"command",command:["complete",{acceptSuggestion:!0}]},{key:"[Return]",ifMode:"command",command:"complete"},{key:"[Enter]",ifMode:"command",command:"complete"},{key:"shift+[Escape]",ifMode:"command",command:["complete",{discard:!0}]},{key:"[ArrowDown]",ifMode:"command",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"command",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deletePreviousChar"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"[Undo]",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+y",command:"redo"},{key:"ctrl+shift+z",ifPlatform:"!macos",command:"redo"},{key:"cmd+shift+z",command:"redo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathFieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathFieldEnd"},{key:"ctrl+shift+b",ifPlatform:"macos",command:"extendToPreviousChar"},{key:"ctrl+shift+f",ifPlatform:"macos",command:"extendToNextChar"},{key:"ctrl+shift+p",ifPlatform:"macos",command:"extendUp"},{key:"ctrl+shift+n",ifPlatform:"macos",command:"extendDown"},{key:"ctrl+shift+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"ctrl+shift+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"ctrl+alt+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"ctrl+alt+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"ctrl+shift+alt+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"ctrl+shift+alt+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deletePreviousChar"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteNextChar"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"shift+[Quote]",ifMode:"math",command:["switchMode","text","","“"]},{key:"shift+[Quote]",ifMode:"text",command:["switchMode","math","”",""]},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Minus]",ifMode:"math",command:"moveToSubscript"},{key:"alt+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrack #0 \\right\\rbrack$$"]},{key:"alt+shift+[BracketLeft]",ifMode:"math",command:["insert","$$\\left\\lbrace #0 \\right\\rbrace$$"]},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+;",ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifMode:"math",command:"addRowAfter"},{key:"ctrl+shift+;",ifMode:"math",command:"addRowBefore"},{key:"cmd+shift+;",ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"ctrl+shift+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"cmd+shift+[Comma]",ifMode:"math",command:"addColumnAfter"},{key:"alt+p",ifMode:"math",command:["insert","$$\\pi$$"]},{key:"alt+v",ifMode:"math",command:["insert","$$\\sqrt{#0}$$"]},{key:"alt+w",ifMode:"math",command:["insert","$$\\sum_{i=#?}^{#?}$$"]},{key:"alt+u",ifMode:"math",command:["insert","$$\\cup$$"]},{key:"alt+n",ifMode:"math",command:["insert","$$\\cap$$"]},{key:"alt+o",ifMode:"math",command:["insert","$$\\emptyset$$"]},{key:"alt+d",ifMode:"math",command:["insert","$$\\differentialD$$"]},{key:"alt+shift+o",ifMode:"math",command:["insert","$$\\varnothing$$"]},{key:"alt+shift+d",ifMode:"math",command:["insert","$$\\partial$$"]},{key:"alt+shift+p",ifMode:"math",command:["insert","$$\\prod_{i=#?}^{#?}$$"]},{key:"alt+shift+u",ifMode:"math",command:["insert","$$\\bigcup$$"]},{key:"alt+shift+n",ifMode:"math",command:["insert","$$\\bigcap$$"]},{key:"alt+shift+a",ifMode:"math",command:["insert","$$\\forall$$"]},{key:"alt+shift+e",ifMode:"math",command:["insert","$$\\exists$$"]},{key:"alt+[Digit5]",ifMode:"math",command:["insert","$\\infty$$"]},{key:"alt+[Digit6]",ifMode:"math",command:["insert","$$\\wedge$$"]},{key:"alt+shift+[Digit6]",ifMode:"math",command:["insert","$$\\vee$$"]},{key:"alt+[Digit9]",ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifMode:"math",command:["insert",")"]},{key:"alt+shift+[Backslash]",ifMode:"math",command:["insert","|"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","$$\\backslash$$"]},{key:"/",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+/",ifMode:"math",command:["insert","$$\\/$$"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","$$\\frac{#@}{#?}$$"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+[Backquote]",ifMode:"math",command:["insert","$$\\~$$"]},{key:"alt+shift+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleVirtualKeyboard"},{key:"ctrl+alt+[ArrowUp]",command:["speak","parent",{withHighlighting:!1}]},{key:"ctrl+alt+[ArrowDown]",command:["speak","all",{withHighlighting:!1}]}],gi={"\\theta":"alt+q","\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\prod":"alt+shift+p","\\sum":"alt+w","\\int":"alt+b","\\cup":"alt+u","\\cap":"alt+n","\\bigcup":"alt+shift+u","\\bigcap":"alt+shift+n","\\forall":"alt+shift+a","\\exists":"alt+shift+e","\\infty":"alt+[Digit5]","\\wedge":"alt+[Digit5]","\\vee":"alt+shift+[Digit6]","\\differentialD":"alt+d","\\partial":"alt+shift+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"alt+shift+o","\\~":"~"};function yi(e){if((null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)){let t;if(/^(mac)/i.test(navigator.platform)?t="macos":/^(win)/i.test(navigator.platform)?t="windows":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos"),e.startsWith("!")&&!e.endsWith(t))return!0;if(e.endsWith(t))return!0}return!1}function bi(t){let i=t;return e(i)&&(i=i.length>0?i[0]+"("+i.slice(1).join("")+")":""),i}function vi(e){var t;const i=yi("macos")||yi("ios"),a=e.split("+");let o="";for(const e of a)!i&&o&&(o+='+'),e.startsWith("Key")?o+=e.substr(3,1):e.startsWith("Digit")?o+=e.substr(5,1):o+=null!==(t={cmd:"⌘",meta:i?"⌘":"command",shift:i?"⇧":"shift",alt:i?"⌥":"alt",ctrl:i?"⌃":"control","\n":i?"⏎":"return","[return]":i?"⏎":"return","[enter]":i?"⌤":"enter","[tab]":i?"⇥":"tab","[escape]":"esc","[backspace]":i?"⌫":"backspace","[delete]":i?"⌦":"del","[pageup]":i?"⇞":"page up","[pagedown]":i?"⇟":"page down","[home]":i?"⤒":"home","[end]":i?"⤓":"end","[space]":"space","[equal]":"=","[minus]":"-","[comma]":",","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",bracketLeft:"[",bracketRight:"]",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"⇠",up:"⇡",right:"⇢",down:"⇣","[arrowleft]":"⇠","[arrowup]":"⇡","[arrowright]":"⇢","[arrowdown]":"⇣","[digit0]":"0","[digit1]":"1","[digit2]":"2","[digit3]":"3","[digit4]":"4","[digit5]":"5","[digit6]":"6","[digit7]":"7","[digit8]":"8","[digit9]":"9"}[e.toLowerCase()])&&void 0!==t?t:e.toUpperCase();return o}function xi(e,t){const i=[],a=[];return e.forEach(e=>{try{const t=function(e){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);let t=e.key.split("+");const i=t.pop();let a=e.ifPlatform;if(t=t.map(e=>{const t=e.toLowerCase();if("cmd"===t){if(a&&"macos"!==a&&"ios"!==a)throw new Error('Unexpected "cmd" modifier with platform "'+a+'"');return a||(a=yi("ios")?"ios":"macos"),"meta"}if("win"===t){if(a&&"windows"!==a)throw new Error('Unexpected "win" modifier with platform "'+a+'"');return a="windows","meta"}return t}),!a||yi(a)){if(/^\[(.*)\]$/.test(i))t.push(i);else{const a=function(e){var t,i;const a=null!==(t=hi())&&void 0!==t?t:ni;for(const[t,i]of Object.entries(a.mapping)){if(i[0]===e)return"["+t+"]";if(i[1]===e)return"shift+["+t+"]";if(i[2]===e)return"alt+["+t+"]";if(i[3]===e)return"shift+alt+["+t+"]"}return null!==(i=li[e])&&void 0!==i?i:""}(i);if(!a)throw new Error('Invalid keybinding key "'+e.key+'"');t=t.concat(a.split("+"))}return{...e,ifPlatform:a,key:t.join("+")}}}(e);t&&i.push(t)}catch(e){a.push(e.message)}}),a.length>0&&t(a),i}function ki(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.addEventListener(o[1],i,t)}else e.addEventListener(t,i,a)}}function _i(e,t,i,a){const o=t.split(" ");for(const t of o){const o=t.match(/(.*):(.*)/);if(o){const t=null!=a?a:{};"active"===o[2]?t.passive=!1:t[o[2]]=!0,e.removeEventListener(o[1],i,t)}else e.removeEventListener(t,i,a)}}function wi(e,t){let i=document.getElementById(e);return i?i.setAttribute("data-refcount",Number(parseInt(i.getAttribute("data-refcount"))+1).toString()):(i=document.createElement("div"),i.setAttribute("aria-hidden","true"),i.setAttribute("data-refcount","1"),i.className=t,i.id=e,document.body.appendChild(i)),i}function Mi(e){if(!e)return;const t=parseInt(e.getAttribute("data-refcount"));t<=1?e.remove():e.setAttribute("data-refcount",Number(t-1).toString())}function zi(e){return e.element&&e.element.mathfield===e}function Si(e){const t=function e(t){if(t.classList.contains("ML__caret")||t.classList.contains("ML__text-caret")||t.classList.contains("ML__command-caret"))return t;let i;for(const a of t.children)if(i=e(a),i)break;return i}(e);if(t){const e=t.getBoundingClientRect();return{x:e.right,y:e.bottom,height:e.height}}return null}function Li(e){const t=e.querySelectorAll(".ML__selected");if(t&&t.length>0){const i={top:1/0,bottom:-1/0,left:1/0,right:-1/0};t.forEach(e=>{const t=e.getBoundingClientRect();t.lefti.right&&(i.right=t.right),t.bottom>i.bottom&&(i.bottom=t.bottom),t.top{if("mousedown"!==i.type||1===i.buttons){i.stopPropagation(),"touchstart"!==i.type&&i.preventDefault(),t.classList.add("pressed"),a=Date.now(),"touchstart"===i.type&&(r=i.changedTouches[0].identifier);const s=t.getAttribute("data-"+e.options.namespace+"command-pressed");s&&e.executeCommand(JSON.parse(s));const l=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldStart");l&&(o=t,n&&clearTimeout(n),n=window.setTimeout((function(){t.classList.contains("pressed")&&e.executeCommand(JSON.parse(l))}),300))}}),ki(t,"mouseleave touchcancel",()=>{t.classList.remove("pressed")}),ki(t,"touchmove:passive",e=>{for(let t=0;t{1===e.buttons&&t.classList.add("pressed")}),ki(t,"mouseup touchend click",i=>{if(s){i.stopPropagation(),i.preventDefault();const e=s;return s=null,void e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}if(t.classList.remove("pressed"),t.classList.add("active"),"click"===i.type&&0!==i.detail)return i.stopPropagation(),void i.preventDefault();window.setTimeout((function(){t.classList.remove("active")}),150);let r=t.getAttribute("data-"+e.options.namespace+"command-pressAndHoldEnd");const n=Date.now();(t!==o||nequal to","\\supseteq":"superset of or
    equal to","\\supset":"superset of","\\subset":"subset of","\\partial":"partial derivative","\\bigcup":"union","\\bigcap":"intersection","\\approx":"approximately equal to","\\notin":"not an element of","\\in":["element of","included in"],"\\infty":"infinity","\\land":"logical and","\\sqrt":"square root","\\prod":"product","\\sum":"summation","\\amalg":["amalgamation","coproduct","free product","disjoint union"],"\\cup":"union with","\\cap":"intersection with","\\int":"integral","\\iint":"surface integral","\\oint":"curve integral","\\iiint":"volume integral","\\iff":"if and only if","\\ln":"natural logarithm","\\boldsymbol":"bold","\\setminus":"set subtraction","\\stackrel":"relation with symbol above","\\stackbin":"operator with symbol above","\\underset":"symbol with annotation below","\\overset":"symbol with annotation above","\\hslash":["h-bar","Planck constant"],"\\gtrsim":"greater than or
    similar to","\\propto":"proportional to","\\equiv":"equivalent to","\\!":["negative thin space","(-3 mu)"],"\\ ":["space","(6 mu)"],"\\,":["thin space","(3 mu)"],"\\:":["medium space","(4 mu)"],"\\;":["thick space","(5 mu)"],"\\quad":["1 em space","(18 mu)"],"\\qquad":["2 em space","(36 mu)"],"\\enskip":["½ em space","(9 mu)"],"\\mp":"minus or plus","\\pm":"plus or minus","\\Im":"Imaginary part of","\\Re":"Real part of","\\gothicCapitalR":"Real part of","\\gothicCapitalI":"Imaginary part part of","\\differentialD":"differential d","\\aleph":["aleph","infinite cardinal",'Wikipedia '],"\\beth":["beth","beth number",'Wikipedia '],"\\gimel":["gimel","gimel function",'Wikipedia '],"\\O":"empty set","\\N":"set of
    natural numbers","\\Z":"set of
    integers","\\Q":"set of
    rational numbers","\\C":"set of
    complex numbers","\\R":"set of
    real numbers","\\P":"set of
    prime numbers","\\lesseqqgtr":"less than, equal to or
    greater than","\\gnapprox":"greater than and
    not approximately","\\lnapprox":"lesser than and
    not approximately","\\j":"dotless j","\\i":"dotless i","\\cdot":"centered dot","\\lmoustache":"left moustache","\\rmoustache":"right moustache","\\nabla":["nabla","del","differential vector operator"],"\\square":["square","d’Alembert operator",'Wikipedia '],"\\blacksquare":["black square","end of proof","tombstone","Halmos symbol"],"\\Box":"end of proof","\\colon":["such that","ratio"],"\\coloneq":["is defined by","is assigned"],"\\Colon":["is defined by","as"],"\\_":["underbar","underscore"],"\\ll":"much less than","\\gg":"much greater than","\\doteq":"approximately equal to","\\Doteq":"approximately equal to","\\doteqdot":"approximately equal to","\\cong":["isomorphism of","(for algebras, modules...)"],"\\det":["determinant of","(of a matrix)"],"\\dotplus":"Cartesian product algebra","\\otimes":["tensor product","(of algebras)","Kronecker product","(of matrices)"],"\\oplus":["direct sum","(of modules)"],"\\lb":"base-2 logarithm","\\lg":"base-10 logarithm","\\wp":["Weierstrass P",'Wikipedia '],"\\wr":["wreath product",'Wikipedia '],"\\top":["tautology","Proposition P is universally true"],"\\bot":["contradiction","Proposition P is contradictory"],"\\mid":["probability","of event A given B"],"\\mho":["Siemens","electrical conductance in SI unit",'Wikipedia '],"\\Longrightarrow":"implies","\\Longleftrightarrow":"if, and only if,","\\prec":"precedes","\\preceq":"precedes or is equal to","\\succ":"succeedes","\\succeq":"succeedes or is equal to","\\perp":["is perpendicular to","is independent of"],"\\models":["entails","double-turnstyle, models","is a semantic consequence of",'Wikipedia '],"\\vdash":["satisfies","turnstyle, assertion sign","syntactic inference",'Wikipedia '],"\\implies":["implies","logical consequence"],"\\impliedby":["implied by","logical consequence"],"\\surd":["surd","root of","checkmark"],"\\ltimes":["semi direct product",'Wikipedia '],"\\rtimes":["semi direct product",'Wikipedia '],"\\leftthreetimes":["semi direct product",'Wikipedia '],"\\rightthreetimes":["semi direct product",'Wikipedia '],"\\divideontimes":["divide on times"],"\\curlywedge":"nor","\\curlyvee":"nand","\\simeq":"is group isomorphic with","\\vartriangleleft":["is a normal subgroup of","is an ideal ring of"],"\\circ":["circle","ring","function composition"],"\\rlap":["overlap right","\\rlap{x}o"],"\\llap":["overlap left","o\\llap{/}"],"\\colorbox":["color box","\\colorbox{#fbc0bd}{...}"],"\\ast":["asterisk","reflexive closure (as a superscript)"],"\\bullet":"bullet","\\lim":"limit"};function $i(t,i,a){if(!i||0===i.length)return void Ti(t);const o=i,r=function(e,t){const i=Qe(e,"math",null,t.options.macros);return C(L(We({mathstyle:c.displaystyle,macros:t.options.macros},i),"ML__base"),"ML__mathlive").toMarkup()}(i,t),s=function(t){let i=Ci[t]||"";return e(i)&&(i=i.join("
    ")),i}(o),n=function(t,i){let a=[];if("string"==typeof i){const t=gi[i];e(t)?a=t.slice():t&&a.push(t)}const o=bi(i),r=new RegExp("^"+o.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");return t.forEach(e=>{r.test(bi(e.command))&&a.push(e)}),a.map(vi)}(t.keybindings,o).join("
    ");let l=a?'
    ':"";l+='',l+='
    '+r+"
    ",s&&(l+='
    '+s+"
    "),n&&(l+='
    '+n+"
    "),l+="
    ",l+=a?'
    ':"",function(e,t){e.popover.innerHTML=e.options.createHTML(t);const i=Si(e.field);i&&Di(e,i),e.popover.classList.add("is-visible")}(t,l);let d=t.popover.getElementsByClassName("ML__popover__content");d&&d.length>0&&Ai(t,d[0],{default:["complete",{acceptSuggestion:!0}]}),d=t.popover.getElementsByClassName("ML__popover__prev-shortcut"),d&&d.length>0&&Ai(t,d[0],"previousSuggestion"),d=t.popover.getElementsByClassName("ML__popover__next-shortcut"),d&&d.length>0&&Ai(t,d[0],"nextSuggestion")}function qi(e,t){if(e.element&&e.element.mathfield===e&&e.popover.classList.contains("is-visible"))if(null==t?void 0:t.deferred)window.requestAnimationFrame(()=>qi(e));else if(Kt(e.model)&&"command"===Kt(e.model).type){const t=Si(e.field);t&&Di(e,t)}else Ti(e)}function Di(e,t){const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerWidth-document.documentElement.clientWidth,r=window.innerHeight-document.documentElement.clientHeight,s=e.virtualKeyboardVisible?e.virtualKeyboard.offsetHeight:0;t.x+e.popover.offsetWidth/2>a-o?e.popover.style.left=a-e.popover.offsetWidth-o+"px":t.x-e.popover.offsetWidth/2<0?e.popover.style.left="0":e.popover.style.left=t.x-e.popover.offsetWidth/2+"px",t.y+e.popover.offsetHeight+5>i-r-s?(e.popover.classList.add("ML__popover--reverse-direction"),e.popover.style.top=t.y-t.height-e.popover.offsetHeight-5+"px"):(e.popover.classList.remove("ML__popover--reverse-direction"),e.popover.style.top=t.y+5+"px")}function Ti(e){e.popover.classList.remove("is-visible")}function Ki(e,t=!1){var i;let a="";const o=Ft(e);if(o){const r=t?e.anchorOffset()+1:o.end,s=e.siblings();for(let e=o.start;e{"placeholder"===e.type&&a.push(e)});Qt(e,0),e.path[e.path.length-1].offset=i.start-1,0!==a.length&&Rt(e,1,!1)||It(e,i.start+t.length-1)}else e.siblings().splice(i.start,i.end-i.start),It(e,i.start-1,0);Tt(e)}}const Bi={"\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"∥","\\mid":"∣","\\lbrace":"{","\\rbrace":"}","\\langle":"⟨","\\rangle":"⟩","\\lfloor":"⌊","\\rfloor":"⌋","\\lceil":"⌈","\\rceil":"⌉","\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};function Oi(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Fi(e,t){return e&&t.generateID?' extid="'+e+'"':""}function Pi(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="",s=-1,n=-1;const l=e.atoms[e.index];if(e.index0){if(a=!0,Ri(e)&&(s=e.index,e.index+=1),Ii(e)&&(n=e.index,e.index+=1),s>=0&&n>=0)o=""+r,o+=Xi(e.atoms[n].subscript,0,0,i).mathML,o+=Xi(e.atoms[s].superscript,0,0,i).mathML,o+="";else if(s>=0){if(o=""+r,Ri(e)){const t=Xi(e.atoms[s].superscript,0,0,i).mathML,a=Xi(e.atoms[s+1].superscript,0,0,i).mathML;o+=""!==t&&""!==t||""!==a&&""!==a?""===t||""===t?"":t:""}else o+=Xi(e.atoms[s].superscript,0,0,i).mathML;o+=""}else n>=0?(o=""+r,o+=Xi(e.atoms[n].subscript,0,0,i).mathML,o+=""):o=r;"mi"!==e.lastType&&"mn"!==e.lastType&&"mtext"!==e.lastType&&"fence"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),r.endsWith(">f")||r.endsWith(">g")?(o+="&x2061;",e.lastType="applyfunction"):e.lastType=/^(.*)<\/mo>$/.test(o)?"mo":"mi",e.mathML+=o}return a}function Ri(e){return e.index"+e,o+=Xi(r.subscript,0,0,i).mathML,o+=Xi(r.superscript,0,0,i).mathML,o+=""):r.superscript?(o=""+e,o+=Xi(r.superscript,0,0,i).mathML,o+=""):r.subscript&&(o=""+e,o+=Xi(r.subscript,0,0,i).mathML,o+=""),o.length>0&&(a=!0,t.mathML+=o,t.lastType=""),a))}function Vi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="";for(;e.index0&&(a=!0,r=""+r+"",e.mathML+=r,e.lastType="mtext"),a}function Wi(e,t,i){let a=!1;t=t||e.atoms.length;const o=e.index;let r="",s=function(e){let t=-1,i=e.index,a=!1,o=!1;for(;i=0&&s=0;)r+=e.atoms[e.index].body,e.index+=1;return r.length>0&&(a=!0,r=""+r+"",s<0&&Ri(e)&&(s=e.index,e.index+=1),s>=0&&(r=""+r,r+=Xi(e.atoms[s].superscript,0,0,i).mathML,r+=""),e.mathML+=r,e.lastType="mn"),a}function Ui(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";if(e.index",o+=Gi(e.atoms[l],i),o+=Xi(e.atoms,l+1,c,i).mathML,o+=Gi(e.atoms[c],i),o+="","mi"!==e.lastType&&"mn"!==e.lastType&&"mfrac"!==e.lastType&&"fence"!==e.lastType||(o=""+o),e.index=c+1,Hi(o,e,i)&&(a=!0,e.lastType="",o=""),r="fence")}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function ji(e,t,i){let a=!1;t=t||e.atoms.length;let o="",r="";const s=e.atoms[e.index];if(e.index":"")+e,o+=Xi(s.subscript,0,0,i).mathML,o+=Xi(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):s.superscript?(o+=("nolimits"!==s.limits?"":"")+e,o+=Xi(s.superscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""):(o+=("nolimits"!==s.limits?"":"")+e,o+=Xi(s.subscript,0,0,i).mathML,o+="nolimits"!==s.limits?"":""),r="mo"}else{const t=e.atoms[e.index],s="\\operatorname"===t.symbol,n=s?'"+Zi(t.body)+"":Gi(t,i);o+=n,e.index+=1,Hi(o,e,i)&&(a=!0,e.lastType="",o=""),e.index-=1,s||/^(.*)<\/mo>$/.test(n)?r=s?"mi":"mo":(o+="",r="applyfunction")}"mi"!==e.lastType&&"mn"!==e.lastType||/^(.*)<\/mo>$/.test(o)||(o=""+o),e.index+=1}return o.length>0&&(a=!0,e.mathML+=o,e.lastType=r),a}function Xi(e,t,i,a){const o={atoms:e,index:null!=t?t:0,mathML:"",lastType:""};if("number"==typeof e||"boolean"==typeof e)o.mathML=e.toString();else if("string"==typeof e)o.mathML=e;else if(e instanceof Ue)o.mathML=Yi(e,a);else if(Array.isArray(e)){let t=0;for(i=i||(e?e.length:0);o.index0&&"genfrac"===o.atoms[o.index].type&&(e=""+e),"genfrac"===o.atoms[o.index].type?o.lastType="mfrac":o.lastType="",e.length>0&&(o.mathML+=e,t+=1),o.index+=1}t>1&&(o.mathML=""+o.mathML+"")}return o}function Gi(e,t){let i="";const a=Zi(e.body);return a&&(i=""+a+""),i}function Zi(e){if(!e)return"";if("string"==typeof e)return Oi(e);if(!Array.isArray(e)&&"string"==typeof e.body)return Oi(e.body);let t="";for(const i of e)"string"==typeof i.body&&(t+=i.body);return Oi(t)}function Yi(e,t){var i,a,o,r,s,n,l,c,d,m,p,u;const h={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:"⇋"},f={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"ℏ","\\cdotp":"⋅","\\ldots":"…","\\cdots":"⋯","\\ddots":"⋱","\\vdots":"⋮","\\ldotp":"."},g={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let y,b,v,x,k,_,w="",M="",z={cal:"script",frak:"fraktur",bb:"double-struck",scr:"script",cmtt:"monospace",cmss:"sans-serif"}[e.fontFamily||e.font]||"";z&&(z=' mathvariant="'+z+'"');const S=e.symbol;if("text"===e.mode)w=""+e.body+"";else switch(e.type){case"first":break;case"group":case"root":w=Xi(e.body,0,0,t).mathML;break;case"array":if((e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(w+="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Bi[e.leftDelim]||e.leftDelim)+"")),w+="",y=0;y"+Xi(e.array[b][y],0,0,t).mathML+"";w+=""}w+="",(e.leftDelim&&"."!==e.leftDelim||e.rightDelim&&"."!==e.rightDelim)&&(e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Bi[e.leftDelim]||e.rightDelim)+""),w+="");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(w+=""),e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Bi[e.leftDelim]||e.leftDelim)+""),e.hasBarLine?(w+="",w+=Xi(e.numer,0,0,t).mathML||" ",w+=Xi(e.denom,0,0,t).mathML||" ",w+=""):(w+="",w+=""+Xi(e.numer,0,0,t).mathML+"",w+=""+Xi(e.denom,0,0,t).mathML+"",w+=""),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Bi[e.rightDelim]||e.rightDelim)+""),(e.leftDelim||e.rightDelim)&&(w+="");break;case"surd":e.index?(w+="",w+=Xi(e.body,0,0,t).mathML,w+=Xi(e.index,0,0,t).mathML,w+=""):(w+="",w+=Xi(e.body,0,0,t).mathML,w+="");break;case"leftright":w="",e.leftDelim&&"."!==e.leftDelim&&(w+=""+(Bi[e.leftDelim]||e.leftDelim)+""),e.body&&(w+=Xi(e.body,0,0,t).mathML),e.rightDelim&&"."!==e.rightDelim&&(w+=""+(Bi[e.rightDelim]||e.rightDelim)+""),w+="";break;case"sizeddelim":case"delim":w+='"+(Bi[e.delim]||e.delim)+"";break;case"accent":w+='",w+=Xi(e.body,0,0,t).mathML,w+=""+(Bi[S]||e.accent)+"",w+="";break;case"line":case"overlap":break;case"overunder":k=e.overscript,x=e.underscript,(e.svgAbove||k)&&(e.svgBelow||x)?_=e.body:k&&k.length>0?(_=e.body,(null===(a=null===(i=e.body)||void 0===i?void 0:i[0])||void 0===a?void 0:a.underscript)?(x=e.body[0].underscript,_=e.body[0].body):"first"===(null===(r=null===(o=e.body)||void 0===o?void 0:o[0])||void 0===r?void 0:r.type)&&(null===(n=null===(s=e.body)||void 0===s?void 0:s[1])||void 0===n?void 0:n.underscript)&&(x=e.body[1].underscript,_=e.body[1].body)):x&&x.length>0&&(_=e.body,(null===(c=null===(l=e.body)||void 0===l?void 0:l[0])||void 0===c?void 0:c.overscript)?(k=e.body[0].overscript,_=e.body[0].body):"first"===(null===(m=null===(d=e.body)||void 0===d?void 0:d[0])||void 0===m?void 0:m.type)&&(null===(u=null===(p=e.body)||void 0===p?void 0:p[1])||void 0===u?void 0:u.overscript)&&(k=e.body[1].overscript,_=e.body[1].body)),(e.svgAbove||k)&&(e.svgBelow||x)?(w+=``,w+=h[e.svgBody]||Xi(_,0,0,t).mathML,w+=h[e.svgBelow]||Xi(x,0,0,t).mathML,w+=h[e.svgAbove]||Xi(k,0,0,t).mathML,w+=""):e.svgAbove||k?(w+=``+(h[e.svgBody]||Xi(_,0,0,t).mathML),w+=h[e.svgAbove]||Xi(k,0,0,t).mathML,w+=""):(e.svgBelow||x)&&(w+=``+(h[e.svgBody]||Xi(_,0,0,t).mathML),w+=h[e.svgBelow]||Xi(x,0,0,t).mathML,w+="");break;case"placeholder":case"mord":{w=f[S]||S||("string"==typeof e.body?e.body:"");const i=S?S.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null;i?w="&#x"+i[1]+";":w.length>0&&"\\"===w.charAt(0)&&(w="string"==typeof e.body&&e.body.charCodeAt(0)>255?"&#x"+("000000"+e.body.charCodeAt(0).toString(16)).substr(-4)+";":"string"==typeof e.body?e.body.charAt(0):e.body);const a=/\d/.test(w)?"mn":"mi";w="<"+a+z+Fi(e.id,t)+">"+Oi(w)+"";break}case"mbin":case"mrel":case"textord":case"minner":w=S&&f[S]?""+f[S]+"":S&&Bi[S]?""+Bi[S]+"":Gi(e,t);break;case"mpunct":w='"+(Bi[S]||S)+"";break;case"mop":"​"!==e.body&&(w="",w+="\\operatorname"===S?e.body:S||e.body,w+="");break;case"mathstyle":break;case"box":w='"+Xi(e.body,0,0,t).mathML+"";break;case"spacing":w+='';break;case"enclose":w=''+Xi(e.body,0,0,t).mathML+"";break;case"space":w+=" "}return w}function Ji(e,t){return Xi(e,0,0,t).mathML}function Qi(e){let t=0;for(let i=0;i{zi(e)&&e.dirty&&ta(e)}))}function ta(e,t){t=null!=t?t:{},e.dirty=!1,window.mathlive||(window.mathlive={}),Kt(e.model)||(e.model.path=[{relation:"body",offset:0}]),e.model.root.forEach(e=>{e.caret="",e.isSelected=!1,e.containsCaret=!1});const i=e.hasFocus();if(Jt(e.model)?Kt(e.model).caret=i&&!e.options.readOnly?e.mode:"":oi(e.model,e=>{e.isSelected=!0}),i&&!e.options.readOnly){let t=e.model.ancestor(1),i=1,a=!1;for(;t&&!a;)"surd"!==t.type&&"leftright"!==t.type||(t.containsCaret=!0,a=!0),i+=1,t=e.model.ancestor(i)}const a=L(We({mathstyle:c.displaystyle,letterShapeStyle:e.options.letterShapeStyle,atomIdsSettings:{seed:Qi(e.model.root.toLatex(!1)),groupNumbers:t.forHighlighting},smartFence:e.options.smartFence,macros:e.options.macros},e.model.root),"ML__base");a.attributes={translate:"no","aria-hidden":"true"};const o=C(a,"ML__mathlive");e.field.innerHTML=e.options.createHTML(o.toMarkup(0,e.options.horizontalSpacingScale)),e.field.classList.toggle("ML__focused",i&&!e.options.readOnly),e.accessibleNode.innerHTML=e.options.createHTML(''+Ji(e.model.root,e.options)+"");const r=Li(e.field);if(null!==r){const t=document.createElement("div");t.classList.add("ML__selection"),t.style.position="absolute",t.style.left=Number(r.left).toString()+"px",t.style.top=Number(r.top).toString()+"px",t.style.width=Number(Math.ceil(r.right-r.left)).toString()+"px",t.style.height=Number(Math.ceil(r.bottom-r.top-1)).toString()+"px",e.field.insertBefore(t,e.field.childNodes[0])}}const ia={};function aa(e,t){t=null!=t?t:{target:"mathfield",canUndo:!1},Object.keys(e).forEach(i=>{ia[i]={...t,fn:e[i]}})}function oa(e,t=",",i){if(!e)return[];let a,o=[];for(let r of e)r&&r.length>0&&"first"===r[0].type&&(r=r.slice(1)),r&&r.length>0&&(a?o.push(a):a=new Ue("math","mpunct",t,i),o=o.concat(r));return o}function ra(t,i){const a=t.parent();if(a&&"array"===a.type&&e(a.array)){const e=t.relation();if(a.array){const o=ht(a.array,e);"after row"===i||"before row"===i?(o.col=0,o.row=o.row+("after row"===i?1:0),a.array.splice(o.row,0,[[]])):(o.col+="after column"===i?1:0,a.array[o.row].splice(o.col,0,[]));const r=ut(a.array,o);t.path.pop(),t.path.push({relation:"cell"+r.toString(),offset:0}),t.insertFirstAtom()}}}function sa(e){var t;const i=e.parent();if("leftright"===i.type){i.type="array";const a=null!==(t={"(":"pmatrix","\\lbrack":"bmatrix","\\lbrace":"cases"}[i.leftDelim])&&void 0!==t?t:"matrix",o=ee(a),r=[[i.body]];Object.assign(i,o.parser(a,[],r)),i.mode=Pt(e),i.environmentName=a,i.array=r,i.rowGaps=[0],delete i.body,e.path[e.path.length-1].relation="cell0"}}function na(e){return sa(e),ra(e,"after row"),Tt(e),!0}function la(e){return sa(e),ra(e,"after column"),Tt(e),!0}function ca(e,t=0){const i=e.suppressChangeNotifications;if(e.suppressChangeNotifications=!0,t=t<0?-1:t>0?1:t,st(e),e.parent().array&&t<0&&0===e.startOffset()){const t=e.parent().array;if(function(e){const t={col:0,row:0};for(;t.row0){let e=t.length;"first"===t[0].type&&(e-=1),e>0&&(i+=1)}a.row+=1}return i}(t,i.col)&&(function(e,t){let i=0;for(;i"placeholder"!==e.type&&"first"!==e.type);e.parent()[t]=null,e.path.pop(),e.siblings().splice(e.anchorOffset(),0,...i),It(e,e.anchorOffset()-1),e.announce("deleted: "+t)}else if("denom"===t){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),It(e,e.anchorOffset()+t.length-1),e.announce("deleted: denominator")}else if("body"===t){const t=e.siblings().filter(e=>"placeholder"!==e.type);e.path.length>1&&(t.shift(),e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...t),It(e,e.anchorOffset()-1),e.announce("deleted: root"))}else Wt(e,"backward"),da(e,-1)}else if(t>0)if(i!==a.length-1)/^(group|array|genfrac|surd|leftright|overlap|overunder|box|mathstyle|sizing)$/.test(e.sibling(1).type)?Wt(e,"forward"):(e.announce("deleted",null,a.slice(i+1,i+2)),a.splice(i+1,1));else if("numer"===e.relation()){const t=e.parent().numer.filter(e=>"placeholder"!==e.type&&"first"!==e.type),i=e.parent().denom.filter(e=>"placeholder"!==e.type&&"first"!==e.type);e.path.pop(),e.siblings().splice(e.anchorOffset(),1,...i),e.siblings().splice(e.anchorOffset(),0,...t),It(e,e.anchorOffset()+t.length-1),e.announce("deleted: numerator")}else Wt(e,"forward"),da(e,-1)}else{const t=e.startOffset()+1,i=e.endOffset()+1;e.announce("deleted",null,a.slice(t,i)),a.splice(t,i-t),It(e,t-1)}nt(e),e.suppressChangeNotifications=i,Dt(e),Tt(e)}function da(e,t=0){if(0===t)ca(e,0);else if(t>0)for(;t>0;)ca(e,1),t--;else for(;t<0;)ca(e,-1),t++;return!0}function ma(e,t){if(Jt(e))return!1;function i(t,i){let a=!0;return oi(e,e=>{a=a&&e[t]===i},{recursive:!0}),a}return t.color&&i("color",t.color)&&(t.color="none"),t.backgroundColor&&i("backgroundColor",t.backgroundColor)&&(t.backgroundColor="none"),t.fontFamily&&i("fontFamily",t.fontFamily)&&(t.fontFamily="none"),t.series&&(t.fontSeries=t.series),t.fontSeries&&i("fontSeries",t.fontSeries)&&(t.fontSeries="auto"),t.shape&&(t.fontShape=t.shape),t.fontShape&&i("fontShape",t.fontShape)&&(t.fontShape="auto"),t.size&&(t.fontSize=t.size),t.fontSize&&i("fontSize",t.fontSize)&&(t.fontSize="size5"),oi(e,e=>e.applyStyle(t),{recursive:!0}),Tt(e),!0}function pa(e){e.root.forEach(e=>{!Array.isArray(e.body)||0!==e.body.length&&"first"===e.body[0].type||e.body.unshift(new Ue(e.mode,"first")),!e.superscript||0!==e.superscript.length&&"first"===e.superscript[0].type||e.superscript.unshift(new Ue(e.mode,"first")),!e.subscript||0!==e.subscript.length&&"first"===e.subscript[0].type||e.subscript.unshift(new Ue(e.mode,"first")),!e.overscript||0!==e.overscript.length&&"first"===e.overscript[0].type||e.overscript.unshift(new Ue(e.mode,"first")),!e.underscript||0!==e.underscript.length&&"first"===e.underscript[0].type||e.underscript.unshift(new Ue(e.mode,"first")),!e.numer||0!==e.numer.length&&"first"===e.numer[0].type||e.numer.unshift(new Ue(e.mode,"first")),!e.denom||0!==e.denom.length&&"first"===e.denom[0].type||e.denom.unshift(new Ue(e.mode,"first")),!e.index||0!==e.index.length&&"first"===e.index[0].type||e.index.unshift(new Ue(e.mode,"first"))})}function ua(e,t,i){var a,o,r,s;if(null!==(a=i.smartFence)&&void 0!==a&&a){if(ga(e,t,i.style))return void pa(e)}else{const i=e.parent();if("leftright"===(null==i?void 0:i.type)&&"?"===i.rightDelim&&e.endOffset()===e.siblings().length-1&&/^[)}\]|]$/.test(t))return i.rightDelim=t,Wt(e,"forward"),pa(e),void Tt(e)}const n=e.suppressChangeNotifications;i.suppressChangeNotifications&&(e.suppressChangeNotifications=!0);const l=e.suppressChangeNotifications;e.suppressChangeNotifications=!0,i.insertionMode||(i.insertionMode="replaceSelection"),i.selectionMode||(i.selectionMode="placeholder"),i.format||(i.format="auto"),i.macros=null!==(o=i.macros)&&void 0!==o?o:e.options.macros;const c=i.mode||Pt(e);let d;const m=[je("math",Gt(e)).toLatex(!1)],p=null!==(r=i.placeholder)&&void 0!==r?r:"\\placeholder{}";m["?"]=p,"replaceSelection"!==i.insertionMode||Jt(e)?"replaceAll"===i.insertionMode?(e.root.body=[],e.root.latex="",e.path=[{relation:"body",offset:0}],e.extent=0):"insertBefore"===i.insertionMode?ti(e):"insertAfter"===i.insertionMode&&ei(e):da(e);const u=e.siblings(),h=e.startOffset();if(h+10&&u[h]&&"placeholder"===u[h].type&&da(e,-1),"math"===c&&"ASCIIMath"===i.format)[,t]=At(t,{format:"ASCIIMath"}),d=Qe(t,"math",null,null==i?void 0:i.macros,!1,e.listeners.onError),fa(e,d);else if("text"===c||"auto"!==i.format&&"latex"!==i.format)"text"!==c&&"text"!==i.format||(d=Qe(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/\\/g,"\\textbackslash ")).replace(/#/g,"\\#")).replace(/\$/g,"\\$")).replace(/%/g,"\\%")).replace(/&/g,"\\&")).replace(/_/g,"\\_")).replace(/{/g,"\\textbraceleft ")).replace(/}/g,"\\textbraceright ")).replace(/\^/g,"\\textasciicircum ")).replace(/~/g,"\\textasciitilde ")).replace(/£/g,"\\textsterling "),"text",m,i.macros,!1,e.listeners.onError));else if("command"===c){d=[];for(const e of t)R.test(e)&&d.push(new Ue("command","command",e))}else if(""===t)d=[new Ue("command","command","\\")];else{if("auto"===i.format&&([i.format,t]=At(t)),m[0])t=t.replace(/(^|[^\\])#@/g,"$1#0");else if(/(^|[^\\])#@/.test(t)){const i=function(e){const t=e.siblings();let i=e.startOffset();if("text"===t[i].mode)for(;i>=1&&"text"===t[i].mode;)i--;else for(;i>=1&&/^(mord|surd|msubsup|leftright|mop)$/.test(t[i].type);)i--;return i}(e);t=t.replace(/(^|[^\\])#@/g,"$1"+function(e,t,i){const a=e.siblings();if(rt(a))return"";if("first"===a[0].type&&0===t&&(t=1),"root"===e.parent().type&&1===t&&i===a.length-1)return e.parent().toLatex(!1);let o="",r=t;for(;r<=i;)o+=a[r].toLatex(!1),r++;return o}(e,i+1,e.startOffset())),function(e,t){t>0?e.siblings().splice(e.anchorOffset()+1,t):(e.siblings().splice(e.anchorOffset()+t+1,-t),It(e,e.anchorOffset()+t))}(e,i-e.startOffset())}else t=t.replace(/(^|[^\\])#@/g,"$1#?");/^\$\$(.*)\$\$$/.test(t)&&(t=t.substring(2,t.length-2)),m[0]||(m[0]=p),d=Qe(t,c,m,i.macros,null!==(s=i.smartFence)&&void 0!==s&&s,e.listeners.onError),"latex"!==i.format&&fa(e,d)}nt(e),function e(t,i){t&&i&&(Xe(t)?t.forEach(t=>e(t,i)):"object"==typeof t&&(t.color||t.backgroundColor||t.fontFamily||t.fontShape||t.fontSeries||t.fontSize||(t.applyStyle(i),e(t.body,i),e(t.numer,i),e(t.denom,i),e(t.index,i),e(t.overscript,i),e(t.underscript,i),e(t.subscript,i),e(t.superscript,i))))}(d,i.style);const f=e.parent();if("latex"!==i.format&&e.options.removeExtraneousParentheses&&f&&"leftright"===f.type&&"("===f.leftDelim&&rt(f.body)&&d&&1===d.length&&"genfrac"===d[0].type?(e.path.pop(),e.siblings()[e.anchorOffset()]=d[0]):("latex"!==i.format||1!==m.length||m[0]||"root"===f.type&&rt(f.body)&&(f.latex=t),e.siblings().splice(e.anchorOffset()+1,0,...d)),pa(e),e.suppressChangeNotifications=l,"placeholder"===i.selectionMode){const t=[];for(const e of d)e.forEach(e=>{"placeholder"===e.type&&t.push(e)});0!==t.length&&Rt(e,1,!1)?e.announce("move"):It(e,e.anchorOffset()+d.length)}else"before"===i.selectionMode||("after"===i.selectionMode?It(e,e.anchorOffset()+d.length):"item"===i.selectionMode&&It(e,e.anchorOffset(),d.length));Tt(e),e.suppressChangeNotifications=n}function ha(e){if(e)return 1===e.length&&"leftright"===e[0].type&&"("===e[0].leftDelim&&(e=e[0].body),e}function fa(e,t){if(t&&e.options.removeExtraneousParentheses){for(let e=0;t[e];e++)if("leftright"===t[e].type&&"("===t[e].leftDelim&&Xe(t[e].body)){let i=0,a=0,o=0;for(let r=0;t[e].body[r];r++)"genfrac"===t[e].body[r].type&&(i++,a=r),"first"!==t[e].body[r].type&&o++;0===o&&1===i&&(t[e]=t[e].body[a])}t.forEach(t=>{if("genfrac"===t.type&&(fa(e,t.numer),fa(e,t.denom),t.numer=ha(t.numer),t.denom=ha(t.denom)),t.superscript&&(fa(e,t.superscript),t.superscript=ha(t.superscript)),t.subscript&&(fa(e,t.subscript),t.subscript=ha(t.subscript)),t.underscript&&(fa(e,t.underscript),t.underscript=ha(t.underscript)),t.overscript&&(fa(e,t.overscript),t.overscript=ha(t.overscript)),t.index&&(fa(e,t.index),t.index=ha(t.index)),"surd"===t.type?(fa(e,t.body),t.body=ha(t.body)):Xe(t.body)&&fa(e,t.body),t.array)for(let i=gt(t.array);i>=0;i--)fa(e,ft(t.array,i))})}}function ga(e,t,i){const a=e.parent();let o="leftright"===a.type?a.leftDelim+a.rightDelim:"";if("\\lbrace\\rbrace"===o&&(o="{}"),"\\{\\}"===o&&(o="{}"),"{}"===o&&/\||\\vert|\\Vert|\\mvert|\\mid/.test(t))return ua(e,"\\,\\middle"+t+"\\, ",{mode:"math",format:"latex",style:i}),!0;"{"!==t&&"\\{"!==t||(t="\\lbrace"),"}"!==t&&"\\}"!==t||(t="\\rbrace"),"["===t&&(t="\\lbrack"),"]"===t&&(t="\\rbrack");const r=F[t];if(r&&("leftright"!==a.type||"|"!==a.leftDelim)){let a="";const o=Jt(e)||"placeholder"===Kt(e).type;a=e.sibling(0).isFunction?"\\mleft"+t+"\\mright":"\\left"+t+"\\right",a+=o?"?":r;let s=[];return o&&(s=e.siblings().splice(e.anchorOffset()+1,e.siblings().length)),ua(e,a,{mode:"math",format:"latex",style:i}),o&&(e.sibling(0).body=s,Wt(e,"backward")),!0}let s;if(Object.keys(F).forEach(e=>{t===F[e]&&(s=e)}),s){if(a&&"leftright"===a.type&&e.endOffset()===e.siblings().length-1)return a.rightDelim=t,Wt(e,"forward"),Tt(e),!0;const o=e.siblings();let r;for(r=e.endOffset();r>=0&&("leftright"!==o[r].type||"?"!==o[r].rightDelim);r--);if(r>=0)return o[r].rightDelim=t,o[r].body=o[r].body.concat(o.slice(r+1,e.endOffset()+1)),o.splice(r+1,e.endOffset()-r),It(e,r),Tt(e),!0;if(a&&"leftright"===a.type&&"?"===a.rightDelim){a.rightDelim=t;const i=o.slice(e.endOffset()+1);return o.splice(e.endOffset()+1),e.path.pop(),e.siblings().splice(e.endOffset()+1,0,...i),Tt(e),!0}const s=e.ancestor(2);return!(!s||"leftright"!==s.type||"?"!==s.rightDelim||e.endOffset()!==o.length-1)&&(Wt(e,"forward"),ga(e,t,i))}return!1}aa({performWithFeedback:(e,t)=>function(e,t){return e.focus(),e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),"moveToNextPlaceholder"===(t=t.replace(/-\w/g,e=>e[1].toUpperCase()))||"moveToPreviousPlaceholder"===t||"complete"===t?e.returnKeypressSound?(e.returnKeypressSound.load(),e.returnKeypressSound.play().catch(e=>{})):e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):"deletePreviousChar"!==t&&"deleteNextChar"!==t&&"deletePreviousWord"!==t&&"deleteNextWord"!==t&&"deleteToGroupStart"!==t&&"deleteToGroupEnd"!==t&&"deleteToMathFieldStart"!==t&&"deleteToMathFieldEnd"!==t||!e.deleteKeypressSound?e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{})):(e.deleteKeypressSound.load(),e.deleteKeypressSound.play().catch(e=>{})),e.executeCommand(t)}(e,t)}),aa({addRowAfter:na,addColumnAfter:la,addRowBefore:function(e){return sa(e),ra(e,"before row"),Tt(e),!0},addColumnBefore:function(e){return sa(e),ra(e,"before column"),Tt(e),!0}},{target:"model",category:"array-edit"});class ya{constructor(e){this.positions=[],this.root=e;const t=new ka;t.root=e,pa(t);do{this.positions.push({path:t.toString(),atom:xa(t),depth:t.path.length})}while(ba(t))}at(e){return this.positions[e]}find(e){for(let t=0;tthis.at(e).path)}}function ba(t){const i={body:"numer",numer:"denom",denom:"index",index:"overscript",overscript:"underscript",underscript:"subscript",subscript:"superscript"};if(t.anchorOffset()===t.siblings(!1).length-1){let e=i[t.relation()];const a=t.parent();for(;e&&!a[e];)e=i[e];if(e)return va(t,0,e),!0;if(t.parent().array){const e=gt(t.parent().array);let i=parseInt(t.relation().match(/cell([0-9]*)$/)[1])+1;for(;i{},moveOut:(null==e?void 0:e.moveOut)?e.moveOut:()=>!0,tabOut:(null==e?void 0:e.tabOut)?e.tabOut:()=>!0}}get selection(){const e=Kt(this);let t=void 0;if(this.parent().array)t=ft(this.parent().array,this.relation())[this.focusOffset()];else{const e=this.siblings();t=e[Math.min(e.length-1,this.focusOffset())]}const i=new ya(this.root);return[lt(i,{start:i.find(e),end:i.find(t)})]}set selection(e){!function(e,t){const i=Array.isArray(t)?t[0]:t,a=new ya(e.root);let o;i.direction||(i.direction="forward"),void 0===i.end&&(i.end=i.start),i.end<0&&(i.end=a.lastPosition),o="backward"===i.direction?a.at(i.end).path:a.at(i.start).path,Et(e,o,i.end-i.start)}(this,e)}get lastPosition(){return new ya(this.root).lastPosition}announce(e,t,i=[]){this.hooks.announce(this.mathfield,e,t,i)}toString(){return ct(this.path,this.extent)}siblings(e=!0){var t;if(0===this.path.length)return[];let i;return this.parent().array?i=ft(this.parent().array,this.relation()):(i=null!==(t=this.parent()[this.relation()])&&void 0!==t?t:[],"string"==typeof i&&(i=[])),!e||0!==i.length&&"first"===i[0].type||i.unshift(new Ue(this.parent().mode,"first")),i}anchorOffset(){return this.path.length>0?this.path[this.path.length-1].offset:0}focusOffset(){return this.path.length>0?this.path[this.path.length-1].offset+this.extent:0}groupIsSelected(){return 0===this.startOffset()&&this.endOffset()>=this.siblings().length-1}startOffset(){return Math.min(this.focusOffset(),this.anchorOffset())}endOffset(){return Math.max(this.focusOffset(),this.anchorOffset())}sibling(e){return this.siblings()[this.startOffset()+e]}ancestor(e){if(e>this.path.length)return null;let t=this.root;for(let i=0;i0?this.path[this.path.length-1].relation:""}insertFirstAtom(){this.siblings()}}function _a(e){if(ei(e),!Kt(e).superscript)if(Kt(e).subscript)Kt(e).superscript=[new Ue(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.superscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.subscript)?(e.path[e.path.length-1].offset+=1,Kt(e).superscript=[new Ue(e.parent().mode,"first")]):("limits"!==Kt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Ue(e.parent().mode,"msubsup","​",Bt(e))),e.path[e.path.length-1].offset+=1),Kt(e).superscript=[new Ue(e.parent().mode,"first")])}return e.path.push({relation:"superscript",offset:0}),Zt(e),!0}aa({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",denom:"numer",numer:"denom"}[e.relation()];return t||_a(e),e.parent()[t]||(e.parent()[t]=[new Ue(e.parent().mode,"first")]),It(e,0,"end",t),!0},moveBeforeParent:e=>e.path.length>1?(e.path.pop(),It(e,e.anchorOffset()-1),!0):(e.announce("plonk"),!1),moveAfterParent:e=>ii(e),moveToNextPlaceholder:e=>Rt(e,1),moveToPreviousPlaceholder:e=>Rt(e,-1),moveToNextChar:e=>Wt(e,"forward"),moveToPreviousChar:e=>Wt(e,"backward"),moveUp:e=>Wt(e,"upward"),moveDown:e=>Wt(e,"downward"),moveToNextWord:e=>jt(e,1),moveToPreviousWord:e=>jt(e,-1),moveToGroupStart:e=>It(e,0),moveToGroupEnd:e=>It(e,-1),moveToMathFieldStart:e=>Xt(e,-1),moveToMathFieldEnd:e=>Xt(e,1),moveToSuperscript:e=>_a(e),moveToSubscript:e=>function(e){if(ei(e),!Kt(e).subscript)if(Kt(e).superscript)Kt(e).subscript=[new Ue(e.parent().mode,"first")];else{const t=e.sibling(1);(null==t?void 0:t.subscript)?e.path[e.path.length-1].offset+=1:(null==t?void 0:t.superscript)?(e.path[e.path.length-1].offset+=1,Kt(e).subscript=[new Ue(e.parent().mode,"first")]):("limits"!==Kt(e).limits&&(e.siblings().splice(e.anchorOffset()+1,0,new Ue(e.parent().mode,"msubsup","​",Bt(e))),e.path[e.path.length-1].offset+=1),Kt(e).subscript=[new Ue(e.parent().mode,"first")])}return e.path.push({relation:"subscript",offset:0}),Zt(e),!0}(e)},{target:"model",category:"selection-anchor"}),aa({selectGroup:e=>Zt(e),selectAll:e=>Yt(e),extendToNextChar:e=>Ut(e,1),extendToPreviousChar:e=>Ut(e,-1),extendToNextWord:e=>jt(e,1,{extend:!0}),extendToPreviousWord:e=>jt(e,-1,{extend:!0}),extendUp:e=>Wt(e,"upward",{extend:!0}),extendDown:e=>Wt(e,"downward",{extend:!0}),extendToNextBoundary:e=>jt(e,1,{extend:!0}),extendToPreviousBoundary:e=>jt(e,-1,{extend:!0}),extendToGroupStart:e=>(Qt(e,-e.anchorOffset()),!0),extendToGroupEnd:e=>(Qt(e,e.siblings().length-e.anchorOffset()),!0),extendToMathFieldStart:e=>Xt(e,-1,{extend:!0}),extendToMathFieldEnd:e=>Xt(e,1,{extend:!0})},{target:"model",category:"selection-extend"}),aa({deleteAll:e=>(Yt(e),da(e)),deleteNextChar:e=>da(e,1),deletePreviousChar:e=>da(e,-1),deleteNextWord:e=>(jt(e,1,{extend:!0}),da(e)),deletePreviousWord:e=>(jt(e,-1,{extend:!0}),da(e)),deleteToGroupStart:e=>(Qt(e,-e.anchorOffset()),da(e)),deleteToGroupEnd:e=>(Xt(e,-1,{extend:!0}),da(e)),deleteToMathFieldStart:e=>(Xt(e,-1,{extend:!0}),da(e)),deleteToMathFieldEnd:e=>(Xt(e,1,{extend:!0}),da(e))},{target:"model",category:"delete"});const wa=["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"];function Ma(e){return!e.ctrlKey&&!e.metaKey&&"Dead"!==e.key&&wa.indexOf(e.code)>=0}function za(e){const t=[];return(e=function(e){if(!e.code){const t=Object.entries(hi().mapping);let i,a=!1,o=!1;for(let r=0;r<4;r++){for(const[s,n]of t)if(n[r]===e.key){i=s,3===r?(a=!0,o=!0):2===r?a=!0:1===r&&(o=!0);break}if(i)break}return new KeyboardEvent(e.type,{...e,altKey:a,shiftKey:o,code:i})}return new KeyboardEvent(e.type,e)}(e)).ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),0===t.length?"["+e.code+"]":(t.push("["+e.code+"]"),t.join("+"))}function Sa(e){var t;if(!e)return"";let i;return"Unidentified"===e.key&&e.target&&(i=e.target.value),i=null!==(t=null!=i?i:e.key)&&void 0!==t?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(i)&&(i=""),i}class La{constructor(e){this.maximumDepth=1e3,this.record=!1,this.canCoalesce=!1,this.model=e,this.reset()}reset(){this.stack=[],this.index=-1}startRecording(){this.record=!0}canUndo(){return this.index>0}canRedo(){return this.index!==this.stack.length-1}undo(e){this.canUndo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"undo"),this.restore(this.stack[this.index-1],e),this.index-=1,e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"undo"),this.canCoalesce=!1)}redo(e){this.canRedo()&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"redo"),this.index+=1,this.restore(this.stack[this.index],e),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"redo"),this.canCoalesce=!1)}pop(){this.canUndo()&&(this.index-=1,this.stack.pop())}snapshot(e){this.record&&("function"==typeof(null==e?void 0:e.onUndoStateWillChange)&&e.onUndoStateWillChange(this.model.mathfield,"snapshot"),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push({latex:this.model.root.toLatex(!1),selection:this.model.selection}),this.index++,this.stack.length>this.maximumDepth&&this.stack.shift(),e&&"function"==typeof e.onUndoStateDidChange&&e.onUndoStateDidChange(this.model.mathfield,"snapshot"),this.canCoalesce=!1)}snapshotAndCoalesce(e){this.canCoalesce&&this.pop(),this.snapshot(e),this.canCoalesce=!0}save(){return{latex:this.model.root.toLatex(!1),selection:this.model.selection}}restore(e,t){const i=this.model.suppressChangeNotifications;void 0!==t.suppressChangeNotifications&&(this.model.suppressChangeNotifications=t.suppressChangeNotifications),ua(this.model,e?e.latex:"",{...t,format:"latex",mode:"math",insertionMode:"replaceAll",selectionMode:"after",smartFence:!1}),this.model.selection=e?e.selection:[{start:0}],this.model.suppressChangeNotifications=i}}const Aa={"−":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega"},Ca={"\\pm":"+-","\\times":"xx","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrace":"{","\\rbrace":"}","\\langle":"(:","\\rangle":":)"};function $a(t){if(!t)return"";if(e(t)){let e="";if(0===t.length)return"";if("first"===t[0].type&&(t=t.slice(1)),0===t.length)return"";if("text"===t[0].mode){let i=0;for(e='"';t[i]&&"text"===t[i].mode;)e+=t[i].body,i++;e+='"'+$a(t.slice(i))}else if("math"===t[0].mode){let i=0;for(;t[i]&&"math"===t[i].mode;)e+=$a(t[i]),i++;e+=$a(t.slice(i))}return e.trim()}if("text"===t.mode)return'"'+t.body+'"';let i="";const a=t.symbol;let o;switch(t.type){case"group":case"root":i=$a(t.body);break;case"array":break;case"genfrac":(t.leftDelim||t.rightDelim)&&(i+="."!==t.leftDelim&&t.leftDelim?t.leftDelim:"{:"),t.hasBarLine?(i+="(",i+=$a(t.numer),i+=")/(",i+=$a(t.denom),i+=")"):(i+="("+$a(t.numer)+"),",i+="("+$a(t.denom)+")"),(t.leftDelim||t.rightDelim)&&(i+="."!==t.rightDelim&&t.rightDelim?t.rightDelim:"{:");break;case"surd":t.index?i+="root("+$a(t.index)+")("+$a(t.body)+")":i+="sqrt("+$a(t.body)+")";break;case"leftright":i+="."!==t.leftDelim&&t.leftDelim?t.leftDelim:"{:",i+=$a(t.body),i+="."!==t.rightDelim&&t.rightDelim?t.rightDelim:":}";break;case"sizeddelim":case"delim":case"overlap":case"overunder":break;case"mord":i=Aa[a]||a||("string"==typeof t.body?t.body:""),"\\"===i[0]&&(i=String(i)),o=a?a.match(/[{]?\\char"([0-9abcdefABCDEF]*)[}]?/):null,o?i=String.fromCharCode(parseInt("0x"+o[1])):i.length>0&&"\\"===i.charAt(0)&&(i="string"==typeof t.body?t.body.charAt(0):t.symbol);break;case"mbin":case"mrel":case"textord":case"minner":i=a&&Aa[a]?Aa[a]:a&&Ca[a]?Ca[a]:t.body;break;case"mopen":case"mclose":i+=t.body;break;case"mpunct":i=Ca[a]||a;break;case"mop":"​"!==t.body&&(i="",i+="\\operatorname"===a?$a(t.body):t.body||a,i+=" ");break;case"mathstyle":case"box":case"spacing":case"enclose":break;case"space":i=" "}if(t.subscript){i+="_";const e=$a(t.subscript);e.length>1&&!/^(-)?\d+(\.\d*)?$/.test(e)?i+="("+e+")":i+=e}if(t.superscript){i+="^";const e=$a(t.superscript);e.length>1&&!/^(-)?\d+(\.\d*)?$/.test(e)?i+="("+e+")":i+=e}return i}const qa={};function Da(e){const t=qa.locale.substring(0,2);let i="";return qa.strings[qa.locale]&&(i=qa.strings[qa.locale][e]),!i&&qa.strings[t]&&(i=qa.strings[t][e]),i||(i=qa.strings.en[e]),i||(i=e),i}function Ta(e,t,i){st(e);const a=[],o=t.substr(i);for(const e of o){const t=new Ue("command","command",e);t.isSuggestion=!0,a.push(t)}Array.prototype.splice.apply(e.siblings(),[e.anchorOffset()+1,0].concat(a))}function Ka(e,t){if(t=null!=t?t:{acceptSuggestion:!1},Ti(e),t.discard)return Ni(e.model,null),e.switchMode("math"),!0;const i=Ki(e.model,!t.acceptSuggestion);if(i){if("\\("===i||"\\)"===i)Ni(e.model,[]),ua(e.model,i.slice(1),{mode:e.mode});else{e.switchMode("math");const t=Qe(i,"math",null,e.options.macros);t?Ni(e.model,t):Ei(e.model,!0)}return e.snapshot(),e.model.announce("replacement"),!0}return!1}function Ea(e){!function(e){const t=e.siblings(),i=Ft(e);let a=i.start;for(;a1)}return ea(e),!0}qa.plural=function(e,t,i){var a;(i=null!=i?i:{}).type=null!==(a=i.type)&&void 0!==a?a:"cardinal";const o=qa.locale.substring(0,2),r="ordinal"===i.type?qa._ordinal:qa._cardinal;let s,n="ordinal"===i.type?qa._ordinalPluralCategories.indexOf(r.select(e)):qa._cardinalPluralCategories.indexOf(r.select(e));return qa.strings[qa.locale]&&(s=qa.strings[qa.locale][t]),!s&&qa.strings[o]&&(s=qa.strings[o][t]),s||(s=qa.strings.en[t],s||(s=t),n="ordinal"===i.type?qa._ordinalPluralCategories.indexOf(qa._ordinalEnglish.select(e)):qa._cardinalPluralCategories.indexOf(qa._cardinalEnglish.select(e))),s.split(";")[n]||s.split(";")[0]},qa.merge=function(e,t){if(e&&t){const i=qa._locale;qa.locale=e,qa.strings[e]={...qa.strings[e],...t},qa.locale=i}else e&&!t&&Object.keys(e).forEach(t=>qa.merge(t,e[t]))},Object.defineProperty(qa,"locale",{set(e){qa._locale=e,qa._ordinal=null,qa._cardinal=null},get(){var e;return qa._locale||(qa._locale=null!==(e=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==e?e:"en"),qa._locale}}),Object.defineProperty(qa,"ordinal",{get:()=>(qa._ordinal||(qa._ordinalEnglish=new Intl.PluralRules("en",{type:"ordinal"}),qa._ordinalEnglishPluralCategories=qa._ordinalEnglish.resolvedOptions().pluralCategories,qa._ordinal=new Intl.PluralRules(qa.locale,{type:"ordinal"}),qa._ordinalPluralCategories=qa._ordinal.resolvedOptions().pluralCategories),qa._ordinal)}),Object.defineProperty(qa,"cardinal",{get:()=>(qa._cardinal||(qa._cardinalEnglish=new Intl.PluralRules("en",{type:"cardinal"}),qa._cardinalEnglishPluralCategories=qa._cardinalEnglish.resolvedOptions().pluralCategories,qa._cardinal=new Intl.PluralRules(qa.locale,{type:"cardinal"}),qa._cardinalPluralCategories=qa._ordinal.resolvedOptions().pluralCategories),qa._cardinal)}),qa.strings={en:{"keyboard.tooltip.functions":"Functions","keyboard.tooltip.symbols":"Symbols","keyboard.tooltip.greek":"Greek Letters","keyboard.tooltip.command":"LaTeX Command Mode","keyboard.tooltip.numeric":"Numeric","keyboard.tooltip.roman":"Roman Letters","tooltip.copy to clipboard":"Copy to Clipboard","tooltip.redo":"Redo","tooltip.toggle virtual keyboard":"Toggle Virtual Keyboard","tooltip.undo":"Undo"},ar:{"keyboard.tooltip.functions":"مهام","keyboard.tooltip.symbols":"حرف او رمز","keyboard.tooltip.greek":"حروف يونانية","keyboard.tooltip.command":"حالة تلقي الأوامر اللاتك","keyboard.tooltip.numeric":"الرقمية","keyboard.tooltip.roman":"رموز الاحرف الرومانية","tooltip.copy to clipboard":"نسخ إلى الحافظة","tooltip.redo":"الإعادة","tooltip.toggle virtual keyboard":"تبديل لوحة المفاتيح الإفتراضية","tooltip.undo":"إلغاء"},de:{"keyboard.tooltip.functions":"Funktionen","keyboard.tooltip.symbols":"Symbole","keyboard.tooltip.greek":"Griechische Buchstaben","keyboard.tooltip.command":"LaTeX-Befehlsmodus","keyboard.tooltip.numeric":"Numerisch","keyboard.tooltip.roman":"Römische Buchstaben","tooltip.copy to clipboard":"In die Zwischenablage kopieren","tooltip.redo":"Wiederholen","tooltip.toggle virtual keyboard":"Virtuelle Tastatur umschalten","tooltip.undo":"Widerrufen"},el:{"keyboard.tooltip.functions":"συναρτήσεις","keyboard.tooltip.symbols":"σύμβολα","keyboard.tooltip.greek":"ελληνικά γράμματα","keyboard.tooltip.command":"Λειτουργία εντολών LaTeX","keyboard.tooltip.numeric":"Αριθμητικός","keyboard.tooltip.roman":"Ρωμαϊκά γράμματα","tooltip.copy to clipboard":"Αντιγραφή στο πρόχειρο","tooltip.redo":"Ξανακάνω","tooltip.toggle virtual keyboard":"Εναλλαγή εικονικού πληκτρολογίου","tooltip.undo":"Ξεκάνω"},es:{"keyboard.tooltip.functions":"Funciones","keyboard.tooltip.symbols":"Símbolos","keyboard.tooltip.greek":"Letras griegas","keyboard.tooltip.command":"Modo Comando LaTeX","keyboard.tooltip.numeric":"Numérico","keyboard.tooltip.roman":"Letras romanas","tooltip.copy to clipboard":"Copiar al portapapeles","tooltip.redo":"Rehacer","tooltip.toggle virtual keyboard":"Alternar teclado virtual","tooltip.undo":"Deshacer"},fa:{"keyboard.tooltip.functions":"توابع","keyboard.tooltip.symbols":"نمادها","keyboard.tooltip.greek":"حروف یونانی","keyboard.tooltip.command":"حالت دستور لاتک","keyboard.tooltip.numeric":"عددی","keyboard.tooltip.roman":"حروف رومی","tooltip.copy to clipboard":"کپی به کلیپبورد","tooltip.redo":"بازگشت به بعد","tooltip.toggle virtual keyboard":"نمایش/نهفتن کیبورد مجازی","tooltip.undo":"بازگشت به قبل"},fr:{"keyboard.tooltip.functions":"Fonctions","keyboard.tooltip.symbols":"Symboles","keyboard.tooltip.greek":"Lettres grecques","keyboard.tooltip.command":"Mode de commandes LaTeX","keyboard.tooltip.numeric":"Numérique","keyboard.tooltip.roman":"Lettres romaines","tooltip.copy to clipboard":"Copier dans le presse-papiers","tooltip.redo":"Rétablir","tooltip.toggle virtual keyboard":"Afficher/Masquer le clavier virtuel","tooltip.undo":"Annuler"},it:{"keyboard.tooltip.functions":"Funzioni","keyboard.tooltip.symbols":"Simboli","keyboard.tooltip.greek":"Lettere greche","keyboard.tooltip.command":"Modalità di comando LaTeX","keyboard.tooltip.numeric":"Numerico","keyboard.tooltip.roman":"Lettere romane","tooltip.copy to clipboard":"Copia negli appunti","tooltip.redo":"Rifare","tooltip.toggle virtual keyboard":"Attiva / disattiva la tastiera virtuale","tooltip.undo":"Disfare"},ja:{"keyboard.tooltip.functions":"関数","keyboard.tooltip.symbols":"シンボル","keyboard.tooltip.greek":"ギリシャ文字","keyboard.tooltip.command":"LaTeXコマンドモード","keyboard.tooltip.numeric":"数値","keyboard.tooltip.roman":"ローマ字","tooltip.copy to clipboard":"クリップボードにコピー","tooltip.redo":"やり直し","tooltip.toggle virtual keyboard":"仮想キーボードの切り替え","tooltip.undo":"元に戻す"},pl:{"keyboard.tooltip.functions":"Funkcje","keyboard.tooltip.symbols":"Symbolika","keyboard.tooltip.greek":"Litery greckie","keyboard.tooltip.command":"Tryb poleceń LaTeX","keyboard.tooltip.numeric":"Numeryczne","keyboard.tooltip.roman":"Litery rzymskie","tooltip.copy to clipboard":"Kopiuj do Schowka","tooltip.redo":"Przywróć","tooltip.toggle virtual keyboard":"Przełącz wirtualną klawiaturę","tooltip.undo":"Cofnij"},ru:{"keyboard.tooltip.functions":"Функции","keyboard.tooltip.symbols":"Символы","keyboard.tooltip.greek":"Греческие буквы","keyboard.tooltip.command":"Режим командной строки LaTeX","keyboard.tooltip.numeric":"числовой","keyboard.tooltip.roman":"Латинские буквы","tooltip.copy to clipboard":"Скопировать в буфер обмена","tooltip.redo":"переделывать","tooltip.toggle virtual keyboard":"Переключить виртуальную клавиатуру","tooltip.undo":"расстегивать"}},aa({complete:Ka,nextSuggestion:function(e){return e.suggestionIndex+=1,Ea(e),!1},previousSuggestion:function(e){if(e.suggestionIndex-=1,e.suggestionIndex<0){st(e.model);const t=ie(Ki(e.model));e.suggestionIndex=t.length-1}return Ea(e),!1}},{target:"mathfield",category:"autocomplete"});const Na={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"eye ","\\sum":"Summation ","\\prod":"Product ",a:'a',A:'capital A',"+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","​":"","−":"minus ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"};function Ba(e){let t=0;if(Xe(e))for(const i of e)"first"!==i.type&&(t+=1);return 1===t}function Oa(e){let t="";if(Xe(e))for(const i of e)"first"!==i.type&&"string"==typeof i.body&&(t+=i.body);return t}function Fa(e,t){var i;const a={...t,textToSpeechRulesOptions:{...t.textToSpeechRulesOptions}};if(window.sre&&"sre"===a.textToSpeechRules){const t=Ji(e,a);return t?(a.textToSpeechMarkup&&(a.textToSpeechRulesOptions=null!==(i=a.textToSpeechRulesOptions)&&void 0!==i?i:{},a.textToSpeechRulesOptions.markup=a.textToSpeechMarkup,"ssml"===a.textToSpeechRulesOptions.markup&&(a.textToSpeechRulesOptions.markup="ssml_step"),a.textToSpeechRulesOptions.rate=a.speechEngineRate),a.textToSpeechRulesOptions&&window.sre.System.getInstance().setupEngine(a.textToSpeechRulesOptions),window.sre.System.getInstance().toSpeech(t)):""}let o=function e(t,i,a){function o(e){return""+e+""}if(!i)return"";let r="";if(Xe(i)){let s=!1,n=!1;for(let l=0;l'),r+=i.body;else{i.id&&"math"===t&&(r+='');let s="",n="",l="",c=!1;switch(i.type){case"group":case"root":r+=e("math",i.body,a);break;case"genfrac":if(s=e("math",i.numer,a),n=e("math",i.denom,a),Ba(i.numer)&&Ba(i.denom)){const e={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Oa(i.numer)+"/"+Oa(i.denom)];e?r=e:r+=s+" over "+n}else r+=' the fraction '+s+', over '+n+'. End fraction.';break;case"surd":if(l=e("math",i.body,a),i.index){let t=e("math",i.index,a);t=t.trim();const o=t.replace(//g,"");r+="3"===o?' the cube root of '+l+'. End cube root':"n"===o?' the nth root of '+l+'. End root':' the root with index: '+t+', of '+l+'. End root'}else Ba(i.body)?r+=" the square root of "+l+" , ":r+=' the square root of '+l+'. End square root';break;case"leftright":r+=Na[i.leftDelim]||i.leftDelim,r+=e("math",i.body,a),r+=Na[i.rightDelim]||i.rightDelim;break;case"rule":case"overunder":case"overlap":break;case"placeholder":r+="placeholder "+i.body;break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":case"textord":{const o=i.symbol;if("\\mathbin"===o||"\\mathrel"===o||"\\mathopen"===o||"\\mathclose"===o||"\\mathpunct"===o||"\\mathord"===o||"\\mathinner"===o){r=e(t,i.body,a);break}let s=i.body,n=i.symbol;if("delim"!==i.type&&"sizeddelim"!==i.type||(s=n=i.delim),"text"===t)r+=s;else{if("mbin"===i.type&&(r+=''),s){const e=Na[s]||(n?Na[n.trim()]:"");if(e)r+=" "+e;else{const e=n?function(e){let t="";return"\\"===e.charAt(0)&&(t=" "+e.replace("\\","")+" "),t}(n.trim()):"";r+=e||function(e){let t="";return a.textToSpeechMarkup?/[a-z]/.test(e)?t+=' '+e+"":/[A-Z]/.test(e)?t+=String("capital "+e.toLowerCase()):t+=e:/[a-z]/.test(e)?t+=" '"+e.toUpperCase()+"'":/[A-Z]/.test(e)?t+=" 'capital "+e.toUpperCase()+"'":t+=e,t}(s)}}else r+=e("math",i.body,a);"mbin"===i.type&&(r+='')}break}case"mop":if("​"!==i.body){const t=i.symbol;if("\\sum"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the summation from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the summation from '+t+' of ',c=!0}else r+=" the summation of";else if("\\prod"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let o=e("math",i.subscript,a);o=o.trim(),r+=' the product from '+o+' to '+t+' of ',c=!0}else if(i.subscript){let t=e("math",i.subscript,a);t=t.trim(),r+=' the product from '+t+' of ',c=!0}else r+=" the product of ";else if("\\int"===t)if(i.superscript&&i.subscript){let t=e("math",i.superscript,a);t=t.trim();let s=e("math",i.subscript,a);s=s.trim(),r+=' the integral from '+o(s)+' to '+o(t)+' of ',c=!0}else r+=' the integral of ';else"string"==typeof i.body?r+=Na[i.body]||Na[i.symbol]||" "+i.body:i.symbol&&("\\"===i.symbol[0]?r+=" "+i.symbol.substr(1):r+=" "+i.symbol)}break;case"enclose":l=e("math",i.body,a),Ba(i.body)?r+=" crossed out "+l+" , ":r+=" crossed out "+l+". End cross out"}if(!c&&i.superscript){let o=e(t,i.superscript,a);o=o.trim();const s=o.replace(/<[^>]*>/g,"");if(Ba(i.superscript)){if("math"===t){const e=function(e){if(Xe(e))for(const t of e)if("first"!==t.type&&t.id)return t.id.toString();return""}(i.superscript);e&&(r+='')}"′"===s?r+=" prime ":"2"===s?r+=" squared ":"3"===s?r+=" cubed ":isNaN(parseInt(s))?r+=" to the "+o+"; ":r+=' to the '+s+" power; "}else isNaN(parseInt(s))?r+=" raised to the "+o+"; ":r+=' raised to the '+s+" power; "}if(!c&&i.subscript){let t=e("math",i.subscript,a);t=t.trim(),Ba(i.subscript)?r+=" sub "+t:r+=" subscript "+t+". End subscript. "}}return r}("math",e,a);if("ssml"===a.textToSpeechMarkup){let e="";a.speechEngineRate&&(e=''),o=''+e+"

    "+o+"

    "+(e?"
    ":"")+""}else o="mac"===a.textToSpeechMarkup&&"mac"===function(e){let t="other";return(null===navigator||void 0===navigator?void 0:navigator.platform)&&(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(/^(mac)/i.test(navigator.platform)?t="mac":/^(win)/i.test(navigator.platform)?t="win":/(android)/i.test(navigator.userAgent)?t="android":/(iphone)/i.test(navigator.userAgent)||/(ipod)/i.test(navigator.userAgent)||/(ipad)/i.test(navigator.userAgent)?t="ios":/\bCrOS\b/i.test(navigator.userAgent)&&(t="chromeos")),t===e?e:"!"+e}("mac")?o.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):o.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return o}function Pa(e,t,i){return t+Fa(i,{...e,textToSpeechMarkup:"",textToSpeechRulesOptions:{...e.textToSpeechRulesOptions,markup:"none"}})}function Ra(e,t){if(!t&&window&&window.mathlive&&(t=window.mathlive.config),(t=null!=t?t:{}).speechEngine&&"local"!==t.speechEngine)if("amazon"===t.speechEngine){if(window&&window.AWS){const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),a={OutputFormat:"mp3",VoiceId:t.speechEngineVoice,Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes(t.speechEngineVoice)?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(a,(function(e,t){if(e);else if(null==t?void 0:t.AudioStream){const e=new Uint8Array(t.AudioStream),i=new Blob([e.buffer],{type:"audio/mpeg"}),a=URL.createObjectURL(i);new Audio(a).play().catch(e=>{})}}))}}else t.speechEngine;else{const t=new SpeechSynthesisUtterance(e);window&&window.speechSynthesis.speak(t)}}function Ia(e,t,i,a){let o="";"plonk"===t?(e.plonkSound&&(e.plonkSound.load(),e.plonkSound.play().catch(e=>{})),e.resetKeystrokeBuffer()):"delete"===t?o=Pa(e.options,"deleted: ",a):"focus"===t||/move/.test(t)?o=(Jt(e.model)?"":"selected: ")+function(e,t){function i(e,t){return"body"===t.relation?{enclose:"cross out",leftright:"fence",surd:"square root",root:"math field"}[e.type]:{numer:"numerator",denom:"denominator",index:"index",body:"parent",subscript:"subscript",superscript:"superscript"}[t.relation]}const a=t?t.path:[],o=e.model.path,r=o[o.length-1];let s="";for(;a.length>o.length;)s+="out of "+i(t.parent(),a[a.length-1])+"; ",a.pop();if(!Jt(e.model))return Pa(e.options,"",Gt(e.model));const n=i(e.model.parent(),r);0===r.offset&&(s+=(n?"start of "+n:"unknown")+": ");const l=e.model.sibling(Math.max(1,e.model.extent));return l?s+=Pa(e.options,"",l):0!==r.offset&&(s+=n?"end of "+n:"unknown"),s}(e,i):"replacement"===t?o=Pa(e.options,"",e.model.sibling(0)):"line"===t?(o=Pa(e.options,"",e.model.root),e.accessibleNode.innerHTML=e.options.createHTML(''+Ji(e.model.root,e.options)+""),e.textarea.setAttribute("aria-label","after: "+o)):o=a?Pa(e.options,t+" ",a):t;const r=/\u00a0/.test(e.ariaLiveText.textContent)?"   ":"   ";e.ariaLiveText.textContent=o+r}aa({speak:(e,t,i)=>function(e,t,i){i=null!=i?i:{withHighlighting:!1};const a=function(e,t){let i=null;switch(t){case"all":i=e.model.root;break;case"selection":Jt(e.model)||(i=Gt(e.model));break;case"left":{const t=e.model.siblings(),a=e.model.startOffset();if(a>=1){i=[];for(let e=1;e<=a;e++)i.push(t[e])}break}case"right":{const t=e.model.siblings(),a=e.model.endOffset()+1;if(a<=t.length-1){i=[];for(let e=a;e<=t.length-1;e++)i.push(t[e])}break}case"group":i=e.model.siblings();break;case"parent":{const t=e.model.parent();t&&"root"!==t.type&&(i=e.model.parent());break}}return i}(e,t);if(null===a)return e.options.speakHook(function(e){let t="";switch(e){case"all":break;case"selection":t="no selection";break;case"left":t="at start";break;case"right":t="at end";break;case"group":break;case"parent":t="no parent"}return t}(t),e.options),!1;const o={...e.options};(i.withHighlighting||"amazon"===o.speechEngine)&&(o.textToSpeechMarkup=window.sre&&"sre"===o.textToSpeechRules?"ssml_step":"ssml");const r=Fa(a,o);return i.withHighlighting?(window.mathlive.readAloudMathField=e,ta(e,{forHighlighting:!0}),e.options.readAloudHook&&e.options.readAloudHook(e.field,r,e.options)):e.options.speakHook&&e.options.speakHook(r,o),!1}(e,t,i)},{target:"mathfield",category:"speech"});const Ha=()=>{};function Va(e){if("string"==typeof e){const t=new Audio;return t.preload="none",t.src=e,t.volume=.5,t}return e}function Wa(e){e instanceof HTMLAudioElement&&(e.pause(),e.removeAttribute("src"),e.load())}function Ua(t,i){const a=ja(t,Object.keys(t));return Object.keys(i).forEach(t=>{var o,r,s;switch(t){case"scriptDepth":if(e(i.scriptDepth))a.scriptDepth=[i.scriptDepth[0],i.scriptDepth[1]];else{if("number"!=typeof i.scriptDepth)throw Error("Unexpected value for scriptDepth");a.scriptDepth=[i.scriptDepth,i.scriptDepth]}break;case"namespace":if(!/^[a-z]*[-]?$/.test(i.namespace))throw Error("namespace must be a string of lowercase characters only");/-$/.test(i.namespace)?a.namespace=i.namespace:a.namespace=i.namespace+"-";break;case"locale":a.locale="auto"===i.locale?null!==(o=null===navigator||void 0===navigator?void 0:navigator.language.slice(0,5))&&void 0!==o?o:"en":i.locale,qa.locale=a.locale;break;case"strings":qa.merge(i.strings),a.strings=qa.strings;break;case"virtualKeyboardLayout":"auto"===i.virtualKeyboardLayout?a.virtualKeyboardLayout=null!==(r={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[qa.locale.substring(0,2)])&&void 0!==r?r:"qwerty":a.virtualKeyboardLayout=i.virtualKeyboardLayout;break;case"virtualKeyboardMode":{const e=null===(s=window.matchMedia)||void 0===s?void 0:s.call(window,"(any-pointer: coarse)").matches;"auto"===i.virtualKeyboardMode?a.virtualKeyboardMode=e?"onfocus":"off":a.virtualKeyboardMode=i.virtualKeyboardMode}break;case"letterShapeStyle":"auto"===i.letterShapeStyle?"fr"===qa.locale.substring(0,2)?a.letterShapeStyle="french":a.letterShapeStyle="tex":a.letterShapeStyle=i.letterShapeStyle;break;case"plonkSound":Wa(a.plonkSound),a.plonkSound=Va(i.plonkSound);break;case"keypressSound":if(Wa(a.keypressSound),"string"==typeof i.keypressSound){const e=Va(i.keypressSound);a.keypressSound={delete:e,return:e,spacebar:e,default:e}}else if(i.keypressSound instanceof HTMLAudioElement)a.keypressSound={delete:i.keypressSound,return:i.keypressSound,spacebar:i.keypressSound,default:i.keypressSound};else{if(!i.keypressSound.default)throw Error("Missing keypressSound.default");a.keypressSound={...i.keypressSound},a.keypressSound.return||(a.keypressSound.return=i.keypressSound.default),a.keypressSound.spacebar||(a.keypressSound.spacebar=i.keypressSound.default),a.keypressSound.delete||(a.keypressSound.delete=i.keypressSound.default)}break;case"onBlur":case"onFocus":case"onContentWillChange":case"onContentDidChange":case"onSelectionWillChange":case"onSelectionDidChange":case"onUndoStateWillChange":case"onUndoStateDidChange":case"onModeChange":case"onCommit":case"onVirtualKeyboardToggle":case"onReadAloudStatus":case"onError":if(null===i[t])a[t]=Ha;else if("function"!=typeof i[t])throw Error(t+" must be a function or null");a[t]=i[t];break;default:e(i[t])?a[t]=[...i[t]]:"object"==typeof i[t]?a[t]={...i[t]}:a[t]=i[t]}}),void 0!==i.overrideDefaultInlineShortcuts&&(i.overrideDefaultInlineShortcuts?a.inlineShortcuts=i.inlineShortcuts:a.inlineShortcuts={...St,...i.inlineShortcuts}),a}function ja(t,i){let a;a="string"==typeof i?[i]:void 0===i?Object.keys(t):i;const o={};return a.forEach(i=>{e(o[i])?o[i]=[...o[i]]:"object"==typeof o[i]?o[i]={...o[i]}:o[i]=t[i]}),"string"==typeof i?o[i]:o}function Xa(){return{namespace:"",substituteTextArea:void 0,readOnly:!1,createHTML:e=>e,fontsDirectory:"./fonts",defaultMode:"math",macros:O,horizontalSpacingScale:1,letterShapeStyle:"auto",smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,ignoreSpacebarInMathMode:!0,locale:qa.locale,strings:qa.strings,keybindings:fi,overrideDefaultInlineShortcuts:!1,inlineShortcuts:{},inlineShortcutTimeout:0,virtualKeyboardToggleGlyph:'',virtualKeyboardMode:"auto",virtualKeyboards:"all",virtualKeyboardLayout:"auto",customVirtualKeyboardLayers:{},customVirtualKeyboards:{},virtualKeyboardTheme:/android|cros/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?"material":"apple",keypressVibration:!0,keypressSound:null,plonkSound:null,textToSpeechRules:"mathlive",textToSpeechMarkup:"",textToSpeechRulesOptions:{},speechEngine:"local",speechEngineVoice:"Joanna",speechEngineRate:"100%",speakHook:Ha,readAloudHook:Ha,onAnnounce:Ia,onKeystroke:()=>!0,onMoveOutOf:()=>!0,onTabOutOf:()=>!0,onBlur:Ha,onFocus:Ha,onContentWillChange:Ha,onContentDidChange:Ha,onSelectionWillChange:Ha,onSelectionDidChange:Ha,onUndoStateWillChange:Ha,onUndoStateDidChange:Ha,onModeChange:Ha,onVirtualKeyboardToggle:Ha,onReadAloudStatus:Ha,onCommit:Ha,onError:()=>{}}}function Ga(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"math"!==r.mode||!(/mord|textord|mpunct/.test(r.type)||"mop"===r.type&&/[a-zA-Z]+/.test(r.body))||Boolean(r.superscript)||Boolean(r.subscript)||i&&!i(r),o||(r.applyStyle({mode:"text"}),r.symbol=r.body,r.latex=""),a-=1,t-=1}Tt(e.model)}function Za(e,t,i){"function"==typeof t&&(i=t,t=1/0),void 0===t&&(t=1/0);let a=0,o=!1;for(;!o;){const r=e.model.sibling(a);o=0===t||!r||"text"!==r.mode||" "===r.body||i&&!i(r),o||r.applyStyle({mode:"math"}),a-=1,t-=1}Ya(e),Tt(e.model)}function Ya(e){let t=0;for(;e.model.sibling(t)&&"math"===e.model.sibling(t).mode;)t-=1;if(e.model.sibling(t)&&"text"===e.model.sibling(t).mode&&" "===e.model.sibling(t).body&&(!e.model.sibling(t-1)||"math"===e.model.sibling(t-1).mode)){e.model.siblings().splice(t-1,1),Tt(e.model);const i=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,It(e.model,e.model.anchorOffset()-1),e.model.suppressChangeNotifications=i}}function Ja(e,t,i){!function(e){const t=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;if("Unidentified"===e.key)return;if("Dead"===e.key)return;const i=ci.filter(i=>{var a;return(null===(a=i.mapping[e.code])||void 0===a?void 0:a[t])===e.key});0!==i.length&&(i.forEach(e=>{e.score+=1}),ci.sort((e,t)=>t.score-e.score))}(i);const a=hi();if(e.keyboardLayout!==a.id&&(e.keyboardLayout=a.id,e.keybindings=xi(e.options.keybindings,t=>{"function"==typeof e.options.onError&&e.options.onError({code:"invalid-keybinding",arg:t.join("\n")})})),function(e,t){const i=e.keystrokeCaption;if(i&&e.keystrokeCaptionVisible){const a=e.element.getBoundingClientRect();i.style.left=a.left+"px",i.style.top=a.top-64+"px",i.innerHTML=e.options.createHTML(""+(vi(t)||t)+""+i.innerHTML),i.style.visibility="visible",setTimeout((function(){i.childNodes.length>0&&i.removeChild(i.childNodes[i.childNodes.length-1]),0===i.childNodes.length&&(i.style.visibility="hidden")}),3e3)}}(e,t),clearTimeout(e.keystrokeBufferResetTimer),e.options.onKeystroke&&!e.options.onKeystroke(e,t,i))return(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;let o,r,s,n=!1;if("command"!==e.mode&&(!i||!i.ctrlKey&&!i.metaKey))if("[Backspace]"===t)e.keystrokeBuffer=e.keystrokeBuffer.slice(0,-1),e.keystrokeBufferStates.pop(),e.resetKeystrokeBuffer({defer:!0});else if(Ma(i)){const t=Sa(i),a=e.keystrokeBuffer+t;let s=0;for(;!o&&s{e.startsWith(r)&&!i.includes(e)&&i.push(e)});const s=(null==t?void 0:t.inlineShortcuts)?t.inlineShortcuts:null;s&&Object.keys(s).forEach(e=>{e.startsWith(r)&&i.push(e)})}return i}(a,e.options).length<=1?n=!0:e.resetKeystrokeBuffer({defer:!0})}else e.resetKeystrokeBuffer();if(e.options.smartMode){const a=e.mode;o?e.mode="math":function(e,t,i){if(e.smartModeSuppressed)return!1;if(e.model.endOffset()<*|]$/.test(a))return Ya(e),!0}else{if("[Space]"===t)return Ga(e,void 0,e=>/[a-z][:,;.]$/.test(e.body)),!0;if(/[a-zA-Z]{3,}$/.test(o)&&!/(dxd|abc|xyz|uvw)$/.test(o))return Ga(e,void 0,e=>/[a-zA-Z]/.test(e.body)),!0;if(/(^|\W)(if|If)$/i.test(o))return Ga(e,1),!0;if(/(\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5){3,}$/u.test(o)&&!/(αβγ)$/.test(o))return Ga(e,void 0,e=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039b|\u039E|\u03A0|\u03A3|\u03a5|\u03a6|\u03a8|\u03a9|[\u03b1-\u03c9]|\u03d1|\u03d5|\u03d6|\u03f1|\u03f5)/u.test(e.body)),!0;if("?"===a)return!0;if("."===a&&!/[0-9-+]\.$/.test(o))return!0}return!1}(e,t,i)&&(e.mode={math:"text",text:"math"}[e.mode],s=""),e.mode!==a&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}if(o||s||(s=function(e,t,i){if(0===e.length)return"";for(let a=e.length-1;a>=0;a--)if(e[a].key===i&&(!e[a].ifMode||e[a].ifMode===t))return e[a].command;return""}(e.keybindings,e.mode,t)),!(o||s||"[Enter]"!==t&&"[Return]"!==t)&&"function"==typeof e.options.onCommit)return e.options.onCommit(e),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1;if(!o&&!s)return!0;if(e.options.readOnly&&"insert"===s[0])return!0;Ei(e.model,!1);const l=e.model.parent();if("moveAfterParent"===s&&l&&"leftright"===l.type&&e.model.endOffset()===e.model.siblings().length-1&&e.options.smartFence&&ga(e.model,".",e.style)&&(s="",ea(e)),"math"===e.mode&&"[Spacebar]"===t&&!o){const t=e.model.sibling(1),i=e.model.sibling(-1);(t&&"text"===t.mode||i&&"text"===i.mode)&&ua(e.model," ",{mode:"text"})}if(s)e.executeCommand(s);else if(o){const t={...Bt(e.model),...e.style};if(!/^(\\{|\\}|\\[|\\]|\\@|\\#|\\$|\\%|\\^|\\_|\\backslash)$/.test(o)){const a=e.mode;ua(e.model,Sa(i),{suppressChangeNotifications:!0,mode:e.mode,style:t}),e.snapshotAndCoalesce(),e.restoreToUndoRecord(e.keystrokeBufferStates[r]),e.mode=a}const a=e.model.suppressChangeNotifications;e.model.suppressChangeNotifications=!0,ua(e.model,o,{format:"latex",mode:e.mode,style:t,smartFence:!0}),Ya(e),o.endsWith(" ")&&(e.mode="text",ua(e.model," ",{mode:"text",style:t})),e.model.suppressChangeNotifications=a,Tt(e.model),Dt(e.model),e.snapshot(),e.dirty=!0,e.model.announce("replacement"),n&&e.resetKeystrokeBuffer()}return e.scrollIntoView(),(null==i?void 0:i.preventDefault)&&(i.preventDefault(),i.stopPropagation()),!1}function Qa(e,t,i){if(e.options.readOnly)return void e.model.announce("plonk");if((i=null!=i?i:{}).focus&&e.focus(),i.feedback&&(e.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),e.keypressSound&&(e.keypressSound.load(),e.keypressSound.play().catch(e=>{}))),i.commandMode&&"command"!==e.mode&&e.switchMode("command"),Ei(e.model,!1),i.simulateKeystroke){const i=t.charAt(0);if(!Ja(e,i,new KeyboardEvent("keypress",{key:i})))return}let a="",o=!1;if(e.pasteInProgress)e.pasteInProgress=!1,ua(e.model,t,{smartFence:e.options.smartFence,mode:"math"});else{const i={...Bt(e.model),...e.style},r=Ne(t);for(const t of r)if("command"===e.mode){st(e.model),e.suggestionIndex=0;const i=Ki(e.model),r=ie(i+t);o=r.length>1,0===r.length?(ua(e.model,t,{mode:"command"}),/^\\[a-zA-Z\\*]+$/.test(i+t)&&Ei(e.model,!0),Ti(e)):(ua(e.model,t,{mode:"command"}),r[0].match!==i+t&&Ta(e.model,r[0].match,-r[0].match.length+i.length+1),a=r[0].match)}else if("math"===e.mode){const a={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(a){if("moveToSuperscript"===a){if(eo(e)>=e.options.scriptDepth[1])return void e.model.announce("plonk")}else if("moveToSubscript"===a&&to(e)>=e.options.scriptDepth[0])return void e.model.announce("plonk");e.executeCommand(a)}else e.options.smartSuperscript&&"superscript"===e.model.relation()&&/[0-9]/.test(t)&&0===e.model.siblings().filter(e=>"first"!==e.type).length?(ua(e.model,t,{mode:"math",style:i}),ii(e.model)):ua(e.model,t,{mode:"math",style:i,smartFence:e.options.smartFence})}else"text"===e.mode&&ua(e.model,t,{mode:"text",style:i})}"command"!==e.mode&&e.snapshotAndCoalesce(),e.dirty=!0,e.scrollIntoView(),$i(e,a,o)}function eo(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!0:a.subscript&&(o=!1),i+=1,a=e.model.ancestor(i);return o?t:0}function to(e){let t=0,i=0,a=e.model.ancestor(i),o=!1;for(;a;)(a.superscript||a.subscript)&&(t+=1),a.superscript?o=!1:a.subscript&&(o=!0),i+=1,a=e.model.ancestor(i);return o?t:0}function io(e){return e.pasteInProgress=!0,!0}let ao;aa({undo:e=>(Ka(e),e.undo(),!0),redo:e=>(Ka(e),e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},enterCommandMode:e=>(e.switchMode("command"),!0),toggleKeystrokeCaption:e=>(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaption.innerHTML="",e.keystrokeCaptionVisible||(e.keystrokeCaption.style.visibility="hidden"),!1),switchMode:(e,t)=>(e.switchMode(t),!0),insert:(e,t,i)=>e.insert(t,i),typedText:(e,t)=>(Qa(e,t),!0),commit:e=>("function"==typeof e.options.onCommit&&e.options.onCommit(e),!0)}),aa({applyStyle:function(e,t){e.resetKeystrokeBuffer();const i=function(e){const t={};return"string"==typeof e.mode&&(t.mode=e.mode.toLowerCase()),"string"==typeof e.color&&(t.color=e.color),"string"==typeof e.backgroundColor&&(t.backgroundColor=e.backgroundColor),"string"==typeof e.fontFamily&&(t.fontFamily=e.fontFamily),"string"==typeof e.series&&(t.fontSeries=e.series),"string"==typeof e.fontSeries&&(t.fontSeries=e.fontSeries.toLowerCase()),t.fontSeries&&(t.fontSeries={bold:"b",medium:"m",normal:"m"}[t.fontSeries]||t.fontSeries),"string"==typeof e.shape&&(t.fontShape=e.shape),"string"==typeof e.fontShape&&(t.fontShape=e.fontShape.toLowerCase()),t.fontShape&&(t.fontShape={italic:"it",up:"n",upright:"n",normal:"n"}[t.fontShape]||t.fontShape),"string"==typeof e.size?t.fontSize=e.size:"number"==typeof e.size&&(t.fontSize="size"+Math.min(0,Math.max(10,e.size))),"string"==typeof e.fontSize&&(t.fontSize=e.fontSize.toLowerCase()),t.fontSize&&(t.fontSize={tiny:"size1",scriptsize:"size2",footnotesize:"size3",small:"size4",normal:"size5",normalsize:"size5",large:"size6",Large:"size7",LARGE:"size8",huge:"size9",Huge:"size10"}[t.fontSize]||t.fontSize),t}(t);if(i.mode){if(Jt(e.model))e.switchMode(i.mode);else{const t=e.mode,i="math"===(Pt(e.model)||e.options.defaultMode)?"text":"math";let a=e.$selectedText("ASCIIMath");if("math"===i&&/^"[^"]+"$/.test(a)&&(a=a.slice(1,-1)),e.insert(a,{mode:i,selectionMode:"item",format:"text"===i?"text":"ASCIIMath"}),e.mode=i,e.model.groupIsSelected()){const t=e.model.parent();!t||"group"!==t.type&&"root"!==t.type||(t.mode=i)}e.mode!==t&&"function"==typeof e.options.onModeChange&&e.options.onModeChange(e,e.mode)}delete i.mode}return Jt(e.model)?(e.style.fontSeries&&i.fontSeries===e.style.fontSeries&&(i.fontSeries="auto"),i.fontShape&&i.fontShape===e.style.fontShape&&(i.fontShape="auto"),i.color&&i.color===e.style.color&&(i.color="none"),i.backgroundColor&&i.backgroundColor===e.style.backgroundColor&&(i.backgroundColor="none"),i.fontSize&&i.fontSize===e.style.fontSize&&(i.fontSize="auto"),e.style={...e.style,...i}):(ma(e.model,i),e.snapshot()),!0}},{target:"mathfield"}),aa({copyToClipboard:e=>(e.focus(),Jt(e.model)&&e.select(),document.execCommand("copy"),!1),cutToClipboard:e=>(e.focus(),document.execCommand("cut"),!0),pasteFromClipboard:e=>(e.focus(),document.execCommand("paste"),!0)},{target:"mathfield",category:"clipboard"});let oo=0;function ro(e,t,i,a){var o;(a=null!=a?a:{}).bias=null!==(o=a.bias)&&void 0!==o?o:0;const r=function e(t,i,a){let o={element:null,distance:Number.POSITIVE_INFINITY},r=!0;if(t.getAttribute("data-atom-id")){o.element=t;const e=t.getBoundingClientRect(),s=i-(e.left+e.right)/2,n=a-(e.top+e.bottom)/2;o.distance=s*s+n*n,r=i>=e.left&&i<=e.right}if(r&&t.children)for(const r of t.children){const t=e(r,i,a);t.element&&t.distance<=o.distance&&(o=t)}return o}(e.field,t,i).element,s=r?r.getAttribute("data-atom-id"):null;if(!s)return;const n=si(e.model,e=>{if(!e.captureSelection)return e.id===s;let t=!1;return e.forEach(e=>{e.id===s&&(t=!0)}),t});if(!n||0===n.length)return;const l=dt(n[0]).path;if(0===a.bias){const e=r.getBoundingClientRect();tf ()",classes:"tex",layers:["functions"]},symbols:{tooltip:"keyboard.tooltip.symbols",layer:"symbols",label:"∞≠∈",classes:"tex",layers:["symbols"]},command:{tooltip:"keyboard.tooltip.command",command:"enterCommandMode",label:"",layers:["lower-command","upper-command","symbols-command"]},style:{tooltip:"keyboard.tooltip.style",layer:"style",label:"bi𝔹"}},no={"\\varphi ":["Φ","\\Phi "],"\\varsigma ":["Σ","\\Sigma "],"\\epsilon ":["Ɛ",'{\\char"0190}'],"\\rho ":["Ρ",'{\\char"3A1}'],"\\tau ":["Τ",'{\\char"3A4}'],"\\upsilon ":["Υ","\\Upsilon "],"\\theta ":["Θ","\\Theta "],"\\iota ":["Ι",'{\\char"399}'],"\\omicron ":["Ο",'{\\char"39F}'],"\\pi ":["Π","\\Pi "],"\\alpha ":["Α",'{\\char"391}'],"\\sigma ":["Σ","\\Sigma "],"\\delta ":["Δ","\\Delta "],"\\phi ":["Φ","\\Phi "],"\\gamma ":["Γ","\\Gamma "],"\\eta ":["Η",'{\\char"397}'],"\\xi ":["Ξ","\\Xi "],"\\kappa ":["Κ",'{\\char"39A}'],"\\lambda ":["Λ","\\Lambda "],"\\zeta ":["Ζ",'{\\char"396}'],"\\chi ":["Χ",'{\\char"3A7}'],"\\psi ":["Ψ","\\Psi "],"\\omega ":["Ω","\\Omega "],"\\beta ":["Β",'{\\char"392}'],"\\nu ":["Ν",'{\\char"39D}'],"\\mu ":["Μ",'{\\char"39C}']},lo={0:["\\emptyset","\\varnothing","\\infty",{latex:"#?_0",insert:"#@_0"},"\\circ","\\bigcirc","\\bullet"],2:["\\frac{1}{2}",{latex:"#?^2",insert:"#@^2"}],3:["\\frac{1}{3}",{latex:"#?^3",insert:"#@^3"}],".":[",",";","\\colon",{latex:":",aside:"ratio"},{latex:"\\cdotp",aside:"center dot",classes:"box"},{latex:"\\cdots",aside:"center ellipsis",classes:"box"},{latex:"\\ldotp",aside:"low dot",classes:"box"},{latex:"\\ldots",aside:"low ellipsis",classes:"box"},{latex:"\\vdots",aside:"",classes:"box"},{latex:"\\ddots",aside:"",classes:"box"},"\\odot","\\oslash","\\circledcirc"],"*":["\\cdot","\\ast","\\star","\\bigstar","\\ltimes","\\rtimes","\\rightthreetimes","\\leftthreetimes","\\intercal","\\prod",{latex:"\\prod_{n\\mathop=0}^{\\infty}",classes:"small"}],"+":["\\pm","\\mp","\\sum",{latex:"\\sum_{n\\mathop=0}^{\\infty}",classes:"small"},"\\dotplus","\\oplus"],"-":["\\pm","\\mp","\\ominus","\\vert #0 \\vert"],"/":["\\divideontimes","/","\\div"],"(":["\\left( #0\\right)","\\left[ #0\\right]","\\left\\{ #0\\right\\}","\\left\\langle #0\\right\\rangle","\\lfloor","\\llcorner","(","\\lbrack","\\lvert","\\lVert","\\lgroup","\\langle","\\lceil","\\ulcorner","\\lmoustache","\\lbrace"],")":["\\rfloor","\\lrcorner",")","\\rbrack","\\rvert","\\rVert","\\rgroup","\\rangle","\\rceil","\\urcorner","\\rmoustache","\\rbrace"],"=":["\\cong","\\asymp","\\equiv","\\differencedelta","\\varpropto","\\thickapprox","\\approxeq","\\thicksim","\\backsim","\\eqsim","\\simeq","\\Bumpeq","\\bumpeq","\\doteq","\\Doteq","\\fallingdotseq","\\risingdotseq","\\coloneq","\\eqcirc","\\circeq","\\triangleq","\\between"],"!=":["\\neq","\\ncong","","\\nsim"],"<":["\\leq","\\leqq","\\lneqq","\\ll","\\nless","\\nleq","\\precsim","\\lesssim","\\lessgtr","\\prec","\\preccurlyeq","\\lessdot","\\nprec"],">":["\\geq","\\geqq","\\gneqq","\\gg","\\ngtr","\\ngeq","\\succsim","\\gtrsim","\\gtrless","\\succ","\\succcurlyeq","\\gtrdot","\\nsucc"],set:["\\in","\\owns","\\subset","\\nsubset","\\supset","\\nsupset"],"!set":["\\notin","\\backepsilon"],subset:[],supset:[],infinity:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"],"numeric-pi":["\\prod","\\theta","\\rho","\\sin","\\cos","\\tan"],ee:["\\times 10^{#?}","\\ln","\\ln_{10}","\\log"],"^":["_{#?}"],int:[{latex:"\\int_{#?}^{#?}",classes:"small"},{latex:"\\int",classes:"small"},{latex:"\\smallint",classes:"small"},{latex:"\\iint",classes:"small"},{latex:"\\iiint",classes:"small"},{latex:"\\oint",classes:"small"},{latex:"\\dfrac{\\rd}{\\rd x}",classes:"small"},{latex:"\\frac{\\partial}{\\partial x}",classes:"small"},"\\capitalDifferentialD","\\rd","\\partial"],nabla:["\\nabla\\times","\\nabla\\cdot","\\nabla^{2}"],"!":["!!","\\Gamma","\\Pi"],accents:["\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"],A:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"}],b:[{latex:"\\beth",aside:"beth"}],B:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"}],d:[{latex:"\\daleth",aside:"daleth"}],D:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"}],g:[{latex:"\\gimel",aside:"gimel"}],G:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"}],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\N",aside:"set of natural numbers"}],p:[{latex:"\\P",aside:"set of primes"}],q:[{latex:"\\Q",aside:"set of rational numbers"}],r:[{latex:"\\R",aside:"set of real numbers"}],z:[{latex:"\\Z",aside:"set of integers"}],"x-var":["y","z","t","r",{latex:"f(#?)",classes:"small"},{latex:"g(#?)",classes:"small"},"x^2","x^n","x_n","x_{n+1}","x_i","x_{i+1}"],"n-var":["i","j","p","k","a","u"],ii:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"],logic:[{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn’t"},{latex:"\\ni",aside:"such that"},{latex:"\\Colon",aside:"such that"},{latex:"\\implies",aside:"implies"},{latex:"\\impliedby",aside:"implied by"},{latex:"\\iff",aside:"if and only if"},{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"},{latex:"\\therefore",aside:"therefore"},{latex:"\\because",aside:"because"},{latex:"^\\biconditional",aside:"biconditional"},"\\leftrightarrow","\\Leftrightarrow","\\to","\\models","\\vdash","\\gets","\\dashv","\\roundimplies"],"set-operators":["\\cap","\\cup","\\setminus","\\smallsetminus","\\complement"],"set-relations":["\\in","\\notin","\\ni","\\owns","\\subset","\\supset","\\subseteq","\\supseteq","\\subsetneq","\\supsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsupset","\\nsubseteq","\\nsupseteq"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space
    ⁻³⧸₁₈ em"},{latex:'\\unicode{"203A}\\,\\unicode{"2039}',insert:"\\,",aside:"thin space
    ³⧸₁₈ em"},{latex:'\\unicode{"203A}\\:\\unicode{"2039}',insert:"\\:",aside:"medium space
    ⁴⧸₁₈ em"},{latex:'\\unicode{"203A}\\;\\unicode{"2039}',insert:"\\;",aside:"thick space
    ⁵⧸₁₈ em"},{latex:'\\unicode{"203A}\\ \\unicode{"2039}',insert:"\\ ",aside:"⅓ em"},{latex:'\\unicode{"203A}\\enspace\\unicode{"2039}',insert:"\\enspace",aside:"½ em"},{latex:'\\unicode{"203A}\\quad\\unicode{"2039}',insert:"\\quad",aside:"1 em"},{latex:'\\unicode{"203A}\\qquad\\unicode{"2039}',insert:"\\qquad",aside:"2 em"}],delete:[{label:'',command:'"deleteAll"'}],"->|":[]};let co={};const mo={math:"\n
    \n
      \n
    • x
    • \n
    • n
    • \n
    • \n \n
    • \n
    • e
    • \n
    • i
    • \n
    • \n
    \n
      \n
    • <
    • \n
    • >
    • \n
    • \n \n
    • \n
    • x ²
    • \n
    • x
    • \n
    • \n
    \n
      \n
    • (
    • \n
    • )
    • \n
    • \n \n
    • \n
    • \n
    • \n
    \n \n
      \n
    • \n
    • \n
    • \n \n
    • \n \n
    \n
    \n ","lower-roman":"\n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n
    • ;
    • \n
    • ,
    • \n
    •  
    • \n \n
    \n
    ","upper-roman":"\n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n \n
    \n
      \n \n
    • ;
    • \n
    • ;
    • \n
    •  
    • \n \n
    \n
    ",symbols:"\n
    \n
      \n \n
    • {
    • \n
    • }
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • o
    • \n
    • \n
    • \n\n
    \n
      \n \n
    • [
    • \n
    • ]
    • \n
    • \n
    • \n
    • \n
    • !
    • \n
    • o
    • \n
    • o
    • \n
    • \n
    • \n\n
    \n
      \n \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n\n
    • \n
    \n
      \n \n
    • ,
    • \n
    • \n
    • :
    • \n
    • \n
    • \n
    • \n
    • ±
    • \n \n
    \n
    ","lower-greek":"\n
    \n
    • φ
    • \n
    • ς
    • \n
    • ϵ
    • \n
    • ρ
    • \n
    • τ
    • \n
    • υ
    • \n
    • θ
    • \n
    • ι
    • \n
    • ο
    • \n
    • π
    • \n
    \n
    • α
    • \n
    • σ
    • \n
    • δ
    • \n
    • ϕ
    • \n
    • γ
    • \n
    • η
    • \n
    • ξ
    • \n
    • κ
    • \n
    • λ
    • \n
    \n
    • \n
    • ζ
    • \n
    • χ
    • \n
    • ψ
    • \n
    • ω
    • \n
    • β
    • \n
    • ν
    • \n
    • μ
    • \n
    • \n
    \n
      \n
    •  
    • \n
    • ,
    • \n
    • ε
    • \n
    • ϑ
    • \n
    • ϰ
    • \n
    • ϖ
    • \n
    • ϱ
    • \n \n
    \n
    ","upper-greek":"\n
    \n
    • Φ
    • \n
    • Σ
    • \n
    • Ɛ
    • \n
    • Ρ
    • \n
    • Τ
    • \n
    • Υ
    • \n
    • Θ
    • \n
    • Ι
    • \n
    • Ο
    • \n
    • Π
    \n
    • Α
    • \n
    • Σ
    • \n
    • Δ
    • \n
    • Φ
    • \n
    • Γ
    • \n
    • Η
    • \n
    • Ξ
    • \n
    • Κ
    • \n
    • Λ
    \n
    • \n
    • Ζ
    • \n
    • Χ
    • \n
    • Ψ
    • \n
    • Ω
    • \n
    • Β
    • \n
    • Ν
    • \n
    • Μ
    • \n
    \n
      \n
    •  
    • \n
    • .
    • \n
    •  
    • \n \n
    \n
    ","lower-command":"\n
    \n
    \n
    \n
    \n
      \n
    • 01#
    • \n
    • {
    • \n
    • }
    • \n
    • ^
    • \n
    • _
    • \n
    •  
    • \n \n
    \n
    ","upper-command":"\n
    \n
    \n
    \n
    \n
      \n
    • \n
    • [
    • \n
    • ]
    • \n
    • (
    • \n
    • )
    • \n
    •  
    • \n \n
    \n
    ","symbols-command":"\n
    \n
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 0
    \n
    • !
    • @
    • #
    • $
    • %
    • ^
    • &
    • *
    • +
    • =
    \n
      \n
    • \\
    • \n
    • |
    • \n
    • /
    • \n
    • `
    • \n
    • ;
    • \n
    • :
    • \n
    • ?
    • \n
    • '
    • \n
    • \"
    • \n
    • \n
    \n
      \n
    • abc
    • \n
    • <
    • \n
    • >
    • \n
    • ~
    • \n
    • ,
    • \n
    • .
    • \n
    •  
    • \n \n
    \n
    ",functions:"\n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
    • \n
    • (
    • \n
    • )
    • \n
    • \n
    • \n
    •  
    • \n \n
    \n
    ",style:"\n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n
    • \n
    • \n
    • \n
    \n
      \n
    • \n
    • \n
    • \n\n
    • \n
    • \n
    • \n
    • \n
    \n
    "};function po(e,t,i){return e=e.replace(/(^|[^\\])#@/g,"$1#?"),C(L(We({mathstyle:c.displaystyle,macros:i.options.macros},Qe(e,"math",t,i.options.macros)),"ML__base"),"ML__mathlive").toMarkup()}function uo(e,t,i){var a;let o="
    ";const r=t.replace(/\s+/g," ").split(" ");if(r.length>1){const t={...so,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}};for(const e of r){if(!t[e])break;o+="
    "+t[e].label+"
    "}}return o+="
    ",o+=`\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n `,""}function ho(e,t,i){var a;for(let o=0;o"+r.getAttribute("data-aside").replace(/"/g,'"')+""),void 0!==s&&(r.innerHTML=e.options.createHTML(s)),r.getAttribute("data-classes")&&r.classList.add(r.getAttribute("data-classes"));const n=null===(a=r.getAttribute("data-insert"))||void 0===a?void 0:a.replace(/"/g,'"');let l;if(n&&no[n]&&(r.setAttribute("data-shifted",no[n][0]),r.setAttribute("data-shifted-command",JSON.stringify(["insertAndUnshiftKeyboardLayer",no[n][1]]))),l=r.getAttribute("data-command")?JSON.parse(r.getAttribute("data-command")):r.getAttribute("data-insert")?["insert",r.getAttribute("data-insert"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:r.getAttribute("data-latex")?["insert",r.getAttribute("data-latex"),{focus:!0,feedback:!0,mode:"math",format:"latex",resetStyle:!0}]:["typedText",r.getAttribute("data-key")||r.textContent,{focus:!0,feedback:!0,simulateKeystroke:!0}],i&&(l=[i,l]),r.getAttribute("data-alt-keys")){const e=co[r.getAttribute("data-alt-keys")];e&&(l={default:l,pressAndHoldStart:["showAlternateKeys",r.getAttribute("data-alt-keys"),e],pressAndHoldEnd:"hideAlternateKeys"})}Ai(e,r,l)}}function fo(e,t){const i={qwerty:{"lower-1":"qwertyuiop","lower-2":" asdfghjkl ","lower-3":"^zxcvbnm~","upper-1":"QWERTYUIOP","upper-2":" ASDFGHJKL ","upper-3":"^ZXCVBNM~","numpad-1":"789/","numpad-2":"456*","numpad-3":"123-","numpad-4":"0.=+"},azerty:{"lower-1":"azertyuiop","lower-2":"qsdfghjklm","lower-3":"^ wxcvbn ~","upper-1":"AZERTYUIOP","upper-2":"QSDFGHJKLM","upper-3":"^ WXCVBN ~"},qwertz:{"lower-1":"qwertzuiop","lower-2":" asdfghjkl ","lower-3":"^yxcvbnm~","upper-1":"QWERTZUIOP","upper-2":" ASDFGHJKL","upper-3":"^YXCVBNM~"},dvorak:{"lower-1":"^ pyfgcrl ","lower-2":"aoeuidhtns","lower-3":"qjkxbmwvz~","upper-1":"^ PYFGCRL ","upper-2":"AOEUIDHTNS","upper-3":"QJKXBMWVZ~"},colemak:{"lower-1":" qwfpgjluy ","lower-2":"arstdhneio","lower-3":"^zxcvbkm~","upper-1":" QWFPGNLUY ","upper-2":"ARSTDHNEIO","upper-3":"^ZXCVBKM~"}},a=i[e.options.virtualKeyboardLayout]?i[e.options.virtualKeyboardLayout]:i.qwerty;let o,r=t;r=r.replace(//g,"\n
  • \n \n
  • \n
  • \n \n
  • \n
  • \n
  • ");let s=r.match(/()/);for(;s;){o="";const e=s[2].match(/[a-zA-Z][a-zA-Z0-9-]*=(['"])(.*?)\1/g),t={};for(const i of e){const e=i.match(/([a-zA-Z][a-zA-Z0-9-]*)=(['"])(.*?)\2/);t[e[1]]=e[3]}let n=a[t.name];if(n||(n=i.qwerty[t.name]),n)for(const e of n){let i=t.class||"";i&&(i=" "+i),"~"===e?(o+="
  • \'\n data-shifted-command=\'"deleteAll"\'\n data-alt-keys=\'delete\' data-command=\'["performWithFeedback","deletePreviousChar"]\'\n >⌫
  • '):" "===e?o+="
  • ":"^"===e?o+="
  • ":"/"===e?o+="
  • ÷
  • ":"*"===e?o+="
  • ×
  • ":"-"===e?o+="
  • ":/tt/.test(i)?o+="
  • '+e+"
  • ":o+="
  • "+e+"
  • "}r=r.replace(new RegExp(s[1]+s[2]+s[3]),o),s=r.match(/()/)}return r}function go(e){const t=document.getElementById("mathlive-alternate-keys-panel");return t&&(t.classList.remove("is-visible"),t.innerHTML="",Mi(t)),!1}function yo(e){const t=e.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(t)for(let i=0;ili{display:flex;flex-flow:column;align-items:center;justify-content:center;font-size:30px;height:70px;width:70px;box-sizing:border-box;margin:0;background:transparent;border:1px solid transparent;border-radius:5px;pointer-events:all;color:var(--keyboard-alternate-text);fill:currentColor}@media only screen and (max-height:412px){.ML__keyboard.alternate-keys ul>li{font-size:24px;height:50px;width:50px}}.ML__keyboard.alternate-keys ul>li.active,.ML__keyboard.alternate-keys ul>li.pressed,.ML__keyboard.alternate-keys ul>li:hover{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);background:var(--keyboard-alternate-background-active);color:var(--keyboard-text-active)}.ML__keyboard.alternate-keys ul>li.small{font-size:18px}.ML__keyboard.alternate-keys ul>li.small-button{width:42px;height:42px;margin:2px;background:#fbfbfb}.ML__keyboard.alternate-keys ul>li.small-button:hover{background:var(--keyboard-alternate-background-active)}.ML__keyboard.alternate-keys ul>li.box>div,.ML__keyboard.alternate-keys ul>li.box>span{border:1px dashed rgba(0,0,0,.24)}.ML__keyboard.alternate-keys ul>li .warning{min-height:60px;min-width:60px;background:#cd0030;color:#fff;padding:5px;display:flex;align-items:center;justify-content:center;border-radius:5px}.ML__keyboard.alternate-keys ul>li .warning.active,.ML__keyboard.alternate-keys ul>li .warning.pressed,.ML__keyboard.alternate-keys ul>li .warning:hover{background:red}.ML__keyboard.alternate-keys ul>li .warning svg{width:50px;height:50px}.ML__keyboard.alternate-keys ul>li aside{font-size:12px;line-height:12px;opacity:.78;padding-top:2px}.ML__keyboard>div.keyboard-layer{display:none;outline:none}.ML__keyboard>div.keyboard-layer.is-visible{display:flex;flex-flow:column}.ML__keyboard>div>div.keyboard-toolbar{align-self:center;display:flex;flex-flow:row;justify-content:space-between;width:736px}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard>div>div.keyboard-toolbar{width:556px}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar{width:365px;max-width:100vw}}.ML__keyboard>div>div.keyboard-toolbar svg{height:20px;width:20px}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar svg{height:13px;width:17px}}.ML__keyboard>div>div.keyboard-toolbar>.left{position:relative;display:flex;justify-content:flex-start;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>.right{display:flex;justify-content:flex-end;flex-flow:row}.ML__keyboard>div>div.keyboard-toolbar>div>div{display:flex;align-items:baseline;justify-content:center;pointer-events:all;color:var(--keyboard-text);fill:currentColor;background:0;font-size:110%;cursor:pointer;min-height:0;padding:4px 10px;margin:7px 4px 6px;box-shadow:none;border:none;border-bottom:2px solid transparent}.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled.pressed svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled:hover svg,.ML__keyboard>div>div.keyboard-toolbar>div>div.disabled svg{color:var(--keyboard-text);opacity:.2}@media only screen and (max-width:414px){.ML__keyboard>div>div.keyboard-toolbar>div>div{font-size:100%;padding:0 6px 0 0}}@media only screen and (max-width:767px){.ML__keyboard>div>div.keyboard-toolbar>div>div{padding-left:4px;padding-right:4px;font-size:90%}}.ML__keyboard>div>div.keyboard-toolbar>div>div.active,.ML__keyboard>div>div.keyboard-toolbar>div>div.pressed,.ML__keyboard>div>div.keyboard-toolbar>div>div:active,.ML__keyboard>div>div.keyboard-toolbar>div>div:hover{color:var(--keyboard-text-active)}.ML__keyboard>div>div.keyboard-toolbar>div>div.selected{color:var(--keyboard-text-active);border-bottom:2px solid var(--keyboard-text-active);margin-bottom:8px;padding-bottom:0}.ML__keyboard div .rows{border:0;border-collapse:separate;clear:both;margin:auto;display:flex;flex-flow:column;align-items:center}.ML__keyboard div .rows>ul{list-style:none;height:40px;margin:0 0 3px;padding:0}.ML__keyboard div .rows>ul>li{display:flex;flex-flow:column;align-items:center;justify-content:center;width:34px;margin-right:2px;height:40px;box-sizing:border-box;padding:8px 0;vertical-align:top;text-align:center;float:left;color:var(--keycap-text);fill:currentColor;font-size:20px;background:var(--keycap-background);border:1px solid var(--keycap-background-border);border-bottom-color:var(--keycap-background-border-bottom);border-radius:5px;pointer-events:all;position:relative;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ML__keyboard div .rows>ul>li:last-child{margin-right:0}.ML__keyboard div .rows>ul>li.small{font-size:16px}.ML__keyboard div .rows>ul>li.tt{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.bottom{justify-content:flex-end}.ML__keyboard div .rows>ul>li.left{align-items:flex-start;padding-left:4px}.ML__keyboard div .rows>ul>li.right{align-items:flex-end;padding-right:4px}.ML__keyboard div .rows>ul>li svg{width:20px;height:20px}.ML__keyboard div .rows>ul>li .warning{height:25px;width:25px;min-height:25px;min-width:25px;background:#cd0030;color:#fff;border-radius:100%;padding:5px;display:flex;align-items:center;justify-content:center;margin-bottom:-2px}.ML__keyboard div .rows>ul>li .warning svg{width:16px;height:16px}@media only screen and (max-width:768px){.ML__keyboard div .rows>ul>li .warning{height:16px;width:16px;min-height:16px;min-width:16px}.ML__keyboard div .rows>ul>li .warning svg{width:14px;height:14px}}.ML__keyboard div .rows>ul>li>.w0{width:0}.ML__keyboard div .rows>ul>li>.w5{width:16px}.ML__keyboard div .rows>ul>li>.w15{width:52px}.ML__keyboard div .rows>ul>li>.w20{width:70px}.ML__keyboard div .rows>ul>li>.w50{width:178px}.ML__keyboard div .rows>ul>li.separator{background:transparent;border:none;pointer-events:none}@media only screen and (max-width:560px){.ML__keyboard div .rows>ul>li.if-wide{display:none}}.ML__keyboard div .rows>ul>li.tex-math{font-size:25px}.ML__keyboard div .rows>ul>li.pressed,.ML__keyboard div .rows>ul>li:hover{background:var(--keycap-background-active);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.active,.ML__keyboard div .rows>ul>li.action:active,.ML__keyboard div .rows>ul>li.keycap.active,.ML__keyboard div .rows>ul>li.keycap:active{transform:translateY(-20px) scale(1.4);z-index:calc(var(--keyboard-zindex, 105) - 5);color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.modifier.active,.ML__keyboard div .rows>ul>li.modifier:active{background:var(--keyboard-text-active);color:var(--keycap-text-active)}.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:18px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.action.font-glyph,.ML__keyboard div .rows>ul>li.modifier.font-glyph{font-size:16px}}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton,.ML__keyboard div .rows>ul>li.fnbutton{font-size:12px}}.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:14px}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li.bigfnbutton{font-size:9px}}.ML__keyboard div .rows>ul>li.action,.ML__keyboard div .rows>ul>li.modifier{background-color:var(--keycap-modifier-background);border-bottom-color:var(--keycap-modifier-border);border-color:var(--keycap-modifier-border) var(--keycap-modifier-border) var(--keycap-modifier-border-bottom);font-size:65%;font-weight:100}.ML__keyboard div .rows>ul>li.action.selected,.ML__keyboard div .rows>ul>li.modifier.selected{color:var(--keyboard-text-active)}.ML__keyboard div .rows>ul>li.action.selected.active,.ML__keyboard div .rows>ul>li.action.selected.pressed,.ML__keyboard div .rows>ul>li.action.selected:active,.ML__keyboard div .rows>ul>li.action.selected:hover,.ML__keyboard div .rows>ul>li.modifier.selected.active,.ML__keyboard div .rows>ul>li.modifier.selected.pressed,.ML__keyboard div .rows>ul>li.modifier.selected:active,.ML__keyboard div .rows>ul>li.modifier.selected:hover{color:#fff}.ML__keyboard div .rows>ul>li.keycap.w50{font-size:80%;padding-top:10px;font-weight:100}.ML__keyboard div .rows>ul>li small{color:#555}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li small{font-size:9px}}.ML__keyboard div .rows>ul>li aside{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:10px;line-height:10px;color:#666}@media only screen and (max-width:767px){.ML__keyboard div .rows>ul>li aside{display:none}}@media only screen and (max-width:414px){.ML__keyboard div .rows>ul>li{width:calc(10vw - 2px);margin-right:2px}.ML__keyboard div .rows>ul>.w5{width:calc(5vw - 2px)}.ML__keyboard div .rows>ul>.w15{width:calc(15vw - 2px)}.ML__keyboard div .rows>ul>.w20{width:calc(20vw - 2px)}.ML__keyboard div .rows>ul>.w50{width:calc(50vw - 2px)}}@media only screen and (min-width:415px) and (max-width:768px){.ML__keyboard div .rows>ul>li{width:37px;margin-right:3px}.ML__keyboard div .rows>ul>.w5{width:17px}.ML__keyboard div .rows>ul>.w15{width:57px}.ML__keyboard div .rows>ul>.w20{width:77px}.ML__keyboard div .rows>ul>.w50{width:197px}}@media only screen and (min-width:768px) and (max-width:1024px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:51px;margin-right:4px}.ML__keyboard div .rows>ul>.w5{width:23.5px}.ML__keyboard div .rows>ul>.w15{width:78.5px}.ML__keyboard div .rows>ul>.w20{width:106px}.ML__keyboard div .rows>ul>.w50{width:271px}}@media only screen and (min-width:1025px){.ML__keyboard div .rows>ul{height:52px}.ML__keyboard div .rows>ul>li{height:52px;width:66px;margin-right:6px}.ML__keyboard div .rows>ul>.action,.ML__keyboard div .rows>ul>.modifier{font-size:80%}.ML__keyboard div .rows>ul>.w5{width:30px}.ML__keyboard div .rows>ul>.w15{width:102px}.ML__keyboard div .rows>ul>.w20{width:138px}.ML__keyboard div .rows>ul>.w50{width:354px}}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] .ML__keyboard{--hue:206;--keyboard-background:hsl(var(--hue,212),19%,38%);--keyboard-text:#f0f0f0;--keyboard-text-active:hsl(var(--hue,212),100%,60%);--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:hsl(var(--hue,212),35%,42%);--keycap-background-border:hsl(var(--hue,212),25%,35%);--keycap-background-border-bottom:#426b8a;--keycap-text:#d0d0d0;--keycap-text-active:#000;--keycap-secondary-text:#fff;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),19%,38%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}div.ML__keyboard.material{--keyboard-background:rgba(209,213,217,0.9);--keyboard-background-border:#ddd;--keycap-background:transparent;--keycap-background-active:#cccfd1;--keycap-background-border:transparent;--keyboard-alternate-background:#efefef;--keyboard-alternate-text:#000;font-family:Roboto,sans-serif}div.ML__keyboard.material.alternate-keys{background:var(--keyboard-alternate-background);border:1px solid transparent;border-radius:5px;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}div.ML__keyboard.material.alternate-keys ul li.active,div.ML__keyboard.material.alternate-keys ul li.pressed,div.ML__keyboard.material.alternate-keys ul li:active,div.ML__keyboard.material.alternate-keys ul li:hover{border:1px solid transparent;background:#5f97fc;color:#fff;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>div{font-size:16px}div.ML__keyboard.material .keyboard-toolbar div.div.active,div.ML__keyboard.material .keyboard-toolbar div.div.pressed,div.ML__keyboard.material .keyboard-toolbar div div:active,div.ML__keyboard.material .keyboard-toolbar div div:hover{color:#5f97fc;fill:currentColor}div.ML__keyboard.material .keyboard-toolbar>div>.selected{color:#5f97fc;fill:currentColor;border-bottom:2px solid #5f97fc;margin-bottom:8px;padding-bottom:0}div.ML__keyboard.material div>.rows>ul>.keycap{background:transparent;border:1px solid transparent;border-radius:5px;color:var(--keycap-text);fill:currentColor;transition:none}div.ML__keyboard.material div>.rows>ul>.keycap.tt{color:#5f97fc}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]{margin-top:10px;margin-bottom:10px;height:20px;background:#e0e0e0}div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "].pressed,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:active,div.ML__keyboard.material div>.rows>ul>.keycap[data-key=" "]:hover{background:#d0d0d0;box-shadow:none;transform:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):hover{border:1px solid transparent;background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{background:var(--keyboard-alternate-background);color:var(--keyboard-alternate-text);box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23)}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);font-size:10px;vertical-align:top;width:19.5px;margin-right:10px;margin-left:10px;transform:translateY(-20px) scale(2);transition:none;justify-content:flex-start;padding:2px 0 0;z-index:calc(var(--ML_keyboard-zindex, 105) - 5)}}@media only screen and (max-width:414px){div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).active,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]).pressed,div.ML__keyboard.material div>.rows>ul>.keycap:not([data-key=" "]):active{width:16.5px}}@media only screen and (max-width:767px){div.ML__keyboard.material div>.rows>ul>.keycap:last-child.active,div.ML__keyboard.material div>.rows>ul>.keycap:last-child:active{margin-right:0;margin-left:14px}}div.ML__keyboard.material div div.rows ul li.action,div.ML__keyboard.material div div.rows ul li.modifier{background:transparent;border:0;color:#869096;fill:currentColor;font-size:16px;transition:none}div.ML__keyboard.material div div.rows ul li.action.selected,div.ML__keyboard.material div div.rows ul li.modifier.selected{color:#5f97fc;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.action.active,div.ML__keyboard.material div div.rows ul li.action.pressed,div.ML__keyboard.material div div.rows ul li.action:active,div.ML__keyboard.material div div.rows ul li.action:hover,div.ML__keyboard.material div div.rows ul li.modifier.active,div.ML__keyboard.material div div.rows ul li.modifier.pressed,div.ML__keyboard.material div div.rows ul li.modifier:active,div.ML__keyboard.material div div.rows ul li.modifier:hover{border:0;color:var(--keycap-text);background:var(--keycap-background-active);box-shadow:none}div.ML__keyboard.material div div.rows ul li.bigfnbutton,div.ML__keyboard.material div div.rows ul li.fnbutton{background:transparent;border:0}div.ML__keyboard.material div div.rows ul li.bigfnbutton.selected,div.ML__keyboard.material div div.rows ul li.fnbutton.selected{color:#5f97fc;fill:currentColor;border-radius:0;border-bottom:2px solid #5f97fc}div.ML__keyboard.material div div.rows ul li.bigfnbutton.active,div.ML__keyboard.material div div.rows ul li.bigfnbutton.pressed,div.ML__keyboard.material div div.rows ul li.bigfnbutton:active,div.ML__keyboard.material div div.rows ul li.bigfnbutton:hover,div.ML__keyboard.material div div.rows ul li.fnbutton.active,div.ML__keyboard.material div div.rows ul li.fnbutton.pressed,div.ML__keyboard.material div div.rows ul li.fnbutton:active,div.ML__keyboard.material div div.rows ul li.fnbutton:hover{border:0;color:#5f97fc;fill:currentColor;background:var(--keycap-background-active);box-shadow:none}@media (prefers-color-scheme:dark){body:not([theme=light]) div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}}body[theme=dark] div.ML__keyboard.material{--hue:198;--keyboard-background:hsl(var(--hue,212),19%,18%);--keyboard-text:#d4d6d7;--keyboard-text-active:#5f97fc;--keyboard-background-border:#333;--keycap-background:hsl(var(--hue,212),25%,39%);--keycap-background-active:#5f97fc;--keycap-background-border:transparent;--keycap-background-border-bottom:transparent;--keycap-text:#d0d0d0;--keycap-text-active:#d4d6d7;--keycap-secondary-text:#5f97fc;--keycap-modifier-background:hsl(var(--hue,212),35%,40%);--keycap-modifier-border:hsl(var(--hue,212),35%,35%);--keycap-modifier-border-bottom:hsl(var(--hue,212),35%,42%);--keyboard-alternate-background:hsl(var(--hue,212),8%,2%);--keyboard-alternate-background-active:hsl(var(--hue,212),35%,42%);--keyboard-alternate-text:#d1d1d1}'),lo["foreground-color"]=[];for(const e of ue)lo["foreground-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"color":"'+e+'"}]'});lo["background-color"]=[];for(const e of pe)lo["background-color"].push({classes:"small-button",content:'',command:'["applyStyle",{"backgroundColor":"'+e+'"}]'});co={...lo},Object.keys(co).forEach(e=>{co[e]=co[e].slice()});for(let e=0;e<26;e++){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[e];co[t]||(co[t]=[]),co[t].unshift({latex:"\\mathbb{"+t+"}",aside:"blackboard",insert:"\\mathbb{"+t+"}"}),co[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),co[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),co[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),co[t].unshift({latex:"\\mathcal{"+t+"}",aside:"calligraphy",insert:"\\mathcal{"+t+"}"}),co[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<=26;e++){const t="abcdefghijklmnopqrstuvwxyz"[e];co[t]||(co[t]=[]),co[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),co[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),co[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),co[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}for(let e=0;e<10;e++){const t="0123456789"[e];co[t]||(co[t]=[]),co[t].unshift({latex:"\\mathbf{"+t+"}",aside:"bold",insert:"\\mathbf{"+t+"}"}),co[t].unshift({latex:"\\mathsf{"+t+"}",aside:"sans",insert:"\\mathsf{"+t+"}"}),co[t].unshift({latex:"\\mathtt{"+t+"}",aside:"monospace",insert:"\\mathtt{"+t+"}"}),co[t].unshift({latex:"\\mathcal{"+t+"}",aside:"script",insert:"\\mathcal{"+t+"}"}),co[t].unshift({latex:"\\mathfrak{"+t+"}",aside:"fraktur",insert:"\\mathfrak{"+t+"}"})}let r=e.options.virtualKeyboards;r||(r="all"),r=r.replace(/\ball\b/i,"numeric functions symbols roman greek");const s={...mo,...null!==(i=e.options.customVirtualKeyboardLayers)&&void 0!==i?i:{}},n={...so,...null!==(a=e.options.customVirtualKeyboards)&&void 0!==a?a:{}},l=r.replace(/\s+/g," ").split(" ");for(const t of l){if(!n[t])break;let i=n[t].layers||[];n[t].layer&&i.push(n[t].layer),i=Array.from(new Set(i));for(const a of i){if(!s[a])break;if("object"==typeof s[a]){const e=s[a];let t="";if(e.styles&&(t+=``),e.backdrop&&(t+=`
    `),e.container&&(t+=`
    `),e.rows){t+="
    ";for(const i of e.rows){t+="
      ";for(const e of i)t+="${e.label?e.label:""}`;t+="
    "}t+="
    "}e.container&&(t+="
    "),e.backdrop&&(t+="
    "),s[a]=t}o+="
    ",o+=uo(e,r,t);const i=s[a];o+=fo(e,i),o+="
    "}}const c=document.createElement("div");c.className="ML__keyboard",t?c.classList.add(t):e.options.virtualKeyboardTheme&&c.classList.add(e.options.virtualKeyboardTheme),c.innerHTML=e.options.createHTML(o),ho(e,[].slice.call(c.querySelectorAll(".keycap, .action, .fnbutton, .bigfnbutton")));const d=c.getElementsByClassName("layer-switch");for(let t=0;t{e.addEventListener("mousedown",e=>{e.preventDefault(),e.stopPropagation()}),e.addEventListener("touchstart",e=>{e.preventDefault(),e.stopPropagation()},{passive:!1})}),m[0].classList.add("is-visible"),window.addEventListener("mouseup",(function(){go(),yo(e)})),window.addEventListener("blur",(function(){go(),yo(e)})),window.addEventListener("touchend",(function(){go(),yo(e)})),window.addEventListener("touchcancel",(function(){go(),yo(e)})),c}(e,t),ki(e.virtualKeyboard,"touchstart:passive mousedown",()=>{e.focus()}),document.body.appendChild(e.virtualKeyboard)),window.setTimeout(()=>{e.virtualKeyboard.classList.add("is-visible")},1)):e.virtualKeyboard&&e.virtualKeyboard.classList.remove("is-visible"),"function"==typeof e.options.onVirtualKeyboardToggle&&e.options.onVirtualKeyboardToggle(e,e.virtualKeyboardVisible,e.virtualKeyboard),!1}aa({showAlternateKeys:(e,t,i)=>{const a=wi("mathlive-alternate-keys-panel","ML__keyboard alternate-keys");e.virtualKeyboard.classList.contains("material")&&a.classList.add("material"),i.length>=7?a.style.width="286px":4===i.length||2===i.length?a.style.width="146px":1===i.length?a.style.width="86px":a.style.width="146px",a.style.height="auto";let o="";for(const e of i)o+="";o="
      "+o+"
    ",a.innerHTML=e.options.createHTML(o),ho(e,[].slice.call(a.getElementsByTagName("li")),"performAlternateKeys");const r=e.virtualKeyboard.querySelector('div.keyboard-layer.is-visible div.rows ul li[data-alt-keys="'+t+'"]').getBoundingClientRect();if(r){r.top-a.clientHeight<0&&(a.style.width="auto",i.length<=6?a.style.height="56px":i.length<=12?a.style.height="108px":a.style.height="205px");const e=(r.top-a.clientHeight+5).toString()+"px",t=Math.max(0,Math.min(window.innerWidth-a.offsetWidth,(r.left+r.right-a.offsetWidth)/2))+"px";a.style.transform="translate("+t+","+e+")",a.classList.add("is-visible")}return!1}},{target:"virtual-keyboard"}),aa({shiftKeyboardLayer:t=>{const i=t.virtualKeyboard.querySelectorAll("div.keyboard-layer.is-visible .rows .keycap, div.keyboard-layer.is-visible .rows .action");if(i)for(let a=0;ago(),performAlternateKeys:(e,t)=>(go(),e.executeCommand(t)),switchKeyboardLayer:(e,t)=>vo(e,t),unshiftKeyboardLayer:e=>yo(e),insertAndUnshiftKeyboardLayer:(e,t)=>(e.insert(t),yo(e),!0)},{target:"virtual-keyboard"}),aa({toggleVirtualKeyboardAlt:e=>{let t=!1;return e.virtualKeyboard&&(t=e.virtualKeyboard.classList.contains("material"),e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),xo(e,t?"":"material"),!1},toggleVirtualKeyboardShift:e=>{var t,i;e.options.virtualKeyboardLayout={qwerty:"azerty",azerty:"qwertz",qwertz:"dvorak",dvorak:"colemak",colemak:"qwerty"}[e.options.virtualKeyboardLayout];const a=null!==(i=null===(t=e.virtualKeyboard)||void 0===t?void 0:t.querySelector("div.keyboard-layer.is-visible").id)&&void 0!==i?i:"";return e.virtualKeyboard&&(e.virtualKeyboard.remove(),delete e.virtualKeyboard,e.virtualKeyboard=null),xo(e),a&&vo(e,a),!1}},{target:"virtual-keyboard"}),aa({toggleVirtualKeyboard:(e,t)=>_o(e,t),hideVirtualKeyboard:e=>ko(e),showVirtualKeyboard:(e,t)=>xo(e,t)},{target:"virtual-keyboard"});var wo='.ML__sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.ML__fonts-loading .ML__base{visibility:hidden}.ML__base{visibility:inherit;display:inline-block;position:relative;cursor:text}.ML__strut,.ML__strut--bottom{display:inline-block;min-height:.5em}.ML__small-delim{font-family:KaTeX_Main}.ML__text{font-family:var(--text-font-family,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif);white-space:pre}.ML__cmr{font-family:KaTeX_Main;font-style:normal}.ML__mathit{font-family:KaTeX_Math;font-style:italic}.ML__mathbf{font-family:KaTeX_Main;font-weight:700}.lcGreek.ML__mathbf{font-family:KaTeX_Math;font-weight:400}.ML__mathbfit{font-family:KaTeX_Math;font-weight:700;font-style:italic}.ML__ams,.ML__bb{font-family:KaTeX_AMS}.ML__cal{font-family:KaTeX_Caligraphic}.ML__frak{font-family:KaTeX_Fraktur}.ML__tt{font-family:KaTeX_Typewriter}.ML__script{font-family:KaTeX_Script}.ML__sans{font-family:KaTeX_SansSerif}.ML__series_el,.ML__series_ul{font-weight:100}.ML__series_l{font-weight:200}.ML__series_sl{font-weight:300}.ML__series_sb{font-weight:500}.ML__bold,.ML__boldsymbol{font-weight:700}.ML__series_eb{font-weight:800}.ML__series_ub{font-weight:900}.ML__series_uc{font-stretch:ultra-condensed}.ML__series_ec{font-stretch:extra-condensed}.ML__series_c{font-stretch:condensed}.ML__series_sc{font-stretch:semi-condensed}.ML__series_sx{font-stretch:semi-expanded}.ML__series_x{font-stretch:expanded}.ML__series_ex{font-stretch:extra-expanded}.ML__series_ux{font-stretch:ultra-expanded}.ML__it{font-style:italic}.ML__shape_ol{-webkit-text-stroke:1px #000;text-stroke:1px #000;color:transparent}.ML__shape_sc{font-variant:small-caps}.ML__shape_sl{font-style:oblique}.ML__emph{color:#bc2612}.ML__emph .ML__emph{color:#0c7f99}.ML__highlight{color:#007cb2;background:#edd1b0}.ML__mathlive{display:inline-block;line-height:0;direction:ltr;text-align:left;text-indent:0;text-rendering:auto;font-family:KaTeX_Main;font-style:normal;font-size-adjust:none;letter-spacing:normal;word-wrap:normal;word-spacing:normal;white-space:nowrap;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:-webkit-min-content;width:-moz-min-content;width:min-content;transform:translateZ(0)}.ML__mathlive .reset-textstyle.scriptstyle{font-size:.7em}.ML__mathlive .reset-textstyle.scriptscriptstyle{font-size:.5em}.ML__mathlive .reset-scriptstyle.textstyle{font-size:1.42857em}.ML__mathlive .reset-scriptstyle.scriptscriptstyle{font-size:.71429em}.ML__mathlive .reset-scriptscriptstyle.textstyle{font-size:2em}.ML__mathlive .reset-scriptscriptstyle.scriptstyle{font-size:1.4em}.ML__mathlive .style-wrap{position:relative}.ML__mathlive .vlist{display:inline-block}.ML__mathlive .vlist>span{display:block;height:0;position:relative;line-height:0}.ML__mathlive .vlist>span>span{display:inline-block}.ML__mathlive .msubsup{text-align:left}.ML__mathlive .mfrac>span{text-align:center}.ML__mathlive .mfrac .frac-line{width:100%}.ML__mathlive .mfrac .frac-line:after{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor;box-sizing:content-box;transform:translate(0)}.ML__mathlive .rspace.negativethinspace{margin-right:-.16667em}.ML__mathlive .rspace.thinspace{margin-right:.16667em}.ML__mathlive .rspace.negativemediumspace{margin-right:-.22222em}.ML__mathlive .rspace.mediumspace{margin-right:.22222em}.ML__mathlive .rspace.thickspace{margin-right:.27778em}.ML__mathlive .rspace.sixmuspace{margin-right:.333333em}.ML__mathlive .rspace.eightmuspace{margin-right:.444444em}.ML__mathlive .rspace.enspace{margin-right:.5em}.ML__mathlive .rspace.twelvemuspace{margin-right:.666667em}.ML__mathlive .rspace.quad{margin-right:1em}.ML__mathlive .rspace.qquad{margin-right:2em}.ML__mathlive .mspace{display:inline-block}.ML__mathlive .mspace.negativethinspace{margin-left:-.16667em}.ML__mathlive .mspace.thinspace{width:.16667em}.ML__mathlive .mspace.negativemediumspace{margin-left:-.22222em}.ML__mathlive .mspace.mediumspace{width:.22222em}.ML__mathlive .mspace.thickspace{width:.27778em}.ML__mathlive .mspace.sixmuspace{width:.333333em}.ML__mathlive .mspace.eightmuspace{width:.444444em}.ML__mathlive .mspace.enspace{width:.5em}.ML__mathlive .mspace.twelvemuspace{width:.666667em}.ML__mathlive .mspace.quad{width:1em}.ML__mathlive .mspace.qquad{width:2em}.ML__mathlive .llap,.ML__mathlive .rlap{width:0;position:relative}.ML__mathlive .llap>.inner,.ML__mathlive .rlap>.inner{position:absolute}.ML__mathlive .llap>.fix,.ML__mathlive .rlap>.fix{display:inline-block}.ML__mathlive .llap>.inner{right:0}.ML__mathlive .rlap>.inner{left:0}.ML__mathlive .rule{display:inline-block;border:0 solid;position:relative}.ML__mathlive .overline .overline-line,.ML__mathlive .underline .underline-line{width:100%}.ML__mathlive .overline .overline-line:before,.ML__mathlive .underline .underline-line:before{border-bottom-style:solid;border-bottom-width:.04em;content:"";display:block}.ML__mathlive .overline .overline-line:after,.ML__mathlive .underline .underline-line:after{border-bottom-style:solid;border-bottom-width:.04em;min-height:thin;content:"";display:block;margin-top:-1px}.ML__mathlive .stretchy{display:block;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .stretchy:after,.ML__mathlive .stretchy:before{content:""}.ML__mathlive .stretchy svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.ML__mathlive .slice-1-of-2{left:0}.ML__mathlive .slice-1-of-2,.ML__mathlive .slice-2-of-2{display:inline-flex;position:absolute;width:50.2%;overflow:hidden}.ML__mathlive .slice-2-of-2{right:0}.ML__mathlive .slice-1-of-3{display:inline-flex;position:absolute;left:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-2-of-3{display:inline-flex;position:absolute;left:25%;width:50%;overflow:hidden}.ML__mathlive .slice-3-of-3{display:inline-flex;position:absolute;right:0;width:25.1%;overflow:hidden}.ML__mathlive .slice-1-of-1{display:inline-flex;position:absolute;width:100%;left:0;overflow:hidden}.ML__mathlive .sqrt{display:inline-block}.ML__mathlive .sqrt>.sqrt-sign{font-family:KaTeX_Main;position:relative}.ML__mathlive .sqrt .sqrt-line{height:.04em;width:100%}.ML__mathlive .sqrt .sqrt-line:before{content:"";display:block;margin-top:-.04em;min-height:.04em;background:currentColor}.ML__mathlive .sqrt .sqrt-line:after{border-bottom-width:1px;content:" ";display:block;margin-top:-.1em;transform:translate(0)}.ML__mathlive .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.ML__mathlive .fontsize-ensurer,.ML__mathlive .sizing{display:inline-block}.ML__mathlive .fontsize-ensurer.reset-size1.size1,.ML__mathlive .sizing.reset-size1.size1{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size1.size2,.ML__mathlive .sizing.reset-size1.size2{font-size:1.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size3,.ML__mathlive .sizing.reset-size1.size3{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size1.size4,.ML__mathlive .sizing.reset-size1.size4{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size1.size5,.ML__mathlive .sizing.reset-size1.size5{font-size:2em}.ML__mathlive .fontsize-ensurer.reset-size1.size6,.ML__mathlive .sizing.reset-size1.size6{font-size:2.4em}.ML__mathlive .fontsize-ensurer.reset-size1.size7,.ML__mathlive .sizing.reset-size1.size7{font-size:2.88em}.ML__mathlive .fontsize-ensurer.reset-size1.size8,.ML__mathlive .sizing.reset-size1.size8{font-size:3.46em}.ML__mathlive .fontsize-ensurer.reset-size1.size9,.ML__mathlive .sizing.reset-size1.size9{font-size:4.14em}.ML__mathlive .fontsize-ensurer.reset-size1.size10,.ML__mathlive .sizing.reset-size1.size10{font-size:4.98em}.ML__mathlive .fontsize-ensurer.reset-size2.size1,.ML__mathlive .sizing.reset-size2.size1{font-size:.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size2,.ML__mathlive .sizing.reset-size2.size2{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size2.size3,.ML__mathlive .sizing.reset-size2.size3{font-size:1.14285714em}.ML__mathlive .fontsize-ensurer.reset-size2.size4,.ML__mathlive .sizing.reset-size2.size4{font-size:1.28571429em}.ML__mathlive .fontsize-ensurer.reset-size2.size5,.ML__mathlive .sizing.reset-size2.size5{font-size:1.42857143em}.ML__mathlive .fontsize-ensurer.reset-size2.size6,.ML__mathlive .sizing.reset-size2.size6{font-size:1.71428571em}.ML__mathlive .fontsize-ensurer.reset-size2.size7,.ML__mathlive .sizing.reset-size2.size7{font-size:2.05714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size8,.ML__mathlive .sizing.reset-size2.size8{font-size:2.47142857em}.ML__mathlive .fontsize-ensurer.reset-size2.size9,.ML__mathlive .sizing.reset-size2.size9{font-size:2.95714286em}.ML__mathlive .fontsize-ensurer.reset-size2.size10,.ML__mathlive .sizing.reset-size2.size10{font-size:3.55714286em}.ML__mathlive .fontsize-ensurer.reset-size3.size1,.ML__mathlive .sizing.reset-size3.size1{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size3.size2,.ML__mathlive .sizing.reset-size3.size2{font-size:.875em}.ML__mathlive .fontsize-ensurer.reset-size3.size3,.ML__mathlive .sizing.reset-size3.size3{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size3.size4,.ML__mathlive .sizing.reset-size3.size4{font-size:1.125em}.ML__mathlive .fontsize-ensurer.reset-size3.size5,.ML__mathlive .sizing.reset-size3.size5{font-size:1.25em}.ML__mathlive .fontsize-ensurer.reset-size3.size6,.ML__mathlive .sizing.reset-size3.size6{font-size:1.5em}.ML__mathlive .fontsize-ensurer.reset-size3.size7,.ML__mathlive .sizing.reset-size3.size7{font-size:1.8em}.ML__mathlive .fontsize-ensurer.reset-size3.size8,.ML__mathlive .sizing.reset-size3.size8{font-size:2.1625em}.ML__mathlive .fontsize-ensurer.reset-size3.size9,.ML__mathlive .sizing.reset-size3.size9{font-size:2.5875em}.ML__mathlive .fontsize-ensurer.reset-size3.size10,.ML__mathlive .sizing.reset-size3.size10{font-size:3.1125em}.ML__mathlive .fontsize-ensurer.reset-size4.size1,.ML__mathlive .sizing.reset-size4.size1{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size4.size2,.ML__mathlive .sizing.reset-size4.size2{font-size:.77777778em}.ML__mathlive .fontsize-ensurer.reset-size4.size3,.ML__mathlive .sizing.reset-size4.size3{font-size:.88888889em}.ML__mathlive .fontsize-ensurer.reset-size4.size4,.ML__mathlive .sizing.reset-size4.size4{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size4.size5,.ML__mathlive .sizing.reset-size4.size5{font-size:1.11111111em}.ML__mathlive .fontsize-ensurer.reset-size4.size6,.ML__mathlive .sizing.reset-size4.size6{font-size:1.33333333em}.ML__mathlive .fontsize-ensurer.reset-size4.size7,.ML__mathlive .sizing.reset-size4.size7{font-size:1.6em}.ML__mathlive .fontsize-ensurer.reset-size4.size8,.ML__mathlive .sizing.reset-size4.size8{font-size:1.92222222em}.ML__mathlive .fontsize-ensurer.reset-size4.size9,.ML__mathlive .sizing.reset-size4.size9{font-size:2.3em}.ML__mathlive .fontsize-ensurer.reset-size4.size10,.ML__mathlive .sizing.reset-size4.size10{font-size:2.76666667em}.ML__mathlive .fontsize-ensurer.reset-size5.size1,.ML__mathlive .sizing.reset-size5.size1{font-size:.5em}.ML__mathlive .fontsize-ensurer.reset-size5.size2,.ML__mathlive .sizing.reset-size5.size2{font-size:.7em}.ML__mathlive .fontsize-ensurer.reset-size5.size3,.ML__mathlive .sizing.reset-size5.size3{font-size:.8em}.ML__mathlive .fontsize-ensurer.reset-size5.size4,.ML__mathlive .sizing.reset-size5.size4{font-size:.9em}.ML__mathlive .fontsize-ensurer.reset-size5.size5,.ML__mathlive .sizing.reset-size5.size5{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size5.size6,.ML__mathlive .sizing.reset-size5.size6{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size5.size7,.ML__mathlive .sizing.reset-size5.size7{font-size:1.44em}.ML__mathlive .fontsize-ensurer.reset-size5.size8,.ML__mathlive .sizing.reset-size5.size8{font-size:1.73em}.ML__mathlive .fontsize-ensurer.reset-size5.size9,.ML__mathlive .sizing.reset-size5.size9{font-size:2.07em}.ML__mathlive .fontsize-ensurer.reset-size5.size10,.ML__mathlive .sizing.reset-size5.size10{font-size:2.49em}.ML__mathlive .fontsize-ensurer.reset-size6.size1,.ML__mathlive .sizing.reset-size6.size1{font-size:.41666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size2,.ML__mathlive .sizing.reset-size6.size2{font-size:.58333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size3,.ML__mathlive .sizing.reset-size6.size3{font-size:.66666667em}.ML__mathlive .fontsize-ensurer.reset-size6.size4,.ML__mathlive .sizing.reset-size6.size4{font-size:.75em}.ML__mathlive .fontsize-ensurer.reset-size6.size5,.ML__mathlive .sizing.reset-size6.size5{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size6.size6,.ML__mathlive .sizing.reset-size6.size6{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size6.size7,.ML__mathlive .sizing.reset-size6.size7{font-size:1.2em}.ML__mathlive .fontsize-ensurer.reset-size6.size8,.ML__mathlive .sizing.reset-size6.size8{font-size:1.44166667em}.ML__mathlive .fontsize-ensurer.reset-size6.size9,.ML__mathlive .sizing.reset-size6.size9{font-size:1.725em}.ML__mathlive .fontsize-ensurer.reset-size6.size10,.ML__mathlive .sizing.reset-size6.size10{font-size:2.075em}.ML__mathlive .fontsize-ensurer.reset-size7.size1,.ML__mathlive .sizing.reset-size7.size1{font-size:.34722222em}.ML__mathlive .fontsize-ensurer.reset-size7.size2,.ML__mathlive .sizing.reset-size7.size2{font-size:.48611111em}.ML__mathlive .fontsize-ensurer.reset-size7.size3,.ML__mathlive .sizing.reset-size7.size3{font-size:.55555556em}.ML__mathlive .fontsize-ensurer.reset-size7.size4,.ML__mathlive .sizing.reset-size7.size4{font-size:.625em}.ML__mathlive .fontsize-ensurer.reset-size7.size5,.ML__mathlive .sizing.reset-size7.size5{font-size:.69444444em}.ML__mathlive .fontsize-ensurer.reset-size7.size6,.ML__mathlive .sizing.reset-size7.size6{font-size:.83333333em}.ML__mathlive .fontsize-ensurer.reset-size7.size7,.ML__mathlive .sizing.reset-size7.size7{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size7.size8,.ML__mathlive .sizing.reset-size7.size8{font-size:1.20138889em}.ML__mathlive .fontsize-ensurer.reset-size7.size9,.ML__mathlive .sizing.reset-size7.size9{font-size:1.4375em}.ML__mathlive .fontsize-ensurer.reset-size7.size10,.ML__mathlive .sizing.reset-size7.size10{font-size:1.72916667em}.ML__mathlive .fontsize-ensurer.reset-size8.size1,.ML__mathlive .sizing.reset-size8.size1{font-size:.28901734em}.ML__mathlive .fontsize-ensurer.reset-size8.size2,.ML__mathlive .sizing.reset-size8.size2{font-size:.40462428em}.ML__mathlive .fontsize-ensurer.reset-size8.size3,.ML__mathlive .sizing.reset-size8.size3{font-size:.46242775em}.ML__mathlive .fontsize-ensurer.reset-size8.size4,.ML__mathlive .sizing.reset-size8.size4{font-size:.52023121em}.ML__mathlive .fontsize-ensurer.reset-size8.size5,.ML__mathlive .sizing.reset-size8.size5{font-size:.57803468em}.ML__mathlive .fontsize-ensurer.reset-size8.size6,.ML__mathlive .sizing.reset-size8.size6{font-size:.69364162em}.ML__mathlive .fontsize-ensurer.reset-size8.size7,.ML__mathlive .sizing.reset-size8.size7{font-size:.83236994em}.ML__mathlive .fontsize-ensurer.reset-size8.size8,.ML__mathlive .sizing.reset-size8.size8{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size8.size9,.ML__mathlive .sizing.reset-size8.size9{font-size:1.19653179em}.ML__mathlive .fontsize-ensurer.reset-size8.size10,.ML__mathlive .sizing.reset-size8.size10{font-size:1.43930636em}.ML__mathlive .fontsize-ensurer.reset-size9.size1,.ML__mathlive .sizing.reset-size9.size1{font-size:.24154589em}.ML__mathlive .fontsize-ensurer.reset-size9.size2,.ML__mathlive .sizing.reset-size9.size2{font-size:.33816425em}.ML__mathlive .fontsize-ensurer.reset-size9.size3,.ML__mathlive .sizing.reset-size9.size3{font-size:.38647343em}.ML__mathlive .fontsize-ensurer.reset-size9.size4,.ML__mathlive .sizing.reset-size9.size4{font-size:.43478261em}.ML__mathlive .fontsize-ensurer.reset-size9.size5,.ML__mathlive .sizing.reset-size9.size5{font-size:.48309179em}.ML__mathlive .fontsize-ensurer.reset-size9.size6,.ML__mathlive .sizing.reset-size9.size6{font-size:.57971014em}.ML__mathlive .fontsize-ensurer.reset-size9.size7,.ML__mathlive .sizing.reset-size9.size7{font-size:.69565217em}.ML__mathlive .fontsize-ensurer.reset-size9.size8,.ML__mathlive .sizing.reset-size9.size8{font-size:.83574879em}.ML__mathlive .fontsize-ensurer.reset-size9.size9,.ML__mathlive .sizing.reset-size9.size9{font-size:1em}.ML__mathlive .fontsize-ensurer.reset-size9.size10,.ML__mathlive .sizing.reset-size9.size10{font-size:1.20289855em}.ML__mathlive .fontsize-ensurer.reset-size10.size1,.ML__mathlive .sizing.reset-size10.size1{font-size:.20080321em}.ML__mathlive .fontsize-ensurer.reset-size10.size2,.ML__mathlive .sizing.reset-size10.size2{font-size:.2811245em}.ML__mathlive .fontsize-ensurer.reset-size10.size3,.ML__mathlive .sizing.reset-size10.size3{font-size:.32128514em}.ML__mathlive .fontsize-ensurer.reset-size10.size4,.ML__mathlive .sizing.reset-size10.size4{font-size:.36144578em}.ML__mathlive .fontsize-ensurer.reset-size10.size5,.ML__mathlive .sizing.reset-size10.size5{font-size:.40160643em}.ML__mathlive .fontsize-ensurer.reset-size10.size6,.ML__mathlive .sizing.reset-size10.size6{font-size:.48192771em}.ML__mathlive .fontsize-ensurer.reset-size10.size7,.ML__mathlive .sizing.reset-size10.size7{font-size:.57831325em}.ML__mathlive .fontsize-ensurer.reset-size10.size8,.ML__mathlive .sizing.reset-size10.size8{font-size:.69477912em}.ML__mathlive .fontsize-ensurer.reset-size10.size9,.ML__mathlive .sizing.reset-size10.size9{font-size:.8313253em}.ML__mathlive .fontsize-ensurer.reset-size10.size10,.ML__mathlive .sizing.reset-size10.size10{font-size:1em}.ML__mathlive .delimsizing.size1{font-family:KaTeX_Size1}.ML__mathlive .delimsizing.size2{font-family:KaTeX_Size2}.ML__mathlive .delimsizing.size3{font-family:KaTeX_Size3}.ML__mathlive .delimsizing.size4{font-family:KaTeX_Size4}.ML__mathlive .delimsizing.mult .delim-size1{font-family:KaTeX_Size1;vertical-align:top}.ML__mathlive .delimsizing.mult .delim-size4{font-family:KaTeX_Size4;vertical-align:top}.ML__mathlive .nulldelimiter{width:.12em}.ML__mathlive .op-symbol{position:relative}.ML__mathlive .op-symbol.small-op{font-family:KaTeX_Size1}.ML__mathlive .op-symbol.large-op{font-family:KaTeX_Size2}.ML__mathlive .op-limits .vlist>span{text-align:center}.ML__mathlive .op-over-under{position:relative}.ML__mathlive .op-over-under>.vlist>span:first-child,.ML__mathlive .op-over-under>.vlist>span:last-child{text-align:center}.ML__mathlive .accent>.vlist>span{text-align:center}.ML__mathlive .accent .accent-body>span{font-family:KaTeX_Main;width:0}.ML__mathlive .accent .accent-body.accent-vec>span{position:relative;left:.326em}.ML__mathlive .mtable .vertical-separator{display:inline-block;margin:0 -.025em;border-right:.05em solid}.ML__mathlive .mtable .arraycolsep{display:inline-block}.ML__mathlive .mtable .col-align-m>.vlist{text-align:center}.ML__mathlive .mtable .col-align-c>.vlist{text-align:center}.ML__mathlive .mtable .col-align-l>.vlist{text-align:left}.ML__mathlive .mtable .col-align-r>.vlist{text-align:right}.ML__error{background-image:radial-gradient(ellipse at center,#cc0041,transparent 70%);background-repeat:repeat-x;background-size:3px 3px;background-position:0 98%}.ML__placeholder{opacity:.7;padding-left:.4ex;padding-right:.4ex;padding-top:.4ex}';const Mo={"\\imaginaryI":"ⅈ","\\imaginaryJ":"ⅉ","\\pi":"π","\\exponentialE":"ℯ","﹢":"+","+":"+","−":"-","-":"-","﹣":"-","-":"-","\\times":"*","\\cdot":"*","⨉":"*","️✖":"*","️×":"*",".":"*","÷":"/","⁄":"/","/":"/","!":"factorial","\\mp":"minusplus","\\ne":"!=","\\coloneq":":=","\\questeq":"?=","\\approx":"approx","\\cong":"congruent","\\sim":"similar","\\equiv":"equiv","\\pm":"plusminus","\\land":"and","\\wedge":"and","\\lor":"or","\\vee":"or","\\oplus":"xor","\\veebar":"xor","\\lnot":"not","\\neg":"not","\\exists":"exists","\\nexists":"!exists","\\forall":"forAll","\\backepsilon":"suchThat","\\therefore":"therefore","\\because":"because","\\nabla":"nabla","\\circ":"circle","\\ominus":"ominus","\\odot":"odot","\\otimes":"otimes","\\zeta":"Zeta","\\Gamma":"Gamma","\\min":"min","\\max":"max","\\mod":"mod","\\lim":"lim","\\sum":"sum","\\prod":"prod","\\int":"integral","\\iint":"integral2","\\iiint":"integral3","\\Re":"Re","\\gothicCapitalR":"Re","\\Im":"Im","\\gothicCapitalI":"Im","\\binom":"nCr","\\partial":"partial","\\differentialD":"differentialD","\\capitalDifferentialD":"capitalDifferentialD","\\Finv":"Finv","\\Game":"Game","\\wp":"wp","\\ast":"ast","\\star":"star","\\asymp":"asymp","\\to":"to","\\gets":"gets","\\in":"elementof","\\notin":"!elementof","\\ni":"ownedby","\\owns":"ownedby","\\subset":"subset","\\supset":"superset","\\complement":"complement","\\rightarrow":"shortLogicalImplies","\\leftarrow":"shortLogicalImpliedBy","\\leftrightarrow":"shortLogicalEquivalent","\\longrightarrow":"logicalImplies","\\longleftarrow":"logicalImpliedBy","\\longleftrightarrow":"logicalEquivalent","\\Rightarrow":"shortImplies","\\Leftarrow":"shortImpliedBy","\\Leftrightarrow":"shortEquivalent","\\implies":"implies","\\Longrightarrow":"implies","\\impliedby":"impliedBy","\\Longleftarrow":"impliedBy","\\iff":"equivalent","\\Longleftrightarrow":"equivalent"},zo={"+":"add","*":"multiply","-":"subtract","/":"divide","=":"equal",":=":"assign","!=":"ne","?=":"questeq",approx:"approx",congruent:"congruent",similar:"similar",equiv:"equiv","<":"lt",">":"gt","<=":"le",">=":"ge","≤":"le","≥":"ge",">>":"gg","<<":"ll","**":"pow","++":"increment","--":"decrement"},So={equal:"%0 = %1",ne:"%0 \\ne %1",questeq:"%0 \\questeq %1",approx:"%0 \\approx %1",congruent:"%0 \\cong %1",similar:"%0 \\sim %1",equiv:"%0 \\equiv %1",assign:"%0 := %1",lt:"%0 < %1",gt:"%0 > %1",le:"%0 \\le %1",ge:"%0 \\ge %1",sin:"\\sin%_%^ %0",cos:"\\cos%_%^ %0",tan:"\\tan%_%^ %0",cot:"\\cot%_%^ %0",sec:"\\sec%_%^ %0",csc:"\\csc%_%^ %0",sinh:"\\sinh %0",cosh:"\\cosh %0",tanh:"\\tanh %0",csch:"\\csch %0",sech:"\\sech %0",coth:"\\coth %0",arcsin:"\\arcsin %0",arccos:"\\arccos %0",arctan:"\\arctan %0",arccot:"\\arcctg %0",arcsec:"\\arcsec %0",arccsc:"\\arccsc %0",arsinh:"\\arsinh %0",arcosh:"\\arcosh %0",artanh:"\\artanh %0",arcsch:"\\arcsch %0",arsech:"\\arsech %0",arcoth:"\\arcoth %0",ln:"\\ln%_%^ %",log:"\\log%_%^ %",lg:"\\lg %",lb:"\\lb %",sum:"\\sum%_%^ %0",prod:"\\prod%_%^ %0",Zeta:"\\zeta%_%^ %",Gamma:"\\Gamma %",min:"\\min%_%^ %",max:"\\max%_%^ %",mod:"\\mod%_%^ %",lim:"\\lim%_%^ %",binom:"\\binom %",nabla:"\\nabla %",curl:"\\nabla\\times %0",div:"\\nabla\\cdot %0",floor:"\\lfloor %0 \\rfloor%_%^",ceil:"\\lceil %0 \\rceil%_%^",abs:"\\left| %0 \\right|%_%^",norm:"\\lVert %0 \\rVert%_%^",ucorner:"\\ulcorner %0 \\urcorner%_%^",lcorner:"\\llcorner %0 \\lrcorner%_%^",angle:"\\langle %0 \\rangle%_%^",group:"\\lgroup %0 \\rgroup%_%^",moustache:"\\lmoustache %0 \\rmoustache%_%^",brace:"\\lbrace %0 \\rbrace%_%^","sqrt[]":"\\sqrt[%^]{%0}",sqrt:"\\sqrt{%0}",lcm:"\\operatorname{lcm}%",gcd:"\\operatorname{gcd}%",erf:"\\operatorname{erf}%",erfc:"\\operatorname{erfc}%",randomReal:"\\operatorname{randomReal}%",randomInteger:"\\operatorname{randomInteger}%",and:"%0 \\land %1",or:"%0 \\lor %1",xor:"%0 \\oplus %1",not:"%0 \\lnot %1",circle:"%0 \\circ %1",ast:"%0 \\ast %1",star:"%0 \\star %1",asymp:"%0 \\asymp %1","/":"\\frac{%0}{%1}",Re:"\\Re{%0}",Im:"\\Im{%0}",factorial:"%0!",factorial2:"%0!!"},Lo={degree:880,nabla:740,curl:740,partial:740,differentialD:740,capitalDifferentialD:740,"**":720,odot:710,not:680,div:660,solidus:660,"/":660,setminus:650,"%":640,otimes:410,union:350,intersection:350,"*":390,ast:390,".":390,oplus:300,ominus:300,"+":275,"-":275,"+-":275,"-+":275,circle:265,circledast:265,circledcirc:265,star:265,"..":263,to:262,in:262,"|":261,congruent:265,equiv:260,"=":260,"!=":255,"?=":255,similar:250,approx:247,"<":245,">":243,">=":242,"≥":242,"<=":241,complement:240,subset:240,superset:240,elementof:240,"!elementof":240,exists:230,"!exists":230,forall:230,and:200,xor:195,or:190,suchThat:110,":":100,assign:80,":=":80,therefore:70,because:70,shortLogicalImplies:52,shortImplies:51,logicalImplies:50,implies:49,shortLogicalImpliedBy:48,shortImpliedBy:47,logicalImpliedBy:46,impliedBy:45,shortLogicalEquivalent:44,shortEquivalent:43,logicalEquivalent:42,equivalent:41,",":40,";":30};function Ao(t,i){return e(t.arg)?t.arg[i]:void 0}function Co(e){return e&&Lo[e]||-1}function $o(e){return/=|=>/.test(e)?"right":"left"}function qo(e){if("f"===e||"g"===e)return!0;const t=So[e];return!!t&&!!/%[^01_^]?/.test(t)}function Do(e){e=(e||"").trim();let t=Mo[e];if(!t)if(/^\\[^{}]+$/.test(e)){const i=te(e,"math",{});t=i&&i.value||e.slice(1)}else t=e;return t}function To(e){if(!e)return null;const t=Do(Fo(e)),i=[Co(t),$o(t)];return i[0]<=0?null:i}function Ko(e){return null!==To(e)}const Eo={"\\lfloor\\rfloor":"floor","\\lceil\\rceil":"ceil","\\vert\\vert":"abs","\\lvert\\rvert":"abs","||":"abs","\\Vert\\Vert":"norm","\\lVert\\rVert":"norm","\\ulcorner\\urcorner":"ucorner","\\llcorner\\lrcorner":"lcorner","\\langle\\rangle":"angle","\\lgroup\\rgroup":"group","\\lmoustache\\rmoustache":"moustache","\\lbrace\\rbrace":"brace"},No={"!":"factorial","\\dag":"dagger","\\dagger":"dagger","\\ddagger":"dagger2","\\maltese":"maltese","\\backprime":"backprime","\\backdoubleprime":"backprime2","\\prime":"prime","\\doubleprime":"prime2","\\$":"$","\\%":"%","\\_":"_","\\degree":"degree"},Bo={"+":"add","-":"add","*":"multiply","=":"equal",",":"list",";":"list2",and:"and",or:"or",xor:"xor",union:"union",shortLogicalEquivalent:"logicalEquivalent",logicalEquivalent:"logicalEquivalent",shortEquivalent:"equivalent",equivalent:"equivalent"},Oo={",":"list",";":"list2"};function Fo(t){if("string"==typeof t)return t;if(e(t)){let e="";for(const i of t)e+=Fo(i);return e}if(t.symbol&&!/^\\math(op|bin|rel|open|punct|ord|inner)/.test(t.symbol))return t.symbol;if("leftright"===t.type)return"";if("string"==typeof t.body)return t.body;if(e(t.body)){let e="";for(const i of t.body)e+=Fo(i);return e}return""}function Po(e){return"string"==typeof e.sym?function(e){let t=So[e];return t?t.replace("%1","").replace("%0","").replace("%",""):(e.length>1&&(t="\\"+e),t||(t=Y("math",e)),t)}(e.sym)||e.sym:""}function Ro(e){return parseFloat(e.num)}function Io(e){return"object"==typeof e&&void 0!==e.num}function Ho(e){let t=0;return Io(e)&&(t="object"==typeof e.num?void 0!==e.num.re?dr(e.num.re):0:parseFloat(e.num)),t}function Vo(e){let t=0;return Io(e)&&"object"==typeof e.num&&(t=void 0!==e.num.im?dr(e.num.im):0),t}function Wo(e){return e&&void 0!==e.sup}function Uo(e){return e&&void 0!==e.sub}function jo(e,t,i){let a=!1;const o=e.atoms[e.index];return o&&o.type===t&&(a=void 0===i||Fo(o)===i),a}function Xo(e,...t){const i={fn:e,arg:void 0};if(t){const e=[];for(const i of t)i&&e.push(i);e.length>0&&(i.arg=e)}return i}function Go(e){return"number"==typeof e?{num:e.toString()}:"string"==typeof e||"object"==typeof e?{num:e}:void 0}function Zo(e){if(Io(e)){const t=Ho(e),i=Vo(e);return 0!==i?(0!==t&&(e.num.re=(-t).toString()),e.num.im=(-i).toString()):e.num=(-t).toString(),e}return Xo("negate",e)}function Yo(e){const t=e.atoms[e.index+1];return t&&"msubsup"===t.type}function Jo(e,t){let i=e.atoms[e.index];return!i||void 0===i.superscript&&void 0===i.subscript?i=null:e.index+=1,i||(i=e.atoms[e.index+1],i&&"msubsup"===i.type&&(i.superscript||i.subscript)?e.index+=2:i=null),i?(void 0!==i.subscript&&(e.ast.sub=sr(i.subscript,t)),void 0!==i.superscript&&("msubsup"===i.type?/['\u2032]|\\prime/.test(Fo(i.superscript))?(e.index+=1,i=e.atoms[e.index+1],i&&"msubsup"===i.type&&/['\u2032]|\\prime/.test(Fo(i.superscript))?e.ast.sup={sym:"″"}:(e.ast.sup={sym:"′"},e.index-=1)):/['\u2033]|\\doubleprime/.test(Fo(i.superscript))?e.ast.sup={sym:"″"}:e.ast&&(e.ast.sup=sr(i.superscript,t)):e.ast.sup=sr(i.superscript,t))):e.index+=1,e}function Qo(e,t){const i=e.ast;if(tr(e,"!!"))return e.index+=1,e.ast=Xo("factorial2",i),Qo(e=Jo(e,t),t);if(tr(e,"++"))return e.index+=1,e.ast=Xo("increment",i),Qo(e=Jo(e,t),t);if(tr(e,"--"))return e.index+=1,e.ast=Xo("decrement",i),Qo(e=Jo(e,t),t);const a=e.atoms[e.index];return(null==a?void 0:a.symbol)&&No[a.symbol]&&(e.ast=Xo(No[a.symbol],i),e=Qo(e=Jo(e,t),t)),e}function er(e,t,i,a){if(e.index=e.index||0,0===e.atoms.length||e.index>=e.atoms.length)return e.ast=void 0,e;const o=e.minPrec;e.minPrec=0;let r=e.atoms[e.index];if(t){if("mopen"===r.type&&Fo(r)===t)e.index+=1,r=(e=ar(e,a)).atoms[e.index],r&&"mclose"===r.type&&Fo(r)===i&&(Yo(e)&&(e.ast={group:e.ast}),e=Qo(e=Jo(e,a),a));else if("textord"===r.type&&Fo(r)===t)e.index+=1,r=(e=ar(e,a)).atoms[e.index],r&&"textord"===r.type&&Fo(r)===i&&(e.index+=1,e=Qo(e=Jo(e,a),a));else if("\\lVert"===t&&"textord"===r.type&&"|"===r.symbol){if(r=e.atoms[e.index+1],r&&"textord"===r.type&&"|"===r.symbol){e.index+=2,r=(e=ar(e,a)).atoms[e.index];const t=e.atoms[e.index+1];r&&"textord"===r.type&&"|"===r.symbol&&t&&"textord"===t.type&&"|"===t.symbol&&(e.index+=2,e=Qo(e=Jo(e,a),a))}}else if("sizeddelim"===r.type&&r.delim===t)e.index+=1,r=(e=ar(e,a)).atoms[e.index],r&&"sizeddelim"===r.type&&r.delim===i&&(e.index+=1,e=Qo(e=Jo(e,a),a));else{if("leftright"!==r.type||r.leftDelim!==t||"?"!==r.rightDelim&&r.rightDelim!==i)return;e.ast=sr(r.body,a),Yo(e)&&(e.ast={group:e.ast}),e=Qo(e=Jo(e,a),a)}return e.minPrec=o,e}{let s=!0;if("mopen"===r.type?(t=r.symbol,i=F[t]):"sizeddelim"===r.type?(t=r.delim,i=F[t]):"leftright"===r.type?(s=!1,t=r.leftDelim,"?"===(i=r.rightDelim)&&(i=F[t])):"textord"===r.type&&(t=r.symbol,i=F[t]),t&&i){if("|"===t&&"|"===i){const a=e.atoms[e.index+1];a&&"textord"===a.type&&"|"===a.symbol&&(t="\\lVert",i="\\rVert")}if(e=er(e,t,i,a))return s&&(e.index+=1),e.ast={fn:Eo[t+i]||t+i,arg:[e.ast]},e.minPrec=o,e}}}function tr(e,t){return e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)&&t===Fo(e.atoms[e.index])+Fo(e.atoms[e.index+1])}function ir(e){if(e.index=e.index||0,!(e.atoms.length<=1||e.index>=e.atoms.length-1)){if(!jo(e,"textord","\\nabla")){const t=e.atoms[e.index].symbol+e.atoms[e.index+1].symbol,i=/^(>=|<=|>>|<<|:=|!=)$/.test(t)?t:"";return i&&(e.index+=1),i}return e.index+=1,jo(e,"mbin","\\times")?(e.index+=1,e.ast="curl",e):jo(e,"mbin","\\cdot")?(e.index+=1,e.ast="div",e):void(e.index-=1)}}function ar(t,i){if(t.index=t.index||0,t.ast=void 0,0===t.atoms.length||t.index>=t.atoms.length)return t;t.minPrec=t.minPrec||0;let a=function t(i,a){if(i.index=i.index||0,i.ast=void 0,0===i.atoms.length||i.index>=i.atoms.length)return i;let o=i.atoms[i.index];if("text"===o.mode){let e="";for(;i.atoms[i.index]&&"text"===i.atoms[i.index].mode;)e+=i.atoms[i.index].body,i.index+=1;return i.ast={text:e},i}const r=Do(Fo(o));if(ir(i))i.ast=Xo(i.ast,t(i,a).ast);else{if("root"===o.type)return i.index=0,i.atoms=o.body,t(i,a);if("mbin"===o.type&&"-"===r)i.index+=1,(i=t(i,a)).ast=Zo(i.ast);else if("mbin"===o.type&&"+"===r)i.index+=1,(i=t(i,a)).ast=Xo("add",i.ast);else if("mord"===o.type&&/^[0-9.]$/.test(o.symbol)){let e="",r=!1,s=/^[0-9.eEdD]$/;for(;i.index0&&"\\"===d.charAt(0)&&"string"==typeof e.body&&(d=e.body)),l=G(d,m,p).replace(/[\\]/g,"\\\\").replace(/["]/g,'\\"').replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\t]/g,"\\t"),l!==d?(c={sym:l},m="normal"):c={sym:d};break;case"minner":case"mop":break;case"box":c=sr(e.body,t);break;case"enclose":break;case"array":if("cardinality"===e.environmentName)c=Xo("card",sr(e.array,t));else if(/array|matrix|pmatrix|bmatrix/.test(e.environmentName)){c={fn:"array",args:[]};for(const i of e.array)c.args.push(i.map(e=>sr(e,t)))}else if("cases"===e.environmentName){c={fn:"cases",args:[]};for(const i of e.array)if(i[0]){const e=[];e.push(sr(i[0],t));let a=sr(i[1],t);a&&"text"===a.fn&&a.arg&&/^(if|when|for)$/i.test(a.arg[0].trim())&&(a=a.arg.filter(e=>"string"!=typeof e)),e.push(null!=a?a:{}),c.args.push(e)}}break;case"spacing":case"space":case"mathstyle":break;default:c=void 0}return c&&m&&"normal"!==m&&(c.variant=m),c&&"string"==typeof e.cssClass&&(c.class=e.cssClass),c&&"string"==typeof e.cssId&&(c.id=e.cssId),c}function rr(t){if(!t)return[];let i;if(e(t)){i=[];for(const e of t){const t=rr(e);i=i.concat(t)}}else{if("spacing"===t.type||"first"===t.type)return[];"box"===t.type?i=rr(t.body):(t.body&&e(t.body)&&(t.body=rr(t.body)),t.superscript&&e(t.superscript)&&(t.superscript=rr(t.superscript)),t.subscript&&e(t.subscript)&&(t.subscript=rr(t.subscript)),t.index&&e(t.index)&&(t.index=rr(t.index)),t.denom&&e(t.denom)&&(t.denom=rr(t.denom)),t.numer&&e(t.numer)&&(t.numer=rr(t.numer)),t.array&&e(t.array)&&(t.array=t.array.map(e=>e.map(e=>rr(e)))),i=[t])}return i}function sr(e,t){return function(e,t){e.index=e.index||0,e.ast=void 0;const i=[];for(;e.atoms[e.index];)if("text"===e.atoms[e.index].mode){let t="";for(;e.atoms[e.index]&&"text"===e.atoms[e.index].mode;)t+=e.atoms[e.index].body,e.index+=1;i.push(Xo("text",t))}else{const a=ar(e,t).ast;if(!a)return;i.push(a)}return i.length>1?Xo("sequence",...i):i[0]||void 0}({atoms:rr(e)},t)}function nr(e,t){return sr(e,t)}function lr(e,...t){e=e||".. ";let i="";if(t.length>0){"."!==e[0]&&(i+=e[0]);let a="";for(const o of t)i+=a+o,a=e[2];"."!==e[1]&&(i+=e[1])}return i}function cr(e,t){const i=e.length;e=e.substr(0,t.precision-2);for(let i=0;i1&&(a+r.repeat(s+1)).startsWith(e))return"0"===r?a.replace(/(\d{3})/g,"$1"+t.groupSeparator):a.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.beginRepeatingDigits+r.replace(/(\d{3})/g,"$1"+t.groupSeparator)+t.endRepeatingDigits}}return i!==e.length&&(e+="\\ldots"),e.replace(/(\d{3})/g,"$1"+t.groupSeparator)}function dr(e){return parseFloat(parseFloat(e).toPrecision(15))}function mr(e,t){let i,a="";if("number"==typeof t.precision){if("number"!=typeof e){let i="",a="";if("-"===e[0]?(i="-",e=e.substr(1)):"+"===e[0]&&(e=e.substr(1)),e.indexOf(".")>=0){const o=e.match(/(\d*).(\d*)([e|E]([-+]?[0-9]*))?/),r=o[1],s=o[2].substring(0,Math.min(t.precision-r.length,o[2].length));if(a=o[4]||"","0"===r){let a=0;for(;"0"===s[a]&&a=t.precision)o="0",i="";else{o=e[a];const i=cr(e.substr(a+1),t);i&&(o+=t.decimalMarker+i)}"0"!==o&&(e.length-1>t.precision&&!o.endsWith("}")&&!o.endsWith("\\ldots")&&(o+="\\ldots"),a>4&&(o+=t.exponentProduct,t.exponentMarker?o+=t.exponentMarker+(1-a).toString():o+="10^{"+(1-a).toString()+"}")),e=o}else{e=r.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);const i=cr(s,t);i&&(e+=t.decimalMarker+i)}}else if(e.length>t.precision){const i=e.length;let a=e[0];const o=cr(e.substr(2),t);o&&(a+=t.decimalMarker+o,"}"!==a[a.length-1]&&(a+="\\ldots")),"1"!==a?a+=t.exponentProduct:a="",t.exponentMarker?a+=t.exponentMarker+(i-2).toString():a+="10^{"+(i-2).toString()+"}",e=a}else e=e.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator);return a&&(a=t.exponentMarker?t.exponentMarker+a:t.exponentProduct+" 10^{"+a+"}"),i+e+a}i=dr(e)}if("engineering"===t.scientificNotation)if(0===i)a="0";else{const e=Math.abs(i);let o=Math.round(Math.log10(e));o-=o%3,e<1e3&&(o=0);const r=e/Math.pow(10,o);let s="";const n=r.toString().match(/^(.*)\.(.*)$/);(null==n?void 0:n[1])&&n[2]&&(s=n[1]+t.decimalMarker+n[2]),t.groupSeparator&&(s=cr(r.toExponential(),t));let l="";l=0===o?"":t.exponentMarker?t.exponentMarker+o:t.exponentProduct+" 10^{"+o+"}",a=(i<0?"-":"")+s+l}else{const i="string"==typeof e?e:e.toString();let o,r,s,n=i.match(/^(.*)[e|E]([-+]?[0-9]*)$/i);o=i,s="",(null==n?void 0:n[1])&&n[2]&&(o=n[1],r=t.exponentMarker?t.exponentMarker+n[2]:t.exponentProduct+" 10^{"+n[2]+"}"),n=o.match(/^(.*)\.(.*)$/),(null==n?void 0:n[1])&&n[2]&&(o=n[1],s=n[2]),t.groupSeparator&&(o=o.replace(/\B(?=(\d{3})+(?!\d))/g,t.groupSeparator),s=cr(s,t)),s&&(s=t.decimalMarker+s),a=o+s+(r||"")}return a}class pr{constructor(e,t){var i;this.stylesheets=[],this.eventHandlingInProgress="",this.options=Ua(Xa(),t),this.element=e,e.mathfield=this,this.originalContent=e.innerHTML;let a=this.element.textContent;a&&(a=a.trim()),at(this.options.fontsDirectory,this.options.onError),this.stylesheets.push(ot(e,wo)),this.stylesheets.push(ot(e,'@-webkit-keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes ML__caret-blink{0%,to{opacity:1}50%{opacity:0}}.ML__caret:after{content:"";border:none;border-radius:2px;border-right:2px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-2px;position:relative;left:-1px;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__text-caret:after{content:"";border:none;border-radius:1px;border-right:1px solid var(--caret,hsl(var(--hue,212),40%,49%));margin-right:-1px;position:relative;left:0;-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__command-caret:after{content:"_";border:none;margin-right:-1ex;position:relative;color:var(--caret,hsl(var(--hue,212),40%,49%));-webkit-animation:ML__caret-blink 1.05s step-end infinite forwards;animation:ML__caret-blink 1.05s step-end infinite forwards}.ML__fieldcontainer{display:flex;flex-flow:row;justify-content:space-between;align-items:flex-end;min-height:39px;touch-action:none;width:100%;--hue:212;--secondary:hsl(var(--hue,212),19%,26%);--on-secondary:hsl(var(--hue,212),19%,26%)}.ML__fieldcontainer:focus{outline:2px solid var(--primary,hsl(var(--hue,212),40%,50%));outline-offset:3px}.ML__fieldcontainer__field{align-self:center;position:relative;overflow:hidden;line-height:0;padding:2px;width:100%}.ML__virtual-keyboard-toggle{display:flex;align-self:center;align-items:center;flex-shrink:0;flex-direction:column;justify-content:center;width:34px;height:34px;padding:0;margin-right:4px;cursor:pointer;box-sizing:border-box;border-radius:50%;border:1px solid transparent;transition:background .2s cubic-bezier(.64,.09,.08,1);color:var(--primary,hsl(var(--hue,212),40%,50%));fill:currentColor;background:transparent}.ML__virtual-keyboard-toggle:hover{background:hsl(var(--hue,212),25%,35%);color:#fafafa;fill:currentColor;border-radius:50%;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}.ML__popover{visibility:hidden;min-width:160px;background-color:rgba(97,97,97,.95);color:#fff;text-align:center;border-radius:6px;position:fixed;z-index:1;display:flex;flex-direction:column;justify-content:center;box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:all .2s cubic-bezier(.64,.09,.08,1)}.ML__popover:after{content:"";position:absolute;top:-5px;left:calc(50% - 3px);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;font-size:1rem;border-bottom:5px solid rgba(97,97,97,.9)}.ML__popover--reverse-direction:after{top:auto;bottom:-5px;border-top:5px solid rgba(97,97,97,.9);border-bottom:0}.ML__textarea__textarea{transform:scale(0);resize:none;position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;font-size:16px}.ML__focused .ML__text{background:hsla(var(--hue,212),40%,50%,.1)}.ML__smart-fence__close{opacity:.5}.ML__selection{background:var(--highlight-inactive,#ccc);box-sizing:border-box}.ML__focused .ML__selection{background:var(--highlight,hsl(var(--hue,212),97%,85%))!important;color:var(--on-highlight)}.ML__contains-caret.ML__close,.ML__contains-caret.ML__open,.ML__contains-caret>.ML__close,.ML__contains-caret>.ML__open,.sqrt.ML__contains-caret>.sqrt-sign,.sqrt.ML__contains-caret>.vlist>span>.sqrt-line{color:var(--caret,hsl(var(--hue,212),40%,49%))}.ML__command{font-family:IBM Plex Mono,Source Code Pro,Consolas,Roboto Mono,Menlo,Bitstream Vera Sans Mono,DejaVu Sans Mono,Monaco,Courier,monospace;letter-spacing:-1px;font-weight:400;line-height:1em;color:var(--primary,hsl(var(--hue,212),40%,50%))}:not(.ML__command)+.ML__command{margin-left:.25em}.ML__command+:not(.ML__command){padding-left:.25em}.ML__suggestion{opacity:.5}.ML__virtual-keyboard-toggle.pressed{background:hsla(0,0%,70%,.5)}.ML__virtual-keyboard-toggle:focus{outline:none;border-radius:50%;border:2px solid var(--primary,hsl(var(--hue,212),40%,50%))}.ML__virtual-keyboard-toggle.active,.ML__virtual-keyboard-toggle.active:hover{background:hsla(0,0%,70%,.5);color:#000;fill:currentColor}.ML__scroller{position:fixed;z-index:1;top:0;height:100vh;width:200px}[data-ML__tooltip]{position:relative}[data-ML__tooltip][data-placement=top]:after{top:inherit;bottom:100%}[data-ML__tooltip]:after{position:absolute;visibility:hidden;content:attr(data-ML__tooltip);display:inline-table;top:110%;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:200px;padding:8px;background:#616161;color:#fff;text-align:center;z-index:2;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);border-radius:2px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;font-size:12px;opacity:0;transform:scale(.5);transition:all .15s cubic-bezier(.4,0,1,1)}@media only screen and (max-width:767px){[data-ML__tooltip]:after{padding:8px 16px;font-size:14px}}[data-ML__tooltip]:hover{position:relative}[data-ML__tooltip]:hover:after{visibility:visible;opacity:1;transform:scale(1)}[data-ML__tooltip][data-delay]:after{transition-delay:0s}[data-ML__tooltip][data-delay]:hover:after{transition-delay:1s}'));let o="";this.options.substituteTextArea?"string"==typeof this.options.substituteTextArea?o+=this.options.substituteTextArea:o+="":/android|ipad|ipod|iphone/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)?o+="\n \n \n ":o+=``,o+='',"manual"===this.options.virtualKeyboardMode?(o+=`
    `,this.options.virtualKeyboardToggleGlyph?o+=this.options.virtualKeyboardToggleGlyph:o+='',o+="
    "):o+="",o+="
    ",o+='\n
    \n \n \n
    \n ',this.element.innerHTML=this.options.createHTML(o);let r=0;"function"==typeof this.options.substituteTextArea?this.textarea=this.options.substituteTextArea():this.textarea=this.element.children[r++].firstElementChild,this.field=this.element.children[r].children[0],this.field.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const t=void 0===e.deltaX?e.detail:-e.deltaX;isFinite(t)&&this.field.scroll({top:0,left:this.field.scrollLeft-5*t})},{passive:!1}),this.virtualKeyboardToggle=this.element.children[r++].children[1],Ai(this,this.virtualKeyboardToggle,{default:"toggleVirtualKeyboard",alt:"toggleVirtualKeyboardAlt",shift:"toggleVirtualKeyboardShift"}),this.ariaLiveText=this.element.children[r].children[0],this.accessibleNode=this.element.children[r++].children[1],this.popover=wi("mathlive-popover-panel","ML__popover"),this.stylesheets.push(ot(null,"div.ML__popover.is-visible{visibility:inherit;-webkit-animation:ML__fade-in .15s cubic-bezier(0,0,.2,1);animation:ML__fade-in .15s cubic-bezier(0,0,.2,1)}@-webkit-keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}@keyframes ML__fade-in{0%{opacity:0}to{opacity:1}}.ML__popover__content{border-radius:6px;padding:2px;cursor:pointer;min-height:100px;display:flex;flex-direction:column;justify-content:center;margin-left:8px;margin-right:8px}.ML__popover__content a{color:#5ea6fd;padding-top:.3em;margin-top:.4em;display:block}.ML__popover__content a:hover{color:#5ea6fd;text-decoration:underline}.ML__popover__content.active,.ML__popover__content.pressed,.ML__popover__content:hover{background:hsla(0,0%,100%,.1)}.ML__popover__command{font-size:1.6rem}.ML__popover__prev-shortcut{height:31px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:4px;padding-bottom:2px}.ML__popover__next-shortcut:hover,.ML__popover__prev-shortcut:hover{opacity:.3}.ML__popover__next-shortcut.active,.ML__popover__next-shortcut.pressed,.ML__popover__prev-shortcut.active,.ML__popover__prev-shortcut.pressed{opacity:1}.ML__popover__next-shortcut>span,.ML__popover__prev-shortcut>span{padding:5px;border-radius:50%;width:20px;height:20px;display:inline-block}.ML__popover__prev-shortcut>span>span{margin-top:-2px;display:block}.ML__popover__next-shortcut>span>span{margin-top:2px;display:block}.ML__popover__next-shortcut:hover>span,.ML__popover__prev-shortcut:hover>span{background:hsla(0,0%,100%,.1)}.ML__popover__next-shortcut{height:34px;opacity:.1;cursor:pointer;margin-left:8px;margin-right:8px;padding-top:2px;padding-bottom:4px}.ML__popover__shortcut{font-size:.8em;margin-top:.25em}.ML__popover__note,.ML__popover__shortcut{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.7;padding-top:.25em}.ML__popover__note{font-size:.8rem;line-height:1em;padding-left:.5em;padding-right:.5em}.ML__shortcut-join{opacity:.5}")),this.keystrokeCaption=wi("mathlive-keystroke-caption-panel","ML__keystroke-caption"),this.stylesheets.push(ot(null,".ML__keystroke-caption{visibility:hidden;background:var(--secondary);border-color:var(--secondary-border);box-shadow:0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);text-align:center;border-radius:6px;padding:16px;position:absolute;z-index:1;display:flex;flex-direction:row;justify-content:center;--keystroke:#fff;--on-keystroke:#555;--keystroke-border:#f7f7f7}@media (prefers-color-scheme:dark){body:not([theme=light]) .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}}body[theme=dark] .ML__keystroke-caption{--keystroke:hsl(var(--hue,212),50%,30%);--on-keystroke:#fafafa;--keystroke-border:hsl(var(--hue,212),50%,25%)}.ML__keystroke-caption>span{min-width:14px;margin:0 8px 0 0;padding:4px;background-color:var(--keystroke);color:var(--on-keystroke);fill:currentColor;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:1em;border-radius:6px;border:2px solid var(--keystroke-border)}")),this.keystrokeCaptionVisible=!1,this.virtualKeyboardVisible=!1,this.keystrokeBuffer="",this.keystrokeBufferStates=[],this.keystrokeBufferResetTimer=null,this.suggestionIndex=0,this.mode=this.options.defaultMode,this.smartModeSuppressed=!1,this.style={},this.blurred=!0,ki(this.element,"focus",this),ki(this.element,"blur",this),ki(this.textarea,"cut",this),ki(this.textarea,"copy",this),ki(this.textarea,"paste",this),function(e,t){let i,a=null,o=null,r=!1,s=!1,n=!1,l=!1;function c(e){clearTimeout(i),i=setTimeout(()=>{clearTimeout(i),e()})}function d(){if(e.selectionStart!==e.selectionEnd)return;const i=e.value;e.value="",i.length>0&&t.typedText(i)}const m=e;m.addEventListener("keydown",i=>{if(t.allowDeadKey()||"Dead"!==i.key&&"Unidentified"!==i.key&&229!==i.keyCode)l=!1;else{l=!0,r=!1;const i=t.blur,a=t.focus;t.blur=null,t.focus=null,"function"==typeof e.blur&&(e.blur(),e.focus()),t.blur=i,t.focus=a}return!(!r&&"CapsLock"!==i.code&&!/(Control|Meta|Alt|Shift)(Left|Right)/.test(i.code))||(a=i,o=null,t.keystroke(za(i),i))},!0),m.addEventListener("keypress",e=>{r||(a&&o&&t.keystroke(za(a),a),o=e,c(d))},!0),m.addEventListener("keyup",()=>{r||!a||o||d()},!0),m.addEventListener("paste",()=>{e.focus();const i=e.value;e.value="",i.length>0&&t.paste(i)},!0),m.addEventListener("blur",e=>{n||s||(n=!0,a=null,o=null,t.blur&&t.blur(),n=!1)},!0),m.addEventListener("focus",e=>{n||s||(s=!0,t.focus&&t.focus(),s=!1)},!0),m.addEventListener("compositionstart",()=>{r=!0},!0),m.addEventListener("compositionend",()=>{r=!1,l&&t.allowDeadKey()&&c(d)},!0),m.addEventListener("input",()=>{if(l){const i=t.blur,a=t.focus;t.blur=null,t.focus=null,e.blur(),e.focus(),t.blur=i,t.focus=a,l=!1,r=!1,t.allowDeadKey()&&c(d)}else r||c(d)})}(this.textarea,{allowDeadKey:()=>"text"===this.mode,typedText:e=>Qa(this,e),paste:()=>io(this),keystroke:(e,t)=>Ja(this,e,t),focus:()=>this.onFocus(),blur:()=>this.onBlur()}),window.PointerEvent?ki(this.field,"pointerdown",this):ki(this.field,"touchstart:active mousedown",this),ki(window,"resize",this),this.model=new ka({mode:this.options.defaultMode,macros:this.options.macros,removeExtraneousParentheses:this.options.removeExtraneousParentheses},{onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError},{announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)},this),this.undoManager=new La(this.model),ua(this.model,a,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),this.undoManager.startRecording(),this.undoManager.snapshot(this.options),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(hi().locale)||ui(this.options.locale),this.keybindings=xi(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),ea(this)}$setConfig(e){this.setOptions(e)}setOptions(e){this.options=Ua(this.options,e),this.model.setListeners({onContentDidChange:e=>this.options.onContentDidChange(this),onSelectionDidChange:e=>this._onSelectionDidChange(),onContentWillChange:()=>this.options.onContentWillChange(this),onSelectionWillChange:()=>this.options.onSelectionWillChange(this),onError:this.options.onError}),this.model.setHooks({announce:(e,t,i,a)=>{var o,r;return null===(r=(o=this.options).onAnnounce)||void 0===r?void 0:r.call(o,this,t,i,a)},moveOut:(e,t)=>this.options.onMoveOutOf(this,t),tabOut:(e,t)=>this.options.onTabOutOf(this,t)}),this.options.locale.startsWith(hi().locale)||ui(this.options.locale),this.keybindings=xi(this.options.keybindings,e=>{"function"==typeof this.options.onError&&this.options.onError({code:"invalid-keybinding",arg:e.join("\n")})}),this.options.readOnly||this.onBlur();const t=this.model.root.toLatex();ua(this.model,t,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:!0,macros:this.options.macros}),ea(this)}getConfig(e){return ja(this.options,e)}getOptions(e){return ja(this.options,e)}getOption(e){return ja(this.options,e)}handleEvent(e){switch(e.type){case"focus":this.eventHandlingInProgress||(this.eventHandlingInProgress="focus",this.onFocus(),this.eventHandlingInProgress="");break;case"blur":this.eventHandlingInProgress||(this.eventHandlingInProgress="blur",this.onBlur(),this.eventHandlingInProgress="");break;case"touchstart":case"mousedown":case"pointerdown":!function(e,t){const i=e;let a,o=!1,r=!1,s=!1;if(1!==t.buttons&&0!==t.buttons)return;let n=!1,l=!1;const c=t.touches?t.touches[0].clientX:t.clientX,d=t.touches?t.touches[0].clientY:t.clientY,m=Date.now(),p=setInterval(()=>{n?i.field.scroll({top:0,left:i.field.scrollLeft-16}):l&&i.field.scroll({top:0,left:i.field.scrollLeft+16})},32);function u(e){window.PointerEvent?(_i(i.field,"pointermove",h),_i(i.field,"pointerup pointercancel",u),i.field.releasePointerCapture(e.pointerId)):(_i(i.field,"touchmove",h),_i(i.field,"touchcancel touchend",u),_i(window,"mousemove",h),_i(window,"mouseup blur",u)),o=!1,clearInterval(p),i.element.querySelectorAll(".ML__scroller").forEach(e=>e.parentNode.removeChild(e)),e.preventDefault(),e.stopPropagation()}function h(t){const o=t.touches?t.touches[0].clientX:t.clientX,s=t.touches?t.touches[0].clientY:t.clientY,p="touch"===t.pointerType?20:5;if(Date.now()u.right,n=o=f.left&&c<=f.right&&d>=f.top&&d<=f.bottom){e.hasFocus()||(s=!0,e.textarea.focus&&e.textarea.focus()),e.resetKeystrokeBuffer(),e.smartModeSuppressed=!1;const n=e.field.querySelector(".ML__mathlive").getBoundingClientRect();if(a=c>n.right?[{relation:"body",offset:e.model.root.body.length-1}]:ro(e,c,d,{bias:0}),a){let n=document.createElement("div");n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.left-200+"px",n=document.createElement("div"),n.className="ML__scroller",e.element.appendChild(n),n.style.left=f.right+"px",t.shiftKey?(ai(e.model,e.model.path,a),a=pt(e.model.path),a[a.length-1].offset-=1):Et(e.model,a,0),s=!0,e.style={},3===t.detail||oo>2?(u(t),3!==t.detail&&3!==oo||Yt(e.model)):o||(o=!0,window.PointerEvent?(ki(i.field,"pointermove",h),ki(i.field,"pointerup pointercancel",u),i.field.setPointerCapture(t.pointerId)):(ki(window,"blur",u),t.touches?(ki(t.target,"touchmove",h),ki(t.target,"touchcancel touchend",u)):(ki(window,"mousemove",h),ki(window,"mouseup",u))),2!==t.detail&&2!==oo||(r=!0,Zt(e.model)))}}else ao=null;s&&ea(e),t.preventDefault()}(this,e);break;case"resize":this.resizeTimer&&window.cancelAnimationFrame(this.resizeTimer),this.resizeTimer=window.requestAnimationFrame(()=>zi(this)&&this._onResize());break;case"cut":t=this,setTimeout(function(){t.$clearSelection(),ea(t)}.bind(t),0);break;case"copy":!function(e,t){Jt(e.model)?(t.clipboardData.setData("text/plain","$$"+e.getValue("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.getValue("json")),t.clipboardData.setData("application/xml",e.getValue("mathML"))):(t.clipboardData.setData("text/plain","$$"+e.$selectedText("latex-expanded")+"$$"),t.clipboardData.setData("application/json",e.$selectedText("json")),t.clipboardData.setData("application/xml",e.$selectedText("mathML"))),t.preventDefault()}(this,e);break;case"paste":io(this)}var t}$revertToOriginalContent(){this.dispose(),this.element.innerHTML=this.options.createHTML(this.originalContent)}dispose(){this.element.innerHTML="$$"+this.getValue()+"$$",delete this.element.mathfield,delete this.accessibleNode,delete this.ariaLiveText,delete this.field,_i(this.textarea,"cut",this),_i(this.textarea,"copy",this),_i(this.textarea,"paste",this),this.textarea.remove(),delete this.textarea,this.virtualKeyboardToggle.remove(),delete this.virtualKeyboardToggle,Mi(this.popover),delete this.popover,Mi(this.keystrokeCaption),delete this.keystrokeCaption,Mi(this.virtualKeyboard),delete this.virtualKeyboard,Mi(document.getElementById("mathlive-alternate-keys-panel")),_i(this.element,"pointerdown",this),_i(this.element,"touchstart:active mousedown",this),_i(this.element,"focus",this),_i(this.element,"blur",this),_i(window,"resize",this),delete this.element,this.stylesheets.forEach(e=>e.release())}resetKeystrokeBuffer(e){(e=null!=e?e:{defer:!1}).defer?this.options.inlineShortcutTimeout&&(this.keystrokeBufferResetTimer=setTimeout(()=>{this.resetKeystrokeBuffer()},this.options.inlineShortcutTimeout)):(this.keystrokeBuffer="",this.keystrokeBufferStates=[],clearTimeout(this.keystrokeBufferResetTimer))}_onSelectionDidChange(){!function(e){const t=Ft(e);if(t){const i=e.siblings(),a=e.anchorOffset()+1;for(let e=t.start;e=0;e--)"command"===i[e].type?i.splice(e,1):t(i[e]);else if(t(i.body),t(i.superscript),t(i.subscript),t(i.underscript),t(i.overscript),t(i.numer),t(i.denom),t(i.index),i.array)for(let e=gt(i.array);e>=0;e--)t(ft(i.array,e))}(t.root.body),t.suppressChangeNotifications=i,Tt(t)}(this.model))}qi(this,{deferred:!0}),"function"==typeof this.options.onSelectionDidChange&&this.options.onSelectionDidChange(this)}onFocus(){this.options.readOnly||this.blurred&&(this.blurred=!1,this.textarea.focus&&this.textarea.focus(),"onfocus"===this.options.virtualKeyboardMode&&xo(this),qi(this),this.options.onFocus&&this.options.onFocus(this),this.valueOnFocus=this.getValue(),ea(this))}onBlur(){this.blurred||(this.blurred=!0,this.ariaLiveText.textContent="",/onfocus|manual/.test(this.options.virtualKeyboardMode)&&ko(this),Ka(this,{discard:!0}),ea(this),"function"==typeof this.options.onBlur&&this.options.onBlur(this),"function"==typeof this.options.onCommit&&this.getValue()!==this.valueOnFocus&&this.options.onCommit(this))}_onResize(){this.element.classList.remove("ML__isNarrowWidth","ML__isWideWidth","ML__isExtendedWidth"),window.innerWidth>=1024?this.element.classList.add("ML__isExtendedWidth"):window.innerWidth>=768?this.element.classList.add("ML__isWideWidth"):this.element.classList.add("ML__isNarrowWidth"),qi(this)}$perform(e){return this.executeCommand(e)}executeCommand(t){return function(t,i){var a;if(!i)return!1;let o,r=[],s=!1,n=!1;if(e(i)?(o=i[0],r=i.slice(1)):o=i,o=o.replace(/-\w/g,e=>e[1].toUpperCase()),"model"===(null===(a=ia[o])||void 0===a?void 0:a.target)){if(/^(delete|transpose|add)/.test(o)&&"deletePreviousChar"!==o&&t.resetKeystrokeBuffer(),/^(delete|transpose|add)/.test(o)&&"command"!==t.mode&&(t.popUndoStack(),t.snapshot()),ia[o].fn(t.model,...r),/^(delete|transpose|add)/.test(o)&&"command"!==t.mode&&t.snapshot(),/^(delete)/.test(o)&&"command"===t.mode){const e=ie(Ki(t.model));0===e.length?Ti(t):$i(t,e[0].match,e.length>1)}n=!0,s=!0}else{if(!ia[o])throw Error('Unknown command "'+o+'"');n=ia[o].fn(t,...r),s=!0}return Jt(t.model)&&!/^(transpose|paste|complete|((moveToNextChar|moveToPreviousChar|extend).*))_$/.test(o)||(t.resetKeystrokeBuffer(),t.style={}),n&&ea(t),s}(this,t)}atomToString(e,t){let i="";if("latex"===(t=t||"latex")||"latex-expanded"===t)i=e.toLatex("latex-expanded"===t);else if("mathML"===t)i=Ji(e,this.options);else if("spoken"===t)i=Fa(e,this.options);else if("spoken-text"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="",i=Fa(e,this.options),this.options.textToSpeechMarkup=t}else if("spoken-ssml"===t||"spoken-ssml-withHighlighting"===t){const t=this.options.textToSpeechMarkup;this.options.textToSpeechMarkup="ssml",i=Fa(e,this.options),this.options.textToSpeechMarkup=t}else if("json"===t){const t=nr(e);i=JSON.stringify(t)}else if("json-2"===t){const t=nr(e);i=JSON.stringify(t,null,2)}else"ASCIIMath"===t&&(i=$a(e));return i}get lastPosition(){return this.model.lastPosition}get selection(){return this.model.selection}set selection(e){this.model.selection=e}$text(e){return this.atomToString(this.model.root,e)}getValue(e,t,i){if(void 0===e)return this.atomToString(this.model.root,"latex");let a,o;if("string"==typeof e)return a=e,this.atomToString(this.model.root,a);"number"==typeof e&&"number"==typeof t?(o=[{start:e,end:t}],a=null!=i?i:"latex"):o=Array.isArray(e)?e:[e];const r=new ya(this.model.root);return o.map(e=>{let t="";if((e=lt(r,e,{accessibleAtomsOnly:!0})).start>=0&&!e.collapsed){const i=r.at(e.start).depth;for(let a=e.start+1;a<=e.end;a++)r.at(a).depth===i&&(t+=this.atomToString(r.at(a).atom,"latex"))}return t}).join("")}setValue(e,t){e!==this.getValue()&&(t=null!=t?t:{mode:"math"},ua(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),ea(this))}$selectedText(e){const t=Gt(this.model);return t?this.atomToString(je("math",t),e):""}$selectionIsCollapsed(){return Jt(this.model)}$selectionDepth(){return this.model.path.length}$selectionAtStart(){return!1}$selectionAtEnd(){return!1}$latex(e,t){return"string"==typeof e?(e!==this.model.root.toLatex()&&(t=null!=t?t:{mode:"math"},ua(this.model,e,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",mode:"math",suppressChangeNotifications:t.suppressChangeNotifications,macros:this.options.macros}),this.undoManager.snapshot(this.options),ea(this)),e):this.model.root.toLatex()}$el(){return this.element}scrollIntoView(){var e;this.dirty&&ta(this);let t=null===(e=Si(this.field))||void 0===e?void 0:e.x;const i=this.field.getBoundingClientRect();if(void 0===t){const e=Li(this.field);null!==e&&(t=e.right+i.left-this.field.scrollLeft)}if(void 0!==t){const e=t-window.scrollX;ei.right&&this.field.scroll({top:0,left:e-i.right+this.field.scrollLeft+20,behavior:"smooth"})}}$insert(e,t){return this.insert(e,t)}insert(e,t){if("string"==typeof e&&e.length>0){if((t=null!=t?t:{mode:"math"}).focus&&this.focus(),t.feedback&&(this.options.keypressVibration&&(null===navigator||void 0===navigator?void 0:navigator.vibrate)&&navigator.vibrate(3),this.keypressSound&&(this.keypressSound.load(),this.keypressSound.play())),"\\\\"===e)na(this.model);else if("&"===e)la(this.model);else{const i=this.style;ua(this.model,e,{mode:this.mode,style:Bt(this.model),...t}),t.resetStyle&&(this.style=i)}return this.undoManager.snapshot(this.options),ea(this),!0}return!1}switchMode(e,t="",i=""){this.resetKeystrokeBuffer(),this.smartModeSuppressed=/text|math/.test(this.mode)&&/text|math/.test(e),t&&this.insert(t,{format:"latex",mode:{math:"text",text:"math"}[e]}),Ei(this.model,!1),"command"===e?(st(this.model),Ti(this),this.suggestionIndex=0,this.virtualKeyboardVisible&&vo(this,"lower-command"),ua(this.model,"",{mode:"math"})):this.mode=e,i&&this.insert(i,{format:"latex",mode:e}),"function"==typeof this.options.onModeChange&&this.options.onModeChange(this,this.mode),ea(this)}$hasFocus(){return this.hasFocus()}hasFocus(){return document.hasFocus()&&function e(t=document){var i,a;return(null===(a=null===(i=t.activeElement)||void 0===i?void 0:i.shadowRoot)||void 0===a?void 0:a.activeElement)?e(t.activeElement.shadowRoot):t.activeElement}(document)===this.textarea}focus(){this.hasFocus()||("function"==typeof this.textarea.focus&&this.textarea.focus(),this.model.announce("line"))}blur(){this.hasFocus()&&"function"==typeof this.textarea.blur&&this.textarea.blur()}$focus(){return this.focus()}$blur(){return this.blur()}$select(){Yt(this.model)}select(){Yt(this.model)}$clearSelection(){da(this.model)}applyStyle(e){ma(this.model,e)}$applyStyle(e){ma(this.model,e)}$keystroke(e,t){return Ja(this,e,t)}$typedText(e){Qa(this,e)}getCaretPosition(){const e=Si(this.field);return e?{x:e.x,y:e.y}:null}setCaretPosition(e,t){const i=this.model.clone(),a=ro(this,e,t,{bias:0}),o=Et(this.model,a,0);return this.model.announce("move",i),ea(this),o}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(){this.undoManager.snapshot({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}snapshotAndCoalesce(){this.undoManager.snapshotAndCoalesce({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}getUndoRecord(){return this.undoManager.save()}restoreToUndoRecord(e){this.undoManager.restore(e,{...this.options,suppressChangeNotifications:!0})}undo(){return this.undoManager.undo({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}redo(){return this.undoManager.redo({...this.options,onUndoStateDidChange:(e,t)=>{bo(this),this.options.onUndoStateDidChange(e,t)}})}}function ur(e,t,i){let a=i,o=0;const r=e.length;for(;a0&&o.push({type:"text",data:s.slice(0,c)}),l=!1);let d=!1;for(;!d;){if(l){if(n=s.indexOf(t,c),-1===n){d=!0;break}c!==n&&o.push({type:"text",data:s.slice(c,n)}),c=n}else{if(n=ur(i,s,c+t.length),-1===n){d=!0;break}o.push({type:"math",data:s.slice(c+t.length,n),rawData:s.slice(c,n+i.length),mathstyle:a}),c=n+i.length}l=!l}c";i.innerHTML=t.createHTML?t.createHTML(a):a}catch(t){i.textContent=e}return i.className="ML__sr-only",i}(e,i)),/\bspeakable-text\b/i.test(i.renderAccessibleContent)&&i.renderToSpeakableText){const a=document.createElement("span"),o=i.renderToSpeakableText(e,i);a.innerHTML=i.createHTML?i.createHTML(o):o,a.className="ML__sr-only",t.appendChild(a)}return t.appendChild(o),t}return o}function yr(e,t){let i=null;if(t.TeX.processEnvironments&&/^\s*\\begin/.test(e))i=document.createDocumentFragment(),i.appendChild(gr(e,void 0,t,!0));else{if(!e.trim())return null;const a=fr(e,t.TeX.delimiters);if(1===a.length&&"text"===a[0].type)return null;i=document.createDocumentFragment();for(let e=0;e0?vr(e[t].children,i):e[t];if("string"==typeof t){for(let o=0;o0?vr(e[o].children,i):e[o];if(a=vr(e[o].children,t),a)return a}return a}return null}function xr(e,t){var i;const a=vr(e,t);return a?null!==(i=a.classes)&&void 0!==i?i:"":null}function kr(e,t){let i="";return e[t]&&(i+=''+t+"=",i+='',i+=e[t],i+='" '),i}var _r,wr={mathlistToMarkup:function e(t,i=""){if(!t)return"";let a="";if(Array.isArray(t))for(let o=0;o"),"string"==typeof t.body&&t.body.length>0&&(a+=' ',a+=t.body,(t.body.charCodeAt(0)<32||t.body.charCodeAt(0)>127)&&(a+=" U+"+("000000"+t.body.charCodeAt(0).toString(16)).substr(-6)),a+=" "),"mathrm"===t.fontFamily?(a+='',a+=kr(t,"fontFamily"),a+=""):a+=kr(t,"fontFamily"),a+=kr(t,"hasBarLine"),a+=kr(t,"leftDelim"),a+=kr(t,"rightDelim"),a+=kr(t,"continuousFraction"),a+=kr(t,"limits"),a+=kr(t,"symbol"),a+=function(e,t){let i="";return e[t]&&(i+='framecolor=',i+='',i+='',i+=e[t],i+=""),i}(t,"framecolor"),a+=kr(t,"mathstyle"),a+=kr(t,"size"),a+=kr(t,"cls"),a+=kr(t,"delim"),a+=kr(t,"shift"),a+=kr(t,"width"),a+=kr(t,"height"),a+=kr(t,"position"),a+=e(t.overscript,i+"↑"),a+=e(t.underscript,i+"↓"),a+=e(t.superscript,i+"↑"),a+=e(t.subscript,i+"↓"),a+=e(t.body,i+"▶"),a+=e(t.numer,i+"▲"),a+=e(t.denom,i+"▼"),t.array)for(let o=0;o"+i+"⌗ row "+(o+1)+"/"+t.array.length;for(let r=0;r"),t.body&&t.body.length>0&&(a+=''+t.body+""),t.classes&&t.classes.length>0&&(a+=' '+t.classes+""),t.isTight&&(a+='  tight '),t.caret&&(a+='  caret '),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=' '+e+":",a+=' '+t.style[e]+"; ");t.children&&(a+=t.children.map(t=>e(t,i+"▷")).join("; "))}return a},spanToString:function e(t,i=""){let a="";if(Array.isArray(t))if(0===t.length)a+="[]\n";else{a+="[\n";for(let o=0;o0&&(a+=i+'body:"'+t.body+'",\n'),t.classes&&t.classes.length>0&&(a+=i+'classes:"'+t.classes+'",\n'),t.style)for(const e in t.style)Object.prototype.hasOwnProperty.call(t.style,e)&&(a+=i+e+':"',a+=t.style[e]+'",\n');t.children&&t.children.length>0&&(a+=i+"children:"+t.children.map(t=>e(t,i)).join("; ")),a+=i+"}"}return a},hasClass:function(e,t,i){const a=xr(e,t);if(!a)return!1;const o=a.split(" ");for(let e=0;e{if(e)return;if(!t||!t.AudioStream)return;const i=new TextDecoder("utf-8").decode(new Uint8Array(t.AudioStream));window.mathlive.readAloudMarks=i.split("\n").map(e=>e?JSON.parse(e):{}),window.mathlive.readAloudTokens=[];for(const e of window.mathlive.readAloudMarks)e.value&&window.mathlive.readAloudTokens.push(e.value);window.mathlive.readAloudCurrentMark="",r.OutputFormat="mp3",r.SpeechMarkTypes=[],o.synthesizeSpeech(r,(function(e,t){if(e)return;if(!t||!t.AudioStream)return;const i=new Uint8Array(t.AudioStream),a=new Blob([i.buffer],{type:"audio/mpeg"}),o=URL.createObjectURL(a);window.mathlive.readAloudAudio?window.mathlive.readAloudAudio.pause():(window.mathlive.readAloudAudio=new Audio,window.mathlive.readAloudAudio.addEventListener("ended",()=>{const e=window.mathlive.readAloudMathField;s&&s(e,"ended"),e?(ta(e),window.mathlive.readAloudElement=null,window.mathlive.readAloudMathField=null,window.mathlive.readAloudTokens=[],window.mathlive.readAloudMarks=[],window.mathlive.readAloudCurrentMark=""):function e(t){if(t.classList.remove("ML__highlight"),t.children)for(const i of t.children)e(i)}(window.mathlive.readAloudElement)}),window.mathlive.readAloudAudio.addEventListener("timeupdate",()=>{let e="";const t=1e3*window.mathlive.readAloudAudio.currentTime+100;for(const i of window.mathlive.readAloudMarks)i.time0&&Array.from(t.children).forEach(t=>{e(t,i)})):(t.classList.add("ML__highlight"),t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{e(t)}))}(window.mathlive.readAloudElement,window.mathlive.readAloudCurrentMark)))})),window.mathlive.readAloudAudio.src=o,s&&s(window.mathlive.readAloudMathField,"playing"),window.mathlive.readAloudAudio.play()}))})}function zr(e,t,i=3e3,a="$0"){t.forEach(t=>{K[t]&&(K[t].frequency=i,K[t].category=e,K[t].template=a.replace(/\$0/g,t)),N[t]&&(N[t]={...N[t],frequency:i,category:e,template:a.replace(/\$0/g,t)})})} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/dist/mathlive.mjs b/dist/mathlive.mjs index aab940185..a82c7b20d 100644 --- a/dist/mathlive.mjs +++ b/dist/mathlive.mjs @@ -18511,7 +18511,7 @@ const DEFAULT_KEYBINDINGS = [ { key: 'ctrl+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, { key: 'cmd+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, { key: 'ctrl+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, - { key: 'cmd+shift[Comma]', ifMode: 'math', command: 'addColumnAfter' }, + { key: 'cmd+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, // Excel keybindings: // shift+space: select entire row, ctrl+space: select an entire column // ctrl+shift++ or ctrl+numpad+ @@ -33160,6 +33160,17 @@ const gDeferredState = new WeakMap(); * | `--text-font-family` | The font stack used in text mode | * | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel | * + * ### CSS Parts + * + * The `virtual-keyboard-toggle` CSS part can be used to style the virtual + * keyboard toggle. To use it, define a CSS style with a `::part()` selector + * for example: + * ```css + * math-field::part(virtual-keyboard-toggle) { + * color: red; + * } + * ``` + * * * ### Attributes * diff --git a/dist/public/mathfield-element.d.ts b/dist/public/mathfield-element.d.ts index 53912d71c..a3377cbaf 100644 --- a/dist/public/mathfield-element.d.ts +++ b/dist/public/mathfield-element.d.ts @@ -91,6 +91,17 @@ declare global { * | `--text-font-family` | The font stack used in text mode | * | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel | * + * ### CSS Parts + * + * The `virtual-keyboard-toggle` CSS part can be used to style the virtual + * keyboard toggle. To use it, define a CSS style with a `::part()` selector + * for example: + * ```css + * math-field::part(virtual-keyboard-toggle) { + * color: red; + * } + * ``` + * * * ### Attributes * diff --git a/src/editor/keybindings-definitions.ts b/src/editor/keybindings-definitions.ts index 4ed1652e1..56b2cbc0f 100644 --- a/src/editor/keybindings-definitions.ts +++ b/src/editor/keybindings-definitions.ts @@ -211,7 +211,7 @@ export const DEFAULT_KEYBINDINGS: Keybinding[] = [ { key: 'ctrl+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, { key: 'cmd+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, { key: 'ctrl+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, - { key: 'cmd+shift[Comma]', ifMode: 'math', command: 'addColumnAfter' }, + { key: 'cmd+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' }, // Excel keybindings: // shift+space: select entire row, ctrl+space: select an entire column diff --git a/src/public/mathfield-element.ts b/src/public/mathfield-element.ts index 718919d65..15086ad91 100644 --- a/src/public/mathfield-element.ts +++ b/src/public/mathfield-element.ts @@ -158,6 +158,17 @@ const gDeferredState = new WeakMap< * | `--text-font-family` | The font stack used in text mode | * | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel | * + * ### CSS Parts + * + * The `virtual-keyboard-toggle` CSS part can be used to style the virtual + * keyboard toggle. To use it, define a CSS style with a `::part()` selector + * for example: + * ```css + * math-field::part(virtual-keyboard-toggle) { + * color: red; + * } + * ``` + * * * ### Attributes *