@seed-design/codemod 1.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ ${S}`),m.pop(),`{${k}}`}case"number":return isFinite(c)?String(c):e?e(c):"null";
28
28
  `),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Ul.loadavg(),uptime:Ul.uptime()}}getTrace(e){return(e?Yl.parse(e):Yl.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let r=new T0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_uncaughtException(e){let r=this.getAllInfo(e),n=this._getExceptionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),i=!1);function s(){yi("doExit",i),yi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);M0(n,(a,l)=>{let u=R0(l),p=a.transport||a;function g(h){return()=>{yi(h),u()}}p._ending=!0,p.once("finish",g("finished")),p.once("error",g("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var Jl=f((Hm,Kl)=>{"use strict";var{Writable:O0}=Ne();Kl.exports=class extends O0{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,r,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var _i=f((Um,Xl)=>{"use strict";var Zl=require("os"),q0=jr(),vi=$t()("winston:rejection"),C0=gi(),Ql=mi(),k0=Jl();Xl.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(r=>{if(Array.isArray(r))return r.forEach(n=>this._addHandler(n));this._addHandler(r)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let r=null;return e&&(r=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${r||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
29
29
  `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Zl.loadavg(),uptime:Zl.uptime()}}getTrace(e){return(e?Ql.parse(e):Ql.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let r=new k0(e);this.handlers.set(e,r),this.logger.pipe(r)}}_unhandledRejection(e){let r=this.getAllInfo(e),n=this._getRejectionHandlers(),i=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,o;!n.length&&i&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),i=!1);function s(){vi("doExit",i),vi("process._exiting",process._exiting),i&&!process._exiting&&(o&&clearTimeout(o),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);q0(n,(a,l)=>{let u=C0(l),p=a.transport||a;function g(h){return()=>{vi(h),u()}}p._ending=!0,p.once("finish",g("finished")),p.once("error",g("error"))},()=>i&&s()),this.logger.log(r),i&&(o=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var tu=f((Ym,eu)=>{"use strict";var wi=class{constructor(e){let r=Dr();if(typeof e!="object"||Array.isArray(e)||!(e instanceof r))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let r=typeof e[e.length-1]=="object"?e.pop():{};return r.level=r.level||"info",r.durationMs=Date.now()-this.start,this.logger.write(r)}};eu.exports=wi});var Dr=f((Gm,ou)=>{"use strict";var{Stream:A0,Transform:P0}=Ne(),ru=jr(),{LEVEL:he,SPLAT:nu}=D(),iu=di(),L0=bi(),N0=_i(),j0=Un(),D0=tu(),{warn:I0}=mn(),F0=kr(),B0=/%[scdjifoO%]/g,Ir=class extends P0{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let r=this;return Object.create(r,{write:{value:function(n){let i=Object.assign({},e,n);n instanceof Error&&(i.stack=n.stack,i.message=n.message),r.write(i)}}})}configure({silent:e,format:r,defaultMeta:n,levels:i,level:o="info",exitOnError:s=!0,transports:a,colors:l,emitErrs:u,formatters:p,padLevels:g,rewriters:h,stripColors:v,exceptionHandlers:c,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=r||this.format||cn()(),this.defaultMeta=n||null,this.levels=i||this.levels||F0.npm.levels,this.level=o,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new L0(this),this.rejections=new N0(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a],a.forEach(w=>this.add(w))),l||u||p||g||h||v)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
30
30
  `));c&&this.exceptions.handle(c),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Tt(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((r,n)=>{let i=Tt(this.levels,n.level);return i!==null&&i>r?i:r},e)}isLevelEnabled(e){let r=Tt(this.levels,e);if(r===null)return!1;let n=Tt(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=r:this.transports.findIndex(o=>{let s=Tt(this.levels,o.level);return s===null&&(s=n),s>=r})!==-1}log(e,r,...n){if(arguments.length===1)return e[he]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return r&&typeof r=="object"?(r[he]=r.level=e,this._addDefaultMeta(r),this.write(r),this):(r={[he]:e,level:e,message:r},this._addDefaultMeta(r),this.write(r),this);let[i]=n;if(typeof i=="object"&&i!==null&&!(r&&r.match&&r.match(B0))){let s=Object.assign({},this.defaultMeta,i,{[he]:e,[nu]:n,level:e,message:r});return i.message&&(s.message=`${s.message} ${i.message}`),i.stack&&(s.stack=i.stack),i.cause&&(s.cause=i.cause),this.write(s),this}return this.write(Object.assign({},this.defaultMeta,{[he]:e,[nu]:n,level:e,message:r})),this}_transform(e,r,n){if(this.silent)return n();e[he]||(e[he]=e.level),!this.levels[e[he]]&&this.levels[e[he]]!==0&&console.error("[winston] Unknown logger level: %s",e[he]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,n()}}_final(e){let r=this.transports.slice();ru(r,(n,i)=>{if(!n||n.finished)return setImmediate(i);n.once("finish",i),n.end()},e)}add(e){let r=!iu(e)||e.log.length>2?new j0({transport:e}):e;if(!r._writableState||!r._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",r),this._onEvent("warn",r),this.pipe(r),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let r=e;return(!iu(e)||e.log.length>2)&&(r=this.transports.filter(n=>n.transport===e)[0]),r&&this.unpipe(r),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){I0.deprecated("setLevels")}query(e,r){typeof e=="function"&&(r=e,e={}),e=e||{};let n={},i=Object.assign({},e.query||{});function o(a,l){e.query&&typeof a.formatQuery=="function"&&(e.query=a.formatQuery(i)),a.query(e,(u,p)=>{if(u)return l(u);typeof a.formatResults=="function"&&(p=a.formatResults(p,e.format)),l(null,p)})}function s(a,l){o(a,(u,p)=>{l&&(p=u||p,p&&(n[a.name]=p),l()),l=null})}ru(this.transports.filter(a=>!!a.query),s,()=>r(null,n))}stream(e={}){let r=new A0,n=[];return r._streams=n,r.destroy=()=>{let i=n.length;for(;i--;)n[i].destroy()},this.transports.filter(i=>!!i.stream).forEach(i=>{let o=i.stream(e);o&&(n.push(o),o.on("log",s=>{s.transport=s.transport||[],s.transport.push(i.name),r.emit("log",s)}),o.on("error",s=>{s.transport=s.transport||[],s.transport.push(i.name),r.emit("error",s)}))}),r}startTimer(){return new D0(this)}profile(e,...r){let n=Date.now();if(this.profilers[e]){let i=this.profilers[e];delete this.profilers[e],typeof r[r.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),r.pop());let o=typeof r[r.length-1]=="object"?r.pop():{};return o.level=o.level||"info",o.durationMs=n-i,o.message=o.message||e,this.write(o)}return this.profilers[e]=n,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
31
- `))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Tt(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Ir.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});ou.exports=Ir});var xi=f((Km,su)=>{"use strict";var{LEVEL:z0}=D(),W0=kr(),H0=Dr(),V0=$t()("winston:create-logger");function U0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}su.exports=function(t={}){t.levels=t.levels||W0.npm.levels;class e extends H0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(V0('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let o=this||r;if(i.length===1){let[s]=i,a=s&&s.message&&s||{message:s};return a.level=a[z0]=n,o._addDefaultMeta(a),o.write(a),this||r}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[U0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var lu=f((Zm,au)=>{"use strict";var Y0=xi();au.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=Y0(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var cu=f(A=>{"use strict";var uu=gn(),{warn:Ot}=mn();A.version=os().version;A.transports=Ll();A.config=kr();A.addColors=uu.levels;A.format=uu.format;A.createLogger=xi();A.Logger=Dr();A.ExceptionHandler=bi();A.RejectionHandler=_i();A.Container=lu();A.Transport=Ke();A.loggers=new A.Container;var de=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>A[t]=(...e)=>de[t](...e));Object.defineProperty(A,"level",{get(){return de.level},set(t){de.level=t}});Object.defineProperty(A,"exceptions",{get(){return de.exceptions}});Object.defineProperty(A,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(A,t,{get(){return de[t]},set(e){de[t]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});Ot.deprecated(A,"setLevels");Ot.forFunctions(A,"useFormat",["cli"]);Ot.forProperties(A,"useFormat",["padLevels","stripColors"]);Ot.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);Ot.forProperties(A,"deprecated",["emitErrs","levelLength"])});var X0={};$u(X0,{default:()=>Q0});module.exports=Su(X0);var nt=[{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:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.neutral-subtle"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-subtle"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral-muted"],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"]}],Wr=[{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.neutral-subtle"]},{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"]}],Lt=[{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.static-black"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-700"]},{previous:"$static.color.static-white-alpha-50",next:["$color.palette.static-white-alpha-50"]},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-300"]}],ki=[...nt,...Wr,...Lt];function Nt(t){return"node"in t}function Mu(t){if(Nt(t))return t.node;if(t.length>0){let e=t.get(0);return Nt(e)?e.node:null}return null}function jt(t,e,r,n,i={}){let{processNestedTernaries:o=!0,maxDepth:s=Number.POSITIVE_INFINITY}=i,a=Mu(e);if(!a||a.type!=="ConditionalExpression")return;let l={depth:1,parentPropertyName:Hr(e),path:"root"};a.consequent&&Ai(t,a.consequent,r,n,{...l,path:"consequent"}),a.alternate&&Ai(t,a.alternate,r,n,{...l,path:"alternate"}),o&&(a.consequent&&a.consequent.type==="ConditionalExpression"&&l.depth<s&&jt(t,t(a.consequent),r,n,{...i,processNestedTernaries:!0}),a.alternate&&a.alternate.type==="ConditionalExpression"&&l.depth<s&&jt(t,t(a.alternate),r,n,{...i,processNestedTernaries:!0}))}function Ai(t,e,r,n,i){e&&t(e).find(r.type,r.filter).forEach(o=>{n(o,i)})}function Hr(t){var n,i,o,s,a;let e=null,r=null;if(Nt(t)){if(!((n=t.parent)!=null&&n.node))return;e=t.parent.node,r=(i=t.parent.parent)==null?void 0:i.node}else if(t.length>0){let l=t.get(0);Nt(l)&&((o=l.parent)!=null&&o.node)&&(e=l.parent.node,r=(s=l.parent.parent)==null?void 0:s.node)}if(e){if(e.type==="Property"&&e.key){if(e.key.type==="Identifier")return e.key.name;if(e.key.type==="StringLiteral")return e.key.value}if(e.type==="JSXAttribute"&&e.name)return e.name.name;if(e.type==="AssignmentExpression"&&((a=e.left)==null?void 0:a.type)==="MemberExpression"&&e.left.property){let l=e.left.property;if(l.type==="Identifier")return l.name;if(l.type==="StringLiteral")return l.value}if((r==null?void 0:r.type)==="Property"&&r.key){if(r.key.type==="Identifier")return r.key.name;if(r.key.type==="StringLiteral")return r.key.value}}}var it={text:["color","textColor","textDecorationColor","textEmphasisColor","caretColor","webkitTextFillColor","webkitTextStrokeColor","currentColor","cue","cueAfter","cueBefore","cursor","markColor","spellingErrorColor","grammarErrorColor","textFillColor","textStrokeColor","footnoteColor","rubyColor","markerForeground","scrollbarThumbColor","caretColor","selectionColor","marks"],background:["background","backgroundColor","backgroundImage","backgroundBlendMode","webkitBackgroundClip","webkitBackgroundOrigin","webkitBackgroundSize","gradient","gradientImage","pageBackgroundColor","breakColor","columnRuleColor","canvasBackground","layerBackground","counterFillColor","markerBackground","scrollbarColor","scrollbarButtonColor","scrollbarTrackColor","scrollbarTrackPieceColor","highlightBackground","screenBackgroundColor","printBackgroundColor"],border:["borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","borderInlineColor","borderInlineEndColor","borderInlineStartColor","border","borderTop","borderRight","borderBottom","borderLeft","borderBlock","borderBlockEnd","borderBlockStart","borderInline","borderInlineEnd","borderInlineStart","columnRuleColor","gridColumnRule","gridRowRule","outlineButton","outlineFieldset","outlineMenu","outlineWindow","rubyOverhang","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarBorderColor","windowFrame"],outline:["outlineColor","outline","outlineFocus","outlineOffset","focusOutlineColor","focusRingColor"],shadow:["boxShadow","textShadow","dropShadow","webkitBoxShadow","mozBoxShadow","shadowColor","textShadowColor"],svg:["fill","fillColor","stroke","floodColor","lightingColor","stopColor","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","marker","markerEnd","markerMid","markerStart","paintOrder","shapeRendering","strokeColor","strokeDashcolor","strokeLinecap","strokeLinejoin","strokeOpacity","vectorEffect"],misc:["accentColor","scrollbarColor","columnRuleColor","textDecoration","maskColor","maskBorderColor","outlineOffset","filter","backdropFilter","appearance","containerType","colorScheme","contentVisibility","counterIncrement","counterReset","counterSet","forcedColorAdjust","imageRendering","isolation","mixBlendMode","objectFit","opacity","perspective","perspectiveOrigin","printColorAdjust","quotes","resize","tabSize","unicodeBidi","willChange","writingMode","zoom","colorGamut","colorScheme","invertedColors","prefersColorScheme"]},Ru=[...it.background,...it.svg.filter(t=>t!=="fill"&&t!=="fillColor"),"backgroundColor","backgroundImage"],Tu=[...it.text,"color","fill","fillColor"],Ou=[...it.border,...it.outline,"stroke","borderColor","outlineColor"];function Pi(t){return!t||t==="fill"||t==="fillColor"?!1:t==="backgroundColor"||t==="background"||t==="backgroundImage"?!0:Ru.includes(t)}function Li(t){return t?Tu.includes(t):!1}function Ni(t){return t?Ou.includes(t):!1}var H=Eu(cu());function fu(t){let e=H.format.printf(({message:a,timestamp:l,metadata:u})=>{let{previousToken:p,nextToken:g,line:h}=u,v=h?`(line ${h})`:"";return`${l} ${a}: ${p} \u2192 ${g} ${v}`}),r=H.format.printf(({level:a,message:l,timestamp:u,failureReason:p,metadata:g})=>{let{previousToken:h,description:v}=g,c=v||p||"";return`${u} [${a.toUpperCase()}]: ${l}
31
+ `))}_onEvent(e,r){function n(i){e==="error"&&!this.transports.includes(r)&&this.add(r),this.emit(e,i,r)}r["__winston"+e]||(r["__winston"+e]=n.bind(this),r.on(e,r["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Tt(t,e){let r=t[e];return!r&&r!==0?null:r}Object.defineProperty(Ir.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});ou.exports=Ir});var xi=f((Km,su)=>{"use strict";var{LEVEL:z0}=D(),W0=kr(),H0=Dr(),V0=$t()("winston:create-logger");function U0(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}su.exports=function(t={}){t.levels=t.levels||W0.npm.levels;class e extends H0{constructor(i){super(i)}}let r=new e(t);return Object.keys(t.levels).forEach(function(n){if(V0('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...i){let o=this||r;if(i.length===1){let[s]=i,a=s&&s.message&&s||{message:s};return a.level=a[z0]=n,o._addDefaultMeta(a),o.write(a),this||r}return i.length===0?(o.log(n,""),o):o.log(n,...i)},e.prototype[U0(n)]=function(){return(this||r).isLevelEnabled(n)}}),r}});var lu=f((Zm,au)=>{"use strict";var Y0=xi();au.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,r){if(!this.loggers.has(e)){r=Object.assign({},r||this.options);let n=r.transports||this.options.transports;n?r.transports=Array.isArray(n)?n.slice():[n]:r.transports=[];let i=Y0(r);i.on("close",()=>this._delete(e)),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,r){return this.add(e,r)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((r,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var cu=f(A=>{"use strict";var uu=gn(),{warn:Ot}=mn();A.version=os().version;A.transports=Ll();A.config=kr();A.addColors=uu.levels;A.format=uu.format;A.createLogger=xi();A.Logger=Dr();A.ExceptionHandler=bi();A.RejectionHandler=_i();A.Container=lu();A.Transport=Ke();A.loggers=new A.Container;var de=A.createLogger();Object.keys(A.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>A[t]=(...e)=>de[t](...e));Object.defineProperty(A,"level",{get(){return de.level},set(t){de.level=t}});Object.defineProperty(A,"exceptions",{get(){return de.exceptions}});Object.defineProperty(A,"rejections",{get(){return de.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(A,t,{get(){return de[t]},set(e){de[t]=e}})});Object.defineProperty(A,"default",{get(){return{exceptionHandlers:de.exceptionHandlers,rejectionHandlers:de.rejectionHandlers,transports:de.transports}}});Ot.deprecated(A,"setLevels");Ot.forFunctions(A,"useFormat",["cli"]);Ot.forProperties(A,"useFormat",["padLevels","stripColors"]);Ot.forFunctions(A,"deprecated",["addRewriter","addFilter","clone","extend"]);Ot.forProperties(A,"deprecated",["emitErrs","levelLength"])});var X0={};$u(X0,{default:()=>Q0});module.exports=Su(X0);var nt=[{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.neutral-weak"],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:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-50",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-primary-low-overlay-200",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.on-gray-overlay-50",next:["$color.stroke.neutral-subtle"]},{previous:"$semantic.color.on-gray-overlay-100",next:[],description:"V3\uC5D0\uC11C \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uC0C9\uC0C1"},{previous:"$semantic.color.divider-1",next:["$color.stroke.neutral-subtle"],alternative:["$color.palette.static-black-alpha-50"]},{previous:"$semantic.color.divider-2",next:["$color.stroke.neutral-muted"],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"]}],Wr=[{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.neutral-subtle"]},{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"]}],Lt=[{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.static-black"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-50",next:["$color.palette.carrot-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-carrot-800",next:["$color.palette.carrot-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-50",next:["$color.palette.green-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-green-800",next:["$color.palette.green-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-50",next:["$color.palette.yellow-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-yellow-800",next:["$color.palette.yellow-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-50",next:["$color.palette.red-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-red-800",next:["$color.palette.red-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-50",next:["$color.palette.blue-100"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-blue-800",next:["$color.palette.blue-700"],description:"static\uC5D0\uC11C palette\uB85C \uBCC0\uACBD\uB418\uB294 \uC0C9\uC0C1\uC73C\uB85C \uC6A9\uB3C4 \uD30C\uC545 \uD544\uC694",needsVerification:!0},{previous:"$static.color.static-black-alpha-200",next:["$color.palette.static-black-alpha-500"]},{previous:"$static.color.static-black-alpha-500",next:["$color.palette.static-black-alpha-700"]},{previous:"$static.color.static-white-alpha-50",next:["$color.palette.static-white-alpha-50"]},{previous:"$static.color.static-white-alpha-200",next:["$color.palette.static-white-alpha-300"]}],ki=[...nt,...Wr,...Lt];function Nt(t){return"node"in t}function Mu(t){if(Nt(t))return t.node;if(t.length>0){let e=t.get(0);return Nt(e)?e.node:null}return null}function jt(t,e,r,n,i={}){let{processNestedTernaries:o=!0,maxDepth:s=Number.POSITIVE_INFINITY}=i,a=Mu(e);if(!a||a.type!=="ConditionalExpression")return;let l={depth:1,parentPropertyName:Hr(e),path:"root"};a.consequent&&Ai(t,a.consequent,r,n,{...l,path:"consequent"}),a.alternate&&Ai(t,a.alternate,r,n,{...l,path:"alternate"}),o&&(a.consequent&&a.consequent.type==="ConditionalExpression"&&l.depth<s&&jt(t,t(a.consequent),r,n,{...i,processNestedTernaries:!0}),a.alternate&&a.alternate.type==="ConditionalExpression"&&l.depth<s&&jt(t,t(a.alternate),r,n,{...i,processNestedTernaries:!0}))}function Ai(t,e,r,n,i){e&&t(e).find(r.type,r.filter).forEach(o=>{n(o,i)})}function Hr(t){var n,i,o,s,a;let e=null,r=null;if(Nt(t)){if(!((n=t.parent)!=null&&n.node))return;e=t.parent.node,r=(i=t.parent.parent)==null?void 0:i.node}else if(t.length>0){let l=t.get(0);Nt(l)&&((o=l.parent)!=null&&o.node)&&(e=l.parent.node,r=(s=l.parent.parent)==null?void 0:s.node)}if(e){if(e.type==="Property"&&e.key){if(e.key.type==="Identifier")return e.key.name;if(e.key.type==="StringLiteral")return e.key.value}if(e.type==="JSXAttribute"&&e.name)return e.name.name;if(e.type==="AssignmentExpression"&&((a=e.left)==null?void 0:a.type)==="MemberExpression"&&e.left.property){let l=e.left.property;if(l.type==="Identifier")return l.name;if(l.type==="StringLiteral")return l.value}if((r==null?void 0:r.type)==="Property"&&r.key){if(r.key.type==="Identifier")return r.key.name;if(r.key.type==="StringLiteral")return r.key.value}}}var it={text:["color","textColor","textDecorationColor","textEmphasisColor","caretColor","webkitTextFillColor","webkitTextStrokeColor","currentColor","cue","cueAfter","cueBefore","cursor","markColor","spellingErrorColor","grammarErrorColor","textFillColor","textStrokeColor","footnoteColor","rubyColor","markerForeground","scrollbarThumbColor","caretColor","selectionColor","marks"],background:["background","backgroundColor","backgroundImage","backgroundBlendMode","webkitBackgroundClip","webkitBackgroundOrigin","webkitBackgroundSize","gradient","gradientImage","pageBackgroundColor","breakColor","columnRuleColor","canvasBackground","layerBackground","counterFillColor","markerBackground","scrollbarColor","scrollbarButtonColor","scrollbarTrackColor","scrollbarTrackPieceColor","highlightBackground","screenBackgroundColor","printBackgroundColor"],border:["borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderBlockColor","borderBlockEndColor","borderBlockStartColor","borderInlineColor","borderInlineEndColor","borderInlineStartColor","border","borderTop","borderRight","borderBottom","borderLeft","borderBlock","borderBlockEnd","borderBlockStart","borderInline","borderInlineEnd","borderInlineStart","columnRuleColor","gridColumnRule","gridRowRule","outlineButton","outlineFieldset","outlineMenu","outlineWindow","rubyOverhang","scrollbarArrowColor","scrollbarBaseColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarHighlightColor","scrollbarShadowColor","scrollbarBorderColor","windowFrame"],outline:["outlineColor","outline","outlineFocus","outlineOffset","focusOutlineColor","focusRingColor"],shadow:["boxShadow","textShadow","dropShadow","webkitBoxShadow","mozBoxShadow","shadowColor","textShadowColor"],svg:["fill","fillColor","stroke","floodColor","lightingColor","stopColor","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","marker","markerEnd","markerMid","markerStart","paintOrder","shapeRendering","strokeColor","strokeDashcolor","strokeLinecap","strokeLinejoin","strokeOpacity","vectorEffect"],misc:["accentColor","scrollbarColor","columnRuleColor","textDecoration","maskColor","maskBorderColor","outlineOffset","filter","backdropFilter","appearance","containerType","colorScheme","contentVisibility","counterIncrement","counterReset","counterSet","forcedColorAdjust","imageRendering","isolation","mixBlendMode","objectFit","opacity","perspective","perspectiveOrigin","printColorAdjust","quotes","resize","tabSize","unicodeBidi","willChange","writingMode","zoom","colorGamut","colorScheme","invertedColors","prefersColorScheme"]},Ru=[...it.background,...it.svg.filter(t=>t!=="fill"&&t!=="fillColor"),"backgroundColor","backgroundImage"],Tu=[...it.text,"color","fill","fillColor"],Ou=[...it.border,...it.outline,"stroke","borderColor","outlineColor"];function Pi(t){return!t||t==="fill"||t==="fillColor"?!1:t==="backgroundColor"||t==="background"||t==="backgroundImage"?!0:Ru.includes(t)}function Li(t){return t?Tu.includes(t):!1}function Ni(t){return t?Ou.includes(t):!1}var H=Eu(cu());function fu(t){let e=H.format.printf(({message:a,timestamp:l,metadata:u})=>{let{previousToken:p,nextToken:g,line:h}=u,v=h?`(line ${h})`:"";return`${l} ${a}: ${p} \u2192 ${g} ${v}`}),r=H.format.printf(({level:a,message:l,timestamp:u,failureReason:p,metadata:g})=>{let{previousToken:h,description:v}=g,c=v||p||"";return`${u} [${a.toUpperCase()}]: ${l}
32
32
  \u21B3 reason: ${h} ${c}`}),n=H.format.printf(({level:a,message:l,timestamp:u})=>`${u} [${a.toUpperCase()}]: ${l}`),i=(0,H.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="success"?a:!1}),o=(0,H.format)(a=>{let l=a.metadata;return(l==null?void 0:l.status)==="failure"||(l==null?void 0:l.status)==="warning"?a:!1}),s=(0,H.createLogger)({level:"debug",transports:[new H.transports.File({filename:`.report/${t}-success.log`,format:H.format.combine(i(),H.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),e)}),new H.transports.File({filename:`.report/${t}-issues.log`,format:H.format.combine(o(),H.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),r)}),new H.transports.File({filename:`.report/${t}-debug.log`,level:"debug",format:H.format.combine(H.format.timestamp({format:"YYYY-MM-DD HH:mm:ss"}),n)})]});return{logger:s,logTransformResult(a,l){let{status:u,failureReason:p,needsVerification:g,description:h,previousToken:v,nextToken:c}=l,m=u==="success"?"info":u==="warning"?"warn":"error",w=l.line?`(line: ${l.line})`:"";s.log({level:m,message:`${a} ${w}`,...p&&{failureReason:p},...h&&{description:h},metadata:l}),g&&u==="success"&&s.log({level:"warn",message:`${a} ${w}`,metadata:{previousToken:v,nextToken:c,status:"warning",description:h||"\uC0AC\uC6A9 \uD655\uC778 \uD544\uC694\uD55C \uD1A0\uD070\uC785\uB2C8\uB2E4",needsVerification:!0,line:l.line}})},startFile(a){s.debug(`Starting transformation of ${a}`)},finishFile(a){s.debug(`Finished transformation of ${a}`)}}}function Ei(t){return t.replace(/-([a-z0-9])/g,(e,r)=>r.toUpperCase())}function Br(t){let e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return e=e.replace(/([a-z])(\d+)/g,"$1-$2"),e}function du(t){return/[A-Z]/.test(t)||/[a-z]\d+/.test(t)?Br(t):t}function G0(t){let e=t.startsWith("$")?t.substring(1):t;if(e.endsWith("-semantic")){let n=e.replace(/-semantic$/,"");return`$semantic.color.${du(n)}`}if(e.endsWith("-static"))return`$static.color.static-${e.replace(/-static$/,"")}`;let r=e;return/[A-Z]/.test(e)?r=Br(e):r=e.replace(/([a-zA-Z]+)(\d+)/,"$1-$2"),`$scale.color.${r}`}function Si(t){if(!t.startsWith("$color."))return t.startsWith("$")?t.substring(1):t;let e=t.substring(7).split(".");if(e.length>=2){let r=e[0],n=e.slice(1).join(".");return`${r}-${n}`}return t.startsWith("$")?t.substring(1):t}function K0(t){let e=du(t),r=`$semantic.color.${e}`,n=nt.find(i=>i.previous===r);if(!n){let i=Ei(e),o=`$semantic.color.${i}`;if(n=nt.find(s=>s.previous===o),!n)for(let s of nt){let a=s.previous.replace("$semantic.color.","");if(a===e||a===i||Ei(a)===i||Br(a)===e){n=s;break}}}return n}function J0(t){let e=t;/[A-Z]/.test(t)&&(e=Br(t));let r=`$static.color.static-${e}`,n=Lt.find(i=>i.previous===r);if(!n)for(let i of Lt){let o=i.previous.replace("$static.color.static-","");if(o===e||o===t){n=i;break}let s=o,a=Ei(o);if(s===e||a===t){n=i;break}}return n}function hu(t,e){if(t.endsWith("-semantic")){let i=t.replace(/-semantic$/g,""),o=K0(i);return o?{token:Fr(o,e),needsVerification:o.needsVerification,description:o.description}:null}if(t.endsWith("-static")){let i=t.replace(/-static$/g,""),o=J0(i);return o?{token:Fr(o,e),needsVerification:o.needsVerification,description:o.description}:null}let r=G0(t);if(r.startsWith("$scale.color.")){let i=r.replace("$scale.color.",""),o=Wr.find(s=>s.previous===`$scale.color.${i}`);if(o)return{token:Fr(o,e),needsVerification:o.needsVerification,description:o.description}}let n=ki.find(i=>i.previous===r);return n?{token:Fr(n,e),needsVerification:n.needsVerification,description:n.description}:null}function Fr(t,e){let r=null;if(t.next.length===0)return null;if(t.next.length===1)r=t.next[0];else if(t.next.length>1){let n=t.next.filter(h=>h.includes("$color.bg")),i=t.next.filter(h=>h.includes("$color.fg")),o=t.next.filter(h=>h.includes("$color.stroke")),s=t.next.filter(h=>h.includes("$color.palette")),a=t.next.filter(h=>!h.includes("$color.bg")&&!h.includes("$color.fg")&&!h.includes("$color.stroke")&&!h.includes("$color.palette")),l=Pi(e),u=Li(e),p=Ni(e);(!e||!l&&!u&&!p)&&s.length>0?r=s[0]:l&&n.length>0?r=n[0]:(u||e==="fill"||e==="fillColor")&&i.length>0?r=i[0]:(p||e==="stroke")&&o.length>0?r=o[0]:s.length>0?r=s[0]:a.length>0?r=a[0]:r=t.next[0]}if(!r&&"alternative"in t&&Array.isArray(t.alternative)&&t.alternative.length>0){let n=t.alternative.filter(i=>i.includes("$color.palette"));n.length>0?r=n[0]:r=t.alternative[0]}return r?Si(r):null}function $i(t,e,r,n,i,o){var l,u,p,g,h,v,c,m,w,x;let s=((l=e.node.loc)==null?void 0:l.start.line)+":"+((u=e.node.loc)==null?void 0:u.start.column);if(i.has(s))return;i.add(s);let a=Hr(e);if((p=e.node)!=null&&p.property&&(e.node.property.type==="StringLiteral"||e.node.property.type==="Literal")){let S=e.node.property.value,b=hu(S,a);if(b!=null&&b.token){let E=Si(b.token),C={previous:S,next:E,line:(g=e.node.loc)==null?void 0:g.start.line,needsVerification:b.needsVerification,description:b.description},k=`${n}:${(h=e.node.loc)==null?void 0:h.start.line}:${(v=e.node.loc)==null?void 0:v.start.column}`;o.set(k,C),e.node.property=t.stringLiteral(E)}}else if((c=e.node)!=null&&c.property&&e.node.property.type==="Identifier"){let S=e.node.property.name,b=hu(S,a);if(b!=null&&b.token){let E=Si(b.token),C={previous:S,next:E,line:(m=e.node.loc)==null?void 0:m.start.line,needsVerification:b.needsVerification,description:b.description},k=`${n}:${(w=e.node.loc)==null?void 0:w.start.line}:${(x=e.node.loc)==null?void 0:x.start.column}`;o.set(k,C),e.replace(t.memberExpression(t.memberExpression(t.identifier("theme"),t.identifier("colors"),!1),t.stringLiteral(E),!0))}}}var Z0=(t,e)=>{let r=fu("replace-stitches-theme-color"),n=e.jscodeshift,i=n(t.source),o=new Set,s=new Map;r.startFile(t.path),i.find(n.MemberExpression,{object:{type:"MemberExpression",object:{name:"theme"},property:{name:"colors"}}}).forEach(a=>{$i(n,a,r,t.path,o,s)}),i.find(n.ConditionalExpression).forEach(a=>{jt(n,a,{type:n.MemberExpression,filter:{object:{type:"MemberExpression",object:{name:"theme"},property:{name:"colors"}}}},(l,u)=>{$i(n,l,r,t.path,o,s)},{processNestedTernaries:!0})}),i.find(n.TemplateLiteral).find(n.MemberExpression,{object:{type:"MemberExpression",object:{name:"theme"},property:{name:"colors"}}}).forEach(a=>{$i(n,a,r,t.path,o,s)});for(let[a,l]of s.entries())r.logTransformResult(t.path,{previousToken:l.previous,nextToken:l.next,status:"success",line:l.line,needsVerification:l.needsVerification,description:l.description});return r.finishFile(t.path),i.toSource()},Q0=Z0;
33
33
  /*! Bundled license information:
34
34