stofli-ui
Version:
Biblioteca moderna de componentes UI para React con Tailwind CSS y Framer Motion
12 lines (11 loc) • 48.6 kB
JavaScript
'use client';
;var e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom"),o=require("clsx"),r=require("tailwind-merge");function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,a={},u={};function l(){if(s)return u;return s=1,u._=u._interop_require_default=function(e){return e&&e.__esModule?e:{default:e}},u}var c,p={},d={};function f(){return c||(c=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"warnOnce",{enumerable:!0,get:function(){return t}});let t=e=>{};if("production"!==process.env.NODE_ENV){const e=new Set;t=t=>{e.has(t)||console.warn(t),e.add(t)}}}(d)),d}var h,g={};var m,y,b={};function _(){return m||(m=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{VALID_LOADERS:function(){return t},imageConfigDefault:function(){return n}});const t=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}}(b)),b}function v(){return y||(y=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return c}});const t=f(),n=(h||(h=1,function(e){function t(e){let{widthInt:t,heightInt:n,blurWidth:o,blurHeight:r,blurDataURL:i,objectFit:s}=e;const a=o?40*o:t,u=r?40*r:n,l=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return t}})}(g)),g),o=_(),r=["lazy","eager",void 0];function i(e){return void 0!==e.default}const s=new Map;let a;function u(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e){let{config:t,src:n,unoptimized:o,width:r,quality:i,sizes:s,loader:a}=e;if(o)return{src:n,srcSet:void 0,sizes:void 0};const{widths:u,kind:l}=function(e,t,n){let{deviceSizes:o,allSizes:r}=e;if(n){const e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let o;o=e.exec(n);o)t.push(parseInt(o[2]));if(t.length){const e=.01*Math.min(...t);return{widths:r.filter((t=>t>=o[0]*e)),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof t?{widths:o,kind:"w"}:{widths:[...new Set([t,2*t].map((e=>r.find((t=>t>=e))||r[r.length-1])))],kind:"x"}}(t,r,s),c=u.length-1;return{sizes:s||"w"!==l?s:"100vw",srcSet:u.map(((e,o)=>a({config:t,src:n,quality:i,width:e})+" "+("w"===l?e:o+1)+l)).join(", "),src:a({config:t,src:n,quality:i,width:u[c]})}}function c(e,c){let{src:p,sizes:d,unoptimized:f=!1,priority:h=!1,loading:g,className:m,quality:y,width:b,height:_,fill:v=!1,style:w,overrideSrc:E,onLoad:A,onLoadingComplete:R,placeholder:x="empty",blurDataURL:C,fetchPriority:S,layout:O,objectFit:$,objectPosition:L,lazyBoundary:I,lazyRoot:N,...P}=e;const{imgConf:T,showAltText:H,blurComplete:k,defaultLoader:j}=c;let M,D=T||o.imageConfigDefault;if("allSizes"in D)M=D;else{const e=[...D.deviceSizes,...D.imageSizes].sort(((e,t)=>e-t)),t=D.deviceSizes.sort(((e,t)=>e-t));M={...D,allSizes:e,deviceSizes:t}}if(void 0===j)throw new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let z=P.loader||j;delete P.loader,delete P.srcSet;const B="__next_img_default"in z;if(B){if("custom"===M.loader)throw new Error('Image with src "'+p+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{const e=z;z=t=>{const{config:n,...o}=t;return e(o)}}if(O){"fill"===O&&(v=!0);const e={responsive:"100vw",fill:"100vw"},t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];t&&(w={...w,...t});const n=e[O];n&&!d&&(d=n)}let U,G,F="",q=u(b),K=u(_);if(function(e){return"object"==typeof e&&(i(e)||function(e){return void 0!==e.src}(e))}(p)){const e=i(p)?p.default:p;if(!e.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(U=e.blurWidth,G=e.blurHeight,C=C||e.blurDataURL,F=e.src,!v)if(q||K){if(q&&!K){const t=q/e.width;K=Math.round(e.height*t)}else if(!q&&K){const t=K/e.height;q=Math.round(e.width*t)}}else q=e.width,K=e.height}p="string"==typeof p?p:F;let X=!h&&("lazy"===g||void 0===g);(!p||p.startsWith("data:")||p.startsWith("blob:"))&&(f=!0,X=!1),M.unoptimized&&(f=!0),B&&p.endsWith(".svg")&&!M.dangerouslyAllowSVG&&(f=!0),h&&(S="high");const W=u(y);if("production"!==process.env.NODE_ENV){if("export"===M.output&&B&&!f)throw new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api");if(p)if(v){if(b)throw new Error('Image with src "'+p+'" has both "width" and "fill" properties. Only one should be used.');if(_)throw new Error('Image with src "'+p+'" has both "height" and "fill" properties. Only one should be used.');if((null==w?void 0:w.position)&&"absolute"!==w.position)throw new Error('Image with src "'+p+'" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.');if((null==w?void 0:w.width)&&"100%"!==w.width)throw new Error('Image with src "'+p+'" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.');if((null==w?void 0:w.height)&&"100%"!==w.height)throw new Error('Image with src "'+p+'" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.')}else{if(void 0===q)throw new Error('Image with src "'+p+'" is missing required "width" property.');if(isNaN(q))throw new Error('Image with src "'+p+'" has invalid "width" property. Expected a numeric value in pixels but received "'+b+'".');if(void 0===K)throw new Error('Image with src "'+p+'" is missing required "height" property.');if(isNaN(K))throw new Error('Image with src "'+p+'" has invalid "height" property. Expected a numeric value in pixels but received "'+_+'".')}else f=!0;if(!r.includes(g))throw new Error('Image with src "'+p+'" has invalid "loading" property. Provided "'+g+'" should be one of '+r.map(String).join(",")+".");if(h&&"lazy"===g)throw new Error('Image with src "'+p+'" has both "priority" and "loading=\'lazy\'" properties. Only one should be used.');if("empty"!==x&&"blur"!==x&&!x.startsWith("data:image/"))throw new Error('Image with src "'+p+'" has invalid "placeholder" property "'+x+'".');if("empty"!==x&&q&&K&&q*K<1600&&(0,t.warnOnce)('Image with src "'+p+'" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'),"blur"===x&&!C){throw new Error('Image with src "'+p+'" has "placeholder=\'blur\'" property but is missing the "blurDataURL" property.\n Possible solutions:\n - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image\n - Change the "src" property to a static import with one of the supported file types: '+["jpeg","png","webp","avif"].join(",")+' (animated images not supported)\n - Remove the "placeholder" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url')}if("ref"in P&&(0,t.warnOnce)('Image with src "'+p+'" is using unsupported "ref" property. Consider using the "onLoad" property instead.'),!f&&!B){const e=z({config:M,src:p,width:q||400,quality:W||75});let n;try{n=new URL(e)}catch(e){}(e===p||n&&n.pathname===p&&!n.search)&&(0,t.warnOnce)('Image with src "'+p+'" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width')}R&&(0,t.warnOnce)('Image with src "'+p+'" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');for(const[e,n]of Object.entries({layout:O,objectFit:$,objectPosition:L,lazyBoundary:I,lazyRoot:N}))n&&(0,t.warnOnce)('Image with src "'+p+'" has legacy prop "'+e+'". Did you forget to run the codemod?\nRead more: https://nextjs.org/docs/messages/next-image-upgrade-to-13');if("undefined"!=typeof window&&!a&&window.PerformanceObserver){a=new PerformanceObserver((e=>{for(const o of e.getEntries()){var n;const e=(null==o||null==(n=o.element)?void 0:n.src)||"",r=s.get(e);!r||r.priority||"empty"!==r.placeholder||r.src.startsWith("data:")||r.src.startsWith("blob:")||(0,t.warnOnce)('Image with src "'+r.src+'" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.\nRead more: https://nextjs.org/docs/api-reference/next/image#priority')}}));try{a.observe({type:"largest-contentful-paint",buffered:!0})}catch(e){console.error(e)}}}const V=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:$,objectPosition:L}:{},H?{}:{color:"transparent"},w),Q=k||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:q,heightInt:K,blurWidth:U,blurHeight:G,blurDataURL:C||"",objectFit:V.objectFit})+'")':'url("'+x+'")';let Y=Q?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{};"development"===process.env.NODE_ENV&&Y.backgroundImage&&"blur"===x&&(null==C?void 0:C.startsWith("/"))&&(Y.backgroundImage='url("'+C+'")');const Z=l({config:M,src:p,unoptimized:f,width:q,quality:W,sizes:d,loader:z});if("production"!==process.env.NODE_ENV&&"undefined"!=typeof window){let e;try{e=new URL(Z.src)}catch(t){e=new URL(Z.src,window.location.href)}s.set(e.href,{src:p,priority:h,placeholder:x})}return{props:{...P,loading:X?"lazy":g,fetchPriority:S,width:q,height:K,decoding:"async",className:m,style:{...V,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:E||Z.src},meta:{unoptimized:f,priority:h,placeholder:x,fill:v}}}}(p)),p}var w,E={exports:{}},A={};function R(){if(w)return A;function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(e=function(e){return e?o:n})(t)}return w=1,A._=A._interop_require_wildcard=function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=e(n);if(o&&o.has(t))return o.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=t[s]}r.default=t,o&&o.set(t,r);return r},A}var x,C={exports:{}},S={};var O,$={};var L,I={};var N,P,T={};function H(){return P||(P=1,function(n,o){Object.defineProperty(o,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(o,{default:function(){return b},defaultHead:function(){return h}});const r=/*@__PURE__*/l(),i=e,s=/*#__PURE__*/ /*@__PURE__*/R()._(t),a=/*#__PURE__*/r._((x||(x=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});const n=t,o="undefined"==typeof window,r=o?()=>{}:n.useLayoutEffect,i=o?()=>{}:n.useEffect;function s(e){const{headManager:t,reduceComponentsToState:s}=e;function a(){if(t&&t.mountedInstances){const o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(s(o,e))}}var u;return o&&(null==t||null==(u=t.mountedInstances)||u.add(e.children),a()),r((()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}})),r((()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)}))),i((()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}))),null}}(S)),S)),u=(O||(O=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});const n=/*#__PURE__*/ /*@__PURE__*/l()._(t).default.createContext({});"production"!==process.env.NODE_ENV&&(n.displayName="AmpStateContext")}($)),$),c=(L||(L=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=/*#__PURE__*/ /*@__PURE__*/l()._(t).default.createContext({});"production"!==process.env.NODE_ENV&&(n.displayName="HeadManagerContext")}(I)),I),p=(N||(N=1,function(e){function t(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:o=!1}=void 0===e?{}:e;return t||n&&o}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return t}})}(T)),T),d=f();function h(e){void 0===e&&(e=!1);const t=[
/*#__PURE__*/
/*#__PURE__*/(0,i.jsx)("meta",{charSet:"utf-8"})];return e||t.push(/*#__PURE__*/ /*#__PURE__*/(0,i.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function g(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce(((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t)),[])):e.concat(t)}const m=["name","httpEquiv","charSet","itemProp"];function y(e,t){const{inAmpMode:n}=t;return e.reduce(g,[]).reverse().concat(h(n).reverse()).filter(function(){const e=new Set,t=new Set,n=new Set,o={};return r=>{let i=!0,s=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){s=!0;const t=r.key.slice(r.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(r.type){case"title":case"base":t.has(r.type)?i=!1:t.add(r.type);break;case"meta":for(let e=0,t=m.length;e<t;e++){const t=m[e];if(r.props.hasOwnProperty(t))if("charSet"===t)n.has(t)?i=!1:n.add(t);else{const e=r.props[t],n=o[t]||new Set;"name"===t&&s||!n.has(e)?(n.add(e),o[t]=n):i=!1}}}return i}}()).reverse().map(((e,t)=>{const o=e.key||t;if("development"!==process.env.NODE_ENV&&process.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((t=>e.props.href.startsWith(t)))){const t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,/*#__PURE__*/s.default.cloneElement(e,t)}if("development"===process.env.NODE_ENV)if("script"===e.type&&"application/ld+json"!==e.props.type){const t=e.props.src?'<script> tag with src="'+e.props.src+'"':"inline <script>";(0,d.warnOnce)("Do not add <script> tags using next/head (see "+t+"). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component")}else"link"===e.type&&"stylesheet"===e.props.rel&&(0,d.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="'+e.props.href+'"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component');/*#__PURE__*/
return s.default.cloneElement(e,{key:o})}))}const b=function(e){let{children:t}=e;const n=(0,s.useContext)(u.AmpStateContext),o=(0,s.useContext)(c.HeadManagerContext);/*#__PURE__*/ /*#__PURE__*/
return(0,i.jsx)(a.default,{reduceComponentsToState:y,headManager:o,inAmpMode:(0,p.isInAmpMode)(n),children:t})};("function"==typeof o.default||"object"==typeof o.default&&null!==o.default)&&void 0===o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),n.exports=o.default)}(C,C.exports)),C.exports}var k,j={};var M,D={};var z,B,U,G,F,q,K,X={},W={},V={exports:{}};function Q(){return z||(z=1,(()=>{var e={170:(e,t,n)=>{const o=n(510),r=()=>{if("undefined"!=typeof navigator&&navigator.platform){const e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform};function i(e,t,n=!1){return!t||null!==t.windows&&void 0!==t.windows||(t={...t,windows:r()}),o(e,t,n)}Object.assign(i,o),e.exports=i},154:e=>{const t="\\\\/",n=`[^${t}]`,o="\\.",r="\\/",i="[^/]",s=`(?:${r}|$)`,a=`(?:^|${r})`,u=`${o}{1,2}${s}`,l={DOT_LITERAL:o,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:r,ONE_CHAR:"(?=.)",QMARK:i,END_ANCHOR:s,DOTS_SLASH:u,NO_DOT:`(?!${o})`,NO_DOTS:`(?!${a}${u})`,NO_DOT_SLASH:`(?!${o}{0,1}${s})`,NO_DOTS_SLASH:`(?!${u})`,QMARK_NO_DOT:`[^.${r}]`,STAR:`${i}*?`,START_ANCHOR:a,SEP:"/"},c={...l,SLASH_LITERAL:`[${t}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${o}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${t}])${o}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?c:l}},697:(e,t,n)=>{const o=n(154),r=n(96),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=o,c=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>r.escapeRegex(e))).join("..")}return n},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=l[e]||e;const n={...t},f="number"==typeof n.maxLength?Math.min(i,n.maxLength):i;let h=e.length;if(h>f)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${f}`);const g={type:"bos",value:"",output:n.prepend||""},m=[g],y=n.capture?"":"?:",b=o.globChars(n.windows),_=o.extglobChars(b),{DOT_LITERAL:v,PLUS_LITERAL:w,SLASH_LITERAL:E,ONE_CHAR:A,DOTS_SLASH:R,NO_DOT:x,NO_DOT_SLASH:C,NO_DOTS_SLASH:S,QMARK:O,QMARK_NO_DOT:$,STAR:L,START_ANCHOR:I}=b,N=e=>`(${y}(?:(?!${I}${e.dot?R:v}).)*?)`,P=n.dot?"":x,T=n.dot?O:$;let H=!0===n.bash?N(n):L;n.capture&&(H=`(${H})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const k={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};e=r.removePrefix(e,k),h=e.length;const j=[],M=[],D=[];let z,B=g;const U=()=>k.index===h-1,G=k.peek=(t=1)=>e[k.index+t],F=k.advance=()=>e[++k.index]||"",q=()=>e.slice(k.index+1),K=(e="",t=0)=>{k.consumed+=e,k.index+=t},X=e=>{k.output+=null!=e.output?e.output:e.value,K(e.value)},W=()=>{let e=1;for(;"!"===G()&&("("!==G(2)||"?"===G(3));)F(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},V=e=>{k[e]++,D.push(e)},Q=e=>{k[e]--,D.pop()},Y=e=>{if("globstar"===B.type){const t=k.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||j.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(k.output=k.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=H,k.output+=B.output)}if(j.length&&"paren"!==e.type&&(j[j.length-1].inner+=e.value),(e.value||e.output)&&X(e),B&&"text"===B.type&&"text"===e.type)return B.output=(B.output||B.value)+e.value,void(B.value+=e.value);e.prev=B,m.push(e),B=e},Z=(e,t)=>{const o={..._[t],conditions:1,inner:""};o.prev=B,o.parens=k.parens,o.output=k.output;const r=(n.capture?"(":"")+o.open;V("parens"),Y({type:e,value:t,output:k.output?"":A}),Y({type:"paren",extglob:!0,value:F(),output:r}),j.push(o)},J=e=>{let o,r=e.close+(n.capture?")":"");if("negate"===e.type){let i=H;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=N(n)),(i!==H||U()||/^\)+$/.test(q()))&&(r=e.close=`)$))${i}`),e.inner.includes("*")&&(o=q())&&/^\.[^\\/.]+$/.test(o)){const n=d(o,{...t,fastpaths:!1}).output;r=e.close=`)${n})${i})`}"bos"===e.prev.type&&(k.negatedExtglob=!0)}Y({type:"paren",extglob:!0,value:z,output:r}),Q("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let o=!1,i=e.replace(u,((e,t,n,r,i,s)=>"\\"===r?(o=!0,e):"?"===r?t?t+r+(i?O.repeat(i.length):""):0===s?T+(i?O.repeat(i.length):""):O.repeat(n.length):"."===r?v.repeat(n.length):"*"===r?t?t+r+(i?H:""):H:t?e:`\\${e}`));return!0===o&&(i=!0===n.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===n.contains?(k.output=e,k):(k.output=r.wrapOutput(i,k,t),k)}for(;!U();){if(z=F(),"\0"===z)continue;if("\\"===z){const e=G();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){z+="\\",Y({type:"text",value:z});continue}const t=/^\\+/.exec(q());let o=0;if(t&&t[0].length>2&&(o=t[0].length,k.index+=o,o%2!=0&&(z+="\\")),!0===n.unescape?z=F():z+=F(),0===k.brackets){Y({type:"text",value:z});continue}}if(k.brackets>0&&("]"!==z||"["===B.value||"[^"===B.value)){if(!1!==n.posix&&":"===z){const e=B.value.slice(1);if(e.includes("[")&&(B.posix=!0,e.includes(":"))){const e=B.value.lastIndexOf("["),t=B.value.slice(0,e),n=B.value.slice(e+2),o=s[n];if(o){B.value=t+o,k.backtrack=!0,F(),g.output||1!==m.indexOf(B)||(g.output=A);continue}}}("["===z&&":"!==G()||"-"===z&&"]"===G())&&(z=`\\${z}`),"]"!==z||"["!==B.value&&"[^"!==B.value||(z=`\\${z}`),!0===n.posix&&"!"===z&&"["===B.value&&(z="^"),B.value+=z,X({value:z});continue}if(1===k.quotes&&'"'!==z){z=r.escapeRegex(z),B.value+=z,X({value:z});continue}if('"'===z){k.quotes=1===k.quotes?0:1,!0===n.keepQuotes&&Y({type:"text",value:z});continue}if("("===z){V("parens"),Y({type:"paren",value:z});continue}if(")"===z){if(0===k.parens&&!0===n.strictBrackets)throw new SyntaxError(p("opening","("));const e=j[j.length-1];if(e&&k.parens===e.parens+1){J(j.pop());continue}Y({type:"paren",value:z,output:k.parens?")":"\\)"}),Q("parens");continue}if("["===z){if(!0!==n.nobracket&&q().includes("]"))V("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));z=`\\${z}`}Y({type:"bracket",value:z});continue}if("]"===z){if(!0===n.nobracket||B&&"bracket"===B.type&&1===B.value.length){Y({type:"text",value:z,output:`\\${z}`});continue}if(0===k.brackets){if(!0===n.strictBrackets)throw new SyntaxError(p("opening","["));Y({type:"text",value:z,output:`\\${z}`});continue}Q("brackets");const e=B.value.slice(1);if(!0===B.posix||"^"!==e[0]||e.includes("/")||(z=`/${z}`),B.value+=z,X({value:z}),!1===n.literalBrackets||r.hasRegexChars(e))continue;const t=r.escapeRegex(B.value);if(k.output=k.output.slice(0,-B.value.length),!0===n.literalBrackets){k.output+=t,B.value=t;continue}B.value=`(${y}${t}|${B.value})`,k.output+=B.value;continue}if("{"===z&&!0!==n.nobrace){V("braces");const e={type:"brace",value:z,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};M.push(e),Y(e);continue}if("}"===z){const e=M[M.length-1];if(!0===n.nobrace||!e){Y({type:"text",value:z,output:z});continue}let t=")";if(!0===e.dots){const e=m.slice(),o=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&o.unshift(e[t].value);t=c(o,n),k.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=k.output.slice(0,e.outputIndex),o=k.tokens.slice(e.tokensIndex);e.value=e.output="\\{",z=t="\\}",k.output=n;for(const e of o)k.output+=e.output||e.value}Y({type:"brace",value:z,output:t}),Q("braces"),M.pop();continue}if("|"===z){j.length>0&&j[j.length-1].conditions++,Y({type:"text",value:z});continue}if(","===z){let e=z;const t=M[M.length-1];t&&"braces"===D[D.length-1]&&(t.comma=!0,e="|"),Y({type:"comma",value:z,output:e});continue}if("/"===z){if("dot"===B.type&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",m.pop(),B=g;continue}Y({type:"slash",value:z,output:E});continue}if("."===z){if(k.braces>0&&"dot"===B.type){"."===B.value&&(B.output=v);const e=M[M.length-1];B.type="dots",B.output+=z,B.value+=z,e.dots=!0;continue}if(k.braces+k.parens===0&&"bos"!==B.type&&"slash"!==B.type){Y({type:"text",value:z,output:v});continue}Y({type:"dot",value:z,output:v});continue}if("?"===z){if(!(B&&"("===B.value)&&!0!==n.noextglob&&"("===G()&&"?"!==G(2)){Z("qmark",z);continue}if(B&&"paren"===B.type){const e=G();let t=z;("("===B.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(q()))&&(t=`\\${z}`),Y({type:"text",value:z,output:t});continue}if(!0!==n.dot&&("slash"===B.type||"bos"===B.type)){Y({type:"qmark",value:z,output:$});continue}Y({type:"qmark",value:z,output:O});continue}if("!"===z){if(!0!==n.noextglob&&"("===G()&&("?"!==G(2)||!/[!=<:]/.test(G(3)))){Z("negate",z);continue}if(!0!==n.nonegate&&0===k.index){W();continue}}if("+"===z){if(!0!==n.noextglob&&"("===G()&&"?"!==G(2)){Z("plus",z);continue}if(B&&"("===B.value||!1===n.regex){Y({type:"plus",value:z,output:w});continue}if(B&&("bracket"===B.type||"paren"===B.type||"brace"===B.type)||k.parens>0){Y({type:"plus",value:z});continue}Y({type:"plus",value:w});continue}if("@"===z){if(!0!==n.noextglob&&"("===G()&&"?"!==G(2)){Y({type:"at",extglob:!0,value:z,output:""});continue}Y({type:"text",value:z});continue}if("*"!==z){"$"!==z&&"^"!==z||(z=`\\${z}`);const e=a.exec(q());e&&(z+=e[0],k.index+=e[0].length),Y({type:"text",value:z});continue}if(B&&("globstar"===B.type||!0===B.star)){B.type="star",B.star=!0,B.value+=z,B.output=H,k.backtrack=!0,k.globstar=!0,K(z);continue}let t=q();if(!0!==n.noextglob&&/^\([^?]/.test(t)){Z("star",z);continue}if("star"===B.type){if(!0===n.noglobstar){K(z);continue}const o=B.prev,r=o.prev,i="slash"===o.type||"bos"===o.type,s=r&&("star"===r.type||"globstar"===r.type);if(!0===n.bash&&(!i||t[0]&&"/"!==t[0])){Y({type:"star",value:z,output:""});continue}const a=k.braces>0&&("comma"===o.type||"brace"===o.type),u=j.length&&("pipe"===o.type||"paren"===o.type);if(!i&&"paren"!==o.type&&!a&&!u){Y({type:"star",value:z,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[k.index+4];if(n&&"/"!==n)break;t=t.slice(3),K("/**",3)}if("bos"===o.type&&U()){B.type="globstar",B.value+=z,B.output=N(n),k.output=B.output,k.globstar=!0,K(z);continue}if("slash"===o.type&&"bos"!==o.prev.type&&!s&&U()){k.output=k.output.slice(0,-(o.output+B.output).length),o.output=`(?:${o.output}`,B.type="globstar",B.output=N(n)+(n.strictSlashes?")":"|$)"),B.value+=z,k.globstar=!0,k.output+=o.output+B.output,K(z);continue}if("slash"===o.type&&"bos"!==o.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";k.output=k.output.slice(0,-(o.output+B.output).length),o.output=`(?:${o.output}`,B.type="globstar",B.output=`${N(n)}${E}|${E}${e})`,B.value+=z,k.output+=o.output+B.output,k.globstar=!0,K(z+F()),Y({type:"slash",value:"/",output:""});continue}if("bos"===o.type&&"/"===t[0]){B.type="globstar",B.value+=z,B.output=`(?:^|${E}|${N(n)}${E})`,k.output=B.output,k.globstar=!0,K(z+F()),Y({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-B.output.length),B.type="globstar",B.output=N(n),B.value+=z,k.output+=B.output,k.globstar=!0,K(z);continue}const o={type:"star",value:z,output:H};!0!==n.bash?!B||"bracket"!==B.type&&"paren"!==B.type||!0!==n.regex?(k.index!==k.start&&"slash"!==B.type&&"dot"!==B.type||("dot"===B.type?(k.output+=C,B.output+=C):!0===n.dot?(k.output+=S,B.output+=S):(k.output+=P,B.output+=P),"*"!==G()&&(k.output+=A,B.output+=A)),Y(o)):(o.output=z,Y(o)):(o.output=".*?","bos"!==B.type&&"slash"!==B.type||(o.output=P+o.output),Y(o))}for(;k.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));k.output=r.escapeLast(k.output,"["),Q("brackets")}for(;k.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing",")"));k.output=r.escapeLast(k.output,"("),Q("parens")}for(;k.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","}"));k.output=r.escapeLast(k.output,"{"),Q("braces")}if(!0===n.strictSlashes||"star"!==B.type&&"bracket"!==B.type||Y({type:"maybe_slash",value:"",output:`${E}?`}),!0===k.backtrack){k.output="";for(const e of k.tokens)k.output+=null!=e.output?e.output:e.value,e.suffix&&(k.output+=e.suffix)}return k};d.fastpaths=(e,t)=>{const n={...t},s="number"==typeof n.maxLength?Math.min(i,n.maxLength):i,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);e=l[e]||e;const{DOT_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:g,STAR:m,START_ANCHOR:y}=o.globChars(n.windows),b=n.dot?h:f,_=n.dot?g:f,v=n.capture?"":"?:";let w=!0===n.bash?".*?":m;n.capture&&(w=`(${w})`);const E=e=>!0===e.noglobstar?w:`(${v}(?:(?!${y}${e.dot?d:u}).)*?)`,A=e=>{switch(e){case"*":return`${b}${p}${w}`;case".*":return`${u}${p}${w}`;case"*.*":return`${b}${w}${u}${p}${w}`;case"*/*":return`${b}${w}${c}${p}${_}${w}`;case"**":return b+E(n);case"**/*":return`(?:${b}${E(n)}${c})?${_}${p}${w}`;case"**/*.*":return`(?:${b}${E(n)}${c})?${_}${w}${u}${p}${w}`;case"**/.*":return`(?:${b}${E(n)}${c})?${u}${p}${w}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=A(t[1]);if(!n)return;return n+u+t[2]}}},R=r.removePrefix(e,{negated:!1,prefix:""});let x=A(R);return x&&!0!==n.strictSlashes&&(x+=`${c}?`),x},e.exports=d},510:(e,t,n)=>{const o=n(716),r=n(697),i=n(96),s=n(154),a=(e,t,n=!1)=>{if(Array.isArray(e)){const o=e.map((e=>a(e,t,n))),r=e=>{for(const t of o){const n=t(e);if(n)return n}return!1};return r}const o=(e=>e&&"object"==typeof e&&!Array.isArray(e))(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!o)throw new TypeError("Expected pattern to be a non-empty string");const r=t||{},i=r.windows,s=o?a.compileRe(e,t):a.makeRe(e,t,!1,!0),u=s.state;delete s.state;let l=()=>!1;if(r.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=a(r.ignore,e,n)}const c=(n,o=!1)=>{const{isMatch:c,match:p,output:d}=a.test(n,s,t,{glob:e,posix:i}),f={glob:e,state:u,regex:s,posix:i,input:n,output:d,match:p,isMatch:c};return"function"==typeof r.onResult&&r.onResult(f),!1===c?(f.isMatch=!1,!!o&&f):l(n)?("function"==typeof r.onIgnore&&r.onIgnore(f),f.isMatch=!1,!!o&&f):("function"==typeof r.onMatch&&r.onMatch(f),!o||f)};return n&&(c.state=u),c};a.test=(e,t,n,{glob:o,posix:r}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const s=n||{},u=s.format||(r?i.toPosixSlashes:null);let l=e===o,c=l&&u?u(e):e;return!1===l&&(c=u?u(e):e,l=c===o),!1!==l&&!0!==s.capture||(l=!0===s.matchBase||!0===s.basename?a.matchBase(e,t,n,r):t.exec(c)),{isMatch:Boolean(l),match:l,output:c}},a.matchBase=(e,t,n)=>(t instanceof RegExp?t:a.makeRe(t,n)).test(i.basename(e)),a.isMatch=(e,t,n)=>a(t,n)(e),a.parse=(e,t)=>Array.isArray(e)?e.map((e=>a.parse(e,t))):r(e,{...t,fastpaths:!1}),a.scan=(e,t)=>o(e,t),a.compileRe=(e,t,n=!1,o=!1)=>{if(!0===n)return e.output;const r=t||{},i=r.contains?"":"^",s=r.contains?"":"$";let u=`${i}(?:${e.output})${s}`;e&&!0===e.negated&&(u=`^(?!${u}).*$`);const l=a.toRegex(u,t);return!0===o&&(l.state=e),l},a.makeRe=(e,t={},n=!1,o=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(i.output=r.fastpaths(e,t)),i.output||(i=r(e,t)),a.compileRe(i,t,n,o)},a.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},a.constants=s,e.exports=a},716:(e,t,n)=>{const o=n(96),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:h,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:b}=n(154),_=e=>e===c||e===s,v=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},w=e.length-1,E=!0===n.parts||!0===n.scanToEnd,A=[],R=[],x=[];let C,S,O=e,$=-1,L=0,I=0,N=!1,P=!1,T=!1,H=!1,k=!1,j=!1,M=!1,D=!1,z=!1,B=!1,U=0,G={value:"",depth:0,isGlob:!1};const F=()=>$>=w,q=()=>(C=S,O.charCodeAt(++$));for(;$<w;){let e;if(S=q(),S!==s){if(!0===j||S===p){for(U++;!0!==F()&&(S=q());)if(S!==s)if(S!==p){if(!0!==j&&S===u&&(S=q())===u){if(N=G.isBrace=!0,T=G.isGlob=!0,B=!0,!0===E)continue;break}if(!0!==j&&S===a){if(N=G.isBrace=!0,T=G.isGlob=!0,B=!0,!0===E)continue;break}if(S===m&&(U--,0===U)){j=!1,N=G.isBrace=!0,B=!0;break}}else U++;else M=G.backslashes=!0,q();if(!0===E)continue;break}if(S!==c){if(!0!==n.noext){if(!0===(S===h||S===i||S===r||S===g||S===l)&&O.charCodeAt($+1)===d){if(T=G.isGlob=!0,H=G.isExtglob=!0,B=!0,S===l&&$===L&&(z=!0),!0===E){for(;!0!==F()&&(S=q());)if(S!==s){if(S===y){T=G.isGlob=!0,B=!0;break}}else M=G.backslashes=!0,S=q();continue}break}}if(S===r){if(C===r&&(k=G.isGlobstar=!0),T=G.isGlob=!0,B=!0,!0===E)continue;break}if(S===g){if(T=G.isGlob=!0,B=!0,!0===E)continue;break}if(S===f){for(;!0!==F()&&(e=q());)if(e!==s){if(e===b){P=G.isBracket=!0,T=G.isGlob=!0,B=!0;break}}else M=G.backslashes=!0,q();if(!0===E)continue;break}if(!0===n.nonegate||S!==l||$!==L){if(!0!==n.noparen&&S===d){if(T=G.isGlob=!0,!0===E){for(;!0!==F()&&(S=q());)if(S!==d){if(S===y){B=!0;break}}else M=G.backslashes=!0,S=q();continue}break}if(!0===T){if(B=!0,!0===E)continue;break}}else D=G.negated=!0,L++}else{if(A.push($),R.push(G),G={value:"",depth:0,isGlob:!1},!0===B)continue;if(C===u&&$===L+1){L+=2;continue}I=$+1}}else M=G.backslashes=!0,S=q(),S===p&&(j=!0)}!0===n.noext&&(H=!1,T=!1);let K=O,X="",W="";L>0&&(X=O.slice(0,L),O=O.slice(L),I-=L),K&&!0===T&&I>0?(K=O.slice(0,I),W=O.slice(I)):!0===T?(K="",W=O):K=O,K&&""!==K&&"/"!==K&&K!==O&&_(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===n.unescape&&(W&&(W=o.removeBackslashes(W)),K&&!0===M&&(K=o.removeBackslashes(K)));const V={prefix:X,input:e,start:L,base:K,glob:W,isBrace:N,isBracket:P,isGlob:T,isExtglob:H,isGlobstar:k,negated:D,negatedExtglob:z};if(!0===n.tokens&&(V.maxDepth=0,_(S)||R.push(G),V.tokens=R),!0===n.parts||!0===n.tokens){let t;for(let o=0;o<A.length;o++){const r=t?t+1:L,i=A[o],s=e.slice(r,i);n.tokens&&(0===o&&0!==L?(R[o].isPrefix=!0,R[o].value=X):R[o].value=s,v(R[o]),V.maxDepth+=R[o].depth),0===o&&""===s||x.push(s),t=i}if(t&&t+1<e.length){const o=e.slice(t+1);x.push(o),n.tokens&&(R[R.length-1].value=o,v(R[R.length-1]),V.maxDepth+=R[R.length-1].depth)}V.slashes=A,V.parts=x}return V}},96:(e,t,n)=>{const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:s}=n(154);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>i.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(s,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(r,(e=>"\\"===e?"":e)),t.escapeLast=(e,n,o)=>{const r=e.lastIndexOf(n,o);return-1===r?e:"\\"===e[r-1]?t.escapeLast(e,n,r-1):`${e.slice(0,r)}\\${e.slice(r)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let o=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(o=`(?:^(?!${o}).*$)`),o},t.basename=(e,{windows:t}={})=>{const n=e.split(t?/[\\/]/:"/"),o=n[n.length-1];return""===o?n[n.length-2]:o}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}},s=!0;try{e[o](i,i.exports,n),s=!1}finally{s&&delete t[o]}return i.exports}void 0!==n&&(n.ab=__dirname+"/");var o=n(170);V.exports=o})()),V.exports}function Y(){return U||(U=1,function(e){function t(e){let{config:t,src:n,width:o,quality:r}=e;if("production"!==process.env.NODE_ENV){const e=[];if(n||e.push("src"),o||e.push("width"),e.length>0)throw new Error("Next Image Optimization requires "+e.join(", ")+" to be provided. Make sure you pass them as props to the `next/image` component. Received: "+JSON.stringify({src:n,width:o,quality:r}));if(n.startsWith("//"))throw new Error('Failed to parse src "'+n+'" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');if(!n.startsWith("/")&&(t.domains||t.remotePatterns)){let e;try{e=new URL(n)}catch(e){throw console.error(e),new Error('Failed to parse src "'+n+'" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)')}if("test"!==process.env.NODE_ENV&&"edge"!==process.env.NEXT_RUNTIME){const{hasMatch:o}=(B||(B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{hasMatch:function(){return o},matchRemotePattern:function(){return n}});const t=Q();function n(e,n){if(void 0!==e.protocol){const t=n.protocol.slice(0,-1);if(e.protocol!==t)return!1}if(void 0!==e.port&&e.port!==n.port)return!1;if(void 0===e.hostname)throw new Error("Pattern should define hostname but found\n"+JSON.stringify(e));return!!(0,t.makeRe)(e.hostname).test(n.hostname)&&!!(0,t.makeRe)(null!=(o=e.pathname)?o:"**",{dot:!0}).test(n.pathname);var o}function o(e,t,o){return e.some((e=>o.hostname===e))||t.some((e=>n(e,o)))}}(W)),W);if(!o(t.domains,t.remotePatterns,e))throw new Error("Invalid src prop ("+n+') on `next/image`, hostname "'+e.hostname+'" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host')}}}return t.path+"?url="+encodeURIComponent(n)+"&w="+o+"&q="+(r||75)+(process.env.NEXT_DEPLOYMENT_ID?"&dpl="+process.env.NEXT_DEPLOYMENT_ID:"")}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),t.__next_img_default=!0;const n=t}(X)),X}function Z(){return G||(G=1,function(o,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return C}});const i=/*@__PURE__*/l(),s=e,a=/*#__PURE__*/ /*@__PURE__*/R()._(t),u=/*#__PURE__*/i._(n),c=/*#__PURE__*/i._(H()),p=v(),d=_(),h=(k||(k=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return r}});const n=/*#__PURE__*/ /*@__PURE__*/l()._(t),o=_(),r=n.default.createContext(o.imageConfigDefault);"production"!==process.env.NODE_ENV&&(r.displayName="ImageConfigContext")}(j)),j),g=f(),m=(M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});const n=/*#__PURE__*/ /*@__PURE__*/l()._(t).default.createContext(null);"production"!==process.env.NODE_ENV&&(n.displayName="RouterContext")}(D)),D),y=/*#__PURE__*/i._(Y()),b=process.env.__NEXT_IMAGE_OPTS;function w(e,t,n,o,r,i,s){const a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),null==n?void 0:n.current){const t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let o=!1,r=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>o,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{o=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}if((null==o?void 0:o.current)&&o.current(e),"production"!==process.env.NODE_ENV){const t=new URL(a,"http://n").searchParams.get("url")||a;if("fill"===e.getAttribute("data-nimg")){if(!(i||s&&"100vw"!==s)){e.getBoundingClientRect().width/window.innerWidth<.6&&("100vw"===s?(0,g.warnOnce)('Image with src "'+t+'" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'):(0,g.warnOnce)('Image with src "'+t+'" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes'))}if(e.parentElement){const{position:n}=window.getComputedStyle(e.parentElement),o=["absolute","fixed","relative"];o.includes(n)||(0,g.warnOnce)('Image with src "'+t+'" has "fill" and parent element with invalid "position". Provided "'+n+'" should be one of '+o.map(String).join(",")+".")}0===e.height&&(0,g.warnOnce)('Image with src "'+t+'" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.')}const n=e.height.toString()!==e.getAttribute("height"),o=e.width.toString()!==e.getAttribute("width");(n&&!o||!n&&o)&&(0,g.warnOnce)('Image with src "'+t+'" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles \'width: "auto"\' or \'height: "auto"\' to maintain the aspect ratio.')}}}))}function E(e){return Boolean(a.use)?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);const A=/*#__PURE__*/ /*#__PURE__*/(0,a.forwardRef)(((e,t)=>{let{src:n,srcSet:o,sizes:r,height:i,width:u,decoding:l,className:c,style:p,fetchPriority:d,placeholder:f,loading:h,unoptimized:g,fill:m,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:_,setShowAltText:v,sizesInput:A,onLoad:R,onError:x,...C}=e;/*#__PURE__*/ /*#__PURE__*/
return(0,s.jsx)("img",{...C,...E(d),loading:h,width:u,height:i,decoding:l,"data-nimg":m?"fill":"1",className:c,style:p,sizes:r,srcSet:o,src:n,ref:(0,a.useCallback)((e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(x&&(e.src=e.src),"production"!==process.env.NODE_ENV&&(n||console.error('Image is missing required "src" property:',e),null===e.getAttribute("alt")&&console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')),e.complete&&w(e,f,y,b,_,g,A))}),[n,f,y,b,_,x,g,A,t]),onLoad:e=>{w(e.currentTarget,f,y,b,_,g,A)},onError:e=>{v(!0),"empty"!==f&&_(!0),x&&x(e)}})}));function x(e){let{isAppRouter:t,imgAttributes:n}=e;const o={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...E(n.fetchPriority)};return t&&u.default.preload?(u.default.preload(n.src,o),null):/*#__PURE__*/ /*#__PURE__*/(0,s.jsx)(c.default,{children:/*#__PURE__*/ /*#__PURE__*/(0,s.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...o},"__nimg-"+n.src+n.srcSet+n.sizes)})}const C=/*#__PURE__*/ /*#__PURE__*/(0,a.forwardRef)(((e,t)=>{const n=!(0,a.useContext)(m.RouterContext),o=(0,a.useContext)(h.ImageConfigContext),r=(0,a.useMemo)((()=>{const e=b||o||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort(((e,t)=>e-t)),n=e.deviceSizes.sort(((e,t)=>e-t));return{...e,allSizes:t,deviceSizes:n}}),[o]),{onLoad:i,onLoadingComplete:u}=e,l=(0,a.useRef)(i);(0,a.useEffect)((()=>{l.current=i}),[i]);const c=(0,a.useRef)(u);(0,a.useEffect)((()=>{c.current=u}),[u]);const[f,g]=(0,a.useState)(!1),[_,v]=(0,a.useState)(!1),{props:w,meta:E}=(0,p.getImgProps)(e,{defaultLoader:y.default,imgConf:r,blurComplete:f,showAltText:_});/*#__PURE__*/ /*#__PURE__*/
return(0,s.jsxs)(s.Fragment,{children:[
/*#__PURE__*/
/*#__PURE__*/(0,s.jsx)(A,{...w,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:l,onLoadingCompleteRef:c,setBlurComplete:g,setShowAltText:v,sizesInput:e.sizes,ref:t}),E.priority?/*#__PURE__*/ /*#__PURE__*/(0,s.jsx)(x,{isAppRouter:n,imgAttributes:w}):null]})}));("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),o.exports=r.default)}(E,E.exports)),E.exports}var J=K?q:(K=1,F||(F=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{default:function(){return s},getImageProps:function(){return i}});const t=/*@__PURE__*/l(),n=v(),o=Z(),r=/*#__PURE__*/t._(Y());function i(e){const{props:t}=(0,n.getImgProps)(e,{defaultLoader:r.default,imgConf:process.env.__NEXT_IMAGE_OPTS});for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}const s=o.Image}(a)),q=a),ee=/*@__PURE__*/i(J);function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.twMerge(o.clsx(e))}module.exports=function(n){var o,r=n.src,i=n.alt,s=void 0===i?"Avatar":i,a=n.fallback,u=n.size,l=void 0===u?"md":u,c=n.radius,p=void 0===c?"full":c,d=n.border,f=void 0!==d&&d,h=n.borderColor,g=void 0===h?"border-zinc-200 dark:border-zinc-800":h,m=n.status,y=n.className,b=void 0===y?"":y,_=n.imageClassName,v=void 0===_?"":_,w=n.fallbackClassName,E=void 0===w?"":w,A=n.statusClassName,R=void 0===A?"":A,x=n.ariaLabel,C=n.statusLabel,S=void 0===C?{online:"En línea",offline:"Desconectado",away:"Ausente",busy:"Ocupado"}:C,O=t.useState(!r),$=O[0],L=O[1],I=te(["relative","inline-flex","items-center","justify-center","overflow-hidden","bg-zinc-100","dark:bg-zinc-800"].join(" "),{sm:["h-8","w-8","text-xs"],md:["h-10","w-10","text-sm"],lg:["h-12","w-12","text-base"],xl:["h-16","w-16","text-lg"]}[l].join(" "),{none:["rounded-none"],sm:["rounded-[0.25rem]"],md:["rounded-[0.375rem]"],full:["rounded-full"]}[p].join(" "),f&&"border-2 ".concat(g),b);return e.jsxs("div",{className:"relative inline-block",role:"img","aria-label":(o=[],x?o.push(x):o.push(s||a||"Avatar"),m&&S[m]&&o.push(S[m]),o.join(", ")),children:[e.jsx("div",{className:I,"aria-hidden":"true",children:!$&&r?e.jsx(ee,{src:r,alt:s,fill:!0,className:te("object-cover",v),onError:function(){return L(!0)},role:"presentation","aria-hidden":"true"}):e.jsx("span",{className:te("font-medium text-neutral-500 dark:text-neutral-400",E),"aria-hidden":"true",children:a||s.charAt(0).toUpperCase()})}),m&&e.jsx("span",{className:te("absolute bottom-0 right-0 block h-2.5 w-2.5 rounded-full border-2 border-white dark:border-zinc-900",{online:["bg-green-500"],offline:["bg-zinc-400"],away:["bg-yellow-500"],busy:["bg-red-500"]}[m].join(" "),R),role:"status","aria-label":S[m],"aria-hidden":"true"})]})};
//# sourceMappingURL=index.js.map