import{p as k,g as P}from"./react-framework-CvIcIHJY.js";function S(u,d){for(var m=0;m<d.length;m++){const v=d[m];if(typeof v!="string"&&!Array.isArray(v)){for(const s in v)if(s!=="default"&&!(s in u)){const e=Object.getOwnPropertyDescriptor(v,s);e&&Object.defineProperty(u,s,e.get?e:{enumerable:!0,get:()=>v[s]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var b,C;function _(){if(C)return b;C=1;function u(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function d(s,e){for(var r="",i=0,t=-1,l=0,n,f=0;f<=s.length;++f){if(f<s.length)n=s.charCodeAt(f);else{if(n===47)break;n=47}if(n===47){if(!(t===f-1||l===1))if(t!==f-1&&l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var a=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",i=0):(r=r.slice(0,a),i=r.length-1-r.lastIndexOf("/")),t=f,l=0;continue}}else if(r.length===2||r.length===1){r="",i=0,t=f,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+s.slice(t+1,f):r=s.slice(t+1,f),i=f-t-1;t=f,l=0}else n===46&&l!==-1?++l:l=-1}return r}function m(s,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+s+i:i}var v={resolve:function(){for(var e="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(i===void 0&&(i=k.cwd()),l=i),u(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=d(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(u(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=d(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return u(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];u(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":v.normalize(e)},relative:function(e,r){if(u(e),u(r),e===r||(e=v.resolve(e),r=v.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var t=e.length,l=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var f=r.length,a=f-n,g=l<a?l:a,c=-1,o=0;o<=g;++o){if(o===g){if(a>g){if(r.charCodeAt(n+o)===47)return r.slice(n+o+1);if(o===0)return r.slice(n+o)}else l>g&&(e.charCodeAt(i+o)===47?c=o:o===0&&(c=0));break}var h=e.charCodeAt(i+o),w=r.charCodeAt(n+o);if(h!==w)break;h===47&&(c=o)}var A="";for(o=i+c+1;o<=t;++o)(o===t||e.charCodeAt(o)===47)&&(A.length===0?A+="..":A+="/..");return A.length>0?A+r.slice(n+c):(n+=c,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(u(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,t=-1,l=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!l){t=n;break}}else l=!1;return t===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');u(e);var i=0,t=-1,l=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,a=-1;for(n=e.length-1;n>=0;--n){var g=e.charCodeAt(n);if(g===47){if(!l){i=n+1;break}}else a===-1&&(l=!1,a=n+1),f>=0&&(g===r.charCodeAt(f)?--f===-1&&(t=n):(f=-1,t=a))}return i===t?t=a:t===-1&&(t=e.length),e.slice(i,t)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!l){i=n+1;break}}else t===-1&&(l=!1,t=n+1);return t===-1?"":e.slice(i,t)}},extname:function(e){u(e);for(var r=-1,i=0,t=-1,l=!0,n=0,f=e.length-1;f>=0;--f){var a=e.charCodeAt(f);if(a===47){if(!l){i=f+1;break}continue}t===-1&&(l=!1,t=f+1),a===46?r===-1?r=f:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return m("/",e)},parse:function(e){u(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(var n=-1,f=0,a=-1,g=!0,c=e.length-1,o=0;c>=l;--c){if(i=e.charCodeAt(c),i===47){if(!g){f=c+1;break}continue}a===-1&&(g=!1,a=c+1),i===46?n===-1?n=c:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||a===-1||o===0||o===1&&n===a-1&&n===f+1?a!==-1&&(f===0&&t?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(f,a)):(f===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,a)):(r.name=e.slice(f,n),r.base=e.slice(f,a)),r.ext=e.slice(n,a)),f>0?r.dir=e.slice(0,f-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return v.posix=v,b=v,b}var y=_();const D=P(y),L=S({__proto__:null,default:D},[y]);export{L as i};
