@pie-qti/player-elements 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ItemToolBar-d36g3aw4-B6TGPyKt.js +3079 -0
- package/dist/ItemToolBar-d36g3aw4-B6TGPyKt.js.map +1 -0
- package/dist/{define-D7_K0JFy.js → define-D6MsIPs4.js} +1902 -4395
- package/dist/define-D6MsIPs4.js.map +1 -0
- package/dist/dist-BSG0NOza.js +229 -0
- package/dist/dist-BSG0NOza.js.map +1 -0
- package/dist/{dist-ffJZTPTU.js → dist-C8BDh5vZ.js} +987 -707
- package/dist/dist-C8BDh5vZ.js.map +1 -0
- package/dist/dist-CQel8-vi.js +2507 -0
- package/dist/dist-CQel8-vi.js.map +1 -0
- package/dist/{dist-BaQdJU08.js → dist-L-bDDBry.js} +116 -103
- package/dist/dist-L-bDDBry.js.map +1 -0
- package/dist/{element-class-DQy2cIPM-CldZrSRR.js → element-class-B_qAd8ET-MnL2rzKs.js} +4938 -4241
- package/dist/element-class-B_qAd8ET-MnL2rzKs.js.map +1 -0
- package/dist/{element-DSCNeDLu.js → element-rqU0mnAg.js} +2 -2
- package/dist/{element-DSCNeDLu.js.map → element-rqU0mnAg.js.map} +1 -1
- package/dist/elements.js +3 -3
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-BgqPFwsS.js +1990 -0
- package/dist/item-toolbar-element-BgqPFwsS.js.map +1 -0
- package/dist/{language-tags-DVlRltrl.js → language-tags-BwFWXo71.js} +3 -3
- package/dist/{language-tags-DVlRltrl.js.map → language-tags-BwFWXo71.js.map} +1 -1
- package/dist/{nl-NL-BeQBX6yq.js → nl-NL-BRA_1Wcl.js} +5 -3
- package/dist/nl-NL-BRA_1Wcl.js.map +1 -0
- package/dist/pie-DwmznDHb.js +363 -0
- package/dist/pie-DwmznDHb.js.map +1 -0
- package/dist/pie-assessment-toolkit-Cruxm385.js +5 -0
- package/dist/pie-assessment-toolkit-Cruxm385.js.map +1 -0
- package/dist/pie-assessment-toolkit-DJfg6laX.js +5 -0
- package/dist/pie-assessment-toolkit-DJfg6laX.js.map +1 -0
- package/dist/{pie-assessment-toolkit-element-CpiB3twr.js → pie-assessment-toolkit-element-CT5UuvVY.js} +1364 -1203
- package/dist/pie-assessment-toolkit-element-CT5UuvVY.js.map +1 -0
- package/dist/pie-tool-calculator-Crfk-IZe.js +378 -0
- package/dist/pie-tool-calculator-Crfk-IZe.js.map +1 -0
- package/dist/{provider-Y5PhmTAu.js → provider-gBXlGb0d.js} +3 -3
- package/dist/{provider-Y5PhmTAu.js.map → provider-gBXlGb0d.js.map} +1 -1
- package/dist/public/api.d.ts +1 -1
- package/dist/register-players.js +1 -1
- package/dist/register.js +26177 -20539
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-D8DJkv-4.js → resolveItems-D18skYZx.js} +2 -2
- package/dist/{resolveItems-D8DJkv-4.js.map → resolveItems-D18skYZx.js.map} +1 -1
- package/dist/{root-DSkIM1v3.js → root-dCY6j_Hh.js} +3 -3
- package/dist/{root-DSkIM1v3.js.map → root-dCY6j_Hh.js.map} +1 -1
- package/dist/tag-names-DZGvnAgd.js +2495 -0
- package/dist/tag-names-DZGvnAgd.js.map +1 -0
- package/dist/{tool-tts-inline-B71NTBbb.js → tool-tts-inline-k3hLJUfp.js} +1315 -1303
- package/dist/tool-tts-inline-k3hLJUfp.js.map +1 -0
- package/package.json +8 -8
- package/dist/define-D7_K0JFy.js.map +0 -1
- package/dist/dist-BRTWr852.js +0 -5809
- package/dist/dist-BRTWr852.js.map +0 -1
- package/dist/dist-BaQdJU08.js.map +0 -1
- package/dist/dist-DwvskOs6.js +0 -220
- package/dist/dist-DwvskOs6.js.map +0 -1
- package/dist/dist-ffJZTPTU.js.map +0 -1
- package/dist/element-class-DQy2cIPM-CldZrSRR.js.map +0 -1
- package/dist/item-toolbar-element-BW9Y_n5x.js +0 -1990
- package/dist/item-toolbar-element-BW9Y_n5x.js.map +0 -1
- package/dist/nl-NL-BeQBX6yq.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js.map +0 -1
- package/dist/pie-tool-calculator-BiWMTJe7.js +0 -2992
- package/dist/pie-tool-calculator-BiWMTJe7.js.map +0 -1
- package/dist/tool-tts-inline-B71NTBbb.js.map +0 -1
|
@@ -0,0 +1,2507 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
+
import { r as t, t as n } from "./language-tags-BwFWXo71.js";
|
|
3
|
+
import { o as r } from "./pie-DwmznDHb.js";
|
|
4
|
+
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.73/node_modules/@pie-players/pie-players-shared/dist/i18n/messages/en-US.js
|
|
5
|
+
var i = {
|
|
6
|
+
common: {
|
|
7
|
+
close: "Close",
|
|
8
|
+
cancel: "Cancel",
|
|
9
|
+
save: "Save",
|
|
10
|
+
reset: "Reset",
|
|
11
|
+
retry: "Retry",
|
|
12
|
+
back: "Back",
|
|
13
|
+
next: "Next",
|
|
14
|
+
previous: "Previous",
|
|
15
|
+
submit: "Submit",
|
|
16
|
+
continue: "Continue",
|
|
17
|
+
finish: "Finish",
|
|
18
|
+
yes: "Yes",
|
|
19
|
+
no: "No",
|
|
20
|
+
ok: "OK",
|
|
21
|
+
any: "Any",
|
|
22
|
+
off: "Off",
|
|
23
|
+
auto: "Auto",
|
|
24
|
+
all: "All",
|
|
25
|
+
none: "None",
|
|
26
|
+
loading: "Loading…",
|
|
27
|
+
error: "Error",
|
|
28
|
+
settings: "Settings",
|
|
29
|
+
language: "Language",
|
|
30
|
+
theme: "Theme",
|
|
31
|
+
preview: "Preview",
|
|
32
|
+
author: "Author",
|
|
33
|
+
unknown: "Unknown",
|
|
34
|
+
untitled: "Untitled",
|
|
35
|
+
apply: "Apply",
|
|
36
|
+
enabled: "Enabled",
|
|
37
|
+
disabled: "Disabled",
|
|
38
|
+
closeA11y: "Close",
|
|
39
|
+
settingsA11y: "Open settings menu"
|
|
40
|
+
},
|
|
41
|
+
player: {
|
|
42
|
+
passage: "Passage",
|
|
43
|
+
passages: "Passages",
|
|
44
|
+
question: "Question",
|
|
45
|
+
questionNumbered: "Question {position}",
|
|
46
|
+
questions: "Questions",
|
|
47
|
+
items: "Items",
|
|
48
|
+
section: "Section",
|
|
49
|
+
loadingSection: "Loading section content…",
|
|
50
|
+
loadingPassage: "Loading passage content…",
|
|
51
|
+
configurationError: "Configuration Error",
|
|
52
|
+
playerError: "Player Error",
|
|
53
|
+
authoringBackendError: "Authoring Backend Configuration Error",
|
|
54
|
+
itemLoadError: "Question could not be loaded.",
|
|
55
|
+
sectionTabsA11y: "Section content tabs",
|
|
56
|
+
passagesRegionA11y: "Passages",
|
|
57
|
+
itemsRegionA11y: "Items",
|
|
58
|
+
sectionToolsA11y: "Section tools",
|
|
59
|
+
scrollDownA11y: "Scroll down",
|
|
60
|
+
resizePanels: "Resize panels",
|
|
61
|
+
resizePassagesAndItemsA11y: "Resize passages and items panels",
|
|
62
|
+
resizeMediaRegion: "Resize media region",
|
|
63
|
+
resizeQuestionAndMediaA11y: "Resize question and media panels",
|
|
64
|
+
resizePassageAndMediaA11y: "Resize passage and media panels",
|
|
65
|
+
assessment: {
|
|
66
|
+
sectionPosition: "Section {position} of {total}",
|
|
67
|
+
noSections: "No sections",
|
|
68
|
+
loadFailed: "The assessment could not be loaded. Try again.",
|
|
69
|
+
restoreFailed: "Your saved answers for this section could not be restored. Try again."
|
|
70
|
+
},
|
|
71
|
+
formative: {
|
|
72
|
+
checkAnswer: "Check answer",
|
|
73
|
+
tryAgain: "Try again",
|
|
74
|
+
answerRecorded: "Answer recorded.",
|
|
75
|
+
correct: "Correct.",
|
|
76
|
+
partlyCorrect: "Partly correct.",
|
|
77
|
+
notCorrect: "Not correct.",
|
|
78
|
+
notAutoScored: "Answer recorded. This question is not scored automatically.",
|
|
79
|
+
checkFailed: "This question could not be checked. Try again.",
|
|
80
|
+
triesLeft: {
|
|
81
|
+
one: "{count} try left.",
|
|
82
|
+
other: "{count} tries left."
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
timedMedia: {
|
|
86
|
+
waitingForMedia: "Questions will appear as the media plays.",
|
|
87
|
+
questionAvailable: "Question {position} is now available.",
|
|
88
|
+
playbackPaused: "Playback paused. Answer question {position} to continue.",
|
|
89
|
+
playbackAdvisory: "Answer question {position} before continuing with the media.",
|
|
90
|
+
playbackReleased: "Answer accepted. Continue playing the media."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
toolkit: {
|
|
94
|
+
toolsA11y: "Assessment tools",
|
|
95
|
+
toolbarInitError: "Unable to initialize assessment toolkit.",
|
|
96
|
+
settingsTitle: "Settings",
|
|
97
|
+
closeSettingsA11y: "Close settings",
|
|
98
|
+
dragPanelA11y: "Drag panel",
|
|
99
|
+
closePanelA11y: "Close panel",
|
|
100
|
+
resizeWindow: "Resize window",
|
|
101
|
+
minimize: "Minimize",
|
|
102
|
+
maximize: "Maximize",
|
|
103
|
+
minimizePanelA11y: "Minimize panel",
|
|
104
|
+
maximizePanelA11y: "Maximize panel",
|
|
105
|
+
window: {
|
|
106
|
+
moveLeftA11y: "Move tool left",
|
|
107
|
+
moveRightA11y: "Move tool right",
|
|
108
|
+
moveUpA11y: "Move tool up",
|
|
109
|
+
moveDownA11y: "Move tool down",
|
|
110
|
+
shrinkA11y: "Shrink tool window",
|
|
111
|
+
growA11y: "Grow tool window",
|
|
112
|
+
centerA11y: "Center tool window",
|
|
113
|
+
closeA11y: "Close tool"
|
|
114
|
+
},
|
|
115
|
+
announce: {
|
|
116
|
+
movedUp: "Moved up to {position}",
|
|
117
|
+
movedDown: "Moved down to {position}",
|
|
118
|
+
movedLeft: "Moved left to {position}",
|
|
119
|
+
movedRight: "Moved right to {position}",
|
|
120
|
+
rotatedTo: "Rotated to {degrees} degrees"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
tools: {
|
|
124
|
+
calculator: {
|
|
125
|
+
name: "Calculator",
|
|
126
|
+
nameBasic: "Basic Calculator",
|
|
127
|
+
nameScientific: "Scientific Calculator",
|
|
128
|
+
nameGraphing: "Graphing Calculator",
|
|
129
|
+
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
130
|
+
openedBasic: "Basic calculator opened",
|
|
131
|
+
openedScientific: "Scientific calculator opened",
|
|
132
|
+
openedGraphing: "Graphing calculator opened",
|
|
133
|
+
closedBasic: "Basic calculator closed",
|
|
134
|
+
closedScientific: "Scientific calculator closed",
|
|
135
|
+
closedGraphing: "Graphing calculator closed",
|
|
136
|
+
toolA11y: "Calculator tool",
|
|
137
|
+
loading: "Loading calculator…",
|
|
138
|
+
providerUnavailable: "The calculator is unavailable."
|
|
139
|
+
},
|
|
140
|
+
graph: {
|
|
141
|
+
name: "Graph",
|
|
142
|
+
description: "Graphing calculator and coordinate plane",
|
|
143
|
+
buttonA11y: "Graph, graphing calculator",
|
|
144
|
+
tooltip: "Graph",
|
|
145
|
+
toolA11y: "Graph tool — draw points and lines on a coordinate grid",
|
|
146
|
+
canvasA11y: "Graph canvas — use tools to add points and draw lines",
|
|
147
|
+
grid: "Grid:",
|
|
148
|
+
gridOpacityA11y: "Grid opacity",
|
|
149
|
+
pointA11y: "Graph point {id}",
|
|
150
|
+
modeSelector: "Selector",
|
|
151
|
+
modeSelectorHint: "Selector: click and drag points to move them or associated lines.",
|
|
152
|
+
modePoint: "Point",
|
|
153
|
+
modePointHint: "Point: click on the grid to add points.",
|
|
154
|
+
modeLine: "Line",
|
|
155
|
+
modeLineHint: "Line: click a starting point, then an ending point to draw a line.",
|
|
156
|
+
modeDelete: "Delete",
|
|
157
|
+
modeDeleteHint: "Delete: click on a point to delete it and any connected lines."
|
|
158
|
+
},
|
|
159
|
+
periodicTable: {
|
|
160
|
+
name: "Periodic Table",
|
|
161
|
+
description: "Chemistry periodic table reference",
|
|
162
|
+
buttonA11y: "Periodic Table, chemistry reference",
|
|
163
|
+
tooltip: "Periodic Table",
|
|
164
|
+
toolA11y: "Periodic table — select an element to view its details",
|
|
165
|
+
elementsA11y: "Periodic table elements",
|
|
166
|
+
showAllA11y: "Show all elements",
|
|
167
|
+
allElements: "All Elements",
|
|
168
|
+
atomicMass: "Atomic Mass",
|
|
169
|
+
atomicNumber: "Atomic No",
|
|
170
|
+
electronConfig: "Electron Config",
|
|
171
|
+
phase: "Phase",
|
|
172
|
+
filterByA11y: "Filter by {category}",
|
|
173
|
+
elementA11y: "{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}",
|
|
174
|
+
outsideFilterA11y: ", outside the current filter",
|
|
175
|
+
category: {
|
|
176
|
+
unknown: "Unknown",
|
|
177
|
+
alkaliMetal: "Alkali Metal",
|
|
178
|
+
alkalineEarthMetal: "Alkaline Earth Metal",
|
|
179
|
+
transitionMetal: "Transition Metal",
|
|
180
|
+
postTransitionMetal: "Post-transition Metal",
|
|
181
|
+
metalloid: "Metalloid",
|
|
182
|
+
diatomicNonmetal: "Diatomic Nonmetal",
|
|
183
|
+
polyatomicNonmetal: "Polyatomic Nonmetal",
|
|
184
|
+
nobleGas: "Noble Gas",
|
|
185
|
+
lanthanide: "Lanthanide",
|
|
186
|
+
actinide: "Actinide"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
ruler: {
|
|
190
|
+
name: "Ruler",
|
|
191
|
+
description: "On-screen ruler for measurements",
|
|
192
|
+
buttonA11y: "Ruler",
|
|
193
|
+
tooltip: "Ruler",
|
|
194
|
+
toolA11y: "Draggable and rotatable ruler measurement tool",
|
|
195
|
+
unitSelectionA11y: "Ruler unit selection",
|
|
196
|
+
inches: "Inches",
|
|
197
|
+
centimeters: "Centimeters",
|
|
198
|
+
inchesInSentence: "inches",
|
|
199
|
+
centimetersInSentence: "centimeters",
|
|
200
|
+
switchToInchesA11y: "Switch to inches",
|
|
201
|
+
switchToCentimetersA11y: "Switch to centimeters",
|
|
202
|
+
switchedTo: "Switched to {unit}",
|
|
203
|
+
applicationA11y: "Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}",
|
|
204
|
+
imageAlt: "Ruler showing {unit}"
|
|
205
|
+
},
|
|
206
|
+
protractor: {
|
|
207
|
+
name: "Protractor",
|
|
208
|
+
description: "On-screen protractor for angle measurements",
|
|
209
|
+
buttonA11y: "Protractor",
|
|
210
|
+
tooltip: "Protractor",
|
|
211
|
+
toolA11y: "Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.",
|
|
212
|
+
roleA11y: "Draggable and rotatable protractor measurement tool",
|
|
213
|
+
imageAlt: "Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees"
|
|
214
|
+
},
|
|
215
|
+
dictionary: {
|
|
216
|
+
name: "Dictionary",
|
|
217
|
+
description: "Look up word definitions",
|
|
218
|
+
buttonA11y: "Dictionary, look up word definitions",
|
|
219
|
+
tooltip: "Dictionary",
|
|
220
|
+
toolA11y: "Dictionary"
|
|
221
|
+
},
|
|
222
|
+
pictureDictionary: {
|
|
223
|
+
name: "Picture Dictionary",
|
|
224
|
+
description: "Look up pictures for words",
|
|
225
|
+
buttonA11y: "Picture Dictionary, look up pictures for words",
|
|
226
|
+
tooltip: "Picture Dictionary",
|
|
227
|
+
toolA11y: "Picture Dictionary"
|
|
228
|
+
},
|
|
229
|
+
dictionarySpanish: {
|
|
230
|
+
name: "Spanish Dictionary",
|
|
231
|
+
description: "Look up word definitions in Spanish",
|
|
232
|
+
buttonA11y: "Spanish Dictionary, look up word definitions in Spanish",
|
|
233
|
+
tooltip: "Spanish Dictionary",
|
|
234
|
+
toolA11y: "Spanish Dictionary"
|
|
235
|
+
},
|
|
236
|
+
pictureDictionarySpanish: {
|
|
237
|
+
name: "Spanish Picture Dictionary",
|
|
238
|
+
description: "Look up pictures for words in Spanish",
|
|
239
|
+
buttonA11y: "Spanish Picture Dictionary, look up pictures for words in Spanish",
|
|
240
|
+
tooltip: "Spanish Picture Dictionary",
|
|
241
|
+
toolA11y: "Spanish Picture Dictionary"
|
|
242
|
+
},
|
|
243
|
+
lineReader: {
|
|
244
|
+
name: "Line Reader",
|
|
245
|
+
description: "Reading guide overlay",
|
|
246
|
+
buttonA11y: "Line Reader, reading guide",
|
|
247
|
+
tooltip: "Line Reader",
|
|
248
|
+
roleA11y: "Draggable and resizable reading guide overlay",
|
|
249
|
+
close: "Close line reader",
|
|
250
|
+
resizeWindowA11y: "Drag to resize the reading window",
|
|
251
|
+
resizeFrameA11y: "Drag to resize the frame and window width",
|
|
252
|
+
windowHeightAnnounce: "Reading window height {pixels} pixels",
|
|
253
|
+
frameHeightAnnounce: "Frame height {pixels} pixels",
|
|
254
|
+
widthAnnounce: "Width {pixels} pixels",
|
|
255
|
+
applicationA11y: "Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels",
|
|
256
|
+
resizeWindowFullA11y: "Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels",
|
|
257
|
+
resizeFrameFullA11y: "Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels"
|
|
258
|
+
},
|
|
259
|
+
answerEliminator: {
|
|
260
|
+
name: "Answer Eliminator",
|
|
261
|
+
description: "Strike through answer choices",
|
|
262
|
+
buttonA11y: "Strike Through, eliminate answer choices",
|
|
263
|
+
tooltip: "Strike Through"
|
|
264
|
+
},
|
|
265
|
+
highlighter: {
|
|
266
|
+
name: "Highlighter",
|
|
267
|
+
description: "Highlight and annotate text",
|
|
268
|
+
buttonA11y: "Highlight text",
|
|
269
|
+
tooltip: "Highlight"
|
|
270
|
+
},
|
|
271
|
+
annotationToolbar: {
|
|
272
|
+
name: "Annotation",
|
|
273
|
+
description: "Highlight and annotate text",
|
|
274
|
+
buttonA11y: "Annotate, highlight and mark up text",
|
|
275
|
+
tooltip: "Annotate",
|
|
276
|
+
toolbarA11y: "Text annotation toolbar",
|
|
277
|
+
underline: "Underline",
|
|
278
|
+
underlineA11y: "Underline selected text",
|
|
279
|
+
readAloud: "Read Aloud",
|
|
280
|
+
readAloudA11y: "Read selected text aloud",
|
|
281
|
+
remove: "Remove",
|
|
282
|
+
removeA11y: "Remove this annotation",
|
|
283
|
+
clearAll: "Clear All",
|
|
284
|
+
clearAllA11y: "Clear all annotations from document",
|
|
285
|
+
highlightYellowA11y: "Yellow highlight",
|
|
286
|
+
highlightPinkA11y: "Pink highlight",
|
|
287
|
+
highlightBlueA11y: "Blue highlight",
|
|
288
|
+
highlightGreenA11y: "Green highlight"
|
|
289
|
+
},
|
|
290
|
+
theme: {
|
|
291
|
+
name: "Theme",
|
|
292
|
+
description: "Accessible themes and contrast",
|
|
293
|
+
buttonA11y: "Theme, change colors and contrast",
|
|
294
|
+
tooltip: "Theme",
|
|
295
|
+
selectorA11y: "Theme selector",
|
|
296
|
+
hint: "Select a theme to improve readability and reduce eye strain.",
|
|
297
|
+
selectA11y: "Select theme",
|
|
298
|
+
selectCurrentA11y: "Select theme. Current theme: {name}",
|
|
299
|
+
optionUnavailableA11y: "{name}, unavailable",
|
|
300
|
+
unavailableName: "Unavailable theme: {id}",
|
|
301
|
+
unavailableDescription: "PIE's managed base theme remains active until this theme becomes available again.",
|
|
302
|
+
unavailableStatus: "The selected theme is unavailable. PIE's managed base theme is active until it becomes available again."
|
|
303
|
+
},
|
|
304
|
+
textToSpeech: {
|
|
305
|
+
name: "Text to Speech",
|
|
306
|
+
description: "Read content aloud",
|
|
307
|
+
toolA11y: "Text-to-speech tool",
|
|
308
|
+
title: "Text-to-Speech",
|
|
309
|
+
initializing: "Initializing…",
|
|
310
|
+
initFailed: "Failed to initialize text-to-speech.",
|
|
311
|
+
selectText: "Select text on the page to read it aloud.",
|
|
312
|
+
speed: "Speed:",
|
|
313
|
+
play: "Play",
|
|
314
|
+
pause: "Pause",
|
|
315
|
+
resume: "Resume",
|
|
316
|
+
stop: "Stop",
|
|
317
|
+
speaking: "Speaking…",
|
|
318
|
+
paused: "Paused",
|
|
319
|
+
charactersSelected: {
|
|
320
|
+
one: "{count} character selected",
|
|
321
|
+
other: "{count} characters selected"
|
|
322
|
+
},
|
|
323
|
+
rate: {
|
|
324
|
+
slow: "Slow",
|
|
325
|
+
slower: "Slower",
|
|
326
|
+
normal: "Normal",
|
|
327
|
+
faster: "Faster",
|
|
328
|
+
fast: "Fast",
|
|
329
|
+
veryFast: "Very Fast"
|
|
330
|
+
},
|
|
331
|
+
inline: {
|
|
332
|
+
controlsA11y: "Reading controls",
|
|
333
|
+
playbackSpeedA11y: "Playback speed",
|
|
334
|
+
rewindA11y: "Rewind",
|
|
335
|
+
fastForwardA11y: "Fast-forward",
|
|
336
|
+
stopA11y: "Stop reading",
|
|
337
|
+
initializing: "Initializing text-to-speech",
|
|
338
|
+
initFailed: "Unable to initialize text-to-speech. Try again.",
|
|
339
|
+
starting: "Starting reading",
|
|
340
|
+
started: "Reading started",
|
|
341
|
+
resumed: "Reading resumed",
|
|
342
|
+
pausedAnnouncement: "Reading paused",
|
|
343
|
+
stopped: "Reading stopped",
|
|
344
|
+
switchedSection: "Reading switched to another section",
|
|
345
|
+
startFailed: "Unable to start reading",
|
|
346
|
+
skippedForward: "Skipped forward",
|
|
347
|
+
skipForwardFailed: "Unable to skip forward",
|
|
348
|
+
skippedBackward: "Skipped backward",
|
|
349
|
+
skipBackwardFailed: "Unable to skip backward",
|
|
350
|
+
speedChangeFailed: "Unable to change playback speed",
|
|
351
|
+
speedAnnounce: "Playback speed {label}",
|
|
352
|
+
playA11y: "Play reading",
|
|
353
|
+
pauseA11y: "Pause reading",
|
|
354
|
+
resumeA11y: "Resume reading"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
signLanguage: {
|
|
358
|
+
name: "Sign Language",
|
|
359
|
+
description: "Signed alternate for authored content",
|
|
360
|
+
generic: "Sign language",
|
|
361
|
+
unknown: "Sign language ({code})",
|
|
362
|
+
ase: "American Sign Language",
|
|
363
|
+
bfi: "British Sign Language",
|
|
364
|
+
fsl: "French Sign Language",
|
|
365
|
+
gss: "Greek Sign Language",
|
|
366
|
+
mfs: "Mexican Sign Language",
|
|
367
|
+
signedEnglish: "Signed English",
|
|
368
|
+
regionA11y: "{language} translation"
|
|
369
|
+
},
|
|
370
|
+
audioTranscript: {
|
|
371
|
+
name: "Audio Transcript",
|
|
372
|
+
description: "Text transcript of audio content",
|
|
373
|
+
regionA11y: "Transcript"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
debug: {
|
|
377
|
+
session: "Session",
|
|
378
|
+
sessionData: "Session Data",
|
|
379
|
+
sessionDataPersistent: "PIE Session Data (Persistent)",
|
|
380
|
+
noItemSessionYet: "No item session data yet. Interact with the item to see updates here.",
|
|
381
|
+
itemSessionsSnapshot: "Item Sessions Snapshot",
|
|
382
|
+
sectionControllerUnavailable: "Section controller not available for this section yet.",
|
|
383
|
+
filteredModel: "Filtered Model",
|
|
384
|
+
environment: "Environment",
|
|
385
|
+
events: "Events",
|
|
386
|
+
controllerEvents: "Controller Events",
|
|
387
|
+
instrumentation: "Instrumentation",
|
|
388
|
+
databaseState: "Database state",
|
|
389
|
+
sessionDb: "Session DB (Server)",
|
|
390
|
+
noRows: "No rows",
|
|
391
|
+
noRecords: "No instrumentation records yet.",
|
|
392
|
+
selectRecord: "Select a record to inspect details.",
|
|
393
|
+
selectEvent: "Select an event to inspect payload details.",
|
|
394
|
+
showRawTables: "Show raw tables",
|
|
395
|
+
showReconstructedSnapshots: "Show reconstructed snapshots",
|
|
396
|
+
showSectionRequest: "Show section request",
|
|
397
|
+
showAssessmentRequest: "Show assessment request",
|
|
398
|
+
liveUpdatesUnsupported: "Live updates are not supported in this browser",
|
|
399
|
+
liveUpdatesDisconnected: "Live updates disconnected; retrying…",
|
|
400
|
+
fieldType: "Type:",
|
|
401
|
+
fieldTarget: "Target:",
|
|
402
|
+
fieldItem: "Item:",
|
|
403
|
+
fieldCanonical: "Canonical:",
|
|
404
|
+
fieldIntent: "Intent:",
|
|
405
|
+
fieldDuplicates: "Duplicates:",
|
|
406
|
+
fieldSemanticRepeats: "Semantic Repeats:",
|
|
407
|
+
dragItemSessionPanelA11y: "Drag item session panel",
|
|
408
|
+
debuggerTabsA11y: "Debugger tabs",
|
|
409
|
+
sessionDataJsonA11y: "Session data JSON",
|
|
410
|
+
environmentJsonA11y: "Environment JSON",
|
|
411
|
+
filteredModelJsonA11y: "Filtered model JSON",
|
|
412
|
+
sectionSessionJsonA11y: "Section session snapshot JSON",
|
|
413
|
+
eventLevelFilterA11y: "Event level filter",
|
|
414
|
+
controllerEventDetailsA11y: "Controller event details",
|
|
415
|
+
instrumentationFilterA11y: "Filter instrumentation record type",
|
|
416
|
+
instrumentationDetailsA11y: "Instrumentation record details",
|
|
417
|
+
toggleSessionPanelA11y: "Toggle session panel",
|
|
418
|
+
toggleEventPanelA11y: "Toggle event broadcast panel",
|
|
419
|
+
toggleDatabasePanelA11y: "Toggle database state panel",
|
|
420
|
+
toggleInstrumentationPanelA11y: "Toggle instrumentation panel",
|
|
421
|
+
pnp: {
|
|
422
|
+
title: "PNP Profile",
|
|
423
|
+
noAssessmentBound: "No assessment bound",
|
|
424
|
+
determinationReadOnly: "Determination (read-only)",
|
|
425
|
+
toolsEditor: "Tools Editor",
|
|
426
|
+
enforcement: "PNP enforcement",
|
|
427
|
+
allAvailableTools: "All available tools",
|
|
428
|
+
clearPlacement: "Clear placement",
|
|
429
|
+
tool: "Tool",
|
|
430
|
+
placement: "Placement",
|
|
431
|
+
provider: "Provider",
|
|
432
|
+
simulation: "PNP simulation",
|
|
433
|
+
resolvedTools: "Resolved Tools (toolkit)",
|
|
434
|
+
provenanceSummary: "Tool Policy Provenance Summary",
|
|
435
|
+
perToolDecisions: "Per-Tool Decisions",
|
|
436
|
+
profileReadOnly: "PNP Profile (read-only)"
|
|
437
|
+
},
|
|
438
|
+
tts: {
|
|
439
|
+
title: "TTS settings",
|
|
440
|
+
closeA11y: "Close TTS settings",
|
|
441
|
+
toolbarLayoutMode: "Toolbar layout mode",
|
|
442
|
+
reservedRow: "Reserved row",
|
|
443
|
+
expandingRow: "Expanding row",
|
|
444
|
+
floatingOverlay: "Floating overlay",
|
|
445
|
+
leftAlignedControls: "Left-aligned controls",
|
|
446
|
+
inlineSpeedButtons: "Inline speed buttons",
|
|
447
|
+
resetToDefaults: "Reset to defaults",
|
|
448
|
+
mathHighlighting: "Math highlighting",
|
|
449
|
+
checkingAvailability: "Checking availability…",
|
|
450
|
+
recheck: "Recheck",
|
|
451
|
+
voice: "Voice",
|
|
452
|
+
bestAvailableVoice: "Best available voice (auto)",
|
|
453
|
+
unnamedVoice: "Unnamed voice",
|
|
454
|
+
apiEndpoint: "API endpoint",
|
|
455
|
+
gender: "Gender",
|
|
456
|
+
any: "Any",
|
|
457
|
+
male: "Male",
|
|
458
|
+
female: "Female",
|
|
459
|
+
neutral: "Neutral",
|
|
460
|
+
engine: "Engine",
|
|
461
|
+
neural: "Neural",
|
|
462
|
+
standard: "Standard",
|
|
463
|
+
providerDefault: "Provider default",
|
|
464
|
+
format: "Format",
|
|
465
|
+
sampleRate: "Sample rate",
|
|
466
|
+
speechMarks: "Speech marks",
|
|
467
|
+
word: "Word",
|
|
468
|
+
wordAndSentence: "Word + sentence",
|
|
469
|
+
voiceType: "Voice type",
|
|
470
|
+
wavenetVoiceType: "WaveNet",
|
|
471
|
+
studioVoiceType: "Studio",
|
|
472
|
+
plainText: "Plain text",
|
|
473
|
+
sampleText: "Sample text",
|
|
474
|
+
resetSample: "Reset sample",
|
|
475
|
+
providerAvailable: "Provider available.",
|
|
476
|
+
providerUnavailable: "Provider unavailable.",
|
|
477
|
+
providerCheckFailed: "Provider availability check failed.",
|
|
478
|
+
providerNotChecked: "Provider availability has not been checked yet.",
|
|
479
|
+
webSpeechUnavailable: "Web Speech API is not available in this browser.",
|
|
480
|
+
browserNoVoices: "Browser text-to-speech is available, but no voices were returned yet.",
|
|
481
|
+
browserUnavailable: "Browser text-to-speech is not available.",
|
|
482
|
+
googleUnavailable: "Google Cloud TTS is not available from the configured API.",
|
|
483
|
+
pollyUnavailable: "AWS Polly is not available from the configured API.",
|
|
484
|
+
recommendedVoices: "Recommended voices",
|
|
485
|
+
allVoices: "All available voices",
|
|
486
|
+
previewVoice: "Preview voice",
|
|
487
|
+
stopPreview: "Stop preview",
|
|
488
|
+
applying: "Applying…",
|
|
489
|
+
ssmlPreviewUnsupported: "SSML preview is not supported in the Browser backend.",
|
|
490
|
+
pollySsmlHint: "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.",
|
|
491
|
+
mathHighlightParts: "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.",
|
|
492
|
+
mathHighlightBlock: "Highlighting each formula as a single block instead of breaking it into parts.",
|
|
493
|
+
previewFailed: "Failed to play preview audio.",
|
|
494
|
+
previewNoAudio: "Preview response did not include audio content.",
|
|
495
|
+
previewEnterText: "Enter preview text before starting playback.",
|
|
496
|
+
previewUnavailable: "Cannot preview while this service is unavailable.",
|
|
497
|
+
browserSynthesisUnavailable: "Browser speech synthesis is unavailable.",
|
|
498
|
+
browserSynthesisEndedEarly: "Browser speech synthesis ended before audio started. Restart the browser and try again.",
|
|
499
|
+
browserSynthesisQueueFailed: "Browser speech synthesis failed to queue preview audio.",
|
|
500
|
+
browserPreviewFailed: "Failed to play browser voice preview.",
|
|
501
|
+
ssmlWordTrackingDisabled: "Google SSML preview preserves authored SSML, so word tracking is disabled.",
|
|
502
|
+
applyUnavailable: "Cannot apply settings while this service is unavailable.",
|
|
503
|
+
coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}, a = "en-US", o = /* @__PURE__ */ new Set([
|
|
507
|
+
"ar",
|
|
508
|
+
"ckb",
|
|
509
|
+
"dv",
|
|
510
|
+
"fa",
|
|
511
|
+
"he",
|
|
512
|
+
"iw",
|
|
513
|
+
"ks",
|
|
514
|
+
"ku",
|
|
515
|
+
"nqo",
|
|
516
|
+
"ps",
|
|
517
|
+
"sd",
|
|
518
|
+
"syr",
|
|
519
|
+
"ug",
|
|
520
|
+
"ur",
|
|
521
|
+
"yi"
|
|
522
|
+
]), s = /* @__PURE__ */ new Set([
|
|
523
|
+
"zero",
|
|
524
|
+
"one",
|
|
525
|
+
"two",
|
|
526
|
+
"few",
|
|
527
|
+
"many",
|
|
528
|
+
"other"
|
|
529
|
+
]);
|
|
530
|
+
function c(e) {
|
|
531
|
+
if (typeof e != "object" || !e) return !1;
|
|
532
|
+
let t = Object.keys(e);
|
|
533
|
+
return t.length > 0 && t.every((e) => s.has(e));
|
|
534
|
+
}
|
|
535
|
+
function l(e) {
|
|
536
|
+
try {
|
|
537
|
+
let t = new Intl.Locale(e).textInfo;
|
|
538
|
+
if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
|
|
539
|
+
} catch {}
|
|
540
|
+
let n = t(e).split("-")[0] ?? "";
|
|
541
|
+
return o.has(n) ? "rtl" : "ltr";
|
|
542
|
+
}
|
|
543
|
+
var u = class e {
|
|
544
|
+
static pluralRules = /* @__PURE__ */ new Map();
|
|
545
|
+
locale;
|
|
546
|
+
fallbackLocale;
|
|
547
|
+
catalogs;
|
|
548
|
+
customMessages;
|
|
549
|
+
loading;
|
|
550
|
+
listeners = /* @__PURE__ */ new Set();
|
|
551
|
+
config;
|
|
552
|
+
constructor(e = {}) {
|
|
553
|
+
this.config = { ...e }, this.fallbackLocale = d(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[a, i]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
|
|
554
|
+
}
|
|
555
|
+
async initialize(e) {
|
|
556
|
+
if (this.config = {
|
|
557
|
+
...this.config,
|
|
558
|
+
...e
|
|
559
|
+
}, e.customMessages) for (let [t, n] of Object.entries(e.customMessages)) this.addCustomMessages(t, n);
|
|
560
|
+
await this.setLocale(e.locale ?? this.locale);
|
|
561
|
+
}
|
|
562
|
+
getLocale() {
|
|
563
|
+
return this.locale;
|
|
564
|
+
}
|
|
565
|
+
async setLocale(e) {
|
|
566
|
+
let t = this.resolveLocaleTag(e);
|
|
567
|
+
if (!t) {
|
|
568
|
+
this.locale = d(e) || "en-US", this.notify();
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
if (!this.catalogs.has(t)) {
|
|
572
|
+
let e = this.loading.get(t);
|
|
573
|
+
if (e) await e;
|
|
574
|
+
else {
|
|
575
|
+
let e = this.loadCatalog(t);
|
|
576
|
+
this.loading.set(t, e);
|
|
577
|
+
try {
|
|
578
|
+
await e;
|
|
579
|
+
} finally {
|
|
580
|
+
this.loading.delete(t);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
this.locale = t, this.notify();
|
|
585
|
+
}
|
|
586
|
+
t(e, t) {
|
|
587
|
+
let n = this.lookup(e);
|
|
588
|
+
return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : p(n, t);
|
|
589
|
+
}
|
|
590
|
+
plural(e, t) {
|
|
591
|
+
let n = this.lookupNode(e);
|
|
592
|
+
return n === void 0 || !c(n) ? this.t(e, t) : p(n[this.selectPluralCategory(t.count)] ?? n.other, t);
|
|
593
|
+
}
|
|
594
|
+
getDirection() {
|
|
595
|
+
return l(this.locale);
|
|
596
|
+
}
|
|
597
|
+
getAvailableLocales() {
|
|
598
|
+
return [.../* @__PURE__ */ new Set([
|
|
599
|
+
...this.catalogs.keys(),
|
|
600
|
+
...this.config.availableLocales ?? [],
|
|
601
|
+
...Object.keys(this.customMessages)
|
|
602
|
+
])];
|
|
603
|
+
}
|
|
604
|
+
isLocaleLoaded(e) {
|
|
605
|
+
let t = this.resolveLocaleTag(e);
|
|
606
|
+
return t !== void 0 && this.catalogs.has(t);
|
|
607
|
+
}
|
|
608
|
+
subscribe(e) {
|
|
609
|
+
return this.listeners.add(e), () => {
|
|
610
|
+
this.listeners.delete(e);
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
hasKey(e) {
|
|
614
|
+
return this.lookup(e) !== void 0;
|
|
615
|
+
}
|
|
616
|
+
addCustomMessages(e, t) {
|
|
617
|
+
let n = d(e);
|
|
618
|
+
this.customMessages[n] = m(this.customMessages[n] ?? {}, t), this.notify();
|
|
619
|
+
}
|
|
620
|
+
withLocale(t) {
|
|
621
|
+
let n = this.resolveLocaleTag(t) ?? d(t);
|
|
622
|
+
if (n === this.locale) return this;
|
|
623
|
+
let r = new e({
|
|
624
|
+
...this.config,
|
|
625
|
+
locale: n
|
|
626
|
+
});
|
|
627
|
+
return r.locale = n || "en-US", r.catalogs = this.catalogs, r.customMessages = this.customMessages, r.loading = this.loading, r;
|
|
628
|
+
}
|
|
629
|
+
formatNumber(e, t) {
|
|
630
|
+
try {
|
|
631
|
+
return new Intl.NumberFormat(this.locale, t).format(e);
|
|
632
|
+
} catch {
|
|
633
|
+
return new Intl.NumberFormat(a, t).format(e);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
formatDate(e, t) {
|
|
637
|
+
try {
|
|
638
|
+
return new Intl.DateTimeFormat(this.locale, t).format(e);
|
|
639
|
+
} catch {
|
|
640
|
+
return new Intl.DateTimeFormat(a, t).format(e);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
getBundle(e = this.locale) {
|
|
644
|
+
let t = this.resolveLocaleTag(e);
|
|
645
|
+
if (!t) return;
|
|
646
|
+
let n = this.catalogs.get(t);
|
|
647
|
+
if (n) return {
|
|
648
|
+
locale: t,
|
|
649
|
+
translations: n,
|
|
650
|
+
direction: l(t)
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
resolveLocaleTag(e) {
|
|
654
|
+
if (!e) return;
|
|
655
|
+
let r = this.getAvailableLocales(), i = n(e, r);
|
|
656
|
+
if (i) return i;
|
|
657
|
+
let a = t(e).split("-")[0];
|
|
658
|
+
if (a) return r.find((e) => t(e).split("-")[0] === a);
|
|
659
|
+
}
|
|
660
|
+
async loadCatalog(e) {
|
|
661
|
+
let t = this.config.loadCatalog;
|
|
662
|
+
if (t) try {
|
|
663
|
+
this.catalogs.set(e, await t(e));
|
|
664
|
+
} catch (t) {
|
|
665
|
+
throw Error(`Failed to load i18n catalog for locale: ${e}`, { cause: t });
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
lookupNode(e) {
|
|
669
|
+
let t = [
|
|
670
|
+
this.customMessages[this.locale],
|
|
671
|
+
this.catalogs.get(this.locale),
|
|
672
|
+
this.customMessages[this.fallbackLocale],
|
|
673
|
+
this.catalogs.get(this.fallbackLocale)
|
|
674
|
+
];
|
|
675
|
+
for (let n of t) {
|
|
676
|
+
let t = f(n, e);
|
|
677
|
+
if (t !== void 0) return t;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
lookup(e) {
|
|
681
|
+
let t = this.lookupNode(e);
|
|
682
|
+
if (typeof t == "string") return t;
|
|
683
|
+
if (t !== void 0 && c(t)) return t.other;
|
|
684
|
+
}
|
|
685
|
+
selectPluralCategory(t) {
|
|
686
|
+
let n = e.pluralRules.get(this.locale);
|
|
687
|
+
if (!n) {
|
|
688
|
+
try {
|
|
689
|
+
n = new Intl.PluralRules(this.locale);
|
|
690
|
+
} catch {
|
|
691
|
+
return t === 1 ? "one" : "other";
|
|
692
|
+
}
|
|
693
|
+
e.pluralRules.set(this.locale, n);
|
|
694
|
+
}
|
|
695
|
+
return n.select(t);
|
|
696
|
+
}
|
|
697
|
+
notify() {
|
|
698
|
+
for (let e of this.listeners) e();
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
function d(e) {
|
|
702
|
+
return e ? e.trim().replace(/_/g, "-") : "";
|
|
703
|
+
}
|
|
704
|
+
function f(e, t) {
|
|
705
|
+
if (!e) return;
|
|
706
|
+
let n = e;
|
|
707
|
+
for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
|
|
708
|
+
return n;
|
|
709
|
+
}
|
|
710
|
+
function p(e, t) {
|
|
711
|
+
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
712
|
+
let r = t[n];
|
|
713
|
+
return r == null ? e : String(r);
|
|
714
|
+
}) : e;
|
|
715
|
+
}
|
|
716
|
+
function m(e, t) {
|
|
717
|
+
let n = { ...e };
|
|
718
|
+
for (let [e, r] of Object.entries(t)) {
|
|
719
|
+
let t = n[e];
|
|
720
|
+
n[e] = r && typeof r == "object" && t && typeof t == "object" ? m(t, r) : r;
|
|
721
|
+
}
|
|
722
|
+
return n;
|
|
723
|
+
}
|
|
724
|
+
var h;
|
|
725
|
+
function g() {
|
|
726
|
+
return h ||= new u(), h;
|
|
727
|
+
}
|
|
728
|
+
function _(e) {
|
|
729
|
+
let t = e?.i18n ?? g();
|
|
730
|
+
return {
|
|
731
|
+
getLocale: () => t.getLocale(),
|
|
732
|
+
setLocale: (e) => t.setLocale(e),
|
|
733
|
+
t: (e, n) => t.t(e, n),
|
|
734
|
+
plural: (e, n) => t.plural?.(e, n) ?? t.t(e, n),
|
|
735
|
+
getDirection: () => t.getDirection?.() ?? "ltr",
|
|
736
|
+
hasKey: (e) => t.hasKey?.(e) ?? !1,
|
|
737
|
+
subscribe: (e) => t.subscribe?.(e) ?? (() => {})
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
//#endregion
|
|
741
|
+
//#region ../../node_modules/.bun/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
|
|
742
|
+
function v(e, t) {
|
|
743
|
+
this.v = e, this.k = t;
|
|
744
|
+
}
|
|
745
|
+
function y(e, t) {
|
|
746
|
+
(t == null || t > e.length) && (t = e.length);
|
|
747
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
748
|
+
return r;
|
|
749
|
+
}
|
|
750
|
+
function b(e) {
|
|
751
|
+
if (Array.isArray(e)) return e;
|
|
752
|
+
}
|
|
753
|
+
function x(e, t) {
|
|
754
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
755
|
+
if (n != null) {
|
|
756
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
757
|
+
try {
|
|
758
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
759
|
+
if (Object(n) !== n) return;
|
|
760
|
+
c = !1;
|
|
761
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
762
|
+
} catch (e) {
|
|
763
|
+
l = !0, i = e;
|
|
764
|
+
} finally {
|
|
765
|
+
try {
|
|
766
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
767
|
+
} finally {
|
|
768
|
+
if (l) throw i;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
return s;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
function ee() {
|
|
775
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
776
|
+
}
|
|
777
|
+
function S(e, t) {
|
|
778
|
+
return b(e) || x(e, t) || te(e, t) || ee();
|
|
779
|
+
}
|
|
780
|
+
function te(e, t) {
|
|
781
|
+
if (e) {
|
|
782
|
+
if (typeof e == "string") return y(e, t);
|
|
783
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
784
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? y(e, t) : void 0;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
function C(e) {
|
|
788
|
+
var t, n;
|
|
789
|
+
function r(t, n) {
|
|
790
|
+
try {
|
|
791
|
+
var a = e[t](n), o = a.value, s = o instanceof v;
|
|
792
|
+
Promise.resolve(s ? o.v : o).then(function(n) {
|
|
793
|
+
if (s) {
|
|
794
|
+
var c = t === "return" && o.k ? t : "next";
|
|
795
|
+
if (!o.k || n.done) return r(c, n);
|
|
796
|
+
n = e[c](n).value;
|
|
797
|
+
}
|
|
798
|
+
i(!!a.done, n);
|
|
799
|
+
}, function(e) {
|
|
800
|
+
r("throw", e);
|
|
801
|
+
});
|
|
802
|
+
} catch (e) {
|
|
803
|
+
i(2, e);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function i(e, i) {
|
|
807
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
808
|
+
value: i,
|
|
809
|
+
done: e
|
|
810
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
811
|
+
}
|
|
812
|
+
this._invoke = function(e, i) {
|
|
813
|
+
return new Promise(function(a, o) {
|
|
814
|
+
var s = {
|
|
815
|
+
key: e,
|
|
816
|
+
arg: i,
|
|
817
|
+
resolve: a,
|
|
818
|
+
reject: o,
|
|
819
|
+
next: null
|
|
820
|
+
};
|
|
821
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
822
|
+
});
|
|
823
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
824
|
+
}
|
|
825
|
+
C.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
826
|
+
return this;
|
|
827
|
+
}, C.prototype.next = function(e) {
|
|
828
|
+
return this._invoke("next", e);
|
|
829
|
+
}, C.prototype.throw = function(e) {
|
|
830
|
+
return this._invoke("throw", e);
|
|
831
|
+
}, C.prototype.return = function(e) {
|
|
832
|
+
return this._invoke("return", e);
|
|
833
|
+
};
|
|
834
|
+
var ne = Object.entries, w = Object.setPrototypeOf, re = Object.isFrozen, ie = Object.getPrototypeOf, ae = Object.getOwnPropertyDescriptor, T = Object.freeze, E = Object.seal, oe = Object.create, se = typeof Reflect < "u" && Reflect, D = se.apply, ce = se.construct;
|
|
835
|
+
T ||= function(e) {
|
|
836
|
+
return e;
|
|
837
|
+
}, E ||= function(e) {
|
|
838
|
+
return e;
|
|
839
|
+
}, D ||= function(e, t) {
|
|
840
|
+
var n = [...arguments].slice(2);
|
|
841
|
+
return e.apply(t, n);
|
|
842
|
+
}, ce ||= function(e) {
|
|
843
|
+
return new e(...[...arguments].slice(1));
|
|
844
|
+
};
|
|
845
|
+
var le = j(Array.prototype.forEach);
|
|
846
|
+
Array.prototype.indexOf;
|
|
847
|
+
var ue = j(Array.prototype.lastIndexOf), de = j(Array.prototype.pop), fe = j(Array.prototype.push);
|
|
848
|
+
Array.prototype.slice;
|
|
849
|
+
var pe = j(Array.prototype.splice), me = Array.isArray, he = j(String.prototype.toLowerCase), ge = j(String.prototype.toString), _e = j(String.prototype.match), ve = j(String.prototype.replace), ye = j(String.prototype.indexOf), be = j(String.prototype.trim), xe = j(Number.prototype.toString), Se = j(Boolean.prototype.toString), Ce = typeof BigInt > "u" ? null : j(BigInt.prototype.toString), we = typeof Symbol > "u" ? null : j(Symbol.prototype.toString), O = j(Object.prototype.hasOwnProperty), Te = j(Object.prototype.toString), k = j(RegExp.prototype.test), A = Ee(TypeError);
|
|
850
|
+
function j(e) {
|
|
851
|
+
return function(t) {
|
|
852
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
853
|
+
var n = [...arguments].slice(1);
|
|
854
|
+
return D(e, t, n);
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
function Ee(e) {
|
|
858
|
+
return function() {
|
|
859
|
+
return ce(e, [...arguments]);
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
function M(e, t) {
|
|
863
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : he;
|
|
864
|
+
if (w && w(e, null), !me(t)) return e;
|
|
865
|
+
let r = t.length;
|
|
866
|
+
for (; r--;) {
|
|
867
|
+
let i = t[r];
|
|
868
|
+
if (typeof i == "string") {
|
|
869
|
+
let e = n(i);
|
|
870
|
+
e !== i && (re(t) || (t[r] = e), i = e);
|
|
871
|
+
}
|
|
872
|
+
e[i] = !0;
|
|
873
|
+
}
|
|
874
|
+
return e;
|
|
875
|
+
}
|
|
876
|
+
function N(e) {
|
|
877
|
+
for (let t = 0; t < e.length; t++) O(e, t) || (e[t] = null);
|
|
878
|
+
return e;
|
|
879
|
+
}
|
|
880
|
+
function P(e) {
|
|
881
|
+
let t = oe(null);
|
|
882
|
+
for (let r of ne(e)) {
|
|
883
|
+
var n = S(r, 2);
|
|
884
|
+
let i = n[0], a = n[1];
|
|
885
|
+
O(e, i) && (t[i] = me(a) ? N(a) : a && typeof a == "object" && a.constructor === Object ? P(a) : a);
|
|
886
|
+
}
|
|
887
|
+
return t;
|
|
888
|
+
}
|
|
889
|
+
function De(e) {
|
|
890
|
+
switch (typeof e) {
|
|
891
|
+
case "string": return e;
|
|
892
|
+
case "number": return xe(e);
|
|
893
|
+
case "boolean": return Se(e);
|
|
894
|
+
case "bigint": return Ce ? Ce(e) : "0";
|
|
895
|
+
case "symbol": return we ? we(e) : "Symbol()";
|
|
896
|
+
case "undefined": return Te(e);
|
|
897
|
+
case "function":
|
|
898
|
+
case "object": {
|
|
899
|
+
if (e === null) return Te(e);
|
|
900
|
+
let t = e, n = F(t, "toString");
|
|
901
|
+
if (typeof n == "function") {
|
|
902
|
+
let e = n(t);
|
|
903
|
+
return typeof e == "string" ? e : Te(e);
|
|
904
|
+
}
|
|
905
|
+
return Te(e);
|
|
906
|
+
}
|
|
907
|
+
default: return Te(e);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
function F(e, t) {
|
|
911
|
+
for (; e !== null;) {
|
|
912
|
+
let n = ae(e, t);
|
|
913
|
+
if (n) {
|
|
914
|
+
if (n.get) return j(n.get);
|
|
915
|
+
if (typeof n.value == "function") return j(n.value);
|
|
916
|
+
}
|
|
917
|
+
e = ie(e);
|
|
918
|
+
}
|
|
919
|
+
function n() {
|
|
920
|
+
return null;
|
|
921
|
+
}
|
|
922
|
+
return n;
|
|
923
|
+
}
|
|
924
|
+
function Oe(e) {
|
|
925
|
+
try {
|
|
926
|
+
return k(e, ""), !0;
|
|
927
|
+
} catch {
|
|
928
|
+
return !1;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
var ke = T(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ae = T(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), je = T([
|
|
932
|
+
"feBlend",
|
|
933
|
+
"feColorMatrix",
|
|
934
|
+
"feComponentTransfer",
|
|
935
|
+
"feComposite",
|
|
936
|
+
"feConvolveMatrix",
|
|
937
|
+
"feDiffuseLighting",
|
|
938
|
+
"feDisplacementMap",
|
|
939
|
+
"feDistantLight",
|
|
940
|
+
"feDropShadow",
|
|
941
|
+
"feFlood",
|
|
942
|
+
"feFuncA",
|
|
943
|
+
"feFuncB",
|
|
944
|
+
"feFuncG",
|
|
945
|
+
"feFuncR",
|
|
946
|
+
"feGaussianBlur",
|
|
947
|
+
"feImage",
|
|
948
|
+
"feMerge",
|
|
949
|
+
"feMergeNode",
|
|
950
|
+
"feMorphology",
|
|
951
|
+
"feOffset",
|
|
952
|
+
"fePointLight",
|
|
953
|
+
"feSpecularLighting",
|
|
954
|
+
"feSpotLight",
|
|
955
|
+
"feTile",
|
|
956
|
+
"feTurbulence"
|
|
957
|
+
]), Me = T([
|
|
958
|
+
"animate",
|
|
959
|
+
"color-profile",
|
|
960
|
+
"cursor",
|
|
961
|
+
"discard",
|
|
962
|
+
"font-face",
|
|
963
|
+
"font-face-format",
|
|
964
|
+
"font-face-name",
|
|
965
|
+
"font-face-src",
|
|
966
|
+
"font-face-uri",
|
|
967
|
+
"foreignobject",
|
|
968
|
+
"hatch",
|
|
969
|
+
"hatchpath",
|
|
970
|
+
"mesh",
|
|
971
|
+
"meshgradient",
|
|
972
|
+
"meshpatch",
|
|
973
|
+
"meshrow",
|
|
974
|
+
"missing-glyph",
|
|
975
|
+
"script",
|
|
976
|
+
"set",
|
|
977
|
+
"solidcolor",
|
|
978
|
+
"unknown",
|
|
979
|
+
"use"
|
|
980
|
+
]), Ne = T(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Pe = T([
|
|
981
|
+
"maction",
|
|
982
|
+
"maligngroup",
|
|
983
|
+
"malignmark",
|
|
984
|
+
"mlongdiv",
|
|
985
|
+
"mscarries",
|
|
986
|
+
"mscarry",
|
|
987
|
+
"msgroup",
|
|
988
|
+
"mstack",
|
|
989
|
+
"msline",
|
|
990
|
+
"msrow",
|
|
991
|
+
"semantics",
|
|
992
|
+
"annotation",
|
|
993
|
+
"annotation-xml",
|
|
994
|
+
"mprescripts",
|
|
995
|
+
"none"
|
|
996
|
+
]), Fe = T(["#text"]), Ie = T(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Le = T(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Re = T(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), ze = T([
|
|
997
|
+
"xlink:href",
|
|
998
|
+
"xml:id",
|
|
999
|
+
"xlink:title",
|
|
1000
|
+
"xml:space",
|
|
1001
|
+
"xmlns:xlink"
|
|
1002
|
+
]), Be = E(/{{[\w\W]*|^[\w\W]*}}/g), Ve = E(/<%[\w\W]*|^[\w\W]*%>/g), He = E(/\${[\w\W]*/g), Ue = E(/^data-[\-\w.\u00B7-\uFFFF]+$/), We = E(/^aria-[\-\w]+$/), Ge = E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ke = E(/^(?:\w+script|data):/i), qe = E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Je = E(/^html$/i), Ye = E(/^[a-z][.\w]*(-[.\w]+)+$/i), Xe = E(/<[/\w!]/g), Ze = E(/<[/\w]/g), Qe = E(/<\/no(script|embed|frames)/i), $e = E(/\/>/i), I = {
|
|
1003
|
+
element: 1,
|
|
1004
|
+
attribute: 2,
|
|
1005
|
+
text: 3,
|
|
1006
|
+
cdataSection: 4,
|
|
1007
|
+
entityReference: 5,
|
|
1008
|
+
entityNode: 6,
|
|
1009
|
+
processingInstruction: 7,
|
|
1010
|
+
comment: 8,
|
|
1011
|
+
document: 9,
|
|
1012
|
+
documentType: 10,
|
|
1013
|
+
documentFragment: 11,
|
|
1014
|
+
notation: 12
|
|
1015
|
+
}, et = [
|
|
1016
|
+
"style",
|
|
1017
|
+
"script",
|
|
1018
|
+
"xmp",
|
|
1019
|
+
"iframe",
|
|
1020
|
+
"noembed",
|
|
1021
|
+
"noframes",
|
|
1022
|
+
"plaintext",
|
|
1023
|
+
"noscript"
|
|
1024
|
+
], tt = T(M({}, et)), nt = function() {
|
|
1025
|
+
let e = {};
|
|
1026
|
+
return le(et, (t) => {
|
|
1027
|
+
e[t] = E(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
1028
|
+
}), T(e);
|
|
1029
|
+
}(), rt = function() {
|
|
1030
|
+
return typeof window > "u" ? null : window;
|
|
1031
|
+
}, it = function(e, t) {
|
|
1032
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
1033
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
1034
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
1035
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
1036
|
+
try {
|
|
1037
|
+
return e.createPolicy(i, {
|
|
1038
|
+
createHTML(e) {
|
|
1039
|
+
return e;
|
|
1040
|
+
},
|
|
1041
|
+
createScriptURL(e) {
|
|
1042
|
+
return e;
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
} catch {
|
|
1046
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
1047
|
+
}
|
|
1048
|
+
}, at = function() {
|
|
1049
|
+
return {
|
|
1050
|
+
afterSanitizeAttributes: [],
|
|
1051
|
+
afterSanitizeElements: [],
|
|
1052
|
+
afterSanitizeShadowDOM: [],
|
|
1053
|
+
beforeSanitizeAttributes: [],
|
|
1054
|
+
beforeSanitizeElements: [],
|
|
1055
|
+
beforeSanitizeShadowDOM: [],
|
|
1056
|
+
uponSanitizeAttribute: [],
|
|
1057
|
+
uponSanitizeElement: [],
|
|
1058
|
+
uponSanitizeShadowNode: []
|
|
1059
|
+
};
|
|
1060
|
+
}, L = function(e, t, n, r) {
|
|
1061
|
+
return O(e, t) && me(e[t]) ? M(r.base ? P(r.base) : {}, e[t], r.transform) : n;
|
|
1062
|
+
}, ot = function(e, t, n) {
|
|
1063
|
+
let r = O(e, t) ? e[t] : void 0;
|
|
1064
|
+
return r && typeof r == "object" ? P(r) : n();
|
|
1065
|
+
};
|
|
1066
|
+
function st() {
|
|
1067
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : rt(), t = (e) => st(e);
|
|
1068
|
+
if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== I.document || !e.Element) return t.isSupported = !1, t;
|
|
1069
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
1070
|
+
e.DocumentFragment;
|
|
1071
|
+
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
1072
|
+
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
1073
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = F(d, "cloneNode"), p = F(d, "remove"), m = F(d, "removeAttributeNode"), h = F(d, "nextSibling"), g = F(d, "childNodes"), _ = F(d, "parentNode"), v = F(d, "shadowRoot"), y = F(d, "attributes"), b = o && o.prototype ? F(o.prototype, "nodeType") : null, x = o && o.prototype ? F(o.prototype, "nodeName") : null, ee = o && o.prototype ? F(o.prototype, "ownerDocument") : null, S = function(e) {
|
|
1074
|
+
return b ? b(e) : e.nodeType;
|
|
1075
|
+
}, te = function(e) {
|
|
1076
|
+
return x ? x(e) : e.nodeName;
|
|
1077
|
+
};
|
|
1078
|
+
if (typeof a == "function") {
|
|
1079
|
+
let e = n.createElement("template");
|
|
1080
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
1081
|
+
}
|
|
1082
|
+
let C, w = "", re, ie = !1, ae = 0, se = function() {
|
|
1083
|
+
if (ae > 0) throw A("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
1084
|
+
}, D = function(e) {
|
|
1085
|
+
se(), ae++;
|
|
1086
|
+
try {
|
|
1087
|
+
return C.createHTML(e);
|
|
1088
|
+
} finally {
|
|
1089
|
+
ae--;
|
|
1090
|
+
}
|
|
1091
|
+
}, ce = function(e) {
|
|
1092
|
+
se(), ae++;
|
|
1093
|
+
try {
|
|
1094
|
+
return C.createScriptURL(e);
|
|
1095
|
+
} finally {
|
|
1096
|
+
ae--;
|
|
1097
|
+
}
|
|
1098
|
+
}, xe = function() {
|
|
1099
|
+
return ie ||= (re = it(u, i), !0), re;
|
|
1100
|
+
}, Se = n, Ce = Se.implementation, we = Se.createNodeIterator, Te = Se.createDocumentFragment, j = Se.getElementsByTagName, Ee = r.importNode, N = at();
|
|
1101
|
+
t.isSupported = typeof ne == "function" && typeof _ == "function" && Ce && Ce.createHTMLDocument !== void 0;
|
|
1102
|
+
let et = Be, ct = Ve, lt = He, ut = Ue, dt = We, ft = Ke, pt = qe, mt = Ye, ht = Ge, R = null, z = M({}, [
|
|
1103
|
+
...ke,
|
|
1104
|
+
...Ae,
|
|
1105
|
+
...je,
|
|
1106
|
+
...Ne,
|
|
1107
|
+
...Fe
|
|
1108
|
+
]), B = null, gt = M({}, [
|
|
1109
|
+
...Ie,
|
|
1110
|
+
...Le,
|
|
1111
|
+
...Re,
|
|
1112
|
+
...ze
|
|
1113
|
+
]), V = Object.seal(oe(null, {
|
|
1114
|
+
tagNameCheck: {
|
|
1115
|
+
writable: !0,
|
|
1116
|
+
configurable: !1,
|
|
1117
|
+
enumerable: !0,
|
|
1118
|
+
value: null
|
|
1119
|
+
},
|
|
1120
|
+
attributeNameCheck: {
|
|
1121
|
+
writable: !0,
|
|
1122
|
+
configurable: !1,
|
|
1123
|
+
enumerable: !0,
|
|
1124
|
+
value: null
|
|
1125
|
+
},
|
|
1126
|
+
allowCustomizedBuiltInElements: {
|
|
1127
|
+
writable: !0,
|
|
1128
|
+
configurable: !1,
|
|
1129
|
+
enumerable: !0,
|
|
1130
|
+
value: !1
|
|
1131
|
+
}
|
|
1132
|
+
})), H = null, _t = null, U = Object.seal(oe(null, {
|
|
1133
|
+
tagCheck: {
|
|
1134
|
+
writable: !0,
|
|
1135
|
+
configurable: !1,
|
|
1136
|
+
enumerable: !0,
|
|
1137
|
+
value: null
|
|
1138
|
+
},
|
|
1139
|
+
attributeCheck: {
|
|
1140
|
+
writable: !0,
|
|
1141
|
+
configurable: !1,
|
|
1142
|
+
enumerable: !0,
|
|
1143
|
+
value: null
|
|
1144
|
+
}
|
|
1145
|
+
})), vt = !0, W = !0, yt = !1, bt = !0, G = !1, K = !0, q = !1, xt = !1, St = null, Ct = null, wt = !1, Tt = !1, Et = !1, Dt = !1, Ot = !0, J = !1, kt = "user-content-", At = !0, jt = !1, Mt = {}, Nt = null, Pt = M({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ft = null, It = M({}, [
|
|
1146
|
+
"audio",
|
|
1147
|
+
"video",
|
|
1148
|
+
"img",
|
|
1149
|
+
"source",
|
|
1150
|
+
"image",
|
|
1151
|
+
"track"
|
|
1152
|
+
]), Lt = null, Rt = M({}, [
|
|
1153
|
+
"alt",
|
|
1154
|
+
"class",
|
|
1155
|
+
"for",
|
|
1156
|
+
"id",
|
|
1157
|
+
"label",
|
|
1158
|
+
"name",
|
|
1159
|
+
"pattern",
|
|
1160
|
+
"placeholder",
|
|
1161
|
+
"role",
|
|
1162
|
+
"summary",
|
|
1163
|
+
"title",
|
|
1164
|
+
"value",
|
|
1165
|
+
"style",
|
|
1166
|
+
"xmlns"
|
|
1167
|
+
]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Vt = Y, Ht = !1, X = null, Ut = M({}, [
|
|
1168
|
+
zt,
|
|
1169
|
+
Bt,
|
|
1170
|
+
Y
|
|
1171
|
+
], ge), Wt = T([
|
|
1172
|
+
"mi",
|
|
1173
|
+
"mo",
|
|
1174
|
+
"mn",
|
|
1175
|
+
"ms",
|
|
1176
|
+
"mtext"
|
|
1177
|
+
]), Gt = M({}, Wt), Kt = T(["annotation-xml"]), qt = M({}, Kt), Jt = M({}, [
|
|
1178
|
+
"title",
|
|
1179
|
+
"style",
|
|
1180
|
+
"font",
|
|
1181
|
+
"a",
|
|
1182
|
+
"script"
|
|
1183
|
+
]), Yt = null, Xt = ["application/xhtml+xml", "text/html"], Z = null, Zt = null, Qt = n.createElement("form"), $t = function(e) {
|
|
1184
|
+
return e instanceof RegExp || e instanceof Function;
|
|
1185
|
+
}, en = function() {
|
|
1186
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1187
|
+
if (Zt && Zt === e) return;
|
|
1188
|
+
(!e || typeof e != "object") && (e = {}), e = P(e), Yt = Xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Z = Yt === "application/xhtml+xml" ? ge : he, R = L(e, "ALLOWED_TAGS", z, { transform: Z }), B = L(e, "ALLOWED_ATTR", gt, { transform: Z }), X = L(e, "ALLOWED_NAMESPACES", Ut, { transform: ge }), Lt = L(e, "ADD_URI_SAFE_ATTR", Rt, {
|
|
1189
|
+
transform: Z,
|
|
1190
|
+
base: Rt
|
|
1191
|
+
}), Ft = L(e, "ADD_DATA_URI_TAGS", It, {
|
|
1192
|
+
transform: Z,
|
|
1193
|
+
base: It
|
|
1194
|
+
}), Nt = L(e, "FORBID_CONTENTS", Pt, { transform: Z }), H = L(e, "FORBID_TAGS", P({}), { transform: Z }), _t = L(e, "FORBID_ATTR", P({}), { transform: Z }), Mt = O(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? P(e.USE_PROFILES) : e.USE_PROFILES : !1, vt = e.ALLOW_ARIA_ATTR !== !1, W = e.ALLOW_DATA_ATTR !== !1, yt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, bt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = e.SAFE_FOR_TEMPLATES || !1, K = e.SAFE_FOR_XML !== !1, q = e.WHOLE_DOCUMENT || !1, Tt = e.RETURN_DOM || !1, Et = e.RETURN_DOM_FRAGMENT || !1, Dt = e.RETURN_TRUSTED_TYPE || !1, wt = e.FORCE_BODY || !1, Ot = e.SANITIZE_DOM !== !1, J = e.SANITIZE_NAMED_PROPS || !1, At = e.KEEP_CONTENT !== !1, jt = e.IN_PLACE || !1, ht = Oe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ge, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Gt = ot(e, "MATHML_TEXT_INTEGRATION_POINTS", () => M({}, Wt)), qt = ot(e, "HTML_INTEGRATION_POINTS", () => M({}, Kt));
|
|
1195
|
+
let t = ot(e, "CUSTOM_ELEMENT_HANDLING", () => oe(null));
|
|
1196
|
+
if (V = oe(null), O(t, "tagNameCheck") && $t(t.tagNameCheck) && (V.tagNameCheck = t.tagNameCheck), O(t, "attributeNameCheck") && $t(t.attributeNameCheck) && (V.attributeNameCheck = t.attributeNameCheck), O(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), E(V), G && (W = !1), Et && (Tt = !0), Mt && (R = M({}, Fe), B = oe(null), Mt.html === !0 && (M(R, ke), M(B, Ie)), Mt.svg === !0 && (M(R, Ae), M(B, Le), M(B, ze)), Mt.svgFilters === !0 && (M(R, je), M(B, Le), M(B, ze)), Mt.mathMl === !0 && (M(R, Ne), M(B, Re), M(B, ze))), U.tagCheck = null, U.attributeCheck = null, O(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? U.tagCheck = e.ADD_TAGS : me(e.ADD_TAGS) && (R === z && (R = P(R)), M(R, e.ADD_TAGS, Z))), O(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? U.attributeCheck = e.ADD_ATTR : me(e.ADD_ATTR) && (B === gt && (B = P(B)), M(B, e.ADD_ATTR, Z))), O(e, "ADD_FORBID_CONTENTS") && me(e.ADD_FORBID_CONTENTS) && (Nt === Pt && (Nt = P(Nt)), M(Nt, e.ADD_FORBID_CONTENTS, Z)), At && (R["#text"] = !0), q && M(R, [
|
|
1197
|
+
"html",
|
|
1198
|
+
"head",
|
|
1199
|
+
"body"
|
|
1200
|
+
]), R.table && (M(R, ["tbody"]), delete H.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
1201
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw A("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
1202
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw A("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
1203
|
+
let t = C;
|
|
1204
|
+
C = e.TRUSTED_TYPES_POLICY;
|
|
1205
|
+
try {
|
|
1206
|
+
w = D("");
|
|
1207
|
+
} catch (e) {
|
|
1208
|
+
throw C = t, e;
|
|
1209
|
+
}
|
|
1210
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, w = "") : (C === void 0 && (C = xe()), C && typeof w == "string" && (w = D("")));
|
|
1211
|
+
T && T(e), Zt = e;
|
|
1212
|
+
}, tn = M({}, [
|
|
1213
|
+
...Ae,
|
|
1214
|
+
...je,
|
|
1215
|
+
...Me
|
|
1216
|
+
]), nn = M({}, [...Ne, ...Pe]), rn = function(e, t, n) {
|
|
1217
|
+
return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Gt[n]) : !!tn[e];
|
|
1218
|
+
}, an = function(e, t, n) {
|
|
1219
|
+
return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Bt ? e === "math" && qt[n] : !!nn[e];
|
|
1220
|
+
}, on = function(e, t, n) {
|
|
1221
|
+
return t.namespaceURI === Bt && !qt[n] || t.namespaceURI === zt && !Gt[n] ? !1 : !nn[e] && (Jt[e] || !tn[e]);
|
|
1222
|
+
}, sn = function(e) {
|
|
1223
|
+
let t = _(e);
|
|
1224
|
+
(!t || !t.tagName) && (t = {
|
|
1225
|
+
namespaceURI: Vt,
|
|
1226
|
+
tagName: "template"
|
|
1227
|
+
});
|
|
1228
|
+
let n = he(e.tagName), r = he(t.tagName);
|
|
1229
|
+
return X[e.namespaceURI] ? e.namespaceURI === Bt ? rn(n, t, r) : e.namespaceURI === zt ? an(n, t, r) : e.namespaceURI === Y ? on(n, t, r) : !!(Yt === "application/xhtml+xml" && X[e.namespaceURI]) : !1;
|
|
1230
|
+
}, Q = function(e) {
|
|
1231
|
+
fe(t.removed, { element: e });
|
|
1232
|
+
try {
|
|
1233
|
+
_(e).removeChild(e);
|
|
1234
|
+
} catch {
|
|
1235
|
+
if (p(e), !_(e)) throw A("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
1236
|
+
}
|
|
1237
|
+
}, cn = function(e, t, n) {
|
|
1238
|
+
try {
|
|
1239
|
+
m(e, t);
|
|
1240
|
+
} catch {
|
|
1241
|
+
try {
|
|
1242
|
+
e.removeAttribute(n);
|
|
1243
|
+
} catch {}
|
|
1244
|
+
}
|
|
1245
|
+
}, ln = function(e) {
|
|
1246
|
+
fn(e);
|
|
1247
|
+
let t = g(e);
|
|
1248
|
+
if (t) {
|
|
1249
|
+
let e = [];
|
|
1250
|
+
le(t, (t) => {
|
|
1251
|
+
fe(e, t);
|
|
1252
|
+
}), le(e, (e) => {
|
|
1253
|
+
try {
|
|
1254
|
+
p(e);
|
|
1255
|
+
} catch {}
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
let n = y(e);
|
|
1259
|
+
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
1260
|
+
let r = n[t], i = r && r.name;
|
|
1261
|
+
typeof i == "string" && cn(e, r, i);
|
|
1262
|
+
}
|
|
1263
|
+
}, un = function(e, n, r) {
|
|
1264
|
+
if (!r) try {
|
|
1265
|
+
r = n.getAttributeNode(e);
|
|
1266
|
+
} catch {
|
|
1267
|
+
r = null;
|
|
1268
|
+
}
|
|
1269
|
+
fe(t.removed, {
|
|
1270
|
+
attribute: r || null,
|
|
1271
|
+
from: n
|
|
1272
|
+
});
|
|
1273
|
+
try {
|
|
1274
|
+
r ? m(n, r) : n.removeAttribute(e);
|
|
1275
|
+
} catch {
|
|
1276
|
+
try {
|
|
1277
|
+
n.removeAttribute(e);
|
|
1278
|
+
} catch {}
|
|
1279
|
+
}
|
|
1280
|
+
if (e === "is") {
|
|
1281
|
+
if (Tt || Et) try {
|
|
1282
|
+
Q(n);
|
|
1283
|
+
} catch {}
|
|
1284
|
+
else try {
|
|
1285
|
+
n.setAttribute(e, "");
|
|
1286
|
+
} catch {}
|
|
1287
|
+
}
|
|
1288
|
+
}, dn = function(e) {
|
|
1289
|
+
let t = y(e);
|
|
1290
|
+
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
1291
|
+
let r = t[n], i = r && r.name;
|
|
1292
|
+
typeof i != "string" || B[Z(i)] || cn(e, r, i);
|
|
1293
|
+
}
|
|
1294
|
+
}, fn = function(e) {
|
|
1295
|
+
let t = [e];
|
|
1296
|
+
for (; t.length > 0;) {
|
|
1297
|
+
let e = t.pop();
|
|
1298
|
+
S(e) === I.element && dn(e);
|
|
1299
|
+
let n = g(e);
|
|
1300
|
+
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
1301
|
+
}
|
|
1302
|
+
}, pn = function(e, t) {
|
|
1303
|
+
return K ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
1304
|
+
}, mn = function(e) {
|
|
1305
|
+
if (!K) return;
|
|
1306
|
+
let t = [e];
|
|
1307
|
+
for (; t.length > 0;) {
|
|
1308
|
+
let e = t.pop(), n = S(e);
|
|
1309
|
+
if (n === I.processingInstruction || n === I.comment && k(Ze, e.data)) {
|
|
1310
|
+
try {
|
|
1311
|
+
p(e);
|
|
1312
|
+
} catch {}
|
|
1313
|
+
continue;
|
|
1314
|
+
}
|
|
1315
|
+
if (n === I.element) {
|
|
1316
|
+
let t = e, n = Z(te(e));
|
|
1317
|
+
try {
|
|
1318
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
|
|
1319
|
+
} catch {}
|
|
1320
|
+
}
|
|
1321
|
+
let r = g(e);
|
|
1322
|
+
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
1323
|
+
}
|
|
1324
|
+
}, hn = function(e) {
|
|
1325
|
+
let t = null, r = null;
|
|
1326
|
+
if (wt) e = "<remove></remove>" + e;
|
|
1327
|
+
else {
|
|
1328
|
+
let t = _e(e, /^[\r\n\t ]+/);
|
|
1329
|
+
r = t && t[0];
|
|
1330
|
+
}
|
|
1331
|
+
Yt === "application/xhtml+xml" && Vt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
1332
|
+
let i = C ? D(e) : e;
|
|
1333
|
+
if (Vt === Y) try {
|
|
1334
|
+
t = new l().parseFromString(i, Yt);
|
|
1335
|
+
} catch {}
|
|
1336
|
+
if (!t || !t.documentElement) {
|
|
1337
|
+
t = Ce.createDocument(Vt, "template", null);
|
|
1338
|
+
try {
|
|
1339
|
+
t.documentElement.innerHTML = Ht ? w : i;
|
|
1340
|
+
} catch {}
|
|
1341
|
+
}
|
|
1342
|
+
let a = t.body || t.documentElement;
|
|
1343
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === Y ? j.call(t, q ? "html" : "body")[0] : q ? t.documentElement : a;
|
|
1344
|
+
}, gn = function(e) {
|
|
1345
|
+
let t = ee ? ee(e) : e.ownerDocument;
|
|
1346
|
+
return we.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
1347
|
+
}, _n = function(e) {
|
|
1348
|
+
return e = ve(e, et, " "), e = ve(e, ct, " "), e = ve(e, lt, " "), e;
|
|
1349
|
+
}, vn = function(e) {
|
|
1350
|
+
e.normalize();
|
|
1351
|
+
let t = ee ? ee(e) : e.ownerDocument, n = we.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
1352
|
+
for (; r;) r.data = _n(r.data), r = n.nextNode();
|
|
1353
|
+
let i = e.querySelectorAll?.call(e, "template");
|
|
1354
|
+
i && le(i, (e) => {
|
|
1355
|
+
bn(e.content) && vn(e.content);
|
|
1356
|
+
});
|
|
1357
|
+
}, yn = function(e) {
|
|
1358
|
+
let t = x ? x(e) : null;
|
|
1359
|
+
return typeof t != "string" || Z(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== y(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== b(e) || e.childNodes !== g(e);
|
|
1360
|
+
}, bn = function(e) {
|
|
1361
|
+
if (!b || typeof e != "object" || !e) return !1;
|
|
1362
|
+
try {
|
|
1363
|
+
return b(e) === I.documentFragment;
|
|
1364
|
+
} catch {
|
|
1365
|
+
return !1;
|
|
1366
|
+
}
|
|
1367
|
+
}, xn = function(e) {
|
|
1368
|
+
if (!b || typeof e != "object" || !e) return !1;
|
|
1369
|
+
try {
|
|
1370
|
+
return typeof b(e) == "number";
|
|
1371
|
+
} catch {
|
|
1372
|
+
return !1;
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
function $(e, n, r) {
|
|
1376
|
+
e.length !== 0 && le(e, (e) => {
|
|
1377
|
+
e.call(t, n, r, Zt);
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
let Sn = function(e, t) {
|
|
1381
|
+
return !!(K && e.hasChildNodes() && !xn(e.firstElementChild) && k(Xe, e.textContent) && k(Xe, e.innerHTML) || K && e.namespaceURI === Y && tt[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && k(nt[t], e.textContent)) || e.nodeType === I.processingInstruction || K && e.nodeType === I.comment && k(Ze, e.data));
|
|
1382
|
+
}, Cn = function(e, t) {
|
|
1383
|
+
return e instanceof RegExp ? k(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
1384
|
+
}, wn = function(e, t, n) {
|
|
1385
|
+
if (!H[t] && An(t) && Cn(V.tagNameCheck, t)) return !1;
|
|
1386
|
+
if (At && !Nt[t]) {
|
|
1387
|
+
let t = _(e), r = g(e);
|
|
1388
|
+
if (r && t) {
|
|
1389
|
+
let i = r.length;
|
|
1390
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
1391
|
+
let i = e === n ? f(r[a], !0) : r[a];
|
|
1392
|
+
t.insertBefore(i, h(e));
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
return Q(e), !0;
|
|
1397
|
+
}, Tn = function(e, t, n, r) {
|
|
1398
|
+
return e.length === 0 ? t : t === n || t === r ? P(t) : t;
|
|
1399
|
+
}, En = function(e, t) {
|
|
1400
|
+
return e === t || _(e) !== null ? !1 : (jt && fn(e), !0);
|
|
1401
|
+
}, Dn = function(e, n) {
|
|
1402
|
+
if ($(N.beforeSanitizeElements, e, null), En(e, n)) return !0;
|
|
1403
|
+
if (yn(e)) return Q(e), !0;
|
|
1404
|
+
let r = Z(te(e));
|
|
1405
|
+
if (R = Tn(N.uponSanitizeElement, R, z, St), $(N.uponSanitizeElement, e, {
|
|
1406
|
+
tagName: r,
|
|
1407
|
+
allowedTags: R
|
|
1408
|
+
}), En(e, n)) return !0;
|
|
1409
|
+
if (Sn(e, r)) return Q(e), !0;
|
|
1410
|
+
if (H[r] || !(U.tagCheck instanceof Function && U.tagCheck(r)) && !R[r]) {
|
|
1411
|
+
let t = wn(e, r, n);
|
|
1412
|
+
return t === !1 && ($(N.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
|
|
1413
|
+
}
|
|
1414
|
+
if (S(e) === I.element && !sn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && k(Qe, e.innerHTML)) return Q(e), !0;
|
|
1415
|
+
if (G && e.nodeType === I.text) {
|
|
1416
|
+
let n = _n(e.textContent);
|
|
1417
|
+
e.textContent !== n && (fe(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
1418
|
+
}
|
|
1419
|
+
return $(N.afterSanitizeElements, e, null), En(e, n);
|
|
1420
|
+
}, On = function(e, t, r) {
|
|
1421
|
+
if (_t[t] || pn(t, e) || Ot && (t === "id" || t === "name") && (r in n || r in Qt)) return !1;
|
|
1422
|
+
let i = B[t] || U.attributeCheck instanceof Function && U.attributeCheck(t, e);
|
|
1423
|
+
return W && k(ut, t) || vt && k(dt, t) ? !0 : i ? Lt[t] || k(ht, ve(r, pt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ye(r, "data:") === 0 && Ft[e] || yt && !k(ft, ve(r, pt, "")) ? !0 : !r : An(e) && Cn(V.tagNameCheck, e) && Cn(V.attributeNameCheck, t, e) || t === "is" && V.allowCustomizedBuiltInElements && Cn(V.tagNameCheck, r);
|
|
1424
|
+
}, kn = M({}, [
|
|
1425
|
+
"annotation-xml",
|
|
1426
|
+
"color-profile",
|
|
1427
|
+
"font-face",
|
|
1428
|
+
"font-face-format",
|
|
1429
|
+
"font-face-name",
|
|
1430
|
+
"font-face-src",
|
|
1431
|
+
"font-face-uri",
|
|
1432
|
+
"missing-glyph"
|
|
1433
|
+
]), An = function(e) {
|
|
1434
|
+
return !kn[he(e)] && k(mt, e);
|
|
1435
|
+
}, jn = function(e, t, n, r) {
|
|
1436
|
+
if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
1437
|
+
case "TrustedHTML": return D(r);
|
|
1438
|
+
case "TrustedScriptURL": return ce(r);
|
|
1439
|
+
}
|
|
1440
|
+
return r;
|
|
1441
|
+
}, Mn = function(e, t, n, r) {
|
|
1442
|
+
try {
|
|
1443
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (Q(e), !1);
|
|
1444
|
+
} catch {
|
|
1445
|
+
return un(t, e), !1;
|
|
1446
|
+
}
|
|
1447
|
+
}, Nn = function(e, n) {
|
|
1448
|
+
if ($(N.beforeSanitizeAttributes, e, null), En(e, n)) return;
|
|
1449
|
+
let r = e.attributes;
|
|
1450
|
+
if (!r || yn(e)) return;
|
|
1451
|
+
B = Tn(N.uponSanitizeAttribute, B, gt, Ct);
|
|
1452
|
+
let i = {
|
|
1453
|
+
attrName: "",
|
|
1454
|
+
attrValue: "",
|
|
1455
|
+
keepAttr: !0,
|
|
1456
|
+
allowedAttributes: B,
|
|
1457
|
+
forceKeepAttr: void 0
|
|
1458
|
+
}, a = r.length, o = Z(e.nodeName);
|
|
1459
|
+
for (; a--;) {
|
|
1460
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = Z(s), d = l, f = s === "value" ? d : be(d), p = !1;
|
|
1461
|
+
if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(N.uponSanitizeAttribute, e, i), f = i.attrValue, J && (u === "id" || u === "name") && ye(f, kt) !== 0 && (un(s, e, n), f = kt + f, p = !0), K && k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
|
|
1462
|
+
un(s, e, n);
|
|
1463
|
+
continue;
|
|
1464
|
+
}
|
|
1465
|
+
if (u === "attributename" && _e(f, "href")) {
|
|
1466
|
+
un(s, e, n);
|
|
1467
|
+
continue;
|
|
1468
|
+
}
|
|
1469
|
+
if (!i.forceKeepAttr) {
|
|
1470
|
+
if (!i.keepAttr) {
|
|
1471
|
+
un(s, e, n);
|
|
1472
|
+
continue;
|
|
1473
|
+
}
|
|
1474
|
+
if (!bt && k($e, f)) {
|
|
1475
|
+
un(s, e, n);
|
|
1476
|
+
continue;
|
|
1477
|
+
}
|
|
1478
|
+
if (G && (f = _n(f)), !On(o, u, f)) {
|
|
1479
|
+
un(s, e, n);
|
|
1480
|
+
continue;
|
|
1481
|
+
}
|
|
1482
|
+
f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && de(t.removed);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
$(N.afterSanitizeAttributes, e, null), En(e, n);
|
|
1486
|
+
}, Pn = function(e) {
|
|
1487
|
+
let t = null, n = gn(e);
|
|
1488
|
+
for ($(N.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(N.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), bn(t.content) && Pn(t.content), S(t) === I.element) {
|
|
1489
|
+
let e = v(t);
|
|
1490
|
+
bn(e) && (Fn(e), Pn(e));
|
|
1491
|
+
}
|
|
1492
|
+
$(N.afterSanitizeShadowDOM, e, null);
|
|
1493
|
+
}, Fn = function(e) {
|
|
1494
|
+
let t = [{
|
|
1495
|
+
node: e,
|
|
1496
|
+
shadow: null
|
|
1497
|
+
}];
|
|
1498
|
+
for (; t.length > 0;) {
|
|
1499
|
+
let e = t.pop();
|
|
1500
|
+
if (e.shadow) {
|
|
1501
|
+
Pn(e.shadow);
|
|
1502
|
+
continue;
|
|
1503
|
+
}
|
|
1504
|
+
let n = e.node, r = S(n) === I.element, i = g(n);
|
|
1505
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
1506
|
+
node: i[e],
|
|
1507
|
+
shadow: null
|
|
1508
|
+
});
|
|
1509
|
+
if (r) {
|
|
1510
|
+
let e = x ? x(n) : null;
|
|
1511
|
+
if (typeof e == "string" && Z(e) === "template") {
|
|
1512
|
+
let e = n.content;
|
|
1513
|
+
bn(e) && t.push({
|
|
1514
|
+
node: e,
|
|
1515
|
+
shadow: null
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
if (r) {
|
|
1520
|
+
let e = v(n);
|
|
1521
|
+
bn(e) && t.push({
|
|
1522
|
+
node: null,
|
|
1523
|
+
shadow: e
|
|
1524
|
+
}, {
|
|
1525
|
+
node: e,
|
|
1526
|
+
shadow: null
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
};
|
|
1531
|
+
return t.sanitize = function(e) {
|
|
1532
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
1533
|
+
if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = De(e), typeof e != "string")) throw A("dirty is not a string, aborting");
|
|
1534
|
+
if (!t.isSupported) return e;
|
|
1535
|
+
xt ? (R = St, B = Ct) : en(n), (N.uponSanitizeElement.length > 0 || N.uponSanitizeAttribute.length > 0) && (R = P(R)), N.uponSanitizeAttribute.length > 0 && (B = P(B)), t.removed = [];
|
|
1536
|
+
let c = jt && typeof e != "string" && xn(e);
|
|
1537
|
+
if (c) {
|
|
1538
|
+
mn(e);
|
|
1539
|
+
let t = te(e);
|
|
1540
|
+
if (typeof t == "string") {
|
|
1541
|
+
let n = Z(t);
|
|
1542
|
+
if (!R[n] || H[n]) throw ln(e), A("root node is forbidden and cannot be sanitized in-place");
|
|
1543
|
+
}
|
|
1544
|
+
if (yn(e)) throw ln(e), A("root node is clobbered and cannot be sanitized in-place");
|
|
1545
|
+
try {
|
|
1546
|
+
Fn(e);
|
|
1547
|
+
} catch (t) {
|
|
1548
|
+
throw ln(e), t;
|
|
1549
|
+
}
|
|
1550
|
+
} else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === I.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
|
|
1551
|
+
else {
|
|
1552
|
+
if (!Tt && !G && !q && e.indexOf("<") === -1) return C && Dt ? D(e) : e;
|
|
1553
|
+
if (i = hn(e), !i) return Tt ? null : Dt ? w : "";
|
|
1554
|
+
}
|
|
1555
|
+
i && wt && Q(i.firstChild);
|
|
1556
|
+
let l = c ? e : i;
|
|
1557
|
+
try {
|
|
1558
|
+
let e = gn(l);
|
|
1559
|
+
for (; o = e.nextNode();) Dn(o, l), Nn(o, l), bn(o.content) && Pn(o.content);
|
|
1560
|
+
} catch (n) {
|
|
1561
|
+
throw c && (ln(e), le(t.removed, (e) => {
|
|
1562
|
+
e.element && fn(e.element);
|
|
1563
|
+
})), n;
|
|
1564
|
+
}
|
|
1565
|
+
if (c) {
|
|
1566
|
+
let n = !1;
|
|
1567
|
+
if (le(t.removed, (t) => {
|
|
1568
|
+
t.element && (t.element === e && (n = !0), fn(t.element));
|
|
1569
|
+
}), n) throw A("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
1570
|
+
return G && vn(e), e;
|
|
1571
|
+
}
|
|
1572
|
+
if (Tt) {
|
|
1573
|
+
if (G && vn(i), Et) for (s = Te.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
1574
|
+
else s = i;
|
|
1575
|
+
return (B.shadowroot || B.shadowrootmode) && (s = Ee.call(r, s, !0)), s;
|
|
1576
|
+
}
|
|
1577
|
+
let u = q ? i.outerHTML : i.innerHTML;
|
|
1578
|
+
return q && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && k(Je, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), G && (u = _n(u)), C && Dt ? D(u) : u;
|
|
1579
|
+
}, t.setConfig = function() {
|
|
1580
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1581
|
+
en(e), xt = !0, St = R, Ct = B;
|
|
1582
|
+
}, t.clearConfig = function() {
|
|
1583
|
+
Zt = null, xt = !1, St = null, Ct = null, C = re, w = "";
|
|
1584
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
1585
|
+
Zt || en({});
|
|
1586
|
+
let r = Z(e), i = Z(t);
|
|
1587
|
+
return On(r, i, n);
|
|
1588
|
+
}, t.addHook = function(e, t) {
|
|
1589
|
+
typeof t == "function" && O(N, e) && fe(N[e], t);
|
|
1590
|
+
}, t.removeHook = function(e, t) {
|
|
1591
|
+
if (O(N, e)) {
|
|
1592
|
+
if (t !== void 0) {
|
|
1593
|
+
let n = ue(N[e], t);
|
|
1594
|
+
return n === -1 ? void 0 : pe(N[e], n, 1)[0];
|
|
1595
|
+
}
|
|
1596
|
+
return de(N[e]);
|
|
1597
|
+
}
|
|
1598
|
+
}, t.removeHooks = function(e) {
|
|
1599
|
+
O(N, e) && (N[e] = []);
|
|
1600
|
+
}, t.removeAllHooks = function() {
|
|
1601
|
+
N = at();
|
|
1602
|
+
}, t;
|
|
1603
|
+
}
|
|
1604
|
+
var ct = st(), lt = [
|
|
1605
|
+
"script",
|
|
1606
|
+
"iframe",
|
|
1607
|
+
"object",
|
|
1608
|
+
"embed",
|
|
1609
|
+
"base",
|
|
1610
|
+
"form",
|
|
1611
|
+
"meta",
|
|
1612
|
+
"link",
|
|
1613
|
+
"style",
|
|
1614
|
+
"foreignobject"
|
|
1615
|
+
], ut = [
|
|
1616
|
+
"onerror",
|
|
1617
|
+
"onload",
|
|
1618
|
+
"onclick",
|
|
1619
|
+
"onmouseover",
|
|
1620
|
+
"onmouseout",
|
|
1621
|
+
"onmouseenter",
|
|
1622
|
+
"onmouseleave",
|
|
1623
|
+
"onfocus",
|
|
1624
|
+
"onblur",
|
|
1625
|
+
"onkeydown",
|
|
1626
|
+
"onkeyup",
|
|
1627
|
+
"onkeypress",
|
|
1628
|
+
"onsubmit",
|
|
1629
|
+
"onchange",
|
|
1630
|
+
"onbeforeunload",
|
|
1631
|
+
"formaction",
|
|
1632
|
+
"xlink:href"
|
|
1633
|
+
], dt = /(?:^|[^\w-])(?:url|image-set|-webkit-image-set|src)\s*\(/i, ft = /url\s*\(|image-set\s*\(|src\s*\(|position|\\/i;
|
|
1634
|
+
function pt(e, t) {
|
|
1635
|
+
return dt.test(t) ? !0 : e.toLowerCase() === "position" && /\bfixed\b/i.test(t);
|
|
1636
|
+
}
|
|
1637
|
+
function mt(e, t) {
|
|
1638
|
+
let n = t.createElement("span");
|
|
1639
|
+
n.setAttribute("style", e);
|
|
1640
|
+
let r = n.style, i = [];
|
|
1641
|
+
for (let e = 0; e < r.length; e += 1) {
|
|
1642
|
+
let t = r.item(e);
|
|
1643
|
+
if (!t) continue;
|
|
1644
|
+
let n = r.getPropertyValue(t);
|
|
1645
|
+
if (pt(t, n)) continue;
|
|
1646
|
+
let a = r.getPropertyPriority(t);
|
|
1647
|
+
i.push(`${t}: ${n}${a ? ` !${a}` : ""}`);
|
|
1648
|
+
}
|
|
1649
|
+
return i.join("; ");
|
|
1650
|
+
}
|
|
1651
|
+
function ht(e, t) {
|
|
1652
|
+
if (typeof e != "string" || e.length === 0) return "";
|
|
1653
|
+
if (!t || !ft.test(e)) return e;
|
|
1654
|
+
let n = t.createElement("span");
|
|
1655
|
+
n.setAttribute("style", e);
|
|
1656
|
+
let r = n.style, i = !1;
|
|
1657
|
+
for (let e = 0; e < r.length; e += 1) {
|
|
1658
|
+
let t = r.item(e);
|
|
1659
|
+
if (t && pt(t, r.getPropertyValue(t))) {
|
|
1660
|
+
i = !0;
|
|
1661
|
+
break;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
return !i && !dt.test(e) ? e : mt(e, t);
|
|
1665
|
+
}
|
|
1666
|
+
function R(e) {
|
|
1667
|
+
typeof e.addHook == "function" && e.addHook("afterSanitizeAttributes", (e) => {
|
|
1668
|
+
let t = e;
|
|
1669
|
+
if (!t || typeof t.getAttribute != "function") return;
|
|
1670
|
+
let n = t.getAttribute("style");
|
|
1671
|
+
if (!n) return;
|
|
1672
|
+
let r = ht(n, t.ownerDocument);
|
|
1673
|
+
r !== n && (r ? t.setAttribute("style", r) : t.removeAttribute("style"));
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
//#endregion
|
|
1677
|
+
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.73/node_modules/@pie-players/pie-players-shared/dist/security/sanitize-svg-icon.js
|
|
1678
|
+
var z = null;
|
|
1679
|
+
function B() {
|
|
1680
|
+
if (z) return z;
|
|
1681
|
+
if (typeof window > "u" || !window.document) return null;
|
|
1682
|
+
let e = ct;
|
|
1683
|
+
return z = typeof e == "function" ? e(window) : ct, R(z), z;
|
|
1684
|
+
}
|
|
1685
|
+
var gt = lt, V = ut, H = /* @__PURE__ */ new Map(), _t = 64;
|
|
1686
|
+
function U(e) {
|
|
1687
|
+
if (typeof e != "string" || e.length === 0 || !e.trimStart().toLowerCase().startsWith("<svg")) return "";
|
|
1688
|
+
let t = H.get(e);
|
|
1689
|
+
if (t !== void 0) return t;
|
|
1690
|
+
let n = B();
|
|
1691
|
+
if (!n) return "";
|
|
1692
|
+
let r = n.sanitize(e, {
|
|
1693
|
+
USE_PROFILES: {
|
|
1694
|
+
svg: !0,
|
|
1695
|
+
svgFilters: !0
|
|
1696
|
+
},
|
|
1697
|
+
FORBID_TAGS: gt,
|
|
1698
|
+
FORBID_ATTR: V,
|
|
1699
|
+
ALLOW_UNKNOWN_PROTOCOLS: !1,
|
|
1700
|
+
RETURN_TRUSTED_TYPE: !1
|
|
1701
|
+
}), i = typeof r == "string" ? r : String(r ?? "");
|
|
1702
|
+
if (H.size >= _t) {
|
|
1703
|
+
let e = [...H.keys()];
|
|
1704
|
+
for (let t = 0; t < e.length / 2; t += 1) H.delete(e[t]);
|
|
1705
|
+
}
|
|
1706
|
+
return H.set(e, i), i;
|
|
1707
|
+
}
|
|
1708
|
+
//#endregion
|
|
1709
|
+
//#region ../../node_modules/.bun/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
1710
|
+
var vt = /* @__PURE__ */ e(((e, t) => {
|
|
1711
|
+
t.exports = {
|
|
1712
|
+
MAX_LENGTH: 256,
|
|
1713
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
1714
|
+
MAX_SAFE_BUILD_LENGTH: 250,
|
|
1715
|
+
MAX_SAFE_INTEGER: 2 ** 53 - 1 ||
|
|
1716
|
+
/* istanbul ignore next */ 9007199254740991,
|
|
1717
|
+
RELEASE_TYPES: [
|
|
1718
|
+
"major",
|
|
1719
|
+
"premajor",
|
|
1720
|
+
"minor",
|
|
1721
|
+
"preminor",
|
|
1722
|
+
"patch",
|
|
1723
|
+
"prepatch",
|
|
1724
|
+
"prerelease"
|
|
1725
|
+
],
|
|
1726
|
+
SEMVER_SPEC_VERSION: "2.0.0",
|
|
1727
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
1728
|
+
FLAG_LOOSE: 2
|
|
1729
|
+
};
|
|
1730
|
+
})), W = /* @__PURE__ */ e(((e, t) => {
|
|
1731
|
+
t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
|
|
1732
|
+
})), yt = /* @__PURE__ */ e(((e, t) => {
|
|
1733
|
+
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = vt(), a = W();
|
|
1734
|
+
e = t.exports = {};
|
|
1735
|
+
var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
|
|
1736
|
+
["\\s", 1],
|
|
1737
|
+
["\\d", i],
|
|
1738
|
+
[f, r]
|
|
1739
|
+
], m = (e) => {
|
|
1740
|
+
for (let [t, n] of p) e = e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);
|
|
1741
|
+
return e;
|
|
1742
|
+
}, h = (e, t, n) => {
|
|
1743
|
+
let r = m(t), i = d++;
|
|
1744
|
+
a(e, i, t), u[e] = i, c[i] = t, l[i] = r, o[i] = new RegExp(t, n ? "g" : void 0), s[i] = new RegExp(r, n ? "g" : void 0);
|
|
1745
|
+
};
|
|
1746
|
+
h("NUMERICIDENTIFIER", "0|[1-9]\\d*"), h("NUMERICIDENTIFIERLOOSE", "\\d+"), h("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), h("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), h("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), h("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), h("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), h("BUILDIDENTIFIER", `${f}+`), h("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), h("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), h("FULL", `^${c[u.FULLPLAIN]}$`), h("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), h("LOOSE", `^${c[u.LOOSEPLAIN]}$`), h("GTLT", "((?:<|>)?=?)"), h("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), h("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), h("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), h("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), h("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), h("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), h("COERCEPLAIN", `(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`), h("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), h("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), h("COERCERTL", c[u.COERCE], !0), h("COERCERTLFULL", c[u.COERCEFULL], !0), h("LONETILDE", "(?:~>?)"), h("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", h("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), h("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), h("LONECARET", "(?:\\^)"), h("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", h("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), h("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), h("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), h("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), h("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", h("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), h("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), h("STAR", "(<|>)?=?\\s*\\*"), h("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), h("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
1747
|
+
})), bt = /* @__PURE__ */ e(((e, t) => {
|
|
1748
|
+
var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
|
|
1749
|
+
t.exports = (e) => e ? typeof e == "object" ? e : n : r;
|
|
1750
|
+
})), G = /* @__PURE__ */ e(((e, t) => {
|
|
1751
|
+
var n = /^[0-9]+$/, r = (e, t) => {
|
|
1752
|
+
if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
|
|
1753
|
+
let r = n.test(e), i = n.test(t);
|
|
1754
|
+
return r && i && (e = +e, t = +t), e === t ? 0 : r && !i ? -1 : i && !r ? 1 : e < t ? -1 : 1;
|
|
1755
|
+
};
|
|
1756
|
+
t.exports = {
|
|
1757
|
+
compareIdentifiers: r,
|
|
1758
|
+
rcompareIdentifiers: (e, t) => r(t, e)
|
|
1759
|
+
};
|
|
1760
|
+
})), K = /* @__PURE__ */ e(((e, t) => {
|
|
1761
|
+
var n = W(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = vt(), { safeRe: a, t: o } = yt(), s = bt(), { compareIdentifiers: c } = G(), l = (e, t) => {
|
|
1762
|
+
let n = t.split(".");
|
|
1763
|
+
if (n.length > e.length) return !1;
|
|
1764
|
+
for (let t = 0; t < n.length; t++) if (c(e[t], n[t]) !== 0) return !1;
|
|
1765
|
+
return !0;
|
|
1766
|
+
};
|
|
1767
|
+
t.exports = class e {
|
|
1768
|
+
constructor(t, c) {
|
|
1769
|
+
if (c = s(c), t instanceof e) {
|
|
1770
|
+
if (t.loose === !!c.loose && t.includePrerelease === !!c.includePrerelease) return t;
|
|
1771
|
+
t = t.version;
|
|
1772
|
+
} else if (typeof t != "string") throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);
|
|
1773
|
+
if (t.length > r) throw TypeError(`version is longer than ${r} characters`);
|
|
1774
|
+
n("SemVer", t, c), this.options = c, this.loose = !!c.loose, this.includePrerelease = !!c.includePrerelease;
|
|
1775
|
+
let l = t.trim().match(c.loose ? a[o.LOOSE] : a[o.FULL]);
|
|
1776
|
+
if (!l) throw TypeError(`Invalid Version: ${t}`);
|
|
1777
|
+
if (this.raw = t, this.major = +l[1], this.minor = +l[2], this.patch = +l[3], this.major > i || this.major < 0) throw TypeError("Invalid major version");
|
|
1778
|
+
if (this.minor > i || this.minor < 0) throw TypeError("Invalid minor version");
|
|
1779
|
+
if (this.patch > i || this.patch < 0) throw TypeError("Invalid patch version");
|
|
1780
|
+
this.prerelease = l[4] ? l[4].split(".").map((e) => {
|
|
1781
|
+
if (/^[0-9]+$/.test(e)) {
|
|
1782
|
+
let t = +e;
|
|
1783
|
+
if (t >= 0 && t < i) return t;
|
|
1784
|
+
}
|
|
1785
|
+
return e;
|
|
1786
|
+
}) : [], this.build = l[5] ? l[5].split(".") : [], this.format();
|
|
1787
|
+
}
|
|
1788
|
+
format() {
|
|
1789
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
1790
|
+
}
|
|
1791
|
+
toString() {
|
|
1792
|
+
return this.version;
|
|
1793
|
+
}
|
|
1794
|
+
compare(t) {
|
|
1795
|
+
if (n("SemVer.compare", this.version, this.options, t), !(t instanceof e)) {
|
|
1796
|
+
if (typeof t == "string" && t === this.version) return 0;
|
|
1797
|
+
t = new e(t, this.options);
|
|
1798
|
+
}
|
|
1799
|
+
return t.version === this.version ? 0 : this.compareMain(t) || this.comparePre(t);
|
|
1800
|
+
}
|
|
1801
|
+
compareMain(t) {
|
|
1802
|
+
return t instanceof e || (t = new e(t, this.options)), this.major < t.major ? -1 : this.major > t.major ? 1 : this.minor < t.minor ? -1 : this.minor > t.minor ? 1 : this.patch < t.patch ? -1 : +(this.patch > t.patch);
|
|
1803
|
+
}
|
|
1804
|
+
comparePre(t) {
|
|
1805
|
+
if (t instanceof e || (t = new e(t, this.options)), this.prerelease.length && !t.prerelease.length) return -1;
|
|
1806
|
+
if (!this.prerelease.length && t.prerelease.length) return 1;
|
|
1807
|
+
if (!this.prerelease.length && !t.prerelease.length) return 0;
|
|
1808
|
+
let r = 0;
|
|
1809
|
+
do {
|
|
1810
|
+
let e = this.prerelease[r], i = t.prerelease[r];
|
|
1811
|
+
if (n("prerelease compare", r, e, i), e === void 0 && i === void 0) return 0;
|
|
1812
|
+
if (i === void 0) return 1;
|
|
1813
|
+
if (e === void 0) return -1;
|
|
1814
|
+
if (e !== i) return c(e, i);
|
|
1815
|
+
} while (++r);
|
|
1816
|
+
}
|
|
1817
|
+
compareBuild(t) {
|
|
1818
|
+
t instanceof e || (t = new e(t, this.options));
|
|
1819
|
+
let r = 0;
|
|
1820
|
+
do {
|
|
1821
|
+
let e = this.build[r], i = t.build[r];
|
|
1822
|
+
if (n("build compare", r, e, i), e === void 0 && i === void 0) return 0;
|
|
1823
|
+
if (i === void 0) return 1;
|
|
1824
|
+
if (e === void 0) return -1;
|
|
1825
|
+
if (e !== i) return c(e, i);
|
|
1826
|
+
} while (++r);
|
|
1827
|
+
}
|
|
1828
|
+
inc(e, t, n) {
|
|
1829
|
+
if (e.startsWith("pre")) {
|
|
1830
|
+
if (!t && n === !1) throw Error("invalid increment argument: identifier is empty");
|
|
1831
|
+
if (t) {
|
|
1832
|
+
let e = `-${t}`.match(this.options.loose ? a[o.PRERELEASELOOSE] : a[o.PRERELEASE]);
|
|
1833
|
+
if (!e || e[1] !== t) throw Error(`invalid identifier: ${t}`);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
switch (e) {
|
|
1837
|
+
case "premajor":
|
|
1838
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t, n);
|
|
1839
|
+
break;
|
|
1840
|
+
case "preminor":
|
|
1841
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t, n);
|
|
1842
|
+
break;
|
|
1843
|
+
case "prepatch":
|
|
1844
|
+
this.prerelease.length = 0, this.inc("patch", t, n), this.inc("pre", t, n);
|
|
1845
|
+
break;
|
|
1846
|
+
case "prerelease":
|
|
1847
|
+
this.prerelease.length === 0 && this.inc("patch", t, n), this.inc("pre", t, n);
|
|
1848
|
+
break;
|
|
1849
|
+
case "release":
|
|
1850
|
+
if (this.prerelease.length === 0) throw Error(`version ${this.raw} is not a prerelease`);
|
|
1851
|
+
this.prerelease.length = 0;
|
|
1852
|
+
break;
|
|
1853
|
+
case "major":
|
|
1854
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
1855
|
+
break;
|
|
1856
|
+
case "minor":
|
|
1857
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
1858
|
+
break;
|
|
1859
|
+
case "patch":
|
|
1860
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
1861
|
+
break;
|
|
1862
|
+
case "pre": {
|
|
1863
|
+
let e = +!!Number(n);
|
|
1864
|
+
if (this.prerelease.length === 0) this.prerelease = [e];
|
|
1865
|
+
else {
|
|
1866
|
+
let r = this.prerelease.length;
|
|
1867
|
+
for (; --r >= 0;) typeof this.prerelease[r] == "number" && (this.prerelease[r]++, r = -2);
|
|
1868
|
+
if (r === -1) {
|
|
1869
|
+
if (t === this.prerelease.join(".") && n === !1) throw Error("invalid increment argument: identifier already exists");
|
|
1870
|
+
this.prerelease.push(e);
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
if (t) {
|
|
1874
|
+
let r = [t, e];
|
|
1875
|
+
if (n === !1 && (r = [t]), l(this.prerelease, t)) {
|
|
1876
|
+
let e = this.prerelease[t.split(".").length];
|
|
1877
|
+
isNaN(e) && (this.prerelease = r);
|
|
1878
|
+
} else this.prerelease = r;
|
|
1879
|
+
}
|
|
1880
|
+
break;
|
|
1881
|
+
}
|
|
1882
|
+
default: throw Error(`invalid increment argument: ${e}`);
|
|
1883
|
+
}
|
|
1884
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
1885
|
+
}
|
|
1886
|
+
};
|
|
1887
|
+
})), q = /* @__PURE__ */ e(((e, t) => {
|
|
1888
|
+
var n = K();
|
|
1889
|
+
t.exports = (e, t, r = !1) => {
|
|
1890
|
+
if (e instanceof n) return e;
|
|
1891
|
+
try {
|
|
1892
|
+
return new n(e, t);
|
|
1893
|
+
} catch (e) {
|
|
1894
|
+
if (!r) return null;
|
|
1895
|
+
throw e;
|
|
1896
|
+
}
|
|
1897
|
+
};
|
|
1898
|
+
})), xt = /* @__PURE__ */ e(((e, t) => {
|
|
1899
|
+
var n = q();
|
|
1900
|
+
t.exports = (e, t) => {
|
|
1901
|
+
let r = n(e, t);
|
|
1902
|
+
return r ? r.version : null;
|
|
1903
|
+
};
|
|
1904
|
+
})), St = /* @__PURE__ */ e(((e, t) => {
|
|
1905
|
+
var n = q();
|
|
1906
|
+
t.exports = (e, t) => {
|
|
1907
|
+
let r = n(e.trim().replace(/^[=v]+/, ""), t);
|
|
1908
|
+
return r ? r.version : null;
|
|
1909
|
+
};
|
|
1910
|
+
})), Ct = /* @__PURE__ */ e(((e, t) => {
|
|
1911
|
+
var n = K();
|
|
1912
|
+
t.exports = (e, t, r, i, a) => {
|
|
1913
|
+
typeof r == "string" && (a = i, i = r, r = void 0);
|
|
1914
|
+
try {
|
|
1915
|
+
return new n(e instanceof n ? e.version : e, r).inc(t, i, a).version;
|
|
1916
|
+
} catch {
|
|
1917
|
+
return null;
|
|
1918
|
+
}
|
|
1919
|
+
};
|
|
1920
|
+
})), wt = /* @__PURE__ */ e(((e, t) => {
|
|
1921
|
+
var n = q();
|
|
1922
|
+
t.exports = (e, t) => {
|
|
1923
|
+
let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
|
|
1924
|
+
if (a === 0) return null;
|
|
1925
|
+
let o = a > 0, s = o ? r : i, c = o ? i : r, l = !!s.prerelease.length;
|
|
1926
|
+
if (c.prerelease.length && !l) {
|
|
1927
|
+
if (!c.patch && !c.minor) return "major";
|
|
1928
|
+
if (c.compareMain(s) === 0) return c.minor && !c.patch ? "minor" : "patch";
|
|
1929
|
+
}
|
|
1930
|
+
let u = l ? "pre" : "";
|
|
1931
|
+
return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
|
|
1932
|
+
};
|
|
1933
|
+
})), Tt = /* @__PURE__ */ e(((e, t) => {
|
|
1934
|
+
var n = K();
|
|
1935
|
+
t.exports = (e, t) => new n(e, t).major;
|
|
1936
|
+
})), Et = /* @__PURE__ */ e(((e, t) => {
|
|
1937
|
+
var n = K();
|
|
1938
|
+
t.exports = (e, t) => new n(e, t).minor;
|
|
1939
|
+
})), Dt = /* @__PURE__ */ e(((e, t) => {
|
|
1940
|
+
var n = K();
|
|
1941
|
+
t.exports = (e, t) => new n(e, t).patch;
|
|
1942
|
+
})), Ot = /* @__PURE__ */ e(((e, t) => {
|
|
1943
|
+
var n = q();
|
|
1944
|
+
t.exports = (e, t) => {
|
|
1945
|
+
let r = n(e, t);
|
|
1946
|
+
return r && r.prerelease.length ? r.prerelease : null;
|
|
1947
|
+
};
|
|
1948
|
+
})), J = /* @__PURE__ */ e(((e, t) => {
|
|
1949
|
+
var n = K();
|
|
1950
|
+
t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
|
|
1951
|
+
})), kt = /* @__PURE__ */ e(((e, t) => {
|
|
1952
|
+
var n = J();
|
|
1953
|
+
t.exports = (e, t, r) => n(t, e, r);
|
|
1954
|
+
})), At = /* @__PURE__ */ e(((e, t) => {
|
|
1955
|
+
var n = J();
|
|
1956
|
+
t.exports = (e, t) => n(e, t, !0);
|
|
1957
|
+
})), jt = /* @__PURE__ */ e(((e, t) => {
|
|
1958
|
+
var n = K();
|
|
1959
|
+
t.exports = (e, t, r) => {
|
|
1960
|
+
let i = new n(e, r), a = new n(t, r);
|
|
1961
|
+
return i.compare(a) || i.compareBuild(a);
|
|
1962
|
+
};
|
|
1963
|
+
})), Mt = /* @__PURE__ */ e(((e, t) => {
|
|
1964
|
+
var n = jt();
|
|
1965
|
+
t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
|
|
1966
|
+
})), Nt = /* @__PURE__ */ e(((e, t) => {
|
|
1967
|
+
var n = jt();
|
|
1968
|
+
t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
|
|
1969
|
+
})), Pt = /* @__PURE__ */ e(((e, t) => {
|
|
1970
|
+
var n = J();
|
|
1971
|
+
t.exports = (e, t, r) => n(e, t, r) > 0;
|
|
1972
|
+
})), Ft = /* @__PURE__ */ e(((e, t) => {
|
|
1973
|
+
var n = J();
|
|
1974
|
+
t.exports = (e, t, r) => n(e, t, r) < 0;
|
|
1975
|
+
})), It = /* @__PURE__ */ e(((e, t) => {
|
|
1976
|
+
var n = J();
|
|
1977
|
+
t.exports = (e, t, r) => n(e, t, r) === 0;
|
|
1978
|
+
})), Lt = /* @__PURE__ */ e(((e, t) => {
|
|
1979
|
+
var n = J();
|
|
1980
|
+
t.exports = (e, t, r) => n(e, t, r) !== 0;
|
|
1981
|
+
})), Rt = /* @__PURE__ */ e(((e, t) => {
|
|
1982
|
+
var n = J();
|
|
1983
|
+
t.exports = (e, t, r) => n(e, t, r) >= 0;
|
|
1984
|
+
})), zt = /* @__PURE__ */ e(((e, t) => {
|
|
1985
|
+
var n = J();
|
|
1986
|
+
t.exports = (e, t, r) => n(e, t, r) <= 0;
|
|
1987
|
+
})), Bt = /* @__PURE__ */ e(((e, t) => {
|
|
1988
|
+
var n = It(), r = Lt(), i = Pt(), a = Rt(), o = Ft(), s = zt();
|
|
1989
|
+
t.exports = (e, t, c, l) => {
|
|
1990
|
+
switch (t) {
|
|
1991
|
+
case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
|
|
1992
|
+
case "!==": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e !== c;
|
|
1993
|
+
case "":
|
|
1994
|
+
case "=":
|
|
1995
|
+
case "==": return n(e, c, l);
|
|
1996
|
+
case "!=": return r(e, c, l);
|
|
1997
|
+
case ">": return i(e, c, l);
|
|
1998
|
+
case ">=": return a(e, c, l);
|
|
1999
|
+
case "<": return o(e, c, l);
|
|
2000
|
+
case "<=": return s(e, c, l);
|
|
2001
|
+
default: throw TypeError(`Invalid operator: ${t}`);
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
})), Y = /* @__PURE__ */ e(((e, t) => {
|
|
2005
|
+
var n = K(), r = q(), { safeRe: i, t: a } = yt();
|
|
2006
|
+
t.exports = (e, t) => {
|
|
2007
|
+
if (e instanceof n) return e;
|
|
2008
|
+
if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
|
|
2009
|
+
t ||= {};
|
|
2010
|
+
let o = null;
|
|
2011
|
+
if (!t.rtl) o = e.match(t.includePrerelease ? i[a.COERCEFULL] : i[a.COERCE]);
|
|
2012
|
+
else {
|
|
2013
|
+
let n = t.includePrerelease ? i[a.COERCERTLFULL] : i[a.COERCERTL], r;
|
|
2014
|
+
for (; (r = n.exec(e)) && (!o || o.index + o[0].length !== e.length);) (!o || r.index + r[0].length !== o.index + o[0].length) && (o = r), n.lastIndex = r.index + r[1].length + r[2].length;
|
|
2015
|
+
n.lastIndex = -1;
|
|
2016
|
+
}
|
|
2017
|
+
if (o === null) return null;
|
|
2018
|
+
let s = o[2];
|
|
2019
|
+
return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
|
|
2020
|
+
};
|
|
2021
|
+
})), Vt = /* @__PURE__ */ e(((e, t) => {
|
|
2022
|
+
var n = q(), r = vt(), i = K(), a = (e, t, n) => {
|
|
2023
|
+
if (!r.RELEASE_TYPES.includes(t)) return null;
|
|
2024
|
+
let i = o(e, n);
|
|
2025
|
+
return i && s(i, t);
|
|
2026
|
+
}, o = (e, t) => n(e instanceof i ? e.version : e, t), s = (e, t) => {
|
|
2027
|
+
if (c(t)) return e.version;
|
|
2028
|
+
switch (e.prerelease = [], t) {
|
|
2029
|
+
case "major":
|
|
2030
|
+
e.minor = 0, e.patch = 0;
|
|
2031
|
+
break;
|
|
2032
|
+
case "minor": e.patch = 0;
|
|
2033
|
+
}
|
|
2034
|
+
return e.format();
|
|
2035
|
+
}, c = (e) => e.startsWith("pre");
|
|
2036
|
+
t.exports = a;
|
|
2037
|
+
})), Ht = /* @__PURE__ */ e(((e, t) => {
|
|
2038
|
+
t.exports = class {
|
|
2039
|
+
constructor() {
|
|
2040
|
+
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
2041
|
+
}
|
|
2042
|
+
get(e) {
|
|
2043
|
+
let t = this.map.get(e);
|
|
2044
|
+
if (t !== void 0) return this.map.delete(e), this.map.set(e, t), t;
|
|
2045
|
+
}
|
|
2046
|
+
delete(e) {
|
|
2047
|
+
return this.map.delete(e);
|
|
2048
|
+
}
|
|
2049
|
+
set(e, t) {
|
|
2050
|
+
if (!this.delete(e) && t !== void 0) {
|
|
2051
|
+
if (this.map.size >= this.max) {
|
|
2052
|
+
let e = this.map.keys().next().value;
|
|
2053
|
+
this.delete(e);
|
|
2054
|
+
}
|
|
2055
|
+
this.map.set(e, t);
|
|
2056
|
+
}
|
|
2057
|
+
return this;
|
|
2058
|
+
}
|
|
2059
|
+
};
|
|
2060
|
+
})), X = /* @__PURE__ */ e(((e, t) => {
|
|
2061
|
+
var n = /\s+/g;
|
|
2062
|
+
t.exports = class e {
|
|
2063
|
+
constructor(t, r) {
|
|
2064
|
+
if (r = i(r), t instanceof e) return t.loose === !!r.loose && t.includePrerelease === !!r.includePrerelease ? t : new e(t.raw, r);
|
|
2065
|
+
if (t instanceof a) return this.raw = t.value, this.set = [[t]], this.formatted = void 0, this;
|
|
2066
|
+
if (this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease, this.raw = t.trim().replace(n, " "), this.set = this.raw.split("||").map((e) => this.parseRange(e.trim())).filter((e) => e.length), !this.set.length) throw TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
2067
|
+
if (this.set.length > 1) {
|
|
2068
|
+
let e = this.set[0];
|
|
2069
|
+
if (this.set = this.set.filter((e) => !_(e[0])), this.set.length === 0) this.set = [e];
|
|
2070
|
+
else if (this.set.length > 1) {
|
|
2071
|
+
for (let e of this.set) if (e.length === 1 && v(e[0])) {
|
|
2072
|
+
this.set = [e];
|
|
2073
|
+
break;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
this.formatted = void 0;
|
|
2078
|
+
}
|
|
2079
|
+
get range() {
|
|
2080
|
+
if (this.formatted === void 0) {
|
|
2081
|
+
this.formatted = "";
|
|
2082
|
+
for (let e = 0; e < this.set.length; e++) {
|
|
2083
|
+
e > 0 && (this.formatted += "||");
|
|
2084
|
+
let t = this.set[e];
|
|
2085
|
+
for (let e = 0; e < t.length; e++) e > 0 && (this.formatted += " "), this.formatted += t[e].toString().trim();
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
return this.formatted;
|
|
2089
|
+
}
|
|
2090
|
+
format() {
|
|
2091
|
+
return this.range;
|
|
2092
|
+
}
|
|
2093
|
+
toString() {
|
|
2094
|
+
return this.range;
|
|
2095
|
+
}
|
|
2096
|
+
parseRange(e) {
|
|
2097
|
+
e = e.replace(g, "");
|
|
2098
|
+
let t = ((this.options.includePrerelease && m) | (this.options.loose && h)) + ":" + e, n = r.get(t);
|
|
2099
|
+
if (n) return n;
|
|
2100
|
+
let i = this.options.loose, s = i ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
|
|
2101
|
+
e = e.replace(s, T(this.options.includePrerelease)), o("hyphen replace", e), e = e.replace(c[u.COMPARATORTRIM], d), o("comparator trim", e), e = e.replace(c[u.TILDETRIM], f), o("tilde trim", e), e = e.replace(c[u.CARETTRIM], p), o("caret trim", e);
|
|
2102
|
+
let l = e.split(" ").map((e) => b(e, this.options)).join(" ").split(/\s+/).map((e) => ae(e, this.options));
|
|
2103
|
+
i && (l = l.filter((e) => (o("loose invalid filter", e, this.options), !!e.match(c[u.COMPARATORLOOSE])))), o("range list", l);
|
|
2104
|
+
let v = /* @__PURE__ */ new Map(), y = l.map((e) => new a(e, this.options));
|
|
2105
|
+
for (let e of y) {
|
|
2106
|
+
if (_(e)) return [e];
|
|
2107
|
+
v.set(e.value, e);
|
|
2108
|
+
}
|
|
2109
|
+
v.size > 1 && v.has("") && v.delete("");
|
|
2110
|
+
let x = [...v.values()];
|
|
2111
|
+
return r.set(t, x), x;
|
|
2112
|
+
}
|
|
2113
|
+
intersects(t, n) {
|
|
2114
|
+
if (!(t instanceof e)) throw TypeError("a Range is required");
|
|
2115
|
+
return this.set.some((e) => y(e, n) && t.set.some((t) => y(t, n) && e.every((e) => t.every((t) => e.intersects(t, n)))));
|
|
2116
|
+
}
|
|
2117
|
+
test(e) {
|
|
2118
|
+
if (!e) return !1;
|
|
2119
|
+
if (typeof e == "string") try {
|
|
2120
|
+
e = new s(e, this.options);
|
|
2121
|
+
} catch {
|
|
2122
|
+
return !1;
|
|
2123
|
+
}
|
|
2124
|
+
for (let t = 0; t < this.set.length; t++) if (E(this.set[t], e, this.options)) return !0;
|
|
2125
|
+
return !1;
|
|
2126
|
+
}
|
|
2127
|
+
};
|
|
2128
|
+
var r = new (Ht())(), i = bt(), a = Ut(), o = W(), s = K(), { safeRe: c, src: l, t: u, comparatorTrimReplace: d, tildeTrimReplace: f, caretTrimReplace: p } = yt(), { FLAG_INCLUDE_PRERELEASE: m, FLAG_LOOSE: h } = vt(), g = new RegExp(l[u.BUILD], "g"), _ = (e) => e.value === "<0.0.0-0", v = (e) => e.value === "", y = (e, t) => {
|
|
2129
|
+
let n = !0, r = e.slice(), i = r.pop();
|
|
2130
|
+
for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
|
|
2131
|
+
return n;
|
|
2132
|
+
}, b = (e, t) => (e = e.replace(c[u.BUILD], ""), o("comp", e, t), e = C(e, t), o("caret", e), e = S(e, t), o("tildes", e), e = w(e, t), o("xrange", e), e = ie(e, t), o("stars", e), e), x = (e) => !e || e.toLowerCase() === "x" || e === "*", ee = (e, t, n) => x(e) && !x(t) || x(t) && n && !x(n), S = (e, t) => e.trim().split(/\s+/).map((e) => te(e, t)).join(" "), te = (e, t) => {
|
|
2133
|
+
let n = t.loose ? c[u.TILDELOOSE] : c[u.TILDE], r = t.includePrerelease ? "-0" : "";
|
|
2134
|
+
return e.replace(n, (t, n, i, a, s) => {
|
|
2135
|
+
o("tilde", e, t, n, i, a, s);
|
|
2136
|
+
let c;
|
|
2137
|
+
return x(n) ? c = "" : x(i) ? c = `>=${n}.0.0${r} <${+n + 1}.0.0-0` : x(a) ? c = `>=${n}.${i}.0${r} <${n}.${+i + 1}.0-0` : s ? (o("replaceTilde pr", s), c = `>=${n}.${i}.${a}-${s} <${n}.${+i + 1}.0-0`) : c = `>=${n}.${i}.${a} <${n}.${+i + 1}.0-0`, o("tilde return", c), c;
|
|
2138
|
+
});
|
|
2139
|
+
}, C = (e, t) => e.trim().split(/\s+/).map((e) => ne(e, t)).join(" "), ne = (e, t) => {
|
|
2140
|
+
o("caret", e, t);
|
|
2141
|
+
let n = t.loose ? c[u.CARETLOOSE] : c[u.CARET], r = t.includePrerelease ? "-0" : "";
|
|
2142
|
+
return e.replace(n, (t, n, i, a, s) => {
|
|
2143
|
+
o("caret", e, t, n, i, a, s);
|
|
2144
|
+
let c;
|
|
2145
|
+
return x(n) ? c = "" : x(i) ? c = `>=${n}.0.0${r} <${+n + 1}.0.0-0` : x(a) ? c = n === "0" ? `>=${n}.${i}.0${r} <${n}.${+i + 1}.0-0` : `>=${n}.${i}.0${r} <${+n + 1}.0.0-0` : s ? (o("replaceCaret pr", s), c = n === "0" ? i === "0" ? `>=${n}.${i}.${a}-${s} <${n}.${i}.${+a + 1}-0` : `>=${n}.${i}.${a}-${s} <${n}.${+i + 1}.0-0` : `>=${n}.${i}.${a}-${s} <${+n + 1}.0.0-0`) : (o("no pr"), c = n === "0" ? i === "0" ? `>=${n}.${i}.${a} <${n}.${i}.${+a + 1}-0` : `>=${n}.${i}.${a} <${n}.${+i + 1}.0-0` : `>=${n}.${i}.${a} <${+n + 1}.0.0-0`), o("caret return", c), c;
|
|
2146
|
+
});
|
|
2147
|
+
}, w = (e, t) => (o("replaceXRanges", e, t), e.split(/\s+/).map((e) => re(e, t)).join(" ")), re = (e, t) => {
|
|
2148
|
+
e = e.trim();
|
|
2149
|
+
let n = t.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
|
|
2150
|
+
return e.replace(n, (n, r, i, a, s, c) => {
|
|
2151
|
+
if (o("xRange", e, n, r, i, a, s, c), ee(i, a, s)) return e;
|
|
2152
|
+
let l = x(i), u = l || x(a), d = u || x(s), f = d;
|
|
2153
|
+
return r === "=" && f && (r = ""), c = t.includePrerelease ? "-0" : "", l ? n = r === ">" || r === "<" ? "<0.0.0-0" : "*" : r && f ? (u && (a = 0), s = 0, r === ">" ? (r = ">=", u ? (i = +i + 1, a = 0, s = 0) : (a = +a + 1, s = 0)) : r === "<=" && (r = "<", u ? i = +i + 1 : a = +a + 1), r === "<" && (c = "-0"), n = `${r + i}.${a}.${s}${c}`) : u ? n = `>=${i}.0.0${c} <${+i + 1}.0.0-0` : d && (n = `>=${i}.${a}.0${c} <${i}.${+a + 1}.0-0`), o("xRange return", n), n;
|
|
2154
|
+
});
|
|
2155
|
+
}, ie = (e, t) => (o("replaceStars", e, t), e.trim().replace(c[u.STAR], "")), ae = (e, t) => (o("replaceGTE0", e, t), e.trim().replace(c[t.includePrerelease ? u.GTE0PRE : u.GTE0], "")), T = (e) => (t, n, r, i, a, o, s, c, l, u, d, f) => (n = x(r) ? "" : x(i) ? `>=${r}.0.0${e ? "-0" : ""}` : x(a) ? `>=${r}.${i}.0${e ? "-0" : ""}` : o ? `>=${n}` : `>=${n}${e ? "-0" : ""}`, c = x(l) ? "" : x(u) ? `<${+l + 1}.0.0-0` : x(d) ? `<${l}.${+u + 1}.0-0` : f ? `<=${l}.${u}.${d}-${f}` : e ? `<${l}.${u}.${+d + 1}-0` : `<=${c}`, `${n} ${c}`.trim()), E = (e, t, n) => {
|
|
2156
|
+
for (let n = 0; n < e.length; n++) if (!e[n].test(t)) return !1;
|
|
2157
|
+
if (t.prerelease.length && !n.includePrerelease) {
|
|
2158
|
+
for (let n = 0; n < e.length; n++) if (o(e[n].semver), e[n].semver !== a.ANY && e[n].semver.prerelease.length > 0) {
|
|
2159
|
+
let r = e[n].semver;
|
|
2160
|
+
if (r.major === t.major && r.minor === t.minor && r.patch === t.patch) return !0;
|
|
2161
|
+
}
|
|
2162
|
+
return !1;
|
|
2163
|
+
}
|
|
2164
|
+
return !0;
|
|
2165
|
+
};
|
|
2166
|
+
})), Ut = /* @__PURE__ */ e(((e, t) => {
|
|
2167
|
+
var n = Symbol("SemVer ANY");
|
|
2168
|
+
t.exports = class e {
|
|
2169
|
+
static get ANY() {
|
|
2170
|
+
return n;
|
|
2171
|
+
}
|
|
2172
|
+
constructor(t, i) {
|
|
2173
|
+
if (i = r(i), t instanceof e) {
|
|
2174
|
+
if (t.loose === !!i.loose) return t;
|
|
2175
|
+
t = t.value;
|
|
2176
|
+
}
|
|
2177
|
+
t = t.trim().split(/\s+/).join(" "), s("comparator", t, i), this.options = i, this.loose = !!i.loose, this.parse(t), this.value = this.semver === n ? "" : this.operator + this.semver.version, s("comp", this);
|
|
2178
|
+
}
|
|
2179
|
+
parse(e) {
|
|
2180
|
+
let t = this.options.loose ? i[a.COMPARATORLOOSE] : i[a.COMPARATOR], r = e.match(t);
|
|
2181
|
+
if (!r) throw TypeError(`Invalid comparator: ${e}`);
|
|
2182
|
+
this.operator = r[1] === void 0 ? "" : r[1], this.operator === "=" && (this.operator = ""), this.semver = r[2] ? new c(r[2], this.options.loose) : n;
|
|
2183
|
+
}
|
|
2184
|
+
toString() {
|
|
2185
|
+
return this.value;
|
|
2186
|
+
}
|
|
2187
|
+
test(e) {
|
|
2188
|
+
if (s("Comparator.test", e, this.options.loose), this.semver === n || e === n) return !0;
|
|
2189
|
+
if (typeof e == "string") try {
|
|
2190
|
+
e = new c(e, this.options);
|
|
2191
|
+
} catch {
|
|
2192
|
+
return !1;
|
|
2193
|
+
}
|
|
2194
|
+
return o(e, this.operator, this.semver, this.options);
|
|
2195
|
+
}
|
|
2196
|
+
intersects(t, n) {
|
|
2197
|
+
if (!(t instanceof e)) throw TypeError("a Comparator is required");
|
|
2198
|
+
return this.operator === "" ? this.value === "" || new l(t.value, n).test(this.value) : t.operator === "" ? t.value === "" || new l(this.value, n).test(t.semver) : (n = r(n), n.includePrerelease && (this.value === "<0.0.0-0" || t.value === "<0.0.0-0") || !n.includePrerelease && (this.value.startsWith("<0.0.0") || t.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && t.operator.startsWith(">") || this.operator.startsWith("<") && t.operator.startsWith("<") || this.semver.version === t.semver.version && this.operator.includes("=") && t.operator.includes("=") || o(this.semver, "<", t.semver, n) && this.operator.startsWith(">") && t.operator.startsWith("<") || o(this.semver, ">", t.semver, n) && this.operator.startsWith("<") && t.operator.startsWith(">")));
|
|
2199
|
+
}
|
|
2200
|
+
};
|
|
2201
|
+
var r = bt(), { safeRe: i, t: a } = yt(), o = Bt(), s = W(), c = K(), l = X();
|
|
2202
|
+
})), Wt = /* @__PURE__ */ e(((e, t) => {
|
|
2203
|
+
var n = X();
|
|
2204
|
+
t.exports = (e, t, r) => {
|
|
2205
|
+
try {
|
|
2206
|
+
t = new n(t, r);
|
|
2207
|
+
} catch {
|
|
2208
|
+
return !1;
|
|
2209
|
+
}
|
|
2210
|
+
return t.test(e);
|
|
2211
|
+
};
|
|
2212
|
+
})), Gt = /* @__PURE__ */ e(((e, t) => {
|
|
2213
|
+
var n = X();
|
|
2214
|
+
t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
|
|
2215
|
+
})), Kt = /* @__PURE__ */ e(((e, t) => {
|
|
2216
|
+
var n = K(), r = X();
|
|
2217
|
+
t.exports = (e, t, i) => {
|
|
2218
|
+
let a = null, o = null, s = null;
|
|
2219
|
+
try {
|
|
2220
|
+
s = new r(t, i);
|
|
2221
|
+
} catch {
|
|
2222
|
+
return null;
|
|
2223
|
+
}
|
|
2224
|
+
return e.forEach((e) => {
|
|
2225
|
+
s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
|
|
2226
|
+
}), a;
|
|
2227
|
+
};
|
|
2228
|
+
})), qt = /* @__PURE__ */ e(((e, t) => {
|
|
2229
|
+
var n = K(), r = X();
|
|
2230
|
+
t.exports = (e, t, i) => {
|
|
2231
|
+
let a = null, o = null, s = null;
|
|
2232
|
+
try {
|
|
2233
|
+
s = new r(t, i);
|
|
2234
|
+
} catch {
|
|
2235
|
+
return null;
|
|
2236
|
+
}
|
|
2237
|
+
return e.forEach((e) => {
|
|
2238
|
+
s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
|
|
2239
|
+
}), a;
|
|
2240
|
+
};
|
|
2241
|
+
})), Jt = /* @__PURE__ */ e(((e, t) => {
|
|
2242
|
+
var n = K(), r = X(), i = Pt();
|
|
2243
|
+
t.exports = (e, t) => {
|
|
2244
|
+
e = new r(e, t);
|
|
2245
|
+
let a = new n("0.0.0");
|
|
2246
|
+
if (e.test(a) || (a = new n("0.0.0-0"), e.test(a))) return a;
|
|
2247
|
+
a = null;
|
|
2248
|
+
for (let t = 0; t < e.set.length; ++t) {
|
|
2249
|
+
let r = e.set[t], o = null;
|
|
2250
|
+
r.forEach((e) => {
|
|
2251
|
+
let t = new n(e.semver.version);
|
|
2252
|
+
switch (e.operator) {
|
|
2253
|
+
case ">": t.prerelease.length === 0 ? t.patch++ : t.prerelease.push(0), t.raw = t.format();
|
|
2254
|
+
case "":
|
|
2255
|
+
case ">=":
|
|
2256
|
+
(!o || i(t, o)) && (o = t);
|
|
2257
|
+
break;
|
|
2258
|
+
case "<":
|
|
2259
|
+
case "<=": break;
|
|
2260
|
+
/* istanbul ignore next */
|
|
2261
|
+
default: throw Error(`Unexpected operation: ${e.operator}`);
|
|
2262
|
+
}
|
|
2263
|
+
}), o && (!a || i(a, o)) && (a = o);
|
|
2264
|
+
}
|
|
2265
|
+
return a && e.test(a) ? a : null;
|
|
2266
|
+
};
|
|
2267
|
+
})), Yt = /* @__PURE__ */ e(((e, t) => {
|
|
2268
|
+
var n = X();
|
|
2269
|
+
t.exports = (e, t) => {
|
|
2270
|
+
try {
|
|
2271
|
+
return new n(e, t).range || "*";
|
|
2272
|
+
} catch {
|
|
2273
|
+
return null;
|
|
2274
|
+
}
|
|
2275
|
+
};
|
|
2276
|
+
})), Xt = /* @__PURE__ */ e(((e, t) => {
|
|
2277
|
+
var n = K(), r = Ut(), { ANY: i } = r, a = X(), o = Wt(), s = Pt(), c = Ft(), l = zt(), u = Rt();
|
|
2278
|
+
t.exports = (e, t, d, f) => {
|
|
2279
|
+
e = new n(e, f), t = new a(t, f);
|
|
2280
|
+
let p, m, h, g, _;
|
|
2281
|
+
switch (d) {
|
|
2282
|
+
case ">":
|
|
2283
|
+
p = s, m = l, h = c, g = ">", _ = ">=";
|
|
2284
|
+
break;
|
|
2285
|
+
case "<":
|
|
2286
|
+
p = c, m = u, h = s, g = "<", _ = "<=";
|
|
2287
|
+
break;
|
|
2288
|
+
default: throw TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
2289
|
+
}
|
|
2290
|
+
if (o(e, t, f)) return !1;
|
|
2291
|
+
for (let n = 0; n < t.set.length; ++n) {
|
|
2292
|
+
let a = t.set[n], o = null, s = null;
|
|
2293
|
+
if (a.forEach((e) => {
|
|
2294
|
+
e.semver === i && (e = new r(">=0.0.0")), o ||= e, s ||= e, p(e.semver, o.semver, f) ? o = e : h(e.semver, s.semver, f) && (s = e);
|
|
2295
|
+
}), o.operator === g || o.operator === _ || (!s.operator || s.operator === g) && m(e, s.semver) || s.operator === _ && h(e, s.semver)) return !1;
|
|
2296
|
+
}
|
|
2297
|
+
return !0;
|
|
2298
|
+
};
|
|
2299
|
+
})), Z = /* @__PURE__ */ e(((e, t) => {
|
|
2300
|
+
var n = Xt();
|
|
2301
|
+
t.exports = (e, t, r) => n(e, t, ">", r);
|
|
2302
|
+
})), Zt = /* @__PURE__ */ e(((e, t) => {
|
|
2303
|
+
var n = Xt();
|
|
2304
|
+
t.exports = (e, t, r) => n(e, t, "<", r);
|
|
2305
|
+
})), Qt = /* @__PURE__ */ e(((e, t) => {
|
|
2306
|
+
var n = X();
|
|
2307
|
+
t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
|
|
2308
|
+
})), $t = /* @__PURE__ */ e(((e, t) => {
|
|
2309
|
+
var n = Wt(), r = J();
|
|
2310
|
+
t.exports = (e, t, i) => {
|
|
2311
|
+
let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
|
|
2312
|
+
for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
|
|
2313
|
+
o && a.push([o, null]);
|
|
2314
|
+
let l = [];
|
|
2315
|
+
for (let [e, t] of a) e === t ? l.push(e) : !t && e === c[0] ? l.push("*") : t ? e === c[0] ? l.push(`<=${t}`) : l.push(`${e} - ${t}`) : l.push(`>=${e}`);
|
|
2316
|
+
let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
|
|
2317
|
+
return u.length < d.length ? u : t;
|
|
2318
|
+
};
|
|
2319
|
+
})), en = /* @__PURE__ */ e(((e, t) => {
|
|
2320
|
+
var n = X(), r = Ut(), { ANY: i } = r, a = Wt(), o = J(), s = (e, t, r = {}) => {
|
|
2321
|
+
if (e === t) return !0;
|
|
2322
|
+
e = new n(e, r), t = new n(t, r);
|
|
2323
|
+
let i = !1;
|
|
2324
|
+
OUTER: for (let n of e.set) {
|
|
2325
|
+
for (let e of t.set) {
|
|
2326
|
+
let t = u(n, e, r);
|
|
2327
|
+
if (i ||= t !== null, t) continue OUTER;
|
|
2328
|
+
}
|
|
2329
|
+
if (i) return !1;
|
|
2330
|
+
}
|
|
2331
|
+
return !0;
|
|
2332
|
+
}, c = [new r(">=0.0.0-0")], l = [new r(">=0.0.0")], u = (e, t, n) => {
|
|
2333
|
+
if (e === t) return !0;
|
|
2334
|
+
if (e.length === 1 && e[0].semver === i) {
|
|
2335
|
+
if (t.length === 1 && t[0].semver === i) return !0;
|
|
2336
|
+
e = n.includePrerelease ? c : l;
|
|
2337
|
+
}
|
|
2338
|
+
if (t.length === 1 && t[0].semver === i) {
|
|
2339
|
+
if (n.includePrerelease) return !0;
|
|
2340
|
+
t = l;
|
|
2341
|
+
}
|
|
2342
|
+
let r = /* @__PURE__ */ new Set(), s, u;
|
|
2343
|
+
for (let t of e) t.operator === ">" || t.operator === ">=" ? s = d(s, t, n) : t.operator === "<" || t.operator === "<=" ? u = f(u, t, n) : r.add(t.semver);
|
|
2344
|
+
if (r.size > 1) return null;
|
|
2345
|
+
let p;
|
|
2346
|
+
if (s && u && (p = o(s.semver, u.semver, n), p > 0 || p === 0 && (s.operator !== ">=" || u.operator !== "<="))) return null;
|
|
2347
|
+
for (let e of r) {
|
|
2348
|
+
if (s && !a(e, String(s), n) || u && !a(e, String(u), n)) return null;
|
|
2349
|
+
for (let r of t) if (!a(e, String(r), n)) return !1;
|
|
2350
|
+
return !0;
|
|
2351
|
+
}
|
|
2352
|
+
let m, h, g, _, v = u && !n.includePrerelease && u.semver.prerelease.length ? u.semver : !1, y = s && !n.includePrerelease && s.semver.prerelease.length ? s.semver : !1;
|
|
2353
|
+
v && v.prerelease.length === 1 && u.operator === "<" && v.prerelease[0] === 0 && (v = !1);
|
|
2354
|
+
for (let e of t) {
|
|
2355
|
+
if (_ = _ || e.operator === ">" || e.operator === ">=", g = g || e.operator === "<" || e.operator === "<=", s) {
|
|
2356
|
+
if (y && e.semver.prerelease && e.semver.prerelease.length && e.semver.major === y.major && e.semver.minor === y.minor && e.semver.patch === y.patch && (y = !1), e.operator === ">" || e.operator === ">=") {
|
|
2357
|
+
if (m = d(s, e, n), m === e && m !== s) return !1;
|
|
2358
|
+
} else if (s.operator === ">=" && !e.test(s.semver)) return !1;
|
|
2359
|
+
}
|
|
2360
|
+
if (u) {
|
|
2361
|
+
if (v && e.semver.prerelease && e.semver.prerelease.length && e.semver.major === v.major && e.semver.minor === v.minor && e.semver.patch === v.patch && (v = !1), e.operator === "<" || e.operator === "<=") {
|
|
2362
|
+
if (h = f(u, e, n), h === e && h !== u) return !1;
|
|
2363
|
+
} else if (u.operator === "<=" && !e.test(u.semver)) return !1;
|
|
2364
|
+
}
|
|
2365
|
+
if (!e.operator && (u || s) && p !== 0) return !1;
|
|
2366
|
+
}
|
|
2367
|
+
return !(s && g && !u && p !== 0 || u && _ && !s && p !== 0 || y || v);
|
|
2368
|
+
}, d = (e, t, n) => {
|
|
2369
|
+
if (!e) return t;
|
|
2370
|
+
let r = o(e.semver, t.semver, n);
|
|
2371
|
+
return r > 0 ? e : r < 0 || t.operator === ">" && e.operator === ">=" ? t : e;
|
|
2372
|
+
}, f = (e, t, n) => {
|
|
2373
|
+
if (!e) return t;
|
|
2374
|
+
let r = o(e.semver, t.semver, n);
|
|
2375
|
+
return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
|
|
2376
|
+
};
|
|
2377
|
+
t.exports = s;
|
|
2378
|
+
}));
|
|
2379
|
+
(/* @__PURE__ */ e(((e, t) => {
|
|
2380
|
+
var n = yt(), r = vt(), i = K(), a = G();
|
|
2381
|
+
t.exports = {
|
|
2382
|
+
parse: q(),
|
|
2383
|
+
valid: xt(),
|
|
2384
|
+
clean: St(),
|
|
2385
|
+
inc: Ct(),
|
|
2386
|
+
diff: wt(),
|
|
2387
|
+
major: Tt(),
|
|
2388
|
+
minor: Et(),
|
|
2389
|
+
patch: Dt(),
|
|
2390
|
+
prerelease: Ot(),
|
|
2391
|
+
compare: J(),
|
|
2392
|
+
rcompare: kt(),
|
|
2393
|
+
compareLoose: At(),
|
|
2394
|
+
compareBuild: jt(),
|
|
2395
|
+
sort: Mt(),
|
|
2396
|
+
rsort: Nt(),
|
|
2397
|
+
gt: Pt(),
|
|
2398
|
+
lt: Ft(),
|
|
2399
|
+
eq: It(),
|
|
2400
|
+
neq: Lt(),
|
|
2401
|
+
gte: Rt(),
|
|
2402
|
+
lte: zt(),
|
|
2403
|
+
cmp: Bt(),
|
|
2404
|
+
coerce: Y(),
|
|
2405
|
+
truncate: Vt(),
|
|
2406
|
+
Comparator: Ut(),
|
|
2407
|
+
Range: X(),
|
|
2408
|
+
satisfies: Wt(),
|
|
2409
|
+
toComparators: Gt(),
|
|
2410
|
+
maxSatisfying: Kt(),
|
|
2411
|
+
minSatisfying: qt(),
|
|
2412
|
+
minVersion: Jt(),
|
|
2413
|
+
validRange: Yt(),
|
|
2414
|
+
outside: Xt(),
|
|
2415
|
+
gtr: Z(),
|
|
2416
|
+
ltr: Zt(),
|
|
2417
|
+
intersects: Qt(),
|
|
2418
|
+
simplifyRange: $t(),
|
|
2419
|
+
subset: en(),
|
|
2420
|
+
SemVer: i,
|
|
2421
|
+
re: n.re,
|
|
2422
|
+
src: n.src,
|
|
2423
|
+
tokens: n.t,
|
|
2424
|
+
SEMVER_SPEC_VERSION: r.SEMVER_SPEC_VERSION,
|
|
2425
|
+
RELEASE_TYPES: r.RELEASE_TYPES,
|
|
2426
|
+
compareIdentifiers: a.compareIdentifiers,
|
|
2427
|
+
rcompareIdentifiers: a.rcompareIdentifiers
|
|
2428
|
+
};
|
|
2429
|
+
})))(), r.timeoutMs;
|
|
2430
|
+
//#endregion
|
|
2431
|
+
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.73/node_modules/@pie-players/pie-players-shared/dist/ui/first-focusable.js
|
|
2432
|
+
var tn = [
|
|
2433
|
+
"a[href]",
|
|
2434
|
+
"button:not([disabled])",
|
|
2435
|
+
"input:not([disabled]):not([type='hidden'])",
|
|
2436
|
+
"select:not([disabled])",
|
|
2437
|
+
"textarea:not([disabled])",
|
|
2438
|
+
"[contenteditable]:not([contenteditable='false'])",
|
|
2439
|
+
"[tabindex]:not([tabindex='-1'])"
|
|
2440
|
+
].join(",");
|
|
2441
|
+
function nn(e) {
|
|
2442
|
+
return !e.matches(tn) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
2443
|
+
}
|
|
2444
|
+
function rn(e) {
|
|
2445
|
+
return e.getAttribute("tabindex") !== "-1" && nn(e);
|
|
2446
|
+
}
|
|
2447
|
+
function an(e) {
|
|
2448
|
+
let t = [], n = (e) => {
|
|
2449
|
+
for (let r of Array.from(e.children)) r instanceof HTMLElement && (r.hasAttribute("inert") || (rn(r) && t.push(r), r.shadowRoot ? n(r.shadowRoot) : n(r)));
|
|
2450
|
+
};
|
|
2451
|
+
return n(e), t;
|
|
2452
|
+
}
|
|
2453
|
+
//#endregion
|
|
2454
|
+
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.73/node_modules/@pie-players/pie-players-shared/dist/ui/focus-trap.js
|
|
2455
|
+
function on(e) {
|
|
2456
|
+
return an(e);
|
|
2457
|
+
}
|
|
2458
|
+
function sn(e) {
|
|
2459
|
+
let t = e.activeElement;
|
|
2460
|
+
for (; t?.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
|
|
2461
|
+
return t;
|
|
2462
|
+
}
|
|
2463
|
+
function Q(e, t) {
|
|
2464
|
+
try {
|
|
2465
|
+
if (t && e.contains(t)) {
|
|
2466
|
+
t.focus();
|
|
2467
|
+
return;
|
|
2468
|
+
}
|
|
2469
|
+
let n = on(e);
|
|
2470
|
+
if (n.length > 0) {
|
|
2471
|
+
n[0].focus();
|
|
2472
|
+
return;
|
|
2473
|
+
}
|
|
2474
|
+
e.focus?.();
|
|
2475
|
+
} catch {}
|
|
2476
|
+
}
|
|
2477
|
+
function cn(e, t = {}) {
|
|
2478
|
+
let n = typeof document < "u" ? sn(document) : null, r = t.wrap ?? !0, i = (n) => {
|
|
2479
|
+
if (n.key === "Escape") {
|
|
2480
|
+
t.onEscape?.();
|
|
2481
|
+
return;
|
|
2482
|
+
}
|
|
2483
|
+
if (n.key !== "Tab") return;
|
|
2484
|
+
let i = on(e);
|
|
2485
|
+
if (!i.length) {
|
|
2486
|
+
if (!r) return;
|
|
2487
|
+
n.preventDefault(), e.focus?.();
|
|
2488
|
+
return;
|
|
2489
|
+
}
|
|
2490
|
+
let a = sn(e.getRootNode() instanceof ShadowRoot ? e.getRootNode() : document), o = i.indexOf(a || i[0]);
|
|
2491
|
+
if (n.shiftKey) {
|
|
2492
|
+
o <= 0 && (r ? (n.preventDefault(), i[i.length - 1].focus()) : t.onTabExit?.("backward", n));
|
|
2493
|
+
return;
|
|
2494
|
+
}
|
|
2495
|
+
o === i.length - 1 && (r ? (n.preventDefault(), i[0].focus()) : t.onTabExit?.("forward", n));
|
|
2496
|
+
};
|
|
2497
|
+
return queueMicrotask(() => Q(e, t.initialFocus)), e.addEventListener("keydown", i), () => {
|
|
2498
|
+
e.removeEventListener("keydown", i);
|
|
2499
|
+
try {
|
|
2500
|
+
n?.focus?.();
|
|
2501
|
+
} catch {}
|
|
2502
|
+
};
|
|
2503
|
+
}
|
|
2504
|
+
//#endregion
|
|
2505
|
+
export { U as a, _ as c, nn as i, tn as n, a as o, an as r, u as s, cn as t };
|
|
2506
|
+
|
|
2507
|
+
//# sourceMappingURL=dist-CQel8-vi.js.map
|