PageSourceSearch

https://jonjimenez-career-suggestion.hf.space/assets/Index-f6c46d05.js

js jonjimenez-career-suggestion.hf.space collected 2026-10-03 10:22:45 UTC 40,328 bytes, 1,739 lines download raw bytes

1import { f as fade, B as Block } from './Button-05bf7cea.js';
2import { C as Check } from './Check-1d114215.js';
3import { C as Copy } from './Copy-ea46e0bf.js';
4import { S as Static } from './Index-2cec2c56.js';
5import { E as Empty } from './Empty-2eeff83e.js';
6import { B as BlockLabel } from './BlockLabel-09bb0248.js';
7import './index-5550136d.js';
8import './svelte/svelte.js';
9
10/* home/runner/work/gradio/gradio/js/icons/src/JSON.svelte generated by Svelte v4.2.2 */
11const {
12	SvelteComponent: SvelteComponent$3,
13	append: append$1,
14	attr: attr$2,
15	detach: detach$3,
16	init: init$3,
17	insert: insert$3,
18	noop: noop$1,
19	safe_not_equal: safe_not_equal$3,
20	svg_element
21} = window.__gradio__svelte__internal;
22function create_fragment$3(ctx) {
23	let svg;
24	let path;
25
26	return {
27		c() {
28			svg = svg_element("svg");
29			path = svg_element("path");
30			attr$2(path, "fill", "currentColor");
31			attr$2(path, "d", "M5 3h2v2H5v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2 2 0 0 0-2-2H0v-2h1a2 2 0 0 0 2-2V5a2 2 0 0 1 2-2m14 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2a2 2 0 0 1-2-2V5h-2V3h2m-7 12a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m8 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1Z");
32			attr$2(svg, "xmlns", "http://www.w3.org/2000/svg");
33			attr$2(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
34			attr$2(svg, "aria-hidden", "true");
35			attr$2(svg, "role", "img");
36			attr$2(svg, "class", "iconify iconify--mdi");
37			attr$2(svg, "width", "100%");
38			attr$2(svg, "height", "100%");
39			attr$2(svg, "preserveAspectRatio", "xMidYMid meet");
40			attr$2(svg, "viewBox", "0 0 24 24");
41		},
42		m(target, anchor) {
43			insert$3(target, svg, anchor);
44			append$1(svg, path);
45		},
46		p: noop$1,
47		i: noop$1,
48		o: noop$1,
49		d(detaching) {
50			if (detaching) {
51				detach$3(svg);
52			}
53		}
54	};
55}
56
57let JSON$2 = class JSON extends SvelteComponent$3 {
58	constructor(options) {
59		super();
60		init$3(this, options, null, create_fragment$3, safe_not_equal$3, {});
61	}
62};
63
64const JSONNode_svelte_svelte_type_style_lang = '';
65
66/* home/runner/work/gradio/gradio/js/json/shared/JSONNode.svelte generated by Svelte v4.2.2 */
67const {
68	SvelteComponent: SvelteComponent$2,
69	append,
70	attr: attr$1,
71	check_outros: check_outros$2,
72	create_component: create_component$2,
73	destroy_component: destroy_component$2,
74	destroy_each,
75	detach: detach$2,
76	element: element$1,
77	empty: empty$1,
78	ensure_array_like,
79	group_outros: group_outros$2,
80	init: init$2,
81	insert: insert$2,
82	listen: listen$1,
83	mount_component: mount_component$2,
84	noop,
85	safe_not_equal: safe_not_equal$2,
86	set_data,
87	space: space$2,
88	text,
89	toggle_class,
90	transition_in: transition_in$2,
91	transition_out: transition_out$2
92} = window.__gradio__svelte__internal;
93function get_each_context_1(ctx, list, i) {
94	const child_ctx = ctx.slice();
95	child_ctx[5] = list[i];
96	child_ctx[7] = i;
97	return child_ctx;
98}
99
100function get_each_context(ctx, list, i) {
101	const child_ctx = ctx.slice();
102	child_ctx[5] = list[i];
103	child_ctx[7] = i;
104	return child_ctx;
105}
106
107// (72:1) {:else}
108function create_else_block_2(ctx) {
109	let div;
110	let t;
111
112	return {
113		c() {
114			div = element$1("div");
115			t = text(/*value*/ ctx[1]);
116			attr$1(div, "class", "json-item svelte-1kspdo");
117		},
118		m(target, anchor) {
119			insert$2(target, div, anchor);
120			append(div, t);
121		},
122		p(ctx, dirty) {
123			if (dirty & /*value*/ 2) set_data(t, /*value*/ ctx[1]);
124		},
125		i: noop,
126		o: noop,
127		d(detaching) {
128			if (detaching) {
129				detach$2(div);
130			}
131		}
132	};
133}
134
135// (68:37) 
136function create_if_block_9(ctx) {
137	let div;
138	let t;
139
140	return {
141		c() {
142			div = element$1("div");
143			t = text(/*value*/ ctx[1]);
144			attr$1(div, "class", "json-item number svelte-1kspdo");
145		},
146		m(target, anchor) {
147			insert$2(target, div, anchor);
148			append(div, t);
149		},
150		p(ctx, dirty) {
151			if (dirty & /*value*/ 2) set_data(t, /*value*/ ctx[1]);
152		},
153		i: noop,
154		o: noop,
155		d(detaching) {
156			if (detaching) {
157				detach$2(div);
158			}
159		}
160	};
161}
162
163// (64:38) 
164function create_if_block_8(ctx) {
165	let div;
166	let t_value = /*value*/ ctx[1].toLocaleString() + "";
167	let t;
168
169	return {
170		c() {
171			div = element$1("div");
172			t = text(t_value);
173			attr$1(div, "class", "json-item bool svelte-1kspdo");
174		},
175		m(target, anchor) {
176			insert$2(target, div, anchor);
177			append(div, t);
178		},
179		p(ctx, dirty) {
180			if (dirty & /*value*/ 2 && t_value !== (t_value = /*value*/ ctx[1].toLocaleString() + "")) set_data(t, t_value);
181		},
182		i: noop,
183		o: noop,
184		d(detaching) {
185			if (detaching) {
186				detach$2(div);
187			}
188		}
189	};
190}
191
192// (60:37) 
193function create_if_block_7(ctx) {
194	let div;
195	let t0;
196	let t1;
197	let t2;
198
199	return {
200		c() {
201			div = element$1("div");
202			t0 = text("\"");
203			t1 = text(/*value*/ ctx[1]);
204			t2 = text("\"");
205			attr$1(div, "class", "json-item string svelte-1kspdo");
206		},
207		m(target, anchor) {
208			insert$2(target, div, anchor);
209			append(div, t0);
210			append(div, t1);
211			append(div, t2);
212		},
213		p(ctx, dirty) {
214			if (dirty & /*value*/ 2) set_data(t1, /*value*/ ctx[1]);
215		},
216		i: noop,
217		o: noop,
218		d(detaching) {
219			if (detaching) {
220				detach$2(div);
221			}
222		}
223	};
224}
225
226// (58:26) 
227function create_if_block_6(ctx) {
228	let div;
229
230	return {
231		c() {
232			div = element$1("div");
233			div.textContent = "null";
234			attr$1(div, "class", "json-item null svelte-1kspdo");
235		},
236		m(target, anchor) {
237			insert$2(target, div, anchor);
238		},
239		p: noop,
240		i: noop,
241		o: noop,
242		d(detaching) {
243			if (detaching) {
244				detach$2(div);
245			}
246		}
247	};
248}
249
250// (31:35) 
251function create_if_block_3(ctx) {
252	let current_block_type_index;
253	let if_block;
254	let if_block_anchor;
255	let current;
256	const if_block_creators = [create_if_block_4, create_else_block_1$1];
257	const if_blocks = [];
258
259	function select_block_type_2(ctx, dirty) {
260		if (/*collapsed*/ ctx[0]) return 0;
261		return 1;
262	}
263
264	current_block_type_index = select_block_type_2(ctx);
265	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
266
267	return {
268		c() {
269			if_block.c();
270			if_block_anchor = empty$1();
271		},
272		m(target, anchor) {
273			if_blocks[current_block_type_index].m(target, anchor);
274			insert$2(target, if_block_anchor, anchor);
275			current = true;
276		},
277		p(ctx, dirty) {
278			let previous_block_index = current_block_type_index;
279			current_block_type_index = select_block_type_2(ctx);
280
281			if (current_block_type_index === previous_block_index) {
282				if_blocks[current_block_type_index].p(ctx, dirty);
283			} else {
284				group_outros$2();
285
286				transition_out$2(if_blocks[previous_block_index], 1, 1, () => {
287					if_blocks[previous_block_index] = null;
288				});
289
290				check_outros$2();
291				if_block = if_blocks[current_block_type_index];
292
293				if (!if_block) {
294					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
295					if_block.c();
296				} else {
297					if_block.p(ctx, dirty);
298				}
299
300				transition_in$2(if_block, 1);
301				if_block.m(if_block_anchor.parentNode, if_block_anchor);
302			}
303		},
304		i(local) {
305			if (current) return;
306			transition_in$2(if_block);
307			current = true;
308		},
309		o(local) {
310			transition_out$2(if_block);
311			current = false;
312		},
313		d(detaching) {
314			if (detaching) {
315				detach$2(if_block_anchor);
316			}
317
318			if_blocks[current_block_type_index].d(detaching);
319		}
320	};
321}
322
323// (8:1) {#if value instanceof Array}
324function create_if_block$2(ctx) {
325	let current_block_type_index;
326	let if_block;
327	let if_block_anchor;
328	let current;
329	const if_block_creators = [create_if_block_1$1, create_else_block$1];
330	const if_blocks = [];
331
332	function select_block_type_1(ctx, dirty) {
333		if (/*collapsed*/ ctx[0]) return 0;
334		return 1;
335	}
336
337	current_block_type_index = select_block_type_1(ctx);
338	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
339
340	return {
341		c() {
342			if_block.c();
343			if_block_anchor = empty$1();
344		},
345		m(target, anchor) {
346			if_blocks[current_block_type_index].m(target, anchor);
347			insert$2(target, if_block_anchor, anchor);
348			current = true;
349		},
350		p(ctx, dirty) {
351			let previous_block_index = current_block_type_index;
352			current_block_type_index = select_block_type_1(ctx);
353
354			if (current_block_type_index === previous_block_index) {
355				if_blocks[current_block_type_index].p(ctx, dirty);
356			} else {
357				group_outros$2();
358
359				transition_out$2(if_blocks[previous_block_index], 1, 1, () => {
360					if_blocks[previous_block_index] = null;
361				});
362
363				check_outros$2();
364				if_block = if_blocks[current_block_type_index];
365
366				if (!if_block) {
367					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
368					if_block.c();
369				} else {
370					if_block.p(ctx, dirty);
371				}
372
373				transition_in$2(if_block, 1);
374				if_block.m(if_block_anchor.parentNode, if_block_anchor);
375			}
376		},
377		i(local) {
378			if (current) return;
379			transition_in$2(if_block);
380			current = true;
381		},
382		o(local) {
383			transition_out$2(if_block);
384			current = false;
385		},
386		d(detaching) {
387			if (detaching) {
388				detach$2(if_block_anchor);
389			}
390
391			if_blocks[current_block_type_index].d(detaching);
392		}
393	};
394}
395
396// (40:2) {:else}
397function create_else_block_1$1(ctx) {
398	let t0;
399	let div;
400	let t1;
401	let current;
402	let each_value_1 = ensure_array_like(Object.entries(/*value*/ ctx[1]));
403	let each_blocks = [];
404
405	for (let i = 0; i < each_value_1.length; i += 1) {
406		each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
407	}
408
409	const out = i => transition_out$2(each_blocks[i], 1, 1, () => {
410		each_blocks[i] = null;
411	});
412
413	return {
414		c() {
415			t0 = text("{\n\t\t\t");
416			div = element$1("div");
417
418			for (let i = 0; i < each_blocks.length; i += 1) {
419				each_blocks[i].c();
420			}
421
422			t1 = text("\n\t\t\t}");
423			attr$1(div, "class", "children svelte-1kspdo");
424		},
425		m(target, anchor) {
426			insert$2(target, t0, anchor);
427			insert$2(target, div, anchor);
428
429			for (let i = 0; i < each_blocks.length; i += 1) {
430				if (each_blocks[i]) {
431					each_blocks[i].m(div, null);
432				}
433			}
434
435			insert$2(target, t1, anchor);
436			current = true;
437		},
438		p(ctx, dirty) {
439			if (dirty & /*Object, value, depth*/ 6) {
440				each_value_1 = ensure_array_like(Object.entries(/*value*/ ctx[1]));
441				let i;
442
443				for (i = 0; i < each_value_1.length; i += 1) {
444					const child_ctx = get_each_context_1(ctx, each_value_1, i);
445
446					if (each_blocks[i]) {
447						each_blocks[i].p(child_ctx, dirty);
448						transition_in$2(each_blocks[i], 1);
449					} else {
450						each_blocks[i] = create_each_block_1(child_ctx);
451						each_blocks[i].c();
452						transition_in$2(each_blocks[i], 1);
453						each_blocks[i].m(div, null);
454					}
455				}
456
457				group_outros$2();
458
459				for (i = each_value_1.length; i < each_blocks.length; i += 1) {
460					out(i);
461				}
462
463				check_outros$2();
464			}
465		},
466		i(local) {
467			if (current) return;
468
469			for (let i = 0; i < each_value_1.length; i += 1) {
470				transition_in$2(each_blocks[i]);
471			}
472
473			current = true;
474		},
475		o(local) {
476			each_blocks = each_blocks.filter(Boolean);
477
478			for (let i = 0; i < each_blocks.length; i += 1) {
479				transition_out$2(each_blocks[i]);
480			}
481
482			current = false;
483		},
484		d(detaching) {
485			if (detaching) {
486				detach$2(t0);
487				detach$2(div);
488				detach$2(t1);
489			}
490
491			destroy_each(each_blocks, detaching);
492		}
493	};
494}
495
496// (32:2) {#if collapsed}
497function create_if_block_4(ctx) {
498	let button;
499	let t0;
500	let t1_value = Object.keys(/*value*/ ctx[1]).length + "";
501	let t1;
502	let t2;
503	let mounted;
504	let dispose;
505
506	return {
507		c() {
508			button = element$1("button");
509			t0 = text("{+");
510			t1 = text(t1_value);
511			t2 = text(" items}");
512		},
513		m(target, anchor) {
514			insert$2(target, button, anchor);
515			append(button, t0);
516			append(button, t1);
517			append(button, t2);
518
519			if (!mounted) {
520				dispose = listen$1(button, "click", /*click_handler_1*/ ctx[4]);
521				mounted = true;
522			}
523		},
524		p(ctx, dirty) {
525			if (dirty & /*value*/ 2 && t1_value !== (t1_value = Object.keys(/*value*/ ctx[1]).length + "")) set_data(t1, t1_value);
526		},
527		i: noop,
528		o: noop,
529		d(detaching) {
530			if (detaching) {
531				detach$2(button);
532			}
533
534			mounted = false;
535			dispose();
536		}
537	};
538}
539
540// (50:5) {#if i !== Object.keys(value).length - 1}
541function create_if_block_5(ctx) {
542	let t;
543
544	return {
545		c() {
546			t = text(",");
547		},
548		m(target, anchor) {
549			insert$2(target, t, anchor);
550		},
551		d(detaching) {
552			if (detaching) {
553				detach$2(t);
554			}
555		}
556	};
557}
558
559// (43:4) {#each Object.entries(value) as node, i}
560function create_each_block_1(ctx) {
561	let div;
562	let t0_value = /*node*/ ctx[5][0] + "";
563	let t0;
564	let t1;
565	let jsonnode;
566	let show_if = /*i*/ ctx[7] !== Object.keys(/*value*/ ctx[1]).length - 1;
567	let t2;
568	let current;
569
570	jsonnode = new JSONNode({
571			props: {
572				value: /*node*/ ctx[5][1],
573				depth: /*depth*/ ctx[2] + 1,
574				key: /*i*/ ctx[7]
575			}
576		});
577
578	let if_block = show_if && create_if_block_5();
579
580	return {
581		c() {
582			div = element$1("div");
583			t0 = text(t0_value);
584			t1 = text(": ");
585			create_component$2(jsonnode.$$.fragment);
586			if (if_block) if_block.c();
587			t2 = space$2();
588		},
589		m(target, anchor) {
590			insert$2(target, div, anchor);
591			append(div, t0);
592			append(div, t1);
593			mount_component$2(jsonnode, div, null);
594			if (if_block) if_block.m(div, null);
595			append(div, t2);
596			current = true;
597		},
598		p(ctx, dirty) {
599			if ((!current || dirty & /*value*/ 2) && t0_value !== (t0_value = /*node*/ ctx[5][0] + "")) set_data(t0, t0_value);
600			const jsonnode_changes = {};
601			if (dirty & /*value*/ 2) jsonnode_changes.value = /*node*/ ctx[5][1];
602			if (dirty & /*depth*/ 4) jsonnode_changes.depth = /*depth*/ ctx[2] + 1;
603			jsonnode.$set(jsonnode_changes);
604			if (dirty & /*value*/ 2) show_if = /*i*/ ctx[7] !== Object.keys(/*value*/ ctx[1]).length - 1;
605
606			if (show_if) {
607				if (if_block) ; else {
608					if_block = create_if_block_5();
609					if_block.c();
610					if_block.m(div, t2);
611				}
612			} else if (if_block) {
613				if_block.d(1);
614				if_block = null;
615			}
616		},
617		i(local) {
618			if (current) return;
619			transition_in$2(jsonnode.$$.fragment, local);
620			current = true;
621		},
622		o(local) {
623			transition_out$2(jsonnode.$$.fragment, local);
624			current = false;
625		},
626		d(detaching) {
627			if (detaching) {
628				detach$2(div);
629			}
630
631			destroy_component$2(jsonnode);
632			if (if_block) if_block.d();
633		}
634	};
635}
636
637// (17:2) {:else}
638function create_else_block$1(ctx) {
639	let t0;
640	let div;
641	let t1;
642	let current;
643	let each_value = ensure_array_like(/*value*/ ctx[1]);
644	let each_blocks = [];
645
646	for (let i = 0; i < each_value.length; i += 1) {
647		each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
648	}
649
650	const out = i => transition_out$2(each_blocks[i], 1, 1, () => {
651		each_blocks[i] = null;
652	});
653
654	return {
655		c() {
656			t0 = text("[\n\t\t\t");
657			div = element$1("div");
658
659			for (let i = 0; i < each_blocks.length; i += 1) {
660				each_blocks[i].c();
661			}
662
663			t1 = text("\n\t\t\t]");
664			attr$1(div, "class", "children svelte-1kspdo");
665		},
666		m(target, anchor) {
667			insert$2(target, t0, anchor);
668			insert$2(target, div, anchor);
669
670			for (let i = 0; i < each_blocks.length; i += 1) {
671				if (each_blocks[i]) {
672					each_blocks[i].m(div, null);
673				}
674			}
675
676			insert$2(target, t1, anchor);
677			current = true;
678		},
679		p(ctx, dirty) {
680			if (dirty & /*value, depth*/ 6) {
681				each_value = ensure_array_like(/*value*/ ctx[1]);
682				let i;
683
684				for (i = 0; i < each_value.length; i += 1) {
685					const child_ctx = get_each_context(ctx, each_value, i);
686
687					if (each_blocks[i]) {
688						each_blocks[i].p(child_ctx, dirty);
689						transition_in$2(each_blocks[i], 1);
690					} else {
691						each_blocks[i] = create_each_block(child_ctx);
692						each_blocks[i].c();
693						transition_in$2(each_blocks[i], 1);
694						each_blocks[i].m(div, null);
695					}
696				}
697
698				group_outros$2();
699
700				for (i = each_value.length; i < each_blocks.length; i += 1) {
701					out(i);
702				}
703
704				check_outros$2();
705			}
706		},
707		i(local) {
708			if (current) return;
709
710			for (let i = 0; i < each_value.length; i += 1) {
711				transition_in$2(each_blocks[i]);
712			}
713
714			current = true;
715		},
716		o(local) {
717			each_blocks = each_blocks.filter(Boolean);
718
719			for (let i = 0; i < each_blocks.length; i += 1) {
720				transition_out$2(each_blocks[i]);
721			}
722
723			current = false;
724		},
725		d(detaching) {
726			if (detaching) {
727				detach$2(t0);
728				detach$2(div);
729				detach$2(t1);
730			}
731
732			destroy_each(each_blocks, detaching);
733		}
734	};
735}
736
737// (9:2) {#if collapsed}
738function create_if_block_1$1(ctx) {
739	let button;
740	let span;
741	let t0;
742	let t1_value = /*value*/ ctx[1].length + "";
743	let t1;
744	let t2;
745	let mounted;
746	let dispose;
747
748	return {
749		c() {
750			button = element$1("button");
751			span = element$1("span");
752			t0 = text("expand ");
753			t1 = text(t1_value);
754			t2 = text(" children");
755			attr$1(span, "class", "expand-array svelte-1kspdo");
756		},
757		m(target, anchor) {
758			insert$2(target, button, anchor);
759			append(button, span);
760			append(span, t0);
761			append(span, t1);
762			append(span, t2);
763
764			if (!mounted) {
765				dispose = listen$1(button, "click", /*click_handler*/ ctx[3]);
766				mounted = true;
767			}
768		},
769		p(ctx, dirty) {
770			if (dirty & /*value*/ 2 && t1_value !== (t1_value = /*value*/ ctx[1].length + "")) set_data(t1, t1_value);
771		},
772		i: noop,
773		o: noop,
774		d(detaching) {
775			if (detaching) {
776				detach$2(button);
777			}
778
779			mounted = false;
780			dispose();
781		}
782	};
783}
784
785// (23:6) {#if i !== value.length - 1}
786function create_if_block_2(ctx) {
787	let t;
788
789	return {
790		c() {
791			t = text(",");
792		},
793		m(target, anchor) {
794			insert$2(target, t, anchor);
795		},
796		d(detaching) {
797			if (detaching) {
798				detach$2(t);
799			}
800		}
801	};
802}
803
804// (20:4) {#each value as node, i}
805function create_each_block(ctx) {
806	let div;
807	let t0;
808	let t1;
809	let jsonnode;
810	let t2;
811	let t3;
812	let current;
813
814	jsonnode = new JSONNode({
815			props: {
816				value: /*node*/ ctx[5],
817				depth: /*depth*/ ctx[2] + 1
818			}
819		});
820
821	let if_block = /*i*/ ctx[7] !== /*value*/ ctx[1].length - 1 && create_if_block_2();
822
823	return {
824		c() {
825			div = element$1("div");
826			t0 = text(/*i*/ ctx[7]);
827			t1 = text(": ");
828			create_component$2(jsonnode.$$.fragment);
829			t2 = space$2();
830			if (if_block) if_block.c();
831			t3 = space$2();
832		},
833		m(target, anchor) {
834			insert$2(target, div, anchor);
835			append(div, t0);
836			append(div, t1);
837			mount_component$2(jsonnode, div, null);
838			append(div, t2);
839			if (if_block) if_block.m(div, null);
840			append(div, t3);
841			current = true;
842		},
843		p(ctx, dirty) {
844			const jsonnode_changes = {};
845			if (dirty & /*value*/ 2) jsonnode_changes.value = /*node*/ ctx[5];
846			if (dirty & /*depth*/ 4) jsonnode_changes.depth = /*depth*/ ctx[2] + 1;
847			jsonnode.$set(jsonnode_changes);
848
849			if (/*i*/ ctx[7] !== /*value*/ ctx[1].length - 1) {
850				if (if_block) ; else {
851					if_block = create_if_block_2();
852					if_block.c();
853					if_block.m(div, t3);
854				}
855			} else if (if_block) {
856				if_block.d(1);
857				if_block = null;
858			}
859		},
860		i(local) {
861			if (current) return;
862			transition_in$2(jsonnode.$$.fragment, local);
863			current = true;
864		},
865		o(local) {
866			transition_out$2(jsonnode.$$.fragment, local);
867			current = false;
868		},
869		d(detaching) {
870			if (detaching) {
871				detach$2(div);
872			}
873
874			destroy_component$2(jsonnode);
875			if (if_block) if_block.d();
876		}
877	};
878}
879
880function create_fragment$2(ctx) {
881	let span;
882	let t;
883	let div;
884	let current_block_type_index;
885	let if_block;
886	let current;
887
888	const if_block_creators = [
889		create_if_block$2,
890		create_if_block_3,
891		create_if_block_6,
892		create_if_block_7,
893		create_if_block_8,
894		create_if_block_9,
895		create_else_block_2
896	];
897
898	const if_blocks = [];
899
900	function select_block_type(ctx, dirty) {
901		if (/*value*/ ctx[1] instanceof Array) return 0;
902		if (/*value*/ ctx[1] instanceof Object) return 1;
903		if (/*value*/ ctx[1] === null) return 2;
904		if (typeof /*value*/ ctx[1] === "string") return 3;
905		if (typeof /*value*/ ctx[1] === "boolean") return 4;
906		if (typeof /*value*/ ctx[1] === "number") return 5;
907		return 6;
908	}
909
910	current_block_type_index = select_block_type(ctx);
911	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
912
913	return {
914		c() {
915			span = element$1("span");
916			t = space$2();
917			div = element$1("div");
918			if_block.c();
919			attr$1(span, "class", "spacer svelte-1kspdo");
920			toggle_class(span, "mt-10", /*depth*/ ctx[2] === 0);
921			attr$1(div, "class", "json-node svelte-1kspdo");
922		},
923		m(target, anchor) {
924			insert$2(target, span, anchor);
925			insert$2(target, t, anchor);
926			insert$2(target, div, anchor);
927			if_blocks[current_block_type_index].m(div, null);
928			current = true;
929		},
930		p(ctx, [dirty]) {
931			if (!current || dirty & /*depth*/ 4) {
932				toggle_class(span, "mt-10", /*depth*/ ctx[2] === 0);
933			}
934
935			let previous_block_index = current_block_type_index;
936			current_block_type_index = select_block_type(ctx);
937
938			if (current_block_type_index === previous_block_index) {
939				if_blocks[current_block_type_index].p(ctx, dirty);
940			} else {
941				group_outros$2();
942
943				transition_out$2(if_blocks[previous_block_index], 1, 1, () => {
944					if_blocks[previous_block_index] = null;
945				});
946
947				check_outros$2();
948				if_block = if_blocks[current_block_type_index];
949
950				if (!if_block) {
951					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
952					if_block.c();
953				} else {
954					if_block.p(ctx, dirty);
955				}
956
957				transition_in$2(if_block, 1);
958				if_block.m(div, null);
959			}
960		},
961		i(local) {
962			if (current) return;
963			transition_in$2(if_block);
964			current = true;
965		},
966		o(local) {
967			transition_out$2(if_block);
968			current = false;
969		},
970		d(detaching) {
971			if (detaching) {
972				detach$2(span);
973				detach$2(t);
974				detach$2(div);
975			}
976
977			if_blocks[current_block_type_index].d();
978		}
979	};
980}
981
982function instance$2($$self, $$props, $$invalidate) {
983	let { value } = $$props;
984	let { depth } = $$props;
985	let { collapsed = depth > 4 } = $$props;
986
987	const click_handler = () => {
988		$$invalidate(0, collapsed = false);
989	};
990
991	const click_handler_1 = () => {
992		$$invalidate(0, collapsed = false);
993	};
994
995	$$self.$$set = $$props => {
996		if ('value' in $$props) $$invalidate(1, value = $$props.value);
997		if ('depth' in $$props) $$invalidate(2, depth = $$props.depth);
998		if ('collapsed' in $$props) $$invalidate(0, collapsed = $$props.collapsed);
999	};
1000
1001	return [collapsed, value, depth, click_handler, click_handler_1];
1002}
1003
1004class JSONNode extends SvelteComponent$2 {
1005	constructor(options) {
1006		super();
1007		init$2(this, options, instance$2, create_fragment$2, safe_not_equal$2, { value: 1, depth: 2, collapsed: 0 });
1008	}
1009}
1010
1011const JSON_svelte_svelte_type_style_lang = '';
1012
1013/* home/runner/work/gradio/gradio/js/json/shared/JSON.svelte generated by Svelte v4.2.2 */
1014const {
1015	SvelteComponent: SvelteComponent$1,
1016	add_render_callback,
1017	attr,
1018	check_outros: check_outros$1,
1019	create_component: create_component$1,
1020	create_in_transition,
1021	destroy_component: destroy_component$1,
1022	detach: detach$1,
1023	element,
1024	empty,
1025	group_outros: group_outros$1,
1026	init: init$1,
1027	insert: insert$1,
1028	listen,
1029	mount_component: mount_component$1,
1030	null_to_empty,
1031	safe_not_equal: safe_not_equal$1,
1032	space: space$1,
1033	transition_in: transition_in$1,
1034	transition_out: transition_out$1
1035} = window.__gradio__svelte__internal;
1036const { onDestroy } = window.__gradio__svelte__internal;
1037function create_else_block_1(ctx) {
1038	let div;
1039	let empty_1;
1040	let current;
1041
1042	empty_1 = new Empty({
1043			props: {
1044				$$slots: { default: [create_default_slot$1] },
1045				$$scope: { ctx }
1046			}
1047		});
1048
1049	return {
1050		c() {
1051			div = element("div");
1052			create_component$1(empty_1.$$.fragment);
1053			attr(div, "class", "empty-wrapper svelte-6fc7le");
1054		},
1055		m(target, anchor) {
1056			insert$1(target, div, anchor);
1057			mount_component$1(empty_1, div, null);
1058			current = true;
1059		},
1060		p(ctx, dirty) {
1061			const empty_1_changes = {};
1062
1063			if (dirty & /*$$scope*/ 32) {
1064				empty_1_changes.$$scope = { dirty, ctx };
1065			}
1066
1067			empty_1.$set(empty_1_changes);
1068		},
1069		i(local) {
1070			if (current) return;
1071			transition_in$1(empty_1.$$.fragment, local);
1072			current = true;
1073		},
1074		o(local) {
1075			transition_out$1(empty_1.$$.fragment, local);
1076			current = false;
1077		},
1078		d(detaching) {
1079			if (detaching) {
1080				detach$1(div);
1081			}
1082
1083			destroy_component$1(empty_1);
1084		}
1085	};
1086}
1087
1088// (36:0) {#if value && value !== '""' && !is_empty(value)}
1089function create_if_block$1(ctx) {
1090	let button;
1091	let current_block_type_index;
1092	let if_block;
1093	let button_class_value;
1094	let button_aria_roledescription_value;
1095	let button_aria_label_value;
1096	let t;
1097	let div;
1098	let jsonnode;
1099	let current;
1100	let mounted;
1101	let dispose;
1102	const if_block_creators = [create_if_block_1, create_else_block];
1103	const if_blocks = [];
1104
1105	function select_block_type_1(ctx, dirty) {
1106		if (/*copied*/ ctx[1]) return 0;
1107		return 1;
1108	}
1109
1110	current_block_type_index = select_block_type_1(ctx);
1111	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1112
1113	jsonnode = new JSONNode({
1114			props: { value: /*value*/ ctx[0], depth: 0 }
1115		});
1116
1117	return {
1118		c() {
1119			button = element("button");
1120			if_block.c();
1121			t = space$1();
1122			div = element("div");
1123			create_component$1(jsonnode.$$.fragment);
1124			attr(button, "title", "copy");
1125			attr(button, "class", button_class_value = "" + (null_to_empty(/*copied*/ ctx[1] ? "" : "copy-text") + " svelte-6fc7le"));
1126			attr(button, "aria-roledescription", button_aria_roledescription_value = /*copied*/ ctx[1] ? "Copied value" : "Copy value");
1127			attr(button, "aria-label", button_aria_label_value = /*copied*/ ctx[1] ? "Copied" : "Copy");
1128			attr(div, "class", "json-holder svelte-6fc7le");
1129		},
1130		m(target, anchor) {
1131			insert$1(target, button, anchor);
1132			if_blocks[current_block_type_index].m(button, null);
1133			insert$1(target, t, anchor);
1134			insert$1(target, div, anchor);
1135			mount_component$1(jsonnode, div, null);
1136			current = true;
1137
1138			if (!mounted) {
1139				dispose = listen(button, "click", /*handle_copy*/ ctx[2]);
1140				mounted = true;
1141			}
1142		},
1143		p(ctx, dirty) {
1144			let previous_block_index = current_block_type_index;
1145			current_block_type_index = select_block_type_1(ctx);
1146
1147			if (current_block_type_index !== previous_block_index) {
1148				group_outros$1();
1149
1150				transition_out$1(if_blocks[previous_block_index], 1, 1, () => {
1151					if_blocks[previous_block_index] = null;
1152				});
1153
1154				check_outros$1();
1155				if_block = if_blocks[current_block_type_index];
1156
1157				if (!if_block) {
1158					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1159					if_block.c();
1160				}
1161
1162				transition_in$1(if_block, 1);
1163				if_block.m(button, null);
1164			}
1165
1166			if (!current || dirty & /*copied*/ 2 && button_class_value !== (button_class_value = "" + (null_to_empty(/*copied*/ ctx[1] ? "" : "copy-text") + " svelte-6fc7le"))) {
1167				attr(button, "class", button_class_value);
1168			}
1169
1170			if (!current || dirty & /*copied*/ 2 && button_aria_roledescription_value !== (button_aria_roledescription_value = /*copied*/ ctx[1] ? "Copied value" : "Copy value")) {
1171				attr(button, "aria-roledescription", button_aria_roledescription_value);
1172			}
1173
1174			if (!current || dirty & /*copied*/ 2 && button_aria_label_value !== (button_aria_label_value = /*copied*/ ctx[1] ? "Copied" : "Copy")) {
1175				attr(button, "aria-label", button_aria_label_value);
1176			}
1177
1178			const jsonnode_changes = {};
1179			if (dirty & /*value*/ 1) jsonnode_changes.value = /*value*/ ctx[0];
1180			jsonnode.$set(jsonnode_changes);
1181		},
1182		i(local) {
1183			if (current) return;
1184			transition_in$1(if_block);
1185			transition_in$1(jsonnode.$$.fragment, local);
1186			current = true;
1187		},
1188		o(local) {
1189			transition_out$1(if_block);
1190			transition_out$1(jsonnode.$$.fragment, local);
1191			current = false;
1192		},
1193		d(detaching) {
1194			if (detaching) {
1195				detach$1(button);
1196				detach$1(t);
1197				detach$1(div);
1198			}
1199
1200			if_blocks[current_block_type_index].d();
1201			destroy_component$1(jsonnode);
1202			mounted = false;
1203			dispose();
1204		}
1205	};
1206}
1207
1208// (57:2) <Empty>
1209function create_default_slot$1(ctx) {
1210	let jsonicon;
1211	let current;
1212	jsonicon = new JSON$2({});
1213
1214	return {
1215		c() {
1216			create_component$1(jsonicon.$$.fragment);
1217		},
1218		m(target, anchor) {
1219			mount_component$1(jsonicon, target, anchor);
1220			current = true;
1221		},
1222		i(local) {
1223			if (current) return;
1224			transition_in$1(jsonicon.$$.fragment, local);
1225			current = true;
1226		},
1227		o(local) {
1228			transition_out$1(jsonicon.$$.fragment, local);
1229			current = false;
1230		},
1231		d(detaching) {
1232			destroy_component$1(jsonicon, detaching);
1233		}
1234	};
1235}
1236
1237// (48:2) {:else}
1238function create_else_block(ctx) {
1239	let copy;
1240	let current;
1241	copy = new Copy({});
1242
1243	return {
1244		c() {
1245			create_component$1(copy.$$.fragment);
1246		},
1247		m(target, anchor) {
1248			mount_component$1(copy, target, anchor);
1249			current = true;
1250		},
1251		i(local) {
1252			if (current) return;
1253			transition_in$1(copy.$$.fragment, local);
1254			current = true;
1255		},
1256		o(local) {
1257			transition_out$1(copy.$$.fragment, local);
1258			current = false;
1259		},
1260		d(detaching) {
1261			destroy_component$1(copy, detaching);
1262		}
1263	};
1264}
1265
1266// (44:2) {#if copied}
1267function create_if_block_1(ctx) {
1268	let span;
1269	let check;
1270	let span_intro;
1271	let current;
1272	check = new Check({});
1273
1274	return {
1275		c() {
1276			span = element("span");
1277			create_component$1(check.$$.fragment);
1278		},
1279		m(target, anchor) {
1280			insert$1(target, span, anchor);
1281			mount_component$1(check, span, null);
1282			current = true;
1283		},
1284		i(local) {
1285			if (current) return;
1286			transition_in$1(check.$$.fragment, local);
1287
1288			if (local) {
1289				if (!span_intro) {
1290					add_render_callback(() => {
1291						span_intro = create_in_transition(span, fade, { duration: 300 });
1292						span_intro.start();
1293					});
1294				}
1295			}
1296
1297			current = true;
1298		},
1299		o(local) {
1300			transition_out$1(check.$$.fragment, local);
1301			current = false;
1302		},
1303		d(detaching) {
1304			if (detaching) {
1305				detach$1(span);
1306			}
1307
1308			destroy_component$1(check);
1309		}
1310	};
1311}
1312
1313function create_fragment$1(ctx) {
1314	let show_if;
1315	let current_block_type_index;
1316	let if_block;
1317	let if_block_anchor;
1318	let current;
1319	const if_block_creators = [create_if_block$1, create_else_block_1];
1320	const if_blocks = [];
1321
1322	function select_block_type(ctx, dirty) {
1323		if (dirty & /*value*/ 1) show_if = null;
1324		if (show_if == null) show_if = !!(/*value*/ ctx[0] && /*value*/ ctx[0] !== '""' && !is_empty(/*value*/ ctx[0]));
1325		if (show_if) return 0;
1326		return 1;
1327	}
1328
1329	current_block_type_index = select_block_type(ctx, -1);
1330	if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1331
1332	return {
1333		c() {
1334			if_block.c();
1335			if_block_anchor = empty();
1336		},
1337		m(target, anchor) {
1338			if_blocks[current_block_type_index].m(target, anchor);
1339			insert$1(target, if_block_anchor, anchor);
1340			current = true;
1341		},
1342		p(ctx, [dirty]) {
1343			let previous_block_index = current_block_type_index;
1344			current_block_type_index = select_block_type(ctx, dirty);
1345
1346			if (current_block_type_index === previous_block_index) {
1347				if_blocks[current_block_type_index].p(ctx, dirty);
1348			} else {
1349				group_outros$1();
1350
1351				transition_out$1(if_blocks[previous_block_index], 1, 1, () => {
1352					if_blocks[previous_block_index] = null;
1353				});
1354
1355				check_outros$1();
1356				if_block = if_blocks[current_block_type_index];
1357
1358				if (!if_block) {
1359					if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
1360					if_block.c();
1361				} else {
1362					if_block.p(ctx, dirty);
1363				}
1364
1365				transition_in$1(if_block, 1);
1366				if_block.m(if_block_anchor.parentNode, if_block_anchor);
1367			}
1368		},
1369		i(local) {
1370			if (current) return;
1371			transition_in$1(if_block);
1372			current = true;
1373		},
1374		o(local) {
1375			transition_out$1(if_block);
1376			current = false;
1377		},
1378		d(detaching) {
1379			if (detaching) {
1380				detach$1(if_block_anchor);
1381			}
1382
1383			if_blocks[current_block_type_index].d(detaching);
1384		}
1385	};
1386}
1387
1388function is_empty(obj) {
1389	return obj && Object.keys(obj).length === 0 && Object.getPrototypeOf(obj) === Object.prototype && JSON.stringify(obj) === JSON.stringify({});
1390}
1391
1392function instance$1($$self, $$props, $$invalidate) {
1393	let { value = {} } = $$props;
1394	let copied = false;
1395	let timer;
1396
1397	function copy_feedback() {
1398		$$invalidate(1, copied = true);
1399		if (timer) clearTimeout(timer);
1400
1401		timer = setTimeout(
1402			() => {
1403				$$invalidate(1, copied = false);
1404			},
1405			1000
1406		);
1407	}
1408
1409	async function handle_copy() {
1410		if ("clipboard" in navigator) {
1411			await navigator.clipboard.writeText(JSON.stringify(value, null, 2));
1412			copy_feedback();
1413		}
1414	}
1415
1416	onDestroy(() => {
1417		if (timer) clearTimeout(timer);
1418	});
1419
1420	$$self.$$set = $$props => {
1421		if ('value' in $$props) $$invalidate(0, value = $$props.value);
1422	};
1423
1424	return [value, copied, handle_copy];
1425}
1426
1427class JSON_1 extends SvelteComponent$1 {
1428	constructor(options) {
1429		super();
1430		init$1(this, options, instance$1, create_fragment$1, safe_not_equal$1, { value: 0 });
1431	}
1432}
1433
1434const JSON$1 = JSON_1;
1435
1436/* home/runner/work/gradio/gradio/js/json/Index.svelte generated by Svelte v4.2.2 */
1437const {
1438	SvelteComponent,
1439	assign,
1440	check_outros,
1441	create_component,
1442	destroy_component,
1443	detach,
1444	get_spread_object,
1445	get_spread_update,
1446	group_outros,
1447	init,
1448	insert,
1449	mount_component,
1450	safe_not_equal,
1451	space,
1452	transition_in,
1453	transition_out
1454} = window.__gradio__svelte__internal;
1455function create_if_block(ctx) {
1456	let blocklabel;
1457	let current;
1458
1459	blocklabel = new BlockLabel({
1460			props: {
1461				Icon: JSON$2,
1462				show_label: /*show_label*/ ctx[6],
1463				label: /*label*/ ctx[5],
1464				float: false,
1465				disable: /*container*/ ctx[7] === false
1466			}
1467		});
1468
1469	return {
1470		c() {
1471			create_component(blocklabel.$$.fragment);
1472		},
1473		m(target, anchor) {
1474			mount_component(blocklabel, target, anchor);
1475			current = true;
1476		},
1477		p(ctx, dirty) {
1478			const blocklabel_changes = {};
1479			if (dirty & /*show_label*/ 64) blocklabel_changes.show_label = /*show_label*/ ctx[6];
1480			if (dirty & /*label*/ 32) blocklabel_changes.label = /*label*/ ctx[5];
1481			if (dirty & /*container*/ 128) blocklabel_changes.disable = /*container*/ ctx[7] === false;
1482			blocklabel.$set(blocklabel_changes);
1483		},
1484		i(local) {
1485			if (current) return;
1486			transition_in(blocklabel.$$.fragment, local);
1487			current = true;
1488		},
1489		o(local) {
1490			transition_out(blocklabel.$$.fragment, local);
1491			current = false;
1492		},
1493		d(detaching) {
1494			destroy_component(blocklabel, detaching);
1495		}
1496	};
1497}
1498
1499// (28:0) <Block  {visible}  test_id="json"  {elem_id}  {elem_classes}  {container}  {scale}  {min_width}  padding={false} >
1500function create_default_slot(ctx) {
1501	let t0;
1502	let statustracker;
1503	let t1;
1504	let json;
1505	let current;
1506	let if_block = /*label*/ ctx[5] && create_if_block(ctx);
1507
1508	const statustracker_spread_levels = [
1509		{
1510			autoscroll: /*gradio*/ ctx[10].autoscroll
1511		},
1512		{ i18n: /*gradio*/ ctx[10].i18n },
1513		/*loading_status*/ ctx[4]
1514	];
1515
1516	let statustracker_props = {};
1517
1518	for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
1519		statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
1520	}
1521
1522	statustracker = new Static({ props: statustracker_props });
1523	json = new JSON$1({ props: { value: /*value*/ ctx[3] } });
1524
1525	return {
1526		c() {
1527			if (if_block) if_block.c();
1528			t0 = space();
1529			create_component(statustracker.$$.fragment);
1530			t1 = space();
1531			create_component(json.$$.fragment);
1532		},
1533		m(target, anchor) {
1534			if (if_block) if_block.m(target, anchor);
1535			insert(target, t0, anchor);
1536			mount_component(statustracker, target, anchor);
1537			insert(target, t1, anchor);
1538			mount_component(json, target, anchor);
1539			current = true;
1540		},
1541		p(ctx, dirty) {
1542			if (/*label*/ ctx[5]) {
1543				if (if_block) {
1544					if_block.p(ctx, dirty);
1545
1546					if (dirty & /*label*/ 32) {
1547						transition_in(if_block, 1);
1548					}
1549				} else {
1550					if_block = create_if_block(ctx);
1551					if_block.c();
1552					transition_in(if_block, 1);
1553					if_block.m(t0.parentNode, t0);
1554				}
1555			} else if (if_block) {
1556				group_outros();
1557
1558				transition_out(if_block, 1, 1, () => {
1559					if_block = null;
1560				});
1561
1562				check_outros();
1563			}
1564
1565			const statustracker_changes = (dirty & /*gradio, loading_status*/ 1040)
1566			? get_spread_update(statustracker_spread_levels, [
1567					dirty & /*gradio*/ 1024 && {
1568						autoscroll: /*gradio*/ ctx[10].autoscroll
1569					},
1570					dirty & /*gradio*/ 1024 && { i18n: /*gradio*/ ctx[10].i18n },
1571					dirty & /*loading_status*/ 16 && get_spread_object(/*loading_status*/ ctx[4])
1572				])
1573			: {};
1574
1575			statustracker.$set(statustracker_changes);
1576			const json_changes = {};
1577			if (dirty & /*value*/ 8) json_changes.value = /*value*/ ctx[3];
1578			json.$set(json_changes);
1579		},
1580		i(local) {
1581			if (current) return;
1582			transition_in(if_block);
1583			transition_in(statustracker.$$.fragment, local);
1584			transition_in(json.$$.fragment, local);
1585			current = true;
1586		},
1587		o(local) {
1588			transition_out(if_block);
1589			transition_out(statustracker.$$.fragment, local);
1590			transition_out(json.$$.fragment, local);
1591			current = false;
1592		},
1593		d(detaching) {
1594			if (detaching) {
1595				detach(t0);
1596				detach(t1);
1597			}
1598
1599			if (if_block) if_block.d(detaching);
1600			destroy_component(statustracker, detaching);
1601			destroy_component(json, detaching);
1602		}
1603	};
1604}
1605
1606function create_fragment(ctx) {
1607	let block;
1608	let current;
1609
1610	block = new Block({
1611			props: {
1612				visible: /*visible*/ ctx[2],
1613				test_id: "json",
1614				elem_id: /*elem_id*/ ctx[0],
1615				elem_classes: /*elem_classes*/ ctx[1],
1616				container: /*container*/ ctx[7],
1617				scale: /*scale*/ ctx[8],
1618				min_width: /*min_width*/ ctx[9],
1619				padding: false,
1620				$$slots: { default: [create_default_slot] },
1621				$$scope: { ctx }
1622			}
1623		});
1624
1625	return {
1626		c() {
1627			create_component(block.$$.fragment);
1628		},
1629		m(target, anchor) {
1630			mount_component(block, target, anchor);
1631			current = true;
1632		},
1633		p(ctx, [dirty]) {
1634			const block_changes = {};
1635			if (dirty & /*visible*/ 4) block_changes.visible = /*visible*/ ctx[2];
1636			if (dirty & /*elem_id*/ 1) block_changes.elem_id = /*elem_id*/ ctx[0];
1637			if (dirty & /*elem_classes*/ 2) block_changes.elem_classes = /*elem_classes*/ ctx[1];
1638			if (dirty & /*container*/ 128) block_changes.container = /*container*/ ctx[7];
1639			if (dirty & /*scale*/ 256) block_changes.scale = /*scale*/ ctx[8];
1640			if (dirty & /*min_width*/ 512) block_changes.min_width = /*min_width*/ ctx[9];
1641
1642			if (dirty & /*$$scope, value, gradio, loading_status, show_label, label, container*/ 5368) {
1643				block_changes.$$scope = { dirty, ctx };
1644			}
1645
1646			block.$set(block_changes);
1647		},
1648		i(local) {
1649			if (current) return;
1650			transition_in(block.$$.fragment, local);
1651			current = true;
1652		},
1653		o(local) {
1654			transition_out(block.$$.fragment, local);
1655			current = false;
1656		},
1657		d(detaching) {
1658			destroy_component(block, detaching);
1659		}
1660	};
1661}
1662
1663function instance($$self, $$props, $$invalidate) {
1664	let { elem_id = "" } = $$props;
1665	let { elem_classes = [] } = $$props;
1666	let { visible = true } = $$props;
1667	let { value } = $$props;
1668	let old_value;
1669	let { loading_status } = $$props;
1670	let { label } = $$props;
1671	let { show_label } = $$props;
1672	let { container = true } = $$props;
1673	let { scale = null } = $$props;
1674	let { min_width = undefined } = $$props;
1675	let { gradio } = $$props;
1676
1677	$$self.$$set = $$props => {
1678		if ('elem_id' in $$props) $$invalidate(0, elem_id = $$props.elem_id);
1679		if ('elem_classes' in $$props) $$invalidate(1, elem_classes = $$props.elem_classes);
1680		if ('visible' in $$props) $$invalidate(2, visible = $$props.visible);
1681		if ('value' in $$props) $$invalidate(3, value = $$props.value);
1682		if ('loading_status' in $$props) $$invalidate(4, loading_status = $$props.loading_status);
1683		if ('label' in $$props) $$invalidate(5, label = $$props.label);
1684		if ('show_label' in $$props) $$invalidate(6, show_label = $$props.show_label);
1685		if ('container' in $$props) $$invalidate(7, container = $$props.container);
1686		if ('scale' in $$props) $$invalidate(8, scale = $$props.scale);
1687		if ('min_width' in $$props) $$invalidate(9, min_width = $$props.min_width);
1688		if ('gradio' in $$props) $$invalidate(10, gradio = $$props.gradio);
1689	};
1690
1691	$$self.$$.update = () => {
1692		if ($$self.$$.dirty & /*value, old_value, gradio*/ 3080) {
1693			{
1694				if (value !== old_value) {
1695					$$invalidate(11, old_value = value);
1696					gradio.dispatch("change");
1697				}
1698			}
1699		}
1700	};
1701
1702	return [
1703		elem_id,
1704		elem_classes,
1705		visible,
1706		value,
1707		loading_status,
1708		label,
1709		show_label,
1710		container,
1711		scale,
1712		min_width,
1713		gradio,
1714		old_value
1715	];
1716}
1717
1718class Index extends SvelteComponent {
1719	constructor(options) {
1720		super();
1721
1722		init(this, options, instance, create_fragment, safe_not_equal, {
1723			elem_id: 0,
1724			elem_classes: 1,
1725			visible: 2,
1726			value: 3,
1727			loading_status: 4,
1728			label: 5,
1729			show_label: 6,
1730			container: 7,
1731			scale: 8,
1732			min_width: 9,
1733			gradio: 10
1734		});
1735	}
1736}
1737
1738export { JSON$1 as BaseJSON, Index as default };
1739//# sourceMappingURL=Index-f6c46d05.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.