PageSourceSearch

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

js jonjimenez-career-suggestion.hf.space collected 2026-10-03 10:23:06 UTC 22,492 bytes, 868 lines download raw bytes

1import { S as Static } from './Index-2cec2c56.js';
2import { B as Block } from './Button-05bf7cea.js';
3import { B as BlockLabel } from './BlockLabel-09bb0248.js';
4import { E as Empty } from './Empty-2eeff83e.js';
5import './index-5550136d.js';
6import './svelte/svelte.js';
7
8/* home/runner/work/gradio/gradio/js/icons/src/LineChart.svelte generated by Svelte v4.2.2 */
9const {
10	SvelteComponent: SvelteComponent$2,
11	append: append$1,
12	attr: attr$1,
13	detach: detach$2,
14	init: init$2,
15	insert: insert$2,
16	noop: noop$1,
17	safe_not_equal: safe_not_equal$2,
18	svg_element
19} = window.__gradio__svelte__internal;
20function create_fragment$2(ctx) {
21	let svg;
22	let path;
23
24	return {
25		c() {
26			svg = svg_element("svg");
27			path = svg_element("path");
28			attr$1(path, "fill", "currentColor");
29			attr$1(path, "d", "M4 2H2v26a2 2 0 0 0 2 2h26v-2H4v-3h22v-8H4v-4h14V5H4Zm20 17v4H4v-4ZM16 7v4H4V7Z");
30			attr$1(svg, "xmlns", "http://www.w3.org/2000/svg");
31			attr$1(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
32			attr$1(svg, "aria-hidden", "true");
33			attr$1(svg, "role", "img");
34			attr$1(svg, "class", "iconify iconify--carbon");
35			attr$1(svg, "width", "100%");
36			attr$1(svg, "height", "100%");
37			attr$1(svg, "preserveAspectRatio", "xMidYMid meet");
38			attr$1(svg, "viewBox", "0 0 32 32");
39		},
40		m(target, anchor) {
41			insert$2(target, svg, anchor);
42			append$1(svg, path);
43		},
44		p: noop$1,
45		i: noop$1,
46		o: noop$1,
47		d(detaching) {
48			if (detaching) {
49				detach$2(svg);
50			}
51		}
52	};
53}
54
55class LineChart extends SvelteComponent$2 {
56	constructor(options) {
57		super();
58		init$2(this, options, null, create_fragment$2, safe_not_equal$2, {});
59	}
60}
61
62const Label_svelte_svelte_type_style_lang = '';
63
64/* home/runner/work/gradio/gradio/js/label/shared/Label.svelte generated by Svelte v4.2.2 */
65const {
66	SvelteComponent: SvelteComponent$1,
67	append,
68	attr,
69	destroy_each,
70	detach: detach$1,
71	element,
72	empty: empty$1,
73	ensure_array_like,
74	init: init$1,
75	insert: insert$1,
76	listen,
77	noop,
78	safe_not_equal: safe_not_equal$1,
79	set_data,
80	set_style,
81	space: space$1,
82	text,
83	toggle_class
84} = window.__gradio__svelte__internal;
85const { createEventDispatcher } = window.__gradio__svelte__internal;
86function get_each_context(ctx, list, i) {
87	const child_ctx = ctx.slice();
88	child_ctx[5] = list[i];
89	child_ctx[7] = i;
90	return child_ctx;
91}
92
93// (18:1) {#if typeof value === "object" && value.confidences}
94function create_if_block$1(ctx) {
95	let each_1_anchor;
96	let each_value = ensure_array_like(/*value*/ ctx[0].confidences);
97	let each_blocks = [];
98
99	for (let i = 0; i < each_value.length; i += 1) {
100		each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
101	}
102
103	return {
104		c() {
105			for (let i = 0; i < each_blocks.length; i += 1) {
106				each_blocks[i].c();
107			}
108
109			each_1_anchor = empty$1();
110		},
111		m(target, anchor) {
112			for (let i = 0; i < each_blocks.length; i += 1) {
113				if (each_blocks[i]) {
114					each_blocks[i].m(target, anchor);
115				}
116			}
117
118			insert$1(target, each_1_anchor, anchor);
119		},
120		p(ctx, dirty) {
121			if (dirty & /*value, selectable, dispatch, Math*/ 13) {
122				each_value = ensure_array_like(/*value*/ ctx[0].confidences);
123				let i;
124
125				for (i = 0; i < each_value.length; i += 1) {
126					const child_ctx = get_each_context(ctx, each_value, i);
127
128					if (each_blocks[i]) {
129						each_blocks[i].p(child_ctx, dirty);
130					} else {
131						each_blocks[i] = create_each_block(child_ctx);
132						each_blocks[i].c();
133						each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
134					}
135				}
136
137				for (; i < each_blocks.length; i += 1) {
138					each_blocks[i].d(1);
139				}
140
141				each_blocks.length = each_value.length;
142			}
143		},
144		d(detaching) {
145			if (detaching) {
146				detach$1(each_1_anchor);
147			}
148
149			destroy_each(each_blocks, detaching);
150		}
151	};
152}
153
154// (45:6) {#if value.confidences}
155function create_if_block_1$1(ctx) {
156	let div;
157	let dd;
158	let t0_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "";
159	let t0;
160	let t1;
161
162	return {
163		c() {
164			div = element("div");
165			dd = element("dd");
166			t0 = text(t0_value);
167			t1 = text("%");
168			attr(div, "class", "line svelte-1pq4gst");
169			attr(dd, "class", "confidence svelte-1pq4gst");
170		},
171		m(target, anchor) {
172			insert$1(target, div, anchor);
173			insert$1(target, dd, anchor);
174			append(dd, t0);
175			append(dd, t1);
176		},
177		p(ctx, dirty) {
178			if (dirty & /*value*/ 1 && t0_value !== (t0_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "")) set_data(t0, t0_value);
179		},
180		d(detaching) {
181			if (detaching) {
182				detach$1(div);
183				detach$1(dd);
184			}
185		}
186	};
187}
188
189// (19:2) {#each value.confidences as confidence_set, i}
190function create_each_block(ctx) {
191	let button;
192	let div;
193	let meter;
194	let meter_value_value;
195	let meter_aria_label_value;
196	let t0;
197	let dl;
198	let dt;
199	let t1_value = /*confidence_set*/ ctx[5].label + "";
200	let t1;
201	let t2;
202	let dt_id_value;
203	let t3;
204	let button_data_testid_value;
205	let mounted;
206	let dispose;
207	let if_block = /*value*/ ctx[0].confidences && create_if_block_1$1(ctx);
208
209	function click_handler() {
210		return /*click_handler*/ ctx[4](/*i*/ ctx[7], /*confidence_set*/ ctx[5]);
211	}
212
213	return {
214		c() {
215			button = element("button");
216			div = element("div");
217			meter = element("meter");
218			t0 = space$1();
219			dl = element("dl");
220			dt = element("dt");
221			t1 = text(t1_value);
222			t2 = space$1();
223			if (if_block) if_block.c();
224			t3 = space$1();
225			attr(meter, "aria-labelledby", "meter-text");
226			attr(meter, "class", "bar svelte-1pq4gst");
227			attr(meter, "min", "0");
228			attr(meter, "max", "100");
229			set_style(meter, "width", /*confidence_set*/ ctx[5].confidence * 100 + "%");
230			set_style(meter, "background", "var(--stat-background-fill)");
231			meter.value = meter_value_value = /*confidence_set*/ ctx[5].confidence * 100;
232			attr(meter, "aria-label", meter_aria_label_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "%");
233			attr(dt, "id", dt_id_value = `meter-text-${/*confidence_set*/ ctx[5].label}`);
234			attr(dt, "class", "text svelte-1pq4gst");
235			attr(dl, "class", "label svelte-1pq4gst");
236			attr(div, "class", "inner-wrap svelte-1pq4gst");
237			attr(button, "class", "confidence-set group svelte-1pq4gst");
238			attr(button, "data-testid", button_data_testid_value = `${/*confidence_set*/ ctx[5].label}-confidence-set`);
239			toggle_class(button, "selectable", /*selectable*/ ctx[2]);
240		},
241		m(target, anchor) {
242			insert$1(target, button, anchor);
243			append(button, div);
244			append(div, meter);
245			append(div, t0);
246			append(div, dl);
247			append(dl, dt);
248			append(dt, t1);
249			append(dt, t2);
250			if (if_block) if_block.m(dl, null);
251			append(button, t3);
252
253			if (!mounted) {
254				dispose = listen(button, "click", click_handler);
255				mounted = true;
256			}
257		},
258		p(new_ctx, dirty) {
259			ctx = new_ctx;
260
261			if (dirty & /*value*/ 1) {
262				set_style(meter, "width", /*confidence_set*/ ctx[5].confidence * 100 + "%");
263			}
264
265			if (dirty & /*value*/ 1 && meter_value_value !== (meter_value_value = /*confidence_set*/ ctx[5].confidence * 100)) {
266				meter.value = meter_value_value;
267			}
268
269			if (dirty & /*value*/ 1 && meter_aria_label_value !== (meter_aria_label_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "%")) {
270				attr(meter, "aria-label", meter_aria_label_value);
271			}
272
273			if (dirty & /*value*/ 1 && t1_value !== (t1_value = /*confidence_set*/ ctx[5].label + "")) set_data(t1, t1_value);
274
275			if (dirty & /*value*/ 1 && dt_id_value !== (dt_id_value = `meter-text-${/*confidence_set*/ ctx[5].label}`)) {
276				attr(dt, "id", dt_id_value);
277			}
278
279			if (/*value*/ ctx[0].confidences) {
280				if (if_block) {
281					if_block.p(ctx, dirty);
282				} else {
283					if_block = create_if_block_1$1(ctx);
284					if_block.c();
285					if_block.m(dl, null);
286				}
287			} else if (if_block) {
288				if_block.d(1);
289				if_block = null;
290			}
291
292			if (dirty & /*value*/ 1 && button_data_testid_value !== (button_data_testid_value = `${/*confidence_set*/ ctx[5].label}-confidence-set`)) {
293				attr(button, "data-testid", button_data_testid_value);
294			}
295
296			if (dirty & /*selectable*/ 4) {
297				toggle_class(button, "selectable", /*selectable*/ ctx[2]);
298			}
299		},
300		d(detaching) {
301			if (detaching) {
302				detach$1(button);
303			}
304
305			if (if_block) if_block.d();
306			mounted = false;
307			dispose();
308		}
309	};
310}
311
312function create_fragment$1(ctx) {
313	let div;
314	let h2;
315	let t0_value = /*value*/ ctx[0].label + "";
316	let t0;
317	let t1;
318	let if_block = typeof /*value*/ ctx[0] === "object" && /*value*/ ctx[0].confidence
318s && create_if_block$1(ctx);
319
320	return {
321		c() {
322			div = element("div");
323			h2 = element("h2");
324			t0 = text(t0_value);
325			t1 = space$1();
326			if (if_block) if_block.c();
327			attr(h2, "class", "output-class svelte-1pq4gst");
328			attr(h2, "data-testid", "label-output-value");
329			toggle_class(h2, "no-confidence", !("confidences" in /*value*/ ctx[0]));
330			set_style(h2, "background-color", /*color*/ ctx[1] || "transparent");
331			attr(div, "class", "container svelte-1pq4gst");
332		},
333		m(target, anchor) {
334			insert$1(target, div, anchor);
335			append(div, h2);
336			append(h2, t0);
337			append(div, t1);
338			if (if_block) if_block.m(div, null);
339		},
340		p(ctx, [dirty]) {
341			if (dirty & /*value*/ 1 && t0_value !== (t0_value = /*value*/ ctx[0].label + "")) set_data(t0, t0_value);
342
343			if (dirty & /*value*/ 1) {
344				toggle_class(h2, "no-confidence", !("confidences" in /*value*/ ctx[0]));
345			}
346
347			if (dirty & /*color*/ 2) {
348				set_style(h2, "background-color", /*color*/ ctx[1] || "transparent");
349			}
350
351			if (typeof /*value*/ ctx[0] === "object" && /*value*/ ctx[0].confidences) {
352				if (if_block) {
353					if_block.p(ctx, dirty);
354				} else {
355					if_block = create_if_block$1(ctx);
356					if_block.c();
357					if_block.m(div, null);
358				}
359			} else if (if_block) {
360				if_block.d(1);
361				if_block = null;
362			}
363		},
364		i: noop,
365		o: noop,
366		d(detaching) {
367			if (detaching) {
368				detach$1(div);
369			}
370
371			if (if_block) if_block.d();
372		}
373	};
374}
375
376function instance$1($$self, $$props, $$invalidate) {
377	let { value } = $$props;
378	const dispatch = createEventDispatcher();
379	let { color = undefined } = $$props;
380	let { selectable = false } = $$props;
381
382	const click_handler = (i, confidence_set) => {
383		dispatch("select", { index: i, value: confidence_set.label });
384	};
385
386	$$self.$$set = $$props => {
387		if ('value' in $$props) $$invalidate(0, value = $$props.value);
388		if ('color' in $$props) $$invalidate(1, color = $$props.color);
389		if ('selectable' in $$props) $$invalidate(2, selectable = $$props.selectable);
390	};
391
392	return [value, color, selectable, dispatch, click_handler];
393}
394
395class Label extends SvelteComponent$1 {
396	constructor(options) {
397		super();
398		init$1(this, options, instance$1, create_fragment$1, safe_not_equal$1, { value: 0, color: 1, selectable: 2 });
399	}
400}
401
402const Label$1 = Label;
403
404/* home/runner/work/gradio/gradio/js/label/Index.svelte generated by Svelte v4.2.2 */
405const {
406	SvelteComponent,
407	assign,
408	check_outros,
409	create_component,
410	destroy_component,
411	detach,
412	empty,
413	get_spread_object,
414	get_spread_update,
415	group_outros,
416	init,
417	insert,
418	mount_component,
419	safe_not_equal,
420	space,
421	transition_in,
422	transition_out
423} = window.__gradio__svelte__internal;
424function create_if_block_1(ctx) {
425	let blocklabel;
426	let current;
427
428	blocklabel = new BlockLabel({
429			props: {
430				Icon: LineChart,
431				label: /*label*/ ctx[6],
432				disable: /*container*/ ctx[7] === false
433			}
434		});
435
436	return {
437		c() {
438			create_component(blocklabel.$$.fragment);
439		},
440		m(target, anchor) {
441			mount_component(blocklabel, target, anchor);
442			current = true;
443		},
444		p(ctx, dirty) {
445			const blocklabel_changes = {};
446			if (dirty & /*label*/ 64) blocklabel_changes.label = /*label*/ ctx[6];
447			if (dirty & /*container*/ 128) blocklabel_changes.disable = /*container*/ ctx[7] === false;
448			blocklabel.$set(blocklabel_changes);
449		},
450		i(local) {
451			if (current) return;
452			transition_in(blocklabel.$$.fragment, local);
453			current = true;
454		},
455		o(local) {
456			transition_out(blocklabel.$$.fragment, local);
457			current = false;
458		},
459		d(detaching) {
460			destroy_component(blocklabel, detaching);
461		}
462	};
463}
464
465// (50:1) {:else}
466function create_else_block(ctx) {
467	let empty_1;
468	let current;
469
470	empty_1 = new Empty({
471			props: {
472				unpadded_box: true,
473				$$slots: { default: [create_default_slot_1] },
474				$$scope: { ctx }
475			}
476		});
477
478	return {
479		c() {
480			create_component(empty_1.$$.fragment);
481		},
482		m(target, anchor) {
483			mount_component(empty_1, target, anchor);
484			current = true;
485		},
486		p(ctx, dirty) {
487			const empty_1_changes = {};
488
489			if (dirty & /*$$scope*/ 65536) {
490				empty_1_changes.$$scope = { dirty, ctx };
491			}
492
493			empty_1.$set(empty_1_changes);
494		},
495		i(local) {
496			if (current) return;
497			transition_in(empty_1.$$.fragment, local);
498			current = true;
499		},
500		o(local) {
501			transition_out(empty_1.$$.fragment, local);
502			current = false;
503		},
504		d(detaching) {
505			destroy_component(empty_1, detaching);
506		}
507	};
508}
509
510// (43:1) {#if _label !== undefined && _label !== null}
511function create_if_block(ctx) {
512	let label_1;
513	let current;
514
515	label_1 = new Label$1({
516			props: {
517				selectable: /*_selectable*/ ctx[12],
518				value: /*value*/ ctx[5],
519				color: /*color*/ ctx[4]
520			}
521		});
522
523	label_1.$on("select", /*select_handler*/ ctx[15]);
524
525	return {
526		c() {
527			create_component(label_1.$$.fragment);
528		},
529		m(target, anchor) {
530			mount_component(label_1, target, anchor);
531			current = true;
532		},
533		p(ctx, dirty) {
534			const label_1_changes = {};
535			if (dirty & /*_selectable*/ 4096) label_1_changes.selectable = /*_selectable*/ ctx[12];
536			if (dirty & /*value*/ 32) label_1_changes.value = /*value*/ ctx[5];
537			if (dirty & /*color*/ 16) label_1_changes.color = /*color*/ ctx[4];
538			label_1.$set(label_1_changes);
539		},
540		i(local) {
541			if (current) return;
542			transition_in(label_1.$$.fragment, local);
543			current = true;
544		},
545		o(local) {
546			transition_out(label_1.$$.fragment, local);
547			current = false;
548		},
549		d(detaching) {
550			destroy_component(label_1, detaching);
551		}
552	};
553}
554
555// (51:2) <Empty unpadded_box={true}>
556function create_default_slot_1(ctx) {
557	let labelicon;
558	let current;
559	labelicon = new LineChart({});
560
561	return {
562		c() {
563			create_component(labelicon.$$.fragment);
564		},
565		m(target, anchor) {
566			mount_component(labelicon, target, anchor);
567			current = true;
568		},
569		i(local) {
570			if (current) return;
571			transition_in(labelicon.$$.fragment, local);
572			current = true;
573		},
574		o(local) {
575			transition_out(labelicon.$$.fragment, local);
576			current = false;
577		},
578		d(detaching) {
579			destroy_component(labelicon, detaching);
580		}
581	};
582}
583
584// (25:0) <Block  test_id="label"  {visible}  {elem_id}  {elem_classes}  {container}  {scale}  {min_width}  padding={false} >
585function create_default_slot(ctx) {
586	let statustracker;
587	let t0;
588	let t1;
589	let current_block_type_index;
590	let if_block1;
591	let if_block1_anchor;
592	let current;
593
594	const statustracker_spread_levels = [
595		{ autoscroll: /*gradio*/ ctx[0].autoscroll },
596		{ i18n: /*gradio*/ ctx[0].i18n },
597		/*loading_status*/ ctx[10]
598	];
599
600	let statustracker_props = {};
601
602	for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
603		statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
604	}
605
606	statustracker = new Static({ props: statustracker_props });
607	let if_block0 = /*show_label*/ ctx[11] && create_if_block_1(ctx);
608	const if_block_creators = [create_if_block, create_else_block];
609	const if_blocks = [];
610
611	function select_block_type(ctx, dirty) {
612		if (/*_label*/ ctx[13] !== undefined && /*_label*/ ctx[13] !== null) return 0;
613		return 1;
614	}
615
616	current_block_type_index = select_block_type(ctx);
617	if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
618
619	return {
620		c() {
621			create_component(statustracker.$$.fragment);
622			t0 = space();
623			if (if_block0) if_block0.c();
624			t1 = space();
625			if_block1.c();
626			if_block1_anchor = empty();
627		},
628		m(target, anchor) {
629			mount_component(statustracker, target, anchor);
630			insert(target, t0, anchor);
631			if (if_block0) if_block0.m(target, anchor);
632			insert(target, t1, anchor);
633			if_blocks[current_block_type_index].m(target, anchor);
634			insert(target, if_block1_anchor, anchor);
635			current = true;
636		},
637		p(ctx, dirty) {
638			const statustracker_changes = (dirty & /*gradio, loading_status*/ 1025)
639			? get_spread_update(statustracker_spread_levels, [
640					dirty & /*gradio*/ 1 && { autoscroll: /*gradio*/ ctx[0].autoscroll },
641					dirty & /*gradio*/ 1 && { i18n: /*gradio*/ ctx[0].i18n },
642					dirty & /*loading_status*/ 1024 && get_spread_object(/*loading_status*/ ctx[10])
643				])
644			: {};
645
646			statustracker.$set(statustracker_changes);
647
648			if (/*show_label*/ ctx[11]) {
649				if (if_block0) {
650					if_block0.p(ctx, dirty);
651
652					if (dirty & /*show_label*/ 2048) {
653						transition_in(if_block0, 1);
654					}
655				} else {
656					if_block0 = create_if_block_1(ctx);
657					if_block0.c();
658					transition_in(if_block0, 1);
659					if_block0.m(t1.parentNode, t1);
660				}
661			} else if (if_block0) {
662				group_outros();
663
664				transition_out(if_block0, 1, 1, () => {
665					if_block0 = null;
666				});
667
668				check_outros();
669			}
670
671			let previous_block_index = current_block_type_index;
672			current_block_type_index = select_block_type(ctx);
673
674			if (current_block_type_index === previous_block_index) {
675				if_blocks[current_block_type_index].p(ctx, dirty);
676			} else {
677				group_outros();
678
679				transition_out(if_blocks[previous_block_index], 1, 1, () => {
680					if_blocks[previous_block_index] = null;
681				});
682
683				check_outros();
684				if_block1 = if_blocks[current_block_type_index];
685
686				if (!if_block1) {
687					if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
688					if_block1.c();
689				} else {
690					if_block1.p(ctx, dirty);
691				}
692
693				transition_in(if_block1, 1);
694				if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
695			}
696		},
697		i(local) {
698			if (current) return;
699			transition_in(statustracker.$$.fragment, local);
700			transition_in(if_block0);
701			transition_in(if_block1);
702			current = true;
703		},
704		o(local) {
705			transition_out(statustracker.$$.fragment, local);
706			transition_out(if_block0);
707			transition_out(if_block1);
708			current = false;
709		},
710		d(detaching) {
711			if (detaching) {
712				detach(t0);
713				detach(t1);
714				detach(if_block1_anchor);
715			}
716
717			destroy_component(statustracker, detaching);
718			if (if_block0) if_block0.d(detaching);
719			if_blocks[current_block_type_index].d(detaching);
720		}
721	};
722}
723
724function create_fragment(ctx) {
725	let block;
726	let current;
727
728	block = new Block({
729			props: {
730				test_id: "label",
731				visible: /*visible*/ ctx[3],
732				elem_id: /*elem_id*/ ctx[1],
733				elem_classes: /*elem_classes*/ ctx[2],
734				container: /*container*/ ctx[7],
735				scale: /*scale*/ ctx[8],
736				min_width: /*min_width*/ ctx[9],
737				padding: false,
738				$$slots: { default: [create_default_slot] },
739				$$scope: { ctx }
740			}
741		});
742
743	return {
744		c() {
745			create_component(block.$$.fragment);
746		},
747		m(target, anchor) {
748			mount_component(block, target, anchor);
749			current = true;
750		},
751		p(ctx, [dirty]) {
752			const block_changes = {};
753			if (dirty & /*visible*/ 8) block_changes.visible = /*visible*/ ctx[3];
754			if (dirty & /*elem_id*/ 2) block_changes.elem_id = /*elem_id*/ ctx[1];
755			if (dirty & /*elem_classes*/ 4) block_changes.elem_classes = /*elem_classes*/ ctx[2];
756			if (dirty & /*container*/ 128) block_changes.container = /*container*/ ctx[7];
757			if (dirty & /*scale*/ 256) block_changes.scale = /*scale*/ ctx[8];
758			if (dirty & /*min_width*/ 512) block_changes.min_width = /*min_width*/ ctx[9];
759
760			if (dirty & /*$$scope, _selectable, value, color, gradio, _label, label, container, show_label, loading_status*/ 81137) {
761				block_changes.$$scope = { dirty, ctx };
762			}
763
764			block.$set(block_changes);
765		},
766		i(local) {
767			if (current) return;
768			transition_in(block.$$.fragment, local);
769			current = true;
770		},
771		o(local) {
772			transition_out(block.$$.fragment, local);
773			current = false;
774		},
775		d(detaching) {
776			destroy_component(block, detaching);
777		}
778	};
779}
780
781function instance($$self, $$props, $$invalidate) {
782	let confidences;
783	let _label;
784	let { gradio } = $$props;
785	let { elem_id = "" } = $$props;
786	let { elem_classes = [] } = $$props;
787	let { visible = true } = $$props;
788	let { color = undefined } = $$props;
789	let { value = {} } = $$props;
790	let { label = gradio.i18n("label.label") } = $$props;
791	let { container = true } = $$props;
792	let { scale = null } = $$props;
793	let { min_width = undefined } = $$props;
794	let { loading_status } = $$props;
795	let { show_label = true } = $$props;
796	let { _selectable = false } = $$props;
797	const select_handler = ({ detail }) => gradio.dispatch("select", detail);
798
799	$$self.$$set = $$props => {
800		if ('gradio' in $$props) $$invalidate(0, gradio = $$props.gradio);
801		if ('elem_id' in $$props) $$invalidate(1, elem_id = $$props.elem_id);
802		if ('elem_classes' in $$props) $$invalidate(2, elem_classes = $$props.elem_classes);
803		if ('visible' in $$props) $$invalidate(3, visible = $$props.visible);
804		if ('color' in $$props) $$invalidate(4, color = $$props.color);
805		if ('value' in $$props) $$invalidate(5, value = $$props.value);
806		if ('label' in $$props) $$invalidate(6, label = $$props.label);
807		if ('container' in $$props) $$invalidate(7, container = $$props.container);
808		if ('scale' in $$props) $$invalidate(8, scale = $$props.scale);
809		if ('min_width' in $$props) $$invalidate(9, min_width = $$props.min_width);
810		if ('loading_status' in $$props) $$invalidate(10, loading_status = $$props.loading_status);
811		if ('show_label' in $$props) $$invalidate(11, show_label = $$props.show_label);
812		if ('_selectable' in $$props) $$invalidate(12, _selectable = $$props._selectable);
813	};
814
815	$$self.$$.update = () => {
816		if ($$self.$$.dirty & /*value*/ 32) {
817			$$invalidate(14, { confidences, label: _label } = value, confidences, ($$invalidate(13, _label), $$invalidate(5, value)));
818		}
819
820		if ($$self.$$.dirty & /*_label, confidences, gradio*/ 24577) {
821			(gradio.dispatch("change"));
822		}
823	};
824
825	return [
826		gradio,
827		elem_id,
828		elem_classes,
829		visible,
830		color,
831		value,
832		label,
833		container,
834		scale,
835		min_width,
836		loading_status,
837		show_label,
838		_selectable,
839		_label,
840		confidences,
841		select_handler
842	];
843}
844
845class Index extends SvelteComponent {
846	constructor(options) {
847		super();
848
849		init(this, options, instance, create_fragment, safe_not_equal, {
850			gradio: 0,
851			elem_id: 1,
852			elem_classes: 2,
853			visible: 3,
854			color: 4,
855			value: 5,
856			label: 6,
857			container: 7,
858			scale: 8,
859			min_width: 9,
860			loading_status: 10,
861			show_label: 11,
862			_selectable: 12
863		});
864	}
865}
866
867export { Label$1 as BaseLabel, Index as default };
868//# sourceMappingURL=Index-c25f57ca.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.