PageSourceSearch

https://kadirnar-open-sora.hf.space/assets/Index-948831e5.js

js kadirnar-open-sora.hf.space collected 2026-10-03 10:22:41 UTC 59,191 bytes, 2,095 lines download raw bytes

1import { _ as __vitePreload } from './index-10ead756.js';
2import { B as Block } from './Button-bd009e9a.js';
3import { B as BlockLabel } from './BlockLabel-5d99d786.js';
4import { I as IconButton } from './IconButton-9a708715.js';
5import { a as Download } from './DownloadLink-e3ba8890.js';
6import { S as Static } from './Index-7fdff9d2.js';
7import { F as File } from './File-e96cd7d6.js';
8import { U as Undo } from './Undo-6c110254.js';
9import { U as Upload } from './ModifyUpload.svelte_svelte_type_style_lang-3e24959e.js';
10import { M as ModifyUpload } from './ModifyUpload-3536306b.js';
11import { E as Empty } from './Empty-dc0720f3.js';
12import { U as UploadText } from './UploadText-f0b99b38.js';
13export { default as BaseExample } from './Example-a0d6492c.js';
14import './svelte/svelte.js';
15import './file-url-6213a515.js';
16import './Upload-96564545.js';
17
18var has = Object.prototype.hasOwnProperty;
19
20function find(iter, tar, key) {
21	for (key of iter.keys()) {
22		if (dequal(key, tar)) return key;
23	}
24}
25
26function dequal(foo, bar) {
27	var ctor, len, tmp;
28	if (foo === bar) return true;
29
30	if (foo && bar && (ctor=foo.constructor) === bar.constructor) {
31		if (ctor === Date) return foo.getTime() === bar.getTime();
32		if (ctor === RegExp) return foo.toString() === bar.toString();
33
34		if (ctor === Array) {
35			if ((len=foo.length) === bar.length) {
36				while (len-- && dequal(foo[len], bar[len]));
37			}
38			return len === -1;
39		}
40
41		if (ctor === Set) {
42			if (foo.size !== bar.size) {
43				return false;
44			}
45			for (len of foo) {
46				tmp = len;
47				if (tmp && typeof tmp === 'object') {
48					tmp = find(bar, tmp);
49					if (!tmp) return false;
50				}
51				if (!bar.has(tmp)) return false;
52			}
53			return true;
54		}
55
56		if (ctor === Map) {
57			if (foo.size !== bar.size) {
58				return false;
59			}
60			for (len of foo) {
61				tmp = len[0];
62				if (tmp && typeof tmp === 'object') {
63					tmp = find(bar, tmp);
64					if (!tmp) return false;
65				}
66				if (!dequal(len[1], bar.get(tmp))) {
67					return false;
68				}
69			}
70			return true;
71		}
72
73		if (ctor === ArrayBuffer) {
74			foo = new Uint8Array(foo);
75			bar = new Uint8Array(bar);
76		} else if (ctor === DataView) {
77			if ((len=foo.byteLength) === bar.byteLength) {
78				while (len-- && foo.getInt8(len) === bar.getInt8(len));
79			}
80			return len === -1;
81		}
82
83		if (ArrayBuffer.isView(foo)) {
84			if ((len=foo.byteLength) === bar.byteLength) {
85				while (len-- && foo[len] === bar[len]);
86			}
87			return len === -1;
88		}
89
90		if (!ctor || typeof foo === 'object') {
91			len = 0;
92			for (ctor in foo) {
93				if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
94				if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
95			}
96			return Object.keys(bar).length === len;
97		}
98	}
99
100	return foo !== foo && bar !== bar;
101}
102
103const Model3D_svelte_svelte_type_style_lang = '';
104
105const {
106	SvelteComponent: SvelteComponent$2,
107	add_flush_callback: add_flush_callback$1,
108	append: append$1,
109	attr: attr$1,
110	bind: bind$1,
111	binding_callbacks: binding_callbacks$1,
112	check_outros: check_outros$2,
113	construct_svelte_component: construct_svelte_component$1,
114	create_component: create_component$2,
115	destroy_component: destroy_component$2,
116	detach: detach$2,
117	element: element$1,
118	empty: empty$2,
119	group_outros: group_outros$2,
120	init: init$2,
121	insert: insert$2,
122	mount_component: mount_component$2,
123	noop,
124	safe_not_equal: safe_not_equal$2,
125	space: space$2,
126	transition_in: transition_in$2,
127	transition_out: transition_out$2
128} = window.__gradio__svelte__internal;
129function create_if_block$2(ctx) {
130	let div1;
131	let div0;
132	let t0;
133	let a;
134	let iconbutton;
135	let a_download_value;
136	let t1;
137	let current_block_type_index;
138	let if_block1;
139	let current;
140	let if_block0 = !/*use_3dgs*/ ctx[8] && create_if_block_2(ctx);
141
142	iconbutton = new IconButton({
143			props: {
144				Icon: Download,
145				label: /*i18n*/ ctx[4]("common.download")
146			}
147		});
148
149	const if_block_creators = [create_if_block_1$2, create_else_block$2];
150	const if_blocks = [];
151
152	function select_block_type(ctx, dirty) {
153		if (/*use_3dgs*/ ctx[8]) return 0;
154		return 1;
155	}
156
157	current_block_type_index = select_block_type(ctx);
158	if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
159
160	return {
161		c() {
162			div1 = element$1("div");
163			div0 = element$1("div");
164			if (if_block0) if_block0.c();
165			t0 = space$2();
166			a = element$1("a");
167			create_component$2(iconbutton.$$.fragment);
168			t1 = space$2();
169			if_block1.c();
170			attr$1(a, "href", /*resolved_url*/ ctx[12]);
171			attr$1(a, "target", window.__is_colab__ ? "_blank" : null);
172
173			attr$1(a, "download", a_download_value = window.__is_colab__
174			? null
175			: /*value*/ ctx[0].orig_name || /*value*/ ctx[0].path);
176
177			attr$1(div0, "class", "buttons svelte-8r2c23");
178			attr$1(div1, "class", "model3D svelte-8r2c23");
179		},
180		m(target, anchor) {
181			insert$2(target, div1, anchor);
182			append$1(div1, div0);
183			if (if_block0) if_block0.m(div0, null);
184			append$1(div0, t0);
185			append$1(div0, a);
186			mount_component$2(iconbutton, a, null);
187			append$1(div1, t1);
188			if_blocks[current_block_type_index].m(div1, null);
189			current = true;
190		},
191		p(ctx, dirty) {
192			if (!/*use_3dgs*/ ctx[8]) {
193				if (if_block0) {
194					if_block0.p(ctx, dirty);
195
196					if (dirty & /*use_3dgs*/ 256) {
197						transition_in$2(if_block0, 1);
198					}
199				} else {
200					if_block0 = create_if_block_2(ctx);
201					if_block0.c();
202					transition_in$2(if_block0, 1);
203					if_block0.m(div0, t0);
204				}
205			} else if (if_block0) {
206				group_outros$2();
207
208				transition_out$2(if_block0, 1, 1, () => {
209					if_block0 = null;
210				});
211
212				check_outros$2();
213			}
214
215			const iconbutton_changes = {};
216			if (dirty & /*i18n*/ 16) iconbutton_changes.label = /*i18n*/ ctx[4]("common.download");
217			iconbutton.$set(iconbutton_changes);
218
219			if (!current || dirty & /*resolved_url*/ 4096) {
220				attr$1(a, "href", /*resolved_url*/ ctx[12]);
221			}
222
223			if (!current || dirty & /*value*/ 1 && a_download_value !== (a_download_value = window.__is_colab__
224			? null
225			: /*value*/ ctx[0].orig_name || /*value*/ ctx[0].path)) {
226				attr$1(a, "download", a_download_value);
227			}
228
229			let previous_block_index = current_block_type_index;
230			current_block_type_index = select_block_type(ctx);
231
232			if (current_block_type_index === previous_block_index) {
233				if_blocks[current_block_type_index].p(ctx, dirty);
234			} else {
235				group_outros$2();
236
237				transition_out$2(if_blocks[previous_block_index], 1, 1, () => {
238					if_blocks[previous_block_index] = null;
239				});
240
241				check_outros$2();
242				if_block1 = if_blocks[current_block_type_index];
243
244				if (!if_block1) {
245					if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
246					if_block1.c();
247				} else {
248					if_block1.p(ctx, dirty);
249				}
250
251				transition_in$2(if_block1, 1);
252				if_block1.m(div1, null);
253			}
254		},
255		i(local) {
256			if (current) return;
257			transition_in$2(if_block0);
258			transition_in$2(iconbutton.$$.fragment, local);
259			transition_in$2(if_block1);
260			current = true;
261		},
262		o(local) {
263			transition_out$2(if_block0);
264			transition_out$2(iconbutton.$$.fragment, local);
265			transition_out$2(if_block1);
266			current = false;
267		},
268		d(detaching) {
269			if (detaching) {
270				detach$2(div1);
271			}
272
273			if (if_block0) if_block0.d();
274			destroy_component$2(iconbutton);
275			if_blocks[current_block_type_index].d();
276		}
277	};
278}
279
280// (65:3) {#if !use_3dgs}
281function create_if_block_2(ctx) {
282	let iconbutton;
283	let current;
284	iconbutton = new IconButton({ props: { Icon: Undo, label: "Undo" } });
285	iconbutton.$on("click", /*click_handler*/ ctx[15]);
286
287	return {
288		c() {
289			create_component$2(iconbutton.$$.fragment);
290		},
291		m(target, anchor) {
292			mount_component$2(iconbutton, target, anchor);
293			current = true;
294		},
295		p: noop,
296		i(local) {
297			if (current) return;
298			transition_in$2(iconbutton.$$.fragment, local);
299			current = true;
300		},
301		o(local) {
302			transition_out$2(iconbutton.$$.fragment, local);
303			current = false;
304		},
305		d(detaching) {
306			destroy_component$2(iconbutton, detaching);
307		}
308	};
309}
310
311// (86:2) {:else}
312function create_else_block$2(ctx) {
313	let switch_instance;
314	let updating_resolved_url;
315	let switch_instance_anchor;
316	let current;
317
318	function switch_instance_resolved_url_binding_1(value) {
319		/*switch_instance_resolved_url_binding_1*/ ctx[18](value);
320	}
321
322	var switch_value = /*Canvas3DComponent*/ ctx[11];
323
324	function switch_props(ctx, dirty) {
325		let switch_instance_props = {
326			value: /*value*/ ctx[0],
327			clear_color: /*clear_color*/ ctx[1],
328			camera_position: /*camera_position*/ ctx[7],
329			zoom_speed: /*zoom_speed*/ ctx[5],
330			pan_speed: /*pan_speed*/ ctx[6]
331		};
332
333		if (/*resolved_url*/ ctx[12] !== void 0) {
334			switch_instance_props.resolved_url = /*resolved_url*/ ctx[12];
335		}
336
337		return { props: switch_instance_props };
338	}
339
340	if (switch_value) {
341		switch_instance = construct_svelte_component$1(switch_value, switch_props(ctx));
342		/*switch_instance_binding*/ ctx[17](switch_instance);
343		binding_callbacks$1.push(() => bind$1(switch_instance, 'resolved_url', switch_instance_resolved_url_binding_1));
344	}
345
346	return {
347		c() {
348			if (switch_instance) create_component$2(switch_instance.$$.fragment);
349			switch_instance_anchor = empty$2();
350		},
351		m(target, anchor) {
352			if (switch_instance) mount_component$2(switch_instance, target, anchor);
353			insert$2(target, switch_instance_anchor, anchor);
354			current = true;
355		},
356		p(ctx, dirty) {
357			if (dirty & /*Canvas3DComponent*/ 2048 && switch_value !== (switch_value = /*Canvas3DComponent*/ ctx[11])) {
358				if (switch_instance) {
359					group_outros$2();
360					const old_component = switch_instance;
361
362					transition_out$2(old_component.$$.fragment, 1, 0, () => {
363						destroy_component$2(old_component, 1);
364					});
365
366					check_outros$2();
367				}
368
369				if (switch_value) {
370					switch_instance = construct_svelte_component$1(switch_value, switch_props(ctx));
371					/*switch_instance_binding*/ ctx[17](switch_instance);
372					binding_callbacks$1.push(() => bind$1(switch_instance, 'resolved_url', switch_instance_resolved_url_binding_1));
373					create_component$2(switch_instance.$$.fragment);
374					transition_in$2(switch_instance.$$.fragment, 1);
375					mount_component$2(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
376				} else {
377					switch_instance = null;
378				}
379			} else if (switch_value) {
380				const switch_instance_changes = {};
381				if (dirty & /*value*/ 1) switch_instance_changes.value = /*value*/ ctx[0];
382				if (dirty & /*clear_color*/ 2) switch_instance_changes.clear_color = /*clear_color*/ ctx[1];
383				if (dirty & /*camera_position*/ 128) switch_instance_changes.camera_position = /*camera_position*/ ctx[7];
384				if (dirty & /*zoom_speed*/ 32) switch_instance_changes.zoom_speed = /*zoom_speed*/ ctx[5];
385				if (dirty & /*pan_speed*/ 64) switch_instance_changes.pan_speed = /*pan_speed*/ ctx[6];
386
387				if (!updating_resolved_url && dirty & /*resolved_url*/ 4096) {
388					updating_resolved_url = true;
389					switch_instance_changes.resolved_url = /*resolved_url*/ ctx[12];
390					add_flush_callback$1(() => updating_resolved_url = false);
391				}
392
393				switch_instance.$set(switch_instance_changes);
394			}
395		},
396		i(local) {
397			if (current) return;
398			if (switch_instance) transition_in$2(switch_instance.$$.fragment, local);
399			current = true;
400		},
401		o(local) {
402			if (switch_instance) transition_out$2(switch_instance.$$.fragment, local);
403			current = false;
404		},
405		d(detaching) {
406			if (detaching) {
407				detach$2(switch_instance_anchor);
408			}
409
410			/*switch_instance_binding*/ ctx[17](null);
411			if (switch_instance) destroy_component$2(switch_instance, detaching);
412		}
413	};
414}
415
416// (78:2) {#if use_3dgs}
417function create_if_block_1$2(ctx) {
418	let switch_instance;
419	let updating_resolved_url;
420	let switch_instance_anchor;
421	let current;
422
423	function switch_instance_resolved_url_binding(value) {
424		/*switch_instance_resolved_url_binding*/ ctx[16](value);
425	}
426
427	var switch_value = /*Canvas3DGSComponent*/ ctx[10];
428
429	function switch_props(ctx, dirty) {
430		let switch_instance_props = {
431			value: /*value*/ ctx[0],
432			zoom_speed: /*zoom_speed*/ ctx[5],
433			pan_speed: /*pan_speed*/ ctx[6]
434		};
435
436		if (/*resolved_url*/ ctx[12] !== void 0) {
437			switch_instance_props.resolved_url = /*resolved_url*/ ctx[12];
438		}
439
440		return { props: switch_instance_props };
441	}
442
443	if (switch_value) {
444		switch_instance = construct_svelte_component$1(switch_value, switch_props(ctx));
445		binding_callbacks$1.push(() => bind$1(switch_instance, 'resolved_url', switch_instance_resolved_url_binding));
446	}
447
448	return {
449		c() {
450			if (switch_instance) create_component$2(switch_instance.$$.fragment);
451			switch_instance_anchor = empty$2();
452		},
453		m(target, anchor) {
454			if (switch_instance) mount_component$2(switch_instance, target, anchor);
455			insert$2(target, switch_instance_anchor, anchor);
456			current = true;
457		},
458		p(ctx, dirty) {
459			if (dirty & /*Canvas3DGSComponent*/ 1024 && switch_value !== (switch_value = /*Canvas3DGSComponent*/ ctx[10])) {
460				if (switch_instance) {
461					group_outros$2();
462					const old_component = switch_instance;
463
464					transition_out$2(old_component.$$.fragment, 1, 0, () => {
465						destroy_component$2(old_component, 1);
466					});
467
468					check_outros$2();
469				}
470
471				if (switch_value) {
472					switch_instance = construct_svelte_component$1(switch_value, switch_props(ctx));
473					binding_callbacks$1.push(() => bind$1(switch_instance, 'resolved_url', switch_instance_resolved_url_binding));
474					create_component$2(switch_instance.$$.fragment);
475					transition_in$2(switch_instance.$$.fragment, 1);
476					mount_component$2(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
477				} else {
478					switch_instance = null;
479				}
480			} else if (switch_value) {
481				const switch_instance_changes = {};
482				if (dirty & /*value*/ 1) switch_instance_changes.value = /*value*/ ctx[0];
483				if (dirty & /*zoom_speed*/ 32) switch_instance_changes.zoom_speed = /*zoom_speed*/ ctx[5];
484				if (dirty & /*pan_speed*/ 64) switch_instance_changes.pan_speed = /*pan_speed*/ ctx[6];
485
486				if (!updating_resolved_url && dirty & /*resolved_url*/ 4096) {
487					updating_resolved_url = true;
488					switch_instance_changes.resolved_url = /*resolved_url*/ ctx[12];
489					add_flush_callback$1(() => updating_resolved_url = false);
490				}
491
492				switch_instance.$set(switch_instance_changes);
493			}
494		},
495		i(local) {
496			if (current) return;
497			if (switch_instance) transition_in$2(switch_instance.$$.fragment, local);
498			current = true;
499		},
500		o(local) {
501			if (switch_instance) transition_out$2(switch_instance.$$.fragment, local);
502			current = false;
503		},
504		d(detaching) {
505			if (detaching) {
506				detach$2(switch_instance_anchor);
507			}
508
509			if (switch_instance) destroy_component$2(switch_instance, detaching);
510		}
511	};
512}
513
514function create_fragment$2(ctx) {
515	let blocklabel;
516	let t;
517	let if_block_anchor;
518	let current;
519
520	blocklabel = new BlockLabel({
521			props: {
522				show_label: /*show_label*/ ctx[3],
523				Icon: File,
524				label: /*label*/ ctx[2] || /*i18n*/ ctx[4]("3D_model.3d_model")
525			}
526		});
527
528	let if_block = /*value*/ ctx[0] && create_if_block$2(ctx);
529
530	return {
531		c() {
532			create_component$2(blocklabel.$$.fragment);
533			t = space$2();
534			if (if_block) if_block.c();
535			if_block_anchor = empty$2();
536		},
537		m(target, anchor) {
538			mount_component$2(blocklabel, target, anchor);
539			insert$2(target, t, anchor);
540			if (if_block) if_block.m(target, anchor);
541			insert$2(target, if_block_anchor, anchor);
542			current = true;
543		},
544		p(ctx, [dirty]) {
545			const blocklabel_changes = {};
546			if (dirty & /*show_label*/ 8) blocklabel_changes.show_label = /*show_label*/ ctx[3];
547			if (dirty & /*label, i18n*/ 20) blocklabel_changes.label = /*label*/ ctx[2] || /*i18n*/ ctx[4]("3D_model.3d_model");
548			blocklabel.$set(blocklabel_changes);
549
550			if (/*value*/ ctx[0]) {
551				if (if_block) {
552					if_block.p(ctx, dirty);
553
554					if (dirty & /*value*/ 1) {
555						transition_in$2(if_block, 1);
556					}
557				} else {
558					if_block = create_if_block$2(ctx);
559					if_block.c();
560					transition_in$2(if_block, 1);
561					if_block.m(if_block_anchor.parentNode, if_block_anchor);
562				}
563			} else if (if_block) {
564				group_outros$2();
565
566				transition_out$2(if_block, 1, 1, () => {
567					if_block = null;
568				});
569
570				check_outros$2();
571			}
572		},
573		i(local) {
574			if (current) return;
575			transition_in$2(blocklabel.$$.fragment, local);
576			transition_in$2(if_block);
577			current = true;
578		},
579		o(local) {
580			transition_out$2(blocklabel.$$.fragment, local);
581			transition_out$2(if_block);
582			current = false;
583		},
584		d(detaching) {
585			if (detaching) {
586				detach$2(t);
587				detach$2(if_block_anchor);
588			}
589
590			destroy_component$2(blocklabel, detaching);
591			if (if_block) if_block.d(detaching);
592		}
593	};
594}
595
596async function loadCanvas3D$1() {
597	const module = await __vitePreload(() => import('./Canvas3D-632b16d7.js'),true?["./Canvas3D-632b16d7.js","./Index-7fdff9d2.js","./index-10ead756.js","./index-138adf03.css","./Index-b2fdba73.css","./file-url-6213a515.js"]:void 0,import.meta.url);
598	return module.default;
599}
600
601async function loadCanvas3DGS$1() {
602	const module = await __vitePreload(() => import('./Canvas3DGS-7f155712.js'),true?["./Canvas3DGS-7f155712.js","./file-url-6213a515.js","./Index-7fdff9d2.js","./index-10ead756.js","./index-138adf03.css","./Index-b2fdba73.css"]:void 0,import.meta.url);
603	return module.default;
604}
605
606function instance$2($$self, $$props, $$invalidate) {
607	let { value } = $$props;
608	let { clear_color = [0, 0, 0, 0] } = $$props;
609	let { label = "" } = $$props;
610	let { show_label } = $$props;
611	let { i18n } = $$props;
612	let { zoom_speed = 1 } = $$props;
613	let { pan_speed = 1 } = $$props;
614	let { camera_position = [null, null, null] } = $$props;
615	let current_settings = { camera_position, zoom_speed, pan_speed };
616	let use_3dgs = false;
617	let Canvas3DGSComponent;
618	let Canvas3DComponent;
619	let canvas3d;
620
621	function handle_undo() {
622		canvas3d?.reset_camera_position(camera_position, zoom_speed, pan_speed);
623	}
624
625	let resolved_url;
626	const click_handler = () => handle_undo();
627
628	function switch_instance_resolved_url_binding(value) {
629		resolved_url = value;
630		$$invalidate(12, resolved_url);
631	}
632
633	function switch_instance_binding($$value) {
634		binding_callbacks$1[$$value ? 'unshift' : 'push'](() => {
635			canvas3d = $$value;
636			$$invalidate(9, canvas3d);
637		});
638	}
639
640	function switch_instance_resolved_url_binding_1(value) {
641		resolved_url = value;
642		$$invalidate(12, resolved_url);
643	}
644
645	$$self.$$set = $$props => {
646		if ('value' in $$props) $$invalidate(0, value = $$props.value);
647		if ('clear_color' in $$props) $$invalidate(1, clear_color = $$props.clear_color);
648		if ('label' in $$props) $$invalidate(2, label = $$props.label);
649		if ('show_label' in $$props) $$invalidate(3, show_label = $$props.show_label);
650		if ('i18n' in $$props) $$invalidate(4, i18n = $$props.i18n);
651		if ('zoom_speed' in $$props) $$invalidate(5, zoom_speed = $$props.zoom_speed);
652		if ('pan_speed' in $$props) $$invalidate(6, pan_speed = $$props.pan_speed);
653		if ('camera_position' in $$props) $$invalidate(7, camera_position = $$props.camera_position);
654	};
655
656	$$self.$$.update = () => {
657		if ($$self.$$.dirty & /*value, use_3dgs*/ 257) {
658			if (value) {
659				$$invalidate(8, use_3dgs = value.path.endsWith(".splat") || value.path.endsWith(".ply"));
660
661				if (use_3dgs) {
662					loadCanvas3DGS$1().then(component => {
663						$$invalidate(10, Canvas3DGSComponent = component);
664					});
665				} else {
666					loadCanvas3D$1().then(component => {
667						$$invalidate(11, Canvas3DComponent = component);
668					});
669				}
670			}
671		}
672
673		if ($$self.$$.dirty & /*current_settings, camera_position, zoom_speed, pan_speed, canvas3d*/ 17120) {
674			{
675				if (!dequal(current_settings.camera_position, camera_position) || current_settings.zoom_speed !== zoom_speed || current_settings.pan_speed !== pan_speed) {
676					canvas3d?.reset_camera_position(camera_position, zoom_speed, pan_speed);
677					$$invalidate(14, current_settings = { camera_position, zoom_speed, pan_speed });
678				}
679			}
680		}
681	};
682
683	return [
684		value,
685		clear_color,
686		label,
687		show_label,
688		i18n,
689		zoom_speed,
690		pan_speed,
691		camera_position,
692		use_3dgs,
693		canvas3d,
694		Canvas3DGSComponent,
695		Canvas3DComponent,
696		resolved_url,
697		handle_undo,
698		current_settings,
699		click_handler,
700		switch_instance_resolved_url_binding,
701		switch_instance_binding,
702		switch_instance_resolved_url_binding_1
703	];
704}
705
706class Model3D extends SvelteComponent$2 {
707	constructor(options) {
708		super();
709
710		init$2(this, options, instance$2, create_fragment$2, safe_not_equal$2, {
711			value: 0,
712			clear_color: 1,
713			label: 2,
714			show_label: 3,
715			i18n: 4,
716			zoom_speed: 5,
717			pan_speed: 6,
718			camera_position: 7
719		});
720	}
721}
722
723const Model3D$1 = Model3D;
724
725const Model3DUpload_svelte_svelte_type_style_lang = '';
726
727const {
728	SvelteComponent: SvelteComponent$1,
729	add_flush_callback,
730	append,
731	attr,
732	bind,
733	binding_callbacks,
734	check_outros: check_outros$1,
735	construct_svelte_component,
736	create_component: create_component$1,
737	create_slot,
738	destroy_component: destroy_component$1,
739	detach: detach$1,
740	element,
741	empty: empty$1,
742	get_all_dirty_from_scope,
743	get_slot_changes,
744	group_outros: group_outros$1,
745	init: init$1,
746	insert: insert$1,
747	mount_component: mount_component$1,
748	safe_not_equal: safe_not_equal$1,
749	space: space$1,
750	transition_in: transition_in$1,
751	transition_out: transition_out$1,
752	update_slot_base
753} = window.__gradio__svelte__internal;
754const { createEventDispatcher, tick } = window.__gradio__svelte__internal;
755function create_else_block$1(ctx) {
756	let div;
757	let modifyupload;
758	let t;
759	let current_block_type_index;
760	let if_block;
761	let current;
762
763	modifyupload = new ModifyUpload({
764			props: {
765				undoable: !/*use_3dgs*/ ctx[9],
766				i18n: /*i18n*/ ctx[5],
767				absolute: true
768			}
769		});
770
771	modifyupload.$on("clear", /*handle_clear*/ ctx[15]);
772	modifyupload.$on("undo", /*handle_undo*/ ctx[16]);
773	const if_block_creators = [create_if_block_1$1, create_else_block_1$1];
774	const if_blocks = [];
775
776	function select_block_type_1(ctx, dirty) {
777		if (/*use_3dgs*/ ctx[9]) return 0;
778		return 1;
779	}
780
781	current_block_type_index = select_block_type_1(ctx);
782	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
783
784	return {
785		c() {
786			div = element("div");
787			create_component$1(modifyupload.$$.fragment);
788			t = space$1();
789			if_block.c();
790			attr(div, "class", "input-model svelte-hvduv8");
791		},
792		m(target, anchor) {
793			insert$1(target, div, anchor);
794			mount_component$1(modifyupload, div, null);
795			append(div, t);
796			if_blocks[current_block_type_index].m(div, null);
797			current = true;
798		},
799		p(ctx, dirty) {
800			const modifyupload_changes = {};
801			if (dirty & /*use_3dgs*/ 512) modifyupload_changes.undoable = !/*use_3dgs*/ ctx[9];
802			if (dirty & /*i18n*/ 32) modifyupload_changes.i18n = /*i18n*/ ctx[5];
803			modifyupload.$set(modifyupload_changes);
804			let previous_block_index = current_block_type_index;
805			current_block_type_index = select_block_type_1(ctx);
806
807			if (current_block_type_index === previous_block_index) {
808				if_blocks[current_block_type_index].p(ctx, dirty);
809			} else {
810				group_outros$1();
811
812				transition_out$1(if_blocks[previous_block_index], 1, 1, () => {
813					if_blocks[previous_block_index] = null;
814				});
815
816				check_outros$1();
817				if_block = if_blocks[current_block_type_index];
818
819				if (!if_block) {
820					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
821					if_block.c();
822				} else {
823					if_block.p(ctx, dirty);
824				}
825
826				transition_in$1(if_block, 1);
827				if_block.m(div, null);
828			}
829		},
830		i(local) {
831			if (current) return;
832			transition_in$1(modifyupload.$$.fragment, local);
833			transition_in$1(if_block);
834			current = true;
835		},
836		o(local) {
837			transition_out$1(modifyupload.$$.fragment, local);
838			transition_out$1(if_block);
839			current = false;
840		},
841		d(detaching) {
842			if (detaching) {
843				detach$1(div);
844			}
845
846			destroy_component$1(modifyupload);
847			if_blocks[current_block_type_index].d();
848		}
849	};
850}
851
852// (66:0) {#if value === null}
853function create_if_block$1(ctx) {
854	let upload;
855	let updating_dragging;
856	let current;
857
858	function upload_dragging_binding(value) {
859		/*upload_dragging_binding*/ ctx[18](value);
860	}
861
862	let upload_props = {
863		root: /*root*/ ctx[4],
864		filetype: [".stl", ".obj", ".gltf", ".glb", "model/obj", ".splat", ".ply"],
865		$$slots: { default: [create_default_slot$1] },
866		$$scope: { ctx }
867	};
868
869	if (/*dragging*/ ctx[10] !== void 0) {
870		upload_props.dragging = /*dragging*/ ctx[10];
871	}
872
873	upload = new Upload({ props: upload_props });
874	binding_callbacks.push(() => bind(upload, 'dragging', upload_dragging_binding));
875	upload.$on("load", /*handle_upload*/ ctx[14]);
876
877	return {
878		c() {
879			create_component$1(upload.$$.fragment);
880		},
881		m(target, anchor) {
882			mount_component$1(upload, target, anchor);
883			current = true;
884		},
885		p(ctx, dirty) {
886			const upload_changes = {};
887			if (dirty & /*root*/ 16) upload_changes.root = /*root*/ ctx[4];
888
889			if (dirty & /*$$scope*/ 1048576) {
890				upload_changes.$$scope = { dirty, ctx };
891			}
892
893			if (!updating_dragging && dirty & /*dragging*/ 1024) {
894				updating_dragging = true;
895				upload_changes.dragging = /*dragging*/ ctx[10];
896				add_flush_callback(() => updating_dragging = false);
897			}
898
899			upload.$set(upload_changes);
900		},
901		i(local) {
902			if (current) return;
903			transition_in$1(upload.$$.fragment, local);
904			current = true;
905		},
906		o(local) {
907			transition_out$1(upload.$$.fragment, local);
908			current = false;
909		},
910		d(detaching) {
911			destroy_component$1(upload, detaching);
912		}
913	};
914}
915
916// (92:2) {:else}
917function create_else_block_1$1(ctx) {
918	let switch_instance;
919	let switch_instance_anchor;
920	let current;
921	var switch_value = /*Canvas3DComponent*/ ctx[12];
922
923	function switch_props(ctx, dirty) {
924		let switch_instance_props = {
925			value: /*value*/ ctx[0],
926			clear_color: /*clear_color*/ ctx[1],
927			camera_position: /*camera_position*/ ctx[8],
928			zoom_speed: /*zoom_speed*/ ctx[6],
929			pan_speed: /*pan_speed*/ ctx[7]
930		};
931
932		return { props: switch_instance_props };
933	}
934
935	if (switch_value) {
936		switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
937		/*switch_instance_binding*/ ctx[19](switch_instance);
938	}
939
940	return {
941		c() {
942			if (switch_instance) create_component$1(switch_instance.$$.fragment);
943			switch_instance_anchor = empty$1();
944		},
945		m(target, anchor) {
946			if (switch_instance) mount_component$1(switch_instance, target, anchor);
947			insert$1(target, switch_instance_anchor, anchor);
948			current = true;
949		},
950		p(ctx, dirty) {
951			if (dirty & /*Canvas3DComponent*/ 4096 && switch_value !== (switch_value = /*Canvas3DComponent*/ ctx[12])) {
952				if (switch_instance) {
953					group_outros$1();
954					const old_component = switch_instance;
955
956					transition_out$1(old_component.$$.fragment, 1, 0, () => {
957						destroy_component$1(old_component, 1);
958					});
959
960					check_outros$1();
961				}
962
963				if (switch_value) {
964					switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
965					/*switch_instance_binding*/ ctx[19](switch_instance);
966					create_component$1(switch_instance.$$.fragment);
967					transition_in$1(switch_instance.$$.fragment, 1);
968					mount_component$1(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
969				} else {
970					switch_instance = null;
971				}
972			} else if (switch_value) {
973				const switch_instance_changes = {};
974				if (dirty & /*value*/ 1) switch_instance_changes.value = /*value*/ ctx[0];
975				if (dirty & /*clear_color*/ 2) switch_instance_changes.clear_color = /*clear_color*/ ctx[1];
976				if (dirty & /*camera_position*/ 256) switch_instance_changes.camera_position = /*camera_position*/ ctx[8];
977				if (dirty & /*zoom_speed*/ 64) switch_instance_changes.zoom_speed = /*zoom_speed*/ ctx[6];
978				if (dirty & /*pan_speed*/ 128) switch_instance_changes.pan_speed = /*pan_speed*/ ctx[7];
979				switch_instance.$set(switch_instance_changes);
980			}
981		},
982		i(local) {
983			if (current) return;
984			if (switch_instance) transition_in$1(switch_instance.$$.fragment, local);
985			current = true;
986		},
987		o(local) {
988			if (switch_instance) transition_out$1(switch_instance.$$.fragment, local);
989			current = false;
990		},
991		d(detaching) {
992			if (detaching) {
993				detach$1(switch_instance_anchor);
994			}
995
996			/*switch_instance_binding*/ ctx[19](null);
997			if (switch_instance) destroy_component$1(switch_instance, detaching);
998		}
999	};
1000}
1001
1002// (85:2) {#if use_3dgs}
1003function create_if_block_1$1(ctx) {
1004	let switch_instance;
1005	let switch_instance_anchor;
1006	let current;
1007	var switch_value = /*Canvas3DGSComponent*/ ctx[11];
1008
1009	function switch_props(ctx, dirty) {
1010		return {
1011			props: {
1012				value: /*value*/ ctx[0],
1013				zoom_speed: /*zoom_speed*/ ctx[6],
1014				pan_speed: /*pan_speed*/ ctx[7]
1015			}
1016		};
1017	}
1018
1019	if (switch_value) {
1020		switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
1021	}
1022
1023	return {
1024		c() {
1025			if (switch_instance) create_component$1(switch_instance.$$.fragment);
1026			switch_instance_anchor = empty$1();
1027		},
1028		m(target, anchor) {
1029			if (switch_instance) mount_component$1(switch_instance, target, anchor);
1030			insert$1(target, switch_instance_anchor, anchor);
1031			current = true;
1032		},
1033		p(ctx, dirty) {
1034			if (dirty & /*Canvas3DGSComponent*/ 2048 && switch_value !== (switch_value = /*Canvas3DGSComponent*/ ctx[11])) {
1035				if (switch_instance) {
1036					group_outros$1();
1037					const old_component = switch_instance;
1038
1039					transition_out$1(old_component.$$.fragment, 1, 0, () => {
1040						destroy_component$1(old_component, 1);
1041					});
1042
1043					check_outros$1();
1044				}
1045
1046				if (switch_value) {
1047					switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
1048					create_component$1(switch_instance.$$.fragment);
1049					transition_in$1(switch_instance.$$.fragment, 1);
1050					mount_component$1(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
1051				} else {
1052					switch_instance = null;
1053				}
1054			} else if (switch_value) {
1055				const switch_instance_changes = {};
1056				if (dirty & /*value*/ 1) switch_instance_changes.value = /*value*/ ctx[0];
1057				if (dirty & /*zoom_speed*/ 64) switch_instance_changes.zoom_speed = /*zoom_speed*/ ctx[6];
1058				if (dirty & /*pan_speed*/ 128) switch_instance_changes.pan_speed = /*pan_speed*/ ctx[7];
1059				switch_instance.$set(switch_instance_changes);
1060			}
1061		},
1062		i(local) {
1063			if (current) return;
1064			if (switch_instance) transition_in$1(switch_instance.$$.fragment, local);
1065			current = true;
1066		},
1067		o(local) {
1068			if (switch_instance) transition_out$1(switch_instance.$$.fragment, local);
1069			current = false;
1070		},
1071		d(detaching) {
1072			if (detaching) {
1073				detach$1(switch_instance_anchor);
1074			}
1075
1076			if (switch_instance) destroy_component$1(switch_instance, detaching);
1077		}
1078	};
1079}
1080
1081// (67:1) <Upload   on:load={handle_upload}   {root}   filetype={[".stl", ".obj", ".gltf", ".glb", "model/obj", ".splat", ".ply"]}   bind:dragging  >
1082function create_default_slot$1(ctx) {
1083	let current;
1084	const default_slot_template = /*#slots*/ ctx[17].default;
1085	const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[20], null);
1086
1087	return {
1088		c() {
1089			if (default_slot) default_slot.c();
1090		},
1091		m(target, anchor) {
1092			if (default_slot) {
1093				default_slot.m(target, anchor);
1094			}
1095
1096			current = true;
1097		},
1098		p(ctx, dirty) {
1099			if (default_slot) {
1100				if (default_slot.p && (!current || dirty & /*$$scope*/ 1048576)) {
1101					update_slot_base(
1102						default_slot,
1103						default_slot_template,
1104						ctx,
1105						/*$$scope*/ ctx[20],
1106						!current
1107						? get_all_dirty_from_scope(/*$$scope*/ ctx[20])
1108						: get_slot_changes(default_slot_template, /*$$scope*/ ctx[20], dirty, null),
1109						null
1110					);
1111				}
1112			}
1113		},
1114		i(local) {
1115			if (current) return;
1116			transition_in$1(default_slot, local);
1117			current = true;
1118		},
1119		o(local) {
1120			transition_out$1(default_slot, local);
1121			current = false;
1122		},
1123		d(detaching) {
1124			if (default_slot) default_slot.d(detaching);
1125		}
1126	};
1127}
1128
1129function create_fragment$1(ctx) {
1130	let blocklabel;
1131	let t;
1132	let current_block_type_index;
1133	let if_block;
1134	let if_block_anchor;
1135	let current;
1136
1137	blocklabel = new BlockLabel({
1138			props: {
1139				show_label: /*show_label*/ ctx[3],
1140				Icon: File,
1141				label: /*label*/ ctx[2] || "3D Model"
1142			}
1143		});
1144
1145	const if_block_creators = [create_if_block$1, create_else_block$1];
1146	const if_blocks = [];
1147
1148	function select_block_type(ctx, dirty) {
1149		if (/*value*/ ctx[0] === null) return 0;
1150		return 1;
1151	}
1152
1153	current_block_type_index = select_block_type(ctx);
1154	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1155
1156	return {
1157		c() {
1158			create_component$1(blocklabel.$$.fragment);
1159			t = space$1();
1160			if_block.c();
1161			if_block_anchor = empty$1();
1162		},
1163		m(target, anchor) {
1164			mount_component$1(blocklabel, target, anchor);
1165			insert$1(target, t, anchor);
1166			if_blocks[current_block_type_index].m(target, anchor);
1167			insert$1(target, if_block_anchor, anchor);
1168			current = true;
1169		},
1170		p(ctx, [dirty]) {
1171			const blocklabel_changes = {};
1172			if (dirty & /*show_label*/ 8) blocklabel_changes.show_label = /*show_label*/ ctx[3];
1173			if (dirty & /*label*/ 4) blocklabel_changes.label = /*label*/ ctx[2] || "3D Model";
1174			blocklabel.$set(blocklabel_changes);
1175			let previous_block_index = current_block_type_index;
1176			current_block_type_index = select_block_type(ctx);
1177
1178			if (current_block_type_index === previous_block_index) {
1179				if_blocks[current_block_type_index].p(ctx, dirty);
1180			} else {
1181				group_outros$1();
1182
1183				transition_out$1(if_blocks[previous_block_index], 1, 1, () => {
1184					if_blocks[previous_block_index] = null;
1185				});
1186
1187				check_outros$1();
1188				if_block = if_blocks[current_block_type_index];
1189
1190				if (!if_block) {
1191					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1192					if_block.c();
1193				} else {
1194					if_block.p(ctx, dirty);
1195				}
1196
1197				transition_in$1(if_block, 1);
1198				if_block.m(if_block_anchor.parentNode, if_block_anchor);
1199			}
1200		},
1201		i(local) {
1202			if (current) return;
1203			transition_in$1(blocklabel.$$.fragment, local);
1204			transition_in$1(if_block);
1205			current = true;
1206		},
1207		o(local) {
1208			transition_out$1(blocklabel.$$.fragment, local);
1209			transition_out$1(if_block);
1210			current = false;
1211		},
1212		d(detaching) {
1213			if (detaching) {
1214				detach$1(t);
1215				detach$1(if_block_anchor);
1216			}
1217
1218			destroy_component$1(blocklabel, detaching);
1219			if_blocks[current_block_type_index].d(detaching);
1220		}
1221	};
1222}
1223
1224async function loadCanvas3D() {
1225	const module = await __vitePreload(() => import('./Canvas3D-632b16d7.js'),true?["./Canvas3D-632b16d7.js","./Index-7fdff9d2.js","./index-10ead756.js","./index-138adf03.css","./Index-b2fdba73.css","./file-url-6213a515.js"]:void 0,import.meta.url);
1226	return module.default;
1227}
1228
1229async function loadCanvas3DGS() {
1230	const module = await __vitePreload(() => import('./Canvas3DGS-7f155712.js'),true?["./Canvas3DGS-7f155712.js","./file-url-6213a515.js","./Index-7fdff9d2.js","./index-10ead756.js","./index-138adf03.css","./Index-b2fdba73.css"]:void 0,import.meta.url);
1231	return module.default;
1232}
1233
1234function instance$1($$self, $$props, $$invalidate) {
1235	let { $$slots: slots = {}, $$scope } = $$props;
1236	let { value } = $$props;
1237	let { clear_color = [0, 0, 0, 0] } = $$props;
1238	let { label = "" } = $$props;
1239	let { show_label } = $$props;
1240	let { root } = $$props;
1241	let { i18n } = $$props;
1242	let { zoom_speed = 1 } = $$props;
1243	let { pan_speed = 1 } = $$props;
1244	let { camera_position = [null, null, null] } = $$props;
1245
1246	async function handle_upload({ detail }) {
1247		$$invalidate(0, value = detail);
1248		await tick();
1249		dispatch("change", value);
1250		dispatch("load", value);
1251	}
1252
1253	async function handle_clear() {
1254		$$invalidate(0, value = null);
1255		await tick();
1256		dispatch("clear");
1257		dispatch("change");
1258	}
1259
1260	let use_3dgs = false;
1261	let Canvas3DGSComponent;
1262	let Canvas3DComponent;
1263	let canvas3d;
1264
1265	async function handle_undo() {
1266		canvas3d?.reset_camera_position(camera_position, zoom_speed, pan_speed);
1267	}
1268
1269	const dispatch = createEventDispatcher();
1270	let dragging = false;
1271
1272	function upload_dragging_binding(value) {
1273		dragging = value;
1274		$$invalidate(10, dragging);
1275	}
1276
1277	function switch_instance_binding($$value) {
1278		binding_callbacks[$$value ? 'unshift' : 'push'](() => {
1279			canvas3d = $$value;
1280			$$invalidate(13, canvas3d);
1281		});
1282	}
1283
1284	$$self.$$set = $$props => {
1285		if ('value' in $$props) $$invalidate(0, value = $$props.value);
1286		if ('clear_color' in $$props) $$invalidate(1, clear_color = $$props.clear_color);
1287		if ('label' in $$props) $$invalidate(2, label = $$props.label);
1288		if ('show_label' in $$props) $$invalidate(3, show_label = $$props.show_label);
1289		if ('root' in $$props) $$invalidate(4, root = $$props.root);
1290		if ('i18n' in $$props) $$invalidate(5, i18n = $$props.i18n);
1291		if ('zoom_speed' in $$props) $$invalidate(6, zoom_speed = $$props.zoom_speed);
1292		if ('pan_speed' in $$props) $$invalidate(7, pan_speed = $$props.pan_speed);
1293		if ('camera_position' in $$props) $$invalidate(8, camera_position = $$props.camera_position);
1294		if ('$$scope' in $$props) $$invalidate(20, $$scope = $$props.$$scope);
1295	};
1296
1297	$$self.$$.update = () => {
1298		if ($$self.$$.dirty & /*value, use_3dgs*/ 513) {
1299			if (value) {
1300				$$invalidate(9, use_3dgs = value.path.endsWith(".splat") || value.path.endsWith(".ply"));
1301
1302				if (use_3dgs) {
1303					loadCanvas3DGS().then(component => {
1304						$$invalidate(11, Canvas3DGSComponent = component);
1305					});
1306				} else {
1307					loadCanvas3D().then(component => {
1308						$$invalidate(12, Canvas3DComponent = component);
1309					});
1310				}
1311			}
1312		}
1313
1314		if ($$self.$$.dirty & /*dragging*/ 1024) {
1315			dispatch("drag", dragging);
1316		}
1317	};
1318
1319	return [
1320		value,
1321		clear_color,
1322		label,
1323		show_label,
1324		root,
1325		i18n,
1326		zoom_speed,
1327		pan_speed,
1328		camera_position,
1329		use_3dgs,
1330		dragging,
1331		Canvas3DGSComponent,
1332		Canvas3DComponent,
1333		canvas3d,
1334		handle_upload,
1335		handle_clear,
1336		handle_undo,
1337		slots,
1338		upload_dragging_binding,
1339		switch_instance_binding,
1340		$$scope
1341	];
1342}
1343
1344class Model3DUpload extends SvelteComponent$1 {
1345	constructor(options) {
1346		super();
1347
1348		init$1(this, options, instance$1, create_fragment$1, safe_not_equal$1, {
1349			value: 0,
1350			clear_color: 1,
1351			label: 2,
1352			show_label: 3,
1353			root: 4,
1354			i18n: 5,
1355			zoom_speed: 6,
1356			pan_speed: 7,
1357			camera_position: 8
1358		});
1359	}
1360}
1361
1362const Model3DUpload$1 = Model3DUpload;
1363
1364/* home/runner/work/gradio/gradio/js/model3D/Index.svelte generated by Svelte v4.2.2 */
1365const {
1366	SvelteComponent,
1367	assign,
1368	check_outros,
1369	create_component,
1370	destroy_component,
1371	detach,
1372	empty,
1373	get_spread_object,
1374	get_spread_update,
1375	group_outros,
1376	init,
1377	insert,
1378	mount_component,
1379	safe_not_equal,
1380	space,
1381	transition_in,
1382	transition_out
1383} = window.__gradio__svelte__internal;
1384function create_else_block_1(ctx) {
1385	let block;
1386	let current;
1387
1388	block = new Block({
1389			props: {
1390				visible: /*visible*/ ctx[3],
1391				variant: /*value*/ ctx[0] === null ? "dashed" : "solid",
1392				border_mode: /*dragging*/ ctx[17] ? "focus" : "base",
1393				padding: false,
1394				elem_id: /*elem_id*/ ctx[1],
1395				elem_classes: /*elem_classes*/ ctx[2],
1396				container: /*container*/ ctx[9],
1397				scale: /*scale*/ ctx[10],
1398				min_width: /*min_width*/ ctx[11],
1399				height: /*height*/ ctx[13],
1400				$$slots: { default: [create_default_slot_2] },
1401				$$scope: { ctx }
1402			}
1403		});
1404
1405	return {
1406		c() {
1407			create_component(block.$$.fragment);
1408		},
1409		m(target, anchor) {
1410			mount_component(block, target, anchor);
1411			current = true;
1412		},
1413		p(ctx, dirty) {
1414			const block_changes = {};
1415			if (dirty & /*visible*/ 8) block_changes.visible = /*visible*/ ctx[3];
1416			if (dirty & /*value*/ 1) block_changes.variant = /*value*/ ctx[0] === null ? "dashed" : "solid";
1417			if (dirty & /*dragging*/ 131072) block_changes.border_mode = /*dragging*/ ctx[17] ? "focus" : "base";
1418			if (dirty & /*elem_id*/ 2) block_changes.elem_id = /*elem_id*/ ctx[1];
1419			if (dirty & /*elem_classes*/ 4) block_changes.elem_classes = /*elem_classes*/ ctx[2];
1420			if (dirty & /*container*/ 512) block_changes.container = /*container*/ ctx[9];
1421			if (dirty & /*scale*/ 1024) block_changes.scale = /*scale*/ ctx[10];
1422			if (dirty & /*min_width*/ 2048) block_changes.min_width = /*min_width*/ ctx[11];
1423			if (dirty & /*height*/ 8192) block_changes.height = /*height*/ ctx[13];
1424
1425			if (dirty & /*$$scope, label, show_label, root, clear_color, value, camera_position, zoom_speed, gradio, dragging, loading_status*/ 8573425) {
1426				block_changes.$$scope = { dirty, ctx };
1427			}
1428
1429			block.$set(block_changes);
1430		},
1431		i(local) {
1432			if (current) return;
1433			transition_in(block.$$.fragment, local);
1434			current = true;
1435		},
1436		o(local) {
1437			transition_out(block.$$.fragment, local);
1438			current = false;
1439		},
1440		d(detaching) {
1441			destroy_component(block, detaching);
1442		}
1443	};
1444}
1445
1446// (36:0) {#if !interactive}
1447function create_if_block(ctx) {
1448	let block;
1449	let current;
1450
1451	block = new Block({
1452			props: {
1453				visible: /*visible*/ ctx[3],
1454				variant: /*value*/ ctx[0] === null ? "dashed" : "solid",
1455				border_mode: /*dragging*/ ctx[17] ? "focus" : "base",
1456				padding: false,
1457				elem_id: /*elem_id*/ ctx[1],
1458				elem_classes: /*elem_classes*/ ctx[2],
1459				container: /*container*/ ctx[9],
1460				scale: /*scale*/ ctx[10],
1461				min_width: /*min_width*/ ctx[11],
1462				height: /*height*/ ctx[13],
1463				$$slots: { default: [create_default_slot] },
1464				$$scope: { ctx }
1465			}
1466		});
1467
1468	return {
1469		c() {
1470			create_component(block.$$.fragment);
1471		},
1472		m(target, anchor) {
1473			mount_component(block, target, anchor);
1474			current = true;
1475		},
1476		p(ctx, dirty) {
1477			const block_changes = {};
1478			if (dirty & /*visible*/ 8) block_changes.visible = /*visible*/ ctx[3];
1479			if (dirty & /*value*/ 1) block_changes.variant = /*value*/ ctx[0] === null ? "dashed" : "solid";
1480			if (dirty & /*dragging*/ 131072) block_changes.border_mode = /*dragging*/ ctx[17] ? "focus" : "base";
1481			if (dirty & /*elem_id*/ 2) block_changes.elem_id = /*elem_id*/ ctx[1];
1482			if (dirty & /*elem_classes*/ 4) block_changes.elem_classes = /*elem_classes*/ ctx[2];
1483			if (dirty & /*container*/ 512) block_changes.container = /*container*/ ctx[9];
1484			if (dirty & /*scale*/ 1024) block_changes.scale = /*scale*/ ctx[10];
1485			if (dirty & /*min_width*/ 2048) block_changes.min_width = /*min_width*/ ctx[11];
1486			if (dirty & /*height*/ 8192) block_changes.height = /*height*/ ctx[13];
1487
1488			if (dirty & /*$$scope, value, gradio, clear_color, label, show_label, camera_position, zoom_speed, loading_status*/ 8442337) {
1489				block_changes.$$scope = { dirty, ctx };
1490			}
1491
1492			block.$set(block_changes);
1493		},
1494		i(local) {
1495			if (current) return;
1496			transition_in(block.$$.fragment, local);
1497			current = true;
1498		},
1499		o(local) {
1500			transition_out(block.$$.fragment, local);
1501			current = false;
1502		},
1503		d(detaching) {
1504			destroy_component(block, detaching);
1505		}
1506	};
1507}
1508
1509// (93:2) <Model3DUpload    {label}    {show_label}    {root}    {clear_color}    {value}    {camera_position}    {zoom_speed}    on:change={({ detail }) => (value = detail)}    on:drag={({ detail }) => (dragging = detail)}    on:change={({ detail }) => gradio.dispatch("change", detail)}    on:clear={() => {     value = null;     gradio.dispatch("clear");    }}    on:load={({ detail }) => {     value = detail;     gradio.dispatch("upload");    }}    i18n={gradio.i18n}   >
1510function create_default_slot_3(ctx) {
1511	let uploadtext;
1512	let current;
1513
1514	uploadtext = new UploadText({
1515			props: {
1516				i18n: /*gradio*/ ctx[12].i18n,
1517				type: "file"
1518			}
1519		});
1520
1521	return {
1522		c() {
1523			create_component(uploadtext.$$.fragment);
1524		},
1525		m(target, anchor) {
1526			mount_component(uploadtext, target, anchor);
1527			current = true;
1528		},
1529		p(ctx, dirty) {
1530			const uploadtext_changes = {};
1531			if (dirty & /*gradio*/ 4096) uploadtext_changes.i18n = /*gradio*/ ctx[12].i18n;
1532			uploadtext.$set(uploadtext_changes);
1533		},
1534		i(local) {
1535			if (current) return;
1536			transition_in(uploadtext.$$.fragment, local);
1537			current = true;
1538		},
1539		o(local) {
1540			transition_out(uploadtext.$$.fragment, local);
1541			current = false;
1542		},
1543		d(detaching) {
1544			destroy_component(uploadtext, detaching);
1545		}
1546	};
1547}
1548
1549// (75:1) <Block   {visible}   variant={value === null ? "dashed" : "solid"}   border_mode={dragging ? "focus" : "base"}   padding={false}   {elem_id}   {elem_classes}   {container}   {scale}   {min_width}   {height}  >
1550function create_default_slot_2(ctx) {
1551	let statustracker;
1552	let t;
1553	let model3dupload;
1554	let current;
1555
1556	const statustracker_spread_levels = [
1557		{
1558			autoscroll: /*gradio*/ ctx[12].autoscroll
1559		},
1560		{ i18n: /*gradio*/ ctx[12].i18n },
1561		/*loading_status*/ ctx[6]
1562	];
1563
1564	let statustracker_props = {};
1565
1566	for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
1567		statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
1568	}
1569
1570	statustracker = new Static({ props: statustracker_props });
1571
1572	model3dupload = new Model3DUpload$1({
1573			props: {
1574				label: /*label*/ ctx[7],
1575				show_label: /*show_label*/ ctx[8],
1576				root: /*root*/ ctx[4],
1577				clear_color: /*clear_color*/ ctx[5],
1578				value: /*value*/ ctx[0],
1579				camera_position: /*camera_position*/ ctx[15],
1580				zoom_speed: /*zoom_speed*/ ctx[14],
1581				i18n: /*gradio*/ ctx[12].i18n,
1582				$$slots: { default: [create_default_slot_3] },
1583				$$scope: { ctx }
1584			}
1585		});
1586
1587	model3dupload.$on("change", /*change_handler*/ ctx[18]);
1588	model3dupload.$on("drag", /*drag_handler*/ ctx[19]);
1589	model3dupload.$on("change", /*change_handler_1*/ ctx[20]);
1590	model3dupload.$on("clear", /*clear_handler*/ ctx[21]);
1591	model3dupload.$on("load", /*load_handler*/ ctx[22]);
1592
1593	return {
1594		c() {
1595			create_component(statustracker.$$.fragment);
1596			t = space();
1597			create_component(model3dupload.$$.fragment);
1598		},
1599		m(target, anchor) {
1600			mount_component(statustracker, target, anchor);
1601			insert(target, t, anchor);
1602			mount_component(model3dupload, target, anchor);
1603			current = true;
1604		},
1605		p(ctx, dirty) {
1606			const statustracker_changes = (dirty & /*gradio, loading_status*/ 4160)
1607			? get_spread_update(statustracker_spread_levels, [
1608					dirty & /*gradio*/ 4096 && {
1609						autoscroll: /*gradio*/ ctx[12].autoscroll
1610					},
1611					dirty & /*gradio*/ 4096 && { i18n: /*gradio*/ ctx[12].i18n },
1612					dirty & /*loading_status*/ 64 && get_spread_object(/*loading_status*/ ctx[6])
1613				])
1614			: {};
1615
1616			statustracker.$set(statustracker_changes);
1617			const model3dupload_changes = {};
1618			if (dirty & /*label*/ 128) model3dupload_changes.label = /*label*/ ctx[7];
1619			if (dirty & /*show_label*/ 256) model3dupload_changes.show_label = /*show_label*/ ctx[8];
1620			if (dirty & /*root*/ 16) model3dupload_changes.root = /*root*/ ctx[4];
1621			if (dirty & /*clear_color*/ 32) model3dupload_changes.clear_color = /*clear_color*/ ctx[5];
1622			if (dirty & /*value*/ 1) model3dupload_changes.value = /*value*/ ctx[0];
1623			if (dirty & /*camera_position*/ 32768) model3dupload_changes.camera_position = /*camera_position*/ ctx[15];
1624			if (dirty & /*zoom_speed*/ 16384) model3dupload_changes.zoom_speed = /*zoom_speed*/ ctx[14];
1625			if (dirty & /*gradio*/ 4096) model3dupload_changes.i18n = /*gradio*/ ctx[12].i18n;
1626
1627			if (dirty & /*$$scope, gradio*/ 8392704) {
1628				model3dupload_changes.$$scope = { dirty, ctx };
1629			}
1630
1631			model3dupload.$set(model3dupload_changes);
1632		},
1633		i(local) {
1634			if (current) return;
1635			transition_in(statustracker.$$.fragment, local);
1636			transition_in(model3dupload.$$.fragment, local);
1637			current = true;
1638		},
1639		o(local) {
1640			transition_out(statustracker.$$.fragment, local);
1641			transition_out(model3dupload.$$.fragment, local);
1642			current = false;
1643		},
1644		d(detaching) {
1645			if (detaching) {
1646				detach(t);
1647			}
1648
1649			destroy_component(statustracker, detaching);
1650			destroy_component(model3dupload, detaching);
1651		}
1652	};
1653}
1654
1655// (65:2) {:else}
1656function create_else_block(ctx) {
1657	let blocklabel;
1658	let t;
1659	let empty_1;
1660	let current;
1661
1662	blocklabel = new BlockLabel({
1663			props: {
1664				show_label: /*show_label*/ ctx[8],
1665				Icon: File,
1666				label: /*label*/ ctx[7] || "3D Model"
1667			}
1668		});
1669
1670	empty_1 = new Empty({
1671			props: {
1672				unpadded_box: true,
1673				size: "large",
1674				$$slots: { default: [create_default_slot_1] },
1675				$$scope: { ctx }
1676			}
1677		});
1678
1679	return {
1680		c() {
1681			create_component(blocklabel.$$.fragment);
1682			t = space();
1683			create_component(empty_1.$$.fragment);
1684		},
1685		m(target, anchor) {
1686			mount_component(blocklabel, target, anchor);
1687			insert(target, t, anchor);
1688			mount_component(empty_1, target, anchor);
1689			current = true;
1690		},
1691		p(ctx, dirty) {
1692			const blocklabel_changes = {};
1693			if (dirty & /*show_label*/ 256) blocklabel_changes.show_label = /*show_label*/ ctx[8];
1694			if (dirty & /*label*/ 128) blocklabel_changes.label = /*label*/ ctx[7] || "3D Model";
1695			blocklabel.$set(blocklabel_changes);
1696			const empty_1_changes = {};
1697
1698			if (dirty & /*$$scope*/ 8388608) {
1699				empty_1_changes.$$scope = { dirty, ctx };
1700			}
1701
1702			empty_1.$set(empty_1_changes);
1703		},
1704		i(local) {
1705			if (current) return;
1706			transition_in(blocklabel.$$.fragment, local);
1707			transition_in(empty_1.$$.fragment, local);
1708			current = true;
1709		},
1710		o(local) {
1711			transition_out(blocklabel.$$.fragment, local);
1712			transition_out(empty_1.$$.fragment, local);
1713			current = false;
1714		},
1715		d(detaching) {
1716			if (detaching) {
1717				detach(t);
1718			}
1719
1720			destroy_component(blocklabel, detaching);
1721			destroy_component(empty_1, detaching);
1722		}
1723	};
1724}
1725
1726// (55:2) {#if value}
1727function create_if_block_1(ctx) {
1728	let model3d;
1729	let current;
1730
1731	model3d = new Model3D$1({
1732			props: {
1733				value: /*value*/ ctx[0],
1734				i18n: /*gradio*/ ctx[12].i18n,
1735				clear_color: /*clear_color*/ ctx[5],
1736				label: /*label*/ ctx[7],
1737				show_label: /*show_label*/ ctx[8],
1738				camera_position: /*camera_position*/ ctx[15],
1739				zoom_speed: /*zoom_speed*/ ctx[14]
1740			}
1741		});
1742
1743	return {
1744		c() {
1745			create_component(model3d.$$.fragment);
1746		},
1747		m(target, anchor) {
1748			mount_component(model3d, target, anchor);
1749			current = true;
1750		},
1751		p(ctx, dirty) {
1752			const model3d_changes = {};
1753			if (dirty & /*value*/ 1) model3d_changes.value = /*value*/ ctx[0];
1754			if (dirty & /*gradio*/ 4096) model3d_changes.i18n = /*gradio*/ ctx[12].i18n;
1755			if (dirty & /*clear_color*/ 32) model3d_changes.clear_color = /*clear_color*/ ctx[5];
1756			if (dirty & /*label*/ 128) model3d_changes.label = /*label*/ ctx[7];
1757			if (dirty & /*show_label*/ 256) model3d_changes.show_label = /*show_label*/ ctx[8];
1758			if (dirty & /*camera_position*/ 32768) model3d_changes.camera_position = /*camera_position*/ ctx[15];
1759			if (dirty & /*zoom_speed*/ 16384) model3d_changes.zoom_speed = /*zoom_speed*/ ctx[14];
1760			model3d.$set(model3d_changes);
1761		},
1762		i(local) {
1763			if (current) return;
1764			transition_in(model3d.$$.fragment, local);
1765			current = true;
1766		},
1767		o(local) {
1768			transition_out(model3d.$$.fragment, local);
1769			current = false;
1770		},
1771		d(detaching) {
1772			destroy_component(model3d, detaching);
1773		}
1774	};
1775}
1776
1777// (71:3) <Empty unpadded_box={true} size="large">
1778function create_default_slot_1(ctx) {
1779	let file;
1780	let current;
1781	file = new File({});
1782
1783	return {
1784		c() {
1785			create_component(file.$$.fragment);
1786		},
1787		m(target, anchor) {
1788			mount_component(file, target, anchor);
1789			current = true;
1790		},
1791		i(local) {
1792			if (current) return;
1793			transition_in(file.$$.fragment, local);
1794			current = true;
1795		},
1796		o(local) {
1797			transition_out(file.$$.fragment, local);
1798			current = false;
1799		},
1800		d(detaching) {
1801			destroy_component(file, detaching);
1802		}
1803	};
1804}
1805
1806// (37:1) <Block   {visible}   variant={value === null ? "dashed" : "solid"}   border_mode={dragging ? "focus" : "base"}   padding={false}   {elem_id}   {elem_classes}   {container}   {scale}   {min_width}   {height}  >
1807function create_default_slot(ctx) {
1808	let statustracker;
1809	let t;
1810	let current_block_type_index;
1811	let if_block;
1812	let if_block_anchor;
1813	let current;
1814
1815	const statustracker_spread_levels = [
1816		{
1817			autoscroll: /*gradio*/ ctx[12].autoscroll
1818		},
1819		{ i18n: /*gradio*/ ctx[12].i18n },
1820		/*loading_status*/ ctx[6]
1821	];
1822
1823	let statustracker_props = {};
1824
1825	for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
1826		statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
1827	}
1828
1829	statustracker = new Static({ props: statustracker_props });
1830	const if_block_creators = [create_if_block_1, create_else_block];
1831	const if_blocks = [];
1832
1833	function select_block_type_1(ctx, dirty) {
1834		if (/*value*/ ctx[0]) return 0;
1835		return 1;
1836	}
1837
1838	current_block_type_index = select_block_type_1(ctx);
1839	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1840
1841	return {
1842		c() {
1843			create_component(statustracker.$$.fragment);
1844			t = space();
1845			if_block.c();
1846			if_block_anchor = empty();
1847		},
1848		m(target, anchor) {
1849			mount_component(statustracker, target, anchor);
1850			insert(target, t, anchor);
1851			if_blocks[current_block_type_index].m(target, anchor);
1852			insert(target, if_block_anchor, anchor);
1853			current = true;
1854		},
1855		p(ctx, dirty) {
1856			const statustracker_changes = (dirty & /*gradio, loading_status*/ 4160)
1857			? get_spread_update(statustracker_spread_levels, [
1858					dirty & /*gradio*/ 4096 && {
1859						autoscroll: /*gradio*/ ctx[12].autoscroll
1860					},
1861					dirty & /*gradio*/ 4096 && { i18n: /*gradio*/ ctx[12].i18n },
1862					dirty & /*loading_status*/ 64 && get_spread_object(/*loading_status*/ ctx[6])
1863				])
1864			: {};
1865
1866			statustracker.$set(statustracker_changes);
1867			let previous_block_index = current_block_type_index;
1868			current_block_type_index = select_block_type_1(ctx);
1869
1870			if (current_block_type_index === previous_block_index) {
1871				if_blocks[current_block_type_index].p(ctx, dirty);
1872			} else {
1873				group_outros();
1874
1875				transition_out(if_blocks[previous_block_index], 1, 1, () => {
1876					if_blocks[previous_block_index] = null;
1877				});
1878
1879				check_outros();
1880				if_block = if_blocks[current_block_type_index];
1881
1882				if (!if_block) {
1883					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1884					if_block.c();
1885				} else {
1886					if_block.p(ctx, dirty);
1887				}
1888
1889				transition_in(if_block, 1);
1890				if_block.m(if_block_anchor.parentNode, if_block_anchor);
1891			}
1892		},
1893		i(local) {
1894			if (current) return;
1895			transition_in(statustracker.$$.fragment, local);
1896			transition_in(if_block);
1897			current = true;
1898		},
1899		o(local) {
1900			transition_out(statustracker.$$.fragment, local);
1901			transition_out(if_block);
1902			current = false;
1903		},
1904		d(detaching) {
1905			if (detaching) {
1906				detach(t);
1907				detach(if_block_anchor);
1908			}
1909
1910			destroy_component(statustracker, detaching);
1911			if_blocks[current_block_type_index].d(detaching);
1912		}
1913	};
1914}
1915
1916function create_fragment(ctx) {
1917	let current_block_type_index;
1918	let if_block;
1919	let if_block_anchor;
1920	let current;
1921	const if_block_creators = [create_if_block, create_else_block_1];
1922	const if_blocks = [];
1923
1924	function select_block_type(ctx, dirty) {
1925		if (!/*interactive*/ ctx[16]) return 0;
1926		return 1;
1927	}
1928
1929	current_block_type_index = select_block_type(ctx);
1930	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1931
1932	return {
1933		c() {
1934			if_block.c();
1935			if_block_anchor = empty();
1936		},
1937		m(target, anchor) {
1938			if_blocks[current_block_type_index].m(target, anchor);
1939			insert(target, if_block_anchor, anchor);
1940			current = true;
1941		},
1942		p(ctx, [dirty]) {
1943			let previous_block_index = current_block_type_index;
1944			current_block_type_index = select_block_type(ctx);
1945
1946			if (current_block_type_index === previous_block_index) {
1947				if_blocks[current_block_type_index].p(ctx, dirty);
1948			} else {
1949				group_outros();
1950
1951				transition_out(if_blocks[previous_block_index], 1, 1, () => {
1952					if_blocks[previous_block_index] = null;
1953				});
1954
1955				check_outros();
1956				if_block = if_blocks[current_block_type_index];
1957
1958				if (!if_block) {
1959					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1960					if_block.c();
1961				} else {
1962					if_block.p(ctx, dirty);
1963				}
1964
1965				transition_in(if_block, 1);
1966				if_block.m(if_block_anchor.parentNode, if_block_anchor);
1967			}
1968		},
1969		i(local) {
1970			if (current) return;
1971			transition_in(if_block);
1972			current = true;
1973		},
1974		o(local) {
1975			transition_out(if_block);
1976			current = false;
1977		},
1978		d(detaching) {
1979			if (detaching) {
1980				detach(if_block_anchor);
1981			}
1982
1983			if_blocks[current_block_type_index].d(detaching);
1984		}
1985	};
1986}
1987
1988function instance($$self, $$props, $$invalidate) {
1989	let { elem_id = "" } = $$props;
1990	let { elem_classes = [] } = $$props;
1991	let { visible = true } = $$props;
1992	let { value = null } = $$props;
1993	let { root } = $$props;
1994	let { clear_color } = $$props;
1995	let { loading_status } = $$props;
1996	let { label } = $$props;
1997	let { show_label } = $$props;
1998	let { container = true } = $$props;
1999	let { scale = null } = $$props;
2000	let { min_width = undefined } = $$props;
2001	let { gradio } = $$props;
2002	let { height = undefined } = $$props;
2003	let { zoom_speed = 1 } = $$props;
2004	let { camera_position = [null, null, null] } = $$props;
2005	let { interactive } = $$props;
2006	let dragging = false;
2007	const change_handler = ({ detail }) =>
2007 $$invalidate(0, value = detail);
2008	const drag_handler = ({ detail }) => $$invalidate(17, dragging = detail);
2009	const change_handler_1 = ({ detail }) => gradio.dispatch("change", detail);
2010
2011	const clear_handler = () => {
2012		$$invalidate(0, value = null);
2013		gradio.dispatch("clear");
2014	};
2015
2016	const load_handler = ({ detail }) => {
2017		$$invalidate(0, value = detail);
2018		gradio.dispatch("upload");
2019	};
2020
2021	$$self.$$set = $$props => {
2022		if ('elem_id' in $$props) $$invalidate(1, elem_id = $$props.elem_id);
2023		if ('elem_classes' in $$props) $$invalidate(2, elem_classes = $$props.elem_classes);
2024		if ('visible' in $$props) $$invalidate(3, visible = $$props.visible);
2025		if ('value' in $$props) $$invalidate(0, value = $$props.value);
2026		if ('root' in $$props) $$invalidate(4, root = $$props.root);
2027		if ('clear_color' in $$props) $$invalidate(5, clear_color = $$props.clear_color);
2028		if ('loading_status' in $$props) $$invalidate(6, loading_status = $$props.loading_status);
2029		if ('label' in $$props) $$invalidate(7, label = $$props.label);
2030		if ('show_label' in $$props) $$invalidate(8, show_label = $$props.show_label);
2031		if ('container' in $$props) $$invalidate(9, container = $$props.container);
2032		if ('scale' in $$props) $$invalidate(10, scale = $$props.scale);
2033		if ('min_width' in $$props) $$invalidate(11, min_width = $$props.min_width);
2034		if ('gradio' in $$props) $$invalidate(12, gradio = $$props.gradio);
2035		if ('height' in $$props) $$invalidate(13, height = $$props.height);
2036		if ('zoom_speed' in $$props) $$invalidate(14, zoom_speed = $$props.zoom_speed);
2037		if ('camera_position' in $$props) $$invalidate(15, camera_position = $$props.camera_position);
2038		if ('interactive' in $$props) $$invalidate(16, interactive = $$props.interactive);
2039	};
2040
2041	return [
2042		value,
2043		elem_id,
2044		elem_classes,
2045		visible,
2046		root,
2047		clear_color,
2048		loading_status,
2049		label,
2050		show_label,
2051		container,
2052		scale,
2053		min_width,
2054		gradio,
2055		height,
2056		zoom_speed,
2057		camera_position,
2058		interactive,
2059		dragging,
2060		change_handler,
2061		drag_handler,
2062		change_handler_1,
2063		clear_handler,
2064		load_handler
2065	];
2066}
2067
2068class Index extends SvelteComponent {
2069	constructor(options) {
2070		super();
2071
2072		init(this, options, instance, create_fragment, safe_not_equal, {
2073			elem_id: 1,
2074			elem_classes: 2,
2075			visible: 3,
2076			value: 0,
2077			root: 4,
2078			clear_color: 5,
2079			loading_status: 6,
2080			label: 7,
2081			show_label: 8,
2082			container: 9,
2083			scale: 10,
2084			min_width: 11,
2085			gradio: 12,
2086			height: 13,
2087			zoom_speed: 14,
2088			camera_position: 15,
2089			interactive: 16
2090		});
2091	}
2092}
2093
2094export { Model3D$1 as BaseModel3D, Model3DUpload$1 as BaseModel3DUpload, Index as default };
2095//# sourceMappingURL=Index-948831e5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.