/*!
 * Built by ShiftSoftware
 * Copyright (c)
 */
const l=(l,o)=>(null==o?void 0:o.length)?`${l} ${Array.from(o).join(" ")}`:l;function o(o){var n,i,d,u,v,t,f,r,e;let s=o,a="",c=!1;for(;s&&!c;){const o=null===(n=s.getRootNode)||void 0===n?void 0:n.call(s);if(((null===(i=s.part)||void 0===i?void 0:i.contains("shift-form"))||(null===(d=s.classList)||void 0===d?void 0:d.contains("shift-form"))||(null===(u=s.part)||void 0===u?void 0:u.contains("shift-component"))||(null===(v=s.classList)||void 0===v?void 0:v.contains("shift-component")))&&(a=l(a,null!==(t=null==s?void 0:s.part)&&void 0!==t?t:null),a=l(a,null!==(f=null==s?void 0:s.classList)&&void 0!==f?f:null)),s.parentElement)s=s.parentElement;else{if(!(o instanceof ShadowRoot))break;s=o.host,a&&(c=!0)}}return c&&s&&(a=l(a,null!==(r=null==s?void 0:s.part)&&void 0!==r?r:null),a=l(a,null!==(e=null==s?void 0:s.classList)&&void 0!==e?e:null)),null==a?void 0:a.replaceAll("  "," ")}export{o as g}