@hep-code-runner/react 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import qe, { useRef as Fe, useMemo as ve, useEffect as Oe, useState as Q, useCallback as ue } from "react";
1
+ import qe, { useRef as Oe, useMemo as Ee, useEffect as Se, useState as Z, useCallback as le, forwardRef as xt, useImperativeHandle as St } from "react";
2
2
  var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function St(f) {
4
- return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
3
+ function wt(d) {
4
+ return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
5
5
  }
6
6
  var Ie = { exports: {} }, be = {};
7
7
  /**
@@ -17,17 +17,17 @@ var Xe;
17
17
  function At() {
18
18
  if (Xe) return be;
19
19
  Xe = 1;
20
- var f = qe, g = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, h = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function x(l, m, S) {
22
- var F, L = {}, j = null, C = null;
23
- S !== void 0 && (j = "" + S), m.key !== void 0 && (j = "" + m.key), m.ref !== void 0 && (C = m.ref);
24
- for (F in m) c.call(m, F) && !_.hasOwnProperty(F) && (L[F] = m[F]);
25
- if (l && l.defaultProps) for (F in m = l.defaultProps, m) L[F] === void 0 && (L[F] = m[F]);
26
- return { $$typeof: g, type: l, key: j, ref: C, props: L, _owner: h.current };
20
+ var d = qe, f = Symbol.for("react.element"), n = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function S(l, b, y) {
22
+ var _, O = {}, D = null, I = null;
23
+ y !== void 0 && (D = "" + y), b.key !== void 0 && (D = "" + b.key), b.ref !== void 0 && (I = b.ref);
24
+ for (_ in b) c.call(b, _) && !k.hasOwnProperty(_) && (O[_] = b[_]);
25
+ if (l && l.defaultProps) for (_ in b = l.defaultProps, b) O[_] === void 0 && (O[_] = b[_]);
26
+ return { $$typeof: f, type: l, key: D, ref: I, props: O, _owner: m.current };
27
27
  }
28
- return be.Fragment = n, be.jsx = x, be.jsxs = x, be;
28
+ return be.Fragment = n, be.jsx = S, be.jsxs = S, be;
29
29
  }
30
- var Ee = {};
30
+ var ve = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -38,50 +38,50 @@ var Ee = {};
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
40
  var Ke;
41
- function wt() {
41
+ function Tt() {
42
42
  return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
43
- var f = qe, g = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), l = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), Y = Symbol.iterator, O = "@@iterator";
44
- function R(e) {
43
+ var d = qe, f = Symbol.for("react.element"), n = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), l = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), B = Symbol.iterator, F = "@@iterator";
44
+ function w(e) {
45
45
  if (e === null || typeof e != "object")
46
46
  return null;
47
- var a = Y && e[Y] || e[O];
47
+ var a = B && e[B] || e[F];
48
48
  return typeof a == "function" ? a : null;
49
49
  }
50
- var T = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var R = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function t(e) {
52
52
  {
53
- for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), b = 1; b < a; b++)
54
- u[b - 1] = arguments[b];
53
+ for (var a = arguments.length, u = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
54
+ u[v - 1] = arguments[v];
55
55
  r("error", e, u);
56
56
  }
57
57
  }
58
58
  function r(e, a, u) {
59
59
  {
60
- var b = T.ReactDebugCurrentFrame, k = b.getStackAddendum();
61
- k !== "" && (a += "%s", u = u.concat([k]));
62
- var N = u.map(function(w) {
63
- return String(w);
60
+ var v = R.ReactDebugCurrentFrame, N = v.getStackAddendum();
61
+ N !== "" && (a += "%s", u = u.concat([N]));
62
+ var L = u.map(function(T) {
63
+ return String(T);
64
64
  });
65
- N.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, N);
65
+ L.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, L);
66
66
  }
67
67
  }
68
- var i = !1, s = !1, o = !1, d = !1, v = !1, p;
69
- p = Symbol.for("react.module.reference");
70
- function I(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === _ || v || e === h || e === S || e === F || d || e === C || i || s || o || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === L || e.$$typeof === x || e.$$typeof === l || e.$$typeof === m || // This needs to include all possible module reference object
68
+ var i = !1, s = !1, o = !1, p = !1, E = !1, g;
69
+ g = Symbol.for("react.module.reference");
70
+ function C(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === k || E || e === m || e === y || e === _ || p || e === I || i || s || o || typeof e == "object" && e !== null && (e.$$typeof === D || e.$$typeof === O || e.$$typeof === S || e.$$typeof === l || e.$$typeof === b || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- e.$$typeof === p || e.getModuleId !== void 0));
75
+ e.$$typeof === g || e.getModuleId !== void 0));
76
76
  }
77
77
  function P(e, a, u) {
78
- var b = e.displayName;
79
- if (b)
80
- return b;
81
- var k = a.displayName || a.name || "";
82
- return k !== "" ? u + "(" + k + ")" : u;
78
+ var v = e.displayName;
79
+ if (v)
80
+ return v;
81
+ var N = a.displayName || a.name || "";
82
+ return N !== "" ? u + "(" + N + ")" : u;
83
83
  }
84
- function B(e) {
84
+ function z(e) {
85
85
  return e.displayName || "Context";
86
86
  }
87
87
  function V(e) {
@@ -96,32 +96,32 @@ function wt() {
96
96
  return "Fragment";
97
97
  case n:
98
98
  return "Portal";
99
- case _:
99
+ case k:
100
100
  return "Profiler";
101
- case h:
101
+ case m:
102
102
  return "StrictMode";
103
- case S:
103
+ case y:
104
104
  return "Suspense";
105
- case F:
105
+ case _:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof e == "object")
109
109
  switch (e.$$typeof) {
110
110
  case l:
111
111
  var a = e;
112
- return B(a) + ".Consumer";
113
- case x:
112
+ return z(a) + ".Consumer";
113
+ case S:
114
114
  var u = e;
115
- return B(u._context) + ".Provider";
116
- case m:
115
+ return z(u._context) + ".Provider";
116
+ case b:
117
117
  return P(e, e.render, "ForwardRef");
118
- case L:
119
- var b = e.displayName || null;
120
- return b !== null ? b : V(e.type) || "Memo";
121
- case j: {
122
- var k = e, N = k._payload, w = k._init;
118
+ case O:
119
+ var v = e.displayName || null;
120
+ return v !== null ? v : V(e.type) || "Memo";
121
+ case D: {
122
+ var N = e, L = N._payload, T = N._init;
123
123
  try {
124
- return V(w(N));
124
+ return V(T(L));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,14 +129,14 @@ function wt() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var z = Object.assign, ne = 0, ce, le, D, H, ee, X, G;
132
+ var W = Object.assign, ne = 0, ce, ue, j, H, ee, X, G;
133
133
  function pe() {
134
134
  }
135
135
  pe.__reactDisabledLog = !0;
136
- function Z() {
136
+ function q() {
137
137
  {
138
138
  if (ne === 0) {
139
- ce = console.log, le = console.info, D = console.warn, H = console.error, ee = console.group, X = console.groupCollapsed, G = console.groupEnd;
139
+ ce = console.log, ue = console.info, j = console.warn, H = console.error, ee = console.group, X = console.groupCollapsed, G = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -165,25 +165,25 @@ function wt() {
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: z({}, e, {
168
+ log: W({}, e, {
169
169
  value: ce
170
170
  }),
171
- info: z({}, e, {
172
- value: le
171
+ info: W({}, e, {
172
+ value: ue
173
173
  }),
174
- warn: z({}, e, {
175
- value: D
174
+ warn: W({}, e, {
175
+ value: j
176
176
  }),
177
- error: z({}, e, {
177
+ error: W({}, e, {
178
178
  value: H
179
179
  }),
180
- group: z({}, e, {
180
+ group: W({}, e, {
181
181
  value: ee
182
182
  }),
183
- groupCollapsed: z({}, e, {
183
+ groupCollapsed: W({}, e, {
184
184
  value: X
185
185
  }),
186
- groupEnd: z({}, e, {
186
+ groupEnd: W({}, e, {
187
187
  value: G
188
188
  })
189
189
  });
@@ -191,18 +191,18 @@ function wt() {
191
191
  ne < 0 && t("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var ae = T.ReactCurrentDispatcher, q;
194
+ var ae = R.ReactCurrentDispatcher, J;
195
195
  function ie(e, a, u) {
196
196
  {
197
- if (q === void 0)
197
+ if (J === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (k) {
201
- var b = k.stack.trim().match(/\n( *(at )?)/);
202
- q = b && b[1] || "";
200
+ } catch (N) {
201
+ var v = N.stack.trim().match(/\n( *(at )?)/);
202
+ J = v && v[1] || "";
203
203
  }
204
204
  return `
205
- ` + q + e;
205
+ ` + J + e;
206
206
  }
207
207
  }
208
208
  var se = !1, te;
@@ -218,65 +218,65 @@ function wt() {
218
218
  if (u !== void 0)
219
219
  return u;
220
220
  }
221
- var b;
221
+ var v;
222
222
  se = !0;
223
- var k = Error.prepareStackTrace;
223
+ var N = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
- var N;
226
- N = ae.current, ae.current = null, Z();
225
+ var L;
226
+ L = ae.current, ae.current = null, q();
227
227
  try {
228
228
  if (a) {
229
- var w = function() {
229
+ var T = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(w.prototype, "props", {
232
+ if (Object.defineProperty(T.prototype, "props", {
233
233
  set: function() {
234
234
  throw Error();
235
235
  }
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
- Reflect.construct(w, []);
238
+ Reflect.construct(T, []);
239
239
  } catch (K) {
240
- b = K;
240
+ v = K;
241
241
  }
242
- Reflect.construct(e, [], w);
242
+ Reflect.construct(e, [], T);
243
243
  } else {
244
244
  try {
245
- w.call();
245
+ T.call();
246
246
  } catch (K) {
247
- b = K;
247
+ v = K;
248
248
  }
249
- e.call(w.prototype);
249
+ e.call(T.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
254
  } catch (K) {
255
- b = K;
255
+ v = K;
256
256
  }
257
257
  e();
258
258
  }
259
259
  } catch (K) {
260
- if (K && b && typeof K.stack == "string") {
261
- for (var y = K.stack.split(`
262
- `), W = b.stack.split(`
263
- `), $ = y.length - 1, U = W.length - 1; $ >= 1 && U >= 0 && y[$] !== W[U]; )
260
+ if (K && v && typeof K.stack == "string") {
261
+ for (var x = K.stack.split(`
262
+ `), Y = v.stack.split(`
263
+ `), $ = x.length - 1, U = Y.length - 1; $ >= 1 && U >= 0 && x[$] !== Y[U]; )
264
264
  U--;
265
265
  for (; $ >= 1 && U >= 0; $--, U--)
266
- if (y[$] !== W[U]) {
266
+ if (x[$] !== Y[U]) {
267
267
  if ($ !== 1 || U !== 1)
268
268
  do
269
- if ($--, U--, U < 0 || y[$] !== W[U]) {
270
- var J = `
271
- ` + y[$].replace(" at new ", " at ");
272
- return e.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, J), J;
269
+ if ($--, U--, U < 0 || x[$] !== Y[U]) {
270
+ var Q = `
271
+ ` + x[$].replace(" at new ", " at ");
272
+ return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, Q), Q;
273
273
  }
274
274
  while ($ >= 1 && U >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- se = !1, ae.current = N, oe(), Error.prepareStackTrace = k;
279
+ se = !1, ae.current = L, oe(), Error.prepareStackTrace = N;
280
280
  }
281
281
  var he = e ? e.displayName || e.name : "", de = he ? ie(he) : "";
282
282
  return typeof e == "function" && te.set(e, de), de;
@@ -296,56 +296,56 @@ function wt() {
296
296
  if (typeof e == "string")
297
297
  return ie(e);
298
298
  switch (e) {
299
- case S:
299
+ case y:
300
300
  return ie("Suspense");
301
- case F:
301
+ case _:
302
302
  return ie("SuspenseList");
303
303
  }
304
304
  if (typeof e == "object")
305
305
  switch (e.$$typeof) {
306
- case m:
306
+ case b:
307
307
  return re(e.render);
308
- case L:
308
+ case O:
309
309
  return ye(e.type, a, u);
310
- case j: {
311
- var b = e, k = b._payload, N = b._init;
310
+ case D: {
311
+ var v = e, N = v._payload, L = v._init;
312
312
  try {
313
- return ye(N(k), a, u);
313
+ return ye(L(N), a, u);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var me = Object.prototype.hasOwnProperty, Ce = {}, Le = T.ReactDebugCurrentFrame;
321
- function Se(e) {
320
+ var me = Object.prototype.hasOwnProperty, Ce = {}, Le = R.ReactDebugCurrentFrame;
321
+ function xe(e) {
322
322
  if (e) {
323
323
  var a = e._owner, u = ye(e.type, e._source, a ? a.type : null);
324
324
  Le.setExtraStackFrame(u);
325
325
  } else
326
326
  Le.setExtraStackFrame(null);
327
327
  }
328
- function Qe(e, a, u, b, k) {
328
+ function Qe(e, a, u, v, N) {
329
329
  {
330
- var N = Function.call.bind(me);
331
- for (var w in e)
332
- if (N(e, w)) {
333
- var y = void 0;
330
+ var L = Function.call.bind(me);
331
+ for (var T in e)
332
+ if (L(e, T)) {
333
+ var x = void 0;
334
334
  try {
335
- if (typeof e[w] != "function") {
336
- var W = Error((b || "React class") + ": " + u + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw W.name = "Invariant Violation", W;
335
+ if (typeof e[T] != "function") {
336
+ var Y = Error((v || "React class") + ": " + u + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw Y.name = "Invariant Violation", Y;
338
338
  }
339
- y = e[w](a, w, b, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ x = e[T](a, T, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch ($) {
341
- y = $;
341
+ x = $;
342
342
  }
343
- y && !(y instanceof Error) && (Se(k), t("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", u, w, typeof y), Se(null)), y instanceof Error && !(y.message in Ce) && (Ce[y.message] = !0, Se(k), t("Failed %s type: %s", u, y.message), Se(null));
343
+ x && !(x instanceof Error) && (xe(N), t("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, T, typeof x), xe(null)), x instanceof Error && !(x.message in Ce) && (Ce[x.message] = !0, xe(N), t("Failed %s type: %s", u, x.message), xe(null));
344
344
  }
345
345
  }
346
346
  }
347
347
  var et = Array.isArray;
348
- function Ae(e) {
348
+ function we(e) {
349
349
  return et(e);
350
350
  }
351
351
  function tt(e) {
@@ -368,12 +368,12 @@ function wt() {
368
368
  if (rt(e))
369
369
  return t("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tt(e)), Pe(e);
370
370
  }
371
- var $e = T.ReactCurrentOwner, nt = {
371
+ var je = R.ReactCurrentOwner, nt = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, je, Me;
376
+ }, $e, Me;
377
377
  function at(e) {
378
378
  if (me.call(e, "ref")) {
379
379
  var a = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -391,12 +391,12 @@ function wt() {
391
391
  return e.key !== void 0;
392
392
  }
393
393
  function st(e, a) {
394
- typeof e.ref == "string" && $e.current;
394
+ typeof e.ref == "string" && je.current;
395
395
  }
396
396
  function ot(e, a) {
397
397
  {
398
398
  var u = function() {
399
- je || (je = !0, t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
399
+ $e || ($e = !0, t("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
400
400
  };
401
401
  u.isReactWarning = !0, Object.defineProperty(e, "key", {
402
402
  get: u,
@@ -415,54 +415,54 @@ function wt() {
415
415
  });
416
416
  }
417
417
  }
418
- var ut = function(e, a, u, b, k, N, w) {
419
- var y = {
418
+ var ut = function(e, a, u, v, N, L, T) {
419
+ var x = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
- $$typeof: g,
421
+ $$typeof: f,
422
422
  // Built-in properties that belong on the element
423
423
  type: e,
424
424
  key: a,
425
425
  ref: u,
426
- props: w,
426
+ props: T,
427
427
  // Record the component responsible for creating this element.
428
- _owner: N
428
+ _owner: L
429
429
  };
430
- return y._store = {}, Object.defineProperty(y._store, "validated", {
430
+ return x._store = {}, Object.defineProperty(x._store, "validated", {
431
431
  configurable: !1,
432
432
  enumerable: !1,
433
433
  writable: !0,
434
434
  value: !1
435
- }), Object.defineProperty(y, "_self", {
435
+ }), Object.defineProperty(x, "_self", {
436
436
  configurable: !1,
437
437
  enumerable: !1,
438
438
  writable: !1,
439
- value: b
440
- }), Object.defineProperty(y, "_source", {
439
+ value: v
440
+ }), Object.defineProperty(x, "_source", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
- value: k
445
- }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
444
+ value: N
445
+ }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
446
446
  };
447
- function ct(e, a, u, b, k) {
447
+ function ct(e, a, u, v, N) {
448
448
  {
449
- var N, w = {}, y = null, W = null;
450
- u !== void 0 && (De(u), y = "" + u), it(a) && (De(a.key), y = "" + a.key), at(a) && (W = a.ref, st(a, k));
451
- for (N in a)
452
- me.call(a, N) && !nt.hasOwnProperty(N) && (w[N] = a[N]);
449
+ var L, T = {}, x = null, Y = null;
450
+ u !== void 0 && (De(u), x = "" + u), it(a) && (De(a.key), x = "" + a.key), at(a) && (Y = a.ref, st(a, N));
451
+ for (L in a)
452
+ me.call(a, L) && !nt.hasOwnProperty(L) && (T[L] = a[L]);
453
453
  if (e && e.defaultProps) {
454
454
  var $ = e.defaultProps;
455
- for (N in $)
456
- w[N] === void 0 && (w[N] = $[N]);
455
+ for (L in $)
456
+ T[L] === void 0 && (T[L] = $[L]);
457
457
  }
458
- if (y || W) {
458
+ if (x || Y) {
459
459
  var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- y && ot(w, U), W && lt(w, U);
460
+ x && ot(T, U), Y && lt(T, U);
461
461
  }
462
- return ut(e, y, W, k, b, $e.current, w);
462
+ return ut(e, x, Y, N, v, je.current, T);
463
463
  }
464
464
  }
465
- var we = T.ReactCurrentOwner, Ue = T.ReactDebugCurrentFrame;
465
+ var Ae = R.ReactCurrentOwner, Ue = R.ReactDebugCurrentFrame;
466
466
  function ge(e) {
467
467
  if (e) {
468
468
  var a = e._owner, u = ye(e.type, e._source, a ? a.type : null);
@@ -472,13 +472,13 @@ function wt() {
472
472
  }
473
473
  var Te;
474
474
  Te = !1;
475
- function xe(e) {
476
- return typeof e == "object" && e !== null && e.$$typeof === g;
475
+ function Re(e) {
476
+ return typeof e == "object" && e !== null && e.$$typeof === f;
477
477
  }
478
478
  function He() {
479
479
  {
480
- if (we.current) {
481
- var e = V(we.current.type);
480
+ if (Ae.current) {
481
+ var e = V(Ae.current.type);
482
482
  if (e)
483
483
  return `
484
484
 
@@ -512,26 +512,26 @@ Check the top-level render call using <` + u + ">.");
512
512
  if (Be[u])
513
513
  return;
514
514
  Be[u] = !0;
515
- var b = "";
516
- e && e._owner && e._owner !== we.current && (b = " It was passed a child from " + V(e._owner.type) + "."), ge(e), t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, b), ge(null);
515
+ var v = "";
516
+ e && e._owner && e._owner !== Ae.current && (v = " It was passed a child from " + V(e._owner.type) + "."), ge(e), t('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), ge(null);
517
517
  }
518
518
  }
519
- function Ge(e, a) {
519
+ function We(e, a) {
520
520
  {
521
521
  if (typeof e != "object")
522
522
  return;
523
- if (Ae(e))
523
+ if (we(e))
524
524
  for (var u = 0; u < e.length; u++) {
525
- var b = e[u];
526
- xe(b) && ze(b, a);
525
+ var v = e[u];
526
+ Re(v) && ze(v, a);
527
527
  }
528
- else if (xe(e))
528
+ else if (Re(e))
529
529
  e._store && (e._store.validated = !0);
530
530
  else if (e) {
531
- var k = R(e);
532
- if (typeof k == "function" && k !== e.entries)
533
- for (var N = k.call(e), w; !(w = N.next()).done; )
534
- xe(w.value) && ze(w.value, a);
531
+ var N = w(e);
532
+ if (typeof N == "function" && N !== e.entries)
533
+ for (var L = N.call(e), T; !(T = L.next()).done; )
534
+ Re(T.value) && ze(T.value, a);
535
535
  }
536
536
  }
537
537
  }
@@ -543,19 +543,19 @@ Check the top-level render call using <` + u + ">.");
543
543
  var u;
544
544
  if (typeof a == "function")
545
545
  u = a.propTypes;
546
- else if (typeof a == "object" && (a.$$typeof === m || // Note: Memo only checks outer props here.
546
+ else if (typeof a == "object" && (a.$$typeof === b || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- a.$$typeof === L))
548
+ a.$$typeof === O))
549
549
  u = a.propTypes;
550
550
  else
551
551
  return;
552
552
  if (u) {
553
- var b = V(a);
554
- Qe(u, e.props, "prop", b, e);
553
+ var v = V(a);
554
+ Qe(u, e.props, "prop", v, e);
555
555
  } else if (a.PropTypes !== void 0 && !Te) {
556
556
  Te = !0;
557
- var k = V(a);
558
- t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
557
+ var N = V(a);
558
+ t("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
559
559
  }
560
560
  typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && t("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
@@ -563,55 +563,55 @@ Check the top-level render call using <` + u + ">.");
563
563
  function gt(e) {
564
564
  {
565
565
  for (var a = Object.keys(e.props), u = 0; u < a.length; u++) {
566
- var b = a[u];
567
- if (b !== "children" && b !== "key") {
568
- ge(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ge(null);
566
+ var v = a[u];
567
+ if (v !== "children" && v !== "key") {
568
+ ge(e), t("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), ge(null);
569
569
  break;
570
570
  }
571
571
  }
572
572
  e.ref !== null && (ge(e), t("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
573
573
  }
574
574
  }
575
- var We = {};
576
- function Ye(e, a, u, b, k, N) {
575
+ var Ge = {};
576
+ function Ye(e, a, u, v, N, L) {
577
577
  {
578
- var w = I(e);
579
- if (!w) {
580
- var y = "";
581
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var W = dt();
583
- W ? y += W : y += He();
578
+ var T = C(e);
579
+ if (!T) {
580
+ var x = "";
581
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
+ var Y = dt();
583
+ Y ? x += Y : x += He();
584
584
  var $;
585
- e === null ? $ = "null" : Ae(e) ? $ = "array" : e !== void 0 && e.$$typeof === g ? ($ = "<" + (V(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof e, t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, y);
585
+ e === null ? $ = "null" : we(e) ? $ = "array" : e !== void 0 && e.$$typeof === f ? ($ = "<" + (V(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof e, t("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, x);
586
586
  }
587
- var U = ct(e, a, u, k, N);
587
+ var U = ct(e, a, u, N, L);
588
588
  if (U == null)
589
589
  return U;
590
- if (w) {
591
- var J = a.children;
592
- if (J !== void 0)
593
- if (b)
594
- if (Ae(J)) {
595
- for (var he = 0; he < J.length; he++)
596
- Ge(J[he], e);
597
- Object.freeze && Object.freeze(J);
590
+ if (T) {
591
+ var Q = a.children;
592
+ if (Q !== void 0)
593
+ if (v)
594
+ if (we(Q)) {
595
+ for (var he = 0; he < Q.length; he++)
596
+ We(Q[he], e);
597
+ Object.freeze && Object.freeze(Q);
598
598
  } else
599
599
  t("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
600
  else
601
- Ge(J, e);
601
+ We(Q, e);
602
602
  }
603
603
  if (me.call(a, "key")) {
604
604
  var de = V(e), K = Object.keys(a).filter(function(yt) {
605
605
  return yt !== "key";
606
- }), Re = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!We[de + Re]) {
608
- var vt = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
606
+ }), ke = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!Ge[de + ke]) {
608
+ var Et = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}";
609
609
  t(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, Re, de, vt, de), We[de + Re] = !0;
614
+ <%s key={someKey} {...props} />`, ke, de, Et, de), Ge[de + ke] = !0;
615
615
  }
616
616
  }
617
617
  return e === c ? gt(U) : ft(U), U;
@@ -623,14 +623,14 @@ React keys must be passed directly to JSX without using spread:
623
623
  function mt(e, a, u) {
624
624
  return Ye(e, a, u, !1);
625
625
  }
626
- var bt = mt, Et = ht;
627
- Ee.Fragment = c, Ee.jsx = bt, Ee.jsxs = Et;
628
- }()), Ee;
626
+ var bt = mt, vt = ht;
627
+ ve.Fragment = c, ve.jsx = bt, ve.jsxs = vt;
628
+ }()), ve;
629
629
  }
630
- process.env.NODE_ENV === "production" ? Ie.exports = At() : Ie.exports = wt();
631
- var E = Ie.exports, Je = { exports: {} };
632
- (function(f) {
633
- var g = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
630
+ process.env.NODE_ENV === "production" ? Ie.exports = At() : Ie.exports = Tt();
631
+ var h = Ie.exports, Je = { exports: {} };
632
+ (function(d) {
633
+ var f = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
634
634
  /**
635
635
  * Prism: Lightweight, robust, elegant syntax highlighting
636
636
  *
@@ -640,7 +640,7 @@ var E = Ie.exports, Je = { exports: {} };
640
640
  * @public
641
641
  */
642
642
  var n = function(c) {
643
- var h = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, _ = 0, x = {}, l = {
643
+ var m = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, k = 0, S = {}, l = {
644
644
  /**
645
645
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
646
646
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -696,7 +696,7 @@ var E = Ie.exports, Je = { exports: {} };
696
696
  */
697
697
  util: {
698
698
  encode: function t(r) {
699
- return r instanceof m ? new m(r.type, t(r.content), r.alias) : Array.isArray(r) ? r.map(t) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
699
+ return r instanceof b ? new b(r.type, t(r.content), r.alias) : Array.isArray(r) ? r.map(t) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
700
700
  },
701
701
  /**
702
702
  * Returns the name of the type of the given value.
@@ -724,7 +724,7 @@ var E = Ie.exports, Je = { exports: {} };
724
724
  * @returns {number}
725
725
  */
726
726
  objId: function(t) {
727
- return t.__id || Object.defineProperty(t, "__id", { value: ++_ }), t.__id;
727
+ return t.__id || Object.defineProperty(t, "__id", { value: ++k }), t.__id;
728
728
  },
729
729
  /**
730
730
  * Creates a deep clone of the given object.
@@ -745,8 +745,8 @@ var E = Ie.exports, Je = { exports: {} };
745
745
  return i[o];
746
746
  s = /** @type {Record<string, any>} */
747
747
  {}, i[o] = s;
748
- for (var d in r)
749
- r.hasOwnProperty(d) && (s[d] = t(r[d], i));
748
+ for (var p in r)
749
+ r.hasOwnProperty(p) && (s[p] = t(r[p], i));
750
750
  return (
751
751
  /** @type {any} */
752
752
  s
@@ -754,8 +754,8 @@ var E = Ie.exports, Je = { exports: {} };
754
754
  case "Array":
755
755
  return o = l.util.objId(r), i[o] ? i[o] : (s = [], i[o] = s, /** @type {Array} */
756
756
  /** @type {any} */
757
- r.forEach(function(v, p) {
758
- s[p] = t(v, i);
757
+ r.forEach(function(E, g) {
758
+ s[g] = t(E, i);
759
759
  }), /** @type {any} */
760
760
  s);
761
761
  default:
@@ -772,7 +772,7 @@ var E = Ie.exports, Je = { exports: {} };
772
772
  */
773
773
  getLanguage: function(t) {
774
774
  for (; t; ) {
775
- var r = h.exec(t.className);
775
+ var r = m.exec(t.className);
776
776
  if (r)
777
777
  return r[1].toLowerCase();
778
778
  t = t.parentElement;
@@ -787,7 +787,7 @@ var E = Ie.exports, Je = { exports: {} };
787
787
  * @returns {void}
788
788
  */
789
789
  setLanguage: function(t, r) {
790
- t.className = t.className.replace(RegExp(h, "gi"), ""), t.classList.add("language-" + r);
790
+ t.className = t.className.replace(RegExp(m, "gi"), ""), t.classList.add("language-" + r);
791
791
  },
792
792
  /**
793
793
  * Returns the script element that is currently executing.
@@ -859,10 +859,10 @@ var E = Ie.exports, Je = { exports: {} };
859
859
  /**
860
860
  * The grammar for plain, unformatted text.
861
861
  */
862
- plain: x,
863
- plaintext: x,
864
- text: x,
865
- txt: x,
862
+ plain: S,
863
+ plaintext: S,
864
+ text: S,
865
+ txt: S,
866
866
  /**
867
867
  * Creates a deep copy of the language with the given id and appends the given tokens.
868
868
  *
@@ -975,28 +975,28 @@ var E = Ie.exports, Je = { exports: {} };
975
975
  insertBefore: function(t, r, i, s) {
976
976
  s = s || /** @type {any} */
977
977
  l.languages;
978
- var o = s[t], d = {};
979
- for (var v in o)
980
- if (o.hasOwnProperty(v)) {
981
- if (v == r)
982
- for (var p in i)
983
- i.hasOwnProperty(p) && (d[p] = i[p]);
984
- i.hasOwnProperty(v) || (d[v] = o[v]);
978
+ var o = s[t], p = {};
979
+ for (var E in o)
980
+ if (o.hasOwnProperty(E)) {
981
+ if (E == r)
982
+ for (var g in i)
983
+ i.hasOwnProperty(g) && (p[g] = i[g]);
984
+ i.hasOwnProperty(E) || (p[E] = o[E]);
985
985
  }
986
- var I = s[t];
987
- return s[t] = d, l.languages.DFS(l.languages, function(P, B) {
988
- B === I && P != t && (this[P] = d);
989
- }), d;
986
+ var C = s[t];
987
+ return s[t] = p, l.languages.DFS(l.languages, function(P, z) {
988
+ z === C && P != t && (this[P] = p);
989
+ }), p;
990
990
  },
991
991
  // Traverse a language definition with Depth First Search
992
992
  DFS: function t(r, i, s, o) {
993
993
  o = o || {};
994
- var d = l.util.objId;
995
- for (var v in r)
996
- if (r.hasOwnProperty(v)) {
997
- i.call(r, v, r[v], s || v);
998
- var p = r[v], I = l.util.type(p);
999
- I === "Object" && !o[d(p)] ? (o[d(p)] = !0, t(p, i, null, o)) : I === "Array" && !o[d(p)] && (o[d(p)] = !0, t(p, i, v, o));
994
+ var p = l.util.objId;
995
+ for (var E in r)
996
+ if (r.hasOwnProperty(E)) {
997
+ i.call(r, E, r[E], s || E);
998
+ var g = r[E], C = l.util.type(g);
999
+ C === "Object" && !o[p(g)] ? (o[p(g)] = !0, t(g, i, null, o)) : C === "Array" && !o[p(g)] && (o[p(g)] = !0, t(g, i, E, o));
1000
1000
  }
1001
1001
  }
1002
1002
  },
@@ -1038,8 +1038,8 @@ var E = Ie.exports, Je = { exports: {} };
1038
1038
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
1039
1039
  };
1040
1040
  l.hooks.run("before-highlightall", s), s.elements = Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)), l.hooks.run("before-all-elements-highlight", s);
1041
- for (var o = 0, d; d = s.elements[o++]; )
1042
- l.highlightElement(d, r === !0, s.callback);
1041
+ for (var o = 0, p; p = s.elements[o++]; )
1042
+ l.highlightElement(p, r === !0, s.callback);
1043
1043
  },
1044
1044
  /**
1045
1045
  * Highlights the code inside a single element.
@@ -1072,36 +1072,36 @@ var E = Ie.exports, Je = { exports: {} };
1072
1072
  highlightElement: function(t, r, i) {
1073
1073
  var s = l.util.getLanguage(t), o = l.languages[s];
1074
1074
  l.util.setLanguage(t, s);
1075
- var d = t.parentElement;
1076
- d && d.nodeName.toLowerCase() === "pre" && l.util.setLanguage(d, s);
1077
- var v = t.textContent, p = {
1075
+ var p = t.parentElement;
1076
+ p && p.nodeName.toLowerCase() === "pre" && l.util.setLanguage(p, s);
1077
+ var E = t.textContent, g = {
1078
1078
  element: t,
1079
1079
  language: s,
1080
1080
  grammar: o,
1081
- code: v
1081
+ code: E
1082
1082
  };
1083
- function I(B) {
1084
- p.highlightedCode = B, l.hooks.run("before-insert", p), p.element.innerHTML = p.highlightedCode, l.hooks.run("after-highlight", p), l.hooks.run("complete", p), i && i.call(p.element);
1083
+ function C(z) {
1084
+ g.highlightedCode = z, l.hooks.run("before-insert", g), g.element.innerHTML = g.highlightedCode, l.hooks.run("after-highlight", g), l.hooks.run("complete", g), i && i.call(g.element);
1085
1085
  }
1086
- if (l.hooks.run("before-sanity-check", p), d = p.element.parentElement, d && d.nodeName.toLowerCase() === "pre" && !d.hasAttribute("tabindex") && d.setAttribute("tabindex", "0"), !p.code) {
1087
- l.hooks.run("complete", p), i && i.call(p.element);
1086
+ if (l.hooks.run("before-sanity-check", g), p = g.element.parentElement, p && p.nodeName.toLowerCase() === "pre" && !p.hasAttribute("tabindex") && p.setAttribute("tabindex", "0"), !g.code) {
1087
+ l.hooks.run("complete", g), i && i.call(g.element);
1088
1088
  return;
1089
1089
  }
1090
- if (l.hooks.run("before-highlight", p), !p.grammar) {
1091
- I(l.util.encode(p.code));
1090
+ if (l.hooks.run("before-highlight", g), !g.grammar) {
1091
+ C(l.util.encode(g.code));
1092
1092
  return;
1093
1093
  }
1094
1094
  if (r && c.Worker) {
1095
1095
  var P = new Worker(l.filename);
1096
- P.onmessage = function(B) {
1097
- I(B.data);
1096
+ P.onmessage = function(z) {
1097
+ C(z.data);
1098
1098
  }, P.postMessage(JSON.stringify({
1099
- language: p.language,
1100
- code: p.code,
1099
+ language: g.language,
1100
+ code: g.code,
1101
1101
  immediateClose: !0
1102
1102
  }));
1103
1103
  } else
1104
- I(l.highlight(p.code, p.grammar, p.language));
1104
+ C(l.highlight(g.code, g.grammar, g.language));
1105
1105
  },
1106
1106
  /**
1107
1107
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -1131,7 +1131,7 @@ var E = Ie.exports, Je = { exports: {} };
1131
1131
  };
1132
1132
  if (l.hooks.run("before-tokenize", s), !s.grammar)
1133
1133
  throw new Error('The language "' + s.language + '" has no grammar.');
1134
- return s.tokens = l.tokenize(s.code, s.grammar), l.hooks.run("after-tokenize", s), m.stringify(l.util.encode(s.tokens), s.language);
1134
+ return s.tokens = l.tokenize(s.code, s.grammar), l.hooks.run("after-tokenize", s), b.stringify(l.util.encode(s.tokens), s.language);
1135
1135
  },
1136
1136
  /**
1137
1137
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -1164,8 +1164,8 @@ var E = Ie.exports, Je = { exports: {} };
1164
1164
  r[s] = i[s];
1165
1165
  delete r.rest;
1166
1166
  }
1167
- var o = new L();
1168
- return j(o, o.head, t), F(t, o, r, o.head, 0), Y(o);
1167
+ var o = new O();
1168
+ return D(o, o.head, t), _(t, o, r, o.head, 0), B(o);
1169
1169
  },
1170
1170
  /**
1171
1171
  * @namespace
@@ -1206,19 +1206,19 @@ var E = Ie.exports, Je = { exports: {} };
1206
1206
  o(r);
1207
1207
  }
1208
1208
  },
1209
- Token: m
1209
+ Token: b
1210
1210
  };
1211
1211
  c.Prism = l;
1212
- function m(t, r, i, s) {
1212
+ function b(t, r, i, s) {
1213
1213
  this.type = t, this.content = r, this.alias = i, this.length = (s || "").length | 0;
1214
1214
  }
1215
- m.stringify = function t(r, i) {
1215
+ b.stringify = function t(r, i) {
1216
1216
  if (typeof r == "string")
1217
1217
  return r;
1218
1218
  if (Array.isArray(r)) {
1219
1219
  var s = "";
1220
- return r.forEach(function(I) {
1221
- s += t(I, i);
1220
+ return r.forEach(function(C) {
1221
+ s += t(C, i);
1222
1222
  }), s;
1223
1223
  }
1224
1224
  var o = {
@@ -1228,85 +1228,85 @@ var E = Ie.exports, Je = { exports: {} };
1228
1228
  classes: ["token", r.type],
1229
1229
  attributes: {},
1230
1230
  language: i
1231
- }, d = r.alias;
1232
- d && (Array.isArray(d) ? Array.prototype.push.apply(o.classes, d) : o.classes.push(d)), l.hooks.run("wrap", o);
1233
- var v = "";
1234
- for (var p in o.attributes)
1235
- v += " " + p + '="' + (o.attributes[p] || "").replace(/"/g, "&quot;") + '"';
1236
- return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + v + ">" + o.content + "</" + o.tag + ">";
1231
+ }, p = r.alias;
1232
+ p && (Array.isArray(p) ? Array.prototype.push.apply(o.classes, p) : o.classes.push(p)), l.hooks.run("wrap", o);
1233
+ var E = "";
1234
+ for (var g in o.attributes)
1235
+ E += " " + g + '="' + (o.attributes[g] || "").replace(/"/g, "&quot;") + '"';
1236
+ return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + E + ">" + o.content + "</" + o.tag + ">";
1237
1237
  };
1238
- function S(t, r, i, s) {
1238
+ function y(t, r, i, s) {
1239
1239
  t.lastIndex = r;
1240
1240
  var o = t.exec(i);
1241
1241
  if (o && s && o[1]) {
1242
- var d = o[1].length;
1243
- o.index += d, o[0] = o[0].slice(d);
1242
+ var p = o[1].length;
1243
+ o.index += p, o[0] = o[0].slice(p);
1244
1244
  }
1245
1245
  return o;
1246
1246
  }
1247
- function F(t, r, i, s, o, d) {
1248
- for (var v in i)
1249
- if (!(!i.hasOwnProperty(v) || !i[v])) {
1250
- var p = i[v];
1251
- p = Array.isArray(p) ? p : [p];
1252
- for (var I = 0; I < p.length; ++I) {
1253
- if (d && d.cause == v + "," + I)
1247
+ function _(t, r, i, s, o, p) {
1248
+ for (var E in i)
1249
+ if (!(!i.hasOwnProperty(E) || !i[E])) {
1250
+ var g = i[E];
1251
+ g = Array.isArray(g) ? g : [g];
1252
+ for (var C = 0; C < g.length; ++C) {
1253
+ if (p && p.cause == E + "," + C)
1254
1254
  return;
1255
- var P = p[I], B = P.inside, V = !!P.lookbehind, z = !!P.greedy, ne = P.alias;
1256
- if (z && !P.pattern.global) {
1255
+ var P = g[C], z = P.inside, V = !!P.lookbehind, W = !!P.greedy, ne = P.alias;
1256
+ if (W && !P.pattern.global) {
1257
1257
  var ce = P.pattern.toString().match(/[imsuy]*$/)[0];
1258
1258
  P.pattern = RegExp(P.pattern.source, ce + "g");
1259
1259
  }
1260
- for (var le = P.pattern || P, D = s.next, H = o; D !== r.tail && !(d && H >= d.reach); H += D.value.length, D = D.next) {
1261
- var ee = D.value;
1260
+ for (var ue = P.pattern || P, j = s.next, H = o; j !== r.tail && !(p && H >= p.reach); H += j.value.length, j = j.next) {
1261
+ var ee = j.value;
1262
1262
  if (r.length > t.length)
1263
1263
  return;
1264
- if (!(ee instanceof m)) {
1264
+ if (!(ee instanceof b)) {
1265
1265
  var X = 1, G;
1266
- if (z) {
1267
- if (G = S(le, H, t, V), !G || G.index >= t.length)
1266
+ if (W) {
1267
+ if (G = y(ue, H, t, V), !G || G.index >= t.length)
1268
1268
  break;
1269
- var ae = G.index, pe = G.index + G[0].length, Z = H;
1270
- for (Z += D.value.length; ae >= Z; )
1271
- D = D.next, Z += D.value.length;
1272
- if (Z -= D.value.length, H = Z, D.value instanceof m)
1269
+ var ae = G.index, pe = G.index + G[0].length, q = H;
1270
+ for (q += j.value.length; ae >= q; )
1271
+ j = j.next, q += j.value.length;
1272
+ if (q -= j.value.length, H = q, j.value instanceof b)
1273
1273
  continue;
1274
- for (var oe = D; oe !== r.tail && (Z < pe || typeof oe.value == "string"); oe = oe.next)
1275
- X++, Z += oe.value.length;
1276
- X--, ee = t.slice(H, Z), G.index -= H;
1277
- } else if (G = S(le, 0, ee, V), !G)
1274
+ for (var oe = j; oe !== r.tail && (q < pe || typeof oe.value == "string"); oe = oe.next)
1275
+ X++, q += oe.value.length;
1276
+ X--, ee = t.slice(H, q), G.index -= H;
1277
+ } else if (G = y(ue, 0, ee, V), !G)
1278
1278
  continue;
1279
- var ae = G.index, q = G[0], ie = ee.slice(0, ae), se = ee.slice(ae + q.length), te = H + ee.length;
1280
- d && te > d.reach && (d.reach = te);
1281
- var A = D.prev;
1282
- ie && (A = j(r, A, ie), H += ie.length), C(r, A, X);
1283
- var M = new m(v, B ? l.tokenize(q, B) : q, ne, q);
1284
- if (D = j(r, A, M), se && j(r, D, se), X > 1) {
1279
+ var ae = G.index, J = G[0], ie = ee.slice(0, ae), se = ee.slice(ae + J.length), te = H + ee.length;
1280
+ p && te > p.reach && (p.reach = te);
1281
+ var A = j.prev;
1282
+ ie && (A = D(r, A, ie), H += ie.length), I(r, A, X);
1283
+ var M = new b(E, z ? l.tokenize(J, z) : J, ne, J);
1284
+ if (j = D(r, A, M), se && D(r, j, se), X > 1) {
1285
1285
  var re = {
1286
- cause: v + "," + I,
1286
+ cause: E + "," + C,
1287
1287
  reach: te
1288
1288
  };
1289
- F(t, r, i, D.prev, H, re), d && re.reach > d.reach && (d.reach = re.reach);
1289
+ _(t, r, i, j.prev, H, re), p && re.reach > p.reach && (p.reach = re.reach);
1290
1290
  }
1291
1291
  }
1292
1292
  }
1293
1293
  }
1294
1294
  }
1295
1295
  }
1296
- function L() {
1296
+ function O() {
1297
1297
  var t = { value: null, prev: null, next: null }, r = { value: null, prev: t, next: null };
1298
1298
  t.next = r, this.head = t, this.tail = r, this.length = 0;
1299
1299
  }
1300
- function j(t, r, i) {
1300
+ function D(t, r, i) {
1301
1301
  var s = r.next, o = { value: i, prev: r, next: s };
1302
1302
  return r.next = o, s.prev = o, t.length++, o;
1303
1303
  }
1304
- function C(t, r, i) {
1304
+ function I(t, r, i) {
1305
1305
  for (var s = r.next, o = 0; o < i && s !== t.tail; o++)
1306
1306
  s = s.next;
1307
1307
  r.next = s, s.prev = r, t.length -= o;
1308
1308
  }
1309
- function Y(t) {
1309
+ function B(t) {
1310
1310
  for (var r = [], i = t.head.next; i !== t.tail; )
1311
1311
  r.push(i.value), i = i.next;
1312
1312
  return r;
@@ -1316,18 +1316,18 @@ var E = Ie.exports, Je = { exports: {} };
1316
1316
  var r = JSON.parse(t.data), i = r.language, s = r.code, o = r.immediateClose;
1317
1317
  c.postMessage(l.highlight(s, l.languages[i], i)), o && c.close();
1318
1318
  }, !1)), l;
1319
- var O = l.util.currentScript();
1320
- O && (l.filename = O.src, O.hasAttribute("data-manual") && (l.manual = !0));
1321
- function R() {
1319
+ var F = l.util.currentScript();
1320
+ F && (l.filename = F.src, F.hasAttribute("data-manual") && (l.manual = !0));
1321
+ function w() {
1322
1322
  l.manual || l.highlightAll();
1323
1323
  }
1324
1324
  if (!l.manual) {
1325
- var T = document.readyState;
1326
- T === "loading" || T === "interactive" && O && O.defer ? document.addEventListener("DOMContentLoaded", R) : window.requestAnimationFrame ? window.requestAnimationFrame(R) : window.setTimeout(R, 16);
1325
+ var R = document.readyState;
1326
+ R === "loading" || R === "interactive" && F && F.defer ? document.addEventListener("DOMContentLoaded", w) : window.requestAnimationFrame ? window.requestAnimationFrame(w) : window.setTimeout(w, 16);
1327
1327
  }
1328
1328
  return l;
1329
- }(g);
1330
- f.exports && (f.exports = n), typeof Ve < "u" && (Ve.Prism = n), n.languages.markup = {
1329
+ }(f);
1330
+ d.exports && (d.exports = n), typeof Ve < "u" && (Ve.Prism = n), n.languages.markup = {
1331
1331
  comment: {
1332
1332
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
1333
1333
  greedy: !0
@@ -1418,32 +1418,32 @@ var E = Ie.exports, Je = { exports: {} };
1418
1418
  * @example
1419
1419
  * addInlined('style', 'css');
1420
1420
  */
1421
- value: function(h, _) {
1422
- var x = {};
1423
- x["language-" + _] = {
1421
+ value: function(m, k) {
1422
+ var S = {};
1423
+ S["language-" + k] = {
1424
1424
  pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
1425
1425
  lookbehind: !0,
1426
- inside: n.languages[_]
1427
- }, x.cdata = /^<!\[CDATA\[|\]\]>$/i;
1426
+ inside: n.languages[k]
1427
+ }, S.cdata = /^<!\[CDATA\[|\]\]>$/i;
1428
1428
  var l = {
1429
1429
  "included-cdata": {
1430
1430
  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
1431
- inside: x
1431
+ inside: S
1432
1432
  }
1433
1433
  };
1434
- l["language-" + _] = {
1434
+ l["language-" + k] = {
1435
1435
  pattern: /[\s\S]+/,
1436
- inside: n.languages[_]
1436
+ inside: n.languages[k]
1437
1437
  };
1438
- var m = {};
1439
- m[h] = {
1438
+ var b = {};
1439
+ b[m] = {
1440
1440
  pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
1441
- return h;
1441
+ return m;
1442
1442
  }), "i"),
1443
1443
  lookbehind: !0,
1444
1444
  greedy: !0,
1445
1445
  inside: l
1446
- }, n.languages.insertBefore("markup", "cdata", m);
1446
+ }, n.languages.insertBefore("markup", "cdata", b);
1447
1447
  }
1448
1448
  }), Object.defineProperty(n.languages.markup.tag, "addAttribute", {
1449
1449
  /**
@@ -1457,7 +1457,7 @@ var E = Ie.exports, Je = { exports: {} };
1457
1457
  * @example
1458
1458
  * addAttribute('style', 'css');
1459
1459
  */
1460
- value: function(c, h) {
1460
+ value: function(c, m) {
1461
1461
  n.languages.markup.tag.inside["special-attr"].push({
1462
1462
  pattern: RegExp(
1463
1463
  /(^|["'\s])/.source + "(?:" + c + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
@@ -1472,8 +1472,8 @@ var E = Ie.exports, Je = { exports: {} };
1472
1472
  value: {
1473
1473
  pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
1474
1474
  lookbehind: !0,
1475
- alias: [h, "language-" + h],
1476
- inside: n.languages[h]
1475
+ alias: [m, "language-" + m],
1476
+ inside: n.languages[m]
1477
1477
  },
1478
1478
  punctuation: [
1479
1479
  {
@@ -1488,11 +1488,11 @@ var E = Ie.exports, Je = { exports: {} };
1488
1488
  });
1489
1489
  }
1490
1490
  }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, function(c) {
1491
- var h = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1491
+ var m = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
1492
1492
  c.languages.css = {
1493
1493
  comment: /\/\*[\s\S]*?\*\//,
1494
1494
  atrule: {
1495
- pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + h.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1495
+ pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + m.source + ")*?" + /(?:;|(?=\s*\{))/.source),
1496
1496
  inside: {
1497
1497
  rule: /^@[\w-]+/,
1498
1498
  "selector-function-argument": {
@@ -1509,23 +1509,23 @@ var E = Ie.exports, Je = { exports: {} };
1509
1509
  },
1510
1510
  url: {
1511
1511
  // https://drafts.csswg.org/css-values-3/#urls
1512
- pattern: RegExp("\\burl\\((?:" + h.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1512
+ pattern: RegExp("\\burl\\((?:" + m.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
1513
1513
  greedy: !0,
1514
1514
  inside: {
1515
1515
  function: /^url/i,
1516
1516
  punctuation: /^\(|\)$/,
1517
1517
  string: {
1518
- pattern: RegExp("^" + h.source + "$"),
1518
+ pattern: RegExp("^" + m.source + "$"),
1519
1519
  alias: "url"
1520
1520
  }
1521
1521
  }
1522
1522
  },
1523
1523
  selector: {
1524
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + h.source + ")*(?=\\s*\\{)"),
1524
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + m.source + ")*(?=\\s*\\{)"),
1525
1525
  lookbehind: !0
1526
1526
  },
1527
1527
  string: {
1528
- pattern: h,
1528
+ pattern: m,
1529
1529
  greedy: !0
1530
1530
  },
1531
1531
  property: {
@@ -1539,8 +1539,8 @@ var E = Ie.exports, Je = { exports: {} };
1539
1539
  },
1540
1540
  punctuation: /[(){};:,]/
1541
1541
  }, c.languages.css.atrule.inside.rest = c.languages.css;
1542
- var _ = c.languages.markup;
1543
- _ && (_.tag.addInlined("style", "css"), _.tag.addAttribute("style", "css"));
1542
+ var k = c.languages.markup;
1543
+ k && (k.tag.addInlined("style", "css"), k.tag.addAttribute("style", "css"));
1544
1544
  }(n), n.languages.clike = {
1545
1545
  comment: [
1546
1546
  {
@@ -1705,9 +1705,9 @@ var E = Ie.exports, Je = { exports: {} };
1705
1705
  if (typeof n > "u" || typeof document > "u")
1706
1706
  return;
1707
1707
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
1708
- var c = "Loading…", h = function(O, R) {
1709
- return "✖ Error " + O + " while fetching file: " + R;
1710
- }, _ = "✖ Error: File does not exist or is empty", x = {
1708
+ var c = "Loading…", m = function(F, w) {
1709
+ return "✖ Error " + F + " while fetching file: " + w;
1710
+ }, k = "✖ Error: File does not exist or is empty", S = {
1711
1711
  js: "javascript",
1712
1712
  py: "python",
1713
1713
  rb: "ruby",
@@ -1717,52 +1717,52 @@ var E = Ie.exports, Je = { exports: {} };
1717
1717
  bat: "batch",
1718
1718
  h: "c",
1719
1719
  tex: "latex"
1720
- }, l = "data-src-status", m = "loading", S = "loaded", F = "failed", L = "pre[data-src]:not([" + l + '="' + S + '"]):not([' + l + '="' + m + '"])';
1721
- function j(O, R, T) {
1720
+ }, l = "data-src-status", b = "loading", y = "loaded", _ = "failed", O = "pre[data-src]:not([" + l + '="' + y + '"]):not([' + l + '="' + b + '"])';
1721
+ function D(F, w, R) {
1722
1722
  var t = new XMLHttpRequest();
1723
- t.open("GET", O, !0), t.onreadystatechange = function() {
1724
- t.readyState == 4 && (t.status < 400 && t.responseText ? R(t.responseText) : t.status >= 400 ? T(h(t.status, t.statusText)) : T(_));
1723
+ t.open("GET", F, !0), t.onreadystatechange = function() {
1724
+ t.readyState == 4 && (t.status < 400 && t.responseText ? w(t.responseText) : t.status >= 400 ? R(m(t.status, t.statusText)) : R(k));
1725
1725
  }, t.send(null);
1726
1726
  }
1727
- function C(O) {
1728
- var R = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(O || "");
1729
- if (R) {
1730
- var T = Number(R[1]), t = R[2], r = R[3];
1731
- return t ? r ? [T, Number(r)] : [T, void 0] : [T, T];
1727
+ function I(F) {
1728
+ var w = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(F || "");
1729
+ if (w) {
1730
+ var R = Number(w[1]), t = w[2], r = w[3];
1731
+ return t ? r ? [R, Number(r)] : [R, void 0] : [R, R];
1732
1732
  }
1733
1733
  }
1734
- n.hooks.add("before-highlightall", function(O) {
1735
- O.selector += ", " + L;
1736
- }), n.hooks.add("before-sanity-check", function(O) {
1737
- var R = (
1734
+ n.hooks.add("before-highlightall", function(F) {
1735
+ F.selector += ", " + O;
1736
+ }), n.hooks.add("before-sanity-check", function(F) {
1737
+ var w = (
1738
1738
  /** @type {HTMLPreElement} */
1739
- O.element
1739
+ F.element
1740
1740
  );
1741
- if (R.matches(L)) {
1742
- O.code = "", R.setAttribute(l, m);
1743
- var T = R.appendChild(document.createElement("CODE"));
1744
- T.textContent = c;
1745
- var t = R.getAttribute("data-src"), r = O.language;
1741
+ if (w.matches(O)) {
1742
+ F.code = "", w.setAttribute(l, b);
1743
+ var R = w.appendChild(document.createElement("CODE"));
1744
+ R.textContent = c;
1745
+ var t = w.getAttribute("data-src"), r = F.language;
1746
1746
  if (r === "none") {
1747
1747
  var i = (/\.(\w+)$/.exec(t) || [, "none"])[1];
1748
- r = x[i] || i;
1748
+ r = S[i] || i;
1749
1749
  }
1750
- n.util.setLanguage(T, r), n.util.setLanguage(R, r);
1750
+ n.util.setLanguage(R, r), n.util.setLanguage(w, r);
1751
1751
  var s = n.plugins.autoloader;
1752
- s && s.loadLanguages(r), j(
1752
+ s && s.loadLanguages(r), D(
1753
1753
  t,
1754
1754
  function(o) {
1755
- R.setAttribute(l, S);
1756
- var d = C(R.getAttribute("data-range"));
1757
- if (d) {
1758
- var v = o.split(/\r\n?|\n/g), p = d[0], I = d[1] == null ? v.length : d[1];
1759
- p < 0 && (p += v.length), p = Math.max(0, Math.min(p - 1, v.length)), I < 0 && (I += v.length), I = Math.max(0, Math.min(I, v.length)), o = v.slice(p, I).join(`
1760
- `), R.hasAttribute("data-start") || R.setAttribute("data-start", String(p + 1));
1755
+ w.setAttribute(l, y);
1756
+ var p = I(w.getAttribute("data-range"));
1757
+ if (p) {
1758
+ var E = o.split(/\r\n?|\n/g), g = p[0], C = p[1] == null ? E.length : p[1];
1759
+ g < 0 && (g += E.length), g = Math.max(0, Math.min(g - 1, E.length)), C < 0 && (C += E.length), C = Math.max(0, Math.min(C, E.length)), o = E.slice(g, C).join(`
1760
+ `), w.hasAttribute("data-start") || w.setAttribute("data-start", String(g + 1));
1761
1761
  }
1762
- T.textContent = o, n.highlightElement(T);
1762
+ R.textContent = o, n.highlightElement(R);
1763
1763
  },
1764
1764
  function(o) {
1765
- R.setAttribute(l, F), T.textContent = o;
1765
+ w.setAttribute(l, _), R.textContent = o;
1766
1766
  }
1767
1767
  );
1768
1768
  }
@@ -1774,19 +1774,19 @@ var E = Ie.exports, Je = { exports: {} };
1774
1774
  *
1775
1775
  * @param {ParentNode} [container=document]
1776
1776
  */
1777
- highlight: function(R) {
1778
- for (var T = (R || document).querySelectorAll(L), t = 0, r; r = T[t++]; )
1777
+ highlight: function(w) {
1778
+ for (var R = (w || document).querySelectorAll(O), t = 0, r; r = R[t++]; )
1779
1779
  n.highlightElement(r);
1780
1780
  }
1781
1781
  };
1782
- var Y = !1;
1782
+ var B = !1;
1783
1783
  n.fileHighlight = function() {
1784
- Y || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), Y = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
1784
+ B || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), B = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
1785
1785
  };
1786
1786
  }();
1787
1787
  })(Je);
1788
- var Tt = Je.exports;
1789
- const Ne = /* @__PURE__ */ St(Tt);
1788
+ var Rt = Je.exports;
1789
+ const Ne = /* @__PURE__ */ wt(Rt);
1790
1790
  Prism.languages.clike = {
1791
1791
  comment: [
1792
1792
  {
@@ -2044,8 +2044,8 @@ Prism.languages.insertBefore("go", "string", {
2044
2044
  }
2045
2045
  });
2046
2046
  delete Prism.languages.go["class-name"];
2047
- (function(f) {
2048
- var g = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, n = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, c = {
2047
+ (function(d) {
2048
+ var f = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, n = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, c = {
2049
2049
  pattern: RegExp(/(^|[^\w.])/.source + n + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
2050
2050
  lookbehind: !0,
2051
2051
  inside: {
@@ -2058,7 +2058,7 @@ delete Prism.languages.go["class-name"];
2058
2058
  punctuation: /\./
2059
2059
  }
2060
2060
  };
2061
- f.languages.java = f.languages.extend("clike", {
2061
+ d.languages.java = d.languages.extend("clike", {
2062
2062
  string: {
2063
2063
  pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,
2064
2064
  lookbehind: !0,
@@ -2081,9 +2081,9 @@ delete Prism.languages.go["class-name"];
2081
2081
  inside: c.inside
2082
2082
  }
2083
2083
  ],
2084
- keyword: g,
2084
+ keyword: f,
2085
2085
  function: [
2086
- f.languages.clike.function,
2086
+ d.languages.clike.function,
2087
2087
  {
2088
2088
  pattern: /(::\s*)[a-z_]\w*/,
2089
2089
  lookbehind: !0
@@ -2095,7 +2095,7 @@ delete Prism.languages.go["class-name"];
2095
2095
  lookbehind: !0
2096
2096
  },
2097
2097
  constant: /\b[A-Z][A-Z_\d]+\b/
2098
- }), f.languages.insertBefore("java", "string", {
2098
+ }), d.languages.insertBefore("java", "string", {
2099
2099
  "triple-quoted-string": {
2100
2100
  // http://openjdk.java.net/jeps/355#Description
2101
2101
  pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
@@ -2106,7 +2106,7 @@ delete Prism.languages.go["class-name"];
2106
2106
  pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/,
2107
2107
  greedy: !0
2108
2108
  }
2109
- }), f.languages.insertBefore("java", "class-name", {
2109
+ }), d.languages.insertBefore("java", "class-name", {
2110
2110
  annotation: {
2111
2111
  pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
2112
2112
  lookbehind: !0,
@@ -2116,7 +2116,7 @@ delete Prism.languages.go["class-name"];
2116
2116
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
2117
2117
  inside: {
2118
2118
  "class-name": c,
2119
- keyword: g,
2119
+ keyword: f,
2120
2120
  punctuation: /[<>(),.:]/,
2121
2121
  operator: /[?&|]/
2122
2122
  }
@@ -2148,7 +2148,7 @@ delete Prism.languages.go["class-name"];
2148
2148
  namespace: {
2149
2149
  pattern: RegExp(
2150
2150
  /(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, function() {
2151
- return g.source;
2151
+ return f.source;
2152
2152
  })
2153
2153
  ),
2154
2154
  lookbehind: !0,
@@ -2234,17 +2234,17 @@ Prism.languages.insertBefore("c", "function", {
2234
2234
  constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/
2235
2235
  });
2236
2236
  delete Prism.languages.c.boolean;
2237
- (function(f) {
2238
- for (var g = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, n = 0; n < 2; n++)
2239
- g = g.replace(/<self>/g, function() {
2240
- return g;
2237
+ (function(d) {
2238
+ for (var f = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, n = 0; n < 2; n++)
2239
+ f = f.replace(/<self>/g, function() {
2240
+ return f;
2241
2241
  });
2242
- g = g.replace(/<self>/g, function() {
2242
+ f = f.replace(/<self>/g, function() {
2243
2243
  return /[^\s\S]/.source;
2244
- }), f.languages.rust = {
2244
+ }), d.languages.rust = {
2245
2245
  comment: [
2246
2246
  {
2247
- pattern: RegExp(/(^|[^\\])/.source + g),
2247
+ pattern: RegExp(/(^|[^\\])/.source + f),
2248
2248
  lookbehind: !0,
2249
2249
  greedy: !0
2250
2250
  },
@@ -2348,7 +2348,7 @@ delete Prism.languages.c.boolean;
2348
2348
  boolean: /\b(?:false|true)\b/,
2349
2349
  punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
2350
2350
  operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
2351
- }, f.languages.rust["closure-params"].inside.rest = f.languages.rust, f.languages.rust.attribute.inside.string = f.languages.rust.string;
2351
+ }, d.languages.rust["closure-params"].inside.rest = d.languages.rust, d.languages.rust.attribute.inside.string = d.languages.rust.string;
2352
2352
  })(Prism);
2353
2353
  Prism.languages.sql = {
2354
2354
  comment: {
@@ -2383,8 +2383,8 @@ Prism.languages.sql = {
2383
2383
  operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
2384
2384
  punctuation: /[;[\]()`,.]/
2385
2385
  };
2386
- (function(f) {
2387
- var g = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
2386
+ (function(d) {
2387
+ var f = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
2388
2388
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
2389
2389
  lookbehind: !0,
2390
2390
  alias: "punctuation",
@@ -2394,7 +2394,7 @@ Prism.languages.sql = {
2394
2394
  }, c = {
2395
2395
  bash: n,
2396
2396
  environment: {
2397
- pattern: RegExp("\\$" + g),
2397
+ pattern: RegExp("\\$" + f),
2398
2398
  alias: "constant"
2399
2399
  },
2400
2400
  variable: [
@@ -2434,7 +2434,7 @@ Prism.languages.sql = {
2434
2434
  operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
2435
2435
  punctuation: /[\[\]]/,
2436
2436
  environment: {
2437
- pattern: RegExp("(\\{)" + g),
2437
+ pattern: RegExp("(\\{)" + f),
2438
2438
  lookbehind: !0,
2439
2439
  alias: "constant"
2440
2440
  }
@@ -2445,7 +2445,7 @@ Prism.languages.sql = {
2445
2445
  // Escape sequences from echo and printf's manuals, and escaped quotes.
2446
2446
  entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
2447
2447
  };
2448
- f.languages.bash = {
2448
+ d.languages.bash = {
2449
2449
  shebang: {
2450
2450
  pattern: /^#!\s*\/.*/,
2451
2451
  alias: "important"
@@ -2483,7 +2483,7 @@ Prism.languages.sql = {
2483
2483
  pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
2484
2484
  inside: {
2485
2485
  environment: {
2486
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + g),
2486
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + f),
2487
2487
  lookbehind: !0,
2488
2488
  alias: "constant"
2489
2489
  }
@@ -2539,7 +2539,7 @@ Prism.languages.sql = {
2539
2539
  }
2540
2540
  ],
2541
2541
  environment: {
2542
- pattern: RegExp("\\$?" + g),
2542
+ pattern: RegExp("\\$?" + f),
2543
2543
  alias: "constant"
2544
2544
  },
2545
2545
  variable: c.variable,
@@ -2581,8 +2581,8 @@ Prism.languages.sql = {
2581
2581
  pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
2582
2582
  lookbehind: !0
2583
2583
  }
2584
- }, n.inside = f.languages.bash;
2585
- for (var h = [
2584
+ }, n.inside = d.languages.bash;
2585
+ for (var m = [
2586
2586
  "comment",
2587
2587
  "function-name",
2588
2588
  "for-or-select",
@@ -2598,9 +2598,9 @@ Prism.languages.sql = {
2598
2598
  "operator",
2599
2599
  "punctuation",
2600
2600
  "number"
2601
- ], _ = c.variable[1].inside, x = 0; x < h.length; x++)
2602
- _[h[x]] = f.languages.bash[h[x]];
2603
- f.languages.sh = f.languages.bash, f.languages.shell = f.languages.bash;
2601
+ ], k = c.variable[1].inside, S = 0; S < m.length; S++)
2602
+ k[m[S]] = d.languages.bash[m[S]];
2603
+ d.languages.sh = d.languages.bash, d.languages.shell = d.languages.bash;
2604
2604
  })(Prism);
2605
2605
  Prism.languages.json = {
2606
2606
  property: {
@@ -2627,18 +2627,18 @@ Prism.languages.json = {
2627
2627
  }
2628
2628
  };
2629
2629
  Prism.languages.webmanifest = Prism.languages.json;
2630
- function xt(f) {
2630
+ function kt(d) {
2631
2631
  if (typeof document > "u") return;
2632
- const g = f === "dark" ? "prism-okaidia" : "prism", n = document.getElementById("prism-theme-style"), c = `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${g}.min.css`;
2632
+ const f = d === "dark" ? "prism-okaidia" : "prism", n = document.getElementById("prism-theme-style"), c = `https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/${f}.min.css`;
2633
2633
  if (n)
2634
2634
  n.setAttribute("href", c);
2635
2635
  else {
2636
- const h = document.createElement("link");
2637
- h.id = "prism-theme-style", h.rel = "stylesheet", h.href = c, document.head.appendChild(h);
2636
+ const m = document.createElement("link");
2637
+ m.id = "prism-theme-style", m.rel = "stylesheet", m.href = c, document.head.appendChild(m);
2638
2638
  }
2639
2639
  }
2640
2640
  window.Prism = Ne;
2641
- const Rt = {
2641
+ const _t = {
2642
2642
  javascript: "javascript",
2643
2643
  js: "javascript",
2644
2644
  typescript: "typescript",
@@ -2670,77 +2670,77 @@ const Rt = {
2670
2670
  markdown: "markdown",
2671
2671
  md: "markdown"
2672
2672
  };
2673
- function kt(f) {
2674
- const g = document.createElement("div");
2675
- return g.textContent = f, g.innerHTML;
2673
+ function Ft(d) {
2674
+ const f = document.createElement("div");
2675
+ return f.textContent = d, f.innerHTML;
2676
2676
  }
2677
- const _t = ({
2678
- value: f,
2679
- language: g,
2677
+ const Ot = ({
2678
+ value: d,
2679
+ language: f,
2680
2680
  theme: n = "dark",
2681
2681
  disabled: c = !1,
2682
- onChange: h
2682
+ onChange: m
2683
2683
  }) => {
2684
- const _ = Fe(null), x = Fe(null), l = ve(() => Rt[g.toLowerCase()] || "javascript", [g]), m = n === "dark" ? "#1e1e1e" : "#fafafa", S = ve(() => {
2684
+ const k = Oe(null), S = Oe(null), l = Ee(() => _t[f.toLowerCase()] || "javascript", [f]), b = n === "dark" ? "#1e1e1e" : "#fafafa", y = Ee(() => {
2685
2685
  try {
2686
- const C = Ne.languages[l];
2687
- if (C)
2688
- return Ne.highlight(f || "", C, l);
2686
+ const I = Ne.languages[l];
2687
+ if (I)
2688
+ return Ne.highlight(d || "", I, l);
2689
2689
  } catch {
2690
2690
  }
2691
- return kt(f || "");
2692
- }, [f, l]), F = (C) => {
2693
- h == null || h(C.target.value);
2694
- }, L = () => {
2695
- _.current && x.current && (x.current.scrollTop = _.current.scrollTop, x.current.scrollLeft = _.current.scrollLeft);
2691
+ return Ft(d || "");
2692
+ }, [d, l]), _ = (I) => {
2693
+ m == null || m(I.target.value);
2694
+ }, O = () => {
2695
+ k.current && S.current && (S.current.scrollTop = k.current.scrollTop, S.current.scrollLeft = k.current.scrollLeft);
2696
2696
  };
2697
- Oe(() => {
2698
- xt(n);
2697
+ Se(() => {
2698
+ kt(n);
2699
2699
  }, [n]);
2700
- const j = (C) => {
2701
- if (C.key === "Tab") {
2702
- C.preventDefault();
2703
- const Y = C.target, O = Y.selectionStart, R = Y.selectionEnd, T = f.substring(0, O) + " " + f.substring(R);
2704
- h == null || h(T), requestAnimationFrame(() => {
2705
- Y.selectionStart = Y.selectionEnd = O + 2;
2700
+ const D = (I) => {
2701
+ if (I.key === "Tab") {
2702
+ I.preventDefault();
2703
+ const B = I.target, F = B.selectionStart, w = B.selectionEnd, R = d.substring(0, F) + " " + d.substring(w);
2704
+ m == null || m(R), requestAnimationFrame(() => {
2705
+ B.selectionStart = B.selectionEnd = F + 2;
2706
2706
  });
2707
2707
  }
2708
2708
  };
2709
- return /* @__PURE__ */ E.jsxs("div", { className: `code-editor theme-${n}`, style: { background: m }, children: [
2710
- /* @__PURE__ */ E.jsx(
2709
+ return /* @__PURE__ */ h.jsxs("div", { className: `code-editor theme-${n}`, style: { background: b }, children: [
2710
+ /* @__PURE__ */ h.jsx(
2711
2711
  "pre",
2712
2712
  {
2713
- ref: x,
2713
+ ref: S,
2714
2714
  className: `code-highlight language-${l}`,
2715
2715
  "aria-hidden": "true",
2716
- children: /* @__PURE__ */ E.jsx("code", { dangerouslySetInnerHTML: { __html: S } })
2716
+ children: /* @__PURE__ */ h.jsx("code", { dangerouslySetInnerHTML: { __html: y } })
2717
2717
  }
2718
2718
  ),
2719
- /* @__PURE__ */ E.jsx(
2719
+ /* @__PURE__ */ h.jsx(
2720
2720
  "textarea",
2721
2721
  {
2722
- ref: _,
2722
+ ref: k,
2723
2723
  className: "code-input",
2724
- value: f,
2724
+ value: d,
2725
2725
  disabled: c,
2726
- onChange: F,
2727
- onScroll: L,
2728
- onKeyDown: j,
2726
+ onChange: _,
2727
+ onScroll: O,
2728
+ onKeyDown: D,
2729
2729
  spellCheck: !1,
2730
2730
  placeholder: "Write your code here..."
2731
2731
  }
2732
2732
  )
2733
2733
  ] });
2734
2734
  };
2735
- var Ft = Object.defineProperty, Ot = (f, g, n) => g in f ? Ft(f, g, { enumerable: !0, configurable: !0, writable: !0, value: n }) : f[g] = n, Ze = (f, g, n) => Ot(f, typeof g != "symbol" ? g + "" : g, n);
2736
- let ke = null;
2737
- class It {
2738
- constructor(g = {}) {
2739
- Ze(this, "baseUrl"), Ze(this, "timeout"), this.baseUrl = g.pistonUrl || "/api/piston", this.timeout = g.timeout || 3e3;
2735
+ var It = Object.defineProperty, Nt = (d, f, n) => f in d ? It(d, f, { enumerable: !0, configurable: !0, writable: !0, value: n }) : d[f] = n, Ze = (d, f, n) => Nt(d, typeof f != "symbol" ? f + "" : f, n);
2736
+ let _e = null;
2737
+ class Ct {
2738
+ constructor(f = {}) {
2739
+ Ze(this, "baseUrl"), Ze(this, "timeout"), this.baseUrl = f.pistonUrl || "/api/piston", this.timeout = f.timeout || 3e3;
2740
2740
  }
2741
- async getRuntimes(g = !1) {
2742
- if (ke && !g)
2743
- return ke;
2741
+ async getRuntimes(f = !1) {
2742
+ if (_e && !f)
2743
+ return _e;
2744
2744
  try {
2745
2745
  const n = await fetch(`${this.baseUrl}/runtimes`, {
2746
2746
  method: "GET",
@@ -2751,26 +2751,26 @@ class It {
2751
2751
  if (!n.ok)
2752
2752
  throw new Error(`Failed to fetch runtimes: ${n.statusText}`);
2753
2753
  const c = await n.json();
2754
- return ke = c, c;
2754
+ return _e = c, c;
2755
2755
  } catch (n) {
2756
2756
  throw console.error("Failed to fetch runtimes:", n), n;
2757
2757
  }
2758
2758
  }
2759
- async execute(g, n, c = {}) {
2760
- const h = (await this.getRuntimes()).find(
2761
- (m) => {
2762
- var S;
2763
- return m.language.toLowerCase() === g.toLowerCase() || ((S = m.aliases) == null ? void 0 : S.some((F) => F.toLowerCase() === g.toLowerCase()));
2759
+ async execute(f, n, c = {}) {
2760
+ const m = (await this.getRuntimes()).find(
2761
+ (b) => {
2762
+ var y;
2763
+ return b.language.toLowerCase() === f.toLowerCase() || ((y = b.aliases) == null ? void 0 : y.some((_) => _.toLowerCase() === f.toLowerCase()));
2764
2764
  }
2765
2765
  );
2766
- if (!h)
2767
- throw new Error(`Language '${g}' is not supported`);
2768
- const _ = this.getFileName(g), x = {
2769
- language: h.language,
2770
- version: c.version || h.version,
2766
+ if (!m)
2767
+ throw new Error(`Language '${f}' is not supported`);
2768
+ const k = this.getFileName(f), S = {
2769
+ language: m.language,
2770
+ version: c.version || m.version,
2771
2771
  files: [
2772
2772
  {
2773
- name: _,
2773
+ name: k,
2774
2774
  content: n
2775
2775
  }
2776
2776
  ],
@@ -2780,39 +2780,39 @@ class It {
2780
2780
  compile_timeout: this.timeout
2781
2781
  }, l = Date.now();
2782
2782
  try {
2783
- const m = await fetch(`${this.baseUrl}/execute`, {
2783
+ const b = await fetch(`${this.baseUrl}/execute`, {
2784
2784
  method: "POST",
2785
2785
  headers: {
2786
2786
  "Content-Type": "application/json"
2787
2787
  },
2788
- body: JSON.stringify(x)
2788
+ body: JSON.stringify(S)
2789
2789
  });
2790
- if (!m.ok)
2791
- throw new Error(`Execute failed: ${m.statusText}`);
2792
- const S = await m.json(), F = Date.now() - l, L = S.run.stdout || "", j = S.run.stderr || "";
2790
+ if (!b.ok)
2791
+ throw new Error(`Execute failed: ${b.statusText}`);
2792
+ const y = await b.json(), _ = Date.now() - l, O = y.run.stdout || "", D = y.run.stderr || "";
2793
2793
  return {
2794
- success: S.run.code === 0,
2795
- output: L,
2796
- stderr: j,
2797
- code: S.run.code,
2798
- executionTime: F,
2799
- compile: S.compile ? {
2800
- stdout: S.compile.stdout || "",
2801
- stderr: S.compile.stderr || "",
2802
- code: S.compile.code
2794
+ success: y.run.code === 0,
2795
+ output: O,
2796
+ stderr: D,
2797
+ code: y.run.code,
2798
+ executionTime: _,
2799
+ compile: y.compile ? {
2800
+ stdout: y.compile.stdout || "",
2801
+ stderr: y.compile.stderr || "",
2802
+ code: y.compile.code
2803
2803
  } : void 0
2804
2804
  };
2805
- } catch (m) {
2805
+ } catch (b) {
2806
2806
  return {
2807
2807
  success: !1,
2808
2808
  output: "",
2809
- stderr: m instanceof Error ? m.message : "Unknown error",
2809
+ stderr: b instanceof Error ? b.message : "Unknown error",
2810
2810
  code: -1,
2811
2811
  executionTime: Date.now() - l
2812
2812
  };
2813
2813
  }
2814
2814
  }
2815
- getFileName(g) {
2815
+ getFileName(f) {
2816
2816
  return {
2817
2817
  javascript: "main.js",
2818
2818
  typescript: "main.ts",
@@ -2839,10 +2839,10 @@ class It {
2839
2839
  css: "style.css",
2840
2840
  sql: "query.sql",
2841
2841
  markdown: "readme.md"
2842
- }[g.toLowerCase()] || `main.${g}`;
2842
+ }[f.toLowerCase()] || `main.${f}`;
2843
2843
  }
2844
2844
  }
2845
- const Nt = {
2845
+ const Lt = {
2846
2846
  javascript: 'console.log("Hello, World!");',
2847
2847
  typescript: 'console.log("Hello, World!");',
2848
2848
  python: 'print("Hello, World!")',
@@ -2940,178 +2940,178 @@ h1 {
2940
2940
 
2941
2941
  This is a sample markdown document.`
2942
2942
  };
2943
- function _e(f) {
2944
- const g = f.toLowerCase();
2945
- return Nt[g] || `// ${f}
2943
+ function Fe(d) {
2944
+ const f = d.toLowerCase();
2945
+ return Lt[f] || `// ${d}
2946
2946
  // Write your code here`;
2947
2947
  }
2948
- const Lt = ({
2949
- pistonUrl: f = "/api/piston",
2950
- language: g = "javascript",
2948
+ const Pt = ({
2949
+ pistonUrl: d = "/api/piston",
2950
+ language: f = "javascript",
2951
2951
  theme: n = "light",
2952
2952
  showLanguageSelector: c = !0,
2953
- showEditor: h = !0,
2954
- editable: _ = !0,
2955
- defaultCode: x = "",
2953
+ showEditor: m = !0,
2954
+ editable: k = !0,
2955
+ defaultCode: S = "",
2956
2956
  executorLabel: l = "运行",
2957
- onExecuteStart: m,
2958
- onExecuteEnd: S,
2959
- onLanguageChange: F
2957
+ onExecuteStart: b,
2958
+ onExecuteEnd: y,
2959
+ onLanguageChange: _
2960
2960
  }) => {
2961
- const [L, j] = Q([]), [C, Y] = Q(g), [O, R] = Q(n), [T, t] = Q(x), [r, i] = Q(""), [s, o] = Q(""), [d, v] = Q(!1), [p, I] = Q(null), [P, B] = Q("stdout"), [V, z] = Q(null), [ne, ce] = Q(!0), [le, D] = Q(60), H = ve(() => new It({ pistonUrl: f }), [f]), ee = ve(() => L.map((A) => ({
2961
+ const [O, D] = Z([]), [I, B] = Z(f), [F, w] = Z(n), [R, t] = Z(S), [r, i] = Z(""), [s, o] = Z(""), [p, E] = Z(!1), [g, C] = Z(null), [P, z] = Z("stdout"), [V, W] = Z(null), [ne, ce] = Z(!0), [ue, j] = Z(60), H = Ee(() => new Ct({ pistonUrl: d }), [d]), ee = Ee(() => O.map((A) => ({
2962
2962
  value: `${A.language}:${A.version}`,
2963
2963
  label: `${A.language.charAt(0).toUpperCase() + A.language.slice(1)} ${A.version}`
2964
- })), [L]), X = ve(() => C.includes(":") ? C.split(":")[0] : C, [C]);
2965
- Oe(() => {
2964
+ })), [O]), X = Ee(() => I.includes(":") ? I.split(":")[0] : I, [I]);
2965
+ Se(() => {
2966
2966
  async function A() {
2967
- ce(!0), z(null);
2967
+ ce(!0), W(null);
2968
2968
  try {
2969
2969
  const M = await H.getRuntimes();
2970
- j(M);
2970
+ D(M);
2971
2971
  } catch (M) {
2972
- z(M instanceof Error ? M.message : "Failed to load runtimes");
2972
+ W(M instanceof Error ? M.message : "Failed to load runtimes");
2973
2973
  } finally {
2974
2974
  ce(!1);
2975
2975
  }
2976
2976
  }
2977
2977
  A();
2978
- }, [H]), Oe(() => {
2979
- !T && L.length > 0 && t(x || _e(X));
2980
- }, [L, T, x, X]);
2981
- const G = ue(
2978
+ }, [H]), Se(() => {
2979
+ !R && O.length > 0 && t(S || Fe(X));
2980
+ }, [O, R, S, X]);
2981
+ const G = le(
2982
2982
  (A) => {
2983
2983
  const M = A.target.value, re = M.includes(":") ? M.split(":")[0] : M;
2984
- Y(M);
2985
- const fe = _e(re);
2986
- t(fe), F == null || F(re, fe);
2984
+ B(M);
2985
+ const fe = Fe(re);
2986
+ t(fe), _ == null || _(re, fe);
2987
2987
  },
2988
- [F]
2989
- ), pe = ue(async () => {
2990
- if (!d) {
2991
- v(!0), i(""), o(""), I(null), z(null), B("stdout"), m == null || m();
2988
+ [_]
2989
+ ), pe = le(async () => {
2990
+ if (!p) {
2991
+ E(!0), i(""), o(""), C(null), W(null), z("stdout"), b == null || b();
2992
2992
  try {
2993
- const A = await H.execute(X, T);
2994
- i(A.output), o(A.stderr), I(A.executionTime || null), B(A.stderr ? "stderr" : "stdout"), S == null || S(A);
2993
+ const A = await H.execute(X, R);
2994
+ i(A.output), o(A.stderr), C(A.executionTime || null), z(A.stderr ? "stderr" : "stdout"), y == null || y(A);
2995
2995
  } catch (A) {
2996
2996
  const M = A instanceof Error ? A.message : "Execution failed";
2997
- z(M), S == null || S({
2997
+ W(M), y == null || y({
2998
2998
  success: !1,
2999
2999
  output: "",
3000
3000
  stderr: M,
3001
3001
  code: -1
3002
3002
  });
3003
3003
  } finally {
3004
- v(!1);
3004
+ E(!1);
3005
3005
  }
3006
3006
  }
3007
- }, [d, C, T, H, m, S]), Z = ue(() => {
3008
- i(""), o(""), I(null), z(null);
3009
- }, []), oe = ue(async () => {
3007
+ }, [p, I, R, H, b, y]), q = le(() => {
3008
+ i(""), o(""), C(null), W(null);
3009
+ }, []), oe = le(async () => {
3010
3010
  const A = P === "stdout" ? r : s;
3011
3011
  await navigator.clipboard.writeText(A);
3012
- }, [P, r, s]), ae = ue(() => {
3013
- t(_e(X));
3014
- }, [C]), q = Fe(!1), ie = ue((A) => {
3015
- q.current = !0, document.addEventListener("mousemove", se), document.addEventListener("mouseup", te), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
3016
- }, []), se = ue((A) => {
3017
- if (!q.current) return;
3012
+ }, [P, r, s]), ae = le(() => {
3013
+ t(Fe(X));
3014
+ }, [I]), J = Oe(!1), ie = le((A) => {
3015
+ J.current = !0, document.addEventListener("mousemove", se), document.addEventListener("mouseup", te), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
3016
+ }, []), se = le((A) => {
3017
+ if (!J.current) return;
3018
3018
  const M = document.querySelector(".code-runner-main");
3019
3019
  if (!M) return;
3020
3020
  const re = M.getBoundingClientRect(), fe = (A.clientX - re.left) / re.width * 100;
3021
- D(Math.max(20, Math.min(80, fe)));
3022
- }, []), te = ue(() => {
3023
- q.current = !1, document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", te), document.body.style.cursor = "", document.body.style.userSelect = "";
3021
+ j(Math.max(20, Math.min(80, fe)));
3022
+ }, []), te = le(() => {
3023
+ J.current = !1, document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", te), document.body.style.cursor = "", document.body.style.userSelect = "";
3024
3024
  }, [se]);
3025
- return /* @__PURE__ */ E.jsxs("div", { className: `code-runner code-runner-${O}`, children: [
3026
- /* @__PURE__ */ E.jsxs("div", { className: "code-runner-header", children: [
3027
- /* @__PURE__ */ E.jsx("div", { className: "code-runner-controls", children: c && /* @__PURE__ */ E.jsxs(
3025
+ return /* @__PURE__ */ h.jsxs("div", { className: `code-runner code-runner-${F}`, children: [
3026
+ /* @__PURE__ */ h.jsxs("div", { className: "code-runner-header", children: [
3027
+ /* @__PURE__ */ h.jsx("div", { className: "code-runner-controls", children: c && /* @__PURE__ */ h.jsxs(
3028
3028
  "select",
3029
3029
  {
3030
- value: C,
3030
+ value: I,
3031
3031
  onChange: G,
3032
3032
  className: "language-select",
3033
- disabled: d,
3033
+ disabled: p,
3034
3034
  children: [
3035
- ne && /* @__PURE__ */ E.jsx("option", { value: "", children: "加载中..." }),
3036
- ee.map((A) => /* @__PURE__ */ E.jsx("option", { value: A.value, children: A.label }, A.value))
3035
+ ne && /* @__PURE__ */ h.jsx("option", { value: "", children: "加载中..." }),
3036
+ ee.map((A) => /* @__PURE__ */ h.jsx("option", { value: A.value, children: A.label }, A.value))
3037
3037
  ]
3038
3038
  }
3039
3039
  ) }),
3040
- /* @__PURE__ */ E.jsxs("div", { className: "code-runner-actions", children: [
3041
- /* @__PURE__ */ E.jsxs(
3040
+ /* @__PURE__ */ h.jsxs("div", { className: "code-runner-actions", children: [
3041
+ /* @__PURE__ */ h.jsxs(
3042
3042
  "button",
3043
3043
  {
3044
3044
  className: "btn btn-run",
3045
- disabled: d || ne,
3045
+ disabled: p || ne,
3046
3046
  onClick: pe,
3047
3047
  children: [
3048
- d ? /* @__PURE__ */ E.jsx("span", { className: "spinner" }) : /* @__PURE__ */ E.jsx("span", { className: "run-icon", children: "▶" }),
3049
- d ? "运行中..." : l
3048
+ p ? /* @__PURE__ */ h.jsx("span", { className: "spinner" }) : /* @__PURE__ */ h.jsx("span", { className: "run-icon", children: "▶" }),
3049
+ p ? "运行中..." : l
3050
3050
  ]
3051
3051
  }
3052
3052
  ),
3053
- h && _ && /* @__PURE__ */ E.jsx("button", { className: "btn btn-reset", onClick: ae, children: "重置" }),
3054
- /* @__PURE__ */ E.jsx(
3053
+ m && k && /* @__PURE__ */ h.jsx("button", { className: "btn btn-reset", onClick: ae, children: "重置" }),
3054
+ /* @__PURE__ */ h.jsx(
3055
3055
  "button",
3056
3056
  {
3057
3057
  className: "btn btn-theme",
3058
- onClick: () => R(O === "light" ? "dark" : "light"),
3059
- title: O === "light" ? "Switch to dark mode" : "Switch to light mode",
3060
- children: O === "light" ? "🌙" : "☀️"
3058
+ onClick: () => w(F === "light" ? "dark" : "light"),
3059
+ title: F === "light" ? "Switch to dark mode" : "Switch to light mode",
3060
+ children: F === "light" ? "🌙" : "☀️"
3061
3061
  }
3062
3062
  )
3063
3063
  ] })
3064
3064
  ] }),
3065
- V && /* @__PURE__ */ E.jsx("div", { className: "error-message", children: V }),
3066
- /* @__PURE__ */ E.jsxs("div", { className: "code-runner-main", children: [
3067
- h && /* @__PURE__ */ E.jsxs("div", { className: "editor-panel", style: { width: `${le}%` }, children: [
3068
- /* @__PURE__ */ E.jsxs("div", { className: "panel-header", children: [
3069
- /* @__PURE__ */ E.jsx("span", { className: "panel-title", children: "编辑器" }),
3070
- /* @__PURE__ */ E.jsx("span", { className: "language-badge", children: X })
3065
+ V && /* @__PURE__ */ h.jsx("div", { className: "error-message", children: V }),
3066
+ /* @__PURE__ */ h.jsxs("div", { className: "code-runner-main", children: [
3067
+ m && /* @__PURE__ */ h.jsxs("div", { className: "editor-panel", style: { width: `${ue}%` }, children: [
3068
+ /* @__PURE__ */ h.jsxs("div", { className: "panel-header", children: [
3069
+ /* @__PURE__ */ h.jsx("span", { className: "panel-title", children: "编辑器" }),
3070
+ /* @__PURE__ */ h.jsx("span", { className: "language-badge", children: X })
3071
3071
  ] }),
3072
- /* @__PURE__ */ E.jsx(
3073
- _t,
3072
+ /* @__PURE__ */ h.jsx(
3073
+ Ot,
3074
3074
  {
3075
- value: T,
3075
+ value: R,
3076
3076
  language: X,
3077
- theme: O,
3078
- disabled: !_ || d,
3077
+ theme: F,
3078
+ disabled: !k || p,
3079
3079
  onChange: t
3080
3080
  }
3081
3081
  )
3082
3082
  ] }),
3083
- h && /* @__PURE__ */ E.jsx("div", { className: "resize-handle", onMouseDown: ie, children: /* @__PURE__ */ E.jsx("div", { className: "resize-line" }) }),
3084
- /* @__PURE__ */ E.jsxs(
3083
+ m && /* @__PURE__ */ h.jsx("div", { className: "resize-handle", onMouseDown: ie, children: /* @__PURE__ */ h.jsx("div", { className: "resize-line" }) }),
3084
+ /* @__PURE__ */ h.jsxs(
3085
3085
  "div",
3086
3086
  {
3087
3087
  className: "output-panel",
3088
- style: { width: h ? `${100 - le}%` : "100%" },
3088
+ style: { width: m ? `${100 - ue}%` : "100%" },
3089
3089
  children: [
3090
- /* @__PURE__ */ E.jsxs("div", { className: "panel-header", children: [
3091
- /* @__PURE__ */ E.jsxs("div", { className: "output-tabs", children: [
3092
- /* @__PURE__ */ E.jsx(
3090
+ /* @__PURE__ */ h.jsxs("div", { className: "panel-header", children: [
3091
+ /* @__PURE__ */ h.jsxs("div", { className: "output-tabs", children: [
3092
+ /* @__PURE__ */ h.jsx(
3093
3093
  "button",
3094
3094
  {
3095
3095
  className: `tab ${P === "stdout" ? "active" : ""}`,
3096
- onClick: () => B("stdout"),
3096
+ onClick: () => z("stdout"),
3097
3097
  children: "输出"
3098
3098
  }
3099
3099
  ),
3100
- s && /* @__PURE__ */ E.jsx(
3100
+ s && /* @__PURE__ */ h.jsx(
3101
3101
  "button",
3102
3102
  {
3103
3103
  className: `tab ${P === "stderr" ? "active" : ""}`,
3104
- onClick: () => B("stderr"),
3104
+ onClick: () => z("stderr"),
3105
3105
  children: "错误"
3106
3106
  }
3107
3107
  )
3108
3108
  ] }),
3109
- /* @__PURE__ */ E.jsxs("div", { className: "output-actions", children: [
3110
- p !== null && /* @__PURE__ */ E.jsxs("span", { className: "execution-time", children: [
3111
- p,
3109
+ /* @__PURE__ */ h.jsxs("div", { className: "output-actions", children: [
3110
+ g !== null && /* @__PURE__ */ h.jsxs("span", { className: "execution-time", children: [
3111
+ g,
3112
3112
  "ms"
3113
3113
  ] }),
3114
- /* @__PURE__ */ E.jsx("button", { className: "btn-icon", onClick: oe, title: "复制", children: /* @__PURE__ */ E.jsxs(
3114
+ /* @__PURE__ */ h.jsx("button", { className: "btn-icon", onClick: oe, title: "复制", children: /* @__PURE__ */ h.jsxs(
3115
3115
  "svg",
3116
3116
  {
3117
3117
  width: "14",
@@ -3121,12 +3121,12 @@ const Lt = ({
3121
3121
  stroke: "currentColor",
3122
3122
  strokeWidth: "2",
3123
3123
  children: [
3124
- /* @__PURE__ */ E.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
3125
- /* @__PURE__ */ E.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
3124
+ /* @__PURE__ */ h.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
3125
+ /* @__PURE__ */ h.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
3126
3126
  ]
3127
3127
  }
3128
3128
  ) }),
3129
- /* @__PURE__ */ E.jsx("button", { className: "btn-icon", onClick: Z, title: "清除", children: /* @__PURE__ */ E.jsxs(
3129
+ /* @__PURE__ */ h.jsx("button", { className: "btn-icon", onClick: q, title: "清除", children: /* @__PURE__ */ h.jsxs(
3130
3130
  "svg",
3131
3131
  {
3132
3132
  width: "14",
@@ -3136,19 +3136,19 @@ const Lt = ({
3136
3136
  stroke: "currentColor",
3137
3137
  strokeWidth: "2",
3138
3138
  children: [
3139
- /* @__PURE__ */ E.jsx("polyline", { points: "3 6 5 6 21 6" }),
3140
- /* @__PURE__ */ E.jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
3139
+ /* @__PURE__ */ h.jsx("polyline", { points: "3 6 5 6 21 6" }),
3140
+ /* @__PURE__ */ h.jsx("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
3141
3141
  ]
3142
3142
  }
3143
3143
  ) })
3144
3144
  ] })
3145
3145
  ] }),
3146
- /* @__PURE__ */ E.jsx("div", { className: "output-content", children: /* @__PURE__ */ E.jsx("pre", { children: P === "stdout" ? r || '点击"运行"执行代码' : s }) })
3146
+ /* @__PURE__ */ h.jsx("div", { className: "output-content", children: /* @__PURE__ */ h.jsx("pre", { children: P === "stdout" ? r || '点击"运行"执行代码' : s }) })
3147
3147
  ]
3148
3148
  }
3149
3149
  )
3150
3150
  ] }),
3151
- /* @__PURE__ */ E.jsx("style", { children: `
3151
+ /* @__PURE__ */ h.jsx("style", { children: `
3152
3152
  .code-runner {
3153
3153
  display: flex;
3154
3154
  flex-direction: column;
@@ -3365,8 +3365,148 @@ const Lt = ({
3365
3365
  @keyframes spin { to { transform: rotate(360deg); } }
3366
3366
  ` })
3367
3367
  ] });
3368
- };
3368
+ }, Dt = xt(
3369
+ ({
3370
+ open: d,
3371
+ defaultOpen: f = !1,
3372
+ title: n = "代码执行器",
3373
+ width: c = 800,
3374
+ onClose: m,
3375
+ footer: k,
3376
+ theme: S = "light",
3377
+ ...l
3378
+ }, b) => {
3379
+ const [y, _] = Z(f), O = d !== void 0, D = O ? d : y;
3380
+ Se(() => {
3381
+ O && d !== y && _(d);
3382
+ }, [d, O]);
3383
+ const I = le(() => {
3384
+ O || _(!1), m == null || m();
3385
+ }, [O, m]), B = (w) => {
3386
+ w.target === w.currentTarget && I();
3387
+ };
3388
+ St(b, () => ({
3389
+ close: I
3390
+ }));
3391
+ const F = typeof c == "number" ? `${c}px` : c;
3392
+ return D ? /* @__PURE__ */ h.jsxs("div", { className: "dialog-overlay", onClick: B, children: [
3393
+ /* @__PURE__ */ h.jsxs("div", { className: "dialog-container", style: { width: F }, children: [
3394
+ /* @__PURE__ */ h.jsxs("div", { className: "dialog-header", children: [
3395
+ /* @__PURE__ */ h.jsx("h3", { className: "dialog-title", children: n }),
3396
+ /* @__PURE__ */ h.jsx("button", { className: "dialog-close", onClick: I, children: /* @__PURE__ */ h.jsxs(
3397
+ "svg",
3398
+ {
3399
+ width: "16",
3400
+ height: "16",
3401
+ viewBox: "0 0 24 24",
3402
+ fill: "none",
3403
+ stroke: "currentColor",
3404
+ strokeWidth: "2",
3405
+ children: [
3406
+ /* @__PURE__ */ h.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3407
+ /* @__PURE__ */ h.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3408
+ ]
3409
+ }
3410
+ ) })
3411
+ ] }),
3412
+ /* @__PURE__ */ h.jsx("div", { className: "dialog-body", children: /* @__PURE__ */ h.jsx(Pt, { theme: S, ...l }) }),
3413
+ k && /* @__PURE__ */ h.jsx("div", { className: "dialog-footer", children: k })
3414
+ ] }),
3415
+ /* @__PURE__ */ h.jsx("style", { children: `
3416
+ .dialog-overlay {
3417
+ position: fixed;
3418
+ top: 0;
3419
+ left: 0;
3420
+ right: 0;
3421
+ bottom: 0;
3422
+ background: rgba(0, 0, 0, 0.5);
3423
+ display: flex;
3424
+ align-items: center;
3425
+ justify-content: center;
3426
+ z-index: 9999;
3427
+ animation: dialog-fade-in 0.2s ease;
3428
+ }
3429
+
3430
+ .dialog-container {
3431
+ background: #fff;
3432
+ border-radius: 12px;
3433
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
3434
+ max-width: 90vw;
3435
+ max-height: 90vh;
3436
+ display: flex;
3437
+ flex-direction: column;
3438
+ overflow: hidden;
3439
+ animation: dialog-scale-in 0.2s ease;
3440
+ }
3441
+
3442
+ .dialog-header {
3443
+ display: flex;
3444
+ align-items: center;
3445
+ justify-content: space-between;
3446
+ padding: 16px 20px;
3447
+ border-bottom: 1px solid #e0e0e0;
3448
+ }
3449
+
3450
+ .dialog-title {
3451
+ margin: 0;
3452
+ font-size: 16px;
3453
+ font-weight: 600;
3454
+ color: #333;
3455
+ }
3456
+
3457
+ .dialog-close {
3458
+ background: none;
3459
+ border: none;
3460
+ cursor: pointer;
3461
+ padding: 4px;
3462
+ border-radius: 4px;
3463
+ color: #666;
3464
+ display: flex;
3465
+ align-items: center;
3466
+ justify-content: center;
3467
+ transition: all 0.2s;
3468
+ }
3469
+
3470
+ .dialog-close:hover {
3471
+ background: #f0f0f0;
3472
+ color: #333;
3473
+ }
3474
+
3475
+ .dialog-body {
3476
+ flex: 1;
3477
+ overflow: auto;
3478
+ padding: 0;
3479
+ }
3480
+
3481
+ .dialog-body .code-runner {
3482
+ border: none;
3483
+ border-radius: 0;
3484
+ }
3485
+
3486
+ .dialog-footer {
3487
+ padding: 12px 20px;
3488
+ border-top: 1px solid #e0e0e0;
3489
+ display: flex;
3490
+ justify-content: flex-end;
3491
+ gap: 12px;
3492
+ }
3493
+
3494
+ @keyframes dialog-fade-in {
3495
+ from { opacity: 0; }
3496
+ to { opacity: 1; }
3497
+ }
3498
+
3499
+ @keyframes dialog-scale-in {
3500
+ from { transform: scale(0.95); }
3501
+ to { transform: scale(1); }
3502
+ }
3503
+ ` })
3504
+ ] }) : null;
3505
+ }
3506
+ );
3507
+ Dt.displayName = "CodeRunnerDialog";
3369
3508
  export {
3370
- Lt as CodeRunner,
3371
- Lt as default
3509
+ Pt as CodeRunner,
3510
+ Dt as CodeRunnerDialog,
3511
+ Pt as default
3372
3512
  };