/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/common-path-prefix@3.0.0/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";const{sep:DEFAULT_SEPARATOR}=require("path"),determineSeparator=t=>{for(const e of t){const t=/(\/|\\)/.exec(e);if(null!==t)return t[0]}return DEFAULT_SEPARATOR};module.exports=function(t,e=determineSeparator(t)){const[r="",...n]=t;if(""===r||0===n.length)return"";const o=r.split(e);let s=o.length;for(const t of n){const r=t.split(e);for(let t=0;t<s;t++)r[t]!==o[t]&&(s=t);if(0===s)return""}const i=o.slice(0,s).join(e);return i.endsWith(e)?i:i+e};
//# sourceMappingURL=/sm/5845fe9a1436a4eeae97a3a0e9ba3745f470de4bb4d9fd3157d230df206e144a.map