@atomicservice/ascf-toolkit 1.0.7 → 1.0.9

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.
Files changed (101) hide show
  1. package/lib/ascf-base/index.js +1 -1
  2. package/lib/ascf-common/index.js +1 -1
  3. package/lib/ascf-compiler/appjson-loader.js +1 -1
  4. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  5. package/lib/ascf-compiler/common/ascf-define.js +1 -1
  6. package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -1
  7. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  8. package/lib/ascf-compiler/common/eventHappenHjs.js +1 -1
  9. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  10. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  11. package/lib/ascf-compiler/common/hdc-executor.js +1 -1
  12. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  13. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  14. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  15. package/lib/ascf-compiler/common/manifest-handler.js +1 -1
  16. package/lib/ascf-compiler/common/manifest-manager.js +1 -1
  17. package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
  18. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  19. package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
  20. package/lib/ascf-compiler/common/utils.js +1 -1
  21. package/lib/ascf-compiler/css-process-loader.js +1 -1
  22. package/lib/ascf-compiler/extract-loader.js +1 -1
  23. package/lib/ascf-compiler/hcss-loader.js +1 -1
  24. package/lib/ascf-compiler/hjs-loader.js +1 -1
  25. package/lib/ascf-compiler/hxml-loader.js +1 -1
  26. package/lib/ascf-compiler/js-parser/parser-babel.js +1 -1
  27. package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
  28. package/lib/ascf-compiler/js-parser/parser.js +1 -1
  29. package/lib/ascf-compiler/loader-utils.js +1 -1
  30. package/lib/ascf-compiler/path-process-loader.js +1 -1
  31. package/lib/ascf-compiler/plugin/before-loader-plugin.js +1 -1
  32. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  33. package/lib/ascf-compiler/plugin/dynamic-entry-plugin.js +1 -1
  34. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  35. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  36. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  37. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  38. package/lib/ascf-compiler/plugin/quick-service-build-plugin.js +1 -1
  39. package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -1
  40. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  41. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  42. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  43. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  44. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  45. package/lib/ascf-compiler/require-loader.js +1 -1
  46. package/lib/ascf-compiler/server/dev-server.js +1 -1
  47. package/lib/ascf-compiler/server/port-manager.js +1 -1
  48. package/lib/ascf-compiler/swc-loader.js +1 -1
  49. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  50. package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
  51. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  52. package/lib/ascf-compiler/template-compiler/index.js +1 -0
  53. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  54. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  55. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  56. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  57. package/lib/ascf-compiler/trustlist-verify/verify-ignore-files.js +1 -1
  58. package/lib/ascf-compiler/vue-compiler/vue-compiler.d.ts +8 -0
  59. package/lib/ascf-compiler/vue-compiler/vue-compiler.js +1 -0
  60. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  61. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  62. package/lib/ascf-converter/ascfApisDiff.json +1 -1
  63. package/lib/ascf-converter/common/commonConfig.js +1 -1
  64. package/lib/ascf-converter/common/commonUtils.js +1 -1
  65. package/lib/ascf-converter/common/path-validator.js +1 -1
  66. package/lib/ascf-converter/common/textDocument.js +1 -1
  67. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  68. package/lib/ascf-converter/convertManager.js +1 -1
  69. package/lib/ascf-converter/features/converter.js +1 -1
  70. package/lib/ascf-converter/features/fileHandle.js +1 -1
  71. package/lib/ascf-converter/features/transformReport.js +1 -1
  72. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  73. package/lib/ascf-converter/parse/babelParser.js +1 -1
  74. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  75. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  76. package/lib/ascf-converter/report/js/index.js +1 -1
  77. package/lib/ascf-sign-tools/cli.js +1 -1
  78. package/lib/ascf-sign-tools/index.js +1 -1
  79. package/lib/bin/ascf.js +1 -1
  80. package/lib/commands/ascfbuild/index.js +1 -1
  81. package/lib/commands/build-npm/index.js +1 -1
  82. package/lib/commands/compile.js +1 -1
  83. package/lib/commands/convert.js +1 -1
  84. package/lib/commands/debugger/index.js +1 -1
  85. package/lib/commands/quickservice/index.js +1 -1
  86. package/lib/common/config.js +1 -1
  87. package/lib/common/constants.js +1 -1
  88. package/lib/common/log4js.js +1 -1
  89. package/lib/common/logger-plugin.js +1 -1
  90. package/lib/common/remove-strict-mode-plugin.js +1 -1
  91. package/lib/common/string-utils.js +1 -1
  92. package/lib/common/utils.js +1 -1
  93. package/lib/common/version-check.js +1 -1
  94. package/lib/index.d.ts +1 -1
  95. package/lib/index.js +1 -1
  96. package/lib/tools/platform-tools-darwin/adb +0 -0
  97. package/lib/tools/platform-tools-windows/AdbWinApi.dll +0 -0
  98. package/lib/tools/platform-tools-windows/AdbWinUsbApi.dll +0 -0
  99. package/lib/tools/platform-tools-windows/adb.exe +0 -0
  100. package/package.json +7 -2
  101. package/lib/ascf-base/index.d.ts +0 -79
