@seed-design/codemod 0.0.13 → 0.0.14
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.
package/bin/index.mjs
CHANGED
@@ -56,18 +56,18 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
56
56
|
`){return e.split(r).reduce((n,s)=>{let o=t?s.trim():s;return o&&n.push(o),n},[])}function Ha(e,t){return un(e,!0).map(r=>t(r))}function Ya(e){return(0,oo.exists)(e,oo.FOLDER)}function F(e,t){return Array.isArray(e)?e.includes(t)||e.push(t):e.add(t),t}function jg(e,t){return Array.isArray(e)&&!e.includes(t)&&e.push(t),e}function io(e,t){if(Array.isArray(e)){let r=e.indexOf(t);r>=0&&e.splice(r,1)}else e.delete(t);return t}function Ze(e){return Array.isArray(e)?e:[e]}function Bg(e){return e.replace(/[\s-]+(.)/g,(t,r)=>r.toUpperCase())}function Ug(e){return Ze(e).map(String)}function B(e,t=0){if(e==null)return t;let r=parseInt(e,10);return isNaN(r)?t:r}function nn(e,t){let r=[];for(let n=0,s=e.length;n<s;n++)r.push(t,e[n]);return r}function sn(e){return(Array.isArray(e)?Buffer.concat(e):e).toString("utf-8")}function Gg(e,t){return Object.assign({},...t.map(r=>r in e?{[r]:e[r]}:{}))}function La(e=0){return new Promise(t=>setTimeout(t,e))}function Na(e){if(e!==!1)return e}var vr,zt,ln,ao=g({"src/lib/utils/util.ts"(){"use strict";vr="\0",zt=()=>{},ln=Object.prototype.toString.call.bind(Object.prototype.toString)}});function He(e,t,r){return t(e)?e:arguments.length>2?r:void 0}function Xa(e,t){let r=Qs(e)?"string":typeof e;return/number|string|boolean/.test(r)&&(!t||!t.includes(r))}function Ka(e){return!!e&&ln(e)==="[object Object]"}function qg(e){return typeof e=="function"}var fn,te,Vg,eo,Ja,zg=g({"src/lib/utils/argument-filters.ts"(){"use strict";ao(),an(),fn=e=>Array.isArray(e),te=e=>typeof e=="string",Vg=e=>Array.isArray(e)&&e.every(te),eo=e=>te(e)||Array.isArray(e)&&e.every(te),Ja=e=>e==null||"number|boolean|function".includes(typeof e)?!1:Array.isArray(e)||typeof e=="string"||typeof e.length=="number"}}),Pa,PA=g({"src/lib/utils/exit-codes.ts"(){"use strict";Pa=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=1]="ERROR",e[e.NOT_FOUND=-2]="NOT_FOUND",e[e.UNCLEAN=128]="UNCLEAN",e))(Pa||{})}}),on,MA=g({"src/lib/utils/git-output-streams.ts"(){"use strict";on=class{constructor(e,t){this.stdOut=e,this.stdErr=t}asStrings(){return new on(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}}}),I,pt,FA=g({"src/lib/utils/line-parser.ts"(){"use strict";I=class{constructor(e,t){this.matches=[],this.parse=(r,n)=>(this.resetMatches(),this._regExp.every((s,o)=>this.addMatch(s,o,r(o)))?this.useMatches(n,this.prepareMatches())!==!1:!1),this._regExp=Array.isArray(e)?e:[e],t&&(this.useMatches=t)}useMatches(e,t){throw new Error("LineParser:useMatches not implemented")}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){let n=r&&e.exec(r);return n&&this.pushMatch(t,n),!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}},pt=class extends I{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){(e>0||t.length>1)&&super.pushMatch(e,t)}}}});function Wg(...e){let t=process.cwd(),r=Object.assign(Ce({baseDir:t},Zg),...e.filter(n=>typeof n=="object"&&n));return r.baseDir=r.baseDir||t,r.trimmed=r.trimmed===!0,r}var Zg,jA=g({"src/lib/utils/simple-git-options.ts"(){"use strict";Zg={binary:"git",maxConcurrentProcesses:5,config:[],trimmed:!1}}});function Qa(e,t=[]){return Ka(e)?Object.keys(e).reduce((r,n)=>{let s=e[n];return Qs(s)?r.push(s):Xa(s,["boolean"])?r.push(n+"="+s):r.push(n),r},t):t}function le(e,t=0,r=!1){let n=[];for(let s=0,o=t<0?e.length:t;s<o;s++)"string|number".includes(typeof e[s])&&n.push(String(e[s]));return Qa(ec(e),n),r||n.push(...BA(e)),n}function BA(e){let t=typeof Vt(e)=="function";return He(Vt(e,t?1:0),fn,[])}function ec(e){let t=qg(Vt(e));return He(Vt(e,t?1:0),Ka)}function V(e,t=!0){let r=Lg(Vt(e));return t||Ng(r)?r:void 0}var UA=g({"src/lib/utils/task-options.ts"(){"use strict";zg(),ao(),an()}});function Ma(e,t){return e(t.stdOut,t.stdErr)}function de(e,t,r,n=!0){return Ze(r).forEach(s=>{for(let o=un(s,n),i=0,a=o.length;i<a;i++){let c=(u=0)=>{if(!(i+u>=a))return o[i+u]};t.some(({parse:u})=>u(c,e))}}),e}var GA=g({"src/lib/utils/task-parser.ts"(){"use strict";ao()}}),Hg={};Z(Hg,{ExitCodes:()=>Pa,GitOutputStreams:()=>on,LineParser:()=>I,NOOP:()=>zt,NULL:()=>vr,RemoteLineParser:()=>pt,append:()=>F,appendTaskOptions:()=>Qa,asArray:()=>Ze,asCamelCase:()=>Bg,asFunction:()=>Lg,asNumber:()=>B,asStringArray:()=>Ug,bufferToString:()=>sn,callTaskParser:()=>Ma,createInstanceConfig:()=>Wg,delay:()=>La,filterArray:()=>fn,filterFunction:()=>qg,filterHasLength:()=>Ja,filterPlainObject:()=>Ka,filterPrimitives:()=>Xa,filterString:()=>te,filterStringArray:()=>Vg,filterStringOrStringArray:()=>eo,filterType:()=>He,first:()=>Mg,folderExists:()=>Ya,forEachLineWithContent:()=>Ha,getTrailingOptions:()=>le,including:()=>jg,isUserFunction:()=>Ng,last:()=>Vt,objectToString:()=>ln,orVoid:()=>Na,parseStringResponse:()=>de,pick:()=>Gg,prefixedArray:()=>nn,remove:()=>io,splitOn:()=>Pg,toLinesWithContent:()=>un,trailingFunctionArgument:()=>V,trailingOptionsArgument:()=>ec});var C=g({"src/lib/utils/index.ts"(){"use strict";zg(),PA(),MA(),FA(),jA(),UA(),GA(),ao()}}),Yg={};Z(Yg,{CheckRepoActions:()=>Fa,checkIsBareRepoTask:()=>Kg,checkIsRepoRootTask:()=>Xg,checkIsRepoTask:()=>qA});function qA(e){switch(e){case"bare":return Kg();case"root":return Xg()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:co,parser:tc}}function Xg(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:co,parser(t){return/^\.(git)?$/.test(t.trim())}}}function Kg(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:co,parser:tc}}function VA(e){return/(Not a git repository|Kein Git-Repository)/i.test(String(e))}var Fa,co,tc,Jg=g({"src/lib/tasks/check-is-repo.ts"(){"use strict";C(),Fa=(e=>(e.BARE="bare",e.IN_TREE="tree",e.IS_REPO_ROOT="root",e))(Fa||{}),co=({exitCode:e},t,r,n)=>{if(e===128&&VA(t))return r(Buffer.from("false"));n(t)},tc=e=>e.trim()==="true"}});function zA(e,t){let r=new Qg(e),n=e?ty:ey;return un(t).forEach(s=>{let o=s.replace(n,"");r.paths.push(o),(ry.test(o)?r.folders:r.files).push(o)}),r}var Qg,ey,ty,ry,WA=g({"src/lib/responses/CleanSummary.ts"(){"use strict";C(),Qg=class{constructor(e){this.dryRun=e,this.paths=[],this.files=[],this.folders=[]}},ey=/^[a-z]+\s*/i,ty=/^[a-z]+\s+[a-z]+\s*/i,ry=/\/$/}}),ja={};Z(ja,{EMPTY_COMMANDS:()=>uo,adhocExecTask:()=>ny,configurationErrorTask:()=>fe,isBufferTask:()=>oy,isEmptyTask:()=>iy,straightThroughBufferTask:()=>sy,straightThroughStringTask:()=>ie});function ny(e){return{commands:uo,format:"empty",parser:e}}function fe(e){return{commands:uo,format:"empty",parser(){throw typeof e=="string"?new $g(e):e}}}function ie(e,t=!1){return{commands:e,format:"utf-8",parser(r){return t?String(r).trim():r}}}function sy(e){return{commands:e,format:"buffer",parser(t){return t}}}function oy(e){return e.format==="buffer"}function iy(e){return e.format==="empty"||!e.commands.length}var uo,W=g({"src/lib/tasks/task.ts"(){"use strict";Dg(),uo=[]}}),ay={};Z(ay,{CONFIG_ERROR_INTERACTIVE_MODE:()=>rc,CONFIG_ERROR_MODE_REQUIRED:()=>nc,CONFIG_ERROR_UNKNOWN_OPTION:()=>sc,CleanOptions:()=>Ys,cleanTask:()=>cy,cleanWithOptionsTask:()=>ZA,isCleanOptionsArray:()=>HA});function ZA(e,t){let{cleanMode:r,options:n,valid:s}=YA(e);return r?s.options?(n.push(...t),n.some(JA)?fe(rc):cy(r,n)):fe(sc+JSON.stringify(e)):fe(nc)}function cy(e,t){return{commands:["clean",`-${e}`,...t],format:"utf-8",parser(n){return zA(e==="n",n)}}}function HA(e){return Array.isArray(e)&&e.every(t=>oc.has(t))}function YA(e){let t,r=[],n={cleanMode:!1,options:!0};return e.replace(/[^a-z]i/g,"").split("").forEach(s=>{XA(s)?(t=s,n.cleanMode=!0):n.options=n.options&&KA(r[r.length]=`-${s}`)}),{cleanMode:t,options:r,valid:n}}function XA(e){return e==="f"||e==="n"}function KA(e){return/^-[a-z]$/i.test(e)&&oc.has(e.charAt(1))}function JA(e){return/^-[^\-]/.test(e)?e.indexOf("i")>0:e==="--interactive"}var rc,nc,sc,Ys,oc,uy=g({"src/lib/tasks/clean.ts"(){"use strict";WA(),C(),W(),rc="Git clean interactive mode is not supported",nc='Git clean mode parameter ("n" or "f") is required',sc="Git clean unknown option found in: ",Ys=(e=>(e.DRY_RUN="n",e.FORCE="f",e.IGNORED_INCLUDED="x",e.IGNORED_ONLY="X",e.EXCLUDING="e",e.QUIET="q",e.RECURSIVE="d",e))(Ys||{}),oc=new Set(["i",...Ug(Object.values(Ys))])}});function QA(e){let t=new fy;for(let r of ly(e))t.addValue(r.file,String(r.key),r.value);return t}function eI(e,t){let r=null,n=[],s=new Map;for(let o of ly(e,t))o.key===t&&(n.push(r=o.value),s.has(o.file)||s.set(o.file,[]),s.get(o.file).push(r));return{key:t,paths:Array.from(s.keys()),scopes:s,value:r,values:n}}function tI(e){return e.replace(/^(file):/,"")}function*ly(e,t=null){let r=e.split("\0");for(let n=0,s=r.length-1;n<s;){let o=tI(r[n++]),i=r[n++],a=t;if(i.includes(`
|
57
57
|
`)){let c=Pg(i,`
|
58
58
|
`);a=c[0],i=c[1]}yield{file:o,key:a,value:i}}}var fy,rI=g({"src/lib/responses/ConfigList.ts"(){"use strict";C(),fy=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||(this._all=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{})),this._all}addFile(e){if(!(e in this.values)){let t=Vt(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,r){let n=this.addFile(e);n.hasOwnProperty(t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r,this._all=void 0}}}});function ka(e,t){return typeof e=="string"&&Ba.hasOwnProperty(e)?e:t}function nI(e,t,r,n){let s=["config",`--${n}`];return r&&s.push("--add"),s.push(e,t),{commands:s,format:"utf-8",parser(o){return o}}}function sI(e,t){let r=["config","--null","--show-origin","--get-all",e];return t&&r.splice(1,0,`--${t}`),{commands:r,format:"utf-8",parser(n){return eI(n,e)}}}function oI(e){let t=["config","--list","--show-origin","--null"];return e&&t.push(`--${e}`),{commands:t,format:"utf-8",parser(r){return QA(r)}}}function iI(){return{addConfig(e,t,...r){return this._runTask(nI(e,t,r[0]===!0,ka(r[1],"local")),V(arguments))},getConfig(e,t){return this._runTask(sI(e,ka(t,void 0)),V(arguments))},listConfig(...e){return this._runTask(oI(ka(e[0],void 0)),V(arguments))}}}var Ba,dy=g({"src/lib/tasks/config.ts"(){"use strict";rI(),C(),Ba=(e=>(e.system="system",e.global="global",e.local="local",e.worktree="worktree",e))(Ba||{})}});function aI(e){return py.has(e)}var Ca,py,my=g({"src/lib/tasks/diff-name-status.ts"(){"use strict";Ca=(e=>(e.ADDED="A",e.COPIED="C",e.DELETED="D",e.MODIFIED="M",e.RENAMED="R",e.CHANGED="T",e.UNMERGED="U",e.UNKNOWN="X",e.BROKEN="B",e))(Ca||{}),py=new Set(Object.values(Ca))}});function cI(...e){return new gy().param(...e)}function uI(e){let t=new Set,r={};return Ha(e,n=>{let[s,o,i]=n.split(vr);t.add(s),(r[s]=r[s]||[]).push({line:B(o),path:s,preview:i})}),{paths:t,results:r}}function lI(){return{grep(e){let t=V(arguments),r=le(arguments);for(let s of hy)if(r.includes(s))return this._runTask(fe(`git.grep: use of "${s}" is not supported.`),t);typeof e=="string"&&(e=cI().param(e));let n=["grep","--null","-n","--full-name",...r,...e];return this._runTask({commands:n,format:"utf-8",parser(s){return uI(s)}},t)}}}var hy,en,tg,gy,yy=g({"src/lib/tasks/grep.ts"(){"use strict";C(),W(),hy=["-h"],en=Symbol("grepQuery"),gy=class{constructor(){this[tg]=[]}*[(tg=en,Symbol.iterator)](){for(let e of this[en])yield e}and(...e){return e.length&&this[en].push("--and","(",...nn(e,"-e"),")"),this}param(...e){return this[en].push(...nn(e,"-e")),this}}}}),by={};Z(by,{ResetMode:()=>Xs,getResetMode:()=>dI,resetTask:()=>fI});function fI(e,t){let r=["reset"];return wy(e)&&r.push(`--${e}`),r.push(...t),ie(r)}function dI(e){if(wy(e))return e;switch(typeof e){case"string":case"undefined":return"soft"}}function wy(e){return Sy.includes(e)}var Xs,Sy,xy=g({"src/lib/tasks/reset.ts"(){"use strict";W(),Xs=(e=>(e.MIXED="mixed",e.SOFT="soft",e.HARD="hard",e.MERGE="merge",e.KEEP="keep",e))(Xs||{}),Sy=Array.from(Object.values(Xs))}});function pI(){return(0,to.default)("simple-git")}function rg(e,t,r){return!t||!String(t).replace(/\s*/,"")?r?(n,...s)=>{e(n,...s),r(n,...s)}:e:(n,...s)=>{e(`%s ${n}`,t,...s),r&&r(n,...s)}}function mI(e,t,{namespace:r}){if(typeof e=="string")return e;let n=t&&t.namespace||"";return n.startsWith(r)?n.substr(r.length+1):n||r}function ic(e,t,r,n=pI()){let s=e&&`[${e}]`||"",o=[],i=typeof t=="string"?n.extend(t):t,a=mI(He(t,te),i,n);return u(r);function c(l,f){return F(o,ic(e,a.replace(/^[^:]+/,l),f,n))}function u(l){let f=l&&`[${l}]`||"",p=i&&rg(i,f)||zt,d=rg(n,`${s} ${f}`,p);return Object.assign(i?p:d,{label:e,sibling:c,info:d,step:u})}}var vy=g({"src/lib/git-logger.ts"(){"use strict";C(),to.default.formatters.L=e=>String(Ja(e)?e.length:"-"),to.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString("utf8"):ln(e)}}),Zs,Ua,hI=g({"src/lib/runners/tasks-pending-queue.ts"(){"use strict";mt(),vy(),Zs=class{constructor(e="GitExecutor"){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){let t=Zs.getName(e.commands[0]),r=ic(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){let t=this.createProgress(e);return t.logger("Adding task to the queue, commands = %o",e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:r}]of Array.from(this._queue.entries()))t===e.task?(r.info("Failed %o",e),r("Fatal exception, any as-yet un-started tasks run through this executor will not be attempted")):r.info("A fatal exception occurred in a previous task, the queue has been purged: %o",e.message),this.complete(t);if(this._queue.size!==0)throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new ot(void 0,"TasksPendingQueue: attempt called for an unknown task");return t.logger("Starting task"),t}static getName(e="empty"){return`task:${e}:${++Zs.counter}`}},Ua=Zs,Ua.counter=0}});function qt(e,t){return{method:Mg(e.commands)||"",commands:t}}function yI(e,t){return r=>{t("[ERROR] child process exception %o",r),e.push(Buffer.from(String(r.stack),"ascii"))}}function ng(e,t,r,n){return s=>{r("%s received %L bytes",t,s),n("%B",s),e.push(s)}}var Ga,bI=g({"src/lib/runners/git-executor-chain.ts"(){"use strict";mt(),W(),C(),hI(),Ga=class{constructor(e,t,r){this._executor=e,this._scheduler=t,this._plugins=r,this._chain=Promise.resolve(),this._queue=new Ua}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return tn(this,null,function*(){let t=yield this._scheduler.next(),r=()=>this._queue.complete(e);try{let{logger:n}=this._queue.attempt(e);return yield iy(e)?this.attemptEmptyTask(e,n):this.attemptRemoteTask(e,n)}catch(n){throw this.onFatalException(e,n)}finally{r(),t()}})}onFatalException(e,t){let r=t instanceof ot?Object.assign(t,{task:e}):new ot(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(r),r}attemptRemoteTask(e,t){return tn(this,null,function*(){let r=this._plugins.exec("spawn.binary","",qt(e,e.commands)),n=this._plugins.exec("spawn.args",[...e.commands],qt(e,e.commands)),s=yield this.gitResponse(e,r,n,this.outputHandler,t.step("SPAWN")),o=yield this.handleTaskData(e,n,s,t.step("HANDLE"));return t("passing response to task's parser as a %s",e.format),oy(e)?Ma(e.parser,o):Ma(e.parser,o.asStrings())})}attemptEmptyTask(e,t){return tn(this,null,function*(){return t("empty task bypassing child process to call to task's parser"),e.parser(this)})}handleTaskData(e,t,r,n){let{exitCode:s,rejection:o,stdOut:i,stdErr:a}=r;return new Promise((c,u)=>{n("Preparing to handle process response exitCode=%d stdOut=",s);let{error:l}=this._plugins.exec("task.error",{error:o},Ce(Ce({},qt(e,t)),r));if(l&&e.onError)return n.info("exitCode=%s handling with custom error handler"),e.onError(r,l,f=>{n.info("custom error handler treated as success"),n("custom error returned a %s",ln(f)),c(new on(Array.isArray(f)?Buffer.concat(f):f,Buffer.concat(a)))},u);if(l)return n.info("handling as error: exitCode=%s stdErr=%s rejection=%o",s,a.length,o),u(l);n.info("retrieving task output complete"),c(new on(Buffer.concat(i),Buffer.concat(a)))})}gitResponse(e,t,r,n,s){return tn(this,null,function*(){let o=s.sibling("output"),i=this._plugins.exec("spawn.options",{cwd:this.cwd,env:this.env,windowsHide:!0},qt(e,e.commands));return new Promise(a=>{let c=[],u=[];s.info("%s %o",t,r),s("%O",i);let l=this._beforeSpawn(e,r);if(l)return a({stdOut:c,stdErr:u,exitCode:9901,rejection:l});this._plugins.exec("spawn.before",void 0,rn(Ce({},qt(e,r)),{kill(p){l=p||l}}));let f=gI(t,r,i);f.stdout.on("data",ng(c,"stdOut",s,o.step("stdOut"))),f.stderr.on("data",ng(u,"stdErr",s,o.step("stdErr"))),f.on("error",yI(u,s)),n&&(s("Passing child process stdOut/stdErr to custom outputHandler"),n(t,f.stdout,f.stderr,[...r])),this._plugins.exec("spawn.after",void 0,rn(Ce({},qt(e,r)),{spawned:f,close(p,d){a({stdOut:c,stdErr:u,exitCode:p,rejection:l||d})},kill(p){f.killed||(l=p,f.kill("SIGINT"))}}))})})}_beforeSpawn(e,t){let r;return this._plugins.exec("spawn.before",void 0,rn(Ce({},qt(e,t)),{kill(n){r=n||r}})),r}}}}),_y={};Z(_y,{GitExecutor:()=>Ey});var Ey,wI=g({"src/lib/runners/git-executor.ts"(){"use strict";bI(),Ey=class{constructor(e,t,r){this.cwd=e,this._scheduler=t,this._plugins=r,this._chain=new Ga(this,this._scheduler,this._plugins)}chain(){return new Ga(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function SI(e,t,r=zt){let n=o=>{r(null,o)},s=o=>{o?.task===e&&r(o instanceof cn?xI(o):o,void 0)};t.then(n,s)}function xI(e){let t=n=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${n} should be GitResponseError.git.${n}, this will no longer be available in version 3`),t=zt};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(r,{}));function r(n,s){return s in e||(n[s]={enumerable:!1,configurable:!1,get(){return t(s),e.git[s]}}),n}}var vI=g({"src/lib/task-callback.ts"(){"use strict";_r(),C()}});function sg(e,t){return ny(r=>{if(!Ya(e))throw new Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||r).cwd=e})}var _I=g({"src/lib/tasks/change-working-directory.ts"(){"use strict";C(),W()}});function Aa(e){let t=["checkout",...e];return t[1]==="-b"&&t.includes("-B")&&(t[1]=io(t,"-B")),ie(t)}function EI(){return{checkout(){return this._runTask(Aa(le(arguments,1)),V(arguments))},checkoutBranch(e,t){return this._runTask(Aa(["-b",e,t,...le(arguments)]),V(arguments))},checkoutLocalBranch(e){return this._runTask(Aa(["-b",e,...le(arguments)]),V(arguments))}}}var TI=g({"src/lib/tasks/checkout.ts"(){"use strict";C(),W()}});function OI(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function RI(){return{countObjects(){return this._runTask({commands:["count-objects","--verbose"],format:"utf-8",parser(e){return de(OI(),[Ty],e)}})}}}var Ty,kI=g({"src/lib/tasks/count-objects.ts"(){"use strict";C(),Ty=new I(/([a-z-]+): (\d+)$/,(e,[t,r])=>{let n=Bg(t);e.hasOwnProperty(n)&&(e[n]=B(r))})}});function CI(e){return de({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},Oy,e)}var Oy,AI=g({"src/lib/parsers/parse-commit.ts"(){"use strict";C(),Oy=[new I(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,r,n])=>{e.branch=t,e.commit=n,e.root=!!r}),new I(/\s*Author:\s(.+)/i,(e,[t])=>{let r=t.split("<"),n=r.pop();!n||!n.includes("@")||(e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()})}),new I(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(r,10)||0,e.summary.deletions=parseInt(n,10)||0}),new I(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;let s=parseInt(r,10)||0;n==="-"?e.summary.deletions=s:n==="+"&&(e.summary.insertions=s)})]}});function II(e,t,r){return{commands:["-c","core.abbrev=40","commit",...nn(e,"-m"),...t,...r],format:"utf-8",parser:CI}}function $I(){return{commit(t,...r){let n=V(arguments),s=e(t)||II(Ze(t),Ze(He(r[0],eo,[])),[...He(r[1],fn,[]),...le(arguments,0,!0)]);return this._runTask(s,n)}};function e(t){return!eo(t)&&fe("git.commit: requires the commit message to be supplied as a string/string[]")}}var DI=g({"src/lib/tasks/commit.ts"(){"use strict";AI(),C(),W()}});function LI(){return{firstCommit(){return this._runTask(ie(["rev-list","--max-parents=0","HEAD"],!0),V(arguments))}}}var NI=g({"src/lib/tasks/first-commit.ts"(){"use strict";C(),W()}});function PI(e,t){let r=["hash-object",e];return t&&r.push("-w"),ie(r,!0)}var MI=g({"src/lib/tasks/hash-object.ts"(){"use strict";W()}});function FI(e,t,r){let n=String(r).trim(),s;if(s=Ry.exec(n))return new Ks(e,t,!1,s[1]);if(s=ky.exec(n))return new Ks(e,t,!0,s[1]);let o="",i=n.split(" ");for(;i.length;)if(i.shift()==="in"){o=i.join(" ");break}return new Ks(e,t,/^re/i.test(n),o)}var Ks,Ry,ky,jI=g({"src/lib/responses/InitSummary.ts"(){"use strict";Ks=class{constructor(e,t,r,n){this.bare=e,this.path=t,this.existing=r,this.gitDir=n}},Ry=/^Init.+ repository in (.+)$/,ky=/^Rein.+ in (.+)$/}});function BI(e){return e.includes(ac)}function UI(e=!1,t,r){let n=["init",...r];return e&&!BI(n)&&n.splice(1,0,ac),{commands:n,format:"utf-8",parser(s){return FI(n.includes("--bare"),t,s)}}}var ac,GI=g({"src/lib/tasks/init.ts"(){"use strict";jI(),ac="--bare"}});function cc(e){for(let t=0;t<e.length;t++){let r=uc.exec(e[t]);if(r)return`--${r[1]}`}return""}function qI(e){return uc.test(e)}var uc,dn=g({"src/lib/args/log-format.ts"(){"use strict";uc=/^--(stat|numstat|name-only|name-status)(=|$)/}}),Cy,VI=g({"src/lib/responses/DiffSummary.ts"(){"use strict";Cy=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function Ay(e=""){let t=Iy[e];return r=>de(new Cy,t,r,!1)}var Ia,og,ig,ag,Iy,$y=g({"src/lib/parsers/parse-diff-summary.ts"(){"use strict";dn(),VI(),my(),C(),Ia=[new I(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,r,n=""])=>{e.files.push({file:t.trim(),changes:B(r),insertions:n.replace(/[^+]/g,"").length,deletions:n.replace(/[^-]/g,"").length,binary:!1})}),new I(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,r,n])=>{e.files.push({file:t.trim(),before:B(r),after:B(n),binary:!0})}),new I(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,r])=>{let n=/(\d+) i/.exec(r),s=/(\d+) d/.exec(r);e.changed=B(t),e.insertions=B(n?.[1]),e.deletions=B(s?.[1])})],og=[new I(/(\d+)\t(\d+)\t(.+)$/,(e,[t,r,n])=>{let s=B(t),o=B(r);e.changed++,e.insertions+=s,e.deletions+=o,e.files.push({file:n,changes:s+o,insertions:s,deletions:o,binary:!1})}),new I(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],ig=[new I(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],ag=[new I(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,r,n,s,o])=>{e.changed++,e.files.push({file:o??n,changes:0,insertions:0,deletions:0,binary:!1,status:Na(aI(t)&&t),from:Na(!!o&&n!==o&&n),similarity:B(r)})})],Iy={"":Ia,"--stat":Ia,"--numstat":og,"--name-status":ag,"--name-only":ig}}});function zI(e,t){return t.reduce((r,n,s)=>(r[n]=e[s]||"",r),Object.create({diff:null}))}function Dy(e=dc,t=Ly,r=""){let n=Ay(r);return function(s){let o=un(s.trim(),!1,lc).map(function(i){let a=i.split(fc),c=zI(a[0].split(e),t);return a.length>1&&a[1].trim()&&(c.diff=n(a[1])),c});return{all:o,latest:o.length&&o[0]||null,total:o.length}}}var lc,fc,dc,Ly,Ny=g({"src/lib/parsers/parse-list-log-summary.ts"(){"use strict";C(),$y(),dn(),lc="\xF2\xF2\xF2\xF2\xF2\xF2 ",fc=" \xF2\xF2",dc=" \xF2 ",Ly=["hash","date","message","refs","author_name","author_email"]}}),Py={};Z(Py,{diffSummaryTask:()=>WI,validateLogFormatConfig:()=>lo});function WI(e){let t=cc(e),r=["diff"];return t===""&&(t="--stat",r.push("--stat=4096")),r.push(...e),lo(r)||{commands:r,format:"utf-8",parser:Ay(t)}}function lo(e){let t=e.filter(qI);if(t.length>1)return fe(`Summary flags are mutually exclusive - pick one of ${t.join(",")}`);if(t.length&&e.includes("-z"))return fe(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var pc=g({"src/lib/tasks/diff.ts"(){"use strict";dn(),$y(),W()}});function ZI(e,t){let r=[],n=[];return Object.keys(e).forEach(s=>{r.push(s),n.push(String(e[s]))}),[r,n.join(t)]}function HI(e){return Object.keys(e).reduce((t,r)=>(r in qa||(t[r]=e[r]),t),{})}function My(e={},t=[]){let r=He(e.splitter,te,dc),n=!Xa(e.format)&&e.format?e.format:{hash:"%H",date:e.strictDate===!1?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:e.mailMap!==!1?"%aN":"%an",author_email:e.mailMap!==!1?"%aE":"%ae"},[s,o]=ZI(n,r),i=[],a=[`--pretty=format:${lc}${o}${fc}`,...t],c=e.n||e["max-count"]||e.maxCount;if(c&&a.push(`--max-count=${c}`),e.from||e.to){let u=e.symmetric!==!1?"...":"..";i.push(`${e.from||""}${u}${e.to||""}`)}return te(e.file)&&a.push("--follow",NA(e.file)),Qa(HI(e),a),{fields:s,splitter:r,commands:[...a,...i]}}function YI(e,t,r){let n=Dy(e,t,cc(r));return{commands:["log",...r],format:"utf-8",parser:n}}function XI(){return{log(...r){let n=V(arguments),s=My(ec(arguments),He(arguments[0],fn)),o=t(...r)||lo(s.commands)||e(s);return this._runTask(o,n)}};function e(r){return YI(r.splitter,r.fields,r.commands)}function t(r,n){return te(r)&&te(n)&&fe("git.log(string, string) should be replaced with git.log({ from: string, to: string })")}}var qa,Fy=g({"src/lib/tasks/log.ts"(){"use strict";dn(),an(),Ny(),C(),W(),pc(),qa=(e=>(e[e["--pretty"]=0]="--pretty",e[e["max-count"]=1]="max-count",e[e.maxCount=2]="maxCount",e[e.n=3]="n",e[e.file=4]="file",e[e.format=5]="format",e[e.from=6]="from",e[e.to=7]="to",e[e.splitter=8]="splitter",e[e.symmetric=9]="symmetric",e[e.mailMap=10]="mailMap",e[e.multiLine=11]="multiLine",e[e.strictDate=12]="strictDate",e))(qa||{})}}),Js,jy,KI=g({"src/lib/responses/MergeSummary.ts"(){"use strict";Js=class{constructor(e,t=null,r){this.reason=e,this.file=t,this.meta=r}toString(){return`${this.file}:${this.reason}`}},jy=class{constructor(){this.conflicts=[],this.merges=[],this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(", ")}`:"OK"}}}}),Va,By,JI=g({"src/lib/responses/PullSummary.ts"(){"use strict";Va=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},By=class{constructor(){this.remote="",this.hash={local:"",remote:""},this.branch={local:"",remote:""},this.message=""}toString(){return this.message}}}});function $a(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function cg(e){let t=/^\s*(\d+)/.exec(e),r=/delta (\d+)/i.exec(e);return{count:B(t&&t[1]||"0"),delta:B(r&&r[1]||"0")}}var Uy,QI=g({"src/lib/parsers/parse-remote-objects.ts"(){"use strict";C(),Uy=[new pt(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,r])=>{let n=t.toLowerCase(),s=$a(e.remoteMessages);Object.assign(s,{[n]:B(r)})}),new pt(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,r])=>{let n=t.toLowerCase(),s=$a(e.remoteMessages);Object.assign(s,{[n]:B(r)})}),new pt(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,r,n])=>{let s=$a(e.remoteMessages);s.total=cg(t),s.reused=cg(r),s.packReused=B(n)})]}});function Gy(e,t){return de({remoteMessages:new Vy},qy,t)}var qy,Vy,zy=g({"src/lib/parsers/parse-remote-messages.ts"(){"use strict";C(),QI(),qy=[new pt(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...Uy,new pt([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new pt([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,r,n])=>{e.remoteMessages.vulnerabilities={count:B(t),summary:r,url:n}})],Vy=class{constructor(){this.all=[]}}}});function e1(e,t){let r=de(new By,Wy,[e,t]);return r.message&&r}var ug,lg,fg,dg,Wy,pg,mc,Zy=g({"src/lib/parsers/parse-pull.ts"(){"use strict";JI(),C(),zy(),ug=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,lg=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,fg=/^(create|delete) mode \d+ (.+)/,dg=[new I(ug,(e,[t,r,n])=>{e.files.push(t),r&&(e.insertions[t]=r.length),n&&(e.deletions[t]=n.length)}),new I(lg,(e,[t,,r,,n])=>r!==void 0||n!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+r||0,e.summary.deletions=+n||0,!0):!1),new I(fg,(e,[t,r])=>{F(e.files,r),F(t==="create"?e.created:e.deleted,r)})],Wy=[new I(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new I(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new I(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,r,n,s])=>{e.branch.local=n,e.hash.local=t,e.branch.remote=s,e.hash.remote=r})],pg=(e,t)=>de(new Va,dg,[e,t]),mc=(e,t)=>Object.assign(new Va,pg(e,t),Gy(e,t))}}),mg,Hy,hg,t1=g({"src/lib/parsers/parse-merge.ts"(){"use strict";KI(),C(),Zy(),mg=[new I(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new I(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,r])=>{e.conflicts.push(new Js(t,r))}),new I(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,r,n])=>{e.conflicts.push(new Js(t,r,{deleteRef:n}))}),new I(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new Js(t,null))}),new I(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Hy=(e,t)=>Object.assign(hg(e,t),mc(e,t)),hg=e=>de(new jy,mg,e)}});function gg(e){return e.length?{commands:["merge",...e],format:"utf-8",parser(t,r){let n=Hy(t,r);if(n.failed)throw new cn(n);return n}}:fe("Git.merge requires at least one option")}var r1=g({"src/lib/tasks/merge.ts"(){"use strict";_r(),t1(),W()}});function n1(e,t,r){let n=r.includes("deleted"),s=r.includes("tag")||/^refs\/tags/.test(e),o=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!o,alreadyUpdated:o,local:e,remote:t}}var yg,Yy,bg,s1=g({"src/lib/parsers/parse-push.ts"(){"use strict";C(),zy(),yg=[new I(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new I(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref=rn(Ce({},e.ref||{}),{local:t})}),new I(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,r,n])=>{e.pushed.push(n1(t,r,n))}),new I(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,r,n])=>{e.branch=rn(Ce({},e.branch||{}),{local:t,remote:r,remoteName:n})}),new I(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}})],Yy=(e,t)=>{let r=bg(e,t),n=Gy(e,t);return Ce(Ce({},r),n)},bg=(e,t)=>de({pushed:[]},yg,[e,t])}}),Xy={};Z(Xy,{pushTagsTask:()=>o1,pushTask:()=>hc});function o1(e={},t){return F(t,"--tags"),hc(e,t)}function hc(e={},t){let r=["push",...t];return e.branch&&r.splice(1,0,e.branch),e.remote&&r.splice(1,0,e.remote),io(r,"-v"),F(r,"--verbose"),F(r,"--porcelain"),{commands:r,format:"utf-8",parser:Yy}}var Ky=g({"src/lib/tasks/push.ts"(){"use strict";s1(),C()}});function i1(){return{showBuffer(){let e=["show",...le(arguments,1)];return e.includes("--binary")||e.splice(1,0,"--binary"),this._runTask(sy(e),V(arguments))},show(){let e=["show",...le(arguments,1)];return this._runTask(ie(e),V(arguments))}}}var a1=g({"src/lib/tasks/show.ts"(){"use strict";C(),W()}}),wg,Jy,c1=g({"src/lib/responses/FileStatusSummary.ts"(){"use strict";wg=/^(.+)\0(.+)$/,Jy=class{constructor(e,t,r){if(this.path=e,this.index=t,this.working_dir=r,t==="R"||r==="R"){let n=wg.exec(e)||[null,e,e];this.from=n[2]||"",this.path=n[1]||""}}}}});function Sg(e){let[t,r]=e.split(vr);return{from:r||t,to:t}}function we(e,t,r){return[`${e}${t}`,r]}function Da(e,...t){return t.map(r=>we(e,r,(n,s)=>F(n.conflicted,s)))}function u1(e,t){let r=t.trim();switch(" "){case r.charAt(2):return n(r.charAt(0),r.charAt(1),r.substr(3));case r.charAt(1):return n(" ",r.charAt(0),r.substr(2));default:return}function n(s,o,i){let a=`${s}${o}`,c=Qy.get(a);c&&c(e,i),a!=="##"&&a!=="!!"&&e.files.push(new Jy(i,s,o))}}var xg,Qy,eb,l1=g({"src/lib/responses/StatusSummary.ts"(){"use strict";C(),c1(),xg=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},Qy=new Map([we(" ","A",(e,t)=>F(e.created,t)),we(" ","D",(e,t)=>F(e.deleted,t)),we(" ","M",(e,t)=>F(e.modified,t)),we("A"," ",(e,t)=>F(e.created,t)&&F(e.staged,t)),we("A","M",(e,t)=>F(e.created,t)&&F(e.staged,t)&&F(e.modified,t)),we("D"," ",(e,t)=>F(e.deleted,t)&&F(e.staged,t)),we("M"," ",(e,t)=>F(e.modified,t)&&F(e.staged,t)),we("M","M",(e,t)=>F(e.modified,t)&&F(e.staged,t)),we("R"," ",(e,t)=>{F(e.renamed,Sg(t))}),we("R","M",(e,t)=>{let r=Sg(t);F(e.renamed,r),F(e.modified,r.to)}),we("!","!",(e,t)=>{F(e.ignored=e.ignored||[],t)}),we("?","?",(e,t)=>F(e.not_added,t)),...Da("A","A","U"),...Da("D","D","U"),...Da("U","A","D","U"),["##",(e,t)=>{let r=/ahead (\d+)/,n=/behind (\d+)/,s=/^(.+?(?=(?:\.{3}|\s|$)))/,o=/\.{3}(\S*)/,i=/\son\s([\S]+)$/,a;a=r.exec(t),e.ahead=a&&+a[1]||0,a=n.exec(t),e.behind=a&&+a[1]||0,a=s.exec(t),e.current=a&&a[1],a=o.exec(t),e.tracking=a&&a[1],a=i.exec(t),e.current=a&&a[1]||e.current,e.detached=/\(no branch\)/.test(t)}]]),eb=function(e){let t=e.split(vr),r=new xg;for(let n=0,s=t.length;n<s;){let o=t[n++].trim();o&&(o.charAt(0)==="R"&&(o+=vr+(t[n++]||"")),u1(r,o))}return r}}});function f1(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u","--null",...e.filter(r=>!tb.includes(r))],parser(r){return eb(r)}}}var tb,d1=g({"src/lib/tasks/status.ts"(){"use strict";l1(),tb=["--null","-z"]}});function ro(e=0,t=0,r=0,n="",s=!0){return Object.defineProperty({major:e,minor:t,patch:r,agent:n,installed:s},"toString",{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function p1(){return ro(0,0,0,"",!1)}function m1(){return{version(){return this._runTask({commands:["--version"],format:"utf-8",parser:h1,onError(e,t,r,n){if(e.exitCode===-2)return r(Buffer.from(gc));n(t)}})}}}function h1(e){return e===gc?p1():de(ro(0,0,0,e),rb,e)}var gc,rb,g1=g({"src/lib/tasks/version.ts"(){"use strict";C(),gc="installed=false",rb=[new I(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,r,n,s=""])=>{Object.assign(e,ro(B(t),B(r),B(n),s))}),new I(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,r,n,s=""])=>{Object.assign(e,ro(B(t),B(r),n,s))})]}}),nb={};Z(nb,{SimpleGitApi:()=>za});var za,y1=g({"src/lib/simple-git-api.ts"(){"use strict";vI(),_I(),TI(),kI(),DI(),dy(),NI(),yy(),MI(),GI(),Fy(),r1(),Ky(),a1(),d1(),W(),g1(),C(),za=class{constructor(e){this._executor=e}_runTask(e,t){let r=this._executor.chain(),n=r.push(e);return t&&SI(e,n,t),Object.create(this,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)},_executor:{value:r}})}add(e){return this._runTask(ie(["add",...Ze(e)]),V(arguments))}cwd(e){let t=V(arguments);return typeof e=="string"?this._runTask(sg(e,this._executor),t):typeof e?.path=="string"?this._runTask(sg(e.path,e.root&&this._executor||void 0),t):this._runTask(fe("Git.cwd: workingDirectory must be supplied as a string"),t)}hashObject(e,t){return this._runTask(PI(e,t===!0),V(arguments))}init(e){return this._runTask(UI(e===!0,this._executor.cwd,le(arguments)),V(arguments))}merge(){return this._runTask(gg(le(arguments)),V(arguments))}mergeFromTo(e,t){return te(e)&&te(t)?this._runTask(gg([e,t,...le(arguments)]),V(arguments,!1)):this._runTask(fe("Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings"))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=hc({remote:He(arguments[0],te),branch:He(arguments[1],te)},le(arguments));return this._runTask(e,V(arguments))}stash(){return this._runTask(ie(["stash",...le(arguments)]),V(arguments))}status(){return this._runTask(f1(le(arguments)),V(arguments))}},Object.assign(za.prototype,EI(),$I(),iI(),RI(),LI(),lI(),XI(),i1(),m1())}}),sb={};Z(sb,{Scheduler:()=>ib});var vg,ib,b1=g({"src/lib/runners/scheduler.ts"(){"use strict";C(),vy(),vg=(()=>{let e=0;return()=>{e++;let{promise:t,done:r}=(0,ob.createDeferred)();return{promise:t,done:r,id:e}}})(),ib=class{constructor(e=2){this.concurrency=e,this.logger=ic("","scheduler"),this.pending=[],this.running=[],this.logger("Constructed, concurrency=%s",e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger("Schedule attempt ignored, pending=%s running=%s concurrency=%s",this.pending.length,this.running.length,this.concurrency);return}let e=F(this.running,this.pending.shift());this.logger("Attempting id=%s",e.id),e.done(()=>{this.logger("Completing id=",e.id),io(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=F(this.pending,vg());return this.logger("Scheduling id=%s",t),this.schedule(),e}}}}),ab={};Z(ab,{applyPatchTask:()=>w1});function w1(e,t){return ie(["apply",...t,...e])}var S1=g({"src/lib/tasks/apply-patch.ts"(){"use strict";W()}});function x1(e,t){return{branch:e,hash:t,success:!0}}function v1(e){return{branch:e,hash:null,success:!1}}var cb,_1=g({"src/lib/responses/BranchDeleteSummary.ts"(){"use strict";cb=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function ub(e,t){return t===1&&Wa.test(e)}var _g,Wa,Eg,fo,E1=g({"src/lib/parsers/parse-branch-delete.ts"(){"use strict";_1(),C(),_g=/(\S+)\s+\(\S+\s([^)]+)\)/,Wa=/^error[^']+'([^']+)'/m,Eg=[new I(_g,(e,[t,r])=>{let n=x1(t,r);e.all.push(n),e.branches[t]=n}),new I(Wa,(e,[t])=>{let r=v1(t);e.errors.push(r),e.all.push(r),e.branches[t]=r})],fo=(e,t)=>de(new cb,Eg,[e,t])}}),lb,T1=g({"src/lib/responses/BranchSummary.ts"(){"use strict";lb=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(e,t,r,n,s){e==="*"&&(this.detached=t,this.current=r),this.all.push(r),this.branches[r]={current:e==="*",linkedWorkTree:e==="+",name:r,commit:n,label:s}}}}});function Tg(e){return e?e.charAt(0):""}function fb(e){return de(new lb,db,e)}var db,O1=g({"src/lib/parsers/parse-branch.ts"(){"use strict";T1(),C(),db=[new I(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,r,n,s])=>{e.push(Tg(t),!0,r,n,s)}),new I(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),(e,[t,r,n,s])=>{e.push(Tg(t),!1,r,n,s)})]}}),pb={};Z(pb,{branchLocalTask:()=>k1,branchTask:()=>R1,containsDeleteBranchCommand:()=>mb,deleteBranchTask:()=>A1,deleteBranchesTask:()=>C1});function mb(e){let t=["-d","-D","--delete"];return e.some(r=>t.includes(r))}function R1(e){let t=mb(e),r=["branch",...e];return r.length===1&&r.push("-a"),r.includes("-v")||r.splice(1,0,"-v"),{format:"utf-8",commands:r,parser(n,s){return t?fo(n,s).all[0]:fb(n)}}}function k1(){return{format:"utf-8",commands:["branch","-v"],parser:fb}}function C1(e,t=!1){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(r,n){return fo(r,n)},onError({exitCode:r,stdOut:n},s,o,i){if(!ub(String(s),r))return i(s);o(n)}}}function A1(e,t=!1){let r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(n,s){return fo(n,s).branches[e]},onError({exitCode:n,stdErr:s,stdOut:o},i,a,c){if(!ub(String(i),n))return c(i);throw new cn(r.parser(sn(o),sn(s)),String(i))}};return r}var I1=g({"src/lib/tasks/branch.ts"(){"use strict";_r(),E1(),O1(),C()}}),hb,$1=g({"src/lib/responses/CheckIgnore.ts"(){"use strict";hb=e=>e.split(/\n/g).map(t=>t.trim()).filter(t=>!!t)}}),gb={};Z(gb,{checkIgnoreTask:()=>D1});function D1(e){return{commands:["check-ignore",...e],format:"utf-8",parser:hb}}var L1=g({"src/lib/tasks/check-ignore.ts"(){"use strict";$1()}}),yb={};Z(yb,{cloneMirrorTask:()=>P1,cloneTask:()=>bb});function N1(e){return/^--upload-pack(=|$)/.test(e)}function bb(e,t,r){let n=["clone",...r];return te(e)&&n.push(e),te(t)&&n.push(t),n.find(N1)?fe("git.fetch: potential exploit argument blocked."):ie(n)}function P1(e,t,r){return F(r,"--mirror"),bb(e,t,r)}var M1=g({"src/lib/tasks/clone.ts"(){"use strict";W(),C()}});function F1(e,t){return de({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},wb,[e,t])}var wb,j1=g({"src/lib/parsers/parse-fetch.ts"(){"use strict";C(),wb=[new I(/From (.+)$/,(e,[t])=>{e.remote=t}),new I(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.branches.push({name:t,tracking:r})}),new I(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,r])=>{e.tags.push({name:t,tracking:r})}),new I(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new I(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,r,n,s])=>{e.updated.push({name:n,tracking:s,to:r,from:t})})]}}),Sb={};Z(Sb,{fetchTask:()=>U1});function B1(e){return/^--upload-pack(=|$)/.test(e)}function U1(e,t,r){let n=["fetch",...r];return e&&t&&n.push(e,t),n.find(B1)?fe("git.fetch: potential exploit argument blocked."):{commands:n,format:"utf-8",parser:F1}}var G1=g({"src/lib/tasks/fetch.ts"(){"use strict";j1(),W()}});function q1(e){return de({moves:[]},xb,e)}var xb,V1=g({"src/lib/parsers/parse-move.ts"(){"use strict";C(),xb=[new I(/^Renaming (.+) to (.+)$/,(e,[t,r])=>{e.moves.push({from:t,to:r})})]}}),vb={};Z(vb,{moveTask:()=>z1});function z1(e,t){return{commands:["mv","-v",...Ze(e),t],format:"utf-8",parser:q1}}var W1=g({"src/lib/tasks/move.ts"(){"use strict";V1(),C()}}),_b={};Z(_b,{pullTask:()=>Z1});function Z1(e,t,r){let n=["pull",...r];return e&&t&&n.splice(1,0,e,t),{commands:n,format:"utf-8",parser(s,o){return mc(s,o)},onError(s,o,i,a){let c=e1(sn(s.stdOut),sn(s.stdErr));if(c)return a(new cn(c));a(o)}}}var H1=g({"src/lib/tasks/pull.ts"(){"use strict";_r(),Zy(),C()}});function Y1(e){let t={};return Eb(e,([r])=>t[r]={name:r}),Object.values(t)}function X1(e){let t={};return Eb(e,([r,n,s])=>{t.hasOwnProperty(r)||(t[r]={name:r,refs:{fetch:"",push:""}}),s&&n&&(t[r].refs[s.replace(/[^a-z]/g,"")]=n)}),Object.values(t)}function Eb(e,t){Ha(e,r=>t(r.split(/\s+/)))}var K1=g({"src/lib/responses/GetRemoteSummary.ts"(){"use strict";C()}}),Tb={};Z(Tb,{addRemoteTask:()=>J1,getRemotesTask:()=>Q1,listRemotesTask:()=>e$,remoteTask:()=>t$,removeRemoteTask:()=>r$});function J1(e,t,r){return ie(["remote","add",...r,e,t])}function Q1(e){let t=["remote"];return e&&t.push("-v"),{commands:t,format:"utf-8",parser:e?X1:Y1}}function e$(e){let t=[...e];return t[0]!=="ls-remote"&&t.unshift("ls-remote"),ie(t)}function t$(e){let t=[...e];return t[0]!=="remote"&&t.unshift("remote"),ie(t)}function r$(e){return ie(["remote","remove",e])}var n$=g({"src/lib/tasks/remote.ts"(){"use strict";K1(),W()}}),Ob={};Z(Ob,{stashListTask:()=>s$});function s$(e={},t){let r=My(e),n=["stash","list",...r.commands,...t],s=Dy(r.splitter,r.fields,cc(n));return lo(n)||{commands:n,format:"utf-8",parser:s}}var o$=g({"src/lib/tasks/stash-list.ts"(){"use strict";dn(),Ny(),pc(),Fy()}}),Rb={};Z(Rb,{addSubModuleTask:()=>i$,initSubModuleTask:()=>a$,subModuleTask:()=>po,updateSubModuleTask:()=>c$});function i$(e,t){return po(["add",e,t])}function a$(e){return po(["init",...e])}function po(e){let t=[...e];return t[0]!=="submodule"&&t.unshift("submodule"),ie(t)}function c$(e){return po(["update",...e])}var u$=g({"src/lib/tasks/sub-module.ts"(){"use strict";W()}});function l$(e,t){let r=isNaN(e),n=isNaN(t);return r!==n?r?1:-1:r?kb(e,t):0}function kb(e,t){return e===t?0:e>t?1:-1}function f$(e){return e.trim()}function Hs(e){return typeof e=="string"&&parseInt(e.replace(/^\D+/g,""),10)||0}var Og,Cb,d$=g({"src/lib/responses/TagList.ts"(){"use strict";Og=class{constructor(e,t){this.all=e,this.latest=t}},Cb=function(e,t=!1){let r=e.split(`
|
59
|
-
`).map(f$).filter(Boolean);t||r.sort(function(s,o){let i=s.split("."),a=o.split(".");if(i.length===1||a.length===1)return l$(Hs(i[0]),Hs(a[0]));for(let c=0,u=Math.max(i.length,a.length);c<u;c++){let l=kb(Hs(i[c]),Hs(a[c]));if(l)return l}return 0});let n=t?r[0]:[...r].reverse().find(s=>s.indexOf(".")>=0);return new Og(r,n)}}}),Ab={};Z(Ab,{addAnnotatedTagTask:()=>h$,addTagTask:()=>m$,tagListTask:()=>p$});function p$(e=[]){let t=e.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...e],parser(r){return Cb(r,t)}}}function m$(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}function h$(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}var g$=g({"src/lib/tasks/tag.ts"(){"use strict";d$()}}),y$=DA({"src/git.js"(e,t){"use strict";var{GitExecutor:r}=(wI(),q(_y)),{SimpleGitApi:n}=(y1(),q(nb)),{Scheduler:s}=(b1(),q(sb)),{configurationErrorTask:o}=(W(),q(ja)),{asArray:i,filterArray:a,filterPrimitives:c,filterString:u,filterStringOrStringArray:l,filterType:f,getTrailingOptions:p,trailingFunctionArgument:d,trailingOptionsArgument:b}=(C(),q(Hg)),{applyPatchTask:T}=(S1(),q(ab)),{branchTask:N,branchLocalTask:P,deleteBranchesTask:U,deleteBranchTask:H}=(I1(),q(pb)),{checkIgnoreTask:Y}=(L1(),q(gb)),{checkIsRepoTask:Se}=(Jg(),q(Yg)),{cloneTask:ae,cloneMirrorTask:Ae}=(M1(),q(yb)),{cleanWithOptionsTask:Ie,isCleanOptionsArray:xe}=(uy(),q(ay)),{diffSummaryTask:Er}=(pc(),q(Py)),{fetchTask:ht}=(G1(),q(Sb)),{moveTask:qb}=(W1(),q(vb)),{pullTask:Vb}=(H1(),q(_b)),{pushTagsTask:zb}=(Ky(),q(Xy)),{addRemoteTask:Wb,getRemotesTask:Zb,listRemotesTask:Hb,remoteTask:Yb,removeRemoteTask:Xb}=(n$(),q(Tb)),{getResetMode:Kb,resetTask:Jb}=(xy(),q(by)),{stashListTask:Qb}=(o$(),q(Ob)),{addSubModuleTask:ew,initSubModuleTask:tw,subModuleTask:rw,updateSubModuleTask:nw}=(u$(),q(Rb)),{addAnnotatedTagTask:sw,addTagTask:ow,tagListTask:iw}=(g$(),q(Ab)),{straightThroughBufferTask:aw,straightThroughStringTask:Fe}=(W(),q(ja));function O(h,E){this._plugins=E,this._executor=new r(h.baseDir,new s(h.maxConcurrentProcesses),E),this._trimmed=h.trimmed}(O.prototype=Object.create(n.prototype)).constructor=O,O.prototype.customBinary=function(h){return this._plugins.reconfigure("binary",h),this},O.prototype.env=function(h,E){return arguments.length===1&&typeof h=="object"?this._executor.env=h:(this._executor.env=this._executor.env||{})[h]=E,this},O.prototype.stashList=function(h){return this._runTask(Qb(b(arguments)||{},a(h)&&h||[]),d(arguments))};function xc(h,E,j,re){return typeof j!="string"?o(`git.${h}() requires a string 'repoPath'`):E(j,f(re,u),p(arguments))}O.prototype.clone=function(){return this._runTask(xc("clone",ae,...arguments),d(arguments))},O.prototype.mirror=function(){return this._runTask(xc("mirror",Ae,...arguments),d(arguments))},O.prototype.mv=function(h,E){return this._runTask(qb(h,E),d(arguments))},O.prototype.checkoutLatestTag=function(h){var E=this;return this.pull(function(){E.tags(function(j,re){E.checkout(re.latest,h)})})},O.prototype.pull=function(h,E,j,re){return this._runTask(Vb(f(h,u),f(E,u),p(arguments)),d(arguments))},O.prototype.fetch=function(h,E){return this._runTask(ht(f(h,u),f(E,u),p(arguments)),d(arguments))},O.prototype.silent=function(h){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},O.prototype.tags=function(h,E){return this._runTask(iw(p(arguments)),d(arguments))},O.prototype.rebase=function(){return this._runTask(Fe(["rebase",...p(arguments)]),d(arguments))},O.prototype.reset=function(h){return this._runTask(Jb(Kb(h),p(arguments)),d(arguments))},O.prototype.revert=function(h){let E=d(arguments);return typeof h!="string"?this._runTask(o("Commit must be a string"),E):this._runTask(Fe(["revert",...p(arguments,0,!0),h]),E)},O.prototype.addTag=function(h){let E=typeof h=="string"?ow(h):o("Git.addTag requires a tag name");return this._runTask(E,d(arguments))},O.prototype.addAnnotatedTag=function(h,E){return this._runTask(sw(h,E),d(arguments))},O.prototype.deleteLocalBranch=function(h,E,j){return this._runTask(H(h,typeof E=="boolean"?E:!1),d(arguments))},O.prototype.deleteLocalBranches=function(h,E,j){return this._runTask(U(h,typeof E=="boolean"?E:!1),d(arguments))},O.prototype.branch=function(h,E){return this._runTask(N(p(arguments)),d(arguments))},O.prototype.branchLocal=function(h){return this._runTask(P(),d(arguments))},O.prototype.raw=function(h){let E=!Array.isArray(h),j=[].slice.call(E?arguments:h,0);for(let $e=0;$e<j.length&&E;$e++)if(!c(j[$e])){j.splice($e,j.length-$e);break}j.push(...p(arguments,0,!0));var re=d(arguments);return j.length?this._runTask(Fe(j,this._trimmed),re):this._runTask(o("Raw: must supply one or more command to execute"),re)},O.prototype.submoduleAdd=function(h,E,j){return this._runTask(ew(h,E),d(arguments))},O.prototype.submoduleUpdate=function(h,E){return this._runTask(nw(p(arguments,!0)),d(arguments))},O.prototype.submoduleInit=function(h,E){return this._runTask(tw(p(arguments,!0)),d(arguments))},O.prototype.subModule=function(h,E){return this._runTask(rw(p(arguments)),d(arguments))},O.prototype.listRemote=function(){return this._runTask(Hb(p(arguments)),d(arguments))},O.prototype.addRemote=function(h,E,j){return this._runTask(Wb(h,E,p(arguments)),d(arguments))},O.prototype.removeRemote=function(h,E){return this._runTask(Xb(h),d(arguments))},O.prototype.getRemotes=function(h,E){return this._runTask(Zb(h===!0),d(arguments))},O.prototype.remote=function(h,E){return this._runTask(Yb(p(arguments)),d(arguments))},O.prototype.tag=function(h,E){let j=p(arguments);return j[0]!=="tag"&&j.unshift("tag"),this._runTask(Fe(j),d(arguments))},O.prototype.updateServerInfo=function(h){return this._runTask(Fe(["update-server-info"]),d(arguments))},O.prototype.pushTags=function(h,E){let j=zb({remote:f(h,u)},p(arguments));return this._runTask(j,d(arguments))},O.prototype.rm=function(h){return this._runTask(Fe(["rm","-f",...i(h)]),d(arguments))},O.prototype.rmKeepLocal=function(h){return this._runTask(Fe(["rm","--cached",...i(h)]),d(arguments))},O.prototype.catFile=function(h,E){return this._catFile("utf-8",arguments)},O.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},O.prototype._catFile=function(h,E){var j=d(E),re=["cat-file"],$e=E[0];if(typeof $e=="string")return this._runTask(o("Git.catFile: options must be supplied as an array of strings"),j);Array.isArray($e)&&re.push.apply(re,$e);let bo=h==="buffer"?aw(re):Fe(re);return this._runTask(bo,j)},O.prototype.diff=function(h,E){let j=u(h)?o("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):Fe(["diff",...p(arguments)]);return this._runTask(j,d(arguments))},O.prototype.diffSummary=function(){return this._runTask(Er(p(arguments,1)),d(arguments))},O.prototype.applyPatch=function(h){let E=l(h)?T(i(h),p([].slice.call(arguments,1))):o("git.applyPatch requires one or more string patches as the first argument");return this._runTask(E,d(arguments))},O.prototype.revparse=function(){let h=["rev-parse",...p(arguments,!0)];return this._runTask(Fe(h,!0),d(arguments))},O.prototype.clean=function(h,E,j){let re=xe(h),$e=re&&h.join("")||f(h,u)||"",bo=p([].slice.call(arguments,re?1:0));return this._runTask(Ie($e,bo),d(arguments))},O.prototype.exec=function(h){let E={commands:[],format:"utf-8",parser(){typeof h=="function"&&h()}};return this._runTask(E)},O.prototype.clearQueue=function(){return this},O.prototype.checkIgnore=function(h,E){return this._runTask(Y(i(f(h,l,[]))),d(arguments))},O.prototype.checkIsRepo=function(h,E){return this._runTask(Se(f(h,u)),d(arguments))},t.exports=O}});an();mt();var b$=class extends ot{constructor(e,t){super(void 0,t),this.config=e}};mt();mt();var st=class extends ot{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};_r();Dg();Jg();uy();dy();my();yy();xy();function w$(e){return e?[{type:"spawn.before",action(n,s){e.aborted&&s.kill(new st(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(n,s){function o(){s.kill(new st(void 0,"abort","Abort signal received"))}e.addEventListener("abort",o),s.spawned.on("close",()=>e.removeEventListener("abort",o))}}]:void 0}function S$(e){return typeof e=="string"&&e.trim().toLowerCase()==="-c"}function x$(e,t){if(S$(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new st(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function v$(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new st(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(t==="clone"&&/^\s*-u\b/.test(e))throw new st(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(t==="push"&&/^\s*--exec\b/.test(e))throw new st(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function _$({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action(r,n){return r.forEach((s,o)=>{let i=o<r.length?r[o+1]:"";e||x$(s,i),t||v$(s,n.method)}),r}}}C();function E$(e){let t=nn(e,"-c");return{type:"spawn.args",action(r){return[...t,...r]}}}C();var Rg=(0,xr.deferred)().promise;function T$({onClose:e=!0,onExit:t=50}={}){function r(){let s=-1,o={close:(0,xr.deferred)(),closeTimeout:(0,xr.deferred)(),exit:(0,xr.deferred)(),exitTimeout:(0,xr.deferred)()},i=Promise.race([e===!1?Rg:o.closeTimeout.promise,t===!1?Rg:o.exitTimeout.promise]);return n(e,o.close,o.closeTimeout),n(t,o.exit,o.exitTimeout),{close(a){s=a,o.close.done()},exit(a){s=a,o.exit.done()},get exitCode(){return s},result:i}}function n(s,o,i){s!==!1&&(s===!0?o.promise:o.promise.then(()=>La(s))).then(i.done)}return{type:"spawn.after",action(s,o){return tn(this,arguments,function*(i,{spawned:a,close:c}){var u,l;let f=r(),p=!0,d=()=>void(p=!1);(u=a.stdout)==null||u.on("data",d),(l=a.stderr)==null||l.on("data",d),a.on("error",d),a.on("close",b=>f.close(b)),a.on("exit",b=>f.exit(b));try{yield f.result,p&&(yield La(50)),c(f.exitCode)}catch(b){c(f.exitCode,b)}})}}}C();var O$="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",kg="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function R$(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function Cg(e,t){if(e.length<1||e.length>2)throw new st(void 0,"binary",O$);if(e.some(R$))if(t)console.warn(kg);else throw new st(void 0,"binary",kg);let[n,s]=e;return{binary:n,prefix:s}}function k$(e,t=["git"],r=!1){let n=Cg(Ze(t),r);e.on("binary",s=>{n=Cg(Ze(s),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",s=>n.prefix?[n.prefix,...s]:s)}mt();function C$(e){return!!(e.exitCode&&e.stdErr.length)}function A$(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function I$(e=!1,t=C$,r=A$){return(n,s)=>!e&&n||!t(s)?n:r(s)}function Ag(e){return{type:"task.error",action(t,r){let n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new ot(void 0,n.toString("utf-8"))}:{error:n}}}}C();var D$=class{constructor(){this.plugins=new Set,this.events=new $$}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=F(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return Ze(e).forEach(r=>r&&this.plugins.add(F(t,r))),()=>{t.forEach(r=>this.plugins.delete(r))}}exec(e,t,r){let n=t,s=Object.freeze(Object.create(r));for(let o of this.plugins)o.type===e&&(n=o.action(n,s));return n}};C();function L$(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(o,i){return r.includes(i.method)?jg(o,t):o}},{type:"spawn.after",action(o,i){var a;i.commands.includes(t)&&((a=i.spawned.stderr)==null||a.on("data",c=>{let u=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(c.toString("utf8"));u&&e({method:i.method,stage:N$(u[1]),progress:B(u[2]),processed:B(u[3]),total:B(u[4])})}))}}]}function N$(e){return String(e.toLowerCase().split(" ",1))||"unknown"}C();function P$(e){let t=Gg(e,["uid","gid"]);return{type:"spawn.options",action(r){return Ce(Ce({},t),r)}}}function M$({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,s){var o,i;let a;function c(){a&&clearTimeout(a),a=setTimeout(l,e)}function u(){var f,p;(f=s.spawned.stdout)==null||f.off("data",c),(p=s.spawned.stderr)==null||p.off("data",c),s.spawned.off("exit",u),s.spawned.off("close",u),a&&clearTimeout(a)}function l(){u(),s.kill(new st(void 0,"timeout","block timeout reached"))}r&&((o=s.spawned.stdout)==null||o.on("data",c)),t&&((i=s.spawned.stderr)==null||i.on("data",c)),s.spawned.on("exit",u),s.spawned.on("close",u),c()}}}an();function F$(){return{type:"spawn.args",action(e){let t=[],r;function n(s){(r=r||[]).push(...s)}for(let s=0;s<e.length;s++){let o=e[s];if(Qs(o)){n(eg(o));continue}if(o==="--"){n(e.slice(s+1).flatMap(i=>Qs(i)&&eg(i)||i));break}t.push(o)}return r?[...t,"--",...r.map(String)]:t}}}C();var j$=y$();function B$(e,t){var r;let n=new D$,s=Wg(e&&(typeof e=="string"?{baseDir:e}:e)||{},t);if(!Ya(s.baseDir))throw new b$(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&n.add(E$(s.config)),n.add(_$(s.unsafe)),n.add(F$()),n.add(T$(s.completion)),s.abort&&n.add(w$(s.abort)),s.progress&&n.add(L$(s.progress)),s.timeout&&n.add(M$(s.timeout)),s.spawnOptions&&n.add(P$(s.spawnOptions)),n.add(Ag(I$(!0))),s.errors&&n.add(Ag(s.errors)),k$(n,s.binary,(r=s.unsafe)==null?void 0:r.allowUnsafeCustomBinary),new j$(s,n)}_r();var Ib=B$;async function $b(){let e=Ib();try{let{current:t}=await e.branchLocal(),r=(await e.getRemotes(!0)).map(({name:o,refs:{fetch:i}})=>({name:o,url:i})),n=r.find(({name:o})=>o==="origin")??r[0];return{possibleRepositoryName:n?n.url.split("/").slice(-2).join("/").replace(/\.git$/,""):(await e.revparse(["--show-toplevel"])).split("/").pop(),branch:t,remotes:r}}catch{return null}}var Pb=gt(Nb(),1),bc=Pb.default.bold("@seed-design/codemod"),Mb=e=>({event:t,properties:r})=>console.log(bc,t,r,e);var Fb=Sc(W$(import.meta.filename),"transforms"),jb=Rc(),Bb=z$(import.meta.url),go=Bb("../package.json"),Ub=await $b(),Gb=Mb({...Ub});Z$();jb.version(go.version).help().command("[transformName] [...paths]","\uCF54\uB4DC \uBCC0\uD658 (codemod)").option("-l, --list","\uC0AC\uC6A9 \uAC00\uB2A5\uD55C transform \uBAA9\uB85D\uC744 \uBCF4\uC5EC\uC918\uC694").option("--log","\uB85C\uADF8\uB97C \uD30C\uC77C\uB85C \uC800\uC7A5\uD574\uC694").option("--no-track","\uC0AC\uC6A9 \uD1B5\uACC4\uB97C \uC218\uC9D1\uD558\uC9C0 \uC54A\uC544\uC694").option("-p, --parser <parser>","jscodeshift\uAC00 \uC0AC\uC6A9\uD560 \uD30C\uC11C\uB97C \uC9C0\uC815\uD574\uC694 (babel|babylon|flow|ts|tsx)",{default:"tsx"}).option("--reporter","\uBCC0\uD658 \uACB0\uACFC\uB97C \uD30C\uC77C\uB85C \uC800\uC7A5\uD574\uC694").option("--extensions <extensions>","\uBCC0\uD658\uD560 \uD30C\uC77C \uD655\uC7A5\uC790").option("--ignore-config <ignoreConfig>","Ignore config").example(" $ npx @seed-design/codemod migrate-icons src/ui").action(async(e,t,r)=>{let n=Fh.parse(r);n.track&&Gb?.({event:"\uC2E4\uD589",properties:{transformName:e,paths:t}});let s=Y$();n.list&&(wc(s),process.exit(0)),e||(console.error("transform \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694"),wc(s),process.exit(1)),s.includes(e)||(console.error(`\uC774\uB984\uC774 ${e}\uC778 transform\uC774 \uC5C6\uC5B4\uC694`),wc(s),process.exit(1)),t.length===0&&(console.error("\uD30C\uC77C \uACBD\uB85C\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694"),process.exit(1));let o=Sc(Fb,e,"index.mjs");console.log(bc,`${t.join(", ")}\uC5D0 ${e} transform\uC744 \uC2E4\uD589\uD574\uC694.`),await H$(o,t,n)});jb.parse();function Z$(){(0,yo.satisfies)(process.versions.node,go.engines.node)===!1&&(console.error(`Node.js \uBC84\uC804 \uC694\uAD6C\uC0AC\uD56D\uC744 \uB9CC\uC871\uC2DC\uD0A4\uC9C0 \uC54A\uC544\uC694: "${go.engines.node}"
|
59
|
+
`).map(f$).filter(Boolean);t||r.sort(function(s,o){let i=s.split("."),a=o.split(".");if(i.length===1||a.length===1)return l$(Hs(i[0]),Hs(a[0]));for(let c=0,u=Math.max(i.length,a.length);c<u;c++){let l=kb(Hs(i[c]),Hs(a[c]));if(l)return l}return 0});let n=t?r[0]:[...r].reverse().find(s=>s.indexOf(".")>=0);return new Og(r,n)}}}),Ab={};Z(Ab,{addAnnotatedTagTask:()=>h$,addTagTask:()=>m$,tagListTask:()=>p$});function p$(e=[]){let t=e.some(r=>/^--sort=/.test(r));return{format:"utf-8",commands:["tag","-l",...e],parser(r){return Cb(r,t)}}}function m$(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}function h$(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}var g$=g({"src/lib/tasks/tag.ts"(){"use strict";d$()}}),y$=DA({"src/git.js"(e,t){"use strict";var{GitExecutor:r}=(wI(),q(_y)),{SimpleGitApi:n}=(y1(),q(nb)),{Scheduler:s}=(b1(),q(sb)),{configurationErrorTask:o}=(W(),q(ja)),{asArray:i,filterArray:a,filterPrimitives:c,filterString:u,filterStringOrStringArray:l,filterType:f,getTrailingOptions:p,trailingFunctionArgument:d,trailingOptionsArgument:b}=(C(),q(Hg)),{applyPatchTask:T}=(S1(),q(ab)),{branchTask:N,branchLocalTask:P,deleteBranchesTask:U,deleteBranchTask:H}=(I1(),q(pb)),{checkIgnoreTask:Y}=(L1(),q(gb)),{checkIsRepoTask:Se}=(Jg(),q(Yg)),{cloneTask:ae,cloneMirrorTask:Ae}=(M1(),q(yb)),{cleanWithOptionsTask:Ie,isCleanOptionsArray:xe}=(uy(),q(ay)),{diffSummaryTask:Er}=(pc(),q(Py)),{fetchTask:ht}=(G1(),q(Sb)),{moveTask:qb}=(W1(),q(vb)),{pullTask:Vb}=(H1(),q(_b)),{pushTagsTask:zb}=(Ky(),q(Xy)),{addRemoteTask:Wb,getRemotesTask:Zb,listRemotesTask:Hb,remoteTask:Yb,removeRemoteTask:Xb}=(n$(),q(Tb)),{getResetMode:Kb,resetTask:Jb}=(xy(),q(by)),{stashListTask:Qb}=(o$(),q(Ob)),{addSubModuleTask:ew,initSubModuleTask:tw,subModuleTask:rw,updateSubModuleTask:nw}=(u$(),q(Rb)),{addAnnotatedTagTask:sw,addTagTask:ow,tagListTask:iw}=(g$(),q(Ab)),{straightThroughBufferTask:aw,straightThroughStringTask:Fe}=(W(),q(ja));function O(h,E){this._plugins=E,this._executor=new r(h.baseDir,new s(h.maxConcurrentProcesses),E),this._trimmed=h.trimmed}(O.prototype=Object.create(n.prototype)).constructor=O,O.prototype.customBinary=function(h){return this._plugins.reconfigure("binary",h),this},O.prototype.env=function(h,E){return arguments.length===1&&typeof h=="object"?this._executor.env=h:(this._executor.env=this._executor.env||{})[h]=E,this},O.prototype.stashList=function(h){return this._runTask(Qb(b(arguments)||{},a(h)&&h||[]),d(arguments))};function xc(h,E,j,re){return typeof j!="string"?o(`git.${h}() requires a string 'repoPath'`):E(j,f(re,u),p(arguments))}O.prototype.clone=function(){return this._runTask(xc("clone",ae,...arguments),d(arguments))},O.prototype.mirror=function(){return this._runTask(xc("mirror",Ae,...arguments),d(arguments))},O.prototype.mv=function(h,E){return this._runTask(qb(h,E),d(arguments))},O.prototype.checkoutLatestTag=function(h){var E=this;return this.pull(function(){E.tags(function(j,re){E.checkout(re.latest,h)})})},O.prototype.pull=function(h,E,j,re){return this._runTask(Vb(f(h,u),f(E,u),p(arguments)),d(arguments))},O.prototype.fetch=function(h,E){return this._runTask(ht(f(h,u),f(E,u),p(arguments)),d(arguments))},O.prototype.silent=function(h){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},O.prototype.tags=function(h,E){return this._runTask(iw(p(arguments)),d(arguments))},O.prototype.rebase=function(){return this._runTask(Fe(["rebase",...p(arguments)]),d(arguments))},O.prototype.reset=function(h){return this._runTask(Jb(Kb(h),p(arguments)),d(arguments))},O.prototype.revert=function(h){let E=d(arguments);return typeof h!="string"?this._runTask(o("Commit must be a string"),E):this._runTask(Fe(["revert",...p(arguments,0,!0),h]),E)},O.prototype.addTag=function(h){let E=typeof h=="string"?ow(h):o("Git.addTag requires a tag name");return this._runTask(E,d(arguments))},O.prototype.addAnnotatedTag=function(h,E){return this._runTask(sw(h,E),d(arguments))},O.prototype.deleteLocalBranch=function(h,E,j){return this._runTask(H(h,typeof E=="boolean"?E:!1),d(arguments))},O.prototype.deleteLocalBranches=function(h,E,j){return this._runTask(U(h,typeof E=="boolean"?E:!1),d(arguments))},O.prototype.branch=function(h,E){return this._runTask(N(p(arguments)),d(arguments))},O.prototype.branchLocal=function(h){return this._runTask(P(),d(arguments))},O.prototype.raw=function(h){let E=!Array.isArray(h),j=[].slice.call(E?arguments:h,0);for(let $e=0;$e<j.length&&E;$e++)if(!c(j[$e])){j.splice($e,j.length-$e);break}j.push(...p(arguments,0,!0));var re=d(arguments);return j.length?this._runTask(Fe(j,this._trimmed),re):this._runTask(o("Raw: must supply one or more command to execute"),re)},O.prototype.submoduleAdd=function(h,E,j){return this._runTask(ew(h,E),d(arguments))},O.prototype.submoduleUpdate=function(h,E){return this._runTask(nw(p(arguments,!0)),d(arguments))},O.prototype.submoduleInit=function(h,E){return this._runTask(tw(p(arguments,!0)),d(arguments))},O.prototype.subModule=function(h,E){return this._runTask(rw(p(arguments)),d(arguments))},O.prototype.listRemote=function(){return this._runTask(Hb(p(arguments)),d(arguments))},O.prototype.addRemote=function(h,E,j){return this._runTask(Wb(h,E,p(arguments)),d(arguments))},O.prototype.removeRemote=function(h,E){return this._runTask(Xb(h),d(arguments))},O.prototype.getRemotes=function(h,E){return this._runTask(Zb(h===!0),d(arguments))},O.prototype.remote=function(h,E){return this._runTask(Yb(p(arguments)),d(arguments))},O.prototype.tag=function(h,E){let j=p(arguments);return j[0]!=="tag"&&j.unshift("tag"),this._runTask(Fe(j),d(arguments))},O.prototype.updateServerInfo=function(h){return this._runTask(Fe(["update-server-info"]),d(arguments))},O.prototype.pushTags=function(h,E){let j=zb({remote:f(h,u)},p(arguments));return this._runTask(j,d(arguments))},O.prototype.rm=function(h){return this._runTask(Fe(["rm","-f",...i(h)]),d(arguments))},O.prototype.rmKeepLocal=function(h){return this._runTask(Fe(["rm","--cached",...i(h)]),d(arguments))},O.prototype.catFile=function(h,E){return this._catFile("utf-8",arguments)},O.prototype.binaryCatFile=function(){return this._catFile("buffer",arguments)},O.prototype._catFile=function(h,E){var j=d(E),re=["cat-file"],$e=E[0];if(typeof $e=="string")return this._runTask(o("Git.catFile: options must be supplied as an array of strings"),j);Array.isArray($e)&&re.push.apply(re,$e);let bo=h==="buffer"?aw(re):Fe(re);return this._runTask(bo,j)},O.prototype.diff=function(h,E){let j=u(h)?o("git.diff: supplying options as a single string is no longer supported, switch to an array of strings"):Fe(["diff",...p(arguments)]);return this._runTask(j,d(arguments))},O.prototype.diffSummary=function(){return this._runTask(Er(p(arguments,1)),d(arguments))},O.prototype.applyPatch=function(h){let E=l(h)?T(i(h),p([].slice.call(arguments,1))):o("git.applyPatch requires one or more string patches as the first argument");return this._runTask(E,d(arguments))},O.prototype.revparse=function(){let h=["rev-parse",...p(arguments,!0)];return this._runTask(Fe(h,!0),d(arguments))},O.prototype.clean=function(h,E,j){let re=xe(h),$e=re&&h.join("")||f(h,u)||"",bo=p([].slice.call(arguments,re?1:0));return this._runTask(Ie($e,bo),d(arguments))},O.prototype.exec=function(h){let E={commands:[],format:"utf-8",parser(){typeof h=="function"&&h()}};return this._runTask(E)},O.prototype.clearQueue=function(){return this},O.prototype.checkIgnore=function(h,E){return this._runTask(Y(i(f(h,l,[]))),d(arguments))},O.prototype.checkIsRepo=function(h,E){return this._runTask(Se(f(h,u)),d(arguments))},t.exports=O}});an();mt();var b$=class extends ot{constructor(e,t){super(void 0,t),this.config=e}};mt();mt();var st=class extends ot{constructor(e,t,r){super(e,r),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};_r();Dg();Jg();uy();dy();my();yy();xy();function w$(e){return e?[{type:"spawn.before",action(n,s){e.aborted&&s.kill(new st(void 0,"abort","Abort already signaled"))}},{type:"spawn.after",action(n,s){function o(){s.kill(new st(void 0,"abort","Abort signal received"))}e.addEventListener("abort",o),s.spawned.on("close",()=>e.removeEventListener("abort",o))}}]:void 0}function S$(e){return typeof e=="string"&&e.trim().toLowerCase()==="-c"}function x$(e,t){if(S$(e)&&/^\s*protocol(.[a-z]+)?.allow/.test(t))throw new st(void 0,"unsafe","Configuring protocol.allow is not permitted without enabling allowUnsafeExtProtocol")}function v$(e,t){if(/^\s*--(upload|receive)-pack/.test(e))throw new st(void 0,"unsafe","Use of --upload-pack or --receive-pack is not permitted without enabling allowUnsafePack");if(t==="clone"&&/^\s*-u\b/.test(e))throw new st(void 0,"unsafe","Use of clone with option -u is not permitted without enabling allowUnsafePack");if(t==="push"&&/^\s*--exec\b/.test(e))throw new st(void 0,"unsafe","Use of push with option --exec is not permitted without enabling allowUnsafePack")}function _$({allowUnsafeProtocolOverride:e=!1,allowUnsafePack:t=!1}={}){return{type:"spawn.args",action(r,n){return r.forEach((s,o)=>{let i=o<r.length?r[o+1]:"";e||x$(s,i),t||v$(s,n.method)}),r}}}C();function E$(e){let t=nn(e,"-c");return{type:"spawn.args",action(r){return[...t,...r]}}}C();var Rg=(0,xr.deferred)().promise;function T$({onClose:e=!0,onExit:t=50}={}){function r(){let s=-1,o={close:(0,xr.deferred)(),closeTimeout:(0,xr.deferred)(),exit:(0,xr.deferred)(),exitTimeout:(0,xr.deferred)()},i=Promise.race([e===!1?Rg:o.closeTimeout.promise,t===!1?Rg:o.exitTimeout.promise]);return n(e,o.close,o.closeTimeout),n(t,o.exit,o.exitTimeout),{close(a){s=a,o.close.done()},exit(a){s=a,o.exit.done()},get exitCode(){return s},result:i}}function n(s,o,i){s!==!1&&(s===!0?o.promise:o.promise.then(()=>La(s))).then(i.done)}return{type:"spawn.after",action(s,o){return tn(this,arguments,function*(i,{spawned:a,close:c}){var u,l;let f=r(),p=!0,d=()=>void(p=!1);(u=a.stdout)==null||u.on("data",d),(l=a.stderr)==null||l.on("data",d),a.on("error",d),a.on("close",b=>f.close(b)),a.on("exit",b=>f.exit(b));try{yield f.result,p&&(yield La(50)),c(f.exitCode)}catch(b){c(f.exitCode,b)}})}}}C();var O$="Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings",kg="Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option";function R$(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_-]+)$/i.test(e)}function Cg(e,t){if(e.length<1||e.length>2)throw new st(void 0,"binary",O$);if(e.some(R$))if(t)console.warn(kg);else throw new st(void 0,"binary",kg);let[n,s]=e;return{binary:n,prefix:s}}function k$(e,t=["git"],r=!1){let n=Cg(Ze(t),r);e.on("binary",s=>{n=Cg(Ze(s),r)}),e.append("spawn.binary",()=>n.binary),e.append("spawn.args",s=>n.prefix?[n.prefix,...s]:s)}mt();function C$(e){return!!(e.exitCode&&e.stdErr.length)}function A$(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function I$(e=!1,t=C$,r=A$){return(n,s)=>!e&&n||!t(s)?n:r(s)}function Ag(e){return{type:"task.error",action(t,r){let n=e(t.error,{stdErr:r.stdErr,stdOut:r.stdOut,exitCode:r.exitCode});return Buffer.isBuffer(n)?{error:new ot(void 0,n.toString("utf-8"))}:{error:n}}}}C();var D$=class{constructor(){this.plugins=new Set,this.events=new $$}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let r=F(this.plugins,{type:e,action:t});return()=>this.plugins.delete(r)}add(e){let t=[];return Ze(e).forEach(r=>r&&this.plugins.add(F(t,r))),()=>{t.forEach(r=>this.plugins.delete(r))}}exec(e,t,r){let n=t,s=Object.freeze(Object.create(r));for(let o of this.plugins)o.type===e&&(n=o.action(n,s));return n}};C();function L$(e){let t="--progress",r=["checkout","clone","fetch","pull","push"];return[{type:"spawn.args",action(o,i){return r.includes(i.method)?jg(o,t):o}},{type:"spawn.after",action(o,i){var a;i.commands.includes(t)&&((a=i.spawned.stderr)==null||a.on("data",c=>{let u=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(c.toString("utf8"));u&&e({method:i.method,stage:N$(u[1]),progress:B(u[2]),processed:B(u[3]),total:B(u[4])})}))}}]}function N$(e){return String(e.toLowerCase().split(" ",1))||"unknown"}C();function P$(e){let t=Gg(e,["uid","gid"]);return{type:"spawn.options",action(r){return Ce(Ce({},t),r)}}}function M$({block:e,stdErr:t=!0,stdOut:r=!0}){if(e>0)return{type:"spawn.after",action(n,s){var o,i;let a;function c(){a&&clearTimeout(a),a=setTimeout(l,e)}function u(){var f,p;(f=s.spawned.stdout)==null||f.off("data",c),(p=s.spawned.stderr)==null||p.off("data",c),s.spawned.off("exit",u),s.spawned.off("close",u),a&&clearTimeout(a)}function l(){u(),s.kill(new st(void 0,"timeout","block timeout reached"))}r&&((o=s.spawned.stdout)==null||o.on("data",c)),t&&((i=s.spawned.stderr)==null||i.on("data",c)),s.spawned.on("exit",u),s.spawned.on("close",u),c()}}}an();function F$(){return{type:"spawn.args",action(e){let t=[],r;function n(s){(r=r||[]).push(...s)}for(let s=0;s<e.length;s++){let o=e[s];if(Qs(o)){n(eg(o));continue}if(o==="--"){n(e.slice(s+1).flatMap(i=>Qs(i)&&eg(i)||i));break}t.push(o)}return r?[...t,"--",...r.map(String)]:t}}}C();var j$=y$();function B$(e,t){var r;let n=new D$,s=Wg(e&&(typeof e=="string"?{baseDir:e}:e)||{},t);if(!Ya(s.baseDir))throw new b$(s,"Cannot use simple-git on a directory that does not exist");return Array.isArray(s.config)&&n.add(E$(s.config)),n.add(_$(s.unsafe)),n.add(F$()),n.add(T$(s.completion)),s.abort&&n.add(w$(s.abort)),s.progress&&n.add(L$(s.progress)),s.timeout&&n.add(M$(s.timeout)),s.spawnOptions&&n.add(P$(s.spawnOptions)),n.add(Ag(I$(!0))),s.errors&&n.add(Ag(s.errors)),k$(n,s.binary,(r=s.unsafe)==null?void 0:r.allowUnsafeCustomBinary),new j$(s,n)}_r();var Ib=B$;async function $b(){let e=Ib();try{let{current:t}=await e.branchLocal(),r=(await e.getRemotes(!0)).map(({name:o,refs:{fetch:i}})=>({name:o,url:i})),n=r.find(({name:o})=>o==="origin")??r[0];return{possibleRepositoryName:n?n.url.split("/").slice(-2).join("/").replace(/\.git$/,""):(await e.revparse(["--show-toplevel"])).split("/").pop(),branch:t,remotes:r}}catch{return null}}var Pb=gt(Nb(),1),bc=Pb.default.bold("@seed-design/codemod"),Mb=e=>({event:t,properties:r})=>console.log(bc,t,r,e);var Fb=Sc(W$(import.meta.filename),"transforms"),jb=Rc(),Bb=z$(import.meta.url),go=Bb("../package.json"),Ub=await $b(),Gb=Mb({...Ub});Z$();jb.version(go.version).help().command("[transformName] [...paths]","\uCF54\uB4DC \uBCC0\uD658 (codemod)").option("-l, --list","\uC0AC\uC6A9 \uAC00\uB2A5\uD55C transform \uBAA9\uB85D\uC744 \uBCF4\uC5EC\uC918\uC694").option("--log","\uB85C\uADF8\uB97C \uD30C\uC77C\uB85C \uC800\uC7A5\uD574\uC694").option("--no-track","\uC0AC\uC6A9 \uD1B5\uACC4\uB97C \uC218\uC9D1\uD558\uC9C0 \uC54A\uC544\uC694").option("-p, --parser <parser>","jscodeshift\uAC00 \uC0AC\uC6A9\uD560 \uD30C\uC11C\uB97C \uC9C0\uC815\uD574\uC694 (babel|babylon|flow|ts|tsx)",{default:"tsx"}).option("--reporter","\uBCC0\uD658 \uACB0\uACFC\uB97C \uD30C\uC77C\uB85C \uC800\uC7A5\uD574\uC694").option("--extensions <extensions>","\uBCC0\uD658\uD560 \uD30C\uC77C \uD655\uC7A5\uC790").option("--ignore-config <ignoreConfig>","Ignore config").example(" $ npx @seed-design/codemod migrate-icons src/ui").action(async(e,t,r)=>{let n=Fh.parse(r);n.track&&Gb?.({event:"\uC2E4\uD589",properties:{transformName:e,paths:t}});let s=Y$();n.list&&(wc(s),process.exit(0)),e||(console.error("transform \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694"),wc(s),process.exit(1)),s.includes(e)||(console.error(`\uC774\uB984\uC774 ${e}\uC778 transform\uC774 \uC5C6\uC5B4\uC694`),wc(s),process.exit(1)),t.length===0&&(console.error("\uD30C\uC77C \uACBD\uB85C\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694"),process.exit(1));let o=Sc(Fb,e,"index.mjs");console.log(bc,`${t.join(", ")}\uC5D0 ${e} transform\uC744 \uC2E4\uD589\uD574\uC694.`),await H$(o,e,t,n)});jb.parse();function Z$(){(0,yo.satisfies)(process.versions.node,go.engines.node)===!1&&(console.error(`Node.js \uBC84\uC804 \uC694\uAD6C\uC0AC\uD56D\uC744 \uB9CC\uC871\uC2DC\uD0A4\uC9C0 \uC54A\uC544\uC694: "${go.engines.node}"
|
60
60
|
Node.js \uBC84\uC804\uC744 \uC5C5\uADF8\uB808\uC774\uB4DC\uD574\uC8FC\uC138\uC694.
|
61
61
|
\uD604\uC7AC \uBC84\uC804: ${process.versions.node}
|
62
62
|
|
63
|
-
$ nvm install ${(0,yo.minVersion)(go.engines.node)}`),process.exit(1))}async function H$(e,t,r){let{log:
|
64
|
-
${
|
63
|
+
$ nvm install ${(0,yo.minVersion)(go.engines.node)}`),process.exit(1))}async function H$(e,t,r,n){let{log:s,parser:o,extensions:i,ignoreConfig:a,reporter:c,track:u}=n,l=Bb.resolve("jscodeshift/bin/jscodeshift"),p=r.map(d=>Sc(process.cwd(),d)).join(" ");if(t==="replace-css-color-variable"){(await import(e)).processCssFiles(r,n);return}u&&Gb?.({event:"transform \uC2E4\uD589",properties:{transformPath:e,fixedPathsCombined:p,options:n}}),await Dp({stdout:"inherit",env:{LOG:`${s}`,TRACK:`${u}`,GIT_INFO:JSON.stringify(Ub)}})`
|
64
|
+
${l} ${p}
|
65
65
|
-t ${e}
|
66
|
-
--parser=${
|
66
|
+
--parser=${o}
|
67
67
|
--ignore-pattern=**/*.d.ts
|
68
|
-
${
|
69
|
-
${
|
70
|
-
${
|
68
|
+
${c?`--reporter=${c}`:""}
|
69
|
+
${i?`--extensions=${i}`:""}
|
70
|
+
${a?`--ignore-config=${a}`:""}`}function Y$(){return V$(Fb)}function wc(e){console.log(`
|
71
71
|
\uC0AC\uC6A9 \uAC00\uB2A5\uD55C transform \uBAA9\uB85D:
|
72
72
|
`,e.join(`
|
73
73
|
`))}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
var Ls=Object.create;var br=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var Fs=Object.getOwnPropertyNames;var Es=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty;var Le=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var y=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ks=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Fs(e))!Ts.call(o,r)&&r!==t&&br(o,r,{get:()=>e[r],enumerable:!(i=Rs(e,r))||i.enumerable});return o};var Sr=(o,e,t)=>(t=o!=null?Ls(Es(o)):{},ks(e||!o||!o.__esModule?br(t,"default",{value:o,enumerable:!0}):t,o));var vi=y((cu,mi)=>{var kt=process||{},Cr=kt.argv||[],Tt=kt.env||{},As=!(Tt.NO_COLOR||Cr.includes("--no-color"))&&(!!Tt.FORCE_COLOR||Cr.includes("--color")||kt.platform==="win32"||(kt.stdout||{}).isTTY&&Tt.TERM!=="dumb"||!!Tt.CI),_s=(o,e,t=o)=>i=>{let r=""+i,n=r.indexOf(e,o.length);return~n?o+$s(r,e,t,n)+e:o+r+e},$s=(o,e,t,i)=>{let r="",n=0;do r+=o.substring(n,i)+t,n=i+e.length,i=o.indexOf(e,n);while(~i);return r+o.substring(n)},Lr=(o=As)=>{let e=o?_s:()=>String;return{isColorSupported:o,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};mi.exports=Lr();mi.exports.createColors=Lr});var xi=y((uu,Fr)=>{"use strict";var At=/[\t\n\f\r "#'()/;[\\\]{}]/g,_t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ms=/.[\r\n"'(/\\]/,Rr=/[\da-f]/i;Fr.exports=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,n,s,a,l,c,u,p,h,f,m,d=i.length,g=0,v=[],I=[];function b(){return g}function w(z){throw e.error("Unclosed "+z,g)}function S(){return I.length===0&&g>=d}function R(z){if(I.length)return I.pop();if(g>=d)return;let N=z?z.ignoreUnclosed:!1;switch(n=i.charCodeAt(g),n){case 10:case 32:case 9:case 13:case 12:{l=g;do l+=1,n=i.charCodeAt(l);while(n===32||n===10||n===9||n===13||n===12);u=["space",i.slice(g,l)],g=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let xe=String.fromCharCode(n);u=[xe,xe,g];break}case 40:{if(m=v.length?v.pop()[1]:"",f=i.charCodeAt(g+1),m==="url"&&f!==39&&f!==34&&f!==32&&f!==10&&f!==9&&f!==12&&f!==13){l=g;do{if(p=!1,l=i.indexOf(")",l+1),l===-1)if(r||N){l=g;break}else w("bracket");for(h=l;i.charCodeAt(h-1)===92;)h-=1,p=!p}while(p);u=["brackets",i.slice(g,l+1),g,l],g=l}else l=i.indexOf(")",g+1),s=i.slice(g,l+1),l===-1||Ms.test(s)?u=["(","(",g]:(u=["brackets",s,g,l],g=l);break}case 39:case 34:{c=n===39?"'":'"',l=g;do{if(p=!1,l=i.indexOf(c,l+1),l===-1)if(r||N){l=g+1;break}else w("string");for(h=l;i.charCodeAt(h-1)===92;)h-=1,p=!p}while(p);u=["string",i.slice(g,l+1),g,l],g=l;break}case 64:{At.lastIndex=g+1,At.test(i),At.lastIndex===0?l=i.length-1:l=At.lastIndex-2,u=["at-word",i.slice(g,l+1),g,l],g=l;break}case 92:{for(l=g,a=!0;i.charCodeAt(l+1)===92;)l+=1,a=!a;if(n=i.charCodeAt(l+1),a&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(l+=1,Rr.test(i.charAt(l)))){for(;Rr.test(i.charAt(l+1));)l+=1;i.charCodeAt(l+1)===32&&(l+=1)}u=["word",i.slice(g,l+1),g,l],g=l;break}default:{n===47&&i.charCodeAt(g+1)===42?(l=i.indexOf("*/",g+2)+1,l===0&&(r||N?l=i.length:w("comment")),u=["comment",i.slice(g,l+1),g,l],g=l):(_t.lastIndex=g+1,_t.test(i),_t.lastIndex===0?l=i.length-1:l=_t.lastIndex-2,u=["word",i.slice(g,l+1),g,l],v.push(u),g=l);break}}return g++,u}function H(z){I.push(z)}return{back:H,endOfFile:S,nextToken:R,position:b}}});var Ii=y((hu,kr)=>{"use strict";var B=vi(),Os=xi(),Er;function Ps(o){Er=o}var Ds={";":B.yellow,":":B.yellow,"(":B.cyan,")":B.cyan,"[":B.yellow,"]":B.yellow,"{":B.yellow,"}":B.yellow,"at-word":B.cyan,brackets:B.cyan,call:B.cyan,class:B.yellow,comment:B.gray,hash:B.magenta,string:B.green};function Ns([o,e],t){if(o==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!t.endOfFile()){let i=t.nextToken();if(t.back(i),i[0]==="brackets"||i[0]==="(")return"call"}return o}function Tr(o){let e=Os(new Er(o),{ignoreErrors:!0}),t="";for(;!e.endOfFile();){let i=e.nextToken(),r=Ds[Ns(i,e)];r?t+=i[1].split(/\r?\n/).map(n=>r(n)).join(`
|
2
|
+
`):t+=i[1]}return t}Tr.registerInput=Ps;kr.exports=Tr});var $t=y((pu,$r)=>{"use strict";var Ar=vi(),_r=Ii(),Ge=class o extends Error{constructor(e,t,i,r,n,s){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),r&&(this.source=r),s&&(this.plugin=s),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ar.isColorSupported);let i=u=>u,r=u=>u,n=u=>u;if(e){let{bold:u,gray:p,red:h}=Ar.createColors(!0);r=f=>u(h(f)),i=f=>p(f),_r&&(n=f=>_r(f))}let s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;return s.slice(a,l).map((u,p)=>{let h=a+1+p,f=" "+(" "+h).slice(-c)+" | ";if(h===this.line){if(u.length>160){let d=20,g=Math.max(0,this.column-d),v=Math.max(this.column+d,this.endColumn+d),I=u.slice(g,v),b=i(f.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,d-1)).replace(/[^\t]/g," ");return r(">")+i(f)+n(I)+`
|
3
|
+
`+b+r("^")}let m=i(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+i(f)+n(u)+`
|
4
|
+
`+m+r("^")}return" "+i(f)+n(u)}).join(`
|
5
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
6
|
+
|
7
|
+
`+e+`
|
8
|
+
`),this.name+": "+this.message+e}};$r.exports=Ge;Ge.default=Ge});var wi=y((fu,Or)=>{"use strict";var Mr={after:`
|
9
|
+
`,beforeClose:`
|
10
|
+
`,beforeComment:`
|
11
|
+
`,beforeDecl:`
|
12
|
+
`,beforeOpen:" ",beforeRule:`
|
13
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Bs(o){return o[0].toUpperCase()+o.slice(1)}var qe=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:r&&(i+=" "),e.nodes)this.block(e,i+r);else{let n=(e.raws.between||"")+(t?";":"");this.builder(i+r+n,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&r.type!=="root";)n+=1,r=r.parent;if(i.includes(`
|
14
|
+
`)){let s=this.raw(e,null,"indent");if(s.length)for(let a=0;a<n;a++)i+=s}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let n=e.nodes[r],s=this.raw(n,"before");s&&this.builder(s),this.stringify(n,t!==r||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),r=e.prop+i+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let r;if(i||(i=t),t&&(r=e.raws[t],typeof r<"u"))return r;let n=e.parent;if(i==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Mr[i];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[i]<"u")return s.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let a="raw"+Bs(i);this[a]?r=this[a](s,e):s.walk(l=>{if(r=l.raws[t],typeof r<"u")return!1})}return typeof r>"u"&&(r=Mr[i]),s.rawCache[i]=r,r}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
|
15
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(r=>{if(typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
|
16
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(r=>{if(typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
|
17
|
+
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
|
18
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let r=i.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof i.raws.before<"u"){let n=i.raws.before.split(`
|
19
|
+
`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],r=e.raws[t];return r&&r.value===i?r.raw:i}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};Or.exports=qe;qe.default=qe});var Ve=y((du,Pr)=>{"use strict";var Us=wi();function yi(o,e){new Us(e).stringify(o)}Pr.exports=yi;yi.default=yi});var Mt=y((gu,bi)=>{"use strict";bi.exports.isClean=Symbol("isClean");bi.exports.my=Symbol("my")});var Je=y((mu,Dr)=>{"use strict";var Ws=$t(),zs=wi(),Hs=Ve(),{isClean:Qe,my:js}=Mt();function Si(o,e){let t=new o.constructor;for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i)||i==="proxyCache")continue;let r=o[i],n=typeof r;i==="parent"&&n==="object"?e&&(t[i]=e):i==="source"?t[i]=r:Array.isArray(r)?t[i]=r.map(s=>Si(s,t)):(n==="object"&&r!==null&&(r=Si(r)),t[i]=r)}return t}function Ke(o,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,i=1,r=0;for(let n=0;n<o.length;n++){if(i===e.line&&t===e.column){r=n;break}o[n]===`
|
20
|
+
`?(t=1,i+=1):t+=1}return r}var Ye=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Qe]=!1,this[js]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Si(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new Ws(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Qe]=!0}markDirty(){if(this[Qe]){this[Qe]=!1;let e=this;for(;e=e.parent;)e[Qe]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(Ke(i,this.source.start),Ke(i,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,n=Ke(r,this.source.start),s=n+e;for(let a=n;a<s;a++)r[a]===`
|
21
|
+
`?(t=1,i+=1):t+=1;return{column:t,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(Ke(r,this.source.start),Ke(r,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s),i=this.positionInside(s+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new zs().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=t==null;t=t||new Map;let n=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))i[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)i[s]=a.toJSON(null,t);else if(s==="source"){let l=t.get(a.input);l==null&&(l=n,t.set(a.input,n),n++),i[s]={end:a.end,inputId:l,start:a.start}}else i[s]=a}return r&&(i.inputs=[...t.keys()].map(s=>s.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hs){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let r={node:this};for(let n in i)r[n]=i[n];return e.warn(t,r)}};Dr.exports=Ye;Ye.default=Ye});var Ze=y((vu,Nr)=>{"use strict";var Gs=Je(),Xe=class extends Gs{constructor(e){super(e),this.type="comment"}};Nr.exports=Xe;Xe.default=Xe});var tt=y((xu,Br)=>{"use strict";var qs=Je(),et=class extends qs{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Br.exports=et;et.default=et});var pe=y((Iu,Qr)=>{"use strict";var Ur=Ze(),Wr=tt(),Vs=Je(),{isClean:zr,my:Hr}=Mt(),Ci,jr,Gr,Li;function qr(o){return o.map(e=>(e.nodes&&(e.nodes=qr(e.nodes)),delete e.source,e))}function Vr(o){if(o[zr]=!1,o.proxyOf.nodes)for(let e of o.proxyOf.nodes)Vr(e)}var J=class o extends Vs{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(n,s)=>r(n.toProxy(),s):r)):t==="every"||t==="some"?i=>e[t]((r,...n)=>i(r.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let s of r)this.proxyOf.nodes.splice(i+1,0,s);let n;for(let s in this.indexes)n=this.indexes[s],i<n&&(this.indexes[s]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let a of n)this.proxyOf.nodes.splice(i,0,a);let s;for(let a in this.indexes)s=this.indexes[a],i<=s&&(this.indexes[a]=s+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=qr(jr(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Wr(e)]}else if(e.selector||e.selectors)e=[new Li(e)];else if(e.name)e=[new Ci(e)];else if(e.text)e=[new Ur(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Hr]||o.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[zr]&&Vr(r),r.raws||(r.raws={}),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(n){throw t.addToError(n)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}};J.registerParse=o=>{jr=o};J.registerRule=o=>{Li=o};J.registerAtRule=o=>{Ci=o};J.registerRoot=o=>{Gr=o};Qr.exports=J;J.default=J;J.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,Ci.prototype):o.type==="rule"?Object.setPrototypeOf(o,Li.prototype):o.type==="decl"?Object.setPrototypeOf(o,Wr.prototype):o.type==="comment"?Object.setPrototypeOf(o,Ur.prototype):o.type==="root"&&Object.setPrototypeOf(o,Gr.prototype),o[Hr]=!0,o.nodes&&o.nodes.forEach(e=>{J.rebuild(e)})}});var Ot=y((wu,Yr)=>{"use strict";var Kr=pe(),Re=class extends Kr{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Yr.exports=Re;Re.default=Re;Kr.registerAtRule(Re)});var Pt=y((yu,Zr)=>{"use strict";var Qs=pe(),Jr,Xr,Ie=class extends Qs{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Jr(new Xr,this,e).stringify()}};Ie.registerLazyResult=o=>{Jr=o};Ie.registerProcessor=o=>{Xr=o};Zr.exports=Ie;Ie.default=Ie});var tn=y((bu,en)=>{var Ks="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ys=(o,e=21)=>(t=e)=>{let i="",r=t|0;for(;r--;)i+=o[Math.random()*o.length|0];return i},Js=(o=21)=>{let e="",t=o|0;for(;t--;)e+=Ks[Math.random()*64|0];return e};en.exports={nanoid:Js,customAlphabet:Ys}});var nn=y(Ri=>{var rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ri.encode=function(o){if(0<=o&&o<rn.length)return rn[o];throw new TypeError("Must be between 0 and 63: "+o)};Ri.decode=function(o){var e=65,t=90,i=97,r=122,n=48,s=57,a=43,l=47,c=26,u=52;return e<=o&&o<=t?o-e:i<=o&&o<=r?o-i+c:n<=o&&o<=s?o-n+u:o==a?62:o==l?63:-1}});var Ti=y(Ei=>{var on=nn(),Fi=5,sn=1<<Fi,ln=sn-1,an=sn;function Xs(o){return o<0?(-o<<1)+1:(o<<1)+0}function Zs(o){var e=(o&1)===1,t=o>>1;return e?-t:t}Ei.encode=function(e){var t="",i,r=Xs(e);do i=r&ln,r>>>=Fi,r>0&&(i|=an),t+=on.encode(i);while(r>0);return t};Ei.decode=function(e,t,i){var r=e.length,n=0,s=0,a,l;do{if(t>=r)throw new Error("Expected more digits in base 64 VLQ value.");if(l=on.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&an),l&=ln,n=n+(l<<s),s+=Fi}while(a);i.value=Zs(n),i.rest=t}});var Ee=y(k=>{function el(o,e,t){if(e in o)return o[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}k.getArg=el;var cn=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,tl=/^data:.+\,.+$/;function it(o){var e=o.match(cn);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}k.urlParse=it;function Fe(o){var e="";return o.scheme&&(e+=o.scheme+":"),e+="//",o.auth&&(e+=o.auth+"@"),o.host&&(e+=o.host),o.port&&(e+=":"+o.port),o.path&&(e+=o.path),e}k.urlGenerate=Fe;var il=32;function rl(o){var e=[];return function(t){for(var i=0;i<e.length;i++)if(e[i].input===t){var r=e[0];return e[0]=e[i],e[i]=r,e[0].result}var n=o(t);return e.unshift({input:t,result:n}),e.length>il&&e.pop(),n}}var ki=rl(function(e){var t=e,i=it(e);if(i){if(!i.path)return e;t=i.path}for(var r=k.isAbsolute(t),n=[],s=0,a=0;;)if(s=a,a=t.indexOf("/",s),a===-1){n.push(t.slice(s));break}else for(n.push(t.slice(s,a));a<t.length&&t[a]==="/";)a++;for(var l,c=0,a=n.length-1;a>=0;a--)l=n[a],l==="."?n.splice(a,1):l===".."?c++:c>0&&(l===""?(n.splice(a+1,c),c=0):(n.splice(a,2),c--));return t=n.join("/"),t===""&&(t=r?"/":"."),i?(i.path=t,Fe(i)):t});k.normalize=ki;function un(o,e){o===""&&(o="."),e===""&&(e=".");var t=it(e),i=it(o);if(i&&(o=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),Fe(t);if(t||e.match(tl))return e;if(i&&!i.host&&!i.path)return i.host=e,Fe(i);var r=e.charAt(0)==="/"?e:ki(o.replace(/\/+$/,"")+"/"+e);return i?(i.path=r,Fe(i)):r}k.join=un;k.isAbsolute=function(o){return o.charAt(0)==="/"||cn.test(o)};function nl(o,e){o===""&&(o="."),o=o.replace(/\/$/,"");for(var t=0;e.indexOf(o+"/")!==0;){var i=o.lastIndexOf("/");if(i<0||(o=o.slice(0,i),o.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(o.length+1)}k.relative=nl;var hn=function(){var o=Object.create(null);return!("__proto__"in o)}();function pn(o){return o}function ol(o){return fn(o)?"$"+o:o}k.toSetString=hn?pn:ol;function sl(o){return fn(o)?o.slice(1):o}k.fromSetString=hn?pn:sl;function fn(o){if(!o)return!1;var e=o.length;if(e<9||o.charCodeAt(e-1)!==95||o.charCodeAt(e-2)!==95||o.charCodeAt(e-3)!==111||o.charCodeAt(e-4)!==116||o.charCodeAt(e-5)!==111||o.charCodeAt(e-6)!==114||o.charCodeAt(e-7)!==112||o.charCodeAt(e-8)!==95||o.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(o.charCodeAt(t)!==36)return!1;return!0}function ll(o,e,t){var i=se(o.source,e.source);return i!==0||(i=o.originalLine-e.originalLine,i!==0)||(i=o.originalColumn-e.originalColumn,i!==0||t)||(i=o.generatedColumn-e.generatedColumn,i!==0)||(i=o.generatedLine-e.generatedLine,i!==0)?i:se(o.name,e.name)}k.compareByOriginalPositions=ll;function al(o,e,t){var i;return i=o.originalLine-e.originalLine,i!==0||(i=o.originalColumn-e.originalColumn,i!==0||t)||(i=o.generatedColumn-e.generatedColumn,i!==0)||(i=o.generatedLine-e.generatedLine,i!==0)?i:se(o.name,e.name)}k.compareByOriginalPositionsNoSource=al;function cl(o,e,t){var i=o.generatedLine-e.generatedLine;return i!==0||(i=o.generatedColumn-e.generatedColumn,i!==0||t)||(i=se(o.source,e.source),i!==0)||(i=o.originalLine-e.originalLine,i!==0)||(i=o.originalColumn-e.originalColumn,i!==0)?i:se(o.name,e.name)}k.compareByGeneratedPositionsDeflated=cl;function ul(o,e,t){var i=o.generatedColumn-e.generatedColumn;return i!==0||t||(i=se(o.source,e.source),i!==0)||(i=o.originalLine-e.originalLine,i!==0)||(i=o.originalColumn-e.originalColumn,i!==0)?i:se(o.name,e.name)}k.compareByGeneratedPositionsDeflatedNoLine=ul;function se(o,e){return o===e?0:o===null?1:e===null?-1:o>e?1:-1}function hl(o,e){var t=o.generatedLine-e.generatedLine;return t!==0||(t=o.generatedColumn-e.generatedColumn,t!==0)||(t=se(o.source,e.source),t!==0)||(t=o.originalLine-e.originalLine,t!==0)||(t=o.originalColumn-e.originalColumn,t!==0)?t:se(o.name,e.name)}k.compareByGeneratedPositionsInflated=hl;function pl(o){return JSON.parse(o.replace(/^\)]}'[^\n]*\n/,""))}k.parseSourceMapInput=pl;function fl(o,e,t){if(e=e||"",o&&(o[o.length-1]!=="/"&&e[0]!=="/"&&(o+="/"),e=o+e),t){var i=it(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var r=i.path.lastIndexOf("/");r>=0&&(i.path=i.path.substring(0,r+1))}e=un(Fe(i),e)}return ki(e)}k.computeSourceURL=fl});var $i=y(dn=>{var Ai=Ee(),_i=Object.prototype.hasOwnProperty,we=typeof Map<"u";function le(){this._array=[],this._set=we?new Map:Object.create(null)}le.fromArray=function(e,t){for(var i=new le,r=0,n=e.length;r<n;r++)i.add(e[r],t);return i};le.prototype.size=function(){return we?this._set.size:Object.getOwnPropertyNames(this._set).length};le.prototype.add=function(e,t){var i=we?e:Ai.toSetString(e),r=we?this.has(e):_i.call(this._set,i),n=this._array.length;(!r||t)&&this._array.push(e),r||(we?this._set.set(e,n):this._set[i]=n)};le.prototype.has=function(e){if(we)return this._set.has(e);var t=Ai.toSetString(e);return _i.call(this._set,t)};le.prototype.indexOf=function(e){if(we){var t=this._set.get(e);if(t>=0)return t}else{var i=Ai.toSetString(e);if(_i.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')};le.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};le.prototype.toArray=function(){return this._array.slice()};dn.ArraySet=le});var vn=y(mn=>{var gn=Ee();function dl(o,e){var t=o.generatedLine,i=e.generatedLine,r=o.generatedColumn,n=e.generatedColumn;return i>t||i==t&&n>=r||gn.compareByGeneratedPositionsInflated(o,e)<=0}function Dt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Dt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};Dt.prototype.add=function(e){dl(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Dt.prototype.toArray=function(){return this._sorted||(this._array.sort(gn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};mn.MappingList=Dt});var Mi=y(xn=>{var rt=Ti(),E=Ee(),Nt=$i().ArraySet,gl=vn().MappingList;function V(o){o||(o={}),this._file=E.getArg(o,"file",null),this._sourceRoot=E.getArg(o,"sourceRoot",null),this._skipValidation=E.getArg(o,"skipValidation",!1),this._ignoreInvalidMapping=E.getArg(o,"ignoreInvalidMapping",!1),this._sources=new Nt,this._names=new Nt,this._mappings=new gl,this._sourcesContents=null}V.prototype._version=3;V.fromSourceMap=function(e,t){var i=e.sourceRoot,r=new V(Object.assign(t||{},{file:e.file,sourceRoot:i}));return e.eachMapping(function(n){var s={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(s.source=n.source,i!=null&&(s.source=E.relative(i,s.source)),s.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(s.name=n.name)),r.addMapping(s)}),e.sources.forEach(function(n){var s=n;i!==null&&(s=E.relative(i,n)),r._sources.has(s)||r._sources.add(s);var a=e.sourceContentFor(n);a!=null&&r.setSourceContent(n,a)}),r};V.prototype.addMapping=function(e){var t=E.getArg(e,"generated"),i=E.getArg(e,"original",null),r=E.getArg(e,"source",null),n=E.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,i,r,n)===!1||(r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),n!=null&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:r,name:n}))};V.prototype.setSourceContent=function(e,t){var i=e;this._sourceRoot!=null&&(i=E.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[E.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[E.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};V.prototype.applySourceMap=function(e,t,i){var r=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}var n=this._sourceRoot;n!=null&&(r=E.relative(n,r));var s=new Nt,a=new Nt;this._mappings.unsortedForEach(function(l){if(l.source===r&&l.originalLine!=null){var c=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,i!=null&&(l.source=E.join(i,l.source)),n!=null&&(l.source=E.relative(n,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var u=l.source;u!=null&&!s.has(u)&&s.add(u);var p=l.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=s,this._names=a,e.sources.forEach(function(l){var c=e.sourceContentFor(l);c!=null&&(i!=null&&(l=E.join(i,l)),n!=null&&(l=E.relative(n,l)),this.setSourceContent(l,c))},this)};V.prototype._validateMapping=function(e,t,i,r){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var n="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(n),!1;throw new Error(n)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!i&&!r)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&i)return;var n="Invalid mapping: "+JSON.stringify({generated:e,source:i,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(n),!1;throw new Error(n)}};V.prototype._serializeMappings=function(){for(var e=0,t=1,i=0,r=0,n=0,s=0,a="",l,c,u,p,h=this._mappings.toArray(),f=0,m=h.length;f<m;f++){if(c=h[f],l="",c.generatedLine!==t)for(e=0;c.generatedLine!==t;)l+=";",t++;else if(f>0){if(!E.compareByGeneratedPositionsInflated(c,h[f-1]))continue;l+=","}l+=rt.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(p=this._sources.indexOf(c.source),l+=rt.encode(p-s),s=p,l+=rt.encode(c.originalLine-1-r),r=c.originalLine-1,l+=rt.encode(c.originalColumn-i),i=c.originalColumn,c.name!=null&&(u=this._names.indexOf(c.name),l+=rt.encode(u-n),n=u)),a+=l}return a};V.prototype._generateSourcesContent=function(e,t){return e.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=E.relative(t,i));var r=E.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};V.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};V.prototype.toString=function(){return JSON.stringify(this.toJSON())};xn.SourceMapGenerator=V});var In=y(ye=>{ye.GREATEST_LOWER_BOUND=1;ye.LEAST_UPPER_BOUND=2;function Oi(o,e,t,i,r,n){var s=Math.floor((e-o)/2)+o,a=r(t,i[s],!0);return a===0?s:a>0?e-s>1?Oi(s,e,t,i,r,n):n==ye.LEAST_UPPER_BOUND?e<i.length?e:-1:s:s-o>1?Oi(o,s,t,i,r,n):n==ye.LEAST_UPPER_BOUND?s:o<0?-1:o}ye.search=function(e,t,i,r){if(t.length===0)return-1;var n=Oi(-1,t.length,e,t,i,r||ye.GREATEST_LOWER_BOUND);if(n<0)return-1;for(;n-1>=0&&i(t[n],t[n-1],!0)===0;)--n;return n}});var bn=y(yn=>{function ml(o){function e(r,n,s){var a=r[n];r[n]=r[s],r[s]=a}function t(r,n){return Math.round(r+Math.random()*(n-r))}function i(r,n,s,a){if(s<a){var l=t(s,a),c=s-1;e(r,l,a);for(var u=r[a],p=s;p<a;p++)n(r[p],u,!1)<=0&&(c+=1,e(r,c,p));e(r,c+1,p);var h=c+1;i(r,n,s,h-1),i(r,n,h+1,a)}}return i}function vl(o){let e=ml.toString();return new Function(`return ${e}`)()(o)}var wn=new WeakMap;yn.quickSort=function(o,e,t=0){let i=wn.get(e);i===void 0&&(i=vl(e),wn.set(e,i)),i(o,e,t,o.length-1)}});var Ln=y(Bt=>{var x=Ee(),Di=In(),Te=$i().ArraySet,xl=Ti(),nt=bn().quickSort;function F(o,e){var t=o;return typeof o=="string"&&(t=x.parseSourceMapInput(o)),t.sections!=null?new X(t,e):new M(t,e)}F.fromSourceMap=function(o,e){return M.fromSourceMap(o,e)};F.prototype._version=3;F.prototype.__generatedMappings=null;Object.defineProperty(F.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});F.prototype.__originalMappings=null;Object.defineProperty(F.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});F.prototype._charIsMappingSeparator=function(e,t){var i=e.charAt(t);return i===";"||i===","};F.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};F.GENERATED_ORDER=1;F.ORIGINAL_ORDER=2;F.GREATEST_LOWER_BOUND=1;F.LEAST_UPPER_BOUND=2;F.prototype.eachMapping=function(e,t,i){var r=t||null,n=i||F.GENERATED_ORDER,s;switch(n){case F.GENERATED_ORDER:s=this._generatedMappings;break;case F.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(r),c=this._names,u=this._sources,p=this._sourceMapURL,h=0,f=s.length;h<f;h++){var m=s[h],d=m.source===null?null:u.at(m.source);d!==null&&(d=x.computeSourceURL(a,d,p)),l({source:d,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:c.at(m.name)})}};F.prototype.allGeneratedPositionsFor=function(e){var t=x.getArg(e,"line"),i={source:x.getArg(e,"source"),originalLine:t,originalColumn:x.getArg(e,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var r=[],n=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,Di.LEAST_UPPER_BOUND);if(n>=0){var s=this._originalMappings[n];if(e.column===void 0)for(var a=s.originalLine;s&&s.originalLine===a;)r.push({line:x.getArg(s,"generatedLine",null),column:x.getArg(s,"generatedColumn",null),lastColumn:x.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++n];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)r.push({line:x.getArg(s,"generatedLine",null),column:x.getArg(s,"generatedColumn",null),lastColumn:x.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++n]}return r};Bt.SourceMapConsumer=F;function M(o,e){var t=o;typeof o=="string"&&(t=x.parseSourceMapInput(o));var i=x.getArg(t,"version"),r=x.getArg(t,"sources"),n=x.getArg(t,"names",[]),s=x.getArg(t,"sourceRoot",null),a=x.getArg(t,"sourcesContent",null),l=x.getArg(t,"mappings"),c=x.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);s&&(s=x.normalize(s)),r=r.map(String).map(x.normalize).map(function(u){return s&&x.isAbsolute(s)&&x.isAbsolute(u)?x.relative(s,u):u}),this._names=Te.fromArray(n.map(String),!0),this._sources=Te.fromArray(r,!0),this._absoluteSources=this._sources.toArray().map(function(u){return x.computeSourceURL(s,u,e)}),this.sourceRoot=s,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=c}M.prototype=Object.create(F.prototype);M.prototype.consumer=F;M.prototype._findSourceIndex=function(o){var e=o;if(this.sourceRoot!=null&&(e=x.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==o)return t;return-1};M.fromSourceMap=function(e,t){var i=Object.create(M.prototype),r=i._names=Te.fromArray(e._names.toArray(),!0),n=i._sources=Te.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(f){return x.computeSourceURL(i.sourceRoot,f,t)});for(var s=e._mappings.toArray().slice(),a=i.__generatedMappings=[],l=i.__originalMappings=[],c=0,u=s.length;c<u;c++){var p=s[c],h=new Cn;h.generatedLine=p.generatedLine,h.generatedColumn=p.generatedColumn,p.source&&(h.source=n.indexOf(p.source),h.originalLine=p.originalLine,h.originalColumn=p.originalColumn,p.name&&(h.name=r.indexOf(p.name)),l.push(h)),a.push(h)}return nt(i.__originalMappings,x.compareByOriginalPositions),i};M.prototype._version=3;Object.defineProperty(M.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Cn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Pi=x.compareByGeneratedPositionsDeflatedNoLine;function Sn(o,e){let t=o.length,i=o.length-e;if(!(i<=1))if(i==2){let r=o[e],n=o[e+1];Pi(r,n)>0&&(o[e]=n,o[e+1]=r)}else if(i<20)for(let r=e;r<t;r++)for(let n=r;n>e;n--){let s=o[n-1],a=o[n];if(Pi(s,a)<=0)break;o[n-1]=a,o[n]=s}else nt(o,Pi,e)}M.prototype._parseMappings=function(e,t){var i=1,r=0,n=0,s=0,a=0,l=0,c=e.length,u=0,p={},h={},f=[],m=[],d,g,v,I,b;let w=0;for(;u<c;)if(e.charAt(u)===";")i++,u++,r=0,Sn(m,w),w=m.length;else if(e.charAt(u)===",")u++;else{for(d=new Cn,d.generatedLine=i,I=u;I<c&&!this._charIsMappingSeparator(e,I);I++);for(g=e.slice(u,I),v=[];u<I;)xl.decode(e,u,h),b=h.value,u=h.rest,v.push(b);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(d.generatedColumn=r+v[0],r=d.generatedColumn,v.length>1&&(d.source=a+v[1],a+=v[1],d.originalLine=n+v[2],n=d.originalLine,d.originalLine+=1,d.originalColumn=s+v[3],s=d.originalColumn,v.length>4&&(d.name=l+v[4],l+=v[4])),m.push(d),typeof d.originalLine=="number"){let R=d.source;for(;f.length<=R;)f.push(null);f[R]===null&&(f[R]=[]),f[R].push(d)}}Sn(m,w),this.__generatedMappings=m;for(var S=0;S<f.length;S++)f[S]!=null&&nt(f[S],x.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...f)};M.prototype._findMapping=function(e,t,i,r,n,s){if(e[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[i]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return Di.search(e,t,n,s)};M.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var i=this._generatedMappings[e+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};M.prototype.originalPositionFor=function(e){var t={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",x.compareByGeneratedPositionsDeflated,x.getArg(e,"bias",F.GREATEST_LOWER_BOUND));if(i>=0){var r=this._generatedMappings[i];if(r.generatedLine===t.generatedLine){var n=x.getArg(r,"source",null);n!==null&&(n=this._sources.at(n),n=x.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var s=x.getArg(r,"name",null);return s!==null&&(s=this._names.at(s)),{source:n,line:x.getArg(r,"originalLine",null),column:x.getArg(r,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};M.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};M.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(e);if(i>=0)return this.sourcesContent[i];var r=e;this.sourceRoot!=null&&(r=x.relative(this.sourceRoot,r));var n;if(this.sourceRoot!=null&&(n=x.urlParse(this.sourceRoot))){var s=r.replace(/^file:\/\//,"");if(n.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!n.path||n.path=="/")&&this._sources.has("/"+r))return this.sourcesContent[this._sources.indexOf("/"+r)]}if(t)return null;throw new Error('"'+r+'" is not in the SourceMap.')};M.prototype.generatedPositionFor=function(e){var t=x.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:x.getArg(e,"line"),originalColumn:x.getArg(e,"column")},r=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",x.compareByOriginalPositions,x.getArg(e,"bias",F.GREATEST_LOWER_BOUND));if(r>=0){var n=this._originalMappings[r];if(n.source===i.source)return{line:x.getArg(n,"generatedLine",null),column:x.getArg(n,"generatedColumn",null),lastColumn:x.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Bt.BasicSourceMapConsumer=M;function X(o,e){var t=o;typeof o=="string"&&(t=x.parseSourceMapInput(o));var i=x.getArg(t,"version"),r=x.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Te,this._names=new Te;var n={line:-1,column:0};this._sections=r.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var a=x.getArg(s,"offset"),l=x.getArg(a,"line"),c=x.getArg(a,"column");if(l<n.line||l===n.line&&c<n.column)throw new Error("Section offsets must be ordered and non-overlapping.");return n=a,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new F(x.getArg(s,"map"),e)}})}X.prototype=Object.create(F.prototype);X.prototype.constructor=F;X.prototype._version=3;Object.defineProperty(X.prototype,"sources",{get:function(){for(var o=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)o.push(this._sections[e].consumer.sources[t]);return o}});X.prototype.originalPositionFor=function(e){var t={generatedLine:x.getArg(e,"line"),generatedColumn:x.getArg(e,"column")},i=Di.search(t,this._sections,function(n,s){var a=n.generatedLine-s.generatedOffset.generatedLine;return a||n.generatedColumn-s.generatedOffset.generatedColumn}),r=this._sections[i];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};X.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};X.prototype.sourceContentFor=function(e,t){for(var i=0;i<this._sections.length;i++){var r=this._sections[i],n=r.consumer.sourceContentFor(e,!0);if(n||n==="")return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};X.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(x.getArg(e,"source"))!==-1){var r=i.consumer.generatedPositionFor(e);if(r){var n={line:r.line+(i.generatedOffset.generatedLine-1),column:r.column+(i.generatedOffset.generatedLine===r.line?i.generatedOffset.generatedColumn-1:0)};return n}}}return{line:null,column:null}};X.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var r=this._sections[i],n=r.consumer._generatedMappings,s=0;s<n.length;s++){var a=n[s],l=r.consumer._sources.at(a.source);l!==null&&(l=x.computeSourceURL(r.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var c=null;a.name&&(c=r.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var u={source:l,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}nt(this.__generatedMappings,x.compareByGeneratedPositionsDeflated),nt(this.__originalMappings,x.compareByOriginalPositions)};Bt.IndexedSourceMapConsumer=X});var Fn=y(Rn=>{var Il=Mi().SourceMapGenerator,Ut=Ee(),wl=/(\r?\n)/,yl=10,ke="$$$isSourceNode$$$";function j(o,e,t,i,r){this.children=[],this.sourceContents={},this.line=o??null,this.column=e??null,this.source=t??null,this.name=r??null,this[ke]=!0,i!=null&&this.add(i)}j.fromStringWithSourceMap=function(e,t,i){var r=new j,n=e.split(wl),s=0,a=function(){var h=m(),f=m()||"";return h+f;function m(){return s<n.length?n[s++]:void 0}},l=1,c=0,u=null;return t.eachMapping(function(h){if(u!==null)if(l<h.generatedLine)p(u,a()),l++,c=0;else{var f=n[s]||"",m=f.substr(0,h.generatedColumn-c);n[s]=f.substr(h.generatedColumn-c),c=h.generatedColumn,p(u,m),u=h;return}for(;l<h.generatedLine;)r.add(a()),l++;if(c<h.generatedColumn){var f=n[s]||"";r.add(f.substr(0,h.generatedColumn)),n[s]=f.substr(h.generatedColumn),c=h.generatedColumn}u=h},this),s<n.length&&(u&&p(u,a()),r.add(n.splice(s).join(""))),t.sources.forEach(function(h){var f=t.sourceContentFor(h);f!=null&&(i!=null&&(h=Ut.join(i,h)),r.setSourceContent(h,f))}),r;function p(h,f){if(h===null||h.source===void 0)r.add(f);else{var m=i?Ut.join(i,h.source):h.source;r.add(new j(h.originalLine,h.originalColumn,m,f,h.name))}}};j.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[ke]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};j.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[ke]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};j.prototype.walk=function(e){for(var t,i=0,r=this.children.length;i<r;i++)t=this.children[i],t[ke]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};j.prototype.join=function(e){var t,i,r=this.children.length;if(r>0){for(t=[],i=0;i<r-1;i++)t.push(this.children[i]),t.push(e);t.push(this.children[i]),this.children=t}return this};j.prototype.replaceRight=function(e,t){var i=this.children[this.children.length-1];return i[ke]?i.replaceRight(e,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(e,t):this.children.push("".replace(e,t)),this};j.prototype.setSourceContent=function(e,t){this.sourceContents[Ut.toSetString(e)]=t};j.prototype.walkSourceContents=function(e){for(var t=0,i=this.children.length;t<i;t++)this.children[t][ke]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,i=r.length;t<i;t++)e(Ut.fromSetString(r[t]),this.sourceContents[r[t]])};j.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};j.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},i=new Il(e),r=!1,n=null,s=null,a=null,l=null;return this.walk(function(c,u){t.code+=c,u.source!==null&&u.line!==null&&u.column!==null?((n!==u.source||s!==u.line||a!==u.column||l!==u.name)&&i.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),n=u.source,s=u.line,a=u.column,l=u.name,r=!0):r&&(i.addMapping({generated:{line:t.line,column:t.column}}),n=null,r=!1);for(var p=0,h=c.length;p<h;p++)c.charCodeAt(p)===yl?(t.line++,t.column=0,p+1===h?(n=null,r=!1):r&&i.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(c,u){i.setSourceContent(c,u)}),{code:t.code,map:i}};Rn.SourceNode=j});var zt=y(Wt=>{Wt.SourceMapGenerator=Mi().SourceMapGenerator;Wt.SourceMapConsumer=Ln().SourceMapConsumer;Wt.SourceNode=Fn().SourceNode});var Bi=y((Mu,kn)=>{"use strict";var{existsSync:bl,readFileSync:Sl}=Le("fs"),{dirname:Ni,join:Cl}=Le("path"),{SourceMapConsumer:En,SourceMapGenerator:Tn}=zt();function Ll(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}var ot=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ni(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new En(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,s=e.match(r)||e.match(n);if(s)return decodeURIComponent(e.substr(s[0].length));let a=e.match(t)||e.match(i);if(a)return Ll(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=Ni(e),bl(e))return this.mapFile=e,Sl(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof En)return Tn.fromSourceMap(t).toString();if(t instanceof Tn)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Cl(Ni(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};kn.exports=ot;ot.default=ot});var st=y((Ou,Mn)=>{"use strict";var{nanoid:Rl}=tn(),{isAbsolute:zi,resolve:Hi}=Le("path"),{SourceMapConsumer:Fl,SourceMapGenerator:El}=zt(),{fileURLToPath:An,pathToFileURL:Ht}=Le("url"),_n=$t(),Tl=Bi(),Ui=Ii(),Wi=Symbol("fromOffsetCache"),kl=!!(Fl&&El),$n=!!(Hi&&zi),Ae=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!$n||/^\w+:\/\//.test(t.from)||zi(t.from)?this.file=t.from:this.file=Hi(t.from)),$n&&kl){let i=new Tl(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+Rl(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let n,s,a;if(t&&typeof t=="object"){let c=t,u=i;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);t=p.line,i=p.col}else t=c.line,i=c.column;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);s=p.line,n=p.col}else s=u.line,n=u.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let l=this.origin(t,i,s,n);return l?a=new _n(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):a=new _n(e,s===void 0?t:{column:i,line:t},s===void 0?i:{column:n,line:s},this.css,this.file,r.plugin),a.input={column:i,endColumn:n,endLine:s,line:t,source:this.css},this.file&&(Ht&&(a.input.url=Ht(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,i;if(this[Wi])i=this[Wi];else{let n=this.css.split(`
|
22
|
+
`);i=new Array(n.length);let s=0;for(let a=0,l=n.length;a<l;a++)i[a]=s,s+=n[a].length+1;this[Wi]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let n=i.length-2,s;for(;r<n;)if(s=r+(n-r>>1),e<i[s])n=s-1;else if(e>=i[s+1])r=s+1;else{r=s;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Hi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let n=this.map.consumer(),s=n.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof i=="number"&&(a=n.originalPositionFor({column:r,line:i}));let l;zi(s.source)?l=Ht(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||Ht(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(An)c.file=An(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(s.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Mn.exports=Ae;Ae.default=Ae;Ui&&Ui.registerInput&&Ui.registerInput(Ae)});var _e=y((Pu,Nn)=>{"use strict";var On=pe(),Pn,Dn,fe=class extends On{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of r)n.raws.before=t.raws.before}return r}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new Pn(new Dn,this,e).stringify()}};fe.registerLazyResult=o=>{Pn=o};fe.registerProcessor=o=>{Dn=o};Nn.exports=fe;fe.default=fe;On.registerRoot(fe)});var ji=y((Du,Bn)=>{"use strict";var lt={comma(o){return lt.split(o,[","],!0)},space(o){let e=[" ",`
|
23
|
+
`," "];return lt.split(o,e)},split(o,e,t){let i=[],r="",n=!1,s=0,a=!1,l="",c=!1;for(let u of o)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(n=!0),n?(r!==""&&i.push(r.trim()),r="",n=!1):r+=u;return(t||r!=="")&&i.push(r.trim()),i}};Bn.exports=lt;lt.default=lt});var jt=y((Nu,Wn)=>{"use strict";var Un=pe(),Al=ji(),$e=class extends Un{get selectors(){return Al.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Wn.exports=$e;$e.default=$e;Un.registerRule($e)});var Hn=y((Bu,zn)=>{"use strict";var _l=Ot(),$l=Ze(),Ml=tt(),Ol=st(),Pl=Bi(),Dl=_e(),Nl=jt();function at(o,e){if(Array.isArray(o))return o.map(r=>at(r));let{inputs:t,...i}=o;if(t){e=[];for(let r of t){let n={...r,__proto__:Ol.prototype};n.map&&(n.map={...n.map,__proto__:Pl.prototype}),e.push(n)}}if(i.nodes&&(i.nodes=o.nodes.map(r=>at(r,e))),i.source){let{inputId:r,...n}=i.source;i.source=n,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new Dl(i);if(i.type==="decl")return new Ml(i);if(i.type==="rule")return new Nl(i);if(i.type==="comment")return new $l(i);if(i.type==="atrule")return new _l(i);throw new Error("Unknown node type: "+o.type)}zn.exports=at;at.default=at});var qi=y((Uu,Kn)=>{"use strict";var{dirname:Gt,relative:Gn,resolve:qn,sep:Vn}=Le("path"),{SourceMapConsumer:Qn,SourceMapGenerator:qt}=zt(),{pathToFileURL:jn}=Le("url"),Bl=st(),Ul=!!(Qn&&qt),Wl=!!(Gt&&qn&&Gn&&Vn),Gi=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
24
|
+
`;this.css.includes(`\r
|
25
|
+
`)&&(t=`\r
|
26
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||Gt(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Qn(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Wl&&Ul&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qt({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new qt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,s;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(r.generated.line=e,r.generated.column=t-1,l.source&&l.source.start?(r.source=this.sourcePath(l),r.original.line=l.source.start.line,r.original.column=l.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),s=a.match(/\n/g),s?(e+=s.length,n=a.lastIndexOf(`
|
27
|
+
`),t=a.length-n):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?Gt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Gt(qn(i,this.mapOpts.annotation)));let r=Gn(i,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Bl(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(jn){let i=jn(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Vn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};Kn.exports=Gi});var Zn=y((Wu,Xn)=>{"use strict";var zl=Ot(),Hl=Ze(),jl=tt(),Gl=_e(),Yn=jt(),ql=xi(),Jn={empty:!0,space:!0};function Vl(o){for(let e=o.length-1;e>=0;e--){let t=o[e],i=t[3]||t[2];if(i)return i}}var Vi=class{constructor(e){this.input=e,this.root=new Gl,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new zl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,n,s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(l.length>0){for(n=l.length-1,r=l[n];r&&r[0]==="space";)r=l[--n];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let n=t-1;n>=0&&(r=e[n],!(r[0]!=="space"&&(i+=1,i===2)));n--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,n;for(let[s,a]of e.entries()){if(r=a,n=r[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!i)this.doubleColon(r);else{if(i[0]==="word"&&i[1]==="progid")continue;return s}i=r}return!1}comment(e){let t=new Hl;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=ql(this.input)}decl(e,t){let i=new jl;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||Vl(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){i.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){i.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),p="";for(let h=c;h>0;h--){let f=u[h][0];if(p.trim().startsWith("!")&&f!=="space")break;p=u.pop()[1]+p}p.trim().startsWith("!")&&(i.important=!0,i.raws.important=p,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(i,"value",s.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Yn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,r=!1,n=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")n||(n=c),s.push(i==="("?")":"]");else if(a&&r&&i==="{")n||(n=c),s.push("}");else if(s.length===0)if(i===";")if(r){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(r=!0);else i===s[s.length-1]&&(s.pop(),s.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(n),t&&r){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,r){let n,s,a=i.length,l="",c=!0,u,p;for(let h=0;h<a;h+=1)n=i[h],s=n[0],s==="space"&&h===a-1&&!r?c=!1:s==="comment"?(p=i[h-1]?i[h-1][0]:"empty",u=i[h+1]?i[h+1][0]:"empty",!Jn[p]&&!Jn[u]?l.slice(-1)===","?c=!1:l+=n[1]:c=!1):l+=n[1];if(!c){let h=i.reduce((f,m)=>f+m[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Yn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};Xn.exports=Vi});var Qt=y((zu,eo)=>{"use strict";var Ql=pe(),Kl=st(),Yl=Zn();function Vt(o,e){let t=new Kl(o,e),i=new Yl(t);try{i.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?r.message+=`
|
28
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?r.message+=`
|
29
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(r.message+=`
|
30
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),r}return i.root}eo.exports=Vt;Vt.default=Vt;Ql.registerParse(Vt)});var Qi=y((Hu,to)=>{"use strict";var ct=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[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}};to.exports=ct;ct.default=ct});var Kt=y((ju,io)=>{"use strict";var Jl=Qi(),ut=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new Jl(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};io.exports=ut;ut.default=ut});var Ki=y((Gu,no)=>{"use strict";var ro={};no.exports=function(e){ro[e]||(ro[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var Xi=y((qu,ao)=>{"use strict";var Xl=pe(),Zl=Pt(),ea=qi(),ta=Qt(),oo=Kt(),ia=_e(),ra=Ve(),{isClean:re,my:na}=Mt(),oa=Ki(),sa={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},la={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},aa={Once:!0,postcssPlugin:!0,prepare:!0},Me=0;function ht(o){return typeof o=="object"&&typeof o.then=="function"}function lo(o){let e=!1,t=sa[o.type];return o.type==="decl"?e=o.prop.toLowerCase():o.type==="atrule"&&(e=o.name.toLowerCase()),e&&o.append?[t,t+"-"+e,Me,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:o.append?[t,Me,t+"Exit"]:[t,t+"Exit"]}function so(o){let e;return o.type==="document"?e=["Document",Me,"DocumentExit"]:o.type==="root"?e=["Root",Me,"RootExit"]:e=lo(o),{eventIndex:0,events:e,iterator:0,node:o,visitorIndex:0,visitors:[]}}function Yi(o){return o[re]=!1,o.nodes&&o.nodes.forEach(e=>Yi(e)),o}var Ji={},de=class o{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(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=Yi(t);else if(t instanceof o||t instanceof oo)r=Yi(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let n=ta;i.syntax&&(n=i.syntax.parse),i.parser&&(n=i.parser),n.parse&&(n=n.parse);try{r=n(t,i)}catch(s){this.processed=!0,this.error=s}r&&!r[na]&&Xl.rebuild(r)}this.result=new oo(e,r,i),this.helpers={...Ji,postcss:Ji,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){let r=i.postcssPlugin,n=i.postcssVersion,s=this.result.processor.version,a=n.split("."),l=s.split(".");(a[0]!==l[0]||parseInt(a[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+r+" uses "+n+". Perhaps this is the source of the error below.")}}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!la[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!aa[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(ht(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[re];){e[re]=!0;let t=[so(e)];for(;t.length>0;){let i=this.visitTick(t);if(ht(i))try{await i}catch(r){let n=t[t.length-1].node;throw this.handleError(r,n)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(n=>i(n,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return ht(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ra;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new ea(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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 e of this.plugins){let t=this.runOnRoot(e);if(ht(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[re];)e[re]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||oa("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(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,r]of e){this.result.lastPlugin=i;let n;try{n=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ht(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,a]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!a[re]){a[re]=!0,e.push(so(a));return}t.iterator=0,delete i.indexes[s]}let n=t.events;for(;t.eventIndex<n.length;){let s=n[t.eventIndex];if(t.eventIndex+=1,s===Me){i.nodes&&i.nodes.length&&(i[re]=!0,t.iterator=i.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[re]=!0;let t=lo(e);for(let i of t)if(i===Me)e.nodes&&e.each(r=>{r[re]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}};de.registerPostcss=o=>{Ji=o};ao.exports=de;de.default=de;ia.registerLazyResult(de);Zl.registerLazyResult(de)});var uo=y((Vu,co)=>{"use strict";var ca=qi(),ua=Qt(),ha=Kt(),pa=Ve(),fa=Ki(),pt=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 e,t=ua;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,n=pa;this.result=new ha(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new ca(n,r,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||fa("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(e,t)}toString(){return this._css}warnings(){return[]}};co.exports=pt;pt.default=pt});var po=y((Qu,ho)=>{"use strict";var da=Pt(),ga=Xi(),ma=uo(),va=_e(),be=class{constructor(e=[]){this.version="8.5.3",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.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 t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new ma(this,e,t):new ga(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};ho.exports=be;be.default=be;va.registerProcessor(be);da.registerProcessor(be)});var yo=y((Ku,wo)=>{"use strict";var fo=Ot(),go=Ze(),xa=pe(),Ia=$t(),mo=tt(),vo=Pt(),wa=Hn(),ya=st(),ba=Xi(),Sa=ji(),Ca=Je(),La=Qt(),Zi=po(),Ra=Kt(),xo=_e(),Io=jt(),Fa=Ve(),Ea=Qi();function C(...o){return o.length===1&&Array.isArray(o[0])&&(o=o[0]),new Zi(o)}C.plugin=function(e,t){let i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
31
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
32
|
+
https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new Zi().version,a}let n;return Object.defineProperty(r,"postcss",{get(){return n||(n=r()),n}}),r.process=function(s,a,l){return C([r(l)]).process(s,a)},r};C.stringify=Fa;C.parse=La;C.fromJSON=wa;C.list=Sa;C.comment=o=>new go(o);C.atRule=o=>new fo(o);C.decl=o=>new mo(o);C.rule=o=>new Io(o);C.root=o=>new xo(o);C.document=o=>new vo(o);C.CssSyntaxError=Ia;C.Declaration=mo;C.Container=xa;C.Processor=Zi;C.Document=vo;C.Comment=go;C.Warning=Ea;C.AtRule=fo;C.Result=Ra;C.Input=ya;C.Rule=Io;C.Root=xo;C.Node=Ca;ba.registerPostcss(C);wo.exports=C;C.default=C});var Ro=y((bh,Lo)=>{"use strict";Lo.exports=So;function So(o,e,t){o instanceof RegExp&&(o=bo(o,t)),e instanceof RegExp&&(e=bo(e,t));var i=Co(o,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+o.length,i[1]),post:t.slice(i[1]+e.length)}}function bo(o,e){var t=e.match(o);return t?t[0]:null}So.range=Co;function Co(o,e,t){var i,r,n,s,a,l=t.indexOf(o),c=t.indexOf(e,l+1),u=l;if(l>=0&&c>0){if(o===e)return[l,c];for(i=[],n=t.length;u>=0&&!a;)u==l?(i.push(u),l=t.indexOf(o,u+1)):i.length==1?a=[i.pop(),c]:(r=i.pop(),r<n&&(n=r,s=c),c=t.indexOf(e,u+1)),u=l<c&&l>=0?l:c;i.length&&(a=[n,s])}return a}});var Mo=y((Sh,$o)=>{var Fo=Ro();$o.exports=Aa;var Eo="\0SLASH"+Math.random()+"\0",To="\0OPEN"+Math.random()+"\0",ir="\0CLOSE"+Math.random()+"\0",ko="\0COMMA"+Math.random()+"\0",Ao="\0PERIOD"+Math.random()+"\0";function tr(o){return parseInt(o,10)==o?parseInt(o,10):o.charCodeAt(0)}function Ta(o){return o.split("\\\\").join(Eo).split("\\{").join(To).split("\\}").join(ir).split("\\,").join(ko).split("\\.").join(Ao)}function ka(o){return o.split(Eo).join("\\").split(To).join("{").split(ir).join("}").split(ko).join(",").split(Ao).join(".")}function _o(o){if(!o)return[""];var e=[],t=Fo("{","}",o);if(!t)return o.split(",");var i=t.pre,r=t.body,n=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=_o(n);return n.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function Aa(o){return o?(o.substr(0,2)==="{}"&&(o="\\{\\}"+o.substr(2)),ft(Ta(o),!0).map(ka)):[]}function _a(o){return"{"+o+"}"}function $a(o){return/^-?0\d/.test(o)}function Ma(o,e){return o<=e}function Oa(o,e){return o>=e}function ft(o,e){var t=[],i=Fo("{","}",o);if(!i)return[o];var r=i.pre,n=i.post.length?ft(i.post,!1):[""];if(/\$$/.test(i.pre))for(var s=0;s<n.length;s++){var a=r+"{"+i.body+"}"+n[s];t.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),u=l||c,p=i.body.indexOf(",")>=0;if(!u&&!p)return i.post.match(/,.*\}/)?(o=i.pre+"{"+i.body+ir+i.post,ft(o)):[o];var h;if(u)h=i.body.split(/\.\./);else if(h=_o(i.body),h.length===1&&(h=ft(h[0],!1).map(_a),h.length===1))return n.map(function(xe){return i.pre+h[0]+xe});var f;if(u){var m=tr(h[0]),d=tr(h[1]),g=Math.max(h[0].length,h[1].length),v=h.length==3?Math.abs(tr(h[2])):1,I=Ma,b=d<m;b&&(v*=-1,I=Oa);var w=h.some($a);f=[];for(var S=m;I(S,d);S+=v){var R;if(c)R=String.fromCharCode(S),R==="\\"&&(R="");else if(R=String(S),w){var H=g-R.length;if(H>0){var z=new Array(H+1).join("0");S<0?R="-"+z+R.slice(1):R=z+R}}f.push(R)}}else{f=[];for(var N=0;N<h.length;N++)f.push.apply(f,ft(h[N],!1))}for(var N=0;N<f.length;N++)for(var s=0;s<n.length;s++){var a=r+f[N]+n[s];(!e||u||a)&&t.push(a)}}return t}});var L=Sr(yo(),1),er=L.default,Yu=L.default.stringify,Ju=L.default.fromJSON,Xu=L.default.plugin,Zu=L.default.parse,eh=L.default.list,th=L.default.document,ih=L.default.comment,rh=L.default.atRule,nh=L.default.rule,oh=L.default.decl,sh=L.default.root,lh=L.default.CssSyntaxError,ah=L.default.Declaration,ch=L.default.Container,uh=L.default.Processor,hh=L.default.Document,ph=L.default.Comment,fh=L.default.Warning,dh=L.default.AtRule,gh=L.default.Result,mh=L.default.Input,vh=L.default.Rule,xh=L.default.Root,Ih=L.default.Node;import*as ae from"fs";import*as ce from"path";var Yt=class{timestamp;fileMigrations=[];currentFile=null;reportDir=ce.join(process.cwd(),".report");transformName;constructor(e){this.transformName=e,this.timestamp=this.generateTimestamp()}generateTimestamp(){return new Date(new Date().getTime()+324e5).toISOString()}getReportPath(){return ce.join(this.reportDir,`${this.transformName}.md`)}getRelativePath(e){if(!e)return"unknown";try{let t=ce.resolve(e);return ce.relative(this.reportDir,t)}catch{return"unknown"}}startNewFile(e){this.currentFile={filePath:this.getRelativePath(e),results:[]}}addResult(e){this.currentFile&&this.currentFile.results.push(e)}finishFile(){this.currentFile&&this.currentFile.results.length>0&&this.fileMigrations.push(this.currentFile),this.currentFile=null}hasResults(){return this.fileMigrations.length>0}writeReport(){if(!this.hasResults())return;ae.existsSync(this.reportDir)||ae.mkdirSync(this.reportDir,{recursive:!0});let e=this.getReportPath(),t=ae.existsSync(e)?ae.readFileSync(e,"utf8"):"",i=this.fileMigrations.map(n=>{let s=ce.basename(n.filePath),a=n.results.map(l=>{let c=l.line?` (line: ${l.line})`:"",u=l.status==="success"?"\u2705":"\u274C",p=l.failureReason?`
|
33
|
+
- reason: ${l.failureReason}`:"";return` - ${u} ${c}
|
34
|
+
- as-is: \`${l.previousToken}\`
|
35
|
+
- to-be: ${l.nextToken?`\`${l.nextToken}\``:"undefined"}${p}`}).join(`
|
36
|
+
`);return`### [${s}](${n.filePath})
|
37
|
+
- timestamp: ${this.timestamp}
|
38
|
+
- summary:
|
39
|
+
- total: ${n.results.length}
|
40
|
+
- success: ${n.results.filter(l=>l.status==="success").length}
|
41
|
+
- failure: ${n.results.filter(l=>l.status==="failure").length}
|
42
|
+
- lines
|
43
|
+
${a}`}).join(`
|
44
|
+
|
45
|
+
`);ae.writeFileSync(e,t+(t?`
|
46
|
+
|
47
|
+
`:"")+i)}};var zo=Sr(Mo(),1);var dt=o=>{if(typeof o!="string")throw new TypeError("invalid pattern");if(o.length>65536)throw new TypeError("pattern is too long")};var Pa={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},gt=o=>o.replace(/[[\]\\-]/g,"\\$&"),Da=o=>o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Oo=o=>o.join(""),Po=(o,e)=>{let t=e;if(o.charAt(t)!=="[")throw new Error("not in a brace expression");let i=[],r=[],n=t+1,s=!1,a=!1,l=!1,c=!1,u=t,p="";e:for(;n<o.length;){let d=o.charAt(n);if((d==="!"||d==="^")&&n===t+1){c=!0,n++;continue}if(d==="]"&&s&&!l){u=n+1;break}if(s=!0,d==="\\"&&!l){l=!0,n++;continue}if(d==="["&&!l){for(let[g,[v,I,b]]of Object.entries(Pa))if(o.startsWith(g,n)){if(p)return["$.",!1,o.length-t,!0];n+=g.length,b?r.push(v):i.push(v),a=a||I;continue e}}if(l=!1,p){d>p?i.push(gt(p)+"-"+gt(d)):d===p&&i.push(gt(d)),p="",n++;continue}if(o.startsWith("-]",n+1)){i.push(gt(d+"-")),n+=2;continue}if(o.startsWith("-",n+1)){p=d,n+=2;continue}i.push(gt(d)),n++}if(u<n)return["",!1,0,!1];if(!i.length&&!r.length)return["$.",!1,o.length-t,!0];if(r.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!c){let d=i[0].length===2?i[0].slice(-1):i[0];return[Da(d),!1,u-t,!1]}let h="["+(c?"^":"")+Oo(i)+"]",f="["+(c?"":"^")+Oo(r)+"]";return[i.length&&r.length?"("+h+"|"+f+")":i.length?h:f,a,u-t,!0]};var Z=(o,{windowsPathsNoEscape:e=!1}={})=>e?o.replace(/\[([^\/\\])\]/g,"$1"):o.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Na=new Set(["!","?","+","*","@"]),Do=o=>Na.has(o),Ba="(?!(?:^|/)\\.\\.?(?:$|/))",Jt="(?!\\.)",Ua=new Set(["[","."]),Wa=new Set(["..","."]),za=new Set("().*{}+?[]^$\\!"),Ha=o=>o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rr="[^/]",No=rr+"*?",Bo=rr+"+?",Oe=class o{type;#e;#t;#o=!1;#r=[];#s;#w;#c;#h=!1;#l;#a;#n=!1;constructor(e,t,i={}){this.type=e,e&&(this.#t=!0),this.#s=t,this.#e=this.#s?this.#s.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#c=this.#e===this?[]:this.#e.#c,e==="!"&&!this.#e.#h&&this.#c.push(this),this.#w=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#a=this.#r.map(e=>String(e)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let t=e,i=t.#s;for(;i;){for(let r=t.#w+1;!i.type&&r<i.#r.length;r++)for(let n of e.#r){if(typeof n=="string")throw new Error("string part in extglob AST??");n.copyIn(i.#r[r])}t=i,i=t.#s}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof o&&t.#s===this))throw new Error("invalid part: "+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#r.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#s?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#w===0)return!0;let e=this.#s;for(let t=0;t<this.#w;t++){let i=e.#r[t];if(!(i instanceof o&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let e=this.#s?this.#s.#r.length:0;return this.#w===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new o(this.type,e);for(let i of this.#r)t.copyIn(i);return t}static#v(e,t,i,r){let n=!1,s=!1,a=-1,l=!1;if(t.type===null){let f=i,m="";for(;f<e.length;){let d=e.charAt(f++);if(n||d==="\\"){n=!n,m+=d;continue}if(s){f===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(f===a+2&&l)&&(s=!1),m+=d;continue}else if(d==="["){s=!0,a=f,l=!1,m+=d;continue}if(!r.noext&&Do(d)&&e.charAt(f)==="("){t.push(m),m="";let g=new o(d,t);f=o.#v(e,g,f,r),t.push(g);continue}m+=d}return t.push(m),f}let c=i+1,u=new o(null,t),p=[],h="";for(;c<e.length;){let f=e.charAt(c++);if(n||f==="\\"){n=!n,h+=f;continue}if(s){c===a+1?(f==="^"||f==="!")&&(l=!0):f==="]"&&!(c===a+2&&l)&&(s=!1),h+=f;continue}else if(f==="["){s=!0,a=c,l=!1,h+=f;continue}if(Do(f)&&e.charAt(c)==="("){u.push(h),h="";let m=new o(f,u);u.push(m),c=o.#v(e,m,c,r);continue}if(f==="|"){u.push(h),h="",p.push(u),u=new o(null,t);continue}if(f===")")return h===""&&t.#r.length===0&&(t.#n=!0),u.push(h),h="",t.push(...p,u),c;h+=f}return t.type=null,t.#t=void 0,t.#r=[e.substring(i-1)],c}static fromGlob(e,t={}){let i=new o(null,void 0,t);return o.#v(e,i,0,t),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,i,r,n]=this.toRegExpSource();if(!(r||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#l}toRegExpSource(e){let t=e??!!this.#l.dot;if(this.#e===this&&this.#m(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#r.map(f=>{let[m,d,g,v]=typeof f=="string"?o.#p(f,this.#t,l):f.toRegExpSource(e);return this.#t=this.#t||g,this.#o=this.#o||v,m}).join(""),u="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&Wa.has(this.#r[0]))){let m=Ua,d=t&&m.has(c.charAt(0))||c.startsWith("\\.")&&m.has(c.charAt(2))||c.startsWith("\\.\\.")&&m.has(c.charAt(4)),g=!t&&!e&&m.has(c.charAt(0));u=d?Ba:g?Jt:""}let p="";return this.isEnd()&&this.#e.#h&&this.#s?.type==="!"&&(p="(?:$|\\/)"),[u+c+p,Z(c),this.#t=!!this.#t,this.#o]}let i=this.type==="*"||this.type==="+",r=this.type==="!"?"(?:(?!(?:":"(?:",n=this.#f(t);if(this.isStart()&&this.isEnd()&&!n&&this.type!=="!"){let l=this.toString();return this.#r=[l],this.type=null,this.#t=void 0,[l,Z(this.toString()),!1,!1]}let s=!i||e||t||!Jt?"":this.#f(!0);s===n&&(s=""),s&&(n=`(?:${n})(?:${s})*?`);let a="";if(this.type==="!"&&this.#n)a=(this.isStart()&&!t?Jt:"")+Bo;else{let l=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Jt:"")+No+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`;a=r+n+l}return[a,Z(n),this.#t=!!this.#t,this.#o]}#f(e){return this.#r.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[i,r,n,s]=t.toRegExpSource(e);return this.#o=this.#o||s,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#p(e,t,i=!1){let r=!1,n="",s=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(r){r=!1,n+=(za.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?n+="\\\\":r=!0;continue}if(l==="["){let[c,u,p,h]=Po(e,a);if(p){n+=c,s=s||u,a+=p-1,t=t||h;continue}}if(l==="*"){i&&e==="*"?n+=Bo:n+=No,t=!0;continue}if(l==="?"){n+=rr,t=!0;continue}n+=Ha(l)}return[n,Z(e),!!t,s]}};var Pe=(o,{windowsPathsNoEscape:e=!1}={})=>e?o.replace(/[?*()[\]]/g,"[$&]"):o.replace(/[?*()[\]\\]/g,"\\$&");var U=(o,e,t={})=>(dt(e),!t.nocomment&&e.charAt(0)==="#"?!1:new G(e,t).match(o)),ja=/^\*+([^+@!?\*\[\(]*)$/,Ga=o=>e=>!e.startsWith(".")&&e.endsWith(o),qa=o=>e=>e.endsWith(o),Va=o=>(o=o.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(o)),Qa=o=>(o=o.toLowerCase(),e=>e.toLowerCase().endsWith(o)),Ka=/^\*+\.\*+$/,Ya=o=>!o.startsWith(".")&&o.includes("."),Ja=o=>o!=="."&&o!==".."&&o.includes("."),Xa=/^\.\*+$/,Za=o=>o!=="."&&o!==".."&&o.startsWith("."),ec=/^\*+$/,tc=o=>o.length!==0&&!o.startsWith("."),ic=o=>o.length!==0&&o!=="."&&o!=="..",rc=/^\?+([^+@!?\*\[\(]*)?$/,nc=([o,e=""])=>{let t=Ho([o]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},oc=([o,e=""])=>{let t=jo([o]);return e?(e=e.toLowerCase(),i=>t(i)&&i.toLowerCase().endsWith(e)):t},sc=([o,e=""])=>{let t=jo([o]);return e?i=>t(i)&&i.endsWith(e):t},lc=([o,e=""])=>{let t=Ho([o]);return e?i=>t(i)&&i.endsWith(e):t},Ho=([o])=>{let e=o.length;return t=>t.length===e&&!t.startsWith(".")},jo=([o])=>{let e=o.length;return t=>t.length===e&&t!=="."&&t!==".."},Go=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Uo={win32:{sep:"\\"},posix:{sep:"/"}},ac=Go==="win32"?Uo.win32.sep:Uo.posix.sep;U.sep=ac;var O=Symbol("globstar **");U.GLOBSTAR=O;var cc="[^/]",uc=cc+"*?",hc="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pc="(?:(?!(?:\\/|^)\\.).)*?",fc=(o,e={})=>t=>U(t,o,e);U.filter=fc;var Q=(o,e={})=>Object.assign({},o,e),dc=o=>{if(!o||typeof o!="object"||!Object.keys(o).length)return U;let e=U;return Object.assign((i,r,n={})=>e(i,r,Q(o,n)),{Minimatch:class extends e.Minimatch{constructor(r,n={}){super(r,Q(o,n))}static defaults(r){return e.defaults(Q(o,r)).Minimatch}},AST:class extends e.AST{constructor(r,n,s={}){super(r,n,Q(o,s))}static fromGlob(r,n={}){return e.AST.fromGlob(r,Q(o,n))}},unescape:(i,r={})=>e.unescape(i,Q(o,r)),escape:(i,r={})=>e.escape(i,Q(o,r)),filter:(i,r={})=>e.filter(i,Q(o,r)),defaults:i=>e.defaults(Q(o,i)),makeRe:(i,r={})=>e.makeRe(i,Q(o,r)),braceExpand:(i,r={})=>e.braceExpand(i,Q(o,r)),match:(i,r,n={})=>e.match(i,r,Q(o,n)),sep:e.sep,GLOBSTAR:O})};U.defaults=dc;var qo=(o,e={})=>(dt(o),e.nobrace||!/\{(?:(?!\{).)*\}/.test(o)?[o]:(0,zo.default)(o));U.braceExpand=qo;var gc=(o,e={})=>new G(o,e).makeRe();U.makeRe=gc;var mc=(o,e,t={})=>{let i=new G(e,t);return o=o.filter(r=>i.match(r)),i.options.nonull&&!o.length&&o.push(e),o};U.match=mc;var Wo=/[?*]|[+@!]\(.*?\)|\[|\]/,vc=o=>o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),G=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){dt(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Go,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let r=this.globParts.map((n,s,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=n[0]===""&&n[1]===""&&(n[2]==="?"||!Wo.test(n[2]))&&!Wo.test(n[3]),c=/^[a-z]:/i.test(n[0]);if(l)return[...n.slice(0,4),...n.slice(4).map(u=>this.parse(u))];if(c)return[n[0],...n.slice(1).map(u=>this.parse(u))]}return n.map(l=>this.parse(l))});if(this.debug(this.pattern,r),this.set=r.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let s=this.set[n];s[0]===""&&s[1]===""&&this.globParts[n][2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3])&&(s[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let r=0;r<e[i].length;r++)e[i][r]==="**"&&(e[i][r]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){let r=i;for(;t[r+1]==="**";)r++;r!==i&&t.splice(i,r-i)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((i,r)=>{let n=i[i.length-1];return r==="**"&&n==="**"?i:r===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(i.pop(),i):(i.push(r),i)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let n=e[r];r===1&&n===""&&e[0]===""||(n==="."||n==="")&&(t=!0,e.splice(r,1),r--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let r=e[i-1];r&&r!=="."&&r!==".."&&r!=="**"&&(t=!0,e.splice(i-1,2),i-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let i of e){let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let s=r;for(;i[s+1]==="**";)s++;s>r&&i.splice(r+1,s-r);let a=i[r+1],l=i[r+2],c=i[r+3];if(a!==".."||!l||l==="."||l===".."||!c||c==="."||c==="..")continue;t=!0,i.splice(r,1);let u=i.slice(0);u[r]="**",e.push(u),r--}if(!this.preserveMultipleSlashes){for(let s=1;s<i.length-1;s++){let a=i[s];s===1&&a===""&&i[0]===""||(a==="."||a==="")&&(t=!0,i.splice(s,1),s--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(t=!0,i.pop())}let n=0;for(;(n=i.indexOf("..",n+1))!==-1;){let s=i[n-1];if(s&&s!=="."&&s!==".."&&s!=="**"){t=!0;let l=n===1&&i[n+1]==="**"?["."]:[];i.splice(n-1,2,...l),i.length===0&&i.push(""),n-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let i=t+1;i<e.length;i++){let r=this.partsMatch(e[t],e[i],!this.preserveMultipleSlashes);if(r){e[t]=[],e[i]=r;break}}return e.filter(t=>t.length)}partsMatch(e,t,i=!1){let r=0,n=0,s=[],a="";for(;r<e.length&&n<t.length;)if(e[r]===t[n])s.push(a==="b"?t[n]:e[r]),r++,n++;else if(i&&e[r]==="**"&&t[n]===e[r+1])s.push(e[r]),r++;else if(i&&t[n]==="**"&&e[r]===t[n+1])s.push(t[n]),n++;else if(e[r]==="*"&&t[n]&&(this.options.dot||!t[n].startsWith("."))&&t[n]!=="**"){if(a==="b")return!1;a="a",s.push(e[r]),r++,n++}else if(t[n]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(a==="a")return!1;a="b",s.push(t[n]),r++,n++}else return!1;return e.length===t.length&&s}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)t=!t,i++;i&&(this.pattern=e.slice(i)),this.negate=t}matchOne(e,t,i=!1){let r=this.options;if(this.isWindows){let d=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),g=!d&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),I=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),b=g?3:d?0:void 0,w=I?3:v?0:void 0;if(typeof b=="number"&&typeof w=="number"){let[S,R]=[e[b],t[w]];S.toLowerCase()===R.toLowerCase()&&(t[w]=S,w>b?t=t.slice(w):b>w&&(e=e.slice(b)))}}let{optimizationLevel:n=1}=this.options;n>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var s=0,a=0,l=e.length,c=t.length;s<l&&a<c;s++,a++){this.debug("matchOne loop");var u=t[a],p=e[s];if(this.debug(t,u,p),u===!1)return!1;if(u===O){this.debug("GLOBSTAR",[t,u,p]);var h=s,f=a+1;if(f===c){for(this.debug("** at the end");s<l;s++)if(e[s]==="."||e[s]===".."||!r.dot&&e[s].charAt(0)===".")return!1;return!0}for(;h<l;){var m=e[h];if(this.debug(`
|
48
|
+
globstar while`,e,h,t,f,m),this.matchOne(e.slice(h),t.slice(f),i))return this.debug("globstar found match!",h,l,m),!0;if(m==="."||m===".."||!r.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,t,f);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
49
|
+
>>> no match, partial?`,e,h,t,f),h===l))}let d;if(typeof u=="string"?(d=p===u,this.debug("string match",u,p,d)):(d=u.test(p),this.debug("pattern match",u,p,d)),!d)return!1}if(s===l&&a===c)return!0;if(s===l)return i;if(a===c)return s===l-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return qo(this.pattern,this.options)}parse(e){dt(e);let t=this.options;if(e==="**")return O;if(e==="")return"";let i,r=null;(i=e.match(ec))?r=t.dot?ic:tc:(i=e.match(ja))?r=(t.nocase?t.dot?Qa:Va:t.dot?qa:Ga)(i[1]):(i=e.match(rc))?r=(t.nocase?t.dot?oc:nc:t.dot?sc:lc)(i):(i=e.match(Ka))?r=t.dot?Ja:Ya:(i=e.match(Xa))&&(r=Za);let n=Oe.fromGlob(e,this.options).toMMPattern();return r&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:r}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,i=t.noglobstar?uc:t.dot?hc:pc,r=new Set(t.nocase?["i"]:[]),n=e.map(l=>{let c=l.map(u=>{if(u instanceof RegExp)for(let p of u.flags.split(""))r.add(p);return typeof u=="string"?vc(u):u===O?O:u._src});return c.forEach((u,p)=>{let h=c[p+1],f=c[p-1];u!==O||f===O||(f===void 0?h!==void 0&&h!==O?c[p+1]="(?:\\/|"+i+"\\/)?"+h:c[p]=i:h===void 0?c[p-1]=f+"(?:\\/|"+i+")?":h!==O&&(c[p-1]=f+"(?:\\/|\\/"+i+"\\/)"+h,c[p+1]=O))}),c.filter(u=>u!==O).join("/")}).join("|"),[s,a]=e.length>1?["(?:",")"]:["",""];n="^"+s+n+a+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let n=this.set;this.debug(this.pattern,"set",n);let s=r[r.length-1];if(!s)for(let a=r.length-2;!s&&a>=0;a--)s=r[a];for(let a=0;a<n.length;a++){let l=n[a],c=r;if(i.matchBase&&l.length===1&&(c=[s]),this.matchOne(c,l,t))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return U.defaults(e).Minimatch}};U.AST=Oe;U.Minimatch=G;U.escape=Pe;U.unescape=Z;import{fileURLToPath as Kc}from"node:url";var De=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Qo=new Set,nr=typeof process=="object"&&process?process:{},Ko=(o,e,t,i)=>{typeof nr.emitWarning=="function"?nr.emitWarning(o,e,t,i):console.error(`[${t}] ${e}: ${o}`)},Xt=globalThis.AbortController,Vo=globalThis.AbortSignal;if(typeof Xt>"u"){Vo=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,r){this._onabort.push(r)}},Xt=class{constructor(){e()}signal=new Vo;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let r of this.signal._onabort)r(i);this.signal.onabort?.(i)}}};let o=nr.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{o&&(o=!1,Ko("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var xc=o=>!Qo.has(o),Hh=Symbol("type"),ge=o=>o&&o===Math.floor(o)&&o>0&&isFinite(o),Yo=o=>ge(o)?o<=Math.pow(2,8)?Uint8Array:o<=Math.pow(2,16)?Uint16Array:o<=Math.pow(2,32)?Uint32Array:o<=Number.MAX_SAFE_INTEGER?Ne:null:null,Ne=class extends Array{constructor(e){super(e),this.fill(0)}},or=class o{heap;length;static#e=!1;static create(e){let t=Yo(e);if(!t)return[];o.#e=!0;let i=new o(e,t);return o.#e=!1,i}constructor(e,t){if(!o.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},mt=class o{#e;#t;#o;#r;#s;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#h;#l;#a;#n;#m;#v;#f;#p;#S;#g;#C;#L;#I;#y;#b;#d;static unsafeExposeInternals(e){return{starts:e.#L,ttls:e.#I,sizes:e.#C,keyMap:e.#l,keyList:e.#a,valList:e.#n,next:e.#m,prev:e.#v,get head(){return e.#f},get tail(){return e.#p},free:e.#S,isBackgroundFetch:t=>e.#u(t),backgroundFetch:(t,i,r,n)=>e.#N(t,i,r,n),moveToTail:t=>e.#U(t),indexes:t=>e.#F(t),rindexes:t=>e.#E(t),isStale:t=>e.#x(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#h}get size(){return this.#c}get fetchMethod(){return this.#s}get memoMethod(){return this.#w}get dispose(){return this.#o}get disposeAfter(){return this.#r}constructor(e){let{max:t=0,ttl:i,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:p,noUpdateTTL:h,maxSize:f=0,maxEntrySize:m=0,sizeCalculation:d,fetchMethod:g,memoMethod:v,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:S,ignoreFetchAbort:R}=e;if(t!==0&&!ge(t))throw new TypeError("max option must be a nonnegative integer");let H=t?Yo(t):Array;if(!H)throw new Error("invalid max value: "+t);if(this.#e=t,this.#t=f,this.maxEntrySize=m||this.#t,this.sizeCalculation=d,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#w=v,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#s=g,this.#b=!!g,this.#l=new Map,this.#a=new Array(t).fill(void 0),this.#n=new Array(t).fill(void 0),this.#m=new H(t),this.#v=new H(t),this.#f=0,this.#p=0,this.#S=or.create(t),this.#c=0,this.#h=0,typeof c=="function"&&(this.#o=c),typeof u=="function"?(this.#r=u,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#y=!!this.#o,this.#d=!!this.#r,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!R,this.maxEntrySize!==0){if(this.#t!==0&&!ge(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!ge(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#k()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=ge(r)||r===0?r:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!ge(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#T()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let z="LRU_CACHE_UNBOUNDED";xc(z)&&(Qo.add(z),Ko("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",z,o))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#T(){let e=new Ne(this.#e),t=new Ne(this.#e);this.#I=e,this.#L=t,this.#_=(n,s,a=De.now())=>{if(t[n]=s!==0?a:0,e[n]=s,s!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#x(n)&&this.#A(this.#a[n],"expire")},s+1);l.unref&&l.unref()}},this.#R=n=>{t[n]=e[n]!==0?De.now():0},this.#i=(n,s)=>{if(e[s]){let a=e[s],l=t[s];if(!a||!l)return;n.ttl=a,n.start=l,n.now=i||r();let c=n.now-l;n.remainingTTL=a-c}};let i=0,r=()=>{let n=De.now();if(this.ttlResolution>0){i=n;let s=setTimeout(()=>i=0,this.ttlResolution);s.unref&&s.unref()}return n};this.getRemainingTTL=n=>{let s=this.#l.get(n);if(s===void 0)return 0;let a=e[s],l=t[s];if(!a||!l)return 1/0;let c=(i||r())-l;return a-c},this.#x=n=>{let s=t[n],a=e[n];return!!a&&!!s&&(i||r())-s>a}}#R=()=>{};#i=()=>{};#_=()=>{};#x=()=>!1;#k(){let e=new Ne(this.#e);this.#h=0,this.#C=e,this.#$=t=>{this.#h-=e[t],e[t]=0},this.#O=(t,i,r,n)=>{if(this.#u(i))return 0;if(!ge(r))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(r=n(i,t),!ge(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.#M=(t,i,r)=>{if(e[t]=i,this.#t){let n=this.#t-e[t];for(;this.#h>n;)this.#D(!0)}this.#h+=e[t],r&&(r.entrySize=i,r.totalCalculatedSize=this.#h)}}#$=e=>{};#M=(e,t,i)=>{};#O=(e,t,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#F({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#p;!(!this.#P(t)||((e||!this.#x(t))&&(yield t),t===this.#f));)t=this.#v[t]}*#E({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#f;!(!this.#P(t)||((e||!this.#x(t))&&(yield t),t===this.#p));)t=this.#m[t]}#P(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#F())this.#n[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#n[e])&&(yield[this.#a[e],this.#n[e]])}*rentries(){for(let e of this.#E())this.#n[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#n[e])&&(yield[this.#a[e],this.#n[e]])}*keys(){for(let e of this.#F()){let t=this.#a[e];t!==void 0&&!this.#u(this.#n[e])&&(yield t)}}*rkeys(){for(let e of this.#E()){let t=this.#a[e];t!==void 0&&!this.#u(this.#n[e])&&(yield t)}}*values(){for(let e of this.#F())this.#n[e]!==void 0&&!this.#u(this.#n[e])&&(yield this.#n[e])}*rvalues(){for(let e of this.#E())this.#n[e]!==void 0&&!this.#u(this.#n[e])&&(yield this.#n[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#F()){let r=this.#n[i],n=this.#u(r)?r.__staleWhileFetching:r;if(n!==void 0&&e(n,this.#a[i],this))return this.get(this.#a[i],t)}}forEach(e,t=this){for(let i of this.#F()){let r=this.#n[i],n=this.#u(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(t,n,this.#a[i],this)}}rforEach(e,t=this){for(let i of this.#E()){let r=this.#n[i],n=this.#u(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(t,n,this.#a[i],this)}}purgeStale(){let e=!1;for(let t of this.#E({allowStale:!0}))this.#x(t)&&(this.#A(this.#a[t],"expire"),e=!0);return e}info(e){let t=this.#l.get(e);if(t===void 0)return;let i=this.#n[t],r=this.#u(i)?i.__staleWhileFetching:i;if(r===void 0)return;let n={value:r};if(this.#I&&this.#L){let s=this.#I[t],a=this.#L[t];if(s&&a){let l=s-(De.now()-a);n.ttl=l,n.start=Date.now()}}return this.#C&&(n.size=this.#C[t]),n}dump(){let e=[];for(let t of this.#F({allowStale:!0})){let i=this.#a[t],r=this.#n[t],n=this.#u(r)?r.__staleWhileFetching:r;if(n===void 0||i===void 0)continue;let s={value:n};if(this.#I&&this.#L){s.ttl=this.#I[t];let a=De.now()-this.#L[t];s.start=Math.floor(Date.now()-a)}this.#C&&(s.size=this.#C[t]),e.unshift([i,s])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let r=Date.now()-i.start;i.start=De.now()-r}this.set(t,i.value,i)}}set(e,t,i={}){if(t===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:n,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:c=this.noUpdateTTL}=i,u=this.#O(e,t,i.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#A(e,"set"),this;let p=this.#c===0?void 0:this.#l.get(e);if(p===void 0)p=this.#c===0?this.#p:this.#S.length!==0?this.#S.pop():this.#c===this.#e?this.#D(!1):this.#c,this.#a[p]=e,this.#n[p]=t,this.#l.set(e,p),this.#m[this.#p]=p,this.#v[p]=this.#p,this.#p=p,this.#c++,this.#M(p,u,l),l&&(l.set="add"),c=!1;else{this.#U(p);let h=this.#n[p];if(t!==h){if(this.#b&&this.#u(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:f}=h;f!==void 0&&!s&&(this.#y&&this.#o?.(f,e,"set"),this.#d&&this.#g?.push([f,e,"set"]))}else s||(this.#y&&this.#o?.(h,e,"set"),this.#d&&this.#g?.push([h,e,"set"]));if(this.#$(p),this.#M(p,u,l),this.#n[p]=t,l){l.set="replace";let f=h&&this.#u(h)?h.__staleWhileFetching:h;f!==void 0&&(l.oldValue=f)}}else l&&(l.set="update")}if(r!==0&&!this.#I&&this.#T(),this.#I&&(c||this.#_(p,r,n),l&&this.#i(l,p)),!s&&this.#d&&this.#g){let h=this.#g,f;for(;f=h?.shift();)this.#r?.(...f)}return this}pop(){try{for(;this.#c;){let e=this.#n[this.#f];if(this.#D(!0),this.#u(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#d&&this.#g){let e=this.#g,t;for(;t=e?.shift();)this.#r?.(...t)}}}#D(e){let t=this.#f,i=this.#a[t],r=this.#n[t];return this.#b&&this.#u(r)?r.__abortController.abort(new Error("evicted")):(this.#y||this.#d)&&(this.#y&&this.#o?.(r,i,"evict"),this.#d&&this.#g?.push([r,i,"evict"])),this.#$(t),e&&(this.#a[t]=void 0,this.#n[t]=void 0,this.#S.push(t)),this.#c===1?(this.#f=this.#p=0,this.#S.length=0):this.#f=this.#m[t],this.#l.delete(i),this.#c--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=t,n=this.#l.get(e);if(n!==void 0){let s=this.#n[n];if(this.#u(s)&&s.__staleWhileFetching===void 0)return!1;if(this.#x(n))r&&(r.has="stale",this.#i(r,n));else return i&&this.#R(n),r&&(r.has="hit",this.#i(r,n)),!0}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,r=this.#l.get(e);if(r===void 0||!i&&this.#x(r))return;let n=this.#n[r];return this.#u(n)?n.__staleWhileFetching:n}#N(e,t,i,r){let n=t===void 0?void 0:this.#n[t];if(this.#u(n))return n;let s=new Xt,{signal:a}=i;a?.addEventListener("abort",()=>s.abort(a.reason),{signal:s.signal});let l={signal:s.signal,options:i,context:r},c=(d,g=!1)=>{let{aborted:v}=s.signal,I=i.ignoreFetchAbort&&d!==void 0;if(i.status&&(v&&!g?(i.status.fetchAborted=!0,i.status.fetchError=s.signal.reason,I&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),v&&!I&&!g)return p(s.signal.reason);let b=f;return this.#n[t]===f&&(d===void 0?b.__staleWhileFetching?this.#n[t]=b.__staleWhileFetching:this.#A(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,d,l.options))),d},u=d=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=d),p(d)),p=d=>{let{aborted:g}=s.signal,v=g&&i.allowStaleOnFetchAbort,I=v||i.allowStaleOnFetchRejection,b=I||i.noDeleteOnFetchRejection,w=f;if(this.#n[t]===f&&(!b||w.__staleWhileFetching===void 0?this.#A(e,"fetch"):v||(this.#n[t]=w.__staleWhileFetching)),I)return i.status&&w.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw d},h=(d,g)=>{let v=this.#s?.(e,n,l);v&&v instanceof Promise&&v.then(I=>d(I===void 0?void 0:I),g),s.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(d(void 0),i.allowStaleOnFetchAbort&&(d=I=>c(I,!0)))})};i.status&&(i.status.fetchDispatched=!0);let f=new Promise(h).then(c,u),m=Object.assign(f,{__abortController:s,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,m,{...l.options,status:void 0}),t=this.#l.get(e)):this.#n[t]=m,m}#u(e){if(!this.#b)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Xt}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=!1,status:v,signal:I}=t;if(!this.#b)return v&&(v.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:v});let b={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:s,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:f,status:v,signal:I},w=this.#l.get(e);if(w===void 0){v&&(v.fetch="miss");let S=this.#N(e,w,b,d);return S.__returned=S}else{let S=this.#n[w];if(this.#u(S)){let xe=i&&S.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",xe&&(v.returnedStale=!0)),xe?S.__staleWhileFetching:S.__returned=S}let R=this.#x(w);if(!g&&!R)return v&&(v.fetch="hit"),this.#U(w),r&&this.#R(w),v&&this.#i(v,w),S;let H=this.#N(e,w,b,d),N=H.__staleWhileFetching!==void 0&&i;return v&&(v.fetch=R?"stale":"refresh",N&&R&&(v.returnedStale=!0)),N?H.__staleWhileFetching:H.__returned=H}}async forceFetch(e,t={}){let i=await this.fetch(e,t);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,t={}){let i=this.#w;if(!i)throw new Error("no memoMethod provided to constructor");let{context:r,forceRefresh:n,...s}=t,a=this.get(e,s);if(!n&&a!==void 0)return a;let l=i(e,a,{options:s,context:r});return this.set(e,l,s),l}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:s}=t,a=this.#l.get(e);if(a!==void 0){let l=this.#n[a],c=this.#u(l);return s&&this.#i(s,a),this.#x(a)?(s&&(s.get="stale"),c?(s&&i&&l.__staleWhileFetching!==void 0&&(s.returnedStale=!0),i?l.__staleWhileFetching:void 0):(n||this.#A(e,"expire"),s&&i&&(s.returnedStale=!0),i?l:void 0)):(s&&(s.get="hit"),c?l.__staleWhileFetching:(this.#U(a),r&&this.#R(a),l))}else s&&(s.get="miss")}#B(e,t){this.#v[t]=e,this.#m[e]=t}#U(e){e!==this.#p&&(e===this.#f?this.#f=this.#m[e]:this.#B(this.#v[e],this.#m[e]),this.#B(this.#p,e),this.#p=e)}delete(e){return this.#A(e,"delete")}#A(e,t){let i=!1;if(this.#c!==0){let r=this.#l.get(e);if(r!==void 0)if(i=!0,this.#c===1)this.#W(t);else{this.#$(r);let n=this.#n[r];if(this.#u(n)?n.__abortController.abort(new Error("deleted")):(this.#y||this.#d)&&(this.#y&&this.#o?.(n,e,t),this.#d&&this.#g?.push([n,e,t])),this.#l.delete(e),this.#a[r]=void 0,this.#n[r]=void 0,r===this.#p)this.#p=this.#v[r];else if(r===this.#f)this.#f=this.#m[r];else{let s=this.#v[r];this.#m[s]=this.#m[r];let a=this.#m[r];this.#v[a]=this.#v[r]}this.#c--,this.#S.push(r)}}if(this.#d&&this.#g?.length){let r=this.#g,n;for(;n=r?.shift();)this.#r?.(...n)}return i}clear(){return this.#W("delete")}#W(e){for(let t of this.#E({allowStale:!0})){let i=this.#n[t];if(this.#u(i))i.__abortController.abort(new Error("deleted"));else{let r=this.#a[t];this.#y&&this.#o?.(i,r,e),this.#d&&this.#g?.push([i,r,e])}}if(this.#l.clear(),this.#n.fill(void 0),this.#a.fill(void 0),this.#I&&this.#L&&(this.#I.fill(0),this.#L.fill(0)),this.#C&&this.#C.fill(0),this.#f=0,this.#p=0,this.#S.length=0,this.#h=0,this.#c=0,this.#d&&this.#g){let t=this.#g,i;for(;i=t?.shift();)this.#r?.(...i)}}};import{posix as Tc,win32 as gr}from"node:path";import{fileURLToPath as kc}from"node:url";import{lstatSync as Ac,readdir as _c,readdirSync as $c,readlinkSync as Mc,realpathSync as Oc}from"fs";import*as Pc from"node:fs";import{lstat as Nc,readdir as Bc,readlink as Uc,realpath as Wc}from"node:fs/promises";import{EventEmitter as pr}from"node:events";import ts from"node:stream";import{StringDecoder as Ic}from"node:string_decoder";var Jo=typeof process=="object"&&process?process:{stdout:null,stderr:null},wc=o=>!!o&&typeof o=="object"&&(o instanceof ve||o instanceof ts||yc(o)||bc(o)),yc=o=>!!o&&typeof o=="object"&&o instanceof pr&&typeof o.pipe=="function"&&o.pipe!==ts.Writable.prototype.pipe,bc=o=>!!o&&typeof o=="object"&&o instanceof pr&&typeof o.write=="function"&&typeof o.end=="function",ue=Symbol("EOF"),he=Symbol("maybeEmitEnd"),me=Symbol("emittedEnd"),Zt=Symbol("emittingEnd"),vt=Symbol("emittedError"),ei=Symbol("closed"),Xo=Symbol("read"),ti=Symbol("flush"),Zo=Symbol("flushChunk"),ee=Symbol("encoding"),Be=Symbol("decoder"),A=Symbol("flowing"),xt=Symbol("paused"),Ue=Symbol("resume"),_=Symbol("buffer"),W=Symbol("pipes"),$=Symbol("bufferLength"),sr=Symbol("bufferPush"),ii=Symbol("bufferShift"),P=Symbol("objectMode"),T=Symbol("destroyed"),lr=Symbol("error"),ar=Symbol("emitData"),es=Symbol("emitEnd"),cr=Symbol("emitEnd2"),ne=Symbol("async"),ur=Symbol("abort"),ri=Symbol("aborted"),It=Symbol("signal"),Se=Symbol("dataListeners"),q=Symbol("discarded"),wt=o=>Promise.resolve().then(o),Sc=o=>o(),Cc=o=>o==="end"||o==="finish"||o==="prefinish",Lc=o=>o instanceof ArrayBuffer||!!o&&typeof o=="object"&&o.constructor&&o.constructor.name==="ArrayBuffer"&&o.byteLength>=0,Rc=o=>!Buffer.isBuffer(o)&&ArrayBuffer.isView(o),ni=class{src;dest;opts;ondrain;constructor(e,t,i){this.src=e,this.dest=t,this.opts=i,this.ondrain=()=>e[Ue](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},hr=class extends ni{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,i){super(e,t,i),this.proxyErrors=r=>t.emit("error",r),e.on("error",this.proxyErrors)}},Fc=o=>!!o.objectMode,Ec=o=>!o.objectMode&&!!o.encoding&&o.encoding!=="buffer",ve=class extends pr{[A]=!1;[xt]=!1;[W]=[];[_]=[];[P];[ee];[ne];[Be];[ue]=!1;[me]=!1;[Zt]=!1;[ei]=!1;[vt]=null;[$]=0;[T]=!1;[It];[ri]=!1;[Se]=0;[q]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Fc(t)?(this[P]=!0,this[ee]=null):Ec(t)?(this[ee]=t.encoding,this[P]=!1):(this[P]=!1,this[ee]=null),this[ne]=!!t.async,this[Be]=this[ee]?new Ic(this[ee]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[_]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[W]});let{signal:i}=t;i&&(this[It]=i,i.aborted?this[ur]():i.addEventListener("abort",()=>this[ur]()))}get bufferLength(){return this[$]}get encoding(){return this[ee]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[P]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[ne]}set async(e){this[ne]=this[ne]||!!e}[ur](){this[ri]=!0,this.emit("abort",this[It]?.reason),this.destroy(this[It]?.reason)}get aborted(){return this[ri]}set aborted(e){}write(e,t,i){if(this[ri])return!1;if(this[ue])throw new Error("write after end");if(this[T])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8");let r=this[ne]?wt:Sc;if(!this[P]&&!Buffer.isBuffer(e)){if(Rc(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(Lc(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[P]?(this[A]&&this[$]!==0&&this[ti](!0),this[A]?this.emit("data",e):this[sr](e),this[$]!==0&&this.emit("readable"),i&&r(i),this[A]):e.length?(typeof e=="string"&&!(t===this[ee]&&!this[Be]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[ee]&&(e=this[Be].write(e)),this[A]&&this[$]!==0&&this[ti](!0),this[A]?this.emit("data",e):this[sr](e),this[$]!==0&&this.emit("readable"),i&&r(i),this[A]):(this[$]!==0&&this.emit("readable"),i&&r(i),this[A])}read(e){if(this[T])return null;if(this[q]=!1,this[$]===0||e===0||e&&e>this[$])return this[he](),null;this[P]&&(e=null),this[_].length>1&&!this[P]&&(this[_]=[this[ee]?this[_].join(""):Buffer.concat(this[_],this[$])]);let t=this[Xo](e||null,this[_][0]);return this[he](),t}[Xo](e,t){if(this[P])this[ii]();else{let i=t;e===i.length||e===null?this[ii]():typeof i=="string"?(this[_][0]=i.slice(e),t=i.slice(0,e),this[$]-=e):(this[_][0]=i.subarray(e),t=i.subarray(0,e),this[$]-=e)}return this.emit("data",t),!this[_].length&&!this[ue]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t="utf8"),e!==void 0&&this.write(e,t),i&&this.once("end",i),this[ue]=!0,this.writable=!1,(this[A]||!this[xt])&&this[he](),this}[Ue](){this[T]||(!this[Se]&&!this[W].length&&(this[q]=!0),this[xt]=!1,this[A]=!0,this.emit("resume"),this[_].length?this[ti]():this[ue]?this[he]():this.emit("drain"))}resume(){return this[Ue]()}pause(){this[A]=!1,this[xt]=!0,this[q]=!1}get destroyed(){return this[T]}get flowing(){return this[A]}get paused(){return this[xt]}[sr](e){this[P]?this[$]+=1:this[$]+=e.length,this[_].push(e)}[ii](){return this[P]?this[$]-=1:this[$]-=this[_][0].length,this[_].shift()}[ti](e=!1){do;while(this[Zo](this[ii]())&&this[_].length);!e&&!this[_].length&&!this[ue]&&this.emit("drain")}[Zo](e){return this.emit("data",e),this[A]}pipe(e,t){if(this[T])return e;this[q]=!1;let i=this[me];return t=t||{},e===Jo.stdout||e===Jo.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,i?t.end&&e.end():(this[W].push(t.proxyErrors?new hr(this,e,t):new ni(this,e,t)),this[ne]?wt(()=>this[Ue]()):this[Ue]()),e}unpipe(e){let t=this[W].find(i=>i.dest===e);t&&(this[W].length===1?(this[A]&&this[Se]===0&&(this[A]=!1),this[W]=[]):this[W].splice(this[W].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let i=super.on(e,t);if(e==="data")this[q]=!1,this[Se]++,!this[W].length&&!this[A]&&this[Ue]();else if(e==="readable"&&this[$]!==0)super.emit("readable");else if(Cc(e)&&this[me])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[vt]){let r=t;this[ne]?wt(()=>r.call(this,this[vt])):r.call(this,this[vt])}return i}removeListener(e,t){return this.off(e,t)}off(e,t){let i=super.off(e,t);return e==="data"&&(this[Se]=this.listeners("data").length,this[Se]===0&&!this[q]&&!this[W].length&&(this[A]=!1)),i}removeAllListeners(e){let t=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Se]=0,!this[q]&&!this[W].length&&(this[A]=!1)),t}get emittedEnd(){return this[me]}[he](){!this[Zt]&&!this[me]&&!this[T]&&this[_].length===0&&this[ue]&&(this[Zt]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ei]&&this.emit("close"),this[Zt]=!1)}emit(e,...t){let i=t[0];if(e!=="error"&&e!=="close"&&e!==T&&this[T])return!1;if(e==="data")return!this[P]&&!i?!1:this[ne]?(wt(()=>this[ar](i)),!0):this[ar](i);if(e==="end")return this[es]();if(e==="close"){if(this[ei]=!0,!this[me]&&!this[T])return!1;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[vt]=i,super.emit(lr,i);let n=!this[It]||this.listeners("error").length?super.emit("error",i):!1;return this[he](),n}else if(e==="resume"){let n=super.emit("resume");return this[he](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let r=super.emit(e,...t);return this[he](),r}[ar](e){for(let i of this[W])i.dest.write(e)===!1&&this.pause();let t=this[q]?!1:super.emit("data",e);return this[he](),t}[es](){return this[me]?!1:(this[me]=!0,this.readable=!1,this[ne]?(wt(()=>this[cr]()),!0):this[cr]())}[cr](){if(this[Be]){let t=this[Be].end();if(t){for(let i of this[W])i.dest.write(t);this[q]||super.emit("data",t)}}for(let t of this[W])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[P]||(e.dataLength=0);let t=this.promise();return this.on("data",i=>{e.push(i),this[P]||(e.dataLength+=i.length)}),await t,e}async concat(){if(this[P])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[ee]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(T,()=>t(new Error("stream destroyed"))),this.on("error",i=>t(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[q]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ue])return t();let n,s,a=p=>{this.off("data",l),this.off("end",c),this.off(T,u),t(),s(p)},l=p=>{this.off("error",a),this.off("end",c),this.off(T,u),this.pause(),n({value:p,done:!!this[ue]})},c=()=>{this.off("error",a),this.off("data",l),this.off(T,u),t(),n({done:!0,value:void 0})},u=()=>a(new Error("stream destroyed"));return new Promise((p,h)=>{s=h,n=p,this.once(T,u),this.once("error",a),this.once("end",c),this.once("data",l)})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[q]=!1;let e=!1,t=()=>(this.pause(),this.off(lr,t),this.off(T,t),this.off("end",t),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return t();let r=this.read();return r===null?t():{done:!1,value:r}};return this.once("end",t),this.once(lr,t),this.once(T,t),{next:i,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[T])return e?this.emit("error",e):this.emit(T),this;this[T]=!0,this[q]=!0,this[_].length=0,this[$]=0;let t=this;return typeof t.close=="function"&&!this[ei]&&t.close(),e?this.emit("error",e):this.emit(T),this}static get isStream(){return wc}};var Dc=Oc.native,bt={lstatSync:Ac,readdir:_c,readdirSync:$c,readlinkSync:Mc,realpathSync:Dc,promises:{lstat:Nc,readdir:Bc,readlink:Uc,realpath:Wc}},ss=o=>!o||o===bt||o===Pc?bt:{...bt,...o,promises:{...bt.promises,...o.promises||{}}},ls=/^\\\\\?\\([a-z]:)\\?$/i,zc=o=>o.replace(/\//g,"\\").replace(ls,"$1\\"),Hc=/[\\\/]/,Y=0,as=1,cs=2,oe=4,us=6,hs=8,Ce=10,ps=12,K=15,yt=~K,fr=16,is=32,St=64,te=128,oi=256,li=512,rs=St|te|li,jc=1023,dr=o=>o.isFile()?hs:o.isDirectory()?oe:o.isSymbolicLink()?Ce:o.isCharacterDevice()?cs:o.isBlockDevice()?us:o.isSocket()?ps:o.isFIFO()?as:Y,ns=new Map,Ct=o=>{let e=ns.get(o);if(e)return e;let t=o.normalize("NFKD");return ns.set(o,t),t},os=new Map,si=o=>{let e=os.get(o);if(e)return e;let t=Ct(o.toLowerCase());return os.set(o,t),t},ai=class extends mt{constructor(){super({max:256})}},mr=class extends mt{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1})}},fs=Symbol("PathScurry setAsCwd"),D=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#o;get mode(){return this.#o}#r;get nlink(){return this.#r}#s;get uid(){return this.#s}#w;get gid(){return this.#w}#c;get rdev(){return this.#c}#h;get blksize(){return this.#h}#l;get ino(){return this.#l}#a;get size(){return this.#a}#n;get blocks(){return this.#n}#m;get atimeMs(){return this.#m}#v;get mtimeMs(){return this.#v}#f;get ctimeMs(){return this.#f}#p;get birthtimeMs(){return this.#p}#S;get atime(){return this.#S}#g;get mtime(){return this.#g}#C;get ctime(){return this.#C}#L;get birthtime(){return this.#L}#I;#y;#b;#d;#T;#R;#i;#_;#x;#k;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=Y,i,r,n,s,a){this.name=e,this.#I=n?si(e):Ct(e),this.#i=t&jc,this.nocase=n,this.roots=r,this.root=i||this,this.#_=s,this.#b=a.fullpath,this.#T=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=ss(a.fs)}depth(){return this.#y!==void 0?this.#y:this.parent?this.#y=this.parent.depth()+1:this.#y=0}childrenCache(){return this.#_}resolve(e){if(!e)return this;let t=this.getRootString(e),r=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#$(r):this.#$(r)}#$(e){let t=this;for(let i of e)t=t.child(i);return t}children(){let e=this.#_.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#_.set(this,t),this.#i&=~fr,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),r=this.nocase?si(e):Ct(e);for(let l of i)if(l.#I===r)return l;let n=this.parent?this.sep:"",s=this.#b?this.#b+n+e:void 0,a=this.newChild(e,Y,{...t,parent:this,fullpath:s});return this.canReaddir()||(a.#i|=te),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#T!==void 0)return this.#T;let e=this.name,t=this.parent;if(!t)return this.#T=this.name;let i=t.relative();return i+(!i||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,t=this.parent;if(!t)return this.#R=this.fullpathPosix();let i=t.relativePosix();return i+(!i||!t.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,t=this.parent;if(!t)return this.#b=this.name;let r=t.fullpath()+(t.parent?this.sep:"")+e;return this.#b=r}fullpathPosix(){if(this.#d!==void 0)return this.#d;if(this.sep==="/")return this.#d=this.fullpath();if(!this.parent){let r=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(r)?this.#d=`//?/${r}`:this.#d=r}let e=this.parent,t=e.fullpathPosix(),i=t+(!t||!e.parent?"":"/")+this.name;return this.#d=i}isUnknown(){return(this.#i&K)===Y}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&K)===hs}isDirectory(){return(this.#i&K)===oe}isCharacterDevice(){return(this.#i&K)===cs}isBlockDevice(){return(this.#i&K)===us}isFIFO(){return(this.#i&K)===as}isSocket(){return(this.#i&K)===ps}isSymbolicLink(){return(this.#i&Ce)===Ce}lstatCached(){return this.#i&is?this:void 0}readlinkCached(){return this.#x}realpathCached(){return this.#k}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#x)return!0;if(!this.parent)return!1;let e=this.#i&K;return!(e!==Y&&e!==Ce||this.#i&oi||this.#i&te)}calledReaddir(){return!!(this.#i&fr)}isENOENT(){return!!(this.#i&te)}isNamed(e){return this.nocase?this.#I===si(e):this.#I===Ct(e)}async readlink(){let e=this.#x;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(t);if(i)return this.#x=i}catch(t){this.#u(t.code);return}}readlinkSync(){let e=this.#x;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(t);if(i)return this.#x=i}catch(t){this.#u(t.code);return}}#M(e){this.#i|=fr;for(let t=e.provisional;t<e.length;t++){let i=e[t];i&&i.#O()}}#O(){this.#i&te||(this.#i=(this.#i|te)&yt,this.#F())}#F(){let e=this.children();e.provisional=0;for(let t of e)t.#O()}#E(){this.#i|=li,this.#P()}#P(){if(this.#i&St)return;let e=this.#i;(e&K)===oe&&(e&=yt),this.#i=e|St,this.#F()}#D(e=""){e==="ENOTDIR"||e==="EPERM"?this.#P():e==="ENOENT"?this.#O():this.children().provisional=0}#N(e=""){e==="ENOTDIR"?this.parent.#P():e==="ENOENT"&&this.#O()}#u(e=""){let t=this.#i;t|=oi,e==="ENOENT"&&(t|=te),(e==="EINVAL"||e==="UNKNOWN")&&(t&=yt),this.#i=t,e==="ENOTDIR"&&this.parent&&this.parent.#P()}#B(e,t){return this.#A(e,t)||this.#U(e,t)}#U(e,t){let i=dr(e),r=this.newChild(e.name,i,{parent:this}),n=r.#i&K;return n!==oe&&n!==Ce&&n!==Y&&(r.#i|=St),t.unshift(r),t.provisional++,r}#A(e,t){for(let i=t.provisional;i<t.length;i++){let r=t[i];if((this.nocase?si(e.name):Ct(e.name))===r.#I)return this.#W(e,r,i,t)}}#W(e,t,i,r){let n=t.name;return t.#i=t.#i&yt|dr(e),n!==e.name&&(t.name=e.name),i!==r.provisional&&(i===r.length-1?r.pop():r.splice(i,1),r.unshift(t)),r.provisional++,t}async lstat(){if((this.#i&te)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#N(e.code)}}lstatSync(){if((this.#i&te)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#N(e.code)}}#G(e){let{atime:t,atimeMs:i,birthtime:r,birthtimeMs:n,blksize:s,blocks:a,ctime:l,ctimeMs:c,dev:u,gid:p,ino:h,mode:f,mtime:m,mtimeMs:d,nlink:g,rdev:v,size:I,uid:b}=e;this.#S=t,this.#m=i,this.#L=r,this.#p=n,this.#h=s,this.#n=a,this.#C=l,this.#f=c,this.#t=u,this.#w=p,this.#l=h,this.#o=f,this.#g=m,this.#v=d,this.#r=g,this.#c=v,this.#a=I,this.#s=b;let w=dr(e);this.#i=this.#i&yt|w|is,w!==Y&&w!==oe&&w!==Ce&&(this.#i|=St)}#H=[];#j=!1;#q(e){this.#j=!1;let t=this.#H.slice();this.#H.length=0,t.forEach(i=>i(null,e))}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let n=i.slice(0,i.provisional);t?e(null,n):queueMicrotask(()=>e(null,n));return}if(this.#H.push(e),this.#j)return;this.#j=!0;let r=this.fullpath();this.#e.readdir(r,{withFileTypes:!0},(n,s)=>{if(n)this.#D(n.code),i.provisional=0;else{for(let a of s)this.#B(a,i);this.#M(i)}this.#q(i.slice(0,i.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#z)await this.#z;else{let i=()=>{};this.#z=new Promise(r=>i=r);try{for(let r of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#B(r,e);this.#M(e)}catch(r){this.#D(r.code),e.provisional=0}this.#z=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let i of this.#e.readdirSync(t,{withFileTypes:!0}))this.#B(i,e);this.#M(e)}catch(i){this.#D(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&rs)return!1;let e=K&this.#i;return e===Y||e===oe||e===Ce}shouldWalk(e,t){return(this.#i&oe)===oe&&!(this.#i&rs)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#k)return this.#k;if(!((li|oi|te)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#k=this.resolve(e)}catch{this.#E()}}realpathSync(){if(this.#k)return this.#k;if(!((li|oi|te)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#k=this.resolve(e)}catch{this.#E()}}[fs](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),i=[],r=this;for(;r&&r.parent;)t.add(r),r.#T=i.join(this.sep),r.#R=i.join("/"),r=r.parent,i.push("..");for(r=e;r&&r.parent&&!t.has(r);)r.#T=void 0,r.#R=void 0,r=r.parent}},ci=class o extends D{sep="\\";splitSep=Hc;constructor(e,t=Y,i,r,n,s,a){super(e,t,i,r,n,s,a)}newChild(e,t=Y,i={}){return new o(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return gr.parse(e).root}getRoot(e){if(e=zc(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,i]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=i;return this.roots[e]=new We(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(ls,"$1\\"),e===t}},ui=class o extends D{splitSep="/";sep="/";constructor(e,t=Y,i,r,n,s,a){super(e,t,i,r,n,s,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=Y,i={}){return new o(e,t,this.root,this.roots,this.nocase,this.childrenCache(),i)}},hi=class{root;rootPath;roots;cwd;#e;#t;#o;nocase;#r;constructor(e=process.cwd(),t,i,{nocase:r,childrenCacheSize:n=16*1024,fs:s=bt}={}){this.#r=ss(s),(e instanceof URL||e.startsWith("file://"))&&(e=kc(e));let a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new ai,this.#t=new ai,this.#o=new mr(n);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),r===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=r,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let c=this.root,u=l.length-1,p=t.sep,h=this.rootPath,f=!1;for(let m of l){let d=u--;c=c.child(m,{relative:new Array(d).fill("..").join(p),relativePosix:new Array(d).fill("..").join("/"),fullpath:h+=(f?"":p)+m}),f=!0}this.cwd=c}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#o}resolve(...e){let t="";for(let n=e.length-1;n>=0;n--){let s=e[n];if(!(!s||s===".")&&(t=t?`${s}/${t}`:s,this.isAbsolute(s)))break}let i=this.#e.get(t);if(i!==void 0)return i;let r=this.cwd.resolve(t).fullpath();return this.#e.set(t,r),r}resolvePosix(...e){let t="";for(let n=e.length-1;n>=0;n--){let s=e[n];if(!(!s||s===".")&&(t=t?`${s}/${t}`:s,this.isAbsolute(s)))break}let i=this.#t.get(t);if(i!==void 0)return i;let r=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,r),r}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i}=t;if(e.canReaddir()){let r=await e.readdir();return i?r:r.map(n=>n.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i=!0}=t;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(r=>r.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let i=await e.readlink();return t?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return t?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let i=await e.realpath();return t?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return t?i:i?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:n,walkFilter:s}=t,a=[];(!n||n(e))&&a.push(i?e:e.fullpath());let l=new Set,c=(p,h)=>{l.add(p),p.readdirCB((f,m)=>{if(f)return h(f);let d=m.length;if(!d)return h();let g=()=>{--d===0&&h()};for(let v of m)(!n||n(v))&&a.push(i?v:v.fullpath()),r&&v.isSymbolicLink()?v.realpath().then(I=>I?.isUnknown()?I.lstat():I).then(I=>I?.shouldWalk(l,s)?c(I,g):g()):v.shouldWalk(l,s)?c(v,g):g()},!0)},u=e;return new Promise((p,h)=>{c(u,f=>{if(f)return h(f);p(a)})})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:n,walkFilter:s}=t,a=[];(!n||n(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let c of l){let u=c.readdirSync();for(let p of u){(!n||n(p))&&a.push(i?p:p.fullpath());let h=p;if(p.isSymbolicLink()){if(!(r&&(h=p.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,s)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:n,walkFilter:s}=t;(!n||n(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let c=l.readdirSync();for(let u of c){(!n||n(u))&&(yield i?u:u.fullpath());let p=u;if(u.isSymbolicLink()){if(!(r&&(p=u.realpathSync())))continue;p.isUnknown()&&p.lstatSync()}p.shouldWalk(a,s)&&a.add(p)}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:n,walkFilter:s}=t,a=new ve({objectMode:!0});(!n||n(e))&&a.write(i?e:e.fullpath());let l=new Set,c=[e],u=0,p=()=>{let h=!1;for(;!h;){let f=c.shift();if(!f){u===0&&a.end();return}u++,l.add(f);let m=(g,v,I=!1)=>{if(g)return a.emit("error",g);if(r&&!I){let b=[];for(let w of v)w.isSymbolicLink()&&b.push(w.realpath().then(S=>S?.isUnknown()?S.lstat():S));if(b.length){Promise.all(b).then(()=>m(null,v,!0));return}}for(let b of v)b&&(!n||n(b))&&(a.write(i?b:b.fullpath())||(h=!0));u--;for(let b of v){let w=b.realpathCached()||b;w.shouldWalk(l,s)&&c.push(w)}h&&!a.flowing?a.once("drain",p):d||p()},d=!0;f.readdirCB(m,!0),d=!1}};return p(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof D||(t=e,e=this.cwd);let{withFileTypes:i=!0,follow:r=!1,filter:n,walkFilter:s}=t,a=new ve({objectMode:!0}),l=new Set;(!n||n(e))&&a.write(i?e:e.fullpath());let c=[e],u=0,p=()=>{let h=!1;for(;!h;){let f=c.shift();if(!f){u===0&&a.end();return}u++,l.add(f);let m=f.readdirSync();for(let d of m)(!n||n(d))&&(a.write(i?d:d.fullpath())||(h=!0));u--;for(let d of m){let g=d;if(d.isSymbolicLink()){if(!(r&&(g=d.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(l,s)&&c.push(g)}}h&&!a.flowing&&a.once("drain",p)};return p(),a}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[fs](t)}},We=class extends hi{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,gr,"\\",{...t,nocase:i}),this.nocase=i;for(let r=this.cwd;r;r=r.parent)r.nocase=this.nocase}parseRootPath(e){return gr.parse(e).root.toUpperCase()}newRoot(e){return new ci(this.rootPath,oe,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},ze=class extends hi{sep="/";constructor(e=process.cwd(),t={}){let{nocase:i=!1}=t;super(e,Tc,"/",{...t,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new ui(this.rootPath,oe,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},Lt=class extends ze{constructor(e=process.cwd(),t={}){let{nocase:i=!0}=t;super(e,{...t,nocase:i})}},tp=process.platform==="win32"?ci:ui,ds=process.platform==="win32"?We:process.platform==="darwin"?Lt:ze;var Gc=o=>o.length>=1,qc=o=>o.length>=1,He=class o{#e;#t;#o;length;#r;#s;#w;#c;#h;#l;#a=!0;constructor(e,t,i,r){if(!Gc(e))throw new TypeError("empty pattern list");if(!qc(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#o=i,this.#r=r,this.#o===0){if(this.isUNC()){let[n,s,a,l,...c]=this.#e,[u,p,h,f,...m]=this.#t;c[0]===""&&(c.shift(),m.shift());let d=[n,s,a,l,""].join("/"),g=[u,p,h,f,""].join("/");this.#e=[d,...c],this.#t=[g,...m],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[n,...s]=this.#e,[a,...l]=this.#t;s[0]===""&&(s.shift(),l.shift());let c=n+"/",u=a+"/";this.#e=[c,...s],this.#t=[u,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#o]}isString(){return typeof this.#e[this.#o]=="string"}isGlobstar(){return this.#e[this.#o]===O}isRegExp(){return this.#e[this.#o]instanceof RegExp}globString(){return this.#w=this.#w||(this.#o===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#o).join("/"))}hasMore(){return this.length>this.#o+1}rest(){return this.#s!==void 0?this.#s:this.hasMore()?(this.#s=new o(this.#e,this.#t,this.#o+1,this.#r),this.#s.#l=this.#l,this.#s.#h=this.#h,this.#s.#c=this.#c,this.#s):this.#s=null}isUNC(){let e=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#r==="win32"&&this.#o===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#r==="win32"&&this.#o===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#o===0?e:""}checkFollowGlobstar(){return!(this.#o===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#o===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};var Vc=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",je=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:i,noext:r,noglobstar:n,platform:s=Vc}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=s,this.mmopts={dot:!0,nobrace:t,nocase:i,noext:r,noglobstar:n,optimizationLevel:2,platform:s,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let t=new G(e,this.mmopts);for(let i=0;i<t.set.length;i++){let r=t.set[i],n=t.globParts[i];if(!r||!n)throw new Error("invalid pattern object");for(;r[0]==="."&&n[0]===".";)r.shift(),n.shift();let s=new He(r,n,0,this.platform),a=new G(s.globString(),this.mmopts),l=n[n.length-1]==="**",c=s.isAbsolute();c?this.absolute.push(a):this.relative.push(a),l&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let t=e.fullpath(),i=`${t}/`,r=e.relative()||".",n=`${r}/`;for(let s of this.relative)if(s.match(r)||s.match(n))return!0;for(let s of this.absolute)if(s.match(t)||s.match(i))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let r of this.relativeChildren)if(r.match(i))return!0;for(let r of this.absoluteChildren)if(r.match(t))return!0;return!1}};var vr=class o{store;constructor(e=new Map){this.store=e}copy(){return new o(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let i=e.fullpath(),r=this.store.get(i);r?r.add(t.globString()):this.store.set(i,new Set([t.globString()]))}},xr=class{store=new Map;add(e,t,i){let r=(t?2:0)|(i?1:0),n=this.store.get(e);this.store.set(e,n===void 0?r:r&n)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},Ir=class{store=new Map;add(e,t){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(r=>r.globString()===t.globString())||i.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}},Rt=class o{hasWalkedCache;matches=new xr;subwalks=new Ir;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new vr}processPatterns(e,t){this.patterns=t;let i=t.map(r=>[e,r]);for(let[r,n]of i){this.hasWalkedCache.storeWalked(r,n);let s=n.root(),a=n.isAbsolute()&&this.opts.absolute!==!1;if(s){r=r.resolve(s==="/"&&this.opts.root!==void 0?this.opts.root:s);let p=n.rest();if(p)n=p;else{this.matches.add(r,!0,!1);continue}}if(r.isENOENT())continue;let l,c,u=!1;for(;typeof(l=n.pattern())=="string"&&(c=n.rest());)r=r.resolve(l),n=c,u=!0;if(l=n.pattern(),c=n.rest(),u){if(this.hasWalkedCache.hasWalked(r,n))continue;this.hasWalkedCache.storeWalked(r,n)}if(typeof l=="string"){let p=l===".."||l===""||l===".";this.matches.add(r.resolve(l),a,p);continue}else if(l===O){(!r.isSymbolicLink()||this.follow||n.checkFollowGlobstar())&&this.subwalks.add(r,n);let p=c?.pattern(),h=c?.rest();if(!c||(p===""||p===".")&&!h)this.matches.add(r,a,p===""||p===".");else if(p===".."){let f=r.parent||r;h?this.hasWalkedCache.hasWalked(f,h)||this.subwalks.add(f,h):this.matches.add(f,a,!0)}}else l instanceof RegExp&&this.subwalks.add(r,n)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new o(this.opts,this.hasWalkedCache)}filterEntries(e,t){let i=this.subwalks.get(e),r=this.child();for(let n of t)for(let s of i){let a=s.isAbsolute(),l=s.pattern(),c=s.rest();l===O?r.testGlobstar(n,s,c,a):l instanceof RegExp?r.testRegExp(n,l,c,a):r.testString(n,l,c,a)}return r}testGlobstar(e,t,i,r){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,r,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(i&&t.checkFollowGlobstar()?this.subwalks.add(e,i):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),i){let n=i.pattern();if(typeof n=="string"&&n!==".."&&n!==""&&n!==".")this.testString(e,n,i.rest(),r);else if(n===".."){let s=e.parent||e;this.subwalks.add(s,i)}else n instanceof RegExp&&this.testRegExp(e,n,i.rest(),r)}}testRegExp(e,t,i,r){t.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,r,!1))}testString(e,t,i,r){e.isNamed(t)&&(i?this.subwalks.add(e,i):this.matches.add(e,r,!1))}};var Qc=(o,e)=>typeof o=="string"?new je([o],e):Array.isArray(o)?new je(o,e):o,pi=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#o;signal;maxDepth;includeChildMatches;constructor(e,t,i){if(this.patterns=e,this.path=t,this.opts=i,this.#o=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#t=Qc(i.ignore??[],i),!this.includeChildMatches&&typeof this.#t.add!="function")){let r="cannot ignore child matches, ignore lacks add() method.";throw new Error(r)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#r(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#s(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let s=await n.realpath();s&&(s.isUnknown()||this.opts.stat)&&await s.lstat()}return this.matchCheckTest(n,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let s=n.realpathSync();s&&(s?.isUnknown()||this.opts.stat)&&s.lstatSync()}return this.matchCheckTest(n,t)}matchFinish(e,t){if(this.#r(e))return;if(!this.includeChildMatches&&this.#t?.add){let n=`${e.relativePosix()}/**`;this.#t.add(n)}let i=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let r=this.opts.mark&&e.isDirectory()?this.#o:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let n=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(n+r)}else{let n=this.opts.posix?e.relativePosix():e.relative(),s=this.opts.dotRelative&&!n.startsWith(".."+this.#o)?"."+this.#o:"";this.matchEmit(n?s+n+r:"."+r)}}async match(e,t,i){let r=await this.matchCheck(e,i);r&&this.matchFinish(r,t)}matchSync(e,t,i){let r=this.matchCheckSync(e,i);r&&this.matchFinish(r,t)}walkCB(e,t,i){this.signal?.aborted&&i(),this.walkCB2(e,t,new Rt(this.opts),i)}walkCB2(e,t,i,r){if(this.#s(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2(e,t,i,r));return}i.processPatterns(e,t);let n=1,s=()=>{--n===0&&r()};for(let[a,l,c]of i.matches.entries())this.#r(a)||(n++,this.match(a,l,c).then(()=>s()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;n++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,s):a.readdirCB((c,u)=>this.walkCB3(a,u,i,s),!0)}s()}walkCB3(e,t,i,r){i=i.filterEntries(e,t);let n=1,s=()=>{--n===0&&r()};for(let[a,l,c]of i.matches.entries())this.#r(a)||(n++,this.match(a,l,c).then(()=>s()));for(let[a,l]of i.subwalks.entries())n++,this.walkCB2(a,l,i.child(),s);s()}walkCBSync(e,t,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,t,new Rt(this.opts),i)}walkCB2Sync(e,t,i,r){if(this.#s(e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,i,r));return}i.processPatterns(e,t);let n=1,s=()=>{--n===0&&r()};for(let[a,l,c]of i.matches.entries())this.#r(a)||this.matchSync(a,l,c);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;n++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,s)}s()}walkCB3Sync(e,t,i,r){i=i.filterEntries(e,t);let n=1,s=()=>{--n===0&&r()};for(let[a,l,c]of i.matches.entries())this.#r(a)||this.matchSync(a,l,c);for(let[a,l]of i.subwalks.entries())n++,this.walkCB2Sync(a,l,i.child(),s);s()}},Ft=class extends pi{matches=new Set;constructor(e,t,i){super(e,t,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},Et=class extends pi{results;constructor(e,t,i){super(e,t,i),this.results=new ve({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var Yc=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ie=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=Kc(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=t.platform||Yc,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=t.platform==="win32"?We:t.platform==="darwin"?Lt:t.platform?ze:ds;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",r={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},n=this.pattern.map(l=>new G(l,r)),[s,a]=n.reduce((l,c)=>(l[0].push(...c.set),l[1].push(...c.globParts),l),[[],[]]);this.patterns=s.map((l,c)=>{let u=a[c];if(!u)throw new Error("invalid pattern object");return new He(l,u,0,this.platform)})}async walk(){return[...await new Ft(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Ft(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Et(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Et(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var wr=(o,e={})=>{Array.isArray(o)||(o=[o]);for(let t of o)if(new G(t,e).hasMagic())return!0;return!1};function di(o,e={}){return new ie(o,e).streamSync()}function ms(o,e={}){return new ie(o,e).stream()}function vs(o,e={}){return new ie(o,e).walkSync()}async function gs(o,e={}){return new ie(o,e).walk()}function gi(o,e={}){return new ie(o,e).iterateSync()}function xs(o,e={}){return new ie(o,e).iterate()}var Jc=di,Xc=Object.assign(ms,{sync:di}),Zc=gi,eu=Object.assign(xs,{sync:gi}),tu=Object.assign(vs,{stream:di,iterate:gi}),fi=Object.assign(gs,{glob:gs,globSync:vs,sync:tu,globStream:ms,stream:Xc,globStreamSync:di,streamSync:Jc,globIterate:xs,iterate:eu,globIterateSync:gi,iterateSync:Zc,Glob:ie,hasMagic:wr,escape:Pe,unescape:Z});fi.glob=fi;var Is=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.divider-1",next:["$color.stroke.on-image"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],ws=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.on-image"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],ys=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.gray-1000"]},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"]},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"]},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"]},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"]},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"]},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-800"]},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"]},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"]},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"]},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"]},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-200"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-white-alpha-50",next:[],description:"deleted"},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-200"]}],yr=[...Is,...ws,...ys];var bs=[{previous:"IconAddThin",next:["IconPlusLine"]},{previous:"IconAddRegular",next:["IconPlusLine"]},{previous:"IconAddFill",next:["IconPlusFill"]},{previous:"IconAddCircleThin",next:["IconPlusCircleLine"]},{previous:"IconAddCircleRegular",next:["IconPlusCircleLine"]},{previous:"IconAddCircleFill",next:["IconPlusCircleFill"]},{previous:"IconAebThin",next:["IconCarFrontUpsideWave2ReversedUpLine"]},{previous:"IconAebRegular",next:["IconCarFrontUpsideWave2ReversedUpLine"]},{previous:"IconAebFill",next:["IconCarFrontUpsideWave2ReversedUpFill"]},{previous:"IconAiThin",next:["IconSparkle2Line"]},{previous:"IconAiRegular",next:["IconSparkle2Line"]},{previous:"IconAiFill",next:["IconSparkle2Fill"]},{previous:"IconAndroidShareThin",next:["IconAndroidshareLine"]},{previous:"IconAndroidShareRegular",next:["IconAndroidshareLine"]},{previous:"IconAndroidShareFill",next:["IconAndroidshareFill"]},{previous:"IconArrowThin",next:["IconArrowUpRightLine"]},{previous:"IconArrowRegular",next:["IconArrowUpRightLine"]},{previous:"IconArrowFill",next:["IconArrowUpRightFill"]},{previous:"IconArrowDownwardThin",next:["IconArrowDownLine"]},{previous:"IconArrowDownwardRegular",next:["IconArrowDownLine"]},{previous:"IconArrowDownwardFill",next:["IconArrowDownFill"]},{previous:"IconArrowDropDownThin",next:["IconTriangleDownSmallLine"]},{previous:"IconArrowDropDownRegular",next:["IconTriangleDownSmallLine"]},{previous:"IconArrowDropDownFill",next:["IconTriangleDownSmallFill"]},{previous:"IconArrowDropUpThin",next:["IconTriangleUpSmallLine"]},{previous:"IconArrowDropUpRegular",next:["IconTriangleUpSmallLine"]},{previous:"IconArrowDropUpFill",next:["IconTriangleUpSmallFill"]},{previous:"IconArrowUpwardThin",next:["IconArrowUpLine"]},{previous:"IconArrowUpwardRegular",next:["IconArrowUpLine"]},{previous:"IconArrowUpwardFill",next:["IconArrowUpFill"]},{previous:"IconArticleThin",next:["IconArticleLine"]},{previous:"IconArticleRegular",next:["IconArticleLine"]},{previous:"IconArticleFill",next:["IconArticleFill"]},{previous:"IconBackwardThin",next:["IconArrowLeftLine"]},{previous:"IconBackwardRegular",next:["IconArrowLeftLine"]},{previous:"IconBackwardFill",next:["IconArrowLeftFill"]},{previous:"IconBillThin",next:["IconReceiptLine"]},{previous:"IconBillRegular",next:["IconReceiptLine"]},{previous:"IconBillFill",next:["IconReceiptFill"]},{previous:"IconBoldThin",next:["IconTUppercaseSerifLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconBoldRegular",next:["IconTUppercaseSerifLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconBoldFill",next:["IconTUppercaseSerifFill"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconBookmarkThin",next:["IconBookmarkLine"]},{previous:"IconBookmarkRegular",next:["IconBookmarkLine"]},{previous:"IconBookmarkFill",next:["IconBookmarkFill"]},{previous:"IconBookmarkListThin",next:["IconHorizline3VerticalStarLine"]},{previous:"IconBookmarkListRegular",next:["IconHorizline3VerticalStarLine"]},{previous:"IconBookmarkListFill",next:["IconHorizline3VerticalStarFill"]},{previous:"IconCalendarThin",next:["IconCalendarLine"]},{previous:"IconCalendarRegular",next:["IconCalendarLine"]},{previous:"IconCalendarFill",next:["IconCalendarFill"]},{previous:"IconCallThin",next:["IconPhoneLine"]},{previous:"IconCallRegular",next:["IconPhoneLine"]},{previous:"IconCallFill",next:["IconPhoneFill"]},{previous:"IconCallDeclinedThin",next:["IconPhoneXmarkLine"]},{previous:"IconCallDeclinedRegular",next:["IconPhoneXmarkLine"]},{previous:"IconCallDeclinedFill",next:["IconPhoneXmarkFill"]},{previous:"IconCameraThin",next:["IconCameraLine"]},{previous:"IconCameraRegular",next:["IconCameraLine"]},{previous:"IconCameraFill",next:["IconCameraFill"]},{previous:"IconCarThin",next:["IconCarFrontsideLine"]},{previous:"IconCarRegular",next:["IconCarFrontsideLine"]},{previous:"IconCarFill",next:["IconCarFrontsideFill"]},{previous:"IconCarAroundViewThin",next:["IconArrowClockwiseOvalLine"]},{previous:"IconCarAroundViewRegular",next:["IconArrowClockwiseOvalLine"]},{previous:"IconCarAroundViewFill",next:["IconArrowClockwiseOvalFill"]},{previous:"IconCarBlindSpotThin",next:["IconCarRearUpsideWave2ReversedDownLeftLine"]},{previous:"IconCarBlindSpotRegular",next:["IconCarRearUpsideWave2ReversedDownLeftLine"]},{previous:"IconCarBlindSpotFill",next:["IconCarRearUpsideWave2ReversedDownLeftFill"]},{previous:"IconCarCruiseControlThin",next:["IconSpeedometerLine"]},{previous:"IconCarCruiseControlRegular",next:["IconSpeedometerLine"]},{previous:"IconCarCruiseControlFill",next:["IconSpeedometerFill"]},{previous:"IconCarEpbThin",next:["IconEpbLine"]},{previous:"IconCarEpbRegular",next:["IconEpbLine"]},{previous:"IconCarEpbFill",next:["IconEpbFill"]},{previous:"IconCarHeatedSeatThin",next:["IconSeatLeftHeatwave2Line"]},{previous:"IconCarHeatedSeatRegular",next:["IconSeatLeftHeatwave2Line"]},{previous:"IconCarHeatedSeatFill",next:["IconSeatLeftHeatwave2Fill"]},{previous:"IconCarHeatedSteeringWheelThin",next:["IconSteeringwheelHeatwave2Line"]},{previous:"IconCarHeatedSteeringWheelRegular",next:["IconSteeringwheelHeatwave2Line"]},{previous:"IconCarHeatedSteeringWheelFill",next:["IconSteeringwheelHeatwave2Fill"]},{previous:"IconCarLdwsThin",next:["IconRoadlaneLine"]},{previous:"IconCarLdwsRegular",next:["IconRoadlaneLine"]},{previous:"IconCarLdwsFill",next:["IconRoadlaneFill"]},{previous:"IconCarLeatherSeatThin",next:["IconSeatLeftLine"]},{previous:"IconCarLeatherSeatRegular",next:["IconSeatLeftLine"]},{previous:"IconCarLeatherSeatFill",next:["IconSeatLeftFill"]},{previous:"IconCarNavigationThin",next:["IconCompassLine"]},{previous:"IconCarNavigationRegular",next:["IconCompassLine"]},{previous:"IconCarNavigationFill",next:["IconCompassFill"]},{previous:"IconCarPowerTrunkThin",next:["IconCarRearTrunkOpenLeftsideLine"]},{previous:"IconCarPowerTrunkRegular",next:["IconCarRearTrunkOpenLeftsideLine"]},{previous:"IconCarPowerTrunkFill",next:["IconCarRearTrunkOpenLeftsideFill"]},{previous:"IconCarRearCameraThin",next:["IconCarRearUpsideSectorDownLine"]},{previous:"IconCarRearCameraRegular",next:["IconCarRearUpsideSectorDownLine"]},{previous:"IconCarRearCameraFill",next:["IconCarRearUpsideSectorDownFill"]},{previous:"IconCarRearSensorThin",next:["IconCarRearUpsideWave2ReversedDownLine"]},{previous:"IconCarRearSensorRegular",next:["IconCarRearUpsideWave2ReversedDownLine"]},{previous:"IconCarRearSensorFill",next:["IconCarRearUpsideWave2ReversedDownFill"]},{previous:"IconCarSmartKeyThin",next:["IconSmartkeyLine"]},{previous:"IconCarSmartKeyRegular",next:["IconSmartkeyLine"]},{previous:"IconCarSmartKeyFill",next:["IconSmartkeyFill"]},{previous:"IconCarVentilationSeatThin",next:["IconSeatLeftFanLine"]},{previous:"IconCarVentilationSeatRegular",next:["IconSeatLeftFanLine"]},{previous:"IconCarVentilationSeatFill",next:["IconSeatLeftFanFill"]},{previous:"IconCartThin",next:["IconCartLine"]},{previous:"IconCartRegular",next:["IconCartLine"]},{previous:"IconCartFill",next:["IconCartFill"]},{previous:"IconCertificationThin",next:["IconCrosshairLine"]},{previous:"IconCertificationRegular",next:["IconCrosshairLine"]},{previous:"IconCertificationFill",next:["IconCrosshairFill"]},{previous:"IconChallengeThin",next:["IconFlagHillLine"]},{previous:"IconChallengeRegular",next:["IconFlagHillLine"]},{previous:"IconChallengeFill",next:["IconFlagHillFill"]},{previous:"IconChartThin",next:["IconBarchartSquareLine"]},{previous:"IconChartRegular",next:["IconBarchartSquareLine"]},{previous:"IconChartFill",next:["IconBarchartSquareFill"]},{previous:"IconChatBubbleCheckThin",next:["IconCheckmarkChatbubbleLeftLine"]},{previous:"IconChatBubbleCheckRegular",next:["IconCheckmarkChatbubbleLeftLine"]},{previous:"IconChatBubbleCheckFill",next:["IconCheckmarkChatbubbleLeftFill"]},{previous:"IconChattingThin",next:["IconDot3HorizontalChatbubbleLeftLine"]},{previous:"IconChattingRegular",next:["IconDot3HorizontalChatbubbleLeftLine"]},{previous:"IconChattingFill",next:["IconDot3HorizontalChatbubbleLeftFill"]},{previous:"IconChattingSendThin",next:["IconPaperplaneLine"]},{previous:"IconChattingSendRegular",next:["IconPaperplaneLine"]},{previous:"IconChattingSendFill",next:["IconPaperplaneFill"]},{previous:"IconCheckThin",next:["IconCheckmarkLine"]},{previous:"IconCheckRegular",next:["IconCheckmarkLine"]},{previous:"IconCheckFill",next:["IconCheckmarkFill"]},{previous:"IconCheckFlowerThin",next:["IconCheckmarkFlowerLine"]},{previous:"IconCheckFlowerRegular",next:["IconCheckmarkFlowerLine"]},{previous:"IconCheckFlowerFill",next:["IconCheckmarkFlowerFill"]},{previous:"IconChevronLeftThin",next:["IconChevronLeftLine"]},{previous:"IconChevronLeftRegular",next:["IconChevronLeftLine"]},{previous:"IconChevronLeftFill",next:["IconChevronLeftFill"]},{previous:"IconChevronRightThin",next:["IconChevronRightLine"]},{previous:"IconChevronRightRegular",next:["IconChevronRightLine"]},{previous:"IconChevronRightFill",next:["IconChevronRightFill"]},{previous:"IconClickThin",next:["IconHandPointUpLine"]},{previous:"IconClickRegular",next:["IconHandPointUpLine"]},{previous:"IconClickFill",next:["IconHandPointUpFill"]},{previous:"IconClockThin",next:["IconClockLine"]},{previous:"IconClockRegular",next:["IconClockLine"]},{previous:"IconClockFill",next:["IconClockFill"]},{previous:"IconCloseThin",next:["IconXmarkLine"]},{previous:"IconCloseRegular",next:["IconXmarkLine"]},{previous:"IconCloseFill",next:["IconXmarkFill"]},{previous:"IconCobuyingThin",next:["IconShoppingbag2StackedLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconCobuyingRegular",next:["IconShoppingbag2StackedLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconCobuyingFill",next:["IconShoppingbag2StackedFill"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconCommunityThin",next:["IconPostLine"]},{previous:"IconCommunityRegular",next:["IconPostLine"]},{previous:"IconCommunityFill",next:["IconPostFill"]},{previous:"IconCondoThin",next:["IconBuilding2Line"]},{previous:"IconCondoRegular",next:["IconBuilding2Line"]},{previous:"IconCondoFill",next:["IconBuilding2Fill"]},{previous:"IconConfirmationThin",next:["IconCheckmarkShieldLine"]},{previous:"IconConfirmationRegular",next:["IconCheckmarkShieldLine"]},{previous:"IconConfirmationFill",next:["IconCheckmarkShieldFill"]},{previous:"IconConfirmationPayThin",next:["IconWonShieldLine"]},{previous:"IconConfirmationPayRegular",next:["IconWonShieldLine"]},{previous:"IconConfirmationPayFill",next:["IconWonShieldFill"]},{previous:"IconConfirmationProfileThin",next:["IconPersonShieldLine"]},{previous:"IconConfirmationProfileRegular",next:["IconPersonShieldLine"]},{previous:"IconConfirmationProfileFill",next:["IconPersonShieldFill"]},{previous:"IconContentsThin",next:["IconGridHeartLine"]},{previous:"IconContentsRegular",next:["IconGridHeartLine"]},{previous:"IconContentsFill",next:["IconGridHeartFill"]},{previous:"IconConvertThin",next:["IconArrowRightArrowLeftLine"]},{previous:"IconConvertRegular",next:["IconArrowRightArrowLeftLine"]},{previous:"IconConvertFill",next:["IconArrowRightArrowLeftFill"]},{previous:"IconCopyThin",next:["IconSquare2StackedLine"]},{previous:"IconCopyRegular",next:["IconSquare2StackedLine"]},{previous:"IconCopyFill",next:["IconSquare2StackedFill"]},{previous:"IconCouponThin",next:["IconCouponLine"]},{previous:"IconCouponRegular",next:["IconCouponLine"]},{previous:"IconCouponFill",next:["IconCouponFill"]},{previous:"IconCouponDownloadDoneThin",next:["IconCheckmarkHorizlineLine"]},{previous:"IconCouponDownloadDoneRegular",next:["IconCheckmarkHorizlineLine"]},{previous:"IconCouponDownloadDoneFill",next:["IconCheckmarkHorizlineFill"]},{previous:"IconCouponUsedThin",next:["IconCheckmarkCouponLine"]},{previous:"IconCouponUsedRegular",next:["IconCheckmarkCouponLine"]},{previous:"IconCouponUsedFill",next:["IconCheckmarkCouponFill"]},{previous:"IconDeleteKeyboardThin",next:["IconBackspacekeyLine"]},{previous:"IconDeleteKeyboardRegular",next:["IconBackspacekeyLine"]},{previous:"IconDeleteKeyboardFill",next:["IconBackspacekeyFill"]},{previous:"IconDeliveryThin",next:["IconTruckLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconDeliveryRegular",next:["IconTruckLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconDeliveryFill",next:["IconTruckFill"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconDirectionThin",next:["IconArrowRightAngledLine"]},{previous:"IconDirectionRegular",next:["IconArrowRightAngledLine"]},{previous:"IconDirectionFill",next:["IconArrowRightAngledFill"]},{previous:"IconDownloadThin",next:["IconArrowDownHorizlineLine"]},{previous:"IconDownloadRegular",next:["IconArrowDownHorizlineLine"]},{previous:"IconDownloadFill",next:["IconArrowDownHorizlineFill"]},{previous:"IconEditThin",next:["IconEraserHorizlineLine"]},{previous:"IconEditRegular",next:["IconEraserHorizlineLine"]},{previous:"IconEditFill",next:["IconEraserHorizlineFill"]},{previous:"IconEmoticonThin",next:["IconFaceSmileCircleLine"]},{previous:"IconEmoticonRegular",next:["IconFaceSmileCircleLine"]},{previous:"IconEmoticonFill",next:["IconFaceSmileCircleFill"]},{previous:"IconEmoticonBadThin",next:["IconFaceSadCircleLine"]},{previous:"IconEmoticonBadRegular",next:["IconFaceSadCircleLine"]},{previous:"IconEmoticonBadFill",next:["IconFaceSadCircleFill"]},{previous:"IconExpandThin",next:["IconArrowUpRightArrowDownLeftLine"]},{previous:"IconExpandRegular",next:["IconArrowUpRightArrowDownLeftLine"]},{previous:"IconExpandFill",next:["IconArrowUpRightArrowDownLeftFill"]},{previous:"IconExpandLessThin",next:["IconChevronUpLine"]},{previous:"IconExpandLessRegular",next:["IconChevronUpLine"]},{previous:"IconExpandLessFill",next:["IconChevronUpFill"]},{previous:"IconExpandMoreThin",next:["IconChevronDownLine"]},{previous:"IconExpandMoreRegular",next:["IconChevronDownLine"]},{previous:"IconExpandMoreFill",next:["IconChevronDownFill"]},{previous:"IconFileThin",next:["IconPaperclipLine"]},{previous:"IconFileRegular",next:["IconPaperclipLine"]},{previous:"IconFileFill",next:["IconPaperclipFill"]},{previous:"IconFilter02Thin",next:["IconSlider2HorizontalLine"]},{previous:"IconFilter02Regular",next:["IconSlider2HorizontalLine"]},{previous:"IconFilter02Fill",next:["IconSlider2HorizontalFill"]},{previous:"IconForwardThin",next:["IconArrowRightLine"]},{previous:"IconForwardRegular",next:["IconArrowRightLine"]},{previous:"IconForwardFill",next:["IconArrowRightFill"]},{previous:"IconGenderThin",next:["IconMalesymbolFemalesymbolLine"]},{previous:"IconGenderRegular",next:["IconMalesymbolFemalesymbolLine"]},{previous:"IconGenderFill",next:["IconMalesymbolFemalesymbolFill"]},{previous:"IconGlobalThin",next:["IconGlobeLine"]},{previous:"IconGlobalRegular",next:["IconGlobeLine"]},{previous:"IconGlobalFill",next:["IconGlobeFill"]},{previous:"IconGpsThin",next:["IconCrosshairLine"]},{previous:"IconGpsRegular",next:["IconCrosshairLine"]},{previous:"IconGpsFill",next:["IconCrosshairFill"]},{previous:"IconGpsEnableThin",next:["IconCrosshairQuestionmarkLine"]},{previous:"IconGpsEnableRegular",next:["IconCrosshairQuestionmarkLine"]},{previous:"IconGpsEnableFill",next:["IconCrosshairQuestionmarkFill"]},{previous:"IconGpsEnable2Thin",next:["IconCrosshairQuestionmarkLine"]},{previous:"IconGpsEnable2Regular",next:["IconCrosshairQuestionmarkLine"]},{previous:"IconGpsEnable2Fill",next:["IconCrosshairQuestionmarkFill"]},{previous:"IconGroupchatKingThin",next:["IconCrownLine"]},{previous:"IconGroupchatKingRegular",next:["IconCrownLine"]},{previous:"IconGroupchatKingFill",next:["IconCrownFill"]},{previous:"IconHandleThin",next:["IconHorizline3VerticalTightLine"]},{previous:"IconHandleRegular",next:["IconHorizline3VerticalTightLine"]},{previous:"IconHandleFill",next:["IconHorizline3VerticalTightFill"]},{previous:"IconHashtagThin",next:["IconHashLine"]},{previous:"IconHashtagRegular",next:["IconHashLine"]},{previous:"IconHashtagFill",next:["IconHashFill"]},{previous:"IconHeadphoneThin",next:["IconHeadsetLine"]},{previous:"IconHeadphoneRegular",next:["IconHeadsetLine"]},{previous:"IconHeadphoneFill",next:["IconHeadsetFill"]},{previous:"IconHeartThin",next:["IconHeartLine"]},{previous:"IconHeartRegular",next:["IconHeartLine"]},{previous:"IconHeartFill",next:["IconHeartFill"]},{previous:"IconHelpThin",next:["IconQuestionmarkCircleLine"]},{previous:"IconHelpRegular",next:["IconQuestionmarkCircleLine"]},{previous:"IconHelpFill",next:["IconQuestionmarkCircleFill"]},{previous:"IconHelpcenterThin",next:["IconHeadsetLine"]},{previous:"IconHelpcenterRegular",next:["IconHeadsetLine"]},{previous:"IconHelpcenterFill",next:["IconHeadsetFill"]},{previous:"IconHelperThin",next:["IconHeadsetLine"]},{previous:"IconHelperRegular",next:["IconHeadsetLine"]},{previous:"IconHelperFill",next:["IconHeadsetFill"]},{previous:"IconHomeThin",next:["IconHouseLine"]},{previous:"IconHomeRegular",next:["IconHouseLine"]},{previous:"IconHomeFill",next:["IconHouseFill"]},{previous:"IconHouseThin",next:["IconWindow4HouseLine"]},{previous:"IconHouseRegular",next:["IconWindow4HouseLine"]},{previous:"IconHouseFill",next:["IconWindow4HouseFill"]},{previous:"IconHousekeepingBookThin",next:["IconBookLine"]},{previous:"IconHousekeepingBookRegular",next:["IconBookLine"]},{previous:"IconHousekeepingBookFill",next:["IconBookFill"]},{previous:"IconImportThin",next:["IconDocumentArrowLeftLine"]},{previous:"IconImportRegular",next:["IconDocumentArrowLeftLine"]},{previous:"IconImportFill",next:["IconDocumentArrowLeftFill"]},{previous:"IconInfoThin",next:["IconILowercaseSerifCircleLine"]},{previous:"IconInfoRegular",next:["IconILowercaseSerifCircleLine"]},{previous:"IconInfoFill",next:["IconILowercaseSerifCircleFill"]},{previous:"IconInterestThin",next:["IconHorizline3VerticalStarLine"]},{previous:"IconInterestRegular",next:["IconHorizline3VerticalStarLine"]},{previous:"IconInterestFill",next:["IconHorizline3VerticalStarFill"]},{previous:"IconInterestListThin",next:["IconStarLine"]},{previous:"IconInterestListRegular",next:["IconStarLine"]},{previous:"IconInterestListFill",next:["IconStarFill"]},{previous:"IconInviteThin",next:["IconEnvelopeLine"]},{previous:"IconInviteRegular",next:["IconEnvelopeLine"]},{previous:"IconInviteFill",next:["IconEnvelopeFill"]},{previous:"IconInviteFriendThin",next:["IconPersonPlusLine"]},{previous:"IconInviteFriendRegular",next:["IconPersonPlusLine"]},{previous:"IconInviteFriendFill",next:["IconPersonPlusFill"]},{previous:"IconIosShareThin",next:["IconArrowUpBracketDownLine"]},{previous:"IconIosShareRegular",next:["IconArrowUpBracketDownLine"]},{previous:"IconIosShareFill",next:["IconArrowUpBracketDownFill"]},{previous:"IconJobsThin",next:["IconPersonMagnifyingglassLine"]},{previous:"IconJobsRegular",next:["IconPersonMagnifyingglassLine"]},{previous:"IconJobsFill",next:["IconPersonMagnifyingglassFill"]},{previous:"IconKeyboardHidingThin",next:["IconKeyboardChevronDownLine"]},{previous:"IconKeyboardHidingRegular",next:["IconKeyboardChevronDownLine"]},{previous:"IconKeyboardHidingFill",next:["IconKeyboardChevronDownFill"]},{previous:"IconKeywordThin",next:["IconTagLine"]},{previous:"IconKeywordRegular",next:["IconTagLine"]},{previous:"IconKeywordFill",next:["IconTagFill"]},{previous:"IconLaptopThin",next:["IconLaptopLine"]},{previous:"IconLaptopRegular",next:["IconLaptopLine"]},{previous:"IconLaptopFill",next:["IconLaptopFill"]},{previous:"IconLeafThin",next:["IconLeafLine"]},{previous:"IconLeafRegular",next:["IconLeafLine"]},{previous:"IconLeafFill",next:["IconLeafFill"]},{previous:"IconListThin",next:["IconDothorizline3VerticalLine"]},{previous:"IconListRegular",next:["IconDothorizline3VerticalLine"]},{previous:"IconListFill",next:["IconDothorizline3VerticalFill"]},{previous:"IconListCardThin",next:["IconHorizrectangleHorizline2VerticalLine"]},{previous:"IconListCardRegular",next:["IconHorizrectangleHorizline2VerticalLine"]},{previous:"IconListCardFill",next:["IconHorizrectangleHorizline2VerticalFill"]},{previous:"IconListCheckThin",next:["IconDocumentCheckmarkLine"]},{previous:"IconListCheckRegular",next:["IconDocumentCheckmarkLine"]},{previous:"IconListCheckFill",next:["IconDocumentCheckmarkFill"]},{previous:"IconListSelectThin",next:["IconHorizline3VerticalCheckmarkLine"]},{previous:"IconListSelectRegular",next:["IconHorizline3VerticalCheckmarkLine"]},{previous:"IconListSelectFill",next:["IconHorizline3VerticalCheckmarkFill"]},{previous:"IconListThumbnailThin",next:["IconSquareline2VerticalLine"]},{previous:"IconListThumbnailRegular",next:["IconSquareline2VerticalLine"]},{previous:"IconListThumbnailFill",next:["IconSquareline2VerticalFill"]},{previous:"IconLocationThin",next:["IconLocationpinLine"]},{previous:"IconLocationRegular",next:["IconLocationpinLine"]},{previous:"IconLocationFill",next:["IconLocationpinFill"]},{previous:"IconLockThin",next:["IconLockLine"]},{previous:"IconLockRegular",next:["IconLockLine"]},{previous:"IconLockFill",next:["IconLockFill"]},{previous:"IconLoudspeakerThin",next:["IconMegaphoneLine"]},{previous:"IconLoudspeakerRegular",next:["IconMegaphoneLine"]},{previous:"IconLoudspeakerFill",next:["IconMegaphoneFill"]},{previous:"IconMapThin",next:["IconMapLocationpinLine"]},{previous:"IconMapRegular",next:["IconMapLocationpinLine"]},{previous:"IconMapFill",next:["IconMapLocationpinFill"]},{previous:"IconMarketThin",next:["IconStoreLine"]},{previous:"IconMarketRegular",next:["IconStoreLine"]},{previous:"IconMarketFill",next:["IconStoreFill"]},{previous:"IconMarketCheckThin",next:["IconStoreCheckmarkLine"]},{previous:"IconMarketCheckRegular",next:["IconStoreCheckmarkLine"]},{previous:"IconMarketCheckFill",next:["IconStoreCheckmarkFill"]},{previous:"IconMarketWriteThin",next:["IconStorePenLine"]},{previous:"IconMarketWriteRegular",next:["IconStorePenLine"]},{previous:"IconMarketWriteFill",next:["IconStorePenFill"]},{previous:"IconMentionThin",next:["IconAtLine"]},{previous:"IconMentionRegular",next:["IconAtLine"]},{previous:"IconMentionFill",next:["IconAtFill"]},{previous:"IconMenuThin",next:["IconHorizline3VerticalLine"]},{previous:"IconMenuRegular",next:["IconHorizline3VerticalLine"]},{previous:"IconMenuFill",next:["IconHorizline3VerticalFill"]},{previous:"IconMicThin",next:["IconMicrophoneLine"]},{previous:"IconMicRegular",next:["IconMicrophoneLine"]},{previous:"IconMicFill",next:["IconMicrophoneFill"]},{previous:"IconMicOffThin",next:["IconMicrophoneSlashLine"]},{previous:"IconMicOffRegular",next:["IconMicrophoneSlashLine"]},{previous:"IconMicOffFill",next:["IconMicrophoneSlashFill"]},{previous:"IconMissionThin",next:["IconBookOpenLine"]},{previous:"IconMissionRegular",next:["IconBookOpenLine"]},{previous:"IconMissionFill",next:["IconBookOpenFill"]},{previous:"IconMobileThin",next:["IconMobileLine"]},{previous:"IconMobileRegular",next:["IconMobileLine"]},{previous:"IconMobileFill",next:["IconMobileFill"]},{previous:"IconMoneySendThin",next:["IconWonCircleArrowRightLine"]},{previous:"IconMoneySendRegular",next:["IconWonCircleArrowRightLine"]},{previous:"IconMoneySendFill",next:["IconWonCircleArrowRightFill"]},{previous:"IconMoneySendYenThin",next:["IconYenCircleArrowRightLine"]},{previous:"IconMoneySendYenRegular",next:["IconYenCircleArrowRightLine"]},{previous:"IconMoneySendYenFill",next:["IconYenCircleArrowRightFill"]},{previous:"IconMoneyWonThin",next:["IconWonCircleLine"]},{previous:"IconMoneyWonRegular",next:["IconWonCircleLine"]},{previous:"IconMoneyWonFill",next:["IconWonCircleFill"]},{previous:"IconMoneyYenThin",next:["IconYenCircleLine"]},{previous:"IconMoneyYenRegular",next:["IconYenCircleLine"]},{previous:"IconMoneyYenFill",next:["IconYenCircleFill"]},{previous:"IconMoonThin",next:["IconMoonLine"]},{previous:"IconMoonRegular",next:["IconMoonLine"]},{previous:"IconMoonFill",next:["IconMoonFill"]},{previous:"IconMoreHorizThin",next:["IconDot3HorizontalLine"]},{previous:"IconMoreHorizRegular",next:["IconDot3HorizontalLine"]},{previous:"IconMoreHorizFill",next:["IconDot3HorizontalFill"]},{previous:"IconMoreVertThin",next:["IconDot3VerticalLine"]},{previous:"IconMoreVertRegular",next:["IconDot3VerticalLine"]},{previous:"IconMoreVertFill",next:["IconDot3VerticalFill"]},{previous:"IconMyThin",next:["IconPersonLine"]},{previous:"IconMyRegular",next:["IconPersonLine"]},{previous:"IconMyFill",next:["IconPersonFill"]},{previous:"IconMyProfileThin",next:["IconPersonCircleLine"]},{previous:"IconMyProfileRegular",next:["IconPersonCircleLine"]},{previous:"IconMyProfileFill",next:["IconPersonCircleFill"]},{previous:"IconNearMeThin",next:["IconLocationpinLine"]},{previous:"IconNearMeRegular",next:["IconLocationpinLine"]},{previous:"IconNearMeFill",next:["IconLocationpinFill"]},{previous:"IconNewtopicThin",next:["IconNUppercaseCircleLine"]},{previous:"IconNewtopicRegular",next:["IconNUppercaseCircleLine"]},{previous:"IconNewtopicFill",next:["IconNUppercaseCircleFill"]},{previous:"IconNoteThin",next:["IconDocumentLine"]},{previous:"IconNoteRegular",next:["IconDocumentLine"]},{previous:"IconNoteFill",next:["IconDocumentFill"]},{previous:"IconNotificationThin",next:["IconBellLine"]},{previous:"IconNotificationRegular",next:["IconBellLine"]},{previous:"IconNotificationFill",next:["IconBellFill"]},{previous:"IconNotificationFallThin",next:["IconArrowDownLine"]},{previous:"IconNotificationFallRegular",next:["IconArrowDownLine"]},{previous:"IconNotificationFallFill",next:["IconArrowDownFill"]},{previous:"IconNotificationOffThin",next:["IconBellSlashLine"]},{previous:"IconNotificationOffRegular",next:["IconBellSlashLine"]},{previous:"IconNotificationOffFill",next:["IconBellSlashFill"]},{previous:"IconOrderThin",next:["IconCheckmarkClipboardLine"]},{previous:"IconOrderRegular",next:["IconCheckmarkClipboardLine"]},{previous:"IconOrderFill",next:["IconCheckmarkClipboardFill"]},{previous:"IconPauseThin",next:["IconVertrectangle2HorizontalLine"]},{previous:"IconPauseRegular",next:["IconVertrectangle2HorizontalLine"]},{previous:"IconPauseFill",next:["IconVertrectangle2HorizontalFill"]},{previous:"IconPaymentThin",next:["IconCardLine"]},{previous:"IconPaymentRegular",next:["IconCardLine"]},{previous:"IconPaymentFill",next:["IconCardFill"]},{previous:"IconPercentThin",next:["IconPercentLine"]},{previous:"IconPercentRegular",next:["IconPercentLine"]},{previous:"IconPercentFill",next:["IconPercentFill"]},{previous:"IconPhotoThin",next:["IconPictureLine"]},{previous:"IconPhotoRegular",next:["IconPictureLine"]},{previous:"IconPhotoFill",next:["IconPictureFill"]},{previous:"IconPhotoEditThin",next:["IconWandLine"]},{previous:"IconPhotoEditRegular",next:["IconWandLine"]},{previous:"IconPhotoEditFill",next:["IconWandFill"]},{previous:"IconPhotoEditCropThin",next:["IconCropmarkLine"]},{previous:"IconPhotoEditCropRegular",next:["IconCropmarkLine"]},{previous:"IconPhotoEditCropFill",next:["IconCropmarkFill"]},{previous:"IconPhotoEditDrawThin",next:["IconScribbleLine"]},{previous:"IconPhotoEditDrawRegular",next:["IconScribbleLine"]},{previous:"IconPhotoEditDrawFill",next:["IconScribbleFill"]},{previous:"IconPhotoEditRotateThin",next:["IconArrow2ClockwiseCircularLine"]},{previous:"IconPhotoEditRotateRegular",next:["IconArrow2ClockwiseCircularLine"]},{previous:"IconPhotoEditRotateFill",next:["IconArrow2ClockwiseCircularFill"]},{previous:"IconPhotoSeveralThin",next:["IconPicture2StackedLine"]},{previous:"IconPhotoSeveralRegular",next:["IconPicture2StackedLine"]},{previous:"IconPhotoSeveralFill",next:["IconPicture2StackedFill"]},{previous:"IconPlayThin",next:["IconTriangleRightLine"]},{previous:"IconPlayRegular",next:["IconTriangleRightLine"]},{previous:"IconPlayFill",next:["IconTriangleRightFill"]},{previous:"IconPollThin",next:["IconBarchartSquareLine"]},{previous:"IconPollRegular",next:["IconBarchartSquareLine"]},{previous:"IconPollFill",next:["IconBarchartSquareFill"]},{previous:"IconPriceWonThin",next:["IconWonLine"]},{previous:"IconPriceWonRegular",next:["IconWonLine"]},{previous:"IconPriceWonFill",next:["IconWonFill"]},{previous:"IconPriceYenDefault",next:["IconYenLine"]},{previous:"IconPriceYenVariant4",next:["IconYenLine"]},{previous:"IconPriceYenVariant3",next:["IconYenFill"]},{previous:"IconProductThin",next:["IconShoppingbagLine"]},{previous:"IconProductRegular",next:["IconShoppingbagLine"]},{previous:"IconProductFill",next:["IconShoppingbagFill"]},{previous:"IconProfileThin",next:["IconPersonLine"]},{previous:"IconProfileRegular",next:["IconPersonLine"]},{previous:"IconProfileFill",next:["IconPersonFill"]},{previous:"IconProfileBadgeThin",next:["IconCheckmarkBadgeLine"]},{previous:"IconProfileBadgeRegular",next:["IconCheckmarkBadgeLine"]},{previous:"IconProfileBadgeFill",next:["IconCheckmarkBadgeFill"]},{previous:"IconProhibitionThin",next:["IconSlashCircleLine"]},{previous:"IconProhibitionRegular",next:["IconSlashCircleLine"]},{previous:"IconProhibitionFill",next:["IconSlashCircleFill"]},{previous:"IconPushpinThin",next:["IconPushpinLine"]},{previous:"IconPushpinRegular",next:["IconPushpinLine"]},{previous:"IconPushpinFill",next:["IconPushpinFill"]},{previous:"IconQuestionCheckThin",next:["IconQuestionmarkSquareLine"]},{previous:"IconQuestionCheckRegular",next:["IconQuestionmarkSquareLine"]},{previous:"IconQuestionCheckFill",next:["IconQuestionmarkSquareFill"]},{previous:"IconRedoThin",next:["IconArrowUturnRightLine"]},{previous:"IconRedoRegular",next:["IconArrowUturnRightLine"]},{previous:"IconRedoFill",next:["IconArrowUturnRightFill"]},{previous:"IconRefundThin",next:["IconWonArrowClockwiseCircularLine"]},{previous:"IconRefundRegular",next:["IconWonArrowClockwiseCircularLine"]},{previous:"IconRefundFill",next:["IconWonArrowClockwiseCircularFill"]},{previous:"IconRemoveCircleThin",next:["IconXmarkCircleLine"]},{previous:"IconRemoveCircleRegular",next:["IconXmarkCircleLine"]},{previous:"IconRemoveCircleFill",next:["IconXmarkCircleFill"]},{previous:"IconReplyThin",next:["IconHorizline2VerticalChatbubbleRectangularRightLine"]},{previous:"IconReplyRegular",next:["IconHorizline2VerticalChatbubbleRectangularRightLine"]},{previous:"IconReplyFill",next:["IconHorizline2VerticalChatbubbleRectangularRightFill"]},{previous:"IconReplyMissionThin",next:["IconHorizline2VerticalChatbubbleRectangularRightLine"]},{previous:"IconReplyMissionRegular",next:["IconHorizline2VerticalChatbubbleRectangularRightLine"]},{previous:"IconReplyMissionFill",next:["IconHorizline2VerticalChatbubbleRectangularRightFill"]},{previous:"IconReplyReThin",next:["IconCornerDownLeftLine"]},{previous:"IconReplyReRegular",next:["IconCornerDownLeftLine"]},{previous:"IconReplyReFill",next:["IconCornerDownLeftFill"]},{previous:"IconReportThin",next:["IconFlagLine"]},{previous:"IconReportRegular",next:["IconFlagLine"]},{previous:"IconReportFill",next:["IconFlagFill"]},{previous:"IconReservationThin",next:["IconCheckmarkCalendarLine"]},{previous:"IconReservationRegular",next:["IconCheckmarkCalendarLine"]},{previous:"IconReservationFill",next:["IconCheckmarkCalendarFill"]},{previous:"IconRestaurantThin",next:["IconForkSpoonLine"]},{previous:"IconRestaurantRegular",next:["IconForkSpoonLine"]},{previous:"IconRestaurantFill",next:["IconForkSpoonFill"]},{previous:"IconRetryThin",next:["IconArrowClockwiseCircularLine"]},{previous:"IconRetryRegular",next:["IconArrowClockwiseCircularLine"]},{previous:"IconRetryFill",next:["IconArrowClockwiseCircularFill"]},{previous:"IconReviewStarThin",next:["IconStarLine"]},{previous:"IconReviewStarRegular",next:["IconStarLine"]},{previous:"IconReviewStarFill",next:["IconStarFill"]},{previous:"IconScannerThin",next:["IconHorizlineViewfinderLine"]},{previous:"IconScannerRegular",next:["IconHorizlineViewfinderLine"]},{previous:"IconScannerFill",next:["IconHorizlineViewfinderFill"]},{previous:"IconSearchThin",next:["IconMagnifyingglassLine"]},{previous:"IconSearchRegular",next:["IconMagnifyingglassLine"]},{previous:"IconSearchFill",next:["IconMagnifyingglassFill"]},{previous:"IconSearchDocThin",next:["IconDocumentMagnifyingglassLine"]},{previous:"IconSearchDocRegular",next:["IconDocumentMagnifyingglassLine"]},{previous:"IconSearchDocFill",next:["IconDocumentMagnifyingglassFill"]},{previous:"IconSellThin",next:["IconPlusSquareLine"]},{previous:"IconSellRegular",next:["IconPlusSquareLine"]},{previous:"IconSellFill",next:["IconPlusSquareFill"]},{previous:"IconSettingThin",next:["IconGearLine"]},{previous:"IconSettingRegular",next:["IconGearLine"]},{previous:"IconSettingFill",next:["IconGearFill"]},{previous:"IconSignoutThin",next:["IconBracketLeftArrowRightLine"]},{previous:"IconSignoutRegular",next:["IconBracketLeftArrowRightLine"]},{previous:"IconSignoutFill",next:["IconBracketLeftArrowRightFill"]},{previous:"IconSortThin",next:["IconArrowUpArrowDownLine"]},{previous:"IconSortRegular",next:["IconArrowUpArrowDownLine"]},{previous:"IconSortFill",next:["IconArrowUpArrowDownFill"]},{previous:"IconStoryThin",next:["IconTriangleRightChatbubbleLeftLine"]},{previous:"IconStoryRegular",next:["IconTriangleRightChatbubbleLeftLine"]},{previous:"IconStoryFill",next:["IconTriangleRightChatbubbleLeftFill"]},{previous:"IconStoryArticleThin",next:["IconDocumentPenLine"]},{previous:"IconStoryArticleRegular",next:["IconDocumentPenLine"]},{previous:"IconStoryArticleFill",next:["IconDocumentPenFill"]},{previous:"IconSubtractCircleThin",next:["IconMinusCircleLine"]},{previous:"IconSubtractCircleRegular",next:["IconMinusCircleLine"]},{previous:"IconSubtractCircleFill",next:["IconMinusCircleFill"]},{previous:"IconSubtractionThin",next:["IconMinusLine"]},{previous:"IconSubtractionRegular",next:["IconMinusLine"]},{previous:"IconSubtractionFill",next:["IconMinusFill"]},{previous:"IconSuggestThin",next:["IconLightbulbDot5Line"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconSuggestRegular",next:["IconLightbulbDot5Line"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconSuggestFill",next:["IconLightbulbDot5Fill"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconSunThin",next:["IconSunLine"]},{previous:"IconSunRegular",next:["IconSunLine"]},{previous:"IconSunFill",next:["IconSunFill"]},{previous:"IconTalkingdownThin",next:["IconQuotationmark2RightLine"]},{previous:"IconTalkingdownRegular",next:["IconQuotationmark2RightLine"]},{previous:"IconTalkingdownFill",next:["IconQuotationmark2RightFill"]},{previous:"IconTalkingupThin",next:["IconQuotationmark2LeftLine"]},{previous:"IconTalkingupRegular",next:["IconQuotationmark2LeftLine"]},{previous:"IconTalkingupFill",next:["IconQuotationmark2LeftFill"]},{previous:"IconTextThin",next:["IconTUppercaseSerifLine"]},{previous:"IconTextRegular",next:["IconTUppercaseSerifLine"]},{previous:"IconTextFill",next:["IconTUppercaseSerifFill"]},{previous:"IconThumbDownThin",next:["IconThumbDownLine"]},{previous:"IconThumbDownRegular",next:["IconThumbDownLine"]},{previous:"IconThumbDownFill",next:["IconThumbDownFill"]},{previous:"IconThumbUpThin",next:["IconThumbUpLine"]},{previous:"IconThumbUpRegular",next:["IconThumbUpLine"]},{previous:"IconThumbUpFill",next:["IconThumbUpFill"]},{previous:"IconToolboxThin",next:["IconToolboxLine"]},{previous:"IconToolboxRegular",next:["IconToolboxLine"]},{previous:"IconToolboxFill",next:["IconToolboxFill"]},{previous:"IconTranslateThin",next:["IconTranslationLine"]},{previous:"IconTranslateRegular",next:["IconTranslationLine"]},{previous:"IconTranslateFill",next:["IconTranslationFill"]},{previous:"IconTrashThin",next:["IconTrashcanLine"]},{previous:"IconTrashRegular",next:["IconTrashcanLine"]},{previous:"IconTrashFill",next:["IconTrashcanFill"]},{previous:"IconUndoThin",next:["IconArrowUturnLeftLine"]},{previous:"IconUndoRegular",next:["IconArrowUturnLeftLine"]},{previous:"IconUndoFill",next:["IconArrowUturnLeftFill"]},{previous:"IconUserGroupThin",next:["IconPerson2Line"]},{previous:"IconUserGroupRegular",next:["IconPerson2Line"]},{previous:"IconUserGroupFill",next:["IconPerson2Fill"]},{previous:"IconVideoThin",next:["IconCamcorderLine"]},{previous:"IconVideoRegular",next:["IconCamcorderLine"]},{previous:"IconVideoFill",next:["IconCamcorderFill"]},{previous:"IconViewCountThin",next:["IconEyeLine"]},{previous:"IconViewCountRegular",next:["IconEyeLine"]},{previous:"IconViewCountFill",next:["IconEyeFill"]},{previous:"IconViewCountOffThin",next:["IconEyeSlashLine"]},{previous:"IconViewCountOffRegular",next:["IconEyeSlashLine"]},{previous:"IconViewCountOffFill",next:["IconEyeSlashFill"]},{previous:"IconVolumeOffThin",next:["IconSpeakerWave2SlashLine"]},{previous:"IconVolumeOffRegular",next:["IconSpeakerWave2SlashLine"]},{previous:"IconVolumeOffFill",next:["IconSpeakerWave2SlashFill"]},{previous:"IconVolumeOnThin",next:["IconSpeakerWave2Line"]},{previous:"IconVolumeOnRegular",next:["IconSpeakerWave2Line"]},{previous:"IconVolumeOnFill",next:["IconSpeakerWave2Fill"]},{previous:"IconVoteThin",next:["IconCheckmarkBallotboxLine"]},{previous:"IconVoteRegular",next:["IconCheckmarkBallotboxLine"]},{previous:"IconVoteFill",next:["IconCheckmarkBallotboxFill"]},{previous:"IconVoucherThin",next:["IconGiftLine"]},{previous:"IconVoucherRegular",next:["IconGiftLine"]},{previous:"IconVoucherFill",next:["IconGiftFill"]},{previous:"IconWalkThin",next:["IconFigureWalkLine"]},{previous:"IconWalkRegular",next:["IconFigureWalkLine"]},{previous:"IconWalkFill",next:["IconFigureWalkFill"]},{previous:"IconWarningThin",next:["IconExclamationmarkCircleLine"]},{previous:"IconWarningRegular",next:["IconExclamationmarkCircleLine"]},{previous:"IconWarningFill",next:["IconExclamationmarkCircleFill"]},{previous:"IconWriteThin",next:["IconPenHorizlineLine"]},{previous:"IconWriteRegular",next:["IconPenHorizlineLine"]},{previous:"IconWriteFill",next:["IconPenHorizlineFill"]},{previous:"IconWriteFrequentUseThin",next:["IconDocumentPlusLine"]},{previous:"IconWriteFrequentUseRegular",next:["IconDocumentPlusLine"]},{previous:"IconWriteFrequentUseFill",next:["IconDocumentPlusFill"]},{previous:"IconWriteStoryThin",next:["IconHorizline2VerticalChatbubbleRectangularRightLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconWriteStoryRegular",next:["IconHorizline2VerticalChatbubbleRectangularRightLine"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."},{previous:"IconWriteStoryFill",next:["IconHorizline2VerticalChatbubbleRectangularRightFill"],description:"\uBCC0\uACBD \uD6C4 \uD655\uC778\uC774 \uD544\uC694\uD574\uC694."}],Ss=[{previous:"IconCategoryRealty",next:["IconWindow4House"],description:"\uBD80\uB3D9\uC0B0"},{previous:"IconCategoryCar",next:["IconCarFrontside"],description:"\uC911\uACE0\uCC28"},{previous:"IconCategoryJobs",next:["IconPersonMagnifyingglass"],description:"\uC54C\uBC14"},{previous:"IconCategoryGroup",next:["IconPerson2Openarms"],description:"\uBAA8\uC784"},{previous:"IconCategoryAd",next:["IconMegaphoneTilted"],description:"\uAD11\uACE0"},{previous:"IconCategoryBizprofile",next:["IconWindow2Store"],description:"\uBE44\uC988\uD504\uB85C\uD544"},{previous:"IconCategoryRestaurant",next:["IconForkSpoon"]},{previous:"IconCategoryCafe",next:["IconCupHeatwave"]},{previous:"IconCategoryTruck",next:["IconTruck"]},{previous:"IconCategoryFitness",next:["IconDumbbell"]},{previous:"IconCategoryBeauty",next:["IconScissors"]},{previous:"IconCategoryBeautyshop",next:["IconNailpolish"]},{previous:"IconCategoryConstruction",next:["IconWrench"]},{previous:"IconCategoryClass",next:["IconPalette"]},{previous:"IconCategoryLife",next:["IconSpraybottleSponge"]},{previous:"IconCategoryHomerepair",next:["IconPaintroller"]},{previous:"IconCategoryAcademy",next:["IconPencil"]},{previous:"IconCategoryFarm",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryClassRemoved",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryMedical",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryLaundry",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryLost",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryRecommandation",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryBuytogether",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryPopularity",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryQuestions",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryTogether",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryPet",next:[],description:"\uC5C6\uC74C"},{previous:"IconCategoryCare",next:[],description:"\uC5C6\uC74C"},{description:"\uC911\uACE0\uAC70\uB798(\uC2E0\uADDC)",next:["IconShoppingbagItems"]},{description:"\uC774\uC6C3\uAD11\uACE0(\uC2E0\uADDC)",next:["IconLinechartUpXaxis"]},{description:"\uD53D\uC5C5(\uC2E0\uADDC)",next:["IconForkSpoonBag"]},{description:"\uB3D9\uB124\uC2A4\uD1A0\uB9AC(\uC2E0\uADDC)",next:["IconTriangleRightChatbubbleLeft"]}],iu=[...bs,...Ss];import{writeFileSync as ru}from"node:fs";import{readFileSync as nu}from"node:fs";import{resolve as ou}from"node:path";function su(o){return o.replace(/var\(--seed-(semantic|scale|static)-color-([^)]+)\)/g,(e,t,i)=>{try{let r=`$${t}.color.${i}`,n=yr.find(a=>a.previous===r);return!n||!n.next||n.next.length===0?e:`var(--seed-${n.next[0].substring(1).replace(/\./g,"-")})`}catch(r){return console.error(`Error transforming token: ${e}`,r),e}})}var lu={postcssPlugin:"replace-css-color-variable",Declaration(o){if(o.value.includes("var(--seed-semantic-color")||o.value.includes("var(--seed-scale-color")||o.value.includes("var(--seed-static-color")){let e=o.value,t=su(e);e!==t&&(o.value=t)}}},Cs=(o,e,t)=>{let{reporter:i}=t,r=null;if(i&&(r=new Yt("replace-css-color-variable"),r.startNewFile(o.path)),!o.path.endsWith(".css"))return o.source;console.log("file.path",o.path);try{let n=er([lu]),s=o.source,l=n.process(s,{from:o.path,parser:er.parse}).sync().root.toString();return r&&(console.log("writeReport"),r.finishFile(),r.writeReport()),l}catch(n){return console.error("Error processing CSS:",n),o.source}};function Gp(o,e){let t=[];for(let n of o)try{if(n.endsWith(".css")){t.push(ou(n));continue}let s=fi.sync(`${n}/**/*.css`,{ignore:["**/node_modules/**","**/dist/**","**/build/**"]});t=[...t,...s]}catch(s){console.error(`\uACBD\uB85C \uCC98\uB9AC \uC911 \uC624\uB958 \uBC1C\uC0DD: ${n}`,s)}let i=[...new Set(t)];if(i.length===0){console.log("\uBCC0\uD658\uD560 CSS \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");return}console.log(`\uCD1D ${i.length}\uAC1C\uC758 CSS \uD30C\uC77C\uC744 \uCC3E\uC558\uC2B5\uB2C8\uB2E4.`);let r=0;for(let n of i)try{let s=nu(n,"utf8"),a=Cs({path:n,source:s},null,e);s!==a&&(ru(n,a,"utf8"),console.log(`\uBCC0\uD658 \uC644\uB8CC: ${n}`),r++)}catch(s){console.error(`\uD30C\uC77C \uBCC0\uD658 \uC911 \uC624\uB958 \uBC1C\uC0DD: ${n}`,s)}console.log(`CSS \uBCC0\uD658 \uC644\uB8CC: \uCD1D ${r}\uAC1C \uD30C\uC77C \uBCC0\uACBD\uB428`)}var qp=Cs;export{qp as default,Gp as processCssFiles};
|
@@ -1,16 +1,16 @@
|
|
1
|
-
var R=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.divider-1",next:["$color.stroke.on-image"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],F=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.on-image"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],j=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.gray-1000"]},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"]},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"]},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"]},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"]},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"]},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-800"]},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"]},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"]},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"]},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"]},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-200"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-white-alpha-50",next:[],description:"deleted"},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-200"]}],k=[...R,...F,...j];import*as p from"fs";import*as $ from"path";var f=class{timestamp;fileMigrations=[];currentFile=null;reportDir=$.join(process.cwd(),".report");transformName;constructor(e){this.transformName=e,this.timestamp=this.generateTimestamp()}generateTimestamp(){return new Date(new Date().getTime()+324e5).toISOString()}getReportPath(){return $.join(this.reportDir,`${this.transformName}.md`)}getRelativePath(e){if(!e)return"unknown";try{let r=$.resolve(e);return $.relative(this.reportDir,r)}catch{return"unknown"}}startNewFile(e){this.currentFile={filePath:this.getRelativePath(e),results:[]}}addResult(e){this.currentFile&&this.currentFile.results.push(e)}finishFile(){this.currentFile&&this.currentFile.results.length>0&&this.fileMigrations.push(this.currentFile),this.currentFile=null}hasResults(){return this.fileMigrations.length>0}writeReport(){if(!this.hasResults())return;p.existsSync(this.reportDir)||p.mkdirSync(this.reportDir,{recursive:!0});let e=this.getReportPath(),r=p.existsSync(e)?p.readFileSync(e,"utf8"):"",s=this.fileMigrations.map(l=>{let g=$.basename(l.filePath),i=l.results.map(t=>{let a=t.line?` (line: ${t.line})`:"",n=t.status==="success"?"\u2705":"\u274C",x=t.failureReason?`
|
2
|
-
- reason: ${
|
3
|
-
- as-is: \`${
|
4
|
-
- to-be: ${
|
5
|
-
`);return`### [${
|
1
|
+
var R=[{previous:"$semantic.color.on-primary",next:["$color.palette.static-white"]},{previous:"$semantic.color.primary",next:["$color.bg.brand-solid","$color.fg.brand"],alternative:["$color.palette.carrot-600"]},{previous:"$semantic.color.primary-low",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.secondary",next:["$color.palette.gray-900"]},{previous:"$semantic.color.secondary-low",next:["$color.bg.neutral-weak"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.success",next:["$color.bg.positive-solid","$color.fg.positive"],alternative:["$color.fg.positive-contrast","$color.palette.green-700"]},{previous:"$semantic.color.success-low",next:["$color.bg.positive-weak"],alternative:["$color.palette.green-100"]},{previous:"$semantic.color.warning",next:["$color.bg.warning-solid"],alternative:["$color.fg.warning-contrast","$color.palette.yellow-500"]},{previous:"$semantic.color.warning-low",next:["$color.bg.warning-weak"],alternative:["$color.palette.yellow-100"]},{previous:"$semantic.color.danger",next:["$color.bg.critical-solid","$color.fg.critical"],alternative:["$color.fg.critical-contrast","$color.palette.red-700"]},{previous:"$semantic.color.danger-low",next:["$color.bg.critical-weak"],alternative:["$color.palette.red-100"]},{previous:"$semantic.color.overlay-dim",next:["$color.bg.overlay"],alternative:["$color.palette.static-black-alpha-500"]},{previous:"$semantic.color.overlay-low",next:["$color.bg.overlay-muted"],alternative:["$color.palette.static-black-alpha-200"]},{previous:"$semantic.color.paper-sheet",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-dialog",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-floating",next:["$color.bg.layer-floating"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-contents",next:["$color.bg.layer-fill"],alternative:["$color.palette.gray-100"]},{previous:"$semantic.color.paper-default",next:["$color.bg.layer-default"],alternative:["$color.palette.gray-00"]},{previous:"$semantic.color.paper-background",next:["$color.bg.layer-basement"],alternative:["$color.palette.gray-200"]},{previous:"$semantic.color.paper-accent",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-hover",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-pressed",next:["$color.bg.brand-solid-pressed"],alternative:["$color.palette.carrot-700"]},{previous:"$semantic.color.primary-low-hover",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.primary-low-active",next:["$color.palette.carrot-100"]},{previous:"$semantic.color.primary-low-pressed",next:["$color.palette.carrot-200"]},{previous:"$semantic.color.gray-hover",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.gray-pressed",next:["$color.bg.neutral-weak-pressed"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.on-primary-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-50",next:[],description:"TBD"},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"TBD"},{previous:"$semantic.color.divider-1",next:["$color.stroke.on-image"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral"],alternative:["$color.palette.gray-300"]},{previous:"$semantic.color.divider-3",next:["$color.palette.gray-400"]},{previous:"$semantic.color.accent",next:["$color.bg.informative-solid","$color.fg.informative"],alternative:["$color.fg.informative-contrast","$color.palette.blue-700"]},{previous:"$semantic.color.ink-text",next:["$color.fg.neutral"],alternative:["$color.palette.gray-1000"]},{previous:"$semantic.color.ink-text-low",next:["$color.fg.neutral-subtle"],alternative:["$color.palette.gray-700"]},{previous:"$semantic.color.gray-active",next:["$color.fg.neutral-muted"],alternative:["$color.palette.gray-800"]}],F=[{previous:"$scale.color.gray-00",next:["$color.palette.gray-00"]},{previous:"$scale.color.gray-50",next:["$color.palette.gray-100"]},{previous:"$scale.color.gray-100",next:["$color.palette.gray-200"]},{previous:"$scale.color.gray-200",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-300",next:["$color.palette.gray-400"]},{previous:"$scale.color.gray-400",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-500",next:["$color.palette.gray-600"]},{previous:"$scale.color.gray-600",next:["$color.palette.gray-700"]},{previous:"$scale.color.gray-700",next:["$color.palette.gray-800"]},{previous:"$scale.color.gray-800",next:["$color.palette.gray-900"]},{previous:"$scale.color.gray-900",next:["$color.palette.gray-1000"]},{previous:"$scale.color.gray-alpha-50",next:["$color.palette.gray-200","$color.stroke.on-image"]},{previous:"$scale.color.gray-alpha-100",next:["$color.palette.gray-300"]},{previous:"$scale.color.gray-alpha-200",next:["$color.palette.gray-500"]},{previous:"$scale.color.gray-alpha-500",next:["$color.palette.gray-700"]},{previous:"$scale.color.carrot-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-200",next:["$color.palette.carrot-300"]},{previous:"$scale.color.carrot-300",next:["$color.palette.carrot-400"]},{previous:"$scale.color.carrot-400",next:["$color.palette.carrot-500"]},{previous:"$scale.color.carrot-500",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-600",next:["$color.palette.carrot-600"]},{previous:"$scale.color.carrot-700",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-800",next:["$color.palette.carrot-700"]},{previous:"$scale.color.carrot-900",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-950",next:["$color.palette.carrot-800"]},{previous:"$scale.color.carrot-alpha-50",next:["$color.palette.carrot-100"]},{previous:"$scale.color.carrot-alpha-100",next:["$color.palette.carrot-200"]},{previous:"$scale.color.carrot-alpha-200",next:["$color.palette.carrot-200"]},{previous:"$scale.color.blue-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-100",next:["$color.palette.blue-200"]},{previous:"$scale.color.blue-200",next:["$color.palette.blue-300"]},{previous:"$scale.color.blue-300",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-400",next:["$color.palette.blue-400"]},{previous:"$scale.color.blue-500",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-600",next:["$color.palette.blue-600"]},{previous:"$scale.color.blue-700",next:["$color.palette.blue-800"]},{previous:"$scale.color.blue-800",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-900",next:["$color.palette.blue-900"]},{previous:"$scale.color.blue-950",next:["$color.palette.blue-1000"]},{previous:"$scale.color.blue-alpha-50",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-100",next:["$color.palette.blue-100"]},{previous:"$scale.color.blue-alpha-200",next:["$color.palette.blue-200"]},{previous:"$scale.color.red-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-200",next:["$color.palette.red-300"]},{previous:"$scale.color.red-300",next:["$color.palette.red-400"]},{previous:"$scale.color.red-400",next:["$color.palette.red-600"]},{previous:"$scale.color.red-500",next:["$color.palette.red-700"]},{previous:"$scale.color.red-600",next:["$color.palette.red-700"]},{previous:"$scale.color.red-700",next:["$color.palette.red-800"]},{previous:"$scale.color.red-800",next:["$color.palette.red-900"]},{previous:"$scale.color.red-900",next:["$color.palette.red-900"]},{previous:"$scale.color.red-950",next:["$color.palette.red-900"]},{previous:"$scale.color.red-alpha-50",next:["$color.palette.red-100"]},{previous:"$scale.color.red-alpha-100",next:["$color.palette.red-200"]},{previous:"$scale.color.red-alpha-200",next:["$color.palette.red-300"]},{previous:"$scale.color.green-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-200",next:["$color.palette.green-300"]},{previous:"$scale.color.green-300",next:["$color.palette.green-400"]},{previous:"$scale.color.green-400",next:["$color.palette.green-500"]},{previous:"$scale.color.green-500",next:["$color.palette.green-600"]},{previous:"$scale.color.green-600",next:["$color.palette.green-700"]},{previous:"$scale.color.green-700",next:["$color.palette.green-800"]},{previous:"$scale.color.green-800",next:["$color.palette.green-900"]},{previous:"$scale.color.green-900",next:["$color.palette.green-900"]},{previous:"$scale.color.green-950",next:["$color.palette.green-900"]},{previous:"$scale.color.green-alpha-50",next:["$color.palette.green-100"]},{previous:"$scale.color.green-alpha-100",next:["$color.palette.green-200"]},{previous:"$scale.color.green-alpha-200",next:["$color.palette.green-200"]},{previous:"$scale.color.yellow-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-100",next:["$color.palette.yellow-200"]},{previous:"$scale.color.yellow-200",next:["$color.palette.yellow-300"]},{previous:"$scale.color.yellow-300",next:["$color.palette.yellow-400"]},{previous:"$scale.color.yellow-400",next:["$color.palette.yellow-500"]},{previous:"$scale.color.yellow-500",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-600",next:["$color.palette.yellow-700"]},{previous:"$scale.color.yellow-700",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-800",next:["$color.palette.yellow-800"]},{previous:"$scale.color.yellow-900",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-950",next:["$color.palette.yellow-900"]},{previous:"$scale.color.yellow-alpha-50",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-100",next:["$color.palette.yellow-100"]},{previous:"$scale.color.yellow-alpha-200",next:["$color.palette.yellow-100"]},{previous:"$scale.color.purple-50",next:["$color.palette.purple-100"]},{previous:"$scale.color.purple-100",next:["$color.palette.purple-300"]},{previous:"$scale.color.purple-200",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-300",next:["$color.palette.purple-400"]},{previous:"$scale.color.purple-400",next:["$color.palette.purple-500"]},{previous:"$scale.color.purple-500",next:["$color.palette.purple-600"]},{previous:"$scale.color.purple-600",next:["$color.palette.purple-700"]},{previous:"$scale.color.purple-700",next:["$color.palette.purple-800"]},{previous:"$scale.color.purple-800",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-900",next:["$color.palette.purple-900"]},{previous:"$scale.color.purple-950",next:["$color.palette.purple-1000"]}],j=[{previous:"$static.color.static-black",next:["$color.palette.static-black"]},{previous:"$static.color.static-white",next:["$color.palette.static-white"]},{previous:"$static.color.static-gray-900",next:["$color.palette.gray-1000"]},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"]},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"]},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"]},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"]},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"]},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-800"]},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"]},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"]},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"]},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"]},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-200"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-white-alpha-50",next:[],description:"deleted"},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-200"]}],I=[...R,...F,...j];import*as v from"fs";import*as m from"path";var b=class{timestamp;fileMigrations=[];currentFile=null;reportDir=m.join(process.cwd(),".report");transformName;constructor(e){this.transformName=e,this.timestamp=this.generateTimestamp()}generateTimestamp(){return new Date(new Date().getTime()+324e5).toISOString()}getReportPath(){return m.join(this.reportDir,`${this.transformName}.md`)}getRelativePath(e){if(!e)return"unknown";try{let t=m.resolve(e);return m.relative(this.reportDir,t)}catch{return"unknown"}}startNewFile(e){this.currentFile={filePath:this.getRelativePath(e),results:[]}}addResult(e){this.currentFile&&this.currentFile.results.push(e)}finishFile(){this.currentFile&&this.currentFile.results.length>0&&this.fileMigrations.push(this.currentFile),this.currentFile=null}hasResults(){return this.fileMigrations.length>0}writeReport(){if(!this.hasResults())return;v.existsSync(this.reportDir)||v.mkdirSync(this.reportDir,{recursive:!0});let e=this.getReportPath(),t=v.existsSync(e)?v.readFileSync(e,"utf8"):"",$=this.fileMigrations.map(a=>{let n=m.basename(a.filePath),c=a.results.map(o=>{let u=o.line?` (line: ${o.line})`:"",f=o.status==="success"?"\u2705":"\u274C",y=o.failureReason?`
|
2
|
+
- reason: ${o.failureReason}`:"";return` - ${f} ${u}
|
3
|
+
- as-is: \`${o.previousToken}\`
|
4
|
+
- to-be: ${o.nextToken?`\`${o.nextToken}\``:"undefined"}${y}`}).join(`
|
5
|
+
`);return`### [${n}](${a.filePath})
|
6
6
|
- timestamp: ${this.timestamp}
|
7
7
|
- summary:
|
8
|
-
- total: ${
|
9
|
-
- success: ${
|
10
|
-
- failure: ${
|
8
|
+
- total: ${a.results.length}
|
9
|
+
- success: ${a.results.filter(o=>o.status==="success").length}
|
10
|
+
- failure: ${a.results.filter(o=>o.status==="failure").length}
|
11
11
|
- lines
|
12
|
-
${
|
12
|
+
${c}`}).join(`
|
13
13
|
|
14
|
-
`);
|
14
|
+
`);v.writeFileSync(e,t+(t?`
|
15
15
|
|
16
|
-
`:"")
|
16
|
+
`:"")+$)}};function N(r,e,t,$,g){if(!$)return;let a=e.find(r.ImportDeclaration,{source:{value:"@seed-design/design-token"}});if(a.length===0)return;let n=e.get().node.comments||[];if(g||t){if(a.forEach(o=>{let u=o.node.comments||[],f=o.node.specifiers?.filter(l=>l.type==="ImportSpecifier"&&l.imported.name==="vars"),y=o.node.specifiers?.filter(l=>!(l.type==="ImportSpecifier"&&l.imported.name==="vars"))||[];o.node.specifiers=[...y,...f?.length?[r.importSpecifier(r.identifier("vars"),r.identifier("legacyVars"))]:[]],o.node.comments=u}),e.find(r.ImportDeclaration,{source:{value:"@seed-design/css/vars"}}).length===0){let o=r.importDeclaration([r.importSpecifier(r.identifier("vars"),r.identifier("vars"))],r.literal("@seed-design/css/vars")),u=e.find(r.ImportDeclaration).at(0);u.size()>0?u.insertAfter(o):e.get().node.program.body.unshift(o)}}else a.forEach(c=>{let o=c.node.comments||[];c.node.source.value="@seed-design/css/vars",c.node.comments=o});n.length>0&&(e.get().node.comments=n)}function d(r){let e=[],t=r.node;for(;t.type==="MemberExpression";)t.property.type==="Identifier"&&e.unshift(t.property.name),t=t.object;return t.type==="Identifier"&&e.unshift(t.name),e.join(".")}function w(r,e){let t=e.split("."),$=r.identifier(t[0]);for(let g=1;g<t.length;g++)$=r.memberExpression($,r.identifier(t[g]));return $}function E(r){return r.replace(/^vars\./,"").replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/(\d+)/g,"-$1")}function D(r){return`vars.${r.replace(/-(\d+)/g,"$1").replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}`}var P=(r,e,t)=>{let $=t,{reporter:g}=$,a=e.jscodeshift,n=a(r.source),c=null;g&&(c=new b("replace-vars-color"),c.startNewFile(r.path));let o=new Set,u=!1,f=new Set;if(n.find(a.MemberExpression).filter(l=>d(l).startsWith("vars.")).forEach(l=>{let i=d(l);if(i.startsWith("vars.")&&!i.includes("color")){let p=i.split(".");p.length>=2&&f.add(p[1])}}),n.find(a.MemberExpression).filter(l=>d(l).startsWith("vars.")).forEach(l=>{let i=d(l),p=E(i),s=I.find(x=>x.previous===p),k=l.node.loc?.start.line;if(s){let x=null;if(s.next.length===1)x=s.next[0];else if(s.next.length>1){let M=s.next.filter(h=>h.includes("$color.palette"));if(M.length>0)x=M[0];else if("alternative"in s&&Array.isArray(s.alternative)&&s.alternative.length>0){let h=s.alternative.filter(C=>C.includes("$color.palette"));h.length>0&&(x=h[0])}}if(!x){c&&c.addResult({previousToken:i,nextToken:null,line:k,status:"failure",failureReason:s.next.length===0?"No mapping available":"No palette mapping found"}),o.add(i);return}let T=D(x),S=w(a,T);l.replace(S),u=!0,c&&c.addResult({previousToken:i,nextToken:T,line:k,status:"success"})}}),N(a,n,o.size>0,u,f.size>0),o.size>0&&n.find(a.MemberExpression).filter(l=>{let i=d(l);return o.has(i)}).forEach(l=>{let p=d(l).replace(/^vars\./,"legacyVars."),s=w(a,p);l.replace(s)}),n.find(a.Identifier,{name:"legacyVars"}).length===1){let l=n.get().node.comments||[],i=n.find(a.ImportDeclaration,{source:{value:"@seed-design/design-token"}}),p=[];if(i.forEach(s=>{s.node.comments&&s.node.comments.length>0&&(p=[...p,...s.node.comments])}),i.remove(),p.length>0){let s=n.find(a.ImportDeclaration).at(0);s.size()>0?s.get().node.comments=[...s.get().node.comments||[],...p]:n.get().node.comments=[...l,...p]}}return c&&(c.finishFile(),c.writeReport()),n.toSource({})},Z=P;export{Z as default};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@seed-design/codemod",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.14",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -23,8 +23,10 @@
|
|
23
23
|
"cac": "^6.7.14",
|
24
24
|
"es-toolkit": "^1.25.2",
|
25
25
|
"execa": "^9.4.1",
|
26
|
+
"glob": "^11.0.1",
|
26
27
|
"jscodeshift": "^17.1.2",
|
27
28
|
"picocolors": "^1.1.1",
|
29
|
+
"postcss": "^8.5.3",
|
28
30
|
"semver": "^7.6.3",
|
29
31
|
"simple-git": "^3.27.0",
|
30
32
|
"winston": "^3.15.0",
|