@netless/fastboard-ui 0.3.2-canary.4 → 0.3.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.
@@ -5792,6 +5792,10 @@ var AppsInToolbar = class {
5792
5792
  this._data = this._data.filter((item) => !filter(item));
5793
5793
  this._listeners.forEach((fn) => fn(this._data));
5794
5794
  }
5795
+ clear() {
5796
+ this._data.length = 0;
5797
+ this._listeners.forEach((fn) => fn(this._data));
5798
+ }
5795
5799
  };
5796
5800
  var apps = new AppsInToolbar([
5797
5801
  {
@@ -6954,20 +6958,20 @@ var Shapes_default = Shapes;
6954
6958
  // src/components/Toolbar/components/Contents.svelte
6955
6959
  function get_each_context4(ctx, list, i) {
6956
6960
  const child_ctx = ctx.slice();
6957
- child_ctx[40] = list[i];
6958
- const constants_0 = child_ctx[40];
6959
- child_ctx[41] = constants_0.icon;
6960
- child_ctx[42] = constants_0.label;
6961
- child_ctx[43] = constants_0.kind;
6962
- child_ctx[44] = constants_0.onClick;
6963
- const constants_1 = child_ctx[19] && child_ctx[19][child_ctx[43]];
6964
- child_ctx[45] = constants_1;
6961
+ child_ctx[41] = list[i];
6962
+ const constants_0 = child_ctx[41];
6963
+ child_ctx[42] = constants_0.icon;
6964
+ child_ctx[43] = constants_0.label;
6965
+ child_ctx[44] = constants_0.kind;
6966
+ child_ctx[45] = constants_0.onClick;
6967
+ const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[44]];
6968
+ child_ctx[46] = constants_1;
6965
6969
  return child_ctx;
6966
6970
  }
6967
- function create_if_block_7(ctx) {
6971
+ function create_if_block_8(ctx) {
6968
6972
  let button;
6969
6973
  let current;
6970
- const button_spread_levels = [{ class: "scroll-up" }, ctx[14]];
6974
+ const button_spread_levels = [{ class: "scroll-up" }, ctx[15]];
6971
6975
  let button_props = {
6972
6976
  $$slots: { default: [create_default_slot_9] },
6973
6977
  $$scope: { ctx }
@@ -6976,7 +6980,7 @@ function create_if_block_7(ctx) {
6976
6980
  button_props = assign2(button_props, button_spread_levels[i]);
6977
6981
  }
6978
6982
  button = new Button_default({ props: button_props });
6979
- button.$on("click", ctx[21]);
6983
+ button.$on("click", ctx[22]);
6980
6984
  return {
6981
6985
  c() {
6982
6986
  create_component6(button.$$.fragment);
@@ -6986,8 +6990,8 @@ function create_if_block_7(ctx) {
6986
6990
  current = true;
6987
6991
  },
6988
6992
  p(ctx2, dirty) {
6989
- const button_changes = dirty[0] & 16384 ? get_spread_update2(button_spread_levels, [button_spread_levels[0], get_spread_object2(ctx2[14])]) : {};
6990
- if (dirty[0] & 2 | dirty[1] & 131072) {
6993
+ const button_changes = dirty[0] & 32768 ? get_spread_update2(button_spread_levels, [button_spread_levels[0], get_spread_object2(ctx2[15])]) : {};
6994
+ if (dirty[0] & 2 | dirty[1] & 262144) {
6991
6995
  button_changes.$$scope = { dirty, ctx: ctx2 };
6992
6996
  }
6993
6997
  button.$set(button_changes);
@@ -7073,7 +7077,7 @@ function create_else_block_5(ctx) {
7073
7077
  }
7074
7078
  };
7075
7079
  }
7076
- function create_if_block_6(ctx) {
7080
+ function create_if_block_7(ctx) {
7077
7081
  let icons_clickfilled;
7078
7082
  let current;
7079
7083
  icons_clickfilled = new Icons_default.ClickFilled({
@@ -7113,10 +7117,10 @@ function create_default_slot_8(ctx) {
7113
7117
  let if_block;
7114
7118
  let if_block_anchor;
7115
7119
  let current;
7116
- const if_block_creators = [create_if_block_6, create_else_block_5];
7120
+ const if_block_creators = [create_if_block_7, create_else_block_5];
7117
7121
  const if_blocks = [];
7118
7122
  function select_block_type(ctx2, dirty) {
7119
- if (ctx2[7] === "clicker")
7123
+ if (ctx2[8] === "clicker")
7120
7124
  return 0;
7121
7125
  return 1;
7122
7126
  }
@@ -7204,7 +7208,7 @@ function create_else_block_4(ctx) {
7204
7208
  }
7205
7209
  };
7206
7210
  }
7207
- function create_if_block_5(ctx) {
7211
+ function create_if_block_6(ctx) {
7208
7212
  let icons_selectorfilled;
7209
7213
  let current;
7210
7214
  icons_selectorfilled = new Icons_default.SelectorFilled({
@@ -7244,10 +7248,10 @@ function create_default_slot_7(ctx) {
7244
7248
  let if_block;
7245
7249
  let if_block_anchor;
7246
7250
  let current;
7247
- const if_block_creators = [create_if_block_5, create_else_block_4];
7251
+ const if_block_creators = [create_if_block_6, create_else_block_4];
7248
7252
  const if_blocks = [];
7249
7253
  function select_block_type_1(ctx2, dirty) {
7250
- if (ctx2[7] === "selector")
7254
+ if (ctx2[8] === "selector")
7251
7255
  return 0;
7252
7256
  return 1;
7253
7257
  }
@@ -7335,7 +7339,7 @@ function create_else_block_3(ctx) {
7335
7339
  }
7336
7340
  };
7337
7341
  }
7338
- function create_if_block_4(ctx) {
7342
+ function create_if_block_5(ctx) {
7339
7343
  let icons_pencilfilled;
7340
7344
  let current;
7341
7345
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -7375,10 +7379,10 @@ function create_default_slot_6(ctx) {
7375
7379
  let if_block;
7376
7380
  let if_block_anchor;
7377
7381
  let current;
7378
- const if_block_creators = [create_if_block_4, create_else_block_3];
7382
+ const if_block_creators = [create_if_block_5, create_else_block_3];
7379
7383
  const if_blocks = [];
7380
7384
  function select_block_type_2(ctx2, dirty) {
7381
- if (ctx2[7] === "pencil")
7385
+ if (ctx2[8] === "pencil")
7382
7386
  return 0;
7383
7387
  return 1;
7384
7388
  }
@@ -7466,7 +7470,7 @@ function create_else_block_2(ctx) {
7466
7470
  }
7467
7471
  };
7468
7472
  }
7469
- function create_if_block_3(ctx) {
7473
+ function create_if_block_4(ctx) {
7470
7474
  let icons_textfilled;
7471
7475
  let current;
7472
7476
  icons_textfilled = new Icons_default.TextFilled({
@@ -7506,10 +7510,10 @@ function create_default_slot_53(ctx) {
7506
7510
  let if_block;
7507
7511
  let if_block_anchor;
7508
7512
  let current;
7509
- const if_block_creators = [create_if_block_3, create_else_block_2];
7513
+ const if_block_creators = [create_if_block_4, create_else_block_2];
7510
7514
  const if_blocks = [];
7511
7515
  function select_block_type_3(ctx2, dirty) {
7512
- if (ctx2[7] === "text")
7516
+ if (ctx2[8] === "text")
7513
7517
  return 0;
7514
7518
  return 1;
7515
7519
  }
@@ -7568,7 +7572,7 @@ function create_else_block_12(ctx) {
7568
7572
  let switch_instance;
7569
7573
  let switch_instance_anchor;
7570
7574
  let current;
7571
- var switch_value = shapesIcon[ctx[9]];
7575
+ var switch_value = shapesIcon[ctx[10]];
7572
7576
  function switch_props(ctx2) {
7573
7577
  return { props: { theme: ctx2[1] } };
7574
7578
  }
@@ -7592,7 +7596,7 @@ function create_else_block_12(ctx) {
7592
7596
  const switch_instance_changes = {};
7593
7597
  if (dirty[0] & 2)
7594
7598
  switch_instance_changes.theme = ctx2[1];
7595
- if (switch_value !== (switch_value = shapesIcon[ctx2[9]])) {
7599
+ if (switch_value !== (switch_value = shapesIcon[ctx2[10]])) {
7596
7600
  if (switch_instance) {
7597
7601
  group_outros4();
7598
7602
  const old_component = switch_instance;
@@ -7633,11 +7637,11 @@ function create_else_block_12(ctx) {
7633
7637
  }
7634
7638
  };
7635
7639
  }
7636
- function create_if_block_2(ctx) {
7640
+ function create_if_block_3(ctx) {
7637
7641
  let switch_instance;
7638
7642
  let switch_instance_anchor;
7639
7643
  let current;
7640
- var switch_value = shapesIconActive[ctx[9]];
7644
+ var switch_value = shapesIconActive[ctx[10]];
7641
7645
  function switch_props(ctx2) {
7642
7646
  return {
7643
7647
  props: { theme: ctx2[1], active: true }
@@ -7663,7 +7667,7 @@ function create_if_block_2(ctx) {
7663
7667
  const switch_instance_changes = {};
7664
7668
  if (dirty[0] & 2)
7665
7669
  switch_instance_changes.theme = ctx2[1];
7666
- if (switch_value !== (switch_value = shapesIconActive[ctx2[9]])) {
7670
+ if (switch_value !== (switch_value = shapesIconActive[ctx2[10]])) {
7667
7671
  if (switch_instance) {
7668
7672
  group_outros4();
7669
7673
  const old_component = switch_instance;
@@ -7709,10 +7713,10 @@ function create_default_slot_43(ctx) {
7709
7713
  let if_block;
7710
7714
  let if_block_anchor;
7711
7715
  let current;
7712
- const if_block_creators = [create_if_block_2, create_else_block_12];
7716
+ const if_block_creators = [create_if_block_3, create_else_block_12];
7713
7717
  const if_blocks = [];
7714
7718
  function select_block_type_4(ctx2, dirty) {
7715
- if (ctx2[7] === ctx2[9] || ctx2[7] === "shape" && ctx2[6] === ctx2[9])
7719
+ if (ctx2[8] === ctx2[10] || ctx2[8] === "shape" && ctx2[7] === ctx2[10])
7716
7720
  return 0;
7717
7721
  return 1;
7718
7722
  }
@@ -7800,7 +7804,7 @@ function create_else_block6(ctx) {
7800
7804
  }
7801
7805
  };
7802
7806
  }
7803
- function create_if_block_12(ctx) {
7807
+ function create_if_block_2(ctx) {
7804
7808
  let icons_eraserfilled;
7805
7809
  let current;
7806
7810
  icons_eraserfilled = new Icons_default.EraserFilled({
@@ -7840,10 +7844,10 @@ function create_default_slot_34(ctx) {
7840
7844
  let if_block;
7841
7845
  let if_block_anchor;
7842
7846
  let current;
7843
- const if_block_creators = [create_if_block_12, create_else_block6];
7847
+ const if_block_creators = [create_if_block_2, create_else_block6];
7844
7848
  const if_blocks = [];
7845
7849
  function select_block_type_5(ctx2, dirty) {
7846
- if (ctx2[7] === "eraser")
7850
+ if (ctx2[8] === "eraser")
7847
7851
  return 0;
7848
7852
  return 1;
7849
7853
  }
@@ -7931,6 +7935,60 @@ function create_default_slot_24(ctx) {
7931
7935
  }
7932
7936
  };
7933
7937
  }
7938
+ function create_if_block_12(ctx) {
7939
+ let button;
7940
+ let current;
7941
+ const button_spread_levels = [
7942
+ { class: "apps" },
7943
+ ctx[15],
7944
+ { content: ctx[9].apps },
7945
+ { menu: ctx[14] },
7946
+ { menu_placement: "right-end" }
7947
+ ];
7948
+ let button_props = {
7949
+ $$slots: { default: [create_default_slot_14] },
7950
+ $$scope: { ctx }
7951
+ };
7952
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
7953
+ button_props = assign2(button_props, button_spread_levels[i]);
7954
+ }
7955
+ button = new Button_default({ props: button_props });
7956
+ return {
7957
+ c() {
7958
+ create_component6(button.$$.fragment);
7959
+ },
7960
+ m(target, anchor) {
7961
+ mount_component6(button, target, anchor);
7962
+ current = true;
7963
+ },
7964
+ p(ctx2, dirty) {
7965
+ const button_changes = dirty[0] & 49664 ? get_spread_update2(button_spread_levels, [
7966
+ button_spread_levels[0],
7967
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
7968
+ dirty[0] & 512 && { content: ctx2[9].apps },
7969
+ dirty[0] & 16384 && { menu: ctx2[14] },
7970
+ button_spread_levels[4]
7971
+ ]) : {};
7972
+ if (dirty[0] & 2 | dirty[1] & 262144) {
7973
+ button_changes.$$scope = { dirty, ctx: ctx2 };
7974
+ }
7975
+ button.$set(button_changes);
7976
+ },
7977
+ i(local) {
7978
+ if (current)
7979
+ return;
7980
+ transition_in8(button.$$.fragment, local);
7981
+ current = true;
7982
+ },
7983
+ o(local) {
7984
+ transition_out8(button.$$.fragment, local);
7985
+ current = false;
7986
+ },
7987
+ d(detaching) {
7988
+ destroy_component6(button, detaching);
7989
+ }
7990
+ };
7991
+ }
7934
7992
  function create_default_slot_14(ctx) {
7935
7993
  let icons_apps;
7936
7994
  let current;
@@ -7977,7 +8035,7 @@ function create_if_block6(ctx) {
7977
8035
  $$scope: { ctx }
7978
8036
  }
7979
8037
  });
7980
- button.$on("click", ctx[22]);
8038
+ button.$on("click", ctx[23]);
7981
8039
  return {
7982
8040
  c() {
7983
8041
  create_component6(button.$$.fragment);
@@ -7992,7 +8050,7 @@ function create_if_block6(ctx) {
7992
8050
  button_changes.theme = ctx2[1];
7993
8051
  if (dirty[0] & 8)
7994
8052
  button_changes.disabled = ctx2[3];
7995
- if (dirty[0] & 2 | dirty[1] & 131072) {
8053
+ if (dirty[0] & 2 | dirty[1] & 262144) {
7996
8054
  button_changes.$$scope = { dirty, ctx: ctx2 };
7997
8055
  }
7998
8056
  button.$set(button_changes);
@@ -8054,7 +8112,7 @@ function create_each_block4(ctx) {
8054
8112
  let img_title_value;
8055
8113
  let t0;
8056
8114
  let span;
8057
- let t1_value = ctx[42] + "";
8115
+ let t1_value = ctx[43] + "";
8058
8116
  let t1;
8059
8117
  let span_class_value;
8060
8118
  let t2;
@@ -8073,17 +8131,17 @@ function create_each_block4(ctx) {
8073
8131
  t1 = text_1(t1_value);
8074
8132
  t2 = space8();
8075
8133
  attr55(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
8076
- if (!src_url_equal2(img.src, img_src_value = ctx[41]))
8134
+ if (!src_url_equal2(img.src, img_src_value = ctx[42]))
8077
8135
  attr55(img, "src", img_src_value);
8078
- attr55(img, "alt", img_alt_value = ctx[43]);
8079
- attr55(img, "title", img_title_value = ctx[42]);
8136
+ attr55(img, "alt", img_alt_value = ctx[44]);
8137
+ attr55(img, "title", img_title_value = ctx[43]);
8080
8138
  attr55(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
8081
- attr55(button, "class", button_class_value = name5 + "-app-btn " + ctx[43] + " " + ctx[1]);
8082
- attr55(button, "title", button_title_value = ctx[42] + (ctx[45] && ctx[45].reason ? ": " + ctx[45].reason : ""));
8083
- attr55(button, "data-app-kind", button_data_app_kind_value = ctx[40].kind);
8084
- button.disabled = button_disabled_value = ctx[45] && ctx[45].status !== "idle";
8085
- toggle_class49(button, "is-loading", ctx[45] && ctx[45].status === "loading");
8086
- toggle_class49(button, "is-failed", ctx[45] && ctx[45].status === "failed");
8139
+ attr55(button, "class", button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1]);
8140
+ attr55(button, "title", button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""));
8141
+ attr55(button, "data-app-kind", button_data_app_kind_value = ctx[41].kind);
8142
+ button.disabled = button_disabled_value = ctx[46] && ctx[46].status !== "idle";
8143
+ toggle_class49(button, "is-loading", ctx[46] && ctx[46].status === "loading");
8144
+ toggle_class49(button, "is-failed", ctx[46] && ctx[46].status === "failed");
8087
8145
  },
8088
8146
  m(target, anchor) {
8089
8147
  insert54(target, button, anchor);
@@ -8094,8 +8152,8 @@ function create_each_block4(ctx) {
8094
8152
  append54(button, t2);
8095
8153
  if (!mounted) {
8096
8154
  dispose = listen6(button, "click", function() {
8097
- if (is_function3(ctx[0] && ctx[44].bind(null, ctx[0])))
8098
- (ctx[0] && ctx[44].bind(null, ctx[0])).apply(this, arguments);
8155
+ if (is_function3(ctx[0] && ctx[45].bind(null, ctx[0])))
8156
+ (ctx[0] && ctx[45].bind(null, ctx[0])).apply(this, arguments);
8099
8157
  });
8100
8158
  mounted = true;
8101
8159
  }
@@ -8105,37 +8163,37 @@ function create_each_block4(ctx) {
8105
8163
  if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
8106
8164
  attr55(img, "class", img_class_value);
8107
8165
  }
8108
- if (dirty[0] & 262144 && !src_url_equal2(img.src, img_src_value = ctx[41])) {
8166
+ if (dirty[0] & 524288 && !src_url_equal2(img.src, img_src_value = ctx[42])) {
8109
8167
  attr55(img, "src", img_src_value);
8110
8168
  }
8111
- if (dirty[0] & 262144 && img_alt_value !== (img_alt_value = ctx[43])) {
8169
+ if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[44])) {
8112
8170
  attr55(img, "alt", img_alt_value);
8113
8171
  }
8114
- if (dirty[0] & 262144 && img_title_value !== (img_title_value = ctx[42])) {
8172
+ if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[43])) {
8115
8173
  attr55(img, "title", img_title_value);
8116
8174
  }
8117
- if (dirty[0] & 262144 && t1_value !== (t1_value = ctx[42] + ""))
8175
+ if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[43] + ""))
8118
8176
  set_data3(t1, t1_value);
8119
8177
  if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
8120
8178
  attr55(span, "class", span_class_value);
8121
8179
  }
8122
- if (dirty[0] & 262146 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[43] + " " + ctx[1])) {
8180
+ if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1])) {
8123
8181
  attr55(button, "class", button_class_value);
8124
8182
  }
8125
- if (dirty[0] & 786432 && button_title_value !== (button_title_value = ctx[42] + (ctx[45] && ctx[45].reason ? ": " + ctx[45].reason : ""))) {
8183
+ if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""))) {
8126
8184
  attr55(button, "title", button_title_value);
8127
8185
  }
8128
- if (dirty[0] & 262144 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[40].kind)) {
8186
+ if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[41].kind)) {
8129
8187
  attr55(button, "data-app-kind", button_data_app_kind_value);
8130
8188
  }
8131
- if (dirty[0] & 786432 && button_disabled_value !== (button_disabled_value = ctx[45] && ctx[45].status !== "idle")) {
8189
+ if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[46] && ctx[46].status !== "idle")) {
8132
8190
  button.disabled = button_disabled_value;
8133
8191
  }
8134
- if (dirty[0] & 786434) {
8135
- toggle_class49(button, "is-loading", ctx[45] && ctx[45].status === "loading");
8192
+ if (dirty[0] & 1572866) {
8193
+ toggle_class49(button, "is-loading", ctx[46] && ctx[46].status === "loading");
8136
8194
  }
8137
- if (dirty[0] & 786434) {
8138
- toggle_class49(button, "is-failed", ctx[45] && ctx[45].status === "failed");
8195
+ if (dirty[0] & 1572866) {
8196
+ toggle_class49(button, "is-failed", ctx[46] && ctx[46].status === "failed");
8139
8197
  }
8140
8198
  },
8141
8199
  d(detaching) {
@@ -8163,7 +8221,6 @@ function create_fragment55(ctx) {
8163
8221
  let t6;
8164
8222
  let button6;
8165
8223
  let t7;
8166
- let button7;
8167
8224
  let div0_class_value;
8168
8225
  let scrollHeight_action;
8169
8226
  let scrollTop_action;
@@ -8203,11 +8260,11 @@ function create_fragment55(ctx) {
8203
8260
  let current;
8204
8261
  let mounted;
8205
8262
  let dispose;
8206
- let if_block0 = ctx[5] && create_if_block_7(ctx);
8263
+ let if_block0 = ctx[5] && create_if_block_8(ctx);
8207
8264
  const button0_spread_levels = [
8208
8265
  { class: "clicker" },
8209
- ctx[14],
8210
- { content: ctx[17].clicker }
8266
+ ctx[15],
8267
+ { content: ctx[18].clicker }
8211
8268
  ];
8212
8269
  let button0_props = {
8213
8270
  $$slots: { default: [create_default_slot_8] },
@@ -8217,11 +8274,11 @@ function create_fragment55(ctx) {
8217
8274
  button0_props = assign2(button0_props, button0_spread_levels[i]);
8218
8275
  }
8219
8276
  button0 = new Button_default({ props: button0_props });
8220
- button0.$on("click", ctx[23]);
8277
+ button0.$on("click", ctx[24]);
8221
8278
  const button1_spread_levels = [
8222
8279
  { class: "selector" },
8223
- ctx[14],
8224
- { content: ctx[17].selector }
8280
+ ctx[15],
8281
+ { content: ctx[18].selector }
8225
8282
  ];
8226
8283
  let button1_props = {
8227
8284
  $$slots: { default: [create_default_slot_7] },
@@ -8231,12 +8288,12 @@ function create_fragment55(ctx) {
8231
8288
  button1_props = assign2(button1_props, button1_spread_levels[i]);
8232
8289
  }
8233
8290
  button1 = new Button_default({ props: button1_props });
8234
- button1.$on("click", ctx[24]);
8291
+ button1.$on("click", ctx[25]);
8235
8292
  const button2_spread_levels = [
8236
8293
  { class: "pencil" },
8237
- ctx[14],
8238
- { content: ctx[17].pencil },
8239
- { menu: ctx[10] }
8294
+ ctx[15],
8295
+ { content: ctx[18].pencil },
8296
+ { menu: ctx[11] }
8240
8297
  ];
8241
8298
  let button2_props = {
8242
8299
  $$slots: { default: [create_default_slot_6] },
@@ -8246,12 +8303,12 @@ function create_fragment55(ctx) {
8246
8303
  button2_props = assign2(button2_props, button2_spread_levels[i]);
8247
8304
  }
8248
8305
  button2 = new Button_default({ props: button2_props });
8249
- button2.$on("click", ctx[25]);
8306
+ button2.$on("click", ctx[26]);
8250
8307
  const button3_spread_levels = [
8251
8308
  { class: "text" },
8252
- ctx[14],
8253
- { content: ctx[17].text },
8254
- { menu: ctx[11] }
8309
+ ctx[15],
8310
+ { content: ctx[18].text },
8311
+ { menu: ctx[12] }
8255
8312
  ];
8256
8313
  let button3_props = {
8257
8314
  $$slots: { default: [create_default_slot_53] },
@@ -8261,12 +8318,12 @@ function create_fragment55(ctx) {
8261
8318
  button3_props = assign2(button3_props, button3_spread_levels[i]);
8262
8319
  }
8263
8320
  button3 = new Button_default({ props: button3_props });
8264
- button3.$on("click", ctx[26]);
8321
+ button3.$on("click", ctx[27]);
8265
8322
  const button4_spread_levels = [
8266
8323
  { class: "shapes" },
8267
- ctx[14],
8268
- { content: ctx[8].shapes },
8269
- { menu: ctx[12] }
8324
+ ctx[15],
8325
+ { content: ctx[9].shapes },
8326
+ { menu: ctx[13] }
8270
8327
  ];
8271
8328
  let button4_props = {
8272
8329
  $$slots: { default: [create_default_slot_43] },
@@ -8276,8 +8333,8 @@ function create_fragment55(ctx) {
8276
8333
  button4_props = assign2(button4_props, button4_spread_levels[i]);
8277
8334
  }
8278
8335
  button4 = new Button_default({ props: button4_props });
8279
- button4.$on("click", ctx[27]);
8280
- const button5_spread_levels = [{ class: "eraser" }, ctx[14], { content: ctx[17].eraser }];
8336
+ button4.$on("click", ctx[28]);
8337
+ const button5_spread_levels = [{ class: "eraser" }, ctx[15], { content: ctx[18].eraser }];
8281
8338
  let button5_props = {
8282
8339
  $$slots: { default: [create_default_slot_34] },
8283
8340
  $$scope: { ctx }
@@ -8286,8 +8343,8 @@ function create_fragment55(ctx) {
8286
8343
  button5_props = assign2(button5_props, button5_spread_levels[i]);
8287
8344
  }
8288
8345
  button5 = new Button_default({ props: button5_props });
8289
- button5.$on("click", ctx[28]);
8290
- const button6_spread_levels = [{ class: "clear" }, ctx[14], { content: ctx[8].clear }];
8346
+ button5.$on("click", ctx[29]);
8347
+ const button6_spread_levels = [{ class: "clear" }, ctx[15], { content: ctx[9].clear }];
8291
8348
  let button6_props = {
8292
8349
  $$slots: { default: [create_default_slot_24] },
8293
8350
  $$scope: { ctx }
@@ -8296,23 +8353,9 @@ function create_fragment55(ctx) {
8296
8353
  button6_props = assign2(button6_props, button6_spread_levels[i]);
8297
8354
  }
8298
8355
  button6 = new Button_default({ props: button6_props });
8299
- button6.$on("click", ctx[29]);
8300
- const button7_spread_levels = [
8301
- { class: "apps" },
8302
- ctx[14],
8303
- { content: ctx[8].apps },
8304
- { menu: ctx[13] },
8305
- { menu_placement: "right-end" }
8306
- ];
8307
- let button7_props = {
8308
- $$slots: { default: [create_default_slot_14] },
8309
- $$scope: { ctx }
8310
- };
8311
- for (let i = 0; i < button7_spread_levels.length; i += 1) {
8312
- button7_props = assign2(button7_props, button7_spread_levels[i]);
8313
- }
8314
- button7 = new Button_default({ props: button7_props });
8315
- let if_block1 = ctx[5] && create_if_block6(ctx);
8356
+ button6.$on("click", ctx[30]);
8357
+ let if_block1 = !ctx[6] && create_if_block_12(ctx);
8358
+ let if_block2 = ctx[5] && create_if_block6(ctx);
8316
8359
  strokewidth0 = new StrokeWidth_default({
8317
8360
  props: {
8318
8361
  app: ctx[0],
@@ -8356,7 +8399,7 @@ function create_fragment55(ctx) {
8356
8399
  disabled: ctx[3]
8357
8400
  }
8358
8401
  });
8359
- let each_value = ctx[18];
8402
+ let each_value = ctx[19];
8360
8403
  let each_blocks = [];
8361
8404
  for (let i = 0; i < each_value.length; i += 1) {
8362
8405
  each_blocks[i] = create_each_block4(get_each_context4(ctx, each_value, i));
@@ -8381,10 +8424,11 @@ function create_fragment55(ctx) {
8381
8424
  t6 = space8();
8382
8425
  create_component6(button6.$$.fragment);
8383
8426
  t7 = space8();
8384
- create_component6(button7.$$.fragment);
8385
- t8 = space8();
8386
8427
  if (if_block1)
8387
8428
  if_block1.c();
8429
+ t8 = space8();
8430
+ if (if_block2)
8431
+ if_block2.c();
8388
8432
  t9 = space8();
8389
8433
  div8 = element11("div");
8390
8434
  div2 = element11("div");
@@ -8421,7 +8465,7 @@ function create_fragment55(ctx) {
8421
8465
  attr55(div5, "class", div5_class_value = name5 + "-panel-divider");
8422
8466
  attr55(div6, "class", div6_class_value = name5 + "-panel shapes");
8423
8467
  attr55(div7, "class", div7_class_value = name5 + "-panel apps");
8424
- set_style4(div7, "--n", ctx[18].length);
8468
+ set_style4(div7, "--n", ctx[19].length);
8425
8469
  attr55(div8, "class", div8_class_value = name5 + "-panel-wrapper");
8426
8470
  set_style4(div8, "display", "none");
8427
8471
  },
@@ -8444,10 +8488,11 @@ function create_fragment55(ctx) {
8444
8488
  append54(div0, t6);
8445
8489
  mount_component6(button6, div0, null);
8446
8490
  append54(div0, t7);
8447
- mount_component6(button7, div0, null);
8448
- insert54(target, t8, anchor);
8449
8491
  if (if_block1)
8450
- if_block1.m(target, anchor);
8492
+ if_block1.m(div0, null);
8493
+ insert54(target, t8, anchor);
8494
+ if (if_block2)
8495
+ if_block2.m(target, anchor);
8451
8496
  insert54(target, t9, anchor);
8452
8497
  insert54(target, div8, anchor);
8453
8498
  append54(div8, div2);
@@ -8456,11 +8501,11 @@ function create_fragment55(ctx) {
8456
8501
  append54(div2, div1);
8457
8502
  append54(div2, t11);
8458
8503
  mount_component6(strokecolor0, div2, null);
8459
- ctx[34](div2);
8504
+ ctx[35](div2);
8460
8505
  append54(div8, t12);
8461
8506
  append54(div8, div3);
8462
8507
  mount_component6(textcolor, div3, null);
8463
- ctx[35](div3);
8508
+ ctx[36](div3);
8464
8509
  append54(div8, t13);
8465
8510
  append54(div8, div6);
8466
8511
  mount_component6(shapes2, div6, null);
@@ -8472,18 +8517,18 @@ function create_fragment55(ctx) {
8472
8517
  append54(div6, div5);
8473
8518
  append54(div6, t17);
8474
8519
  mount_component6(strokecolor1, div6, null);
8475
- ctx[36](div6);
8520
+ ctx[37](div6);
8476
8521
  append54(div8, t18);
8477
8522
  append54(div8, div7);
8478
8523
  for (let i = 0; i < each_blocks.length; i += 1) {
8479
8524
  each_blocks[i].m(div7, null);
8480
8525
  }
8481
- ctx[37](div7);
8526
+ ctx[38](div7);
8482
8527
  current = true;
8483
8528
  if (!mounted) {
8484
8529
  dispose = [
8485
8530
  action_destroyer3(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
8486
- action_destroyer3(scrollTop_action = scrollTop.call(null, div0, ctx[20]))
8531
+ action_destroyer3(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
8487
8532
  ];
8488
8533
  mounted = true;
8489
8534
  }
@@ -8496,7 +8541,7 @@ function create_fragment55(ctx) {
8496
8541
  transition_in8(if_block0, 1);
8497
8542
  }
8498
8543
  } else {
8499
- if_block0 = create_if_block_7(ctx2);
8544
+ if_block0 = create_if_block_8(ctx2);
8500
8545
  if_block0.c();
8501
8546
  transition_in8(if_block0, 1);
8502
8547
  if_block0.m(t0.parentNode, t0);
@@ -8508,99 +8553,83 @@ function create_fragment55(ctx) {
8508
8553
  });
8509
8554
  check_outros4();
8510
8555
  }
8511
- const button0_changes = dirty[0] & 147456 ? get_spread_update2(button0_spread_levels, [
8556
+ const button0_changes = dirty[0] & 294912 ? get_spread_update2(button0_spread_levels, [
8512
8557
  button0_spread_levels[0],
8513
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8514
- dirty[0] & 131072 && { content: ctx2[17].clicker }
8558
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8559
+ dirty[0] & 262144 && { content: ctx2[18].clicker }
8515
8560
  ]) : {};
8516
- if (dirty[0] & 130 | dirty[1] & 131072) {
8561
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8517
8562
  button0_changes.$$scope = { dirty, ctx: ctx2 };
8518
8563
  }
8519
8564
  button0.$set(button0_changes);
8520
- const button1_changes = dirty[0] & 147456 ? get_spread_update2(button1_spread_levels, [
8565
+ const button1_changes = dirty[0] & 294912 ? get_spread_update2(button1_spread_levels, [
8521
8566
  button1_spread_levels[0],
8522
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8523
- dirty[0] & 131072 && { content: ctx2[17].selector }
8567
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8568
+ dirty[0] & 262144 && { content: ctx2[18].selector }
8524
8569
  ]) : {};
8525
- if (dirty[0] & 130 | dirty[1] & 131072) {
8570
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8526
8571
  button1_changes.$$scope = { dirty, ctx: ctx2 };
8527
8572
  }
8528
8573
  button1.$set(button1_changes);
8529
- const button2_changes = dirty[0] & 148480 ? get_spread_update2(button2_spread_levels, [
8574
+ const button2_changes = dirty[0] & 296960 ? get_spread_update2(button2_spread_levels, [
8530
8575
  button2_spread_levels[0],
8531
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8532
- dirty[0] & 131072 && { content: ctx2[17].pencil },
8533
- dirty[0] & 1024 && { menu: ctx2[10] }
8576
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8577
+ dirty[0] & 262144 && { content: ctx2[18].pencil },
8578
+ dirty[0] & 2048 && { menu: ctx2[11] }
8534
8579
  ]) : {};
8535
- if (dirty[0] & 130 | dirty[1] & 131072) {
8580
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8536
8581
  button2_changes.$$scope = { dirty, ctx: ctx2 };
8537
8582
  }
8538
8583
  button2.$set(button2_changes);
8539
- const button3_changes = dirty[0] & 149504 ? get_spread_update2(button3_spread_levels, [
8584
+ const button3_changes = dirty[0] & 299008 ? get_spread_update2(button3_spread_levels, [
8540
8585
  button3_spread_levels[0],
8541
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8542
- dirty[0] & 131072 && { content: ctx2[17].text },
8543
- dirty[0] & 2048 && { menu: ctx2[11] }
8586
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8587
+ dirty[0] & 262144 && { content: ctx2[18].text },
8588
+ dirty[0] & 4096 && { menu: ctx2[12] }
8544
8589
  ]) : {};
8545
- if (dirty[0] & 130 | dirty[1] & 131072) {
8590
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8546
8591
  button3_changes.$$scope = { dirty, ctx: ctx2 };
8547
8592
  }
8548
8593
  button3.$set(button3_changes);
8549
- const button4_changes = dirty[0] & 20736 ? get_spread_update2(button4_spread_levels, [
8594
+ const button4_changes = dirty[0] & 41472 ? get_spread_update2(button4_spread_levels, [
8550
8595
  button4_spread_levels[0],
8551
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8552
- dirty[0] & 256 && { content: ctx2[8].shapes },
8553
- dirty[0] & 4096 && { menu: ctx2[12] }
8596
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8597
+ dirty[0] & 512 && { content: ctx2[9].shapes },
8598
+ dirty[0] & 8192 && { menu: ctx2[13] }
8554
8599
  ]) : {};
8555
- if (dirty[0] & 706 | dirty[1] & 131072) {
8600
+ if (dirty[0] & 1410 | dirty[1] & 262144) {
8556
8601
  button4_changes.$$scope = { dirty, ctx: ctx2 };
8557
8602
  }
8558
8603
  button4.$set(button4_changes);
8559
- const button5_changes = dirty[0] & 147456 ? get_spread_update2(button5_spread_levels, [
8604
+ const button5_changes = dirty[0] & 294912 ? get_spread_update2(button5_spread_levels, [
8560
8605
  button5_spread_levels[0],
8561
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8562
- dirty[0] & 131072 && { content: ctx2[17].eraser }
8606
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8607
+ dirty[0] & 262144 && { content: ctx2[18].eraser }
8563
8608
  ]) : {};
8564
- if (dirty[0] & 130 | dirty[1] & 131072) {
8609
+ if (dirty[0] & 258 | dirty[1] & 262144) {
8565
8610
  button5_changes.$$scope = { dirty, ctx: ctx2 };
8566
8611
  }
8567
8612
  button5.$set(button5_changes);
8568
- const button6_changes = dirty[0] & 16640 ? get_spread_update2(button6_spread_levels, [
8613
+ const button6_changes = dirty[0] & 33280 ? get_spread_update2(button6_spread_levels, [
8569
8614
  button6_spread_levels[0],
8570
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8571
- dirty[0] & 256 && { content: ctx2[8].clear }
8615
+ dirty[0] & 32768 && get_spread_object2(ctx2[15]),
8616
+ dirty[0] & 512 && { content: ctx2[9].clear }
8572
8617
  ]) : {};
8573
- if (dirty[0] & 2 | dirty[1] & 131072) {
8618
+ if (dirty[0] & 2 | dirty[1] & 262144) {
8574
8619
  button6_changes.$$scope = { dirty, ctx: ctx2 };
8575
8620
  }
8576
8621
  button6.$set(button6_changes);
8577
- const button7_changes = dirty[0] & 24832 ? get_spread_update2(button7_spread_levels, [
8578
- button7_spread_levels[0],
8579
- dirty[0] & 16384 && get_spread_object2(ctx2[14]),
8580
- dirty[0] & 256 && { content: ctx2[8].apps },
8581
- dirty[0] & 8192 && { menu: ctx2[13] },
8582
- button7_spread_levels[4]
8583
- ]) : {};
8584
- if (dirty[0] & 2 | dirty[1] & 131072) {
8585
- button7_changes.$$scope = { dirty, ctx: ctx2 };
8586
- }
8587
- button7.$set(button7_changes);
8588
- if (scrollHeight_action && is_function3(scrollHeight_action.update) && dirty[0] & 16)
8589
- scrollHeight_action.update.call(null, ctx2[4]);
8590
- if (dirty[0] & 32) {
8591
- toggle_class49(div0, "scrollable", ctx2[5]);
8592
- }
8593
- if (ctx2[5]) {
8622
+ if (!ctx2[6]) {
8594
8623
  if (if_block1) {
8595
8624
  if_block1.p(ctx2, dirty);
8596
- if (dirty[0] & 32) {
8625
+ if (dirty[0] & 64) {
8597
8626
  transition_in8(if_block1, 1);
8598
8627
  }
8599
8628
  } else {
8600
- if_block1 = create_if_block6(ctx2);
8629
+ if_block1 = create_if_block_12(ctx2);
8601
8630
  if_block1.c();
8602
8631
  transition_in8(if_block1, 1);
8603
- if_block1.m(t9.parentNode, t9);
8632
+ if_block1.m(div0, null);
8604
8633
  }
8605
8634
  } else if (if_block1) {
8606
8635
  group_outros4();
@@ -8609,6 +8638,30 @@ function create_fragment55(ctx) {
8609
8638
  });
8610
8639
  check_outros4();
8611
8640
  }
8641
+ if (scrollHeight_action && is_function3(scrollHeight_action.update) && dirty[0] & 16)
8642
+ scrollHeight_action.update.call(null, ctx2[4]);
8643
+ if (dirty[0] & 32) {
8644
+ toggle_class49(div0, "scrollable", ctx2[5]);
8645
+ }
8646
+ if (ctx2[5]) {
8647
+ if (if_block2) {
8648
+ if_block2.p(ctx2, dirty);
8649
+ if (dirty[0] & 32) {
8650
+ transition_in8(if_block2, 1);
8651
+ }
8652
+ } else {
8653
+ if_block2 = create_if_block6(ctx2);
8654
+ if_block2.c();
8655
+ transition_in8(if_block2, 1);
8656
+ if_block2.m(t9.parentNode, t9);
8657
+ }
8658
+ } else if (if_block2) {
8659
+ group_outros4();
8660
+ transition_out8(if_block2, 1, 1, () => {
8661
+ if_block2 = null;
8662
+ });
8663
+ check_outros4();
8664
+ }
8612
8665
  const strokewidth0_changes = {};
8613
8666
  if (dirty[0] & 1)
8614
8667
  strokewidth0_changes.app = ctx2[0];
@@ -8659,8 +8712,8 @@ function create_fragment55(ctx) {
8659
8712
  if (dirty[0] & 8)
8660
8713
  strokecolor1_changes.disabled = ctx2[3];
8661
8714
  strokecolor1.$set(strokecolor1_changes);
8662
- if (dirty[0] & 786435) {
8663
- each_value = ctx2[18];
8715
+ if (dirty[0] & 1572867) {
8716
+ each_value = ctx2[19];
8664
8717
  let i;
8665
8718
  for (i = 0; i < each_value.length; i += 1) {
8666
8719
  const child_ctx = get_each_context4(ctx2, each_value, i);
@@ -8677,8 +8730,8 @@ function create_fragment55(ctx) {
8677
8730
  }
8678
8731
  each_blocks.length = each_value.length;
8679
8732
  }
8680
- if (!current || dirty[0] & 262144) {
8681
- set_style4(div7, "--n", ctx2[18].length);
8733
+ if (!current || dirty[0] & 524288) {
8734
+ set_style4(div7, "--n", ctx2[19].length);
8682
8735
  }
8683
8736
  },
8684
8737
  i(local) {
@@ -8692,8 +8745,8 @@ function create_fragment55(ctx) {
8692
8745
  transition_in8(button4.$$.fragment, local);
8693
8746
  transition_in8(button5.$$.fragment, local);
8694
8747
  transition_in8(button6.$$.fragment, local);
8695
- transition_in8(button7.$$.fragment, local);
8696
8748
  transition_in8(if_block1);
8749
+ transition_in8(if_block2);
8697
8750
  transition_in8(strokewidth0.$$.fragment, local);
8698
8751
  transition_in8(strokecolor0.$$.fragment, local);
8699
8752
  transition_in8(textcolor.$$.fragment, local);
@@ -8711,8 +8764,8 @@ function create_fragment55(ctx) {
8711
8764
  transition_out8(button4.$$.fragment, local);
8712
8765
  transition_out8(button5.$$.fragment, local);
8713
8766
  transition_out8(button6.$$.fragment, local);
8714
- transition_out8(button7.$$.fragment, local);
8715
8767
  transition_out8(if_block1);
8768
+ transition_out8(if_block2);
8716
8769
  transition_out8(strokewidth0.$$.fragment, local);
8717
8770
  transition_out8(strokecolor0.$$.fragment, local);
8718
8771
  transition_out8(textcolor.$$.fragment, local);
@@ -8735,26 +8788,27 @@ function create_fragment55(ctx) {
8735
8788
  destroy_component6(button4);
8736
8789
  destroy_component6(button5);
8737
8790
  destroy_component6(button6);
8738
- destroy_component6(button7);
8791
+ if (if_block1)
8792
+ if_block1.d();
8739
8793
  if (detaching)
8740
8794
  detach54(t8);
8741
- if (if_block1)
8742
- if_block1.d(detaching);
8795
+ if (if_block2)
8796
+ if_block2.d(detaching);
8743
8797
  if (detaching)
8744
8798
  detach54(t9);
8745
8799
  if (detaching)
8746
8800
  detach54(div8);
8747
8801
  destroy_component6(strokewidth0);
8748
8802
  destroy_component6(strokecolor0);
8749
- ctx[34](null);
8750
- destroy_component6(textcolor);
8751
8803
  ctx[35](null);
8804
+ destroy_component6(textcolor);
8805
+ ctx[36](null);
8752
8806
  destroy_component6(shapes2);
8753
8807
  destroy_component6(strokewidth1);
8754
8808
  destroy_component6(strokecolor1);
8755
- ctx[36](null);
8756
- destroy_each(each_blocks, detaching);
8757
8809
  ctx[37](null);
8810
+ destroy_each(each_blocks, detaching);
8811
+ ctx[38](null);
8758
8812
  mounted = false;
8759
8813
  run_all3(dispose);
8760
8814
  }
@@ -8771,11 +8825,11 @@ function instance55($$self, $$props, $$invalidate) {
8771
8825
  let status;
8772
8826
  let max_scroll;
8773
8827
  let $top;
8774
- let $scroll_height, $$unsubscribe_scroll_height = noop54, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe8(scroll_height, ($$value) => $$invalidate(32, $scroll_height = $$value)), scroll_height);
8775
- let $memberState, $$unsubscribe_memberState = noop54, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe8(memberState, ($$value) => $$invalidate(33, $memberState = $$value)), memberState);
8828
+ let $scroll_height, $$unsubscribe_scroll_height = noop54, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe8(scroll_height, ($$value) => $$invalidate(33, $scroll_height = $$value)), scroll_height);
8829
+ let $memberState, $$unsubscribe_memberState = noop54, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe8(memberState, ($$value) => $$invalidate(34, $memberState = $$value)), memberState);
8776
8830
  let $apps;
8777
- let $status, $$unsubscribe_status = noop54, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe8(status, ($$value) => $$invalidate(19, $status = $$value)), status);
8778
- component_subscribe($$self, apps, ($$value) => $$invalidate(18, $apps = $$value));
8831
+ let $status, $$unsubscribe_status = noop54, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe8(status, ($$value) => $$invalidate(20, $status = $$value)), status);
8832
+ component_subscribe($$self, apps, ($$value) => $$invalidate(19, $apps = $$value));
8779
8833
  $$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
8780
8834
  $$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
8781
8835
  $$self.$$.on_destroy.push(() => $$unsubscribe_status());
@@ -8787,6 +8841,7 @@ function instance55($$self, $$props, $$invalidate) {
8787
8841
  $$subscribe_scroll_height();
8788
8842
  let { computed_height = 0 } = $$props;
8789
8843
  let { scrollable = false } = $$props;
8844
+ let { hide_apps = false } = $$props;
8790
8845
  let last_shape = "rectangle";
8791
8846
  let pencil_panel;
8792
8847
  let text_panel;
@@ -8794,7 +8849,7 @@ function instance55($$self, $$props, $$invalidate) {
8794
8849
  let apps_panel;
8795
8850
  let btn_props;
8796
8851
  let top = writable(0);
8797
- component_subscribe($$self, top, (value) => $$invalidate(39, $top = value));
8852
+ component_subscribe($$self, top, (value) => $$invalidate(40, $top = value));
8798
8853
  function scroll_up() {
8799
8854
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
8800
8855
  }
@@ -8829,25 +8884,25 @@ function instance55($$self, $$props, $$invalidate) {
8829
8884
  function div2_binding($$value) {
8830
8885
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8831
8886
  pencil_panel = $$value;
8832
- $$invalidate(10, pencil_panel);
8887
+ $$invalidate(11, pencil_panel);
8833
8888
  });
8834
8889
  }
8835
8890
  function div3_binding($$value) {
8836
8891
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8837
8892
  text_panel = $$value;
8838
- $$invalidate(11, text_panel);
8893
+ $$invalidate(12, text_panel);
8839
8894
  });
8840
8895
  }
8841
8896
  function div6_binding($$value) {
8842
8897
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8843
8898
  shapes_panel = $$value;
8844
- $$invalidate(12, shapes_panel);
8899
+ $$invalidate(13, shapes_panel);
8845
8900
  });
8846
8901
  }
8847
8902
  function div7_binding($$value) {
8848
8903
  binding_callbacks[$$value ? "unshift" : "push"](() => {
8849
8904
  apps_panel = $$value;
8850
- $$invalidate(13, apps_panel);
8905
+ $$invalidate(14, apps_panel);
8851
8906
  });
8852
8907
  }
8853
8908
  $$self.$$set = ($$props2) => {
@@ -8862,14 +8917,16 @@ function instance55($$self, $$props, $$invalidate) {
8862
8917
  if ("scroll_height" in $$props2)
8863
8918
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
8864
8919
  if ("computed_height" in $$props2)
8865
- $$invalidate(30, computed_height = $$props2.computed_height);
8920
+ $$invalidate(31, computed_height = $$props2.computed_height);
8866
8921
  if ("scrollable" in $$props2)
8867
8922
  $$invalidate(5, scrollable = $$props2.scrollable);
8923
+ if ("hide_apps" in $$props2)
8924
+ $$invalidate(6, hide_apps = $$props2.hide_apps);
8868
8925
  };
8869
8926
  $$self.$$.update = () => {
8870
8927
  if ($$self.$$.dirty[0] & 10) {
8871
8928
  $:
8872
- $$invalidate(14, btn_props = {
8929
+ $$invalidate(15, btn_props = {
8873
8930
  name: name5,
8874
8931
  theme,
8875
8932
  disabled,
@@ -8878,15 +8935,15 @@ function instance55($$self, $$props, $$invalidate) {
8878
8935
  }
8879
8936
  if ($$self.$$.dirty[0] & 4) {
8880
8937
  $:
8881
- $$invalidate(8, t = i18n4[language]);
8938
+ $$invalidate(9, t = i18n4[language]);
8882
8939
  }
8883
8940
  if ($$self.$$.dirty[0] & 1) {
8884
8941
  $:
8885
- $$invalidate(31, hotkeys = app == null ? void 0 : app.hotKeys);
8942
+ $$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
8886
8943
  }
8887
- if ($$self.$$.dirty[0] & 256 | $$self.$$.dirty[1] & 1) {
8944
+ if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
8888
8945
  $:
8889
- $$invalidate(17, c = {
8946
+ $$invalidate(18, c = {
8890
8947
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
8891
8948
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
8892
8949
  pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
@@ -8896,29 +8953,29 @@ function instance55($$self, $$props, $$invalidate) {
8896
8953
  }
8897
8954
  if ($$self.$$.dirty[0] & 1) {
8898
8955
  $:
8899
- $$subscribe_memberState($$invalidate(16, memberState = app == null ? void 0 : app.memberState));
8956
+ $$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
8900
8957
  }
8901
- if ($$self.$$.dirty[1] & 4) {
8958
+ if ($$self.$$.dirty[1] & 8) {
8902
8959
  $:
8903
- $$invalidate(7, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
8960
+ $$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
8904
8961
  }
8905
- if ($$self.$$.dirty[1] & 4) {
8962
+ if ($$self.$$.dirty[1] & 8) {
8906
8963
  $:
8907
- $$invalidate(6, shape = $memberState == null ? void 0 : $memberState.shapeType);
8964
+ $$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
8908
8965
  }
8909
8966
  if ($$self.$$.dirty[0] & 1) {
8910
8967
  $:
8911
- $$subscribe_status($$invalidate(15, status = app == null ? void 0 : app.appsStatus));
8968
+ $$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
8912
8969
  }
8913
- if ($$self.$$.dirty[0] & 192) {
8970
+ if ($$self.$$.dirty[0] & 384) {
8914
8971
  $:
8915
8972
  if (applianceShapes.includes(appliance)) {
8916
- $$invalidate(9, last_shape = appliance);
8973
+ $$invalidate(10, last_shape = appliance);
8917
8974
  } else if (shape) {
8918
- $$invalidate(9, last_shape = shape);
8975
+ $$invalidate(10, last_shape = shape);
8919
8976
  }
8920
8977
  }
8921
- if ($$self.$$.dirty[0] & 1073741856 | $$self.$$.dirty[1] & 2) {
8978
+ if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
8922
8979
  $:
8923
8980
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
8924
8981
  }
@@ -8930,6 +8987,7 @@ function instance55($$self, $$props, $$invalidate) {
8930
8987
  disabled,
8931
8988
  scroll_height,
8932
8989
  scrollable,
8990
+ hide_apps,
8933
8991
  shape,
8934
8992
  appliance,
8935
8993
  t,
@@ -8973,8 +9031,9 @@ var Contents = class extends SvelteComponent55 {
8973
9031
  language: 2,
8974
9032
  disabled: 3,
8975
9033
  scroll_height: 4,
8976
- computed_height: 30,
8977
- scrollable: 5
9034
+ computed_height: 31,
9035
+ scrollable: 5,
9036
+ hide_apps: 6
8978
9037
  }, null, [-1, -1]);
8979
9038
  }
8980
9039
  };
@@ -9066,10 +9125,11 @@ function create_fragment56(ctx) {
9066
9125
  app: ctx[0],
9067
9126
  theme: ctx[1],
9068
9127
  language: ctx[2],
9069
- disabled: ctx[6],
9070
- scroll_height: ctx[9],
9071
- computed_height: ctx[5],
9072
- scrollable: ctx[4]
9128
+ disabled: ctx[7],
9129
+ scroll_height: ctx[10],
9130
+ computed_height: ctx[6],
9131
+ scrollable: ctx[5],
9132
+ hide_apps: ctx[4]
9073
9133
  }
9074
9134
  });
9075
9135
  function select_block_type(ctx2, dirty) {
@@ -9093,7 +9153,7 @@ function create_fragment56(ctx) {
9093
9153
  path1 = svg_element45("path");
9094
9154
  if_block.c();
9095
9155
  attr56(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
9096
- set_style5(div0, "height", ctx[4] ? ctx[5] + "px" : "auto", false);
9156
+ set_style5(div0, "height", ctx[5] ? ctx[6] + "px" : "auto", false);
9097
9157
  attr56(input, "type", "checkbox");
9098
9158
  attr56(path0, "fill", "#fff");
9099
9159
  attr56(path0, "stroke", "none");
@@ -9125,8 +9185,8 @@ function create_fragment56(ctx) {
9125
9185
  current = true;
9126
9186
  if (!mounted) {
9127
9187
  dispose = [
9128
- listen7(input, "change", ctx[13]),
9129
- action_destroyer4(height_action = height.call(null, div1, ctx[8]))
9188
+ listen7(input, "change", ctx[15]),
9189
+ action_destroyer4(height_action = height.call(null, div1, ctx[9]))
9130
9190
  ];
9131
9191
  mounted = true;
9132
9192
  }
@@ -9139,18 +9199,20 @@ function create_fragment56(ctx) {
9139
9199
  contents_changes.theme = ctx2[1];
9140
9200
  if (dirty & 4)
9141
9201
  contents_changes.language = ctx2[2];
9202
+ if (dirty & 128)
9203
+ contents_changes.disabled = ctx2[7];
9142
9204
  if (dirty & 64)
9143
- contents_changes.disabled = ctx2[6];
9205
+ contents_changes.computed_height = ctx2[6];
9144
9206
  if (dirty & 32)
9145
- contents_changes.computed_height = ctx2[5];
9207
+ contents_changes.scrollable = ctx2[5];
9146
9208
  if (dirty & 16)
9147
- contents_changes.scrollable = ctx2[4];
9209
+ contents_changes.hide_apps = ctx2[4];
9148
9210
  contents.$set(contents_changes);
9149
9211
  if (!current || dirty & 2 && div0_class_value !== (div0_class_value = name6 + "-contents " + ctx2[1])) {
9150
9212
  attr56(div0, "class", div0_class_value);
9151
9213
  }
9152
- if (dirty & 48) {
9153
- set_style5(div0, "height", ctx2[4] ? ctx2[5] + "px" : "auto", false);
9214
+ if (dirty & 96) {
9215
+ set_style5(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto", false);
9154
9216
  }
9155
9217
  if (dirty & 8) {
9156
9218
  input.checked = ctx2[3];
@@ -9201,19 +9263,21 @@ function instance56($$self, $$props, $$invalidate) {
9201
9263
  let disabled;
9202
9264
  let computed_height;
9203
9265
  let scrollable;
9266
+ let hide_apps;
9204
9267
  let $container_height;
9205
9268
  let $scroll_height;
9206
- let $writable, $$unsubscribe_writable = noop55, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe9(writable2, ($$value) => $$invalidate(12, $writable = $$value)), writable2);
9269
+ let $writable, $$unsubscribe_writable = noop55, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe9(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
9207
9270
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
9208
9271
  let { app = null } = $$props;
9209
9272
  let { theme = "light" } = $$props;
9210
9273
  let { language = "en" } = $$props;
9274
+ let { config = {} } = $$props;
9211
9275
  const extra_height = (32 + 4 + 4) * 2;
9212
9276
  let collapsed = false;
9213
9277
  let container_height = svelte_writable(0);
9214
- component_subscribe2($$self, container_height, (value) => $$invalidate(10, $container_height = value));
9278
+ component_subscribe2($$self, container_height, (value) => $$invalidate(12, $container_height = value));
9215
9279
  let scroll_height = svelte_writable(0);
9216
- component_subscribe2($$self, scroll_height, (value) => $$invalidate(11, $scroll_height = value));
9280
+ component_subscribe2($$self, scroll_height, (value) => $$invalidate(13, $scroll_height = value));
9217
9281
  function input_change_handler() {
9218
9282
  collapsed = this.checked;
9219
9283
  $$invalidate(3, collapsed);
@@ -9225,23 +9289,30 @@ function instance56($$self, $$props, $$invalidate) {
9225
9289
  $$invalidate(1, theme = $$props2.theme);
9226
9290
  if ("language" in $$props2)
9227
9291
  $$invalidate(2, language = $$props2.language);
9292
+ if ("config" in $$props2)
9293
+ $$invalidate(11, config = $$props2.config);
9228
9294
  };
9229
9295
  $$self.$$.update = () => {
9296
+ var _a;
9230
9297
  if ($$self.$$.dirty & 1) {
9231
9298
  $:
9232
- $$subscribe_writable($$invalidate(7, writable2 = app == null ? void 0 : app.writable));
9299
+ $$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
9233
9300
  }
9234
- if ($$self.$$.dirty & 4096) {
9301
+ if ($$self.$$.dirty & 16384) {
9302
+ $:
9303
+ $$invalidate(7, disabled = !$writable);
9304
+ }
9305
+ if ($$self.$$.dirty & 12288) {
9235
9306
  $:
9236
- $$invalidate(6, disabled = !$writable);
9307
+ $$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
9237
9308
  }
9238
- if ($$self.$$.dirty & 3072) {
9309
+ if ($$self.$$.dirty & 12288) {
9239
9310
  $:
9240
- $$invalidate(5, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
9311
+ $$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
9241
9312
  }
9242
- if ($$self.$$.dirty & 3072) {
9313
+ if ($$self.$$.dirty & 2048) {
9243
9314
  $:
9244
- $$invalidate(4, scrollable = $scroll_height + extra_height > $container_height);
9315
+ $$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
9245
9316
  }
9246
9317
  };
9247
9318
  return [
@@ -9249,12 +9320,14 @@ function instance56($$self, $$props, $$invalidate) {
9249
9320
  theme,
9250
9321
  language,
9251
9322
  collapsed,
9323
+ hide_apps,
9252
9324
  scrollable,
9253
9325
  computed_height,
9254
9326
  disabled,
9255
9327
  writable2,
9256
9328
  container_height,
9257
9329
  scroll_height,
9330
+ config,
9258
9331
  $container_height,
9259
9332
  $scroll_height,
9260
9333
  $writable,
@@ -9264,7 +9337,12 @@ function instance56($$self, $$props, $$invalidate) {
9264
9337
  var Toolbar = class extends SvelteComponent56 {
9265
9338
  constructor(options) {
9266
9339
  super();
9267
- init56(this, options, instance56, create_fragment56, safe_not_equal56, { app: 0, theme: 1, language: 2 });
9340
+ init56(this, options, instance56, create_fragment56, safe_not_equal56, {
9341
+ app: 0,
9342
+ theme: 1,
9343
+ language: 2,
9344
+ config: 11
9345
+ });
9268
9346
  }
9269
9347
  };
9270
9348
  var Toolbar_default = Toolbar;
@@ -10409,7 +10487,8 @@ function create_if_block_32(ctx) {
10409
10487
  props: {
10410
10488
  app: ctx[0],
10411
10489
  theme: ctx[1],
10412
- language: ctx[2]
10490
+ language: ctx[2],
10491
+ config: ctx[3].toolbar
10413
10492
  }
10414
10493
  });
10415
10494
  return {
@@ -10428,6 +10507,8 @@ function create_if_block_32(ctx) {
10428
10507
  toolbar_changes.theme = ctx2[1];
10429
10508
  if (dirty & 4)
10430
10509
  toolbar_changes.language = ctx2[2];
10510
+ if (dirty & 8)
10511
+ toolbar_changes.config = ctx2[3].toolbar;
10431
10512
  toolbar.$set(toolbar_changes);
10432
10513
  },
10433
10514
  i(local) {