import { S as Static } from './Index-f62c49f9.js';
import { B as Block } from './Button-723db480.js';
import { B as BlockLabel } from './BlockLabel-7be36365.js';
import { E as Empty } from './Empty-ee9cf9c4.js';
import './index-b5b16a51.js';
import './svelte/svelte.js';

/* home/runner/work/gradio/gradio/js/icons/src/LineChart.svelte generated by Svelte v4.2.2 */
const {
	SvelteComponent: SvelteComponent$2,
	append: append$1,
	attr: attr$1,
	detach: detach$2,
	init: init$2,
	insert: insert$2,
	noop: noop$1,
	safe_not_equal: safe_not_equal$2,
	svg_element
} = window.__gradio__svelte__internal;
function create_fragment$2(ctx) {
	let svg;
	let path;

	return {
		c() {
			svg = svg_element("svg");
			path = svg_element("path");
			attr$1(path, "fill", "currentColor");
			attr$1(path, "d", "M4 2H2v26a2 2 0 0 0 2 2h26v-2H4v-3h22v-8H4v-4h14V5H4Zm20 17v4H4v-4ZM16 7v4H4V7Z");
			attr$1(svg, "xmlns", "http://www.w3.org/2000/svg");
			attr$1(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
			attr$1(svg, "aria-hidden", "true");
			attr$1(svg, "role", "img");
			attr$1(svg, "class", "iconify iconify--carbon");
			attr$1(svg, "width", "100%");
			attr$1(svg, "height", "100%");
			attr$1(svg, "preserveAspectRatio", "xMidYMid meet");
			attr$1(svg, "viewBox", "0 0 32 32");
		},
		m(target, anchor) {
			insert$2(target, svg, anchor);
			append$1(svg, path);
		},
		p: noop$1,
		i: noop$1,
		o: noop$1,
		d(detaching) {
			if (detaching) {
				detach$2(svg);
			}
		}
	};
}

class LineChart extends SvelteComponent$2 {
	constructor(options) {
		super();
		init$2(this, options, null, create_fragment$2, safe_not_equal$2, {});
	}
}

const Label_svelte_svelte_type_style_lang = '';

/* home/runner/work/gradio/gradio/js/label/shared/Label.svelte generated by Svelte v4.2.2 */
const {
	SvelteComponent: SvelteComponent$1,
	append,
	attr,
	destroy_each,
	detach: detach$1,
	element,
	empty: empty$1,
	ensure_array_like,
	init: init$1,
	insert: insert$1,
	listen,
	noop,
	safe_not_equal: safe_not_equal$1,
	set_data,
	set_style,
	space: space$1,
	text,
	toggle_class
} = window.__gradio__svelte__internal;
const { createEventDispatcher } = window.__gradio__svelte__internal;
function get_each_context(ctx, list, i) {
	const child_ctx = ctx.slice();
	child_ctx[5] = list[i];
	child_ctx[7] = i;
	return child_ctx;
}

// (18:1) {#if typeof value === "object" && value.confidences}
function create_if_block$1(ctx) {
	let each_1_anchor;
	let each_value = ensure_array_like(/*value*/ ctx[0].confidences);
	let each_blocks = [];

	for (let i = 0; i < each_value.length; i += 1) {
		each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
	}

	return {
		c() {
			for (let i = 0; i < each_blocks.length; i += 1) {
				each_blocks[i].c();
			}

			each_1_anchor = empty$1();
		},
		m(target, anchor) {
			for (let i = 0; i < each_blocks.length; i += 1) {
				if (each_blocks[i]) {
					each_blocks[i].m(target, anchor);
				}
			}

			insert$1(target, each_1_anchor, anchor);
		},
		p(ctx, dirty) {
			if (dirty & /*value, selectable, dispatch, Math*/ 13) {
				each_value = ensure_array_like(/*value*/ ctx[0].confidences);
				let i;

				for (i = 0; i < each_value.length; i += 1) {
					const child_ctx = get_each_context(ctx, each_value, i);

					if (each_blocks[i]) {
						each_blocks[i].p(child_ctx, dirty);
					} else {
						each_blocks[i] = create_each_block(child_ctx);
						each_blocks[i].c();
						each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
					}
				}

				for (; i < each_blocks.length; i += 1) {
					each_blocks[i].d(1);
				}

				each_blocks.length = each_value.length;
			}
		},
		d(detaching) {
			if (detaching) {
				detach$1(each_1_anchor);
			}

			destroy_each(each_blocks, detaching);
		}
	};
}

// (45:6) {#if value.confidences}
function create_if_block_1$1(ctx) {
	let div;
	let dd;
	let t0_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "";
	let t0;
	let t1;

	return {
		c() {
			div = element("div");
			dd = element("dd");
			t0 = text(t0_value);
			t1 = text("%");
			attr(div, "class", "line svelte-1pq4gst");
			attr(dd, "class", "confidence svelte-1pq4gst");
		},
		m(target, anchor) {
			insert$1(target, div, anchor);
			insert$1(target, dd, anchor);
			append(dd, t0);
			append(dd, t1);
		},
		p(ctx, dirty) {
			if (dirty & /*value*/ 1 && t0_value !== (t0_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "")) set_data(t0, t0_value);
		},
		d(detaching) {
			if (detaching) {
				detach$1(div);
				detach$1(dd);
			}
		}
	};
}

// (19:2) {#each value.confidences as confidence_set, i}
function create_each_block(ctx) {
	let button;
	let div;
	let meter;
	let meter_value_value;
	let meter_aria_label_value;
	let t0;
	let dl;
	let dt;
	let t1_value = /*confidence_set*/ ctx[5].label + "";
	let t1;
	let t2;
	let dt_id_value;
	let t3;
	let button_data_testid_value;
	let mounted;
	let dispose;
	let if_block = /*value*/ ctx[0].confidences && create_if_block_1$1(ctx);

	function click_handler() {
		return /*click_handler*/ ctx[4](/*i*/ ctx[7], /*confidence_set*/ ctx[5]);
	}

	return {
		c() {
			button = element("button");
			div = element("div");
			meter = element("meter");
			t0 = space$1();
			dl = element("dl");
			dt = element("dt");
			t1 = text(t1_value);
			t2 = space$1();
			if (if_block) if_block.c();
			t3 = space$1();
			attr(meter, "aria-labelledby", "meter-text");
			attr(meter, "class", "bar svelte-1pq4gst");
			attr(meter, "min", "0");
			attr(meter, "max", "100");
			set_style(meter, "width", /*confidence_set*/ ctx[5].confidence * 100 + "%");
			set_style(meter, "background", "var(--stat-background-fill)");
			meter.value = meter_value_value = /*confidence_set*/ ctx[5].confidence * 100;
			attr(meter, "aria-label", meter_aria_label_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "%");
			attr(dt, "id", dt_id_value = `meter-text-${/*confidence_set*/ ctx[5].label}`);
			attr(dt, "class", "text svelte-1pq4gst");
			attr(dl, "class", "label svelte-1pq4gst");
			attr(div, "class", "inner-wrap svelte-1pq4gst");
			attr(button, "class", "confidence-set group svelte-1pq4gst");
			attr(button, "data-testid", button_data_testid_value = `${/*confidence_set*/ ctx[5].label}-confidence-set`);
			toggle_class(button, "selectable", /*selectable*/ ctx[2]);
		},
		m(target, anchor) {
			insert$1(target, button, anchor);
			append(button, div);
			append(div, meter);
			append(div, t0);
			append(div, dl);
			append(dl, dt);
			append(dt, t1);
			append(dt, t2);
			if (if_block) if_block.m(dl, null);
			append(button, t3);

			if (!mounted) {
				dispose = listen(button, "click", click_handler);
				mounted = true;
			}
		},
		p(new_ctx, dirty) {
			ctx = new_ctx;

			if (dirty & /*value*/ 1) {
				set_style(meter, "width", /*confidence_set*/ ctx[5].confidence * 100 + "%");
			}

			if (dirty & /*value*/ 1 && meter_value_value !== (meter_value_value = /*confidence_set*/ ctx[5].confidence * 100)) {
				meter.value = meter_value_value;
			}

			if (dirty & /*value*/ 1 && meter_aria_label_value !== (meter_aria_label_value = Math.round(/*confidence_set*/ ctx[5].confidence * 100) + "%")) {
				attr(meter, "aria-label", meter_aria_label_value);
			}

			if (dirty & /*value*/ 1 && t1_value !== (t1_value = /*confidence_set*/ ctx[5].label + "")) set_data(t1, t1_value);

			if (dirty & /*value*/ 1 && dt_id_value !== (dt_id_value = `meter-text-${/*confidence_set*/ ctx[5].label}`)) {
				attr(dt, "id", dt_id_value);
			}

			if (/*value*/ ctx[0].confidences) {
				if (if_block) {
					if_block.p(ctx, dirty);
				} else {
					if_block = create_if_block_1$1(ctx);
					if_block.c();
					if_block.m(dl, null);
				}
			} else if (if_block) {
				if_block.d(1);
				if_block = null;
			}

			if (dirty & /*value*/ 1 && button_data_testid_value !== (button_data_testid_value = `${/*confidence_set*/ ctx[5].label}-confidence-set`)) {
				attr(button, "data-testid", button_data_testid_value);
			}

			if (dirty & /*selectable*/ 4) {
				toggle_class(button, "selectable", /*selectable*/ ctx[2]);
			}
		},
		d(detaching) {
			if (detaching) {
				detach$1(button);
			}

			if (if_block) if_block.d();
			mounted = false;
			dispose();
		}
	};
}

function create_fragment$1(ctx) {
	let div;
	let h2;
	let t0_value = /*value*/ ctx[0].label + "";
	let t0;
	let t1;
	let if_block = typeof /*value*/ ctx[0] === "object" && /*value*/ ctx[0].confidences && create_if_block$1(ctx);

	return {
		c() {
			div = element("div");
			h2 = element("h2");
			t0 = text(t0_value);
			t1 = space$1();
			if (if_block) if_block.c();
			attr(h2, "class", "output-class svelte-1pq4gst");
			attr(h2, "data-testid", "label-output-value");
			toggle_class(h2, "no-confidence", !("confidences" in /*value*/ ctx[0]));
			set_style(h2, "background-color", /*color*/ ctx[1] || "transparent");
			attr(div, "class", "container svelte-1pq4gst");
		},
		m(target, anchor) {
			insert$1(target, div, anchor);
			append(div, h2);
			append(h2, t0);
			append(div, t1);
			if (if_block) if_block.m(div, null);
		},
		p(ctx, [dirty]) {
			if (dirty & /*value*/ 1 && t0_value !== (t0_value = /*value*/ ctx[0].label + "")) set_data(t0, t0_value);

			if (dirty & /*value*/ 1) {
				toggle_class(h2, "no-confidence", !("confidences" in /*value*/ ctx[0]));
			}

			if (dirty & /*color*/ 2) {
				set_style(h2, "background-color", /*color*/ ctx[1] || "transparent");
			}

			if (typeof /*value*/ ctx[0] === "object" && /*value*/ ctx[0].confidences) {
				if (if_block) {
					if_block.p(ctx, dirty);
				} else {
					if_block = create_if_block$1(ctx);
					if_block.c();
					if_block.m(div, null);
				}
			} else if (if_block) {
				if_block.d(1);
				if_block = null;
			}
		},
		i: noop,
		o: noop,
		d(detaching) {
			if (detaching) {
				detach$1(div);
			}

			if (if_block) if_block.d();
		}
	};
}

function instance$1($$self, $$props, $$invalidate) {
	let { value } = $$props;
	const dispatch = createEventDispatcher();
	let { color = undefined } = $$props;
	let { selectable = false } = $$props;

	const click_handler = (i, confidence_set) => {
		dispatch("select", { index: i, value: confidence_set.label });
	};

	$$self.$$set = $$props => {
		if ('value' in $$props) $$invalidate(0, value = $$props.value);
		if ('color' in $$props) $$invalidate(1, color = $$props.color);
		if ('selectable' in $$props) $$invalidate(2, selectable = $$props.selectable);
	};

	return [value, color, selectable, dispatch, click_handler];
}

class Label extends SvelteComponent$1 {
	constructor(options) {
		super();
		init$1(this, options, instance$1, create_fragment$1, safe_not_equal$1, { value: 0, color: 1, selectable: 2 });
	}
}

const Label$1 = Label;

/* home/runner/work/gradio/gradio/js/label/Index.svelte generated by Svelte v4.2.2 */
const {
	SvelteComponent,
	assign,
	check_outros,
	create_component,
	destroy_component,
	detach,
	empty,
	get_spread_object,
	get_spread_update,
	group_outros,
	init,
	insert,
	mount_component,
	safe_not_equal,
	space,
	transition_in,
	transition_out
} = window.__gradio__svelte__internal;
function create_if_block_1(ctx) {
	let blocklabel;
	let current;

	blocklabel = new BlockLabel({
			props: {
				Icon: LineChart,
				label: /*label*/ ctx[6],
				disable: /*container*/ ctx[7] === false
			}
		});

	return {
		c() {
			create_component(blocklabel.$$.fragment);
		},
		m(target, anchor) {
			mount_component(blocklabel, target, anchor);
			current = true;
		},
		p(ctx, dirty) {
			const blocklabel_changes = {};
			if (dirty & /*label*/ 64) blocklabel_changes.label = /*label*/ ctx[6];
			if (dirty & /*container*/ 128) blocklabel_changes.disable = /*container*/ ctx[7] === false;
			blocklabel.$set(blocklabel_changes);
		},
		i(local) {
			if (current) return;
			transition_in(blocklabel.$$.fragment, local);
			current = true;
		},
		o(local) {
			transition_out(blocklabel.$$.fragment, local);
			current = false;
		},
		d(detaching) {
			destroy_component(blocklabel, detaching);
		}
	};
}

// (50:1) {:else}
function create_else_block(ctx) {
	let empty_1;
	let current;

	empty_1 = new Empty({
			props: {
				unpadded_box: true,
				$$slots: { default: [create_default_slot_1] },
				$$scope: { ctx }
			}
		});

	return {
		c() {
			create_component(empty_1.$$.fragment);
		},
		m(target, anchor) {
			mount_component(empty_1, target, anchor);
			current = true;
		},
		p(ctx, dirty) {
			const empty_1_changes = {};

			if (dirty & /*$$scope*/ 65536) {
				empty_1_changes.$$scope = { dirty, ctx };
			}

			empty_1.$set(empty_1_changes);
		},
		i(local) {
			if (current) return;
			transition_in(empty_1.$$.fragment, local);
			current = true;
		},
		o(local) {
			transition_out(empty_1.$$.fragment, local);
			current = false;
		},
		d(detaching) {
			destroy_component(empty_1, detaching);
		}
	};
}

// (43:1) {#if _label !== undefined && _label !== null}
function create_if_block(ctx) {
	let label_1;
	let current;

	label_1 = new Label$1({
			props: {
				selectable: /*_selectable*/ ctx[12],
				value: /*value*/ ctx[5],
				color: /*color*/ ctx[4]
			}
		});

	label_1.$on("select", /*select_handler*/ ctx[15]);

	return {
		c() {
			create_component(label_1.$$.fragment);
		},
		m(target, anchor) {
			mount_component(label_1, target, anchor);
			current = true;
		},
		p(ctx, dirty) {
			const label_1_changes = {};
			if (dirty & /*_selectable*/ 4096) label_1_changes.selectable = /*_selectable*/ ctx[12];
			if (dirty & /*value*/ 32) label_1_changes.value = /*value*/ ctx[5];
			if (dirty & /*color*/ 16) label_1_changes.color = /*color*/ ctx[4];
			label_1.$set(label_1_changes);
		},
		i(local) {
			if (current) return;
			transition_in(label_1.$$.fragment, local);
			current = true;
		},
		o(local) {
			transition_out(label_1.$$.fragment, local);
			current = false;
		},
		d(detaching) {
			destroy_component(label_1, detaching);
		}
	};
}

// (51:2) <Empty unpadded_box={true}>
function create_default_slot_1(ctx) {
	let labelicon;
	let current;
	labelicon = new LineChart({});

	return {
		c() {
			create_component(labelicon.$$.fragment);
		},
		m(target, anchor) {
			mount_component(labelicon, target, anchor);
			current = true;
		},
		i(local) {
			if (current) return;
			transition_in(labelicon.$$.fragment, local);
			current = true;
		},
		o(local) {
			transition_out(labelicon.$$.fragment, local);
			current = false;
		},
		d(detaching) {
			destroy_component(labelicon, detaching);
		}
	};
}

// (25:0) <Block  test_id="label"  {visible}  {elem_id}  {elem_classes}  {container}  {scale}  {min_width}  padding={false} >
function create_default_slot(ctx) {
	let statustracker;
	let t0;
	let t1;
	let current_block_type_index;
	let if_block1;
	let if_block1_anchor;
	let current;

	const statustracker_spread_levels = [
		{ autoscroll: /*gradio*/ ctx[0].autoscroll },
		{ i18n: /*gradio*/ ctx[0].i18n },
		/*loading_status*/ ctx[10]
	];

	let statustracker_props = {};

	for (let i = 0; i < statustracker_spread_levels.length; i += 1) {
		statustracker_props = assign(statustracker_props, statustracker_spread_levels[i]);
	}

	statustracker = new Static({ props: statustracker_props });
	let if_block0 = /*show_label*/ ctx[11] && create_if_block_1(ctx);
	const if_block_creators = [create_if_block, create_else_block];
	const if_blocks = [];

	function select_block_type(ctx, dirty) {
		if (/*_label*/ ctx[13] !== undefined && /*_label*/ ctx[13] !== null) return 0;
		return 1;
	}

	current_block_type_index = select_block_type(ctx);
	if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);

	return {
		c() {
			create_component(statustracker.$$.fragment);
			t0 = space();
			if (if_block0) if_block0.c();
			t1 = space();
			if_block1.c();
			if_block1_anchor = empty();
		},
		m(target, anchor) {
			mount_component(statustracker, target, anchor);
			insert(target, t0, anchor);
			if (if_block0) if_block0.m(target, anchor);
			insert(target, t1, anchor);
			if_blocks[current_block_type_index].m(target, anchor);
			insert(target, if_block1_anchor, anchor);
			current = true;
		},
		p(ctx, dirty) {
			const statustracker_changes = (dirty & /*gradio, loading_status*/ 1025)
			? get_spread_update(statustracker_spread_levels, [
					dirty & /*gradio*/ 1 && { autoscroll: /*gradio*/ ctx[0].autoscroll },
					dirty & /*gradio*/ 1 && { i18n: /*gradio*/ ctx[0].i18n },
					dirty & /*loading_status*/ 1024 && get_spread_object(/*loading_status*/ ctx[10])
				])
			: {};

			statustracker.$set(statustracker_changes);

			if (/*show_label*/ ctx[11]) {
				if (if_block0) {
					if_block0.p(ctx, dirty);

					if (dirty & /*show_label*/ 2048) {
						transition_in(if_block0, 1);
					}
				} else {
					if_block0 = create_if_block_1(ctx);
					if_block0.c();
					transition_in(if_block0, 1);
					if_block0.m(t1.parentNode, t1);
				}
			} else if (if_block0) {
				group_outros();

				transition_out(if_block0, 1, 1, () => {
					if_block0 = null;
				});

				check_outros();
			}

			let previous_block_index = current_block_type_index;
			current_block_type_index = select_block_type(ctx);

			if (current_block_type_index === previous_block_index) {
				if_blocks[current_block_type_index].p(ctx, dirty);
			} else {
				group_outros();

				transition_out(if_blocks[previous_block_index], 1, 1, () => {
					if_blocks[previous_block_index] = null;
				});

				check_outros();
				if_block1 = if_blocks[current_block_type_index];

				if (!if_block1) {
					if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
					if_block1.c();
				} else {
					if_block1.p(ctx, dirty);
				}

				transition_in(if_block1, 1);
				if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
			}
		},
		i(local) {
			if (current) return;
			transition_in(statustracker.$$.fragment, local);
			transition_in(if_block0);
			transition_in(if_block1);
			current = true;
		},
		o(local) {
			transition_out(statustracker.$$.fragment, local);
			transition_out(if_block0);
			transition_out(if_block1);
			current = false;
		},
		d(detaching) {
			if (detaching) {
				detach(t0);
				detach(t1);
				detach(if_block1_anchor);
			}

			destroy_component(statustracker, detaching);
			if (if_block0) if_block0.d(detaching);
			if_blocks[current_block_type_index].d(detaching);
		}
	};
}

