@danielito1996/compose-svelted 0.2.2 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppRoot.svelte +15 -0
- package/dist/components/AppRoot.svelte.d.ts +30 -0
- package/dist/components/ContentScale.d.ts +10 -0
- package/dist/components/ContentScale.js +9 -0
- package/dist/components/Icon.svelte +47 -0
- package/dist/components/Icon.svelte.d.ts +24 -0
- package/dist/components/Image.svelte +31 -0
- package/dist/components/Image.svelte.d.ts +25 -0
- package/dist/components/Spacer.svelte +11 -0
- package/dist/components/Spacer.svelte.d.ts +24 -0
- package/dist/components/Surface.svelte +19 -0
- package/dist/components/Surface.svelte.d.ts +32 -0
- package/dist/components/Text.svelte +23 -0
- package/dist/components/Text.svelte.d.ts +34 -0
- package/dist/components/TonalButton.svelte +34 -0
- package/dist/components/TonalButton.svelte.d.ts +36 -0
- package/dist/components/buttons/Button.svelte +34 -0
- package/dist/components/buttons/Button.svelte.d.ts +36 -0
- package/dist/components/buttons/ButtonWithIcon.svelte +0 -0
- package/dist/components/buttons/ButtonWithIcon.svelte.d.ts +26 -0
- package/dist/components/buttons/CheckButton.svelte +77 -0
- package/dist/components/buttons/CheckButton.svelte.d.ts +35 -0
- package/dist/components/buttons/IconButton.svelte +0 -0
- package/dist/components/buttons/IconButton.svelte.d.ts +26 -0
- package/dist/components/buttons/OutlinedButton.svelte +0 -0
- package/dist/components/buttons/OutlinedButton.svelte.d.ts +26 -0
- package/dist/components/buttons/OutlinedButtonWithIcon.svelte +0 -0
- package/dist/components/buttons/OutlinedButtonWithIcon.svelte.d.ts +26 -0
- package/dist/components/buttons/OutlinedIconButton.svelte +0 -0
- package/dist/components/buttons/OutlinedIconButton.svelte.d.ts +26 -0
- package/dist/components/buttons/TextButton.svelte +0 -0
- package/dist/components/buttons/TextButton.svelte.d.ts +26 -0
- package/dist/components/cards/Card.svelte +26 -0
- package/dist/components/cards/Card.svelte.d.ts +33 -0
- package/dist/components/cards/OutlinedCard.svelte +0 -0
- package/dist/components/cards/OutlinedCard.svelte.d.ts +26 -0
- package/dist/components/custom/CodeBlock.svelte +41 -0
- package/dist/components/custom/CodeBlock.svelte.d.ts +32 -0
- package/dist/components/layouts/Alignment.d.ts +20 -0
- package/dist/components/layouts/Alignment.js +20 -0
- package/dist/components/layouts/Arrangement.d.ts +23 -0
- package/dist/components/layouts/Arrangement.js +46 -0
- package/dist/components/layouts/Box.svelte +25 -0
- package/dist/components/layouts/Box.svelte.d.ts +32 -0
- package/dist/components/layouts/Column.svelte +23 -0
- package/dist/components/layouts/Column.svelte.d.ts +34 -0
- package/dist/components/layouts/LazyColumn.svelte +107 -0
- package/dist/components/layouts/LazyColumn.svelte.d.ts +39 -0
- package/dist/components/layouts/LazyRow.svelte +71 -0
- package/dist/components/layouts/LazyRow.svelte.d.ts +42 -0
- package/dist/components/layouts/Row.svelte +23 -0
- package/dist/components/layouts/Row.svelte.d.ts +34 -0
- package/dist/components/layouts/Scaffold.svelte +73 -0
- package/dist/components/layouts/Scaffold.svelte.d.ts +38 -0
- package/dist/components/menus/DropdownMenu.svelte +0 -0
- package/dist/components/menus/DropdownMenu.svelte.d.ts +26 -0
- package/dist/components/menus/DropdownMenuItem.svelte +0 -0
- package/dist/components/menus/DropdownMenuItem.svelte.d.ts +26 -0
- package/dist/components/motion/AnimatedContent.svelte +34 -0
- package/dist/components/motion/AnimatedContent.svelte.d.ts +31 -0
- package/dist/components/motion/AnimatedVisibility.svelte +59 -0
- package/dist/components/motion/AnimatedVisibility.svelte.d.ts +32 -0
- package/dist/components/textFields/BaseTextField.svelte +188 -0
- package/dist/components/textFields/BaseTextField.svelte.d.ts +41 -0
- package/dist/components/textFields/OutlinedTextField.svelte +64 -0
- package/dist/components/textFields/OutlinedTextField.svelte.d.ts +46 -0
- package/dist/components/textFields/TextField.svelte +49 -0
- package/dist/components/textFields/TextField.svelte.d.ts +46 -0
- package/dist/components/textFields/TextFieldColors.d.ts +12 -0
- package/dist/components/textFields/TextFieldColors.js +1 -0
- package/dist/components/textFields/TextFieldDefaults.d.ts +11 -0
- package/dist/components/textFields/TextFieldDefaults.js +42 -0
- package/dist/core/elevation/elevation.d.ts +1 -0
- package/dist/core/elevation/elevation.js +6 -0
- package/dist/core/helpers/painterResource.d.ts +12 -0
- package/dist/core/helpers/painterResource.js +22 -0
- package/dist/core/modifier/Modifier.d.ts +195 -0
- package/dist/core/modifier/Modifier.js +237 -0
- package/dist/core/modifier/ModifierImpl.d.ts +38 -0
- package/dist/core/modifier/ModifierImpl.js +214 -0
- package/dist/core/motion/AnimationSpec.d.ts +6 -0
- package/dist/core/motion/AnimationSpec.js +1 -0
- package/dist/core/motion/ContentTransition.d.ts +5 -0
- package/dist/core/motion/ContentTransition.js +1 -0
- package/dist/core/motion/applyAnimation.d.ts +0 -0
- package/dist/core/motion/applyAnimation.js +0 -0
- package/dist/core/motion/contentTransitions.d.ts +4 -0
- package/dist/core/motion/contentTransitions.js +22 -0
- package/dist/core/motion/transitions.d.ts +7 -0
- package/dist/core/motion/transitions.js +70 -0
- package/dist/core/navigation/NavBackStackEntry.d.ts +4 -0
- package/dist/core/navigation/NavBackStackEntry.js +1 -0
- package/dist/core/navigation/NavController.d.ts +9 -0
- package/dist/core/navigation/NavController.js +31 -0
- package/dist/core/navigation/NavHost.svelte +45 -0
- package/dist/core/navigation/NavHost.svelte.d.ts +31 -0
- package/dist/core/navigation/NavStore.d.ts +7 -0
- package/dist/core/navigation/NavStore.js +24 -0
- package/dist/core/navigation/Route.d.ts +3 -0
- package/dist/core/navigation/Route.js +1 -0
- package/dist/core/navigation/composable.d.ts +5 -0
- package/dist/core/navigation/composable.js +6 -0
- package/dist/core/navigation/rememberNavController.d.ts +2 -0
- package/dist/core/navigation/rememberNavController.js +4 -0
- package/dist/core/shapes/RoundedCornerShape.d.ts +13 -0
- package/dist/core/shapes/RoundedCornerShape.js +27 -0
- package/dist/core/shapes/Shape.d.ts +3 -0
- package/dist/core/shapes/Shape.js +1 -0
- package/dist/core/theme/ColorScheme.d.ts +17 -0
- package/dist/core/theme/ColorScheme.js +15 -0
- package/dist/core/theme/ComposeTheme.svelte +22 -0
- package/dist/core/theme/ComposeTheme.svelte.d.ts +32 -0
- package/dist/core/theme/Density.d.ts +5 -0
- package/dist/core/theme/Density.js +4 -0
- package/dist/core/theme/TextStyle.d.ts +19 -0
- package/dist/core/theme/TextStyle.js +17 -0
- package/dist/core/theme/colors.d.ts +15 -0
- package/dist/core/theme/colors.js +1 -0
- package/dist/core/theme/cssVars.d.ts +2 -0
- package/dist/core/theme/cssVars.js +29 -0
- package/dist/core/theme/defaults/darkColors.d.ts +2 -0
- package/dist/core/theme/defaults/darkColors.js +15 -0
- package/dist/core/theme/defaults/defaultTheme.d.ts +3 -0
- package/dist/core/theme/defaults/defaultTheme.js +40 -0
- package/dist/core/theme/defaults/lightColors.d.ts +2 -0
- package/dist/core/theme/defaults/lightColors.js +15 -0
- package/dist/core/theme/defaults/typography.d.ts +2 -0
- package/dist/core/theme/defaults/typography.js +120 -0
- package/dist/core/theme/elevation.d.ts +7 -0
- package/dist/core/theme/elevation.js +1 -0
- package/dist/core/theme/getCurrentColor.d.ts +1 -0
- package/dist/core/theme/getCurrentColor.js +9 -0
- package/dist/core/theme/resolve.d.ts +5 -0
- package/dist/core/theme/resolve.js +17 -0
- package/dist/core/theme/shapes.d.ts +7 -0
- package/dist/core/theme/shapes.js +1 -0
- package/dist/core/theme/spacing.d.ts +7 -0
- package/dist/core/theme/spacing.js +1 -0
- package/dist/core/theme/store.d.ts +7 -0
- package/dist/core/theme/store.js +15 -0
- package/dist/core/theme/systemTheme.d.ts +2 -0
- package/dist/core/theme/systemTheme.js +14 -0
- package/dist/core/theme/theme.d.ts +13 -0
- package/dist/core/theme/theme.js +1 -0
- package/dist/core/theme/typography.d.ts +24 -0
- package/dist/core/theme/typography.js +1 -0
- package/dist/index.d.ts +22 -45
- package/package.json +46 -12
- package/dist/index.js +0 -1164
- package/dist/vite.svg +0 -1
package/dist/index.js
DELETED
|
@@ -1,1164 +0,0 @@
|
|
|
1
|
-
function toCss(l) {
|
|
2
|
-
return l === void 0 ? "0px" : typeof l == "number" ? `${l}px` : l;
|
|
3
|
-
}
|
|
4
|
-
var RoundedCornerShapeImpl = class {
|
|
5
|
-
constructor(l) {
|
|
6
|
-
this.params = l;
|
|
7
|
-
}
|
|
8
|
-
toCssBorderRadius() {
|
|
9
|
-
if (typeof this.params == "number" || typeof this.params == "string") {
|
|
10
|
-
let R = toCss(this.params);
|
|
11
|
-
return `${R} ${R} ${R} ${R}`;
|
|
12
|
-
}
|
|
13
|
-
let { topStart: R = 0, topEnd: z = 0, bottomEnd: B = 0, bottomStart: V = 0 } = this.params;
|
|
14
|
-
return `
|
|
15
|
-
${toCss(R)}
|
|
16
|
-
${toCss(z)}
|
|
17
|
-
${toCss(B)}
|
|
18
|
-
${toCss(V)}
|
|
19
|
-
`.trim();
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
function RoundedCornerShape(l) {
|
|
23
|
-
return new RoundedCornerShapeImpl(l);
|
|
24
|
-
}
|
|
25
|
-
const ColorScheme = {
|
|
26
|
-
Primary: "primary",
|
|
27
|
-
OnPrimary: "onPrimary",
|
|
28
|
-
Secondary: "secondary",
|
|
29
|
-
OnSecondary: "onSecondary",
|
|
30
|
-
Background: "background",
|
|
31
|
-
OnBackground: "onBackground",
|
|
32
|
-
Surface: "surface",
|
|
33
|
-
OnSurface: "onSurface",
|
|
34
|
-
SurfaceVariant: "surfaceVariant",
|
|
35
|
-
OnSurfaceVariant: "onSurfaceVariant",
|
|
36
|
-
Outline: "outline",
|
|
37
|
-
Error: "error",
|
|
38
|
-
OnError: "onError"
|
|
39
|
-
}, TextStyle = {
|
|
40
|
-
DisplayLarge: "displayLarge",
|
|
41
|
-
DisplayMedium: "displayMedium",
|
|
42
|
-
DisplaySmall: "displaySmall",
|
|
43
|
-
HeadlineLarge: "headlineLarge",
|
|
44
|
-
HeadlineMedium: "headlineMedium",
|
|
45
|
-
HeadlineSmall: "headlineSmall",
|
|
46
|
-
TitleLarge: "titleLarge",
|
|
47
|
-
TitleMedium: "titleMedium",
|
|
48
|
-
TitleSmall: "titleSmall",
|
|
49
|
-
BodyLarge: "bodyLarge",
|
|
50
|
-
BodyMedium: "bodyMedium",
|
|
51
|
-
BodySmall: "bodySmall",
|
|
52
|
-
LabelLarge: "labelLarge",
|
|
53
|
-
LabelMedium: "labelMedium",
|
|
54
|
-
LabelSmall: "labelSmall"
|
|
55
|
-
}, Density = {
|
|
56
|
-
Default: "default",
|
|
57
|
-
Compact: "compact"
|
|
58
|
-
}, resolveColor = (l) => `var(--md-sys-color-${l})`;
|
|
59
|
-
var ModifierImpl = class l {
|
|
60
|
-
constructor(l = []) {
|
|
61
|
-
this.entries = l;
|
|
62
|
-
}
|
|
63
|
-
then(R) {
|
|
64
|
-
return new l([...this.entries, ...R.entries]);
|
|
65
|
-
}
|
|
66
|
-
paddingHorizontal(R) {
|
|
67
|
-
return this.then(new l([{ style: `padding-left:${R}px;padding-right:${R}px;` }]));
|
|
68
|
-
}
|
|
69
|
-
verticalScroll(R = !0) {
|
|
70
|
-
return this.then(new l([{ style: R ? "overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;" : "" }]));
|
|
71
|
-
}
|
|
72
|
-
horizontalScroll(R = !0) {
|
|
73
|
-
return this.then(new l([{ style: R ? "overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;white-space:nowrap;" : "" }]));
|
|
74
|
-
}
|
|
75
|
-
paddingVertical(R) {
|
|
76
|
-
return this.then(new l([{ style: `padding-top:${R}px;padding-bottom:${R}px;` }]));
|
|
77
|
-
}
|
|
78
|
-
fillMaxWidth() {
|
|
79
|
-
return this.then(new l([{ style: "width:100%;" }]));
|
|
80
|
-
}
|
|
81
|
-
fillMaxHeight() {
|
|
82
|
-
return this.then(new l([{ style: "height:100%;" }]));
|
|
83
|
-
}
|
|
84
|
-
fillMaxSize() {
|
|
85
|
-
return this.then(new l([{ style: "width:100%;height:100%;" }]));
|
|
86
|
-
}
|
|
87
|
-
background(R) {
|
|
88
|
-
let z;
|
|
89
|
-
return z = typeof R == "string" && (R.startsWith("#") || R.startsWith("rgb") || R.startsWith("hsl") || R === "transparent" || R === "currentColor") ? R : resolveColor(R), this.then(new l([{ style: `background:${z};` }]));
|
|
90
|
-
}
|
|
91
|
-
weight(R, z = !0) {
|
|
92
|
-
if (R <= 0) return console.warn("Modifier.weight() debe ser > 0"), this;
|
|
93
|
-
let B = [
|
|
94
|
-
`flex-grow: ${R};`,
|
|
95
|
-
`flex-shrink: ${z ? 1 : 0};`,
|
|
96
|
-
"flex-basis: 0%;"
|
|
97
|
-
];
|
|
98
|
-
return this.then(new l([{ style: B.join(" ") }]));
|
|
99
|
-
}
|
|
100
|
-
align(R) {
|
|
101
|
-
let z = R.split(" "), B = z[0], V = z[1] || z[0], H = "position: absolute;";
|
|
102
|
-
return V === "flex-start" ? H += "top: 0;" : V === "flex-end" ? H += "bottom: 0;" : V === "center" && (H += "top: 50%; transform: translateY(-50%);"), B === "flex-start" ? H += "left: 0;" : B === "flex-end" ? H += "right: 0;" : B === "center" && (H += "left: 50%;", H.includes("translateY") ? H = H.replace("translateY(-50%)", "translate(-50%, -50%)") : H += "transform: translateX(-50%);"), this.then(new l([{ style: H }]));
|
|
103
|
-
}
|
|
104
|
-
padding(R = 0, z = "px") {
|
|
105
|
-
let B = "";
|
|
106
|
-
if (typeof R == "number") B = `padding:${R}${z};`;
|
|
107
|
-
else {
|
|
108
|
-
let { top: l = 0, bottom: V = 0, start: H = 0, end: U = 0 } = R;
|
|
109
|
-
B = `
|
|
110
|
-
padding-top:${l}${z};
|
|
111
|
-
padding-bottom:${V}${z};
|
|
112
|
-
padding-left:${H}${z};
|
|
113
|
-
//padding-right:${U}${z};
|
|
114
|
-
`.trim();
|
|
115
|
-
}
|
|
116
|
-
return this.then(new l([{ style: B }]));
|
|
117
|
-
}
|
|
118
|
-
width(R, z = "px") {
|
|
119
|
-
let B = typeof R == "number" ? `${R}${z}` : R;
|
|
120
|
-
return this.then(new l([{ style: `width:${B};` }]));
|
|
121
|
-
}
|
|
122
|
-
height(R, z = "px") {
|
|
123
|
-
let B = typeof R == "number" ? `${R}${z}` : R;
|
|
124
|
-
return this.then(new l([{ style: `height:${B};` }]));
|
|
125
|
-
}
|
|
126
|
-
marginTop(R, z = "px") {
|
|
127
|
-
return this.then(new l([{ style: `margin-top:${R}${z};` }]));
|
|
128
|
-
}
|
|
129
|
-
clip(R) {
|
|
130
|
-
return this.then(new l([{ style: `
|
|
131
|
-
border-radius:${R.toCssBorderRadius()};
|
|
132
|
-
overflow:hidden;
|
|
133
|
-
` }]));
|
|
134
|
-
}
|
|
135
|
-
size(R, z = "px") {
|
|
136
|
-
if (R == null) return this;
|
|
137
|
-
let B;
|
|
138
|
-
if (typeof R == "number") {
|
|
139
|
-
if (isNaN(R)) return this;
|
|
140
|
-
B = `${R}${z}`;
|
|
141
|
-
} else {
|
|
142
|
-
if (R.trim() === "") return this;
|
|
143
|
-
B = R;
|
|
144
|
-
}
|
|
145
|
-
return this.then(new l([{ style: `width:${B};height:${B};` }]));
|
|
146
|
-
}
|
|
147
|
-
offset(R, z) {
|
|
148
|
-
return isNaN(R) || isNaN(z) ? this : this.then(new l([{ style: `transform: translate(${R}px, ${z}px);` }]));
|
|
149
|
-
}
|
|
150
|
-
clickable(R) {
|
|
151
|
-
return this.then(new l([{
|
|
152
|
-
className: "compose-clickable",
|
|
153
|
-
style: "\n cursor: pointer;\n user-select: none;\n "
|
|
154
|
-
}]));
|
|
155
|
-
}
|
|
156
|
-
border(R, z, B) {
|
|
157
|
-
if (R <= 0) return this;
|
|
158
|
-
let V = B ? B.toCssBorderRadius() : void 0;
|
|
159
|
-
return this.then(new l([{ style: `
|
|
160
|
-
border:${R}px solid ${z};
|
|
161
|
-
${V ? `border-radius:${V};` : ""}
|
|
162
|
-
` }]));
|
|
163
|
-
}
|
|
164
|
-
toStyle() {
|
|
165
|
-
return this.entries.map((l) => l.style ?? "").join("");
|
|
166
|
-
}
|
|
167
|
-
toClass() {
|
|
168
|
-
return this.entries.map((l) => l.className ?? "").join(" ");
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const Modifier = {
|
|
172
|
-
empty() {
|
|
173
|
-
return new ModifierImpl();
|
|
174
|
-
},
|
|
175
|
-
padding(l = 0, R = "px") {
|
|
176
|
-
return new ModifierImpl().padding(l, R);
|
|
177
|
-
},
|
|
178
|
-
paddingHorizontal(l) {
|
|
179
|
-
return new ModifierImpl().paddingHorizontal(l);
|
|
180
|
-
},
|
|
181
|
-
border(l, R, z) {
|
|
182
|
-
return new ModifierImpl().border(l, R, z);
|
|
183
|
-
},
|
|
184
|
-
clickable(l) {
|
|
185
|
-
return new ModifierImpl().clickable(l);
|
|
186
|
-
},
|
|
187
|
-
offset(l, R) {
|
|
188
|
-
return new ModifierImpl().offset(l, R);
|
|
189
|
-
},
|
|
190
|
-
verticalScroll(l = !0) {
|
|
191
|
-
return new ModifierImpl().verticalScroll(l);
|
|
192
|
-
},
|
|
193
|
-
horizontalScroll(l = !0) {
|
|
194
|
-
return new ModifierImpl().horizontalScroll(l);
|
|
195
|
-
},
|
|
196
|
-
paddingVertical(l) {
|
|
197
|
-
return new ModifierImpl().paddingVertical(l);
|
|
198
|
-
},
|
|
199
|
-
align(l) {
|
|
200
|
-
return new ModifierImpl().align(l);
|
|
201
|
-
},
|
|
202
|
-
fillMaxWidth() {
|
|
203
|
-
return new ModifierImpl().fillMaxWidth();
|
|
204
|
-
},
|
|
205
|
-
fillMaxHeight() {
|
|
206
|
-
return new ModifierImpl().fillMaxHeight();
|
|
207
|
-
},
|
|
208
|
-
fillMaxSize() {
|
|
209
|
-
return new ModifierImpl().fillMaxSize();
|
|
210
|
-
},
|
|
211
|
-
height(l, R = "px") {
|
|
212
|
-
return new ModifierImpl().height(l, R);
|
|
213
|
-
},
|
|
214
|
-
width(l, R = "px") {
|
|
215
|
-
return new ModifierImpl().width(l, R);
|
|
216
|
-
},
|
|
217
|
-
background(l) {
|
|
218
|
-
return new ModifierImpl().background(l);
|
|
219
|
-
},
|
|
220
|
-
weight(l, R = !0) {
|
|
221
|
-
return new ModifierImpl().weight(l, R);
|
|
222
|
-
},
|
|
223
|
-
weightNoFill(l) {
|
|
224
|
-
return this.weight(l, !1);
|
|
225
|
-
},
|
|
226
|
-
marginTop(l, R = "px") {
|
|
227
|
-
return new ModifierImpl().marginTop(l, R);
|
|
228
|
-
},
|
|
229
|
-
clip(l) {
|
|
230
|
-
return new ModifierImpl().clip(l);
|
|
231
|
-
},
|
|
232
|
-
size(l, R = "px") {
|
|
233
|
-
return new ModifierImpl().size(l, R);
|
|
234
|
-
}
|
|
235
|
-
}, Arrangement = {
|
|
236
|
-
Start: {
|
|
237
|
-
type: "static",
|
|
238
|
-
justifyContent: "flex-start"
|
|
239
|
-
},
|
|
240
|
-
Center: {
|
|
241
|
-
type: "static",
|
|
242
|
-
justifyContent: "center"
|
|
243
|
-
},
|
|
244
|
-
End: {
|
|
245
|
-
type: "static",
|
|
246
|
-
justifyContent: "flex-end"
|
|
247
|
-
},
|
|
248
|
-
Bottom: {
|
|
249
|
-
type: "static",
|
|
250
|
-
justifyContent: "flex-end"
|
|
251
|
-
},
|
|
252
|
-
Top: {
|
|
253
|
-
type: "static",
|
|
254
|
-
justifyContent: "flex-start"
|
|
255
|
-
},
|
|
256
|
-
SpaceBetween: {
|
|
257
|
-
type: "static",
|
|
258
|
-
justifyContent: "space-between"
|
|
259
|
-
},
|
|
260
|
-
SpaceAround: {
|
|
261
|
-
type: "static",
|
|
262
|
-
justifyContent: "space-around"
|
|
263
|
-
},
|
|
264
|
-
SpaceEvenly: {
|
|
265
|
-
type: "static",
|
|
266
|
-
justifyContent: "space-evenly"
|
|
267
|
-
},
|
|
268
|
-
spacedBy(l) {
|
|
269
|
-
return {
|
|
270
|
-
type: "spaced",
|
|
271
|
-
gap: l,
|
|
272
|
-
justifyContent: "flex-start"
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
}, Alignment = {
|
|
276
|
-
Start: "flex-start",
|
|
277
|
-
CenterHorizontally: "center",
|
|
278
|
-
End: "flex-end",
|
|
279
|
-
Top: "flex-start",
|
|
280
|
-
CenterVertically: "center",
|
|
281
|
-
Bottom: "flex-end",
|
|
282
|
-
TopStart: "flex-start flex-start",
|
|
283
|
-
TopCenter: "center flex-start",
|
|
284
|
-
TopEnd: "flex-end flex-start",
|
|
285
|
-
CenterStart: "flex-start center",
|
|
286
|
-
Center: "center center",
|
|
287
|
-
CenterEnd: "flex-end center",
|
|
288
|
-
BottomStart: "flex-start flex-end",
|
|
289
|
-
BottomCenter: "center flex-end",
|
|
290
|
-
BottomEnd: "flex-end flex-end"
|
|
291
|
-
}, ContentScale = {
|
|
292
|
-
Crop: "cover",
|
|
293
|
-
Fit: "contain",
|
|
294
|
-
FillBounds: "fill",
|
|
295
|
-
Inside: "contain",
|
|
296
|
-
FillWidth: "fillWidth",
|
|
297
|
-
FillHeight: "fillHeight",
|
|
298
|
-
None: "none"
|
|
299
|
-
}, Res = {
|
|
300
|
-
raw(l) {
|
|
301
|
-
return "raw/" + l;
|
|
302
|
-
},
|
|
303
|
-
image(l) {
|
|
304
|
-
return "img/" + l;
|
|
305
|
-
},
|
|
306
|
-
values(l) {
|
|
307
|
-
return "values/" + l;
|
|
308
|
-
},
|
|
309
|
-
fonts(l) {
|
|
310
|
-
return "fonts/" + l;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
function painterResource(l) {
|
|
314
|
-
return "/src/assets/" + l;
|
|
315
|
-
}
|
|
316
|
-
var defaultEnter = 280, defaultExit = 220;
|
|
317
|
-
function fadeIn(l = defaultEnter) {
|
|
318
|
-
return {
|
|
319
|
-
base: `transition-opacity duration-[${l}ms] ease-out`,
|
|
320
|
-
from: "opacity-0",
|
|
321
|
-
to: "opacity-100",
|
|
322
|
-
duration: l
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
function fadeOut(l = defaultExit) {
|
|
326
|
-
return {
|
|
327
|
-
base: `transition-opacity duration-[${l}ms] ease-in`,
|
|
328
|
-
from: "opacity-100",
|
|
329
|
-
to: "opacity-0",
|
|
330
|
-
duration: l
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
function scaleIn(l = defaultEnter) {
|
|
334
|
-
return {
|
|
335
|
-
base: `transition-all duration-[${l}ms] ease-out`,
|
|
336
|
-
from: "opacity-0 scale-95",
|
|
337
|
-
to: "opacity-100 scale-100",
|
|
338
|
-
duration: l
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
function scaleOut(l = defaultExit) {
|
|
342
|
-
return {
|
|
343
|
-
base: `transition-all duration-[${l}ms] ease-in`,
|
|
344
|
-
from: "opacity-100 scale-100",
|
|
345
|
-
to: "opacity-0 scale-95",
|
|
346
|
-
duration: l
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function slideIn(l = defaultEnter, R = "right") {
|
|
350
|
-
return {
|
|
351
|
-
base: `transition-all duration-[${l}ms] ease-out`,
|
|
352
|
-
from: `opacity-0 ${{
|
|
353
|
-
left: "-translate-x-4",
|
|
354
|
-
right: "translate-x-4",
|
|
355
|
-
up: "-translate-y-4",
|
|
356
|
-
down: "translate-y-4"
|
|
357
|
-
}[R]}`,
|
|
358
|
-
to: "opacity-100 translate-x-0 translate-y-0",
|
|
359
|
-
duration: l
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function slideOut(l = defaultExit, R = "right") {
|
|
363
|
-
return {
|
|
364
|
-
base: `transition-all duration-[${l}ms] ease-in`,
|
|
365
|
-
from: "opacity-100 translate-x-0 translate-y-0",
|
|
366
|
-
to: `opacity-0 ${{
|
|
367
|
-
left: "-translate-x-4",
|
|
368
|
-
right: "translate-x-4",
|
|
369
|
-
up: "-translate-y-4",
|
|
370
|
-
down: "translate-y-4"
|
|
371
|
-
}[R]}`,
|
|
372
|
-
duration: l
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function slideHorizontal() {
|
|
376
|
-
return {
|
|
377
|
-
enter: "transition-transform duration-200 ease-out translate-x-0",
|
|
378
|
-
exit: "transition-transform duration-200 ease-in -translate-x-full",
|
|
379
|
-
duration: 200
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
function scaleFade() {
|
|
383
|
-
return {
|
|
384
|
-
enter: "transition-all duration-220 ease-out opacity-100 scale-100",
|
|
385
|
-
exit: "transition-all duration-180 ease-in opacity-0 scale-95",
|
|
386
|
-
duration: 220
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
function fade(l = 300) {
|
|
390
|
-
return {
|
|
391
|
-
enter: "animate-fade-in",
|
|
392
|
-
exit: "animate-fade-out",
|
|
393
|
-
duration: l
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
var is_array = Array.isArray, index_of = Array.prototype.indexOf;
|
|
397
|
-
Array.from, Object.keys, Object.defineProperty;
|
|
398
|
-
var get_descriptor = Object.getOwnPropertyDescriptor, object_prototype = Object.prototype, array_prototype = Array.prototype, get_prototype_of = Object.getPrototypeOf;
|
|
399
|
-
Object.isExtensible;
|
|
400
|
-
const noop = () => {};
|
|
401
|
-
function run_all(l) {
|
|
402
|
-
for (var R = 0; R < l.length; R++) l[R]();
|
|
403
|
-
}
|
|
404
|
-
function deferred() {
|
|
405
|
-
var l, R;
|
|
406
|
-
return {
|
|
407
|
-
promise: new Promise((z, B) => {
|
|
408
|
-
l = z, R = B;
|
|
409
|
-
}),
|
|
410
|
-
resolve: l,
|
|
411
|
-
reject: R
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
const CLEAN = 1024, DIRTY = 2048, MAYBE_DIRTY = 4096, INERT = 8192, WAS_MARKED = 32768, REACTION_IS_UPDATING = 1 << 21, ERROR_VALUE = 1 << 23, STATE_SYMBOL = Symbol("$state"), STALE_REACTION = new class extends Error {
|
|
415
|
-
name = "StaleReactionError";
|
|
416
|
-
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
417
|
-
}();
|
|
418
|
-
function equals(l) {
|
|
419
|
-
return l === this.v;
|
|
420
|
-
}
|
|
421
|
-
function safe_not_equal(l, R) {
|
|
422
|
-
return l == l ? l !== R || typeof l == "object" && !!l || typeof l == "function" : R == R;
|
|
423
|
-
}
|
|
424
|
-
function effect_update_depth_exceeded() {
|
|
425
|
-
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
426
|
-
}
|
|
427
|
-
function state_descriptors_fixed() {
|
|
428
|
-
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
429
|
-
}
|
|
430
|
-
function state_prototype_fixed() {
|
|
431
|
-
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
432
|
-
}
|
|
433
|
-
function state_unsafe_mutation() {
|
|
434
|
-
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
435
|
-
}
|
|
436
|
-
const UNINITIALIZED = Symbol();
|
|
437
|
-
let component_context = null;
|
|
438
|
-
function set_component_context(l) {
|
|
439
|
-
component_context = l;
|
|
440
|
-
}
|
|
441
|
-
function is_runes() {
|
|
442
|
-
return !0;
|
|
443
|
-
}
|
|
444
|
-
var micro_tasks = [];
|
|
445
|
-
function run_micro_tasks() {
|
|
446
|
-
var l = micro_tasks;
|
|
447
|
-
micro_tasks = [], run_all(l);
|
|
448
|
-
}
|
|
449
|
-
function queue_micro_task(l) {
|
|
450
|
-
if (micro_tasks.length === 0 && !is_flushing_sync) {
|
|
451
|
-
var R = micro_tasks;
|
|
452
|
-
queueMicrotask(() => {
|
|
453
|
-
R === micro_tasks && run_micro_tasks();
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
micro_tasks.push(l);
|
|
457
|
-
}
|
|
458
|
-
function proxy(l) {
|
|
459
|
-
if (typeof l != "object" || !l || STATE_SYMBOL in l) return l;
|
|
460
|
-
let R = get_prototype_of(l);
|
|
461
|
-
if (R !== object_prototype && R !== array_prototype) return l;
|
|
462
|
-
var z = /* @__PURE__ */ new Map(), B = is_array(l), V = /* @__PURE__ */ state(0), H = null, U = update_version, W = (l) => {
|
|
463
|
-
if (update_version === U) return l();
|
|
464
|
-
var R = active_reaction, z = update_version;
|
|
465
|
-
set_active_reaction(null), set_update_version(U);
|
|
466
|
-
var B = l();
|
|
467
|
-
return set_active_reaction(R), set_update_version(z), B;
|
|
468
|
-
};
|
|
469
|
-
return B && z.set("length", /* @__PURE__ */ state(l.length, H)), new Proxy(l, {
|
|
470
|
-
defineProperty(l, R, B) {
|
|
471
|
-
(!("value" in B) || B.configurable === !1 || B.enumerable === !1 || B.writable === !1) && state_descriptors_fixed();
|
|
472
|
-
var V = z.get(R);
|
|
473
|
-
return V === void 0 ? V = W(() => {
|
|
474
|
-
var l = /* @__PURE__ */ state(B.value, H);
|
|
475
|
-
return z.set(R, l), l;
|
|
476
|
-
}) : set(V, B.value, !0), !0;
|
|
477
|
-
},
|
|
478
|
-
deleteProperty(l, R) {
|
|
479
|
-
var B = z.get(R);
|
|
480
|
-
if (B === void 0) {
|
|
481
|
-
if (R in l) {
|
|
482
|
-
let l = W(() => /* @__PURE__ */ state(UNINITIALIZED, H));
|
|
483
|
-
z.set(R, l), increment(V);
|
|
484
|
-
}
|
|
485
|
-
} else set(B, UNINITIALIZED), increment(V);
|
|
486
|
-
return !0;
|
|
487
|
-
},
|
|
488
|
-
get(R, B, V) {
|
|
489
|
-
if (B === STATE_SYMBOL) return l;
|
|
490
|
-
var U = z.get(B), G = B in R;
|
|
491
|
-
if (U === void 0 && (!G || get_descriptor(R, B)?.writable) && (U = W(() => /* @__PURE__ */ state(proxy(G ? R[B] : UNINITIALIZED), H)), z.set(B, U)), U !== void 0) {
|
|
492
|
-
var K = get$1(U);
|
|
493
|
-
return K === UNINITIALIZED ? void 0 : K;
|
|
494
|
-
}
|
|
495
|
-
return Reflect.get(R, B, V);
|
|
496
|
-
},
|
|
497
|
-
getOwnPropertyDescriptor(l, R) {
|
|
498
|
-
var B = Reflect.getOwnPropertyDescriptor(l, R);
|
|
499
|
-
if (B && "value" in B) {
|
|
500
|
-
var V = z.get(R);
|
|
501
|
-
V && (B.value = get$1(V));
|
|
502
|
-
} else if (B === void 0) {
|
|
503
|
-
var H = z.get(R), U = H?.v;
|
|
504
|
-
if (H !== void 0 && U !== UNINITIALIZED) return {
|
|
505
|
-
enumerable: !0,
|
|
506
|
-
configurable: !0,
|
|
507
|
-
value: U,
|
|
508
|
-
writable: !0
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
return B;
|
|
512
|
-
},
|
|
513
|
-
has(l, R) {
|
|
514
|
-
if (R === STATE_SYMBOL) return !0;
|
|
515
|
-
var B = z.get(R), V = B !== void 0 && B.v !== UNINITIALIZED || Reflect.has(l, R);
|
|
516
|
-
return (B !== void 0 || active_effect !== null && (!V || get_descriptor(l, R)?.writable)) && (B === void 0 && (B = W(() => /* @__PURE__ */ state(V ? proxy(l[R]) : UNINITIALIZED, H)), z.set(R, B)), get$1(B) === UNINITIALIZED) ? !1 : V;
|
|
517
|
-
},
|
|
518
|
-
set(l, R, U, G) {
|
|
519
|
-
var K = z.get(R), q = R in l;
|
|
520
|
-
if (B && R === "length") for (var J = U; J < K.v; J += 1) {
|
|
521
|
-
var Y = z.get(J + "");
|
|
522
|
-
Y === void 0 ? J in l && (Y = W(() => /* @__PURE__ */ state(UNINITIALIZED, H)), z.set(J + "", Y)) : set(Y, UNINITIALIZED);
|
|
523
|
-
}
|
|
524
|
-
if (K === void 0) (!q || get_descriptor(l, R)?.writable) && (K = W(() => /* @__PURE__ */ state(void 0, H)), set(K, proxy(U)), z.set(R, K));
|
|
525
|
-
else {
|
|
526
|
-
q = K.v !== UNINITIALIZED;
|
|
527
|
-
var X = W(() => proxy(U));
|
|
528
|
-
set(K, X);
|
|
529
|
-
}
|
|
530
|
-
var Z = Reflect.getOwnPropertyDescriptor(l, R);
|
|
531
|
-
if (Z?.set && Z.set.call(G, U), !q) {
|
|
532
|
-
if (B && typeof R == "string") {
|
|
533
|
-
var Q = z.get("length"), $ = Number(R);
|
|
534
|
-
Number.isInteger($) && $ >= Q.v && set(Q, $ + 1);
|
|
535
|
-
}
|
|
536
|
-
increment(V);
|
|
537
|
-
}
|
|
538
|
-
return !0;
|
|
539
|
-
},
|
|
540
|
-
ownKeys(l) {
|
|
541
|
-
get$1(V);
|
|
542
|
-
var R = Reflect.ownKeys(l).filter((l) => {
|
|
543
|
-
var R = z.get(l);
|
|
544
|
-
return R === void 0 || R.v !== UNINITIALIZED;
|
|
545
|
-
});
|
|
546
|
-
for (var [B, H] of z) H.v !== UNINITIALIZED && !(B in l) && R.push(B);
|
|
547
|
-
return R;
|
|
548
|
-
},
|
|
549
|
-
setPrototypeOf() {
|
|
550
|
-
state_prototype_fixed();
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
var next_sibling_getter;
|
|
555
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
556
|
-
function get_next_sibling(l) {
|
|
557
|
-
return next_sibling_getter.call(l);
|
|
558
|
-
}
|
|
559
|
-
function handle_error(l) {
|
|
560
|
-
var R = active_effect;
|
|
561
|
-
if (R === null) return active_reaction.f |= ERROR_VALUE, l;
|
|
562
|
-
if (R.f & 32768) invoke_error_boundary(l, R);
|
|
563
|
-
else {
|
|
564
|
-
if (!(R.f & 128)) throw l;
|
|
565
|
-
R.b.error(l);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
function invoke_error_boundary(l, R) {
|
|
569
|
-
for (; R !== null;) {
|
|
570
|
-
if (R.f & 128) try {
|
|
571
|
-
R.b.error(l);
|
|
572
|
-
return;
|
|
573
|
-
} catch (R) {
|
|
574
|
-
l = R;
|
|
575
|
-
}
|
|
576
|
-
R = R.parent;
|
|
577
|
-
}
|
|
578
|
-
throw l;
|
|
579
|
-
}
|
|
580
|
-
var batches = /* @__PURE__ */ new Set();
|
|
581
|
-
let current_batch = null, batch_values = null;
|
|
582
|
-
var queued_root_effects = [], last_scheduled_effect = null, is_flushing = !1;
|
|
583
|
-
let is_flushing_sync = !1;
|
|
584
|
-
var Batch = class l {
|
|
585
|
-
committed = !1;
|
|
586
|
-
current = /* @__PURE__ */ new Map();
|
|
587
|
-
previous = /* @__PURE__ */ new Map();
|
|
588
|
-
#e = /* @__PURE__ */ new Set();
|
|
589
|
-
#t = /* @__PURE__ */ new Set();
|
|
590
|
-
#n = 0;
|
|
591
|
-
#r = 0;
|
|
592
|
-
#i = null;
|
|
593
|
-
#a = /* @__PURE__ */ new Set();
|
|
594
|
-
#o = /* @__PURE__ */ new Set();
|
|
595
|
-
skipped_effects = /* @__PURE__ */ new Set();
|
|
596
|
-
is_fork = !1;
|
|
597
|
-
is_deferred() {
|
|
598
|
-
return this.is_fork || this.#r > 0;
|
|
599
|
-
}
|
|
600
|
-
process(l) {
|
|
601
|
-
queued_root_effects = [], this.apply();
|
|
602
|
-
var R = {
|
|
603
|
-
parent: null,
|
|
604
|
-
effect: null,
|
|
605
|
-
effects: [],
|
|
606
|
-
render_effects: []
|
|
607
|
-
};
|
|
608
|
-
for (let z of l) this.#s(z, R);
|
|
609
|
-
this.is_fork || this.#u(), this.is_deferred() ? (this.#c(R.effects), this.#c(R.render_effects)) : (current_batch = null, flush_queued_effects(R.render_effects), flush_queued_effects(R.effects), this.#i?.resolve()), batch_values = null;
|
|
610
|
-
}
|
|
611
|
-
#s(l, R) {
|
|
612
|
-
l.f ^= CLEAN;
|
|
613
|
-
for (var z = l.first; z !== null;) {
|
|
614
|
-
var B = z.f, V = (B & 96) != 0, H = V && (B & 1024) != 0 || (B & 8192) != 0 || this.skipped_effects.has(z);
|
|
615
|
-
if (z.f & 128 && z.b?.is_pending() && (R = {
|
|
616
|
-
parent: R,
|
|
617
|
-
effect: z,
|
|
618
|
-
effects: [],
|
|
619
|
-
render_effects: []
|
|
620
|
-
}), !H && z.fn !== null) {
|
|
621
|
-
V ? z.f ^= CLEAN : B & 4 ? R.effects.push(z) : is_dirty(z) && (z.f & 16 && this.#a.add(z), update_effect(z));
|
|
622
|
-
var U = z.first;
|
|
623
|
-
if (U !== null) {
|
|
624
|
-
z = U;
|
|
625
|
-
continue;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
var W = z.parent;
|
|
629
|
-
for (z = z.next; z === null && W !== null;) W === R.effect && (this.#c(R.effects), this.#c(R.render_effects), R = R.parent), z = W.next, W = W.parent;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
#c(l) {
|
|
633
|
-
for (let R of l) R.f & 2048 ? this.#a.add(R) : R.f & 4096 && this.#o.add(R), this.#l(R.deps), set_signal_status(R, CLEAN);
|
|
634
|
-
}
|
|
635
|
-
#l(l) {
|
|
636
|
-
if (l !== null) for (let R of l) !(R.f & 2) || !(R.f & 32768) || (R.f ^= WAS_MARKED, this.#l(R.deps));
|
|
637
|
-
}
|
|
638
|
-
capture(l, R) {
|
|
639
|
-
this.previous.has(l) || this.previous.set(l, R), l.f & 8388608 || (this.current.set(l, l.v), batch_values?.set(l, l.v));
|
|
640
|
-
}
|
|
641
|
-
activate() {
|
|
642
|
-
current_batch = this, this.apply();
|
|
643
|
-
}
|
|
644
|
-
deactivate() {
|
|
645
|
-
current_batch === this && (current_batch = null, batch_values = null);
|
|
646
|
-
}
|
|
647
|
-
flush() {
|
|
648
|
-
if (this.activate(), queued_root_effects.length > 0) {
|
|
649
|
-
if (flush_effects(), current_batch !== null && current_batch !== this) return;
|
|
650
|
-
} else this.#n === 0 && this.process([]);
|
|
651
|
-
this.deactivate();
|
|
652
|
-
}
|
|
653
|
-
discard() {
|
|
654
|
-
for (let l of this.#t) l(this);
|
|
655
|
-
this.#t.clear();
|
|
656
|
-
}
|
|
657
|
-
#u() {
|
|
658
|
-
if (this.#r === 0) {
|
|
659
|
-
for (let l of this.#e) l();
|
|
660
|
-
this.#e.clear();
|
|
661
|
-
}
|
|
662
|
-
this.#n === 0 && this.#d();
|
|
663
|
-
}
|
|
664
|
-
#d() {
|
|
665
|
-
if (batches.size > 1) {
|
|
666
|
-
this.previous.clear();
|
|
667
|
-
var l = batch_values, R = !0, z = {
|
|
668
|
-
parent: null,
|
|
669
|
-
effect: null,
|
|
670
|
-
effects: [],
|
|
671
|
-
render_effects: []
|
|
672
|
-
};
|
|
673
|
-
for (let l of batches) {
|
|
674
|
-
if (l === this) {
|
|
675
|
-
R = !1;
|
|
676
|
-
continue;
|
|
677
|
-
}
|
|
678
|
-
let V = [];
|
|
679
|
-
for (let [z, B] of this.current) {
|
|
680
|
-
if (l.current.has(z)) if (R && B !== l.current.get(z)) l.current.set(z, B);
|
|
681
|
-
else continue;
|
|
682
|
-
V.push(z);
|
|
683
|
-
}
|
|
684
|
-
if (V.length === 0) continue;
|
|
685
|
-
let H = [...l.current.keys()].filter((l) => !this.current.has(l));
|
|
686
|
-
if (H.length > 0) {
|
|
687
|
-
var B = queued_root_effects;
|
|
688
|
-
queued_root_effects = [];
|
|
689
|
-
let R = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Map();
|
|
690
|
-
for (let l of V) mark_effects(l, H, R, U);
|
|
691
|
-
if (queued_root_effects.length > 0) {
|
|
692
|
-
current_batch = l, l.apply();
|
|
693
|
-
for (let R of queued_root_effects) l.#s(R, z);
|
|
694
|
-
l.deactivate();
|
|
695
|
-
}
|
|
696
|
-
queued_root_effects = B;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
current_batch = null, batch_values = l;
|
|
700
|
-
}
|
|
701
|
-
this.committed = !0, batches.delete(this);
|
|
702
|
-
}
|
|
703
|
-
increment(l) {
|
|
704
|
-
this.#n += 1, l && (this.#r += 1);
|
|
705
|
-
}
|
|
706
|
-
decrement(l) {
|
|
707
|
-
--this.#n, l && --this.#r, this.revive();
|
|
708
|
-
}
|
|
709
|
-
revive() {
|
|
710
|
-
for (let l of this.#a) this.#o.delete(l), set_signal_status(l, DIRTY), schedule_effect(l);
|
|
711
|
-
for (let l of this.#o) set_signal_status(l, MAYBE_DIRTY), schedule_effect(l);
|
|
712
|
-
this.flush();
|
|
713
|
-
}
|
|
714
|
-
oncommit(l) {
|
|
715
|
-
this.#e.add(l);
|
|
716
|
-
}
|
|
717
|
-
ondiscard(l) {
|
|
718
|
-
this.#t.add(l);
|
|
719
|
-
}
|
|
720
|
-
settled() {
|
|
721
|
-
return (this.#i ??= deferred()).promise;
|
|
722
|
-
}
|
|
723
|
-
static ensure() {
|
|
724
|
-
if (current_batch === null) {
|
|
725
|
-
let R = current_batch = new l();
|
|
726
|
-
batches.add(current_batch), l.enqueue(() => {
|
|
727
|
-
current_batch === R && R.flush();
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
return current_batch;
|
|
731
|
-
}
|
|
732
|
-
static enqueue(l) {
|
|
733
|
-
queue_micro_task(l);
|
|
734
|
-
}
|
|
735
|
-
apply() {}
|
|
736
|
-
};
|
|
737
|
-
function flush_effects() {
|
|
738
|
-
var l = is_updating_effect;
|
|
739
|
-
is_flushing = !0;
|
|
740
|
-
try {
|
|
741
|
-
var R = 0;
|
|
742
|
-
for (set_is_updating_effect(!0); queued_root_effects.length > 0;) {
|
|
743
|
-
var z = Batch.ensure();
|
|
744
|
-
R++ > 1e3 && infinite_loop_guard(), z.process(queued_root_effects), old_values.clear();
|
|
745
|
-
}
|
|
746
|
-
} finally {
|
|
747
|
-
is_flushing = !1, set_is_updating_effect(l), last_scheduled_effect = null;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
function infinite_loop_guard() {
|
|
751
|
-
try {
|
|
752
|
-
effect_update_depth_exceeded();
|
|
753
|
-
} catch (l) {
|
|
754
|
-
invoke_error_boundary(l, last_scheduled_effect);
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
let eager_block_effects = null;
|
|
758
|
-
function flush_queued_effects(l) {
|
|
759
|
-
var R = l.length;
|
|
760
|
-
if (R !== 0) {
|
|
761
|
-
for (var z = 0; z < R;) {
|
|
762
|
-
var B = l[z++];
|
|
763
|
-
if (!(B.f & 24576) && is_dirty(B) && (eager_block_effects = /* @__PURE__ */ new Set(), update_effect(B), B.deps === null && B.first === null && B.nodes === null && (B.teardown === null && B.ac === null ? unlink_effect(B) : B.fn = null), eager_block_effects?.size > 0)) {
|
|
764
|
-
old_values.clear();
|
|
765
|
-
for (let l of eager_block_effects) {
|
|
766
|
-
if (l.f & 24576) continue;
|
|
767
|
-
let R = [l], z = l.parent;
|
|
768
|
-
for (; z !== null;) eager_block_effects.has(z) && (eager_block_effects.delete(z), R.push(z)), z = z.parent;
|
|
769
|
-
for (let l = R.length - 1; l >= 0; l--) {
|
|
770
|
-
let z = R[l];
|
|
771
|
-
z.f & 24576 || update_effect(z);
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
eager_block_effects.clear();
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
eager_block_effects = null;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
function mark_effects(l, R, z, B) {
|
|
781
|
-
if (!z.has(l) && (z.add(l), l.reactions !== null)) for (let V of l.reactions) {
|
|
782
|
-
let l = V.f;
|
|
783
|
-
l & 2 ? mark_effects(V, R, z, B) : l & 4194320 && !(l & 2048) && depends_on(V, R, B) && (set_signal_status(V, DIRTY), schedule_effect(V));
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
function depends_on(l, R, z) {
|
|
787
|
-
let B = z.get(l);
|
|
788
|
-
if (B !== void 0) return B;
|
|
789
|
-
if (l.deps !== null) for (let B of l.deps) {
|
|
790
|
-
if (R.includes(B)) return !0;
|
|
791
|
-
if (B.f & 2 && depends_on(B, R, z)) return z.set(B, !0), !0;
|
|
792
|
-
}
|
|
793
|
-
return z.set(l, !1), !1;
|
|
794
|
-
}
|
|
795
|
-
function schedule_effect(l) {
|
|
796
|
-
for (var R = last_scheduled_effect = l; R.parent !== null;) {
|
|
797
|
-
R = R.parent;
|
|
798
|
-
var z = R.f;
|
|
799
|
-
if (is_flushing && R === active_effect && z & 16 && !(z & 262144)) return;
|
|
800
|
-
if (z & 96) {
|
|
801
|
-
if (!(z & 1024)) return;
|
|
802
|
-
R.f ^= CLEAN;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
queued_root_effects.push(R);
|
|
806
|
-
}
|
|
807
|
-
function destroy_derived_effects(l) {
|
|
808
|
-
var R = l.effects;
|
|
809
|
-
if (R !== null) {
|
|
810
|
-
l.effects = null;
|
|
811
|
-
for (var z = 0; z < R.length; z += 1) destroy_effect(R[z]);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
function get_derived_parent_effect(l) {
|
|
815
|
-
for (var R = l.parent; R !== null;) {
|
|
816
|
-
if (!(R.f & 2)) return R.f & 16384 ? null : R;
|
|
817
|
-
R = R.parent;
|
|
818
|
-
}
|
|
819
|
-
return null;
|
|
820
|
-
}
|
|
821
|
-
function execute_derived(l) {
|
|
822
|
-
var R, z = active_effect;
|
|
823
|
-
set_active_effect(get_derived_parent_effect(l));
|
|
824
|
-
try {
|
|
825
|
-
l.f &= ~WAS_MARKED, destroy_derived_effects(l), R = update_reaction(l);
|
|
826
|
-
} finally {
|
|
827
|
-
set_active_effect(z);
|
|
828
|
-
}
|
|
829
|
-
return R;
|
|
830
|
-
}
|
|
831
|
-
function update_derived(l) {
|
|
832
|
-
var R = execute_derived(l);
|
|
833
|
-
l.equals(R) || (current_batch?.is_fork || (l.v = R), l.wv = increment_write_version()), !is_destroying_effect && (batch_values === null ? set_signal_status(l, l.f & 512 ? CLEAN : MAYBE_DIRTY) : (effect_tracking() || current_batch?.is_fork) && batch_values.set(l, R));
|
|
834
|
-
}
|
|
835
|
-
let eager_effects = /* @__PURE__ */ new Set();
|
|
836
|
-
const old_values = /* @__PURE__ */ new Map();
|
|
837
|
-
var eager_effects_deferred = !1;
|
|
838
|
-
function source(l, R) {
|
|
839
|
-
return {
|
|
840
|
-
f: 0,
|
|
841
|
-
v: l,
|
|
842
|
-
reactions: null,
|
|
843
|
-
equals,
|
|
844
|
-
rv: 0,
|
|
845
|
-
wv: 0
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
849
|
-
function state(l, R) {
|
|
850
|
-
let z = source(l, R);
|
|
851
|
-
return push_reaction_value(z), z;
|
|
852
|
-
}
|
|
853
|
-
function set(l, R, z = !1) {
|
|
854
|
-
return active_reaction !== null && (!untracking || active_reaction.f & 131072) && is_runes() && active_reaction.f & 4325394 && !current_sources?.includes(l) && state_unsafe_mutation(), internal_set(l, z ? proxy(R) : R);
|
|
855
|
-
}
|
|
856
|
-
function internal_set(l, R) {
|
|
857
|
-
if (!l.equals(R)) {
|
|
858
|
-
var z = l.v;
|
|
859
|
-
is_destroying_effect ? old_values.set(l, R) : old_values.set(l, z), l.v = R;
|
|
860
|
-
var B = Batch.ensure();
|
|
861
|
-
B.capture(l, z), l.f & 2 && (l.f & 2048 && execute_derived(l), set_signal_status(l, l.f & 512 ? CLEAN : MAYBE_DIRTY)), l.wv = increment_write_version(), mark_reactions(l, DIRTY), is_runes() && active_effect !== null && active_effect.f & 1024 && !(active_effect.f & 96) && (untracked_writes === null ? set_untracked_writes([l]) : untracked_writes.push(l)), !B.is_fork && eager_effects.size > 0 && !eager_effects_deferred && flush_eager_effects();
|
|
862
|
-
}
|
|
863
|
-
return R;
|
|
864
|
-
}
|
|
865
|
-
function flush_eager_effects() {
|
|
866
|
-
eager_effects_deferred = !1;
|
|
867
|
-
var l = is_updating_effect;
|
|
868
|
-
set_is_updating_effect(!0);
|
|
869
|
-
let R = Array.from(eager_effects);
|
|
870
|
-
try {
|
|
871
|
-
for (let l of R) l.f & 1024 && set_signal_status(l, MAYBE_DIRTY), is_dirty(l) && update_effect(l);
|
|
872
|
-
} finally {
|
|
873
|
-
set_is_updating_effect(l);
|
|
874
|
-
}
|
|
875
|
-
eager_effects.clear();
|
|
876
|
-
}
|
|
877
|
-
function increment(l) {
|
|
878
|
-
set(l, l.v + 1);
|
|
879
|
-
}
|
|
880
|
-
function mark_reactions(l, R) {
|
|
881
|
-
var z = l.reactions;
|
|
882
|
-
if (z !== null) for (var B = is_runes(), V = z.length, H = 0; H < V; H++) {
|
|
883
|
-
var U = z[H], W = U.f;
|
|
884
|
-
if (!(!B && U === active_effect)) {
|
|
885
|
-
var G = (W & DIRTY) === 0;
|
|
886
|
-
if (G && set_signal_status(U, R), W & 2) {
|
|
887
|
-
var K = U;
|
|
888
|
-
batch_values?.delete(K), W & 32768 || (W & 512 && (U.f |= WAS_MARKED), mark_reactions(K, MAYBE_DIRTY));
|
|
889
|
-
} else G && (W & 16 && eager_block_effects !== null && eager_block_effects.add(U), schedule_effect(U));
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
function without_reactive_context(l) {
|
|
894
|
-
var R = active_reaction, z = active_effect;
|
|
895
|
-
set_active_reaction(null), set_active_effect(null);
|
|
896
|
-
try {
|
|
897
|
-
return l();
|
|
898
|
-
} finally {
|
|
899
|
-
set_active_reaction(R), set_active_effect(z);
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
let is_updating_effect = !1;
|
|
903
|
-
function set_is_updating_effect(l) {
|
|
904
|
-
is_updating_effect = l;
|
|
905
|
-
}
|
|
906
|
-
let is_destroying_effect = !1;
|
|
907
|
-
function set_is_destroying_effect(l) {
|
|
908
|
-
is_destroying_effect = l;
|
|
909
|
-
}
|
|
910
|
-
let active_reaction = null, untracking = !1;
|
|
911
|
-
function set_active_reaction(l) {
|
|
912
|
-
active_reaction = l;
|
|
913
|
-
}
|
|
914
|
-
let active_effect = null;
|
|
915
|
-
function set_active_effect(l) {
|
|
916
|
-
active_effect = l;
|
|
917
|
-
}
|
|
918
|
-
let current_sources = null;
|
|
919
|
-
function push_reaction_value(l) {
|
|
920
|
-
active_reaction !== null && (current_sources === null ? current_sources = [l] : current_sources.push(l));
|
|
921
|
-
}
|
|
922
|
-
var new_deps = null, skipped_deps = 0;
|
|
923
|
-
let untracked_writes = null;
|
|
924
|
-
function set_untracked_writes(l) {
|
|
925
|
-
untracked_writes = l;
|
|
926
|
-
}
|
|
927
|
-
let write_version = 1;
|
|
928
|
-
var read_version = 0;
|
|
929
|
-
let update_version = read_version;
|
|
930
|
-
function set_update_version(l) {
|
|
931
|
-
update_version = l;
|
|
932
|
-
}
|
|
933
|
-
function increment_write_version() {
|
|
934
|
-
return ++write_version;
|
|
935
|
-
}
|
|
936
|
-
function is_dirty(l) {
|
|
937
|
-
var R = l.f;
|
|
938
|
-
if (R & 2048) return !0;
|
|
939
|
-
if (R & 2 && (l.f &= ~WAS_MARKED), R & 4096) {
|
|
940
|
-
var z = l.deps;
|
|
941
|
-
if (z !== null) for (var B = z.length, V = 0; V < B; V++) {
|
|
942
|
-
var H = z[V];
|
|
943
|
-
if (is_dirty(H) && update_derived(H), H.wv > l.wv) return !0;
|
|
944
|
-
}
|
|
945
|
-
R & 512 && batch_values === null && set_signal_status(l, CLEAN);
|
|
946
|
-
}
|
|
947
|
-
return !1;
|
|
948
|
-
}
|
|
949
|
-
function schedule_possible_effect_self_invalidation(l, R, z = !0) {
|
|
950
|
-
var B = l.reactions;
|
|
951
|
-
if (B !== null && !current_sources?.includes(l)) for (var V = 0; V < B.length; V++) {
|
|
952
|
-
var H = B[V];
|
|
953
|
-
H.f & 2 ? schedule_possible_effect_self_invalidation(H, R, !1) : R === H && (z ? set_signal_status(H, DIRTY) : H.f & 1024 && set_signal_status(H, MAYBE_DIRTY), schedule_effect(H));
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
function update_reaction(l) {
|
|
957
|
-
var R = new_deps, z = skipped_deps, B = untracked_writes, V = active_reaction, H = current_sources, U = component_context, W = untracking, G = update_version, K = l.f;
|
|
958
|
-
new_deps = null, skipped_deps = 0, untracked_writes = null, active_reaction = K & 96 ? null : l, current_sources = null, set_component_context(l.ctx), untracking = !1, update_version = ++read_version, l.ac !== null && (without_reactive_context(() => {
|
|
959
|
-
l.ac.abort(STALE_REACTION);
|
|
960
|
-
}), l.ac = null);
|
|
961
|
-
try {
|
|
962
|
-
l.f |= REACTION_IS_UPDATING;
|
|
963
|
-
var q = l.fn, J = q(), Y = l.deps;
|
|
964
|
-
if (new_deps !== null) {
|
|
965
|
-
var X;
|
|
966
|
-
if (remove_reactions(l, skipped_deps), Y !== null && skipped_deps > 0) for (Y.length = skipped_deps + new_deps.length, X = 0; X < new_deps.length; X++) Y[skipped_deps + X] = new_deps[X];
|
|
967
|
-
else l.deps = Y = new_deps;
|
|
968
|
-
if (effect_tracking() && l.f & 512) for (X = skipped_deps; X < Y.length; X++) (Y[X].reactions ??= []).push(l);
|
|
969
|
-
} else Y !== null && skipped_deps < Y.length && (remove_reactions(l, skipped_deps), Y.length = skipped_deps);
|
|
970
|
-
if (is_runes() && untracked_writes !== null && !untracking && Y !== null && !(l.f & 6146)) for (X = 0; X < untracked_writes.length; X++) schedule_possible_effect_self_invalidation(untracked_writes[X], l);
|
|
971
|
-
return V !== null && V !== l && (read_version++, untracked_writes !== null && (B === null ? B = untracked_writes : B.push(...untracked_writes))), l.f & 8388608 && (l.f ^= ERROR_VALUE), J;
|
|
972
|
-
} catch (l) {
|
|
973
|
-
return handle_error(l);
|
|
974
|
-
} finally {
|
|
975
|
-
l.f ^= REACTION_IS_UPDATING, new_deps = R, skipped_deps = z, untracked_writes = B, active_reaction = V, current_sources = H, set_component_context(U), untracking = W, update_version = G;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
function remove_reaction(l, R) {
|
|
979
|
-
let z = R.reactions;
|
|
980
|
-
if (z !== null) {
|
|
981
|
-
var B = index_of.call(z, l);
|
|
982
|
-
if (B !== -1) {
|
|
983
|
-
var V = z.length - 1;
|
|
984
|
-
V === 0 ? z = R.reactions = null : (z[B] = z[V], z.pop());
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
z === null && R.f & 2 && (new_deps === null || !new_deps.includes(R)) && (set_signal_status(R, MAYBE_DIRTY), R.f & 512 && (R.f ^= 512, R.f &= ~WAS_MARKED), destroy_derived_effects(R), remove_reactions(R, 0));
|
|
988
|
-
}
|
|
989
|
-
function remove_reactions(l, R) {
|
|
990
|
-
var z = l.deps;
|
|
991
|
-
if (z !== null) for (var B = R; B < z.length; B++) remove_reaction(l, z[B]);
|
|
992
|
-
}
|
|
993
|
-
function update_effect(l) {
|
|
994
|
-
var R = l.f;
|
|
995
|
-
if (!(R & 16384)) {
|
|
996
|
-
set_signal_status(l, CLEAN);
|
|
997
|
-
var z = active_effect, B = is_updating_effect;
|
|
998
|
-
active_effect = l, is_updating_effect = !0;
|
|
999
|
-
try {
|
|
1000
|
-
R & 16777232 ? destroy_block_effect_children(l) : destroy_effect_children(l), execute_effect_teardown(l);
|
|
1001
|
-
var V = update_reaction(l);
|
|
1002
|
-
l.teardown = typeof V == "function" ? V : null, l.wv = write_version;
|
|
1003
|
-
} finally {
|
|
1004
|
-
is_updating_effect = B, active_effect = z;
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
function get$1(l) {
|
|
1009
|
-
var R = (l.f & 2) != 0;
|
|
1010
|
-
if (null?.add(l), active_reaction !== null && !untracking && !(active_effect !== null && active_effect.f & 16384) && !current_sources?.includes(l)) {
|
|
1011
|
-
var z = active_reaction.deps;
|
|
1012
|
-
if (active_reaction.f & 2097152) l.rv < read_version && (l.rv = read_version, new_deps === null && z !== null && z[skipped_deps] === l ? skipped_deps++ : new_deps === null ? new_deps = [l] : new_deps.includes(l) || new_deps.push(l));
|
|
1013
|
-
else {
|
|
1014
|
-
(active_reaction.deps ??= []).push(l);
|
|
1015
|
-
var B = l.reactions;
|
|
1016
|
-
B === null ? l.reactions = [active_reaction] : B.includes(active_reaction) || B.push(active_reaction);
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
if (is_destroying_effect) {
|
|
1020
|
-
if (old_values.has(l)) return old_values.get(l);
|
|
1021
|
-
if (R) {
|
|
1022
|
-
var V = l, H = V.v;
|
|
1023
|
-
return (!(V.f & 1024) && V.reactions !== null || depends_on_old_values(V)) && (H = execute_derived(V)), old_values.set(V, H), H;
|
|
1024
|
-
}
|
|
1025
|
-
} else R && (!batch_values?.has(l) || current_batch?.is_fork && !effect_tracking()) && (V = l, is_dirty(V) && update_derived(V), is_updating_effect && effect_tracking() && !(V.f & 512) && reconnect(V));
|
|
1026
|
-
if (batch_values?.has(l)) return batch_values.get(l);
|
|
1027
|
-
if (l.f & 8388608) throw l.v;
|
|
1028
|
-
return l.v;
|
|
1029
|
-
}
|
|
1030
|
-
function reconnect(l) {
|
|
1031
|
-
if (l.deps !== null) {
|
|
1032
|
-
l.f ^= 512;
|
|
1033
|
-
for (let R of l.deps) (R.reactions ??= []).push(l), R.f & 2 && !(R.f & 512) && reconnect(R);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
function depends_on_old_values(l) {
|
|
1037
|
-
if (l.v === UNINITIALIZED) return !0;
|
|
1038
|
-
if (l.deps === null) return !1;
|
|
1039
|
-
for (let R of l.deps) if (old_values.has(R) || R.f & 2 && depends_on_old_values(R)) return !0;
|
|
1040
|
-
return !1;
|
|
1041
|
-
}
|
|
1042
|
-
var STATUS_MASK = ~(MAYBE_DIRTY | 3072);
|
|
1043
|
-
function set_signal_status(l, R) {
|
|
1044
|
-
l.f = l.f & STATUS_MASK | R;
|
|
1045
|
-
}
|
|
1046
|
-
function effect_tracking() {
|
|
1047
|
-
return active_reaction !== null && !untracking;
|
|
1048
|
-
}
|
|
1049
|
-
function execute_effect_teardown(l) {
|
|
1050
|
-
var R = l.teardown;
|
|
1051
|
-
if (R !== null) {
|
|
1052
|
-
let l = is_destroying_effect, z = active_reaction;
|
|
1053
|
-
set_is_destroying_effect(!0), set_active_reaction(null);
|
|
1054
|
-
try {
|
|
1055
|
-
R.call(null);
|
|
1056
|
-
} finally {
|
|
1057
|
-
set_is_destroying_effect(l), set_active_reaction(z);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
function destroy_effect_children(l, R = !1) {
|
|
1062
|
-
var z = l.first;
|
|
1063
|
-
for (l.first = l.last = null; z !== null;) {
|
|
1064
|
-
let l = z.ac;
|
|
1065
|
-
l !== null && without_reactive_context(() => {
|
|
1066
|
-
l.abort(STALE_REACTION);
|
|
1067
|
-
});
|
|
1068
|
-
var B = z.next;
|
|
1069
|
-
z.f & 64 ? z.parent = null : destroy_effect(z, R), z = B;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
function destroy_block_effect_children(l) {
|
|
1073
|
-
for (var R = l.first; R !== null;) {
|
|
1074
|
-
var z = R.next;
|
|
1075
|
-
R.f & 32 || destroy_effect(R), R = z;
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
function destroy_effect(l, R = !0) {
|
|
1079
|
-
var z = !1;
|
|
1080
|
-
(R || l.f & 262144) && l.nodes !== null && l.nodes.end !== null && (remove_effect_dom(l.nodes.start, l.nodes.end), z = !0), destroy_effect_children(l, R && !z), remove_reactions(l, 0), set_signal_status(l, 16384);
|
|
1081
|
-
var B = l.nodes && l.nodes.t;
|
|
1082
|
-
if (B !== null) for (let l of B) l.stop();
|
|
1083
|
-
execute_effect_teardown(l);
|
|
1084
|
-
var V = l.parent;
|
|
1085
|
-
V !== null && V.first !== null && unlink_effect(l), l.next = l.prev = l.teardown = l.ctx = l.deps = l.fn = l.nodes = l.ac = null;
|
|
1086
|
-
}
|
|
1087
|
-
function remove_effect_dom(l, R) {
|
|
1088
|
-
for (; l !== null;) {
|
|
1089
|
-
var z = l === R ? null : /* @__PURE__ */ get_next_sibling(l);
|
|
1090
|
-
l.remove(), l = z;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
function unlink_effect(l) {
|
|
1094
|
-
var R = l.parent, z = l.prev, B = l.next;
|
|
1095
|
-
z !== null && (z.next = B), B !== null && (B.prev = z), R !== null && (R.first === l && (R.first = B), R.last === l && (R.last = z));
|
|
1096
|
-
}
|
|
1097
|
-
function pause_children(l, R, z) {
|
|
1098
|
-
if (!(l.f & 8192)) {
|
|
1099
|
-
l.f ^= 8192;
|
|
1100
|
-
var B = l.nodes && l.nodes.t;
|
|
1101
|
-
if (B !== null) for (let l of B) (l.is_global || z) && R.push(l);
|
|
1102
|
-
for (var V = l.first; V !== null;) {
|
|
1103
|
-
var H = V.next, U = (V.f & 65536) != 0 || (V.f & 32) != 0 && (l.f & 16) != 0;
|
|
1104
|
-
pause_children(V, R, U ? z : !1), V = H;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1109
|
-
var subscriber_queue = [];
|
|
1110
|
-
function writable(l, R = noop) {
|
|
1111
|
-
let z = null, B = /* @__PURE__ */ new Set();
|
|
1112
|
-
function V(R) {
|
|
1113
|
-
if (safe_not_equal(l, R) && (l = R, z)) {
|
|
1114
|
-
let R = !subscriber_queue.length;
|
|
1115
|
-
for (let R of B) R[1](), subscriber_queue.push(R, l);
|
|
1116
|
-
if (R) {
|
|
1117
|
-
for (let l = 0; l < subscriber_queue.length; l += 2) subscriber_queue[l][0](subscriber_queue[l + 1]);
|
|
1118
|
-
subscriber_queue.length = 0;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
function H(R) {
|
|
1123
|
-
V(R(l));
|
|
1124
|
-
}
|
|
1125
|
-
function U(U, W = noop) {
|
|
1126
|
-
let G = [U, W];
|
|
1127
|
-
return B.add(G), B.size === 1 && (z = R(V, H) || noop), U(l), () => {
|
|
1128
|
-
B.delete(G), B.size === 0 && z && (z(), z = null);
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
return {
|
|
1132
|
-
set: V,
|
|
1133
|
-
update: H,
|
|
1134
|
-
subscribe: U
|
|
1135
|
-
};
|
|
1136
|
-
}
|
|
1137
|
-
var NavController = class {
|
|
1138
|
-
constructor(l) {
|
|
1139
|
-
this.stackStore = writable([{ route: l }]);
|
|
1140
|
-
}
|
|
1141
|
-
_getStackStore() {
|
|
1142
|
-
return this.stackStore;
|
|
1143
|
-
}
|
|
1144
|
-
navigate(l, R) {
|
|
1145
|
-
this.stackStore.update((z) => [...z, {
|
|
1146
|
-
route: l,
|
|
1147
|
-
args: R
|
|
1148
|
-
}]);
|
|
1149
|
-
}
|
|
1150
|
-
popBackStack() {
|
|
1151
|
-
this.stackStore.update((l) => l.length > 1 ? l.slice(0, -1) : l);
|
|
1152
|
-
}
|
|
1153
|
-
};
|
|
1154
|
-
function rememberNavController(l) {
|
|
1155
|
-
return new NavController(l);
|
|
1156
|
-
}
|
|
1157
|
-
function composable(l, R) {
|
|
1158
|
-
return {
|
|
1159
|
-
route: l,
|
|
1160
|
-
component: R()
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
var ComposeTheme = class extends SvelteComponent {}, AppRoot = class extends SvelteComponent {}, Column = class extends SvelteComponent {}, Row = class extends SvelteComponent {}, Box = class extends SvelteComponent {}, Spacer = class extends SvelteComponent {}, LazyColumn = class extends SvelteComponent {}, LazyRow = class extends SvelteComponent {}, Scaffold = class extends SvelteComponent {}, Surface = class extends SvelteComponent {}, Text$1 = class extends SvelteComponent {}, Button = class extends SvelteComponent {}, TextButton = class extends SvelteComponent {}, TonalButton = class extends SvelteComponent {}, IconButton = class extends SvelteComponent {}, ButtonWithIcon = class extends SvelteComponent {}, OutlinedButton = class extends SvelteComponent {}, OutlinedButtonWithIcon = class extends SvelteComponent {}, CheckButton = class extends SvelteComponent {}, Card = class extends SvelteComponent {}, OutlinedCard = class extends SvelteComponent {}, TextField = class extends SvelteComponent {}, OutlinedTextField = class extends SvelteComponent {}, Image = class extends SvelteComponent {}, Icon = class extends SvelteComponent {}, AnimatedVisibility = class extends SvelteComponent {}, AnimatedContent = class extends SvelteComponent {}, NavHost = class extends SvelteComponent {}, CodeBlock = class extends SvelteComponent {};
|
|
1164
|
-
export { Alignment, AnimatedContent, AnimatedVisibility, AppRoot, Arrangement, Box, Button, ButtonWithIcon, Card, CheckButton, CodeBlock, ColorScheme, Column, ComposeTheme, ContentScale, Density, Icon, IconButton, Image, LazyColumn, LazyRow, Modifier, NavController, NavHost, OutlinedButton, OutlinedButtonWithIcon, OutlinedCard, OutlinedTextField, Res, RoundedCornerShape, Row, Scaffold, Spacer, Surface, Text$1 as Text, TextButton, TextField, TextStyle, TonalButton, composable, fade, fadeIn, fadeOut, painterResource, rememberNavController, scaleFade, scaleIn, scaleOut, slideHorizontal, slideIn, slideOut };
|