@pie-qti/item-player 1.0.0-beta.4 → 1.0.0-beta.6
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/README.md +34 -6
- package/dist/catalog/applyGlossaryTriggers.js +14 -2
- package/dist/catalog/applyGlossaryTriggers.js.map +1 -1
- package/dist/catalog/catalogExtractor.js +2 -4
- package/dist/catalog/catalogExtractor.js.map +1 -1
- package/dist/catalog/sessionCatalog.d.ts +46 -0
- package/dist/catalog/sessionCatalog.js +87 -0
- package/dist/catalog/sessionCatalog.js.map +1 -0
- package/dist/components/utils/endAttempt.d.ts +16 -0
- package/dist/components/utils/endAttempt.js +28 -0
- package/dist/components/utils/endAttempt.js.map +1 -0
- package/dist/components/utils/focus.d.ts +19 -0
- package/dist/components/utils/focus.js +67 -0
- package/dist/components/utils/focus.js.map +1 -0
- package/dist/components/utils/itemBodyRenderer.d.ts +44 -0
- package/dist/components/utils/itemBodyRenderer.js +177 -0
- package/dist/components/utils/itemBodyRenderer.js.map +1 -0
- package/dist/components/utils/sentenceContext.d.ts +6 -0
- package/dist/components/utils/sentenceContext.js +16 -0
- package/dist/components/utils/sentenceContext.js.map +1 -0
- package/dist/core/AssessmentItemDefinition.d.ts +20 -1
- package/dist/core/AssessmentItemDefinition.js +12 -31
- package/dist/core/AssessmentItemDefinition.js.map +1 -1
- package/dist/core/ComponentRegistry.d.ts +92 -0
- package/dist/core/ComponentRegistry.js +7 -1
- package/dist/core/ComponentRegistry.js.map +1 -1
- package/dist/core/ItemSession.d.ts +18 -1
- package/dist/core/ItemSession.js +79 -41
- package/dist/core/ItemSession.js.map +1 -1
- package/dist/core/Player.d.ts +118 -141
- package/dist/core/Player.js +390 -1233
- package/dist/core/Player.js.map +1 -1
- package/dist/core/compliance.d.ts +72 -0
- package/dist/core/compliance.js +147 -0
- package/dist/core/compliance.js.map +1 -0
- package/dist/core/declarations/declarationBuilder.d.ts +29 -0
- package/dist/core/declarations/declarationBuilder.js +284 -0
- package/dist/core/declarations/declarationBuilder.js.map +1 -0
- package/dist/core/declarations/declarationValues.d.ts +11 -0
- package/dist/core/declarations/declarationValues.js +168 -0
- package/dist/core/declarations/declarationValues.js.map +1 -0
- package/dist/core/matchGroups.d.ts +36 -0
- package/dist/core/matchGroups.js +100 -0
- package/dist/core/matchGroups.js.map +1 -0
- package/dist/core/nameMappers.d.ts +35 -0
- package/dist/core/nameMappers.js +47 -0
- package/dist/core/nameMappers.js.map +1 -0
- package/dist/core/parsingLimits.d.ts +4 -0
- package/dist/core/parsingLimits.js +5 -2
- package/dist/core/parsingLimits.js.map +1 -1
- package/dist/core/processing/responseProcessing.d.ts +88 -0
- package/dist/core/processing/responseProcessing.js +317 -0
- package/dist/core/processing/responseProcessing.js.map +1 -0
- package/dist/core/processing/responseValidation.d.ts +55 -0
- package/dist/core/processing/responseValidation.js +335 -0
- package/dist/core/processing/responseValidation.js.map +1 -0
- package/dist/core/rendering/contentPass.d.ts +31 -0
- package/dist/core/rendering/contentPass.js +152 -0
- package/dist/core/rendering/contentPass.js.map +1 -0
- package/dist/core/rendering/htmlRender.d.ts +21 -0
- package/dist/core/rendering/htmlRender.js +56 -0
- package/dist/core/rendering/htmlRender.js.map +1 -0
- package/dist/core/responseProcessingTemplates.d.ts +23 -0
- package/dist/core/responseProcessingTemplates.js +45 -0
- package/dist/core/responseProcessingTemplates.js.map +1 -0
- package/dist/core/rolePolicy.d.ts +5 -0
- package/dist/core/rolePolicy.js +21 -0
- package/dist/core/rolePolicy.js.map +1 -1
- package/dist/core/sanitizer.js +8 -14
- package/dist/core/sanitizer.js.map +1 -1
- package/dist/core/serialization/sessionState.d.ts +56 -0
- package/dist/core/serialization/sessionState.js +139 -0
- package/dist/core/serialization/sessionState.js.map +1 -0
- package/dist/core/serialization/valueForms.d.ts +32 -0
- package/dist/core/serialization/valueForms.js +112 -0
- package/dist/core/serialization/valueForms.js.map +1 -0
- package/dist/document/AssessmentItemDocument.d.ts +27 -1
- package/dist/document/AssessmentItemDocument.js +67 -31
- package/dist/document/AssessmentItemDocument.js.map +1 -1
- package/dist/element-class-BUFpUrJP.js +3792 -0
- package/dist/element-class-BUFpUrJP.js.map +1 -0
- package/dist/element-class.d.ts +34 -1
- package/dist/element-class.js +1 -1
- package/dist/element.js +2 -3
- package/dist/extraction/ExtractionRegistry.js +6 -12
- package/dist/extraction/ExtractionRegistry.js.map +1 -1
- package/dist/extraction/createContext.d.ts +2 -2
- package/dist/extraction/createContext.js.map +1 -1
- package/dist/extraction/index.d.ts +2 -2
- package/dist/extraction/index.js +1 -1
- package/dist/extraction/index.js.map +1 -1
- package/dist/extraction/interactionCoverage.d.ts +31 -0
- package/dist/extraction/interactionCoverage.js +40 -0
- package/dist/extraction/interactionCoverage.js.map +1 -0
- package/dist/extraction/interactionExtractionPipeline.js +5 -10
- package/dist/extraction/interactionExtractionPipeline.js.map +1 -1
- package/dist/extraction/interactionSecurity.js +1 -28
- package/dist/extraction/interactionSecurity.js.map +1 -1
- package/dist/extraction/mergeDeliveryFields.d.ts +13 -0
- package/dist/extraction/mergeDeliveryFields.js +17 -0
- package/dist/extraction/mergeDeliveryFields.js.map +1 -0
- package/dist/extraction/responseIdentifier.d.ts +19 -0
- package/dist/extraction/responseIdentifier.js +29 -0
- package/dist/extraction/responseIdentifier.js.map +1 -0
- package/dist/extraction/types.d.ts +11 -18
- package/dist/extraction/types.js +0 -12
- package/dist/extraction/types.js.map +1 -1
- package/dist/extraction/utils.d.ts +14 -0
- package/dist/extraction/utils.js +35 -5
- package/dist/extraction/utils.js.map +1 -1
- package/dist/index.d.ts +16 -10
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -1
- package/dist/interactions/associate/extractor.d.ts +1 -0
- package/dist/interactions/associate/extractor.js +10 -12
- package/dist/interactions/associate/extractor.js.map +1 -1
- package/dist/interactions/choice/extractor.js +6 -13
- package/dist/interactions/choice/extractor.js.map +1 -1
- package/dist/interactions/drawing/extractor.d.ts +6 -0
- package/dist/interactions/drawing/extractor.js +30 -9
- package/dist/interactions/drawing/extractor.js.map +1 -1
- package/dist/interactions/end-attempt/extractor.js +2 -1
- package/dist/interactions/end-attempt/extractor.js.map +1 -1
- package/dist/interactions/extended-text/extractor.d.ts +6 -1
- package/dist/interactions/extended-text/extractor.js +10 -5
- package/dist/interactions/extended-text/extractor.js.map +1 -1
- package/dist/interactions/extended-text/response.js +18 -18
- package/dist/interactions/extended-text/response.js.map +1 -1
- package/dist/interactions/gap-match/extractor.d.ts +40 -2
- package/dist/interactions/gap-match/extractor.js +197 -39
- package/dist/interactions/gap-match/extractor.js.map +1 -1
- package/dist/interactions/graphic-associate/extractor.d.ts +11 -0
- package/dist/interactions/graphic-associate/extractor.js +35 -24
- package/dist/interactions/graphic-associate/extractor.js.map +1 -1
- package/dist/interactions/graphic-gap-match/extractor.d.ts +21 -0
- package/dist/interactions/graphic-gap-match/extractor.js +79 -43
- package/dist/interactions/graphic-gap-match/extractor.js.map +1 -1
- package/dist/interactions/graphic-order/extractor.d.ts +15 -0
- package/dist/interactions/graphic-order/extractor.js +39 -24
- package/dist/interactions/graphic-order/extractor.js.map +1 -1
- package/dist/interactions/hotspot/extractor.d.ts +6 -0
- package/dist/interactions/hotspot/extractor.js +31 -16
- package/dist/interactions/hotspot/extractor.js.map +1 -1
- package/dist/interactions/hottext/extractor.js +2 -12
- package/dist/interactions/hottext/extractor.js.map +1 -1
- package/dist/interactions/inline/accessibleName.d.ts +29 -0
- package/dist/interactions/inline/accessibleName.js +35 -0
- package/dist/interactions/inline/accessibleName.js.map +1 -0
- package/dist/interactions/inline/render-plan.d.ts +5 -14
- package/dist/interactions/inline/render-plan.js +5 -56
- package/dist/interactions/inline/render-plan.js.map +1 -1
- package/dist/interactions/inline-choice/extractor.d.ts +4 -0
- package/dist/interactions/inline-choice/extractor.js +13 -12
- package/dist/interactions/inline-choice/extractor.js.map +1 -1
- package/dist/interactions/match/extractor.d.ts +2 -0
- package/dist/interactions/match/extractor.js +14 -28
- package/dist/interactions/match/extractor.js.map +1 -1
- package/dist/interactions/media/extractor.d.ts +5 -11
- package/dist/interactions/media/extractor.js +100 -36
- package/dist/interactions/media/extractor.js.map +1 -1
- package/dist/interactions/modules.js +8 -2
- package/dist/interactions/modules.js.map +1 -1
- package/dist/interactions/order/extractor.d.ts +2 -0
- package/dist/interactions/order/extractor.js +8 -12
- package/dist/interactions/order/extractor.js.map +1 -1
- package/dist/interactions/order/limits.d.ts +29 -0
- package/dist/interactions/order/limits.js +28 -0
- package/dist/interactions/order/limits.js.map +1 -0
- package/dist/interactions/portable-custom/extractor.js +18 -14
- package/dist/interactions/portable-custom/extractor.js.map +1 -1
- package/dist/interactions/position-object/extractor.d.ts +18 -1
- package/dist/interactions/position-object/extractor.js +81 -22
- package/dist/interactions/position-object/extractor.js.map +1 -1
- package/dist/interactions/select-point/extractor.d.ts +6 -0
- package/dist/interactions/select-point/extractor.js +31 -19
- package/dist/interactions/select-point/extractor.js.map +1 -1
- package/dist/interactions/shared/imageAlt.d.ts +54 -0
- package/dist/interactions/shared/imageAlt.js +84 -0
- package/dist/interactions/shared/imageAlt.js.map +1 -0
- package/dist/interactions/shared/interactionImage.d.ts +32 -0
- package/dist/interactions/shared/interactionImage.js +39 -0
- package/dist/interactions/shared/interactionImage.js.map +1 -0
- package/dist/interactions/shared/specDefaults.d.ts +20 -0
- package/dist/interactions/shared/specDefaults.js +25 -0
- package/dist/interactions/shared/specDefaults.js.map +1 -0
- package/dist/interactions/shared/types.d.ts +212 -40
- package/dist/interactions/shared/types.js.map +1 -1
- package/dist/interactions/text-entry/extractor.d.ts +9 -0
- package/dist/interactions/text-entry/extractor.js +9 -0
- package/dist/interactions/text-entry/extractor.js.map +1 -1
- package/dist/interactions/text-entry/inlineInputStyle.d.ts +10 -0
- package/dist/interactions/text-entry/inlineInputStyle.js +12 -0
- package/dist/interactions/text-entry/inlineInputStyle.js.map +1 -0
- package/dist/interactions/text-entry/inputMode.d.ts +35 -0
- package/dist/interactions/text-entry/inputMode.js +134 -0
- package/dist/interactions/text-entry/inputMode.js.map +1 -0
- package/dist/interactions/text-entry/response.d.ts +15 -0
- package/dist/interactions/text-entry/response.js +25 -0
- package/dist/interactions/text-entry/response.js.map +1 -0
- package/dist/interactions/upload/extractor.js +2 -2
- package/dist/interactions/upload/extractor.js.map +1 -1
- package/dist/pci/PciHost.d.ts +1 -1
- package/dist/pci/PciHost.js +11 -11
- package/dist/pci/PciHost.js.map +1 -1
- package/dist/pci/index.d.ts +1 -0
- package/dist/pci/index.js.map +1 -1
- package/dist/pci/modulePaths.d.ts +16 -0
- package/dist/pci/modulePaths.js +33 -0
- package/dist/pci/modulePaths.js.map +1 -0
- package/dist/pci/pageRealmSession.js +3 -15
- package/dist/pci/pageRealmSession.js.map +1 -1
- package/dist/pci/qtiVariableJson.d.ts +46 -3
- package/dist/pci/qtiVariableJson.js +247 -53
- package/dist/pci/qtiVariableJson.js.map +1 -1
- package/dist/pci/sandbox/SandboxedPciSession.d.ts +3 -0
- package/dist/pci/sandbox/SandboxedPciSession.js +15 -14
- package/dist/pci/sandbox/SandboxedPciSession.js.map +1 -1
- package/dist/pci/sandbox/iframeConnector.d.ts +18 -4
- package/dist/pci/sandbox/iframeConnector.js +35 -6
- package/dist/pci/sandbox/iframeConnector.js.map +1 -1
- package/dist/pci/sandbox/protocol.d.ts +14 -0
- package/dist/pci/sandbox/protocol.js.map +1 -1
- package/dist/pci/sessionHosts.d.ts +47 -0
- package/dist/pci/sessionHosts.js +66 -0
- package/dist/pci/sessionHosts.js.map +1 -0
- package/dist/pci/types.d.ts +9 -3
- package/dist/pci/types.js.map +1 -1
- package/dist/pnp/applyPnp.d.ts +20 -3
- package/dist/pnp/applyPnp.js +84 -9
- package/dist/pnp/applyPnp.js.map +1 -1
- package/dist/pnp/parsePnpXml.js +2 -0
- package/dist/pnp/parsePnpXml.js.map +1 -1
- package/dist/pnp/types.d.ts +16 -8
- package/dist/pnp/types.js.map +1 -1
- package/dist/presentation/feedbackAnnouncement.d.ts +56 -0
- package/dist/presentation/feedbackAnnouncement.js +150 -0
- package/dist/presentation/feedbackAnnouncement.js.map +1 -0
- package/dist/presentation/interactionSlots.d.ts +31 -0
- package/dist/presentation/interactionSlots.js +101 -0
- package/dist/presentation/interactionSlots.js.map +1 -0
- package/dist/presentation/itemPresentationPlan.d.ts +69 -6
- package/dist/presentation/itemPresentationPlan.js +93 -81
- package/dist/presentation/itemPresentationPlan.js.map +1 -1
- package/dist/{components/utils → presentation}/stimulusRender.js +3 -12
- package/dist/presentation/stimulusRender.js.map +1 -0
- package/dist/presentation/stylesheetRender.js.map +1 -0
- package/dist/security/escapeHtml.d.ts +15 -0
- package/dist/security/escapeHtml.js +22 -0
- package/dist/security/escapeHtml.js.map +1 -0
- package/dist/security/index.d.ts +1 -0
- package/dist/security/index.js +1 -0
- package/dist/security/index.js.map +1 -1
- package/dist/server.d.ts +8 -1
- package/dist/server.js.map +1 -1
- package/dist/session-inputs.d.ts +108 -0
- package/dist/session-inputs.js +130 -0
- package/dist/session-inputs.js.map +1 -0
- package/dist/types/index.d.ts +67 -35
- package/dist/types/index.js.map +1 -1
- package/dist/utils/cloneFreeze.d.ts +52 -0
- package/dist/utils/cloneFreeze.js +113 -0
- package/dist/utils/cloneFreeze.js.map +1 -0
- package/dist/utils/htmlAttributes.d.ts +13 -0
- package/dist/utils/htmlAttributes.js +22 -0
- package/dist/utils/htmlAttributes.js.map +1 -0
- package/dist/web-components/QTIInteractionElement.d.ts +0 -29
- package/dist/web-components/QTIInteractionElement.js +0 -32
- package/dist/web-components/QTIInteractionElement.js.map +1 -1
- package/dist/web-components/index.d.ts +1 -2
- package/dist/web-components/index.js +2 -3
- package/dist/web-components/index.js.map +1 -1
- package/package.json +20 -19
- package/dist/components/utils/stimulusRender.js.map +0 -1
- package/dist/components/utils/stylesheetRender.js.map +0 -1
- package/dist/core/constants.d.ts +0 -65
- package/dist/core/constants.js +0 -74
- package/dist/core/constants.js.map +0 -1
- package/dist/element-class-DdpiTalY.js +0 -9226
- package/dist/element-class-DdpiTalY.js.map +0 -1
- package/dist/extensions/MathLiveEditor.d.ts +0 -31
- package/dist/extensions/MathLiveEditor.js +0 -248
- package/dist/extensions/MathLiveEditor.js.map +0 -1
- package/dist/utils/PerformanceMonitor.d.ts +0 -169
- package/dist/utils/PerformanceMonitor.js +0 -243
- package/dist/utils/PerformanceMonitor.js.map +0 -1
- package/dist/utils/responseUtils.d.ts +0 -15
- package/dist/utils/responseUtils.js +0 -46
- package/dist/utils/responseUtils.js.map +0 -1
- package/dist/web-components/QTIInteractionBase.d.ts +0 -119
- package/dist/web-components/QTIInteractionBase.js +0 -244
- package/dist/web-components/QTIInteractionBase.js.map +0 -1
- /package/dist/{components/utils → presentation}/stimulusRender.d.ts +0 -0
- /package/dist/{components/utils → presentation}/stylesheetRender.d.ts +0 -0
- /package/dist/{components/utils → presentation}/stylesheetRender.js +0 -0
|
@@ -0,0 +1,3792 @@
|
|
|
1
|
+
import { assignProps as e, createSvelteMountController as t, warnOnce as n } from "@pie-qti/qti-common";
|
|
2
|
+
import { createAssessmentItemDefinition as r } from "./core/AssessmentItemDefinition.js";
|
|
3
|
+
import { UnknownResponseIdentifierError as i, getItemSessionBinding as a } from "./core/ItemSession.js";
|
|
4
|
+
import { SESSION_INPUTS as o } from "./session-inputs.js";
|
|
5
|
+
import { contentLanguageAttributes as s, interfaceLocaleAttributes as c, joinSentences as l, translate as u } from "@pie-qti/i18n";
|
|
6
|
+
import { INTERACTION_SLOT_ATTRIBUTE as d } from "./presentation/interactionSlots.js";
|
|
7
|
+
import { typesetAction as f } from "./components/actions/typesetAction.js";
|
|
8
|
+
import { glossaryAction as p } from "./catalog/glossaryAction.js";
|
|
9
|
+
import { isWithinPnpSurface as m } from "./pnp/applyPnp.js";
|
|
10
|
+
import { textEntryStringIdentifier as h } from "./interactions/text-entry/response.js";
|
|
11
|
+
import { plainValueEquals as g } from "./core/serialization/valueForms.js";
|
|
12
|
+
import { UNSLOTTED_CLASS as _, createItemBodyRenderer as v } from "./components/utils/itemBodyRenderer.js";
|
|
13
|
+
import { sentenceContextId as y } from "./components/utils/sentenceContext.js";
|
|
14
|
+
import { isCandidateAttemptFeedback as b, nextFeedbackAnnouncement as ee } from "./presentation/feedbackAnnouncement.js";
|
|
15
|
+
import { inlineInteractionLabel as x, textEntryPatternMessage as S } from "./interactions/inline/accessibleName.js";
|
|
16
|
+
import { xsdPatternSource as te } from "@pie-qti/qti-processing";
|
|
17
|
+
import { textEntryInputStyle as ne } from "./interactions/text-entry/inlineInputStyle.js";
|
|
18
|
+
import { textEntryInputMode as re } from "./interactions/text-entry/inputMode.js";
|
|
19
|
+
import { closeModalDialog as ie, deepActiveElement as ae, focusContainer as oe, openModalDialog as se, restoreFocus as C } from "./components/utils/focus.js";
|
|
20
|
+
import { endAttemptRequest as ce } from "./components/utils/endAttempt.js";
|
|
21
|
+
import { parseQtiRole as le } from "./core/rolePolicy.js";
|
|
22
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/shared/utils.js
|
|
23
|
+
var ue = Array.isArray, de = Array.prototype.indexOf, fe = Array.prototype.includes, pe = Array.from, me = Object.defineProperty, he = Object.getOwnPropertyDescriptor, ge = Object.getOwnPropertyDescriptors, _e = Object.prototype, ve = Array.prototype, ye = Object.getPrototypeOf, be = Object.isExtensible, xe = () => {};
|
|
24
|
+
function Se(e) {
|
|
25
|
+
for (var t = 0; t < e.length; t++) e[t]();
|
|
26
|
+
}
|
|
27
|
+
function Ce() {
|
|
28
|
+
var e, t;
|
|
29
|
+
return {
|
|
30
|
+
promise: new Promise((n, r) => {
|
|
31
|
+
e = n, t = r;
|
|
32
|
+
}),
|
|
33
|
+
resolve: e,
|
|
34
|
+
reject: t
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
|
|
38
|
+
function we(e) {
|
|
39
|
+
"@babel/helpers - typeof";
|
|
40
|
+
return we = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
41
|
+
return typeof e;
|
|
42
|
+
} : function(e) {
|
|
43
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
44
|
+
}, we(e);
|
|
45
|
+
}
|
|
46
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
|
|
47
|
+
function Te(e, t) {
|
|
48
|
+
if (we(e) != "object" || !e) return e;
|
|
49
|
+
var n = e[Symbol.toPrimitive];
|
|
50
|
+
if (n !== void 0) {
|
|
51
|
+
var r = n.call(e, t || "default");
|
|
52
|
+
if (we(r) != "object") return r;
|
|
53
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
54
|
+
}
|
|
55
|
+
return (t === "string" ? String : Number)(e);
|
|
56
|
+
}
|
|
57
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
|
|
58
|
+
function Ee(e) {
|
|
59
|
+
var t = Te(e, "string");
|
|
60
|
+
return we(t) == "symbol" ? t : t + "";
|
|
61
|
+
}
|
|
62
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
|
|
63
|
+
function w(e, t, n) {
|
|
64
|
+
return (t = Ee(t)) in e ? Object.defineProperty(e, t, {
|
|
65
|
+
value: n,
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
configurable: !0,
|
|
68
|
+
writable: !0
|
|
69
|
+
}) : e[t] = n, e;
|
|
70
|
+
}
|
|
71
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/constants.js
|
|
72
|
+
var De = 1 << 24, Oe = 1024, ke = 2048, Ae = 4096, je = 8192, Me = 16384, Ne = 32768, Pe = 1 << 25, Fe = 65536, Ie = 1 << 19, Le = 1 << 20, Re = 1 << 25, ze = 1 << 21, Be = 1 << 22, Ve = 1 << 23, He = Symbol("$state"), Ue = Symbol("component"), We = Symbol("legacy props"), Ge = Symbol(""), Ke = Symbol("attributes"), qe = Symbol("class"), Je = Symbol("style"), Ye = Symbol("text"), Xe = Symbol("form reset"), Ze = new class extends Error {
|
|
73
|
+
constructor(...e) {
|
|
74
|
+
super(...e), w(this, "name", "StaleReactionError"), w(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
75
|
+
}
|
|
76
|
+
}(), Qe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml"), $e = {}, T = Symbol("uninitialized"), et = "http://www.w3.org/2000/svg", tt = "http://www.w3.org/1998/Math/MathML";
|
|
77
|
+
function nt() {
|
|
78
|
+
console.warn("https://svelte.dev/e/derived_inert");
|
|
79
|
+
}
|
|
80
|
+
function rt(e) {
|
|
81
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
82
|
+
}
|
|
83
|
+
function it() {
|
|
84
|
+
console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
85
|
+
}
|
|
86
|
+
function at() {
|
|
87
|
+
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
88
|
+
}
|
|
89
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
90
|
+
var E = !1;
|
|
91
|
+
function ot(e) {
|
|
92
|
+
E = e;
|
|
93
|
+
}
|
|
94
|
+
var D;
|
|
95
|
+
function O(e) {
|
|
96
|
+
if (e === null) throw rt(), $e;
|
|
97
|
+
return D = e;
|
|
98
|
+
}
|
|
99
|
+
function st() {
|
|
100
|
+
return O(/* @__PURE__ */ lr(D));
|
|
101
|
+
}
|
|
102
|
+
function ct(e) {
|
|
103
|
+
if (E) {
|
|
104
|
+
if (/* @__PURE__ */ lr(D) !== null) throw rt(), $e;
|
|
105
|
+
D = e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function lt(e = 1) {
|
|
109
|
+
if (E) {
|
|
110
|
+
for (var t = e, n = D; t--;) n = /* @__PURE__ */ lr(n);
|
|
111
|
+
D = n;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function ut(e = !0) {
|
|
115
|
+
for (var t = 0, n = D;;) {
|
|
116
|
+
if (n.nodeType === 8) {
|
|
117
|
+
var r = n.data;
|
|
118
|
+
if (r === "]") {
|
|
119
|
+
if (t === 0) return n;
|
|
120
|
+
--t;
|
|
121
|
+
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
122
|
+
}
|
|
123
|
+
var i = /* @__PURE__ */ lr(n);
|
|
124
|
+
e && n.remove(), n = i;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function dt(e) {
|
|
128
|
+
if (!e || e.nodeType !== 8) throw rt(), $e;
|
|
129
|
+
return e.data;
|
|
130
|
+
}
|
|
131
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
132
|
+
function ft(e) {
|
|
133
|
+
return e === this.v;
|
|
134
|
+
}
|
|
135
|
+
function pt(e, t) {
|
|
136
|
+
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
137
|
+
}
|
|
138
|
+
function mt(e) {
|
|
139
|
+
return !pt(e, this.v);
|
|
140
|
+
}
|
|
141
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/errors.js
|
|
142
|
+
function ht() {
|
|
143
|
+
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
144
|
+
}
|
|
145
|
+
function gt(e, t, n) {
|
|
146
|
+
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
147
|
+
}
|
|
148
|
+
function _t(e) {
|
|
149
|
+
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
150
|
+
}
|
|
151
|
+
function vt() {
|
|
152
|
+
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
153
|
+
}
|
|
154
|
+
function yt(e) {
|
|
155
|
+
throw Error("https://svelte.dev/e/effect_orphan");
|
|
156
|
+
}
|
|
157
|
+
function bt() {
|
|
158
|
+
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
159
|
+
}
|
|
160
|
+
function xt(e) {
|
|
161
|
+
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
162
|
+
}
|
|
163
|
+
function St() {
|
|
164
|
+
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
165
|
+
}
|
|
166
|
+
function Ct() {
|
|
167
|
+
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
168
|
+
}
|
|
169
|
+
function wt() {
|
|
170
|
+
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
171
|
+
}
|
|
172
|
+
function Tt() {
|
|
173
|
+
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
174
|
+
}
|
|
175
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/context.js
|
|
176
|
+
var Et = null;
|
|
177
|
+
function Dt(e) {
|
|
178
|
+
Et = e;
|
|
179
|
+
}
|
|
180
|
+
function Ot(e, t = !1, n) {
|
|
181
|
+
Et = {
|
|
182
|
+
p: Et,
|
|
183
|
+
i: !1,
|
|
184
|
+
c: null,
|
|
185
|
+
e: null,
|
|
186
|
+
s: e,
|
|
187
|
+
x: null,
|
|
188
|
+
r: U,
|
|
189
|
+
l: null
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function kt(e) {
|
|
193
|
+
var t = Et, n = t.e;
|
|
194
|
+
if (n !== null) {
|
|
195
|
+
t.e = null;
|
|
196
|
+
for (var r of n) Er(r);
|
|
197
|
+
}
|
|
198
|
+
return e !== void 0 && (t.x = e), t.i = !0, Et = t.p, At(e);
|
|
199
|
+
}
|
|
200
|
+
function At(e = {}) {
|
|
201
|
+
return me(e, Ue, { value: !0 }), e;
|
|
202
|
+
}
|
|
203
|
+
function jt() {
|
|
204
|
+
return !0;
|
|
205
|
+
}
|
|
206
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/task.js
|
|
207
|
+
var Mt = [];
|
|
208
|
+
function Nt() {
|
|
209
|
+
var e = Mt;
|
|
210
|
+
Mt = [], Se(e);
|
|
211
|
+
}
|
|
212
|
+
function Pt(e) {
|
|
213
|
+
if (Mt.length === 0 && !ln) {
|
|
214
|
+
var t = Mt;
|
|
215
|
+
queueMicrotask(() => {
|
|
216
|
+
t === Mt && Nt();
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
Mt.push(e);
|
|
220
|
+
}
|
|
221
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
222
|
+
var Ft = ~(ke | Ae | Oe);
|
|
223
|
+
function k(e, t) {
|
|
224
|
+
e.f = e.f & Ft | t;
|
|
225
|
+
}
|
|
226
|
+
function It(e) {
|
|
227
|
+
e.f & 512 || e.deps === null ? k(e, Oe) : k(e, Ae);
|
|
228
|
+
}
|
|
229
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
230
|
+
function Lt(e, t) {
|
|
231
|
+
e.f & 2048 ? t.set(e, ke) : e.f & 4096 && t.get(e) !== 2048 && t.set(e, Ae), k(e, Oe);
|
|
232
|
+
}
|
|
233
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/misc.js
|
|
234
|
+
function Rt(e, t) {
|
|
235
|
+
if (t) {
|
|
236
|
+
let t = document.body;
|
|
237
|
+
e.autofocus = !0, Pt(() => {
|
|
238
|
+
document.activeElement === t && e.focus();
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
var zt = !1;
|
|
243
|
+
function Bt() {
|
|
244
|
+
zt || (zt = !0, document.addEventListener("reset", (e) => {
|
|
245
|
+
Promise.resolve().then(() => {
|
|
246
|
+
if (!e.defaultPrevented) for (let t of e.target.elements) t[Xe]?.();
|
|
247
|
+
});
|
|
248
|
+
}, { capture: !0 }));
|
|
249
|
+
}
|
|
250
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
251
|
+
function Vt(e) {
|
|
252
|
+
var t = H, n = U;
|
|
253
|
+
Jr(null), Yr(null);
|
|
254
|
+
try {
|
|
255
|
+
return e();
|
|
256
|
+
} finally {
|
|
257
|
+
Jr(t), Yr(n);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
261
|
+
function Ht(e, t, n, r) {
|
|
262
|
+
let i = jt() ? Kt : Yt;
|
|
263
|
+
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
264
|
+
if (n.length === 0 && a.length === 0) {
|
|
265
|
+
r(o);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
var s = U, c = Ut(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
269
|
+
function u(e) {
|
|
270
|
+
if (!(s.f & 16384)) {
|
|
271
|
+
c();
|
|
272
|
+
try {
|
|
273
|
+
r([...o, ...e]);
|
|
274
|
+
} catch (e) {
|
|
275
|
+
yr(e, s);
|
|
276
|
+
}
|
|
277
|
+
Wt();
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
var d = Gt();
|
|
281
|
+
if (n.length === 0) {
|
|
282
|
+
l.then(() => u([])).finally(d);
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
function f() {
|
|
286
|
+
Promise.all(n.map((e) => /* @__PURE__ */ Jt(e))).then(u).catch((e) => yr(e, s)).finally(d);
|
|
287
|
+
}
|
|
288
|
+
l ? l.then(() => {
|
|
289
|
+
s.f & 16384 ? d() : (c(), f(), Wt());
|
|
290
|
+
}) : f();
|
|
291
|
+
}
|
|
292
|
+
function Ut() {
|
|
293
|
+
var e = U, t = H, n = Et, r = F;
|
|
294
|
+
return function(i = !0) {
|
|
295
|
+
Yr(e), Jr(t), Dt(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
function Wt(e = !0) {
|
|
299
|
+
Yr(null), Jr(null), Dt(null), e && F?.deactivate();
|
|
300
|
+
}
|
|
301
|
+
function Gt() {
|
|
302
|
+
var e = U, t = e.b, n = F, r = !!t?.is_rendered();
|
|
303
|
+
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
304
|
+
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
308
|
+
function Kt(e) {
|
|
309
|
+
var t = 2 | ke;
|
|
310
|
+
return U !== null && (U.f |= Ie), {
|
|
311
|
+
ctx: Et,
|
|
312
|
+
deps: null,
|
|
313
|
+
effects: null,
|
|
314
|
+
equals: ft,
|
|
315
|
+
f: t,
|
|
316
|
+
fn: e,
|
|
317
|
+
reactions: null,
|
|
318
|
+
rv: 0,
|
|
319
|
+
v: T,
|
|
320
|
+
wv: 0,
|
|
321
|
+
parent: U,
|
|
322
|
+
ac: null
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
var qt = Symbol("obsolete");
|
|
326
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
327
|
+
function Jt(e, t, n) {
|
|
328
|
+
let r = U;
|
|
329
|
+
r === null && ht();
|
|
330
|
+
var i = void 0, a = Kn(T), o = !H, s = /* @__PURE__ */ new Set();
|
|
331
|
+
return kr(() => {
|
|
332
|
+
var t = U, n = Ce();
|
|
333
|
+
i = n.promise;
|
|
334
|
+
try {
|
|
335
|
+
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
336
|
+
e !== Ze && n.reject(e);
|
|
337
|
+
}).finally(Wt);
|
|
338
|
+
} catch (e) {
|
|
339
|
+
n.reject(e), Wt();
|
|
340
|
+
}
|
|
341
|
+
var c = F;
|
|
342
|
+
if (o) {
|
|
343
|
+
if (t.f & 32768) var l = Gt();
|
|
344
|
+
if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(qt);
|
|
345
|
+
else for (let e of s.values()) e.reject(qt);
|
|
346
|
+
s.add(n), c.async_deriveds.set(t, n);
|
|
347
|
+
}
|
|
348
|
+
let u = (e, t = void 0) => {
|
|
349
|
+
l?.(), s.delete(n), t !== qt && (c.activate(), t ? (a.f |= Ve, Xn(a, t)) : (a.f & 8388608 && (a.f ^= Ve), Xn(a, e)), c.deactivate());
|
|
350
|
+
};
|
|
351
|
+
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
352
|
+
}), wr(() => {
|
|
353
|
+
for (let e of s) e.reject(qt);
|
|
354
|
+
}), new Promise((e) => {
|
|
355
|
+
function t(n) {
|
|
356
|
+
function r() {
|
|
357
|
+
n === i ? e(a) : t(i);
|
|
358
|
+
}
|
|
359
|
+
n.then(r, r);
|
|
360
|
+
}
|
|
361
|
+
t(i);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
365
|
+
function A(e) {
|
|
366
|
+
let t = /* @__PURE__ */ Kt(e);
|
|
367
|
+
return Zr(t), t;
|
|
368
|
+
}
|
|
369
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
370
|
+
function Yt(e) {
|
|
371
|
+
let t = /* @__PURE__ */ Kt(e);
|
|
372
|
+
return t.equals = mt, t;
|
|
373
|
+
}
|
|
374
|
+
function Xt(e) {
|
|
375
|
+
var t = e.effects;
|
|
376
|
+
if (t !== null) {
|
|
377
|
+
e.effects = null;
|
|
378
|
+
for (var n = 0; n < t.length; n += 1) V(t[n]);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function Zt(e) {
|
|
382
|
+
var t, n = U, r = e.parent;
|
|
383
|
+
if (!Gr && r !== null && e.v !== T && r.f & 24576) return nt(), e.v;
|
|
384
|
+
Yr(r);
|
|
385
|
+
try {
|
|
386
|
+
Xt(e), t = li(e);
|
|
387
|
+
} finally {
|
|
388
|
+
Yr(n);
|
|
389
|
+
}
|
|
390
|
+
return t;
|
|
391
|
+
}
|
|
392
|
+
function Qt(e) {
|
|
393
|
+
var t = Zt(e);
|
|
394
|
+
!e.equals(t) && (e.wv = oi(), (!F?.is_fork || e.deps === null) && (F === null ? e.v = t : (F.capture(e, t, !0), on?.capture(e, t, !0)), e.deps === null)) ? k(e, Oe) : Gr || (sn === null ? It(e) : (Cr() || F?.is_fork) && sn.set(e, t));
|
|
395
|
+
}
|
|
396
|
+
function $t(e) {
|
|
397
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Vt(() => {
|
|
398
|
+
t.ac.abort(Ze), t.ac = null;
|
|
399
|
+
}), t.fn !== null && (t.teardown = xe), fi(t, 0), Fr(t));
|
|
400
|
+
}
|
|
401
|
+
function en(e) {
|
|
402
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && pi(t);
|
|
403
|
+
}
|
|
404
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/checkPrivateRedeclaration.js
|
|
405
|
+
function tn(e, t) {
|
|
406
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
407
|
+
}
|
|
408
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/classPrivateMethodInitSpec.js
|
|
409
|
+
function nn(e, t) {
|
|
410
|
+
tn(e, t), t.add(e);
|
|
411
|
+
}
|
|
412
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/classPrivateFieldInitSpec.js
|
|
413
|
+
function j(e, t, n) {
|
|
414
|
+
tn(e, t), t.set(e, n);
|
|
415
|
+
}
|
|
416
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/assertClassBrand.js
|
|
417
|
+
function M(e, t, n) {
|
|
418
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
419
|
+
throw TypeError("Private element is not present on this object");
|
|
420
|
+
}
|
|
421
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/classPrivateFieldGet2.js
|
|
422
|
+
function N(e, t) {
|
|
423
|
+
return e.get(M(e, t));
|
|
424
|
+
}
|
|
425
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/classPrivateFieldSet2.js
|
|
426
|
+
function P(e, t, n) {
|
|
427
|
+
return e.set(M(e, t), n), n;
|
|
428
|
+
}
|
|
429
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
430
|
+
var rn, an = null, F = null, on = null, sn = null, cn = null, ln = !1, un = !1, dn = null, fn = null, pn = 0, mn = 1, hn = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), En = class e {
|
|
431
|
+
constructor() {
|
|
432
|
+
nn(this, I), w(this, "id", mn++), w(this, "started", !1), w(this, "linked", !0), w(this, "prev", null), w(this, "next", null), w(this, "async_deriveds", /* @__PURE__ */ new Map()), w(this, "current", /* @__PURE__ */ new Map()), w(this, "previous", /* @__PURE__ */ new Map()), j(this, hn, /* @__PURE__ */ new Set()), j(this, gn, /* @__PURE__ */ new Set()), j(this, _n, 0), j(this, vn, /* @__PURE__ */ new Map()), j(this, yn, null), j(this, bn, []), j(this, xn, []), j(this, Sn, /* @__PURE__ */ new Map()), j(this, Cn, /* @__PURE__ */ new Map()), j(this, wn, /* @__PURE__ */ new Set()), w(this, "is_fork", !1), j(this, Tn, !1), an === null ? an = this : (an.next = this, this.prev = an), an = this;
|
|
433
|
+
}
|
|
434
|
+
skip_effect(e) {
|
|
435
|
+
N(Cn, this).has(e) || N(Cn, this).set(e, {
|
|
436
|
+
d: [],
|
|
437
|
+
m: []
|
|
438
|
+
}), N(wn, this).delete(e);
|
|
439
|
+
}
|
|
440
|
+
unskip_effect(e, t = (e) => this.schedule(e)) {
|
|
441
|
+
var n = N(Cn, this).get(e);
|
|
442
|
+
if (n) {
|
|
443
|
+
N(Cn, this).delete(e);
|
|
444
|
+
for (var r of n.d) k(r, ke), t(r);
|
|
445
|
+
for (r of n.m) k(r, Ae), t(r);
|
|
446
|
+
}
|
|
447
|
+
N(wn, this).add(e);
|
|
448
|
+
}
|
|
449
|
+
capture(e, t, n = !1) {
|
|
450
|
+
e.v !== T && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), sn?.set(e, t)), this.is_fork || (e.v = t);
|
|
451
|
+
}
|
|
452
|
+
activate() {
|
|
453
|
+
F = this;
|
|
454
|
+
}
|
|
455
|
+
deactivate() {
|
|
456
|
+
F = null, sn = null;
|
|
457
|
+
}
|
|
458
|
+
flush() {
|
|
459
|
+
try {
|
|
460
|
+
un = !0, F = this, M(I, this, An).call(this);
|
|
461
|
+
} finally {
|
|
462
|
+
pn = 0, cn = null, dn = null, fn = null, un = !1, F = null, sn = null, Wn.clear();
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
discard() {
|
|
466
|
+
for (let e of N(gn, this)) e(this);
|
|
467
|
+
N(gn, this).clear();
|
|
468
|
+
for (let e of this.async_deriveds.values()) e.reject(qt);
|
|
469
|
+
M(I, this, In).call(this), N(yn, this)?.resolve();
|
|
470
|
+
}
|
|
471
|
+
register_created_effect(e) {
|
|
472
|
+
N(xn, this).push(e);
|
|
473
|
+
}
|
|
474
|
+
increment(e, t) {
|
|
475
|
+
if (P(_n, this, N(_n, this) + 1), e) {
|
|
476
|
+
let e = N(vn, this).get(t) ?? 0;
|
|
477
|
+
N(vn, this).set(t, e + 1);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
decrement(e, t) {
|
|
481
|
+
if (P(_n, this, N(_n, this) - 1), e) {
|
|
482
|
+
let e = N(vn, this).get(t) ?? 0;
|
|
483
|
+
e === 1 ? N(vn, this).delete(t) : N(vn, this).set(t, e - 1);
|
|
484
|
+
}
|
|
485
|
+
N(Tn, this) || (P(Tn, this, !0), Pt(() => {
|
|
486
|
+
P(Tn, this, !1), this.linked && this.flush();
|
|
487
|
+
}));
|
|
488
|
+
}
|
|
489
|
+
transfer_reactions(e) {
|
|
490
|
+
for (let [t, n] of e) this.add_dirty_reaction(t, n);
|
|
491
|
+
e.clear();
|
|
492
|
+
}
|
|
493
|
+
add_dirty_reaction(e, t) {
|
|
494
|
+
(t === 2048 || N(Sn, this).get(e) !== 2048) && N(Sn, this).set(e, t);
|
|
495
|
+
}
|
|
496
|
+
oncommit(e) {
|
|
497
|
+
N(hn, this).add(e);
|
|
498
|
+
}
|
|
499
|
+
ondiscard(e) {
|
|
500
|
+
N(gn, this).add(e);
|
|
501
|
+
}
|
|
502
|
+
settled() {
|
|
503
|
+
return (N(yn, this) ?? P(yn, this, Ce())).promise;
|
|
504
|
+
}
|
|
505
|
+
static ensure() {
|
|
506
|
+
if (F === null) {
|
|
507
|
+
let t = F = new e();
|
|
508
|
+
!un && Pt(() => {
|
|
509
|
+
t.started || t.flush();
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
return F;
|
|
513
|
+
}
|
|
514
|
+
apply() {
|
|
515
|
+
sn = null;
|
|
516
|
+
}
|
|
517
|
+
schedule(e) {
|
|
518
|
+
cn = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768) ? e.b.defer_effect(e) : N(bn, this).push(e);
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
rn = En;
|
|
522
|
+
function Dn() {
|
|
523
|
+
if (this.is_fork) return !0;
|
|
524
|
+
for (let e of N(vn, this).keys()) if (!M(I, this, On).call(this, e)) return !0;
|
|
525
|
+
return !1;
|
|
526
|
+
}
|
|
527
|
+
function On(e) {
|
|
528
|
+
for (var t = e; t !== null; t = t.parent) if (N(Cn, this).has(t)) return !0;
|
|
529
|
+
return !1;
|
|
530
|
+
}
|
|
531
|
+
function kn() {
|
|
532
|
+
var e = [];
|
|
533
|
+
for (let i of N(bn, this)) if (!(i.f & 16384 || !(i.f & 6144))) {
|
|
534
|
+
for (var t = i, n = !1; t.parent !== null;) {
|
|
535
|
+
t = t.parent;
|
|
536
|
+
var r = t.f;
|
|
537
|
+
if (r & 96) {
|
|
538
|
+
if (!(r & 1024)) {
|
|
539
|
+
n = !0;
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
t.f ^= Oe;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
n || e.push(t);
|
|
546
|
+
}
|
|
547
|
+
return P(bn, this, []), e;
|
|
548
|
+
}
|
|
549
|
+
function An() {
|
|
550
|
+
this.started = !0;
|
|
551
|
+
for (let [e, t] of N(Sn, this)) k(e, t), this.schedule(e);
|
|
552
|
+
this.apply();
|
|
553
|
+
for (var e = dn = [], t = [], n = fn = []; N(bn, this).length > 0;) {
|
|
554
|
+
pn++ > 1e3 && (M(I, this, In).call(this), Ln());
|
|
555
|
+
for (let n of M(I, this, kn).call(this)) try {
|
|
556
|
+
M(I, this, jn).call(this, n, e, t);
|
|
557
|
+
} catch (e) {
|
|
558
|
+
throw Hn(n), M(I, this, Dn).call(this) || this.discard(), e;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (F = null, n.length > 0) {
|
|
562
|
+
var r = rn.ensure();
|
|
563
|
+
for (let e of n) r.schedule(e);
|
|
564
|
+
}
|
|
565
|
+
if (dn = null, fn = null, M(I, this, Dn).call(this)) {
|
|
566
|
+
M(I, this, Fn).call(this, t), M(I, this, Fn).call(this, e);
|
|
567
|
+
for (let [e, t] of N(Cn, this)) Vn(e, t);
|
|
568
|
+
n.length > 0 && M(I, F, An).call(F);
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
let i = M(I, this, Mn).call(this);
|
|
572
|
+
if (i) M(I, this, Fn).call(this, t), M(I, this, Fn).call(this, e), M(I, i, Pn).call(i, this);
|
|
573
|
+
else {
|
|
574
|
+
N(Sn, this).clear();
|
|
575
|
+
for (let e of N(hn, this)) e(this);
|
|
576
|
+
N(hn, this).clear(), on = this, zn(t), zn(e), on = null, N(yn, this)?.resolve();
|
|
577
|
+
var a = F;
|
|
578
|
+
N(_n, this) === 0 && (N(bn, this).length === 0 || a !== null) && M(I, this, In).call(this), a !== null && (Wn.clear(), M(I, a, An).call(a));
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function jn(e, t, n) {
|
|
582
|
+
e.f ^= Oe;
|
|
583
|
+
for (var r = e.first; r !== null;) {
|
|
584
|
+
var i = r.f, a = !!(i & 96);
|
|
585
|
+
if (!(a && i & 1024 || i & 8192 || N(Cn, this).has(r)) && r.fn !== null) {
|
|
586
|
+
a ? r.f ^= Oe : i & 4 ? t.push(r) : si(r) && (i & 16 && this.add_dirty_reaction(r, Ae), pi(r));
|
|
587
|
+
var o = r.first;
|
|
588
|
+
if (o !== null) {
|
|
589
|
+
r = o;
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
for (; r !== null;) {
|
|
594
|
+
var s = r.next;
|
|
595
|
+
if (s !== null) {
|
|
596
|
+
r = s;
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
r = r.parent;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
function Mn() {
|
|
604
|
+
for (var e = this.prev; e !== null; e = e.prev) if (!e.is_fork && M(I, this, Nn).call(this, e)) return e;
|
|
605
|
+
return null;
|
|
606
|
+
}
|
|
607
|
+
function Nn(e) {
|
|
608
|
+
for (let [t, [, n]] of this.current) if (!n && e.current.has(t)) return !0;
|
|
609
|
+
return !1;
|
|
610
|
+
}
|
|
611
|
+
function Pn(e) {
|
|
612
|
+
for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
613
|
+
for (let [t, n] of e.async_deriveds) {
|
|
614
|
+
let e = this.async_deriveds.get(t);
|
|
615
|
+
e && n.promise.then(e.resolve).catch(e.reject);
|
|
616
|
+
}
|
|
617
|
+
e.async_deriveds.clear(), this.transfer_reactions(N(Sn, e));
|
|
618
|
+
let t = (e) => {
|
|
619
|
+
var n = e.reactions;
|
|
620
|
+
if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
|
|
621
|
+
var r = e.f;
|
|
622
|
+
if (r & 2) t(e);
|
|
623
|
+
else {
|
|
624
|
+
var i = e;
|
|
625
|
+
r & 4194320 && !this.async_deriveds.has(i) && (N(Sn, this).delete(i), k(i, ke), this.schedule(i));
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
for (let e of this.current.keys()) t(e);
|
|
630
|
+
this.oncommit(() => e.discard()), M(I, e, In).call(e), F = this, M(I, this, An).call(this);
|
|
631
|
+
}
|
|
632
|
+
function Fn(e) {
|
|
633
|
+
for (var t = 0; t < e.length; t += 1) Lt(e[t], N(Sn, this));
|
|
634
|
+
}
|
|
635
|
+
function In() {
|
|
636
|
+
if (this.linked) {
|
|
637
|
+
var e = this.prev, t = this.next;
|
|
638
|
+
e === null || (e.next = t), t === null ? an = e : t.prev = e, this.linked = !1;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
function Ln() {
|
|
642
|
+
try {
|
|
643
|
+
bt();
|
|
644
|
+
} catch (e) {
|
|
645
|
+
yr(e, cn);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
var Rn = null;
|
|
649
|
+
function zn(e) {
|
|
650
|
+
var t = e.length;
|
|
651
|
+
if (t !== 0) {
|
|
652
|
+
for (var n = 0; n < t;) {
|
|
653
|
+
var r = e[n++];
|
|
654
|
+
if (!(r.f & 24576) && si(r) && (Rn = /* @__PURE__ */ new Set(), pi(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Rr(r), Rn?.size > 0)) {
|
|
655
|
+
Wn.clear();
|
|
656
|
+
for (let e of Rn) {
|
|
657
|
+
if (e.f & 24576) continue;
|
|
658
|
+
let t = [e], n = e.parent;
|
|
659
|
+
for (; n !== null;) Rn.has(n) && (Rn.delete(n), t.push(n)), n = n.parent;
|
|
660
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
661
|
+
let n = t[e];
|
|
662
|
+
n.f & 24576 || pi(n);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
Rn.clear();
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
Rn = null;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
function Bn(e) {
|
|
672
|
+
F.schedule(e);
|
|
673
|
+
}
|
|
674
|
+
function Vn(e, t) {
|
|
675
|
+
if (!(e.f & 32 && e.f & 1024)) {
|
|
676
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), k(e, Oe);
|
|
677
|
+
for (var n = e.first; n !== null;) Vn(n, t), n = n.next;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
function Hn(e) {
|
|
681
|
+
k(e, Oe);
|
|
682
|
+
for (var t = e.first; t !== null;) Hn(t), t = t.next;
|
|
683
|
+
}
|
|
684
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
685
|
+
var Un = /* @__PURE__ */ new Set(), Wn = /* @__PURE__ */ new Map(), Gn = !1;
|
|
686
|
+
function Kn(e, t) {
|
|
687
|
+
return {
|
|
688
|
+
f: 0,
|
|
689
|
+
v: e,
|
|
690
|
+
reactions: null,
|
|
691
|
+
equals: ft,
|
|
692
|
+
rv: 0,
|
|
693
|
+
wv: 0
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
697
|
+
function L(e, t) {
|
|
698
|
+
let n = Kn(e, t);
|
|
699
|
+
return Zr(n), n;
|
|
700
|
+
}
|
|
701
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
702
|
+
function qn(e, t = !1, n = !0) {
|
|
703
|
+
let r = Kn(e);
|
|
704
|
+
return t || (r.equals = mt), r;
|
|
705
|
+
}
|
|
706
|
+
function R(e, t, n = !1) {
|
|
707
|
+
return H !== null && (!qr || H.f & 131072) && jt() && H.f & 4325394 && (Xr === null || !Xr.has(e)) && wt(), Xn(e, n ? $n(t) : t, fn);
|
|
708
|
+
}
|
|
709
|
+
var Jn = null, Yn = 0;
|
|
710
|
+
function Xn(e, t, n = null) {
|
|
711
|
+
if (!e.equals(t)) {
|
|
712
|
+
Gr ? Wn.set(e, t) : Wn.has(e) || Wn.set(e, e.v);
|
|
713
|
+
var r = En.ensure();
|
|
714
|
+
if (r.capture(e, t), e.f & 2) {
|
|
715
|
+
let t = e;
|
|
716
|
+
e.f & 2048 && Zt(t), sn === null && It(t);
|
|
717
|
+
}
|
|
718
|
+
e.wv = oi(), Jn = null, Yn = 0, Qn(e, ke, n), Jn = null, jt() && U !== null && U.f & 1024 && !(U.f & 96) && (ei === null ? ti([e]) : ei.push(e)), !r.is_fork && Un.size > 0 && !Gn && Zn();
|
|
719
|
+
}
|
|
720
|
+
return t;
|
|
721
|
+
}
|
|
722
|
+
function Zn() {
|
|
723
|
+
Gn = !1;
|
|
724
|
+
for (let e of Un) {
|
|
725
|
+
e.f & 1024 && k(e, Ae);
|
|
726
|
+
let t;
|
|
727
|
+
try {
|
|
728
|
+
t = si(e);
|
|
729
|
+
} catch {
|
|
730
|
+
t = !0;
|
|
731
|
+
}
|
|
732
|
+
t && pi(e);
|
|
733
|
+
}
|
|
734
|
+
Un.clear();
|
|
735
|
+
}
|
|
736
|
+
function z(e) {
|
|
737
|
+
R(e, e.v + 1);
|
|
738
|
+
}
|
|
739
|
+
function Qn(e, t, n) {
|
|
740
|
+
var r = e.reactions;
|
|
741
|
+
if (r !== null) {
|
|
742
|
+
var i = jt(), a = r.length;
|
|
743
|
+
if (Yn += a, Yn > 1e5 && Jn === null && (Jn = /* @__PURE__ */ new Set()), Jn !== null) {
|
|
744
|
+
if (Jn.has(e)) return;
|
|
745
|
+
Jn.add(e);
|
|
746
|
+
}
|
|
747
|
+
for (var o = 0; o < a; o++) {
|
|
748
|
+
var s = r[o], c = s.f;
|
|
749
|
+
if (i || s !== U) {
|
|
750
|
+
var l = (c & ke) === 0;
|
|
751
|
+
if (l && k(s, t), c & 131072) Un.add(s);
|
|
752
|
+
else if (c & 2) {
|
|
753
|
+
var u = s;
|
|
754
|
+
sn?.delete(u), Qn(u, Ae, n);
|
|
755
|
+
} else if (l) {
|
|
756
|
+
var d = s;
|
|
757
|
+
c & 16 && Rn !== null && Rn.add(d), n === null ? Bn(d) : n.push(d);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
function $n(e) {
|
|
764
|
+
if (typeof e != "object" || !e || He in e || Ue in e) return e;
|
|
765
|
+
let t = ye(e);
|
|
766
|
+
if (t !== _e && t !== ve) return e;
|
|
767
|
+
var n = /* @__PURE__ */ new Map(), r = ue(e), i = /* @__PURE__ */ L(0), a = null, o = ii, s = (e) => {
|
|
768
|
+
if (ii === o) return e();
|
|
769
|
+
var t = H, n = ii;
|
|
770
|
+
Jr(null), ai(o);
|
|
771
|
+
var r = e();
|
|
772
|
+
return Jr(t), ai(n), r;
|
|
773
|
+
};
|
|
774
|
+
return r && n.set("length", /* @__PURE__ */ L(e.length, a)), new Proxy(e, {
|
|
775
|
+
defineProperty(e, t, r) {
|
|
776
|
+
"value" in r && r.configurable !== !1 && r.enumerable !== !1 && r.writable !== !1 || St();
|
|
777
|
+
var i = n.get(t);
|
|
778
|
+
return i === void 0 ? s(() => {
|
|
779
|
+
var e = /* @__PURE__ */ L(r.value, a);
|
|
780
|
+
return n.set(t, e), e;
|
|
781
|
+
}) : R(i, r.value, !0), !0;
|
|
782
|
+
},
|
|
783
|
+
deleteProperty(e, t) {
|
|
784
|
+
var r = n.get(t);
|
|
785
|
+
if (r === void 0) {
|
|
786
|
+
if (t in e) {
|
|
787
|
+
let e = s(() => /* @__PURE__ */ L(T, a));
|
|
788
|
+
n.set(t, e), z(i);
|
|
789
|
+
}
|
|
790
|
+
} else R(r, T), z(i);
|
|
791
|
+
return !0;
|
|
792
|
+
},
|
|
793
|
+
get(t, r, i) {
|
|
794
|
+
if (r === He) return e;
|
|
795
|
+
var o = n.get(r), c = r in t;
|
|
796
|
+
if (o === void 0 && (!c || he(t, r)?.writable) && (o = s(() => /* @__PURE__ */ L($n(c ? t[r] : T), a)), n.set(r, o)), o !== void 0) {
|
|
797
|
+
var l = W(o);
|
|
798
|
+
return l === T ? void 0 : l;
|
|
799
|
+
}
|
|
800
|
+
return Reflect.get(t, r, i);
|
|
801
|
+
},
|
|
802
|
+
getOwnPropertyDescriptor(e, t) {
|
|
803
|
+
this.has?.(e, t);
|
|
804
|
+
var r = Reflect.getOwnPropertyDescriptor(e, t), i = n.get(t);
|
|
805
|
+
if (i !== void 0) {
|
|
806
|
+
var a = W(i);
|
|
807
|
+
if (a === T) return;
|
|
808
|
+
if (r && "value" in r) r.value = a;
|
|
809
|
+
else return {
|
|
810
|
+
enumerable: !0,
|
|
811
|
+
configurable: !0,
|
|
812
|
+
value: a,
|
|
813
|
+
writable: !0
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
return r;
|
|
817
|
+
},
|
|
818
|
+
has(e, t) {
|
|
819
|
+
if (t === He) return !0;
|
|
820
|
+
var r = n.get(t), i = r !== void 0 && r.v !== T || Reflect.has(e, t);
|
|
821
|
+
return (r !== void 0 || (U !== null || H !== null) && (!i || he(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ L(i ? $n(e[t]) : T, a)), n.set(t, r)), W(r) === T) ? !1 : i;
|
|
822
|
+
},
|
|
823
|
+
set(e, t, o, c) {
|
|
824
|
+
var l = n.get(t), u = t in e;
|
|
825
|
+
if (r && t === "length") for (var d = o; d < l.v; d += 1) {
|
|
826
|
+
var f = n.get(d + "");
|
|
827
|
+
f === void 0 ? d in e && (f = s(() => /* @__PURE__ */ L(T, a)), n.set(d + "", f)) : R(f, T);
|
|
828
|
+
}
|
|
829
|
+
if (l === void 0) (!u || he(e, t)?.writable) && (l = s(() => /* @__PURE__ */ L(void 0, a)), R(l, $n(o)), n.set(t, l));
|
|
830
|
+
else {
|
|
831
|
+
u = l.v !== T;
|
|
832
|
+
var p = s(() => $n(o));
|
|
833
|
+
R(l, p);
|
|
834
|
+
}
|
|
835
|
+
var m = Reflect.getOwnPropertyDescriptor(e, t);
|
|
836
|
+
if (m?.set && m.set.call(c, o), !u) {
|
|
837
|
+
if (r && typeof t == "string") {
|
|
838
|
+
var h = n.get("length"), g = Number(t);
|
|
839
|
+
Number.isInteger(g) && g >= h.v && R(h, g + 1);
|
|
840
|
+
}
|
|
841
|
+
z(i);
|
|
842
|
+
}
|
|
843
|
+
return !0;
|
|
844
|
+
},
|
|
845
|
+
ownKeys(e) {
|
|
846
|
+
W(i);
|
|
847
|
+
var t = Reflect.ownKeys(e).filter((e) => {
|
|
848
|
+
var t = n.get(e);
|
|
849
|
+
return t === void 0 || t.v !== T;
|
|
850
|
+
});
|
|
851
|
+
for (var [r, a] of n) a.v !== T && !(r in e) && t.push(r);
|
|
852
|
+
return t;
|
|
853
|
+
},
|
|
854
|
+
setPrototypeOf() {
|
|
855
|
+
Ct();
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
function er(e) {
|
|
860
|
+
try {
|
|
861
|
+
if (typeof e == "object" && e && He in e) return e[He];
|
|
862
|
+
} catch {}
|
|
863
|
+
return e;
|
|
864
|
+
}
|
|
865
|
+
function tr(e, t) {
|
|
866
|
+
return Object.is(er(e), er(t));
|
|
867
|
+
}
|
|
868
|
+
var nr, rr, ir, ar;
|
|
869
|
+
function or() {
|
|
870
|
+
if (nr === void 0) {
|
|
871
|
+
nr = window, rr = /Firefox/.test(navigator.userAgent);
|
|
872
|
+
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
873
|
+
ir = he(t, "firstChild").get, ar = he(t, "nextSibling").get, be(e) && (e[qe] = void 0, e[Ke] = null, e[Je] = void 0, e.__e = void 0), be(n) && (n[Ye] = void 0);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
function sr(e = "") {
|
|
877
|
+
return document.createTextNode(e);
|
|
878
|
+
}
|
|
879
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
880
|
+
function cr(e) {
|
|
881
|
+
return ir.call(e);
|
|
882
|
+
}
|
|
883
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
884
|
+
function lr(e) {
|
|
885
|
+
return ar.call(e);
|
|
886
|
+
}
|
|
887
|
+
function ur(e, t) {
|
|
888
|
+
if (!E) return /* @__PURE__ */ cr(e);
|
|
889
|
+
var n = /* @__PURE__ */ cr(D);
|
|
890
|
+
if (n === null) n = D.appendChild(sr());
|
|
891
|
+
else if (t && n.nodeType !== 3) {
|
|
892
|
+
var r = sr();
|
|
893
|
+
return n?.before(r), O(r), r;
|
|
894
|
+
}
|
|
895
|
+
return t && _r(n), O(n), n;
|
|
896
|
+
}
|
|
897
|
+
function dr(e, t = !1) {
|
|
898
|
+
if (!E) {
|
|
899
|
+
var n = /* @__PURE__ */ cr(e);
|
|
900
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ lr(n) : n;
|
|
901
|
+
}
|
|
902
|
+
if (t) {
|
|
903
|
+
if (D?.nodeType !== 3) {
|
|
904
|
+
var r = sr();
|
|
905
|
+
return D?.before(r), O(r), r;
|
|
906
|
+
}
|
|
907
|
+
_r(D);
|
|
908
|
+
}
|
|
909
|
+
return D;
|
|
910
|
+
}
|
|
911
|
+
function fr(e, t = !1) {
|
|
912
|
+
if (!E) return /* @__PURE__ */ cr(e);
|
|
913
|
+
var n = ur(e, t);
|
|
914
|
+
return ct(e), n;
|
|
915
|
+
}
|
|
916
|
+
function pr(e, t = 1, n = !1) {
|
|
917
|
+
let r = E ? D : e;
|
|
918
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ lr(r);
|
|
919
|
+
if (!E) return r;
|
|
920
|
+
if (n) {
|
|
921
|
+
if (r?.nodeType !== 3) {
|
|
922
|
+
var a = sr();
|
|
923
|
+
return r === null ? i?.after(a) : r.before(a), O(a), a;
|
|
924
|
+
}
|
|
925
|
+
_r(r);
|
|
926
|
+
}
|
|
927
|
+
return O(r), r;
|
|
928
|
+
}
|
|
929
|
+
function mr(e) {
|
|
930
|
+
e.textContent = "";
|
|
931
|
+
}
|
|
932
|
+
function hr() {
|
|
933
|
+
return !1;
|
|
934
|
+
}
|
|
935
|
+
function gr(e, t, n) {
|
|
936
|
+
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
937
|
+
}
|
|
938
|
+
function _r(e) {
|
|
939
|
+
if (e.nodeValue.length < 65536) return;
|
|
940
|
+
let t = e.nextSibling;
|
|
941
|
+
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
942
|
+
}
|
|
943
|
+
function vr(e) {
|
|
944
|
+
var t = U;
|
|
945
|
+
if (t === null) return H.f |= Ve, e;
|
|
946
|
+
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
947
|
+
yr(e, t);
|
|
948
|
+
}
|
|
949
|
+
function yr(e, t) {
|
|
950
|
+
if (e === $e) throw e;
|
|
951
|
+
if (!(t !== null && t.f & 16384)) {
|
|
952
|
+
for (; t !== null;) {
|
|
953
|
+
if (t.f & 128 && !(t.f & 33570816)) {
|
|
954
|
+
if (!(t.f & 32768)) throw e;
|
|
955
|
+
try {
|
|
956
|
+
t.b.error(e);
|
|
957
|
+
return;
|
|
958
|
+
} catch (t) {
|
|
959
|
+
e = t;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
t = t.parent;
|
|
963
|
+
}
|
|
964
|
+
throw e;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
968
|
+
function br(e) {
|
|
969
|
+
U === null && (H === null && yt(e), vt()), Gr && _t(e);
|
|
970
|
+
}
|
|
971
|
+
function xr(e, t) {
|
|
972
|
+
var n = t.last;
|
|
973
|
+
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
974
|
+
}
|
|
975
|
+
function Sr(e, t) {
|
|
976
|
+
var n = U;
|
|
977
|
+
n !== null && n.f & 8192 && (e |= je);
|
|
978
|
+
var r = {
|
|
979
|
+
ctx: Et,
|
|
980
|
+
deps: null,
|
|
981
|
+
nodes: null,
|
|
982
|
+
f: e | ke | 512,
|
|
983
|
+
first: null,
|
|
984
|
+
fn: t,
|
|
985
|
+
last: null,
|
|
986
|
+
next: null,
|
|
987
|
+
parent: n,
|
|
988
|
+
b: n && n.b,
|
|
989
|
+
prev: null,
|
|
990
|
+
teardown: null,
|
|
991
|
+
wv: 0,
|
|
992
|
+
ac: null
|
|
993
|
+
};
|
|
994
|
+
F?.register_created_effect(r);
|
|
995
|
+
var i = r;
|
|
996
|
+
if (e & 4) dn === null ? En.ensure().schedule(r) : dn.push(r);
|
|
997
|
+
else if (t !== null) {
|
|
998
|
+
try {
|
|
999
|
+
pi(r);
|
|
1000
|
+
} catch (e) {
|
|
1001
|
+
throw V(r), e;
|
|
1002
|
+
}
|
|
1003
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Fe));
|
|
1004
|
+
}
|
|
1005
|
+
if (i !== null && (i.parent = n, n !== null && xr(i, n), H !== null && H.f & 2 && !(e & 64))) {
|
|
1006
|
+
var a = H;
|
|
1007
|
+
(a.effects ?? (a.effects = [])).push(i);
|
|
1008
|
+
}
|
|
1009
|
+
return r;
|
|
1010
|
+
}
|
|
1011
|
+
function Cr() {
|
|
1012
|
+
return H !== null && !qr;
|
|
1013
|
+
}
|
|
1014
|
+
function wr(e) {
|
|
1015
|
+
let t = Sr(8, null);
|
|
1016
|
+
return k(t, Oe), t.teardown = e, t;
|
|
1017
|
+
}
|
|
1018
|
+
function Tr(e) {
|
|
1019
|
+
br("$effect");
|
|
1020
|
+
var t = U.f;
|
|
1021
|
+
if (!H && t & 32 && Et !== null && !Et.i) {
|
|
1022
|
+
var n = Et;
|
|
1023
|
+
(n.e ?? (n.e = [])).push(e);
|
|
1024
|
+
} else return Er(e);
|
|
1025
|
+
}
|
|
1026
|
+
function Er(e) {
|
|
1027
|
+
return Sr(4 | Le, e);
|
|
1028
|
+
}
|
|
1029
|
+
function Dr(e) {
|
|
1030
|
+
En.ensure();
|
|
1031
|
+
let t = Sr(64 | Ie, e);
|
|
1032
|
+
return (e = {}) => new Promise((n) => {
|
|
1033
|
+
e.outro ? zr(t, () => {
|
|
1034
|
+
V(t), n(void 0);
|
|
1035
|
+
}) : (V(t), n(void 0));
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
function Or(e) {
|
|
1039
|
+
return Sr(4, e);
|
|
1040
|
+
}
|
|
1041
|
+
function kr(e) {
|
|
1042
|
+
return Sr(Be | Ie, e);
|
|
1043
|
+
}
|
|
1044
|
+
function Ar(e, t = 0) {
|
|
1045
|
+
return Sr(8 | t, e);
|
|
1046
|
+
}
|
|
1047
|
+
function B(e, t = [], n = [], r = []) {
|
|
1048
|
+
Ht(r, t, n, (t) => {
|
|
1049
|
+
Sr(8, () => {
|
|
1050
|
+
e(...t.map(W));
|
|
1051
|
+
});
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
function jr(e, t = 0) {
|
|
1055
|
+
return Sr(16 | t, e);
|
|
1056
|
+
}
|
|
1057
|
+
function Mr(e, t = 0) {
|
|
1058
|
+
return Sr(De | t, e);
|
|
1059
|
+
}
|
|
1060
|
+
function Nr(e) {
|
|
1061
|
+
return Sr(32 | Ie, e);
|
|
1062
|
+
}
|
|
1063
|
+
function Pr(e) {
|
|
1064
|
+
var t = e.teardown;
|
|
1065
|
+
if (t !== null) {
|
|
1066
|
+
let n = Gr, r = H;
|
|
1067
|
+
Kr(!0), Jr(null);
|
|
1068
|
+
try {
|
|
1069
|
+
t.call(null);
|
|
1070
|
+
} catch (t) {
|
|
1071
|
+
yr(t, e.parent);
|
|
1072
|
+
} finally {
|
|
1073
|
+
Kr(n), Jr(r);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
function Fr(e, t = !1) {
|
|
1078
|
+
var n = e.first;
|
|
1079
|
+
for (e.first = e.last = null; n !== null;) {
|
|
1080
|
+
let e = n.ac;
|
|
1081
|
+
e !== null && Vt(() => {
|
|
1082
|
+
e.abort(Ze);
|
|
1083
|
+
});
|
|
1084
|
+
var r = n.next;
|
|
1085
|
+
n.f & 64 ? n.parent = null : V(n, t), n = r;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
function Ir(e) {
|
|
1089
|
+
for (var t = e.first; t !== null;) {
|
|
1090
|
+
var n = t.next;
|
|
1091
|
+
t.f & 32 || V(t), t = n;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
function V(e, t = !0) {
|
|
1095
|
+
var n = !1;
|
|
1096
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Lr(e.nodes.start, e.nodes.end), n = !0), e.f |= Pe, Fr(e, t && !n), fi(e, 0);
|
|
1097
|
+
var r = e.nodes && e.nodes.t;
|
|
1098
|
+
if (r !== null) for (let e of r) e.stop();
|
|
1099
|
+
Pr(e), e.f ^= Pe, e.f |= Me;
|
|
1100
|
+
var i = e.parent;
|
|
1101
|
+
i !== null && i.first !== null && Rr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1102
|
+
}
|
|
1103
|
+
function Lr(e, t) {
|
|
1104
|
+
for (; e !== null;) {
|
|
1105
|
+
var n = e === t ? null : /* @__PURE__ */ lr(e);
|
|
1106
|
+
e.remove(), e = n;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
function Rr(e) {
|
|
1110
|
+
var t = e.parent, n = e.prev, r = e.next;
|
|
1111
|
+
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1112
|
+
}
|
|
1113
|
+
function zr(e, t, n = !0) {
|
|
1114
|
+
var r = [];
|
|
1115
|
+
e.f |= 256, Br(e, r, !0);
|
|
1116
|
+
var i = () => {
|
|
1117
|
+
n && V(e), t && t();
|
|
1118
|
+
}, a = r.length;
|
|
1119
|
+
if (a > 0) {
|
|
1120
|
+
var o = () => --a || i();
|
|
1121
|
+
for (var s of r) s.out(o);
|
|
1122
|
+
} else i();
|
|
1123
|
+
}
|
|
1124
|
+
function Br(e, t, n) {
|
|
1125
|
+
if (!(e.f & 8192)) {
|
|
1126
|
+
e.f ^= je;
|
|
1127
|
+
var r = e.nodes && e.nodes.t;
|
|
1128
|
+
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1129
|
+
for (var i = e.first; i !== null;) {
|
|
1130
|
+
var a = i.next;
|
|
1131
|
+
if (!(i.f & 64)) {
|
|
1132
|
+
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1133
|
+
Br(i, t, o ? n : !1);
|
|
1134
|
+
}
|
|
1135
|
+
i = a;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
function Vr(e) {
|
|
1140
|
+
e.f &= -257, Hr(e, !0);
|
|
1141
|
+
}
|
|
1142
|
+
function Hr(e, t) {
|
|
1143
|
+
if (!(e.f & 256) && e.f & 8192) {
|
|
1144
|
+
e.f ^= je, e.f & 1024 || (k(e, ke), En.ensure().schedule(e));
|
|
1145
|
+
for (var n = e.first; n !== null;) {
|
|
1146
|
+
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1147
|
+
Hr(n, i ? t : !1), n = r;
|
|
1148
|
+
}
|
|
1149
|
+
var a = e.nodes && e.nodes.t;
|
|
1150
|
+
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
function Ur(e, t) {
|
|
1154
|
+
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1155
|
+
var i = n === r ? null : /* @__PURE__ */ lr(n);
|
|
1156
|
+
t.append(n), n = i;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/legacy.js
|
|
1160
|
+
var Wr = null, Gr = !1;
|
|
1161
|
+
function Kr(e) {
|
|
1162
|
+
Gr = e;
|
|
1163
|
+
}
|
|
1164
|
+
var H = null, qr = !1;
|
|
1165
|
+
function Jr(e) {
|
|
1166
|
+
H = e;
|
|
1167
|
+
}
|
|
1168
|
+
var U = null;
|
|
1169
|
+
function Yr(e) {
|
|
1170
|
+
U = e;
|
|
1171
|
+
}
|
|
1172
|
+
var Xr = null;
|
|
1173
|
+
function Zr(e) {
|
|
1174
|
+
H !== null && (H.f & 2097152 || H.f & 2) && (Xr ?? (Xr = /* @__PURE__ */ new Set())).add(e);
|
|
1175
|
+
}
|
|
1176
|
+
var Qr = null, $r = 0, ei = null;
|
|
1177
|
+
function ti(e) {
|
|
1178
|
+
ei = e;
|
|
1179
|
+
}
|
|
1180
|
+
var ni = 1, ri = 0, ii = ri;
|
|
1181
|
+
function ai(e) {
|
|
1182
|
+
ii = e;
|
|
1183
|
+
}
|
|
1184
|
+
function oi() {
|
|
1185
|
+
return ++ni;
|
|
1186
|
+
}
|
|
1187
|
+
function si(e) {
|
|
1188
|
+
var t = e.f;
|
|
1189
|
+
if (t & 2048) return !0;
|
|
1190
|
+
if (t & 4096) {
|
|
1191
|
+
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1192
|
+
var a = n[i];
|
|
1193
|
+
if (si(a) && Qt(a), a.wv > e.wv) return !0;
|
|
1194
|
+
}
|
|
1195
|
+
t & 512 && sn === null && k(e, Oe);
|
|
1196
|
+
}
|
|
1197
|
+
return !1;
|
|
1198
|
+
}
|
|
1199
|
+
function ci(e, t, n = !0) {
|
|
1200
|
+
var r = e.reactions;
|
|
1201
|
+
if (r !== null && !(Xr !== null && Xr.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1202
|
+
var a = r[i];
|
|
1203
|
+
a.f & 2 ? ci(a, t, !1) : t === a && (n ? k(a, ke) : a.f & 1024 && k(a, Ae), Bn(a));
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
function li(e) {
|
|
1207
|
+
var t = Qr, n = $r, r = ei, i = H, a = Xr, o = Et, s = qr, c = ii, l = e.f;
|
|
1208
|
+
Qr = null, $r = 0, ei = null, H = l & 96 ? null : e, Xr = null, Dt(e.ctx), qr = !1, ii = ++ri, e.ac !== null && (Vt(() => {
|
|
1209
|
+
e.ac.abort(Ze);
|
|
1210
|
+
}), e.ac = null);
|
|
1211
|
+
try {
|
|
1212
|
+
e.f |= ze;
|
|
1213
|
+
var u = e.fn, d = u();
|
|
1214
|
+
e.f |= Ne;
|
|
1215
|
+
var f = ui(e);
|
|
1216
|
+
if (jt() && ei !== null && !qr && f !== null && !(e.f & 6146)) for (var p = 0; p < ei.length; p++) ci(ei[p], e);
|
|
1217
|
+
if (i !== null && i !== e) {
|
|
1218
|
+
if (ri++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = ri;
|
|
1219
|
+
if (t !== null) for (let e of t) e.rv = ri;
|
|
1220
|
+
ei !== null && (r === null ? r = ei : r.push(...ei));
|
|
1221
|
+
}
|
|
1222
|
+
return e.f & 8388608 && (e.f ^= Ve), d;
|
|
1223
|
+
} catch (t) {
|
|
1224
|
+
return ui(e), vr(t);
|
|
1225
|
+
} finally {
|
|
1226
|
+
e.f ^= ze, Qr = t, $r = n, ei = r, H = i, Xr = a, Dt(o), qr = s, ii = c;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
function ui(e) {
|
|
1230
|
+
var t = e.deps, n = F?.is_fork;
|
|
1231
|
+
if (Qr !== null) {
|
|
1232
|
+
var r;
|
|
1233
|
+
if (n || fi(e, $r), t !== null && $r > 0) for (t.length = $r + Qr.length, r = 0; r < Qr.length; r++) t[$r + r] = Qr[r];
|
|
1234
|
+
else e.deps = t = Qr;
|
|
1235
|
+
if (Cr() && e.f & 512) for (r = $r; r < t.length; r++) {
|
|
1236
|
+
var i;
|
|
1237
|
+
((i = t[r]).reactions ?? (i.reactions = [])).push(e);
|
|
1238
|
+
}
|
|
1239
|
+
} else !n && t !== null && $r < t.length && (fi(e, $r), t.length = $r);
|
|
1240
|
+
return t;
|
|
1241
|
+
}
|
|
1242
|
+
function di(e, t) {
|
|
1243
|
+
let n = t.reactions;
|
|
1244
|
+
if (n !== null) {
|
|
1245
|
+
var r = de.call(n, e);
|
|
1246
|
+
if (r !== -1) {
|
|
1247
|
+
var i = n.length - 1;
|
|
1248
|
+
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
if (n === null && t.f & 2 && (Qr === null || !fe.call(Qr, t))) {
|
|
1252
|
+
var a = t;
|
|
1253
|
+
a.f & 512 && (a.f ^= 512), a.v !== T && It(a), a.ac !== null && Vt(() => {
|
|
1254
|
+
a.ac.abort(Ze), a.ac = null, k(a, ke);
|
|
1255
|
+
}), $t(a), fi(a, 0);
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
function fi(e, t) {
|
|
1259
|
+
var n = e.deps;
|
|
1260
|
+
if (n !== null) for (var r = t; r < n.length; r++) di(e, n[r]);
|
|
1261
|
+
}
|
|
1262
|
+
function pi(e) {
|
|
1263
|
+
var t = e.f;
|
|
1264
|
+
if (!(t & 16384)) {
|
|
1265
|
+
k(e, Oe);
|
|
1266
|
+
var n = U;
|
|
1267
|
+
U = e;
|
|
1268
|
+
try {
|
|
1269
|
+
t & 16777232 ? Ir(e) : Fr(e), Pr(e);
|
|
1270
|
+
var r = li(e);
|
|
1271
|
+
e.teardown = typeof r == "function" ? r : null, e.wv = ni;
|
|
1272
|
+
} finally {
|
|
1273
|
+
U = n;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
function W(e) {
|
|
1278
|
+
var t = !!(e.f & 2);
|
|
1279
|
+
if (Wr?.add(e), H !== null && !qr && !(U !== null && U.f & 16384) && (Xr === null || !Xr.has(e))) {
|
|
1280
|
+
var n = H.deps;
|
|
1281
|
+
if (H.f & 2097152) e.rv < ri && (e.rv = ri, Qr === null && n !== null && n[$r] === e ? $r++ : Qr === null ? Qr = [e] : Qr.push(e));
|
|
1282
|
+
else {
|
|
1283
|
+
var r;
|
|
1284
|
+
(r = H).deps ?? (r.deps = []), fe.call(H.deps, e) || H.deps.push(e);
|
|
1285
|
+
var i = e.reactions;
|
|
1286
|
+
i === null ? e.reactions = [H] : fe.call(i, H) || i.push(H);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
if (Gr && Wn.has(e)) return Wn.get(e);
|
|
1290
|
+
if (t) {
|
|
1291
|
+
var a = e;
|
|
1292
|
+
if (Gr) {
|
|
1293
|
+
var o = a.v;
|
|
1294
|
+
return (!(a.f & 1024) && a.reactions !== null || hi(a)) && (o = Zt(a)), Wn.set(a, o), o;
|
|
1295
|
+
}
|
|
1296
|
+
var s = !(a.f & 512) && !qr && H !== null && !!(H.f & 512), c = (a.f & Ne) === 0;
|
|
1297
|
+
si(a) && (s && (a.f |= 512), Qt(a)), s && !c && (en(a), mi(a));
|
|
1298
|
+
}
|
|
1299
|
+
if (sn?.has(e)) return sn.get(e);
|
|
1300
|
+
if (e.f & 8388608) throw e.v;
|
|
1301
|
+
return e.v;
|
|
1302
|
+
}
|
|
1303
|
+
function mi(e) {
|
|
1304
|
+
if (e.f |= 512, e.deps !== null) for (let n of e.deps) {
|
|
1305
|
+
var t = n.reactions;
|
|
1306
|
+
t === null ? n.reactions = [e] : fe.call(t, e) || t.push(e), n.f & 2 && !(n.f & 512) && (en(n), mi(n));
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
function hi(e) {
|
|
1310
|
+
if (e.v === T) return !0;
|
|
1311
|
+
if (e.deps === null) return !1;
|
|
1312
|
+
for (let t of e.deps) if (Wn.has(t) || t.f & 2 && hi(t)) return !0;
|
|
1313
|
+
return !1;
|
|
1314
|
+
}
|
|
1315
|
+
function gi(e) {
|
|
1316
|
+
var t = qr;
|
|
1317
|
+
try {
|
|
1318
|
+
return qr = !0, e();
|
|
1319
|
+
} finally {
|
|
1320
|
+
qr = t;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
function _i(e) {
|
|
1324
|
+
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1325
|
+
if (He in e) vi(e);
|
|
1326
|
+
else if (!Array.isArray(e)) for (let t in e) {
|
|
1327
|
+
let n = e[t];
|
|
1328
|
+
typeof n == "object" && n && He in n && vi(n);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
function vi(e, t = /* @__PURE__ */ new Set()) {
|
|
1333
|
+
if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
|
|
1334
|
+
t.add(e), e instanceof Date && e.getTime();
|
|
1335
|
+
for (let n in e) try {
|
|
1336
|
+
vi(e[n], t);
|
|
1337
|
+
} catch {}
|
|
1338
|
+
let n = ye(e);
|
|
1339
|
+
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1340
|
+
let t = ge(n);
|
|
1341
|
+
for (let n in t) {
|
|
1342
|
+
let r = t[n].get;
|
|
1343
|
+
if (r) try {
|
|
1344
|
+
r.call(e);
|
|
1345
|
+
} catch {}
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
function yi(e) {
|
|
1351
|
+
return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
|
|
1352
|
+
}
|
|
1353
|
+
var bi = [
|
|
1354
|
+
"beforeinput",
|
|
1355
|
+
"click",
|
|
1356
|
+
"change",
|
|
1357
|
+
"dblclick",
|
|
1358
|
+
"contextmenu",
|
|
1359
|
+
"focusin",
|
|
1360
|
+
"focusout",
|
|
1361
|
+
"input",
|
|
1362
|
+
"keydown",
|
|
1363
|
+
"keyup",
|
|
1364
|
+
"mousedown",
|
|
1365
|
+
"mousemove",
|
|
1366
|
+
"mouseout",
|
|
1367
|
+
"mouseover",
|
|
1368
|
+
"mouseup",
|
|
1369
|
+
"pointerdown",
|
|
1370
|
+
"pointermove",
|
|
1371
|
+
"pointerout",
|
|
1372
|
+
"pointerover",
|
|
1373
|
+
"pointerup",
|
|
1374
|
+
"touchend",
|
|
1375
|
+
"touchmove",
|
|
1376
|
+
"touchstart"
|
|
1377
|
+
];
|
|
1378
|
+
function xi(e) {
|
|
1379
|
+
return bi.includes(e);
|
|
1380
|
+
}
|
|
1381
|
+
var Si = /* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split("."), Ci = {
|
|
1382
|
+
formnovalidate: "formNoValidate",
|
|
1383
|
+
ismap: "isMap",
|
|
1384
|
+
nomodule: "noModule",
|
|
1385
|
+
playsinline: "playsInline",
|
|
1386
|
+
readonly: "readOnly",
|
|
1387
|
+
defaultvalue: "defaultValue",
|
|
1388
|
+
defaultchecked: "defaultChecked",
|
|
1389
|
+
srcobject: "srcObject",
|
|
1390
|
+
novalidate: "noValidate",
|
|
1391
|
+
allowfullscreen: "allowFullscreen",
|
|
1392
|
+
disablepictureinpicture: "disablePictureInPicture",
|
|
1393
|
+
disableremoteplayback: "disableRemotePlayback"
|
|
1394
|
+
};
|
|
1395
|
+
function wi(e) {
|
|
1396
|
+
return e = e.toLowerCase(), Ci[e] ?? e;
|
|
1397
|
+
}
|
|
1398
|
+
[...Si];
|
|
1399
|
+
var Ti = ["touchstart", "touchmove"];
|
|
1400
|
+
function Ei(e) {
|
|
1401
|
+
return Ti.includes(e);
|
|
1402
|
+
}
|
|
1403
|
+
var Di = [
|
|
1404
|
+
"textarea",
|
|
1405
|
+
"script",
|
|
1406
|
+
"style",
|
|
1407
|
+
"title"
|
|
1408
|
+
];
|
|
1409
|
+
function Oi(e) {
|
|
1410
|
+
return Di.includes(e);
|
|
1411
|
+
}
|
|
1412
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dev/css.js
|
|
1413
|
+
var ki = Symbol("events"), Ai = /* @__PURE__ */ new Set(), ji = /* @__PURE__ */ new Set();
|
|
1414
|
+
function Mi(e, t, n, r = {}) {
|
|
1415
|
+
function i(e) {
|
|
1416
|
+
if (r.capture || Ri.call(t, e), !e.cancelBubble) return Vt(() => n?.call(this, e));
|
|
1417
|
+
}
|
|
1418
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? (i.__removed = !1, Pt(() => {
|
|
1419
|
+
i.__removed || t.addEventListener(e, i, r);
|
|
1420
|
+
})) : t.addEventListener(e, i, r), i;
|
|
1421
|
+
}
|
|
1422
|
+
function Ni(e, t, n, r, i) {
|
|
1423
|
+
var a = {
|
|
1424
|
+
capture: r,
|
|
1425
|
+
passive: i
|
|
1426
|
+
}, o = Mi(e, t, n, a);
|
|
1427
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && wr(() => {
|
|
1428
|
+
o.__removed = !0, t.removeEventListener(e, o, a);
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
function Pi(e, t, n) {
|
|
1432
|
+
(t[ki] ?? (t[ki] = {}))[e] = n;
|
|
1433
|
+
}
|
|
1434
|
+
function Fi(e) {
|
|
1435
|
+
for (var t = 0; t < e.length; t++) Ai.add(e[t]);
|
|
1436
|
+
for (var n of ji) n(e);
|
|
1437
|
+
}
|
|
1438
|
+
var Ii = null, Li = !1;
|
|
1439
|
+
function Ri(e) {
|
|
1440
|
+
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1441
|
+
Ii = e, Li || (Li = !0, setTimeout(() => {
|
|
1442
|
+
Li = !1, Ii = null;
|
|
1443
|
+
}));
|
|
1444
|
+
var o = 0, s = Ii === e && e[ki];
|
|
1445
|
+
if (s) {
|
|
1446
|
+
var c = i.indexOf(s);
|
|
1447
|
+
if (c !== -1 && (t === document || t === window)) {
|
|
1448
|
+
e[ki] = t;
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
var l = i.indexOf(t);
|
|
1452
|
+
if (l === -1) return;
|
|
1453
|
+
c <= l && (o = c);
|
|
1454
|
+
}
|
|
1455
|
+
if (a = i[o] || e.target, a !== t) {
|
|
1456
|
+
me(e, "currentTarget", {
|
|
1457
|
+
configurable: !0,
|
|
1458
|
+
get() {
|
|
1459
|
+
return a || n;
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
1462
|
+
var u = H, d = U;
|
|
1463
|
+
Jr(null), Yr(null);
|
|
1464
|
+
try {
|
|
1465
|
+
for (var f, p = []; a !== null && a !== t;) {
|
|
1466
|
+
try {
|
|
1467
|
+
var m = a[ki]?.[r];
|
|
1468
|
+
m == null || a.disabled && e.target !== a || m.call(a, e);
|
|
1469
|
+
} catch (e) {
|
|
1470
|
+
f ? p.push(e) : f = e;
|
|
1471
|
+
}
|
|
1472
|
+
if (e.cancelBubble) break;
|
|
1473
|
+
o++, a = o < i.length ? i[o] : null;
|
|
1474
|
+
}
|
|
1475
|
+
if (f) {
|
|
1476
|
+
for (let e of p) queueMicrotask(() => {
|
|
1477
|
+
throw e;
|
|
1478
|
+
});
|
|
1479
|
+
throw f;
|
|
1480
|
+
}
|
|
1481
|
+
} finally {
|
|
1482
|
+
e[ki] = t, delete e.currentTarget, Jr(u), Yr(d);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1487
|
+
var zi = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1488
|
+
function Bi(e) {
|
|
1489
|
+
return zi?.createHTML(e) ?? e;
|
|
1490
|
+
}
|
|
1491
|
+
function Vi(e) {
|
|
1492
|
+
var t = gr("template");
|
|
1493
|
+
return t.innerHTML = Bi(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1494
|
+
}
|
|
1495
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/template.js
|
|
1496
|
+
function Hi(e, t) {
|
|
1497
|
+
var n = U;
|
|
1498
|
+
n.nodes === null && (n.nodes = {
|
|
1499
|
+
start: e,
|
|
1500
|
+
end: t,
|
|
1501
|
+
a: null,
|
|
1502
|
+
t: null
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
1506
|
+
function G(e, t) {
|
|
1507
|
+
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1508
|
+
return () => {
|
|
1509
|
+
if (E) return Hi(D, null), D;
|
|
1510
|
+
i === void 0 && (i = Vi(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ cr(i)));
|
|
1511
|
+
var t = r || rr ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1512
|
+
if (n) {
|
|
1513
|
+
var o = /* @__PURE__ */ cr(t), s = t.lastChild;
|
|
1514
|
+
Hi(o, s);
|
|
1515
|
+
} else Hi(t, t);
|
|
1516
|
+
return t;
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
function Ui(e = "") {
|
|
1520
|
+
if (!E) {
|
|
1521
|
+
var t = sr(e + "");
|
|
1522
|
+
return Hi(t, t), t;
|
|
1523
|
+
}
|
|
1524
|
+
var n = D;
|
|
1525
|
+
return n.nodeType === 3 ? _r(n) : (n.before(n = sr()), O(n)), Hi(n, n), n;
|
|
1526
|
+
}
|
|
1527
|
+
function Wi() {
|
|
1528
|
+
if (E) return Hi(D, null), D;
|
|
1529
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = sr();
|
|
1530
|
+
return e.append(t, n), Hi(t, n), e;
|
|
1531
|
+
}
|
|
1532
|
+
function K(e, t) {
|
|
1533
|
+
if (E) {
|
|
1534
|
+
var n = U;
|
|
1535
|
+
n.f & 32768 && n.nodes.end !== null || (n.nodes.end = D), st();
|
|
1536
|
+
} else e !== null && e.before(t);
|
|
1537
|
+
}
|
|
1538
|
+
function Gi() {
|
|
1539
|
+
var e, t;
|
|
1540
|
+
if (E && D && D.nodeType === 8 && D.textContent?.startsWith("$")) {
|
|
1541
|
+
let e = D.textContent.substring(1);
|
|
1542
|
+
return st(), e;
|
|
1543
|
+
}
|
|
1544
|
+
return (e = (t = window).__svelte ?? (t.__svelte = {})).uid ?? (e.uid = 1), `c${window.__svelte.uid++}`;
|
|
1545
|
+
}
|
|
1546
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1547
|
+
function Ki(e) {
|
|
1548
|
+
let t = 0, n = Kn(0), r;
|
|
1549
|
+
return () => {
|
|
1550
|
+
Cr() && (W(n), Ar(() => (t === 0 && (r = gi(() => e(() => z(n)))), t += 1, () => {
|
|
1551
|
+
Pt(() => {
|
|
1552
|
+
--t, t === 0 && (r?.(), r = void 0, z(n));
|
|
1553
|
+
});
|
|
1554
|
+
})));
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1558
|
+
var qi = Fe | Ie;
|
|
1559
|
+
function Ji(e, t, n, r) {
|
|
1560
|
+
new ua(e, t, n, r);
|
|
1561
|
+
}
|
|
1562
|
+
var Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakSet(), ua = class {
|
|
1563
|
+
constructor(e, t, n, r) {
|
|
1564
|
+
nn(this, q), w(this, "parent", void 0), w(this, "is_pending", !1), w(this, "transform_error", void 0), j(this, Yi, void 0), j(this, Xi, E ? D : null), j(this, Zi, void 0), j(this, Qi, void 0), j(this, $i, void 0), j(this, ea, null), j(this, ta, null), j(this, na, null), j(this, ra, null), j(this, ia, 0), j(this, aa, 0), j(this, oa, !1), j(this, sa, /* @__PURE__ */ new Map()), j(this, ca, null), j(this, la, Ki(() => (P(ca, this, Kn(N(ia, this))), () => {
|
|
1565
|
+
P(ca, this, null);
|
|
1566
|
+
}))), P(Yi, this, e), P(Zi, this, t), P(Qi, this, (e) => {
|
|
1567
|
+
var t = U;
|
|
1568
|
+
t.b = this, t.f |= 128, n(e);
|
|
1569
|
+
}), this.parent = U.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), P($i, this, jr(() => {
|
|
1570
|
+
if (E) {
|
|
1571
|
+
let e = dt(N(Xi, this));
|
|
1572
|
+
st();
|
|
1573
|
+
let t = e === "[!";
|
|
1574
|
+
if (e.startsWith("[?")) {
|
|
1575
|
+
let t = JSON.parse(e.slice(2));
|
|
1576
|
+
M(q, this, fa).call(this, t);
|
|
1577
|
+
} else t ? M(q, this, ha).call(this) : M(q, this, da).call(this);
|
|
1578
|
+
} else M(q, this, ga).call(this);
|
|
1579
|
+
}, qi)), E && P(Yi, this, D);
|
|
1580
|
+
}
|
|
1581
|
+
defer_effect(e) {
|
|
1582
|
+
Lt(e, N(sa, this));
|
|
1583
|
+
}
|
|
1584
|
+
is_rendered() {
|
|
1585
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1586
|
+
}
|
|
1587
|
+
has_pending_snippet() {
|
|
1588
|
+
return !!N(Zi, this).pending;
|
|
1589
|
+
}
|
|
1590
|
+
update_pending_count(e, t) {
|
|
1591
|
+
M(q, this, ya).call(this, e, t), P(ia, this, N(ia, this) + e), N(ca, this) && !N(oa, this) && (P(oa, this, !0), Pt(() => {
|
|
1592
|
+
P(oa, this, !1), N(ca, this) && Xn(N(ca, this), N(ia, this));
|
|
1593
|
+
}));
|
|
1594
|
+
}
|
|
1595
|
+
get_effect_pending() {
|
|
1596
|
+
return N(la, this).call(this), W(N(ca, this));
|
|
1597
|
+
}
|
|
1598
|
+
error(e) {
|
|
1599
|
+
if (e === $e || !N(Zi, this).onerror && !N(Zi, this).failed) throw e;
|
|
1600
|
+
F?.is_fork ? (N(ea, this) && F.skip_effect(N(ea, this)), N(ta, this) && F.skip_effect(N(ta, this)), N(na, this) && F.skip_effect(N(na, this)), F.oncommit(() => {
|
|
1601
|
+
M(q, this, ma).call(this) || M(q, this, ba).call(this, e);
|
|
1602
|
+
})) : M(q, this, ba).call(this, e);
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
function da() {
|
|
1606
|
+
try {
|
|
1607
|
+
P(ea, this, Nr(() => N(Qi, this).call(this, N(Yi, this))));
|
|
1608
|
+
} catch (e) {
|
|
1609
|
+
this.error(e);
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
function fa(e) {
|
|
1613
|
+
let t = N(Zi, this).failed, { reset: n, invoke_onerror: r } = M(q, this, pa).call(this, e);
|
|
1614
|
+
Pt(r), t && P(na, this, Nr(() => {
|
|
1615
|
+
t(N(Yi, this), () => e, () => n);
|
|
1616
|
+
}));
|
|
1617
|
+
}
|
|
1618
|
+
function pa(e) {
|
|
1619
|
+
var t = !1, n = !1;
|
|
1620
|
+
let r = () => {
|
|
1621
|
+
M(q, this, ma).call(this) || (t ? at() : (t = !0, n && Tt(), N(na, this) !== null && zr(N(na, this), () => {
|
|
1622
|
+
P(na, this, null);
|
|
1623
|
+
}), M(q, this, va).call(this, () => {
|
|
1624
|
+
M(q, this, ga).call(this);
|
|
1625
|
+
})));
|
|
1626
|
+
};
|
|
1627
|
+
return {
|
|
1628
|
+
reset: r,
|
|
1629
|
+
invoke_onerror: () => {
|
|
1630
|
+
if (!M(q, this, ma).call(this)) try {
|
|
1631
|
+
n = !0, N(Zi, this).onerror?.(e, r), n = !1;
|
|
1632
|
+
} catch (e) {
|
|
1633
|
+
yr(e, N($i, this) && N($i, this).parent);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
function ma() {
|
|
1639
|
+
return (N($i, this).f & (Me | Pe)) !== 0;
|
|
1640
|
+
}
|
|
1641
|
+
function ha() {
|
|
1642
|
+
let e = N(Zi, this).pending;
|
|
1643
|
+
e && (this.is_pending = !0, P(ta, this, Nr(() => e(N(Yi, this)))), Pt(() => {
|
|
1644
|
+
if (!M(q, this, ma).call(this)) {
|
|
1645
|
+
var e = P(ra, this, document.createDocumentFragment()), t = sr(), n = !1;
|
|
1646
|
+
e.append(t), P(ea, this, M(q, this, va).call(this, () => {
|
|
1647
|
+
try {
|
|
1648
|
+
return Nr(() => N(Qi, this).call(this, t));
|
|
1649
|
+
} catch (e) {
|
|
1650
|
+
try {
|
|
1651
|
+
this.error(e), n = !0;
|
|
1652
|
+
} catch (e) {
|
|
1653
|
+
yr(e, N($i, this).parent);
|
|
1654
|
+
}
|
|
1655
|
+
return null;
|
|
1656
|
+
}
|
|
1657
|
+
})), N(ea, this) === null ? (P(ra, this, null), n && M(q, this, _a).call(this, F)) : N(aa, this) === 0 && (N(Yi, this).before(e), P(ra, this, null), zr(N(ta, this), () => {
|
|
1658
|
+
P(ta, this, null);
|
|
1659
|
+
}), M(q, this, _a).call(this, F));
|
|
1660
|
+
}
|
|
1661
|
+
}));
|
|
1662
|
+
}
|
|
1663
|
+
function ga() {
|
|
1664
|
+
try {
|
|
1665
|
+
if (this.is_pending = this.has_pending_snippet(), P(aa, this, 0), P(ia, this, 0), P(ea, this, Nr(() => {
|
|
1666
|
+
N(Qi, this).call(this, N(Yi, this));
|
|
1667
|
+
})), N(aa, this) > 0) {
|
|
1668
|
+
var e = P(ra, this, document.createDocumentFragment());
|
|
1669
|
+
Ur(N(ea, this), e);
|
|
1670
|
+
let t = N(Zi, this).pending;
|
|
1671
|
+
P(ta, this, Nr(() => t(N(Yi, this))));
|
|
1672
|
+
} else M(q, this, _a).call(this, F);
|
|
1673
|
+
} catch (e) {
|
|
1674
|
+
this.error(e);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
function _a(e) {
|
|
1678
|
+
this.is_pending = !1, e.transfer_reactions(N(sa, this));
|
|
1679
|
+
}
|
|
1680
|
+
function va(e) {
|
|
1681
|
+
var t = U, n = H, r = Et;
|
|
1682
|
+
Yr(N($i, this)), Jr(N($i, this)), Dt(N($i, this).ctx);
|
|
1683
|
+
try {
|
|
1684
|
+
return En.ensure(), e();
|
|
1685
|
+
} finally {
|
|
1686
|
+
Yr(t), Jr(n), Dt(r);
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
function ya(e, t) {
|
|
1690
|
+
if (this.has_pending_snippet()) P(aa, this, N(aa, this) + e), N(aa, this) === 0 && (M(q, this, _a).call(this, t), N(ta, this) && zr(N(ta, this), () => {
|
|
1691
|
+
P(ta, this, null);
|
|
1692
|
+
}), N(ra, this) && (N(Yi, this).before(N(ra, this)), P(ra, this, null)));
|
|
1693
|
+
else if (this.parent) {
|
|
1694
|
+
var n;
|
|
1695
|
+
M(q, n = this.parent, ya).call(n, e, t);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
function ba(e) {
|
|
1699
|
+
N(ea, this) && (V(N(ea, this)), P(ea, this, null)), N(ta, this) && (V(N(ta, this)), P(ta, this, null)), N(na, this) && (V(N(na, this)), P(na, this, null)), E && (O(N(Xi, this)), lt(), O(ut()));
|
|
1700
|
+
let t = N(Zi, this).failed, n = (e) => {
|
|
1701
|
+
if (M(q, this, ma).call(this)) return;
|
|
1702
|
+
let { reset: n, invoke_onerror: r } = M(q, this, pa).call(this, e);
|
|
1703
|
+
r(), t && !M(q, this, ma).call(this) && P(na, this, M(q, this, va).call(this, () => {
|
|
1704
|
+
try {
|
|
1705
|
+
return Nr(() => {
|
|
1706
|
+
var r = U;
|
|
1707
|
+
r.b = this, r.f |= 128, t(N(Yi, this), () => e, () => n);
|
|
1708
|
+
});
|
|
1709
|
+
} catch (e) {
|
|
1710
|
+
return yr(e, N($i, this).parent), null;
|
|
1711
|
+
}
|
|
1712
|
+
}));
|
|
1713
|
+
};
|
|
1714
|
+
Pt(() => {
|
|
1715
|
+
if (!M(q, this, ma).call(this)) {
|
|
1716
|
+
var t;
|
|
1717
|
+
try {
|
|
1718
|
+
t = this.transform_error(e);
|
|
1719
|
+
} catch (e) {
|
|
1720
|
+
yr(e, N($i, this) && N($i, this).parent);
|
|
1721
|
+
return;
|
|
1722
|
+
}
|
|
1723
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => yr(e, N($i, this) && N($i, this).parent)) : n(t);
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
function J(e, t) {
|
|
1728
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1729
|
+
n !== (e[Ye] ?? (e[Ye] = e.nodeValue)) && (e[Ye] = n, e.nodeValue = `${n}`);
|
|
1730
|
+
}
|
|
1731
|
+
function xa(e, t) {
|
|
1732
|
+
return Ca(e, t);
|
|
1733
|
+
}
|
|
1734
|
+
var Sa = /* @__PURE__ */ new Map();
|
|
1735
|
+
function Ca(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
|
|
1736
|
+
or();
|
|
1737
|
+
var c = void 0, l = Dr(() => {
|
|
1738
|
+
var o = n ?? t.appendChild(sr());
|
|
1739
|
+
Ji(o, { pending: () => {} }, (t) => {
|
|
1740
|
+
Ot({});
|
|
1741
|
+
var n = Et;
|
|
1742
|
+
if (a && (n.c = a), i && (r.$$events = i), E && Hi(t, null), c = e(t, r) || At(), E && (U.nodes.end = D, D === null || D.nodeType !== 8 || D.data !== "]")) throw rt(), $e;
|
|
1743
|
+
kt();
|
|
1744
|
+
}, s);
|
|
1745
|
+
var l = /* @__PURE__ */ new Set(), u = (e) => {
|
|
1746
|
+
for (var n = 0; n < e.length; n++) {
|
|
1747
|
+
var r = e[n];
|
|
1748
|
+
if (!l.has(r)) {
|
|
1749
|
+
l.add(r);
|
|
1750
|
+
var i = Ei(r);
|
|
1751
|
+
for (let e of [t, document]) {
|
|
1752
|
+
var a = Sa.get(e);
|
|
1753
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), Sa.set(e, a));
|
|
1754
|
+
var o = a.get(r);
|
|
1755
|
+
o === void 0 ? (e.addEventListener(r, Ri, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
};
|
|
1760
|
+
return u(pe(Ai)), ji.add(u), () => {
|
|
1761
|
+
for (var e of l) for (let n of [t, document]) {
|
|
1762
|
+
var r = Sa.get(n), i = r.get(e);
|
|
1763
|
+
--i == 0 ? (n.removeEventListener(e, Ri), r.delete(e), r.size === 0 && Sa.delete(n)) : r.set(e, i);
|
|
1764
|
+
}
|
|
1765
|
+
ji.delete(u), o !== n && o.parentNode?.removeChild(o);
|
|
1766
|
+
};
|
|
1767
|
+
});
|
|
1768
|
+
return wa.set(c, l), c;
|
|
1769
|
+
}
|
|
1770
|
+
var wa = /* @__PURE__ */ new WeakMap();
|
|
1771
|
+
function Ta(e, t) {
|
|
1772
|
+
let n = wa.get(e);
|
|
1773
|
+
return n ? (wa.delete(e), n(t)) : Promise.resolve();
|
|
1774
|
+
}
|
|
1775
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1776
|
+
var Ea = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), ja = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Na = class {
|
|
1777
|
+
constructor(e, t = !0) {
|
|
1778
|
+
w(this, "anchor", void 0), j(this, Ea, /* @__PURE__ */ new Map()), j(this, Da, /* @__PURE__ */ new Map()), j(this, Oa, /* @__PURE__ */ new Map()), j(this, ka, /* @__PURE__ */ new Set()), j(this, Aa, !0), j(this, ja, (e) => {
|
|
1779
|
+
if (N(Ea, this).has(e)) {
|
|
1780
|
+
var t = N(Ea, this).get(e), n = N(Da, this).get(t);
|
|
1781
|
+
if (n) Vr(n), N(ka, this).delete(t);
|
|
1782
|
+
else {
|
|
1783
|
+
var r = N(Oa, this).get(t);
|
|
1784
|
+
r && (Vr(r.effect), N(Da, this).set(t, r.effect), N(Oa, this).delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1785
|
+
}
|
|
1786
|
+
for (let [t, n] of N(Ea, this)) {
|
|
1787
|
+
if (N(Ea, this).delete(t), t === e) break;
|
|
1788
|
+
let r = N(Oa, this).get(n);
|
|
1789
|
+
r && (V(r.effect), N(Oa, this).delete(n));
|
|
1790
|
+
}
|
|
1791
|
+
for (let [e, r] of N(Da, this)) {
|
|
1792
|
+
if (e === t || N(ka, this).has(e)) continue;
|
|
1793
|
+
let i = () => {
|
|
1794
|
+
if (Array.from(N(Ea, this).values()).includes(e)) {
|
|
1795
|
+
var t = document.createDocumentFragment();
|
|
1796
|
+
Ur(r, t), t.append(sr()), N(Oa, this).set(e, {
|
|
1797
|
+
effect: r,
|
|
1798
|
+
fragment: t
|
|
1799
|
+
});
|
|
1800
|
+
} else V(r);
|
|
1801
|
+
N(ka, this).delete(e), N(Da, this).delete(e);
|
|
1802
|
+
};
|
|
1803
|
+
N(Aa, this) || !n ? (N(ka, this).add(e), zr(r, i, !1)) : i();
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}), j(this, Ma, (e) => {
|
|
1807
|
+
N(Ea, this).delete(e);
|
|
1808
|
+
let t = Array.from(N(Ea, this).values());
|
|
1809
|
+
for (let [e, n] of N(Oa, this)) t.includes(e) || (V(n.effect), N(Oa, this).delete(e));
|
|
1810
|
+
}), this.anchor = e, P(Aa, this, t);
|
|
1811
|
+
}
|
|
1812
|
+
ensure(e, t) {
|
|
1813
|
+
var n = F, r = hr();
|
|
1814
|
+
if (t && !N(Da, this).has(e) && !N(Oa, this).has(e)) {
|
|
1815
|
+
if (r) {
|
|
1816
|
+
var i = document.createDocumentFragment(), a = sr();
|
|
1817
|
+
i.append(a), N(Oa, this).set(e, {
|
|
1818
|
+
effect: Nr(() => t(a)),
|
|
1819
|
+
fragment: i
|
|
1820
|
+
});
|
|
1821
|
+
} else N(Da, this).set(e, Nr(() => t(this.anchor)));
|
|
1822
|
+
}
|
|
1823
|
+
if (N(Ea, this).set(n, e), r) {
|
|
1824
|
+
for (let [t, r] of N(Da, this)) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1825
|
+
for (let [t, r] of N(Oa, this)) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1826
|
+
n.oncommit(N(ja, this)), n.ondiscard(N(Ma, this));
|
|
1827
|
+
} else E && (this.anchor = D), N(ja, this).call(this, n);
|
|
1828
|
+
}
|
|
1829
|
+
};
|
|
1830
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1831
|
+
function Pa(e, t, n = !1) {
|
|
1832
|
+
var r;
|
|
1833
|
+
E && (r = D, st());
|
|
1834
|
+
var i = new Na(e), a = n ? Fe : 0;
|
|
1835
|
+
function o(e, t) {
|
|
1836
|
+
if (E) {
|
|
1837
|
+
var n = dt(r);
|
|
1838
|
+
if (e !== parseInt(n.substring(1))) {
|
|
1839
|
+
var a = ut();
|
|
1840
|
+
O(a), i.anchor = a, ot(!1), i.ensure(e, t), ot(!0);
|
|
1841
|
+
return;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
i.ensure(e, t);
|
|
1845
|
+
}
|
|
1846
|
+
jr(() => {
|
|
1847
|
+
var e = !1;
|
|
1848
|
+
t((t, n = 0) => {
|
|
1849
|
+
e = !0, o(n, t);
|
|
1850
|
+
}), e || o(-1, null);
|
|
1851
|
+
}, a);
|
|
1852
|
+
}
|
|
1853
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1854
|
+
function Fa(e, t) {
|
|
1855
|
+
return t;
|
|
1856
|
+
}
|
|
1857
|
+
function Ia(e, t, n) {
|
|
1858
|
+
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1859
|
+
let n = t[s];
|
|
1860
|
+
zr(n, () => {
|
|
1861
|
+
if (a) {
|
|
1862
|
+
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1863
|
+
var t = e.outrogroups;
|
|
1864
|
+
La(e, pe(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1865
|
+
}
|
|
1866
|
+
} else --o;
|
|
1867
|
+
}, !1);
|
|
1868
|
+
}
|
|
1869
|
+
if (o === 0) {
|
|
1870
|
+
var c = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1871
|
+
if (c) {
|
|
1872
|
+
var l = n, u = l.parentNode;
|
|
1873
|
+
mr(u), u.append(l), e.items.clear();
|
|
1874
|
+
}
|
|
1875
|
+
La(e, t, !c);
|
|
1876
|
+
} else a = {
|
|
1877
|
+
pending: new Set(t),
|
|
1878
|
+
done: /* @__PURE__ */ new Set()
|
|
1879
|
+
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(a);
|
|
1880
|
+
}
|
|
1881
|
+
function La(e, t, n = !0) {
|
|
1882
|
+
var r;
|
|
1883
|
+
if (e.pending.size > 0) {
|
|
1884
|
+
r = /* @__PURE__ */ new Set();
|
|
1885
|
+
for (let t of e.pending.values()) for (let n of t) r.add(e.items.get(n).e);
|
|
1886
|
+
}
|
|
1887
|
+
for (var i = 0; i < t.length; i++) {
|
|
1888
|
+
var a = t[i];
|
|
1889
|
+
r?.has(a) ? (a.f |= Re, Ur(a, document.createDocumentFragment())) : V(t[i], n);
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
var Ra;
|
|
1893
|
+
function za(e, t, n, r, i, a = null) {
|
|
1894
|
+
var o = e, s = /* @__PURE__ */ new Map();
|
|
1895
|
+
if (t & 4) {
|
|
1896
|
+
var c = e;
|
|
1897
|
+
o = E ? O(/* @__PURE__ */ cr(c)) : c.appendChild(sr());
|
|
1898
|
+
}
|
|
1899
|
+
E && st();
|
|
1900
|
+
var l = null, u = /* @__PURE__ */ Yt(() => {
|
|
1901
|
+
var e = n();
|
|
1902
|
+
return ue(e) ? e : e == null ? [] : pe(e);
|
|
1903
|
+
}), d = /* @__PURE__ */ new Map(), f = !0;
|
|
1904
|
+
function p(e) {
|
|
1905
|
+
if (!(h.effect.f & 16384)) {
|
|
1906
|
+
h.pending.delete(e);
|
|
1907
|
+
var n = W(u);
|
|
1908
|
+
h.fallback = l, Va(h, n, o, t, r), l !== null && (n.length === 0 ? l.f & 33554432 ? (l.f ^= Re, Ua(l, null, o)) : Vr(l) : zr(l, () => {
|
|
1909
|
+
l = null;
|
|
1910
|
+
}));
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
function m(e) {
|
|
1914
|
+
h.pending.delete(e);
|
|
1915
|
+
}
|
|
1916
|
+
var h = {
|
|
1917
|
+
effect: jr(() => {
|
|
1918
|
+
var e = W(u), c = e.length;
|
|
1919
|
+
let h = !1;
|
|
1920
|
+
E && dt(o) === "[!" != (c === 0) && (o = ut(), O(o), ot(!1), h = !0);
|
|
1921
|
+
for (var g = /* @__PURE__ */ new Set(), _ = F, v = hr(), y = 0; y < c; y += 1) {
|
|
1922
|
+
E && D.nodeType === 8 && D.data === "]" && (o = D, h = !0, ot(!1));
|
|
1923
|
+
var b = e[y], ee = r(b, y), x = f ? null : s.get(ee);
|
|
1924
|
+
x ? (x.v && Xn(x.v, b), x.i && Xn(x.i, y), v && _.unskip_effect(x.e)) : (x = Ha(s, f ? o : Ra ?? (Ra = sr()), b, ee, y, i, t, n), f || (x.e.f |= Re), s.set(ee, x)), g.add(ee);
|
|
1925
|
+
}
|
|
1926
|
+
if (c === 0 && a && !l && (f ? l = Nr(() => a(o)) : (l = Nr(() => a(Ra ?? (Ra = sr()))), l.f |= Re)), c > g.size && gt("", "", ""), E && c > 0 && O(ut()), !f) {
|
|
1927
|
+
if (d.set(_, g), v) {
|
|
1928
|
+
for (let [e, t] of s) g.has(e) || _.skip_effect(t.e);
|
|
1929
|
+
_.oncommit(p), _.ondiscard(m);
|
|
1930
|
+
} else p(_);
|
|
1931
|
+
}
|
|
1932
|
+
h && ot(!0), W(u);
|
|
1933
|
+
}),
|
|
1934
|
+
flags: t,
|
|
1935
|
+
items: s,
|
|
1936
|
+
pending: d,
|
|
1937
|
+
outrogroups: null,
|
|
1938
|
+
fallback: l
|
|
1939
|
+
};
|
|
1940
|
+
f = !1, E && (o = D);
|
|
1941
|
+
}
|
|
1942
|
+
function Ba(e) {
|
|
1943
|
+
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1944
|
+
return e;
|
|
1945
|
+
}
|
|
1946
|
+
function Va(e, t, n, r, i) {
|
|
1947
|
+
var a = !!(r & 8), o = t.length, s = e.items, c = Ba(e.effect.first), l, u = null, d, f = [], p = [], m, h, g, _;
|
|
1948
|
+
if (a) for (_ = 0; _ < o; _ += 1) m = t[_], h = i(m, _), g = s.get(h).e, g.f & 33554432 || (g.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(g));
|
|
1949
|
+
for (_ = 0; _ < o; _ += 1) {
|
|
1950
|
+
if (m = t[_], h = i(m, _), g = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(g), t.done.delete(g);
|
|
1951
|
+
if (g.f & 8192 && (Vr(g), a && (g.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(g))), g.f & 33554432) {
|
|
1952
|
+
if (g.f ^= Re, g === c) Ua(g, null, n);
|
|
1953
|
+
else {
|
|
1954
|
+
var v = u ? u.next : c;
|
|
1955
|
+
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Wa(e, u, g), Wa(e, g, v), Ua(g, v, n), u = g, f = [], p = [], c = Ba(u.next);
|
|
1956
|
+
continue;
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
if (g !== c) {
|
|
1960
|
+
if (l !== void 0 && l.has(g)) {
|
|
1961
|
+
if (f.length < p.length) {
|
|
1962
|
+
var y = p[0], b;
|
|
1963
|
+
u = y.prev;
|
|
1964
|
+
var ee = f[0], x = f[f.length - 1];
|
|
1965
|
+
for (b = 0; b < f.length; b += 1) Ua(f[b], y, n);
|
|
1966
|
+
for (b = 0; b < p.length; b += 1) l.delete(p[b]);
|
|
1967
|
+
Wa(e, ee.prev, x.next), Wa(e, u, ee), Wa(e, x, y), c = y, u = x, --_, f = [], p = [];
|
|
1968
|
+
} else l.delete(g), Ua(g, c, n), Wa(e, g.prev, g.next), Wa(e, g, u === null ? e.effect.first : u.next), Wa(e, u, g), u = g;
|
|
1969
|
+
continue;
|
|
1970
|
+
}
|
|
1971
|
+
for (f = [], p = []; c !== null && c !== g;) (l ?? (l = /* @__PURE__ */ new Set())).add(c), p.push(c), c = Ba(c.next);
|
|
1972
|
+
if (c === null) continue;
|
|
1973
|
+
}
|
|
1974
|
+
g.f & 33554432 || f.push(g), u = g, c = Ba(g.next);
|
|
1975
|
+
}
|
|
1976
|
+
if (e.outrogroups !== null) {
|
|
1977
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (La(e, pe(t.done)), e.outrogroups?.delete(t));
|
|
1978
|
+
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1979
|
+
}
|
|
1980
|
+
if (c !== null || l !== void 0) {
|
|
1981
|
+
var S = [];
|
|
1982
|
+
if (l !== void 0) for (g of l) g.f & 8192 || S.push(g);
|
|
1983
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && S.push(c), c = Ba(c.next);
|
|
1984
|
+
var te = S.length;
|
|
1985
|
+
if (te > 0) {
|
|
1986
|
+
var ne = r & 4 && o === 0 ? n : null;
|
|
1987
|
+
if (a) {
|
|
1988
|
+
for (_ = 0; _ < te; _ += 1) S[_].nodes?.a?.measure();
|
|
1989
|
+
for (_ = 0; _ < te; _ += 1) S[_].nodes?.a?.fix();
|
|
1990
|
+
}
|
|
1991
|
+
Ia(e, S, ne);
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
a && Pt(() => {
|
|
1995
|
+
if (d !== void 0) for (g of d) g.nodes?.a?.apply();
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
function Ha(e, t, n, r, i, a, o, s) {
|
|
1999
|
+
var c = o & 1 ? o & 16 ? Kn(n) : /* @__PURE__ */ qn(n, !1, !1) : null, l = o & 2 ? Kn(i) : null;
|
|
2000
|
+
return {
|
|
2001
|
+
v: c,
|
|
2002
|
+
i: l,
|
|
2003
|
+
e: Nr(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
2004
|
+
e.delete(r);
|
|
2005
|
+
}))
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
function Ua(e, t, n) {
|
|
2009
|
+
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
2010
|
+
var o = /* @__PURE__ */ lr(r);
|
|
2011
|
+
if (a.before(r), r === i) return;
|
|
2012
|
+
r = o;
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
function Wa(e, t, n) {
|
|
2016
|
+
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2017
|
+
}
|
|
2018
|
+
function Ga(e, t, n = !1, r = !1, i = !1, a = !1) {
|
|
2019
|
+
var o = e, s = "";
|
|
2020
|
+
if (n) {
|
|
2021
|
+
var c = e;
|
|
2022
|
+
E && (o = O(/* @__PURE__ */ cr(c)));
|
|
2023
|
+
}
|
|
2024
|
+
B(() => {
|
|
2025
|
+
var e = U;
|
|
2026
|
+
if (s === (s = t() ?? "")) E && st();
|
|
2027
|
+
else if (n && !E) e.nodes = null, c.innerHTML = s, s !== "" && Hi(/* @__PURE__ */ cr(c), c.lastChild);
|
|
2028
|
+
else if (e.nodes !== null && (Lr(e.nodes.start, e.nodes.end), e.nodes = null), s !== "") {
|
|
2029
|
+
if (E) {
|
|
2030
|
+
for (var a = D.data, l = st(), u = l; l !== null && (l.nodeType !== 8 || l.data !== "");) u = l, l = /* @__PURE__ */ lr(l);
|
|
2031
|
+
if (l === null) throw rt(), $e;
|
|
2032
|
+
Hi(D, u), o = O(l);
|
|
2033
|
+
} else {
|
|
2034
|
+
var d = gr(r ? "svg" : i ? "math" : "template", r ? et : i ? tt : void 0);
|
|
2035
|
+
d.innerHTML = s;
|
|
2036
|
+
var f = r || i ? d : d.content;
|
|
2037
|
+
if (Hi(/* @__PURE__ */ cr(f), f.lastChild), r || i) for (; /* @__PURE__ */ cr(f);) o.before(/* @__PURE__ */ cr(f));
|
|
2038
|
+
else o.before(f);
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
});
|
|
2042
|
+
}
|
|
2043
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js
|
|
2044
|
+
function Ka(e, t, n, r, i, a) {
|
|
2045
|
+
let o = E;
|
|
2046
|
+
E && st();
|
|
2047
|
+
var s = null;
|
|
2048
|
+
E && D.nodeType === 1 && (s = D, st());
|
|
2049
|
+
var c = E ? D : e, l = new Na(c, !1);
|
|
2050
|
+
jr(() => {
|
|
2051
|
+
let e = t() || null;
|
|
2052
|
+
var a = i ? i() : n || e === "svg" ? et : void 0;
|
|
2053
|
+
if (e === null) l.ensure(null, null);
|
|
2054
|
+
else return l.ensure(e, (t) => {
|
|
2055
|
+
if (e) {
|
|
2056
|
+
var n = E;
|
|
2057
|
+
if (s = E ? s : gr(e, a), Hi(s, s), r) {
|
|
2058
|
+
var i = null;
|
|
2059
|
+
E && Oi(e) && s.append(i = document.createComment(""));
|
|
2060
|
+
var o = E ? /* @__PURE__ */ cr(s) : s.appendChild(sr());
|
|
2061
|
+
E && (o === null ? ot(!1) : O(o)), r(s, o), i?.remove();
|
|
2062
|
+
}
|
|
2063
|
+
U.nodes.end = s, n || t.before(s);
|
|
2064
|
+
}
|
|
2065
|
+
E && O(t);
|
|
2066
|
+
}), () => {};
|
|
2067
|
+
}, Fe), wr(() => {}), o && (ot(!0), O(c));
|
|
2068
|
+
}
|
|
2069
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/css.js
|
|
2070
|
+
function qa(e, t) {
|
|
2071
|
+
Or(() => {
|
|
2072
|
+
e = U?.parent?.nodes?.start ?? e;
|
|
2073
|
+
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
2074
|
+
if (!r.querySelector("#" + t.hash)) {
|
|
2075
|
+
let e = gr("style");
|
|
2076
|
+
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
2077
|
+
}
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/actions.js
|
|
2081
|
+
function Ja(e, t, n) {
|
|
2082
|
+
Or(() => {
|
|
2083
|
+
var r = gi(() => t(e, n?.()) || {});
|
|
2084
|
+
if (n && r?.update) {
|
|
2085
|
+
var i = !1, a = {};
|
|
2086
|
+
Ar(() => {
|
|
2087
|
+
var e = n();
|
|
2088
|
+
_i(e), i && pt(a, e) && (a = e, r.update(e));
|
|
2089
|
+
}), i = !0;
|
|
2090
|
+
}
|
|
2091
|
+
if (r?.destroy) return () => r.destroy();
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/attachments.js
|
|
2095
|
+
function Ya(e, t) {
|
|
2096
|
+
var n = void 0, r;
|
|
2097
|
+
Mr(() => {
|
|
2098
|
+
n !== (n = t()) && (r && (V(r), r = null), n && (r = Nr(() => {
|
|
2099
|
+
Or(() => n(e));
|
|
2100
|
+
})));
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
// ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
2104
|
+
function Xa(e) {
|
|
2105
|
+
var t, n, r = "";
|
|
2106
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2107
|
+
else if (typeof e == "object") {
|
|
2108
|
+
if (Array.isArray(e)) {
|
|
2109
|
+
var i = e.length;
|
|
2110
|
+
for (t = 0; t < i; t++) e[t] && (n = Xa(e[t])) && (r && (r += " "), r += n);
|
|
2111
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2112
|
+
}
|
|
2113
|
+
return r;
|
|
2114
|
+
}
|
|
2115
|
+
function Za() {
|
|
2116
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Xa(e)) && (r && (r += " "), r += t);
|
|
2117
|
+
return r;
|
|
2118
|
+
}
|
|
2119
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/shared/attributes.js
|
|
2120
|
+
function Qa(e) {
|
|
2121
|
+
return typeof e == "object" ? Za(e) : e ?? "";
|
|
2122
|
+
}
|
|
2123
|
+
var $a = [..." \n\r\f\xA0\v"];
|
|
2124
|
+
function eo(e, t, n) {
|
|
2125
|
+
var r = e == null ? "" : "" + e;
|
|
2126
|
+
if (t && (r = r ? r + " " + t : t), n) {
|
|
2127
|
+
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
2128
|
+
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
2129
|
+
var s = o + a;
|
|
2130
|
+
(o === 0 || $a.includes(r[o - 1])) && (s === r.length || $a.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
return r === "" ? null : r;
|
|
2134
|
+
}
|
|
2135
|
+
function to(e, t = !1) {
|
|
2136
|
+
var n = t ? " !important;" : ";", r = "";
|
|
2137
|
+
for (var i of Object.keys(e)) {
|
|
2138
|
+
var a = e[i];
|
|
2139
|
+
a != null && a !== "" && (r += " " + i + ": " + a + n);
|
|
2140
|
+
}
|
|
2141
|
+
return r;
|
|
2142
|
+
}
|
|
2143
|
+
function no(e) {
|
|
2144
|
+
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2145
|
+
}
|
|
2146
|
+
function ro(e, t) {
|
|
2147
|
+
if (t) {
|
|
2148
|
+
var n = "", r, i;
|
|
2149
|
+
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
2150
|
+
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2151
|
+
var a = !1, o = 0, s = !1, c = [];
|
|
2152
|
+
r && c.push(...Object.keys(r).map(no)), i && c.push(...Object.keys(i).map(no));
|
|
2153
|
+
var l = 0, u = -1;
|
|
2154
|
+
let t = e.length;
|
|
2155
|
+
for (var d = 0; d < t; d++) {
|
|
2156
|
+
var f = e[d];
|
|
2157
|
+
if (s ? f === "/" && e[d - 1] === "*" && (s = !1) : a ? a === f && (a = !1) : f === "/" && e[d + 1] === "*" ? s = !0 : f === "\"" || f === "'" ? a = f : f === "(" ? o++ : f === ")" && o--, !s && a === !1 && o === 0) {
|
|
2158
|
+
if (f === ":" && u === -1) u = d;
|
|
2159
|
+
else if (f === ";" || d === t - 1) {
|
|
2160
|
+
if (u !== -1) {
|
|
2161
|
+
var p = no(e.substring(l, u).trim());
|
|
2162
|
+
if (!c.includes(p)) {
|
|
2163
|
+
f !== ";" && d++;
|
|
2164
|
+
var m = e.substring(l, d).trim();
|
|
2165
|
+
n += " " + m + ";";
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
l = d + 1, u = -1;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
return r && (n += to(r)), i && (n += to(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2174
|
+
}
|
|
2175
|
+
return e == null ? null : String(e);
|
|
2176
|
+
}
|
|
2177
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2178
|
+
function io(e, t, n, r, i, a) {
|
|
2179
|
+
var o = e[qe];
|
|
2180
|
+
if (E || o !== n || o === void 0) {
|
|
2181
|
+
var s = eo(n, r, a);
|
|
2182
|
+
E && s === e.getAttribute("class") || (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[qe] = n;
|
|
2183
|
+
} else if (a && i !== a) for (var c in a) {
|
|
2184
|
+
var l = !!a[c];
|
|
2185
|
+
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
2186
|
+
}
|
|
2187
|
+
return a;
|
|
2188
|
+
}
|
|
2189
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/style.js
|
|
2190
|
+
function ao(e, t = {}, n, r) {
|
|
2191
|
+
for (var i in n) {
|
|
2192
|
+
var a = n[i];
|
|
2193
|
+
t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
function oo(e, t, n, r) {
|
|
2197
|
+
var i = e[Je];
|
|
2198
|
+
if (E || i !== t) {
|
|
2199
|
+
var a = ro(t, r);
|
|
2200
|
+
E && a === e.getAttribute("style") || (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[Je] = t;
|
|
2201
|
+
} else r && (Array.isArray(r) ? (ao(e, n?.[0], r[0]), ao(e, n?.[1], r[1], "important")) : ao(e, n, r));
|
|
2202
|
+
return r;
|
|
2203
|
+
}
|
|
2204
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js
|
|
2205
|
+
function so(e, t) {
|
|
2206
|
+
t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
|
|
2207
|
+
}
|
|
2208
|
+
function co(e, t) {
|
|
2209
|
+
var n = !("__defaultValue" in e);
|
|
2210
|
+
(n || e.__defaultValue !== t) && (e.__defaultValue = t, lo(e, !n || "__value" in e));
|
|
2211
|
+
}
|
|
2212
|
+
function lo(e, t) {
|
|
2213
|
+
var n = e.__defaultValue, r = e.multiple, i = r ? n ?? [] : null;
|
|
2214
|
+
if (!r || ue(i)) {
|
|
2215
|
+
var a = e.selectedIndex, o = t && r ? new Set(e.selectedOptions) : null;
|
|
2216
|
+
for (var s of e.options) {
|
|
2217
|
+
var c = po(s);
|
|
2218
|
+
so(s, r ? i.includes(c) : tr(c, n));
|
|
2219
|
+
}
|
|
2220
|
+
if (t) {
|
|
2221
|
+
if (o !== null) for (s of e.options) {
|
|
2222
|
+
var l = o.has(s);
|
|
2223
|
+
s.selected !== l && (s.selected = l);
|
|
2224
|
+
}
|
|
2225
|
+
else e.selectedIndex !== a && (e.selectedIndex = a);
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
function uo(e, t, n = !1) {
|
|
2230
|
+
if (e.multiple) {
|
|
2231
|
+
if (t == null) return;
|
|
2232
|
+
if (!ue(t)) return it();
|
|
2233
|
+
for (var r of e.options) r.selected = t.includes(po(r));
|
|
2234
|
+
} else {
|
|
2235
|
+
for (r of e.options) if (tr(po(r), t)) {
|
|
2236
|
+
r.selected = !0;
|
|
2237
|
+
return;
|
|
2238
|
+
}
|
|
2239
|
+
n && t === void 0 || (e.selectedIndex = -1);
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
function fo(e) {
|
|
2243
|
+
var t = new MutationObserver((t) => {
|
|
2244
|
+
t.every(mo) || ("__defaultValue" in e && lo(e, !1), "__value" in e && uo(e, e.__value));
|
|
2245
|
+
});
|
|
2246
|
+
t.observe(e, {
|
|
2247
|
+
childList: !0,
|
|
2248
|
+
subtree: !0,
|
|
2249
|
+
attributes: !0,
|
|
2250
|
+
attributeFilter: ["value"]
|
|
2251
|
+
}), wr(() => {
|
|
2252
|
+
t.disconnect();
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
function po(e) {
|
|
2256
|
+
return "__value" in e ? e.__value : e.value;
|
|
2257
|
+
}
|
|
2258
|
+
function mo(e) {
|
|
2259
|
+
if (e.target.closest("selectedcontent") !== null) return !0;
|
|
2260
|
+
if (e.type === "childList") {
|
|
2261
|
+
var t = [...e.addedNodes, ...e.removedNodes];
|
|
2262
|
+
return t.length > 0 && t.every((e) => e.nodeName === "SELECTEDCONTENT");
|
|
2263
|
+
}
|
|
2264
|
+
return !1;
|
|
2265
|
+
}
|
|
2266
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2267
|
+
var ho = Symbol("class"), go = Symbol("style"), _o = Symbol("is custom element"), vo = Symbol("is html"), yo = Qe ? "link" : "LINK", bo = Qe ? "input" : "INPUT", xo = Qe ? "option" : "OPTION", So = Qe ? "select" : "SELECT", Co = Qe ? "progress" : "PROGRESS";
|
|
2268
|
+
function wo(e) {
|
|
2269
|
+
if (E) {
|
|
2270
|
+
var t = !1, n = () => {
|
|
2271
|
+
if (!t) {
|
|
2272
|
+
if (t = !0, e.hasAttribute("value")) {
|
|
2273
|
+
var n = e.value;
|
|
2274
|
+
Y(e, "value", null), e.value = n;
|
|
2275
|
+
}
|
|
2276
|
+
if (e.hasAttribute("checked")) {
|
|
2277
|
+
var r = e.checked;
|
|
2278
|
+
Y(e, "checked", null), e.checked = r;
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
e[Xe] = n, Pt(n), Bt();
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
function To(e, t) {
|
|
2286
|
+
var n = Oo(e);
|
|
2287
|
+
n.value !== (n.value = t ?? void 0) && (e.value !== t || t === 0 && e.nodeName === Co) && (e.value = t ?? "");
|
|
2288
|
+
}
|
|
2289
|
+
function Y(e, t, n, r) {
|
|
2290
|
+
var i = Oo(e);
|
|
2291
|
+
if (!(E && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === yo))) {
|
|
2292
|
+
var a = i[t];
|
|
2293
|
+
a !== (i[t] = n) && (t === "loading" && (e[Ge] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ao(e).has(t) ? e[t] = n : (!E || typeof n != "number" && typeof n != "boolean" || a !== String(n)) && e.setAttribute(t, n));
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
function Eo(e, t, n, r, i = !1, a = !1) {
|
|
2297
|
+
E && i && e.nodeName === bo && ("defaultValue" in n || "defaultChecked" in n || wo(e));
|
|
2298
|
+
var o = Oo(e), s = o[_o], c = !o[vo];
|
|
2299
|
+
let l = E && s;
|
|
2300
|
+
l && ot(!1);
|
|
2301
|
+
var u = t || {}, d = e.nodeName === xo, f = e.nodeName === So;
|
|
2302
|
+
try {
|
|
2303
|
+
for (var p in t) !(p in n) && p[0] + p[1] !== "$$" && (n[p] = null);
|
|
2304
|
+
n.class ? n.class = Qa(n.class) : (r || n[ho]) && (n.class = null), n[go] && (n.style ?? (n.style = null));
|
|
2305
|
+
var m = Ao(e);
|
|
2306
|
+
if (e.nodeName === bo && "type" in n && ("value" in n || "__value" in n)) {
|
|
2307
|
+
var h = n.type;
|
|
2308
|
+
(h !== u.type || h === void 0 && e.hasAttribute("type")) && (u.type = h, Y(e, "type", h, a));
|
|
2309
|
+
}
|
|
2310
|
+
for (let i in n) {
|
|
2311
|
+
let l = n[i];
|
|
2312
|
+
if (d && i === "value" && l == null) e.value = e.__value = "", u[i] = l;
|
|
2313
|
+
else if (i === "class") io(e, e.namespaceURI === "http://www.w3.org/1999/xhtml", l, r, t?.[ho], n[ho]), u[i] = l, u[ho] = n[ho];
|
|
2314
|
+
else if (i === "style") oo(e, l, t?.[go], n[go]), u[i] = l, u[go] = n[go];
|
|
2315
|
+
else {
|
|
2316
|
+
var g = u[i];
|
|
2317
|
+
if (l !== g || l === void 0 && e.hasAttribute(i)) {
|
|
2318
|
+
u[i] = l;
|
|
2319
|
+
var _ = i[0] + i[1];
|
|
2320
|
+
if (_ !== "$$") {
|
|
2321
|
+
if (_ === "on") {
|
|
2322
|
+
let t = {}, n = "$$" + i, r = i.slice(2);
|
|
2323
|
+
var v = xi(r);
|
|
2324
|
+
if (yi(r) && (r = r.slice(0, -7), t.capture = !0), !v && g) {
|
|
2325
|
+
if (l != null) continue;
|
|
2326
|
+
e.removeEventListener(r, u[n], t), u[n] = null;
|
|
2327
|
+
}
|
|
2328
|
+
if (v) Pi(r, e, l), Fi([r]);
|
|
2329
|
+
else if (l != null) {
|
|
2330
|
+
function a(e) {
|
|
2331
|
+
u[i].call(this, e);
|
|
2332
|
+
}
|
|
2333
|
+
u[n] = Mi(r, e, a, t);
|
|
2334
|
+
}
|
|
2335
|
+
} else if (i === "style") Y(e, i, l);
|
|
2336
|
+
else if (i === "autofocus") Rt(e, !!l);
|
|
2337
|
+
else if (!s && (i === "__value" || i === "value" && l != null)) e.__value = l, (g == null || e.value !== l || l === 0 && e.nodeName === Co) && (e.value = l);
|
|
2338
|
+
else if (i === "selected" && d) so(e, l);
|
|
2339
|
+
else {
|
|
2340
|
+
var y = i;
|
|
2341
|
+
c || (y = wi(y));
|
|
2342
|
+
var b = y === "defaultValue" || y === "defaultChecked";
|
|
2343
|
+
if (f && y === "defaultValue") continue;
|
|
2344
|
+
if (l == null && !s && !b) {
|
|
2345
|
+
if (o[i] = null, y === "value" || y === "checked") {
|
|
2346
|
+
let n = e, r = t === void 0;
|
|
2347
|
+
if (y === "value") {
|
|
2348
|
+
let e = n.defaultValue;
|
|
2349
|
+
n.removeAttribute(y), n.defaultValue = e, n.value = n.__value = r ? e : null;
|
|
2350
|
+
} else {
|
|
2351
|
+
let e = n.defaultChecked;
|
|
2352
|
+
n.removeAttribute(y), n.defaultChecked = e, n.checked = r ? e : !1;
|
|
2353
|
+
}
|
|
2354
|
+
} else e.removeAttribute(i);
|
|
2355
|
+
} else b || (s || typeof l != "string") && m.has(y) ? (e[y] = l, y in o && (o[y] = T)) : typeof l != "function" && Y(e, y, l, a);
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
} finally {
|
|
2362
|
+
l && ot(!0);
|
|
2363
|
+
}
|
|
2364
|
+
return u;
|
|
2365
|
+
}
|
|
2366
|
+
function Do(e, t, n = [], r = [], i = [], a, o = !1, s = !1) {
|
|
2367
|
+
Ht(i, n, r, (n) => {
|
|
2368
|
+
var r = void 0, i = {}, c = e.nodeName === So, l = !1;
|
|
2369
|
+
if (Mr(() => {
|
|
2370
|
+
var u = t(...n.map(W)), d = Eo(e, r, u, a, o, s);
|
|
2371
|
+
if (l && c) {
|
|
2372
|
+
var f = e;
|
|
2373
|
+
"defaultValue" in u && co(f, u.defaultValue), "value" in u && uo(f, u.value);
|
|
2374
|
+
}
|
|
2375
|
+
for (let e of Object.getOwnPropertySymbols(i)) u[e] || V(i[e]);
|
|
2376
|
+
for (let t of Object.getOwnPropertySymbols(u)) {
|
|
2377
|
+
var p = u[t];
|
|
2378
|
+
t.description !== "@attach" || r && p === r[t] || (i[t] && V(i[t]), i[t] = Nr(() => Ya(e, () => p))), d[t] = p;
|
|
2379
|
+
}
|
|
2380
|
+
r = d;
|
|
2381
|
+
}), c) {
|
|
2382
|
+
var u = e;
|
|
2383
|
+
Or(() => {
|
|
2384
|
+
var e = r;
|
|
2385
|
+
"defaultValue" in e && co(u, e.defaultValue), uo(u, e.value, !0), fo(u);
|
|
2386
|
+
});
|
|
2387
|
+
}
|
|
2388
|
+
l = !0;
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2391
|
+
function Oo(e) {
|
|
2392
|
+
return e[Ke] ?? (e[Ke] = {
|
|
2393
|
+
[_o]: e.nodeName.includes("-"),
|
|
2394
|
+
[vo]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
var ko = /* @__PURE__ */ new Map();
|
|
2398
|
+
function Ao(e) {
|
|
2399
|
+
var t = e.getAttribute("is") || e.nodeName, n = ko.get(t);
|
|
2400
|
+
if (n) return n;
|
|
2401
|
+
ko.set(t, n = /* @__PURE__ */ new Set());
|
|
2402
|
+
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
2403
|
+
for (var o in r = ge(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
|
|
2404
|
+
i = ye(i);
|
|
2405
|
+
}
|
|
2406
|
+
return n;
|
|
2407
|
+
}
|
|
2408
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
|
|
2409
|
+
var jo, Mo = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakSet(), Io = class {
|
|
2410
|
+
constructor(e) {
|
|
2411
|
+
nn(this, Fo), j(this, Mo, /* @__PURE__ */ new WeakMap()), j(this, No, void 0), j(this, Po, void 0), P(Po, this, e);
|
|
2412
|
+
}
|
|
2413
|
+
observe(e, t) {
|
|
2414
|
+
var n = N(Mo, this).get(e) || /* @__PURE__ */ new Set();
|
|
2415
|
+
return n.add(t), N(Mo, this).set(e, n), M(Fo, this, Lo).call(this).observe(e, N(Po, this)), () => {
|
|
2416
|
+
var n = N(Mo, this).get(e);
|
|
2417
|
+
n.delete(t), n.size === 0 && (N(Mo, this).delete(e), N(No, this).unobserve(e));
|
|
2418
|
+
};
|
|
2419
|
+
}
|
|
2420
|
+
};
|
|
2421
|
+
jo = Io;
|
|
2422
|
+
function Lo() {
|
|
2423
|
+
return N(No, this) ?? P(No, this, new ResizeObserver((e) => {
|
|
2424
|
+
for (var t of e) {
|
|
2425
|
+
jo.entries.set(t.target, t);
|
|
2426
|
+
for (var n of N(Mo, this).get(t.target) || []) n(t);
|
|
2427
|
+
}
|
|
2428
|
+
}));
|
|
2429
|
+
}
|
|
2430
|
+
w(Io, "entries", /* @__PURE__ */ new WeakMap());
|
|
2431
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2432
|
+
function Ro(e, t) {
|
|
2433
|
+
return e === t || e?.[He] === t;
|
|
2434
|
+
}
|
|
2435
|
+
function zo(e = At(), t, n, r) {
|
|
2436
|
+
var i = Et.r, a = U;
|
|
2437
|
+
return Or(() => {
|
|
2438
|
+
var o, s;
|
|
2439
|
+
return Ar(() => {
|
|
2440
|
+
o = s, s = r?.() || [], gi(() => {
|
|
2441
|
+
Ro(n(...s), e) || (t(e, ...s), o && Ro(n(...o), e) && t(null, ...o));
|
|
2442
|
+
});
|
|
2443
|
+
}), () => {
|
|
2444
|
+
let r = a;
|
|
2445
|
+
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
2446
|
+
let o = () => {
|
|
2447
|
+
s && Ro(n(...s), e) && t(null, ...s);
|
|
2448
|
+
}, c = r.teardown;
|
|
2449
|
+
r.teardown = () => {
|
|
2450
|
+
o(), c?.();
|
|
2451
|
+
};
|
|
2452
|
+
};
|
|
2453
|
+
}), e;
|
|
2454
|
+
}
|
|
2455
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
2456
|
+
var Bo = !1;
|
|
2457
|
+
function Vo(e) {
|
|
2458
|
+
var t = Bo;
|
|
2459
|
+
try {
|
|
2460
|
+
return Bo = !1, [e(), Bo];
|
|
2461
|
+
} finally {
|
|
2462
|
+
Bo = t;
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2466
|
+
function X(e, t, n, r) {
|
|
2467
|
+
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ?? (l = /* @__PURE__ */ Kt(r)), W(l)) : (c && (c = !1, s = o ? gi(r) : r), s);
|
|
2468
|
+
let d;
|
|
2469
|
+
if (a) {
|
|
2470
|
+
var f = He in e || We in e;
|
|
2471
|
+
d = he(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2472
|
+
}
|
|
2473
|
+
var p, m = !1;
|
|
2474
|
+
a ? [p, m] = Vo(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && xt(t), d(p)));
|
|
2475
|
+
var h = i ? () => {
|
|
2476
|
+
var n = e[t];
|
|
2477
|
+
return n === void 0 ? u() : (c = !0, n);
|
|
2478
|
+
} : () => {
|
|
2479
|
+
var n = e[t];
|
|
2480
|
+
return n !== void 0 && (s = void 0), n === void 0 ? s : n;
|
|
2481
|
+
};
|
|
2482
|
+
if (i && !(n & 4)) return h;
|
|
2483
|
+
if (d) {
|
|
2484
|
+
var g = e.$$legacy;
|
|
2485
|
+
return (function(e, t) {
|
|
2486
|
+
return arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();
|
|
2487
|
+
});
|
|
2488
|
+
}
|
|
2489
|
+
var _ = !1, v = (n & 1 ? Kt : Yt)(() => (_ = !1, h()));
|
|
2490
|
+
a && W(v);
|
|
2491
|
+
var y = U;
|
|
2492
|
+
return (function(e, t) {
|
|
2493
|
+
if (arguments.length > 0) {
|
|
2494
|
+
let n = t ? W(v) : i && a ? $n(e) : e;
|
|
2495
|
+
return R(v, n), _ = !0, s !== void 0 && (s = n), e;
|
|
2496
|
+
}
|
|
2497
|
+
return Gr && _ || y.f & 16384 ? v.v : W(v);
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
var Ho, Uo = !1, Wo = /* @__PURE__ */ new WeakMap(), Go = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakSet();
|
|
2501
|
+
Ho = class extends Date {
|
|
2502
|
+
constructor(...e) {
|
|
2503
|
+
super(...e), nn(this, qo), j(this, Wo, /* @__PURE__ */ L(super.getTime())), j(this, Go, /* @__PURE__ */ new Map()), j(this, Ko, H), Uo || M(qo, this, Jo).call(this);
|
|
2504
|
+
}
|
|
2505
|
+
};
|
|
2506
|
+
function Jo() {
|
|
2507
|
+
Uo = !0;
|
|
2508
|
+
var e = Ho.prototype, t = Date.prototype, n = Object.getOwnPropertyNames(t);
|
|
2509
|
+
for (let r of n) (r.startsWith("get") || r.startsWith("to") || r === "valueOf") && (e[r] = function(...e) {
|
|
2510
|
+
if (e.length > 0) return W(N(Wo, this)), t[r].apply(this, e);
|
|
2511
|
+
var n = N(Go, this).get(r);
|
|
2512
|
+
if (n === void 0) {
|
|
2513
|
+
let i = H;
|
|
2514
|
+
Jr(N(Ko, this)), n = /* @__PURE__ */ A(() => (W(N(Wo, this)), t[r].apply(this, e))), N(Go, this).set(r, n), Jr(i);
|
|
2515
|
+
}
|
|
2516
|
+
return W(n);
|
|
2517
|
+
}), r.startsWith("set") && (e[r] = function(...e) {
|
|
2518
|
+
var n = t[r].apply(this, e);
|
|
2519
|
+
return R(N(Wo, this), t.getTime.call(this)), n;
|
|
2520
|
+
});
|
|
2521
|
+
}
|
|
2522
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/reactivity/set.js
|
|
2523
|
+
var Yo, Xo, Zo = [
|
|
2524
|
+
"forEach",
|
|
2525
|
+
"isDisjointFrom",
|
|
2526
|
+
"isSubsetOf",
|
|
2527
|
+
"isSupersetOf"
|
|
2528
|
+
], Qo = [
|
|
2529
|
+
"difference",
|
|
2530
|
+
"intersection",
|
|
2531
|
+
"symmetricDifference",
|
|
2532
|
+
"union"
|
|
2533
|
+
], $o = !1, es = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakSet();
|
|
2534
|
+
Xo = Symbol.iterator, Yo = class extends Set {
|
|
2535
|
+
constructor(e) {
|
|
2536
|
+
if (super(), nn(this, is), j(this, es, /* @__PURE__ */ new Map()), j(this, ts, /* @__PURE__ */ L(0)), j(this, ns, /* @__PURE__ */ L(0)), j(this, rs, ii || -1), e) {
|
|
2537
|
+
for (var t of e) super.add(t);
|
|
2538
|
+
N(ns, this).v = super.size;
|
|
2539
|
+
}
|
|
2540
|
+
$o || M(is, this, os).call(this);
|
|
2541
|
+
}
|
|
2542
|
+
has(e) {
|
|
2543
|
+
var t = super.has(e), n = N(es, this), r = n.get(e);
|
|
2544
|
+
if (r === void 0) {
|
|
2545
|
+
if (!t) return W(N(ts, this)), !1;
|
|
2546
|
+
r = M(is, this, as).call(this, !0), n.set(e, r);
|
|
2547
|
+
}
|
|
2548
|
+
return W(r), t;
|
|
2549
|
+
}
|
|
2550
|
+
add(e) {
|
|
2551
|
+
return super.has(e) || (super.add(e), R(N(ns, this), super.size), z(N(ts, this))), this;
|
|
2552
|
+
}
|
|
2553
|
+
delete(e) {
|
|
2554
|
+
var t = super.delete(e), n = N(es, this), r = n.get(e);
|
|
2555
|
+
return r !== void 0 && (n.delete(e), R(r, !1)), t && (R(N(ns, this), super.size), z(N(ts, this))), t;
|
|
2556
|
+
}
|
|
2557
|
+
clear() {
|
|
2558
|
+
if (super.size !== 0) {
|
|
2559
|
+
super.clear();
|
|
2560
|
+
var e = N(es, this);
|
|
2561
|
+
for (var t of e.values()) R(t, !1);
|
|
2562
|
+
e.clear(), R(N(ns, this), 0), z(N(ts, this));
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
keys() {
|
|
2566
|
+
return this.values();
|
|
2567
|
+
}
|
|
2568
|
+
values() {
|
|
2569
|
+
return W(N(ts, this)), super.values();
|
|
2570
|
+
}
|
|
2571
|
+
entries() {
|
|
2572
|
+
return W(N(ts, this)), super.entries();
|
|
2573
|
+
}
|
|
2574
|
+
[Xo]() {
|
|
2575
|
+
return this.keys();
|
|
2576
|
+
}
|
|
2577
|
+
get size() {
|
|
2578
|
+
return W(N(ns, this));
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
function as(e) {
|
|
2582
|
+
return ii === N(rs, this) ? /* @__PURE__ */ L(e) : Kn(e);
|
|
2583
|
+
}
|
|
2584
|
+
function os() {
|
|
2585
|
+
$o = !0;
|
|
2586
|
+
var e = Yo.prototype, t = Set.prototype;
|
|
2587
|
+
for (let n of Zo) e[n] = function(...e) {
|
|
2588
|
+
return W(N(ts, this)), t[n].apply(this, e);
|
|
2589
|
+
};
|
|
2590
|
+
for (let n of Qo) e[n] = function(...e) {
|
|
2591
|
+
W(N(ts, this));
|
|
2592
|
+
var r = t[n].apply(this, e);
|
|
2593
|
+
return new Yo(r);
|
|
2594
|
+
};
|
|
2595
|
+
}
|
|
2596
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/getPrototypeOf.js
|
|
2597
|
+
function ss(e) {
|
|
2598
|
+
return ss = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
2599
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
2600
|
+
}, ss(e);
|
|
2601
|
+
}
|
|
2602
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/superPropBase.js
|
|
2603
|
+
function cs(e, t) {
|
|
2604
|
+
for (; !{}.hasOwnProperty.call(e, t) && (e = ss(e)) !== null;);
|
|
2605
|
+
return e;
|
|
2606
|
+
}
|
|
2607
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/get.js
|
|
2608
|
+
function ls() {
|
|
2609
|
+
return ls = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(e, t, n) {
|
|
2610
|
+
var r = cs(e, t);
|
|
2611
|
+
if (r) {
|
|
2612
|
+
var i = Object.getOwnPropertyDescriptor(r, t);
|
|
2613
|
+
return i.get ? i.get.call(arguments.length < 3 ? e : n) : i.value;
|
|
2614
|
+
}
|
|
2615
|
+
}, ls.apply(null, arguments);
|
|
2616
|
+
}
|
|
2617
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/superPropGet.js
|
|
2618
|
+
function us(e, t, n, r) {
|
|
2619
|
+
var i = ls(ss(1 & r ? e.prototype : e), t, n);
|
|
2620
|
+
return 2 & r && typeof i == "function" ? function(e) {
|
|
2621
|
+
return i.apply(n, e);
|
|
2622
|
+
} : i;
|
|
2623
|
+
}
|
|
2624
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/reactivity/map.js
|
|
2625
|
+
var ds, fs, ps = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakSet();
|
|
2626
|
+
fs = Symbol.iterator, ds = class extends Map {
|
|
2627
|
+
constructor(e) {
|
|
2628
|
+
if (super(), nn(this, _s), j(this, ps, /* @__PURE__ */ new Map()), j(this, ms, /* @__PURE__ */ L(0)), j(this, hs, /* @__PURE__ */ L(0)), j(this, gs, ii || -1), e) {
|
|
2629
|
+
for (var [t, n] of e) super.set(t, n);
|
|
2630
|
+
N(hs, this).v = super.size;
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
has(e) {
|
|
2634
|
+
var t = N(ps, this), n = t.get(e);
|
|
2635
|
+
if (n === void 0) {
|
|
2636
|
+
if (super.has(e)) n = M(_s, this, vs).call(this, 0), t.set(e, n);
|
|
2637
|
+
else return W(N(ms, this)), !1;
|
|
2638
|
+
}
|
|
2639
|
+
return W(n), !0;
|
|
2640
|
+
}
|
|
2641
|
+
forEach(e, t) {
|
|
2642
|
+
M(_s, this, ys).call(this), super.forEach(e, t);
|
|
2643
|
+
}
|
|
2644
|
+
get(e) {
|
|
2645
|
+
var t = N(ps, this), n = t.get(e);
|
|
2646
|
+
if (n === void 0) {
|
|
2647
|
+
if (super.has(e)) n = M(_s, this, vs).call(this, 0), t.set(e, n);
|
|
2648
|
+
else {
|
|
2649
|
+
W(N(ms, this));
|
|
2650
|
+
return;
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
return W(n), super.get(e);
|
|
2654
|
+
}
|
|
2655
|
+
getOrInsert(e, t) {
|
|
2656
|
+
return super.has(e) || this.set(e, t), this.get(e);
|
|
2657
|
+
}
|
|
2658
|
+
getOrInsertComputed(e, t) {
|
|
2659
|
+
return super.has(e) || this.set(e, t(e)), this.get(e);
|
|
2660
|
+
}
|
|
2661
|
+
set(e, t) {
|
|
2662
|
+
var n = N(ps, this), r = n.get(e), i = super.get(e), a = super.set(e, t), o = N(ms, this);
|
|
2663
|
+
if (r === void 0) r = M(_s, this, vs).call(this, 0), n.set(e, r), R(N(hs, this), super.size), z(o);
|
|
2664
|
+
else if (i !== t) {
|
|
2665
|
+
z(r);
|
|
2666
|
+
var s = o.reactions === null ? null : new Set(o.reactions);
|
|
2667
|
+
s !== null && r.reactions?.every((e) => s.has(e)) || z(o);
|
|
2668
|
+
}
|
|
2669
|
+
return a;
|
|
2670
|
+
}
|
|
2671
|
+
delete(e) {
|
|
2672
|
+
var t = N(ps, this), n = t.get(e), r = super.delete(e);
|
|
2673
|
+
return n !== void 0 && (t.delete(e), R(n, -1)), r && (R(N(hs, this), super.size), z(N(ms, this))), r;
|
|
2674
|
+
}
|
|
2675
|
+
clear() {
|
|
2676
|
+
if (super.size !== 0) {
|
|
2677
|
+
super.clear();
|
|
2678
|
+
var e = N(ps, this);
|
|
2679
|
+
R(N(hs, this), 0);
|
|
2680
|
+
for (var t of e.values()) R(t, -1);
|
|
2681
|
+
z(N(ms, this)), e.clear();
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
keys() {
|
|
2685
|
+
return W(N(ms, this)), super.keys();
|
|
2686
|
+
}
|
|
2687
|
+
values() {
|
|
2688
|
+
return M(_s, this, ys).call(this), super.values();
|
|
2689
|
+
}
|
|
2690
|
+
entries() {
|
|
2691
|
+
return M(_s, this, ys).call(this), super.entries();
|
|
2692
|
+
}
|
|
2693
|
+
[fs]() {
|
|
2694
|
+
return this.entries();
|
|
2695
|
+
}
|
|
2696
|
+
get size() {
|
|
2697
|
+
return W(N(hs, this)), super.size;
|
|
2698
|
+
}
|
|
2699
|
+
};
|
|
2700
|
+
function vs(e) {
|
|
2701
|
+
return ii === N(gs, this) ? /* @__PURE__ */ L(e) : Kn(e);
|
|
2702
|
+
}
|
|
2703
|
+
function ys() {
|
|
2704
|
+
W(N(ms, this));
|
|
2705
|
+
var e = N(ps, this);
|
|
2706
|
+
if (N(hs, this).v !== e.size) {
|
|
2707
|
+
for (var t of us(ds.prototype, "keys", this, 2)([])) if (!e.has(t)) {
|
|
2708
|
+
var n = M(_s, this, vs).call(this, 0);
|
|
2709
|
+
e.set(t, n);
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
for ([, n] of N(ps, this)) W(n);
|
|
2713
|
+
}
|
|
2714
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/reactivity/url-search-params.js
|
|
2715
|
+
var bs, xs, Ss = Symbol("replace"), Cs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Ts = /* @__PURE__ */ new WeakMap(), Es = /* @__PURE__ */ new WeakSet();
|
|
2716
|
+
xs = Symbol.iterator, bs = class extends URLSearchParams {
|
|
2717
|
+
constructor(...e) {
|
|
2718
|
+
super(...e), nn(this, Es), j(this, Cs, /* @__PURE__ */ L(0)), j(this, ws, ks()), j(this, Ts, !1);
|
|
2719
|
+
}
|
|
2720
|
+
[Ss](e) {
|
|
2721
|
+
if (!N(Ts, this) && e.toString() !== super.toString()) {
|
|
2722
|
+
P(Ts, this, !0);
|
|
2723
|
+
for (let e of [...super.keys()]) super.delete(e);
|
|
2724
|
+
for (let [t, n] of e) super.append(t, n);
|
|
2725
|
+
z(N(Cs, this)), P(Ts, this, !1);
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
append(e, t) {
|
|
2729
|
+
super.append(e, t), M(Es, this, Ds).call(this), z(N(Cs, this));
|
|
2730
|
+
}
|
|
2731
|
+
delete(e, t) {
|
|
2732
|
+
var n = super.has(e, t);
|
|
2733
|
+
super.delete(e, t), n && (M(Es, this, Ds).call(this), z(N(Cs, this)));
|
|
2734
|
+
}
|
|
2735
|
+
get(e) {
|
|
2736
|
+
return W(N(Cs, this)), super.get(e);
|
|
2737
|
+
}
|
|
2738
|
+
getAll(e) {
|
|
2739
|
+
return W(N(Cs, this)), super.getAll(e);
|
|
2740
|
+
}
|
|
2741
|
+
has(e, t) {
|
|
2742
|
+
return W(N(Cs, this)), super.has(e, t);
|
|
2743
|
+
}
|
|
2744
|
+
keys() {
|
|
2745
|
+
return W(N(Cs, this)), super.keys();
|
|
2746
|
+
}
|
|
2747
|
+
forEach(e, t) {
|
|
2748
|
+
W(N(Cs, this)), super.forEach(e, t);
|
|
2749
|
+
}
|
|
2750
|
+
set(e, t) {
|
|
2751
|
+
var n = super.getAll(e);
|
|
2752
|
+
super.set(e, t);
|
|
2753
|
+
var r = super.getAll(e);
|
|
2754
|
+
(n.length !== r.length || n.some((e, t) => e !== r[t])) && (M(Es, this, Ds).call(this), z(N(Cs, this)));
|
|
2755
|
+
}
|
|
2756
|
+
sort() {
|
|
2757
|
+
super.sort(), M(Es, this, Ds).call(this), z(N(Cs, this));
|
|
2758
|
+
}
|
|
2759
|
+
toString() {
|
|
2760
|
+
return W(N(Cs, this)), super.toString();
|
|
2761
|
+
}
|
|
2762
|
+
values() {
|
|
2763
|
+
return W(N(Cs, this)), super.values();
|
|
2764
|
+
}
|
|
2765
|
+
entries() {
|
|
2766
|
+
return W(N(Cs, this)), super.entries();
|
|
2767
|
+
}
|
|
2768
|
+
[xs]() {
|
|
2769
|
+
return this.entries();
|
|
2770
|
+
}
|
|
2771
|
+
get size() {
|
|
2772
|
+
return W(N(Cs, this)), super.size;
|
|
2773
|
+
}
|
|
2774
|
+
};
|
|
2775
|
+
function Ds() {
|
|
2776
|
+
if (!N(ws, this) || N(Ts, this)) return;
|
|
2777
|
+
P(Ts, this, !0);
|
|
2778
|
+
let e = us(bs.prototype, "toString", this, 2)([]);
|
|
2779
|
+
N(ws, this).search = e && `?${e}`, P(Ts, this, !1);
|
|
2780
|
+
}
|
|
2781
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/reactivity/url.js
|
|
2782
|
+
var Os = null;
|
|
2783
|
+
function ks() {
|
|
2784
|
+
return Os;
|
|
2785
|
+
}
|
|
2786
|
+
// ../../node_modules/.bun/svelte@5.57.3/node_modules/svelte/src/internal/disclose-version.js
|
|
2787
|
+
if (typeof window < "u") {
|
|
2788
|
+
var As, js;
|
|
2789
|
+
((As = (js = window).__svelte ?? (js.__svelte = {})).v ?? (As.v = /* @__PURE__ */ new Set())).add("5");
|
|
2790
|
+
}
|
|
2791
|
+
// src/interactions/inline-choice/InlineChoice.svelte
|
|
2792
|
+
var Ms = /* @__PURE__ */ G("<span hidden=\"\"> </span>"), Ns = /* @__PURE__ */ G("<option> </option>"), Ps = /* @__PURE__ */ G("<span class=\"qti-inline-choice-correct-badge svelte-p2969z\"> </span>"), Fs = /* @__PURE__ */ G("<span class=\"inline-choice-wrapper svelte-p2969z\"><!> <!> <select><option> </option><!></select> <!></span>"), Is = {
|
|
2793
|
+
hash: "svelte-p2969z",
|
|
2794
|
+
code: ".inline-choice-wrapper.svelte-p2969z {position:relative;display:inline-block;}.qti-inline-select.svelte-p2969z {display:inline-block;width:auto;min-width:120px;margin:0 4px;padding-block:0.25rem;padding-inline:0.5rem 1.75rem;border:1px solid var(--pie-qti-border-strong, #767676);border-radius:0.5rem;background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;}.qti-inline-select.svelte-p2969z:focus-visible {outline:2px solid var(--pie-qti-focus, #4338ca);outline-offset:2px;}.qti-inline-select-correct.svelte-p2969z {border-color:var(--pie-qti-success-text, #15803d);background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 10%, transparent);}.qti-inline-choice-correct-badge.svelte-p2969z {position:absolute;top:-1.5rem;inset-inline-start:0;display:inline-flex;align-items:center;white-space:nowrap;min-height:1.1rem;padding:0 0.5rem;border:1px solid var(--pie-qti-success-text, #15803d);border-radius:9999px;background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 12%, transparent);color:var(--pie-qti-base-content, oklch(21% 0 0));font-size:0.75rem;font-weight:600;}"
|
|
2795
|
+
};
|
|
2796
|
+
function Ls(e, t) {
|
|
2797
|
+
let n = Gi();
|
|
2798
|
+
Ot(t, !0), qa(e, Is);
|
|
2799
|
+
let r = X(t, "response", 3, ""), i = X(t, "correctAnswer", 3, null), a = X(t, "disabled", 3, !1), o = X(t, "onResponseChange", 3, () => {}), s = `${n}-description`, c = `${n}-min-message`, d = /* @__PURE__ */ A(() => i() === null ? r() : i()), f = /* @__PURE__ */ A(() => i() ? t.interaction.choices.find((e) => e.identifier === i()) : null), p = /* @__PURE__ */ A(() => x(t.i18n, t.interaction, t.position)), m = /* @__PURE__ */ A(() => t.interaction.minSelectionsMessage?.trim() || ""), h = /* @__PURE__ */ A(() => [
|
|
2800
|
+
t.interaction.accessibility?.description ? s : "",
|
|
2801
|
+
W(m) ? c : "",
|
|
2802
|
+
t.contextId ?? ""
|
|
2803
|
+
].filter(Boolean).join(" ") || void 0);
|
|
2804
|
+
function g(e) {
|
|
2805
|
+
let n = e.currentTarget?.value ?? "";
|
|
2806
|
+
o()(t.interaction.responseId, n);
|
|
2807
|
+
}
|
|
2808
|
+
var _ = Fs(), v = ur(_), y = (e) => {
|
|
2809
|
+
var n = Ms(), r = fr(n, !0);
|
|
2810
|
+
B(() => {
|
|
2811
|
+
Y(n, "id", s), J(r, t.interaction.accessibility.description);
|
|
2812
|
+
}), K(e, n);
|
|
2813
|
+
};
|
|
2814
|
+
Pa(v, (e) => {
|
|
2815
|
+
t.interaction.accessibility?.description && e(y);
|
|
2816
|
+
});
|
|
2817
|
+
var b = pr(v, 2), ee = (e) => {
|
|
2818
|
+
var t = Ms(), n = fr(t, !0);
|
|
2819
|
+
B(() => {
|
|
2820
|
+
Y(t, "id", c), J(n, W(m));
|
|
2821
|
+
}), K(e, t);
|
|
2822
|
+
};
|
|
2823
|
+
Pa(b, (e) => {
|
|
2824
|
+
W(m) && e(ee);
|
|
2825
|
+
});
|
|
2826
|
+
var S = pr(b, 2);
|
|
2827
|
+
let te;
|
|
2828
|
+
var ne = ur(S), re = fr(ne, !0);
|
|
2829
|
+
ne.value = ne.__value = "", za(pr(ne), 17, () => t.interaction.choices, Fa, (e, t) => {
|
|
2830
|
+
let n = /* @__PURE__ */ A(() => i() === W(t).identifier);
|
|
2831
|
+
var r = Ns(), a = fr(r), o = {};
|
|
2832
|
+
B(() => {
|
|
2833
|
+
J(a, `${W(t).text ?? ""}${W(n) ? " ✓" : ""}`), o !== (o = W(t).identifier) && (r.value = (r.__value = o) ?? "");
|
|
2834
|
+
}), K(e, r);
|
|
2835
|
+
}), ct(S);
|
|
2836
|
+
var ie;
|
|
2837
|
+
fo(S);
|
|
2838
|
+
var ae = pr(S, 2), oe = (e) => {
|
|
2839
|
+
var n = Ps(), r = fr(n, !0);
|
|
2840
|
+
B((e) => J(r, e), [() => u(t.i18n, "interactions.inline.correctChoice", "Correct: {choice}", { choice: W(f).text })]), K(e, n);
|
|
2841
|
+
};
|
|
2842
|
+
Pa(ae, (e) => {
|
|
2843
|
+
i() !== null && W(f) && e(oe);
|
|
2844
|
+
}), ct(_), B((e, t) => {
|
|
2845
|
+
Y(S, "aria-label", e), Y(S, "aria-describedby", W(h)), S.disabled = a(), te = io(S, 1, "svelte-p2969z", null, te, {
|
|
2846
|
+
"qti-inline-select": !0,
|
|
2847
|
+
"qti-inline-select-correct": i() !== null
|
|
2848
|
+
}), J(re, t), ie !== (ie = W(d)) && (S.value = (S.__value = ie) ?? "", uo(S, ie));
|
|
2849
|
+
}, [() => i() && W(f) ? l(u(t.i18n, "accessibility.sentence", "{text}.", { text: W(p) }), u(t.i18n, "accessibility.correctAnswerIs", "Correct answer: {answer}.", { answer: W(f).text })) : W(p), () => t.interaction.label ?? t.interaction.dataPrompt ?? u(t.i18n, "interactions.inline.selectPlaceholder", "Select...")]), Pi("change", S, g), K(e, _), kt();
|
|
2850
|
+
}
|
|
2851
|
+
Fi(["change"]);
|
|
2852
|
+
// src/interactions/text-entry/InlineTextEntry.svelte
|
|
2853
|
+
var Rs = /* @__PURE__ */ G("<span hidden=\"\"> </span>"), zs = /* @__PURE__ */ G("<span role=\"alert\" class=\"qti-text-entry-error svelte-v4bfxs\"> </span>"), Bs = /* @__PURE__ */ G("<input type=\"text\" spellcheck=\"false\" autocorrect=\"off\" autocapitalize=\"off\" autocomplete=\"off\" dir=\"auto\"/> <!> <!>", 1), Vs = {
|
|
2854
|
+
hash: "svelte-v4bfxs",
|
|
2855
|
+
code: ".qti-inline-input.svelte-v4bfxs {box-sizing:border-box;padding:0.25rem 0.5rem;border:1px solid var(--pie-qti-border-strong, #767676);border-radius:0.5rem;background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;}.qti-inline-input.svelte-v4bfxs:focus-visible {outline:2px solid var(--pie-qti-focus, #4338ca);outline-offset:2px;}.qti-inline-input-correct.svelte-v4bfxs {border-color:var(--pie-qti-success-text, #15803d);background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 10%, transparent);}.qti-text-entry-error.svelte-v4bfxs {display:block;color:var(--pie-qti-error-text, #b91c1c);font-size:0.875rem;}"
|
|
2856
|
+
};
|
|
2857
|
+
function Hs(e, t) {
|
|
2858
|
+
let n = Gi();
|
|
2859
|
+
Ot(t, !0), qa(e, Vs);
|
|
2860
|
+
let r = X(t, "response", 3, ""), i = X(t, "stringResponse", 3, null), a = X(t, "correctAnswer", 3, null), o = X(t, "disabled", 3, !1), s = X(t, "onResponseChange", 3, () => {}), c = `${n}-error`, d = `${n}-description`, f = /* @__PURE__ */ L(!1), p = /* @__PURE__ */ A(() => W(f) ? S(t.i18n, t.interaction) : null), m = /* @__PURE__ */ A(() => t.interaction.stringIdentifier && typeof i() == "string" && i().length > 0 ? i() : r()), h = /* @__PURE__ */ A(() => a() === null ? W(m) : a()), g = /* @__PURE__ */ A(() => x(t.i18n, t.interaction, t.position)), _ = /* @__PURE__ */ A(() => re(t.interaction)), v = /* @__PURE__ */ A(() => (t.interaction.interactionClasses ?? []).find((e) => e.startsWith("qti-input-width-"))), y = /* @__PURE__ */ A(() => (t.interaction.interactionClasses ?? []).filter((e) => !e.startsWith("qti-input-width-")).join(" ")), b = /* @__PURE__ */ A(() => ne(t.interaction, W(v) ? { widthClass: W(v) } : void 0)), ee = /* @__PURE__ */ A(() => [
|
|
2861
|
+
t.interaction.accessibility?.description ? d : "",
|
|
2862
|
+
t.contextId ?? "",
|
|
2863
|
+
W(p) ? c : ""
|
|
2864
|
+
].filter(Boolean).join(" ") || void 0);
|
|
2865
|
+
function ie(e) {
|
|
2866
|
+
let n = e.currentTarget, r = n?.value ?? "";
|
|
2867
|
+
s()(t.interaction.responseId, r), n?.validity.valid && R(f, !1);
|
|
2868
|
+
}
|
|
2869
|
+
function ae(e) {
|
|
2870
|
+
e.preventDefault(), R(f, !0);
|
|
2871
|
+
}
|
|
2872
|
+
function oe(e) {
|
|
2873
|
+
e.currentTarget?.checkValidity();
|
|
2874
|
+
}
|
|
2875
|
+
var se = Bs(), C = dr(se);
|
|
2876
|
+
wo(C);
|
|
2877
|
+
var ce = pr(C, 2), le = (e) => {
|
|
2878
|
+
var n = Rs(), r = fr(n, !0);
|
|
2879
|
+
B(() => {
|
|
2880
|
+
Y(n, "id", d), J(r, t.interaction.accessibility.description);
|
|
2881
|
+
}), K(e, n);
|
|
2882
|
+
};
|
|
2883
|
+
Pa(ce, (e) => {
|
|
2884
|
+
t.interaction.accessibility?.description && e(le);
|
|
2885
|
+
});
|
|
2886
|
+
var ue = pr(ce, 2), de = (e) => {
|
|
2887
|
+
var t = zs(), n = fr(t, !0);
|
|
2888
|
+
B(() => {
|
|
2889
|
+
Y(t, "id", c), J(n, W(p));
|
|
2890
|
+
}), K(e, t);
|
|
2891
|
+
};
|
|
2892
|
+
Pa(ue, (e) => {
|
|
2893
|
+
W(p) && e(de);
|
|
2894
|
+
}), B((e, n, r, i) => {
|
|
2895
|
+
io(C, 1, e, "svelte-v4bfxs"), oo(C, W(b)), Y(C, "placeholder", n), Y(C, "pattern", r), Y(C, "data-format", t.interaction.format || void 0), Y(C, "inputmode", W(_)), Y(C, "aria-label", i), Y(C, "aria-invalid", W(p) ? "true" : void 0), Y(C, "aria-describedby", W(ee)), To(C, W(h)), C.disabled = o(), C.dir = C.dir;
|
|
2896
|
+
}, [
|
|
2897
|
+
() => Qa([
|
|
2898
|
+
"qti-inline-input",
|
|
2899
|
+
a() === null ? "" : "qti-inline-input-correct",
|
|
2900
|
+
W(v) ?? "",
|
|
2901
|
+
W(y)
|
|
2902
|
+
].filter(Boolean).join(" ")),
|
|
2903
|
+
() => t.interaction.placeholderText || u(t.i18n, "interactions.inline.placeholder", "..."),
|
|
2904
|
+
() => t.interaction.patternMask ? te(t.interaction.patternMask) : void 0,
|
|
2905
|
+
() => a() ? l(u(t.i18n, "accessibility.sentence", "{text}.", { text: W(g) }), u(t.i18n, "accessibility.correctAnswerIs", "Correct answer: {answer}.", { answer: a() })) : W(g)
|
|
2906
|
+
]), Pi("input", C, ie), Ni("invalid", C, ae), Ni("blur", C, oe), K(e, se), kt();
|
|
2907
|
+
}
|
|
2908
|
+
Fi(["input"]);
|
|
2909
|
+
// src/components/ItemBody.svelte
|
|
2910
|
+
var Us = 0, Ws = /* @__PURE__ */ G("<div class=\"qti-item-body svelte-11qbngh\"><!> <div class=\"qti-item-body-content svelte-11qbngh\"></div></div> <div class=\"qti-feedback-announcer svelte-11qbngh\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div>", 1), Gs = {
|
|
2911
|
+
hash: "svelte-11qbngh",
|
|
2912
|
+
code: "\n /* Allow the whole item body to shrink inside flex/grid layouts (prevents overflow). */.qti-item-body.svelte-11qbngh {max-width:100%;min-width:0;}\n\n /* Read by screen readers, never seen: the feedback status message region. */.qti-feedback-announcer.svelte-11qbngh {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.qti-item-body-content.svelte-11qbngh {max-width:none;margin-bottom:1rem;}\n\n /*\n * Custom elements default to inline; force them to be block-level and width-contained.\n * This prevents wide interactions (SVGs, tables, canvases) from spilling outside panels.\n */.qti-item-body :is(\n pie-qti-choice,\n pie-qti-slider,\n pie-qti-order,\n pie-qti-match,\n pie-qti-associate,\n pie-qti-gap-match,\n pie-qti-hotspot,\n pie-qti-hottext,\n pie-qti-media,\n pie-qti-custom,\n pie-qti-portable-custom,\n pie-qti-end-attempt,\n pie-qti-position-object,\n pie-qti-graphic-gap-match,\n pie-qti-graphic-order,\n pie-qti-graphic-associate,\n pie-qti-select-point,\n pie-qti-extended-text\n ) {display:block;max-width:100%;min-width:0;}\n\n /*\n * Each interaction mounts into the empty slot that replaced its element in the body. A block\n * slot takes its own line wherever it was authored, also inside a paragraph; an inline slot\n * stays in the sentence.\n */.qti-item-body .qti-interaction-slot--block {display:block;max-width:100%;min-width:0;margin-block:1rem;}\n\n /* Interactions whose element is not in the body render after it. */.qti-item-body .qti-item-body-unslotted {display:flow-root;}\n\n /*\n * An interaction that failed to render — a mount that threw, or a component the registry\n * could not resolve — stands in as a role=\"alert\" placeholder naming it, styled like the\n * player's error alert so a failed interaction reads as one, consistently. The border is\n * a non-text indicator (WCAG 1.4.11), so it strokes with the error TEXT colour (>= 4.5:1\n * on base surfaces) rather than the fill (about 2.9:1 on white), matching the\n * *-text-token convention ShadowBaseStyles documents for indicator strokes; the fill\n * stays a tinted background.\n */.qti-item-body .qti-interaction-error {display:block;max-width:100%;margin-block:1rem;padding:0.75rem 1rem;border:1px solid var(--pie-qti-error-text, #b91c1c);border-radius:0.75rem;background:color-mix(in oklch, var(--pie-qti-error, oklch(71% 0.194 13.428)) 8%, transparent);color:var(--pie-qti-base-content, oklch(21% 0 0));}\n\n /*\n * Interaction markup with no interaction data behind it (nothing renders it) stays hidden\n * rather than showing raw prompt and choice text.\n */.qti-item-body .qti-hidden-interaction {display:none !important;}\n\n /*\n * Style for inline feedback elements that appear within choice text or other content.\n * Provides visual distinction and spacing for feedback that appears inline with content.\n */.qti-feedback-inline {display:inline-block;margin-inline-start:0.5rem;padding-inline-start:0.5rem;border-inline-start:2px solid var(--pie-qti-base-content, currentColor);opacity:0.8;}\n\n /* QTI 3.0 Shared Stimulus: stimulus blocks that were prepended before the item body */.qti-stimulus-block {margin-bottom:1rem;}\n\n /* QTI rubricBlock / qti-rubric-block content rendered in item-body source order. */.qti-item-body .qti-rubric-block {display:block;max-width:100%;min-width:0;margin:1rem 0;padding:1rem;overflow-x:auto;border:1px solid var(--pie-qti-base-300, #d1d5db);border-inline-start:4px solid var(--pie-qti-primary, #2563eb);border-radius:0.5rem;background:var(--pie-qti-base-200, #f8fafc);}.qti-item-body .qti-rubric-block > :first-child {margin-top:0;}.qti-item-body .qti-rubric-block > :last-child {margin-bottom:0;}.qti-item-body .qti-rubric-block table {max-width:100%;border-collapse:collapse;}.qti-item-body .qti-rubric-block th,\n .qti-item-body .qti-rubric-block td {padding:0.5rem;border:1px solid var(--pie-qti-base-300, #d1d5db);vertical-align:top;}\n\n /* QTI 3.0 Shared Vocabulary: qti-input-width-N sets minimum input width in character units. */.qti-input-width-1 {min-width:1ch;}.qti-input-width-2 {min-width:2ch;}.qti-input-width-3 {min-width:3ch;}.qti-input-width-4 {min-width:4ch;}.qti-input-width-5 {min-width:5ch;}.qti-input-width-6 {min-width:6ch;}.qti-input-width-10 {min-width:10ch;}.qti-input-width-15 {min-width:15ch;}.qti-input-width-20 {min-width:20ch;}.qti-input-width-25 {min-width:25ch;}.qti-input-width-30 {min-width:30ch;}.qti-input-width-35 {min-width:35ch;}.qti-input-width-40 {min-width:40ch;}.qti-input-width-45 {min-width:45ch;}.qti-input-width-50 {min-width:50ch;}.qti-input-width-72 {min-width:72ch;}"
|
|
2913
|
+
};
|
|
2914
|
+
function Ks(t, n) {
|
|
2915
|
+
Ot(n, !0), qa(t, Gs);
|
|
2916
|
+
let r = X(n, "disabled", 3, !1), i = X(n, "renderItemBodyRubrics", 3, !0), o = `qti-item-body-${++Us}`, l = `[data-qti-item-body-scope="${o}"]`, x = /* @__PURE__ */ A(() => a(n.session)), S = /* @__PURE__ */ A(() => (n.revision, n.session.state())), te = /* @__PURE__ */ A(() => W(S).responses), ne = /* @__PURE__ */ new Set(), re = null, ie = /* @__PURE__ */ A(() => {
|
|
2917
|
+
let e = W(S), t = W(x).getPnp(), a = W(x).getSecurityConfig(), o = W(x).getResponseIdentifiersPrintedInContent(), s = W(x).getContextIdentifiersPrintedInContent(), c = re;
|
|
2918
|
+
if (c && c.disabled === r() && c.renderItemBodyRubrics === i() && c.heuristicsConfig === n.heuristicsConfig && c.lifecycleStatus === e.lifecycleStatus && c.pnp === t && c.security === a && c.printedResponseIds === o && c.printedContextIds === s && ue(c.outcomes, e.outcomes) && ue(c.templates, e.templates) && de(c.context, e.context, s) && de(c.responses, e.responses, o)) return c.presentation;
|
|
2919
|
+
let u = n.session.present({
|
|
2920
|
+
disabled: r(),
|
|
2921
|
+
heuristicsConfig: n.heuristicsConfig,
|
|
2922
|
+
itemBodyScopeSelector: l,
|
|
2923
|
+
renderItemBodyRubrics: i(),
|
|
2924
|
+
onComponentError: (e, t) => {
|
|
2925
|
+
console.error(`Failed to get tag name for ${e.type}:`, t), ne.has(e.type) || (ne.add(e.type), queueMicrotask(() => n.onError?.({
|
|
2926
|
+
code: "render-failed",
|
|
2927
|
+
cause: t
|
|
2928
|
+
})));
|
|
2929
|
+
}
|
|
2930
|
+
});
|
|
2931
|
+
return re = {
|
|
2932
|
+
presentation: u,
|
|
2933
|
+
disabled: r(),
|
|
2934
|
+
renderItemBodyRubrics: i(),
|
|
2935
|
+
heuristicsConfig: n.heuristicsConfig,
|
|
2936
|
+
lifecycleStatus: e.lifecycleStatus,
|
|
2937
|
+
pnp: t,
|
|
2938
|
+
security: a,
|
|
2939
|
+
outcomes: e.outcomes,
|
|
2940
|
+
templates: e.templates,
|
|
2941
|
+
context: e.context,
|
|
2942
|
+
responses: e.responses,
|
|
2943
|
+
printedResponseIds: o,
|
|
2944
|
+
printedContextIds: s
|
|
2945
|
+
}, u;
|
|
2946
|
+
}), ae = /* @__PURE__ */ A(() => s(W(ie).contentLanguage)), oe = /* @__PURE__ */ A(() => {
|
|
2947
|
+
let e = W(ie).flow.find((e) => e.kind === "html");
|
|
2948
|
+
return e?.kind === "html" ? String(e.html) : "";
|
|
2949
|
+
}), se = /* @__PURE__ */ A(() => W(x).getSecurityConfig()), C = /* @__PURE__ */ A(() => ({
|
|
2950
|
+
presentation: W(ie),
|
|
2951
|
+
responses: W(te),
|
|
2952
|
+
i18n: n.i18n,
|
|
2953
|
+
typeset: n.typeset,
|
|
2954
|
+
security: W(se)
|
|
2955
|
+
})), ce = /* @__PURE__ */ A(() => (W(oe), { player: W(x) }));
|
|
2956
|
+
function le(e, t) {
|
|
2957
|
+
try {
|
|
2958
|
+
n.session.dispatch({
|
|
2959
|
+
action: "setResponse",
|
|
2960
|
+
responseIdentifier: e,
|
|
2961
|
+
value: t
|
|
2962
|
+
}), n.onResponseChange?.(e, t);
|
|
2963
|
+
} catch (e) {
|
|
2964
|
+
if (n.onError) {
|
|
2965
|
+
n.onError({
|
|
2966
|
+
code: "response-dispatch-failed",
|
|
2967
|
+
cause: e
|
|
2968
|
+
});
|
|
2969
|
+
return;
|
|
2970
|
+
}
|
|
2971
|
+
throw e;
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
function ue(e, t) {
|
|
2975
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
2976
|
+
return n.length === r.length && n.every((n) => g(e[n], t[n]));
|
|
2977
|
+
}
|
|
2978
|
+
function de(e, t, n) {
|
|
2979
|
+
for (let r of n) if (!g(e[r], t[r])) return !1;
|
|
2980
|
+
return !0;
|
|
2981
|
+
}
|
|
2982
|
+
function fe(e) {
|
|
2983
|
+
let { responseId: t, value: n } = e.detail;
|
|
2984
|
+
le(t, n);
|
|
2985
|
+
}
|
|
2986
|
+
let pe = (e) => W(x).createPciHost(e), me = /* @__PURE__ */ L(null);
|
|
2987
|
+
Tr(() => {
|
|
2988
|
+
if (!W(me)) return;
|
|
2989
|
+
let e = W(me), t = () => {
|
|
2990
|
+
m(e) || W(x).applyPnp(e);
|
|
2991
|
+
};
|
|
2992
|
+
t();
|
|
2993
|
+
let n = W(x).onPnpChange(() => t()), r = (e) => fe(e);
|
|
2994
|
+
return e.addEventListener("qti-change", r), () => {
|
|
2995
|
+
e.removeEventListener("qti-change", r), n();
|
|
2996
|
+
};
|
|
2997
|
+
});
|
|
2998
|
+
let he = /* @__PURE__ */ L($n({ text: "" }));
|
|
2999
|
+
Tr(() => {
|
|
3000
|
+
let e = n.session;
|
|
3001
|
+
R(he, { text: "" }, !0);
|
|
3002
|
+
let t;
|
|
3003
|
+
try {
|
|
3004
|
+
t = e.subscribe((t) => ge(e, t));
|
|
3005
|
+
} catch {}
|
|
3006
|
+
return () => t?.();
|
|
3007
|
+
});
|
|
3008
|
+
function ge(e, t) {
|
|
3009
|
+
if (t.current.disposed || !b(t, t.current.role)) return;
|
|
3010
|
+
let r;
|
|
3011
|
+
try {
|
|
3012
|
+
r = e.present({
|
|
3013
|
+
heuristicsConfig: n.heuristicsConfig,
|
|
3014
|
+
itemBodyScopeSelector: l,
|
|
3015
|
+
renderItemBodyRubrics: i()
|
|
3016
|
+
});
|
|
3017
|
+
} catch {
|
|
3018
|
+
return;
|
|
3019
|
+
}
|
|
3020
|
+
let { shown: a, text: o } = r.shownFeedback;
|
|
3021
|
+
if (!a) {
|
|
3022
|
+
R(he, { text: "" }, !0);
|
|
3023
|
+
return;
|
|
3024
|
+
}
|
|
3025
|
+
let d = o || u(n.i18n, "feedback.shown", "Feedback is shown.");
|
|
3026
|
+
R(he, {
|
|
3027
|
+
text: ee(W(he).text, d),
|
|
3028
|
+
language: o ? s(r.contentLanguage) : c(n.i18n)
|
|
3029
|
+
}, !0);
|
|
3030
|
+
}
|
|
3031
|
+
function _e(t, r) {
|
|
3032
|
+
let i = r, a = 0, s = () => `${o}-context-${++a}`, c = (e) => i.presentation.capabilities.canViewCorrectResponses ? i.presentation.correctResponses[e] ?? null : null, l = (e) => {
|
|
3033
|
+
let t = i.responses[e];
|
|
3034
|
+
return typeof t == "string" ? t : "";
|
|
3035
|
+
};
|
|
3036
|
+
function f(e) {
|
|
3037
|
+
let t = "stringIdentifier" in e.interaction && typeof e.interaction.stringIdentifier == "string" ? e.interaction.stringIdentifier : void 0;
|
|
3038
|
+
return {
|
|
3039
|
+
response: i.responses[e.interaction.responseId] ?? null,
|
|
3040
|
+
...t ? { stringResponse: i.responses[t] ?? null } : {},
|
|
3041
|
+
correctResponse: i.presentation.capabilities.canViewCorrectResponses ? i.presentation.correctResponses[e.interaction.responseId] ?? null : null
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
function p(e) {
|
|
3045
|
+
return {
|
|
3046
|
+
i18n: i.i18n,
|
|
3047
|
+
typeset: i.typeset,
|
|
3048
|
+
interaction: e.interaction,
|
|
3049
|
+
...f(e),
|
|
3050
|
+
pnp: e.pnp,
|
|
3051
|
+
eliminationTool: e.eliminationTool,
|
|
3052
|
+
answerMasking: e.answerMasking,
|
|
3053
|
+
structuredLabelSupport: e.structuredLabelSupport,
|
|
3054
|
+
disabled: e.disabled,
|
|
3055
|
+
role: e.componentRole,
|
|
3056
|
+
security: i.security,
|
|
3057
|
+
createPciHost: pe
|
|
3058
|
+
};
|
|
3059
|
+
}
|
|
3060
|
+
function m(n) {
|
|
3061
|
+
let r = t.ownerDocument.createElement(n.tagName);
|
|
3062
|
+
ve(r, n.interaction.readAloud);
|
|
3063
|
+
let i = n, a = !1;
|
|
3064
|
+
return e(r, p(i)), customElements.get(n.tagName) || customElements.whenDefined(n.tagName).then(() => {
|
|
3065
|
+
a || ye(r, p(i));
|
|
3066
|
+
}), {
|
|
3067
|
+
element: r,
|
|
3068
|
+
update(t) {
|
|
3069
|
+
i = t, e(r, p(i));
|
|
3070
|
+
},
|
|
3071
|
+
destroy() {
|
|
3072
|
+
a = !0;
|
|
3073
|
+
}
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
function g(e) {
|
|
3077
|
+
let n = t.ownerDocument.createElement("span");
|
|
3078
|
+
n.className = "qti-inline-interaction", ve(n, e.interaction.readAloud);
|
|
3079
|
+
let r = () => ({
|
|
3080
|
+
position: e.position,
|
|
3081
|
+
response: l(e.interaction.responseId),
|
|
3082
|
+
correctAnswer: c(e.interaction.responseId),
|
|
3083
|
+
disabled: i.presentation.disabled,
|
|
3084
|
+
i18n: i.i18n,
|
|
3085
|
+
onResponseChange: le
|
|
3086
|
+
});
|
|
3087
|
+
if (e.renderer === "text-entry") {
|
|
3088
|
+
let a = (e) => {
|
|
3089
|
+
let t = h(e);
|
|
3090
|
+
return (t ? i.responses[t] : void 0) ?? null;
|
|
3091
|
+
}, o = $n({
|
|
3092
|
+
interaction: e.interaction,
|
|
3093
|
+
...r(),
|
|
3094
|
+
stringResponse: a(e.interaction)
|
|
3095
|
+
}), c = xa(Hs, {
|
|
3096
|
+
target: n,
|
|
3097
|
+
props: o
|
|
3098
|
+
});
|
|
3099
|
+
return {
|
|
3100
|
+
element: n,
|
|
3101
|
+
update(t) {
|
|
3102
|
+
t.placement === "inline" && t.renderer === "text-entry" && (e = t, Object.assign(o, {
|
|
3103
|
+
interaction: t.interaction,
|
|
3104
|
+
...r(),
|
|
3105
|
+
stringResponse: a(t.interaction)
|
|
3106
|
+
}));
|
|
3107
|
+
},
|
|
3108
|
+
placed(e) {
|
|
3109
|
+
o.contextId = e ? y(e, t, s) : void 0;
|
|
3110
|
+
},
|
|
3111
|
+
destroy() {
|
|
3112
|
+
Ta(c);
|
|
3113
|
+
}
|
|
3114
|
+
};
|
|
3115
|
+
}
|
|
3116
|
+
let a = $n({
|
|
3117
|
+
interaction: e.interaction,
|
|
3118
|
+
...r()
|
|
3119
|
+
}), o = xa(Ls, {
|
|
3120
|
+
target: n,
|
|
3121
|
+
props: a
|
|
3122
|
+
});
|
|
3123
|
+
return {
|
|
3124
|
+
element: n,
|
|
3125
|
+
update(t) {
|
|
3126
|
+
t.placement === "inline" && t.renderer === "inline-choice" && (e = t, Object.assign(a, {
|
|
3127
|
+
interaction: t.interaction,
|
|
3128
|
+
...r()
|
|
3129
|
+
}));
|
|
3130
|
+
},
|
|
3131
|
+
placed(e) {
|
|
3132
|
+
a.contextId = e ? y(e, t, s) : void 0;
|
|
3133
|
+
},
|
|
3134
|
+
destroy() {
|
|
3135
|
+
Ta(o);
|
|
3136
|
+
}
|
|
3137
|
+
};
|
|
3138
|
+
}
|
|
3139
|
+
let b = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set(), S = v(t, {
|
|
3140
|
+
create: (e) => {
|
|
3141
|
+
try {
|
|
3142
|
+
let t = e.placement === "block" ? m(e) : g(e);
|
|
3143
|
+
return x.delete(e.key), t;
|
|
3144
|
+
} catch (t) {
|
|
3145
|
+
throw x.add(e.key), t;
|
|
3146
|
+
}
|
|
3147
|
+
},
|
|
3148
|
+
onError: (e, r) => {
|
|
3149
|
+
console.error(`Failed to render ${e.interaction.type}:`, r), n.onError?.({
|
|
3150
|
+
code: "render-failed",
|
|
3151
|
+
cause: r
|
|
3152
|
+
}), x.has(e.key) && (ee.add(e.key), te(t, e));
|
|
3153
|
+
}
|
|
3154
|
+
});
|
|
3155
|
+
function te(e, t) {
|
|
3156
|
+
let r = b.get(t.key);
|
|
3157
|
+
if (r || (r = e.ownerDocument.createElement("div"), r.className = "qti-interaction-error", r.setAttribute("role", "alert"), b.set(t.key, r)), r.textContent = u(n.i18n, "interaction.renderError", "This interactive element ({type}) could not be displayed.", { type: t.interaction.type }), t.slot !== null) {
|
|
3158
|
+
let n = Array.from(e.querySelectorAll(`[${d}]`)).find((e) => e.getAttribute(d) === t.slot);
|
|
3159
|
+
if (n) {
|
|
3160
|
+
n.contains(r) || n.replaceChildren(r);
|
|
3161
|
+
return;
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
let i = Array.from(e.children).find((e) => e.classList.contains(_)) ?? (() => {
|
|
3165
|
+
let t = e.ownerDocument.createElement("div");
|
|
3166
|
+
return t.className = _, e.append(t), t;
|
|
3167
|
+
})();
|
|
3168
|
+
r.parentNode !== i && i.append(r);
|
|
3169
|
+
}
|
|
3170
|
+
let ne = () => gi(() => {
|
|
3171
|
+
ee.clear();
|
|
3172
|
+
let e = i.presentation.flow.find((e) => e.kind === "html"), n = i.presentation.flow.flatMap((e) => e.kind === "interaction" ? [e.mount] : []);
|
|
3173
|
+
S.render(e?.kind === "html" ? e.html : "", n);
|
|
3174
|
+
for (let e of i.presentation.failedInteractions) ee.add(e.key), te(t, e);
|
|
3175
|
+
for (let [e, t] of b) ee.has(e) || (t.remove(), b.delete(e));
|
|
3176
|
+
});
|
|
3177
|
+
return ne(), {
|
|
3178
|
+
update(e) {
|
|
3179
|
+
i = e, ne();
|
|
3180
|
+
},
|
|
3181
|
+
destroy() {
|
|
3182
|
+
S.destroy();
|
|
3183
|
+
}
|
|
3184
|
+
};
|
|
3185
|
+
}
|
|
3186
|
+
function ve(e, t) {
|
|
3187
|
+
for (let [n, r] of Object.entries(t ?? {})) e.setAttribute(n, r);
|
|
3188
|
+
}
|
|
3189
|
+
function ye(e, t) {
|
|
3190
|
+
let n = e;
|
|
3191
|
+
for (let [e, r] of Object.entries(t)) r !== void 0 && (Object.prototype.hasOwnProperty.call(n, e) && delete n[e], n[e] = r);
|
|
3192
|
+
}
|
|
3193
|
+
var be = Ws(), xe = dr(be), Se = ur(xe), Ce = (e) => {
|
|
3194
|
+
var t = Wi();
|
|
3195
|
+
Ka(dr(t), () => "style", !1, (e, t) => {
|
|
3196
|
+
Do(e, () => ({ "data-qti-stylesheets": "resolved" }));
|
|
3197
|
+
var n = Ui();
|
|
3198
|
+
B(() => J(n, W(ie).scopedCss)), K(t, n);
|
|
3199
|
+
}), K(e, t);
|
|
3200
|
+
};
|
|
3201
|
+
Pa(Se, (e) => {
|
|
3202
|
+
W(ie).scopedCss && e(Ce);
|
|
3203
|
+
});
|
|
3204
|
+
var we = pr(Se, 2);
|
|
3205
|
+
Ja(we, (e, t) => _e?.(e, t), () => W(C)), Ja(we, (e, t) => p?.(e, t), () => W(ce)), ct(xe), zo(xe, (e) => R(me, e), () => W(me)), Ja(xe, (e, t) => f?.(e, t), () => ({ typeset: n.typeset }));
|
|
3206
|
+
var Te = pr(xe, 2), Ee = fr(Te, !0);
|
|
3207
|
+
B(() => {
|
|
3208
|
+
Y(xe, "data-qti-item-body-scope", o), Y(xe, "lang", W(ae)?.lang), Y(xe, "dir", W(ae)?.dir), xe.dir = xe.dir, Y(Te, "lang", W(he).language?.lang), Y(Te, "dir", W(he).language?.dir), J(Ee, W(he).text), Te.dir = Te.dir;
|
|
3209
|
+
}), K(t, be), kt();
|
|
3210
|
+
}
|
|
3211
|
+
// src/components/ModalFeedbackDisplay.svelte
|
|
3212
|
+
var qs = /* @__PURE__ */ G("<h3 class=\"qti-feedback-title svelte-i66ia0\"> </h3>"), Js = /* @__PURE__ */ G("<div><!> <div class=\"qti-feedback-content svelte-i66ia0\"></div></div>"), Ys = /* @__PURE__ */ G("<dialog class=\"qti-feedback-modal svelte-i66ia0\"><div class=\"qti-feedback-modal-box svelte-i66ia0\"><button class=\"qti-feedback-close-button svelte-i66ia0\" type=\"button\"><span aria-hidden=\"true\">✕</span></button> <!> <div class=\"qti-feedback-actions svelte-i66ia0\"><button class=\"qti-feedback-primary-button svelte-i66ia0\" type=\"button\"> </button></div></div></dialog>"), Xs = {
|
|
3213
|
+
hash: "svelte-i66ia0",
|
|
3214
|
+
code: ".qti-feedback-modal.svelte-i66ia0 {box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background-color:rgba(0, 0, 0, 0.5);color:var(--pie-qti-base-content, oklch(21% 0 0));}\n\n /* The dialog itself is the full-viewport scrim; its native backdrop stays transparent. */.qti-feedback-modal.svelte-i66ia0::backdrop {background:transparent;}.qti-feedback-modal[open].svelte-i66ia0 {display:grid;place-items:center;}.qti-feedback-modal-box.svelte-i66ia0 {position:relative;box-sizing:border-box;width:min(48rem, calc(100vw - 2rem));max-height:80vh;overflow-y:auto;padding:1.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:1rem;background:var(--pie-qti-base-100, oklch(100% 0 0));box-shadow:0 20px 45px rgba(0, 0, 0, 0.2);}.qti-feedback-close-button.svelte-i66ia0,\n .qti-feedback-primary-button.svelte-i66ia0 {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pie-qti-border-strong, #767676);background:var(--pie-qti-base-100, oklch(100% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;cursor:pointer;}.qti-feedback-close-button.svelte-i66ia0 {position:absolute;top:0.5rem;inset-inline-end:0.5rem;width:2.5rem;height:2.5rem;padding:0;border-radius:9999px;background:transparent;border-color:transparent;}.qti-feedback-close-button.svelte-i66ia0:hover {background:var(--pie-qti-base-200, oklch(98% 0 0));border-color:var(--pie-qti-border-strong, #767676);}.qti-feedback-primary-button.svelte-i66ia0 {gap:0.5rem;min-height:2.75rem;padding:0.5rem 1rem;border-radius:0.75rem;border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-feedback-close-button.svelte-i66ia0:focus-visible,\n .qti-feedback-primary-button.svelte-i66ia0:focus-visible,\n .qti-feedback-title.svelte-i66ia0:focus-visible,\n .qti-feedback-content.svelte-i66ia0:focus-visible {outline:2px solid var(--pie-qti-focus, #4338ca);outline-offset:2px;}.qti-feedback-item.svelte-i66ia0 {margin-bottom:1rem;}.qti-feedback-item-bordered.svelte-i66ia0 {padding-bottom:1rem;border-bottom:1px solid var(--pie-qti-base-300, oklch(95% 0 0));}.qti-feedback-title.svelte-i66ia0 {margin:0 0 0.5rem;\n /* Keep the title clear of the close button. */padding-inline-end:2.5rem;font-size:1.125rem;font-weight:700;}.qti-feedback-content.svelte-i66ia0 {max-width:none;}.qti-feedback-actions.svelte-i66ia0 {display:flex;justify-content:flex-end;margin-top:1rem;}"
|
|
3215
|
+
};
|
|
3216
|
+
function Zs(e, t) {
|
|
3217
|
+
let n = Gi();
|
|
3218
|
+
Ot(t, !0), qa(e, Xs);
|
|
3219
|
+
let r = X(t, "feedback", 19, () => []), i = /* @__PURE__ */ A(() => s(t.contentLanguage)), a = /* @__PURE__ */ A(() => r().length > 0), o = `${n}-title`, c = /* @__PURE__ */ A(() => r().findIndex((e) => e.title)), l = /* @__PURE__ */ L(null), d = !1;
|
|
3220
|
+
Tr(() => {
|
|
3221
|
+
let e = W(l);
|
|
3222
|
+
if (!e) return;
|
|
3223
|
+
let t = ae(e.ownerDocument), n = e.parentElement;
|
|
3224
|
+
return se(e), oe(e.querySelector("[data-initial-focus]")), () => {
|
|
3225
|
+
e.isConnected && ie(e), C(t) || oe(n);
|
|
3226
|
+
};
|
|
3227
|
+
});
|
|
3228
|
+
function p() {
|
|
3229
|
+
t.onClose?.();
|
|
3230
|
+
}
|
|
3231
|
+
function m(e) {
|
|
3232
|
+
e.key === "Escape" && (e.preventDefault(), p());
|
|
3233
|
+
}
|
|
3234
|
+
function h(e) {
|
|
3235
|
+
e.preventDefault(), p();
|
|
3236
|
+
}
|
|
3237
|
+
function g(e) {
|
|
3238
|
+
d = e.target === e.currentTarget;
|
|
3239
|
+
}
|
|
3240
|
+
function _(e) {
|
|
3241
|
+
let t = d && e.target === e.currentTarget;
|
|
3242
|
+
d = !1, t && p();
|
|
3243
|
+
}
|
|
3244
|
+
var v = Wi(), y = dr(v), b = (e) => {
|
|
3245
|
+
var n = Ys(), a = ur(n), s = ur(a), d = pr(s, 2);
|
|
3246
|
+
za(d, 17, r, Fa, (e, n, a) => {
|
|
3247
|
+
var s = Js();
|
|
3248
|
+
let l;
|
|
3249
|
+
var u = ur(s), d = (e) => {
|
|
3250
|
+
var t = qs(), r = fr(t, !0);
|
|
3251
|
+
B(() => {
|
|
3252
|
+
Y(t, "id", a === W(c) ? o : void 0), Y(t, "data-initial-focus", a === W(c) ? "" : void 0), J(r, W(n).title);
|
|
3253
|
+
}), K(e, t);
|
|
3254
|
+
};
|
|
3255
|
+
Pa(u, (e) => {
|
|
3256
|
+
W(n).title && e(d);
|
|
3257
|
+
});
|
|
3258
|
+
var p = pr(u, 2);
|
|
3259
|
+
Ga(p, () => W(n).content, !0), ct(p), Ja(p, (e, t) => f?.(e, t), () => ({ typeset: t.typeset })), ct(s), B(() => {
|
|
3260
|
+
Y(s, "lang", W(i)?.lang), Y(s, "dir", W(i)?.dir), l = io(s, 1, "svelte-i66ia0", null, l, {
|
|
3261
|
+
"qti-feedback-item": !0,
|
|
3262
|
+
"qti-feedback-item-bordered": a < r().length - 1
|
|
3263
|
+
}), Y(p, "data-initial-focus", W(c) < 0 && a === 0 ? "" : void 0), s.dir = s.dir;
|
|
3264
|
+
}), K(e, s);
|
|
3265
|
+
});
|
|
3266
|
+
var v = pr(d, 2), y = ur(v), b = fr(y, !0);
|
|
3267
|
+
ct(v), ct(a), ct(n), zo(n, (e) => R(l, e), () => W(l)), B((e, t, r) => {
|
|
3268
|
+
Y(n, "aria-labelledby", W(c) >= 0 ? o : void 0), Y(n, "aria-label", e), Y(s, "aria-label", t), J(b, r);
|
|
3269
|
+
}, [
|
|
3270
|
+
() => W(c) >= 0 ? void 0 : u(t.i18n, "feedback.title", "Feedback"),
|
|
3271
|
+
() => u(t.i18n, "feedback.closeFeedback", "Dismiss feedback"),
|
|
3272
|
+
() => u(t.i18n, "common.continue", "Continue")
|
|
3273
|
+
]), Ni("cancel", n, h), Ni("close", n, p), Pi("keydown", n, m), Pi("pointerdown", n, g), Pi("click", n, _), Pi("click", s, p), Pi("click", y, p), K(e, n);
|
|
3274
|
+
};
|
|
3275
|
+
Pa(y, (e) => {
|
|
3276
|
+
W(a) && e(b);
|
|
3277
|
+
}), K(e, v), kt();
|
|
3278
|
+
}
|
|
3279
|
+
Fi([
|
|
3280
|
+
"keydown",
|
|
3281
|
+
"pointerdown",
|
|
3282
|
+
"click"
|
|
3283
|
+
]);
|
|
3284
|
+
// src/components/ItemPlayer.svelte
|
|
3285
|
+
var Qs = /* @__PURE__ */ G("<div class=\"qti-player-alert qti-player-alert-error svelte-129urwy\" role=\"alert\"><span> </span></div>"), $s = /* @__PURE__ */ G("<span class=\"qti-player-badge qti-player-badge-success svelte-129urwy\"> </span>"), ec = /* @__PURE__ */ G("<span> </span>"), tc = /* @__PURE__ */ G("<div class=\"qti-player-attempt-status svelte-129urwy\"><!></div>"), nc = /* @__PURE__ */ G("<div class=\"qti-player-actions svelte-129urwy\"><button class=\"qti-player-button qti-player-button-primary svelte-129urwy\"> </button> <!></div>"), rc = /* @__PURE__ */ G("<!> <!> <!>", 1), ic = /* @__PURE__ */ G("<div class=\"qti-player-alert qti-player-alert-info svelte-129urwy\" role=\"status\"><span> </span></div>"), ac = /* @__PURE__ */ G("<div class=\"qti-item-player svelte-129urwy\"><!></div>"), oc = {
|
|
3286
|
+
hash: "svelte-129urwy",
|
|
3287
|
+
code: ".qti-item-player.svelte-129urwy {color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert.svelte-129urwy {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));}.qti-player-alert-error.svelte-129urwy {border-color:var(--pie-qti-error, oklch(71% 0.194 13.428));background:color-mix(in oklch, var(--pie-qti-error, oklch(71% 0.194 13.428)) 8%, transparent);}.qti-player-alert-info.svelte-129urwy {border-color:var(--pie-qti-info, oklch(74% 0.16 232.661));background:color-mix(in oklch, var(--pie-qti-info, oklch(74% 0.16 232.661)) 8%, transparent);}.qti-player-actions.svelte-129urwy {display:flex;align-items:center;gap:1rem;margin-top:1.5rem;}.qti-player-button.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;min-height:2.75rem;padding:0.5rem 1rem;border:1px solid var(--pie-qti-border-strong, #767676);border-radius:0.75rem;background:var(--pie-qti-base-200, oklch(98% 0 0));color:var(--pie-qti-base-content, oklch(21% 0 0));font:inherit;line-height:1.1;cursor:pointer;}.qti-player-button-primary.svelte-129urwy {border-color:var(--pie-qti-primary, oklch(45% 0.24 277));background:color-mix(in oklch, var(--pie-qti-primary, oklch(45% 0.24 277)) 12%, transparent);}.qti-player-button.svelte-129urwy:disabled {opacity:0.55;cursor:not-allowed;}.qti-player-button.svelte-129urwy:focus-visible {outline:2px solid var(--pie-qti-focus, #4338ca);outline-offset:2px;}.qti-player-attempt-status.svelte-129urwy {color:color-mix(in oklch, var(--pie-qti-base-content, oklch(21% 0 0)) 70%, transparent);font-size:0.875rem;}.qti-player-badge.svelte-129urwy {display:inline-flex;align-items:center;justify-content:center;min-height:1.25rem;padding:0 0.5rem;border:1px solid var(--pie-qti-base-300, oklch(95% 0 0));border-radius:9999px;font-size:0.75rem;font-weight:600;}.qti-player-badge-success.svelte-129urwy {border-color:var(--pie-qti-success, oklch(76% 0.177 163.223));background:color-mix(in oklch, var(--pie-qti-success, oklch(76% 0.177 163.223)) 12%, transparent);}"
|
|
3288
|
+
};
|
|
3289
|
+
function sc(e, t) {
|
|
3290
|
+
Ot(t, !0), qa(e, oc);
|
|
3291
|
+
let s = X(t, "role", 3, "candidate"), l = X(t, "responses", 19, () => ({})), d = X(t, "disabled", 3, !1), f = X(t, "renderItemBodyRubrics", 3, !0), p = /* @__PURE__ */ A(() => t.showSubmit ?? !!t.onSubmit), m = /* @__PURE__ */ L(null), h = /* @__PURE__ */ L(null), g = /* @__PURE__ */ L(null), _ = /* @__PURE__ */ L($n([])), v = /* @__PURE__ */ A(() => W(g) === "load" ? u(t.i18n, "item.loadingError", "Failed to load item") : W(g) === "submission" ? u(t.i18n, "item.submitError", "Your answer could not be submitted. Please try again.") : W(g) === "processing" ? u(t.i18n, "item.processingError", "Failed to process responses") : null), y = /* @__PURE__ */ A(() => W(h)?.adaptive ?? !1), b = /* @__PURE__ */ A(() => W(h)?.completed ?? !1), ee = /* @__PURE__ */ A(() => W(h)?.numAttempts ?? 0), x = /* @__PURE__ */ A(() => W(h)?.canSubmit ?? !1), S = /* @__PURE__ */ A(() => W(h)?.role ?? s());
|
|
3292
|
+
function te(e) {
|
|
3293
|
+
R(h, e, !0);
|
|
3294
|
+
}
|
|
3295
|
+
let ne = /* @__PURE__ */ A(() => o.itemXml.sessionValue(t.itemXml)), re = /* @__PURE__ */ A(() => o.role.sessionValue(s())), ie = /* @__PURE__ */ A(() => o.security.sessionValue(t.security)), ae = /* @__PURE__ */ A(() => o.pnp.sessionValue(t.pnp)), oe = /* @__PURE__ */ A(() => o.deliveryContext.sessionValue(t.deliveryContext)), se = /* @__PURE__ */ A(() => o.resolveProcessingFragment.sessionValue(t.resolveProcessingFragment)), C = /* @__PURE__ */ A(() => o.processingFragmentLimits.sessionValue(t.processingFragmentLimits)), le = /* @__PURE__ */ A(() => o.pci.sessionValue(t.pci)), ue = /* @__PURE__ */ A(() => o.plugins.sessionValue(t.plugins)), de = /* @__PURE__ */ A(() => o.stringComparison.sessionValue(t.stringComparison)), fe = /* @__PURE__ */ A(() => o.showFeedback.sessionValue(t.showFeedback)), pe = /* @__PURE__ */ A(() => o.showSolution.sessionValue(t.showSolution)), me = /* @__PURE__ */ A(() => t.session), he = Math.floor(Math.random() * 2147483647);
|
|
3296
|
+
function ge(e) {
|
|
3297
|
+
let t = (he ^ e.length) >>> 0;
|
|
3298
|
+
for (let n = 0; n < e.length; n++) t = Math.imul(t ^ e.charCodeAt(n), 16777619) >>> 0;
|
|
3299
|
+
return t >>> 0;
|
|
3300
|
+
}
|
|
3301
|
+
function _e(e, t, n) {
|
|
3302
|
+
try {
|
|
3303
|
+
return e.openSession({
|
|
3304
|
+
responses: t,
|
|
3305
|
+
presentation: n
|
|
3306
|
+
});
|
|
3307
|
+
} catch (r) {
|
|
3308
|
+
if (!(r instanceof i)) throw r;
|
|
3309
|
+
let a = e.openSession({ presentation: n }), o = ve(a, t);
|
|
3310
|
+
return Object.keys(o).length > 0 && a.dispatch({
|
|
3311
|
+
action: "setResponses",
|
|
3312
|
+
responses: o
|
|
3313
|
+
}), a;
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
function ve(e, t) {
|
|
3317
|
+
let r = new Set(Object.keys(e.state().responses));
|
|
3318
|
+
for (let e of Object.keys(t)) r.has(e) || n(`item-player:unknown-response-${e}`, `Dropped response '${e}' carried over from the previous item: this item declares no such response identifier.`);
|
|
3319
|
+
return Object.fromEntries(Object.entries(t).filter(([e]) => r.has(e)));
|
|
3320
|
+
}
|
|
3321
|
+
function ye(e) {
|
|
3322
|
+
if (!e) return {};
|
|
3323
|
+
try {
|
|
3324
|
+
let t = e.state().itemIdentifier;
|
|
3325
|
+
return t ? { itemIdentifier: t } : {};
|
|
3326
|
+
} catch {
|
|
3327
|
+
return {};
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
Tr(() => {
|
|
3331
|
+
let e = null, n = !1, i, a = gi(() => ({
|
|
3332
|
+
onReady: t.onReady,
|
|
3333
|
+
onError: t.onError,
|
|
3334
|
+
onOwnedSession: t.onOwnedSession,
|
|
3335
|
+
resumeSession: t.resumeSession
|
|
3336
|
+
}));
|
|
3337
|
+
try {
|
|
3338
|
+
if (W(me)) e = W(me);
|
|
3339
|
+
else {
|
|
3340
|
+
let t = a.resumeSession?.();
|
|
3341
|
+
if (t && !t.state().disposed) e = t;
|
|
3342
|
+
else {
|
|
3343
|
+
let t = gi(() => l()), n = r({
|
|
3344
|
+
itemXml: W(ne),
|
|
3345
|
+
role: W(re),
|
|
3346
|
+
security: W(ie),
|
|
3347
|
+
pnp: W(ae),
|
|
3348
|
+
deliveryContext: W(oe),
|
|
3349
|
+
resolveProcessingFragment: W(se),
|
|
3350
|
+
processingFragmentLimits: W(C),
|
|
3351
|
+
pci: W(le),
|
|
3352
|
+
plugins: W(ue),
|
|
3353
|
+
...W(de) ? { stringComparison: W(de) } : {},
|
|
3354
|
+
seed: ge(W(ne))
|
|
3355
|
+
});
|
|
3356
|
+
i = n.identifier || void 0, e = _e(n, t, {
|
|
3357
|
+
showFeedback: W(fe),
|
|
3358
|
+
showSolution: W(pe)
|
|
3359
|
+
});
|
|
3360
|
+
}
|
|
3361
|
+
n = !0, a.onOwnedSession?.(e);
|
|
3362
|
+
}
|
|
3363
|
+
R(m, e, !0), te(e.state()), R(g, null), R(_, [], !0), a.onReady?.();
|
|
3364
|
+
let o = e.subscribe((r) => {
|
|
3365
|
+
let { command: i, current: a } = r;
|
|
3366
|
+
if (te(a), a.disposed) W(m) === e && R(m, null);
|
|
3367
|
+
else if (i.action === "setResponse") {
|
|
3368
|
+
t.onResponseChange?.(i.responseIdentifier, a.responses[i.responseIdentifier]);
|
|
3369
|
+
let o = n ? ce(r, () => e?.present().flow ?? []) : null;
|
|
3370
|
+
o && queueMicrotask(() => {
|
|
3371
|
+
W(m) === e && xe(o.countAttempt);
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
});
|
|
3375
|
+
return () => {
|
|
3376
|
+
o(), n && e && (t.onOwnedSessionRelease ? t.onOwnedSessionRelease(e) : e.dispose()), W(m) === e && (R(m, null), R(h, null));
|
|
3377
|
+
};
|
|
3378
|
+
} catch (t) {
|
|
3379
|
+
n && e?.dispose(), R(g, "load"), a.onError?.({
|
|
3380
|
+
code: "item-load-failed",
|
|
3381
|
+
message: t instanceof Error ? t.message : String(t),
|
|
3382
|
+
...i ? { itemIdentifier: i } : {}
|
|
3383
|
+
}), R(m, null), R(h, null);
|
|
3384
|
+
}
|
|
3385
|
+
}), Tr(() => {
|
|
3386
|
+
let e = l(), n = W(m);
|
|
3387
|
+
if (!n || W(me)) return;
|
|
3388
|
+
let r = n.state().responses, i = ve(n, e);
|
|
3389
|
+
if ([.../* @__PURE__ */ new Set([...Object.keys(r), ...Object.keys(i)])].some((e) => r[e] !== i[e])) try {
|
|
3390
|
+
n.dispatch({
|
|
3391
|
+
action: "setResponses",
|
|
3392
|
+
responses: i
|
|
3393
|
+
});
|
|
3394
|
+
} catch (e) {
|
|
3395
|
+
R(g, "processing"), t.onError?.({
|
|
3396
|
+
code: "response-processing-failed",
|
|
3397
|
+
message: e instanceof Error ? e.message : String(e),
|
|
3398
|
+
...ye(n)
|
|
3399
|
+
});
|
|
3400
|
+
}
|
|
3401
|
+
});
|
|
3402
|
+
function be(e) {
|
|
3403
|
+
e.code === "response-dispatch-failed" && R(g, "processing"), t.onError?.({
|
|
3404
|
+
code: e.code,
|
|
3405
|
+
message: e.cause instanceof Error ? e.cause.message : String(e.cause),
|
|
3406
|
+
...ye(W(m))
|
|
3407
|
+
});
|
|
3408
|
+
}
|
|
3409
|
+
function xe(e = !0) {
|
|
3410
|
+
if (W(m)) try {
|
|
3411
|
+
let n = W(m).dispatch(W(y) ? {
|
|
3412
|
+
action: "submitAttempt",
|
|
3413
|
+
countAttempt: e
|
|
3414
|
+
} : {
|
|
3415
|
+
action: "endAttempt",
|
|
3416
|
+
countAttempt: e
|
|
3417
|
+
}), r = n.result?.scoring;
|
|
3418
|
+
if (!r) throw Error("Item session submission did not produce a scoring result");
|
|
3419
|
+
R(_, r.modalFeedback || [], !0);
|
|
3420
|
+
let i = { ...n.current.responses };
|
|
3421
|
+
if (t.onSubmit?.(i, r), W(y)) {
|
|
3422
|
+
let e = r;
|
|
3423
|
+
return e.completed && t.onComplete?.(e), e;
|
|
3424
|
+
}
|
|
3425
|
+
return r;
|
|
3426
|
+
} catch (e) {
|
|
3427
|
+
R(g, "submission"), t.onError?.({
|
|
3428
|
+
code: "submission-failed",
|
|
3429
|
+
message: e instanceof Error ? e.message : String(e),
|
|
3430
|
+
...ye(W(m))
|
|
3431
|
+
});
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3434
|
+
function Se() {
|
|
3435
|
+
R(_, [], !0);
|
|
3436
|
+
}
|
|
3437
|
+
let Ce = /* @__PURE__ */ A(() => c(t.i18n));
|
|
3438
|
+
Tr(() => {
|
|
3439
|
+
t.i18n || n("item-player:i18n-missing", "No i18n provider configured: UI messages fall back to English and lang/dir attributes are not set. Pass an I18nProvider from @pie-qti/i18n via the i18n property.");
|
|
3440
|
+
});
|
|
3441
|
+
let we = /* @__PURE__ */ A(() => W(m) ? a(W(m)).getContentLanguage() : void 0);
|
|
3442
|
+
var Te = { submit: xe }, Ee = ac(), w = ur(Ee), De = (e) => {
|
|
3443
|
+
var t = Qs(), n = fr(ur(t), !0);
|
|
3444
|
+
ct(t), B(() => J(n, W(v))), K(e, t);
|
|
3445
|
+
}, Oe = (e) => {
|
|
3446
|
+
var n = rc(), r = dr(n);
|
|
3447
|
+
Ks(r, {
|
|
3448
|
+
get session() {
|
|
3449
|
+
return W(m);
|
|
3450
|
+
},
|
|
3451
|
+
get revision() {
|
|
3452
|
+
return W(h).revision;
|
|
3453
|
+
},
|
|
3454
|
+
get disabled() {
|
|
3455
|
+
return d();
|
|
3456
|
+
},
|
|
3457
|
+
get typeset() {
|
|
3458
|
+
return t.typeset;
|
|
3459
|
+
},
|
|
3460
|
+
get i18n() {
|
|
3461
|
+
return t.i18n;
|
|
3462
|
+
},
|
|
3463
|
+
get renderItemBodyRubrics() {
|
|
3464
|
+
return f();
|
|
3465
|
+
},
|
|
3466
|
+
onError: be
|
|
3467
|
+
});
|
|
3468
|
+
var i = pr(r, 2), a = (e) => {
|
|
3469
|
+
var n = nc(), r = ur(n), i = fr(r, !0), a = pr(r, 2), o = (e) => {
|
|
3470
|
+
var n = tc(), r = ur(n), i = (e) => {
|
|
3471
|
+
var n = $s(), r = fr(n, !0);
|
|
3472
|
+
B((e) => J(r, e), [() => u(t.i18n, "item.complete", "Complete")]), K(e, n);
|
|
3473
|
+
}, a = (e) => {
|
|
3474
|
+
var n = ec(), r = fr(n, !0);
|
|
3475
|
+
B((e) => J(r, e), [() => u(t.i18n, "item.attempt", "Attempt {numAttempts}", { numAttempts: W(ee) + 1 })]), K(e, n);
|
|
3476
|
+
};
|
|
3477
|
+
Pa(r, (e) => {
|
|
3478
|
+
W(b) ? e(i) : e(a, -1);
|
|
3479
|
+
}), ct(n), K(e, n);
|
|
3480
|
+
};
|
|
3481
|
+
Pa(a, (e) => {
|
|
3482
|
+
W(y) && e(o);
|
|
3483
|
+
}), ct(n), B((e) => {
|
|
3484
|
+
r.disabled = W(b) || !W(x), J(i, e);
|
|
3485
|
+
}, [() => W(y) && W(b) ? u(t.i18n, "item.completed", "Completed") : u(t.i18n, "item.submit", "Submit")]), Pi("click", r, () => xe(!0)), K(e, n);
|
|
3486
|
+
};
|
|
3487
|
+
Pa(i, (e) => {
|
|
3488
|
+
W(S) === "candidate" && !d() && W(p) && e(a);
|
|
3489
|
+
}), Zs(pr(i, 2), {
|
|
3490
|
+
get feedback() {
|
|
3491
|
+
return W(_);
|
|
3492
|
+
},
|
|
3493
|
+
onClose: Se,
|
|
3494
|
+
get typeset() {
|
|
3495
|
+
return t.typeset;
|
|
3496
|
+
},
|
|
3497
|
+
get i18n() {
|
|
3498
|
+
return t.i18n;
|
|
3499
|
+
},
|
|
3500
|
+
get contentLanguage() {
|
|
3501
|
+
return W(we);
|
|
3502
|
+
}
|
|
3503
|
+
}), K(e, n);
|
|
3504
|
+
}, ke = (e) => {
|
|
3505
|
+
var n = ic(), r = fr(ur(n), !0);
|
|
3506
|
+
ct(n), B((e) => J(r, e), [() => u(t.i18n, "item.loading", "Loading item...")]), K(e, n);
|
|
3507
|
+
};
|
|
3508
|
+
return Pa(w, (e) => {
|
|
3509
|
+
W(v) ? e(De) : W(m) && W(h) ? e(Oe, 1) : e(ke, -1);
|
|
3510
|
+
}), ct(Ee), B(() => {
|
|
3511
|
+
Y(Ee, "lang", W(Ce)?.lang), Y(Ee, "dir", W(Ce)?.dir), Ee.dir = Ee.dir;
|
|
3512
|
+
}), K(e, Ee), kt(Te);
|
|
3513
|
+
}
|
|
3514
|
+
Fi(["click"]);
|
|
3515
|
+
// src/element-class.ts
|
|
3516
|
+
var cc = globalThis.HTMLElement ?? class {}, lc = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakMap(), fc = /* @__PURE__ */ new WeakMap(), pc = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), yc = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakSet(), bc = /* @__PURE__ */ new WeakMap(), xc = /* @__PURE__ */ new WeakMap(), Sc = /* @__PURE__ */ new WeakMap(), Cc = class extends cc {
|
|
3517
|
+
constructor(...e) {
|
|
3518
|
+
super(...e), nn(this, Q), j(this, lc, t({
|
|
3519
|
+
host: this,
|
|
3520
|
+
createSubscriber: Ki,
|
|
3521
|
+
mount: (e, t) => xa(sc, {
|
|
3522
|
+
target: e,
|
|
3523
|
+
props: t
|
|
3524
|
+
}),
|
|
3525
|
+
unmount: Ta
|
|
3526
|
+
})), j(this, uc, !1), j(this, dc, void 0), j(this, fc, !0), j(this, pc, void 0), j(this, mc, void 0), j(this, hc, void 0), j(this, Z, {
|
|
3527
|
+
itemXml: "",
|
|
3528
|
+
role: "candidate",
|
|
3529
|
+
security: void 0,
|
|
3530
|
+
pnp: void 0,
|
|
3531
|
+
deliveryContext: void 0,
|
|
3532
|
+
resolveProcessingFragment: void 0,
|
|
3533
|
+
processingFragmentLimits: void 0,
|
|
3534
|
+
pci: void 0,
|
|
3535
|
+
stringComparison: void 0,
|
|
3536
|
+
plugins: void 0,
|
|
3537
|
+
showFeedback: void 0,
|
|
3538
|
+
showSolution: void 0
|
|
3539
|
+
}), j(this, gc, void 0), j(this, _c, !1), j(this, vc, void 0), j(this, yc, void 0), j(this, bc, () => N(hc, this) || N(_c, this) ? void 0 : N(gc, this)), j(this, xc, (e) => {
|
|
3540
|
+
N(gc, this) && N(gc, this) !== e && N(gc, this).dispose(), P(gc, this, e), P(_c, this, !1);
|
|
3541
|
+
}), j(this, Sc, (e) => {
|
|
3542
|
+
N(hc, this) || e.state().disposed ? (e.dispose(), N(gc, this) === e && (P(gc, this, void 0), P(_c, this, !1))) : P(gc, this, e);
|
|
3543
|
+
});
|
|
3544
|
+
}
|
|
3545
|
+
static get observedAttributes() {
|
|
3546
|
+
return [
|
|
3547
|
+
"item-xml",
|
|
3548
|
+
"qti-role",
|
|
3549
|
+
"disabled",
|
|
3550
|
+
"locale",
|
|
3551
|
+
"show-feedback",
|
|
3552
|
+
"show-solution"
|
|
3553
|
+
];
|
|
3554
|
+
}
|
|
3555
|
+
get itemXml() {
|
|
3556
|
+
return N(Z, this).itemXml;
|
|
3557
|
+
}
|
|
3558
|
+
set itemXml(e) {
|
|
3559
|
+
M(Q, this, Dc).call(this, "itemXml", e), M(Q, this, $).call(this);
|
|
3560
|
+
}
|
|
3561
|
+
get role() {
|
|
3562
|
+
return N(Z, this).role;
|
|
3563
|
+
}
|
|
3564
|
+
set role(e) {
|
|
3565
|
+
M(Q, this, Dc).call(this, "role", e), M(Q, this, $).call(this);
|
|
3566
|
+
}
|
|
3567
|
+
get disabled() {
|
|
3568
|
+
return N(uc, this);
|
|
3569
|
+
}
|
|
3570
|
+
set disabled(e) {
|
|
3571
|
+
P(uc, this, !!e), M(Q, this, $).call(this);
|
|
3572
|
+
}
|
|
3573
|
+
get locale() {
|
|
3574
|
+
return N(dc, this);
|
|
3575
|
+
}
|
|
3576
|
+
set locale(e) {
|
|
3577
|
+
e && !N(mc, this) && n("item-player:locale-without-provider", "locale attribute set but no i18n provider configured: it has no effect. Pass an I18nProvider via the i18n property."), P(dc, this, e ?? void 0), M(Q, this, $).call(this);
|
|
3578
|
+
}
|
|
3579
|
+
get renderItemBodyRubrics() {
|
|
3580
|
+
return N(fc, this);
|
|
3581
|
+
}
|
|
3582
|
+
set renderItemBodyRubrics(e) {
|
|
3583
|
+
P(fc, this, e !== !1), M(Q, this, $).call(this);
|
|
3584
|
+
}
|
|
3585
|
+
get showFeedback() {
|
|
3586
|
+
return N(Z, this).showFeedback;
|
|
3587
|
+
}
|
|
3588
|
+
set showFeedback(e) {
|
|
3589
|
+
M(Q, this, Dc).call(this, "showFeedback", e), M(Q, this, $).call(this);
|
|
3590
|
+
}
|
|
3591
|
+
get showSolution() {
|
|
3592
|
+
return N(Z, this).showSolution;
|
|
3593
|
+
}
|
|
3594
|
+
set showSolution(e) {
|
|
3595
|
+
M(Q, this, Dc).call(this, "showSolution", e), M(Q, this, $).call(this);
|
|
3596
|
+
}
|
|
3597
|
+
get typeset() {
|
|
3598
|
+
return N(pc, this);
|
|
3599
|
+
}
|
|
3600
|
+
set typeset(e) {
|
|
3601
|
+
P(pc, this, e), M(Q, this, $).call(this);
|
|
3602
|
+
}
|
|
3603
|
+
get i18n() {
|
|
3604
|
+
return N(mc, this);
|
|
3605
|
+
}
|
|
3606
|
+
set i18n(e) {
|
|
3607
|
+
P(mc, this, e), M(Q, this, $).call(this);
|
|
3608
|
+
}
|
|
3609
|
+
get security() {
|
|
3610
|
+
return N(Z, this).security;
|
|
3611
|
+
}
|
|
3612
|
+
set security(e) {
|
|
3613
|
+
M(Q, this, Dc).call(this, "security", e), M(Q, this, $).call(this);
|
|
3614
|
+
}
|
|
3615
|
+
get pnp() {
|
|
3616
|
+
return N(Z, this).pnp;
|
|
3617
|
+
}
|
|
3618
|
+
set pnp(e) {
|
|
3619
|
+
M(Q, this, Dc).call(this, "pnp", e), M(Q, this, $).call(this);
|
|
3620
|
+
}
|
|
3621
|
+
get deliveryContext() {
|
|
3622
|
+
return N(Z, this).deliveryContext;
|
|
3623
|
+
}
|
|
3624
|
+
set deliveryContext(e) {
|
|
3625
|
+
M(Q, this, Dc).call(this, "deliveryContext", e), M(Q, this, $).call(this);
|
|
3626
|
+
}
|
|
3627
|
+
get pci() {
|
|
3628
|
+
return N(Z, this).pci;
|
|
3629
|
+
}
|
|
3630
|
+
set pci(e) {
|
|
3631
|
+
M(Q, this, Dc).call(this, "pci", e), M(Q, this, $).call(this);
|
|
3632
|
+
}
|
|
3633
|
+
get stringComparison() {
|
|
3634
|
+
return N(Z, this).stringComparison;
|
|
3635
|
+
}
|
|
3636
|
+
set stringComparison(e) {
|
|
3637
|
+
M(Q, this, Dc).call(this, "stringComparison", e), M(Q, this, $).call(this);
|
|
3638
|
+
}
|
|
3639
|
+
get plugins() {
|
|
3640
|
+
return N(Z, this).plugins;
|
|
3641
|
+
}
|
|
3642
|
+
set plugins(e) {
|
|
3643
|
+
M(Q, this, Dc).call(this, "plugins", e), M(Q, this, $).call(this);
|
|
3644
|
+
}
|
|
3645
|
+
get resolveProcessingFragment() {
|
|
3646
|
+
return N(Z, this).resolveProcessingFragment;
|
|
3647
|
+
}
|
|
3648
|
+
set resolveProcessingFragment(e) {
|
|
3649
|
+
M(Q, this, Dc).call(this, "resolveProcessingFragment", e), M(Q, this, $).call(this);
|
|
3650
|
+
}
|
|
3651
|
+
get processingFragmentLimits() {
|
|
3652
|
+
return N(Z, this).processingFragmentLimits;
|
|
3653
|
+
}
|
|
3654
|
+
set processingFragmentLimits(e) {
|
|
3655
|
+
M(Q, this, Dc).call(this, "processingFragmentLimits", e), M(Q, this, $).call(this);
|
|
3656
|
+
}
|
|
3657
|
+
get responses() {
|
|
3658
|
+
return N(yc, this);
|
|
3659
|
+
}
|
|
3660
|
+
get session() {
|
|
3661
|
+
return N(hc, this);
|
|
3662
|
+
}
|
|
3663
|
+
set session(e) {
|
|
3664
|
+
e && N(gc, this) && !this.isConnected && (N(gc, this).dispose(), P(gc, this, void 0), P(_c, this, !1)), P(hc, this, e), M(Q, this, $).call(this);
|
|
3665
|
+
}
|
|
3666
|
+
set responses(e) {
|
|
3667
|
+
P(yc, this, e ? { ...e } : void 0), M(Q, this, $).call(this);
|
|
3668
|
+
}
|
|
3669
|
+
connectedCallback() {
|
|
3670
|
+
N(lc, this).mountOrUpdate(M(Q, this, Oc).call(this));
|
|
3671
|
+
}
|
|
3672
|
+
disconnectedCallback() {
|
|
3673
|
+
N(lc, this).teardown({ removeContainer: !0 });
|
|
3674
|
+
}
|
|
3675
|
+
attributeChangedCallback(e, t, n) {
|
|
3676
|
+
e === "item-xml" ? this.itemXml = n ?? "" : e === "qti-role" ? this.role = le(n) : e === "disabled" ? this.disabled = n !== null : e === "locale" ? (P(dc, this, n ?? void 0), M(Q, this, $).call(this)) : e === "show-feedback" ? this.showFeedback = n !== null || void 0 : e === "show-solution" && (this.showSolution = n !== null || void 0);
|
|
3677
|
+
}
|
|
3678
|
+
submit(e = !0) {
|
|
3679
|
+
return N(lc, this).instance?.submit(e);
|
|
3680
|
+
}
|
|
3681
|
+
addEventListener(e, t, n) {
|
|
3682
|
+
super.addEventListener(e, t, n);
|
|
3683
|
+
}
|
|
3684
|
+
};
|
|
3685
|
+
function wc() {
|
|
3686
|
+
if (!N(mc, this) || !N(dc, this)) return N(mc, this);
|
|
3687
|
+
let e = N(mc, this).withLocale?.(N(dc, this)) ?? N(mc, this);
|
|
3688
|
+
return M(Q, this, Tc).call(this, N(mc, this), N(dc, this), e), e;
|
|
3689
|
+
}
|
|
3690
|
+
function Tc(e, t, n) {
|
|
3691
|
+
if (!n.ready || N(vc, this)?.i18n === e && N(vc, this).locale === t) return;
|
|
3692
|
+
let r = {
|
|
3693
|
+
i18n: e,
|
|
3694
|
+
locale: t
|
|
3695
|
+
};
|
|
3696
|
+
P(vc, this, r), n.ready.then(() => {
|
|
3697
|
+
N(vc, this) === r && N(mc, this) === e && N(dc, this) === t && M(Q, this, $).call(this);
|
|
3698
|
+
});
|
|
3699
|
+
}
|
|
3700
|
+
function Ec() {
|
|
3701
|
+
N(gc, this) && (this.isConnected ? P(_c, this, !0) : (N(gc, this).dispose(), P(gc, this, void 0), P(_c, this, !1)));
|
|
3702
|
+
}
|
|
3703
|
+
function Dc(e, t) {
|
|
3704
|
+
let n = o[e], r = n.store(t);
|
|
3705
|
+
n.changed(N(Z, this)[e], r) && (N(Z, this)[e] = r, M(Q, this, Ec).call(this));
|
|
3706
|
+
}
|
|
3707
|
+
function Oc() {
|
|
3708
|
+
return {
|
|
3709
|
+
itemXml: N(Z, this).itemXml,
|
|
3710
|
+
session: N(hc, this),
|
|
3711
|
+
role: N(Z, this).role,
|
|
3712
|
+
disabled: N(uc, this),
|
|
3713
|
+
renderItemBodyRubrics: N(fc, this),
|
|
3714
|
+
typeset: N(pc, this),
|
|
3715
|
+
i18n: M(Q, this, wc).call(this),
|
|
3716
|
+
security: N(Z, this).security,
|
|
3717
|
+
pnp: N(Z, this).pnp,
|
|
3718
|
+
deliveryContext: N(Z, this).deliveryContext,
|
|
3719
|
+
resolveProcessingFragment: N(Z, this).resolveProcessingFragment,
|
|
3720
|
+
processingFragmentLimits: N(Z, this).processingFragmentLimits,
|
|
3721
|
+
pci: N(Z, this).pci,
|
|
3722
|
+
stringComparison: N(Z, this).stringComparison,
|
|
3723
|
+
plugins: N(Z, this).plugins,
|
|
3724
|
+
responses: N(yc, this),
|
|
3725
|
+
showFeedback: N(Z, this).showFeedback,
|
|
3726
|
+
showSolution: N(Z, this).showSolution,
|
|
3727
|
+
onReady: () => {
|
|
3728
|
+
queueMicrotask(() => {
|
|
3729
|
+
this.isConnected && this.dispatchEvent(new CustomEvent("ready", {
|
|
3730
|
+
bubbles: !0,
|
|
3731
|
+
composed: !0
|
|
3732
|
+
}));
|
|
3733
|
+
});
|
|
3734
|
+
},
|
|
3735
|
+
onError: (e) => {
|
|
3736
|
+
this.dispatchEvent(new CustomEvent("error", {
|
|
3737
|
+
detail: e,
|
|
3738
|
+
bubbles: !0,
|
|
3739
|
+
composed: !0
|
|
3740
|
+
}));
|
|
3741
|
+
},
|
|
3742
|
+
onOwnedSession: N(xc, this),
|
|
3743
|
+
onOwnedSessionRelease: N(Sc, this),
|
|
3744
|
+
resumeSession: N(bc, this),
|
|
3745
|
+
onResponseChange: (e, t) => {
|
|
3746
|
+
let n = N(hc, this) ?? N(gc, this), r = null;
|
|
3747
|
+
if (n) try {
|
|
3748
|
+
r = { ...n.state().responses };
|
|
3749
|
+
} catch {
|
|
3750
|
+
r = null;
|
|
3751
|
+
}
|
|
3752
|
+
let i = r ?? {
|
|
3753
|
+
...N(yc, this) ?? {},
|
|
3754
|
+
[e]: t
|
|
3755
|
+
};
|
|
3756
|
+
P(yc, this, i), this.dispatchEvent(new CustomEvent("response-change", {
|
|
3757
|
+
detail: {
|
|
3758
|
+
responseId: e,
|
|
3759
|
+
value: t,
|
|
3760
|
+
responses: { ...i }
|
|
3761
|
+
},
|
|
3762
|
+
bubbles: !0,
|
|
3763
|
+
composed: !0
|
|
3764
|
+
}));
|
|
3765
|
+
},
|
|
3766
|
+
onSubmit: (e, t) => {
|
|
3767
|
+
let n = { ...e };
|
|
3768
|
+
P(yc, this, n), this.dispatchEvent(new CustomEvent("submit", {
|
|
3769
|
+
detail: {
|
|
3770
|
+
responses: n,
|
|
3771
|
+
result: t
|
|
3772
|
+
},
|
|
3773
|
+
bubbles: !0,
|
|
3774
|
+
composed: !0
|
|
3775
|
+
}));
|
|
3776
|
+
},
|
|
3777
|
+
showSubmit: !1,
|
|
3778
|
+
onComplete: (e) => {
|
|
3779
|
+
this.dispatchEvent(new CustomEvent("complete", {
|
|
3780
|
+
detail: { result: e },
|
|
3781
|
+
bubbles: !0,
|
|
3782
|
+
composed: !0
|
|
3783
|
+
}));
|
|
3784
|
+
}
|
|
3785
|
+
};
|
|
3786
|
+
}
|
|
3787
|
+
function $() {
|
|
3788
|
+
N(lc, this).update(M(Q, this, Oc).call(this));
|
|
3789
|
+
}
|
|
3790
|
+
export { Cc as t };
|
|
3791
|
+
|
|
3792
|
+
//# sourceMappingURL=element-class-BUFpUrJP.js.map
|