ambient-display 1.1.19 → 1.2.2

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.
Files changed (169) hide show
  1. package/build/client/_app/immutable/assets/0.Dl9__I4E.css.gz +0 -0
  2. package/build/client/_app/immutable/assets/2.BtzFOBtk.css.gz +0 -0
  3. package/build/client/_app/immutable/assets/3.VTEzhx9-.css.gz +0 -0
  4. package/build/client/_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/PlayingTracker.BPTtFzSw.css.gz +0 -0
  6. package/build/client/_app/immutable/assets/_layout.Dl9__I4E.css.gz +0 -0
  7. package/build/client/_app/immutable/assets/_page.BtzFOBtk.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/_page.VTEzhx9-.css.gz +0 -0
  9. package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js +1 -0
  10. package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js.br +0 -0
  11. package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js.gz +0 -0
  12. package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js +5 -0
  13. package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js.br +0 -0
  14. package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js.gz +0 -0
  15. package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js +1 -0
  16. package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.br +0 -0
  17. package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.gz +0 -0
  18. package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js +3 -0
  19. package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js.br +0 -0
  20. package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js.gz +0 -0
  21. package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js +1 -0
  22. package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.br +0 -0
  23. package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.gz +0 -0
  24. package/build/client/_app/immutable/chunks/index.DFULH2AN.js +1 -0
  25. package/build/client/_app/immutable/chunks/index.DFULH2AN.js.br +0 -0
  26. package/build/client/_app/immutable/chunks/index.DFULH2AN.js.gz +0 -0
  27. package/build/client/_app/immutable/chunks/index.dKTgPKtW.js +4 -0
  28. package/build/client/_app/immutable/chunks/index.dKTgPKtW.js.br +0 -0
  29. package/build/client/_app/immutable/chunks/index.dKTgPKtW.js.gz +0 -0
  30. package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js +1 -0
  31. package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.br +0 -0
  32. package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.gz +0 -0
  33. package/build/client/_app/immutable/chunks/props.DYfFZGja.js +1 -0
  34. package/build/client/_app/immutable/chunks/props.DYfFZGja.js.br +0 -0
  35. package/build/client/_app/immutable/chunks/props.DYfFZGja.js.gz +0 -0
  36. package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js +1 -0
  37. package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.br +0 -0
  38. package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.gz +0 -0
  39. package/build/client/_app/immutable/chunks/this.EZLWgc5v.js +1 -0
  40. package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.br +0 -0
  41. package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.gz +0 -0
  42. package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js +1 -0
  43. package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.br +0 -0
  44. package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.gz +0 -0
  45. package/build/client/_app/immutable/entry/app.CUN30c9h.js +2 -0
  46. package/build/client/_app/immutable/entry/app.CUN30c9h.js.br +0 -0
  47. package/build/client/_app/immutable/entry/app.CUN30c9h.js.gz +0 -0
  48. package/build/client/_app/immutable/entry/start.C6HhKPxU.js +1 -0
  49. package/build/client/_app/immutable/entry/start.C6HhKPxU.js.br +2 -0
  50. package/build/client/_app/immutable/entry/start.C6HhKPxU.js.gz +0 -0
  51. package/build/client/_app/immutable/nodes/0.CpFR5G02.js +2 -0
  52. package/build/client/_app/immutable/nodes/0.CpFR5G02.js.br +0 -0
  53. package/build/client/_app/immutable/nodes/0.CpFR5G02.js.gz +0 -0
  54. package/build/client/_app/immutable/nodes/1.B3XhlwDo.js +1 -0
  55. package/build/client/_app/immutable/nodes/1.B3XhlwDo.js.br +0 -0
  56. package/build/client/_app/immutable/nodes/1.B3XhlwDo.js.gz +0 -0
  57. package/build/client/_app/immutable/nodes/2.MU8ojSgR.js +1 -0
  58. package/build/client/_app/immutable/nodes/2.MU8ojSgR.js.br +0 -0
  59. package/build/client/_app/immutable/nodes/2.MU8ojSgR.js.gz +0 -0
  60. package/build/client/_app/immutable/nodes/3.C-yT6jXP.js +1 -0
  61. package/build/client/_app/immutable/nodes/3.C-yT6jXP.js.br +0 -0
  62. package/build/client/_app/immutable/nodes/3.C-yT6jXP.js.gz +0 -0
  63. package/build/client/_app/version.json +1 -1
  64. package/build/client/_app/version.json.br +0 -0
  65. package/build/client/_app/version.json.gz +0 -0
  66. package/build/client/manifest.json.gz +0 -0
  67. package/build/server/chunks/{0-DghaxOyi.js → 0-nirVogjh.js} +3 -3
  68. package/build/server/chunks/0-nirVogjh.js.map +1 -0
  69. package/build/server/chunks/1-DcCpi3nW.js +9 -0
  70. package/build/server/chunks/1-DcCpi3nW.js.map +1 -0
  71. package/build/server/chunks/2-CwMl96vS.js +9 -0
  72. package/build/server/chunks/2-CwMl96vS.js.map +1 -0
  73. package/build/server/chunks/3-DPYW2cKz.js +9 -0
  74. package/build/server/chunks/3-DPYW2cKz.js.map +1 -0
  75. package/build/server/chunks/LoadingIndicator-CDp6tTFY.js +10 -0
  76. package/build/server/chunks/LoadingIndicator-CDp6tTFY.js.map +1 -0
  77. package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js → LoadingIndicator.svelte_svelte_type_style_lang-F_3XEmUz.js} +2 -2
  78. package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js.map → LoadingIndicator.svelte_svelte_type_style_lang-F_3XEmUz.js.map} +1 -1
  79. package/build/server/chunks/{PlayingTracker-DuFebO2_.js → PlayingTracker-Dm2xxH7o.js} +3 -3
  80. package/build/server/chunks/{PlayingTracker-DuFebO2_.js.map → PlayingTracker-Dm2xxH7o.js.map} +1 -1
  81. package/build/server/chunks/{_layout.svelte-CADTy4fg.js → _layout.svelte-BkMsHLGZ.js} +4 -5
  82. package/build/server/chunks/_layout.svelte-BkMsHLGZ.js.map +1 -0
  83. package/build/server/chunks/_page.svelte-BlQ5BDxG.js +115 -0
  84. package/build/server/chunks/_page.svelte-BlQ5BDxG.js.map +1 -0
  85. package/build/server/chunks/{_page.svelte-CYugZxLe.js → _page.svelte-CdVsmVc4.js} +16 -15
  86. package/build/server/chunks/_page.svelte-CdVsmVc4.js.map +1 -0
  87. package/build/server/chunks/error.svelte-BZE1ioPX.js +116 -0
  88. package/build/server/chunks/error.svelte-BZE1ioPX.js.map +1 -0
  89. package/build/server/chunks/{exports-D0QHgeSL.js → exports-DAjI6ZSp.js} +17 -2
  90. package/build/server/chunks/exports-DAjI6ZSp.js.map +1 -0
  91. package/build/server/chunks/{index2-DObisaVF.js → index2-BA59f76P.js} +297 -337
  92. package/build/server/chunks/index2-BA59f76P.js.map +1 -0
  93. package/build/server/index.js +156 -345
  94. package/build/server/index.js.map +1 -1
  95. package/build/server/manifest.js +5 -6
  96. package/build/server/manifest.js.map +1 -1
  97. package/package.json +1 -1
  98. package/server/index.js +3 -9
  99. package/server/spotify/index.js +0 -4
  100. package/server/spotify_auth.json +1 -7
  101. package/server/utils.js +5 -0
  102. package/build/client/_app/immutable/chunks/BQ2eCqC3.js +0 -5
  103. package/build/client/_app/immutable/chunks/BQ2eCqC3.js.br +0 -0
  104. package/build/client/_app/immutable/chunks/BQ2eCqC3.js.gz +0 -0
  105. package/build/client/_app/immutable/chunks/C7I4vMbc.js +0 -1
  106. package/build/client/_app/immutable/chunks/C7I4vMbc.js.br +0 -2
  107. package/build/client/_app/immutable/chunks/C7I4vMbc.js.gz +0 -0
  108. package/build/client/_app/immutable/chunks/CDVeMiAl.js +0 -1
  109. package/build/client/_app/immutable/chunks/CDVeMiAl.js.br +0 -0
  110. package/build/client/_app/immutable/chunks/CDVeMiAl.js.gz +0 -0
  111. package/build/client/_app/immutable/chunks/CvUX3i4L.js +0 -1
  112. package/build/client/_app/immutable/chunks/CvUX3i4L.js.br +0 -0
  113. package/build/client/_app/immutable/chunks/CvUX3i4L.js.gz +0 -0
  114. package/build/client/_app/immutable/chunks/D5aAvvqP.js +0 -2
  115. package/build/client/_app/immutable/chunks/D5aAvvqP.js.br +0 -0
  116. package/build/client/_app/immutable/chunks/D5aAvvqP.js.gz +0 -0
  117. package/build/client/_app/immutable/chunks/D8ITvQqD.js +0 -3
  118. package/build/client/_app/immutable/chunks/D8ITvQqD.js.br +0 -0
  119. package/build/client/_app/immutable/chunks/D8ITvQqD.js.gz +0 -0
  120. package/build/client/_app/immutable/chunks/DiaFwogD.js +0 -4
  121. package/build/client/_app/immutable/chunks/DiaFwogD.js.br +0 -0
  122. package/build/client/_app/immutable/chunks/DiaFwogD.js.gz +0 -0
  123. package/build/client/_app/immutable/chunks/DnG2xkSB.js +0 -1
  124. package/build/client/_app/immutable/chunks/DnG2xkSB.js.br +0 -2
  125. package/build/client/_app/immutable/chunks/DnG2xkSB.js.gz +0 -0
  126. package/build/client/_app/immutable/chunks/EvVuwjft.js +0 -1
  127. package/build/client/_app/immutable/chunks/EvVuwjft.js.br +0 -0
  128. package/build/client/_app/immutable/chunks/EvVuwjft.js.gz +0 -0
  129. package/build/client/_app/immutable/chunks/qSIFE6bv.js +0 -1
  130. package/build/client/_app/immutable/chunks/qSIFE6bv.js.br +0 -0
  131. package/build/client/_app/immutable/chunks/qSIFE6bv.js.gz +0 -0
  132. package/build/client/_app/immutable/chunks/ynvIH2CR.js +0 -1
  133. package/build/client/_app/immutable/chunks/ynvIH2CR.js.br +0 -0
  134. package/build/client/_app/immutable/chunks/ynvIH2CR.js.gz +0 -0
  135. package/build/client/_app/immutable/entry/app.Bf5niEvD.js +0 -2
  136. package/build/client/_app/immutable/entry/app.Bf5niEvD.js.br +0 -0
  137. package/build/client/_app/immutable/entry/app.Bf5niEvD.js.gz +0 -0
  138. package/build/client/_app/immutable/entry/start.DYX_a1uj.js +0 -1
  139. package/build/client/_app/immutable/entry/start.DYX_a1uj.js.br +0 -2
  140. package/build/client/_app/immutable/entry/start.DYX_a1uj.js.gz +0 -0
  141. package/build/client/_app/immutable/nodes/0.BWH--JS_.js +0 -2
  142. package/build/client/_app/immutable/nodes/0.BWH--JS_.js.br +0 -0
  143. package/build/client/_app/immutable/nodes/0.BWH--JS_.js.gz +0 -0
  144. package/build/client/_app/immutable/nodes/1.D_c4RSZq.js +0 -1
  145. package/build/client/_app/immutable/nodes/1.D_c4RSZq.js.br +0 -0
  146. package/build/client/_app/immutable/nodes/1.D_c4RSZq.js.gz +0 -0
  147. package/build/client/_app/immutable/nodes/2.DxFkPkVM.js +0 -1
  148. package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.br +0 -0
  149. package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.gz +0 -0
  150. package/build/client/_app/immutable/nodes/3.DHrglKgJ.js +0 -1
  151. package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.br +0 -0
  152. package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.gz +0 -0
  153. package/build/server/chunks/0-DghaxOyi.js.map +0 -1
  154. package/build/server/chunks/1-BJvQLIan.js +0 -9
  155. package/build/server/chunks/1-BJvQLIan.js.map +0 -1
  156. package/build/server/chunks/2-cxDj5MEl.js +0 -9
  157. package/build/server/chunks/2-cxDj5MEl.js.map +0 -1
  158. package/build/server/chunks/3-Bd5ZeRiN.js +0 -9
  159. package/build/server/chunks/3-Bd5ZeRiN.js.map +0 -1
  160. package/build/server/chunks/LoadingIndicator-BgSuwc17.js +0 -10
  161. package/build/server/chunks/LoadingIndicator-BgSuwc17.js.map +0 -1
  162. package/build/server/chunks/_layout.svelte-CADTy4fg.js.map +0 -1
  163. package/build/server/chunks/_page.svelte-B1q4zDaO.js +0 -114
  164. package/build/server/chunks/_page.svelte-B1q4zDaO.js.map +0 -1
  165. package/build/server/chunks/_page.svelte-CYugZxLe.js.map +0 -1
  166. package/build/server/chunks/error.svelte-DGl1DMvJ.js +0 -55
  167. package/build/server/chunks/error.svelte-DGl1DMvJ.js.map +0 -1
  168. package/build/server/chunks/exports-D0QHgeSL.js.map +0 -1
  169. package/build/server/chunks/index2-DObisaVF.js.map +0 -1
