"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.posh=void 0;const e=require("./enum");function t(e){return`[${e}m`}const r=class{},o=Object.create(null);e.ParameterList.forEach((r=>{const n=r.parameter;o[n]={get(){let o=[r];const n=this._chain;n&&(o=[...n,...o]);const c=r=>{let n=r;return o.forEach((r=>{n=function(r,o){if(r.type===e.StyleType.Color){const{attribute:e,color:n,reset:s}=r;return`${t(e+n)}${o}${t(s)}`}if(r.type===e.StyleType.Decoration){const{attribute:e,reset:n}=r;return`${t(e)}${o}${t(n)}`}return`${o}`}(r,n)})),n};return Object.setPrototypeOf(c,s),c._chain=o,c}}}));const n=()=>{};Object.setPrototypeOf(n,r);const s=Object.defineProperties(n,Object.assign({},o));Object.defineProperties(r.prototype,o),exports.posh=new r;