@frontfriend/sdk 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,27 @@
1
1
  Notices for third-party code bundled with the SDK.
2
2
 
3
+ /*!
4
+ * Copyright (c) 2023 shadcn
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+
3
25
  @modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs:
4
26
  /*!
5
27
  * content-type
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var g9=Object.create;var up=Object.defineProperty;var y9=Object.getOwnPropertyDescriptor;var v9=Object.getOwnPropertyNames;var _9=Object.getPrototypeOf,b9=Object.prototype.hasOwnProperty;var Ve=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bo=(e,t)=>{for(var r in t)up(e,r,{get:t[r],enumerable:!0})},VE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of v9(t))!b9.call(e,n)&&n!==r&&up(e,n,{get:()=>t[n],enumerable:!(i=y9(t,n))||i.enumerable});return e};var Bi=(e,t,r)=>(r=e!=null?g9(_9(e)):{},VE(t||!e||!e.__esModule?up(r,"default",{value:e,enumerable:!0}):r,e)),Mr=e=>VE(up({},"__esModule",{value:!0}),e);var xa=B((VIe,S9)=>{S9.exports={name:"@frontfriend/sdk",version:"1.2.8"}});var So=B((JIe,JE)=>{var{name:w9}=xa();JE.exports={PACKAGE_NAME:w9}});var fa=B((BIe,BE)=>{var $9="https://app.frontfriend.dev",R9=".cache/frontfriend",E9={JS:["tokens.js","variables.js","semanticVariables.js","semanticDarkVariables.js","keyframes.js","animations.js","safelist.js","custom.js"],JSON:["fonts.json","icons.json","components-config.json","iconLibrary.json","version.json","versionMetadata.json","metadata.json","base.json","nativeTokens.json"]},P9={FF_ID:"FF_ID",FF_API_URL:"FF_API_URL",FF_AUTH_TOKEN:"FF_AUTH_TOKEN",FF_MACHINE_TOKEN:"FRONTFRIEND_MACHINE_TOKEN"};function O9(e){if(!e)return null;try{let t=new URL(e);return t.hostname.startsWith("app.")?`${t.protocol}//${t.hostname.replace(/^app\./,"registry.")}`:null}catch{return null}}BE.exports={DEFAULT_API_URL:$9,CACHE_DIR_NAME:R9,CACHE_TTL_DAYS:7,CACHE_TTL_MS:6048e5,CACHE_FILES:E9,ENV_VARS:P9,deriveRegistryFromApiUrl:O9}});var WE=B((HIe,GE)=>{GE.exports=KE;KE.sync=C9;var HE=require("fs");function I9(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}function ZE(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:I9(t,r)}function KE(e,t,r){HE.stat(e,function(i,n){r(i,i?!1:ZE(n,e,t))})}function C9(e,t){return ZE(HE.statSync(e),e,t)}});var tP=B((ZIe,eP)=>{eP.exports=XE;XE.sync=k9;var YE=require("fs");function XE(e,t,r){YE.stat(e,function(i,n){r(i,i?!1:QE(n,t))})}function k9(e,t){return QE(YE.statSync(e),t)}function QE(e,t){return e.isFile()&&T9(e,t)}function T9(e,t){var r=e.mode,i=e.uid,n=e.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=a|c,f=r&l||r&c&&n===s||r&a&&i===o||r&u&&o===0;return f}});var nP=B((GIe,rP)=>{var KIe=require("fs"),dp;process.platform==="win32"||global.TESTING_WINDOWS?dp=WE():dp=tP();rP.exports=Qv;Qv.sync=j9;function Qv(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Qv(e,t||{},function(o,s){o?n(o):i(s)})})}dp(e,t||{},function(i,n){i&&(i.code==="EACCES"||t&&t.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function j9(e,t){try{return dp.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var uP=B((WIe,lP)=>{var sl=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",iP=require("path"),A9=sl?";":":",oP=nP(),sP=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),aP=(e,t)=>{let r=t.colon||A9,i=e.match(/\//)||sl&&e.match(/\\/)?[""]:[...sl?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=sl?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=sl?n.split(r):[""];return sl&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:n}},cP=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:i,pathExt:n,pathExtExe:o}=aP(e,t),s=[],a=l=>new Promise((u,f)=>{if(l===i.length)return t.all&&s.length?u(s):f(sP(e));let p=i[l],g=/^".*"$/.test(p)?p.slice(1,-1):p,h=iP.join(g,e),v=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;u(c(v,l,0))}),c=(l,u,f)=>new Promise((p,g)=>{if(f===n.length)return p(a(u+1));let h=n[f];oP(l+h,{pathExt:o},(v,y)=>{if(!v&&y)if(t.all)s.push(l+h);else return p(l+h);return p(c(l,u,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},N9=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=aP(e,t),o=[];for(let s=0;s<r.length;s++){let a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=iP.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let f=0;f<i.length;f++){let p=u+i[f];try{if(oP.sync(p,{pathExt:n}))if(t.all)o.push(p);else return p}catch{}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sP(e)};lP.exports=cP;cP.sync=N9});var fP=B((YIe,e_)=>{"use strict";var dP=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};e_.exports=dP;e_.exports.default=dP});var gP=B((XIe,mP)=>{"use strict";var pP=require("path"),x9=uP(),M9=fP();function hP(e,t){let r=e.options.env||process.env,i=process.cwd(),n=e.options.cwd!=null,o=n&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let s;try{s=x9.sync(e.command,{path:r[M9({env:r})],pathExt:t?pP.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return s&&(s=pP.resolve(n?e.options.cwd:"",s)),s}function q9(e){return hP(e)||hP(e,!0)}mP.exports=q9});var yP=B((QIe,r_)=>{"use strict";var t_=/([()\][%!^"`<>&|;, *?])/g;function L9(e){return e=e.replace(t_,"^$1"),e}function D9(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(t_,"^$1"),t&&(e=e.replace(t_,"^$1")),e}r_.exports.command=L9;r_.exports.argument=D9});var _P=B((eCe,vP)=>{"use strict";vP.exports=/^#!(.*)/});var SP=B((tCe,bP)=>{"use strict";var U9=_P();bP.exports=(e="")=>{let t=e.match(U9);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var $P=B((rCe,wP)=>{"use strict";var n_=require("fs"),z9=SP();function F9(e){let r=Buffer.alloc(150),i;try{i=n_.openSync(e,"r"),n_.readSync(i,r,0,150,0),n_.closeSync(i)}catch{}return z9(r.toString())}wP.exports=F9});var OP=B((nCe,PP)=>{"use strict";var V9=require("path"),RP=gP(),EP=yP(),J9=$P(),B9=process.platform==="win32",H9=/\.(?:com|exe)$/i,Z9=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function K9(e){e.file=RP(e);let t=e.file&&J9(e.file);return t?(e.args.unshift(e.file),e.command=t,RP(e)):e.file}function G9(e){if(!B9)return e;let t=K9(e),r=!H9.test(t);if(e.options.forceShell||r){let i=Z9.test(t);e.command=V9.normalize(e.command),e.command=EP.command(e.command),e.args=e.args.map(o=>EP.argument(o,i));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function W9(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let i={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?i:G9(i)}PP.exports=W9});var kP=B((iCe,CP)=>{"use strict";var i_=process.platform==="win32";function o_(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Y9(e,t){if(!i_)return;let r=e.emit;e.emit=function(i,n){if(i==="exit"){let o=IP(n,t);if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}}function IP(e,t){return i_&&e===1&&!t.file?o_(t.original,"spawn"):null}function X9(e,t){return i_&&e===1&&!t.file?o_(t.original,"spawnSync"):null}CP.exports={hookChildProcess:Y9,verifyENOENT:IP,verifyENOENTSync:X9,notFoundError:o_}});var c_=B((oCe,al)=>{"use strict";var TP=require("child_process"),s_=OP(),a_=kP();function jP(e,t,r){let i=s_(e,t,r),n=TP.spawn(i.command,i.args,i.options);return a_.hookChildProcess(n,i),n}function Q9(e,t,r){let i=s_(e,t,r),n=TP.spawnSync(i.command,i.args,i.options);return n.error=n.error||a_.verifyENOENTSync(n.status,i),n}al.exports=jP;al.exports.spawn=jP;al.exports.sync=Q9;al.exports._parse=s_;al.exports._enoent=a_});var cl=B((sCe,AP)=>{"use strict";var eB="2.0.0",tB=Number.MAX_SAFE_INTEGER||9007199254740991,rB=16,nB=250,iB=["major","premajor","minor","preminor","patch","prepatch","prerelease"];AP.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rB,MAX_SAFE_BUILD_LENGTH:nB,MAX_SAFE_INTEGER:tB,RELEASE_TYPES:iB,SEMVER_SPEC_VERSION:eB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Fu=B((aCe,NP)=>{"use strict";var oB=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};NP.exports=oB});var ll=B((Bo,xP)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l_,MAX_SAFE_BUILD_LENGTH:sB,MAX_LENGTH:aB}=cl(),cB=Fu();Bo=xP.exports={};var lB=Bo.re=[],uB=Bo.safeRe=[],Ze=Bo.src=[],dB=Bo.safeSrc=[],Ke=Bo.t={},fB=0,u_="[a-zA-Z0-9-]",pB=[["\\s",1],["\\d",aB],[u_,sB]],hB=e=>{for(let[t,r]of pB)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},St=(e,t,r)=>{let i=hB(t),n=fB++;cB(e,n,t),Ke[e]=n,Ze[n]=t,dB[n]=i,lB[n]=new RegExp(t,r?"g":void 0),uB[n]=new RegExp(i,r?"g":void 0)};St("NUMERICIDENTIFIER","0|[1-9]\\d*");St("NUMERICIDENTIFIERLOOSE","\\d+");St("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u_}*`);St("MAINVERSION",`(${Ze[Ke.NUMERICIDENTIFIER]})\\.(${Ze[Ke.NUMERICIDENTIFIER]})\\.(${Ze[Ke.NUMERICIDENTIFIER]})`);St("MAINVERSIONLOOSE",`(${Ze[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Ze[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Ze[Ke.NUMERICIDENTIFIERLOOSE]})`);St("PRERELEASEIDENTIFIER",`(?:${Ze[Ke.NONNUMERICIDENTIFIER]}|${Ze[Ke.NUMERICIDENTIFIER]})`);St("PRERELEASEIDENTIFIERLOOSE",`(?:${Ze[Ke.NONNUMERICIDENTIFIER]}|${Ze[Ke.NUMERICIDENTIFIERLOOSE]})`);St("PRERELEASE",`(?:-(${Ze[Ke.PRERELEASEIDENTIFIER]}(?:\\.${Ze[Ke.PRERELEASEIDENTIFIER]})*))`);St("PRERELEASELOOSE",`(?:-?(${Ze[Ke.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ze[Ke.PRERELEASEIDENTIFIERLOOSE]})*))`);St("BUILDIDENTIFIER",`${u_}+`);St("BUILD",`(?:\\+(${Ze[Ke.BUILDIDENTIFIER]}(?:\\.${Ze[Ke.BUILDIDENTIFIER]})*))`);St("FULLPLAIN",`v?${Ze[Ke.MAINVERSION]}${Ze[Ke.PRERELEASE]}?${Ze[Ke.BUILD]}?`);St("FULL",`^${Ze[Ke.FULLPLAIN]}$`);St("LOOSEPLAIN",`[v=\\s]*${Ze[Ke.MAINVERSIONLOOSE]}${Ze[Ke.PRERELEASELOOSE]}?${Ze[Ke.BUILD]}?`);St("LOOSE",`^${Ze[Ke.LOOSEPLAIN]}$`);St("GTLT","((?:<|>)?=?)");St("XRANGEIDENTIFIERLOOSE",`${Ze[Ke.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);St("XRANGEIDENTIFIER",`${Ze[Ke.NUMERICIDENTIFIER]}|x|X|\\*`);St("XRANGEPLAIN",`[v=\\s]*(${Ze[Ke.XRANGEIDENTIFIER]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIER]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIER]})(?:${Ze[Ke.PRERELEASE]})?${Ze[Ke.BUILD]}?)?)?`);St("XRANGEPLAINLOOSE",`[v=\\s]*(${Ze[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIERLOOSE]})(?:${Ze[Ke.PRERELEASELOOSE]})?${Ze[Ke.BUILD]}?)?)?`);St("XRANGE",`^${Ze[Ke.GTLT]}\\s*${Ze[Ke.XRANGEPLAIN]}$`);St("XRANGELOOSE",`^${Ze[Ke.GTLT]}\\s*${Ze[Ke.XRANGEPLAINLOOSE]}$`);St("COERCEPLAIN",`(^|[^\\d])(\\d{1,${l_}})(?:\\.(\\d{1,${l_}}))?(?:\\.(\\d{1,${l_}}))?`);St("COERCE",`${Ze[Ke.COERCEPLAIN]}(?:$|[^\\d])`);St("COERCEFULL",Ze[Ke.COERCEPLAIN]+`(?:${Ze[Ke.PRERELEASE]})?(?:${Ze[Ke.BUILD]})?(?:$|[^\\d])`);St("COERCERTL",Ze[Ke.COERCE],!0);St("COERCERTLFULL",Ze[Ke.COERCEFULL],!0);St("LONETILDE","(?:~>?)");St("TILDETRIM",`(\\s*)${Ze[Ke.LONETILDE]}\\s+`,!0);Bo.tildeTrimReplace="$1~";St("TILDE",`^${Ze[Ke.LONETILDE]}${Ze[Ke.XRANGEPLAIN]}$`);St("TILDELOOSE",`^${Ze[Ke.LONETILDE]}${Ze[Ke.XRANGEPLAINLOOSE]}$`);St("LONECARET","(?:\\^)");St("CARETTRIM",`(\\s*)${Ze[Ke.LONECARET]}\\s+`,!0);Bo.caretTrimReplace="$1^";St("CARET",`^${Ze[Ke.LONECARET]}${Ze[Ke.XRANGEPLAIN]}$`);St("CARETLOOSE",`^${Ze[Ke.LONECARET]}${Ze[Ke.XRANGEPLAINLOOSE]}$`);St("COMPARATORLOOSE",`^${Ze[Ke.GTLT]}\\s*(${Ze[Ke.LOOSEPLAIN]})$|^$`);St("COMPARATOR",`^${Ze[Ke.GTLT]}\\s*(${Ze[Ke.FULLPLAIN]})$|^$`);St("COMPARATORTRIM",`(\\s*)${Ze[Ke.GTLT]}\\s*(${Ze[Ke.LOOSEPLAIN]}|${Ze[Ke.XRANGEPLAIN]})`,!0);Bo.comparatorTrimReplace="$1$2$3";St("HYPHENRANGE",`^\\s*(${Ze[Ke.XRANGEPLAIN]})\\s+-\\s+(${Ze[Ke.XRANGEPLAIN]})\\s*$`);St("HYPHENRANGELOOSE",`^\\s*(${Ze[Ke.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ze[Ke.XRANGEPLAINLOOSE]})\\s*$`);St("STAR","(<|>)?=?\\s*\\*");St("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");St("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var fp=B((cCe,MP)=>{"use strict";var mB=Object.freeze({loose:!0}),gB=Object.freeze({}),yB=e=>e?typeof e!="object"?mB:e:gB;MP.exports=yB});var d_=B((lCe,DP)=>{"use strict";var qP=/^[0-9]+$/,LP=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=qP.test(e),i=qP.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},vB=(e,t)=>LP(t,e);DP.exports={compareIdentifiers:LP,rcompareIdentifiers:vB}});var Sn=B((uCe,zP)=>{"use strict";var pp=Fu(),{MAX_LENGTH:UP,MAX_SAFE_INTEGER:hp}=cl(),{safeRe:mp,t:gp}=ll(),_B=fp(),{compareIdentifiers:f_}=d_(),bB=(e,t)=>{let r=t.split(".");if(r.length>e.length)return!1;for(let i=0;i<r.length;i++)if(f_(e[i],r[i])!==0)return!1;return!0},p_=class e{constructor(t,r){if(r=_B(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>UP)throw new TypeError(`version is longer than ${UP} characters`);pp("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?mp[gp.LOOSE]:mp[gp.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>hp||this.major<0)throw new TypeError("Invalid major version");if(this.minor>hp||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>hp||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let o=+n;if(o>=0&&o<hp)return o}return n}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(pp("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let i=this.prerelease[r],n=t.prerelease[r];if(pp("prerelease compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return f_(i,n)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let i=this.build[r],n=t.build[r];if(pp("build compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return f_(i,n)}while(++r)}inc(t,r,i){if(t.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?mp[gp.PRERELEASELOOSE]:mp[gp.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let o=[r,n];if(i===!1&&(o=[r]),bB(this.prerelease,r)){let s=this.prerelease[r.split(".").length];isNaN(s)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};zP.exports=p_});var Ma=B((dCe,VP)=>{"use strict";var FP=Sn(),SB=(e,t,r=!1)=>{if(e instanceof FP)return e;try{return new FP(e,t)}catch(i){if(!r)return null;throw i}};VP.exports=SB});var BP=B((fCe,JP)=>{"use strict";var wB=Ma(),$B=(e,t)=>{let r=wB(e,t);return r?r.version:null};JP.exports=$B});var ZP=B((pCe,HP)=>{"use strict";var RB=Ma(),EB=(e,t)=>{let r=RB(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};HP.exports=EB});var WP=B((hCe,GP)=>{"use strict";var KP=Sn(),PB=(e,t,r,i,n)=>{typeof r=="string"&&(n=i,i=r,r=void 0);try{return new KP(e instanceof KP?e.version:e,r).inc(t,i,n).version}catch{return null}};GP.exports=PB});var QP=B((mCe,XP)=>{"use strict";var YP=Ma(),OB=(e,t)=>{let r=YP(e,null,!0),i=YP(t,null,!0),n=r.compare(i);if(n===0)return null;let o=n>0,s=o?r:i,a=o?i:r,c=!!s.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(s)===0)return a.minor&&!a.patch?"minor":"patch"}let u=c?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"};XP.exports=OB});var tO=B((gCe,eO)=>{"use strict";var IB=Sn(),CB=(e,t)=>new IB(e,t).major;eO.exports=CB});var nO=B((yCe,rO)=>{"use strict";var kB=Sn(),TB=(e,t)=>new kB(e,t).minor;rO.exports=TB});var oO=B((vCe,iO)=>{"use strict";var jB=Sn(),AB=(e,t)=>new jB(e,t).patch;iO.exports=AB});var aO=B((_Ce,sO)=>{"use strict";var NB=Ma(),xB=(e,t)=>{let r=NB(e,t);return r&&r.prerelease.length?r.prerelease:null};sO.exports=xB});var Hi=B((bCe,lO)=>{"use strict";var cO=Sn(),MB=(e,t,r)=>new cO(e,r).compare(new cO(t,r));lO.exports=MB});var dO=B((SCe,uO)=>{"use strict";var qB=Hi(),LB=(e,t,r)=>qB(t,e,r);uO.exports=LB});var pO=B((wCe,fO)=>{"use strict";var DB=Hi(),UB=(e,t)=>DB(e,t,!0);fO.exports=UB});var yp=B(($Ce,mO)=>{"use strict";var hO=Sn(),zB=(e,t,r)=>{let i=new hO(e,r),n=new hO(t,r);return i.compare(n)||i.compareBuild(n)};mO.exports=zB});var yO=B((RCe,gO)=>{"use strict";var FB=yp(),VB=(e,t)=>e.sort((r,i)=>FB(r,i,t));gO.exports=VB});var _O=B((ECe,vO)=>{"use strict";var JB=yp(),BB=(e,t)=>e.sort((r,i)=>JB(i,r,t));vO.exports=BB});var Vu=B((PCe,bO)=>{"use strict";var HB=Hi(),ZB=(e,t,r)=>HB(e,t,r)>0;bO.exports=ZB});var vp=B((OCe,SO)=>{"use strict";var KB=Hi(),GB=(e,t,r)=>KB(e,t,r)<0;SO.exports=GB});var h_=B((ICe,wO)=>{"use strict";var WB=Hi(),YB=(e,t,r)=>WB(e,t,r)===0;wO.exports=YB});var m_=B((CCe,$O)=>{"use strict";var XB=Hi(),QB=(e,t,r)=>XB(e,t,r)!==0;$O.exports=QB});var _p=B((kCe,RO)=>{"use strict";var eH=Hi(),tH=(e,t,r)=>eH(e,t,r)>=0;RO.exports=tH});var bp=B((TCe,EO)=>{"use strict";var rH=Hi(),nH=(e,t,r)=>rH(e,t,r)<=0;EO.exports=nH});var g_=B((jCe,PO)=>{"use strict";var iH=h_(),oH=m_(),sH=Vu(),aH=_p(),cH=vp(),lH=bp(),uH=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return iH(e,r,i);case"!=":return oH(e,r,i);case">":return sH(e,r,i);case">=":return aH(e,r,i);case"<":return cH(e,r,i);case"<=":return lH(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};PO.exports=uH});var IO=B((ACe,OO)=>{"use strict";var dH=Sn(),fH=Ma(),{safeRe:Sp,t:wp}=ll(),pH=(e,t)=>{if(e instanceof dH)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Sp[wp.COERCEFULL]:Sp[wp.COERCE]);else{let c=t.includePrerelease?Sp[wp.COERCERTLFULL]:Sp[wp.COERCERTL],l;for(;(l=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;let i=r[2],n=r[3]||"0",o=r[4]||"0",s=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return fH(`${i}.${n}.${o}${s}${a}`,t)};OO.exports=pH});var kO=B((NCe,CO)=>{"use strict";var hH=Ma(),mH=cl(),gH=Sn(),yH=(e,t,r)=>{if(!mH.RELEASE_TYPES.includes(t))return null;let i=vH(e,r);return i&&_H(i,t)},vH=(e,t)=>{let r=e instanceof gH?e.version:e;return hH(r,t)},_H=(e,t)=>{if(bH(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},bH=e=>e.startsWith("pre");CO.exports=yH});var jO=B((xCe,TO)=>{"use strict";var y_=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(t,r)}return this}};TO.exports=y_});var Zi=B((MCe,MO)=>{"use strict";var SH=/\s+/g,v_=class e{constructor(t,r){if(r=$H(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof __)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(SH," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!NO(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&jH(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(TH,"");let i=((this.options.includePrerelease&&CH)|(this.options.loose&&kH))+":"+t,n=AO.get(i);if(n)return n;let o=this.options.loose,s=o?Bn[wn.HYPHENRANGELOOSE]:Bn[wn.HYPHENRANGE];t=t.replace(s,VH(this.options.includePrerelease)),dr("hyphen replace",t),t=t.replace(Bn[wn.COMPARATORTRIM],PH),dr("comparator trim",t),t=t.replace(Bn[wn.TILDETRIM],OH),dr("tilde trim",t),t=t.replace(Bn[wn.CARETTRIM],IH),dr("caret trim",t);let a=t.split(" ").map(f=>AH(f,this.options)).join(" ").split(/\s+/).map(f=>FH(f,this.options));o&&(a=a.filter(f=>(dr("loose invalid filter",f,this.options),!!f.match(Bn[wn.COMPARATORLOOSE])))),dr("range list",a);let c=new Map,l=a.map(f=>new __(f,this.options));for(let f of l){if(NO(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let u=[...c.values()];return AO.set(i,u),u}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>xO(i,r)&&t.set.some(n=>xO(n,r)&&i.every(o=>n.every(s=>o.intersects(s,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new RH(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(JH(this.set[r],t,this.options))return!0;return!1}};MO.exports=v_;var wH=jO(),AO=new wH,$H=fp(),__=Ju(),dr=Fu(),RH=Sn(),{safeRe:Bn,src:EH,t:wn,comparatorTrimReplace:PH,tildeTrimReplace:OH,caretTrimReplace:IH}=ll(),{FLAG_INCLUDE_PRERELEASE:CH,FLAG_LOOSE:kH}=cl(),TH=new RegExp(EH[wn.BUILD],"g"),NO=e=>e.value==="<0.0.0-0",jH=e=>e.value==="",xO=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(o=>n.intersects(o,t)),n=i.pop();return r},AH=(e,t)=>(e=e.replace(Bn[wn.BUILD],""),dr("comp",e,t),e=qH(e,t),dr("caret",e),e=xH(e,t),dr("tildes",e),e=DH(e,t),dr("xrange",e),e=zH(e,t),dr("stars",e),e),Wr=e=>!e||e.toLowerCase()==="x"||e==="*",NH=(e,t,r)=>Wr(e)&&!Wr(t)||Wr(t)&&r&&!Wr(r),xH=(e,t)=>e.trim().split(/\s+/).map(r=>MH(r,t)).join(" "),MH=(e,t)=>{let r=t.loose?Bn[wn.TILDELOOSE]:Bn[wn.TILDE],i=t.includePrerelease?"-0":"";return e.replace(r,(n,o,s,a,c)=>{dr("tilde",e,n,o,s,a,c);let l;return Wr(o)?l="":Wr(s)?l=`>=${o}.0.0${i} <${+o+1}.0.0-0`:Wr(a)?l=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:c?(dr("replaceTilde pr",c),l=`>=${o}.${s}.${a}-${c} <${o}.${+s+1}.0-0`):l=`>=${o}.${s}.${a} <${o}.${+s+1}.0-0`,dr("tilde return",l),l})},qH=(e,t)=>e.trim().split(/\s+/).map(r=>LH(r,t)).join(" "),LH=(e,t)=>{dr("caret",e,t);let r=t.loose?Bn[wn.CARETLOOSE]:Bn[wn.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,o,s,a,c)=>{dr("caret",e,n,o,s,a,c);let l;return Wr(o)?l="":Wr(s)?l=`>=${o}.0.0${i} <${+o+1}.0.0-0`:Wr(a)?o==="0"?l=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:l=`>=${o}.${s}.0${i} <${+o+1}.0.0-0`:c?(dr("replaceCaret pr",c),o==="0"?s==="0"?l=`>=${o}.${s}.${a}-${c} <${o}.${s}.${+a+1}-0`:l=`>=${o}.${s}.${a}-${c} <${o}.${+s+1}.0-0`:l=`>=${o}.${s}.${a}-${c} <${+o+1}.0.0-0`):(dr("no pr"),o==="0"?s==="0"?l=`>=${o}.${s}.${a} <${o}.${s}.${+a+1}-0`:l=`>=${o}.${s}.${a} <${o}.${+s+1}.0-0`:l=`>=${o}.${s}.${a} <${+o+1}.0.0-0`),dr("caret return",l),l})},DH=(e,t)=>(dr("replaceXRanges",e,t),e.split(/\s+/).map(r=>UH(r,t)).join(" ")),UH=(e,t)=>{e=e.trim();let r=t.loose?Bn[wn.XRANGELOOSE]:Bn[wn.XRANGE];return e.replace(r,(i,n,o,s,a,c)=>{if(dr("xRange",e,i,n,o,s,a,c),NH(o,s,a))return e;let l=Wr(o),u=l||Wr(s),f=u||Wr(a),p=f;return n==="="&&p&&(n=""),c=t.includePrerelease?"-0":"",l?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&p?(u&&(s=0),a=0,n===">"?(n=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):n==="<="&&(n="<",u?o=+o+1:s=+s+1),n==="<"&&(c="-0"),i=`${n+o}.${s}.${a}${c}`):u?i=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(i=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),dr("xRange return",i),i})},zH=(e,t)=>(dr("replaceStars",e,t),e.trim().replace(Bn[wn.STAR],"")),FH=(e,t)=>(dr("replaceGTE0",e,t),e.trim().replace(Bn[t.includePrerelease?wn.GTE0PRE:wn.GTE0],"")),VH=e=>(t,r,i,n,o,s,a,c,l,u,f,p)=>(Wr(i)?r="":Wr(n)?r=`>=${i}.0.0${e?"-0":""}`:Wr(o)?r=`>=${i}.${n}.0${e?"-0":""}`:s?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Wr(l)?c="":Wr(u)?c=`<${+l+1}.0.0-0`:Wr(f)?c=`<${l}.${+u+1}.0-0`:p?c=`<=${l}.${u}.${f}-${p}`:e?c=`<${l}.${u}.${+f+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),JH=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(dr(e[i].semver),e[i].semver!==__.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}});var Ju=B((qCe,FO)=>{"use strict";var Bu=Symbol("SemVer ANY"),w_=class e{static get ANY(){return Bu}constructor(t,r){if(r=qO(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),S_("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Bu?this.value="":this.value=this.operator+this.semver.version,S_("comp",this)}parse(t){let r=this.options.loose?LO[DO.COMPARATORLOOSE]:LO[DO.COMPARATOR],i=t.match(r);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new UO(i[2],this.options.loose):this.semver=Bu}toString(){return this.value}test(t){if(S_("Comparator.test",t,this.options.loose),this.semver===Bu||t===Bu)return!0;if(typeof t=="string")try{t=new UO(t,this.options)}catch{return!1}return b_(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new zO(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new zO(this.value,r).test(t.semver):(r=qO(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||b_(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||b_(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};FO.exports=w_;var qO=fp(),{safeRe:LO,t:DO}=ll(),b_=g_(),S_=Fu(),UO=Sn(),zO=Zi()});var Hu=B((LCe,VO)=>{"use strict";var BH=Zi(),HH=(e,t,r)=>{try{t=new BH(t,r)}catch{return!1}return t.test(e)};VO.exports=HH});var BO=B((DCe,JO)=>{"use strict";var ZH=Zi(),KH=(e,t)=>new ZH(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));JO.exports=KH});var ZO=B((UCe,HO)=>{"use strict";var GH=Sn(),WH=Zi(),YH=(e,t,r)=>{let i=null,n=null,o=null;try{o=new WH(t,r)}catch{return null}return e.forEach(s=>{o.test(s)&&(!i||n.compare(s)===-1)&&(i=s,n=new GH(i,r))}),i};HO.exports=YH});var GO=B((zCe,KO)=>{"use strict";var XH=Sn(),QH=Zi(),eZ=(e,t,r)=>{let i=null,n=null,o=null;try{o=new QH(t,r)}catch{return null}return e.forEach(s=>{o.test(s)&&(!i||n.compare(s)===1)&&(i=s,n=new XH(i,r))}),i};KO.exports=eZ});var XO=B((FCe,YO)=>{"use strict";var $_=Sn(),tZ=Zi(),WO=Vu(),rZ=(e,t)=>{e=new tZ(e,t);let r=new $_("0.0.0");if(e.test(r)||(r=new $_("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){let n=e.set[i],o=null;n.forEach(s=>{let a=new $_(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||WO(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!r||WO(r,o))&&(r=o)}return r&&e.test(r)?r:null};YO.exports=rZ});var eI=B((VCe,QO)=>{"use strict";var nZ=Zi(),iZ=(e,t)=>{try{return new nZ(e,t).range||"*"}catch{return null}};QO.exports=iZ});var $p=B((JCe,iI)=>{"use strict";var oZ=Sn(),nI=Ju(),{ANY:sZ}=nI,aZ=Zi(),cZ=Hu(),tI=Vu(),rI=vp(),lZ=bp(),uZ=_p(),dZ=(e,t,r,i)=>{e=new oZ(e,i),t=new aZ(t,i);let n,o,s,a,c;switch(r){case">":n=tI,o=lZ,s=rI,a=">",c=">=";break;case"<":n=rI,o=uZ,s=tI,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cZ(e,t,i))return!1;for(let l=0;l<t.set.length;++l){let u=t.set[l],f=null,p=null;if(u.forEach(g=>{g.semver===sZ&&(g=new nI(">=0.0.0")),f=f||g,p=p||g,n(g.semver,f.semver,i)?f=g:s(g.semver,p.semver,i)&&(p=g)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0};iI.exports=dZ});var sI=B((BCe,oI)=>{"use strict";var fZ=$p(),pZ=(e,t,r)=>fZ(e,t,">",r);oI.exports=pZ});var cI=B((HCe,aI)=>{"use strict";var hZ=$p(),mZ=(e,t,r)=>hZ(e,t,"<",r);aI.exports=mZ});var dI=B((ZCe,uI)=>{"use strict";var lI=Zi(),gZ=(e,t,r)=>(e=new lI(e,r),t=new lI(t,r),e.intersects(t,r));uI.exports=gZ});var pI=B((KCe,fI)=>{"use strict";var yZ=Hu(),vZ=Hi();fI.exports=(e,t,r)=>{let i=[],n=null,o=null,s=e.sort((u,f)=>vZ(u,f,r));for(let u of s)yZ(u,t,r)?(o=u,n||(n=u)):(o&&i.push([n,o]),o=null,n=null);n&&i.push([n,null]);let a=[];for(let[u,f]of i)u===f?a.push(u):!f&&u===s[0]?a.push("*"):f?u===s[0]?a.push(`<=${f}`):a.push(`${u} - ${f}`):a.push(`>=${u}`);let c=a.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return c.length<l.length?c:t}});var _I=B((GCe,vI)=>{"use strict";var hI=Zi(),P_=Ju(),{ANY:R_}=P_,E_=Hu(),O_=Hi(),_Z=(e,t,r={})=>{if(e===t)return!0;e=new hI(e,r),t=new hI(t,r);let i=!1;e:for(let n of e.set){for(let o of t.set){let s=SZ(n,o,r);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},bZ=[new P_(">=0.0.0-0")],mI=[new P_(">=0.0.0")],SZ=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===R_){if(t.length===1&&t[0].semver===R_)return!0;r.includePrerelease?e=bZ:e=mI}if(t.length===1&&t[0].semver===R_){if(r.includePrerelease)return!0;t=mI}let i=new Set,n,o;for(let g of e)g.operator===">"||g.operator===">="?n=gI(n,g,r):g.operator==="<"||g.operator==="<="?o=yI(o,g,r):i.add(g.semver);if(i.size>1)return null;let s;if(n&&o){if(s=O_(n.semver,o.semver,r),s>0)return null;if(s===0&&(n.operator!==">="||o.operator!=="<="))return null}for(let g of i){if(n&&!E_(g,String(n),r)||o&&!E_(g,String(o),r))return null;for(let h of t)if(!E_(g,String(h),r))return!1;return!0}let a,c,l,u,f=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,p=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;f&&f.prerelease.length===1&&o.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let g of t){if(u=u||g.operator===">"||g.operator===">=",l=l||g.operator==="<"||g.operator==="<=",n){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(a=gI(n,g,r),a===g&&a!==n)return!1}else if(n.operator===">="&&!g.test(n.semver))return!1}if(o){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=yI(o,g,r),c===g&&c!==o)return!1}else if(o.operator==="<="&&!g.test(o.semver))return!1}if(!g.operator&&(o||n)&&s!==0)return!1}return!(n&&l&&!o&&s!==0||o&&u&&!n&&s!==0||p||f)},gI=(e,t,r)=>{if(!e)return t;let i=O_(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},yI=(e,t,r)=>{if(!e)return t;let i=O_(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};vI.exports=_Z});var $I=B((WCe,wI)=>{"use strict";var I_=ll(),bI=cl(),wZ=Sn(),SI=d_(),$Z=Ma(),RZ=BP(),EZ=ZP(),PZ=WP(),OZ=QP(),IZ=tO(),CZ=nO(),kZ=oO(),TZ=aO(),jZ=Hi(),AZ=dO(),NZ=pO(),xZ=yp(),MZ=yO(),qZ=_O(),LZ=Vu(),DZ=vp(),UZ=h_(),zZ=m_(),FZ=_p(),VZ=bp(),JZ=g_(),BZ=IO(),HZ=kO(),ZZ=Ju(),KZ=Zi(),GZ=Hu(),WZ=BO(),YZ=ZO(),XZ=GO(),QZ=XO(),e3=eI(),t3=$p(),r3=sI(),n3=cI(),i3=dI(),o3=pI(),s3=_I();wI.exports={parse:$Z,valid:RZ,clean:EZ,inc:PZ,diff:OZ,major:IZ,minor:CZ,patch:kZ,prerelease:TZ,compare:jZ,rcompare:AZ,compareLoose:NZ,compareBuild:xZ,sort:MZ,rsort:qZ,gt:LZ,lt:DZ,eq:UZ,neq:zZ,gte:FZ,lte:VZ,cmp:JZ,coerce:BZ,truncate:HZ,Comparator:ZZ,Range:KZ,satisfies:GZ,toComparators:WZ,maxSatisfying:YZ,minSatisfying:XZ,minVersion:QZ,validRange:e3,outside:t3,gtr:r3,ltr:n3,intersects:i3,simplifyRange:o3,subset:s3,SemVer:wZ,re:I_.re,src:I_.src,tokens:I_.t,SEMVER_SPEC_VERSION:bI.SEMVER_SPEC_VERSION,RELEASE_TYPES:bI.RELEASE_TYPES,compareIdentifiers:SI.compareIdentifiers,rcompareIdentifiers:SI.rcompareIdentifiers}});var pa=B((YCe,NI)=>{var qa=require("fs"),Ki=require("path"),EI=c_(),Gi=$I(),{DEFAULT_API_URL:a3}=fa(),PI=["dependencies","devDependencies","optionalDependencies","peerDependencies"];function C_(e){let t=typeof e=="string"&&e.match(/^((?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*)(?:@([^\r\n]+))?$/);if(!t)throw new Error(`Invalid npm dependency: ${String(e)}`);return{name:t[1],version:t[2]}}function k_(e){let t=new Map;for(let r of e){let{name:i,version:n}=C_(r),o=t.get(i);t.set(i,o&&n?OI(i,o,n):n||o)}return t}function OI(e,t,r){if(t===r)return t;let i=Gi.validRange(t),n=Gi.validRange(r);if(i&&n)try{if(Gi.subset(n,i))return r;if(Gi.subset(i,n))return t}catch{}throw new Error(`Conflicting registry versions for ${e}: ${t} and ${r}`)}function c3(e,t){let r=typeof e=="string"&&Gi.validRange(e),i=Gi.validRange(t);if(!r||!i)return!1;try{return Gi.subset(r,i)}catch{return!1}}function Ep(e,t){if(c3(e,t))return"satisfied";let r=typeof e=="string"&&Gi.validRange(e),i=Gi.validRange(t);if(!r||!i)return"incomparable";try{let n=Gi.minVersion(r),o=Gi.minVersion(i);return!n||!o?"incomparable":Gi.lt(n,o)?"lower":"newer"}catch{return"incomparable"}}function Rp(e,t){let r=PI.find(i=>Object.hasOwn(e[i]||{},t));return r?{section:r,existing:e[r][t]}:null}function II(e,t){let r=k_(t);if(r.size===0)return;let i=Ki.join(e,"package.json"),n=JSON.parse(qa.readFileSync(i,"utf8"));for(let[o,s]of r){let a=Rp(n,o),c=a?.section||"dependencies";n[c]||={};let l=a?.existing;n[c][o]=l===void 0?s||"latest":s&&Ep(l,s)==="lower"?s:l}qa.writeFileSync(i,`${JSON.stringify(n,null,2)}
2
+ var g9=Object.create;var up=Object.defineProperty;var y9=Object.getOwnPropertyDescriptor;var v9=Object.getOwnPropertyNames;var _9=Object.getPrototypeOf,b9=Object.prototype.hasOwnProperty;var Ve=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bo=(e,t)=>{for(var r in t)up(e,r,{get:t[r],enumerable:!0})},VE=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of v9(t))!b9.call(e,n)&&n!==r&&up(e,n,{get:()=>t[n],enumerable:!(i=y9(t,n))||i.enumerable});return e};var Bi=(e,t,r)=>(r=e!=null?g9(_9(e)):{},VE(t||!e||!e.__esModule?up(r,"default",{value:e,enumerable:!0}):r,e)),Mr=e=>VE(up({},"__esModule",{value:!0}),e);var xa=B((VIe,S9)=>{S9.exports={name:"@frontfriend/sdk",version:"1.3.0"}});var So=B((JIe,JE)=>{var{name:w9}=xa();JE.exports={PACKAGE_NAME:w9}});var fa=B((BIe,BE)=>{var $9="https://app.frontfriend.dev",R9=".cache/frontfriend",E9={JS:["tokens.js","variables.js","semanticVariables.js","semanticDarkVariables.js","keyframes.js","animations.js","safelist.js","custom.js"],JSON:["fonts.json","icons.json","components-config.json","iconLibrary.json","version.json","versionMetadata.json","metadata.json","base.json","nativeTokens.json"]},P9={FF_ID:"FF_ID",FF_API_URL:"FF_API_URL",FF_AUTH_TOKEN:"FF_AUTH_TOKEN",FF_MACHINE_TOKEN:"FRONTFRIEND_MACHINE_TOKEN"};function O9(e){if(!e)return null;try{let t=new URL(e);return t.hostname.startsWith("app.")?`${t.protocol}//${t.hostname.replace(/^app\./,"registry.")}`:null}catch{return null}}BE.exports={DEFAULT_API_URL:$9,CACHE_DIR_NAME:R9,CACHE_TTL_DAYS:7,CACHE_TTL_MS:6048e5,CACHE_FILES:E9,ENV_VARS:P9,deriveRegistryFromApiUrl:O9}});var WE=B((HIe,GE)=>{GE.exports=KE;KE.sync=C9;var HE=require("fs");function I9(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}function ZE(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:I9(t,r)}function KE(e,t,r){HE.stat(e,function(i,n){r(i,i?!1:ZE(n,e,t))})}function C9(e,t){return ZE(HE.statSync(e),e,t)}});var tP=B((ZIe,eP)=>{eP.exports=XE;XE.sync=k9;var YE=require("fs");function XE(e,t,r){YE.stat(e,function(i,n){r(i,i?!1:QE(n,t))})}function k9(e,t){return QE(YE.statSync(e),t)}function QE(e,t){return e.isFile()&&T9(e,t)}function T9(e,t){var r=e.mode,i=e.uid,n=e.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=parseInt("001",8),u=a|c,f=r&l||r&c&&n===s||r&a&&i===o||r&u&&o===0;return f}});var nP=B((GIe,rP)=>{var KIe=require("fs"),dp;process.platform==="win32"||global.TESTING_WINDOWS?dp=WE():dp=tP();rP.exports=Qv;Qv.sync=j9;function Qv(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Qv(e,t||{},function(o,s){o?n(o):i(s)})})}dp(e,t||{},function(i,n){i&&(i.code==="EACCES"||t&&t.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function j9(e,t){try{return dp.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var uP=B((WIe,lP)=>{var sl=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",iP=require("path"),A9=sl?";":":",oP=nP(),sP=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),aP=(e,t)=>{let r=t.colon||A9,i=e.match(/\//)||sl&&e.match(/\\/)?[""]:[...sl?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=sl?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=sl?n.split(r):[""];return sl&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:n}},cP=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:i,pathExt:n,pathExtExe:o}=aP(e,t),s=[],a=l=>new Promise((u,f)=>{if(l===i.length)return t.all&&s.length?u(s):f(sP(e));let p=i[l],g=/^".*"$/.test(p)?p.slice(1,-1):p,h=iP.join(g,e),v=!g&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;u(c(v,l,0))}),c=(l,u,f)=>new Promise((p,g)=>{if(f===n.length)return p(a(u+1));let h=n[f];oP(l+h,{pathExt:o},(v,y)=>{if(!v&&y)if(t.all)s.push(l+h);else return p(l+h);return p(c(l,u,f+1))})});return r?a(0).then(l=>r(null,l),r):a(0)},N9=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=aP(e,t),o=[];for(let s=0;s<r.length;s++){let a=r[s],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=iP.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let f=0;f<i.length;f++){let p=u+i[f];try{if(oP.sync(p,{pathExt:n}))if(t.all)o.push(p);else return p}catch{}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sP(e)};lP.exports=cP;cP.sync=N9});var fP=B((YIe,e_)=>{"use strict";var dP=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};e_.exports=dP;e_.exports.default=dP});var gP=B((XIe,mP)=>{"use strict";var pP=require("path"),x9=uP(),M9=fP();function hP(e,t){let r=e.options.env||process.env,i=process.cwd(),n=e.options.cwd!=null,o=n&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let s;try{s=x9.sync(e.command,{path:r[M9({env:r})],pathExt:t?pP.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return s&&(s=pP.resolve(n?e.options.cwd:"",s)),s}function q9(e){return hP(e)||hP(e,!0)}mP.exports=q9});var yP=B((QIe,r_)=>{"use strict";var t_=/([()\][%!^"`<>&|;, *?])/g;function L9(e){return e=e.replace(t_,"^$1"),e}function D9(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(t_,"^$1"),t&&(e=e.replace(t_,"^$1")),e}r_.exports.command=L9;r_.exports.argument=D9});var _P=B((eCe,vP)=>{"use strict";vP.exports=/^#!(.*)/});var SP=B((tCe,bP)=>{"use strict";var U9=_P();bP.exports=(e="")=>{let t=e.match(U9);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var $P=B((rCe,wP)=>{"use strict";var n_=require("fs"),z9=SP();function F9(e){let r=Buffer.alloc(150),i;try{i=n_.openSync(e,"r"),n_.readSync(i,r,0,150,0),n_.closeSync(i)}catch{}return z9(r.toString())}wP.exports=F9});var OP=B((nCe,PP)=>{"use strict";var V9=require("path"),RP=gP(),EP=yP(),J9=$P(),B9=process.platform==="win32",H9=/\.(?:com|exe)$/i,Z9=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function K9(e){e.file=RP(e);let t=e.file&&J9(e.file);return t?(e.args.unshift(e.file),e.command=t,RP(e)):e.file}function G9(e){if(!B9)return e;let t=K9(e),r=!H9.test(t);if(e.options.forceShell||r){let i=Z9.test(t);e.command=V9.normalize(e.command),e.command=EP.command(e.command),e.args=e.args.map(o=>EP.argument(o,i));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function W9(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let i={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?i:G9(i)}PP.exports=W9});var kP=B((iCe,CP)=>{"use strict";var i_=process.platform==="win32";function o_(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Y9(e,t){if(!i_)return;let r=e.emit;e.emit=function(i,n){if(i==="exit"){let o=IP(n,t);if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}}function IP(e,t){return i_&&e===1&&!t.file?o_(t.original,"spawn"):null}function X9(e,t){return i_&&e===1&&!t.file?o_(t.original,"spawnSync"):null}CP.exports={hookChildProcess:Y9,verifyENOENT:IP,verifyENOENTSync:X9,notFoundError:o_}});var c_=B((oCe,al)=>{"use strict";var TP=require("child_process"),s_=OP(),a_=kP();function jP(e,t,r){let i=s_(e,t,r),n=TP.spawn(i.command,i.args,i.options);return a_.hookChildProcess(n,i),n}function Q9(e,t,r){let i=s_(e,t,r),n=TP.spawnSync(i.command,i.args,i.options);return n.error=n.error||a_.verifyENOENTSync(n.status,i),n}al.exports=jP;al.exports.spawn=jP;al.exports.sync=Q9;al.exports._parse=s_;al.exports._enoent=a_});var cl=B((sCe,AP)=>{"use strict";var eB="2.0.0",tB=Number.MAX_SAFE_INTEGER||9007199254740991,rB=16,nB=250,iB=["major","premajor","minor","preminor","patch","prepatch","prerelease"];AP.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rB,MAX_SAFE_BUILD_LENGTH:nB,MAX_SAFE_INTEGER:tB,RELEASE_TYPES:iB,SEMVER_SPEC_VERSION:eB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Fu=B((aCe,NP)=>{"use strict";var oB=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};NP.exports=oB});var ll=B((Bo,xP)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l_,MAX_SAFE_BUILD_LENGTH:sB,MAX_LENGTH:aB}=cl(),cB=Fu();Bo=xP.exports={};var lB=Bo.re=[],uB=Bo.safeRe=[],Ze=Bo.src=[],dB=Bo.safeSrc=[],Ke=Bo.t={},fB=0,u_="[a-zA-Z0-9-]",pB=[["\\s",1],["\\d",aB],[u_,sB]],hB=e=>{for(let[t,r]of pB)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},St=(e,t,r)=>{let i=hB(t),n=fB++;cB(e,n,t),Ke[e]=n,Ze[n]=t,dB[n]=i,lB[n]=new RegExp(t,r?"g":void 0),uB[n]=new RegExp(i,r?"g":void 0)};St("NUMERICIDENTIFIER","0|[1-9]\\d*");St("NUMERICIDENTIFIERLOOSE","\\d+");St("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u_}*`);St("MAINVERSION",`(${Ze[Ke.NUMERICIDENTIFIER]})\\.(${Ze[Ke.NUMERICIDENTIFIER]})\\.(${Ze[Ke.NUMERICIDENTIFIER]})`);St("MAINVERSIONLOOSE",`(${Ze[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Ze[Ke.NUMERICIDENTIFIERLOOSE]})\\.(${Ze[Ke.NUMERICIDENTIFIERLOOSE]})`);St("PRERELEASEIDENTIFIER",`(?:${Ze[Ke.NONNUMERICIDENTIFIER]}|${Ze[Ke.NUMERICIDENTIFIER]})`);St("PRERELEASEIDENTIFIERLOOSE",`(?:${Ze[Ke.NONNUMERICIDENTIFIER]}|${Ze[Ke.NUMERICIDENTIFIERLOOSE]})`);St("PRERELEASE",`(?:-(${Ze[Ke.PRERELEASEIDENTIFIER]}(?:\\.${Ze[Ke.PRERELEASEIDENTIFIER]})*))`);St("PRERELEASELOOSE",`(?:-?(${Ze[Ke.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ze[Ke.PRERELEASEIDENTIFIERLOOSE]})*))`);St("BUILDIDENTIFIER",`${u_}+`);St("BUILD",`(?:\\+(${Ze[Ke.BUILDIDENTIFIER]}(?:\\.${Ze[Ke.BUILDIDENTIFIER]})*))`);St("FULLPLAIN",`v?${Ze[Ke.MAINVERSION]}${Ze[Ke.PRERELEASE]}?${Ze[Ke.BUILD]}?`);St("FULL",`^${Ze[Ke.FULLPLAIN]}$`);St("LOOSEPLAIN",`[v=\\s]*${Ze[Ke.MAINVERSIONLOOSE]}${Ze[Ke.PRERELEASELOOSE]}?${Ze[Ke.BUILD]}?`);St("LOOSE",`^${Ze[Ke.LOOSEPLAIN]}$`);St("GTLT","((?:<|>)?=?)");St("XRANGEIDENTIFIERLOOSE",`${Ze[Ke.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);St("XRANGEIDENTIFIER",`${Ze[Ke.NUMERICIDENTIFIER]}|x|X|\\*`);St("XRANGEPLAIN",`[v=\\s]*(${Ze[Ke.XRANGEIDENTIFIER]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIER]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIER]})(?:${Ze[Ke.PRERELEASE]})?${Ze[Ke.BUILD]}?)?)?`);St("XRANGEPLAINLOOSE",`[v=\\s]*(${Ze[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ze[Ke.XRANGEIDENTIFIERLOOSE]})(?:${Ze[Ke.PRERELEASELOOSE]})?${Ze[Ke.BUILD]}?)?)?`);St("XRANGE",`^${Ze[Ke.GTLT]}\\s*${Ze[Ke.XRANGEPLAIN]}$`);St("XRANGELOOSE",`^${Ze[Ke.GTLT]}\\s*${Ze[Ke.XRANGEPLAINLOOSE]}$`);St("COERCEPLAIN",`(^|[^\\d])(\\d{1,${l_}})(?:\\.(\\d{1,${l_}}))?(?:\\.(\\d{1,${l_}}))?`);St("COERCE",`${Ze[Ke.COERCEPLAIN]}(?:$|[^\\d])`);St("COERCEFULL",Ze[Ke.COERCEPLAIN]+`(?:${Ze[Ke.PRERELEASE]})?(?:${Ze[Ke.BUILD]})?(?:$|[^\\d])`);St("COERCERTL",Ze[Ke.COERCE],!0);St("COERCERTLFULL",Ze[Ke.COERCEFULL],!0);St("LONETILDE","(?:~>?)");St("TILDETRIM",`(\\s*)${Ze[Ke.LONETILDE]}\\s+`,!0);Bo.tildeTrimReplace="$1~";St("TILDE",`^${Ze[Ke.LONETILDE]}${Ze[Ke.XRANGEPLAIN]}$`);St("TILDELOOSE",`^${Ze[Ke.LONETILDE]}${Ze[Ke.XRANGEPLAINLOOSE]}$`);St("LONECARET","(?:\\^)");St("CARETTRIM",`(\\s*)${Ze[Ke.LONECARET]}\\s+`,!0);Bo.caretTrimReplace="$1^";St("CARET",`^${Ze[Ke.LONECARET]}${Ze[Ke.XRANGEPLAIN]}$`);St("CARETLOOSE",`^${Ze[Ke.LONECARET]}${Ze[Ke.XRANGEPLAINLOOSE]}$`);St("COMPARATORLOOSE",`^${Ze[Ke.GTLT]}\\s*(${Ze[Ke.LOOSEPLAIN]})$|^$`);St("COMPARATOR",`^${Ze[Ke.GTLT]}\\s*(${Ze[Ke.FULLPLAIN]})$|^$`);St("COMPARATORTRIM",`(\\s*)${Ze[Ke.GTLT]}\\s*(${Ze[Ke.LOOSEPLAIN]}|${Ze[Ke.XRANGEPLAIN]})`,!0);Bo.comparatorTrimReplace="$1$2$3";St("HYPHENRANGE",`^\\s*(${Ze[Ke.XRANGEPLAIN]})\\s+-\\s+(${Ze[Ke.XRANGEPLAIN]})\\s*$`);St("HYPHENRANGELOOSE",`^\\s*(${Ze[Ke.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ze[Ke.XRANGEPLAINLOOSE]})\\s*$`);St("STAR","(<|>)?=?\\s*\\*");St("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");St("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var fp=B((cCe,MP)=>{"use strict";var mB=Object.freeze({loose:!0}),gB=Object.freeze({}),yB=e=>e?typeof e!="object"?mB:e:gB;MP.exports=yB});var d_=B((lCe,DP)=>{"use strict";var qP=/^[0-9]+$/,LP=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=qP.test(e),i=qP.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1},vB=(e,t)=>LP(t,e);DP.exports={compareIdentifiers:LP,rcompareIdentifiers:vB}});var Sn=B((uCe,zP)=>{"use strict";var pp=Fu(),{MAX_LENGTH:UP,MAX_SAFE_INTEGER:hp}=cl(),{safeRe:mp,t:gp}=ll(),_B=fp(),{compareIdentifiers:f_}=d_(),bB=(e,t)=>{let r=t.split(".");if(r.length>e.length)return!1;for(let i=0;i<r.length;i++)if(f_(e[i],r[i])!==0)return!1;return!0},p_=class e{constructor(t,r){if(r=_B(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>UP)throw new TypeError(`version is longer than ${UP} characters`);pp("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?mp[gp.LOOSE]:mp[gp.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>hp||this.major<0)throw new TypeError("Invalid major version");if(this.minor>hp||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>hp||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let o=+n;if(o>=0&&o<hp)return o}return n}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(pp("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let i=this.prerelease[r],n=t.prerelease[r];if(pp("prerelease compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return f_(i,n)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let i=this.build[r],n=t.build[r];if(pp("build compare",r,i,n),i===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(i===void 0)return-1;if(i===n)continue;return f_(i,n)}while(++r)}inc(t,r,i){if(t.startsWith("pre")){if(!r&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?mp[gp.PRERELEASELOOSE]:mp[gp.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,i),this.inc("pre",r,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,i),this.inc("pre",r,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let o=[r,n];if(i===!1&&(o=[r]),bB(this.prerelease,r)){let s=this.prerelease[r.split(".").length];isNaN(s)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};zP.exports=p_});var Ma=B((dCe,VP)=>{"use strict";var FP=Sn(),SB=(e,t,r=!1)=>{if(e instanceof FP)return e;try{return new FP(e,t)}catch(i){if(!r)return null;throw i}};VP.exports=SB});var BP=B((fCe,JP)=>{"use strict";var wB=Ma(),$B=(e,t)=>{let r=wB(e,t);return r?r.version:null};JP.exports=$B});var ZP=B((pCe,HP)=>{"use strict";var RB=Ma(),EB=(e,t)=>{let r=RB(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};HP.exports=EB});var WP=B((hCe,GP)=>{"use strict";var KP=Sn(),PB=(e,t,r,i,n)=>{typeof r=="string"&&(n=i,i=r,r=void 0);try{return new KP(e instanceof KP?e.version:e,r).inc(t,i,n).version}catch{return null}};GP.exports=PB});var QP=B((mCe,XP)=>{"use strict";var YP=Ma(),OB=(e,t)=>{let r=YP(e,null,!0),i=YP(t,null,!0),n=r.compare(i);if(n===0)return null;let o=n>0,s=o?r:i,a=o?i:r,c=!!s.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(s)===0)return a.minor&&!a.patch?"minor":"patch"}let u=c?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"};XP.exports=OB});var tO=B((gCe,eO)=>{"use strict";var IB=Sn(),CB=(e,t)=>new IB(e,t).major;eO.exports=CB});var nO=B((yCe,rO)=>{"use strict";var kB=Sn(),TB=(e,t)=>new kB(e,t).minor;rO.exports=TB});var oO=B((vCe,iO)=>{"use strict";var jB=Sn(),AB=(e,t)=>new jB(e,t).patch;iO.exports=AB});var aO=B((_Ce,sO)=>{"use strict";var NB=Ma(),xB=(e,t)=>{let r=NB(e,t);return r&&r.prerelease.length?r.prerelease:null};sO.exports=xB});var Hi=B((bCe,lO)=>{"use strict";var cO=Sn(),MB=(e,t,r)=>new cO(e,r).compare(new cO(t,r));lO.exports=MB});var dO=B((SCe,uO)=>{"use strict";var qB=Hi(),LB=(e,t,r)=>qB(t,e,r);uO.exports=LB});var pO=B((wCe,fO)=>{"use strict";var DB=Hi(),UB=(e,t)=>DB(e,t,!0);fO.exports=UB});var yp=B(($Ce,mO)=>{"use strict";var hO=Sn(),zB=(e,t,r)=>{let i=new hO(e,r),n=new hO(t,r);return i.compare(n)||i.compareBuild(n)};mO.exports=zB});var yO=B((RCe,gO)=>{"use strict";var FB=yp(),VB=(e,t)=>e.sort((r,i)=>FB(r,i,t));gO.exports=VB});var _O=B((ECe,vO)=>{"use strict";var JB=yp(),BB=(e,t)=>e.sort((r,i)=>JB(i,r,t));vO.exports=BB});var Vu=B((PCe,bO)=>{"use strict";var HB=Hi(),ZB=(e,t,r)=>HB(e,t,r)>0;bO.exports=ZB});var vp=B((OCe,SO)=>{"use strict";var KB=Hi(),GB=(e,t,r)=>KB(e,t,r)<0;SO.exports=GB});var h_=B((ICe,wO)=>{"use strict";var WB=Hi(),YB=(e,t,r)=>WB(e,t,r)===0;wO.exports=YB});var m_=B((CCe,$O)=>{"use strict";var XB=Hi(),QB=(e,t,r)=>XB(e,t,r)!==0;$O.exports=QB});var _p=B((kCe,RO)=>{"use strict";var eH=Hi(),tH=(e,t,r)=>eH(e,t,r)>=0;RO.exports=tH});var bp=B((TCe,EO)=>{"use strict";var rH=Hi(),nH=(e,t,r)=>rH(e,t,r)<=0;EO.exports=nH});var g_=B((jCe,PO)=>{"use strict";var iH=h_(),oH=m_(),sH=Vu(),aH=_p(),cH=vp(),lH=bp(),uH=(e,t,r,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return iH(e,r,i);case"!=":return oH(e,r,i);case">":return sH(e,r,i);case">=":return aH(e,r,i);case"<":return cH(e,r,i);case"<=":return lH(e,r,i);default:throw new TypeError(`Invalid operator: ${t}`)}};PO.exports=uH});var IO=B((ACe,OO)=>{"use strict";var dH=Sn(),fH=Ma(),{safeRe:Sp,t:wp}=ll(),pH=(e,t)=>{if(e instanceof dH)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Sp[wp.COERCEFULL]:Sp[wp.COERCE]);else{let c=t.includePrerelease?Sp[wp.COERCERTLFULL]:Sp[wp.COERCERTL],l;for(;(l=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;let i=r[2],n=r[3]||"0",o=r[4]||"0",s=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return fH(`${i}.${n}.${o}${s}${a}`,t)};OO.exports=pH});var kO=B((NCe,CO)=>{"use strict";var hH=Ma(),mH=cl(),gH=Sn(),yH=(e,t,r)=>{if(!mH.RELEASE_TYPES.includes(t))return null;let i=vH(e,r);return i&&_H(i,t)},vH=(e,t)=>{let r=e instanceof gH?e.version:e;return hH(r,t)},_H=(e,t)=>{if(bH(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},bH=e=>e.startsWith("pre");CO.exports=yH});var jO=B((xCe,TO)=>{"use strict";var y_=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(t,r)}return this}};TO.exports=y_});var Zi=B((MCe,MO)=>{"use strict";var SH=/\s+/g,v_=class e{constructor(t,r){if(r=$H(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof __)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(SH," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(n=>!NO(n[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&jH(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let i=0;i<r.length;i++)i>0&&(this.formatted+=" "),this.formatted+=r[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(TH,"");let i=((this.options.includePrerelease&&CH)|(this.options.loose&&kH))+":"+t,n=AO.get(i);if(n)return n;let o=this.options.loose,s=o?Bn[wn.HYPHENRANGELOOSE]:Bn[wn.HYPHENRANGE];t=t.replace(s,VH(this.options.includePrerelease)),dr("hyphen replace",t),t=t.replace(Bn[wn.COMPARATORTRIM],PH),dr("comparator trim",t),t=t.replace(Bn[wn.TILDETRIM],OH),dr("tilde trim",t),t=t.replace(Bn[wn.CARETTRIM],IH),dr("caret trim",t);let a=t.split(" ").map(f=>AH(f,this.options)).join(" ").split(/\s+/).map(f=>FH(f,this.options));o&&(a=a.filter(f=>(dr("loose invalid filter",f,this.options),!!f.match(Bn[wn.COMPARATORLOOSE])))),dr("range list",a);let c=new Map,l=a.map(f=>new __(f,this.options));for(let f of l){if(NO(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let u=[...c.values()];return AO.set(i,u),u}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>xO(i,r)&&t.set.some(n=>xO(n,r)&&i.every(o=>n.every(s=>o.intersects(s,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new RH(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(JH(this.set[r],t,this.options))return!0;return!1}};MO.exports=v_;var wH=jO(),AO=new wH,$H=fp(),__=Ju(),dr=Fu(),RH=Sn(),{safeRe:Bn,src:EH,t:wn,comparatorTrimReplace:PH,tildeTrimReplace:OH,caretTrimReplace:IH}=ll(),{FLAG_INCLUDE_PRERELEASE:CH,FLAG_LOOSE:kH}=cl(),TH=new RegExp(EH[wn.BUILD],"g"),NO=e=>e.value==="<0.0.0-0",jH=e=>e.value==="",xO=(e,t)=>{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(o=>n.intersects(o,t)),n=i.pop();return r},AH=(e,t)=>(e=e.replace(Bn[wn.BUILD],""),dr("comp",e,t),e=qH(e,t),dr("caret",e),e=xH(e,t),dr("tildes",e),e=DH(e,t),dr("xrange",e),e=zH(e,t),dr("stars",e),e),Wr=e=>!e||e.toLowerCase()==="x"||e==="*",NH=(e,t,r)=>Wr(e)&&!Wr(t)||Wr(t)&&r&&!Wr(r),xH=(e,t)=>e.trim().split(/\s+/).map(r=>MH(r,t)).join(" "),MH=(e,t)=>{let r=t.loose?Bn[wn.TILDELOOSE]:Bn[wn.TILDE],i=t.includePrerelease?"-0":"";return e.replace(r,(n,o,s,a,c)=>{dr("tilde",e,n,o,s,a,c);let l;return Wr(o)?l="":Wr(s)?l=`>=${o}.0.0${i} <${+o+1}.0.0-0`:Wr(a)?l=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:c?(dr("replaceTilde pr",c),l=`>=${o}.${s}.${a}-${c} <${o}.${+s+1}.0-0`):l=`>=${o}.${s}.${a} <${o}.${+s+1}.0-0`,dr("tilde return",l),l})},qH=(e,t)=>e.trim().split(/\s+/).map(r=>LH(r,t)).join(" "),LH=(e,t)=>{dr("caret",e,t);let r=t.loose?Bn[wn.CARETLOOSE]:Bn[wn.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(n,o,s,a,c)=>{dr("caret",e,n,o,s,a,c);let l;return Wr(o)?l="":Wr(s)?l=`>=${o}.0.0${i} <${+o+1}.0.0-0`:Wr(a)?o==="0"?l=`>=${o}.${s}.0${i} <${o}.${+s+1}.0-0`:l=`>=${o}.${s}.0${i} <${+o+1}.0.0-0`:c?(dr("replaceCaret pr",c),o==="0"?s==="0"?l=`>=${o}.${s}.${a}-${c} <${o}.${s}.${+a+1}-0`:l=`>=${o}.${s}.${a}-${c} <${o}.${+s+1}.0-0`:l=`>=${o}.${s}.${a}-${c} <${+o+1}.0.0-0`):(dr("no pr"),o==="0"?s==="0"?l=`>=${o}.${s}.${a} <${o}.${s}.${+a+1}-0`:l=`>=${o}.${s}.${a} <${o}.${+s+1}.0-0`:l=`>=${o}.${s}.${a} <${+o+1}.0.0-0`),dr("caret return",l),l})},DH=(e,t)=>(dr("replaceXRanges",e,t),e.split(/\s+/).map(r=>UH(r,t)).join(" ")),UH=(e,t)=>{e=e.trim();let r=t.loose?Bn[wn.XRANGELOOSE]:Bn[wn.XRANGE];return e.replace(r,(i,n,o,s,a,c)=>{if(dr("xRange",e,i,n,o,s,a,c),NH(o,s,a))return e;let l=Wr(o),u=l||Wr(s),f=u||Wr(a),p=f;return n==="="&&p&&(n=""),c=t.includePrerelease?"-0":"",l?n===">"||n==="<"?i="<0.0.0-0":i="*":n&&p?(u&&(s=0),a=0,n===">"?(n=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):n==="<="&&(n="<",u?o=+o+1:s=+s+1),n==="<"&&(c="-0"),i=`${n+o}.${s}.${a}${c}`):u?i=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(i=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),dr("xRange return",i),i})},zH=(e,t)=>(dr("replaceStars",e,t),e.trim().replace(Bn[wn.STAR],"")),FH=(e,t)=>(dr("replaceGTE0",e,t),e.trim().replace(Bn[t.includePrerelease?wn.GTE0PRE:wn.GTE0],"")),VH=e=>(t,r,i,n,o,s,a,c,l,u,f,p)=>(Wr(i)?r="":Wr(n)?r=`>=${i}.0.0${e?"-0":""}`:Wr(o)?r=`>=${i}.${n}.0${e?"-0":""}`:s?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Wr(l)?c="":Wr(u)?c=`<${+l+1}.0.0-0`:Wr(f)?c=`<${l}.${+u+1}.0-0`:p?c=`<=${l}.${u}.${f}-${p}`:e?c=`<${l}.${u}.${+f+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),JH=(e,t,r)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let i=0;i<e.length;i++)if(dr(e[i].semver),e[i].semver!==__.ANY&&e[i].semver.prerelease.length>0){let n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}});var Ju=B((qCe,FO)=>{"use strict";var Bu=Symbol("SemVer ANY"),w_=class e{static get ANY(){return Bu}constructor(t,r){if(r=qO(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),S_("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Bu?this.value="":this.value=this.operator+this.semver.version,S_("comp",this)}parse(t){let r=this.options.loose?LO[DO.COMPARATORLOOSE]:LO[DO.COMPARATOR],i=t.match(r);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new UO(i[2],this.options.loose):this.semver=Bu}toString(){return this.value}test(t){if(S_("Comparator.test",t,this.options.loose),this.semver===Bu||t===Bu)return!0;if(typeof t=="string")try{t=new UO(t,this.options)}catch{return!1}return b_(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new zO(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new zO(this.value,r).test(t.semver):(r=qO(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||b_(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||b_(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};FO.exports=w_;var qO=fp(),{safeRe:LO,t:DO}=ll(),b_=g_(),S_=Fu(),UO=Sn(),zO=Zi()});var Hu=B((LCe,VO)=>{"use strict";var BH=Zi(),HH=(e,t,r)=>{try{t=new BH(t,r)}catch{return!1}return t.test(e)};VO.exports=HH});var BO=B((DCe,JO)=>{"use strict";var ZH=Zi(),KH=(e,t)=>new ZH(e,t).set.map(r=>r.map(i=>i.value).join(" ").trim().split(" "));JO.exports=KH});var ZO=B((UCe,HO)=>{"use strict";var GH=Sn(),WH=Zi(),YH=(e,t,r)=>{let i=null,n=null,o=null;try{o=new WH(t,r)}catch{return null}return e.forEach(s=>{o.test(s)&&(!i||n.compare(s)===-1)&&(i=s,n=new GH(i,r))}),i};HO.exports=YH});var GO=B((zCe,KO)=>{"use strict";var XH=Sn(),QH=Zi(),eZ=(e,t,r)=>{let i=null,n=null,o=null;try{o=new QH(t,r)}catch{return null}return e.forEach(s=>{o.test(s)&&(!i||n.compare(s)===1)&&(i=s,n=new XH(i,r))}),i};KO.exports=eZ});var XO=B((FCe,YO)=>{"use strict";var $_=Sn(),tZ=Zi(),WO=Vu(),rZ=(e,t)=>{e=new tZ(e,t);let r=new $_("0.0.0");if(e.test(r)||(r=new $_("0.0.0-0"),e.test(r)))return r;r=null;for(let i=0;i<e.set.length;++i){let n=e.set[i],o=null;n.forEach(s=>{let a=new $_(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||WO(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!r||WO(r,o))&&(r=o)}return r&&e.test(r)?r:null};YO.exports=rZ});var eI=B((VCe,QO)=>{"use strict";var nZ=Zi(),iZ=(e,t)=>{try{return new nZ(e,t).range||"*"}catch{return null}};QO.exports=iZ});var $p=B((JCe,iI)=>{"use strict";var oZ=Sn(),nI=Ju(),{ANY:sZ}=nI,aZ=Zi(),cZ=Hu(),tI=Vu(),rI=vp(),lZ=bp(),uZ=_p(),dZ=(e,t,r,i)=>{e=new oZ(e,i),t=new aZ(t,i);let n,o,s,a,c;switch(r){case">":n=tI,o=lZ,s=rI,a=">",c=">=";break;case"<":n=rI,o=uZ,s=tI,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cZ(e,t,i))return!1;for(let l=0;l<t.set.length;++l){let u=t.set[l],f=null,p=null;if(u.forEach(g=>{g.semver===sZ&&(g=new nI(">=0.0.0")),f=f||g,p=p||g,n(g.semver,f.semver,i)?f=g:s(g.semver,p.semver,i)&&(p=g)}),f.operator===a||f.operator===c||(!p.operator||p.operator===a)&&o(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0};iI.exports=dZ});var sI=B((BCe,oI)=>{"use strict";var fZ=$p(),pZ=(e,t,r)=>fZ(e,t,">",r);oI.exports=pZ});var cI=B((HCe,aI)=>{"use strict";var hZ=$p(),mZ=(e,t,r)=>hZ(e,t,"<",r);aI.exports=mZ});var dI=B((ZCe,uI)=>{"use strict";var lI=Zi(),gZ=(e,t,r)=>(e=new lI(e,r),t=new lI(t,r),e.intersects(t,r));uI.exports=gZ});var pI=B((KCe,fI)=>{"use strict";var yZ=Hu(),vZ=Hi();fI.exports=(e,t,r)=>{let i=[],n=null,o=null,s=e.sort((u,f)=>vZ(u,f,r));for(let u of s)yZ(u,t,r)?(o=u,n||(n=u)):(o&&i.push([n,o]),o=null,n=null);n&&i.push([n,null]);let a=[];for(let[u,f]of i)u===f?a.push(u):!f&&u===s[0]?a.push("*"):f?u===s[0]?a.push(`<=${f}`):a.push(`${u} - ${f}`):a.push(`>=${u}`);let c=a.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return c.length<l.length?c:t}});var _I=B((GCe,vI)=>{"use strict";var hI=Zi(),P_=Ju(),{ANY:R_}=P_,E_=Hu(),O_=Hi(),_Z=(e,t,r={})=>{if(e===t)return!0;e=new hI(e,r),t=new hI(t,r);let i=!1;e:for(let n of e.set){for(let o of t.set){let s=SZ(n,o,r);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},bZ=[new P_(">=0.0.0-0")],mI=[new P_(">=0.0.0")],SZ=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===R_){if(t.length===1&&t[0].semver===R_)return!0;r.includePrerelease?e=bZ:e=mI}if(t.length===1&&t[0].semver===R_){if(r.includePrerelease)return!0;t=mI}let i=new Set,n,o;for(let g of e)g.operator===">"||g.operator===">="?n=gI(n,g,r):g.operator==="<"||g.operator==="<="?o=yI(o,g,r):i.add(g.semver);if(i.size>1)return null;let s;if(n&&o){if(s=O_(n.semver,o.semver,r),s>0)return null;if(s===0&&(n.operator!==">="||o.operator!=="<="))return null}for(let g of i){if(n&&!E_(g,String(n),r)||o&&!E_(g,String(o),r))return null;for(let h of t)if(!E_(g,String(h),r))return!1;return!0}let a,c,l,u,f=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,p=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;f&&f.prerelease.length===1&&o.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let g of t){if(u=u||g.operator===">"||g.operator===">=",l=l||g.operator==="<"||g.operator==="<=",n){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator===">"||g.operator===">="){if(a=gI(n,g,r),a===g&&a!==n)return!1}else if(n.operator===">="&&!g.test(n.semver))return!1}if(o){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=yI(o,g,r),c===g&&c!==o)return!1}else if(o.operator==="<="&&!g.test(o.semver))return!1}if(!g.operator&&(o||n)&&s!==0)return!1}return!(n&&l&&!o&&s!==0||o&&u&&!n&&s!==0||p||f)},gI=(e,t,r)=>{if(!e)return t;let i=O_(e.semver,t.semver,r);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},yI=(e,t,r)=>{if(!e)return t;let i=O_(e.semver,t.semver,r);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};vI.exports=_Z});var $I=B((WCe,wI)=>{"use strict";var I_=ll(),bI=cl(),wZ=Sn(),SI=d_(),$Z=Ma(),RZ=BP(),EZ=ZP(),PZ=WP(),OZ=QP(),IZ=tO(),CZ=nO(),kZ=oO(),TZ=aO(),jZ=Hi(),AZ=dO(),NZ=pO(),xZ=yp(),MZ=yO(),qZ=_O(),LZ=Vu(),DZ=vp(),UZ=h_(),zZ=m_(),FZ=_p(),VZ=bp(),JZ=g_(),BZ=IO(),HZ=kO(),ZZ=Ju(),KZ=Zi(),GZ=Hu(),WZ=BO(),YZ=ZO(),XZ=GO(),QZ=XO(),e3=eI(),t3=$p(),r3=sI(),n3=cI(),i3=dI(),o3=pI(),s3=_I();wI.exports={parse:$Z,valid:RZ,clean:EZ,inc:PZ,diff:OZ,major:IZ,minor:CZ,patch:kZ,prerelease:TZ,compare:jZ,rcompare:AZ,compareLoose:NZ,compareBuild:xZ,sort:MZ,rsort:qZ,gt:LZ,lt:DZ,eq:UZ,neq:zZ,gte:FZ,lte:VZ,cmp:JZ,coerce:BZ,truncate:HZ,Comparator:ZZ,Range:KZ,satisfies:GZ,toComparators:WZ,maxSatisfying:YZ,minSatisfying:XZ,minVersion:QZ,validRange:e3,outside:t3,gtr:r3,ltr:n3,intersects:i3,simplifyRange:o3,subset:s3,SemVer:wZ,re:I_.re,src:I_.src,tokens:I_.t,SEMVER_SPEC_VERSION:bI.SEMVER_SPEC_VERSION,RELEASE_TYPES:bI.RELEASE_TYPES,compareIdentifiers:SI.compareIdentifiers,rcompareIdentifiers:SI.rcompareIdentifiers}});var pa=B((YCe,NI)=>{var qa=require("fs"),Ki=require("path"),EI=c_(),Gi=$I(),{DEFAULT_API_URL:a3}=fa(),PI=["dependencies","devDependencies","optionalDependencies","peerDependencies"];function C_(e){let t=typeof e=="string"&&e.match(/^((?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*)(?:@([^\r\n]+))?$/);if(!t)throw new Error(`Invalid npm dependency: ${String(e)}`);return{name:t[1],version:t[2]}}function k_(e){let t=new Map;for(let r of e){let{name:i,version:n}=C_(r),o=t.get(i);t.set(i,o&&n?OI(i,o,n):n||o)}return t}function OI(e,t,r){if(t===r)return t;let i=Gi.validRange(t),n=Gi.validRange(r);if(i&&n)try{if(Gi.subset(n,i))return r;if(Gi.subset(i,n))return t}catch{}throw new Error(`Conflicting registry versions for ${e}: ${t} and ${r}`)}function c3(e,t){let r=typeof e=="string"&&Gi.validRange(e),i=Gi.validRange(t);if(!r||!i)return!1;try{return Gi.subset(r,i)}catch{return!1}}function Ep(e,t){if(c3(e,t))return"satisfied";let r=typeof e=="string"&&Gi.validRange(e),i=Gi.validRange(t);if(!r||!i)return"incomparable";try{let n=Gi.minVersion(r),o=Gi.minVersion(i);return!n||!o?"incomparable":Gi.lt(n,o)?"lower":"newer"}catch{return"incomparable"}}function Rp(e,t){let r=PI.find(i=>Object.hasOwn(e[i]||{},t));return r?{section:r,existing:e[r][t]}:null}function II(e,t){let r=k_(t);if(r.size===0)return;let i=Ki.join(e,"package.json"),n=JSON.parse(qa.readFileSync(i,"utf8"));for(let[o,s]of r){let a=Rp(n,o),c=a?.section||"dependencies";n[c]||={};let l=a?.existing;n[c][o]=l===void 0?s||"latest":s&&Ep(l,s)==="lower"?s:l}qa.writeFileSync(i,`${JSON.stringify(n,null,2)}
3
3
  `)}function Pp(e){let t=[["pnpm-lock.yaml","pnpm"],["yarn.lock","yarn"],["bun.lock","bun"],["bun.lockb","bun"],["package-lock.json","npm"],["npm-shrinkwrap.json","npm"]];for(let r=Ki.resolve(e);;r=Ki.dirname(r)){let i=Ki.join(r,"package.json");if(qa.existsSync(i)){let n=JSON.parse(qa.readFileSync(i,"utf8")),o=String(n.packageManager||"").split("@")[0];if(["npm","pnpm","yarn","bun"].includes(o))return o}for(let[n,o]of t)if(qa.existsSync(Ki.join(r,n)))return o;if(Ki.dirname(r)===r)return"npm"}}var RI={npm:"npx",pnpm:"pnpm exec",yarn:"yarn",bun:"bunx"};function CI(e,t=process.cwd()){let r;try{r=Pp(t)}catch{r="npm"}return`${RI[r]||RI.npm} frontfriend ${e}`}function l3(e,t=process.cwd()){let r=null;try{r=e?new URL(e).origin:null}catch{r=null}return CI(r&&r!==new URL(a3).origin?`login --api-url ${r}`:"login",t)}function kI(e){return JSON.parse(qa.readFileSync(Ki.join(e,"package.json"),"utf8"))}function T_(e,t){let r=k_(t);if(r.size===0)return[];let i=kI(e),n=[];for(let[o,s]of r){let a=Rp(i,o);a&&(!s||Ep(a.existing,s)!=="lower")||n.push(s?`${o}@${s}`:o)}return n}function u3(e,t){let r=t.filter(f=>f.required),i=k_(r.flatMap(f=>f.dependencies)),n=(f,p)=>p.filter(g=>g.dependencies.some(h=>C_(h).name===f)).map(g=>g.component).filter(Boolean),o=t.filter(f=>!f.required);if(i.size===0&&o.length===0)return{missing:[],kept:[],repair:[]};let s=kI(e),a=[],c=[];for(let[f,p]of i){let g=Rp(s,f);if(!g){a.push(p?`${f}@${p}`:f);continue}if(!p)continue;let h=Ep(g.existing,p);h==="lower"?a.push(`${f}@${p}`):h!=="satisfied"&&c.push({name:f,current:g.existing,declared:p,components:n(f,r)})}let l=new Map;for(let f of o.flatMap(p=>p.dependencies)){let{name:p,version:g}=C_(f);if(i.has(p)||Rp(s,p))continue;let h=l.get(p),v=g||h?.version;if(h?.version&&g&&h.version!==g)try{v=OI(p,h.version,g)}catch{v=h.version}l.set(p,{version:v})}let u=[...l].map(([f,{version:p}])=>({request:p?`${f}@${p}`:f,components:n(f,o)}));return{missing:a,kept:c,repair:u}}function TI(e,t){return[e==="npm"?"install":"add",...t]}function d3(e){return/^[\w@/.:^~=+-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}function jI(e,t){let r=Pp(e);return[r,...TI(r,t)].map(d3).join(" ")}function AI(e,t,{stdio:r="inherit"}={}){let i=T_(e,t);if(i.length===0)return;let n=Pp(e),o=EI.sync(n,TI(n,i),{cwd:e,stdio:r});if(o.error||o.status!==0)throw II(e,t),o.error||new Error(`${n} dependency installation failed with status ${o.status}. Dependencies were saved; run ${n} install.`)}function f3(e,t,{install:r=!0,stdio:i="inherit",log:n=console.log}={}){let o=T_(e,t);if(o.length===0)return{missing:o,command:null,installed:!1};let s=jI(e,o);if(!r)return n(`\u{1F4E6} Component dependencies missing from package.json. Install them with:
4
4
  ${s}`),{missing:o,command:s,installed:!1};n(`\u{1F4E6} Installing component dependencies: ${s}`);try{return AI(e,o,{stdio:i}),{missing:o,command:s,installed:!0}}catch(a){return n(`\u26A0\uFE0F Component dependencies were not installed: ${a.message}
5
5
  Install them with:
@@ -89,7 +89,7 @@ You tried to parse Sass with the standard CSS parser; try again with the postcss
89
89
  You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),n}return i.root}qT.exports=mh;mh.default=mh;NG.registerParse(mh)});var Bb=B((eTe,LT)=>{"use strict";var qG=va(),{my:LG}=sd(),bd=class{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){r.node[LG]||qG.rebuild(r.node);let i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in r)this[i]=r[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};LT.exports=bd;bd.default=bd});var yh=B((tTe,DT)=>{"use strict";var DG=Bb(),Sd=class{get content(){return this.css}constructor(t,r,i){this.processor=t,this.messages=[],this.root=r,this.opts=i,this.css="",this.map=void 0}toString(){return this.css}warn(t,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let i=new DG(t,r);return this.messages.push(i),i}warnings(){return this.messages.filter(t=>t.type==="warning")}};DT.exports=Sd;Sd.default=Sd});var Hb=B((rTe,zT)=>{"use strict";var UT={};zT.exports=function(t){UT[t]||(UT[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var Gb=B((nTe,BT)=>{"use strict";var UG=va(),zG=rh(),FG=Fb(),VG=gh(),FT=yh(),JG=$l(),BG=od(),{isClean:Eo,my:HG}=sd(),ZG=Hb(),KG={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},GG={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},WG={Once:!0,postcssPlugin:!0,prepare:!0},El=0;function wd(e){return typeof e=="object"&&typeof e.then=="function"}function Zb(e){let t=!1,r=KG[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,El,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,El,r+"Exit"]:[r,r+"Exit"]}function VT(e){let t;return e.type==="document"?t=["Document",El,"DocumentExit"]:e.type==="root"?t=["Root",El,"RootExit"]:t=Zb(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function JT(e){let t=[e];for(;t.length>0;){let r=t.pop();if(r[Eo]=!1,r.nodes)for(let i of r.nodes)t.push(i)}return e}var Kb={},Ja=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,r,i){this.stringified=!1,this.processed=!1;let n;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))n=JT(r);else if(r instanceof e||r instanceof FT)n=JT(r.root),r.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let o=VG;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{n=o(r,i)}catch(s){this.processed=!0,this.error=s}n&&!n[HG]&&UG.rebuild(n)}this.result=new FT(t,n,i),this.helpers={...Kb,postcss:Kb,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let i=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=i.postcssPlugin,t.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let n=i.postcssPlugin,o=i.postcssVersion,s=this.result.processor.version,a=o.split("."),c=s.split(".");(a[0]!==c[0]||parseInt(a[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+n+" uses "+o+". Perhaps this is the source of the error below.")}}catch(n){console&&console.error&&console.error(n)}return t}prepareVisitors(){this.listeners={};let t=(r,i,n)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([r,n])};for(let r of this.plugins)if(typeof r=="object")for(let i in r){if(!GG[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!WG[i])if(typeof r[i]=="object")for(let n in r[i])n==="*"?t(r,i,r[i][n]):t(r,i+"-"+n.toLowerCase(),r[i][n]);else typeof r[i]=="function"&&t(r,i,r[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],i=this.runOnRoot(r);if(wd(i))try{await i}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Eo];){t[Eo]=!0;let r=[VT(t)];for(;r.length>0;){let i=this.visitTick(r);if(wd(i))try{await i}catch(n){let o=r[r.length-1].node;throw this.handleError(n,o)}}}if(this.listeners.OnceExit)for(let[r,i]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let n=t.nodes.map(o=>i(o,this.helpers));await Promise.all(n)}else await i(t,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(i=>t.Once(i,this.helpers));return wd(r[0])?Promise.all(r):r}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=BG;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let i=this.result.root.source;if(t.map===void 0&&!(i&&i.input&&i.input.map)){let s="";return r(this.result.root,a=>{s+=a}),this.result.css=s,this.result}let o=new FG(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(wd(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Eo];)t[Eo]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ZG("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[i,n]of t){this.result.lastPlugin=i;let o;try{o=n(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(wd(o))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:i,visitors:n}=r;if(i.type!=="root"&&i.type!=="document"&&!i.parent){t.pop();return}if(n.length>0&&r.visitorIndex<n.length){let[s,a]=n[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===n.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=s;try{return a(i.toProxy(),this.helpers)}catch(c){throw this.handleError(c,i)}}if(r.iterator!==0){let s=r.iterator,a;for(;a=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!a[Eo]){a[Eo]=!0,t.push(VT(a));return}r.iterator=0,delete i.indexes[s]}let o=r.events;for(;r.eventIndex<o.length;){let s=o[r.eventIndex];if(r.eventIndex+=1,s===El){i.nodes&&i.nodes.length&&(i[Eo]=!0,r.iterator=i.getIterator());return}else if(this.listeners[s]){r.visitors=this.listeners[s];return}}t.pop()}walkSync(t){t[Eo]=!0;let r=[{eventIndex:0,events:Zb(t),iterator:0,node:t}];for(;r.length>0;){let i=r[r.length-1],n=i.node;if(i.iterator!==0){let o=i.iterator,s,a=!1;for(;s=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!s[Eo]){s[Eo]=!0,r.push({eventIndex:0,events:Zb(s),iterator:0,node:s}),a=!0;break}if(a)continue;i.iterator=0,delete n.indexes[o]}if(i.eventIndex<i.events.length){let o=i.events[i.eventIndex];if(i.eventIndex+=1,o===El)n.nodes&&n.nodes.length&&(i.iterator=n.getIterator());else{let s=this.listeners[o];s&&this.visitSync(s,n.toProxy())&&r.pop()}continue}r.pop()}}warnings(){return this.sync().warnings()}};Ja.registerPostcss=e=>{Kb=e};BT.exports=Ja;Ja.default=Ja;JG.registerLazyResult(Ja);zG.registerLazyResult(Ja)});var ZT=B((iTe,HT)=>{"use strict";var YG=Fb(),XG=gh(),QG=yh(),eW=od(),tW=Hb(),$d=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=XG;try{t=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,i){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=i,this._map=void 0;let n=eW;this.result=new QG(this._processor,void 0,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let s=new YG(n,void 0,this._opts,r);if(s.isMap()){let[a,c]=s.generate();a&&(this.result.css=a),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||tW("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)}toString(){return this._css}warnings(){return[]}};HT.exports=$d;$d.default=$d});var GT=B((oTe,KT)=>{"use strict";var rW=rh(),nW=Gb(),iW=ZT(),oW=$l(),gc=class{constructor(t=[]){this.version="8.5.23",this.plugins=this.normalize(t)}normalize(t){let r=[];for(let i of t)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)r.push(i);else if(typeof i=="function")r.push(i);else if(typeof i=="object"&&(i.parse||i.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(i+" is not a PostCSS plugin");return r}process(t,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new iW(this,t,r):new nW(this,t,r)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};KT.exports=gc;gc.default=gc;oW.registerProcessor(gc);rW.registerProcessor(gc)});var nj=B((sTe,rj)=>{"use strict";var WT=th(),YT=dd(),sW=va(),aW=eh(),XT=pd(),QT=rh(),cW=PT(),lW=vd(),uW=Gb(),dW=Ub(),fW=ld(),pW=gh(),Wb=GT(),hW=yh(),ej=$l(),tj=dh(),mW=od(),gW=Bb();function Xt(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Wb(e)}Xt.plugin=function(t,r){let i=!1;function n(...s){console&&console.warn&&!i&&(i=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
90
90
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
91
91
  https://www.w3ctech.com/topic/2226`));let a=r(...s);return a.postcssPlugin=t,a.postcssVersion=new Wb().version,a}let o;return Object.defineProperty(n,"postcss",{get(){return o||(o=n()),o}}),n.process=function(s,a,c){return Xt([n(c)]).process(s,a)},n};Xt.stringify=mW;Xt.parse=pW;Xt.fromJSON=cW;Xt.list=dW;Xt.comment=e=>new YT(e);Xt.atRule=e=>new WT(e);Xt.decl=e=>new XT(e);Xt.rule=e=>new tj(e);Xt.root=e=>new ej(e);Xt.document=e=>new QT(e);Xt.CssSyntaxError=aW;Xt.Declaration=XT;Xt.Container=sW;Xt.Processor=Wb;Xt.Document=QT;Xt.Comment=YT;Xt.Warning=gW;Xt.AtRule=WT;Xt.Result=hW;Xt.Input=lW;Xt.Rule=tj;Xt.Root=ej;Xt.Node=fW;uW.registerPostcss(Xt);rj.exports=Xt;Xt.default=Xt});var ij=B((aTe,yW)=>{yW.exports={steps:["low","mid","strong","subtle"],states:["hover","active","selected","disabled"],family_intents:{brand:"Brand identity and primary actions.",neutral:"Default surfaces, borders, and content.",inverse:"Content and surfaces on an inverted background.",interactive:"Interactive controls and affordances.",highlight:"Highlighted or emphasized content.",info:"Informational status and feedback.",positive:"Success and positive status.",negative:"Errors, danger, and destructive actions.",warning:"Warnings and cautionary status.",onbrand:"Foreground content placed on brand surfaces.",oninteractive:"Foreground content placed on interactive surfaces.",onhighlight:"Foreground content placed on highlight surfaces.",oninfo:"Foreground content placed on informational surfaces.",onpositive:"Foreground content placed on positive surfaces.",onnegative:"Foreground content placed on negative surfaces.",onwarning:"Foreground content placed on warning surfaces.",layer:"Page, panel, control, popover, and dialog surfaces.",overlay:"Scrims placed between content layers.",disabled:"Disabled controls and content."},shadcn_mapping:{primary:"brand-mid","primary-foreground":"onbrand-mid",secondary:"neutral-subtle","secondary-foreground":"neutral-strong",destructive:"negative-mid","destructive-foreground":"onnegative-mid",background:"layer-below",foreground:"neutral-strong",card:"layer-raised","card-foreground":"neutral-strong",popover:"layer-popover","popover-foreground":"neutral-strong",muted:"neutral-subtle","muted-foreground":"neutral-mid",accent:"neutral-subtle","accent-foreground":"neutral-strong",border:"neutral-subtle",ring:"brand-mid","input background":"layer-control","input border or ring":"neutral-subtle",success:"positive-mid","success-foreground":"onpositive-mid",info:"info-mid","info-foreground":"oninfo-mid",warning:"warning-mid","warning-foreground":"onwarning-mid",invert:"inverse-mid","invert-foreground":"neutral-low",scrim:"overlay"}}});var _h=B((cTe,dj)=>{var Rd=require("fs"),Ed=require("path"),vh=ij(),aj=".frontfriend/foundation.md",Yb=vh.steps,vW=vh.states,_W=vh.family_intents,bW=Object.entries(vh.shadcn_mapping),SW={alertDialog:"alert-dialog",alertdialog:"alert-dialog",avatarGroup:"avatar-group",avatargroup:"avatar-group",checkboxField:"checkboxfield",datePicker:"datepicker",dateInput:"dateinput",dateSlider:"dateslider",dropdown:"dropdown-menu",dropdownmenu:"dropdown-menu",fileUploader:"fileupload",fileuploader:"fileupload",inputOTP:"input-otp",inputotp:"input-otp",multiSelect:"multi-select",multiselect:"multi-select",pdfViewer:"pdfviewer",phoneInput:"phoneinput",radioGroup:"radio-group",radiogroup:"radio-group",radioGroupField:"radiogroupfield",radiogroupeField:"radiogroupfield",tabBar:"tabbar",themeProvider:"themeprovider",themePicker:"themepicker",tagsInput:"tagsinput",timePicker:"timepicker",numberField:"number-field",numberfield:"number-field",scrollArea:"scroll-area",scrollarea:"scroll-area",hoverCard:"hover-card",hovercard:"hover-card",contextMenu:"context-menu",contextmenu:"context-menu",navigationMenu:"navigation-menu",navigationmenu:"navigation-menu",messageScroller:"message-scroller",messagescroller:"message-scroller",aspectRatio:"aspect-ratio",aspectratio:"aspect-ratio",toggleGroup:"toggle-group",togglegroup:"toggle-group",buttonGroup:"button-group",buttongroup:"button-group",inputGroup:"input-group",inputgroup:"input-group",nativeSelect:"native-select",nativeselect:"native-select"};function cj(e){return SW[e]||e.toLowerCase()}function oj(e){if(e.startsWith("layer-"))return"layer";if(e==="overlay"||e.startsWith("overlay-"))return"overlay";if(e==="disabled")return"disabled";let t=e.split("-"),r=t.findIndex(i=>Yb.includes(i));return(r===-1?t[0]:t.slice(0,r).join("-"))||e}function wW(e={}){let t=new Map,r=new Set([...Object.keys(e.semanticVariables||{}),...Object.keys(e.semanticDarkVariables||{})]),i=(s,a)=>{t.has(s)||t.set(s,new Set),t.get(s).add(a)};for(let s of r){let a=s.match(/^--(bg|text|border)-(.+)$/);if(a){i(oj(a[2]),`${a[1]}-${a[2]}`);continue}if(a=s.match(/^--icon-(.+)$/),a){let c=oj(a[1]);i(c,`icon-${a[1]}`),i(c,`text-icon-${a[1]}`);continue}if(a=s.match(/^--layer-(.+)$/),a){i("layer",`bg-layer-${a[1]}`);continue}a=s.match(/^--overlay-(.+)$/),a&&i("overlay",`bg-overlay-${a[1]}`)}let n=Object.keys(e.fontFamilies||e.tokens?.fontFamily||e.utilities?.fontFamily||{}).map(s=>`font-${s.replace(/^--font-/,"")}`).sort(),o=Object.keys(e.animations||{}).map(s=>`animate-${s}`).sort();return{byFamily:t,fonts:n,animations:o}}function ji(e,t="None detected."){return e.length?e.map(r=>`\`${r}\``).join(", "):t}function $W(){return["Component APIs come from the Frontfriend MCP for this App's Release: `list_components`, then `get_component_api` for exports, Frontfriend-owned props (type, default, required), variants and the values this Design System styles, parts, slots, composition dependencies, a usage example, provenance and any `missing` data. ","","Use `get_component_source` for the pinned source and `get_add_command` for the Release-pinned `frontfriend update` command. Install missing components instead of recreating them.",""]}var RW=/^--(?:background|foreground|primary|secondary|destructive|muted|accent|popover|card|border|input|ring|chart|sidebar)(?:-|$)/,EW=["bg","text","border","ring","fill","stroke"],PW=["shadow-2xs","shadow-xs","shadow-sm","shadow","shadow-md","shadow-lg","shadow-xl","shadow-2xl"],OW=["font-sans","font-serif","font-mono"];function IW(e){let t=e.theme||{},r=Object.keys(t),i=p=>r.filter(g=>g.startsWith(`--${p}-`)&&!g.endsWith("*")).map(g=>g.slice(p.length+3)),n=p=>r.includes(`--${p}-*`),o=i("color"),s=[...new Set([...Object.keys(e.light||{}),...Object.keys(e.dark||{})])].filter(p=>RW.test(p)).map(p=>p.slice(2)),a=[...new Set([...o,...s])].sort().flatMap(p=>EW.map(g=>`${g}-${p}`)),c=i("radius").map(p=>`rounded-${p}`).sort(),l=[...new Set([...n("font")?[]:OW,...i("font").map(p=>`font-${p}`)])].sort(),u=[...new Set([...n("shadow")?[]:PW,...i("shadow").map(p=>`shadow-${p}`)])].sort(),f=i("animate").map(p=>`animate-${p}`).sort();return{colors:a,radius:c,fonts:l,shadows:u,animations:f}}function CW(e,t){let r=e.nativeTokens||{},{colors:i,radius:n,fonts:o,shadows:s,animations:a}=IW(r),c=t||e.iconLibrary||null;return["<!-- Generated by Frontfriend from the selected immutable Release. -->","# shadcn foundation","","This Design System uses native shadcn tokens. Keep their names and values. Style & Foundations is authoritative after the initial import.","","Use list_components, get_component_api and get_component_source for the selected Release. An explicit custom replacement is the effective component. Read its source; do not assume standard props or invent missing documentation.","","Release adoption is explicit: use the adopt_design tool of the local Frontfriend MCP bridge, or frontfriend update. Local token and component changes do not publish themselves. Conversion to Frontfriend is optional and uses frontfriend migrate on the same Design System.","","First Application: frontfriend connect performs the native import (Release, token and component adoption, init). The import is a direct publication of the existing code and needs no admin review. Other Applications adopt the configured Release without an initial import. The admin review and Connect activation cover Design contracts only.","","## Native color utilities","",ji(i),"","## Native theme utilities","","Spacing, sizing, layout and type scale are standard Tailwind utilities. Radius, fonts, shadows and animations come from this theme and the Tailwind defaults it keeps.","",`Radius: ${ji(n)}`,"",`Fonts: ${ji(o)}`,"",`Shadows: ${ji(s)}`,"",`Animations: ${ji(a)}`,"","## Icons","",c?`Icon library: \`${c}\`. Import icons from this library only; icon names must exist in it.`:"No icon library is declared for this Design System.","",...["light","dark","theme"].flatMap(l=>[`## ${l}`,"",...Object.entries(r[l]||{}).map(([u,f])=>`- \`${u}\`: \`${f}\``),""])].join(`
92
- `)}function lj({processedData:e={},componentsConfig:t={},installedComponents:r=[],iconLibrary:i,framework:n="react"}={}){if(e.base==="shadcn")return CW(e,i);let{byFamily:o,fonts:s,animations:a}=wW(e),c=[...new Set(Object.keys(t).map(cj))].sort(),l=[...new Set(r)].filter(f=>c.includes(f)).sort(),u=[...o.entries()].sort(([f],[p])=>f.localeCompare(p)).flatMap(([f,p])=>{let g=[...p].sort(),h=Yb.filter(v=>g.some(y=>new RegExp(`-${v}(?:-|$)`).test(y)));return[`### ${f}`,"",_W[f]||`Semantic ${f} roles defined by this design system.`,"",`Steps present: ${ji(h)}`,"",ji(g),""]});return["<!-- Generated by Frontfriend. Read-only: hand edits are overwritten by `frontfriend init` and `frontfriend design sync`. Commit this file to git. -->","","# Frontfriend foundation","","Read this file before writing or changing UI. Use only the concrete semantic classes listed below; never invent token names or write literal color or spacing values.","","## Static grammar","","- Shape: `{utility}-{family}-{step}[-{state}]`.","- Utility prefixes: `bg-`, `text-`, `border-`, `icon-`, `text-icon-`.",`- Steps: ${ji(Yb)}.`,`- States: ${ji(vW)}. State variants may wrap a class, for example \`hover:bg-brand-mid-hover\`.`,"- Surfaces use `bg-layer-*`; scrims use `bg-overlay-*`.","- Fonts use `font-*`; animations use `animate-*`.","- Radius, layout, spacing, and type scale remain standard Tailwind utilities.","","### shadcn to Frontfriend mapping","","| shadcn token | Frontfriend semantic token |","|---|---|",...bW.map(([f,p])=>`| \`${f}\` | \`${p}\` |`),"","Keep the utility prefix when translating, such as `bg-primary` to `bg-brand-mid`.","","## This design system","","### Semantic class vocabulary","",...u,"### Fonts","",ji(s),"","### Animations","",ji(a),"","### Icons","",`Icon library: \`${i||"lucide"}\`. Import \`Icon\` from the installed \`@/components/ui/icon\` component and use it as \`<Icon name="Check" />\`. Do not import the icon library directly. Icon names must come from the active library.`,"","### Components","",`Framework: \`${n}\`.`,"",`Installed: ${ji(l)}`,"",`Available: ${ji(c)}`,"",...$W()].join(`
92
+ `)}function lj({processedData:e={},componentsConfig:t={},installedComponents:r=[],iconLibrary:i,framework:n="react"}={}){if(e.base==="shadcn")return CW(e,i);let{byFamily:o,fonts:s,animations:a}=wW(e),c=[...new Set(Object.keys(t).map(cj))].sort(),l=[...new Set(r)].filter(f=>c.includes(f)).sort(),u=[...o.entries()].sort(([f],[p])=>f.localeCompare(p)).flatMap(([f,p])=>{let g=[...p].sort(),h=Yb.filter(v=>g.some(y=>new RegExp(`-${v}(?:-|$)`).test(y)));return[`### ${f}`,"",_W[f]||`Semantic ${f} roles defined by this design system.`,"",`Steps present: ${ji(h)}`,"",ji(g),""]});return["<!-- Generated by Frontfriend. Read-only: hand edits are overwritten by `frontfriend init` and `frontfriend design sync`. Commit this file to git. -->","","# Frontfriend foundation","","Read this file before writing or changing UI. Use only the concrete semantic classes listed below; never invent token names or write literal color or spacing values.","","## Static grammar","","- Shape: `{utility}-{family}-{step}[-{state}]`.","- Utility prefixes: `bg-`, `text-`, `border-`, `icon-`, `text-icon-`.",`- Steps: ${ji(Yb)}.`,`- States: ${ji(vW)}. State variants may wrap a class, for example \`hover:bg-brand-mid-hover\`.`,"- Surfaces use `bg-layer-*`; scrims use `bg-overlay-*`.","- Fonts use `font-*`; animations use `animate-*`.","- Spacing, type scale, radius, shadows, blur, easing and breakpoints are standard Tailwind utilities (`p-4`, `text-sm`, `shadow-md`, `md:`) that resolve to this design system's values.","- Layout widths, gutters, opacity, border widths and durations are variables: write `max-w-(--max-width-content)`, `opacity-(--opacity-disabled)`, `duration-(--duration-normal)`.","","### shadcn to Frontfriend mapping","","| shadcn token | Frontfriend semantic token |","|---|---|",...bW.map(([f,p])=>`| \`${f}\` | \`${p}\` |`),"","Keep the utility prefix when translating, such as `bg-primary` to `bg-brand-mid`.","","## This design system","","### Semantic class vocabulary","",...u,"### Fonts","",ji(s),"","### Animations","",ji(a),"","### Icons","",`Icon library: \`${i||"lucide"}\`. Import \`Icon\` from the installed \`@/components/ui/icon\` component and use it as \`<Icon name="Check" />\`. Do not import the icon library directly. Icon names must come from the active library.`,"","### Components","",`Framework: \`${n}\`.`,"",`Installed: ${ji(l)}`,"",`Available: ${ji(c)}`,"",...$W()].join(`
93
93
  `)}function kW(e,t={}){let r=["components/ui","src/components/ui"],i=t.aliases?.ui;if(i){let n=i.replace(/^[@~]\//,"");r.unshift(n,Ed.join("src",n))}return[...new Set(r.map(n=>Ed.join(e,n)))]}var sj=/\.(?:[jt]sx?|vue)$/;function TW(e,t={}){let r=new Set;for(let i of kW(e,t))if(Rd.existsSync(i))for(let n of Rd.readdirSync(i,{withFileTypes:!0}))n.isDirectory()?r.add(n.name):n.isFile()&&sj.test(n.name)&&r.add(n.name.replace(sj,""));return[...r].map(cj).sort()}function uj(e,t){if(t?.iconLibrary||t?.processedData?.base!=="shadcn")return t?.iconLibrary;try{let r=JSON.parse(Rd.readFileSync(Ed.join(e,"components.json"),"utf8")).iconLibrary;if(typeof r=="string"&&r.trim())return r.trim()}catch{}return t.processedData.iconLibrary}function jW(e,t){let r=Ed.join(e,aj),i=lj({...t,iconLibrary:uj(e,t)});return Rd.mkdirSync(Ed.dirname(r),{recursive:!0}),Rd.writeFileSync(r,i),r}dj.exports={FOUNDATION_PATH:aj,nativeIconLibrary:uj,renderFoundation:lj,findInstalledComponents:TW,writeFoundation:jW}});var Sh=B((lTe,pj)=>{var Pl=require("fs"),fj=require("path"),AW=nj(),NW=require("./lib/core/cache-manager"),{writeFoundation:xW}=_h(),{inside:MW}=rd(),Xb="/* Frontfriend managed native tokens: start */",bh="/* Frontfriend managed native tokens: end */";function qW(e){let t=AW.parse(e),r=new Set([":root",".dark",":root.dark"]),i=n=>{n.each(o=>{o.type==="decl"&&o.prop.startsWith("--")&&o.remove()}),n.nodes.length||n.remove()};return t.walkRules(n=>{let o=n.selectors.filter(a=>r.has(a));if(!o.length)return;for(let a=n.parent;a?.type!=="root";a=a.parent)if(!a||a.type!=="atrule"||a.name!=="layer")return;let s=n.selectors.filter(a=>!r.has(a));s.length&&(n.cloneBefore({selector:s.join(", ")}),n.selector=o.join(", ")),i(n)}),t.walkAtRules("theme",n=>{n.parent?.type==="root"&&i(n)}),t.toString()}function LW(e,t,r={}){if(t?.base!=="shadcn"||typeof t.nativeCss!="string")throw new Error("The selected Release has no native shadcn token artifact.");let n=JSON.parse(Pl.readFileSync(fj.join(e.appRoot,"components.json"),"utf8")).tailwind?.css;if(!n)throw new Error("components.json must declare tailwind.css.");let o=fj.resolve(e.appRoot,n);MW(e.appRoot,o);let s=Pl.readFileSync(o,"utf8"),a=s.indexOf(Xb),c=s.indexOf(bh);if(a<0!=c<0||a>=0&&c<a)throw new Error("The native token block is incomplete. Restore its markers before init.");let l=a<0?s:s.slice(0,a)+s.slice(c+bh.length),f=`${qW(l).trimEnd()}