@@ -1,8 +1,5 @@
1
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx$1(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
2
-
3
1
  const BROWSER = false;
4
2
  var is_array = Array.isArray;
5
- var index_of = Array.prototype.indexOf;
6
3
  var array_from = Array.from;
7
4
  var define_property = Object.defineProperty;
8
5
  var get_descriptor = Object.getOwnPropertyDescriptor;
@@ -61,63 +58,12 @@ function state_unsafe_mutation() {
61
58
  throw new Error(`https://svelte.dev/e/state_unsafe_mutation`);
62
59
  }
63
60
  }
64
- let tracing_mode_flag = false;
61
+ let legacy_mode_flag = false;
65
62
  const HYDRATION_START = "[";
66
63
  const HYDRATION_END = "]";
67
64
  const HYDRATION_ERROR = {};
68
65
  const ELEMENT_IS_NAMESPACED = 1;
69
66
  const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
70
- function lifecycle_outside_component(name) {
71
- {
72
- throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
73
- }
74
- }
75
- let component_context = null;
76
- function set_component_context(context) {
77
- component_context = context;
78
- }
79
- function push$1(props, runes = false, fn) {
80
- component_context = {
81
- p: component_context,
82
- c: null,
83
- e: null,
84
- m: false,
85
- s: props,
86
- x: null,
87
- l: null
88
- };
89
- }
90
- function pop$1(component) {
91
- const context_stack_item = component_context;
92
- if (context_stack_item !== null) {
93
- const component_effects = context_stack_item.e;
94
- if (component_effects !== null) {
95
- var previous_effect = active_effect;
96
- var previous_reaction = active_reaction;
97
- context_stack_item.e = null;
98
- try {
99
- for (var i = 0; i < component_effects.length; i++) {
100
- var component_effect = component_effects[i];
101
- set_active_effect(component_effect.effect);
102
- set_active_reaction(component_effect.reaction);
103
- effect(component_effect.fn);
104
- }
105
- } finally {
106
- set_active_effect(previous_effect);
107
- set_active_reaction(previous_reaction);
108
- }
109
- }
110
- component_context = context_stack_item.p;
111
- context_stack_item.m = true;
112
- }
113
- return (
114
- /** @type {T} */
115
- {}
116
- );
117
- }
118
- function is_runes() {
119
- return true;
120
- }
121
67
  var $window;
