function h(a, g) {
  let n = "", l = 0;
  for (let r = 0; r < g.length; r++) {
    const t = g[r], e = a.slice(l, l + t.length);
    if (!e || (n += e, l += e.length, e.length === t.length && l < a.length && t.separator && (n += t.separator), e.length < t.length)) break;
  }
  return n;
}
export {
  h as default
};
//# sourceMappingURL=applyFormatFromParts.js.map
