/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 79283:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
module.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=45)}([,,function(e,t){e.exports=__nccwpck_require__(37414)},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOG_LEVEL=void 0;const o=n(17);!function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(t.LOG_LEVEL||(t.LOG_LEVEL={})),t.default=class{static configure(e,t){o.configure({appenders:{file:{type:"fileSync",filename:""+e,maxLogSize:5242880,backups:5,compress:!0,encoding:"utf-8",layout:{type:"pattern",pattern:"[%d] [%p] [%z] - %m%n"}},console:{type:"console"}},categories:{default:{appenders:["console"],level:"error",enableCallStack:!1},codelinter:{appenders:["file"],level:t,enableCallStack:!0}}})}static getLogger(){return o.getLogger("codelinter")}static setLogLevel(e){o.getLogger("codelinter").level=e}}},function(e,t){e.exports=__nccwpck_require__(71017)},function(e,t){e.exports=__nccwpck_require__(57147)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readFile=t.readFileLines=t.ProjectOsType=t.SDK_PATH_COMPONENT=t.SDK_PATH_ETS_LOADER=t.SDK_PATH_BUILD_TOOLS=t.COMPONENT_FILE_NAME=t.SDK_VERSION_LENGTH=t.OHOS_SDK_VERSION=t.HOS_SDK_VERSION=t.NUM_WORKERS=t.CODE_LINE_MAXIMAL=t.ETS_LANGUAGE=t.TS_LANGUAGE=t.JS_LANGUAGE=t.TS_EXTS=t.JS_EXTS=t.ETS_EXTS=t.GENEARL_JS_EXTS=t.engineName=void 0;const o=n(7),r=n(12),i=/\r\n|[\r\n\u2028\u2029]/;t.engineName="eslintAgent",t.GENEARL_JS_EXTS=[".js",".ts"],t.ETS_EXTS=[".ets"],t.JS_EXTS=[".js"],t.TS_EXTS=[".ts"],t.JS_LANGUAGE="js",t.TS_LANGUAGE="ts",t.ETS_LANGUAGE="ets",t.CODE_LINE_MAXIMAL=5e3,t.NUM_WORKERS=r.cpus().length>1?r.cpus().length-1:1,t.HOS_SDK_VERSION=[3,0,0,5],t.OHOS_SDK_VERSION=[3,1,3,2],t.SDK_VERSION_LENGTH=4,t.COMPONENT_FILE_NAME="component_config.json",t.SDK_PATH_BUILD_TOOLS="build-tools",t.SDK_PATH_ETS_LOADER="ets-loader",t.SDK_PATH_COMPONENT="component",function(e){e.OHOS="ohos",e.HOS="hos"}(t.ProjectOsType||(t.ProjectOsType={})),t.readFileLines=function(e){return function(e){const t=new RegExp(i.source,"gu");return e.split(t)}(o.readFileSync(e,"utf8"))},t.readFile=function(e){return o.readFileSync(e,"utf8").replace(/^\ufeff/u,"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printNormal=t.printInfo=t.printError=t.printWarning=void 0,t.printWarning=function(e){console.log("[33m%s[0m",e)},t.printError=function(e){console.log("[31m%s[0m",e)},t.printInfo=function(e){console.log("[32m%s[0m",e)},t.printNormal=function(e){console.log(e)}},,,function(e,t){e.exports=__nccwpck_require__(22037)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseJsonText=void 0;const o=n(2),r=n(5).default.getLogger();function i(e,t){const n={};return e.properties.forEach(e=>{const o=e,r=o.name.text,i=s(o.initializer,t);n[r]=i}),n}function s(e,t){return e.kind===o.SyntaxKind.StringLiteral?e.text:e.kind===o.SyntaxKind.NumericLiteral?parseInt(e.text):e.kind===o.SyntaxKind.PrefixUnaryExpression?Number(e.getText(t)):e.kind===o.SyntaxKind.ArrayLiteralExpression?function(e,t){const n=[];return e.elements.forEach(e=>{n.push(s(e,t))}),n}(e,t):e.kind===o.SyntaxKind.ObjectLiteralExpression?i(e,t):e.kind===o.SyntaxKind.TrueKeyword||e.kind!==o.SyntaxKind.FalseKeyword&&void 0}t.parseJsonText=function(e){const t=o.parseJsonText("",e),n=function(e){if(!e.statements||!e.statements.length)return void r.error("The JSON5 file format is incorrect, the root node statements is empty.");const t=e.statements[0];if(t.kind!==o.SyntaxKind.ExpressionStatement)return void r.error("The JSON5 file format is incorrect, the first child node is not ExpressionStatement. kind: "+t.kind);const n=t.expression;if(n){if(n.kind===o.SyntaxKind.ObjectLiteralExpression)return n;if(n.kind===o.SyntaxKind.ArrayLiteralExpression){const e=n.elements;if(e&&e.length&&e[0].kind===o.SyntaxKind.ObjectLiteralExpression)return e[0];r.error("The JSON5 file format is incorrect, the node ArrayLiteralExpression first element is not ObjectLiteralExpression.")}r.error("The JSON5 file format is incorrect")}else r.error("The JSON5 file format is incorrect, the first child node expression is empty.")}(t);return n?i(n,t):{}}},function(e){e.exports=JSON.parse('{"files":["**/*.js","**/*.ts","**/*.ets","**/*.js"],"ignore":["**/ohosTest/**/*","**/node_modules/**/*","**/hvigorfile.ts","**/node_modules/**/*","**/build/**/*","**/.preview/**/*"],"plugins":["@typescript-eslint"],"ruleSet":[],"rules":{"@typescript-eslint/await-thenable":"warn","@typescript-eslint/consistent-type-imports":"warn","@typescript-eslint/explicit-function-return-type":"warn","@typescript-eslint/explicit-module-boundary-types":"warn","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-for-in-array":"warn","@typescript-eslint/no-this-alias":"warn","@typescript-eslint/no-unnecessary-type-constraint":"warn","@typescript-eslint/no-unsafe-argument":"warn","@typescript-eslint/no-unsafe-assignment":"warn","@typescript-eslint/no-unsafe-call":"warn","@typescript-eslint/no-unsafe-member-access":"warn","@typescript-eslint/no-unsafe-return":"warn","@typescript-eslint/prefer-literal-enum-member":"warn"},"overrides":[]}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cli=void 0;const o=n(7),r=n(6),i=n(16),s=n(5),l=n(18),a=n(26),c=n(32),u=n(33),p=n(34),d=n(8),{version:f}=n(35),m=s.default.getLogger();t.cli={async execute(e,t){const{cliOptions:n,moduleParams:h}=function(e,t){const n=new u.Command;let i;i=t?function(e,t){return e.version("1.0.0","-v --version").option("-c, --config <configPath>","the path of the code-linter.json5").option("-a,--agent <agentPath>","the path of the code-linter agent").option("-f --fix","auto fix the defects").option("-fa --fixAll <fixAll>","fix all the defects which can be fixed").option("-i, --inIde <inIde>","be invoked in ide").option("-s, --source <source>","detect.json if inIde is true, root path of the project else").option("-o, --output <reportFile>","report file").option("-p, --param <param>","project parameter").option("-oh, --ohpm <ohpm>","if the project use ohpm to manage packages").option("-pp, --projectPath <projectPath>","root path of project").parse(t),e.opts()}(n,e):function(e,t){e.version("1.0.0","-v --version").option("-c, --config <configPath>","the path of the code-linter.json5").option("-f --fix","auto fix the defects").option("-s, --source <source>","detect.json if inIde is true, root path of the project else").option("-o, --output <reportFile>","report file").helpOption(!1).parse(t);const n=e.opts();return n.source||(n.source=process.cwd()),n.inIde="false",n.agent=""+r.resolve(t[1],"..",".."),n.fixAll=!0,n.workdir=""+r.resolve(t[1],"..","..",".."),n}(n,e),i.fix=i.fix?"true":"false";const l=r.resolve(r.dirname(i.output),"codelinter.log");o.existsSync(l)&&o.unlinkSync(l),i.logPath=l,s.default.configure(l,s.LOG_LEVEL.TRACE),m.info(`entered into codelinter ${f} w