function create_fragment(ctx) {
	let block;
	let current;

	block = new Block({
			props: {
				test_id: "label",
				visible: /*visible*/ ctx[3],
				elem_id: /*elem_id*/ ctx[1],
				elem_classes: /*elem_classes*/ ctx[2],
				container: /*container*/ ctx[7],
				scale: /*scale*/ ctx[8],
				min_width: /*min_width*/ ctx[9],
				padding: false,
				$$slots: { default: [create_default_slot] },
				$$scope: { ctx }
			}
		});

	return {
		c() {
			create_component(block.$$.fragment);
		},
		m(target, anchor) {
			mount_component(block, target, anchor);
			current = true;
		},
		p(ctx, [dirty]) {
			const block_changes = {};
			if (dirty & /*visible*/ 8) block_changes.visible = /*visible*/ ctx[3];
			if (dirty & /*elem_id*/ 2) block_changes.elem_id = /*elem_id*/ ctx[1];
			if (dirty & /*elem_classes*/ 4) block_changes.elem_classes = /*elem_classes*/ ctx[2];
			if (dirty & /*container*/ 128) block_changes.container = /*container*/ ctx[7];
			if (dirty & /*scale*/ 256) block_changes.scale = /*scale*/ ctx[8];
			if (dirty & /*min_width*/ 512) block_changes.min_width = /*min_width*/ ctx[9];

			if (dirty & /*$$scope, _selectable, value, color, gradio, _label, label, container, show_label, loading_status*/ 81137) {
				block_changes.$$scope = { dirty, ctx };
			}

			block.$set(block_changes);
		},
		i(local) {
			if (current) return;
			transition_in(block.$$.fragment, local);
			current = true;
		},
		o(local) {
			transition_out(block.$$.fragment, local);
			current = false;
		},
		d(detaching) {
			destroy_component(block, detaching);
		}
	};
}

