@netless/fastboard-ui 0.3.7 → 0.3.8-alpha.0

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/index.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import Tippy from 'tippy.js';
2
-
3
1
  var __defProp = Object.defineProperty;
4
2
  var __defProps = Object.defineProperties;
5
3
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -40,7 +38,7 @@ var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:
40
38
  // inline-sass-stub:./src/style.scss
41
39
  injectStyle(style_default);
42
40
 
43
- // ../../node_modules/.pnpm/svelte@3.54.0/node_modules/svelte/internal/index.mjs
41
+ // ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/internal/index.mjs
44
42
  function noop() {
45
43
  }
46
44
  function assign(tar, src) {
@@ -139,6 +137,13 @@ function action_destroyer(action_result) {
139
137
  return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
140
138
  }
141
139
  var is_client = typeof window !== "undefined";
140
+ var is_hydrating = false;
141
+ function start_hydrating() {
142
+ is_hydrating = true;
143
+ }
144
+ function end_hydrating() {
145
+ is_hydrating = false;
146
+ }
142
147
  function append(target, node) {
143
148
  target.appendChild(node);
144
149
  }
@@ -341,6 +346,7 @@ function transition_out(block, local, detach2, callback) {
341
346
  callback();
342
347
  }
343
348
  }
349
+ var globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : global;
344
350
  function destroy_block(block, lookup) {
345
351
  block.d(1);
346
352
  lookup.delete(block.key);
@@ -527,6 +533,7 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
527
533
  $$.fragment = create_fragment59 ? create_fragment59($$.ctx) : false;
528
534
  if (options.target) {
529
535
  if (options.hydrate) {
536
+ start_hydrating();
530
537
  const nodes = children(options.target);
531
538
  $$.fragment && $$.fragment.l(nodes);
532
539
  nodes.forEach(detach);
@@ -536,10 +543,56 @@ function init(component, options, instance59, create_fragment59, not_equal2, pro
536
543
  if (options.intro)
537
544
  transition_in(component.$$.fragment);
538
545
  mount_component(component, options.target, options.anchor, options.customElement);
546
+ end_hydrating();
539
547
  flush();
540
548
  }
541
549
  set_current_component(parent_component);
542
550
  }
551
+ var SvelteElement;
552
+ if (typeof HTMLElement === "function") {
553
+ SvelteElement = class extends HTMLElement {
554
+ constructor() {
555
+ super();
556
+ this.attachShadow({ mode: "open" });
557
+ }
558
+ connectedCallback() {
559
+ const { on_mount } = this.$$;
560
+ this.$$.on_disconnect = on_mount.map(run).filter(is_function);
561
+ for (const key in this.$$.slotted) {
562
+ this.appendChild(this.$$.slotted[key]);
563
+ }
564
+ }
565
+ attributeChangedCallback(attr2, _oldValue, newValue) {
566
+ this[attr2] = newValue;
567
+ }
568
+ disconnectedCallback() {
569
+ run_all(this.$$.on_disconnect);
570
+ }
571
+ $destroy() {
572
+ destroy_component(this, 1);
573
+ this.$destroy = noop;
574
+ }
575
+ $on(type, callback) {
576
+ if (!is_function(callback)) {
577
+ return noop;
578
+ }
579
+ const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
580
+ callbacks.push(callback);
581
+ return () => {
582
+ const index = callbacks.indexOf(callback);
583
+ if (index !== -1)
584
+ callbacks.splice(index, 1);
585
+ };
586
+ }
587
+ $set($$props) {
588
+ if (this.$$set && !is_empty($$props)) {
589
+ this.$$.skip_bound = true;
590
+ this.$$set($$props);
591
+ this.$$.skip_bound = false;
592
+ }
593
+ }
594
+ };
595
+ }
543
596
  var SvelteComponent = class {
544
597
  $destroy() {
545
598
  destroy_component(this, 1);
@@ -658,7 +711,7 @@ function create_fragment(ctx) {
658
711
  return 0;
659
712
  return 1;
660
713
  }
661
- current_block_type_index = select_block_type(ctx);
714
+ current_block_type_index = select_block_type(ctx, -1);
662
715
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
663
716
  return {
664
717
  c() {
@@ -672,7 +725,7 @@ function create_fragment(ctx) {
672
725
  },
673
726
  p(ctx2, [dirty]) {
674
727
  let previous_block_index = current_block_type_index;
675
- current_block_type_index = select_block_type(ctx2);
728
+ current_block_type_index = select_block_type(ctx2, dirty);
676
729
  if (current_block_type_index === previous_block_index) {
677
730
  if_blocks[current_block_type_index].p(ctx2, dirty);
678
731
  } else {
@@ -3417,6 +3470,9 @@ var Icons = {
3417
3470
  Loading: Loading_default
3418
3471
  };
3419
3472
  var Icons_default = Icons;
3473
+
3474
+ // src/actions/tippy.ts
3475
+ import Tippy from "tippy.js";
3420
3476
  if (is_client) {
3421
3477
  Tippy.setDefaultProps({
3422
3478
  delay: [1e3, 400],
@@ -3558,7 +3614,7 @@ function create_if_block2(ctx) {
3558
3614
  return 0;
3559
3615
  return 1;
3560
3616
  }
3561
- current_block_type_index = select_block_type_1(ctx);
3617
+ current_block_type_index = select_block_type_1(ctx, -1);
3562
3618
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
3563
3619
  return {
3564
3620
  c() {
@@ -3572,7 +3628,7 @@ function create_if_block2(ctx) {
3572
3628
  },
3573
3629
  p(ctx2, dirty) {
3574
3630
  let previous_block_index = current_block_type_index;
3575
- current_block_type_index = select_block_type_1(ctx2);
3631
+ current_block_type_index = select_block_type_1(ctx2, dirty);
3576
3632
  if (current_block_type_index === previous_block_index) {
3577
3633
  if_blocks[current_block_type_index].p(ctx2, dirty);
3578
3634
  } else {
@@ -3820,7 +3876,7 @@ function create_fragment45(ctx) {
3820
3876
  return 0;
3821
3877
  return 1;
3822
3878
  }
3823
- current_block_type_index = select_block_type(ctx);
3879
+ current_block_type_index = select_block_type(ctx, -1);
3824
3880
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
3825
3881
  return {
3826
3882
  c() {
@@ -3834,7 +3890,7 @@ function create_fragment45(ctx) {
3834
3890
  },
3835
3891
  p(ctx2, [dirty]) {
3836
3892
  let previous_block_index = current_block_type_index;
3837
- current_block_type_index = select_block_type(ctx2);
3893
+ current_block_type_index = select_block_type(ctx2, dirty);
3838
3894
  if (current_block_type_index === previous_block_index) {
3839
3895
  if_blocks[current_block_type_index].p(ctx2, dirty);
3840
3896
  } else {
@@ -4238,28 +4294,36 @@ function instance46($$self, $$props, $$invalidate) {
4238
4294
  };
4239
4295
  $$self.$$.update = () => {
4240
4296
  if ($$self.$$.dirty & 2048) {
4241
- $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
4297
+ $:
4298
+ $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
4242
4299
  }
4243
4300
  if ($$self.$$.dirty & 65536) {
4244
- $$invalidate(13, disabled = !$writable);
4301
+ $:
4302
+ $$invalidate(13, disabled = !$writable);
4245
4303
  }
4246
4304
  if ($$self.$$.dirty & 4096) {
4247
- $$invalidate(7, t = i18n[language]);
4305
+ $:
4306
+ $$invalidate(7, t = i18n[language]);
4248
4307
  }
4249
4308
  if ($$self.$$.dirty & 8192) {
4250
- $$invalidate(2, type = disabled ? "disable" : "normal");
4309
+ $:
4310
+ $$invalidate(2, type = disabled ? "disable" : "normal");
4251
4311
  }
4252
4312
  if ($$self.$$.dirty & 2048) {
4253
- $$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
4313
+ $:
4314
+ $$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
4254
4315
  }
4255
4316
  if ($$self.$$.dirty & 2048) {
4256
- $$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
4317
+ $:
4318
+ $$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
4257
4319
  }
4258
4320
  if ($$self.$$.dirty & 40960) {
4259
- $$invalidate(4, undo_disabled = disabled || !$undoSteps);
4321
+ $:
4322
+ $$invalidate(4, undo_disabled = disabled || !$undoSteps);
4260
4323
  }
4261
4324
  if ($$self.$$.dirty & 24576) {
4262
- $$invalidate(3, redo_disabled = disabled || !$redoSteps);
4325
+ $:
4326
+ $$invalidate(3, redo_disabled = disabled || !$redoSteps);
4263
4327
  }
4264
4328
  };
4265
4329
  return [
@@ -4607,7 +4671,7 @@ function create_fragment47(ctx) {
4607
4671
  return create_if_block3;
4608
4672
  return create_else_block3;
4609
4673
  }
4610
- let current_block_type = select_block_type(ctx);
4674
+ let current_block_type = select_block_type(ctx, -1);
4611
4675
  let if_block = current_block_type(ctx);
4612
4676
  button1 = new Button_default({
4613
4677
  props: {
@@ -4671,7 +4735,7 @@ function create_fragment47(ctx) {
4671
4735
  button0_changes.$$scope = { dirty, ctx: ctx2 };
4672
4736
  }
4673
4737
  button0.$set(button0_changes);
4674
- if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
4738
+ if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
4675
4739
  if_block.p(ctx2, dirty);
4676
4740
  } else {
4677
4741
  if_block.d(1);
@@ -4788,28 +4852,36 @@ function instance47($$self, $$props, $$invalidate) {
4788
4852
  };
4789
4853
  $$self.$$.update = () => {
4790
4854
  if ($$self.$$.dirty & 32768) {
4791
- $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
4855
+ $:
4856
+ $$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
4792
4857
  }
4793
4858
  if ($$self.$$.dirty & 131072) {
4794
- $$invalidate(2, disabled = !$writable);
4859
+ $:
4860
+ $$invalidate(2, disabled = !$writable);
4795
4861
  }
4796
4862
  if ($$self.$$.dirty & 65536) {
4797
- $$invalidate(10, t = i18n2[language]);
4863
+ $:
4864
+ $$invalidate(10, t = i18n2[language]);
4798
4865
  }
4799
4866
  if ($$self.$$.dirty & 4) {
4800
- $$invalidate(5, type = disabled ? "disable" : "normal");
4867
+ $:
4868
+ $$invalidate(5, type = disabled ? "disable" : "normal");
4801
4869
  }
4802
4870
  if ($$self.$$.dirty & 32768) {
4803
- $$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
4871
+ $:
4872
+ $$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
4804
4873
  }
4805
4874
  if ($$self.$$.dirty & 32768) {
4806
- $$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
4875
+ $:
4876
+ $$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
4807
4877
  }
4808
4878
  if ($$self.$$.dirty & 20) {
4809
- $$invalidate(7, prev_disabled = disabled || !$index);
4879
+ $:
4880
+ $$invalidate(7, prev_disabled = disabled || !$index);
4810
4881
  }
4811
4882
  if ($$self.$$.dirty & 28) {
4812
- $$invalidate(6, next_disabled = disabled || $length == null || $index === $length - 1);
4883
+ $:
4884
+ $$invalidate(6, next_disabled = disabled || $length == null || $index === $length - 1);
4813
4885
  }
4814
4886
  };
4815
4887
  return [
@@ -5156,7 +5228,7 @@ function create_fragment48(ctx) {
5156
5228
  return create_if_block4;
5157
5229
  return create_else_block4;
5158
5230
  }
5159
- let current_block_type = select_block_type(ctx);
5231
+ let current_block_type = select_block_type(ctx, -1);
5160
5232
  let if_block = current_block_type(ctx);
5161
5233
  button1 = new Button_default({
5162
5234
  props: {
@@ -5220,7 +5292,7 @@ function create_fragment48(ctx) {
5220
5292
  button0_changes.$$scope = { dirty, ctx: ctx2 };
5221
5293
  }
5222
5294
  button0.$set(button0_changes);
5223
- if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
5295
+ if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
5224
5296
  if_block.p(ctx2, dirty);
5225
5297
  } else {
5226
5298
  if_block.d(1);
@@ -5372,28 +5444,36 @@ function instance48($$self, $$props, $$invalidate) {
5372
5444
  $$self.$$.update = () => {
5373
5445
  var _a;
5374
5446
  if ($$self.$$.dirty & 16384) {
5375
- $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
5447
+ $:
5448
+ $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
5376
5449
  }
5377
5450
  if ($$self.$$.dirty & 65536) {
5378
- $$invalidate(3, disabled = !$writable);
5451
+ $:
5452
+ $$invalidate(3, disabled = !$writable);
5379
5453
  }
5380
5454
  if ($$self.$$.dirty & 32768) {
5381
- $$invalidate(9, t = i18n3[language]);
5455
+ $:
5456
+ $$invalidate(9, t = i18n3[language]);
5382
5457
  }
5383
5458
  if ($$self.$$.dirty & 8) {
5384
- $$invalidate(5, type = disabled ? "disable" : "normal");
5459
+ $:
5460
+ $$invalidate(5, type = disabled ? "disable" : "normal");
5385
5461
  }
5386
5462
  if ($$self.$$.dirty & 16384) {
5387
- $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
5463
+ $:
5464
+ $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
5388
5465
  }
5389
5466
  if ($$self.$$.dirty & 16) {
5390
- $$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
5467
+ $:
5468
+ $$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
5391
5469
  }
5392
5470
  if ($$self.$$.dirty & 12) {
5393
- $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
5471
+ $:
5472
+ $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
5394
5473
  }
5395
5474
  if ($$self.$$.dirty & 12) {
5396
- $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
5475
+ $:
5476
+ $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
5397
5477
  }
5398
5478
  };
5399
5479
  return [
@@ -5429,7 +5509,7 @@ var ZoomControl = class extends SvelteComponent {
5429
5509
  };
5430
5510
  var ZoomControl_default = ZoomControl;
5431
5511
 
5432
- // ../../node_modules/.pnpm/svelte@3.54.0/node_modules/svelte/store/index.mjs
5512
+ // ../../node_modules/.pnpm/svelte@3.55.0/node_modules/svelte/store/index.mjs
5433
5513
  var subscriber_queue = [];
5434
5514
  function writable(value, start = noop) {
5435
5515
  let stop;
@@ -5597,13 +5677,13 @@ var scrollTop = function(node, value) {
5597
5677
  };
5598
5678
 
5599
5679
  // src/behaviors/icons/visual-studio-code.svg
5600
- var visual_studio_code_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMS4wMWVtIiBoZWlnaHQ9IjFlbSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI1NiAyNTQiIHN0eWxlPSItbXMtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0MzkiIHgxPSI1MCUiIHgyPSI1MCUiIHkxPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGRkYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggaWQ9Ikljb25pZnlJZC0xN2Y4NzIxNTViZS1jYzc2NmUtNTQ0MCIgZD0iTTE4MC44MjggMjUyLjYwNWExNS44NzIgMTUuODcyIDAgMCAwIDEyLjY1LS40ODZsNTIuNTAxLTI1LjI2MmExNS45NCAxNS45NCAwIDAgMCA5LjAyNS0xNC4zNjRWNDEuMTk3YTE1LjkzOSAxNS45MzkgMCAwIDAtOS4wMjUtMTQuMzYzbC01Mi41LTI1LjI2M2ExNS44NzcgMTUuODc3IDAgMCAwLTE4LjExNSAzLjA4NEw3NC44NTcgOTYuMzVsLTQzLjc4LTMzLjIzMmExMC42MTQgMTAuNjE0IDAgMCAwLTEzLjU2LjYwM0wzLjQ3NiA3Ni40OTRjLTQuNjMgNC4yMTEtNC42MzUgMTEuNDk1LS4wMTIgMTUuNzEzbDM3Ljk2NyAzNC42MzhsLTM3Ljk2NyAzNC42MzdjLTQuNjIzIDQuMjE5LTQuNjE4IDExLjUwMi4wMTIgMTUuNzE0bDE0LjA0MSAxMi43NzJhMTAuNjE0IDEwLjYxNCAwIDAgMCAxMy41Ni42MDRsNDMuNzgtMzMuMjMzbDEwMC41MDcgOTEuNjk1YTE1Ljg1MyAxNS44NTMgMCAwIDAgNS40NjQgMy41NzFabTEwLjQ2NC0xODMuNjQ5bC03Ni4yNjIgNTcuODg5bDc2LjI2MiA1Ny44ODhWNjguOTU2WiIvPjwvZGVmcz48bWFzayBpZD0iSWNvbmlmeUlkLTE3Zjg3MjE1NWJlLWNjNzY2ZS01NDQxIiBmaWxsPSIjZmZmIj48dXNlIGhyZWY9IiNJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0NDAiLz48L21hc2s+PHBhdGggZmlsbD0iIzAwNjVBOSIgZD0iTTI0Ni4xMzUgMjYuODczTDE5My41OTMgMS41NzVhMTUuODg1IDE1Ljg4NSAwIDAgMC0xOC4xMjMgMy4wOEwzLjQ2NiAxNjEuNDgyYy00LjYyNiA0LjIxOS00LjYyIDExLjUwMi4wMTIgMTUuNzE0bDE0LjA1IDEyLjc3MmExMC42MjUgMTAuNjI1IDAgMCAwIDEzLjU2OS42MDRMMjM4LjIyOSAzMy40MzZjNi45NDktNS4yNzEgMTYuOTMtLjMxNSAxNi45MyA4LjQwN3YtLjYxYTE1LjkzOCAxNS45MzggMCAwIDAtOS4wMjQtMTQuMzZaIiBtYXNrPSJ1cmwoI0ljb25pZnlJZC0xN2Y4NzIxNTViZS1jYzc2NmUtNTQ0MSkiLz48cGF0aCBmaWxsPSIjMDA3QUNDIiBkPSJtMjQ2LjEzNSAyMjYuODE2bC01Mi41NDIgMjUuMjk4YTE1Ljg4NyAxNS44ODcgMCAwIDEtMTguMTIzLTMuMDhMMy40NjYgOTIuMjA3Yy00LjYyNi00LjIxOC00LjYyLTExLjUwMi4wMTItMTUuNzEzbDE0LjA1LTEyLjc3M2ExMC42MjUgMTAuNjI1IDAgMCAxIDEzLjU2OS0uNjAzbDIwNy4xMzIgMTU3LjEzNWM2Ljk0OSA1LjI3MSAxNi45My4zMTUgMTYuOTMtOC40MDh2LjYxMWExNS45MzkgMTUuOTM5IDAgMCAxLTkuMDI0IDE0LjM2WiIgbWFzaz0idXJsKCNJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0NDEpIi8+PHBhdGggZmlsbD0iIzFGOUNGMCIgZD0iTTE5My40MjggMjUyLjEzNGExNS44OTIgMTUuODkyIDAgMCAxLTE4LjEyNS0zLjA4M2M1Ljg4MSA1Ljg4IDE1LjkzOCAxLjcxNSAxNS45MzgtNi42MDNWMTEuMjczYzAtOC4zMTgtMTAuMDU3LTEyLjQ4My0xNS45MzgtNi42MDJhMTUuODkyIDE1Ljg5MiAwIDAgMSAxOC4xMjUtMy4wODRsNTIuNTMzIDI1LjI2M2ExNS45MzcgMTUuOTM3IDAgMCAxIDkuMDMgMTQuMzYzVjIxMi41MWMwIDYuMTI1LTMuNTEgMTEuNzA5LTkuMDMgMTQuMzYzbC01Mi41MzMgMjUuMjYyWiIgbWFzaz0idXJsKCNJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0NDEpIi8+PHBhdGggZmlsbD0idXJsKCNJY29uaWZ5SWQtMTdmODcyMTU1YmUtY2M3NjZlLTU0MzkpIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTE4MC44MjggMjUyLjYwNWExNS44NzQgMTUuODc0IDAgMCAwIDEyLjY1LS40ODZsNTIuNS0yNS4yNjNhMTUuOTM4IDE1LjkzOCAwIDAgMCA5LjAyNi0xNC4zNjNWNDEuMTk3YTE1LjkzOSAxNS45MzkgMCAwIDAtOS4wMjUtMTQuMzYzTDE5My40NzcgMS41N2ExNS44NzcgMTUuODc3IDAgMCAwLTE4LjExNCAzLjA4NEw3NC44NTcgOTYuMzVsLTQzLjc4LTMzLjIzMmExMC42MTQgMTAuNjE0IDAgMCAwLTEzLjU2LjYwM0wzLjQ3NiA3Ni40OTRjLTQuNjMgNC4yMTEtNC42MzUgMTEuNDk1LS4wMTIgMTUuNzEzbDM3Ljk2NyAzNC42MzhsLTM3Ljk2NyAzNC42MzdjLTQuNjIzIDQuMjE5LTQuNjE4IDExLjUwMi4wMTIgMTUuNzE0bDE0LjA0MSAxMi43NzJhMTAuNjE0IDEwLjYxNCAwIDAgMCAxMy41Ni42MDRsNDMuNzgtMzMuMjMzbDEwMC41MDYgOTEuNjk1YTE1Ljg1NyAxNS44NTcgMCAwIDAgNS40NjUgMy41NzFabTEwLjQ2NC0xODMuNjVsLTc2LjI2MiA1Ny44OWw3Ni4yNjIgNTcuODg4VjY4Ljk1NloiIG1hc2s9InVybCgjSWNvbmlmeUlkLTE3Zjg3MjE1NWJlLWNjNzY2ZS01NDQxKSIvPjwvc3ZnPg==";
5680
+ var visual_studio_code_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1.01em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 254" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);"><defs><linearGradient id="IconifyId-17f872155be-cc766e-5439" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="%23FFF"/><stop offset="100%" stop-color="%23FFF" stop-opacity="0"/></linearGradient><path id="IconifyId-17f872155be-cc766e-5440" d="M180.828 252.605a15.872 15.872 0 0 0 12.65-.486l52.501-25.262a15.94 15.94 0 0 0 9.025-14.364V41.197a15.939 15.939 0 0 0-9.025-14.363l-52.5-25.263a15.877 15.877 0 0 0-18.115 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.507 91.695a15.853 15.853 0 0 0 5.464 3.571Zm10.464-183.649l-76.262 57.889l76.262 57.888V68.956Z"/></defs><mask id="IconifyId-17f872155be-cc766e-5441" fill="%23fff"><use href="%23IconifyId-17f872155be-cc766e-5440"/></mask><path fill="%230065A9" d="M246.135 26.873L193.593 1.575a15.885 15.885 0 0 0-18.123 3.08L3.466 161.482c-4.626 4.219-4.62 11.502.012 15.714l14.05 12.772a10.625 10.625 0 0 0 13.569.604L238.229 33.436c6.949-5.271 16.93-.315 16.93 8.407v-.61a15.938 15.938 0 0 0-9.024-14.36Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="%23007ACC" d="m246.135 226.816l-52.542 25.298a15.887 15.887 0 0 1-18.123-3.08L3.466 92.207c-4.626-4.218-4.62-11.502.012-15.713l14.05-12.773a10.625 10.625 0 0 1 13.569-.603l207.132 157.135c6.949 5.271 16.93.315 16.93-8.408v.611a15.939 15.939 0 0 1-9.024 14.36Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="%231F9CF0" d="M193.428 252.134a15.892 15.892 0 0 1-18.125-3.083c5.881 5.88 15.938 1.715 15.938-6.603V11.273c0-8.318-10.057-12.483-15.938-6.602a15.892 15.892 0 0 1 18.125-3.084l52.533 25.263a15.937 15.937 0 0 1 9.03 14.363V212.51c0 6.125-3.51 11.709-9.03 14.363l-52.533 25.262Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/><path fill="url(%23IconifyId-17f872155be-cc766e-5439)" fill-opacity=".25" d="M180.828 252.605a15.874 15.874 0 0 0 12.65-.486l52.5-25.263a15.938 15.938 0 0 0 9.026-14.363V41.197a15.939 15.939 0 0 0-9.025-14.363L193.477 1.57a15.877 15.877 0 0 0-18.114 3.084L74.857 96.35l-43.78-33.232a10.614 10.614 0 0 0-13.56.603L3.476 76.494c-4.63 4.211-4.635 11.495-.012 15.713l37.967 34.638l-37.967 34.637c-4.623 4.219-4.618 11.502.012 15.714l14.041 12.772a10.614 10.614 0 0 0 13.56.604l43.78-33.233l100.506 91.695a15.857 15.857 0 0 0 5.465 3.571Zm10.464-183.65l-76.262 57.89l76.262 57.888V68.956Z" mask="url(%23IconifyId-17f872155be-cc766e-5441)"/></svg>';
5601
5681
 
5602
5682
  // src/behaviors/icons/geogebra.svg
5603
- var geogebra_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1hcmN0aWNvbnMiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiM2NTU3ZDIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMjQgM2E0Ljc3IDQuNzcgMCAxIDAgNC43NyA0Ljc3QTQuNzggNC43OCAwIDAgMCAyNCAzWk03LjY5IDE0Ljg2YTQuNzcgNC43NyAwIDEgMCA0Ljc2IDQuNzdhNC43NiA0Ljc2IDAgMCAwLTQuNzYtNC43N1ptMzIuNjQgMGE0Ljc3IDQuNzcgMCAxIDAgNC43NyA0Ljc3YTQuNzcgNC43NyAwIDAgMC00Ljc3LTQuNzdaTTEzLjkyIDM0LjA1YTQuNzcgNC43NyAwIDEgMCA0Ljc3IDQuNzdhNC43NiA0Ljc2IDAgMCAwLTQuNzctNC43N1ptMjAuMTggMGE0Ljc3IDQuNzcgMCAxIDAgNC43NiA0Ljc3YTQuNzYgNC43NiAwIDAgMC00Ljc2LTQuNzdaIj48L3BhdGg+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNjU1N2QyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE5LjI3IDguMzVhMTcuMjQgMTcuMjQgMCAwIDAtOS43MyA2Ljg3bTI4LjUxLjIyYTE3LjI4IDE3LjI4IDAgMCAwLTkuMzQtNi45NG04LjcgMjYuODlBMTcuMDkgMTcuMDkgMCAwIDAgNDAuOTMgMjV2LS42MU0xOCA0MS4yMmExNy4yMyAxNy4yMyAwIDAgMCA1LjY4IDFhMTcgMTcgMCAwIDAgNi4yLTEuMjJNNi41MyAyNC4yNXYuNzJhMTcuMTYgMTcuMTYgMCAwIDAgMy43NyAxMC43NiI+PC9wYXRoPjwvc3ZnPg==";
5683
+ var geogebra_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--arcticons" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 48 48"><path fill="none" stroke="%236557d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M24 3a4.77 4.77 0 1 0 4.77 4.77A4.78 4.78 0 0 0 24 3ZM7.69 14.86a4.77 4.77 0 1 0 4.76 4.77a4.76 4.76 0 0 0-4.76-4.77Zm32.64 0a4.77 4.77 0 1 0 4.77 4.77a4.77 4.77 0 0 0-4.77-4.77ZM13.92 34.05a4.77 4.77 0 1 0 4.77 4.77a4.76 4.76 0 0 0-4.77-4.77Zm20.18 0a4.77 4.77 0 1 0 4.76 4.77a4.76 4.76 0 0 0-4.76-4.77Z"></path><path fill="none" stroke="%236557d2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M19.27 8.35a17.24 17.24 0 0 0-9.73 6.87m28.51.22a17.28 17.28 0 0 0-9.34-6.94m8.7 26.89A17.09 17.09 0 0 0 40.93 25v-.61M18 41.22a17.23 17.23 0 0 0 5.68 1a17 17 0 0 0 6.2-1.22M6.53 24.25v.72a17.16 17.16 0 0 0 3.77 10.76"></path></svg>';
5604
5684
 
5605
5685
  // src/behaviors/icons/countdown.svg
5606
- var countdown_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1yYWRpeC1pY29ucyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSIwIDAgMTUgMTUiPjxwYXRoIGZpbGw9ImdyZXkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTEzLjE1IDcuNWMwLTIuODM1LTIuMjEtNS42NS01LjY1LTUuNjVjLTIuNzc4IDAtNC4xNTEgMi4wNTYtNC43MzcgMy4xNUg0LjVhLjUuNSAwIDAgMSAwIDFoLTNhLjUuNSAwIDAgMS0uNS0uNXYtM2EuNS41IDAgMCAxIDEgMHYxLjgxM0MyLjcwNSAzLjA3MSA0LjMzNC44NSA3LjUuODVjNC4wNjMgMCA2LjY1IDMuMzM1IDYuNjUgNi42NWMwIDMuMzE1LTIuNTg3IDYuNjUtNi42NSA2LjY1Yy0xLjk0NCAwLTMuNTYyLS43Ny00LjcxNS0xLjk0MmE2Ljc3MiA2Ljc3MiAwIDAgMS0xLjQyNy0yLjE2N2EuNS41IDAgMSAxIC45MjUtLjM4Yy4yOC42ODEuNjkyIDEuMzE0IDEuMjE2IDEuODQ2Yy45NzIuOTkgMi4zMzYgMS42NDMgNC4wMDEgMS42NDNjMy40NCAwIDUuNjUtMi44MTUgNS42NS01LjY1Wk03IDEwVjVoMXY1SDdaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=";
5686
+ var countdown_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--radix-icons" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 15 15"><path fill="grey" fill-rule="evenodd" d="M13.15 7.5c0-2.835-2.21-5.65-5.65-5.65c-2.778 0-4.151 2.056-4.737 3.15H4.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 1 0v1.813C2.705 3.071 4.334.85 7.5.85c4.063 0 6.65 3.335 6.65 6.65c0 3.315-2.587 6.65-6.65 6.65c-1.944 0-3.562-.77-4.715-1.942a6.772 6.772 0 0 1-1.427-2.167a.5.5 0 1 1 .925-.38c.28.681.692 1.314 1.216 1.846c.972.99 2.336 1.643 4.001 1.643c3.44 0 5.65-2.815 5.65-5.65ZM7 10V5h1v5H7Z" clip-rule="evenodd"></path></svg>';
5607
5687
 
5608
5688
  // src/behaviors/apps.ts
5609
5689
  var AppsInToolbar = class {
@@ -5824,12 +5904,14 @@ function instance49($$self, $$props, $$invalidate) {
5824
5904
  };
5825
5905
  $$self.$$.update = () => {
5826
5906
  if ($$self.$$.dirty & 385) {
5827
- if (value !== real_value && !grabbing) {
5907
+ $:
5908
+ if (value !== real_value && !grabbing) {
5828
5909
  $$invalidate(7, real_value = value);
5829
5910
  }
5830
5911
  }
5831
5912
  if ($$self.$$.dirty & 152) {
5832
- $$invalidate(9, percent = 100 * (real_value - min) / (max - min));
5913
+ $:
5914
+ $$invalidate(9, percent = 100 * (real_value - min) / (max - min));
5833
5915
  }
5834
5916
  };
5835
5917
  return [
@@ -5935,13 +6017,16 @@ function instance50($$self, $$props, $$invalidate) {
5935
6017
  $$self.$$.update = () => {
5936
6018
  var _a;
5937
6019
  if ($$self.$$.dirty & 8) {
5938
- $$subscribe_memberState($$invalidate(1, memberState = app == null ? void 0 : app.memberState));
6020
+ $:
6021
+ $$subscribe_memberState($$invalidate(1, memberState = app == null ? void 0 : app.memberState));
5939
6022
  }
5940
6023
  if ($$self.$$.dirty & 128) {
5941
- $$invalidate(6, value = (_a = $memberState == null ? void 0 : $memberState.strokeWidth) != null ? _a : 1);
6024
+ $:
6025
+ $$invalidate(6, value = (_a = $memberState == null ? void 0 : $memberState.strokeWidth) != null ? _a : 1);
5942
6026
  }
5943
6027
  if ($$self.$$.dirty & 112) {
5944
- $$invalidate(0, props = { value, theme, disabled });
6028
+ $:
6029
+ $$invalidate(0, props = { value, theme, disabled });
5945
6030
  }
5946
6031
  };
5947
6032
  return [
@@ -5974,6 +6059,7 @@ function create_each_block(key_1, ctx) {
5974
6059
  let span;
5975
6060
  let t;
5976
6061
  let button_class_value;
6062
+ let button_data_color_key_value;
5977
6063
  return {
5978
6064
  key: key_1,
5979
6065
  first: null,
@@ -5984,7 +6070,7 @@ function create_each_block(key_1, ctx) {
5984
6070
  attr(span, "class", "fastboard-toolbar-color-item");
5985
6071
  set_style(span, "background-color", ctx[7]);
5986
6072
  attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
5987
- attr(button, "data-color-key", ctx[7]);
6073
+ attr(button, "data-color-key", button_data_color_key_value = ctx[7]);
5988
6074
  button.disabled = ctx[1];
5989
6075
  toggle_class(button, "is-active", is_equal_color(ctx[2], colors[ctx[7]]));
5990
6076
  this.first = button;
@@ -6096,10 +6182,12 @@ function instance51($$self, $$props, $$invalidate) {
6096
6182
  };
6097
6183
  $$self.$$.update = () => {
6098
6184
  if ($$self.$$.dirty & 32) {
6099
- $$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
6185
+ $:
6186
+ $$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
6100
6187
  }
6101
6188
  if ($$self.$$.dirty & 64) {
6102
- $$invalidate(2, strokeColor = $memberState == null ? void 0 : $memberState.strokeColor);
6189
+ $:
6190
+ $$invalidate(2, strokeColor = $memberState == null ? void 0 : $memberState.strokeColor);
6103
6191
  }
6104
6192
  };
6105
6193
  return [theme, disabled, strokeColor, memberState, set_stroke_color, app, $memberState];
@@ -6123,6 +6211,7 @@ function create_each_block2(key_1, ctx) {
6123
6211
  let span;
6124
6212
  let t;
6125
6213
  let button_class_value;
6214
+ let button_data_color_key_value;
6126
6215
  return {
6127
6216
  key: key_1,
6128
6217
  first: null,
@@ -6133,7 +6222,7 @@ function create_each_block2(key_1, ctx) {
6133
6222
  attr(span, "class", "fastboard-toolbar-color-item");
6134
6223
  set_style(span, "background-color", ctx[7]);
6135
6224
  attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
6136
- attr(button, "data-color-key", ctx[7]);
6225
+ attr(button, "data-color-key", button_data_color_key_value = ctx[7]);
6137
6226
  button.disabled = ctx[1];
6138
6227
  toggle_class(button, "is-active", is_equal_color2(ctx[2], colors[ctx[7]]));
6139
6228
  this.first = button;
@@ -6245,10 +6334,12 @@ function instance52($$self, $$props, $$invalidate) {
6245
6334
  };
6246
6335
  $$self.$$.update = () => {
6247
6336
  if ($$self.$$.dirty & 32) {
6248
- $$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
6337
+ $:
6338
+ $$subscribe_memberState($$invalidate(3, memberState = app == null ? void 0 : app.memberState));
6249
6339
  }
6250
6340
  if ($$self.$$.dirty & 64) {
6251
- $$invalidate(2, textColor = $memberState == null ? void 0 : $memberState.textColor);
6341
+ $:
6342
+ $$invalidate(2, textColor = $memberState == null ? void 0 : $memberState.textColor);
6252
6343
  }
6253
6344
  };
6254
6345
  return [theme, disabled, textColor, memberState, set_stroke_color, app, $memberState];
@@ -6413,6 +6504,7 @@ function create_each_block3(key_1, ctx) {
6413
6504
  let if_block;
6414
6505
  let t_1;
6415
6506
  let button_class_value;
6507
+ let button_data_shape_key_value;
6416
6508
  let tippy_action;
6417
6509
  let current;
6418
6510
  let mounted;
@@ -6424,7 +6516,7 @@ function create_each_block3(key_1, ctx) {
6424
6516
  return 0;
6425
6517
  return 1;
6426
6518
  }
6427
- current_block_type_index = select_block_type(ctx);
6519
+ current_block_type_index = select_block_type(ctx, -1);
6428
6520
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
6429
6521
  return {
6430
6522
  key: key_1,
@@ -6434,7 +6526,7 @@ function create_each_block3(key_1, ctx) {
6434
6526
  if_block.c();
6435
6527
  t_1 = space();
6436
6528
  attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-shape-btn " + ctx[0] + " " + ctx[12]);
6437
- attr(button, "data-shape-key", ctx[12]);
6529
+ attr(button, "data-shape-key", button_data_shape_key_value = ctx[12]);
6438
6530
  button.disabled = ctx[1];
6439
6531
  toggle_class(button, "is-active", ctx[13]);
6440
6532
  this.first = button;
@@ -6455,7 +6547,7 @@ function create_each_block3(key_1, ctx) {
6455
6547
  p(new_ctx, dirty) {
6456
6548
  ctx = new_ctx;
6457
6549
  let previous_block_index = current_block_type_index;
6458
- current_block_type_index = select_block_type(ctx);
6550
+ current_block_type_index = select_block_type(ctx, dirty);
6459
6551
  if (current_block_type_index === previous_block_index) {
6460
6552
  if_blocks[current_block_type_index].p(ctx, dirty);
6461
6553
  } else {
@@ -6638,22 +6730,28 @@ function instance53($$self, $$props, $$invalidate) {
6638
6730
  };
6639
6731
  $$self.$$.update = () => {
6640
6732
  if ($$self.$$.dirty & 512) {
6641
- $$invalidate(6, t = i18n5[language]);
6733
+ $:
6734
+ $$invalidate(6, t = i18n5[language]);
6642
6735
  }
6643
6736
  if ($$self.$$.dirty & 256) {
6644
- $$subscribe_memberState($$invalidate(5, memberState = app == null ? void 0 : app.memberState));
6737
+ $:
6738
+ $$subscribe_memberState($$invalidate(5, memberState = app == null ? void 0 : app.memberState));
6645
6739
  }
6646
6740
  if ($$self.$$.dirty & 2048) {
6647
- $$invalidate(4, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
6741
+ $:
6742
+ $$invalidate(4, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
6648
6743
  }
6649
6744
  if ($$self.$$.dirty & 2048) {
6650
- $$invalidate(3, shape = $memberState == null ? void 0 : $memberState.shapeType);
6745
+ $:
6746
+ $$invalidate(3, shape = $memberState == null ? void 0 : $memberState.shapeType);
6651
6747
  }
6652
6748
  if ($$self.$$.dirty & 256) {
6653
- $$invalidate(10, hotkeys = app == null ? void 0 : app.hotKeys);
6749
+ $:
6750
+ $$invalidate(10, hotkeys = app == null ? void 0 : app.hotKeys);
6654
6751
  }
6655
6752
  if ($$self.$$.dirty & 1024) {
6656
- $$invalidate(2, c = {
6753
+ $:
6754
+ $$invalidate(2, c = {
6657
6755
  rectangle: hotkeys == null ? void 0 : hotkeys.changeToRectangle,
6658
6756
  ellipse: hotkeys == null ? void 0 : hotkeys.changeToEllipse,
6659
6757
  straight: hotkeys == null ? void 0 : hotkeys.changeToStraight,
@@ -6862,7 +6960,7 @@ function create_default_slot_8(ctx) {
6862
6960
  return 0;
6863
6961
  return 1;
6864
6962
  }
6865
- current_block_type_index = select_block_type(ctx);
6963
+ current_block_type_index = select_block_type(ctx, [-1, -1]);
6866
6964
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
6867
6965
  return {
6868
6966
  c() {
@@ -6876,7 +6974,7 @@ function create_default_slot_8(ctx) {
6876
6974
  },
6877
6975
  p(ctx2, dirty) {
6878
6976
  let previous_block_index = current_block_type_index;
6879
- current_block_type_index = select_block_type(ctx2);
6977
+ current_block_type_index = select_block_type(ctx2, dirty);
6880
6978
  if (current_block_type_index === previous_block_index) {
6881
6979
  if_blocks[current_block_type_index].p(ctx2, dirty);
6882
6980
  } else {
@@ -6993,7 +7091,7 @@ function create_default_slot_7(ctx) {
6993
7091
  return 0;
6994
7092
  return 1;
6995
7093
  }
6996
- current_block_type_index = select_block_type_1(ctx);
7094
+ current_block_type_index = select_block_type_1(ctx, [-1, -1]);
6997
7095
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
6998
7096
  return {
6999
7097
  c() {
@@ -7007,7 +7105,7 @@ function create_default_slot_7(ctx) {
7007
7105
  },
7008
7106
  p(ctx2, dirty) {
7009
7107
  let previous_block_index = current_block_type_index;
7010
- current_block_type_index = select_block_type_1(ctx2);
7108
+ current_block_type_index = select_block_type_1(ctx2, dirty);
7011
7109
  if (current_block_type_index === previous_block_index) {
7012
7110
  if_blocks[current_block_type_index].p(ctx2, dirty);
7013
7111
  } else {
@@ -7124,7 +7222,7 @@ function create_default_slot_6(ctx) {
7124
7222
  return 0;
7125
7223
  return 1;
7126
7224
  }
7127
- current_block_type_index = select_block_type_2(ctx);
7225
+ current_block_type_index = select_block_type_2(ctx, [-1, -1]);
7128
7226
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
7129
7227
  return {
7130
7228
  c() {
@@ -7138,7 +7236,7 @@ function create_default_slot_6(ctx) {
7138
7236
  },
7139
7237
  p(ctx2, dirty) {
7140
7238
  let previous_block_index = current_block_type_index;
7141
- current_block_type_index = select_block_type_2(ctx2);
7239
+ current_block_type_index = select_block_type_2(ctx2, dirty);
7142
7240
  if (current_block_type_index === previous_block_index) {
7143
7241
  if_blocks[current_block_type_index].p(ctx2, dirty);
7144
7242
  } else {
@@ -7255,7 +7353,7 @@ function create_default_slot_53(ctx) {
7255
7353
  return 0;
7256
7354
  return 1;
7257
7355
  }
7258
- current_block_type_index = select_block_type_3(ctx);
7356
+ current_block_type_index = select_block_type_3(ctx, [-1, -1]);
7259
7357
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
7260
7358
  return {
7261
7359
  c() {
@@ -7269,7 +7367,7 @@ function create_default_slot_53(ctx) {
7269
7367
  },
7270
7368
  p(ctx2, dirty) {
7271
7369
  let previous_block_index = current_block_type_index;
7272
- current_block_type_index = select_block_type_3(ctx2);
7370
+ current_block_type_index = select_block_type_3(ctx2, dirty);
7273
7371
  if (current_block_type_index === previous_block_index) {
7274
7372
  if_blocks[current_block_type_index].p(ctx2, dirty);
7275
7373
  } else {
@@ -7456,7 +7554,7 @@ function create_default_slot_43(ctx) {
7456
7554
  return 0;
7457
7555
  return 1;
7458
7556
  }
7459
- current_block_type_index = select_block_type_4(ctx);
7557
+ current_block_type_index = select_block_type_4(ctx, [-1, -1]);
7460
7558
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
7461
7559
  return {
7462
7560
  c() {
@@ -7470,7 +7568,7 @@ function create_default_slot_43(ctx) {
7470
7568
  },
7471
7569
  p(ctx2, dirty) {
7472
7570
  let previous_block_index = current_block_type_index;
7473
- current_block_type_index = select_block_type_4(ctx2);
7571
+ current_block_type_index = select_block_type_4(ctx2, dirty);
7474
7572
  if (current_block_type_index === previous_block_index) {
7475
7573
  if_blocks[current_block_type_index].p(ctx2, dirty);
7476
7574
  } else {
@@ -7587,7 +7685,7 @@ function create_default_slot_34(ctx) {
7587
7685
  return 0;
7588
7686
  return 1;
7589
7687
  }
7590
- current_block_type_index = select_block_type_5(ctx);
7688
+ current_block_type_index = select_block_type_5(ctx, [-1, -1]);
7591
7689
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
7592
7690
  return {
7593
7691
  c() {
@@ -7601,7 +7699,7 @@ function create_default_slot_34(ctx) {
7601
7699
  },
7602
7700
  p(ctx2, dirty) {
7603
7701
  let previous_block_index = current_block_type_index;
7604
- current_block_type_index = select_block_type_5(ctx2);
7702
+ current_block_type_index = select_block_type_5(ctx2, dirty);
7605
7703
  if (current_block_type_index === previous_block_index) {
7606
7704
  if_blocks[current_block_type_index].p(ctx2, dirty);
7607
7705
  } else {
@@ -7957,7 +8055,9 @@ function create_fragment54(ctx) {
7957
8055
  let t6;
7958
8056
  let button6;
7959
8057
  let t7;
8058
+ let div0_class_value;
7960
8059
  let scrollHeight_action;
8060
+ let scrollTop_action;
7961
8061
  let t8;
7962
8062
  let t9;
7963
8063
  let div8;
@@ -7965,24 +8065,32 @@ function create_fragment54(ctx) {
7965
8065
  let strokewidth0;
7966
8066
  let t10;
7967
8067
  let div1;
8068
+ let div1_class_value;
7968
8069
  let t11;
7969
8070
  let strokecolor0;
8071
+ let div2_class_value;
7970
8072
  let t12;
7971
8073
  let div3;
7972
8074
  let textcolor;
8075
+ let div3_class_value;
7973
8076
  let t13;
7974
8077
  let div6;
7975
8078
  let shapes2;
7976
8079
  let t14;
7977
8080
  let div4;
8081
+ let div4_class_value;
7978
8082
  let t15;
7979
8083
  let strokewidth1;
7980
8084
  let t16;
7981
8085
  let div5;
8086
+ let div5_class_value;
7982
8087
  let t17;
7983
8088
  let strokecolor1;
8089
+ let div6_class_value;
7984
8090
  let t18;
7985
8091
  let div7;
8092
+ let div7_class_value;
8093
+ let div8_class_value;
7986
8094
  let current;
7987
8095
  let mounted;
7988
8096
  let dispose;
@@ -8182,17 +8290,17 @@ function create_fragment54(ctx) {
8182
8290
  for (let i = 0; i < each_blocks.length; i += 1) {
8183
8291
  each_blocks[i].c();
8184
8292
  }
8185
- attr(div0, "class", name5 + "-scrollable");
8293
+ attr(div0, "class", div0_class_value = name5 + "-scrollable");
8186
8294
  toggle_class(div0, "scrollable", ctx[5]);
8187
- attr(div1, "class", name5 + "-panel-divider");
8188
- attr(div2, "class", name5 + "-panel pencil");
8189
- attr(div3, "class", name5 + "-panel text");
8190
- attr(div4, "class", name5 + "-panel-divider");
8191
- attr(div5, "class", name5 + "-panel-divider");
8192
- attr(div6, "class", name5 + "-panel shapes");
8193
- attr(div7, "class", name5 + "-panel apps");
8295
+ attr(div1, "class", div1_class_value = name5 + "-panel-divider");
8296
+ attr(div2, "class", div2_class_value = name5 + "-panel pencil");
8297
+ attr(div3, "class", div3_class_value = name5 + "-panel text");
8298
+ attr(div4, "class", div4_class_value = name5 + "-panel-divider");
8299
+ attr(div5, "class", div5_class_value = name5 + "-panel-divider");
8300
+ attr(div6, "class", div6_class_value = name5 + "-panel shapes");
8301
+ attr(div7, "class", div7_class_value = name5 + "-panel apps");
8194
8302
  set_style(div7, "--n", ctx[19].length);
8195
- attr(div8, "class", name5 + "-panel-wrapper");
8303
+ attr(div8, "class", div8_class_value = name5 + "-panel-wrapper");
8196
8304
  set_style(div8, "display", "none");
8197
8305
  },
8198
8306
  m(target, anchor) {
@@ -8254,7 +8362,7 @@ function create_fragment54(ctx) {
8254
8362
  if (!mounted) {
8255
8363
  dispose = [
8256
8364
  action_destroyer(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
8257
- action_destroyer(scrollTop.call(null, div0, ctx[21]))
8365
+ action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
8258
8366
  ];
8259
8367
  mounted = true;
8260
8368
  }
@@ -8655,7 +8763,8 @@ function instance54($$self, $$props, $$invalidate) {
8655
8763
  };
8656
8764
  $$self.$$.update = () => {
8657
8765
  if ($$self.$$.dirty[0] & 10) {
8658
- $$invalidate(15, btn_props = {
8766
+ $:
8767
+ $$invalidate(15, btn_props = {
8659
8768
  name: name5,
8660
8769
  theme,
8661
8770
  disabled,
@@ -8663,13 +8772,16 @@ function instance54($$self, $$props, $$invalidate) {
8663
8772
  });
8664
8773
  }
8665
8774
  if ($$self.$$.dirty[0] & 4) {
8666
- $$invalidate(9, t = i18n4[language]);
8775
+ $:
8776
+ $$invalidate(9, t = i18n4[language]);
8667
8777
  }
8668
8778
  if ($$self.$$.dirty[0] & 1) {
8669
- $$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
8779
+ $:
8780
+ $$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
8670
8781
  }
8671
8782
  if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
8672
- $$invalidate(18, c = {
8783
+ $:
8784
+ $$invalidate(18, c = {
8673
8785
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
8674
8786
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
8675
8787
  pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
@@ -8678,26 +8790,32 @@ function instance54($$self, $$props, $$invalidate) {
8678
8790
  });
8679
8791
  }
8680
8792
  if ($$self.$$.dirty[0] & 1) {
8681
- $$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
8793
+ $:
8794
+ $$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
8682
8795
  }
8683
8796
  if ($$self.$$.dirty[1] & 8) {
8684
- $$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
8797
+ $:
8798
+ $$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
8685
8799
  }
8686
8800
  if ($$self.$$.dirty[1] & 8) {
8687
- $$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
8801
+ $:
8802
+ $$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
8688
8803
  }
8689
8804
  if ($$self.$$.dirty[0] & 1) {
8690
- $$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
8805
+ $:
8806
+ $$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
8691
8807
  }
8692
8808
  if ($$self.$$.dirty[0] & 384) {
8693
- if (applianceShapes.includes(appliance)) {
8809
+ $:
8810
+ if (applianceShapes.includes(appliance)) {
8694
8811
  $$invalidate(10, last_shape = appliance);
8695
8812
  } else if (shape) {
8696
8813
  $$invalidate(10, last_shape = shape);
8697
8814
  }
8698
8815
  }
8699
8816
  if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
8700
- max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
8817
+ $:
8818
+ max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
8701
8819
  }
8702
8820
  };
8703
8821
  return [
@@ -8772,18 +8890,20 @@ var Contents_default = Contents;
8772
8890
  // src/components/Toolbar/Toolbar.svelte
8773
8891
  function create_else_block7(ctx) {
8774
8892
  let path0;
8893
+ let path0_class_value;
8775
8894
  let path1;
8895
+ let path1_class_value;
8776
8896
  return {
8777
8897
  c() {
8778
8898
  path0 = svg_element("path");
8779
8899
  path1 = svg_element("path");
8780
8900
  attr(path0, "stroke", "#000");
8781
8901
  attr(path0, "d", "M20 52v16");
8782
- attr(path0, "class", name6 + "-handler-image-stroke-color");
8902
+ attr(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
8783
8903
  attr(path1, "fill", "#000");
8784
8904
  attr(path1, "stroke", "none");
8785
8905
  attr(path1, "d", "M16 52v16l-8-8z");
8786
- attr(path1, "class", name6 + "-handler-image-fill-color");
8906
+ attr(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
8787
8907
  },
8788
8908
  m(target, anchor) {
8789
8909
  insert(target, path0, anchor);
@@ -8800,18 +8920,20 @@ function create_else_block7(ctx) {
8800
8920
  }
8801
8921
  function create_if_block7(ctx) {
8802
8922
  let path0;
8923
+ let path0_class_value;
8803
8924
  let path1;
8925
+ let path1_class_value;
8804
8926
  return {
8805
8927
  c() {
8806
8928
  path0 = svg_element("path");
8807
8929
  path1 = svg_element("path");
8808
8930
  attr(path0, "stroke", "#000");
8809
8931
  attr(path0, "d", "M10 52v16");
8810
- attr(path0, "class", name6 + "-handler-image-stroke-color");
8932
+ attr(path0, "class", path0_class_value = name6 + "-handler-image-stroke-color");
8811
8933
  attr(path1, "fill", "#000");
8812
8934
  attr(path1, "stroke", "none");
8813
8935
  attr(path1, "d", "M14 52v16l8-8z");
8814
- attr(path1, "class", name6 + "-handler-image-fill-color");
8936
+ attr(path1, "class", path1_class_value = name6 + "-handler-image-fill-color");
8815
8937
  },
8816
8938
  m(target, anchor) {
8817
8939
  insert(target, path0, anchor);
@@ -8837,9 +8959,12 @@ function create_fragment55(ctx) {
8837
8959
  let t1;
8838
8960
  let svg;
8839
8961
  let path0;
8962
+ let path0_class_value;
8840
8963
  let path1;
8964
+ let path1_class_value;
8841
8965
  let label_class_value;
8842
8966
  let div1_class_value;
8967
+ let height_action;
8843
8968
  let current;
8844
8969
  let mounted;
8845
8970
  let dispose;
@@ -8860,7 +8985,7 @@ function create_fragment55(ctx) {
8860
8985
  return create_if_block7;
8861
8986
  return create_else_block7;
8862
8987
  }
8863
- let current_block_type = select_block_type(ctx);
8988
+ let current_block_type = select_block_type(ctx, -1);
8864
8989
  let if_block = current_block_type(ctx);
8865
8990
  return {
8866
8991
  c() {
@@ -8881,10 +9006,10 @@ function create_fragment55(ctx) {
8881
9006
  attr(path0, "fill", "#fff");
8882
9007
  attr(path0, "stroke", "none");
8883
9008
  attr(path0, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
8884
- attr(path0, "class", name6 + "-handler-bg-color");
9009
+ attr(path0, "class", path0_class_value = name6 + "-handler-bg-color");
8885
9010
  attr(path1, "stroke", "#000");
8886
9011
  attr(path1, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
8887
- attr(path1, "class", name6 + "-handler-border-color");
9012
+ attr(path1, "class", path1_class_value = name6 + "-handler-border-color");
8888
9013
  attr(svg, "fill", "none");
8889
9014
  attr(svg, "stroke-width", "2");
8890
9015
  attr(svg, "viewBox", "0 0 32 120");
@@ -8909,7 +9034,7 @@ function create_fragment55(ctx) {
8909
9034
  if (!mounted) {
8910
9035
  dispose = [
8911
9036
  listen(input, "change", ctx[15]),
8912
- action_destroyer(height.call(null, div1, ctx[9]))
9037
+ action_destroyer(height_action = height.call(null, div1, ctx[9]))
8913
9038
  ];
8914
9039
  mounted = true;
8915
9040
  }
@@ -8940,7 +9065,7 @@ function create_fragment55(ctx) {
8940
9065
  if (dirty & 8) {
8941
9066
  input.checked = ctx2[3];
8942
9067
  }
8943
- if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
9068
+ if (current_block_type === (current_block_type = select_block_type(ctx2, dirty)) && if_block) {
8944
9069
  if_block.p(ctx2, dirty);
8945
9070
  } else {
8946
9071
  if_block.d(1);
@@ -9018,19 +9143,24 @@ function instance55($$self, $$props, $$invalidate) {
9018
9143
  $$self.$$.update = () => {
9019
9144
  var _a;
9020
9145
  if ($$self.$$.dirty & 1) {
9021
- $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
9146
+ $:
9147
+ $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
9022
9148
  }
9023
9149
  if ($$self.$$.dirty & 16384) {
9024
- $$invalidate(7, disabled = !$writable);
9150
+ $:
9151
+ $$invalidate(7, disabled = !$writable);
9025
9152
  }
9026
9153
  if ($$self.$$.dirty & 12288) {
9027
- $$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
9154
+ $:
9155
+ $$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
9028
9156
  }
9029
9157
  if ($$self.$$.dirty & 12288) {
9030
- $$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
9158
+ $:
9159
+ $$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
9031
9160
  }
9032
9161
  if ($$self.$$.dirty & 2048) {
9033
- $$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
9162
+ $:
9163
+ $$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
9034
9164
  }
9035
9165
  };
9036
9166
  return [
@@ -9319,7 +9449,7 @@ function create_default_slot_25(ctx) {
9319
9449
  return 1;
9320
9450
  return 2;
9321
9451
  }
9322
- current_block_type_index = select_block_type(ctx);
9452
+ current_block_type_index = select_block_type(ctx, -1);
9323
9453
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9324
9454
  return {
9325
9455
  c() {
@@ -9333,7 +9463,7 @@ function create_default_slot_25(ctx) {
9333
9463
  },
9334
9464
  p(ctx2, dirty) {
9335
9465
  let previous_block_index = current_block_type_index;
9336
- current_block_type_index = select_block_type(ctx2);
9466
+ current_block_type_index = select_block_type(ctx2, dirty);
9337
9467
  if (current_block_type_index === previous_block_index) {
9338
9468
  if_blocks[current_block_type_index].p(ctx2, dirty);
9339
9469
  } else {
@@ -9377,13 +9507,17 @@ function create_else_block8(ctx) {
9377
9507
  let span0;
9378
9508
  let t1_value = format(ctx[13]) + "";
9379
9509
  let t1;
9510
+ let span0_class_value;
9380
9511
  let t2;
9381
9512
  let span1;
9382
9513
  let t3;
9514
+ let span1_class_value;
9383
9515
  let t4;
9384
9516
  let span2;
9385
9517
  let t5_value = format(ctx[14]) + "";
9386
9518
  let t5;
9519
+ let span2_class_value;
9520
+ let span3_class_value;
9387
9521
  let current;
9388
9522
  slider = new Slider_default({
9389
9523
  props: {
@@ -9408,10 +9542,10 @@ function create_else_block8(ctx) {
9408
9542
  t4 = space();
9409
9543
  span2 = element("span");
9410
9544
  t5 = text(t5_value);
9411
- attr(span0, "class", name7 + "-current");
9412
- attr(span1, "class", name7 + "-slash");
9413
- attr(span2, "class", name7 + "-duration");
9414
- attr(span3, "class", name7 + "-progress");
9545
+ attr(span0, "class", span0_class_value = name7 + "-current");
9546
+ attr(span1, "class", span1_class_value = name7 + "-slash");
9547
+ attr(span2, "class", span2_class_value = name7 + "-duration");
9548
+ attr(span3, "class", span3_class_value = name7 + "-progress");
9415
9549
  },
9416
9550
  m(target, anchor) {
9417
9551
  mount_component(slider, target, anchor);
@@ -9465,6 +9599,7 @@ function create_if_block8(ctx) {
9465
9599
  let t0;
9466
9600
  let span;
9467
9601
  let t1;
9602
+ let span_class_value;
9468
9603
  let current;
9469
9604
  slider = new Slider_default({
9470
9605
  props: {
@@ -9478,7 +9613,7 @@ function create_if_block8(ctx) {
9478
9613
  t0 = space();
9479
9614
  span = element("span");
9480
9615
  t1 = text("\u2026/\u2026");
9481
- attr(span, "class", name7 + "-progress loading");
9616
+ attr(span, "class", span_class_value = name7 + "-progress loading");
9482
9617
  },
9483
9618
  m(target, anchor) {
9484
9619
  mount_component(slider, target, anchor);
@@ -9512,12 +9647,13 @@ function create_default_slot_15(ctx) {
9512
9647
  let t0_value = (ctx[15] || 1) + "";
9513
9648
  let t0;
9514
9649
  let t1;
9650
+ let span_class_value;
9515
9651
  return {
9516
9652
  c() {
9517
9653
  span = element("span");
9518
9654
  t0 = text(t0_value);
9519
9655
  t1 = text("x");
9520
- attr(span, "class", name7 + "-speed-text");
9656
+ attr(span, "class", span_class_value = name7 + "-speed-text");
9521
9657
  },
9522
9658
  m(target, anchor) {
9523
9659
  insert(target, span, anchor);
@@ -9632,6 +9768,7 @@ function create_fragment56(ctx) {
9632
9768
  let div1;
9633
9769
  let each_blocks = [];
9634
9770
  let each_1_lookup = /* @__PURE__ */ new Map();
9771
+ let div1_class_value;
9635
9772
  let current;
9636
9773
  button0 = new Button_default({
9637
9774
  props: {
@@ -9652,7 +9789,7 @@ function create_fragment56(ctx) {
9652
9789
  return 0;
9653
9790
  return 1;
9654
9791
  }
9655
- current_block_type_index = select_block_type_1(ctx);
9792
+ current_block_type_index = select_block_type_1(ctx, -1);
9656
9793
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9657
9794
  button1 = new Button_default({
9658
9795
  props: {
@@ -9689,7 +9826,7 @@ function create_fragment56(ctx) {
9689
9826
  each_blocks[i].c();
9690
9827
  }
9691
9828
  attr(div0, "class", div0_class_value = name7 + " " + ctx[0]);
9692
- attr(div1, "class", name7 + "-panel speed");
9829
+ attr(div1, "class", div1_class_value = name7 + "-panel speed");
9693
9830
  set_style(div2, "display", "none");
9694
9831
  },
9695
9832
  m(target, anchor) {
@@ -9723,7 +9860,7 @@ function create_fragment56(ctx) {
9723
9860
  }
9724
9861
  button0.$set(button0_changes);
9725
9862
  let previous_block_index = current_block_type_index;
9726
- current_block_type_index = select_block_type_1(ctx2);
9863
+ current_block_type_index = select_block_type_1(ctx2, dirty);
9727
9864
  if (current_block_type_index === previous_block_index) {
9728
9865
  if_blocks[current_block_type_index].p(ctx2, dirty);
9729
9866
  } else {
@@ -9891,37 +10028,48 @@ function instance56($$self, $$props, $$invalidate) {
9891
10028
  };
9892
10029
  $$self.$$.update = () => {
9893
10030
  if ($$self.$$.dirty & 1048576) {
9894
- $$invalidate(12, t = i18n6[language]);
10031
+ $:
10032
+ $$invalidate(12, t = i18n6[language]);
9895
10033
  }
9896
10034
  if ($$self.$$.dirty & 524288) {
9897
- $$invalidate(21, canPlay = player == null ? void 0 : player.canplay);
10035
+ $:
10036
+ $$invalidate(21, canPlay = player == null ? void 0 : player.canplay);
9898
10037
  }
9899
10038
  if ($$self.$$.dirty & 2097152) {
9900
- $$invalidate(4, disabled = !canPlay);
10039
+ $:
10040
+ $$invalidate(4, disabled = !canPlay);
9901
10041
  }
9902
10042
  if ($$self.$$.dirty & 16) {
9903
- $$invalidate(5, type = disabled ? "disable" : "normal");
10043
+ $:
10044
+ $$invalidate(5, type = disabled ? "disable" : "normal");
9904
10045
  }
9905
10046
  if ($$self.$$.dirty & 524288) {
9906
- $$subscribe_duration($$invalidate(11, duration = player == null ? void 0 : player.duration));
10047
+ $:
10048
+ $$subscribe_duration($$invalidate(11, duration = player == null ? void 0 : player.duration));
9907
10049
  }
9908
10050
  if ($$self.$$.dirty & 524288) {
9909
- $$subscribe_current($$invalidate(10, current = player == null ? void 0 : player.currentTime));
10051
+ $:
10052
+ $$subscribe_current($$invalidate(10, current = player == null ? void 0 : player.currentTime));
9910
10053
  }
9911
10054
  if ($$self.$$.dirty & 524288) {
9912
- $$subscribe_playbackRate($$invalidate(9, playbackRate = player == null ? void 0 : player.playbackRate));
10055
+ $:
10056
+ $$subscribe_playbackRate($$invalidate(9, playbackRate = player == null ? void 0 : player.playbackRate));
9913
10057
  }
9914
10058
  if ($$self.$$.dirty & 524288) {
9915
- $$subscribe_phase($$invalidate(8, phase = player == null ? void 0 : player.phase));
10059
+ $:
10060
+ $$subscribe_phase($$invalidate(8, phase = player == null ? void 0 : player.phase));
9916
10061
  }
9917
10062
  if ($$self.$$.dirty & 4194304) {
9918
- $$invalidate(3, loading = $phase === "waitingFirstFrame" || $phase === "buffering");
10063
+ $:
10064
+ $$invalidate(3, loading = $phase === "waitingFirstFrame" || $phase === "buffering");
9919
10065
  }
9920
10066
  if ($$self.$$.dirty & 4194304) {
9921
- $$invalidate(2, playing = $phase === "playing");
10067
+ $:
10068
+ $$invalidate(2, playing = $phase === "playing");
9922
10069
  }
9923
10070
  if ($$self.$$.dirty & 12) {
9924
- $$invalidate(7, className = [loading ? "loading" : "", playing ? "pause" : "play"].filter(Boolean).join(" "));
10071
+ $:
10072
+ $$invalidate(7, className = [loading ? "loading" : "", playing ? "pause" : "play"].filter(Boolean).join(" "));
9925
10073
  }
9926
10074
  };
9927
10075
  return [
@@ -9969,9 +10117,12 @@ var PlayerControl_default = PlayerControl;
9969
10117
  function create_fragment57(ctx) {
9970
10118
  let div2;
9971
10119
  let div0;
10120
+ let div0_class_value;
9972
10121
  let t;
9973
10122
  let div1;
9974
10123
  let playercontrol;
10124
+ let div1_class_value;
10125
+ let div2_class_value;
9975
10126
  let current;
9976
10127
  let mounted;
9977
10128
  let dispose;
@@ -9989,9 +10140,9 @@ function create_fragment57(ctx) {
9989
10140
  t = space();
9990
10141
  div1 = element("div");
9991
10142
  create_component(playercontrol.$$.fragment);
9992
- attr(div0, "class", name8 + "-view");
9993
- attr(div1, "class", name8 + "-bottom");
9994
- attr(div2, "class", name8 + "-root");
10143
+ attr(div0, "class", div0_class_value = name8 + "-view");
10144
+ attr(div1, "class", div1_class_value = name8 + "-bottom");
10145
+ attr(div2, "class", div2_class_value = name8 + "-root");
9995
10146
  toggle_class(div2, "loading", !ctx[0]);
9996
10147
  },
9997
10148
  m(target, anchor) {
@@ -10080,7 +10231,8 @@ function instance57($$self, $$props, $$invalidate) {
10080
10231
  };
10081
10232
  $$self.$$.update = () => {
10082
10233
  if ($$self.$$.dirty & 9) {
10083
- try {
10234
+ $:
10235
+ try {
10084
10236
  if (player && container) {
10085
10237
  player.bindContainer(container);
10086
10238
  $$invalidate(6, mounted = true);
@@ -10091,7 +10243,8 @@ function instance57($$self, $$props, $$invalidate) {
10091
10243
  }
10092
10244
  }
10093
10245
  if ($$self.$$.dirty & 67) {
10094
- if (player && theme && mounted) {
10246
+ $:
10247
+ if (player && theme && mounted) {
10095
10248
  player.manager.setPrefersColorScheme(theme);
10096
10249
  }
10097
10250
  }
@@ -10300,13 +10453,18 @@ function create_fragment58(ctx) {
10300
10453
  var _a, _b, _c, _d;
10301
10454
  let div4;
10302
10455
  let div0;
10456
+ let div0_class_value;
10303
10457
  let t0;
10304
10458
  let div1;
10459
+ let div1_class_value;
10305
10460
  let t1;
10306
10461
  let div2;
10307
10462
  let t2;
10463
+ let div2_class_value;
10308
10464
  let t3;
10309
10465
  let div3;
10466
+ let div3_class_value;
10467
+ let div4_class_value;
10310
10468
  let current;
10311
10469
  let mounted;
10312
10470
  let dispose;
@@ -10333,14 +10491,14 @@ function create_fragment58(ctx) {
10333
10491
  div3 = element("div");
10334
10492
  if (if_block3)
10335
10493
  if_block3.c();
10336
- attr(div0, "class", name9 + "-view");
10337
- attr(div1, "class", name9 + "-left");
10494
+ attr(div0, "class", div0_class_value = name9 + "-view");
10495
+ attr(div1, "class", div1_class_value = name9 + "-left");
10338
10496
  toggle_class(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
10339
- attr(div2, "class", name9 + "-bottom-left");
10497
+ attr(div2, "class", div2_class_value = name9 + "-bottom-left");
10340
10498
  toggle_class(div2, "hidden", ctx[5] !== "visible");
10341
- attr(div3, "class", name9 + "-bottom-right");
10499
+ attr(div3, "class", div3_class_value = name9 + "-bottom-right");
10342
10500
  toggle_class(div3, "hidden", ctx[5] !== "visible");
10343
- attr(div4, "class", name9 + "-root");
10501
+ attr(div4, "class", div4_class_value = name9 + "-root");
10344
10502
  toggle_class(div4, "loading", !ctx[0]);
10345
10503
  },
10346
10504
  m(target, anchor) {
@@ -10546,16 +10704,20 @@ function instance58($$self, $$props, $$invalidate) {
10546
10704
  };
10547
10705
  $$self.$$.update = () => {
10548
10706
  if ($$self.$$.dirty & 1) {
10549
- $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
10707
+ $:
10708
+ $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
10550
10709
  }
10551
10710
  if ($$self.$$.dirty & 1) {
10552
- $$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
10711
+ $:
10712
+ $$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
10553
10713
  }
10554
10714
  if ($$self.$$.dirty & 1) {
10555
- $$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
10715
+ $:
10716
+ $$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
10556
10717
  }
10557
10718
  if ($$self.$$.dirty & 28672) {
10558
- if (!$writable) {
10719
+ $:
10720
+ if (!$writable) {
10559
10721
  $$invalidate(5, layout = "hidden");
10560
10722
  } else if ($boxState === "maximized") {
10561
10723
  if ($focusedApp && AppsShowToolbar.some((kind) => ($focusedApp || "").includes(kind))) {
@@ -10568,7 +10730,8 @@ function instance58($$self, $$props, $$invalidate) {
10568
10730
  }
10569
10731
  }
10570
10732
  if ($$self.$$.dirty & 17) {
10571
- try {
10733
+ $:
10734
+ try {
10572
10735
  if (app && container) {
10573
10736
  app.bindContainer(container);
10574
10737
  $$invalidate(11, mounted = true);
@@ -10579,7 +10742,8 @@ function instance58($$self, $$props, $$invalidate) {
10579
10742
  }
10580
10743
  }
10581
10744
  if ($$self.$$.dirty & 2051) {
10582
- if (app && theme && mounted) {
10745
+ $:
10746
+ if (app && theme && mounted) {
10583
10747
  app.manager.setPrefersColorScheme(theme);
10584
10748
  }
10585
10749
  }
@@ -10672,7 +10836,16 @@ function createReplayUI(player, div) {
10672
10836
  }
10673
10837
  return ui;
10674
10838
  }
10675
-
10676
- export { Fastboard_default as Fastboard, PageControl_default as PageControl, PlayerControl_default as PlayerControl, RedoUndo_default as RedoUndo, ReplayFastboard_default as ReplayFastboard, Toolbar_default as Toolbar, ZoomControl_default as ZoomControl, apps, createReplayUI, createUI };
10677
- //# sourceMappingURL=out.js.map
10839
+ export {
10840
+ Fastboard_default as Fastboard,
10841
+ PageControl_default as PageControl,
10842
+ PlayerControl_default as PlayerControl,
10843
+ RedoUndo_default as RedoUndo,
10844
+ ReplayFastboard_default as ReplayFastboard,
10845
+ Toolbar_default as Toolbar,
10846
+ ZoomControl_default as ZoomControl,
10847
+ apps,
10848
+ createReplayUI,
10849
+ createUI
10850
+ };
10678
10851
  //# sourceMappingURL=index.mjs.map