package/lib/bin/ascf.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var _0x22241b=_0x3317;function _0xe9cc(){var r=["parse","version","../commands/convert","51258XxsyPB","install","Command","enable debug logging","forEach","../common/constants.js","opts","hook","../common/log4js.js","841955kMJMAr","--logging [level]","_ascfDebug","1182717XGviFa","--targets","14QcFiFd","description","../ascf-common","_ascfCliProgram","617536BErdlL","includes","--debug","../commands/debugger","787064XVHSKi","422379LSonNd","BUILD_TARGET_QS","preAction","../commands/ascfbuild","10dljXsG","8087wvzhAf","../commands/quickservice","38pKixMr","../../package.json","option","Setting the log level","debug"];return(_0xe9cc=function(){return r})()}(()=>{for(var r=_0x3317,e=_0xe9cc();;)try{if(120808==-parseInt(r(468))*(-parseInt(r(470))/2)+parseInt(r(463))/3+-parseInt(r(462))/4+-parseInt(r(449))/5+-parseInt(r(478))/6*(parseInt(r(454))/7)+parseInt(r(458))/8+-parseInt(r(452))/9*(-parseInt(r(467))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x22241b(456)),Command=_require[_0x22241b(480)],pkg=require(_0x22241b(471)),_require2=require(_0x22241b(448)),setLoggerConfig=_require2.setLoggerConfig,convertCmd=require(_0x22241b(477)),compileCmd=require("../commands/compile"),buildNpmCmd=require("../commands/build-npm"),debuggerCmd=require(_0x22241b(461)),ascfbuildCmd=require(_0x22241b(466)),quickserviceCmd=require(_0x22241b(469)),_require3=require(_0x22241b(445)),BUILD_TARGET_QS=_require3[_0x22241b(464)],program=(global._supportLegacyHos=((r,e)=>{var o=_0x22241b,n=r.indexOf(o(453));return-1!==n&&(null==(e=r[n+1])?void 0:e[o(459)](BUILD_TARGET_QS))})(process.argv.slice(2)),new Command),cmds=[convertCmd,compileCmd,buildNpmCmd,debuggerCmd,ascfbuildCmd,quickserviceCmd];function _0x3317(r,e){var o=_0xe9cc();return(_0x3317=function(r,e){return o[r-=443]})(r,e)}program[_0x22241b(476)](pkg[_0x22241b(476)])[_0x22241b(455)]("ascf toolkit convert and compile ascf project")[_0x22241b(472)](_0x22241b(450),_0x22241b(473)).option(_0x22241b(460),_0x22241b(443)),program[_0x22241b(447)](_0x22241b(465),function(){var r,e=_0x22241b;setLoggerConfig(null==(r=program[e(446)]())?void 0:r.logging),global[e(457)]=program,global[e(451)]=!(null==(r=program[e(446)]())||!r[e(474)])}),cmds[_0x22241b(444)](function(r){return null==r?void 0:r[_0x22241b(479)](program)}),program[_0x22241b(475)](process.argv);
2
+ var _0x41cc19=_0x4338;function _0x2583(){var r=["legacy","hasArg","option","1663752nFvAgw","../commands/convert","215920oefUbN","logging","--deviceType","3BDpmOI","debug","enable debug logging","preAction","--logging [level]","version","ascf toolkit convert and compile ascf project","11wCWebY","45ozKCyi","_ascfDebug","../commands/compile","Setting the log level, debug,info,warn,error,fatal","10uKSdwQ","-d,--debug","6867300tHeGnu","91wmnrCS","24698yOmvfQ","parse","445540ZQFCJu","description","1753040TbBZLC","BUILD_TARGET_QS","argv","info","_supportLegacyHos","setLoggerConfig","../commands/build-npm","../commands/quickservice","62270bkxJQn","../commands/ascfbuild"];return(_0x2583=function(){return r})()}function _0x4338(r,e){var c=_0x2583();return(_0x4338=function(r,e){return c[r-=151]})(r,e)}(()=>{for(var r=_0x4338,e=_0x2583();;)try{if(191329==-parseInt(r(155))*(-parseInt(r(159))/2)+parseInt(r(181))/3*(-parseInt(r(161))/4)+-parseInt(r(163))/5+parseInt(r(176))/6+-parseInt(r(158))/7*(parseInt(r(178))/8)+parseInt(r(151))/9*(parseInt(r(171))/10)+-parseInt(r(188))/11*(-parseInt(r(157))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require("../ascf-common"),Command=_require.Command,pkg=require("../../package.json"),_require2=require("../common/log4js.js"),setLoggerConfig=_require2[_0x41cc19(168)],convertCmd=require(_0x41cc19(177)),compileCmd=require(_0x41cc19(153)),buildNpmCmd=require(_0x41cc19(169)),debuggerCmd=require("../commands/debugger"),ascfbuildCmd=require(_0x41cc19(172)),quickserviceCmd=require(_0x41cc19(170)),_require3=require("../common/constants.js"),BUILD_TARGET_QS=_require3[_0x41cc19(164)],hasArg=_require3[_0x41cc19(174)],programClass=(global[_0x41cc19(167)]=(r=>{var e=_0x41cc19;return hasArg(r,"--targets",BUILD_TARGET_QS)||hasArg(r,e(180),e(173))})(process[_0x41cc19(165)].slice(2)),new Command),cmds=[convertCmd,compileCmd,buildNpmCmd,debuggerCmd,ascfbuildCmd,quickserviceCmd],program=programClass[_0x41cc19(186)](pkg[_0x41cc19(186)])[_0x41cc19(162)](_0x41cc19(187))[_0x41cc19(175)](_0x41cc19(185),_0x41cc19(154),_0x41cc19(166))[_0x41cc19(175)](_0x41cc19(156),_0x41cc19(183),!1);program.hook(_0x41cc19(184),function(){var r,e=_0x41cc19;global[e(152)]=!(null==(r=program.opts())||!r[e(182)]),setLoggerConfig(global[e(152)]?e(182):null==(r=program.opts())?void 0:r[e(179)]),global._ascfCliProgram=program}),cmds.forEach(function(r){return null==r?void 0:r.install(program)}),program[_0x41cc19(160)](process[_0x41cc19(165)]);
@@ -1 +1 @@
1
- function _0x4aa8(){var e=["22TVlkLK","value","cwd","toString","description","assembleHap","@@toStringTag","@@iterator","' method","chdir","return","clean","then","create","toStringTag","done","15298758mDPtfL","apply","21NXVUcR","prototype","GeneratorFunction","defineProperty","exports","constructor","select a device","getPrototypeOf","AscfBuilder","85758OASouU","_invoke","400049WKUsDn","bind","resolve","projectRoot","6946800suSPkz","249162yFOsNL","-r, --projectRoot [projectRoot]","function","[object Generator]","4365470pSumDH","action","command","Build ASCF project","option","installHap","assembleAndInstallHap","call","handle","throw","next","setPrototypeOf","../../ascf-base","Generator","4196844zFqoxX","forEach","iterator"];return(_0x4aa8=function(){return e})()}var _0x2a35ec=_0x453a;function _regenerator(){var g,h=_0x453a,e=h(471)==typeof Symbol?Symbol:{},r=e[h(434)]||h(442),n=e[h(449)]||h(441);function t(e,r,n,t){var o,a,i,c,u,f,s,p,_,l,v=h,r=r&&r[v(454)]instanceof x?r:x,r=Object.create(r[v(454)]);return _regeneratorDefine2(r,v(463),(o=e,a=n,p=t||[],_=!1,l={p:s=0,n:0,v:g,a:d,f:d[(f=v)(465)](g,4),d:function(e,r){return i=e,c=0,u=g,l.n=r,y}},function(e,r,n){var t=f;if(1<s)throw TypeError("Generator is already running");for(_&&1===r&&d(r,n),c=r,u=n;(b=c<2?g:u)||!_;){i||(c?c<3?(1<c&&(l.n=-1),d(c,u)):l.n=u:l.v=u);try{if(s=2,i){if(b=i[e=c?e:"next"]){if(!(b=b.call(i,u)))throw TypeError("iterator result is not an object");if(!b.done)return b;u=b[t(436)],c<2&&(c=0)}else 1===c&&(b=i[t(445)])&&b[t(425)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+t(443)),c=1);i=g}else if((b=(_=l.n<0)?u:o[t(425)](a,l))!==y)break}catch(e){i=g,c=1,u=e}finally{s=1}}return{value:b,done:_}}),!0),r;function d(e,r){for(c=e,u=r,b=0;!_&&s&&!n&&b<p.length;b++){var n,t=p[b],o=l.p,a=t[2];3<e?(n=a===r)&&(u=t[(c=t[4])?5:c=3],t[4]=t[5]=g):t[0]<=o&&((n=e<2&&o<t[1])?(c=0,l.v=r,l.n=t[1]):o<a&&(n=e<3||t[0]>r||a<r)&&(t[4]=e,t[5]=r,l.n=a,c=0))}if(n||1<e)return y;throw _=!0,r}}var y={};function x(){}function o(){}function a(){}var b=Object[h(460)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a[h(454)]=x[h(454)]=Object.create(e);function c(e){var r=h;return Object[r(429)]?Object[r(429)](e,a):(e.__proto__=a,_regeneratorDefine2(e,n,r(455))),e[r(454)]=Object[r(448)](i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,h(458),o),o.displayName=h(455),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,h(431)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,h(438),function(){return h(472)}),(_regenerator=function(){return{w:t,m:c}})()}function _0x453a(e,r){var n=_0x4aa8();return(_0x453a=function(e,r){return n[e-=423]})(e,r)}function _regeneratorDefine2(e,r,n,t){var a=_0x453a,i=Object[a(456)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,n,t){var o=a;r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x453a(463)](r,n,e)})})(o(428),0),t(o(427),1),t(o(445),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x453a;try{var u=e[a](i),f=u[c(436)]}catch(e){return void n(e)}u[c(450)]?r(f):Promise[c(466)](f)[c(447)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x453a,o=u[t(452)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(428),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(427),e)}a(void 0)})}}(()=>{for(var e=_0x453a,r=_0x4aa8();;)try{if(536963==+parseInt(e(464))+parseInt(e(435))/2*(-parseInt(e(469))/3)+parseInt(e(432))/4+-parseInt(e(473))/5+parseInt(e(462))/6*(parseInt(e(453))/7)+-parseInt(e(468))/8+parseInt(e(451))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x2a35ec(430)),AscfBuilder=_require[_0x2a35ec(461)];module[_0x2a35ec(457)]={install:function(e){function n(t){return r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x453a;;)switch(e.n){case 0:n.projectRoot?process[r(444)](n.projectRoot):n[r(467)]=process[r(437)](),new AscfBuilder(n)[r(426)](t);case 1:return e.a(2)}},e)})),function(e){return r[_0x453a(452)](this,arguments)};var r}var t=_0x2a35ec,o=e[t(475)]("build")[t(439)](t(476));["installDeps",t(440),t(446)][t(433)](function(e){var r=t;o[r(475)](e)[r(439)](e)[r(477)](r(470),r(467))[r(474)](n(e))}),[t(423),t(424),"uninstall","start"][t(433)](function(e){var r=t;o.command(e)[r(439)](e)[r(477)](r(470),r(467))[r(477)]("-t, --deviceId [deviceId]",r(459))[r(474)](n(e))})}};
1
+ var _0x1ea03b=_0x2304;function _0x5ec2(){var e=["setPrototypeOf","bind","-m, --buildMode [buildMode]","projectRoot","44sVgIgr","' method","description","GeneratorFunction","assign","from","37315pLhGts","756gnBtTx","[object Generator]","test","@@iterator","create","-r, --projectRoot [projectRoot]","done","56isiKir","assembleHap","constructor","iterator result is not an object","544eFLKmd","select a device","chdir","99UPCmjt","undefined","11744Hbzchu","-t, --deviceId [deviceId]","assembleAndInstallHap","name","prototype","156423SnqgUn","252EUunLb","throw","Build targets, atomicservice and ","iterator","normalizeTargets","Map","apply","../../common/constants","27365WBrEkz","clean","concat","length","next","Generator is already running","displayName","--deviceType [deviceType]","build mode: debug,release","Build ASCF project","opts","defineProperty","debug","handle","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","string","installDeps","getPrototypeOf","parent","60438fpQYpl","119280KLLbMJ","call","BUILD_TARGET_AS","__proto__","device type, hos | legacy","toStringTag","_invoke","forEach","value","cwd","assembleApp","The iterator does not provide a '","start","installHap","@@toStringTag","6818RaxuML","Set","hos","includes","64XuRvpF","Generator","exports","slice","option","Arguments","function","command","BuildProcessFactory"];return(_0x5ec2=function(){return e})()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x2304(295))}function _unsupportedIterableToArray(e,r){var t,n=_0x2304;if(e)return n(296)==typeof e?_arrayLikeToArray(e,r):("Object"===(t={}.toString[n(302)](e)[n(234)](8,-1))&&e.constructor&&(t=e.constructor[n(270)]),n(278)===t||n(317)===t?Array[n(249)](e):n(236)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(253)](t)?_arrayLikeToArray(e,r):void 0)}function _iterableToArray(e){var r=_0x2304;if(r(266)!=typeof Symbol&&null!=e[Symbol[r(276)]]||null!=e[r(254)])return Array[r(249)](e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2304(284)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function _regenerator(){var b,v=_0x2304,e=v(237)==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",t=e[v(306)]||v(315);function n(e,r,t,n){var o,a,i,c,u,s,l,f,_,p,y=v,r=r&&r.prototype instanceof m?r:m,r=Object[y(255)](r[y(271)]);return _regeneratorDefine2(r,y(307),(o=e,a=t,f=n||[],_=!1,p={p:l=0,n:0,v:b,a:d,f:d[(s=y)(241)](b,4),d:function(e,r){return i=e,c=0,u=b,p.n=r,g}},function(e,r,t){var n=s;if(1<l)throw TypeError(n(286));for(_&&1===r&&d(r,t),c=r,u=t;(T=c<2?b:u)||!_;){i||(c?c<3?(1<c&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(l=2,i){if(T=i[e=c?e:"next"]){if(!(T=T.call(i,u)))throw TypeError(n(261));if(!T[n(257)])return T;u=T[n(309)],c<2&&(c=0)}else 1===c&&(T=i.return)&&T[n(302)](i),c<2&&(u=TypeError(n(312)+e+n(245)),c=1);i=b}else if((T=(_=p.n<0)?u:o.call(a,p))!==g)break}catch(e){i=b,c=1,u=e}finally{l=1}}return{value:T,done:_}}),!0),r;function d(e,r){var t=s;for(c=e,u=r,T=0;!_&&l&&!n&&T<f[t(284)];T++){var n,o=f[T],a=p.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=b):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,p.v=r,p.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,p.n=i,c=0))}if(n||1<e)return g;throw _=!0,r}}var g={};function m(){}function o(){}function a(){}var T=Object[v(298)],e=[][r]?T(T([][r]())):(_regeneratorDefine2(T={},r,function(){return this}),T),i=a[v(271)]=m[v(271)]=Object.create(e);function c(e){var r=v;return Object.setPrototypeOf?Object[r(240)](e,a):(e[r(304)]=a,_regeneratorDefine2(e,t,r(247))),e[r(271)]=Object[r(255)](i),e}return o.prototype=a,_regeneratorDefine2(i,v(260),a),_regeneratorDefine2(a,"constructor",o),o[v(287)]=v(247),_regeneratorDefine2(a,t,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,t,v(232)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return v(252)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var i=_0x2304,c=Object[i(292)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,t,n){var o=i;function a(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x2304(307)](r,t,e)})}r?c?c(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a(o(285),0),a(o(274),1),a("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x2304;try{var u=e[a](i),s=u[c(309)]}catch(e){return void t(e)}u[c(257)]?r(s):Promise.resolve(s).then(n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x2304,o=u[n(279)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(285),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(274),e)}a(void 0)})}}(()=>{for(var e=_0x2304,r=_0x5ec2();;)try{if(472175==-parseInt(e(231))*(-parseInt(e(267))/2)+parseInt(e(272))/3*(parseInt(e(258))/4)+parseInt(e(250))/5*(-parseInt(e(251))/6)+parseInt(e(300))/7*(-parseInt(e(262))/8)+parseInt(e(265))/9*(-parseInt(e(301))/10)+parseInt(e(244))/11*(-parseInt(e(273))/12)+-parseInt(e(281))/13*(-parseInt(e(316))/14))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require("../../ascf-base"),BuildProcessFactory=_require[_0x1ea03b(239)],_require2=require(_0x1ea03b(280)),BUILD_TARGET_QS=_require2.BUILD_TARGET_QS,BUILD_TARGET_AS=_require2[_0x1ea03b(303)],normalizeTargets=_require2[_0x1ea03b(277)];function _0x2304(e,r){var t=_0x5ec2();return(_0x2304=function(e,r){return t[e-=231]})(e,r)}module[_0x1ea03b(233)]={install:function(e){var o=_0x1ea03b,i=e[o(238)]("build")[o(246)](o(290)),e=[o(297),o(282)],c=[o(259),o(311),o(269)],u=[o(314),o(269),"uninstall",o(313)];_toConsumableArray(new Set([][o(283)](e,c,u)))[o(308)](function(e){var a,t,r=o,n=i[r(238)](e)[r(246)](e)[r(235)](r(256),r(243));c[r(319)](e)&&n[r(235)](r(242),r(289),r(293))[r(235)]("--targets [buildTarget]",r(275).concat(BUILD_TARGET_QS),BUILD_TARGET_AS),u.includes(e)&&n[r(235)](r(288),r(305),r(318))[r(235)](r(268),r(263)),n.action((a=e,t=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(var r=_0x2304;;)switch(e.n){case 0:return o=Object[r(248)]({},null==n||null==(o=n[r(299)])?void 0:o[r(291)](),t),global._ascfCliOptions=normalizeTargets(o),o[r(243)]?process[r(264)](o.projectRoot):o[r(243)]=process[r(310)](),e.n=1,BuildProcessFactory[r(255)](o);case 1:e.v[r(294)](a);case 2:return e.a(2)}},e)})),function(e,r){return t[_0x2304(279)](this,arguments)}))})}};
@@ -1 +1 @@
1
- var _0x30eb9d=_0x545a;function _regenerator(){var m,v=_0x545a,e=v(305)==typeof Symbol?Symbol:{},r=e[v(336)]||"@@iterator",n=e[v(295)]||v(335);function t(e,r,n,t){var o,a,i,u,c,f,s,p,l,_,d=v,r=r&&r[d(293)]instanceof h?r:h,r=Object[d(309)](r[d(293)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=n,p=t||[],l=!1,_={p:s=0,n:0,v:m,a:g,f:g[(f=d)(315)](m,4),d:function(e,r){return i=e,u=0,c=m,_.n=r,b}},function(e,r,n){var t=f;if(1<s)throw TypeError(t(290));for(l&&1===r&&g(r,n),u=r,c=n;(x=u<2?m:c)||!l;){i||(u?u<3?(1<u&&(_.n=-1),g(u,c)):_.n=c:_.v=c);try{if(s=2,i){if(u||(e=t(303)),x=i[e]){if(!(x=x[t(288)](i,c)))throw TypeError(t(340));if(!x[t(320)])return x;c=x[t(291)],u<2&&(u=0)}else 1===u&&(x=i[t(326)])&&x[t(288)](i),u<2&&(c=TypeError(t(343)+e+t(345)),u=1);i=m}else if((x=(l=_.n<0)?c:o.call(a,_))!==b)break}catch(e){i=m,u=1,c=e}finally{s=1}}return{value:x,done:l}}),!0),r;function g(e,r){var n=f;for(u=e,c=r,x=0;!l&&s&&!t&&x<p[n(312)];x++){var t,o=p[x],a=_.p,i=o[2];3<e?(t=i===r)&&(c=o[(u=o[4])?5:u=3],o[4]=o[5]=m):o[0]<=a&&((t=e<2&&a<o[1])?(u=0,_.v=r,_.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,u=0))}if(t||1<e)return b;throw l=!0,r}}var b={};function h(){}function o(){}function a(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=a[v(293)]=h[v(293)]=Object[v(309)](e);function u(e){var r=v;return Object[r(338)]?Object[r(338)](e,a):(e[r(306)]=a,_regeneratorDefine2(e,n,r(328))),e[r(293)]=Object.create(i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,v(346),o),o[v(294)]=v(328),_regeneratorDefine2(a,n,v(328)),_regeneratorDefine2(i),_regeneratorDefine2(i,n,v(348)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,v(347),function(){return"[object Generator]"}),(_regenerator=function(){return{w:t,m:u}})()}function _0x545a(e,r){var n=_0x2536();return(_0x545a=function(e,r){return n[e-=288]})(e,r)}function _regeneratorDefine2(e,r,n,t){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var o=_0x545a;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e)})})(o(303),0),t(o(307),1),t(o(326),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var u=_0x545a;try{var c=e[a](i),f=c.value}catch(e){return void n(e)}c[u(320)]?r(f):Promise[u(337)](f).then(t,o)}function _asyncToGenerator(c){return function(){var e=this,u=arguments;return new Promise(function(r,n){var t=_0x545a,o=c[t(302)](e,u);function a(e){asyncGeneratorStep(o,r,n,a,i,t(303),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(307),e)}a(void 0)})}}(()=>{for(var e=_0x545a,r=_0x2536();;)try{if(131602==-parseInt(e(322))+-parseInt(e(319))/2*(-parseInt(e(308))/3)+parseInt(e(339))/4+parseInt(e(324))/5+parseInt(e(301))/6*(parseInt(e(289))/7)+-parseInt(e(333))/8+parseInt(e(296))/9*(-parseInt(e(344))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x30eb9d(313)),readJsonFile=_require.readJsonFile,hasHxml=_require[_0x30eb9d(310)],moveFiles=_require[_0x30eb9d(314)],path=require(_0x30eb9d(298)),fs=require("fs"),log4js=require(_0x30eb9d(330)),logger=log4js[_0x30eb9d(327)]("buildNpm");function buildMiniProgramNpm(e){var r=_0x30eb9d,n=readJsonFile(path[r(342)](e,r(331),r(334),r(318)));if(n==={})logger[r(299)](r(297));else{if(n[r(325)])for(var t in n.dependencies)if(Object[r(293)].hasOwnProperty[r(288)](n[r(325)],t)){var o=path[r(342)](e,r(331),r(334),"miniprogram_npm",t);if(!fs[r(329)](o)){var a=path.join(e,"ascf",r(334),r(311),t);if(!fs[r(329)](a))return void logger[r(321)](""[r(323)](t,r(317))[r(323)](t,"."));hasHxml(a)&&(t=readJsonFile(path[r(342)](a,r(318))).miniprogram,moveFiles(t?path[r(342)](a,t):a,o))}}logger[r(300)]("All npm dependencies has been built.")}}function buildNpm(e){var r=_0x30eb9d;try{buildMiniProgramNpm(e)}catch(e){logger.error(r(316).concat(e,"."))}}function _0x2536(){var e=["iterator result is not an object","buildNpm <projectRoot>","join","The iterator does not provide a '","730IyMCZP","' method","constructor","toString","Generator","call","7eaDAvf","Generator is already running","value","action","prototype","displayName","toStringTag","26361cVIKfp","Dependencies info not found.","path","warn","info","800706Qkyxgj","apply","next","exports","function","__proto__","throw","9kYYxsk","create","hasHxml","node_modules","length","../../common/utils","moveFiles","bind","Error: ascf buildNpm error: "," not found in node_modules, please run npm install ","package.json","49634YgzowW","done","error","30386eKkUVy","concat","592470SfZMRX","dependencies","return","getLogger","GeneratorFunction","existsSync","../../common/log4js","ascf","Build ASCF npm dependencies to miniprogram_npm","1002568zPxbCn","ascf_src","@@toStringTag","iterator","resolve","setPrototypeOf","698920DBQIew"];return(_0x2536=function(){return e})()}module[_0x30eb9d(304)]={buildNpm:buildNpm,install:function(e){var n,r=_0x30eb9d;e.command(r(341)).description(r(332))[r(292)]((n=_asyncToGenerator(_regenerator().m(function e(r,n){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:buildNpm(r);case 1:return e.a(2)}},e)})),function(e,r){return n.apply(this,arguments)}))}};
1
+ var _0x210e39=_0x4c1a;function _regenerator(){var m,v=_0x4c1a,e=v(190)==typeof Symbol?Symbol:{},r=e[v(184)]||v(178),n=e[v(165)]||v(199);function t(e,r,n,t){var o,a,i,c,u,s,f,p,l,_,d=v,r=r&&r[d(201)]instanceof b?r:b,r=Object[d(164)](r[d(201)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=n,p=t||[],l=!1,_={p:f=0,n:0,v:m,a:g,f:g[(s=d)(193)](m,4),d:function(e,r){return i=e,c=0,u=m,_.n=r,h}},function(e,r,n){var t=s;if(1<f)throw TypeError(t(212));for(l&&1===r&&g(r,n),c=r,u=n;(x=c<2?m:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),g(c,u)):_.n=u:_.v=u);try{if(f=2,i){if(x=i[e=c?e:"next"]){if(!(x=x.call(i,u)))throw TypeError(t(208));if(!x[t(169)])return x;u=x[t(203)],c<2&&(c=0)}else 1===c&&(x=i[t(197)])&&x[t(214)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+t(204)),c=1);i=m}else if((x=(l=_.n<0)?u:o.call(a,_))!==h)break}catch(e){i=m,c=1,u=e}finally{f=1}}return{value:x,done:l}}),!0),r;function g(e,r){for(c=e,u=r,x=0;!l&&f&&!n&&x<p.length;x++){var n,t=p[x],o=_.p,a=t[2];3<e?(n=a===r)&&(u=t[(c=t[4])?5:c=3],t[4]=t[5]=m):t[0]<=o&&((n=e<2&&o<t[1])?(c=0,_.v=r,_.n=t[1]):o<a&&(n=e<3||t[0]>r||a<r)&&(t[4]=e,t[5]=r,_.n=a,c=0))}if(n||1<e)return h;throw l=!0,r}}var h={};function b(){}function o(){}function a(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),i=a[v(201)]=b.prototype=Object[v(164)](e);function c(e){var r=v;return Object[r(187)]?Object[r(187)](e,a):(e[r(213)]=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e[r(201)]=Object.create(i),e}return o[v(201)]=a,_regeneratorDefine2(i,v(200),a),_regeneratorDefine2(a,v(200),o),o[v(167)]=v(186),_regeneratorDefine2(a,n,"GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,"Generator"),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return v(175)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x4c1a,c=Object[i(189)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,n,t){var o=i;function a(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x4c1a(196)](r,n,e)})}r?c?c(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(a(o(202),0),a(o(182),1),a(o(197),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x4c1a;try{var u=e[a](i),s=u.value}catch(e){return void n(e)}u[c(169)]?r(s):Promise[c(181)](s)[c(191)](t,o)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(r,n){var t=c.apply(e,i);function o(e){asyncGeneratorStep(t,r,n,o,a,_0x4c1a(202),e)}function a(e){asyncGeneratorStep(t,r,n,o,a,"throw",e)}o(void 0)})}}function _0x28bb(){var e=["done","ascf","Error: ascf buildNpm error: ","miniprogram_npm","exports","Build ASCF npm dependencies to miniprogram_npm","[object Generator]","join","concat","@@iterator","6240129MTNLdQ","hasOwnProperty","resolve","throw","moveFiles","iterator","hasHxml","GeneratorFunction","setPrototypeOf","readJsonFile","defineProperty","function","then","2073636swdtZV","bind","../../common/utils","129491sdQOzo","_invoke","return","path","@@toStringTag","constructor","prototype","next","value","' method","ascf_src","buildNpm <projectRoot>","dependencies","iterator result is not an object","miniprogram","30nxEpjE","1748430SVgMJg","Generator is already running","__proto__","call","2redhED","5715rqjGhF","13240RWszmi","../../common/log4js","getLogger","21728443rzUwOu","description","error","action","node_modules"," not found in node_modules, please run npm install ","All npm dependencies has been built.","18OvWdvC","create","toStringTag","package.json","displayName","4286667nFFRYa"];return(_0x28bb=function(){return e})()}function _0x4c1a(e,r){var n=_0x28bb();return(_0x4c1a=function(e,r){return n[e-=156]})(e,r)}(()=>{for(var e=_0x4c1a,r=_0x28bb();;)try{if(857720==-parseInt(e(195))*(parseInt(e(215))/2)+-parseInt(e(168))/3+-parseInt(e(192))/4+-parseInt(e(211))/5*(parseInt(e(163))/6)+-parseInt(e(179))/7+parseInt(e(217))/8*(-parseInt(e(216))/9)+-parseInt(e(210))/10*(-parseInt(e(156))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x210e39(194)),readJsonFile=_require[_0x210e39(188)],hasHxml=_require[_0x210e39(185)],moveFiles=_require[_0x210e39(183)],path=require(_0x210e39(198)),fs=require("fs"),log4js=require(_0x210e39(218)),logger=log4js[_0x210e39(219)]("buildNpm");function buildMiniProgramNpm(e){var r=_0x210e39,n=readJsonFile(path[r(176)](e,r(170),r(205),r(166)));if(null!=n&&n[r(207)])for(var t in n.dependencies)if(Object[r(201)][r(180)][r(214)](n[r(207)],t)){var o=path[r(176)](e,r(170),r(205),r(172),t);if(!fs.existsSync(o)){var a=path[r(176)](e,r(170),"ascf_src",r(160),t);if(!fs.existsSync(a))return void logger[r(158)]("".concat(t,r(161))[r(177)](t,"."));hasHxml(a)&&(t=readJsonFile(path.join(a,r(166)))[r(209)],moveFiles(t?path[r(176)](a,t):a,o))}}logger.info(r(162))}function buildNpm(e){var r=_0x210e39;try{buildMiniProgramNpm(e)}catch(e){logger[r(158)](r(171)[r(177)](e,"."))}}module[_0x210e39(173)]={buildNpm:buildNpm,install:function(e){var n,r=_0x210e39;e.command(r(206))[r(157)](r(174))[r(159)]((n=_asyncToGenerator(_regenerator().m(function e(r,n){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:buildNpm(r);case 1:return e.a(2)}},e)})),function(e,r){return n.apply(this,arguments)}))}};
@@ -1 +1 @@
1
- function _0x2f61(){var e=["defineProperty","--skipApiValidator [flag]","../common/constants.js","Environment, empty is production, -m is development","command","toStringTag","Skip API and components validator, default is true","--swc","[object Generator]","The iterator does not provide a '","prototype","description","option","setPrototypeOf","-m, --mode","select a device to start hot reload","Compile ascf project","next","call","--deviceId [deviceId]","Host package for ","--sign-public-key-path [path]","5930czNwbp","5393585GvzyLf","--qs-host-pkg [pkg]","Disable subpackages, default is true for development, false for production","Start dev-server","../index","_invoke","value","-r, --run [command]","--templateHoist","@@toStringTag","78GLEquz","2916JupUGH","Clear build resource","Watch run for changes","-p, --progress","--targets [buildTarget]","p12 File Path for ","5504580YjyIYS","Password of the p12 file for ","function","length","--disableSubpackages [true or false]","9945dKwmKG","iterator result is not an object","--analyzeBundle","create","Show build progress","8434BumsHk","getPrototypeOf","Generator is already running","GeneratorFunction","BUILD_TARGET_QS","-w, --watch","throw","concat","compile","Use swc parser, default is babel parser","17017gLUWiW","' method","8817216neRDtP","done","return","exports","__proto__","apply","Sign private key path for ","-c, --clear","compile <projectRoot>","@@iterator","constructor","bind","--serve","Sign public key path for ","1546254PVAYAJ"];return(_0x2f61=function(){return e})()}var _0x24feda=_0xc404;function _regenerator(){var v,h=_0xc404,e=h(194)==typeof Symbol?Symbol:{},r=e.iterator||h(223),t=e[h(157)]||h(184);function n(e,r,t,n){var o,a,i,c,u,s,f,p,l,_,d=h,r=r&&r.prototype instanceof y?r:y,r=Object[d(200)](r[d(162)]);return _regeneratorDefine2(r,d(180),(o=e,a=t,p=n||[],l=!1,_={p:f=0,n:0,v:v,a:g,f:g[(s=d)(225)](v,4),d:function(e,r){return i=e,c=0,u=v,_.n=r,m}},function(e,r,t){var n=s;if(1<f)throw TypeError(n(204));for(l&&1===r&&g(r,t),c=r,u=t;(b=c<2?v:u)||!l;){i||(c?c<3?(1<c&&(_.n=-1),g(c,u)):_.n=u:_.v=u);try{if(f=2,i){if(c||(e=n(169)),b=i[e]){if(!(b=b[n(170)](i,u)))throw TypeError(n(198));if(!b[n(215)])return b;u=b[n(181)],c<2&&(c=0)}else 1===c&&(b=i[n(216)])&&b[n(170)](i),c<2&&(u=TypeError(n(161)+e+n(213)),c=1);i=v}else if((b=(l=_.n<0)?u:o[n(170)](a,_))!==m)break}catch(e){i=v,c=1,u=e}finally{f=1}}return{value:b,done:l}}),!0),r;function g(e,r){var t=s;for(c=e,u=r,b=0;!l&&f&&!n&&b<p[t(195)];b++){var n,o=p[b],a=_.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=v):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,_.v=r,_.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,c=0))}if(n||1<e)return m;throw l=!0,r}}var m={};function y(){}function o(){}function a(){}var b=Object[h(203)],e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),i=a[h(162)]=y[h(162)]=Object[h(200)](e);function c(e){var r=h;return Object.setPrototypeOf?Object[r(165)](e,a):(e[r(218)]=a,_regeneratorDefine2(e,t,r(205))),e[r(162)]=Object[r(200)](i),e}return o[h(162)]=a,_regeneratorDefine2(i,h(224),a),_regeneratorDefine2(a,h(224),o),o.displayName=h(205),_regeneratorDefine2(a,t,h(205)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,"Generator"),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return h(160)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(e,r,t,n){var a=_0xc404,i=Object[a(229)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,t,n){var o=a;r?i?i(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:((n=function(r,t){_regeneratorDefine2(e,r,function(e){return this[_0xc404(180)](r,t,e)})})("next",0),n(o(208),1),n("return",2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0xc404;try{var u=e[a](i),s=u[c(181)]}catch(e){return void t(e)}u[c(215)]?r(s):Promise.resolve(s).then(n,o)}function _0xc404(e,r){var t=_0x2f61();return(_0xc404=function(e,r){return t[e-=155]})(e,r)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0xc404,o=u[n(219)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,"next",e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(208),e)}a(void 0)})}}(()=>{for(var e=_0xc404,r=_0x2f61();;)try{if(985559==-parseInt(e(228))+parseInt(e(202))/2*(-parseInt(e(185))/3)+-parseInt(e(192))/4+parseInt(e(175))/5+-parseInt(e(186))/6*(-parseInt(e(212))/7)+parseInt(e(214))/8+parseInt(e(197))/9*(parseInt(e(174))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x24feda(231)),BUILD_TARGET_QS=_require[_0x24feda(206)];module[_0x24feda(217)]={install:function(e){var t,r=_0x24feda,e=e[r(156)](r(222))[r(163)](r(168))[r(164)](r(189),r(201)).option(r(207),r(188))[r(164)](r(166),r(155))[r(164)](r(221),r(187))[r(164)](r(182),"Run command on changes been watched")[r(164)](r(159),r(211)).option("--devtool [type]","sourcemap type, default is eval-cheap-source-map").option(r(196),r(177))[r(164)](r(199),"analyze bundle",!1)[r(164)](r(183),"Hoist template to page scope, default is true when have base.hxml")[r(164)](r(230),r(158))[r(164)](r(226),r(178)).option(r(171),r(167))[r(164)](r(190),"Build targets, atomicservice and "[r(209)](BUILD_TARGET_QS));global._supportLegacyHos&&e[r(164)](r(176),r(172)[r(209)](BUILD_TARGET_QS))[r(164)]("--sign-private-key-path [path]",r(220)[r(209)](BUILD_TARGET_QS))[r(164)](r(173),r(227).concat(BUILD_TARGET_QS))[r(164)]("--sign-pwd [pwd]",r(193)[r(209)](BUILD_TARGET_QS))[r(164)]("--sign-profile-path [path]",r(191).concat(BUILD_TARGET_QS)),e.action((t=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0xc404;;)switch(e.n){case 0:return e.n=1,require(r(179))[r(210)](t,n);case 1:return e.a(2)}},e)})),function(e,r){return t[_0xc404(219)](this,arguments)}))}};
1
+ var _0x4b7398=_0x35a8;function _regenerator(){var v,h=_0x35a8,e=h(411)==typeof Symbol?Symbol:{},r=e.iterator||h(407),t=e.toStringTag||h(461);function n(e,r,t,n){var o,a,i,c,s,u,p,f,l,_,d=h,r=r&&r[d(428)]instanceof b?r:b,r=Object[d(423)](r[d(428)]);return _regeneratorDefine2(r,"_invoke",(o=e,a=t,f=n||[],l=!1,_={p:p=0,n:0,v:v,a:g,f:g[(u=d)(436)](v,4),d:function(e,r){return i=e,c=0,s=v,_.n=r,y}},function(e,r,t){var n=u;if(1<p)throw TypeError(n(386));for(l&&1===r&&g(r,t),c=r,s=t;(m=c<2?v:s)||!l;){i||(c?c<3?(1<c&&(_.n=-1),g(c,s)):_.n=s:_.v=s);try{if(p=2,i){if(c||(e=n(450)),m=i[e]){if(!(m=m.call(i,s)))throw TypeError(n(434));if(!m[n(460)])return m;s=m[n(422)],c<2&&(c=0)}else 1===c&&(m=i[n(394)])&&m.call(i),c<2&&(s=TypeError(n(380)+e+n(387)),c=1);i=v}else if((m=(l=_.n<0)?s:o[n(398)](a,_))!==y)break}catch(e){i=v,c=1,s=e}finally{p=1}}return{value:m,done:l}}),!0),r;function g(e,r){var t=u;for(c=e,s=r,m=0;!l&&p&&!n&&m<f[t(384)];m++){var n,o=f[m],a=_.p,i=o[2];3<e?(n=i===r)&&(s=o[(c=o[4])?5:c=3],o[4]=o[5]=v):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,_.v=r,_.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,_.n=i,c=0))}if(n||1<e)return y;throw l=!0,r}}var y={};function b(){}function o(){}function a(){}var m=Object[h(402)],e=[][r]?m(m([][r]())):(_regeneratorDefine2(m={},r,function(){return this}),m),i=a[h(428)]=b[h(428)]=Object[h(423)](e);function c(e){var r=h;return Object[r(385)]?Object[r(385)](e,a):(e[r(399)]=a,_regeneratorDefine2(e,t,r(393))),e.prototype=Object.create(i),e}return o.prototype=a,_regeneratorDefine2(i,h(388),a),_regeneratorDefine2(a,"constructor",o),o[h(424)]="GeneratorFunction",_regeneratorDefine2(a,t,h(393)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,h(418)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return h(396)}),(_regenerator=function(){return{w:n,m:c}})()}function _0x2c36(){var e=["exports","prototype","235hsEqfy","Clear build resource","throw","_invoke","_ascfCliOptions","iterator result is not an object","compile <projectRoot>","bind","defineProperty","action","-c, --clear","Host package for ","-p, --progress","../index","select a device to start hot reload","Watch run for changes","Build targets, atomicservice and ","hos","Use swc parser, default is babel parser","Sign private key path for ","analyze bundle","next","Skip API and components validator, default is true","--devtool [type]","124952goJIcg","resolve","--sign-public-key-path [path]","Show build progress","../common/constants.js","--deviceType [deviceType]","2867011WSVBdr","done","@@toStringTag","apply","then","The iterator does not provide a '","concat","_supportLegacyHos","p12 File Path for ","length","setPrototypeOf","Generator is already running","' method","constructor","198qNCEyq","841028IBElVh","1431810JjLEkw","-r, --run [command]","GeneratorFunction","return","--skipApiValidator [flag]","[object Generator]","--swc","call","__proto__","Hoist template to page scope, default is true when have base.hxml","Password of the p12 file for ","getPrototypeOf","normalizeTargets","--deviceId [deviceId]","sourcemap type, default is eval-cheap-source-map","--sign-pwd [pwd]","@@iterator","4812968uasILC","893548pBuGpo","12IcXPAY","function","command","Environment, empty is production, -m is development","--serve","BUILD_TARGET_QS","5333412MsfyiT","-m, --mode","Generator","Sign public key path for ","option","--templateHoist","value","create","displayName","Start dev-server","description"];return(_0x2c36=function(){return e})()}function _regeneratorDefine2(e,r,t,n){var i=_0x35a8,c=Object[i(437)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,t,n){var o=i;function a(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x35a8(432)](r,t,e)})}r?c?c(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a(o(450),0),a(o(431),1),a(o(394),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x35a8;try{var s=e[a](i),u=s.value}catch(e){return void t(e)}s[c(460)]?r(u):Promise[c(454)](u)[c(463)](n,o)}function _0x35a8(e,r){var t=_0x2c36();return(_0x35a8=function(e,r){return t[e-=380]})(e,r)}function _asyncToGenerator(s){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x35a8,o=s[n(462)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(450),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(431),e)}a(void 0)})}}(()=>{for(var e=_0x35a8,r=_0x2c36();;)try{if(974269==+parseInt(e(390))+parseInt(e(409))/2+-parseInt(e(416))/3+-parseInt(e(453))/4*(parseInt(e(429))/5)+parseInt(e(410))/6*(-parseInt(e(459))/7)+parseInt(e(408))/8+-parseInt(e(389))/9*(-parseInt(e(391))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x4b7398(457)),BUILD_TARGET_QS=_require[_0x4b7398(415)],BUILD_TARGET_AS=_require.BUILD_TARGET_AS,normalizeTargets=_require[_0x4b7398(403)];module[_0x4b7398(427)]={install:function(e){var t,r=_0x4b7398,e=e[r(412)](r(435))[r(426)]("Compile ascf project")[r(420)](r(441),r(456)).option("-w, --watch",r(444))[r(420)](r(417),r(413)).option(r(439),r(430))[r(420)](r(392),"Run command on changes been watched")[r(420)](r(397),r(447)).option(r(452),r(405))[r(420)]("--disableSubpackages [true or false]","Disable subpackages, default is true for development, false for production")[r(420)]("--analyzeBundle",r(449),!1)[r(420)](r(421),r(400))[r(420)](r(395),r(451))[r(420)](r(414),r(425))[r(420)](r(458),"device type, hos | legacy",r(446))[r(420)](r(404),r(443)).option("--targets [buildTarget]",r(445).concat(BUILD_TARGET_QS),BUILD_TARGET_AS);global[r(382)]&&e[r(420)]("--qs-host-pkg [pkg]",r(440)[r(381)](BUILD_TARGET_QS))[r(420)]("--sign-private-key-path [path]",r(448).concat(BUILD_TARGET_QS))[r(420)](r(455),r(419)[r(381)](BUILD_TARGET_QS))[r(420)](r(406),r(401).concat(BUILD_TARGET_QS))[r(420)]("--sign-profile-path [path]",r(383)[r(381)](BUILD_TARGET_QS)),e[r(438)]((t=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x35a8;;)switch(e.n){case 0:return global[r(433)]=normalizeTargets(n),e.n=1,require(r(442)).compile(t,n);case 1:return e.a(2)}},e)})),function(e,r){return t[_0x35a8(462)](this,arguments)}))}};
@@ -1 +1 @@
1
- var _0x546095=_0x1646;function _0x1646(r,e){var t=_0x50cc();return(_0x1646=function(r,e){return t[r-=442]})(r,e)}function _0x50cc(){var r=["apply","prototype","defineProperty","_invoke","constructor","action","convert","throw","create","BUILD_TARGET_QS","bind","Validate path","function","resolve","setPrototypeOf","@@iterator","iterator result is not an object","' method","4196656HwQDmB","-i, --input <input-directory>","7832699ThRpJq","next","7669092ZDzTUz","then","return","call","3385134KmNmEI","981lyzGQN","Convert miniprogram project to ascf project","728kzrrgd","length","exports","2088760PWQuFZ","../common/constants.js","__proto__","GeneratorFunction","Build targets, atomicservice and ","The iterator does not provide a '","Generator","3759000SznGgI","command","Clear convert output path","Generator is already running","option","-notaddtodo, --notaddtodo","done","value","toString","getPrototypeOf","toStringTag"];return(_0x50cc=function(){return r})()}function _regenerator(){var l,y=_0x1646,r=y(469)==typeof Symbol?Symbol:{},e=r.iterator||y(472),t=r[y(456)]||"@@toStringTag";function n(r,e,t,n){var o,a,i,c,u,f,p,_,s,v,d=y,e=e&&e[d(458)]instanceof x?e:x,e=Object[d(465)](e[d(458)]);return _regeneratorDefine2(e,d(460),(o=r,a=t,_=n||[],s=!1,v={p:p=0,n:0,v:l,a:g,f:g[(f=d)(467)](l,4),d:function(r,e){return i=r,c=0,u=l,v.n=e,h}},function(r,e,t){var n=f;if(1<p)throw TypeError(n(449));for(s&&1===e&&g(e,t),c=e,u=t;(m=c<2?l:u)||!s;){i||(c?c<3?(1<c&&(v.n=-1),g(c,u)):v.n=u:v.v=u);try{if(p=2,i){if(c||(r=n(478)),m=i[r]){if(!(m=m[n(482)](i,u)))throw TypeError(n(473));if(!m[n(452)])return m;u=m[n(453)],c<2&&(c=0)}else 1===c&&(m=i[n(481)])&&m[n(482)](i),c<2&&(u=TypeError(n(444)+r+n(474)),c=1);i=l}else if((m=(s=v.n<0)?u:o[n(482)](a,v))!==h)break}catch(r){i=l,c=1,u=r}finally{p=1}}return{value:m,done:s}}),!0),e;function g(r,e){var t=f;for(c=r,u=e,m=0;!s&&p&&!n&&m<_[t(487)];m++){var n,o=_[m],a=v.p,i=o[2];3<r?(n=i===e)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=l):o[0]<=a&&((n=r<2&&a<o[1])?(c=0,v.v=e,v.n=o[1]):a<i&&(n=r<3||o[0]>e||i<e)&&(o[4]=r,o[5]=e,v.n=i,c=0))}if(n||1<r)return h;throw s=!0,e}}var h={};function x(){}function o(){}function a(){}var m=Object[y(455)],r=[][e]?m(m([][e]())):(_regeneratorDefine2(m={},e,function(){return this}),m),i=a[y(458)]=x.prototype=Object[y(465)](r);function c(r){var e=y;return Object[e(471)]?Object.setPrototypeOf(r,a):(r[e(491)]=a,_regeneratorDefine2(r,t,e(442))),r[e(458)]=Object.create(i),r}return o[y(458)]=a,_regeneratorDefine2(i,y(461),a),_regeneratorDefine2(a,y(461),o),o.displayName="GeneratorFunction",_regeneratorDefine2(a,t,y(442)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,y(445)),_regeneratorDefine2(i,e,function(){return this}),_regeneratorDefine2(i,y(454),function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(r,e,t,n){var a=_0x1646,i=Object[a(459)];try{i({},"",{})}catch(r){i=0}(_regeneratorDefine2=function(r,e,t,n){var o=a;e?i?i(r,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):r[e]=t:((n=function(e,t){_regeneratorDefine2(r,e,function(r){return this[_0x1646(460)](e,t,r)})})(o(478),0),n(o(464),1),n(o(481),2))})(r,e,t,n)}function asyncGeneratorStep(r,e,t,n,o,a,i){var c=_0x1646;try{var u=r[a](i),f=u[c(453)]}catch(r){return void t(r)}u[c(452)]?e(f):Promise[c(470)](f)[c(480)](n,o)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(e,t){var n=_0x1646,o=u[n(457)](r,c);function a(r){asyncGeneratorStep(o,e,t,a,i,"next",r)}function i(r){asyncGeneratorStep(o,e,t,a,i,n(464),r)}a(void 0)})}}(()=>{for(var r=_0x1646,e=_0x50cc();;)try{if(648338==+parseInt(r(484))*(-parseInt(r(486))/2)+parseInt(r(483))/3+parseInt(r(475))/4+-parseInt(r(446))/5+-parseInt(r(479))/6+parseInt(r(477))/7+-parseInt(r(489))/8)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x546095(490)),BUILD_TARGET_QS=_require[_0x546095(466)];module[_0x546095(488)]={install:function(r){var e,t=_0x546095;r[t(447)](t(463)).description(t(485)).requiredOption(t(476)).requiredOption("-o, --output <output-directory>")[t(450)]("-c, --clear",t(448))[t(450)]("-va, --validate",t(468))[t(450)](t(451),"Not add todo for not supported api.").option("--targets [type]",t(443).concat(BUILD_TARGET_QS))[t(462)]((e=_asyncToGenerator(_regenerator().m(function r(t){return _regenerator().w(function(r){for(var e=_0x1646;;)switch(r.n){case 0:return r.n=1,require("../index")[e(463)](t);case 1:return r.a(2)}},r)})),function(r){return e[_0x1646(457)](this,arguments)}))}};
1
+ function _0x39b4(r,e){var t=_0x1c23();return(_0x39b4=function(r,e){return t[r-=303]})(r,e)}var _0x5ce63e=_0x39b4;function _0x1c23(){var r=["Generator is already running","defineProperty","821455gdAQrT","4hCyLlm","iterator","displayName","next","@@iterator","option","requiredOption","../index","_invoke","-c, --clear","create","value","2265946DClvtq","convert","setPrototypeOf","18gCOFVe","iterator result is not an object","[object Generator]","return","19361310amveEo","GeneratorFunction","648042KPQuBY","prototype","then","-i, --input <input-directory>","2574021twmTAX","toString","call","1371784XcGadn","constructor","27VrwtfP","' method","exports","throw","description","-o, --output <output-directory>","Generator","-va, --validate","Validate path","action","11304517BZxdVl","The iterator does not provide a '","function","Convert miniprogram project to ascf project","toStringTag","done","Not add todo for not supported api.","getPrototypeOf","-notaddtodo, --notaddtodo"];return(_0x1c23=function(){return r})()}function _regenerator(){var l,g=_0x39b4,r=g(318)==typeof Symbol?Symbol:{},e=r[g(329)]||g(332),t=r[g(320)]||"@@toStringTag";function n(r,e,t,n){var o,a,i,c,u,f,p,s,_,v=g,e=e&&e[v(350)]instanceof y?e:y,e=Object[v(338)](e[v(350)]);return _regeneratorDefine2(e,v(336),(o=r,a=t,p=n||[],s=!1,_={p:f=0,n:0,v:l,a:d,f:d.bind(l,4),d:function(r,e){return i=r,c=0,u=l,_.n=e,b}},function(r,e,t){var n=_0x39b4;if(1<f)throw TypeError(n(325));for(s&&1===e&&d(e,t),c=e,u=t;(h=c<2?l:u)||!s;){i||(c?c<3?(1<c&&(_.n=-1),d(c,u)):_.n=u:_.v=u);try{if(f=2,i){if(c||(r=n(331)),h=i[r]){if(!(h=h.call(i,u)))throw TypeError(n(344));if(!h[n(321)])return h;u=h[n(339)],c<2&&(c=0)}else 1===c&&(h=i[n(346)])&&h[n(303)](i),c<2&&(u=TypeError(n(317)+r+n(307)),c=1);i=l}else if((h=(s=_.n<0)?u:o[n(303)](a,_))!==b)break}catch(r){i=l,c=1,u=r}finally{f=1}}return{value:h,done:s}}),!0),e;function d(r,e){for(c=r,u=e,h=0;!s&&f&&!t&&h<p.length;h++){var t,n=p[h],o=_.p,a=n[2];3<r?(t=a===e)&&(u=n[(c=n[4])?5:c=3],n[4]=n[5]=l):n[0]<=o&&((t=r<2&&o<n[1])?(c=0,_.v=e,_.n=n[1]):o<a&&(t=r<3||n[0]>e||a<e)&&(n[4]=r,n[5]=e,_.n=a,c=0))}if(t||1<r)return b;throw s=!0,e}}var b={};function y(){}function o(){}function a(){}var h=Object[g(323)],r=[][e]?h(h([][e]())):(_regeneratorDefine2(h={},e,function(){return this}),h),i=a[g(350)]=y[g(350)]=Object[g(338)](r);function c(r){var e=g;return Object[e(342)]?Object[e(342)](r,a):(r.__proto__=a,_regeneratorDefine2(r,t,e(348))),r.prototype=Object[e(338)](i),r}return o[g(350)]=a,_regeneratorDefine2(i,"constructor",a),_regeneratorDefine2(a,g(305),o),o[g(330)]=g(348),_regeneratorDefine2(a,t,g(348)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,g(312)),_regeneratorDefine2(i,e,function(){return this}),_regeneratorDefine2(i,g(354),function(){return g(345)}),(_regenerator=function(){return{w:n,m:c}})()}function _regeneratorDefine2(r,e,t,n){var i=_0x39b4,c=Object[i(326)];try{c({},"",{})}catch(r){c=0}(_regeneratorDefine2=function(r,e,t,n){var o=i;function a(e,t){_regeneratorDefine2(r,e,function(r){return this._invoke(e,t,r)})}e?c?c(r,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):r[e]=t:(a(o(331),0),a("throw",1),a(o(346),2))})(r,e,t,n)}function asyncGeneratorStep(r,e,t,n,o,a,i){var c=_0x39b4;try{var u=r[a](i),f=u[c(339)]}catch(r){return void t(r)}u.done?e(f):Promise.resolve(f)[c(351)](n,o)}function _asyncToGenerator(c){return function(){var r=this,i=arguments;return new Promise(function(e,t){var n=c.apply(r,i);function o(r){asyncGeneratorStep(n,e,t,o,a,_0x39b4(331),r)}function a(r){asyncGeneratorStep(n,e,t,o,a,_0x39b4(309),r)}o(void 0)})}}(()=>{for(var r=_0x39b4,e=_0x1c23();;)try{if(890494==-parseInt(r(349))+-parseInt(r(340))/2+parseInt(r(353))/3*(-parseInt(r(328))/4)+parseInt(r(327))/5*(parseInt(r(343))/6)+parseInt(r(316))/7+parseInt(r(304))/8*(-parseInt(r(306))/9)+parseInt(r(347))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),module[_0x5ce63e(308)]={install:function(r){var e,t=_0x5ce63e;r.command("convert")[t(310)](t(319))[t(334)](t(352))[t(334)](t(311))[t(333)](t(337),"Clear convert output path").option(t(313),t(314))[t(333)](t(324),t(322))[t(315)]((e=_asyncToGenerator(_regenerator().m(function r(t){return _regenerator().w(function(r){for(var e=_0x39b4;;)switch(r.n){case 0:return r.n=1,require(e(335))[e(341)](t);case 1:return r.a(2)}},r)})),function(r){return e.apply(this,arguments)}))}};
@@ -1 +1 @@
1
- var _0x533f82=_0x5a4e;function _0x5a4e(e,r){var n=_0x5104();return(_0x5a4e=function(e,r){return n[e-=148]})(e,r)}function _regenerator(){var d,l=_0x5a4e,e="function"==typeof Symbol?Symbol:{},r=e.iterator||l(186),n=e.toStringTag||l(148);function t(e,r,n,t){var o,a,i,c,u,f,s,p,g,_=l,r=r&&r[_(179)]instanceof h?r:h,r=Object.create(r[_(179)]);return _regeneratorDefine2(r,_(181),(o=e,a=n,s=t||[],p=!1,g={p:f=0,n:0,v:d,a:v,f:v.bind(d,4),d:function(e,r){return i=e,c=0,u=d,g.n=r,b}},function(e,r,n){var t=_0x5a4e;if(1<f)throw TypeError(t(154));for(p&&1===r&&v(r,n),c=r,u=n;(m=c<2?d:u)||!p;){i||(c?c<3?(1<c&&(g.n=-1),v(c,u)):g.n=u:g.v=u);try{if(f=2,i){if(c||(e=t(183)),m=i[e]){if(!(m=m[t(170)](i,u)))throw TypeError(t(192));if(!m.done)return m;u=m[t(199)],c<2&&(c=0)}else 1===c&&(m=i.return)&&m[t(170)](i),c<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),c=1);i=d}else if((m=(p=g.n<0)?u:o.call(a,g))!==b)break}catch(e){i=d,c=1,u=e}finally{f=1}}return{value:m,done:p}}),!0),r;function v(e,r){var n=_0x5a4e;for(c=e,u=r,m=0;!p&&f&&!t&&m<s[n(175)];m++){var t,o=s[m],a=g.p,i=o[2];3<e?(t=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=d):o[0]<=a&&((t=e<2&&a<o[1])?(c=0,g.v=r,g.n=o[1]):a<i&&(t=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,g.n=i,c=0))}if(t||1<e)return b;throw p=!0,r}}var b={};function h(){}function o(){}function a(){}var m=Object[l(196)],e=[][r]?m(m([][r]())):(_regeneratorDefine2(m={},r,function(){return this}),m),i=a.prototype=h[l(179)]=Object[l(180)](e);function c(e){var r=l;return Object[r(176)]?Object[r(176)](e,a):(e[r(193)]=a,_regeneratorDefine2(e,n,r(200))),e[r(179)]=Object[r(180)](i),e}return o[l(179)]=a,_regeneratorDefine2(i,l(161),a),_regeneratorDefine2(a,l(161),o),o.displayName="GeneratorFunction",_regeneratorDefine2(a,n,l(200)),_regeneratorDefine2(i),_regeneratorDefine2(i,n,l(204)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,l(162),function(){return"[object Generator]"}),(_regenerator=function(){return{w:t,m:c}})()}function _0x5104(){var e=["return","8CEtEqz","defineProperty","1575KzcrHW","throw","exports","call","start-view","command","5755452MjkTvm","resolve","length","setPrototypeOf","handle","112990hXhMln","prototype","create","_invoke","apply","next","then","485613ogVnlL","@@iterator","3KWnItb",'Open default browser, "default","chrome","edge"',"stop","start-service","AscfDebugger","iterator result is not an object","__proto__","select a device to debug","description","getPrototypeOf","bundleName of debugging project","status","value","GeneratorFunction","-t, --deviceId [deviceId]","772qRaUVw","debugger","Generator","@@toStringTag","action","default","option","1088215EthJDu","forEach","Generator is already running","-b, --bundleName [bundleName]","4740FaChWh","stop-view","1124844SBzGZW","6ZRtfGM","2277oWXfwC","constructor","toString","stop-service"];return(_0x5104=function(){return e})()}function _regeneratorDefine2(e,r,n,t){var a=_0x5a4e,i=Object[a(166)];try{i({},"",{})}catch(e){i=0}(_regeneratorDefine2=function(e,r,n,t){var o=a;r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x5a4e(181)](r,n,e)})})(o(183),0),t(o(168),1),t(o(164),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,a,i){var c=_0x5a4e;try{var u=e[a](i),f=u[c(199)]}catch(e){return void n(e)}u.done?r(f):Promise[c(174)](f)[c(184)](t,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0x5a4e,o=u[t(182)](e,c);function a(e){asyncGeneratorStep(o,r,n,a,i,t(183),e)}function i(e){asyncGeneratorStep(o,r,n,a,i,t(168),e)}a(void 0)})}}(()=>{for(var e=_0x5a4e,r=_0x5104();;)try{if(113687==-parseInt(e(187))*(parseInt(e(178))/2)+-parseInt(e(167))/3*(parseInt(e(202))/4)+parseInt(e(152))/5*(parseInt(e(159))/6)+-parseInt(e(158))/7+-parseInt(e(165))/8*(parseInt(e(185))/9)+parseInt(e(156))/10*(-parseInt(e(160))/11)+parseInt(e(173))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require("../../ascf-base"),AscfDebugger=_require[_0x533f82(191)];module[_0x533f82(169)]={install:function(e){function n(t){return r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x5a4e;;)switch(e.n){case 0:new AscfDebugger(n)[r(177)](t);case 1:return e.a(2)}},e)})),function(e){return r[_0x5a4e(182)](this,arguments)};var r}var t=_0x533f82,o=e.command(t(203)).description("Start or stop debugger");[t(198)][t(153)](function(e){var r=t;o.command(e)[r(195)](e)[r(151)]("-b, --bundleName [bundleName]",r(197)).option(r(201),"select a device to debug").action(n(e))}),["start",t(171),t(190)][t(153)](function(e){var r=t;o.command(e)[r(195)](e)[r(151)]("-o, --open <browser>",r(188),r(150))[r(151)](r(155),r(197))[r(151)](r(201),r(194))[r(149)](n(e))}),[t(189),t(157),t(163)][t(153)](function(e){var r=t;o[r(172)](e)[r(195)](e)[r(151)](r(155),"bundleName of debugging project")[r(151)](r(201),"select a device to debug")[r(149)](n(e))})}};
1
+ function _0x6806(e,r){var t=_0x78af();return(_0x6806=function(e,r){return t[e-=453]})(e,r)}var _0x590f09=_0x6806;function _regenerator(){var l,d=_0x6806,e=d(518)==typeof Symbol?Symbol:{},r=e[d(502)]||d(459),t=e[d(498)]||d(489);function n(e,r,t,n){var o,a,i,c,u,f,s,_,p,v=d,r=r&&r[v(500)]instanceof y?r:y,r=Object[v(461)](r.prototype);return _regeneratorDefine2(r,v(514),(o=e,a=t,s=n||[],_=!1,p={p:f=0,n:0,v:l,a:g,f:g.bind(l,4),d:function(e,r){return i=e,c=0,u=l,p.n=r,b}},function(e,r,t){var n=_0x6806;if(1<f)throw TypeError("Generator is already running");for(_&&1===r&&g(r,t),c=r,u=t;(h=c<2?l:u)||!_;){i||(c?c<3?(1<c&&(p.n=-1),g(c,u)):p.n=u:p.v=u);try{if(f=2,i){if(c||(e=n(469)),h=i[e]){if(!(h=h[n(467)](i,u)))throw TypeError(n(487));if(!h[n(510)])return h;u=h[n(479)],c<2&&(c=0)}else 1===c&&(h=i[n(497)])&&h[n(467)](i),c<2&&(u=TypeError(n(488)+e+"' method"),c=1);i=l}else if((h=(_=p.n<0)?u:o[n(467)](a,p))!==b)break}catch(e){i=l,c=1,u=e}finally{f=1}}return{value:h,done:_}}),!0),r;function g(e,r){var t=_0x6806;for(c=e,u=r,h=0;!_&&f&&!n&&h<s[t(475)];h++){var n,o=s[h],a=p.p,i=o[2];3<e?(n=i===r)&&(u=o[(c=o[4])?5:c=3],o[4]=o[5]=l):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,p.v=r,p.n=o[1]):a<i&&(n=e<3||o[0]>r||i<r)&&(o[4]=e,o[5]=r,p.n=i,c=0))}if(n||1<e)return b;throw _=!0,r}}var b={};function y(){}function o(){}function a(){}var h=Object[d(516)],e=[][r]?h(h([][r]())):(_regeneratorDefine2(h={},r,function(){return this}),h),i=a[d(500)]=y[d(500)]=Object[d(461)](e);function c(e){var r=d;return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e[r(512)]=a,_regeneratorDefine2(e,t,r(466))),e[r(500)]=Object[r(461)](i),e}return o[d(500)]=a,_regeneratorDefine2(i,d(455),a),_regeneratorDefine2(a,"constructor",o),o[d(478)]="GeneratorFunction",_regeneratorDefine2(a,t,d(466)),_regeneratorDefine2(i),_regeneratorDefine2(i,t,d(490)),_regeneratorDefine2(i,r,function(){return this}),_regeneratorDefine2(i,"toString",function(){return d(454)}),(_regenerator=function(){return{w:n,m:c}})()}function _0x78af(){var e=["done","3PrPMsJ","__proto__","15464200UDDoxa","_invoke","start","getPrototypeOf","throw","function","start-service","[object Generator]","constructor",'Open default browser, "default","chrome","edge"',"description","--deviceType [deviceType]","@@iterator","DebuggerProcessFactory","create","action","16770fuaSif","exports","1730889hmvRLh","GeneratorFunction","call","../../common/constants","next","assign","status","stop-service","444WqfqiV","1315156FOoxZd","length","command","forEach","displayName","value","2376564feEsJb","-o, --open [browser]","--targets [buildTarget]","then","option","422150JiqIkt","defineProperty","iterator result is not an object","The iterator does not provide a '","@@toStringTag","Generator","37142YyDUwB","apply","stop","concat","BUILD_TARGET_AS","464XrBimj","return","toStringTag","normalizeTargets","prototype","device type, hos | legacy","iterator","--deviceId [deviceId]","../../ascf-base","-b, --bundleName [bundleName]","handle","hos","BUILD_TARGET_QS","stop-view"];return(_0x78af=function(){return e})()}function _regeneratorDefine2(e,r,t,n){var i=_0x6806,c=Object[i(486)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,t,n){var o=i;function a(r,t){_regeneratorDefine2(e,r,function(e){return this._invoke(r,t,e)})}r?c?c(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a(o(469),0),a(o(517),1),a(o(497),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x6806;try{var u=e[a](i),f=u[c(479)]}catch(e){return void t(e)}u[c(510)]?r(f):Promise.resolve(f)[c(483)](n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x6806,o=u[n(492)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,n(469),e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(517),e)}a(void 0)})}}(()=>{for(var e=_0x6806,r=_0x78af();;)try{if(439442==-parseInt(e(485))+parseInt(e(474))/2*(parseInt(e(511))/3)+-parseInt(e(480))/4+-parseInt(e(463))/5*(parseInt(e(473))/6)+parseInt(e(491))/7*(-parseInt(e(496))/8)+-parseInt(e(465))/9+parseInt(e(513))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x590f09(504)),DebuggerProcessFactory=_require[_0x590f09(460)],_require2=require(_0x590f09(468)),BUILD_TARGET_QS=_require2[_0x590f09(508)],BUILD_TARGET_AS=_require2[_0x590f09(495)],normalizeTargets=_require2[_0x590f09(499)];module[_0x590f09(464)]={install:function(e){function t(a){return t=_asyncToGenerator(_regenerator().m(function e(t,n){var o;return _regenerator().w(function(e){for(var r=_0x6806;;)switch(e.n){case 0:return o=Object[r(470)]({},null==n||null==(o=n.parent)?void 0:o.opts(),t),global._ascfCliOptions=normalizeTargets(o),e.n=1,DebuggerProcessFactory.create(o);case 1:e.v[r(506)](a);case 2:return e.a(2)}},e)})),function(e,r){return t[_0x6806(492)](this,arguments)};var t}var n=_0x590f09,o=e[n(476)]("debugger")[n(457)]("Start or stop debugger")[n(484)](n(505),"bundleName of debugging project")[n(484)](n(458),n(501),n(507))[n(484)](n(503),"select a device to debug")[n(484)](n(482),"Build targets, atomicservice and "[n(494)](BUILD_TARGET_QS),BUILD_TARGET_AS);[n(471)][n(477)](function(e){var r=n;o[r(476)](e).description(e)[r(462)](t(e))}),[n(515),"start-view",n(453)].forEach(function(e){var r=n;o.command(e)[r(457)](e).option(r(481),r(456))[r(462)](t(e))}),[n(493),n(509),n(472)][n(477)](function(e){var r=n;o[r(476)](e).description(e)[r(462)](t(e))})}};
@@ -1 +1 @@
1
- var _0x4c10ef=_0x4ddb;function _0x5170(){var e=["call","genP12","mkdirSync","--sign-profile-path [path]","The iterator does not provide a '","__proto__","dirname","-r, --projectRoot [projectRoot]","certificate.pem","resolve","12eyRySn","create","Sign public key path","signPublicKeyPath","Sign tools to generate keypair, p12 file and view fingerprint","displayName","generate keypair","--sign-pwd [pwd]","869354waWMba","' method","private.pem","[object Generator]","Generator","18kkJvng","_invoke","bind","iterator","generate-p12","2442430BlYjdi","join","prototype","concat","Sign private key path","apply","rmSync","genCertAndP12 error","@@toStringTag","signPwd","2197320pTspTp","throw","13044XhXEdr","next","command","printFp","sign/ascf-build.p12","GeneratorFunction","action","-i, --input <input-directory>","sign/private.pem","genCert","1402863TfYVlM","path","function","projectRoot","generate-keypair","ascf-cache-tmp-sign","requiredOption","--sign-public-key-path [path]","Password of the p12 file","return","677072HeNxTL","getLogger","existsSync","catch","Generator is already running","../../common/log4js","p12 File Path","signProfilePath","--sign-private-key-path [path]","defineProperty","description","signPrivateKeyPath","132NelkBm","option","finally","setPrototypeOf","length","4490003EOYruR","value","278DQeyoa","iterator result is not an object","constructor","toString","done","error","then","ascf-sign-tools","8aYfYHn"];return(_0x5170=function(){return e})()}function _regenerator(){var l,y=_0x4ddb,e=y(372)==typeof Symbol?Symbol:{},r=e[y(346)]||"@@iterator",n=e.toStringTag||y(356);function t(e,r,n,t){var o,i,a,c,s,u,f,p,g,d,_=y,r=r&&r[_(350)]instanceof b?r:b,r=Object[_(419)](r.prototype);return _regeneratorDefine2(r,_(344),(o=e,i=n,p=t||[],g=!1,d={p:f=0,n:0,v:l,a:h,f:h[(u=_)(345)](l,4),d:function(e,r){return a=e,c=0,s=l,d.n=r,v}},function(e,r,n){var t=u;if(1<f)throw TypeError(t(384));for(g&&1===r&&h(r,n),c=r,s=n;(x=c<2?l:s)||!g;){a||(c?c<3?(1<c&&(d.n=-1),h(c,s)):d.n=s:d.v=s);try{if(f=2,a){if(x=a[e=c?e:"next"]){if(!(x=x[t(408)](a,s)))throw TypeError(t(400));if(!x[t(403)])return x;s=x[t(398)],c<2&&(c=0)}else 1===c&&(x=a[t(379)])&&x[t(408)](a),c<2&&(s=TypeError(t(412)+e+t(427)),c=1);a=l}else if((x=(g=d.n<0)?s:o.call(i,d))!==v)break}catch(e){a=l,c=1,s=e}finally{f=1}}return{value:x,done:g}}),!0),r;function h(e,r){var n=u;for(c=e,s=r,x=0;!g&&f&&!t&&x<p[n(396)];x++){var t,o=p[x],i=d.p,a=o[2];3<e?(t=a===r)&&(s=o[(c=o[4])?5:c=3],o[4]=o[5]=l):o[0]<=i&&((t=e<2&&i<o[1])?(c=0,d.v=r,d.n=o[1]):i<a&&(t=e<3||o[0]>r||a<r)&&(o[4]=e,o[5]=r,d.n=a,c=0))}if(t||1<e)return v;throw g=!0,r}}var v={};function b(){}function o(){}function i(){}var x=Object.getPrototypeOf,e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),a=i.prototype=b.prototype=Object[y(419)](e);function c(e){var r=y;return Object[r(395)]?Object.setPrototypeOf(e,i):(e[r(413)]=i,_regeneratorDefine2(e,n,r(365))),e[r(350)]=Object[r(419)](a),e}return o.prototype=i,_regeneratorDefine2(a,y(401),i),_regeneratorDefine2(i,"constructor",o),o[y(423)]=y(365),_regeneratorDefine2(i,n,"GeneratorFunction"),_regeneratorDefine2(a),_regeneratorDefine2(a,n,y(430)),_regeneratorDefine2(a,r,function(){return this}),_regeneratorDefine2(a,y(402),function(){return y(429)}),(_regenerator=function(){return{w:t,m:c}})()}function _regeneratorDefine2(e,r,n,t){var i=_0x4ddb,a=Object[i(389)];try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,r,n,t){var o=i;r?a?a(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:((t=function(r,n){_regeneratorDefine2(e,r,function(e){return this[_0x4ddb(344)](r,n,e)})})(o(361),0),t(o(359),1),t(o(379),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,o,i,a){var c=_0x4ddb;try{var s=e[i](a),u=s[c(398)]}catch(e){return void n(e)}s[c(403)]?r(u):Promise[c(417)](u).then(t,o)}function _asyncToGenerator(c){return function(){var e=this,a=arguments;return new Promise(function(r,n){var t=c.apply(e,a);function o(e){asyncGeneratorStep(t,r,n,o,i,_0x4ddb(361),e)}function i(e){asyncGeneratorStep(t,r,n,o,i,_0x4ddb(359),e)}o(void 0)})}}(()=>{for(var e=_0x4ddb,r=_0x5170();;)try{if(649456==+parseInt(e(426))+parseInt(e(399))/2*(parseInt(e(360))/3)+-parseInt(e(380))/4+-parseInt(e(348))/5*(parseInt(e(418))/6)+parseInt(e(397))/7*(-parseInt(e(407))/8)+-parseInt(e(343))/9*(parseInt(e(358))/10)+-parseInt(e(370))/11*(-parseInt(e(392))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x4c10ef(371)),cachedir=require("cachedir"),signTools=require("../../ascf-sign-tools"),log4js=require(_0x4c10ef(385)),logger=log4js[_0x4c10ef(381)](_0x4c10ef(406));function ensureDir(e){var r=_0x4c10ef,e=path[r(414)](e);return fs[r(382)](e)||fs[r(410)](e,{recursive:!0}),e}function getParams(e){var r=_0x4c10ef,n=e.projectRoot,t=e[r(391)],o=e[r(421)],i=e[r(387)],e=e.signPwd;return{signPrivateKeyPath:t=n&&!t?path[r(349)](n,r(368)):t,signPublicKeyPath:o=n&&!o?path.join(n,"sign/certificate.pem"):o,signProfilePath:i=n&&!i?path.join(n,r(364)):i,signPwd:e}}function genCertAndP12(e,r){return _genCertAndP.apply(this,arguments)}function _0x4ddb(e,r){var n=_0x5170();return(_0x4ddb=function(e,r){return n[e-=343]})(e,r)}function _genCertAndP(){var e=_0x4c10ef;return(_genCertAndP=_asyncToGenerator(_regenerator().m(function e(r,t){var o,i,a;return _regenerator().w(function(e){for(var n=_0x4ddb;;)if(0===e.n)return o=cachedir(n(375)),logger.debug("tmp sign dir "[n(351)](o)),i=path[n(349)](o,n(428)),a=path[n(349)](o,n(416)),ensureDir(i),e.a(2,signTools[n(369)](i,a)[n(405)](function(){return signTools.genP12(r,i,a,t)})[n(383)](function(e){var r=n;logger[r(404)](r(355),e)})[n(394)](function(){fs[n(354)](o,{recursive:!0,force:!0})}))},e)})))[e(353)](this,arguments)}module.exports={install:function(e){var r,n,t,o=_0x4c10ef,e=e[o(362)]("signtools")[o(390)](o(422));e.command(o(374))[o(390)](o(424)).option(o(415),"projectRoot").option(o(388),o(352))[o(393)](o(377),o(420)).action((t=_asyncToGenerator(_regenerator().m(function e(n){var t,o;return _regenerator().w(function(e){for(var r=_0x4ddb;;)if(0===e.n)return o=getParams(n),t=o[r(391)],o=o[r(421)],ensureDir(t),ensureDir(o),e.a(2,signTools[r(369)](t,o))},e)})),function(e){return t.apply(this,arguments)})),e[o(362)](o(347))[o(390)]("generate p12").option(o(415),o(373))[o(393)]("--sign-private-key-path [path]",o(352))[o(393)]("--sign-public-key-path [path]","Sign public key path")[o(393)](o(411),o(386))[o(376)](o(425),o(378))[o(366)]((n=_asyncToGenerator(_regenerator().m(function e(n){var t,o,i,a;return _regenerator().w(function(e){for(var r=_0x4ddb;;)switch(e.n){case 0:if(a=getParams(n),t=a[r(391)],o=a[r(421)],i=a[r(387)],a=a[r(357)],ensureDir(i),fs[r(382)](t)&&fs[r(382)](o)){e.n=1;break}return logger.warn("generate keypair"),e.a(2,genCertAndP12(i,a));case 1:return e.a(2,signTools[r(409)](i,t,o,a))}},e)})),function(e){return n[_0x4ddb(353)](this,arguments)})),e[o(362)](o(363)).description("View Fingerprint")[o(376)](o(367)).action((r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0x4ddb;;)switch(e.n){case 0:signTools[r(363)](n.input);case 1:return e.a(2)}},e)})),function(e){return r[_0x4ddb(353)](this,arguments)}))}};
1
+ var _0x10c485=_0xc681;function _regenerator(){var v,y=_0xc681,e=y(284)==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e[y(279)]||y(290);function t(e,r,n,t){var i,o,a,c,s,u,f,g,p,_,h=y,r=r&&r[h(304)]instanceof d?r:d,r=Object[h(300)](r[h(304)]);return _regeneratorDefine2(r,"_invoke",(i=e,o=n,g=t||[],p=!1,_={p:f=0,n:0,v:v,a:l,f:l[(u=h)(276)](v,4),d:function(e,r){return a=e,c=0,s=v,_.n=r,P}},function(e,r,n){var t=u;if(1<f)throw TypeError("Generator is already running");for(p&&1===r&&l(r,n),c=r,s=n;(x=c<2?v:s)||!p;){a||(c?c<3?(1<c&&(_.n=-1),l(c,s)):_.n=s:_.v=s);try{if(f=2,a){if(c||(e=t(346)),x=a[e]){if(!(x=x[t(296)](a,s)))throw TypeError(t(324));if(!x[t(322)])return x;s=x[t(331)],c<2&&(c=0)}else 1===c&&(x=a[t(272)])&&x.call(a),c<2&&(s=TypeError(t(291)+e+t(285)),c=1);a=v}else if((x=(p=_.n<0)?s:i.call(o,_))!==P)break}catch(e){a=v,c=1,s=e}finally{f=1}}return{value:x,done:p}}),!0),r;function l(e,r){var n=u;for(c=e,s=r,x=0;!p&&f&&!t&&x<g[n(318)];x++){var t,i=g[x],o=_.p,a=i[2];3<e?(t=a===r)&&(s=i[(c=i[4])?5:c=3],i[4]=i[5]=v):i[0]<=o&&((t=e<2&&o<i[1])?(c=0,_.v=r,_.n=i[1]):o<a&&(t=e<3||i[0]>r||a<r)&&(i[4]=e,i[5]=r,_.n=a,c=0))}if(t||1<e)return P;throw p=!0,r}}var P={};function d(){}function i(){}function o(){}var x=Object[y(321)],e=[][r]?x(x([][r]())):(_regeneratorDefine2(x={},r,function(){return this}),x),a=o[y(304)]=d[y(304)]=Object[y(300)](e);function c(e){var r=y;return Object[r(312)]?Object[r(312)](e,o):(e[r(287)]=o,_regeneratorDefine2(e,n,"GeneratorFunction")),e[r(304)]=Object[r(300)](a),e}return i[y(304)]=o,_regeneratorDefine2(a,"constructor",o),_regeneratorDefine2(o,y(332),i),i.displayName="GeneratorFunction",_regeneratorDefine2(o,n,y(333)),_regeneratorDefine2(a),_regeneratorDefine2(a,n,y(310)),_regeneratorDefine2(a,r,function(){return this}),_regeneratorDefine2(a,y(298),function(){return y(347)}),(_regenerator=function(){return{w:t,m:c}})()}function _0xc681(e,r){var n=_0x4b4e();return(_0xc681=function(e,r){return n[e-=262]})(e,r)}function _regeneratorDefine2(e,r,n,t){var a=_0xc681,c=Object[a(275)];try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,r,n,t){var i=a;function o(r,n){_regeneratorDefine2(e,r,function(e){return this[_0xc681(295)](r,n,e)})}r?c?c(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o(i(346),0),o(i(283),1),o(i(272),2))})(e,r,n,t)}function asyncGeneratorStep(e,r,n,t,i,o,a){var c=_0xc681;try{var s=e[o](a),u=s[c(331)]}catch(e){return void n(e)}s[c(322)]?r(u):Promise[c(286)](u)[c(345)](t,i)}function _0x4b4e(){var e=["Sign private key path","toStringTag","genCertAndP12 error","command","1009374nStGcL","throw","function","' method","resolve","__proto__","../../ascf-sign-tools","signtools","@@toStringTag","The iterator does not provide a '","warn","sign/ascf-build.p12","projectRoot","_invoke","call","finally","toString","--sign-private-key-path [path]","create","dirname","mkdirSync","generate keypair","prototype","certificate.pem","245MaPDSw","generate-keypair","signPrivateKeyPath","join","Generator","sign/private.pem","setPrototypeOf","--sign-profile-path [path]","ascf-sign-tools","concat","sign/certificate.pem","cachedir","length","apply","action","getPrototypeOf","done","signPwd","iterator result is not an object","catch","52ZKDdZP","../../common/log4js","description","-i, --input <input-directory>","2064710QwVxOW","value","constructor","GeneratorFunction","option","requiredOption","Sign public key path","input","tmp sign dir ","5PWWZqO","genP12","existsSync","--sign-public-key-path [path]","path","-r, --projectRoot [projectRoot]","then","next","[object Generator]","9gTvKKu","genCert","--sign-pwd [pwd]","5109203sOiyzQ","83035XeDHLq","printFp","exports","47010IlsDxL","12DcjAOy","66496GJIzwO","signPublicKeyPath","rmSync","generate-p12","ascf-cache-tmp-sign","getLogger","return","signProfilePath","419120eqLQAY","defineProperty","bind","private.pem"];return(_0x4b4e=function(){return e})()}function _asyncToGenerator(s){return function(){var e=this,c=arguments;return new Promise(function(r,n){var t=_0xc681,i=s[t(319)](e,c);function o(e){asyncGeneratorStep(i,r,n,o,a,t(346),e)}function a(e){asyncGeneratorStep(i,r,n,o,a,"throw",e)}o(void 0)})}}(()=>{for(var e=_0xc681,r=_0x4b4e();;)try{if(174190==-parseInt(e(339))*(parseInt(e(266))/2)+-parseInt(e(282))/3+-parseInt(e(326))/4*(parseInt(e(352))/5)+-parseInt(e(264))/6*(-parseInt(e(306))/7)+-parseInt(e(274))/8+parseInt(e(348))/9*(parseInt(e(330))/10)+parseInt(e(351))/11*(parseInt(e(265))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0x10c485(343)),cachedir=require(_0x10c485(317)),signTools=require(_0x10c485(288)),log4js=require(_0x10c485(327)),logger=log4js[_0x10c485(271)](_0x10c485(314));function ensureDir(e){var r=_0x10c485,e=path[r(301)](e);return fs.existsSync(e)||fs[r(302)](e,{recursive:!0}),e}function getParams(e){var r=_0x10c485,n=e[r(294)],t=e.signPrivateKeyPath,i=e.signPublicKeyPath,o=e.signProfilePath,e=e[r(323)];return{signPrivateKeyPath:t=n&&!t?path[r(309)](n,r(311)):t,signPublicKeyPath:i=n&&!i?path.join(n,r(316)):i,signProfilePath:o=n&&!o?path[r(309)](n,r(293)):o,signPwd:e}}function genCertAndP12(e,r){return _genCertAndP[_0x10c485(319)](this,arguments)}function _genCertAndP(){var e=_0x10c485;return(_genCertAndP=_asyncToGenerator(_regenerator().m(function e(r,t){var i,o,a;return _regenerator().w(function(e){for(var n=_0xc681;;)if(0===e.n)return i=cachedir(n(270)),logger.debug(n(338)[n(315)](i)),o=path[n(309)](i,n(277)),a=path[n(309)](i,n(305)),ensureDir(o),e.a(2,signTools[n(349)](o,a).then(function(){return signTools[n(340)](r,o,a,t)})[n(325)](function(e){var r=n;logger.error(r(280),e)})[n(297)](function(){fs[n(268)](i,{recursive:!0,force:!0})}))},e)})))[e(319)](this,arguments)}module[_0x10c485(263)]={install:function(e){var r,n,t,i=_0x10c485,e=e[i(281)](i(289)).description("Sign tools to generate keypair, p12 file and view fingerprint");e[i(281)](i(307))[i(328)](i(303)).option(i(344),i(294))[i(334)](i(299),i(278))[i(334)]("--sign-public-key-path [path]",i(336))[i(320)]((t=_asyncToGenerator(_regenerator().m(function e(n){var t,i;return _regenerator().w(function(e){for(var r=_0xc681;;)if(0===e.n)return i=getParams(n),t=i[r(308)],i=i.signPublicKeyPath,ensureDir(t),ensureDir(i),e.a(2,signTools[r(349)](t,i))},e)})),function(e){return t.apply(this,arguments)})),e.command(i(269))[i(328)]("generate p12")[i(334)](i(344),"projectRoot")[i(334)](i(299),i(278))[i(334)](i(342),i(336)).option(i(313),"p12 File Path")[i(335)](i(350),"Password of the p12 file")[i(320)]((n=_asyncToGenerator(_regenerator().m(function e(n){var t,i,o,a;return _regenerator().w(function(e){for(var r=_0xc681;;)switch(e.n){case 0:if(a=getParams(n),t=a.signPrivateKeyPath,i=a[r(267)],o=a[r(273)],a=a[r(323)],ensureDir(o),fs[r(341)](t)&&fs[r(341)](i)){e.n=1;break}return logger[r(292)]("generate keypair"),e.a(2,genCertAndP12(o,a));case 1:return e.a(2,signTools[r(340)](o,t,i,a))}},e)})),function(e){return n.apply(this,arguments)})),e[i(281)](i(262))[i(328)]("View Fingerprint")[i(335)](i(329))[i(320)]((r=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(var r=_0xc681;;)switch(e.n){case 0:signTools[r(262)](n[r(337)]);case 1:return e.a(2)}},e)})),function(e){return r[_0xc681(319)](this,arguments)}))}};
@@ -1 +1 @@
1
- function _0x3a9d(c,e){var r=_0x3e42();return(_0x3a9d=function(c,e){return r[c-=292]})(c,e)}var _0x21c69c=_0x3a9d;function _0x3e42(){var c=["54IiTvXS","18tUfwJp","video","472715ogCCYa","camera","image","swiper","slider","72EXWkLK","75255DPrwGq","691977MsVXaR","env","163051wxFhBV","progress","picker-view-column","NODE_ENV","navigator","checkbox-group","checkbox","scroll-view","input","configs","movable-view","switch","label","4QPxsHl","text","radio","154881eGRqQx","development","rich-text","72830Wpdlyg","babel","canvas","swiper-item","109566osEkly","web-view","form","view","textarea","movable-area"];return(_0x3e42=function(){return c})()}(()=>{for(var c=_0x3a9d,e=_0x3e42();;)try{if(171612==+parseInt(c(321))+parseInt(c(306))/2+-parseInt(c(299))/3*(parseInt(c(296))/4)+parseInt(c(315))/5*(parseInt(c(313))/6)+-parseInt(c(324))/7*(parseInt(c(320))/8)+-parseInt(c(312))/9*(parseInt(c(302))/10)+parseInt(c(322))/11)break;e.push(e.shift())}catch(c){e.push(e.shift())}})();var configs={notaddtodo:!1,parser:_0x21c69c(303),devtool:void 0,componentList:[_0x21c69c(311),_0x21c69c(293),_0x21c69c(331),_0x21c69c(318),_0x21c69c(305),_0x21c69c(309),"icon",_0x21c69c(325),_0x21c69c(301),_0x21c69c(297),"button",_0x21c69c(330),_0x21c69c(329),_0x21c69c(308),_0x21c69c(332),_0x21c69c(295),"picker","picker-view",_0x21c69c(326),_0x21c69c(298),"radio-group",_0x21c69c(319),_0x21c69c(294),_0x21c69c(310),_0x21c69c(328),_0x21c69c(317),_0x21c69c(314),_0x21c69c(316),"Map",_0x21c69c(304),_0x21c69c(307)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var c=_0x21c69c;return process[c(323)][c(327)]!==c(300)},isInjectDebugTimer:function(){return!configs.isProd()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[],asyncJsList:{},jsLoaderList:new Set,isRelease:!0};exports[_0x21c69c(292)]=configs;
1
+ var _0x42d100=_0x1727;function _0x4adc(){var e=["input","swiper-item","swiper","checkbox","camera","isProd","form","movable-view","configs","scroll-view","picker-view-column","web-view","140921SshAeS","env","image","switch","movable-area","text","button","34712ZIBdjz","radio","radio-group","picker","1562456tjsMJa","14otxjoy","433256CYAMoi","39ZKRCNw","8515998ltxTwl","label","canvas","development","501804qKrtHz","checkbox-group","1009910WDiUkA","rich-text","babel","NODE_ENV","icon","view"];return(_0x4adc=function(){return e})()}function _0x1727(e,r){var t=_0x4adc();return(_0x1727=function(e,r){return t[e-=303]})(e,r)}(()=>{for(var e=_0x1727,r=_0x4adc();;)try{if(123430==-parseInt(e(315))+-parseInt(e(322))/2*(parseInt(e(329))/3)+parseInt(e(328))/4+-parseInt(e(336))/5+parseInt(e(334))/6*(-parseInt(e(327))/7)+-parseInt(e(326))/8+parseInt(e(330))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var configs={notaddtodo:!1,parser:_0x42d100(338),devtool:void 0,componentList:[_0x42d100(319),_0x42d100(310),_0x42d100(312),_0x42d100(305),_0x42d100(304),_0x42d100(341),_0x42d100(340),"progress",_0x42d100(337),_0x42d100(320),_0x42d100(321),_0x42d100(306),_0x42d100(335),_0x42d100(309),_0x42d100(303),_0x42d100(331),_0x42d100(325),"picker-view",_0x42d100(313),_0x42d100(323),_0x42d100(324),"slider",_0x42d100(318),"textarea","navigator",_0x42d100(317),"video",_0x42d100(307),"Map",_0x42d100(332),_0x42d100(314)],templateHoist:!1,ascfLazyImportFiles:{},skipApiValidator:!0,serve:!1,deviceId:!1,isProd:function(){var e=_0x42d100;return process[e(316)][e(339)]!==e(333)},isInjectDebugTimer:function(){return!configs[_0x42d100(308)]()},requiredComponents:[],tabBarUsingComponents:{},tabBarList:[],asyncJsList:{},jsLoaderList:new Set};exports[_0x42d100(311)]=configs;
@@ -1 +1 @@
1
- var _0x2374ee=_0x3bb3;function _0x2f78(){var r=["115tJnSep","crossAtomicService","104260KInaOq","282QkvBdi","10991112NrzQpM","25656650Widfxq","165384LapXCQ","16xRUKTP","886770DPBiZX","exports","10921545BmGKoL","130319KOwLlS"];return(_0x2f78=function(){return r})()}function _0x3bb3(r,e){var t=_0x2f78();return(_0x3bb3=function(r,e){return t[r-=167]})(r,e)}(()=>{for(var r=_0x3bb3,e=_0x2f78();;)try{if(687875==-parseInt(r(178))*(-parseInt(r(177))/2)+parseInt(r(167))/3+-parseInt(r(173))/4*(-parseInt(r(171))/5)+-parseInt(r(174))/6*(-parseInt(r(170))/7)+parseInt(r(175))/8+-parseInt(r(169))/9+-parseInt(r(176))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var BUILD_TARGET_AS="atomicservice",BUILD_TARGET_QS=_0x2374ee(172);module[_0x2374ee(168)]={BUILD_TARGET_AS:BUILD_TARGET_AS,BUILD_TARGET_QS:BUILD_TARGET_QS};
1
+ var _0x56ef99=_0x5419,HOS_DEVICE=((()=>{for(var r=_0x5419,e=_0x2901();;)try{if(925593==+parseInt(r(451))+parseInt(r(447))/2*(-parseInt(r(445))/3)+-parseInt(r(448))/4*(parseInt(r(441))/5)+-parseInt(r(442))/6+-parseInt(r(444))/7+-parseInt(r(446))/8+parseInt(r(455))/9)break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),_0x56ef99(450)),LEGACY_DEVICE="legacy",BUILD_TARGET_AS=_0x56ef99(449),BUILD_TARGET_QS="crossAtomicService";function normalizeTargets(r){var e=_0x56ef99;return(null==r?void 0:r[e(443)])===LEGACY_DEVICE&&(r[e(454)]=BUILD_TARGET_QS),(null==r?void 0:r[e(454)])===BUILD_TARGET_AS&&(r.deviceType=HOS_DEVICE),r}var hasArg=function(r,e,_){var n=_0x56ef99,e=r[n(452)](e);return-1!==e&&(null==(r=r[e+1])?void 0:r[n(440)](_))};function _0x5419(r,e){var _=_0x2901();return(_0x5419=function(r,e){return _[r-=440]})(r,e)}function _0x2901(){var r=["deviceType","3797619xycXLX","6xMnXiZ","12815096MJkBMr","49114mXIpmC","24036xAotGV","atomicservice","hos","1133988BusZbW","indexOf","exports","targets","40223511RYTpNd","includes","1260xfTWDU","5819328UZIwIA"];return(_0x2901=function(){return r})()}module[_0x56ef99(453)]={HOS_DEVICE:HOS_DEVICE,LEGACY_DEVICE:LEGACY_DEVICE,BUILD_TARGET_AS:BUILD_TARGET_AS,BUILD_TARGET_QS:BUILD_TARGET_QS,normalizeTargets:normalizeTargets,hasArg:hasArg};
@@ -1 +1 @@
1
- function _0x2714(){var e=["578130NEupNV","16689360YAimQj","228408hejnrt","1563332UehXRh","981842fVmcBn","161PdyGIx","setLoggerConfig","5bcAWNm","ASCF_LOG_FILE","3nfafgo","54HwqqVi","11QQGjXy","73398PIoxWD","4112580LXZHIO","exports"];return(_0x2714=function(){return e})()}function _0xc1f3(e,r){var t=_0x2714();return(_0xc1f3=function(e,r){return t[e-=484]})(e,r)}var _0x41e992=_0xc1f3,_require=((()=>{for(var e=_0xc1f3,r=_0x2714();;)try{if(368865==+parseInt(e(487))+-parseInt(e(494))/2*(parseInt(e(484))/3)+parseInt(e(493))/4*(parseInt(e(497))/5)+-parseInt(e(488))/6+-parseInt(e(495))/7*(parseInt(e(492))/8)+-parseInt(e(485))/9*(-parseInt(e(490))/10)+-parseInt(e(486))/11*(-parseInt(e(491))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require("../ascf-base")),ASCF_LOG_FILE=_require[_0x41e992(498)],setLoggerConfig=_require[_0x41e992(496)],getLogger=_require.getLogger;module[_0x41e992(489)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
1
+ function _0x1de7(e,r){var t=_0x6fbd();return(_0x1de7=function(e,r){return t[e-=429]})(e,r)}var _0x10f2f3=_0x1de7,_require=((()=>{for(var e=_0x1de7,r=_0x6fbd();;)try{if(146635==-parseInt(e(436))+-parseInt(e(432))/2+parseInt(e(429))/3+-parseInt(e(431))/4*(-parseInt(e(437))/5)+parseInt(e(430))/6+parseInt(e(434))/7+parseInt(e(433))/8*(parseInt(e(442))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x10f2f3(441))),ASCF_LOG_FILE=_require[_0x10f2f3(438)],setLoggerConfig=_require[_0x10f2f3(435)],getLogger=_require[_0x10f2f3(439)];function _0x6fbd(){var e=["18yWsiGb","414333VkaRFE","177228EUqVUd","88krANKe","177706JoqwDs","242752zwchpJ","663404BHtaTD","setLoggerConfig","95519YEqHGL","1795yedhUx","ASCF_LOG_FILE","getLogger","exports","../ascf-base"];return(_0x6fbd=function(){return e})()}module[_0x10f2f3(440)]={ASCF_LOG_FILE:ASCF_LOG_FILE,setLoggerConfig:setLoggerConfig,getLogger:getLogger};
@@ -1 +1 @@
1
- var _0x32c660=_0x4521;function _typeof(r){var t=_0x4521;return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol[t(215)]?function(r){return typeof r}:function(r){var e=t;return r&&e(255)==typeof Symbol&&r[e(232)]===Symbol&&r!==Symbol[e(206)]?"symbol":typeof r})(r)}function _classCallCheck(r,e){var t=_0x4521;if(!(r instanceof e))throw new TypeError(t(230))}function _defineProperties(r,e){for(var t=_0x4521,n=0;n<e[t(177)];n++){var o=e[n];o[t(220)]=o[t(220)]||!1,o.configurable=!0,t(219)in o&&(o[t(241)]=!0),Object[t(217)](r,_toPropertyKey(o[t(197)]),o)}}function _createClass(r,e,t){var n=_0x4521;return e&&_defineProperties(r.prototype,e),t&&_defineProperties(r,t),Object[n(217)](r,n(206),{writable:!1}),r}function _toPropertyKey(r){var e=_0x4521,r=_toPrimitive(r,e(162));return e(195)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x4521;if(t(221)!=_typeof(r)||!r)return r;var n=r[Symbol[t(175)]];if(void 0===n)return(t(162)===e?String:Number)(r);n=n.call(r,e||"default");if(t(221)!=_typeof(n))return n;throw new TypeError(t(211))}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x4521(163))}function _unsupportedIterableToArray(r,e){var t,n=_0x4521;if(r)return n(162)==typeof r?_arrayLikeToArray(r,e):"Map"===(t="Object"===(t={}.toString[n(201)](r).slice(8,-1))&&r[n(232)]?r[n(232)].name:t)||"Set"===t?Array[n(209)](r):n(187)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(223)](t)?_arrayLikeToArray(r,e):void 0}function _iterableToArray(r){var e=_0x4521;if(e(168)!=typeof Symbol&&null!=r[Symbol[e(215)]]||null!=r[e(176)])return Array[e(209)](r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x4521;(null==e||e>r[t(177)])&&(e=r[t(177)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x4521,e=_0x4ce2();;)try{if(269180==+parseInt(r(243))+-parseInt(r(166))/2*(parseInt(r(235))/3)+-parseInt(r(165))/4+parseInt(r(252))/5+parseInt(r(184))/6*(-parseInt(r(237))/7)+parseInt(r(245))/8*(-parseInt(r(181))/9)+parseInt(r(234))/10*(parseInt(r(248))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x32c660(199),log4js=require(_0x32c660(192)),logger=log4js.getLogger(_0x32c660(186));function defaultFormatter(r,e){var n=_0x32c660;return r[n(240)](function(r,e){var t=n;return[][t(179)](_toConsumableArray(r),["\n"[t(179)](e[t(204)])])},[])}function babelSyntaxError(r){var e=_0x32c660;return isBabelSyntaxError(r)&&(r[e(204)]=cleanStackTrace(r[e(204)])),r}function isBabelSyntaxError(r){var e=_0x32c660;return r.name===e(251)&&r[e(204)].includes("SyntaxError")}function cleanStackTrace(r){var e=_0x32c660;return r[e(196)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(196)](/^Module build failed.*:\s/,e(244))}function moduleNotFoundError(r){var e,t=_0x32c660;return r[t(253)]===t(238)&&r.message[t(213)](TYPE)&&(r[t(204)]=r[t(204)][t(196)](TYPE,t(216)[t(179)](TYPE)),e=r[t(218)]&&r.origin[t(207)])&&(r[t(204)]+=t(190)[t(179)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x32c660;return{message:r[e(204)],file:r[e(203)],origin:r[e(218)],name:r[e(253)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x32c660;return r[e(196)](e(193),"")[e(196)](/Module Warning[^\n]+\n/,"")[e(196)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x32c660;return r[n(250)](extractError)[n(250)](function(r){return e.reduce(t,r)})}function _0x4521(r,e){var t=_0x4ce2();return(_0x4521=function(r,e){return t[r-=161]})(r,e)}function formatErrors(e,r,t){var n=_0x32c660;return r[n(250)](function(r){return r(e,t)||[]})[n(240)](function(r,e){return r[_0x4521(179)](e)},[])}function _0x4ce2(){var r=["logger-plugin","Arguments","printCompileResult","compileTime: ","\n@ ","transformers","./log4js.js","(Emitted value instead of an instance of Error) ","done","symbol","replace","key","endTime","Module not found","round","call","warningCount","file","message","formatters","prototype","resource","getBuildMsg","from","fatal","@@toPrimitive must return a primitive value.","warnCount","includes","showCompileTime","iterator","ERROR: ","defineProperty","origin","value","enumerable","object"," ms","test","some","errorCount","\nCOMPILE RESULT:","ASCF_LOG_FILE","calculate","warning","Cannot call a class as a function","startTime","constructor","beginTime","6998820jGWJSZ","849501iOohPB","stringify","21ifWhwq","ModuleNotFoundError","hasWarnings","reduce","writable","apply","33949ylSqvo","Error: ","3234208IMeRwv","errors","compilation","22ycdmNr","error","map","ModuleBuildError","513435AHWXpf","name","extraInfo","function","tap","noteCount","warn","\n\nYou can check full log: ","hasErrors","string","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","hooks","1720800JsaQiG","2aLAyCe","BuildLogOutputPlugin","undefined",", elapsed: ","info","getTime","warnings","options","dropRepeat","toPrimitive","@@iterator","length","displayErrors","concat","\nCOMPILE RESULT:SUCCESS","9NibVuW","assign","FAIL ","299154NfatUF","forEach"];return(_0x4ce2=function(){return r})()}function getCompileTime(r){var e=_0x32c660,t=r[e(198)],r=r[e(231)];logger[e(170)](e(189)[e(179)](t-r,e(222)))}function _dropRepeat(r){return r.reduce(function(r,e){var t=_0x4521;return r[t(224)](function(r){return r[t(204)]===e.message})?r:r[t(179)](e)},[])}var BuildLogOutputPlugin=(()=>{var l=_0x32c660;return _createClass(function r(){var e=_0x4521,t=0<arguments[e(177)]&&void 0!==arguments[0]?arguments[0]:{},n=t[e(214)],n=void 0!==n&&n,t=t.options;_classCallCheck(this,r),this.errorCount=0,this[e(202)]=0,this[e(257)]=0,this[e(214)]=n||"true"===process.env.showtime,this[e(205)]=defaultFormatters,this.transformers=defaultTransformers,this[e(173)]=t},[{key:l(242),value:function(r){var u=l,s=this;r[u(164)][u(194)][u(256)](u(167),function(e){var t=u,r=(s[t(174)](e),e[t(247)]),n=r[t(246)],o=r[t(172)],a=e[t(161)](),i=e[t(239)]();setTimeout(function(){var r=t;a&&s.displayErrors(n,r(249)),i&&s.displayErrors(o,r(229)),s[r(228)](e,n,o),s[r(188)](),s[r(214)]&&getCompileTime(e)})})}},{key:"dropRepeat",value:function(r){var e=l;r.compilation[e(172)]=_dropRepeat(r[e(247)][e(172)]),r[e(247)][e(246)]=_dropRepeat(r.compilation[e(246)])}},{key:l(228),value:function(r,e){var t=l,n=this,o=2<arguments[t(177)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(247)][t(254)]||{},a=r[t(225)],a=void 0===a?0:a,i=r[t(212)],i=void 0===i?0:i,r=r[t(257)],r=void 0===r?0:r;this.errorCount=e[t(177)]+a,this[t(202)]=i,this[t(257)]=r,o[t(185)](function(r){var e=t,r=r[e(204)];/^NOTE:/[e(223)](cleanMessage(r))?n[e(257)]++:n[e(202)]++})}},{key:"printCompileResult",value:function(){var r,e=l,t=this[e(225)],n=this[e(202)],o=this[e(257)],a=(new Date)[e(171)]()-global[e(233)],a=e(169)+Math[e(200)](a/1e3)+"s"+e(259)+log4js[e(227)];0<t+n+o?(r=t?e(183):"SUCCESS ",n=Object[e(182)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(210)](e(226).concat(r).concat(JSON[e(236)](n))+a):logger[e(258)](e(226)[e(179)](r)[e(179)](JSON[e(236)](n))+a)):logger.info(e(180)+a)}},{key:l(178),value:function(r,t){var n=l;formatErrors(transformErrors(r,this.transformers),this[n(205)],t)[n(185)](function(r){var e=n;t===e(249)&&logger.error(cleanMessage(r)),"warning"===t&&logger[e(258)](cleanMessage(r))})}},{key:l(208),value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(191)]),this[t(205)],e)[t(250)](function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
1
+ function _0x4d9a(){var r=["stringify","from","test"," ms","map","4415100ZHYHRJ","string","isArray","4kpiBeZ","BuildLogOutputPlugin","configurable","symbol","prototype","SyntaxError","errorCount","logger-plugin","defineProperty","replace","Error: ","ERROR: ","showtime","fatal","warnCount","done","warningCount","concat","getBuildMsg","printCompileResult","default","origin","warn","3879tVIJzN","transformers","formatters","forEach","6477IidBdZ","writable","SUCCESS ","dropRepeat","5269536klNtyB","some","noteCount","warning","showCompileTime","Module not found","extraInfo","resource","\n@ ","FAIL ","beginTime","850THPRxN","apply","4369655IuFzHb","slice","iterator","key","options","toPrimitive","true","function","constructor","ModuleBuildError","endTime","enumerable","name","getTime","error","call","(Emitted value instead of an instance of Error) ","assign","length","object","round","ASCF_LOG_FILE","6355202raowCd","Map","displayErrors","reduce","warnings","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","compilation","@@iterator","message","ModuleNotFoundError","Cannot call a class as a function","errors","18nroBJr","Set","2267832UVyXbF","calculate","\nCOMPILE RESULT:","includes","info","hooks"];return(_0x4d9a=function(){return r})()}var _0x39880a=_0x4242;function _typeof(r){var t=_0x4242;return(_typeof="function"==typeof Symbol&&t(278)==typeof Symbol[t(321)]?function(r){return typeof r}:function(r){var e=t;return r&&e(326)==typeof Symbol&&r[e(233)]===Symbol&&r!==Symbol[e(279)]?"symbol":typeof r})(r)}function _classCallCheck(r,e){var t=_0x4242;if(!(r instanceof e))throw new TypeError(t(257))}function _defineProperties(r,e){for(var t=_0x4242,n=0;n<e[t(243)];n++){var o=e[n];o[t(236)]=o[t(236)]||!1,o[t(277)]=!0,"value"in o&&(o[t(303)]=!0),Object[t(283)](r,_toPropertyKey(o[t(322)]),o)}}function _createClass(r,e,t){var n=_0x4242;return e&&_defineProperties(r[n(279)],e),t&&_defineProperties(r,t),Object[n(283)](r,n(279),{writable:!1}),r}function _toPropertyKey(r){var e=_0x4242,r=_toPrimitive(r,e(273));return e(278)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x4242;if(t(244)!=_typeof(r)||!r)return r;var n=r[Symbol[t(324)]];if(void 0===n)return(t(273)===e?String:Number)(r);n=n[t(240)](r,e||t(295));if(t(244)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x4242(252))}function _unsupportedIterableToArray(r,e){var t,n=_0x4242;if(r)return n(273)==typeof r?_arrayLikeToArray(r,e):("Object"===(t={}.toString[n(240)](r)[n(320)](8,-1))&&r.constructor&&(t=r[n(233)][n(237)]),n(248)===t||n(260)===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(269)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x4242;if("undefined"!=typeof Symbol&&null!=r[Symbol[e(321)]]||null!=r[e(254)])return Array[e(268)](r)}function _arrayWithoutHoles(r){if(Array[_0x4242(274)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x4242;(null==e||e>r[t(243)])&&(e=r[t(243)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x4242,e=_0x4d9a();;)try{if(481657==-parseInt(r(302))+parseInt(r(317))/2*(-parseInt(r(298))/3)+parseInt(r(275))/4*(-parseInt(r(319))/5)+parseInt(r(306))/6+parseInt(r(247))/7+parseInt(r(261))/8*(parseInt(r(259))/9)+-parseInt(r(272))/10)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x39880a(311),log4js=require("./log4js.js"),logger=log4js.getLogger(_0x39880a(282));function defaultFormatter(r,e){var n=_0x39880a;return r[n(250)](function(r,e){var t=n;return[][t(292)](_toConsumableArray(r),["\n".concat(e[t(255)])])},[])}function babelSyntaxError(r){var e=_0x39880a;return isBabelSyntaxError(r)&&(r[e(255)]=cleanStackTrace(r[e(255)])),r}function isBabelSyntaxError(r){var e=_0x39880a;return r[e(237)]===e(234)&&r[e(255)][e(264)](e(280))}function cleanStackTrace(r){var e=_0x39880a;return r[e(284)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(284)](/^Module build failed.*:\s/,e(285))}function moduleNotFoundError(r){var e,t=_0x39880a;return r.name===t(256)&&r.message[t(264)](TYPE)&&(r[t(255)]=r[t(255)][t(284)](TYPE,t(286)[t(292)](TYPE)),e=r[t(296)]&&r[t(296)][t(313)])&&(r[t(255)]+=t(314)[t(292)](e)),r}var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x39880a;return{message:r[e(255)],file:r.file,origin:r[e(296)],name:r[e(237)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x39880a;return r.replace(e(241),"")[e(284)](/Module Warning[^\n]+\n/,"")[e(284)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x39880a;return r[n(271)](extractError)[n(271)](function(r){return e.reduce(t,r)})}function formatErrors(e,r,t){var n=_0x39880a;return r[n(271)](function(r){return r(e,t)||[]})[n(250)](function(r,e){return r[_0x4242(292)](e)},[])}function getCompileTime(r){var e=_0x39880a,t=r[e(235)],r=r.startTime;logger[e(265)]("compileTime: ".concat(t-r,e(270)))}function _dropRepeat(r){return r.reduce(function(r,e){return r[_0x4242(307)](function(r){return r.message===e.message})?r:r.concat(e)},[])}function _0x4242(r,e){var t=_0x4d9a();return(_0x4242=function(r,e){return t[r-=233]})(r,e)}var BuildLogOutputPlugin=(()=>{var l=_0x39880a;return _createClass(function r(){var e=_0x4242,t=0<arguments[e(243)]&&void 0!==arguments[0]?arguments[0]:{},n=t.showCompileTime,n=void 0!==n&&n,t=t[e(323)];_classCallCheck(this,r),this[e(281)]=0,this[e(291)]=0,this.noteCount=0,this[e(310)]=n||process.env[e(287)]===e(325),this[e(300)]=defaultFormatters,this[e(299)]=defaultTransformers,this[e(323)]=t},[{key:l(318),value:function(r){var u=l,s=this;r[u(266)][u(290)].tap(u(276),function(e){var t=u,r=(s[t(305)](e),e[t(253)]),n=r[t(258)],o=r[t(251)],a=e.hasErrors(),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(249)](n,r(239)),i&&s.displayErrors(o,r(309)),s[r(262)](e,n,o),s[r(294)](),s[r(310)]&&getCompileTime(e)})})}},{key:l(305),value:function(r){var e=l;r.compilation[e(251)]=_dropRepeat(r.compilation[e(251)]),r[e(253)][e(258)]=_dropRepeat(r[e(253)][e(258)])}},{key:l(262),value:function(r,e){var t=l,n=this,o=2<arguments[t(243)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(253)][t(312)]||{},a=r[t(281)],a=void 0===a?0:a,i=r[t(289)],i=void 0===i?0:i,r=r[t(308)],r=void 0===r?0:r;this.errorCount=e[t(243)]+a,this.warningCount=i,this[t(308)]=r,o.forEach(function(r){var e=t,r=r[e(255)];/^NOTE:/[e(269)](cleanMessage(r))?n[e(308)]++:n[e(291)]++})}},{key:l(294),value:function(){var r,e=l,t=this.errorCount,n=this[e(291)],o=this[e(308)],a=(new Date)[e(238)]()-global[e(316)],a=", elapsed: "+Math[e(245)](a/1e3)+"s\n\nYou can check full log: "+log4js[e(246)];0<t+n+o?(r=e(t?315:304),n=Object[e(242)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),t?logger[e(288)]("\nCOMPILE RESULT:".concat(r)[e(292)](JSON[e(267)](n))+a):logger.warn(e(263)[e(292)](r).concat(JSON[e(267)](n))+a)):logger.info("\nCOMPILE RESULT:SUCCESS"+a)}},{key:l(249),value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(299)]),this.formatters,t)[n(301)](function(r){var e=n;"error"===t&&logger[e(239)](cleanMessage(r)),"warning"===t&&logger[e(297)](cleanMessage(r))})}},{key:l(293),value:function(r,e){var t=l;return formatErrors(transformErrors(r,this[t(299)]),this[t(300)],e)[t(271)](function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
@@ -1 +1 @@
1
- var _0x1d4340=_0x3e87;function _0x421b(){var r=["42DilFPx","2013664wTitrA","exports","splice","33XSLaDy","41ywJPug","266uHiAYD","2922080PetyhO","355386tpKjgH","directives","length","use strict","10538pSwPzI","392100QRsFgc","23928QCxoLA","value","4551984qbfcTL"];return(_0x421b=function(){return r})()}function _0x3e87(r,t){var e=_0x421b();return(_0x3e87=function(r,t){return e[r-=134]})(r,t)}(()=>{for(var r=_0x3e87,t=_0x421b();;)try{if(400281==-parseInt(r(146))*(-parseInt(r(136))/2)+-parseInt(r(149))/3+-parseInt(r(142))/4+-parseInt(r(137))/5*(-parseInt(r(141))/6)+parseInt(r(147))/7*(-parseInt(r(138))/8)+-parseInt(r(140))/9+-parseInt(r(148))/10*(-parseInt(r(145))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x1d4340(143)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x3e87,e=r.node[t(150)],n=e[t(134)]-1;0<=n;n--)e[n][t(139)][t(139)]===t(135)&&e[t(144)](n,1)}}}}};
1
+ function _0x51d7(r,t){var e=_0x1157();return(_0x51d7=function(r,t){return e[r-=182]})(r,t)}function _0x1157(){var r=["length","6279qCdNWX","5479144YzcEti","6532176zuSAEo","31qsIQHF","use strict","5448sukkFF","28673406WrJuLc","exports","1659285hOwMic","splice","42830uNdVnO","value","3748545ezqErp"];return(_0x1157=function(){return r})()}var _0xa97e5f=_0x51d7;(()=>{for(var r=_0x51d7,t=_0x1157();;)try{if(889498==+parseInt(r(182))*(-parseInt(r(189))/2)+-parseInt(r(187))/3+parseInt(r(194))/4+-parseInt(r(191))/5+-parseInt(r(195))/6+-parseInt(r(193))/7*(parseInt(r(184))/8)+parseInt(r(185))/9)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0xa97e5f(186)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x51d7,e=r.node.directives,n=e[t(192)]-1;0<=n;n--)e[n].value[t(190)]===t(183)&&e[t(188)](n,1)}}}}};
@@ -1 +1 @@
1
- var _0x10586e=_0x1213;function _0x8040(){var r=["2711850PKErJl","361230qhNsNE","prototype","replace","38785dbRsSR","4022263YEBydA","9BBbWdA","721896QkwVpx","\\$&","591124WRApkR","8ZwhUNu","replaceAll","117fvDJNY","1835135dBWZUS"];return(_0x8040=function(){return r})()}function _0x1213(r,e){var n=_0x8040();return(_0x1213=function(r,e){return n[r-=143]})(r,e)}(()=>{for(var r=_0x1213,e=_0x8040();;)try{if(358378==+parseInt(r(147))*(-parseInt(r(153))/2)+parseInt(r(149))/3*(parseInt(r(152))/4)+-parseInt(r(156))/5+parseInt(r(143))/6+-parseInt(r(148))/7+parseInt(r(150))/8+-parseInt(r(155))/9*(-parseInt(r(144))/10))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),exports[_0x10586e(154)]=function(r,e,n){var t=_0x10586e;return String[t(145)].replaceAll?null==r?void 0:r[t(154)](e,n):(e=e[t(146)](/[.*+?^${}()|[\]\\]/g,t(151)),e=new RegExp(e,"g"),null==r?void 0:r[t(146)](e,n))};
1
+ function _0x3ab5(r,n){var e=_0x5182();return(_0x3ab5=function(r,n){return e[r-=345]})(r,n)}function _0x5182(){var r=["1334820oWolZJ","5455232fQMrQT","replace","1554MyKJfG","5480hCxECU","87097XLixxf","replaceAll","\\$&","8gKuOvE","1918044ZApdDY","25179qTBdDa","23973gxkZul","prototype","4hrWJki","8718oJnTHr"];return(_0x5182=function(){return r})()}(()=>{for(var r=_0x3ab5,n=_0x5182();;)try{if(573166==-parseInt(r(354))*(-parseInt(r(347))/2)+parseInt(r(345))/3*(-parseInt(r(357))/4)+-parseInt(r(349))/5+parseInt(r(348))/6*(parseInt(r(352))/7)+-parseInt(r(350))/8+-parseInt(r(358))/9+-parseInt(r(353))/10*(-parseInt(r(359))/11))break;n.push(n.shift())}catch(r){n.push(n.shift())}})(),exports.replaceAll=function(r,n,e){var t=_0x3ab5;return String[t(346)][t(355)]?null==r?void 0:r[t(355)](n,e):(n=n[t(351)](/[.*+?^${}()|[\]\\]/g,t(356)),t=new RegExp(n,"g"),null==r?void 0:r.replace(t,e))};
@@ -1 +1 @@
1
- var _0x1749c9=_0x52fc;function _createForOfIteratorHelper(r,e){var t,o,n,a,c=_0x52fc,i=c(381)!=typeof Symbol&&r[Symbol.iterator]||r[c(489)];if(i)return n=!(o=!0),{s:function(){i=i.call(r)},n:function(){var r=i[c(403)]();return o=r.done,r},e:function(r){n=!0,t=r},f:function(){var r=c;try{o||null==i[r(468)]||i[r(468)]()}finally{if(n)throw t}}};if(Array[c(492)](r)||(i=_unsupportedIterableToArray(r))||e&&r&&c(375)==typeof r[c(466)])return i&&(r=i),a=0,{s:e=function(){},n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(r){throw r},f:e};throw new TypeError(c(405))}function _unsupportedIterableToArray(r,e){var t,o=_0x52fc;if(r)return o(505)==typeof r?_arrayLikeToArray(r,e):(t={}.toString[o(444)](r)[o(481)](8,-1),o(438)===t&&r[o(383)]&&(t=r[o(383)].name),o(515)===t||o(417)===t?Array[o(457)](r):o(411)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[o(478)](t)?_arrayLikeToArray(r,e):void 0)}function _arrayLikeToArray(r,e){var t=_0x52fc;(null==e||e>r[t(466)])&&(e=r[t(466)]);for(var o=0,n=Array(e);o<e;o++)n[o]=r[o];return n}(()=>{for(var r=_0x52fc,e=_0x6aba();;)try{if(982249==+parseInt(r(431))+parseInt(r(397))/2*(parseInt(r(387))/3)+parseInt(r(394))/4*(parseInt(r(384))/5)+-parseInt(r(491))/6+-parseInt(r(503))/7*(parseInt(r(447))/8)+parseInt(r(372))/9*(-parseInt(r(477))/10)+-parseInt(r(434))/11*(-parseInt(r(448))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var rimraf=require(_0x1749c9(413)),fs=require("fs"),path=require("path"),JSON5=require(_0x1749c9(374)),os=require("os"),_require=require("child_process"),execSync=_require[_0x1749c9(463)],json5=require(_0x1749c9(374)),log4js=require(_0x1749c9(462)),_require2=require(_0x1749c9(388)),configs=_require2[_0x1749c9(428)],logger=log4js.getLogger(_0x1749c9(453)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var r,e,t,o=_0x1749c9;return process[o(450)][o(416)]===curProjectPath&&curProjectInfo||(e=readProjectCfgJson(r=process[o(450)][o(416)]||process[o(418)]())||{},t=path[o(404)](r,o(482)),t=e[o(488)]?path[o(404)](t,e[o(488)]):t,o=path[o(404)](r,"ascf",o(456)),curProjectInfo={projectPath:curProjectPath=r,projectCfg:e,ascfSrcPath:t,ascfBuildPath:o}),curProjectInfo}exports.getProjectInfo=getProjectInfo,exports[_0x1749c9(499)]=_0x1749c9(445),exports.TOOLKIT_PATH=path.join(__dirname,"..","..");var SECURE_KEYS=["deviceId",_0x1749c9(430),_0x1749c9(514)];function logJsonStr(r){var o=_0x1749c9;return JSON[o(436)](r,function(r,e){var t=o;return SECURE_KEYS[t(391)](r)?null!=e?t(440):void 0:e})}function fixUniapp(r,e){var t=_0x1749c9,r=path[t(404)](r,"ascf/ascf_src/common/vendor.js");fs[t(490)](r)&&((null==(r=fs[t(441)](r,t(498)))?void 0:r[t(391)](t(458)))||(null==r?void 0:r.includes(t(464))))&&(e.disableSubpackages=!1)}function initOptions(r){var e,t=_0x1749c9;for(e in r)Object.prototype[t(396)].call(r,e)&&(r[e]===t(419)&&(r[e]=!1),r[e]===t(511))&&(r[e]=!0)}function readJsonFile(e){var t=_0x1749c9;if(!fs.existsSync(e))return{};var r={};try{r=JSON5[t(504)](fs[t(441)](e,"utf-8")[t(377)]()||"{}")}catch(r){throw new Error("parse json file error at "[t(378)](e,":")[t(378)](r[t(371)],":").concat(r[t(402)]," "))}return r}function _0x52fc(r,e){var t=_0x6aba();return(_0x52fc=function(r,e){return t[r-=370]})(r,e)}function writeJsonFile(r,e){var t=_0x1749c9;try{fs[t(409)](r,JSON[t(436)](e,null,2))}catch(r){throw t(480).concat(r)}}function readProjectCfgJson(r){var e,t=_0x1749c9,r=path[t(497)](r,t(475),t(474),t(510));return e=fs[t(490)](r)?JSON[t(504)](fs[t(441)](r)[t(377)]()):e}function isOSX(){var r=_0x1749c9;return os.platform()===r(500)}function hasHxml(r){var e=_0x1749c9;try{var t,o=_createForOfIteratorHelper(fs[e(496)](r,{withFileTypes:!0}));try{for(o.s();!(t=o.n()).done;){var n=t[e(395)],a=path.join(r,n[e(415)]);if(n[e(442)]()&&n.name[e(501)](e(507))||n[e(423)]()&&n[e(415)]!==e(479)&&hasHxml(a))return!0}}catch(r){o.e(r)}finally{o.f()}}catch(r){logger[e(509)](e(473),r)}return!1}function moveFiles(n,a){var c=_0x1749c9;try{fs[c(471)](a,{recursive:!0}),fs[c(496)](n,{withFileTypes:!0})[c(520)](function(r){var e=c,t=path[e(497)](n,r.name),o=path.join(a,r[e(415)]);r.isFile()?fs[e(469)](t,o):r[e(423)]()&&r.name!==e(479)&&moveFiles(t,o)})}catch(r){logger.error("Moving files error:",r)}}function handleResolveAlias(r,e){var t,o=_0x1749c9,n=_createForOfIteratorHelper(Object[o(454)](e).sort(function(r,e){var t=o;return e[t(466)]-r[t(466)]}));try{for(n.s();!(t=n.n()).done;){var a,c,i,s=t[o(395)];if(s[o(501)]("/*")&&e[s][o(501)]("/*"))if(r.startsWith(s.slice(0,-1))||r===s.slice(0,-1))return a=e[s].slice(0,-1),c=r[o(481)](s.length-1),i=(i=path[o(497)](a,c)[o(400)](/\\/g,"/"))[o(370)]("/")?i:"/"+i}}catch(r){n.e(r)}finally{n.f()}return r}function getEntryPkgPath(){var r,e=_0x1749c9,t=getProjectInfo()[e(435)],o=readJsonFile(path[e(404)](t,e(513)));if(0<(null==o||null==(r=o[e(465)])?void 0:r[e(466)]))return path[e(497)](t,o[e(465)][0][e(470)]);logger[e(401)](e(392))}function deepMerge(r){for(var e=_0x1749c9,t=arguments[e(466)],o=new Array(1<t?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(!o[e(466)])return r;var a=o[e(379)]();if(!a)return deepMerge[e(472)](void 0,[r][e(378)](o));for(var c=0,i=Object.keys(a);c<i[e(466)];c++){var s=i[c],f=a[s];isObject(f)?(null==r[s]&&(r[s]={}),deepMerge(r[s],f)):void 0!==f&&(r[s]=f)}return deepMerge[e(472)](void 0,[r].concat(o))}function isObject(r){var e=_0x1749c9;return Object.prototype[e(377)].call(r)===e(494)}function getIdeBinPath(){var r=_0x1749c9,e=null==(e=process[r(450)][r(398)]||process[r(450)][r(449)])?void 0:e[r(437)](";")[0][r(421)](),t=e||r(414),e=e||r(376);return isOSX()?t:e}function adjustPathByPlatform(r){return isOSX()?r:'"'.concat(r,'"')}function _0x6aba(){var r=["UNI","modules","length"," is not found","return","copyFileSync","srcPath","mkdirSync","apply","find Hxml error:","ascf_src","ascf","serve","17607890FNSaSu","test","node_modules","ERROR: Write JSON file failed: ","slice","ascf/ascf_src","logJsonStr","sdk","disableSubpackages","src","getHdcPath","ascfRoot","@@iterator","existsSync","11428968xYoUyL","isArray","main","[object Object]","clearResource","readdirSync","join","utf8","RAWFILE_DIR","darwin","endsWith","hdc","8012445jLHPxR","parse","string","hvigor",".hxml","watch","error","ascf.config.json","true","bundleName","build-profile.json5","signPwd","Map","development","hdc.exe","skipApiValidator","parser","forEach","swc","startsWith","lineNumber","9yHMJvj","utf-8","json5","number","C:\\Program Files\\Huawei\\DevEco Studio\\bin","toString","concat","shift","module.json5","undefined","isOSX","constructor","5090KsLgRB","node","debug","245406ThTJca","./config","win32","default","includes","getEntryPkgPath error, build-profile.json5 file modules is null","configs is: ","1880WpwsLI","value","hasOwnProperty","48VoVEHX","DevEco Studio","exec cmd error","replace","fatal","columnNumber","next","resolve","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","tools","hasHxml","projectCfg","writeFileSync","getModuleNames","Arguments","templateHoist","rimraf","/Applications/DevEco-Studio.app/Contents/tools","name","projectRoot","Set","cwd","false","getEntryPkgPath","trim","bin","isDirectory","getNodePath","hvigorw","NODE_ENV","node.exe","configs","getBundleName","deviceList","73219JuKjeW","module","openharmony","4829FzWuTs","projectPath","stringify","split","Object","yes","***","readFileSync","isFile","readJsonFile","call","src/main/resources/rawfile","babel","8yIvujO","89592GHOvwH","DEVECO_DIR","env","writeJsonFile","AppScope","common-utils","keys","map","ascf_build","from","* @dcloudio","getHvigorwPath","handleResolveAlias","sync","./log4js.js","execSync"];return(_0x6aba=function(){return r})()}function getPath(){for(var r=_0x1749c9,e=getIdeBinPath(),t=arguments[r(466)],o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return adjustPathByPlatform(path[r(497)][r(472)](path,[e][r(378)](o)))}exports[_0x1749c9(483)]=logJsonStr,exports.initConfigs=function(r,e){var t=_0x1749c9,o=(initOptions(e),getProjectInfo()),n=e[t(508)]||e[t(476)]||void 0!==e.mode&&"production"!==e.mode;process[t(450)][t(426)]&&!n||(process[t(450)][t(426)]=n?t(516):"production"),deepMerge(configs,o[t(408)],e),process[t(450)][t(495)]=n||configs.clear?t(439):"no",configs[t(519)]=configs[t(521)]?t(521):t(446),void 0===configs[t(412)]&&fs[t(490)](path.resolve(r,"ascf/ascf_src/base.hxml"))&&(configs.templateHoist=!0),configs[t(412)]=!!configs.templateHoist,configs[t(518)]=n||configs[t(518)]!==t(419)&&configs.skipApiValidator,configs.disableSubpackages=configs[t(476)]||(void 0===configs[t(485)]?!!n:configs.disableSubpackages),fixUniapp(r,configs),logger[t(386)](t(393)[t(378)](logJsonStr(configs)))},exports[_0x1749c9(495)]=function(r){var o=_0x1749c9;return Promise.all(r[o(455)](function(e){var t=o;if(fs[t(490)](e))return new Promise(function(r){rimraf[t(461)](e),r()})}))},exports[_0x1749c9(443)]=readJsonFile,exports[_0x1749c9(451)]=writeJsonFile,exports[_0x1749c9(382)]=isOSX,exports[_0x1749c9(407)]=hasHxml,exports.moveFiles=moveFiles,exports[_0x1749c9(460)]=handleResolveAlias,exports[_0x1749c9(420)]=getEntryPkgPath,exports.deepMerge=deepMerge,exports.execSafe=function(r){var e,t=_0x1749c9,o=1<arguments[t(466)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(e=execSync(r,o))?void 0:e[t(377)](t(498))}catch(r){logger.warn(t(399),r)}},exports[_0x1749c9(410)]=function(){var r,e,t=_0x1749c9,o=getEntryPkgPath(),o=path[t(497)](o,t(486),t(493),t(380));if(fs[t(490)](o))return e=fs[t(441)](o,t(373)),{name:null==(e=json5[t(504)](e))||null==(r=e[t(432)])?void 0:r[t(415)],entryAbility:null==e||null==(r=e[t(432)])||null==(r=r.abilities)?void 0:r.map(function(r){return r[t(415)]})};throw new Error(""[t(378)](o,t(467)))},exports[_0x1749c9(429)]=function(){var r,e=_0x1749c9,t=getProjectInfo()[e(435)],t=path[e(497)](t,e(452),"app.json5");if(fs.existsSync(t))return r=fs[e(441)](t,"utf-8"),null==(r=json5[e(504)](r))||null==(r=r.app)?void 0:r[e(512)];throw new Error(""[e(378)](t,e(467)))},exports[_0x1749c9(424)]=function(){var r=_0x1749c9,e=getIdeBinPath(),e=path[r(497)](e,"..",r(406),r(385));r(385);return adjustPathByPlatform(isOSX()?path[r(497)](e,r(385)):path[r(497)](e,r(427)))},exports[_0x1749c9(459)]=function(){var r=_0x1749c9;return getPath("..",r(406),r(506),r(422),r(425))},exports[_0x1749c9(487)]=function(){var r=_0x1749c9;return getPath("..",r(484),r(390),r(433),"toolchains",process.platform===r(389)?r(517):r(502))};
1
+ function _0x2577(){var e=["2Hxnlyg","logJsonStr","parse json file error at ","deviceId","app","mkdirSync","map","ascfRoot","***","sdk",".hxml","win32","node","skipApiValidator","ascf/ascf_src","modules","includes","Moving files error:","isFile","development","deepMerge","getBundleName","../ascf-base","test","replace","getProjectInfo","720540KVBLoQ","ascf_src","parser","[object Object]","configs","signPwd","readFileSync","keys","common-utils","fatal","slice","disableSubpackages","done","hdc.exe","2509806XfTXrG","production","copyFileSync","abilities","tools","app.json5","undefined","28NxWMjf","serve","join","getLogger","Set","Arguments","next","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","iterator","1550RaThtL","value","getHdcPath","existsSync","isOSX","src/main/resources/rawfile","handleResolveAlias","path","sync","ascf","shift","endsWith","bin","columnNumber","304481sAMFsC","deviceList","44763IHBXwn","Object","env","platform","name","@@iterator","number","183155aBKZmK","UNI","getEntryPkgPath","forEach","build-profile.json5","getDevEcoToolsDir","toString","execSafe","ascf/ascf_src/base.hxml","return","templateHoist","length","swc","ascf.config.json","json5","initConfigs","RAWFILE_DIR","call","87989PXzfso","4028368qsvnrB","projectCfg","srcPath","isDirectory","./log4js.js","false","all","projectPath","hdc","resolve","projectRoot","apply","isArray","getEntryPkgPath error, build-profile.json5 file modules is null","configs is: ","constructor","node.exe","utf-8","parse","TOOLKIT_PATH","toolchains","ascf/ascf_src/common/vendor.js"," is not found","utf8","true","clear","getHvigorwPath","module","node_modules","yes","default","writeFileSync","NODE_ENV","debug","rmSync","src","lineNumber","concat","bin/node","7MmiWhv","stringify"];return(_0x2577=function(){return e})()}var _0x110889=_0x2e4c;function _createForOfIteratorHelper(e,r){var t,n,o,i,a=_0x2e4c,s=a(267)!=typeof Symbol&&e[Symbol[a(276)]]||e[a(159)];if(s)return o=!(n=!0),{s:function(){s=s[a(178)](e)},n:function(){var e=a,r=s[e(274)]();return n=r[e(259)],r},e:function(e){o=!0,t=e},f:function(){var e=a;try{n||null==s[e(170)]||s[e(170)]()}finally{if(o)throw t}}};if(Array[a(192)](e)||(s=_unsupportedIterableToArray(e))||r&&e&&a(160)==typeof e.length)return s&&(e=s),i=0,{s:r=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r};throw new TypeError(a(275))}function _unsupportedIterableToArray(e,r){var t,n=_0x2e4c;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):(t={}[n(167)].call(e)[n(257)](8,-1),"Map"===(t=n(155)===t&&e[n(195)]?e[n(195)].name:t)||n(272)===t?Array.from(e):n(273)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(244)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){(null==r||r>e[_0x2e4c(172)])&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}(()=>{for(var e=_0x2e4c,r=_0x2577();;)try{if(335073==+parseInt(e(152))*(-parseInt(e(221))/2)+-parseInt(e(154))/3+-parseInt(e(268))/4*(-parseInt(e(161))/5)+-parseInt(e(261))/6+-parseInt(e(219))/7*(parseInt(e(180))/8)+parseInt(e(247))/9+-parseInt(e(138))/10*(-parseInt(e(179))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require(_0x110889(145)),JSON5=require(_0x110889(175)),os=require("os"),json5=require("json5"),log4js=require(_0x110889(184)),_require=require("./config"),configs=_require[_0x110889(251)],_require2=require(_0x110889(243)),getDevEcoToolsDir=_require2[_0x110889(166)],execSafe=_require2[_0x110889(168)],logger=log4js[_0x110889(271)](_0x110889(255)),curProjectPath=null,curProjectInfo=null;function getProjectInfo(){var e,r,t,n=_0x110889;return process[n(156)].projectRoot===curProjectPath&&curProjectInfo||(r=readProjectCfgJson(e=process[n(156)][n(190)]||process.cwd())||{},t=path[n(189)](e,n(235)),t=r.ascfRoot?path[n(189)](t,r[n(228)]):t,n=path[n(189)](e,"ascf","ascf_build"),curProjectInfo={projectPath:curProjectPath=e,projectCfg:r,ascfSrcPath:t,ascfBuildPath:n}),curProjectInfo}exports[_0x110889(246)]=getProjectInfo,exports[_0x110889(177)]=_0x110889(143),exports[_0x110889(199)]=path.join(__dirname,"..","..");var SECURE_KEYS=[_0x110889(224),_0x110889(153),_0x110889(252)];function logJsonStr(e){var n=_0x110889;return JSON[n(220)](e,function(e,r){var t=n;return SECURE_KEYS[t(237)](e)?null!=r?t(229):void 0:r})}function isUniapp(e){var r=_0x110889,e=path[r(189)](e,r(201));if(fs[r(141)](e))return(null==(e=fs[r(253)](e,r(203)))?void 0:e[r(237)]("* @dcloudio"))||(null==e?void 0:e.includes(r(162)))}function fixUniapp(e,r){var t=_0x110889;isUniapp(e)&&(r[t(258)]=!1)}exports[_0x110889(222)]=logJsonStr;var notSpecified=function(e){return null==e||void 0===e||e===_0x110889(267)};function initOptions(e){var r,t=_0x110889;for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]===t(185)&&(e[r]=!1),e[r]===t(204))&&(e[r]=!0)}function readJsonFile(r){var t=_0x110889;if(!fs[t(141)](r))return{};var e={};try{e=JSON5[t(198)](fs[t(253)](r,t(197))[t(167)]()||"{}")}catch(e){throw new Error(t(223).concat(r,":").concat(e[t(216)],":").concat(e[t(151)]," "))}return e}function writeJsonFile(e,r){var t=_0x110889;try{fs[t(211)](e,JSON[t(220)](r,null,2))}catch(e){throw"ERROR: Write JSON file failed: "[t(217)](e)}}function readProjectCfgJson(e){var r,t=_0x110889,e=path[t(270)](e,t(147),t(248),t(174));return r=fs.existsSync(e)?JSON.parse(fs[t(253)](e)[t(167)]()):r}function isOSX(){return"darwin"===os[_0x110889(157)]()}function hasHxml(e){var r=_0x110889;try{var t,n=_createForOfIteratorHelper(fs.readdirSync(e,{withFileTypes:!0}));try{for(n.s();!(t=n.n())[r(259)];){var o=t.value,i=path[r(270)](e,o[r(158)]);if(o[r(239)]()&&o[r(158)].endsWith(r(231))||o[r(183)]()&&"node_modules"!==o.name&&hasHxml(i))return!0}}catch(e){n.e(e)}finally{n.f()}}catch(e){logger.error("find Hxml error:",e)}return!1}function moveFiles(o,i){var a=_0x110889;try{fs[a(226)](i,{recursive:!0}),fs.readdirSync(o,{withFileTypes:!0})[a(164)](function(e){var r=a,t=path.join(o,e[r(158)]),n=path.join(i,e.name);e.isFile()?fs[r(263)](t,n):e[r(183)]()&&e.name!==r(208)&&moveFiles(t,n)})}catch(e){logger.error(a(238),e)}}function handleResolveAlias(e,r){var t,n=_0x110889,o=_createForOfIteratorHelper(Object.keys(r).sort(function(e,r){var t=_0x2e4c;return r[t(172)]-e[t(172)]}));try{for(o.s();!(t=o.n())[n(259)];){var i,a,s,c=t[n(139)];if(c.endsWith("/*")&&r[c][n(149)]("/*"))if(e.startsWith(c[n(257)](0,-1))||e===c.slice(0,-1))return i=r[c][n(257)](0,-1),a=e[n(257)](c[n(172)]-1),s=(s=path.join(i,a)[n(245)](/\\/g,"/")).startsWith("/")?s:"/"+s}}catch(e){o.e(e)}finally{o.f()}return e}function getEntryPkgPath(){var e,r=_0x110889,t=getProjectInfo()[r(187)],n=readJsonFile(path.resolve(t,r(165)));if(0<(null==n||null==(e=n[r(236)])?void 0:e[r(172)]))return path[r(270)](t,n[r(236)][0][r(182)]);logger[r(256)](r(193))}function _0x2e4c(e,r){var t=_0x2577();return(_0x2e4c=function(e,r){return t[e-=138]})(e,r)}function deepMerge(e){for(var r=_0x110889,t=arguments[r(172)],n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n[r(172)])return e;var i=n[r(148)]();if(i)for(var a=0,s=Object[r(254)](i);a<s[r(172)];a++){var c=s[a],f=i[c];isObject(f)?(null==e[c]&&(e[c]={}),deepMerge(e[c],f)):void 0!==f&&(e[c]=f)}return deepMerge[r(191)](void 0,[e].concat(n))}function isObject(e){var r=_0x110889;return Object.prototype[r(167)][r(178)](e)===r(250)}function getIdeBinPath(){return getDevEcoToolsDir()}function adjustPathByPlatform(e){var r=_0x110889;return isOSX()?e:'"'[r(217)](e,'"')}function getPath(){for(var e=_0x110889,r=getIdeBinPath(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return adjustPathByPlatform(path[e(270)][e(191)](path,[r][e(217)](n)))}exports.getHvigorStartConfigs=function(e,r){var t=_0x110889,n=deepMerge({},r);return n[t(258)]=notSpecified(null==r?void 0:r.disableSubpackages)?e===t(213):null==r?void 0:r[t(258)],fixUniapp(getProjectInfo()[t(187)],n),n},exports[_0x110889(176)]=function(e,r){var t=_0x110889,n=(initOptions(r),getProjectInfo()),o=r.watch||r[t(269)]||void 0!==r.mode&&r.mode!==t(262),n=(process[t(156)][t(212)]&&!o||(process[t(156)][t(212)]=t(o?240:262)),deepMerge({},n[t(181)],r));deepMerge(configs,n),process[t(156)].clearResource=o||configs[t(205)]?t(209):"no",configs[t(249)]=configs[t(173)]?t(173):"babel",void 0===n[t(171)]&&fs[t(141)](path.resolve(e,t(169)))&&(configs[t(171)]=!0),configs[t(171)]=!!configs[t(171)],configs.skipApiValidator=o||configs.skipApiValidator!==t(185)&&configs[t(234)],configs[t(258)]=configs[t(269)]||(notSpecified(configs[t(258)])?!!o:configs[t(258)]),o&&notSpecified(n[t(258)])&&fixUniapp(e,configs),logger[t(213)](t(194).concat(logJsonStr(configs)))},exports[_0x110889(214)]=function(e){var r=_0x110889;return!!fs[r(141)](e)&&rimraf[r(146)](e)},exports.clearResource=function(e){var n=_0x110889;return Promise[n(186)](e[n(227)](function(r){var t=n;if(fs[t(141)](r))return new Promise(function(e){rimraf[t(146)](r),e()})}))},exports.readJsonFile=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x110889(142)]=isOSX,exports.hasHxml=hasHxml,exports.moveFiles=moveFiles,exports[_0x110889(144)]=handleResolveAlias,exports[_0x110889(163)]=getEntryPkgPath,exports[_0x110889(241)]=deepMerge,exports[_0x110889(168)]=execSafe,exports.getModuleNames=function(){var e,r,t=_0x110889,n=getEntryPkgPath(),n=path[t(270)](n,t(215),"main","module.json5");if(fs.existsSync(n))return r=fs.readFileSync(n,t(197)),{name:null==(r=json5[t(198)](r))||null==(e=r[t(207)])?void 0:e[t(158)],entryAbility:null==r||null==(e=r.module)||null==(e=e[t(264)])?void 0:e.map(function(e){return e.name})};throw new Error(""[t(217)](n,t(202)))},exports[_0x110889(242)]=function(){var e,r=_0x110889,t=getProjectInfo()[r(187)],t=path.join(t,"AppScope",r(266));if(fs[r(141)](t))return e=fs[r(253)](t,"utf-8"),null==(e=json5.parse(e))||null==(e=e[r(225)])?void 0:e.bundleName;throw new Error("".concat(t,r(202)))},exports.getNodePath=function(){var e=_0x110889,r=getIdeBinPath(),r=path[e(270)](r,"..","tools",e(233));return adjustPathByPlatform(isOSX()?path[e(270)](r,e(218)):path[e(270)](r,e(196)))},exports[_0x110889(206)]=function(){var e=_0x110889;return getPath("..",e(265),"hvigor",e(150),"hvigorw")},exports[_0x110889(140)]=function(){var e=_0x110889;return getPath("..",e(230),e(210),"openharmony",e(200),process[e(157)]===e(232)?e(260):e(188))};
@@ -1 +1 @@
1
- var _0x210ff4=_0x189e;function _0x4c28(){var e=["concat","satisfies","isAscfHspSatisfied","WARNING: ","get ohpm from deveco dir.",'WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"./log4js.js","3770704KrESyr","join","toString","289220pIeTOA","396104tvVcGY","C:\\Program Files\\Huawei\\DevEco Studio\\bin","length","versionCode","WARNING: ASCF Shared Library can be upgraded.","child_process","5EFHKiA","package.json","9TqTtQB","toLowerCase","com.huawei.hms.ascfruntime","debug","899544tRHxzj","latest","module.json5","latest:","1759464vhxPxk","getEntryPkgPath","1330626YMUxpZ","info","dependencies","INFO: ASCF Shared Library can be upgraded.","fatal","version-check","execSync","ERROR: ASCF shared library version is too low,","isOSX","env","191903nfZDUL","update to ","split"," is not exists, please ensure DevEco Studio installed","version","filter",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"npm view @atomicservice/ascf-toolkit version"," at entry/src/main/module.json5.","WARN: ASCF shared library not found.","oh-package.json5","getLogger","readJsonFile","bundleName","path"," info @atomicservice/ascfapi","src","ohpm","warn","isLatestAscfHar","TOOLKIT_PATH","main","trim"," does not depend on ASCF Shared Library. Select a project that does, or create a new one."];return(_0x4c28=function(){return e})()}(()=>{for(var e=_0x189e,t=_0x4c28();;)try{if(155314==-parseInt(e(393))+parseInt(e(364))/2+parseInt(e(377))/3+-parseInt(e(365))/4+-parseInt(e(371))/5*(-parseInt(e(383))/6)+parseInt(e(381))/7+parseInt(e(361))/8*(-parseInt(e(373))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require("./utils"),path=require(_0x210ff4(407)),_require=require("semver"),satisfies=_require[_0x210ff4(418)],_require2=require(_0x210ff4(370)),execSync=_require2[_0x210ff4(389)],log4js=require(_0x210ff4(360)),fs=require("fs"),logger=log4js[_0x210ff4(404)](_0x210ff4(388));function _0x189e(e,t){var r=_0x4c28();return(_0x189e=function(e,t){return r[e-=360]})(e,t)}function getOhpmFile(){var e=_0x210ff4,t=(logger[e(376)](e(421)),null==(t=process.env["DevEco Studio"]||process[e(392)].DEVECO_DIR)?void 0:t[e(395)](";")[0].trim()),r=t||"/Applications/DevEco-Studio.app/Contents/tools",t=t||e(366),r=utils[e(391)]()?r:t;return path.join(r,"..","tools",e(410),"bin",e(410))}exports.isLatestAscfToolkit=function(){var e=_0x210ff4,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=utils[e(405)](path[e(362)](utils[e(413)],e(372)))[e(397)],o=execSync(e(400),{timeout:5e3}).toString().trim();r!==o&&(t?logger[e(411)](e(422)[e(417)](o,'"')):logger[e(384)](e(399)[e(417)](o,'"')))},exports[_0x210ff4(412)]=function(){var e,t,r=_0x210ff4,o=0<arguments[r(367)]&&void 0!==arguments[0]&&arguments[0],i=path.join(utils.getEntryPkgPath(),r(403)),s=utils[r(405)](i)[r(385)]["@atomicservice/ascfapi"];s?(e=getOhpmFile(),fs.existsSync(e)?(t=utils[r(391)]()?e:'"'[r(417)](e,'"'),t=execSync(""[r(417)](t,r(408)),{timeout:5e3})[r(363)]()[r(395)](r(380))[1][r(395)]("\n")[0][r(415)](),satisfies(t,s)||s[r(374)]()===r(378)||(o?logger[r(411)](r(369)):logger[r(384)](r(386)))):logger[r(411)]("DevEco Studio ohpm "[r(417)](e,r(396)))):logger[r(411)](r(420)[r(417)](i,r(416)))},exports[_0x210ff4(419)]=function(e){var r=_0x210ff4,t=(logger[r(376)]("get project entry module.json."),path.join(utils[r(382)](),r(409),r(414),r(379))),t=null==(t=utils[r(405)](t).module)?void 0:t[r(385)],t=null==t?void 0:t[r(398)](function(e){var t=r;return e[t(406)]===t(375)});return!t||t.length<=0?(logger.warn(r(402)),!1):!(Number(t[0][r(368)])<Number(e)&&(logger[r(387)](r(390)+r(394)[r(417)](e,r(401))),1))};
1
+ var _0x205156=_0x19e6,utils=((()=>{for(var e=_0x19e6,r=_0x5f0f();;)try{if(869036==-parseInt(e(464))*(parseInt(e(451))/2)+-parseInt(e(465))/3*(-parseInt(e(448))/4)+-parseInt(e(484))/5*(-parseInt(e(445))/6)+parseInt(e(447))/7+-parseInt(e(483))/8*(-parseInt(e(453))/9)+parseInt(e(470))/10*(parseInt(e(476))/11)+-parseInt(e(480))/12*(parseInt(e(481))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require(_0x205156(436))),path=require(_0x205156(478)),_require=require(_0x205156(461)),satisfies=_require.satisfies,_require2=require(_0x205156(479)),execSync=_require2[_0x205156(426)],log4js=require(_0x205156(459)),fs=require("fs"),_require3=require(_0x205156(443)),getDevEcoToolsDir=_require3.getDevEcoToolsDir,logger=log4js.getLogger(_0x205156(474));function _0x5f0f(){var e=["trim","execSync","TOOLKIT_PATH","bundleName","get project entry module.json.","@atomicservice/ascfapi","getEntryPkgPath","fatal","WARN: ASCF shared library not found.","update to ","INFO: ASCF Shared Library can be upgraded.","./utils","package.json","existsSync","isOSX","dependencies","info"," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","../ascf-base","readJsonFile","34098hemAcn","module.json5","7136493PwQMBr","3438828dgsXRV","tools","WARNING: ASCF Shared Library can be upgraded.","764MdNCOd","concat","874179OravWD","WARNING: ","debug","warn","toLowerCase","split","./log4js.js","versionCode","semver","bin","join","313gduehf","3UfvYMs","ohpm","isLatestAscfHar","toString","filter","280160AdJKqJ","version","length","DevEco Studio ohpm ","version-check"," is not exists, please ensure DevEco Studio installed","341IDNLQH","src","path","child_process","40173324tvETYI","13IzeEbd","com.huawei.hms.ascfruntime","48fiOvwT","885Qwlizp",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"npm view @atomicservice/ascf-toolkit version"];return(_0x5f0f=function(){return e})()}function _0x19e6(e,r){var t=_0x5f0f();return(_0x19e6=function(e,r){return t[e-=425]})(e,r)}function getOhpmFile(){var e=_0x205156;return logger[e(455)]("get ohpm from deveco dir."),path[e(463)](getDevEcoToolsDir(),"..",e(449),e(466),e(462),"ohpm")}exports.isLatestAscfToolkit=function(){var e=_0x205156,r=0<arguments[e(472)]&&void 0!==arguments[0]&&arguments[0],t=utils[e(444)](path[e(463)](utils[e(427)],e(437)))[e(471)],o=execSync(e(486),{timeout:5e3})[e(468)]()[e(425)]();t!==o&&(r?logger.warn('WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '.concat(o,'"')):logger[e(441)](e(485)[e(452)](o,'"')))},exports[_0x205156(467)]=function(){var e,r,t=_0x205156,o=0<arguments[t(472)]&&void 0!==arguments[0]&&arguments[0],i=path[t(463)](utils[t(431)](),"oh-package.json5"),s=utils[t(444)](i)[t(440)][t(430)];s?(e=getOhpmFile(),fs[t(438)](e)?(r=utils[t(439)]()?e:'"'[t(452)](e,'"'),r=execSync("".concat(r," info @atomicservice/ascfapi"),{timeout:5e3}).toString()[t(458)]("latest:")[1][t(458)]("\n")[0][t(425)](),satisfies(r,s)||"latest"===s[t(457)]()||(o?logger.warn(t(450)):logger.info(t(435)))):logger.warn(t(473)[t(452)](e,t(475)))):logger[t(456)](t(454)[t(452)](i,t(442)))},exports.isAscfHspSatisfied=function(e){var t=_0x205156,r=(logger[t(455)](t(429)),path[t(463)](utils[t(431)](),t(477),"main",t(446))),r=null==(r=utils.readJsonFile(r).module)?void 0:r.dependencies,r=null==r?void 0:r[t(469)](function(e){var r=t;return e[r(428)]===r(482)});return!r||r[t(472)]<=0?(logger.warn(t(433)),!1):!(Number(r[0][t(460)])<Number(e)&&(logger[t(432)]("ERROR: ASCF shared library version is too low,"+t(434)[t(452)](e," at entry/src/main/module.json5.")),1))};
package/lib/index.d.ts CHANGED
@@ -19,6 +19,6 @@ export declare function convert(option: ConvertOption): Promise<void>
19
19
 
20
20
  export declare function getAscfToolkitDirname(): string
21
21
 
22
- export declare function quickGenerateSubpackage(): Promise<void>
22
+ export declare function quickGenerateSubpackage(buildMode, opts): Promise<void>
23
23
 
24
24
  export declare function buildNpm(projectPath: String): void