@mdsvex/render 0.0.0 → 1.0.0-next.1
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/CHANGELOG.md +310 -0
- package/LICENSE +21 -0
- package/dist/component.js +24 -0
- package/dist/html_cursor.js +3936 -0
- package/dist/index.js +33 -0
- package/dist/mappings.js +166 -0
- package/dist/sourcemap.js +842 -0
- package/package.json +48 -7
- package/src/Node.svelte +304 -0
- package/src/component.ts +88 -0
- package/src/entities.ts +226 -0
- package/src/html_cursor.ts +5789 -0
- package/src/index.ts +50 -0
- package/src/mappings.ts +312 -0
- package/src/scope.ts +127 -0
- package/src/sourcemap.ts +1785 -0
- package/test/_gen_chain.mjs +67 -0
- package/test/_vite_debug.mjs +91 -0
- package/test/_vite_debug2.mjs +34 -0
- package/test/component.spec.ts +120 -0
- package/test/escape_text.spec.ts +90 -0
- package/test/highlight.spec.ts +242 -0
- package/test/html_cursor.spec.ts +640 -0
- package/test/mappings.spec.ts +703 -0
- package/test/scripts.spec.ts +225 -0
- package/test/trace.spec.ts +247 -0
- package/test/wire_tree_builder.spec.ts +156 -0
- package/tsconfig.json +11 -0
- package/vite.config.build.ts +33 -0
- package/README.md +0 -3
|
@@ -0,0 +1,3936 @@
|
|
|
1
|
+
import { Cursor as $r } from "@mdsvex/parse/cursor";
|
|
2
|
+
import { MapSink as tr, record_mappings as Zn, RecordMapping as ue, record_data as Xn } from "./mappings.js";
|
|
3
|
+
import { trace_records_to_v3 as to, trace_room as eo, trace_free_at as ro, trace_take as no, trace_of_records as oo, reserve_trace as so, records_by_offset as lo } from "./sourcemap.js";
|
|
4
|
+
const mn = /^[A-Za-z_$][\w$]*$/;
|
|
5
|
+
class io {
|
|
6
|
+
/**
|
|
7
|
+
* sources are lowest precedence first so a later one replaces a name,
|
|
8
|
+
* suffix keeps the locals of different scopes apart
|
|
9
|
+
*/
|
|
10
|
+
constructor(e, r, o = null) {
|
|
11
|
+
this.own = /* @__PURE__ */ new Map(), this.locals = /* @__PURE__ */ new Set(), this.parent = o;
|
|
12
|
+
for (let n = 0; n < e.length; n++) {
|
|
13
|
+
const { specifier: s, names: l } = e[n];
|
|
14
|
+
for (let a = 0; a < l.length; a++) {
|
|
15
|
+
const c = l[a], u = this.own.get(c), f = u ? u.local : this.local_for(c, r);
|
|
16
|
+
this.own.set(c, { name: c, specifier: s, local: f });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
this.size = this.own.size + (o === null ? 0 : o.size);
|
|
20
|
+
}
|
|
21
|
+
/** the replacement for an element name, closest scope first */
|
|
22
|
+
get(e) {
|
|
23
|
+
let r = this;
|
|
24
|
+
do {
|
|
25
|
+
const o = r.own.get(e);
|
|
26
|
+
if (o !== void 0) return o;
|
|
27
|
+
r = r.parent;
|
|
28
|
+
} while (r !== null);
|
|
29
|
+
}
|
|
30
|
+
local_for(e, r) {
|
|
31
|
+
const o = e.charAt(0).toUpperCase() + e.slice(1).replace(/[^\w$]/g, "_") + "_MDSVEX_" + r;
|
|
32
|
+
let n = mn.test(o) ? o : "_" + o;
|
|
33
|
+
for (let s = 1; this.locals.has(n); s++) n = o + s;
|
|
34
|
+
return this.locals.add(n), n;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function ao(t) {
|
|
38
|
+
return /^[\w$@#:./~+%-]*$/.test(t) ? "'" + t + "'" : JSON.stringify(t);
|
|
39
|
+
}
|
|
40
|
+
function wn(t, e) {
|
|
41
|
+
const r = /* @__PURE__ */ new Map();
|
|
42
|
+
e !== void 0 && r.set(e.specifier, []);
|
|
43
|
+
for (let n = 0; n < t.length; n++) {
|
|
44
|
+
const { name: s, specifier: l, local: a } = t[n];
|
|
45
|
+
let c = r.get(l);
|
|
46
|
+
c === void 0 && r.set(l, c = []), c.push(
|
|
47
|
+
(mn.test(s) ? s : JSON.stringify(s)) + " as " + a
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
let o = "";
|
|
51
|
+
for (const [n, s] of r) {
|
|
52
|
+
let l = s.length === 0 ? "" : "{ " + s.join(", ") + " }";
|
|
53
|
+
e !== void 0 && n === e.specifier && (l = l === "" ? e.local : e.local + ", " + l), o += "import " + l + " from " + ao(n) + `;
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
return o;
|
|
57
|
+
}
|
|
58
|
+
const co = `
|
|
59
|
+
AElig AMP Aacute Abreve Acirc Acy Afr Agrave Alpha Amacr And Aogon Aopf
|
|
60
|
+
ApplyFunction Aring Ascr Assign Atilde Auml Backslash Barv Barwed Bcy Because
|
|
61
|
+
Bernoullis Beta Bfr Bopf Breve Bscr Bumpeq CHcy COPY Cacute Cap
|
|
62
|
+
CapitalDifferentialD Cayleys Ccaron Ccedil Ccirc Cconint Cdot Cedilla CenterDot
|
|
63
|
+
Cfr Chi CircleDot CircleMinus CirclePlus CircleTimes ClockwiseContourIntegral
|
|
64
|
+
CloseCurlyDoubleQuote CloseCurlyQuote Colon Colone Congruent Conint
|
|
65
|
+
ContourIntegral Copf Coproduct CounterClockwiseContourIntegral Cross Cscr Cup
|
|
66
|
+
CupCap DD DDotrahd DJcy DScy DZcy Dagger Darr Dashv Dcaron Dcy Del Delta Dfr
|
|
67
|
+
DiacriticalAcute DiacriticalDot DiacriticalDoubleAcute DiacriticalGrave
|
|
68
|
+
DiacriticalTilde Diamond DifferentialD Dopf Dot DotDot DotEqual
|
|
69
|
+
DoubleContourIntegral DoubleDot DoubleDownArrow DoubleLeftArrow
|
|
70
|
+
DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow
|
|
71
|
+
DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow
|
|
72
|
+
DoubleUpDownArrow DoubleVerticalBar DownArrow DownArrowBar DownArrowUpArrow
|
|
73
|
+
DownBreve DownLeftRightVector DownLeftTeeVector DownLeftVector
|
|
74
|
+
DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar DownTee
|
|
75
|
+
DownTeeArrow Downarrow Dscr Dstrok ENG ETH Eacute Ecaron Ecirc Ecy Edot Efr
|
|
76
|
+
Egrave Element Emacr EmptySmallSquare EmptyVerySmallSquare Eogon Eopf Epsilon
|
|
77
|
+
Equal EqualTilde Equilibrium Escr Esim Eta Euml Exists ExponentialE Fcy Ffr
|
|
78
|
+
FilledSmallSquare FilledVerySmallSquare Fopf ForAll Fouriertrf Fscr GJcy GT
|
|
79
|
+
Gamma Gammad Gbreve Gcedil Gcirc Gcy Gdot Gfr Gg Gopf GreaterEqual
|
|
80
|
+
GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual
|
|
81
|
+
GreaterTilde Gscr Gt HARDcy Hacek Hat Hcirc Hfr HilbertSpace Hopf
|
|
82
|
+
HorizontalLine Hscr Hstrok HumpDownHump HumpEqual IEcy IJlig IOcy Iacute Icirc
|
|
83
|
+
Icy Idot Ifr Igrave Im Imacr ImaginaryI Implies Int Integral Intersection
|
|
84
|
+
InvisibleComma InvisibleTimes Iogon Iopf Iota Iscr Itilde Iukcy Iuml Jcirc Jcy
|
|
85
|
+
Jfr Jopf Jscr Jsercy Jukcy KHcy KJcy Kappa Kcedil Kcy Kfr Kopf Kscr LJcy LT
|
|
86
|
+
Lacute Lambda Lang Laplacetrf Larr Lcaron Lcedil Lcy LeftAngleBracket LeftArrow
|
|
87
|
+
LeftArrowBar LeftArrowRightArrow LeftCeiling LeftDoubleBracket
|
|
88
|
+
LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftFloor LeftRightArrow
|
|
89
|
+
LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar
|
|
90
|
+
LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar
|
|
91
|
+
LeftVector LeftVectorBar Leftarrow Leftrightarrow LessEqualGreater
|
|
92
|
+
LessFullEqual LessGreater LessLess LessSlantEqual LessTilde Lfr Ll Lleftarrow
|
|
93
|
+
Lmidot LongLeftArrow LongLeftRightArrow LongRightArrow Longleftarrow
|
|
94
|
+
Longleftrightarrow Longrightarrow Lopf LowerLeftArrow LowerRightArrow Lscr Lsh
|
|
95
|
+
Lstrok Lt Map Mcy MediumSpace Mellintrf Mfr MinusPlus Mopf Mscr Mu NJcy Nacute
|
|
96
|
+
Ncaron Ncedil Ncy NegativeMediumSpace NegativeThickSpace NegativeThinSpace
|
|
97
|
+
NegativeVeryThinSpace NestedGreaterGreater NestedLessLess NewLine Nfr NoBreak
|
|
98
|
+
NonBreakingSpace Nopf Not NotCongruent NotCupCap NotDoubleVerticalBar
|
|
99
|
+
NotElement NotEqual NotEqualTilde NotExists NotGreater NotGreaterEqual
|
|
100
|
+
NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual
|
|
101
|
+
NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar
|
|
102
|
+
NotLeftTriangleEqual NotLess NotLessEqual NotLessGreater NotLessLess
|
|
103
|
+
NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess
|
|
104
|
+
NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotReverseElement
|
|
105
|
+
NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset
|
|
106
|
+
NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset
|
|
107
|
+
NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual
|
|
108
|
+
NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual
|
|
109
|
+
NotTildeFullEqual NotTildeTilde NotVerticalBar Nscr Ntilde Nu OElig Oacute
|
|
110
|
+
Ocirc Ocy Odblac Ofr Ograve Omacr Omega Omicron Oopf OpenCurlyDoubleQuote
|
|
111
|
+
OpenCurlyQuote Or Oscr Oslash Otilde Otimes Ouml OverBar OverBrace OverBracket
|
|
112
|
+
OverParenthesis PartialD Pcy Pfr Phi Pi PlusMinus Poincareplane Popf Pr
|
|
113
|
+
Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Prime Product
|
|
114
|
+
Proportion Proportional Pscr Psi QUOT Qfr Qopf Qscr RBarr REG Racute Rang Rarr
|
|
115
|
+
Rarrtl Rcaron Rcedil Rcy Re ReverseElement ReverseEquilibrium
|
|
116
|
+
ReverseUpEquilibrium Rfr Rho RightAngleBracket RightArrow RightArrowBar
|
|
117
|
+
RightArrowLeftArrow RightCeiling RightDoubleBracket RightDownTeeVector
|
|
118
|
+
RightDownVector RightDownVectorBar RightFloor RightTee RightTeeArrow
|
|
119
|
+
RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual
|
|
120
|
+
RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector
|
|
121
|
+
RightVectorBar Rightarrow Ropf RoundImplies Rrightarrow Rscr Rsh RuleDelayed
|
|
122
|
+
SHCHcy SHcy SOFTcy Sacute Sc Scaron Scedil Scirc Scy Sfr ShortDownArrow
|
|
123
|
+
ShortLeftArrow ShortRightArrow ShortUpArrow Sigma SmallCircle Sopf Sqrt Square
|
|
124
|
+
SquareIntersection SquareSubset SquareSubsetEqual SquareSuperset
|
|
125
|
+
SquareSupersetEqual SquareUnion Sscr Star Sub Subset SubsetEqual Succeeds
|
|
126
|
+
SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum Sup Superset
|
|
127
|
+
SupersetEqual Supset THORN TRADE TSHcy TScy Tab Tau Tcaron Tcedil Tcy Tfr
|
|
128
|
+
Therefore Theta ThickSpace ThinSpace Tilde TildeEqual TildeFullEqual TildeTilde
|
|
129
|
+
Topf TripleDot Tscr Tstrok Uacute Uarr Uarrocir Ubrcy Ubreve Ucirc Ucy Udblac
|
|
130
|
+
Ufr Ugrave Umacr UnderBar UnderBrace UnderBracket UnderParenthesis Union
|
|
131
|
+
UnionPlus Uogon Uopf UpArrow UpArrowBar UpArrowDownArrow UpDownArrow
|
|
132
|
+
UpEquilibrium UpTee UpTeeArrow Uparrow Updownarrow UpperLeftArrow
|
|
133
|
+
UpperRightArrow Upsi Upsilon Uring Uscr Utilde Uuml VDash Vbar Vcy Vdash Vdashl
|
|
134
|
+
Vee Verbar Vert VerticalBar VerticalLine VerticalSeparator VerticalTilde
|
|
135
|
+
VeryThinSpace Vfr Vopf Vscr Vvdash Wcirc Wedge Wfr Wopf Wscr Xfr Xi Xopf Xscr
|
|
136
|
+
YAcy YIcy YUcy Yacute Ycirc Ycy Yfr Yopf Yscr Yuml ZHcy Zacute Zcaron Zcy Zdot
|
|
137
|
+
ZeroWidthSpace Zeta Zfr Zopf Zscr aacute abreve ac acE acd acirc acute acy
|
|
138
|
+
aelig af afr agrave alefsym aleph alpha amacr amalg amp and andand andd
|
|
139
|
+
andslope andv ang ange angle angmsd angmsdaa angmsdab angmsdac angmsdad
|
|
140
|
+
angmsdae angmsdaf angmsdag angmsdah angrt angrtvb angrtvbd angsph angst angzarr
|
|
141
|
+
aogon aopf ap apE apacir ape apid apos approx approxeq aring ascr ast asymp
|
|
142
|
+
asympeq atilde auml awconint awint bNot backcong backepsilon backprime backsim
|
|
143
|
+
backsimeq barvee barwed barwedge bbrk bbrktbrk bcong bcy bdquo becaus because
|
|
144
|
+
bemptyv bepsi bernou beta beth between bfr bigcap bigcirc bigcup bigodot
|
|
145
|
+
bigoplus bigotimes bigsqcup bigstar bigtriangledown bigtriangleup biguplus
|
|
146
|
+
bigvee bigwedge bkarow blacklozenge blacksquare blacktriangle blacktriangledown
|
|
147
|
+
blacktriangleleft blacktriangleright blank blk12 blk14 blk34 block bne bnequiv
|
|
148
|
+
bnot bopf bot bottom bowtie boxDL boxDR boxDl boxDr boxH boxHD boxHU boxHd
|
|
149
|
+
boxHu boxUL boxUR boxUl boxUr boxV boxVH boxVL boxVR boxVh boxVl boxVr boxbox
|
|
150
|
+
boxdL boxdR boxdl boxdr boxh boxhD boxhU boxhd boxhu boxminus boxplus boxtimes
|
|
151
|
+
boxuL boxuR boxul boxur boxv boxvH boxvL boxvR boxvh boxvl boxvr bprime breve
|
|
152
|
+
brvbar bscr bsemi bsim bsime bsol bsolb bsolhsub bull bullet bump bumpE bumpe
|
|
153
|
+
bumpeq cacute cap capand capbrcup capcap capcup capdot caps caret caron ccaps
|
|
154
|
+
ccaron ccedil ccirc ccups ccupssm cdot cedil cemptyv cent centerdot cfr chcy
|
|
155
|
+
check checkmark chi cir cirE circ circeq circlearrowleft circlearrowright
|
|
156
|
+
circledR circledS circledast circledcirc circleddash cire cirfnint cirmid
|
|
157
|
+
cirscir clubs clubsuit colon colone coloneq comma commat comp compfn complement
|
|
158
|
+
complexes cong congdot conint copf coprod copy copysr crarr cross cscr csub
|
|
159
|
+
csube csup csupe ctdot cudarrl cudarrr cuepr cuesc cularr cularrp cup cupbrcap
|
|
160
|
+
cupcap cupcup cupdot cupor cups curarr curarrm curlyeqprec curlyeqsucc curlyvee
|
|
161
|
+
curlywedge curren curvearrowleft curvearrowright cuvee cuwed cwconint cwint
|
|
162
|
+
cylcty dArr dHar dagger daleth darr dash dashv dbkarow dblac dcaron dcy dd
|
|
163
|
+
ddagger ddarr ddotseq deg delta demptyv dfisht dfr dharl dharr diam diamond
|
|
164
|
+
diamondsuit diams die digamma disin div divide divideontimes divonx djcy dlcorn
|
|
165
|
+
dlcrop dollar dopf dot doteq doteqdot dotminus dotplus dotsquare doublebarwedge
|
|
166
|
+
downarrow downdownarrows downharpoonleft downharpoonright drbkarow drcorn
|
|
167
|
+
drcrop dscr dscy dsol dstrok dtdot dtri dtrif duarr duhar dwangle dzcy dzigrarr
|
|
168
|
+
eDDot eDot eacute easter ecaron ecir ecirc ecolon ecy edot ee efDot efr eg
|
|
169
|
+
egrave egs egsdot el elinters ell els elsdot emacr empty emptyset emptyv emsp
|
|
170
|
+
emsp13 emsp14 eng ensp eogon eopf epar eparsl eplus epsi epsilon epsiv eqcirc
|
|
171
|
+
eqcolon eqsim eqslantgtr eqslantless equals equest equiv equivDD eqvparsl erDot
|
|
172
|
+
erarr escr esdot esim eta eth euml euro excl exist expectation exponentiale
|
|
173
|
+
fallingdotseq fcy female ffilig fflig ffllig ffr filig fjlig flat fllig fltns
|
|
174
|
+
fnof fopf forall fork forkv fpartint frac12 frac13 frac14 frac15 frac16 frac18
|
|
175
|
+
frac23 frac25 frac34 frac35 frac38 frac45 frac56 frac58 frac78 frasl frown fscr
|
|
176
|
+
gE gEl gacute gamma gammad gap gbreve gcirc gcy gdot ge gel geq geqq geqslant
|
|
177
|
+
ges gescc gesdot gesdoto gesdotol gesl gesles gfr gg ggg gimel gjcy gl glE gla
|
|
178
|
+
glj gnE gnap gnapprox gne gneq gneqq gnsim gopf grave gscr gsim gsime gsiml gt
|
|
179
|
+
gtcc gtcir gtdot gtlPar gtquest gtrapprox gtrarr gtrdot gtreqless gtreqqless
|
|
180
|
+
gtrless gtrsim gvertneqq gvnE hArr hairsp half hamilt hardcy harr harrcir harrw
|
|
181
|
+
hbar hcirc hearts heartsuit hellip hercon hfr hksearow hkswarow hoarr homtht
|
|
182
|
+
hookleftarrow hookrightarrow hopf horbar hscr hslash hstrok hybull hyphen
|
|
183
|
+
iacute ic icirc icy iecy iexcl iff ifr igrave ii iiiint iiint iinfin iiota
|
|
184
|
+
ijlig imacr image imagline imagpart imath imof imped in incare infin infintie
|
|
185
|
+
inodot int intcal integers intercal intlarhk intprod iocy iogon iopf iota iprod
|
|
186
|
+
iquest iscr isin isinE isindot isins isinsv isinv it itilde iukcy iuml jcirc
|
|
187
|
+
jcy jfr jmath jopf jscr jsercy jukcy kappa kappav kcedil kcy kfr kgreen khcy
|
|
188
|
+
kjcy kopf kscr lAarr lArr lAtail lBarr lE lEg lHar lacute laemptyv lagran
|
|
189
|
+
lambda lang langd langle lap laquo larr larrb larrbfs larrfs larrhk larrlp
|
|
190
|
+
larrpl larrsim larrtl lat latail late lates lbarr lbbrk lbrace lbrack lbrke
|
|
191
|
+
lbrksld lbrkslu lcaron lcedil lceil lcub lcy ldca ldquo ldquor ldrdhar ldrushar
|
|
192
|
+
ldsh le leftarrow leftarrowtail leftharpoondown leftharpoonup leftleftarrows
|
|
193
|
+
leftrightarrow leftrightarrows leftrightharpoons leftrightsquigarrow
|
|
194
|
+
leftthreetimes leg leq leqq leqslant les lescc lesdot lesdoto lesdotor lesg
|
|
195
|
+
lesges lessapprox lessdot lesseqgtr lesseqqgtr lessgtr lesssim lfisht lfloor
|
|
196
|
+
lfr lg lgE lhard lharu lharul lhblk ljcy ll llarr llcorner llhard lltri lmidot
|
|
197
|
+
lmoust lmoustache lnE lnap lnapprox lne lneq lneqq lnsim loang loarr lobrk
|
|
198
|
+
longleftarrow longleftrightarrow longmapsto longrightarrow looparrowleft
|
|
199
|
+
looparrowright lopar lopf loplus lotimes lowast lowbar loz lozenge lozf lpar
|
|
200
|
+
lparlt lrarr lrcorner lrhar lrhard lrm lrtri lsaquo lscr lsh lsim lsime lsimg
|
|
201
|
+
lsqb lsquo lsquor lstrok lt ltcc ltcir ltdot lthree ltimes ltlarr ltquest
|
|
202
|
+
ltrPar ltri ltrie ltrif lurdshar luruhar lvertneqq lvnE mDDot macr male malt
|
|
203
|
+
maltese map mapsto mapstodown mapstoleft mapstoup marker mcomma mcy mdash
|
|
204
|
+
measuredangle mfr mho micro mid midast midcir middot minus minusb minusd
|
|
205
|
+
minusdu mlcp mldr mnplus models mopf mp mscr mstpos mu multimap mumap nGg nGt
|
|
206
|
+
nGtv nLeftarrow nLeftrightarrow nLl nLt nLtv nRightarrow nVDash nVdash nabla
|
|
207
|
+
nacute nang nap napE napid napos napprox natur natural naturals nbsp nbump
|
|
208
|
+
nbumpe ncap ncaron ncedil ncong ncongdot ncup ncy ndash ne neArr nearhk nearr
|
|
209
|
+
nearrow nedot nequiv nesear nesim nexist nexists nfr ngE nge ngeq ngeqq
|
|
210
|
+
ngeqslant nges ngsim ngt ngtr nhArr nharr nhpar ni nis nisd niv njcy nlArr nlE
|
|
211
|
+
nlarr nldr nle nleftarrow nleftrightarrow nleq nleqq nleqslant nles nless nlsim
|
|
212
|
+
nlt nltri nltrie nmid nopf not notin notinE notindot notinva notinvb notinvc
|
|
213
|
+
notni notniva notnivb notnivc npar nparallel nparsl npart npolint npr nprcue
|
|
214
|
+
npre nprec npreceq nrArr nrarr nrarrc nrarrw nrightarrow nrtri nrtrie nsc
|
|
215
|
+
nsccue nsce nscr nshortmid nshortparallel nsim nsime nsimeq nsmid nspar nsqsube
|
|
216
|
+
nsqsupe nsub nsubE nsube nsubset nsubseteq nsubseteqq nsucc nsucceq nsup nsupE
|
|
217
|
+
nsupe nsupset nsupseteq nsupseteqq ntgl ntilde ntlg ntriangleleft
|
|
218
|
+
ntrianglelefteq ntriangleright ntrianglerighteq nu num numero numsp nvDash
|
|
219
|
+
nvHarr nvap nvdash nvge nvgt nvinfin nvlArr nvle nvlt nvltrie nvrArr nvrtrie
|
|
220
|
+
nvsim nwArr nwarhk nwarr nwarrow nwnear oS oacute oast ocir ocirc ocy odash
|
|
221
|
+
odblac odiv odot odsold oelig ofcir ofr ogon ograve ogt ohbar ohm oint olarr
|
|
222
|
+
olcir olcross oline olt omacr omega omicron omid ominus oopf opar operp oplus
|
|
223
|
+
or orarr ord order orderof ordf ordm origof oror orslope orv oscr oslash osol
|
|
224
|
+
otilde otimes otimesas ouml ovbar par para parallel parsim parsl part pcy
|
|
225
|
+
percnt period permil perp pertenk pfr phi phiv phmmat phone pi pitchfork piv
|
|
226
|
+
planck planckh plankv plus plusacir plusb pluscir plusdo plusdu pluse plusmn
|
|
227
|
+
plussim plustwo pm pointint popf pound pr prE prap prcue pre prec precapprox
|
|
228
|
+
preccurlyeq preceq precnapprox precneqq precnsim precsim prime primes prnE
|
|
229
|
+
prnap prnsim prod profalar profline profsurf prop propto prsim prurel pscr psi
|
|
230
|
+
puncsp qfr qint qopf qprime qscr quaternions quatint quest questeq quot rAarr
|
|
231
|
+
rArr rAtail rBarr rHar race racute radic raemptyv rang rangd range rangle raquo
|
|
232
|
+
rarr rarrap rarrb rarrbfs rarrc rarrfs rarrhk rarrlp rarrpl rarrsim rarrtl
|
|
233
|
+
rarrw ratail ratio rationals rbarr rbbrk rbrace rbrack rbrke rbrksld rbrkslu
|
|
234
|
+
rcaron rcedil rceil rcub rcy rdca rdldhar rdquo rdquor rdsh real realine
|
|
235
|
+
realpart reals rect reg rfisht rfloor rfr rhard rharu rharul rho rhov
|
|
236
|
+
rightarrow rightarrowtail rightharpoondown rightharpoonup rightleftarrows
|
|
237
|
+
rightleftharpoons rightrightarrows rightsquigarrow rightthreetimes ring
|
|
238
|
+
risingdotseq rlarr rlhar rlm rmoust rmoustache rnmid roang roarr robrk ropar
|
|
239
|
+
ropf roplus rotimes rpar rpargt rppolint rrarr rsaquo rscr rsh rsqb rsquo
|
|
240
|
+
rsquor rthree rtimes rtri rtrie rtrif rtriltri ruluhar rx sacute sbquo sc scE
|
|
241
|
+
scap scaron sccue sce scedil scirc scnE scnap scnsim scpolint scsim scy sdot
|
|
242
|
+
sdotb sdote seArr searhk searr searrow sect semi seswar setminus setmn sext sfr
|
|
243
|
+
sfrown sharp shchcy shcy shortmid shortparallel shy sigma sigmaf sigmav sim
|
|
244
|
+
simdot sime simeq simg simgE siml simlE simne simplus simrarr slarr
|
|
245
|
+
smallsetminus smashp smeparsl smid smile smt smte smtes softcy sol solb solbar
|
|
246
|
+
sopf spades spadesuit spar sqcap sqcaps sqcup sqcups sqsub sqsube sqsubset
|
|
247
|
+
sqsubseteq sqsup sqsupe sqsupset sqsupseteq squ square squarf squf srarr sscr
|
|
248
|
+
ssetmn ssmile sstarf star starf straightepsilon straightphi strns sub subE
|
|
249
|
+
subdot sube subedot submult subnE subne subplus subrarr subset subseteq
|
|
250
|
+
subseteqq subsetneq subsetneqq subsim subsub subsup succ succapprox succcurlyeq
|
|
251
|
+
succeq succnapprox succneqq succnsim succsim sum sung sup sup1 sup2 sup3 supE
|
|
252
|
+
supdot supdsub supe supedot suphsol suphsub suplarr supmult supnE supne supplus
|
|
253
|
+
supset supseteq supseteqq supsetneq supsetneqq supsim supsub supsup swArr
|
|
254
|
+
swarhk swarr swarrow swnwar szlig target tau tbrk tcaron tcedil tcy tdot telrec
|
|
255
|
+
tfr there4 therefore theta thetasym thetav thickapprox thicksim thinsp thkap
|
|
256
|
+
thksim thorn tilde times timesb timesbar timesd tint toea top topbot topcir
|
|
257
|
+
topf topfork tosa tprime trade triangle triangledown triangleleft
|
|
258
|
+
trianglelefteq triangleq triangleright trianglerighteq tridot trie triminus
|
|
259
|
+
triplus trisb tritime trpezium tscr tscy tshcy tstrok twixt twoheadleftarrow
|
|
260
|
+
twoheadrightarrow uArr uHar uacute uarr ubrcy ubreve ucirc ucy udarr udblac
|
|
261
|
+
udhar ufisht ufr ugrave uharl uharr uhblk ulcorn ulcorner ulcrop ultri umacr
|
|
262
|
+
uml uogon uopf uparrow updownarrow upharpoonleft upharpoonright uplus upsi
|
|
263
|
+
upsih upsilon upuparrows urcorn urcorner urcrop uring urtri uscr utdot utilde
|
|
264
|
+
utri utrif uuarr uuml uwangle vArr vBar vBarv vDash vangrt varepsilon varkappa
|
|
265
|
+
varnothing varphi varpi varpropto varr varrho varsigma varsubsetneq
|
|
266
|
+
varsubsetneqq varsupsetneq varsupsetneqq vartheta vartriangleleft
|
|
267
|
+
vartriangleright vcy vdash vee veebar veeeq vellip verbar vert vfr vltri vnsub
|
|
268
|
+
vnsup vopf vprop vrtri vscr vsubnE vsubne vsupnE vsupne vzigzag wcirc wedbar
|
|
269
|
+
wedge wedgeq weierp wfr wopf wp wr wreath wscr xcap xcirc xcup xdtri xfr xhArr
|
|
270
|
+
xharr xi xlArr xlarr xmap xnis xodot xopf xoplus xotime xrArr xrarr xscr xsqcup
|
|
271
|
+
xuplus xutri xvee xwedge yacute yacy ycirc ycy yen yfr yicy yopf yscr yucy yuml
|
|
272
|
+
zacute zcaron zcy zdot zeetrf zeta zfr zhcy zigrarr zopf zscr zwj zwnj
|
|
273
|
+
`;
|
|
274
|
+
let je = null;
|
|
275
|
+
function uo(t) {
|
|
276
|
+
return je === null && (je = new Set(co.trim().split(/\s+/))), je.has(t);
|
|
277
|
+
}
|
|
278
|
+
const k = String.prototype.indexOf, pn = /[&<>"]/, fo = /[&<>"]/g, ho = {
|
|
279
|
+
"&": "&",
|
|
280
|
+
"<": "<",
|
|
281
|
+
">": ">",
|
|
282
|
+
'"': """
|
|
283
|
+
};
|
|
284
|
+
function go(t) {
|
|
285
|
+
return ho[t];
|
|
286
|
+
}
|
|
287
|
+
function Yt(t) {
|
|
288
|
+
return pn.test(t) ? t.replace(fo, go) : t;
|
|
289
|
+
}
|
|
290
|
+
function vn(t, e, r) {
|
|
291
|
+
let o = e + 1;
|
|
292
|
+
if (o >= r) return -1;
|
|
293
|
+
let n = t.charCodeAt(o);
|
|
294
|
+
if (n === 35) {
|
|
295
|
+
o++;
|
|
296
|
+
let l = 7, a = !1;
|
|
297
|
+
o < r && (t.charCodeAt(o) | 32) === 120 && (o++, l = 6, a = !0);
|
|
298
|
+
const c = o;
|
|
299
|
+
for (; o < r && o - c < l; )
|
|
300
|
+
if (n = t.charCodeAt(o), n >= 48 && n <= 57) o++;
|
|
301
|
+
else if (a && (n | 32) >= 97 && (n | 32) <= 102) o++;
|
|
302
|
+
else break;
|
|
303
|
+
return o === c || o >= r || t.charCodeAt(o) !== 59 ? -1 : o + 1;
|
|
304
|
+
}
|
|
305
|
+
const s = o;
|
|
306
|
+
for (; o < r && o - s < 32 && (n = t.charCodeAt(o), (n | 32) >= 97 && (n | 32) <= 122 || o > s && n >= 48 && n <= 57); )
|
|
307
|
+
o++;
|
|
308
|
+
return o - s < 2 || o >= r || t.charCodeAt(o) !== 59 ? -1 : uo(t.slice(s, o)) ? o + 1 : -1;
|
|
309
|
+
}
|
|
310
|
+
function T(t) {
|
|
311
|
+
if (!pn.test(t)) return t;
|
|
312
|
+
let e = "", r = 0;
|
|
313
|
+
const o = t.length;
|
|
314
|
+
for (let n = 0; n < o; n++) {
|
|
315
|
+
const s = t.charCodeAt(n);
|
|
316
|
+
let l;
|
|
317
|
+
if (s === 38) {
|
|
318
|
+
if (vn(t, n, o) !== -1) continue;
|
|
319
|
+
l = "&";
|
|
320
|
+
} else if (s === 60) l = "<";
|
|
321
|
+
else if (s === 62) l = ">";
|
|
322
|
+
else if (s === 34) l = """;
|
|
323
|
+
else continue;
|
|
324
|
+
e += t.slice(r, n) + l, r = n + 1;
|
|
325
|
+
}
|
|
326
|
+
return r === 0 ? t : e + t.slice(r);
|
|
327
|
+
}
|
|
328
|
+
const xn = /[&<>"{}]/, _o = /[&<>"{}]/g, bo = {
|
|
329
|
+
"&": "&",
|
|
330
|
+
"<": "<",
|
|
331
|
+
">": ">",
|
|
332
|
+
'"': """,
|
|
333
|
+
"{": "{",
|
|
334
|
+
"}": "}"
|
|
335
|
+
};
|
|
336
|
+
function En(t) {
|
|
337
|
+
return bo[t];
|
|
338
|
+
}
|
|
339
|
+
function er(t) {
|
|
340
|
+
return xn.test(t) ? t.replace(_o, En) : t;
|
|
341
|
+
}
|
|
342
|
+
const mo = /[{}]/, wo = /[{}]/g;
|
|
343
|
+
function Zt(t) {
|
|
344
|
+
if (!xn.test(t)) return t;
|
|
345
|
+
const e = Yt(t);
|
|
346
|
+
return mo.test(e) ? e.replace(wo, En) : e;
|
|
347
|
+
}
|
|
348
|
+
const po = /"/g;
|
|
349
|
+
function Ht(t, e) {
|
|
350
|
+
return e ? k.call(t, '"') === -1 ? t : t.replace(po, """) : Yt(t);
|
|
351
|
+
}
|
|
352
|
+
let ye = "", $t = 0, Wt = 0, _t = -1, Y = -1, Z = -1, X = -1, ft = -1, ht = -1, St = !0, Nt = null;
|
|
353
|
+
const vo = 1024;
|
|
354
|
+
function xo(t) {
|
|
355
|
+
const e = new Uint8Array((t.size >>> 3) + 1), r = t._strings;
|
|
356
|
+
for (const o in r) {
|
|
357
|
+
const n = +o;
|
|
358
|
+
e[n >>> 3] |= 1 << (n & 7);
|
|
359
|
+
}
|
|
360
|
+
return e;
|
|
361
|
+
}
|
|
362
|
+
function _e(t) {
|
|
363
|
+
const e = t._strings.length;
|
|
364
|
+
e === 0 ? St = !1 : e > vo && (Nt = xo(t));
|
|
365
|
+
}
|
|
366
|
+
function Jt(t) {
|
|
367
|
+
ye = t, $t = t.length, Wt = 0, _t = -1, Y = -1, Z = -1, X = -1, ft = -1, ht = -1;
|
|
368
|
+
}
|
|
369
|
+
function B(t, e) {
|
|
370
|
+
const r = ye.indexOf(t, e);
|
|
371
|
+
return r === -1 ? $t : r;
|
|
372
|
+
}
|
|
373
|
+
function Eo(t) {
|
|
374
|
+
return vt(t, t.index, t.value_start, t.value_end, !1);
|
|
375
|
+
}
|
|
376
|
+
function rr(t, e) {
|
|
377
|
+
let r = 0;
|
|
378
|
+
for (let o = t[
|
|
379
|
+
e * 12 + 5
|
|
380
|
+
/* parent */
|
|
381
|
+
]; o !== 4294967295; o = t[
|
|
382
|
+
o * 12 + 5
|
|
383
|
+
/* parent */
|
|
384
|
+
])
|
|
385
|
+
(t[
|
|
386
|
+
o * 12
|
|
387
|
+
/* stride */
|
|
388
|
+
] & 255) === 14 && r++;
|
|
389
|
+
return r;
|
|
390
|
+
}
|
|
391
|
+
function yn(t, e) {
|
|
392
|
+
const r = t.length;
|
|
393
|
+
let o = "", n = 0;
|
|
394
|
+
for (; ; ) {
|
|
395
|
+
let s = n;
|
|
396
|
+
for (let a = 0; a < e; a++) {
|
|
397
|
+
for (; n < r && (t.charCodeAt(n) === 32 || t.charCodeAt(n) === 9); )
|
|
398
|
+
n++;
|
|
399
|
+
if (n >= r || t.charCodeAt(n) !== 62) {
|
|
400
|
+
n = s;
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
n++, n < r && t.charCodeAt(n) === 32 && n++, s = n;
|
|
404
|
+
}
|
|
405
|
+
let l = n;
|
|
406
|
+
for (; l < r; ) {
|
|
407
|
+
const a = t.charCodeAt(l);
|
|
408
|
+
if (a === 10) break;
|
|
409
|
+
if (a === 13) {
|
|
410
|
+
l + 1 < r && t.charCodeAt(l + 1) === 10 && l++;
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
l++;
|
|
414
|
+
}
|
|
415
|
+
if (l >= r) return o + t.slice(n);
|
|
416
|
+
o += t.slice(n, l + 1), n = l + 1;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function qe(t) {
|
|
420
|
+
const e = rr(t.words, t.index);
|
|
421
|
+
return e === 0 ? t.text() : yn(t.text(), e);
|
|
422
|
+
}
|
|
423
|
+
function Xt(t) {
|
|
424
|
+
const e = rr(t.words, t.index);
|
|
425
|
+
return e === 0 ? Lt(t) : er(yn(t.text(), e));
|
|
426
|
+
}
|
|
427
|
+
function Lt(t) {
|
|
428
|
+
return vt(t, t.index, t.value_start, t.value_end, !0);
|
|
429
|
+
}
|
|
430
|
+
function yo(t, e, r, o) {
|
|
431
|
+
return ft < e && (ft = B("{", e)), ht < e && (ht = B("}", e)), ft < o && (o = ft), ht < o && (o = ht), o >= r ? t.slice(e, r) : qo(t, e, r, o);
|
|
432
|
+
}
|
|
433
|
+
function qo(t, e, r, o) {
|
|
434
|
+
let n = "", s = e;
|
|
435
|
+
for (; o < r; ) {
|
|
436
|
+
const l = t.charCodeAt(o);
|
|
437
|
+
n += t.slice(s, o), l === 38 ? (n += "&", _t = B("&", o + 1)) : l === 60 ? (n += "<", Y = B("<", o + 1)) : l === 62 ? (n += ">", Z = B(">", o + 1)) : l === 34 ? (n += """, X = B('"', o + 1)) : l === 123 ? (n += "{", ft = B("{", o + 1)) : (n += "}", ht = B("}", o + 1)), s = o + 1, o = _t, Y < o && (o = Y), Z < o && (o = Z), X < o && (o = X), ft < o && (o = ft), ht < o && (o = ht);
|
|
438
|
+
}
|
|
439
|
+
return Wt = r, n + t.slice(s, r);
|
|
440
|
+
}
|
|
441
|
+
function vt(t, e, r, o, n) {
|
|
442
|
+
if (St) {
|
|
443
|
+
const a = Nt;
|
|
444
|
+
if (a === null || (a[e >>> 3] & 1 << (e & 7)) !== 0) {
|
|
445
|
+
const c = t.prebuilt_at(e);
|
|
446
|
+
if (c !== void 0) return n ? er(c) : T(c);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
if (r === 4294967295 || o === 4294967295 || o <= r) return "";
|
|
450
|
+
const s = t.source;
|
|
451
|
+
if (s !== ye && Jt(s), o > $t && (o = $t, o <= r))
|
|
452
|
+
return "";
|
|
453
|
+
r < Wt && Jt(s), _t < r && (_t = B("&", r)), Y < r && (Y = B("<", r)), Z < r && (Z = B(">", r)), X < r && (X = B('"', r)), Wt = r;
|
|
454
|
+
let l = _t;
|
|
455
|
+
return Y < l && (l = Y), Z < l && (l = Z), X < l && (l = X), n ? yo(s, r, o, l) : l >= o ? s.slice(r, o) : Ao(s, r, o, l);
|
|
456
|
+
}
|
|
457
|
+
function So(t, e, r, o) {
|
|
458
|
+
return o === e && o > 0 && t.charCodeAt(o - 1) === 92 ? !1 : vn(t, o, r) !== -1;
|
|
459
|
+
}
|
|
460
|
+
function Ao(t, e, r, o) {
|
|
461
|
+
let n = "", s = e;
|
|
462
|
+
for (; o < r; ) {
|
|
463
|
+
const l = t.charCodeAt(o);
|
|
464
|
+
n += t.slice(s, o), s = o + 1, l === 38 ? (_t = B("&", o + 1), So(t, e, r, o) ? s = o : n += "&") : l === 60 ? (n += "<", Y = B("<", o + 1)) : l === 62 ? (n += ">", Z = B(">", o + 1)) : (n += """, X = B('"', o + 1)), o = _t, Y < o && (o = Y), Z < o && (o = Z), X < o && (o = X);
|
|
465
|
+
}
|
|
466
|
+
return Wt = r, n + t.slice(s, r);
|
|
467
|
+
}
|
|
468
|
+
const $s = 0, Ws = 1, Js = 2, Qs = 3, Ys = 5, Zs = 6, Xs = 7, tl = 8, el = 9, rl = 10, nl = 11, ol = 12, sl = 13, ll = 14, il = 15, al = 16, cl = 17, ul = 18, fl = 19, hl = 20, dl = 21, gl = 22, _l = 23, bl = 24, ml = 25, wl = 26, pl = 27, vl = 28, xl = 29, El = 4, yl = 30, ql = 31, Sl = 32, Al = 33, Ll = 34, Tl = 35, Dl = 4294967295;
|
|
469
|
+
function Lo(t, e, r, o, n, s, l) {
|
|
470
|
+
if (r > e && o !== 4294967295) {
|
|
471
|
+
let a = t.rec;
|
|
472
|
+
const c = t.n;
|
|
473
|
+
c + 6 > a.length && (a = t.grow()), a[c] = e, a[c + 1] = r - e, a[c + 2] = o, a[c + 3] = n > o ? n - o : 0, a[c + 4] = s, a[c + 5] = l, t.n = c + 6;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function q(t, e, r, o, n, s, l) {
|
|
477
|
+
if (o !== 4294967295) {
|
|
478
|
+
let a = t.rec;
|
|
479
|
+
const c = t.n;
|
|
480
|
+
c + 6 > a.length && (a = t.grow()), a[c] = e, a[c + 1] = r - e, a[c + 2] = o, a[c + 3] = n > o ? n - o : 0, a[c + 4] = s, a[c + 5] = l, t.n = c + 6;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
function S(t, e, r, o, n, s, l) {
|
|
484
|
+
const a = s.start, c = s.value_start, u = s.value_end, f = u > c, h = s.end, b = f ? u : h;
|
|
485
|
+
if (a === 4294967295 || b === 4294967295 || !t.syntax) {
|
|
486
|
+
To(t, e, r, o, n, s, l);
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
const y = s.index, m = f ? c : a;
|
|
490
|
+
let x = t.rec;
|
|
491
|
+
const E = t.n;
|
|
492
|
+
E + 3 * 6 > x.length && (x = t.grow()), x[E] = e, x[E + 1] = n - e, x[E + 2] = a, x[E + 3] = h > a ? h - a : 0, x[E + 4] = y, x[E + 5] = l << 2, x[E + 6] = e, x[E + 7] = r - e, x[E + 8] = a, x[E + 9] = m > a ? m - a : 0, x[E + 10] = y, x[E + 11] = 14, x[E + 12] = o, x[E + 13] = n - o, x[E + 14] = b, x[E + 15] = h > b ? h - b : 0, x[E + 16] = y, x[E + 17] = 15, t.n = E + 3 * 6;
|
|
493
|
+
}
|
|
494
|
+
function To(t, e, r, o, n, s, l) {
|
|
495
|
+
const a = s.index, c = s.start, u = s.end;
|
|
496
|
+
if (q(t, e, n, c, u, a, l << 2), !t.syntax) return;
|
|
497
|
+
const f = s.value_start, h = s.value_end, b = h > f;
|
|
498
|
+
q(
|
|
499
|
+
t,
|
|
500
|
+
e,
|
|
501
|
+
r,
|
|
502
|
+
c,
|
|
503
|
+
b ? f : c,
|
|
504
|
+
a,
|
|
505
|
+
14
|
|
506
|
+
/* STRUCTURE_OPEN */
|
|
507
|
+
), q(
|
|
508
|
+
t,
|
|
509
|
+
o,
|
|
510
|
+
n,
|
|
511
|
+
b ? h : u,
|
|
512
|
+
u,
|
|
513
|
+
a,
|
|
514
|
+
15
|
|
515
|
+
/* STRUCTURE_CLOSE */
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
const Do = ["", "<h1", "<h2", "<h3", "<h4", "<h5", "<h6"], Co = ["", "<h1>", "<h2>", "<h3>", "<h4>", "<h5>", "<h6>"], Ro = ["", "</h1>", "</h2>", "</h3>", "</h4>", "</h5>", "</h6>"], nr = /* @__PURE__ */ new Set([
|
|
519
|
+
// list semantics
|
|
520
|
+
"ordered",
|
|
521
|
+
"tight",
|
|
522
|
+
"start",
|
|
523
|
+
// code fence info (transformed into class="language-X")
|
|
524
|
+
"info",
|
|
525
|
+
"info_start",
|
|
526
|
+
"info_end",
|
|
527
|
+
// raw html node internals
|
|
528
|
+
"tag",
|
|
529
|
+
"attributes",
|
|
530
|
+
"self_closing",
|
|
531
|
+
// table internals
|
|
532
|
+
"alignments",
|
|
533
|
+
"col_count",
|
|
534
|
+
"header_columns",
|
|
535
|
+
"spans",
|
|
536
|
+
// image src (handled specially with alt ordering)
|
|
537
|
+
"src"
|
|
538
|
+
]);
|
|
539
|
+
function C(t) {
|
|
540
|
+
return t == null ? "" : typeof t == "string" ? t : `${t}`;
|
|
541
|
+
}
|
|
542
|
+
const qn = /^[A-Za-z_$]/;
|
|
543
|
+
function Oo(t, e) {
|
|
544
|
+
return typeof e == "object" && e !== null && e.value === t && !qn.test(t);
|
|
545
|
+
}
|
|
546
|
+
function te(t, e) {
|
|
547
|
+
return e === t && !qn.test(t) ? " {" + t + "}" : " " + t + "={" + e + "}";
|
|
548
|
+
}
|
|
549
|
+
function D(t, e) {
|
|
550
|
+
const r = t.meta();
|
|
551
|
+
if (!r) return "";
|
|
552
|
+
let o = "";
|
|
553
|
+
for (const n in r) {
|
|
554
|
+
if (nr.has(n) || e !== void 0 && e.has(n)) continue;
|
|
555
|
+
const s = r[n];
|
|
556
|
+
s === !0 ? o += " " + n : s !== !1 && s != null && (typeof s == "object" && s.type === "expression" ? o += " " + n + "={" + C(s.value) + "}" : o += " " + n + '="' + Yt(String(s)) + '"');
|
|
557
|
+
}
|
|
558
|
+
return o;
|
|
559
|
+
}
|
|
560
|
+
let i = "";
|
|
561
|
+
function P(t, e, r, o) {
|
|
562
|
+
const n = D(t);
|
|
563
|
+
n.length !== 0 ? i = i + e + n + o : i += r;
|
|
564
|
+
}
|
|
565
|
+
let Vt = !1, ee = !1, H = null, Se = null, F = !1, I = 0, re = !1;
|
|
566
|
+
const Qt = [], or = Object.freeze([]);
|
|
567
|
+
let Ft = or, ot = "", bt = "";
|
|
568
|
+
const Bt = [], me = /* @__PURE__ */ new Set();
|
|
569
|
+
let et = -1, xt = -1;
|
|
570
|
+
const M = [];
|
|
571
|
+
let lt = "", Et = -1;
|
|
572
|
+
function sr() {
|
|
573
|
+
et = -1, xt = -1, M.length !== 0 && (M.length = 0);
|
|
574
|
+
}
|
|
575
|
+
function Fe(t) {
|
|
576
|
+
sr();
|
|
577
|
+
const e = t._n;
|
|
578
|
+
let r = e[
|
|
579
|
+
8
|
|
580
|
+
/* first_child */
|
|
581
|
+
];
|
|
582
|
+
for (; r !== 4294967295; ) {
|
|
583
|
+
const o = r * 12;
|
|
584
|
+
if (e[
|
|
585
|
+
o + 5
|
|
586
|
+
/* parent */
|
|
587
|
+
] !== 0) break;
|
|
588
|
+
const n = e[o] & 255;
|
|
589
|
+
if (n === 34) M.push(r);
|
|
590
|
+
else if (n !== 6 && n !== 33) break;
|
|
591
|
+
r = e[
|
|
592
|
+
o + 6
|
|
593
|
+
/* next */
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
if (!(M.length === 0 && !Vt)) {
|
|
597
|
+
for (; r !== 4294967295; ) {
|
|
598
|
+
const o = r * 12;
|
|
599
|
+
if (e[
|
|
600
|
+
o + 5
|
|
601
|
+
/* parent */
|
|
602
|
+
] !== 0) break;
|
|
603
|
+
if ((e[o] & 255) === 2) {
|
|
604
|
+
const n = e[
|
|
605
|
+
o + 11
|
|
606
|
+
/* meta */
|
|
607
|
+
], s = n === 0 ? void 0 : t._meta[n - 1];
|
|
608
|
+
if (s !== void 0 && s.tag === "script" && !s.self_closing && !Sn(s.attributes)) {
|
|
609
|
+
et = r;
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
r = e[
|
|
614
|
+
o + 6
|
|
615
|
+
/* next */
|
|
616
|
+
];
|
|
617
|
+
}
|
|
618
|
+
M.length !== 0 ? xt = M[0] : bt = `<script>
|
|
619
|
+
` + ot + "<\/script>";
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function No(t) {
|
|
623
|
+
sr();
|
|
624
|
+
const e = t._n;
|
|
625
|
+
let r = e[
|
|
626
|
+
8
|
|
627
|
+
/* first_child */
|
|
628
|
+
];
|
|
629
|
+
for (; r !== 4294967295; ) {
|
|
630
|
+
const o = r * 12;
|
|
631
|
+
if (e[
|
|
632
|
+
o + 5
|
|
633
|
+
/* parent */
|
|
634
|
+
] !== 0) break;
|
|
635
|
+
const n = e[o] & 255;
|
|
636
|
+
if (n === 34) M.push(r);
|
|
637
|
+
else if (n !== 6 && n !== 33) break;
|
|
638
|
+
r = e[
|
|
639
|
+
o + 6
|
|
640
|
+
/* next */
|
|
641
|
+
];
|
|
642
|
+
}
|
|
643
|
+
return r;
|
|
644
|
+
}
|
|
645
|
+
function Po(t, e) {
|
|
646
|
+
const r = t._n;
|
|
647
|
+
for (; e !== 4294967295; ) {
|
|
648
|
+
const o = e * 12;
|
|
649
|
+
if (r[
|
|
650
|
+
o + 5
|
|
651
|
+
/* parent */
|
|
652
|
+
] !== 0) break;
|
|
653
|
+
if ((r[o] & 255) === 2) {
|
|
654
|
+
const n = r[
|
|
655
|
+
o + 11
|
|
656
|
+
/* meta */
|
|
657
|
+
], s = n === 0 ? void 0 : t._meta[n - 1];
|
|
658
|
+
if (s !== void 0 && s.tag === "script" && !s.self_closing && !Sn(s.attributes)) {
|
|
659
|
+
et = e;
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
e = r[
|
|
664
|
+
o + 6
|
|
665
|
+
/* next */
|
|
666
|
+
];
|
|
667
|
+
}
|
|
668
|
+
M.length !== 0 && (xt = M[0]);
|
|
669
|
+
}
|
|
670
|
+
function Bo(t, e) {
|
|
671
|
+
Po(e, No(e));
|
|
672
|
+
let r = hn, o = !0;
|
|
673
|
+
if (et !== -1) {
|
|
674
|
+
const n = et * 12, s = t.words, l = t.slice(s[
|
|
675
|
+
n + 3
|
|
676
|
+
/* value_start */
|
|
677
|
+
], s[
|
|
678
|
+
n + 4
|
|
679
|
+
/* value_end */
|
|
680
|
+
]);
|
|
681
|
+
if (l.indexOf("$props") !== -1 && Us.test(l)) {
|
|
682
|
+
o = !1;
|
|
683
|
+
const a = Is.exec(l);
|
|
684
|
+
r = a === null ? "" : a[1];
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
ot = wn(Bt, {
|
|
688
|
+
specifier: zr,
|
|
689
|
+
local: Ze
|
|
690
|
+
}), o && (ot += "let " + hn + ` = $props();
|
|
691
|
+
`), Fr = "<" + Ze + (jr ? " {...metadata}" : "") + (r === "" ? "" : " {..." + r + "}") + ">", et === -1 && xt === -1 && (bt = `<script>
|
|
692
|
+
` + ot + "<\/script>");
|
|
693
|
+
}
|
|
694
|
+
function fe(t, e) {
|
|
695
|
+
lt = e;
|
|
696
|
+
const r = t._n;
|
|
697
|
+
let o = r[
|
|
698
|
+
8
|
|
699
|
+
/* first_child */
|
|
700
|
+
];
|
|
701
|
+
for (; o !== 4294967295; ) {
|
|
702
|
+
const n = o * 12;
|
|
703
|
+
if (r[
|
|
704
|
+
n + 5
|
|
705
|
+
/* parent */
|
|
706
|
+
] !== 0) return;
|
|
707
|
+
if ((r[n] & 255) === 2) {
|
|
708
|
+
const s = r[
|
|
709
|
+
n + 11
|
|
710
|
+
/* meta */
|
|
711
|
+
], l = s === 0 ? void 0 : t._meta[s - 1], a = l == null ? void 0 : l.attributes;
|
|
712
|
+
if (l !== void 0 && l.tag === "script" && !l.self_closing && a !== void 0 && a.src === void 0 && (a.module !== void 0 || a.context === "module")) {
|
|
713
|
+
Et = o;
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
o = r[
|
|
718
|
+
n + 6
|
|
719
|
+
/* next */
|
|
720
|
+
];
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
function he() {
|
|
724
|
+
lt = "", Et = -1;
|
|
725
|
+
}
|
|
726
|
+
function we() {
|
|
727
|
+
return Et !== -1 ? "" : `<script module>
|
|
728
|
+
` + lt + `
|
|
729
|
+
<\/script>`;
|
|
730
|
+
}
|
|
731
|
+
function Sn(t) {
|
|
732
|
+
return t !== void 0 && (t.src !== void 0 || t.module !== void 0 || t.context === "module");
|
|
733
|
+
}
|
|
734
|
+
function ne(t, e) {
|
|
735
|
+
if (e !== "script" || t.parent_kind !== 0) return !1;
|
|
736
|
+
const r = t.meta().attributes;
|
|
737
|
+
return r !== void 0 && r.src !== void 0 && t.text().trim() === "";
|
|
738
|
+
}
|
|
739
|
+
function Ae(t) {
|
|
740
|
+
let e = '<svelte:element this={"script"}';
|
|
741
|
+
const r = t.meta().attributes, o = t.end !== 4294967295;
|
|
742
|
+
for (const n in r) {
|
|
743
|
+
const s = r[n];
|
|
744
|
+
s === !0 ? e += " " + n : typeof s == "object" && s.type === "expression" ? e += te(n, C(s.value)) : e += " " + n + '="' + Ht(s, o) + '"';
|
|
745
|
+
}
|
|
746
|
+
return e + "></svelte:element>";
|
|
747
|
+
}
|
|
748
|
+
function Ut(t, e, r) {
|
|
749
|
+
const o = t.words;
|
|
750
|
+
for (let n = 0; n < M.length; n++) {
|
|
751
|
+
const s = M[n], l = s * 12, a = o[
|
|
752
|
+
l + 3
|
|
753
|
+
/* value_start */
|
|
754
|
+
], c = o[
|
|
755
|
+
l + 4
|
|
756
|
+
/* value_end */
|
|
757
|
+
], u = t.prebuilt_at(s) ?? t.slice(a, c);
|
|
758
|
+
if (e !== void 0) {
|
|
759
|
+
const f = i.length;
|
|
760
|
+
r ? K(e, f, f + u.length, a, c) : a !== 4294967295 && c > a && q(
|
|
761
|
+
e,
|
|
762
|
+
f,
|
|
763
|
+
f + u.length,
|
|
764
|
+
a,
|
|
765
|
+
c,
|
|
766
|
+
s,
|
|
767
|
+
9
|
|
768
|
+
/* SVELTE_CONTENT */
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
i = i + u + `
|
|
772
|
+
`;
|
|
773
|
+
}
|
|
774
|
+
i += ot;
|
|
775
|
+
}
|
|
776
|
+
function An(t) {
|
|
777
|
+
const e = t.words;
|
|
778
|
+
let r = "";
|
|
779
|
+
for (let o = 0; o < M.length; o++) {
|
|
780
|
+
const n = M[o], s = n * 12;
|
|
781
|
+
r = r + (t.prebuilt_at(n) ?? t.slice(e[
|
|
782
|
+
s + 3
|
|
783
|
+
/* value_start */
|
|
784
|
+
], e[
|
|
785
|
+
s + 4
|
|
786
|
+
/* value_end */
|
|
787
|
+
])) + `
|
|
788
|
+
`;
|
|
789
|
+
}
|
|
790
|
+
return r + ot;
|
|
791
|
+
}
|
|
792
|
+
const oe = /* @__PURE__ */ new Set(["href", "title"]), se = /* @__PURE__ */ new Set(["title"]);
|
|
793
|
+
function O(t, e) {
|
|
794
|
+
const r = t.words;
|
|
795
|
+
let o = r[
|
|
796
|
+
t.index * 12 + 8
|
|
797
|
+
/* first_child */
|
|
798
|
+
];
|
|
799
|
+
if (o === 4294967295) return;
|
|
800
|
+
const n = r[
|
|
801
|
+
o * 12 + 5
|
|
802
|
+
/* parent */
|
|
803
|
+
];
|
|
804
|
+
for (; ; ) {
|
|
805
|
+
const s = o * 12, l = r[s] & 255;
|
|
806
|
+
if (l === 1) {
|
|
807
|
+
const c = r[
|
|
808
|
+
s + 3
|
|
809
|
+
/* value_start */
|
|
810
|
+
], u = r[
|
|
811
|
+
s + 4
|
|
812
|
+
/* value_end */
|
|
813
|
+
], f = vt(t, o, c, u, !1);
|
|
814
|
+
if (e && c !== 4294967295 && u > c) {
|
|
815
|
+
const h = i.length;
|
|
816
|
+
q(
|
|
817
|
+
e,
|
|
818
|
+
h,
|
|
819
|
+
h + f.length,
|
|
820
|
+
c,
|
|
821
|
+
u,
|
|
822
|
+
o,
|
|
823
|
+
1
|
|
824
|
+
/* TEXT_CONTENT */
|
|
825
|
+
);
|
|
826
|
+
}
|
|
827
|
+
i += f;
|
|
828
|
+
} else l !== 6 && (t.move_to(o), lr(t, e));
|
|
829
|
+
const a = r[
|
|
830
|
+
s + 6
|
|
831
|
+
/* next */
|
|
832
|
+
];
|
|
833
|
+
if (a === 4294967295 || r[
|
|
834
|
+
a * 12 + 5
|
|
835
|
+
/* parent */
|
|
836
|
+
] !== n) break;
|
|
837
|
+
o = a;
|
|
838
|
+
}
|
|
839
|
+
t.move_to(n !== 4294967295 ? n : o);
|
|
840
|
+
}
|
|
841
|
+
function Gt(t) {
|
|
842
|
+
if (!t.goto_first_child()) return "";
|
|
843
|
+
let e = "";
|
|
844
|
+
do
|
|
845
|
+
t.kind === 1 ? e += t.text() : e += Gt(t);
|
|
846
|
+
while (t.goto_next_sibling());
|
|
847
|
+
return t.goto_parent(), e;
|
|
848
|
+
}
|
|
849
|
+
function ct(t, e, r, o) {
|
|
850
|
+
const n = i.length;
|
|
851
|
+
q(
|
|
852
|
+
t,
|
|
853
|
+
n,
|
|
854
|
+
n + r.length,
|
|
855
|
+
e.value_start,
|
|
856
|
+
e.value_end,
|
|
857
|
+
e.index,
|
|
858
|
+
o
|
|
859
|
+
);
|
|
860
|
+
}
|
|
861
|
+
function lr(t, e) {
|
|
862
|
+
var r;
|
|
863
|
+
switch (t.kind) {
|
|
864
|
+
case 0:
|
|
865
|
+
O(t, e);
|
|
866
|
+
break;
|
|
867
|
+
case 3: {
|
|
868
|
+
const o = i.length, n = t.extra, s = n >= 1 && n <= 6 ? n : 0;
|
|
869
|
+
P(t, Do[s], Co[s], ">");
|
|
870
|
+
const l = i.length;
|
|
871
|
+
O(t, e);
|
|
872
|
+
const a = i.length;
|
|
873
|
+
i += Ro[s], e && S(
|
|
874
|
+
e,
|
|
875
|
+
o,
|
|
876
|
+
l,
|
|
877
|
+
a,
|
|
878
|
+
i.length,
|
|
879
|
+
t,
|
|
880
|
+
0
|
|
881
|
+
/* TEXT */
|
|
882
|
+
);
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
case 7:
|
|
886
|
+
if (t.pending && t.parent_kind === 16)
|
|
887
|
+
O(t, e);
|
|
888
|
+
else {
|
|
889
|
+
const o = i.length;
|
|
890
|
+
P(t, "<p", "<p>", ">");
|
|
891
|
+
const n = i.length;
|
|
892
|
+
O(t, e);
|
|
893
|
+
const s = i.length;
|
|
894
|
+
i += "</p>", e && S(
|
|
895
|
+
e,
|
|
896
|
+
o,
|
|
897
|
+
n,
|
|
898
|
+
s,
|
|
899
|
+
i.length,
|
|
900
|
+
t,
|
|
901
|
+
0
|
|
902
|
+
/* TEXT */
|
|
903
|
+
);
|
|
904
|
+
}
|
|
905
|
+
break;
|
|
906
|
+
case 9: {
|
|
907
|
+
const o = i.length;
|
|
908
|
+
P(t, "<em", "<em>", ">");
|
|
909
|
+
const n = i.length;
|
|
910
|
+
O(t, e);
|
|
911
|
+
const s = i.length;
|
|
912
|
+
i += "</em>", e && S(
|
|
913
|
+
e,
|
|
914
|
+
o,
|
|
915
|
+
n,
|
|
916
|
+
s,
|
|
917
|
+
i.length,
|
|
918
|
+
t,
|
|
919
|
+
0
|
|
920
|
+
/* TEXT */
|
|
921
|
+
);
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
case 10: {
|
|
925
|
+
const o = i.length;
|
|
926
|
+
P(t, "<strong", "<strong>", ">");
|
|
927
|
+
const n = i.length;
|
|
928
|
+
O(t, e);
|
|
929
|
+
const s = i.length;
|
|
930
|
+
i += "</strong>", e && S(
|
|
931
|
+
e,
|
|
932
|
+
o,
|
|
933
|
+
n,
|
|
934
|
+
s,
|
|
935
|
+
i.length,
|
|
936
|
+
t,
|
|
937
|
+
0
|
|
938
|
+
/* TEXT */
|
|
939
|
+
);
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
case 8: {
|
|
943
|
+
if (R !== null) {
|
|
944
|
+
const a = ce(t);
|
|
945
|
+
if (a !== null) {
|
|
946
|
+
Xe(t, e, Ke(t, a), a.body, Me(a), null);
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
const o = i.length;
|
|
951
|
+
P(t, "<code", "<code>", ">");
|
|
952
|
+
const n = i.length;
|
|
953
|
+
let s = Lt(t);
|
|
954
|
+
k.call(s, `
|
|
955
|
+
`) !== -1 && (s = s.replace(/\n/g, " ")), e && ct(
|
|
956
|
+
e,
|
|
957
|
+
t,
|
|
958
|
+
s,
|
|
959
|
+
5
|
|
960
|
+
/* CODE_CONTENT */
|
|
961
|
+
), i += s;
|
|
962
|
+
const l = i.length;
|
|
963
|
+
i += "</code>", e && S(
|
|
964
|
+
e,
|
|
965
|
+
o,
|
|
966
|
+
n,
|
|
967
|
+
l,
|
|
968
|
+
i.length,
|
|
969
|
+
t,
|
|
970
|
+
1
|
|
971
|
+
/* CODE */
|
|
972
|
+
);
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
case 5: {
|
|
976
|
+
const o = Ct(t, t.meta());
|
|
977
|
+
if (R !== null) {
|
|
978
|
+
const c = ae(t, o);
|
|
979
|
+
if (c !== null) {
|
|
980
|
+
Xe(t, e, Ve(t, c), c.body, Ge(c), c.live);
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
const n = i.length;
|
|
985
|
+
o ? (i += '<pre><code class="language-' + Zt(Rt(o)), P(t, '"', '">', ">")) : P(t, "<pre><code", "<pre><code>", ">");
|
|
986
|
+
const s = i.length, l = Xt(t);
|
|
987
|
+
e && ct(
|
|
988
|
+
e,
|
|
989
|
+
t,
|
|
990
|
+
l,
|
|
991
|
+
5
|
|
992
|
+
/* CODE_CONTENT */
|
|
993
|
+
), i += l;
|
|
994
|
+
const a = i.length;
|
|
995
|
+
i += "</code></pre>", e && S(
|
|
996
|
+
e,
|
|
997
|
+
n,
|
|
998
|
+
s,
|
|
999
|
+
a,
|
|
1000
|
+
i.length,
|
|
1001
|
+
t,
|
|
1002
|
+
1
|
|
1003
|
+
/* CODE */
|
|
1004
|
+
);
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
case 14: {
|
|
1008
|
+
const o = i.length;
|
|
1009
|
+
P(t, "<blockquote", `<blockquote>
|
|
1010
|
+
`, `>
|
|
1011
|
+
`);
|
|
1012
|
+
const n = i.length;
|
|
1013
|
+
O(t, e);
|
|
1014
|
+
const s = i.length;
|
|
1015
|
+
i += `
|
|
1016
|
+
</blockquote>`, e && S(
|
|
1017
|
+
e,
|
|
1018
|
+
o,
|
|
1019
|
+
n,
|
|
1020
|
+
s,
|
|
1021
|
+
i.length,
|
|
1022
|
+
t,
|
|
1023
|
+
0
|
|
1024
|
+
/* TEXT */
|
|
1025
|
+
);
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
1028
|
+
case 12: {
|
|
1029
|
+
const o = i.length, n = t.meta();
|
|
1030
|
+
let s = "<a";
|
|
1031
|
+
n != null && n.href && (s += ' href="' + T(n.href) + '"'), n != null && n.title && (s += ' title="' + T(n.title) + '"'), i = i + s + D(t, oe) + ">";
|
|
1032
|
+
const l = i.length;
|
|
1033
|
+
O(t, e);
|
|
1034
|
+
const a = i.length;
|
|
1035
|
+
i += "</a>", e && S(
|
|
1036
|
+
e,
|
|
1037
|
+
o,
|
|
1038
|
+
l,
|
|
1039
|
+
a,
|
|
1040
|
+
i.length,
|
|
1041
|
+
t,
|
|
1042
|
+
0
|
|
1043
|
+
/* TEXT */
|
|
1044
|
+
);
|
|
1045
|
+
break;
|
|
1046
|
+
}
|
|
1047
|
+
case 13: {
|
|
1048
|
+
const o = i.length, n = t.meta();
|
|
1049
|
+
let s = "<img";
|
|
1050
|
+
n != null && n.src && (s += ' src="' + T(n.src) + '"'), s += ' alt="' + T(Gt(t)) + '"', n != null && n.title && (s += ' title="' + T(n.title) + '"'), i = i + s + D(t, se) + " />", e && q(e, o, i.length, t.start, t.end, t.index, 0);
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
case 15: {
|
|
1054
|
+
const o = i.length, n = t.meta(), s = !!(n != null && n.ordered), l = n == null ? void 0 : n.start;
|
|
1055
|
+
s && l != null && l !== 1 ? (i += '<ol start="' + String(l), P(t, '"', `">
|
|
1056
|
+
`, `>
|
|
1057
|
+
`)) : s ? P(t, "<ol", `<ol>
|
|
1058
|
+
`, `>
|
|
1059
|
+
`) : P(t, "<ul", `<ul>
|
|
1060
|
+
`, `>
|
|
1061
|
+
`);
|
|
1062
|
+
const a = i.length;
|
|
1063
|
+
O(t, e);
|
|
1064
|
+
const c = i.length;
|
|
1065
|
+
i += s ? `
|
|
1066
|
+
</ol>` : `
|
|
1067
|
+
</ul>`, e && S(
|
|
1068
|
+
e,
|
|
1069
|
+
o,
|
|
1070
|
+
a,
|
|
1071
|
+
c,
|
|
1072
|
+
i.length,
|
|
1073
|
+
t,
|
|
1074
|
+
3
|
|
1075
|
+
/* STRUCTURE */
|
|
1076
|
+
);
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
case 16: {
|
|
1080
|
+
const o = i.length;
|
|
1081
|
+
P(t, "<li", "<li>", ">");
|
|
1082
|
+
const n = i.length;
|
|
1083
|
+
O(t, e);
|
|
1084
|
+
const s = i.length;
|
|
1085
|
+
i += `</li>
|
|
1086
|
+
`, e && S(
|
|
1087
|
+
e,
|
|
1088
|
+
o,
|
|
1089
|
+
n,
|
|
1090
|
+
s,
|
|
1091
|
+
i.length,
|
|
1092
|
+
t,
|
|
1093
|
+
0
|
|
1094
|
+
/* TEXT */
|
|
1095
|
+
);
|
|
1096
|
+
break;
|
|
1097
|
+
}
|
|
1098
|
+
case 11: {
|
|
1099
|
+
const o = i.length;
|
|
1100
|
+
if (i += "<hr />", e) {
|
|
1101
|
+
const n = i.length;
|
|
1102
|
+
if (q(
|
|
1103
|
+
e,
|
|
1104
|
+
o,
|
|
1105
|
+
n,
|
|
1106
|
+
t.start,
|
|
1107
|
+
t.end,
|
|
1108
|
+
t.index,
|
|
1109
|
+
12
|
|
1110
|
+
), e.syntax) {
|
|
1111
|
+
const s = t.value_start;
|
|
1112
|
+
q(
|
|
1113
|
+
e,
|
|
1114
|
+
o,
|
|
1115
|
+
n,
|
|
1116
|
+
t.start,
|
|
1117
|
+
t.value_end > s ? s : t.start,
|
|
1118
|
+
t.index,
|
|
1119
|
+
14
|
|
1120
|
+
/* STRUCTURE_OPEN */
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
1126
|
+
case 17:
|
|
1127
|
+
i += `<br />
|
|
1128
|
+
`;
|
|
1129
|
+
break;
|
|
1130
|
+
case 18:
|
|
1131
|
+
i += `
|
|
1132
|
+
`;
|
|
1133
|
+
break;
|
|
1134
|
+
case 19: {
|
|
1135
|
+
const o = i.length;
|
|
1136
|
+
P(t, "<del", "<del>", ">");
|
|
1137
|
+
const n = i.length;
|
|
1138
|
+
O(t, e);
|
|
1139
|
+
const s = i.length;
|
|
1140
|
+
i += "</del>", e && S(
|
|
1141
|
+
e,
|
|
1142
|
+
o,
|
|
1143
|
+
n,
|
|
1144
|
+
s,
|
|
1145
|
+
i.length,
|
|
1146
|
+
t,
|
|
1147
|
+
0
|
|
1148
|
+
/* TEXT */
|
|
1149
|
+
);
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
case 20: {
|
|
1153
|
+
const o = i.length;
|
|
1154
|
+
P(t, "<sup", "<sup>", ">");
|
|
1155
|
+
const n = i.length;
|
|
1156
|
+
O(t, e);
|
|
1157
|
+
const s = i.length;
|
|
1158
|
+
i += "</sup>", e && S(
|
|
1159
|
+
e,
|
|
1160
|
+
o,
|
|
1161
|
+
n,
|
|
1162
|
+
s,
|
|
1163
|
+
i.length,
|
|
1164
|
+
t,
|
|
1165
|
+
0
|
|
1166
|
+
/* TEXT */
|
|
1167
|
+
);
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
case 21: {
|
|
1171
|
+
const o = i.length;
|
|
1172
|
+
P(t, "<sub", "<sub>", ">");
|
|
1173
|
+
const n = i.length;
|
|
1174
|
+
O(t, e);
|
|
1175
|
+
const s = i.length;
|
|
1176
|
+
i += "</sub>", e && S(
|
|
1177
|
+
e,
|
|
1178
|
+
o,
|
|
1179
|
+
n,
|
|
1180
|
+
s,
|
|
1181
|
+
i.length,
|
|
1182
|
+
t,
|
|
1183
|
+
0
|
|
1184
|
+
/* TEXT */
|
|
1185
|
+
);
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
case 2: {
|
|
1189
|
+
const o = i.length, n = t.meta(), s = n == null ? void 0 : n.tag;
|
|
1190
|
+
if (ne(t, s)) {
|
|
1191
|
+
i += Ae(t), e && q(
|
|
1192
|
+
e,
|
|
1193
|
+
o,
|
|
1194
|
+
i.length,
|
|
1195
|
+
t.start,
|
|
1196
|
+
t.end,
|
|
1197
|
+
t.index,
|
|
1198
|
+
9
|
|
1199
|
+
/* SVELTE_CONTENT */
|
|
1200
|
+
);
|
|
1201
|
+
break;
|
|
1202
|
+
}
|
|
1203
|
+
const l = !!(n != null && n.self_closing), a = l && t.end > t.start ? t.slice(t.start, t.end) : "";
|
|
1204
|
+
if (a)
|
|
1205
|
+
i += a;
|
|
1206
|
+
else {
|
|
1207
|
+
let c = "<" + C(s);
|
|
1208
|
+
const u = n == null ? void 0 : n.attributes;
|
|
1209
|
+
if (u) {
|
|
1210
|
+
const f = t.end !== 4294967295;
|
|
1211
|
+
for (const h in u) {
|
|
1212
|
+
const b = u[h];
|
|
1213
|
+
b === !0 ? c += " " + h : typeof b == "object" && b.type === "expression" ? c += te(h, C(b.value)) : c += " " + h + '="' + Ht(b, f) + '"';
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
i += l ? c + " />" : c + ">";
|
|
1217
|
+
}
|
|
1218
|
+
if (l)
|
|
1219
|
+
e && q(
|
|
1220
|
+
e,
|
|
1221
|
+
o,
|
|
1222
|
+
i.length,
|
|
1223
|
+
t.start,
|
|
1224
|
+
t.end,
|
|
1225
|
+
t.index,
|
|
1226
|
+
9
|
|
1227
|
+
/* SVELTE_CONTENT */
|
|
1228
|
+
);
|
|
1229
|
+
else {
|
|
1230
|
+
const c = i.length;
|
|
1231
|
+
if (s === "script" || s === "style") {
|
|
1232
|
+
t.index === et ? (i += `
|
|
1233
|
+
`, Ut(t, e, !1)) : t.index === Et && (i = i + `
|
|
1234
|
+
` + lt + `
|
|
1235
|
+
`);
|
|
1236
|
+
const f = t.text();
|
|
1237
|
+
e && ct(
|
|
1238
|
+
e,
|
|
1239
|
+
t,
|
|
1240
|
+
f,
|
|
1241
|
+
9
|
|
1242
|
+
/* SVELTE_CONTENT */
|
|
1243
|
+
), i += f;
|
|
1244
|
+
} else
|
|
1245
|
+
O(t, e);
|
|
1246
|
+
const u = i.length;
|
|
1247
|
+
i = i + "</" + C(s) + ">", e && S(
|
|
1248
|
+
e,
|
|
1249
|
+
o,
|
|
1250
|
+
c,
|
|
1251
|
+
u,
|
|
1252
|
+
i.length,
|
|
1253
|
+
t,
|
|
1254
|
+
0
|
|
1255
|
+
/* TEXT */
|
|
1256
|
+
);
|
|
1257
|
+
}
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
case 26: {
|
|
1261
|
+
const o = i.length;
|
|
1262
|
+
i += "<!--";
|
|
1263
|
+
const n = i.length, s = t.text();
|
|
1264
|
+
e && ct(
|
|
1265
|
+
e,
|
|
1266
|
+
t,
|
|
1267
|
+
s,
|
|
1268
|
+
1
|
|
1269
|
+
/* TEXT_CONTENT */
|
|
1270
|
+
), i += s;
|
|
1271
|
+
const l = i.length;
|
|
1272
|
+
i += "-->", e && S(
|
|
1273
|
+
e,
|
|
1274
|
+
o,
|
|
1275
|
+
n,
|
|
1276
|
+
l,
|
|
1277
|
+
i.length,
|
|
1278
|
+
t,
|
|
1279
|
+
0
|
|
1280
|
+
/* TEXT */
|
|
1281
|
+
);
|
|
1282
|
+
break;
|
|
1283
|
+
}
|
|
1284
|
+
case 4: {
|
|
1285
|
+
const o = i.length;
|
|
1286
|
+
i += "{";
|
|
1287
|
+
const n = i.length, s = t.text();
|
|
1288
|
+
e && ct(
|
|
1289
|
+
e,
|
|
1290
|
+
t,
|
|
1291
|
+
s,
|
|
1292
|
+
9
|
|
1293
|
+
/* SVELTE_CONTENT */
|
|
1294
|
+
), i += s;
|
|
1295
|
+
const l = i.length;
|
|
1296
|
+
i += "}", e && S(
|
|
1297
|
+
e,
|
|
1298
|
+
o,
|
|
1299
|
+
n,
|
|
1300
|
+
l,
|
|
1301
|
+
i.length,
|
|
1302
|
+
t,
|
|
1303
|
+
2
|
|
1304
|
+
/* SVELTE */
|
|
1305
|
+
);
|
|
1306
|
+
break;
|
|
1307
|
+
}
|
|
1308
|
+
case 27: {
|
|
1309
|
+
const o = i.length, n = t.meta(), s = n == null ? void 0 : n.tag, l = t.text();
|
|
1310
|
+
i = i + "{@" + C(s), l && (i += " ");
|
|
1311
|
+
const a = i.length;
|
|
1312
|
+
l && (e && ct(
|
|
1313
|
+
e,
|
|
1314
|
+
t,
|
|
1315
|
+
l,
|
|
1316
|
+
9
|
|
1317
|
+
/* SVELTE_CONTENT */
|
|
1318
|
+
), i += l);
|
|
1319
|
+
const c = i.length;
|
|
1320
|
+
i += "}", e && S(
|
|
1321
|
+
e,
|
|
1322
|
+
o,
|
|
1323
|
+
a,
|
|
1324
|
+
c,
|
|
1325
|
+
i.length,
|
|
1326
|
+
t,
|
|
1327
|
+
2
|
|
1328
|
+
/* SVELTE */
|
|
1329
|
+
);
|
|
1330
|
+
break;
|
|
1331
|
+
}
|
|
1332
|
+
case 28: {
|
|
1333
|
+
const o = i.length, n = t.meta(), s = C(n == null ? void 0 : n.tag);
|
|
1334
|
+
if (t.goto_first_child()) {
|
|
1335
|
+
let l = !0;
|
|
1336
|
+
do
|
|
1337
|
+
if (t.kind === 29) {
|
|
1338
|
+
const a = t.text();
|
|
1339
|
+
l ? (i = i + "{#" + s, l = !1) : i = i + "{:" + C((r = t.meta()) == null ? void 0 : r.tag), a && (i += " ", e && ct(
|
|
1340
|
+
e,
|
|
1341
|
+
t,
|
|
1342
|
+
a,
|
|
1343
|
+
9
|
|
1344
|
+
/* SVELTE_CONTENT */
|
|
1345
|
+
), i += a), i += `}
|
|
1346
|
+
`, O(t, e);
|
|
1347
|
+
} else t.kind !== 6 && lr(t, e);
|
|
1348
|
+
while (t.goto_next_sibling());
|
|
1349
|
+
t.goto_parent();
|
|
1350
|
+
}
|
|
1351
|
+
i = i + "{/" + s + "}", e && q(
|
|
1352
|
+
e,
|
|
1353
|
+
o,
|
|
1354
|
+
i.length,
|
|
1355
|
+
t.start,
|
|
1356
|
+
t.end,
|
|
1357
|
+
t.index,
|
|
1358
|
+
8
|
|
1359
|
+
/* SVELTE_NODE */
|
|
1360
|
+
);
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
case 22: {
|
|
1364
|
+
const o = i.length;
|
|
1365
|
+
P(t, "<table", `<table>
|
|
1366
|
+
`, `>
|
|
1367
|
+
`);
|
|
1368
|
+
const n = i.length;
|
|
1369
|
+
Uo(t, e);
|
|
1370
|
+
const s = i.length;
|
|
1371
|
+
i += `
|
|
1372
|
+
</table>`, e && S(
|
|
1373
|
+
e,
|
|
1374
|
+
o,
|
|
1375
|
+
n,
|
|
1376
|
+
s,
|
|
1377
|
+
i.length,
|
|
1378
|
+
t,
|
|
1379
|
+
3
|
|
1380
|
+
/* STRUCTURE */
|
|
1381
|
+
);
|
|
1382
|
+
break;
|
|
1383
|
+
}
|
|
1384
|
+
case 6:
|
|
1385
|
+
break;
|
|
1386
|
+
case 34:
|
|
1387
|
+
t.index === xt && (i += `<script>
|
|
1388
|
+
`, Ut(t, e, !1), i += "<\/script>");
|
|
1389
|
+
break;
|
|
1390
|
+
case 33:
|
|
1391
|
+
lt !== "" && (i += we());
|
|
1392
|
+
break;
|
|
1393
|
+
default:
|
|
1394
|
+
t.kind !== 35 && O(t, e);
|
|
1395
|
+
break;
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
function Uo(t, e) {
|
|
1399
|
+
const r = t.meta(), o = (r == null ? void 0 : r.alignments) ?? [], n = Mt(r, o);
|
|
1400
|
+
let s = !1;
|
|
1401
|
+
if (t.goto_first_child()) {
|
|
1402
|
+
do
|
|
1403
|
+
t.kind === 23 ? (i += `<thead>
|
|
1404
|
+
<tr>
|
|
1405
|
+
`, n ? Wr(t, "th", o, 0, Kt, e) : Jr(t, "th", o, e), i += `</tr>
|
|
1406
|
+
</thead>
|
|
1407
|
+
`) : t.kind === 24 && (s || (i += `<tbody>
|
|
1408
|
+
`, s = !0), i += `<tr>
|
|
1409
|
+
`, n ? Wr(t, "td", o, Tt, Dt, e) : Jr(t, "td", o, e), i += `</tr>
|
|
1410
|
+
`);
|
|
1411
|
+
while (t.goto_next_sibling());
|
|
1412
|
+
t.goto_parent(), s && (i += "</tbody>");
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
let Tt = 0, Dt = 0, Kt = 0, Ln = !1;
|
|
1416
|
+
function Mt(t, e) {
|
|
1417
|
+
if (t === void 0) return !1;
|
|
1418
|
+
const r = t.header_columns, o = t.spans === !0;
|
|
1419
|
+
if (r === void 0 && !o) return !1;
|
|
1420
|
+
const n = t.col_count ?? e.length;
|
|
1421
|
+
return Kt = n, Tt = r === void 0 ? 0 : r[0], Dt = r === void 0 ? n : n - r[1], Ln = o, !0;
|
|
1422
|
+
}
|
|
1423
|
+
function le(t, e, r) {
|
|
1424
|
+
const o = r[e];
|
|
1425
|
+
let n = o && o !== "none" ? ' align="' + o + '"' : "";
|
|
1426
|
+
if (Ln) {
|
|
1427
|
+
const s = t.meta();
|
|
1428
|
+
s !== void 0 && (s.colspan !== void 0 && (n += ' colspan="' + s.colspan + '"'), s.rowspan !== void 0 && (n += ' rowspan="' + s.rowspan + '"'));
|
|
1429
|
+
}
|
|
1430
|
+
return n;
|
|
1431
|
+
}
|
|
1432
|
+
function Wr(t, e, r, o, n, s) {
|
|
1433
|
+
if (t.goto_first_child()) {
|
|
1434
|
+
do
|
|
1435
|
+
if (t.kind === 25) {
|
|
1436
|
+
const l = t.extra, a = l < o || l >= n, c = le(t, l, r);
|
|
1437
|
+
i += a ? '<th scope="row"' + c + ">" : "<" + e + c + ">", O(t, s), i += a || e === "th" ? `</th>
|
|
1438
|
+
` : `</td>
|
|
1439
|
+
`;
|
|
1440
|
+
}
|
|
1441
|
+
while (t.goto_next_sibling());
|
|
1442
|
+
t.goto_parent();
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
function Tn(t) {
|
|
1446
|
+
return [
|
|
1447
|
+
`<${t}>`,
|
|
1448
|
+
`<${t} align="left">`,
|
|
1449
|
+
`<${t} align="center">`,
|
|
1450
|
+
`<${t} align="right">`
|
|
1451
|
+
];
|
|
1452
|
+
}
|
|
1453
|
+
const Io = Tn("th"), Ho = Tn("td");
|
|
1454
|
+
function Jr(t, e, r, o) {
|
|
1455
|
+
const n = e === "th" ? Io : Ho, s = e === "th" ? `</th>
|
|
1456
|
+
` : `</td>
|
|
1457
|
+
`;
|
|
1458
|
+
let l = 0;
|
|
1459
|
+
if (t.goto_first_child()) {
|
|
1460
|
+
do
|
|
1461
|
+
if (t.kind === 25) {
|
|
1462
|
+
const a = r[l];
|
|
1463
|
+
a === "left" ? i += n[1] : a === "center" ? i += n[2] : a === "right" ? i += n[3] : a && a !== "none" ? i += `<${e} align="${a}">` : i += n[0], O(t, o), i += s, l++;
|
|
1464
|
+
}
|
|
1465
|
+
while (t.goto_next_sibling());
|
|
1466
|
+
t.goto_parent();
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
const _ = [""], It = /* @__PURE__ */ new Map(), w = new Uint16Array(1024);
|
|
1470
|
+
function g(t) {
|
|
1471
|
+
let e = It.get(t);
|
|
1472
|
+
return e === void 0 && (e = _.length, _.push(t), It.set(t, e), w[e] = t.length), e;
|
|
1473
|
+
}
|
|
1474
|
+
const At = g(" "), Dn = g('="'), z = g('"'), Cn = g("={"), G = g("}"), L = g(">"), $ = g(`>
|
|
1475
|
+
`), ir = g('">'), ar = g(`">
|
|
1476
|
+
`), cr = g(`
|
|
1477
|
+
`), Qr = g("<"), ur = g("<code"), fr = g("<code>"), pe = g("</code>"), Vo = g('<pre><code class="language-'), hr = g("<pre><code"), dr = g("<pre><code>"), ve = g("</code></pre>"), Go = g("<a"), Ko = g(' href="'), Rn = g(' title="'), gr = g("</a>"), Mo = g("<img"), zo = g(' src="'), jo = g(' alt="'), it = g(" />"), Fo = g('<ol start="'), _r = g("<ol"), br = g(`<ol>
|
|
1478
|
+
`), mr = g(`
|
|
1479
|
+
</ol>`), wr = g("<ul"), pr = g(`<ul>
|
|
1480
|
+
`), vr = g(`
|
|
1481
|
+
</ul>`), xr = g("<hr />"), Er = g(`<br />
|
|
1482
|
+
`), ko = g("</"), yr = g("<!--"), xe = g("-->"), qr = g("{"), $o = g("{@"), Wo = g("{#"), Jo = g("{:"), Qo = g("{/"), Sr = g(`}
|
|
1483
|
+
`), Ar = g("<table"), Lr = g(`<table>
|
|
1484
|
+
`), Tr = g(`
|
|
1485
|
+
</table>`), Dr = g(`<thead>
|
|
1486
|
+
<tr>
|
|
1487
|
+
`), Cr = g(`</tr>
|
|
1488
|
+
</thead>
|
|
1489
|
+
`), Rr = g(`<tbody>
|
|
1490
|
+
`), Or = g("</tbody>"), Nr = g(`<tr>
|
|
1491
|
+
`), Pr = g(`</tr>
|
|
1492
|
+
`), zt = g(`</th>
|
|
1493
|
+
`), jt = g(`</td>
|
|
1494
|
+
`);
|
|
1495
|
+
function On(t) {
|
|
1496
|
+
return Uint8Array.of(
|
|
1497
|
+
g(`<${t}>`),
|
|
1498
|
+
g(`<${t} align="left">`),
|
|
1499
|
+
g(`<${t} align="center">`),
|
|
1500
|
+
g(`<${t} align="right">`)
|
|
1501
|
+
);
|
|
1502
|
+
}
|
|
1503
|
+
const Br = On("th"), Ur = On("td"), Le = 48, pt = 40, Te = new Uint8Array(Le), De = new Uint8Array(Le), Ce = new Uint8Array(Le), Re = new Uint8Array(Le);
|
|
1504
|
+
function rt(t, e, r, o, n) {
|
|
1505
|
+
Te[t] = g(e), De[t] = g(r), Ce[t] = g(o), Re[t] = g(n);
|
|
1506
|
+
}
|
|
1507
|
+
rt(7, "<p", "<p>", ">", "</p>");
|
|
1508
|
+
rt(9, "<em", "<em>", ">", "</em>");
|
|
1509
|
+
rt(10, "<strong", "<strong>", ">", "</strong>");
|
|
1510
|
+
rt(19, "<del", "<del>", ">", "</del>");
|
|
1511
|
+
rt(20, "<sup", "<sup>", ">", "</sup>");
|
|
1512
|
+
rt(21, "<sub", "<sub>", ">", "</sub>");
|
|
1513
|
+
rt(16, "<li", "<li>", ">", `</li>
|
|
1514
|
+
`);
|
|
1515
|
+
rt(
|
|
1516
|
+
14,
|
|
1517
|
+
"<blockquote",
|
|
1518
|
+
`<blockquote>
|
|
1519
|
+
`,
|
|
1520
|
+
`>
|
|
1521
|
+
`,
|
|
1522
|
+
`
|
|
1523
|
+
</blockquote>`
|
|
1524
|
+
);
|
|
1525
|
+
rt(pt, "", "", ">", "");
|
|
1526
|
+
for (let t = 1; t <= 6; t++)
|
|
1527
|
+
rt(
|
|
1528
|
+
pt + t,
|
|
1529
|
+
`<h${t}`,
|
|
1530
|
+
`<h${t}>`,
|
|
1531
|
+
">",
|
|
1532
|
+
`</h${t}>`
|
|
1533
|
+
);
|
|
1534
|
+
const Yo = _.length, Oe = 1024, Nn = 128;
|
|
1535
|
+
if (Yo > 128) throw new Error("too many static literals");
|
|
1536
|
+
if (w.length < Oe)
|
|
1537
|
+
throw new Error("FOLD_LEN smaller than the fold table");
|
|
1538
|
+
const Ne = new Uint16Array(Oe << 7);
|
|
1539
|
+
let st = "";
|
|
1540
|
+
const Je = new Uint16Array(1);
|
|
1541
|
+
function d(t, e) {
|
|
1542
|
+
if (t === 0) return e;
|
|
1543
|
+
const r = Ne[t << 7 | e];
|
|
1544
|
+
return r !== 0 ? r : Zo(t, e);
|
|
1545
|
+
}
|
|
1546
|
+
function v(t, e) {
|
|
1547
|
+
return t !== 0 && (st += _[t]), st += e, 0;
|
|
1548
|
+
}
|
|
1549
|
+
function Zo(t, e) {
|
|
1550
|
+
const r = _[t], o = _[e];
|
|
1551
|
+
if (r.length + o.length > Nn || _.length >= Oe)
|
|
1552
|
+
return st += r, e;
|
|
1553
|
+
const n = Object.keys({ [r + o]: 0 })[0];
|
|
1554
|
+
let s = It.get(n);
|
|
1555
|
+
return s === void 0 && (s = _.length, _.push(n), It.set(n, s), w[s] = n.length), Ne[t << 7 | e] = s, s;
|
|
1556
|
+
}
|
|
1557
|
+
function Pn(t) {
|
|
1558
|
+
for (const e in t) {
|
|
1559
|
+
if (nr.has(e)) continue;
|
|
1560
|
+
const r = t[e];
|
|
1561
|
+
if (r !== !1 && r != null) return !0;
|
|
1562
|
+
}
|
|
1563
|
+
return !1;
|
|
1564
|
+
}
|
|
1565
|
+
function Ir(t, e, r) {
|
|
1566
|
+
if (!t) return e;
|
|
1567
|
+
for (const o in t) {
|
|
1568
|
+
if (nr.has(o) || r !== void 0 && r.has(o)) continue;
|
|
1569
|
+
const n = t[o];
|
|
1570
|
+
n === !0 ? (e = d(e, At), e = v(e, o)) : n !== !1 && n != null && (e = d(e, At), e = v(e, o), typeof n == "object" && n.type === "expression" ? (e = d(e, Cn), e = v(e, n.value), e = d(e, G)) : (e = d(e, Dn), e = v(e, Ps(String(n))), e = d(e, z)));
|
|
1571
|
+
}
|
|
1572
|
+
return e;
|
|
1573
|
+
}
|
|
1574
|
+
function mt(t, e, r, o, n) {
|
|
1575
|
+
const s = t.meta();
|
|
1576
|
+
return !s || !Pn(s) ? d(e, o) : (e = d(e, r), e = Ir(s, e), d(e, n));
|
|
1577
|
+
}
|
|
1578
|
+
function tt(t, e) {
|
|
1579
|
+
const r = t.words;
|
|
1580
|
+
let o = r[
|
|
1581
|
+
t.index * 12 + 8
|
|
1582
|
+
/* first_child */
|
|
1583
|
+
];
|
|
1584
|
+
if (o === 4294967295) return e;
|
|
1585
|
+
const n = r[
|
|
1586
|
+
o * 12 + 5
|
|
1587
|
+
/* parent */
|
|
1588
|
+
];
|
|
1589
|
+
for (; ; ) {
|
|
1590
|
+
const s = o * 12, l = r[s] & 255;
|
|
1591
|
+
let a = r[
|
|
1592
|
+
s + 6
|
|
1593
|
+
/* next */
|
|
1594
|
+
];
|
|
1595
|
+
if (l === 1) {
|
|
1596
|
+
const c = o;
|
|
1597
|
+
let u = r[
|
|
1598
|
+
s + 4
|
|
1599
|
+
/* value_end */
|
|
1600
|
+
];
|
|
1601
|
+
if (a !== 4294967295 && !St) {
|
|
1602
|
+
const f = r[
|
|
1603
|
+
a * 12
|
|
1604
|
+
/* stride */
|
|
1605
|
+
] & 255;
|
|
1606
|
+
if (f === 1 || f === 18) {
|
|
1607
|
+
o = Xo(r, o, n, t.source);
|
|
1608
|
+
const h = o * 12;
|
|
1609
|
+
u = r[
|
|
1610
|
+
h + 4
|
|
1611
|
+
/* value_end */
|
|
1612
|
+
], a = r[
|
|
1613
|
+
h + 6
|
|
1614
|
+
/* next */
|
|
1615
|
+
];
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
e = v(
|
|
1619
|
+
e,
|
|
1620
|
+
vt(t, c, r[
|
|
1621
|
+
s + 3
|
|
1622
|
+
/* value_start */
|
|
1623
|
+
], u, !1)
|
|
1624
|
+
);
|
|
1625
|
+
} else l !== 6 && (t.move_to(o), e = Pe(t, e));
|
|
1626
|
+
if (a === 4294967295 || r[
|
|
1627
|
+
a * 12 + 5
|
|
1628
|
+
/* parent */
|
|
1629
|
+
] !== n) break;
|
|
1630
|
+
o = a;
|
|
1631
|
+
}
|
|
1632
|
+
return t.move_to(n !== 4294967295 ? n : o), e;
|
|
1633
|
+
}
|
|
1634
|
+
function Xo(t, e, r, o) {
|
|
1635
|
+
let n = e, s = e * 12, l = t[
|
|
1636
|
+
s + 4
|
|
1637
|
+
/* value_end */
|
|
1638
|
+
];
|
|
1639
|
+
if (l === 4294967295 || l < t[
|
|
1640
|
+
s + 3
|
|
1641
|
+
/* value_start */
|
|
1642
|
+
]) return e;
|
|
1643
|
+
for (; ; ) {
|
|
1644
|
+
let a = t[
|
|
1645
|
+
s + 6
|
|
1646
|
+
/* next */
|
|
1647
|
+
];
|
|
1648
|
+
if (a === 4294967295) return n;
|
|
1649
|
+
let c = a * 12;
|
|
1650
|
+
if (t[
|
|
1651
|
+
c + 5
|
|
1652
|
+
/* parent */
|
|
1653
|
+
] !== r) return n;
|
|
1654
|
+
let u = t[c] & 255;
|
|
1655
|
+
if (u === 18) {
|
|
1656
|
+
const h = t[
|
|
1657
|
+
c + 1
|
|
1658
|
+
/* start */
|
|
1659
|
+
];
|
|
1660
|
+
if (h !== l || t[
|
|
1661
|
+
c + 2
|
|
1662
|
+
/* end */
|
|
1663
|
+
] !== h + 1 || o.charCodeAt(h) !== 10 || (a = t[
|
|
1664
|
+
c + 6
|
|
1665
|
+
/* next */
|
|
1666
|
+
], a === 4294967295) || (c = a * 12, t[
|
|
1667
|
+
c + 5
|
|
1668
|
+
/* parent */
|
|
1669
|
+
] !== r) || (u = t[c] & 255, u !== 1 || t[
|
|
1670
|
+
c + 3
|
|
1671
|
+
/* value_start */
|
|
1672
|
+
] !== h + 1)) return n;
|
|
1673
|
+
} else if (u !== 1 || t[
|
|
1674
|
+
c + 3
|
|
1675
|
+
/* value_start */
|
|
1676
|
+
] !== l)
|
|
1677
|
+
return n;
|
|
1678
|
+
const f = t[
|
|
1679
|
+
c + 4
|
|
1680
|
+
/* value_end */
|
|
1681
|
+
];
|
|
1682
|
+
if (f === 4294967295 || f < t[
|
|
1683
|
+
c + 3
|
|
1684
|
+
/* value_start */
|
|
1685
|
+
]) return n;
|
|
1686
|
+
n = a, s = c, l = f;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
function Pe(t, e) {
|
|
1690
|
+
if (Vt) {
|
|
1691
|
+
const o = Hr(t);
|
|
1692
|
+
if (o !== null) return Gr(t, void 0, e, o);
|
|
1693
|
+
}
|
|
1694
|
+
let r = t.kind;
|
|
1695
|
+
switch (r) {
|
|
1696
|
+
case 0:
|
|
1697
|
+
return tt(t, e);
|
|
1698
|
+
case 7:
|
|
1699
|
+
if (t.pending && t.parent_kind === 16)
|
|
1700
|
+
return tt(t, e);
|
|
1701
|
+
// falls through
|
|
1702
|
+
case 3:
|
|
1703
|
+
case 9:
|
|
1704
|
+
case 10:
|
|
1705
|
+
case 14:
|
|
1706
|
+
case 16:
|
|
1707
|
+
case 19:
|
|
1708
|
+
case 20:
|
|
1709
|
+
case 21: {
|
|
1710
|
+
if (r === 3) {
|
|
1711
|
+
const o = t.extra;
|
|
1712
|
+
r = o >= 1 && o <= 6 ? pt + o : pt;
|
|
1713
|
+
}
|
|
1714
|
+
return e = mt(t, e, Te[r], De[r], Ce[r]), e = tt(t, e), d(e, Re[r]);
|
|
1715
|
+
}
|
|
1716
|
+
case 8: {
|
|
1717
|
+
if (R !== null) {
|
|
1718
|
+
const n = ce(t);
|
|
1719
|
+
if (n !== null)
|
|
1720
|
+
return Fn(e, Ke(t, n), n.body, Me(n));
|
|
1721
|
+
}
|
|
1722
|
+
e = mt(t, e, ur, fr, L);
|
|
1723
|
+
const o = Lt(t);
|
|
1724
|
+
return e = v(
|
|
1725
|
+
e,
|
|
1726
|
+
o.indexOf(`
|
|
1727
|
+
`) === -1 ? o : o.replace(/\n/g, " ")
|
|
1728
|
+
), d(e, pe);
|
|
1729
|
+
}
|
|
1730
|
+
case 5:
|
|
1731
|
+
return ts(t, e);
|
|
1732
|
+
case 12:
|
|
1733
|
+
return es(t, e);
|
|
1734
|
+
case 13:
|
|
1735
|
+
return rs(t, e);
|
|
1736
|
+
case 15:
|
|
1737
|
+
return ns(t, e);
|
|
1738
|
+
case 11:
|
|
1739
|
+
return d(e, xr);
|
|
1740
|
+
case 17:
|
|
1741
|
+
return d(e, Er);
|
|
1742
|
+
case 18:
|
|
1743
|
+
return d(e, cr);
|
|
1744
|
+
case 2:
|
|
1745
|
+
return os(t, e);
|
|
1746
|
+
case 26:
|
|
1747
|
+
return e = d(e, yr), e = v(e, t.text()), d(e, xe);
|
|
1748
|
+
case 4:
|
|
1749
|
+
return e = d(e, qr), e = v(e, t.text()), d(e, G);
|
|
1750
|
+
case 27:
|
|
1751
|
+
return ss(t, e);
|
|
1752
|
+
case 28:
|
|
1753
|
+
return ls(t, e);
|
|
1754
|
+
case 22:
|
|
1755
|
+
return e = mt(t, e, Ar, Lr, $), e = is(t, e), d(e, Tr);
|
|
1756
|
+
case 6:
|
|
1757
|
+
return e;
|
|
1758
|
+
// only a root child renders alone, its parent renders text in fold_children
|
|
1759
|
+
case 1:
|
|
1760
|
+
return v(
|
|
1761
|
+
e,
|
|
1762
|
+
vt(t, t.index, t.value_start, t.value_end, !1)
|
|
1763
|
+
);
|
|
1764
|
+
case 34:
|
|
1765
|
+
return t.index !== xt ? e : v(e, `<script>
|
|
1766
|
+
` + An(t) + "<\/script>");
|
|
1767
|
+
case 33:
|
|
1768
|
+
return lt === "" ? e : v(e, we());
|
|
1769
|
+
default:
|
|
1770
|
+
return t.kind === 35 ? e : (F && Kr(t), tt(t, e));
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
function ts(t, e) {
|
|
1774
|
+
const r = Ct(t, t.meta());
|
|
1775
|
+
if (R !== null) {
|
|
1776
|
+
const o = ae(t, r);
|
|
1777
|
+
if (o !== null) return Fn(e, Ve(t, o), o.body, Ge(o));
|
|
1778
|
+
}
|
|
1779
|
+
return r ? (e = d(e, Vo), e = v(e, Zt(Rt(r))), e = mt(t, e, z, ir, L)) : e = mt(t, e, hr, dr, L), e = v(e, Xt(t)), d(e, ve);
|
|
1780
|
+
}
|
|
1781
|
+
function es(t, e) {
|
|
1782
|
+
const r = t.meta();
|
|
1783
|
+
return e = d(e, Go), r != null && r.href && (e = d(e, Ko), e = v(e, T(r.href)), e = d(e, z)), r != null && r.title && (e = d(e, Rn), e = v(e, T(r.title)), e = d(e, z)), e = Ir(r, e, oe), e = d(e, L), e = tt(t, e), d(e, gr);
|
|
1784
|
+
}
|
|
1785
|
+
function rs(t, e) {
|
|
1786
|
+
const r = t.meta();
|
|
1787
|
+
return e = d(e, Mo), r != null && r.src && (e = d(e, zo), e = v(e, T(r.src)), e = d(e, z)), e = d(e, jo), e = v(e, T(Gt(t))), e = d(e, z), r != null && r.title && (e = d(e, Rn), e = v(e, T(r.title)), e = d(e, z)), e = Ir(r, e, se), d(e, it);
|
|
1788
|
+
}
|
|
1789
|
+
function ns(t, e) {
|
|
1790
|
+
const r = t.meta(), o = !!(r != null && r.ordered), n = r == null ? void 0 : r.start;
|
|
1791
|
+
return o && n != null && n !== 1 ? (e = d(e, Fo), e = v(e, String(n)), e = mt(t, e, z, ar, $)) : o ? e = mt(t, e, _r, br, $) : e = mt(t, e, wr, pr, $), e = tt(t, e), d(e, o ? mr : vr);
|
|
1792
|
+
}
|
|
1793
|
+
function Yr(t, e, r) {
|
|
1794
|
+
for (const o in t) {
|
|
1795
|
+
const n = t[o];
|
|
1796
|
+
if (Oo(o, n)) {
|
|
1797
|
+
r = v(r, " {" + o + "}");
|
|
1798
|
+
continue;
|
|
1799
|
+
}
|
|
1800
|
+
r = d(r, At), r = v(r, o), n !== !0 && (typeof n == "object" && n.type === "expression" ? (r = d(r, Cn), r = v(r, n.value), r = d(r, G)) : (r = d(r, Dn), r = v(r, Ht(n, e)), r = d(r, z)));
|
|
1801
|
+
}
|
|
1802
|
+
return r;
|
|
1803
|
+
}
|
|
1804
|
+
function os(t, e) {
|
|
1805
|
+
const r = t.meta(), o = r == null ? void 0 : r.tag;
|
|
1806
|
+
if (ne(t, o)) return v(e, Ae(t));
|
|
1807
|
+
const n = r == null ? void 0 : r.attributes;
|
|
1808
|
+
if (r != null && r.self_closing) {
|
|
1809
|
+
const s = t.end > t.start ? t.slice(t.start, t.end) : "";
|
|
1810
|
+
return s ? v(e, s) : (e = d(e, Qr), e = v(e, o), n && (e = Yr(n, t.end !== 4294967295, e)), d(e, it));
|
|
1811
|
+
}
|
|
1812
|
+
return e = d(e, Qr), e = v(e, o), n && (e = Yr(n, t.end !== 4294967295, e)), e = d(e, L), o === "script" || o === "style" ? (t.index === et ? e = v(e, `
|
|
1813
|
+
` + An(t)) : t.index === Et && (e = v(e, `
|
|
1814
|
+
` + lt + `
|
|
1815
|
+
`)), e = v(e, t.text())) : e = tt(t, e), e = d(e, ko), e = v(e, o), d(e, L);
|
|
1816
|
+
}
|
|
1817
|
+
function ss(t, e) {
|
|
1818
|
+
const r = t.meta(), o = r == null ? void 0 : r.tag, n = t.text();
|
|
1819
|
+
return e = d(e, $o), e = v(e, o), n && (e = d(e, At), e = v(e, n)), d(e, G);
|
|
1820
|
+
}
|
|
1821
|
+
function ls(t, e) {
|
|
1822
|
+
const r = t.meta(), o = r == null ? void 0 : r.tag;
|
|
1823
|
+
if (t.goto_first_child()) {
|
|
1824
|
+
let n = !0;
|
|
1825
|
+
do
|
|
1826
|
+
if (t.kind === 29) {
|
|
1827
|
+
const s = t.text();
|
|
1828
|
+
if (n)
|
|
1829
|
+
e = d(e, Wo), e = v(e, o), n = !1;
|
|
1830
|
+
else {
|
|
1831
|
+
const l = t.meta();
|
|
1832
|
+
e = d(e, Jo), e = v(e, l == null ? void 0 : l.tag);
|
|
1833
|
+
}
|
|
1834
|
+
s && (e = d(e, At), e = v(e, s)), e = d(e, Sr), e = tt(t, e);
|
|
1835
|
+
} else t.kind !== 6 && (e = Pe(t, e));
|
|
1836
|
+
while (t.goto_next_sibling());
|
|
1837
|
+
t.goto_parent();
|
|
1838
|
+
}
|
|
1839
|
+
return e = d(e, Qo), e = v(e, o), d(e, G);
|
|
1840
|
+
}
|
|
1841
|
+
function is(t, e) {
|
|
1842
|
+
if (ee) return He(t, void 0, e);
|
|
1843
|
+
const r = t.meta(), o = (r == null ? void 0 : r.alignments) ?? [], n = Mt(r, o);
|
|
1844
|
+
let s = !1;
|
|
1845
|
+
if (!t.goto_first_child()) return e;
|
|
1846
|
+
do
|
|
1847
|
+
t.kind === 23 ? (e = d(e, Dr), e = n ? Xr(t, "th", o, 0, Kt, e) : Zr(t, Br, zt, "th", o, e), e = d(e, Cr)) : t.kind === 24 && (s || (e = d(e, Rr), s = !0), e = d(e, Nr), e = n ? Xr(t, "td", o, Tt, Dt, e) : Zr(t, Ur, jt, "td", o, e), e = d(e, Pr));
|
|
1848
|
+
while (t.goto_next_sibling());
|
|
1849
|
+
return t.goto_parent(), s && (e = d(e, Or)), e;
|
|
1850
|
+
}
|
|
1851
|
+
function Zr(t, e, r, o, n, s) {
|
|
1852
|
+
let l = 0;
|
|
1853
|
+
if (!t.goto_first_child()) return s;
|
|
1854
|
+
do
|
|
1855
|
+
if (t.kind === 25) {
|
|
1856
|
+
const a = n[l];
|
|
1857
|
+
a === "left" ? s = d(s, e[1]) : a === "center" ? s = d(s, e[2]) : a === "right" ? s = d(s, e[3]) : a && a !== "none" ? s = v(s, `<${o} align="${a}">`) : s = d(s, e[0]), s = tt(t, s), s = d(s, r), l++;
|
|
1858
|
+
}
|
|
1859
|
+
while (t.goto_next_sibling());
|
|
1860
|
+
return t.goto_parent(), s;
|
|
1861
|
+
}
|
|
1862
|
+
function Xr(t, e, r, o, n, s) {
|
|
1863
|
+
if (!t.goto_first_child()) return s;
|
|
1864
|
+
do
|
|
1865
|
+
if (t.kind === 25) {
|
|
1866
|
+
const l = t.extra, a = l < o || l >= n, c = le(t, l, r);
|
|
1867
|
+
s = v(s, a ? '<th scope="row"' + c + ">" : "<" + e + c + ">"), s = tt(t, s), s = d(s, a || e === "th" ? zt : jt);
|
|
1868
|
+
}
|
|
1869
|
+
while (t.goto_next_sibling());
|
|
1870
|
+
return t.goto_parent(), s;
|
|
1871
|
+
}
|
|
1872
|
+
function N(t, e, r) {
|
|
1873
|
+
if (r !== 4294967295) {
|
|
1874
|
+
let o = t.rec;
|
|
1875
|
+
const n = t.n;
|
|
1876
|
+
n + 3 > o.length && (o = t.grow()), o[n] = e, o[n + 1] = r, o[n + 2] = 1, t.n = n + 3;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
function K(t, e, r, o, n) {
|
|
1880
|
+
if (o !== 4294967295) {
|
|
1881
|
+
const s = n > o ? n - o : 0;
|
|
1882
|
+
let l = 1;
|
|
1883
|
+
if (r - e === s) {
|
|
1884
|
+
if (s === 0) return;
|
|
1885
|
+
l = s;
|
|
1886
|
+
}
|
|
1887
|
+
let a = t.rec;
|
|
1888
|
+
const c = t.n;
|
|
1889
|
+
c + 3 > a.length && (a = t.grow()), a[c] = e, a[c + 1] = o, a[c + 2] = l, t.n = c + 3;
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
function p(t, e) {
|
|
1893
|
+
if (t === 0) return e;
|
|
1894
|
+
const r = Ne[t << 7 | e];
|
|
1895
|
+
return r !== 0 ? r : as(t, e);
|
|
1896
|
+
}
|
|
1897
|
+
function as(t, e) {
|
|
1898
|
+
const r = _[t], o = _[e];
|
|
1899
|
+
if (r.length + o.length > Nn || _.length >= Oe)
|
|
1900
|
+
return i += r, e;
|
|
1901
|
+
const n = Object.keys({ [r + o]: 0 })[0];
|
|
1902
|
+
let s = It.get(n);
|
|
1903
|
+
return s === void 0 && (s = _.length, _.push(n), It.set(n, s), w[s] = n.length), Ne[t << 7 | e] = s, s;
|
|
1904
|
+
}
|
|
1905
|
+
function U(t, e, r, o, n) {
|
|
1906
|
+
const s = t.meta();
|
|
1907
|
+
return s === void 0 || !Pn(s) ? p(e, o) : (e !== 0 && (i += _[e]), i = i + _[r] + D(t), n);
|
|
1908
|
+
}
|
|
1909
|
+
function dt(t, e, r, o, n) {
|
|
1910
|
+
r !== 0 && (i += _[r]);
|
|
1911
|
+
const s = i.length;
|
|
1912
|
+
return q(
|
|
1913
|
+
e,
|
|
1914
|
+
s,
|
|
1915
|
+
s + o.length,
|
|
1916
|
+
t.value_start,
|
|
1917
|
+
t.value_end,
|
|
1918
|
+
t.index,
|
|
1919
|
+
n
|
|
1920
|
+
), i += o, 0;
|
|
1921
|
+
}
|
|
1922
|
+
function gt(t, e, r, o) {
|
|
1923
|
+
r !== 0 && (i += _[r]);
|
|
1924
|
+
const n = i.length;
|
|
1925
|
+
return K(e, n, n + o.length, t.value_start, t.value_end), i += o, 0;
|
|
1926
|
+
}
|
|
1927
|
+
function J(t, e, r) {
|
|
1928
|
+
const o = t.words;
|
|
1929
|
+
let n = o[
|
|
1930
|
+
t.index * 12 + 8
|
|
1931
|
+
/* first_child */
|
|
1932
|
+
];
|
|
1933
|
+
if (n === 4294967295) return r;
|
|
1934
|
+
const s = o[
|
|
1935
|
+
n * 12 + 5
|
|
1936
|
+
/* parent */
|
|
1937
|
+
];
|
|
1938
|
+
for (; ; ) {
|
|
1939
|
+
const l = n * 12, a = o[l] & 255;
|
|
1940
|
+
if (a === 1) {
|
|
1941
|
+
const u = o[
|
|
1942
|
+
l + 3
|
|
1943
|
+
/* value_start */
|
|
1944
|
+
], f = o[
|
|
1945
|
+
l + 4
|
|
1946
|
+
/* value_end */
|
|
1947
|
+
], h = vt(t, n, u, f, !1);
|
|
1948
|
+
if (r !== 0 && (i += _[r], r = 0), u !== 4294967295 && f > u) {
|
|
1949
|
+
const b = i.length;
|
|
1950
|
+
K(e, b, b + h.length, u, f);
|
|
1951
|
+
}
|
|
1952
|
+
i += h;
|
|
1953
|
+
} else a !== 6 && (t.move_to(n), r = Be(t, e, r));
|
|
1954
|
+
const c = o[
|
|
1955
|
+
l + 6
|
|
1956
|
+
/* next */
|
|
1957
|
+
];
|
|
1958
|
+
if (c === 4294967295 || o[
|
|
1959
|
+
c * 12 + 5
|
|
1960
|
+
/* parent */
|
|
1961
|
+
] !== s) break;
|
|
1962
|
+
n = c;
|
|
1963
|
+
}
|
|
1964
|
+
return t.move_to(s !== 4294967295 ? s : n), r;
|
|
1965
|
+
}
|
|
1966
|
+
function Be(t, e, r) {
|
|
1967
|
+
if (Vt) {
|
|
1968
|
+
const n = Hr(t);
|
|
1969
|
+
if (n !== null) return Gr(t, e, r, n);
|
|
1970
|
+
}
|
|
1971
|
+
let o = t.kind;
|
|
1972
|
+
switch (o) {
|
|
1973
|
+
case 0:
|
|
1974
|
+
return J(t, e, r);
|
|
1975
|
+
case 7:
|
|
1976
|
+
if (t.pending && t.parent_kind === 16)
|
|
1977
|
+
return J(t, e, r);
|
|
1978
|
+
// falls through
|
|
1979
|
+
case 3:
|
|
1980
|
+
case 9:
|
|
1981
|
+
case 10:
|
|
1982
|
+
case 14:
|
|
1983
|
+
case 16:
|
|
1984
|
+
case 19:
|
|
1985
|
+
case 20:
|
|
1986
|
+
case 21: {
|
|
1987
|
+
if (o === 3) {
|
|
1988
|
+
const s = t.extra;
|
|
1989
|
+
o = s >= 1 && s <= 6 ? pt + s : pt;
|
|
1990
|
+
}
|
|
1991
|
+
const n = i.length + w[r];
|
|
1992
|
+
return r = U(t, r, Te[o], De[o], Ce[o]), r = J(t, e, r), r = p(r, Re[o]), N(e, n, t.start), r;
|
|
1993
|
+
}
|
|
1994
|
+
case 8: {
|
|
1995
|
+
if (R !== null) {
|
|
1996
|
+
const l = ce(t);
|
|
1997
|
+
if (l !== null)
|
|
1998
|
+
return kn(
|
|
1999
|
+
t,
|
|
2000
|
+
e,
|
|
2001
|
+
r,
|
|
2002
|
+
Ke(t, l),
|
|
2003
|
+
l.body,
|
|
2004
|
+
Me(l),
|
|
2005
|
+
null
|
|
2006
|
+
);
|
|
2007
|
+
}
|
|
2008
|
+
const n = i.length + w[r];
|
|
2009
|
+
r = U(t, r, ur, fr, L);
|
|
2010
|
+
let s = Lt(t);
|
|
2011
|
+
return k.call(s, `
|
|
2012
|
+
`) !== -1 && (s = s.replace(/\n/g, " ")), gt(t, e, r, s), N(e, n, t.start), pe;
|
|
2013
|
+
}
|
|
2014
|
+
case 15: {
|
|
2015
|
+
const n = i.length + w[r], s = t.meta(), l = !!(s != null && s.ordered), a = s == null ? void 0 : s.start;
|
|
2016
|
+
return l && a != null && a !== 1 ? (r !== 0 && (i += _[r]), i += '<ol start="' + String(a), r = U(t, 0, z, ar, $)) : l ? r = U(t, r, _r, br, $) : r = U(t, r, wr, pr, $), r = J(t, e, r), r = p(r, l ? mr : vr), N(e, n, t.start), r;
|
|
2017
|
+
}
|
|
2018
|
+
case 11: {
|
|
2019
|
+
const n = i.length + w[r];
|
|
2020
|
+
return r = p(r, xr), N(e, n, t.start), r;
|
|
2021
|
+
}
|
|
2022
|
+
case 17:
|
|
2023
|
+
return p(r, Er);
|
|
2024
|
+
case 18:
|
|
2025
|
+
return p(r, cr);
|
|
2026
|
+
case 22: {
|
|
2027
|
+
const n = i.length + w[r];
|
|
2028
|
+
return r = U(t, r, Ar, Lr, $), r = hs(t, e, r), r = p(r, Tr), N(e, n, t.start), r;
|
|
2029
|
+
}
|
|
2030
|
+
case 6:
|
|
2031
|
+
return r;
|
|
2032
|
+
case 2:
|
|
2033
|
+
return us(t, e, r);
|
|
2034
|
+
case 28:
|
|
2035
|
+
return fs(t, e, r);
|
|
2036
|
+
case 5:
|
|
2037
|
+
return cs(t, e, r);
|
|
2038
|
+
case 12: {
|
|
2039
|
+
const n = i.length + w[r];
|
|
2040
|
+
r !== 0 && (i += _[r]);
|
|
2041
|
+
const s = t.meta();
|
|
2042
|
+
let l = "<a";
|
|
2043
|
+
return s != null && s.href && (l += ' href="' + T(s.href) + '"'), s != null && s.title && (l += ' title="' + T(s.title) + '"'), i = i + l + D(t, oe), r = J(t, e, L), r = p(r, gr), N(e, n, t.start), r;
|
|
2044
|
+
}
|
|
2045
|
+
case 13: {
|
|
2046
|
+
const n = i.length + w[r];
|
|
2047
|
+
r !== 0 && (i += _[r]);
|
|
2048
|
+
const s = t.meta();
|
|
2049
|
+
let l = "<img";
|
|
2050
|
+
return s != null && s.src && (l += ' src="' + T(s.src) + '"'), l += ' alt="' + T(Gt(t)) + '"', s != null && s.title && (l += ' title="' + T(s.title) + '"'), i = i + l + D(t, se), N(e, n, t.start), it;
|
|
2051
|
+
}
|
|
2052
|
+
case 26: {
|
|
2053
|
+
const n = i.length + w[r];
|
|
2054
|
+
return r = p(r, yr), gt(t, e, r, t.text()), N(e, n, t.start), xe;
|
|
2055
|
+
}
|
|
2056
|
+
case 4: {
|
|
2057
|
+
const n = i.length + w[r];
|
|
2058
|
+
return r = p(r, qr), gt(t, e, r, t.text()), N(e, n, t.start), G;
|
|
2059
|
+
}
|
|
2060
|
+
case 27: {
|
|
2061
|
+
r !== 0 && (i += _[r]);
|
|
2062
|
+
const n = i.length, s = t.meta(), l = s == null ? void 0 : s.tag, a = t.text();
|
|
2063
|
+
return i = i + "{@" + C(l), a && gt(t, e, At, a), N(e, n, t.start), G;
|
|
2064
|
+
}
|
|
2065
|
+
case 34:
|
|
2066
|
+
return t.index !== xt ? r : (r !== 0 && (i += _[r]), i += `<script>
|
|
2067
|
+
`, Ut(t, e, !0), i += "<\/script>", 0);
|
|
2068
|
+
default:
|
|
2069
|
+
return t.kind === 35 ? r : (F && Kr(t), J(t, e, r));
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
function cs(t, e, r) {
|
|
2073
|
+
const o = Ct(t, t.meta());
|
|
2074
|
+
if (R !== null) {
|
|
2075
|
+
const s = ae(t, o);
|
|
2076
|
+
if (s !== null)
|
|
2077
|
+
return kn(t, e, r, Ve(t, s), s.body, Ge(s), s.live);
|
|
2078
|
+
}
|
|
2079
|
+
const n = i.length + w[r];
|
|
2080
|
+
return o ? (r !== 0 && (i += _[r]), i += '<pre><code class="language-' + Zt(Rt(o)), r = U(t, 0, z, ir, L)) : r = U(t, r, hr, dr, L), gt(t, e, r, Xt(t)), N(e, n, t.start), ve;
|
|
2081
|
+
}
|
|
2082
|
+
function us(t, e, r) {
|
|
2083
|
+
r !== 0 && (i += _[r]);
|
|
2084
|
+
const o = i.length, n = t.meta(), s = n == null ? void 0 : n.tag;
|
|
2085
|
+
if (ne(t, s))
|
|
2086
|
+
return i += Ae(t), K(e, o, i.length, t.start, t.end), 0;
|
|
2087
|
+
const l = !!(n != null && n.self_closing), a = l && t.end > t.start ? t.slice(t.start, t.end) : "";
|
|
2088
|
+
if (a)
|
|
2089
|
+
i += a;
|
|
2090
|
+
else {
|
|
2091
|
+
let c = "<" + C(s);
|
|
2092
|
+
const u = n == null ? void 0 : n.attributes;
|
|
2093
|
+
if (u) {
|
|
2094
|
+
const f = t.end !== 4294967295;
|
|
2095
|
+
for (const h in u) {
|
|
2096
|
+
const b = u[h];
|
|
2097
|
+
b === !0 ? c += " " + h : typeof b == "object" && b.type === "expression" ? c += te(h, C(b.value)) : c += " " + h + '="' + Ht(b, f) + '"';
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
if (l)
|
|
2101
|
+
return i += c, K(e, o, i.length + w[it], t.start, t.end), it;
|
|
2102
|
+
i += c;
|
|
2103
|
+
}
|
|
2104
|
+
if (l)
|
|
2105
|
+
return K(e, o, i.length, t.start, t.end), 0;
|
|
2106
|
+
if (s === "script" || s === "style")
|
|
2107
|
+
t.index === et ? (i = i + _[L] + `
|
|
2108
|
+
`, Ut(t, e, !0), gt(t, e, 0, t.text())) : t.index === Et ? (i = i + _[L] + `
|
|
2109
|
+
` + lt + `
|
|
2110
|
+
`, gt(t, e, 0, t.text())) : gt(t, e, L, t.text());
|
|
2111
|
+
else {
|
|
2112
|
+
const c = J(t, e, L);
|
|
2113
|
+
c !== 0 && (i += _[c]);
|
|
2114
|
+
}
|
|
2115
|
+
return i = i + "</" + C(s), N(e, o, t.start), L;
|
|
2116
|
+
}
|
|
2117
|
+
function fs(t, e, r) {
|
|
2118
|
+
var l;
|
|
2119
|
+
r !== 0 && (i += _[r]), r = 0;
|
|
2120
|
+
const o = i.length, n = t.meta(), s = C(n == null ? void 0 : n.tag);
|
|
2121
|
+
if (t.goto_first_child()) {
|
|
2122
|
+
let a = !0;
|
|
2123
|
+
do
|
|
2124
|
+
if (t.kind === 29) {
|
|
2125
|
+
const c = t.text();
|
|
2126
|
+
r !== 0 && (i += _[r]), a ? (i = i + "{#" + s, a = !1) : i = i + "{:" + C((l = t.meta()) == null ? void 0 : l.tag), c && (i += " ", K(
|
|
2127
|
+
e,
|
|
2128
|
+
i.length,
|
|
2129
|
+
i.length + c.length,
|
|
2130
|
+
t.value_start,
|
|
2131
|
+
t.value_end
|
|
2132
|
+
), i += c), r = J(t, e, Sr);
|
|
2133
|
+
} else t.kind !== 6 && (r = Be(t, e, r));
|
|
2134
|
+
while (t.goto_next_sibling());
|
|
2135
|
+
t.goto_parent();
|
|
2136
|
+
}
|
|
2137
|
+
return r !== 0 && (i += _[r]), i = i + "{/" + s, N(e, o, t.start), G;
|
|
2138
|
+
}
|
|
2139
|
+
function hs(t, e, r) {
|
|
2140
|
+
if (ee) return He(t, e, r);
|
|
2141
|
+
const o = t.meta(), n = (o == null ? void 0 : o.alignments) ?? [], s = Mt(o, n);
|
|
2142
|
+
let l = !1;
|
|
2143
|
+
if (!t.goto_first_child()) return r;
|
|
2144
|
+
do
|
|
2145
|
+
t.kind === 23 ? (r = p(r, Dr), r = s ? en(t, e, "th", n, 0, Kt, r) : tn(t, e, Br, zt, "th", n, r), r = p(r, Cr)) : t.kind === 24 && (l || (r = p(r, Rr), l = !0), r = p(r, Nr), r = s ? en(t, e, "td", n, Tt, Dt, r) : tn(t, e, Ur, jt, "td", n, r), r = p(r, Pr));
|
|
2146
|
+
while (t.goto_next_sibling());
|
|
2147
|
+
return t.goto_parent(), l && (r = p(r, Or)), r;
|
|
2148
|
+
}
|
|
2149
|
+
function tn(t, e, r, o, n, s, l) {
|
|
2150
|
+
let a = 0;
|
|
2151
|
+
if (!t.goto_first_child()) return l;
|
|
2152
|
+
do
|
|
2153
|
+
if (t.kind === 25) {
|
|
2154
|
+
const c = s[a];
|
|
2155
|
+
c === "left" ? l = p(l, r[1]) : c === "center" ? l = p(l, r[2]) : c === "right" ? l = p(l, r[3]) : c && c !== "none" ? (l !== 0 && (i += _[l]), i += `<${n} align="${c}">`, l = 0) : l = p(l, r[0]), l = J(t, e, l), l = p(l, o), a++;
|
|
2156
|
+
}
|
|
2157
|
+
while (t.goto_next_sibling());
|
|
2158
|
+
return t.goto_parent(), l;
|
|
2159
|
+
}
|
|
2160
|
+
function en(t, e, r, o, n, s, l) {
|
|
2161
|
+
if (!t.goto_first_child()) return l;
|
|
2162
|
+
do
|
|
2163
|
+
if (t.kind === 25) {
|
|
2164
|
+
const a = t.extra, c = a < n || a >= s, u = le(t, a, o);
|
|
2165
|
+
l !== 0 && (i += _[l]), i += c ? '<th scope="row"' + u + ">" : "<" + r + u + ">", l = J(t, e, 0), l = p(l, c || r === "th" ? zt : jt);
|
|
2166
|
+
}
|
|
2167
|
+
while (t.goto_next_sibling());
|
|
2168
|
+
return t.goto_parent(), l;
|
|
2169
|
+
}
|
|
2170
|
+
function Q(t, e, r) {
|
|
2171
|
+
const o = t.words;
|
|
2172
|
+
let n = o[
|
|
2173
|
+
t.index * 12 + 8
|
|
2174
|
+
/* first_child */
|
|
2175
|
+
];
|
|
2176
|
+
if (n === 4294967295) return r;
|
|
2177
|
+
const s = o[
|
|
2178
|
+
n * 12 + 5
|
|
2179
|
+
/* parent */
|
|
2180
|
+
];
|
|
2181
|
+
for (; ; ) {
|
|
2182
|
+
const l = n * 12, a = o[l] & 255;
|
|
2183
|
+
if (a === 1) {
|
|
2184
|
+
const u = o[
|
|
2185
|
+
l + 3
|
|
2186
|
+
/* value_start */
|
|
2187
|
+
], f = o[
|
|
2188
|
+
l + 4
|
|
2189
|
+
/* value_end */
|
|
2190
|
+
], h = vt(t, n, u, f, !1);
|
|
2191
|
+
if (r !== 0 && (i += _[r], r = 0), u !== 4294967295 && f > u) {
|
|
2192
|
+
const b = i.length;
|
|
2193
|
+
q(
|
|
2194
|
+
e,
|
|
2195
|
+
b,
|
|
2196
|
+
b + h.length,
|
|
2197
|
+
u,
|
|
2198
|
+
f,
|
|
2199
|
+
n,
|
|
2200
|
+
1
|
|
2201
|
+
/* TEXT_CONTENT */
|
|
2202
|
+
);
|
|
2203
|
+
}
|
|
2204
|
+
i += h;
|
|
2205
|
+
} else a !== 6 && (t.move_to(n), r = Ue(t, e, r));
|
|
2206
|
+
const c = o[
|
|
2207
|
+
l + 6
|
|
2208
|
+
/* next */
|
|
2209
|
+
];
|
|
2210
|
+
if (c === 4294967295 || o[
|
|
2211
|
+
c * 12 + 5
|
|
2212
|
+
/* parent */
|
|
2213
|
+
] !== s) break;
|
|
2214
|
+
n = c;
|
|
2215
|
+
}
|
|
2216
|
+
return t.move_to(s !== 4294967295 ? s : n), r;
|
|
2217
|
+
}
|
|
2218
|
+
function Ue(t, e, r) {
|
|
2219
|
+
if (Vt) {
|
|
2220
|
+
const n = Hr(t);
|
|
2221
|
+
if (n !== null) return Gr(t, e, r, n);
|
|
2222
|
+
}
|
|
2223
|
+
let o = t.kind;
|
|
2224
|
+
switch (o) {
|
|
2225
|
+
case 0:
|
|
2226
|
+
return Q(t, e, r);
|
|
2227
|
+
case 7:
|
|
2228
|
+
if (t.pending && t.parent_kind === 16)
|
|
2229
|
+
return Q(t, e, r);
|
|
2230
|
+
// falls through
|
|
2231
|
+
case 3:
|
|
2232
|
+
case 9:
|
|
2233
|
+
case 10:
|
|
2234
|
+
case 14:
|
|
2235
|
+
case 16:
|
|
2236
|
+
case 19:
|
|
2237
|
+
case 20:
|
|
2238
|
+
case 21: {
|
|
2239
|
+
if (o === 3) {
|
|
2240
|
+
const a = t.extra;
|
|
2241
|
+
o = a >= 1 && a <= 6 ? pt + a : pt;
|
|
2242
|
+
}
|
|
2243
|
+
const n = i.length + w[r];
|
|
2244
|
+
r = U(t, r, Te[o], De[o], Ce[o]);
|
|
2245
|
+
const s = i.length + w[r];
|
|
2246
|
+
r = Q(t, e, r);
|
|
2247
|
+
const l = i.length + w[r];
|
|
2248
|
+
return r = p(r, Re[o]), S(
|
|
2249
|
+
e,
|
|
2250
|
+
n,
|
|
2251
|
+
s,
|
|
2252
|
+
l,
|
|
2253
|
+
i.length + w[r],
|
|
2254
|
+
t,
|
|
2255
|
+
0
|
|
2256
|
+
/* TEXT */
|
|
2257
|
+
), r;
|
|
2258
|
+
}
|
|
2259
|
+
case 8: {
|
|
2260
|
+
if (R !== null) {
|
|
2261
|
+
const c = ce(t);
|
|
2262
|
+
if (c !== null)
|
|
2263
|
+
return $n(
|
|
2264
|
+
t,
|
|
2265
|
+
e,
|
|
2266
|
+
r,
|
|
2267
|
+
Ke(t, c),
|
|
2268
|
+
c.body,
|
|
2269
|
+
Me(c),
|
|
2270
|
+
null
|
|
2271
|
+
);
|
|
2272
|
+
}
|
|
2273
|
+
const n = i.length + w[r];
|
|
2274
|
+
r = U(t, r, ur, fr, L);
|
|
2275
|
+
const s = i.length + w[r];
|
|
2276
|
+
let l = Lt(t);
|
|
2277
|
+
k.call(l, `
|
|
2278
|
+
`) !== -1 && (l = l.replace(/\n/g, " ")), dt(
|
|
2279
|
+
t,
|
|
2280
|
+
e,
|
|
2281
|
+
r,
|
|
2282
|
+
l,
|
|
2283
|
+
5
|
|
2284
|
+
/* CODE_CONTENT */
|
|
2285
|
+
);
|
|
2286
|
+
const a = i.length;
|
|
2287
|
+
return S(
|
|
2288
|
+
e,
|
|
2289
|
+
n,
|
|
2290
|
+
s,
|
|
2291
|
+
a,
|
|
2292
|
+
a + w[pe],
|
|
2293
|
+
t,
|
|
2294
|
+
1
|
|
2295
|
+
/* CODE */
|
|
2296
|
+
), pe;
|
|
2297
|
+
}
|
|
2298
|
+
case 15: {
|
|
2299
|
+
const n = i.length + w[r], s = t.meta(), l = !!(s != null && s.ordered), a = s == null ? void 0 : s.start;
|
|
2300
|
+
l && a != null && a !== 1 ? (r !== 0 && (i += _[r]), i += '<ol start="' + String(a), r = U(t, 0, z, ar, $)) : l ? r = U(t, r, _r, br, $) : r = U(t, r, wr, pr, $);
|
|
2301
|
+
const c = i.length + w[r];
|
|
2302
|
+
r = Q(t, e, r);
|
|
2303
|
+
const u = i.length + w[r];
|
|
2304
|
+
return r = p(r, l ? mr : vr), S(
|
|
2305
|
+
e,
|
|
2306
|
+
n,
|
|
2307
|
+
c,
|
|
2308
|
+
u,
|
|
2309
|
+
i.length + w[r],
|
|
2310
|
+
t,
|
|
2311
|
+
3
|
|
2312
|
+
/* STRUCTURE */
|
|
2313
|
+
), r;
|
|
2314
|
+
}
|
|
2315
|
+
case 11: {
|
|
2316
|
+
const n = i.length + w[r];
|
|
2317
|
+
r = p(r, xr);
|
|
2318
|
+
const s = i.length + w[r];
|
|
2319
|
+
if (q(
|
|
2320
|
+
e,
|
|
2321
|
+
n,
|
|
2322
|
+
s,
|
|
2323
|
+
t.start,
|
|
2324
|
+
t.end,
|
|
2325
|
+
t.index,
|
|
2326
|
+
12
|
|
2327
|
+
), e.syntax) {
|
|
2328
|
+
const l = t.value_start;
|
|
2329
|
+
q(
|
|
2330
|
+
e,
|
|
2331
|
+
n,
|
|
2332
|
+
s,
|
|
2333
|
+
t.start,
|
|
2334
|
+
t.value_end > l ? l : t.start,
|
|
2335
|
+
t.index,
|
|
2336
|
+
14
|
|
2337
|
+
/* STRUCTURE_OPEN */
|
|
2338
|
+
);
|
|
2339
|
+
}
|
|
2340
|
+
return r;
|
|
2341
|
+
}
|
|
2342
|
+
case 17:
|
|
2343
|
+
return p(r, Er);
|
|
2344
|
+
case 18:
|
|
2345
|
+
return p(r, cr);
|
|
2346
|
+
case 22: {
|
|
2347
|
+
const n = i.length + w[r];
|
|
2348
|
+
r = U(t, r, Ar, Lr, $);
|
|
2349
|
+
const s = i.length + w[r];
|
|
2350
|
+
r = bs(t, e, r);
|
|
2351
|
+
const l = i.length + w[r];
|
|
2352
|
+
return r = p(r, Tr), S(
|
|
2353
|
+
e,
|
|
2354
|
+
n,
|
|
2355
|
+
s,
|
|
2356
|
+
l,
|
|
2357
|
+
i.length + w[r],
|
|
2358
|
+
t,
|
|
2359
|
+
3
|
|
2360
|
+
/* STRUCTURE */
|
|
2361
|
+
), r;
|
|
2362
|
+
}
|
|
2363
|
+
case 6:
|
|
2364
|
+
return r;
|
|
2365
|
+
case 2:
|
|
2366
|
+
return gs(t, e, r);
|
|
2367
|
+
case 28:
|
|
2368
|
+
return _s(t, e, r);
|
|
2369
|
+
case 5:
|
|
2370
|
+
return ds(t, e, r);
|
|
2371
|
+
case 12: {
|
|
2372
|
+
const n = i.length + w[r];
|
|
2373
|
+
r !== 0 && (i += _[r]);
|
|
2374
|
+
const s = t.meta();
|
|
2375
|
+
let l = "<a";
|
|
2376
|
+
s != null && s.href && (l += ' href="' + T(s.href) + '"'), s != null && s.title && (l += ' title="' + T(s.title) + '"'), i = i + l + D(t, oe);
|
|
2377
|
+
const a = i.length + w[L];
|
|
2378
|
+
r = Q(t, e, L);
|
|
2379
|
+
const c = i.length + w[r];
|
|
2380
|
+
return r = p(r, gr), S(
|
|
2381
|
+
e,
|
|
2382
|
+
n,
|
|
2383
|
+
a,
|
|
2384
|
+
c,
|
|
2385
|
+
i.length + w[r],
|
|
2386
|
+
t,
|
|
2387
|
+
0
|
|
2388
|
+
/* TEXT */
|
|
2389
|
+
), r;
|
|
2390
|
+
}
|
|
2391
|
+
case 13: {
|
|
2392
|
+
const n = i.length + w[r];
|
|
2393
|
+
r !== 0 && (i += _[r]);
|
|
2394
|
+
const s = t.meta();
|
|
2395
|
+
let l = "<img";
|
|
2396
|
+
return s != null && s.src && (l += ' src="' + T(s.src) + '"'), l += ' alt="' + T(Gt(t)) + '"', s != null && s.title && (l += ' title="' + T(s.title) + '"'), i = i + l + D(t, se), q(
|
|
2397
|
+
e,
|
|
2398
|
+
n,
|
|
2399
|
+
i.length + w[it],
|
|
2400
|
+
t.start,
|
|
2401
|
+
t.end,
|
|
2402
|
+
t.index,
|
|
2403
|
+
0
|
|
2404
|
+
), it;
|
|
2405
|
+
}
|
|
2406
|
+
case 26: {
|
|
2407
|
+
const n = i.length + w[r];
|
|
2408
|
+
r = p(r, yr);
|
|
2409
|
+
const s = i.length + w[r];
|
|
2410
|
+
dt(
|
|
2411
|
+
t,
|
|
2412
|
+
e,
|
|
2413
|
+
r,
|
|
2414
|
+
t.text(),
|
|
2415
|
+
1
|
|
2416
|
+
/* TEXT_CONTENT */
|
|
2417
|
+
);
|
|
2418
|
+
const l = i.length;
|
|
2419
|
+
return S(
|
|
2420
|
+
e,
|
|
2421
|
+
n,
|
|
2422
|
+
s,
|
|
2423
|
+
l,
|
|
2424
|
+
l + w[xe],
|
|
2425
|
+
t,
|
|
2426
|
+
0
|
|
2427
|
+
/* TEXT */
|
|
2428
|
+
), xe;
|
|
2429
|
+
}
|
|
2430
|
+
case 4: {
|
|
2431
|
+
const n = i.length + w[r];
|
|
2432
|
+
r = p(r, qr);
|
|
2433
|
+
const s = i.length + w[r];
|
|
2434
|
+
dt(
|
|
2435
|
+
t,
|
|
2436
|
+
e,
|
|
2437
|
+
r,
|
|
2438
|
+
t.text(),
|
|
2439
|
+
9
|
|
2440
|
+
/* SVELTE_CONTENT */
|
|
2441
|
+
);
|
|
2442
|
+
const l = i.length;
|
|
2443
|
+
return S(
|
|
2444
|
+
e,
|
|
2445
|
+
n,
|
|
2446
|
+
s,
|
|
2447
|
+
l,
|
|
2448
|
+
l + w[G],
|
|
2449
|
+
t,
|
|
2450
|
+
2
|
|
2451
|
+
/* SVELTE */
|
|
2452
|
+
), G;
|
|
2453
|
+
}
|
|
2454
|
+
case 27: {
|
|
2455
|
+
r !== 0 && (i += _[r]);
|
|
2456
|
+
const n = i.length, s = t.meta(), l = s == null ? void 0 : s.tag, a = t.text();
|
|
2457
|
+
i = i + "{@" + C(l);
|
|
2458
|
+
let c = i.length;
|
|
2459
|
+
a && (c += 1, dt(
|
|
2460
|
+
t,
|
|
2461
|
+
e,
|
|
2462
|
+
At,
|
|
2463
|
+
a,
|
|
2464
|
+
9
|
|
2465
|
+
/* SVELTE_CONTENT */
|
|
2466
|
+
));
|
|
2467
|
+
const u = i.length;
|
|
2468
|
+
return S(
|
|
2469
|
+
e,
|
|
2470
|
+
n,
|
|
2471
|
+
c,
|
|
2472
|
+
u,
|
|
2473
|
+
u + w[G],
|
|
2474
|
+
t,
|
|
2475
|
+
2
|
|
2476
|
+
/* SVELTE */
|
|
2477
|
+
), G;
|
|
2478
|
+
}
|
|
2479
|
+
case 34:
|
|
2480
|
+
return t.index !== xt ? r : (r !== 0 && (i += _[r]), i += `<script>
|
|
2481
|
+
`, Ut(t, e, !1), i += "<\/script>", 0);
|
|
2482
|
+
default:
|
|
2483
|
+
return t.kind === 35 ? r : (F && Kr(t), Q(t, e, r));
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
function ds(t, e, r) {
|
|
2487
|
+
const o = Ct(t, t.meta());
|
|
2488
|
+
if (R !== null) {
|
|
2489
|
+
const a = ae(t, o);
|
|
2490
|
+
if (a !== null)
|
|
2491
|
+
return $n(t, e, r, Ve(t, a), a.body, Ge(a), a.live);
|
|
2492
|
+
}
|
|
2493
|
+
const n = i.length + w[r];
|
|
2494
|
+
o ? (r !== 0 && (i += _[r]), i += '<pre><code class="language-' + Zt(Rt(o)), r = U(t, 0, z, ir, L)) : r = U(t, r, hr, dr, L);
|
|
2495
|
+
const s = i.length + w[r];
|
|
2496
|
+
dt(
|
|
2497
|
+
t,
|
|
2498
|
+
e,
|
|
2499
|
+
r,
|
|
2500
|
+
Xt(t),
|
|
2501
|
+
5
|
|
2502
|
+
/* CODE_CONTENT */
|
|
2503
|
+
);
|
|
2504
|
+
const l = i.length;
|
|
2505
|
+
return S(
|
|
2506
|
+
e,
|
|
2507
|
+
n,
|
|
2508
|
+
s,
|
|
2509
|
+
l,
|
|
2510
|
+
l + w[ve],
|
|
2511
|
+
t,
|
|
2512
|
+
1
|
|
2513
|
+
/* CODE */
|
|
2514
|
+
), ve;
|
|
2515
|
+
}
|
|
2516
|
+
function gs(t, e, r) {
|
|
2517
|
+
r !== 0 && (i += _[r]);
|
|
2518
|
+
const o = i.length, n = t.meta(), s = n == null ? void 0 : n.tag;
|
|
2519
|
+
if (ne(t, s))
|
|
2520
|
+
return i += Ae(t), q(
|
|
2521
|
+
e,
|
|
2522
|
+
o,
|
|
2523
|
+
i.length,
|
|
2524
|
+
t.start,
|
|
2525
|
+
t.end,
|
|
2526
|
+
t.index,
|
|
2527
|
+
9
|
|
2528
|
+
/* SVELTE_CONTENT */
|
|
2529
|
+
), 0;
|
|
2530
|
+
const l = !!(n != null && n.self_closing), a = l && t.end > t.start ? t.slice(t.start, t.end) : "";
|
|
2531
|
+
if (a)
|
|
2532
|
+
i += a;
|
|
2533
|
+
else {
|
|
2534
|
+
let f = "<" + C(s);
|
|
2535
|
+
const h = n == null ? void 0 : n.attributes;
|
|
2536
|
+
if (h) {
|
|
2537
|
+
const b = t.end !== 4294967295;
|
|
2538
|
+
for (const y in h) {
|
|
2539
|
+
const m = h[y];
|
|
2540
|
+
m === !0 ? f += " " + y : typeof m == "object" && m.type === "expression" ? f += te(y, C(m.value)) : f += " " + y + '="' + Ht(m, b) + '"';
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
if (i += f, l)
|
|
2544
|
+
return q(
|
|
2545
|
+
e,
|
|
2546
|
+
o,
|
|
2547
|
+
i.length + w[it],
|
|
2548
|
+
t.start,
|
|
2549
|
+
t.end,
|
|
2550
|
+
t.index,
|
|
2551
|
+
9
|
|
2552
|
+
/* SVELTE_CONTENT */
|
|
2553
|
+
), it;
|
|
2554
|
+
}
|
|
2555
|
+
if (l)
|
|
2556
|
+
return q(
|
|
2557
|
+
e,
|
|
2558
|
+
o,
|
|
2559
|
+
i.length,
|
|
2560
|
+
t.start,
|
|
2561
|
+
t.end,
|
|
2562
|
+
t.index,
|
|
2563
|
+
9
|
|
2564
|
+
/* SVELTE_CONTENT */
|
|
2565
|
+
), 0;
|
|
2566
|
+
const c = i.length + w[L];
|
|
2567
|
+
if (s === "script" || s === "style")
|
|
2568
|
+
t.index === et ? (i = i + _[L] + `
|
|
2569
|
+
`, Ut(t, e, !1), dt(
|
|
2570
|
+
t,
|
|
2571
|
+
e,
|
|
2572
|
+
0,
|
|
2573
|
+
t.text(),
|
|
2574
|
+
9
|
|
2575
|
+
/* SVELTE_CONTENT */
|
|
2576
|
+
)) : t.index === Et ? (i = i + _[L] + `
|
|
2577
|
+
` + lt + `
|
|
2578
|
+
`, dt(
|
|
2579
|
+
t,
|
|
2580
|
+
e,
|
|
2581
|
+
0,
|
|
2582
|
+
t.text(),
|
|
2583
|
+
9
|
|
2584
|
+
/* SVELTE_CONTENT */
|
|
2585
|
+
)) : dt(
|
|
2586
|
+
t,
|
|
2587
|
+
e,
|
|
2588
|
+
L,
|
|
2589
|
+
t.text(),
|
|
2590
|
+
9
|
|
2591
|
+
/* SVELTE_CONTENT */
|
|
2592
|
+
);
|
|
2593
|
+
else {
|
|
2594
|
+
const f = Q(t, e, L);
|
|
2595
|
+
f !== 0 && (i += _[f]);
|
|
2596
|
+
}
|
|
2597
|
+
const u = i.length;
|
|
2598
|
+
return i = i + "</" + C(s), S(
|
|
2599
|
+
e,
|
|
2600
|
+
o,
|
|
2601
|
+
c,
|
|
2602
|
+
u,
|
|
2603
|
+
i.length + w[L],
|
|
2604
|
+
t,
|
|
2605
|
+
0
|
|
2606
|
+
/* TEXT */
|
|
2607
|
+
), L;
|
|
2608
|
+
}
|
|
2609
|
+
function _s(t, e, r) {
|
|
2610
|
+
var l;
|
|
2611
|
+
r !== 0 && (i += _[r]), r = 0;
|
|
2612
|
+
const o = i.length, n = t.meta(), s = C(n == null ? void 0 : n.tag);
|
|
2613
|
+
if (t.goto_first_child()) {
|
|
2614
|
+
let a = !0;
|
|
2615
|
+
do
|
|
2616
|
+
if (t.kind === 29) {
|
|
2617
|
+
const c = t.text();
|
|
2618
|
+
r !== 0 && (i += _[r]), a ? (i = i + "{#" + s, a = !1) : i = i + "{:" + C((l = t.meta()) == null ? void 0 : l.tag), c && (i += " ", q(
|
|
2619
|
+
e,
|
|
2620
|
+
i.length,
|
|
2621
|
+
i.length + c.length,
|
|
2622
|
+
t.value_start,
|
|
2623
|
+
t.value_end,
|
|
2624
|
+
t.index,
|
|
2625
|
+
9
|
|
2626
|
+
/* SVELTE_CONTENT */
|
|
2627
|
+
), i += c), r = Q(t, e, Sr);
|
|
2628
|
+
} else t.kind !== 6 && (r = Ue(t, e, r));
|
|
2629
|
+
while (t.goto_next_sibling());
|
|
2630
|
+
t.goto_parent();
|
|
2631
|
+
}
|
|
2632
|
+
return r !== 0 && (i += _[r]), i = i + "{/" + s, q(
|
|
2633
|
+
e,
|
|
2634
|
+
o,
|
|
2635
|
+
i.length + w[G],
|
|
2636
|
+
t.start,
|
|
2637
|
+
t.end,
|
|
2638
|
+
t.index,
|
|
2639
|
+
8
|
|
2640
|
+
/* SVELTE_NODE */
|
|
2641
|
+
), G;
|
|
2642
|
+
}
|
|
2643
|
+
function bs(t, e, r) {
|
|
2644
|
+
if (ee) return He(t, e, r);
|
|
2645
|
+
const o = t.meta(), n = (o == null ? void 0 : o.alignments) ?? [], s = Mt(o, n);
|
|
2646
|
+
let l = !1;
|
|
2647
|
+
if (!t.goto_first_child()) return r;
|
|
2648
|
+
do
|
|
2649
|
+
t.kind === 23 ? (r = p(r, Dr), r = s ? nn(t, e, "th", n, 0, Kt, r) : rn(t, e, Br, zt, "th", n, r), r = p(r, Cr)) : t.kind === 24 && (l || (r = p(r, Rr), l = !0), r = p(r, Nr), r = s ? nn(t, e, "td", n, Tt, Dt, r) : rn(t, e, Ur, jt, "td", n, r), r = p(r, Pr));
|
|
2650
|
+
while (t.goto_next_sibling());
|
|
2651
|
+
return t.goto_parent(), l && (r = p(r, Or)), r;
|
|
2652
|
+
}
|
|
2653
|
+
function rn(t, e, r, o, n, s, l) {
|
|
2654
|
+
let a = 0;
|
|
2655
|
+
if (!t.goto_first_child()) return l;
|
|
2656
|
+
do
|
|
2657
|
+
if (t.kind === 25) {
|
|
2658
|
+
const c = s[a];
|
|
2659
|
+
c === "left" ? l = p(l, r[1]) : c === "center" ? l = p(l, r[2]) : c === "right" ? l = p(l, r[3]) : c && c !== "none" ? (l !== 0 && (i += _[l]), i += `<${n} align="${c}">`, l = 0) : l = p(l, r[0]), l = Q(t, e, l), l = p(l, o), a++;
|
|
2660
|
+
}
|
|
2661
|
+
while (t.goto_next_sibling());
|
|
2662
|
+
return t.goto_parent(), l;
|
|
2663
|
+
}
|
|
2664
|
+
function nn(t, e, r, o, n, s, l) {
|
|
2665
|
+
if (!t.goto_first_child()) return l;
|
|
2666
|
+
do
|
|
2667
|
+
if (t.kind === 25) {
|
|
2668
|
+
const a = t.extra, c = a < n || a >= s, u = le(t, a, o);
|
|
2669
|
+
l !== 0 && (i += _[l]), i += c ? '<th scope="row"' + u + ">" : "<" + r + u + ">", l = Q(t, e, 0), l = p(l, c || r === "th" ? zt : jt);
|
|
2670
|
+
}
|
|
2671
|
+
while (t.goto_next_sibling());
|
|
2672
|
+
return t.goto_parent(), l;
|
|
2673
|
+
}
|
|
2674
|
+
function Bn(t) {
|
|
2675
|
+
st = bt;
|
|
2676
|
+
const e = Pe(t, 0);
|
|
2677
|
+
let r = st;
|
|
2678
|
+
return st = "", e !== 0 && (r += _[e]), r.length !== 0 && (Je[0] = r.charCodeAt(0)), r;
|
|
2679
|
+
}
|
|
2680
|
+
const ms = ["", "h1", "h2", "h3", "h4", "h5", "h6"], ws = /* @__PURE__ */ new Set(["checked"]), on = ["thead", "tbody", "tr", "th", "td"];
|
|
2681
|
+
function Un(t) {
|
|
2682
|
+
var e;
|
|
2683
|
+
switch (t.kind) {
|
|
2684
|
+
case 7:
|
|
2685
|
+
return t.pending && t.parent_kind === 16 ? "" : "p";
|
|
2686
|
+
case 3: {
|
|
2687
|
+
const r = t.extra;
|
|
2688
|
+
return r >= 1 && r <= 6 ? ms[r] : "";
|
|
2689
|
+
}
|
|
2690
|
+
case 9:
|
|
2691
|
+
return "em";
|
|
2692
|
+
case 10:
|
|
2693
|
+
return "strong";
|
|
2694
|
+
case 19:
|
|
2695
|
+
return "del";
|
|
2696
|
+
case 20:
|
|
2697
|
+
return "sup";
|
|
2698
|
+
case 21:
|
|
2699
|
+
return "sub";
|
|
2700
|
+
case 14:
|
|
2701
|
+
return "blockquote";
|
|
2702
|
+
case 15:
|
|
2703
|
+
return (e = t.meta()) != null && e.ordered ? "ol" : "ul";
|
|
2704
|
+
case 16:
|
|
2705
|
+
return "li";
|
|
2706
|
+
case 8:
|
|
2707
|
+
return "code";
|
|
2708
|
+
case 5:
|
|
2709
|
+
return "pre";
|
|
2710
|
+
case 12:
|
|
2711
|
+
return "a";
|
|
2712
|
+
case 13:
|
|
2713
|
+
return "img";
|
|
2714
|
+
case 11:
|
|
2715
|
+
return "hr";
|
|
2716
|
+
case 17:
|
|
2717
|
+
return "br";
|
|
2718
|
+
case 22:
|
|
2719
|
+
return "table";
|
|
2720
|
+
case 2:
|
|
2721
|
+
return re ? In(t) : vs(t);
|
|
2722
|
+
default:
|
|
2723
|
+
return "";
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
const ps = /^[a-z][a-z0-9-]*$/;
|
|
2727
|
+
function vs(t) {
|
|
2728
|
+
const e = t.end;
|
|
2729
|
+
return e !== 4294967295 && e > t.start ? "" : In(t);
|
|
2730
|
+
}
|
|
2731
|
+
function In(t) {
|
|
2732
|
+
var r;
|
|
2733
|
+
const e = (r = t.meta()) == null ? void 0 : r.tag;
|
|
2734
|
+
return typeof e != "string" || e === "script" || e === "style" ? "" : ps.test(e) ? e : "";
|
|
2735
|
+
}
|
|
2736
|
+
const sn = [
|
|
2737
|
+
"bind:",
|
|
2738
|
+
"on:",
|
|
2739
|
+
"use:",
|
|
2740
|
+
"class:",
|
|
2741
|
+
"style:",
|
|
2742
|
+
"transition:",
|
|
2743
|
+
"in:",
|
|
2744
|
+
"out:",
|
|
2745
|
+
"animate:",
|
|
2746
|
+
"let:"
|
|
2747
|
+
];
|
|
2748
|
+
function Hn(t) {
|
|
2749
|
+
var r;
|
|
2750
|
+
const e = (r = t.meta()) == null ? void 0 : r.attributes;
|
|
2751
|
+
if (e === void 0) return "";
|
|
2752
|
+
for (const o in e) {
|
|
2753
|
+
const n = k.call(o, ":");
|
|
2754
|
+
if (n !== -1)
|
|
2755
|
+
for (let s = 0; s < sn.length; s++) {
|
|
2756
|
+
const l = sn[s];
|
|
2757
|
+
if (l.length === n + 1 && o.startsWith(l)) return o;
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
return "";
|
|
2761
|
+
}
|
|
2762
|
+
function Hr(t) {
|
|
2763
|
+
const e = t.kind;
|
|
2764
|
+
if (e >= 30 && e <= 32)
|
|
2765
|
+
return Se.get(Ie(t)) ?? null;
|
|
2766
|
+
const r = Un(t);
|
|
2767
|
+
if (r === "") return null;
|
|
2768
|
+
const o = H.get(r);
|
|
2769
|
+
return o === void 0 || re && t.kind === 2 && Hn(t) !== "" ? null : o;
|
|
2770
|
+
}
|
|
2771
|
+
function Ie(t) {
|
|
2772
|
+
var r;
|
|
2773
|
+
const e = (r = t.meta()) == null ? void 0 : r.name;
|
|
2774
|
+
return typeof e == "string" ? e : "";
|
|
2775
|
+
}
|
|
2776
|
+
function Vn(t) {
|
|
2777
|
+
me.has(t) || (me.add(t), Bt.push(t));
|
|
2778
|
+
}
|
|
2779
|
+
function qt(t) {
|
|
2780
|
+
const e = H.get(t);
|
|
2781
|
+
return e !== void 0 && Vn(e), e;
|
|
2782
|
+
}
|
|
2783
|
+
function xs(t, e) {
|
|
2784
|
+
if (H.get(e) === void 0) return;
|
|
2785
|
+
const r = Hn(t);
|
|
2786
|
+
r === "" ? qt(e) : Qt.push({ tag: e, directive: r, start: t.start });
|
|
2787
|
+
}
|
|
2788
|
+
function Vr(t) {
|
|
2789
|
+
if (t.goto_first_child()) {
|
|
2790
|
+
do {
|
|
2791
|
+
const e = t.kind;
|
|
2792
|
+
if (!(e === 1 || e === 6)) {
|
|
2793
|
+
if (e >= 30 && e <= 32) {
|
|
2794
|
+
const r = Se.get(Ie(t));
|
|
2795
|
+
r !== void 0 && Vn(r);
|
|
2796
|
+
} else {
|
|
2797
|
+
const r = Un(t);
|
|
2798
|
+
r !== "" && (re && e === 2 ? xs(t, r) : qt(r));
|
|
2799
|
+
}
|
|
2800
|
+
e === 22 ? Es(t) : e !== 13 && e !== 8 && e !== 5 && Vr(t);
|
|
2801
|
+
}
|
|
2802
|
+
} while (t.goto_next_sibling());
|
|
2803
|
+
t.goto_parent();
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
function Es(t) {
|
|
2807
|
+
const e = t.meta();
|
|
2808
|
+
let r = 0, o = 2147483647;
|
|
2809
|
+
if (Mt(e, (e == null ? void 0 : e.alignments) ?? []) && (r = Tt, o = Dt), !t.goto_first_child()) return;
|
|
2810
|
+
let n = !1;
|
|
2811
|
+
do {
|
|
2812
|
+
const s = t.kind;
|
|
2813
|
+
s === 23 ? (qt("thead"), qt("tr"), ln(t, "th", 0, 2147483647)) : s === 24 && (n || (qt("tbody"), n = !0), qt("tr"), ln(t, "td", r, o));
|
|
2814
|
+
} while (t.goto_next_sibling());
|
|
2815
|
+
t.goto_parent();
|
|
2816
|
+
}
|
|
2817
|
+
function ln(t, e, r, o) {
|
|
2818
|
+
if (t.goto_first_child()) {
|
|
2819
|
+
do
|
|
2820
|
+
if (t.kind === 25) {
|
|
2821
|
+
const n = t.extra;
|
|
2822
|
+
qt(n < r || n >= o ? "th" : e), Vr(t);
|
|
2823
|
+
}
|
|
2824
|
+
while (t.goto_next_sibling());
|
|
2825
|
+
t.goto_parent();
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2828
|
+
const an = new io([], "");
|
|
2829
|
+
function ke(t, e, r, o, n) {
|
|
2830
|
+
H = e ?? an, Se = r ?? an, I = o, re = n, Vr(t);
|
|
2831
|
+
const s = Qt.length === 0 ? or : Qt.splice(0);
|
|
2832
|
+
if (Bt.length === 0) return s;
|
|
2833
|
+
Vt = !0;
|
|
2834
|
+
for (let l = 0; l < on.length; l++) {
|
|
2835
|
+
const a = H.get(on[l]);
|
|
2836
|
+
a !== void 0 && me.has(a) && (ee = !0);
|
|
2837
|
+
}
|
|
2838
|
+
return ot = wn(Bt), s;
|
|
2839
|
+
}
|
|
2840
|
+
function $e() {
|
|
2841
|
+
Vt = !1, ee = !1, H = null, Se = null, I = 0, re = !1, ot = "", bt = "", Qt.length !== 0 && (Qt.length = 0), Bt.length !== 0 && (Bt.length = 0, me.clear());
|
|
2842
|
+
}
|
|
2843
|
+
function A(t, e) {
|
|
2844
|
+
return I === 0 ? v(t, e) : (t !== 0 && (i += _[t]), i += e, 0);
|
|
2845
|
+
}
|
|
2846
|
+
function ie(t, e, r) {
|
|
2847
|
+
if (I === 0) return tt(t, r);
|
|
2848
|
+
const o = I === 1 ? J(t, e, r) : Q(t, e, r);
|
|
2849
|
+
return o !== 0 && (i += _[o]), 0;
|
|
2850
|
+
}
|
|
2851
|
+
function Qe(t, e, r, o) {
|
|
2852
|
+
if (I === 0) return v(r, o);
|
|
2853
|
+
r !== 0 && (i += _[r]);
|
|
2854
|
+
const n = i.length;
|
|
2855
|
+
return I === 1 ? K(e, n, n + o.length, t.value_start, t.value_end) : q(
|
|
2856
|
+
e,
|
|
2857
|
+
n,
|
|
2858
|
+
n + o.length,
|
|
2859
|
+
t.value_start,
|
|
2860
|
+
t.value_end,
|
|
2861
|
+
t.index,
|
|
2862
|
+
5
|
|
2863
|
+
/* CODE_CONTENT */
|
|
2864
|
+
), i += o, 0;
|
|
2865
|
+
}
|
|
2866
|
+
function kt(t, e, r, o, n, s, l) {
|
|
2867
|
+
I === 1 ? N(e, r, t.start) : I === 2 && S(e, r, o, n, s, t, l);
|
|
2868
|
+
}
|
|
2869
|
+
function be(t, e, r, o) {
|
|
2870
|
+
if (I === 1) N(e, r, t.start);
|
|
2871
|
+
else if (I === 2) {
|
|
2872
|
+
const n = i.length;
|
|
2873
|
+
if (q(e, r, n, t.start, t.end, t.index, o << 2), o === 3 && e.syntax) {
|
|
2874
|
+
const s = t.value_start;
|
|
2875
|
+
q(
|
|
2876
|
+
e,
|
|
2877
|
+
r,
|
|
2878
|
+
n,
|
|
2879
|
+
t.start,
|
|
2880
|
+
t.value_end > s ? s : t.start,
|
|
2881
|
+
t.index,
|
|
2882
|
+
14
|
|
2883
|
+
/* STRUCTURE_OPEN */
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
let Ye = 0;
|
|
2889
|
+
function de(t, e) {
|
|
2890
|
+
for (; ; ) {
|
|
2891
|
+
const r = t.charCodeAt(e);
|
|
2892
|
+
if (r !== 32 && r !== 9 && r !== 10) return e;
|
|
2893
|
+
e++;
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
function ys(t, e, r) {
|
|
2897
|
+
const o = t.source;
|
|
2898
|
+
let n = t.start + 1;
|
|
2899
|
+
if (!o.startsWith(e, n)) return -1;
|
|
2900
|
+
if (n += e.length, r !== void 0)
|
|
2901
|
+
for (const l in r) {
|
|
2902
|
+
const a = r[l], c = de(o, n);
|
|
2903
|
+
if (c === n) return -1;
|
|
2904
|
+
if (n = c, o.charCodeAt(n) === 123) {
|
|
2905
|
+
if (typeof a != "object" || a === null || a.value !== l || !o.startsWith(l, n + 1) || o.charCodeAt(n + 1 + l.length) !== 125)
|
|
2906
|
+
return -1;
|
|
2907
|
+
n += l.length + 2;
|
|
2908
|
+
continue;
|
|
2909
|
+
}
|
|
2910
|
+
if (!o.startsWith(l, n)) return -1;
|
|
2911
|
+
if (n += l.length, a === !0) continue;
|
|
2912
|
+
if (n = de(o, n), o.charCodeAt(n) !== 61) return -1;
|
|
2913
|
+
n = de(o, n + 1);
|
|
2914
|
+
let u, f = -1, h = -1;
|
|
2915
|
+
if (typeof a == "string") {
|
|
2916
|
+
u = a;
|
|
2917
|
+
const b = o.charCodeAt(n);
|
|
2918
|
+
(b === 34 || b === 39) && (f = h = b);
|
|
2919
|
+
} else if (typeof a == "object" && a !== null)
|
|
2920
|
+
u = C(a.value), f = 123, h = 125;
|
|
2921
|
+
else return -1;
|
|
2922
|
+
if (f !== -1) {
|
|
2923
|
+
if (o.charCodeAt(n) !== f) return -1;
|
|
2924
|
+
n++;
|
|
2925
|
+
}
|
|
2926
|
+
if (!o.startsWith(u, n)) return -1;
|
|
2927
|
+
if (n += u.length, h !== -1) {
|
|
2928
|
+
if (o.charCodeAt(n) !== h) return -1;
|
|
2929
|
+
n++;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
Ye = n, n = de(o, n);
|
|
2933
|
+
const s = o.charCodeAt(n);
|
|
2934
|
+
return s === 62 ? n + 1 : s === 47 && o.charCodeAt(n + 1) === 62 ? n + 2 : -1;
|
|
2935
|
+
}
|
|
2936
|
+
function qs(t, e) {
|
|
2937
|
+
if (t.length === 2 && t.charCodeAt(0) === 104) {
|
|
2938
|
+
const r = t.charCodeAt(1) - 48;
|
|
2939
|
+
if (r >= 1 && r <= 6 && (e === void 0 || !("level" in e)))
|
|
2940
|
+
return " level={" + r + "}";
|
|
2941
|
+
} else if (t === "ol" && (e === void 0 || !("start" in e)))
|
|
2942
|
+
return " start={1}";
|
|
2943
|
+
return "";
|
|
2944
|
+
}
|
|
2945
|
+
function Ss(t, e, r, o, n, s, l) {
|
|
2946
|
+
if (I === 0) return;
|
|
2947
|
+
const a = r + (n - o);
|
|
2948
|
+
I === 1 ? (K(e, r, a, o, n), K(e, a, s, n, l)) : (n > o && q(
|
|
2949
|
+
e,
|
|
2950
|
+
r,
|
|
2951
|
+
a,
|
|
2952
|
+
o,
|
|
2953
|
+
n,
|
|
2954
|
+
t.index,
|
|
2955
|
+
9
|
|
2956
|
+
/* SVELTE_CONTENT */
|
|
2957
|
+
), q(
|
|
2958
|
+
e,
|
|
2959
|
+
a,
|
|
2960
|
+
s,
|
|
2961
|
+
n,
|
|
2962
|
+
l,
|
|
2963
|
+
t.index,
|
|
2964
|
+
9
|
|
2965
|
+
/* SVELTE_CONTENT */
|
|
2966
|
+
));
|
|
2967
|
+
}
|
|
2968
|
+
function wt(t, e) {
|
|
2969
|
+
return " " + t + "={" + JSON.stringify(e) + "}";
|
|
2970
|
+
}
|
|
2971
|
+
function Ct(t, e) {
|
|
2972
|
+
let r = e == null ? void 0 : e.info;
|
|
2973
|
+
if (!r) {
|
|
2974
|
+
const o = e == null ? void 0 : e.info_start, n = e == null ? void 0 : e.info_end;
|
|
2975
|
+
o != null && n != null && (r = t.slice(o, n));
|
|
2976
|
+
}
|
|
2977
|
+
return r;
|
|
2978
|
+
}
|
|
2979
|
+
function Gr(t, e, r, o) {
|
|
2980
|
+
var y;
|
|
2981
|
+
I !== 0 && r !== 0 && (i += _[r], r = 0);
|
|
2982
|
+
const n = t.kind;
|
|
2983
|
+
if (n >= 30 && n <= 32)
|
|
2984
|
+
return Os(t, e, r, o);
|
|
2985
|
+
const s = i.length, l = o.local;
|
|
2986
|
+
let a = "<" + l, c = "", u = "</" + l + ">", f = 0;
|
|
2987
|
+
switch (n) {
|
|
2988
|
+
case 3:
|
|
2989
|
+
a += D(t) + " level={" + t.extra + "}";
|
|
2990
|
+
break;
|
|
2991
|
+
case 12: {
|
|
2992
|
+
const m = t.meta();
|
|
2993
|
+
m != null && m.href && (a += ' href="' + T(m.href) + '"'), m != null && m.title && (a += ' title="' + T(m.title) + '"'), a += D(t, oe);
|
|
2994
|
+
break;
|
|
2995
|
+
}
|
|
2996
|
+
case 13: {
|
|
2997
|
+
const m = t.meta();
|
|
2998
|
+
return m != null && m.src && (a += ' src="' + T(m.src) + '"'), a += ' alt="' + T(Gt(t)) + '"', m != null && m.title && (a += ' title="' + T(m.title) + '"'), r = A(r, a + D(t, se) + " />"), be(
|
|
2999
|
+
t,
|
|
3000
|
+
e,
|
|
3001
|
+
s,
|
|
3002
|
+
0
|
|
3003
|
+
/* TEXT */
|
|
3004
|
+
), r;
|
|
3005
|
+
}
|
|
3006
|
+
case 11:
|
|
3007
|
+
return r = A(r, a + D(t) + " />"), be(
|
|
3008
|
+
t,
|
|
3009
|
+
e,
|
|
3010
|
+
s,
|
|
3011
|
+
3
|
|
3012
|
+
/* STRUCTURE */
|
|
3013
|
+
), r;
|
|
3014
|
+
case 17:
|
|
3015
|
+
return A(r, a + D(t) + ` />
|
|
3016
|
+
`);
|
|
3017
|
+
case 15: {
|
|
3018
|
+
const m = t.meta();
|
|
3019
|
+
if (a += D(t), m != null && m.ordered) {
|
|
3020
|
+
const x = m.start;
|
|
3021
|
+
a += " start={" + (typeof x == "number" ? x : 1) + "}";
|
|
3022
|
+
}
|
|
3023
|
+
c = `
|
|
3024
|
+
`, u = `
|
|
3025
|
+
` + u, f = 3;
|
|
3026
|
+
break;
|
|
3027
|
+
}
|
|
3028
|
+
case 16: {
|
|
3029
|
+
const m = (y = t.meta()) == null ? void 0 : y.checked;
|
|
3030
|
+
typeof m == "boolean" ? a += D(t, ws) + " checked={" + m + "}" : a += D(t), u += `
|
|
3031
|
+
`;
|
|
3032
|
+
break;
|
|
3033
|
+
}
|
|
3034
|
+
case 14:
|
|
3035
|
+
a += D(t), c = `
|
|
3036
|
+
`, u = `
|
|
3037
|
+
` + u;
|
|
3038
|
+
break;
|
|
3039
|
+
case 22:
|
|
3040
|
+
a += D(t), c = `
|
|
3041
|
+
`, u = `
|
|
3042
|
+
` + u, f = 3;
|
|
3043
|
+
break;
|
|
3044
|
+
case 8: {
|
|
3045
|
+
if (R !== null) {
|
|
3046
|
+
const j = ce(t);
|
|
3047
|
+
if (j !== null) return zs(t, e, r, j, a, u);
|
|
3048
|
+
}
|
|
3049
|
+
r = A(r, a + D(t) + ">");
|
|
3050
|
+
const m = i.length;
|
|
3051
|
+
let x = Lt(t);
|
|
3052
|
+
k.call(x, `
|
|
3053
|
+
`) !== -1 && (x = x.replace(/\n/g, " ")), r = Qe(t, e, r, x);
|
|
3054
|
+
const E = i.length;
|
|
3055
|
+
return r = A(r, u), kt(
|
|
3056
|
+
t,
|
|
3057
|
+
e,
|
|
3058
|
+
s,
|
|
3059
|
+
m,
|
|
3060
|
+
E,
|
|
3061
|
+
i.length,
|
|
3062
|
+
1
|
|
3063
|
+
/* CODE */
|
|
3064
|
+
), r;
|
|
3065
|
+
}
|
|
3066
|
+
case 5: {
|
|
3067
|
+
const m = Ct(t, t.meta());
|
|
3068
|
+
if (R !== null) {
|
|
3069
|
+
const V = ae(t, m);
|
|
3070
|
+
if (V !== null) return Ms(t, e, r, V, m, a, u);
|
|
3071
|
+
}
|
|
3072
|
+
a += D(t);
|
|
3073
|
+
let x = "<code>";
|
|
3074
|
+
if (m) {
|
|
3075
|
+
const V = Rt(m), W = kr(m);
|
|
3076
|
+
a += wt("lang", V), W && (a += wt("meta", W), ut !== null && (a += ut.pre_props(W, t.start))), x = '<code class="language-' + Zt(V) + '">';
|
|
3077
|
+
}
|
|
3078
|
+
r = A(r, a + wt("code", qe(t)) + "><pre>" + x);
|
|
3079
|
+
const E = i.length;
|
|
3080
|
+
r = Qe(t, e, r, Xt(t));
|
|
3081
|
+
const j = i.length;
|
|
3082
|
+
return r = A(r, "</code></pre>" + u), kt(
|
|
3083
|
+
t,
|
|
3084
|
+
e,
|
|
3085
|
+
s,
|
|
3086
|
+
E,
|
|
3087
|
+
j,
|
|
3088
|
+
i.length,
|
|
3089
|
+
1
|
|
3090
|
+
/* CODE */
|
|
3091
|
+
), r;
|
|
3092
|
+
}
|
|
3093
|
+
case 2: {
|
|
3094
|
+
const m = t.meta(), x = m.tag, E = m.attributes, j = t.end !== 4294967295 && t.end > t.start, V = j ? ys(t, x, E) : -1, W = t.start + 1 + x.length, yt = s + a.length;
|
|
3095
|
+
if (V !== -1) a += t.slice(W, Ye);
|
|
3096
|
+
else if (E)
|
|
3097
|
+
for (const at in E) {
|
|
3098
|
+
const nt = E[at];
|
|
3099
|
+
nt === !0 ? a += " " + at : typeof nt == "object" && nt.type === "expression" ? a += te(at, C(nt.value)) : a += " " + at + '="' + Ht(C(nt), j) + '"';
|
|
3100
|
+
}
|
|
3101
|
+
j && (a += qs(x, E));
|
|
3102
|
+
const Ot = m.self_closing ? " />" : ">";
|
|
3103
|
+
if (V !== -1 && Ss(
|
|
3104
|
+
t,
|
|
3105
|
+
e,
|
|
3106
|
+
yt,
|
|
3107
|
+
W,
|
|
3108
|
+
Ye,
|
|
3109
|
+
s + a.length + Ot.length,
|
|
3110
|
+
V
|
|
3111
|
+
), m.self_closing)
|
|
3112
|
+
return r = A(r, a + Ot), be(
|
|
3113
|
+
t,
|
|
3114
|
+
e,
|
|
3115
|
+
s,
|
|
3116
|
+
0
|
|
3117
|
+
/* TEXT */
|
|
3118
|
+
), r;
|
|
3119
|
+
break;
|
|
3120
|
+
}
|
|
3121
|
+
default:
|
|
3122
|
+
a += D(t);
|
|
3123
|
+
}
|
|
3124
|
+
r = A(r, a + ">" + c);
|
|
3125
|
+
const h = i.length;
|
|
3126
|
+
r = n === 22 ? He(t, e, r) : ie(t, e, r);
|
|
3127
|
+
const b = i.length;
|
|
3128
|
+
return r = A(r, u), kt(t, e, s, h, b, i.length, f), r;
|
|
3129
|
+
}
|
|
3130
|
+
class Gn extends Error {
|
|
3131
|
+
constructor(e, r) {
|
|
3132
|
+
const o = e.start, n = e.source;
|
|
3133
|
+
let s = 1, l = 0;
|
|
3134
|
+
for (let u = n.indexOf(`
|
|
3135
|
+
`); u !== -1 && u < o; u = n.indexOf(`
|
|
3136
|
+
`, u + 1))
|
|
3137
|
+
s++, l = u + 1;
|
|
3138
|
+
const a = o - l + 1, c = As(e);
|
|
3139
|
+
super(r.replace("%", c + " at " + s + ":" + a)), this.name = "DirectiveError", this.directive = c, this.start = o, this.line = s, this.column = a;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
function As(t) {
|
|
3143
|
+
const e = t.kind;
|
|
3144
|
+
return (e === 30 ? ":" : e === 31 ? "::" : ":::") + Ie(t);
|
|
3145
|
+
}
|
|
3146
|
+
function Kr(t) {
|
|
3147
|
+
const e = t.kind;
|
|
3148
|
+
e >= 30 && e <= 32 && Ls(t);
|
|
3149
|
+
}
|
|
3150
|
+
function Ls(t) {
|
|
3151
|
+
const e = t.kind, r = e === 30 ? "directive_inline" : e === 31 ? "directive_leaf" : "directive_container";
|
|
3152
|
+
throw new Gn(
|
|
3153
|
+
t,
|
|
3154
|
+
"no component renders the directive %. Export a component named " + JSON.stringify(Ie(t)) + " from a directives module (export * as directives from './directives.ts'), or replace the " + r + " node in a parse plugin"
|
|
3155
|
+
);
|
|
3156
|
+
}
|
|
3157
|
+
function Ts(t, e) {
|
|
3158
|
+
var n;
|
|
3159
|
+
const r = (n = t.meta()) == null ? void 0 : n.args;
|
|
3160
|
+
if (r === void 0) return "";
|
|
3161
|
+
let o = "";
|
|
3162
|
+
for (const s in r) {
|
|
3163
|
+
if (s === "children" || s === "label" && e !== 30)
|
|
3164
|
+
throw new Gn(
|
|
3165
|
+
t,
|
|
3166
|
+
"the directive % has an argument named " + s + ", which its component receives as a snippet"
|
|
3167
|
+
);
|
|
3168
|
+
const l = r[s];
|
|
3169
|
+
o += l.indexOf("{") === -1 && l.indexOf("}") === -1 ? " " + s + '="' + Yt(l) + '"' : wt(s, l);
|
|
3170
|
+
}
|
|
3171
|
+
return o;
|
|
3172
|
+
}
|
|
3173
|
+
function Ds(t) {
|
|
3174
|
+
const e = t.words;
|
|
3175
|
+
let r = e[
|
|
3176
|
+
t.index * 12 + 8
|
|
3177
|
+
/* first_child */
|
|
3178
|
+
];
|
|
3179
|
+
if (r === 4294967295) return !1;
|
|
3180
|
+
const o = t.index;
|
|
3181
|
+
do {
|
|
3182
|
+
const n = r * 12;
|
|
3183
|
+
if (e[
|
|
3184
|
+
n + 5
|
|
3185
|
+
/* parent */
|
|
3186
|
+
] !== o) return !1;
|
|
3187
|
+
const s = e[n] & 255;
|
|
3188
|
+
if (s !== 6 && s !== 35) return !0;
|
|
3189
|
+
r = e[
|
|
3190
|
+
n + 6
|
|
3191
|
+
/* next */
|
|
3192
|
+
];
|
|
3193
|
+
} while (r !== 4294967295);
|
|
3194
|
+
return !1;
|
|
3195
|
+
}
|
|
3196
|
+
function Cs(t) {
|
|
3197
|
+
const e = t.words, r = e[
|
|
3198
|
+
t.index * 12 + 8
|
|
3199
|
+
/* first_child */
|
|
3200
|
+
];
|
|
3201
|
+
if (r === 4294967295) return 4294967295;
|
|
3202
|
+
const o = r * 12;
|
|
3203
|
+
return e[
|
|
3204
|
+
o + 5
|
|
3205
|
+
/* parent */
|
|
3206
|
+
] === t.index && (e[o] & 255) === 35 ? r : 4294967295;
|
|
3207
|
+
}
|
|
3208
|
+
function Rs(t, e, r, o) {
|
|
3209
|
+
r = A(r, "{#snippet label()}");
|
|
3210
|
+
const n = t.index;
|
|
3211
|
+
return t.move_to(o), r = ie(t, e, r), t.move_to(n), A(r, "{/snippet}");
|
|
3212
|
+
}
|
|
3213
|
+
function Os(t, e, r, o) {
|
|
3214
|
+
const n = i.length, s = t.kind, l = o.local, a = "<" + l + Ts(t, s), c = s === 30 ? 4294967295 : Cs(t), u = c !== 4294967295, f = s === 30 ? t.words[
|
|
3215
|
+
t.index * 12 + 8
|
|
3216
|
+
/* first_child */
|
|
3217
|
+
] !== 4294967295 : s === 32 && Ds(t);
|
|
3218
|
+
if (!u && !f)
|
|
3219
|
+
return r = A(r, a + " />"), be(
|
|
3220
|
+
t,
|
|
3221
|
+
e,
|
|
3222
|
+
n,
|
|
3223
|
+
3
|
|
3224
|
+
/* STRUCTURE */
|
|
3225
|
+
), r;
|
|
3226
|
+
r = A(r, a + ">"), u && (r = Rs(t, e, r, c));
|
|
3227
|
+
const h = i.length;
|
|
3228
|
+
f && (s === 32 && (r = A(r, `
|
|
3229
|
+
`)), r = ie(t, e, r), s === 32 && (r = A(r, `
|
|
3230
|
+
`)));
|
|
3231
|
+
const b = i.length;
|
|
3232
|
+
return r = A(r, "</" + l + ">"), kt(
|
|
3233
|
+
t,
|
|
3234
|
+
e,
|
|
3235
|
+
n,
|
|
3236
|
+
h,
|
|
3237
|
+
b,
|
|
3238
|
+
i.length,
|
|
3239
|
+
s === 30 ? 0 : 3
|
|
3240
|
+
/* STRUCTURE */
|
|
3241
|
+
), r;
|
|
3242
|
+
}
|
|
3243
|
+
function He(t, e, r) {
|
|
3244
|
+
const o = t.meta(), n = (o == null ? void 0 : o.alignments) ?? [], s = Mt(o, n), l = H.get("thead"), a = H.get("tbody"), c = H.get("tr"), u = c ? "<" + c.local + `>
|
|
3245
|
+
` : `<tr>
|
|
3246
|
+
`, f = c ? "</" + c.local + `>
|
|
3247
|
+
` : `</tr>
|
|
3248
|
+
`;
|
|
3249
|
+
let h = !1;
|
|
3250
|
+
if (!t.goto_first_child()) return r;
|
|
3251
|
+
do
|
|
3252
|
+
if (t.kind === 23)
|
|
3253
|
+
r = A(r, (l ? "<" + l.local + `>
|
|
3254
|
+
` : `<thead>
|
|
3255
|
+
`) + u), r = s ? un(t, e, r, "th", n, 0, Kt) : cn(t, e, r, "th", n), r = A(
|
|
3256
|
+
r,
|
|
3257
|
+
f + (l ? "</" + l.local + `>
|
|
3258
|
+
` : `</thead>
|
|
3259
|
+
`)
|
|
3260
|
+
);
|
|
3261
|
+
else if (t.kind === 24) {
|
|
3262
|
+
let b = u;
|
|
3263
|
+
h || (b = (a ? "<" + a.local + `>
|
|
3264
|
+
` : `<tbody>
|
|
3265
|
+
`) + b, h = !0), r = A(r, b), r = s ? un(t, e, r, "td", n, Tt, Dt) : cn(t, e, r, "td", n), r = A(r, f);
|
|
3266
|
+
}
|
|
3267
|
+
while (t.goto_next_sibling());
|
|
3268
|
+
return t.goto_parent(), h && (r = A(r, a ? "</" + a.local + ">" : "</tbody>")), r;
|
|
3269
|
+
}
|
|
3270
|
+
function cn(t, e, r, o, n) {
|
|
3271
|
+
const s = H.get(o), l = s ? s.local : o;
|
|
3272
|
+
let a = 0;
|
|
3273
|
+
if (!t.goto_first_child()) return r;
|
|
3274
|
+
do
|
|
3275
|
+
if (t.kind === 25) {
|
|
3276
|
+
const c = n[a];
|
|
3277
|
+
r = A(
|
|
3278
|
+
r,
|
|
3279
|
+
c && c !== "none" ? "<" + l + ' align="' + c + '">' : "<" + l + ">"
|
|
3280
|
+
), r = ie(t, e, r), r = A(r, "</" + l + `>
|
|
3281
|
+
`), a++;
|
|
3282
|
+
}
|
|
3283
|
+
while (t.goto_next_sibling());
|
|
3284
|
+
return t.goto_parent(), r;
|
|
3285
|
+
}
|
|
3286
|
+
function un(t, e, r, o, n, s, l) {
|
|
3287
|
+
const a = H.get(o), c = a ? a.local : o, u = o === "th" ? void 0 : H.get("th"), f = u ? u.local : "th";
|
|
3288
|
+
if (!t.goto_first_child()) return r;
|
|
3289
|
+
do
|
|
3290
|
+
if (t.kind === 25) {
|
|
3291
|
+
const h = t.extra, b = h < s || h >= l, y = le(t, h, n), m = b ? f : c;
|
|
3292
|
+
r = A(
|
|
3293
|
+
r,
|
|
3294
|
+
b ? "<" + m + ' scope="row"' + y + ">" : "<" + m + y + ">"
|
|
3295
|
+
), r = ie(t, e, r), r = A(r, "</" + m + `>
|
|
3296
|
+
`);
|
|
3297
|
+
}
|
|
3298
|
+
while (t.goto_next_sibling());
|
|
3299
|
+
return t.goto_parent(), r;
|
|
3300
|
+
}
|
|
3301
|
+
let We = new Uint32Array(0);
|
|
3302
|
+
function Kn(t, e) {
|
|
3303
|
+
const r = t.length + 1;
|
|
3304
|
+
let o;
|
|
3305
|
+
if (e !== void 0 && e.length >= r)
|
|
3306
|
+
o = e;
|
|
3307
|
+
else {
|
|
3308
|
+
if (We.length < r) {
|
|
3309
|
+
let n = 16;
|
|
3310
|
+
for (; n < r; ) n <<= 1;
|
|
3311
|
+
We = new Uint32Array(n);
|
|
3312
|
+
}
|
|
3313
|
+
o = We;
|
|
3314
|
+
}
|
|
3315
|
+
o[0] = 0;
|
|
3316
|
+
for (let n = 0; n < t.length; n++)
|
|
3317
|
+
o[n + 1] = o[n] + (t[n] + "").length;
|
|
3318
|
+
return o;
|
|
3319
|
+
}
|
|
3320
|
+
function Mn(t, e) {
|
|
3321
|
+
const r = new tr();
|
|
3322
|
+
return r.syntax = t.syntax, r.rec = lo(t.rec, t.n, Kn(e)), r.n = t.n, r;
|
|
3323
|
+
}
|
|
3324
|
+
function zn(t, e) {
|
|
3325
|
+
const r = t.n, o = so(r, 0, e), n = o.buf, s = o.start, l = t.rec;
|
|
3326
|
+
if (r > 64) n.set(l.subarray(0, r), s);
|
|
3327
|
+
else for (let a = 0; a < r; a++) n[s + a] = l[a];
|
|
3328
|
+
return o;
|
|
3329
|
+
}
|
|
3330
|
+
function Mr(t) {
|
|
3331
|
+
return Zn(t.rec, t.n);
|
|
3332
|
+
}
|
|
3333
|
+
function fn(t, e, r) {
|
|
3334
|
+
const o = t.length;
|
|
3335
|
+
let n, s;
|
|
3336
|
+
if (r < o && t[r] < e) {
|
|
3337
|
+
n = r + 1;
|
|
3338
|
+
let l = 1;
|
|
3339
|
+
for (; ; ) {
|
|
3340
|
+
if (s = r + l, s >= o) {
|
|
3341
|
+
s = o;
|
|
3342
|
+
break;
|
|
3343
|
+
}
|
|
3344
|
+
if (t[s] >= e) break;
|
|
3345
|
+
n = s + 1, l += l;
|
|
3346
|
+
}
|
|
3347
|
+
} else if (r > 0 && t[r - 1] >= e) {
|
|
3348
|
+
s = r - 1;
|
|
3349
|
+
let l = 1;
|
|
3350
|
+
for (; ; ) {
|
|
3351
|
+
if (n = r - 1 - l, n <= 0) {
|
|
3352
|
+
n = 0;
|
|
3353
|
+
break;
|
|
3354
|
+
}
|
|
3355
|
+
if (t[n] < e) {
|
|
3356
|
+
n++;
|
|
3357
|
+
break;
|
|
3358
|
+
}
|
|
3359
|
+
s = n, l += l;
|
|
3360
|
+
}
|
|
3361
|
+
} else
|
|
3362
|
+
return r;
|
|
3363
|
+
for (; n < s; ) {
|
|
3364
|
+
const l = n + s >>> 1;
|
|
3365
|
+
t[l] < e ? n = l + 1 : s = l;
|
|
3366
|
+
}
|
|
3367
|
+
return n;
|
|
3368
|
+
}
|
|
3369
|
+
function Ns(t, e) {
|
|
3370
|
+
const r = t.rec, o = t.n, n = e.length, s = new Array(
|
|
3371
|
+
o / 6
|
|
3372
|
+
/* SIZE */
|
|
3373
|
+
);
|
|
3374
|
+
let l = 0;
|
|
3375
|
+
const a = Xn;
|
|
3376
|
+
let c = 0;
|
|
3377
|
+
for (let u = 0; u < o; u += 6) {
|
|
3378
|
+
const f = r[u + 3], h = r[u], b = r[u + 1];
|
|
3379
|
+
let y = r[u + 2];
|
|
3380
|
+
const m = y + f, x = b === f;
|
|
3381
|
+
c = fn(e, y, c);
|
|
3382
|
+
const E = r[u + 5], j = r[u + 4] | 0, V = (j + 1) * 16 + E;
|
|
3383
|
+
if (x) {
|
|
3384
|
+
if (c < n && e[c] + 1 < m) {
|
|
3385
|
+
const yt = [], Ot = [], at = [];
|
|
3386
|
+
let nt = h;
|
|
3387
|
+
for (; c < n && e[c] + 1 < m; ) {
|
|
3388
|
+
const ze = e[c] + 1;
|
|
3389
|
+
yt.push(y + c), Ot.push(nt), at.push(ze - y), nt += ze - y, y = ze, c++;
|
|
3390
|
+
}
|
|
3391
|
+
yt.push(y + c), Ot.push(nt), at.push(m - y);
|
|
3392
|
+
const Yn = {
|
|
3393
|
+
sourceOffsets: yt,
|
|
3394
|
+
generatedOffsets: Ot,
|
|
3395
|
+
lengths: at,
|
|
3396
|
+
data: a(E, j)
|
|
3397
|
+
};
|
|
3398
|
+
s[l++] = new ue(0, 0, 0, 0, V, Yn);
|
|
3399
|
+
} else
|
|
3400
|
+
s[l++] = new ue(
|
|
3401
|
+
y + c,
|
|
3402
|
+
h,
|
|
3403
|
+
f,
|
|
3404
|
+
f,
|
|
3405
|
+
V,
|
|
3406
|
+
null
|
|
3407
|
+
);
|
|
3408
|
+
continue;
|
|
3409
|
+
}
|
|
3410
|
+
let W = f;
|
|
3411
|
+
if (c < n && e[c] < m && (W = m + fn(e, m, c) - y - c), W !== b)
|
|
3412
|
+
s[l++] = new ue(
|
|
3413
|
+
y + c,
|
|
3414
|
+
h,
|
|
3415
|
+
W,
|
|
3416
|
+
b,
|
|
3417
|
+
V,
|
|
3418
|
+
null
|
|
3419
|
+
);
|
|
3420
|
+
else {
|
|
3421
|
+
const yt = {
|
|
3422
|
+
sourceOffsets: [y + c],
|
|
3423
|
+
generatedOffsets: [h],
|
|
3424
|
+
lengths: [W],
|
|
3425
|
+
data: a(E, j),
|
|
3426
|
+
generatedLengths: [b]
|
|
3427
|
+
};
|
|
3428
|
+
s[l++] = new ue(0, 0, 0, 0, V, yt);
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
return s;
|
|
3432
|
+
}
|
|
3433
|
+
const Ps = Yt, Cl = Eo, Rl = er, Ol = Lt, Nl = T, Pl = Lo, Bl = O, Ul = lr, Il = Kn;
|
|
3434
|
+
function Hl(t, e) {
|
|
3435
|
+
const r = Mn(t, e), o = new tr();
|
|
3436
|
+
return o.rec = oo(r.rec, r.n), o.n = o.rec.length, zn(o, { buf: o.rec, start: 0, split: 0, end: 0 });
|
|
3437
|
+
}
|
|
3438
|
+
function Vl(t, e) {
|
|
3439
|
+
return Mr(Mn(e, t));
|
|
3440
|
+
}
|
|
3441
|
+
const ge = new tr(), Bs = 16384, Ze = "Template_MDSVEX", hn = "__mdsvex_props", Us = /\$props\s*\(\s*\)/, Is = /\b(?:let|const|var)\s+([A-Za-z_$][\w$]*)\s*(?::[^=;]*)?=\s*\$props\s*\(\s*\)/, Hs = /* @__PURE__ */ new Set([
|
|
3442
|
+
"script",
|
|
3443
|
+
"style",
|
|
3444
|
+
"svelte:head",
|
|
3445
|
+
"svelte:window",
|
|
3446
|
+
"svelte:body",
|
|
3447
|
+
"svelte:document",
|
|
3448
|
+
"svelte:options"
|
|
3449
|
+
]);
|
|
3450
|
+
let zr = "", jr = !1, Fr = "", Pt = 0;
|
|
3451
|
+
function Vs(t, e) {
|
|
3452
|
+
zr = t.specifier, jr = t.metadata, Pt = e;
|
|
3453
|
+
}
|
|
3454
|
+
function Gs() {
|
|
3455
|
+
zr = "", jr = !1, Fr = "", Pt = 0, ot = "", bt = "";
|
|
3456
|
+
}
|
|
3457
|
+
function Ks(t, e) {
|
|
3458
|
+
var o;
|
|
3459
|
+
if (e === 34 || e === 33) return !0;
|
|
3460
|
+
if (e !== 2) return !1;
|
|
3461
|
+
const r = (o = t.meta()) == null ? void 0 : o.tag;
|
|
3462
|
+
return typeof r == "string" && Hs.has(r) && // an external script renders as an element, it is markup
|
|
3463
|
+
!ne(t, r);
|
|
3464
|
+
}
|
|
3465
|
+
function dn(t, e, r, o) {
|
|
3466
|
+
const n = t.words;
|
|
3467
|
+
let s = n[
|
|
3468
|
+
8
|
|
3469
|
+
/* first_child */
|
|
3470
|
+
];
|
|
3471
|
+
for (; s !== 4294967295; ) {
|
|
3472
|
+
const l = s * 12;
|
|
3473
|
+
if (n[
|
|
3474
|
+
l + 5
|
|
3475
|
+
/* parent */
|
|
3476
|
+
] !== 0) break;
|
|
3477
|
+
const a = n[l] & 255;
|
|
3478
|
+
if (a !== 6 && (t.move_to(s), Ks(t, a) === o))
|
|
3479
|
+
if (Pt === 0) r = Pe(t, r);
|
|
3480
|
+
else if (a === 1) {
|
|
3481
|
+
const c = n[
|
|
3482
|
+
l + 3
|
|
3483
|
+
/* value_start */
|
|
3484
|
+
], u = n[
|
|
3485
|
+
l + 4
|
|
3486
|
+
/* value_end */
|
|
3487
|
+
], f = vt(t, s, c, u, !1);
|
|
3488
|
+
if (r !== 0 && (i += _[r]), r = 0, c !== 4294967295 && u > c) {
|
|
3489
|
+
const h = i.length;
|
|
3490
|
+
Pt === 1 ? K(e, h, h + f.length, c, u) : q(
|
|
3491
|
+
e,
|
|
3492
|
+
h,
|
|
3493
|
+
h + f.length,
|
|
3494
|
+
c,
|
|
3495
|
+
u,
|
|
3496
|
+
s,
|
|
3497
|
+
1
|
|
3498
|
+
/* TEXT_CONTENT */
|
|
3499
|
+
);
|
|
3500
|
+
}
|
|
3501
|
+
i += f;
|
|
3502
|
+
} else Pt === 1 ? r = Be(t, e, r) : r = Ue(t, e, r);
|
|
3503
|
+
s = n[
|
|
3504
|
+
l + 6
|
|
3505
|
+
/* next */
|
|
3506
|
+
];
|
|
3507
|
+
}
|
|
3508
|
+
return t.move_to(0), r;
|
|
3509
|
+
}
|
|
3510
|
+
function gn(t, e, r) {
|
|
3511
|
+
return r = dn(t, e, r, !0), r = _n(r, Fr), r = dn(t, e, r, !1), _n(r, "</" + Ze + ">");
|
|
3512
|
+
}
|
|
3513
|
+
function _n(t, e) {
|
|
3514
|
+
return Pt === 0 ? v(t, e) : (t !== 0 && (i += _[t]), i += e, 0);
|
|
3515
|
+
}
|
|
3516
|
+
function bn(t) {
|
|
3517
|
+
return Bn(t);
|
|
3518
|
+
}
|
|
3519
|
+
class Gl {
|
|
3520
|
+
constructor(e) {
|
|
3521
|
+
this.blocks = [], this.html = "", this.closed = null, this.cursor = null, this.out = [], this.scope = null, this.replace_typed = !1, this.directives = null, this.highlight = null, this.pre_meta = null, this.strict_directives = !1, this.cache = (e == null ? void 0 : e.cache) ?? !0, this.cache && (this.closed = /* @__PURE__ */ new Set());
|
|
3522
|
+
}
|
|
3523
|
+
/** elements the last render with a scope kept for a directive, a render without one stores nothing */
|
|
3524
|
+
get warnings() {
|
|
3525
|
+
return Ft;
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* @param code code the module script starts with, it goes into the top
|
|
3529
|
+
* level module script or a new one in place of the frontmatter
|
|
3530
|
+
*/
|
|
3531
|
+
update(e, r, o) {
|
|
3532
|
+
this.cursor ? this.cursor.reinit(e, r) : this.cursor = new $r(e, r);
|
|
3533
|
+
const n = this.cursor;
|
|
3534
|
+
if (n.reset(), Jt(r), R = this.highlight, ut = this.pre_meta, !this.cache) {
|
|
3535
|
+
const s = this.scope, l = this.directives;
|
|
3536
|
+
if (this.template !== void 0)
|
|
3537
|
+
return this.html = this.render_wrapped(n, e, null, !1, o), this.blocks;
|
|
3538
|
+
try {
|
|
3539
|
+
(s !== null && s.size !== 0 || l !== null && l.size !== 0) && (Ft = ke(
|
|
3540
|
+
n,
|
|
3541
|
+
s,
|
|
3542
|
+
l,
|
|
3543
|
+
0,
|
|
3544
|
+
this.replace_typed
|
|
3545
|
+
)), this.strict_directives && (F = !0), Fe(e), o && fe(e, o), _e(e), this.html = Bn(n);
|
|
3546
|
+
} finally {
|
|
3547
|
+
R = null, ut = null, St = !0, Nt = null, F && (F = !1), H !== null && $e(), o && he();
|
|
3548
|
+
}
|
|
3549
|
+
return this.blocks;
|
|
3550
|
+
}
|
|
3551
|
+
try {
|
|
3552
|
+
Fe(e), o && fe(e, o), this.update_blocks(n);
|
|
3553
|
+
} finally {
|
|
3554
|
+
R = null, ut = null, o && he();
|
|
3555
|
+
}
|
|
3556
|
+
return this.blocks;
|
|
3557
|
+
}
|
|
3558
|
+
/** the cached render, block by block */
|
|
3559
|
+
update_blocks(e) {
|
|
3560
|
+
if (!e.goto_first_child()) return;
|
|
3561
|
+
let r = 0;
|
|
3562
|
+
do {
|
|
3563
|
+
if (e.kind === 6) continue;
|
|
3564
|
+
const o = e.index, n = e.closed && e.kind !== 34 && e.kind !== 33 && o !== et && o !== Et;
|
|
3565
|
+
r >= this.blocks.length ? (this.blocks.push({ idx: o, html: bn(e) }), n && this.closed.add(o)) : this.closed.has(o) || (this.blocks[r].html = bn(e), n && this.closed.add(o)), r++;
|
|
3566
|
+
} while (e.goto_next_sibling());
|
|
3567
|
+
e.goto_parent(), this.html = this.blocks.map((o) => o.html).join("");
|
|
3568
|
+
}
|
|
3569
|
+
/** trace renders with no syntax records, see tr_node */
|
|
3570
|
+
render_mapped(e, r, o, n, s) {
|
|
3571
|
+
this.cursor ? this.cursor.reinit(e, r) : this.cursor = new $r(e, r);
|
|
3572
|
+
const l = this.cursor;
|
|
3573
|
+
if (l.reset(), Jt(r), R = this.highlight, ut = this.pre_meta, this.template !== void 0) {
|
|
3574
|
+
this.html = this.render_wrapped(l, e, o, n, s);
|
|
3575
|
+
return;
|
|
3576
|
+
}
|
|
3577
|
+
const a = this.scope, c = this.directives;
|
|
3578
|
+
let u = 0;
|
|
3579
|
+
try {
|
|
3580
|
+
(a !== null && a.size !== 0 || c !== null && c.size !== 0) && (Ft = ke(
|
|
3581
|
+
l,
|
|
3582
|
+
a,
|
|
3583
|
+
c,
|
|
3584
|
+
n ? 1 : 2,
|
|
3585
|
+
this.replace_typed
|
|
3586
|
+
)), this.strict_directives && (F = !0), Fe(e), i = bt, s && (fe(e, s), i += we()), _e(e), n ? u = Be(l, o, 0) : u = Ue(l, o, 0);
|
|
3587
|
+
} finally {
|
|
3588
|
+
R = null, ut = null, St = !0, Nt = null, F && (F = !1), H !== null && $e(), s && he();
|
|
3589
|
+
}
|
|
3590
|
+
let f = i;
|
|
3591
|
+
i = "", u !== 0 && (f += _[u]), f.length !== 0 && (Je[0] = f.charCodeAt(0)), this.html = f;
|
|
3592
|
+
}
|
|
3593
|
+
/**
|
|
3594
|
+
* a render wrapped in the template, kept apart so a plain render pays one
|
|
3595
|
+
* check, sink null for the fold walk
|
|
3596
|
+
*/
|
|
3597
|
+
render_wrapped(e, r, o, n, s) {
|
|
3598
|
+
const l = this.scope, a = this.directives, c = o === null ? 0 : n ? 1 : 2;
|
|
3599
|
+
let u;
|
|
3600
|
+
try {
|
|
3601
|
+
if ((l !== null && l.size !== 0 || a !== null && a.size !== 0) && (Ft = ke(e, l, a, c, this.replace_typed)), this.strict_directives && (F = !0), Vs(this.template, c), Bo(e, r), s && fe(r, s), _e(r), o === null) {
|
|
3602
|
+
st = bt;
|
|
3603
|
+
const f = gn(e, void 0, 0);
|
|
3604
|
+
u = st, st = "", f !== 0 && (u += _[f]);
|
|
3605
|
+
} else {
|
|
3606
|
+
i = bt, s && (i += we());
|
|
3607
|
+
const f = gn(e, o, 0);
|
|
3608
|
+
u = i, i = "", f !== 0 && (u += _[f]);
|
|
3609
|
+
}
|
|
3610
|
+
} finally {
|
|
3611
|
+
R = null, ut = null, St = !0, Nt = null, F && (F = !1), H !== null && $e(), Gs(), s && he(), this.template = void 0;
|
|
3612
|
+
}
|
|
3613
|
+
return u.length !== 0 && (Je[0] = u.charCodeAt(0)), u;
|
|
3614
|
+
}
|
|
3615
|
+
/**
|
|
3616
|
+
* render with source mapping. always full render (no caching).
|
|
3617
|
+
* collapsed moves the source offsets onto raw
|
|
3618
|
+
*/
|
|
3619
|
+
update_mapped(e, r, o, n) {
|
|
3620
|
+
const s = ge;
|
|
3621
|
+
s.begin(!0), this.render_mapped(e, r, s, !1, n);
|
|
3622
|
+
const l = o == null || o.length === 0 ? Mr(s) : Ns(s, o);
|
|
3623
|
+
return s.release(), { blocks: this.blocks, mappings: l };
|
|
3624
|
+
}
|
|
3625
|
+
/**
|
|
3626
|
+
* equals mappings_to_v3 over update_mapped when raw normalizes to source
|
|
3627
|
+
* without collapsing any crlf, but builds no Mapping objects
|
|
3628
|
+
*/
|
|
3629
|
+
update_v3(e, r, o, n, s) {
|
|
3630
|
+
const l = ge;
|
|
3631
|
+
l.begin(!1), this.render_mapped(e, r, l, !0, s);
|
|
3632
|
+
const a = to(l, o, this.html, n);
|
|
3633
|
+
return l.release(), a;
|
|
3634
|
+
}
|
|
3635
|
+
/** trace_to_v3 over the trace with the same arguments equals update_v3 */
|
|
3636
|
+
update_trace(e, r, o) {
|
|
3637
|
+
const n = {
|
|
3638
|
+
buf: ge.rec,
|
|
3639
|
+
start: 0,
|
|
3640
|
+
split: 0,
|
|
3641
|
+
end: 0
|
|
3642
|
+
};
|
|
3643
|
+
return this.update_trace_into(e, r, n, o), n;
|
|
3644
|
+
}
|
|
3645
|
+
/** update_trace filling out instead of a new trace */
|
|
3646
|
+
update_trace_into(e, r, o, n) {
|
|
3647
|
+
const s = ge, l = e.size * (2 * 3);
|
|
3648
|
+
if (l <= Bs) {
|
|
3649
|
+
const a = s.rec;
|
|
3650
|
+
s.rec = eo(l);
|
|
3651
|
+
const c = ro();
|
|
3652
|
+
s.n = c, s.syntax = !1;
|
|
3653
|
+
try {
|
|
3654
|
+
this.render_mapped(e, r, s, !0, n), no(s.rec, c, s.n, o);
|
|
3655
|
+
return;
|
|
3656
|
+
} finally {
|
|
3657
|
+
s.rec = a, s.n = 0;
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
s.begin(!1), this.render_mapped(e, r, s, !0, n), zn(s, o), s.release();
|
|
3661
|
+
}
|
|
3662
|
+
reset() {
|
|
3663
|
+
var e;
|
|
3664
|
+
this.blocks.length = 0, (e = this.closed) == null || e.clear(), this.html = "";
|
|
3665
|
+
}
|
|
3666
|
+
/** drop every reference to the last render so a kept renderer holds no document */
|
|
3667
|
+
release() {
|
|
3668
|
+
var r;
|
|
3669
|
+
this.html = "", this.blocks.length !== 0 && (this.blocks.length = 0);
|
|
3670
|
+
const e = this.closed;
|
|
3671
|
+
e !== null && e.size !== 0 && e.clear(), (r = this.cursor) == null || r.release(), this.scope = null, this.directives = null, this.highlight = null, this.pre_meta = null, this.replace_typed = !1, Ft = or, this.template !== void 0 && (this.template = void 0), ye = "", $t = 0;
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
function Kl(t, e, r) {
|
|
3675
|
+
Jt(e), _e(t), sr(), i = r;
|
|
3676
|
+
}
|
|
3677
|
+
function Ml() {
|
|
3678
|
+
St = !0, Nt = null;
|
|
3679
|
+
const t = i;
|
|
3680
|
+
return i = "", t;
|
|
3681
|
+
}
|
|
3682
|
+
function zl(t) {
|
|
3683
|
+
return Mr(t);
|
|
3684
|
+
}
|
|
3685
|
+
let R = null, ut = null;
|
|
3686
|
+
function jn(t) {
|
|
3687
|
+
for (let e = 0; e < t.length; e++) {
|
|
3688
|
+
const r = t.charCodeAt(e);
|
|
3689
|
+
if (r === 32 || r === 9) return e;
|
|
3690
|
+
}
|
|
3691
|
+
return -1;
|
|
3692
|
+
}
|
|
3693
|
+
function Rt(t) {
|
|
3694
|
+
const e = jn(t);
|
|
3695
|
+
return e === -1 ? t : t.slice(0, e);
|
|
3696
|
+
}
|
|
3697
|
+
function kr(t) {
|
|
3698
|
+
const e = jn(t);
|
|
3699
|
+
return e === -1 ? "" : t.slice(e).trim();
|
|
3700
|
+
}
|
|
3701
|
+
function ae(t, e) {
|
|
3702
|
+
return R.block(
|
|
3703
|
+
qe(t),
|
|
3704
|
+
e ? Rt(e) : "",
|
|
3705
|
+
e ? kr(e) : "",
|
|
3706
|
+
t.start
|
|
3707
|
+
);
|
|
3708
|
+
}
|
|
3709
|
+
function ce(t) {
|
|
3710
|
+
const e = Ct(t, t.meta());
|
|
3711
|
+
if (!e) return null;
|
|
3712
|
+
let r = t.text();
|
|
3713
|
+
return k.call(r, `
|
|
3714
|
+
`) !== -1 && (r = r.replace(/\n/g, " ")), R.inline(r, e, t.start);
|
|
3715
|
+
}
|
|
3716
|
+
function Ve(t, e) {
|
|
3717
|
+
return e.attributes === null ? e.before : e.before + "<pre" + e.attributes + D(t) + ">";
|
|
3718
|
+
}
|
|
3719
|
+
function Ge(t) {
|
|
3720
|
+
return t.attributes === null ? t.after : "</pre>" + t.after;
|
|
3721
|
+
}
|
|
3722
|
+
function Ke(t, e) {
|
|
3723
|
+
return e.attributes === null ? "" : "<code" + e.attributes + D(t) + ">";
|
|
3724
|
+
}
|
|
3725
|
+
function Me(t) {
|
|
3726
|
+
return t.attributes === null ? "" : "</code>";
|
|
3727
|
+
}
|
|
3728
|
+
function Xe(t, e, r, o, n, s) {
|
|
3729
|
+
const l = i.length;
|
|
3730
|
+
i += r;
|
|
3731
|
+
const a = i.length;
|
|
3732
|
+
e && (s === null ? ct(
|
|
3733
|
+
e,
|
|
3734
|
+
t,
|
|
3735
|
+
o,
|
|
3736
|
+
5
|
|
3737
|
+
/* CODE_CONTENT */
|
|
3738
|
+
) : Jn(e, t, a, o, s)), i += o;
|
|
3739
|
+
const c = i.length;
|
|
3740
|
+
i += n, e && S(
|
|
3741
|
+
e,
|
|
3742
|
+
l,
|
|
3743
|
+
a,
|
|
3744
|
+
c,
|
|
3745
|
+
i.length,
|
|
3746
|
+
t,
|
|
3747
|
+
1
|
|
3748
|
+
/* CODE */
|
|
3749
|
+
);
|
|
3750
|
+
}
|
|
3751
|
+
function Fn(t, e, r, o) {
|
|
3752
|
+
return v(t, e + r + o);
|
|
3753
|
+
}
|
|
3754
|
+
function kn(t, e, r, o, n, s, l) {
|
|
3755
|
+
r !== 0 && (i += _[r]);
|
|
3756
|
+
const a = i.length;
|
|
3757
|
+
return i += o, l !== null ? Qn(e, t, i.length, n, l) : n.length !== 0 && N(e, i.length, t.value_start), i += n + s, N(e, a, t.start), 0;
|
|
3758
|
+
}
|
|
3759
|
+
function $n(t, e, r, o, n, s, l) {
|
|
3760
|
+
return r !== 0 && (i += _[r]), Xe(t, e, o, n, s, l), 0;
|
|
3761
|
+
}
|
|
3762
|
+
function Ee(t, e, r, o, n, s, l, a) {
|
|
3763
|
+
r = A(r, n);
|
|
3764
|
+
const c = i.length;
|
|
3765
|
+
a === null || I === 0 ? r = Qe(t, e, r, s) : (I === 1 ? Qn(e, t, c, s, a) : Jn(e, t, c, s, a), i += s);
|
|
3766
|
+
const u = i.length;
|
|
3767
|
+
return r = A(r, l), kt(
|
|
3768
|
+
t,
|
|
3769
|
+
e,
|
|
3770
|
+
o,
|
|
3771
|
+
c,
|
|
3772
|
+
u,
|
|
3773
|
+
i.length,
|
|
3774
|
+
1
|
|
3775
|
+
/* CODE */
|
|
3776
|
+
), r;
|
|
3777
|
+
}
|
|
3778
|
+
function Ms(t, e, r, o, n, s, l) {
|
|
3779
|
+
const a = i.length;
|
|
3780
|
+
if (n) {
|
|
3781
|
+
s += wt("lang", Rt(n));
|
|
3782
|
+
const u = kr(n);
|
|
3783
|
+
u && (s += wt("meta", u));
|
|
3784
|
+
}
|
|
3785
|
+
const c = o.dropped;
|
|
3786
|
+
if (c !== null)
|
|
3787
|
+
for (let u = 0; u < c.length; u++)
|
|
3788
|
+
R.warn("meta_prop_ignored", c[u], t.start);
|
|
3789
|
+
return s += o.props + (o.code_template === null ? wt("code", o.code) : " code={" + o.code_template + "}") + D(t) + ">", o.attributes === null ? Ee(t, e, r, a, s, o.body, l, o.live) : Ee(
|
|
3790
|
+
t,
|
|
3791
|
+
e,
|
|
3792
|
+
r,
|
|
3793
|
+
a,
|
|
3794
|
+
s + "<pre" + o.attributes + ">",
|
|
3795
|
+
o.body,
|
|
3796
|
+
"</pre>" + l,
|
|
3797
|
+
o.live
|
|
3798
|
+
);
|
|
3799
|
+
}
|
|
3800
|
+
function zs(t, e, r, o, n, s) {
|
|
3801
|
+
const l = i.length;
|
|
3802
|
+
return o.attributes === null ? (R.warn(
|
|
3803
|
+
"code_replacement_skipped",
|
|
3804
|
+
"the highlighter output is not a single <code> element, so the code component does not replace it",
|
|
3805
|
+
t.start
|
|
3806
|
+
), Ee(t, e, r, l, "", o.body, "", null)) : (n += wt("lang", Ct(t, t.meta())) + o.attributes + D(t) + ">", Ee(t, e, r, l, n, o.body, s, null));
|
|
3807
|
+
}
|
|
3808
|
+
function Wn(t, e, r, o) {
|
|
3809
|
+
const n = t.value_start;
|
|
3810
|
+
if (t.prebuilt === void 0 && rr(t.words, t.index) === 0)
|
|
3811
|
+
return n + r;
|
|
3812
|
+
const s = t.source, l = t.value_end;
|
|
3813
|
+
let a = n;
|
|
3814
|
+
for (let h = k.call(e, `
|
|
3815
|
+
`); h !== -1 && h < r; h = k.call(e, `
|
|
3816
|
+
`, h + 1))
|
|
3817
|
+
if (a = k.call(s, `
|
|
3818
|
+
`, a) + 1, a === 0 || a > l) return -1;
|
|
3819
|
+
let c = k.call(e, `
|
|
3820
|
+
`, r);
|
|
3821
|
+
c === -1 && (c = e.length);
|
|
3822
|
+
let u = k.call(s, `
|
|
3823
|
+
`, a);
|
|
3824
|
+
(u === -1 || u > l) && (u = l);
|
|
3825
|
+
const f = u - (c - r);
|
|
3826
|
+
return f < a || s.slice(f, f + o) !== e.slice(r, r + o) ? -1 : f;
|
|
3827
|
+
}
|
|
3828
|
+
function Jn(t, e, r, o, n) {
|
|
3829
|
+
const s = qe(e), l = e.index;
|
|
3830
|
+
let a = r, c = e.value_start;
|
|
3831
|
+
for (let f = 0; f < n.length; f += 3) {
|
|
3832
|
+
const h = n[f + 2], b = Wn(e, s, n[f + 1], h);
|
|
3833
|
+
if (b === -1 || b < c) continue;
|
|
3834
|
+
const y = r + n[f];
|
|
3835
|
+
y > a && q(
|
|
3836
|
+
t,
|
|
3837
|
+
a,
|
|
3838
|
+
y,
|
|
3839
|
+
c,
|
|
3840
|
+
b,
|
|
3841
|
+
l,
|
|
3842
|
+
5
|
|
3843
|
+
/* CODE_CONTENT */
|
|
3844
|
+
), q(
|
|
3845
|
+
t,
|
|
3846
|
+
y,
|
|
3847
|
+
y + h,
|
|
3848
|
+
b,
|
|
3849
|
+
b + h,
|
|
3850
|
+
l,
|
|
3851
|
+
9
|
|
3852
|
+
/* SVELTE_CONTENT */
|
|
3853
|
+
), a = y + h, c = b + h;
|
|
3854
|
+
}
|
|
3855
|
+
const u = r + o.length;
|
|
3856
|
+
u > a && q(
|
|
3857
|
+
t,
|
|
3858
|
+
a,
|
|
3859
|
+
u,
|
|
3860
|
+
c,
|
|
3861
|
+
e.value_end,
|
|
3862
|
+
l,
|
|
3863
|
+
5
|
|
3864
|
+
/* CODE_CONTENT */
|
|
3865
|
+
);
|
|
3866
|
+
}
|
|
3867
|
+
function Qn(t, e, r, o, n) {
|
|
3868
|
+
const s = qe(e);
|
|
3869
|
+
let l = r, a = e.value_start;
|
|
3870
|
+
for (let u = 0; u < n.length; u += 3) {
|
|
3871
|
+
const f = n[u + 2], h = Wn(e, s, n[u + 1], f);
|
|
3872
|
+
if (h === -1 || h < a) continue;
|
|
3873
|
+
const b = r + n[u];
|
|
3874
|
+
b > l && K(t, l, b, a, h), K(t, b, b + f, h, h + f), l = b + f, a = h + f;
|
|
3875
|
+
}
|
|
3876
|
+
const c = r + o.length;
|
|
3877
|
+
c > l && K(t, l, c, a, e.value_end);
|
|
3878
|
+
}
|
|
3879
|
+
export {
|
|
3880
|
+
io as ComponentScope,
|
|
3881
|
+
Gl as CursorHTMLRenderer,
|
|
3882
|
+
Gn as DirectiveError,
|
|
3883
|
+
ll as K_BLOCK_QUOTE,
|
|
3884
|
+
Ys as K_CODE_FENCE,
|
|
3885
|
+
tl as K_CODE_SPAN,
|
|
3886
|
+
Sl as K_DIRECTIVE_CONTAINER,
|
|
3887
|
+
yl as K_DIRECTIVE_INLINE,
|
|
3888
|
+
Tl as K_DIRECTIVE_LABEL,
|
|
3889
|
+
ql as K_DIRECTIVE_LEAF,
|
|
3890
|
+
el as K_EMPHASIS,
|
|
3891
|
+
Al as K_FRONTMATTER,
|
|
3892
|
+
cl as K_HARD_BREAK,
|
|
3893
|
+
Qs as K_HEADING,
|
|
3894
|
+
Js as K_HTML,
|
|
3895
|
+
wl as K_HTML_COMMENT,
|
|
3896
|
+
sl as K_IMAGE,
|
|
3897
|
+
Ll as K_IMPORT_STATEMENT,
|
|
3898
|
+
Zs as K_LINE_BREAK,
|
|
3899
|
+
ol as K_LINK,
|
|
3900
|
+
il as K_LIST,
|
|
3901
|
+
al as K_LIST_ITEM,
|
|
3902
|
+
El as K_MUSTACHE,
|
|
3903
|
+
Xs as K_PARAGRAPH,
|
|
3904
|
+
$s as K_ROOT,
|
|
3905
|
+
ul as K_SOFT_BREAK,
|
|
3906
|
+
fl as K_STRIKETHROUGH,
|
|
3907
|
+
rl as K_STRONG,
|
|
3908
|
+
dl as K_SUBSCRIPT,
|
|
3909
|
+
hl as K_SUPERSCRIPT,
|
|
3910
|
+
vl as K_SVELTE_BLOCK,
|
|
3911
|
+
xl as K_SVELTE_BRANCH,
|
|
3912
|
+
pl as K_SVELTE_TAG,
|
|
3913
|
+
gl as K_TABLE,
|
|
3914
|
+
ml as K_TABLE_CELL,
|
|
3915
|
+
_l as K_TABLE_HEADER,
|
|
3916
|
+
bl as K_TABLE_ROW,
|
|
3917
|
+
Ws as K_TEXT,
|
|
3918
|
+
nl as K_THEMATIC_BREAK,
|
|
3919
|
+
tr as MapSink,
|
|
3920
|
+
Dl as NONE,
|
|
3921
|
+
Hl as _capture_trace,
|
|
3922
|
+
Bl as _children,
|
|
3923
|
+
Pl as _emit,
|
|
3924
|
+
Rl as _escape_code,
|
|
3925
|
+
Ol as _escape_code_text,
|
|
3926
|
+
Nl as _escape_text_html,
|
|
3927
|
+
Kl as _mapped_begin,
|
|
3928
|
+
Ml as _mapped_end,
|
|
3929
|
+
Ul as _node,
|
|
3930
|
+
Il as _out_offsets,
|
|
3931
|
+
Vl as _resolve_mappings,
|
|
3932
|
+
zl as _resolve_offset_mappings,
|
|
3933
|
+
wn as component_imports,
|
|
3934
|
+
Ps as escape,
|
|
3935
|
+
Cl as escape_text
|
|
3936
|
+
};
|