Files
v1.pivoine.art/assets/bower_components/MathJax/es5/input/tex/extensions/configMacros.js
2025-10-25 12:39:30 +02:00

222 lines
6.3 KiB
JavaScript

!(function (t) {
var e = {};
function a(n) {
if (e[n]) return e[n].exports;
var o = (e[n] = { i: n, l: !1, exports: {} });
return t[n].call(o.exports, o, o.exports, a), (o.l = !0), o.exports;
}
(a.m = t),
(a.c = e),
(a.d = function (t, e, n) {
a.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n });
}),
(a.r = function (t) {
"undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }),
Object.defineProperty(t, "__esModule", { value: !0 });
}),
(a.t = function (t, e) {
if ((1 & e && (t = a(t)), 8 & e)) return t;
if (4 & e && "object" == typeof t && t && t.__esModule) return t;
var n = Object.create(null);
if (
(a.r(n),
Object.defineProperty(n, "default", { enumerable: !0, value: t }),
2 & e && "string" != typeof t)
)
for (var o in t)
a.d(
n,
o,
function (e) {
return t[e];
}.bind(null, o),
);
return n;
}),
(a.n = function (t) {
var e =
t && t.__esModule
? function () {
return t.default;
}
: function () {
return t;
};
return a.d(e, "a", e), e;
}),
(a.o = function (t, e) {
return Object.prototype.hasOwnProperty.call(t, e);
}),
(a.p = ""),
a((a.s = 7));
})([
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.isObject = MathJax._.components.global.isObject),
(e.combineConfig = MathJax._.components.global.combineConfig),
(e.combineDefaults = MathJax._.components.global.combineDefaults),
(e.combineWithMathJax = MathJax._.components.global.combineWithMathJax),
(e.MathJax = MathJax._.components.global.MathJax);
},
function (t, e, a) {
"use strict";
var n =
(this && this.__values) ||
function (t) {
var e = "function" == typeof Symbol && Symbol.iterator,
a = e && t[e],
n = 0;
if (a) return a.call(t);
if (t && "number" == typeof t.length)
return {
next: function () {
return (
t && n >= t.length && (t = void 0),
{ value: t && t[n++], done: !t }
);
},
};
throw new TypeError(
e ? "Object is not iterable." : "Symbol.iterator is not defined.",
);
};
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.ConfigMacrosConfiguration = void 0);
var o = a(2),
i = a(3),
r = a(4),
u = a(5),
c = a(6);
e.ConfigMacrosConfiguration = o.Configuration.create("configmacros", {
init: function (t) {
new r.CommandMap("configmacros-map", {}, {}),
t.append(
o.Configuration.local({
handler: { macro: ["configmacros-map"] },
priority: 3,
}),
);
},
config: function (t, e) {
var a,
o,
i = e.parseOptions.handlers.retrieve("configmacros-map"),
r = e.parseOptions.options.macros;
try {
for (var l = n(Object.keys(r)), p = l.next(); !p.done; p = l.next()) {
var s = p.value,
f = "string" == typeof r[s] ? [r[s]] : r[s],
M = Array.isArray(f[2])
? new u.Macro(
s,
c.default.MacroWithTemplate,
f.slice(0, 2).concat(f[2]),
)
: new u.Macro(s, c.default.Macro, f);
i.add(s, M);
}
} catch (t) {
a = { error: t };
} finally {
try {
p && !p.done && (o = l.return) && o.call(l);
} finally {
if (a) throw a.error;
}
}
},
options: { macros: i.expandable({}) },
});
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.Configuration = MathJax._.input.tex.Configuration.Configuration),
(e.ConfigurationHandler =
MathJax._.input.tex.Configuration.ConfigurationHandler),
(e.ParserConfiguration =
MathJax._.input.tex.Configuration.ParserConfiguration);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.APPEND = MathJax._.util.Options.APPEND),
(e.REMOVE = MathJax._.util.Options.REMOVE),
(e.Expandable = MathJax._.util.Options.Expandable),
(e.expandable = MathJax._.util.Options.expandable),
(e.makeArray = MathJax._.util.Options.makeArray),
(e.keys = MathJax._.util.Options.keys),
(e.copy = MathJax._.util.Options.copy),
(e.insert = MathJax._.util.Options.insert),
(e.defaultOptions = MathJax._.util.Options.defaultOptions),
(e.userOptions = MathJax._.util.Options.userOptions),
(e.selectOptions = MathJax._.util.Options.selectOptions),
(e.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys),
(e.separateOptions = MathJax._.util.Options.separateOptions);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap),
(e.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap),
(e.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap),
(e.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap),
(e.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap),
(e.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap),
(e.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap),
(e.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.Symbol = MathJax._.input.tex.Symbol.Symbol),
(e.Macro = MathJax._.input.tex.Symbol.Macro);
},
function (t, e, a) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = MathJax._.input.tex.newcommand.NewcommandMethods.default);
},
function (t, e, a) {
"use strict";
a.r(e);
var n = a(0),
o = a(1);
Object(n.combineWithMathJax)({
_: { input: { tex: { configmacros: { ConfigMacrosConfiguration: o } } } },
}),
(function (t, e, a) {
var o,
i,
r,
u = MathJax.config.tex;
if (u && u.packages) {
var c = u.packages,
l = c.indexOf(t);
l >= 0 && (c[l] = e),
a &&
u[t] &&
(Object(n.combineConfig)(
u,
((o = {}),
(i = e),
(r = u[t]),
i in o
? Object.defineProperty(o, i, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (o[i] = r),
o),
),
delete u[t]);
}
})("configMacros", "configmacros", !1);
},
]);