122
68
  var first_child_getter;
123
69
  var next_sibling_getter;
@@ -131,9 +77,9 @@ function init_operations() {
131
77
  first_child_getter = get_descriptor(node_prototype, "firstChild").get;
132
78
  next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
133
79
  element_prototype.__click = void 0;
134
- element_prototype.__className = void 0;
80
+ element_prototype.__className = "";
135
81
  element_prototype.__attributes = null;
136
- element_prototype.__style = void 0;
82
+ element_prototype.__styles = null;
137
83
  element_prototype.__e = void 0;
138
84
  Text.prototype.__t = void 0;
139
85
  }
@@ -151,15 +97,23 @@ function get_next_sibling(node) {
151
97
  function clear_text_content(node) {
152
98
  node.textContent = "";
153
99
  }
154
- function destroy_derived_effects(derived) {
155
- var effects = derived.effects;
156
- if (effects !== null) {
157
- derived.effects = null;
158
- for (var i = 0; i < effects.length; i += 1) {
159
- destroy_effect(
160
- /** @type {Effect} */
161
- effects[i]
162
- );
100
+ function destroy_derived_children(derived) {
101
+ var children = derived.children;
102
+ if (children !== null) {
103
+ derived.children = null;
104
+ for (var i = 0; i < children.length; i += 1) {
105
+ var child = children[i];
106
+ if ((child.f & DERIVED) !== 0) {
107
+ destroy_derived(
108
+ /** @type {Derived} */
109
+ child
110
+ );
111
+ } else {
112
+ destroy_effect(
113
+ /** @type {Effect} */
114
+ child
115
+ );
116
+ }
163
117
  }
164
118
  }
165
119
  }
@@ -182,7 +136,7 @@ function execute_derived(derived) {
182
136
  set_active_effect(get_derived_parent_effect(derived));
183
137
  {
184
138
  try {
185
- destroy_derived_effects(derived);
139
+ destroy_derived_children(derived);
186
140
  value = update_reaction(derived);
187
141
  } finally {
188
142
  set_active_effect(prev_active_effect);
@@ -196,9 +150,15 @@ function update_derived(derived) {
196
150
  set_signal_status(derived, status);
197
151
  if (!derived.equals(value)) {
198
152
  derived.v = value;
199
- derived.wv = increment_write_version();
153
+ derived.version = increment_version();
200
154
  }
201
155
  }
156
+ function destroy_derived(derived) {
157
+ destroy_derived_children(derived);
158
+ remove_reactions(derived, 0);
159
+ set_signal_status(derived, DESTROYED);
160
+ derived.v = derived.children = derived.deps = derived.ctx = derived.reactions = null;
161
+ }
202
162
  function push_effect(effect2, parent_effect) {
203
163
  var parent_last = parent_effect.last;
204
164
  if (parent_last === null) {
@@ -210,10 +170,12 @@ function push_effect(effect2, parent_effect) {
210
170
  }
211
171
  }
212
172
  function create_effect(type, fn, sync, push2 = true) {
213
- var parent = active_effect;
173
+ var is_root = (type & ROOT_EFFECT) !== 0;
174
+ var parent_effect = active_effect;
214
175
  var effect2 = {
215
176
  ctx: component_context,
216
177
  deps: null,
178
+ deriveds: null,
217
179
  nodes_start: null,
218
180
  nodes_end: null,
219
181
  f: type | DIRTY,
@@ -221,34 +183,38 @@ function create_effect(type, fn, sync, push2 = true) {
221
183
  fn,
222
184
  last: null,
223
185
  next: null,
224
- parent,
186
+ parent: is_root ? null : parent_effect,
225
187
  prev: null,
226
188
  teardown: null,
227
189
  transitions: null,
228
- wv: 0
190
+ version: 0
229
191
  };
230
192
  if (sync) {
193
+ var previously_flushing_effect = is_flushing_effect;
231
194
  try {
195
+ set_is_flushing_effect(true);
232
196
  update_effect(effect2);
233
197
  effect2.f |= EFFECT_RAN;
234
198
  } catch (e) {
235
199
  destroy_effect(effect2);
236
200
  throw e;
201
+ } finally {
202
+ set_is_flushing_effect(previously_flushing_effect);
237
203
  }
238
204
  } else if (fn !== null) {
239
205
  schedule_effect(effect2);
240
206
  }
241
- var inert = sync && effect2.deps === null && effect2.first === null && effect2.nodes_start === null && effect2.teardown === null && (effect2.f & (EFFECT_HAS_DERIVED | BOUNDARY_EFFECT)) === 0;
242
- if (!inert && push2) {
243
- if (parent !== null) {
244
- push_effect(effect2, parent);
207
+ var inert = sync && effect2.deps === null && effect2.first === null && effect2.nodes_start === null && effect2.teardown === null && (effect2.f & EFFECT_HAS_DERIVED) === 0;
208
+ if (!inert && !is_root && push2) {
209
+ if (parent_effect !== null) {
210
+ push_effect(effect2, parent_effect);
245
211
  }
246
212
  if (active_reaction !== null && (active_reaction.f & DERIVED) !== 0) {
247
213
  var derived = (
248
214
  /** @type {Derived} */
249
215
  active_reaction
250
216
  );
251
- (derived.effects ??= []).push(effect2);
217
+ (derived.children ??= []).push(effect2);
252
218
  }
253
219
  }
254
220
  return effect2;
@@ -287,16 +253,21 @@ function execute_effect_teardown(effect2) {
287
253
  }
288
254
  }
289
255
  }
256
+ function destroy_effect_deriveds(signal) {
257
+ var deriveds = signal.deriveds;
258
+ if (deriveds !== null) {
259
+ signal.deriveds = null;
260
+ for (var i = 0; i < deriveds.length; i += 1) {
261
+ destroy_derived(deriveds[i]);
262
+ }
263
+ }
264
+ }
290
265
  function destroy_effect_children(signal, remove_dom = false) {
291
266
  var effect2 = signal.first;
292
267
  signal.first = signal.last = null;
293
268
  while (effect2 !== null) {
294
269
  var next = effect2.next;
295
- if ((effect2.f & ROOT_EFFECT) !== 0) {
296
- effect2.parent = null;
297
- } else {
298
- destroy_effect(effect2, remove_dom);
299
- }
270
+ destroy_effect(effect2, remove_dom);
300
271
  effect2 = next;
301
272
  }
302
273
  }
@@ -326,6 +297,7 @@ function destroy_effect(effect2, remove_dom = true) {
326
297
  removed = true;
327
298
  }
328
299
  destroy_effect_children(effect2, remove_dom && !removed);
300
+ destroy_effect_deriveds(effect2);
329
301
  remove_reactions(effect2, 0);
330
302
  set_signal_status(effect2, DESTROYED);
331
303
  var transitions = effect2.transitions;
@@ -357,7 +329,7 @@ function pause_effect(effect2, callback) {
357
329
  pause_children(effect2, transitions, true);
358
330
  run_out_transitions(transitions, () => {
359
331
  destroy_effect(effect2);
360
- if (callback) callback();
332
+ callback();
361
333
  });
362
334
  }
363
335
  function run_out_transitions(transitions, fn) {
@@ -389,33 +361,26 @@ function pause_children(effect2, transitions, local) {
389
361
  child = sibling;
390
362
  }
391
363
  }
392
- let micro_tasks = [];
393
- let idle_tasks = [];
394
- function run_micro_tasks() {
395
- var tasks = micro_tasks;
396
- micro_tasks = [];
397
- run_all(tasks);
398
- }
399
- function run_idle_tasks() {
400
- var tasks = idle_tasks;
401
- idle_tasks = [];
402
- run_all(tasks);
403
- }
404
364
  function flush_tasks() {
405
- if (micro_tasks.length > 0) {
406
- run_micro_tasks();
407
- }
408
- if (idle_tasks.length > 0) {
409
- run_idle_tasks();
365
+ }
366
+ function lifecycle_outside_component(name) {
367
+ {
368
+ throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
410
369
  }
411
370
  }
371
+ const FLUSH_MICROTASK = 0;
372
+ const FLUSH_SYNC = 1;
412
373
  let is_throwing_error = false;
413
- let is_flushing = false;
374
+ let scheduler_mode = FLUSH_MICROTASK;
375
+ let is_micro_task_queued = false;
414
376
  let last_scheduled_effect = null;
415
- let is_updating_effect = false;
377
+ let is_flushing_effect = false;
378
+ function set_is_flushing_effect(value) {
379
+ is_flushing_effect = value;
380
+ }
416
381
  let queued_root_effects = [];
382
+ let flush_count = 0;
417
383
  let active_reaction = null;
418
- let untracking = false;
419
384
  function set_active_reaction(reaction) {
420
385
  active_reaction = reaction;
421
386
  }
@@ -430,11 +395,14 @@ let untracked_writes = null;
430
395
  function set_untracked_writes(value) {
431
396
  untracked_writes = value;
432
397
  }
433
- let write_version = 1;
434
- let read_version = 0;
398
+ let current_version = 1;
435
399
  let skip_reaction = false;
436
- function increment_write_version() {
437
- return ++write_version;
400
+ let component_context = null;
401
+ function increment_version() {
402
+ return ++current_version;
403
+ }
404
+ function is_runes() {
405
+ return !legacy_mode_flag;
438
406
  }
439
407
  function check_dirtiness(reaction) {
440
408
  var flags = reaction.f;
@@ -446,31 +414,14 @@ function check_dirtiness(reaction) {
446
414
  var is_unowned = (flags & UNOWNED) !== 0;
447
415
  if (dependencies !== null) {
448
416
  var i;
449
- var dependency;
450
- var is_disconnected = (flags & DISCONNECTED) !== 0;
451
- var is_unowned_connected = is_unowned && active_effect !== null && !skip_reaction;
452
- var length = dependencies.length;
453
- if (is_disconnected || is_unowned_connected) {
454
- var derived = (
455
- /** @type {Derived} */
456
- reaction
457
- );
458
- var parent = derived.parent;
459
- for (i = 0; i < length; i++) {
460
- dependency = dependencies[i];
461
- if (is_disconnected || !dependency?.reactions?.includes(derived)) {
462
- (dependency.reactions ??= []).push(derived);
463
- }
464
- }
465
- if (is_disconnected) {
466
- derived.f ^= DISCONNECTED;
467
- }
468
- if (is_unowned_connected && parent !== null && (parent.f & UNOWNED) === 0) {
469
- derived.f ^= UNOWNED;
417
+ if ((flags & DISCONNECTED) !== 0) {
418
+ for (i = 0; i < dependencies.length; i++) {
419
+ (dependencies[i].reactions ??= []).push(reaction);
470
420
  }
421
+ reaction.f ^= DISCONNECTED;
471
422
  }
472
- for (i = 0; i < length; i++) {
473
- dependency = dependencies[i];
423
+ for (i = 0; i < dependencies.length; i++) {
424
+ var dependency = dependencies[i];
474
425
  if (check_dirtiness(
475
426
  /** @type {Derived} */
476
427
  dependency
@@ -480,7 +431,10 @@ function check_dirtiness(reaction) {
480
431
  dependency
481
432
  );
482
433
  }
483
- if (dependency.wv > reaction.wv) {
434
+ if (is_unowned && active_effect !== null && !skip_reaction && !dependency?.reactions?.includes(reaction)) {
435
+ (dependency.reactions ??= []).push(reaction);
436
+ }
437
+ if (dependency.version > reaction.version) {
484
438
  return true;
485
439
  }
486
440
  }
@@ -528,31 +482,6 @@ function handle_error(error, effect2, previous_effect, component_context2) {
528
482
  return;
529
483
  }
530
484
  }
531
- function schedule_possible_effect_self_invalidation(signal, effect2, root = true) {
532
- var reactions = signal.reactions;
533
- if (reactions === null) return;
534
- for (var i = 0; i < reactions.length; i++) {
535
- var reaction = reactions[i];
536
- if ((reaction.f & DERIVED) !== 0) {
537
- schedule_possible_effect_self_invalidation(
538
- /** @type {Derived} */
539
- reaction,
540
- effect2,
541
- false
542
- );
543
- } else if (effect2 === reaction) {
544
- if (root) {
545
- set_signal_status(reaction, DIRTY);
546
- } else if ((reaction.f & CLEAN) !== 0) {
547
- set_signal_status(reaction, MAYBE_DIRTY);
548
- }
549
- schedule_effect(
550
- /** @type {Effect} */
551
- reaction
552
- );
553
- }
554
- }
555
- }
556
485
  function update_reaction(reaction) {
557
486
  var previous_deps = new_deps;
558
487
  var previous_skipped_deps = skipped_deps;
@@ -561,18 +490,15 @@ function update_reaction(reaction) {
561
490
  var previous_skip_reaction = skip_reaction;
562
491
  var prev_derived_sources = derived_sources;
563
492
  var previous_component_context = component_context;
564
- var previous_untracking = untracking;
565
493
  var flags = reaction.f;
566
494
  new_deps = /** @type {null | Value[]} */
567
495
  null;
568
496
  skipped_deps = 0;
569
497
  untracked_writes = null;
570
- skip_reaction = (flags & UNOWNED) !== 0 && (untracking || !is_updating_effect || active_reaction === null);
571
498
  active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
499
+ skip_reaction = !is_flushing_effect && (flags & UNOWNED) !== 0;
572
500
  derived_sources = null;
573
- set_component_context(reaction.ctx);
574
- untracking = false;
575
- read_version++;
501
+ component_context = reaction.ctx;
576
502
  try {
577
503
  var result = (
578
504
  /** @type {Function} */
@@ -599,19 +525,6 @@ function update_reaction(reaction) {
599
525
  remove_reactions(reaction, skipped_deps);
600
526
  deps.length = skipped_deps;
601
527
  }
602
- if (is_runes() && untracked_writes !== null && !untracking && deps !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) {
603
- for (i = 0; i < /** @type {Source[]} */
604
- untracked_writes.length; i++) {
605
- schedule_possible_effect_self_invalidation(
606
- untracked_writes[i],
607
- /** @type {Effect} */
608
- reaction
609
- );
610
- }
611
- }
612
- if (previous_reaction !== null) {
613
- read_version++;
614
- }
615
528
  return result;
616
529
  } finally {
617
530
  new_deps = previous_deps;
@@ -620,14 +533,13 @@ function update_reaction(reaction) {
620
533
  active_reaction = previous_reaction;
621
534
  skip_reaction = previous_skip_reaction;
622
535
  derived_sources = prev_derived_sources;
623
- set_component_context(previous_component_context);
624
- untracking = previous_untracking;
536
+ component_context = previous_component_context;
625
537
  }
626
538
  }
627
539
  function remove_reaction(signal, dependency) {
628
540
  let reactions = dependency.reactions;
629
541
  if (reactions !== null) {
630
- var index = index_of.call(reactions, signal);
542
+ var index = reactions.indexOf(signal);
631
543
  if (index !== -1) {
632
544
  var new_length = reactions.length - 1;
633
545
  if (new_length === 0) {
@@ -646,10 +558,6 @@ function remove_reaction(signal, dependency) {
646
558
  if ((dependency.f & (UNOWNED | DISCONNECTED)) === 0) {
647
559
  dependency.f ^= DISCONNECTED;
648
560
  }
649
- destroy_derived_effects(
650
- /** @type {Derived} **/
651
- dependency
652
- );
653
561
  remove_reactions(
654
562
  /** @type {Derived} **/
655
563
  dependency,
@@ -672,64 +580,62 @@ function update_effect(effect2) {
672
580
  set_signal_status(effect2, CLEAN);
673
581
  var previous_effect = active_effect;
674
582
  var previous_component_context = component_context;
675
- var was_updating_effect = is_updating_effect;
676
583
  active_effect = effect2;
677
- is_updating_effect = true;
678
584
  try {
679
585
  if ((flags & BLOCK_EFFECT) !== 0) {
680
586
  destroy_block_effect_children(effect2);
681
587
  } else {
682
588
  destroy_effect_children(effect2);
683
589
  }
590
+ destroy_effect_deriveds(effect2);
684
591
  execute_effect_teardown(effect2);
685
592
  var teardown = update_reaction(effect2);
686
593
  effect2.teardown = typeof teardown === "function" ? teardown : null;
687
- effect2.wv = write_version;
688
- var deps = effect2.deps;
689
- var dep;
690
- if (BROWSER && tracing_mode_flag && (effect2.f & DIRTY) !== 0 && deps !== null) ;
594
+ effect2.version = current_version;
691
595
  if (BROWSER) ;
692
596
  } catch (error) {
693
597
  handle_error(error, effect2, previous_effect, previous_component_context || effect2.ctx);
694
598
  } finally {
695
- is_updating_effect = was_updating_effect;
696
599
  active_effect = previous_effect;
697
600
  }
698
601
  }
699
602
  function infinite_loop_guard() {
700
- try {
701
- effect_update_depth_exceeded();
702
- } catch (error) {
703
- if (last_scheduled_effect !== null) {
704
- {
705
- handle_error(error, last_scheduled_effect, null);
603
+ if (flush_count > 1e3) {
604
+ flush_count = 0;
605
+ try {
606
+ effect_update_depth_exceeded();
607
+ } catch (error) {
608
+ if (last_scheduled_effect !== null) {
609
+ {
610
+ handle_error(error, last_scheduled_effect, null);
611
+ }
612
+ } else {
613
+ throw error;
706
614
  }
707
- } else {
708
- throw error;
709
615
  }
710
616
  }
617
+ flush_count++;
711
618
  }
712
- function flush_queued_root_effects() {
713
- var was_updating_effect = is_updating_effect;
619
+ function flush_queued_root_effects(root_effects) {
620
+ var length = root_effects.length;
621
+ if (length === 0) {
622
+ return;
623
+ }
624
+ infinite_loop_guard();
625
+ var previously_flushing_effect = is_flushing_effect;
626
+ is_flushing_effect = true;
714
627
  try {
715
- var flush_count = 0;
716
- is_updating_effect = true;
717
- while (queued_root_effects.length > 0) {
718
- if (flush_count++ > 1e3) {
719
- infinite_loop_guard();
720
- }
721
- var root_effects = queued_root_effects;
722
- var length = root_effects.length;
723
- queued_root_effects = [];
724
- for (var i = 0; i < length; i++) {
725
- var collected_effects = process_effects(root_effects[i]);
726
- flush_queued_effects(collected_effects);
628
+ for (var i = 0; i < length; i++) {
629
+ var effect2 = root_effects[i];
630
+ if ((effect2.f & CLEAN) === 0) {
631
+ effect2.f ^= CLEAN;
727
632
  }
633
+ var collected_effects = [];
634
+ process_effects(effect2, collected_effects);
635
+ flush_queued_effects(collected_effects);
728
636
  }
729
637
  } finally {
730
- is_flushing = false;
731
- is_updating_effect = was_updating_effect;
732
- last_scheduled_effect = null;
638
+ is_flushing_effect = previously_flushing_effect;
733
639
  }
734
640
  }
735
641
  function flush_queued_effects(effects) {
@@ -755,12 +661,28 @@ function flush_queued_effects(effects) {
755
661
  }
756
662
  }
757
663
  }
664
+ function process_deferred() {
665
+ is_micro_task_queued = false;
666
+ if (flush_count > 1001) {
667
+ return;
668
+ }
669
+ const previous_queued_root_effects = queued_root_effects;
670
+ queued_root_effects = [];
671
+ flush_queued_root_effects(previous_queued_root_effects);
672
+ if (!is_micro_task_queued) {
673
+ flush_count = 0;
674
+ last_scheduled_effect = null;
675
+ }
676
+ }
758
677
  function schedule_effect(signal) {
759
- if (!is_flushing) {
760
- is_flushing = true;
761
- queueMicrotask(flush_queued_root_effects);
678
+ if (scheduler_mode === FLUSH_MICROTASK) {
679
+ if (!is_micro_task_queued) {
680
+ is_micro_task_queued = true;
681
+ queueMicrotask(process_deferred);
682
+ }
762
683
  }
763
- var effect2 = last_scheduled_effect = signal;
684
+ last_scheduled_effect = signal;
685
+ var effect2 = signal;
764
686
  while (effect2.parent !== null) {
765
687
  effect2 = effect2.parent;
766
688
  var flags = effect2.f;
@@ -771,87 +693,138 @@ function schedule_effect(signal) {
771
693
  }
772
694
  queued_root_effects.push(effect2);
773
695
  }
774
- function process_effects(root) {
696
+ function process_effects(effect2, collected_effects) {
697
+ var current_effect = effect2.first;
775
698
  var effects = [];
776
- var effect2 = root;
777
- while (effect2 !== null) {
778
- var flags = effect2.f;
779
- var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
699
+ main_loop: while (current_effect !== null) {
700
+ var flags = current_effect.f;
701
+ var is_branch = (flags & BRANCH_EFFECT) !== 0;
780
702
  var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;
703
+ var sibling = current_effect.next;
781
704
  if (!is_skippable_branch && (flags & INERT) === 0) {
782
- if ((flags & EFFECT) !== 0) {
783
- effects.push(effect2);
784
- } else if (is_branch) {
785
- effect2.f ^= CLEAN;
786
- } else {
787
- var previous_active_reaction = active_reaction;
788
- try {
789
- active_reaction = effect2;
790
- if (check_dirtiness(effect2)) {
791
- update_effect(effect2);
705
+ if ((flags & RENDER_EFFECT) !== 0) {
706
+ if (is_branch) {
707
+ current_effect.f ^= CLEAN;
708
+ } else {
709
+ try {
710
+ if (check_dirtiness(current_effect)) {
711
+ update_effect(current_effect);
712
+ }
713
+ } catch (error) {
714
+ handle_error(error, current_effect, null, current_effect.ctx);
792
715
  }
793
- } catch (error) {
794
- handle_error(error, effect2, null, effect2.ctx);
795
- } finally {
796
- active_reaction = previous_active_reaction;
797
716
  }
798
- }
799
- var child = effect2.first;
800
- if (child !== null) {
801
- effect2 = child;
802
- continue;
717
+ var child = current_effect.first;
718
+ if (child !== null) {
719
+ current_effect = child;
720
+ continue;
721
+ }
722
+ } else if ((flags & EFFECT) !== 0) {
723
+ effects.push(current_effect);
803
724
  }
804
725
  }
805
- var parent = effect2.parent;
806
- effect2 = effect2.next;
807
- while (effect2 === null && parent !== null) {
808
- effect2 = parent.next;
809
- parent = parent.parent;
726
+ if (sibling === null) {
727
+ let parent = current_effect.parent;
728
+ while (parent !== null) {
729
+ if (effect2 === parent) {
730
+ break main_loop;
731
+ }
732
+ var parent_sibling = parent.next;
733
+ if (parent_sibling !== null) {
734
+ current_effect = parent_sibling;
735
+ continue main_loop;
736
+ }
737
+ parent = parent.parent;
738
+ }
810
739
  }
740
+ current_effect = sibling;
741
+ }
742
+ for (var i = 0; i < effects.length; i++) {
743
+ child = effects[i];
744
+ collected_effects.push(child);
745
+ process_effects(child, collected_effects);
811
746
  }
812
- return effects;
813
747
  }
814
- function flushSync(fn) {
815
- var result;
816
- flush_tasks();
817
- while (queued_root_effects.length > 0) {
818
- is_flushing = true;
819
- flush_queued_root_effects();
748
+ function flush_sync(fn) {
749
+ var previous_scheduler_mode = scheduler_mode;
750
+ var previous_queued_root_effects = queued_root_effects;
751
+ try {
752
+ infinite_loop_guard();
753
+ const root_effects = [];
754
+ scheduler_mode = FLUSH_SYNC;
755
+ queued_root_effects = root_effects;
756
+ is_micro_task_queued = false;
757
+ flush_queued_root_effects(previous_queued_root_effects);
758
+ var result = fn?.();
820
759
  flush_tasks();
760
+ if (queued_root_effects.length > 0 || root_effects.length > 0) {
761
+ flush_sync();
762
+ }
763
+ flush_count = 0;
764
+ last_scheduled_effect = null;
765
+ if (BROWSER) ;
766
+ return result;
767
+ } finally {
768
+ scheduler_mode = previous_scheduler_mode;
769
+ queued_root_effects = previous_queued_root_effects;
821
770
  }
822
- return (
823
- /** @type {T} */
824
- result
825
- );
826
771
  }
827
772
  function get(signal) {
828
773
  var flags = signal.f;
829
774
  var is_derived = (flags & DERIVED) !== 0;
830
- if (active_reaction !== null && !untracking) {
775
+ if (is_derived && (flags & DESTROYED) !== 0) {
776
+ var value = execute_derived(
777
+ /** @type {Derived} */
778
+ signal
779
+ );
780
+ destroy_derived(
781
+ /** @type {Derived} */
782
+ signal
783
+ );
784
+ return value;
785
+ }
786
+ if (active_reaction !== null) {
831
787
  if (derived_sources !== null && derived_sources.includes(signal)) {
832
788
  state_unsafe_local_read();
833
789
  }
834
790
  var deps = active_reaction.deps;
835
- if (signal.rv < read_version) {
836
- signal.rv = read_version;
837
- if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
838
- skipped_deps++;
839
- } else if (new_deps === null) {
840
- new_deps = [signal];
841
- } else if (!skip_reaction || !new_deps.includes(signal)) {
842
- new_deps.push(signal);
843
- }
791
+ if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
792
+ skipped_deps++;
793
+ } else if (new_deps === null) {
794
+ new_deps = [signal];
795
+ } else {
796
+ new_deps.push(signal);
797
+ }
798
+ if (untracked_writes !== null && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & BRANCH_EFFECT) === 0 && untracked_writes.includes(signal)) {
799
+ set_signal_status(active_effect, DIRTY);
800
+ schedule_effect(active_effect);
844
801
  }
845
802
  } else if (is_derived && /** @type {Derived} */
846
- signal.deps === null && /** @type {Derived} */
847
- signal.effects === null) {
803
+ signal.deps === null) {
848
804
  var derived = (
849
805
  /** @type {Derived} */
850
806
  signal
851
807
  );
852
808
  var parent = derived.parent;
853
- if (parent !== null && (parent.f & UNOWNED) === 0) {
854
- derived.f ^= UNOWNED;
809
+ var target = derived;
810
+ while (parent !== null) {
811
+ if ((parent.f & DERIVED) !== 0) {
812
+ var parent_derived = (
813
+ /** @type {Derived} */
814
+ parent
815
+ );
816
+ target = parent_derived;
817
+ parent = parent_derived.parent;
818
+ } else {
819
+ var parent_effect = (
820
+ /** @type {Effect} */
821
+ parent
822
+ );
823
+ if (!parent_effect.deriveds?.includes(target)) {
824
+ (parent_effect.deriveds ??= []).push(target);
825
+ }
826
+ break;
827
+ }
855
828
  }
856
829
  }
857
830
  if (is_derived) {
@@ -864,18 +837,57 @@ function get(signal) {
864
837
  return signal.v;
865
838
  }
866
839
  function untrack(fn) {
867
- var previous_untracking = untracking;
840
+ const previous_reaction = active_reaction;
868
841
  try {
869
- untracking = true;
842
+ active_reaction = null;
870
843
  return fn();
871
844
  } finally {
872
- untracking = previous_untracking;
845
+ active_reaction = previous_reaction;
873
846
  }
874
847
  }
875
- const STATUS_MASK = -7169;
848
+ const STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
876
849
  function set_signal_status(signal, status) {
877
850
  signal.f = signal.f & STATUS_MASK | status;
878
851
  }
852
+ function push$1(props, runes = false, fn) {
853
+ component_context = {
854
+ p: component_context,
855
+ c: null,
856
+ e: null,
857
+ m: false,
858
+ s: props,
859
+ x: null,
860
+ l: null
861
+ };
862
+ }
863
+ function pop$1(component) {
864
+ const context_stack_item = component_context;
865
+ if (context_stack_item !== null) {
866
+ const component_effects = context_stack_item.e;
867
+ if (component_effects !== null) {
868
+ var previous_effect = active_effect;
869
+ var previous_reaction = active_reaction;
870
+ context_stack_item.e = null;
871
+ try {
872
+ for (var i = 0; i < component_effects.length; i++) {
873
+ var component_effect = component_effects[i];
874
+ set_active_effect(component_effect.effect);
875
+ set_active_reaction(component_effect.reaction);
876
+ effect(component_effect.fn);
877
+ }
878
+ } finally {
879
+ set_active_effect(previous_effect);
880
+ set_active_reaction(previous_reaction);
881
+ }
882
+ }
883
+ component_context = context_stack_item.p;
884
+ context_stack_item.m = true;
885
+ }
886
+ return (
887
+ /** @type {T} */
888
+ {}
889
+ );
890
+ }
879
891
  const DOM_BOOLEAN_ATTRIBUTES = [
880
892
  "allowfullscreen",
881
893
  "async",
@@ -888,7 +900,6 @@ const DOM_BOOLEAN_ATTRIBUTES = [
888
900
  "formnovalidate",
889
901
  "hidden",
890
902
  "indeterminate",
891
- "inert",
892
903
  "ismap",
893
904
  "loop",
894
905
  "multiple",
@@ -902,10 +913,7 @@ const DOM_BOOLEAN_ATTRIBUTES = [
902
913
  "reversed",
903
914
  "seamless",
904
915
  "selected",
905
- "webkitdirectory",
906
- "defer",
907
- "disablepictureinpicture",
908
- "disableremoteplayback"
916
+ "webkitdirectory"
909
917
  ];
910
918
  function is_boolean_attribute(name) {
911
919
  return DOM_BOOLEAN_ATTRIBUTES.includes(name);
@@ -937,41 +945,11 @@ const replacements = {
937
945
  ])
938
946
  };
939
947
  function attr(name, value, is_boolean = false) {
940
- if (value == null || !value && is_boolean) return "";
948
+ if (value == null || !value && is_boolean || value === "" && name === "class") return "";
941
949
  const normalized = name in replacements && replacements[name].get(value) || value;
942
950
  const assignment = is_boolean ? "" : `="${escape_html(normalized, true)}"`;
943
951
  return ` ${name}${assignment}`;
944
952
  }
945
- function clsx(value) {
946
- if (typeof value === "object") {
947
- return clsx$1(value);
948
- } else {
949
- return value ?? "";
950
- }
951
- }
952
- const whitespace = [..." \n\r\f \v\uFEFF"];
953
- function to_class(value, hash, directives) {
954
- var classname = value == null ? "" : "" + value;
955
- if (directives) {
956
- for (var key in directives) {
957
- if (directives[key]) {
958
- classname = classname ? classname + " " + key : key;
959
- } else if (classname.length) {
960
- var len = key.length;
961
- var a = 0;
962
- while ((a = classname.indexOf(key, a)) >= 0) {
963
- var b = a + len;
964
- if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {
965
- classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
966
- } else {
967
- a = b;
968
- }
969
- }
970
- }
971
- }
972
- }
973
- return classname === "" ? null : classname;
974
- }
975
953
  function subscribe_to_store(store, run, invalidate) {
976
954
  if (store == null) {
977
955
  run(void 0);
@@ -1034,37 +1012,23 @@ function get_parent_context(component_context2) {
1034
1012
  const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
1035
1013
  const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
1036
1014
  const INVALID_ATTR_NAME_CHAR_REGEX = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
1037
- function copy_payload({ out, css, head: head2, uid }) {
1015
+ function copy_payload({ out, css, head: head2 }) {
1038
1016
  return {
1039
1017
  out,
1040
1018
  css: new Set(css),
1041
1019
  head: {
1042
1020
  title: head2.title,
1043
- out: head2.out,
1044
- css: new Set(head2.css),
1045
- uid: head2.uid
1046
- },
1047
- uid
1021
+ out: head2.out
1022
+ }
1048
1023
  };
1049
1024
  }
1050
1025
  function assign_payload(p1, p2) {
1051
1026
  p1.out = p2.out;
1052
1027
  p1.head = p2.head;
1053
- p1.uid = p2.uid;
1054
1028
  }
1055
1029
  let on_destroy = [];
1056
- function props_id_generator(prefix) {
1057
- let uid = 1;
1058
- return () => `${prefix}s${uid++}`;
1059
- }
1060
1030
  function render(component, options = {}) {
1061
- const uid = props_id_generator(options.idPrefix ? options.idPrefix + "-" : "");
1062
- const payload = {
1063
- out: "",
1064
- css: /* @__PURE__ */ new Set(),
1065
- head: { title: "", out: "", css: /* @__PURE__ */ new Set(), uid },
1066
- uid
1067
- };
1031
+ const payload = { out: "", css: /* @__PURE__ */ new Set(), head: { title: "", out: "" } };
1068
1032
  const prev_on_destroy = on_destroy;
1069
1033
  on_destroy = [];
1070
1034
  payload.out += BLOCK_OPEN;
@@ -1095,10 +1059,7 @@ function head(payload, fn) {
1095
1059
  fn(head_payload);
1096
1060
  head_payload.out += BLOCK_CLOSE;
1097
1061
  }
1098
- function spread_attributes(attrs, css_hash, classes, styles, flags = 0) {
1099
- if (attrs.class) {
1100
- attrs.class = clsx(attrs.class);
1101
- }
1062
+ function spread_attributes(attrs, classes, styles, flags = 0) {
1102
1063
  let attr_str = "";
1103
1064
  let name;
1104
1065
  const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0;
@@ -1115,9 +1076,8 @@ function spread_attributes(attrs, css_hash, classes, styles, flags = 0) {
1115
1076
  }
1116
1077
  return attr_str;
1117
1078
  }
1118
- function attr_class(value, hash, directives) {
1119
- var result = to_class(value, hash, directives);
1120
- return result ? ` class="${escape_html(result, true)}"` : "";
1079
+ function stringify(value) {
1080
+ return typeof value === "string" ? value : value == null ? "" : value + "";
1121
1081
  }
1122
1082
  function store_get(store_values, store_name, store) {
1123
1083
  if (store_name in store_values && store_values[store_name][0] === store) {
@@ -1250,5 +1210,5 @@ function derived(stores, fn, initial_value) {
1250
1210
  });
1251
1211
  }
1252
1212
 
1253
- export { store_get as $, is_runes as A, BLOCK_EFFECT as B, CLEAN as C, DIRTY as D, derived_sources as E, state_unsafe_mutation as F, BRANCH_EFFECT as G, HYDRATION_START as H, untracked_writes as I, set_untracked_writes as J, create_text as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, branch as N, push as O, setContext as P, pop as Q, ROOT_EFFECT as R, push$1 as S, component_context as T, UNOWNED as U, pop$1 as V, BROWSER as W, readable as X, writable as Y, head as Z, attr as _, get_first_child as a, unsubscribe_stores as a0, escape_html as a1, getContext as a2, noop as a3, copy_payload as a4, assign_payload as a5, attr_class as a6, spread_attributes as a7, bind_props as a8, derived as a9, get_next_sibling as b, HYDRATION_ERROR as c, define_property as d, HYDRATION_END as e, flushSync as f, get as g, hydration_failed as h, init_operations as i, clear_text_content as j, increment_write_version as k, array_from as l, component_root as m, equals as n, set_signal_status as o, DERIVED as p, schedule_effect as q, render as r, safe_equals as s, is_passive_event as t, set_active_reaction as u, set_active_effect as v, is_array as w, active_effect as x, active_reaction as y, untracking as z };
1254
- //# sourceMappingURL=index2-DObisaVF.js.map
1213
+ export { unsubscribe_stores as $, new_deps as A, BLOCK_EFFECT as B, CLEAN as C, DERIVED as D, untracked_writes as E, set_untracked_writes as F, safe_equals as G, HYDRATION_START as H, set_active_reaction as I, set_active_effect as J, is_array as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, is_passive_event as N, create_text as O, branch as P, push$1 as Q, pop$1 as R, equals as S, component_context as T, UNOWNED as U, BROWSER as V, readable as W, writable as X, head as Y, attr as Z, store_get as _, active_reaction as a, noop as a0, escape_html as a1, getContext as a2, copy_payload as a3, assign_payload as a4, spread_attributes as a5, stringify as a6, bind_props as a7, derived as a8, derived_sources as b, increment_version as c, define_property as d, DIRTY as e, flush_sync as f, get as g, set_signal_status as h, is_runes as i, schedule_effect as j, init_operations as k, get_first_child as l, get_next_sibling as m, HYDRATION_ERROR as n, HYDRATION_END as o, hydration_failed as p, clear_text_content as q, render as r, state_unsafe_mutation as s, array_from as t, component_root as u, push as v, setContext as w, pop as x, active_effect as y, BRANCH_EFFECT as z };
1214
+ //# sourceMappingURL=index2-BA59f76P.js.map