"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.util=void 0;exports.util=new class{constructor(){this.DATA_ARR_FILL=" ",this.PATTERN_COLOR=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|")}strWidth(t){if(!t)return 0;let r=0;for(let e=0;e<t.length;e++)r+=exports.util.calcWith(t.charCodeAt(e));return r}strWidthWithoutColors(t){return t?exports.util.strWidth(exports.util.removeColors(t.trim())):0}removeColors(t){return t.replace(new RegExp(this.PATTERN_COLOR,"g"),"")}genEmptyList(t){return new Array(t).fill(this.DATA_ARR_FILL)}genEmptyStrOfCount(t){return exports.util.genEmptyList(t).join("")}calcWith(t){return t<32||t>=127?0:1}};