94
94
 
95
95
  ${Xb}
@@ -26,4 +26,6 @@ export const STATE_VARIANT_CSS: string[];
26
26
  export const STATE_VARIANT_NAMES: string[];
27
27
 
28
28
  /** STATE_VARIANT_CSS joined into a stylesheet fragment. */
29
- export function stateVariantCss(): string;
29
+ export function stateVariantCss(): string;
30
+
31
+ export function motionUtilityCss(): string;
@@ -1 +1 @@
1
- var j=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var S=j((q,F)=>{F.exports={name:"@frontfriend/sdk",version:"1.2.8"}});var C=j(($,b)=>{var{name:w}=S();b.exports={PACKAGE_NAME:w}});var{PACKAGE_NAME:m}=C(),u=require("fs"),E=require("http"),O=require("https"),r=require("path"),g=["contracts","tokens","components"],T=["app/globals.css","src/app/globals.css","styles/globals.css","src/styles/globals.css","src/styles.css","src/index.css","src/style.css"],k={next:["next.config.js","next.config.mjs","next.config.ts"],vite:["vite.config.ts","vite.config.js","vite.config.mts","vite.config.mjs"]},x=["primereact","@mui/material","antd","@chakra-ui/react","@mantine/core","@fluentui/react"],I=["style-dictionary","@tokens-studio/sd-transforms","@vanilla-extract/css","styled-components","@emotion/react"];function A(n){try{return JSON.parse(u.readFileSync(n,"utf8"))}catch{return{}}}function h(n){if(n===void 0)return null;if(!Array.isArray(n)){let t=new Error("`adopt` in frontfriend.config.js must be an array.");throw t.code="FRONTFRIEND_CONFIG_VALIDATION",t}let e=n.filter(t=>!g.includes(t));if(e.length>0){let t=new Error(`Unknown Frontfriend adoption level: ${e.join(", ")}.`);throw t.code="FRONTFRIEND_CONFIG_VALIDATION",t}let i=n.includes("components")?2:n.includes("tokens")?1:0;return g.slice(0,i+1)}function _(n){for(let[e,i]of Object.entries(k)){let t=i.find(s=>u.existsSync(r.join(n,s)));if(!t)continue;let c=u.readFileSync(r.join(n,t),"utf8");return{buildTool:e,present:c.includes(`${m}/${e}`)}}return{buildTool:null,present:!1}}function v(n){let e=[r.join(n,"components","ui"),r.join(n,"src","components","ui"),r.join(n,"app","components","ui")].filter(c=>u.existsSync(c)),i=new Set;function t(c){for(let s of u.readdirSync(c,{withFileTypes:!0})){let o=r.join(c,s.name);if(s.isDirectory())t(o);else if(/\.(js|jsx|ts|tsx|vue)$/.test(s.name)){if(!u.readFileSync(o,"utf8").includes(m))continue;let a=r.basename(s.name,r.extname(s.name));i.add(a.toLowerCase()==="index"?r.basename(c):a.toLowerCase())}}}return e.forEach(t),[...i].sort()}function P(n){let e=A(r.join(n,"package.json")),i={...e.dependencies||{},...e.devDependencies||{}},t=i.tailwindcss||null,s=[A(r.join(n,"components.json"))?.tailwind?.css,...T].filter(Boolean).find(a=>u.existsSync(r.join(n,a))),o=s?u.readFileSync(r.join(n,s),"utf8"):"",l=I.filter(a=>i[a]);return!l.length&&/:root[\s\S]*--(?:color|spacing|font|radius)-[\w-]+\s*:/.test(o)&&!o.includes(`${m}/theme.css`)&&l.push("css-custom-properties"),{nativeTokens:{present:o.includes("/* Frontfriend managed native tokens: start */"),file:s||null},tailwind:{present:!!t,version:t,major:t&&Number((String(t).match(/\d+/)||[])[0])||null},componentsJson:u.existsSync(r.join(n,"components.json")),themeImport:{present:o.includes(`${m}/theme.css`)||/@import\s+["'][^"']*node_modules\/\.cache\/frontfriend\/theme\.css["']/.test(o),file:s||null},plugin:_(n),frontfriendComponents:v(n),foreignComponentLibraries:x.filter(a=>i[a]),foreignTokenSystems:l}}function D(n,e,{baseLibrary:i}={}){let t=h(n)||g,c=t.includes("tokens"),s=t.includes("components"),o=[];return c&&!e.themeImport.present&&!e.nativeTokens?.present&&o.push("Config adopts tokens, but the Frontfriend theme import was not observed."),!c&&e.themeImport.present&&o.push("Frontfriend tokens are present in CSS but are not adopted in config."),s&&i==="shadcn"&&!e.componentsJson&&o.push("Config adopts components, but components.json was not observed."),!s&&e.frontfriendComponents.length>0&&o.push("Frontfriend components are installed but are not adopted in config."),o}function L({apiUrl:n,token:e,ffId:i,name:t,adopt:c,observed:s,framework:o,primitive:l}){if(!n||!e||!i||!t||!o||l===void 0)return Promise.resolve({reported:!1,unavailable:!0});let a=new URL("/api/apps/sync",n),y=JSON.stringify({ffId:i,name:t,adopt:h(c),observed:s,runtime:"sdk",framework:o,primitive:l}),N=a.protocol==="https:"?O:E;return new Promise(d=>{let f=N.request(a,{method:"POST",headers:{authorization:`Bearer ${e}`,"content-type":"application/json","content-length":Buffer.byteLength(y)}},p=>{p.resume(),p.on("end",()=>{p.statusCode>=200&&p.statusCode<300?d({reported:!0,unavailable:!1}):d({reported:!1,unavailable:!0})})});f.on("error",()=>d({reported:!1,unavailable:!0})),f.setTimeout(1500,()=>{f.destroy(),d({reported:!1,unavailable:!0})}),f.end(y)})}module.exports={ADOPTION_LEVELS:g,normalizeAdopt:h,probeAdoption:P,adoptionWarnings:D,reportAdoption:L};
1
+ var j=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var S=j((q,F)=>{F.exports={name:"@frontfriend/sdk",version:"1.3.0"}});var C=j(($,b)=>{var{name:w}=S();b.exports={PACKAGE_NAME:w}});var{PACKAGE_NAME:m}=C(),u=require("fs"),E=require("http"),O=require("https"),r=require("path"),g=["contracts","tokens","components"],T=["app/globals.css","src/app/globals.css","styles/globals.css","src/styles/globals.css","src/styles.css","src/index.css","src/style.css"],k={next:["next.config.js","next.config.mjs","next.config.ts"],vite:["vite.config.ts","vite.config.js","vite.config.mts","vite.config.mjs"]},x=["primereact","@mui/material","antd","@chakra-ui/react","@mantine/core","@fluentui/react"],I=["style-dictionary","@tokens-studio/sd-transforms","@vanilla-extract/css","styled-components","@emotion/react"];function A(n){try{return JSON.parse(u.readFileSync(n,"utf8"))}catch{return{}}}function h(n){if(n===void 0)return null;if(!Array.isArray(n)){let t=new Error("`adopt` in frontfriend.config.js must be an array.");throw t.code="FRONTFRIEND_CONFIG_VALIDATION",t}let e=n.filter(t=>!g.includes(t));if(e.length>0){let t=new Error(`Unknown Frontfriend adoption level: ${e.join(", ")}.`);throw t.code="FRONTFRIEND_CONFIG_VALIDATION",t}let i=n.includes("components")?2:n.includes("tokens")?1:0;return g.slice(0,i+1)}function _(n){for(let[e,i]of Object.entries(k)){let t=i.find(s=>u.existsSync(r.join(n,s)));if(!t)continue;let c=u.readFileSync(r.join(n,t),"utf8");return{buildTool:e,present:c.includes(`${m}/${e}`)}}return{buildTool:null,present:!1}}function v(n){let e=[r.join(n,"components","ui"),r.join(n,"src","components","ui"),r.join(n,"app","components","ui")].filter(c=>u.existsSync(c)),i=new Set;function t(c){for(let s of u.readdirSync(c,{withFileTypes:!0})){let o=r.join(c,s.name);if(s.isDirectory())t(o);else if(/\.(js|jsx|ts|tsx|vue)$/.test(s.name)){if(!u.readFileSync(o,"utf8").includes(m))continue;let a=r.basename(s.name,r.extname(s.name));i.add(a.toLowerCase()==="index"?r.basename(c):a.toLowerCase())}}}return e.forEach(t),[...i].sort()}function P(n){let e=A(r.join(n,"package.json")),i={...e.dependencies||{},...e.devDependencies||{}},t=i.tailwindcss||null,s=[A(r.join(n,"components.json"))?.tailwind?.css,...T].filter(Boolean).find(a=>u.existsSync(r.join(n,a))),o=s?u.readFileSync(r.join(n,s),"utf8"):"",l=I.filter(a=>i[a]);return!l.length&&/:root[\s\S]*--(?:color|spacing|font|radius)-[\w-]+\s*:/.test(o)&&!o.includes(`${m}/theme.css`)&&l.push("css-custom-properties"),{nativeTokens:{present:o.includes("/* Frontfriend managed native tokens: start */"),file:s||null},tailwind:{present:!!t,version:t,major:t&&Number((String(t).match(/\d+/)||[])[0])||null},componentsJson:u.existsSync(r.join(n,"components.json")),themeImport:{present:o.includes(`${m}/theme.css`)||/@import\s+["'][^"']*node_modules\/\.cache\/frontfriend\/theme\.css["']/.test(o),file:s||null},plugin:_(n),frontfriendComponents:v(n),foreignComponentLibraries:x.filter(a=>i[a]),foreignTokenSystems:l}}function D(n,e,{baseLibrary:i}={}){let t=h(n)||g,c=t.includes("tokens"),s=t.includes("components"),o=[];return c&&!e.themeImport.present&&!e.nativeTokens?.present&&o.push("Config adopts tokens, but the Frontfriend theme import was not observed."),!c&&e.themeImport.present&&o.push("Frontfriend tokens are present in CSS but are not adopted in config."),s&&i==="shadcn"&&!e.componentsJson&&o.push("Config adopts components, but components.json was not observed."),!s&&e.frontfriendComponents.length>0&&o.push("Frontfriend components are installed but are not adopted in config."),o}function L({apiUrl:n,token:e,ffId:i,name:t,adopt:c,observed:s,framework:o,primitive:l}){if(!n||!e||!i||!t||!o||l===void 0)return Promise.resolve({reported:!1,unavailable:!0});let a=new URL("/api/apps/sync",n),y=JSON.stringify({ffId:i,name:t,adopt:h(c),observed:s,runtime:"sdk",framework:o,primitive:l}),N=a.protocol==="https:"?O:E;return new Promise(d=>{let f=N.request(a,{method:"POST",headers:{authorization:`Bearer ${e}`,"content-type":"application/json","content-length":Buffer.byteLength(y)}},p=>{p.resume(),p.on("end",()=>{p.statusCode>=200&&p.statusCode<300?d({reported:!0,unavailable:!1}):d({reported:!1,unavailable:!0})})});f.on("error",()=>d({reported:!1,unavailable:!0})),f.setTimeout(1500,()=>{f.destroy(),d({reported:!1,unavailable:!0})}),f.end(y)})}module.exports={ADOPTION_LEVELS:g,normalizeAdopt:h,probeAdoption:P,adoptionWarnings:D,reportAdoption:L};