import{Mt as e}from"./StreamlitMarkdown.DgiZKHgf.js";function t(t,n){let{id:r,"aria-label":i,"aria-labelledby":a}=t;return r=e(r),a&&i?a=[...new Set([r,...a.trim().split(/\s+/)])].join(` `):a&&=a.trim().split(/\s+/).join(` `),!i&&!a&&n&&(i=n),{id:r,"aria-label":i,"aria-labelledby":a}}function n(n){let{id:r,label:i,"aria-labelledby":a,"aria-label":o,labelElementType:s=`label`}=n;r=e(r);let c=e(),l={};i&&(a=a?`${c} ${a}`:c,l={id:c,htmlFor:s===`label`?r:void 0});let u=t({id:r,"aria-label":o,"aria-labelledby":a});return{labelProps:l,fieldProps:u}}export{t as n,n as t};