import {
i as pC,
a as hC,
b as gC,
c as fC,
d as EC,
g as SC,
e as bC,
f as TC,
h as jr,
j as fr,
k as El,
l as vC,
m as ua,
n as sn,
u as tm,
o as Pi,
p as CC,
q as dt,
r as rm,
s as Tt,
t as St,
v as yC,
N as RC,
w as XS,
x as JS,
y as AC,
z as NC,
A as OC,
B as Br,
C as IC,
E as xC,
W as DC,
I as wC,
S as MC,
D as LC,
F as kC,
G as PC,
H as BC,
J as FC,
K as I_,
V as UC,
L as GC,
M as qC,
O as nm,
P as YC,
T as zC,
Q as jS,
R as HC,
U as $C,
X as VC,
Y as WC,
Z as KC,
_ as QC,
$ as bi,
a0 as ZC,
a1 as XC,
a2 as JC,
a3 as jC,
a4 as as,
a5 as ey,
a6 as ty,
a7 as ry,
a8 as x_,
a9 as ny,
aa as iy,
ab as ay,
ac as oy,
ad as sy,
ae as m0,
af as ly,
ag as at,
ah as wt,
ai as he,
aj as Er,
ak as im,
al as Ve,
am,
an as cy,
ao as Nt,
ap as om,
aq as Ur,
ar as uy,
as as eb,
at as Gr,
au as xr,
av as rr,
aw as os,
ax as bt,
ay as Ir,
az as dy,
aA as lr,
aB as tb,
aC as vo,
aD as xa,
aE as rb,
aF as da,
aG as _y,
aH as nb,
aI as my,
aJ as py,
aK as hy,
aL as ib,
aM as D_,
aN as w_,
aO as gy,
aP as fy,
aQ as Ey,
aR as Sy,
aS as p0,
aT as by,
aU as Ty,
aV as vy,
aW as Cy,
aX as yy,
aY as Ry,
} from './index-9c042f98.js';
import { _ as ab } from './_plugin-vue_export-helper-c27b6911.js';
var Ay = '[object Map]',
Ny = '[object Set]',
Oy = Object.prototype,
Iy = Oy.hasOwnProperty;
function Sl(t) {
if (t == null) return !0;
if (pC(t) && (hC(t) || typeof t == 'string' || typeof t.splice == 'function' || gC(t) || fC(t) || EC(t))) return !t.length;
var e = SC(t);
if (e == Ay || e == Ny) return !t.size;
if (bC(t)) return !TC(t).length;
for (var r in t) if (Iy.call(t, r)) return !1;
return !0;
}
const xy = jr(
'alert',
`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,
[
fr(
'border',
`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`
),
El('closable', [
jr('alert-body', [
fr(
'title',
`
padding-right: 24px;
`
),
]),
]),
fr('icon', { color: 'var(--n-icon-color)' }),
jr('alert-body', { padding: 'var(--n-padding)' }, [
fr('title', { color: 'var(--n-title-text-color)' }),
fr('content', { color: 'var(--n-content-text-color)' }),
]),
vC({ originalTransition: 'transform .3s var(--n-bezier)', enterToProps: { transform: 'scale(1)' }, leaveToProps: { transform: 'scale(0.9)' } }),
fr(
'icon',
`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`
),
fr(
'close',
`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`
),
El('show-icon', [jr('alert-body', { paddingLeft: 'calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))' })]),
El('right-adjust', [jr('alert-body', { paddingRight: 'calc(var(--n-close-size) + var(--n-padding) + 2px)' })]),
jr(
'alert-body',
`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,
[
fr(
'title',
`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,
[ua('& +', [fr('content', { marginTop: '9px' })])]
),
fr('content', { transition: 'color .3s var(--n-bezier)', fontSize: 'var(--n-font-size)' }),
]
),
fr('icon', { transition: 'color .3s var(--n-bezier)' }),
]
),
Dy = Object.assign(Object.assign({}, Pi.props), {
title: String,
showIcon: { type: Boolean, default: !0 },
type: { type: String, default: 'default' },
bordered: { type: Boolean, default: !0 },
closable: Boolean,
onClose: Function,
onAfterLeave: Function,
onAfterHide: Function,
}),
wy = sn({
name: 'Alert',
inheritAttrs: !1,
props: Dy,
slots: Object,
setup(t) {
const { mergedClsPrefixRef: e, mergedBorderedRef: r, inlineThemeDisabled: n, mergedRtlRef: i } = tm(t),
a = Pi('Alert', '-alert', xy, NC, t, e),
l = CC('Alert', i, e),
u = dt(() => {
const {
common: { cubicBezierEaseInOut: v },
self: R,
} = a.value,
{
fontSize: O,
borderRadius: M,
titleFontWeight: w,
lineHeight: D,
iconSize: F,
iconMargin: Y,
iconMarginRtl: z,
closeIconSize: G,
closeBorderRadius: X,
closeSize: ne,
closeMargin: ce,
closeMarginRtl: j,
padding: Q,
} = R,
{ type: Ae } = t,
{ left: Oe, right: H } = OC(Y);
return {
'--n-bezier': v,
'--n-color': R[Br('color', Ae)],
'--n-close-icon-size': G,
'--n-close-border-radius': X,
'--n-close-color-hover': R[Br('closeColorHover', Ae)],
'--n-close-color-pressed': R[Br('closeColorPressed', Ae)],
'--n-close-icon-color': R[Br('closeIconColor', Ae)],
'--n-close-icon-color-hover': R[Br('closeIconColorHover', Ae)],
'--n-close-icon-color-pressed': R[Br('closeIconColorPressed', Ae)],
'--n-icon-color': R[Br('iconColor', Ae)],
'--n-border': R[Br('border', Ae)],
'--n-title-text-color': R[Br('titleTextColor', Ae)],
'--n-content-text-color': R[Br('contentTextColor', Ae)],
'--n-line-height': D,
'--n-border-radius': M,
'--n-font-size': O,
'--n-title-font-weight': w,
'--n-icon-size': F,
'--n-icon-margin': Y,
'--n-icon-margin-rtl': z,
'--n-close-size': ne,
'--n-close-margin': ce,
'--n-close-margin-rtl': j,
'--n-padding': Q,
'--n-icon-margin-left': Oe,
'--n-icon-margin-right': H,
};
}),
d = n
? rm(
'alert',
dt(() => t.type[0]),
u,
t
)
: void 0,
m = Tt(!0),
p = () => {
const { onAfterLeave: v, onAfterHide: R } = t;
v && v(), R && R();
};
return {
rtlEnabled: l,
mergedClsPrefix: e,
mergedBordered: r,
visible: m,
handleCloseClick: () => {
var v;
Promise.resolve((v = t.onClose) === null || v === void 0 ? void 0 : v.call(t)).then((R) => {
R !== !1 && (m.value = !1);
});
},
handleAfterLeave: () => {
p();
},
mergedTheme: a,
cssVars: n ? void 0 : u,
themeClass: d == null ? void 0 : d.themeClass,
onRender: d == null ? void 0 : d.onRender,
};
},
render() {
var t;
return (
(t = this.onRender) === null || t === void 0 || t.call(this),
St(
AC,
{ onAfterLeave: this.handleAfterLeave },
{
default: () => {
const { mergedClsPrefix: e, $slots: r } = this,
n = {
class: [
`${e}-alert`,
this.themeClass,
this.closable && `${e}-alert--closable`,
this.showIcon && `${e}-alert--show-icon`,
!this.title && this.closable && `${e}-alert--right-adjust`,
this.rtlEnabled && `${e}-alert--rtl`,
],
style: this.cssVars,
role: 'alert',
};
return this.visible
? St(
'div',
Object.assign({}, yC(this.$attrs, n)),
this.closable && St(RC, { clsPrefix: e, class: `${e}-alert__close`, onClick: this.handleCloseClick }),
this.bordered && St('div', { class: `${e}-alert__border` }),
this.showIcon &&
St(
'div',
{ class: `${e}-alert__icon`, 'aria-hidden': 'true' },
XS(r.icon, () => [
St(
IC,
{ clsPrefix: e },
{
default: () => {
switch (this.type) {
case 'success':
return St(MC, null);
case 'info':
return St(wC, null);
case 'warning':
return St(DC, null);
case 'error':
return St(xC, null);
default:
return null;
}
},
}
),
])
),
St(
'div',
{ class: [`${e}-alert-body`, this.mergedBordered && `${e}-alert-body--bordered`] },
JS(r.header, (i) => {
const a = i || this.title;
return a ? St('div', { class: `${e}-alert-body__title` }, a) : null;
}),
r.default && St('div', { class: `${e}-alert-body__content` }, r)
)
)
: null;
},
}
)
);
},
}),
My = ua([
jr(
'auto-complete',
`
z-index: auto;
position: relative;
display: inline-flex;
width: 100%;
`
),
jr(
'auto-complete-menu',
`
margin: 4px 0;
box-shadow: var(--n-menu-box-shadow);
`,
[LC({ originalTransition: 'background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)' })]
),
]);
function Ly(t) {
return t.map(ob);
}
function ob(t) {
var e, r;
return typeof t == 'string'
? { label: t, value: t }
: t.type === 'group'
? {
type: 'group',
label: (e = t.label) !== null && e !== void 0 ? e : t.name,
value: (r = t.value) !== null && r !== void 0 ? r : t.name,
key: t.key || t.name,
children: t.children.map((i) => ob(i)),
}
: t;
}
const ky = Object.assign(Object.assign({}, Pi.props), {
to: I_.propTo,
menuProps: Object,
append: Boolean,
bordered: { type: Boolean, default: void 0 },
clearable: { type: Boolean, default: void 0 },
defaultValue: { type: String, default: null },
loading: { type: Boolean, default: void 0 },
disabled: { type: Boolean, default: void 0 },
placeholder: String,
placement: { type: String, default: 'bottom-start' },
value: String,
blurAfterSelect: Boolean,
clearAfterSelect: Boolean,
getShow: Function,
showEmpty: Boolean,
inputProps: Object,
renderOption: Function,
renderLabel: Function,
size: String,
options: { type: Array, default: () => [] },
zIndex: Number,
status: String,
'onUpdate:value': [Function, Array],
onUpdateValue: [Function, Array],
onSelect: [Function, Array],
onBlur: [Function, Array],
onFocus: [Function, Array],
onInput: [Function, Array],
}),
Py = sn({
name: 'AutoComplete',
props: ky,
slots: Object,
setup(t) {
const { mergedBorderedRef: e, namespaceRef: r, mergedClsPrefixRef: n, inlineThemeDisabled: i } = tm(t),
a = kC(t),
{ mergedSizeRef: l, mergedDisabledRef: u, mergedStatusRef: d } = a,
m = Tt(null),
p = Tt(null),
E = Tt(t.defaultValue),
f = PC(t, 'value'),
v = BC(f, E),
R = Tt(!1),
O = Tt(!1),
M = Pi('AutoComplete', '-auto-complete', My, VC, t, n),
w = dt(() => Ly(t.options)),
D = dt(() => {
const { getShow: te } = t;
return te ? te(v.value || '') : !!v.value;
}),
F = dt(() => D.value && R.value && (t.showEmpty ? !0 : !!w.value.length)),
Y = dt(() => WC(w.value, QC('value', 'children')));
function z(te) {
const { 'onUpdate:value': be, onUpdateValue: De, onInput: we } = t,
{ nTriggerFormInput: We, nTriggerFormChange: je } = a;
De && bi(De, te), be && bi(be, te), we && bi(we, te), (E.value = te), We(), je();
}
function G(te) {
const { onSelect: be } = t,
{ nTriggerFormInput: De, nTriggerFormChange: we } = a;
be && bi(be, te), De(), we();
}
function X(te) {
const { onBlur: be } = t,
{ nTriggerFormBlur: De } = a;
be && bi(be, te), De();
}
function ne(te) {
const { onFocus: be } = t,
{ nTriggerFormFocus: De } = a;
be && bi(be, te), De();
}
function ce() {
O.value = !0;
}
function j() {
window.setTimeout(() => {
O.value = !1;
}, 0);
}
function Q(te) {
var be, De, we;
switch (te.key) {
case 'Enter':
if (!O.value) {
const We = (be = p.value) === null || be === void 0 ? void 0 : be.getPendingTmNode();
We && (Ae(We.rawNode), te.preventDefault());
}
break;
case 'ArrowDown':
(De = p.value) === null || De === void 0 || De.next();
break;
case 'ArrowUp':
(we = p.value) === null || we === void 0 || we.prev();
break;
}
}
function Ae(te) {
(te == null ? void 0 : te.value) !== void 0 &&
(G(te.value),
t.clearAfterSelect ? z(null) : te.label !== void 0 && z(t.append ? `${v.value}${te.label}` : te.label),
(R.value = !1),
t.blurAfterSelect && se());
}
function Oe() {
z(null);
}
function H(te) {
(R.value = !0), ne(te);
}
function re(te) {
(R.value = !1), X(te);
}
function P(te) {
(R.value = !0), z(te);
}
function K(te) {
Ae(te.rawNode);
}
function Z(te) {
var be;
(!((be = m.value) === null || be === void 0) && be.contains(KC(te))) || (R.value = !1);
}
function se() {
var te, be;
!((te = m.value) === null || te === void 0) &&
te.contains(document.activeElement) &&
((be = document.activeElement) === null || be === void 0 || be.blur());
}
const le = dt(() => {
const {
common: { cubicBezierEaseInOut: te },
self: { menuBoxShadow: be },
} = M.value;
return { '--n-menu-box-shadow': be, '--n-bezier': te };
}),
ae = i ? rm('auto-complete', void 0, le, t) : void 0,
ye = Tt(null),
ze = {
focus: () => {
var te;
(te = ye.value) === null || te === void 0 || te.focus();
},
blur: () => {
var te;
(te = ye.value) === null || te === void 0 || te.blur();
},
};
return {
focus: ze.focus,
blur: ze.blur,
inputInstRef: ye,
uncontrolledValue: E,
mergedValue: v,
isMounted: FC(),
adjustedTo: I_(t),
menuInstRef: p,
triggerElRef: m,
treeMate: Y,
mergedSize: l,
mergedDisabled: u,
active: F,
mergedStatus: d,
handleClear: Oe,
handleFocus: H,
handleBlur: re,
handleInput: P,
handleToggle: K,
handleClickOutsideMenu: Z,
handleCompositionStart: ce,
handleCompositionEnd: j,
handleKeyDown: Q,
mergedTheme: M,
cssVars: i ? void 0 : le,
themeClass: ae == null ? void 0 : ae.themeClass,
onRender: ae == null ? void 0 : ae.onRender,
mergedBordered: e,
namespace: r,
mergedClsPrefix: n,
};
},
render() {
const { mergedClsPrefix: t } = this;
return St(
'div',
{
class: `${t}-auto-complete`,
ref: 'triggerElRef',
onKeydown: this.handleKeyDown,
onCompositionstart: this.handleCompositionStart,
onCompositionend: this.handleCompositionEnd,
},
St(UC, null, {
default: () => [
St(GC, null, {
default: () => {
const e = this.$slots.default;
if (e)
return qC('default', e, {
handleInput: this.handleInput,
handleFocus: this.handleFocus,
handleBlur: this.handleBlur,
value: this.mergedValue,
});
const { mergedTheme: r } = this;
return St(
nm,
{
ref: 'inputInstRef',
status: this.mergedStatus,
theme: r.peers.Input,
themeOverrides: r.peerOverrides.Input,
bordered: this.mergedBordered,
value: this.mergedValue,
placeholder: this.placeholder,
size: this.mergedSize,
disabled: this.mergedDisabled,
clearable: this.clearable,
loading: this.loading,
inputProps: this.inputProps,
onClear: this.handleClear,
onFocus: this.handleFocus,
onUpdateValue: this.handleInput,
onBlur: this.handleBlur,
},
{
suffix: () => {
var n, i;
return (i = (n = this.$slots).suffix) === null || i === void 0 ? void 0 : i.call(n);
},
prefix: () => {
var n, i;
return (i = (n = this.$slots).prefix) === null || i === void 0 ? void 0 : i.call(n);
},
}
);
},
}),
St(
YC,
{
show: this.active,
to: this.adjustedTo,
containerClass: this.namespace,
zIndex: this.zIndex,
teleportDisabled: this.adjustedTo === I_.tdkey,
placement: this.placement,
width: 'target',
},
{
default: () =>
St(
zC,
{ name: 'fade-in-scale-up-transition', appear: this.isMounted },
{
default: () => {
var e;
if (((e = this.onRender) === null || e === void 0 || e.call(this), !this.active)) return null;
const { menuProps: r } = this;
return jS(
St(
$C,
Object.assign({}, r, {
clsPrefix: t,
ref: 'menuInstRef',
theme: this.mergedTheme.peers.InternalSelectMenu,
themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu,
'auto-pending': !0,
class: [`${t}-auto-complete-menu`, this.themeClass, r == null ? void 0 : r.class],
style: [r == null ? void 0 : r.style, this.cssVars],
treeMate: this.treeMate,
multiple: !1,
renderLabel: this.renderLabel,
renderOption: this.renderOption,
size: 'medium',
onToggle: this.handleToggle,
}),
{
empty: () => {
var n, i;
return (i = (n = this.$slots).empty) === null || i === void 0 ? void 0 : i.call(n);
},
}
),
[[HC, this.handleClickOutsideMenu, void 0, { capture: !0 }]]
);
},
}
),
}
),
],
})
);
},
}),
By = ZC && 'loading' in document.createElement('img');
function Fy(t = {}) {
var e;
const { root: r = null } = t;
return {
hash: `${t.rootMargin || '0px 0px 0px 0px'}-${
Array.isArray(t.threshold) ? t.threshold.join(',') : (e = t.threshold) !== null && e !== void 0 ? e : '0'
}`,
options: Object.assign(Object.assign({}, t), { root: (typeof r == 'string' ? document.querySelector(r) : r) || document.documentElement }),
};
}
const bl = new WeakMap(),
Tl = new WeakMap(),
vl = new WeakMap(),
Uy = (t, e, r) => {
if (!t) return () => {};
const n = Fy(e),
{ root: i } = n.options;
let a;
const l = bl.get(i);
l ? (a = l) : ((a = new Map()), bl.set(i, a));
let u, d;
a.has(n.hash)
? ((d = a.get(n.hash)), d[1].has(t) || ((u = d[0]), d[1].add(t), u.observe(t)))
: ((u = new IntersectionObserver((E) => {
E.forEach((f) => {
if (f.isIntersecting) {
const v = Tl.get(f.target),
R = vl.get(f.target);
v && v(), R && (R.value = !0);
}
});
}, n.options)),
u.observe(t),
(d = [u, new Set([t])]),
a.set(n.hash, d));
let m = !1;
const p = () => {
m ||
(Tl.delete(t),
vl.delete(t),
(m = !0),
d[1].has(t) && (d[0].unobserve(t), d[1].delete(t)),
d[1].size <= 0 && a.delete(n.hash),
a.size || bl.delete(i));
};
return Tl.set(t, p), vl.set(t, r), p;
},
Gy = XC('n-avatar-group'),
qy = jr(
'avatar',
`
width: var(--n-merged-size);
height: var(--n-merged-size);
color: #FFF;
font-size: var(--n-font-size);
display: inline-flex;
position: relative;
overflow: hidden;
text-align: center;
border: var(--n-border);
border-radius: var(--n-border-radius);
--n-merged-color: var(--n-color);
background-color: var(--n-merged-color);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,
[
JC(ua('&', '--n-merged-color: var(--n-color-modal);')),
jC(ua('&', '--n-merged-color: var(--n-color-popover);')),
ua(
'img',
`
width: 100%;
height: 100%;
`
),
fr(
'text',
`
white-space: nowrap;
display: inline-block;
position: absolute;
left: 50%;
top: 50%;
`
),
jr(
'icon',
`
vertical-align: bottom;
font-size: calc(var(--n-merged-size) - 6px);
`
),
fr('text', 'line-height: 1.25'),
]
),
Yy = Object.assign(Object.assign({}, Pi.props), {
size: [String, Number],
src: String,
circle: { type: Boolean, default: void 0 },
objectFit: String,
round: { type: Boolean, default: void 0 },
bordered: { type: Boolean, default: void 0 },
onError: Function,
fallbackSrc: String,
intersectionObserverOptions: Object,
lazy: Boolean,
onLoad: Function,
renderPlaceholder: Function,
renderFallback: Function,
imgProps: Object,
color: String,
}),
h0 = sn({
name: 'Avatar',
props: Yy,
slots: Object,
setup(t) {
const { mergedClsPrefixRef: e, inlineThemeDisabled: r } = tm(t),
n = Tt(!1);
let i = null;
const a = Tt(null),
l = Tt(null),
u = () => {
const { value: D } = a;
if (D && (i === null || i !== D.innerHTML)) {
i = D.innerHTML;
const { value: F } = l;
if (F) {
const { offsetWidth: Y, offsetHeight: z } = F,
{ offsetWidth: G, offsetHeight: X } = D,
ne = 0.9,
ce = Math.min((Y / G) * ne, (z / X) * ne, 1);
D.style.transform = `translateX(-50%) translateY(-50%) scale(${ce})`;
}
}
},
d = x_(Gy, null),
m = dt(() => {
const { size: D } = t;
if (D) return D;
const { size: F } = d || {};
return F || 'medium';
}),
p = Pi('Avatar', '-avatar', qy, ny, t, e),
E = x_(iy, null),
f = dt(() => {
if (d) return !0;
const { round: D, circle: F } = t;
return D !== void 0 || F !== void 0 ? D || F : E ? E.roundRef.value : !1;
}),
v = dt(() => (d ? !0 : t.bordered || !1)),
R = dt(() => {
const D = m.value,
F = f.value,
Y = v.value,
{ color: z } = t,
{
self: { borderRadius: G, fontSize: X, color: ne, border: ce, colorModal: j, colorPopover: Q },
common: { cubicBezierEaseInOut: Ae },
} = p.value;
let Oe;
return (
typeof D == 'number' ? (Oe = `${D}px`) : (Oe = p.value.self[Br('height', D)]),
{
'--n-font-size': X,
'--n-border': Y ? ce : 'none',
'--n-border-radius': F ? '50%' : G,
'--n-color': z || ne,
'--n-color-modal': z || j,
'--n-color-popover': z || Q,
'--n-bezier': Ae,
'--n-merged-size': `var(--n-avatar-size-override, ${Oe})`,
}
);
}),
O = r
? rm(
'avatar',
dt(() => {
const D = m.value,
F = f.value,
Y = v.value,
{ color: z } = t;
let G = '';
return D && (typeof D == 'number' ? (G += `a${D}`) : (G += D[0])), F && (G += 'b'), Y && (G += 'c'), z && (G += ay(z)), G;
}),
R,
t
)
: void 0,
M = Tt(!t.lazy);
as(() => {
if (t.lazy && t.intersectionObserverOptions) {
let D;
const F = ey(() => {
D == null || D(), (D = void 0), t.lazy && (D = Uy(l.value, t.intersectionObserverOptions, M));
});
ty(() => {
F(), D == null || D();
});
}
}),
ry(
() => {
var D;
return t.src || ((D = t.imgProps) === null || D === void 0 ? void 0 : D.src);
},
() => {
n.value = !1;
}
);
const w = Tt(!t.lazy);
return {
textRef: a,
selfRef: l,
mergedRoundRef: f,
mergedClsPrefix: e,
fitTextTransform: u,
cssVars: r ? void 0 : R,
themeClass: O == null ? void 0 : O.themeClass,
onRender: O == null ? void 0 : O.onRender,
hasLoadError: n,
shouldStartLoading: M,
loaded: w,
mergedOnError: (D) => {
if (!M.value) return;
n.value = !0;
const { onError: F, imgProps: { onError: Y } = {} } = t;
F == null || F(D), Y == null || Y(D);
},
mergedOnLoad: (D) => {
const { onLoad: F, imgProps: { onLoad: Y } = {} } = t;
F == null || F(D), Y == null || Y(D), (w.value = !0);
},
};
},
render() {
var t, e;
const { $slots: r, src: n, mergedClsPrefix: i, lazy: a, onRender: l, loaded: u, hasLoadError: d, imgProps: m = {} } = this;
l == null || l();
let p;
const E =
!u &&
!d &&
(this.renderPlaceholder ? this.renderPlaceholder() : (e = (t = this.$slots).placeholder) === null || e === void 0 ? void 0 : e.call(t));
return (
this.hasLoadError
? (p = this.renderFallback
? this.renderFallback()
: XS(r.fallback, () => [St('img', { src: this.fallbackSrc, style: { objectFit: this.objectFit } })]))
: (p = JS(r.default, (f) => {
if (f)
return St(oy, { onResize: this.fitTextTransform }, { default: () => St('span', { ref: 'textRef', class: `${i}-avatar__text` }, f) });
if (n || m.src) {
const v = this.src || m.src;
return St(
'img',
Object.assign(Object.assign({}, m), {
loading: By && !this.intersectionObserverOptions && a ? 'lazy' : 'eager',
src: a && this.intersectionObserverOptions ? (this.shouldStartLoading ? v : void 0) : v,
'data-image-src': v,
onLoad: this.mergedOnLoad,
onError: this.mergedOnError,
style: [
m.style || '',
{ objectFit: this.objectFit },
E ? { height: '0', width: '0', visibility: 'hidden', position: 'absolute' } : '',
],
})
);
}
})),
St('span', { ref: 'selfRef', class: [`${i}-avatar`, this.themeClass], style: this.cssVars }, p, a && E)
);
},
});
function zy() {
const t = x_(sy, null);
return dt(() => {
if (t === null) return m0;
const {
mergedThemeRef: { value: e },
mergedThemeOverridesRef: { value: r },
} = t,
n = (e == null ? void 0 : e.common) || m0;
return r != null && r.common ? Object.assign({}, n, r.common) : n;
});
}
function Hy(t, e) {
if (t.match(/^[a-z]+:\/\//i)) return t;
if (t.match(/^\/\//)) return window.location.protocol + t;
if (t.match(/^[a-z]+:/i)) return t;
const r = document.implementation.createHTMLDocument(),
n = r.createElement('base'),
i = r.createElement('a');
return r.head.appendChild(n), r.body.appendChild(i), e && (n.href = e), (i.href = t), i.href;
}
const $y = (() => {
let t = 0;
const e = () => `0000${((Math.random() * 36 ** 4) << 0).toString(36)}`.slice(-4);
return () => ((t += 1), `u${e()}${t}`);
})();
function vn(t) {
const e = [];
for (let r = 0, n = t.length; r < n; r++) e.push(t[r]);
return e;
}
function Lo(t, e) {
const n = (t.ownerDocument.defaultView || window).getComputedStyle(t).getPropertyValue(e);
return n ? parseFloat(n.replace('px', '')) : 0;
}
function Vy(t) {
const e = Lo(t, 'border-left-width'),
r = Lo(t, 'border-right-width');
return t.clientWidth + e + r;
}
function Wy(t) {
const e = Lo(t, 'border-top-width'),
r = Lo(t, 'border-bottom-width');
return t.clientHeight + e + r;
}
function sb(t, e = {}) {
const r = e.width || Vy(t),
n = e.height || Wy(t);
return { width: r, height: n };
}
function Ky() {
let t, e;
try {
e = process;
} catch {}
const r = e && e.env ? e.env.devicePixelRatio : null;
return r && ((t = parseInt(r, 10)), Number.isNaN(t) && (t = 1)), t || window.devicePixelRatio || 1;
}
const gr = 16384;
function Qy(t) {
(t.width > gr || t.height > gr) &&
(t.width > gr && t.height > gr
? t.width > t.height
? ((t.height *= gr / t.width), (t.width = gr))
: ((t.width *= gr / t.height), (t.height = gr))
: t.width > gr
? ((t.height *= gr / t.width), (t.width = gr))
: ((t.width *= gr / t.height), (t.height = gr)));
}
function ko(t) {
return new Promise((e, r) => {
const n = new Image();
(n.decode = () => e(n)), (n.onload = () => e(n)), (n.onerror = r), (n.crossOrigin = 'anonymous'), (n.decoding = 'async'), (n.src = t);
});
}
async function Zy(t) {
return Promise.resolve()
.then(() => new XMLSerializer().serializeToString(t))
.then(encodeURIComponent)
.then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
}
async function Xy(t, e, r) {
const n = 'http://www.w3.org/2000/svg',
i = document.createElementNS(n, 'svg'),
a = document.createElementNS(n, 'foreignObject');
return (
i.setAttribute('width', `${e}`),
i.setAttribute('height', `${r}`),
i.setAttribute('viewBox', `0 0 ${e} ${r}`),
a.setAttribute('width', '100%'),
a.setAttribute('height', '100%'),
a.setAttribute('x', '0'),
a.setAttribute('y', '0'),
a.setAttribute('externalResourcesRequired', 'true'),
i.appendChild(a),
a.appendChild(t),
Zy(i)
);
}
const _r = (t, e) => {
if (t instanceof e) return !0;
const r = Object.getPrototypeOf(t);
return r === null ? !1 : r.constructor.name === e.name || _r(r, e);
};
function Jy(t) {
const e = t.getPropertyValue('content');
return `${t.cssText} content: '${e.replace(/'|"/g, '')}';`;
}
function jy(t) {
return vn(t)
.map((e) => {
const r = t.getPropertyValue(e),
n = t.getPropertyPriority(e);
return `${e}: ${r}${n ? ' !important' : ''};`;
})
.join(' ');
}
function eR(t, e, r) {
const n = `.${t}:${e}`,
i = r.cssText ? Jy(r) : jy(r);
return document.createTextNode(`${n}{${i}}`);
}
function g0(t, e, r) {
const n = window.getComputedStyle(t, r),
i = n.getPropertyValue('content');
if (i === '' || i === 'none') return;
const a = $y();
try {
e.className = `${e.className} ${a}`;
} catch {
return;
}
const l = document.createElement('style');
l.appendChild(eR(a, r, n)), e.appendChild(l);
}
function tR(t, e) {
g0(t, e, ':before'), g0(t, e, ':after');
}
const f0 = 'application/font-woff',
E0 = 'image/jpeg',
rR = {
woff: f0,
woff2: f0,
ttf: 'application/font-truetype',
eot: 'application/vnd.ms-fontobject',
png: 'image/png',
jpg: E0,
jpeg: E0,
gif: 'image/gif',
tiff: 'image/tiff',
svg: 'image/svg+xml',
webp: 'image/webp',
};
function nR(t) {
const e = /\.([^./]*?)$/g.exec(t);
return e ? e[1] : '';
}
function sm(t) {
const e = nR(t).toLowerCase();
return rR[e] || '';
}
function iR(t) {
return t.split(/,/)[1];
}
function M_(t) {
return t.search(/^(data:)/) !== -1;
}
function lb(t, e) {
return `data:${e};base64,${t}`;
}
async function cb(t, e, r) {
const n = await fetch(t, e);
if (n.status === 404) throw new Error(`Resource "${n.url}" not found`);
const i = await n.blob();
return new Promise((a, l) => {
const u = new FileReader();
(u.onerror = l),
(u.onloadend = () => {
try {
a(r({ res: n, result: u.result }));
} catch (d) {
l(d);
}
}),
u.readAsDataURL(i);
});
}
const Cl = {};
function aR(t, e, r) {
let n = t.replace(/\?.*/, '');
return r && (n = t), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, '')), e ? `[${e}]${n}` : n;
}
async function lm(t, e, r) {
const n = aR(t, e, r.includeQueryParams);
if (Cl[n] != null) return Cl[n];
r.cacheBust && (t += (/\?/.test(t) ? '&' : '?') + new Date().getTime());
let i;
try {
const a = await cb(t, r.fetchRequestInit, ({ res: l, result: u }) => (e || (e = l.headers.get('Content-Type') || ''), iR(u)));
i = lb(a, e);
} catch (a) {
i = r.imagePlaceholder || '';
let l = `Failed to fetch resource: ${t}`;
a && (l = typeof a == 'string' ? a : a.message), l && console.warn(l);
}
return (Cl[n] = i), i;
}
async function oR(t) {
const e = t.toDataURL();
return e === 'data:,' ? t.cloneNode(!1) : ko(e);
}
async function sR(t, e) {
if (t.currentSrc) {
const a = document.createElement('canvas'),
l = a.getContext('2d');
(a.width = t.clientWidth), (a.height = t.clientHeight), l == null || l.drawImage(t, 0, 0, a.width, a.height);
const u = a.toDataURL();
return ko(u);
}
const r = t.poster,
n = sm(r),
i = await lm(r, n, e);
return ko(i);
}
async function lR(t) {
var e;
try {
if (!((e = t == null ? void 0 : t.contentDocument) === null || e === void 0) && e.body) return await ss(t.contentDocument.body, {}, !0);
} catch {}
return t.cloneNode(!1);
}
async function cR(t, e) {
return _r(t, HTMLCanvasElement) ? oR(t) : _r(t, HTMLVideoElement) ? sR(t, e) : _r(t, HTMLIFrameElement) ? lR(t) : t.cloneNode(!1);
}
const uR = (t) => t.tagName != null && t.tagName.toUpperCase() === 'SLOT';
async function dR(t, e, r) {
var n, i;
let a = [];
return (
uR(t) && t.assignedNodes
? (a = vn(t.assignedNodes()))
: _r(t, HTMLIFrameElement) && !((n = t.contentDocument) === null || n === void 0) && n.body
? (a = vn(t.contentDocument.body.childNodes))
: (a = vn(((i = t.shadowRoot) !== null && i !== void 0 ? i : t).childNodes)),
a.length === 0 ||
_r(t, HTMLVideoElement) ||
(await a.reduce(
(l, u) =>
l
.then(() => ss(u, r))
.then((d) => {
d && e.appendChild(d);
}),
Promise.resolve()
)),
e
);
}
function _R(t, e) {
const r = e.style;
if (!r) return;
const n = window.getComputedStyle(t);
n.cssText
? ((r.cssText = n.cssText), (r.transformOrigin = n.transformOrigin))
: vn(n).forEach((i) => {
let a = n.getPropertyValue(i);
i === 'font-size' && a.endsWith('px') && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - 0.1}px`),
_r(t, HTMLIFrameElement) && i === 'display' && a === 'inline' && (a = 'block'),
i === 'd' && e.getAttribute('d') && (a = `path(${e.getAttribute('d')})`),
r.setProperty(i, a, n.getPropertyPriority(i));
});
}
function mR(t, e) {
_r(t, HTMLTextAreaElement) && (e.innerHTML = t.value), _r(t, HTMLInputElement) && e.setAttribute('value', t.value);
}
function pR(t, e) {
if (_r(t, HTMLSelectElement)) {
const r = e,
n = Array.from(r.children).find((i) => t.value === i.getAttribute('value'));
n && n.setAttribute('selected', '');
}
}
function hR(t, e) {
return _r(e, Element) && (_R(t, e), tR(t, e), mR(t, e), pR(t, e)), e;
}
async function gR(t, e) {
const r = t.querySelectorAll ? t.querySelectorAll('use') : [];
if (r.length === 0) return t;
const n = {};
for (let a = 0; a < r.length; a++) {
const u = r[a].getAttribute('xlink:href');
if (u) {
const d = t.querySelector(u),
m = document.querySelector(u);
!d && m && !n[u] && (n[u] = await ss(m, e, !0));
}
}
const i = Object.values(n);
if (i.length) {
const a = 'http://www.w3.org/1999/xhtml',
l = document.createElementNS(a, 'svg');
l.setAttribute('xmlns', a),
(l.style.position = 'absolute'),
(l.style.width = '0'),
(l.style.height = '0'),
(l.style.overflow = 'hidden'),
(l.style.display = 'none');
const u = document.createElementNS(a, 'defs');
l.appendChild(u);
for (let d = 0; d < i.length; d++) u.appendChild(i[d]);
t.appendChild(l);
}
return t;
}
async function ss(t, e, r) {
return !r && e.filter && !e.filter(t)
? null
: Promise.resolve(t)
.then((n) => cR(n, e))
.then((n) => dR(t, n, e))
.then((n) => hR(t, n))
.then((n) => gR(n, e));
}
const ub = /url\((['"]?)([^'"]+?)\1\)/g,
fR = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,
ER = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
function SR(t) {
const e = t.replace(/([.*+?^${}()|\[\]\/\\])/g, '\\$1');
return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`, 'g');
}
function bR(t) {
const e = [];
return t.replace(ub, (r, n, i) => (e.push(i), r)), e.filter((r) => !M_(r));
}
async function TR(t, e, r, n, i) {
try {
const a = r ? Hy(e, r) : e,
l = sm(e);
let u;
if (i) {
const d = await i(a);
u = lb(d, l);
} else u = await lm(a, l, n);
return t.replace(SR(e), `$1${u}$3`);
} catch {}
return t;
}
function vR(t, { preferredFontFormat: e }) {
return e
? t.replace(ER, (r) => {
for (;;) {
const [n, , i] = fR.exec(r) || [];
if (!i) return '';
if (i === e) return `src: ${n};`;
}
})
: t;
}
function db(t) {
return t.search(ub) !== -1;
}
async function _b(t, e, r) {
if (!db(t)) return t;
const n = vR(t, r);
return bR(n).reduce((a, l) => a.then((u) => TR(u, l, e, r)), Promise.resolve(n));
}
async function io(t, e, r) {
var n;
const i = (n = e.style) === null || n === void 0 ? void 0 : n.getPropertyValue(t);
if (i) {
const a = await _b(i, null, r);
return e.style.setProperty(t, a, e.style.getPropertyPriority(t)), !0;
}
return !1;
}
async function CR(t, e) {
(await io('background', t, e)) || (await io('background-image', t, e)), (await io('mask', t, e)) || (await io('mask-image', t, e));
}
async function yR(t, e) {
const r = _r(t, HTMLImageElement);
if (!(r && !M_(t.src)) && !(_r(t, SVGImageElement) && !M_(t.href.baseVal))) return;
const n = r ? t.src : t.href.baseVal,
i = await lm(n, sm(n), e);
await new Promise((a, l) => {
(t.onload = a), (t.onerror = l);
const u = t;
u.decode && (u.decode = a), u.loading === 'lazy' && (u.loading = 'eager'), r ? ((t.srcset = ''), (t.src = i)) : (t.href.baseVal = i);
});
}
async function RR(t, e) {
const n = vn(t.childNodes).map((i) => mb(i, e));
await Promise.all(n).then(() => t);
}
async function mb(t, e) {
_r(t, Element) && (await CR(t, e), await yR(t, e), await RR(t, e));
}
function AR(t, e) {
const { style: r } = t;
e.backgroundColor && (r.backgroundColor = e.backgroundColor), e.width && (r.width = `${e.width}px`), e.height && (r.height = `${e.height}px`);
const n = e.style;
return (
n != null &&
Object.keys(n).forEach((i) => {
r[i] = n[i];
}),
t
);
}
const S0 = {};
async function b0(t) {
let e = S0[t];
if (e != null) return e;
const n = await (await fetch(t)).text();
return (e = { url: t, cssText: n }), (S0[t] = e), e;
}
async function T0(t, e) {
let r = t.cssText;
const n = /url\(["']?([^"')]+)["']?\)/g,
a = (r.match(/url\([^)]+\)/g) || []).map(async (l) => {
let u = l.replace(n, '$1');
return (
u.startsWith('https://') || (u = new URL(u, t.url).href),
cb(u, e.fetchRequestInit, ({ result: d }) => ((r = r.replace(l, `url(${d})`)), [l, d]))
);
});
return Promise.all(a).then(() => r);
}
function v0(t) {
if (t == null) return [];
const e = [],
r = /(\/\*[\s\S]*?\*\/)/gi;
let n = t.replace(r, '');
const i = new RegExp('((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})', 'gi');
for (;;) {
const d = i.exec(n);
if (d === null) break;
e.push(d[0]);
}
n = n.replace(i, '');
const a = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,
l = '((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})',
u = new RegExp(l, 'gi');
for (;;) {
let d = a.exec(n);
if (d === null) {
if (((d = u.exec(n)), d === null)) break;
a.lastIndex = u.lastIndex;
} else u.lastIndex = a.lastIndex;
e.push(d[0]);
}
return e;
}
async function NR(t, e) {
const r = [],
n = [];
return (
t.forEach((i) => {
if ('cssRules' in i)
try {
vn(i.cssRules || []).forEach((a, l) => {
if (a.type === CSSRule.IMPORT_RULE) {
let u = l + 1;
const d = a.href,
m = b0(d)
.then((p) => T0(p, e))
.then((p) =>
v0(p).forEach((E) => {
try {
i.insertRule(E, E.startsWith('@import') ? (u += 1) : i.cssRules.length);
} catch (f) {
console.error('Error inserting rule from remote css', { rule: E, error: f });
}
})
)
.catch((p) => {
console.error('Error loading remote css', p.toString());
});
n.push(m);
}
});
} catch (a) {
const l = t.find((u) => u.href == null) || document.styleSheets[0];
i.href != null &&
n.push(
b0(i.href)
.then((u) => T0(u, e))
.then((u) =>
v0(u).forEach((d) => {
l.insertRule(d, i.cssRules.length);
})
)
.catch((u) => {
console.error('Error loading remote stylesheet', u);
})
),
console.error('Error inlining remote css file', a);
}
}),
Promise.all(n).then(
() => (
t.forEach((i) => {
if ('cssRules' in i)
try {
vn(i.cssRules || []).forEach((a) => {
r.push(a);
});
} catch (a) {
console.error(`Error while reading CSS rules from ${i.href}`, a);
}
}),
r
)
)
);
}
function OR(t) {
return t.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => db(e.style.getPropertyValue('src')));
}
async function IR(t, e) {
if (t.ownerDocument == null) throw new Error('Provided element is not within a Document');
const r = vn(t.ownerDocument.styleSheets),
n = await NR(r, e);
return OR(n);
}
async function xR(t, e) {
const r = await IR(t, e);
return (
await Promise.all(
r.map((i) => {
const a = i.parentStyleSheet ? i.parentStyleSheet.href : null;
return _b(i.cssText, a, e);
})
)
).join(`
`);
}
async function DR(t, e) {
const r = e.fontEmbedCSS != null ? e.fontEmbedCSS : e.skipFonts ? null : await xR(t, e);
if (r) {
const n = document.createElement('style'),
i = document.createTextNode(r);
n.appendChild(i), t.firstChild ? t.insertBefore(n, t.firstChild) : t.appendChild(n);
}
}
async function wR(t, e = {}) {
const { width: r, height: n } = sb(t, e),
i = await ss(t, e, !0);
return await DR(i, e), await mb(i, e), AR(i, e), await Xy(i, r, n);
}
async function MR(t, e = {}) {
const { width: r, height: n } = sb(t, e),
i = await wR(t, e),
a = await ko(i),
l = document.createElement('canvas'),
u = l.getContext('2d'),
d = e.pixelRatio || Ky(),
m = e.canvasWidth || r,
p = e.canvasHeight || n;
return (
(l.width = m * d),
(l.height = p * d),
e.skipAutoScale || Qy(l),
(l.style.width = `${m}`),
(l.style.height = `${p}`),
e.backgroundColor && ((u.fillStyle = e.backgroundColor), u.fillRect(0, 0, l.width, l.height)),
u.drawImage(a, 0, 0, l.width, l.height),
l
);
}
async function LR(t, e = {}) {
return (await MR(t, e)).toDataURL();
}
function kR(t) {
return Object.prototype.toString.call(t) === '[object String]';
}
const C0 = '/bot/assets/avatar-ceeb03f6.jpg',
PR = { key: 1, class: 'text-[28px] dark:text-white' },
BR = Ve(
'svg',
{ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', 'aria-hidden': 'true', width: '1em', height: '1em' },
[
Ve('path', {
d: 'M29.71,13.09A8.09,8.09,0,0,0,20.34,2.68a8.08,8.08,0,0,0-13.7,2.9A8.08,8.08,0,0,0,2.3,18.9,8,8,0,0,0,3,25.45a8.08,8.08,0,0,0,8.69,3.87,8,8,0,0,0,6,2.68,8.09,8.09,0,0,0,7.7-5.61,8,8,0,0,0,5.33-3.86A8.09,8.09,0,0,0,29.71,13.09Zm-12,16.82a6,6,0,0,1-3.84-1.39l.19-.11,6.37-3.68a1,1,0,0,0,.53-.91v-9l2.69,1.56a.08.08,0,0,1,.05.07v7.44A6,6,0,0,1,17.68,29.91ZM4.8,24.41a6,6,0,0,1-.71-4l.19.11,6.37,3.68a1,1,0,0,0,1,0l7.79-4.49V22.8a.09.09,0,0,1,0,.08L13,26.6A6,6,0,0,1,4.8,24.41ZM3.12,10.53A6,6,0,0,1,6.28,7.9v7.57a1,1,0,0,0,.51.9l7.75,4.47L11.85,22.4a.14.14,0,0,1-.09,0L5.32,18.68a6,6,0,0,1-2.2-8.18Zm22.13,5.14-7.78-4.52L20.16,9.6a.08.08,0,0,1,.09,0l6.44,3.72a6,6,0,0,1-.9,10.81V16.56A1.06,1.06,0,0,0,25.25,15.67Zm2.68-4-.19-.12-6.36-3.7a1,1,0,0,0-1.05,0l-7.78,4.49V9.2a.09.09,0,0,1,0-.09L19,5.4a6,6,0,0,1,8.91,6.21ZM11.08,17.15,8.38,15.6a.14.14,0,0,1-.05-.08V8.1a6,6,0,0,1,9.84-4.61L18,3.6,11.61,7.28a1,1,0,0,0-.53.91ZM12.54,14,16,12l3.47,2v4L16,20l-3.47-2Z',
fill: 'currentColor',
}),
],
-1
),
FR = [BR],
UR = sn({
__name: 'Avatar',
props: { image: { type: Boolean } },
setup(t) {
const e = ly(),
r = dt(() => e.userInfo.avatar);
return (n, i) =>
t.image
? (at(),
wt(
im,
{ key: 0 },
[
he(kR)(he(r)) && he(r).length > 0
? (at(), Er(he(h0), { key: 0, src: he(r), 'fallback-src': he(C0) }, null, 8, ['src', 'fallback-src']))
: (at(), Er(he(h0), { key: 1, round: '', src: he(C0) }, null, 8, ['src'])),
],
64
))
: (at(), wt('span', PR, FR));
},
});
var Po = typeof globalThis < 'u' ? globalThis : typeof window < 'u' ? window : typeof global < 'u' ? global : typeof self < 'u' ? self : {};
function GR(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, 'default') ? t.default : t;
}
function qR(t) {
if (t.__esModule) return t;
var e = t.default;
if (typeof e == 'function') {
var r = function n() {
if (this instanceof n) {
var i = [null];
i.push.apply(i, arguments);
var a = Function.bind.apply(e, i);
return new a();
}
return e.apply(this, arguments);
};
r.prototype = e.prototype;
} else r = {};
return (
Object.defineProperty(r, '__esModule', { value: !0 }),
Object.keys(t).forEach(function (n) {
var i = Object.getOwnPropertyDescriptor(t, n);
Object.defineProperty(
r,
n,
i.get
? i
: {
enumerable: !0,
get: function () {
return t[n];
},
}
);
}),
r
);
}
var L_ = {},
YR = {
get exports() {
return L_;
},
set exports(t) {
L_ = t;
},
},
ct = {},
Bo = {},
zR = {
get exports() {
return Bo;
},
set exports(t) {
Bo = t;
},
};
const HR = 'Á',
$R = 'á',
VR = 'Ă',
WR = 'ă',
KR = '∾',
QR = '∿',
ZR = '∾̳',
XR = 'Â',
JR = 'â',
jR = '´',
eA = 'А',
tA = 'а',
rA = 'Æ',
nA = 'æ',
iA = '',
aA = '𝔄',
oA = '𝔞',
sA = 'À',
lA = 'à',
cA = 'ℵ',
uA = 'ℵ',
dA = 'Α',
_A = 'α',
mA = 'Ā',
pA = 'ā',
hA = '⨿',
gA = '&',
fA = '&',
EA = '⩕',
SA = '⩓',
bA = '∧',
TA = '⩜',
vA = '⩘',
CA = '⩚',
yA = '∠',
RA = '⦤',
AA = '∠',
NA = '⦨',
OA = '⦩',
IA = '⦪',
xA = '⦫',
DA = '⦬',
wA = '⦭',
MA = '⦮',
LA = '⦯',
kA = '∡',
PA = '∟',
BA = '⊾',
FA = '⦝',
UA = '∢',
GA = 'Å',
qA = '⍼',
YA = 'Ą',
zA = 'ą',
HA = '𝔸',
$A = '𝕒',
VA = '⩯',
WA = '≈',
KA = '⩰',
QA = '≊',
ZA = '≋',
XA = "'",
JA = '',
jA = '≈',
eN = '≊',
tN = 'Å',
rN = 'å',
nN = '𝒜',
iN = '𝒶',
aN = '≔',
oN = '*',
sN = '≈',
lN = '≍',
cN = 'Ã',
uN = 'ã',
dN = 'Ä',
_N = 'ä',
mN = '∳',
pN = '⨑',
hN = '≌',
gN = '϶',
fN = '‵',
EN = '∽',
SN = '⋍',
bN = '∖',
TN = '⫧',
vN = '⊽',
CN = '⌅',
yN = '⌆',
RN = '⌅',
AN = '⎵',
NN = '⎶',
ON = '≌',
IN = 'Б',
xN = 'б',
DN = '„',
wN = '∵',
MN = '∵',
LN = '∵',
kN = '⦰',
PN = '϶',
BN = 'ℬ',
FN = 'ℬ',
UN = 'Β',
GN = 'β',
qN = 'ℶ',
YN = '≬',
zN = '𝔅',
HN = '𝔟',
$N = '⋂',
VN = '◯',
WN = '⋃',
KN = '⨀',
QN = '⨁',
ZN = '⨂',
XN = '⨆',
JN = '★',
jN = '▽',
eO = '△',
tO = '⨄',
rO = '⋁',
nO = '⋀',
iO = '⤍',
aO = '⧫',
oO = '▪',
sO = '▴',
lO = '▾',
cO = '◂',
uO = '▸',
dO = '␣',
_O = '▒',
mO = '░',
pO = '▓',
hO = '█',
gO = '=⃥',
fO = '≡⃥',
EO = '⫭',
SO = '⌐',
bO = '𝔹',
TO = '𝕓',
vO = '⊥',
CO = '⊥',
yO = '⋈',
RO = '⧉',
AO = '┐',
NO = '╕',
OO = '╖',
IO = '╗',
xO = '┌',
DO = '╒',
wO = '╓',
MO = '╔',
LO = '─',
kO = '═',
PO = '┬',
BO = '╤',
FO = '╥',
UO = '╦',
GO = '┴',
qO = '╧',
YO = '╨',
zO = '╩',
HO = '⊟',
$O = '⊞',
VO = '⊠',
WO = '┘',
KO = '╛',
QO = '╜',
ZO = '╝',
XO = '└',
JO = '╘',
jO = '╙',
eI = '╚',
tI = '│',
rI = '║',
nI = '┼',
iI = '╪',
aI = '╫',
oI = '╬',
sI = '┤',
lI = '╡',
cI = '╢',
uI = '╣',
dI = '├',
_I = '╞',
mI = '╟',
pI = '╠',
hI = '‵',
gI = '˘',
fI = '˘',
EI = '¦',
SI = '𝒷',
bI = 'ℬ',
TI = '⁏',
vI = '∽',
CI = '⋍',
yI = '⧅',
RI = '\\',
AI = '⟈',
NI = '•',
OI = '•',
II = '≎',
xI = '⪮',
DI = '≏',
wI = '≎',
MI = '≏',
LI = 'Ć',
kI = 'ć',
PI = '⩄',
BI = '⩉',
FI = '⩋',
UI = '∩',
GI = '⋒',
qI = '⩇',
YI = '⩀',
zI = 'ⅅ',
HI = '∩︀',
$I = '⁁',
VI = 'ˇ',
WI = 'ℭ',
KI = '⩍',
QI = 'Č',
ZI = 'č',
XI = 'Ç',
JI = 'ç',
jI = 'Ĉ',
ex = 'ĉ',
tx = '∰',
rx = '⩌',
nx = '⩐',
ix = 'Ċ',
ax = 'ċ',
ox = '¸',
sx = '¸',
lx = '⦲',
cx = '¢',
ux = '·',
dx = '·',
_x = '𝔠',
mx = 'ℭ',
px = 'Ч',
hx = 'ч',
gx = '✓',
fx = '✓',
Ex = 'Χ',
Sx = 'χ',
bx = 'ˆ',
Tx = '≗',
vx = '↺',
Cx = '↻',
yx = '⊛',
Rx = '⊚',
Ax = '⊝',
Nx = '⊙',
Ox = '®',
Ix = 'Ⓢ',
xx = '⊖',
Dx = '⊕',
wx = '⊗',
Mx = '○',
Lx = '⧃',
kx = '≗',
Px = '⨐',
Bx = '⫯',
Fx = '⧂',
Ux = '∲',
Gx = '”',
qx = '’',
Yx = '♣',
zx = '♣',
Hx = ':',
$x = '∷',
Vx = '⩴',
Wx = '≔',
Kx = '≔',
Qx = ',',
Zx = '@',
Xx = '∁',
Jx = '∘',
jx = '∁',
eD = 'ℂ',
tD = '≅',
rD = '⩭',
nD = '≡',
iD = '∮',
aD = '∯',
oD = '∮',
sD = '𝕔',
lD = 'ℂ',
cD = '∐',
uD = '∐',
dD = '©',
_D = '©',
mD = '℗',
pD = '∳',
hD = '↵',
gD = '✗',
fD = '⨯',
ED = '𝒞',
SD = '𝒸',
bD = '⫏',
TD = '⫑',
vD = '⫐',
CD = '⫒',
yD = '⋯',
RD = '⤸',
AD = '⤵',
ND = '⋞',
OD = '⋟',
ID = '↶',
xD = '⤽',
DD = '⩈',
wD = '⩆',
MD = '≍',
LD = '∪',
kD = '⋓',
PD = '⩊',
BD = '⊍',
FD = '⩅',
UD = '∪︀',
GD = '↷',
qD = '⤼',
YD = '⋞',
zD = '⋟',
HD = '⋎',
$D = '⋏',
VD = '¤',
WD = '↶',
KD = '↷',
QD = '⋎',
ZD = '⋏',
XD = '∲',
JD = '∱',
jD = '⌭',
e2 = '†',
t2 = '‡',
r2 = 'ℸ',
n2 = '↓',
i2 = '↡',
a2 = '⇓',
o2 = '‐',
s2 = '⫤',
l2 = '⊣',
c2 = '⤏',
u2 = '˝',
d2 = 'Ď',
_2 = 'ď',
m2 = 'Д',
p2 = 'д',
h2 = '‡',
g2 = '⇊',
f2 = 'ⅅ',
E2 = 'ⅆ',
S2 = '⤑',
b2 = '⩷',
T2 = '°',
v2 = '∇',
C2 = 'Δ',
y2 = 'δ',
R2 = '⦱',
A2 = '⥿',
N2 = '𝔇',
O2 = '𝔡',
I2 = '⥥',
x2 = '⇃',
D2 = '⇂',
w2 = '´',
M2 = '˙',
L2 = '˝',
k2 = '`',
P2 = '˜',
B2 = '⋄',
F2 = '⋄',
U2 = '⋄',
G2 = '♦',
q2 = '♦',
Y2 = '¨',
z2 = 'ⅆ',
H2 = 'ϝ',
$2 = '⋲',
V2 = '÷',
W2 = '÷',
K2 = '⋇',
Q2 = '⋇',
Z2 = 'Ђ',
X2 = 'ђ',
J2 = '⌞',
j2 = '⌍',
ew = '$',
tw = '𝔻',
rw = '𝕕',
nw = '¨',
iw = '˙',
aw = '⃜',
ow = '≐',
sw = '≑',
lw = '≐',
cw = '∸',
uw = '∔',
dw = '⊡',
_w = '⌆',
mw = '∯',
pw = '¨',
hw = '⇓',
gw = '⇐',
fw = '⇔',
Ew = '⫤',
Sw = '⟸',
bw = '⟺',
Tw = '⟹',
vw = '⇒',
Cw = '⊨',
yw = '⇑',
Rw = '⇕',
Aw = '∥',
Nw = '⤓',
Ow = '↓',
Iw = '↓',
xw = '⇓',
Dw = '⇵',
ww = '̑',
Mw = '⇊',
Lw = '⇃',
kw = '⇂',
Pw = '⥐',
Bw = '⥞',
Fw = '⥖',
Uw = '↽',
Gw = '⥟',
qw = '⥗',
Yw = '⇁',
zw = '↧',
Hw = '⊤',
$w = '⤐',
Vw = '⌟',
Ww = '⌌',
Kw = '𝒟',
Qw = '𝒹',
Zw = 'Ѕ',
Xw = 'ѕ',
Jw = '⧶',
jw = 'Đ',
e4 = 'đ',
t4 = '⋱',
r4 = '▿',
n4 = '▾',
i4 = '⇵',
a4 = '⥯',
o4 = '⦦',
s4 = 'Џ',
l4 = 'џ',
c4 = '⟿',
u4 = 'É',
d4 = 'é',
_4 = '⩮',
m4 = 'Ě',
p4 = 'ě',
h4 = 'Ê',
g4 = 'ê',
f4 = '≖',
E4 = '≕',
S4 = 'Э',
b4 = 'э',
T4 = '⩷',
v4 = 'Ė',
C4 = 'ė',
y4 = '≑',
R4 = 'ⅇ',
A4 = '≒',
N4 = '𝔈',
O4 = '𝔢',
I4 = '⪚',
x4 = 'È',
D4 = 'è',
w4 = '⪖',
M4 = '⪘',
L4 = '⪙',
k4 = '∈',
P4 = '⏧',
B4 = 'ℓ',
F4 = '⪕',
U4 = '⪗',
G4 = 'Ē',
q4 = 'ē',
Y4 = '∅',
z4 = '∅',
H4 = '◻',
$4 = '∅',
V4 = '▫',
W4 = ' ',
K4 = ' ',
Q4 = ' ',
Z4 = 'Ŋ',
X4 = 'ŋ',
J4 = ' ',
j4 = 'Ę',
eM = 'ę',
tM = '𝔼',
rM = '𝕖',
nM = '⋕',
iM = '⧣',
aM = '⩱',
oM = 'ε',
sM = 'Ε',
lM = 'ε',
cM = 'ϵ',
uM = '≖',
dM = '≕',
_M = '≂',
mM = '⪖',
pM = '⪕',
hM = '⩵',
gM = '=',
fM = '≂',
EM = '≟',
SM = '⇌',
bM = '≡',
TM = '⩸',
vM = '⧥',
CM = '⥱',
yM = '≓',
RM = 'ℯ',
AM = 'ℰ',
NM = '≐',
OM = '⩳',
IM = '≂',
xM = 'Η',
DM = 'η',
wM = 'Ð',
MM = 'ð',
LM = 'Ë',
kM = 'ë',
PM = '€',
BM = '!',
FM = '∃',
UM = '∃',
GM = 'ℰ',
qM = 'ⅇ',
YM = 'ⅇ',
zM = '≒',
HM = 'Ф',
$M = 'ф',
VM = '♀',
WM = 'ffi',
KM = 'ff',
QM = 'ffl',
ZM = '𝔉',
XM = '𝔣',
JM = 'fi',
jM = '◼',
e3 = '▪',
t3 = 'fj',
r3 = '♭',
n3 = 'fl',
i3 = '▱',
a3 = 'ƒ',
o3 = '𝔽',
s3 = '𝕗',
l3 = '∀',
c3 = '∀',
u3 = '⋔',
d3 = '⫙',
_3 = 'ℱ',
m3 = '⨍',
p3 = '½',
h3 = '⅓',
g3 = '¼',
f3 = '⅕',
E3 = '⅙',
S3 = '⅛',
b3 = '⅔',
T3 = '⅖',
v3 = '¾',
C3 = '⅗',
y3 = '⅜',
R3 = '⅘',
A3 = '⅚',
N3 = '⅝',
O3 = '⅞',
I3 = '⁄',
x3 = '⌢',
D3 = '𝒻',
w3 = 'ℱ',
M3 = 'ǵ',
L3 = 'Γ',
k3 = 'γ',
P3 = 'Ϝ',
B3 = 'ϝ',
F3 = '⪆',
U3 = 'Ğ',
G3 = 'ğ',
q3 = 'Ģ',
Y3 = 'Ĝ',
z3 = 'ĝ',
H3 = 'Г',
$3 = 'г',
V3 = 'Ġ',
W3 = 'ġ',
K3 = '≥',
Q3 = '≧',
Z3 = '⪌',
X3 = '⋛',
J3 = '≥',
j3 = '≧',
eL = '⩾',
tL = '⪩',
rL = '⩾',
nL = '⪀',
iL = '⪂',
aL = '⪄',
oL = '⋛︀',
sL = '⪔',
lL = '𝔊',
cL = '𝔤',
uL = '≫',
dL = '⋙',
_L = '⋙',
mL = 'ℷ',
pL = 'Ѓ',
hL = 'ѓ',
gL = '⪥',
fL = '≷',
EL = '⪒',
SL = '⪤',
bL = '⪊',
TL = '⪊',
vL = '⪈',
CL = '≩',
yL = '⪈',
RL = '≩',
AL = '⋧',
NL = '𝔾',
OL = '𝕘',
IL = '`',
xL = '≥',
DL = '⋛',
wL = '≧',
ML = '⪢',
LL = '≷',
kL = '⩾',
PL = '≳',
BL = '𝒢',
FL = 'ℊ',
UL = '≳',
GL = '⪎',
qL = '⪐',
YL = '⪧',
zL = '⩺',
HL = '>',
$L = '>',
VL = '≫',
WL = '⋗',
KL = '⦕',
QL = '⩼',
ZL = '⪆',
XL = '⥸',
JL = '⋗',
jL = '⋛',
ek = '⪌',
tk = '≷',
rk = '≳',
nk = '≩︀',
ik = '≩︀',
ak = 'ˇ',
ok = ' ',
sk = '½',
lk = 'ℋ',
ck = 'Ъ',
uk = 'ъ',
dk = '⥈',
_k = '↔',
mk = '⇔',
pk = '↭',
hk = '^',
gk = 'ℏ',
fk = 'Ĥ',
Ek = 'ĥ',
Sk = '♥',
bk = '♥',
Tk = '…',
vk = '⊹',
Ck = '𝔥',
yk = 'ℌ',
Rk = 'ℋ',
Ak = '⤥',
Nk = '⤦',
Ok = '⇿',
Ik = '∻',
xk = '↩',
Dk = '↪',
wk = '𝕙',
Mk = 'ℍ',
Lk = '―',
kk = '─',
Pk = '𝒽',
Bk = 'ℋ',
Fk = 'ℏ',
Uk = 'Ħ',
Gk = 'ħ',
qk = '≎',
Yk = '≏',
zk = '⁃',
Hk = '‐',
$k = 'Í',
Vk = 'í',
Wk = '',
Kk = 'Î',
Qk = 'î',
Zk = 'И',
Xk = 'и',
Jk = 'İ',
jk = 'Е',
e5 = 'е',
t5 = '¡',
r5 = '⇔',
n5 = '𝔦',
i5 = 'ℑ',
a5 = 'Ì',
o5 = 'ì',
s5 = 'ⅈ',
l5 = '⨌',
c5 = '∭',
u5 = '⧜',
d5 = '℩',
_5 = 'IJ',
m5 = 'ij',
p5 = 'Ī',
h5 = 'ī',
g5 = 'ℑ',
f5 = 'ⅈ',
E5 = 'ℐ',
S5 = 'ℑ',
b5 = 'ı',
T5 = 'ℑ',
v5 = '⊷',
C5 = 'Ƶ',
y5 = '⇒',
R5 = '℅',
A5 = '∞',
N5 = '⧝',
O5 = 'ı',
I5 = '⊺',
x5 = '∫',
D5 = '∬',
w5 = 'ℤ',
M5 = '∫',
L5 = '⊺',
k5 = '⋂',
P5 = '⨗',
B5 = '⨼',
F5 = '',
U5 = '',
G5 = 'Ё',
q5 = 'ё',
Y5 = 'Į',
z5 = 'į',
H5 = '𝕀',
$5 = '𝕚',
V5 = 'Ι',
W5 = 'ι',
K5 = '⨼',
Q5 = '¿',
Z5 = '𝒾',
X5 = 'ℐ',
J5 = '∈',
j5 = '⋵',
e6 = '⋹',
t6 = '⋴',
r6 = '⋳',
n6 = '∈',
i6 = '',
a6 = 'Ĩ',
o6 = 'ĩ',
s6 = 'І',
l6 = 'і',
c6 = 'Ï',
u6 = 'ï',
d6 = 'Ĵ',
_6 = 'ĵ',
m6 = 'Й',
p6 = 'й',
h6 = '𝔍',
g6 = '𝔧',
f6 = 'ȷ',
E6 = '𝕁',
S6 = '𝕛',
b6 = '𝒥',
T6 = '𝒿',
v6 = 'Ј',
C6 = 'ј',
y6 = 'Є',
R6 = 'є',
A6 = 'Κ',
N6 = 'κ',
O6 = 'ϰ',
I6 = 'Ķ',
x6 = 'ķ',
D6 = 'К',
w6 = 'к',
M6 = '𝔎',
L6 = '𝔨',
k6 = 'ĸ',
P6 = 'Х',
B6 = 'х',
F6 = 'Ќ',
U6 = 'ќ',
G6 = '𝕂',
q6 = '𝕜',
Y6 = '𝒦',
z6 = '𝓀',
H6 = '⇚',
$6 = 'Ĺ',
V6 = 'ĺ',
W6 = '⦴',
K6 = 'ℒ',
Q6 = 'Λ',
Z6 = 'λ',
X6 = '⟨',
J6 = '⟪',
j6 = '⦑',
eP = '⟨',
tP = '⪅',
rP = 'ℒ',
nP = '«',
iP = '⇤',
aP = '⤟',
oP = '←',
sP = '↞',
lP = '⇐',
cP = '⤝',
uP = '↩',
dP = '↫',
_P = '⤹',
mP = '⥳',
pP = '↢',
hP = '⤙',
gP = '⤛',
fP = '⪫',
EP = '⪭',
SP = '⪭︀',
bP = '⤌',
TP = '⤎',
vP = '❲',
CP = '{',
yP = '[',
RP = '⦋',
AP = '⦏',
NP = '⦍',
OP = 'Ľ',
IP = 'ľ',
xP = 'Ļ',
DP = 'ļ',
wP = '⌈',
MP = '{',
LP = 'Л',
kP = 'л',
PP = '⤶',
BP = '“',
FP = '„',
UP = '⥧',
GP = '⥋',
qP = '↲',
YP = '≤',
zP = '≦',
HP = '⟨',
$P = '⇤',
VP = '←',
WP = '←',
KP = '⇐',
QP = '⇆',
ZP = '↢',
XP = '⌈',
JP = '⟦',
jP = '⥡',
e7 = '⥙',
t7 = '⇃',
r7 = '⌊',
n7 = '↽',
i7 = '↼',
a7 = '⇇',
o7 = '↔',
s7 = '↔',
l7 = '⇔',
c7 = '⇆',
u7 = '⇋',
d7 = '↭',
_7 = '⥎',
m7 = '↤',
p7 = '⊣',
h7 = '⥚',
g7 = '⋋',
f7 = '⧏',
E7 = '⊲',
S7 = '⊴',
b7 = '⥑',
T7 = '⥠',
v7 = '⥘',
C7 = '↿',
y7 = '⥒',
R7 = '↼',
A7 = '⪋',
N7 = '⋚',
O7 = '≤',
I7 = '≦',
x7 = '⩽',
D7 = '⪨',
w7 = '⩽',
M7 = '⩿',
L7 = '⪁',
k7 = '⪃',
P7 = '⋚︀',
B7 = '⪓',
F7 = '⪅',
U7 = '⋖',
G7 = '⋚',
q7 = '⪋',
Y7 = '⋚',
z7 = '≦',
H7 = '≶',
$7 = '≶',
V7 = '⪡',
W7 = '≲',
K7 = '⩽',
Q7 = '≲',
Z7 = '⥼',
X7 = '⌊',
J7 = '𝔏',
j7 = '𝔩',
e8 = '≶',
t8 = '⪑',
r8 = '⥢',
n8 = '↽',
i8 = '↼',
a8 = '⥪',
o8 = '▄',
s8 = 'Љ',
l8 = 'љ',
c8 = '⇇',
u8 = '≪',
d8 = '⋘',
_8 = '⌞',
m8 = '⇚',
p8 = '⥫',
h8 = '◺',
g8 = 'Ŀ',
f8 = 'ŀ',
E8 = '⎰',
S8 = '⎰',
b8 = '⪉',
T8 = '⪉',
v8 = '⪇',
C8 = '≨',
y8 = '⪇',
R8 = '≨',
A8 = '⋦',
N8 = '⟬',
O8 = '⇽',
I8 = '⟦',
x8 = '⟵',
D8 = '⟵',
w8 = '⟸',
M8 = '⟷',
L8 = '⟷',
k8 = '⟺',
P8 = '⟼',
B8 = '⟶',
F8 = '⟶',
U8 = '⟹',
G8 = '↫',
q8 = '↬',
Y8 = '⦅',
z8 = '𝕃',
H8 = '𝕝',
$8 = '⨭',
V8 = '⨴',
W8 = '∗',
K8 = '_',
Q8 = '↙',
Z8 = '↘',
X8 = '◊',
J8 = '◊',
j8 = '⧫',
eB = '(',
tB = '⦓',
rB = '⇆',
nB = '⌟',
iB = '⇋',
aB = '⥭',
oB = '',
sB = '⊿',
lB = '‹',
cB = '𝓁',
uB = 'ℒ',
dB = '↰',
_B = '↰',
mB = '≲',
pB = '⪍',
hB = '⪏',
gB = '[',
fB = '‘',
EB = '‚',
SB = 'Ł',
bB = 'ł',
TB = '⪦',
vB = '⩹',
CB = '<',
yB = '<',
RB = '≪',
AB = '⋖',
NB = '⋋',
OB = '⋉',
IB = '⥶',
xB = '⩻',
DB = '◃',
wB = '⊴',
MB = '◂',
LB = '⦖',
kB = '⥊',
PB = '⥦',
BB = '≨︀',
FB = '≨︀',
UB = '¯',
GB = '♂',
qB = '✠',
YB = '✠',
zB = '↦',
HB = '↦',
$B = '↧',
VB = '↤',
WB = '↥',
KB = '▮',
QB = '⨩',
ZB = 'М',
XB = 'м',
JB = '—',
jB = '∺',
e9 = '∡',
t9 = ' ',
r9 = 'ℳ',
n9 = '𝔐',
i9 = '𝔪',
a9 = '℧',
o9 = 'µ',
s9 = '*',
l9 = '⫰',
c9 = '∣',
u9 = '·',
d9 = '⊟',
_9 = '−',
m9 = '∸',
p9 = '⨪',
h9 = '∓',
g9 = '⫛',
f9 = '…',
E9 = '∓',
S9 = '⊧',
b9 = '𝕄',
T9 = '𝕞',
v9 = '∓',
C9 = '𝓂',
y9 = 'ℳ',
R9 = '∾',
A9 = 'Μ',
N9 = 'μ',
O9 = '⊸',
I9 = '⊸',
x9 = '∇',
D9 = 'Ń',
w9 = 'ń',
M9 = '∠⃒',
L9 = '≉',
k9 = '⩰̸',
P9 = '≋̸',
B9 = 'ʼn',
F9 = '≉',
U9 = '♮',
G9 = 'ℕ',
q9 = '♮',
Y9 = ' ',
z9 = '≎̸',
H9 = '≏̸',
$9 = '⩃',
V9 = 'Ň',
W9 = 'ň',
K9 = 'Ņ',
Q9 = 'ņ',
Z9 = '≇',
X9 = '⩭̸',
J9 = '⩂',
j9 = 'Н',
eF = 'н',
tF = '–',
rF = '⤤',
nF = '↗',
iF = '⇗',
aF = '↗',
oF = '≠',
sF = '≐̸',
lF = '',
cF = '',
uF = '',
dF = '',
_F = '≢',
mF = '⤨',
pF = '≂̸',
hF = '≫',
gF = '≪',
fF = `
`,
EF = '∄',
SF = '∄',
bF = '𝔑',
TF = '𝔫',
vF = '≧̸',
CF = '≱',
yF = '≱',
RF = '≧̸',
AF = '⩾̸',
NF = '⩾̸',
OF = '⋙̸',
IF = '≵',
xF = '≫⃒',
DF = '≯',
wF = '≯',
MF = '≫̸',
LF = '↮',
kF = '⇎',
PF = '⫲',
BF = '∋',
FF = '⋼',
UF = '⋺',
GF = '∋',
qF = 'Њ',
YF = 'њ',
zF = '↚',
HF = '⇍',
$F = '‥',
VF = '≦̸',
WF = '≰',
KF = '↚',
QF = '⇍',
ZF = '↮',
XF = '⇎',
JF = '≰',
jF = '≦̸',
eU = '⩽̸',
tU = '⩽̸',
rU = '≮',
nU = '⋘̸',
iU = '≴',
aU = '≪⃒',
oU = '≮',
sU = '⋪',
lU = '⋬',
cU = '≪̸',
uU = '∤',
dU = '',
_U = ' ',
mU = '𝕟',
pU = 'ℕ',
hU = '⫬',
gU = '¬',
fU = '≢',
EU = '≭',
SU = '∦',
bU = '∉',
TU = '≠',
vU = '≂̸',
CU = '∄',
yU = '≯',
RU = '≱',
AU = '≧̸',
NU = '≫̸',
OU = '≹',
IU = '⩾̸',
xU = '≵',
DU = '≎̸',
wU = '≏̸',
MU = '∉',
LU = '⋵̸',
kU = '⋹̸',
PU = '∉',
BU = '⋷',
FU = '⋶',
UU = '⧏̸',
GU = '⋪',
qU = '⋬',
YU = '≮',
zU = '≰',
HU = '≸',
$U = '≪̸',
VU = '⩽̸',
WU = '≴',
KU = '⪢̸',
QU = '⪡̸',
ZU = '∌',
XU = '∌',
JU = '⋾',
jU = '⋽',
eG = '⊀',
tG = '⪯̸',
rG = '⋠',
nG = '∌',
iG = '⧐̸',
aG = '⋫',
oG = '⋭',
sG = '⊏̸',
lG = '⋢',
cG = '⊐̸',
uG = '⋣',
dG = '⊂⃒',
_G = '⊈',
mG = '⊁',
pG = '⪰̸',
hG = '⋡',
gG = '≿̸',
fG = '⊃⃒',
EG = '⊉',
SG = '≁',
bG = '≄',
TG = '≇',
vG = '≉',
CG = '∤',
yG = '∦',
RG = '∦',
AG = '⫽⃥',
NG = '∂̸',
OG = '⨔',
IG = '⊀',
xG = '⋠',
DG = '⊀',
wG = '⪯̸',
MG = '⪯̸',
LG = '⤳̸',
kG = '↛',
PG = '⇏',
BG = '↝̸',
FG = '↛',
UG = '⇏',
GG = '⋫',
qG = '⋭',
YG = '⊁',
zG = '⋡',
HG = '⪰̸',
$G = '𝒩',
VG = '𝓃',
WG = '∤',
KG = '∦',
QG = '≁',
ZG = '≄',
XG = '≄',
JG = '∤',
jG = '∦',
eq = '⋢',
tq = '⋣',
rq = '⊄',
nq = '⫅̸',
iq = '⊈',
aq = '⊂⃒',
oq = '⊈',
sq = '⫅̸',
lq = '⊁',
cq = '⪰̸',
uq = '⊅',
dq = '⫆̸',
_q = '⊉',
mq = '⊃⃒',
pq = '⊉',
hq = '⫆̸',
gq = '≹',
fq = 'Ñ',
Eq = 'ñ',
Sq = '≸',
bq = '⋪',
Tq = '⋬',
vq = '⋫',
Cq = '⋭',
yq = 'Ν',
Rq = 'ν',
Aq = '#',
Nq = '№',
Oq = ' ',
Iq = '≍⃒',
xq = '⊬',
Dq = '⊭',
wq = '⊮',
Mq = '⊯',
Lq = '≥⃒',
kq = '>⃒',
Pq = '⤄',
Bq = '⧞',
Fq = '⤂',
Uq = '≤⃒',
Gq = '<⃒',
qq = '⊴⃒',
Yq = '⤃',
zq = '⊵⃒',
Hq = '∼⃒',
$q = '⤣',
Vq = '↖',
Wq = '⇖',
Kq = '↖',
Qq = '⤧',
Zq = 'Ó',
Xq = 'ó',
Jq = '⊛',
jq = 'Ô',
eY = 'ô',
tY = '⊚',
rY = 'О',
nY = 'о',
iY = '⊝',
aY = 'Ő',
oY = 'ő',
sY = '⨸',
lY = '⊙',
cY = '⦼',
uY = 'Œ',
dY = 'œ',
_Y = '⦿',
mY = '𝔒',
pY = '𝔬',
hY = '˛',
gY = 'Ò',
fY = 'ò',
EY = '⧁',
SY = '⦵',
bY = 'Ω',
TY = '∮',
vY = '↺',
CY = '⦾',
yY = '⦻',
RY = '‾',
AY = '⧀',
NY = 'Ō',
OY = 'ō',
IY = 'Ω',
xY = 'ω',
DY = 'Ο',
wY = 'ο',
MY = '⦶',
LY = '⊖',
kY = '𝕆',
PY = '𝕠',
BY = '⦷',
FY = '“',
UY = '‘',
GY = '⦹',
qY = '⊕',
YY = '↻',
zY = '⩔',
HY = '∨',
$Y = '⩝',
VY = 'ℴ',
WY = 'ℴ',
KY = 'ª',
QY = 'º',
ZY = '⊶',
XY = '⩖',
JY = '⩗',
jY = '⩛',
ez = 'Ⓢ',
tz = '𝒪',
rz = 'ℴ',
nz = 'Ø',
iz = 'ø',
az = '⊘',
oz = 'Õ',
sz = 'õ',
lz = '⨶',
cz = '⨷',
uz = '⊗',
dz = 'Ö',
_z = 'ö',
mz = '⌽',
pz = '‾',
hz = '⏞',
gz = '⎴',
fz = '⏜',
Ez = '¶',
Sz = '∥',
bz = '∥',
Tz = '⫳',
vz = '⫽',
Cz = '∂',
yz = '∂',
Rz = 'П',
Az = 'п',
Nz = '%',
Oz = '.',
Iz = '‰',
xz = '⊥',
Dz = '‱',
wz = '𝔓',
Mz = '𝔭',
Lz = 'Φ',
kz = 'φ',
Pz = 'ϕ',
Bz = 'ℳ',
Fz = '☎',
Uz = 'Π',
Gz = 'π',
qz = '⋔',
Yz = 'ϖ',
zz = 'ℏ',
Hz = 'ℎ',
$z = 'ℏ',
Vz = '⨣',
Wz = '⊞',
Kz = '⨢',
Qz = '+',
Zz = '∔',
Xz = '⨥',
Jz = '⩲',
jz = '±',
eH = '±',
tH = '⨦',
rH = '⨧',
nH = '±',
iH = 'ℌ',
aH = '⨕',
oH = '𝕡',
sH = 'ℙ',
lH = '£',
cH = '⪷',
uH = '⪻',
dH = '≺',
_H = '≼',
mH = '⪷',
pH = '≺',
hH = '≼',
gH = '≺',
fH = '⪯',
EH = '≼',
SH = '≾',
bH = '⪯',
TH = '⪹',
vH = '⪵',
CH = '⋨',
yH = '⪯',
RH = '⪳',
AH = '≾',
NH = '′',
OH = '″',
IH = 'ℙ',
xH = '⪹',
DH = '⪵',
wH = '⋨',
MH = '∏',
LH = '∏',
kH = '⌮',
PH = '⌒',
BH = '⌓',
FH = '∝',
UH = '∝',
GH = '∷',
qH = '∝',
YH = '≾',
zH = '⊰',
HH = '𝒫',
$H = '𝓅',
VH = 'Ψ',
WH = 'ψ',
KH = ' ',
QH = '𝔔',
ZH = '𝔮',
XH = '⨌',
JH = '𝕢',
jH = 'ℚ',
e$ = '⁗',
t$ = '𝒬',
r$ = '𝓆',
n$ = 'ℍ',
i$ = '⨖',
a$ = '?',
o$ = '≟',
s$ = '"',
l$ = '"',
c$ = '⇛',
u$ = '∽̱',
d$ = 'Ŕ',
_$ = 'ŕ',
m$ = '√',
p$ = '⦳',
h$ = '⟩',
g$ = '⟫',
f$ = '⦒',
E$ = '⦥',
S$ = '⟩',
b$ = '»',
T$ = '⥵',
v$ = '⇥',
C$ = '⤠',
y$ = '⤳',
R$ = '→',
A$ = '↠',
N$ = '⇒',
O$ = '⤞',
I$ = '↪',
x$ = '↬',
D$ = '⥅',
w$ = '⥴',
M$ = '⤖',
L$ = '↣',
k$ = '↝',
P$ = '⤚',
B$ = '⤜',
F$ = '∶',
U$ = 'ℚ',
G$ = '⤍',
q$ = '⤏',
Y$ = '⤐',
z$ = '❳',
H$ = '}',
$$ = ']',
V$ = '⦌',
W$ = '⦎',
K$ = '⦐',
Q$ = 'Ř',
Z$ = 'ř',
X$ = 'Ŗ',
J$ = 'ŗ',
j$ = '⌉',
eV = '}',
tV = 'Р',
rV = 'р',
nV = '⤷',
iV = '⥩',
aV = '”',
oV = '”',
sV = '↳',
lV = 'ℜ',
cV = 'ℛ',
uV = 'ℜ',
dV = 'ℝ',
_V = 'ℜ',
mV = '▭',
pV = '®',
hV = '®',
gV = '∋',
fV = '⇋',
EV = '⥯',
SV = '⥽',
bV = '⌋',
TV = '𝔯',
vV = 'ℜ',
CV = '⥤',
yV = '⇁',
RV = '⇀',
AV = '⥬',
NV = 'Ρ',
OV = 'ρ',
IV = 'ϱ',
xV = '⟩',
DV = '⇥',
wV = '→',
MV = '→',
LV = '⇒',
kV = '⇄',
PV = '↣',
BV = '⌉',
FV = '⟧',
UV = '⥝',
GV = '⥕',
qV = '⇂',
YV = '⌋',
zV = '⇁',
HV = '⇀',
$V = '⇄',
VV = '⇌',
WV = '⇉',
KV = '↝',
QV = '↦',
ZV = '⊢',
XV = '⥛',
JV = '⋌',
jV = '⧐',
eW = '⊳',
tW = '⊵',
rW = '⥏',
nW = '⥜',
iW = '⥔',
aW = '↾',
oW = '⥓',
sW = '⇀',
lW = '˚',
cW = '≓',
uW = '⇄',
dW = '⇌',
_W = '',
mW = '⎱',
pW = '⎱',
hW = '⫮',
gW = '⟭',
fW = '⇾',
EW = '⟧',
SW = '⦆',
bW = '𝕣',
TW = 'ℝ',
vW = '⨮',
CW = '⨵',
yW = '⥰',
RW = ')',
AW = '⦔',
NW = '⨒',
OW = '⇉',
IW = '⇛',
xW = '›',
DW = '𝓇',
wW = 'ℛ',
MW = '↱',
LW = '↱',
kW = ']',
PW = '’',
BW = '’',
FW = '⋌',
UW = '⋊',
GW = '▹',
qW = '⊵',
YW = '▸',
zW = '⧎',
HW = '⧴',
$W = '⥨',
VW = '℞',
WW = 'Ś',
KW = 'ś',
QW = '‚',
ZW = '⪸',
XW = 'Š',
JW = 'š',
jW = '⪼',
eK = '≻',
tK = '≽',
rK = '⪰',
nK = '⪴',
iK = 'Ş',
aK = 'ş',
oK = 'Ŝ',
sK = 'ŝ',
lK = '⪺',
cK = '⪶',
uK = '⋩',
dK = '⨓',
_K = '≿',
mK = 'С',
pK = 'с',
hK = '⊡',
gK = '⋅',
fK = '⩦',
EK = '⤥',
SK = '↘',
bK = '⇘',
TK = '↘',
vK = '§',
CK = ';',
yK = '⤩',
RK = '∖',
AK = '∖',
NK = '✶',
OK = '𝔖',
IK = '𝔰',
xK = '⌢',
DK = '♯',
wK = 'Щ',
MK = 'щ',
LK = 'Ш',
kK = 'ш',
PK = '↓',
BK = '←',
FK = '∣',
UK = '∥',
GK = '→',
qK = '↑',
YK = '',
zK = 'Σ',
HK = 'σ',
$K = 'ς',
VK = 'ς',
WK = '∼',
KK = '⩪',
QK = '≃',
ZK = '≃',
XK = '⪞',
JK = '⪠',
jK = '⪝',
eQ = '⪟',
tQ = '≆',
rQ = '⨤',
nQ = '⥲',
iQ = '←',
aQ = '∘',
oQ = '∖',
sQ = '⨳',
lQ = '⧤',
cQ = '∣',
uQ = '⌣',
dQ = '⪪',
_Q = '⪬',
mQ = '⪬︀',
pQ = 'Ь',
hQ = 'ь',
gQ = '⌿',
fQ = '⧄',
EQ = '/',
SQ = '𝕊',
bQ = '𝕤',
TQ = '♠',
vQ = '♠',
CQ = '∥',
yQ = '⊓',
RQ = '⊓︀',
AQ = '⊔',
NQ = '⊔︀',
OQ = '√',
IQ = '⊏',
xQ = '⊑',
DQ = '⊏',
wQ = '⊑',
MQ = '⊐',
LQ = '⊒',
kQ = '⊐',
PQ = '⊒',
BQ = '□',
FQ = '□',
UQ = '⊓',
GQ = '⊏',
qQ = '⊑',
YQ = '⊐',
zQ = '⊒',
HQ = '⊔',
$Q = '▪',
VQ = '□',
WQ = '▪',
KQ = '→',
QQ = '𝒮',
ZQ = '𝓈',
XQ = '∖',
JQ = '⌣',
jQ = '⋆',
eZ = '⋆',
tZ = '☆',
rZ = '★',
nZ = 'ϵ',
iZ = 'ϕ',
aZ = '¯',
oZ = '⊂',
sZ = '⋐',
lZ = '⪽',
cZ = '⫅',
uZ = '⊆',
dZ = '⫃',
_Z = '⫁',
mZ = '⫋',
pZ = '⊊',
hZ = '⪿',
gZ = '⥹',
fZ = '⊂',
EZ = '⋐',
SZ = '⊆',
bZ = '⫅',
TZ = '⊆',
vZ = '⊊',
CZ = '⫋',
yZ = '⫇',
RZ = '⫕',
AZ = '⫓',
NZ = '⪸',
OZ = '≻',
IZ = '≽',
xZ = '≻',
DZ = '⪰',
wZ = '≽',
MZ = '≿',
LZ = '⪰',
kZ = '⪺',
PZ = '⪶',
BZ = '⋩',
FZ = '≿',
UZ = '∋',
GZ = '∑',
qZ = '∑',
YZ = '♪',
zZ = '¹',
HZ = '²',
$Z = '³',
VZ = '⊃',
WZ = '⋑',
KZ = '⪾',
QZ = '⫘',
ZZ = '⫆',
XZ = '⊇',
JZ = '⫄',
jZ = '⊃',
eX = '⊇',
tX = '⟉',
rX = '⫗',
nX = '⥻',
iX = '⫂',
aX = '⫌',
oX = '⊋',
sX = '⫀',
lX = '⊃',
cX = '⋑',
uX = '⊇',
dX = '⫆',
_X = '⊋',
mX = '⫌',
pX = '⫈',
hX = '⫔',
gX = '⫖',
fX = '⤦',
EX = '↙',
SX = '⇙',
bX = '↙',
TX = '⤪',
vX = 'ß',
CX = ' ',
yX = '⌖',
RX = 'Τ',
AX = 'τ',
NX = '⎴',
OX = 'Ť',
IX = 'ť',
xX = 'Ţ',
DX = 'ţ',
wX = 'Т',
MX = 'т',
LX = '⃛',
kX = '⌕',
PX = '𝔗',
BX = '𝔱',
FX = '∴',
UX = '∴',
GX = '∴',
qX = 'Θ',
YX = 'θ',
zX = 'ϑ',
HX = 'ϑ',
$X = '≈',
VX = '∼',
WX = ' ',
KX = ' ',
QX = ' ',
ZX = '≈',
XX = '∼',
JX = 'Þ',
jX = 'þ',
eJ = '˜',
tJ = '∼',
rJ = '≃',
nJ = '≅',
iJ = '≈',
aJ = '⨱',
oJ = '⊠',
sJ = '×',
lJ = '⨰',
cJ = '∭',
uJ = '⤨',
dJ = '⌶',
_J = '⫱',
mJ = '⊤',
pJ = '𝕋',
hJ = '𝕥',
gJ = '⫚',
fJ = '⤩',
EJ = '‴',
SJ = '™',
bJ = '™',
TJ = '▵',
vJ = '▿',
CJ = '◃',
yJ = '⊴',
RJ = '≜',
AJ = '▹',
NJ = '⊵',
OJ = '◬',
IJ = '≜',
xJ = '⨺',
DJ = '⃛',
wJ = '⨹',
MJ = '⧍',
LJ = '⨻',
kJ = '⏢',
PJ = '𝒯',
BJ = '𝓉',
FJ = 'Ц',
UJ = 'ц',
GJ = 'Ћ',
qJ = 'ћ',
YJ = 'Ŧ',
zJ = 'ŧ',
HJ = '≬',
$J = '↞',
VJ = '↠',
WJ = 'Ú',
KJ = 'ú',
QJ = '↑',
ZJ = '↟',
XJ = '⇑',
JJ = '⥉',
jJ = 'Ў',
ej = 'ў',
tj = 'Ŭ',
rj = 'ŭ',
nj = 'Û',
ij = 'û',
aj = 'У',
oj = 'у',
sj = '⇅',
lj = 'Ű',
cj = 'ű',
uj = '⥮',
dj = '⥾',
_j = '𝔘',
mj = '𝔲',
pj = 'Ù',
hj = 'ù',
gj = '⥣',
fj = '↿',
Ej = '↾',
Sj = '▀',
bj = '⌜',
Tj = '⌜',
vj = '⌏',
Cj = '◸',
yj = 'Ū',
Rj = 'ū',
Aj = '¨',
Nj = '_',
Oj = '⏟',
Ij = '⎵',
xj = '⏝',
Dj = '⋃',
wj = '⊎',
Mj = 'Ų',
Lj = 'ų',
kj = '𝕌',
Pj = '𝕦',
Bj = '⤒',
Fj = '↑',
Uj = '↑',
Gj = '⇑',
qj = '⇅',
Yj = '↕',
zj = '↕',
Hj = '⇕',
$j = '⥮',
Vj = '↿',
Wj = '↾',
Kj = '⊎',
Qj = '↖',
Zj = '↗',
Xj = 'υ',
Jj = 'ϒ',
jj = 'ϒ',
eee = 'Υ',
tee = 'υ',
ree = '↥',
nee = '⊥',
iee = '⇈',
aee = '⌝',
oee = '⌝',
see = '⌎',
lee = 'Ů',
cee = 'ů',
uee = '◹',
dee = '𝒰',
_ee = '𝓊',
mee = '⋰',
pee = 'Ũ',
hee = 'ũ',
gee = '▵',
fee = '▴',
Eee = '⇈',
See = 'Ü',
bee = 'ü',
Tee = '⦧',
vee = '⦜',
Cee = 'ϵ',
yee = 'ϰ',
Ree = '∅',
Aee = 'ϕ',
Nee = 'ϖ',
Oee = '∝',
Iee = '↕',
xee = '⇕',
Dee = 'ϱ',
wee = 'ς',
Mee = '⊊︀',
Lee = '⫋︀',
kee = '⊋︀',
Pee = '⫌︀',
Bee = 'ϑ',
Fee = '⊲',
Uee = '⊳',
Gee = '⫨',
qee = '⫫',
Yee = '⫩',
zee = 'В',
Hee = 'в',
$ee = '⊢',
Vee = '⊨',
Wee = '⊩',
Kee = '⊫',
Qee = '⫦',
Zee = '⊻',
Xee = '∨',
Jee = '⋁',
jee = '≚',
ete = '⋮',
tte = '|',
rte = '‖',
nte = '|',
ite = '‖',
ate = '∣',
ote = '|',
ste = '❘',
lte = '≀',
cte = ' ',
ute = '𝔙',
dte = '𝔳',
_te = '⊲',
mte = '⊂⃒',
pte = '⊃⃒',
hte = '𝕍',
gte = '𝕧',
fte = '∝',
Ete = '⊳',
Ste = '𝒱',
bte = '𝓋',
Tte = '⫋︀',
vte = '⊊︀',
Cte = '⫌︀',
yte = '⊋︀',
Rte = '⊪',
Ate = '⦚',
Nte = 'Ŵ',
Ote = 'ŵ',
Ite = '⩟',
xte = '∧',
Dte = '⋀',
wte = '≙',
Mte = '℘',
Lte = '𝔚',
kte = '𝔴',
Pte = '𝕎',
Bte = '𝕨',
Fte = '℘',
Ute = '≀',
Gte = '≀',
qte = '𝒲',
Yte = '𝓌',
zte = '⋂',
Hte = '◯',
$te = '⋃',
Vte = '▽',
Wte = '𝔛',
Kte = '𝔵',
Qte = '⟷',
Zte = '⟺',
Xte = 'Ξ',
Jte = 'ξ',
jte = '⟵',
ere = '⟸',
tre = '⟼',
rre = '⋻',
nre = '⨀',
ire = '𝕏',
are = '𝕩',
ore = '⨁',
sre = '⨂',
lre = '⟶',
cre = '⟹',
ure = '𝒳',
dre = '𝓍',
_re = '⨆',
mre = '⨄',
pre = '△',
hre = '⋁',
gre = '⋀',
fre = 'Ý',
Ere = 'ý',
Sre = 'Я',
bre = 'я',
Tre = 'Ŷ',
vre = 'ŷ',
Cre = 'Ы',
yre = 'ы',
Rre = '¥',
Are = '𝔜',
Nre = '𝔶',
Ore = 'Ї',
Ire = 'ї',
xre = '𝕐',
Dre = '𝕪',
wre = '𝒴',
Mre = '𝓎',
Lre = 'Ю',
kre = 'ю',
Pre = 'ÿ',
Bre = 'Ÿ',
Fre = 'Ź',
Ure = 'ź',
Gre = 'Ž',
qre = 'ž',
Yre = 'З',
zre = 'з',
Hre = 'Ż',
$re = 'ż',
Vre = 'ℨ',
Wre = '',
Kre = 'Ζ',
Qre = 'ζ',
Zre = '𝔷',
Xre = 'ℨ',
Jre = 'Ж',
jre = 'ж',
ene = '⇝',
tne = '𝕫',
rne = 'ℤ',
nne = '𝒵',
ine = '𝓏',
ane = '',
one = '',
sne = {
Aacute: HR,
aacute: $R,
Abreve: VR,
abreve: WR,
ac: KR,
acd: QR,
acE: ZR,
Acirc: XR,
acirc: JR,
acute: jR,
Acy: eA,
acy: tA,
AElig: rA,
aelig: nA,
af: iA,
Afr: aA,
afr: oA,
Agrave: sA,
agrave: lA,
alefsym: cA,
aleph: uA,
Alpha: dA,
alpha: _A,
Amacr: mA,
amacr: pA,
amalg: hA,
amp: gA,
AMP: fA,
andand: EA,
And: SA,
and: bA,
andd: TA,
andslope: vA,
andv: CA,
ang: yA,
ange: RA,
angle: AA,
angmsdaa: NA,
angmsdab: OA,
angmsdac: IA,
angmsdad: xA,
angmsdae: DA,
angmsdaf: wA,
angmsdag: MA,
angmsdah: LA,
angmsd: kA,
angrt: PA,
angrtvb: BA,
angrtvbd: FA,
angsph: UA,
angst: GA,
angzarr: qA,
Aogon: YA,
aogon: zA,
Aopf: HA,
aopf: $A,
apacir: VA,
ap: WA,
apE: KA,
ape: QA,
apid: ZA,
apos: XA,
ApplyFunction: JA,
approx: jA,
approxeq: eN,
Aring: tN,
aring: rN,
Ascr: nN,
ascr: iN,
Assign: aN,
ast: oN,
asymp: sN,
asympeq: lN,
Atilde: cN,
atilde: uN,
Auml: dN,
auml: _N,
awconint: mN,
awint: pN,
backcong: hN,
backepsilon: gN,
backprime: fN,
backsim: EN,
backsimeq: SN,
Backslash: bN,
Barv: TN,
barvee: vN,
barwed: CN,
Barwed: yN,
barwedge: RN,
bbrk: AN,
bbrktbrk: NN,
bcong: ON,
Bcy: IN,
bcy: xN,
bdquo: DN,
becaus: wN,
because: MN,
Because: LN,
bemptyv: kN,
bepsi: PN,
bernou: BN,
Bernoullis: FN,
Beta: UN,
beta: GN,
beth: qN,
between: YN,
Bfr: zN,
bfr: HN,
bigcap: $N,
bigcirc: VN,
bigcup: WN,
bigodot: KN,
bigoplus: QN,
bigotimes: ZN,
bigsqcup: XN,
bigstar: JN,
bigtriangledown: jN,
bigtriangleup: eO,
biguplus: tO,
bigvee: rO,
bigwedge: nO,
bkarow: iO,
blacklozenge: aO,
blacksquare: oO,
blacktriangle: sO,
blacktriangledown: lO,
blacktriangleleft: cO,
blacktriangleright: uO,
blank: dO,
blk12: _O,
blk14: mO,
blk34: pO,
block: hO,
bne: gO,
bnequiv: fO,
bNot: EO,
bnot: SO,
Bopf: bO,
bopf: TO,
bot: vO,
bottom: CO,
bowtie: yO,
boxbox: RO,
boxdl: AO,
boxdL: NO,
boxDl: OO,
boxDL: IO,
boxdr: xO,
boxdR: DO,
boxDr: wO,
boxDR: MO,
boxh: LO,
boxH: kO,
boxhd: PO,
boxHd: BO,
boxhD: FO,
boxHD: UO,
boxhu: GO,
boxHu: qO,
boxhU: YO,
boxHU: zO,
boxminus: HO,
boxplus: $O,
boxtimes: VO,
boxul: WO,
boxuL: KO,
boxUl: QO,
boxUL: ZO,
boxur: XO,
boxuR: JO,
boxUr: jO,
boxUR: eI,
boxv: tI,
boxV: rI,
boxvh: nI,
boxvH: iI,
boxVh: aI,
boxVH: oI,
boxvl: sI,
boxvL: lI,
boxVl: cI,
boxVL: uI,
boxvr: dI,
boxvR: _I,
boxVr: mI,
boxVR: pI,
bprime: hI,
breve: gI,
Breve: fI,
brvbar: EI,
bscr: SI,
Bscr: bI,
bsemi: TI,
bsim: vI,
bsime: CI,
bsolb: yI,
bsol: RI,
bsolhsub: AI,
bull: NI,
bullet: OI,
bump: II,
bumpE: xI,
bumpe: DI,
Bumpeq: wI,
bumpeq: MI,
Cacute: LI,
cacute: kI,
capand: PI,
capbrcup: BI,
capcap: FI,
cap: UI,
Cap: GI,
capcup: qI,
capdot: YI,
CapitalDifferentialD: zI,
caps: HI,
caret: $I,
caron: VI,
Cayleys: WI,
ccaps: KI,
Ccaron: QI,
ccaron: ZI,
Ccedil: XI,
ccedil: JI,
Ccirc: jI,
ccirc: ex,
Cconint: tx,
ccups: rx,
ccupssm: nx,
Cdot: ix,
cdot: ax,
cedil: ox,
Cedilla: sx,
cemptyv: lx,
cent: cx,
centerdot: ux,
CenterDot: dx,
cfr: _x,
Cfr: mx,
CHcy: px,
chcy: hx,
check: gx,
checkmark: fx,
Chi: Ex,
chi: Sx,
circ: bx,
circeq: Tx,
circlearrowleft: vx,
circlearrowright: Cx,
circledast: yx,
circledcirc: Rx,
circleddash: Ax,
CircleDot: Nx,
circledR: Ox,
circledS: Ix,
CircleMinus: xx,
CirclePlus: Dx,
CircleTimes: wx,
cir: Mx,
cirE: Lx,
cire: kx,
cirfnint: Px,
cirmid: Bx,
cirscir: Fx,
ClockwiseContourIntegral: Ux,
CloseCurlyDoubleQuote: Gx,
CloseCurlyQuote: qx,
clubs: Yx,
clubsuit: zx,
colon: Hx,
Colon: $x,
Colone: Vx,
colone: Wx,
coloneq: Kx,
comma: Qx,
commat: Zx,
comp: Xx,
compfn: Jx,
complement: jx,
complexes: eD,
cong: tD,
congdot: rD,
Congruent: nD,
conint: iD,
Conint: aD,
ContourIntegral: oD,
copf: sD,
Copf: lD,
coprod: cD,
Coproduct: uD,
copy: dD,
COPY: _D,
copysr: mD,
CounterClockwiseContourIntegral: pD,
crarr: hD,
cross: gD,
Cross: fD,
Cscr: ED,
cscr: SD,
csub: bD,
csube: TD,
csup: vD,
csupe: CD,
ctdot: yD,
cudarrl: RD,
cudarrr: AD,
cuepr: ND,
cuesc: OD,
cularr: ID,
cularrp: xD,
cupbrcap: DD,
cupcap: wD,
CupCap: MD,
cup: LD,
Cup: kD,
cupcup: PD,
cupdot: BD,
cupor: FD,
cups: UD,
curarr: GD,
curarrm: qD,
curlyeqprec: YD,
curlyeqsucc: zD,
curlyvee: HD,
curlywedge: $D,
curren: VD,
curvearrowleft: WD,
curvearrowright: KD,
cuvee: QD,
cuwed: ZD,
cwconint: XD,
cwint: JD,
cylcty: jD,
dagger: e2,
Dagger: t2,
daleth: r2,
darr: n2,
Darr: i2,
dArr: a2,
dash: o2,
Dashv: s2,
dashv: l2,
dbkarow: c2,
dblac: u2,
Dcaron: d2,
dcaron: _2,
Dcy: m2,
dcy: p2,
ddagger: h2,
ddarr: g2,
DD: f2,
dd: E2,
DDotrahd: S2,
ddotseq: b2,
deg: T2,
Del: v2,
Delta: C2,
delta: y2,
demptyv: R2,
dfisht: A2,
Dfr: N2,
dfr: O2,
dHar: I2,
dharl: x2,
dharr: D2,
DiacriticalAcute: w2,
DiacriticalDot: M2,
DiacriticalDoubleAcute: L2,
DiacriticalGrave: k2,
DiacriticalTilde: P2,
diam: B2,
diamond: F2,
Diamond: U2,
diamondsuit: G2,
diams: q2,
die: Y2,
DifferentialD: z2,
digamma: H2,
disin: $2,
div: V2,
divide: W2,
divideontimes: K2,
divonx: Q2,
DJcy: Z2,
djcy: X2,
dlcorn: J2,
dlcrop: j2,
dollar: ew,
Dopf: tw,
dopf: rw,
Dot: nw,
dot: iw,
DotDot: aw,
doteq: ow,
doteqdot: sw,
DotEqual: lw,
dotminus: cw,
dotplus: uw,
dotsquare: dw,
doublebarwedge: _w,
DoubleContourIntegral: mw,
DoubleDot: pw,
DoubleDownArrow: hw,
DoubleLeftArrow: gw,
DoubleLeftRightArrow: fw,
DoubleLeftTee: Ew,
DoubleLongLeftArrow: Sw,
DoubleLongLeftRightArrow: bw,
DoubleLongRightArrow: Tw,
DoubleRightArrow: vw,
DoubleRightTee: Cw,
DoubleUpArrow: yw,
DoubleUpDownArrow: Rw,
DoubleVerticalBar: Aw,
DownArrowBar: Nw,
downarrow: Ow,
DownArrow: Iw,
Downarrow: xw,
DownArrowUpArrow: Dw,
DownBreve: ww,
downdownarrows: Mw,
downharpoonleft: Lw,
downharpoonright: kw,
DownLeftRightVector: Pw,
DownLeftTeeVector: Bw,
DownLeftVectorBar: Fw,
DownLeftVector: Uw,
DownRightTeeVector: Gw,
DownRightVectorBar: qw,
DownRightVector: Yw,
DownTeeArrow: zw,
DownTee: Hw,
drbkarow: $w,
drcorn: Vw,
drcrop: Ww,
Dscr: Kw,
dscr: Qw,
DScy: Zw,
dscy: Xw,
dsol: Jw,
Dstrok: jw,
dstrok: e4,
dtdot: t4,
dtri: r4,
dtrif: n4,
duarr: i4,
duhar: a4,
dwangle: o4,
DZcy: s4,
dzcy: l4,
dzigrarr: c4,
Eacute: u4,
eacute: d4,
easter: _4,
Ecaron: m4,
ecaron: p4,
Ecirc: h4,
ecirc: g4,
ecir: f4,
ecolon: E4,
Ecy: S4,
ecy: b4,
eDDot: T4,
Edot: v4,
edot: C4,
eDot: y4,
ee: R4,
efDot: A4,
Efr: N4,
efr: O4,
eg: I4,
Egrave: x4,
egrave: D4,
egs: w4,
egsdot: M4,
el: L4,
Element: k4,
elinters: P4,
ell: B4,
els: F4,
elsdot: U4,
Emacr: G4,
emacr: q4,
empty: Y4,
emptyset: z4,
EmptySmallSquare: H4,
emptyv: $4,
EmptyVerySmallSquare: V4,
emsp13: W4,
emsp14: K4,
emsp: Q4,
ENG: Z4,
eng: X4,
ensp: J4,
Eogon: j4,
eogon: eM,
Eopf: tM,
eopf: rM,
epar: nM,
eparsl: iM,
eplus: aM,
epsi: oM,
Epsilon: sM,
epsilon: lM,
epsiv: cM,
eqcirc: uM,
eqcolon: dM,
eqsim: _M,
eqslantgtr: mM,
eqslantless: pM,
Equal: hM,
equals: gM,
EqualTilde: fM,
equest: EM,
Equilibrium: SM,
equiv: bM,
equivDD: TM,
eqvparsl: vM,
erarr: CM,
erDot: yM,
escr: RM,
Escr: AM,
esdot: NM,
Esim: OM,
esim: IM,
Eta: xM,
eta: DM,
ETH: wM,
eth: MM,
Euml: LM,
euml: kM,
euro: PM,
excl: BM,
exist: FM,
Exists: UM,
expectation: GM,
exponentiale: qM,
ExponentialE: YM,
fallingdotseq: zM,
Fcy: HM,
fcy: $M,
female: VM,
ffilig: WM,
fflig: KM,
ffllig: QM,
Ffr: ZM,
ffr: XM,
filig: JM,
FilledSmallSquare: jM,
FilledVerySmallSquare: e3,
fjlig: t3,
flat: r3,
fllig: n3,
fltns: i3,
fnof: a3,
Fopf: o3,
fopf: s3,
forall: l3,
ForAll: c3,
fork: u3,
forkv: d3,
Fouriertrf: _3,
fpartint: m3,
frac12: p3,
frac13: h3,
frac14: g3,
frac15: f3,
frac16: E3,
frac18: S3,
frac23: b3,
frac25: T3,
frac34: v3,
frac35: C3,
frac38: y3,
frac45: R3,
frac56: A3,
frac58: N3,
frac78: O3,
frasl: I3,
frown: x3,
fscr: D3,
Fscr: w3,
gacute: M3,
Gamma: L3,
gamma: k3,
Gammad: P3,
gammad: B3,
gap: F3,
Gbreve: U3,
gbreve: G3,
Gcedil: q3,
Gcirc: Y3,
gcirc: z3,
Gcy: H3,
gcy: $3,
Gdot: V3,
gdot: W3,
ge: K3,
gE: Q3,
gEl: Z3,
gel: X3,
geq: J3,
geqq: j3,
geqslant: eL,
gescc: tL,
ges: rL,
gesdot: nL,
gesdoto: iL,
gesdotol: aL,
gesl: oL,
gesles: sL,
Gfr: lL,
gfr: cL,
gg: uL,
Gg: dL,
ggg: _L,
gimel: mL,
GJcy: pL,
gjcy: hL,
gla: gL,
gl: fL,
glE: EL,
glj: SL,
gnap: bL,
gnapprox: TL,
gne: vL,
gnE: CL,
gneq: yL,
gneqq: RL,
gnsim: AL,
Gopf: NL,
gopf: OL,
grave: IL,
GreaterEqual: xL,
GreaterEqualLess: DL,
GreaterFullEqual: wL,
GreaterGreater: ML,
GreaterLess: LL,
GreaterSlantEqual: kL,
GreaterTilde: PL,
Gscr: BL,
gscr: FL,
gsim: UL,
gsime: GL,
gsiml: qL,
gtcc: YL,
gtcir: zL,
gt: HL,
GT: $L,
Gt: VL,
gtdot: WL,
gtlPar: KL,
gtquest: QL,
gtrapprox: ZL,
gtrarr: XL,
gtrdot: JL,
gtreqless: jL,
gtreqqless: ek,
gtrless: tk,
gtrsim: rk,
gvertneqq: nk,
gvnE: ik,
Hacek: ak,
hairsp: ok,
half: sk,
hamilt: lk,
HARDcy: ck,
hardcy: uk,
harrcir: dk,
harr: _k,
hArr: mk,
harrw: pk,
Hat: hk,
hbar: gk,
Hcirc: fk,
hcirc: Ek,
hearts: Sk,
heartsuit: bk,
hellip: Tk,
hercon: vk,
hfr: Ck,
Hfr: yk,
HilbertSpace: Rk,
hksearow: Ak,
hkswarow: Nk,
hoarr: Ok,
homtht: Ik,
hookleftarrow: xk,
hookrightarrow: Dk,
hopf: wk,
Hopf: Mk,
horbar: Lk,
HorizontalLine: kk,
hscr: Pk,
Hscr: Bk,
hslash: Fk,
Hstrok: Uk,
hstrok: Gk,
HumpDownHump: qk,
HumpEqual: Yk,
hybull: zk,
hyphen: Hk,
Iacute: $k,
iacute: Vk,
ic: Wk,
Icirc: Kk,
icirc: Qk,
Icy: Zk,
icy: Xk,
Idot: Jk,
IEcy: jk,
iecy: e5,
iexcl: t5,
iff: r5,
ifr: n5,
Ifr: i5,
Igrave: a5,
igrave: o5,
ii: s5,
iiiint: l5,
iiint: c5,
iinfin: u5,
iiota: d5,
IJlig: _5,
ijlig: m5,
Imacr: p5,
imacr: h5,
image: g5,
ImaginaryI: f5,
imagline: E5,
imagpart: S5,
imath: b5,
Im: T5,
imof: v5,
imped: C5,
Implies: y5,
incare: R5,
in: '∈',
infin: A5,
infintie: N5,
inodot: O5,
intcal: I5,
int: x5,
Int: D5,
integers: w5,
Integral: M5,
intercal: L5,
Intersection: k5,
intlarhk: P5,
intprod: B5,
InvisibleComma: F5,
InvisibleTimes: U5,
IOcy: G5,
iocy: q5,
Iogon: Y5,
iogon: z5,
Iopf: H5,
iopf: $5,
Iota: V5,
iota: W5,
iprod: K5,
iquest: Q5,
iscr: Z5,
Iscr: X5,
isin: J5,
isindot: j5,
isinE: e6,
isins: t6,
isinsv: r6,
isinv: n6,
it: i6,
Itilde: a6,
itilde: o6,
Iukcy: s6,
iukcy: l6,
Iuml: c6,
iuml: u6,
Jcirc: d6,
jcirc: _6,
Jcy: m6,
jcy: p6,
Jfr: h6,
jfr: g6,
jmath: f6,
Jopf: E6,
jopf: S6,
Jscr: b6,
jscr: T6,
Jsercy: v6,
jsercy: C6,
Jukcy: y6,
jukcy: R6,
Kappa: A6,
kappa: N6,
kappav: O6,
Kcedil: I6,
kcedil: x6,
Kcy: D6,
kcy: w6,
Kfr: M6,
kfr: L6,
kgreen: k6,
KHcy: P6,
khcy: B6,
KJcy: F6,
kjcy: U6,
Kopf: G6,
kopf: q6,
Kscr: Y6,
kscr: z6,
lAarr: H6,
Lacute: $6,
lacute: V6,
laemptyv: W6,
lagran: K6,
Lambda: Q6,
lambda: Z6,
lang: X6,
Lang: J6,
langd: j6,
langle: eP,
lap: tP,
Laplacetrf: rP,
laquo: nP,
larrb: iP,
larrbfs: aP,
larr: oP,
Larr: sP,
lArr: lP,
larrfs: cP,
larrhk: uP,
larrlp: dP,
larrpl: _P,
larrsim: mP,
larrtl: pP,
latail: hP,
lAtail: gP,
lat: fP,
late: EP,
lates: SP,
lbarr: bP,
lBarr: TP,
lbbrk: vP,
lbrace: CP,
lbrack: yP,
lbrke: RP,
lbrksld: AP,
lbrkslu: NP,
Lcaron: OP,
lcaron: IP,
Lcedil: xP,
lcedil: DP,
lceil: wP,
lcub: MP,
Lcy: LP,
lcy: kP,
ldca: PP,
ldquo: BP,
ldquor: FP,
ldrdhar: UP,
ldrushar: GP,
ldsh: qP,
le: YP,
lE: zP,
LeftAngleBracket: HP,
LeftArrowBar: $P,
leftarrow: VP,
LeftArrow: WP,
Leftarrow: KP,
LeftArrowRightArrow: QP,
leftarrowtail: ZP,
LeftCeiling: XP,
LeftDoubleBracket: JP,
LeftDownTeeVector: jP,
LeftDownVectorBar: e7,
LeftDownVector: t7,
LeftFloor: r7,
leftharpoondown: n7,
leftharpoonup: i7,
leftleftarrows: a7,
leftrightarrow: o7,
LeftRightArrow: s7,
Leftrightarrow: l7,
leftrightarrows: c7,
leftrightharpoons: u7,
leftrightsquigarrow: d7,
LeftRightVector: _7,
LeftTeeArrow: m7,
LeftTee: p7,
LeftTeeVector: h7,
leftthreetimes: g7,
LeftTriangleBar: f7,
LeftTriangle: E7,
LeftTriangleEqual: S7,
LeftUpDownVector: b7,
LeftUpTeeVector: T7,
LeftUpVectorBar: v7,
LeftUpVector: C7,
LeftVectorBar: y7,
LeftVector: R7,
lEg: A7,
leg: N7,
leq: O7,
leqq: I7,
leqslant: x7,
lescc: D7,
les: w7,
lesdot: M7,
lesdoto: L7,
lesdotor: k7,
lesg: P7,
lesges: B7,
lessapprox: F7,
lessdot: U7,
lesseqgtr: G7,
lesseqqgtr: q7,
LessEqualGreater: Y7,
LessFullEqual: z7,
LessGreater: H7,
lessgtr: $7,
LessLess: V7,
lesssim: W7,
LessSlantEqual: K7,
LessTilde: Q7,
lfisht: Z7,
lfloor: X7,
Lfr: J7,
lfr: j7,
lg: e8,
lgE: t8,
lHar: r8,
lhard: n8,
lharu: i8,
lharul: a8,
lhblk: o8,
LJcy: s8,
ljcy: l8,
llarr: c8,
ll: u8,
Ll: d8,
llcorner: _8,
Lleftarrow: m8,
llhard: p8,
lltri: h8,
Lmidot: g8,
lmidot: f8,
lmoustache: E8,
lmoust: S8,
lnap: b8,
lnapprox: T8,
lne: v8,
lnE: C8,
lneq: y8,
lneqq: R8,
lnsim: A8,
loang: N8,
loarr: O8,
lobrk: I8,
longleftarrow: x8,
LongLeftArrow: D8,
Longleftarrow: w8,
longleftrightarrow: M8,
LongLeftRightArrow: L8,
Longleftrightarrow: k8,
longmapsto: P8,
longrightarrow: B8,
LongRightArrow: F8,
Longrightarrow: U8,
looparrowleft: G8,
looparrowright: q8,
lopar: Y8,
Lopf: z8,
lopf: H8,
loplus: $8,
lotimes: V8,
lowast: W8,
lowbar: K8,
LowerLeftArrow: Q8,
LowerRightArrow: Z8,
loz: X8,
lozenge: J8,
lozf: j8,
lpar: eB,
lparlt: tB,
lrarr: rB,
lrcorner: nB,
lrhar: iB,
lrhard: aB,
lrm: oB,
lrtri: sB,
lsaquo: lB,
lscr: cB,
Lscr: uB,
lsh: dB,
Lsh: _B,
lsim: mB,
lsime: pB,
lsimg: hB,
lsqb: gB,
lsquo: fB,
lsquor: EB,
Lstrok: SB,
lstrok: bB,
ltcc: TB,
ltcir: vB,
lt: CB,
LT: yB,
Lt: RB,
ltdot: AB,
lthree: NB,
ltimes: OB,
ltlarr: IB,
ltquest: xB,
ltri: DB,
ltrie: wB,
ltrif: MB,
ltrPar: LB,
lurdshar: kB,
luruhar: PB,
lvertneqq: BB,
lvnE: FB,
macr: UB,
male: GB,
malt: qB,
maltese: YB,
Map: '⤅',
map: zB,
mapsto: HB,
mapstodown: $B,
mapstoleft: VB,
mapstoup: WB,
marker: KB,
mcomma: QB,
Mcy: ZB,
mcy: XB,
mdash: JB,
mDDot: jB,
measuredangle: e9,
MediumSpace: t9,
Mellintrf: r9,
Mfr: n9,
mfr: i9,
mho: a9,
micro: o9,
midast: s9,
midcir: l9,
mid: c9,
middot: u9,
minusb: d9,
minus: _9,
minusd: m9,
minusdu: p9,
MinusPlus: h9,
mlcp: g9,
mldr: f9,
mnplus: E9,
models: S9,
Mopf: b9,
mopf: T9,
mp: v9,
mscr: C9,
Mscr: y9,
mstpos: R9,
Mu: A9,
mu: N9,
multimap: O9,
mumap: I9,
nabla: x9,
Nacute: D9,
nacute: w9,
nang: M9,
nap: L9,
napE: k9,
napid: P9,
napos: B9,
napprox: F9,
natural: U9,
naturals: G9,
natur: q9,
nbsp: Y9,
nbump: z9,
nbumpe: H9,
ncap: $9,
Ncaron: V9,
ncaron: W9,
Ncedil: K9,
ncedil: Q9,
ncong: Z9,
ncongdot: X9,
ncup: J9,
Ncy: j9,
ncy: eF,
ndash: tF,
nearhk: rF,
nearr: nF,
neArr: iF,
nearrow: aF,
ne: oF,
nedot: sF,
NegativeMediumSpace: lF,
NegativeThickSpace: cF,
NegativeThinSpace: uF,
NegativeVeryThinSpace: dF,
nequiv: _F,
nesear: mF,
nesim: pF,
NestedGreaterGreater: hF,
NestedLessLess: gF,
NewLine: fF,
nexist: EF,
nexists: SF,
Nfr: bF,
nfr: TF,
ngE: vF,
nge: CF,
ngeq: yF,
ngeqq: RF,
ngeqslant: AF,
nges: NF,
nGg: OF,
ngsim: IF,
nGt: xF,
ngt: DF,
ngtr: wF,
nGtv: MF,
nharr: LF,
nhArr: kF,
nhpar: PF,
ni: BF,
nis: FF,
nisd: UF,
niv: GF,
NJcy: qF,
njcy: YF,
nlarr: zF,
nlArr: HF,
nldr: $F,
nlE: VF,
nle: WF,
nleftarrow: KF,
nLeftarrow: QF,
nleftrightarrow: ZF,
nLeftrightarrow: XF,
nleq: JF,
nleqq: jF,
nleqslant: eU,
nles: tU,
nless: rU,
nLl: nU,
nlsim: iU,
nLt: aU,
nlt: oU,
nltri: sU,
nltrie: lU,
nLtv: cU,
nmid: uU,
NoBreak: dU,
NonBreakingSpace: _U,
nopf: mU,
Nopf: pU,
Not: hU,
not: gU,
NotCongruent: fU,
NotCupCap: EU,
NotDoubleVerticalBar: SU,
NotElement: bU,
NotEqual: TU,
NotEqualTilde: vU,
NotExists: CU,
NotGreater: yU,
NotGreaterEqual: RU,
NotGreaterFullEqual: AU,
NotGreaterGreater: NU,
NotGreaterLess: OU,
NotGreaterSlantEqual: IU,
NotGreaterTilde: xU,
NotHumpDownHump: DU,
NotHumpEqual: wU,
notin: MU,
notindot: LU,
notinE: kU,
notinva: PU,
notinvb: BU,
notinvc: FU,
NotLeftTriangleBar: UU,
NotLeftTriangle: GU,
NotLeftTriangleEqual: qU,
NotLess: YU,
NotLessEqual: zU,
NotLessGreater: HU,
NotLessLess: $U,
NotLessSlantEqual: VU,
NotLessTilde: WU,
NotNestedGreaterGreater: KU,
NotNestedLessLess: QU,
notni: ZU,
notniva: XU,
notnivb: JU,
notnivc: jU,
NotPrecedes: eG,
NotPrecedesEqual: tG,
NotPrecedesSlantEqual: rG,
NotReverseElement: nG,
NotRightTriangleBar: iG,
NotRightTriangle: aG,
NotRightTriangleEqual: oG,
NotSquareSubset: sG,
NotSquareSubsetEqual: lG,
NotSquareSuperset: cG,
NotSquareSupersetEqual: uG,
NotSubset: dG,
NotSubsetEqual: _G,
NotSucceeds: mG,
NotSucceedsEqual: pG,
NotSucceedsSlantEqual: hG,
NotSucceedsTilde: gG,
NotSuperset: fG,
NotSupersetEqual: EG,
NotTilde: SG,
NotTildeEqual: bG,
NotTildeFullEqual: TG,
NotTildeTilde: vG,
NotVerticalBar: CG,
nparallel: yG,
npar: RG,
nparsl: AG,
npart: NG,
npolint: OG,
npr: IG,
nprcue: xG,
nprec: DG,
npreceq: wG,
npre: MG,
nrarrc: LG,
nrarr: kG,
nrArr: PG,
nrarrw: BG,
nrightarrow: FG,
nRightarrow: UG,
nrtri: GG,
nrtrie: qG,
nsc: YG,
nsccue: zG,
nsce: HG,
Nscr: $G,
nscr: VG,
nshortmid: WG,
nshortparallel: KG,
nsim: QG,
nsime: ZG,
nsimeq: XG,
nsmid: JG,
nspar: jG,
nsqsube: eq,
nsqsupe: tq,
nsub: rq,
nsubE: nq,
nsube: iq,
nsubset: aq,
nsubseteq: oq,
nsubseteqq: sq,
nsucc: lq,
nsucceq: cq,
nsup: uq,
nsupE: dq,
nsupe: _q,
nsupset: mq,
nsupseteq: pq,
nsupseteqq: hq,
ntgl: gq,
Ntilde: fq,
ntilde: Eq,
ntlg: Sq,
ntriangleleft: bq,
ntrianglelefteq: Tq,
ntriangleright: vq,
ntrianglerighteq: Cq,
Nu: yq,
nu: Rq,
num: Aq,
numero: Nq,
numsp: Oq,
nvap: Iq,
nvdash: xq,
nvDash: Dq,
nVdash: wq,
nVDash: Mq,
nvge: Lq,
nvgt: kq,
nvHarr: Pq,
nvinfin: Bq,
nvlArr: Fq,
nvle: Uq,
nvlt: Gq,
nvltrie: qq,
nvrArr: Yq,
nvrtrie: zq,
nvsim: Hq,
nwarhk: $q,
nwarr: Vq,
nwArr: Wq,
nwarrow: Kq,
nwnear: Qq,
Oacute: Zq,
oacute: Xq,
oast: Jq,
Ocirc: jq,
ocirc: eY,
ocir: tY,
Ocy: rY,
ocy: nY,
odash: iY,
Odblac: aY,
odblac: oY,
odiv: sY,
odot: lY,
odsold: cY,
OElig: uY,
oelig: dY,
ofcir: _Y,
Ofr: mY,
ofr: pY,
ogon: hY,
Ograve: gY,
ograve: fY,
ogt: EY,
ohbar: SY,
ohm: bY,
oint: TY,
olarr: vY,
olcir: CY,
olcross: yY,
oline: RY,
olt: AY,
Omacr: NY,
omacr: OY,
Omega: IY,
omega: xY,
Omicron: DY,
omicron: wY,
omid: MY,
ominus: LY,
Oopf: kY,
oopf: PY,
opar: BY,
OpenCurlyDoubleQuote: FY,
OpenCurlyQuote: UY,
operp: GY,
oplus: qY,
orarr: YY,
Or: zY,
or: HY,
ord: $Y,
order: VY,
orderof: WY,
ordf: KY,
ordm: QY,
origof: ZY,
oror: XY,
orslope: JY,
orv: jY,
oS: ez,
Oscr: tz,
oscr: rz,
Oslash: nz,
oslash: iz,
osol: az,
Otilde: oz,
otilde: sz,
otimesas: lz,
Otimes: cz,
otimes: uz,
Ouml: dz,
ouml: _z,
ovbar: mz,
OverBar: pz,
OverBrace: hz,
OverBracket: gz,
OverParenthesis: fz,
para: Ez,
parallel: Sz,
par: bz,
parsim: Tz,
parsl: vz,
part: Cz,
PartialD: yz,
Pcy: Rz,
pcy: Az,
percnt: Nz,
period: Oz,
permil: Iz,
perp: xz,
pertenk: Dz,
Pfr: wz,
pfr: Mz,
Phi: Lz,
phi: kz,
phiv: Pz,
phmmat: Bz,
phone: Fz,
Pi: Uz,
pi: Gz,
pitchfork: qz,
piv: Yz,
planck: zz,
planckh: Hz,
plankv: $z,
plusacir: Vz,
plusb: Wz,
pluscir: Kz,
plus: Qz,
plusdo: Zz,
plusdu: Xz,
pluse: Jz,
PlusMinus: jz,
plusmn: eH,
plussim: tH,
plustwo: rH,
pm: nH,
Poincareplane: iH,
pointint: aH,
popf: oH,
Popf: sH,
pound: lH,
prap: cH,
Pr: uH,
pr: dH,
prcue: _H,
precapprox: mH,
prec: pH,
preccurlyeq: hH,
Precedes: gH,
PrecedesEqual: fH,
PrecedesSlantEqual: EH,
PrecedesTilde: SH,
preceq: bH,
precnapprox: TH,
precneqq: vH,
precnsim: CH,
pre: yH,
prE: RH,
precsim: AH,
prime: NH,
Prime: OH,
primes: IH,
prnap: xH,
prnE: DH,
prnsim: wH,
prod: MH,
Product: LH,
profalar: kH,
profline: PH,
profsurf: BH,
prop: FH,
Proportional: UH,
Proportion: GH,
propto: qH,
prsim: YH,
prurel: zH,
Pscr: HH,
pscr: $H,
Psi: VH,
psi: WH,
puncsp: KH,
Qfr: QH,
qfr: ZH,
qint: XH,
qopf: JH,
Qopf: jH,
qprime: e$,
Qscr: t$,
qscr: r$,
quaternions: n$,
quatint: i$,
quest: a$,
questeq: o$,
quot: s$,
QUOT: l$,
rAarr: c$,
race: u$,
Racute: d$,
racute: _$,
radic: m$,
raemptyv: p$,
rang: h$,
Rang: g$,
rangd: f$,
range: E$,
rangle: S$,
raquo: b$,
rarrap: T$,
rarrb: v$,
rarrbfs: C$,
rarrc: y$,
rarr: R$,
Rarr: A$,
rArr: N$,
rarrfs: O$,
rarrhk: I$,
rarrlp: x$,
rarrpl: D$,
rarrsim: w$,
Rarrtl: M$,
rarrtl: L$,
rarrw: k$,
ratail: P$,
rAtail: B$,
ratio: F$,
rationals: U$,
rbarr: G$,
rBarr: q$,
RBarr: Y$,
rbbrk: z$,
rbrace: H$,
rbrack: $$,
rbrke: V$,
rbrksld: W$,
rbrkslu: K$,
Rcaron: Q$,
rcaron: Z$,
Rcedil: X$,
rcedil: J$,
rceil: j$,
rcub: eV,
Rcy: tV,
rcy: rV,
rdca: nV,
rdldhar: iV,
rdquo: aV,
rdquor: oV,
rdsh: sV,
real: lV,
realine: cV,
realpart: uV,
reals: dV,
Re: _V,
rect: mV,
reg: pV,
REG: hV,
ReverseElement: gV,
ReverseEquilibrium: fV,
ReverseUpEquilibrium: EV,
rfisht: SV,
rfloor: bV,
rfr: TV,
Rfr: vV,
rHar: CV,
rhard: yV,
rharu: RV,
rharul: AV,
Rho: NV,
rho: OV,
rhov: IV,
RightAngleBracket: xV,
RightArrowBar: DV,
rightarrow: wV,
RightArrow: MV,
Rightarrow: LV,
RightArrowLeftArrow: kV,
rightarrowtail: PV,
RightCeiling: BV,
RightDoubleBracket: FV,
RightDownTeeVector: UV,
RightDownVectorBar: GV,
RightDownVector: qV,
RightFloor: YV,
rightharpoondown: zV,
rightharpoonup: HV,
rightleftarrows: $V,
rightleftharpoons: VV,
rightrightarrows: WV,
rightsquigarrow: KV,
RightTeeArrow: QV,
RightTee: ZV,
RightTeeVector: XV,
rightthreetimes: JV,
RightTriangleBar: jV,
RightTriangle: eW,
RightTriangleEqual: tW,
RightUpDownVector: rW,
RightUpTeeVector: nW,
RightUpVectorBar: iW,
RightUpVector: aW,
RightVectorBar: oW,
RightVector: sW,
ring: lW,
risingdotseq: cW,
rlarr: uW,
rlhar: dW,
rlm: _W,
rmoustache: mW,
rmoust: pW,
rnmid: hW,
roang: gW,
roarr: fW,
robrk: EW,
ropar: SW,
ropf: bW,
Ropf: TW,
roplus: vW,
rotimes: CW,
RoundImplies: yW,
rpar: RW,
rpargt: AW,
rppolint: NW,
rrarr: OW,
Rrightarrow: IW,
rsaquo: xW,
rscr: DW,
Rscr: wW,
rsh: MW,
Rsh: LW,
rsqb: kW,
rsquo: PW,
rsquor: BW,
rthree: FW,
rtimes: UW,
rtri: GW,
rtrie: qW,
rtrif: YW,
rtriltri: zW,
RuleDelayed: HW,
ruluhar: $W,
rx: VW,
Sacute: WW,
sacute: KW,
sbquo: QW,
scap: ZW,
Scaron: XW,
scaron: JW,
Sc: jW,
sc: eK,
sccue: tK,
sce: rK,
scE: nK,
Scedil: iK,
scedil: aK,
Scirc: oK,
scirc: sK,
scnap: lK,
scnE: cK,
scnsim: uK,
scpolint: dK,
scsim: _K,
Scy: mK,
scy: pK,
sdotb: hK,
sdot: gK,
sdote: fK,
searhk: EK,
searr: SK,
seArr: bK,
searrow: TK,
sect: vK,
semi: CK,
seswar: yK,
setminus: RK,
setmn: AK,
sext: NK,
Sfr: OK,
sfr: IK,
sfrown: xK,
sharp: DK,
SHCHcy: wK,
shchcy: MK,
SHcy: LK,
shcy: kK,
ShortDownArrow: PK,
ShortLeftArrow: BK,
shortmid: FK,
shortparallel: UK,
ShortRightArrow: GK,
ShortUpArrow: qK,
shy: YK,
Sigma: zK,
sigma: HK,
sigmaf: $K,
sigmav: VK,
sim: WK,
simdot: KK,
sime: QK,
simeq: ZK,
simg: XK,
simgE: JK,
siml: jK,
simlE: eQ,
simne: tQ,
simplus: rQ,
simrarr: nQ,
slarr: iQ,
SmallCircle: aQ,
smallsetminus: oQ,
smashp: sQ,
smeparsl: lQ,
smid: cQ,
smile: uQ,
smt: dQ,
smte: _Q,
smtes: mQ,
SOFTcy: pQ,
softcy: hQ,
solbar: gQ,
solb: fQ,
sol: EQ,
Sopf: SQ,
sopf: bQ,
spades: TQ,
spadesuit: vQ,
spar: CQ,
sqcap: yQ,
sqcaps: RQ,
sqcup: AQ,
sqcups: NQ,
Sqrt: OQ,
sqsub: IQ,
sqsube: xQ,
sqsubset: DQ,
sqsubseteq: wQ,
sqsup: MQ,
sqsupe: LQ,
sqsupset: kQ,
sqsupseteq: PQ,
square: BQ,
Square: FQ,
SquareIntersection: UQ,
SquareSubset: GQ,
SquareSubsetEqual: qQ,
SquareSuperset: YQ,
SquareSupersetEqual: zQ,
SquareUnion: HQ,
squarf: $Q,
squ: VQ,
squf: WQ,
srarr: KQ,
Sscr: QQ,
sscr: ZQ,
ssetmn: XQ,
ssmile: JQ,
sstarf: jQ,
Star: eZ,
star: tZ,
starf: rZ,
straightepsilon: nZ,
straightphi: iZ,
strns: aZ,
sub: oZ,
Sub: sZ,
subdot: lZ,
subE: cZ,
sube: uZ,
subedot: dZ,
submult: _Z,
subnE: mZ,
subne: pZ,
subplus: hZ,
subrarr: gZ,
subset: fZ,
Subset: EZ,
subseteq: SZ,
subseteqq: bZ,
SubsetEqual: TZ,
subsetneq: vZ,
subsetneqq: CZ,
subsim: yZ,
subsub: RZ,
subsup: AZ,
succapprox: NZ,
succ: OZ,
succcurlyeq: IZ,
Succeeds: xZ,
SucceedsEqual: DZ,
SucceedsSlantEqual: wZ,
SucceedsTilde: MZ,
succeq: LZ,
succnapprox: kZ,
succneqq: PZ,
succnsim: BZ,
succsim: FZ,
SuchThat: UZ,
sum: GZ,
Sum: qZ,
sung: YZ,
sup1: zZ,
sup2: HZ,
sup3: $Z,
sup: VZ,
Sup: WZ,
supdot: KZ,
supdsub: QZ,
supE: ZZ,
supe: XZ,
supedot: JZ,
Superset: jZ,
SupersetEqual: eX,
suphsol: tX,
suphsub: rX,
suplarr: nX,
supmult: iX,
supnE: aX,
supne: oX,
supplus: sX,
supset: lX,
Supset: cX,
supseteq: uX,
supseteqq: dX,
supsetneq: _X,
supsetneqq: mX,
supsim: pX,
supsub: hX,
supsup: gX,
swarhk: fX,
swarr: EX,
swArr: SX,
swarrow: bX,
swnwar: TX,
szlig: vX,
Tab: CX,
target: yX,
Tau: RX,
tau: AX,
tbrk: NX,
Tcaron: OX,
tcaron: IX,
Tcedil: xX,
tcedil: DX,
Tcy: wX,
tcy: MX,
tdot: LX,
telrec: kX,
Tfr: PX,
tfr: BX,
there4: FX,
therefore: UX,
Therefore: GX,
Theta: qX,
theta: YX,
thetasym: zX,
thetav: HX,
thickapprox: $X,
thicksim: VX,
ThickSpace: WX,
ThinSpace: KX,
thinsp: QX,
thkap: ZX,
thksim: XX,
THORN: JX,
thorn: jX,
tilde: eJ,
Tilde: tJ,
TildeEqual: rJ,
TildeFullEqual: nJ,
TildeTilde: iJ,
timesbar: aJ,
timesb: oJ,
times: sJ,
timesd: lJ,
tint: cJ,
toea: uJ,
topbot: dJ,
topcir: _J,
top: mJ,
Topf: pJ,
topf: hJ,
topfork: gJ,
tosa: fJ,
tprime: EJ,
trade: SJ,
TRADE: bJ,
triangle: TJ,
triangledown: vJ,
triangleleft: CJ,
trianglelefteq: yJ,
triangleq: RJ,
triangleright: AJ,
trianglerighteq: NJ,
tridot: OJ,
trie: IJ,
triminus: xJ,
TripleDot: DJ,
triplus: wJ,
trisb: MJ,
tritime: LJ,
trpezium: kJ,
Tscr: PJ,
tscr: BJ,
TScy: FJ,
tscy: UJ,
TSHcy: GJ,
tshcy: qJ,
Tstrok: YJ,
tstrok: zJ,
twixt: HJ,
twoheadleftarrow: $J,
twoheadrightarrow: VJ,
Uacute: WJ,
uacute: KJ,
uarr: QJ,
Uarr: ZJ,
uArr: XJ,
Uarrocir: JJ,
Ubrcy: jJ,
ubrcy: ej,
Ubreve: tj,
ubreve: rj,
Ucirc: nj,
ucirc: ij,
Ucy: aj,
ucy: oj,
udarr: sj,
Udblac: lj,
udblac: cj,
udhar: uj,
ufisht: dj,
Ufr: _j,
ufr: mj,
Ugrave: pj,
ugrave: hj,
uHar: gj,
uharl: fj,
uharr: Ej,
uhblk: Sj,
ulcorn: bj,
ulcorner: Tj,
ulcrop: vj,
ultri: Cj,
Umacr: yj,
umacr: Rj,
uml: Aj,
UnderBar: Nj,
UnderBrace: Oj,
UnderBracket: Ij,
UnderParenthesis: xj,
Union: Dj,
UnionPlus: wj,
Uogon: Mj,
uogon: Lj,
Uopf: kj,
uopf: Pj,
UpArrowBar: Bj,
uparrow: Fj,
UpArrow: Uj,
Uparrow: Gj,
UpArrowDownArrow: qj,
updownarrow: Yj,
UpDownArrow: zj,
Updownarrow: Hj,
UpEquilibrium: $j,
upharpoonleft: Vj,
upharpoonright: Wj,
uplus: Kj,
UpperLeftArrow: Qj,
UpperRightArrow: Zj,
upsi: Xj,
Upsi: Jj,
upsih: jj,
Upsilon: eee,
upsilon: tee,
UpTeeArrow: ree,
UpTee: nee,
upuparrows: iee,
urcorn: aee,
urcorner: oee,
urcrop: see,
Uring: lee,
uring: cee,
urtri: uee,
Uscr: dee,
uscr: _ee,
utdot: mee,
Utilde: pee,
utilde: hee,
utri: gee,
utrif: fee,
uuarr: Eee,
Uuml: See,
uuml: bee,
uwangle: Tee,
vangrt: vee,
varepsilon: Cee,
varkappa: yee,
varnothing: Ree,
varphi: Aee,
varpi: Nee,
varpropto: Oee,
varr: Iee,
vArr: xee,
varrho: Dee,
varsigma: wee,
varsubsetneq: Mee,
varsubsetneqq: Lee,
varsupsetneq: kee,
varsupsetneqq: Pee,
vartheta: Bee,
vartriangleleft: Fee,
vartriangleright: Uee,
vBar: Gee,
Vbar: qee,
vBarv: Yee,
Vcy: zee,
vcy: Hee,
vdash: $ee,
vDash: Vee,
Vdash: Wee,
VDash: Kee,
Vdashl: Qee,
veebar: Zee,
vee: Xee,
Vee: Jee,
veeeq: jee,
vellip: ete,
verbar: tte,
Verbar: rte,
vert: nte,
Vert: ite,
VerticalBar: ate,
VerticalLine: ote,
VerticalSeparator: ste,
VerticalTilde: lte,
VeryThinSpace: cte,
Vfr: ute,
vfr: dte,
vltri: _te,
vnsub: mte,
vnsup: pte,
Vopf: hte,
vopf: gte,
vprop: fte,
vrtri: Ete,
Vscr: Ste,
vscr: bte,
vsubnE: Tte,
vsubne: vte,
vsupnE: Cte,
vsupne: yte,
Vvdash: Rte,
vzigzag: Ate,
Wcirc: Nte,
wcirc: Ote,
wedbar: Ite,
wedge: xte,
Wedge: Dte,
wedgeq: wte,
weierp: Mte,
Wfr: Lte,
wfr: kte,
Wopf: Pte,
wopf: Bte,
wp: Fte,
wr: Ute,
wreath: Gte,
Wscr: qte,
wscr: Yte,
xcap: zte,
xcirc: Hte,
xcup: $te,
xdtri: Vte,
Xfr: Wte,
xfr: Kte,
xharr: Qte,
xhArr: Zte,
Xi: Xte,
xi: Jte,
xlarr: jte,
xlArr: ere,
xmap: tre,
xnis: rre,
xodot: nre,
Xopf: ire,
xopf: are,
xoplus: ore,
xotime: sre,
xrarr: lre,
xrArr: cre,
Xscr: ure,
xscr: dre,
xsqcup: _re,
xuplus: mre,
xutri: pre,
xvee: hre,
xwedge: gre,
Yacute: fre,
yacute: Ere,
YAcy: Sre,
yacy: bre,
Ycirc: Tre,
ycirc: vre,
Ycy: Cre,
ycy: yre,
yen: Rre,
Yfr: Are,
yfr: Nre,
YIcy: Ore,
yicy: Ire,
Yopf: xre,
yopf: Dre,
Yscr: wre,
yscr: Mre,
YUcy: Lre,
yucy: kre,
yuml: Pre,
Yuml: Bre,
Zacute: Fre,
zacute: Ure,
Zcaron: Gre,
zcaron: qre,
Zcy: Yre,
zcy: zre,
Zdot: Hre,
zdot: $re,
zeetrf: Vre,
ZeroWidthSpace: Wre,
Zeta: Kre,
zeta: Qre,
zfr: Zre,
Zfr: Xre,
ZHcy: Jre,
zhcy: jre,
zigrarr: ene,
zopf: tne,
Zopf: rne,
Zscr: nne,
zscr: ine,
zwj: ane,
zwnj: one,
};
(function (t) {
t.exports = sne;
})(zR);
var cm =
/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,
Bi = {},
y0 = {};
function lne(t) {
var e,
r,
n = y0[t];
if (n) return n;
for (n = y0[t] = [], e = 0; e < 128; e++)
(r = String.fromCharCode(e)), /^[0-9a-z]$/i.test(r) ? n.push(r) : n.push('%' + ('0' + e.toString(16).toUpperCase()).slice(-2));
for (e = 0; e < t.length; e++) n[t.charCodeAt(e)] = t[e];
return n;
}
function ls(t, e, r) {
var n,
i,
a,
l,
u,
d = '';
for (typeof e != 'string' && ((r = e), (e = ls.defaultChars)), typeof r > 'u' && (r = !0), u = lne(e), n = 0, i = t.length; n < i; n++) {
if (((a = t.charCodeAt(n)), r && a === 37 && n + 2 < i && /^[0-9a-f]{2}$/i.test(t.slice(n + 1, n + 3)))) {
(d += t.slice(n, n + 3)), (n += 2);
continue;
}
if (a < 128) {
d += u[a];
continue;
}
if (a >= 55296 && a <= 57343) {
if (a >= 55296 && a <= 56319 && n + 1 < i && ((l = t.charCodeAt(n + 1)), l >= 56320 && l <= 57343)) {
(d += encodeURIComponent(t[n] + t[n + 1])), n++;
continue;
}
d += '%EF%BF%BD';
continue;
}
d += encodeURIComponent(t[n]);
}
return d;
}
ls.defaultChars = ";/?:@&=+$,-_.!~*'()#";
ls.componentChars = "-_.!~*'()";
var cne = ls,
R0 = {};
function une(t) {
var e,
r,
n = R0[t];
if (n) return n;
for (n = R0[t] = [], e = 0; e < 128; e++) (r = String.fromCharCode(e)), n.push(r);
for (e = 0; e < t.length; e++) (r = t.charCodeAt(e)), (n[r] = '%' + ('0' + r.toString(16).toUpperCase()).slice(-2));
return n;
}
function cs(t, e) {
var r;
return (
typeof e != 'string' && (e = cs.defaultChars),
(r = une(e)),
t.replace(/(%[a-f0-9]{2})+/gi, function (n) {
var i,
a,
l,
u,
d,
m,
p,
E = '';
for (i = 0, a = n.length; i < a; i += 3) {
if (((l = parseInt(n.slice(i + 1, i + 3), 16)), l < 128)) {
E += r[l];
continue;
}
if ((l & 224) === 192 && i + 3 < a && ((u = parseInt(n.slice(i + 4, i + 6), 16)), (u & 192) === 128)) {
(p = ((l << 6) & 1984) | (u & 63)), p < 128 ? (E += '��') : (E += String.fromCharCode(p)), (i += 3);
continue;
}
if (
(l & 240) === 224 &&
i + 6 < a &&
((u = parseInt(n.slice(i + 4, i + 6), 16)), (d = parseInt(n.slice(i + 7, i + 9), 16)), (u & 192) === 128 && (d & 192) === 128)
) {
(p = ((l << 12) & 61440) | ((u << 6) & 4032) | (d & 63)),
p < 2048 || (p >= 55296 && p <= 57343) ? (E += '���') : (E += String.fromCharCode(p)),
(i += 6);
continue;
}
if (
(l & 248) === 240 &&
i + 9 < a &&
((u = parseInt(n.slice(i + 4, i + 6), 16)),
(d = parseInt(n.slice(i + 7, i + 9), 16)),
(m = parseInt(n.slice(i + 10, i + 12), 16)),
(u & 192) === 128 && (d & 192) === 128 && (m & 192) === 128)
) {
(p = ((l << 18) & 1835008) | ((u << 12) & 258048) | ((d << 6) & 4032) | (m & 63)),
p < 65536 || p > 1114111 ? (E += '����') : ((p -= 65536), (E += String.fromCharCode(55296 + (p >> 10), 56320 + (p & 1023)))),
(i += 9);
continue;
}
E += '�';
}
return E;
})
);
}
cs.defaultChars = ';/?:@&=+$,#';
cs.componentChars = '';
var dne = cs,
_ne = function (e) {
var r = '';
return (
(r += e.protocol || ''),
(r += e.slashes ? '//' : ''),
(r += e.auth ? e.auth + '@' : ''),
e.hostname && e.hostname.indexOf(':') !== -1 ? (r += '[' + e.hostname + ']') : (r += e.hostname || ''),
(r += e.port ? ':' + e.port : ''),
(r += e.pathname || ''),
(r += e.search || ''),
(r += e.hash || ''),
r
);
};
function Fo() {
(this.protocol = null),
(this.slashes = null),
(this.auth = null),
(this.port = null),
(this.hostname = null),
(this.hash = null),
(this.search = null),
(this.pathname = null);
}
var mne = /^([a-z0-9.+-]+:)/i,
pne = /:[0-9]*$/,
hne = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
gne = [
'<',
'>',
'"',
'`',
' ',
'\r',
`
`,
' ',
],
fne = ['{', '}', '|', '\\', '^', '`'].concat(gne),
Ene = ["'"].concat(fne),
A0 = ['%', '/', '?', ';', '#'].concat(Ene),
N0 = ['/', '?', '#'],
Sne = 255,
O0 = /^[+a-z0-9A-Z_-]{0,63}$/,
bne = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
I0 = { javascript: !0, 'javascript:': !0 },
x0 = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, 'http:': !0, 'https:': !0, 'ftp:': !0, 'gopher:': !0, 'file:': !0 };
function Tne(t, e) {
if (t && t instanceof Fo) return t;
var r = new Fo();
return r.parse(t, e), r;
}
Fo.prototype.parse = function (t, e) {
var r,
n,
i,
a,
l,
u = t;
if (((u = u.trim()), !e && t.split('#').length === 1)) {
var d = hne.exec(u);
if (d) return (this.pathname = d[1]), d[2] && (this.search = d[2]), this;
}
var m = mne.exec(u);
if (
(m && ((m = m[0]), (i = m.toLowerCase()), (this.protocol = m), (u = u.substr(m.length))),
(e || m || u.match(/^\/\/[^@\/]+@[^@\/]+/)) && ((l = u.substr(0, 2) === '//'), l && !(m && I0[m]) && ((u = u.substr(2)), (this.slashes = !0))),
!I0[m] && (l || (m && !x0[m])))
) {
var p = -1;
for (r = 0; r < N0.length; r++) (a = u.indexOf(N0[r])), a !== -1 && (p === -1 || a < p) && (p = a);
var E, f;
for (
p === -1 ? (f = u.lastIndexOf('@')) : (f = u.lastIndexOf('@', p)),
f !== -1 && ((E = u.slice(0, f)), (u = u.slice(f + 1)), (this.auth = E)),
p = -1,
r = 0;
r < A0.length;
r++
)
(a = u.indexOf(A0[r])), a !== -1 && (p === -1 || a < p) && (p = a);
p === -1 && (p = u.length), u[p - 1] === ':' && p--;
var v = u.slice(0, p);
(u = u.slice(p)), this.parseHost(v), (this.hostname = this.hostname || '');
var R = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']';
if (!R) {
var O = this.hostname.split(/\./);
for (r = 0, n = O.length; r < n; r++) {
var M = O[r];
if (M && !M.match(O0)) {
for (var w = '', D = 0, F = M.length; D < F; D++) M.charCodeAt(D) > 127 ? (w += 'x') : (w += M[D]);
if (!w.match(O0)) {
var Y = O.slice(0, r),
z = O.slice(r + 1),
G = M.match(bne);
G && (Y.push(G[1]), z.unshift(G[2])), z.length && (u = z.join('.') + u), (this.hostname = Y.join('.'));
break;
}
}
}
}
this.hostname.length > Sne && (this.hostname = ''), R && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
}
var X = u.indexOf('#');
X !== -1 && ((this.hash = u.substr(X)), (u = u.slice(0, X)));
var ne = u.indexOf('?');
return (
ne !== -1 && ((this.search = u.substr(ne)), (u = u.slice(0, ne))),
u && (this.pathname = u),
x0[i] && this.hostname && !this.pathname && (this.pathname = ''),
this
);
};
Fo.prototype.parseHost = function (t) {
var e = pne.exec(t);
e && ((e = e[0]), e !== ':' && (this.port = e.substr(1)), (t = t.substr(0, t.length - e.length))), t && (this.hostname = t);
};
var vne = Tne;
Bi.encode = cne;
Bi.decode = dne;
Bi.format = _ne;
Bi.parse = vne;
var $n = {},
yl,
D0;
function pb() {
return (
D0 ||
((D0 = 1),
(yl = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)),
yl
);
}
var Rl, w0;
function hb() {
return w0 || ((w0 = 1), (Rl = /[\0-\x1F\x7F-\x9F]/)), Rl;
}
var Al, M0;
function Cne() {
return (
M0 ||
((M0 = 1),
(Al =
/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/)),
Al
);
}
var Nl, L0;
function gb() {
return L0 || ((L0 = 1), (Nl = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)), Nl;
}
var k0;
function yne() {
return k0 || ((k0 = 1), ($n.Any = pb()), ($n.Cc = hb()), ($n.Cf = Cne()), ($n.P = cm), ($n.Z = gb())), $n;
}
(function (t) {
function e(H) {
return Object.prototype.toString.call(H);
}
function r(H) {
return e(H) === '[object String]';
}
var n = Object.prototype.hasOwnProperty;
function i(H, re) {
return n.call(H, re);
}
function a(H) {
var re = Array.prototype.slice.call(arguments, 1);
return (
re.forEach(function (P) {
if (P) {
if (typeof P != 'object') throw new TypeError(P + 'must be object');
Object.keys(P).forEach(function (K) {
H[K] = P[K];
});
}
}),
H
);
}
function l(H, re, P) {
return [].concat(H.slice(0, re), P, H.slice(re + 1));
}
function u(H) {
return !(
(H >= 55296 && H <= 57343) ||
(H >= 64976 && H <= 65007) ||
(H & 65535) === 65535 ||
(H & 65535) === 65534 ||
(H >= 0 && H <= 8) ||
H === 11 ||
(H >= 14 && H <= 31) ||
(H >= 127 && H <= 159) ||
H > 1114111
);
}
function d(H) {
if (H > 65535) {
H -= 65536;
var re = 55296 + (H >> 10),
P = 56320 + (H & 1023);
return String.fromCharCode(re, P);
}
return String.fromCharCode(H);
}
var m = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,
p = /&([a-z#][a-z0-9]{1,31});/gi,
E = new RegExp(m.source + '|' + p.source, 'gi'),
f = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,
v = Bo;
function R(H, re) {
var P = 0;
return i(v, re)
? v[re]
: re.charCodeAt(0) === 35 && f.test(re) && ((P = re[1].toLowerCase() === 'x' ? parseInt(re.slice(2), 16) : parseInt(re.slice(1), 10)), u(P))
? d(P)
: H;
}
function O(H) {
return H.indexOf('\\') < 0 ? H : H.replace(m, '$1');
}
function M(H) {
return H.indexOf('\\') < 0 && H.indexOf('&') < 0
? H
: H.replace(E, function (re, P, K) {
return P || R(re, K);
});
}
var w = /[&<>"]/,
D = /[&<>"]/g,
F = { '&': '&', '<': '<', '>': '>', '"': '"' };
function Y(H) {
return F[H];
}
function z(H) {
return w.test(H) ? H.replace(D, Y) : H;
}
var G = /[.?*+^$[\]\\(){}|-]/g;
function X(H) {
return H.replace(G, '\\$&');
}
function ne(H) {
switch (H) {
case 9:
case 32:
return !0;
}
return !1;
}
function ce(H) {
if (H >= 8192 && H <= 8202) return !0;
switch (H) {
case 9:
case 10:
case 11:
case 12:
case 13:
case 32:
case 160:
case 5760:
case 8239:
case 8287:
case 12288:
return !0;
}
return !1;
}
var j = cm;
function Q(H) {
return j.test(H);
}
function Ae(H) {
switch (H) {
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 91:
case 92:
case 93:
case 94:
case 95:
case 96:
case 123:
case 124:
case 125:
case 126:
return !0;
default:
return !1;
}
}
function Oe(H) {
return (H = H.trim().replace(/\s+/g, ' ')), 'ẞ'.toLowerCase() === 'Ṿ' && (H = H.replace(/ẞ/g, 'ß')), H.toLowerCase().toUpperCase();
}
(t.lib = {}),
(t.lib.mdurl = Bi),
(t.lib.ucmicro = yne()),
(t.assign = a),
(t.isString = r),
(t.has = i),
(t.unescapeMd = O),
(t.unescapeAll = M),
(t.isValidEntityCode = u),
(t.fromCodePoint = d),
(t.escapeHtml = z),
(t.arrayReplaceAt = l),
(t.isSpace = ne),
(t.isWhiteSpace = ce),
(t.isMdAsciiPunct = Ae),
(t.isPunctChar = Q),
(t.escapeRE = X),
(t.normalizeReference = Oe);
})(ct);
var us = {},
Rne = function (e, r, n) {
var i,
a,
l,
u,
d = -1,
m = e.posMax,
p = e.pos;
for (e.pos = r + 1, i = 1; e.pos < m; ) {
if (((l = e.src.charCodeAt(e.pos)), l === 93 && (i--, i === 0))) {
a = !0;
break;
}
if (((u = e.pos), e.md.inline.skipToken(e), l === 91)) {
if (u === e.pos - 1) i++;
else if (n) return (e.pos = p), -1;
}
}
return a && (d = e.pos), (e.pos = p), d;
},
P0 = ct.unescapeAll,
Ane = function (e, r, n) {
var i,
a,
l = 0,
u = r,
d = { ok: !1, pos: 0, lines: 0, str: '' };
if (e.charCodeAt(r) === 60) {
for (r++; r < n; ) {
if (((i = e.charCodeAt(r)), i === 10 || i === 60)) return d;
if (i === 62) return (d.pos = r + 1), (d.str = P0(e.slice(u + 1, r))), (d.ok = !0), d;
if (i === 92 && r + 1 < n) {
r += 2;
continue;
}
r++;
}
return d;
}
for (a = 0; r < n && ((i = e.charCodeAt(r)), !(i === 32 || i < 32 || i === 127)); ) {
if (i === 92 && r + 1 < n) {
if (e.charCodeAt(r + 1) === 32) break;
r += 2;
continue;
}
if (i === 40 && (a++, a > 32)) return d;
if (i === 41) {
if (a === 0) break;
a--;
}
r++;
}
return u === r || a !== 0 || ((d.str = P0(e.slice(u, r))), (d.lines = l), (d.pos = r), (d.ok = !0)), d;
},
Nne = ct.unescapeAll,
One = function (e, r, n) {
var i,
a,
l = 0,
u = r,
d = { ok: !1, pos: 0, lines: 0, str: '' };
if (r >= n || ((a = e.charCodeAt(r)), a !== 34 && a !== 39 && a !== 40)) return d;
for (r++, a === 40 && (a = 41); r < n; ) {
if (((i = e.charCodeAt(r)), i === a)) return (d.pos = r + 1), (d.lines = l), (d.str = Nne(e.slice(u + 1, r))), (d.ok = !0), d;
if (i === 40 && a === 41) return d;
i === 10 ? l++ : i === 92 && r + 1 < n && (r++, e.charCodeAt(r) === 10 && l++), r++;
}
return d;
};
us.parseLinkLabel = Rne;
us.parseLinkDestination = Ane;
us.parseLinkTitle = One;
var Ine = ct.assign,
xne = ct.unescapeAll,
jn = ct.escapeHtml,
ln = {};
ln.code_inline = function (t, e, r, n, i) {
var a = t[e];
return '' + jn(t[e].content) + '';
};
ln.code_block = function (t, e, r, n, i) {
var a = t[e];
return (
'
' +
jn(t[e].content) +
`
`
);
};
ln.fence = function (t, e, r, n, i) {
var a = t[e],
l = a.info ? xne(a.info).trim() : '',
u = '',
d = '',
m,
p,
E,
f,
v;
return (
l && ((E = l.split(/(\s+)/g)), (u = E[0]), (d = E.slice(2).join(''))),
r.highlight ? (m = r.highlight(a.content, u, d) || jn(a.content)) : (m = jn(a.content)),
m.indexOf('' +
m +
`
`)
: '' +
m +
`
`
);
};
ln.image = function (t, e, r, n, i) {
var a = t[e];
return (a.attrs[a.attrIndex('alt')][1] = i.renderInlineAsText(a.children, r, n)), i.renderToken(t, e, r);
};
ln.hardbreak = function (t, e, r) {
return r.xhtmlOut
? `
`
: `
`;
};
ln.softbreak = function (t, e, r) {
return r.breaks
? r.xhtmlOut
? `
`
: `
`
: `
`;
};
ln.text = function (t, e) {
return jn(t[e].content);
};
ln.html_block = function (t, e) {
return t[e].content;
};
ln.html_inline = function (t, e) {
return t[e].content;
};
function Fi() {
this.rules = Ine({}, ln);
}
Fi.prototype.renderAttrs = function (e) {
var r, n, i;
if (!e.attrs) return '';
for (i = '', r = 0, n = e.attrs.length; r < n; r++) i += ' ' + jn(e.attrs[r][0]) + '="' + jn(e.attrs[r][1]) + '"';
return i;
};
Fi.prototype.renderToken = function (e, r, n) {
var i,
a = '',
l = !1,
u = e[r];
return u.hidden
? ''
: (u.block &&
u.nesting !== -1 &&
r &&
e[r - 1].hidden &&
(a += `
`),
(a += (u.nesting === -1 ? '' : '<') + u.tag),
(a += this.renderAttrs(u)),
u.nesting === 0 && n.xhtmlOut && (a += ' /'),
u.block &&
((l = !0),
u.nesting === 1 &&
r + 1 < e.length &&
((i = e[r + 1]), (i.type === 'inline' || i.hidden || (i.nesting === -1 && i.tag === u.tag)) && (l = !1))),
(a += l
? `>
`
: '>'),
a);
};
Fi.prototype.renderInline = function (t, e, r) {
for (var n, i = '', a = this.rules, l = 0, u = t.length; l < u; l++)
(n = t[l].type), typeof a[n] < 'u' ? (i += a[n](t, l, e, r, this)) : (i += this.renderToken(t, l, e));
return i;
};
Fi.prototype.renderInlineAsText = function (t, e, r) {
for (var n = '', i = 0, a = t.length; i < a; i++)
t[i].type === 'text'
? (n += t[i].content)
: t[i].type === 'image'
? (n += this.renderInlineAsText(t[i].children, e, r))
: t[i].type === 'softbreak' &&
(n += `
`);
return n;
};
Fi.prototype.render = function (t, e, r) {
var n,
i,
a,
l = '',
u = this.rules;
for (n = 0, i = t.length; n < i; n++)
(a = t[n].type),
a === 'inline'
? (l += this.renderInline(t[n].children, e, r))
: typeof u[a] < 'u'
? (l += u[t[n].type](t, n, e, r, this))
: (l += this.renderToken(t, n, e, r));
return l;
};
var Dne = Fi;
function zr() {
(this.__rules__ = []), (this.__cache__ = null);
}
zr.prototype.__find__ = function (t) {
for (var e = 0; e < this.__rules__.length; e++) if (this.__rules__[e].name === t) return e;
return -1;
};
zr.prototype.__compile__ = function () {
var t = this,
e = [''];
t.__rules__.forEach(function (r) {
r.enabled &&
r.alt.forEach(function (n) {
e.indexOf(n) < 0 && e.push(n);
});
}),
(t.__cache__ = {}),
e.forEach(function (r) {
(t.__cache__[r] = []),
t.__rules__.forEach(function (n) {
n.enabled && ((r && n.alt.indexOf(r) < 0) || t.__cache__[r].push(n.fn));
});
});
};
zr.prototype.at = function (t, e, r) {
var n = this.__find__(t),
i = r || {};
if (n === -1) throw new Error('Parser rule not found: ' + t);
(this.__rules__[n].fn = e), (this.__rules__[n].alt = i.alt || []), (this.__cache__ = null);
};
zr.prototype.before = function (t, e, r, n) {
var i = this.__find__(t),
a = n || {};
if (i === -1) throw new Error('Parser rule not found: ' + t);
this.__rules__.splice(i, 0, { name: e, enabled: !0, fn: r, alt: a.alt || [] }), (this.__cache__ = null);
};
zr.prototype.after = function (t, e, r, n) {
var i = this.__find__(t),
a = n || {};
if (i === -1) throw new Error('Parser rule not found: ' + t);
this.__rules__.splice(i + 1, 0, { name: e, enabled: !0, fn: r, alt: a.alt || [] }), (this.__cache__ = null);
};
zr.prototype.push = function (t, e, r) {
var n = r || {};
this.__rules__.push({ name: t, enabled: !0, fn: e, alt: n.alt || [] }), (this.__cache__ = null);
};
zr.prototype.enable = function (t, e) {
Array.isArray(t) || (t = [t]);
var r = [];
return (
t.forEach(function (n) {
var i = this.__find__(n);
if (i < 0) {
if (e) return;
throw new Error('Rules manager: invalid rule name ' + n);
}
(this.__rules__[i].enabled = !0), r.push(n);
}, this),
(this.__cache__ = null),
r
);
};
zr.prototype.enableOnly = function (t, e) {
Array.isArray(t) || (t = [t]),
this.__rules__.forEach(function (r) {
r.enabled = !1;
}),
this.enable(t, e);
};
zr.prototype.disable = function (t, e) {
Array.isArray(t) || (t = [t]);
var r = [];
return (
t.forEach(function (n) {
var i = this.__find__(n);
if (i < 0) {
if (e) return;
throw new Error('Rules manager: invalid rule name ' + n);
}
(this.__rules__[i].enabled = !1), r.push(n);
}, this),
(this.__cache__ = null),
r
);
};
zr.prototype.getRules = function (t) {
return this.__cache__ === null && this.__compile__(), this.__cache__[t] || [];
};
var um = zr,
wne = /\r\n?|\n/g,
Mne = /\0/g,
Lne = function (e) {
var r;
(r = e.src.replace(
wne,
`
`
)),
(r = r.replace(Mne, '�')),
(e.src = r);
},
kne = function (e) {
var r;
e.inlineMode
? ((r = new e.Token('inline', '', 0)), (r.content = e.src), (r.map = [0, 1]), (r.children = []), e.tokens.push(r))
: e.md.block.parse(e.src, e.md, e.env, e.tokens);
},
Pne = function (e) {
var r = e.tokens,
n,
i,
a;
for (i = 0, a = r.length; i < a; i++) (n = r[i]), n.type === 'inline' && e.md.inline.parse(n.content, e.md, e.env, n.children);
},
Bne = ct.arrayReplaceAt;
function Fne(t) {
return /^\s]/i.test(t);
}
function Une(t) {
return /^<\/a\s*>/i.test(t);
}
var Gne = function (e) {
var r,
n,
i,
a,
l,
u,
d,
m,
p,
E,
f,
v,
R,
O,
M,
w,
D = e.tokens,
F;
if (e.md.options.linkify) {
for (n = 0, i = D.length; n < i; n++)
if (!(D[n].type !== 'inline' || !e.md.linkify.pretest(D[n].content)))
for (a = D[n].children, R = 0, r = a.length - 1; r >= 0; r--) {
if (((u = a[r]), u.type === 'link_close')) {
for (r--; a[r].level !== u.level && a[r].type !== 'link_open'; ) r--;
continue;
}
if (
(u.type === 'html_inline' && (Fne(u.content) && R > 0 && R--, Une(u.content) && R++),
!(R > 0) && u.type === 'text' && e.md.linkify.test(u.content))
) {
for (
p = u.content,
F = e.md.linkify.match(p),
d = [],
v = u.level,
f = 0,
F.length > 0 && F[0].index === 0 && r > 0 && a[r - 1].type === 'text_special' && (F = F.slice(1)),
m = 0;
m < F.length;
m++
)
(O = F[m].url),
(M = e.md.normalizeLink(O)),
e.md.validateLink(M) &&
((w = F[m].text),
F[m].schema
? F[m].schema === 'mailto:' && !/^mailto:/i.test(w)
? (w = e.md.normalizeLinkText('mailto:' + w).replace(/^mailto:/, ''))
: (w = e.md.normalizeLinkText(w))
: (w = e.md.normalizeLinkText('http://' + w).replace(/^http:\/\//, '')),
(E = F[m].index),
E > f && ((l = new e.Token('text', '', 0)), (l.content = p.slice(f, E)), (l.level = v), d.push(l)),
(l = new e.Token('link_open', 'a', 1)),
(l.attrs = [['href', M]]),
(l.level = v++),
(l.markup = 'linkify'),
(l.info = 'auto'),
d.push(l),
(l = new e.Token('text', '', 0)),
(l.content = w),
(l.level = v),
d.push(l),
(l = new e.Token('link_close', 'a', -1)),
(l.level = --v),
(l.markup = 'linkify'),
(l.info = 'auto'),
d.push(l),
(f = F[m].lastIndex));
f < p.length && ((l = new e.Token('text', '', 0)), (l.content = p.slice(f)), (l.level = v), d.push(l)),
(D[n].children = a = Bne(a, r, d));
}
}
}
},
fb = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/,
qne = /\((c|tm|r)\)/i,
Yne = /\((c|tm|r)\)/gi,
zne = { c: '©', r: '®', tm: '™' };
function Hne(t, e) {
return zne[e.toLowerCase()];
}
function $ne(t) {
var e,
r,
n = 0;
for (e = t.length - 1; e >= 0; e--)
(r = t[e]),
r.type === 'text' && !n && (r.content = r.content.replace(Yne, Hne)),
r.type === 'link_open' && r.info === 'auto' && n--,
r.type === 'link_close' && r.info === 'auto' && n++;
}
function Vne(t) {
var e,
r,
n = 0;
for (e = t.length - 1; e >= 0; e--)
(r = t[e]),
r.type === 'text' &&
!n &&
fb.test(r.content) &&
(r.content = r.content
.replace(/\+-/g, '±')
.replace(/\.{2,}/g, '…')
.replace(/([?!])…/g, '$1..')
.replace(/([?!]){4,}/g, '$1$1$1')
.replace(/,{2,}/g, ',')
.replace(/(^|[^-])---(?=[^-]|$)/gm, '$1—')
.replace(/(^|\s)--(?=\s|$)/gm, '$1–')
.replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, '$1–')),
r.type === 'link_open' && r.info === 'auto' && n--,
r.type === 'link_close' && r.info === 'auto' && n++;
}
var Wne = function (e) {
var r;
if (e.md.options.typographer)
for (r = e.tokens.length - 1; r >= 0; r--)
e.tokens[r].type === 'inline' &&
(qne.test(e.tokens[r].content) && $ne(e.tokens[r].children), fb.test(e.tokens[r].content) && Vne(e.tokens[r].children));
},
B0 = ct.isWhiteSpace,
F0 = ct.isPunctChar,
U0 = ct.isMdAsciiPunct,
Kne = /['"]/,
G0 = /['"]/g,
q0 = '’';
function ao(t, e, r) {
return t.slice(0, e) + r + t.slice(e + 1);
}
function Qne(t, e) {
var r, n, i, a, l, u, d, m, p, E, f, v, R, O, M, w, D, F, Y, z, G;
for (Y = [], r = 0; r < t.length; r++) {
for (n = t[r], d = t[r].level, D = Y.length - 1; D >= 0 && !(Y[D].level <= d); D--);
if (((Y.length = D + 1), n.type === 'text')) {
(i = n.content), (l = 0), (u = i.length);
e: for (; l < u && ((G0.lastIndex = l), (a = G0.exec(i)), !!a); ) {
if (((M = w = !0), (l = a.index + 1), (F = a[0] === "'"), (p = 32), a.index - 1 >= 0)) p = i.charCodeAt(a.index - 1);
else
for (D = r - 1; D >= 0 && !(t[D].type === 'softbreak' || t[D].type === 'hardbreak'); D--)
if (t[D].content) {
p = t[D].content.charCodeAt(t[D].content.length - 1);
break;
}
if (((E = 32), l < u)) E = i.charCodeAt(l);
else
for (D = r + 1; D < t.length && !(t[D].type === 'softbreak' || t[D].type === 'hardbreak'); D++)
if (t[D].content) {
E = t[D].content.charCodeAt(0);
break;
}
if (
((f = U0(p) || F0(String.fromCharCode(p))),
(v = U0(E) || F0(String.fromCharCode(E))),
(R = B0(p)),
(O = B0(E)),
O ? (M = !1) : v && (R || f || (M = !1)),
R ? (w = !1) : f && (O || v || (w = !1)),
E === 34 && a[0] === '"' && p >= 48 && p <= 57 && (w = M = !1),
M && w && ((M = f), (w = v)),
!M && !w)
) {
F && (n.content = ao(n.content, a.index, q0));
continue;
}
if (w) {
for (D = Y.length - 1; D >= 0 && ((m = Y[D]), !(Y[D].level < d)); D--)
if (m.single === F && Y[D].level === d) {
(m = Y[D]),
F ? ((z = e.md.options.quotes[2]), (G = e.md.options.quotes[3])) : ((z = e.md.options.quotes[0]), (G = e.md.options.quotes[1])),
(n.content = ao(n.content, a.index, G)),
(t[m.token].content = ao(t[m.token].content, m.pos, z)),
(l += G.length - 1),
m.token === r && (l += z.length - 1),
(i = n.content),
(u = i.length),
(Y.length = D);
continue e;
}
}
M ? Y.push({ token: r, pos: a.index, single: F, level: d }) : w && F && (n.content = ao(n.content, a.index, q0));
}
}
}
}
var Zne = function (e) {
var r;
if (e.md.options.typographer)
for (r = e.tokens.length - 1; r >= 0; r--) e.tokens[r].type !== 'inline' || !Kne.test(e.tokens[r].content) || Qne(e.tokens[r].children, e);
},
Xne = function (e) {
var r,
n,
i,
a,
l,
u,
d = e.tokens;
for (r = 0, n = d.length; r < n; r++)
if (d[r].type === 'inline') {
for (i = d[r].children, l = i.length, a = 0; a < l; a++) i[a].type === 'text_special' && (i[a].type = 'text');
for (a = u = 0; a < l; a++)
i[a].type === 'text' && a + 1 < l && i[a + 1].type === 'text'
? (i[a + 1].content = i[a].content + i[a + 1].content)
: (a !== u && (i[u] = i[a]), u++);
a !== u && (i.length = u);
}
};
function Ui(t, e, r) {
(this.type = t),
(this.tag = e),
(this.attrs = null),
(this.map = null),
(this.nesting = r),
(this.level = 0),
(this.children = null),
(this.content = ''),
(this.markup = ''),
(this.info = ''),
(this.meta = null),
(this.block = !1),
(this.hidden = !1);
}
Ui.prototype.attrIndex = function (e) {
var r, n, i;
if (!this.attrs) return -1;
for (r = this.attrs, n = 0, i = r.length; n < i; n++) if (r[n][0] === e) return n;
return -1;
};
Ui.prototype.attrPush = function (e) {
this.attrs ? this.attrs.push(e) : (this.attrs = [e]);
};
Ui.prototype.attrSet = function (e, r) {
var n = this.attrIndex(e),
i = [e, r];
n < 0 ? this.attrPush(i) : (this.attrs[n] = i);
};
Ui.prototype.attrGet = function (e) {
var r = this.attrIndex(e),
n = null;
return r >= 0 && (n = this.attrs[r][1]), n;
};
Ui.prototype.attrJoin = function (e, r) {
var n = this.attrIndex(e);
n < 0 ? this.attrPush([e, r]) : (this.attrs[n][1] = this.attrs[n][1] + ' ' + r);
};
var dm = Ui,
Jne = dm;
function Eb(t, e, r) {
(this.src = t), (this.env = r), (this.tokens = []), (this.inlineMode = !1), (this.md = e);
}
Eb.prototype.Token = Jne;
var jne = Eb,
eie = um,
Ol = [
['normalize', Lne],
['block', kne],
['inline', Pne],
['linkify', Gne],
['replacements', Wne],
['smartquotes', Zne],
['text_join', Xne],
];
function _m() {
this.ruler = new eie();
for (var t = 0; t < Ol.length; t++) this.ruler.push(Ol[t][0], Ol[t][1]);
}
_m.prototype.process = function (t) {
var e, r, n;
for (n = this.ruler.getRules(''), e = 0, r = n.length; e < r; e++) n[e](t);
};
_m.prototype.State = jne;
var tie = _m,
Il = ct.isSpace;
function xl(t, e) {
var r = t.bMarks[e] + t.tShift[e],
n = t.eMarks[e];
return t.src.slice(r, n);
}
function Y0(t) {
var e = [],
r = 0,
n = t.length,
i,
a = !1,
l = 0,
u = '';
for (i = t.charCodeAt(r); r < n; )
i === 124 && (a ? ((u += t.substring(l, r - 1)), (l = r)) : (e.push(u + t.substring(l, r)), (u = ''), (l = r + 1))),
(a = i === 92),
r++,
(i = t.charCodeAt(r));
return e.push(u + t.substring(l)), e;
}
var rie = function (e, r, n, i) {
var a, l, u, d, m, p, E, f, v, R, O, M, w, D, F, Y, z, G;
if (
r + 2 > n ||
((p = r + 1), e.sCount[p] < e.blkIndent) ||
e.sCount[p] - e.blkIndent >= 4 ||
((u = e.bMarks[p] + e.tShift[p]), u >= e.eMarks[p]) ||
((z = e.src.charCodeAt(u++)), z !== 124 && z !== 45 && z !== 58) ||
u >= e.eMarks[p] ||
((G = e.src.charCodeAt(u++)), G !== 124 && G !== 45 && G !== 58 && !Il(G)) ||
(z === 45 && Il(G))
)
return !1;
for (; u < e.eMarks[p]; ) {
if (((a = e.src.charCodeAt(u)), a !== 124 && a !== 45 && a !== 58 && !Il(a))) return !1;
u++;
}
for (l = xl(e, r + 1), E = l.split('|'), R = [], d = 0; d < E.length; d++) {
if (((O = E[d].trim()), !O)) {
if (d === 0 || d === E.length - 1) continue;
return !1;
}
if (!/^:?-+:?$/.test(O)) return !1;
O.charCodeAt(O.length - 1) === 58 ? R.push(O.charCodeAt(0) === 58 ? 'center' : 'right') : O.charCodeAt(0) === 58 ? R.push('left') : R.push('');
}
if (
((l = xl(e, r).trim()),
l.indexOf('|') === -1 ||
e.sCount[r] - e.blkIndent >= 4 ||
((E = Y0(l)), E.length && E[0] === '' && E.shift(), E.length && E[E.length - 1] === '' && E.pop(), (f = E.length), f === 0 || f !== R.length))
)
return !1;
if (i) return !0;
for (
D = e.parentType,
e.parentType = 'table',
Y = e.md.block.ruler.getRules('blockquote'),
v = e.push('table_open', 'table', 1),
v.map = M = [r, 0],
v = e.push('thead_open', 'thead', 1),
v.map = [r, r + 1],
v = e.push('tr_open', 'tr', 1),
v.map = [r, r + 1],
d = 0;
d < E.length;
d++
)
(v = e.push('th_open', 'th', 1)),
R[d] && (v.attrs = [['style', 'text-align:' + R[d]]]),
(v = e.push('inline', '', 0)),
(v.content = E[d].trim()),
(v.children = []),
(v = e.push('th_close', 'th', -1));
for (v = e.push('tr_close', 'tr', -1), v = e.push('thead_close', 'thead', -1), p = r + 2; p < n && !(e.sCount[p] < e.blkIndent); p++) {
for (F = !1, d = 0, m = Y.length; d < m; d++)
if (Y[d](e, p, n, !0)) {
F = !0;
break;
}
if (F || ((l = xl(e, p).trim()), !l) || e.sCount[p] - e.blkIndent >= 4) break;
for (
E = Y0(l),
E.length && E[0] === '' && E.shift(),
E.length && E[E.length - 1] === '' && E.pop(),
p === r + 2 && ((v = e.push('tbody_open', 'tbody', 1)), (v.map = w = [r + 2, 0])),
v = e.push('tr_open', 'tr', 1),
v.map = [p, p + 1],
d = 0;
d < f;
d++
)
(v = e.push('td_open', 'td', 1)),
R[d] && (v.attrs = [['style', 'text-align:' + R[d]]]),
(v = e.push('inline', '', 0)),
(v.content = E[d] ? E[d].trim() : ''),
(v.children = []),
(v = e.push('td_close', 'td', -1));
v = e.push('tr_close', 'tr', -1);
}
return (
w && ((v = e.push('tbody_close', 'tbody', -1)), (w[1] = p)),
(v = e.push('table_close', 'table', -1)),
(M[1] = p),
(e.parentType = D),
(e.line = p),
!0
);
},
nie = function (e, r, n) {
var i, a, l;
if (e.sCount[r] - e.blkIndent < 4) return !1;
for (a = i = r + 1; i < n; ) {
if (e.isEmpty(i)) {
i++;
continue;
}
if (e.sCount[i] - e.blkIndent >= 4) {
i++, (a = i);
continue;
}
break;
}
return (
(e.line = a),
(l = e.push('code_block', 'code', 0)),
(l.content =
e.getLines(r, a, 4 + e.blkIndent, !1) +
`
`),
(l.map = [r, e.line]),
!0
);
},
iie = function (e, r, n, i) {
var a,
l,
u,
d,
m,
p,
E,
f = !1,
v = e.bMarks[r] + e.tShift[r],
R = e.eMarks[r];
if (
e.sCount[r] - e.blkIndent >= 4 ||
v + 3 > R ||
((a = e.src.charCodeAt(v)), a !== 126 && a !== 96) ||
((m = v), (v = e.skipChars(v, a)), (l = v - m), l < 3) ||
((E = e.src.slice(m, v)), (u = e.src.slice(v, R)), a === 96 && u.indexOf(String.fromCharCode(a)) >= 0)
)
return !1;
if (i) return !0;
for (d = r; d++, !(d >= n || ((v = m = e.bMarks[d] + e.tShift[d]), (R = e.eMarks[d]), v < R && e.sCount[d] < e.blkIndent)); )
if (
e.src.charCodeAt(v) === a &&
!(e.sCount[d] - e.blkIndent >= 4) &&
((v = e.skipChars(v, a)), !(v - m < l) && ((v = e.skipSpaces(v)), !(v < R)))
) {
f = !0;
break;
}
return (
(l = e.sCount[r]),
(e.line = d + (f ? 1 : 0)),
(p = e.push('fence', 'code', 0)),
(p.info = u),
(p.content = e.getLines(r + 1, d, l, !0)),
(p.markup = E),
(p.map = [r, e.line]),
!0
);
},
z0 = ct.isSpace,
aie = function (e, r, n, i) {
var a,
l,
u,
d,
m,
p,
E,
f,
v,
R,
O,
M,
w,
D,
F,
Y,
z,
G,
X,
ne,
ce = e.lineMax,
j = e.bMarks[r] + e.tShift[r],
Q = e.eMarks[r];
if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(j++) !== 62) return !1;
if (i) return !0;
for (
d = v = e.sCount[r] + 1,
e.src.charCodeAt(j) === 32
? (j++, d++, v++, (a = !1), (Y = !0))
: e.src.charCodeAt(j) === 9
? ((Y = !0), (e.bsCount[r] + v) % 4 === 3 ? (j++, d++, v++, (a = !1)) : (a = !0))
: (Y = !1),
R = [e.bMarks[r]],
e.bMarks[r] = j;
j < Q && ((l = e.src.charCodeAt(j)), z0(l));
) {
l === 9 ? (v += 4 - ((v + e.bsCount[r] + (a ? 1 : 0)) % 4)) : v++;
j++;
}
for (
O = [e.bsCount[r]],
e.bsCount[r] = e.sCount[r] + 1 + (Y ? 1 : 0),
p = j >= Q,
D = [e.sCount[r]],
e.sCount[r] = v - d,
F = [e.tShift[r]],
e.tShift[r] = j - e.bMarks[r],
G = e.md.block.ruler.getRules('blockquote'),
w = e.parentType,
e.parentType = 'blockquote',
f = r + 1;
f < n && ((ne = e.sCount[f] < e.blkIndent), (j = e.bMarks[f] + e.tShift[f]), (Q = e.eMarks[f]), !(j >= Q));
f++
) {
if (e.src.charCodeAt(j++) === 62 && !ne) {
for (
d = v = e.sCount[f] + 1,
e.src.charCodeAt(j) === 32
? (j++, d++, v++, (a = !1), (Y = !0))
: e.src.charCodeAt(j) === 9
? ((Y = !0), (e.bsCount[f] + v) % 4 === 3 ? (j++, d++, v++, (a = !1)) : (a = !0))
: (Y = !1),
R.push(e.bMarks[f]),
e.bMarks[f] = j;
j < Q && ((l = e.src.charCodeAt(j)), z0(l));
) {
l === 9 ? (v += 4 - ((v + e.bsCount[f] + (a ? 1 : 0)) % 4)) : v++;
j++;
}
(p = j >= Q),
O.push(e.bsCount[f]),
(e.bsCount[f] = e.sCount[f] + 1 + (Y ? 1 : 0)),
D.push(e.sCount[f]),
(e.sCount[f] = v - d),
F.push(e.tShift[f]),
(e.tShift[f] = j - e.bMarks[f]);
continue;
}
if (p) break;
for (z = !1, u = 0, m = G.length; u < m; u++)
if (G[u](e, f, n, !0)) {
z = !0;
break;
}
if (z) {
(e.lineMax = f),
e.blkIndent !== 0 && (R.push(e.bMarks[f]), O.push(e.bsCount[f]), F.push(e.tShift[f]), D.push(e.sCount[f]), (e.sCount[f] -= e.blkIndent));
break;
}
R.push(e.bMarks[f]), O.push(e.bsCount[f]), F.push(e.tShift[f]), D.push(e.sCount[f]), (e.sCount[f] = -1);
}
for (
M = e.blkIndent,
e.blkIndent = 0,
X = e.push('blockquote_open', 'blockquote', 1),
X.markup = '>',
X.map = E = [r, 0],
e.md.block.tokenize(e, r, f),
X = e.push('blockquote_close', 'blockquote', -1),
X.markup = '>',
e.lineMax = ce,
e.parentType = w,
E[1] = e.line,
u = 0;
u < F.length;
u++
)
(e.bMarks[u + r] = R[u]), (e.tShift[u + r] = F[u]), (e.sCount[u + r] = D[u]), (e.bsCount[u + r] = O[u]);
return (e.blkIndent = M), !0;
},
oie = ct.isSpace,
sie = function (e, r, n, i) {
var a,
l,
u,
d,
m = e.bMarks[r] + e.tShift[r],
p = e.eMarks[r];
if (e.sCount[r] - e.blkIndent >= 4 || ((a = e.src.charCodeAt(m++)), a !== 42 && a !== 45 && a !== 95)) return !1;
for (l = 1; m < p; ) {
if (((u = e.src.charCodeAt(m++)), u !== a && !oie(u))) return !1;
u === a && l++;
}
return l < 3
? !1
: (i || ((e.line = r + 1), (d = e.push('hr', 'hr', 0)), (d.map = [r, e.line]), (d.markup = Array(l + 1).join(String.fromCharCode(a)))), !0);
},
Sb = ct.isSpace;
function H0(t, e) {
var r, n, i, a;
return (
(n = t.bMarks[e] + t.tShift[e]),
(i = t.eMarks[e]),
(r = t.src.charCodeAt(n++)),
(r !== 42 && r !== 45 && r !== 43) || (n < i && ((a = t.src.charCodeAt(n)), !Sb(a))) ? -1 : n
);
}
function $0(t, e) {
var r,
n = t.bMarks[e] + t.tShift[e],
i = n,
a = t.eMarks[e];
if (i + 1 >= a || ((r = t.src.charCodeAt(i++)), r < 48 || r > 57)) return -1;
for (;;) {
if (i >= a) return -1;
if (((r = t.src.charCodeAt(i++)), r >= 48 && r <= 57)) {
if (i - n >= 10) return -1;
continue;
}
if (r === 41 || r === 46) break;
return -1;
}
return i < a && ((r = t.src.charCodeAt(i)), !Sb(r)) ? -1 : i;
}
function lie(t, e) {
var r,
n,
i = t.level + 2;
for (r = e + 2, n = t.tokens.length - 2; r < n; r++)
t.tokens[r].level === i && t.tokens[r].type === 'paragraph_open' && ((t.tokens[r + 2].hidden = !0), (t.tokens[r].hidden = !0), (r += 2));
}
var cie = function (e, r, n, i) {
var a,
l,
u,
d,
m,
p,
E,
f,
v,
R,
O,
M,
w,
D,
F,
Y,
z,
G,
X,
ne,
ce,
j,
Q,
Ae,
Oe,
H,
re,
P,
K = !1,
Z = !0;
if (e.sCount[r] - e.blkIndent >= 4 || (e.listIndent >= 0 && e.sCount[r] - e.listIndent >= 4 && e.sCount[r] < e.blkIndent)) return !1;
if ((i && e.parentType === 'paragraph' && e.sCount[r] >= e.blkIndent && (K = !0), (Q = $0(e, r)) >= 0)) {
if (((E = !0), (Oe = e.bMarks[r] + e.tShift[r]), (w = Number(e.src.slice(Oe, Q - 1))), K && w !== 1)) return !1;
} else if ((Q = H0(e, r)) >= 0) E = !1;
else return !1;
if (K && e.skipSpaces(Q) >= e.eMarks[r]) return !1;
if (((M = e.src.charCodeAt(Q - 1)), i)) return !0;
for (
O = e.tokens.length,
E ? ((P = e.push('ordered_list_open', 'ol', 1)), w !== 1 && (P.attrs = [['start', w]])) : (P = e.push('bullet_list_open', 'ul', 1)),
P.map = R = [r, 0],
P.markup = String.fromCharCode(M),
F = r,
Ae = !1,
re = e.md.block.ruler.getRules('list'),
G = e.parentType,
e.parentType = 'list';
F < n;
) {
for (j = Q, D = e.eMarks[F], p = Y = e.sCount[F] + Q - (e.bMarks[r] + e.tShift[r]); j < D; ) {
if (((a = e.src.charCodeAt(j)), a === 9)) Y += 4 - ((Y + e.bsCount[F]) % 4);
else if (a === 32) Y++;
else break;
j++;
}
if (
((l = j),
l >= D ? (m = 1) : (m = Y - p),
m > 4 && (m = 1),
(d = p + m),
(P = e.push('list_item_open', 'li', 1)),
(P.markup = String.fromCharCode(M)),
(P.map = f = [r, 0]),
E && (P.info = e.src.slice(Oe, Q - 1)),
(ce = e.tight),
(ne = e.tShift[r]),
(X = e.sCount[r]),
(z = e.listIndent),
(e.listIndent = e.blkIndent),
(e.blkIndent = d),
(e.tight = !0),
(e.tShift[r] = l - e.bMarks[r]),
(e.sCount[r] = Y),
l >= D && e.isEmpty(r + 1) ? (e.line = Math.min(e.line + 2, n)) : e.md.block.tokenize(e, r, n, !0),
(!e.tight || Ae) && (Z = !1),
(Ae = e.line - r > 1 && e.isEmpty(e.line - 1)),
(e.blkIndent = e.listIndent),
(e.listIndent = z),
(e.tShift[r] = ne),
(e.sCount[r] = X),
(e.tight = ce),
(P = e.push('list_item_close', 'li', -1)),
(P.markup = String.fromCharCode(M)),
(F = r = e.line),
(f[1] = F),
(l = e.bMarks[r]),
F >= n || e.sCount[F] < e.blkIndent || e.sCount[r] - e.blkIndent >= 4)
)
break;
for (H = !1, u = 0, v = re.length; u < v; u++)
if (re[u](e, F, n, !0)) {
H = !0;
break;
}
if (H) break;
if (E) {
if (((Q = $0(e, F)), Q < 0)) break;
Oe = e.bMarks[F] + e.tShift[F];
} else if (((Q = H0(e, F)), Q < 0)) break;
if (M !== e.src.charCodeAt(Q - 1)) break;
}
return (
E ? (P = e.push('ordered_list_close', 'ol', -1)) : (P = e.push('bullet_list_close', 'ul', -1)),
(P.markup = String.fromCharCode(M)),
(R[1] = F),
(e.line = F),
(e.parentType = G),
Z && lie(e, O),
!0
);
},
uie = ct.normalizeReference,
oo = ct.isSpace,
die = function (e, r, n, i) {
var a,
l,
u,
d,
m,
p,
E,
f,
v,
R,
O,
M,
w,
D,
F,
Y,
z = 0,
G = e.bMarks[r] + e.tShift[r],
X = e.eMarks[r],
ne = r + 1;
if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(G) !== 91) return !1;
for (; ++G < X; )
if (e.src.charCodeAt(G) === 93 && e.src.charCodeAt(G - 1) !== 92) {
if (G + 1 === X || e.src.charCodeAt(G + 1) !== 58) return !1;
break;
}
for (d = e.lineMax, F = e.md.block.ruler.getRules('reference'), R = e.parentType, e.parentType = 'reference'; ne < d && !e.isEmpty(ne); ne++)
if (!(e.sCount[ne] - e.blkIndent > 3) && !(e.sCount[ne] < 0)) {
for (D = !1, p = 0, E = F.length; p < E; p++)
if (F[p](e, ne, d, !0)) {
D = !0;
break;
}
if (D) break;
}
for (w = e.getLines(r, ne, e.blkIndent, !1).trim(), X = w.length, G = 1; G < X; G++) {
if (((a = w.charCodeAt(G)), a === 91)) return !1;
if (a === 93) {
v = G;
break;
} else a === 10 ? z++ : a === 92 && (G++, G < X && w.charCodeAt(G) === 10 && z++);
}
if (v < 0 || w.charCodeAt(v + 1) !== 58) return !1;
for (G = v + 2; G < X; G++)
if (((a = w.charCodeAt(G)), a === 10)) z++;
else if (!oo(a)) break;
if (((O = e.md.helpers.parseLinkDestination(w, G, X)), !O.ok || ((m = e.md.normalizeLink(O.str)), !e.md.validateLink(m)))) return !1;
for (G = O.pos, z += O.lines, l = G, u = z, M = G; G < X; G++)
if (((a = w.charCodeAt(G)), a === 10)) z++;
else if (!oo(a)) break;
for (
O = e.md.helpers.parseLinkTitle(w, G, X), G < X && M !== G && O.ok ? ((Y = O.str), (G = O.pos), (z += O.lines)) : ((Y = ''), (G = l), (z = u));
G < X && ((a = w.charCodeAt(G)), !!oo(a));
)
G++;
if (G < X && w.charCodeAt(G) !== 10 && Y) for (Y = '', G = l, z = u; G < X && ((a = w.charCodeAt(G)), !!oo(a)); ) G++;
return (G < X && w.charCodeAt(G) !== 10) || ((f = uie(w.slice(1, v))), !f)
? !1
: (i ||
(typeof e.env.references > 'u' && (e.env.references = {}),
typeof e.env.references[f] > 'u' && (e.env.references[f] = { title: Y, href: m }),
(e.parentType = R),
(e.line = r + z + 1)),
!0);
},
_ie = [
'address',
'article',
'aside',
'base',
'basefont',
'blockquote',
'body',
'caption',
'center',
'col',
'colgroup',
'dd',
'details',
'dialog',
'dir',
'div',
'dl',
'dt',
'fieldset',
'figcaption',
'figure',
'footer',
'form',
'frame',
'frameset',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'head',
'header',
'hr',
'html',
'iframe',
'legend',
'li',
'link',
'main',
'menu',
'menuitem',
'nav',
'noframes',
'ol',
'optgroup',
'option',
'p',
'param',
'section',
'source',
'summary',
'table',
'tbody',
'td',
'tfoot',
'th',
'thead',
'title',
'tr',
'track',
'ul',
],
ds = {},
mie = '[a-zA-Z_:][a-zA-Z0-9:._-]*',
pie = '[^"\'=<>`\\x00-\\x20]+',
hie = "'[^']*'",
gie = '"[^"]*"',
fie = '(?:' + pie + '|' + hie + '|' + gie + ')',
Eie = '(?:\\s+' + mie + '(?:\\s*=\\s*' + fie + ')?)',
bb = '<[A-Za-z][A-Za-z0-9\\-]*' + Eie + '*\\s*\\/?>',
Tb = '<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>',
Sie = '|',
bie = '<[?][\\s\\S]*?[?]>',
Tie = ']*>',
vie = '',
Cie = new RegExp('^(?:' + bb + '|' + Tb + '|' + Sie + '|' + bie + '|' + Tie + '|' + vie + ')'),
yie = new RegExp('^(?:' + bb + '|' + Tb + ')');
ds.HTML_TAG_RE = Cie;
ds.HTML_OPEN_CLOSE_TAG_RE = yie;
var Rie = _ie,
Aie = ds.HTML_OPEN_CLOSE_TAG_RE,
Ti = [
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
[/^/, !0],
[/^<\?/, /\?>/, !0],
[/^/, !0],
[/^/, !0],
[new RegExp('^?(' + Rie.join('|') + ')(?=(\\s|/?>|$))', 'i'), /^$/, !0],
[new RegExp(Aie.source + '\\s*$'), /^$/, !1],
],
Nie = function (e, r, n, i) {
var a,
l,
u,
d,
m = e.bMarks[r] + e.tShift[r],
p = e.eMarks[r];
if (e.sCount[r] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(m) !== 60) return !1;
for (d = e.src.slice(m, p), a = 0; a < Ti.length && !Ti[a][0].test(d); a++);
if (a === Ti.length) return !1;
if (i) return Ti[a][2];
if (((l = r + 1), !Ti[a][1].test(d))) {
for (; l < n && !(e.sCount[l] < e.blkIndent); l++)
if (((m = e.bMarks[l] + e.tShift[l]), (p = e.eMarks[l]), (d = e.src.slice(m, p)), Ti[a][1].test(d))) {
d.length !== 0 && l++;
break;
}
}
return (e.line = l), (u = e.push('html_block', '', 0)), (u.map = [r, l]), (u.content = e.getLines(r, l, e.blkIndent, !0)), !0;
},
V0 = ct.isSpace,
Oie = function (e, r, n, i) {
var a,
l,
u,
d,
m = e.bMarks[r] + e.tShift[r],
p = e.eMarks[r];
if (e.sCount[r] - e.blkIndent >= 4 || ((a = e.src.charCodeAt(m)), a !== 35 || m >= p)) return !1;
for (l = 1, a = e.src.charCodeAt(++m); a === 35 && m < p && l <= 6; ) l++, (a = e.src.charCodeAt(++m));
return l > 6 || (m < p && !V0(a))
? !1
: (i ||
((p = e.skipSpacesBack(p, m)),
(u = e.skipCharsBack(p, 35, m)),
u > m && V0(e.src.charCodeAt(u - 1)) && (p = u),
(e.line = r + 1),
(d = e.push('heading_open', 'h' + String(l), 1)),
(d.markup = '########'.slice(0, l)),
(d.map = [r, e.line]),
(d = e.push('inline', '', 0)),
(d.content = e.src.slice(m, p).trim()),
(d.map = [r, e.line]),
(d.children = []),
(d = e.push('heading_close', 'h' + String(l), -1)),
(d.markup = '########'.slice(0, l))),
!0);
},
Iie = function (e, r, n) {
var i,
a,
l,
u,
d,
m,
p,
E,
f,
v = r + 1,
R,
O = e.md.block.ruler.getRules('paragraph');
if (e.sCount[r] - e.blkIndent >= 4) return !1;
for (R = e.parentType, e.parentType = 'paragraph'; v < n && !e.isEmpty(v); v++)
if (!(e.sCount[v] - e.blkIndent > 3)) {
if (
e.sCount[v] >= e.blkIndent &&
((m = e.bMarks[v] + e.tShift[v]),
(p = e.eMarks[v]),
m < p && ((f = e.src.charCodeAt(m)), (f === 45 || f === 61) && ((m = e.skipChars(m, f)), (m = e.skipSpaces(m)), m >= p)))
) {
E = f === 61 ? 1 : 2;
break;
}
if (!(e.sCount[v] < 0)) {
for (a = !1, l = 0, u = O.length; l < u; l++)
if (O[l](e, v, n, !0)) {
a = !0;
break;
}
if (a) break;
}
}
return E
? ((i = e.getLines(r, v, e.blkIndent, !1).trim()),
(e.line = v + 1),
(d = e.push('heading_open', 'h' + String(E), 1)),
(d.markup = String.fromCharCode(f)),
(d.map = [r, e.line]),
(d = e.push('inline', '', 0)),
(d.content = i),
(d.map = [r, e.line - 1]),
(d.children = []),
(d = e.push('heading_close', 'h' + String(E), -1)),
(d.markup = String.fromCharCode(f)),
(e.parentType = R),
!0)
: !1;
},
xie = function (e, r) {
var n,
i,
a,
l,
u,
d,
m = r + 1,
p = e.md.block.ruler.getRules('paragraph'),
E = e.lineMax;
for (d = e.parentType, e.parentType = 'paragraph'; m < E && !e.isEmpty(m); m++)
if (!(e.sCount[m] - e.blkIndent > 3) && !(e.sCount[m] < 0)) {
for (i = !1, a = 0, l = p.length; a < l; a++)
if (p[a](e, m, E, !0)) {
i = !0;
break;
}
if (i) break;
}
return (
(n = e.getLines(r, m, e.blkIndent, !1).trim()),
(e.line = m),
(u = e.push('paragraph_open', 'p', 1)),
(u.map = [r, e.line]),
(u = e.push('inline', '', 0)),
(u.content = n),
(u.map = [r, e.line]),
(u.children = []),
(u = e.push('paragraph_close', 'p', -1)),
(e.parentType = d),
!0
);
},
vb = dm,
_s = ct.isSpace;
function cn(t, e, r, n) {
var i, a, l, u, d, m, p, E;
for (
this.src = t,
this.md = e,
this.env = r,
this.tokens = n,
this.bMarks = [],
this.eMarks = [],
this.tShift = [],
this.sCount = [],
this.bsCount = [],
this.blkIndent = 0,
this.line = 0,
this.lineMax = 0,
this.tight = !1,
this.ddIndent = -1,
this.listIndent = -1,
this.parentType = 'root',
this.level = 0,
this.result = '',
a = this.src,
E = !1,
l = u = m = p = 0,
d = a.length;
u < d;
u++
) {
if (((i = a.charCodeAt(u)), !E))
if (_s(i)) {
m++, i === 9 ? (p += 4 - (p % 4)) : p++;
continue;
} else E = !0;
(i === 10 || u === d - 1) &&
(i !== 10 && u++,
this.bMarks.push(l),
this.eMarks.push(u),
this.tShift.push(m),
this.sCount.push(p),
this.bsCount.push(0),
(E = !1),
(m = 0),
(p = 0),
(l = u + 1));
}
this.bMarks.push(a.length),
this.eMarks.push(a.length),
this.tShift.push(0),
this.sCount.push(0),
this.bsCount.push(0),
(this.lineMax = this.bMarks.length - 1);
}
cn.prototype.push = function (t, e, r) {
var n = new vb(t, e, r);
return (n.block = !0), r < 0 && this.level--, (n.level = this.level), r > 0 && this.level++, this.tokens.push(n), n;
};
cn.prototype.isEmpty = function (e) {
return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
};
cn.prototype.skipEmptyLines = function (e) {
for (var r = this.lineMax; e < r && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++);
return e;
};
cn.prototype.skipSpaces = function (e) {
for (var r, n = this.src.length; e < n && ((r = this.src.charCodeAt(e)), !!_s(r)); e++);
return e;
};
cn.prototype.skipSpacesBack = function (e, r) {
if (e <= r) return e;
for (; e > r; ) if (!_s(this.src.charCodeAt(--e))) return e + 1;
return e;
};
cn.prototype.skipChars = function (e, r) {
for (var n = this.src.length; e < n && this.src.charCodeAt(e) === r; e++);
return e;
};
cn.prototype.skipCharsBack = function (e, r, n) {
if (e <= n) return e;
for (; e > n; ) if (r !== this.src.charCodeAt(--e)) return e + 1;
return e;
};
cn.prototype.getLines = function (e, r, n, i) {
var a,
l,
u,
d,
m,
p,
E,
f = e;
if (e >= r) return '';
for (p = new Array(r - e), a = 0; f < r; f++, a++) {
for (l = 0, E = d = this.bMarks[f], f + 1 < r || i ? (m = this.eMarks[f] + 1) : (m = this.eMarks[f]); d < m && l < n; ) {
if (((u = this.src.charCodeAt(d)), _s(u))) u === 9 ? (l += 4 - ((l + this.bsCount[f]) % 4)) : l++;
else if (d - E < this.tShift[f]) l++;
else break;
d++;
}
l > n ? (p[a] = new Array(l - n + 1).join(' ') + this.src.slice(d, m)) : (p[a] = this.src.slice(d, m));
}
return p.join('');
};
cn.prototype.Token = vb;
var Die = cn,
wie = um,
so = [
['table', rie, ['paragraph', 'reference']],
['code', nie],
['fence', iie, ['paragraph', 'reference', 'blockquote', 'list']],
['blockquote', aie, ['paragraph', 'reference', 'blockquote', 'list']],
['hr', sie, ['paragraph', 'reference', 'blockquote', 'list']],
['list', cie, ['paragraph', 'reference', 'blockquote']],
['reference', die],
['html_block', Nie, ['paragraph', 'reference', 'blockquote']],
['heading', Oie, ['paragraph', 'reference', 'blockquote']],
['lheading', Iie],
['paragraph', xie],
];
function ms() {
this.ruler = new wie();
for (var t = 0; t < so.length; t++) this.ruler.push(so[t][0], so[t][1], { alt: (so[t][2] || []).slice() });
}
ms.prototype.tokenize = function (t, e, r) {
for (
var n, i, a = this.ruler.getRules(''), l = a.length, u = e, d = !1, m = t.md.options.maxNesting;
u < r && ((t.line = u = t.skipEmptyLines(u)), !(u >= r || t.sCount[u] < t.blkIndent));
) {
if (t.level >= m) {
t.line = r;
break;
}
for (i = 0; i < l && ((n = a[i](t, u, r, !1)), !n); i++);
(t.tight = !d), t.isEmpty(t.line - 1) && (d = !0), (u = t.line), u < r && t.isEmpty(u) && ((d = !0), u++, (t.line = u));
}
};
ms.prototype.parse = function (t, e, r, n) {
var i;
t && ((i = new this.State(t, e, r, n)), this.tokenize(i, i.line, i.lineMax));
};
ms.prototype.State = Die;
var Mie = ms;
function Lie(t) {
switch (t) {
case 10:
case 33:
case 35:
case 36:
case 37:
case 38:
case 42:
case 43:
case 45:
case 58:
case 60:
case 61:
case 62:
case 64:
case 91:
case 92:
case 93:
case 94:
case 95:
case 96:
case 123:
case 125:
case 126:
return !0;
default:
return !1;
}
}
var kie = function (e, r) {
for (var n = e.pos; n < e.posMax && !Lie(e.src.charCodeAt(n)); ) n++;
return n === e.pos ? !1 : (r || (e.pending += e.src.slice(e.pos, n)), (e.pos = n), !0);
},
Pie = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,
Bie = function (e, r) {
var n, i, a, l, u, d, m, p;
return !e.md.options.linkify ||
e.linkLevel > 0 ||
((n = e.pos), (i = e.posMax), n + 3 > i) ||
e.src.charCodeAt(n) !== 58 ||
e.src.charCodeAt(n + 1) !== 47 ||
e.src.charCodeAt(n + 2) !== 47 ||
((a = e.pending.match(Pie)), !a) ||
((l = a[1]), (u = e.md.linkify.matchAtStart(e.src.slice(n - l.length))), !u) ||
((d = u.url), (d = d.replace(/\*+$/, '')), (m = e.md.normalizeLink(d)), !e.md.validateLink(m))
? !1
: (r ||
((e.pending = e.pending.slice(0, -l.length)),
(p = e.push('link_open', 'a', 1)),
(p.attrs = [['href', m]]),
(p.markup = 'linkify'),
(p.info = 'auto'),
(p = e.push('text', '', 0)),
(p.content = e.md.normalizeLinkText(d)),
(p = e.push('link_close', 'a', -1)),
(p.markup = 'linkify'),
(p.info = 'auto')),
(e.pos += d.length - l.length),
!0);
},
Fie = ct.isSpace,
Uie = function (e, r) {
var n,
i,
a,
l = e.pos;
if (e.src.charCodeAt(l) !== 10) return !1;
if (((n = e.pending.length - 1), (i = e.posMax), !r))
if (n >= 0 && e.pending.charCodeAt(n) === 32)
if (n >= 1 && e.pending.charCodeAt(n - 1) === 32) {
for (a = n - 1; a >= 1 && e.pending.charCodeAt(a - 1) === 32; ) a--;
(e.pending = e.pending.slice(0, a)), e.push('hardbreak', 'br', 0);
} else (e.pending = e.pending.slice(0, -1)), e.push('softbreak', 'br', 0);
else e.push('softbreak', 'br', 0);
for (l++; l < i && Fie(e.src.charCodeAt(l)); ) l++;
return (e.pos = l), !0;
},
Gie = ct.isSpace,
mm = [];
for (var W0 = 0; W0 < 256; W0++) mm.push(0);
'\\!"#$%&\'()*+,./:;<=>?@[]^_`{|}~-'.split('').forEach(function (t) {
mm[t.charCodeAt(0)] = 1;
});
var qie = function (e, r) {
var n,
i,
a,
l,
u,
d = e.pos,
m = e.posMax;
if (e.src.charCodeAt(d) !== 92 || (d++, d >= m)) return !1;
if (((n = e.src.charCodeAt(d)), n === 10)) {
for (r || e.push('hardbreak', 'br', 0), d++; d < m && ((n = e.src.charCodeAt(d)), !!Gie(n)); ) d++;
return (e.pos = d), !0;
}
return (
(l = e.src[d]),
n >= 55296 && n <= 56319 && d + 1 < m && ((i = e.src.charCodeAt(d + 1)), i >= 56320 && i <= 57343 && ((l += e.src[d + 1]), d++)),
(a = '\\' + l),
r || ((u = e.push('text_special', '', 0)), n < 256 && mm[n] !== 0 ? (u.content = l) : (u.content = a), (u.markup = a), (u.info = 'escape')),
(e.pos = d + 1),
!0
);
},
Yie = function (e, r) {
var n,
i,
a,
l,
u,
d,
m,
p,
E = e.pos,
f = e.src.charCodeAt(E);
if (f !== 96) return !1;
for (n = E, E++, i = e.posMax; E < i && e.src.charCodeAt(E) === 96; ) E++;
if (((a = e.src.slice(n, E)), (m = a.length), e.backticksScanned && (e.backticks[m] || 0) <= n)) return r || (e.pending += a), (e.pos += m), !0;
for (u = d = E; (u = e.src.indexOf('`', d)) !== -1; ) {
for (d = u + 1; d < i && e.src.charCodeAt(d) === 96; ) d++;
if (((p = d - u), p === m))
return (
r ||
((l = e.push('code_inline', 'code', 0)),
(l.markup = a),
(l.content = e.src
.slice(E, u)
.replace(/\n/g, ' ')
.replace(/^ (.+) $/, '$1'))),
(e.pos = d),
!0
);
e.backticks[p] = u;
}
return (e.backticksScanned = !0), r || (e.pending += a), (e.pos += m), !0;
},
ps = {};
ps.tokenize = function (e, r) {
var n,
i,
a,
l,
u,
d = e.pos,
m = e.src.charCodeAt(d);
if (r || m !== 126 || ((i = e.scanDelims(e.pos, !0)), (l = i.length), (u = String.fromCharCode(m)), l < 2)) return !1;
for (l % 2 && ((a = e.push('text', '', 0)), (a.content = u), l--), n = 0; n < l; n += 2)
(a = e.push('text', '', 0)),
(a.content = u + u),
e.delimiters.push({ marker: m, length: 0, token: e.tokens.length - 1, end: -1, open: i.can_open, close: i.can_close });
return (e.pos += i.length), !0;
};
function K0(t, e) {
var r,
n,
i,
a,
l,
u = [],
d = e.length;
for (r = 0; r < d; r++)
(i = e[r]),
i.marker === 126 &&
i.end !== -1 &&
((a = e[i.end]),
(l = t.tokens[i.token]),
(l.type = 's_open'),
(l.tag = 's'),
(l.nesting = 1),
(l.markup = '~~'),
(l.content = ''),
(l = t.tokens[a.token]),
(l.type = 's_close'),
(l.tag = 's'),
(l.nesting = -1),
(l.markup = '~~'),
(l.content = ''),
t.tokens[a.token - 1].type === 'text' && t.tokens[a.token - 1].content === '~' && u.push(a.token - 1));
for (; u.length; ) {
for (r = u.pop(), n = r + 1; n < t.tokens.length && t.tokens[n].type === 's_close'; ) n++;
n--, r !== n && ((l = t.tokens[n]), (t.tokens[n] = t.tokens[r]), (t.tokens[r] = l));
}
}
ps.postProcess = function (e) {
var r,
n = e.tokens_meta,
i = e.tokens_meta.length;
for (K0(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && K0(e, n[r].delimiters);
};
var hs = {};
hs.tokenize = function (e, r) {
var n,
i,
a,
l = e.pos,
u = e.src.charCodeAt(l);
if (r || (u !== 95 && u !== 42)) return !1;
for (i = e.scanDelims(e.pos, u === 42), n = 0; n < i.length; n++)
(a = e.push('text', '', 0)),
(a.content = String.fromCharCode(u)),
e.delimiters.push({ marker: u, length: i.length, token: e.tokens.length - 1, end: -1, open: i.can_open, close: i.can_close });
return (e.pos += i.length), !0;
};
function Q0(t, e) {
var r,
n,
i,
a,
l,
u,
d = e.length;
for (r = d - 1; r >= 0; r--)
(n = e[r]),
!(n.marker !== 95 && n.marker !== 42) &&
n.end !== -1 &&
((i = e[n.end]),
(u =
r > 0 &&
e[r - 1].end === n.end + 1 &&
e[r - 1].marker === n.marker &&
e[r - 1].token === n.token - 1 &&
e[n.end + 1].token === i.token + 1),
(l = String.fromCharCode(n.marker)),
(a = t.tokens[n.token]),
(a.type = u ? 'strong_open' : 'em_open'),
(a.tag = u ? 'strong' : 'em'),
(a.nesting = 1),
(a.markup = u ? l + l : l),
(a.content = ''),
(a = t.tokens[i.token]),
(a.type = u ? 'strong_close' : 'em_close'),
(a.tag = u ? 'strong' : 'em'),
(a.nesting = -1),
(a.markup = u ? l + l : l),
(a.content = ''),
u && ((t.tokens[e[r - 1].token].content = ''), (t.tokens[e[n.end + 1].token].content = ''), r--));
}
hs.postProcess = function (e) {
var r,
n = e.tokens_meta,
i = e.tokens_meta.length;
for (Q0(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && Q0(e, n[r].delimiters);
};
var zie = ct.normalizeReference,
Dl = ct.isSpace,
Hie = function (e, r) {
var n,
i,
a,
l,
u,
d,
m,
p,
E,
f = '',
v = '',
R = e.pos,
O = e.posMax,
M = e.pos,
w = !0;
if (e.src.charCodeAt(e.pos) !== 91 || ((u = e.pos + 1), (l = e.md.helpers.parseLinkLabel(e, e.pos, !0)), l < 0)) return !1;
if (((d = l + 1), d < O && e.src.charCodeAt(d) === 40)) {
for (w = !1, d++; d < O && ((i = e.src.charCodeAt(d)), !(!Dl(i) && i !== 10)); d++);
if (d >= O) return !1;
if (((M = d), (m = e.md.helpers.parseLinkDestination(e.src, d, e.posMax)), m.ok)) {
for (
f = e.md.normalizeLink(m.str), e.md.validateLink(f) ? (d = m.pos) : (f = ''), M = d;
d < O && ((i = e.src.charCodeAt(d)), !(!Dl(i) && i !== 10));
d++
);
if (((m = e.md.helpers.parseLinkTitle(e.src, d, e.posMax)), d < O && M !== d && m.ok))
for (v = m.str, d = m.pos; d < O && ((i = e.src.charCodeAt(d)), !(!Dl(i) && i !== 10)); d++);
}
(d >= O || e.src.charCodeAt(d) !== 41) && (w = !0), d++;
}
if (w) {
if (typeof e.env.references > 'u') return !1;
if (
(d < O && e.src.charCodeAt(d) === 91
? ((M = d + 1), (d = e.md.helpers.parseLinkLabel(e, d)), d >= 0 ? (a = e.src.slice(M, d++)) : (d = l + 1))
: (d = l + 1),
a || (a = e.src.slice(u, l)),
(p = e.env.references[zie(a)]),
!p)
)
return (e.pos = R), !1;
(f = p.href), (v = p.title);
}
return (
r ||
((e.pos = u),
(e.posMax = l),
(E = e.push('link_open', 'a', 1)),
(E.attrs = n = [['href', f]]),
v && n.push(['title', v]),
e.linkLevel++,
e.md.inline.tokenize(e),
e.linkLevel--,
(E = e.push('link_close', 'a', -1))),
(e.pos = d),
(e.posMax = O),
!0
);
},
$ie = ct.normalizeReference,
wl = ct.isSpace,
Vie = function (e, r) {
var n,
i,
a,
l,
u,
d,
m,
p,
E,
f,
v,
R,
O,
M = '',
w = e.pos,
D = e.posMax;
if (
e.src.charCodeAt(e.pos) !== 33 ||
e.src.charCodeAt(e.pos + 1) !== 91 ||
((d = e.pos + 2), (u = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1)), u < 0)
)
return !1;
if (((m = u + 1), m < D && e.src.charCodeAt(m) === 40)) {
for (m++; m < D && ((i = e.src.charCodeAt(m)), !(!wl(i) && i !== 10)); m++);
if (m >= D) return !1;
for (
O = m,
E = e.md.helpers.parseLinkDestination(e.src, m, e.posMax),
E.ok && ((M = e.md.normalizeLink(E.str)), e.md.validateLink(M) ? (m = E.pos) : (M = '')),
O = m;
m < D && ((i = e.src.charCodeAt(m)), !(!wl(i) && i !== 10));
m++
);
if (((E = e.md.helpers.parseLinkTitle(e.src, m, e.posMax)), m < D && O !== m && E.ok))
for (f = E.str, m = E.pos; m < D && ((i = e.src.charCodeAt(m)), !(!wl(i) && i !== 10)); m++);
else f = '';
if (m >= D || e.src.charCodeAt(m) !== 41) return (e.pos = w), !1;
m++;
} else {
if (typeof e.env.references > 'u') return !1;
if (
(m < D && e.src.charCodeAt(m) === 91
? ((O = m + 1), (m = e.md.helpers.parseLinkLabel(e, m)), m >= 0 ? (l = e.src.slice(O, m++)) : (m = u + 1))
: (m = u + 1),
l || (l = e.src.slice(d, u)),
(p = e.env.references[$ie(l)]),
!p)
)
return (e.pos = w), !1;
(M = p.href), (f = p.title);
}
return (
r ||
((a = e.src.slice(d, u)),
e.md.inline.parse(a, e.md, e.env, (R = [])),
(v = e.push('image', 'img', 0)),
(v.attrs = n =
[
['src', M],
['alt', ''],
]),
(v.children = R),
(v.content = a),
f && n.push(['title', f])),
(e.pos = m),
(e.posMax = D),
!0
);
},
Wie = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,
Kie = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,
Qie = function (e, r) {
var n,
i,
a,
l,
u,
d,
m = e.pos;
if (e.src.charCodeAt(m) !== 60) return !1;
for (u = e.pos, d = e.posMax; ; ) {
if (++m >= d || ((l = e.src.charCodeAt(m)), l === 60)) return !1;
if (l === 62) break;
}
return (
(n = e.src.slice(u + 1, m)),
Kie.test(n)
? ((i = e.md.normalizeLink(n)),
e.md.validateLink(i)
? (r ||
((a = e.push('link_open', 'a', 1)),
(a.attrs = [['href', i]]),
(a.markup = 'autolink'),
(a.info = 'auto'),
(a = e.push('text', '', 0)),
(a.content = e.md.normalizeLinkText(n)),
(a = e.push('link_close', 'a', -1)),
(a.markup = 'autolink'),
(a.info = 'auto')),
(e.pos += n.length + 2),
!0)
: !1)
: Wie.test(n)
? ((i = e.md.normalizeLink('mailto:' + n)),
e.md.validateLink(i)
? (r ||
((a = e.push('link_open', 'a', 1)),
(a.attrs = [['href', i]]),
(a.markup = 'autolink'),
(a.info = 'auto'),
(a = e.push('text', '', 0)),
(a.content = e.md.normalizeLinkText(n)),
(a = e.push('link_close', 'a', -1)),
(a.markup = 'autolink'),
(a.info = 'auto')),
(e.pos += n.length + 2),
!0)
: !1)
: !1
);
},
Zie = ds.HTML_TAG_RE;
function Xie(t) {
return /^ \s]/i.test(t);
}
function Jie(t) {
return /^<\/a\s*>/i.test(t);
}
function jie(t) {
var e = t | 32;
return e >= 97 && e <= 122;
}
var eae = function (e, r) {
var n,
i,
a,
l,
u = e.pos;
return !e.md.options.html ||
((a = e.posMax), e.src.charCodeAt(u) !== 60 || u + 2 >= a) ||
((n = e.src.charCodeAt(u + 1)), n !== 33 && n !== 63 && n !== 47 && !jie(n)) ||
((i = e.src.slice(u).match(Zie)), !i)
? !1
: (r ||
((l = e.push('html_inline', '', 0)),
(l.content = e.src.slice(u, u + i[0].length)),
Xie(l.content) && e.linkLevel++,
Jie(l.content) && e.linkLevel--),
(e.pos += i[0].length),
!0);
},
Z0 = Bo,
tae = ct.has,
rae = ct.isValidEntityCode,
X0 = ct.fromCodePoint,
nae = /^((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,
iae = /^&([a-z][a-z0-9]{1,31});/i,
aae = function (e, r) {
var n,
i,
a,
l,
u = e.pos,
d = e.posMax;
if (e.src.charCodeAt(u) !== 38 || u + 1 >= d) return !1;
if (((n = e.src.charCodeAt(u + 1)), n === 35)) {
if (((a = e.src.slice(u).match(nae)), a))
return (
r ||
((i = a[1][0].toLowerCase() === 'x' ? parseInt(a[1].slice(1), 16) : parseInt(a[1], 10)),
(l = e.push('text_special', '', 0)),
(l.content = rae(i) ? X0(i) : X0(65533)),
(l.markup = a[0]),
(l.info = 'entity')),
(e.pos += a[0].length),
!0
);
} else if (((a = e.src.slice(u).match(iae)), a && tae(Z0, a[1])))
return r || ((l = e.push('text_special', '', 0)), (l.content = Z0[a[1]]), (l.markup = a[0]), (l.info = 'entity')), (e.pos += a[0].length), !0;
return !1;
};
function J0(t, e) {
var r,
n,
i,
a,
l,
u,
d,
m,
p = {},
E = e.length;
if (E) {
var f = 0,
v = -2,
R = [];
for (r = 0; r < E; r++)
if (((i = e[r]), R.push(0), (e[f].marker !== i.marker || v !== i.token - 1) && (f = r), (v = i.token), (i.length = i.length || 0), !!i.close)) {
for (
p.hasOwnProperty(i.marker) || (p[i.marker] = [-1, -1, -1, -1, -1, -1]),
l = p[i.marker][(i.open ? 3 : 0) + (i.length % 3)],
n = f - R[f] - 1,
u = n;
n > l;
n -= R[n] + 1
)
if (
((a = e[n]),
a.marker === i.marker &&
a.open &&
a.end < 0 &&
((d = !1), (a.close || i.open) && (a.length + i.length) % 3 === 0 && (a.length % 3 !== 0 || i.length % 3 !== 0) && (d = !0), !d))
) {
(m = n > 0 && !e[n - 1].open ? R[n - 1] + 1 : 0),
(R[r] = r - n + m),
(R[n] = m),
(i.open = !1),
(a.end = r),
(a.close = !1),
(u = -1),
(v = -2);
break;
}
u !== -1 && (p[i.marker][(i.open ? 3 : 0) + ((i.length || 0) % 3)] = u);
}
}
}
var oae = function (e) {
var r,
n = e.tokens_meta,
i = e.tokens_meta.length;
for (J0(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && J0(e, n[r].delimiters);
},
sae = function (e) {
var r,
n,
i = 0,
a = e.tokens,
l = e.tokens.length;
for (r = n = 0; r < l; r++)
a[r].nesting < 0 && i--,
(a[r].level = i),
a[r].nesting > 0 && i++,
a[r].type === 'text' && r + 1 < l && a[r + 1].type === 'text'
? (a[r + 1].content = a[r].content + a[r + 1].content)
: (r !== n && (a[n] = a[r]), n++);
r !== n && (a.length = n);
},
pm = dm,
j0 = ct.isWhiteSpace,
eh = ct.isPunctChar,
th = ct.isMdAsciiPunct;
function Da(t, e, r, n) {
(this.src = t),
(this.env = r),
(this.md = e),
(this.tokens = n),
(this.tokens_meta = Array(n.length)),
(this.pos = 0),
(this.posMax = this.src.length),
(this.level = 0),
(this.pending = ''),
(this.pendingLevel = 0),
(this.cache = {}),
(this.delimiters = []),
(this._prev_delimiters = []),
(this.backticks = {}),
(this.backticksScanned = !1),
(this.linkLevel = 0);
}
Da.prototype.pushPending = function () {
var t = new pm('text', '', 0);
return (t.content = this.pending), (t.level = this.pendingLevel), this.tokens.push(t), (this.pending = ''), t;
};
Da.prototype.push = function (t, e, r) {
this.pending && this.pushPending();
var n = new pm(t, e, r),
i = null;
return (
r < 0 && (this.level--, (this.delimiters = this._prev_delimiters.pop())),
(n.level = this.level),
r > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), (this.delimiters = []), (i = { delimiters: this.delimiters })),
(this.pendingLevel = this.level),
this.tokens.push(n),
this.tokens_meta.push(i),
n
);
};
Da.prototype.scanDelims = function (t, e) {
var r = t,
n,
i,
a,
l,
u,
d,
m,
p,
E,
f = !0,
v = !0,
R = this.posMax,
O = this.src.charCodeAt(t);
for (n = t > 0 ? this.src.charCodeAt(t - 1) : 32; r < R && this.src.charCodeAt(r) === O; ) r++;
return (
(a = r - t),
(i = r < R ? this.src.charCodeAt(r) : 32),
(m = th(n) || eh(String.fromCharCode(n))),
(E = th(i) || eh(String.fromCharCode(i))),
(d = j0(n)),
(p = j0(i)),
p ? (f = !1) : E && (d || m || (f = !1)),
d ? (v = !1) : m && (p || E || (v = !1)),
e ? ((l = f), (u = v)) : ((l = f && (!v || m)), (u = v && (!f || E))),
{ can_open: l, can_close: u, length: a }
);
};
Da.prototype.Token = pm;
var lae = Da,
rh = um,
Ml = [
['text', kie],
['linkify', Bie],
['newline', Uie],
['escape', qie],
['backticks', Yie],
['strikethrough', ps.tokenize],
['emphasis', hs.tokenize],
['link', Hie],
['image', Vie],
['autolink', Qie],
['html_inline', eae],
['entity', aae],
],
Ll = [
['balance_pairs', oae],
['strikethrough', ps.postProcess],
['emphasis', hs.postProcess],
['fragments_join', sae],
];
function wa() {
var t;
for (this.ruler = new rh(), t = 0; t < Ml.length; t++) this.ruler.push(Ml[t][0], Ml[t][1]);
for (this.ruler2 = new rh(), t = 0; t < Ll.length; t++) this.ruler2.push(Ll[t][0], Ll[t][1]);
}
wa.prototype.skipToken = function (t) {
var e,
r,
n = t.pos,
i = this.ruler.getRules(''),
a = i.length,
l = t.md.options.maxNesting,
u = t.cache;
if (typeof u[n] < 'u') {
t.pos = u[n];
return;
}
if (t.level < l) for (r = 0; r < a && (t.level++, (e = i[r](t, !0)), t.level--, !e); r++);
else t.pos = t.posMax;
e || t.pos++, (u[n] = t.pos);
};
wa.prototype.tokenize = function (t) {
for (var e, r, n = this.ruler.getRules(''), i = n.length, a = t.posMax, l = t.md.options.maxNesting; t.pos < a; ) {
if (t.level < l) for (r = 0; r < i && ((e = n[r](t, !1)), !e); r++);
if (e) {
if (t.pos >= a) break;
continue;
}
t.pending += t.src[t.pos++];
}
t.pending && t.pushPending();
};
wa.prototype.parse = function (t, e, r, n) {
var i,
a,
l,
u = new this.State(t, e, r, n);
for (this.tokenize(u), a = this.ruler2.getRules(''), l = a.length, i = 0; i < l; i++) a[i](u);
};
wa.prototype.State = lae;
var cae = wa,
kl,
nh;
function uae() {
return (
nh ||
((nh = 1),
(kl = function (t) {
var e = {};
(t = t || {}),
(e.src_Any = pb().source),
(e.src_Cc = hb().source),
(e.src_Z = gb().source),
(e.src_P = cm.source),
(e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join('|')),
(e.src_ZCc = [e.src_Z, e.src_Cc].join('|'));
var r = '[><|]';
return (
(e.src_pseudo_letter = '(?:(?!' + r + '|' + e.src_ZPCc + ')' + e.src_Any + ')'),
(e.src_ip4 = '(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'),
(e.src_auth = '(?:(?:(?!' + e.src_ZCc + '|[@/\\[\\]()]).)+@)?'),
(e.src_port = '(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?'),
(e.src_host_terminator =
'(?=$|' + r + '|' + e.src_ZPCc + ')(?!' + (t['---'] ? '-(?!--)|' : '-|') + '_|:\\d|\\.-|\\.(?!$|' + e.src_ZPCc + '))'),
(e.src_path =
'(?:[/?#](?:(?!' +
e.src_ZCc +
'|' +
r +
`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` +
e.src_ZCc +
'|\\]).)*\\]|\\((?:(?!' +
e.src_ZCc +
'|[)]).)*\\)|\\{(?:(?!' +
e.src_ZCc +
'|[}]).)*\\}|\\"(?:(?!' +
e.src_ZCc +
`|["]).)+\\"|\\'(?:(?!` +
e.src_ZCc +
"|[']).)+\\'|\\'(?=" +
e.src_pseudo_letter +
'|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!' +
e.src_ZCc +
'|[.]|$)|' +
(t['---'] ? '\\-(?!--(?:[^-]|$))(?:-*)|' : '\\-+|') +
',(?!' +
e.src_ZCc +
'|$)|;(?!' +
e.src_ZCc +
'|$)|\\!+(?!' +
e.src_ZCc +
'|[!]|$)|\\?(?!' +
e.src_ZCc +
'|[?]|$))+|\\/)?'),
(e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*'),
(e.src_xn = 'xn--[a-z0-9\\-]{1,59}'),
(e.src_domain_root = '(?:' + e.src_xn + '|' + e.src_pseudo_letter + '{1,63})'),
(e.src_domain =
'(?:' +
e.src_xn +
'|(?:' +
e.src_pseudo_letter +
')|(?:' +
e.src_pseudo_letter +
'(?:-|' +
e.src_pseudo_letter +
'){0,61}' +
e.src_pseudo_letter +
'))'),
(e.src_host = '(?:(?:(?:(?:' + e.src_domain + ')\\.)*' + e.src_domain + '))'),
(e.tpl_host_fuzzy = '(?:' + e.src_ip4 + '|(?:(?:(?:' + e.src_domain + ')\\.)+(?:%TLDS%)))'),
(e.tpl_host_no_ip_fuzzy = '(?:(?:(?:' + e.src_domain + ')\\.)+(?:%TLDS%))'),
(e.src_host_strict = e.src_host + e.src_host_terminator),
(e.tpl_host_fuzzy_strict = e.tpl_host_fuzzy + e.src_host_terminator),
(e.src_host_port_strict = e.src_host + e.src_port + e.src_host_terminator),
(e.tpl_host_port_fuzzy_strict = e.tpl_host_fuzzy + e.src_port + e.src_host_terminator),
(e.tpl_host_port_no_ip_fuzzy_strict = e.tpl_host_no_ip_fuzzy + e.src_port + e.src_host_terminator),
(e.tpl_host_fuzzy_test = 'localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:' + e.src_ZPCc + '|>|$))'),
(e.tpl_email_fuzzy = '(^|' + r + '|"|\\(|' + e.src_ZCc + ')(' + e.src_email_name + '@' + e.tpl_host_fuzzy_strict + ')'),
(e.tpl_link_fuzzy =
'(^|(?![.:/\\-_@])(?:[$+<=>^`||]|' + e.src_ZPCc + '))((?![$+<=>^`||])' + e.tpl_host_port_fuzzy_strict + e.src_path + ')'),
(e.tpl_link_no_ip_fuzzy =
'(^|(?![.:/\\-_@])(?:[$+<=>^`||]|' + e.src_ZPCc + '))((?![$+<=>^`||])' + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ')'),
e
);
})),
kl
);
}
function k_(t) {
var e = Array.prototype.slice.call(arguments, 1);
return (
e.forEach(function (r) {
r &&
Object.keys(r).forEach(function (n) {
t[n] = r[n];
});
}),
t
);
}
function gs(t) {
return Object.prototype.toString.call(t);
}
function dae(t) {
return gs(t) === '[object String]';
}
function _ae(t) {
return gs(t) === '[object Object]';
}
function mae(t) {
return gs(t) === '[object RegExp]';
}
function ih(t) {
return gs(t) === '[object Function]';
}
function pae(t) {
return t.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&');
}
var Cb = { fuzzyLink: !0, fuzzyEmail: !0, fuzzyIP: !1 };
function hae(t) {
return Object.keys(t || {}).reduce(function (e, r) {
return e || Cb.hasOwnProperty(r);
}, !1);
}
var gae = {
'http:': {
validate: function (t, e, r) {
var n = t.slice(e);
return (
r.re.http || (r.re.http = new RegExp('^\\/\\/' + r.re.src_auth + r.re.src_host_port_strict + r.re.src_path, 'i')),
r.re.http.test(n) ? n.match(r.re.http)[0].length : 0
);
},
},
'https:': 'http:',
'ftp:': 'http:',
'//': {
validate: function (t, e, r) {
var n = t.slice(e);
return (
r.re.no_http ||
(r.re.no_http = new RegExp(
'^' +
r.re.src_auth +
'(?:localhost|(?:(?:' +
r.re.src_domain +
')\\.)+' +
r.re.src_domain_root +
')' +
r.re.src_port +
r.re.src_host_terminator +
r.re.src_path,
'i'
)),
r.re.no_http.test(n) ? ((e >= 3 && t[e - 3] === ':') || (e >= 3 && t[e - 3] === '/') ? 0 : n.match(r.re.no_http)[0].length) : 0
);
},
},
'mailto:': {
validate: function (t, e, r) {
var n = t.slice(e);
return (
r.re.mailto || (r.re.mailto = new RegExp('^' + r.re.src_email_name + '@' + r.re.src_host_strict, 'i')),
r.re.mailto.test(n) ? n.match(r.re.mailto)[0].length : 0
);
},
},
},
fae =
'a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]',
Eae = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
function Sae(t) {
(t.__index__ = -1), (t.__text_cache__ = '');
}
function bae(t) {
return function (e, r) {
var n = e.slice(r);
return t.test(n) ? n.match(t)[0].length : 0;
};
}
function ah() {
return function (t, e) {
e.normalize(t);
};
}
function Uo(t) {
var e = (t.re = uae()(t.__opts__)),
r = t.__tlds__.slice();
t.onCompile(), t.__tlds_replaced__ || r.push(fae), r.push(e.src_xn), (e.src_tlds = r.join('|'));
function n(u) {
return u.replace('%TLDS%', e.src_tlds);
}
(e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), 'i')),
(e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), 'i')),
(e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), 'i')),
(e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), 'i'));
var i = [];
t.__compiled__ = {};
function a(u, d) {
throw new Error('(LinkifyIt) Invalid schema "' + u + '": ' + d);
}
Object.keys(t.__schemas__).forEach(function (u) {
var d = t.__schemas__[u];
if (d !== null) {
var m = { validate: null, link: null };
if (((t.__compiled__[u] = m), _ae(d))) {
mae(d.validate) ? (m.validate = bae(d.validate)) : ih(d.validate) ? (m.validate = d.validate) : a(u, d),
ih(d.normalize) ? (m.normalize = d.normalize) : d.normalize ? a(u, d) : (m.normalize = ah());
return;
}
if (dae(d)) {
i.push(u);
return;
}
a(u, d);
}
}),
i.forEach(function (u) {
t.__compiled__[t.__schemas__[u]] &&
((t.__compiled__[u].validate = t.__compiled__[t.__schemas__[u]].validate),
(t.__compiled__[u].normalize = t.__compiled__[t.__schemas__[u]].normalize));
}),
(t.__compiled__[''] = { validate: null, normalize: ah() });
var l = Object.keys(t.__compiled__)
.filter(function (u) {
return u.length > 0 && t.__compiled__[u];
})
.map(pae)
.join('|');
(t.re.schema_test = RegExp('(^|(?!_)(?:[><|]|' + e.src_ZPCc + '))(' + l + ')', 'i')),
(t.re.schema_search = RegExp('(^|(?!_)(?:[><|]|' + e.src_ZPCc + '))(' + l + ')', 'ig')),
(t.re.schema_at_start = RegExp('^' + t.re.schema_search.source, 'i')),
(t.re.pretest = RegExp('(' + t.re.schema_test.source + ')|(' + t.re.host_fuzzy_test.source + ')|@', 'i')),
Sae(t);
}
function Tae(t, e) {
var r = t.__index__,
n = t.__last_index__,
i = t.__text_cache__.slice(r, n);
(this.schema = t.__schema__.toLowerCase()), (this.index = r + e), (this.lastIndex = n + e), (this.raw = i), (this.text = i), (this.url = i);
}
function P_(t, e) {
var r = new Tae(t, e);
return t.__compiled__[r.schema].normalize(r, t), r;
}
function Sr(t, e) {
if (!(this instanceof Sr)) return new Sr(t, e);
e || (hae(t) && ((e = t), (t = {}))),
(this.__opts__ = k_({}, Cb, e)),
(this.__index__ = -1),
(this.__last_index__ = -1),
(this.__schema__ = ''),
(this.__text_cache__ = ''),
(this.__schemas__ = k_({}, gae, t)),
(this.__compiled__ = {}),
(this.__tlds__ = Eae),
(this.__tlds_replaced__ = !1),
(this.re = {}),
Uo(this);
}
Sr.prototype.add = function (e, r) {
return (this.__schemas__[e] = r), Uo(this), this;
};
Sr.prototype.set = function (e) {
return (this.__opts__ = k_(this.__opts__, e)), this;
};
Sr.prototype.test = function (e) {
if (((this.__text_cache__ = e), (this.__index__ = -1), !e.length)) return !1;
var r, n, i, a, l, u, d, m, p;
if (this.re.schema_test.test(e)) {
for (d = this.re.schema_search, d.lastIndex = 0; (r = d.exec(e)) !== null; )
if (((a = this.testSchemaAt(e, r[2], d.lastIndex)), a)) {
(this.__schema__ = r[2]), (this.__index__ = r.index + r[1].length), (this.__last_index__ = r.index + r[0].length + a);
break;
}
}
return (
this.__opts__.fuzzyLink &&
this.__compiled__['http:'] &&
((m = e.search(this.re.host_fuzzy_test)),
m >= 0 &&
(this.__index__ < 0 || m < this.__index__) &&
(n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null &&
((l = n.index + n[1].length),
(this.__index__ < 0 || l < this.__index__) && ((this.__schema__ = ''), (this.__index__ = l), (this.__last_index__ = n.index + n[0].length)))),
this.__opts__.fuzzyEmail &&
this.__compiled__['mailto:'] &&
((p = e.indexOf('@')),
p >= 0 &&
(i = e.match(this.re.email_fuzzy)) !== null &&
((l = i.index + i[1].length),
(u = i.index + i[0].length),
(this.__index__ < 0 || l < this.__index__ || (l === this.__index__ && u > this.__last_index__)) &&
((this.__schema__ = 'mailto:'), (this.__index__ = l), (this.__last_index__ = u)))),
this.__index__ >= 0
);
};
Sr.prototype.pretest = function (e) {
return this.re.pretest.test(e);
};
Sr.prototype.testSchemaAt = function (e, r, n) {
return this.__compiled__[r.toLowerCase()] ? this.__compiled__[r.toLowerCase()].validate(e, n, this) : 0;
};
Sr.prototype.match = function (e) {
var r = 0,
n = [];
this.__index__ >= 0 && this.__text_cache__ === e && (n.push(P_(this, r)), (r = this.__last_index__));
for (var i = r ? e.slice(r) : e; this.test(i); ) n.push(P_(this, r)), (i = i.slice(this.__last_index__)), (r += this.__last_index__);
return n.length ? n : null;
};
Sr.prototype.matchAtStart = function (e) {
if (((this.__text_cache__ = e), (this.__index__ = -1), !e.length)) return null;
var r = this.re.schema_at_start.exec(e);
if (!r) return null;
var n = this.testSchemaAt(e, r[2], r[0].length);
return n
? ((this.__schema__ = r[2]), (this.__index__ = r.index + r[1].length), (this.__last_index__ = r.index + r[0].length + n), P_(this, 0))
: null;
};
Sr.prototype.tlds = function (e, r) {
return (
(e = Array.isArray(e) ? e : [e]),
r
? ((this.__tlds__ = this.__tlds__
.concat(e)
.sort()
.filter(function (n, i, a) {
return n !== a[i - 1];
})
.reverse()),
Uo(this),
this)
: ((this.__tlds__ = e.slice()), (this.__tlds_replaced__ = !0), Uo(this), this)
);
};
Sr.prototype.normalize = function (e) {
e.schema || (e.url = 'http://' + e.url), e.schema === 'mailto:' && !/^mailto:/i.test(e.url) && (e.url = 'mailto:' + e.url);
};
Sr.prototype.onCompile = function () {};
var vae = Sr;
const Ai = 2147483647,
en = 36,
hm = 1,
Ea = 26,
Cae = 38,
yae = 700,
yb = 72,
Rb = 128,
Ab = '-',
Rae = /^xn--/,
Aae = /[^\0-\x7F]/,
Nae = /[\x2E\u3002\uFF0E\uFF61]/g,
Oae = {
overflow: 'Overflow: input needs wider integers to process',
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
'invalid-input': 'Invalid input',
},
Pl = en - hm,
tn = Math.floor,
Bl = String.fromCharCode;
function kn(t) {
throw new RangeError(Oae[t]);
}
function Iae(t, e) {
const r = [];
let n = t.length;
for (; n--; ) r[n] = e(t[n]);
return r;
}
function Nb(t, e) {
const r = t.split('@');
let n = '';
r.length > 1 && ((n = r[0] + '@'), (t = r[1])), (t = t.replace(Nae, '.'));
const i = t.split('.'),
a = Iae(i, e).join('.');
return n + a;
}
function gm(t) {
const e = [];
let r = 0;
const n = t.length;
for (; r < n; ) {
const i = t.charCodeAt(r++);
if (i >= 55296 && i <= 56319 && r < n) {
const a = t.charCodeAt(r++);
(a & 64512) == 56320 ? e.push(((i & 1023) << 10) + (a & 1023) + 65536) : (e.push(i), r--);
} else e.push(i);
}
return e;
}
const Ob = (t) => String.fromCodePoint(...t),
xae = function (t) {
return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : en;
},
oh = function (t, e) {
return t + 22 + 75 * (t < 26) - ((e != 0) << 5);
},
Ib = function (t, e, r) {
let n = 0;
for (t = r ? tn(t / yae) : t >> 1, t += tn(t / e); t > (Pl * Ea) >> 1; n += en) t = tn(t / Pl);
return tn(n + ((Pl + 1) * t) / (t + Cae));
},
fm = function (t) {
const e = [],
r = t.length;
let n = 0,
i = Rb,
a = yb,
l = t.lastIndexOf(Ab);
l < 0 && (l = 0);
for (let u = 0; u < l; ++u) t.charCodeAt(u) >= 128 && kn('not-basic'), e.push(t.charCodeAt(u));
for (let u = l > 0 ? l + 1 : 0; u < r; ) {
const d = n;
for (let p = 1, E = en; ; E += en) {
u >= r && kn('invalid-input');
const f = xae(t.charCodeAt(u++));
f >= en && kn('invalid-input'), f > tn((Ai - n) / p) && kn('overflow'), (n += f * p);
const v = E <= a ? hm : E >= a + Ea ? Ea : E - a;
if (f < v) break;
const R = en - v;
p > tn(Ai / R) && kn('overflow'), (p *= R);
}
const m = e.length + 1;
(a = Ib(n - d, m, d == 0)), tn(n / m) > Ai - i && kn('overflow'), (i += tn(n / m)), (n %= m), e.splice(n++, 0, i);
}
return String.fromCodePoint(...e);
},
Em = function (t) {
const e = [];
t = gm(t);
const r = t.length;
let n = Rb,
i = 0,
a = yb;
for (const d of t) d < 128 && e.push(Bl(d));
const l = e.length;
let u = l;
for (l && e.push(Ab); u < r; ) {
let d = Ai;
for (const p of t) p >= n && p < d && (d = p);
const m = u + 1;
d - n > tn((Ai - i) / m) && kn('overflow'), (i += (d - n) * m), (n = d);
for (const p of t)
if ((p < n && ++i > Ai && kn('overflow'), p === n)) {
let E = i;
for (let f = en; ; f += en) {
const v = f <= a ? hm : f >= a + Ea ? Ea : f - a;
if (E < v) break;
const R = E - v,
O = en - v;
e.push(Bl(oh(v + (R % O), 0))), (E = tn(R / O));
}
e.push(Bl(oh(E, 0))), (a = Ib(i, m, u === l)), (i = 0), ++u;
}
++i, ++n;
}
return e.join('');
},
xb = function (t) {
return Nb(t, function (e) {
return Rae.test(e) ? fm(e.slice(4).toLowerCase()) : e;
});
},
Db = function (t) {
return Nb(t, function (e) {
return Aae.test(e) ? 'xn--' + Em(e) : e;
});
},
Dae = { version: '2.3.1', ucs2: { decode: gm, encode: Ob }, decode: fm, encode: Em, toASCII: Db, toUnicode: xb },
wae = Object.freeze(
Object.defineProperty(
{ __proto__: null, decode: fm, default: Dae, encode: Em, toASCII: Db, toUnicode: xb, ucs2decode: gm, ucs2encode: Ob },
Symbol.toStringTag,
{ value: 'Module' }
)
),
Mae = qR(wae);
var Lae = {
options: {
html: !1,
xhtmlOut: !1,
breaks: !1,
langPrefix: 'language-',
linkify: !1,
typographer: !1,
quotes: '“”‘’',
highlight: null,
maxNesting: 100,
},
components: { core: {}, block: {}, inline: {} },
},
kae = {
options: {
html: !1,
xhtmlOut: !1,
breaks: !1,
langPrefix: 'language-',
linkify: !1,
typographer: !1,
quotes: '“”‘’',
highlight: null,
maxNesting: 20,
},
components: {
core: { rules: ['normalize', 'block', 'inline', 'text_join'] },
block: { rules: ['paragraph'] },
inline: { rules: ['text'], rules2: ['balance_pairs', 'fragments_join'] },
},
},
Pae = {
options: {
html: !0,
xhtmlOut: !0,
breaks: !1,
langPrefix: 'language-',
linkify: !1,
typographer: !1,
quotes: '“”‘’',
highlight: null,
maxNesting: 20,
},
components: {
core: { rules: ['normalize', 'block', 'inline', 'text_join'] },
block: { rules: ['blockquote', 'code', 'fence', 'heading', 'hr', 'html_block', 'lheading', 'list', 'reference', 'paragraph'] },
inline: {
rules: ['autolink', 'backticks', 'emphasis', 'entity', 'escape', 'html_inline', 'image', 'link', 'newline', 'text'],
rules2: ['balance_pairs', 'emphasis', 'fragments_join'],
},
},
},
_a = ct,
Bae = us,
Fae = Dne,
Uae = tie,
Gae = Mie,
qae = cae,
Yae = vae,
Wn = Bi,
wb = Mae,
zae = { default: Lae, zero: kae, commonmark: Pae },
Hae = /^(vbscript|javascript|file|data):/,
$ae = /^data:image\/(gif|png|jpeg|webp);/;
function Vae(t) {
var e = t.trim().toLowerCase();
return Hae.test(e) ? !!$ae.test(e) : !0;
}
var Mb = ['http:', 'https:', 'mailto:'];
function Wae(t) {
var e = Wn.parse(t, !0);
if (e.hostname && (!e.protocol || Mb.indexOf(e.protocol) >= 0))
try {
e.hostname = wb.toASCII(e.hostname);
} catch {}
return Wn.encode(Wn.format(e));
}
function Kae(t) {
var e = Wn.parse(t, !0);
if (e.hostname && (!e.protocol || Mb.indexOf(e.protocol) >= 0))
try {
e.hostname = wb.toUnicode(e.hostname);
} catch {}
return Wn.decode(Wn.format(e), Wn.decode.defaultChars + '%');
}
function Dr(t, e) {
if (!(this instanceof Dr)) return new Dr(t, e);
e || _a.isString(t) || ((e = t || {}), (t = 'default')),
(this.inline = new qae()),
(this.block = new Gae()),
(this.core = new Uae()),
(this.renderer = new Fae()),
(this.linkify = new Yae()),
(this.validateLink = Vae),
(this.normalizeLink = Wae),
(this.normalizeLinkText = Kae),
(this.utils = _a),
(this.helpers = _a.assign({}, Bae)),
(this.options = {}),
this.configure(t),
e && this.set(e);
}
Dr.prototype.set = function (t) {
return _a.assign(this.options, t), this;
};
Dr.prototype.configure = function (t) {
var e = this,
r;
if (_a.isString(t) && ((r = t), (t = zae[r]), !t)) throw new Error('Wrong `markdown-it` preset "' + r + '", check name');
if (!t) throw new Error("Wrong `markdown-it` preset, can't be empty");
return (
t.options && e.set(t.options),
t.components &&
Object.keys(t.components).forEach(function (n) {
t.components[n].rules && e[n].ruler.enableOnly(t.components[n].rules),
t.components[n].rules2 && e[n].ruler2.enableOnly(t.components[n].rules2);
}),
this
);
};
Dr.prototype.enable = function (t, e) {
var r = [];
Array.isArray(t) || (t = [t]),
['core', 'block', 'inline'].forEach(function (i) {
r = r.concat(this[i].ruler.enable(t, !0));
}, this),
(r = r.concat(this.inline.ruler2.enable(t, !0)));
var n = t.filter(function (i) {
return r.indexOf(i) < 0;
});
if (n.length && !e) throw new Error('MarkdownIt. Failed to enable unknown rule(s): ' + n);
return this;
};
Dr.prototype.disable = function (t, e) {
var r = [];
Array.isArray(t) || (t = [t]),
['core', 'block', 'inline'].forEach(function (i) {
r = r.concat(this[i].ruler.disable(t, !0));
}, this),
(r = r.concat(this.inline.ruler2.disable(t, !0)));
var n = t.filter(function (i) {
return r.indexOf(i) < 0;
});
if (n.length && !e) throw new Error('MarkdownIt. Failed to disable unknown rule(s): ' + n);
return this;
};
Dr.prototype.use = function (t) {
var e = [this].concat(Array.prototype.slice.call(arguments, 1));
return t.apply(t, e), this;
};
Dr.prototype.parse = function (t, e) {
if (typeof t != 'string') throw new Error('Input data should be a String');
var r = new this.core.State(t, this, e);
return this.core.process(r), r.tokens;
};
Dr.prototype.render = function (t, e) {
return (e = e || {}), this.renderer.render(this.parse(t, e), this.options, e);
};
Dr.prototype.parseInline = function (t, e) {
var r = new this.core.State(t, this, e);
return (r.inlineMode = !0), this.core.process(r), r.tokens;
};
Dr.prototype.renderInline = function (t, e) {
return (e = e || {}), this.renderer.render(this.parseInline(t, e), this.options, e);
};
var Qae = Dr;
(function (t) {
t.exports = Qae;
})(YR);
const Lb = GR(L_);
var kb = {},
B_ = {},
Zae = {
get exports() {
return B_;
},
set exports(t) {
B_ = t;
},
};
(function (t, e) {
(function (n, i) {
t.exports = i();
})(typeof self < 'u' ? self : Po, function () {
return (function () {
var r = {};
(function () {
r.d = function (S, o) {
for (var s in o) r.o(o, s) && !r.o(S, s) && Object.defineProperty(S, s, { enumerable: !0, get: o[s] });
};
})(),
(function () {
r.o = function (S, o) {
return Object.prototype.hasOwnProperty.call(S, o);
};
})();
var n = {};
r.d(n, {
default: function () {
return uC;
},
});
var i = function S(o, s) {
this.position = void 0;
var c = 'KaTeX parse error: ' + o,
_,
h = s && s.loc;
if (h && h.start <= h.end) {
var b = h.lexer.input;
_ = h.start;
var C = h.end;
_ === b.length ? (c += ' at end of input: ') : (c += ' at position ' + (_ + 1) + ': ');
var A = b.slice(_, C).replace(/[^]/g, '$&̲'),
I;
_ > 15 ? (I = '…' + b.slice(_ - 15, _)) : (I = b.slice(0, _));
var k;
C + 15 < b.length ? (k = b.slice(C, C + 15) + '…') : (k = b.slice(C)), (c += I + A + k);
}
var W = new Error(c);
return (W.name = 'ParseError'), (W.__proto__ = S.prototype), (W.position = _), W;
};
i.prototype.__proto__ = Error.prototype;
var a = i,
l = function (o, s) {
return o.indexOf(s) !== -1;
},
u = function (o, s) {
return o === void 0 ? s : o;
},
d = /([A-Z])/g,
m = function (o) {
return o.replace(d, '-$1').toLowerCase();
},
p = { '&': '&', '>': '>', '<': '<', '"': '"', "'": ''' },
E = /[&><"']/g;
function f(S) {
return String(S).replace(E, function (o) {
return p[o];
});
}
var v = function S(o) {
return o.type === 'ordgroup' || o.type === 'color' ? (o.body.length === 1 ? S(o.body[0]) : o) : o.type === 'font' ? S(o.body) : o;
},
R = function (o) {
var s = v(o);
return s.type === 'mathord' || s.type === 'textord' || s.type === 'atom';
},
O = function (o) {
if (!o) throw new Error('Expected non-null, but got ' + String(o));
return o;
},
M = function (o) {
var s = /^\s*([^\\/#]*?)(?::|*58|*3a)/i.exec(o);
return s != null ? s[1] : '_relative';
},
w = { contains: l, deflt: u, escape: f, hyphenate: m, getBaseElem: v, isCharacterBox: R, protocolFromUrl: M },
D = {
displayMode: {
type: 'boolean',
description:
'Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.',
cli: '-d, --display-mode',
},
output: {
type: { enum: ['htmlAndMathml', 'html', 'mathml'] },
description: 'Determines the markup language of the output.',
cli: '-F, --format ',
},
leqno: { type: 'boolean', description: 'Render display math in leqno style (left-justified tags).' },
fleqn: { type: 'boolean', description: 'Render display math flush left.' },
throwOnError: {
type: 'boolean',
default: !0,
cli: '-t, --no-throw-on-error',
cliDescription:
'Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.',
},
errorColor: {
type: 'string',
default: '#cc0000',
cli: '-c, --error-color ',
cliDescription:
"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",
cliProcessor: function (o) {
return '#' + o;
},
},
macros: {
type: 'object',
cli: '-m, --macro ',
cliDescription: "Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",
cliDefault: [],
cliProcessor: function (o, s) {
return s.push(o), s;
},
},
minRuleThickness: {
type: 'number',
description:
'Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.',
processor: function (o) {
return Math.max(0, o);
},
cli: '--min-rule-thickness ',
cliProcessor: parseFloat,
},
colorIsTextColor: {
type: 'boolean',
description: "Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",
cli: '-b, --color-is-text-color',
},
strict: {
type: [{ enum: ['warn', 'ignore', 'error'] }, 'boolean', 'function'],
description:
'Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.',
cli: '-S, --strict',
cliDefault: !1,
},
trust: { type: ['boolean', 'function'], description: 'Trust the input, enabling all HTML features such as \\url.', cli: '-T, --trust' },
maxSize: {
type: 'number',
default: 1 / 0,
description:
'If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large',
processor: function (o) {
return Math.max(0, o);
},
cli: '-s, --max-size ',
cliProcessor: parseInt,
},
maxExpand: {
type: 'number',
default: 1e3,
description:
'Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.',
processor: function (o) {
return Math.max(0, o);
},
cli: '-e, --max-expand ',
cliProcessor: function (o) {
return o === 'Infinity' ? 1 / 0 : parseInt(o);
},
},
globalGroup: { type: 'boolean', cli: !1 },
};
function F(S) {
if (S.default) return S.default;
var o = S.type,
s = Array.isArray(o) ? o[0] : o;
if (typeof s != 'string') return s.enum[0];
switch (s) {
case 'boolean':
return !1;
case 'string':
return '';
case 'number':
return 0;
case 'object':
return {};
}
}
var Y = (function () {
function S(s) {
(this.displayMode = void 0),
(this.output = void 0),
(this.leqno = void 0),
(this.fleqn = void 0),
(this.throwOnError = void 0),
(this.errorColor = void 0),
(this.macros = void 0),
(this.minRuleThickness = void 0),
(this.colorIsTextColor = void 0),
(this.strict = void 0),
(this.trust = void 0),
(this.maxSize = void 0),
(this.maxExpand = void 0),
(this.globalGroup = void 0),
(s = s || {});
for (var c in D)
if (D.hasOwnProperty(c)) {
var _ = D[c];
this[c] = s[c] !== void 0 ? (_.processor ? _.processor(s[c]) : s[c]) : F(_);
}
}
var o = S.prototype;
return (
(o.reportNonstrict = function (c, _, h) {
var b = this.strict;
if ((typeof b == 'function' && (b = b(c, _, h)), !(!b || b === 'ignore'))) {
if (b === !0 || b === 'error') throw new a("LaTeX-incompatible input and strict mode is set to 'error': " + (_ + ' [' + c + ']'), h);
b === 'warn'
? typeof console < 'u' && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (_ + ' [' + c + ']'))
: typeof console < 'u' &&
console.warn('LaTeX-incompatible input and strict mode is set to ' + ("unrecognized '" + b + "': " + _ + ' [' + c + ']'));
}
}),
(o.useStrictBehavior = function (c, _, h) {
var b = this.strict;
if (typeof b == 'function')
try {
b = b(c, _, h);
} catch {
b = 'error';
}
return !b || b === 'ignore'
? !1
: b === !0 || b === 'error'
? !0
: b === 'warn'
? (typeof console < 'u' && console.warn("LaTeX-incompatible input and strict mode is set to 'warn': " + (_ + ' [' + c + ']')), !1)
: (typeof console < 'u' &&
console.warn('LaTeX-incompatible input and strict mode is set to ' + ("unrecognized '" + b + "': " + _ + ' [' + c + ']')),
!1);
}),
(o.isTrusted = function (c) {
c.url && !c.protocol && (c.protocol = w.protocolFromUrl(c.url));
var _ = typeof this.trust == 'function' ? this.trust(c) : this.trust;
return !!_;
}),
S
);
})(),
z = (function () {
function S(s, c, _) {
(this.id = void 0), (this.size = void 0), (this.cramped = void 0), (this.id = s), (this.size = c), (this.cramped = _);
}
var o = S.prototype;
return (
(o.sup = function () {
return H[re[this.id]];
}),
(o.sub = function () {
return H[P[this.id]];
}),
(o.fracNum = function () {
return H[K[this.id]];
}),
(o.fracDen = function () {
return H[Z[this.id]];
}),
(o.cramp = function () {
return H[se[this.id]];
}),
(o.text = function () {
return H[le[this.id]];
}),
(o.isTight = function () {
return this.size >= 2;
}),
S
);
})(),
G = 0,
X = 1,
ne = 2,
ce = 3,
j = 4,
Q = 5,
Ae = 6,
Oe = 7,
H = [
new z(G, 0, !1),
new z(X, 0, !0),
new z(ne, 1, !1),
new z(ce, 1, !0),
new z(j, 2, !1),
new z(Q, 2, !0),
new z(Ae, 3, !1),
new z(Oe, 3, !0),
],
re = [j, Q, j, Q, Ae, Oe, Ae, Oe],
P = [Q, Q, Q, Q, Oe, Oe, Oe, Oe],
K = [ne, ce, j, Q, Ae, Oe, Ae, Oe],
Z = [ce, ce, Q, Q, Oe, Oe, Oe, Oe],
se = [X, X, ce, ce, Q, Q, Oe, Oe],
le = [G, X, ne, ce, ne, ce, ne, ce],
ae = { DISPLAY: H[G], TEXT: H[ne], SCRIPT: H[j], SCRIPTSCRIPT: H[Ae] },
ye = [
{
name: 'latin',
blocks: [
[256, 591],
[768, 879],
],
},
{ name: 'cyrillic', blocks: [[1024, 1279]] },
{ name: 'armenian', blocks: [[1328, 1423]] },
{ name: 'brahmic', blocks: [[2304, 4255]] },
{ name: 'georgian', blocks: [[4256, 4351]] },
{
name: 'cjk',
blocks: [
[12288, 12543],
[19968, 40879],
[65280, 65376],
],
},
{ name: 'hangul', blocks: [[44032, 55215]] },
];
function ze(S) {
for (var o = 0; o < ye.length; o++)
for (var s = ye[o], c = 0; c < s.blocks.length; c++) {
var _ = s.blocks[c];
if (S >= _[0] && S <= _[1]) return s.name;
}
return null;
}
var te = [];
ye.forEach(function (S) {
return S.blocks.forEach(function (o) {
return te.push.apply(te, o);
});
});
function be(S) {
for (var o = 0; o < te.length; o += 2) if (S >= te[o] && S <= te[o + 1]) return !0;
return !1;
}
var De = 80,
we = function (o, s) {
return (
'M95,' +
(622 + o + s) +
`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l` +
o / 2.075 +
' -' +
o +
`
c5.3,-9.3,12,-14,20,-14
H400000v` +
(40 + o) +
`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M` +
(834 + o) +
' ' +
s +
'h400000v' +
(40 + o) +
'h-400000z'
);
},
We = function (o, s) {
return (
'M263,' +
(601 + o + s) +
`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l` +
o / 2.084 +
' -' +
o +
`
c4.7,-7.3,11,-11,19,-11
H40000v` +
(40 + o) +
`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M` +
(1001 + o) +
' ' +
s +
'h400000v' +
(40 + o) +
'h-400000z'
);
},
je = function (o, s) {
return (
'M983 ' +
(10 + o + s) +
`
l` +
o / 3.13 +
' -' +
o +
`
c4,-6.7,10,-10,18,-10 H400000v` +
(40 + o) +
`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M` +
(1001 + o) +
' ' +
s +
'h400000v' +
(40 + o) +
'h-400000z'
);
},
Ze = function (o, s) {
return (
'M424,' +
(2398 + o + s) +
`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l` +
o / 4.223 +
' -' +
o +
`c4,-6.7,10,-10,18,-10 H400000
v` +
(40 + o) +
`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M` +
(1001 + o) +
' ' +
s +
`
h400000v` +
(40 + o) +
'h-400000z'
);
},
Ke = function (o, s) {
return (
'M473,' +
(2713 + o + s) +
`
c339.3,-1799.3,509.3,-2700,510,-2702 l` +
o / 5.298 +
' -' +
o +
`
c3.3,-7.3,9.3,-11,18,-11 H400000v` +
(40 + o) +
`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM` +
(1001 + o) +
' ' +
s +
'h400000v' +
(40 + o) +
'H1017.7z'
);
},
pt = function (o) {
var s = o / 2;
return 'M400000 ' + o + ' H0 L' + s + ' 0 l65 45 L145 ' + (o - 80) + ' H400000z';
},
ht = function (o, s, c) {
var _ = c - 54 - s - o;
return (
'M702 ' +
(o + s) +
'H400000' +
(40 + o) +
`
H742v` +
_ +
`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 ` +
s +
'H400000v' +
(40 + o) +
'H742z'
);
},
xt = function (o, s, c) {
s = 1e3 * s;
var _ = '';
switch (o) {
case 'sqrtMain':
_ = we(s, De);
break;
case 'sqrtSize1':
_ = We(s, De);
break;
case 'sqrtSize2':
_ = je(s, De);
break;
case 'sqrtSize3':
_ = Ze(s, De);
break;
case 'sqrtSize4':
_ = Ke(s, De);
break;
case 'sqrtTall':
_ = ht(s, De, c);
}
return _;
},
fe = function (o, s) {
switch (o) {
case '⎜':
return 'M291 0 H417 V' + s + ' H291z M291 0 H417 V' + s + ' H291z';
case '∣':
return 'M145 0 H188 V' + s + ' H145z M145 0 H188 V' + s + ' H145z';
case '∥':
return 'M145 0 H188 V' + s + ' H145z M145 0 H188 V' + s + ' H145z' + ('M367 0 H410 V' + s + ' H367z M367 0 H410 V' + s + ' H367z');
case '⎟':
return 'M457 0 H583 V' + s + ' H457z M457 0 H583 V' + s + ' H457z';
case '⎢':
return 'M319 0 H403 V' + s + ' H319z M319 0 H403 V' + s + ' H319z';
case '⎥':
return 'M263 0 H347 V' + s + ' H263z M263 0 H347 V' + s + ' H263z';
case '⎪':
return 'M384 0 H504 V' + s + ' H384z M384 0 H504 V' + s + ' H384z';
case '⏐':
return 'M312 0 H355 V' + s + ' H312z M312 0 H355 V' + s + ' H312z';
case '‖':
return 'M257 0 H300 V' + s + ' H257z M257 0 H300 V' + s + ' H257z' + ('M478 0 H521 V' + s + ' H478z M478 0 H521 V' + s + ' H478z');
default:
return '';
}
},
Le = {
doubleleftarrow: `M262 157
l10-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
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
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
c2 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
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
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,
doublerightarrow: `M399738 392l
-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
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
-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
-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
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-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
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,
leftarrow: `M400000 241H110l3-3c68.7-52.7 113.7-120
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
-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
c-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
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
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
l-3-3h399890zM100 241v40h399900v-40z`,
leftbrace: `M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
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
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
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,
leftgroup: `M400000 80
H435C64 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
435 0h399565z`,
leftgroupunder: `M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,
leftharpoon: `M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-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
-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
-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
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
-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
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,
leftharpoondown: `M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
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
-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
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
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,
lefthook: `M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-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
-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
71.5 23h399859zM103 281v-40h399897v40z`,
leftlinesegment: `M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,
leftmapsto: `M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,
leftToFrom: `M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8
c28.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
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,
longequal: `M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,
midbrace: `M200428 334
c-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
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
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
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,
midbraceunder: `M199572 214
c100.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
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
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
-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
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.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
60.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
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 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
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.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
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 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
-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
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
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
-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
-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
151.7 139 205zm0 0v40h399900v-40z`,
rightbrace: `M400000 542l
-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
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.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
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-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
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
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
-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
-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
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
-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
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
m0 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
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
-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
-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
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
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
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-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
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
-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
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
M399960 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
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-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
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,
twoheadleftarrow: `M0 167c68 40
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
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
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
c-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
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
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,
tilde1: `M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-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
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
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,
tilde2: `M344 55.266c-142 0-300.638 81.316-311.5 86.418
-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
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 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
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,
tilde3: `M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,
tilde4: `M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-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
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-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
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,
widehat1: `M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-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
-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
-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
-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,
-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,
-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,
-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,
-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
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-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
s-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
121.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
s2.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
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,
rightarrowabovebar: `M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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
-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
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,
baraboveshortleftharpoon: `M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,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
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,
rightharpoonaboveshortbar: `M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-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
c-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
M0 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
c1.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,
1c0,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,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 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
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-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
c-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
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`,
},
ge = function (o, s) {
switch (o) {
case 'lbrack':
return (
'M403 1759 V84 H666 V0 H319 V1759 v' +
s +
` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v` +
s +
' v1759 h84z'
);
case 'rbrack':
return (
'M347 1759 V0 H0 V84 H263 V1759 v' +
s +
` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v` +
s +
' v1759 h84z'
);
case 'vert':
return (
'M145 15 v585 v' +
s +
` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v` +
-s +
` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v` +
s +
' v585 h43z'
);
case 'doublevert':
return (
'M145 15 v585 v' +
s +
` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v` +
-s +
` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v` +
s +
` v585 h43z
M367 15 v585 v` +
s +
` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v` +
-s +
` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v` +
s +
' v585 h43z'
);
case 'lfloor':
return (
'M319 602 V0 H403 V602 v' +
s +
` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v` +
s +
' v1715 H319z'
);
case 'rfloor':
return (
'M319 602 V0 H403 V602 v' +
s +
` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v` +
s +
' v1715 H319z'
);
case 'lceil':
return (
'M403 1759 V84 H666 V0 H319 V1759 v' +
s +
` v602 h84z
M403 1759 V0 H319 V1759 v` +
s +
' v602 h84z'
);
case 'rceil':
return (
'M347 1759 V0 H0 V84 H263 V1759 v' +
s +
` v602 h84z
M347 1759 V0 h-84 V1759 v` +
s +
' v602 h84z'
);
case 'lparen':
return (
`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,` +
(s + 84) +
`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-` +
(s + 92) +
`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`
);
case 'rparen':
return (
`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,` +
(s + 9) +
`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-` +
(s + 144) +
`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`
);
default:
throw new Error('Unknown stretchy delimiter.');
}
},
xe = (function () {
function S(s) {
(this.children = void 0),
(this.classes = void 0),
(this.height = void 0),
(this.depth = void 0),
(this.maxFontSize = void 0),
(this.style = void 0),
(this.children = s),
(this.classes = []),
(this.height = 0),
(this.depth = 0),
(this.maxFontSize = 0),
(this.style = {});
}
var o = S.prototype;
return (
(o.hasClass = function (c) {
return w.contains(this.classes, c);
}),
(o.toNode = function () {
for (var c = document.createDocumentFragment(), _ = 0; _ < this.children.length; _++) c.appendChild(this.children[_].toNode());
return c;
}),
(o.toMarkup = function () {
for (var c = '', _ = 0; _ < this.children.length; _++) c += this.children[_].toMarkup();
return c;
}),
(o.toText = function () {
var c = function (h) {
return h.toText();
};
return this.children.map(c).join('');
}),
S
);
})(),
ke = {
'AMS-Regular': {
32: [0, 0, 0, 0, 0.25],
65: [0, 0.68889, 0, 0, 0.72222],
66: [0, 0.68889, 0, 0, 0.66667],
67: [0, 0.68889, 0, 0, 0.72222],
68: [0, 0.68889, 0, 0, 0.72222],
69: [0, 0.68889, 0, 0, 0.66667],
70: [0, 0.68889, 0, 0, 0.61111],
71: [0, 0.68889, 0, 0, 0.77778],
72: [0, 0.68889, 0, 0, 0.77778],
73: [0, 0.68889, 0, 0, 0.38889],
74: [0.16667, 0.68889, 0, 0, 0.5],
75: [0, 0.68889, 0, 0, 0.77778],
76: [0, 0.68889, 0, 0, 0.66667],
77: [0, 0.68889, 0, 0, 0.94445],
78: [0, 0.68889, 0, 0, 0.72222],
79: [0.16667, 0.68889, 0, 0, 0.77778],
80: [0, 0.68889, 0, 0, 0.61111],
81: [0.16667, 0.68889, 0, 0, 0.77778],
82: [0, 0.68889, 0, 0, 0.72222],
83: [0, 0.68889, 0, 0, 0.55556],
84: [0, 0.68889, 0, 0, 0.66667],
85: [0, 0.68889, 0, 0, 0.72222],
86: [0, 0.68889, 0, 0, 0.72222],
87: [0, 0.68889, 0, 0, 1],
88: [0, 0.68889, 0, 0, 0.72222],
89: [0, 0.68889, 0, 0, 0.72222],
90: [0, 0.68889, 0, 0, 0.66667],
107: [0, 0.68889, 0, 0, 0.55556],
160: [0, 0, 0, 0, 0.25],
165: [0, 0.675, 0.025, 0, 0.75],
174: [0.15559, 0.69224, 0, 0, 0.94666],
240: [0, 0.68889, 0, 0, 0.55556],
295: [0, 0.68889, 0, 0, 0.54028],
710: [0, 0.825, 0, 0, 2.33334],
732: [0, 0.9, 0, 0, 2.33334],
770: [0, 0.825, 0, 0, 2.33334],
771: [0, 0.9, 0, 0, 2.33334],
989: [0.08167, 0.58167, 0, 0, 0.77778],
1008: [0, 0.43056, 0.04028, 0, 0.66667],
8245: [0, 0.54986, 0, 0, 0.275],
8463: [0, 0.68889, 0, 0, 0.54028],
8487: [0, 0.68889, 0, 0, 0.72222],
8498: [0, 0.68889, 0, 0, 0.55556],
8502: [0, 0.68889, 0, 0, 0.66667],
8503: [0, 0.68889, 0, 0, 0.44445],
8504: [0, 0.68889, 0, 0, 0.66667],
8513: [0, 0.68889, 0, 0, 0.63889],
8592: [-0.03598, 0.46402, 0, 0, 0.5],
8594: [-0.03598, 0.46402, 0, 0, 0.5],
8602: [-0.13313, 0.36687, 0, 0, 1],
8603: [-0.13313, 0.36687, 0, 0, 1],
8606: [0.01354, 0.52239, 0, 0, 1],
8608: [0.01354, 0.52239, 0, 0, 1],
8610: [0.01354, 0.52239, 0, 0, 1.11111],
8611: [0.01354, 0.52239, 0, 0, 1.11111],
8619: [0, 0.54986, 0, 0, 1],
8620: [0, 0.54986, 0, 0, 1],
8621: [-0.13313, 0.37788, 0, 0, 1.38889],
8622: [-0.13313, 0.36687, 0, 0, 1],
8624: [0, 0.69224, 0, 0, 0.5],
8625: [0, 0.69224, 0, 0, 0.5],
8630: [0, 0.43056, 0, 0, 1],
8631: [0, 0.43056, 0, 0, 1],
8634: [0.08198, 0.58198, 0, 0, 0.77778],
8635: [0.08198, 0.58198, 0, 0, 0.77778],
8638: [0.19444, 0.69224, 0, 0, 0.41667],
8639: [0.19444, 0.69224, 0, 0, 0.41667],
8642: [0.19444, 0.69224, 0, 0, 0.41667],
8643: [0.19444, 0.69224, 0, 0, 0.41667],
8644: [0.1808, 0.675, 0, 0, 1],
8646: [0.1808, 0.675, 0, 0, 1],
8647: [0.1808, 0.675, 0, 0, 1],
8648: [0.19444, 0.69224, 0, 0, 0.83334],
8649: [0.1808, 0.675, 0, 0, 1],
8650: [0.19444, 0.69224, 0, 0, 0.83334],
8651: [0.01354, 0.52239, 0, 0, 1],
8652: [0.01354, 0.52239, 0, 0, 1],
8653: [-0.13313, 0.36687, 0, 0, 1],
8654: [-0.13313, 0.36687, 0, 0, 1],
8655: [-0.13313, 0.36687, 0, 0, 1],
8666: [0.13667, 0.63667, 0, 0, 1],
8667: [0.13667, 0.63667, 0, 0, 1],
8669: [-0.13313, 0.37788, 0, 0, 1],
8672: [-0.064, 0.437, 0, 0, 1.334],
8674: [-0.064, 0.437, 0, 0, 1.334],
8705: [0, 0.825, 0, 0, 0.5],
8708: [0, 0.68889, 0, 0, 0.55556],
8709: [0.08167, 0.58167, 0, 0, 0.77778],
8717: [0, 0.43056, 0, 0, 0.42917],
8722: [-0.03598, 0.46402, 0, 0, 0.5],
8724: [0.08198, 0.69224, 0, 0, 0.77778],
8726: [0.08167, 0.58167, 0, 0, 0.77778],
8733: [0, 0.69224, 0, 0, 0.77778],
8736: [0, 0.69224, 0, 0, 0.72222],
8737: [0, 0.69224, 0, 0, 0.72222],
8738: [0.03517, 0.52239, 0, 0, 0.72222],
8739: [0.08167, 0.58167, 0, 0, 0.22222],
8740: [0.25142, 0.74111, 0, 0, 0.27778],
8741: [0.08167, 0.58167, 0, 0, 0.38889],
8742: [0.25142, 0.74111, 0, 0, 0.5],
8756: [0, 0.69224, 0, 0, 0.66667],
8757: [0, 0.69224, 0, 0, 0.66667],
8764: [-0.13313, 0.36687, 0, 0, 0.77778],
8765: [-0.13313, 0.37788, 0, 0, 0.77778],
8769: [-0.13313, 0.36687, 0, 0, 0.77778],
8770: [-0.03625, 0.46375, 0, 0, 0.77778],
8774: [0.30274, 0.79383, 0, 0, 0.77778],
8776: [-0.01688, 0.48312, 0, 0, 0.77778],
8778: [0.08167, 0.58167, 0, 0, 0.77778],
8782: [0.06062, 0.54986, 0, 0, 0.77778],
8783: [0.06062, 0.54986, 0, 0, 0.77778],
8785: [0.08198, 0.58198, 0, 0, 0.77778],
8786: [0.08198, 0.58198, 0, 0, 0.77778],
8787: [0.08198, 0.58198, 0, 0, 0.77778],
8790: [0, 0.69224, 0, 0, 0.77778],
8791: [0.22958, 0.72958, 0, 0, 0.77778],
8796: [0.08198, 0.91667, 0, 0, 0.77778],
8806: [0.25583, 0.75583, 0, 0, 0.77778],
8807: [0.25583, 0.75583, 0, 0, 0.77778],
8808: [0.25142, 0.75726, 0, 0, 0.77778],
8809: [0.25142, 0.75726, 0, 0, 0.77778],
8812: [0.25583, 0.75583, 0, 0, 0.5],
8814: [0.20576, 0.70576, 0, 0, 0.77778],
8815: [0.20576, 0.70576, 0, 0, 0.77778],
8816: [0.30274, 0.79383, 0, 0, 0.77778],
8817: [0.30274, 0.79383, 0, 0, 0.77778],
8818: [0.22958, 0.72958, 0, 0, 0.77778],
8819: [0.22958, 0.72958, 0, 0, 0.77778],
8822: [0.1808, 0.675, 0, 0, 0.77778],
8823: [0.1808, 0.675, 0, 0, 0.77778],
8828: [0.13667, 0.63667, 0, 0, 0.77778],
8829: [0.13667, 0.63667, 0, 0, 0.77778],
8830: [0.22958, 0.72958, 0, 0, 0.77778],
8831: [0.22958, 0.72958, 0, 0, 0.77778],
8832: [0.20576, 0.70576, 0, 0, 0.77778],
8833: [0.20576, 0.70576, 0, 0, 0.77778],
8840: [0.30274, 0.79383, 0, 0, 0.77778],
8841: [0.30274, 0.79383, 0, 0, 0.77778],
8842: [0.13597, 0.63597, 0, 0, 0.77778],
8843: [0.13597, 0.63597, 0, 0, 0.77778],
8847: [0.03517, 0.54986, 0, 0, 0.77778],
8848: [0.03517, 0.54986, 0, 0, 0.77778],
8858: [0.08198, 0.58198, 0, 0, 0.77778],
8859: [0.08198, 0.58198, 0, 0, 0.77778],
8861: [0.08198, 0.58198, 0, 0, 0.77778],
8862: [0, 0.675, 0, 0, 0.77778],
8863: [0, 0.675, 0, 0, 0.77778],
8864: [0, 0.675, 0, 0, 0.77778],
8865: [0, 0.675, 0, 0, 0.77778],
8872: [0, 0.69224, 0, 0, 0.61111],
8873: [0, 0.69224, 0, 0, 0.72222],
8874: [0, 0.69224, 0, 0, 0.88889],
8876: [0, 0.68889, 0, 0, 0.61111],
8877: [0, 0.68889, 0, 0, 0.61111],
8878: [0, 0.68889, 0, 0, 0.72222],
8879: [0, 0.68889, 0, 0, 0.72222],
8882: [0.03517, 0.54986, 0, 0, 0.77778],
8883: [0.03517, 0.54986, 0, 0, 0.77778],
8884: [0.13667, 0.63667, 0, 0, 0.77778],
8885: [0.13667, 0.63667, 0, 0, 0.77778],
8888: [0, 0.54986, 0, 0, 1.11111],
8890: [0.19444, 0.43056, 0, 0, 0.55556],
8891: [0.19444, 0.69224, 0, 0, 0.61111],
8892: [0.19444, 0.69224, 0, 0, 0.61111],
8901: [0, 0.54986, 0, 0, 0.27778],
8903: [0.08167, 0.58167, 0, 0, 0.77778],
8905: [0.08167, 0.58167, 0, 0, 0.77778],
8906: [0.08167, 0.58167, 0, 0, 0.77778],
8907: [0, 0.69224, 0, 0, 0.77778],
8908: [0, 0.69224, 0, 0, 0.77778],
8909: [-0.03598, 0.46402, 0, 0, 0.77778],
8910: [0, 0.54986, 0, 0, 0.76042],
8911: [0, 0.54986, 0, 0, 0.76042],
8912: [0.03517, 0.54986, 0, 0, 0.77778],
8913: [0.03517, 0.54986, 0, 0, 0.77778],
8914: [0, 0.54986, 0, 0, 0.66667],
8915: [0, 0.54986, 0, 0, 0.66667],
8916: [0, 0.69224, 0, 0, 0.66667],
8918: [0.0391, 0.5391, 0, 0, 0.77778],
8919: [0.0391, 0.5391, 0, 0, 0.77778],
8920: [0.03517, 0.54986, 0, 0, 1.33334],
8921: [0.03517, 0.54986, 0, 0, 1.33334],
8922: [0.38569, 0.88569, 0, 0, 0.77778],
8923: [0.38569, 0.88569, 0, 0, 0.77778],
8926: [0.13667, 0.63667, 0, 0, 0.77778],
8927: [0.13667, 0.63667, 0, 0, 0.77778],
8928: [0.30274, 0.79383, 0, 0, 0.77778],
8929: [0.30274, 0.79383, 0, 0, 0.77778],
8934: [0.23222, 0.74111, 0, 0, 0.77778],
8935: [0.23222, 0.74111, 0, 0, 0.77778],
8936: [0.23222, 0.74111, 0, 0, 0.77778],
8937: [0.23222, 0.74111, 0, 0, 0.77778],
8938: [0.20576, 0.70576, 0, 0, 0.77778],
8939: [0.20576, 0.70576, 0, 0, 0.77778],
8940: [0.30274, 0.79383, 0, 0, 0.77778],
8941: [0.30274, 0.79383, 0, 0, 0.77778],
8994: [0.19444, 0.69224, 0, 0, 0.77778],
8995: [0.19444, 0.69224, 0, 0, 0.77778],
9416: [0.15559, 0.69224, 0, 0, 0.90222],
9484: [0, 0.69224, 0, 0, 0.5],
9488: [0, 0.69224, 0, 0, 0.5],
9492: [0, 0.37788, 0, 0, 0.5],
9496: [0, 0.37788, 0, 0, 0.5],
9585: [0.19444, 0.68889, 0, 0, 0.88889],
9586: [0.19444, 0.74111, 0, 0, 0.88889],
9632: [0, 0.675, 0, 0, 0.77778],
9633: [0, 0.675, 0, 0, 0.77778],
9650: [0, 0.54986, 0, 0, 0.72222],
9651: [0, 0.54986, 0, 0, 0.72222],
9654: [0.03517, 0.54986, 0, 0, 0.77778],
9660: [0, 0.54986, 0, 0, 0.72222],
9661: [0, 0.54986, 0, 0, 0.72222],
9664: [0.03517, 0.54986, 0, 0, 0.77778],
9674: [0.11111, 0.69224, 0, 0, 0.66667],
9733: [0.19444, 0.69224, 0, 0, 0.94445],
10003: [0, 0.69224, 0, 0, 0.83334],
10016: [0, 0.69224, 0, 0, 0.83334],
10731: [0.11111, 0.69224, 0, 0, 0.66667],
10846: [0.19444, 0.75583, 0, 0, 0.61111],
10877: [0.13667, 0.63667, 0, 0, 0.77778],
10878: [0.13667, 0.63667, 0, 0, 0.77778],
10885: [0.25583, 0.75583, 0, 0, 0.77778],
10886: [0.25583, 0.75583, 0, 0, 0.77778],
10887: [0.13597, 0.63597, 0, 0, 0.77778],
10888: [0.13597, 0.63597, 0, 0, 0.77778],
10889: [0.26167, 0.75726, 0, 0, 0.77778],
10890: [0.26167, 0.75726, 0, 0, 0.77778],
10891: [0.48256, 0.98256, 0, 0, 0.77778],
10892: [0.48256, 0.98256, 0, 0, 0.77778],
10901: [0.13667, 0.63667, 0, 0, 0.77778],
10902: [0.13667, 0.63667, 0, 0, 0.77778],
10933: [0.25142, 0.75726, 0, 0, 0.77778],
10934: [0.25142, 0.75726, 0, 0, 0.77778],
10935: [0.26167, 0.75726, 0, 0, 0.77778],
10936: [0.26167, 0.75726, 0, 0, 0.77778],
10937: [0.26167, 0.75726, 0, 0, 0.77778],
10938: [0.26167, 0.75726, 0, 0, 0.77778],
10949: [0.25583, 0.75583, 0, 0, 0.77778],
10950: [0.25583, 0.75583, 0, 0, 0.77778],
10955: [0.28481, 0.79383, 0, 0, 0.77778],
10956: [0.28481, 0.79383, 0, 0, 0.77778],
57350: [0.08167, 0.58167, 0, 0, 0.22222],
57351: [0.08167, 0.58167, 0, 0, 0.38889],
57352: [0.08167, 0.58167, 0, 0, 0.77778],
57353: [0, 0.43056, 0.04028, 0, 0.66667],
57356: [0.25142, 0.75726, 0, 0, 0.77778],
57357: [0.25142, 0.75726, 0, 0, 0.77778],
57358: [0.41951, 0.91951, 0, 0, 0.77778],
57359: [0.30274, 0.79383, 0, 0, 0.77778],
57360: [0.30274, 0.79383, 0, 0, 0.77778],
57361: [0.41951, 0.91951, 0, 0, 0.77778],
57366: [0.25142, 0.75726, 0, 0, 0.77778],
57367: [0.25142, 0.75726, 0, 0, 0.77778],
57368: [0.25142, 0.75726, 0, 0, 0.77778],
57369: [0.25142, 0.75726, 0, 0, 0.77778],
57370: [0.13597, 0.63597, 0, 0, 0.77778],
57371: [0.13597, 0.63597, 0, 0, 0.77778],
},
'Caligraphic-Regular': {
32: [0, 0, 0, 0, 0.25],
65: [0, 0.68333, 0, 0.19445, 0.79847],
66: [0, 0.68333, 0.03041, 0.13889, 0.65681],
67: [0, 0.68333, 0.05834, 0.13889, 0.52653],
68: [0, 0.68333, 0.02778, 0.08334, 0.77139],
69: [0, 0.68333, 0.08944, 0.11111, 0.52778],
70: [0, 0.68333, 0.09931, 0.11111, 0.71875],
71: [0.09722, 0.68333, 0.0593, 0.11111, 0.59487],
72: [0, 0.68333, 0.00965, 0.11111, 0.84452],
73: [0, 0.68333, 0.07382, 0, 0.54452],
74: [0.09722, 0.68333, 0.18472, 0.16667, 0.67778],
75: [0, 0.68333, 0.01445, 0.05556, 0.76195],
76: [0, 0.68333, 0, 0.13889, 0.68972],
77: [0, 0.68333, 0, 0.13889, 1.2009],
78: [0, 0.68333, 0.14736, 0.08334, 0.82049],
79: [0, 0.68333, 0.02778, 0.11111, 0.79611],
80: [0, 0.68333, 0.08222, 0.08334, 0.69556],
81: [0.09722, 0.68333, 0, 0.11111, 0.81667],
82: [0, 0.68333, 0, 0.08334, 0.8475],
83: [0, 0.68333, 0.075, 0.13889, 0.60556],
84: [0, 0.68333, 0.25417, 0, 0.54464],
85: [0, 0.68333, 0.09931, 0.08334, 0.62583],
86: [0, 0.68333, 0.08222, 0, 0.61278],
87: [0, 0.68333, 0.08222, 0.08334, 0.98778],
88: [0, 0.68333, 0.14643, 0.13889, 0.7133],
89: [0.09722, 0.68333, 0.08222, 0.08334, 0.66834],
90: [0, 0.68333, 0.07944, 0.13889, 0.72473],
160: [0, 0, 0, 0, 0.25],
},
'Fraktur-Regular': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69141, 0, 0, 0.29574],
34: [0, 0.69141, 0, 0, 0.21471],
38: [0, 0.69141, 0, 0, 0.73786],
39: [0, 0.69141, 0, 0, 0.21201],
40: [0.24982, 0.74947, 0, 0, 0.38865],
41: [0.24982, 0.74947, 0, 0, 0.38865],
42: [0, 0.62119, 0, 0, 0.27764],
43: [0.08319, 0.58283, 0, 0, 0.75623],
44: [0, 0.10803, 0, 0, 0.27764],
45: [0.08319, 0.58283, 0, 0, 0.75623],
46: [0, 0.10803, 0, 0, 0.27764],
47: [0.24982, 0.74947, 0, 0, 0.50181],
48: [0, 0.47534, 0, 0, 0.50181],
49: [0, 0.47534, 0, 0, 0.50181],
50: [0, 0.47534, 0, 0, 0.50181],
51: [0.18906, 0.47534, 0, 0, 0.50181],
52: [0.18906, 0.47534, 0, 0, 0.50181],
53: [0.18906, 0.47534, 0, 0, 0.50181],
54: [0, 0.69141, 0, 0, 0.50181],
55: [0.18906, 0.47534, 0, 0, 0.50181],
56: [0, 0.69141, 0, 0, 0.50181],
57: [0.18906, 0.47534, 0, 0, 0.50181],
58: [0, 0.47534, 0, 0, 0.21606],
59: [0.12604, 0.47534, 0, 0, 0.21606],
61: [-0.13099, 0.36866, 0, 0, 0.75623],
63: [0, 0.69141, 0, 0, 0.36245],
65: [0, 0.69141, 0, 0, 0.7176],
66: [0, 0.69141, 0, 0, 0.88397],
67: [0, 0.69141, 0, 0, 0.61254],
68: [0, 0.69141, 0, 0, 0.83158],
69: [0, 0.69141, 0, 0, 0.66278],
70: [0.12604, 0.69141, 0, 0, 0.61119],
71: [0, 0.69141, 0, 0, 0.78539],
72: [0.06302, 0.69141, 0, 0, 0.7203],
73: [0, 0.69141, 0, 0, 0.55448],
74: [0.12604, 0.69141, 0, 0, 0.55231],
75: [0, 0.69141, 0, 0, 0.66845],
76: [0, 0.69141, 0, 0, 0.66602],
77: [0, 0.69141, 0, 0, 1.04953],
78: [0, 0.69141, 0, 0, 0.83212],
79: [0, 0.69141, 0, 0, 0.82699],
80: [0.18906, 0.69141, 0, 0, 0.82753],
81: [0.03781, 0.69141, 0, 0, 0.82699],
82: [0, 0.69141, 0, 0, 0.82807],
83: [0, 0.69141, 0, 0, 0.82861],
84: [0, 0.69141, 0, 0, 0.66899],
85: [0, 0.69141, 0, 0, 0.64576],
86: [0, 0.69141, 0, 0, 0.83131],
87: [0, 0.69141, 0, 0, 1.04602],
88: [0, 0.69141, 0, 0, 0.71922],
89: [0.18906, 0.69141, 0, 0, 0.83293],
90: [0.12604, 0.69141, 0, 0, 0.60201],
91: [0.24982, 0.74947, 0, 0, 0.27764],
93: [0.24982, 0.74947, 0, 0, 0.27764],
94: [0, 0.69141, 0, 0, 0.49965],
97: [0, 0.47534, 0, 0, 0.50046],
98: [0, 0.69141, 0, 0, 0.51315],
99: [0, 0.47534, 0, 0, 0.38946],
100: [0, 0.62119, 0, 0, 0.49857],
101: [0, 0.47534, 0, 0, 0.40053],
102: [0.18906, 0.69141, 0, 0, 0.32626],
103: [0.18906, 0.47534, 0, 0, 0.5037],
104: [0.18906, 0.69141, 0, 0, 0.52126],
105: [0, 0.69141, 0, 0, 0.27899],
106: [0, 0.69141, 0, 0, 0.28088],
107: [0, 0.69141, 0, 0, 0.38946],
108: [0, 0.69141, 0, 0, 0.27953],
109: [0, 0.47534, 0, 0, 0.76676],
110: [0, 0.47534, 0, 0, 0.52666],
111: [0, 0.47534, 0, 0, 0.48885],
112: [0.18906, 0.52396, 0, 0, 0.50046],
113: [0.18906, 0.47534, 0, 0, 0.48912],
114: [0, 0.47534, 0, 0, 0.38919],
115: [0, 0.47534, 0, 0, 0.44266],
116: [0, 0.62119, 0, 0, 0.33301],
117: [0, 0.47534, 0, 0, 0.5172],
118: [0, 0.52396, 0, 0, 0.5118],
119: [0, 0.52396, 0, 0, 0.77351],
120: [0.18906, 0.47534, 0, 0, 0.38865],
121: [0.18906, 0.47534, 0, 0, 0.49884],
122: [0.18906, 0.47534, 0, 0, 0.39054],
160: [0, 0, 0, 0, 0.25],
8216: [0, 0.69141, 0, 0, 0.21471],
8217: [0, 0.69141, 0, 0, 0.21471],
58112: [0, 0.62119, 0, 0, 0.49749],
58113: [0, 0.62119, 0, 0, 0.4983],
58114: [0.18906, 0.69141, 0, 0, 0.33328],
58115: [0.18906, 0.69141, 0, 0, 0.32923],
58116: [0.18906, 0.47534, 0, 0, 0.50343],
58117: [0, 0.69141, 0, 0, 0.33301],
58118: [0, 0.62119, 0, 0, 0.33409],
58119: [0, 0.47534, 0, 0, 0.50073],
},
'Main-Bold': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.35],
34: [0, 0.69444, 0, 0, 0.60278],
35: [0.19444, 0.69444, 0, 0, 0.95833],
36: [0.05556, 0.75, 0, 0, 0.575],
37: [0.05556, 0.75, 0, 0, 0.95833],
38: [0, 0.69444, 0, 0, 0.89444],
39: [0, 0.69444, 0, 0, 0.31944],
40: [0.25, 0.75, 0, 0, 0.44722],
41: [0.25, 0.75, 0, 0, 0.44722],
42: [0, 0.75, 0, 0, 0.575],
43: [0.13333, 0.63333, 0, 0, 0.89444],
44: [0.19444, 0.15556, 0, 0, 0.31944],
45: [0, 0.44444, 0, 0, 0.38333],
46: [0, 0.15556, 0, 0, 0.31944],
47: [0.25, 0.75, 0, 0, 0.575],
48: [0, 0.64444, 0, 0, 0.575],
49: [0, 0.64444, 0, 0, 0.575],
50: [0, 0.64444, 0, 0, 0.575],
51: [0, 0.64444, 0, 0, 0.575],
52: [0, 0.64444, 0, 0, 0.575],
53: [0, 0.64444, 0, 0, 0.575],
54: [0, 0.64444, 0, 0, 0.575],
55: [0, 0.64444, 0, 0, 0.575],
56: [0, 0.64444, 0, 0, 0.575],
57: [0, 0.64444, 0, 0, 0.575],
58: [0, 0.44444, 0, 0, 0.31944],
59: [0.19444, 0.44444, 0, 0, 0.31944],
60: [0.08556, 0.58556, 0, 0, 0.89444],
61: [-0.10889, 0.39111, 0, 0, 0.89444],
62: [0.08556, 0.58556, 0, 0, 0.89444],
63: [0, 0.69444, 0, 0, 0.54305],
64: [0, 0.69444, 0, 0, 0.89444],
65: [0, 0.68611, 0, 0, 0.86944],
66: [0, 0.68611, 0, 0, 0.81805],
67: [0, 0.68611, 0, 0, 0.83055],
68: [0, 0.68611, 0, 0, 0.88194],
69: [0, 0.68611, 0, 0, 0.75555],
70: [0, 0.68611, 0, 0, 0.72361],
71: [0, 0.68611, 0, 0, 0.90416],
72: [0, 0.68611, 0, 0, 0.9],
73: [0, 0.68611, 0, 0, 0.43611],
74: [0, 0.68611, 0, 0, 0.59444],
75: [0, 0.68611, 0, 0, 0.90138],
76: [0, 0.68611, 0, 0, 0.69166],
77: [0, 0.68611, 0, 0, 1.09166],
78: [0, 0.68611, 0, 0, 0.9],
79: [0, 0.68611, 0, 0, 0.86388],
80: [0, 0.68611, 0, 0, 0.78611],
81: [0.19444, 0.68611, 0, 0, 0.86388],
82: [0, 0.68611, 0, 0, 0.8625],
83: [0, 0.68611, 0, 0, 0.63889],
84: [0, 0.68611, 0, 0, 0.8],
85: [0, 0.68611, 0, 0, 0.88472],
86: [0, 0.68611, 0.01597, 0, 0.86944],
87: [0, 0.68611, 0.01597, 0, 1.18888],
88: [0, 0.68611, 0, 0, 0.86944],
89: [0, 0.68611, 0.02875, 0, 0.86944],
90: [0, 0.68611, 0, 0, 0.70277],
91: [0.25, 0.75, 0, 0, 0.31944],
92: [0.25, 0.75, 0, 0, 0.575],
93: [0.25, 0.75, 0, 0, 0.31944],
94: [0, 0.69444, 0, 0, 0.575],
95: [0.31, 0.13444, 0.03194, 0, 0.575],
97: [0, 0.44444, 0, 0, 0.55902],
98: [0, 0.69444, 0, 0, 0.63889],
99: [0, 0.44444, 0, 0, 0.51111],
100: [0, 0.69444, 0, 0, 0.63889],
101: [0, 0.44444, 0, 0, 0.52708],
102: [0, 0.69444, 0.10903, 0, 0.35139],
103: [0.19444, 0.44444, 0.01597, 0, 0.575],
104: [0, 0.69444, 0, 0, 0.63889],
105: [0, 0.69444, 0, 0, 0.31944],
106: [0.19444, 0.69444, 0, 0, 0.35139],
107: [0, 0.69444, 0, 0, 0.60694],
108: [0, 0.69444, 0, 0, 0.31944],
109: [0, 0.44444, 0, 0, 0.95833],
110: [0, 0.44444, 0, 0, 0.63889],
111: [0, 0.44444, 0, 0, 0.575],
112: [0.19444, 0.44444, 0, 0, 0.63889],
113: [0.19444, 0.44444, 0, 0, 0.60694],
114: [0, 0.44444, 0, 0, 0.47361],
115: [0, 0.44444, 0, 0, 0.45361],
116: [0, 0.63492, 0, 0, 0.44722],
117: [0, 0.44444, 0, 0, 0.63889],
118: [0, 0.44444, 0.01597, 0, 0.60694],
119: [0, 0.44444, 0.01597, 0, 0.83055],
120: [0, 0.44444, 0, 0, 0.60694],
121: [0.19444, 0.44444, 0.01597, 0, 0.60694],
122: [0, 0.44444, 0, 0, 0.51111],
123: [0.25, 0.75, 0, 0, 0.575],
124: [0.25, 0.75, 0, 0, 0.31944],
125: [0.25, 0.75, 0, 0, 0.575],
126: [0.35, 0.34444, 0, 0, 0.575],
160: [0, 0, 0, 0, 0.25],
163: [0, 0.69444, 0, 0, 0.86853],
168: [0, 0.69444, 0, 0, 0.575],
172: [0, 0.44444, 0, 0, 0.76666],
176: [0, 0.69444, 0, 0, 0.86944],
177: [0.13333, 0.63333, 0, 0, 0.89444],
184: [0.17014, 0, 0, 0, 0.51111],
198: [0, 0.68611, 0, 0, 1.04166],
215: [0.13333, 0.63333, 0, 0, 0.89444],
216: [0.04861, 0.73472, 0, 0, 0.89444],
223: [0, 0.69444, 0, 0, 0.59722],
230: [0, 0.44444, 0, 0, 0.83055],
247: [0.13333, 0.63333, 0, 0, 0.89444],
248: [0.09722, 0.54167, 0, 0, 0.575],
305: [0, 0.44444, 0, 0, 0.31944],
338: [0, 0.68611, 0, 0, 1.16944],
339: [0, 0.44444, 0, 0, 0.89444],
567: [0.19444, 0.44444, 0, 0, 0.35139],
710: [0, 0.69444, 0, 0, 0.575],
711: [0, 0.63194, 0, 0, 0.575],
713: [0, 0.59611, 0, 0, 0.575],
714: [0, 0.69444, 0, 0, 0.575],
715: [0, 0.69444, 0, 0, 0.575],
728: [0, 0.69444, 0, 0, 0.575],
729: [0, 0.69444, 0, 0, 0.31944],
730: [0, 0.69444, 0, 0, 0.86944],
732: [0, 0.69444, 0, 0, 0.575],
733: [0, 0.69444, 0, 0, 0.575],
915: [0, 0.68611, 0, 0, 0.69166],
916: [0, 0.68611, 0, 0, 0.95833],
920: [0, 0.68611, 0, 0, 0.89444],
923: [0, 0.68611, 0, 0, 0.80555],
926: [0, 0.68611, 0, 0, 0.76666],
928: [0, 0.68611, 0, 0, 0.9],
931: [0, 0.68611, 0, 0, 0.83055],
933: [0, 0.68611, 0, 0, 0.89444],
934: [0, 0.68611, 0, 0, 0.83055],
936: [0, 0.68611, 0, 0, 0.89444],
937: [0, 0.68611, 0, 0, 0.83055],
8211: [0, 0.44444, 0.03194, 0, 0.575],
8212: [0, 0.44444, 0.03194, 0, 1.14999],
8216: [0, 0.69444, 0, 0, 0.31944],
8217: [0, 0.69444, 0, 0, 0.31944],
8220: [0, 0.69444, 0, 0, 0.60278],
8221: [0, 0.69444, 0, 0, 0.60278],
8224: [0.19444, 0.69444, 0, 0, 0.51111],
8225: [0.19444, 0.69444, 0, 0, 0.51111],
8242: [0, 0.55556, 0, 0, 0.34444],
8407: [0, 0.72444, 0.15486, 0, 0.575],
8463: [0, 0.69444, 0, 0, 0.66759],
8465: [0, 0.69444, 0, 0, 0.83055],
8467: [0, 0.69444, 0, 0, 0.47361],
8472: [0.19444, 0.44444, 0, 0, 0.74027],
8476: [0, 0.69444, 0, 0, 0.83055],
8501: [0, 0.69444, 0, 0, 0.70277],
8592: [-0.10889, 0.39111, 0, 0, 1.14999],
8593: [0.19444, 0.69444, 0, 0, 0.575],
8594: [-0.10889, 0.39111, 0, 0, 1.14999],
8595: [0.19444, 0.69444, 0, 0, 0.575],
8596: [-0.10889, 0.39111, 0, 0, 1.14999],
8597: [0.25, 0.75, 0, 0, 0.575],
8598: [0.19444, 0.69444, 0, 0, 1.14999],
8599: [0.19444, 0.69444, 0, 0, 1.14999],
8600: [0.19444, 0.69444, 0, 0, 1.14999],
8601: [0.19444, 0.69444, 0, 0, 1.14999],
8636: [-0.10889, 0.39111, 0, 0, 1.14999],
8637: [-0.10889, 0.39111, 0, 0, 1.14999],
8640: [-0.10889, 0.39111, 0, 0, 1.14999],
8641: [-0.10889, 0.39111, 0, 0, 1.14999],
8656: [-0.10889, 0.39111, 0, 0, 1.14999],
8657: [0.19444, 0.69444, 0, 0, 0.70277],
8658: [-0.10889, 0.39111, 0, 0, 1.14999],
8659: [0.19444, 0.69444, 0, 0, 0.70277],
8660: [-0.10889, 0.39111, 0, 0, 1.14999],
8661: [0.25, 0.75, 0, 0, 0.70277],
8704: [0, 0.69444, 0, 0, 0.63889],
8706: [0, 0.69444, 0.06389, 0, 0.62847],
8707: [0, 0.69444, 0, 0, 0.63889],
8709: [0.05556, 0.75, 0, 0, 0.575],
8711: [0, 0.68611, 0, 0, 0.95833],
8712: [0.08556, 0.58556, 0, 0, 0.76666],
8715: [0.08556, 0.58556, 0, 0, 0.76666],
8722: [0.13333, 0.63333, 0, 0, 0.89444],
8723: [0.13333, 0.63333, 0, 0, 0.89444],
8725: [0.25, 0.75, 0, 0, 0.575],
8726: [0.25, 0.75, 0, 0, 0.575],
8727: [-0.02778, 0.47222, 0, 0, 0.575],
8728: [-0.02639, 0.47361, 0, 0, 0.575],
8729: [-0.02639, 0.47361, 0, 0, 0.575],
8730: [0.18, 0.82, 0, 0, 0.95833],
8733: [0, 0.44444, 0, 0, 0.89444],
8734: [0, 0.44444, 0, 0, 1.14999],
8736: [0, 0.69224, 0, 0, 0.72222],
8739: [0.25, 0.75, 0, 0, 0.31944],
8741: [0.25, 0.75, 0, 0, 0.575],
8743: [0, 0.55556, 0, 0, 0.76666],
8744: [0, 0.55556, 0, 0, 0.76666],
8745: [0, 0.55556, 0, 0, 0.76666],
8746: [0, 0.55556, 0, 0, 0.76666],
8747: [0.19444, 0.69444, 0.12778, 0, 0.56875],
8764: [-0.10889, 0.39111, 0, 0, 0.89444],
8768: [0.19444, 0.69444, 0, 0, 0.31944],
8771: [0.00222, 0.50222, 0, 0, 0.89444],
8773: [0.027, 0.638, 0, 0, 0.894],
8776: [0.02444, 0.52444, 0, 0, 0.89444],
8781: [0.00222, 0.50222, 0, 0, 0.89444],
8801: [0.00222, 0.50222, 0, 0, 0.89444],
8804: [0.19667, 0.69667, 0, 0, 0.89444],
8805: [0.19667, 0.69667, 0, 0, 0.89444],
8810: [0.08556, 0.58556, 0, 0, 1.14999],
8811: [0.08556, 0.58556, 0, 0, 1.14999],
8826: [0.08556, 0.58556, 0, 0, 0.89444],
8827: [0.08556, 0.58556, 0, 0, 0.89444],
8834: [0.08556, 0.58556, 0, 0, 0.89444],
8835: [0.08556, 0.58556, 0, 0, 0.89444],
8838: [0.19667, 0.69667, 0, 0, 0.89444],
8839: [0.19667, 0.69667, 0, 0, 0.89444],
8846: [0, 0.55556, 0, 0, 0.76666],
8849: [0.19667, 0.69667, 0, 0, 0.89444],
8850: [0.19667, 0.69667, 0, 0, 0.89444],
8851: [0, 0.55556, 0, 0, 0.76666],
8852: [0, 0.55556, 0, 0, 0.76666],
8853: [0.13333, 0.63333, 0, 0, 0.89444],
8854: [0.13333, 0.63333, 0, 0, 0.89444],
8855: [0.13333, 0.63333, 0, 0, 0.89444],
8856: [0.13333, 0.63333, 0, 0, 0.89444],
8857: [0.13333, 0.63333, 0, 0, 0.89444],
8866: [0, 0.69444, 0, 0, 0.70277],
8867: [0, 0.69444, 0, 0, 0.70277],
8868: [0, 0.69444, 0, 0, 0.89444],
8869: [0, 0.69444, 0, 0, 0.89444],
8900: [-0.02639, 0.47361, 0, 0, 0.575],
8901: [-0.02639, 0.47361, 0, 0, 0.31944],
8902: [-0.02778, 0.47222, 0, 0, 0.575],
8968: [0.25, 0.75, 0, 0, 0.51111],
8969: [0.25, 0.75, 0, 0, 0.51111],
8970: [0.25, 0.75, 0, 0, 0.51111],
8971: [0.25, 0.75, 0, 0, 0.51111],
8994: [-0.13889, 0.36111, 0, 0, 1.14999],
8995: [-0.13889, 0.36111, 0, 0, 1.14999],
9651: [0.19444, 0.69444, 0, 0, 1.02222],
9657: [-0.02778, 0.47222, 0, 0, 0.575],
9661: [0.19444, 0.69444, 0, 0, 1.02222],
9667: [-0.02778, 0.47222, 0, 0, 0.575],
9711: [0.19444, 0.69444, 0, 0, 1.14999],
9824: [0.12963, 0.69444, 0, 0, 0.89444],
9825: [0.12963, 0.69444, 0, 0, 0.89444],
9826: [0.12963, 0.69444, 0, 0, 0.89444],
9827: [0.12963, 0.69444, 0, 0, 0.89444],
9837: [0, 0.75, 0, 0, 0.44722],
9838: [0.19444, 0.69444, 0, 0, 0.44722],
9839: [0.19444, 0.69444, 0, 0, 0.44722],
10216: [0.25, 0.75, 0, 0, 0.44722],
10217: [0.25, 0.75, 0, 0, 0.44722],
10815: [0, 0.68611, 0, 0, 0.9],
10927: [0.19667, 0.69667, 0, 0, 0.89444],
10928: [0.19667, 0.69667, 0, 0, 0.89444],
57376: [0.19444, 0.69444, 0, 0, 0],
},
'Main-BoldItalic': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0.11417, 0, 0.38611],
34: [0, 0.69444, 0.07939, 0, 0.62055],
35: [0.19444, 0.69444, 0.06833, 0, 0.94444],
37: [0.05556, 0.75, 0.12861, 0, 0.94444],
38: [0, 0.69444, 0.08528, 0, 0.88555],
39: [0, 0.69444, 0.12945, 0, 0.35555],
40: [0.25, 0.75, 0.15806, 0, 0.47333],
41: [0.25, 0.75, 0.03306, 0, 0.47333],
42: [0, 0.75, 0.14333, 0, 0.59111],
43: [0.10333, 0.60333, 0.03306, 0, 0.88555],
44: [0.19444, 0.14722, 0, 0, 0.35555],
45: [0, 0.44444, 0.02611, 0, 0.41444],
46: [0, 0.14722, 0, 0, 0.35555],
47: [0.25, 0.75, 0.15806, 0, 0.59111],
48: [0, 0.64444, 0.13167, 0, 0.59111],
49: [0, 0.64444, 0.13167, 0, 0.59111],
50: [0, 0.64444, 0.13167, 0, 0.59111],
51: [0, 0.64444, 0.13167, 0, 0.59111],
52: [0.19444, 0.64444, 0.13167, 0, 0.59111],
53: [0, 0.64444, 0.13167, 0, 0.59111],
54: [0, 0.64444, 0.13167, 0, 0.59111],
55: [0.19444, 0.64444, 0.13167, 0, 0.59111],
56: [0, 0.64444, 0.13167, 0, 0.59111],
57: [0, 0.64444, 0.13167, 0, 0.59111],
58: [0, 0.44444, 0.06695, 0, 0.35555],
59: [0.19444, 0.44444, 0.06695, 0, 0.35555],
61: [-0.10889, 0.39111, 0.06833, 0, 0.88555],
63: [0, 0.69444, 0.11472, 0, 0.59111],
64: [0, 0.69444, 0.09208, 0, 0.88555],
65: [0, 0.68611, 0, 0, 0.86555],
66: [0, 0.68611, 0.0992, 0, 0.81666],
67: [0, 0.68611, 0.14208, 0, 0.82666],
68: [0, 0.68611, 0.09062, 0, 0.87555],
69: [0, 0.68611, 0.11431, 0, 0.75666],
70: [0, 0.68611, 0.12903, 0, 0.72722],
71: [0, 0.68611, 0.07347, 0, 0.89527],
72: [0, 0.68611, 0.17208, 0, 0.8961],
73: [0, 0.68611, 0.15681, 0, 0.47166],
74: [0, 0.68611, 0.145, 0, 0.61055],
75: [0, 0.68611, 0.14208, 0, 0.89499],
76: [0, 0.68611, 0, 0, 0.69777],
77: [0, 0.68611, 0.17208, 0, 1.07277],
78: [0, 0.68611, 0.17208, 0, 0.8961],
79: [0, 0.68611, 0.09062, 0, 0.85499],
80: [0, 0.68611, 0.0992, 0, 0.78721],
81: [0.19444, 0.68611, 0.09062, 0, 0.85499],
82: [0, 0.68611, 0.02559, 0, 0.85944],
83: [0, 0.68611, 0.11264, 0, 0.64999],
84: [0, 0.68611, 0.12903, 0, 0.7961],
85: [0, 0.68611, 0.17208, 0, 0.88083],
86: [0, 0.68611, 0.18625, 0, 0.86555],
87: [0, 0.68611, 0.18625, 0, 1.15999],
88: [0, 0.68611, 0.15681, 0, 0.86555],
89: [0, 0.68611, 0.19803, 0, 0.86555],
90: [0, 0.68611, 0.14208, 0, 0.70888],
91: [0.25, 0.75, 0.1875, 0, 0.35611],
93: [0.25, 0.75, 0.09972, 0, 0.35611],
94: [0, 0.69444, 0.06709, 0, 0.59111],
95: [0.31, 0.13444, 0.09811, 0, 0.59111],
97: [0, 0.44444, 0.09426, 0, 0.59111],
98: [0, 0.69444, 0.07861, 0, 0.53222],
99: [0, 0.44444, 0.05222, 0, 0.53222],
100: [0, 0.69444, 0.10861, 0, 0.59111],
101: [0, 0.44444, 0.085, 0, 0.53222],
102: [0.19444, 0.69444, 0.21778, 0, 0.4],
103: [0.19444, 0.44444, 0.105, 0, 0.53222],
104: [0, 0.69444, 0.09426, 0, 0.59111],
105: [0, 0.69326, 0.11387, 0, 0.35555],
106: [0.19444, 0.69326, 0.1672, 0, 0.35555],
107: [0, 0.69444, 0.11111, 0, 0.53222],
108: [0, 0.69444, 0.10861, 0, 0.29666],
109: [0, 0.44444, 0.09426, 0, 0.94444],
110: [0, 0.44444, 0.09426, 0, 0.64999],
111: [0, 0.44444, 0.07861, 0, 0.59111],
112: [0.19444, 0.44444, 0.07861, 0, 0.59111],
113: [0.19444, 0.44444, 0.105, 0, 0.53222],
114: [0, 0.44444, 0.11111, 0, 0.50167],
115: [0, 0.44444, 0.08167, 0, 0.48694],
116: [0, 0.63492, 0.09639, 0, 0.385],
117: [0, 0.44444, 0.09426, 0, 0.62055],
118: [0, 0.44444, 0.11111, 0, 0.53222],
119: [0, 0.44444, 0.11111, 0, 0.76777],
120: [0, 0.44444, 0.12583, 0, 0.56055],
121: [0.19444, 0.44444, 0.105, 0, 0.56166],
122: [0, 0.44444, 0.13889, 0, 0.49055],
126: [0.35, 0.34444, 0.11472, 0, 0.59111],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.69444, 0.11473, 0, 0.59111],
176: [0, 0.69444, 0, 0, 0.94888],
184: [0.17014, 0, 0, 0, 0.53222],
198: [0, 0.68611, 0.11431, 0, 1.02277],
216: [0.04861, 0.73472, 0.09062, 0, 0.88555],
223: [0.19444, 0.69444, 0.09736, 0, 0.665],
230: [0, 0.44444, 0.085, 0, 0.82666],
248: [0.09722, 0.54167, 0.09458, 0, 0.59111],
305: [0, 0.44444, 0.09426, 0, 0.35555],
338: [0, 0.68611, 0.11431, 0, 1.14054],
339: [0, 0.44444, 0.085, 0, 0.82666],
567: [0.19444, 0.44444, 0.04611, 0, 0.385],
710: [0, 0.69444, 0.06709, 0, 0.59111],
711: [0, 0.63194, 0.08271, 0, 0.59111],
713: [0, 0.59444, 0.10444, 0, 0.59111],
714: [0, 0.69444, 0.08528, 0, 0.59111],
715: [0, 0.69444, 0, 0, 0.59111],
728: [0, 0.69444, 0.10333, 0, 0.59111],
729: [0, 0.69444, 0.12945, 0, 0.35555],
730: [0, 0.69444, 0, 0, 0.94888],
732: [0, 0.69444, 0.11472, 0, 0.59111],
733: [0, 0.69444, 0.11472, 0, 0.59111],
915: [0, 0.68611, 0.12903, 0, 0.69777],
916: [0, 0.68611, 0, 0, 0.94444],
920: [0, 0.68611, 0.09062, 0, 0.88555],
923: [0, 0.68611, 0, 0, 0.80666],
926: [0, 0.68611, 0.15092, 0, 0.76777],
928: [0, 0.68611, 0.17208, 0, 0.8961],
931: [0, 0.68611, 0.11431, 0, 0.82666],
933: [0, 0.68611, 0.10778, 0, 0.88555],
934: [0, 0.68611, 0.05632, 0, 0.82666],
936: [0, 0.68611, 0.10778, 0, 0.88555],
937: [0, 0.68611, 0.0992, 0, 0.82666],
8211: [0, 0.44444, 0.09811, 0, 0.59111],
8212: [0, 0.44444, 0.09811, 0, 1.18221],
8216: [0, 0.69444, 0.12945, 0, 0.35555],
8217: [0, 0.69444, 0.12945, 0, 0.35555],
8220: [0, 0.69444, 0.16772, 0, 0.62055],
8221: [0, 0.69444, 0.07939, 0, 0.62055],
},
'Main-Italic': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0.12417, 0, 0.30667],
34: [0, 0.69444, 0.06961, 0, 0.51444],
35: [0.19444, 0.69444, 0.06616, 0, 0.81777],
37: [0.05556, 0.75, 0.13639, 0, 0.81777],
38: [0, 0.69444, 0.09694, 0, 0.76666],
39: [0, 0.69444, 0.12417, 0, 0.30667],
40: [0.25, 0.75, 0.16194, 0, 0.40889],
41: [0.25, 0.75, 0.03694, 0, 0.40889],
42: [0, 0.75, 0.14917, 0, 0.51111],
43: [0.05667, 0.56167, 0.03694, 0, 0.76666],
44: [0.19444, 0.10556, 0, 0, 0.30667],
45: [0, 0.43056, 0.02826, 0, 0.35778],
46: [0, 0.10556, 0, 0, 0.30667],
47: [0.25, 0.75, 0.16194, 0, 0.51111],
48: [0, 0.64444, 0.13556, 0, 0.51111],
49: [0, 0.64444, 0.13556, 0, 0.51111],
50: [0, 0.64444, 0.13556, 0, 0.51111],
51: [0, 0.64444, 0.13556, 0, 0.51111],
52: [0.19444, 0.64444, 0.13556, 0, 0.51111],
53: [0, 0.64444, 0.13556, 0, 0.51111],
54: [0, 0.64444, 0.13556, 0, 0.51111],
55: [0.19444, 0.64444, 0.13556, 0, 0.51111],
56: [0, 0.64444, 0.13556, 0, 0.51111],
57: [0, 0.64444, 0.13556, 0, 0.51111],
58: [0, 0.43056, 0.0582, 0, 0.30667],
59: [0.19444, 0.43056, 0.0582, 0, 0.30667],
61: [-0.13313, 0.36687, 0.06616, 0, 0.76666],
63: [0, 0.69444, 0.1225, 0, 0.51111],
64: [0, 0.69444, 0.09597, 0, 0.76666],
65: [0, 0.68333, 0, 0, 0.74333],
66: [0, 0.68333, 0.10257, 0, 0.70389],
67: [0, 0.68333, 0.14528, 0, 0.71555],
68: [0, 0.68333, 0.09403, 0, 0.755],
69: [0, 0.68333, 0.12028, 0, 0.67833],
70: [0, 0.68333, 0.13305, 0, 0.65277],
71: [0, 0.68333, 0.08722, 0, 0.77361],
72: [0, 0.68333, 0.16389, 0, 0.74333],
73: [0, 0.68333, 0.15806, 0, 0.38555],
74: [0, 0.68333, 0.14028, 0, 0.525],
75: [0, 0.68333, 0.14528, 0, 0.76888],
76: [0, 0.68333, 0, 0, 0.62722],
77: [0, 0.68333, 0.16389, 0, 0.89666],
78: [0, 0.68333, 0.16389, 0, 0.74333],
79: [0, 0.68333, 0.09403, 0, 0.76666],
80: [0, 0.68333, 0.10257, 0, 0.67833],
81: [0.19444, 0.68333, 0.09403, 0, 0.76666],
82: [0, 0.68333, 0.03868, 0, 0.72944],
83: [0, 0.68333, 0.11972, 0, 0.56222],
84: [0, 0.68333, 0.13305, 0, 0.71555],
85: [0, 0.68333, 0.16389, 0, 0.74333],
86: [0, 0.68333, 0.18361, 0, 0.74333],
87: [0, 0.68333, 0.18361, 0, 0.99888],
88: [0, 0.68333, 0.15806, 0, 0.74333],
89: [0, 0.68333, 0.19383, 0, 0.74333],
90: [0, 0.68333, 0.14528, 0, 0.61333],
91: [0.25, 0.75, 0.1875, 0, 0.30667],
93: [0.25, 0.75, 0.10528, 0, 0.30667],
94: [0, 0.69444, 0.06646, 0, 0.51111],
95: [0.31, 0.12056, 0.09208, 0, 0.51111],
97: [0, 0.43056, 0.07671, 0, 0.51111],
98: [0, 0.69444, 0.06312, 0, 0.46],
99: [0, 0.43056, 0.05653, 0, 0.46],
100: [0, 0.69444, 0.10333, 0, 0.51111],
101: [0, 0.43056, 0.07514, 0, 0.46],
102: [0.19444, 0.69444, 0.21194, 0, 0.30667],
103: [0.19444, 0.43056, 0.08847, 0, 0.46],
104: [0, 0.69444, 0.07671, 0, 0.51111],
105: [0, 0.65536, 0.1019, 0, 0.30667],
106: [0.19444, 0.65536, 0.14467, 0, 0.30667],
107: [0, 0.69444, 0.10764, 0, 0.46],
108: [0, 0.69444, 0.10333, 0, 0.25555],
109: [0, 0.43056, 0.07671, 0, 0.81777],
110: [0, 0.43056, 0.07671, 0, 0.56222],
111: [0, 0.43056, 0.06312, 0, 0.51111],
112: [0.19444, 0.43056, 0.06312, 0, 0.51111],
113: [0.19444, 0.43056, 0.08847, 0, 0.46],
114: [0, 0.43056, 0.10764, 0, 0.42166],
115: [0, 0.43056, 0.08208, 0, 0.40889],
116: [0, 0.61508, 0.09486, 0, 0.33222],
117: [0, 0.43056, 0.07671, 0, 0.53666],
118: [0, 0.43056, 0.10764, 0, 0.46],
119: [0, 0.43056, 0.10764, 0, 0.66444],
120: [0, 0.43056, 0.12042, 0, 0.46389],
121: [0.19444, 0.43056, 0.08847, 0, 0.48555],
122: [0, 0.43056, 0.12292, 0, 0.40889],
126: [0.35, 0.31786, 0.11585, 0, 0.51111],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.66786, 0.10474, 0, 0.51111],
176: [0, 0.69444, 0, 0, 0.83129],
184: [0.17014, 0, 0, 0, 0.46],
198: [0, 0.68333, 0.12028, 0, 0.88277],
216: [0.04861, 0.73194, 0.09403, 0, 0.76666],
223: [0.19444, 0.69444, 0.10514, 0, 0.53666],
230: [0, 0.43056, 0.07514, 0, 0.71555],
248: [0.09722, 0.52778, 0.09194, 0, 0.51111],
338: [0, 0.68333, 0.12028, 0, 0.98499],
339: [0, 0.43056, 0.07514, 0, 0.71555],
710: [0, 0.69444, 0.06646, 0, 0.51111],
711: [0, 0.62847, 0.08295, 0, 0.51111],
713: [0, 0.56167, 0.10333, 0, 0.51111],
714: [0, 0.69444, 0.09694, 0, 0.51111],
715: [0, 0.69444, 0, 0, 0.51111],
728: [0, 0.69444, 0.10806, 0, 0.51111],
729: [0, 0.66786, 0.11752, 0, 0.30667],
730: [0, 0.69444, 0, 0, 0.83129],
732: [0, 0.66786, 0.11585, 0, 0.51111],
733: [0, 0.69444, 0.1225, 0, 0.51111],
915: [0, 0.68333, 0.13305, 0, 0.62722],
916: [0, 0.68333, 0, 0, 0.81777],
920: [0, 0.68333, 0.09403, 0, 0.76666],
923: [0, 0.68333, 0, 0, 0.69222],
926: [0, 0.68333, 0.15294, 0, 0.66444],
928: [0, 0.68333, 0.16389, 0, 0.74333],
931: [0, 0.68333, 0.12028, 0, 0.71555],
933: [0, 0.68333, 0.11111, 0, 0.76666],
934: [0, 0.68333, 0.05986, 0, 0.71555],
936: [0, 0.68333, 0.11111, 0, 0.76666],
937: [0, 0.68333, 0.10257, 0, 0.71555],
8211: [0, 0.43056, 0.09208, 0, 0.51111],
8212: [0, 0.43056, 0.09208, 0, 1.02222],
8216: [0, 0.69444, 0.12417, 0, 0.30667],
8217: [0, 0.69444, 0.12417, 0, 0.30667],
8220: [0, 0.69444, 0.1685, 0, 0.51444],
8221: [0, 0.69444, 0.06961, 0, 0.51444],
8463: [0, 0.68889, 0, 0, 0.54028],
},
'Main-Regular': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.27778],
34: [0, 0.69444, 0, 0, 0.5],
35: [0.19444, 0.69444, 0, 0, 0.83334],
36: [0.05556, 0.75, 0, 0, 0.5],
37: [0.05556, 0.75, 0, 0, 0.83334],
38: [0, 0.69444, 0, 0, 0.77778],
39: [0, 0.69444, 0, 0, 0.27778],
40: [0.25, 0.75, 0, 0, 0.38889],
41: [0.25, 0.75, 0, 0, 0.38889],
42: [0, 0.75, 0, 0, 0.5],
43: [0.08333, 0.58333, 0, 0, 0.77778],
44: [0.19444, 0.10556, 0, 0, 0.27778],
45: [0, 0.43056, 0, 0, 0.33333],
46: [0, 0.10556, 0, 0, 0.27778],
47: [0.25, 0.75, 0, 0, 0.5],
48: [0, 0.64444, 0, 0, 0.5],
49: [0, 0.64444, 0, 0, 0.5],
50: [0, 0.64444, 0, 0, 0.5],
51: [0, 0.64444, 0, 0, 0.5],
52: [0, 0.64444, 0, 0, 0.5],
53: [0, 0.64444, 0, 0, 0.5],
54: [0, 0.64444, 0, 0, 0.5],
55: [0, 0.64444, 0, 0, 0.5],
56: [0, 0.64444, 0, 0, 0.5],
57: [0, 0.64444, 0, 0, 0.5],
58: [0, 0.43056, 0, 0, 0.27778],
59: [0.19444, 0.43056, 0, 0, 0.27778],
60: [0.0391, 0.5391, 0, 0, 0.77778],
61: [-0.13313, 0.36687, 0, 0, 0.77778],
62: [0.0391, 0.5391, 0, 0, 0.77778],
63: [0, 0.69444, 0, 0, 0.47222],
64: [0, 0.69444, 0, 0, 0.77778],
65: [0, 0.68333, 0, 0, 0.75],
66: [0, 0.68333, 0, 0, 0.70834],
67: [0, 0.68333, 0, 0, 0.72222],
68: [0, 0.68333, 0, 0, 0.76389],
69: [0, 0.68333, 0, 0, 0.68056],
70: [0, 0.68333, 0, 0, 0.65278],
71: [0, 0.68333, 0, 0, 0.78472],
72: [0, 0.68333, 0, 0, 0.75],
73: [0, 0.68333, 0, 0, 0.36111],
74: [0, 0.68333, 0, 0, 0.51389],
75: [0, 0.68333, 0, 0, 0.77778],
76: [0, 0.68333, 0, 0, 0.625],
77: [0, 0.68333, 0, 0, 0.91667],
78: [0, 0.68333, 0, 0, 0.75],
79: [0, 0.68333, 0, 0, 0.77778],
80: [0, 0.68333, 0, 0, 0.68056],
81: [0.19444, 0.68333, 0, 0, 0.77778],
82: [0, 0.68333, 0, 0, 0.73611],
83: [0, 0.68333, 0, 0, 0.55556],
84: [0, 0.68333, 0, 0, 0.72222],
85: [0, 0.68333, 0, 0, 0.75],
86: [0, 0.68333, 0.01389, 0, 0.75],
87: [0, 0.68333, 0.01389, 0, 1.02778],
88: [0, 0.68333, 0, 0, 0.75],
89: [0, 0.68333, 0.025, 0, 0.75],
90: [0, 0.68333, 0, 0, 0.61111],
91: [0.25, 0.75, 0, 0, 0.27778],
92: [0.25, 0.75, 0, 0, 0.5],
93: [0.25, 0.75, 0, 0, 0.27778],
94: [0, 0.69444, 0, 0, 0.5],
95: [0.31, 0.12056, 0.02778, 0, 0.5],
97: [0, 0.43056, 0, 0, 0.5],
98: [0, 0.69444, 0, 0, 0.55556],
99: [0, 0.43056, 0, 0, 0.44445],
100: [0, 0.69444, 0, 0, 0.55556],
101: [0, 0.43056, 0, 0, 0.44445],
102: [0, 0.69444, 0.07778, 0, 0.30556],
103: [0.19444, 0.43056, 0.01389, 0, 0.5],
104: [0, 0.69444, 0, 0, 0.55556],
105: [0, 0.66786, 0, 0, 0.27778],
106: [0.19444, 0.66786, 0, 0, 0.30556],
107: [0, 0.69444, 0, 0, 0.52778],
108: [0, 0.69444, 0, 0, 0.27778],
109: [0, 0.43056, 0, 0, 0.83334],
110: [0, 0.43056, 0, 0, 0.55556],
111: [0, 0.43056, 0, 0, 0.5],
112: [0.19444, 0.43056, 0, 0, 0.55556],
113: [0.19444, 0.43056, 0, 0, 0.52778],
114: [0, 0.43056, 0, 0, 0.39167],
115: [0, 0.43056, 0, 0, 0.39445],
116: [0, 0.61508, 0, 0, 0.38889],
117: [0, 0.43056, 0, 0, 0.55556],
118: [0, 0.43056, 0.01389, 0, 0.52778],
119: [0, 0.43056, 0.01389, 0, 0.72222],
120: [0, 0.43056, 0, 0, 0.52778],
121: [0.19444, 0.43056, 0.01389, 0, 0.52778],
122: [0, 0.43056, 0, 0, 0.44445],
123: [0.25, 0.75, 0, 0, 0.5],
124: [0.25, 0.75, 0, 0, 0.27778],
125: [0.25, 0.75, 0, 0, 0.5],
126: [0.35, 0.31786, 0, 0, 0.5],
160: [0, 0, 0, 0, 0.25],
163: [0, 0.69444, 0, 0, 0.76909],
167: [0.19444, 0.69444, 0, 0, 0.44445],
168: [0, 0.66786, 0, 0, 0.5],
172: [0, 0.43056, 0, 0, 0.66667],
176: [0, 0.69444, 0, 0, 0.75],
177: [0.08333, 0.58333, 0, 0, 0.77778],
182: [0.19444, 0.69444, 0, 0, 0.61111],
184: [0.17014, 0, 0, 0, 0.44445],
198: [0, 0.68333, 0, 0, 0.90278],
215: [0.08333, 0.58333, 0, 0, 0.77778],
216: [0.04861, 0.73194, 0, 0, 0.77778],
223: [0, 0.69444, 0, 0, 0.5],
230: [0, 0.43056, 0, 0, 0.72222],
247: [0.08333, 0.58333, 0, 0, 0.77778],
248: [0.09722, 0.52778, 0, 0, 0.5],
305: [0, 0.43056, 0, 0, 0.27778],
338: [0, 0.68333, 0, 0, 1.01389],
339: [0, 0.43056, 0, 0, 0.77778],
567: [0.19444, 0.43056, 0, 0, 0.30556],
710: [0, 0.69444, 0, 0, 0.5],
711: [0, 0.62847, 0, 0, 0.5],
713: [0, 0.56778, 0, 0, 0.5],
714: [0, 0.69444, 0, 0, 0.5],
715: [0, 0.69444, 0, 0, 0.5],
728: [0, 0.69444, 0, 0, 0.5],
729: [0, 0.66786, 0, 0, 0.27778],
730: [0, 0.69444, 0, 0, 0.75],
732: [0, 0.66786, 0, 0, 0.5],
733: [0, 0.69444, 0, 0, 0.5],
915: [0, 0.68333, 0, 0, 0.625],
916: [0, 0.68333, 0, 0, 0.83334],
920: [0, 0.68333, 0, 0, 0.77778],
923: [0, 0.68333, 0, 0, 0.69445],
926: [0, 0.68333, 0, 0, 0.66667],
928: [0, 0.68333, 0, 0, 0.75],
931: [0, 0.68333, 0, 0, 0.72222],
933: [0, 0.68333, 0, 0, 0.77778],
934: [0, 0.68333, 0, 0, 0.72222],
936: [0, 0.68333, 0, 0, 0.77778],
937: [0, 0.68333, 0, 0, 0.72222],
8211: [0, 0.43056, 0.02778, 0, 0.5],
8212: [0, 0.43056, 0.02778, 0, 1],
8216: [0, 0.69444, 0, 0, 0.27778],
8217: [0, 0.69444, 0, 0, 0.27778],
8220: [0, 0.69444, 0, 0, 0.5],
8221: [0, 0.69444, 0, 0, 0.5],
8224: [0.19444, 0.69444, 0, 0, 0.44445],
8225: [0.19444, 0.69444, 0, 0, 0.44445],
8230: [0, 0.123, 0, 0, 1.172],
8242: [0, 0.55556, 0, 0, 0.275],
8407: [0, 0.71444, 0.15382, 0, 0.5],
8463: [0, 0.68889, 0, 0, 0.54028],
8465: [0, 0.69444, 0, 0, 0.72222],
8467: [0, 0.69444, 0, 0.11111, 0.41667],
8472: [0.19444, 0.43056, 0, 0.11111, 0.63646],
8476: [0, 0.69444, 0, 0, 0.72222],
8501: [0, 0.69444, 0, 0, 0.61111],
8592: [-0.13313, 0.36687, 0, 0, 1],
8593: [0.19444, 0.69444, 0, 0, 0.5],
8594: [-0.13313, 0.36687, 0, 0, 1],
8595: [0.19444, 0.69444, 0, 0, 0.5],
8596: [-0.13313, 0.36687, 0, 0, 1],
8597: [0.25, 0.75, 0, 0, 0.5],
8598: [0.19444, 0.69444, 0, 0, 1],
8599: [0.19444, 0.69444, 0, 0, 1],
8600: [0.19444, 0.69444, 0, 0, 1],
8601: [0.19444, 0.69444, 0, 0, 1],
8614: [0.011, 0.511, 0, 0, 1],
8617: [0.011, 0.511, 0, 0, 1.126],
8618: [0.011, 0.511, 0, 0, 1.126],
8636: [-0.13313, 0.36687, 0, 0, 1],
8637: [-0.13313, 0.36687, 0, 0, 1],
8640: [-0.13313, 0.36687, 0, 0, 1],
8641: [-0.13313, 0.36687, 0, 0, 1],
8652: [0.011, 0.671, 0, 0, 1],
8656: [-0.13313, 0.36687, 0, 0, 1],
8657: [0.19444, 0.69444, 0, 0, 0.61111],
8658: [-0.13313, 0.36687, 0, 0, 1],
8659: [0.19444, 0.69444, 0, 0, 0.61111],
8660: [-0.13313, 0.36687, 0, 0, 1],
8661: [0.25, 0.75, 0, 0, 0.61111],
8704: [0, 0.69444, 0, 0, 0.55556],
8706: [0, 0.69444, 0.05556, 0.08334, 0.5309],
8707: [0, 0.69444, 0, 0, 0.55556],
8709: [0.05556, 0.75, 0, 0, 0.5],
8711: [0, 0.68333, 0, 0, 0.83334],
8712: [0.0391, 0.5391, 0, 0, 0.66667],
8715: [0.0391, 0.5391, 0, 0, 0.66667],
8722: [0.08333, 0.58333, 0, 0, 0.77778],
8723: [0.08333, 0.58333, 0, 0, 0.77778],
8725: [0.25, 0.75, 0, 0, 0.5],
8726: [0.25, 0.75, 0, 0, 0.5],
8727: [-0.03472, 0.46528, 0, 0, 0.5],
8728: [-0.05555, 0.44445, 0, 0, 0.5],
8729: [-0.05555, 0.44445, 0, 0, 0.5],
8730: [0.2, 0.8, 0, 0, 0.83334],
8733: [0, 0.43056, 0, 0, 0.77778],
8734: [0, 0.43056, 0, 0, 1],
8736: [0, 0.69224, 0, 0, 0.72222],
8739: [0.25, 0.75, 0, 0, 0.27778],
8741: [0.25, 0.75, 0, 0, 0.5],
8743: [0, 0.55556, 0, 0, 0.66667],
8744: [0, 0.55556, 0, 0, 0.66667],
8745: [0, 0.55556, 0, 0, 0.66667],
8746: [0, 0.55556, 0, 0, 0.66667],
8747: [0.19444, 0.69444, 0.11111, 0, 0.41667],
8764: [-0.13313, 0.36687, 0, 0, 0.77778],
8768: [0.19444, 0.69444, 0, 0, 0.27778],
8771: [-0.03625, 0.46375, 0, 0, 0.77778],
8773: [-0.022, 0.589, 0, 0, 0.778],
8776: [-0.01688, 0.48312, 0, 0, 0.77778],
8781: [-0.03625, 0.46375, 0, 0, 0.77778],
8784: [-0.133, 0.673, 0, 0, 0.778],
8801: [-0.03625, 0.46375, 0, 0, 0.77778],
8804: [0.13597, 0.63597, 0, 0, 0.77778],
8805: [0.13597, 0.63597, 0, 0, 0.77778],
8810: [0.0391, 0.5391, 0, 0, 1],
8811: [0.0391, 0.5391, 0, 0, 1],
8826: [0.0391, 0.5391, 0, 0, 0.77778],
8827: [0.0391, 0.5391, 0, 0, 0.77778],
8834: [0.0391, 0.5391, 0, 0, 0.77778],
8835: [0.0391, 0.5391, 0, 0, 0.77778],
8838: [0.13597, 0.63597, 0, 0, 0.77778],
8839: [0.13597, 0.63597, 0, 0, 0.77778],
8846: [0, 0.55556, 0, 0, 0.66667],
8849: [0.13597, 0.63597, 0, 0, 0.77778],
8850: [0.13597, 0.63597, 0, 0, 0.77778],
8851: [0, 0.55556, 0, 0, 0.66667],
8852: [0, 0.55556, 0, 0, 0.66667],
8853: [0.08333, 0.58333, 0, 0, 0.77778],
8854: [0.08333, 0.58333, 0, 0, 0.77778],
8855: [0.08333, 0.58333, 0, 0, 0.77778],
8856: [0.08333, 0.58333, 0, 0, 0.77778],
8857: [0.08333, 0.58333, 0, 0, 0.77778],
8866: [0, 0.69444, 0, 0, 0.61111],
8867: [0, 0.69444, 0, 0, 0.61111],
8868: [0, 0.69444, 0, 0, 0.77778],
8869: [0, 0.69444, 0, 0, 0.77778],
8872: [0.249, 0.75, 0, 0, 0.867],
8900: [-0.05555, 0.44445, 0, 0, 0.5],
8901: [-0.05555, 0.44445, 0, 0, 0.27778],
8902: [-0.03472, 0.46528, 0, 0, 0.5],
8904: [0.005, 0.505, 0, 0, 0.9],
8942: [0.03, 0.903, 0, 0, 0.278],
8943: [-0.19, 0.313, 0, 0, 1.172],
8945: [-0.1, 0.823, 0, 0, 1.282],
8968: [0.25, 0.75, 0, 0, 0.44445],
8969: [0.25, 0.75, 0, 0, 0.44445],
8970: [0.25, 0.75, 0, 0, 0.44445],
8971: [0.25, 0.75, 0, 0, 0.44445],
8994: [-0.14236, 0.35764, 0, 0, 1],
8995: [-0.14236, 0.35764, 0, 0, 1],
9136: [0.244, 0.744, 0, 0, 0.412],
9137: [0.244, 0.745, 0, 0, 0.412],
9651: [0.19444, 0.69444, 0, 0, 0.88889],
9657: [-0.03472, 0.46528, 0, 0, 0.5],
9661: [0.19444, 0.69444, 0, 0, 0.88889],
9667: [-0.03472, 0.46528, 0, 0, 0.5],
9711: [0.19444, 0.69444, 0, 0, 1],
9824: [0.12963, 0.69444, 0, 0, 0.77778],
9825: [0.12963, 0.69444, 0, 0, 0.77778],
9826: [0.12963, 0.69444, 0, 0, 0.77778],
9827: [0.12963, 0.69444, 0, 0, 0.77778],
9837: [0, 0.75, 0, 0, 0.38889],
9838: [0.19444, 0.69444, 0, 0, 0.38889],
9839: [0.19444, 0.69444, 0, 0, 0.38889],
10216: [0.25, 0.75, 0, 0, 0.38889],
10217: [0.25, 0.75, 0, 0, 0.38889],
10222: [0.244, 0.744, 0, 0, 0.412],
10223: [0.244, 0.745, 0, 0, 0.412],
10229: [0.011, 0.511, 0, 0, 1.609],
10230: [0.011, 0.511, 0, 0, 1.638],
10231: [0.011, 0.511, 0, 0, 1.859],
10232: [0.024, 0.525, 0, 0, 1.609],
10233: [0.024, 0.525, 0, 0, 1.638],
10234: [0.024, 0.525, 0, 0, 1.858],
10236: [0.011, 0.511, 0, 0, 1.638],
10815: [0, 0.68333, 0, 0, 0.75],
10927: [0.13597, 0.63597, 0, 0, 0.77778],
10928: [0.13597, 0.63597, 0, 0, 0.77778],
57376: [0.19444, 0.69444, 0, 0, 0],
},
'Math-BoldItalic': {
32: [0, 0, 0, 0, 0.25],
48: [0, 0.44444, 0, 0, 0.575],
49: [0, 0.44444, 0, 0, 0.575],
50: [0, 0.44444, 0, 0, 0.575],
51: [0.19444, 0.44444, 0, 0, 0.575],
52: [0.19444, 0.44444, 0, 0, 0.575],
53: [0.19444, 0.44444, 0, 0, 0.575],
54: [0, 0.64444, 0, 0, 0.575],
55: [0.19444, 0.44444, 0, 0, 0.575],
56: [0, 0.64444, 0, 0, 0.575],
57: [0.19444, 0.44444, 0, 0, 0.575],
65: [0, 0.68611, 0, 0, 0.86944],
66: [0, 0.68611, 0.04835, 0, 0.8664],
67: [0, 0.68611, 0.06979, 0, 0.81694],
68: [0, 0.68611, 0.03194, 0, 0.93812],
69: [0, 0.68611, 0.05451, 0, 0.81007],
70: [0, 0.68611, 0.15972, 0, 0.68889],
71: [0, 0.68611, 0, 0, 0.88673],
72: [0, 0.68611, 0.08229, 0, 0.98229],
73: [0, 0.68611, 0.07778, 0, 0.51111],
74: [0, 0.68611, 0.10069, 0, 0.63125],
75: [0, 0.68611, 0.06979, 0, 0.97118],
76: [0, 0.68611, 0, 0, 0.75555],
77: [0, 0.68611, 0.11424, 0, 1.14201],
78: [0, 0.68611, 0.11424, 0, 0.95034],
79: [0, 0.68611, 0.03194, 0, 0.83666],
80: [0, 0.68611, 0.15972, 0, 0.72309],
81: [0.19444, 0.68611, 0, 0, 0.86861],
82: [0, 0.68611, 0.00421, 0, 0.87235],
83: [0, 0.68611, 0.05382, 0, 0.69271],
84: [0, 0.68611, 0.15972, 0, 0.63663],
85: [0, 0.68611, 0.11424, 0, 0.80027],
86: [0, 0.68611, 0.25555, 0, 0.67778],
87: [0, 0.68611, 0.15972, 0, 1.09305],
88: [0, 0.68611, 0.07778, 0, 0.94722],
89: [0, 0.68611, 0.25555, 0, 0.67458],
90: [0, 0.68611, 0.06979, 0, 0.77257],
97: [0, 0.44444, 0, 0, 0.63287],
98: [0, 0.69444, 0, 0, 0.52083],
99: [0, 0.44444, 0, 0, 0.51342],
100: [0, 0.69444, 0, 0, 0.60972],
101: [0, 0.44444, 0, 0, 0.55361],
102: [0.19444, 0.69444, 0.11042, 0, 0.56806],
103: [0.19444, 0.44444, 0.03704, 0, 0.5449],
104: [0, 0.69444, 0, 0, 0.66759],
105: [0, 0.69326, 0, 0, 0.4048],
106: [0.19444, 0.69326, 0.0622, 0, 0.47083],
107: [0, 0.69444, 0.01852, 0, 0.6037],
108: [0, 0.69444, 0.0088, 0, 0.34815],
109: [0, 0.44444, 0, 0, 1.0324],
110: [0, 0.44444, 0, 0, 0.71296],
111: [0, 0.44444, 0, 0, 0.58472],
112: [0.19444, 0.44444, 0, 0, 0.60092],
113: [0.19444, 0.44444, 0.03704, 0, 0.54213],
114: [0, 0.44444, 0.03194, 0, 0.5287],
115: [0, 0.44444, 0, 0, 0.53125],
116: [0, 0.63492, 0, 0, 0.41528],
117: [0, 0.44444, 0, 0, 0.68102],
118: [0, 0.44444, 0.03704, 0, 0.56666],
119: [0, 0.44444, 0.02778, 0, 0.83148],
120: [0, 0.44444, 0, 0, 0.65903],
121: [0.19444, 0.44444, 0.03704, 0, 0.59028],
122: [0, 0.44444, 0.04213, 0, 0.55509],
160: [0, 0, 0, 0, 0.25],
915: [0, 0.68611, 0.15972, 0, 0.65694],
916: [0, 0.68611, 0, 0, 0.95833],
920: [0, 0.68611, 0.03194, 0, 0.86722],
923: [0, 0.68611, 0, 0, 0.80555],
926: [0, 0.68611, 0.07458, 0, 0.84125],
928: [0, 0.68611, 0.08229, 0, 0.98229],
931: [0, 0.68611, 0.05451, 0, 0.88507],
933: [0, 0.68611, 0.15972, 0, 0.67083],
934: [0, 0.68611, 0, 0, 0.76666],
936: [0, 0.68611, 0.11653, 0, 0.71402],
937: [0, 0.68611, 0.04835, 0, 0.8789],
945: [0, 0.44444, 0, 0, 0.76064],
946: [0.19444, 0.69444, 0.03403, 0, 0.65972],
947: [0.19444, 0.44444, 0.06389, 0, 0.59003],
948: [0, 0.69444, 0.03819, 0, 0.52222],
949: [0, 0.44444, 0, 0, 0.52882],
950: [0.19444, 0.69444, 0.06215, 0, 0.50833],
951: [0.19444, 0.44444, 0.03704, 0, 0.6],
952: [0, 0.69444, 0.03194, 0, 0.5618],
953: [0, 0.44444, 0, 0, 0.41204],
954: [0, 0.44444, 0, 0, 0.66759],
955: [0, 0.69444, 0, 0, 0.67083],
956: [0.19444, 0.44444, 0, 0, 0.70787],
957: [0, 0.44444, 0.06898, 0, 0.57685],
958: [0.19444, 0.69444, 0.03021, 0, 0.50833],
959: [0, 0.44444, 0, 0, 0.58472],
960: [0, 0.44444, 0.03704, 0, 0.68241],
961: [0.19444, 0.44444, 0, 0, 0.6118],
962: [0.09722, 0.44444, 0.07917, 0, 0.42361],
963: [0, 0.44444, 0.03704, 0, 0.68588],
964: [0, 0.44444, 0.13472, 0, 0.52083],
965: [0, 0.44444, 0.03704, 0, 0.63055],
966: [0.19444, 0.44444, 0, 0, 0.74722],
967: [0.19444, 0.44444, 0, 0, 0.71805],
968: [0.19444, 0.69444, 0.03704, 0, 0.75833],
969: [0, 0.44444, 0.03704, 0, 0.71782],
977: [0, 0.69444, 0, 0, 0.69155],
981: [0.19444, 0.69444, 0, 0, 0.7125],
982: [0, 0.44444, 0.03194, 0, 0.975],
1009: [0.19444, 0.44444, 0, 0, 0.6118],
1013: [0, 0.44444, 0, 0, 0.48333],
57649: [0, 0.44444, 0, 0, 0.39352],
57911: [0.19444, 0.44444, 0, 0, 0.43889],
},
'Math-Italic': {
32: [0, 0, 0, 0, 0.25],
48: [0, 0.43056, 0, 0, 0.5],
49: [0, 0.43056, 0, 0, 0.5],
50: [0, 0.43056, 0, 0, 0.5],
51: [0.19444, 0.43056, 0, 0, 0.5],
52: [0.19444, 0.43056, 0, 0, 0.5],
53: [0.19444, 0.43056, 0, 0, 0.5],
54: [0, 0.64444, 0, 0, 0.5],
55: [0.19444, 0.43056, 0, 0, 0.5],
56: [0, 0.64444, 0, 0, 0.5],
57: [0.19444, 0.43056, 0, 0, 0.5],
65: [0, 0.68333, 0, 0.13889, 0.75],
66: [0, 0.68333, 0.05017, 0.08334, 0.75851],
67: [0, 0.68333, 0.07153, 0.08334, 0.71472],
68: [0, 0.68333, 0.02778, 0.05556, 0.82792],
69: [0, 0.68333, 0.05764, 0.08334, 0.7382],
70: [0, 0.68333, 0.13889, 0.08334, 0.64306],
71: [0, 0.68333, 0, 0.08334, 0.78625],
72: [0, 0.68333, 0.08125, 0.05556, 0.83125],
73: [0, 0.68333, 0.07847, 0.11111, 0.43958],
74: [0, 0.68333, 0.09618, 0.16667, 0.55451],
75: [0, 0.68333, 0.07153, 0.05556, 0.84931],
76: [0, 0.68333, 0, 0.02778, 0.68056],
77: [0, 0.68333, 0.10903, 0.08334, 0.97014],
78: [0, 0.68333, 0.10903, 0.08334, 0.80347],
79: [0, 0.68333, 0.02778, 0.08334, 0.76278],
80: [0, 0.68333, 0.13889, 0.08334, 0.64201],
81: [0.19444, 0.68333, 0, 0.08334, 0.79056],
82: [0, 0.68333, 0.00773, 0.08334, 0.75929],
83: [0, 0.68333, 0.05764, 0.08334, 0.6132],
84: [0, 0.68333, 0.13889, 0.08334, 0.58438],
85: [0, 0.68333, 0.10903, 0.02778, 0.68278],
86: [0, 0.68333, 0.22222, 0, 0.58333],
87: [0, 0.68333, 0.13889, 0, 0.94445],
88: [0, 0.68333, 0.07847, 0.08334, 0.82847],
89: [0, 0.68333, 0.22222, 0, 0.58056],
90: [0, 0.68333, 0.07153, 0.08334, 0.68264],
97: [0, 0.43056, 0, 0, 0.52859],
98: [0, 0.69444, 0, 0, 0.42917],
99: [0, 0.43056, 0, 0.05556, 0.43276],
100: [0, 0.69444, 0, 0.16667, 0.52049],
101: [0, 0.43056, 0, 0.05556, 0.46563],
102: [0.19444, 0.69444, 0.10764, 0.16667, 0.48959],
103: [0.19444, 0.43056, 0.03588, 0.02778, 0.47697],
104: [0, 0.69444, 0, 0, 0.57616],
105: [0, 0.65952, 0, 0, 0.34451],
106: [0.19444, 0.65952, 0.05724, 0, 0.41181],
107: [0, 0.69444, 0.03148, 0, 0.5206],
108: [0, 0.69444, 0.01968, 0.08334, 0.29838],
109: [0, 0.43056, 0, 0, 0.87801],
110: [0, 0.43056, 0, 0, 0.60023],
111: [0, 0.43056, 0, 0.05556, 0.48472],
112: [0.19444, 0.43056, 0, 0.08334, 0.50313],
113: [0.19444, 0.43056, 0.03588, 0.08334, 0.44641],
114: [0, 0.43056, 0.02778, 0.05556, 0.45116],
115: [0, 0.43056, 0, 0.05556, 0.46875],
116: [0, 0.61508, 0, 0.08334, 0.36111],
117: [0, 0.43056, 0, 0.02778, 0.57246],
118: [0, 0.43056, 0.03588, 0.02778, 0.48472],
119: [0, 0.43056, 0.02691, 0.08334, 0.71592],
120: [0, 0.43056, 0, 0.02778, 0.57153],
121: [0.19444, 0.43056, 0.03588, 0.05556, 0.49028],
122: [0, 0.43056, 0.04398, 0.05556, 0.46505],
160: [0, 0, 0, 0, 0.25],
915: [0, 0.68333, 0.13889, 0.08334, 0.61528],
916: [0, 0.68333, 0, 0.16667, 0.83334],
920: [0, 0.68333, 0.02778, 0.08334, 0.76278],
923: [0, 0.68333, 0, 0.16667, 0.69445],
926: [0, 0.68333, 0.07569, 0.08334, 0.74236],
928: [0, 0.68333, 0.08125, 0.05556, 0.83125],
931: [0, 0.68333, 0.05764, 0.08334, 0.77986],
933: [0, 0.68333, 0.13889, 0.05556, 0.58333],
934: [0, 0.68333, 0, 0.08334, 0.66667],
936: [0, 0.68333, 0.11, 0.05556, 0.61222],
937: [0, 0.68333, 0.05017, 0.08334, 0.7724],
945: [0, 0.43056, 0.0037, 0.02778, 0.6397],
946: [0.19444, 0.69444, 0.05278, 0.08334, 0.56563],
947: [0.19444, 0.43056, 0.05556, 0, 0.51773],
948: [0, 0.69444, 0.03785, 0.05556, 0.44444],
949: [0, 0.43056, 0, 0.08334, 0.46632],
950: [0.19444, 0.69444, 0.07378, 0.08334, 0.4375],
951: [0.19444, 0.43056, 0.03588, 0.05556, 0.49653],
952: [0, 0.69444, 0.02778, 0.08334, 0.46944],
953: [0, 0.43056, 0, 0.05556, 0.35394],
954: [0, 0.43056, 0, 0, 0.57616],
955: [0, 0.69444, 0, 0, 0.58334],
956: [0.19444, 0.43056, 0, 0.02778, 0.60255],
957: [0, 0.43056, 0.06366, 0.02778, 0.49398],
958: [0.19444, 0.69444, 0.04601, 0.11111, 0.4375],
959: [0, 0.43056, 0, 0.05556, 0.48472],
960: [0, 0.43056, 0.03588, 0, 0.57003],
961: [0.19444, 0.43056, 0, 0.08334, 0.51702],
962: [0.09722, 0.43056, 0.07986, 0.08334, 0.36285],
963: [0, 0.43056, 0.03588, 0, 0.57141],
964: [0, 0.43056, 0.1132, 0.02778, 0.43715],
965: [0, 0.43056, 0.03588, 0.02778, 0.54028],
966: [0.19444, 0.43056, 0, 0.08334, 0.65417],
967: [0.19444, 0.43056, 0, 0.05556, 0.62569],
968: [0.19444, 0.69444, 0.03588, 0.11111, 0.65139],
969: [0, 0.43056, 0.03588, 0, 0.62245],
977: [0, 0.69444, 0, 0.08334, 0.59144],
981: [0.19444, 0.69444, 0, 0.08334, 0.59583],
982: [0, 0.43056, 0.02778, 0, 0.82813],
1009: [0.19444, 0.43056, 0, 0.08334, 0.51702],
1013: [0, 0.43056, 0, 0.05556, 0.4059],
57649: [0, 0.43056, 0, 0.02778, 0.32246],
57911: [0.19444, 0.43056, 0, 0.08334, 0.38403],
},
'SansSerif-Bold': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.36667],
34: [0, 0.69444, 0, 0, 0.55834],
35: [0.19444, 0.69444, 0, 0, 0.91667],
36: [0.05556, 0.75, 0, 0, 0.55],
37: [0.05556, 0.75, 0, 0, 1.02912],
38: [0, 0.69444, 0, 0, 0.83056],
39: [0, 0.69444, 0, 0, 0.30556],
40: [0.25, 0.75, 0, 0, 0.42778],
41: [0.25, 0.75, 0, 0, 0.42778],
42: [0, 0.75, 0, 0, 0.55],
43: [0.11667, 0.61667, 0, 0, 0.85556],
44: [0.10556, 0.13056, 0, 0, 0.30556],
45: [0, 0.45833, 0, 0, 0.36667],
46: [0, 0.13056, 0, 0, 0.30556],
47: [0.25, 0.75, 0, 0, 0.55],
48: [0, 0.69444, 0, 0, 0.55],
49: [0, 0.69444, 0, 0, 0.55],
50: [0, 0.69444, 0, 0, 0.55],
51: [0, 0.69444, 0, 0, 0.55],
52: [0, 0.69444, 0, 0, 0.55],
53: [0, 0.69444, 0, 0, 0.55],
54: [0, 0.69444, 0, 0, 0.55],
55: [0, 0.69444, 0, 0, 0.55],
56: [0, 0.69444, 0, 0, 0.55],
57: [0, 0.69444, 0, 0, 0.55],
58: [0, 0.45833, 0, 0, 0.30556],
59: [0.10556, 0.45833, 0, 0, 0.30556],
61: [-0.09375, 0.40625, 0, 0, 0.85556],
63: [0, 0.69444, 0, 0, 0.51945],
64: [0, 0.69444, 0, 0, 0.73334],
65: [0, 0.69444, 0, 0, 0.73334],
66: [0, 0.69444, 0, 0, 0.73334],
67: [0, 0.69444, 0, 0, 0.70278],
68: [0, 0.69444, 0, 0, 0.79445],
69: [0, 0.69444, 0, 0, 0.64167],
70: [0, 0.69444, 0, 0, 0.61111],
71: [0, 0.69444, 0, 0, 0.73334],
72: [0, 0.69444, 0, 0, 0.79445],
73: [0, 0.69444, 0, 0, 0.33056],
74: [0, 0.69444, 0, 0, 0.51945],
75: [0, 0.69444, 0, 0, 0.76389],
76: [0, 0.69444, 0, 0, 0.58056],
77: [0, 0.69444, 0, 0, 0.97778],
78: [0, 0.69444, 0, 0, 0.79445],
79: [0, 0.69444, 0, 0, 0.79445],
80: [0, 0.69444, 0, 0, 0.70278],
81: [0.10556, 0.69444, 0, 0, 0.79445],
82: [0, 0.69444, 0, 0, 0.70278],
83: [0, 0.69444, 0, 0, 0.61111],
84: [0, 0.69444, 0, 0, 0.73334],
85: [0, 0.69444, 0, 0, 0.76389],
86: [0, 0.69444, 0.01528, 0, 0.73334],
87: [0, 0.69444, 0.01528, 0, 1.03889],
88: [0, 0.69444, 0, 0, 0.73334],
89: [0, 0.69444, 0.0275, 0, 0.73334],
90: [0, 0.69444, 0, 0, 0.67223],
91: [0.25, 0.75, 0, 0, 0.34306],
93: [0.25, 0.75, 0, 0, 0.34306],
94: [0, 0.69444, 0, 0, 0.55],
95: [0.35, 0.10833, 0.03056, 0, 0.55],
97: [0, 0.45833, 0, 0, 0.525],
98: [0, 0.69444, 0, 0, 0.56111],
99: [0, 0.45833, 0, 0, 0.48889],
100: [0, 0.69444, 0, 0, 0.56111],
101: [0, 0.45833, 0, 0, 0.51111],
102: [0, 0.69444, 0.07639, 0, 0.33611],
103: [0.19444, 0.45833, 0.01528, 0, 0.55],
104: [0, 0.69444, 0, 0, 0.56111],
105: [0, 0.69444, 0, 0, 0.25556],
106: [0.19444, 0.69444, 0, 0, 0.28611],
107: [0, 0.69444, 0, 0, 0.53056],
108: [0, 0.69444, 0, 0, 0.25556],
109: [0, 0.45833, 0, 0, 0.86667],
110: [0, 0.45833, 0, 0, 0.56111],
111: [0, 0.45833, 0, 0, 0.55],
112: [0.19444, 0.45833, 0, 0, 0.56111],
113: [0.19444, 0.45833, 0, 0, 0.56111],
114: [0, 0.45833, 0.01528, 0, 0.37222],
115: [0, 0.45833, 0, 0, 0.42167],
116: [0, 0.58929, 0, 0, 0.40417],
117: [0, 0.45833, 0, 0, 0.56111],
118: [0, 0.45833, 0.01528, 0, 0.5],
119: [0, 0.45833, 0.01528, 0, 0.74445],
120: [0, 0.45833, 0, 0, 0.5],
121: [0.19444, 0.45833, 0.01528, 0, 0.5],
122: [0, 0.45833, 0, 0, 0.47639],
126: [0.35, 0.34444, 0, 0, 0.55],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.69444, 0, 0, 0.55],
176: [0, 0.69444, 0, 0, 0.73334],
180: [0, 0.69444, 0, 0, 0.55],
184: [0.17014, 0, 0, 0, 0.48889],
305: [0, 0.45833, 0, 0, 0.25556],
567: [0.19444, 0.45833, 0, 0, 0.28611],
710: [0, 0.69444, 0, 0, 0.55],
711: [0, 0.63542, 0, 0, 0.55],
713: [0, 0.63778, 0, 0, 0.55],
728: [0, 0.69444, 0, 0, 0.55],
729: [0, 0.69444, 0, 0, 0.30556],
730: [0, 0.69444, 0, 0, 0.73334],
732: [0, 0.69444, 0, 0, 0.55],
733: [0, 0.69444, 0, 0, 0.55],
915: [0, 0.69444, 0, 0, 0.58056],
916: [0, 0.69444, 0, 0, 0.91667],
920: [0, 0.69444, 0, 0, 0.85556],
923: [0, 0.69444, 0, 0, 0.67223],
926: [0, 0.69444, 0, 0, 0.73334],
928: [0, 0.69444, 0, 0, 0.79445],
931: [0, 0.69444, 0, 0, 0.79445],
933: [0, 0.69444, 0, 0, 0.85556],
934: [0, 0.69444, 0, 0, 0.79445],
936: [0, 0.69444, 0, 0, 0.85556],
937: [0, 0.69444, 0, 0, 0.79445],
8211: [0, 0.45833, 0.03056, 0, 0.55],
8212: [0, 0.45833, 0.03056, 0, 1.10001],
8216: [0, 0.69444, 0, 0, 0.30556],
8217: [0, 0.69444, 0, 0, 0.30556],
8220: [0, 0.69444, 0, 0, 0.55834],
8221: [0, 0.69444, 0, 0, 0.55834],
},
'SansSerif-Italic': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0.05733, 0, 0.31945],
34: [0, 0.69444, 0.00316, 0, 0.5],
35: [0.19444, 0.69444, 0.05087, 0, 0.83334],
36: [0.05556, 0.75, 0.11156, 0, 0.5],
37: [0.05556, 0.75, 0.03126, 0, 0.83334],
38: [0, 0.69444, 0.03058, 0, 0.75834],
39: [0, 0.69444, 0.07816, 0, 0.27778],
40: [0.25, 0.75, 0.13164, 0, 0.38889],
41: [0.25, 0.75, 0.02536, 0, 0.38889],
42: [0, 0.75, 0.11775, 0, 0.5],
43: [0.08333, 0.58333, 0.02536, 0, 0.77778],
44: [0.125, 0.08333, 0, 0, 0.27778],
45: [0, 0.44444, 0.01946, 0, 0.33333],
46: [0, 0.08333, 0, 0, 0.27778],
47: [0.25, 0.75, 0.13164, 0, 0.5],
48: [0, 0.65556, 0.11156, 0, 0.5],
49: [0, 0.65556, 0.11156, 0, 0.5],
50: [0, 0.65556, 0.11156, 0, 0.5],
51: [0, 0.65556, 0.11156, 0, 0.5],
52: [0, 0.65556, 0.11156, 0, 0.5],
53: [0, 0.65556, 0.11156, 0, 0.5],
54: [0, 0.65556, 0.11156, 0, 0.5],
55: [0, 0.65556, 0.11156, 0, 0.5],
56: [0, 0.65556, 0.11156, 0, 0.5],
57: [0, 0.65556, 0.11156, 0, 0.5],
58: [0, 0.44444, 0.02502, 0, 0.27778],
59: [0.125, 0.44444, 0.02502, 0, 0.27778],
61: [-0.13, 0.37, 0.05087, 0, 0.77778],
63: [0, 0.69444, 0.11809, 0, 0.47222],
64: [0, 0.69444, 0.07555, 0, 0.66667],
65: [0, 0.69444, 0, 0, 0.66667],
66: [0, 0.69444, 0.08293, 0, 0.66667],
67: [0, 0.69444, 0.11983, 0, 0.63889],
68: [0, 0.69444, 0.07555, 0, 0.72223],
69: [0, 0.69444, 0.11983, 0, 0.59722],
70: [0, 0.69444, 0.13372, 0, 0.56945],
71: [0, 0.69444, 0.11983, 0, 0.66667],
72: [0, 0.69444, 0.08094, 0, 0.70834],
73: [0, 0.69444, 0.13372, 0, 0.27778],
74: [0, 0.69444, 0.08094, 0, 0.47222],
75: [0, 0.69444, 0.11983, 0, 0.69445],
76: [0, 0.69444, 0, 0, 0.54167],
77: [0, 0.69444, 0.08094, 0, 0.875],
78: [0, 0.69444, 0.08094, 0, 0.70834],
79: [0, 0.69444, 0.07555, 0, 0.73611],
80: [0, 0.69444, 0.08293, 0, 0.63889],
81: [0.125, 0.69444, 0.07555, 0, 0.73611],
82: [0, 0.69444, 0.08293, 0, 0.64584],
83: [0, 0.69444, 0.09205, 0, 0.55556],
84: [0, 0.69444, 0.13372, 0, 0.68056],
85: [0, 0.69444, 0.08094, 0, 0.6875],
86: [0, 0.69444, 0.1615, 0, 0.66667],
87: [0, 0.69444, 0.1615, 0, 0.94445],
88: [0, 0.69444, 0.13372, 0, 0.66667],
89: [0, 0.69444, 0.17261, 0, 0.66667],
90: [0, 0.69444, 0.11983, 0, 0.61111],
91: [0.25, 0.75, 0.15942, 0, 0.28889],
93: [0.25, 0.75, 0.08719, 0, 0.28889],
94: [0, 0.69444, 0.0799, 0, 0.5],
95: [0.35, 0.09444, 0.08616, 0, 0.5],
97: [0, 0.44444, 0.00981, 0, 0.48056],
98: [0, 0.69444, 0.03057, 0, 0.51667],
99: [0, 0.44444, 0.08336, 0, 0.44445],
100: [0, 0.69444, 0.09483, 0, 0.51667],
101: [0, 0.44444, 0.06778, 0, 0.44445],
102: [0, 0.69444, 0.21705, 0, 0.30556],
103: [0.19444, 0.44444, 0.10836, 0, 0.5],
104: [0, 0.69444, 0.01778, 0, 0.51667],
105: [0, 0.67937, 0.09718, 0, 0.23889],
106: [0.19444, 0.67937, 0.09162, 0, 0.26667],
107: [0, 0.69444, 0.08336, 0, 0.48889],
108: [0, 0.69444, 0.09483, 0, 0.23889],
109: [0, 0.44444, 0.01778, 0, 0.79445],
110: [0, 0.44444, 0.01778, 0, 0.51667],
111: [0, 0.44444, 0.06613, 0, 0.5],
112: [0.19444, 0.44444, 0.0389, 0, 0.51667],
113: [0.19444, 0.44444, 0.04169, 0, 0.51667],
114: [0, 0.44444, 0.10836, 0, 0.34167],
115: [0, 0.44444, 0.0778, 0, 0.38333],
116: [0, 0.57143, 0.07225, 0, 0.36111],
117: [0, 0.44444, 0.04169, 0, 0.51667],
118: [0, 0.44444, 0.10836, 0, 0.46111],
119: [0, 0.44444, 0.10836, 0, 0.68334],
120: [0, 0.44444, 0.09169, 0, 0.46111],
121: [0.19444, 0.44444, 0.10836, 0, 0.46111],
122: [0, 0.44444, 0.08752, 0, 0.43472],
126: [0.35, 0.32659, 0.08826, 0, 0.5],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.67937, 0.06385, 0, 0.5],
176: [0, 0.69444, 0, 0, 0.73752],
184: [0.17014, 0, 0, 0, 0.44445],
305: [0, 0.44444, 0.04169, 0, 0.23889],
567: [0.19444, 0.44444, 0.04169, 0, 0.26667],
710: [0, 0.69444, 0.0799, 0, 0.5],
711: [0, 0.63194, 0.08432, 0, 0.5],
713: [0, 0.60889, 0.08776, 0, 0.5],
714: [0, 0.69444, 0.09205, 0, 0.5],
715: [0, 0.69444, 0, 0, 0.5],
728: [0, 0.69444, 0.09483, 0, 0.5],
729: [0, 0.67937, 0.07774, 0, 0.27778],
730: [0, 0.69444, 0, 0, 0.73752],
732: [0, 0.67659, 0.08826, 0, 0.5],
733: [0, 0.69444, 0.09205, 0, 0.5],
915: [0, 0.69444, 0.13372, 0, 0.54167],
916: [0, 0.69444, 0, 0, 0.83334],
920: [0, 0.69444, 0.07555, 0, 0.77778],
923: [0, 0.69444, 0, 0, 0.61111],
926: [0, 0.69444, 0.12816, 0, 0.66667],
928: [0, 0.69444, 0.08094, 0, 0.70834],
931: [0, 0.69444, 0.11983, 0, 0.72222],
933: [0, 0.69444, 0.09031, 0, 0.77778],
934: [0, 0.69444, 0.04603, 0, 0.72222],
936: [0, 0.69444, 0.09031, 0, 0.77778],
937: [0, 0.69444, 0.08293, 0, 0.72222],
8211: [0, 0.44444, 0.08616, 0, 0.5],
8212: [0, 0.44444, 0.08616, 0, 1],
8216: [0, 0.69444, 0.07816, 0, 0.27778],
8217: [0, 0.69444, 0.07816, 0, 0.27778],
8220: [0, 0.69444, 0.14205, 0, 0.5],
8221: [0, 0.69444, 0.00316, 0, 0.5],
},
'SansSerif-Regular': {
32: [0, 0, 0, 0, 0.25],
33: [0, 0.69444, 0, 0, 0.31945],
34: [0, 0.69444, 0, 0, 0.5],
35: [0.19444, 0.69444, 0, 0, 0.83334],
36: [0.05556, 0.75, 0, 0, 0.5],
37: [0.05556, 0.75, 0, 0, 0.83334],
38: [0, 0.69444, 0, 0, 0.75834],
39: [0, 0.69444, 0, 0, 0.27778],
40: [0.25, 0.75, 0, 0, 0.38889],
41: [0.25, 0.75, 0, 0, 0.38889],
42: [0, 0.75, 0, 0, 0.5],
43: [0.08333, 0.58333, 0, 0, 0.77778],
44: [0.125, 0.08333, 0, 0, 0.27778],
45: [0, 0.44444, 0, 0, 0.33333],
46: [0, 0.08333, 0, 0, 0.27778],
47: [0.25, 0.75, 0, 0, 0.5],
48: [0, 0.65556, 0, 0, 0.5],
49: [0, 0.65556, 0, 0, 0.5],
50: [0, 0.65556, 0, 0, 0.5],
51: [0, 0.65556, 0, 0, 0.5],
52: [0, 0.65556, 0, 0, 0.5],
53: [0, 0.65556, 0, 0, 0.5],
54: [0, 0.65556, 0, 0, 0.5],
55: [0, 0.65556, 0, 0, 0.5],
56: [0, 0.65556, 0, 0, 0.5],
57: [0, 0.65556, 0, 0, 0.5],
58: [0, 0.44444, 0, 0, 0.27778],
59: [0.125, 0.44444, 0, 0, 0.27778],
61: [-0.13, 0.37, 0, 0, 0.77778],
63: [0, 0.69444, 0, 0, 0.47222],
64: [0, 0.69444, 0, 0, 0.66667],
65: [0, 0.69444, 0, 0, 0.66667],
66: [0, 0.69444, 0, 0, 0.66667],
67: [0, 0.69444, 0, 0, 0.63889],
68: [0, 0.69444, 0, 0, 0.72223],
69: [0, 0.69444, 0, 0, 0.59722],
70: [0, 0.69444, 0, 0, 0.56945],
71: [0, 0.69444, 0, 0, 0.66667],
72: [0, 0.69444, 0, 0, 0.70834],
73: [0, 0.69444, 0, 0, 0.27778],
74: [0, 0.69444, 0, 0, 0.47222],
75: [0, 0.69444, 0, 0, 0.69445],
76: [0, 0.69444, 0, 0, 0.54167],
77: [0, 0.69444, 0, 0, 0.875],
78: [0, 0.69444, 0, 0, 0.70834],
79: [0, 0.69444, 0, 0, 0.73611],
80: [0, 0.69444, 0, 0, 0.63889],
81: [0.125, 0.69444, 0, 0, 0.73611],
82: [0, 0.69444, 0, 0, 0.64584],
83: [0, 0.69444, 0, 0, 0.55556],
84: [0, 0.69444, 0, 0, 0.68056],
85: [0, 0.69444, 0, 0, 0.6875],
86: [0, 0.69444, 0.01389, 0, 0.66667],
87: [0, 0.69444, 0.01389, 0, 0.94445],
88: [0, 0.69444, 0, 0, 0.66667],
89: [0, 0.69444, 0.025, 0, 0.66667],
90: [0, 0.69444, 0, 0, 0.61111],
91: [0.25, 0.75, 0, 0, 0.28889],
93: [0.25, 0.75, 0, 0, 0.28889],
94: [0, 0.69444, 0, 0, 0.5],
95: [0.35, 0.09444, 0.02778, 0, 0.5],
97: [0, 0.44444, 0, 0, 0.48056],
98: [0, 0.69444, 0, 0, 0.51667],
99: [0, 0.44444, 0, 0, 0.44445],
100: [0, 0.69444, 0, 0, 0.51667],
101: [0, 0.44444, 0, 0, 0.44445],
102: [0, 0.69444, 0.06944, 0, 0.30556],
103: [0.19444, 0.44444, 0.01389, 0, 0.5],
104: [0, 0.69444, 0, 0, 0.51667],
105: [0, 0.67937, 0, 0, 0.23889],
106: [0.19444, 0.67937, 0, 0, 0.26667],
107: [0, 0.69444, 0, 0, 0.48889],
108: [0, 0.69444, 0, 0, 0.23889],
109: [0, 0.44444, 0, 0, 0.79445],
110: [0, 0.44444, 0, 0, 0.51667],
111: [0, 0.44444, 0, 0, 0.5],
112: [0.19444, 0.44444, 0, 0, 0.51667],
113: [0.19444, 0.44444, 0, 0, 0.51667],
114: [0, 0.44444, 0.01389, 0, 0.34167],
115: [0, 0.44444, 0, 0, 0.38333],
116: [0, 0.57143, 0, 0, 0.36111],
117: [0, 0.44444, 0, 0, 0.51667],
118: [0, 0.44444, 0.01389, 0, 0.46111],
119: [0, 0.44444, 0.01389, 0, 0.68334],
120: [0, 0.44444, 0, 0, 0.46111],
121: [0.19444, 0.44444, 0.01389, 0, 0.46111],
122: [0, 0.44444, 0, 0, 0.43472],
126: [0.35, 0.32659, 0, 0, 0.5],
160: [0, 0, 0, 0, 0.25],
168: [0, 0.67937, 0, 0, 0.5],
176: [0, 0.69444, 0, 0, 0.66667],
184: [0.17014, 0, 0, 0, 0.44445],
305: [0, 0.44444, 0, 0, 0.23889],
567: [0.19444, 0.44444, 0, 0, 0.26667],
710: [0, 0.69444, 0, 0, 0.5],
711: [0, 0.63194, 0, 0, 0.5],
713: [0, 0.60889, 0, 0, 0.5],
714: [0, 0.69444, 0, 0, 0.5],
715: [0, 0.69444, 0, 0, 0.5],
728: [0, 0.69444, 0, 0, 0.5],
729: [0, 0.67937, 0, 0, 0.27778],
730: [0, 0.69444, 0, 0, 0.66667],
732: [0, 0.67659, 0, 0, 0.5],
733: [0, 0.69444, 0, 0, 0.5],
915: [0, 0.69444, 0, 0, 0.54167],
916: [0, 0.69444, 0, 0, 0.83334],
920: [0, 0.69444, 0, 0, 0.77778],
923: [0, 0.69444, 0, 0, 0.61111],
926: [0, 0.69444, 0, 0, 0.66667],
928: [0, 0.69444, 0, 0, 0.70834],
931: [0, 0.69444, 0, 0, 0.72222],
933: [0, 0.69444, 0, 0, 0.77778],
934: [0, 0.69444, 0, 0, 0.72222],
936: [0, 0.69444, 0, 0, 0.77778],
937: [0, 0.69444, 0, 0, 0.72222],
8211: [0, 0.44444, 0.02778, 0, 0.5],
8212: [0, 0.44444, 0.02778, 0, 1],
8216: [0, 0.69444, 0, 0, 0.27778],
8217: [0, 0.69444, 0, 0, 0.27778],
8220: [0, 0.69444, 0, 0, 0.5],
8221: [0, 0.69444, 0, 0, 0.5],
},
'Script-Regular': {
32: [0, 0, 0, 0, 0.25],
65: [0, 0.7, 0.22925, 0, 0.80253],
66: [0, 0.7, 0.04087, 0, 0.90757],
67: [0, 0.7, 0.1689, 0, 0.66619],
68: [0, 0.7, 0.09371, 0, 0.77443],
69: [0, 0.7, 0.18583, 0, 0.56162],
70: [0, 0.7, 0.13634, 0, 0.89544],
71: [0, 0.7, 0.17322, 0, 0.60961],
72: [0, 0.7, 0.29694, 0, 0.96919],
73: [0, 0.7, 0.19189, 0, 0.80907],
74: [0.27778, 0.7, 0.19189, 0, 1.05159],
75: [0, 0.7, 0.31259, 0, 0.91364],
76: [0, 0.7, 0.19189, 0, 0.87373],
77: [0, 0.7, 0.15981, 0, 1.08031],
78: [0, 0.7, 0.3525, 0, 0.9015],
79: [0, 0.7, 0.08078, 0, 0.73787],
80: [0, 0.7, 0.08078, 0, 1.01262],
81: [0, 0.7, 0.03305, 0, 0.88282],
82: [0, 0.7, 0.06259, 0, 0.85],
83: [0, 0.7, 0.19189, 0, 0.86767],
84: [0, 0.7, 0.29087, 0, 0.74697],
85: [0, 0.7, 0.25815, 0, 0.79996],
86: [0, 0.7, 0.27523, 0, 0.62204],
87: [0, 0.7, 0.27523, 0, 0.80532],
88: [0, 0.7, 0.26006, 0, 0.94445],
89: [0, 0.7, 0.2939, 0, 0.70961],
90: [0, 0.7, 0.24037, 0, 0.8212],
160: [0, 0, 0, 0, 0.25],
},
'Size1-Regular': {
32: [0, 0, 0, 0, 0.25],
40: [0.35001, 0.85, 0, 0, 0.45834],
41: [0.35001, 0.85, 0, 0, 0.45834],
47: [0.35001, 0.85, 0, 0, 0.57778],
91: [0.35001, 0.85, 0, 0, 0.41667],
92: [0.35001, 0.85, 0, 0, 0.57778],
93: [0.35001, 0.85, 0, 0, 0.41667],
123: [0.35001, 0.85, 0, 0, 0.58334],
125: [0.35001, 0.85, 0, 0, 0.58334],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.72222, 0, 0, 0.55556],
732: [0, 0.72222, 0, 0, 0.55556],
770: [0, 0.72222, 0, 0, 0.55556],
771: [0, 0.72222, 0, 0, 0.55556],
8214: [-99e-5, 0.601, 0, 0, 0.77778],
8593: [1e-5, 0.6, 0, 0, 0.66667],
8595: [1e-5, 0.6, 0, 0, 0.66667],
8657: [1e-5, 0.6, 0, 0, 0.77778],
8659: [1e-5, 0.6, 0, 0, 0.77778],
8719: [0.25001, 0.75, 0, 0, 0.94445],
8720: [0.25001, 0.75, 0, 0, 0.94445],
8721: [0.25001, 0.75, 0, 0, 1.05556],
8730: [0.35001, 0.85, 0, 0, 1],
8739: [-0.00599, 0.606, 0, 0, 0.33333],
8741: [-0.00599, 0.606, 0, 0, 0.55556],
8747: [0.30612, 0.805, 0.19445, 0, 0.47222],
8748: [0.306, 0.805, 0.19445, 0, 0.47222],
8749: [0.306, 0.805, 0.19445, 0, 0.47222],
8750: [0.30612, 0.805, 0.19445, 0, 0.47222],
8896: [0.25001, 0.75, 0, 0, 0.83334],
8897: [0.25001, 0.75, 0, 0, 0.83334],
8898: [0.25001, 0.75, 0, 0, 0.83334],
8899: [0.25001, 0.75, 0, 0, 0.83334],
8968: [0.35001, 0.85, 0, 0, 0.47222],
8969: [0.35001, 0.85, 0, 0, 0.47222],
8970: [0.35001, 0.85, 0, 0, 0.47222],
8971: [0.35001, 0.85, 0, 0, 0.47222],
9168: [-99e-5, 0.601, 0, 0, 0.66667],
10216: [0.35001, 0.85, 0, 0, 0.47222],
10217: [0.35001, 0.85, 0, 0, 0.47222],
10752: [0.25001, 0.75, 0, 0, 1.11111],
10753: [0.25001, 0.75, 0, 0, 1.11111],
10754: [0.25001, 0.75, 0, 0, 1.11111],
10756: [0.25001, 0.75, 0, 0, 0.83334],
10758: [0.25001, 0.75, 0, 0, 0.83334],
},
'Size2-Regular': {
32: [0, 0, 0, 0, 0.25],
40: [0.65002, 1.15, 0, 0, 0.59722],
41: [0.65002, 1.15, 0, 0, 0.59722],
47: [0.65002, 1.15, 0, 0, 0.81111],
91: [0.65002, 1.15, 0, 0, 0.47222],
92: [0.65002, 1.15, 0, 0, 0.81111],
93: [0.65002, 1.15, 0, 0, 0.47222],
123: [0.65002, 1.15, 0, 0, 0.66667],
125: [0.65002, 1.15, 0, 0, 0.66667],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.75, 0, 0, 1],
732: [0, 0.75, 0, 0, 1],
770: [0, 0.75, 0, 0, 1],
771: [0, 0.75, 0, 0, 1],
8719: [0.55001, 1.05, 0, 0, 1.27778],
8720: [0.55001, 1.05, 0, 0, 1.27778],
8721: [0.55001, 1.05, 0, 0, 1.44445],
8730: [0.65002, 1.15, 0, 0, 1],
8747: [0.86225, 1.36, 0.44445, 0, 0.55556],
8748: [0.862, 1.36, 0.44445, 0, 0.55556],
8749: [0.862, 1.36, 0.44445, 0, 0.55556],
8750: [0.86225, 1.36, 0.44445, 0, 0.55556],
8896: [0.55001, 1.05, 0, 0, 1.11111],
8897: [0.55001, 1.05, 0, 0, 1.11111],
8898: [0.55001, 1.05, 0, 0, 1.11111],
8899: [0.55001, 1.05, 0, 0, 1.11111],
8968: [0.65002, 1.15, 0, 0, 0.52778],
8969: [0.65002, 1.15, 0, 0, 0.52778],
8970: [0.65002, 1.15, 0, 0, 0.52778],
8971: [0.65002, 1.15, 0, 0, 0.52778],
10216: [0.65002, 1.15, 0, 0, 0.61111],
10217: [0.65002, 1.15, 0, 0, 0.61111],
10752: [0.55001, 1.05, 0, 0, 1.51112],
10753: [0.55001, 1.05, 0, 0, 1.51112],
10754: [0.55001, 1.05, 0, 0, 1.51112],
10756: [0.55001, 1.05, 0, 0, 1.11111],
10758: [0.55001, 1.05, 0, 0, 1.11111],
},
'Size3-Regular': {
32: [0, 0, 0, 0, 0.25],
40: [0.95003, 1.45, 0, 0, 0.73611],
41: [0.95003, 1.45, 0, 0, 0.73611],
47: [0.95003, 1.45, 0, 0, 1.04445],
91: [0.95003, 1.45, 0, 0, 0.52778],
92: [0.95003, 1.45, 0, 0, 1.04445],
93: [0.95003, 1.45, 0, 0, 0.52778],
123: [0.95003, 1.45, 0, 0, 0.75],
125: [0.95003, 1.45, 0, 0, 0.75],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.75, 0, 0, 1.44445],
732: [0, 0.75, 0, 0, 1.44445],
770: [0, 0.75, 0, 0, 1.44445],
771: [0, 0.75, 0, 0, 1.44445],
8730: [0.95003, 1.45, 0, 0, 1],
8968: [0.95003, 1.45, 0, 0, 0.58334],
8969: [0.95003, 1.45, 0, 0, 0.58334],
8970: [0.95003, 1.45, 0, 0, 0.58334],
8971: [0.95003, 1.45, 0, 0, 0.58334],
10216: [0.95003, 1.45, 0, 0, 0.75],
10217: [0.95003, 1.45, 0, 0, 0.75],
},
'Size4-Regular': {
32: [0, 0, 0, 0, 0.25],
40: [1.25003, 1.75, 0, 0, 0.79167],
41: [1.25003, 1.75, 0, 0, 0.79167],
47: [1.25003, 1.75, 0, 0, 1.27778],
91: [1.25003, 1.75, 0, 0, 0.58334],
92: [1.25003, 1.75, 0, 0, 1.27778],
93: [1.25003, 1.75, 0, 0, 0.58334],
123: [1.25003, 1.75, 0, 0, 0.80556],
125: [1.25003, 1.75, 0, 0, 0.80556],
160: [0, 0, 0, 0, 0.25],
710: [0, 0.825, 0, 0, 1.8889],
732: [0, 0.825, 0, 0, 1.8889],
770: [0, 0.825, 0, 0, 1.8889],
771: [0, 0.825, 0, 0, 1.8889],
8730: [1.25003, 1.75, 0, 0, 1],
8968: [1.25003, 1.75, 0, 0, 0.63889],
8969: [1.25003, 1.75, 0, 0, 0.63889],
8970: [1.25003, 1.75, 0, 0, 0.63889],
8971: [1.25003, 1.75, 0, 0, 0.63889],
9115: [0.64502, 1.155, 0, 0, 0.875],
9116: [1e-5, 0.6, 0, 0, 0.875],
9117: [0.64502, 1.155, 0, 0, 0.875],
9118: [0.64502, 1.155, 0, 0, 0.875],
9119: [1e-5, 0.6, 0, 0, 0.875],
9120: [0.64502, 1.155, 0, 0, 0.875],
9121: [0.64502, 1.155, 0, 0, 0.66667],
9122: [-99e-5, 0.601, 0, 0, 0.66667],
9123: [0.64502, 1.155, 0, 0, 0.66667],
9124: [0.64502, 1.155, 0, 0, 0.66667],
9125: [-99e-5, 0.601, 0, 0, 0.66667],
9126: [0.64502, 1.155, 0, 0, 0.66667],
9127: [1e-5, 0.9, 0, 0, 0.88889],
9128: [0.65002, 1.15, 0, 0, 0.88889],
9129: [0.90001, 0, 0, 0, 0.88889],
9130: [0, 0.3, 0, 0, 0.88889],
9131: [1e-5, 0.9, 0, 0, 0.88889],
9132: [0.65002, 1.15, 0, 0, 0.88889],
9133: [0.90001, 0, 0, 0, 0.88889],
9143: [0.88502, 0.915, 0, 0, 1.05556],
10216: [1.25003, 1.75, 0, 0, 0.80556],
10217: [1.25003, 1.75, 0, 0, 0.80556],
57344: [-0.00499, 0.605, 0, 0, 1.05556],
57345: [-0.00499, 0.605, 0, 0, 1.05556],
57680: [0, 0.12, 0, 0, 0.45],
57681: [0, 0.12, 0, 0, 0.45],
57682: [0, 0.12, 0, 0, 0.45],
57683: [0, 0.12, 0, 0, 0.45],
},
'Typewriter-Regular': {
32: [0, 0, 0, 0, 0.525],
33: [0, 0.61111, 0, 0, 0.525],
34: [0, 0.61111, 0, 0, 0.525],
35: [0, 0.61111, 0, 0, 0.525],
36: [0.08333, 0.69444, 0, 0, 0.525],
37: [0.08333, 0.69444, 0, 0, 0.525],
38: [0, 0.61111, 0, 0, 0.525],
39: [0, 0.61111, 0, 0, 0.525],
40: [0.08333, 0.69444, 0, 0, 0.525],
41: [0.08333, 0.69444, 0, 0, 0.525],
42: [0, 0.52083, 0, 0, 0.525],
43: [-0.08056, 0.53055, 0, 0, 0.525],
44: [0.13889, 0.125, 0, 0, 0.525],
45: [-0.08056, 0.53055, 0, 0, 0.525],
46: [0, 0.125, 0, 0, 0.525],
47: [0.08333, 0.69444, 0, 0, 0.525],
48: [0, 0.61111, 0, 0, 0.525],
49: [0, 0.61111, 0, 0, 0.525],
50: [0, 0.61111, 0, 0, 0.525],
51: [0, 0.61111, 0, 0, 0.525],
52: [0, 0.61111, 0, 0, 0.525],
53: [0, 0.61111, 0, 0, 0.525],
54: [0, 0.61111, 0, 0, 0.525],
55: [0, 0.61111, 0, 0, 0.525],
56: [0, 0.61111, 0, 0, 0.525],
57: [0, 0.61111, 0, 0, 0.525],
58: [0, 0.43056, 0, 0, 0.525],
59: [0.13889, 0.43056, 0, 0, 0.525],
60: [-0.05556, 0.55556, 0, 0, 0.525],
61: [-0.19549, 0.41562, 0, 0, 0.525],
62: [-0.05556, 0.55556, 0, 0, 0.525],
63: [0, 0.61111, 0, 0, 0.525],
64: [0, 0.61111, 0, 0, 0.525],
65: [0, 0.61111, 0, 0, 0.525],
66: [0, 0.61111, 0, 0, 0.525],
67: [0, 0.61111, 0, 0, 0.525],
68: [0, 0.61111, 0, 0, 0.525],
69: [0, 0.61111, 0, 0, 0.525],
70: [0, 0.61111, 0, 0, 0.525],
71: [0, 0.61111, 0, 0, 0.525],
72: [0, 0.61111, 0, 0, 0.525],
73: [0, 0.61111, 0, 0, 0.525],
74: [0, 0.61111, 0, 0, 0.525],
75: [0, 0.61111, 0, 0, 0.525],
76: [0, 0.61111, 0, 0, 0.525],
77: [0, 0.61111, 0, 0, 0.525],
78: [0, 0.61111, 0, 0, 0.525],
79: [0, 0.61111, 0, 0, 0.525],
80: [0, 0.61111, 0, 0, 0.525],
81: [0.13889, 0.61111, 0, 0, 0.525],
82: [0, 0.61111, 0, 0, 0.525],
83: [0, 0.61111, 0, 0, 0.525],
84: [0, 0.61111, 0, 0, 0.525],
85: [0, 0.61111, 0, 0, 0.525],
86: [0, 0.61111, 0, 0, 0.525],
87: [0, 0.61111, 0, 0, 0.525],
88: [0, 0.61111, 0, 0, 0.525],
89: [0, 0.61111, 0, 0, 0.525],
90: [0, 0.61111, 0, 0, 0.525],
91: [0.08333, 0.69444, 0, 0, 0.525],
92: [0.08333, 0.69444, 0, 0, 0.525],
93: [0.08333, 0.69444, 0, 0, 0.525],
94: [0, 0.61111, 0, 0, 0.525],
95: [0.09514, 0, 0, 0, 0.525],
96: [0, 0.61111, 0, 0, 0.525],
97: [0, 0.43056, 0, 0, 0.525],
98: [0, 0.61111, 0, 0, 0.525],
99: [0, 0.43056, 0, 0, 0.525],
100: [0, 0.61111, 0, 0, 0.525],
101: [0, 0.43056, 0, 0, 0.525],
102: [0, 0.61111, 0, 0, 0.525],
103: [0.22222, 0.43056, 0, 0, 0.525],
104: [0, 0.61111, 0, 0, 0.525],
105: [0, 0.61111, 0, 0, 0.525],
106: [0.22222, 0.61111, 0, 0, 0.525],
107: [0, 0.61111, 0, 0, 0.525],
108: [0, 0.61111, 0, 0, 0.525],
109: [0, 0.43056, 0, 0, 0.525],
110: [0, 0.43056, 0, 0, 0.525],
111: [0, 0.43056, 0, 0, 0.525],
112: [0.22222, 0.43056, 0, 0, 0.525],
113: [0.22222, 0.43056, 0, 0, 0.525],
114: [0, 0.43056, 0, 0, 0.525],
115: [0, 0.43056, 0, 0, 0.525],
116: [0, 0.55358, 0, 0, 0.525],
117: [0, 0.43056, 0, 0, 0.525],
118: [0, 0.43056, 0, 0, 0.525],
119: [0, 0.43056, 0, 0, 0.525],
120: [0, 0.43056, 0, 0, 0.525],
121: [0.22222, 0.43056, 0, 0, 0.525],
122: [0, 0.43056, 0, 0, 0.525],
123: [0.08333, 0.69444, 0, 0, 0.525],
124: [0.08333, 0.69444, 0, 0, 0.525],
125: [0.08333, 0.69444, 0, 0, 0.525],
126: [0, 0.61111, 0, 0, 0.525],
127: [0, 0.61111, 0, 0, 0.525],
160: [0, 0, 0, 0, 0.525],
176: [0, 0.61111, 0, 0, 0.525],
184: [0.19445, 0, 0, 0, 0.525],
305: [0, 0.43056, 0, 0, 0.525],
567: [0.22222, 0.43056, 0, 0, 0.525],
711: [0, 0.56597, 0, 0, 0.525],
713: [0, 0.56555, 0, 0, 0.525],
714: [0, 0.61111, 0, 0, 0.525],
715: [0, 0.61111, 0, 0, 0.525],
728: [0, 0.61111, 0, 0, 0.525],
730: [0, 0.61111, 0, 0, 0.525],
770: [0, 0.61111, 0, 0, 0.525],
771: [0, 0.61111, 0, 0, 0.525],
776: [0, 0.61111, 0, 0, 0.525],
915: [0, 0.61111, 0, 0, 0.525],
916: [0, 0.61111, 0, 0, 0.525],
920: [0, 0.61111, 0, 0, 0.525],
923: [0, 0.61111, 0, 0, 0.525],
926: [0, 0.61111, 0, 0, 0.525],
928: [0, 0.61111, 0, 0, 0.525],
931: [0, 0.61111, 0, 0, 0.525],
933: [0, 0.61111, 0, 0, 0.525],
934: [0, 0.61111, 0, 0, 0.525],
936: [0, 0.61111, 0, 0, 0.525],
937: [0, 0.61111, 0, 0, 0.525],
8216: [0, 0.61111, 0, 0, 0.525],
8217: [0, 0.61111, 0, 0, 0.525],
8242: [0, 0.61111, 0, 0, 0.525],
9251: [0.11111, 0.21944, 0, 0, 0.525],
},
},
Ne = {
slant: [0.25, 0.25, 0.25],
space: [0, 0, 0],
stretch: [0, 0, 0],
shrink: [0, 0, 0],
xHeight: [0.431, 0.431, 0.431],
quad: [1, 1.171, 1.472],
extraSpace: [0, 0, 0],
num1: [0.677, 0.732, 0.925],
num2: [0.394, 0.384, 0.387],
num3: [0.444, 0.471, 0.504],
denom1: [0.686, 0.752, 1.025],
denom2: [0.345, 0.344, 0.532],
sup1: [0.413, 0.503, 0.504],
sup2: [0.363, 0.431, 0.404],
sup3: [0.289, 0.286, 0.294],
sub1: [0.15, 0.143, 0.2],
sub2: [0.247, 0.286, 0.4],
supDrop: [0.386, 0.353, 0.494],
subDrop: [0.05, 0.071, 0.1],
delim1: [2.39, 1.7, 1.98],
delim2: [1.01, 1.157, 1.42],
axisHeight: [0.25, 0.25, 0.25],
defaultRuleThickness: [0.04, 0.049, 0.049],
bigOpSpacing1: [0.111, 0.111, 0.111],
bigOpSpacing2: [0.166, 0.166, 0.166],
bigOpSpacing3: [0.2, 0.2, 0.2],
bigOpSpacing4: [0.6, 0.611, 0.611],
bigOpSpacing5: [0.1, 0.143, 0.143],
sqrtRuleThickness: [0.04, 0.04, 0.04],
ptPerEm: [10, 10, 10],
doubleRuleSep: [0.2, 0.2, 0.2],
arrayRuleWidth: [0.04, 0.04, 0.04],
fboxsep: [0.3, 0.3, 0.3],
fboxrule: [0.04, 0.04, 0.04],
},
Et = {
Å: 'A',
Ð: 'D',
Þ: 'o',
å: 'a',
ð: 'd',
þ: 'o',
А: 'A',
Б: 'B',
В: 'B',
Г: 'F',
Д: 'A',
Е: 'E',
Ж: 'K',
З: '3',
И: 'N',
Й: 'N',
К: 'K',
Л: 'N',
М: 'M',
Н: 'H',
О: 'O',
П: 'N',
Р: 'P',
С: 'C',
Т: 'T',
У: 'y',
Ф: 'O',
Х: 'X',
Ц: 'U',
Ч: 'h',
Ш: 'W',
Щ: 'W',
Ъ: 'B',
Ы: 'X',
Ь: 'B',
Э: '3',
Ю: 'X',
Я: 'R',
а: 'a',
б: 'b',
в: 'a',
г: 'r',
д: 'y',
е: 'e',
ж: 'm',
з: 'e',
и: 'n',
й: 'n',
к: 'n',
л: 'n',
м: 'm',
н: 'n',
о: 'o',
п: 'n',
р: 'p',
с: 'c',
т: 'o',
у: 'y',
ф: 'b',
х: 'x',
ц: 'n',
ч: 'n',
ш: 'w',
щ: 'w',
ъ: 'a',
ы: 'm',
ь: 'a',
э: 'e',
ю: 'm',
я: 'r',
};
function vt(S, o) {
ke[S] = o;
}
function Ft(S, o, s) {
if (!ke[o]) throw new Error('Font metrics not found for font: ' + o + '.');
var c = S.charCodeAt(0),
_ = ke[o][c];
if ((!_ && S[0] in Et && ((c = Et[S[0]].charCodeAt(0)), (_ = ke[o][c])), !_ && s === 'text' && be(c) && (_ = ke[o][77]), _))
return { depth: _[0], height: _[1], italic: _[2], skew: _[3], width: _[4] };
}
var Mt = {};
function me(S) {
var o;
if ((S >= 5 ? (o = 0) : S >= 3 ? (o = 1) : (o = 2), !Mt[o])) {
var s = (Mt[o] = { cssEmPerMu: Ne.quad[o] / 18 });
for (var c in Ne) Ne.hasOwnProperty(c) && (s[c] = Ne[c][o]);
}
return Mt[o];
}
var ve = [
[1, 1, 1],
[2, 1, 1],
[3, 1, 1],
[4, 2, 1],
[5, 2, 1],
[6, 3, 1],
[7, 4, 2],
[8, 6, 3],
[9, 7, 6],
[10, 8, 7],
[11, 10, 9],
],
qe = [0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.2, 1.44, 1.728, 2.074, 2.488],
Qe = function (o, s) {
return s.size < 2 ? o : ve[o - 1][s.size - 1];
},
it = (function () {
function S(s) {
(this.style = void 0),
(this.color = void 0),
(this.size = void 0),
(this.textSize = void 0),
(this.phantom = void 0),
(this.font = void 0),
(this.fontFamily = void 0),
(this.fontWeight = void 0),
(this.fontShape = void 0),
(this.sizeMultiplier = void 0),
(this.maxSize = void 0),
(this.minRuleThickness = void 0),
(this._fontMetrics = void 0),
(this.style = s.style),
(this.color = s.color),
(this.size = s.size || S.BASESIZE),
(this.textSize = s.textSize || this.size),
(this.phantom = !!s.phantom),
(this.font = s.font || ''),
(this.fontFamily = s.fontFamily || ''),
(this.fontWeight = s.fontWeight || ''),
(this.fontShape = s.fontShape || ''),
(this.sizeMultiplier = qe[this.size - 1]),
(this.maxSize = s.maxSize),
(this.minRuleThickness = s.minRuleThickness),
(this._fontMetrics = void 0);
}
var o = S.prototype;
return (
(o.extend = function (c) {
var _ = {
style: this.style,
size: this.size,
textSize: this.textSize,
color: this.color,
phantom: this.phantom,
font: this.font,
fontFamily: this.fontFamily,
fontWeight: this.fontWeight,
fontShape: this.fontShape,
maxSize: this.maxSize,
minRuleThickness: this.minRuleThickness,
};
for (var h in c) c.hasOwnProperty(h) && (_[h] = c[h]);
return new S(_);
}),
(o.havingStyle = function (c) {
return this.style === c ? this : this.extend({ style: c, size: Qe(this.textSize, c) });
}),
(o.havingCrampedStyle = function () {
return this.havingStyle(this.style.cramp());
}),
(o.havingSize = function (c) {
return this.size === c && this.textSize === c
? this
: this.extend({ style: this.style.text(), size: c, textSize: c, sizeMultiplier: qe[c - 1] });
}),
(o.havingBaseStyle = function (c) {
c = c || this.style.text();
var _ = Qe(S.BASESIZE, c);
return this.size === _ && this.textSize === S.BASESIZE && this.style === c ? this : this.extend({ style: c, size: _ });
}),
(o.havingBaseSizing = function () {
var c;
switch (this.style.id) {
case 4:
case 5:
c = 3;
break;
case 6:
case 7:
c = 1;
break;
default:
c = 6;
}
return this.extend({ style: this.style.text(), size: c });
}),
(o.withColor = function (c) {
return this.extend({ color: c });
}),
(o.withPhantom = function () {
return this.extend({ phantom: !0 });
}),
(o.withFont = function (c) {
return this.extend({ font: c });
}),
(o.withTextFontFamily = function (c) {
return this.extend({ fontFamily: c, font: '' });
}),
(o.withTextFontWeight = function (c) {
return this.extend({ fontWeight: c, font: '' });
}),
(o.withTextFontShape = function (c) {
return this.extend({ fontShape: c, font: '' });
}),
(o.sizingClasses = function (c) {
return c.size !== this.size ? ['sizing', 'reset-size' + c.size, 'size' + this.size] : [];
}),
(o.baseSizingClasses = function () {
return this.size !== S.BASESIZE ? ['sizing', 'reset-size' + this.size, 'size' + S.BASESIZE] : [];
}),
(o.fontMetrics = function () {
return this._fontMetrics || (this._fontMetrics = me(this.size)), this._fontMetrics;
}),
(o.getColor = function () {
return this.phantom ? 'transparent' : this.color;
}),
S
);
})();
it.BASESIZE = 6;
var qt = it,
or = {
pt: 1,
mm: 7227 / 2540,
cm: 7227 / 254,
in: 72.27,
bp: 803 / 800,
pc: 12,
dd: 1238 / 1157,
cc: 14856 / 1157,
nd: 685 / 642,
nc: 1370 / 107,
sp: 1 / 65536,
px: 803 / 800,
},
vr = { ex: !0, em: !0, mu: !0 },
et = function (o) {
return typeof o != 'string' && (o = o.unit), o in or || o in vr || o === 'ex';
},
nt = function (o, s) {
var c;
if (o.unit in or) c = or[o.unit] / s.fontMetrics().ptPerEm / s.sizeMultiplier;
else if (o.unit === 'mu') c = s.fontMetrics().cssEmPerMu;
else {
var _;
if ((s.style.isTight() ? (_ = s.havingStyle(s.style.text())) : (_ = s), o.unit === 'ex')) c = _.fontMetrics().xHeight;
else if (o.unit === 'em') c = _.fontMetrics().quad;
else throw new a("Invalid unit: '" + o.unit + "'");
_ !== s && (c *= _.sizeMultiplier / s.sizeMultiplier);
}
return Math.min(o.number * c, s.maxSize);
},
_e = function (o) {
return +o.toFixed(4) + 'em';
},
Vt = function (o) {
return o
.filter(function (s) {
return s;
})
.join(' ');
},
ni = function (o, s, c) {
if (
((this.classes = o || []), (this.attributes = {}), (this.height = 0), (this.depth = 0), (this.maxFontSize = 0), (this.style = c || {}), s)
) {
s.style.isTight() && this.classes.push('mtight');
var _ = s.getColor();
_ && (this.style.color = _);
}
},
$r = function (o) {
var s = document.createElement(o);
s.className = Vt(this.classes);
for (var c in this.style) this.style.hasOwnProperty(c) && (s.style[c] = this.style[c]);
for (var _ in this.attributes) this.attributes.hasOwnProperty(_) && s.setAttribute(_, this.attributes[_]);
for (var h = 0; h < this.children.length; h++) s.appendChild(this.children[h].toNode());
return s;
},
ii = function (o) {
var s = '<' + o;
this.classes.length && (s += ' class="' + w.escape(Vt(this.classes)) + '"');
var c = '';
for (var _ in this.style) this.style.hasOwnProperty(_) && (c += w.hyphenate(_) + ':' + this.style[_] + ';');
c && (s += ' style="' + w.escape(c) + '"');
for (var h in this.attributes) this.attributes.hasOwnProperty(h) && (s += ' ' + h + '="' + w.escape(this.attributes[h]) + '"');
s += '>';
for (var b = 0; b < this.children.length; b++) s += this.children[b].toMarkup();
return (s += '' + o + '>'), s;
},
dn = (function () {
function S(s, c, _, h) {
(this.children = void 0),
(this.attributes = void 0),
(this.classes = void 0),
(this.height = void 0),
(this.depth = void 0),
(this.width = void 0),
(this.maxFontSize = void 0),
(this.style = void 0),
ni.call(this, s, _, h),
(this.children = c || []);
}
var o = S.prototype;
return (
(o.setAttribute = function (c, _) {
this.attributes[c] = _;
}),
(o.hasClass = function (c) {
return w.contains(this.classes, c);
}),
(o.toNode = function () {
return $r.call(this, 'span');
}),
(o.toMarkup = function () {
return ii.call(this, 'span');
}),
S
);
})(),
yt = (function () {
function S(s, c, _, h) {
(this.children = void 0),
(this.attributes = void 0),
(this.classes = void 0),
(this.height = void 0),
(this.depth = void 0),
(this.maxFontSize = void 0),
(this.style = void 0),
ni.call(this, c, h),
(this.children = _ || []),
this.setAttribute('href', s);
}
var o = S.prototype;
return (
(o.setAttribute = function (c, _) {
this.attributes[c] = _;
}),
(o.hasClass = function (c) {
return w.contains(this.classes, c);
}),
(o.toNode = function () {
return $r.call(this, 'a');
}),
(o.toMarkup = function () {
return ii.call(this, 'a');
}),
S
);
})(),
Vr = (function () {
function S(s, c, _) {
(this.src = void 0),
(this.alt = void 0),
(this.classes = void 0),
(this.height = void 0),
(this.depth = void 0),
(this.maxFontSize = void 0),
(this.style = void 0),
(this.alt = c),
(this.src = s),
(this.classes = ['mord']),
(this.style = _);
}
var o = S.prototype;
return (
(o.hasClass = function (c) {
return w.contains(this.classes, c);
}),
(o.toNode = function () {
var c = document.createElement('img');
(c.src = this.src), (c.alt = this.alt), (c.className = 'mord');
for (var _ in this.style) this.style.hasOwnProperty(_) && (c.style[_] = this.style[_]);
return c;
}),
(o.toMarkup = function () {
var c = " "), c;
}),
S
);
})(),
qi = { î: 'ı̂', ï: 'ı̈', í: 'ı́', ì: 'ı̀' },
Yt = (function () {
function S(s, c, _, h, b, C, A, I) {
(this.text = void 0),
(this.height = void 0),
(this.depth = void 0),
(this.italic = void 0),
(this.skew = void 0),
(this.width = void 0),
(this.maxFontSize = void 0),
(this.classes = void 0),
(this.style = void 0),
(this.text = s),
(this.height = c || 0),
(this.depth = _ || 0),
(this.italic = h || 0),
(this.skew = b || 0),
(this.width = C || 0),
(this.classes = A || []),
(this.style = I || {}),
(this.maxFontSize = 0);
var k = ze(this.text.charCodeAt(0));
k && this.classes.push(k + '_fallback'), /[îïíì]/.test(this.text) && (this.text = qi[this.text]);
}
var o = S.prototype;
return (
(o.hasClass = function (c) {
return w.contains(this.classes, c);
}),
(o.toNode = function () {
var c = document.createTextNode(this.text),
_ = null;
this.italic > 0 && ((_ = document.createElement('span')), (_.style.marginRight = _e(this.italic))),
this.classes.length > 0 && ((_ = _ || document.createElement('span')), (_.className = Vt(this.classes)));
for (var h in this.style) this.style.hasOwnProperty(h) && ((_ = _ || document.createElement('span')), (_.style[h] = this.style[h]));
return _ ? (_.appendChild(c), _) : c;
}),
(o.toMarkup = function () {
var c = !1,
_ = ' 0 && (h += 'margin-right:' + this.italic + 'em;');
for (var b in this.style) this.style.hasOwnProperty(b) && (h += w.hyphenate(b) + ':' + this.style[b] + ';');
h && ((c = !0), (_ += ' style="' + w.escape(h) + '"'));
var C = w.escape(this.text);
return c ? ((_ += '>'), (_ += C), (_ += ' '), _) : C;
}),
S
);
})(),
jt = (function () {
function S(s, c) {
(this.children = void 0), (this.attributes = void 0), (this.children = s || []), (this.attributes = c || {});
}
var o = S.prototype;
return (
(o.toNode = function () {
var c = 'http://www.w3.org/2000/svg',
_ = document.createElementNS(c, 'svg');
for (var h in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, h) && _.setAttribute(h, this.attributes[h]);
for (var b = 0; b < this.children.length; b++) _.appendChild(this.children[b].toNode());
return _;
}),
(o.toMarkup = function () {
var c = '';
for (var h = 0; h < this.children.length; h++) c += this.children[h].toMarkup();
return (c += ' '), c;
}),
S
);
})(),
mr = (function () {
function S(s, c) {
(this.pathName = void 0), (this.alternate = void 0), (this.pathName = s), (this.alternate = c);
}
var o = S.prototype;
return (
(o.toNode = function () {
var c = 'http://www.w3.org/2000/svg',
_ = document.createElementNS(c, 'path');
return this.alternate ? _.setAttribute('d', this.alternate) : _.setAttribute('d', Le[this.pathName]), _;
}),
(o.toMarkup = function () {
return this.alternate ? " " : " ";
}),
S
);
})(),
Rn = (function () {
function S(s) {
(this.attributes = void 0), (this.attributes = s || {});
}
var o = S.prototype;
return (
(o.toNode = function () {
var c = 'http://www.w3.org/2000/svg',
_ = document.createElementNS(c, 'line');
for (var h in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, h) && _.setAttribute(h, this.attributes[h]);
return _;
}),
(o.toMarkup = function () {
var c = ' '), c;
}),
S
);
})();
function ai(S) {
if (S instanceof Yt) return S;
throw new Error('Expected symbolNode but got ' + String(S) + '.');
}
function oi(S) {
if (S instanceof dn) return S;
throw new Error('Expected span but got ' + String(S) + '.');
}
var si = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 },
Yi = { 'accent-token': 1, mathord: 1, 'op-token': 1, spacing: 1, textord: 1 },
zt = { math: {}, text: {} },
ut = zt;
function g(S, o, s, c, _, h) {
(zt[S][_] = { font: o, group: s, replace: c }), h && c && (zt[S][c] = zt[S][_]);
}
var T = 'math',
oe = 'text',
y = 'main',
L = 'ams',
_t = 'accent-token',
Ce = 'bin',
Lt = 'close',
kr = 'inner',
Fe = 'mathord',
Ee = 'op-token',
U = 'open',
de = 'punct',
x = 'rel',
tt = 'spacing',
B = 'textord';
g(T, y, x, '≡', '\\equiv', !0),
g(T, y, x, '≺', '\\prec', !0),
g(T, y, x, '≻', '\\succ', !0),
g(T, y, x, '∼', '\\sim', !0),
g(T, y, x, '⊥', '\\perp'),
g(T, y, x, '⪯', '\\preceq', !0),
g(T, y, x, '⪰', '\\succeq', !0),
g(T, y, x, '≃', '\\simeq', !0),
g(T, y, x, '∣', '\\mid', !0),
g(T, y, x, '≪', '\\ll', !0),
g(T, y, x, '≫', '\\gg', !0),
g(T, y, x, '≍', '\\asymp', !0),
g(T, y, x, '∥', '\\parallel'),
g(T, y, x, '⋈', '\\bowtie', !0),
g(T, y, x, '⌣', '\\smile', !0),
g(T, y, x, '⊑', '\\sqsubseteq', !0),
g(T, y, x, '⊒', '\\sqsupseteq', !0),
g(T, y, x, '≐', '\\doteq', !0),
g(T, y, x, '⌢', '\\frown', !0),
g(T, y, x, '∋', '\\ni', !0),
g(T, y, x, '∝', '\\propto', !0),
g(T, y, x, '⊢', '\\vdash', !0),
g(T, y, x, '⊣', '\\dashv', !0),
g(T, y, x, '∋', '\\owns'),
g(T, y, de, '.', '\\ldotp'),
g(T, y, de, '⋅', '\\cdotp'),
g(T, y, B, '#', '\\#'),
g(oe, y, B, '#', '\\#'),
g(T, y, B, '&', '\\&'),
g(oe, y, B, '&', '\\&'),
g(T, y, B, 'ℵ', '\\aleph', !0),
g(T, y, B, '∀', '\\forall', !0),
g(T, y, B, 'ℏ', '\\hbar', !0),
g(T, y, B, '∃', '\\exists', !0),
g(T, y, B, '∇', '\\nabla', !0),
g(T, y, B, '♭', '\\flat', !0),
g(T, y, B, 'ℓ', '\\ell', !0),
g(T, y, B, '♮', '\\natural', !0),
g(T, y, B, '♣', '\\clubsuit', !0),
g(T, y, B, '℘', '\\wp', !0),
g(T, y, B, '♯', '\\sharp', !0),
g(T, y, B, '♢', '\\diamondsuit', !0),
g(T, y, B, 'ℜ', '\\Re', !0),
g(T, y, B, '♡', '\\heartsuit', !0),
g(T, y, B, 'ℑ', '\\Im', !0),
g(T, y, B, '♠', '\\spadesuit', !0),
g(T, y, B, '§', '\\S', !0),
g(oe, y, B, '§', '\\S'),
g(T, y, B, '¶', '\\P', !0),
g(oe, y, B, '¶', '\\P'),
g(T, y, B, '†', '\\dag'),
g(oe, y, B, '†', '\\dag'),
g(oe, y, B, '†', '\\textdagger'),
g(T, y, B, '‡', '\\ddag'),
g(oe, y, B, '‡', '\\ddag'),
g(oe, y, B, '‡', '\\textdaggerdbl'),
g(T, y, Lt, '⎱', '\\rmoustache', !0),
g(T, y, U, '⎰', '\\lmoustache', !0),
g(T, y, Lt, '⟯', '\\rgroup', !0),
g(T, y, U, '⟮', '\\lgroup', !0),
g(T, y, Ce, '∓', '\\mp', !0),
g(T, y, Ce, '⊖', '\\ominus', !0),
g(T, y, Ce, '⊎', '\\uplus', !0),
g(T, y, Ce, '⊓', '\\sqcap', !0),
g(T, y, Ce, '∗', '\\ast'),
g(T, y, Ce, '⊔', '\\sqcup', !0),
g(T, y, Ce, '◯', '\\bigcirc', !0),
g(T, y, Ce, '∙', '\\bullet', !0),
g(T, y, Ce, '‡', '\\ddagger'),
g(T, y, Ce, '≀', '\\wr', !0),
g(T, y, Ce, '⨿', '\\amalg'),
g(T, y, Ce, '&', '\\And'),
g(T, y, x, '⟵', '\\longleftarrow', !0),
g(T, y, x, '⇐', '\\Leftarrow', !0),
g(T, y, x, '⟸', '\\Longleftarrow', !0),
g(T, y, x, '⟶', '\\longrightarrow', !0),
g(T, y, x, '⇒', '\\Rightarrow', !0),
g(T, y, x, '⟹', '\\Longrightarrow', !0),
g(T, y, x, '↔', '\\leftrightarrow', !0),
g(T, y, x, '⟷', '\\longleftrightarrow', !0),
g(T, y, x, '⇔', '\\Leftrightarrow', !0),
g(T, y, x, '⟺', '\\Longleftrightarrow', !0),
g(T, y, x, '↦', '\\mapsto', !0),
g(T, y, x, '⟼', '\\longmapsto', !0),
g(T, y, x, '↗', '\\nearrow', !0),
g(T, y, x, '↩', '\\hookleftarrow', !0),
g(T, y, x, '↪', '\\hookrightarrow', !0),
g(T, y, x, '↘', '\\searrow', !0),
g(T, y, x, '↼', '\\leftharpoonup', !0),
g(T, y, x, '⇀', '\\rightharpoonup', !0),
g(T, y, x, '↙', '\\swarrow', !0),
g(T, y, x, '↽', '\\leftharpoondown', !0),
g(T, y, x, '⇁', '\\rightharpoondown', !0),
g(T, y, x, '↖', '\\nwarrow', !0),
g(T, y, x, '⇌', '\\rightleftharpoons', !0),
g(T, L, x, '≮', '\\nless', !0),
g(T, L, x, '', '\\@nleqslant'),
g(T, L, x, '', '\\@nleqq'),
g(T, L, x, '⪇', '\\lneq', !0),
g(T, L, x, '≨', '\\lneqq', !0),
g(T, L, x, '', '\\@lvertneqq'),
g(T, L, x, '⋦', '\\lnsim', !0),
g(T, L, x, '⪉', '\\lnapprox', !0),
g(T, L, x, '⊀', '\\nprec', !0),
g(T, L, x, '⋠', '\\npreceq', !0),
g(T, L, x, '⋨', '\\precnsim', !0),
g(T, L, x, '⪹', '\\precnapprox', !0),
g(T, L, x, '≁', '\\nsim', !0),
g(T, L, x, '', '\\@nshortmid'),
g(T, L, x, '∤', '\\nmid', !0),
g(T, L, x, '⊬', '\\nvdash', !0),
g(T, L, x, '⊭', '\\nvDash', !0),
g(T, L, x, '⋪', '\\ntriangleleft'),
g(T, L, x, '⋬', '\\ntrianglelefteq', !0),
g(T, L, x, '⊊', '\\subsetneq', !0),
g(T, L, x, '', '\\@varsubsetneq'),
g(T, L, x, '⫋', '\\subsetneqq', !0),
g(T, L, x, '', '\\@varsubsetneqq'),
g(T, L, x, '≯', '\\ngtr', !0),
g(T, L, x, '', '\\@ngeqslant'),
g(T, L, x, '', '\\@ngeqq'),
g(T, L, x, '⪈', '\\gneq', !0),
g(T, L, x, '≩', '\\gneqq', !0),
g(T, L, x, '', '\\@gvertneqq'),
g(T, L, x, '⋧', '\\gnsim', !0),
g(T, L, x, '⪊', '\\gnapprox', !0),
g(T, L, x, '⊁', '\\nsucc', !0),
g(T, L, x, '⋡', '\\nsucceq', !0),
g(T, L, x, '⋩', '\\succnsim', !0),
g(T, L, x, '⪺', '\\succnapprox', !0),
g(T, L, x, '≆', '\\ncong', !0),
g(T, L, x, '', '\\@nshortparallel'),
g(T, L, x, '∦', '\\nparallel', !0),
g(T, L, x, '⊯', '\\nVDash', !0),
g(T, L, x, '⋫', '\\ntriangleright'),
g(T, L, x, '⋭', '\\ntrianglerighteq', !0),
g(T, L, x, '', '\\@nsupseteqq'),
g(T, L, x, '⊋', '\\supsetneq', !0),
g(T, L, x, '', '\\@varsupsetneq'),
g(T, L, x, '⫌', '\\supsetneqq', !0),
g(T, L, x, '', '\\@varsupsetneqq'),
g(T, L, x, '⊮', '\\nVdash', !0),
g(T, L, x, '⪵', '\\precneqq', !0),
g(T, L, x, '⪶', '\\succneqq', !0),
g(T, L, x, '', '\\@nsubseteqq'),
g(T, L, Ce, '⊴', '\\unlhd'),
g(T, L, Ce, '⊵', '\\unrhd'),
g(T, L, x, '↚', '\\nleftarrow', !0),
g(T, L, x, '↛', '\\nrightarrow', !0),
g(T, L, x, '⇍', '\\nLeftarrow', !0),
g(T, L, x, '⇏', '\\nRightarrow', !0),
g(T, L, x, '↮', '\\nleftrightarrow', !0),
g(T, L, x, '⇎', '\\nLeftrightarrow', !0),
g(T, L, x, '△', '\\vartriangle'),
g(T, L, B, 'ℏ', '\\hslash'),
g(T, L, B, '▽', '\\triangledown'),
g(T, L, B, '◊', '\\lozenge'),
g(T, L, B, 'Ⓢ', '\\circledS'),
g(T, L, B, '®', '\\circledR'),
g(oe, L, B, '®', '\\circledR'),
g(T, L, B, '∡', '\\measuredangle', !0),
g(T, L, B, '∄', '\\nexists'),
g(T, L, B, '℧', '\\mho'),
g(T, L, B, 'Ⅎ', '\\Finv', !0),
g(T, L, B, '⅁', '\\Game', !0),
g(T, L, B, '‵', '\\backprime'),
g(T, L, B, '▲', '\\blacktriangle'),
g(T, L, B, '▼', '\\blacktriangledown'),
g(T, L, B, '■', '\\blacksquare'),
g(T, L, B, '⧫', '\\blacklozenge'),
g(T, L, B, '★', '\\bigstar'),
g(T, L, B, '∢', '\\sphericalangle', !0),
g(T, L, B, '∁', '\\complement', !0),
g(T, L, B, 'ð', '\\eth', !0),
g(oe, y, B, 'ð', 'ð'),
g(T, L, B, '╱', '\\diagup'),
g(T, L, B, '╲', '\\diagdown'),
g(T, L, B, '□', '\\square'),
g(T, L, B, '□', '\\Box'),
g(T, L, B, '◊', '\\Diamond'),
g(T, L, B, '¥', '\\yen', !0),
g(oe, L, B, '¥', '\\yen', !0),
g(T, L, B, '✓', '\\checkmark', !0),
g(oe, L, B, '✓', '\\checkmark'),
g(T, L, B, 'ℶ', '\\beth', !0),
g(T, L, B, 'ℸ', '\\daleth', !0),
g(T, L, B, 'ℷ', '\\gimel', !0),
g(T, L, B, 'ϝ', '\\digamma', !0),
g(T, L, B, 'ϰ', '\\varkappa'),
g(T, L, U, '┌', '\\@ulcorner', !0),
g(T, L, Lt, '┐', '\\@urcorner', !0),
g(T, L, U, '└', '\\@llcorner', !0),
g(T, L, Lt, '┘', '\\@lrcorner', !0),
g(T, L, x, '≦', '\\leqq', !0),
g(T, L, x, '⩽', '\\leqslant', !0),
g(T, L, x, '⪕', '\\eqslantless', !0),
g(T, L, x, '≲', '\\lesssim', !0),
g(T, L, x, '⪅', '\\lessapprox', !0),
g(T, L, x, '≊', '\\approxeq', !0),
g(T, L, Ce, '⋖', '\\lessdot'),
g(T, L, x, '⋘', '\\lll', !0),
g(T, L, x, '≶', '\\lessgtr', !0),
g(T, L, x, '⋚', '\\lesseqgtr', !0),
g(T, L, x, '⪋', '\\lesseqqgtr', !0),
g(T, L, x, '≑', '\\doteqdot'),
g(T, L, x, '≓', '\\risingdotseq', !0),
g(T, L, x, '≒', '\\fallingdotseq', !0),
g(T, L, x, '∽', '\\backsim', !0),
g(T, L, x, '⋍', '\\backsimeq', !0),
g(T, L, x, '⫅', '\\subseteqq', !0),
g(T, L, x, '⋐', '\\Subset', !0),
g(T, L, x, '⊏', '\\sqsubset', !0),
g(T, L, x, '≼', '\\preccurlyeq', !0),
g(T, L, x, '⋞', '\\curlyeqprec', !0),
g(T, L, x, '≾', '\\precsim', !0),
g(T, L, x, '⪷', '\\precapprox', !0),
g(T, L, x, '⊲', '\\vartriangleleft'),
g(T, L, x, '⊴', '\\trianglelefteq'),
g(T, L, x, '⊨', '\\vDash', !0),
g(T, L, x, '⊪', '\\Vvdash', !0),
g(T, L, x, '⌣', '\\smallsmile'),
g(T, L, x, '⌢', '\\smallfrown'),
g(T, L, x, '≏', '\\bumpeq', !0),
g(T, L, x, '≎', '\\Bumpeq', !0),
g(T, L, x, '≧', '\\geqq', !0),
g(T, L, x, '⩾', '\\geqslant', !0),
g(T, L, x, '⪖', '\\eqslantgtr', !0),
g(T, L, x, '≳', '\\gtrsim', !0),
g(T, L, x, '⪆', '\\gtrapprox', !0),
g(T, L, Ce, '⋗', '\\gtrdot'),
g(T, L, x, '⋙', '\\ggg', !0),
g(T, L, x, '≷', '\\gtrless', !0),
g(T, L, x, '⋛', '\\gtreqless', !0),
g(T, L, x, '⪌', '\\gtreqqless', !0),
g(T, L, x, '≖', '\\eqcirc', !0),
g(T, L, x, '≗', '\\circeq', !0),
g(T, L, x, '≜', '\\triangleq', !0),
g(T, L, x, '∼', '\\thicksim'),
g(T, L, x, '≈', '\\thickapprox'),
g(T, L, x, '⫆', '\\supseteqq', !0),
g(T, L, x, '⋑', '\\Supset', !0),
g(T, L, x, '⊐', '\\sqsupset', !0),
g(T, L, x, '≽', '\\succcurlyeq', !0),
g(T, L, x, '⋟', '\\curlyeqsucc', !0),
g(T, L, x, '≿', '\\succsim', !0),
g(T, L, x, '⪸', '\\succapprox', !0),
g(T, L, x, '⊳', '\\vartriangleright'),
g(T, L, x, '⊵', '\\trianglerighteq'),
g(T, L, x, '⊩', '\\Vdash', !0),
g(T, L, x, '∣', '\\shortmid'),
g(T, L, x, '∥', '\\shortparallel'),
g(T, L, x, '≬', '\\between', !0),
g(T, L, x, '⋔', '\\pitchfork', !0),
g(T, L, x, '∝', '\\varpropto'),
g(T, L, x, '◀', '\\blacktriangleleft'),
g(T, L, x, '∴', '\\therefore', !0),
g(T, L, x, '∍', '\\backepsilon'),
g(T, L, x, '▶', '\\blacktriangleright'),
g(T, L, x, '∵', '\\because', !0),
g(T, L, x, '⋘', '\\llless'),
g(T, L, x, '⋙', '\\gggtr'),
g(T, L, Ce, '⊲', '\\lhd'),
g(T, L, Ce, '⊳', '\\rhd'),
g(T, L, x, '≂', '\\eqsim', !0),
g(T, y, x, '⋈', '\\Join'),
g(T, L, x, '≑', '\\Doteq', !0),
g(T, L, Ce, '∔', '\\dotplus', !0),
g(T, L, Ce, '∖', '\\smallsetminus'),
g(T, L, Ce, '⋒', '\\Cap', !0),
g(T, L, Ce, '⋓', '\\Cup', !0),
g(T, L, Ce, '⩞', '\\doublebarwedge', !0),
g(T, L, Ce, '⊟', '\\boxminus', !0),
g(T, L, Ce, '⊞', '\\boxplus', !0),
g(T, L, Ce, '⋇', '\\divideontimes', !0),
g(T, L, Ce, '⋉', '\\ltimes', !0),
g(T, L, Ce, '⋊', '\\rtimes', !0),
g(T, L, Ce, '⋋', '\\leftthreetimes', !0),
g(T, L, Ce, '⋌', '\\rightthreetimes', !0),
g(T, L, Ce, '⋏', '\\curlywedge', !0),
g(T, L, Ce, '⋎', '\\curlyvee', !0),
g(T, L, Ce, '⊝', '\\circleddash', !0),
g(T, L, Ce, '⊛', '\\circledast', !0),
g(T, L, Ce, '⋅', '\\centerdot'),
g(T, L, Ce, '⊺', '\\intercal', !0),
g(T, L, Ce, '⋒', '\\doublecap'),
g(T, L, Ce, '⋓', '\\doublecup'),
g(T, L, Ce, '⊠', '\\boxtimes', !0),
g(T, L, x, '⇢', '\\dashrightarrow', !0),
g(T, L, x, '⇠', '\\dashleftarrow', !0),
g(T, L, x, '⇇', '\\leftleftarrows', !0),
g(T, L, x, '⇆', '\\leftrightarrows', !0),
g(T, L, x, '⇚', '\\Lleftarrow', !0),
g(T, L, x, '↞', '\\twoheadleftarrow', !0),
g(T, L, x, '↢', '\\leftarrowtail', !0),
g(T, L, x, '↫', '\\looparrowleft', !0),
g(T, L, x, '⇋', '\\leftrightharpoons', !0),
g(T, L, x, '↶', '\\curvearrowleft', !0),
g(T, L, x, '↺', '\\circlearrowleft', !0),
g(T, L, x, '↰', '\\Lsh', !0),
g(T, L, x, '⇈', '\\upuparrows', !0),
g(T, L, x, '↿', '\\upharpoonleft', !0),
g(T, L, x, '⇃', '\\downharpoonleft', !0),
g(T, y, x, '⊶', '\\origof', !0),
g(T, y, x, '⊷', '\\imageof', !0),
g(T, L, x, '⊸', '\\multimap', !0),
g(T, L, x, '↭', '\\leftrightsquigarrow', !0),
g(T, L, x, '⇉', '\\rightrightarrows', !0),
g(T, L, x, '⇄', '\\rightleftarrows', !0),
g(T, L, x, '↠', '\\twoheadrightarrow', !0),
g(T, L, x, '↣', '\\rightarrowtail', !0),
g(T, L, x, '↬', '\\looparrowright', !0),
g(T, L, x, '↷', '\\curvearrowright', !0),
g(T, L, x, '↻', '\\circlearrowright', !0),
g(T, L, x, '↱', '\\Rsh', !0),
g(T, L, x, '⇊', '\\downdownarrows', !0),
g(T, L, x, '↾', '\\upharpoonright', !0),
g(T, L, x, '⇂', '\\downharpoonright', !0),
g(T, L, x, '⇝', '\\rightsquigarrow', !0),
g(T, L, x, '⇝', '\\leadsto'),
g(T, L, x, '⇛', '\\Rrightarrow', !0),
g(T, L, x, '↾', '\\restriction'),
g(T, y, B, '‘', '`'),
g(T, y, B, '$', '\\$'),
g(oe, y, B, '$', '\\$'),
g(oe, y, B, '$', '\\textdollar'),
g(T, y, B, '%', '\\%'),
g(oe, y, B, '%', '\\%'),
g(T, y, B, '_', '\\_'),
g(oe, y, B, '_', '\\_'),
g(oe, y, B, '_', '\\textunderscore'),
g(T, y, B, '∠', '\\angle', !0),
g(T, y, B, '∞', '\\infty', !0),
g(T, y, B, '′', '\\prime'),
g(T, y, B, '△', '\\triangle'),
g(T, y, B, 'Γ', '\\Gamma', !0),
g(T, y, B, 'Δ', '\\Delta', !0),
g(T, y, B, 'Θ', '\\Theta', !0),
g(T, y, B, 'Λ', '\\Lambda', !0),
g(T, y, B, 'Ξ', '\\Xi', !0),
g(T, y, B, 'Π', '\\Pi', !0),
g(T, y, B, 'Σ', '\\Sigma', !0),
g(T, y, B, 'Υ', '\\Upsilon', !0),
g(T, y, B, 'Φ', '\\Phi', !0),
g(T, y, B, 'Ψ', '\\Psi', !0),
g(T, y, B, 'Ω', '\\Omega', !0),
g(T, y, B, 'A', 'Α'),
g(T, y, B, 'B', 'Β'),
g(T, y, B, 'E', 'Ε'),
g(T, y, B, 'Z', 'Ζ'),
g(T, y, B, 'H', 'Η'),
g(T, y, B, 'I', 'Ι'),
g(T, y, B, 'K', 'Κ'),
g(T, y, B, 'M', 'Μ'),
g(T, y, B, 'N', 'Ν'),
g(T, y, B, 'O', 'Ο'),
g(T, y, B, 'P', 'Ρ'),
g(T, y, B, 'T', 'Τ'),
g(T, y, B, 'X', 'Χ'),
g(T, y, B, '¬', '\\neg', !0),
g(T, y, B, '¬', '\\lnot'),
g(T, y, B, '⊤', '\\top'),
g(T, y, B, '⊥', '\\bot'),
g(T, y, B, '∅', '\\emptyset'),
g(T, L, B, '∅', '\\varnothing'),
g(T, y, Fe, 'α', '\\alpha', !0),
g(T, y, Fe, 'β', '\\beta', !0),
g(T, y, Fe, 'γ', '\\gamma', !0),
g(T, y, Fe, 'δ', '\\delta', !0),
g(T, y, Fe, 'ϵ', '\\epsilon', !0),
g(T, y, Fe, 'ζ', '\\zeta', !0),
g(T, y, Fe, 'η', '\\eta', !0),
g(T, y, Fe, 'θ', '\\theta', !0),
g(T, y, Fe, 'ι', '\\iota', !0),
g(T, y, Fe, 'κ', '\\kappa', !0),
g(T, y, Fe, 'λ', '\\lambda', !0),
g(T, y, Fe, 'μ', '\\mu', !0),
g(T, y, Fe, 'ν', '\\nu', !0),
g(T, y, Fe, 'ξ', '\\xi', !0),
g(T, y, Fe, 'ο', '\\omicron', !0),
g(T, y, Fe, 'π', '\\pi', !0),
g(T, y, Fe, 'ρ', '\\rho', !0),
g(T, y, Fe, 'σ', '\\sigma', !0),
g(T, y, Fe, 'τ', '\\tau', !0),
g(T, y, Fe, 'υ', '\\upsilon', !0),
g(T, y, Fe, 'ϕ', '\\phi', !0),
g(T, y, Fe, 'χ', '\\chi', !0),
g(T, y, Fe, 'ψ', '\\psi', !0),
g(T, y, Fe, 'ω', '\\omega', !0),
g(T, y, Fe, 'ε', '\\varepsilon', !0),
g(T, y, Fe, 'ϑ', '\\vartheta', !0),
g(T, y, Fe, 'ϖ', '\\varpi', !0),
g(T, y, Fe, 'ϱ', '\\varrho', !0),
g(T, y, Fe, 'ς', '\\varsigma', !0),
g(T, y, Fe, 'φ', '\\varphi', !0),
g(T, y, Ce, '∗', '*', !0),
g(T, y, Ce, '+', '+'),
g(T, y, Ce, '−', '-', !0),
g(T, y, Ce, '⋅', '\\cdot', !0),
g(T, y, Ce, '∘', '\\circ', !0),
g(T, y, Ce, '÷', '\\div', !0),
g(T, y, Ce, '±', '\\pm', !0),
g(T, y, Ce, '×', '\\times', !0),
g(T, y, Ce, '∩', '\\cap', !0),
g(T, y, Ce, '∪', '\\cup', !0),
g(T, y, Ce, '∖', '\\setminus', !0),
g(T, y, Ce, '∧', '\\land'),
g(T, y, Ce, '∨', '\\lor'),
g(T, y, Ce, '∧', '\\wedge', !0),
g(T, y, Ce, '∨', '\\vee', !0),
g(T, y, B, '√', '\\surd'),
g(T, y, U, '⟨', '\\langle', !0),
g(T, y, U, '∣', '\\lvert'),
g(T, y, U, '∥', '\\lVert'),
g(T, y, Lt, '?', '?'),
g(T, y, Lt, '!', '!'),
g(T, y, Lt, '⟩', '\\rangle', !0),
g(T, y, Lt, '∣', '\\rvert'),
g(T, y, Lt, '∥', '\\rVert'),
g(T, y, x, '=', '='),
g(T, y, x, ':', ':'),
g(T, y, x, '≈', '\\approx', !0),
g(T, y, x, '≅', '\\cong', !0),
g(T, y, x, '≥', '\\ge'),
g(T, y, x, '≥', '\\geq', !0),
g(T, y, x, '←', '\\gets'),
g(T, y, x, '>', '\\gt', !0),
g(T, y, x, '∈', '\\in', !0),
g(T, y, x, '', '\\@not'),
g(T, y, x, '⊂', '\\subset', !0),
g(T, y, x, '⊃', '\\supset', !0),
g(T, y, x, '⊆', '\\subseteq', !0),
g(T, y, x, '⊇', '\\supseteq', !0),
g(T, L, x, '⊈', '\\nsubseteq', !0),
g(T, L, x, '⊉', '\\nsupseteq', !0),
g(T, y, x, '⊨', '\\models'),
g(T, y, x, '←', '\\leftarrow', !0),
g(T, y, x, '≤', '\\le'),
g(T, y, x, '≤', '\\leq', !0),
g(T, y, x, '<', '\\lt', !0),
g(T, y, x, '→', '\\rightarrow', !0),
g(T, y, x, '→', '\\to'),
g(T, L, x, '≱', '\\ngeq', !0),
g(T, L, x, '≰', '\\nleq', !0),
g(T, y, tt, ' ', '\\ '),
g(T, y, tt, ' ', '\\space'),
g(T, y, tt, ' ', '\\nobreakspace'),
g(oe, y, tt, ' ', '\\ '),
g(oe, y, tt, ' ', ' '),
g(oe, y, tt, ' ', '\\space'),
g(oe, y, tt, ' ', '\\nobreakspace'),
g(T, y, tt, null, '\\nobreak'),
g(T, y, tt, null, '\\allowbreak'),
g(T, y, de, ',', ','),
g(T, y, de, ';', ';'),
g(T, L, Ce, '⊼', '\\barwedge', !0),
g(T, L, Ce, '⊻', '\\veebar', !0),
g(T, y, Ce, '⊙', '\\odot', !0),
g(T, y, Ce, '⊕', '\\oplus', !0),
g(T, y, Ce, '⊗', '\\otimes', !0),
g(T, y, B, '∂', '\\partial', !0),
g(T, y, Ce, '⊘', '\\oslash', !0),
g(T, L, Ce, '⊚', '\\circledcirc', !0),
g(T, L, Ce, '⊡', '\\boxdot', !0),
g(T, y, Ce, '△', '\\bigtriangleup'),
g(T, y, Ce, '▽', '\\bigtriangledown'),
g(T, y, Ce, '†', '\\dagger'),
g(T, y, Ce, '⋄', '\\diamond'),
g(T, y, Ce, '⋆', '\\star'),
g(T, y, Ce, '◃', '\\triangleleft'),
g(T, y, Ce, '▹', '\\triangleright'),
g(T, y, U, '{', '\\{'),
g(oe, y, B, '{', '\\{'),
g(oe, y, B, '{', '\\textbraceleft'),
g(T, y, Lt, '}', '\\}'),
g(oe, y, B, '}', '\\}'),
g(oe, y, B, '}', '\\textbraceright'),
g(T, y, U, '{', '\\lbrace'),
g(T, y, Lt, '}', '\\rbrace'),
g(T, y, U, '[', '\\lbrack', !0),
g(oe, y, B, '[', '\\lbrack', !0),
g(T, y, Lt, ']', '\\rbrack', !0),
g(oe, y, B, ']', '\\rbrack', !0),
g(T, y, U, '(', '\\lparen', !0),
g(T, y, Lt, ')', '\\rparen', !0),
g(oe, y, B, '<', '\\textless', !0),
g(oe, y, B, '>', '\\textgreater', !0),
g(T, y, U, '⌊', '\\lfloor', !0),
g(T, y, Lt, '⌋', '\\rfloor', !0),
g(T, y, U, '⌈', '\\lceil', !0),
g(T, y, Lt, '⌉', '\\rceil', !0),
g(T, y, B, '\\', '\\backslash'),
g(T, y, B, '∣', '|'),
g(T, y, B, '∣', '\\vert'),
g(oe, y, B, '|', '\\textbar', !0),
g(T, y, B, '∥', '\\|'),
g(T, y, B, '∥', '\\Vert'),
g(oe, y, B, '∥', '\\textbardbl'),
g(oe, y, B, '~', '\\textasciitilde'),
g(oe, y, B, '\\', '\\textbackslash'),
g(oe, y, B, '^', '\\textasciicircum'),
g(T, y, x, '↑', '\\uparrow', !0),
g(T, y, x, '⇑', '\\Uparrow', !0),
g(T, y, x, '↓', '\\downarrow', !0),
g(T, y, x, '⇓', '\\Downarrow', !0),
g(T, y, x, '↕', '\\updownarrow', !0),
g(T, y, x, '⇕', '\\Updownarrow', !0),
g(T, y, Ee, '∐', '\\coprod'),
g(T, y, Ee, '⋁', '\\bigvee'),
g(T, y, Ee, '⋀', '\\bigwedge'),
g(T, y, Ee, '⨄', '\\biguplus'),
g(T, y, Ee, '⋂', '\\bigcap'),
g(T, y, Ee, '⋃', '\\bigcup'),
g(T, y, Ee, '∫', '\\int'),
g(T, y, Ee, '∫', '\\intop'),
g(T, y, Ee, '∬', '\\iint'),
g(T, y, Ee, '∭', '\\iiint'),
g(T, y, Ee, '∏', '\\prod'),
g(T, y, Ee, '∑', '\\sum'),
g(T, y, Ee, '⨂', '\\bigotimes'),
g(T, y, Ee, '⨁', '\\bigoplus'),
g(T, y, Ee, '⨀', '\\bigodot'),
g(T, y, Ee, '∮', '\\oint'),
g(T, y, Ee, '∯', '\\oiint'),
g(T, y, Ee, '∰', '\\oiiint'),
g(T, y, Ee, '⨆', '\\bigsqcup'),
g(T, y, Ee, '∫', '\\smallint'),
g(oe, y, kr, '…', '\\textellipsis'),
g(T, y, kr, '…', '\\mathellipsis'),
g(oe, y, kr, '…', '\\ldots', !0),
g(T, y, kr, '…', '\\ldots', !0),
g(T, y, kr, '⋯', '\\@cdots', !0),
g(T, y, kr, '⋱', '\\ddots', !0),
g(T, y, B, '⋮', '\\varvdots'),
g(T, y, _t, 'ˊ', '\\acute'),
g(T, y, _t, 'ˋ', '\\grave'),
g(T, y, _t, '¨', '\\ddot'),
g(T, y, _t, '~', '\\tilde'),
g(T, y, _t, 'ˉ', '\\bar'),
g(T, y, _t, '˘', '\\breve'),
g(T, y, _t, 'ˇ', '\\check'),
g(T, y, _t, '^', '\\hat'),
g(T, y, _t, '⃗', '\\vec'),
g(T, y, _t, '˙', '\\dot'),
g(T, y, _t, '˚', '\\mathring'),
g(T, y, Fe, '', '\\@imath'),
g(T, y, Fe, '', '\\@jmath'),
g(T, y, B, 'ı', 'ı'),
g(T, y, B, 'ȷ', 'ȷ'),
g(oe, y, B, 'ı', '\\i', !0),
g(oe, y, B, 'ȷ', '\\j', !0),
g(oe, y, B, 'ß', '\\ss', !0),
g(oe, y, B, 'æ', '\\ae', !0),
g(oe, y, B, 'œ', '\\oe', !0),
g(oe, y, B, 'ø', '\\o', !0),
g(oe, y, B, 'Æ', '\\AE', !0),
g(oe, y, B, 'Œ', '\\OE', !0),
g(oe, y, B, 'Ø', '\\O', !0),
g(oe, y, _t, 'ˊ', "\\'"),
g(oe, y, _t, 'ˋ', '\\`'),
g(oe, y, _t, 'ˆ', '\\^'),
g(oe, y, _t, '˜', '\\~'),
g(oe, y, _t, 'ˉ', '\\='),
g(oe, y, _t, '˘', '\\u'),
g(oe, y, _t, '˙', '\\.'),
g(oe, y, _t, '¸', '\\c'),
g(oe, y, _t, '˚', '\\r'),
g(oe, y, _t, 'ˇ', '\\v'),
g(oe, y, _t, '¨', '\\"'),
g(oe, y, _t, '˝', '\\H'),
g(oe, y, _t, '◯', '\\textcircled');
var Ot = { '--': !0, '---': !0, '``': !0, "''": !0 };
g(oe, y, B, '–', '--', !0),
g(oe, y, B, '–', '\\textendash'),
g(oe, y, B, '—', '---', !0),
g(oe, y, B, '—', '\\textemdash'),
g(oe, y, B, '‘', '`', !0),
g(oe, y, B, '‘', '\\textquoteleft'),
g(oe, y, B, '’', "'", !0),
g(oe, y, B, '’', '\\textquoteright'),
g(oe, y, B, '“', '``', !0),
g(oe, y, B, '“', '\\textquotedblleft'),
g(oe, y, B, '”', "''", !0),
g(oe, y, B, '”', '\\textquotedblright'),
g(T, y, B, '°', '\\degree', !0),
g(oe, y, B, '°', '\\degree'),
g(oe, y, B, '°', '\\textdegree', !0),
g(T, y, B, '£', '\\pounds'),
g(T, y, B, '£', '\\mathsterling', !0),
g(oe, y, B, '£', '\\pounds'),
g(oe, y, B, '£', '\\textsterling', !0),
g(T, L, B, '✠', '\\maltese'),
g(oe, L, B, '✠', '\\maltese');
for (var Ut = '0123456789/@."', Wt = 0; Wt < Ut.length; Wt++) {
var Wr = Ut.charAt(Wt);
g(T, y, B, Wr, Wr);
}
for (var kt = '0123456789!@*()-=+";:?/.,', An = 0; An < kt.length; An++) {
var qn = kt.charAt(An);
g(oe, y, B, qn, qn);
}
for (var li = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', zi = 0; zi < li.length; zi++) {
var ci = li.charAt(zi);
g(T, y, Fe, ci, ci), g(oe, y, B, ci, ci);
}
g(T, L, B, 'C', 'ℂ'),
g(oe, L, B, 'C', 'ℂ'),
g(T, L, B, 'H', 'ℍ'),
g(oe, L, B, 'H', 'ℍ'),
g(T, L, B, 'N', 'ℕ'),
g(oe, L, B, 'N', 'ℕ'),
g(T, L, B, 'P', 'ℙ'),
g(oe, L, B, 'P', 'ℙ'),
g(T, L, B, 'Q', 'ℚ'),
g(oe, L, B, 'Q', 'ℚ'),
g(T, L, B, 'R', 'ℝ'),
g(oe, L, B, 'R', 'ℝ'),
g(T, L, B, 'Z', 'ℤ'),
g(oe, L, B, 'Z', 'ℤ'),
g(T, y, Fe, 'h', 'ℎ'),
g(oe, y, Fe, 'h', 'ℎ');
for (var He = '', Kt = 0; Kt < li.length; Kt++) {
var It = li.charAt(Kt);
(He = String.fromCharCode(55349, 56320 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56372 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56424 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56580 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56736 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56788 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56840 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56944 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
Kt < 26 &&
((He = String.fromCharCode(55349, 56632 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He),
(He = String.fromCharCode(55349, 56476 + Kt)),
g(T, y, Fe, It, He),
g(oe, y, B, It, He));
}
(He = String.fromCharCode(55349, 56668)), g(T, y, Fe, 'k', He), g(oe, y, B, 'k', He);
for (var _n = 0; _n < 10; _n++) {
var Kr = _n.toString();
(He = String.fromCharCode(55349, 57294 + _n)),
g(T, y, Fe, Kr, He),
g(oe, y, B, Kr, He),
(He = String.fromCharCode(55349, 57314 + _n)),
g(T, y, Fe, Kr, He),
g(oe, y, B, Kr, He),
(He = String.fromCharCode(55349, 57324 + _n)),
g(T, y, Fe, Kr, He),
g(oe, y, B, Kr, He),
(He = String.fromCharCode(55349, 57334 + _n)),
g(T, y, Fe, Kr, He),
g(oe, y, B, Kr, He);
}
for (var Hi = 'ÐÞþ', $i = 0; $i < Hi.length; $i++) {
var ui = Hi.charAt($i);
g(T, y, Fe, ui, ui), g(oe, y, B, ui, ui);
}
var di = [
['mathbf', 'textbf', 'Main-Bold'],
['mathbf', 'textbf', 'Main-Bold'],
['mathnormal', 'textit', 'Math-Italic'],
['mathnormal', 'textit', 'Math-Italic'],
['boldsymbol', 'boldsymbol', 'Main-BoldItalic'],
['boldsymbol', 'boldsymbol', 'Main-BoldItalic'],
['mathscr', 'textscr', 'Script-Regular'],
['', '', ''],
['', '', ''],
['', '', ''],
['mathfrak', 'textfrak', 'Fraktur-Regular'],
['mathfrak', 'textfrak', 'Fraktur-Regular'],
['mathbb', 'textbb', 'AMS-Regular'],
['mathbb', 'textbb', 'AMS-Regular'],
['', '', ''],
['', '', ''],
['mathsf', 'textsf', 'SansSerif-Regular'],
['mathsf', 'textsf', 'SansSerif-Regular'],
['mathboldsf', 'textboldsf', 'SansSerif-Bold'],
['mathboldsf', 'textboldsf', 'SansSerif-Bold'],
['mathitsf', 'textitsf', 'SansSerif-Italic'],
['mathitsf', 'textitsf', 'SansSerif-Italic'],
['', '', ''],
['', '', ''],
['mathtt', 'texttt', 'Typewriter-Regular'],
['mathtt', 'texttt', 'Typewriter-Regular'],
],
Ba = [
['mathbf', 'textbf', 'Main-Bold'],
['', '', ''],
['mathsf', 'textsf', 'SansSerif-Regular'],
['mathboldsf', 'textboldsf', 'SansSerif-Bold'],
['mathtt', 'texttt', 'Typewriter-Regular'],
],
Ds = function (o, s) {
var c = o.charCodeAt(0),
_ = o.charCodeAt(1),
h = (c - 55296) * 1024 + (_ - 56320) + 65536,
b = s === 'math' ? 0 : 1;
if (119808 <= h && h < 120484) {
var C = Math.floor((h - 119808) / 26);
return [di[C][2], di[C][b]];
} else if (120782 <= h && h <= 120831) {
var A = Math.floor((h - 120782) / 10);
return [Ba[A][2], Ba[A][b]];
} else {
if (h === 120485 || h === 120486) return [di[0][2], di[0][b]];
if (120486 < h && h < 120782) return ['', ''];
throw new a('Unsupported character: ' + o);
}
},
_i = function (o, s, c) {
return ut[c][o] && ut[c][o].replace && (o = ut[c][o].replace), { value: o, metrics: Ft(o, s, c) };
},
pr = function (o, s, c, _, h) {
var b = _i(o, s, c),
C = b.metrics;
o = b.value;
var A;
if (C) {
var I = C.italic;
(c === 'text' || (_ && _.font === 'mathit')) && (I = 0), (A = new Yt(o, C.height, C.depth, I, C.skew, C.width, h));
} else
typeof console < 'u' && console.warn('No character metrics ' + ("for '" + o + "' in style '" + s + "' and mode '" + c + "'")),
(A = new Yt(o, 0, 0, 0, 0, 0, h));
if (_) {
(A.maxFontSize = _.sizeMultiplier), _.style.isTight() && A.classes.push('mtight');
var k = _.getColor();
k && (A.style.color = k);
}
return A;
},
ws = function (o, s, c, _) {
return (
_ === void 0 && (_ = []),
c.font === 'boldsymbol' && _i(o, 'Main-Bold', s).metrics
? pr(o, 'Main-Bold', s, c, _.concat(['mathbf']))
: o === '\\' || ut[s][o].font === 'main'
? pr(o, 'Main-Regular', s, c, _)
: pr(o, 'AMS-Regular', s, c, _.concat(['amsrm']))
);
},
Ms = function (o, s, c, _, h) {
return h !== 'textord' && _i(o, 'Math-BoldItalic', s).metrics
? { fontName: 'Math-BoldItalic', fontClass: 'boldsymbol' }
: { fontName: 'Main-Bold', fontClass: 'mathbf' };
},
Ls = function (o, s, c) {
var _ = o.mode,
h = o.text,
b = ['mord'],
C = _ === 'math' || (_ === 'text' && s.font),
A = C ? s.font : s.fontFamily;
if (h.charCodeAt(0) === 55349) {
var I = Ds(h, _),
k = I[0],
W = I[1];
return pr(h, k, _, s, b.concat(W));
} else if (A) {
var ee, J;
if (A === 'boldsymbol') {
var ie = Ms(h, _, s, b, c);
(ee = ie.fontName), (J = [ie.fontClass]);
} else C ? ((ee = Ki[A].fontName), (J = [A])) : ((ee = Nn(A, s.fontWeight, s.fontShape)), (J = [A, s.fontWeight, s.fontShape]));
if (_i(h, ee, _).metrics) return pr(h, ee, _, s, b.concat(J));
if (Ot.hasOwnProperty(h) && ee.slice(0, 10) === 'Typewriter') {
for (var pe = [], Te = 0; Te < h.length; Te++) pe.push(pr(h[Te], ee, _, s, b.concat(J)));
return Wi(pe);
}
}
if (c === 'mathord') return pr(h, 'Math-Italic', _, s, b.concat(['mathnormal']));
if (c === 'textord') {
var Ie = ut[_][h] && ut[_][h].font;
if (Ie === 'ams') {
var Me = Nn('amsrm', s.fontWeight, s.fontShape);
return pr(h, Me, _, s, b.concat('amsrm', s.fontWeight, s.fontShape));
} else if (Ie === 'main' || !Ie) {
var Ue = Nn('textrm', s.fontWeight, s.fontShape);
return pr(h, Ue, _, s, b.concat(s.fontWeight, s.fontShape));
} else {
var lt = Nn(Ie, s.fontWeight, s.fontShape);
return pr(h, lt, _, s, b.concat(lt, s.fontWeight, s.fontShape));
}
} else throw new Error('unexpected type: ' + c + ' in makeOrd');
},
ks = function (o, s) {
if (Vt(o.classes) !== Vt(s.classes) || o.skew !== s.skew || o.maxFontSize !== s.maxFontSize) return !1;
if (o.classes.length === 1) {
var c = o.classes[0];
if (c === 'mbin' || c === 'mord') return !1;
}
for (var _ in o.style) if (o.style.hasOwnProperty(_) && o.style[_] !== s.style[_]) return !1;
for (var h in s.style) if (s.style.hasOwnProperty(h) && o.style[h] !== s.style[h]) return !1;
return !0;
},
Ps = function (o) {
for (var s = 0; s < o.length - 1; s++) {
var c = o[s],
_ = o[s + 1];
c instanceof Yt &&
_ instanceof Yt &&
ks(c, _) &&
((c.text += _.text),
(c.height = Math.max(c.height, _.height)),
(c.depth = Math.max(c.depth, _.depth)),
(c.italic = _.italic),
o.splice(s + 1, 1),
s--);
}
return o;
},
Vi = function (o) {
for (var s = 0, c = 0, _ = 0, h = 0; h < o.children.length; h++) {
var b = o.children[h];
b.height > s && (s = b.height), b.depth > c && (c = b.depth), b.maxFontSize > _ && (_ = b.maxFontSize);
}
(o.height = s), (o.depth = c), (o.maxFontSize = _);
},
Qt = function (o, s, c, _) {
var h = new dn(o, s, c, _);
return Vi(h), h;
},
Fa = function (o, s, c, _) {
return new dn(o, s, c, _);
},
Ua = function (o, s, c) {
var _ = Qt([o], [], s);
return (
(_.height = Math.max(c || s.fontMetrics().defaultRuleThickness, s.minRuleThickness)),
(_.style.borderBottomWidth = _e(_.height)),
(_.maxFontSize = 1),
_
);
},
Ga = function (o, s, c, _) {
var h = new yt(o, s, c, _);
return Vi(h), h;
},
Wi = function (o) {
var s = new xe(o);
return Vi(s), s;
},
Bs = function (o, s) {
return o instanceof xe ? Qt([], [o], s) : o;
},
Fs = function (o) {
if (o.positionType === 'individualShift') {
for (var s = o.children, c = [s[0]], _ = -s[0].shift - s[0].elem.depth, h = _, b = 1; b < s.length; b++) {
var C = -s[b].shift - h - s[b].elem.depth,
A = C - (s[b - 1].elem.height + s[b - 1].elem.depth);
(h = h + C), c.push({ type: 'kern', size: A }), c.push(s[b]);
}
return { children: c, depth: _ };
}
var I;
if (o.positionType === 'top') {
for (var k = o.positionData, W = 0; W < o.children.length; W++) {
var ee = o.children[W];
k -= ee.type === 'kern' ? ee.size : ee.elem.height + ee.elem.depth;
}
I = k;
} else if (o.positionType === 'bottom') I = -o.positionData;
else {
var J = o.children[0];
if (J.type !== 'elem') throw new Error('First child must have type "elem".');
if (o.positionType === 'shift') I = -J.elem.depth - o.positionData;
else if (o.positionType === 'firstBaseline') I = -J.elem.depth;
else throw new Error('Invalid positionType ' + o.positionType + '.');
}
return { children: o.children, depth: I };
},
qa = function (o, s) {
for (var c = Fs(o), _ = c.children, h = c.depth, b = 0, C = 0; C < _.length; C++) {
var A = _[C];
if (A.type === 'elem') {
var I = A.elem;
b = Math.max(b, I.maxFontSize, I.height);
}
}
b += 2;
var k = Qt(['pstrut'], []);
k.style.height = _e(b);
for (var W = [], ee = h, J = h, ie = h, pe = 0; pe < _.length; pe++) {
var Te = _[pe];
if (Te.type === 'kern') ie += Te.size;
else {
var Ie = Te.elem,
Me = Te.wrapperClasses || [],
Ue = Te.wrapperStyle || {},
lt = Qt(Me, [k, Ie], void 0, Ue);
(lt.style.top = _e(-b - ie - Ie.depth)),
Te.marginLeft && (lt.style.marginLeft = Te.marginLeft),
Te.marginRight && (lt.style.marginRight = Te.marginRight),
W.push(lt),
(ie += Ie.height + Ie.depth);
}
(ee = Math.min(ee, ie)), (J = Math.max(J, ie));
}
var Je = Qt(['vlist'], W);
Je.style.height = _e(J);
var mt;
if (ee < 0) {
var st = Qt([], []),
gt = Qt(['vlist'], [st]);
gt.style.height = _e(-ee);
var Ct = Qt(['vlist-s'], [new Yt('')]);
mt = [Qt(['vlist-r'], [Je, Ct]), Qt(['vlist-r'], [gt])];
} else mt = [Qt(['vlist-r'], [Je])];
var Ht = Qt(['vlist-t'], mt);
return mt.length === 2 && Ht.classes.push('vlist-t2'), (Ht.height = J), (Ht.depth = -ee), Ht;
},
mi = function (o, s) {
var c = Qt(['mspace'], [], s),
_ = nt(o, s);
return (c.style.marginRight = _e(_)), c;
},
Nn = function (o, s, c) {
var _ = '';
switch (o) {
case 'amsrm':
_ = 'AMS';
break;
case 'textrm':
_ = 'Main';
break;
case 'textsf':
_ = 'SansSerif';
break;
case 'texttt':
_ = 'Typewriter';
break;
default:
_ = o;
}
var h;
return (
s === 'textbf' && c === 'textit' ? (h = 'BoldItalic') : s === 'textbf' ? (h = 'Bold') : s === 'textit' ? (h = 'Italic') : (h = 'Regular'),
_ + '-' + h
);
},
Ki = {
mathbf: { variant: 'bold', fontName: 'Main-Bold' },
mathrm: { variant: 'normal', fontName: 'Main-Regular' },
textit: { variant: 'italic', fontName: 'Main-Italic' },
mathit: { variant: 'italic', fontName: 'Main-Italic' },
mathnormal: { variant: 'italic', fontName: 'Math-Italic' },
mathbb: { variant: 'double-struck', fontName: 'AMS-Regular' },
mathcal: { variant: 'script', fontName: 'Caligraphic-Regular' },
mathfrak: { variant: 'fraktur', fontName: 'Fraktur-Regular' },
mathscr: { variant: 'script', fontName: 'Script-Regular' },
mathsf: { variant: 'sans-serif', fontName: 'SansSerif-Regular' },
mathtt: { variant: 'monospace', fontName: 'Typewriter-Regular' },
},
Qi = {
vec: ['vec', 0.471, 0.714],
oiintSize1: ['oiintSize1', 0.957, 0.499],
oiintSize2: ['oiintSize2', 1.472, 0.659],
oiiintSize1: ['oiiintSize1', 1.304, 0.499],
oiiintSize2: ['oiiintSize2', 1.98, 0.659],
},
Ya = function (o, s) {
var c = Qi[o],
_ = c[0],
h = c[1],
b = c[2],
C = new mr(_),
A = new jt([C], {
width: _e(h),
height: _e(b),
style: 'width:' + _e(h),
viewBox: '0 0 ' + 1e3 * h + ' ' + 1e3 * b,
preserveAspectRatio: 'xMinYMin',
}),
I = Fa(['overlay'], [A], s);
return (I.height = b), (I.style.height = _e(b)), (I.style.width = _e(h)), I;
},
V = {
fontMap: Ki,
makeSymbol: pr,
mathsym: ws,
makeSpan: Qt,
makeSvgSpan: Fa,
makeLineSpan: Ua,
makeAnchor: Ga,
makeFragment: Wi,
wrapFragment: Bs,
makeVList: qa,
makeOrd: Ls,
makeGlue: mi,
staticSvg: Ya,
svgData: Qi,
tryCombineChars: Ps,
},
Rt = { number: 3, unit: 'mu' },
Yn = { number: 4, unit: 'mu' },
mn = { number: 5, unit: 'mu' },
iv = {
mord: { mop: Rt, mbin: Yn, mrel: mn, minner: Rt },
mop: { mord: Rt, mop: Rt, mrel: mn, minner: Rt },
mbin: { mord: Yn, mop: Yn, mopen: Yn, minner: Yn },
mrel: { mord: mn, mop: mn, mopen: mn, minner: mn },
mopen: {},
mclose: { mop: Rt, mbin: Yn, mrel: mn, minner: Rt },
mpunct: { mord: Rt, mop: Rt, mrel: mn, mopen: Rt, mclose: Rt, mpunct: Rt, minner: Rt },
minner: { mord: Rt, mop: Rt, mbin: Yn, mrel: mn, mopen: Rt, mpunct: Rt, minner: Rt },
},
av = { mord: { mop: Rt }, mop: { mord: Rt, mop: Rt }, mbin: {}, mrel: {}, mopen: {}, mclose: { mop: Rt }, mpunct: {}, minner: { mop: Rt } },
tp = {},
za = {},
Ha = {};
function Re(S) {
for (
var o = S.type,
s = S.names,
c = S.props,
_ = S.handler,
h = S.htmlBuilder,
b = S.mathmlBuilder,
C = {
type: o,
numArgs: c.numArgs,
argTypes: c.argTypes,
allowedInArgument: !!c.allowedInArgument,
allowedInText: !!c.allowedInText,
allowedInMath: c.allowedInMath === void 0 ? !0 : c.allowedInMath,
numOptionalArgs: c.numOptionalArgs || 0,
infix: !!c.infix,
primitive: !!c.primitive,
handler: _,
},
A = 0;
A < s.length;
++A
)
tp[s[A]] = C;
o && (h && (za[o] = h), b && (Ha[o] = b));
}
function zn(S) {
var o = S.type,
s = S.htmlBuilder,
c = S.mathmlBuilder;
Re({
type: o,
names: [],
props: { numArgs: 0 },
handler: function () {
throw new Error('Should never be called.');
},
htmlBuilder: s,
mathmlBuilder: c,
});
}
var $a = function (o) {
return o.type === 'ordgroup' && o.body.length === 1 ? o.body[0] : o;
},
Dt = function (o) {
return o.type === 'ordgroup' ? o.body : [o];
},
pn = V.makeSpan,
ov = ['leftmost', 'mbin', 'mopen', 'mrel', 'mop', 'mpunct'],
sv = ['rightmost', 'mrel', 'mclose', 'mpunct'],
lv = { display: ae.DISPLAY, text: ae.TEXT, script: ae.SCRIPT, scriptscript: ae.SCRIPTSCRIPT },
cv = { mord: 'mord', mop: 'mop', mbin: 'mbin', mrel: 'mrel', mopen: 'mopen', mclose: 'mclose', mpunct: 'mpunct', minner: 'minner' },
Gt = function (o, s, c, _) {
_ === void 0 && (_ = [null, null]);
for (var h = [], b = 0; b < o.length; b++) {
var C = ot(o[b], s);
if (C instanceof xe) {
var A = C.children;
h.push.apply(h, A);
} else h.push(C);
}
if ((V.tryCombineChars(h), !c)) return h;
var I = s;
if (o.length === 1) {
var k = o[0];
k.type === 'sizing' ? (I = s.havingSize(k.size)) : k.type === 'styling' && (I = s.havingStyle(lv[k.style]));
}
var W = pn([_[0] || 'leftmost'], [], s),
ee = pn([_[1] || 'rightmost'], [], s),
J = c === 'root';
return (
rp(
h,
function (ie, pe) {
var Te = pe.classes[0],
Ie = ie.classes[0];
Te === 'mbin' && w.contains(sv, Ie) ? (pe.classes[0] = 'mord') : Ie === 'mbin' && w.contains(ov, Te) && (ie.classes[0] = 'mord');
},
{ node: W },
ee,
J
),
rp(
h,
function (ie, pe) {
var Te = Us(pe),
Ie = Us(ie),
Me = Te && Ie ? (ie.hasClass('mtight') ? av[Te][Ie] : iv[Te][Ie]) : null;
if (Me) return V.makeGlue(Me, I);
},
{ node: W },
ee,
J
),
h
);
},
rp = function S(o, s, c, _, h) {
_ && o.push(_);
for (var b = 0; b < o.length; b++) {
var C = o[b],
A = np(C);
if (A) {
S(A.children, s, c, null, h);
continue;
}
var I = !C.hasClass('mspace');
if (I) {
var k = s(C, c.node);
k && (c.insertAfter ? c.insertAfter(k) : (o.unshift(k), b++));
}
I ? (c.node = C) : h && C.hasClass('newline') && (c.node = pn(['leftmost'])),
(c.insertAfter = (function (W) {
return function (ee) {
o.splice(W + 1, 0, ee), b++;
};
})(b));
}
_ && o.pop();
},
np = function (o) {
return o instanceof xe || o instanceof yt || (o instanceof dn && o.hasClass('enclosing')) ? o : null;
},
uv = function S(o, s) {
var c = np(o);
if (c) {
var _ = c.children;
if (_.length) {
if (s === 'right') return S(_[_.length - 1], 'right');
if (s === 'left') return S(_[0], 'left');
}
}
return o;
},
Us = function (o, s) {
return o ? (s && (o = uv(o, s)), cv[o.classes[0]] || null) : null;
},
Zi = function (o, s) {
var c = ['nulldelimiter'].concat(o.baseSizingClasses());
return pn(s.concat(c));
},
ot = function (o, s, c) {
if (!o) return pn();
if (za[o.type]) {
var _ = za[o.type](o, s);
if (c && s.size !== c.size) {
_ = pn(s.sizingClasses(c), [_], s);
var h = s.sizeMultiplier / c.sizeMultiplier;
(_.height *= h), (_.depth *= h);
}
return _;
} else throw new a("Got group of unknown type: '" + o.type + "'");
};
function Va(S, o) {
var s = pn(['base'], S, o),
c = pn(['strut']);
return (c.style.height = _e(s.height + s.depth)), s.depth && (c.style.verticalAlign = _e(-s.depth)), s.children.unshift(c), s;
}
function Gs(S, o) {
var s = null;
S.length === 1 && S[0].type === 'tag' && ((s = S[0].tag), (S = S[0].body));
var c = Gt(S, o, 'root'),
_;
c.length === 2 && c[1].hasClass('tag') && (_ = c.pop());
for (var h = [], b = [], C = 0; C < c.length; C++)
if ((b.push(c[C]), c[C].hasClass('mbin') || c[C].hasClass('mrel') || c[C].hasClass('allowbreak'))) {
for (var A = !1; C < c.length - 1 && c[C + 1].hasClass('mspace') && !c[C + 1].hasClass('newline'); )
C++, b.push(c[C]), c[C].hasClass('nobreak') && (A = !0);
A || (h.push(Va(b, o)), (b = []));
} else c[C].hasClass('newline') && (b.pop(), b.length > 0 && (h.push(Va(b, o)), (b = [])), h.push(c[C]));
b.length > 0 && h.push(Va(b, o));
var I;
s ? ((I = Va(Gt(s, o, !0))), (I.classes = ['tag']), h.push(I)) : _ && h.push(_);
var k = pn(['katex-html'], h);
if ((k.setAttribute('aria-hidden', 'true'), I)) {
var W = I.children[0];
(W.style.height = _e(k.height + k.depth)), k.depth && (W.style.verticalAlign = _e(-k.depth));
}
return k;
}
function ip(S) {
return new xe(S);
}
var Cr = (function () {
function S(s, c, _) {
(this.type = void 0),
(this.attributes = void 0),
(this.children = void 0),
(this.classes = void 0),
(this.type = s),
(this.attributes = {}),
(this.children = c || []),
(this.classes = _ || []);
}
var o = S.prototype;
return (
(o.setAttribute = function (c, _) {
this.attributes[c] = _;
}),
(o.getAttribute = function (c) {
return this.attributes[c];
}),
(o.toNode = function () {
var c = document.createElementNS('http://www.w3.org/1998/Math/MathML', this.type);
for (var _ in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, _) && c.setAttribute(_, this.attributes[_]);
this.classes.length > 0 && (c.className = Vt(this.classes));
for (var h = 0; h < this.children.length; h++) c.appendChild(this.children[h].toNode());
return c;
}),
(o.toMarkup = function () {
var c = '<' + this.type;
for (var _ in this.attributes)
Object.prototype.hasOwnProperty.call(this.attributes, _) && ((c += ' ' + _ + '="'), (c += w.escape(this.attributes[_])), (c += '"'));
this.classes.length > 0 && (c += ' class ="' + w.escape(Vt(this.classes)) + '"'), (c += '>');
for (var h = 0; h < this.children.length; h++) c += this.children[h].toMarkup();
return (c += '' + this.type + '>'), c;
}),
(o.toText = function () {
return this.children
.map(function (c) {
return c.toText();
})
.join('');
}),
S
);
})(),
Xi = (function () {
function S(s) {
(this.text = void 0), (this.text = s);
}
var o = S.prototype;
return (
(o.toNode = function () {
return document.createTextNode(this.text);
}),
(o.toMarkup = function () {
return w.escape(this.toText());
}),
(o.toText = function () {
return this.text;
}),
S
);
})(),
dv = (function () {
function S(s) {
(this.width = void 0),
(this.character = void 0),
(this.width = s),
s >= 0.05555 && s <= 0.05556
? (this.character = ' ')
: s >= 0.1666 && s <= 0.1667
? (this.character = ' ')
: s >= 0.2222 && s <= 0.2223
? (this.character = ' ')
: s >= 0.2777 && s <= 0.2778
? (this.character = ' ')
: s >= -0.05556 && s <= -0.05555
? (this.character = ' ')
: s >= -0.1667 && s <= -0.1666
? (this.character = ' ')
: s >= -0.2223 && s <= -0.2222
? (this.character = ' ')
: s >= -0.2778 && s <= -0.2777
? (this.character = ' ')
: (this.character = null);
}
var o = S.prototype;
return (
(o.toNode = function () {
if (this.character) return document.createTextNode(this.character);
var c = document.createElementNS('http://www.w3.org/1998/Math/MathML', 'mspace');
return c.setAttribute('width', _e(this.width)), c;
}),
(o.toMarkup = function () {
return this.character ? '' + this.character + ' ' : ' ';
}),
(o.toText = function () {
return this.character ? this.character : ' ';
}),
S
);
})(),
ue = { MathNode: Cr, TextNode: Xi, SpaceNode: dv, newDocumentFragment: ip },
yr = function (o, s, c) {
return (
ut[s][o] &&
ut[s][o].replace &&
o.charCodeAt(0) !== 55349 &&
!(Ot.hasOwnProperty(o) && c && ((c.fontFamily && c.fontFamily.slice(4, 6) === 'tt') || (c.font && c.font.slice(4, 6) === 'tt'))) &&
(o = ut[s][o].replace),
new ue.TextNode(o)
);
},
qs = function (o) {
return o.length === 1 ? o[0] : new ue.MathNode('mrow', o);
},
Ys = function (o, s) {
if (s.fontFamily === 'texttt') return 'monospace';
if (s.fontFamily === 'textsf')
return s.fontShape === 'textit' && s.fontWeight === 'textbf'
? 'sans-serif-bold-italic'
: s.fontShape === 'textit'
? 'sans-serif-italic'
: s.fontWeight === 'textbf'
? 'bold-sans-serif'
: 'sans-serif';
if (s.fontShape === 'textit' && s.fontWeight === 'textbf') return 'bold-italic';
if (s.fontShape === 'textit') return 'italic';
if (s.fontWeight === 'textbf') return 'bold';
var c = s.font;
if (!c || c === 'mathnormal') return null;
var _ = o.mode;
if (c === 'mathit') return 'italic';
if (c === 'boldsymbol') return o.type === 'textord' ? 'bold' : 'bold-italic';
if (c === 'mathbf') return 'bold';
if (c === 'mathbb') return 'double-struck';
if (c === 'mathfrak') return 'fraktur';
if (c === 'mathscr' || c === 'mathcal') return 'script';
if (c === 'mathsf') return 'sans-serif';
if (c === 'mathtt') return 'monospace';
var h = o.text;
if (w.contains(['\\imath', '\\jmath'], h)) return null;
ut[_][h] && ut[_][h].replace && (h = ut[_][h].replace);
var b = V.fontMap[c].fontName;
return Ft(h, b, _) ? V.fontMap[c].variant : null;
},
sr = function (o, s, c) {
if (o.length === 1) {
var _ = ft(o[0], s);
return c && _ instanceof Cr && _.type === 'mo' && (_.setAttribute('lspace', '0em'), _.setAttribute('rspace', '0em')), [_];
}
for (var h = [], b, C = 0; C < o.length; C++) {
var A = ft(o[C], s);
if (A instanceof Cr && b instanceof Cr) {
if (A.type === 'mtext' && b.type === 'mtext' && A.getAttribute('mathvariant') === b.getAttribute('mathvariant')) {
var I;
(I = b.children).push.apply(I, A.children);
continue;
} else if (A.type === 'mn' && b.type === 'mn') {
var k;
(k = b.children).push.apply(k, A.children);
continue;
} else if (A.type === 'mi' && A.children.length === 1 && b.type === 'mn') {
var W = A.children[0];
if (W instanceof Xi && W.text === '.') {
var ee;
(ee = b.children).push.apply(ee, A.children);
continue;
}
} else if (b.type === 'mi' && b.children.length === 1) {
var J = b.children[0];
if (J instanceof Xi && J.text === '̸' && (A.type === 'mo' || A.type === 'mi' || A.type === 'mn')) {
var ie = A.children[0];
ie instanceof Xi && ie.text.length > 0 && ((ie.text = ie.text.slice(0, 1) + '̸' + ie.text.slice(1)), h.pop());
}
}
}
h.push(A), (b = A);
}
return h;
},
On = function (o, s, c) {
return qs(sr(o, s, c));
},
ft = function (o, s) {
if (!o) return new ue.MathNode('mrow');
if (Ha[o.type]) {
var c = Ha[o.type](o, s);
return c;
} else throw new a("Got group of unknown type: '" + o.type + "'");
};
function ap(S, o, s, c, _) {
var h = sr(S, s),
b;
h.length === 1 && h[0] instanceof Cr && w.contains(['mrow', 'mtable'], h[0].type) ? (b = h[0]) : (b = new ue.MathNode('mrow', h));
var C = new ue.MathNode('annotation', [new ue.TextNode(o)]);
C.setAttribute('encoding', 'application/x-tex');
var A = new ue.MathNode('semantics', [b, C]),
I = new ue.MathNode('math', [A]);
I.setAttribute('xmlns', 'http://www.w3.org/1998/Math/MathML'), c && I.setAttribute('display', 'block');
var k = _ ? 'katex' : 'katex-mathml';
return V.makeSpan([k], [I]);
}
var op = function (o) {
return new qt({ style: o.displayMode ? ae.DISPLAY : ae.TEXT, maxSize: o.maxSize, minRuleThickness: o.minRuleThickness });
},
sp = function (o, s) {
if (s.displayMode) {
var c = ['katex-display'];
s.leqno && c.push('leqno'), s.fleqn && c.push('fleqn'), (o = V.makeSpan(c, [o]));
}
return o;
},
_v = function (o, s, c) {
var _ = op(c),
h;
if (c.output === 'mathml') return ap(o, s, _, c.displayMode, !0);
if (c.output === 'html') {
var b = Gs(o, _);
h = V.makeSpan(['katex'], [b]);
} else {
var C = ap(o, s, _, c.displayMode, !1),
A = Gs(o, _);
h = V.makeSpan(['katex'], [C, A]);
}
return sp(h, c);
},
mv = function (o, s, c) {
var _ = op(c),
h = Gs(o, _),
b = V.makeSpan(['katex'], [h]);
return sp(b, c);
},
pv = {
widehat: '^',
widecheck: 'ˇ',
widetilde: '~',
utilde: '~',
overleftarrow: '←',
underleftarrow: '←',
xleftarrow: '←',
overrightarrow: '→',
underrightarrow: '→',
xrightarrow: '→',
underbrace: '⏟',
overbrace: '⏞',
overgroup: '⏠',
undergroup: '⏡',
overleftrightarrow: '↔',
underleftrightarrow: '↔',
xleftrightarrow: '↔',
Overrightarrow: '⇒',
xRightarrow: '⇒',
overleftharpoon: '↼',
xleftharpoonup: '↼',
overrightharpoon: '⇀',
xrightharpoonup: '⇀',
xLeftarrow: '⇐',
xLeftrightarrow: '⇔',
xhookleftarrow: '↩',
xhookrightarrow: '↪',
xmapsto: '↦',
xrightharpoondown: '⇁',
xleftharpoondown: '↽',
xrightleftharpoons: '⇌',
xleftrightharpoons: '⇋',
xtwoheadleftarrow: '↞',
xtwoheadrightarrow: '↠',
xlongequal: '=',
xtofrom: '⇄',
xrightleftarrows: '⇄',
xrightequilibrium: '⇌',
xleftequilibrium: '⇋',
'\\cdrightarrow': '→',
'\\cdleftarrow': '←',
'\\cdlongequal': '=',
},
hv = function (o) {
var s = new ue.MathNode('mo', [new ue.TextNode(pv[o.replace(/^\\/, '')])]);
return s.setAttribute('stretchy', 'true'), s;
},
gv = {
overrightarrow: [['rightarrow'], 0.888, 522, 'xMaxYMin'],
overleftarrow: [['leftarrow'], 0.888, 522, 'xMinYMin'],
underrightarrow: [['rightarrow'], 0.888, 522, 'xMaxYMin'],
underleftarrow: [['leftarrow'], 0.888, 522, 'xMinYMin'],
xrightarrow: [['rightarrow'], 1.469, 522, 'xMaxYMin'],
'\\cdrightarrow': [['rightarrow'], 3, 522, 'xMaxYMin'],
xleftarrow: [['leftarrow'], 1.469, 522, 'xMinYMin'],
'\\cdleftarrow': [['leftarrow'], 3, 522, 'xMinYMin'],
Overrightarrow: [['doublerightarrow'], 0.888, 560, 'xMaxYMin'],
xRightarrow: [['doublerightarrow'], 1.526, 560, 'xMaxYMin'],
xLeftarrow: [['doubleleftarrow'], 1.526, 560, 'xMinYMin'],
overleftharpoon: [['leftharpoon'], 0.888, 522, 'xMinYMin'],
xleftharpoonup: [['leftharpoon'], 0.888, 522, 'xMinYMin'],
xleftharpoondown: [['leftharpoondown'], 0.888, 522, 'xMinYMin'],
overrightharpoon: [['rightharpoon'], 0.888, 522, 'xMaxYMin'],
xrightharpoonup: [['rightharpoon'], 0.888, 522, 'xMaxYMin'],
xrightharpoondown: [['rightharpoondown'], 0.888, 522, 'xMaxYMin'],
xlongequal: [['longequal'], 0.888, 334, 'xMinYMin'],
'\\cdlongequal': [['longequal'], 3, 334, 'xMinYMin'],
xtwoheadleftarrow: [['twoheadleftarrow'], 0.888, 334, 'xMinYMin'],
xtwoheadrightarrow: [['twoheadrightarrow'], 0.888, 334, 'xMaxYMin'],
overleftrightarrow: [['leftarrow', 'rightarrow'], 0.888, 522],
overbrace: [['leftbrace', 'midbrace', 'rightbrace'], 1.6, 548],
underbrace: [['leftbraceunder', 'midbraceunder', 'rightbraceunder'], 1.6, 548],
underleftrightarrow: [['leftarrow', 'rightarrow'], 0.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'], 0.888, 522],
underlinesegment: [['leftlinesegment', 'rightlinesegment'], 0.888, 522],
overgroup: [['leftgroup', 'rightgroup'], 0.888, 342],
undergroup: [['leftgroupunder', 'rightgroupunder'], 0.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],
},
fv = function (o) {
return o.type === 'ordgroup' ? o.body.length : 1;
},
Ev = function (o, s) {
function c() {
var A = 4e5,
I = o.label.slice(1);
if (w.contains(['widehat', 'widecheck', 'widetilde', 'utilde'], I)) {
var k = o,
W = fv(k.base),
ee,
J,
ie;
if (W > 5)
I === 'widehat' || I === 'widecheck'
? ((ee = 420), (A = 2364), (ie = 0.42), (J = I + '4'))
: ((ee = 312), (A = 2340), (ie = 0.34), (J = 'tilde4'));
else {
var pe = [1, 1, 2, 2, 3, 3][W];
I === 'widehat' || I === 'widecheck'
? ((A = [0, 1062, 2364, 2364, 2364][pe]),
(ee = [0, 239, 300, 360, 420][pe]),
(ie = [0, 0.24, 0.3, 0.3, 0.36, 0.42][pe]),
(J = I + pe))
: ((A = [0, 600, 1033, 2339, 2340][pe]),
(ee = [0, 260, 286, 306, 312][pe]),
(ie = [0, 0.26, 0.286, 0.3, 0.306, 0.34][pe]),
(J = 'tilde' + pe));
}
var Te = new mr(J),
Ie = new jt([Te], { width: '100%', height: _e(ie), viewBox: '0 0 ' + A + ' ' + ee, preserveAspectRatio: 'none' });
return { span: V.makeSvgSpan([], [Ie], s), minWidth: 0, height: ie };
} else {
var Me = [],
Ue = gv[I],
lt = Ue[0],
Je = Ue[1],
mt = Ue[2],
st = mt / 1e3,
gt = lt.length,
Ct,
Ht;
if (gt === 1) {
var hr = Ue[3];
(Ct = ['hide-tail']), (Ht = [hr]);
} else if (gt === 2) (Ct = ['halfarrow-left', 'halfarrow-right']), (Ht = ['xMinYMin', 'xMaxYMin']);
else if (gt === 3) (Ct = ['brace-left', 'brace-center', 'brace-right']), (Ht = ['xMinYMin', 'xMidYMin', 'xMaxYMin']);
else
throw new Error(
`Correct katexImagesData or update code here to support
` +
gt +
' children.'
);
for (var At = 0; At < gt; At++) {
var Hn = new mr(lt[At]),
Rr = new jt([Hn], { width: '400em', height: _e(st), viewBox: '0 0 ' + A + ' ' + mt, preserveAspectRatio: Ht[At] + ' slice' }),
er = V.makeSvgSpan([Ct[At]], [Rr], s);
if (gt === 1) return { span: er, minWidth: Je, height: st };
(er.style.height = _e(st)), Me.push(er);
}
return { span: V.makeSpan(['stretchy'], Me, s), minWidth: Je, height: st };
}
}
var _ = c(),
h = _.span,
b = _.minWidth,
C = _.height;
return (h.height = C), (h.style.height = _e(C)), b > 0 && (h.style.minWidth = _e(b)), h;
},
Sv = function (o, s, c, _, h) {
var b,
C = o.height + o.depth + c + _;
if (/fbox|color|angl/.test(s)) {
if (((b = V.makeSpan(['stretchy', s], [], h)), s === 'fbox')) {
var A = h.color && h.getColor();
A && (b.style.borderColor = A);
}
} else {
var I = [];
/^[bx]cancel$/.test(s) && I.push(new Rn({ x1: '0', y1: '0', x2: '100%', y2: '100%', 'stroke-width': '0.046em' })),
/^x?cancel$/.test(s) && I.push(new Rn({ x1: '0', y1: '100%', x2: '100%', y2: '0', 'stroke-width': '0.046em' }));
var k = new jt(I, { width: '100%', height: _e(C) });
b = V.makeSvgSpan([], [k], h);
}
return (b.height = C), (b.style.height = _e(C)), b;
},
hn = { encloseSpan: Sv, mathMLnode: hv, svgSpan: Ev };
function Xe(S, o) {
if (!S || S.type !== o) throw new Error('Expected node of type ' + o + ', but got ' + (S ? 'node of type ' + S.type : String(S)));
return S;
}
function zs(S) {
var o = Wa(S);
if (!o) throw new Error('Expected node of symbol group type, but got ' + (S ? 'node of type ' + S.type : String(S)));
return o;
}
function Wa(S) {
return S && (S.type === 'atom' || Yi.hasOwnProperty(S.type)) ? S : null;
}
var Hs = function (o, s) {
var c, _, h;
o && o.type === 'supsub'
? ((_ = Xe(o.base, 'accent')), (c = _.base), (o.base = c), (h = oi(ot(o, s))), (o.base = _))
: ((_ = Xe(o, 'accent')), (c = _.base));
var b = ot(c, s.havingCrampedStyle()),
C = _.isShifty && w.isCharacterBox(c),
A = 0;
if (C) {
var I = w.getBaseElem(c),
k = ot(I, s.havingCrampedStyle());
A = ai(k).skew;
}
var W = _.label === '\\c',
ee = W ? b.height + b.depth : Math.min(b.height, s.fontMetrics().xHeight),
J;
if (_.isStretchy)
(J = hn.svgSpan(_, s)),
(J = V.makeVList(
{
positionType: 'firstBaseline',
children: [
{ type: 'elem', elem: b },
{
type: 'elem',
elem: J,
wrapperClasses: ['svg-align'],
wrapperStyle: A > 0 ? { width: 'calc(100% - ' + _e(2 * A) + ')', marginLeft: _e(2 * A) } : void 0,
},
],
},
s
));
else {
var ie, pe;
_.label === '\\vec'
? ((ie = V.staticSvg('vec', s)), (pe = V.svgData.vec[1]))
: ((ie = V.makeOrd({ mode: _.mode, text: _.label }, s, 'textord')),
(ie = ai(ie)),
(ie.italic = 0),
(pe = ie.width),
W && (ee += ie.depth)),
(J = V.makeSpan(['accent-body'], [ie]));
var Te = _.label === '\\textcircled';
Te && (J.classes.push('accent-full'), (ee = b.height));
var Ie = A;
Te || (Ie -= pe / 2),
(J.style.left = _e(Ie)),
_.label === '\\textcircled' && (J.style.top = '.2em'),
(J = V.makeVList(
{
positionType: 'firstBaseline',
children: [
{ type: 'elem', elem: b },
{ type: 'kern', size: -ee },
{ type: 'elem', elem: J },
],
},
s
));
}
var Me = V.makeSpan(['mord', 'accent'], [J], s);
return h ? ((h.children[0] = Me), (h.height = Math.max(Me.height, h.height)), (h.classes[0] = 'mord'), h) : Me;
},
lp = function (o, s) {
var c = o.isStretchy ? hn.mathMLnode(o.label) : new ue.MathNode('mo', [yr(o.label, o.mode)]),
_ = new ue.MathNode('mover', [ft(o.base, s), c]);
return _.setAttribute('accent', 'true'), _;
},
bv = new RegExp(
['\\acute', '\\grave', '\\ddot', '\\tilde', '\\bar', '\\breve', '\\check', '\\hat', '\\vec', '\\dot', '\\mathring']
.map(function (S) {
return '\\' + S;
})
.join('|')
);
Re({
type: 'accent',
names: [
'\\acute',
'\\grave',
'\\ddot',
'\\tilde',
'\\bar',
'\\breve',
'\\check',
'\\hat',
'\\vec',
'\\dot',
'\\mathring',
'\\widecheck',
'\\widehat',
'\\widetilde',
'\\overrightarrow',
'\\overleftarrow',
'\\Overrightarrow',
'\\overleftrightarrow',
'\\overgroup',
'\\overlinesegment',
'\\overleftharpoon',
'\\overrightharpoon',
],
props: { numArgs: 1 },
handler: function (o, s) {
var c = $a(s[0]),
_ = !bv.test(o.funcName),
h = !_ || o.funcName === '\\widehat' || o.funcName === '\\widetilde' || o.funcName === '\\widecheck';
return { type: 'accent', mode: o.parser.mode, label: o.funcName, isStretchy: _, isShifty: h, base: c };
},
htmlBuilder: Hs,
mathmlBuilder: lp,
}),
Re({
type: 'accent',
names: ["\\'", '\\`', '\\^', '\\~', '\\=', '\\u', '\\.', '\\"', '\\c', '\\r', '\\H', '\\v', '\\textcircled'],
props: { numArgs: 1, allowedInText: !0, allowedInMath: !0, argTypes: ['primitive'] },
handler: function (o, s) {
var c = s[0],
_ = o.parser.mode;
return (
_ === 'math' &&
(o.parser.settings.reportNonstrict('mathVsTextAccents', "LaTeX's accent " + o.funcName + ' works only in text mode'), (_ = 'text')),
{ type: 'accent', mode: _, label: o.funcName, isStretchy: !1, isShifty: !0, base: c }
);
},
htmlBuilder: Hs,
mathmlBuilder: lp,
}),
Re({
type: 'accentUnder',
names: ['\\underleftarrow', '\\underrightarrow', '\\underleftrightarrow', '\\undergroup', '\\underlinesegment', '\\utilde'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
return { type: 'accentUnder', mode: c.mode, label: _, base: h };
},
htmlBuilder: function (o, s) {
var c = ot(o.base, s),
_ = hn.svgSpan(o, s),
h = o.label === '\\utilde' ? 0.12 : 0,
b = V.makeVList(
{
positionType: 'top',
positionData: c.height,
children: [
{ type: 'elem', elem: _, wrapperClasses: ['svg-align'] },
{ type: 'kern', size: h },
{ type: 'elem', elem: c },
],
},
s
);
return V.makeSpan(['mord', 'accentunder'], [b], s);
},
mathmlBuilder: function (o, s) {
var c = hn.mathMLnode(o.label),
_ = new ue.MathNode('munder', [ft(o.base, s), c]);
return _.setAttribute('accentunder', 'true'), _;
},
});
var Ka = function (o) {
var s = new ue.MathNode('mpadded', o ? [o] : []);
return s.setAttribute('width', '+0.6em'), s.setAttribute('lspace', '0.3em'), s;
};
Re({
type: 'xArrow',
names: [
'\\xleftarrow',
'\\xrightarrow',
'\\xLeftarrow',
'\\xRightarrow',
'\\xleftrightarrow',
'\\xLeftrightarrow',
'\\xhookleftarrow',
'\\xhookrightarrow',
'\\xmapsto',
'\\xrightharpoondown',
'\\xrightharpoonup',
'\\xleftharpoondown',
'\\xleftharpoonup',
'\\xrightleftharpoons',
'\\xleftrightharpoons',
'\\xlongequal',
'\\xtwoheadrightarrow',
'\\xtwoheadleftarrow',
'\\xtofrom',
'\\xrightleftarrows',
'\\xrightequilibrium',
'\\xleftequilibrium',
'\\\\cdrightarrow',
'\\\\cdleftarrow',
'\\\\cdlongequal',
],
props: { numArgs: 1, numOptionalArgs: 1 },
handler: function (o, s, c) {
var _ = o.parser,
h = o.funcName;
return { type: 'xArrow', mode: _.mode, label: h, body: s[0], below: c[0] };
},
htmlBuilder: function (o, s) {
var c = s.style,
_ = s.havingStyle(c.sup()),
h = V.wrapFragment(ot(o.body, _, s), s),
b = o.label.slice(0, 2) === '\\x' ? 'x' : 'cd';
h.classes.push(b + '-arrow-pad');
var C;
o.below && ((_ = s.havingStyle(c.sub())), (C = V.wrapFragment(ot(o.below, _, s), s)), C.classes.push(b + '-arrow-pad'));
var A = hn.svgSpan(o, s),
I = -s.fontMetrics().axisHeight + 0.5 * A.height,
k = -s.fontMetrics().axisHeight - 0.5 * A.height - 0.111;
(h.depth > 0.25 || o.label === '\\xleftequilibrium') && (k -= h.depth);
var W;
if (C) {
var ee = -s.fontMetrics().axisHeight + C.height + 0.5 * A.height + 0.111;
W = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: h, shift: k },
{ type: 'elem', elem: A, shift: I },
{ type: 'elem', elem: C, shift: ee },
],
},
s
);
} else
W = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: h, shift: k },
{ type: 'elem', elem: A, shift: I },
],
},
s
);
return W.children[0].children[0].children[1].classes.push('svg-align'), V.makeSpan(['mrel', 'x-arrow'], [W], s);
},
mathmlBuilder: function (o, s) {
var c = hn.mathMLnode(o.label);
c.setAttribute('minsize', o.label.charAt(0) === 'x' ? '1.75em' : '3.0em');
var _;
if (o.body) {
var h = Ka(ft(o.body, s));
if (o.below) {
var b = Ka(ft(o.below, s));
_ = new ue.MathNode('munderover', [c, b, h]);
} else _ = new ue.MathNode('mover', [c, h]);
} else if (o.below) {
var C = Ka(ft(o.below, s));
_ = new ue.MathNode('munder', [c, C]);
} else (_ = Ka()), (_ = new ue.MathNode('mover', [c, _]));
return _;
},
});
var Tv = V.makeSpan;
function cp(S, o) {
var s = Gt(S.body, o, !0);
return Tv([S.mclass], s, o);
}
function up(S, o) {
var s,
c = sr(S.body, o);
return (
S.mclass === 'minner'
? (s = new ue.MathNode('mpadded', c))
: S.mclass === 'mord'
? S.isCharacterBox
? ((s = c[0]), (s.type = 'mi'))
: (s = new ue.MathNode('mi', c))
: (S.isCharacterBox ? ((s = c[0]), (s.type = 'mo')) : (s = new ue.MathNode('mo', c)),
S.mclass === 'mbin'
? ((s.attributes.lspace = '0.22em'), (s.attributes.rspace = '0.22em'))
: S.mclass === 'mpunct'
? ((s.attributes.lspace = '0em'), (s.attributes.rspace = '0.17em'))
: S.mclass === 'mopen' || S.mclass === 'mclose'
? ((s.attributes.lspace = '0em'), (s.attributes.rspace = '0em'))
: S.mclass === 'minner' && ((s.attributes.lspace = '0.0556em'), (s.attributes.width = '+0.1111em'))),
s
);
}
Re({
type: 'mclass',
names: ['\\mathord', '\\mathbin', '\\mathrel', '\\mathopen', '\\mathclose', '\\mathpunct', '\\mathinner'],
props: { numArgs: 1, primitive: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
return { type: 'mclass', mode: c.mode, mclass: 'm' + _.slice(5), body: Dt(h), isCharacterBox: w.isCharacterBox(h) };
},
htmlBuilder: cp,
mathmlBuilder: up,
});
var Qa = function (o) {
var s = o.type === 'ordgroup' && o.body.length ? o.body[0] : o;
return s.type === 'atom' && (s.family === 'bin' || s.family === 'rel') ? 'm' + s.family : 'mord';
};
Re({
type: 'mclass',
names: ['\\@binrel'],
props: { numArgs: 2 },
handler: function (o, s) {
var c = o.parser;
return { type: 'mclass', mode: c.mode, mclass: Qa(s[0]), body: Dt(s[1]), isCharacterBox: w.isCharacterBox(s[1]) };
},
}),
Re({
type: 'mclass',
names: ['\\stackrel', '\\overset', '\\underset'],
props: { numArgs: 2 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[1],
b = s[0],
C;
_ !== '\\stackrel' ? (C = Qa(h)) : (C = 'mrel');
var A = {
type: 'op',
mode: h.mode,
limits: !0,
alwaysHandleSupSub: !0,
parentIsSupSub: !1,
symbol: !1,
suppressBaseShift: _ !== '\\stackrel',
body: Dt(h),
},
I = { type: 'supsub', mode: b.mode, base: A, sup: _ === '\\underset' ? null : b, sub: _ === '\\underset' ? b : null };
return { type: 'mclass', mode: c.mode, mclass: C, body: [I], isCharacterBox: w.isCharacterBox(I) };
},
htmlBuilder: cp,
mathmlBuilder: up,
}),
Re({
type: 'pmb',
names: ['\\pmb'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser;
return { type: 'pmb', mode: c.mode, mclass: Qa(s[0]), body: Dt(s[0]) };
},
htmlBuilder: function (o, s) {
var c = Gt(o.body, s, !0),
_ = V.makeSpan([o.mclass], c, s);
return (_.style.textShadow = '0.02em 0.01em 0.04px'), _;
},
mathmlBuilder: function (o, s) {
var c = sr(o.body, s),
_ = new ue.MathNode('mstyle', c);
return _.setAttribute('style', 'text-shadow: 0.02em 0.01em 0.04px'), _;
},
});
var vv = {
'>': '\\\\cdrightarrow',
'<': '\\\\cdleftarrow',
'=': '\\\\cdlongequal',
A: '\\uparrow',
V: '\\downarrow',
'|': '\\Vert',
'.': 'no arrow',
},
dp = function () {
return { type: 'styling', body: [], mode: 'math', style: 'display' };
},
_p = function (o) {
return o.type === 'textord' && o.text === '@';
},
Cv = function (o, s) {
return (o.type === 'mathord' || o.type === 'atom') && o.text === s;
};
function yv(S, o, s) {
var c = vv[S];
switch (c) {
case '\\\\cdrightarrow':
case '\\\\cdleftarrow':
return s.callFunction(c, [o[0]], [o[1]]);
case '\\uparrow':
case '\\downarrow': {
var _ = s.callFunction('\\\\cdleft', [o[0]], []),
h = { type: 'atom', text: c, mode: 'math', family: 'rel' },
b = s.callFunction('\\Big', [h], []),
C = s.callFunction('\\\\cdright', [o[1]], []),
A = { type: 'ordgroup', mode: 'math', body: [_, b, C] };
return s.callFunction('\\\\cdparent', [A], []);
}
case '\\\\cdlongequal':
return s.callFunction('\\\\cdlongequal', [], []);
case '\\Vert': {
var I = { type: 'textord', text: '\\Vert', mode: 'math' };
return s.callFunction('\\Big', [I], []);
}
default:
return { type: 'textord', text: ' ', mode: 'math' };
}
}
function Rv(S) {
var o = [];
for (S.gullet.beginGroup(), S.gullet.macros.set('\\cr', '\\\\\\relax'), S.gullet.beginGroup(); ; ) {
o.push(S.parseExpression(!1, '\\\\')), S.gullet.endGroup(), S.gullet.beginGroup();
var s = S.fetch().text;
if (s === '&' || s === '\\\\') S.consume();
else if (s === '\\end') {
o[o.length - 1].length === 0 && o.pop();
break;
} else throw new a('Expected \\\\ or \\cr or \\end', S.nextToken);
}
for (var c = [], _ = [c], h = 0; h < o.length; h++) {
for (var b = o[h], C = dp(), A = 0; A < b.length; A++)
if (!_p(b[A])) C.body.push(b[A]);
else {
c.push(C), (A += 1);
var I = zs(b[A]).text,
k = new Array(2);
if (
((k[0] = { type: 'ordgroup', mode: 'math', body: [] }),
(k[1] = { type: 'ordgroup', mode: 'math', body: [] }),
!('=|.'.indexOf(I) > -1))
)
if ('<>AV'.indexOf(I) > -1)
for (var W = 0; W < 2; W++) {
for (var ee = !0, J = A + 1; J < b.length; J++) {
if (Cv(b[J], I)) {
(ee = !1), (A = J);
break;
}
if (_p(b[J])) throw new a('Missing a ' + I + ' character to complete a CD arrow.', b[J]);
k[W].body.push(b[J]);
}
if (ee) throw new a('Missing a ' + I + ' character to complete a CD arrow.', b[A]);
}
else throw new a('Expected one of "<>AV=|." after @', b[A]);
var ie = yv(I, k, S),
pe = { type: 'styling', body: [ie], mode: 'math', style: 'display' };
c.push(pe), (C = dp());
}
h % 2 === 0 ? c.push(C) : c.shift(), (c = []), _.push(c);
}
S.gullet.endGroup(), S.gullet.endGroup();
var Te = new Array(_[0].length).fill({ type: 'align', align: 'c', pregap: 0.25, postgap: 0.25 });
return {
type: 'array',
mode: 'math',
body: _,
arraystretch: 1,
addJot: !0,
rowGaps: [null],
cols: Te,
colSeparationType: 'CD',
hLinesBeforeRow: new Array(_.length + 1).fill([]),
};
}
Re({
type: 'cdlabel',
names: ['\\\\cdleft', '\\\\cdright'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName;
return { type: 'cdlabel', mode: c.mode, side: _.slice(4), label: s[0] };
},
htmlBuilder: function (o, s) {
var c = s.havingStyle(s.style.sup()),
_ = V.wrapFragment(ot(o.label, c, s), s);
return _.classes.push('cd-label-' + o.side), (_.style.bottom = _e(0.8 - _.depth)), (_.height = 0), (_.depth = 0), _;
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mrow', [ft(o.label, s)]);
return (
(c = new ue.MathNode('mpadded', [c])),
c.setAttribute('width', '0'),
o.side === 'left' && c.setAttribute('lspace', '-1width'),
c.setAttribute('voffset', '0.7em'),
(c = new ue.MathNode('mstyle', [c])),
c.setAttribute('displaystyle', 'false'),
c.setAttribute('scriptlevel', '1'),
c
);
},
}),
Re({
type: 'cdlabelparent',
names: ['\\\\cdparent'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser;
return { type: 'cdlabelparent', mode: c.mode, fragment: s[0] };
},
htmlBuilder: function (o, s) {
var c = V.wrapFragment(ot(o.fragment, s), s);
return c.classes.push('cd-vert-arrow'), c;
},
mathmlBuilder: function (o, s) {
return new ue.MathNode('mrow', [ft(o.fragment, s)]);
},
}),
Re({
type: 'textord',
names: ['\\@char'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
for (var c = o.parser, _ = Xe(s[0], 'ordgroup'), h = _.body, b = '', C = 0; C < h.length; C++) {
var A = Xe(h[C], 'textord');
b += A.text;
}
var I = parseInt(b),
k;
if (isNaN(I)) throw new a('\\@char has non-numeric argument ' + b);
if (I < 0 || I >= 1114111) throw new a('\\@char with invalid code point ' + b);
return (
I <= 65535 ? (k = String.fromCharCode(I)) : ((I -= 65536), (k = String.fromCharCode((I >> 10) + 55296, (I & 1023) + 56320))),
{ type: 'textord', mode: c.mode, text: k }
);
},
});
var mp = function (o, s) {
var c = Gt(o.body, s.withColor(o.color), !1);
return V.makeFragment(c);
},
pp = function (o, s) {
var c = sr(o.body, s.withColor(o.color)),
_ = new ue.MathNode('mstyle', c);
return _.setAttribute('mathcolor', o.color), _;
};
Re({
type: 'color',
names: ['\\textcolor'],
props: { numArgs: 2, allowedInText: !0, argTypes: ['color', 'original'] },
handler: function (o, s) {
var c = o.parser,
_ = Xe(s[0], 'color-token').color,
h = s[1];
return { type: 'color', mode: c.mode, color: _, body: Dt(h) };
},
htmlBuilder: mp,
mathmlBuilder: pp,
}),
Re({
type: 'color',
names: ['\\color'],
props: { numArgs: 1, allowedInText: !0, argTypes: ['color'] },
handler: function (o, s) {
var c = o.parser,
_ = o.breakOnTokenText,
h = Xe(s[0], 'color-token').color;
c.gullet.macros.set('\\current@color', h);
var b = c.parseExpression(!0, _);
return { type: 'color', mode: c.mode, color: h, body: b };
},
htmlBuilder: mp,
mathmlBuilder: pp,
}),
Re({
type: 'cr',
names: ['\\\\'],
props: { numArgs: 0, numOptionalArgs: 0, allowedInText: !0 },
handler: function (o, s, c) {
var _ = o.parser,
h = _.gullet.future().text === '[' ? _.parseSizeGroup(!0) : null,
b =
!_.settings.displayMode ||
!_.settings.useStrictBehavior('newLineInDisplayMode', 'In LaTeX, \\\\ or \\newline does nothing in display mode');
return { type: 'cr', mode: _.mode, newLine: b, size: h && Xe(h, 'size').value };
},
htmlBuilder: function (o, s) {
var c = V.makeSpan(['mspace'], [], s);
return o.newLine && (c.classes.push('newline'), o.size && (c.style.marginTop = _e(nt(o.size, s)))), c;
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mspace');
return o.newLine && (c.setAttribute('linebreak', 'newline'), o.size && c.setAttribute('height', _e(nt(o.size, s)))), c;
},
});
var $s = {
'\\global': '\\global',
'\\long': '\\\\globallong',
'\\\\globallong': '\\\\globallong',
'\\def': '\\gdef',
'\\gdef': '\\gdef',
'\\edef': '\\xdef',
'\\xdef': '\\xdef',
'\\let': '\\\\globallet',
'\\futurelet': '\\\\globalfuture',
},
hp = function (o) {
var s = o.text;
if (/^(?:[\\{}$^_]|EOF)$/.test(s)) throw new a('Expected a control sequence', o);
return s;
},
Av = function (o) {
var s = o.gullet.popToken();
return s.text === '=' && ((s = o.gullet.popToken()), s.text === ' ' && (s = o.gullet.popToken())), s;
},
gp = function (o, s, c, _) {
var h = o.gullet.macros.get(c.text);
h == null && ((c.noexpand = !0), (h = { tokens: [c], numArgs: 0, unexpandable: !o.gullet.isExpandable(c.text) })),
o.gullet.macros.set(s, h, _);
};
Re({
type: 'internal',
names: ['\\global', '\\long', '\\\\globallong'],
props: { numArgs: 0, allowedInText: !0 },
handler: function (o) {
var s = o.parser,
c = o.funcName;
s.consumeSpaces();
var _ = s.fetch();
if ($s[_.text]) return (c === '\\global' || c === '\\\\globallong') && (_.text = $s[_.text]), Xe(s.parseFunction(), 'internal');
throw new a('Invalid token after macro prefix', _);
},
}),
Re({
type: 'internal',
names: ['\\def', '\\gdef', '\\edef', '\\xdef'],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler: function (o) {
var s = o.parser,
c = o.funcName,
_ = s.gullet.popToken(),
h = _.text;
if (/^(?:[\\{}$^_]|EOF)$/.test(h)) throw new a('Expected a control sequence', _);
for (var b = 0, C, A = [[]]; s.gullet.future().text !== '{'; )
if (((_ = s.gullet.popToken()), _.text === '#')) {
if (s.gullet.future().text === '{') {
(C = s.gullet.future()), A[b].push('{');
break;
}
if (((_ = s.gullet.popToken()), !/^[1-9]$/.test(_.text))) throw new a('Invalid argument number "' + _.text + '"');
if (parseInt(_.text) !== b + 1) throw new a('Argument number "' + _.text + '" out of order');
b++, A.push([]);
} else {
if (_.text === 'EOF') throw new a('Expected a macro definition');
A[b].push(_.text);
}
var I = s.gullet.consumeArg(),
k = I.tokens;
return (
C && k.unshift(C),
(c === '\\edef' || c === '\\xdef') && ((k = s.gullet.expandTokens(k)), k.reverse()),
s.gullet.macros.set(h, { tokens: k, numArgs: b, delimiters: A }, c === $s[c]),
{ type: 'internal', mode: s.mode }
);
},
}),
Re({
type: 'internal',
names: ['\\let', '\\\\globallet'],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler: function (o) {
var s = o.parser,
c = o.funcName,
_ = hp(s.gullet.popToken());
s.gullet.consumeSpaces();
var h = Av(s);
return gp(s, _, h, c === '\\\\globallet'), { type: 'internal', mode: s.mode };
},
}),
Re({
type: 'internal',
names: ['\\futurelet', '\\\\globalfuture'],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler: function (o) {
var s = o.parser,
c = o.funcName,
_ = hp(s.gullet.popToken()),
h = s.gullet.popToken(),
b = s.gullet.popToken();
return gp(s, _, b, c === '\\\\globalfuture'), s.gullet.pushToken(b), s.gullet.pushToken(h), { type: 'internal', mode: s.mode };
},
});
var Ji = function (o, s, c) {
var _ = ut.math[o] && ut.math[o].replace,
h = Ft(_ || o, s, c);
if (!h) throw new Error('Unsupported symbol ' + o + ' and font size ' + s + '.');
return h;
},
Vs = function (o, s, c, _) {
var h = c.havingBaseStyle(s),
b = V.makeSpan(_.concat(h.sizingClasses(c)), [o], c),
C = h.sizeMultiplier / c.sizeMultiplier;
return (b.height *= C), (b.depth *= C), (b.maxFontSize = h.sizeMultiplier), b;
},
fp = function (o, s, c) {
var _ = s.havingBaseStyle(c),
h = (1 - s.sizeMultiplier / _.sizeMultiplier) * s.fontMetrics().axisHeight;
o.classes.push('delimcenter'), (o.style.top = _e(h)), (o.height -= h), (o.depth += h);
},
Nv = function (o, s, c, _, h, b) {
var C = V.makeSymbol(o, 'Main-Regular', h, _),
A = Vs(C, s, _, b);
return c && fp(A, _, s), A;
},
Ov = function (o, s, c, _) {
return V.makeSymbol(o, 'Size' + s + '-Regular', c, _);
},
Ep = function (o, s, c, _, h, b) {
var C = Ov(o, s, h, _),
A = Vs(V.makeSpan(['delimsizing', 'size' + s], [C], _), ae.TEXT, _, b);
return c && fp(A, _, ae.TEXT), A;
},
Ws = function (o, s, c) {
var _;
s === 'Size1-Regular' ? (_ = 'delim-size1') : (_ = 'delim-size4');
var h = V.makeSpan(['delimsizinginner', _], [V.makeSpan([], [V.makeSymbol(o, s, c)])]);
return { type: 'elem', elem: h };
},
Ks = function (o, s, c) {
var _ = ke['Size4-Regular'][o.charCodeAt(0)] ? ke['Size4-Regular'][o.charCodeAt(0)][4] : ke['Size1-Regular'][o.charCodeAt(0)][4],
h = new mr('inner', fe(o, Math.round(1e3 * s))),
b = new jt([h], {
width: _e(_),
height: _e(s),
style: 'width:' + _e(_),
viewBox: '0 0 ' + 1e3 * _ + ' ' + Math.round(1e3 * s),
preserveAspectRatio: 'xMinYMin',
}),
C = V.makeSvgSpan([], [b], c);
return (C.height = s), (C.style.height = _e(s)), (C.style.width = _e(_)), { type: 'elem', elem: C };
},
Qs = 0.008,
Za = { type: 'kern', size: -1 * Qs },
Iv = ['|', '\\lvert', '\\rvert', '\\vert'],
xv = ['\\|', '\\lVert', '\\rVert', '\\Vert'],
Sp = function (o, s, c, _, h, b) {
var C,
A,
I,
k,
W = '',
ee = 0;
(C = I = k = o), (A = null);
var J = 'Size1-Regular';
o === '\\uparrow'
? (I = k = '⏐')
: o === '\\Uparrow'
? (I = k = '‖')
: o === '\\downarrow'
? (C = I = '⏐')
: o === '\\Downarrow'
? (C = I = '‖')
: o === '\\updownarrow'
? ((C = '\\uparrow'), (I = '⏐'), (k = '\\downarrow'))
: o === '\\Updownarrow'
? ((C = '\\Uparrow'), (I = '‖'), (k = '\\Downarrow'))
: w.contains(Iv, o)
? ((I = '∣'), (W = 'vert'), (ee = 333))
: w.contains(xv, o)
? ((I = '∥'), (W = 'doublevert'), (ee = 556))
: o === '[' || o === '\\lbrack'
? ((C = '⎡'), (I = '⎢'), (k = '⎣'), (J = 'Size4-Regular'), (W = 'lbrack'), (ee = 667))
: o === ']' || o === '\\rbrack'
? ((C = '⎤'), (I = '⎥'), (k = '⎦'), (J = 'Size4-Regular'), (W = 'rbrack'), (ee = 667))
: o === '\\lfloor' || o === '⌊'
? ((I = C = '⎢'), (k = '⎣'), (J = 'Size4-Regular'), (W = 'lfloor'), (ee = 667))
: o === '\\lceil' || o === '⌈'
? ((C = '⎡'), (I = k = '⎢'), (J = 'Size4-Regular'), (W = 'lceil'), (ee = 667))
: o === '\\rfloor' || o === '⌋'
? ((I = C = '⎥'), (k = '⎦'), (J = 'Size4-Regular'), (W = 'rfloor'), (ee = 667))
: o === '\\rceil' || o === '⌉'
? ((C = '⎤'), (I = k = '⎥'), (J = 'Size4-Regular'), (W = 'rceil'), (ee = 667))
: o === '(' || o === '\\lparen'
? ((C = '⎛'), (I = '⎜'), (k = '⎝'), (J = 'Size4-Regular'), (W = 'lparen'), (ee = 875))
: o === ')' || o === '\\rparen'
? ((C = '⎞'), (I = '⎟'), (k = '⎠'), (J = 'Size4-Regular'), (W = 'rparen'), (ee = 875))
: o === '\\{' || o === '\\lbrace'
? ((C = '⎧'), (A = '⎨'), (k = '⎩'), (I = '⎪'), (J = 'Size4-Regular'))
: o === '\\}' || o === '\\rbrace'
? ((C = '⎫'), (A = '⎬'), (k = '⎭'), (I = '⎪'), (J = 'Size4-Regular'))
: o === '\\lgroup' || o === '⟮'
? ((C = '⎧'), (k = '⎩'), (I = '⎪'), (J = 'Size4-Regular'))
: o === '\\rgroup' || o === '⟯'
? ((C = '⎫'), (k = '⎭'), (I = '⎪'), (J = 'Size4-Regular'))
: o === '\\lmoustache' || o === '⎰'
? ((C = '⎧'), (k = '⎭'), (I = '⎪'), (J = 'Size4-Regular'))
: (o === '\\rmoustache' || o === '⎱') && ((C = '⎫'), (k = '⎩'), (I = '⎪'), (J = 'Size4-Regular'));
var ie = Ji(C, J, h),
pe = ie.height + ie.depth,
Te = Ji(I, J, h),
Ie = Te.height + Te.depth,
Me = Ji(k, J, h),
Ue = Me.height + Me.depth,
lt = 0,
Je = 1;
if (A !== null) {
var mt = Ji(A, J, h);
(lt = mt.height + mt.depth), (Je = 2);
}
var st = pe + Ue + lt,
gt = Math.max(0, Math.ceil((s - st) / (Je * Ie))),
Ct = st + gt * Je * Ie,
Ht = _.fontMetrics().axisHeight;
c && (Ht *= _.sizeMultiplier);
var hr = Ct / 2 - Ht,
At = [];
if (W.length > 0) {
var Hn = Ct - pe - Ue,
Rr = Math.round(Ct * 1e3),
er = ge(W, Math.round(Hn * 1e3)),
Dn = new mr(W, er),
hi = (ee / 1e3).toFixed(3) + 'em',
gi = (Rr / 1e3).toFixed(3) + 'em',
pl = new jt([Dn], { width: hi, height: gi, viewBox: '0 0 ' + ee + ' ' + Rr }),
wn = V.makeSvgSpan([], [pl], _);
(wn.height = Rr / 1e3), (wn.style.width = hi), (wn.style.height = gi), At.push({ type: 'elem', elem: wn });
} else {
if ((At.push(Ws(k, J, h)), At.push(Za), A === null)) {
var Mn = Ct - pe - Ue + 2 * Qs;
At.push(Ks(I, Mn, _));
} else {
var Ar = (Ct - pe - Ue - lt) / 2 + 2 * Qs;
At.push(Ks(I, Ar, _)), At.push(Za), At.push(Ws(A, J, h)), At.push(Za), At.push(Ks(I, Ar, _));
}
At.push(Za), At.push(Ws(C, J, h));
}
var ta = _.havingBaseStyle(ae.TEXT),
hl = V.makeVList({ positionType: 'bottom', positionData: hr, children: At }, ta);
return Vs(V.makeSpan(['delimsizing', 'mult'], [hl], ta), ae.TEXT, _, b);
},
Zs = 80,
Xs = 0.08,
Js = function (o, s, c, _, h) {
var b = xt(o, _, c),
C = new mr(o, b),
A = new jt([C], { width: '400em', height: _e(s), viewBox: '0 0 400000 ' + c, preserveAspectRatio: 'xMinYMin slice' });
return V.makeSvgSpan(['hide-tail'], [A], h);
},
Dv = function (o, s) {
var c = s.havingBaseSizing(),
_ = Cp('\\surd', o * c.sizeMultiplier, vp, c),
h = c.sizeMultiplier,
b = Math.max(0, s.minRuleThickness - s.fontMetrics().sqrtRuleThickness),
C,
A = 0,
I = 0,
k = 0,
W;
return (
_.type === 'small'
? ((k = 1e3 + 1e3 * b + Zs),
o < 1 ? (h = 1) : o < 1.4 && (h = 0.7),
(A = (1 + b + Xs) / h),
(I = (1 + b) / h),
(C = Js('sqrtMain', A, k, b, s)),
(C.style.minWidth = '0.853em'),
(W = 0.833 / h))
: _.type === 'large'
? ((k = (1e3 + Zs) * ji[_.size]),
(I = (ji[_.size] + b) / h),
(A = (ji[_.size] + b + Xs) / h),
(C = Js('sqrtSize' + _.size, A, k, b, s)),
(C.style.minWidth = '1.02em'),
(W = 1 / h))
: ((A = o + b + Xs),
(I = o + b),
(k = Math.floor(1e3 * o + b) + Zs),
(C = Js('sqrtTall', A, k, b, s)),
(C.style.minWidth = '0.742em'),
(W = 1.056)),
(C.height = I),
(C.style.height = _e(A)),
{ span: C, advanceWidth: W, ruleWidth: (s.fontMetrics().sqrtRuleThickness + b) * h }
);
},
bp = [
'(',
'\\lparen',
')',
'\\rparen',
'[',
'\\lbrack',
']',
'\\rbrack',
'\\{',
'\\lbrace',
'\\}',
'\\rbrace',
'\\lfloor',
'\\rfloor',
'⌊',
'⌋',
'\\lceil',
'\\rceil',
'⌈',
'⌉',
'\\surd',
],
wv = [
'\\uparrow',
'\\downarrow',
'\\updownarrow',
'\\Uparrow',
'\\Downarrow',
'\\Updownarrow',
'|',
'\\|',
'\\vert',
'\\Vert',
'\\lvert',
'\\rvert',
'\\lVert',
'\\rVert',
'\\lgroup',
'\\rgroup',
'⟮',
'⟯',
'\\lmoustache',
'\\rmoustache',
'⎰',
'⎱',
],
Tp = ['<', '>', '\\langle', '\\rangle', '/', '\\backslash', '\\lt', '\\gt'],
ji = [0, 1.2, 1.8, 2.4, 3],
Mv = function (o, s, c, _, h) {
if (
(o === '<' || o === '\\lt' || o === '⟨' ? (o = '\\langle') : (o === '>' || o === '\\gt' || o === '⟩') && (o = '\\rangle'),
w.contains(bp, o) || w.contains(Tp, o))
)
return Ep(o, s, !1, c, _, h);
if (w.contains(wv, o)) return Sp(o, ji[s], !1, c, _, h);
throw new a("Illegal delimiter: '" + o + "'");
},
Lv = [
{ type: 'small', style: ae.SCRIPTSCRIPT },
{ type: 'small', style: ae.SCRIPT },
{ type: 'small', style: ae.TEXT },
{ type: 'large', size: 1 },
{ type: 'large', size: 2 },
{ type: 'large', size: 3 },
{ type: 'large', size: 4 },
],
kv = [{ type: 'small', style: ae.SCRIPTSCRIPT }, { type: 'small', style: ae.SCRIPT }, { type: 'small', style: ae.TEXT }, { type: 'stack' }],
vp = [
{ type: 'small', style: ae.SCRIPTSCRIPT },
{ type: 'small', style: ae.SCRIPT },
{ type: 'small', style: ae.TEXT },
{ type: 'large', size: 1 },
{ type: 'large', size: 2 },
{ type: 'large', size: 3 },
{ type: 'large', size: 4 },
{ type: 'stack' },
],
Pv = function (o) {
if (o.type === 'small') return 'Main-Regular';
if (o.type === 'large') return 'Size' + o.size + '-Regular';
if (o.type === 'stack') return 'Size4-Regular';
throw new Error("Add support for delim type '" + o.type + "' here.");
},
Cp = function (o, s, c, _) {
for (var h = Math.min(2, 3 - _.style.size), b = h; b < c.length && c[b].type !== 'stack'; b++) {
var C = Ji(o, Pv(c[b]), 'math'),
A = C.height + C.depth;
if (c[b].type === 'small') {
var I = _.havingBaseStyle(c[b].style);
A *= I.sizeMultiplier;
}
if (A > s) return c[b];
}
return c[c.length - 1];
},
yp = function (o, s, c, _, h, b) {
o === '<' || o === '\\lt' || o === '⟨' ? (o = '\\langle') : (o === '>' || o === '\\gt' || o === '⟩') && (o = '\\rangle');
var C;
w.contains(Tp, o) ? (C = Lv) : w.contains(bp, o) ? (C = vp) : (C = kv);
var A = Cp(o, s, C, _);
return A.type === 'small' ? Nv(o, A.style, c, _, h, b) : A.type === 'large' ? Ep(o, A.size, c, _, h, b) : Sp(o, s, c, _, h, b);
},
Bv = function (o, s, c, _, h, b) {
var C = _.fontMetrics().axisHeight * _.sizeMultiplier,
A = 901,
I = 5 / _.fontMetrics().ptPerEm,
k = Math.max(s - C, c + C),
W = Math.max((k / 500) * A, 2 * k - I);
return yp(o, W, !0, _, h, b);
},
gn = { sqrtImage: Dv, sizedDelim: Mv, sizeToMaxHeight: ji, customSizedDelim: yp, leftRightDelim: Bv },
Rp = {
'\\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 },
},
Fv = [
'(',
'\\lparen',
')',
'\\rparen',
'[',
'\\lbrack',
']',
'\\rbrack',
'\\{',
'\\lbrace',
'\\}',
'\\rbrace',
'\\lfloor',
'\\rfloor',
'⌊',
'⌋',
'\\lceil',
'\\rceil',
'⌈',
'⌉',
'<',
'>',
'\\langle',
'⟨',
'\\rangle',
'⟩',
'\\lt',
'\\gt',
'\\lvert',
'\\rvert',
'\\lVert',
'\\rVert',
'\\lgroup',
'\\rgroup',
'⟮',
'⟯',
'\\lmoustache',
'\\rmoustache',
'⎰',
'⎱',
'/',
'\\backslash',
'|',
'\\vert',
'\\|',
'\\Vert',
'\\uparrow',
'\\Uparrow',
'\\downarrow',
'\\Downarrow',
'\\updownarrow',
'\\Updownarrow',
'.',
];
function Xa(S, o) {
var s = Wa(S);
if (s && w.contains(Fv, s.text)) return s;
throw s ? new a("Invalid delimiter '" + s.text + "' after '" + o.funcName + "'", S) : new a("Invalid delimiter type '" + S.type + "'", S);
}
Re({
type: 'delimsizing',
names: [
'\\bigl',
'\\Bigl',
'\\biggl',
'\\Biggl',
'\\bigr',
'\\Bigr',
'\\biggr',
'\\Biggr',
'\\bigm',
'\\Bigm',
'\\biggm',
'\\Biggm',
'\\big',
'\\Big',
'\\bigg',
'\\Bigg',
],
props: { numArgs: 1, argTypes: ['primitive'] },
handler: function (o, s) {
var c = Xa(s[0], o);
return { type: 'delimsizing', mode: o.parser.mode, size: Rp[o.funcName].size, mclass: Rp[o.funcName].mclass, delim: c.text };
},
htmlBuilder: function (o, s) {
return o.delim === '.' ? V.makeSpan([o.mclass]) : gn.sizedDelim(o.delim, o.size, s, o.mode, [o.mclass]);
},
mathmlBuilder: function (o) {
var s = [];
o.delim !== '.' && s.push(yr(o.delim, o.mode));
var c = new ue.MathNode('mo', s);
o.mclass === 'mopen' || o.mclass === 'mclose' ? c.setAttribute('fence', 'true') : c.setAttribute('fence', 'false'),
c.setAttribute('stretchy', 'true');
var _ = _e(gn.sizeToMaxHeight[o.size]);
return c.setAttribute('minsize', _), c.setAttribute('maxsize', _), c;
},
});
function Ap(S) {
if (!S.body) throw new Error("Bug: The leftright ParseNode wasn't fully parsed.");
}
Re({
type: 'leftright-right',
names: ['\\right'],
props: { numArgs: 1, primitive: !0 },
handler: function (o, s) {
var c = o.parser.gullet.macros.get('\\current@color');
if (c && typeof c != 'string') throw new a('\\current@color set to non-string in \\right');
return { type: 'leftright-right', mode: o.parser.mode, delim: Xa(s[0], o).text, color: c };
},
}),
Re({
type: 'leftright',
names: ['\\left'],
props: { numArgs: 1, primitive: !0 },
handler: function (o, s) {
var c = Xa(s[0], o),
_ = o.parser;
++_.leftrightDepth;
var h = _.parseExpression(!1);
--_.leftrightDepth, _.expect('\\right', !1);
var b = Xe(_.parseFunction(), 'leftright-right');
return { type: 'leftright', mode: _.mode, body: h, left: c.text, right: b.delim, rightColor: b.color };
},
htmlBuilder: function (o, s) {
Ap(o);
for (var c = Gt(o.body, s, !0, ['mopen', 'mclose']), _ = 0, h = 0, b = !1, C = 0; C < c.length; C++)
c[C].isMiddle ? (b = !0) : ((_ = Math.max(c[C].height, _)), (h = Math.max(c[C].depth, h)));
(_ *= s.sizeMultiplier), (h *= s.sizeMultiplier);
var A;
if ((o.left === '.' ? (A = Zi(s, ['mopen'])) : (A = gn.leftRightDelim(o.left, _, h, s, o.mode, ['mopen'])), c.unshift(A), b))
for (var I = 1; I < c.length; I++) {
var k = c[I],
W = k.isMiddle;
W && (c[I] = gn.leftRightDelim(W.delim, _, h, W.options, o.mode, []));
}
var ee;
if (o.right === '.') ee = Zi(s, ['mclose']);
else {
var J = o.rightColor ? s.withColor(o.rightColor) : s;
ee = gn.leftRightDelim(o.right, _, h, J, o.mode, ['mclose']);
}
return c.push(ee), V.makeSpan(['minner'], c, s);
},
mathmlBuilder: function (o, s) {
Ap(o);
var c = sr(o.body, s);
if (o.left !== '.') {
var _ = new ue.MathNode('mo', [yr(o.left, o.mode)]);
_.setAttribute('fence', 'true'), c.unshift(_);
}
if (o.right !== '.') {
var h = new ue.MathNode('mo', [yr(o.right, o.mode)]);
h.setAttribute('fence', 'true'), o.rightColor && h.setAttribute('mathcolor', o.rightColor), c.push(h);
}
return qs(c);
},
}),
Re({
type: 'middle',
names: ['\\middle'],
props: { numArgs: 1, primitive: !0 },
handler: function (o, s) {
var c = Xa(s[0], o);
if (!o.parser.leftrightDepth) throw new a('\\middle without preceding \\left', c);
return { type: 'middle', mode: o.parser.mode, delim: c.text };
},
htmlBuilder: function (o, s) {
var c;
if (o.delim === '.') c = Zi(s, []);
else {
c = gn.sizedDelim(o.delim, 1, s, o.mode, []);
var _ = { delim: o.delim, options: s };
c.isMiddle = _;
}
return c;
},
mathmlBuilder: function (o, s) {
var c = o.delim === '\\vert' || o.delim === '|' ? yr('|', 'text') : yr(o.delim, o.mode),
_ = new ue.MathNode('mo', [c]);
return _.setAttribute('fence', 'true'), _.setAttribute('lspace', '0.05em'), _.setAttribute('rspace', '0.05em'), _;
},
});
var js = function (o, s) {
var c = V.wrapFragment(ot(o.body, s), s),
_ = o.label.slice(1),
h = s.sizeMultiplier,
b,
C = 0,
A = w.isCharacterBox(o.body);
if (_ === 'sout')
(b = V.makeSpan(['stretchy', 'sout'])), (b.height = s.fontMetrics().defaultRuleThickness / h), (C = -0.5 * s.fontMetrics().xHeight);
else if (_ === 'phase') {
var I = nt({ number: 0.6, unit: 'pt' }, s),
k = nt({ number: 0.35, unit: 'ex' }, s),
W = s.havingBaseSizing();
h = h / W.sizeMultiplier;
var ee = c.height + c.depth + I + k;
c.style.paddingLeft = _e(ee / 2 + I);
var J = Math.floor(1e3 * ee * h),
ie = pt(J),
pe = new jt([new mr('phase', ie)], {
width: '400em',
height: _e(J / 1e3),
viewBox: '0 0 400000 ' + J,
preserveAspectRatio: 'xMinYMin slice',
});
(b = V.makeSvgSpan(['hide-tail'], [pe], s)), (b.style.height = _e(ee)), (C = c.depth + I + k);
} else {
/cancel/.test(_) ? A || c.classes.push('cancel-pad') : _ === 'angl' ? c.classes.push('anglpad') : c.classes.push('boxpad');
var Te = 0,
Ie = 0,
Me = 0;
/box/.test(_)
? ((Me = Math.max(s.fontMetrics().fboxrule, s.minRuleThickness)),
(Te = s.fontMetrics().fboxsep + (_ === 'colorbox' ? 0 : Me)),
(Ie = Te))
: _ === 'angl'
? ((Me = Math.max(s.fontMetrics().defaultRuleThickness, s.minRuleThickness)), (Te = 4 * Me), (Ie = Math.max(0, 0.25 - c.depth)))
: ((Te = A ? 0.2 : 0), (Ie = Te)),
(b = hn.encloseSpan(c, _, Te, Ie, s)),
/fbox|boxed|fcolorbox/.test(_)
? ((b.style.borderStyle = 'solid'), (b.style.borderWidth = _e(Me)))
: _ === 'angl' && Me !== 0.049 && ((b.style.borderTopWidth = _e(Me)), (b.style.borderRightWidth = _e(Me))),
(C = c.depth + Ie),
o.backgroundColor && ((b.style.backgroundColor = o.backgroundColor), o.borderColor && (b.style.borderColor = o.borderColor));
}
var Ue;
if (o.backgroundColor)
Ue = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: b, shift: C },
{ type: 'elem', elem: c, shift: 0 },
],
},
s
);
else {
var lt = /cancel|phase/.test(_) ? ['svg-align'] : [];
Ue = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: c, shift: 0 },
{ type: 'elem', elem: b, shift: C, wrapperClasses: lt },
],
},
s
);
}
return (
/cancel/.test(_) && ((Ue.height = c.height), (Ue.depth = c.depth)),
/cancel/.test(_) && !A ? V.makeSpan(['mord', 'cancel-lap'], [Ue], s) : V.makeSpan(['mord'], [Ue], s)
);
},
el = function (o, s) {
var c = 0,
_ = new ue.MathNode(o.label.indexOf('colorbox') > -1 ? 'mpadded' : 'menclose', [ft(o.body, s)]);
switch (o.label) {
case '\\cancel':
_.setAttribute('notation', 'updiagonalstrike');
break;
case '\\bcancel':
_.setAttribute('notation', 'downdiagonalstrike');
break;
case '\\phase':
_.setAttribute('notation', 'phasorangle');
break;
case '\\sout':
_.setAttribute('notation', 'horizontalstrike');
break;
case '\\fbox':
_.setAttribute('notation', 'box');
break;
case '\\angl':
_.setAttribute('notation', 'actuarial');
break;
case '\\fcolorbox':
case '\\colorbox':
if (
((c = s.fontMetrics().fboxsep * s.fontMetrics().ptPerEm),
_.setAttribute('width', '+' + 2 * c + 'pt'),
_.setAttribute('height', '+' + 2 * c + 'pt'),
_.setAttribute('lspace', c + 'pt'),
_.setAttribute('voffset', c + 'pt'),
o.label === '\\fcolorbox')
) {
var h = Math.max(s.fontMetrics().fboxrule, s.minRuleThickness);
_.setAttribute('style', 'border: ' + h + 'em solid ' + String(o.borderColor));
}
break;
case '\\xcancel':
_.setAttribute('notation', 'updiagonalstrike downdiagonalstrike');
break;
}
return o.backgroundColor && _.setAttribute('mathbackground', o.backgroundColor), _;
};
Re({
type: 'enclose',
names: ['\\colorbox'],
props: { numArgs: 2, allowedInText: !0, argTypes: ['color', 'text'] },
handler: function (o, s, c) {
var _ = o.parser,
h = o.funcName,
b = Xe(s[0], 'color-token').color,
C = s[1];
return { type: 'enclose', mode: _.mode, label: h, backgroundColor: b, body: C };
},
htmlBuilder: js,
mathmlBuilder: el,
}),
Re({
type: 'enclose',
names: ['\\fcolorbox'],
props: { numArgs: 3, allowedInText: !0, argTypes: ['color', 'color', 'text'] },
handler: function (o, s, c) {
var _ = o.parser,
h = o.funcName,
b = Xe(s[0], 'color-token').color,
C = Xe(s[1], 'color-token').color,
A = s[2];
return { type: 'enclose', mode: _.mode, label: h, backgroundColor: C, borderColor: b, body: A };
},
htmlBuilder: js,
mathmlBuilder: el,
}),
Re({
type: 'enclose',
names: ['\\fbox'],
props: { numArgs: 1, argTypes: ['hbox'], allowedInText: !0 },
handler: function (o, s) {
var c = o.parser;
return { type: 'enclose', mode: c.mode, label: '\\fbox', body: s[0] };
},
}),
Re({
type: 'enclose',
names: ['\\cancel', '\\bcancel', '\\xcancel', '\\sout', '\\phase'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
return { type: 'enclose', mode: c.mode, label: _, body: h };
},
htmlBuilder: js,
mathmlBuilder: el,
}),
Re({
type: 'enclose',
names: ['\\angl'],
props: { numArgs: 1, argTypes: ['hbox'], allowedInText: !1 },
handler: function (o, s) {
var c = o.parser;
return { type: 'enclose', mode: c.mode, label: '\\angl', body: s[0] };
},
});
var Np = {};
function Qr(S) {
for (
var o = S.type,
s = S.names,
c = S.props,
_ = S.handler,
h = S.htmlBuilder,
b = S.mathmlBuilder,
C = { type: o, numArgs: c.numArgs || 0, allowedInText: !1, numOptionalArgs: 0, handler: _ },
A = 0;
A < s.length;
++A
)
Np[s[A]] = C;
h && (za[o] = h), b && (Ha[o] = b);
}
var Op = {};
function N(S, o) {
Op[S] = o;
}
var Pr = (function () {
function S(o, s, c) {
(this.lexer = void 0), (this.start = void 0), (this.end = void 0), (this.lexer = o), (this.start = s), (this.end = c);
}
return (
(S.range = function (s, c) {
return c ? (!s || !s.loc || !c.loc || s.loc.lexer !== c.loc.lexer ? null : new S(s.loc.lexer, s.loc.start, c.loc.end)) : s && s.loc;
}),
S
);
})(),
Zr = (function () {
function S(s, c) {
(this.text = void 0), (this.loc = void 0), (this.noexpand = void 0), (this.treatAsRelax = void 0), (this.text = s), (this.loc = c);
}
var o = S.prototype;
return (
(o.range = function (c, _) {
return new S(_, Pr.range(this, c));
}),
S
);
})();
function Ip(S) {
var o = [];
S.consumeSpaces();
var s = S.fetch().text;
for (s === '\\relax' && (S.consume(), S.consumeSpaces(), (s = S.fetch().text)); s === '\\hline' || s === '\\hdashline'; )
S.consume(), o.push(s === '\\hdashline'), S.consumeSpaces(), (s = S.fetch().text);
return o;
}
var Ja = function (o) {
var s = o.parser.settings;
if (!s.displayMode) throw new a('{' + o.envName + '} can be used only in display mode.');
};
function tl(S) {
if (S.indexOf('ed') === -1) return S.indexOf('*') === -1;
}
function In(S, o, s) {
var c = o.hskipBeforeAndAfter,
_ = o.addJot,
h = o.cols,
b = o.arraystretch,
C = o.colSeparationType,
A = o.autoTag,
I = o.singleRow,
k = o.emptySingleRow,
W = o.maxNumCols,
ee = o.leqno;
if ((S.gullet.beginGroup(), I || S.gullet.macros.set('\\cr', '\\\\\\relax'), !b)) {
var J = S.gullet.expandMacroAsText('\\arraystretch');
if (J == null) b = 1;
else if (((b = parseFloat(J)), !b || b < 0)) throw new a('Invalid \\arraystretch: ' + J);
}
S.gullet.beginGroup();
var ie = [],
pe = [ie],
Te = [],
Ie = [],
Me = A != null ? [] : void 0;
function Ue() {
A && S.gullet.macros.set('\\@eqnsw', '1', !0);
}
function lt() {
Me &&
(S.gullet.macros.get('\\df@tag')
? (Me.push(S.subparse([new Zr('\\df@tag')])), S.gullet.macros.set('\\df@tag', void 0, !0))
: Me.push(!!A && S.gullet.macros.get('\\@eqnsw') === '1'));
}
for (Ue(), Ie.push(Ip(S)); ; ) {
var Je = S.parseExpression(!1, I ? '\\end' : '\\\\');
S.gullet.endGroup(),
S.gullet.beginGroup(),
(Je = { type: 'ordgroup', mode: S.mode, body: Je }),
s && (Je = { type: 'styling', mode: S.mode, style: s, body: [Je] }),
ie.push(Je);
var mt = S.fetch().text;
if (mt === '&') {
if (W && ie.length === W) {
if (I || C) throw new a('Too many tab characters: &', S.nextToken);
S.settings.reportNonstrict('textEnv', 'Too few columns specified in the {array} column argument.');
}
S.consume();
} else if (mt === '\\end') {
lt(),
ie.length === 1 && Je.type === 'styling' && Je.body[0].body.length === 0 && (pe.length > 1 || !k) && pe.pop(),
Ie.length < pe.length + 1 && Ie.push([]);
break;
} else if (mt === '\\\\') {
S.consume();
var st = void 0;
S.gullet.future().text !== ' ' && (st = S.parseSizeGroup(!0)),
Te.push(st ? st.value : null),
lt(),
Ie.push(Ip(S)),
(ie = []),
pe.push(ie),
Ue();
} else throw new a('Expected & or \\\\ or \\cr or \\end', S.nextToken);
}
return (
S.gullet.endGroup(),
S.gullet.endGroup(),
{
type: 'array',
mode: S.mode,
addJot: _,
arraystretch: b,
body: pe,
cols: h,
rowGaps: Te,
hskipBeforeAndAfter: c,
hLinesBeforeRow: Ie,
colSeparationType: C,
tags: Me,
leqno: ee,
}
);
}
function rl(S) {
return S.slice(0, 1) === 'd' ? 'display' : 'text';
}
var Xr = function (o, s) {
var c,
_,
h = o.body.length,
b = o.hLinesBeforeRow,
C = 0,
A = new Array(h),
I = [],
k = Math.max(s.fontMetrics().arrayRuleWidth, s.minRuleThickness),
W = 1 / s.fontMetrics().ptPerEm,
ee = 5 * W;
if (o.colSeparationType && o.colSeparationType === 'small') {
var J = s.havingStyle(ae.SCRIPT).sizeMultiplier;
ee = 0.2778 * (J / s.sizeMultiplier);
}
var ie = o.colSeparationType === 'CD' ? nt({ number: 3, unit: 'ex' }, s) : 12 * W,
pe = 3 * W,
Te = o.arraystretch * ie,
Ie = 0.7 * Te,
Me = 0.3 * Te,
Ue = 0;
function lt(ro) {
for (var no = 0; no < ro.length; ++no) no > 0 && (Ue += 0.25), I.push({ pos: Ue, isDashed: ro[no] });
}
for (lt(b[0]), c = 0; c < o.body.length; ++c) {
var Je = o.body[c],
mt = Ie,
st = Me;
C < Je.length && (C = Je.length);
var gt = new Array(Je.length);
for (_ = 0; _ < Je.length; ++_) {
var Ct = ot(Je[_], s);
st < Ct.depth && (st = Ct.depth), mt < Ct.height && (mt = Ct.height), (gt[_] = Ct);
}
var Ht = o.rowGaps[c],
hr = 0;
Ht && ((hr = nt(Ht, s)), hr > 0 && ((hr += Me), st < hr && (st = hr), (hr = 0))),
o.addJot && (st += pe),
(gt.height = mt),
(gt.depth = st),
(Ue += mt),
(gt.pos = Ue),
(Ue += st + hr),
(A[c] = gt),
lt(b[c + 1]);
}
var At = Ue / 2 + s.fontMetrics().axisHeight,
Hn = o.cols || [],
Rr = [],
er,
Dn,
hi = [];
if (
o.tags &&
o.tags.some(function (ro) {
return ro;
})
)
for (c = 0; c < h; ++c) {
var gi = A[c],
pl = gi.pos - At,
wn = o.tags[c],
Mn = void 0;
wn === !0 ? (Mn = V.makeSpan(['eqn-num'], [], s)) : wn === !1 ? (Mn = V.makeSpan([], [], s)) : (Mn = V.makeSpan([], Gt(wn, s, !0), s)),
(Mn.depth = gi.depth),
(Mn.height = gi.height),
hi.push({ type: 'elem', elem: Mn, shift: pl });
}
for (_ = 0, Dn = 0; _ < C || Dn < Hn.length; ++_, ++Dn) {
for (var Ar = Hn[Dn] || {}, ta = !0; Ar.type === 'separator'; ) {
if (
(ta || ((er = V.makeSpan(['arraycolsep'], [])), (er.style.width = _e(s.fontMetrics().doubleRuleSep)), Rr.push(er)),
Ar.separator === '|' || Ar.separator === ':')
) {
var hl = Ar.separator === '|' ? 'solid' : 'dashed',
fi = V.makeSpan(['vertical-separator'], [], s);
(fi.style.height = _e(Ue)),
(fi.style.borderRightWidth = _e(k)),
(fi.style.borderRightStyle = hl),
(fi.style.margin = '0 ' + _e(-k / 2));
var u0 = Ue - At;
u0 && (fi.style.verticalAlign = _e(-u0)), Rr.push(fi);
} else throw new a('Invalid separator type: ' + Ar.separator);
Dn++, (Ar = Hn[Dn] || {}), (ta = !1);
}
if (!(_ >= C)) {
var Ei = void 0;
(_ > 0 || o.hskipBeforeAndAfter) &&
((Ei = w.deflt(Ar.pregap, ee)), Ei !== 0 && ((er = V.makeSpan(['arraycolsep'], [])), (er.style.width = _e(Ei)), Rr.push(er)));
var Si = [];
for (c = 0; c < h; ++c) {
var eo = A[c],
to = eo[_];
if (to) {
var dC = eo.pos - At;
(to.depth = eo.depth), (to.height = eo.height), Si.push({ type: 'elem', elem: to, shift: dC });
}
}
(Si = V.makeVList({ positionType: 'individualShift', children: Si }, s)),
(Si = V.makeSpan(['col-align-' + (Ar.align || 'c')], [Si])),
Rr.push(Si),
(_ < C - 1 || o.hskipBeforeAndAfter) &&
((Ei = w.deflt(Ar.postgap, ee)), Ei !== 0 && ((er = V.makeSpan(['arraycolsep'], [])), (er.style.width = _e(Ei)), Rr.push(er)));
}
}
if (((A = V.makeSpan(['mtable'], Rr)), I.length > 0)) {
for (
var _C = V.makeLineSpan('hline', s, k), mC = V.makeLineSpan('hdashline', s, k), gl = [{ type: 'elem', elem: A, shift: 0 }];
I.length > 0;
) {
var d0 = I.pop(),
_0 = d0.pos - At;
d0.isDashed ? gl.push({ type: 'elem', elem: mC, shift: _0 }) : gl.push({ type: 'elem', elem: _C, shift: _0 });
}
A = V.makeVList({ positionType: 'individualShift', children: gl }, s);
}
if (hi.length === 0) return V.makeSpan(['mord'], [A], s);
var fl = V.makeVList({ positionType: 'individualShift', children: hi }, s);
return (fl = V.makeSpan(['tag'], [fl], s)), V.makeFragment([A, fl]);
},
Uv = { c: 'center ', l: 'left ', r: 'right ' },
Jr = function (o, s) {
for (
var c = [], _ = new ue.MathNode('mtd', [], ['mtr-glue']), h = new ue.MathNode('mtd', [], ['mml-eqn-num']), b = 0;
b < o.body.length;
b++
) {
for (var C = o.body[b], A = [], I = 0; I < C.length; I++) A.push(new ue.MathNode('mtd', [ft(C[I], s)]));
o.tags && o.tags[b] && (A.unshift(_), A.push(_), o.leqno ? A.unshift(h) : A.push(h)), c.push(new ue.MathNode('mtr', A));
}
var k = new ue.MathNode('mtable', c),
W = o.arraystretch === 0.5 ? 0.1 : 0.16 + o.arraystretch - 1 + (o.addJot ? 0.09 : 0);
k.setAttribute('rowspacing', _e(W));
var ee = '',
J = '';
if (o.cols && o.cols.length > 0) {
var ie = o.cols,
pe = '',
Te = !1,
Ie = 0,
Me = ie.length;
ie[0].type === 'separator' && ((ee += 'top '), (Ie = 1)), ie[ie.length - 1].type === 'separator' && ((ee += 'bottom '), (Me -= 1));
for (var Ue = Ie; Ue < Me; Ue++)
ie[Ue].type === 'align'
? ((J += Uv[ie[Ue].align]), Te && (pe += 'none '), (Te = !0))
: ie[Ue].type === 'separator' && Te && ((pe += ie[Ue].separator === '|' ? 'solid ' : 'dashed '), (Te = !1));
k.setAttribute('columnalign', J.trim()), /[sd]/.test(pe) && k.setAttribute('columnlines', pe.trim());
}
if (o.colSeparationType === 'align') {
for (var lt = o.cols || [], Je = '', mt = 1; mt < lt.length; mt++) Je += mt % 2 ? '0em ' : '1em ';
k.setAttribute('columnspacing', Je.trim());
} else
o.colSeparationType === 'alignat' || o.colSeparationType === 'gather'
? k.setAttribute('columnspacing', '0em')
: o.colSeparationType === 'small'
? k.setAttribute('columnspacing', '0.2778em')
: o.colSeparationType === 'CD'
? k.setAttribute('columnspacing', '0.5em')
: k.setAttribute('columnspacing', '1em');
var st = '',
gt = o.hLinesBeforeRow;
(ee += gt[0].length > 0 ? 'left ' : ''), (ee += gt[gt.length - 1].length > 0 ? 'right ' : '');
for (var Ct = 1; Ct < gt.length - 1; Ct++) st += gt[Ct].length === 0 ? 'none ' : gt[Ct][0] ? 'dashed ' : 'solid ';
return (
/[sd]/.test(st) && k.setAttribute('rowlines', st.trim()),
ee !== '' && ((k = new ue.MathNode('menclose', [k])), k.setAttribute('notation', ee.trim())),
o.arraystretch && o.arraystretch < 1 && ((k = new ue.MathNode('mstyle', [k])), k.setAttribute('scriptlevel', '1')),
k
);
},
xp = function (o, s) {
o.envName.indexOf('ed') === -1 && Ja(o);
var c = [],
_ = o.envName.indexOf('at') > -1 ? 'alignat' : 'align',
h = o.envName === 'split',
b = In(
o.parser,
{
cols: c,
addJot: !0,
autoTag: h ? void 0 : tl(o.envName),
emptySingleRow: !0,
colSeparationType: _,
maxNumCols: h ? 2 : void 0,
leqno: o.parser.settings.leqno,
},
'display'
),
C,
A = 0,
I = { type: 'ordgroup', mode: o.mode, body: [] };
if (s[0] && s[0].type === 'ordgroup') {
for (var k = '', W = 0; W < s[0].body.length; W++) {
var ee = Xe(s[0].body[W], 'textord');
k += ee.text;
}
(C = Number(k)), (A = C * 2);
}
var J = !A;
b.body.forEach(function (Ie) {
for (var Me = 1; Me < Ie.length; Me += 2) {
var Ue = Xe(Ie[Me], 'styling'),
lt = Xe(Ue.body[0], 'ordgroup');
lt.body.unshift(I);
}
if (J) A < Ie.length && (A = Ie.length);
else {
var Je = Ie.length / 2;
if (C < Je) throw new a('Too many math in a row: ' + ('expected ' + C + ', but got ' + Je), Ie[0]);
}
});
for (var ie = 0; ie < A; ++ie) {
var pe = 'r',
Te = 0;
ie % 2 === 1 ? (pe = 'l') : ie > 0 && J && (Te = 1), (c[ie] = { type: 'align', align: pe, pregap: Te, postgap: 0 });
}
return (b.colSeparationType = J ? 'align' : 'alignat'), b;
};
Qr({
type: 'array',
names: ['array', 'darray'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = Wa(s[0]),
_ = c ? [s[0]] : Xe(s[0], 'ordgroup').body,
h = _.map(function (C) {
var A = zs(C),
I = A.text;
if ('lcr'.indexOf(I) !== -1) return { type: 'align', align: I };
if (I === '|') return { type: 'separator', separator: '|' };
if (I === ':') return { type: 'separator', separator: ':' };
throw new a('Unknown column alignment: ' + I, C);
}),
b = { cols: h, hskipBeforeAndAfter: !0, maxNumCols: h.length };
return In(o.parser, b, rl(o.envName));
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({
type: 'array',
names: [
'matrix',
'pmatrix',
'bmatrix',
'Bmatrix',
'vmatrix',
'Vmatrix',
'matrix*',
'pmatrix*',
'bmatrix*',
'Bmatrix*',
'vmatrix*',
'Vmatrix*',
],
props: { numArgs: 0 },
handler: function (o) {
var s = {
matrix: null,
pmatrix: ['(', ')'],
bmatrix: ['[', ']'],
Bmatrix: ['\\{', '\\}'],
vmatrix: ['|', '|'],
Vmatrix: ['\\Vert', '\\Vert'],
}[o.envName.replace('*', '')],
c = 'c',
_ = { hskipBeforeAndAfter: !1, cols: [{ type: 'align', align: c }] };
if (o.envName.charAt(o.envName.length - 1) === '*') {
var h = o.parser;
if ((h.consumeSpaces(), h.fetch().text === '[')) {
if ((h.consume(), h.consumeSpaces(), (c = h.fetch().text), 'lcr'.indexOf(c) === -1)) throw new a('Expected l or c or r', h.nextToken);
h.consume(), h.consumeSpaces(), h.expect(']'), h.consume(), (_.cols = [{ type: 'align', align: c }]);
}
}
var b = In(o.parser, _, rl(o.envName)),
C = Math.max.apply(
Math,
[0].concat(
b.body.map(function (A) {
return A.length;
})
)
);
return (
(b.cols = new Array(C).fill({ type: 'align', align: c })),
s ? { type: 'leftright', mode: o.mode, body: [b], left: s[0], right: s[1], rightColor: void 0 } : b
);
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({
type: 'array',
names: ['smallmatrix'],
props: { numArgs: 0 },
handler: function (o) {
var s = { arraystretch: 0.5 },
c = In(o.parser, s, 'script');
return (c.colSeparationType = 'small'), c;
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({
type: 'array',
names: ['subarray'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = Wa(s[0]),
_ = c ? [s[0]] : Xe(s[0], 'ordgroup').body,
h = _.map(function (C) {
var A = zs(C),
I = A.text;
if ('lc'.indexOf(I) !== -1) return { type: 'align', align: I };
throw new a('Unknown column alignment: ' + I, C);
});
if (h.length > 1) throw new a('{subarray} can contain only one column');
var b = { cols: h, hskipBeforeAndAfter: !1, arraystretch: 0.5 };
if (((b = In(o.parser, b, 'script')), b.body.length > 0 && b.body[0].length > 1)) throw new a('{subarray} can contain only one column');
return b;
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({
type: 'array',
names: ['cases', 'dcases', 'rcases', 'drcases'],
props: { numArgs: 0 },
handler: function (o) {
var s = {
arraystretch: 1.2,
cols: [
{ type: 'align', align: 'l', pregap: 0, postgap: 1 },
{ type: 'align', align: 'l', pregap: 0, postgap: 0 },
],
},
c = In(o.parser, s, rl(o.envName));
return {
type: 'leftright',
mode: o.mode,
body: [c],
left: o.envName.indexOf('r') > -1 ? '.' : '\\{',
right: o.envName.indexOf('r') > -1 ? '\\}' : '.',
rightColor: void 0,
};
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({ type: 'array', names: ['align', 'align*', 'aligned', 'split'], props: { numArgs: 0 }, handler: xp, htmlBuilder: Xr, mathmlBuilder: Jr }),
Qr({
type: 'array',
names: ['gathered', 'gather', 'gather*'],
props: { numArgs: 0 },
handler: function (o) {
w.contains(['gather', 'gather*'], o.envName) && Ja(o);
var s = {
cols: [{ type: 'align', align: 'c' }],
addJot: !0,
colSeparationType: 'gather',
autoTag: tl(o.envName),
emptySingleRow: !0,
leqno: o.parser.settings.leqno,
};
return In(o.parser, s, 'display');
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({ type: 'array', names: ['alignat', 'alignat*', 'alignedat'], props: { numArgs: 1 }, handler: xp, htmlBuilder: Xr, mathmlBuilder: Jr }),
Qr({
type: 'array',
names: ['equation', 'equation*'],
props: { numArgs: 0 },
handler: function (o) {
Ja(o);
var s = { autoTag: tl(o.envName), emptySingleRow: !0, singleRow: !0, maxNumCols: 1, leqno: o.parser.settings.leqno };
return In(o.parser, s, 'display');
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
Qr({
type: 'array',
names: ['CD'],
props: { numArgs: 0 },
handler: function (o) {
return Ja(o), Rv(o.parser);
},
htmlBuilder: Xr,
mathmlBuilder: Jr,
}),
N('\\nonumber', '\\gdef\\@eqnsw{0}'),
N('\\notag', '\\nonumber'),
Re({
type: 'text',
names: ['\\hline', '\\hdashline'],
props: { numArgs: 0, allowedInText: !0, allowedInMath: !0 },
handler: function (o, s) {
throw new a(o.funcName + ' valid only within array environment');
},
});
var Gv = Np,
Dp = Gv;
Re({
type: 'environment',
names: ['\\begin', '\\end'],
props: { numArgs: 1, argTypes: ['text'] },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
if (h.type !== 'ordgroup') throw new a('Invalid environment name', h);
for (var b = '', C = 0; C < h.body.length; ++C) b += Xe(h.body[C], 'textord').text;
if (_ === '\\begin') {
if (!Dp.hasOwnProperty(b)) throw new a('No such environment: ' + b, h);
var A = Dp[b],
I = c.parseArguments('\\begin{' + b + '}', A),
k = I.args,
W = I.optArgs,
ee = { mode: c.mode, envName: b, parser: c },
J = A.handler(ee, k, W);
c.expect('\\end', !1);
var ie = c.nextToken,
pe = Xe(c.parseFunction(), 'environment');
if (pe.name !== b) throw new a('Mismatch: \\begin{' + b + '} matched by \\end{' + pe.name + '}', ie);
return J;
}
return { type: 'environment', mode: c.mode, name: b, nameGroup: h };
},
});
var wp = function (o, s) {
var c = o.font,
_ = s.withFont(c);
return ot(o.body, _);
},
Mp = function (o, s) {
var c = o.font,
_ = s.withFont(c);
return ft(o.body, _);
},
Lp = { '\\Bbb': '\\mathbb', '\\bold': '\\mathbf', '\\frak': '\\mathfrak', '\\bm': '\\boldsymbol' };
Re({
type: 'font',
names: [
'\\mathrm',
'\\mathit',
'\\mathbf',
'\\mathnormal',
'\\mathbb',
'\\mathcal',
'\\mathfrak',
'\\mathscr',
'\\mathsf',
'\\mathtt',
'\\Bbb',
'\\bold',
'\\frak',
],
props: { numArgs: 1, allowedInArgument: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = $a(s[0]),
b = _;
return b in Lp && (b = Lp[b]), { type: 'font', mode: c.mode, font: b.slice(1), body: h };
},
htmlBuilder: wp,
mathmlBuilder: Mp,
}),
Re({
type: 'mclass',
names: ['\\boldsymbol', '\\bm'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = s[0],
h = w.isCharacterBox(_);
return {
type: 'mclass',
mode: c.mode,
mclass: Qa(_),
body: [{ type: 'font', mode: c.mode, font: 'boldsymbol', body: _ }],
isCharacterBox: h,
};
},
}),
Re({
type: 'font',
names: ['\\rm', '\\sf', '\\tt', '\\bf', '\\it', '\\cal'],
props: { numArgs: 0, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = o.breakOnTokenText,
b = c.mode,
C = c.parseExpression(!0, h),
A = 'math' + _.slice(1);
return { type: 'font', mode: b, font: A, body: { type: 'ordgroup', mode: c.mode, body: C } };
},
htmlBuilder: wp,
mathmlBuilder: Mp,
});
var kp = function (o, s) {
var c = s;
return (
o === 'display'
? (c = c.id >= ae.SCRIPT.id ? c.text() : ae.DISPLAY)
: o === 'text' && c.size === ae.DISPLAY.size
? (c = ae.TEXT)
: o === 'script'
? (c = ae.SCRIPT)
: o === 'scriptscript' && (c = ae.SCRIPTSCRIPT),
c
);
},
nl = function (o, s) {
var c = kp(o.size, s.style),
_ = c.fracNum(),
h = c.fracDen(),
b;
b = s.havingStyle(_);
var C = ot(o.numer, b, s);
if (o.continued) {
var A = 8.5 / s.fontMetrics().ptPerEm,
I = 3.5 / s.fontMetrics().ptPerEm;
(C.height = C.height < A ? A : C.height), (C.depth = C.depth < I ? I : C.depth);
}
b = s.havingStyle(h);
var k = ot(o.denom, b, s),
W,
ee,
J;
o.hasBarLine
? (o.barSize ? ((ee = nt(o.barSize, s)), (W = V.makeLineSpan('frac-line', s, ee))) : (W = V.makeLineSpan('frac-line', s)),
(ee = W.height),
(J = W.height))
: ((W = null), (ee = 0), (J = s.fontMetrics().defaultRuleThickness));
var ie, pe, Te;
c.size === ae.DISPLAY.size || o.size === 'display'
? ((ie = s.fontMetrics().num1), ee > 0 ? (pe = 3 * J) : (pe = 7 * J), (Te = s.fontMetrics().denom1))
: (ee > 0 ? ((ie = s.fontMetrics().num2), (pe = J)) : ((ie = s.fontMetrics().num3), (pe = 3 * J)), (Te = s.fontMetrics().denom2));
var Ie;
if (W) {
var Ue = s.fontMetrics().axisHeight;
ie - C.depth - (Ue + 0.5 * ee) < pe && (ie += pe - (ie - C.depth - (Ue + 0.5 * ee))),
Ue - 0.5 * ee - (k.height - Te) < pe && (Te += pe - (Ue - 0.5 * ee - (k.height - Te)));
var lt = -(Ue - 0.5 * ee);
Ie = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: k, shift: Te },
{ type: 'elem', elem: W, shift: lt },
{ type: 'elem', elem: C, shift: -ie },
],
},
s
);
} else {
var Me = ie - C.depth - (k.height - Te);
Me < pe && ((ie += 0.5 * (pe - Me)), (Te += 0.5 * (pe - Me))),
(Ie = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: k, shift: Te },
{ type: 'elem', elem: C, shift: -ie },
],
},
s
));
}
(b = s.havingStyle(c)), (Ie.height *= b.sizeMultiplier / s.sizeMultiplier), (Ie.depth *= b.sizeMultiplier / s.sizeMultiplier);
var Je;
c.size === ae.DISPLAY.size
? (Je = s.fontMetrics().delim1)
: c.size === ae.SCRIPTSCRIPT.size
? (Je = s.havingStyle(ae.SCRIPT).fontMetrics().delim2)
: (Je = s.fontMetrics().delim2);
var mt, st;
return (
o.leftDelim == null ? (mt = Zi(s, ['mopen'])) : (mt = gn.customSizedDelim(o.leftDelim, Je, !0, s.havingStyle(c), o.mode, ['mopen'])),
o.continued
? (st = V.makeSpan([]))
: o.rightDelim == null
? (st = Zi(s, ['mclose']))
: (st = gn.customSizedDelim(o.rightDelim, Je, !0, s.havingStyle(c), o.mode, ['mclose'])),
V.makeSpan(['mord'].concat(b.sizingClasses(s)), [mt, V.makeSpan(['mfrac'], [Ie]), st], s)
);
},
il = function (o, s) {
var c = new ue.MathNode('mfrac', [ft(o.numer, s), ft(o.denom, s)]);
if (!o.hasBarLine) c.setAttribute('linethickness', '0px');
else if (o.barSize) {
var _ = nt(o.barSize, s);
c.setAttribute('linethickness', _e(_));
}
var h = kp(o.size, s.style);
if (h.size !== s.style.size) {
c = new ue.MathNode('mstyle', [c]);
var b = h.size === ae.DISPLAY.size ? 'true' : 'false';
c.setAttribute('displaystyle', b), c.setAttribute('scriptlevel', '0');
}
if (o.leftDelim != null || o.rightDelim != null) {
var C = [];
if (o.leftDelim != null) {
var A = new ue.MathNode('mo', [new ue.TextNode(o.leftDelim.replace('\\', ''))]);
A.setAttribute('fence', 'true'), C.push(A);
}
if ((C.push(c), o.rightDelim != null)) {
var I = new ue.MathNode('mo', [new ue.TextNode(o.rightDelim.replace('\\', ''))]);
I.setAttribute('fence', 'true'), C.push(I);
}
return qs(C);
}
return c;
};
Re({
type: 'genfrac',
names: ['\\dfrac', '\\frac', '\\tfrac', '\\dbinom', '\\binom', '\\tbinom', '\\\\atopfrac', '\\\\bracefrac', '\\\\brackfrac'],
props: { numArgs: 2, allowedInArgument: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0],
b = s[1],
C,
A = null,
I = null,
k = 'auto';
switch (_) {
case '\\dfrac':
case '\\frac':
case '\\tfrac':
C = !0;
break;
case '\\\\atopfrac':
C = !1;
break;
case '\\dbinom':
case '\\binom':
case '\\tbinom':
(C = !1), (A = '('), (I = ')');
break;
case '\\\\bracefrac':
(C = !1), (A = '\\{'), (I = '\\}');
break;
case '\\\\brackfrac':
(C = !1), (A = '['), (I = ']');
break;
default:
throw new Error('Unrecognized genfrac command');
}
switch (_) {
case '\\dfrac':
case '\\dbinom':
k = 'display';
break;
case '\\tfrac':
case '\\tbinom':
k = 'text';
break;
}
return {
type: 'genfrac',
mode: c.mode,
continued: !1,
numer: h,
denom: b,
hasBarLine: C,
leftDelim: A,
rightDelim: I,
size: k,
barSize: null,
};
},
htmlBuilder: nl,
mathmlBuilder: il,
}),
Re({
type: 'genfrac',
names: ['\\cfrac'],
props: { numArgs: 2 },
handler: function (o, s) {
var c = o.parser;
o.funcName;
var _ = s[0],
h = s[1];
return {
type: 'genfrac',
mode: c.mode,
continued: !0,
numer: _,
denom: h,
hasBarLine: !0,
leftDelim: null,
rightDelim: null,
size: 'display',
barSize: null,
};
},
}),
Re({
type: 'infix',
names: ['\\over', '\\choose', '\\atop', '\\brace', '\\brack'],
props: { numArgs: 0, infix: !0 },
handler: function (o) {
var s = o.parser,
c = o.funcName,
_ = o.token,
h;
switch (c) {
case '\\over':
h = '\\frac';
break;
case '\\choose':
h = '\\binom';
break;
case '\\atop':
h = '\\\\atopfrac';
break;
case '\\brace':
h = '\\\\bracefrac';
break;
case '\\brack':
h = '\\\\brackfrac';
break;
default:
throw new Error('Unrecognized infix genfrac command');
}
return { type: 'infix', mode: s.mode, replaceWith: h, token: _ };
},
});
var Pp = ['display', 'text', 'script', 'scriptscript'],
Bp = function (o) {
var s = null;
return o.length > 0 && ((s = o), (s = s === '.' ? null : s)), s;
};
Re({
type: 'genfrac',
names: ['\\genfrac'],
props: { numArgs: 6, allowedInArgument: !0, argTypes: ['math', 'math', 'size', 'text', 'math', 'math'] },
handler: function (o, s) {
var c = o.parser,
_ = s[4],
h = s[5],
b = $a(s[0]),
C = b.type === 'atom' && b.family === 'open' ? Bp(b.text) : null,
A = $a(s[1]),
I = A.type === 'atom' && A.family === 'close' ? Bp(A.text) : null,
k = Xe(s[2], 'size'),
W,
ee = null;
k.isBlank ? (W = !0) : ((ee = k.value), (W = ee.number > 0));
var J = 'auto',
ie = s[3];
if (ie.type === 'ordgroup') {
if (ie.body.length > 0) {
var pe = Xe(ie.body[0], 'textord');
J = Pp[Number(pe.text)];
}
} else (ie = Xe(ie, 'textord')), (J = Pp[Number(ie.text)]);
return {
type: 'genfrac',
mode: c.mode,
numer: _,
denom: h,
continued: !1,
hasBarLine: W,
barSize: ee,
leftDelim: C,
rightDelim: I,
size: J,
};
},
htmlBuilder: nl,
mathmlBuilder: il,
}),
Re({
type: 'infix',
names: ['\\above'],
props: { numArgs: 1, argTypes: ['size'], infix: !0 },
handler: function (o, s) {
var c = o.parser;
o.funcName;
var _ = o.token;
return { type: 'infix', mode: c.mode, replaceWith: '\\\\abovefrac', size: Xe(s[0], 'size').value, token: _ };
},
}),
Re({
type: 'genfrac',
names: ['\\\\abovefrac'],
props: { numArgs: 3, argTypes: ['math', 'size', 'math'] },
handler: function (o, s) {
var c = o.parser;
o.funcName;
var _ = s[0],
h = O(Xe(s[1], 'infix').size),
b = s[2],
C = h.number > 0;
return {
type: 'genfrac',
mode: c.mode,
numer: _,
denom: b,
continued: !1,
hasBarLine: C,
barSize: h,
leftDelim: null,
rightDelim: null,
size: 'auto',
};
},
htmlBuilder: nl,
mathmlBuilder: il,
});
var Fp = function (o, s) {
var c = s.style,
_,
h;
o.type === 'supsub'
? ((_ = o.sup ? ot(o.sup, s.havingStyle(c.sup()), s) : ot(o.sub, s.havingStyle(c.sub()), s)), (h = Xe(o.base, 'horizBrace')))
: (h = Xe(o, 'horizBrace'));
var b = ot(h.base, s.havingBaseStyle(ae.DISPLAY)),
C = hn.svgSpan(h, s),
A;
if (
(h.isOver
? ((A = V.makeVList(
{
positionType: 'firstBaseline',
children: [
{ type: 'elem', elem: b },
{ type: 'kern', size: 0.1 },
{ type: 'elem', elem: C },
],
},
s
)),
A.children[0].children[0].children[1].classes.push('svg-align'))
: ((A = V.makeVList(
{
positionType: 'bottom',
positionData: b.depth + 0.1 + C.height,
children: [
{ type: 'elem', elem: C },
{ type: 'kern', size: 0.1 },
{ type: 'elem', elem: b },
],
},
s
)),
A.children[0].children[0].children[0].classes.push('svg-align')),
_)
) {
var I = V.makeSpan(['mord', h.isOver ? 'mover' : 'munder'], [A], s);
h.isOver
? (A = V.makeVList(
{
positionType: 'firstBaseline',
children: [
{ type: 'elem', elem: I },
{ type: 'kern', size: 0.2 },
{ type: 'elem', elem: _ },
],
},
s
))
: (A = V.makeVList(
{
positionType: 'bottom',
positionData: I.depth + 0.2 + _.height + _.depth,
children: [
{ type: 'elem', elem: _ },
{ type: 'kern', size: 0.2 },
{ type: 'elem', elem: I },
],
},
s
));
}
return V.makeSpan(['mord', h.isOver ? 'mover' : 'munder'], [A], s);
},
qv = function (o, s) {
var c = hn.mathMLnode(o.label);
return new ue.MathNode(o.isOver ? 'mover' : 'munder', [ft(o.base, s), c]);
};
Re({
type: 'horizBrace',
names: ['\\overbrace', '\\underbrace'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName;
return { type: 'horizBrace', mode: c.mode, label: _, isOver: /^\\over/.test(_), base: s[0] };
},
htmlBuilder: Fp,
mathmlBuilder: qv,
}),
Re({
type: 'href',
names: ['\\href'],
props: { numArgs: 2, argTypes: ['url', 'original'], allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = s[1],
h = Xe(s[0], 'url').url;
return c.settings.isTrusted({ command: '\\href', url: h })
? { type: 'href', mode: c.mode, href: h, body: Dt(_) }
: c.formatUnsupportedCmd('\\href');
},
htmlBuilder: function (o, s) {
var c = Gt(o.body, s, !1);
return V.makeAnchor(o.href, [], c, s);
},
mathmlBuilder: function (o, s) {
var c = On(o.body, s);
return c instanceof Cr || (c = new Cr('mrow', [c])), c.setAttribute('href', o.href), c;
},
}),
Re({
type: 'href',
names: ['\\url'],
props: { numArgs: 1, argTypes: ['url'], allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = Xe(s[0], 'url').url;
if (!c.settings.isTrusted({ command: '\\url', url: _ })) return c.formatUnsupportedCmd('\\url');
for (var h = [], b = 0; b < _.length; b++) {
var C = _[b];
C === '~' && (C = '\\textasciitilde'), h.push({ type: 'textord', mode: 'text', text: C });
}
var A = { type: 'text', mode: c.mode, font: '\\texttt', body: h };
return { type: 'href', mode: c.mode, href: _, body: Dt(A) };
},
}),
Re({
type: 'hbox',
names: ['\\hbox'],
props: { numArgs: 1, argTypes: ['text'], allowedInText: !0, primitive: !0 },
handler: function (o, s) {
var c = o.parser;
return { type: 'hbox', mode: c.mode, body: Dt(s[0]) };
},
htmlBuilder: function (o, s) {
var c = Gt(o.body, s, !1);
return V.makeFragment(c);
},
mathmlBuilder: function (o, s) {
return new ue.MathNode('mrow', sr(o.body, s));
},
}),
Re({
type: 'html',
names: ['\\htmlClass', '\\htmlId', '\\htmlStyle', '\\htmlData'],
props: { numArgs: 2, argTypes: ['raw', 'original'], allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName;
o.token;
var h = Xe(s[0], 'raw').string,
b = s[1];
c.settings.strict && c.settings.reportNonstrict('htmlExtension', 'HTML extension is disabled on strict mode');
var C,
A = {};
switch (_) {
case '\\htmlClass':
(A.class = h), (C = { command: '\\htmlClass', class: h });
break;
case '\\htmlId':
(A.id = h), (C = { command: '\\htmlId', id: h });
break;
case '\\htmlStyle':
(A.style = h), (C = { command: '\\htmlStyle', style: h });
break;
case '\\htmlData': {
for (var I = h.split(','), k = 0; k < I.length; k++) {
var W = I[k].split('=');
if (W.length !== 2) throw new a('Error parsing key-value for \\htmlData');
A['data-' + W[0].trim()] = W[1].trim();
}
C = { command: '\\htmlData', attributes: A };
break;
}
default:
throw new Error('Unrecognized html command');
}
return c.settings.isTrusted(C) ? { type: 'html', mode: c.mode, attributes: A, body: Dt(b) } : c.formatUnsupportedCmd(_);
},
htmlBuilder: function (o, s) {
var c = Gt(o.body, s, !1),
_ = ['enclosing'];
o.attributes.class && _.push.apply(_, o.attributes.class.trim().split(/\s+/));
var h = V.makeSpan(_, c, s);
for (var b in o.attributes) b !== 'class' && o.attributes.hasOwnProperty(b) && h.setAttribute(b, o.attributes[b]);
return h;
},
mathmlBuilder: function (o, s) {
return On(o.body, s);
},
}),
Re({
type: 'htmlmathml',
names: ['\\html@mathml'],
props: { numArgs: 2, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser;
return { type: 'htmlmathml', mode: c.mode, html: Dt(s[0]), mathml: Dt(s[1]) };
},
htmlBuilder: function (o, s) {
var c = Gt(o.html, s, !1);
return V.makeFragment(c);
},
mathmlBuilder: function (o, s) {
return On(o.mathml, s);
},
});
var al = function (o) {
if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(o)) return { number: +o, unit: 'bp' };
var s = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(o);
if (!s) throw new a("Invalid size: '" + o + "' in \\includegraphics");
var c = { number: +(s[1] + s[2]), unit: s[3] };
if (!et(c)) throw new a("Invalid unit: '" + c.unit + "' in \\includegraphics.");
return c;
};
Re({
type: 'includegraphics',
names: ['\\includegraphics'],
props: { numArgs: 1, numOptionalArgs: 1, argTypes: ['raw', 'url'], allowedInText: !1 },
handler: function (o, s, c) {
var _ = o.parser,
h = { number: 0, unit: 'em' },
b = { number: 0.9, unit: 'em' },
C = { number: 0, unit: 'em' },
A = '';
if (c[0])
for (var I = Xe(c[0], 'raw').string, k = I.split(','), W = 0; W < k.length; W++) {
var ee = k[W].split('=');
if (ee.length === 2) {
var J = ee[1].trim();
switch (ee[0].trim()) {
case 'alt':
A = J;
break;
case 'width':
h = al(J);
break;
case 'height':
b = al(J);
break;
case 'totalheight':
C = al(J);
break;
default:
throw new a("Invalid key: '" + ee[0] + "' in \\includegraphics.");
}
}
}
var ie = Xe(s[0], 'url').url;
return (
A === '' && ((A = ie), (A = A.replace(/^.*[\\/]/, '')), (A = A.substring(0, A.lastIndexOf('.')))),
_.settings.isTrusted({ command: '\\includegraphics', url: ie })
? { type: 'includegraphics', mode: _.mode, alt: A, width: h, height: b, totalheight: C, src: ie }
: _.formatUnsupportedCmd('\\includegraphics')
);
},
htmlBuilder: function (o, s) {
var c = nt(o.height, s),
_ = 0;
o.totalheight.number > 0 && (_ = nt(o.totalheight, s) - c);
var h = 0;
o.width.number > 0 && (h = nt(o.width, s));
var b = { height: _e(c + _) };
h > 0 && (b.width = _e(h)), _ > 0 && (b.verticalAlign = _e(-_));
var C = new Vr(o.src, o.alt, b);
return (C.height = c), (C.depth = _), C;
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mglyph', []);
c.setAttribute('alt', o.alt);
var _ = nt(o.height, s),
h = 0;
if (
(o.totalheight.number > 0 && ((h = nt(o.totalheight, s) - _), c.setAttribute('valign', _e(-h))),
c.setAttribute('height', _e(_ + h)),
o.width.number > 0)
) {
var b = nt(o.width, s);
c.setAttribute('width', _e(b));
}
return c.setAttribute('src', o.src), c;
},
}),
Re({
type: 'kern',
names: ['\\kern', '\\mkern', '\\hskip', '\\mskip'],
props: { numArgs: 1, argTypes: ['size'], primitive: !0, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = Xe(s[0], 'size');
if (c.settings.strict) {
var b = _[1] === 'm',
C = h.value.unit === 'mu';
b
? (C ||
c.settings.reportNonstrict('mathVsTextUnits', "LaTeX's " + _ + ' supports only mu units, ' + ('not ' + h.value.unit + ' units')),
c.mode !== 'math' && c.settings.reportNonstrict('mathVsTextUnits', "LaTeX's " + _ + ' works only in math mode'))
: C && c.settings.reportNonstrict('mathVsTextUnits', "LaTeX's " + _ + " doesn't support mu units");
}
return { type: 'kern', mode: c.mode, dimension: h.value };
},
htmlBuilder: function (o, s) {
return V.makeGlue(o.dimension, s);
},
mathmlBuilder: function (o, s) {
var c = nt(o.dimension, s);
return new ue.SpaceNode(c);
},
}),
Re({
type: 'lap',
names: ['\\mathllap', '\\mathrlap', '\\mathclap'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
return { type: 'lap', mode: c.mode, alignment: _.slice(5), body: h };
},
htmlBuilder: function (o, s) {
var c;
o.alignment === 'clap'
? ((c = V.makeSpan([], [ot(o.body, s)])), (c = V.makeSpan(['inner'], [c], s)))
: (c = V.makeSpan(['inner'], [ot(o.body, s)]));
var _ = V.makeSpan(['fix'], []),
h = V.makeSpan([o.alignment], [c, _], s),
b = V.makeSpan(['strut']);
return (
(b.style.height = _e(h.height + h.depth)),
h.depth && (b.style.verticalAlign = _e(-h.depth)),
h.children.unshift(b),
(h = V.makeSpan(['thinbox'], [h], s)),
V.makeSpan(['mord', 'vbox'], [h], s)
);
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mpadded', [ft(o.body, s)]);
if (o.alignment !== 'rlap') {
var _ = o.alignment === 'llap' ? '-1' : '-0.5';
c.setAttribute('lspace', _ + 'width');
}
return c.setAttribute('width', '0px'), c;
},
}),
Re({
type: 'styling',
names: ['\\(', '$'],
props: { numArgs: 0, allowedInText: !0, allowedInMath: !1 },
handler: function (o, s) {
var c = o.funcName,
_ = o.parser,
h = _.mode;
_.switchMode('math');
var b = c === '\\(' ? '\\)' : '$',
C = _.parseExpression(!1, b);
return _.expect(b), _.switchMode(h), { type: 'styling', mode: _.mode, style: 'text', body: C };
},
}),
Re({
type: 'text',
names: ['\\)', '\\]'],
props: { numArgs: 0, allowedInText: !0, allowedInMath: !1 },
handler: function (o, s) {
throw new a('Mismatched ' + o.funcName);
},
});
var Up = function (o, s) {
switch (s.style.size) {
case ae.DISPLAY.size:
return o.display;
case ae.TEXT.size:
return o.text;
case ae.SCRIPT.size:
return o.script;
case ae.SCRIPTSCRIPT.size:
return o.scriptscript;
default:
return o.text;
}
};
Re({
type: 'mathchoice',
names: ['\\mathchoice'],
props: { numArgs: 4, primitive: !0 },
handler: function (o, s) {
var c = o.parser;
return { type: 'mathchoice', mode: c.mode, display: Dt(s[0]), text: Dt(s[1]), script: Dt(s[2]), scriptscript: Dt(s[3]) };
},
htmlBuilder: function (o, s) {
var c = Up(o, s),
_ = Gt(c, s, !1);
return V.makeFragment(_);
},
mathmlBuilder: function (o, s) {
var c = Up(o, s);
return On(c, s);
},
});
var Gp = function (o, s, c, _, h, b, C) {
o = V.makeSpan([], [o]);
var A = c && w.isCharacterBox(c),
I,
k;
if (s) {
var W = ot(s, _.havingStyle(h.sup()), _);
k = { elem: W, kern: Math.max(_.fontMetrics().bigOpSpacing1, _.fontMetrics().bigOpSpacing3 - W.depth) };
}
if (c) {
var ee = ot(c, _.havingStyle(h.sub()), _);
I = { elem: ee, kern: Math.max(_.fontMetrics().bigOpSpacing2, _.fontMetrics().bigOpSpacing4 - ee.height) };
}
var J;
if (k && I) {
var ie = _.fontMetrics().bigOpSpacing5 + I.elem.height + I.elem.depth + I.kern + o.depth + C;
J = V.makeVList(
{
positionType: 'bottom',
positionData: ie,
children: [
{ type: 'kern', size: _.fontMetrics().bigOpSpacing5 },
{ type: 'elem', elem: I.elem, marginLeft: _e(-b) },
{ type: 'kern', size: I.kern },
{ type: 'elem', elem: o },
{ type: 'kern', size: k.kern },
{ type: 'elem', elem: k.elem, marginLeft: _e(b) },
{ type: 'kern', size: _.fontMetrics().bigOpSpacing5 },
],
},
_
);
} else if (I) {
var pe = o.height - C;
J = V.makeVList(
{
positionType: 'top',
positionData: pe,
children: [
{ type: 'kern', size: _.fontMetrics().bigOpSpacing5 },
{ type: 'elem', elem: I.elem, marginLeft: _e(-b) },
{ type: 'kern', size: I.kern },
{ type: 'elem', elem: o },
],
},
_
);
} else if (k) {
var Te = o.depth + C;
J = V.makeVList(
{
positionType: 'bottom',
positionData: Te,
children: [
{ type: 'elem', elem: o },
{ type: 'kern', size: k.kern },
{ type: 'elem', elem: k.elem, marginLeft: _e(b) },
{ type: 'kern', size: _.fontMetrics().bigOpSpacing5 },
],
},
_
);
} else return o;
var Ie = [J];
if (I && b !== 0 && !A) {
var Me = V.makeSpan(['mspace'], [], _);
(Me.style.marginRight = _e(b)), Ie.unshift(Me);
}
return V.makeSpan(['mop', 'op-limits'], Ie, _);
},
qp = ['\\smallint'],
pi = function (o, s) {
var c,
_,
h = !1,
b;
o.type === 'supsub' ? ((c = o.sup), (_ = o.sub), (b = Xe(o.base, 'op')), (h = !0)) : (b = Xe(o, 'op'));
var C = s.style,
A = !1;
C.size === ae.DISPLAY.size && b.symbol && !w.contains(qp, b.name) && (A = !0);
var I;
if (b.symbol) {
var k = A ? 'Size2-Regular' : 'Size1-Regular',
W = '';
if (
((b.name === '\\oiint' || b.name === '\\oiiint') && ((W = b.name.slice(1)), (b.name = W === 'oiint' ? '\\iint' : '\\iiint')),
(I = V.makeSymbol(b.name, k, 'math', s, ['mop', 'op-symbol', A ? 'large-op' : 'small-op'])),
W.length > 0)
) {
var ee = I.italic,
J = V.staticSvg(W + 'Size' + (A ? '2' : '1'), s);
(I = V.makeVList(
{
positionType: 'individualShift',
children: [
{ type: 'elem', elem: I, shift: 0 },
{ type: 'elem', elem: J, shift: A ? 0.08 : 0 },
],
},
s
)),
(b.name = '\\' + W),
I.classes.unshift('mop'),
(I.italic = ee);
}
} else if (b.body) {
var ie = Gt(b.body, s, !0);
ie.length === 1 && ie[0] instanceof Yt ? ((I = ie[0]), (I.classes[0] = 'mop')) : (I = V.makeSpan(['mop'], ie, s));
} else {
for (var pe = [], Te = 1; Te < b.name.length; Te++) pe.push(V.mathsym(b.name[Te], b.mode, s));
I = V.makeSpan(['mop'], pe, s);
}
var Ie = 0,
Me = 0;
return (
(I instanceof Yt || b.name === '\\oiint' || b.name === '\\oiiint') &&
!b.suppressBaseShift &&
((Ie = (I.height - I.depth) / 2 - s.fontMetrics().axisHeight), (Me = I.italic)),
h ? Gp(I, c, _, s, C, Me, Ie) : (Ie && ((I.style.position = 'relative'), (I.style.top = _e(Ie))), I)
);
},
ea = function (o, s) {
var c;
if (o.symbol) (c = new Cr('mo', [yr(o.name, o.mode)])), w.contains(qp, o.name) && c.setAttribute('largeop', 'false');
else if (o.body) c = new Cr('mo', sr(o.body, s));
else {
c = new Cr('mi', [new Xi(o.name.slice(1))]);
var _ = new Cr('mo', [yr('', 'text')]);
o.parentIsSupSub ? (c = new Cr('mrow', [c, _])) : (c = ip([c, _]));
}
return c;
},
Yv = {
'∏': '\\prod',
'∐': '\\coprod',
'∑': '\\sum',
'⋀': '\\bigwedge',
'⋁': '\\bigvee',
'⋂': '\\bigcap',
'⋃': '\\bigcup',
'⨀': '\\bigodot',
'⨁': '\\bigoplus',
'⨂': '\\bigotimes',
'⨄': '\\biguplus',
'⨆': '\\bigsqcup',
};
Re({
type: 'op',
names: [
'\\coprod',
'\\bigvee',
'\\bigwedge',
'\\biguplus',
'\\bigcap',
'\\bigcup',
'\\intop',
'\\prod',
'\\sum',
'\\bigotimes',
'\\bigoplus',
'\\bigodot',
'\\bigsqcup',
'\\smallint',
'∏',
'∐',
'∑',
'⋀',
'⋁',
'⋂',
'⋃',
'⨀',
'⨁',
'⨂',
'⨄',
'⨆',
],
props: { numArgs: 0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = _;
return h.length === 1 && (h = Yv[h]), { type: 'op', mode: c.mode, limits: !0, parentIsSupSub: !1, symbol: !0, name: h };
},
htmlBuilder: pi,
mathmlBuilder: ea,
}),
Re({
type: 'op',
names: ['\\mathop'],
props: { numArgs: 1, primitive: !0 },
handler: function (o, s) {
var c = o.parser,
_ = s[0];
return { type: 'op', mode: c.mode, limits: !1, parentIsSupSub: !1, symbol: !1, body: Dt(_) };
},
htmlBuilder: pi,
mathmlBuilder: ea,
});
var zv = { '∫': '\\int', '∬': '\\iint', '∭': '\\iiint', '∮': '\\oint', '∯': '\\oiint', '∰': '\\oiiint' };
Re({
type: 'op',
names: [
'\\arcsin',
'\\arccos',
'\\arctan',
'\\arctg',
'\\arcctg',
'\\arg',
'\\ch',
'\\cos',
'\\cosec',
'\\cosh',
'\\cot',
'\\cotg',
'\\coth',
'\\csc',
'\\ctg',
'\\cth',
'\\deg',
'\\dim',
'\\exp',
'\\hom',
'\\ker',
'\\lg',
'\\ln',
'\\log',
'\\sec',
'\\sin',
'\\sinh',
'\\sh',
'\\tan',
'\\tanh',
'\\tg',
'\\th',
],
props: { numArgs: 0 },
handler: function (o) {
var s = o.parser,
c = o.funcName;
return { type: 'op', mode: s.mode, limits: !1, parentIsSupSub: !1, symbol: !1, name: c };
},
htmlBuilder: pi,
mathmlBuilder: ea,
}),
Re({
type: 'op',
names: ['\\det', '\\gcd', '\\inf', '\\lim', '\\max', '\\min', '\\Pr', '\\sup'],
props: { numArgs: 0 },
handler: function (o) {
var s = o.parser,
c = o.funcName;
return { type: 'op', mode: s.mode, limits: !0, parentIsSupSub: !1, symbol: !1, name: c };
},
htmlBuilder: pi,
mathmlBuilder: ea,
}),
Re({
type: 'op',
names: ['\\int', '\\iint', '\\iiint', '\\oint', '\\oiint', '\\oiiint', '∫', '∬', '∭', '∮', '∯', '∰'],
props: { numArgs: 0 },
handler: function (o) {
var s = o.parser,
c = o.funcName,
_ = c;
return _.length === 1 && (_ = zv[_]), { type: 'op', mode: s.mode, limits: !1, parentIsSupSub: !1, symbol: !0, name: _ };
},
htmlBuilder: pi,
mathmlBuilder: ea,
});
var Yp = function (o, s) {
var c,
_,
h = !1,
b;
o.type === 'supsub' ? ((c = o.sup), (_ = o.sub), (b = Xe(o.base, 'operatorname')), (h = !0)) : (b = Xe(o, 'operatorname'));
var C;
if (b.body.length > 0) {
for (
var A = b.body.map(function (ee) {
var J = ee.text;
return typeof J == 'string' ? { type: 'textord', mode: ee.mode, text: J } : ee;
}),
I = Gt(A, s.withFont('mathrm'), !0),
k = 0;
k < I.length;
k++
) {
var W = I[k];
W instanceof Yt && (W.text = W.text.replace(/\u2212/, '-').replace(/\u2217/, '*'));
}
C = V.makeSpan(['mop'], I, s);
} else C = V.makeSpan(['mop'], [], s);
return h ? Gp(C, c, _, s, s.style, 0, 0) : C;
},
Hv = function (o, s) {
for (var c = sr(o.body, s.withFont('mathrm')), _ = !0, h = 0; h < c.length; h++) {
var b = c[h];
if (!(b instanceof ue.SpaceNode))
if (b instanceof ue.MathNode)
switch (b.type) {
case 'mi':
case 'mn':
case 'ms':
case 'mspace':
case 'mtext':
break;
case 'mo': {
var C = b.children[0];
b.children.length === 1 && C instanceof ue.TextNode ? (C.text = C.text.replace(/\u2212/, '-').replace(/\u2217/, '*')) : (_ = !1);
break;
}
default:
_ = !1;
}
else _ = !1;
}
if (_) {
var A = c
.map(function (W) {
return W.toText();
})
.join('');
c = [new ue.TextNode(A)];
}
var I = new ue.MathNode('mi', c);
I.setAttribute('mathvariant', 'normal');
var k = new ue.MathNode('mo', [yr('', 'text')]);
return o.parentIsSupSub ? new ue.MathNode('mrow', [I, k]) : ue.newDocumentFragment([I, k]);
};
Re({
type: 'operatorname',
names: ['\\operatorname@', '\\operatornamewithlimits'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
return {
type: 'operatorname',
mode: c.mode,
body: Dt(h),
alwaysHandleSupSub: _ === '\\operatornamewithlimits',
limits: !1,
parentIsSupSub: !1,
};
},
htmlBuilder: Yp,
mathmlBuilder: Hv,
}),
N('\\operatorname', '\\@ifstar\\operatornamewithlimits\\operatorname@'),
zn({
type: 'ordgroup',
htmlBuilder: function (o, s) {
return o.semisimple ? V.makeFragment(Gt(o.body, s, !1)) : V.makeSpan(['mord'], Gt(o.body, s, !0), s);
},
mathmlBuilder: function (o, s) {
return On(o.body, s, !0);
},
}),
Re({
type: 'overline',
names: ['\\overline'],
props: { numArgs: 1 },
handler: function (o, s) {
var c = o.parser,
_ = s[0];
return { type: 'overline', mode: c.mode, body: _ };
},
htmlBuilder: function (o, s) {
var c = ot(o.body, s.havingCrampedStyle()),
_ = V.makeLineSpan('overline-line', s),
h = s.fontMetrics().defaultRuleThickness,
b = V.makeVList(
{
positionType: 'firstBaseline',
children: [
{ type: 'elem', elem: c },
{ type: 'kern', size: 3 * h },
{ type: 'elem', elem: _ },
{ type: 'kern', size: h },
],
},
s
);
return V.makeSpan(['mord', 'overline'], [b], s);
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mo', [new ue.TextNode('‾')]);
c.setAttribute('stretchy', 'true');
var _ = new ue.MathNode('mover', [ft(o.body, s), c]);
return _.setAttribute('accent', 'true'), _;
},
}),
Re({
type: 'phantom',
names: ['\\phantom'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = s[0];
return { type: 'phantom', mode: c.mode, body: Dt(_) };
},
htmlBuilder: function (o, s) {
var c = Gt(o.body, s.withPhantom(), !1);
return V.makeFragment(c);
},
mathmlBuilder: function (o, s) {
var c = sr(o.body, s);
return new ue.MathNode('mphantom', c);
},
}),
Re({
type: 'hphantom',
names: ['\\hphantom'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = s[0];
return { type: 'hphantom', mode: c.mode, body: _ };
},
htmlBuilder: function (o, s) {
var c = V.makeSpan([], [ot(o.body, s.withPhantom())]);
if (((c.height = 0), (c.depth = 0), c.children))
for (var _ = 0; _ < c.children.length; _++) (c.children[_].height = 0), (c.children[_].depth = 0);
return (c = V.makeVList({ positionType: 'firstBaseline', children: [{ type: 'elem', elem: c }] }, s)), V.makeSpan(['mord'], [c], s);
},
mathmlBuilder: function (o, s) {
var c = sr(Dt(o.body), s),
_ = new ue.MathNode('mphantom', c),
h = new ue.MathNode('mpadded', [_]);
return h.setAttribute('height', '0px'), h.setAttribute('depth', '0px'), h;
},
}),
Re({
type: 'vphantom',
names: ['\\vphantom'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = s[0];
return { type: 'vphantom', mode: c.mode, body: _ };
},
htmlBuilder: function (o, s) {
var c = V.makeSpan(['inner'], [ot(o.body, s.withPhantom())]),
_ = V.makeSpan(['fix'], []);
return V.makeSpan(['mord', 'rlap'], [c, _], s);
},
mathmlBuilder: function (o, s) {
var c = sr(Dt(o.body), s),
_ = new ue.MathNode('mphantom', c),
h = new ue.MathNode('mpadded', [_]);
return h.setAttribute('width', '0px'), h;
},
}),
Re({
type: 'raisebox',
names: ['\\raisebox'],
props: { numArgs: 2, argTypes: ['size', 'hbox'], allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = Xe(s[0], 'size').value,
h = s[1];
return { type: 'raisebox', mode: c.mode, dy: _, body: h };
},
htmlBuilder: function (o, s) {
var c = ot(o.body, s),
_ = nt(o.dy, s);
return V.makeVList({ positionType: 'shift', positionData: -_, children: [{ type: 'elem', elem: c }] }, s);
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mpadded', [ft(o.body, s)]),
_ = o.dy.number + o.dy.unit;
return c.setAttribute('voffset', _), c;
},
}),
Re({
type: 'internal',
names: ['\\relax'],
props: { numArgs: 0, allowedInText: !0 },
handler: function (o) {
var s = o.parser;
return { type: 'internal', mode: s.mode };
},
}),
Re({
type: 'rule',
names: ['\\rule'],
props: { numArgs: 2, numOptionalArgs: 1, argTypes: ['size', 'size', 'size'] },
handler: function (o, s, c) {
var _ = o.parser,
h = c[0],
b = Xe(s[0], 'size'),
C = Xe(s[1], 'size');
return { type: 'rule', mode: _.mode, shift: h && Xe(h, 'size').value, width: b.value, height: C.value };
},
htmlBuilder: function (o, s) {
var c = V.makeSpan(['mord', 'rule'], [], s),
_ = nt(o.width, s),
h = nt(o.height, s),
b = o.shift ? nt(o.shift, s) : 0;
return (
(c.style.borderRightWidth = _e(_)),
(c.style.borderTopWidth = _e(h)),
(c.style.bottom = _e(b)),
(c.width = _),
(c.height = h + b),
(c.depth = -b),
(c.maxFontSize = h * 1.125 * s.sizeMultiplier),
c
);
},
mathmlBuilder: function (o, s) {
var c = nt(o.width, s),
_ = nt(o.height, s),
h = o.shift ? nt(o.shift, s) : 0,
b = (s.color && s.getColor()) || 'black',
C = new ue.MathNode('mspace');
C.setAttribute('mathbackground', b), C.setAttribute('width', _e(c)), C.setAttribute('height', _e(_));
var A = new ue.MathNode('mpadded', [C]);
return (
h >= 0 ? A.setAttribute('height', _e(h)) : (A.setAttribute('height', _e(h)), A.setAttribute('depth', _e(-h))),
A.setAttribute('voffset', _e(h)),
A
);
},
});
function zp(S, o, s) {
for (var c = Gt(S, o, !1), _ = o.sizeMultiplier / s.sizeMultiplier, h = 0; h < c.length; h++) {
var b = c[h].classes.indexOf('sizing');
b < 0
? Array.prototype.push.apply(c[h].classes, o.sizingClasses(s))
: c[h].classes[b + 1] === 'reset-size' + o.size && (c[h].classes[b + 1] = 'reset-size' + s.size),
(c[h].height *= _),
(c[h].depth *= _);
}
return V.makeFragment(c);
}
var Hp = [
'\\tiny',
'\\sixptsize',
'\\scriptsize',
'\\footnotesize',
'\\small',
'\\normalsize',
'\\large',
'\\Large',
'\\LARGE',
'\\huge',
'\\Huge',
],
$v = function (o, s) {
var c = s.havingSize(o.size);
return zp(o.body, c, s);
};
Re({
type: 'sizing',
names: Hp,
props: { numArgs: 0, allowedInText: !0 },
handler: function (o, s) {
var c = o.breakOnTokenText,
_ = o.funcName,
h = o.parser,
b = h.parseExpression(!1, c);
return { type: 'sizing', mode: h.mode, size: Hp.indexOf(_) + 1, body: b };
},
htmlBuilder: $v,
mathmlBuilder: function (o, s) {
var c = s.havingSize(o.size),
_ = sr(o.body, c),
h = new ue.MathNode('mstyle', _);
return h.setAttribute('mathsize', _e(c.sizeMultiplier)), h;
},
}),
Re({
type: 'smash',
names: ['\\smash'],
props: { numArgs: 1, numOptionalArgs: 1, allowedInText: !0 },
handler: function (o, s, c) {
var _ = o.parser,
h = !1,
b = !1,
C = c[0] && Xe(c[0], 'ordgroup');
if (C)
for (var A = '', I = 0; I < C.body.length; ++I) {
var k = C.body[I];
if (((A = k.text), A === 't')) h = !0;
else if (A === 'b') b = !0;
else {
(h = !1), (b = !1);
break;
}
}
else (h = !0), (b = !0);
var W = s[0];
return { type: 'smash', mode: _.mode, body: W, smashHeight: h, smashDepth: b };
},
htmlBuilder: function (o, s) {
var c = V.makeSpan([], [ot(o.body, s)]);
if (!o.smashHeight && !o.smashDepth) return c;
if (o.smashHeight && ((c.height = 0), c.children)) for (var _ = 0; _ < c.children.length; _++) c.children[_].height = 0;
if (o.smashDepth && ((c.depth = 0), c.children)) for (var h = 0; h < c.children.length; h++) c.children[h].depth = 0;
var b = V.makeVList({ positionType: 'firstBaseline', children: [{ type: 'elem', elem: c }] }, s);
return V.makeSpan(['mord'], [b], s);
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mpadded', [ft(o.body, s)]);
return o.smashHeight && c.setAttribute('height', '0px'), o.smashDepth && c.setAttribute('depth', '0px'), c;
},
}),
Re({
type: 'sqrt',
names: ['\\sqrt'],
props: { numArgs: 1, numOptionalArgs: 1 },
handler: function (o, s, c) {
var _ = o.parser,
h = c[0],
b = s[0];
return { type: 'sqrt', mode: _.mode, body: b, index: h };
},
htmlBuilder: function (o, s) {
var c = ot(o.body, s.havingCrampedStyle());
c.height === 0 && (c.height = s.fontMetrics().xHeight), (c = V.wrapFragment(c, s));
var _ = s.fontMetrics(),
h = _.defaultRuleThickness,
b = h;
s.style.id < ae.TEXT.id && (b = s.fontMetrics().xHeight);
var C = h + b / 4,
A = c.height + c.depth + C + h,
I = gn.sqrtImage(A, s),
k = I.span,
W = I.ruleWidth,
ee = I.advanceWidth,
J = k.height - W;
J > c.height + c.depth + C && (C = (C + J - c.height - c.depth) / 2);
var ie = k.height - c.height - C - W;
c.style.paddingLeft = _e(ee);
var pe = V.makeVList(
{
positionType: 'firstBaseline',
children: [
{ type: 'elem', elem: c, wrapperClasses: ['svg-align'] },
{ type: 'kern', size: -(c.height + ie) },
{ type: 'elem', elem: k },
{ type: 'kern', size: W },
],
},
s
);
if (o.index) {
var Te = s.havingStyle(ae.SCRIPTSCRIPT),
Ie = ot(o.index, Te, s),
Me = 0.6 * (pe.height - pe.depth),
Ue = V.makeVList({ positionType: 'shift', positionData: -Me, children: [{ type: 'elem', elem: Ie }] }, s),
lt = V.makeSpan(['root'], [Ue]);
return V.makeSpan(['mord', 'sqrt'], [lt, pe], s);
} else return V.makeSpan(['mord', 'sqrt'], [pe], s);
},
mathmlBuilder: function (o, s) {
var c = o.body,
_ = o.index;
return _ ? new ue.MathNode('mroot', [ft(c, s), ft(_, s)]) : new ue.MathNode('msqrt', [ft(c, s)]);
},
});
var $p = { display: ae.DISPLAY, text: ae.TEXT, script: ae.SCRIPT, scriptscript: ae.SCRIPTSCRIPT };
Re({
type: 'styling',
names: ['\\displaystyle', '\\textstyle', '\\scriptstyle', '\\scriptscriptstyle'],
props: { numArgs: 0, allowedInText: !0, primitive: !0 },
handler: function (o, s) {
var c = o.breakOnTokenText,
_ = o.funcName,
h = o.parser,
b = h.parseExpression(!0, c),
C = _.slice(1, _.length - 5);
return { type: 'styling', mode: h.mode, style: C, body: b };
},
htmlBuilder: function (o, s) {
var c = $p[o.style],
_ = s.havingStyle(c).withFont('');
return zp(o.body, _, s);
},
mathmlBuilder: function (o, s) {
var c = $p[o.style],
_ = s.havingStyle(c),
h = sr(o.body, _),
b = new ue.MathNode('mstyle', h),
C = { display: ['0', 'true'], text: ['0', 'false'], script: ['1', 'false'], scriptscript: ['2', 'false'] },
A = C[o.style];
return b.setAttribute('scriptlevel', A[0]), b.setAttribute('displaystyle', A[1]), b;
},
});
var Vv = function (o, s) {
var c = o.base;
if (c)
if (c.type === 'op') {
var _ = c.limits && (s.style.size === ae.DISPLAY.size || c.alwaysHandleSupSub);
return _ ? pi : null;
} else if (c.type === 'operatorname') {
var h = c.alwaysHandleSupSub && (s.style.size === ae.DISPLAY.size || c.limits);
return h ? Yp : null;
} else {
if (c.type === 'accent') return w.isCharacterBox(c.base) ? Hs : null;
if (c.type === 'horizBrace') {
var b = !o.sub;
return b === c.isOver ? Fp : null;
} else return null;
}
else return null;
};
zn({
type: 'supsub',
htmlBuilder: function (o, s) {
var c = Vv(o, s);
if (c) return c(o, s);
var _ = o.base,
h = o.sup,
b = o.sub,
C = ot(_, s),
A,
I,
k = s.fontMetrics(),
W = 0,
ee = 0,
J = _ && w.isCharacterBox(_);
if (h) {
var ie = s.havingStyle(s.style.sup());
(A = ot(h, ie, s)), J || (W = C.height - (ie.fontMetrics().supDrop * ie.sizeMultiplier) / s.sizeMultiplier);
}
if (b) {
var pe = s.havingStyle(s.style.sub());
(I = ot(b, pe, s)), J || (ee = C.depth + (pe.fontMetrics().subDrop * pe.sizeMultiplier) / s.sizeMultiplier);
}
var Te;
s.style === ae.DISPLAY ? (Te = k.sup1) : s.style.cramped ? (Te = k.sup3) : (Te = k.sup2);
var Ie = s.sizeMultiplier,
Me = _e(0.5 / k.ptPerEm / Ie),
Ue = null;
if (I) {
var lt = o.base && o.base.type === 'op' && o.base.name && (o.base.name === '\\oiint' || o.base.name === '\\oiiint');
(C instanceof Yt || lt) && (Ue = _e(-C.italic));
}
var Je;
if (A && I) {
(W = Math.max(W, Te, A.depth + 0.25 * k.xHeight)), (ee = Math.max(ee, k.sub2));
var mt = k.defaultRuleThickness,
st = 4 * mt;
if (W - A.depth - (I.height - ee) < st) {
ee = st - (W - A.depth) + I.height;
var gt = 0.8 * k.xHeight - (W - A.depth);
gt > 0 && ((W += gt), (ee -= gt));
}
var Ct = [
{ type: 'elem', elem: I, shift: ee, marginRight: Me, marginLeft: Ue },
{ type: 'elem', elem: A, shift: -W, marginRight: Me },
];
Je = V.makeVList({ positionType: 'individualShift', children: Ct }, s);
} else if (I) {
ee = Math.max(ee, k.sub1, I.height - 0.8 * k.xHeight);
var Ht = [{ type: 'elem', elem: I, marginLeft: Ue, marginRight: Me }];
Je = V.makeVList({ positionType: 'shift', positionData: ee, children: Ht }, s);
} else if (A)
(W = Math.max(W, Te, A.depth + 0.25 * k.xHeight)),
(Je = V.makeVList({ positionType: 'shift', positionData: -W, children: [{ type: 'elem', elem: A, marginRight: Me }] }, s));
else throw new Error('supsub must have either sup or sub.');
var hr = Us(C, 'right') || 'mord';
return V.makeSpan([hr], [C, V.makeSpan(['msupsub'], [Je])], s);
},
mathmlBuilder: function (o, s) {
var c = !1,
_,
h;
o.base && o.base.type === 'horizBrace' && ((h = !!o.sup), h === o.base.isOver && ((c = !0), (_ = o.base.isOver))),
o.base && (o.base.type === 'op' || o.base.type === 'operatorname') && (o.base.parentIsSupSub = !0);
var b = [ft(o.base, s)];
o.sub && b.push(ft(o.sub, s)), o.sup && b.push(ft(o.sup, s));
var C;
if (c) C = _ ? 'mover' : 'munder';
else if (o.sub)
if (o.sup) {
var k = o.base;
(k && k.type === 'op' && k.limits && s.style === ae.DISPLAY) ||
(k && k.type === 'operatorname' && k.alwaysHandleSupSub && (s.style === ae.DISPLAY || k.limits))
? (C = 'munderover')
: (C = 'msubsup');
} else {
var I = o.base;
(I && I.type === 'op' && I.limits && (s.style === ae.DISPLAY || I.alwaysHandleSupSub)) ||
(I && I.type === 'operatorname' && I.alwaysHandleSupSub && (I.limits || s.style === ae.DISPLAY))
? (C = 'munder')
: (C = 'msub');
}
else {
var A = o.base;
(A && A.type === 'op' && A.limits && (s.style === ae.DISPLAY || A.alwaysHandleSupSub)) ||
(A && A.type === 'operatorname' && A.alwaysHandleSupSub && (A.limits || s.style === ae.DISPLAY))
? (C = 'mover')
: (C = 'msup');
}
return new ue.MathNode(C, b);
},
}),
zn({
type: 'atom',
htmlBuilder: function (o, s) {
return V.mathsym(o.text, o.mode, s, ['m' + o.family]);
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mo', [yr(o.text, o.mode)]);
if (o.family === 'bin') {
var _ = Ys(o, s);
_ === 'bold-italic' && c.setAttribute('mathvariant', _);
} else
o.family === 'punct'
? c.setAttribute('separator', 'true')
: (o.family === 'open' || o.family === 'close') && c.setAttribute('stretchy', 'false');
return c;
},
});
var Vp = { mi: 'italic', mn: 'normal', mtext: 'normal' };
zn({
type: 'mathord',
htmlBuilder: function (o, s) {
return V.makeOrd(o, s, 'mathord');
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mi', [yr(o.text, o.mode, s)]),
_ = Ys(o, s) || 'italic';
return _ !== Vp[c.type] && c.setAttribute('mathvariant', _), c;
},
}),
zn({
type: 'textord',
htmlBuilder: function (o, s) {
return V.makeOrd(o, s, 'textord');
},
mathmlBuilder: function (o, s) {
var c = yr(o.text, o.mode, s),
_ = Ys(o, s) || 'normal',
h;
return (
o.mode === 'text'
? (h = new ue.MathNode('mtext', [c]))
: /[0-9]/.test(o.text)
? (h = new ue.MathNode('mn', [c]))
: o.text === '\\prime'
? (h = new ue.MathNode('mo', [c]))
: (h = new ue.MathNode('mi', [c])),
_ !== Vp[h.type] && h.setAttribute('mathvariant', _),
h
);
},
});
var ol = { '\\nobreak': 'nobreak', '\\allowbreak': 'allowbreak' },
sl = { ' ': {}, '\\ ': {}, '~': { className: 'nobreak' }, '\\space': {}, '\\nobreakspace': { className: 'nobreak' } };
zn({
type: 'spacing',
htmlBuilder: function (o, s) {
if (sl.hasOwnProperty(o.text)) {
var c = sl[o.text].className || '';
if (o.mode === 'text') {
var _ = V.makeOrd(o, s, 'textord');
return _.classes.push(c), _;
} else return V.makeSpan(['mspace', c], [V.mathsym(o.text, o.mode, s)], s);
} else {
if (ol.hasOwnProperty(o.text)) return V.makeSpan(['mspace', ol[o.text]], [], s);
throw new a('Unknown type of space "' + o.text + '"');
}
},
mathmlBuilder: function (o, s) {
var c;
if (sl.hasOwnProperty(o.text)) c = new ue.MathNode('mtext', [new ue.TextNode(' ')]);
else {
if (ol.hasOwnProperty(o.text)) return new ue.MathNode('mspace');
throw new a('Unknown type of space "' + o.text + '"');
}
return c;
},
});
var Wp = function () {
var o = new ue.MathNode('mtd', []);
return o.setAttribute('width', '50%'), o;
};
zn({
type: 'tag',
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mtable', [
new ue.MathNode('mtr', [Wp(), new ue.MathNode('mtd', [On(o.body, s)]), Wp(), new ue.MathNode('mtd', [On(o.tag, s)])]),
]);
return c.setAttribute('width', '100%'), c;
},
});
var Kp = { '\\text': void 0, '\\textrm': 'textrm', '\\textsf': 'textsf', '\\texttt': 'texttt', '\\textnormal': 'textrm' },
Qp = { '\\textbf': 'textbf', '\\textmd': 'textmd' },
Wv = { '\\textit': 'textit', '\\textup': 'textup' },
Zp = function (o, s) {
var c = o.font;
return c ? (Kp[c] ? s.withTextFontFamily(Kp[c]) : Qp[c] ? s.withTextFontWeight(Qp[c]) : s.withTextFontShape(Wv[c])) : s;
};
Re({
type: 'text',
names: ['\\text', '\\textrm', '\\textsf', '\\texttt', '\\textnormal', '\\textbf', '\\textmd', '\\textit', '\\textup'],
props: { numArgs: 1, argTypes: ['text'], allowedInArgument: !0, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser,
_ = o.funcName,
h = s[0];
return { type: 'text', mode: c.mode, body: Dt(h), font: _ };
},
htmlBuilder: function (o, s) {
var c = Zp(o, s),
_ = Gt(o.body, c, !0);
return V.makeSpan(['mord', 'text'], _, c);
},
mathmlBuilder: function (o, s) {
var c = Zp(o, s);
return On(o.body, c);
},
}),
Re({
type: 'underline',
names: ['\\underline'],
props: { numArgs: 1, allowedInText: !0 },
handler: function (o, s) {
var c = o.parser;
return { type: 'underline', mode: c.mode, body: s[0] };
},
htmlBuilder: function (o, s) {
var c = ot(o.body, s),
_ = V.makeLineSpan('underline-line', s),
h = s.fontMetrics().defaultRuleThickness,
b = V.makeVList(
{
positionType: 'top',
positionData: c.height,
children: [
{ type: 'kern', size: h },
{ type: 'elem', elem: _ },
{ type: 'kern', size: 3 * h },
{ type: 'elem', elem: c },
],
},
s
);
return V.makeSpan(['mord', 'underline'], [b], s);
},
mathmlBuilder: function (o, s) {
var c = new ue.MathNode('mo', [new ue.TextNode('‾')]);
c.setAttribute('stretchy', 'true');
var _ = new ue.MathNode('munder', [ft(o.body, s), c]);
return _.setAttribute('accentunder', 'true'), _;
},
}),
Re({
type: 'vcenter',
names: ['\\vcenter'],
props: { numArgs: 1, argTypes: ['original'], allowedInText: !1 },
handler: function (o, s) {
var c = o.parser;
return { type: 'vcenter', mode: c.mode, body: s[0] };
},
htmlBuilder: function (o, s) {
var c = ot(o.body, s),
_ = s.fontMetrics().axisHeight,
h = 0.5 * (c.height - _ - (c.depth + _));
return V.makeVList({ positionType: 'shift', positionData: h, children: [{ type: 'elem', elem: c }] }, s);
},
mathmlBuilder: function (o, s) {
return new ue.MathNode('mpadded', [ft(o.body, s)], ['vcenter']);
},
}),
Re({
type: 'verb',
names: ['\\verb'],
props: { numArgs: 0, allowedInText: !0 },
handler: function (o, s, c) {
throw new a('\\verb ended by end of line instead of matching delimiter');
},
htmlBuilder: function (o, s) {
for (var c = Xp(o), _ = [], h = s.havingStyle(s.style.text()), b = 0; b < c.length; b++) {
var C = c[b];
C === '~' && (C = '\\textasciitilde'), _.push(V.makeSymbol(C, 'Typewriter-Regular', o.mode, h, ['mord', 'texttt']));
}
return V.makeSpan(['mord', 'text'].concat(h.sizingClasses(s)), V.tryCombineChars(_), h);
},
mathmlBuilder: function (o, s) {
var c = new ue.TextNode(Xp(o)),
_ = new ue.MathNode('mtext', [c]);
return _.setAttribute('mathvariant', 'monospace'), _;
},
});
var Xp = function (o) {
return o.body.replace(/ /g, o.star ? '␣' : ' ');
},
Kv = tp,
xn = Kv,
Jp = `[ \r
]`,
Qv = '\\\\[a-zA-Z@]+',
Zv = '\\\\[^\uD800-\uDFFF]',
Xv = '(' + Qv + ')' + Jp + '*',
Jv = `\\\\(
|[ \r ]+
?)[ \r ]*`,
ll = '[̀-ͯ]',
jv = new RegExp(ll + '+$'),
eC =
'(' +
Jp +
'+)|' +
(Jv + '|') +
'([!-\\[\\]-‧-豈-]' +
(ll + '*') +
'|[\uD800-\uDBFF][\uDC00-\uDFFF]' +
(ll + '*') +
'|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5' +
('|' + Xv) +
('|' + Zv + ')'),
jp = (function () {
function S(s, c) {
(this.input = void 0),
(this.settings = void 0),
(this.tokenRegex = void 0),
(this.catcodes = void 0),
(this.input = s),
(this.settings = c),
(this.tokenRegex = new RegExp(eC, 'g')),
(this.catcodes = { '%': 14, '~': 13 });
}
var o = S.prototype;
return (
(o.setCatcode = function (c, _) {
this.catcodes[c] = _;
}),
(o.lex = function () {
var c = this.input,
_ = this.tokenRegex.lastIndex;
if (_ === c.length) return new Zr('EOF', new Pr(this, _, _));
var h = this.tokenRegex.exec(c);
if (h === null || h.index !== _) throw new a("Unexpected character: '" + c[_] + "'", new Zr(c[_], new Pr(this, _, _ + 1)));
var b = h[6] || h[3] || (h[2] ? '\\ ' : ' ');
if (this.catcodes[b] === 14) {
var C = c.indexOf(
`
`,
this.tokenRegex.lastIndex
);
return (
C === -1
? ((this.tokenRegex.lastIndex = c.length),
this.settings.reportNonstrict(
'commentAtEnd',
'% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)'
))
: (this.tokenRegex.lastIndex = C + 1),
this.lex()
);
}
return new Zr(b, new Pr(this, _, this.tokenRegex.lastIndex));
}),
S
);
})(),
tC = (function () {
function S(s, c) {
s === void 0 && (s = {}),
c === void 0 && (c = {}),
(this.current = void 0),
(this.builtins = void 0),
(this.undefStack = void 0),
(this.current = c),
(this.builtins = s),
(this.undefStack = []);
}
var o = S.prototype;
return (
(o.beginGroup = function () {
this.undefStack.push({});
}),
(o.endGroup = function () {
if (this.undefStack.length === 0)
throw new a('Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug');
var c = this.undefStack.pop();
for (var _ in c) c.hasOwnProperty(_) && (c[_] == null ? delete this.current[_] : (this.current[_] = c[_]));
}),
(o.endGroups = function () {
for (; this.undefStack.length > 0; ) this.endGroup();
}),
(o.has = function (c) {
return this.current.hasOwnProperty(c) || this.builtins.hasOwnProperty(c);
}),
(o.get = function (c) {
return this.current.hasOwnProperty(c) ? this.current[c] : this.builtins[c];
}),
(o.set = function (c, _, h) {
if ((h === void 0 && (h = !1), h)) {
for (var b = 0; b < this.undefStack.length; b++) delete this.undefStack[b][c];
this.undefStack.length > 0 && (this.undefStack[this.undefStack.length - 1][c] = _);
} else {
var C = this.undefStack[this.undefStack.length - 1];
C && !C.hasOwnProperty(c) && (C[c] = this.current[c]);
}
_ == null ? delete this.current[c] : (this.current[c] = _);
}),
S
);
})(),
rC = Op,
nC = rC;
N('\\noexpand', function (S) {
var o = S.popToken();
return S.isExpandable(o.text) && ((o.noexpand = !0), (o.treatAsRelax = !0)), { tokens: [o], numArgs: 0 };
}),
N('\\expandafter', function (S) {
var o = S.popToken();
return S.expandOnce(!0), { tokens: [o], numArgs: 0 };
}),
N('\\@firstoftwo', function (S) {
var o = S.consumeArgs(2);
return { tokens: o[0], numArgs: 0 };
}),
N('\\@secondoftwo', function (S) {
var o = S.consumeArgs(2);
return { tokens: o[1], numArgs: 0 };
}),
N('\\@ifnextchar', function (S) {
var o = S.consumeArgs(3);
S.consumeSpaces();
var s = S.future();
return o[0].length === 1 && o[0][0].text === s.text ? { tokens: o[1], numArgs: 0 } : { tokens: o[2], numArgs: 0 };
}),
N('\\@ifstar', '\\@ifnextchar *{\\@firstoftwo{#1}}'),
N('\\TextOrMath', function (S) {
var o = S.consumeArgs(2);
return S.mode === 'text' ? { tokens: o[0], numArgs: 0 } : { tokens: o[1], numArgs: 0 };
});
var e0 = {
0: 0,
1: 1,
2: 2,
3: 3,
4: 4,
5: 5,
6: 6,
7: 7,
8: 8,
9: 9,
a: 10,
A: 10,
b: 11,
B: 11,
c: 12,
C: 12,
d: 13,
D: 13,
e: 14,
E: 14,
f: 15,
F: 15,
};
N('\\char', function (S) {
var o = S.popToken(),
s,
c = '';
if (o.text === "'") (s = 8), (o = S.popToken());
else if (o.text === '"') (s = 16), (o = S.popToken());
else if (o.text === '`')
if (((o = S.popToken()), o.text[0] === '\\')) c = o.text.charCodeAt(1);
else {
if (o.text === 'EOF') throw new a('\\char` missing argument');
c = o.text.charCodeAt(0);
}
else s = 10;
if (s) {
if (((c = e0[o.text]), c == null || c >= s)) throw new a('Invalid base-' + s + ' digit ' + o.text);
for (var _; (_ = e0[S.future().text]) != null && _ < s; ) (c *= s), (c += _), S.popToken();
}
return '\\@char{' + c + '}';
});
var cl = function (o, s, c) {
var _ = o.consumeArg().tokens;
if (_.length !== 1) throw new a("\\newcommand's first argument must be a macro name");
var h = _[0].text,
b = o.isDefined(h);
if (b && !s) throw new a('\\newcommand{' + h + '} attempting to redefine ' + (h + '; use \\renewcommand'));
if (!b && !c) throw new a('\\renewcommand{' + h + '} when command ' + h + ' does not yet exist; use \\newcommand');
var C = 0;
if (((_ = o.consumeArg().tokens), _.length === 1 && _[0].text === '[')) {
for (var A = '', I = o.expandNextToken(); I.text !== ']' && I.text !== 'EOF'; ) (A += I.text), (I = o.expandNextToken());
if (!A.match(/^\s*[0-9]+\s*$/)) throw new a('Invalid number of arguments: ' + A);
(C = parseInt(A)), (_ = o.consumeArg().tokens);
}
return o.macros.set(h, { tokens: _, numArgs: C }), '';
};
N('\\newcommand', function (S) {
return cl(S, !1, !0);
}),
N('\\renewcommand', function (S) {
return cl(S, !0, !1);
}),
N('\\providecommand', function (S) {
return cl(S, !0, !0);
}),
N('\\message', function (S) {
var o = S.consumeArgs(1)[0];
return (
console.log(
o
.reverse()
.map(function (s) {
return s.text;
})
.join('')
),
''
);
}),
N('\\errmessage', function (S) {
var o = S.consumeArgs(1)[0];
return (
console.error(
o
.reverse()
.map(function (s) {
return s.text;
})
.join('')
),
''
);
}),
N('\\show', function (S) {
var o = S.popToken(),
s = o.text;
return console.log(o, S.macros.get(s), xn[s], ut.math[s], ut.text[s]), '';
}),
N('\\bgroup', '{'),
N('\\egroup', '}'),
N('~', '\\nobreakspace'),
N('\\lq', '`'),
N('\\rq', "'"),
N('\\aa', '\\r a'),
N('\\AA', '\\r A'),
N('\\textcopyright', '\\html@mathml{\\textcircled{c}}{\\char`©}'),
N('\\copyright', '\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}'),
N('\\textregistered', '\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}'),
N('ℬ', '\\mathscr{B}'),
N('ℰ', '\\mathscr{E}'),
N('ℱ', '\\mathscr{F}'),
N('ℋ', '\\mathscr{H}'),
N('ℐ', '\\mathscr{I}'),
N('ℒ', '\\mathscr{L}'),
N('ℳ', '\\mathscr{M}'),
N('ℛ', '\\mathscr{R}'),
N('ℭ', '\\mathfrak{C}'),
N('ℌ', '\\mathfrak{H}'),
N('ℨ', '\\mathfrak{Z}'),
N('\\Bbbk', '\\Bbb{k}'),
N('·', '\\cdotp'),
N('\\llap', '\\mathllap{\\textrm{#1}}'),
N('\\rlap', '\\mathrlap{\\textrm{#1}}'),
N('\\clap', '\\mathclap{\\textrm{#1}}'),
N('\\mathstrut', '\\vphantom{(}'),
N('\\underbar', '\\underline{\\text{#1}}'),
N('\\not', '\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),
N('\\neq', '\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}'),
N('\\ne', '\\neq'),
N('≠', '\\neq'),
N('\\notin', '\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}'),
N('∉', '\\notin'),
N('≘', '\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}'),
N('≙', '\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}'),
N('≚', '\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}'),
N('≛', '\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}'),
N('≝', '\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}'),
N('≞', '\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}'),
N('≟', '\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}'),
N('⟂', '\\perp'),
N('‼', '\\mathclose{!\\mkern-0.8mu!}'),
N('∌', '\\notni'),
N('⌜', '\\ulcorner'),
N('⌝', '\\urcorner'),
N('⌞', '\\llcorner'),
N('⌟', '\\lrcorner'),
N('©', '\\copyright'),
N('®', '\\textregistered'),
N('️', '\\textregistered'),
N('\\ulcorner', '\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),
N('\\urcorner', '\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),
N('\\llcorner', '\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),
N('\\lrcorner', '\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),
N('\\vdots', '\\mathord{\\varvdots\\rule{0pt}{15pt}}'),
N('⋮', '\\vdots'),
N('\\varGamma', '\\mathit{\\Gamma}'),
N('\\varDelta', '\\mathit{\\Delta}'),
N('\\varTheta', '\\mathit{\\Theta}'),
N('\\varLambda', '\\mathit{\\Lambda}'),
N('\\varXi', '\\mathit{\\Xi}'),
N('\\varPi', '\\mathit{\\Pi}'),
N('\\varSigma', '\\mathit{\\Sigma}'),
N('\\varUpsilon', '\\mathit{\\Upsilon}'),
N('\\varPhi', '\\mathit{\\Phi}'),
N('\\varPsi', '\\mathit{\\Psi}'),
N('\\varOmega', '\\mathit{\\Omega}'),
N('\\substack', '\\begin{subarray}{c}#1\\end{subarray}'),
N('\\colon', '\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax'),
N('\\boxed', '\\fbox{$\\displaystyle{#1}$}'),
N('\\iff', '\\DOTSB\\;\\Longleftrightarrow\\;'),
N('\\implies', '\\DOTSB\\;\\Longrightarrow\\;'),
N('\\impliedby', '\\DOTSB\\;\\Longleftarrow\\;');
var t0 = {
',': '\\dotsc',
'\\not': '\\dotsb',
'+': '\\dotsb',
'=': '\\dotsb',
'<': '\\dotsb',
'>': '\\dotsb',
'-': '\\dotsb',
'*': '\\dotsb',
':': '\\dotsb',
'\\DOTSB': '\\dotsb',
'\\coprod': '\\dotsb',
'\\bigvee': '\\dotsb',
'\\bigwedge': '\\dotsb',
'\\biguplus': '\\dotsb',
'\\bigcap': '\\dotsb',
'\\bigcup': '\\dotsb',
'\\prod': '\\dotsb',
'\\sum': '\\dotsb',
'\\bigotimes': '\\dotsb',
'\\bigoplus': '\\dotsb',
'\\bigodot': '\\dotsb',
'\\bigsqcup': '\\dotsb',
'\\And': '\\dotsb',
'\\longrightarrow': '\\dotsb',
'\\Longrightarrow': '\\dotsb',
'\\longleftarrow': '\\dotsb',
'\\Longleftarrow': '\\dotsb',
'\\longleftrightarrow': '\\dotsb',
'\\Longleftrightarrow': '\\dotsb',
'\\mapsto': '\\dotsb',
'\\longmapsto': '\\dotsb',
'\\hookrightarrow': '\\dotsb',
'\\doteq': '\\dotsb',
'\\mathbin': '\\dotsb',
'\\mathrel': '\\dotsb',
'\\relbar': '\\dotsb',
'\\Relbar': '\\dotsb',
'\\xrightarrow': '\\dotsb',
'\\xleftarrow': '\\dotsb',
'\\DOTSI': '\\dotsi',
'\\int': '\\dotsi',
'\\oint': '\\dotsi',
'\\iint': '\\dotsi',
'\\iiint': '\\dotsi',
'\\iiiint': '\\dotsi',
'\\idotsint': '\\dotsi',
'\\DOTSX': '\\dotsx',
};
N('\\dots', function (S) {
var o = '\\dotso',
s = S.expandAfterFuture().text;
return (
s in t0 ? (o = t0[s]) : (s.slice(0, 4) === '\\not' || (s in ut.math && w.contains(['bin', 'rel'], ut.math[s].group))) && (o = '\\dotsb'), o
);
});
var ul = {
')': !0,
']': !0,
'\\rbrack': !0,
'\\}': !0,
'\\rbrace': !0,
'\\rangle': !0,
'\\rceil': !0,
'\\rfloor': !0,
'\\rgroup': !0,
'\\rmoustache': !0,
'\\right': !0,
'\\bigr': !0,
'\\biggr': !0,
'\\Bigr': !0,
'\\Biggr': !0,
$: !0,
';': !0,
'.': !0,
',': !0,
};
N('\\dotso', function (S) {
var o = S.future().text;
return o in ul ? '\\ldots\\,' : '\\ldots';
}),
N('\\dotsc', function (S) {
var o = S.future().text;
return o in ul && o !== ',' ? '\\ldots\\,' : '\\ldots';
}),
N('\\cdots', function (S) {
var o = S.future().text;
return o in ul ? '\\@cdots\\,' : '\\@cdots';
}),
N('\\dotsb', '\\cdots'),
N('\\dotsm', '\\cdots'),
N('\\dotsi', '\\!\\cdots'),
N('\\dotsx', '\\ldots\\,'),
N('\\DOTSI', '\\relax'),
N('\\DOTSB', '\\relax'),
N('\\DOTSX', '\\relax'),
N('\\tmspace', '\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax'),
N('\\,', '\\tmspace+{3mu}{.1667em}'),
N('\\thinspace', '\\,'),
N('\\>', '\\mskip{4mu}'),
N('\\:', '\\tmspace+{4mu}{.2222em}'),
N('\\medspace', '\\:'),
N('\\;', '\\tmspace+{5mu}{.2777em}'),
N('\\thickspace', '\\;'),
N('\\!', '\\tmspace-{3mu}{.1667em}'),
N('\\negthinspace', '\\!'),
N('\\negmedspace', '\\tmspace-{4mu}{.2222em}'),
N('\\negthickspace', '\\tmspace-{5mu}{.277em}'),
N('\\enspace', '\\kern.5em '),
N('\\enskip', '\\hskip.5em\\relax'),
N('\\quad', '\\hskip1em\\relax'),
N('\\qquad', '\\hskip2em\\relax'),
N('\\tag', '\\@ifstar\\tag@literal\\tag@paren'),
N('\\tag@paren', '\\tag@literal{({#1})}'),
N('\\tag@literal', function (S) {
if (S.macros.get('\\df@tag')) throw new a('Multiple \\tag');
return '\\gdef\\df@tag{\\text{#1}}';
}),
N(
'\\bmod',
'\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}'
),
N('\\pod', '\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)'),
N('\\pmod', '\\pod{{\\rm mod}\\mkern6mu#1}'),
N('\\mod', '\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1'),
N('\\newline', '\\\\\\relax'),
N('\\TeX', '\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}');
var r0 = _e(ke['Main-Regular']['T'.charCodeAt(0)][1] - 0.7 * ke['Main-Regular']['A'.charCodeAt(0)][1]);
N('\\LaTeX', '\\textrm{\\html@mathml{' + ('L\\kern-.36em\\raisebox{' + r0 + '}{\\scriptstyle A}') + '\\kern-.15em\\TeX}{LaTeX}}'),
N('\\KaTeX', '\\textrm{\\html@mathml{' + ('K\\kern-.17em\\raisebox{' + r0 + '}{\\scriptstyle A}') + '\\kern-.15em\\TeX}{KaTeX}}'),
N('\\hspace', '\\@ifstar\\@hspacer\\@hspace'),
N('\\@hspace', '\\hskip #1\\relax'),
N('\\@hspacer', '\\rule{0pt}{0pt}\\hskip #1\\relax'),
N('\\ordinarycolon', ':'),
N('\\vcentcolon', '\\mathrel{\\mathop\\ordinarycolon}'),
N('\\dblcolon', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),
N('\\coloneqq', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),
N('\\Coloneqq', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),
N('\\coloneq', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),
N('\\Coloneq', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),
N('\\eqqcolon', '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),
N('\\Eqqcolon', '\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),
N('\\eqcolon', '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),
N('\\Eqcolon', '\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),
N('\\colonapprox', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),
N('\\Colonapprox', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),
N('\\colonsim', '\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),
N('\\Colonsim', '\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),
N('∷', '\\dblcolon'),
N('∹', '\\eqcolon'),
N('≔', '\\coloneqq'),
N('≕', '\\eqqcolon'),
N('⩴', '\\Coloneqq'),
N('\\ratio', '\\vcentcolon'),
N('\\coloncolon', '\\dblcolon'),
N('\\colonequals', '\\coloneqq'),
N('\\coloncolonequals', '\\Coloneqq'),
N('\\equalscolon', '\\eqqcolon'),
N('\\equalscoloncolon', '\\Eqqcolon'),
N('\\colonminus', '\\coloneq'),
N('\\coloncolonminus', '\\Coloneq'),
N('\\minuscolon', '\\eqcolon'),
N('\\minuscoloncolon', '\\Eqcolon'),
N('\\coloncolonapprox', '\\Colonapprox'),
N('\\coloncolonsim', '\\Colonsim'),
N('\\simcolon', '\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}'),
N('\\simcoloncolon', '\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}'),
N('\\approxcolon', '\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}'),
N('\\approxcoloncolon', '\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}'),
N('\\notni', '\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}'),
N('\\limsup', '\\DOTSB\\operatorname*{lim\\,sup}'),
N('\\liminf', '\\DOTSB\\operatorname*{lim\\,inf}'),
N('\\injlim', '\\DOTSB\\operatorname*{inj\\,lim}'),
N('\\projlim', '\\DOTSB\\operatorname*{proj\\,lim}'),
N('\\varlimsup', '\\DOTSB\\operatorname*{\\overline{lim}}'),
N('\\varliminf', '\\DOTSB\\operatorname*{\\underline{lim}}'),
N('\\varinjlim', '\\DOTSB\\operatorname*{\\underrightarrow{lim}}'),
N('\\varprojlim', '\\DOTSB\\operatorname*{\\underleftarrow{lim}}'),
N('\\gvertneqq', '\\html@mathml{\\@gvertneqq}{≩}'),
N('\\lvertneqq', '\\html@mathml{\\@lvertneqq}{≨}'),
N('\\ngeqq', '\\html@mathml{\\@ngeqq}{≱}'),
N('\\ngeqslant', '\\html@mathml{\\@ngeqslant}{≱}'),
N('\\nleqq', '\\html@mathml{\\@nleqq}{≰}'),
N('\\nleqslant', '\\html@mathml{\\@nleqslant}{≰}'),
N('\\nshortmid', '\\html@mathml{\\@nshortmid}{∤}'),
N('\\nshortparallel', '\\html@mathml{\\@nshortparallel}{∦}'),
N('\\nsubseteqq', '\\html@mathml{\\@nsubseteqq}{⊈}'),
N('\\nsupseteqq', '\\html@mathml{\\@nsupseteqq}{⊉}'),
N('\\varsubsetneq', '\\html@mathml{\\@varsubsetneq}{⊊}'),
N('\\varsubsetneqq', '\\html@mathml{\\@varsubsetneqq}{⫋}'),
N('\\varsupsetneq', '\\html@mathml{\\@varsupsetneq}{⊋}'),
N('\\varsupsetneqq', '\\html@mathml{\\@varsupsetneqq}{⫌}'),
N('\\imath', '\\html@mathml{\\@imath}{ı}'),
N('\\jmath', '\\html@mathml{\\@jmath}{ȷ}'),
N('\\llbracket', '\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}'),
N('\\rrbracket', '\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}'),
N('⟦', '\\llbracket'),
N('⟧', '\\rrbracket'),
N('\\lBrace', '\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}'),
N('\\rBrace', '\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}'),
N('⦃', '\\lBrace'),
N('⦄', '\\rBrace'),
N(
'\\minuso',
'\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}'
),
N('⦵', '\\minuso'),
N('\\darr', '\\downarrow'),
N('\\dArr', '\\Downarrow'),
N('\\Darr', '\\Downarrow'),
N('\\lang', '\\langle'),
N('\\rang', '\\rangle'),
N('\\uarr', '\\uparrow'),
N('\\uArr', '\\Uparrow'),
N('\\Uarr', '\\Uparrow'),
N('\\N', '\\mathbb{N}'),
N('\\R', '\\mathbb{R}'),
N('\\Z', '\\mathbb{Z}'),
N('\\alef', '\\aleph'),
N('\\alefsym', '\\aleph'),
N('\\Alpha', '\\mathrm{A}'),
N('\\Beta', '\\mathrm{B}'),
N('\\bull', '\\bullet'),
N('\\Chi', '\\mathrm{X}'),
N('\\clubs', '\\clubsuit'),
N('\\cnums', '\\mathbb{C}'),
N('\\Complex', '\\mathbb{C}'),
N('\\Dagger', '\\ddagger'),
N('\\diamonds', '\\diamondsuit'),
N('\\empty', '\\emptyset'),
N('\\Epsilon', '\\mathrm{E}'),
N('\\Eta', '\\mathrm{H}'),
N('\\exist', '\\exists'),
N('\\harr', '\\leftrightarrow'),
N('\\hArr', '\\Leftrightarrow'),
N('\\Harr', '\\Leftrightarrow'),
N('\\hearts', '\\heartsuit'),
N('\\image', '\\Im'),
N('\\infin', '\\infty'),
N('\\Iota', '\\mathrm{I}'),
N('\\isin', '\\in'),
N('\\Kappa', '\\mathrm{K}'),
N('\\larr', '\\leftarrow'),
N('\\lArr', '\\Leftarrow'),
N('\\Larr', '\\Leftarrow'),
N('\\lrarr', '\\leftrightarrow'),
N('\\lrArr', '\\Leftrightarrow'),
N('\\Lrarr', '\\Leftrightarrow'),
N('\\Mu', '\\mathrm{M}'),
N('\\natnums', '\\mathbb{N}'),
N('\\Nu', '\\mathrm{N}'),
N('\\Omicron', '\\mathrm{O}'),
N('\\plusmn', '\\pm'),
N('\\rarr', '\\rightarrow'),
N('\\rArr', '\\Rightarrow'),
N('\\Rarr', '\\Rightarrow'),
N('\\real', '\\Re'),
N('\\reals', '\\mathbb{R}'),
N('\\Reals', '\\mathbb{R}'),
N('\\Rho', '\\mathrm{P}'),
N('\\sdot', '\\cdot'),
N('\\sect', '\\S'),
N('\\spades', '\\spadesuit'),
N('\\sub', '\\subset'),
N('\\sube', '\\subseteq'),
N('\\supe', '\\supseteq'),
N('\\Tau', '\\mathrm{T}'),
N('\\thetasym', '\\vartheta'),
N('\\weierp', '\\wp'),
N('\\Zeta', '\\mathrm{Z}'),
N('\\argmin', '\\DOTSB\\operatorname*{arg\\,min}'),
N('\\argmax', '\\DOTSB\\operatorname*{arg\\,max}'),
N('\\plim', '\\DOTSB\\mathop{\\operatorname{plim}}\\limits'),
N('\\bra', '\\mathinner{\\langle{#1}|}'),
N('\\ket', '\\mathinner{|{#1}\\rangle}'),
N('\\braket', '\\mathinner{\\langle{#1}\\rangle}'),
N('\\Bra', '\\left\\langle#1\\right|'),
N('\\Ket', '\\left|#1\\right\\rangle');
var n0 = function (o) {
return function (s) {
var c = s.consumeArg().tokens,
_ = s.consumeArg().tokens,
h = s.consumeArg().tokens,
b = s.consumeArg().tokens,
C = s.macros.get('|'),
A = s.macros.get('\\|');
s.macros.beginGroup();
var I = function (J) {
return function (ie) {
o && (ie.macros.set('|', C), h.length && ie.macros.set('\\|', A));
var pe = J;
if (!J && h.length) {
var Te = ie.future();
Te.text === '|' && (ie.popToken(), (pe = !0));
}
return { tokens: pe ? h : _, numArgs: 0 };
};
};
s.macros.set('|', I(!1)), h.length && s.macros.set('\\|', I(!0));
var k = s.consumeArg().tokens,
W = s.expandTokens([].concat(b, k, c));
return s.macros.endGroup(), { tokens: W.reverse(), numArgs: 0 };
};
};
N('\\bra@ket', n0(!1)),
N('\\bra@set', n0(!0)),
N('\\Braket', '\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}'),
N('\\Set', '\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}'),
N('\\set', '\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}'),
N('\\angln', '{\\angl n}'),
N('\\blue', '\\textcolor{##6495ed}{#1}'),
N('\\orange', '\\textcolor{##ffa500}{#1}'),
N('\\pink', '\\textcolor{##ff00af}{#1}'),
N('\\red', '\\textcolor{##df0030}{#1}'),
N('\\green', '\\textcolor{##28ae7b}{#1}'),
N('\\gray', '\\textcolor{gray}{#1}'),
N('\\purple', '\\textcolor{##9d38bd}{#1}'),
N('\\blueA', '\\textcolor{##ccfaff}{#1}'),
N('\\blueB', '\\textcolor{##80f6ff}{#1}'),
N('\\blueC', '\\textcolor{##63d9ea}{#1}'),
N('\\blueD', '\\textcolor{##11accd}{#1}'),
N('\\blueE', '\\textcolor{##0c7f99}{#1}'),
N('\\tealA', '\\textcolor{##94fff5}{#1}'),
N('\\tealB', '\\textcolor{##26edd5}{#1}'),
N('\\tealC', '\\textcolor{##01d1c1}{#1}'),
N('\\tealD', '\\textcolor{##01a995}{#1}'),
N('\\tealE', '\\textcolor{##208170}{#1}'),
N('\\greenA', '\\textcolor{##b6ffb0}{#1}'),
N('\\greenB', '\\textcolor{##8af281}{#1}'),
N('\\greenC', '\\textcolor{##74cf70}{#1}'),
N('\\greenD', '\\textcolor{##1fab54}{#1}'),
N('\\greenE', '\\textcolor{##0d923f}{#1}'),
N('\\goldA', '\\textcolor{##ffd0a9}{#1}'),
N('\\goldB', '\\textcolor{##ffbb71}{#1}'),
N('\\goldC', '\\textcolor{##ff9c39}{#1}'),
N('\\goldD', '\\textcolor{##e07d10}{#1}'),
N('\\goldE', '\\textcolor{##a75a05}{#1}'),
N('\\redA', '\\textcolor{##fca9a9}{#1}'),
N('\\redB', '\\textcolor{##ff8482}{#1}'),
N('\\redC', '\\textcolor{##f9685d}{#1}'),
N('\\redD', '\\textcolor{##e84d39}{#1}'),
N('\\redE', '\\textcolor{##bc2612}{#1}'),
N('\\maroonA', '\\textcolor{##ffbde0}{#1}'),
N('\\maroonB', '\\textcolor{##ff92c6}{#1}'),
N('\\maroonC', '\\textcolor{##ed5fa6}{#1}'),
N('\\maroonD', '\\textcolor{##ca337c}{#1}'),
N('\\maroonE', '\\textcolor{##9e034e}{#1}'),
N('\\purpleA', '\\textcolor{##ddd7ff}{#1}'),
N('\\purpleB', '\\textcolor{##c6b9fc}{#1}'),
N('\\purpleC', '\\textcolor{##aa87ff}{#1}'),
N('\\purpleD', '\\textcolor{##7854ab}{#1}'),
N('\\purpleE', '\\textcolor{##543b78}{#1}'),
N('\\mintA', '\\textcolor{##f5f9e8}{#1}'),
N('\\mintB', '\\textcolor{##edf2df}{#1}'),
N('\\mintC', '\\textcolor{##e0e5cc}{#1}'),
N('\\grayA', '\\textcolor{##f6f7f7}{#1}'),
N('\\grayB', '\\textcolor{##f0f1f2}{#1}'),
N('\\grayC', '\\textcolor{##e3e5e6}{#1}'),
N('\\grayD', '\\textcolor{##d6d8da}{#1}'),
N('\\grayE', '\\textcolor{##babec2}{#1}'),
N('\\grayF', '\\textcolor{##888d93}{#1}'),
N('\\grayG', '\\textcolor{##626569}{#1}'),
N('\\grayH', '\\textcolor{##3b3e40}{#1}'),
N('\\grayI', '\\textcolor{##21242c}{#1}'),
N('\\kaBlue', '\\textcolor{##314453}{#1}'),
N('\\kaGreen', '\\textcolor{##71B307}{#1}');
var i0 = { '^': !0, _: !0, '\\limits': !0, '\\nolimits': !0 },
iC = (function () {
function S(s, c, _) {
(this.settings = void 0),
(this.expansionCount = void 0),
(this.lexer = void 0),
(this.macros = void 0),
(this.stack = void 0),
(this.mode = void 0),
(this.settings = c),
(this.expansionCount = 0),
this.feed(s),
(this.macros = new tC(nC, c.macros)),
(this.mode = _),
(this.stack = []);
}
var o = S.prototype;
return (
(o.feed = function (c) {
this.lexer = new jp(c, this.settings);
}),
(o.switchMode = function (c) {
this.mode = c;
}),
(o.beginGroup = function () {
this.macros.beginGroup();
}),
(o.endGroup = function () {
this.macros.endGroup();
}),
(o.endGroups = function () {
this.macros.endGroups();
}),
(o.future = function () {
return this.stack.length === 0 && this.pushToken(this.lexer.lex()), this.stack[this.stack.length - 1];
}),
(o.popToken = function () {
return this.future(), this.stack.pop();
}),
(o.pushToken = function (c) {
this.stack.push(c);
}),
(o.pushTokens = function (c) {
var _;
(_ = this.stack).push.apply(_, c);
}),
(o.scanArgument = function (c) {
var _, h, b;
if (c) {
if ((this.consumeSpaces(), this.future().text !== '[')) return null;
_ = this.popToken();
var C = this.consumeArg([']']);
(b = C.tokens), (h = C.end);
} else {
var A = this.consumeArg();
(b = A.tokens), (_ = A.start), (h = A.end);
}
return this.pushToken(new Zr('EOF', h.loc)), this.pushTokens(b), _.range(h, '');
}),
(o.consumeSpaces = function () {
for (;;) {
var c = this.future();
if (c.text === ' ') this.stack.pop();
else break;
}
}),
(o.consumeArg = function (c) {
var _ = [],
h = c && c.length > 0;
h || this.consumeSpaces();
var b = this.future(),
C,
A = 0,
I = 0;
do {
if (((C = this.popToken()), _.push(C), C.text === '{')) ++A;
else if (C.text === '}') {
if ((--A, A === -1)) throw new a('Extra }', C);
} else if (C.text === 'EOF') throw new a("Unexpected end of input in a macro argument, expected '" + (c && h ? c[I] : '}') + "'", C);
if (c && h)
if ((A === 0 || (A === 1 && c[I] === '{')) && C.text === c[I]) {
if ((++I, I === c.length)) {
_.splice(-I, I);
break;
}
} else I = 0;
} while (A !== 0 || h);
return b.text === '{' && _[_.length - 1].text === '}' && (_.pop(), _.shift()), _.reverse(), { tokens: _, start: b, end: C };
}),
(o.consumeArgs = function (c, _) {
if (_) {
if (_.length !== c + 1) throw new a("The length of delimiters doesn't match the number of args!");
for (var h = _[0], b = 0; b < h.length; b++) {
var C = this.popToken();
if (h[b] !== C.text) throw new a("Use of the macro doesn't match its definition", C);
}
}
for (var A = [], I = 0; I < c; I++) A.push(this.consumeArg(_ && _[I + 1]).tokens);
return A;
}),
(o.expandOnce = function (c) {
var _ = this.popToken(),
h = _.text,
b = _.noexpand ? null : this._getExpansion(h);
if (b == null || (c && b.unexpandable)) {
if (c && b == null && h[0] === '\\' && !this.isDefined(h)) throw new a('Undefined control sequence: ' + h);
return this.pushToken(_), _;
}
if ((this.expansionCount++, this.expansionCount > this.settings.maxExpand))
throw new a('Too many expansions: infinite loop or need to increase maxExpand setting');
var C = b.tokens,
A = this.consumeArgs(b.numArgs, b.delimiters);
if (b.numArgs) {
C = C.slice();
for (var I = C.length - 1; I >= 0; --I) {
var k = C[I];
if (k.text === '#') {
if (I === 0) throw new a('Incomplete placeholder at end of macro body', k);
if (((k = C[--I]), k.text === '#')) C.splice(I + 1, 1);
else if (/^[1-9]$/.test(k.text)) {
var W;
(W = C).splice.apply(W, [I, 2].concat(A[+k.text - 1]));
} else throw new a('Not a valid argument number', k);
}
}
}
return this.pushTokens(C), C;
}),
(o.expandAfterFuture = function () {
return this.expandOnce(), this.future();
}),
(o.expandNextToken = function () {
for (;;) {
var c = this.expandOnce();
if (c instanceof Zr) return c.treatAsRelax && (c.text = '\\relax'), this.stack.pop();
}
throw new Error();
}),
(o.expandMacro = function (c) {
return this.macros.has(c) ? this.expandTokens([new Zr(c)]) : void 0;
}),
(o.expandTokens = function (c) {
var _ = [],
h = this.stack.length;
for (this.pushTokens(c); this.stack.length > h; ) {
var b = this.expandOnce(!0);
b instanceof Zr && (b.treatAsRelax && ((b.noexpand = !1), (b.treatAsRelax = !1)), _.push(this.stack.pop()));
}
return _;
}),
(o.expandMacroAsText = function (c) {
var _ = this.expandMacro(c);
return (
_ &&
_.map(function (h) {
return h.text;
}).join('')
);
}),
(o._getExpansion = function (c) {
var _ = this.macros.get(c);
if (_ == null) return _;
if (c.length === 1) {
var h = this.lexer.catcodes[c];
if (h != null && h !== 13) return;
}
var b = typeof _ == 'function' ? _(this) : _;
if (typeof b == 'string') {
var C = 0;
if (b.indexOf('#') !== -1) for (var A = b.replace(/##/g, ''); A.indexOf('#' + (C + 1)) !== -1; ) ++C;
for (var I = new jp(b, this.settings), k = [], W = I.lex(); W.text !== 'EOF'; ) k.push(W), (W = I.lex());
k.reverse();
var ee = { tokens: k, numArgs: C };
return ee;
}
return b;
}),
(o.isDefined = function (c) {
return this.macros.has(c) || xn.hasOwnProperty(c) || ut.math.hasOwnProperty(c) || ut.text.hasOwnProperty(c) || i0.hasOwnProperty(c);
}),
(o.isExpandable = function (c) {
var _ = this.macros.get(c);
return _ != null ? typeof _ == 'string' || typeof _ == 'function' || !_.unexpandable : xn.hasOwnProperty(c) && !xn[c].primitive;
}),
S
);
})(),
a0 = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,
ja = Object.freeze({
'₊': '+',
'₋': '-',
'₌': '=',
'₍': '(',
'₎': ')',
'₀': '0',
'₁': '1',
'₂': '2',
'₃': '3',
'₄': '4',
'₅': '5',
'₆': '6',
'₇': '7',
'₈': '8',
'₉': '9',
ₐ: 'a',
ₑ: 'e',
ₕ: 'h',
ᵢ: 'i',
ⱼ: 'j',
ₖ: 'k',
ₗ: 'l',
ₘ: 'm',
ₙ: 'n',
ₒ: 'o',
ₚ: 'p',
ᵣ: 'r',
ₛ: 's',
ₜ: 't',
ᵤ: 'u',
ᵥ: 'v',
ₓ: 'x',
ᵦ: 'β',
ᵧ: 'γ',
ᵨ: 'ρ',
ᵩ: 'ϕ',
ᵪ: 'χ',
'⁺': '+',
'⁻': '-',
'⁼': '=',
'⁽': '(',
'⁾': ')',
'⁰': '0',
'¹': '1',
'²': '2',
'³': '3',
'⁴': '4',
'⁵': '5',
'⁶': '6',
'⁷': '7',
'⁸': '8',
'⁹': '9',
ᴬ: 'A',
ᴮ: 'B',
ᴰ: 'D',
ᴱ: 'E',
ᴳ: 'G',
ᴴ: 'H',
ᴵ: 'I',
ᴶ: 'J',
ᴷ: 'K',
ᴸ: 'L',
ᴹ: 'M',
ᴺ: 'N',
ᴼ: 'O',
ᴾ: 'P',
ᴿ: 'R',
ᵀ: 'T',
ᵁ: 'U',
ⱽ: 'V',
ᵂ: 'W',
ᵃ: 'a',
ᵇ: 'b',
ᶜ: 'c',
ᵈ: 'd',
ᵉ: 'e',
ᶠ: 'f',
ᵍ: 'g',
ʰ: 'h',
ⁱ: 'i',
ʲ: 'j',
ᵏ: 'k',
ˡ: 'l',
ᵐ: 'm',
ⁿ: 'n',
ᵒ: 'o',
ᵖ: 'p',
ʳ: 'r',
ˢ: 's',
ᵗ: 't',
ᵘ: 'u',
ᵛ: 'v',
ʷ: 'w',
ˣ: 'x',
ʸ: 'y',
ᶻ: 'z',
ᵝ: 'β',
ᵞ: 'γ',
ᵟ: 'δ',
ᵠ: 'ϕ',
ᵡ: 'χ',
ᶿ: 'θ',
}),
dl = {
'́': { text: "\\'", math: '\\acute' },
'̀': { text: '\\`', math: '\\grave' },
'̈': { text: '\\"', math: '\\ddot' },
'̃': { text: '\\~', math: '\\tilde' },
'̄': { text: '\\=', math: '\\bar' },
'̆': { text: '\\u', math: '\\breve' },
'̌': { text: '\\v', math: '\\check' },
'̂': { text: '\\^', math: '\\hat' },
'̇': { text: '\\.', math: '\\dot' },
'̊': { text: '\\r', math: '\\mathring' },
'̋': { text: '\\H' },
'̧': { text: '\\c' },
},
o0 = {
á: 'á',
à: 'à',
ä: 'ä',
ǟ: 'ǟ',
ã: 'ã',
ā: 'ā',
ă: 'ă',
ắ: 'ắ',
ằ: 'ằ',
ẵ: 'ẵ',
ǎ: 'ǎ',
â: 'â',
ấ: 'ấ',
ầ: 'ầ',
ẫ: 'ẫ',
ȧ: 'ȧ',
ǡ: 'ǡ',
å: 'å',
ǻ: 'ǻ',
ḃ: 'ḃ',
ć: 'ć',
ḉ: 'ḉ',
č: 'č',
ĉ: 'ĉ',
ċ: 'ċ',
ç: 'ç',
ď: 'ď',
ḋ: 'ḋ',
ḑ: 'ḑ',
é: 'é',
è: 'è',
ë: 'ë',
ẽ: 'ẽ',
ē: 'ē',
ḗ: 'ḗ',
ḕ: 'ḕ',
ĕ: 'ĕ',
ḝ: 'ḝ',
ě: 'ě',
ê: 'ê',
ế: 'ế',
ề: 'ề',
ễ: 'ễ',
ė: 'ė',
ȩ: 'ȩ',
ḟ: 'ḟ',
ǵ: 'ǵ',
ḡ: 'ḡ',
ğ: 'ğ',
ǧ: 'ǧ',
ĝ: 'ĝ',
ġ: 'ġ',
ģ: 'ģ',
ḧ: 'ḧ',
ȟ: 'ȟ',
ĥ: 'ĥ',
ḣ: 'ḣ',
ḩ: 'ḩ',
í: 'í',
ì: 'ì',
ï: 'ï',
ḯ: 'ḯ',
ĩ: 'ĩ',
ī: 'ī',
ĭ: 'ĭ',
ǐ: 'ǐ',
î: 'î',
ǰ: 'ǰ',
ĵ: 'ĵ',
ḱ: 'ḱ',
ǩ: 'ǩ',
ķ: 'ķ',
ĺ: 'ĺ',
ľ: 'ľ',
ļ: 'ļ',
ḿ: 'ḿ',
ṁ: 'ṁ',
ń: 'ń',
ǹ: 'ǹ',
ñ: 'ñ',
ň: 'ň',
ṅ: 'ṅ',
ņ: 'ņ',
ó: 'ó',
ò: 'ò',
ö: 'ö',
ȫ: 'ȫ',
õ: 'õ',
ṍ: 'ṍ',
ṏ: 'ṏ',
ȭ: 'ȭ',
ō: 'ō',
ṓ: 'ṓ',
ṑ: 'ṑ',
ŏ: 'ŏ',
ǒ: 'ǒ',
ô: 'ô',
ố: 'ố',
ồ: 'ồ',
ỗ: 'ỗ',
ȯ: 'ȯ',
ȱ: 'ȱ',
ő: 'ő',
ṕ: 'ṕ',
ṗ: 'ṗ',
ŕ: 'ŕ',
ř: 'ř',
ṙ: 'ṙ',
ŗ: 'ŗ',
ś: 'ś',
ṥ: 'ṥ',
š: 'š',
ṧ: 'ṧ',
ŝ: 'ŝ',
ṡ: 'ṡ',
ş: 'ş',
ẗ: 'ẗ',
ť: 'ť',
ṫ: 'ṫ',
ţ: 'ţ',
ú: 'ú',
ù: 'ù',
ü: 'ü',
ǘ: 'ǘ',
ǜ: 'ǜ',
ǖ: 'ǖ',
ǚ: 'ǚ',
ũ: 'ũ',
ṹ: 'ṹ',
ū: 'ū',
ṻ: 'ṻ',
ŭ: 'ŭ',
ǔ: 'ǔ',
û: 'û',
ů: 'ů',
ű: 'ű',
ṽ: 'ṽ',
ẃ: 'ẃ',
ẁ: 'ẁ',
ẅ: 'ẅ',
ŵ: 'ŵ',
ẇ: 'ẇ',
ẘ: 'ẘ',
ẍ: 'ẍ',
ẋ: 'ẋ',
ý: 'ý',
ỳ: 'ỳ',
ÿ: 'ÿ',
ỹ: 'ỹ',
ȳ: 'ȳ',
ŷ: 'ŷ',
ẏ: 'ẏ',
ẙ: 'ẙ',
ź: 'ź',
ž: 'ž',
ẑ: 'ẑ',
ż: 'ż',
Á: 'Á',
À: 'À',
Ä: 'Ä',
Ǟ: 'Ǟ',
Ã: 'Ã',
Ā: 'Ā',
Ă: 'Ă',
Ắ: 'Ắ',
Ằ: 'Ằ',
Ẵ: 'Ẵ',
Ǎ: 'Ǎ',
Â: 'Â',
Ấ: 'Ấ',
Ầ: 'Ầ',
Ẫ: 'Ẫ',
Ȧ: 'Ȧ',
Ǡ: 'Ǡ',
Å: 'Å',
Ǻ: 'Ǻ',
Ḃ: 'Ḃ',
Ć: 'Ć',
Ḉ: 'Ḉ',
Č: 'Č',
Ĉ: 'Ĉ',
Ċ: 'Ċ',
Ç: 'Ç',
Ď: 'Ď',
Ḋ: 'Ḋ',
Ḑ: 'Ḑ',
É: 'É',
È: 'È',
Ë: 'Ë',
Ẽ: 'Ẽ',
Ē: 'Ē',
Ḗ: 'Ḗ',
Ḕ: 'Ḕ',
Ĕ: 'Ĕ',
Ḝ: 'Ḝ',
Ě: 'Ě',
Ê: 'Ê',
Ế: 'Ế',
Ề: 'Ề',
Ễ: 'Ễ',
Ė: 'Ė',
Ȩ: 'Ȩ',
Ḟ: 'Ḟ',
Ǵ: 'Ǵ',
Ḡ: 'Ḡ',
Ğ: 'Ğ',
Ǧ: 'Ǧ',
Ĝ: 'Ĝ',
Ġ: 'Ġ',
Ģ: 'Ģ',
Ḧ: 'Ḧ',
Ȟ: 'Ȟ',
Ĥ: 'Ĥ',
Ḣ: 'Ḣ',
Ḩ: 'Ḩ',
Í: 'Í',
Ì: 'Ì',
Ï: 'Ï',
Ḯ: 'Ḯ',
Ĩ: 'Ĩ',
Ī: 'Ī',
Ĭ: 'Ĭ',
Ǐ: 'Ǐ',
Î: 'Î',
İ: 'İ',
Ĵ: 'Ĵ',
Ḱ: 'Ḱ',
Ǩ: 'Ǩ',
Ķ: 'Ķ',
Ĺ: 'Ĺ',
Ľ: 'Ľ',
Ļ: 'Ļ',
Ḿ: 'Ḿ',
Ṁ: 'Ṁ',
Ń: 'Ń',
Ǹ: 'Ǹ',
Ñ: 'Ñ',
Ň: 'Ň',
Ṅ: 'Ṅ',
Ņ: 'Ņ',
Ó: 'Ó',
Ò: 'Ò',
Ö: 'Ö',
Ȫ: 'Ȫ',
Õ: 'Õ',
Ṍ: 'Ṍ',
Ṏ: 'Ṏ',
Ȭ: 'Ȭ',
Ō: 'Ō',
Ṓ: 'Ṓ',
Ṑ: 'Ṑ',
Ŏ: 'Ŏ',
Ǒ: 'Ǒ',
Ô: 'Ô',
Ố: 'Ố',
Ồ: 'Ồ',
Ỗ: 'Ỗ',
Ȯ: 'Ȯ',
Ȱ: 'Ȱ',
Ő: 'Ő',
Ṕ: 'Ṕ',
Ṗ: 'Ṗ',
Ŕ: 'Ŕ',
Ř: 'Ř',
Ṙ: 'Ṙ',
Ŗ: 'Ŗ',
Ś: 'Ś',
Ṥ: 'Ṥ',
Š: 'Š',
Ṧ: 'Ṧ',
Ŝ: 'Ŝ',
Ṡ: 'Ṡ',
Ş: 'Ş',
Ť: 'Ť',
Ṫ: 'Ṫ',
Ţ: 'Ţ',
Ú: 'Ú',
Ù: 'Ù',
Ü: 'Ü',
Ǘ: 'Ǘ',
Ǜ: 'Ǜ',
Ǖ: 'Ǖ',
Ǚ: 'Ǚ',
Ũ: 'Ũ',
Ṹ: 'Ṹ',
Ū: 'Ū',
Ṻ: 'Ṻ',
Ŭ: 'Ŭ',
Ǔ: 'Ǔ',
Û: 'Û',
Ů: 'Ů',
Ű: 'Ű',
Ṽ: 'Ṽ',
Ẃ: 'Ẃ',
Ẁ: 'Ẁ',
Ẅ: 'Ẅ',
Ŵ: 'Ŵ',
Ẇ: 'Ẇ',
Ẍ: 'Ẍ',
Ẋ: 'Ẋ',
Ý: 'Ý',
Ỳ: 'Ỳ',
Ÿ: 'Ÿ',
Ỹ: 'Ỹ',
Ȳ: 'Ȳ',
Ŷ: 'Ŷ',
Ẏ: 'Ẏ',
Ź: 'Ź',
Ž: 'Ž',
Ẑ: 'Ẑ',
Ż: 'Ż',
ά: 'ά',
ὰ: 'ὰ',
ᾱ: 'ᾱ',
ᾰ: 'ᾰ',
έ: 'έ',
ὲ: 'ὲ',
ή: 'ή',
ὴ: 'ὴ',
ί: 'ί',
ὶ: 'ὶ',
ϊ: 'ϊ',
ΐ: 'ΐ',
ῒ: 'ῒ',
ῑ: 'ῑ',
ῐ: 'ῐ',
ό: 'ό',
ὸ: 'ὸ',
ύ: 'ύ',
ὺ: 'ὺ',
ϋ: 'ϋ',
ΰ: 'ΰ',
ῢ: 'ῢ',
ῡ: 'ῡ',
ῠ: 'ῠ',
ώ: 'ώ',
ὼ: 'ὼ',
Ύ: 'Ύ',
Ὺ: 'Ὺ',
Ϋ: 'Ϋ',
Ῡ: 'Ῡ',
Ῠ: 'Ῠ',
Ώ: 'Ώ',
Ὼ: 'Ὼ',
},
s0 = (function () {
function S(s, c) {
(this.mode = void 0),
(this.gullet = void 0),
(this.settings = void 0),
(this.leftrightDepth = void 0),
(this.nextToken = void 0),
(this.mode = 'math'),
(this.gullet = new iC(s, c, this.mode)),
(this.settings = c),
(this.leftrightDepth = 0);
}
var o = S.prototype;
return (
(o.expect = function (c, _) {
if ((_ === void 0 && (_ = !0), this.fetch().text !== c))
throw new a("Expected '" + c + "', got '" + this.fetch().text + "'", this.fetch());
_ && this.consume();
}),
(o.consume = function () {
this.nextToken = null;
}),
(o.fetch = function () {
return this.nextToken == null && (this.nextToken = this.gullet.expandNextToken()), this.nextToken;
}),
(o.switchMode = function (c) {
(this.mode = c), this.gullet.switchMode(c);
}),
(o.parse = function () {
this.settings.globalGroup || this.gullet.beginGroup(),
this.settings.colorIsTextColor && this.gullet.macros.set('\\color', '\\textcolor');
try {
var c = this.parseExpression(!1);
return this.expect('EOF'), this.settings.globalGroup || this.gullet.endGroup(), c;
} finally {
this.gullet.endGroups();
}
}),
(o.subparse = function (c) {
var _ = this.nextToken;
this.consume(), this.gullet.pushToken(new Zr('}')), this.gullet.pushTokens(c);
var h = this.parseExpression(!1);
return this.expect('}'), (this.nextToken = _), h;
}),
(o.parseExpression = function (c, _) {
for (var h = []; ; ) {
this.mode === 'math' && this.consumeSpaces();
var b = this.fetch();
if (S.endOfExpression.indexOf(b.text) !== -1 || (_ && b.text === _) || (c && xn[b.text] && xn[b.text].infix)) break;
var C = this.parseAtom(_);
if (C) {
if (C.type === 'internal') continue;
} else break;
h.push(C);
}
return this.mode === 'text' && this.formLigatures(h), this.handleInfixNodes(h);
}),
(o.handleInfixNodes = function (c) {
for (var _ = -1, h, b = 0; b < c.length; b++)
if (c[b].type === 'infix') {
if (_ !== -1) throw new a('only one infix operator per group', c[b].token);
(_ = b), (h = c[b].replaceWith);
}
if (_ !== -1 && h) {
var C,
A,
I = c.slice(0, _),
k = c.slice(_ + 1);
I.length === 1 && I[0].type === 'ordgroup' ? (C = I[0]) : (C = { type: 'ordgroup', mode: this.mode, body: I }),
k.length === 1 && k[0].type === 'ordgroup' ? (A = k[0]) : (A = { type: 'ordgroup', mode: this.mode, body: k });
var W;
return h === '\\\\abovefrac' ? (W = this.callFunction(h, [C, c[_], A], [])) : (W = this.callFunction(h, [C, A], [])), [W];
} else return c;
}),
(o.handleSupSubscript = function (c) {
var _ = this.fetch(),
h = _.text;
this.consume(), this.consumeSpaces();
var b = this.parseGroup(c);
if (!b) throw new a("Expected group after '" + h + "'", _);
return b;
}),
(o.formatUnsupportedCmd = function (c) {
for (var _ = [], h = 0; h < c.length; h++) _.push({ type: 'textord', mode: 'text', text: c[h] });
var b = { type: 'text', mode: this.mode, body: _ },
C = { type: 'color', mode: this.mode, color: this.settings.errorColor, body: [b] };
return C;
}),
(o.parseAtom = function (c) {
var _ = this.parseGroup('atom', c);
if (this.mode === 'text') return _;
for (var h, b; ; ) {
this.consumeSpaces();
var C = this.fetch();
if (C.text === '\\limits' || C.text === '\\nolimits') {
if (_ && _.type === 'op') {
var A = C.text === '\\limits';
(_.limits = A), (_.alwaysHandleSupSub = !0);
} else if (_ && _.type === 'operatorname') _.alwaysHandleSupSub && (_.limits = C.text === '\\limits');
else throw new a('Limit controls must follow a math operator', C);
this.consume();
} else if (C.text === '^') {
if (h) throw new a('Double superscript', C);
h = this.handleSupSubscript('superscript');
} else if (C.text === '_') {
if (b) throw new a('Double subscript', C);
b = this.handleSupSubscript('subscript');
} else if (C.text === "'") {
if (h) throw new a('Double superscript', C);
var I = { type: 'textord', mode: this.mode, text: '\\prime' },
k = [I];
for (this.consume(); this.fetch().text === "'"; ) k.push(I), this.consume();
this.fetch().text === '^' && k.push(this.handleSupSubscript('superscript')), (h = { type: 'ordgroup', mode: this.mode, body: k });
} else if (ja[C.text]) {
var W = ja[C.text],
ee = a0.test(C.text);
for (this.consume(); ; ) {
var J = this.fetch().text;
if (!ja[J] || a0.test(J) !== ee) break;
this.consume(), (W += ja[J]);
}
var ie = new S(W, this.settings).parse();
ee ? (b = { type: 'ordgroup', mode: 'math', body: ie }) : (h = { type: 'ordgroup', mode: 'math', body: ie });
} else break;
}
return h || b ? { type: 'supsub', mode: this.mode, base: _, sup: h, sub: b } : _;
}),
(o.parseFunction = function (c, _) {
var h = this.fetch(),
b = h.text,
C = xn[b];
if (!C) return null;
if ((this.consume(), _ && _ !== 'atom' && !C.allowedInArgument))
throw new a("Got function '" + b + "' with no arguments" + (_ ? ' as ' + _ : ''), h);
if (this.mode === 'text' && !C.allowedInText) throw new a("Can't use function '" + b + "' in text mode", h);
if (this.mode === 'math' && C.allowedInMath === !1) throw new a("Can't use function '" + b + "' in math mode", h);
var A = this.parseArguments(b, C),
I = A.args,
k = A.optArgs;
return this.callFunction(b, I, k, h, c);
}),
(o.callFunction = function (c, _, h, b, C) {
var A = { funcName: c, parser: this, token: b, breakOnTokenText: C },
I = xn[c];
if (I && I.handler) return I.handler(A, _, h);
throw new a('No function handler for ' + c);
}),
(o.parseArguments = function (c, _) {
var h = _.numArgs + _.numOptionalArgs;
if (h === 0) return { args: [], optArgs: [] };
for (var b = [], C = [], A = 0; A < h; A++) {
var I = _.argTypes && _.argTypes[A],
k = A < _.numOptionalArgs;
((_.primitive && I == null) || (_.type === 'sqrt' && A === 1 && C[0] == null)) && (I = 'primitive');
var W = this.parseGroupOfType("argument to '" + c + "'", I, k);
if (k) C.push(W);
else if (W != null) b.push(W);
else throw new a('Null argument, please report this as a bug');
}
return { args: b, optArgs: C };
}),
(o.parseGroupOfType = function (c, _, h) {
switch (_) {
case 'color':
return this.parseColorGroup(h);
case 'size':
return this.parseSizeGroup(h);
case 'url':
return this.parseUrlGroup(h);
case 'math':
case 'text':
return this.parseArgumentGroup(h, _);
case 'hbox': {
var b = this.parseArgumentGroup(h, 'text');
return b != null ? { type: 'styling', mode: b.mode, body: [b], style: 'text' } : null;
}
case 'raw': {
var C = this.parseStringGroup('raw', h);
return C != null ? { type: 'raw', mode: 'text', string: C.text } : null;
}
case 'primitive': {
if (h) throw new a('A primitive argument cannot be optional');
var A = this.parseGroup(c);
if (A == null) throw new a('Expected group as ' + c, this.fetch());
return A;
}
case 'original':
case null:
case void 0:
return this.parseArgumentGroup(h);
default:
throw new a('Unknown group type as ' + c, this.fetch());
}
}),
(o.consumeSpaces = function () {
for (; this.fetch().text === ' '; ) this.consume();
}),
(o.parseStringGroup = function (c, _) {
var h = this.gullet.scanArgument(_);
if (h == null) return null;
for (var b = '', C; (C = this.fetch()).text !== 'EOF'; ) (b += C.text), this.consume();
return this.consume(), (h.text = b), h;
}),
(o.parseRegexGroup = function (c, _) {
for (var h = this.fetch(), b = h, C = '', A; (A = this.fetch()).text !== 'EOF' && c.test(C + A.text); )
(b = A), (C += b.text), this.consume();
if (C === '') throw new a('Invalid ' + _ + ": '" + h.text + "'", h);
return h.range(b, C);
}),
(o.parseColorGroup = function (c) {
var _ = this.parseStringGroup('color', c);
if (_ == null) return null;
var h = /^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(_.text);
if (!h) throw new a("Invalid color: '" + _.text + "'", _);
var b = h[0];
return /^[0-9a-f]{6}$/i.test(b) && (b = '#' + b), { type: 'color-token', mode: this.mode, color: b };
}),
(o.parseSizeGroup = function (c) {
var _,
h = !1;
if (
(this.gullet.consumeSpaces(),
!c && this.gullet.future().text !== '{'
? (_ = this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/, 'size'))
: (_ = this.parseStringGroup('size', c)),
!_)
)
return null;
!c && _.text.length === 0 && ((_.text = '0pt'), (h = !0));
var b = /([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(_.text);
if (!b) throw new a("Invalid size: '" + _.text + "'", _);
var C = { number: +(b[1] + b[2]), unit: b[3] };
if (!et(C)) throw new a("Invalid unit: '" + C.unit + "'", _);
return { type: 'size', mode: this.mode, value: C, isBlank: h };
}),
(o.parseUrlGroup = function (c) {
this.gullet.lexer.setCatcode('%', 13), this.gullet.lexer.setCatcode('~', 12);
var _ = this.parseStringGroup('url', c);
if ((this.gullet.lexer.setCatcode('%', 14), this.gullet.lexer.setCatcode('~', 13), _ == null)) return null;
var h = _.text.replace(/\\([#$%&~_^{}])/g, '$1');
return { type: 'url', mode: this.mode, url: h };
}),
(o.parseArgumentGroup = function (c, _) {
var h = this.gullet.scanArgument(c);
if (h == null) return null;
var b = this.mode;
_ && this.switchMode(_), this.gullet.beginGroup();
var C = this.parseExpression(!1, 'EOF');
this.expect('EOF'), this.gullet.endGroup();
var A = { type: 'ordgroup', mode: this.mode, loc: h.loc, body: C };
return _ && this.switchMode(b), A;
}),
(o.parseGroup = function (c, _) {
var h = this.fetch(),
b = h.text,
C;
if (b === '{' || b === '\\begingroup') {
this.consume();
var A = b === '{' ? '}' : '\\endgroup';
this.gullet.beginGroup();
var I = this.parseExpression(!1, A),
k = this.fetch();
this.expect(A),
this.gullet.endGroup(),
(C = { type: 'ordgroup', mode: this.mode, loc: Pr.range(h, k), body: I, semisimple: b === '\\begingroup' || void 0 });
} else if (((C = this.parseFunction(_, c) || this.parseSymbol()), C == null && b[0] === '\\' && !i0.hasOwnProperty(b))) {
if (this.settings.throwOnError) throw new a('Undefined control sequence: ' + b, h);
(C = this.formatUnsupportedCmd(b)), this.consume();
}
return C;
}),
(o.formLigatures = function (c) {
for (var _ = c.length - 1, h = 0; h < _; ++h) {
var b = c[h],
C = b.text;
C === '-' &&
c[h + 1].text === '-' &&
(h + 1 < _ && c[h + 2].text === '-'
? (c.splice(h, 3, { type: 'textord', mode: 'text', loc: Pr.range(b, c[h + 2]), text: '---' }), (_ -= 2))
: (c.splice(h, 2, { type: 'textord', mode: 'text', loc: Pr.range(b, c[h + 1]), text: '--' }), (_ -= 1))),
(C === "'" || C === '`') &&
c[h + 1].text === C &&
(c.splice(h, 2, { type: 'textord', mode: 'text', loc: Pr.range(b, c[h + 1]), text: C + C }), (_ -= 1));
}
}),
(o.parseSymbol = function () {
var c = this.fetch(),
_ = c.text;
if (/^\\verb[^a-zA-Z]/.test(_)) {
this.consume();
var h = _.slice(5),
b = h.charAt(0) === '*';
if ((b && (h = h.slice(1)), h.length < 2 || h.charAt(0) !== h.slice(-1)))
throw new a(`\\verb assertion failed --
please report what input caused this bug`);
return (h = h.slice(1, -1)), { type: 'verb', mode: 'text', body: h, star: b };
}
o0.hasOwnProperty(_[0]) &&
!ut[this.mode][_[0]] &&
(this.settings.strict &&
this.mode === 'math' &&
this.settings.reportNonstrict('unicodeTextInMathMode', 'Accented Unicode text character "' + _[0] + '" used in math mode', c),
(_ = o0[_[0]] + _.slice(1)));
var C = jv.exec(_);
C && ((_ = _.substring(0, C.index)), _ === 'i' ? (_ = 'ı') : _ === 'j' && (_ = 'ȷ'));
var A;
if (ut[this.mode][_]) {
this.settings.strict &&
this.mode === 'math' &&
Hi.indexOf(_) >= 0 &&
this.settings.reportNonstrict('unicodeTextInMathMode', 'Latin-1/Unicode text character "' + _[0] + '" used in math mode', c);
var I = ut[this.mode][_].group,
k = Pr.range(c),
W;
if (si.hasOwnProperty(I)) {
var ee = I;
W = { type: 'atom', mode: this.mode, family: ee, loc: k, text: _ };
} else W = { type: I, mode: this.mode, loc: k, text: _ };
A = W;
} else if (_.charCodeAt(0) >= 128)
this.settings.strict &&
(be(_.charCodeAt(0))
? this.mode === 'math' &&
this.settings.reportNonstrict('unicodeTextInMathMode', 'Unicode text character "' + _[0] + '" used in math mode', c)
: this.settings.reportNonstrict(
'unknownSymbol',
'Unrecognized Unicode character "' + _[0] + '"' + (' (' + _.charCodeAt(0) + ')'),
c
)),
(A = { type: 'textord', mode: 'text', loc: Pr.range(c), text: _ });
else return null;
if ((this.consume(), C))
for (var J = 0; J < C[0].length; J++) {
var ie = C[0][J];
if (!dl[ie]) throw new a("Unknown accent ' " + ie + "'", c);
var pe = dl[ie][this.mode] || dl[ie].text;
if (!pe) throw new a('Accent ' + ie + ' unsupported in ' + this.mode + ' mode', c);
A = { type: 'accent', mode: this.mode, loc: Pr.range(c), label: pe, isStretchy: !1, isShifty: !0, base: A };
}
return A;
}),
S
);
})();
s0.endOfExpression = ['}', '\\endgroup', '\\end', '\\right', '&'];
var aC = function (o, s) {
if (!(typeof o == 'string' || o instanceof String)) throw new TypeError('KaTeX can only parse string typed expression');
var c = new s0(o, s);
delete c.gullet.macros.current['\\df@tag'];
var _ = c.parse();
if ((delete c.gullet.macros.current['\\current@color'], delete c.gullet.macros.current['\\color'], c.gullet.macros.get('\\df@tag'))) {
if (!s.displayMode) throw new a('\\tag works only in display equations');
_ = [{ type: 'tag', mode: 'text', body: _, tag: c.subparse([new Zr('\\df@tag')]) }];
}
return _;
},
_l = aC,
l0 = function (o, s, c) {
s.textContent = '';
var _ = ml(o, c).toNode();
s.appendChild(_);
};
typeof document < 'u' &&
document.compatMode !== 'CSS1Compat' &&
(typeof console < 'u' && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),
(l0 = function () {
throw new a("KaTeX doesn't work in quirks mode.");
}));
var oC = function (o, s) {
var c = ml(o, s).toMarkup();
return c;
},
sC = function (o, s) {
var c = new Y(s);
return _l(o, c);
},
c0 = function (o, s, c) {
if (c.throwOnError || !(o instanceof a)) throw o;
var _ = V.makeSpan(['katex-error'], [new Yt(s)]);
return _.setAttribute('title', o.toString()), _.setAttribute('style', 'color:' + c.errorColor), _;
},
ml = function (o, s) {
var c = new Y(s);
try {
var _ = _l(o, c);
return _v(_, o, c);
} catch (h) {
return c0(h, o, c);
}
},
lC = function (o, s) {
var c = new Y(s);
try {
var _ = _l(o, c);
return mv(_, o, c);
} catch (h) {
return c0(h, o, c);
}
},
cC = {
version: '0.16.4',
render: l0,
renderToString: oC,
ParseError: a,
SETTINGS_SCHEMA: D,
__parse: sC,
__renderToDomTree: ml,
__renderToHTMLTree: lC,
__setFontMetrics: vt,
__defineSymbol: g,
__defineMacro: N,
__domTree: { Span: dn, Anchor: yt, SymbolNode: Yt, SvgNode: jt, PathNode: mr, LineNode: Rn },
},
uC = cC;
return (n = n.default), n;
})();
});
})(Zae);
var Xae =
(Po && Po.__importDefault) ||
function (t) {
return t && t.__esModule ? t : { default: t };
};
Object.defineProperty(kb, '__esModule', { value: !0 });
const sh = Xae(B_);
function lh(t, e) {
const r = t.src[e - 1],
n = t.src[e],
i = t.src[e + 1];
if (n !== '$') return { can_open: !1, can_close: !1 };
let a = !1,
l = !1;
return (
r !== '$' && r !== '\\' && (r === void 0 || ch(r) || !uh(r)) && (a = !0),
i !== '$' && (i == null || ch(i) || !uh(i)) && (l = !0),
{ can_open: a, can_close: l }
);
}
function ch(t) {
return /^\s$/u.test(t);
}
function uh(t) {
return /^[\w\d]$/u.test(t);
}
function dh(t, e) {
const r = t.src[e - 1],
n = t.src[e],
i = t.src[e + 1],
a = t.src[e + 2];
return n === '$' && r !== '$' && r !== '\\' && i === '$' && a !== '$' ? { can_open: !0, can_close: !0 } : { can_open: !1, can_close: !1 };
}
function Jae(t, e) {
if (t.src[t.pos] !== '$') return !1;
const r = t.tokens.at(-1);
if ((r == null ? void 0 : r.type) === 'html_inline' && /^<\w+.+[^/]>$/.test(r.content)) return !1;
let n = lh(t, t.pos);
if (!n.can_open) return e || (t.pending += '$'), (t.pos += 1), !0;
let i = t.pos + 1,
a = i,
l;
for (; (a = t.src.indexOf('$', a)) !== -1; ) {
for (l = a - 1; t.src[l] === '\\'; ) l -= 1;
if ((a - l) % 2 == 1) break;
a += 1;
}
if (a === -1) return e || (t.pending += '$'), (t.pos = i), !0;
if (a - i === 0) return e || (t.pending += '$$'), (t.pos = i + 1), !0;
if (((n = lh(t, a)), !n.can_close)) return e || (t.pending += '$'), (t.pos = i), !0;
if (!e) {
const u = t.push('math_inline', 'math', 0);
(u.markup = '$'), (u.content = t.src.slice(i, a));
}
return (t.pos = a + 1), !0;
}
function jae(t, e, r, n) {
var i,
a,
l,
u = !1,
d,
m = t.bMarks[e] + t.tShift[e],
p = t.eMarks[e];
if (m + 2 > p || t.src.slice(m, m + 2) !== '$$') return !1;
m += 2;
let E = t.src.slice(m, p);
if (n) return !0;
for (
E.trim().slice(-2) === '$$' && ((E = E.trim().slice(0, -2)), (u = !0)), a = e;
!u && (a++, !(a >= r || ((m = t.bMarks[a] + t.tShift[a]), (p = t.eMarks[a]), m < p && t.tShift[a] < t.blkIndent)));
)
t.src.slice(m, p).trim().slice(-2) === '$$'
? ((l = t.src.slice(0, p).lastIndexOf('$$')), (i = t.src.slice(m, l)), (u = !0))
: t.src.slice(m, p).trim().includes('$$') && ((l = t.src.slice(0, p).trim().indexOf('$$')), (i = t.src.slice(m, l)), (u = !0));
return (
(t.line = a + 1),
(d = t.push('math_block', 'math', 0)),
(d.block = !0),
(d.content =
(E && E.trim()
? E +
`
`
: '') +
t.getLines(e + 1, a, t.tShift[e], !0) +
(i && i.trim() ? i : '')),
(d.map = [e, t.line]),
(d.markup = '$$'),
!0
);
}
function eoe(t, e, r, n) {
const i = t.bMarks[e] + t.tShift[e],
a = t.eMarks[e];
if (!t.src.slice(i, a).match(/^\s*\\begin\s*\{([^{}]+)\}/)) return !1;
if (e > 0) {
const v = t.bMarks[e - 1] + t.tShift[e - 1],
R = t.eMarks[e - 1],
O = t.src.slice(v, R);
if (!/^\s*$/.test(O)) return !1;
}
if (n) return !0;
const d = [];
let m = e,
p,
E = !1;
e: for (; !E && !(m >= r); m++) {
const v = t.bMarks[m] + t.tShift[m],
R = t.eMarks[m];
if (v < R && t.tShift[m] < t.blkIndent) break;
const O = t.src.slice(v, R);
for (const M of O.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))
if (M[1] === '\\begin') d.push(M[2].trim());
else if (M[1] === '\\end' && (d.pop(), !d.length)) {
(p = t.src.slice(v, R)), (E = !0);
break e;
}
}
t.line = m + 1;
const f = t.push('math_block', 'math', 0);
return (f.block = !0), (f.content = (t.getLines(e, m, t.tShift[e], !0) + (p ?? '')).trim()), (f.map = [e, t.line]), (f.markup = '$$'), !0;
}
function toe(t, e) {
var r, n, i, a, l;
if (t.src.slice(t.pos, t.pos + 2) !== '$$') return !1;
if (((a = dh(t, t.pos)), !a.can_open)) return e || (t.pending += '$$'), (t.pos += 2), !0;
for (r = t.pos + 2, n = r; (n = t.src.indexOf('$$', n)) !== -1; ) {
for (l = n - 1; t.src[l] === '\\'; ) l -= 1;
if ((n - l) % 2 == 1) break;
n += 2;
}
return n === -1
? (e || (t.pending += '$$'), (t.pos = r), !0)
: n - r === 0
? (e || (t.pending += '$$$$'), (t.pos = r + 2), !0)
: ((a = dh(t, n)),
a.can_close
? (e || ((i = t.push('math_block', 'math', 0)), (i.block = !0), (i.markup = '$$'), (i.content = t.src.slice(r, n))), (t.pos = n + 2), !0)
: (e || (t.pending += '$$'), (t.pos = r), !0));
}
function roe(t, e) {
const r = t.src.slice(t.pos);
if (!/^\n\\begin/.test(r)) return !1;
if (((t.pos += 1), e)) return !0;
const n = r.split(/\n/g).slice(1);
let i;
const a = [];
e: for (var l = 0; l < n.length; ++l) {
const m = n[l];
for (const p of m.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))
if (p[1] === '\\begin') a.push(p[2].trim());
else if (p[1] === '\\end' && (a.pop(), !a.length)) {
i = l;
break e;
}
}
if (typeof i > 'u') return !1;
const u = n.slice(0, i + 1).reduce((m, p) => m + p.length, 0) + i + 1,
d = t.push('math_inline_bare_block', 'math', 0);
return (d.block = !0), (d.markup = '$$'), (d.content = r.slice(1, u)), (t.pos = t.pos + u), !0;
}
function _h(t, e, r, n) {
const i = t.tokens;
for (let a = i.length - 1; a >= 0; a--) {
const l = i[a],
u = [];
if (l.type !== 'html_block') continue;
const d = l.content;
for (const m of d.matchAll(n)) {
if (!m.groups) continue;
const p = m.groups.html_before_math,
E = m.groups.math,
f = m.groups.html_after_math;
p && u.push({ ...l, type: 'html_block', map: null, content: p }),
E && u.push({ ...l, type: e, map: null, content: E, markup: r, block: !0, tag: 'math' }),
f && u.push({ ...l, type: 'html_block', map: null, content: f });
}
u.length > 0 && i.splice(a, 1, ...u);
}
return !0;
}
function lo(t) {
return t.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, ''');
}
function noe(t, e) {
const r = e == null ? void 0 : e.enableBareBlocks,
n = e == null ? void 0 : e.enableMathBlockInHtml,
i = e == null ? void 0 : e.enableMathInlineInHtml,
a = (E) => {
const f = /\\begin\{(align|equation|gather|cd|alignat)\}/gi.test(E);
try {
return sh.default.renderToString(E, { ...e, displayMode: f });
} catch (v) {
return e != null && e.throwOnError && console.log(v), `${lo(v + '')} `;
}
},
l = (E, f) => a(E[f].content),
u = (E) => {
try {
return `${sh.default.renderToString(E, { ...e, displayMode: !0 })}
`;
} catch (f) {
return e != null && e.throwOnError && console.log(f), `${lo(f + '')}
`;
}
},
d = (E, f) =>
u(E[f].content) +
`
`;
t.inline.ruler.after('escape', 'math_inline', Jae),
t.inline.ruler.after('escape', 'math_inline_block', toe),
r && t.inline.ruler.before('text', 'math_inline_bare_block', roe),
t.block.ruler.after('blockquote', 'math_block', (E, f, v, R) => (r && eoe(E, f, v, R) ? !0 : jae(E, f, v, R)), {
alt: ['paragraph', 'reference', 'blockquote', 'list'],
});
const m = /(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,
p = /(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;
n && t.core.ruler.push('math_block_in_html_block', (E) => _h(E, 'math_block', '$$', m)),
i && t.core.ruler.push('math_inline_in_html_block', (E) => _h(E, 'math_inline', '$', p)),
(t.renderer.rules.math_inline = l),
(t.renderer.rules.math_inline_block = d),
(t.renderer.rules.math_inline_bare_block = d),
(t.renderer.rules.math_block = d);
}
var ioe = (kb.default = noe);
function aoe(t, e) {
var r,
n,
i = t.attrs[t.attrIndex('href')][1];
for (r = 0; r < e.length; ++r) {
if (((n = e[r]), typeof n.matcher == 'function')) {
if (n.matcher(i, n)) return n;
continue;
}
return n;
}
}
function ooe(t, e, r) {
Object.keys(r).forEach(function (n) {
var i,
a = r[n];
n === 'className' && (n = 'class'), (i = e[t].attrIndex(n)), i < 0 ? e[t].attrPush([n, a]) : (e[t].attrs[i][1] = a);
});
}
function Pb(t, e) {
e ? (e = Array.isArray(e) ? e : [e]) : (e = []), Object.freeze(e);
var r = t.renderer.rules.link_open || this.defaultRender;
t.renderer.rules.link_open = function (n, i, a, l, u) {
var d = aoe(n[i], e),
m = d && d.attrs;
return m && ooe(i, n, m), r(n, i, a, l, u);
};
}
Pb.defaultRender = function (t, e, r, n, i) {
return i.renderToken(t, e, r);
};
var soe = Pb;
function loe(t) {
for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
var n = Array.from(typeof t == 'string' ? [t] : t);
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, '');
var i = n.reduce(function (u, d) {
var m = d.match(/\n([\t ]+|(?!\s).)/g);
return m
? u.concat(
m.map(function (p) {
var E, f;
return (f = (E = p.match(/[\t ]/g)) === null || E === void 0 ? void 0 : E.length) !== null && f !== void 0 ? f : 0;
})
)
: u;
}, []);
if (i.length) {
var a = new RegExp(
`
[ ]{` +
Math.min.apply(Math, i) +
'}',
'g'
);
n = n.map(function (u) {
return u.replace(
a,
`
`
);
});
}
n[0] = n[0].replace(/^\r?\n/, '');
var l = n[0];
return (
e.forEach(function (u, d) {
var m = l.match(/(?:^|\n)( *)$/),
p = m ? m[1] : '',
E = u;
typeof u == 'string' &&
u.includes(`
`) &&
(E = String(u)
.split(
`
`
)
.map(function (f, v) {
return v === 0 ? f : '' + p + f;
}).join(`
`)),
(l += E + n[d + 1]);
}),
l
);
}
var F_ = {},
coe = {
get exports() {
return F_;
},
set exports(t) {
F_ = t;
},
};
(function (t, e) {
(function (r, n) {
t.exports = n();
})(Po, function () {
var r = 1e3,
n = 6e4,
i = 36e5,
a = 'millisecond',
l = 'second',
u = 'minute',
d = 'hour',
m = 'day',
p = 'week',
E = 'month',
f = 'quarter',
v = 'year',
R = 'date',
O = 'Invalid Date',
M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
D = {
name: 'en',
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
ordinal: function (H) {
var re = ['th', 'st', 'nd', 'rd'],
P = H % 100;
return '[' + H + (re[(P - 20) % 10] || re[P] || re[0]) + ']';
},
},
F = function (H, re, P) {
var K = String(H);
return !K || K.length >= re ? H : '' + Array(re + 1 - K.length).join(P) + H;
},
Y = {
s: F,
z: function (H) {
var re = -H.utcOffset(),
P = Math.abs(re),
K = Math.floor(P / 60),
Z = P % 60;
return (re <= 0 ? '+' : '-') + F(K, 2, '0') + ':' + F(Z, 2, '0');
},
m: function H(re, P) {
if (re.date() < P.date()) return -H(P, re);
var K = 12 * (P.year() - re.year()) + (P.month() - re.month()),
Z = re.clone().add(K, E),
se = P - Z < 0,
le = re.clone().add(K + (se ? -1 : 1), E);
return +(-(K + (P - Z) / (se ? Z - le : le - Z)) || 0);
},
a: function (H) {
return H < 0 ? Math.ceil(H) || 0 : Math.floor(H);
},
p: function (H) {
return (
{ M: E, y: v, w: p, d: m, D: R, h: d, m: u, s: l, ms: a, Q: f }[H] ||
String(H || '')
.toLowerCase()
.replace(/s$/, '')
);
},
u: function (H) {
return H === void 0;
},
},
z = 'en',
G = {};
G[z] = D;
var X = '$isDayjsObject',
ne = function (H) {
return H instanceof Ae || !(!H || !H[X]);
},
ce = function H(re, P, K) {
var Z;
if (!re) return z;
if (typeof re == 'string') {
var se = re.toLowerCase();
G[se] && (Z = se), P && ((G[se] = P), (Z = se));
var le = re.split('-');
if (!Z && le.length > 1) return H(le[0]);
} else {
var ae = re.name;
(G[ae] = re), (Z = ae);
}
return !K && Z && (z = Z), Z || (!K && z);
},
j = function (H, re) {
if (ne(H)) return H.clone();
var P = typeof re == 'object' ? re : {};
return (P.date = H), (P.args = arguments), new Ae(P);
},
Q = Y;
(Q.l = ce),
(Q.i = ne),
(Q.w = function (H, re) {
return j(H, { locale: re.$L, utc: re.$u, x: re.$x, $offset: re.$offset });
});
var Ae = (function () {
function H(P) {
(this.$L = ce(P.locale, null, !0)), this.parse(P), (this.$x = this.$x || P.x || {}), (this[X] = !0);
}
var re = H.prototype;
return (
(re.parse = function (P) {
(this.$d = (function (K) {
var Z = K.date,
se = K.utc;
if (Z === null) return new Date(NaN);
if (Q.u(Z)) return new Date();
if (Z instanceof Date) return new Date(Z);
if (typeof Z == 'string' && !/Z$/i.test(Z)) {
var le = Z.match(M);
if (le) {
var ae = le[2] - 1 || 0,
ye = (le[7] || '0').substring(0, 3);
return se
? new Date(Date.UTC(le[1], ae, le[3] || 1, le[4] || 0, le[5] || 0, le[6] || 0, ye))
: new Date(le[1], ae, le[3] || 1, le[4] || 0, le[5] || 0, le[6] || 0, ye);
}
}
return new Date(Z);
})(P)),
this.init();
}),
(re.init = function () {
var P = this.$d;
(this.$y = P.getFullYear()),
(this.$M = P.getMonth()),
(this.$D = P.getDate()),
(this.$W = P.getDay()),
(this.$H = P.getHours()),
(this.$m = P.getMinutes()),
(this.$s = P.getSeconds()),
(this.$ms = P.getMilliseconds());
}),
(re.$utils = function () {
return Q;
}),
(re.isValid = function () {
return this.$d.toString() !== O;
}),
(re.isSame = function (P, K) {
var Z = j(P);
return this.startOf(K) <= Z && Z <= this.endOf(K);
}),
(re.isAfter = function (P, K) {
return j(P) < this.startOf(K);
}),
(re.isBefore = function (P, K) {
return this.endOf(K) < j(P);
}),
(re.$g = function (P, K, Z) {
return Q.u(P) ? this[K] : this.set(Z, P);
}),
(re.unix = function () {
return Math.floor(this.valueOf() / 1e3);
}),
(re.valueOf = function () {
return this.$d.getTime();
}),
(re.startOf = function (P, K) {
var Z = this,
se = !!Q.u(K) || K,
le = Q.p(P),
ae = function (je, Ze) {
var Ke = Q.w(Z.$u ? Date.UTC(Z.$y, Ze, je) : new Date(Z.$y, Ze, je), Z);
return se ? Ke : Ke.endOf(m);
},
ye = function (je, Ze) {
return Q.w(Z.toDate()[je].apply(Z.toDate('s'), (se ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ze)), Z);
},
ze = this.$W,
te = this.$M,
be = this.$D,
De = 'set' + (this.$u ? 'UTC' : '');
switch (le) {
case v:
return se ? ae(1, 0) : ae(31, 11);
case E:
return se ? ae(1, te) : ae(0, te + 1);
case p:
var we = this.$locale().weekStart || 0,
We = (ze < we ? ze + 7 : ze) - we;
return ae(se ? be - We : be + (6 - We), te);
case m:
case R:
return ye(De + 'Hours', 0);
case d:
return ye(De + 'Minutes', 1);
case u:
return ye(De + 'Seconds', 2);
case l:
return ye(De + 'Milliseconds', 3);
default:
return this.clone();
}
}),
(re.endOf = function (P) {
return this.startOf(P, !1);
}),
(re.$set = function (P, K) {
var Z,
se = Q.p(P),
le = 'set' + (this.$u ? 'UTC' : ''),
ae = ((Z = {}),
(Z[m] = le + 'Date'),
(Z[R] = le + 'Date'),
(Z[E] = le + 'Month'),
(Z[v] = le + 'FullYear'),
(Z[d] = le + 'Hours'),
(Z[u] = le + 'Minutes'),
(Z[l] = le + 'Seconds'),
(Z[a] = le + 'Milliseconds'),
Z)[se],
ye = se === m ? this.$D + (K - this.$W) : K;
if (se === E || se === v) {
var ze = this.clone().set(R, 1);
ze.$d[ae](ye), ze.init(), (this.$d = ze.set(R, Math.min(this.$D, ze.daysInMonth())).$d);
} else ae && this.$d[ae](ye);
return this.init(), this;
}),
(re.set = function (P, K) {
return this.clone().$set(P, K);
}),
(re.get = function (P) {
return this[Q.p(P)]();
}),
(re.add = function (P, K) {
var Z,
se = this;
P = Number(P);
var le = Q.p(K),
ae = function (te) {
var be = j(se);
return Q.w(be.date(be.date() + Math.round(te * P)), se);
};
if (le === E) return this.set(E, this.$M + P);
if (le === v) return this.set(v, this.$y + P);
if (le === m) return ae(1);
if (le === p) return ae(7);
var ye = ((Z = {}), (Z[u] = n), (Z[d] = i), (Z[l] = r), Z)[le] || 1,
ze = this.$d.getTime() + P * ye;
return Q.w(ze, this);
}),
(re.subtract = function (P, K) {
return this.add(-1 * P, K);
}),
(re.format = function (P) {
var K = this,
Z = this.$locale();
if (!this.isValid()) return Z.invalidDate || O;
var se = P || 'YYYY-MM-DDTHH:mm:ssZ',
le = Q.z(this),
ae = this.$H,
ye = this.$m,
ze = this.$M,
te = Z.weekdays,
be = Z.months,
De = Z.meridiem,
we = function (Ze, Ke, pt, ht) {
return (Ze && (Ze[Ke] || Ze(K, se))) || pt[Ke].slice(0, ht);
},
We = function (Ze) {
return Q.s(ae % 12 || 12, Ze, '0');
},
je =
De ||
function (Ze, Ke, pt) {
var ht = Ze < 12 ? 'AM' : 'PM';
return pt ? ht.toLowerCase() : ht;
};
return se.replace(w, function (Ze, Ke) {
return (
Ke ||
(function (pt) {
switch (pt) {
case 'YY':
return String(K.$y).slice(-2);
case 'YYYY':
return Q.s(K.$y, 4, '0');
case 'M':
return ze + 1;
case 'MM':
return Q.s(ze + 1, 2, '0');
case 'MMM':
return we(Z.monthsShort, ze, be, 3);
case 'MMMM':
return we(be, ze);
case 'D':
return K.$D;
case 'DD':
return Q.s(K.$D, 2, '0');
case 'd':
return String(K.$W);
case 'dd':
return we(Z.weekdaysMin, K.$W, te, 2);
case 'ddd':
return we(Z.weekdaysShort, K.$W, te, 3);
case 'dddd':
return te[K.$W];
case 'H':
return String(ae);
case 'HH':
return Q.s(ae, 2, '0');
case 'h':
return We(1);
case 'hh':
return We(2);
case 'a':
return je(ae, ye, !0);
case 'A':
return je(ae, ye, !1);
case 'm':
return String(ye);
case 'mm':
return Q.s(ye, 2, '0');
case 's':
return String(K.$s);
case 'ss':
return Q.s(K.$s, 2, '0');
case 'SSS':
return Q.s(K.$ms, 3, '0');
case 'Z':
return le;
}
return null;
})(Ze) ||
le.replace(':', '')
);
});
}),
(re.utcOffset = function () {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}),
(re.diff = function (P, K, Z) {
var se,
le = this,
ae = Q.p(K),
ye = j(P),
ze = (ye.utcOffset() - this.utcOffset()) * n,
te = this - ye,
be = function () {
return Q.m(le, ye);
};
switch (ae) {
case v:
se = be() / 12;
break;
case E:
se = be();
break;
case f:
se = be() / 3;
break;
case p:
se = (te - ze) / 6048e5;
break;
case m:
se = (te - ze) / 864e5;
break;
case d:
se = te / i;
break;
case u:
se = te / n;
break;
case l:
se = te / r;
break;
default:
se = te;
}
return Z ? se : Q.a(se);
}),
(re.daysInMonth = function () {
return this.endOf(E).$D;
}),
(re.$locale = function () {
return G[this.$L];
}),
(re.locale = function (P, K) {
if (!P) return this.$L;
var Z = this.clone(),
se = ce(P, K, !0);
return se && (Z.$L = se), Z;
}),
(re.clone = function () {
return Q.w(this.$d, this);
}),
(re.toDate = function () {
return new Date(this.valueOf());
}),
(re.toJSON = function () {
return this.isValid() ? this.toISOString() : null;
}),
(re.toISOString = function () {
return this.$d.toISOString();
}),
(re.toString = function () {
return this.$d.toUTCString();
}),
H
);
})(),
Oe = Ae.prototype;
return (
(j.prototype = Oe),
[
['$ms', a],
['$s', l],
['$m', u],
['$H', d],
['$W', m],
['$M', E],
['$y', v],
['$D', R],
].forEach(function (H) {
Oe[H[1]] = function (re) {
return this.$g(re, H[0], H[1]);
};
}),
(j.extend = function (H, re) {
return H.$i || (H(re, Ae, j), (H.$i = !0)), j;
}),
(j.locale = ce),
(j.isDayjs = ne),
(j.unix = function (H) {
return j(1e3 * H);
}),
(j.en = G[z]),
(j.Ls = G),
(j.p = {}),
j
);
});
})(coe);
const uoe = F_;
var Bb = {};
(function (t) {
Object.defineProperty(t, '__esModule', { value: !0 }), (t.sanitizeUrl = t.BLANK_URL = void 0);
var e = /^([^\w]*)(javascript|data|vbscript)/im,
r = /(\w+)(^\w|;)?/g,
n = /&(newline|tab);/gi,
i = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,
a = /^.+(:|:)/gim,
l = ['.', '/'];
t.BLANK_URL = 'about:blank';
function u(p) {
return l.indexOf(p[0]) > -1;
}
function d(p) {
var E = p.replace(i, '');
return E.replace(r, function (f, v) {
return String.fromCharCode(v);
});
}
function m(p) {
if (!p) return t.BLANK_URL;
var E = d(p).replace(n, '').replace(i, '').trim();
if (!E) return t.BLANK_URL;
if (u(E)) return E;
var f = E.match(a);
if (!f) return E;
var v = f[0];
return e.test(v) ? t.BLANK_URL : E;
}
t.sanitizeUrl = m;
})(Bb);
var doe = { value: () => {} };
function Fb() {
for (var t = 0, e = arguments.length, r = {}, n; t < e; ++t) {
if (!(n = arguments[t] + '') || n in r || /[\s.]/.test(n)) throw new Error('illegal type: ' + n);
r[n] = [];
}
return new Co(r);
}
function Co(t) {
this._ = t;
}
function _oe(t, e) {
return t
.trim()
.split(/^|\s+/)
.map(function (r) {
var n = '',
i = r.indexOf('.');
if ((i >= 0 && ((n = r.slice(i + 1)), (r = r.slice(0, i))), r && !e.hasOwnProperty(r))) throw new Error('unknown type: ' + r);
return { type: r, name: n };
});
}
Co.prototype = Fb.prototype = {
constructor: Co,
on: function (t, e) {
var r = this._,
n = _oe(t + '', r),
i,
a = -1,
l = n.length;
if (arguments.length < 2) {
for (; ++a < l; ) if ((i = (t = n[a]).type) && (i = moe(r[i], t.name))) return i;
return;
}
if (e != null && typeof e != 'function') throw new Error('invalid callback: ' + e);
for (; ++a < l; )
if ((i = (t = n[a]).type)) r[i] = mh(r[i], t.name, e);
else if (e == null) for (i in r) r[i] = mh(r[i], t.name, null);
return this;
},
copy: function () {
var t = {},
e = this._;
for (var r in e) t[r] = e[r].slice();
return new Co(t);
},
call: function (t, e) {
if ((i = arguments.length - 2) > 0) for (var r = new Array(i), n = 0, i, a; n < i; ++n) r[n] = arguments[n + 2];
if (!this._.hasOwnProperty(t)) throw new Error('unknown type: ' + t);
for (a = this._[t], n = 0, i = a.length; n < i; ++n) a[n].value.apply(e, r);
},
apply: function (t, e, r) {
if (!this._.hasOwnProperty(t)) throw new Error('unknown type: ' + t);
for (var n = this._[t], i = 0, a = n.length; i < a; ++i) n[i].value.apply(e, r);
},
};
function moe(t, e) {
for (var r = 0, n = t.length, i; r < n; ++r) if ((i = t[r]).name === e) return i.value;
}
function mh(t, e, r) {
for (var n = 0, i = t.length; n < i; ++n)
if (t[n].name === e) {
(t[n] = doe), (t = t.slice(0, n).concat(t.slice(n + 1)));
break;
}
return r != null && t.push({ name: e, value: r }), t;
}
var U_ = 'http://www.w3.org/1999/xhtml';
const ph = {
svg: 'http://www.w3.org/2000/svg',
xhtml: U_,
xlink: 'http://www.w3.org/1999/xlink',
xml: 'http://www.w3.org/XML/1998/namespace',
xmlns: 'http://www.w3.org/2000/xmlns/',
};
function fs(t) {
var e = (t += ''),
r = e.indexOf(':');
return r >= 0 && (e = t.slice(0, r)) !== 'xmlns' && (t = t.slice(r + 1)), ph.hasOwnProperty(e) ? { space: ph[e], local: t } : t;
}
function poe(t) {
return function () {
var e = this.ownerDocument,
r = this.namespaceURI;
return r === U_ && e.documentElement.namespaceURI === U_ ? e.createElement(t) : e.createElementNS(r, t);
};
}
function hoe(t) {
return function () {
return this.ownerDocument.createElementNS(t.space, t.local);
};
}
function Ub(t) {
var e = fs(t);
return (e.local ? hoe : poe)(e);
}
function goe() {}
function Sm(t) {
return t == null
? goe
: function () {
return this.querySelector(t);
};
}
function foe(t) {
typeof t != 'function' && (t = Sm(t));
for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i)
for (var a = e[i], l = a.length, u = (n[i] = new Array(l)), d, m, p = 0; p < l; ++p)
(d = a[p]) && (m = t.call(d, d.__data__, p, a)) && ('__data__' in d && (m.__data__ = d.__data__), (u[p] = m));
return new br(n, this._parents);
}
function Eoe(t) {
return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
}
function Soe() {
return [];
}
function Gb(t) {
return t == null
? Soe
: function () {
return this.querySelectorAll(t);
};
}
function boe(t) {
return function () {
return Eoe(t.apply(this, arguments));
};
}
function Toe(t) {
typeof t == 'function' ? (t = boe(t)) : (t = Gb(t));
for (var e = this._groups, r = e.length, n = [], i = [], a = 0; a < r; ++a)
for (var l = e[a], u = l.length, d, m = 0; m < u; ++m) (d = l[m]) && (n.push(t.call(d, d.__data__, m, l)), i.push(d));
return new br(n, i);
}
function qb(t) {
return function () {
return this.matches(t);
};
}
function Yb(t) {
return function (e) {
return e.matches(t);
};
}
var voe = Array.prototype.find;
function Coe(t) {
return function () {
return voe.call(this.children, t);
};
}
function yoe() {
return this.firstElementChild;
}
function Roe(t) {
return this.select(t == null ? yoe : Coe(typeof t == 'function' ? t : Yb(t)));
}
var Aoe = Array.prototype.filter;
function Noe() {
return Array.from(this.children);
}
function Ooe(t) {
return function () {
return Aoe.call(this.children, t);
};
}
function Ioe(t) {
return this.selectAll(t == null ? Noe : Ooe(typeof t == 'function' ? t : Yb(t)));
}
function xoe(t) {
typeof t != 'function' && (t = qb(t));
for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i)
for (var a = e[i], l = a.length, u = (n[i] = []), d, m = 0; m < l; ++m) (d = a[m]) && t.call(d, d.__data__, m, a) && u.push(d);
return new br(n, this._parents);
}
function zb(t) {
return new Array(t.length);
}
function Doe() {
return new br(this._enter || this._groups.map(zb), this._parents);
}
function Go(t, e) {
(this.ownerDocument = t.ownerDocument), (this.namespaceURI = t.namespaceURI), (this._next = null), (this._parent = t), (this.__data__ = e);
}
Go.prototype = {
constructor: Go,
appendChild: function (t) {
return this._parent.insertBefore(t, this._next);
},
insertBefore: function (t, e) {
return this._parent.insertBefore(t, e);
},
querySelector: function (t) {
return this._parent.querySelector(t);
},
querySelectorAll: function (t) {
return this._parent.querySelectorAll(t);
},
};
function woe(t) {
return function () {
return t;
};
}
function Moe(t, e, r, n, i, a) {
for (var l = 0, u, d = e.length, m = a.length; l < m; ++l) (u = e[l]) ? ((u.__data__ = a[l]), (n[l] = u)) : (r[l] = new Go(t, a[l]));
for (; l < d; ++l) (u = e[l]) && (i[l] = u);
}
function Loe(t, e, r, n, i, a, l) {
var u,
d,
m = new Map(),
p = e.length,
E = a.length,
f = new Array(p),
v;
for (u = 0; u < p; ++u) (d = e[u]) && ((f[u] = v = l.call(d, d.__data__, u, e) + ''), m.has(v) ? (i[u] = d) : m.set(v, d));
for (u = 0; u < E; ++u)
(v = l.call(t, a[u], u, a) + ''), (d = m.get(v)) ? ((n[u] = d), (d.__data__ = a[u]), m.delete(v)) : (r[u] = new Go(t, a[u]));
for (u = 0; u < p; ++u) (d = e[u]) && m.get(f[u]) === d && (i[u] = d);
}
function koe(t) {
return t.__data__;
}
function Poe(t, e) {
if (!arguments.length) return Array.from(this, koe);
var r = e ? Loe : Moe,
n = this._parents,
i = this._groups;
typeof t != 'function' && (t = woe(t));
for (var a = i.length, l = new Array(a), u = new Array(a), d = new Array(a), m = 0; m < a; ++m) {
var p = n[m],
E = i[m],
f = E.length,
v = Boe(t.call(p, p && p.__data__, m, n)),
R = v.length,
O = (u[m] = new Array(R)),
M = (l[m] = new Array(R)),
w = (d[m] = new Array(f));
r(p, E, O, M, w, v, e);
for (var D = 0, F = 0, Y, z; D < R; ++D)
if ((Y = O[D])) {
for (D >= F && (F = D + 1); !(z = M[F]) && ++F < R; );
Y._next = z || null;
}
}
return (l = new br(l, n)), (l._enter = u), (l._exit = d), l;
}
function Boe(t) {
return typeof t == 'object' && 'length' in t ? t : Array.from(t);
}
function Foe() {
return new br(this._exit || this._groups.map(zb), this._parents);
}
function Uoe(t, e, r) {
var n = this.enter(),
i = this,
a = this.exit();
return (
typeof t == 'function' ? ((n = t(n)), n && (n = n.selection())) : (n = n.append(t + '')),
e != null && ((i = e(i)), i && (i = i.selection())),
r == null ? a.remove() : r(a),
n && i ? n.merge(i).order() : i
);
}
function Goe(t) {
for (
var e = t.selection ? t.selection() : t, r = this._groups, n = e._groups, i = r.length, a = n.length, l = Math.min(i, a), u = new Array(i), d = 0;
d < l;
++d
)
for (var m = r[d], p = n[d], E = m.length, f = (u[d] = new Array(E)), v, R = 0; R < E; ++R) (v = m[R] || p[R]) && (f[R] = v);
for (; d < i; ++d) u[d] = r[d];
return new br(u, this._parents);
}
function qoe() {
for (var t = this._groups, e = -1, r = t.length; ++e < r; )
for (var n = t[e], i = n.length - 1, a = n[i], l; --i >= 0; )
(l = n[i]) && (a && l.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(l, a), (a = l));
return this;
}
function Yoe(t) {
t || (t = zoe);
function e(E, f) {
return E && f ? t(E.__data__, f.__data__) : !E - !f;
}
for (var r = this._groups, n = r.length, i = new Array(n), a = 0; a < n; ++a) {
for (var l = r[a], u = l.length, d = (i[a] = new Array(u)), m, p = 0; p < u; ++p) (m = l[p]) && (d[p] = m);
d.sort(e);
}
return new br(i, this._parents).order();
}
function zoe(t, e) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
}
function Hoe() {
var t = arguments[0];
return (arguments[0] = this), t.apply(null, arguments), this;
}
function $oe() {
return Array.from(this);
}
function Voe() {
for (var t = this._groups, e = 0, r = t.length; e < r; ++e)
for (var n = t[e], i = 0, a = n.length; i < a; ++i) {
var l = n[i];
if (l) return l;
}
return null;
}
function Woe() {
let t = 0;
for (const e of this) ++t;
return t;
}
function Koe() {
return !this.node();
}
function Qoe(t) {
for (var e = this._groups, r = 0, n = e.length; r < n; ++r)
for (var i = e[r], a = 0, l = i.length, u; a < l; ++a) (u = i[a]) && t.call(u, u.__data__, a, i);
return this;
}
function Zoe(t) {
return function () {
this.removeAttribute(t);
};
}
function Xoe(t) {
return function () {
this.removeAttributeNS(t.space, t.local);
};
}
function Joe(t, e) {
return function () {
this.setAttribute(t, e);
};
}
function joe(t, e) {
return function () {
this.setAttributeNS(t.space, t.local, e);
};
}
function ese(t, e) {
return function () {
var r = e.apply(this, arguments);
r == null ? this.removeAttribute(t) : this.setAttribute(t, r);
};
}
function tse(t, e) {
return function () {
var r = e.apply(this, arguments);
r == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, r);
};
}
function rse(t, e) {
var r = fs(t);
if (arguments.length < 2) {
var n = this.node();
return r.local ? n.getAttributeNS(r.space, r.local) : n.getAttribute(r);
}
return this.each((e == null ? (r.local ? Xoe : Zoe) : typeof e == 'function' ? (r.local ? tse : ese) : r.local ? joe : Joe)(r, e));
}
function Hb(t) {
return (t.ownerDocument && t.ownerDocument.defaultView) || (t.document && t) || t.defaultView;
}
function nse(t) {
return function () {
this.style.removeProperty(t);
};
}
function ise(t, e, r) {
return function () {
this.style.setProperty(t, e, r);
};
}
function ase(t, e, r) {
return function () {
var n = e.apply(this, arguments);
n == null ? this.style.removeProperty(t) : this.style.setProperty(t, n, r);
};
}
function ose(t, e, r) {
return arguments.length > 1 ? this.each((e == null ? nse : typeof e == 'function' ? ase : ise)(t, e, r ?? '')) : Oi(this.node(), t);
}
function Oi(t, e) {
return t.style.getPropertyValue(e) || Hb(t).getComputedStyle(t, null).getPropertyValue(e);
}
function sse(t) {
return function () {
delete this[t];
};
}
function lse(t, e) {
return function () {
this[t] = e;
};
}
function cse(t, e) {
return function () {
var r = e.apply(this, arguments);
r == null ? delete this[t] : (this[t] = r);
};
}
function use(t, e) {
return arguments.length > 1 ? this.each((e == null ? sse : typeof e == 'function' ? cse : lse)(t, e)) : this.node()[t];
}
function $b(t) {
return t.trim().split(/^|\s+/);
}
function bm(t) {
return t.classList || new Vb(t);
}
function Vb(t) {
(this._node = t), (this._names = $b(t.getAttribute('class') || ''));
}
Vb.prototype = {
add: function (t) {
var e = this._names.indexOf(t);
e < 0 && (this._names.push(t), this._node.setAttribute('class', this._names.join(' ')));
},
remove: function (t) {
var e = this._names.indexOf(t);
e >= 0 && (this._names.splice(e, 1), this._node.setAttribute('class', this._names.join(' ')));
},
contains: function (t) {
return this._names.indexOf(t) >= 0;
},
};
function Wb(t, e) {
for (var r = bm(t), n = -1, i = e.length; ++n < i; ) r.add(e[n]);
}
function Kb(t, e) {
for (var r = bm(t), n = -1, i = e.length; ++n < i; ) r.remove(e[n]);
}
function dse(t) {
return function () {
Wb(this, t);
};
}
function _se(t) {
return function () {
Kb(this, t);
};
}
function mse(t, e) {
return function () {
(e.apply(this, arguments) ? Wb : Kb)(this, t);
};
}
function pse(t, e) {
var r = $b(t + '');
if (arguments.length < 2) {
for (var n = bm(this.node()), i = -1, a = r.length; ++i < a; ) if (!n.contains(r[i])) return !1;
return !0;
}
return this.each((typeof e == 'function' ? mse : e ? dse : _se)(r, e));
}
function hse() {
this.textContent = '';
}
function gse(t) {
return function () {
this.textContent = t;
};
}
function fse(t) {
return function () {
var e = t.apply(this, arguments);
this.textContent = e ?? '';
};
}
function Ese(t) {
return arguments.length ? this.each(t == null ? hse : (typeof t == 'function' ? fse : gse)(t)) : this.node().textContent;
}
function Sse() {
this.innerHTML = '';
}
function bse(t) {
return function () {
this.innerHTML = t;
};
}
function Tse(t) {
return function () {
var e = t.apply(this, arguments);
this.innerHTML = e ?? '';
};
}
function vse(t) {
return arguments.length ? this.each(t == null ? Sse : (typeof t == 'function' ? Tse : bse)(t)) : this.node().innerHTML;
}
function Cse() {
this.nextSibling && this.parentNode.appendChild(this);
}
function yse() {
return this.each(Cse);
}
function Rse() {
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
}
function Ase() {
return this.each(Rse);
}
function Nse(t) {
var e = typeof t == 'function' ? t : Ub(t);
return this.select(function () {
return this.appendChild(e.apply(this, arguments));
});
}
function Ose() {
return null;
}
function Ise(t, e) {
var r = typeof t == 'function' ? t : Ub(t),
n = e == null ? Ose : typeof e == 'function' ? e : Sm(e);
return this.select(function () {
return this.insertBefore(r.apply(this, arguments), n.apply(this, arguments) || null);
});
}
function xse() {
var t = this.parentNode;
t && t.removeChild(this);
}
function Dse() {
return this.each(xse);
}
function wse() {
var t = this.cloneNode(!1),
e = this.parentNode;
return e ? e.insertBefore(t, this.nextSibling) : t;
}
function Mse() {
var t = this.cloneNode(!0),
e = this.parentNode;
return e ? e.insertBefore(t, this.nextSibling) : t;
}
function Lse(t) {
return this.select(t ? Mse : wse);
}
function kse(t) {
return arguments.length ? this.property('__data__', t) : this.node().__data__;
}
function Pse(t) {
return function (e) {
t.call(this, e, this.__data__);
};
}
function Bse(t) {
return t
.trim()
.split(/^|\s+/)
.map(function (e) {
var r = '',
n = e.indexOf('.');
return n >= 0 && ((r = e.slice(n + 1)), (e = e.slice(0, n))), { type: e, name: r };
});
}
function Fse(t) {
return function () {
var e = this.__on;
if (e) {
for (var r = 0, n = -1, i = e.length, a; r < i; ++r)
(a = e[r]), (!t.type || a.type === t.type) && a.name === t.name ? this.removeEventListener(a.type, a.listener, a.options) : (e[++n] = a);
++n ? (e.length = n) : delete this.__on;
}
};
}
function Use(t, e, r) {
return function () {
var n = this.__on,
i,
a = Pse(e);
if (n) {
for (var l = 0, u = n.length; l < u; ++l)
if ((i = n[l]).type === t.type && i.name === t.name) {
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, (i.listener = a), (i.options = r)), (i.value = e);
return;
}
}
this.addEventListener(t.type, a, r), (i = { type: t.type, name: t.name, value: e, listener: a, options: r }), n ? n.push(i) : (this.__on = [i]);
};
}
function Gse(t, e, r) {
var n = Bse(t + ''),
i,
a = n.length,
l;
if (arguments.length < 2) {
var u = this.node().__on;
if (u) {
for (var d = 0, m = u.length, p; d < m; ++d)
for (i = 0, p = u[d]; i < a; ++i) if ((l = n[i]).type === p.type && l.name === p.name) return p.value;
}
return;
}
for (u = e ? Use : Fse, i = 0; i < a; ++i) this.each(u(n[i], e, r));
return this;
}
function Qb(t, e, r) {
var n = Hb(t),
i = n.CustomEvent;
typeof i == 'function'
? (i = new i(e, r))
: ((i = n.document.createEvent('Event')), r ? (i.initEvent(e, r.bubbles, r.cancelable), (i.detail = r.detail)) : i.initEvent(e, !1, !1)),
t.dispatchEvent(i);
}
function qse(t, e) {
return function () {
return Qb(this, t, e);
};
}
function Yse(t, e) {
return function () {
return Qb(this, t, e.apply(this, arguments));
};
}
function zse(t, e) {
return this.each((typeof e == 'function' ? Yse : qse)(t, e));
}
function* Hse() {
for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, a = n.length, l; i < a; ++i) (l = n[i]) && (yield l);
}
var Zb = [null];
function br(t, e) {
(this._groups = t), (this._parents = e);
}
function Ma() {
return new br([[document.documentElement]], Zb);
}
function $se() {
return this;
}
br.prototype = Ma.prototype = {
constructor: br,
select: foe,
selectAll: Toe,
selectChild: Roe,
selectChildren: Ioe,
filter: xoe,
data: Poe,
enter: Doe,
exit: Foe,
join: Uoe,
merge: Goe,
selection: $se,
order: qoe,
sort: Yoe,
call: Hoe,
nodes: $oe,
node: Voe,
size: Woe,
empty: Koe,
each: Qoe,
attr: rse,
style: ose,
property: use,
classed: pse,
text: Ese,
html: vse,
raise: yse,
lower: Ase,
append: Nse,
insert: Ise,
remove: Dse,
clone: Lse,
datum: kse,
on: Gse,
dispatch: zse,
[Symbol.iterator]: Hse,
};
function Or(t) {
return typeof t == 'string' ? new br([[document.querySelector(t)]], [document.documentElement]) : new br([[t]], Zb);
}
function Tm(t, e, r) {
(t.prototype = e.prototype = r), (r.constructor = t);
}
function Xb(t, e) {
var r = Object.create(t.prototype);
for (var n in e) r[n] = e[n];
return r;
}
function La() {}
var Sa = 0.7,
qo = 1 / Sa,
Ni = '\\s*([+-]?\\d+)\\s*',
ba = '\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*',
rn = '\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*',
Vse = /^#([0-9a-f]{3,8})$/,
Wse = new RegExp(`^rgb\\(${Ni},${Ni},${Ni}\\)$`),
Kse = new RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`),
Qse = new RegExp(`^rgba\\(${Ni},${Ni},${Ni},${ba}\\)$`),
Zse = new RegExp(`^rgba\\(${rn},${rn},${rn},${ba}\\)$`),
Xse = new RegExp(`^hsl\\(${ba},${rn},${rn}\\)$`),
Jse = new RegExp(`^hsla\\(${ba},${rn},${rn},${ba}\\)$`),
hh = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
aquamarine: 8388564,
azure: 15794175,
beige: 16119260,
bisque: 16770244,
black: 0,
blanchedalmond: 16772045,
blue: 255,
blueviolet: 9055202,
brown: 10824234,
burlywood: 14596231,
cadetblue: 6266528,
chartreuse: 8388352,
chocolate: 13789470,
coral: 16744272,
cornflowerblue: 6591981,
cornsilk: 16775388,
crimson: 14423100,
cyan: 65535,
darkblue: 139,
darkcyan: 35723,
darkgoldenrod: 12092939,
darkgray: 11119017,
darkgreen: 25600,
darkgrey: 11119017,
darkkhaki: 12433259,
darkmagenta: 9109643,
darkolivegreen: 5597999,
darkorange: 16747520,
darkorchid: 10040012,
darkred: 9109504,
darksalmon: 15308410,
darkseagreen: 9419919,
darkslateblue: 4734347,
darkslategray: 3100495,
darkslategrey: 3100495,
darkturquoise: 52945,
darkviolet: 9699539,
deeppink: 16716947,
deepskyblue: 49151,
dimgray: 6908265,
dimgrey: 6908265,
dodgerblue: 2003199,
firebrick: 11674146,
floralwhite: 16775920,
forestgreen: 2263842,
fuchsia: 16711935,
gainsboro: 14474460,
ghostwhite: 16316671,
gold: 16766720,
goldenrod: 14329120,
gray: 8421504,
green: 32768,
greenyellow: 11403055,
grey: 8421504,
honeydew: 15794160,
hotpink: 16738740,
indianred: 13458524,
indigo: 4915330,
ivory: 16777200,
khaki: 15787660,
lavender: 15132410,
lavenderblush: 16773365,
lawngreen: 8190976,
lemonchiffon: 16775885,
lightblue: 11393254,
lightcoral: 15761536,
lightcyan: 14745599,
lightgoldenrodyellow: 16448210,
lightgray: 13882323,
lightgreen: 9498256,
lightgrey: 13882323,
lightpink: 16758465,
lightsalmon: 16752762,
lightseagreen: 2142890,
lightskyblue: 8900346,
lightslategray: 7833753,
lightslategrey: 7833753,
lightsteelblue: 11584734,
lightyellow: 16777184,
lime: 65280,
limegreen: 3329330,
linen: 16445670,
magenta: 16711935,
maroon: 8388608,
mediumaquamarine: 6737322,
mediumblue: 205,
mediumorchid: 12211667,
mediumpurple: 9662683,
mediumseagreen: 3978097,
mediumslateblue: 8087790,
mediumspringgreen: 64154,
mediumturquoise: 4772300,
mediumvioletred: 13047173,
midnightblue: 1644912,
mintcream: 16121850,
mistyrose: 16770273,
moccasin: 16770229,
navajowhite: 16768685,
navy: 128,
oldlace: 16643558,
olive: 8421376,
olivedrab: 7048739,
orange: 16753920,
orangered: 16729344,
orchid: 14315734,
palegoldenrod: 15657130,
palegreen: 10025880,
paleturquoise: 11529966,
palevioletred: 14381203,
papayawhip: 16773077,
peachpuff: 16767673,
peru: 13468991,
pink: 16761035,
plum: 14524637,
powderblue: 11591910,
purple: 8388736,
rebeccapurple: 6697881,
red: 16711680,
rosybrown: 12357519,
royalblue: 4286945,
saddlebrown: 9127187,
salmon: 16416882,
sandybrown: 16032864,
seagreen: 3050327,
seashell: 16774638,
sienna: 10506797,
silver: 12632256,
skyblue: 8900331,
slateblue: 6970061,
slategray: 7372944,
slategrey: 7372944,
snow: 16775930,
springgreen: 65407,
steelblue: 4620980,
tan: 13808780,
teal: 32896,
thistle: 14204888,
tomato: 16737095,
turquoise: 4251856,
violet: 15631086,
wheat: 16113331,
white: 16777215,
whitesmoke: 16119285,
yellow: 16776960,
yellowgreen: 10145074,
};
Tm(La, Ta, {
copy(t) {
return Object.assign(new this.constructor(), this, t);
},
displayable() {
return this.rgb().displayable();
},
hex: gh,
formatHex: gh,
formatHex8: jse,
formatHsl: ele,
formatRgb: fh,
toString: fh,
});
function gh() {
return this.rgb().formatHex();
}
function jse() {
return this.rgb().formatHex8();
}
function ele() {
return Jb(this).formatHsl();
}
function fh() {
return this.rgb().formatRgb();
}
function Ta(t) {
var e, r;
return (
(t = (t + '').trim().toLowerCase()),
(e = Vse.exec(t))
? ((r = e[1].length),
(e = parseInt(e[1], 16)),
r === 6
? Eh(e)
: r === 3
? new ur(((e >> 8) & 15) | ((e >> 4) & 240), ((e >> 4) & 15) | (e & 240), ((e & 15) << 4) | (e & 15), 1)
: r === 8
? co((e >> 24) & 255, (e >> 16) & 255, (e >> 8) & 255, (e & 255) / 255)
: r === 4
? co(
((e >> 12) & 15) | ((e >> 8) & 240),
((e >> 8) & 15) | ((e >> 4) & 240),
((e >> 4) & 15) | (e & 240),
(((e & 15) << 4) | (e & 15)) / 255
)
: null)
: (e = Wse.exec(t))
? new ur(e[1], e[2], e[3], 1)
: (e = Kse.exec(t))
? new ur((e[1] * 255) / 100, (e[2] * 255) / 100, (e[3] * 255) / 100, 1)
: (e = Qse.exec(t))
? co(e[1], e[2], e[3], e[4])
: (e = Zse.exec(t))
? co((e[1] * 255) / 100, (e[2] * 255) / 100, (e[3] * 255) / 100, e[4])
: (e = Xse.exec(t))
? Th(e[1], e[2] / 100, e[3] / 100, 1)
: (e = Jse.exec(t))
? Th(e[1], e[2] / 100, e[3] / 100, e[4])
: hh.hasOwnProperty(t)
? Eh(hh[t])
: t === 'transparent'
? new ur(NaN, NaN, NaN, 0)
: null
);
}
function Eh(t) {
return new ur((t >> 16) & 255, (t >> 8) & 255, t & 255, 1);
}
function co(t, e, r, n) {
return n <= 0 && (t = e = r = NaN), new ur(t, e, r, n);
}
function tle(t) {
return t instanceof La || (t = Ta(t)), t ? ((t = t.rgb()), new ur(t.r, t.g, t.b, t.opacity)) : new ur();
}
function G_(t, e, r, n) {
return arguments.length === 1 ? tle(t) : new ur(t, e, r, n ?? 1);
}
function ur(t, e, r, n) {
(this.r = +t), (this.g = +e), (this.b = +r), (this.opacity = +n);
}
Tm(
ur,
G_,
Xb(La, {
brighter(t) {
return (t = t == null ? qo : Math.pow(qo, t)), new ur(this.r * t, this.g * t, this.b * t, this.opacity);
},
darker(t) {
return (t = t == null ? Sa : Math.pow(Sa, t)), new ur(this.r * t, this.g * t, this.b * t, this.opacity);
},
rgb() {
return this;
},
clamp() {
return new ur(Qn(this.r), Qn(this.g), Qn(this.b), Yo(this.opacity));
},
displayable() {
return (
-0.5 <= this.r &&
this.r < 255.5 &&
-0.5 <= this.g &&
this.g < 255.5 &&
-0.5 <= this.b &&
this.b < 255.5 &&
0 <= this.opacity &&
this.opacity <= 1
);
},
hex: Sh,
formatHex: Sh,
formatHex8: rle,
formatRgb: bh,
toString: bh,
})
);
function Sh() {
return `#${Kn(this.r)}${Kn(this.g)}${Kn(this.b)}`;
}
function rle() {
return `#${Kn(this.r)}${Kn(this.g)}${Kn(this.b)}${Kn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function bh() {
const t = Yo(this.opacity);
return `${t === 1 ? 'rgb(' : 'rgba('}${Qn(this.r)}, ${Qn(this.g)}, ${Qn(this.b)}${t === 1 ? ')' : `, ${t})`}`;
}
function Yo(t) {
return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
}
function Qn(t) {
return Math.max(0, Math.min(255, Math.round(t) || 0));
}
function Kn(t) {
return (t = Qn(t)), (t < 16 ? '0' : '') + t.toString(16);
}
function Th(t, e, r, n) {
return n <= 0 ? (t = e = r = NaN) : r <= 0 || r >= 1 ? (t = e = NaN) : e <= 0 && (t = NaN), new qr(t, e, r, n);
}
function Jb(t) {
if (t instanceof qr) return new qr(t.h, t.s, t.l, t.opacity);
if ((t instanceof La || (t = Ta(t)), !t)) return new qr();
if (t instanceof qr) return t;
t = t.rgb();
var e = t.r / 255,
r = t.g / 255,
n = t.b / 255,
i = Math.min(e, r, n),
a = Math.max(e, r, n),
l = NaN,
u = a - i,
d = (a + i) / 2;
return (
u
? (e === a ? (l = (r - n) / u + (r < n) * 6) : r === a ? (l = (n - e) / u + 2) : (l = (e - r) / u + 4),
(u /= d < 0.5 ? a + i : 2 - a - i),
(l *= 60))
: (u = d > 0 && d < 1 ? 0 : l),
new qr(l, u, d, t.opacity)
);
}
function nle(t, e, r, n) {
return arguments.length === 1 ? Jb(t) : new qr(t, e, r, n ?? 1);
}
function qr(t, e, r, n) {
(this.h = +t), (this.s = +e), (this.l = +r), (this.opacity = +n);
}
Tm(
qr,
nle,
Xb(La, {
brighter(t) {
return (t = t == null ? qo : Math.pow(qo, t)), new qr(this.h, this.s, this.l * t, this.opacity);
},
darker(t) {
return (t = t == null ? Sa : Math.pow(Sa, t)), new qr(this.h, this.s, this.l * t, this.opacity);
},
rgb() {
var t = (this.h % 360) + (this.h < 0) * 360,
e = isNaN(t) || isNaN(this.s) ? 0 : this.s,
r = this.l,
n = r + (r < 0.5 ? r : 1 - r) * e,
i = 2 * r - n;
return new ur(Fl(t >= 240 ? t - 240 : t + 120, i, n), Fl(t, i, n), Fl(t < 120 ? t + 240 : t - 120, i, n), this.opacity);
},
clamp() {
return new qr(vh(this.h), uo(this.s), uo(this.l), Yo(this.opacity));
},
displayable() {
return ((0 <= this.s && this.s <= 1) || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
const t = Yo(this.opacity);
return `${t === 1 ? 'hsl(' : 'hsla('}${vh(this.h)}, ${uo(this.s) * 100}%, ${uo(this.l) * 100}%${t === 1 ? ')' : `, ${t})`}`;
},
})
);
function vh(t) {
return (t = (t || 0) % 360), t < 0 ? t + 360 : t;
}
function uo(t) {
return Math.max(0, Math.min(1, t || 0));
}
function Fl(t, e, r) {
return (t < 60 ? e + ((r - e) * t) / 60 : t < 180 ? r : t < 240 ? e + ((r - e) * (240 - t)) / 60 : e) * 255;
}
const vm = (t) => () => t;
function jb(t, e) {
return function (r) {
return t + r * e;
};
}
function ile(t, e, r) {
return (
(t = Math.pow(t, r)),
(e = Math.pow(e, r) - t),
(r = 1 / r),
function (n) {
return Math.pow(t + n * e, r);
}
);
}
function ITe(t, e) {
var r = e - t;
return r ? jb(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : vm(isNaN(t) ? e : t);
}
function ale(t) {
return (t = +t) == 1
? eT
: function (e, r) {
return r - e ? ile(e, r, t) : vm(isNaN(e) ? r : e);
};
}
function eT(t, e) {
var r = e - t;
return r ? jb(t, r) : vm(isNaN(t) ? e : t);
}
const Ch = (function t(e) {
var r = ale(e);
function n(i, a) {
var l = r((i = G_(i)).r, (a = G_(a)).r),
u = r(i.g, a.g),
d = r(i.b, a.b),
m = eT(i.opacity, a.opacity);
return function (p) {
return (i.r = l(p)), (i.g = u(p)), (i.b = d(p)), (i.opacity = m(p)), i + '';
};
}
return (n.gamma = t), n;
})(1);
function Pn(t, e) {
return (
(t = +t),
(e = +e),
function (r) {
return t * (1 - r) + e * r;
}
);
}
var q_ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
Ul = new RegExp(q_.source, 'g');
function ole(t) {
return function () {
return t;
};
}
function sle(t) {
return function (e) {
return t(e) + '';
};
}
function lle(t, e) {
var r = (q_.lastIndex = Ul.lastIndex = 0),
n,
i,
a,
l = -1,
u = [],
d = [];
for (t = t + '', e = e + ''; (n = q_.exec(t)) && (i = Ul.exec(e)); )
(a = i.index) > r && ((a = e.slice(r, a)), u[l] ? (u[l] += a) : (u[++l] = a)),
(n = n[0]) === (i = i[0]) ? (u[l] ? (u[l] += i) : (u[++l] = i)) : ((u[++l] = null), d.push({ i: l, x: Pn(n, i) })),
(r = Ul.lastIndex);
return (
r < e.length && ((a = e.slice(r)), u[l] ? (u[l] += a) : (u[++l] = a)),
u.length < 2
? d[0]
? sle(d[0].x)
: ole(e)
: ((e = d.length),
function (m) {
for (var p = 0, E; p < e; ++p) u[(E = d[p]).i] = E.x(m);
return u.join('');
})
);
}
var yh = 180 / Math.PI,
Y_ = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 };
function tT(t, e, r, n, i, a) {
var l, u, d;
return (
(l = Math.sqrt(t * t + e * e)) && ((t /= l), (e /= l)),
(d = t * r + e * n) && ((r -= t * d), (n -= e * d)),
(u = Math.sqrt(r * r + n * n)) && ((r /= u), (n /= u), (d /= u)),
t * n < e * r && ((t = -t), (e = -e), (d = -d), (l = -l)),
{ translateX: i, translateY: a, rotate: Math.atan2(e, t) * yh, skewX: Math.atan(d) * yh, scaleX: l, scaleY: u }
);
}
var _o;
function cle(t) {
const e = new (typeof DOMMatrix == 'function' ? DOMMatrix : WebKitCSSMatrix)(t + '');
return e.isIdentity ? Y_ : tT(e.a, e.b, e.c, e.d, e.e, e.f);
}
function ule(t) {
return t == null ||
(_o || (_o = document.createElementNS('http://www.w3.org/2000/svg', 'g')),
_o.setAttribute('transform', t),
!(t = _o.transform.baseVal.consolidate()))
? Y_
: ((t = t.matrix), tT(t.a, t.b, t.c, t.d, t.e, t.f));
}
function rT(t, e, r, n) {
function i(m) {
return m.length ? m.pop() + ' ' : '';
}
function a(m, p, E, f, v, R) {
if (m !== E || p !== f) {
var O = v.push('translate(', null, e, null, r);
R.push({ i: O - 4, x: Pn(m, E) }, { i: O - 2, x: Pn(p, f) });
} else (E || f) && v.push('translate(' + E + e + f + r);
}
function l(m, p, E, f) {
m !== p
? (m - p > 180 ? (p += 360) : p - m > 180 && (m += 360), f.push({ i: E.push(i(E) + 'rotate(', null, n) - 2, x: Pn(m, p) }))
: p && E.push(i(E) + 'rotate(' + p + n);
}
function u(m, p, E, f) {
m !== p ? f.push({ i: E.push(i(E) + 'skewX(', null, n) - 2, x: Pn(m, p) }) : p && E.push(i(E) + 'skewX(' + p + n);
}
function d(m, p, E, f, v, R) {
if (m !== E || p !== f) {
var O = v.push(i(v) + 'scale(', null, ',', null, ')');
R.push({ i: O - 4, x: Pn(m, E) }, { i: O - 2, x: Pn(p, f) });
} else (E !== 1 || f !== 1) && v.push(i(v) + 'scale(' + E + ',' + f + ')');
}
return function (m, p) {
var E = [],
f = [];
return (
(m = t(m)),
(p = t(p)),
a(m.translateX, m.translateY, p.translateX, p.translateY, E, f),
l(m.rotate, p.rotate, E, f),
u(m.skewX, p.skewX, E, f),
d(m.scaleX, m.scaleY, p.scaleX, p.scaleY, E, f),
(m = p = null),
function (v) {
for (var R = -1, O = f.length, M; ++R < O; ) E[(M = f[R]).i] = M.x(v);
return E.join('');
}
);
};
}
var dle = rT(cle, 'px, ', 'px)', 'deg)'),
_le = rT(ule, ', ', ')', ')'),
Ii = 0,
sa = 0,
ra = 0,
nT = 1e3,
zo,
la,
Ho = 0,
ei = 0,
Es = 0,
va = typeof performance == 'object' && performance.now ? performance : Date,
iT =
typeof window == 'object' && window.requestAnimationFrame
? window.requestAnimationFrame.bind(window)
: function (t) {
setTimeout(t, 17);
};
function Cm() {
return ei || (iT(mle), (ei = va.now() + Es));
}
function mle() {
ei = 0;
}
function $o() {
this._call = this._time = this._next = null;
}
$o.prototype = aT.prototype = {
constructor: $o,
restart: function (t, e, r) {
if (typeof t != 'function') throw new TypeError('callback is not a function');
(r = (r == null ? Cm() : +r) + (e == null ? 0 : +e)),
!this._next && la !== this && (la ? (la._next = this) : (zo = this), (la = this)),
(this._call = t),
(this._time = r),
z_();
},
stop: function () {
this._call && ((this._call = null), (this._time = 1 / 0), z_());
},
};
function aT(t, e, r) {
var n = new $o();
return n.restart(t, e, r), n;
}
function ple() {
Cm(), ++Ii;
for (var t = zo, e; t; ) (e = ei - t._time) >= 0 && t._call.call(void 0, e), (t = t._next);
--Ii;
}
function Rh() {
(ei = (Ho = va.now()) + Es), (Ii = sa = 0);
try {
ple();
} finally {
(Ii = 0), gle(), (ei = 0);
}
}
function hle() {
var t = va.now(),
e = t - Ho;
e > nT && ((Es -= e), (Ho = t));
}
function gle() {
for (var t, e = zo, r, n = 1 / 0; e; )
e._call ? (n > e._time && (n = e._time), (t = e), (e = e._next)) : ((r = e._next), (e._next = null), (e = t ? (t._next = r) : (zo = r)));
(la = t), z_(n);
}
function z_(t) {
if (!Ii) {
sa && (sa = clearTimeout(sa));
var e = t - ei;
e > 24
? (t < 1 / 0 && (sa = setTimeout(Rh, t - va.now() - Es)), ra && (ra = clearInterval(ra)))
: (ra || ((Ho = va.now()), (ra = setInterval(hle, nT))), (Ii = 1), iT(Rh));
}
}
function Ah(t, e, r) {
var n = new $o();
return (
(e = e == null ? 0 : +e),
n.restart(
(i) => {
n.stop(), t(i + e);
},
e,
r
),
n
);
}
var fle = Fb('start', 'end', 'cancel', 'interrupt'),
Ele = [],
oT = 0,
Nh = 1,
H_ = 2,
yo = 3,
Oh = 4,
$_ = 5,
Ro = 6;
function Ss(t, e, r, n, i, a) {
var l = t.__transition;
if (!l) t.__transition = {};
else if (r in l) return;
Sle(t, r, {
name: e,
index: n,
group: i,
on: fle,
tween: Ele,
time: a.time,
delay: a.delay,
duration: a.duration,
ease: a.ease,
timer: null,
state: oT,
});
}
function ym(t, e) {
var r = Hr(t, e);
if (r.state > oT) throw new Error('too late; already scheduled');
return r;
}
function un(t, e) {
var r = Hr(t, e);
if (r.state > yo) throw new Error('too late; already running');
return r;
}
function Hr(t, e) {
var r = t.__transition;
if (!r || !(r = r[e])) throw new Error('transition not found');
return r;
}
function Sle(t, e, r) {
var n = t.__transition,
i;
(n[e] = r), (r.timer = aT(a, 0, r.time));
function a(m) {
(r.state = Nh), r.timer.restart(l, r.delay, r.time), r.delay <= m && l(m - r.delay);
}
function l(m) {
var p, E, f, v;
if (r.state !== Nh) return d();
for (p in n)
if (((v = n[p]), v.name === r.name)) {
if (v.state === yo) return Ah(l);
v.state === Oh
? ((v.state = Ro), v.timer.stop(), v.on.call('interrupt', t, t.__data__, v.index, v.group), delete n[p])
: +p < e && ((v.state = Ro), v.timer.stop(), v.on.call('cancel', t, t.__data__, v.index, v.group), delete n[p]);
}
if (
(Ah(function () {
r.state === yo && ((r.state = Oh), r.timer.restart(u, r.delay, r.time), u(m));
}),
(r.state = H_),
r.on.call('start', t, t.__data__, r.index, r.group),
r.state === H_)
) {
for (r.state = yo, i = new Array((f = r.tween.length)), p = 0, E = -1; p < f; ++p)
(v = r.tween[p].value.call(t, t.__data__, r.index, r.group)) && (i[++E] = v);
i.length = E + 1;
}
}
function u(m) {
for (var p = m < r.duration ? r.ease.call(null, m / r.duration) : (r.timer.restart(d), (r.state = $_), 1), E = -1, f = i.length; ++E < f; )
i[E].call(t, p);
r.state === $_ && (r.on.call('end', t, t.__data__, r.index, r.group), d());
}
function d() {
(r.state = Ro), r.timer.stop(), delete n[e];
for (var m in n) return;
delete t.__transition;
}
}
function ble(t, e) {
var r = t.__transition,
n,
i,
a = !0,
l;
if (r) {
e = e == null ? null : e + '';
for (l in r) {
if ((n = r[l]).name !== e) {
a = !1;
continue;
}
(i = n.state > H_ && n.state < $_),
(n.state = Ro),
n.timer.stop(),
n.on.call(i ? 'interrupt' : 'cancel', t, t.__data__, n.index, n.group),
delete r[l];
}
a && delete t.__transition;
}
}
function Tle(t) {
return this.each(function () {
ble(this, t);
});
}
function vle(t, e) {
var r, n;
return function () {
var i = un(this, t),
a = i.tween;
if (a !== r) {
n = r = a;
for (var l = 0, u = n.length; l < u; ++l)
if (n[l].name === e) {
(n = n.slice()), n.splice(l, 1);
break;
}
}
i.tween = n;
};
}
function Cle(t, e, r) {
var n, i;
if (typeof r != 'function') throw new Error();
return function () {
var a = un(this, t),
l = a.tween;
if (l !== n) {
i = (n = l).slice();
for (var u = { name: e, value: r }, d = 0, m = i.length; d < m; ++d)
if (i[d].name === e) {
i[d] = u;
break;
}
d === m && i.push(u);
}
a.tween = i;
};
}
function yle(t, e) {
var r = this._id;
if (((t += ''), arguments.length < 2)) {
for (var n = Hr(this.node(), r).tween, i = 0, a = n.length, l; i < a; ++i) if ((l = n[i]).name === t) return l.value;
return null;
}
return this.each((e == null ? vle : Cle)(r, t, e));
}
function Rm(t, e, r) {
var n = t._id;
return (
t.each(function () {
var i = un(this, n);
(i.value || (i.value = {}))[e] = r.apply(this, arguments);
}),
function (i) {
return Hr(i, n).value[e];
}
);
}
function sT(t, e) {
var r;
return (typeof e == 'number' ? Pn : e instanceof Ta ? Ch : (r = Ta(e)) ? ((e = r), Ch) : lle)(t, e);
}
function Rle(t) {
return function () {
this.removeAttribute(t);
};
}
function Ale(t) {
return function () {
this.removeAttributeNS(t.space, t.local);
};
}
function Nle(t, e, r) {
var n,
i = r + '',
a;
return function () {
var l = this.getAttribute(t);
return l === i ? null : l === n ? a : (a = e((n = l), r));
};
}
function Ole(t, e, r) {
var n,
i = r + '',
a;
return function () {
var l = this.getAttributeNS(t.space, t.local);
return l === i ? null : l === n ? a : (a = e((n = l), r));
};
}
function Ile(t, e, r) {
var n, i, a;
return function () {
var l,
u = r(this),
d;
return u == null
? void this.removeAttribute(t)
: ((l = this.getAttribute(t)), (d = u + ''), l === d ? null : l === n && d === i ? a : ((i = d), (a = e((n = l), u))));
};
}
function xle(t, e, r) {
var n, i, a;
return function () {
var l,
u = r(this),
d;
return u == null
? void this.removeAttributeNS(t.space, t.local)
: ((l = this.getAttributeNS(t.space, t.local)), (d = u + ''), l === d ? null : l === n && d === i ? a : ((i = d), (a = e((n = l), u))));
};
}
function Dle(t, e) {
var r = fs(t),
n = r === 'transform' ? _le : sT;
return this.attrTween(
t,
typeof e == 'function'
? (r.local ? xle : Ile)(r, n, Rm(this, 'attr.' + t, e))
: e == null
? (r.local ? Ale : Rle)(r)
: (r.local ? Ole : Nle)(r, n, e)
);
}
function wle(t, e) {
return function (r) {
this.setAttribute(t, e.call(this, r));
};
}
function Mle(t, e) {
return function (r) {
this.setAttributeNS(t.space, t.local, e.call(this, r));
};
}
function Lle(t, e) {
var r, n;
function i() {
var a = e.apply(this, arguments);
return a !== n && (r = (n = a) && Mle(t, a)), r;
}
return (i._value = e), i;
}
function kle(t, e) {
var r, n;
function i() {
var a = e.apply(this, arguments);
return a !== n && (r = (n = a) && wle(t, a)), r;
}
return (i._value = e), i;
}
function Ple(t, e) {
var r = 'attr.' + t;
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
if (e == null) return this.tween(r, null);
if (typeof e != 'function') throw new Error();
var n = fs(t);
return this.tween(r, (n.local ? Lle : kle)(n, e));
}
function Ble(t, e) {
return function () {
ym(this, t).delay = +e.apply(this, arguments);
};
}
function Fle(t, e) {
return (
(e = +e),
function () {
ym(this, t).delay = e;
}
);
}
function Ule(t) {
var e = this._id;
return arguments.length ? this.each((typeof t == 'function' ? Ble : Fle)(e, t)) : Hr(this.node(), e).delay;
}
function Gle(t, e) {
return function () {
un(this, t).duration = +e.apply(this, arguments);
};
}
function qle(t, e) {
return (
(e = +e),
function () {
un(this, t).duration = e;
}
);
}
function Yle(t) {
var e = this._id;
return arguments.length ? this.each((typeof t == 'function' ? Gle : qle)(e, t)) : Hr(this.node(), e).duration;
}
function zle(t, e) {
if (typeof e != 'function') throw new Error();
return function () {
un(this, t).ease = e;
};
}
function Hle(t) {
var e = this._id;
return arguments.length ? this.each(zle(e, t)) : Hr(this.node(), e).ease;
}
function $le(t, e) {
return function () {
var r = e.apply(this, arguments);
if (typeof r != 'function') throw new Error();
un(this, t).ease = r;
};
}
function Vle(t) {
if (typeof t != 'function') throw new Error();
return this.each($le(this._id, t));
}
function Wle(t) {
typeof t != 'function' && (t = qb(t));
for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i)
for (var a = e[i], l = a.length, u = (n[i] = []), d, m = 0; m < l; ++m) (d = a[m]) && t.call(d, d.__data__, m, a) && u.push(d);
return new yn(n, this._parents, this._name, this._id);
}
function Kle(t) {
if (t._id !== this._id) throw new Error();
for (var e = this._groups, r = t._groups, n = e.length, i = r.length, a = Math.min(n, i), l = new Array(n), u = 0; u < a; ++u)
for (var d = e[u], m = r[u], p = d.length, E = (l[u] = new Array(p)), f, v = 0; v < p; ++v) (f = d[v] || m[v]) && (E[v] = f);
for (; u < n; ++u) l[u] = e[u];
return new yn(l, this._parents, this._name, this._id);
}
function Qle(t) {
return (t + '')
.trim()
.split(/^|\s+/)
.every(function (e) {
var r = e.indexOf('.');
return r >= 0 && (e = e.slice(0, r)), !e || e === 'start';
});
}
function Zle(t, e, r) {
var n,
i,
a = Qle(e) ? ym : un;
return function () {
var l = a(this, t),
u = l.on;
u !== n && (i = (n = u).copy()).on(e, r), (l.on = i);
};
}
function Xle(t, e) {
var r = this._id;
return arguments.length < 2 ? Hr(this.node(), r).on.on(t) : this.each(Zle(r, t, e));
}
function Jle(t) {
return function () {
var e = this.parentNode;
for (var r in this.__transition) if (+r !== t) return;
e && e.removeChild(this);
};
}
function jle() {
return this.on('end.remove', Jle(this._id));
}
function ece(t) {
var e = this._name,
r = this._id;
typeof t != 'function' && (t = Sm(t));
for (var n = this._groups, i = n.length, a = new Array(i), l = 0; l < i; ++l)
for (var u = n[l], d = u.length, m = (a[l] = new Array(d)), p, E, f = 0; f < d; ++f)
(p = u[f]) && (E = t.call(p, p.__data__, f, u)) && ('__data__' in p && (E.__data__ = p.__data__), (m[f] = E), Ss(m[f], e, r, f, m, Hr(p, r)));
return new yn(a, this._parents, e, r);
}
function tce(t) {
var e = this._name,
r = this._id;
typeof t != 'function' && (t = Gb(t));
for (var n = this._groups, i = n.length, a = [], l = [], u = 0; u < i; ++u)
for (var d = n[u], m = d.length, p, E = 0; E < m; ++E)
if ((p = d[E])) {
for (var f = t.call(p, p.__data__, E, d), v, R = Hr(p, r), O = 0, M = f.length; O < M; ++O) (v = f[O]) && Ss(v, e, r, O, f, R);
a.push(f), l.push(p);
}
return new yn(a, l, e, r);
}
var rce = Ma.prototype.constructor;
function nce() {
return new rce(this._groups, this._parents);
}
function ice(t, e) {
var r, n, i;
return function () {
var a = Oi(this, t),
l = (this.style.removeProperty(t), Oi(this, t));
return a === l ? null : a === r && l === n ? i : (i = e((r = a), (n = l)));
};
}
function lT(t) {
return function () {
this.style.removeProperty(t);
};
}
function ace(t, e, r) {
var n,
i = r + '',
a;
return function () {
var l = Oi(this, t);
return l === i ? null : l === n ? a : (a = e((n = l), r));
};
}
function oce(t, e, r) {
var n, i, a;
return function () {
var l = Oi(this, t),
u = r(this),
d = u + '';
return (
u == null && (d = u = (this.style.removeProperty(t), Oi(this, t))), l === d ? null : l === n && d === i ? a : ((i = d), (a = e((n = l), u)))
);
};
}
function sce(t, e) {
var r,
n,
i,
a = 'style.' + e,
l = 'end.' + a,
u;
return function () {
var d = un(this, t),
m = d.on,
p = d.value[a] == null ? u || (u = lT(e)) : void 0;
(m !== r || i !== p) && (n = (r = m).copy()).on(l, (i = p)), (d.on = n);
};
}
function lce(t, e, r) {
var n = (t += '') == 'transform' ? dle : sT;
return e == null
? this.styleTween(t, ice(t, n)).on('end.style.' + t, lT(t))
: typeof e == 'function'
? this.styleTween(t, oce(t, n, Rm(this, 'style.' + t, e))).each(sce(this._id, t))
: this.styleTween(t, ace(t, n, e), r).on('end.style.' + t, null);
}
function cce(t, e, r) {
return function (n) {
this.style.setProperty(t, e.call(this, n), r);
};
}
function uce(t, e, r) {
var n, i;
function a() {
var l = e.apply(this, arguments);
return l !== i && (n = (i = l) && cce(t, l, r)), n;
}
return (a._value = e), a;
}
function dce(t, e, r) {
var n = 'style.' + (t += '');
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
if (e == null) return this.tween(n, null);
if (typeof e != 'function') throw new Error();
return this.tween(n, uce(t, e, r ?? ''));
}
function _ce(t) {
return function () {
this.textContent = t;
};
}
function mce(t) {
return function () {
var e = t(this);
this.textContent = e ?? '';
};
}
function pce(t) {
return this.tween('text', typeof t == 'function' ? mce(Rm(this, 'text', t)) : _ce(t == null ? '' : t + ''));
}
function hce(t) {
return function (e) {
this.textContent = t.call(this, e);
};
}
function gce(t) {
var e, r;
function n() {
var i = t.apply(this, arguments);
return i !== r && (e = (r = i) && hce(i)), e;
}
return (n._value = t), n;
}
function fce(t) {
var e = 'text';
if (arguments.length < 1) return (e = this.tween(e)) && e._value;
if (t == null) return this.tween(e, null);
if (typeof t != 'function') throw new Error();
return this.tween(e, gce(t));
}
function Ece() {
for (var t = this._name, e = this._id, r = cT(), n = this._groups, i = n.length, a = 0; a < i; ++a)
for (var l = n[a], u = l.length, d, m = 0; m < u; ++m)
if ((d = l[m])) {
var p = Hr(d, e);
Ss(d, t, r, m, l, { time: p.time + p.delay + p.duration, delay: 0, duration: p.duration, ease: p.ease });
}
return new yn(n, this._parents, t, r);
}
function Sce() {
var t,
e,
r = this,
n = r._id,
i = r.size();
return new Promise(function (a, l) {
var u = { value: l },
d = {
value: function () {
--i === 0 && a();
},
};
r.each(function () {
var m = un(this, n),
p = m.on;
p !== t && ((e = (t = p).copy()), e._.cancel.push(u), e._.interrupt.push(u), e._.end.push(d)), (m.on = e);
}),
i === 0 && a();
});
}
var bce = 0;
function yn(t, e, r, n) {
(this._groups = t), (this._parents = e), (this._name = r), (this._id = n);
}
function cT() {
return ++bce;
}
var fn = Ma.prototype;
yn.prototype = {
constructor: yn,
select: ece,
selectAll: tce,
selectChild: fn.selectChild,
selectChildren: fn.selectChildren,
filter: Wle,
merge: Kle,
selection: nce,
transition: Ece,
call: fn.call,
nodes: fn.nodes,
node: fn.node,
size: fn.size,
empty: fn.empty,
each: fn.each,
on: Xle,
attr: Dle,
attrTween: Ple,
style: lce,
styleTween: dce,
text: pce,
textTween: fce,
remove: jle,
tween: yle,
delay: Ule,
duration: Yle,
ease: Hle,
easeVarying: Vle,
end: Sce,
[Symbol.iterator]: fn[Symbol.iterator],
};
function Tce(t) {
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
}
var vce = { time: null, delay: 0, duration: 250, ease: Tce };
function Cce(t, e) {
for (var r; !(r = t.__transition) || !(r = r[e]); ) if (!(t = t.parentNode)) throw new Error(`transition ${e} not found`);
return r;
}
function yce(t) {
var e, r;
t instanceof yn ? ((e = t._id), (t = t._name)) : ((e = cT()), ((r = vce).time = Cm()), (t = t == null ? null : t + ''));
for (var n = this._groups, i = n.length, a = 0; a < i; ++a)
for (var l = n[a], u = l.length, d, m = 0; m < u; ++m) (d = l[m]) && Ss(d, t, e, m, l, r || Cce(d, e));
return new yn(n, this._parents, t, e);
}
Ma.prototype.interrupt = Tle;
Ma.prototype.transition = yce;
const xTe = Math.abs,
DTe = Math.atan2,
wTe = Math.cos,
MTe = Math.max,
LTe = Math.min,
kTe = Math.sin,
PTe = Math.sqrt,
Ih = 1e-12,
Am = Math.PI,
xh = Am / 2,
BTe = 2 * Am;
function FTe(t) {
return t > 1 ? 0 : t < -1 ? Am : Math.acos(t);
}
function UTe(t) {
return t >= 1 ? xh : t <= -1 ? -xh : Math.asin(t);
}
function uT(t) {
this._context = t;
}
uT.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
this._point = 0;
},
lineEnd: function () {
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
(this._point = 1), this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
break;
case 1:
this._point = 2;
default:
this._context.lineTo(t, e);
break;
}
},
};
function Rce(t) {
return new uT(t);
}
class dT {
constructor(e, r) {
(this._context = e), (this._x = r);
}
areaStart() {
this._line = 0;
}
areaEnd() {
this._line = NaN;
}
lineStart() {
this._point = 0;
}
lineEnd() {
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(), (this._line = 1 - this._line);
}
point(e, r) {
switch (((e = +e), (r = +r), this._point)) {
case 0: {
(this._point = 1), this._line ? this._context.lineTo(e, r) : this._context.moveTo(e, r);
break;
}
case 1:
this._point = 2;
default: {
this._x
? this._context.bezierCurveTo((this._x0 = (this._x0 + e) / 2), this._y0, this._x0, r, e, r)
: this._context.bezierCurveTo(this._x0, (this._y0 = (this._y0 + r) / 2), e, this._y0, e, r);
break;
}
}
(this._x0 = e), (this._y0 = r);
}
}
function Ace(t) {
return new dT(t, !0);
}
function Nce(t) {
return new dT(t, !1);
}
function Un() {}
function Vo(t, e, r) {
t._context.bezierCurveTo(
(2 * t._x0 + t._x1) / 3,
(2 * t._y0 + t._y1) / 3,
(t._x0 + 2 * t._x1) / 3,
(t._y0 + 2 * t._y1) / 3,
(t._x0 + 4 * t._x1 + e) / 6,
(t._y0 + 4 * t._y1 + r) / 6
);
}
function bs(t) {
this._context = t;
}
bs.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._y0 = this._y1 = NaN), (this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 3:
Vo(this, this._x1, this._y1);
case 2:
this._context.lineTo(this._x1, this._y1);
break;
}
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
(this._point = 1), this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3), this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
default:
Vo(this, t, e);
break;
}
(this._x0 = this._x1), (this._x1 = t), (this._y0 = this._y1), (this._y1 = e);
},
};
function Oce(t) {
return new bs(t);
}
function _T(t) {
this._context = t;
}
_T.prototype = {
areaStart: Un,
areaEnd: Un,
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN), (this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 1: {
this._context.moveTo(this._x2, this._y2), this._context.closePath();
break;
}
case 2: {
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3),
this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3),
this._context.closePath();
break;
}
case 3: {
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
break;
}
}
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
(this._point = 1), (this._x2 = t), (this._y2 = e);
break;
case 1:
(this._point = 2), (this._x3 = t), (this._y3 = e);
break;
case 2:
(this._point = 3), (this._x4 = t), (this._y4 = e), this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + e) / 6);
break;
default:
Vo(this, t, e);
break;
}
(this._x0 = this._x1), (this._x1 = t), (this._y0 = this._y1), (this._y1 = e);
},
};
function Ice(t) {
return new _T(t);
}
function mT(t) {
this._context = t;
}
mT.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._y0 = this._y1 = NaN), (this._point = 0);
},
lineEnd: function () {
(this._line || (this._line !== 0 && this._point === 3)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
this._point = 1;
break;
case 1:
this._point = 2;
break;
case 2:
this._point = 3;
var r = (this._x0 + 4 * this._x1 + t) / 6,
n = (this._y0 + 4 * this._y1 + e) / 6;
this._line ? this._context.lineTo(r, n) : this._context.moveTo(r, n);
break;
case 3:
this._point = 4;
default:
Vo(this, t, e);
break;
}
(this._x0 = this._x1), (this._x1 = t), (this._y0 = this._y1), (this._y1 = e);
},
};
function xce(t) {
return new mT(t);
}
function pT(t, e) {
(this._basis = new bs(t)), (this._beta = e);
}
pT.prototype = {
lineStart: function () {
(this._x = []), (this._y = []), this._basis.lineStart();
},
lineEnd: function () {
var t = this._x,
e = this._y,
r = t.length - 1;
if (r > 0)
for (var n = t[0], i = e[0], a = t[r] - n, l = e[r] - i, u = -1, d; ++u <= r; )
(d = u / r), this._basis.point(this._beta * t[u] + (1 - this._beta) * (n + d * a), this._beta * e[u] + (1 - this._beta) * (i + d * l));
(this._x = this._y = null), this._basis.lineEnd();
},
point: function (t, e) {
this._x.push(+t), this._y.push(+e);
},
};
const Dce = (function t(e) {
function r(n) {
return e === 1 ? new bs(n) : new pT(n, e);
}
return (
(r.beta = function (n) {
return t(+n);
}),
r
);
})(0.85);
function Wo(t, e, r) {
t._context.bezierCurveTo(
t._x1 + t._k * (t._x2 - t._x0),
t._y1 + t._k * (t._y2 - t._y0),
t._x2 + t._k * (t._x1 - e),
t._y2 + t._k * (t._y1 - r),
t._x2,
t._y2
);
}
function Nm(t, e) {
(this._context = t), (this._k = (1 - e) / 6);
}
Nm.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN), (this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 2:
this._context.lineTo(this._x2, this._y2);
break;
case 3:
Wo(this, this._x1, this._y1);
break;
}
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
(this._point = 1), this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
break;
case 1:
(this._point = 2), (this._x1 = t), (this._y1 = e);
break;
case 2:
this._point = 3;
default:
Wo(this, t, e);
break;
}
(this._x0 = this._x1), (this._x1 = this._x2), (this._x2 = t), (this._y0 = this._y1), (this._y1 = this._y2), (this._y2 = e);
},
};
const wce = (function t(e) {
function r(n) {
return new Nm(n, e);
}
return (
(r.tension = function (n) {
return t(+n);
}),
r
);
})(0);
function Om(t, e) {
(this._context = t), (this._k = (1 - e) / 6);
}
Om.prototype = {
areaStart: Un,
areaEnd: Un,
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN),
(this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 1: {
this._context.moveTo(this._x3, this._y3), this._context.closePath();
break;
}
case 2: {
this._context.lineTo(this._x3, this._y3), this._context.closePath();
break;
}
case 3: {
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
break;
}
}
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
(this._point = 1), (this._x3 = t), (this._y3 = e);
break;
case 1:
(this._point = 2), this._context.moveTo((this._x4 = t), (this._y4 = e));
break;
case 2:
(this._point = 3), (this._x5 = t), (this._y5 = e);
break;
default:
Wo(this, t, e);
break;
}
(this._x0 = this._x1), (this._x1 = this._x2), (this._x2 = t), (this._y0 = this._y1), (this._y1 = this._y2), (this._y2 = e);
},
};
const Mce = (function t(e) {
function r(n) {
return new Om(n, e);
}
return (
(r.tension = function (n) {
return t(+n);
}),
r
);
})(0);
function Im(t, e) {
(this._context = t), (this._k = (1 - e) / 6);
}
Im.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN), (this._point = 0);
},
lineEnd: function () {
(this._line || (this._line !== 0 && this._point === 3)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
this._point = 1;
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3), this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
break;
case 3:
this._point = 4;
default:
Wo(this, t, e);
break;
}
(this._x0 = this._x1), (this._x1 = this._x2), (this._x2 = t), (this._y0 = this._y1), (this._y1 = this._y2), (this._y2 = e);
},
};
const Lce = (function t(e) {
function r(n) {
return new Im(n, e);
}
return (
(r.tension = function (n) {
return t(+n);
}),
r
);
})(0);
function xm(t, e, r) {
var n = t._x1,
i = t._y1,
a = t._x2,
l = t._y2;
if (t._l01_a > Ih) {
var u = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a,
d = 3 * t._l01_a * (t._l01_a + t._l12_a);
(n = (n * u - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / d), (i = (i * u - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / d);
}
if (t._l23_a > Ih) {
var m = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a,
p = 3 * t._l23_a * (t._l23_a + t._l12_a);
(a = (a * m + t._x1 * t._l23_2a - e * t._l12_2a) / p), (l = (l * m + t._y1 * t._l23_2a - r * t._l12_2a) / p);
}
t._context.bezierCurveTo(n, i, a, l, t._x2, t._y2);
}
function hT(t, e) {
(this._context = t), (this._alpha = e);
}
hT.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN),
(this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 2:
this._context.lineTo(this._x2, this._y2);
break;
case 3:
this.point(this._x2, this._y2);
break;
}
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
if (((t = +t), (e = +e), this._point)) {
var r = this._x2 - t,
n = this._y2 - e;
this._l23_a = Math.sqrt((this._l23_2a = Math.pow(r * r + n * n, this._alpha)));
}
switch (this._point) {
case 0:
(this._point = 1), this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
break;
case 1:
this._point = 2;
break;
case 2:
this._point = 3;
default:
xm(this, t, e);
break;
}
(this._l01_a = this._l12_a),
(this._l12_a = this._l23_a),
(this._l01_2a = this._l12_2a),
(this._l12_2a = this._l23_2a),
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = t),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = e);
},
};
const kce = (function t(e) {
function r(n) {
return e ? new hT(n, e) : new Nm(n, 0);
}
return (
(r.alpha = function (n) {
return t(+n);
}),
r
);
})(0.5);
function gT(t, e) {
(this._context = t), (this._alpha = e);
}
gT.prototype = {
areaStart: Un,
areaEnd: Un,
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN),
(this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 1: {
this._context.moveTo(this._x3, this._y3), this._context.closePath();
break;
}
case 2: {
this._context.lineTo(this._x3, this._y3), this._context.closePath();
break;
}
case 3: {
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
break;
}
}
},
point: function (t, e) {
if (((t = +t), (e = +e), this._point)) {
var r = this._x2 - t,
n = this._y2 - e;
this._l23_a = Math.sqrt((this._l23_2a = Math.pow(r * r + n * n, this._alpha)));
}
switch (this._point) {
case 0:
(this._point = 1), (this._x3 = t), (this._y3 = e);
break;
case 1:
(this._point = 2), this._context.moveTo((this._x4 = t), (this._y4 = e));
break;
case 2:
(this._point = 3), (this._x5 = t), (this._y5 = e);
break;
default:
xm(this, t, e);
break;
}
(this._l01_a = this._l12_a),
(this._l12_a = this._l23_a),
(this._l01_2a = this._l12_2a),
(this._l12_2a = this._l23_2a),
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = t),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = e);
},
};
const Pce = (function t(e) {
function r(n) {
return e ? new gT(n, e) : new Om(n, 0);
}
return (
(r.alpha = function (n) {
return t(+n);
}),
r
);
})(0.5);
function fT(t, e) {
(this._context = t), (this._alpha = e);
}
fT.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN),
(this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0);
},
lineEnd: function () {
(this._line || (this._line !== 0 && this._point === 3)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
if (((t = +t), (e = +e), this._point)) {
var r = this._x2 - t,
n = this._y2 - e;
this._l23_a = Math.sqrt((this._l23_2a = Math.pow(r * r + n * n, this._alpha)));
}
switch (this._point) {
case 0:
this._point = 1;
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3), this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
break;
case 3:
this._point = 4;
default:
xm(this, t, e);
break;
}
(this._l01_a = this._l12_a),
(this._l12_a = this._l23_a),
(this._l01_2a = this._l12_2a),
(this._l12_2a = this._l23_2a),
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = t),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = e);
},
};
const Bce = (function t(e) {
function r(n) {
return e ? new fT(n, e) : new Im(n, 0);
}
return (
(r.alpha = function (n) {
return t(+n);
}),
r
);
})(0.5);
function ET(t) {
this._context = t;
}
ET.prototype = {
areaStart: Un,
areaEnd: Un,
lineStart: function () {
this._point = 0;
},
lineEnd: function () {
this._point && this._context.closePath();
},
point: function (t, e) {
(t = +t), (e = +e), this._point ? this._context.lineTo(t, e) : ((this._point = 1), this._context.moveTo(t, e));
},
};
function Fce(t) {
return new ET(t);
}
function Dh(t) {
return t < 0 ? -1 : 1;
}
function wh(t, e, r) {
var n = t._x1 - t._x0,
i = e - t._x1,
a = (t._y1 - t._y0) / (n || (i < 0 && -0)),
l = (r - t._y1) / (i || (n < 0 && -0)),
u = (a * i + l * n) / (n + i);
return (Dh(a) + Dh(l)) * Math.min(Math.abs(a), Math.abs(l), 0.5 * Math.abs(u)) || 0;
}
function Mh(t, e) {
var r = t._x1 - t._x0;
return r ? ((3 * (t._y1 - t._y0)) / r - e) / 2 : e;
}
function Gl(t, e, r) {
var n = t._x0,
i = t._y0,
a = t._x1,
l = t._y1,
u = (a - n) / 3;
t._context.bezierCurveTo(n + u, i + u * e, a - u, l - u * r, a, l);
}
function Ko(t) {
this._context = t;
}
Ko.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN), (this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
case 3:
Gl(this, this._t0, Mh(this, this._t0));
break;
}
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(), (this._line = 1 - this._line);
},
point: function (t, e) {
var r = NaN;
if (((t = +t), (e = +e), !(t === this._x1 && e === this._y1))) {
switch (this._point) {
case 0:
(this._point = 1), this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3), Gl(this, Mh(this, (r = wh(this, t, e))), r);
break;
default:
Gl(this, this._t0, (r = wh(this, t, e)));
break;
}
(this._x0 = this._x1), (this._x1 = t), (this._y0 = this._y1), (this._y1 = e), (this._t0 = r);
}
},
};
function ST(t) {
this._context = new bT(t);
}
(ST.prototype = Object.create(Ko.prototype)).point = function (t, e) {
Ko.prototype.point.call(this, e, t);
};
function bT(t) {
this._context = t;
}
bT.prototype = {
moveTo: function (t, e) {
this._context.moveTo(e, t);
},
closePath: function () {
this._context.closePath();
},
lineTo: function (t, e) {
this._context.lineTo(e, t);
},
bezierCurveTo: function (t, e, r, n, i, a) {
this._context.bezierCurveTo(e, t, n, r, a, i);
},
};
function Uce(t) {
return new Ko(t);
}
function Gce(t) {
return new ST(t);
}
function TT(t) {
this._context = t;
}
TT.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x = []), (this._y = []);
},
lineEnd: function () {
var t = this._x,
e = this._y,
r = t.length;
if (r)
if ((this._line ? this._context.lineTo(t[0], e[0]) : this._context.moveTo(t[0], e[0]), r === 2)) this._context.lineTo(t[1], e[1]);
else for (var n = Lh(t), i = Lh(e), a = 0, l = 1; l < r; ++a, ++l) this._context.bezierCurveTo(n[0][a], i[0][a], n[1][a], i[1][a], t[l], e[l]);
(this._line || (this._line !== 0 && r === 1)) && this._context.closePath(), (this._line = 1 - this._line), (this._x = this._y = null);
},
point: function (t, e) {
this._x.push(+t), this._y.push(+e);
},
};
function Lh(t) {
var e,
r = t.length - 1,
n,
i = new Array(r),
a = new Array(r),
l = new Array(r);
for (i[0] = 0, a[0] = 2, l[0] = t[0] + 2 * t[1], e = 1; e < r - 1; ++e) (i[e] = 1), (a[e] = 4), (l[e] = 4 * t[e] + 2 * t[e + 1]);
for (i[r - 1] = 2, a[r - 1] = 7, l[r - 1] = 8 * t[r - 1] + t[r], e = 1; e < r; ++e) (n = i[e] / a[e - 1]), (a[e] -= n), (l[e] -= n * l[e - 1]);
for (i[r - 1] = l[r - 1] / a[r - 1], e = r - 2; e >= 0; --e) i[e] = (l[e] - i[e + 1]) / a[e];
for (a[r - 1] = (t[r] + i[r - 1]) / 2, e = 0; e < r - 1; ++e) a[e] = 2 * t[e + 1] - i[e + 1];
return [i, a];
}
function qce(t) {
return new TT(t);
}
function Ts(t, e) {
(this._context = t), (this._t = e);
}
Ts.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x = this._y = NaN), (this._point = 0);
},
lineEnd: function () {
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y),
(this._line || (this._line !== 0 && this._point === 1)) && this._context.closePath(),
this._line >= 0 && ((this._t = 1 - this._t), (this._line = 1 - this._line));
},
point: function (t, e) {
switch (((t = +t), (e = +e), this._point)) {
case 0:
(this._point = 1), this._line ? this._context.lineTo(t, e) : this._context.moveTo(t, e);
break;
case 1:
this._point = 2;
default: {
if (this._t <= 0) this._context.lineTo(this._x, e), this._context.lineTo(t, e);
else {
var r = this._x * (1 - this._t) + t * this._t;
this._context.lineTo(r, this._y), this._context.lineTo(r, e);
}
break;
}
}
(this._x = t), (this._y = e);
},
};
function Yce(t) {
return new Ts(t, 0.5);
}
function zce(t) {
return new Ts(t, 0);
}
function Hce(t) {
return new Ts(t, 1);
}
function ca(t, e, r) {
(this.k = t), (this.x = e), (this.y = r);
}
ca.prototype = {
constructor: ca,
scale: function (t) {
return t === 1 ? this : new ca(this.k * t, this.x, this.y);
},
translate: function (t, e) {
return (t === 0) & (e === 0) ? this : new ca(this.k, this.x + this.k * t, this.y + this.k * e);
},
apply: function (t) {
return [t[0] * this.k + this.x, t[1] * this.k + this.y];
},
applyX: function (t) {
return t * this.k + this.x;
},
applyY: function (t) {
return t * this.k + this.y;
},
invert: function (t) {
return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k];
},
invertX: function (t) {
return (t - this.x) / this.k;
},
invertY: function (t) {
return (t - this.y) / this.k;
},
rescaleX: function (t) {
return t.copy().domain(t.range().map(this.invertX, this).map(t.invert, t));
},
rescaleY: function (t) {
return t.copy().domain(t.range().map(this.invertY, this).map(t.invert, t));
},
toString: function () {
return 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')';
},
};
ca.prototype;
/*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */ const {
entries: vT,
setPrototypeOf: kh,
isFrozen: $ce,
getPrototypeOf: Vce,
getOwnPropertyDescriptor: Wce,
} = Object;
let { freeze: ar, seal: wr, create: CT } = Object,
{ apply: V_, construct: W_ } = typeof Reflect < 'u' && Reflect;
ar ||
(ar = function (e) {
return e;
});
wr ||
(wr = function (e) {
return e;
});
V_ ||
(V_ = function (e, r, n) {
return e.apply(r, n);
});
W_ ||
(W_ = function (e, r) {
return new e(...r);
});
const mo = Tr(Array.prototype.forEach),
Ph = Tr(Array.prototype.pop),
na = Tr(Array.prototype.push),
Ao = Tr(String.prototype.toLowerCase),
ql = Tr(String.prototype.toString),
Bh = Tr(String.prototype.match),
ia = Tr(String.prototype.replace),
Kce = Tr(String.prototype.indexOf),
Qce = Tr(String.prototype.trim),
Fr = Tr(Object.prototype.hasOwnProperty),
tr = Tr(RegExp.prototype.test),
aa = Zce(TypeError);
function Tr(t) {
return function (e) {
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i];
return V_(t, e, n);
};
}
function Zce(t) {
return function () {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
return W_(t, r);
};
}
function rt(t, e) {
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ao;
kh && kh(t, null);
let n = e.length;
for (; n--; ) {
let i = e[n];
if (typeof i == 'string') {
const a = r(i);
a !== i && ($ce(e) || (e[n] = a), (i = a));
}
t[i] = !0;
}
return t;
}
function Xce(t) {
for (let e = 0; e < t.length; e++) Fr(t, e) || (t[e] = null);
return t;
}
function Vn(t) {
const e = CT(null);
for (const [r, n] of vT(t))
Fr(t, r) && (Array.isArray(n) ? (e[r] = Xce(n)) : n && typeof n == 'object' && n.constructor === Object ? (e[r] = Vn(n)) : (e[r] = n));
return e;
}
function po(t, e) {
for (; t !== null; ) {
const n = Wce(t, e);
if (n) {
if (n.get) return Tr(n.get);
if (typeof n.value == 'function') return Tr(n.value);
}
t = Vce(t);
}
function r() {
return null;
}
return r;
}
const Fh = ar([
'a',
'abbr',
'acronym',
'address',
'area',
'article',
'aside',
'audio',
'b',
'bdi',
'bdo',
'big',
'blink',
'blockquote',
'body',
'br',
'button',
'canvas',
'caption',
'center',
'cite',
'code',
'col',
'colgroup',
'content',
'data',
'datalist',
'dd',
'decorator',
'del',
'details',
'dfn',
'dialog',
'dir',
'div',
'dl',
'dt',
'element',
'em',
'fieldset',
'figcaption',
'figure',
'font',
'footer',
'form',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'head',
'header',
'hgroup',
'hr',
'html',
'i',
'img',
'input',
'ins',
'kbd',
'label',
'legend',
'li',
'main',
'map',
'mark',
'marquee',
'menu',
'menuitem',
'meter',
'nav',
'nobr',
'ol',
'optgroup',
'option',
'output',
'p',
'picture',
'pre',
'progress',
'q',
'rp',
'rt',
'ruby',
's',
'samp',
'section',
'select',
'shadow',
'small',
'source',
'spacer',
'span',
'strike',
'strong',
'style',
'sub',
'summary',
'sup',
'table',
'tbody',
'td',
'template',
'textarea',
'tfoot',
'th',
'thead',
'time',
'tr',
'track',
'tt',
'u',
'ul',
'var',
'video',
'wbr',
]),
Yl = ar([
'svg',
'a',
'altglyph',
'altglyphdef',
'altglyphitem',
'animatecolor',
'animatemotion',
'animatetransform',
'circle',
'clippath',
'defs',
'desc',
'ellipse',
'filter',
'font',
'g',
'glyph',
'glyphref',
'hkern',
'image',
'line',
'lineargradient',
'marker',
'mask',
'metadata',
'mpath',
'path',
'pattern',
'polygon',
'polyline',
'radialgradient',
'rect',
'stop',
'style',
'switch',
'symbol',
'text',
'textpath',
'title',
'tref',
'tspan',
'view',
'vkern',
]),
zl = ar([
'feBlend',
'feColorMatrix',
'feComponentTransfer',
'feComposite',
'feConvolveMatrix',
'feDiffuseLighting',
'feDisplacementMap',
'feDistantLight',
'feDropShadow',
'feFlood',
'feFuncA',
'feFuncB',
'feFuncG',
'feFuncR',
'feGaussianBlur',
'feImage',
'feMerge',
'feMergeNode',
'feMorphology',
'feOffset',
'fePointLight',
'feSpecularLighting',
'feSpotLight',
'feTile',
'feTurbulence',
]),
Jce = ar([
'animate',
'color-profile',
'cursor',
'discard',
'font-face',
'font-face-format',
'font-face-name',
'font-face-src',
'font-face-uri',
'foreignobject',
'hatch',
'hatchpath',
'mesh',
'meshgradient',
'meshpatch',
'meshrow',
'missing-glyph',
'script',
'set',
'solidcolor',
'unknown',
'use',
]),
Hl = ar([
'math',
'menclose',
'merror',
'mfenced',
'mfrac',
'mglyph',
'mi',
'mlabeledtr',
'mmultiscripts',
'mn',
'mo',
'mover',
'mpadded',
'mphantom',
'mroot',
'mrow',
'ms',
'mspace',
'msqrt',
'mstyle',
'msub',
'msup',
'msubsup',
'mtable',
'mtd',
'mtext',
'mtr',
'munder',
'munderover',
'mprescripts',
]),
jce = ar([
'maction',
'maligngroup',
'malignmark',
'mlongdiv',
'mscarries',
'mscarry',
'msgroup',
'mstack',
'msline',
'msrow',
'semantics',
'annotation',
'annotation-xml',
'mprescripts',
'none',
]),
Uh = ar(['#text']),
Gh = ar([
'accept',
'action',
'align',
'alt',
'autocapitalize',
'autocomplete',
'autopictureinpicture',
'autoplay',
'background',
'bgcolor',
'border',
'capture',
'cellpadding',
'cellspacing',
'checked',
'cite',
'class',
'clear',
'color',
'cols',
'colspan',
'controls',
'controlslist',
'coords',
'crossorigin',
'datetime',
'decoding',
'default',
'dir',
'disabled',
'disablepictureinpicture',
'disableremoteplayback',
'download',
'draggable',
'enctype',
'enterkeyhint',
'face',
'for',
'headers',
'height',
'hidden',
'high',
'href',
'hreflang',
'id',
'inputmode',
'integrity',
'ismap',
'kind',
'label',
'lang',
'list',
'loading',
'loop',
'low',
'max',
'maxlength',
'media',
'method',
'min',
'minlength',
'multiple',
'muted',
'name',
'nonce',
'noshade',
'novalidate',
'nowrap',
'open',
'optimum',
'pattern',
'placeholder',
'playsinline',
'popover',
'popovertarget',
'popovertargetaction',
'poster',
'preload',
'pubdate',
'radiogroup',
'readonly',
'rel',
'required',
'rev',
'reversed',
'role',
'rows',
'rowspan',
'spellcheck',
'scope',
'selected',
'shape',
'size',
'sizes',
'span',
'srclang',
'start',
'src',
'srcset',
'step',
'style',
'summary',
'tabindex',
'title',
'translate',
'type',
'usemap',
'valign',
'value',
'width',
'wrap',
'xmlns',
'slot',
]),
$l = ar([
'accent-height',
'accumulate',
'additive',
'alignment-baseline',
'ascent',
'attributename',
'attributetype',
'azimuth',
'basefrequency',
'baseline-shift',
'begin',
'bias',
'by',
'class',
'clip',
'clippathunits',
'clip-path',
'clip-rule',
'color',
'color-interpolation',
'color-interpolation-filters',
'color-profile',
'color-rendering',
'cx',
'cy',
'd',
'dx',
'dy',
'diffuseconstant',
'direction',
'display',
'divisor',
'dur',
'edgemode',
'elevation',
'end',
'fill',
'fill-opacity',
'fill-rule',
'filter',
'filterunits',
'flood-color',
'flood-opacity',
'font-family',
'font-size',
'font-size-adjust',
'font-stretch',
'font-style',
'font-variant',
'font-weight',
'fx',
'fy',
'g1',
'g2',
'glyph-name',
'glyphref',
'gradientunits',
'gradienttransform',
'height',
'href',
'id',
'image-rendering',
'in',
'in2',
'k',
'k1',
'k2',
'k3',
'k4',
'kerning',
'keypoints',
'keysplines',
'keytimes',
'lang',
'lengthadjust',
'letter-spacing',
'kernelmatrix',
'kernelunitlength',
'lighting-color',
'local',
'marker-end',
'marker-mid',
'marker-start',
'markerheight',
'markerunits',
'markerwidth',
'maskcontentunits',
'maskunits',
'max',
'mask',
'media',
'method',
'mode',
'min',
'name',
'numoctaves',
'offset',
'operator',
'opacity',
'order',
'orient',
'orientation',
'origin',
'overflow',
'paint-order',
'path',
'pathlength',
'patterncontentunits',
'patterntransform',
'patternunits',
'points',
'preservealpha',
'preserveaspectratio',
'primitiveunits',
'r',
'rx',
'ry',
'radius',
'refx',
'refy',
'repeatcount',
'repeatdur',
'restart',
'result',
'rotate',
'scale',
'seed',
'shape-rendering',
'specularconstant',
'specularexponent',
'spreadmethod',
'startoffset',
'stddeviation',
'stitchtiles',
'stop-color',
'stop-opacity',
'stroke-dasharray',
'stroke-dashoffset',
'stroke-linecap',
'stroke-linejoin',
'stroke-miterlimit',
'stroke-opacity',
'stroke',
'stroke-width',
'style',
'surfacescale',
'systemlanguage',
'tabindex',
'targetx',
'targety',
'transform',
'transform-origin',
'text-anchor',
'text-decoration',
'text-rendering',
'textlength',
'type',
'u1',
'u2',
'unicode',
'values',
'viewbox',
'visibility',
'version',
'vert-adv-y',
'vert-origin-x',
'vert-origin-y',
'width',
'word-spacing',
'wrap',
'writing-mode',
'xchannelselector',
'ychannelselector',
'x',
'x1',
'x2',
'xmlns',
'y',
'y1',
'y2',
'z',
'zoomandpan',
]),
qh = ar([
'accent',
'accentunder',
'align',
'bevelled',
'close',
'columnsalign',
'columnlines',
'columnspan',
'denomalign',
'depth',
'dir',
'display',
'displaystyle',
'encoding',
'fence',
'frame',
'height',
'href',
'id',
'largeop',
'length',
'linethickness',
'lspace',
'lquote',
'mathbackground',
'mathcolor',
'mathsize',
'mathvariant',
'maxsize',
'minsize',
'movablelimits',
'notation',
'numalign',
'open',
'rowalign',
'rowlines',
'rowspacing',
'rowspan',
'rspace',
'rquote',
'scriptlevel',
'scriptminsize',
'scriptsizemultiplier',
'selection',
'separator',
'separators',
'stretchy',
'subscriptshift',
'supscriptshift',
'symmetric',
'voffset',
'width',
'xmlns',
]),
ho = ar(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']),
eue = wr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),
tue = wr(/<%[\w\W]*|[\w\W]*%>/gm),
rue = wr(/\${[\w\W]*}/gm),
nue = wr(/^data-[\-\w.\u00B7-\uFFFF]/),
iue = wr(/^aria-[\-\w]+$/),
yT = wr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),
aue = wr(/^(?:\w+script|data):/i),
oue = wr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),
RT = wr(/^html$/i),
sue = wr(/^[a-z][.\w]*(-[.\w]+)+$/i);
var Yh = Object.freeze({
__proto__: null,
MUSTACHE_EXPR: eue,
ERB_EXPR: tue,
TMPLIT_EXPR: rue,
DATA_ATTR: nue,
ARIA_ATTR: iue,
IS_ALLOWED_URI: yT,
IS_SCRIPT_OR_DATA: aue,
ATTR_WHITESPACE: oue,
DOCTYPE_NAME: RT,
CUSTOM_ELEMENT: sue,
});
const oa = {
element: 1,
attribute: 2,
text: 3,
cdataSection: 4,
entityReference: 5,
entityNode: 6,
progressingInstruction: 7,
comment: 8,
document: 9,
documentType: 10,
documentFragment: 11,
notation: 12,
},
lue = function () {
return typeof window > 'u' ? null : window;
},
cue = function (e, r) {
if (typeof e != 'object' || typeof e.createPolicy != 'function') return null;
let n = null;
const i = 'data-tt-policy-suffix';
r && r.hasAttribute(i) && (n = r.getAttribute(i));
const a = 'dompurify' + (n ? '#' + n : '');
try {
return e.createPolicy(a, {
createHTML(l) {
return l;
},
createScriptURL(l) {
return l;
},
});
} catch {
return console.warn('TrustedTypes policy ' + a + ' could not be created.'), null;
}
};
function AT() {
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lue();
const e = (Ee) => AT(Ee);
if (((e.version = '3.1.5'), (e.removed = []), !t || !t.document || t.document.nodeType !== oa.document)) return (e.isSupported = !1), e;
let { document: r } = t;
const n = r,
i = n.currentScript,
{
DocumentFragment: a,
HTMLTemplateElement: l,
Node: u,
Element: d,
NodeFilter: m,
NamedNodeMap: p = t.NamedNodeMap || t.MozNamedAttrMap,
HTMLFormElement: E,
DOMParser: f,
trustedTypes: v,
} = t,
R = d.prototype,
O = po(R, 'cloneNode'),
M = po(R, 'nextSibling'),
w = po(R, 'childNodes'),
D = po(R, 'parentNode');
if (typeof l == 'function') {
const Ee = r.createElement('template');
Ee.content && Ee.content.ownerDocument && (r = Ee.content.ownerDocument);
}
let F,
Y = '';
const { implementation: z, createNodeIterator: G, createDocumentFragment: X, getElementsByTagName: ne } = r,
{ importNode: ce } = n;
let j = {};
e.isSupported = typeof vT == 'function' && typeof D == 'function' && z && z.createHTMLDocument !== void 0;
const {
MUSTACHE_EXPR: Q,
ERB_EXPR: Ae,
TMPLIT_EXPR: Oe,
DATA_ATTR: H,
ARIA_ATTR: re,
IS_SCRIPT_OR_DATA: P,
ATTR_WHITESPACE: K,
CUSTOM_ELEMENT: Z,
} = Yh;
let { IS_ALLOWED_URI: se } = Yh,
le = null;
const ae = rt({}, [...Fh, ...Yl, ...zl, ...Hl, ...Uh]);
let ye = null;
const ze = rt({}, [...Gh, ...$l, ...qh, ...ho]);
let te = Object.seal(
CT(null, {
tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null },
attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null },
allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 },
})
),
be = null,
De = null,
we = !0,
We = !0,
je = !1,
Ze = !0,
Ke = !1,
pt = !0,
ht = !1,
xt = !1,
fe = !1,
Le = !1,
ge = !1,
xe = !1,
ke = !0,
Ne = !1;
const Et = 'user-content-';
let vt = !0,
Ft = !1,
Mt = {},
me = null;
const ve = rt({}, [
'annotation-xml',
'audio',
'colgroup',
'desc',
'foreignobject',
'head',
'iframe',
'math',
'mi',
'mn',
'mo',
'ms',
'mtext',
'noembed',
'noframes',
'noscript',
'plaintext',
'script',
'style',
'svg',
'template',
'thead',
'title',
'video',
'xmp',
]);
let qe = null;
const Qe = rt({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
let it = null;
const qt = rt({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']),
or = 'http://www.w3.org/1998/Math/MathML',
vr = 'http://www.w3.org/2000/svg',
et = 'http://www.w3.org/1999/xhtml';
let nt = et,
_e = !1,
Vt = null;
const ni = rt({}, [or, vr, et], ql);
let $r = null;
const ii = ['application/xhtml+xml', 'text/html'],
dn = 'text/html';
let yt = null,
Vr = null;
const qi = r.createElement('form'),
Yt = function (U) {
return U instanceof RegExp || U instanceof Function;
},
jt = function () {
let U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
if (!(Vr && Vr === U)) {
if (
((!U || typeof U != 'object') && (U = {}),
(U = Vn(U)),
($r = ii.indexOf(U.PARSER_MEDIA_TYPE) === -1 ? dn : U.PARSER_MEDIA_TYPE),
(yt = $r === 'application/xhtml+xml' ? ql : Ao),
(le = Fr(U, 'ALLOWED_TAGS') ? rt({}, U.ALLOWED_TAGS, yt) : ae),
(ye = Fr(U, 'ALLOWED_ATTR') ? rt({}, U.ALLOWED_ATTR, yt) : ze),
(Vt = Fr(U, 'ALLOWED_NAMESPACES') ? rt({}, U.ALLOWED_NAMESPACES, ql) : ni),
(it = Fr(U, 'ADD_URI_SAFE_ATTR') ? rt(Vn(qt), U.ADD_URI_SAFE_ATTR, yt) : qt),
(qe = Fr(U, 'ADD_DATA_URI_TAGS') ? rt(Vn(Qe), U.ADD_DATA_URI_TAGS, yt) : Qe),
(me = Fr(U, 'FORBID_CONTENTS') ? rt({}, U.FORBID_CONTENTS, yt) : ve),
(be = Fr(U, 'FORBID_TAGS') ? rt({}, U.FORBID_TAGS, yt) : {}),
(De = Fr(U, 'FORBID_ATTR') ? rt({}, U.FORBID_ATTR, yt) : {}),
(Mt = Fr(U, 'USE_PROFILES') ? U.USE_PROFILES : !1),
(we = U.ALLOW_ARIA_ATTR !== !1),
(We = U.ALLOW_DATA_ATTR !== !1),
(je = U.ALLOW_UNKNOWN_PROTOCOLS || !1),
(Ze = U.ALLOW_SELF_CLOSE_IN_ATTR !== !1),
(Ke = U.SAFE_FOR_TEMPLATES || !1),
(pt = U.SAFE_FOR_XML !== !1),
(ht = U.WHOLE_DOCUMENT || !1),
(Le = U.RETURN_DOM || !1),
(ge = U.RETURN_DOM_FRAGMENT || !1),
(xe = U.RETURN_TRUSTED_TYPE || !1),
(fe = U.FORCE_BODY || !1),
(ke = U.SANITIZE_DOM !== !1),
(Ne = U.SANITIZE_NAMED_PROPS || !1),
(vt = U.KEEP_CONTENT !== !1),
(Ft = U.IN_PLACE || !1),
(se = U.ALLOWED_URI_REGEXP || yT),
(nt = U.NAMESPACE || et),
(te = U.CUSTOM_ELEMENT_HANDLING || {}),
U.CUSTOM_ELEMENT_HANDLING && Yt(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (te.tagNameCheck = U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),
U.CUSTOM_ELEMENT_HANDLING &&
Yt(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) &&
(te.attributeNameCheck = U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),
U.CUSTOM_ELEMENT_HANDLING &&
typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == 'boolean' &&
(te.allowCustomizedBuiltInElements = U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),
Ke && (We = !1),
ge && (Le = !0),
Mt &&
((le = rt({}, Uh)),
(ye = []),
Mt.html === !0 && (rt(le, Fh), rt(ye, Gh)),
Mt.svg === !0 && (rt(le, Yl), rt(ye, $l), rt(ye, ho)),
Mt.svgFilters === !0 && (rt(le, zl), rt(ye, $l), rt(ye, ho)),
Mt.mathMl === !0 && (rt(le, Hl), rt(ye, qh), rt(ye, ho))),
U.ADD_TAGS && (le === ae && (le = Vn(le)), rt(le, U.ADD_TAGS, yt)),
U.ADD_ATTR && (ye === ze && (ye = Vn(ye)), rt(ye, U.ADD_ATTR, yt)),
U.ADD_URI_SAFE_ATTR && rt(it, U.ADD_URI_SAFE_ATTR, yt),
U.FORBID_CONTENTS && (me === ve && (me = Vn(me)), rt(me, U.FORBID_CONTENTS, yt)),
vt && (le['#text'] = !0),
ht && rt(le, ['html', 'head', 'body']),
le.table && (rt(le, ['tbody']), delete be.tbody),
U.TRUSTED_TYPES_POLICY)
) {
if (typeof U.TRUSTED_TYPES_POLICY.createHTML != 'function')
throw aa('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
if (typeof U.TRUSTED_TYPES_POLICY.createScriptURL != 'function')
throw aa('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
(F = U.TRUSTED_TYPES_POLICY), (Y = F.createHTML(''));
} else F === void 0 && (F = cue(v, i)), F !== null && typeof Y == 'string' && (Y = F.createHTML(''));
ar && ar(U), (Vr = U);
}
},
mr = rt({}, ['mi', 'mo', 'mn', 'ms', 'mtext']),
Rn = rt({}, ['foreignobject', 'annotation-xml']),
ai = rt({}, ['title', 'style', 'font', 'a', 'script']),
oi = rt({}, [...Yl, ...zl, ...Jce]),
si = rt({}, [...Hl, ...jce]),
Yi = function (U) {
let de = D(U);
(!de || !de.tagName) && (de = { namespaceURI: nt, tagName: 'template' });
const x = Ao(U.tagName),
tt = Ao(de.tagName);
return Vt[U.namespaceURI]
? U.namespaceURI === vr
? de.namespaceURI === et
? x === 'svg'
: de.namespaceURI === or
? x === 'svg' && (tt === 'annotation-xml' || mr[tt])
: !!oi[x]
: U.namespaceURI === or
? de.namespaceURI === et
? x === 'math'
: de.namespaceURI === vr
? x === 'math' && Rn[tt]
: !!si[x]
: U.namespaceURI === et
? (de.namespaceURI === vr && !Rn[tt]) || (de.namespaceURI === or && !mr[tt])
? !1
: !si[x] && (ai[x] || !oi[x])
: !!($r === 'application/xhtml+xml' && Vt[U.namespaceURI])
: !1;
},
zt = function (U) {
na(e.removed, { element: U });
try {
U.parentNode.removeChild(U);
} catch {
U.remove();
}
},
ut = function (U, de) {
try {
na(e.removed, { attribute: de.getAttributeNode(U), from: de });
} catch {
na(e.removed, { attribute: null, from: de });
}
if ((de.removeAttribute(U), U === 'is' && !ye[U]))
if (Le || ge)
try {
zt(de);
} catch {}
else
try {
de.setAttribute(U, '');
} catch {}
},
g = function (U) {
let de = null,
x = null;
if (fe) U = ' ' + U;
else {
const Ot = Bh(U, /^[\r\n\t ]+/);
x = Ot && Ot[0];
}
$r === 'application/xhtml+xml' && nt === et && (U = '' + U + '');
const tt = F ? F.createHTML(U) : U;
if (nt === et)
try {
de = new f().parseFromString(tt, $r);
} catch {}
if (!de || !de.documentElement) {
de = z.createDocument(nt, 'template', null);
try {
de.documentElement.innerHTML = _e ? Y : tt;
} catch {}
}
const B = de.body || de.documentElement;
return (
U && x && B.insertBefore(r.createTextNode(x), B.childNodes[0] || null),
nt === et ? ne.call(de, ht ? 'html' : 'body')[0] : ht ? de.documentElement : B
);
},
T = function (U) {
return G.call(
U.ownerDocument || U,
U,
m.SHOW_ELEMENT | m.SHOW_COMMENT | m.SHOW_TEXT | m.SHOW_PROCESSING_INSTRUCTION | m.SHOW_CDATA_SECTION,
null
);
},
oe = function (U) {
return (
U instanceof E &&
(typeof U.nodeName != 'string' ||
typeof U.textContent != 'string' ||
typeof U.removeChild != 'function' ||
!(U.attributes instanceof p) ||
typeof U.removeAttribute != 'function' ||
typeof U.setAttribute != 'function' ||
typeof U.namespaceURI != 'string' ||
typeof U.insertBefore != 'function' ||
typeof U.hasChildNodes != 'function')
);
},
y = function (U) {
return typeof u == 'function' && U instanceof u;
},
L = function (U, de, x) {
j[U] &&
mo(j[U], (tt) => {
tt.call(e, de, x, Vr);
});
},
_t = function (U) {
let de = null;
if ((L('beforeSanitizeElements', U, null), oe(U))) return zt(U), !0;
const x = yt(U.nodeName);
if (
(L('uponSanitizeElement', U, { tagName: x, allowedTags: le }),
(U.hasChildNodes() && !y(U.firstElementChild) && tr(/<[/\w]/g, U.innerHTML) && tr(/<[/\w]/g, U.textContent)) ||
U.nodeType === oa.progressingInstruction ||
(pt && U.nodeType === oa.comment && tr(/<[/\w]/g, U.data)))
)
return zt(U), !0;
if (!le[x] || be[x]) {
if (
!be[x] &&
Lt(x) &&
((te.tagNameCheck instanceof RegExp && tr(te.tagNameCheck, x)) || (te.tagNameCheck instanceof Function && te.tagNameCheck(x)))
)
return !1;
if (vt && !me[x]) {
const tt = D(U) || U.parentNode,
B = w(U) || U.childNodes;
if (B && tt) {
const Ot = B.length;
for (let Ut = Ot - 1; Ut >= 0; --Ut) {
const Wt = O(B[Ut], !0);
(Wt.__removalCount = (U.__removalCount || 0) + 1), tt.insertBefore(Wt, M(U));
}
}
}
return zt(U), !0;
}
return (U instanceof d && !Yi(U)) ||
((x === 'noscript' || x === 'noembed' || x === 'noframes') && tr(/<\/no(script|embed|frames)/i, U.innerHTML))
? (zt(U), !0)
: (Ke &&
U.nodeType === oa.text &&
((de = U.textContent),
mo([Q, Ae, Oe], (tt) => {
de = ia(de, tt, ' ');
}),
U.textContent !== de && (na(e.removed, { element: U.cloneNode() }), (U.textContent = de))),
L('afterSanitizeElements', U, null),
!1);
},
Ce = function (U, de, x) {
if (ke && (de === 'id' || de === 'name') && (x in r || x in qi)) return !1;
if (!(We && !De[de] && tr(H, de))) {
if (!(we && tr(re, de))) {
if (!ye[de] || De[de]) {
if (
!(
(Lt(U) &&
((te.tagNameCheck instanceof RegExp && tr(te.tagNameCheck, U)) || (te.tagNameCheck instanceof Function && te.tagNameCheck(U))) &&
((te.attributeNameCheck instanceof RegExp && tr(te.attributeNameCheck, de)) ||
(te.attributeNameCheck instanceof Function && te.attributeNameCheck(de)))) ||
(de === 'is' &&
te.allowCustomizedBuiltInElements &&
((te.tagNameCheck instanceof RegExp && tr(te.tagNameCheck, x)) || (te.tagNameCheck instanceof Function && te.tagNameCheck(x))))
)
)
return !1;
} else if (!it[de]) {
if (!tr(se, ia(x, K, ''))) {
if (!((de === 'src' || de === 'xlink:href' || de === 'href') && U !== 'script' && Kce(x, 'data:') === 0 && qe[U])) {
if (!(je && !tr(P, ia(x, K, '')))) {
if (x) return !1;
}
}
}
}
}
}
return !0;
},
Lt = function (U) {
return U !== 'annotation-xml' && Bh(U, Z);
},
kr = function (U) {
L('beforeSanitizeAttributes', U, null);
const { attributes: de } = U;
if (!de) return;
const x = { attrName: '', attrValue: '', keepAttr: !0, allowedAttributes: ye };
let tt = de.length;
for (; tt--; ) {
const B = de[tt],
{ name: Ot, namespaceURI: Ut, value: Wt } = B,
Wr = yt(Ot);
let kt = Ot === 'value' ? Wt : Qce(Wt);
if (
((x.attrName = Wr),
(x.attrValue = kt),
(x.keepAttr = !0),
(x.forceKeepAttr = void 0),
L('uponSanitizeAttribute', U, x),
(kt = x.attrValue),
x.forceKeepAttr || (ut(Ot, U), !x.keepAttr))
)
continue;
if (!Ze && tr(/\/>/i, kt)) {
ut(Ot, U);
continue;
}
if (pt && tr(/((--!?|])>)|<\/(style|title)/i, kt)) {
ut(Ot, U);
continue;
}
Ke &&
mo([Q, Ae, Oe], (qn) => {
kt = ia(kt, qn, ' ');
});
const An = yt(U.nodeName);
if (Ce(An, Wr, kt)) {
if (
(Ne && (Wr === 'id' || Wr === 'name') && (ut(Ot, U), (kt = Et + kt)),
F && typeof v == 'object' && typeof v.getAttributeType == 'function' && !Ut)
)
switch (v.getAttributeType(An, Wr)) {
case 'TrustedHTML': {
kt = F.createHTML(kt);
break;
}
case 'TrustedScriptURL': {
kt = F.createScriptURL(kt);
break;
}
}
try {
Ut ? U.setAttributeNS(Ut, Ot, kt) : U.setAttribute(Ot, kt), oe(U) ? zt(U) : Ph(e.removed);
} catch {}
}
}
L('afterSanitizeAttributes', U, null);
},
Fe = function Ee(U) {
let de = null;
const x = T(U);
for (L('beforeSanitizeShadowDOM', U, null); (de = x.nextNode()); )
L('uponSanitizeShadowNode', de, null), !_t(de) && (de.content instanceof a && Ee(de.content), kr(de));
L('afterSanitizeShadowDOM', U, null);
};
return (
(e.sanitize = function (Ee) {
let U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
de = null,
x = null,
tt = null,
B = null;
if (((_e = !Ee), _e && (Ee = ''), typeof Ee != 'string' && !y(Ee)))
if (typeof Ee.toString == 'function') {
if (((Ee = Ee.toString()), typeof Ee != 'string')) throw aa('dirty is not a string, aborting');
} else throw aa('toString is not a function');
if (!e.isSupported) return Ee;
if ((xt || jt(U), (e.removed = []), typeof Ee == 'string' && (Ft = !1), Ft)) {
if (Ee.nodeName) {
const Wt = yt(Ee.nodeName);
if (!le[Wt] || be[Wt]) throw aa('root node is forbidden and cannot be sanitized in-place');
}
} else if (Ee instanceof u)
(de = g('')),
(x = de.ownerDocument.importNode(Ee, !0)),
(x.nodeType === oa.element && x.nodeName === 'BODY') || x.nodeName === 'HTML' ? (de = x) : de.appendChild(x);
else {
if (!Le && !Ke && !ht && Ee.indexOf('<') === -1) return F && xe ? F.createHTML(Ee) : Ee;
if (((de = g(Ee)), !de)) return Le ? null : xe ? Y : '';
}
de && fe && zt(de.firstChild);
const Ot = T(Ft ? Ee : de);
for (; (tt = Ot.nextNode()); ) _t(tt) || (tt.content instanceof a && Fe(tt.content), kr(tt));
if (Ft) return Ee;
if (Le) {
if (ge) for (B = X.call(de.ownerDocument); de.firstChild; ) B.appendChild(de.firstChild);
else B = de;
return (ye.shadowroot || ye.shadowrootmode) && (B = ce.call(n, B, !0)), B;
}
let Ut = ht ? de.outerHTML : de.innerHTML;
return (
ht &&
le['!doctype'] &&
de.ownerDocument &&
de.ownerDocument.doctype &&
de.ownerDocument.doctype.name &&
tr(RT, de.ownerDocument.doctype.name) &&
(Ut =
'
` +
Ut),
Ke &&
mo([Q, Ae, Oe], (Wt) => {
Ut = ia(Ut, Wt, ' ');
}),
F && xe ? F.createHTML(Ut) : Ut
);
}),
(e.setConfig = function () {
let Ee = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
jt(Ee), (xt = !0);
}),
(e.clearConfig = function () {
(Vr = null), (xt = !1);
}),
(e.isValidAttribute = function (Ee, U, de) {
Vr || jt({});
const x = yt(Ee),
tt = yt(U);
return Ce(x, tt, de);
}),
(e.addHook = function (Ee, U) {
typeof U == 'function' && ((j[Ee] = j[Ee] || []), na(j[Ee], U));
}),
(e.removeHook = function (Ee) {
if (j[Ee]) return Ph(j[Ee]);
}),
(e.removeHooks = function (Ee) {
j[Ee] && (j[Ee] = []);
}),
(e.removeAllHooks = function () {
j = {};
}),
e
);
}
var xi = AT();
const No = {
min: { r: 0, g: 0, b: 0, s: 0, l: 0, a: 0 },
max: { r: 255, g: 255, b: 255, h: 360, s: 100, l: 100, a: 1 },
clamp: {
r: (t) => (t >= 255 ? 255 : t < 0 ? 0 : t),
g: (t) => (t >= 255 ? 255 : t < 0 ? 0 : t),
b: (t) => (t >= 255 ? 255 : t < 0 ? 0 : t),
h: (t) => t % 360,
s: (t) => (t >= 100 ? 100 : t < 0 ? 0 : t),
l: (t) => (t >= 100 ? 100 : t < 0 ? 0 : t),
a: (t) => (t >= 1 ? 1 : t < 0 ? 0 : t),
},
toLinear: (t) => {
const e = t / 255;
return t > 0.03928 ? Math.pow((e + 0.055) / 1.055, 2.4) : e / 12.92;
},
hue2rgb: (t, e, r) => (
r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? t + (e - t) * 6 * r : r < 1 / 2 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t
),
hsl2rgb: ({ h: t, s: e, l: r }, n) => {
if (!e) return r * 2.55;
(t /= 360), (e /= 100), (r /= 100);
const i = r < 0.5 ? r * (1 + e) : r + e - r * e,
a = 2 * r - i;
switch (n) {
case 'r':
return No.hue2rgb(a, i, t + 1 / 3) * 255;
case 'g':
return No.hue2rgb(a, i, t) * 255;
case 'b':
return No.hue2rgb(a, i, t - 1 / 3) * 255;
}
},
rgb2hsl: ({ r: t, g: e, b: r }, n) => {
(t /= 255), (e /= 255), (r /= 255);
const i = Math.max(t, e, r),
a = Math.min(t, e, r),
l = (i + a) / 2;
if (n === 'l') return l * 100;
if (i === a) return 0;
const u = i - a,
d = l > 0.5 ? u / (2 - i - a) : u / (i + a);
if (n === 's') return d * 100;
switch (i) {
case t:
return ((e - r) / u + (e < r ? 6 : 0)) * 60;
case e:
return ((r - t) / u + 2) * 60;
case r:
return ((t - e) / u + 4) * 60;
default:
return -1;
}
},
},
uue = No,
due = { clamp: (t, e, r) => (e > r ? Math.min(e, Math.max(r, t)) : Math.min(r, Math.max(e, t))), round: (t) => Math.round(t * 1e10) / 1e10 },
_ue = due,
mue = {
dec2hex: (t) => {
const e = Math.round(t).toString(16);
return e.length > 1 ? e : `0${e}`;
},
},
pue = mue,
hue = { channel: uue, lang: _ue, unit: pue },
$e = hue,
Ln = {};
for (let t = 0; t <= 255; t++) Ln[t] = $e.unit.dec2hex(t);
const Zt = { ALL: 0, RGB: 1, HSL: 2 };
class gue {
constructor() {
this.type = Zt.ALL;
}
get() {
return this.type;
}
set(e) {
if (this.type && this.type !== e) throw new Error('Cannot change both RGB and HSL channels at the same time');
this.type = e;
}
reset() {
this.type = Zt.ALL;
}
is(e) {
return this.type === e;
}
}
const fue = gue;
class Eue {
constructor(e, r) {
(this.color = r), (this.changed = !1), (this.data = e), (this.type = new fue());
}
set(e, r) {
return (this.color = r), (this.changed = !1), (this.data = e), (this.type.type = Zt.ALL), this;
}
_ensureHSL() {
const e = this.data,
{ h: r, s: n, l: i } = e;
r === void 0 && (e.h = $e.channel.rgb2hsl(e, 'h')),
n === void 0 && (e.s = $e.channel.rgb2hsl(e, 's')),
i === void 0 && (e.l = $e.channel.rgb2hsl(e, 'l'));
}
_ensureRGB() {
const e = this.data,
{ r, g: n, b: i } = e;
r === void 0 && (e.r = $e.channel.hsl2rgb(e, 'r')),
n === void 0 && (e.g = $e.channel.hsl2rgb(e, 'g')),
i === void 0 && (e.b = $e.channel.hsl2rgb(e, 'b'));
}
get r() {
const e = this.data,
r = e.r;
return !this.type.is(Zt.HSL) && r !== void 0 ? r : (this._ensureHSL(), $e.channel.hsl2rgb(e, 'r'));
}
get g() {
const e = this.data,
r = e.g;
return !this.type.is(Zt.HSL) && r !== void 0 ? r : (this._ensureHSL(), $e.channel.hsl2rgb(e, 'g'));
}
get b() {
const e = this.data,
r = e.b;
return !this.type.is(Zt.HSL) && r !== void 0 ? r : (this._ensureHSL(), $e.channel.hsl2rgb(e, 'b'));
}
get h() {
const e = this.data,
r = e.h;
return !this.type.is(Zt.RGB) && r !== void 0 ? r : (this._ensureRGB(), $e.channel.rgb2hsl(e, 'h'));
}
get s() {
const e = this.data,
r = e.s;
return !this.type.is(Zt.RGB) && r !== void 0 ? r : (this._ensureRGB(), $e.channel.rgb2hsl(e, 's'));
}
get l() {
const e = this.data,
r = e.l;
return !this.type.is(Zt.RGB) && r !== void 0 ? r : (this._ensureRGB(), $e.channel.rgb2hsl(e, 'l'));
}
get a() {
return this.data.a;
}
set r(e) {
this.type.set(Zt.RGB), (this.changed = !0), (this.data.r = e);
}
set g(e) {
this.type.set(Zt.RGB), (this.changed = !0), (this.data.g = e);
}
set b(e) {
this.type.set(Zt.RGB), (this.changed = !0), (this.data.b = e);
}
set h(e) {
this.type.set(Zt.HSL), (this.changed = !0), (this.data.h = e);
}
set s(e) {
this.type.set(Zt.HSL), (this.changed = !0), (this.data.s = e);
}
set l(e) {
this.type.set(Zt.HSL), (this.changed = !0), (this.data.l = e);
}
set a(e) {
(this.changed = !0), (this.data.a = e);
}
}
const Sue = Eue,
bue = new Sue({ r: 0, g: 0, b: 0, a: 0 }, 'transparent'),
vs = bue,
NT = {
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
parse: (t) => {
if (t.charCodeAt(0) !== 35) return;
const e = t.match(NT.re);
if (!e) return;
const r = e[1],
n = parseInt(r, 16),
i = r.length,
a = i % 4 === 0,
l = i > 4,
u = l ? 1 : 17,
d = l ? 8 : 4,
m = a ? 0 : -1,
p = l ? 255 : 15;
return vs.set(
{ r: ((n >> (d * (m + 3))) & p) * u, g: ((n >> (d * (m + 2))) & p) * u, b: ((n >> (d * (m + 1))) & p) * u, a: a ? ((n & p) * u) / 255 : 1 },
t
);
},
stringify: (t) => {
const { r: e, g: r, b: n, a: i } = t;
return i < 1
? `#${Ln[Math.round(e)]}${Ln[Math.round(r)]}${Ln[Math.round(n)]}${Ln[Math.round(i * 255)]}`
: `#${Ln[Math.round(e)]}${Ln[Math.round(r)]}${Ln[Math.round(n)]}`;
},
},
ma = NT,
Oo = {
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
_hue2deg: (t) => {
const e = t.match(Oo.hueRe);
if (e) {
const [, r, n] = e;
switch (n) {
case 'grad':
return $e.channel.clamp.h(parseFloat(r) * 0.9);
case 'rad':
return $e.channel.clamp.h((parseFloat(r) * 180) / Math.PI);
case 'turn':
return $e.channel.clamp.h(parseFloat(r) * 360);
}
}
return $e.channel.clamp.h(parseFloat(t));
},
parse: (t) => {
const e = t.charCodeAt(0);
if (e !== 104 && e !== 72) return;
const r = t.match(Oo.re);
if (!r) return;
const [, n, i, a, l, u] = r;
return vs.set(
{
h: Oo._hue2deg(n),
s: $e.channel.clamp.s(parseFloat(i)),
l: $e.channel.clamp.l(parseFloat(a)),
a: l ? $e.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1,
},
t
);
},
stringify: (t) => {
const { h: e, s: r, l: n, a: i } = t;
return i < 1
? `hsla(${$e.lang.round(e)}, ${$e.lang.round(r)}%, ${$e.lang.round(n)}%, ${i})`
: `hsl(${$e.lang.round(e)}, ${$e.lang.round(r)}%, ${$e.lang.round(n)}%)`;
},
},
go = Oo,
Io = {
colors: {
aliceblue: '#f0f8ff',
antiquewhite: '#faebd7',
aqua: '#00ffff',
aquamarine: '#7fffd4',
azure: '#f0ffff',
beige: '#f5f5dc',
bisque: '#ffe4c4',
black: '#000000',
blanchedalmond: '#ffebcd',
blue: '#0000ff',
blueviolet: '#8a2be2',
brown: '#a52a2a',
burlywood: '#deb887',
cadetblue: '#5f9ea0',
chartreuse: '#7fff00',
chocolate: '#d2691e',
coral: '#ff7f50',
cornflowerblue: '#6495ed',
cornsilk: '#fff8dc',
crimson: '#dc143c',
cyanaqua: '#00ffff',
darkblue: '#00008b',
darkcyan: '#008b8b',
darkgoldenrod: '#b8860b',
darkgray: '#a9a9a9',
darkgreen: '#006400',
darkgrey: '#a9a9a9',
darkkhaki: '#bdb76b',
darkmagenta: '#8b008b',
darkolivegreen: '#556b2f',
darkorange: '#ff8c00',
darkorchid: '#9932cc',
darkred: '#8b0000',
darksalmon: '#e9967a',
darkseagreen: '#8fbc8f',
darkslateblue: '#483d8b',
darkslategray: '#2f4f4f',
darkslategrey: '#2f4f4f',
darkturquoise: '#00ced1',
darkviolet: '#9400d3',
deeppink: '#ff1493',
deepskyblue: '#00bfff',
dimgray: '#696969',
dimgrey: '#696969',
dodgerblue: '#1e90ff',
firebrick: '#b22222',
floralwhite: '#fffaf0',
forestgreen: '#228b22',
fuchsia: '#ff00ff',
gainsboro: '#dcdcdc',
ghostwhite: '#f8f8ff',
gold: '#ffd700',
goldenrod: '#daa520',
gray: '#808080',
green: '#008000',
greenyellow: '#adff2f',
grey: '#808080',
honeydew: '#f0fff0',
hotpink: '#ff69b4',
indianred: '#cd5c5c',
indigo: '#4b0082',
ivory: '#fffff0',
khaki: '#f0e68c',
lavender: '#e6e6fa',
lavenderblush: '#fff0f5',
lawngreen: '#7cfc00',
lemonchiffon: '#fffacd',
lightblue: '#add8e6',
lightcoral: '#f08080',
lightcyan: '#e0ffff',
lightgoldenrodyellow: '#fafad2',
lightgray: '#d3d3d3',
lightgreen: '#90ee90',
lightgrey: '#d3d3d3',
lightpink: '#ffb6c1',
lightsalmon: '#ffa07a',
lightseagreen: '#20b2aa',
lightskyblue: '#87cefa',
lightslategray: '#778899',
lightslategrey: '#778899',
lightsteelblue: '#b0c4de',
lightyellow: '#ffffe0',
lime: '#00ff00',
limegreen: '#32cd32',
linen: '#faf0e6',
magenta: '#ff00ff',
maroon: '#800000',
mediumaquamarine: '#66cdaa',
mediumblue: '#0000cd',
mediumorchid: '#ba55d3',
mediumpurple: '#9370db',
mediumseagreen: '#3cb371',
mediumslateblue: '#7b68ee',
mediumspringgreen: '#00fa9a',
mediumturquoise: '#48d1cc',
mediumvioletred: '#c71585',
midnightblue: '#191970',
mintcream: '#f5fffa',
mistyrose: '#ffe4e1',
moccasin: '#ffe4b5',
navajowhite: '#ffdead',
navy: '#000080',
oldlace: '#fdf5e6',
olive: '#808000',
olivedrab: '#6b8e23',
orange: '#ffa500',
orangered: '#ff4500',
orchid: '#da70d6',
palegoldenrod: '#eee8aa',
palegreen: '#98fb98',
paleturquoise: '#afeeee',
palevioletred: '#db7093',
papayawhip: '#ffefd5',
peachpuff: '#ffdab9',
peru: '#cd853f',
pink: '#ffc0cb',
plum: '#dda0dd',
powderblue: '#b0e0e6',
purple: '#800080',
rebeccapurple: '#663399',
red: '#ff0000',
rosybrown: '#bc8f8f',
royalblue: '#4169e1',
saddlebrown: '#8b4513',
salmon: '#fa8072',
sandybrown: '#f4a460',
seagreen: '#2e8b57',
seashell: '#fff5ee',
sienna: '#a0522d',
silver: '#c0c0c0',
skyblue: '#87ceeb',
slateblue: '#6a5acd',
slategray: '#708090',
slategrey: '#708090',
snow: '#fffafa',
springgreen: '#00ff7f',
tan: '#d2b48c',
teal: '#008080',
thistle: '#d8bfd8',
transparent: '#00000000',
turquoise: '#40e0d0',
violet: '#ee82ee',
wheat: '#f5deb3',
white: '#ffffff',
whitesmoke: '#f5f5f5',
yellow: '#ffff00',
yellowgreen: '#9acd32',
},
parse: (t) => {
t = t.toLowerCase();
const e = Io.colors[t];
if (e) return ma.parse(e);
},
stringify: (t) => {
const e = ma.stringify(t);
for (const r in Io.colors) if (Io.colors[r] === e) return r;
},
},
zh = Io,
OT = {
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
parse: (t) => {
const e = t.charCodeAt(0);
if (e !== 114 && e !== 82) return;
const r = t.match(OT.re);
if (!r) return;
const [, n, i, a, l, u, d, m, p] = r;
return vs.set(
{
r: $e.channel.clamp.r(i ? parseFloat(n) * 2.55 : parseFloat(n)),
g: $e.channel.clamp.g(l ? parseFloat(a) * 2.55 : parseFloat(a)),
b: $e.channel.clamp.b(d ? parseFloat(u) * 2.55 : parseFloat(u)),
a: m ? $e.channel.clamp.a(p ? parseFloat(m) / 100 : parseFloat(m)) : 1,
},
t
);
},
stringify: (t) => {
const { r: e, g: r, b: n, a: i } = t;
return i < 1
? `rgba(${$e.lang.round(e)}, ${$e.lang.round(r)}, ${$e.lang.round(n)}, ${$e.lang.round(i)})`
: `rgb(${$e.lang.round(e)}, ${$e.lang.round(r)}, ${$e.lang.round(n)})`;
},
},
fo = OT,
Tue = {
format: { keyword: zh, hex: ma, rgb: fo, rgba: fo, hsl: go, hsla: go },
parse: (t) => {
if (typeof t != 'string') return t;
const e = ma.parse(t) || fo.parse(t) || go.parse(t) || zh.parse(t);
if (e) return e;
throw new Error(`Unsupported color format: "${t}"`);
},
stringify: (t) =>
!t.changed && t.color
? t.color
: t.type.is(Zt.HSL) || t.data.r === void 0
? go.stringify(t)
: t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b)
? fo.stringify(t)
: ma.stringify(t),
},
an = Tue,
vue = (t, e) => {
const r = an.parse(t);
for (const n in e) r[n] = $e.channel.clamp[n](e[n]);
return an.stringify(r);
},
IT = vue,
Cue = (t, e, r = 0, n = 1) => {
if (typeof t != 'number') return IT(t, { a: e });
const i = vs.set({ r: $e.channel.clamp.r(t), g: $e.channel.clamp.g(e), b: $e.channel.clamp.b(r), a: $e.channel.clamp.a(n) });
return an.stringify(i);
},
pa = Cue,
yue = (t) => {
const { r: e, g: r, b: n } = an.parse(t),
i = 0.2126 * $e.channel.toLinear(e) + 0.7152 * $e.channel.toLinear(r) + 0.0722 * $e.channel.toLinear(n);
return $e.lang.round(i);
},
Rue = yue,
Aue = (t) => Rue(t) >= 0.5,
Nue = Aue,
Oue = (t) => !Nue(t),
ka = Oue,
Iue = (t, e, r) => {
const n = an.parse(t),
i = n[e],
a = $e.channel.clamp[e](i + r);
return i !== a && (n[e] = a), an.stringify(n);
},
xT = Iue,
xue = (t, e) => xT(t, 'l', e),
Pe = xue,
Due = (t, e) => xT(t, 'l', -e),
Ye = Due,
wue = (t, e) => {
const r = an.parse(t),
n = {};
for (const i in e) e[i] && (n[i] = r[i] + e[i]);
return IT(t, n);
},
$ = wue,
Mue = (t, e, r = 50) => {
const { r: n, g: i, b: a, a: l } = an.parse(t),
{ r: u, g: d, b: m, a: p } = an.parse(e),
E = r / 100,
f = E * 2 - 1,
v = l - p,
O = ((f * v === -1 ? f : (f + v) / (1 + f * v)) + 1) / 2,
M = 1 - O,
w = n * O + u * M,
D = i * O + d * M,
F = a * O + m * M,
Y = l * E + p * (1 - E);
return pa(w, D, F, Y);
},
Lue = Mue,
kue = (t, e = 100) => {
const r = an.parse(t);
return (r.r = 255 - r.r), (r.g = 255 - r.g), (r.b = 255 - r.b), Lue(r, t, e);
},
Se = kue;
var DT = 'comm',
wT = 'rule',
MT = 'decl',
Pue = '@import',
Bue = '@keyframes',
Fue = '@layer',
LT = Math.abs,
Dm = String.fromCharCode;
function kT(t) {
return t.trim();
}
function xo(t, e, r) {
return t.replace(e, r);
}
function Uue(t, e, r) {
return t.indexOf(e, r);
}
function Ca(t, e) {
return t.charCodeAt(e) | 0;
}
function ya(t, e, r) {
return t.slice(e, r);
}
function bn(t) {
return t.length;
}
function Gue(t) {
return t.length;
}
function Eo(t, e) {
return e.push(t), t;
}
var Cs = 1,
Di = 1,
PT = 0,
Mr = 0,
Pt = 0,
Gi = '';
function wm(t, e, r, n, i, a, l, u) {
return { value: t, root: e, parent: r, type: n, props: i, children: a, line: Cs, column: Di, length: l, return: '', siblings: u };
}
function que() {
return Pt;
}
function Yue() {
return (Pt = Mr > 0 ? Ca(Gi, --Mr) : 0), Di--, Pt === 10 && ((Di = 1), Cs--), Pt;
}
function Yr() {
return (Pt = Mr < PT ? Ca(Gi, Mr++) : 0), Di++, Pt === 10 && ((Di = 1), Cs++), Pt;
}
function Zn() {
return Ca(Gi, Mr);
}
function Do() {
return Mr;
}
function ys(t, e) {
return ya(Gi, t, e);
}
function K_(t) {
switch (t) {
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
case 59:
case 123:
case 125:
return 4;
case 58:
return 3;
case 34:
case 39:
case 40:
case 91:
return 2;
case 41:
case 93:
return 1;
}
return 0;
}
function zue(t) {
return (Cs = Di = 1), (PT = bn((Gi = t))), (Mr = 0), [];
}
function Hue(t) {
return (Gi = ''), t;
}
function Vl(t) {
return kT(ys(Mr - 1, Q_(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
}
function $ue(t) {
for (; (Pt = Zn()) && Pt < 33; ) Yr();
return K_(t) > 2 || K_(Pt) > 3 ? '' : ' ';
}
function Vue(t, e) {
for (; --e && Yr() && !(Pt < 48 || Pt > 102 || (Pt > 57 && Pt < 65) || (Pt > 70 && Pt < 97)); );
return ys(t, Do() + (e < 6 && Zn() == 32 && Yr() == 32));
}
function Q_(t) {
for (; Yr(); )
switch (Pt) {
case t:
return Mr;
case 34:
case 39:
t !== 34 && t !== 39 && Q_(Pt);
break;
case 40:
t === 41 && Q_(t);
break;
case 92:
Yr();
break;
}
return Mr;
}
function Wue(t, e) {
for (; Yr() && t + Pt !== 47 + 10; ) if (t + Pt === 42 + 42 && Zn() === 47) break;
return '/*' + ys(e, Mr - 1) + '*' + Dm(t === 47 ? t : Yr());
}
function Kue(t) {
for (; !K_(Zn()); ) Yr();
return ys(t, Mr);
}
function Que(t) {
return Hue(wo('', null, null, null, [''], (t = zue(t)), 0, [0], t));
}
function wo(t, e, r, n, i, a, l, u, d) {
for (var m = 0, p = 0, E = l, f = 0, v = 0, R = 0, O = 1, M = 1, w = 1, D = 0, F = '', Y = i, z = a, G = n, X = F; M; )
switch (((R = D), (D = Yr()))) {
case 40:
if (R != 108 && Ca(X, E - 1) == 58) {
Uue((X += xo(Vl(D), '&', '&\f')), '&\f', LT(m ? u[m - 1] : 0)) != -1 && (w = -1);
break;
}
case 34:
case 39:
case 91:
X += Vl(D);
break;
case 9:
case 10:
case 13:
case 32:
X += $ue(R);
break;
case 92:
X += Vue(Do() - 1, 7);
continue;
case 47:
switch (Zn()) {
case 42:
case 47:
Eo(Zue(Wue(Yr(), Do()), e, r, d), d);
break;
default:
X += '/';
}
break;
case 123 * O:
u[m++] = bn(X) * w;
case 125 * O:
case 59:
case 0:
switch (D) {
case 0:
case 125:
M = 0;
case 59 + p:
w == -1 && (X = xo(X, /\f/g, '')),
v > 0 && bn(X) - E && Eo(v > 32 ? $h(X + ';', n, r, E - 1, d) : $h(xo(X, ' ', '') + ';', n, r, E - 2, d), d);
break;
case 59:
X += ';';
default:
if ((Eo((G = Hh(X, e, r, m, p, i, u, F, (Y = []), (z = []), E, a)), a), D === 123))
if (p === 0) wo(X, e, G, G, Y, a, E, u, z);
else
switch (f === 99 && Ca(X, 3) === 110 ? 100 : f) {
case 100:
case 108:
case 109:
case 115:
wo(t, G, G, n && Eo(Hh(t, G, G, 0, 0, i, u, F, i, (Y = []), E, z), z), i, z, E, u, n ? Y : z);
break;
default:
wo(X, G, G, G, [''], z, 0, u, z);
}
}
(m = p = v = 0), (O = w = 1), (F = X = ''), (E = l);
break;
case 58:
(E = 1 + bn(X)), (v = R);
default:
if (O < 1) {
if (D == 123) --O;
else if (D == 125 && O++ == 0 && Yue() == 125) continue;
}
switch (((X += Dm(D)), D * O)) {
case 38:
w = p > 0 ? 1 : ((X += '\f'), -1);
break;
case 44:
(u[m++] = (bn(X) - 1) * w), (w = 1);
break;
case 64:
Zn() === 45 && (X += Vl(Yr())), (f = Zn()), (p = E = bn((F = X += Kue(Do())))), D++;
break;
case 45:
R === 45 && bn(X) == 2 && (O = 0);
}
}
return a;
}
function Hh(t, e, r, n, i, a, l, u, d, m, p, E) {
for (var f = i - 1, v = i === 0 ? a : [''], R = Gue(v), O = 0, M = 0, w = 0; O < n; ++O)
for (var D = 0, F = ya(t, f + 1, (f = LT((M = l[O])))), Y = t; D < R; ++D) (Y = kT(M > 0 ? v[D] + ' ' + F : xo(F, /&\f/g, v[D]))) && (d[w++] = Y);
return wm(t, e, r, i === 0 ? wT : u, d, m, p, E);
}
function Zue(t, e, r, n) {
return wm(t, e, r, DT, Dm(que()), ya(t, 2, -2), 0, n);
}
function $h(t, e, r, n, i) {
return wm(t, e, r, MT, ya(t, 0, n), ya(t, n + 1, -1), n, i);
}
function Z_(t, e) {
for (var r = '', n = 0; n < t.length; n++) r += e(t[n], n, t, e) || '';
return r;
}
function Xue(t, e, r, n) {
switch (t.type) {
case Fue:
if (t.children.length) break;
case Pue:
case MT:
return (t.return = t.return || t.value);
case DT:
return '';
case Bue:
return (t.return = t.value + '{' + Z_(t.children, n) + '}');
case wT:
if (!bn((t.value = t.props.join(',')))) return '';
}
return bn((r = Z_(t.children, n))) ? (t.return = t.value + '{' + r + '}') : '';
}
const En = { trace: 0, debug: 1, info: 2, warn: 3, error: 4, fatal: 5 },
Ge = { trace: (...t) => {}, debug: (...t) => {}, info: (...t) => {}, warn: (...t) => {}, error: (...t) => {}, fatal: (...t) => {} },
Mm = function (t = 'fatal') {
let e = En.fatal;
typeof t == 'string' ? ((t = t.toLowerCase()), t in En && (e = En[t])) : typeof t == 'number' && (e = t),
(Ge.trace = () => {}),
(Ge.debug = () => {}),
(Ge.info = () => {}),
(Ge.warn = () => {}),
(Ge.error = () => {}),
(Ge.fatal = () => {}),
e <= En.fatal &&
(Ge.fatal = console.error ? console.error.bind(console, Nr('FATAL'), 'color: orange') : console.log.bind(console, '\x1B[35m', Nr('FATAL'))),
e <= En.error &&
(Ge.error = console.error ? console.error.bind(console, Nr('ERROR'), 'color: orange') : console.log.bind(console, '\x1B[31m', Nr('ERROR'))),
e <= En.warn &&
(Ge.warn = console.warn ? console.warn.bind(console, Nr('WARN'), 'color: orange') : console.log.bind(console, '\x1B[33m', Nr('WARN'))),
e <= En.info &&
(Ge.info = console.info ? console.info.bind(console, Nr('INFO'), 'color: lightblue') : console.log.bind(console, '\x1B[34m', Nr('INFO'))),
e <= En.debug &&
(Ge.debug = console.debug
? console.debug.bind(console, Nr('DEBUG'), 'color: lightgreen')
: console.log.bind(console, '\x1B[32m', Nr('DEBUG'))),
e <= En.trace &&
(Ge.trace = console.debug
? console.debug.bind(console, Nr('TRACE'), 'color: lightgreen')
: console.log.bind(console, '\x1B[32m', Nr('TRACE')));
},
Nr = (t) => `%c${uoe().format('ss.SSS')} : ${t} : `,
Pa = / /gi,
Jue = (t) => (t ? FT(t).replace(/\\n/g, '#br#').split('#br#') : ['']),
jue = (() => {
let t = !1;
return () => {
t || (ede(), (t = !0));
};
})();
function ede() {
const t = 'data-temp-href-target';
xi.addHook('beforeSanitizeAttributes', (e) => {
e.tagName === 'A' && e.hasAttribute('target') && e.setAttribute(t, e.getAttribute('target') || '');
}),
xi.addHook('afterSanitizeAttributes', (e) => {
e.tagName === 'A' &&
e.hasAttribute(t) &&
(e.setAttribute('target', e.getAttribute(t) || ''),
e.removeAttribute(t),
e.getAttribute('target') === '_blank' && e.setAttribute('rel', 'noopener'));
});
}
const BT = (t) => (jue(), xi.sanitize(t)),
Vh = (t, e) => {
var r;
if (((r = e.flowchart) == null ? void 0 : r.htmlLabels) !== !1) {
const n = e.securityLevel;
n === 'antiscript' || n === 'strict'
? (t = BT(t))
: n !== 'loose' && ((t = FT(t)), (t = t.replace(//g, '>')), (t = t.replace(/=/g, '=')), (t = ide(t)));
}
return t;
},
Ra = (t, e) =>
t &&
(e.dompurifyConfig
? (t = xi.sanitize(Vh(t, e), e.dompurifyConfig).toString())
: (t = xi.sanitize(Vh(t, e), { FORBID_TAGS: ['style'] }).toString()),
t),
tde = (t, e) => (typeof t == 'string' ? Ra(t, e) : t.flat().map((r) => Ra(r, e))),
rde = (t) => Pa.test(t),
nde = (t) => t.split(Pa),
ide = (t) => t.replace(/#br#/g, ' '),
FT = (t) => t.replace(Pa, '#br#'),
ade = (t) => {
let e = '';
return (
t &&
((e = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search),
(e = e.replaceAll(/\(/g, '\\(')),
(e = e.replaceAll(/\)/g, '\\)'))),
e
);
},
UT = (t) => !(t === !1 || ['false', 'null', '0'].includes(String(t).trim().toLowerCase())),
ode = function (...t) {
const e = t.filter((r) => !isNaN(r));
return Math.max(...e);
},
sde = function (...t) {
const e = t.filter((r) => !isNaN(r));
return Math.min(...e);
},
GTe = function (t) {
const e = t.split(/(,)/),
r = [];
for (let n = 0; n < e.length; n++) {
let i = e[n];
if (i === ',' && n > 0 && n + 1 < e.length) {
const a = e[n - 1],
l = e[n + 1];
lde(a, l) && ((i = a + ',' + l), n++, r.pop());
}
r.push(cde(i));
}
return r.join('');
},
X_ = (t, e) => Math.max(0, t.split(e).length - 1),
lde = (t, e) => {
const r = X_(t, '~'),
n = X_(e, '~');
return r === 1 && n === 1;
},
cde = (t) => {
const e = X_(t, '~');
let r = !1;
if (e <= 1) return t;
e % 2 !== 0 && t.startsWith('~') && ((t = t.substring(1)), (r = !0));
const n = [...t];
let i = n.indexOf('~'),
a = n.lastIndexOf('~');
for (; i !== -1 && a !== -1 && i !== a; ) (n[i] = '<'), (n[a] = '>'), (i = n.indexOf('~')), (a = n.lastIndexOf('~'));
return r && n.unshift('~'), n.join('');
},
Wh = () => window.MathMLElement !== void 0,
J_ = /\$\$(.*)\$\$/g,
Kh = (t) => {
var e;
return (((e = t.match(J_)) == null ? void 0 : e.length) ?? 0) > 0;
},
qTe = async (t, e) => {
t = await ude(t, e);
const r = document.createElement('div');
(r.innerHTML = t), (r.id = 'katex-temp'), (r.style.visibility = 'hidden'), (r.style.position = 'absolute'), (r.style.top = '0');
const n = document.querySelector('body');
n == null || n.insertAdjacentElement('beforeend', r);
const i = { width: r.clientWidth, height: r.clientHeight };
return r.remove(), i;
},
ude = async (t, e) => {
if (!Kh(t)) return t;
if (!Wh() && !e.legacyMathML) return t.replace(J_, 'MathML is unsupported in this environment.');
const { default: r } = await Nt(() => import('./katex-3eb4982e.js'), []);
return t
.split(Pa)
.map((n) =>
Kh(n)
? `
${n}
`
: `${n}
`
)
.join('')
.replace(J_, (n, i) =>
r
.renderToString(i, { throwOnError: !0, displayMode: !0, output: Wh() ? 'mathml' : 'htmlAndMathml' })
.replace(/\n/g, ' ')
.replace(//g, '')
);
},
Lm = {
getRows: Jue,
sanitizeText: Ra,
sanitizeTextOrArray: tde,
hasBreaks: rde,
splitBreaks: nde,
lineBreakRegex: Pa,
removeScript: BT,
getUrl: ade,
evaluate: UT,
getMax: ode,
getMin: sde,
},
ir = (t, e) => (e ? $(t, { s: -40, l: 10 }) : $(t, { s: -40, l: -10 })),
Rs = '#ffffff',
As = '#f2f2f2';
let dde = class {
constructor() {
(this.background = '#f4f4f4'),
(this.primaryColor = '#fff4dd'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = '#333'),
(this.THEME_COLOR_LIMIT = 12),
(this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px');
}
updateColors() {
var e, r, n, i, a, l, u, d, m, p, E;
if (
((this.primaryTextColor = this.primaryTextColor || (this.darkMode ? '#eee' : '#333')),
(this.secondaryColor = this.secondaryColor || $(this.primaryColor, { h: -120 })),
(this.tertiaryColor = this.tertiaryColor || $(this.primaryColor, { h: 180, l: 5 })),
(this.primaryBorderColor = this.primaryBorderColor || ir(this.primaryColor, this.darkMode)),
(this.secondaryBorderColor = this.secondaryBorderColor || ir(this.secondaryColor, this.darkMode)),
(this.tertiaryBorderColor = this.tertiaryBorderColor || ir(this.tertiaryColor, this.darkMode)),
(this.noteBorderColor = this.noteBorderColor || ir(this.noteBkgColor, this.darkMode)),
(this.noteBkgColor = this.noteBkgColor || '#fff5ad'),
(this.noteTextColor = this.noteTextColor || '#333'),
(this.secondaryTextColor = this.secondaryTextColor || Se(this.secondaryColor)),
(this.tertiaryTextColor = this.tertiaryTextColor || Se(this.tertiaryColor)),
(this.lineColor = this.lineColor || Se(this.background)),
(this.arrowheadColor = this.arrowheadColor || Se(this.background)),
(this.textColor = this.textColor || this.primaryTextColor),
(this.border2 = this.border2 || this.tertiaryBorderColor),
(this.nodeBkg = this.nodeBkg || this.primaryColor),
(this.mainBkg = this.mainBkg || this.primaryColor),
(this.nodeBorder = this.nodeBorder || this.primaryBorderColor),
(this.clusterBkg = this.clusterBkg || this.tertiaryColor),
(this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor),
(this.defaultLinkColor = this.defaultLinkColor || this.lineColor),
(this.titleColor = this.titleColor || this.tertiaryTextColor),
(this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? Ye(this.secondaryColor, 30) : this.secondaryColor)),
(this.nodeTextColor = this.nodeTextColor || this.primaryTextColor),
(this.actorBorder = this.actorBorder || this.primaryBorderColor),
(this.actorBkg = this.actorBkg || this.mainBkg),
(this.actorTextColor = this.actorTextColor || this.primaryTextColor),
(this.actorLineColor = this.actorLineColor || 'grey'),
(this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg),
(this.signalColor = this.signalColor || this.textColor),
(this.signalTextColor = this.signalTextColor || this.textColor),
(this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder),
(this.labelTextColor = this.labelTextColor || this.actorTextColor),
(this.loopTextColor = this.loopTextColor || this.actorTextColor),
(this.activationBorderColor = this.activationBorderColor || Ye(this.secondaryColor, 10)),
(this.activationBkgColor = this.activationBkgColor || this.secondaryColor),
(this.sequenceNumberColor = this.sequenceNumberColor || Se(this.lineColor)),
(this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor),
(this.altSectionBkgColor = this.altSectionBkgColor || 'white'),
(this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor),
(this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor),
(this.excludeBkgColor = this.excludeBkgColor || '#eeeeee'),
(this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor),
(this.taskBkgColor = this.taskBkgColor || this.primaryColor),
(this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor),
(this.activeTaskBkgColor = this.activeTaskBkgColor || Pe(this.primaryColor, 23)),
(this.gridColor = this.gridColor || 'lightgrey'),
(this.doneTaskBkgColor = this.doneTaskBkgColor || 'lightgrey'),
(this.doneTaskBorderColor = this.doneTaskBorderColor || 'grey'),
(this.critBorderColor = this.critBorderColor || '#ff8888'),
(this.critBkgColor = this.critBkgColor || 'red'),
(this.todayLineColor = this.todayLineColor || 'red'),
(this.taskTextColor = this.taskTextColor || this.textColor),
(this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor),
(this.taskTextLightColor = this.taskTextLightColor || this.textColor),
(this.taskTextColor = this.taskTextColor || this.primaryTextColor),
(this.taskTextDarkColor = this.taskTextDarkColor || this.textColor),
(this.taskTextClickableColor = this.taskTextClickableColor || '#003163'),
(this.personBorder = this.personBorder || this.primaryBorderColor),
(this.personBkg = this.personBkg || this.mainBkg),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.transitionLabelColor = this.transitionLabelColor || this.textColor),
(this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor),
(this.stateBkg = this.stateBkg || this.mainBkg),
(this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg),
(this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor),
(this.altBackground = this.altBackground || this.tertiaryColor),
(this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg),
(this.compositeBorder = this.compositeBorder || this.nodeBorder),
(this.innerEndBackground = this.nodeBorder),
(this.errorBkgColor = this.errorBkgColor || this.tertiaryColor),
(this.errorTextColor = this.errorTextColor || this.tertiaryTextColor),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.specialStateColor = this.lineColor),
(this.cScale0 = this.cScale0 || this.primaryColor),
(this.cScale1 = this.cScale1 || this.secondaryColor),
(this.cScale2 = this.cScale2 || this.tertiaryColor),
(this.cScale3 = this.cScale3 || $(this.primaryColor, { h: 30 })),
(this.cScale4 = this.cScale4 || $(this.primaryColor, { h: 60 })),
(this.cScale5 = this.cScale5 || $(this.primaryColor, { h: 90 })),
(this.cScale6 = this.cScale6 || $(this.primaryColor, { h: 120 })),
(this.cScale7 = this.cScale7 || $(this.primaryColor, { h: 150 })),
(this.cScale8 = this.cScale8 || $(this.primaryColor, { h: 210, l: 150 })),
(this.cScale9 = this.cScale9 || $(this.primaryColor, { h: 270 })),
(this.cScale10 = this.cScale10 || $(this.primaryColor, { h: 300 })),
(this.cScale11 = this.cScale11 || $(this.primaryColor, { h: 330 })),
this.darkMode)
)
for (let v = 0; v < this.THEME_COLOR_LIMIT; v++) this['cScale' + v] = Ye(this['cScale' + v], 75);
else for (let v = 0; v < this.THEME_COLOR_LIMIT; v++) this['cScale' + v] = Ye(this['cScale' + v], 25);
for (let v = 0; v < this.THEME_COLOR_LIMIT; v++) this['cScaleInv' + v] = this['cScaleInv' + v] || Se(this['cScale' + v]);
for (let v = 0; v < this.THEME_COLOR_LIMIT; v++)
this.darkMode
? (this['cScalePeer' + v] = this['cScalePeer' + v] || Pe(this['cScale' + v], 10))
: (this['cScalePeer' + v] = this['cScalePeer' + v] || Ye(this['cScale' + v], 10));
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
for (let v = 0; v < this.THEME_COLOR_LIMIT; v++) this['cScaleLabel' + v] = this['cScaleLabel' + v] || this.scaleLabelColor;
const f = this.darkMode ? -4 : -1;
for (let v = 0; v < 5; v++)
(this['surface' + v] = this['surface' + v] || $(this.mainBkg, { h: 180, s: -15, l: f * (5 + v * 3) })),
(this['surfacePeer' + v] = this['surfacePeer' + v] || $(this.mainBkg, { h: 180, s: -15, l: f * (8 + v * 3) }));
(this.classText = this.classText || this.textColor),
(this.fillType0 = this.fillType0 || this.primaryColor),
(this.fillType1 = this.fillType1 || this.secondaryColor),
(this.fillType2 = this.fillType2 || $(this.primaryColor, { h: 64 })),
(this.fillType3 = this.fillType3 || $(this.secondaryColor, { h: 64 })),
(this.fillType4 = this.fillType4 || $(this.primaryColor, { h: -64 })),
(this.fillType5 = this.fillType5 || $(this.secondaryColor, { h: -64 })),
(this.fillType6 = this.fillType6 || $(this.primaryColor, { h: 128 })),
(this.fillType7 = this.fillType7 || $(this.secondaryColor, { h: 128 })),
(this.pie1 = this.pie1 || this.primaryColor),
(this.pie2 = this.pie2 || this.secondaryColor),
(this.pie3 = this.pie3 || this.tertiaryColor),
(this.pie4 = this.pie4 || $(this.primaryColor, { l: -10 })),
(this.pie5 = this.pie5 || $(this.secondaryColor, { l: -10 })),
(this.pie6 = this.pie6 || $(this.tertiaryColor, { l: -10 })),
(this.pie7 = this.pie7 || $(this.primaryColor, { h: 60, l: -10 })),
(this.pie8 = this.pie8 || $(this.primaryColor, { h: -60, l: -10 })),
(this.pie9 = this.pie9 || $(this.primaryColor, { h: 120, l: 0 })),
(this.pie10 = this.pie10 || $(this.primaryColor, { h: 60, l: -20 })),
(this.pie11 = this.pie11 || $(this.primaryColor, { h: -60, l: -20 })),
(this.pie12 = this.pie12 || $(this.primaryColor, { h: 120, l: -10 })),
(this.pieTitleTextSize = this.pieTitleTextSize || '25px'),
(this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor),
(this.pieSectionTextSize = this.pieSectionTextSize || '17px'),
(this.pieSectionTextColor = this.pieSectionTextColor || this.textColor),
(this.pieLegendTextSize = this.pieLegendTextSize || '17px'),
(this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor),
(this.pieStrokeColor = this.pieStrokeColor || 'black'),
(this.pieStrokeWidth = this.pieStrokeWidth || '2px'),
(this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || '2px'),
(this.pieOuterStrokeColor = this.pieOuterStrokeColor || 'black'),
(this.pieOpacity = this.pieOpacity || '0.7'),
(this.quadrant1Fill = this.quadrant1Fill || this.primaryColor),
(this.quadrant2Fill = this.quadrant2Fill || $(this.primaryColor, { r: 5, g: 5, b: 5 })),
(this.quadrant3Fill = this.quadrant3Fill || $(this.primaryColor, { r: 10, g: 10, b: 10 })),
(this.quadrant4Fill = this.quadrant4Fill || $(this.primaryColor, { r: 15, g: 15, b: 15 })),
(this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor),
(this.quadrant2TextFill = this.quadrant2TextFill || $(this.primaryTextColor, { r: -5, g: -5, b: -5 })),
(this.quadrant3TextFill = this.quadrant3TextFill || $(this.primaryTextColor, { r: -10, g: -10, b: -10 })),
(this.quadrant4TextFill = this.quadrant4TextFill || $(this.primaryTextColor, { r: -15, g: -15, b: -15 })),
(this.quadrantPointFill = this.quadrantPointFill || ka(this.quadrant1Fill) ? Pe(this.quadrant1Fill) : Ye(this.quadrant1Fill)),
(this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor),
(this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor),
(this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor),
(this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor),
(this.xyChart = {
backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
xAxisTitleColor: ((n = this.xyChart) == null ? void 0 : n.xAxisTitleColor) || this.primaryTextColor,
xAxisLabelColor: ((i = this.xyChart) == null ? void 0 : i.xAxisLabelColor) || this.primaryTextColor,
xAxisTickColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTickColor) || this.primaryTextColor,
xAxisLineColor: ((l = this.xyChart) == null ? void 0 : l.xAxisLineColor) || this.primaryTextColor,
yAxisTitleColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTitleColor) || this.primaryTextColor,
yAxisLabelColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLabelColor) || this.primaryTextColor,
yAxisTickColor: ((m = this.xyChart) == null ? void 0 : m.yAxisTickColor) || this.primaryTextColor,
yAxisLineColor: ((p = this.xyChart) == null ? void 0 : p.yAxisLineColor) || this.primaryTextColor,
plotColorPalette:
((E = this.xyChart) == null ? void 0 : E.plotColorPalette) ||
'#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0',
}),
(this.requirementBackground = this.requirementBackground || this.primaryColor),
(this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor),
(this.requirementBorderSize = this.requirementBorderSize || '1'),
(this.requirementTextColor = this.requirementTextColor || this.primaryTextColor),
(this.relationColor = this.relationColor || this.lineColor),
(this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? Ye(this.secondaryColor, 30) : this.secondaryColor)),
(this.relationLabelColor = this.relationLabelColor || this.actorTextColor),
(this.git0 = this.git0 || this.primaryColor),
(this.git1 = this.git1 || this.secondaryColor),
(this.git2 = this.git2 || this.tertiaryColor),
(this.git3 = this.git3 || $(this.primaryColor, { h: -30 })),
(this.git4 = this.git4 || $(this.primaryColor, { h: -60 })),
(this.git5 = this.git5 || $(this.primaryColor, { h: -90 })),
(this.git6 = this.git6 || $(this.primaryColor, { h: 60 })),
(this.git7 = this.git7 || $(this.primaryColor, { h: 120 })),
this.darkMode
? ((this.git0 = Pe(this.git0, 25)),
(this.git1 = Pe(this.git1, 25)),
(this.git2 = Pe(this.git2, 25)),
(this.git3 = Pe(this.git3, 25)),
(this.git4 = Pe(this.git4, 25)),
(this.git5 = Pe(this.git5, 25)),
(this.git6 = Pe(this.git6, 25)),
(this.git7 = Pe(this.git7, 25)))
: ((this.git0 = Ye(this.git0, 25)),
(this.git1 = Ye(this.git1, 25)),
(this.git2 = Ye(this.git2, 25)),
(this.git3 = Ye(this.git3, 25)),
(this.git4 = Ye(this.git4, 25)),
(this.git5 = Ye(this.git5, 25)),
(this.git6 = Ye(this.git6, 25)),
(this.git7 = Ye(this.git7, 25))),
(this.gitInv0 = this.gitInv0 || Se(this.git0)),
(this.gitInv1 = this.gitInv1 || Se(this.git1)),
(this.gitInv2 = this.gitInv2 || Se(this.git2)),
(this.gitInv3 = this.gitInv3 || Se(this.git3)),
(this.gitInv4 = this.gitInv4 || Se(this.git4)),
(this.gitInv5 = this.gitInv5 || Se(this.git5)),
(this.gitInv6 = this.gitInv6 || Se(this.git6)),
(this.gitInv7 = this.gitInv7 || Se(this.git7)),
(this.branchLabelColor = this.branchLabelColor || (this.darkMode ? 'black' : this.labelTextColor)),
(this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor),
(this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor),
(this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor),
(this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor),
(this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor),
(this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor),
(this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor),
(this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor),
(this.tagLabelColor = this.tagLabelColor || this.primaryTextColor),
(this.tagLabelBackground = this.tagLabelBackground || this.primaryColor),
(this.tagLabelBorder = this.tagBorder || this.primaryBorderColor),
(this.tagLabelFontSize = this.tagLabelFontSize || '10px'),
(this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor),
(this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor),
(this.commitLabelFontSize = this.commitLabelFontSize || '10px'),
(this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Rs),
(this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || As);
}
calculate(e) {
if (typeof e != 'object') {
this.updateColors();
return;
}
const r = Object.keys(e);
r.forEach((n) => {
this[n] = e[n];
}),
this.updateColors(),
r.forEach((n) => {
this[n] = e[n];
});
}
};
const _de = (t) => {
const e = new dde();
return e.calculate(t), e;
};
let mde = class {
constructor() {
(this.background = '#333'),
(this.primaryColor = '#1f2020'),
(this.secondaryColor = Pe(this.primaryColor, 16)),
(this.tertiaryColor = $(this.primaryColor, { h: -160 })),
(this.primaryBorderColor = Se(this.background)),
(this.secondaryBorderColor = ir(this.secondaryColor, this.darkMode)),
(this.tertiaryBorderColor = ir(this.tertiaryColor, this.darkMode)),
(this.primaryTextColor = Se(this.primaryColor)),
(this.secondaryTextColor = Se(this.secondaryColor)),
(this.tertiaryTextColor = Se(this.tertiaryColor)),
(this.lineColor = Se(this.background)),
(this.textColor = Se(this.background)),
(this.mainBkg = '#1f2020'),
(this.secondBkg = 'calculated'),
(this.mainContrastColor = 'lightgrey'),
(this.darkTextColor = Pe(Se('#323D47'), 10)),
(this.lineColor = 'calculated'),
(this.border1 = '#81B1DB'),
(this.border2 = pa(255, 255, 255, 0.25)),
(this.arrowheadColor = 'calculated'),
(this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.labelBackground = '#181818'),
(this.textColor = '#ccc'),
(this.THEME_COLOR_LIMIT = 12),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = '#F9FFFE'),
(this.edgeLabelBackground = 'calculated'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'calculated'),
(this.actorLineColor = 'calculated'),
(this.signalColor = 'calculated'),
(this.signalTextColor = 'calculated'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = 'calculated'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = 'calculated'),
(this.activationBkgColor = 'calculated'),
(this.sequenceNumberColor = 'black'),
(this.sectionBkgColor = Ye('#EAE8D9', 30)),
(this.altSectionBkgColor = 'calculated'),
(this.sectionBkgColor2 = '#EAE8D9'),
(this.excludeBkgColor = Ye(this.sectionBkgColor, 10)),
(this.taskBorderColor = pa(255, 255, 255, 70)),
(this.taskBkgColor = 'calculated'),
(this.taskTextColor = 'calculated'),
(this.taskTextLightColor = 'calculated'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = pa(255, 255, 255, 50)),
(this.activeTaskBkgColor = '#81B1DB'),
(this.gridColor = 'calculated'),
(this.doneTaskBkgColor = 'calculated'),
(this.doneTaskBorderColor = 'grey'),
(this.critBorderColor = '#E83737'),
(this.critBkgColor = '#E83737'),
(this.taskTextDarkColor = 'calculated'),
(this.todayLineColor = '#DB5757'),
(this.personBorder = this.primaryBorderColor),
(this.personBkg = this.mainBkg),
(this.labelColor = 'calculated'),
(this.errorBkgColor = '#a44141'),
(this.errorTextColor = '#ddd');
}
updateColors() {
var e, r, n, i, a, l, u, d, m, p, E;
(this.secondBkg = Pe(this.mainBkg, 16)),
(this.lineColor = this.mainContrastColor),
(this.arrowheadColor = this.mainContrastColor),
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.edgeLabelBackground = Pe(this.labelBackground, 25)),
(this.actorBorder = this.border1),
(this.actorBkg = this.mainBkg),
(this.actorTextColor = this.mainContrastColor),
(this.actorLineColor = this.mainContrastColor),
(this.signalColor = this.mainContrastColor),
(this.signalTextColor = this.mainContrastColor),
(this.labelBoxBkgColor = this.actorBkg),
(this.labelBoxBorderColor = this.actorBorder),
(this.labelTextColor = this.mainContrastColor),
(this.loopTextColor = this.mainContrastColor),
(this.noteBorderColor = this.secondaryBorderColor),
(this.noteBkgColor = this.secondBkg),
(this.noteTextColor = this.secondaryTextColor),
(this.activationBorderColor = this.border1),
(this.activationBkgColor = this.secondBkg),
(this.altSectionBkgColor = this.background),
(this.taskBkgColor = Pe(this.mainBkg, 23)),
(this.taskTextColor = this.darkTextColor),
(this.taskTextLightColor = this.mainContrastColor),
(this.taskTextOutsideColor = this.taskTextLightColor),
(this.gridColor = this.mainContrastColor),
(this.doneTaskBkgColor = this.mainContrastColor),
(this.taskTextDarkColor = this.darkTextColor),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.transitionLabelColor = this.transitionLabelColor || this.textColor),
(this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor),
(this.stateBkg = this.stateBkg || this.mainBkg),
(this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg),
(this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor),
(this.altBackground = this.altBackground || '#555'),
(this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg),
(this.compositeBorder = this.compositeBorder || this.nodeBorder),
(this.innerEndBackground = this.primaryBorderColor),
(this.specialStateColor = '#f4f4f4'),
(this.errorBkgColor = this.errorBkgColor || this.tertiaryColor),
(this.errorTextColor = this.errorTextColor || this.tertiaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = $(this.primaryColor, { h: 64 })),
(this.fillType3 = $(this.secondaryColor, { h: 64 })),
(this.fillType4 = $(this.primaryColor, { h: -64 })),
(this.fillType5 = $(this.secondaryColor, { h: -64 })),
(this.fillType6 = $(this.primaryColor, { h: 128 })),
(this.fillType7 = $(this.secondaryColor, { h: 128 })),
(this.cScale1 = this.cScale1 || '#0b0000'),
(this.cScale2 = this.cScale2 || '#4d1037'),
(this.cScale3 = this.cScale3 || '#3f5258'),
(this.cScale4 = this.cScale4 || '#4f2f1b'),
(this.cScale5 = this.cScale5 || '#6e0a0a'),
(this.cScale6 = this.cScale6 || '#3b0048'),
(this.cScale7 = this.cScale7 || '#995a01'),
(this.cScale8 = this.cScale8 || '#154706'),
(this.cScale9 = this.cScale9 || '#161722'),
(this.cScale10 = this.cScale10 || '#00296f'),
(this.cScale11 = this.cScale11 || '#01629c'),
(this.cScale12 = this.cScale12 || '#010029'),
(this.cScale0 = this.cScale0 || this.primaryColor),
(this.cScale1 = this.cScale1 || this.secondaryColor),
(this.cScale2 = this.cScale2 || this.tertiaryColor),
(this.cScale3 = this.cScale3 || $(this.primaryColor, { h: 30 })),
(this.cScale4 = this.cScale4 || $(this.primaryColor, { h: 60 })),
(this.cScale5 = this.cScale5 || $(this.primaryColor, { h: 90 })),
(this.cScale6 = this.cScale6 || $(this.primaryColor, { h: 120 })),
(this.cScale7 = this.cScale7 || $(this.primaryColor, { h: 150 })),
(this.cScale8 = this.cScale8 || $(this.primaryColor, { h: 210 })),
(this.cScale9 = this.cScale9 || $(this.primaryColor, { h: 270 })),
(this.cScale10 = this.cScale10 || $(this.primaryColor, { h: 300 })),
(this.cScale11 = this.cScale11 || $(this.primaryColor, { h: 330 }));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleInv' + f] = this['cScaleInv' + f] || Se(this['cScale' + f]);
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScalePeer' + f] = this['cScalePeer' + f] || Pe(this['cScale' + f], 10);
for (let f = 0; f < 5; f++)
(this['surface' + f] = this['surface' + f] || $(this.mainBkg, { h: 30, s: -30, l: -(-10 + f * 4) })),
(this['surfacePeer' + f] = this['surfacePeer' + f] || $(this.mainBkg, { h: 30, s: -30, l: -(-7 + f * 4) }));
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? 'black' : this.labelTextColor);
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleLabel' + f] = this['cScaleLabel' + f] || this.scaleLabelColor;
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['pie' + f] = this['cScale' + f];
(this.pieTitleTextSize = this.pieTitleTextSize || '25px'),
(this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor),
(this.pieSectionTextSize = this.pieSectionTextSize || '17px'),
(this.pieSectionTextColor = this.pieSectionTextColor || this.textColor),
(this.pieLegendTextSize = this.pieLegendTextSize || '17px'),
(this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor),
(this.pieStrokeColor = this.pieStrokeColor || 'black'),
(this.pieStrokeWidth = this.pieStrokeWidth || '2px'),
(this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || '2px'),
(this.pieOuterStrokeColor = this.pieOuterStrokeColor || 'black'),
(this.pieOpacity = this.pieOpacity || '0.7'),
(this.quadrant1Fill = this.quadrant1Fill || this.primaryColor),
(this.quadrant2Fill = this.quadrant2Fill || $(this.primaryColor, { r: 5, g: 5, b: 5 })),
(this.quadrant3Fill = this.quadrant3Fill || $(this.primaryColor, { r: 10, g: 10, b: 10 })),
(this.quadrant4Fill = this.quadrant4Fill || $(this.primaryColor, { r: 15, g: 15, b: 15 })),
(this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor),
(this.quadrant2TextFill = this.quadrant2TextFill || $(this.primaryTextColor, { r: -5, g: -5, b: -5 })),
(this.quadrant3TextFill = this.quadrant3TextFill || $(this.primaryTextColor, { r: -10, g: -10, b: -10 })),
(this.quadrant4TextFill = this.quadrant4TextFill || $(this.primaryTextColor, { r: -15, g: -15, b: -15 })),
(this.quadrantPointFill = this.quadrantPointFill || ka(this.quadrant1Fill) ? Pe(this.quadrant1Fill) : Ye(this.quadrant1Fill)),
(this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor),
(this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor),
(this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor),
(this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor),
(this.xyChart = {
backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
xAxisTitleColor: ((n = this.xyChart) == null ? void 0 : n.xAxisTitleColor) || this.primaryTextColor,
xAxisLabelColor: ((i = this.xyChart) == null ? void 0 : i.xAxisLabelColor) || this.primaryTextColor,
xAxisTickColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTickColor) || this.primaryTextColor,
xAxisLineColor: ((l = this.xyChart) == null ? void 0 : l.xAxisLineColor) || this.primaryTextColor,
yAxisTitleColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTitleColor) || this.primaryTextColor,
yAxisLabelColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLabelColor) || this.primaryTextColor,
yAxisTickColor: ((m = this.xyChart) == null ? void 0 : m.yAxisTickColor) || this.primaryTextColor,
yAxisLineColor: ((p = this.xyChart) == null ? void 0 : p.yAxisLineColor) || this.primaryTextColor,
plotColorPalette:
((E = this.xyChart) == null ? void 0 : E.plotColorPalette) ||
'#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22',
}),
(this.classText = this.primaryTextColor),
(this.requirementBackground = this.requirementBackground || this.primaryColor),
(this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor),
(this.requirementBorderSize = this.requirementBorderSize || '1'),
(this.requirementTextColor = this.requirementTextColor || this.primaryTextColor),
(this.relationColor = this.relationColor || this.lineColor),
(this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? Ye(this.secondaryColor, 30) : this.secondaryColor)),
(this.relationLabelColor = this.relationLabelColor || this.actorTextColor),
(this.git0 = Pe(this.secondaryColor, 20)),
(this.git1 = Pe(this.pie2 || this.secondaryColor, 20)),
(this.git2 = Pe(this.pie3 || this.tertiaryColor, 20)),
(this.git3 = Pe(this.pie4 || $(this.primaryColor, { h: -30 }), 20)),
(this.git4 = Pe(this.pie5 || $(this.primaryColor, { h: -60 }), 20)),
(this.git5 = Pe(this.pie6 || $(this.primaryColor, { h: -90 }), 10)),
(this.git6 = Pe(this.pie7 || $(this.primaryColor, { h: 60 }), 10)),
(this.git7 = Pe(this.pie8 || $(this.primaryColor, { h: 120 }), 20)),
(this.gitInv0 = this.gitInv0 || Se(this.git0)),
(this.gitInv1 = this.gitInv1 || Se(this.git1)),
(this.gitInv2 = this.gitInv2 || Se(this.git2)),
(this.gitInv3 = this.gitInv3 || Se(this.git3)),
(this.gitInv4 = this.gitInv4 || Se(this.git4)),
(this.gitInv5 = this.gitInv5 || Se(this.git5)),
(this.gitInv6 = this.gitInv6 || Se(this.git6)),
(this.gitInv7 = this.gitInv7 || Se(this.git7)),
(this.gitBranchLabel0 = this.gitBranchLabel0 || Se(this.labelTextColor)),
(this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor),
(this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor),
(this.gitBranchLabel3 = this.gitBranchLabel3 || Se(this.labelTextColor)),
(this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor),
(this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor),
(this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor),
(this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor),
(this.tagLabelColor = this.tagLabelColor || this.primaryTextColor),
(this.tagLabelBackground = this.tagLabelBackground || this.primaryColor),
(this.tagLabelBorder = this.tagBorder || this.primaryBorderColor),
(this.tagLabelFontSize = this.tagLabelFontSize || '10px'),
(this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor),
(this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor),
(this.commitLabelFontSize = this.commitLabelFontSize || '10px'),
(this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Pe(this.background, 12)),
(this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || Pe(this.background, 2));
}
calculate(e) {
if (typeof e != 'object') {
this.updateColors();
return;
}
const r = Object.keys(e);
r.forEach((n) => {
this[n] = e[n];
}),
this.updateColors(),
r.forEach((n) => {
this[n] = e[n];
});
}
};
const pde = (t) => {
const e = new mde();
return e.calculate(t), e;
};
let hde = class {
constructor() {
(this.background = '#f4f4f4'),
(this.primaryColor = '#ECECFF'),
(this.secondaryColor = $(this.primaryColor, { h: 120 })),
(this.secondaryColor = '#ffffde'),
(this.tertiaryColor = $(this.primaryColor, { h: -160 })),
(this.primaryBorderColor = ir(this.primaryColor, this.darkMode)),
(this.secondaryBorderColor = ir(this.secondaryColor, this.darkMode)),
(this.tertiaryBorderColor = ir(this.tertiaryColor, this.darkMode)),
(this.primaryTextColor = Se(this.primaryColor)),
(this.secondaryTextColor = Se(this.secondaryColor)),
(this.tertiaryTextColor = Se(this.tertiaryColor)),
(this.lineColor = Se(this.background)),
(this.textColor = Se(this.background)),
(this.background = 'white'),
(this.mainBkg = '#ECECFF'),
(this.secondBkg = '#ffffde'),
(this.lineColor = '#333333'),
(this.border1 = '#9370DB'),
(this.border2 = '#aaaa33'),
(this.arrowheadColor = '#333333'),
(this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.labelBackground = '#e8e8e8'),
(this.textColor = '#333'),
(this.THEME_COLOR_LIMIT = 12),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = 'calculated'),
(this.edgeLabelBackground = 'calculated'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'black'),
(this.actorLineColor = 'grey'),
(this.signalColor = 'calculated'),
(this.signalTextColor = 'calculated'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = 'calculated'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = '#666'),
(this.activationBkgColor = '#f4f4f4'),
(this.sequenceNumberColor = 'white'),
(this.sectionBkgColor = 'calculated'),
(this.altSectionBkgColor = 'calculated'),
(this.sectionBkgColor2 = 'calculated'),
(this.excludeBkgColor = '#eeeeee'),
(this.taskBorderColor = 'calculated'),
(this.taskBkgColor = 'calculated'),
(this.taskTextLightColor = 'calculated'),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextDarkColor = 'calculated'),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.taskTextClickableColor = 'calculated'),
(this.activeTaskBorderColor = 'calculated'),
(this.activeTaskBkgColor = 'calculated'),
(this.gridColor = 'calculated'),
(this.doneTaskBkgColor = 'calculated'),
(this.doneTaskBorderColor = 'calculated'),
(this.critBorderColor = 'calculated'),
(this.critBkgColor = 'calculated'),
(this.todayLineColor = 'calculated'),
(this.sectionBkgColor = pa(102, 102, 255, 0.49)),
(this.altSectionBkgColor = 'white'),
(this.sectionBkgColor2 = '#fff400'),
(this.taskBorderColor = '#534fbc'),
(this.taskBkgColor = '#8a90dd'),
(this.taskTextLightColor = 'white'),
(this.taskTextColor = 'calculated'),
(this.taskTextDarkColor = 'black'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = '#534fbc'),
(this.activeTaskBkgColor = '#bfc7ff'),
(this.gridColor = 'lightgrey'),
(this.doneTaskBkgColor = 'lightgrey'),
(this.doneTaskBorderColor = 'grey'),
(this.critBorderColor = '#ff8888'),
(this.critBkgColor = 'red'),
(this.todayLineColor = 'red'),
(this.personBorder = this.primaryBorderColor),
(this.personBkg = this.mainBkg),
(this.labelColor = 'black'),
(this.errorBkgColor = '#552222'),
(this.errorTextColor = '#552222'),
this.updateColors();
}
updateColors() {
var e, r, n, i, a, l, u, d, m, p, E;
(this.cScale0 = this.cScale0 || this.primaryColor),
(this.cScale1 = this.cScale1 || this.secondaryColor),
(this.cScale2 = this.cScale2 || this.tertiaryColor),
(this.cScale3 = this.cScale3 || $(this.primaryColor, { h: 30 })),
(this.cScale4 = this.cScale4 || $(this.primaryColor, { h: 60 })),
(this.cScale5 = this.cScale5 || $(this.primaryColor, { h: 90 })),
(this.cScale6 = this.cScale6 || $(this.primaryColor, { h: 120 })),
(this.cScale7 = this.cScale7 || $(this.primaryColor, { h: 150 })),
(this.cScale8 = this.cScale8 || $(this.primaryColor, { h: 210 })),
(this.cScale9 = this.cScale9 || $(this.primaryColor, { h: 270 })),
(this.cScale10 = this.cScale10 || $(this.primaryColor, { h: 300 })),
(this.cScale11 = this.cScale11 || $(this.primaryColor, { h: 330 })),
(this.cScalePeer1 = this.cScalePeer1 || Ye(this.secondaryColor, 45)),
(this.cScalePeer2 = this.cScalePeer2 || Ye(this.tertiaryColor, 40));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++)
(this['cScale' + f] = Ye(this['cScale' + f], 10)), (this['cScalePeer' + f] = this['cScalePeer' + f] || Ye(this['cScale' + f], 25));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleInv' + f] = this['cScaleInv' + f] || $(this['cScale' + f], { h: 180 });
for (let f = 0; f < 5; f++)
(this['surface' + f] = this['surface' + f] || $(this.mainBkg, { h: 30, l: -(5 + f * 5) })),
(this['surfacePeer' + f] = this['surfacePeer' + f] || $(this.mainBkg, { h: 30, l: -(7 + f * 5) }));
if (
((this.scaleLabelColor = this.scaleLabelColor !== 'calculated' && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor),
this.labelTextColor !== 'calculated')
) {
(this.cScaleLabel0 = this.cScaleLabel0 || Se(this.labelTextColor)), (this.cScaleLabel3 = this.cScaleLabel3 || Se(this.labelTextColor));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleLabel' + f] = this['cScaleLabel' + f] || this.labelTextColor;
}
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.titleColor = this.textColor),
(this.edgeLabelBackground = this.labelBackground),
(this.actorBorder = Pe(this.border1, 23)),
(this.actorBkg = this.mainBkg),
(this.labelBoxBkgColor = this.actorBkg),
(this.signalColor = this.textColor),
(this.signalTextColor = this.textColor),
(this.labelBoxBorderColor = this.actorBorder),
(this.labelTextColor = this.actorTextColor),
(this.loopTextColor = this.actorTextColor),
(this.noteBorderColor = this.border2),
(this.noteTextColor = this.actorTextColor),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.transitionLabelColor = this.transitionLabelColor || this.textColor),
(this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor),
(this.stateBkg = this.stateBkg || this.mainBkg),
(this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg),
(this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor),
(this.altBackground = this.altBackground || '#f0f0f0'),
(this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg),
(this.compositeBorder = this.compositeBorder || this.nodeBorder),
(this.innerEndBackground = this.nodeBorder),
(this.specialStateColor = this.lineColor),
(this.errorBkgColor = this.errorBkgColor || this.tertiaryColor),
(this.errorTextColor = this.errorTextColor || this.tertiaryTextColor),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.classText = this.primaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = $(this.primaryColor, { h: 64 })),
(this.fillType3 = $(this.secondaryColor, { h: 64 })),
(this.fillType4 = $(this.primaryColor, { h: -64 })),
(this.fillType5 = $(this.secondaryColor, { h: -64 })),
(this.fillType6 = $(this.primaryColor, { h: 128 })),
(this.fillType7 = $(this.secondaryColor, { h: 128 })),
(this.pie1 = this.pie1 || this.primaryColor),
(this.pie2 = this.pie2 || this.secondaryColor),
(this.pie3 = this.pie3 || $(this.tertiaryColor, { l: -40 })),
(this.pie4 = this.pie4 || $(this.primaryColor, { l: -10 })),
(this.pie5 = this.pie5 || $(this.secondaryColor, { l: -30 })),
(this.pie6 = this.pie6 || $(this.tertiaryColor, { l: -20 })),
(this.pie7 = this.pie7 || $(this.primaryColor, { h: 60, l: -20 })),
(this.pie8 = this.pie8 || $(this.primaryColor, { h: -60, l: -40 })),
(this.pie9 = this.pie9 || $(this.primaryColor, { h: 120, l: -40 })),
(this.pie10 = this.pie10 || $(this.primaryColor, { h: 60, l: -40 })),
(this.pie11 = this.pie11 || $(this.primaryColor, { h: -90, l: -40 })),
(this.pie12 = this.pie12 || $(this.primaryColor, { h: 120, l: -30 })),
(this.pieTitleTextSize = this.pieTitleTextSize || '25px'),
(this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor),
(this.pieSectionTextSize = this.pieSectionTextSize || '17px'),
(this.pieSectionTextColor = this.pieSectionTextColor || this.textColor),
(this.pieLegendTextSize = this.pieLegendTextSize || '17px'),
(this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor),
(this.pieStrokeColor = this.pieStrokeColor || 'black'),
(this.pieStrokeWidth = this.pieStrokeWidth || '2px'),
(this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || '2px'),
(this.pieOuterStrokeColor = this.pieOuterStrokeColor || 'black'),
(this.pieOpacity = this.pieOpacity || '0.7'),
(this.quadrant1Fill = this.quadrant1Fill || this.primaryColor),
(this.quadrant2Fill = this.quadrant2Fill || $(this.primaryColor, { r: 5, g: 5, b: 5 })),
(this.quadrant3Fill = this.quadrant3Fill || $(this.primaryColor, { r: 10, g: 10, b: 10 })),
(this.quadrant4Fill = this.quadrant4Fill || $(this.primaryColor, { r: 15, g: 15, b: 15 })),
(this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor),
(this.quadrant2TextFill = this.quadrant2TextFill || $(this.primaryTextColor, { r: -5, g: -5, b: -5 })),
(this.quadrant3TextFill = this.quadrant3TextFill || $(this.primaryTextColor, { r: -10, g: -10, b: -10 })),
(this.quadrant4TextFill = this.quadrant4TextFill || $(this.primaryTextColor, { r: -15, g: -15, b: -15 })),
(this.quadrantPointFill = this.quadrantPointFill || ka(this.quadrant1Fill) ? Pe(this.quadrant1Fill) : Ye(this.quadrant1Fill)),
(this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor),
(this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor),
(this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor),
(this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor),
(this.xyChart = {
backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
xAxisTitleColor: ((n = this.xyChart) == null ? void 0 : n.xAxisTitleColor) || this.primaryTextColor,
xAxisLabelColor: ((i = this.xyChart) == null ? void 0 : i.xAxisLabelColor) || this.primaryTextColor,
xAxisTickColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTickColor) || this.primaryTextColor,
xAxisLineColor: ((l = this.xyChart) == null ? void 0 : l.xAxisLineColor) || this.primaryTextColor,
yAxisTitleColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTitleColor) || this.primaryTextColor,
yAxisLabelColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLabelColor) || this.primaryTextColor,
yAxisTickColor: ((m = this.xyChart) == null ? void 0 : m.yAxisTickColor) || this.primaryTextColor,
yAxisLineColor: ((p = this.xyChart) == null ? void 0 : p.yAxisLineColor) || this.primaryTextColor,
plotColorPalette:
((E = this.xyChart) == null ? void 0 : E.plotColorPalette) ||
'#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3',
}),
(this.requirementBackground = this.requirementBackground || this.primaryColor),
(this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor),
(this.requirementBorderSize = this.requirementBorderSize || '1'),
(this.requirementTextColor = this.requirementTextColor || this.primaryTextColor),
(this.relationColor = this.relationColor || this.lineColor),
(this.relationLabelBackground = this.relationLabelBackground || this.labelBackground),
(this.relationLabelColor = this.relationLabelColor || this.actorTextColor),
(this.git0 = this.git0 || this.primaryColor),
(this.git1 = this.git1 || this.secondaryColor),
(this.git2 = this.git2 || this.tertiaryColor),
(this.git3 = this.git3 || $(this.primaryColor, { h: -30 })),
(this.git4 = this.git4 || $(this.primaryColor, { h: -60 })),
(this.git5 = this.git5 || $(this.primaryColor, { h: -90 })),
(this.git6 = this.git6 || $(this.primaryColor, { h: 60 })),
(this.git7 = this.git7 || $(this.primaryColor, { h: 120 })),
this.darkMode
? ((this.git0 = Pe(this.git0, 25)),
(this.git1 = Pe(this.git1, 25)),
(this.git2 = Pe(this.git2, 25)),
(this.git3 = Pe(this.git3, 25)),
(this.git4 = Pe(this.git4, 25)),
(this.git5 = Pe(this.git5, 25)),
(this.git6 = Pe(this.git6, 25)),
(this.git7 = Pe(this.git7, 25)))
: ((this.git0 = Ye(this.git0, 25)),
(this.git1 = Ye(this.git1, 25)),
(this.git2 = Ye(this.git2, 25)),
(this.git3 = Ye(this.git3, 25)),
(this.git4 = Ye(this.git4, 25)),
(this.git5 = Ye(this.git5, 25)),
(this.git6 = Ye(this.git6, 25)),
(this.git7 = Ye(this.git7, 25))),
(this.gitInv0 = this.gitInv0 || Ye(Se(this.git0), 25)),
(this.gitInv1 = this.gitInv1 || Se(this.git1)),
(this.gitInv2 = this.gitInv2 || Se(this.git2)),
(this.gitInv3 = this.gitInv3 || Se(this.git3)),
(this.gitInv4 = this.gitInv4 || Se(this.git4)),
(this.gitInv5 = this.gitInv5 || Se(this.git5)),
(this.gitInv6 = this.gitInv6 || Se(this.git6)),
(this.gitInv7 = this.gitInv7 || Se(this.git7)),
(this.gitBranchLabel0 = this.gitBranchLabel0 || Se(this.labelTextColor)),
(this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor),
(this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor),
(this.gitBranchLabel3 = this.gitBranchLabel3 || Se(this.labelTextColor)),
(this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor),
(this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor),
(this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor),
(this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor),
(this.tagLabelColor = this.tagLabelColor || this.primaryTextColor),
(this.tagLabelBackground = this.tagLabelBackground || this.primaryColor),
(this.tagLabelBorder = this.tagBorder || this.primaryBorderColor),
(this.tagLabelFontSize = this.tagLabelFontSize || '10px'),
(this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor),
(this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor),
(this.commitLabelFontSize = this.commitLabelFontSize || '10px'),
(this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Rs),
(this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || As);
}
calculate(e) {
if (typeof e != 'object') {
this.updateColors();
return;
}
const r = Object.keys(e);
r.forEach((n) => {
this[n] = e[n];
}),
this.updateColors(),
r.forEach((n) => {
this[n] = e[n];
});
}
};
const gde = (t) => {
const e = new hde();
return e.calculate(t), e;
};
let fde = class {
constructor() {
(this.background = '#f4f4f4'),
(this.primaryColor = '#cde498'),
(this.secondaryColor = '#cdffb2'),
(this.background = 'white'),
(this.mainBkg = '#cde498'),
(this.secondBkg = '#cdffb2'),
(this.lineColor = 'green'),
(this.border1 = '#13540c'),
(this.border2 = '#6eaa49'),
(this.arrowheadColor = 'green'),
(this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.tertiaryColor = Pe('#cde498', 10)),
(this.primaryBorderColor = ir(this.primaryColor, this.darkMode)),
(this.secondaryBorderColor = ir(this.secondaryColor, this.darkMode)),
(this.tertiaryBorderColor = ir(this.tertiaryColor, this.darkMode)),
(this.primaryTextColor = Se(this.primaryColor)),
(this.secondaryTextColor = Se(this.secondaryColor)),
(this.tertiaryTextColor = Se(this.primaryColor)),
(this.lineColor = Se(this.background)),
(this.textColor = Se(this.background)),
(this.THEME_COLOR_LIMIT = 12),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = '#333'),
(this.edgeLabelBackground = '#e8e8e8'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'black'),
(this.actorLineColor = 'grey'),
(this.signalColor = '#333'),
(this.signalTextColor = '#333'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = '#326932'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = '#666'),
(this.activationBkgColor = '#f4f4f4'),
(this.sequenceNumberColor = 'white'),
(this.sectionBkgColor = '#6eaa49'),
(this.altSectionBkgColor = 'white'),
(this.sectionBkgColor2 = '#6eaa49'),
(this.excludeBkgColor = '#eeeeee'),
(this.taskBorderColor = 'calculated'),
(this.taskBkgColor = '#487e3a'),
(this.taskTextLightColor = 'white'),
(this.taskTextColor = 'calculated'),
(this.taskTextDarkColor = 'black'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = 'calculated'),
(this.activeTaskBkgColor = 'calculated'),
(this.gridColor = 'lightgrey'),
(this.doneTaskBkgColor = 'lightgrey'),
(this.doneTaskBorderColor = 'grey'),
(this.critBorderColor = '#ff8888'),
(this.critBkgColor = 'red'),
(this.todayLineColor = 'red'),
(this.personBorder = this.primaryBorderColor),
(this.personBkg = this.mainBkg),
(this.labelColor = 'black'),
(this.errorBkgColor = '#552222'),
(this.errorTextColor = '#552222');
}
updateColors() {
var e, r, n, i, a, l, u, d, m, p, E;
(this.actorBorder = Ye(this.mainBkg, 20)),
(this.actorBkg = this.mainBkg),
(this.labelBoxBkgColor = this.actorBkg),
(this.labelTextColor = this.actorTextColor),
(this.loopTextColor = this.actorTextColor),
(this.noteBorderColor = this.border2),
(this.noteTextColor = this.actorTextColor),
(this.cScale0 = this.cScale0 || this.primaryColor),
(this.cScale1 = this.cScale1 || this.secondaryColor),
(this.cScale2 = this.cScale2 || this.tertiaryColor),
(this.cScale3 = this.cScale3 || $(this.primaryColor, { h: 30 })),
(this.cScale4 = this.cScale4 || $(this.primaryColor, { h: 60 })),
(this.cScale5 = this.cScale5 || $(this.primaryColor, { h: 90 })),
(this.cScale6 = this.cScale6 || $(this.primaryColor, { h: 120 })),
(this.cScale7 = this.cScale7 || $(this.primaryColor, { h: 150 })),
(this.cScale8 = this.cScale8 || $(this.primaryColor, { h: 210 })),
(this.cScale9 = this.cScale9 || $(this.primaryColor, { h: 270 })),
(this.cScale10 = this.cScale10 || $(this.primaryColor, { h: 300 })),
(this.cScale11 = this.cScale11 || $(this.primaryColor, { h: 330 })),
(this.cScalePeer1 = this.cScalePeer1 || Ye(this.secondaryColor, 45)),
(this.cScalePeer2 = this.cScalePeer2 || Ye(this.tertiaryColor, 40));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++)
(this['cScale' + f] = Ye(this['cScale' + f], 10)), (this['cScalePeer' + f] = this['cScalePeer' + f] || Ye(this['cScale' + f], 25));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleInv' + f] = this['cScaleInv' + f] || $(this['cScale' + f], { h: 180 });
this.scaleLabelColor = this.scaleLabelColor !== 'calculated' && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleLabel' + f] = this['cScaleLabel' + f] || this.scaleLabelColor;
for (let f = 0; f < 5; f++)
(this['surface' + f] = this['surface' + f] || $(this.mainBkg, { h: 30, s: -30, l: -(5 + f * 5) })),
(this['surfacePeer' + f] = this['surfacePeer' + f] || $(this.mainBkg, { h: 30, s: -30, l: -(8 + f * 5) }));
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.taskBorderColor = this.border1),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.activeTaskBorderColor = this.taskBorderColor),
(this.activeTaskBkgColor = this.mainBkg),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.transitionLabelColor = this.transitionLabelColor || this.textColor),
(this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor),
(this.stateBkg = this.stateBkg || this.mainBkg),
(this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg),
(this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor),
(this.altBackground = this.altBackground || '#f0f0f0'),
(this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg),
(this.compositeBorder = this.compositeBorder || this.nodeBorder),
(this.innerEndBackground = this.primaryBorderColor),
(this.specialStateColor = this.lineColor),
(this.errorBkgColor = this.errorBkgColor || this.tertiaryColor),
(this.errorTextColor = this.errorTextColor || this.tertiaryTextColor),
(this.transitionColor = this.transitionColor || this.lineColor),
(this.classText = this.primaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = $(this.primaryColor, { h: 64 })),
(this.fillType3 = $(this.secondaryColor, { h: 64 })),
(this.fillType4 = $(this.primaryColor, { h: -64 })),
(this.fillType5 = $(this.secondaryColor, { h: -64 })),
(this.fillType6 = $(this.primaryColor, { h: 128 })),
(this.fillType7 = $(this.secondaryColor, { h: 128 })),
(this.pie1 = this.pie1 || this.primaryColor),
(this.pie2 = this.pie2 || this.secondaryColor),
(this.pie3 = this.pie3 || this.tertiaryColor),
(this.pie4 = this.pie4 || $(this.primaryColor, { l: -30 })),
(this.pie5 = this.pie5 || $(this.secondaryColor, { l: -30 })),
(this.pie6 = this.pie6 || $(this.tertiaryColor, { h: 40, l: -40 })),
(this.pie7 = this.pie7 || $(this.primaryColor, { h: 60, l: -10 })),
(this.pie8 = this.pie8 || $(this.primaryColor, { h: -60, l: -10 })),
(this.pie9 = this.pie9 || $(this.primaryColor, { h: 120, l: 0 })),
(this.pie10 = this.pie10 || $(this.primaryColor, { h: 60, l: -50 })),
(this.pie11 = this.pie11 || $(this.primaryColor, { h: -60, l: -50 })),
(this.pie12 = this.pie12 || $(this.primaryColor, { h: 120, l: -50 })),
(this.pieTitleTextSize = this.pieTitleTextSize || '25px'),
(this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor),
(this.pieSectionTextSize = this.pieSectionTextSize || '17px'),
(this.pieSectionTextColor = this.pieSectionTextColor || this.textColor),
(this.pieLegendTextSize = this.pieLegendTextSize || '17px'),
(this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor),
(this.pieStrokeColor = this.pieStrokeColor || 'black'),
(this.pieStrokeWidth = this.pieStrokeWidth || '2px'),
(this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || '2px'),
(this.pieOuterStrokeColor = this.pieOuterStrokeColor || 'black'),
(this.pieOpacity = this.pieOpacity || '0.7'),
(this.quadrant1Fill = this.quadrant1Fill || this.primaryColor),
(this.quadrant2Fill = this.quadrant2Fill || $(this.primaryColor, { r: 5, g: 5, b: 5 })),
(this.quadrant3Fill = this.quadrant3Fill || $(this.primaryColor, { r: 10, g: 10, b: 10 })),
(this.quadrant4Fill = this.quadrant4Fill || $(this.primaryColor, { r: 15, g: 15, b: 15 })),
(this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor),
(this.quadrant2TextFill = this.quadrant2TextFill || $(this.primaryTextColor, { r: -5, g: -5, b: -5 })),
(this.quadrant3TextFill = this.quadrant3TextFill || $(this.primaryTextColor, { r: -10, g: -10, b: -10 })),
(this.quadrant4TextFill = this.quadrant4TextFill || $(this.primaryTextColor, { r: -15, g: -15, b: -15 })),
(this.quadrantPointFill = this.quadrantPointFill || ka(this.quadrant1Fill) ? Pe(this.quadrant1Fill) : Ye(this.quadrant1Fill)),
(this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor),
(this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor),
(this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor),
(this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor),
(this.xyChart = {
backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
xAxisTitleColor: ((n = this.xyChart) == null ? void 0 : n.xAxisTitleColor) || this.primaryTextColor,
xAxisLabelColor: ((i = this.xyChart) == null ? void 0 : i.xAxisLabelColor) || this.primaryTextColor,
xAxisTickColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTickColor) || this.primaryTextColor,
xAxisLineColor: ((l = this.xyChart) == null ? void 0 : l.xAxisLineColor) || this.primaryTextColor,
yAxisTitleColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTitleColor) || this.primaryTextColor,
yAxisLabelColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLabelColor) || this.primaryTextColor,
yAxisTickColor: ((m = this.xyChart) == null ? void 0 : m.yAxisTickColor) || this.primaryTextColor,
yAxisLineColor: ((p = this.xyChart) == null ? void 0 : p.yAxisLineColor) || this.primaryTextColor,
plotColorPalette:
((E = this.xyChart) == null ? void 0 : E.plotColorPalette) ||
'#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176',
}),
(this.requirementBackground = this.requirementBackground || this.primaryColor),
(this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor),
(this.requirementBorderSize = this.requirementBorderSize || '1'),
(this.requirementTextColor = this.requirementTextColor || this.primaryTextColor),
(this.relationColor = this.relationColor || this.lineColor),
(this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground),
(this.relationLabelColor = this.relationLabelColor || this.actorTextColor),
(this.git0 = this.git0 || this.primaryColor),
(this.git1 = this.git1 || this.secondaryColor),
(this.git2 = this.git2 || this.tertiaryColor),
(this.git3 = this.git3 || $(this.primaryColor, { h: -30 })),
(this.git4 = this.git4 || $(this.primaryColor, { h: -60 })),
(this.git5 = this.git5 || $(this.primaryColor, { h: -90 })),
(this.git6 = this.git6 || $(this.primaryColor, { h: 60 })),
(this.git7 = this.git7 || $(this.primaryColor, { h: 120 })),
this.darkMode
? ((this.git0 = Pe(this.git0, 25)),
(this.git1 = Pe(this.git1, 25)),
(this.git2 = Pe(this.git2, 25)),
(this.git3 = Pe(this.git3, 25)),
(this.git4 = Pe(this.git4, 25)),
(this.git5 = Pe(this.git5, 25)),
(this.git6 = Pe(this.git6, 25)),
(this.git7 = Pe(this.git7, 25)))
: ((this.git0 = Ye(this.git0, 25)),
(this.git1 = Ye(this.git1, 25)),
(this.git2 = Ye(this.git2, 25)),
(this.git3 = Ye(this.git3, 25)),
(this.git4 = Ye(this.git4, 25)),
(this.git5 = Ye(this.git5, 25)),
(this.git6 = Ye(this.git6, 25)),
(this.git7 = Ye(this.git7, 25))),
(this.gitInv0 = this.gitInv0 || Se(this.git0)),
(this.gitInv1 = this.gitInv1 || Se(this.git1)),
(this.gitInv2 = this.gitInv2 || Se(this.git2)),
(this.gitInv3 = this.gitInv3 || Se(this.git3)),
(this.gitInv4 = this.gitInv4 || Se(this.git4)),
(this.gitInv5 = this.gitInv5 || Se(this.git5)),
(this.gitInv6 = this.gitInv6 || Se(this.git6)),
(this.gitInv7 = this.gitInv7 || Se(this.git7)),
(this.gitBranchLabel0 = this.gitBranchLabel0 || Se(this.labelTextColor)),
(this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor),
(this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor),
(this.gitBranchLabel3 = this.gitBranchLabel3 || Se(this.labelTextColor)),
(this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor),
(this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor),
(this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor),
(this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor),
(this.tagLabelColor = this.tagLabelColor || this.primaryTextColor),
(this.tagLabelBackground = this.tagLabelBackground || this.primaryColor),
(this.tagLabelBorder = this.tagBorder || this.primaryBorderColor),
(this.tagLabelFontSize = this.tagLabelFontSize || '10px'),
(this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor),
(this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor),
(this.commitLabelFontSize = this.commitLabelFontSize || '10px'),
(this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Rs),
(this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || As);
}
calculate(e) {
if (typeof e != 'object') {
this.updateColors();
return;
}
const r = Object.keys(e);
r.forEach((n) => {
this[n] = e[n];
}),
this.updateColors(),
r.forEach((n) => {
this[n] = e[n];
});
}
};
const Ede = (t) => {
const e = new fde();
return e.calculate(t), e;
};
class Sde {
constructor() {
(this.primaryColor = '#eee'),
(this.contrast = '#707070'),
(this.secondaryColor = Pe(this.contrast, 55)),
(this.background = '#ffffff'),
(this.tertiaryColor = $(this.primaryColor, { h: -160 })),
(this.primaryBorderColor = ir(this.primaryColor, this.darkMode)),
(this.secondaryBorderColor = ir(this.secondaryColor, this.darkMode)),
(this.tertiaryBorderColor = ir(this.tertiaryColor, this.darkMode)),
(this.primaryTextColor = Se(this.primaryColor)),
(this.secondaryTextColor = Se(this.secondaryColor)),
(this.tertiaryTextColor = Se(this.tertiaryColor)),
(this.lineColor = Se(this.background)),
(this.textColor = Se(this.background)),
(this.mainBkg = '#eee'),
(this.secondBkg = 'calculated'),
(this.lineColor = '#666'),
(this.border1 = '#999'),
(this.border2 = 'calculated'),
(this.note = '#ffa'),
(this.text = '#333'),
(this.critical = '#d42'),
(this.done = '#bbb'),
(this.arrowheadColor = '#333333'),
(this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.THEME_COLOR_LIMIT = 12),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = 'calculated'),
(this.edgeLabelBackground = 'white'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'calculated'),
(this.actorLineColor = 'calculated'),
(this.signalColor = 'calculated'),
(this.signalTextColor = 'calculated'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = 'calculated'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = 'calculated'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = '#666'),
(this.activationBkgColor = '#f4f4f4'),
(this.sequenceNumberColor = 'white'),
(this.sectionBkgColor = 'calculated'),
(this.altSectionBkgColor = 'white'),
(this.sectionBkgColor2 = 'calculated'),
(this.excludeBkgColor = '#eeeeee'),
(this.taskBorderColor = 'calculated'),
(this.taskBkgColor = 'calculated'),
(this.taskTextLightColor = 'white'),
(this.taskTextColor = 'calculated'),
(this.taskTextDarkColor = 'calculated'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = 'calculated'),
(this.activeTaskBkgColor = 'calculated'),
(this.gridColor = 'calculated'),
(this.doneTaskBkgColor = 'calculated'),
(this.doneTaskBorderColor = 'calculated'),
(this.critBkgColor = 'calculated'),
(this.critBorderColor = 'calculated'),
(this.todayLineColor = 'calculated'),
(this.personBorder = this.primaryBorderColor),
(this.personBkg = this.mainBkg),
(this.labelColor = 'black'),
(this.errorBkgColor = '#552222'),
(this.errorTextColor = '#552222');
}
updateColors() {
var e, r, n, i, a, l, u, d, m, p, E;
(this.secondBkg = Pe(this.contrast, 55)),
(this.border2 = this.contrast),
(this.actorBorder = Pe(this.border1, 23)),
(this.actorBkg = this.mainBkg),
(this.actorTextColor = this.text),
(this.actorLineColor = this.lineColor),
(this.signalColor = this.text),
(this.signalTextColor = this.text),
(this.labelBoxBkgColor = this.actorBkg),
(this.labelBoxBorderColor = this.actorBorder),
(this.labelTextColor = this.text),
(this.loopTextColor = this.text),
(this.noteBorderColor = '#999'),
(this.noteBkgColor = '#666'),
(this.noteTextColor = '#fff'),
(this.cScale0 = this.cScale0 || '#555'),
(this.cScale1 = this.cScale1 || '#F4F4F4'),
(this.cScale2 = this.cScale2 || '#555'),
(this.cScale3 = this.cScale3 || '#BBB'),
(this.cScale4 = this.cScale4 || '#777'),
(this.cScale5 = this.cScale5 || '#999'),
(this.cScale6 = this.cScale6 || '#DDD'),
(this.cScale7 = this.cScale7 || '#FFF'),
(this.cScale8 = this.cScale8 || '#DDD'),
(this.cScale9 = this.cScale9 || '#BBB'),
(this.cScale10 = this.cScale10 || '#999'),
(this.cScale11 = this.cScale11 || '#777');
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleInv' + f] = this['cScaleInv' + f] || Se(this['cScale' + f]);
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++)
this.darkMode
? (this['cScalePeer' + f] = this['cScalePeer' + f] || Pe(this['cScale' + f], 10))
: (this['cScalePeer' + f] = this['cScalePeer' + f] || Ye(this['cScale' + f], 10));
(this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? 'black' : this.labelTextColor)),
(this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1),
(this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1);
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['cScaleLabel' + f] = this['cScaleLabel' + f] || this.scaleLabelColor;
for (let f = 0; f < 5; f++)
(this['surface' + f] = this['surface' + f] || $(this.mainBkg, { l: -(5 + f * 5) })),
(this['surfacePeer' + f] = this['surfacePeer' + f] || $(this.mainBkg, { l: -(8 + f * 5) }));
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.titleColor = this.text),
(this.sectionBkgColor = Pe(this.contrast, 30)),
(this.sectionBkgColor2 = Pe(this.contrast, 30)),
(this.taskBorderColor = Ye(this.contrast, 10)),
(this.taskBkgColor = this.contrast),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextDarkColor = this.text),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.activeTaskBorderColor = this.taskBorderColor),
(this.activeTaskBkgColor = this.mainBkg),
(this.gridColor = Pe(this.border1, 30)),
(this.doneTaskBkgColor = this.done),
(this.doneTaskBorderColor = this.lineColor),
(this.critBkgColor = this.critical),
(this.critBorderColor = Ye(this.critBkgColor, 10)),
(this.todayLineColor = this.critBkgColor),
(this.transitionColor = this.transitionColor || '#000'),
(this.transitionLabelColor = this.transitionLabelColor || this.textColor),
(this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor),
(this.stateBkg = this.stateBkg || this.mainBkg),
(this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg),
(this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor),
(this.altBackground = this.altBackground || '#f4f4f4'),
(this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg),
(this.stateBorder = this.stateBorder || '#000'),
(this.innerEndBackground = this.primaryBorderColor),
(this.specialStateColor = '#222'),
(this.errorBkgColor = this.errorBkgColor || this.tertiaryColor),
(this.errorTextColor = this.errorTextColor || this.tertiaryTextColor),
(this.classText = this.primaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = $(this.primaryColor, { h: 64 })),
(this.fillType3 = $(this.secondaryColor, { h: 64 })),
(this.fillType4 = $(this.primaryColor, { h: -64 })),
(this.fillType5 = $(this.secondaryColor, { h: -64 })),
(this.fillType6 = $(this.primaryColor, { h: 128 })),
(this.fillType7 = $(this.secondaryColor, { h: 128 }));
for (let f = 0; f < this.THEME_COLOR_LIMIT; f++) this['pie' + f] = this['cScale' + f];
(this.pie12 = this.pie0),
(this.pieTitleTextSize = this.pieTitleTextSize || '25px'),
(this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor),
(this.pieSectionTextSize = this.pieSectionTextSize || '17px'),
(this.pieSectionTextColor = this.pieSectionTextColor || this.textColor),
(this.pieLegendTextSize = this.pieLegendTextSize || '17px'),
(this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor),
(this.pieStrokeColor = this.pieStrokeColor || 'black'),
(this.pieStrokeWidth = this.pieStrokeWidth || '2px'),
(this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || '2px'),
(this.pieOuterStrokeColor = this.pieOuterStrokeColor || 'black'),
(this.pieOpacity = this.pieOpacity || '0.7'),
(this.quadrant1Fill = this.quadrant1Fill || this.primaryColor),
(this.quadrant2Fill = this.quadrant2Fill || $(this.primaryColor, { r: 5, g: 5, b: 5 })),
(this.quadrant3Fill = this.quadrant3Fill || $(this.primaryColor, { r: 10, g: 10, b: 10 })),
(this.quadrant4Fill = this.quadrant4Fill || $(this.primaryColor, { r: 15, g: 15, b: 15 })),
(this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor),
(this.quadrant2TextFill = this.quadrant2TextFill || $(this.primaryTextColor, { r: -5, g: -5, b: -5 })),
(this.quadrant3TextFill = this.quadrant3TextFill || $(this.primaryTextColor, { r: -10, g: -10, b: -10 })),
(this.quadrant4TextFill = this.quadrant4TextFill || $(this.primaryTextColor, { r: -15, g: -15, b: -15 })),
(this.quadrantPointFill = this.quadrantPointFill || ka(this.quadrant1Fill) ? Pe(this.quadrant1Fill) : Ye(this.quadrant1Fill)),
(this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor),
(this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor),
(this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor),
(this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor),
(this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor),
(this.xyChart = {
backgroundColor: ((e = this.xyChart) == null ? void 0 : e.backgroundColor) || this.background,
titleColor: ((r = this.xyChart) == null ? void 0 : r.titleColor) || this.primaryTextColor,
xAxisTitleColor: ((n = this.xyChart) == null ? void 0 : n.xAxisTitleColor) || this.primaryTextColor,
xAxisLabelColor: ((i = this.xyChart) == null ? void 0 : i.xAxisLabelColor) || this.primaryTextColor,
xAxisTickColor: ((a = this.xyChart) == null ? void 0 : a.xAxisTickColor) || this.primaryTextColor,
xAxisLineColor: ((l = this.xyChart) == null ? void 0 : l.xAxisLineColor) || this.primaryTextColor,
yAxisTitleColor: ((u = this.xyChart) == null ? void 0 : u.yAxisTitleColor) || this.primaryTextColor,
yAxisLabelColor: ((d = this.xyChart) == null ? void 0 : d.yAxisLabelColor) || this.primaryTextColor,
yAxisTickColor: ((m = this.xyChart) == null ? void 0 : m.yAxisTickColor) || this.primaryTextColor,
yAxisLineColor: ((p = this.xyChart) == null ? void 0 : p.yAxisLineColor) || this.primaryTextColor,
plotColorPalette:
((E = this.xyChart) == null ? void 0 : E.plotColorPalette) ||
'#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0',
}),
(this.requirementBackground = this.requirementBackground || this.primaryColor),
(this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor),
(this.requirementBorderSize = this.requirementBorderSize || '1'),
(this.requirementTextColor = this.requirementTextColor || this.primaryTextColor),
(this.relationColor = this.relationColor || this.lineColor),
(this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground),
(this.relationLabelColor = this.relationLabelColor || this.actorTextColor),
(this.git0 = Ye(this.pie1, 25) || this.primaryColor),
(this.git1 = this.pie2 || this.secondaryColor),
(this.git2 = this.pie3 || this.tertiaryColor),
(this.git3 = this.pie4 || $(this.primaryColor, { h: -30 })),
(this.git4 = this.pie5 || $(this.primaryColor, { h: -60 })),
(this.git5 = this.pie6 || $(this.primaryColor, { h: -90 })),
(this.git6 = this.pie7 || $(this.primaryColor, { h: 60 })),
(this.git7 = this.pie8 || $(this.primaryColor, { h: 120 })),
(this.gitInv0 = this.gitInv0 || Se(this.git0)),
(this.gitInv1 = this.gitInv1 || Se(this.git1)),
(this.gitInv2 = this.gitInv2 || Se(this.git2)),
(this.gitInv3 = this.gitInv3 || Se(this.git3)),
(this.gitInv4 = this.gitInv4 || Se(this.git4)),
(this.gitInv5 = this.gitInv5 || Se(this.git5)),
(this.gitInv6 = this.gitInv6 || Se(this.git6)),
(this.gitInv7 = this.gitInv7 || Se(this.git7)),
(this.branchLabelColor = this.branchLabelColor || this.labelTextColor),
(this.gitBranchLabel0 = this.branchLabelColor),
(this.gitBranchLabel1 = 'white'),
(this.gitBranchLabel2 = this.branchLabelColor),
(this.gitBranchLabel3 = 'white'),
(this.gitBranchLabel4 = this.branchLabelColor),
(this.gitBranchLabel5 = this.branchLabelColor),
(this.gitBranchLabel6 = this.branchLabelColor),
(this.gitBranchLabel7 = this.branchLabelColor),
(this.tagLabelColor = this.tagLabelColor || this.primaryTextColor),
(this.tagLabelBackground = this.tagLabelBackground || this.primaryColor),
(this.tagLabelBorder = this.tagBorder || this.primaryBorderColor),
(this.tagLabelFontSize = this.tagLabelFontSize || '10px'),
(this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor),
(this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor),
(this.commitLabelFontSize = this.commitLabelFontSize || '10px'),
(this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || Rs),
(this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || As);
}
calculate(e) {
if (typeof e != 'object') {
this.updateColors();
return;
}
const r = Object.keys(e);
r.forEach((n) => {
this[n] = e[n];
}),
this.updateColors(),
r.forEach((n) => {
this[n] = e[n];
});
}
}
const bde = (t) => {
const e = new Sde();
return e.calculate(t), e;
},
Cn = {
base: { getThemeVariables: _de },
dark: { getThemeVariables: pde },
default: { getThemeVariables: gde },
forest: { getThemeVariables: Ede },
neutral: { getThemeVariables: bde },
},
Sn = {
flowchart: {
useMaxWidth: !0,
titleTopMargin: 25,
subGraphTitleMargin: { top: 0, bottom: 0 },
diagramPadding: 8,
htmlLabels: !0,
nodeSpacing: 50,
rankSpacing: 50,
curve: 'basis',
padding: 15,
defaultRenderer: 'dagre-wrapper',
wrappingWidth: 200,
},
sequence: {
useMaxWidth: !0,
hideUnusedParticipants: !1,
activationWidth: 10,
diagramMarginX: 50,
diagramMarginY: 10,
actorMargin: 50,
width: 150,
height: 65,
boxMargin: 10,
boxTextMargin: 5,
noteMargin: 10,
messageMargin: 35,
messageAlign: 'center',
mirrorActors: !0,
forceMenus: !1,
bottomMarginAdj: 1,
rightAngles: !1,
showSequenceNumbers: !1,
actorFontSize: 14,
actorFontFamily: '"Open Sans", sans-serif',
actorFontWeight: 400,
noteFontSize: 14,
noteFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
noteFontWeight: 400,
noteAlign: 'center',
messageFontSize: 16,
messageFontFamily: '"trebuchet ms", verdana, arial, sans-serif',
messageFontWeight: 400,
wrap: !1,
wrapPadding: 10,
labelBoxWidth: 50,
labelBoxHeight: 20,
},
gantt: {
useMaxWidth: !0,
titleTopMargin: 25,
barHeight: 20,
barGap: 4,
topPadding: 50,
rightPadding: 75,
leftPadding: 75,
gridLineStartPadding: 35,
fontSize: 11,
sectionFontSize: 11,
numberSectionStyles: 4,
axisFormat: '%Y-%m-%d',
topAxis: !1,
displayMode: '',
weekday: 'sunday',
},
journey: {
useMaxWidth: !0,
diagramMarginX: 50,
diagramMarginY: 10,
leftMargin: 150,
width: 150,
height: 50,
boxMargin: 10,
boxTextMargin: 5,
noteMargin: 10,
messageMargin: 35,
messageAlign: 'center',
bottomMarginAdj: 1,
rightAngles: !1,
taskFontSize: 14,
taskFontFamily: '"Open Sans", sans-serif',
taskMargin: 50,
activationWidth: 10,
textPlacement: 'fo',
actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],
sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],
sectionColours: ['#fff'],
},
class: {
useMaxWidth: !0,
titleTopMargin: 25,
arrowMarkerAbsolute: !1,
dividerMargin: 10,
padding: 5,
textHeight: 10,
defaultRenderer: 'dagre-wrapper',
htmlLabels: !1,
},
state: {
useMaxWidth: !0,
titleTopMargin: 25,
dividerMargin: 10,
sizeUnit: 5,
padding: 8,
textHeight: 10,
titleShift: -15,
noteMargin: 10,
forkWidth: 70,
forkHeight: 7,
miniPadding: 2,
fontSizeFactor: 5.02,
fontSize: 24,
labelHeight: 16,
edgeLengthFactor: '20',
compositTitleSize: 35,
radius: 5,
defaultRenderer: 'dagre-wrapper',
},
er: {
useMaxWidth: !0,
titleTopMargin: 25,
diagramPadding: 20,
layoutDirection: 'TB',
minEntityWidth: 100,
minEntityHeight: 75,
entityPadding: 15,
stroke: 'gray',
fill: 'honeydew',
fontSize: 12,
},
pie: { useMaxWidth: !0, textPosition: 0.75 },
quadrantChart: {
useMaxWidth: !0,
chartWidth: 500,
chartHeight: 500,
titleFontSize: 20,
titlePadding: 10,
quadrantPadding: 5,
xAxisLabelPadding: 5,
yAxisLabelPadding: 5,
xAxisLabelFontSize: 16,
yAxisLabelFontSize: 16,
quadrantLabelFontSize: 16,
quadrantTextTopPadding: 5,
pointTextPadding: 5,
pointLabelFontSize: 12,
pointRadius: 5,
xAxisPosition: 'top',
yAxisPosition: 'left',
quadrantInternalBorderStrokeWidth: 1,
quadrantExternalBorderStrokeWidth: 2,
},
xyChart: {
useMaxWidth: !0,
width: 700,
height: 500,
titleFontSize: 20,
titlePadding: 10,
showTitle: !0,
xAxis: {
$ref: '#/$defs/XYChartAxisConfig',
showLabel: !0,
labelFontSize: 14,
labelPadding: 5,
showTitle: !0,
titleFontSize: 16,
titlePadding: 5,
showTick: !0,
tickLength: 5,
tickWidth: 2,
showAxisLine: !0,
axisLineWidth: 2,
},
yAxis: {
$ref: '#/$defs/XYChartAxisConfig',
showLabel: !0,
labelFontSize: 14,
labelPadding: 5,
showTitle: !0,
titleFontSize: 16,
titlePadding: 5,
showTick: !0,
tickLength: 5,
tickWidth: 2,
showAxisLine: !0,
axisLineWidth: 2,
},
chartOrientation: 'vertical',
plotReservedSpacePercent: 50,
},
requirement: {
useMaxWidth: !0,
rect_fill: '#f9f9f9',
text_color: '#333',
rect_border_size: '0.5px',
rect_border_color: '#bbb',
rect_min_width: 200,
rect_min_height: 200,
fontSize: 14,
rect_padding: 10,
line_height: 20,
},
mindmap: { useMaxWidth: !0, padding: 10, maxNodeWidth: 200 },
timeline: {
useMaxWidth: !0,
diagramMarginX: 50,
diagramMarginY: 10,
leftMargin: 150,
width: 150,
height: 50,
boxMargin: 10,
boxTextMargin: 5,
noteMargin: 10,
messageMargin: 35,
messageAlign: 'center',
bottomMarginAdj: 1,
rightAngles: !1,
taskFontSize: 14,
taskFontFamily: '"Open Sans", sans-serif',
taskMargin: 50,
activationWidth: 10,
textPlacement: 'fo',
actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],
sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],
sectionColours: ['#fff'],
disableMulticolor: !1,
},
gitGraph: {
useMaxWidth: !0,
titleTopMargin: 25,
diagramPadding: 8,
nodeLabel: { width: 75, height: 100, x: -25, y: 0 },
mainBranchName: 'main',
mainBranchOrder: 0,
showCommitLabel: !0,
showBranches: !0,
rotateCommitLabel: !0,
parallelCommits: !1,
arrowMarkerAbsolute: !1,
},
c4: {
useMaxWidth: !0,
diagramMarginX: 50,
diagramMarginY: 10,
c4ShapeMargin: 50,
c4ShapePadding: 20,
width: 216,
height: 60,
boxMargin: 10,
c4ShapeInRow: 4,
nextLinePaddingX: 0,
c4BoundaryInRow: 2,
personFontSize: 14,
personFontFamily: '"Open Sans", sans-serif',
personFontWeight: 'normal',
external_personFontSize: 14,
external_personFontFamily: '"Open Sans", sans-serif',
external_personFontWeight: 'normal',
systemFontSize: 14,
systemFontFamily: '"Open Sans", sans-serif',
systemFontWeight: 'normal',
external_systemFontSize: 14,
external_systemFontFamily: '"Open Sans", sans-serif',
external_systemFontWeight: 'normal',
system_dbFontSize: 14,
system_dbFontFamily: '"Open Sans", sans-serif',
system_dbFontWeight: 'normal',
external_system_dbFontSize: 14,
external_system_dbFontFamily: '"Open Sans", sans-serif',
external_system_dbFontWeight: 'normal',
system_queueFontSize: 14,
system_queueFontFamily: '"Open Sans", sans-serif',
system_queueFontWeight: 'normal',
external_system_queueFontSize: 14,
external_system_queueFontFamily: '"Open Sans", sans-serif',
external_system_queueFontWeight: 'normal',
boundaryFontSize: 14,
boundaryFontFamily: '"Open Sans", sans-serif',
boundaryFontWeight: 'normal',
messageFontSize: 12,
messageFontFamily: '"Open Sans", sans-serif',
messageFontWeight: 'normal',
containerFontSize: 14,
containerFontFamily: '"Open Sans", sans-serif',
containerFontWeight: 'normal',
external_containerFontSize: 14,
external_containerFontFamily: '"Open Sans", sans-serif',
external_containerFontWeight: 'normal',
container_dbFontSize: 14,
container_dbFontFamily: '"Open Sans", sans-serif',
container_dbFontWeight: 'normal',
external_container_dbFontSize: 14,
external_container_dbFontFamily: '"Open Sans", sans-serif',
external_container_dbFontWeight: 'normal',
container_queueFontSize: 14,
container_queueFontFamily: '"Open Sans", sans-serif',
container_queueFontWeight: 'normal',
external_container_queueFontSize: 14,
external_container_queueFontFamily: '"Open Sans", sans-serif',
external_container_queueFontWeight: 'normal',
componentFontSize: 14,
componentFontFamily: '"Open Sans", sans-serif',
componentFontWeight: 'normal',
external_componentFontSize: 14,
external_componentFontFamily: '"Open Sans", sans-serif',
external_componentFontWeight: 'normal',
component_dbFontSize: 14,
component_dbFontFamily: '"Open Sans", sans-serif',
component_dbFontWeight: 'normal',
external_component_dbFontSize: 14,
external_component_dbFontFamily: '"Open Sans", sans-serif',
external_component_dbFontWeight: 'normal',
component_queueFontSize: 14,
component_queueFontFamily: '"Open Sans", sans-serif',
component_queueFontWeight: 'normal',
external_component_queueFontSize: 14,
external_component_queueFontFamily: '"Open Sans", sans-serif',
external_component_queueFontWeight: 'normal',
wrap: !0,
wrapPadding: 10,
person_bg_color: '#08427B',
person_border_color: '#073B6F',
external_person_bg_color: '#686868',
external_person_border_color: '#8A8A8A',
system_bg_color: '#1168BD',
system_border_color: '#3C7FC0',
system_db_bg_color: '#1168BD',
system_db_border_color: '#3C7FC0',
system_queue_bg_color: '#1168BD',
system_queue_border_color: '#3C7FC0',
external_system_bg_color: '#999999',
external_system_border_color: '#8A8A8A',
external_system_db_bg_color: '#999999',
external_system_db_border_color: '#8A8A8A',
external_system_queue_bg_color: '#999999',
external_system_queue_border_color: '#8A8A8A',
container_bg_color: '#438DD5',
container_border_color: '#3C7FC0',
container_db_bg_color: '#438DD5',
container_db_border_color: '#3C7FC0',
container_queue_bg_color: '#438DD5',
container_queue_border_color: '#3C7FC0',
external_container_bg_color: '#B3B3B3',
external_container_border_color: '#A6A6A6',
external_container_db_bg_color: '#B3B3B3',
external_container_db_border_color: '#A6A6A6',
external_container_queue_bg_color: '#B3B3B3',
external_container_queue_border_color: '#A6A6A6',
component_bg_color: '#85BBF0',
component_border_color: '#78A8D8',
component_db_bg_color: '#85BBF0',
component_db_border_color: '#78A8D8',
component_queue_bg_color: '#85BBF0',
component_queue_border_color: '#78A8D8',
external_component_bg_color: '#CCCCCC',
external_component_border_color: '#BFBFBF',
external_component_db_bg_color: '#CCCCCC',
external_component_db_border_color: '#BFBFBF',
external_component_queue_bg_color: '#CCCCCC',
external_component_queue_border_color: '#BFBFBF',
},
sankey: { useMaxWidth: !0, width: 600, height: 400, linkColor: 'gradient', nodeAlignment: 'justify', showValues: !0, prefix: '', suffix: '' },
block: { useMaxWidth: !0, padding: 8 },
theme: 'default',
maxTextSize: 5e4,
maxEdges: 500,
darkMode: !1,
fontFamily: '"trebuchet ms", verdana, arial, sans-serif;',
logLevel: 5,
securityLevel: 'strict',
startOnLoad: !0,
arrowMarkerAbsolute: !1,
secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize', 'maxEdges'],
legacyMathML: !1,
deterministicIds: !1,
fontSize: 16,
},
GT = {
...Sn,
deterministicIDSeed: void 0,
themeCSS: void 0,
themeVariables: Cn.default.getThemeVariables(),
sequence: {
...Sn.sequence,
messageFont: function () {
return { fontFamily: this.messageFontFamily, fontSize: this.messageFontSize, fontWeight: this.messageFontWeight };
},
noteFont: function () {
return { fontFamily: this.noteFontFamily, fontSize: this.noteFontSize, fontWeight: this.noteFontWeight };
},
actorFont: function () {
return { fontFamily: this.actorFontFamily, fontSize: this.actorFontSize, fontWeight: this.actorFontWeight };
},
},
gantt: { ...Sn.gantt, tickInterval: void 0, useWidth: void 0 },
c4: {
...Sn.c4,
useWidth: void 0,
personFont: function () {
return { fontFamily: this.personFontFamily, fontSize: this.personFontSize, fontWeight: this.personFontWeight };
},
external_personFont: function () {
return { fontFamily: this.external_personFontFamily, fontSize: this.external_personFontSize, fontWeight: this.external_personFontWeight };
},
systemFont: function () {
return { fontFamily: this.systemFontFamily, fontSize: this.systemFontSize, fontWeight: this.systemFontWeight };
},
external_systemFont: function () {
return { fontFamily: this.external_systemFontFamily, fontSize: this.external_systemFontSize, fontWeight: this.external_systemFontWeight };
},
system_dbFont: function () {
return { fontFamily: this.system_dbFontFamily, fontSize: this.system_dbFontSize, fontWeight: this.system_dbFontWeight };
},
external_system_dbFont: function () {
return {
fontFamily: this.external_system_dbFontFamily,
fontSize: this.external_system_dbFontSize,
fontWeight: this.external_system_dbFontWeight,
};
},
system_queueFont: function () {
return { fontFamily: this.system_queueFontFamily, fontSize: this.system_queueFontSize, fontWeight: this.system_queueFontWeight };
},
external_system_queueFont: function () {
return {
fontFamily: this.external_system_queueFontFamily,
fontSize: this.external_system_queueFontSize,
fontWeight: this.external_system_queueFontWeight,
};
},
containerFont: function () {
return { fontFamily: this.containerFontFamily, fontSize: this.containerFontSize, fontWeight: this.containerFontWeight };
},
external_containerFont: function () {
return {
fontFamily: this.external_containerFontFamily,
fontSize: this.external_containerFontSize,
fontWeight: this.external_containerFontWeight,
};
},
container_dbFont: function () {
return { fontFamily: this.container_dbFontFamily, fontSize: this.container_dbFontSize, fontWeight: this.container_dbFontWeight };
},
external_container_dbFont: function () {
return {
fontFamily: this.external_container_dbFontFamily,
fontSize: this.external_container_dbFontSize,
fontWeight: this.external_container_dbFontWeight,
};
},
container_queueFont: function () {
return { fontFamily: this.container_queueFontFamily, fontSize: this.container_queueFontSize, fontWeight: this.container_queueFontWeight };
},
external_container_queueFont: function () {
return {
fontFamily: this.external_container_queueFontFamily,
fontSize: this.external_container_queueFontSize,
fontWeight: this.external_container_queueFontWeight,
};
},
componentFont: function () {
return { fontFamily: this.componentFontFamily, fontSize: this.componentFontSize, fontWeight: this.componentFontWeight };
},
external_componentFont: function () {
return {
fontFamily: this.external_componentFontFamily,
fontSize: this.external_componentFontSize,
fontWeight: this.external_componentFontWeight,
};
},
component_dbFont: function () {
return { fontFamily: this.component_dbFontFamily, fontSize: this.component_dbFontSize, fontWeight: this.component_dbFontWeight };
},
external_component_dbFont: function () {
return {
fontFamily: this.external_component_dbFontFamily,
fontSize: this.external_component_dbFontSize,
fontWeight: this.external_component_dbFontWeight,
};
},
component_queueFont: function () {
return { fontFamily: this.component_queueFontFamily, fontSize: this.component_queueFontSize, fontWeight: this.component_queueFontWeight };
},
external_component_queueFont: function () {
return {
fontFamily: this.external_component_queueFontFamily,
fontSize: this.external_component_queueFontSize,
fontWeight: this.external_component_queueFontWeight,
};
},
boundaryFont: function () {
return { fontFamily: this.boundaryFontFamily, fontSize: this.boundaryFontSize, fontWeight: this.boundaryFontWeight };
},
messageFont: function () {
return { fontFamily: this.messageFontFamily, fontSize: this.messageFontSize, fontWeight: this.messageFontWeight };
},
},
pie: { ...Sn.pie, useWidth: 984 },
xyChart: { ...Sn.xyChart, useWidth: void 0 },
requirement: { ...Sn.requirement, useWidth: void 0 },
gitGraph: { ...Sn.gitGraph, useMaxWidth: !1 },
sankey: { ...Sn.sankey, useMaxWidth: !1 },
},
qT = (t, e = '') =>
Object.keys(t).reduce(
(r, n) => (Array.isArray(t[n]) ? r : typeof t[n] == 'object' && t[n] !== null ? [...r, e + n, ...qT(t[n], '')] : [...r, e + n]),
[]
),
Tde = new Set(qT(GT, '')),
vde = GT,
Qo = (t) => {
if ((Ge.debug('sanitizeDirective called with', t), !(typeof t != 'object' || t == null))) {
if (Array.isArray(t)) {
t.forEach((e) => Qo(e));
return;
}
for (const e of Object.keys(t)) {
if ((Ge.debug('Checking key', e), e.startsWith('__') || e.includes('proto') || e.includes('constr') || !Tde.has(e) || t[e] == null)) {
Ge.debug('sanitize deleting key: ', e), delete t[e];
continue;
}
if (typeof t[e] == 'object') {
Ge.debug('sanitizing object', e), Qo(t[e]);
continue;
}
const r = ['themeCSS', 'fontFamily', 'altFontFamily'];
for (const n of r) e.includes(n) && (Ge.debug('sanitizing css option', e), (t[e] = Cde(t[e])));
}
if (t.themeVariables)
for (const e of Object.keys(t.themeVariables)) {
const r = t.themeVariables[e];
r != null && r.match && !r.match(/^[\d "#%(),.;A-Za-z]+$/) && (t.themeVariables[e] = '');
}
Ge.debug('After sanitization', t);
}
},
Cde = (t) => {
let e = 0,
r = 0;
for (const n of t) {
if (e < r) return '{ /* ERROR: Unbalanced CSS */ }';
n === '{' ? e++ : n === '}' && r++;
}
return e !== r ? '{ /* ERROR: Unbalanced CSS */ }' : t;
},
YT = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,
ha = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,
yde = /\s*%%.*\n/gm;
class zT extends Error {
constructor(e) {
super(e), (this.name = 'UnknownDiagramError');
}
}
const wi = {},
Ns = function (t, e) {
t = t
.replace(YT, '')
.replace(ha, '')
.replace(
yde,
`
`
);
for (const [r, { detector: n }] of Object.entries(wi)) if (n(t, e)) return r;
throw new zT(`No diagram type detected matching given configuration for text: ${t}`);
},
HT = (...t) => {
for (const { id: e, detector: r, loader: n } of t) $T(e, r, n);
},
$T = (t, e, r) => {
wi[t] ? Ge.error(`Detector with key ${t} already exists`) : (wi[t] = { detector: e, loader: r }),
Ge.debug(`Detector with key ${t} added${r ? ' with loader' : ''}`);
},
Rde = (t) => wi[t].loader,
j_ = (t, e, { depth: r = 2, clobber: n = !1 } = {}) => {
const i = { depth: r, clobber: n };
return Array.isArray(e) && !Array.isArray(t)
? (e.forEach((a) => j_(t, a, i)), t)
: Array.isArray(e) && Array.isArray(t)
? (e.forEach((a) => {
t.includes(a) || t.push(a);
}),
t)
: t === void 0 || r <= 0
? t != null && typeof t == 'object' && typeof e == 'object'
? Object.assign(t, e)
: e
: (e !== void 0 &&
typeof t == 'object' &&
typeof e == 'object' &&
Object.keys(e).forEach((a) => {
typeof e[a] == 'object' && (t[a] === void 0 || typeof t[a] == 'object')
? (t[a] === void 0 && (t[a] = Array.isArray(e[a]) ? [] : {}), (t[a] = j_(t[a], e[a], { depth: r - 1, clobber: n })))
: (n || (typeof t[a] != 'object' && typeof e[a] != 'object')) && (t[a] = e[a]);
}),
t);
},
Xt = j_,
Ade = '',
Nde = {
curveBasis: Oce,
curveBasisClosed: Ice,
curveBasisOpen: xce,
curveBumpX: Ace,
curveBumpY: Nce,
curveBundle: Dce,
curveCardinalClosed: Mce,
curveCardinalOpen: Lce,
curveCardinal: wce,
curveCatmullRomClosed: Pce,
curveCatmullRomOpen: Bce,
curveCatmullRom: kce,
curveLinear: Rce,
curveLinearClosed: Fce,
curveMonotoneX: Uce,
curveMonotoneY: Gce,
curveNatural: qce,
curveStep: Yce,
curveStepAfter: Hce,
curveStepBefore: zce,
},
Ode = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,
Ide = function (t, e) {
const r = VT(t, /(?:init\b)|(?:initialize\b)/);
let n = {};
if (Array.isArray(r)) {
const l = r.map((u) => u.args);
Qo(l), (n = Xt(n, [...l]));
} else n = r.args;
if (!n) return;
let i = Ns(t, e);
const a = 'config';
return n[a] !== void 0 && (i === 'flowchart-v2' && (i = 'flowchart'), (n[i] = n[a]), delete n[a]), n;
},
VT = function (t, e = null) {
try {
const r = new RegExp(
`[%]{2}(?![{]${Ode.source})(?=[}][%]{2}).*
`,
'ig'
);
(t = t.trim().replace(r, '').replace(/'/gm, '"')),
Ge.debug(`Detecting diagram directive${e !== null ? ' type:' + e : ''} based on the text:${t}`);
let n;
const i = [];
for (; (n = ha.exec(t)) !== null; )
if ((n.index === ha.lastIndex && ha.lastIndex++, (n && !e) || (e && n[1] && n[1].match(e)) || (e && n[2] && n[2].match(e)))) {
const a = n[1] ? n[1] : n[2],
l = n[3] ? n[3].trim() : n[4] ? JSON.parse(n[4].trim()) : null;
i.push({ type: a, args: l });
}
return i.length === 0 ? { type: t, args: null } : i.length === 1 ? i[0] : i;
} catch (r) {
return Ge.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`), { type: void 0, args: null };
}
},
xde = function (t) {
return t.replace(ha, '');
},
Dde = function (t, e) {
for (const [r, n] of e.entries()) if (n.match(t)) return r;
return -1;
};
function wde(t, e) {
if (!t) return e;
const r = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`;
return Nde[r] ?? e;
}
function Mde(t, e) {
const r = t.trim();
if (r) return e.securityLevel !== 'loose' ? Bb.sanitizeUrl(r) : r;
}
const Lde = (t, ...e) => {
const r = t.split('.'),
n = r.length - 1,
i = r[n];
let a = window;
for (let l = 0; l < n; l++)
if (((a = a[r[l]]), !a)) {
Ge.error(`Function name: ${t} not found in window`);
return;
}
a[i](...e);
};
function WT(t, e) {
return !t || !e ? 0 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
}
function kde(t) {
let e,
r = 0;
t.forEach((i) => {
(r += WT(i, e)), (e = i);
});
const n = r / 2;
return km(t, n);
}
function Pde(t) {
return t.length === 1 ? t[0] : kde(t);
}
const Qh = (t, e = 2) => {
const r = Math.pow(10, e);
return Math.round(t * r) / r;
},
km = (t, e) => {
let r,
n = e;
for (const i of t) {
if (r) {
const a = WT(i, r);
if (a < n) n -= a;
else {
const l = n / a;
if (l <= 0) return r;
if (l >= 1) return { x: i.x, y: i.y };
if (l > 0 && l < 1) return { x: Qh((1 - l) * r.x + l * i.x, 5), y: Qh((1 - l) * r.y + l * i.y, 5) };
}
}
r = i;
}
throw new Error('Could not find a suitable point for the given distance');
},
Bde = (t, e, r) => {
Ge.info(`our points ${JSON.stringify(e)}`), e[0] !== r && (e = e.reverse());
const i = km(e, 25),
a = t ? 10 : 5,
l = Math.atan2(e[0].y - i.y, e[0].x - i.x),
u = { x: 0, y: 0 };
return (u.x = Math.sin(l) * a + (e[0].x + i.x) / 2), (u.y = -Math.cos(l) * a + (e[0].y + i.y) / 2), u;
};
function Fde(t, e, r) {
const n = structuredClone(r);
Ge.info('our points', n), e !== 'start_left' && e !== 'start_right' && n.reverse();
const i = 25 + t,
a = km(n, i),
l = 10 + t * 0.5,
u = Math.atan2(n[0].y - a.y, n[0].x - a.x),
d = { x: 0, y: 0 };
return (
e === 'start_left'
? ((d.x = Math.sin(u + Math.PI) * l + (n[0].x + a.x) / 2), (d.y = -Math.cos(u + Math.PI) * l + (n[0].y + a.y) / 2))
: e === 'end_right'
? ((d.x = Math.sin(u - Math.PI) * l + (n[0].x + a.x) / 2 - 5), (d.y = -Math.cos(u - Math.PI) * l + (n[0].y + a.y) / 2 - 5))
: e === 'end_left'
? ((d.x = Math.sin(u) * l + (n[0].x + a.x) / 2 - 5), (d.y = -Math.cos(u) * l + (n[0].y + a.y) / 2 - 5))
: ((d.x = Math.sin(u) * l + (n[0].x + a.x) / 2), (d.y = -Math.cos(u) * l + (n[0].y + a.y) / 2)),
d
);
}
function Ude(t) {
let e = '',
r = '';
for (const n of t) n !== void 0 && (n.startsWith('color:') || n.startsWith('text-align:') ? (r = r + n + ';') : (e = e + n + ';'));
return { style: e, labelStyle: r };
}
let Zh = 0;
const Gde = () => (Zh++, 'id-' + Math.random().toString(36).substr(2, 12) + '-' + Zh);
function qde(t) {
let e = '';
const r = '0123456789abcdef',
n = r.length;
for (let i = 0; i < t; i++) e += r.charAt(Math.floor(Math.random() * n));
return e;
}
const Yde = (t) => qde(t.length),
zde = function () {
return {
x: 0,
y: 0,
fill: void 0,
anchor: 'start',
style: '#666',
width: 100,
height: 100,
textMargin: 0,
rx: 0,
ry: 0,
valign: void 0,
text: '',
};
},
Hde = function (t, e) {
const r = e.text.replace(Lm.lineBreakRegex, ' '),
[, n] = Bm(e.fontSize),
i = t.append('text');
i.attr('x', e.x),
i.attr('y', e.y),
i.style('text-anchor', e.anchor),
i.style('font-family', e.fontFamily),
i.style('font-size', n),
i.style('font-weight', e.fontWeight),
i.attr('fill', e.fill),
e.class !== void 0 && i.attr('class', e.class);
const a = i.append('tspan');
return a.attr('x', e.x + e.textMargin * 2), a.attr('fill', e.fill), a.text(r), i;
},
$de = am(
(t, e, r) => {
if (!t || ((r = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: ' ' }, r)), Lm.lineBreakRegex.test(t)))
return t;
const n = t.split(' '),
i = [];
let a = '';
return (
n.forEach((l, u) => {
const d = Zo(`${l} `, r),
m = Zo(a, r);
if (d > e) {
const { hyphenatedStrings: f, remainingWord: v } = Vde(l, e, '-', r);
i.push(a, ...f), (a = v);
} else m + d >= e ? (i.push(a), (a = l)) : (a = [a, l].filter(Boolean).join(' '));
u + 1 === n.length && i.push(a);
}),
i.filter((l) => l !== '').join(r.joinWith)
);
},
(t, e, r) => `${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`
),
Vde = am(
(t, e, r = '-', n) => {
n = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 }, n);
const i = [...t],
a = [];
let l = '';
return (
i.forEach((u, d) => {
const m = `${l}${u}`;
if (Zo(m, n) >= e) {
const E = d + 1,
f = i.length === E,
v = `${m}${r}`;
a.push(f ? m : v), (l = '');
} else l = m;
}),
{ hyphenatedStrings: a, remainingWord: l }
);
},
(t, e, r = '-', n) => `${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`
);
function Wde(t, e) {
return Pm(t, e).height;
}
function Zo(t, e) {
return Pm(t, e).width;
}
const Pm = am(
(t, e) => {
const { fontSize: r = 12, fontFamily: n = 'Arial', fontWeight: i = 400 } = e;
if (!t) return { width: 0, height: 0 };
const [, a] = Bm(r),
l = ['sans-serif', n],
u = t.split(Lm.lineBreakRegex),
d = [],
m = Or('body');
if (!m.remove) return { width: 0, height: 0, lineHeight: 0 };
const p = m.append('svg');
for (const f of l) {
let v = 0;
const R = { width: 0, height: 0, lineHeight: 0 };
for (const O of u) {
const M = zde();
M.text = O || Ade;
const w = Hde(p, M).style('font-size', a).style('font-weight', i).style('font-family', f),
D = (w._groups || w)[0][0].getBBox();
if (D.width === 0 && D.height === 0) throw new Error('svg element not in render tree');
(R.width = Math.round(Math.max(R.width, D.width))),
(v = Math.round(D.height)),
(R.height += v),
(R.lineHeight = Math.round(Math.max(R.lineHeight, v)));
}
d.push(R);
}
p.remove();
const E =
isNaN(d[1].height) ||
isNaN(d[1].width) ||
isNaN(d[1].lineHeight) ||
(d[0].height > d[1].height && d[0].width > d[1].width && d[0].lineHeight > d[1].lineHeight)
? 0
: 1;
return d[E];
},
(t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`
);
class Kde {
constructor(e = !1, r) {
(this.count = 0), (this.count = r ? r.length : 0), (this.next = e ? () => this.count++ : () => Date.now());
}
}
let So;
const Qde = function (t) {
return (
(So = So || document.createElement('div')),
(t = escape(t).replace(/%26/g, '&').replace(/%23/g, '#').replace(/%3B/g, ';')),
(So.innerHTML = t),
unescape(So.textContent)
);
};
function KT(t) {
return 'str' in t;
}
const Zde = (t, e, r, n) => {
var i;
if (!n) return;
const a = (i = t.node()) == null ? void 0 : i.getBBox();
a &&
t
.append('text')
.text(n)
.attr('x', a.x + a.width / 2)
.attr('y', -r)
.attr('class', e);
},
Bm = (t) => {
if (typeof t == 'number') return [t, t + 'px'];
const e = parseInt(t ?? '', 10);
return Number.isNaN(e) ? [void 0, void 0] : t === String(e) ? [e, t + 'px'] : [e, t];
};
function QT(t, e) {
return cy({}, t, e);
}
const ga = {
assignWithDepth: Xt,
wrapLabel: $de,
calculateTextHeight: Wde,
calculateTextWidth: Zo,
calculateTextDimensions: Pm,
cleanAndMerge: QT,
detectInit: Ide,
detectDirective: VT,
isSubstringInArray: Dde,
interpolateToCurve: wde,
calcLabelPosition: Pde,
calcCardinalityPosition: Bde,
calcTerminalLabelPosition: Fde,
formatUrl: Mde,
getStylesFromArray: Ude,
generateId: Gde,
random: Yde,
runFunc: Lde,
entityDecode: Qde,
insertTitle: Zde,
parseFontSize: Bm,
InitIDGenerator: Kde,
},
Xde = function (t) {
let e = t;
return (
(e = e.replace(/style.*:\S*#.*;/g, function (r) {
return r.substring(0, r.length - 1);
})),
(e = e.replace(/classDef.*:\S*#.*;/g, function (r) {
return r.substring(0, r.length - 1);
})),
(e = e.replace(/#\w+;/g, function (r) {
const n = r.substring(1, r.length - 1);
return /^\+?\d+$/.test(n) ? 'fl°°' + n + '¶ß' : 'fl°' + n + '¶ß';
})),
e
);
},
Jde = function (t) {
return t.replace(/fl°°/g, '').replace(/fl°/g, '&').replace(/¶ß/g, ';');
},
Xh = '10.9.1',
Mi = Object.freeze(vde);
let cr = Xt({}, Mi),
ZT,
Li = [],
fa = Xt({}, Mi);
const Os = (t, e) => {
let r = Xt({}, t),
n = {};
for (const i of e) jT(i), (n = Xt(n, i));
if (((r = Xt(r, n)), n.theme && n.theme in Cn)) {
const i = Xt({}, ZT),
a = Xt(i.themeVariables || {}, n.themeVariables);
r.theme && r.theme in Cn && (r.themeVariables = Cn[r.theme].getThemeVariables(a));
}
return (fa = r), e1(fa), fa;
},
jde = (t) => (
(cr = Xt({}, Mi)),
(cr = Xt(cr, t)),
t.theme && Cn[t.theme] && (cr.themeVariables = Cn[t.theme].getThemeVariables(t.themeVariables)),
Os(cr, Li),
cr
),
e_e = (t) => {
ZT = Xt({}, t);
},
t_e = (t) => ((cr = Xt(cr, t)), Os(cr, Li), cr),
XT = () => Xt({}, cr),
JT = (t) => (e1(t), Xt(fa, t), on()),
on = () => Xt({}, fa),
jT = (t) => {
t &&
(['secure', ...(cr.secure ?? [])].forEach((e) => {
Object.hasOwn(t, e) && (Ge.debug(`Denied attempt to modify a secure key ${e}`, t[e]), delete t[e]);
}),
Object.keys(t).forEach((e) => {
e.startsWith('__') && delete t[e];
}),
Object.keys(t).forEach((e) => {
typeof t[e] == 'string' && (t[e].includes('<') || t[e].includes('>') || t[e].includes('url(data:')) && delete t[e],
typeof t[e] == 'object' && jT(t[e]);
}));
},
r_e = (t) => {
Qo(t),
t.fontFamily && (!t.themeVariables || !t.themeVariables.fontFamily) && (t.themeVariables = { fontFamily: t.fontFamily }),
Li.push(t),
Os(cr, Li);
},
Xo = (t = cr) => {
(Li = []), Os(t, Li);
},
n_e = {
LAZY_LOAD_DEPRECATED:
'The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.',
},
Jh = {},
i_e = (t) => {
Jh[t] || (Ge.warn(n_e[t]), (Jh[t] = !0));
},
e1 = (t) => {
t && (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && i_e('LAZY_LOAD_DEPRECATED');
},
t1 = 'c4',
a_e = (t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),
o_e = async () => {
const { diagram: t } = await Nt(
() => import('./c4Diagram-ae766693-2ec3290c.js'),
[
'assets/c4Diagram-ae766693-2ec3290c.js',
'assets/svgDrawCommon-5e1cfd1d-c2c81d4c.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: t1, diagram: t };
},
s_e = { id: t1, detector: a_e, loader: o_e },
l_e = s_e,
r1 = 'flowchart',
c_e = (t, e) => {
var r, n;
return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === 'dagre-wrapper' ||
((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === 'elk'
? !1
: /^\s*graph/.test(t);
},
u_e = async () => {
const { diagram: t } = await Nt(
() => import('./flowDiagram-b222e15a-abbcd593.js'),
[
'assets/flowDiagram-b222e15a-abbcd593.js',
'assets/flowDb-c1833063-9b18712a.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/layout-004a3162.js',
'assets/styles-483fbfea-a19c15b1.js',
'assets/index-01f381cb-66b06431.js',
'assets/clone-def30bb2.js',
'assets/edges-066a5561-0489abec.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/channel-80f48b39.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: r1, diagram: t };
},
d_e = { id: r1, detector: c_e, loader: u_e },
__e = d_e,
n1 = 'flowchart-v2',
m_e = (t, e) => {
var r, n, i;
return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === 'dagre-d3' ||
((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === 'elk'
? !1
: /^\s*graph/.test(t) && ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === 'dagre-wrapper'
? !0
: /^\s*flowchart/.test(t);
},
p_e = async () => {
const { diagram: t } = await Nt(
() => import('./flowDiagram-v2-13329dc7-b4981268.js'),
[
'assets/flowDiagram-v2-13329dc7-b4981268.js',
'assets/flowDb-c1833063-9b18712a.js',
'assets/styles-483fbfea-a19c15b1.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/index-01f381cb-66b06431.js',
'assets/layout-004a3162.js',
'assets/clone-def30bb2.js',
'assets/edges-066a5561-0489abec.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/channel-80f48b39.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: n1, diagram: t };
},
h_e = { id: n1, detector: m_e, loader: p_e },
g_e = h_e,
i1 = 'er',
f_e = (t) => /^\s*erDiagram/.test(t),
E_e = async () => {
const { diagram: t } = await Nt(
() => import('./erDiagram-09d1c15f-7bc163e3.js'),
[
'assets/erDiagram-09d1c15f-7bc163e3.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/layout-004a3162.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: i1, diagram: t };
},
S_e = { id: i1, detector: f_e, loader: E_e },
b_e = S_e,
a1 = 'gitGraph',
T_e = (t) => /^\s*gitGraph/.test(t),
v_e = async () => {
const { diagram: t } = await Nt(
() => import('./gitGraphDiagram-942e62fe-c1d7547e.js'),
[
'assets/gitGraphDiagram-942e62fe-c1d7547e.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: a1, diagram: t };
},
C_e = { id: a1, detector: T_e, loader: v_e },
y_e = C_e,
o1 = 'gantt',
R_e = (t) => /^\s*gantt/.test(t),
A_e = async () => {
const { diagram: t } = await Nt(
() => import('./ganttDiagram-b62c793e-1a39fcf3.js'),
[
'assets/ganttDiagram-b62c793e-1a39fcf3.js',
'assets/linear-c769df2f.js',
'assets/init-77b53fdd.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: o1, diagram: t };
},
N_e = { id: o1, detector: R_e, loader: A_e },
O_e = N_e,
s1 = 'info',
I_e = (t) => /^\s*info/.test(t),
x_e = async () => {
const { diagram: t } = await Nt(
() => import('./infoDiagram-94cd232f-e65a7751.js'),
[
'assets/infoDiagram-94cd232f-e65a7751.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: s1, diagram: t };
},
D_e = { id: s1, detector: I_e, loader: x_e },
l1 = 'pie',
w_e = (t) => /^\s*pie/.test(t),
M_e = async () => {
const { diagram: t } = await Nt(
() => import('./pieDiagram-bb1d19e5-0c6c879c.js'),
[
'assets/pieDiagram-bb1d19e5-0c6c879c.js',
'assets/arc-5ac49f55.js',
'assets/path-53f90ab3.js',
'assets/ordinal-ba9b4969.js',
'assets/init-77b53fdd.js',
'assets/array-9f3ba611.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: l1, diagram: t };
},
L_e = { id: l1, detector: w_e, loader: M_e },
c1 = 'quadrantChart',
k_e = (t) => /^\s*quadrantChart/.test(t),
P_e = async () => {
const { diagram: t } = await Nt(
() => import('./quadrantDiagram-c759a472-49fe3c01.js'),
[
'assets/quadrantDiagram-c759a472-49fe3c01.js',
'assets/linear-c769df2f.js',
'assets/init-77b53fdd.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: c1, diagram: t };
},
B_e = { id: c1, detector: k_e, loader: P_e },
F_e = B_e,
u1 = 'xychart',
U_e = (t) => /^\s*xychart-beta/.test(t),
G_e = async () => {
const { diagram: t } = await Nt(
() => import('./xychartDiagram-f11f50a6-c36667e7.js'),
[
'assets/xychartDiagram-f11f50a6-c36667e7.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/init-77b53fdd.js',
'assets/ordinal-ba9b4969.js',
'assets/linear-c769df2f.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: u1, diagram: t };
},
q_e = { id: u1, detector: U_e, loader: G_e },
Y_e = q_e,
d1 = 'requirement',
z_e = (t) => /^\s*requirement(Diagram)?/.test(t),
H_e = async () => {
const { diagram: t } = await Nt(
() => import('./requirementDiagram-87253d64-2660a476.js'),
[
'assets/requirementDiagram-87253d64-2660a476.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/layout-004a3162.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: d1, diagram: t };
},
$_e = { id: d1, detector: z_e, loader: H_e },
V_e = $_e,
_1 = 'sequence',
W_e = (t) => /^\s*sequenceDiagram/.test(t),
K_e = async () => {
const { diagram: t } = await Nt(
() => import('./sequenceDiagram-6894f283-72174894.js'),
[
'assets/sequenceDiagram-6894f283-72174894.js',
'assets/svgDrawCommon-5e1cfd1d-c2c81d4c.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: _1, diagram: t };
},
Q_e = { id: _1, detector: W_e, loader: K_e },
Z_e = Q_e,
m1 = 'class',
X_e = (t, e) => {
var r;
return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === 'dagre-wrapper' ? !1 : /^\s*classDiagram/.test(t);
},
J_e = async () => {
const { diagram: t } = await Nt(
() => import('./classDiagram-fb54d2a0-a34a8d1d.js'),
[
'assets/classDiagram-fb54d2a0-a34a8d1d.js',
'assets/styles-b83b31c9-3870ca04.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/layout-004a3162.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: m1, diagram: t };
},
j_e = { id: m1, detector: X_e, loader: J_e },
eme = j_e,
p1 = 'classDiagram',
tme = (t, e) => {
var r;
return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === 'dagre-wrapper'
? !0
: /^\s*classDiagram-v2/.test(t);
},
rme = async () => {
const { diagram: t } = await Nt(
() => import('./classDiagram-v2-a2b738ad-c033134f.js'),
[
'assets/classDiagram-v2-a2b738ad-c033134f.js',
'assets/styles-b83b31c9-3870ca04.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/index-01f381cb-66b06431.js',
'assets/layout-004a3162.js',
'assets/clone-def30bb2.js',
'assets/edges-066a5561-0489abec.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: p1, diagram: t };
},
nme = { id: p1, detector: tme, loader: rme },
ime = nme,
h1 = 'state',
ame = (t, e) => {
var r;
return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === 'dagre-wrapper' ? !1 : /^\s*stateDiagram/.test(t);
},
ome = async () => {
const { diagram: t } = await Nt(
() => import('./stateDiagram-5dee940d-7df730d2.js'),
[
'assets/stateDiagram-5dee940d-7df730d2.js',
'assets/styles-0784dbeb-d32e3ad6.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/layout-004a3162.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: h1, diagram: t };
},
sme = { id: h1, detector: ame, loader: ome },
lme = sme,
g1 = 'stateDiagram',
cme = (t, e) => {
var r;
return !!(
/^\s*stateDiagram-v2/.test(t) ||
(/^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === 'dagre-wrapper')
);
},
ume = async () => {
const { diagram: t } = await Nt(
() => import('./stateDiagram-v2-1992cada-bea364bf.js'),
[
'assets/stateDiagram-v2-1992cada-bea364bf.js',
'assets/styles-0784dbeb-d32e3ad6.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/index-01f381cb-66b06431.js',
'assets/layout-004a3162.js',
'assets/clone-def30bb2.js',
'assets/edges-066a5561-0489abec.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: g1, diagram: t };
},
dme = { id: g1, detector: cme, loader: ume },
_me = dme,
f1 = 'journey',
mme = (t) => /^\s*journey/.test(t),
pme = async () => {
const { diagram: t } = await Nt(
() => import('./journeyDiagram-6625b456-78c15769.js'),
[
'assets/journeyDiagram-6625b456-78c15769.js',
'assets/svgDrawCommon-5e1cfd1d-c2c81d4c.js',
'assets/arc-5ac49f55.js',
'assets/path-53f90ab3.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: f1, diagram: t };
},
hme = { id: f1, detector: mme, loader: pme },
gme = hme,
fme = function (t, e) {
for (let r of e) t.attr(r[0], r[1]);
},
Eme = function (t, e, r) {
let n = new Map();
return r ? (n.set('width', '100%'), n.set('style', `max-width: ${e}px;`)) : (n.set('height', t), n.set('width', e)), n;
},
E1 = function (t, e, r, n) {
const i = Eme(e, r, n);
fme(t, i);
},
Sme = function (t, e, r, n) {
const i = e.node().getBBox(),
a = i.width,
l = i.height;
Ge.info(`SVG bounds: ${a}x${l}`, i);
let u = 0,
d = 0;
Ge.info(`Graph bounds: ${u}x${d}`, t), (u = a + r * 2), (d = l + r * 2), Ge.info(`Calculated bounds: ${u}x${d}`), E1(e, d, u, n);
const m = `${i.x - r} ${i.y - r} ${i.width + 2 * r} ${i.height + 2 * r}`;
e.attr('viewBox', m);
},
Mo = {},
bme = (t, e, r) => {
let n = '';
return (
t in Mo && Mo[t] ? (n = Mo[t](r)) : Ge.warn(`No theme found for ${t}`),
` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
${n}
${e}
`
);
},
Tme = (t, e) => {
e !== void 0 && (Mo[t] = e);
},
vme = bme;
let Fm = '',
Um = '',
Gm = '';
const qm = (t) => Ra(t, on()),
Cme = () => {
(Fm = ''), (Gm = ''), (Um = '');
},
yme = (t) => {
Fm = qm(t).replace(/^\s+/g, '');
},
Rme = () => Fm,
Ame = (t) => {
Gm = qm(t).replace(
/\n\s+/g,
`
`
);
},
Nme = () => Gm,
Ome = (t) => {
Um = qm(t);
},
Ime = () => Um,
xme = Object.freeze(
Object.defineProperty(
{
__proto__: null,
clear: Cme,
getAccDescription: Nme,
getAccTitle: Rme,
getDiagramTitle: Ime,
setAccDescription: Ame,
setAccTitle: yme,
setDiagramTitle: Ome,
},
Symbol.toStringTag,
{ value: 'Module' }
)
),
Dme = Ge,
wme = Mm,
Ym = on,
VTe = JT,
WTe = Mi,
Mme = (t) => Ra(t, Ym()),
Lme = Sme,
kme = () => xme,
Jo = {},
jo = (t, e, r) => {
var n;
if (Jo[t]) throw new Error(`Diagram ${t} already registered.`);
(Jo[t] = e), r && $T(t, r), Tme(t, e.styles), (n = e.injectUtils) == null || n.call(e, Dme, wme, Ym, Mme, Lme, kme(), () => {});
},
zm = (t) => {
if (t in Jo) return Jo[t];
throw new Pme(t);
};
class Pme extends Error {
constructor(e) {
super(`Diagram ${e} not found.`);
}
}
const Bme = (t) => {
var e;
const { securityLevel: r } = Ym();
let n = Or('body');
if (r === 'sandbox') {
const l = ((e = Or(`#i${t}`).node()) == null ? void 0 : e.contentDocument) ?? document;
n = Or(l.body);
}
return n.select(`#${t}`);
},
Fme = (t, e, r) => {
Ge.debug(`rendering svg for syntax error
`);
const n = Bme(e),
i = n.append('g');
n.attr('viewBox', '0 0 2412 512'),
E1(n, 100, 512, !0),
i
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'
),
i
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'
),
i
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'
),
i
.append('path')
.attr('class', 'error-icon')
.attr('d', 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'),
i
.append('path')
.attr('class', 'error-icon')
.attr('d', 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'),
i
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'
),
i
.append('text')
.attr('class', 'error-text')
.attr('x', 1440)
.attr('y', 250)
.attr('font-size', '150px')
.style('text-anchor', 'middle')
.text('Syntax error in text'),
i
.append('text')
.attr('class', 'error-text')
.attr('x', 1250)
.attr('y', 400)
.attr('font-size', '100px')
.style('text-anchor', 'middle')
.text(`mermaid version ${r}`);
},
S1 = { draw: Fme },
Ume = S1,
Gme = { db: {}, renderer: S1, parser: { parser: { yy: {} }, parse: () => {} } },
qme = Gme,
b1 = 'flowchart-elk',
Yme = (t, e) => {
var r;
return !!(
/^\s*flowchart-elk/.test(t) ||
(/^\s*flowchart|graph/.test(t) && ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === 'elk')
);
},
zme = async () => {
const { diagram: t } = await Nt(
() => import('./flowchart-elk-definition-ae0efee6-be1a2383.js'),
[
'assets/flowchart-elk-definition-ae0efee6-be1a2383.js',
'assets/flowDb-c1833063-9b18712a.js',
'assets/edges-066a5561-0489abec.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: b1, diagram: t };
},
Hme = { id: b1, detector: Yme, loader: zme },
$me = Hme,
T1 = 'timeline',
Vme = (t) => /^\s*timeline/.test(t),
Wme = async () => {
const { diagram: t } = await Nt(
() => import('./timeline-definition-bf702344-05628328.js'),
[
'assets/timeline-definition-bf702344-05628328.js',
'assets/arc-5ac49f55.js',
'assets/path-53f90ab3.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: T1, diagram: t };
},
Kme = { id: T1, detector: Vme, loader: Wme },
Qme = Kme,
v1 = 'mindmap',
Zme = (t) => /^\s*mindmap/.test(t),
Xme = async () => {
const { diagram: t } = await Nt(
() => import('./mindmap-definition-307c710a-ee0b9fe0.js'),
[
'assets/mindmap-definition-307c710a-ee0b9fe0.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: v1, diagram: t };
},
Jme = { id: v1, detector: Zme, loader: Xme },
jme = Jme,
C1 = 'sankey',
epe = (t) => /^\s*sankey-beta/.test(t),
tpe = async () => {
const { diagram: t } = await Nt(
() => import('./sankeyDiagram-707fac0f-f15cf608.js'),
[
'assets/sankeyDiagram-707fac0f-f15cf608.js',
'assets/Tableau10-1b767f5e.js',
'assets/ordinal-ba9b4969.js',
'assets/init-77b53fdd.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: C1, diagram: t };
},
rpe = { id: C1, detector: epe, loader: tpe },
npe = rpe,
y1 = 'block',
ipe = (t) => /^\s*block-beta/.test(t),
ape = async () => {
const { diagram: t } = await Nt(
() => import('./blockDiagram-9f4a6865-60789eb9.js'),
[
'assets/blockDiagram-9f4a6865-60789eb9.js',
'assets/clone-def30bb2.js',
'assets/graph-39d39682.js',
'assets/index-9c042f98.js',
'assets/index-56972103.css',
'assets/edges-066a5561-0489abec.js',
'assets/createText-ca0c5216-c3320e7a.js',
'assets/line-0981dc5a.js',
'assets/array-9f3ba611.js',
'assets/path-53f90ab3.js',
'assets/ordinal-ba9b4969.js',
'assets/init-77b53fdd.js',
'assets/Tableau10-1b767f5e.js',
'assets/channel-80f48b39.js',
'assets/_plugin-vue_export-helper-c27b6911.js',
]
);
return { id: y1, diagram: t };
},
ope = { id: y1, detector: ipe, loader: ape },
spe = ope;
let jh = !1;
const Hm = () => {
jh ||
((jh = !0),
jo('error', qme, (t) => t.toLowerCase().trim() === 'error'),
jo(
'---',
{
db: { clear: () => {} },
styles: {},
renderer: { draw: () => {} },
parser: {
parser: { yy: {} },
parse: () => {
throw new Error(
"Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks"
);
},
},
init: () => null,
},
(t) => t.toLowerCase().trimStart().startsWith('---')
),
HT(l_e, ime, eme, b_e, O_e, D_e, L_e, V_e, Z_e, $me, g_e, __e, jme, Qme, y_e, _me, lme, gme, F_e, npe, Y_e, spe));
};
class R1 {
constructor(e, r = {}) {
(this.text = e),
(this.metadata = r),
(this.type = 'graph'),
(this.text = Xde(e)),
(this.text += `
`);
const n = on();
try {
this.type = Ns(e, n);
} catch (a) {
(this.type = 'error'), (this.detectError = a);
}
const i = zm(this.type);
Ge.debug('Type ' + this.type),
(this.db = i.db),
(this.renderer = i.renderer),
(this.parser = i.parser),
(this.parser.parser.yy = this.db),
(this.init = i.init),
this.parse();
}
parse() {
var e, r, n, i, a;
if (this.detectError) throw this.detectError;
(r = (e = this.db).clear) == null || r.call(e);
const l = on();
(n = this.init) == null || n.call(this, l),
this.metadata.title && ((a = (i = this.db).setDiagramTitle) == null || a.call(i, this.metadata.title)),
this.parser.parse(this.text);
}
async render(e, r) {
await this.renderer.draw(this.text, e, r, this);
}
getParser() {
return this.parser;
}
getType() {
return this.type;
}
}
const lpe = async (t, e = {}) => {
const r = Ns(t, on());
try {
zm(r);
} catch {
const i = Rde(r);
if (!i) throw new zT(`Diagram ${r} not found.`);
const { id: a, diagram: l } = await i();
jo(a, l);
}
return new R1(t, e);
};
let eg = [];
const cpe = () => {
eg.forEach((t) => {
t();
}),
(eg = []);
},
upe = 'graphics-document document';
function dpe(t, e) {
t.attr('role', upe), e !== '' && t.attr('aria-roledescription', e);
}
function _pe(t, e, r, n) {
if (t.insert !== void 0) {
if (r) {
const i = `chart-desc-${n}`;
t.attr('aria-describedby', i), t.insert('desc', ':first-child').attr('id', i).text(r);
}
if (e) {
const i = `chart-title-${n}`;
t.attr('aria-labelledby', i), t.insert('title', ':first-child').attr('id', i).text(e);
}
}
}
const mpe = (t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, '').trimStart();
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function A1(t) {
return typeof t > 'u' || t === null;
}
function ppe(t) {
return typeof t == 'object' && t !== null;
}
function hpe(t) {
return Array.isArray(t) ? t : A1(t) ? [] : [t];
}
function gpe(t, e) {
var r, n, i, a;
if (e) for (a = Object.keys(e), r = 0, n = a.length; r < n; r += 1) (i = a[r]), (t[i] = e[i]);
return t;
}
function fpe(t, e) {
var r = '',
n;
for (n = 0; n < e; n += 1) r += t;
return r;
}
function Epe(t) {
return t === 0 && Number.NEGATIVE_INFINITY === 1 / t;
}
var Spe = A1,
bpe = ppe,
Tpe = hpe,
vpe = fpe,
Cpe = Epe,
ype = gpe,
nr = { isNothing: Spe, isObject: bpe, toArray: Tpe, repeat: vpe, isNegativeZero: Cpe, extend: ype };
function N1(t, e) {
var r = '',
n = t.reason || '(unknown reason)';
return t.mark
? (t.mark.name && (r += 'in "' + t.mark.name + '" '),
(r += '(' + (t.mark.line + 1) + ':' + (t.mark.column + 1) + ')'),
!e &&
t.mark.snippet &&
(r +=
`
` + t.mark.snippet),
n + ' ' + r)
: n;
}
function Aa(t, e) {
Error.call(this),
(this.name = 'YAMLException'),
(this.reason = t),
(this.mark = e),
(this.message = N1(this, !1)),
Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = new Error().stack || '');
}
Aa.prototype = Object.create(Error.prototype);
Aa.prototype.constructor = Aa;
Aa.prototype.toString = function (e) {
return this.name + ': ' + N1(this, e);
};
var Tn = Aa;
function Wl(t, e, r, n, i) {
var a = '',
l = '',
u = Math.floor(i / 2) - 1;
return (
n - e > u && ((a = ' ... '), (e = n - u + a.length)),
r - n > u && ((l = ' ...'), (r = n + u - l.length)),
{ str: a + t.slice(e, r).replace(/\t/g, '→') + l, pos: n - e + a.length }
);
}
function Kl(t, e) {
return nr.repeat(' ', e - t.length) + t;
}
function Rpe(t, e) {
if (((e = Object.create(e || null)), !t.buffer)) return null;
e.maxLength || (e.maxLength = 79),
typeof e.indent != 'number' && (e.indent = 1),
typeof e.linesBefore != 'number' && (e.linesBefore = 3),
typeof e.linesAfter != 'number' && (e.linesAfter = 2);
for (var r = /\r?\n|\r|\0/g, n = [0], i = [], a, l = -1; (a = r.exec(t.buffer)); )
i.push(a.index), n.push(a.index + a[0].length), t.position <= a.index && l < 0 && (l = n.length - 2);
l < 0 && (l = n.length - 1);
var u = '',
d,
m,
p = Math.min(t.line + e.linesAfter, i.length).toString().length,
E = e.maxLength - (e.indent + p + 3);
for (d = 1; d <= e.linesBefore && !(l - d < 0); d++)
(m = Wl(t.buffer, n[l - d], i[l - d], t.position - (n[l] - n[l - d]), E)),
(u =
nr.repeat(' ', e.indent) +
Kl((t.line - d + 1).toString(), p) +
' | ' +
m.str +
`
` +
u);
for (
m = Wl(t.buffer, n[l], i[l], t.position, E),
u +=
nr.repeat(' ', e.indent) +
Kl((t.line + 1).toString(), p) +
' | ' +
m.str +
`
`,
u +=
nr.repeat('-', e.indent + p + 3 + m.pos) +
`^
`,
d = 1;
d <= e.linesAfter && !(l + d >= i.length);
d++
)
(m = Wl(t.buffer, n[l + d], i[l + d], t.position - (n[l] - n[l + d]), E)),
(u +=
nr.repeat(' ', e.indent) +
Kl((t.line + d + 1).toString(), p) +
' | ' +
m.str +
`
`);
return u.replace(/\n$/, '');
}
var Ape = Rpe,
Npe = ['kind', 'multi', 'resolve', 'construct', 'instanceOf', 'predicate', 'represent', 'representName', 'defaultStyle', 'styleAliases'],
Ope = ['scalar', 'sequence', 'mapping'];
function Ipe(t) {
var e = {};
return (
t !== null &&
Object.keys(t).forEach(function (r) {
t[r].forEach(function (n) {
e[String(n)] = r;
});
}),
e
);
}
function xpe(t, e) {
if (
((e = e || {}),
Object.keys(e).forEach(function (r) {
if (Npe.indexOf(r) === -1) throw new Tn('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.');
}),
(this.options = e),
(this.tag = t),
(this.kind = e.kind || null),
(this.resolve =
e.resolve ||
function () {
return !0;
}),
(this.construct =
e.construct ||
function (r) {
return r;
}),
(this.instanceOf = e.instanceOf || null),
(this.predicate = e.predicate || null),
(this.represent = e.represent || null),
(this.representName = e.representName || null),
(this.defaultStyle = e.defaultStyle || null),
(this.multi = e.multi || !1),
(this.styleAliases = Ipe(e.styleAliases || null)),
Ope.indexOf(this.kind) === -1)
)
throw new Tn('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.');
}
var Jt = xpe;
function tg(t, e) {
var r = [];
return (
t[e].forEach(function (n) {
var i = r.length;
r.forEach(function (a, l) {
a.tag === n.tag && a.kind === n.kind && a.multi === n.multi && (i = l);
}),
(r[i] = n);
}),
r
);
}
function Dpe() {
var t = { scalar: {}, sequence: {}, mapping: {}, fallback: {}, multi: { scalar: [], sequence: [], mapping: [], fallback: [] } },
e,
r;
function n(i) {
i.multi ? (t.multi[i.kind].push(i), t.multi.fallback.push(i)) : (t[i.kind][i.tag] = t.fallback[i.tag] = i);
}
for (e = 0, r = arguments.length; e < r; e += 1) arguments[e].forEach(n);
return t;
}
function em(t) {
return this.extend(t);
}
em.prototype.extend = function (e) {
var r = [],
n = [];
if (e instanceof Jt) n.push(e);
else if (Array.isArray(e)) n = n.concat(e);
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
e.implicit && (r = r.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
else throw new Tn('Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })');
r.forEach(function (a) {
if (!(a instanceof Jt)) throw new Tn('Specified list of YAML types (or a single Type object) contains a non-Type object.');
if (a.loadKind && a.loadKind !== 'scalar')
throw new Tn('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
if (a.multi) throw new Tn('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.');
}),
n.forEach(function (a) {
if (!(a instanceof Jt)) throw new Tn('Specified list of YAML types (or a single Type object) contains a non-Type object.');
});
var i = Object.create(em.prototype);
return (
(i.implicit = (this.implicit || []).concat(r)),
(i.explicit = (this.explicit || []).concat(n)),
(i.compiledImplicit = tg(i, 'implicit')),
(i.compiledExplicit = tg(i, 'explicit')),
(i.compiledTypeMap = Dpe(i.compiledImplicit, i.compiledExplicit)),
i
);
};
var wpe = em,
Mpe = new Jt('tag:yaml.org,2002:str', {
kind: 'scalar',
construct: function (t) {
return t !== null ? t : '';
},
}),
Lpe = new Jt('tag:yaml.org,2002:seq', {
kind: 'sequence',
construct: function (t) {
return t !== null ? t : [];
},
}),
kpe = new Jt('tag:yaml.org,2002:map', {
kind: 'mapping',
construct: function (t) {
return t !== null ? t : {};
},
}),
Ppe = new wpe({ explicit: [Mpe, Lpe, kpe] });
function Bpe(t) {
if (t === null) return !0;
var e = t.length;
return (e === 1 && t === '~') || (e === 4 && (t === 'null' || t === 'Null' || t === 'NULL'));
}
function Fpe() {
return null;
}
function Upe(t) {
return t === null;
}
var Gpe = new Jt('tag:yaml.org,2002:null', {
kind: 'scalar',
resolve: Bpe,
construct: Fpe,
predicate: Upe,
represent: {
canonical: function () {
return '~';
},
lowercase: function () {
return 'null';
},
uppercase: function () {
return 'NULL';
},
camelcase: function () {
return 'Null';
},
empty: function () {
return '';
},
},
defaultStyle: 'lowercase',
});
function qpe(t) {
if (t === null) return !1;
var e = t.length;
return (e === 4 && (t === 'true' || t === 'True' || t === 'TRUE')) || (e === 5 && (t === 'false' || t === 'False' || t === 'FALSE'));
}
function Ype(t) {
return t === 'true' || t === 'True' || t === 'TRUE';
}
function zpe(t) {
return Object.prototype.toString.call(t) === '[object Boolean]';
}
var Hpe = new Jt('tag:yaml.org,2002:bool', {
kind: 'scalar',
resolve: qpe,
construct: Ype,
predicate: zpe,
represent: {
lowercase: function (t) {
return t ? 'true' : 'false';
},
uppercase: function (t) {
return t ? 'TRUE' : 'FALSE';
},
camelcase: function (t) {
return t ? 'True' : 'False';
},
},
defaultStyle: 'lowercase',
});
function $pe(t) {
return (48 <= t && t <= 57) || (65 <= t && t <= 70) || (97 <= t && t <= 102);
}
function Vpe(t) {
return 48 <= t && t <= 55;
}
function Wpe(t) {
return 48 <= t && t <= 57;
}
function Kpe(t) {
if (t === null) return !1;
var e = t.length,
r = 0,
n = !1,
i;
if (!e) return !1;
if (((i = t[r]), (i === '-' || i === '+') && (i = t[++r]), i === '0')) {
if (r + 1 === e) return !0;
if (((i = t[++r]), i === 'b')) {
for (r++; r < e; r++)
if (((i = t[r]), i !== '_')) {
if (i !== '0' && i !== '1') return !1;
n = !0;
}
return n && i !== '_';
}
if (i === 'x') {
for (r++; r < e; r++)
if (((i = t[r]), i !== '_')) {
if (!$pe(t.charCodeAt(r))) return !1;
n = !0;
}
return n && i !== '_';
}
if (i === 'o') {
for (r++; r < e; r++)
if (((i = t[r]), i !== '_')) {
if (!Vpe(t.charCodeAt(r))) return !1;
n = !0;
}
return n && i !== '_';
}
}
if (i === '_') return !1;
for (; r < e; r++)
if (((i = t[r]), i !== '_')) {
if (!Wpe(t.charCodeAt(r))) return !1;
n = !0;
}
return !(!n || i === '_');
}
function Qpe(t) {
var e = t,
r = 1,
n;
if (
(e.indexOf('_') !== -1 && (e = e.replace(/_/g, '')),
(n = e[0]),
(n === '-' || n === '+') && (n === '-' && (r = -1), (e = e.slice(1)), (n = e[0])),
e === '0')
)
return 0;
if (n === '0') {
if (e[1] === 'b') return r * parseInt(e.slice(2), 2);
if (e[1] === 'x') return r * parseInt(e.slice(2), 16);
if (e[1] === 'o') return r * parseInt(e.slice(2), 8);
}
return r * parseInt(e, 10);
}
function Zpe(t) {
return Object.prototype.toString.call(t) === '[object Number]' && t % 1 === 0 && !nr.isNegativeZero(t);
}
var Xpe = new Jt('tag:yaml.org,2002:int', {
kind: 'scalar',
resolve: Kpe,
construct: Qpe,
predicate: Zpe,
represent: {
binary: function (t) {
return t >= 0 ? '0b' + t.toString(2) : '-0b' + t.toString(2).slice(1);
},
octal: function (t) {
return t >= 0 ? '0o' + t.toString(8) : '-0o' + t.toString(8).slice(1);
},
decimal: function (t) {
return t.toString(10);
},
hexadecimal: function (t) {
return t >= 0 ? '0x' + t.toString(16).toUpperCase() : '-0x' + t.toString(16).toUpperCase().slice(1);
},
},
defaultStyle: 'decimal',
styleAliases: { binary: [2, 'bin'], octal: [8, 'oct'], decimal: [10, 'dec'], hexadecimal: [16, 'hex'] },
}),
Jpe = new RegExp(
'^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$'
);
function jpe(t) {
return !(t === null || !Jpe.test(t) || t[t.length - 1] === '_');
}
function e0e(t) {
var e, r;
return (
(e = t.replace(/_/g, '').toLowerCase()),
(r = e[0] === '-' ? -1 : 1),
'+-'.indexOf(e[0]) >= 0 && (e = e.slice(1)),
e === '.inf' ? (r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY) : e === '.nan' ? NaN : r * parseFloat(e, 10)
);
}
var t0e = /^[-+]?[0-9]+e/;
function r0e(t, e) {
var r;
if (isNaN(t))
switch (e) {
case 'lowercase':
return '.nan';
case 'uppercase':
return '.NAN';
case 'camelcase':
return '.NaN';
}
else if (Number.POSITIVE_INFINITY === t)
switch (e) {
case 'lowercase':
return '.inf';
case 'uppercase':
return '.INF';
case 'camelcase':
return '.Inf';
}
else if (Number.NEGATIVE_INFINITY === t)
switch (e) {
case 'lowercase':
return '-.inf';
case 'uppercase':
return '-.INF';
case 'camelcase':
return '-.Inf';
}
else if (nr.isNegativeZero(t)) return '-0.0';
return (r = t.toString(10)), t0e.test(r) ? r.replace('e', '.e') : r;
}
function n0e(t) {
return Object.prototype.toString.call(t) === '[object Number]' && (t % 1 !== 0 || nr.isNegativeZero(t));
}
var i0e = new Jt('tag:yaml.org,2002:float', {
kind: 'scalar',
resolve: jpe,
construct: e0e,
predicate: n0e,
represent: r0e,
defaultStyle: 'lowercase',
}),
O1 = Ppe.extend({ implicit: [Gpe, Hpe, Xpe, i0e] }),
a0e = O1,
I1 = new RegExp('^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$'),
x1 = new RegExp(
'^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$'
);
function o0e(t) {
return t === null ? !1 : I1.exec(t) !== null || x1.exec(t) !== null;
}
function s0e(t) {
var e,
r,
n,
i,
a,
l,
u,
d = 0,
m = null,
p,
E,
f;
if (((e = I1.exec(t)), e === null && (e = x1.exec(t)), e === null)) throw new Error('Date resolve error');
if (((r = +e[1]), (n = +e[2] - 1), (i = +e[3]), !e[4])) return new Date(Date.UTC(r, n, i));
if (((a = +e[4]), (l = +e[5]), (u = +e[6]), e[7])) {
for (d = e[7].slice(0, 3); d.length < 3; ) d += '0';
d = +d;
}
return (
e[9] && ((p = +e[10]), (E = +(e[11] || 0)), (m = (p * 60 + E) * 6e4), e[9] === '-' && (m = -m)),
(f = new Date(Date.UTC(r, n, i, a, l, u, d))),
m && f.setTime(f.getTime() - m),
f
);
}
function l0e(t) {
return t.toISOString();
}
var c0e = new Jt('tag:yaml.org,2002:timestamp', { kind: 'scalar', resolve: o0e, construct: s0e, instanceOf: Date, represent: l0e });
function u0e(t) {
return t === '<<' || t === null;
}
var d0e = new Jt('tag:yaml.org,2002:merge', { kind: 'scalar', resolve: u0e }),
$m = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;
function _0e(t) {
if (t === null) return !1;
var e,
r,
n = 0,
i = t.length,
a = $m;
for (r = 0; r < i; r++)
if (((e = a.indexOf(t.charAt(r))), !(e > 64))) {
if (e < 0) return !1;
n += 6;
}
return n % 8 === 0;
}
function m0e(t) {
var e,
r,
n = t.replace(/[\r\n=]/g, ''),
i = n.length,
a = $m,
l = 0,
u = [];
for (e = 0; e < i; e++)
e % 4 === 0 && e && (u.push((l >> 16) & 255), u.push((l >> 8) & 255), u.push(l & 255)), (l = (l << 6) | a.indexOf(n.charAt(e)));
return (
(r = (i % 4) * 6),
r === 0
? (u.push((l >> 16) & 255), u.push((l >> 8) & 255), u.push(l & 255))
: r === 18
? (u.push((l >> 10) & 255), u.push((l >> 2) & 255))
: r === 12 && u.push((l >> 4) & 255),
new Uint8Array(u)
);
}
function p0e(t) {
var e = '',
r = 0,
n,
i,
a = t.length,
l = $m;
for (n = 0; n < a; n++)
n % 3 === 0 && n && ((e += l[(r >> 18) & 63]), (e += l[(r >> 12) & 63]), (e += l[(r >> 6) & 63]), (e += l[r & 63])), (r = (r << 8) + t[n]);
return (
(i = a % 3),
i === 0
? ((e += l[(r >> 18) & 63]), (e += l[(r >> 12) & 63]), (e += l[(r >> 6) & 63]), (e += l[r & 63]))
: i === 2
? ((e += l[(r >> 10) & 63]), (e += l[(r >> 4) & 63]), (e += l[(r << 2) & 63]), (e += l[64]))
: i === 1 && ((e += l[(r >> 2) & 63]), (e += l[(r << 4) & 63]), (e += l[64]), (e += l[64])),
e
);
}
function h0e(t) {
return Object.prototype.toString.call(t) === '[object Uint8Array]';
}
var g0e = new Jt('tag:yaml.org,2002:binary', { kind: 'scalar', resolve: _0e, construct: m0e, predicate: h0e, represent: p0e }),
f0e = Object.prototype.hasOwnProperty,
E0e = Object.prototype.toString;
function S0e(t) {
if (t === null) return !0;
var e = [],
r,
n,
i,
a,
l,
u = t;
for (r = 0, n = u.length; r < n; r += 1) {
if (((i = u[r]), (l = !1), E0e.call(i) !== '[object Object]')) return !1;
for (a in i)
if (f0e.call(i, a))
if (!l) l = !0;
else return !1;
if (!l) return !1;
if (e.indexOf(a) === -1) e.push(a);
else return !1;
}
return !0;
}
function b0e(t) {
return t !== null ? t : [];
}
var T0e = new Jt('tag:yaml.org,2002:omap', { kind: 'sequence', resolve: S0e, construct: b0e }),
v0e = Object.prototype.toString;
function C0e(t) {
if (t === null) return !0;
var e,
r,
n,
i,
a,
l = t;
for (a = new Array(l.length), e = 0, r = l.length; e < r; e += 1) {
if (((n = l[e]), v0e.call(n) !== '[object Object]' || ((i = Object.keys(n)), i.length !== 1))) return !1;
a[e] = [i[0], n[i[0]]];
}
return !0;
}
function y0e(t) {
if (t === null) return [];
var e,
r,
n,
i,
a,
l = t;
for (a = new Array(l.length), e = 0, r = l.length; e < r; e += 1) (n = l[e]), (i = Object.keys(n)), (a[e] = [i[0], n[i[0]]]);
return a;
}
var R0e = new Jt('tag:yaml.org,2002:pairs', { kind: 'sequence', resolve: C0e, construct: y0e }),
A0e = Object.prototype.hasOwnProperty;
function N0e(t) {
if (t === null) return !0;
var e,
r = t;
for (e in r) if (A0e.call(r, e) && r[e] !== null) return !1;
return !0;
}
function O0e(t) {
return t !== null ? t : {};
}
var I0e = new Jt('tag:yaml.org,2002:set', { kind: 'mapping', resolve: N0e, construct: O0e }),
x0e = a0e.extend({ implicit: [c0e, d0e], explicit: [g0e, T0e, R0e, I0e] }),
Gn = Object.prototype.hasOwnProperty,
es = 1,
D1 = 2,
w1 = 3,
ts = 4,
Ql = 1,
D0e = 2,
rg = 3,
w0e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,
M0e = /[\x85\u2028\u2029]/,
L0e = /[,\[\]\{\}]/,
M1 = /^(?:!|!!|![a-z\-]+!)$/i,
L1 = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
function ng(t) {
return Object.prototype.toString.call(t);
}
function nn(t) {
return t === 10 || t === 13;
}
function Xn(t) {
return t === 9 || t === 32;
}
function dr(t) {
return t === 9 || t === 32 || t === 10 || t === 13;
}
function yi(t) {
return t === 44 || t === 91 || t === 93 || t === 123 || t === 125;
}
function k0e(t) {
var e;
return 48 <= t && t <= 57 ? t - 48 : ((e = t | 32), 97 <= e && e <= 102 ? e - 97 + 10 : -1);
}
function P0e(t) {
return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0;
}
function B0e(t) {
return 48 <= t && t <= 57 ? t - 48 : -1;
}
function ig(t) {
return t === 48
? '\0'
: t === 97
? '\x07'
: t === 98
? '\b'
: t === 116 || t === 9
? ' '
: t === 110
? `
`
: t === 118
? '\v'
: t === 102
? '\f'
: t === 114
? '\r'
: t === 101
? '\x1B'
: t === 32
? ' '
: t === 34
? '"'
: t === 47
? '/'
: t === 92
? '\\'
: t === 78
? '
'
: t === 95
? ' '
: t === 76
? '\u2028'
: t === 80
? '\u2029'
: '';
}
function F0e(t) {
return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode(((t - 65536) >> 10) + 55296, ((t - 65536) & 1023) + 56320);
}
var k1 = new Array(256),
P1 = new Array(256);
for (var vi = 0; vi < 256; vi++) (k1[vi] = ig(vi) ? 1 : 0), (P1[vi] = ig(vi));
function U0e(t, e) {
(this.input = t),
(this.filename = e.filename || null),
(this.schema = e.schema || x0e),
(this.onWarning = e.onWarning || null),
(this.legacy = e.legacy || !1),
(this.json = e.json || !1),
(this.listener = e.listener || null),
(this.implicitTypes = this.schema.compiledImplicit),
(this.typeMap = this.schema.compiledTypeMap),
(this.length = t.length),
(this.position = 0),
(this.line = 0),
(this.lineStart = 0),
(this.lineIndent = 0),
(this.firstTabInLine = -1),
(this.documents = []);
}
function B1(t, e) {
var r = { name: t.filename, buffer: t.input.slice(0, -1), position: t.position, line: t.line, column: t.position - t.lineStart };
return (r.snippet = Ape(r)), new Tn(e, r);
}
function Be(t, e) {
throw B1(t, e);
}
function rs(t, e) {
t.onWarning && t.onWarning.call(null, B1(t, e));
}
var ag = {
YAML: function (e, r, n) {
var i, a, l;
e.version !== null && Be(e, 'duplication of %YAML directive'),
n.length !== 1 && Be(e, 'YAML directive accepts exactly one argument'),
(i = /^([0-9]+)\.([0-9]+)$/.exec(n[0])),
i === null && Be(e, 'ill-formed argument of the YAML directive'),
(a = parseInt(i[1], 10)),
(l = parseInt(i[2], 10)),
a !== 1 && Be(e, 'unacceptable YAML version of the document'),
(e.version = n[0]),
(e.checkLineBreaks = l < 2),
l !== 1 && l !== 2 && rs(e, 'unsupported YAML version of the document');
},
TAG: function (e, r, n) {
var i, a;
n.length !== 2 && Be(e, 'TAG directive accepts exactly two arguments'),
(i = n[0]),
(a = n[1]),
M1.test(i) || Be(e, 'ill-formed tag handle (first argument) of the TAG directive'),
Gn.call(e.tagMap, i) && Be(e, 'there is a previously declared suffix for "' + i + '" tag handle'),
L1.test(a) || Be(e, 'ill-formed tag prefix (second argument) of the TAG directive');
try {
a = decodeURIComponent(a);
} catch {
Be(e, 'tag prefix is malformed: ' + a);
}
e.tagMap[i] = a;
},
};
function Fn(t, e, r, n) {
var i, a, l, u;
if (e < r) {
if (((u = t.input.slice(e, r)), n))
for (i = 0, a = u.length; i < a; i += 1) (l = u.charCodeAt(i)), l === 9 || (32 <= l && l <= 1114111) || Be(t, 'expected valid JSON character');
else w0e.test(u) && Be(t, 'the stream contains non-printable characters');
t.result += u;
}
}
function og(t, e, r, n) {
var i, a, l, u;
for (
nr.isObject(r) || Be(t, 'cannot merge mappings; the provided source object is unacceptable'), i = Object.keys(r), l = 0, u = i.length;
l < u;
l += 1
)
(a = i[l]), Gn.call(e, a) || ((e[a] = r[a]), (n[a] = !0));
}
function Ri(t, e, r, n, i, a, l, u, d) {
var m, p;
if (Array.isArray(i))
for (i = Array.prototype.slice.call(i), m = 0, p = i.length; m < p; m += 1)
Array.isArray(i[m]) && Be(t, 'nested arrays are not supported inside keys'),
typeof i == 'object' && ng(i[m]) === '[object Object]' && (i[m] = '[object Object]');
if (
(typeof i == 'object' && ng(i) === '[object Object]' && (i = '[object Object]'),
(i = String(i)),
e === null && (e = {}),
n === 'tag:yaml.org,2002:merge')
)
if (Array.isArray(a)) for (m = 0, p = a.length; m < p; m += 1) og(t, e, a[m], r);
else og(t, e, a, r);
else
!t.json &&
!Gn.call(r, i) &&
Gn.call(e, i) &&
((t.line = l || t.line), (t.lineStart = u || t.lineStart), (t.position = d || t.position), Be(t, 'duplicated mapping key')),
i === '__proto__' ? Object.defineProperty(e, i, { configurable: !0, enumerable: !0, writable: !0, value: a }) : (e[i] = a),
delete r[i];
return e;
}
function Vm(t) {
var e;
(e = t.input.charCodeAt(t.position)),
e === 10 ? t.position++ : e === 13 ? (t.position++, t.input.charCodeAt(t.position) === 10 && t.position++) : Be(t, 'a line break is expected'),
(t.line += 1),
(t.lineStart = t.position),
(t.firstTabInLine = -1);
}
function Bt(t, e, r) {
for (var n = 0, i = t.input.charCodeAt(t.position); i !== 0; ) {
for (; Xn(i); ) i === 9 && t.firstTabInLine === -1 && (t.firstTabInLine = t.position), (i = t.input.charCodeAt(++t.position));
if (e && i === 35)
do i = t.input.charCodeAt(++t.position);
while (i !== 10 && i !== 13 && i !== 0);
if (nn(i))
for (Vm(t), i = t.input.charCodeAt(t.position), n++, t.lineIndent = 0; i === 32; ) t.lineIndent++, (i = t.input.charCodeAt(++t.position));
else break;
}
return r !== -1 && n !== 0 && t.lineIndent < r && rs(t, 'deficient indentation'), n;
}
function Is(t) {
var e = t.position,
r;
return (
(r = t.input.charCodeAt(e)),
!!(
(r === 45 || r === 46) &&
r === t.input.charCodeAt(e + 1) &&
r === t.input.charCodeAt(e + 2) &&
((e += 3), (r = t.input.charCodeAt(e)), r === 0 || dr(r))
)
);
}
function Wm(t, e) {
e === 1
? (t.result += ' ')
: e > 1 &&
(t.result += nr.repeat(
`
`,
e - 1
));
}
function G0e(t, e, r) {
var n,
i,
a,
l,
u,
d,
m,
p,
E = t.kind,
f = t.result,
v;
if (
((v = t.input.charCodeAt(t.position)),
dr(v) ||
yi(v) ||
v === 35 ||
v === 38 ||
v === 42 ||
v === 33 ||
v === 124 ||
v === 62 ||
v === 39 ||
v === 34 ||
v === 37 ||
v === 64 ||
v === 96 ||
((v === 63 || v === 45) && ((i = t.input.charCodeAt(t.position + 1)), dr(i) || (r && yi(i)))))
)
return !1;
for (t.kind = 'scalar', t.result = '', a = l = t.position, u = !1; v !== 0; ) {
if (v === 58) {
if (((i = t.input.charCodeAt(t.position + 1)), dr(i) || (r && yi(i)))) break;
} else if (v === 35) {
if (((n = t.input.charCodeAt(t.position - 1)), dr(n))) break;
} else {
if ((t.position === t.lineStart && Is(t)) || (r && yi(v))) break;
if (nn(v))
if (((d = t.line), (m = t.lineStart), (p = t.lineIndent), Bt(t, !1, -1), t.lineIndent >= e)) {
(u = !0), (v = t.input.charCodeAt(t.position));
continue;
} else {
(t.position = l), (t.line = d), (t.lineStart = m), (t.lineIndent = p);
break;
}
}
u && (Fn(t, a, l, !1), Wm(t, t.line - d), (a = l = t.position), (u = !1)), Xn(v) || (l = t.position + 1), (v = t.input.charCodeAt(++t.position));
}
return Fn(t, a, l, !1), t.result ? !0 : ((t.kind = E), (t.result = f), !1);
}
function q0e(t, e) {
var r, n, i;
if (((r = t.input.charCodeAt(t.position)), r !== 39)) return !1;
for (t.kind = 'scalar', t.result = '', t.position++, n = i = t.position; (r = t.input.charCodeAt(t.position)) !== 0; )
if (r === 39)
if ((Fn(t, n, t.position, !0), (r = t.input.charCodeAt(++t.position)), r === 39)) (n = t.position), t.position++, (i = t.position);
else return !0;
else
nn(r)
? (Fn(t, n, i, !0), Wm(t, Bt(t, !1, e)), (n = i = t.position))
: t.position === t.lineStart && Is(t)
? Be(t, 'unexpected end of the document within a single quoted scalar')
: (t.position++, (i = t.position));
Be(t, 'unexpected end of the stream within a single quoted scalar');
}
function Y0e(t, e) {
var r, n, i, a, l, u;
if (((u = t.input.charCodeAt(t.position)), u !== 34)) return !1;
for (t.kind = 'scalar', t.result = '', t.position++, r = n = t.position; (u = t.input.charCodeAt(t.position)) !== 0; ) {
if (u === 34) return Fn(t, r, t.position, !0), t.position++, !0;
if (u === 92) {
if ((Fn(t, r, t.position, !0), (u = t.input.charCodeAt(++t.position)), nn(u))) Bt(t, !1, e);
else if (u < 256 && k1[u]) (t.result += P1[u]), t.position++;
else if ((l = P0e(u)) > 0) {
for (i = l, a = 0; i > 0; i--)
(u = t.input.charCodeAt(++t.position)), (l = k0e(u)) >= 0 ? (a = (a << 4) + l) : Be(t, 'expected hexadecimal character');
(t.result += F0e(a)), t.position++;
} else Be(t, 'unknown escape sequence');
r = n = t.position;
} else
nn(u)
? (Fn(t, r, n, !0), Wm(t, Bt(t, !1, e)), (r = n = t.position))
: t.position === t.lineStart && Is(t)
? Be(t, 'unexpected end of the document within a double quoted scalar')
: (t.position++, (n = t.position));
}
Be(t, 'unexpected end of the stream within a double quoted scalar');
}
function z0e(t, e) {
var r = !0,
n,
i,
a,
l = t.tag,
u,
d = t.anchor,
m,
p,
E,
f,
v,
R = Object.create(null),
O,
M,
w,
D;
if (((D = t.input.charCodeAt(t.position)), D === 91)) (p = 93), (v = !1), (u = []);
else if (D === 123) (p = 125), (v = !0), (u = {});
else return !1;
for (t.anchor !== null && (t.anchorMap[t.anchor] = u), D = t.input.charCodeAt(++t.position); D !== 0; ) {
if ((Bt(t, !0, e), (D = t.input.charCodeAt(t.position)), D === p))
return t.position++, (t.tag = l), (t.anchor = d), (t.kind = v ? 'mapping' : 'sequence'), (t.result = u), !0;
r ? D === 44 && Be(t, "expected the node content, but found ','") : Be(t, 'missed comma between flow collection entries'),
(M = O = w = null),
(E = f = !1),
D === 63 && ((m = t.input.charCodeAt(t.position + 1)), dr(m) && ((E = f = !0), t.position++, Bt(t, !0, e))),
(n = t.line),
(i = t.lineStart),
(a = t.position),
ki(t, e, es, !1, !0),
(M = t.tag),
(O = t.result),
Bt(t, !0, e),
(D = t.input.charCodeAt(t.position)),
(f || t.line === n) && D === 58 && ((E = !0), (D = t.input.charCodeAt(++t.position)), Bt(t, !0, e), ki(t, e, es, !1, !0), (w = t.result)),
v ? Ri(t, u, R, M, O, w, n, i, a) : E ? u.push(Ri(t, null, R, M, O, w, n, i, a)) : u.push(O),
Bt(t, !0, e),
(D = t.input.charCodeAt(t.position)),
D === 44 ? ((r = !0), (D = t.input.charCodeAt(++t.position))) : (r = !1);
}
Be(t, 'unexpected end of the stream within a flow collection');
}
function H0e(t, e) {
var r,
n,
i = Ql,
a = !1,
l = !1,
u = e,
d = 0,
m = !1,
p,
E;
if (((E = t.input.charCodeAt(t.position)), E === 124)) n = !1;
else if (E === 62) n = !0;
else return !1;
for (t.kind = 'scalar', t.result = ''; E !== 0; )
if (((E = t.input.charCodeAt(++t.position)), E === 43 || E === 45))
Ql === i ? (i = E === 43 ? rg : D0e) : Be(t, 'repeat of a chomping mode identifier');
else if ((p = B0e(E)) >= 0)
p === 0
? Be(t, 'bad explicit indentation width of a block scalar; it cannot be less than one')
: l
? Be(t, 'repeat of an indentation width identifier')
: ((u = e + p - 1), (l = !0));
else break;
if (Xn(E)) {
do E = t.input.charCodeAt(++t.position);
while (Xn(E));
if (E === 35)
do E = t.input.charCodeAt(++t.position);
while (!nn(E) && E !== 0);
}
for (; E !== 0; ) {
for (Vm(t), t.lineIndent = 0, E = t.input.charCodeAt(t.position); (!l || t.lineIndent < u) && E === 32; )
t.lineIndent++, (E = t.input.charCodeAt(++t.position));
if ((!l && t.lineIndent > u && (u = t.lineIndent), nn(E))) {
d++;
continue;
}
if (t.lineIndent < u) {
i === rg
? (t.result += nr.repeat(
`
`,
a ? 1 + d : d
))
: i === Ql &&
a &&
(t.result += `
`);
break;
}
for (
n
? Xn(E)
? ((m = !0),
(t.result += nr.repeat(
`
`,
a ? 1 + d : d
)))
: m
? ((m = !1),
(t.result += nr.repeat(
`
`,
d + 1
)))
: d === 0
? a && (t.result += ' ')
: (t.result += nr.repeat(
`
`,
d
))
: (t.result += nr.repeat(
`
`,
a ? 1 + d : d
)),
a = !0,
l = !0,
d = 0,
r = t.position;
!nn(E) && E !== 0;
)
E = t.input.charCodeAt(++t.position);
Fn(t, r, t.position, !1);
}
return !0;
}
function sg(t, e) {
var r,
n = t.tag,
i = t.anchor,
a = [],
l,
u = !1,
d;
if (t.firstTabInLine !== -1) return !1;
for (
t.anchor !== null && (t.anchorMap[t.anchor] = a), d = t.input.charCodeAt(t.position);
d !== 0 &&
(t.firstTabInLine !== -1 && ((t.position = t.firstTabInLine), Be(t, 'tab characters must not be used in indentation')),
!(d !== 45 || ((l = t.input.charCodeAt(t.position + 1)), !dr(l))));
) {
if (((u = !0), t.position++, Bt(t, !0, -1) && t.lineIndent <= e)) {
a.push(null), (d = t.input.charCodeAt(t.position));
continue;
}
if (
((r = t.line),
ki(t, e, w1, !1, !0),
a.push(t.result),
Bt(t, !0, -1),
(d = t.input.charCodeAt(t.position)),
(t.line === r || t.lineIndent > e) && d !== 0)
)
Be(t, 'bad indentation of a sequence entry');
else if (t.lineIndent < e) break;
}
return u ? ((t.tag = n), (t.anchor = i), (t.kind = 'sequence'), (t.result = a), !0) : !1;
}
function $0e(t, e, r) {
var n,
i,
a,
l,
u,
d,
m = t.tag,
p = t.anchor,
E = {},
f = Object.create(null),
v = null,
R = null,
O = null,
M = !1,
w = !1,
D;
if (t.firstTabInLine !== -1) return !1;
for (t.anchor !== null && (t.anchorMap[t.anchor] = E), D = t.input.charCodeAt(t.position); D !== 0; ) {
if (
(!M && t.firstTabInLine !== -1 && ((t.position = t.firstTabInLine), Be(t, 'tab characters must not be used in indentation')),
(n = t.input.charCodeAt(t.position + 1)),
(a = t.line),
(D === 63 || D === 58) && dr(n))
)
D === 63
? (M && (Ri(t, E, f, v, R, null, l, u, d), (v = R = O = null)), (w = !0), (M = !0), (i = !0))
: M
? ((M = !1), (i = !0))
: Be(t, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'),
(t.position += 1),
(D = n);
else {
if (((l = t.line), (u = t.lineStart), (d = t.position), !ki(t, r, D1, !1, !0))) break;
if (t.line === a) {
for (D = t.input.charCodeAt(t.position); Xn(D); ) D = t.input.charCodeAt(++t.position);
if (D === 58)
(D = t.input.charCodeAt(++t.position)),
dr(D) || Be(t, 'a whitespace character is expected after the key-value separator within a block mapping'),
M && (Ri(t, E, f, v, R, null, l, u, d), (v = R = O = null)),
(w = !0),
(M = !1),
(i = !1),
(v = t.tag),
(R = t.result);
else if (w) Be(t, 'can not read an implicit mapping pair; a colon is missed');
else return (t.tag = m), (t.anchor = p), !0;
} else if (w) Be(t, 'can not read a block mapping entry; a multiline key may not be an implicit key');
else return (t.tag = m), (t.anchor = p), !0;
}
if (
((t.line === a || t.lineIndent > e) &&
(M && ((l = t.line), (u = t.lineStart), (d = t.position)),
ki(t, e, ts, !0, i) && (M ? (R = t.result) : (O = t.result)),
M || (Ri(t, E, f, v, R, O, l, u, d), (v = R = O = null)),
Bt(t, !0, -1),
(D = t.input.charCodeAt(t.position))),
(t.line === a || t.lineIndent > e) && D !== 0)
)
Be(t, 'bad indentation of a mapping entry');
else if (t.lineIndent < e) break;
}
return M && Ri(t, E, f, v, R, null, l, u, d), w && ((t.tag = m), (t.anchor = p), (t.kind = 'mapping'), (t.result = E)), w;
}
function V0e(t) {
var e,
r = !1,
n = !1,
i,
a,
l;
if (((l = t.input.charCodeAt(t.position)), l !== 33)) return !1;
if (
(t.tag !== null && Be(t, 'duplication of a tag property'),
(l = t.input.charCodeAt(++t.position)),
l === 60
? ((r = !0), (l = t.input.charCodeAt(++t.position)))
: l === 33
? ((n = !0), (i = '!!'), (l = t.input.charCodeAt(++t.position)))
: (i = '!'),
(e = t.position),
r)
) {
do l = t.input.charCodeAt(++t.position);
while (l !== 0 && l !== 62);
t.position < t.length
? ((a = t.input.slice(e, t.position)), (l = t.input.charCodeAt(++t.position)))
: Be(t, 'unexpected end of the stream within a verbatim tag');
} else {
for (; l !== 0 && !dr(l); )
l === 33 &&
(n
? Be(t, 'tag suffix cannot contain exclamation marks')
: ((i = t.input.slice(e - 1, t.position + 1)),
M1.test(i) || Be(t, 'named tag handle cannot contain such characters'),
(n = !0),
(e = t.position + 1))),
(l = t.input.charCodeAt(++t.position));
(a = t.input.slice(e, t.position)), L0e.test(a) && Be(t, 'tag suffix cannot contain flow indicator characters');
}
a && !L1.test(a) && Be(t, 'tag name cannot contain such characters: ' + a);
try {
a = decodeURIComponent(a);
} catch {
Be(t, 'tag name is malformed: ' + a);
}
return (
r
? (t.tag = a)
: Gn.call(t.tagMap, i)
? (t.tag = t.tagMap[i] + a)
: i === '!'
? (t.tag = '!' + a)
: i === '!!'
? (t.tag = 'tag:yaml.org,2002:' + a)
: Be(t, 'undeclared tag handle "' + i + '"'),
!0
);
}
function W0e(t) {
var e, r;
if (((r = t.input.charCodeAt(t.position)), r !== 38)) return !1;
for (
t.anchor !== null && Be(t, 'duplication of an anchor property'), r = t.input.charCodeAt(++t.position), e = t.position;
r !== 0 && !dr(r) && !yi(r);
)
r = t.input.charCodeAt(++t.position);
return t.position === e && Be(t, 'name of an anchor node must contain at least one character'), (t.anchor = t.input.slice(e, t.position)), !0;
}
function K0e(t) {
var e, r, n;
if (((n = t.input.charCodeAt(t.position)), n !== 42)) return !1;
for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !dr(n) && !yi(n); ) n = t.input.charCodeAt(++t.position);
return (
t.position === e && Be(t, 'name of an alias node must contain at least one character'),
(r = t.input.slice(e, t.position)),
Gn.call(t.anchorMap, r) || Be(t, 'unidentified alias "' + r + '"'),
(t.result = t.anchorMap[r]),
Bt(t, !0, -1),
!0
);
}
function ki(t, e, r, n, i) {
var a,
l,
u,
d = 1,
m = !1,
p = !1,
E,
f,
v,
R,
O,
M;
if (
(t.listener !== null && t.listener('open', t),
(t.tag = null),
(t.anchor = null),
(t.kind = null),
(t.result = null),
(a = l = u = ts === r || w1 === r),
n && Bt(t, !0, -1) && ((m = !0), t.lineIndent > e ? (d = 1) : t.lineIndent === e ? (d = 0) : t.lineIndent < e && (d = -1)),
d === 1)
)
for (; V0e(t) || W0e(t); )
Bt(t, !0, -1) ? ((m = !0), (u = a), t.lineIndent > e ? (d = 1) : t.lineIndent === e ? (d = 0) : t.lineIndent < e && (d = -1)) : (u = !1);
if (
(u && (u = m || i),
(d === 1 || ts === r) &&
(es === r || D1 === r ? (O = e) : (O = e + 1),
(M = t.position - t.lineStart),
d === 1
? (u && (sg(t, M) || $0e(t, M, O))) || z0e(t, O)
? (p = !0)
: ((l && H0e(t, O)) || q0e(t, O) || Y0e(t, O)
? (p = !0)
: K0e(t)
? ((p = !0), (t.tag !== null || t.anchor !== null) && Be(t, 'alias node should not have any properties'))
: G0e(t, O, es === r) && ((p = !0), t.tag === null && (t.tag = '?')),
t.anchor !== null && (t.anchorMap[t.anchor] = t.result))
: d === 0 && (p = u && sg(t, M))),
t.tag === null)
)
t.anchor !== null && (t.anchorMap[t.anchor] = t.result);
else if (t.tag === '?') {
for (
t.result !== null && t.kind !== 'scalar' && Be(t, 'unacceptable node kind for !> tag; it should be "scalar", not "' + t.kind + '"'),
E = 0,
f = t.implicitTypes.length;
E < f;
E += 1
)
if (((R = t.implicitTypes[E]), R.resolve(t.result))) {
(t.result = R.construct(t.result)), (t.tag = R.tag), t.anchor !== null && (t.anchorMap[t.anchor] = t.result);
break;
}
} else if (t.tag !== '!') {
if (Gn.call(t.typeMap[t.kind || 'fallback'], t.tag)) R = t.typeMap[t.kind || 'fallback'][t.tag];
else
for (R = null, v = t.typeMap.multi[t.kind || 'fallback'], E = 0, f = v.length; E < f; E += 1)
if (t.tag.slice(0, v[E].tag.length) === v[E].tag) {
R = v[E];
break;
}
R || Be(t, 'unknown tag !<' + t.tag + '>'),
t.result !== null &&
R.kind !== t.kind &&
Be(t, 'unacceptable node kind for !<' + t.tag + '> tag; it should be "' + R.kind + '", not "' + t.kind + '"'),
R.resolve(t.result, t.tag)
? ((t.result = R.construct(t.result, t.tag)), t.anchor !== null && (t.anchorMap[t.anchor] = t.result))
: Be(t, 'cannot resolve a node with !<' + t.tag + '> explicit tag');
}
return t.listener !== null && t.listener('close', t), t.tag !== null || t.anchor !== null || p;
}
function Q0e(t) {
var e = t.position,
r,
n,
i,
a = !1,
l;
for (
t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = Object.create(null), t.anchorMap = Object.create(null);
(l = t.input.charCodeAt(t.position)) !== 0 && (Bt(t, !0, -1), (l = t.input.charCodeAt(t.position)), !(t.lineIndent > 0 || l !== 37));
) {
for (a = !0, l = t.input.charCodeAt(++t.position), r = t.position; l !== 0 && !dr(l); ) l = t.input.charCodeAt(++t.position);
for (n = t.input.slice(r, t.position), i = [], n.length < 1 && Be(t, 'directive name must not be less than one character in length'); l !== 0; ) {
for (; Xn(l); ) l = t.input.charCodeAt(++t.position);
if (l === 35) {
do l = t.input.charCodeAt(++t.position);
while (l !== 0 && !nn(l));
break;
}
if (nn(l)) break;
for (r = t.position; l !== 0 && !dr(l); ) l = t.input.charCodeAt(++t.position);
i.push(t.input.slice(r, t.position));
}
l !== 0 && Vm(t), Gn.call(ag, n) ? ag[n](t, n, i) : rs(t, 'unknown document directive "' + n + '"');
}
if (
(Bt(t, !0, -1),
t.lineIndent === 0 &&
t.input.charCodeAt(t.position) === 45 &&
t.input.charCodeAt(t.position + 1) === 45 &&
t.input.charCodeAt(t.position + 2) === 45
? ((t.position += 3), Bt(t, !0, -1))
: a && Be(t, 'directives end mark is expected'),
ki(t, t.lineIndent - 1, ts, !1, !0),
Bt(t, !0, -1),
t.checkLineBreaks && M0e.test(t.input.slice(e, t.position)) && rs(t, 'non-ASCII line breaks are interpreted as content'),
t.documents.push(t.result),
t.position === t.lineStart && Is(t))
) {
t.input.charCodeAt(t.position) === 46 && ((t.position += 3), Bt(t, !0, -1));
return;
}
if (t.position < t.length - 1) Be(t, 'end of the stream or a document separator is expected');
else return;
}
function F1(t, e) {
(t = String(t)),
(e = e || {}),
t.length !== 0 &&
(t.charCodeAt(t.length - 1) !== 10 &&
t.charCodeAt(t.length - 1) !== 13 &&
(t += `
`),
t.charCodeAt(0) === 65279 && (t = t.slice(1)));
var r = new U0e(t, e),
n = t.indexOf('\0');
for (n !== -1 && ((r.position = n), Be(r, 'null byte is not allowed in input')), r.input += '\0'; r.input.charCodeAt(r.position) === 32; )
(r.lineIndent += 1), (r.position += 1);
for (; r.position < r.length - 1; ) Q0e(r);
return r.documents;
}
function Z0e(t, e, r) {
e !== null && typeof e == 'object' && typeof r > 'u' && ((r = e), (e = null));
var n = F1(t, r);
if (typeof e != 'function') return n;
for (var i = 0, a = n.length; i < a; i += 1) e(n[i]);
}
function X0e(t, e) {
var r = F1(t, e);
if (r.length !== 0) {
if (r.length === 1) return r[0];
throw new Tn('expected a single document in the stream, but found more');
}
}
var J0e = Z0e,
j0e = X0e,
ehe = { loadAll: J0e, load: j0e },
the = O1,
rhe = ehe.load;
function nhe(t) {
const e = t.match(YT);
if (!e) return { text: t, metadata: {} };
let r = rhe(e[1], { schema: the }) ?? {};
r = typeof r == 'object' && !Array.isArray(r) ? r : {};
const n = {};
return (
r.displayMode && (n.displayMode = r.displayMode.toString()),
r.title && (n.title = r.title.toString()),
r.config && (n.config = r.config),
{ text: t.slice(e[0].length), metadata: n }
);
}
const ihe = (t) =>
t
.replace(
/\r\n?/g,
`
`
)
.replace(/<(\w+)([^>]*)>/g, (e, r, n) => '<' + r + n.replace(/="([^"]*)"/g, "='$1'") + '>'),
ahe = (t) => {
const { text: e, metadata: r } = nhe(t),
{ displayMode: n, title: i, config: a = {} } = r;
return n && (a.gantt || (a.gantt = {}), (a.gantt.displayMode = n)), { title: i, config: a, text: e };
},
ohe = (t) => {
const e = ga.detectInit(t) ?? {},
r = ga.detectDirective(t, 'wrap');
return (
Array.isArray(r) ? (e.wrap = r.some(({ type: n }) => {})) : (r == null ? void 0 : r.type) === 'wrap' && (e.wrap = !0),
{ text: xde(t), directive: e }
);
};
function U1(t) {
const e = ihe(t),
r = ahe(e),
n = ohe(r.text),
i = QT(r.config, n.directive);
return (t = mpe(n.text)), { code: t, title: r.title, config: i };
}
const she = 5e4,
lhe = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa',
che = 'sandbox',
uhe = 'loose',
dhe = 'http://www.w3.org/2000/svg',
_he = 'http://www.w3.org/1999/xlink',
mhe = 'http://www.w3.org/1999/xhtml',
phe = '100%',
hhe = '100%',
ghe = 'border:0;margin:0;',
fhe = 'margin:0',
Ehe = 'allow-top-navigation-by-user-activation allow-popups',
She = 'The "iframe" tag is not supported by your browser.',
bhe = ['foreignobject'],
The = ['dominant-baseline'];
function G1(t) {
const e = U1(t);
return Xo(), r_e(e.config ?? {}), e;
}
async function vhe(t, e) {
Hm(), (t = G1(t).code);
try {
await Km(t);
} catch (r) {
if (e != null && e.suppressErrors) return !1;
throw r;
}
return !0;
}
const lg = (t, e, r = []) => `
.${t} ${e} { ${r.join(' !important; ')} !important; }`,
Che = (t, e = {}) => {
var r;
let n = '';
if (
(t.themeCSS !== void 0 &&
(n += `
${t.themeCSS}`),
t.fontFamily !== void 0 &&
(n += `
:root { --mermaid-font-family: ${t.fontFamily}}`),
t.altFontFamily !== void 0 &&
(n += `
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),
!Sl(e))
) {
const u =
t.htmlLabels || ((r = t.flowchart) == null ? void 0 : r.htmlLabels) ? ['> *', 'span'] : ['rect', 'polygon', 'ellipse', 'circle', 'path'];
for (const d in e) {
const m = e[d];
Sl(m.styles) ||
u.forEach((p) => {
n += lg(m.id, p, m.styles);
}),
Sl(m.textStyles) || (n += lg(m.id, 'tspan', m.textStyles));
}
}
return n;
},
yhe = (t, e, r, n) => {
const i = Che(t, r),
a = vme(e, i, t.themeVariables);
return Z_(Que(`${n}{${a}}`), Xue);
},
Rhe = (t = '', e, r) => {
let n = t;
return (
!r && !e && (n = n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, 'marker-end="url(#')), (n = Jde(n)), (n = n.replace(/ /g, ' ')), n
);
},
Ahe = (t = '', e) => {
var r, n;
const i = (n = (r = e == null ? void 0 : e.viewBox) == null ? void 0 : r.baseVal) != null && n.height ? e.viewBox.baseVal.height + 'px' : hhe,
a = btoa('' + t + '');
return ``;
},
cg = (t, e, r, n, i) => {
const a = t.append('div');
a.attr('id', r), n && a.attr('style', n);
const l = a.append('svg').attr('id', e).attr('width', '100%').attr('xmlns', dhe);
return i && l.attr('xmlns:xlink', i), l.append('g'), t;
};
function ug(t, e) {
return t.append('iframe').attr('id', e).attr('style', 'width: 100%; height: 100%;').attr('sandbox', '');
}
const Nhe = (t, e, r, n) => {
var i, a, l;
(i = t.getElementById(e)) == null || i.remove(), (a = t.getElementById(r)) == null || a.remove(), (l = t.getElementById(n)) == null || l.remove();
},
Ohe = async function (t, e, r) {
var n, i, a, l, u, d;
Hm();
const m = G1(e);
e = m.code;
const p = on();
Ge.debug(p), e.length > ((p == null ? void 0 : p.maxTextSize) ?? she) && (e = lhe);
const E = '#' + t,
f = 'i' + t,
v = '#' + f,
R = 'd' + t,
O = '#' + R;
let M = Or('body');
const w = p.securityLevel === che,
D = p.securityLevel === uhe,
F = p.fontFamily;
if (r !== void 0) {
if ((r && (r.innerHTML = ''), w)) {
const se = ug(Or(r), f);
(M = Or(se.nodes()[0].contentDocument.body)), (M.node().style.margin = 0);
} else M = Or(r);
cg(M, t, R, `font-family: ${F}`, _he);
} else {
if ((Nhe(document, t, R, f), w)) {
const se = ug(Or('body'), f);
(M = Or(se.nodes()[0].contentDocument.body)), (M.node().style.margin = 0);
} else M = Or('body');
cg(M, t, R);
}
let Y, z;
try {
Y = await Km(e, { title: m.title });
} catch (se) {
(Y = new R1('error')), (z = se);
}
const G = M.select(O).node(),
X = Y.type,
ne = G.firstChild,
ce = ne.firstChild,
j = (i = (n = Y.renderer).getClasses) == null ? void 0 : i.call(n, e, Y),
Q = yhe(p, X, j, E),
Ae = document.createElement('style');
(Ae.innerHTML = Q), ne.insertBefore(Ae, ce);
try {
await Y.renderer.draw(e, t, Xh, Y);
} catch (se) {
throw (Ume.draw(e, t, Xh), se);
}
const Oe = M.select(`${O} svg`),
H = (l = (a = Y.db).getAccTitle) == null ? void 0 : l.call(a),
re = (d = (u = Y.db).getAccDescription) == null ? void 0 : d.call(u);
xhe(X, Oe, H, re), M.select(`[id="${t}"]`).selectAll('foreignobject > *').attr('xmlns', mhe);
let P = M.select(O).node().innerHTML;
if ((Ge.debug('config.arrowMarkerAbsolute', p.arrowMarkerAbsolute), (P = Rhe(P, w, UT(p.arrowMarkerAbsolute))), w)) {
const se = M.select(O + ' svg').node();
P = Ahe(P, se);
} else D || (P = xi.sanitize(P, { ADD_TAGS: bhe, ADD_ATTR: The }));
if ((cpe(), z)) throw z;
const Z = Or(w ? v : O).node();
return Z && 'remove' in Z && Z.remove(), { svg: P, bindFunctions: Y.db.bindFunctions };
};
function Ihe(t = {}) {
var e;
t != null &&
t.fontFamily &&
!((e = t.themeVariables) != null && e.fontFamily) &&
(t.themeVariables || (t.themeVariables = {}), (t.themeVariables.fontFamily = t.fontFamily)),
e_e(t),
t != null && t.theme && t.theme in Cn
? (t.themeVariables = Cn[t.theme].getThemeVariables(t.themeVariables))
: t && (t.themeVariables = Cn.default.getThemeVariables(t.themeVariables));
const r = typeof t == 'object' ? jde(t) : XT();
Mm(r.logLevel), Hm();
}
const Km = (t, e = {}) => {
const { code: r } = U1(t);
return lpe(r, e);
};
function xhe(t, e, r, n) {
dpe(e, t), _pe(e, r, n, e.attr('id'));
}
const ti = Object.freeze({
render: Ohe,
parse: vhe,
getDiagramFromText: Km,
initialize: Ihe,
getConfig: on,
setConfig: JT,
getSiteConfig: XT,
updateSiteConfig: t_e,
reset: () => {
Xo();
},
globalReset: () => {
Xo(Mi);
},
defaultConfig: Mi,
});
Mm(on().logLevel);
Xo(on());
const Dhe = async () => {
Ge.debug('Loading registered diagrams');
const e = (
await Promise.allSettled(
Object.entries(wi).map(async ([r, { detector: n, loader: i }]) => {
if (i)
try {
zm(r);
} catch {
try {
const { diagram: l, id: u } = await i();
jo(u, l, n);
} catch (l) {
throw (Ge.error(`Failed to load external diagram with key ${r}. Removing from detectors.`), delete wi[r], l);
}
}
})
)
).filter((r) => r.status === 'rejected');
if (e.length > 0) {
Ge.error(`Failed to load ${e.length} external diagrams`);
for (const r of e) Ge.error(r);
throw new Error(`Failed to load ${e.length} external diagrams`);
}
},
whe = (t, e, r) => {
Ge.warn(t),
KT(t)
? (r && r(t.str, t.hash), e.push({ ...t, message: t.str, error: t }))
: (r && r(t), t instanceof Error && e.push({ str: t.message, message: t.message, hash: t.name, error: t }));
},
q1 = async function (t = { querySelector: '.mermaid' }) {
try {
await Mhe(t);
} catch (e) {
if ((KT(e) && Ge.error(e.str), Lr.parseError && Lr.parseError(e), !t.suppressErrors))
throw (Ge.error('Use the suppressErrors option to suppress these errors'), e);
}
},
Mhe = async function ({ postRenderCallback: t, querySelector: e, nodes: r } = { querySelector: '.mermaid' }) {
const n = ti.getConfig();
Ge.debug(`${t ? '' : 'No '}Callback function found`);
let i;
if (r) i = r;
else if (e) i = document.querySelectorAll(e);
else throw new Error('Nodes and querySelector are both undefined');
Ge.debug(`Found ${i.length} diagrams`),
(n == null ? void 0 : n.startOnLoad) !== void 0 &&
(Ge.debug('Start On Load: ' + (n == null ? void 0 : n.startOnLoad)),
ti.updateSiteConfig({ startOnLoad: n == null ? void 0 : n.startOnLoad }));
const a = new ga.InitIDGenerator(n.deterministicIds, n.deterministicIDSeed);
let l;
const u = [];
for (const d of Array.from(i)) {
Ge.info('Rendering diagram: ' + d.id);
/*! Check if previously processed */ if (d.getAttribute('data-processed')) continue;
d.setAttribute('data-processed', 'true');
const m = `mermaid-${a.next()}`;
(l = d.innerHTML),
(l = loe(ga.entityDecode(l))
.trim()
.replace(/ /gi, ' '));
const p = ga.detectInit(l);
p && Ge.debug('Detected early reinit: ', p);
try {
const { svg: E, bindFunctions: f } = await $1(m, l, d);
(d.innerHTML = E), t && (await t(m)), f && f(d);
} catch (E) {
whe(E, u, Lr.parseError);
}
}
if (u.length > 0) throw u[0];
},
Y1 = function (t) {
ti.initialize(t);
},
Lhe = async function (t, e, r) {
Ge.warn('mermaid.init is deprecated. Please use run instead.'), t && Y1(t);
const n = { postRenderCallback: r, querySelector: '.mermaid' };
typeof e == 'string' ? (n.querySelector = e) : e && (e instanceof HTMLElement ? (n.nodes = [e]) : (n.nodes = e)), await q1(n);
},
khe = async (t, { lazyLoad: e = !0 } = {}) => {
HT(...t), e === !1 && (await Dhe());
},
z1 = function () {
if (Lr.startOnLoad) {
const { startOnLoad: t } = ti.getConfig();
t && Lr.run().catch((e) => Ge.error('Mermaid failed to initialize', e));
}
};
if (typeof document < 'u') {
/*!
* Wait for document loaded before starting the execution
*/ window.addEventListener('load', z1, !1);
}
const Phe = function (t) {
Lr.parseError = t;
},
ns = [];
let Zl = !1;
const H1 = async () => {
if (!Zl) {
for (Zl = !0; ns.length > 0; ) {
const t = ns.shift();
if (t)
try {
await t();
} catch (e) {
Ge.error('Error executing queue', e);
}
}
Zl = !1;
}
},
Bhe = async (t, e) =>
new Promise((r, n) => {
const i = () =>
new Promise((a, l) => {
ti.parse(t, e).then(
(u) => {
a(u), r(u);
},
(u) => {
var d;
Ge.error('Error parsing', u), (d = Lr.parseError) == null || d.call(Lr, u), l(u), n(u);
}
);
});
ns.push(i), H1().catch(n);
}),
$1 = (t, e, r) =>
new Promise((n, i) => {
const a = () =>
new Promise((l, u) => {
ti.render(t, e, r).then(
(d) => {
l(d), n(d);
},
(d) => {
var m;
Ge.error('Error parsing', d), (m = Lr.parseError) == null || m.call(Lr, d), u(d), i(d);
}
);
});
ns.push(a), H1().catch(i);
}),
Lr = {
startOnLoad: !0,
mermaidAPI: ti,
parse: Bhe,
render: $1,
init: Lhe,
run: q1,
registerExternalDiagrams: khe,
initialize: Y1,
parseError: void 0,
contentLoaded: z1,
setParseErrorHandler: Phe,
detectType: Ns,
};
let bo;
const Fhe = new Uint8Array(16);
function Uhe() {
if (!bo && ((bo = typeof crypto < 'u' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)), !bo))
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
return bo(Fhe);
}
const $t = [];
for (let t = 0; t < 256; ++t) $t.push((t + 256).toString(16).slice(1));
function Ghe(t, e = 0) {
return (
$t[t[e + 0]] +
$t[t[e + 1]] +
$t[t[e + 2]] +
$t[t[e + 3]] +
'-' +
$t[t[e + 4]] +
$t[t[e + 5]] +
'-' +
$t[t[e + 6]] +
$t[t[e + 7]] +
'-' +
$t[t[e + 8]] +
$t[t[e + 9]] +
'-' +
$t[t[e + 10]] +
$t[t[e + 11]] +
$t[t[e + 12]] +
$t[t[e + 13]] +
$t[t[e + 14]] +
$t[t[e + 15]]
);
}
const qhe = typeof crypto < 'u' && crypto.randomUUID && crypto.randomUUID.bind(crypto),
dg = { randomUUID: qhe };
function Yhe(t, e, r) {
if (dg.randomUUID && !e && !t) return dg.randomUUID();
t = t || {};
const n = t.random || (t.rng || Uhe)();
if (((n[6] = (n[6] & 15) | 64), (n[8] = (n[8] & 63) | 128), e)) {
r = r || 0;
for (let i = 0; i < 16; ++i) e[r + i] = n[i];
return e;
}
return Ghe(n);
}
const V1 = (t = '') => Yhe().split('-').join(t),
zhe = async (t) =>
new Promise((e) => {
setTimeout(e, t);
}),
Hhe = async (t, e) => {
let r = 100;
for (; r-- > 0; ) {
const n = document.getElementById(e);
if (!n) {
await zhe(100);
continue;
}
try {
const { svg: i } = await Lr.render('mermaid-svg-' + V1(), t, n);
n.innerHTML = i;
} catch {}
break;
}
},
$he = function (t) {
Lr.initialize({ startOnLoad: !1 });
const e = t.renderer.rules.fence.bind(t.renderer.rules);
t.renderer.rules.fence = (r, n, i, a, l) => {
const u = r[n];
if (u.info.trim() === 'mermaid') {
const m = 'mermaid-container-' + V1();
Hhe(u.content, m).then();
const p = document.createElement('div');
return (p.id = m), p.outerHTML;
}
return e(r, n, i, a, l);
};
};
var Qm = { exports: {} };
function Zm(t) {
return (
t instanceof Map
? (t.clear =
t.delete =
t.set =
function () {
throw new Error('map is read-only');
})
: t instanceof Set &&
(t.add =
t.clear =
t.delete =
function () {
throw new Error('set is read-only');
}),
Object.freeze(t),
Object.getOwnPropertyNames(t).forEach(function (e) {
var r = t[e];
typeof r == 'object' && !Object.isFrozen(r) && Zm(r);
}),
t
);
}
Qm.exports = Zm;
Qm.exports.default = Zm;
class _g {
constructor(e) {
e.data === void 0 && (e.data = {}), (this.data = e.data), (this.isMatchIgnored = !1);
}
ignoreMatch() {
this.isMatchIgnored = !0;
}
}
function W1(t) {
return t.replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"').replace(/'/g, ''');
}
function Bn(t, ...e) {
const r = Object.create(null);
for (const n in t) r[n] = t[n];
return (
e.forEach(function (n) {
for (const i in n) r[i] = n[i];
}),
r
);
}
const Vhe = '',
mg = (t) => !!t.scope || (t.sublanguage && t.language),
Whe = (t, { prefix: e }) => {
if (t.includes('.')) {
const r = t.split('.');
return [`${e}${r.shift()}`, ...r.map((n, i) => `${n}${'_'.repeat(i + 1)}`)].join(' ');
}
return `${e}${t}`;
};
class Khe {
constructor(e, r) {
(this.buffer = ''), (this.classPrefix = r.classPrefix), e.walk(this);
}
addText(e) {
this.buffer += W1(e);
}
openNode(e) {
if (!mg(e)) return;
let r = '';
e.sublanguage ? (r = `language-${e.language}`) : (r = Whe(e.scope, { prefix: this.classPrefix })), this.span(r);
}
closeNode(e) {
mg(e) && (this.buffer += Vhe);
}
value() {
return this.buffer;
}
span(e) {
this.buffer += ``;
}
}
const pg = (t = {}) => {
const e = { children: [] };
return Object.assign(e, t), e;
};
class Xm {
constructor() {
(this.rootNode = pg()), (this.stack = [this.rootNode]);
}
get top() {
return this.stack[this.stack.length - 1];
}
get root() {
return this.rootNode;
}
add(e) {
this.top.children.push(e);
}
openNode(e) {
const r = pg({ scope: e });
this.add(r), this.stack.push(r);
}
closeNode() {
if (this.stack.length > 1) return this.stack.pop();
}
closeAllNodes() {
for (; this.closeNode(); );
}
toJSON() {
return JSON.stringify(this.rootNode, null, 4);
}
walk(e) {
return this.constructor._walk(e, this.rootNode);
}
static _walk(e, r) {
return typeof r == 'string' ? e.addText(r) : r.children && (e.openNode(r), r.children.forEach((n) => this._walk(e, n)), e.closeNode(r)), e;
}
static _collapse(e) {
typeof e != 'string' &&
e.children &&
(e.children.every((r) => typeof r == 'string')
? (e.children = [e.children.join('')])
: e.children.forEach((r) => {
Xm._collapse(r);
}));
}
}
class Qhe extends Xm {
constructor(e) {
super(), (this.options = e);
}
addKeyword(e, r) {
e !== '' && (this.openNode(r), this.addText(e), this.closeNode());
}
addText(e) {
e !== '' && this.add(e);
}
addSublanguage(e, r) {
const n = e.root;
(n.sublanguage = !0), (n.language = r), this.add(n);
}
toHTML() {
return new Khe(this, this.options).value();
}
finalize() {
return !0;
}
}
function Na(t) {
return t ? (typeof t == 'string' ? t : t.source) : null;
}
function K1(t) {
return ri('(?=', t, ')');
}
function Zhe(t) {
return ri('(?:', t, ')*');
}
function Xhe(t) {
return ri('(?:', t, ')?');
}
function ri(...t) {
return t.map((r) => Na(r)).join('');
}
function Jhe(t) {
const e = t[t.length - 1];
return typeof e == 'object' && e.constructor === Object ? (t.splice(t.length - 1, 1), e) : {};
}
function Jm(...t) {
return '(' + (Jhe(t).capture ? '' : '?:') + t.map((n) => Na(n)).join('|') + ')';
}
function Q1(t) {
return new RegExp(t.toString() + '|').exec('').length - 1;
}
function jhe(t, e) {
const r = t && t.exec(e);
return r && r.index === 0;
}
const ege = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
function jm(t, { joinWith: e }) {
let r = 0;
return t
.map((n) => {
r += 1;
const i = r;
let a = Na(n),
l = '';
for (; a.length > 0; ) {
const u = ege.exec(a);
if (!u) {
l += a;
break;
}
(l += a.substring(0, u.index)),
(a = a.substring(u.index + u[0].length)),
u[0][0] === '\\' && u[1] ? (l += '\\' + String(Number(u[1]) + i)) : ((l += u[0]), u[0] === '(' && r++);
}
return l;
})
.map((n) => `(${n})`)
.join(e);
}
const tge = /\b\B/,
Z1 = '[a-zA-Z]\\w*',
ep = '[a-zA-Z_]\\w*',
X1 = '\\b\\d+(\\.\\d+)?',
J1 = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
j1 = '\\b(0b[01]+)',
rge =
'!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~',
nge = (t = {}) => {
const e = /^#![ ]*\//;
return (
t.binary && (t.begin = ri(e, /.*\b/, t.binary, /\b.*/)),
Bn(
{
scope: 'meta',
begin: e,
end: /$/,
relevance: 0,
'on:begin': (r, n) => {
r.index !== 0 && n.ignoreMatch();
},
},
t
)
);
},
Oa = { begin: '\\\\[\\s\\S]', relevance: 0 },
ige = { scope: 'string', begin: "'", end: "'", illegal: '\\n', contains: [Oa] },
age = { scope: 'string', begin: '"', end: '"', illegal: '\\n', contains: [Oa] },
oge = {
begin:
/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/,
},
xs = function (t, e, r = {}) {
const n = Bn({ scope: 'comment', begin: t, end: e, contains: [] }, r);
n.contains.push({
scope: 'doctag',
begin: '[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)',
end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
excludeBegin: !0,
relevance: 0,
});
const i = Jm(
'I',
'a',
'is',
'so',
'us',
'to',
'at',
'if',
'in',
'it',
'on',
/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,
/[A-Za-z]+[-][a-z]+/,
/[A-Za-z][a-z]{2,}/
);
return n.contains.push({ begin: ri(/[ ]+/, '(', i, /[.]?[:]?([.][ ]|[ ])/, '){3}') }), n;
},
sge = xs('//', '$'),
lge = xs('/\\*', '\\*/'),
cge = xs('#', '$'),
uge = { scope: 'number', begin: X1, relevance: 0 },
dge = { scope: 'number', begin: J1, relevance: 0 },
_ge = { scope: 'number', begin: j1, relevance: 0 },
mge = {
begin: /(?=\/[^/\n]*\/)/,
contains: [
{ scope: 'regexp', begin: /\//, end: /\/[gimuy]*/, illegal: /\n/, contains: [Oa, { begin: /\[/, end: /\]/, relevance: 0, contains: [Oa] }] },
],
},
pge = { scope: 'title', begin: Z1, relevance: 0 },
hge = { scope: 'title', begin: ep, relevance: 0 },
gge = { begin: '\\.\\s*' + ep, relevance: 0 },
fge = function (t) {
return Object.assign(t, {
'on:begin': (e, r) => {
r.data._beginMatch = e[1];
},
'on:end': (e, r) => {
r.data._beginMatch !== e[1] && r.ignoreMatch();
},
});
};
var To = Object.freeze({
__proto__: null,
MATCH_NOTHING_RE: tge,
IDENT_RE: Z1,
UNDERSCORE_IDENT_RE: ep,
NUMBER_RE: X1,
C_NUMBER_RE: J1,
BINARY_NUMBER_RE: j1,
RE_STARTERS_RE: rge,
SHEBANG: nge,
BACKSLASH_ESCAPE: Oa,
APOS_STRING_MODE: ige,
QUOTE_STRING_MODE: age,
PHRASAL_WORDS_MODE: oge,
COMMENT: xs,
C_LINE_COMMENT_MODE: sge,
C_BLOCK_COMMENT_MODE: lge,
HASH_COMMENT_MODE: cge,
NUMBER_MODE: uge,
C_NUMBER_MODE: dge,
BINARY_NUMBER_MODE: _ge,
REGEXP_MODE: mge,
TITLE_MODE: pge,
UNDERSCORE_TITLE_MODE: hge,
METHOD_GUARD: gge,
END_SAME_AS_BEGIN: fge,
});
function Ege(t, e) {
t.input[t.index - 1] === '.' && e.ignoreMatch();
}
function Sge(t, e) {
t.className !== void 0 && ((t.scope = t.className), delete t.className);
}
function bge(t, e) {
e &&
t.beginKeywords &&
((t.begin = '\\b(' + t.beginKeywords.split(' ').join('|') + ')(?!\\.)(?=\\b|\\s)'),
(t.__beforeBegin = Ege),
(t.keywords = t.keywords || t.beginKeywords),
delete t.beginKeywords,
t.relevance === void 0 && (t.relevance = 0));
}
function Tge(t, e) {
Array.isArray(t.illegal) && (t.illegal = Jm(...t.illegal));
}
function vge(t, e) {
if (t.match) {
if (t.begin || t.end) throw new Error('begin & end are not supported with match');
(t.begin = t.match), delete t.match;
}
}
function Cge(t, e) {
t.relevance === void 0 && (t.relevance = 1);
}
const yge = (t, e) => {
if (!t.beforeMatch) return;
if (t.starts) throw new Error('beforeMatch cannot be used with starts');
const r = Object.assign({}, t);
Object.keys(t).forEach((n) => {
delete t[n];
}),
(t.keywords = r.keywords),
(t.begin = ri(r.beforeMatch, K1(r.begin))),
(t.starts = { relevance: 0, contains: [Object.assign(r, { endsParent: !0 })] }),
(t.relevance = 0),
delete r.beforeMatch;
},
Rge = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then', 'parent', 'list', 'value'],
Age = 'keyword';
function ev(t, e, r = Age) {
const n = Object.create(null);
return (
typeof t == 'string'
? i(r, t.split(' '))
: Array.isArray(t)
? i(r, t)
: Object.keys(t).forEach(function (a) {
Object.assign(n, ev(t[a], e, a));
}),
n
);
function i(a, l) {
e && (l = l.map((u) => u.toLowerCase())),
l.forEach(function (u) {
const d = u.split('|');
n[d[0]] = [a, Nge(d[0], d[1])];
});
}
}
function Nge(t, e) {
return e ? Number(e) : Oge(t) ? 0 : 1;
}
function Oge(t) {
return Rge.includes(t.toLowerCase());
}
const hg = {},
Jn = (t) => {
console.error(t);
},
gg = (t, ...e) => {
console.log(`WARN: ${t}`, ...e);
},
Ci = (t, e) => {
hg[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), (hg[`${t}/${e}`] = !0));
},
is = new Error();
function tv(t, e, { key: r }) {
let n = 0;
const i = t[r],
a = {},
l = {};
for (let u = 1; u <= e.length; u++) (l[u + n] = i[u]), (a[u + n] = !0), (n += Q1(e[u - 1]));
(t[r] = l), (t[r]._emit = a), (t[r]._multi = !0);
}
function Ige(t) {
if (Array.isArray(t.begin)) {
if (t.skip || t.excludeBegin || t.returnBegin) throw (Jn('skip, excludeBegin, returnBegin not compatible with beginScope: {}'), is);
if (typeof t.beginScope != 'object' || t.beginScope === null) throw (Jn('beginScope must be object'), is);
tv(t, t.begin, { key: 'beginScope' }), (t.begin = jm(t.begin, { joinWith: '' }));
}
}
function xge(t) {
if (Array.isArray(t.end)) {
if (t.skip || t.excludeEnd || t.returnEnd) throw (Jn('skip, excludeEnd, returnEnd not compatible with endScope: {}'), is);
if (typeof t.endScope != 'object' || t.endScope === null) throw (Jn('endScope must be object'), is);
tv(t, t.end, { key: 'endScope' }), (t.end = jm(t.end, { joinWith: '' }));
}
}
function Dge(t) {
t.scope && typeof t.scope == 'object' && t.scope !== null && ((t.beginScope = t.scope), delete t.scope);
}
function wge(t) {
Dge(t),
typeof t.beginScope == 'string' && (t.beginScope = { _wrap: t.beginScope }),
typeof t.endScope == 'string' && (t.endScope = { _wrap: t.endScope }),
Ige(t),
xge(t);
}
function Mge(t) {
function e(l, u) {
return new RegExp(Na(l), 'm' + (t.case_insensitive ? 'i' : '') + (t.unicodeRegex ? 'u' : '') + (u ? 'g' : ''));
}
class r {
constructor() {
(this.matchIndexes = {}), (this.regexes = []), (this.matchAt = 1), (this.position = 0);
}
addRule(u, d) {
(d.position = this.position++), (this.matchIndexes[this.matchAt] = d), this.regexes.push([d, u]), (this.matchAt += Q1(u) + 1);
}
compile() {
this.regexes.length === 0 && (this.exec = () => null);
const u = this.regexes.map((d) => d[1]);
(this.matcherRe = e(jm(u, { joinWith: '|' }), !0)), (this.lastIndex = 0);
}
exec(u) {
this.matcherRe.lastIndex = this.lastIndex;
const d = this.matcherRe.exec(u);
if (!d) return null;
const m = d.findIndex((E, f) => f > 0 && E !== void 0),
p = this.matchIndexes[m];
return d.splice(0, m), Object.assign(d, p);
}
}
class n {
constructor() {
(this.rules = []), (this.multiRegexes = []), (this.count = 0), (this.lastIndex = 0), (this.regexIndex = 0);
}
getMatcher(u) {
if (this.multiRegexes[u]) return this.multiRegexes[u];
const d = new r();
return this.rules.slice(u).forEach(([m, p]) => d.addRule(m, p)), d.compile(), (this.multiRegexes[u] = d), d;
}
resumingScanAtSamePosition() {
return this.regexIndex !== 0;
}
considerAll() {
this.regexIndex = 0;
}
addRule(u, d) {
this.rules.push([u, d]), d.type === 'begin' && this.count++;
}
exec(u) {
const d = this.getMatcher(this.regexIndex);
d.lastIndex = this.lastIndex;
let m = d.exec(u);
if (this.resumingScanAtSamePosition() && !(m && m.index === this.lastIndex)) {
const p = this.getMatcher(0);
(p.lastIndex = this.lastIndex + 1), (m = p.exec(u));
}
return m && ((this.regexIndex += m.position + 1), this.regexIndex === this.count && this.considerAll()), m;
}
}
function i(l) {
const u = new n();
return (
l.contains.forEach((d) => u.addRule(d.begin, { rule: d, type: 'begin' })),
l.terminatorEnd && u.addRule(l.terminatorEnd, { type: 'end' }),
l.illegal && u.addRule(l.illegal, { type: 'illegal' }),
u
);
}
function a(l, u) {
const d = l;
if (l.isCompiled) return d;
[Sge, vge, wge, yge].forEach((p) => p(l, u)),
t.compilerExtensions.forEach((p) => p(l, u)),
(l.__beforeBegin = null),
[bge, Tge, Cge].forEach((p) => p(l, u)),
(l.isCompiled = !0);
let m = null;
return (
typeof l.keywords == 'object' &&
l.keywords.$pattern &&
((l.keywords = Object.assign({}, l.keywords)), (m = l.keywords.$pattern), delete l.keywords.$pattern),
(m = m || /\w+/),
l.keywords && (l.keywords = ev(l.keywords, t.case_insensitive)),
(d.keywordPatternRe = e(m, !0)),
u &&
(l.begin || (l.begin = /\B|\b/),
(d.beginRe = e(d.begin)),
!l.end && !l.endsWithParent && (l.end = /\B|\b/),
l.end && (d.endRe = e(d.end)),
(d.terminatorEnd = Na(d.end) || ''),
l.endsWithParent && u.terminatorEnd && (d.terminatorEnd += (l.end ? '|' : '') + u.terminatorEnd)),
l.illegal && (d.illegalRe = e(l.illegal)),
l.contains || (l.contains = []),
(l.contains = [].concat(
...l.contains.map(function (p) {
return Lge(p === 'self' ? l : p);
})
)),
l.contains.forEach(function (p) {
a(p, d);
}),
l.starts && a(l.starts, u),
(d.matcher = i(d)),
d
);
}
if ((t.compilerExtensions || (t.compilerExtensions = []), t.contains && t.contains.includes('self')))
throw new Error('ERR: contains `self` is not supported at the top-level of a language. See documentation.');
return (t.classNameAliases = Bn(t.classNameAliases || {})), a(t);
}
function rv(t) {
return t ? t.endsWithParent || rv(t.starts) : !1;
}
function Lge(t) {
return (
t.variants &&
!t.cachedVariants &&
(t.cachedVariants = t.variants.map(function (e) {
return Bn(t, { variants: null }, e);
})),
t.cachedVariants ? t.cachedVariants : rv(t) ? Bn(t, { starts: t.starts ? Bn(t.starts) : null }) : Object.isFrozen(t) ? Bn(t) : t
);
}
var kge = '11.7.0';
class Pge extends Error {
constructor(e, r) {
super(e), (this.name = 'HTMLInjectionError'), (this.html = r);
}
}
const Xl = W1,
fg = Bn,
Eg = Symbol('nomatch'),
Bge = 7,
Fge = function (t) {
const e = Object.create(null),
r = Object.create(null),
n = [];
let i = !0;
const a = "Could not find the language '{}', did you forget to load/include a language module?",
l = { disableAutodetect: !0, name: 'Plain text', contains: [] };
let u = {
ignoreUnescapedHTML: !1,
throwUnescapedHTML: !1,
noHighlightRe: /^(no-?highlight)$/i,
languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
classPrefix: 'hljs-',
cssSelector: 'pre code',
languages: null,
__emitter: Qhe,
};
function d(P) {
return u.noHighlightRe.test(P);
}
function m(P) {
let K = P.className + ' ';
K += P.parentNode ? P.parentNode.className : '';
const Z = u.languageDetectRe.exec(K);
if (Z) {
const se = ce(Z[1]);
return se || (gg(a.replace('{}', Z[1])), gg('Falling back to no-highlight mode for this block.', P)), se ? Z[1] : 'no-highlight';
}
return K.split(/\s+/).find((se) => d(se) || ce(se));
}
function p(P, K, Z) {
let se = '',
le = '';
typeof K == 'object'
? ((se = P), (Z = K.ignoreIllegals), (le = K.language))
: (Ci('10.7.0', 'highlight(lang, code, ...args) has been deprecated.'),
Ci(
'10.7.0',
`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`
),
(le = P),
(se = K)),
Z === void 0 && (Z = !0);
const ae = { code: se, language: le };
H('before:highlight', ae);
const ye = ae.result ? ae.result : E(ae.language, ae.code, Z);
return (ye.code = ae.code), H('after:highlight', ye), ye;
}
function E(P, K, Z, se) {
const le = Object.create(null);
function ae(me, ve) {
return me.keywords[ve];
}
function ye() {
if (!ge.keywords) {
ke.addText(Ne);
return;
}
let me = 0;
ge.keywordPatternRe.lastIndex = 0;
let ve = ge.keywordPatternRe.exec(Ne),
qe = '';
for (; ve; ) {
qe += Ne.substring(me, ve.index);
const Qe = xt.case_insensitive ? ve[0].toLowerCase() : ve[0],
it = ae(ge, Qe);
if (it) {
const [qt, or] = it;
if ((ke.addText(qe), (qe = ''), (le[Qe] = (le[Qe] || 0) + 1), le[Qe] <= Bge && (Et += or), qt.startsWith('_'))) qe += ve[0];
else {
const vr = xt.classNameAliases[qt] || qt;
ke.addKeyword(ve[0], vr);
}
} else qe += ve[0];
(me = ge.keywordPatternRe.lastIndex), (ve = ge.keywordPatternRe.exec(Ne));
}
(qe += Ne.substring(me)), ke.addText(qe);
}
function ze() {
if (Ne === '') return;
let me = null;
if (typeof ge.subLanguage == 'string') {
if (!e[ge.subLanguage]) {
ke.addText(Ne);
return;
}
(me = E(ge.subLanguage, Ne, !0, xe[ge.subLanguage])), (xe[ge.subLanguage] = me._top);
} else me = v(Ne, ge.subLanguage.length ? ge.subLanguage : null);
ge.relevance > 0 && (Et += me.relevance), ke.addSublanguage(me._emitter, me.language);
}
function te() {
ge.subLanguage != null ? ze() : ye(), (Ne = '');
}
function be(me, ve) {
let qe = 1;
const Qe = ve.length - 1;
for (; qe <= Qe; ) {
if (!me._emit[qe]) {
qe++;
continue;
}
const it = xt.classNameAliases[me[qe]] || me[qe],
qt = ve[qe];
it ? ke.addKeyword(qt, it) : ((Ne = qt), ye(), (Ne = '')), qe++;
}
}
function De(me, ve) {
return (
me.scope && typeof me.scope == 'string' && ke.openNode(xt.classNameAliases[me.scope] || me.scope),
me.beginScope &&
(me.beginScope._wrap
? (ke.addKeyword(Ne, xt.classNameAliases[me.beginScope._wrap] || me.beginScope._wrap), (Ne = ''))
: me.beginScope._multi && (be(me.beginScope, ve), (Ne = ''))),
(ge = Object.create(me, { parent: { value: ge } })),
ge
);
}
function we(me, ve, qe) {
let Qe = jhe(me.endRe, qe);
if (Qe) {
if (me['on:end']) {
const it = new _g(me);
me['on:end'](ve, it), it.isMatchIgnored && (Qe = !1);
}
if (Qe) {
for (; me.endsParent && me.parent; ) me = me.parent;
return me;
}
}
if (me.endsWithParent) return we(me.parent, ve, qe);
}
function We(me) {
return ge.matcher.regexIndex === 0 ? ((Ne += me[0]), 1) : ((Mt = !0), 0);
}
function je(me) {
const ve = me[0],
qe = me.rule,
Qe = new _g(qe),
it = [qe.__beforeBegin, qe['on:begin']];
for (const qt of it) if (qt && (qt(me, Qe), Qe.isMatchIgnored)) return We(ve);
return (
qe.skip ? (Ne += ve) : (qe.excludeBegin && (Ne += ve), te(), !qe.returnBegin && !qe.excludeBegin && (Ne = ve)),
De(qe, me),
qe.returnBegin ? 0 : ve.length
);
}
function Ze(me) {
const ve = me[0],
qe = K.substring(me.index),
Qe = we(ge, me, qe);
if (!Qe) return Eg;
const it = ge;
ge.endScope && ge.endScope._wrap
? (te(), ke.addKeyword(ve, ge.endScope._wrap))
: ge.endScope && ge.endScope._multi
? (te(), be(ge.endScope, me))
: it.skip
? (Ne += ve)
: (it.returnEnd || it.excludeEnd || (Ne += ve), te(), it.excludeEnd && (Ne = ve));
do ge.scope && ke.closeNode(), !ge.skip && !ge.subLanguage && (Et += ge.relevance), (ge = ge.parent);
while (ge !== Qe.parent);
return Qe.starts && De(Qe.starts, me), it.returnEnd ? 0 : ve.length;
}
function Ke() {
const me = [];
for (let ve = ge; ve !== xt; ve = ve.parent) ve.scope && me.unshift(ve.scope);
me.forEach((ve) => ke.openNode(ve));
}
let pt = {};
function ht(me, ve) {
const qe = ve && ve[0];
if (((Ne += me), qe == null)) return te(), 0;
if (pt.type === 'begin' && ve.type === 'end' && pt.index === ve.index && qe === '') {
if (((Ne += K.slice(ve.index, ve.index + 1)), !i)) {
const Qe = new Error(`0 width match regex (${P})`);
throw ((Qe.languageName = P), (Qe.badRule = pt.rule), Qe);
}
return 1;
}
if (((pt = ve), ve.type === 'begin')) return je(ve);
if (ve.type === 'illegal' && !Z) {
const Qe = new Error('Illegal lexeme "' + qe + '" for mode "' + (ge.scope || '') + '"');
throw ((Qe.mode = ge), Qe);
} else if (ve.type === 'end') {
const Qe = Ze(ve);
if (Qe !== Eg) return Qe;
}
if (ve.type === 'illegal' && qe === '') return 1;
if (Ft > 1e5 && Ft > ve.index * 3) throw new Error('potential infinite loop, way more iterations than matches');
return (Ne += qe), qe.length;
}
const xt = ce(P);
if (!xt) throw (Jn(a.replace('{}', P)), new Error('Unknown language: "' + P + '"'));
const fe = Mge(xt);
let Le = '',
ge = se || fe;
const xe = {},
ke = new u.__emitter(u);
Ke();
let Ne = '',
Et = 0,
vt = 0,
Ft = 0,
Mt = !1;
try {
for (ge.matcher.considerAll(); ; ) {
Ft++, Mt ? (Mt = !1) : ge.matcher.considerAll(), (ge.matcher.lastIndex = vt);
const me = ge.matcher.exec(K);
if (!me) break;
const ve = K.substring(vt, me.index),
qe = ht(ve, me);
vt = me.index + qe;
}
return (
ht(K.substring(vt)),
ke.closeAllNodes(),
ke.finalize(),
(Le = ke.toHTML()),
{ language: P, value: Le, relevance: Et, illegal: !1, _emitter: ke, _top: ge }
);
} catch (me) {
if (me.message && me.message.includes('Illegal'))
return {
language: P,
value: Xl(K),
illegal: !0,
relevance: 0,
_illegalBy: { message: me.message, index: vt, context: K.slice(vt - 100, vt + 100), mode: me.mode, resultSoFar: Le },
_emitter: ke,
};
if (i) return { language: P, value: Xl(K), illegal: !1, relevance: 0, errorRaised: me, _emitter: ke, _top: ge };
throw me;
}
}
function f(P) {
const K = { value: Xl(P), illegal: !1, relevance: 0, _top: l, _emitter: new u.__emitter(u) };
return K._emitter.addText(P), K;
}
function v(P, K) {
K = K || u.languages || Object.keys(e);
const Z = f(P),
se = K.filter(ce)
.filter(Q)
.map((te) => E(te, P, !1));
se.unshift(Z);
const le = se.sort((te, be) => {
if (te.relevance !== be.relevance) return be.relevance - te.relevance;
if (te.language && be.language) {
if (ce(te.language).supersetOf === be.language) return 1;
if (ce(be.language).supersetOf === te.language) return -1;
}
return 0;
}),
[ae, ye] = le,
ze = ae;
return (ze.secondBest = ye), ze;
}
function R(P, K, Z) {
const se = (K && r[K]) || Z;
P.classList.add('hljs'), P.classList.add(`language-${se}`);
}
function O(P) {
let K = null;
const Z = m(P);
if (d(Z)) return;
if (
(H('before:highlightElement', { el: P, language: Z }),
P.children.length > 0 &&
(u.ignoreUnescapedHTML ||
(console.warn('One of your code blocks includes unescaped HTML. This is a potentially serious security risk.'),
console.warn('https://github.com/highlightjs/highlight.js/wiki/security'),
console.warn('The element with unescaped HTML:'),
console.warn(P)),
u.throwUnescapedHTML))
)
throw new Pge('One of your code blocks includes unescaped HTML.', P.innerHTML);
K = P;
const se = K.textContent,
le = Z ? p(se, { language: Z, ignoreIllegals: !0 }) : v(se);
(P.innerHTML = le.value),
R(P, Z, le.language),
(P.result = { language: le.language, re: le.relevance, relevance: le.relevance }),
le.secondBest && (P.secondBest = { language: le.secondBest.language, relevance: le.secondBest.relevance }),
H('after:highlightElement', { el: P, result: le, text: se });
}
function M(P) {
u = fg(u, P);
}
const w = () => {
Y(), Ci('10.6.0', 'initHighlighting() deprecated. Use highlightAll() now.');
};
function D() {
Y(), Ci('10.6.0', 'initHighlightingOnLoad() deprecated. Use highlightAll() now.');
}
let F = !1;
function Y() {
if (document.readyState === 'loading') {
F = !0;
return;
}
document.querySelectorAll(u.cssSelector).forEach(O);
}
function z() {
F && Y();
}
typeof window < 'u' && window.addEventListener && window.addEventListener('DOMContentLoaded', z, !1);
function G(P, K) {
let Z = null;
try {
Z = K(t);
} catch (se) {
if ((Jn("Language definition for '{}' could not be registered.".replace('{}', P)), i)) Jn(se);
else throw se;
Z = l;
}
Z.name || (Z.name = P), (e[P] = Z), (Z.rawDefinition = K.bind(null, t)), Z.aliases && j(Z.aliases, { languageName: P });
}
function X(P) {
delete e[P];
for (const K of Object.keys(r)) r[K] === P && delete r[K];
}
function ne() {
return Object.keys(e);
}
function ce(P) {
return (P = (P || '').toLowerCase()), e[P] || e[r[P]];
}
function j(P, { languageName: K }) {
typeof P == 'string' && (P = [P]),
P.forEach((Z) => {
r[Z.toLowerCase()] = K;
});
}
function Q(P) {
const K = ce(P);
return K && !K.disableAutodetect;
}
function Ae(P) {
P['before:highlightBlock'] &&
!P['before:highlightElement'] &&
(P['before:highlightElement'] = (K) => {
P['before:highlightBlock'](Object.assign({ block: K.el }, K));
}),
P['after:highlightBlock'] &&
!P['after:highlightElement'] &&
(P['after:highlightElement'] = (K) => {
P['after:highlightBlock'](Object.assign({ block: K.el }, K));
});
}
function Oe(P) {
Ae(P), n.push(P);
}
function H(P, K) {
const Z = P;
n.forEach(function (se) {
se[Z] && se[Z](K);
});
}
function re(P) {
return Ci('10.7.0', 'highlightBlock will be removed entirely in v12.0'), Ci('10.7.0', 'Please use highlightElement now.'), O(P);
}
Object.assign(t, {
highlight: p,
highlightAuto: v,
highlightAll: Y,
highlightElement: O,
highlightBlock: re,
configure: M,
initHighlighting: w,
initHighlightingOnLoad: D,
registerLanguage: G,
unregisterLanguage: X,
listLanguages: ne,
getLanguage: ce,
registerAliases: j,
autoDetection: Q,
inherit: fg,
addPlugin: Oe,
}),
(t.debugMode = function () {
i = !1;
}),
(t.safeMode = function () {
i = !0;
}),
(t.versionString = kge),
(t.regex = { concat: ri, lookahead: K1, either: Jm, optional: Xhe, anyNumberOfTimes: Zhe });
for (const P in To) typeof To[P] == 'object' && Qm.exports(To[P]);
return Object.assign(t, To), t;
};
var Ia = Fge({}),
Uge = Ia;
Ia.HighlightJS = Ia;
Ia.default = Ia;
var Jl, Sg;
function Gge() {
if (Sg) return Jl;
Sg = 1;
function t(e) {
const r = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+',
a =
'далее ' +
'возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ',
d =
'загрузитьизфайла ' +
'вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ',
m = 'разделительстраниц разделительстрок символтабуляции ',
p =
'ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ',
E =
'acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ',
f =
'wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ',
v = m + p + E + f,
R = 'webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ',
O =
'автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ',
M =
'виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ',
w = 'авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ',
D =
'использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ',
F = 'отображениевремениэлементовпланировщика ',
Y = 'типфайлаформатированногодокумента ',
z = 'обходрезультатазапроса типзаписизапроса ',
G = 'видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ',
X = 'доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ',
ne = 'типизмеренияпостроителязапроса ',
ce =
'видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ',
j =
'wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ',
Q =
'видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ',
Ae =
'важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ',
Oe = 'режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ',
H =
'расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ',
re =
'кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ',
P =
'звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ',
K =
'направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ',
Z =
'httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ',
se =
'важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты',
le = R + O + M + w + D + F + Y + z + G + X + ne + ce + j + Q + Ae + Oe + H + re + P + K + Z + se,
ze =
'comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ' +
'comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ',
te = 'null истина ложь неопределено',
be = e.inherit(e.NUMBER_MODE),
De = { className: 'string', begin: '"|\\|', end: '"|$', contains: [{ begin: '""' }] },
we = { begin: "'", end: "'", excludeBegin: !0, excludeEnd: !0, contains: [{ className: 'number', begin: '\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}' }] },
We = e.inherit(e.C_LINE_COMMENT_MODE),
je = { className: 'meta', begin: '#|&', end: '$', keywords: { $pattern: r, keyword: a + d }, contains: [We] },
Ze = { className: 'symbol', begin: '~', end: ';|:', excludeEnd: !0 },
Ke = {
className: 'function',
variants: [
{ begin: 'процедура|функция', end: '\\)', keywords: 'процедура функция' },
{ begin: 'конецпроцедуры|конецфункции', keywords: 'конецпроцедуры конецфункции' },
],
contains: [
{
begin: '\\(',
end: '\\)',
endsParent: !0,
contains: [
{
className: 'params',
begin: r,
end: ',',
excludeEnd: !0,
endsWithParent: !0,
keywords: { $pattern: r, keyword: 'знач', literal: te },
contains: [be, De, we],
},
We,
],
},
e.inherit(e.TITLE_MODE, { begin: r }),
],
};
return {
name: '1C:Enterprise',
case_insensitive: !0,
keywords: { $pattern: r, keyword: a, built_in: v, class: le, type: ze, literal: te },
contains: [je, Ke, We, Ze, be, De, we],
};
}
return (Jl = t), Jl;
}
var jl, bg;
function qge() {
if (bg) return jl;
bg = 1;
function t(e) {
const r = e.regex,
n = /^[a-zA-Z][a-zA-Z0-9-]*/,
i = ['ALPHA', 'BIT', 'CHAR', 'CR', 'CRLF', 'CTL', 'DIGIT', 'DQUOTE', 'HEXDIG', 'HTAB', 'LF', 'LWSP', 'OCTET', 'SP', 'VCHAR', 'WSP'],
a = e.COMMENT(/;/, /$/),
l = { scope: 'symbol', match: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/ },
u = { scope: 'symbol', match: /%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/ },
d = { scope: 'symbol', match: /%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/ },
m = { scope: 'symbol', match: /%[si](?=".*")/ },
p = { scope: 'attribute', match: r.concat(n, /(?=\s*=)/) };
return {
name: 'Augmented Backus-Naur Form',
illegal: /[!@#$^&',?+~`|:]/,
keywords: i,
contains: [{ scope: 'operator', match: /=\/?/ }, p, a, l, u, d, m, e.QUOTE_STRING_MODE, e.NUMBER_MODE],
};
}
return (jl = t), jl;
}
var ec, Tg;
function Yge() {
if (Tg) return ec;
Tg = 1;
function t(e) {
const r = e.regex,
n = ['GET', 'POST', 'HEAD', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'PATCH', 'TRACE'];
return {
name: 'Apache Access Log',
contains: [
{ className: 'number', begin: /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/, relevance: 5 },
{ className: 'number', begin: /\b\d+\b/, relevance: 0 },
{
className: 'string',
begin: r.concat(/"/, r.either(...n)),
end: /"/,
keywords: n,
illegal: /\n/,
relevance: 5,
contains: [{ begin: /HTTP\/[12]\.\d'/, relevance: 5 }],
},
{ className: 'string', begin: /\[\d[^\]\n]{8,}\]/, illegal: /\n/, relevance: 1 },
{ className: 'string', begin: /\[/, end: /\]/, illegal: /\n/, relevance: 0 },
{ className: 'string', begin: /"Mozilla\/\d\.\d \(/, end: /"/, illegal: /\n/, relevance: 3 },
{ className: 'string', begin: /"/, end: /"/, illegal: /\n/, relevance: 0 },
],
};
}
return (ec = t), ec;
}
var tc, vg;
function zge() {
if (vg) return tc;
vg = 1;
function t(e) {
const r = e.regex,
n = /[a-zA-Z_$][a-zA-Z0-9_$]*/,
i = r.concat(n, r.concat('(\\.', n, ')*')),
a = /([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,
l = { className: 'rest_arg', begin: /[.]{3}/, end: n, relevance: 10 };
return {
name: 'ActionScript',
aliases: ['as'],
keywords: {
keyword: [
'as',
'break',
'case',
'catch',
'class',
'const',
'continue',
'default',
'delete',
'do',
'dynamic',
'each',
'else',
'extends',
'final',
'finally',
'for',
'function',
'get',
'if',
'implements',
'import',
'in',
'include',
'instanceof',
'interface',
'internal',
'is',
'namespace',
'native',
'new',
'override',
'package',
'private',
'protected',
'public',
'return',
'set',
'static',
'super',
'switch',
'this',
'throw',
'try',
'typeof',
'use',
'var',
'void',
'while',
'with',
],
literal: ['true', 'false', 'null', 'undefined'],
},
contains: [
e.APOS_STRING_MODE,
e.QUOTE_STRING_MODE,
e.C_LINE_COMMENT_MODE,
e.C_BLOCK_COMMENT_MODE,
e.C_NUMBER_MODE,
{ match: [/\bpackage/, /\s+/, i], className: { 1: 'keyword', 3: 'title.class' } },
{ match: [/\b(?:class|interface|extends|implements)/, /\s+/, n], className: { 1: 'keyword', 3: 'title.class' } },
{ className: 'meta', beginKeywords: 'import include', end: /;/, keywords: { keyword: 'import include' } },
{
beginKeywords: 'function',
end: /[{;]/,
excludeEnd: !0,
illegal: /\S/,
contains: [
e.inherit(e.TITLE_MODE, { className: 'title.function' }),
{
className: 'params',
begin: /\(/,
end: /\)/,
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, l],
},
{ begin: r.concat(/:\s*/, a) },
],
},
e.METHOD_GUARD,
],
illegal: /#/,
};
}
return (tc = t), tc;
}
var rc, Cg;
function Hge() {
if (Cg) return rc;
Cg = 1;
function t(e) {
const r = '\\d(_|\\d)*',
n = '[eE][-+]?' + r,
i = r + '(\\.' + r + ')?(' + n + ')?',
a = '\\w+',
u = '\\b(' + (r + '#' + a + '(\\.' + a + ')?#(' + n + ')?') + '|' + i + ')',
d = '[A-Za-z](_?[A-Za-z0-9.])*',
m = `[]\\{\\}%#'"`,
p = e.COMMENT('--', '$'),
E = {
begin: '\\s+:\\s+',
end: '\\s*(:=|;|\\)|=>|$)',
illegal: m,
contains: [
{ beginKeywords: 'loop for declare others', endsParent: !0 },
{ className: 'keyword', beginKeywords: 'not null constant access function procedure in out aliased exception' },
{ className: 'type', begin: d, endsParent: !0, relevance: 0 },
],
};
return {
name: 'Ada',
case_insensitive: !0,
keywords: {
keyword: [
'abort',
'else',
'new',
'return',
'abs',
'elsif',
'not',
'reverse',
'abstract',
'end',
'accept',
'entry',
'select',
'access',
'exception',
'of',
'separate',
'aliased',
'exit',
'or',
'some',
'all',
'others',
'subtype',
'and',
'for',
'out',
'synchronized',
'array',
'function',
'overriding',
'at',
'tagged',
'generic',
'package',
'task',
'begin',
'goto',
'pragma',
'terminate',
'body',
'private',
'then',
'if',
'procedure',
'type',
'case',
'in',
'protected',
'constant',
'interface',
'is',
'raise',
'use',
'declare',
'range',
'delay',
'limited',
'record',
'when',
'delta',
'loop',
'rem',
'while',
'digits',
'renames',
'with',
'do',
'mod',
'requeue',
'xor',
],
literal: ['True', 'False'],
},
contains: [
p,
{ className: 'string', begin: /"/, end: /"/, contains: [{ begin: /""/, relevance: 0 }] },
{ className: 'string', begin: /'.'/ },
{ className: 'number', begin: u, relevance: 0 },
{ className: 'symbol', begin: "'" + d },
{
className: 'title',
begin: '(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?',
end: '(is|$)',
keywords: 'package body',
excludeBegin: !0,
excludeEnd: !0,
illegal: m,
},
{
begin: '(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+',
end: '(\\bis|\\bwith|\\brenames|\\)\\s*;)',
keywords: 'overriding function procedure with is renames return',
returnBegin: !0,
contains: [
p,
{
className: 'title',
begin: '(\\bwith\\s+)?\\b(function|procedure)\\s+',
end: '(\\(|\\s+|$)',
excludeBegin: !0,
excludeEnd: !0,
illegal: m,
},
E,
{
className: 'type',
begin: '\\breturn\\s+',
end: '(\\s+|;|$)',
keywords: 'return',
excludeBegin: !0,
excludeEnd: !0,
endsParent: !0,
illegal: m,
},
],
},
{ className: 'type', begin: '\\b(sub)?type\\s+', end: '\\s+', keywords: 'type', excludeBegin: !0, illegal: m },
E,
],
};
}
return (rc = t), rc;
}
var nc, yg;
function $ge() {
if (yg) return nc;
yg = 1;
function t(e) {
const r = {
className: 'built_in',
begin: '\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)',
},
n = { className: 'symbol', begin: '[a-zA-Z0-9_]+@' },
i = { className: 'keyword', begin: '<', end: '>', contains: [r, n] };
return (
(r.contains = [i]),
(n.contains = [i]),
{
name: 'AngelScript',
aliases: ['asc'],
keywords: [
'for',
'in|0',
'break',
'continue',
'while',
'do|0',
'return',
'if',
'else',
'case',
'switch',
'namespace',
'is',
'cast',
'or',
'and',
'xor',
'not',
'get|0',
'in',
'inout|10',
'out',
'override',
'set|0',
'private',
'public',
'const',
'default|0',
'final',
'shared',
'external',
'mixin|10',
'enum',
'typedef',
'funcdef',
'this',
'super',
'import',
'from',
'interface',
'abstract|0',
'try',
'catch',
'protected',
'explicit',
'property',
],
illegal: '(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])',
contains: [
{ className: 'string', begin: "'", end: "'", illegal: '\\n', contains: [e.BACKSLASH_ESCAPE], relevance: 0 },
{ className: 'string', begin: '"""', end: '"""' },
{ className: 'string', begin: '"', end: '"', illegal: '\\n', contains: [e.BACKSLASH_ESCAPE], relevance: 0 },
e.C_LINE_COMMENT_MODE,
e.C_BLOCK_COMMENT_MODE,
{ className: 'string', begin: '^\\s*\\[', end: '\\]' },
{ beginKeywords: 'interface namespace', end: /\{/, illegal: '[;.\\-]', contains: [{ className: 'symbol', begin: '[a-zA-Z0-9_]+' }] },
{
beginKeywords: 'class',
end: /\{/,
illegal: '[;.\\-]',
contains: [
{
className: 'symbol',
begin: '[a-zA-Z0-9_]+',
contains: [{ begin: '[:,]\\s*', contains: [{ className: 'symbol', begin: '[a-zA-Z0-9_]+' }] }],
},
],
},
r,
n,
{ className: 'literal', begin: '\\b(null|true|false)' },
{ className: 'number', relevance: 0, begin: '(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)' },
],
}
);
}
return (nc = t), nc;
}
var ic, Rg;
function Vge() {
if (Rg) return ic;
Rg = 1;
function t(e) {
const r = { className: 'number', begin: /[$%]\d+/ },
n = { className: 'number', begin: /\b\d+/ },
i = { className: 'number', begin: /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/ },
a = { className: 'number', begin: /:\d{1,5}/ };
return {
name: 'Apache config',
aliases: ['apacheconf'],
case_insensitive: !0,
contains: [
e.HASH_COMMENT_MODE,
{ className: 'section', begin: /<\/?/, end: />/, contains: [i, a, e.inherit(e.QUOTE_STRING_MODE, { relevance: 0 })] },
{
className: 'attribute',
begin: /\w+/,
relevance: 0,
keywords: {
_: [
'order',
'deny',
'allow',
'setenv',
'rewriterule',
'rewriteengine',
'rewritecond',
'documentroot',
'sethandler',
'errordocument',
'loadmodule',
'options',
'header',
'listen',
'serverroot',
'servername',
],
},
starts: {
end: /$/,
relevance: 0,
keywords: { literal: 'on off all deny allow' },
contains: [
{ className: 'meta', begin: /\s\[/, end: /\]$/ },
{ className: 'variable', begin: /[\$%]\{/, end: /\}/, contains: ['self', r] },
i,
n,
e.QUOTE_STRING_MODE,
],
},
},
],
illegal: /\S/,
};
}
return (ic = t), ic;
}
var ac, Ag;
function Wge() {
if (Ag) return ac;
Ag = 1;
function t(e) {
const r = e.regex,
n = e.inherit(e.QUOTE_STRING_MODE, { illegal: null }),
i = { className: 'params', begin: /\(/, end: /\)/, contains: ['self', e.C_NUMBER_MODE, n] },
a = e.COMMENT(/--/, /$/),
l = e.COMMENT(/\(\*/, /\*\)/, { contains: ['self', a] }),
u = [a, l, e.HASH_COMMENT_MODE],
d = [
/apart from/,
/aside from/,
/instead of/,
/out of/,
/greater than/,
/isn't|(doesn't|does not) (equal|come before|come after|contain)/,
/(greater|less) than( or equal)?/,
/(starts?|ends|begins?) with/,
/contained by/,
/comes (before|after)/,
/a (ref|reference)/,
/POSIX (file|path)/,
/(date|time) string/,
/quoted form/,
],
m = [
/clipboard info/,
/the clipboard/,
/info for/,
/list (disks|folder)/,
/mount volume/,
/path to/,
/(close|open for) access/,
/(get|set) eof/,
/current date/,
/do shell script/,
/get volume settings/,
/random number/,
/set volume/,
/system attribute/,
/system info/,
/time to GMT/,
/(load|run|store) script/,
/scripting components/,
/ASCII (character|number)/,
/localized string/,
/choose (application|color|file|file name|folder|from list|remote application|URL)/,
/display (alert|dialog)/,
];
return {
name: 'AppleScript',
aliases: ['osascript'],
keywords: {
keyword:
'about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without',
literal: 'AppleScript false linefeed return pi quote result space tab true',
built_in:
'alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year',
},
contains: [
n,
e.C_NUMBER_MODE,
{ className: 'built_in', begin: r.concat(/\b/, r.either(...m), /\b/) },
{ className: 'built_in', begin: /^\s*return\b/ },
{ className: 'literal', begin: /\b(text item delimiters|current application|missing value)\b/ },
{ className: 'keyword', begin: r.concat(/\b/, r.either(...d), /\b/) },
{ beginKeywords: 'on', illegal: /[${=;\n]/, contains: [e.UNDERSCORE_TITLE_MODE, i] },
...u,
],
illegal: /\/\/|->|=>|\[\[/,
};
}
return (ac = t), ac;
}
var oc, Ng;
function Kge() {
if (Ng) return oc;
Ng = 1;
function t(e) {
const r = '[A-Za-z_][0-9A-Za-z_]*',
n = {
keyword: ['if', 'for', 'while', 'var', 'new', 'function', 'do', 'return', 'void', 'else', 'break'],
literal: [
'BackSlash',
'DoubleQuote',
'false',
'ForwardSlash',
'Infinity',
'NaN',
'NewLine',
'null',
'PI',
'SingleQuote',
'Tab',
'TextFormatting',
'true',
'undefined',
],
built_in: [
'Abs',
'Acos',
'All',
'Angle',
'Any',
'Area',
'AreaGeodetic',
'Array',
'Asin',
'Atan',
'Atan2',
'Attachments',
'Average',
'Back',
'Bearing',
'Boolean',
'Buffer',
'BufferGeodetic',
'Ceil',
'Centroid',
'Clip',
'Concatenate',
'Console',
'Constrain',
'Contains',
'ConvertDirection',
'Cos',
'Count',
'Crosses',
'Cut',
'Date',
'DateAdd',
'DateDiff',
'Day',
'Decode',
'DefaultValue',
'Densify',
'DensifyGeodetic',
'Dictionary',
'Difference',
'Disjoint',
'Distance',
'DistanceGeodetic',
'Distinct',
'Domain',
'DomainCode',
'DomainName',
'EnvelopeIntersects',
'Equals',
'Erase',
'Exp',
'Expects',
'Extent',
'Feature',
'FeatureSet',
'FeatureSetByAssociation',
'FeatureSetById',
'FeatureSetByName',
'FeatureSetByPortalItem',
'FeatureSetByRelationshipName',
'Filter',
'Find',
'First',
'Floor',
'FromCharCode',
'FromCodePoint',
'FromJSON',
'GdbVersion',
'Generalize',
'Geometry',
'GetFeatureSet',
'GetUser',
'GroupBy',
'Guid',
'Hash',
'HasKey',
'Hour',
'IIf',
'Includes',
'IndexOf',
'Insert',
'Intersection',
'Intersects',
'IsEmpty',
'IsNan',
'ISOMonth',
'ISOWeek',
'ISOWeekday',
'ISOYear',
'IsSelfIntersecting',
'IsSimple',
'Left|0',
'Length',
'Length3D',
'LengthGeodetic',
'Log',
'Lower',
'Map',
'Max',
'Mean',
'Mid',
'Millisecond',
'Min',
'Minute',
'Month',
'MultiPartToSinglePart',
'Multipoint',
'NextSequenceValue',
'None',
'Now',
'Number',
'Offset|0',
'OrderBy',
'Overlaps',
'Point',
'Polygon',
'Polyline',
'Pop',
'Portal',
'Pow',
'Proper',
'Push',
'Random',
'Reduce',
'Relate',
'Replace',
'Resize',
'Reverse',
'Right|0',
'RingIsClockwise',
'Rotate',
'Round',
'Schema',
'Second',
'SetGeometry',
'Simplify',
'Sin',
'Slice',
'Sort',
'Splice',
'Split',
'Sqrt',
'Stdev',
'SubtypeCode',
'SubtypeName',
'Subtypes',
'Sum',
'SymmetricDifference',
'Tan',
'Text',
'Timestamp',
'ToCharCode',
'ToCodePoint',
'Today',
'ToHex',
'ToLocal',
'Top|0',
'Touches',
'ToUTC',
'TrackAccelerationAt',
'TrackAccelerationWindow',
'TrackCurrentAcceleration',
'TrackCurrentDistance',
'TrackCurrentSpeed',
'TrackCurrentTime',
'TrackDistanceAt',
'TrackDistanceWindow',
'TrackDuration',
'TrackFieldWindow',
'TrackGeometryWindow',
'TrackIndex',
'TrackSpeedAt',
'TrackSpeedWindow',
'TrackStartTime',
'TrackWindow',
'Trim',
'TypeOf',
'Union',
'Upper',
'UrlEncode',
'Variance',
'Week',
'Weekday',
'When',
'Within',
'Year',
],
},
i = { className: 'symbol', begin: '\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+' },
a = { className: 'number', variants: [{ begin: '\\b(0[bB][01]+)' }, { begin: '\\b(0[oO][0-7]+)' }, { begin: e.C_NUMBER_RE }], relevance: 0 },
l = { className: 'subst', begin: '\\$\\{', end: '\\}', keywords: n, contains: [] },
u = { className: 'string', begin: '`', end: '`', contains: [e.BACKSLASH_ESCAPE, l] };
l.contains = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, u, a, e.REGEXP_MODE];
const d = l.contains.concat([e.C_BLOCK_COMMENT_MODE, e.C_LINE_COMMENT_MODE]);
return {
name: 'ArcGIS Arcade',
case_insensitive: !0,
keywords: n,
contains: [
e.APOS_STRING_MODE,
e.QUOTE_STRING_MODE,
u,
e.C_LINE_COMMENT_MODE,
e.C_BLOCK_COMMENT_MODE,
i,
a,
{
begin: /[{,]\s*/,
relevance: 0,
contains: [{ begin: r + '\\s*:', returnBegin: !0, relevance: 0, contains: [{ className: 'attr', begin: r, relevance: 0 }] }],
},
{
begin: '(' + e.RE_STARTERS_RE + '|\\b(return)\\b)\\s*',
keywords: 'return',
contains: [
e.C_LINE_COMMENT_MODE,
e.C_BLOCK_COMMENT_MODE,
e.REGEXP_MODE,
{
className: 'function',
begin: '(\\(.*?\\)|' + r + ')\\s*=>',
returnBegin: !0,
end: '\\s*=>',
contains: [
{
className: 'params',
variants: [
{ begin: r },
{ begin: /\(\s*\)/ },
{ begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: n, contains: d },
],
},
],
},
],
relevance: 0,
},
{
beginKeywords: 'function',
end: /\{/,
excludeEnd: !0,
contains: [
e.inherit(e.TITLE_MODE, { className: 'title.function', begin: r }),
{ className: 'params', begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, contains: d },
],
illegal: /\[|%/,
},
{ begin: /\$[(.]/ },
],
illegal: /#(?!!)/,
};
}
return (oc = t), oc;
}
var sc, Og;
function Qge() {
if (Og) return sc;
Og = 1;
function t(r) {
const n = r.regex,
i = r.COMMENT('//', '$', { contains: [{ begin: /\\\n/ }] }),
a = 'decltype\\(auto\\)',
l = '[a-zA-Z_]\\w*::',
u = '<[^<>]+>',
d = '(?!struct)(' + a + '|' + n.optional(l) + '[a-zA-Z_]\\w*' + n.optional(u) + ')',
m = { className: 'type', begin: '\\b[a-z\\d_]*_t\\b' },
p = '\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)',
E = {
className: 'string',
variants: [
{ begin: '(u8?|U|L)?"', end: '"', illegal: '\\n', contains: [r.BACKSLASH_ESCAPE] },
{ begin: "(u8?|U|L)?'(" + p + '|.)', end: "'", illegal: '.' },
r.END_SAME_AS_BEGIN({ begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/, end: /\)([^()\\ ]{0,16})"/ }),
],
},
f = {
className: 'number',
variants: [
{ begin: "\\b(0b[01']+)" },
{ begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" },
{ begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" },
],
relevance: 0,
},
v = {
className: 'meta',
begin: /#\s*[a-z]+\b/,
end: /$/,
keywords: { keyword: 'if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include' },
contains: [
{ begin: /\\\n/, relevance: 0 },
r.inherit(E, { className: 'string' }),
{ className: 'string', begin: /<.*?>/ },
i,
r.C_BLOCK_COMMENT_MODE,
],
},
R = { className: 'title', begin: n.optional(l) + r.IDENT_RE, relevance: 0 },
O = n.optional(l) + r.IDENT_RE + '\\s*\\(',
M = [
'alignas',
'alignof',
'and',
'and_eq',
'asm',
'atomic_cancel',
'atomic_commit',
'atomic_noexcept',
'auto',
'bitand',
'bitor',
'break',
'case',
'catch',
'class',
'co_await',
'co_return',
'co_yield',
'compl',
'concept',
'const_cast|10',
'consteval',
'constexpr',
'constinit',
'continue',
'decltype',
'default',
'delete',
'do',
'dynamic_cast|10',
'else',
'enum',
'explicit',
'export',
'extern',
'false',
'final',
'for',
'friend',
'goto',
'if',
'import',
'inline',
'module',
'mutable',
'namespace',
'new',
'noexcept',
'not',
'not_eq',
'nullptr',
'operator',
'or',
'or_eq',
'override',
'private',
'protected',
'public',
'reflexpr',
'register',
'reinterpret_cast|10',
'requires',
'return',
'sizeof',
'static_assert',
'static_cast|10',
'struct',
'switch',
'synchronized',
'template',
'this',
'thread_local',
'throw',
'transaction_safe',
'transaction_safe_dynamic',
'true',
'try',
'typedef',
'typeid',
'typename',
'union',
'using',
'virtual',
'volatile',
'while',
'xor',
'xor_eq',
],
w = [
'bool',
'char',
'char16_t',
'char32_t',
'char8_t',
'double',
'float',
'int',
'long',
'short',
'void',
'wchar_t',
'unsigned',
'signed',
'const',
'static',
],
D = [
'any',
'auto_ptr',
'barrier',
'binary_semaphore',
'bitset',
'complex',
'condition_variable',
'condition_variable_any',
'counting_semaphore',
'deque',
'false_type',
'future',
'imaginary',
'initializer_list',
'istringstream',
'jthread',
'latch',
'lock_guard',
'multimap',
'multiset',
'mutex',
'optional',
'ostringstream',
'packaged_task',
'pair',
'promise',
'priority_queue',
'queue',
'recursive_mutex',
'recursive_timed_mutex',
'scoped_lock',
'set',
'shared_future',
'shared_lock',
'shared_mutex',
'shared_timed_mutex',
'shared_ptr',
'stack',
'string_view',
'stringstream',
'timed_mutex',
'thread',
'true_type',
'tuple',
'unique_lock',
'unique_ptr',
'unordered_map',
'unordered_multimap',
'unordered_multiset',
'unordered_set',
'variant',
'vector',
'weak_ptr',
'wstring',
'wstring_view',
],
F = [
'abort',
'abs',
'acos',
'apply',
'as_const',
'asin',
'atan',
'atan2',
'calloc',
'ceil',
'cerr',
'cin',
'clog',
'cos',
'cosh',
'cout',
'declval',
'endl',
'exchange',
'exit',
'exp',
'fabs',
'floor',
'fmod',
'forward',
'fprintf',
'fputs',
'free',
'frexp',
'fscanf',
'future',
'invoke',
'isalnum',
'isalpha',
'iscntrl',
'isdigit',
'isgraph',
'islower',
'isprint',
'ispunct',
'isspace',
'isupper',
'isxdigit',
'labs',
'launder',
'ldexp',
'log',
'log10',
'make_pair',
'make_shared',
'make_shared_for_overwrite',
'make_tuple',
'make_unique',
'malloc',
'memchr',
'memcmp',
'memcpy',
'memset',
'modf',
'move',
'pow',
'printf',
'putchar',
'puts',
'realloc',
'scanf',
'sin',
'sinh',
'snprintf',
'sprintf',
'sqrt',
'sscanf',
'std',
'stderr',
'stdin',
'stdout',
'strcat',
'strchr',
'strcmp',
'strcpy',
'strcspn',
'strlen',
'strncat',
'strncmp',
'strncpy',
'strpbrk',
'strrchr',
'strspn',
'strstr',
'swap',
'tan',
'tanh',
'terminate',
'to_underlying',
'tolower',
'toupper',
'vfprintf',
'visit',
'vprintf',
'vsprintf',
],
G = { type: w, keyword: M, literal: ['NULL', 'false', 'nullopt', 'nullptr', 'true'], built_in: ['_Pragma'], _type_hints: D },
X = {
className: 'function.dispatch',
relevance: 0,
keywords: { _hint: F },
begin: n.concat(/\b/, /(?!decltype)/, /(?!if)/, /(?!for)/, /(?!switch)/, /(?!while)/, r.IDENT_RE, n.lookahead(/(<[^<>]+>|)\s*\(/)),
},
ne = [X, v, m, i, r.C_BLOCK_COMMENT_MODE, f, E],
ce = {
variants: [
{ begin: /=/, end: /;/ },
{ begin: /\(/, end: /\)/ },
{ beginKeywords: 'new throw return else', end: /;/ },
],
keywords: G,
contains: ne.concat([{ begin: /\(/, end: /\)/, keywords: G, contains: ne.concat(['self']), relevance: 0 }]),
relevance: 0,
},
j = {
className: 'function',
begin: '(' + d + '[\\*&\\s]+)+' + O,
returnBegin: !0,
end: /[{;=]/,
excludeEnd: !0,
keywords: G,
illegal: /[^\w\s\*&:<>.]/,
contains: [
{ begin: a, keywords: G, relevance: 0 },
{ begin: O, returnBegin: !0, contains: [R], relevance: 0 },
{ begin: /::/, relevance: 0 },
{ begin: /:/, endsWithParent: !0, contains: [E, f] },
{ relevance: 0, match: /,/ },
{
className: 'params',
begin: /\(/,
end: /\)/,
keywords: G,
relevance: 0,
contains: [
i,
r.C_BLOCK_COMMENT_MODE,
E,
f,
m,
{ begin: /\(/, end: /\)/, keywords: G, relevance: 0, contains: ['self', i, r.C_BLOCK_COMMENT_MODE, E, f, m] },
],
},
m,
i,
r.C_BLOCK_COMMENT_MODE,
v,
],
};
return {
name: 'C++',
aliases: ['cc', 'c++', 'h++', 'hpp', 'hh', 'hxx', 'cxx'],
keywords: G,
illegal: '',
classNameAliases: { 'function.dispatch': 'built_in' },
contains: [].concat(ce, j, X, ne, [
v,
{
begin:
'\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)',
end: '>',
keywords: G,
contains: ['self', m],
},
{ begin: r.IDENT_RE + '::', keywords: G },
{ match: [/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/, /\s+/, /\w+/], className: { 1: 'keyword', 3: 'title.class' } },
]),
};
}
function e(r) {
const n = {
type: ['boolean', 'byte', 'word', 'String'],
built_in: [
'KeyboardController',
'MouseController',
'SoftwareSerial',
'EthernetServer',
'EthernetClient',
'LiquidCrystal',
'RobotControl',
'GSMVoiceCall',
'EthernetUDP',
'EsploraTFT',
'HttpClient',
'RobotMotor',
'WiFiClient',
'GSMScanner',
'FileSystem',
'Scheduler',
'GSMServer',
'YunClient',
'YunServer',
'IPAddress',
'GSMClient',
'GSMModem',
'Keyboard',
'Ethernet',
'Console',
'GSMBand',
'Esplora',
'Stepper',
'Process',
'WiFiUDP',
'GSM_SMS',
'Mailbox',
'USBHost',
'Firmata',
'PImage',
'Client',
'Server',
'GSMPIN',
'FileIO',
'Bridge',
'Serial',
'EEPROM',
'Stream',
'Mouse',
'Audio',
'Servo',
'File',
'Task',
'GPRS',
'WiFi',
'Wire',
'TFT',
'GSM',
'SPI',
'SD',
],
_hints: [
'setup',
'loop',
'runShellCommandAsynchronously',
'analogWriteResolution',
'retrieveCallingNumber',
'printFirmwareVersion',
'analogReadResolution',
'sendDigitalPortPair',
'noListenOnLocalhost',
'readJoystickButton',
'setFirmwareVersion',
'readJoystickSwitch',
'scrollDisplayRight',
'getVoiceCallStatus',
'scrollDisplayLeft',
'writeMicroseconds',
'delayMicroseconds',
'beginTransmission',
'getSignalStrength',
'runAsynchronously',
'getAsynchronously',
'listenOnLocalhost',
'getCurrentCarrier',
'readAccelerometer',
'messageAvailable',
'sendDigitalPorts',
'lineFollowConfig',
'countryNameWrite',
'runShellCommand',
'readStringUntil',
'rewindDirectory',
'readTemperature',
'setClockDivider',
'readLightSensor',
'endTransmission',
'analogReference',
'detachInterrupt',
'countryNameRead',
'attachInterrupt',
'encryptionType',
'readBytesUntil',
'robotNameWrite',
'readMicrophone',
'robotNameRead',
'cityNameWrite',
'userNameWrite',
'readJoystickY',
'readJoystickX',
'mouseReleased',
'openNextFile',
'scanNetworks',
'noInterrupts',
'digitalWrite',
'beginSpeaker',
'mousePressed',
'isActionDone',
'mouseDragged',
'displayLogos',
'noAutoscroll',
'addParameter',
'remoteNumber',
'getModifiers',
'keyboardRead',
'userNameRead',
'waitContinue',
'processInput',
'parseCommand',
'printVersion',
'readNetworks',
'writeMessage',
'blinkVersion',
'cityNameRead',
'readMessage',
'setDataMode',
'parsePacket',
'isListening',
'setBitOrder',
'beginPacket',
'isDirectory',
'motorsWrite',
'drawCompass',
'digitalRead',
'clearScreen',
'serialEvent',
'rightToLeft',
'setTextSize',
'leftToRight',
'requestFrom',
'keyReleased',
'compassRead',
'analogWrite',
'interrupts',
'WiFiServer',
'disconnect',
'playMelody',
'parseFloat',
'autoscroll',
'getPINUsed',
'setPINUsed',
'setTimeout',
'sendAnalog',
'readSlider',
'analogRead',
'beginWrite',
'createChar',
'motorsStop',
'keyPressed',
'tempoWrite',
'readButton',
'subnetMask',
'debugPrint',
'macAddress',
'writeGreen',
'randomSeed',
'attachGPRS',
'readString',
'sendString',
'remotePort',
'releaseAll',
'mouseMoved',
'background',
'getXChange',
'getYChange',
'answerCall',
'getResult',
'voiceCall',
'endPacket',
'constrain',
'getSocket',
'writeJSON',
'getButton',
'available',
'connected',
'findUntil',
'readBytes',
'exitValue',
'readGreen',
'writeBlue',
'startLoop',
'IPAddress',
'isPressed',
'sendSysex',
'pauseMode',
'gatewayIP',
'setCursor',
'getOemKey',
'tuneWrite',
'noDisplay',
'loadImage',
'switchPIN',
'onRequest',
'onReceive',
'changePIN',
'playFile',
'noBuffer',
'parseInt',
'overflow',
'checkPIN',
'knobRead',
'beginTFT',
'bitClear',
'updateIR',
'bitWrite',
'position',
'writeRGB',
'highByte',
'writeRed',
'setSpeed',
'readBlue',
'noStroke',
'remoteIP',
'transfer',
'shutdown',
'hangCall',
'beginSMS',
'endWrite',
'attached',
'maintain',
'noCursor',
'checkReg',
'checkPUK',
'shiftOut',
'isValid',
'shiftIn',
'pulseIn',
'connect',
'println',
'localIP',
'pinMode',
'getIMEI',
'display',
'noBlink',
'process',
'getBand',
'running',
'beginSD',
'drawBMP',
'lowByte',
'setBand',
'release',
'bitRead',
'prepare',
'pointTo',
'readRed',
'setMode',
'noFill',
'remove',
'listen',
'stroke',
'detach',
'attach',
'noTone',
'exists',
'buffer',
'height',
'bitSet',
'circle',
'config',
'cursor',
'random',
'IRread',
'setDNS',
'endSMS',
'getKey',
'micros',
'millis',
'begin',
'print',
'write',
'ready',
'flush',
'width',
'isPIN',
'blink',
'clear',
'press',
'mkdir',
'rmdir',
'close',
'point',
'yield',
'image',
'BSSID',
'click',
'delay',
'read',
'text',
'move',
'peek',
'beep',
'rect',
'line',
'open',
'seek',
'fill',
'size',
'turn',
'stop',
'home',
'find',
'step',
'tone',
'sqrt',
'RSSI',
'SSID',
'end',
'bit',
'tan',
'cos',
'sin',
'pow',
'map',
'abs',
'max',
'min',
'get',
'run',
'put',
],
literal: [
'DIGITAL_MESSAGE',
'FIRMATA_STRING',
'ANALOG_MESSAGE',
'REPORT_DIGITAL',
'REPORT_ANALOG',
'INPUT_PULLUP',
'SET_PIN_MODE',
'INTERNAL2V56',
'SYSTEM_RESET',
'LED_BUILTIN',
'INTERNAL1V1',
'SYSEX_START',
'INTERNAL',
'EXTERNAL',
'DEFAULT',
'OUTPUT',
'INPUT',
'HIGH',
'LOW',
],
},
i = t(r),
a = i.keywords;
return (
(a.type = [...a.type, ...n.type]),
(a.literal = [...a.literal, ...n.literal]),
(a.built_in = [...a.built_in, ...n.built_in]),
(a._hints = n._hints),
(i.name = 'Arduino'),
(i.aliases = ['ino']),
(i.supersetOf = 'cpp'),
i
);
}
return (sc = e), sc;
}
var lc, Ig;
function Zge() {
if (Ig) return lc;
Ig = 1;
function t(e) {
const r = {
variants: [
e.COMMENT('^[ \\t]*(?=#)', '$', { relevance: 0, excludeBegin: !0 }),
e.COMMENT('[;@]', '$', { relevance: 0 }),
e.C_LINE_COMMENT_MODE,
e.C_BLOCK_COMMENT_MODE,
],
};
return {
name: 'ARM Assembly',
case_insensitive: !0,
aliases: ['arm'],
keywords: {
$pattern: '\\.?' + e.IDENT_RE,
meta: '.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ',
built_in:
'r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @',
},
contains: [
{
className: 'keyword',
begin:
'\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)',
},
r,
e.QUOTE_STRING_MODE,
{ className: 'string', begin: "'", end: "[^\\\\]'", relevance: 0 },
{ className: 'title', begin: '\\|', end: '\\|', illegal: '\\n', relevance: 0 },
{
className: 'number',
variants: [{ begin: '[#$=]?0x[0-9a-f]+' }, { begin: '[#$=]?0b[01]+' }, { begin: '[#$=]\\d+' }, { begin: '\\b\\d+' }],
relevance: 0,
},
{
className: 'symbol',
variants: [{ begin: '^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:' }, { begin: '^[a-z_\\.\\$][a-z0-9_\\.\\$]+' }, { begin: '[=#]\\w+' }],
relevance: 0,
},
],
};
}
return (lc = t), lc;
}
var cc, xg;
function Xge() {
if (xg) return cc;
xg = 1;
function t(e) {
const r = e.regex,
n = r.concat(/[\p{L}_]/u, r.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u),
i = /[\p{L}0-9._:-]+/u,
a = { className: 'symbol', begin: /&[a-z]+;|[0-9]+;|[a-f0-9]+;/ },
l = { begin: /\s/, contains: [{ className: 'keyword', begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }] },
u = e.inherit(l, { begin: /\(/, end: /\)/ }),
d = e.inherit(e.APOS_STRING_MODE, { className: 'string' }),
m = e.inherit(e.QUOTE_STRING_MODE, { className: 'string' }),
p = {
endsWithParent: !0,
illegal: /,
relevance: 0,
contains: [
{ className: 'attr', begin: i, relevance: 0 },
{
begin: /=\s*/,
relevance: 0,
contains: [
{
className: 'string',
endsParent: !0,
variants: [{ begin: /"/, end: /"/, contains: [a] }, { begin: /'/, end: /'/, contains: [a] }, { begin: /[^\s"'=<>`]+/ }],
},
],
},
],
};
return {
name: 'HTML, XML',
aliases: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist', 'wsf', 'svg'],
case_insensitive: !0,
unicodeRegex: !0,
contains: [
{
className: 'meta',
begin: //,
relevance: 10,
contains: [l, m, d, u, { begin: /\[/, end: /\]/, contains: [{ className: 'meta', begin: //, contains: [l, u, m, d] }] }],
},
e.COMMENT(//, { relevance: 10 }),
{ begin: //, relevance: 10 },
a,
{ className: 'meta', end: /\?>/, variants: [{ begin: /<\?xml/, relevance: 10, contains: [m] }, { begin: /<\?[a-z][a-z0-9]+/ }] },
{
className: 'tag',
begin: /