kwabs22 commited on
Commit
18c2fc4
·
1 Parent(s): 1c637c8

Moving Dot Images and LFS is hard

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. bundle.css +2 -0
  3. bundle.js +733 -52
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  AutoGameBackgrounds/1stGameLoc123.png filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  AutoGameBackgrounds/1stGameLoc123.png filter=lfs diff=lfs merge=lfs -text
37
+ *.png filter=lfs diff=lfs merge=lfs -text
bundle.css CHANGED
@@ -1,2 +1,4 @@
1
  #videoContainer.svelte-ufd3fo{border:2px solid red;position:relative;width:720px;height:480px}#videoCanvas.svelte-ufd3fo{border:2px solid black;width:99.5%;height:99.5%;object-fit:cover}#overlayText.svelte-ufd3fo{position:absolute;top:50%;right:50%;color:green;font-style:bold;font-size:15}
 
 
2
  main.svelte-1tky8bj{text-align:center;padding:1em;max-width:240px;margin:0 auto}h1.svelte-1tky8bj{color:#ff3e00;text-transform:uppercase;font-size:4em;font-weight:100}@media(min-width: 640px){main.svelte-1tky8bj{max-width:none}}
 
1
  #videoContainer.svelte-ufd3fo{border:2px solid red;position:relative;width:720px;height:480px}#videoCanvas.svelte-ufd3fo{border:2px solid black;width:99.5%;height:99.5%;object-fit:cover}#overlayText.svelte-ufd3fo{position:absolute;top:50%;right:50%;color:green;font-style:bold;font-size:15}
2
+ .MovingDot.svelte-12o76ak{position:absolute;width:20px;height:20px;background-color:lightgreen;border:2px black}
3
+ .target.svelte-4yc66h{position:absolute;width:20px;height:20px;background-color:red}
4
  main.svelte-1tky8bj{text-align:center;padding:1em;max-width:240px;margin:0 auto}h1.svelte-1tky8bj{color:#ff3e00;text-transform:uppercase;font-size:4em;font-weight:100}@media(min-width: 640px){main.svelte-1tky8bj{max-width:none}}
bundle.js CHANGED
@@ -248,6 +248,19 @@ var app = (function () {
248
  }
249
  const outroing = new Set();
250
  let outros;
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  function transition_in(block, local) {
252
  if (block && block.i) {
253
  outroing.delete(block);
@@ -273,6 +286,99 @@ var app = (function () {
273
  callback();
274
  }
275
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276
  function create_component(block) {
277
  block && block.c();
278
  }
@@ -492,16 +598,16 @@ var app = (function () {
492
  /* src\VideoGradioComponentBrainstorming.svelte generated by Svelte v3.59.2 */
493
 
494
  const { console: console_1 } = globals;
495
- const file$2 = "src\\VideoGradioComponentBrainstorming.svelte";
496
 
497
- function get_each_context$1(ctx, list, i) {
498
  const child_ctx = ctx.slice();
499
  child_ctx[15] = list[i];
500
  return child_ctx;
501
  }
502
 
503
  // (85:4) {#each kitchenOptions as option}
504
- function create_each_block$1(ctx) {
505
  let option;
506
  let t_value = /*option*/ ctx[15] + "";
507
  let t;
@@ -512,7 +618,7 @@ var app = (function () {
512
  t = text(t_value);
513
  option.__value = /*option*/ ctx[15];
514
  option.value = option.__value;
515
- add_location(option, file$2, 85, 6, 2561);
516
  },
517
  m: function mount(target, anchor) {
518
  insert_dev(target, option, anchor);
@@ -526,7 +632,7 @@ var app = (function () {
526
 
527
  dispatch_dev("SvelteRegisterBlock", {
528
  block,
529
- id: create_each_block$1.name,
530
  type: "each",
531
  source: "(85:4) {#each kitchenOptions as option}",
532
  ctx
@@ -535,7 +641,7 @@ var app = (function () {
535
  return block;
536
  }
537
 
538
- function create_fragment$2(ctx) {
539
  let h1;
540
  let t1;
541
  let div1;
@@ -562,7 +668,7 @@ var app = (function () {
562
  let each_blocks = [];
563
 
564
  for (let i = 0; i < each_value.length; i += 1) {
565
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
566
  }
567
 
568
  const block = {
@@ -592,34 +698,34 @@ var app = (function () {
592
  each_blocks[i].c();
593
  }
594
 
595
- add_location(h1, file$2, 66, 0, 1800);
596
  attr_dev(track, "kind", "captions");
597
  if (!src_url_equal(track.src, track_src_value = "path/to/your/captions/file.vtt")) attr_dev(track, "src", track_src_value);
598
  attr_dev(track, "srclang", "en");
599
  attr_dev(track, "label", "English");
600
- add_location(track, file$2, 72, 4, 2006);
601
  attr_dev(video, "id", "videoCanvas");
602
  video.autoplay = true;
603
  attr_dev(video, "class", "svelte-ufd3fo");
604
- add_location(video, file$2, 70, 2, 1965);
605
  attr_dev(div0, "id", "overlayText");
606
  attr_dev(div0, "class", "svelte-ufd3fo");
607
- add_location(div0, file$2, 74, 2, 2111);
608
  attr_dev(div1, "id", "videoContainer");
609
  attr_dev(div1, "class", "svelte-ufd3fo");
610
- add_location(div1, file$2, 68, 0, 1911);
611
  attr_dev(canvas_1, "id", "myCanvas");
612
  set_style(canvas_1, "border", "2px solid black");
613
  attr_dev(canvas_1, "width", "500");
614
  attr_dev(canvas_1, "height", "500");
615
- add_location(canvas_1, file$2, 77, 0, 2186);
616
  attr_dev(input, "type", "text");
617
- add_location(input, file$2, 78, 0, 2294);
618
- add_location(button, file$2, 82, 2, 2429);
619
  if (/*selectedOption*/ ctx[0] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[9].call(select));
620
- add_location(select, file$2, 83, 2, 2479);
621
  attr_dev(div2, "id", "frameForButtons");
622
- add_location(div2, file$2, 81, 0, 2399);
623
  },
624
  l: function claim(nodes) {
625
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -678,12 +784,12 @@ var app = (function () {
678
  let i;
679
 
680
  for (i = 0; i < each_value.length; i += 1) {
681
- const child_ctx = get_each_context$1(ctx, each_value, i);
682
 
683
  if (each_blocks[i]) {
684
  each_blocks[i].p(child_ctx, dirty);
685
  } else {
686
- each_blocks[i] = create_each_block$1(child_ctx);
687
  each_blocks[i].c();
688
  each_blocks[i].m(select, null);
689
  }
@@ -721,7 +827,7 @@ var app = (function () {
721
 
722
  dispatch_dev("SvelteRegisterBlock", {
723
  block,
724
- id: create_fragment$2.name,
725
  type: "component",
726
  source: "",
727
  ctx
@@ -734,7 +840,7 @@ var app = (function () {
734
 
735
  } // Logic for 'Test OCR' button
736
 
737
- function instance$2($$self, $$props, $$invalidate) {
738
  let { $$slots: slots = {}, $$scope } = $$props;
739
  validate_slots('VideoGradioComponentBrainstorming', slots, []);
740
  let selectedOption = 'Stove - lu'; // default value
@@ -867,13 +973,13 @@ var app = (function () {
867
  class VideoGradioComponentBrainstorming extends SvelteComponentDev {
868
  constructor(options) {
869
  super(options);
870
- init(this, options, instance$2, create_fragment$2, safe_not_equal, {});
871
 
872
  dispatch_dev("SvelteRegisterComponent", {
873
  component: this,
874
  tagName: "VideoGradioComponentBrainstorming",
875
  options,
876
- id: create_fragment$2.name
877
  });
878
  }
879
  }
@@ -944,9 +1050,9 @@ var app = (function () {
944
  }
945
 
946
  /* src\NestedCommentsTestfromReact.svelte generated by Svelte v3.59.2 */
947
- const file$1 = "src\\NestedCommentsTestfromReact.svelte";
948
 
949
- function get_each_context(ctx, list, i) {
950
  const child_ctx = ctx.slice();
951
  child_ctx[6] = list[i];
952
  return child_ctx;
@@ -959,7 +1065,7 @@ var app = (function () {
959
  }
960
 
961
  // (29:12) {#if comment.items}
962
- function create_if_block(ctx) {
963
  let each_1_anchor;
964
  let each_value_1 = /*comment*/ ctx[6].items;
965
  validate_each_argument(each_value_1);
@@ -1019,7 +1125,7 @@ var app = (function () {
1019
 
1020
  dispatch_dev("SvelteRegisterBlock", {
1021
  block,
1022
- id: create_if_block.name,
1023
  type: "if",
1024
  source: "(29:12) {#if comment.items}",
1025
  ctx
@@ -1064,7 +1170,7 @@ var app = (function () {
1064
  }
1065
 
1066
  // (23:4) {#each comments as comment}
1067
- function create_each_block(ctx) {
1068
  let div1;
1069
  let div0;
1070
  let span;
@@ -1082,7 +1188,7 @@ var app = (function () {
1082
  return /*click_handler*/ ctx[5](/*comment*/ ctx[6]);
1083
  }
1084
 
1085
- let if_block = /*comment*/ ctx[6].items && create_if_block(ctx);
1086
 
1087
  const block = {
1088
  c: function create() {
@@ -1097,13 +1203,13 @@ var app = (function () {
1097
  if (if_block) if_block.c();
1098
  t4 = space();
1099
  attr_dev(span, "class", "text");
1100
- add_location(span, file$1, 25, 16, 818);
1101
- add_location(button, file$1, 26, 16, 877);
1102
  attr_dev(div0, "class", "card");
1103
- add_location(div0, file$1, 24, 12, 782);
1104
  attr_dev(div1, "key", div1_key_value = /*comment*/ ctx[6].id);
1105
  set_style(div1, "margin-left", "20px");
1106
- add_location(div1, file$1, 23, 8, 719);
1107
  },
1108
  m: function mount(target, anchor) {
1109
  insert_dev(target, div1, anchor);
@@ -1129,7 +1235,7 @@ var app = (function () {
1129
  if (if_block) {
1130
  if_block.p(ctx, dirty);
1131
  } else {
1132
- if_block = create_if_block(ctx);
1133
  if_block.c();
1134
  if_block.m(div1, t4);
1135
  }
@@ -1152,7 +1258,7 @@ var app = (function () {
1152
 
1153
  dispatch_dev("SvelteRegisterBlock", {
1154
  block,
1155
- id: create_each_block.name,
1156
  type: "each",
1157
  source: "(23:4) {#each comments as comment}",
1158
  ctx
@@ -1161,7 +1267,7 @@ var app = (function () {
1161
  return block;
1162
  }
1163
 
1164
- function create_fragment$1(ctx) {
1165
  let div1;
1166
  let div0;
1167
  let input;
@@ -1175,7 +1281,7 @@ var app = (function () {
1175
  let each_blocks = [];
1176
 
1177
  for (let i = 0; i < each_value.length; i += 1) {
1178
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
1179
  }
1180
 
1181
  const block = {
@@ -1194,11 +1300,11 @@ var app = (function () {
1194
 
1195
  attr_dev(input, "type", "text");
1196
  attr_dev(input, "placeholder", "Add a comment");
1197
- add_location(input, file$1, 19, 8, 530);
1198
- add_location(button, file$1, 20, 8, 613);
1199
- add_location(div0, file$1, 18, 4, 515);
1200
  attr_dev(div1, "id", "comment-container");
1201
- add_location(div1, file$1, 17, 0, 481);
1202
  },
1203
  l: function claim(nodes) {
1204
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -1238,12 +1344,12 @@ var app = (function () {
1238
  let i;
1239
 
1240
  for (i = 0; i < each_value.length; i += 1) {
1241
- const child_ctx = get_each_context(ctx, each_value, i);
1242
 
1243
  if (each_blocks[i]) {
1244
  each_blocks[i].p(child_ctx, dirty);
1245
  } else {
1246
- each_blocks[i] = create_each_block(child_ctx);
1247
  each_blocks[i].c();
1248
  each_blocks[i].m(div1, null);
1249
  }
@@ -1268,7 +1374,7 @@ var app = (function () {
1268
 
1269
  dispatch_dev("SvelteRegisterBlock", {
1270
  block,
1271
- id: create_fragment$1.name,
1272
  type: "component",
1273
  source: "",
1274
  ctx
@@ -1277,7 +1383,7 @@ var app = (function () {
1277
  return block;
1278
  }
1279
 
1280
- function instance$1($$self, $$props, $$invalidate) {
1281
  let { $$slots: slots = {}, $$scope } = $$props;
1282
  validate_slots('NestedCommentsTestfromReact', slots, []);
1283
  let comments = [];
@@ -1343,12 +1449,569 @@ var app = (function () {
1343
  class NestedCommentsTestfromReact extends SvelteComponentDev {
1344
  constructor(options) {
1345
  super(options);
1346
- init(this, options, instance$1, create_fragment$1, safe_not_equal, {});
1347
 
1348
  dispatch_dev("SvelteRegisterComponent", {
1349
  component: this,
1350
  tagName: "NestedCommentsTestfromReact",
1351
  options,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1352
  id: create_fragment$1.name
1353
  });
1354
  }
@@ -1374,9 +2037,14 @@ var app = (function () {
1374
  let nestedcommentstestfromreact;
1375
  let t10;
1376
  let videogradiocomponentbrainstorming;
 
 
 
 
1377
  let current;
1378
  nestedcommentstestfromreact = new NestedCommentsTestfromReact({ $$inline: true });
1379
  videogradiocomponentbrainstorming = new VideoGradioComponentBrainstorming({ $$inline: true });
 
1380
 
1381
  const block = {
1382
  c: function create() {
@@ -1398,15 +2066,20 @@ var app = (function () {
1398
  create_component(nestedcommentstestfromreact.$$.fragment);
1399
  t10 = space();
1400
  create_component(videogradiocomponentbrainstorming.$$.fragment);
 
 
 
 
1401
  attr_dev(h10, "class", "svelte-1tky8bj");
1402
- add_location(h10, file, 8, 1, 221);
1403
  attr_dev(a, "href", "https://svelte.dev/tutorial");
1404
- add_location(a, file, 9, 14, 258);
1405
- add_location(p, file, 9, 1, 245);
1406
  attr_dev(h11, "class", "svelte-1tky8bj");
1407
- add_location(h11, file, 11, 1, 357);
 
1408
  attr_dev(main, "class", "svelte-1tky8bj");
1409
- add_location(main, file, 7, 0, 213);
1410
  },
1411
  l: function claim(nodes) {
1412
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -1428,6 +2101,10 @@ var app = (function () {
1428
  mount_component(nestedcommentstestfromreact, main, null);
1429
  append_dev(main, t10);
1430
  mount_component(videogradiocomponentbrainstorming, main, null);
 
 
 
 
1431
  current = true;
1432
  },
1433
  p: function update(ctx, [dirty]) {
@@ -1437,17 +2114,20 @@ var app = (function () {
1437
  if (current) return;
1438
  transition_in(nestedcommentstestfromreact.$$.fragment, local);
1439
  transition_in(videogradiocomponentbrainstorming.$$.fragment, local);
 
1440
  current = true;
1441
  },
1442
  o: function outro(local) {
1443
  transition_out(nestedcommentstestfromreact.$$.fragment, local);
1444
  transition_out(videogradiocomponentbrainstorming.$$.fragment, local);
 
1445
  current = false;
1446
  },
1447
  d: function destroy(detaching) {
1448
  if (detaching) detach_dev(main);
1449
  destroy_component(nestedcommentstestfromreact);
1450
  destroy_component(videogradiocomponentbrainstorming);
 
1451
  }
1452
  };
1453
 
@@ -1486,7 +2166,8 @@ var app = (function () {
1486
  $$self.$capture_state = () => ({
1487
  name,
1488
  VideoGradioComponentBrainstorming,
1489
- NestedCommentsTestfromReact
 
1490
  });
1491
 
1492
  $$self.$inject_state = $$props => {
 
248
  }
249
  const outroing = new Set();
250
  let outros;
251
+ function group_outros() {
252
+ outros = {
253
+ r: 0,
254
+ c: [],
255
+ p: outros // parent group
256
+ };
257
+ }
258
+ function check_outros() {
259
+ if (!outros.r) {
260
+ run_all(outros.c);
261
+ }
262
+ outros = outros.p;
263
+ }
264
  function transition_in(block, local) {
265
  if (block && block.i) {
266
  outroing.delete(block);
 
286
  callback();
287
  }
288
  }
289
+ function outro_and_destroy_block(block, lookup) {
290
+ transition_out(block, 1, 1, () => {
291
+ lookup.delete(block.key);
292
+ });
293
+ }
294
+ function update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {
295
+ let o = old_blocks.length;
296
+ let n = list.length;
297
+ let i = o;
298
+ const old_indexes = {};
299
+ while (i--)
300
+ old_indexes[old_blocks[i].key] = i;
301
+ const new_blocks = [];
302
+ const new_lookup = new Map();
303
+ const deltas = new Map();
304
+ const updates = [];
305
+ i = n;
306
+ while (i--) {
307
+ const child_ctx = get_context(ctx, list, i);
308
+ const key = get_key(child_ctx);
309
+ let block = lookup.get(key);
310
+ if (!block) {
311
+ block = create_each_block(key, child_ctx);
312
+ block.c();
313
+ }
314
+ else if (dynamic) {
315
+ // defer updates until all the DOM shuffling is done
316
+ updates.push(() => block.p(child_ctx, dirty));
317
+ }
318
+ new_lookup.set(key, new_blocks[i] = block);
319
+ if (key in old_indexes)
320
+ deltas.set(key, Math.abs(i - old_indexes[key]));
321
+ }
322
+ const will_move = new Set();
323
+ const did_move = new Set();
324
+ function insert(block) {
325
+ transition_in(block, 1);
326
+ block.m(node, next);
327
+ lookup.set(block.key, block);
328
+ next = block.first;
329
+ n--;
330
+ }
331
+ while (o && n) {
332
+ const new_block = new_blocks[n - 1];
333
+ const old_block = old_blocks[o - 1];
334
+ const new_key = new_block.key;
335
+ const old_key = old_block.key;
336
+ if (new_block === old_block) {
337
+ // do nothing
338
+ next = new_block.first;
339
+ o--;
340
+ n--;
341
+ }
342
+ else if (!new_lookup.has(old_key)) {
343
+ // remove old block
344
+ destroy(old_block, lookup);
345
+ o--;
346
+ }
347
+ else if (!lookup.has(new_key) || will_move.has(new_key)) {
348
+ insert(new_block);
349
+ }
350
+ else if (did_move.has(old_key)) {
351
+ o--;
352
+ }
353
+ else if (deltas.get(new_key) > deltas.get(old_key)) {
354
+ did_move.add(new_key);
355
+ insert(new_block);
356
+ }
357
+ else {
358
+ will_move.add(old_key);
359
+ o--;
360
+ }
361
+ }
362
+ while (o--) {
363
+ const old_block = old_blocks[o];
364
+ if (!new_lookup.has(old_block.key))
365
+ destroy(old_block, lookup);
366
+ }
367
+ while (n)
368
+ insert(new_blocks[n - 1]);
369
+ run_all(updates);
370
+ return new_blocks;
371
+ }
372
+ function validate_each_keys(ctx, list, get_context, get_key) {
373
+ const keys = new Set();
374
+ for (let i = 0; i < list.length; i++) {
375
+ const key = get_key(get_context(ctx, list, i));
376
+ if (keys.has(key)) {
377
+ throw new Error('Cannot have duplicate keys in a keyed each');
378
+ }
379
+ keys.add(key);
380
+ }
381
+ }
382
  function create_component(block) {
383
  block && block.c();
384
  }
 
598
  /* src\VideoGradioComponentBrainstorming.svelte generated by Svelte v3.59.2 */
599
 
600
  const { console: console_1 } = globals;
601
+ const file$5 = "src\\VideoGradioComponentBrainstorming.svelte";
602
 
603
+ function get_each_context$2(ctx, list, i) {
604
  const child_ctx = ctx.slice();
605
  child_ctx[15] = list[i];
606
  return child_ctx;
607
  }
608
 
609
  // (85:4) {#each kitchenOptions as option}
610
+ function create_each_block$2(ctx) {
611
  let option;
612
  let t_value = /*option*/ ctx[15] + "";
613
  let t;
 
618
  t = text(t_value);
619
  option.__value = /*option*/ ctx[15];
620
  option.value = option.__value;
621
+ add_location(option, file$5, 85, 6, 2561);
622
  },
623
  m: function mount(target, anchor) {
624
  insert_dev(target, option, anchor);
 
632
 
633
  dispatch_dev("SvelteRegisterBlock", {
634
  block,
635
+ id: create_each_block$2.name,
636
  type: "each",
637
  source: "(85:4) {#each kitchenOptions as option}",
638
  ctx
 
641
  return block;
642
  }
643
 
644
+ function create_fragment$5(ctx) {
645
  let h1;
646
  let t1;
647
  let div1;
 
668
  let each_blocks = [];
669
 
670
  for (let i = 0; i < each_value.length; i += 1) {
671
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
672
  }
673
 
674
  const block = {
 
698
  each_blocks[i].c();
699
  }
700
 
701
+ add_location(h1, file$5, 66, 0, 1800);
702
  attr_dev(track, "kind", "captions");
703
  if (!src_url_equal(track.src, track_src_value = "path/to/your/captions/file.vtt")) attr_dev(track, "src", track_src_value);
704
  attr_dev(track, "srclang", "en");
705
  attr_dev(track, "label", "English");
706
+ add_location(track, file$5, 72, 4, 2006);
707
  attr_dev(video, "id", "videoCanvas");
708
  video.autoplay = true;
709
  attr_dev(video, "class", "svelte-ufd3fo");
710
+ add_location(video, file$5, 70, 2, 1965);
711
  attr_dev(div0, "id", "overlayText");
712
  attr_dev(div0, "class", "svelte-ufd3fo");
713
+ add_location(div0, file$5, 74, 2, 2111);
714
  attr_dev(div1, "id", "videoContainer");
715
  attr_dev(div1, "class", "svelte-ufd3fo");
716
+ add_location(div1, file$5, 68, 0, 1911);
717
  attr_dev(canvas_1, "id", "myCanvas");
718
  set_style(canvas_1, "border", "2px solid black");
719
  attr_dev(canvas_1, "width", "500");
720
  attr_dev(canvas_1, "height", "500");
721
+ add_location(canvas_1, file$5, 77, 0, 2186);
722
  attr_dev(input, "type", "text");
723
+ add_location(input, file$5, 78, 0, 2294);
724
+ add_location(button, file$5, 82, 2, 2429);
725
  if (/*selectedOption*/ ctx[0] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[9].call(select));
726
+ add_location(select, file$5, 83, 2, 2479);
727
  attr_dev(div2, "id", "frameForButtons");
728
+ add_location(div2, file$5, 81, 0, 2399);
729
  },
730
  l: function claim(nodes) {
731
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
 
784
  let i;
785
 
786
  for (i = 0; i < each_value.length; i += 1) {
787
+ const child_ctx = get_each_context$2(ctx, each_value, i);
788
 
789
  if (each_blocks[i]) {
790
  each_blocks[i].p(child_ctx, dirty);
791
  } else {
792
+ each_blocks[i] = create_each_block$2(child_ctx);
793
  each_blocks[i].c();
794
  each_blocks[i].m(select, null);
795
  }
 
827
 
828
  dispatch_dev("SvelteRegisterBlock", {
829
  block,
830
+ id: create_fragment$5.name,
831
  type: "component",
832
  source: "",
833
  ctx
 
840
 
841
  } // Logic for 'Test OCR' button
842
 
843
+ function instance$5($$self, $$props, $$invalidate) {
844
  let { $$slots: slots = {}, $$scope } = $$props;
845
  validate_slots('VideoGradioComponentBrainstorming', slots, []);
846
  let selectedOption = 'Stove - lu'; // default value
 
973
  class VideoGradioComponentBrainstorming extends SvelteComponentDev {
974
  constructor(options) {
975
  super(options);
976
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, {});
977
 
978
  dispatch_dev("SvelteRegisterComponent", {
979
  component: this,
980
  tagName: "VideoGradioComponentBrainstorming",
981
  options,
982
+ id: create_fragment$5.name
983
  });
984
  }
985
  }
 
1050
  }
1051
 
1052
  /* src\NestedCommentsTestfromReact.svelte generated by Svelte v3.59.2 */
1053
+ const file$4 = "src\\NestedCommentsTestfromReact.svelte";
1054
 
1055
+ function get_each_context$1(ctx, list, i) {
1056
  const child_ctx = ctx.slice();
1057
  child_ctx[6] = list[i];
1058
  return child_ctx;
 
1065
  }
1066
 
1067
  // (29:12) {#if comment.items}
1068
+ function create_if_block$1(ctx) {
1069
  let each_1_anchor;
1070
  let each_value_1 = /*comment*/ ctx[6].items;
1071
  validate_each_argument(each_value_1);
 
1125
 
1126
  dispatch_dev("SvelteRegisterBlock", {
1127
  block,
1128
+ id: create_if_block$1.name,
1129
  type: "if",
1130
  source: "(29:12) {#if comment.items}",
1131
  ctx
 
1170
  }
1171
 
1172
  // (23:4) {#each comments as comment}
1173
+ function create_each_block$1(ctx) {
1174
  let div1;
1175
  let div0;
1176
  let span;
 
1188
  return /*click_handler*/ ctx[5](/*comment*/ ctx[6]);
1189
  }
1190
 
1191
+ let if_block = /*comment*/ ctx[6].items && create_if_block$1(ctx);
1192
 
1193
  const block = {
1194
  c: function create() {
 
1203
  if (if_block) if_block.c();
1204
  t4 = space();
1205
  attr_dev(span, "class", "text");
1206
+ add_location(span, file$4, 25, 16, 818);
1207
+ add_location(button, file$4, 26, 16, 877);
1208
  attr_dev(div0, "class", "card");
1209
+ add_location(div0, file$4, 24, 12, 782);
1210
  attr_dev(div1, "key", div1_key_value = /*comment*/ ctx[6].id);
1211
  set_style(div1, "margin-left", "20px");
1212
+ add_location(div1, file$4, 23, 8, 719);
1213
  },
1214
  m: function mount(target, anchor) {
1215
  insert_dev(target, div1, anchor);
 
1235
  if (if_block) {
1236
  if_block.p(ctx, dirty);
1237
  } else {
1238
+ if_block = create_if_block$1(ctx);
1239
  if_block.c();
1240
  if_block.m(div1, t4);
1241
  }
 
1258
 
1259
  dispatch_dev("SvelteRegisterBlock", {
1260
  block,
1261
+ id: create_each_block$1.name,
1262
  type: "each",
1263
  source: "(23:4) {#each comments as comment}",
1264
  ctx
 
1267
  return block;
1268
  }
1269
 
1270
+ function create_fragment$4(ctx) {
1271
  let div1;
1272
  let div0;
1273
  let input;
 
1281
  let each_blocks = [];
1282
 
1283
  for (let i = 0; i < each_value.length; i += 1) {
1284
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
1285
  }
1286
 
1287
  const block = {
 
1300
 
1301
  attr_dev(input, "type", "text");
1302
  attr_dev(input, "placeholder", "Add a comment");
1303
+ add_location(input, file$4, 19, 8, 530);
1304
+ add_location(button, file$4, 20, 8, 613);
1305
+ add_location(div0, file$4, 18, 4, 515);
1306
  attr_dev(div1, "id", "comment-container");
1307
+ add_location(div1, file$4, 17, 0, 481);
1308
  },
1309
  l: function claim(nodes) {
1310
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
 
1344
  let i;
1345
 
1346
  for (i = 0; i < each_value.length; i += 1) {
1347
+ const child_ctx = get_each_context$1(ctx, each_value, i);
1348
 
1349
  if (each_blocks[i]) {
1350
  each_blocks[i].p(child_ctx, dirty);
1351
  } else {
1352
+ each_blocks[i] = create_each_block$1(child_ctx);
1353
  each_blocks[i].c();
1354
  each_blocks[i].m(div1, null);
1355
  }
 
1374
 
1375
  dispatch_dev("SvelteRegisterBlock", {
1376
  block,
1377
+ id: create_fragment$4.name,
1378
  type: "component",
1379
  source: "",
1380
  ctx
 
1383
  return block;
1384
  }
1385
 
1386
+ function instance$4($$self, $$props, $$invalidate) {
1387
  let { $$slots: slots = {}, $$scope } = $$props;
1388
  validate_slots('NestedCommentsTestfromReact', slots, []);
1389
  let comments = [];
 
1449
  class NestedCommentsTestfromReact extends SvelteComponentDev {
1450
  constructor(options) {
1451
  super(options);
1452
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, {});
1453
 
1454
  dispatch_dev("SvelteRegisterComponent", {
1455
  component: this,
1456
  tagName: "NestedCommentsTestfromReact",
1457
  options,
1458
+ id: create_fragment$4.name
1459
+ });
1460
+ }
1461
+ }
1462
+
1463
+ /* src\MovingDotPortfromReact.svelte generated by Svelte v3.59.2 */
1464
+ const file$3 = "src\\MovingDotPortfromReact.svelte";
1465
+
1466
+ function create_fragment$3(ctx) {
1467
+ let div;
1468
+
1469
+ const block = {
1470
+ c: function create() {
1471
+ div = element("div");
1472
+ attr_dev(div, "class", "MovingDot svelte-12o76ak");
1473
+ set_style(div, "left", /*position*/ ctx[0].x + "px");
1474
+ set_style(div, "top", /*position*/ ctx[0].y + "px");
1475
+ add_location(div, file$3, 39, 0, 1178);
1476
+ },
1477
+ l: function claim(nodes) {
1478
+ throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
1479
+ },
1480
+ m: function mount(target, anchor) {
1481
+ insert_dev(target, div, anchor);
1482
+ },
1483
+ p: function update(ctx, [dirty]) {
1484
+ if (dirty & /*position*/ 1) {
1485
+ set_style(div, "left", /*position*/ ctx[0].x + "px");
1486
+ }
1487
+
1488
+ if (dirty & /*position*/ 1) {
1489
+ set_style(div, "top", /*position*/ ctx[0].y + "px");
1490
+ }
1491
+ },
1492
+ i: noop,
1493
+ o: noop,
1494
+ d: function destroy(detaching) {
1495
+ if (detaching) detach_dev(div);
1496
+ }
1497
+ };
1498
+
1499
+ dispatch_dev("SvelteRegisterBlock", {
1500
+ block,
1501
+ id: create_fragment$3.name,
1502
+ type: "component",
1503
+ source: "",
1504
+ ctx
1505
+ });
1506
+
1507
+ return block;
1508
+ }
1509
+
1510
+ const step = 10;
1511
+
1512
+ function instance$3($$self, $$props, $$invalidate) {
1513
+ let { $$slots: slots = {}, $$scope } = $$props;
1514
+ validate_slots('MovingDotPortfromReact', slots, []);
1515
+ let { position = { x: 0, y: 0 } } = $$props;
1516
+ let { boundaries = { minX: 0, maxX: 100, minY: 0, maxY: 100 } } = $$props;
1517
+
1518
+ const handleKeyPress = e => {
1519
+ e.preventDefault();
1520
+ let newX = position.x;
1521
+ let newY = position.y;
1522
+
1523
+ switch (e.key) {
1524
+ case 'ArrowLeft':
1525
+ newX -= step;
1526
+ break;
1527
+ case 'ArrowRight':
1528
+ newX += step;
1529
+ break;
1530
+ case 'ArrowUp':
1531
+ newY -= step;
1532
+ break;
1533
+ case 'ArrowDown':
1534
+ newY += step;
1535
+ break;
1536
+ }
1537
+
1538
+ // Restrict movement within boundaries
1539
+ if (newX >= boundaries.minX && newX <= boundaries.maxX) $$invalidate(0, position.x = newX, position);
1540
+
1541
+ if (newY >= boundaries.minY && newY <= boundaries.maxY) $$invalidate(0, position.y = newY, position);
1542
+ };
1543
+
1544
+ onMount(() => {
1545
+ window.addEventListener('keydown', handleKeyPress);
1546
+
1547
+ return () => {
1548
+ window.removeEventListener('keydown', handleKeyPress);
1549
+ };
1550
+ });
1551
+
1552
+ const writable_props = ['position', 'boundaries'];
1553
+
1554
+ Object.keys($$props).forEach(key => {
1555
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<MovingDotPortfromReact> was created with unknown prop '${key}'`);
1556
+ });
1557
+
1558
+ $$self.$$set = $$props => {
1559
+ if ('position' in $$props) $$invalidate(0, position = $$props.position);
1560
+ if ('boundaries' in $$props) $$invalidate(1, boundaries = $$props.boundaries);
1561
+ };
1562
+
1563
+ $$self.$capture_state = () => ({
1564
+ onMount,
1565
+ position,
1566
+ boundaries,
1567
+ step,
1568
+ handleKeyPress
1569
+ });
1570
+
1571
+ $$self.$inject_state = $$props => {
1572
+ if ('position' in $$props) $$invalidate(0, position = $$props.position);
1573
+ if ('boundaries' in $$props) $$invalidate(1, boundaries = $$props.boundaries);
1574
+ };
1575
+
1576
+ if ($$props && "$$inject" in $$props) {
1577
+ $$self.$inject_state($$props.$$inject);
1578
+ }
1579
+
1580
+ return [position, boundaries];
1581
+ }
1582
+
1583
+ class MovingDotPortfromReact extends SvelteComponentDev {
1584
+ constructor(options) {
1585
+ super(options);
1586
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { position: 0, boundaries: 1 });
1587
+
1588
+ dispatch_dev("SvelteRegisterComponent", {
1589
+ component: this,
1590
+ tagName: "MovingDotPortfromReact",
1591
+ options,
1592
+ id: create_fragment$3.name
1593
+ });
1594
+ }
1595
+
1596
+ get position() {
1597
+ throw new Error("<MovingDotPortfromReact>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
1598
+ }
1599
+
1600
+ set position(value) {
1601
+ throw new Error("<MovingDotPortfromReact>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
1602
+ }
1603
+
1604
+ get boundaries() {
1605
+ throw new Error("<MovingDotPortfromReact>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
1606
+ }
1607
+
1608
+ set boundaries(value) {
1609
+ throw new Error("<MovingDotPortfromReact>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
1610
+ }
1611
+ }
1612
+
1613
+ /* src\MovingDotTargetPortfromReact.svelte generated by Svelte v3.59.2 */
1614
+
1615
+ const file$2 = "src\\MovingDotTargetPortfromReact.svelte";
1616
+
1617
+ function create_fragment$2(ctx) {
1618
+ let div;
1619
+
1620
+ const block = {
1621
+ c: function create() {
1622
+ div = element("div");
1623
+ attr_dev(div, "class", "target svelte-4yc66h");
1624
+ set_style(div, "left", /*position*/ ctx[0].x + "px");
1625
+ set_style(div, "top", /*position*/ ctx[0].y + "px");
1626
+ add_location(div, file$2, 4, 0, 49);
1627
+ },
1628
+ l: function claim(nodes) {
1629
+ throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
1630
+ },
1631
+ m: function mount(target, anchor) {
1632
+ insert_dev(target, div, anchor);
1633
+ },
1634
+ p: function update(ctx, [dirty]) {
1635
+ if (dirty & /*position*/ 1) {
1636
+ set_style(div, "left", /*position*/ ctx[0].x + "px");
1637
+ }
1638
+
1639
+ if (dirty & /*position*/ 1) {
1640
+ set_style(div, "top", /*position*/ ctx[0].y + "px");
1641
+ }
1642
+ },
1643
+ i: noop,
1644
+ o: noop,
1645
+ d: function destroy(detaching) {
1646
+ if (detaching) detach_dev(div);
1647
+ }
1648
+ };
1649
+
1650
+ dispatch_dev("SvelteRegisterBlock", {
1651
+ block,
1652
+ id: create_fragment$2.name,
1653
+ type: "component",
1654
+ source: "",
1655
+ ctx
1656
+ });
1657
+
1658
+ return block;
1659
+ }
1660
+
1661
+ function instance$2($$self, $$props, $$invalidate) {
1662
+ let { $$slots: slots = {}, $$scope } = $$props;
1663
+ validate_slots('MovingDotTargetPortfromReact', slots, []);
1664
+ let { position } = $$props;
1665
+
1666
+ $$self.$$.on_mount.push(function () {
1667
+ if (position === undefined && !('position' in $$props || $$self.$$.bound[$$self.$$.props['position']])) {
1668
+ console.warn("<MovingDotTargetPortfromReact> was created without expected prop 'position'");
1669
+ }
1670
+ });
1671
+
1672
+ const writable_props = ['position'];
1673
+
1674
+ Object.keys($$props).forEach(key => {
1675
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<MovingDotTargetPortfromReact> was created with unknown prop '${key}'`);
1676
+ });
1677
+
1678
+ $$self.$$set = $$props => {
1679
+ if ('position' in $$props) $$invalidate(0, position = $$props.position);
1680
+ };
1681
+
1682
+ $$self.$capture_state = () => ({ position });
1683
+
1684
+ $$self.$inject_state = $$props => {
1685
+ if ('position' in $$props) $$invalidate(0, position = $$props.position);
1686
+ };
1687
+
1688
+ if ($$props && "$$inject" in $$props) {
1689
+ $$self.$inject_state($$props.$$inject);
1690
+ }
1691
+
1692
+ return [position];
1693
+ }
1694
+
1695
+ class MovingDotTargetPortfromReact extends SvelteComponentDev {
1696
+ constructor(options) {
1697
+ super(options);
1698
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { position: 0 });
1699
+
1700
+ dispatch_dev("SvelteRegisterComponent", {
1701
+ component: this,
1702
+ tagName: "MovingDotTargetPortfromReact",
1703
+ options,
1704
+ id: create_fragment$2.name
1705
+ });
1706
+ }
1707
+
1708
+ get position() {
1709
+ throw new Error("<MovingDotTargetPortfromReact>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
1710
+ }
1711
+
1712
+ set position(value) {
1713
+ throw new Error("<MovingDotTargetPortfromReact>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'");
1714
+ }
1715
+ }
1716
+
1717
+ /* src\MovingDotSpacePortfromReact.svelte generated by Svelte v3.59.2 */
1718
+ const file$1 = "src\\MovingDotSpacePortfromReact.svelte";
1719
+
1720
+ function get_each_context(ctx, list, i) {
1721
+ const child_ctx = ctx.slice();
1722
+ child_ctx[7] = list[i];
1723
+ return child_ctx;
1724
+ }
1725
+
1726
+ // (31:4) {#each targets as target (target.name)}
1727
+ function create_each_block(key_1, ctx) {
1728
+ let first;
1729
+ let target;
1730
+ let t0;
1731
+ let span;
1732
+ let t1_value = /*target*/ ctx[7].name + "";
1733
+ let t1;
1734
+ let current;
1735
+
1736
+ target = new MovingDotTargetPortfromReact({
1737
+ props: { position: /*target*/ ctx[7] },
1738
+ $$inline: true
1739
+ });
1740
+
1741
+ const block = {
1742
+ key: key_1,
1743
+ first: null,
1744
+ c: function create() {
1745
+ first = empty();
1746
+ create_component(target.$$.fragment);
1747
+ t0 = space();
1748
+ span = element("span");
1749
+ t1 = text(t1_value);
1750
+ set_style(span, "position", "absolute");
1751
+ set_style(span, "left", /*target*/ ctx[7].x + "px");
1752
+ set_style(span, "top", /*target*/ ctx[7].y + "px");
1753
+ add_location(span, file$1, 32, 8, 1368);
1754
+ this.first = first;
1755
+ },
1756
+ m: function mount(target$1, anchor) {
1757
+ insert_dev(target$1, first, anchor);
1758
+ mount_component(target, target$1, anchor);
1759
+ insert_dev(target$1, t0, anchor);
1760
+ insert_dev(target$1, span, anchor);
1761
+ append_dev(span, t1);
1762
+ current = true;
1763
+ },
1764
+ p: function update(new_ctx, dirty) {
1765
+ ctx = new_ctx;
1766
+ },
1767
+ i: function intro(local) {
1768
+ if (current) return;
1769
+ transition_in(target.$$.fragment, local);
1770
+ current = true;
1771
+ },
1772
+ o: function outro(local) {
1773
+ transition_out(target.$$.fragment, local);
1774
+ current = false;
1775
+ },
1776
+ d: function destroy(detaching) {
1777
+ if (detaching) detach_dev(first);
1778
+ destroy_component(target, detaching);
1779
+ if (detaching) detach_dev(t0);
1780
+ if (detaching) detach_dev(span);
1781
+ }
1782
+ };
1783
+
1784
+ dispatch_dev("SvelteRegisterBlock", {
1785
+ block,
1786
+ id: create_each_block.name,
1787
+ type: "each",
1788
+ source: "(31:4) {#each targets as target (target.name)}",
1789
+ ctx
1790
+ });
1791
+
1792
+ return block;
1793
+ }
1794
+
1795
+ // (37:4) {#if isModalOpen}
1796
+ function create_if_block(ctx) {
1797
+ const block = { c: noop, m: noop, d: noop };
1798
+
1799
+ dispatch_dev("SvelteRegisterBlock", {
1800
+ block,
1801
+ id: create_if_block.name,
1802
+ type: "if",
1803
+ source: "(37:4) {#if isModalOpen}",
1804
+ ctx
1805
+ });
1806
+
1807
+ return block;
1808
+ }
1809
+
1810
+ function create_fragment$1(ctx) {
1811
+ let div;
1812
+ let canvas_1;
1813
+ let t0;
1814
+ let movingdot;
1815
+ let t1;
1816
+ let each_blocks = [];
1817
+ let each_1_lookup = new Map();
1818
+ let t2;
1819
+ let current;
1820
+
1821
+ movingdot = new MovingDotPortfromReact({
1822
+ props: {
1823
+ position: /*dotPosition*/ ctx[1],
1824
+ boundaries: /*boundaries*/ ctx[3]
1825
+ },
1826
+ $$inline: true
1827
+ });
1828
+
1829
+ let each_value = /*targets*/ ctx[2];
1830
+ validate_each_argument(each_value);
1831
+ const get_key = ctx => /*target*/ ctx[7].name;
1832
+ validate_each_keys(ctx, each_value, get_each_context, get_key);
1833
+
1834
+ for (let i = 0; i < each_value.length; i += 1) {
1835
+ let child_ctx = get_each_context(ctx, each_value, i);
1836
+ let key = get_key(child_ctx);
1837
+ each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
1838
+ }
1839
+
1840
+ let if_block = /*isModalOpen*/ ctx[4] && create_if_block(ctx);
1841
+
1842
+ const block = {
1843
+ c: function create() {
1844
+ div = element("div");
1845
+ canvas_1 = element("canvas");
1846
+ t0 = space();
1847
+ create_component(movingdot.$$.fragment);
1848
+ t1 = space();
1849
+
1850
+ for (let i = 0; i < each_blocks.length; i += 1) {
1851
+ each_blocks[i].c();
1852
+ }
1853
+
1854
+ t2 = space();
1855
+ if (if_block) if_block.c();
1856
+ attr_dev(canvas_1, "width", "100%");
1857
+ attr_dev(canvas_1, "height", "100%");
1858
+ add_location(canvas_1, file$1, 28, 4, 1157);
1859
+ attr_dev(div, "style", /*spaceStyle*/ ctx[5]);
1860
+ attr_dev(div, "tabindex", "0");
1861
+ add_location(div, file$1, 27, 0, 1114);
1862
+ },
1863
+ l: function claim(nodes) {
1864
+ throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
1865
+ },
1866
+ m: function mount(target, anchor) {
1867
+ insert_dev(target, div, anchor);
1868
+ append_dev(div, canvas_1);
1869
+ /*canvas_1_binding*/ ctx[6](canvas_1);
1870
+ append_dev(div, t0);
1871
+ mount_component(movingdot, div, null);
1872
+ append_dev(div, t1);
1873
+
1874
+ for (let i = 0; i < each_blocks.length; i += 1) {
1875
+ if (each_blocks[i]) {
1876
+ each_blocks[i].m(div, null);
1877
+ }
1878
+ }
1879
+
1880
+ append_dev(div, t2);
1881
+ if (if_block) if_block.m(div, null);
1882
+ current = true;
1883
+ },
1884
+ p: function update(ctx, [dirty]) {
1885
+ if (dirty & /*targets*/ 4) {
1886
+ each_value = /*targets*/ ctx[2];
1887
+ validate_each_argument(each_value);
1888
+ group_outros();
1889
+ validate_each_keys(ctx, each_value, get_each_context, get_key);
1890
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, t2, get_each_context);
1891
+ check_outros();
1892
+ }
1893
+ },
1894
+ i: function intro(local) {
1895
+ if (current) return;
1896
+ transition_in(movingdot.$$.fragment, local);
1897
+
1898
+ for (let i = 0; i < each_value.length; i += 1) {
1899
+ transition_in(each_blocks[i]);
1900
+ }
1901
+
1902
+ current = true;
1903
+ },
1904
+ o: function outro(local) {
1905
+ transition_out(movingdot.$$.fragment, local);
1906
+
1907
+ for (let i = 0; i < each_blocks.length; i += 1) {
1908
+ transition_out(each_blocks[i]);
1909
+ }
1910
+
1911
+ current = false;
1912
+ },
1913
+ d: function destroy(detaching) {
1914
+ if (detaching) detach_dev(div);
1915
+ /*canvas_1_binding*/ ctx[6](null);
1916
+ destroy_component(movingdot);
1917
+
1918
+ for (let i = 0; i < each_blocks.length; i += 1) {
1919
+ each_blocks[i].d();
1920
+ }
1921
+
1922
+ if (if_block) if_block.d();
1923
+ }
1924
+ };
1925
+
1926
+ dispatch_dev("SvelteRegisterBlock", {
1927
+ block,
1928
+ id: create_fragment$1.name,
1929
+ type: "component",
1930
+ source: "",
1931
+ ctx
1932
+ });
1933
+
1934
+ return block;
1935
+ }
1936
+
1937
+ function checkCollision() {
1938
+
1939
+ } // Collision logic
1940
+ // To open modal or adjust positions, update isModalOpen or dotPosition accordingly
1941
+
1942
+ function instance$1($$self, $$props, $$invalidate) {
1943
+ let { $$slots: slots = {}, $$scope } = $$props;
1944
+ validate_slots('MovingDotSpacePortfromReact', slots, []);
1945
+ let canvas;
1946
+ let dotPosition = { x: 900, y: 450 };
1947
+
1948
+ let targets = [
1949
+ { name: "Target 1", x: 50, y: 50 },
1950
+ { name: "Target 2", x: 100, y: 100 },
1951
+ { name: "Entrance", x: 995, y: 660 }
1952
+ ]; // Add more targets as needed
1953
+
1954
+ let boundaries = { maxX: 1885, maxY: 900, minX: 0, minY: 0 };
1955
+ let isModalOpen = false;
1956
+ const spaceStyle = `position: relative; width: 100%; height: 100vh; border: 1px solid black; overflow: hidden; background-image: url('/AutoGameBackgrounds/1stGameLoc123.png'); background-size: cover; background-position: center;`;
1957
+ const writable_props = [];
1958
+
1959
+ Object.keys($$props).forEach(key => {
1960
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<MovingDotSpacePortfromReact> was created with unknown prop '${key}'`);
1961
+ });
1962
+
1963
+ function canvas_1_binding($$value) {
1964
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
1965
+ canvas = $$value;
1966
+ $$invalidate(0, canvas);
1967
+ });
1968
+ }
1969
+
1970
+ $$self.$capture_state = () => ({
1971
+ onMount,
1972
+ MovingDot: MovingDotPortfromReact,
1973
+ Target: MovingDotTargetPortfromReact,
1974
+ canvas,
1975
+ dotPosition,
1976
+ targets,
1977
+ boundaries,
1978
+ isModalOpen,
1979
+ checkCollision,
1980
+ spaceStyle
1981
+ });
1982
+
1983
+ $$self.$inject_state = $$props => {
1984
+ if ('canvas' in $$props) $$invalidate(0, canvas = $$props.canvas);
1985
+ if ('dotPosition' in $$props) $$invalidate(1, dotPosition = $$props.dotPosition);
1986
+ if ('targets' in $$props) $$invalidate(2, targets = $$props.targets);
1987
+ if ('boundaries' in $$props) $$invalidate(3, boundaries = $$props.boundaries);
1988
+ if ('isModalOpen' in $$props) $$invalidate(4, isModalOpen = $$props.isModalOpen);
1989
+ };
1990
+
1991
+ if ($$props && "$$inject" in $$props) {
1992
+ $$self.$inject_state($$props.$$inject);
1993
+ }
1994
+
1995
+ return [
1996
+ canvas,
1997
+ dotPosition,
1998
+ targets,
1999
+ boundaries,
2000
+ isModalOpen,
2001
+ spaceStyle,
2002
+ canvas_1_binding
2003
+ ];
2004
+ }
2005
+
2006
+ class MovingDotSpacePortfromReact extends SvelteComponentDev {
2007
+ constructor(options) {
2008
+ super(options);
2009
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, {});
2010
+
2011
+ dispatch_dev("SvelteRegisterComponent", {
2012
+ component: this,
2013
+ tagName: "MovingDotSpacePortfromReact",
2014
+ options,
2015
  id: create_fragment$1.name
2016
  });
2017
  }
 
2037
  let nestedcommentstestfromreact;
2038
  let t10;
2039
  let videogradiocomponentbrainstorming;
2040
+ let t11;
2041
+ let hr;
2042
+ let t12;
2043
+ let dotgame;
2044
  let current;
2045
  nestedcommentstestfromreact = new NestedCommentsTestfromReact({ $$inline: true });
2046
  videogradiocomponentbrainstorming = new VideoGradioComponentBrainstorming({ $$inline: true });
2047
+ dotgame = new MovingDotSpacePortfromReact({ $$inline: true });
2048
 
2049
  const block = {
2050
  c: function create() {
 
2066
  create_component(nestedcommentstestfromreact.$$.fragment);
2067
  t10 = space();
2068
  create_component(videogradiocomponentbrainstorming.$$.fragment);
2069
+ t11 = space();
2070
+ hr = element("hr");
2071
+ t12 = space();
2072
+ create_component(dotgame.$$.fragment);
2073
  attr_dev(h10, "class", "svelte-1tky8bj");
2074
+ add_location(h10, file, 9, 1, 281);
2075
  attr_dev(a, "href", "https://svelte.dev/tutorial");
2076
+ add_location(a, file, 10, 14, 318);
2077
+ add_location(p, file, 10, 1, 305);
2078
  attr_dev(h11, "class", "svelte-1tky8bj");
2079
+ add_location(h11, file, 12, 1, 417);
2080
+ add_location(hr, file, 15, 1, 521);
2081
  attr_dev(main, "class", "svelte-1tky8bj");
2082
+ add_location(main, file, 8, 0, 273);
2083
  },
2084
  l: function claim(nodes) {
2085
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
 
2101
  mount_component(nestedcommentstestfromreact, main, null);
2102
  append_dev(main, t10);
2103
  mount_component(videogradiocomponentbrainstorming, main, null);
2104
+ append_dev(main, t11);
2105
+ append_dev(main, hr);
2106
+ append_dev(main, t12);
2107
+ mount_component(dotgame, main, null);
2108
  current = true;
2109
  },
2110
  p: function update(ctx, [dirty]) {
 
2114
  if (current) return;
2115
  transition_in(nestedcommentstestfromreact.$$.fragment, local);
2116
  transition_in(videogradiocomponentbrainstorming.$$.fragment, local);
2117
+ transition_in(dotgame.$$.fragment, local);
2118
  current = true;
2119
  },
2120
  o: function outro(local) {
2121
  transition_out(nestedcommentstestfromreact.$$.fragment, local);
2122
  transition_out(videogradiocomponentbrainstorming.$$.fragment, local);
2123
+ transition_out(dotgame.$$.fragment, local);
2124
  current = false;
2125
  },
2126
  d: function destroy(detaching) {
2127
  if (detaching) detach_dev(main);
2128
  destroy_component(nestedcommentstestfromreact);
2129
  destroy_component(videogradiocomponentbrainstorming);
2130
+ destroy_component(dotgame);
2131
  }
2132
  };
2133
 
 
2166
  $$self.$capture_state = () => ({
2167
  name,
2168
  VideoGradioComponentBrainstorming,
2169
+ NestedCommentsTestfromReact,
2170
+ DotGame: MovingDotSpacePortfromReact
2171
  });
2172
 
2173
  $$self.$inject_state = $$props => {