function instance($$self, $$props, $$invalidate) {
	let confidences;
	let _label;
	let { gradio } = $$props;
	let { elem_id = "" } = $$props;
	let { elem_classes = [] } = $$props;
	let { visible = true } = $$props;
	let { color = undefined } = $$props;
	let { value = {} } = $$props;
	let { label = gradio.i18n("label.label") } = $$props;
	let { container = true } = $$props;
	let { scale = null } = $$props;
	let { min_width = undefined } = $$props;
	let { loading_status } = $$props;
	let { show_label = true } = $$props;
	let { _selectable = false } = $$props;
	const select_handler = ({ detail }) => gradio.dispatch("select", detail);

	$$self.$$set = $$props => {
		if ('gradio' in $$props) $$invalidate(0, gradio = $$props.gradio);
		if ('elem_id' in $$props) $$invalidate(1, elem_id = $$props.elem_id);
		if ('elem_classes' in $$props) $$invalidate(2, elem_classes = $$props.elem_classes);
		if ('visible' in $$props) $$invalidate(3, visible = $$props.visible);
		if ('color' in $$props) $$invalidate(4, color = $$props.color);
		if ('value' in $$props) $$invalidate(5, value = $$props.value);
		if ('label' in $$props) $$invalidate(6, label = $$props.label);
		if ('container' in $$props) $$invalidate(7, container = $$props.container);
		if ('scale' in $$props) $$invalidate(8, scale = $$props.scale);
		if ('min_width' in $$props) $$invalidate(9, min_width = $$props.min_width);
		if ('loading_status' in $$props) $$invalidate(10, loading_status = $$props.loading_status);
		if ('show_label' in $$props) $$invalidate(11, show_label = $$props.show_label);
		if ('_selectable' in $$props) $$invalidate(12, _selectable = $$props._selectable);
	};

	$$self.$$.update = () => {
		if ($$self.$$.dirty & /*value*/ 32) {
			$$invalidate(14, { confidences, label: _label } = value, confidences, ($$invalidate(13, _label), $$invalidate(5, value)));
		}

		if ($$self.$$.dirty & /*_label, confidences, gradio*/ 24577) {
			(gradio.dispatch("change"));
		}
	};

	return [
		gradio,
		elem_id,
		elem_classes,
		visible,
		color,
		value,
		label,
		container,
		scale,
		min_width,
		loading_status,
		show_label,
		_selectable,
		_label,
		confidences,
		select_handler
	];
}

class Index extends SvelteComponent {
	constructor(options) {
		super();

		init(this, options, instance, create_fragment, safe_not_equal, {
			gradio: 0,
			elem_id: 1,
			elem_classes: 2,
			visible: 3,
			color: 4,
			value: 5,
			label: 6,
			container: 7,
			scale: 8,
			min_width: 9,
			loading_status: 10,
			show_label: 11,
			_selectable: 12
		});
	}
}

export { Label$1 as BaseLabel, Index as default };
//# sourceMappingURL=Index-53940bb8.js.map
