@atomicservice/ascf-toolkit 1.0.1-beta.0 → 1.0.1

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 (53) hide show
  1. package/lib/ascf-compiler/appjson-loader.js +1 -1
  2. package/lib/ascf-compiler/chalk/bundle.cjs.js +1 -1
  3. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  4. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  5. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  6. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  7. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  8. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  9. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  10. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  11. package/lib/ascf-compiler/common/utils.js +1 -1
  12. package/lib/ascf-compiler/css-process-loader.js +1 -1
  13. package/lib/ascf-compiler/extract-loader.js +1 -1
  14. package/lib/ascf-compiler/hcss-loader.js +1 -1
  15. package/lib/ascf-compiler/hjs-loader.js +1 -1
  16. package/lib/ascf-compiler/hxml-loader.js +1 -1
  17. package/lib/ascf-compiler/loader-utils.js +1 -1
  18. package/lib/ascf-compiler/path-process-loader.js +1 -1
  19. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  20. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  21. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  22. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  23. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  24. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  25. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  26. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  27. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  28. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  29. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  30. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  31. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  32. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  33. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  34. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  35. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  36. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  37. package/lib/ascf-converter/common/commonConfig.js +1 -1
  38. package/lib/ascf-converter/common/commonUtils.js +1 -1
  39. package/lib/ascf-converter/common/textDocument.js +1 -1
  40. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  41. package/lib/ascf-converter/features/converter.js +1 -1
  42. package/lib/ascf-converter/features/fileHandle.js +1 -1
  43. package/lib/ascf-converter/features/transformReport.js +1 -1
  44. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  45. package/lib/ascf-converter/parse/babelParser.js +1 -1
  46. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  47. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  48. package/lib/bin/ascf.js +1 -1
  49. package/lib/common/logger-plugin.js +1 -1
  50. package/lib/common/remove-strict-mode-plugin.js +1 -1
  51. package/lib/common/utils.js +1 -1
  52. package/lib/index.js +1 -1
  53. package/package.json +1 -1
@@ -1 +1 @@
1
- var _0x12e1f6=_0x365e;function _typeof(t){var e=_0x365e;return(_typeof=e(576)==typeof Symbol&&e(480)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=e;return t&&r(576)==typeof Symbol&&t[r(545)]===Symbol&&t!==Symbol.prototype?r(480):typeof t})(t)}function _regeneratorRuntime(){var s=_0x365e;_regeneratorRuntime=function(){return c};var f,c={},t=Object[s(527)],p=t[s(509)],h=Object[s(568)]||function(t,r,e){var n=s;t[r]=e[n(467)]},r=s(576)==typeof Symbol?Symbol:{},i=r[s(559)]||s(464),e=r[s(438)]||"@@asyncIterator",n=r[s(488)]||s(436);function o(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o,i,a,c,u=s,r=r&&r.prototype instanceof d?r:d,r=Object[u(551)](r[u(527)]),n=new S(n||[]);return h(r,u(498),{value:(o=t,i=e,a=n,c=l,function(t,r){var e=_0x365e;if(c===_)throw Error(e(546));if(c===y){if(e(460)===t)throw r;return{value:f,done:!0}}for(a[e(447)]=t,a[e(561)]=r;;){var n=a[e(446)];if(n){n=function t(r,e){var n=s,o=e[n(447)],i=r[n(559)][o];if(i===f)return e[n(446)]=null,n(460)===o&&r[n(559)][n(461)]&&(e[n(447)]=n(461),e[n(561)]=f,t(r,e),n(460)===e[n(447)])||n(461)!==o&&(e[n(447)]=n(460),e[n(561)]=new TypeError(n(478)+o+n(558))),g;o=m(i,r.iterator,e.arg);if(n(460)===o.type)return e[n(447)]="throw",e[n(561)]=o.arg,e[n(446)]=null,g;i=o[n(561)];return i?i[n(449)]?(e[r.resultName]=i[n(467)],e[n(468)]=r[n(571)],n(461)!==e[n(447)]&&(e[n(447)]="next",e[n(561)]=f),e[n(446)]=null,g):i:(e.method=n(460),e[n(561)]=new TypeError(n(510)),e[n(446)]=null,g)}(n,a);if(n){if(n===g)continue;return n}}if(e(468)===a[e(447)])a.sent=a[e(532)]=a[e(561)];else if(e(460)===a[e(447)]){if(c===l)throw c=y,a[e(561)];a.dispatchException(a[e(561)])}else e(461)===a[e(447)]&&a.abrupt("return",a.arg);c=_;n=m(o,i,a);if(e(505)===n[e(548)]){if(c=a[e(449)]?y:v,n[e(561)]===g)continue;return{value:n[e(561)],done:a.done}}e(460)===n[e(548)]&&(c=y,a.method=e(460),a.arg=n[e(561)])}})}),r}function m(t,r,e){var n=s;try{return{type:n(505),arg:t[n(450)](r,e)}}catch(t){return{type:n(460),arg:t}}}c[s(493)]=u;var l=s(550),v=s(481),_=s(489),y=s(453),g={};function d(){}function a(){}function x(){}var r={},b=(o(r,i,function(){return this}),Object[s(519)]),b=b&&b(b(F([]))),C=(b&&b!==t&&p[s(450)](b,i)&&(r=b),x[s(527)]=d[s(527)]=Object.create(r));function w(t){var r=s;[r(468),"throw",r(461)][r(540)](function(r){o(t,r,function(t){return this[_0x365e(498)](r,t)})})}function P(c,u){var r;h(this,s(498),{value:function(e,n){function t(){return new u(function(t,r){!function r(t,e,n,o){var i,a=_0x365e,t=m(c[t],c,e);if(a(460)!==t[a(548)])return(e=(i=t[a(561)]).value)&&a(471)==_typeof(e)&&p[a(450)](e,a(439))?u[a(466)](e[a(439)])[a(465)](function(t){r(a(468),t,n,o)},function(t){r(a(460),t,n,o)}):u[a(466)](e).then(function(t){i[a(467)]=t,n(i)},function(t){return r(a(460),t,n,o)});o(t[a(561)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function j(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(560)]=t[1]),2 in t&&(e[r(443)]=t[2],e[r(497)]=t[3]),this.tryEntries.push(e)}function O(t){var r=s,e=t[r(514)]||{};e[r(548)]=r(505),delete e.arg,t[r(514)]=e}function S(t){var r=s;this[r(482)]=[{tryLoc:r(569)}],t[r(540)](j,this),this.reset(!0)}function F(e){var n=s;if(e||""===e){var o,t=e[i];if(t)return t[n(450)](e);if(n(576)==typeof e[n(468)])return e;if(!isNaN(e[n(544)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(544)];)if(p.call(e,o))return t[r(467)]=e[o],t[r(449)]=!1,t;return t.value=f,t.done=!0,t}).next=t}throw new TypeError(_typeof(e)+n(579))}return a[s(527)]=x,h(C,s(545),{value:x,configurable:!0}),h(x,s(545),{value:a,configurable:!0}),a[s(525)]=o(x,n,s(459)),c[s(564)]=function(t){var r=s,t=r(576)==typeof t&&t.constructor;return!!t&&(t===a||r(459)===(t.displayName||t[r(475)]))},c[s(516)]=function(t){var r=s;return Object.setPrototypeOf?Object[r(587)](t,x):(t[r(463)]=x,o(t,n,"GeneratorFunction")),t[r(527)]=Object[r(551)](C),t},c[s(501)]=function(t){return{__await:t}},w(P.prototype),o(P[s(527)],e,function(){return this}),c[s(542)]=P,c.async=function(t,r,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new P(u(t,r,e,n),o));return c[i(564)](r)?a:a[i(468)]().then(function(t){var r=i;return t[r(449)]?t[r(467)]:a[r(468)]()})},w(C),o(C,n,s(477)),o(C,i,function(){return this}),o(C,s(547),function(){return s(511)}),c[s(583)]=function(t){var r,n=s,o=Object(t),i=[];for(r in o)i[n(565)](r);return i[n(572)](),function t(){for(var r=n;i[r(544)];){var e=i[r(507)]();if(e in o)return t[r(467)]=e,t[r(449)]=!1,t}return t[r(449)]=!0,t}},c[s(570)]=F,S[s(527)]={constructor:S,reset:function(t){var r=s;if(this[r(484)]=0,this[r(468)]=0,this[r(581)]=this[r(532)]=f,this[r(449)]=!1,this.delegate=null,this[r(447)]="next",this[r(561)]=f,this[r(482)].forEach(O),!t)for(var e in this)"t"===e[r(534)](0)&&p.call(this,e)&&!isNaN(+e[r(513)](1))&&(this[e]=f)},stop:function(){var t=s,r=(this[t(449)]=!0,this[t(482)][0][t(514)]);if(t(460)===r[t(548)])throw r[t(561)];return this[t(500)]},dispatchException:function(n){var o=s;if(this[o(449)])throw n;var i=this;function t(t,r){var e=o;return a[e(548)]="throw",a[e(561)]=n,i[e(468)]=t,r&&(i.method="next",i[e(561)]=f),!!r}for(var r=this[o(482)][o(544)]-1;0<=r;--r){var e=this[o(482)][r],a=e[o(514)];if(o(569)===e.tryLoc)return t("end");if(e.tryLoc<=this[o(484)]){var c=p[o(450)](e,"catchLoc"),u=p[o(450)](e,o(443));if(c&&u){if(this.prev<e[o(560)])return t(e.catchLoc,!0);if(this[o(484)]<e[o(443)])return t(e[o(443)])}else if(c){if(this[o(484)]<e[o(560)])return t(e[o(560)],!0)}else{if(!u)throw Error(o(585));if(this[o(484)]<e[o(443)])return t(e[o(443)])}}}},abrupt:function(t,r){for(var e=s,n=this[e(482)][e(544)]-1;0<=n;--n){var o=this[e(482)][n];if(o[e(483)]<=this[e(484)]&&p.call(o,e(443))&&this[e(484)]<o[e(443)]){var i=o;break}}var a=(i=i&&(e(508)===t||e(440)===t)&&i.tryLoc<=r&&r<=i[e(443)]?null:i)?i[e(514)]:{};return a.type=t,a[e(561)]=r,i?(this[e(447)]=e(468),this[e(468)]=i[e(443)],g):this[e(578)](a)},complete:function(t,r){var e=s;if(e(460)===t[e(548)])throw t.arg;return e(508)===t[e(548)]||e(440)===t[e(548)]?this.next=t[e(561)]:"return"===t[e(548)]?(this[e(500)]=this[e(561)]=t[e(561)],this[e(447)]="return",this[e(468)]=e(536)):e(505)===t[e(548)]&&r&&(this.next=r),g},finish:function(t){for(var r=s,e=this[r(482)][r(544)]-1;0<=e;--e){var n=this[r(482)][e];if(n.finallyLoc===t)return this[r(578)](n[r(514)],n[r(497)]),O(n),g}},catch:function(t){for(var r=s,e=this.tryEntries.length-1;0<=e;--e){var n,o,i=this[r(482)][e];if(i[r(483)]===t)return n=i[r(514)],r(460)===n[r(548)]&&(o=n.arg,O(i)),o}throw Error(r(531))},delegateYield:function(t,r,e){var n=s;return this.delegate={iterator:F(t),resultName:r,nextLoc:e},"next"===this.method&&(this[n(561)]=f),g}},c}function asyncGeneratorStep(t,r,e,n,o,i,a){var c=_0x365e;try{var u=t[i](a),s=u[c(467)]}catch(t){return void e(t)}u[c(449)]?r(s):Promise[c(466)](s)[c(465)](n,o)}function _asyncToGenerator(u){return function(){var t=this,c=arguments;return new Promise(function(r,e){var n=_0x365e,o=u[n(582)](t,c);function i(t){asyncGeneratorStep(o,r,e,i,a,n(468),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,n(460),t)}i(void 0)})}}(()=>{for(var t=_0x365e,r=_0x5183();;)try{if(561863==-parseInt(t(496))+-parseInt(t(521))/2*(-parseInt(t(476))/3)+parseInt(t(538))/4*(-parseInt(t(589))/5)+-parseInt(t(441))/6*(-parseInt(t(448))/7)+parseInt(t(555))/8*(-parseInt(t(530))/9)+parseInt(t(479))/10+parseInt(t(445))/11*(-parseInt(t(524))/12))break;r.push(r.shift())}catch(t){r.push(r.shift())}})(),Object[_0x12e1f6(568)](exports,"__esModule",{value:!0}),exports[_0x12e1f6(437)]=exports[_0x12e1f6(567)]=exports[_0x12e1f6(584)]=void 0;var commonConfig_1=require(_0x12e1f6(580)),path=require(_0x12e1f6(494)),fs=require("fs"),commonUtils_1=require(_0x12e1f6(491)),_require=require(_0x12e1f6(492)),clearResource=_require[_0x12e1f6(517)];function confirmConverterFun(t,r){return _confirmConverterFun[_0x12e1f6(582)](this,arguments)}function _confirmConverterFun(){var t=_0x12e1f6;return(_confirmConverterFun=_asyncToGenerator(_regeneratorRuntime().mark(function t(e,n){var o,i;return _regeneratorRuntime().wrap(function(t){for(var r=_0x365e;;)switch(t[r(484)]=t[r(468)]){case 0:if(t.prev=0,o=path[r(466)](e[r(456)],r(557)),i=path[r(466)](e[r(456)],r(454)),fs[r(529)](i)||!fs.existsSync(o)||e[r(469)]){t[r(468)]=7;break}return t[r(473)]("return",{command:r(586)});case 7:return t.next=9,doConvert(e,n);case 9:return t[r(473)](r(461),t[r(581)]);case 10:t[r(468)]=16;break;case 12:return t[r(484)]=12,t.t0=t[r(533)](0),console[r(457)](t.t0),t[r(473)]("return",{command:r(566),errorMessage:t.t0[r(573)]});case 16:case"end":return t[r(552)]()}},t,null,[[0,12]])})))[t(582)](this,arguments)}function confirmConverterH5Fun(t,r){var e=_0x12e1f6,n=path[e(486)](t.outPath,t[e(537)]);try{return commonUtils_1[e(506)](n,"src",!0),commonUtils_1.copyDir(path[e(486)](__filename,e(577),e(535)),path[e(486)](n,e(535)),!1,!0),commonUtils_1[e(502)](t,path[e(486)](n,e(535))),{command:e(528)}}catch(t){return console[e(457)](t),{command:e(566),errorMessage:t.message}}}function checkConvertOutput(t,r){var e=_0x12e1f6,t=path.resolve(t),r=path.resolve(r);if(fs[e(529)](r))throw new Error(e(562)[e(554)](r,e(455)));if(r[e(458)](t+path[e(485)]))throw new Error(e(499))}function doConvert(t,r){return _doConvert[_0x12e1f6(582)](this,arguments)}function _doConvert(){var t=_0x12e1f6;return(_doConvert=_asyncToGenerator(_regeneratorRuntime()[t(516)](function t(e,r){var n,o,i;return _regeneratorRuntime().wrap(function(t){for(var r=_0x365e;;)switch(t[r(484)]=t[r(468)]){case 0:if(n=path[r(466)](e[r(520)],r(574)),process[r(575)][r(517)]===r(470))return t[r(468)]=4,clearResource([n]);t.next=4;break;case 4:return checkConvertOutput(e.inputPath,n),o=commonConfig_1.Applets[r(523)],t[r(484)]=6,commonUtils_1[r(506)](n,o),commonUtils_1[r(543)](n,e[r(456)]),i=path.join(n,o),"./"===o||""===o?(commonUtils_1.setOriginPtahObject(e.inputPath,i),commonUtils_1[r(541)](e[r(456)],i)):(commonUtils_1.setOriginPtahObject(path.join(e[r(456)],o),i),commonUtils_1.copyDir(path[r(486)](e[r(456)],o),i),commonUtils_1.copyConfigFiles(path[r(486)](e[r(456)]),n)),commonUtils_1[r(451)](),commonUtils_1[r(504)](path[r(486)](n,o),e),commonUtils_1[r(472)](path[r(486)](n)),"my"===commonConfig_1[r(522)][r(462)]&&commonUtils_1[r(495)](n,path.join(__filename,r(563))),t.abrupt(r(461),{command:r(528),folderUrl:n});case 18:return t.prev=18,t.t0=t[r(533)](6),console[r(457)](t.t0),removePromise(n)[r(487)](),t[r(473)]("return",{command:"failedTransform",errorMessage:t.t0[r(573)]});case 23:case r(536):return t[r(552)]()}},t,null,[[6,18]])})))[t(582)](this,arguments)}function _0x365e(t,r){var e=_0x5183();return(_0x365e=function(t,r){return e[t-=436]})(t,r)}function removePromise(i){return new Promise(function(o,t){fs.stat(i,function(t,r){var n=_0x365e;r.isDirectory()?fs[n(556)](i,function(t,r){var e=n,r=(r=r[e(553)](function(t){return path[e(486)](i,t)}))[e(553)](function(t){return removePromise(t)});Promise[e(452)](r)[e(465)](function(){fs[e(539)](i,o)})}):fs[n(503)](i,o)})})}function checkInputPathFun(t){var r=_0x12e1f6,t=path.resolve(t),e=checkMiniProgram(t);return{command:r(588),data:{returnCode:e,outPath:path.dirname(t)}}}function checkMiniProgram(t){var r=_0x12e1f6,e=!0,n=path[r(486)](t,"app.json");return e=fs[r(529)](n)&&identifyProgram(t)?e:!1}function identifyProgram(t){var r=_0x12e1f6;try{var e=path[r(486)](t,r(557)),n=JSON[r(515)](fs[r(474)](e).toString());if(n&&n[r(444)]&&Array[r(512)](n[r(444)])&&0<n.pages[r(544)])for(var o=getSrcRootPath(t),i=0,a=Object.keys(commonConfig_1[r(526)]);i<a[r(544)];i++){var c=a[i],u=path[r(486)](t,o,n.pages[0]+commonConfig_1.projectFileSuffix[c][r(442)]);if(fs.existsSync(u))return"wx"===c?commonConfig_1.Applets.appletType="tt":commonConfig_1[r(522)][r(462)]=c,!0}return!1}catch(t){return!1}}function _0x5183(){var t=["app.json","' method","iterator","catchLoc","arg","Output path ","../../","isGeneratorFunction","push","failedTransform","confirmConverterH5Fun","defineProperty","root","values","nextLoc","reverse","message","ascf/ascf_src","env","function","../lib","complete"," is not iterable","../common/commonConfig","sent","apply","keys","confirmConverterFun","try statement without catch or finally","notifyConfig","setPrototypeOf","postInputPath","1644025JVJInp","@@toStringTag","checkInputPathFun","asyncIterator","__await","continue","6syBRYv","hxml","finallyLoc","pages","1254KsFYED","delegate","method","273021OzqMlU","done","call","transformNodeModuleComponent","all","completed","project.config.json"," is exists. Use the -c parameter to clear.","inputPath","error","startsWith","GeneratorFunction","throw","return","appletType","__proto__","@@iterator","then","resolve","value","next","confirmAddConfig","yes","object","projectConfigFile","abrupt","readFileSync","name","282clNAju","Generator","The iterator does not provide a '","10670930WwzCBi","symbol","suspendedYield","tryEntries","tryLoc","prev","sep","join","finally","toStringTag","executing","configBasenameArray","../common/commonUtils","../../common/utils","wrap","path","adaptApiFile","832754ymOBmS","afterLoc","_invoke","Output directory cannot be a subdirectory of the input directory.","rval","awrap","handleConfigInfo","unlink","appJsonFile","normal","createDirs","pop","break","hasOwnProperty","iterator result is not an object","[object Generator]","isArray","slice","completion","parse","mark","clearResource","miniprogramRoot","getPrototypeOf","outPath","20426ZCiYXz","Applets","srcRootPath","20004wOVuVX","displayName","projectFileSuffix","prototype","completeTransform","existsSync","41634ogzPIj","illegal catch attempt","_sent","catch","charAt","src","end","packageName","4VjeZDi","rmdir","forEach","copyDir","AsyncIterator","createTransformReportFile","length","constructor","Generator is already running","toString","type","smartProgramRoot","suspendedStart","create","stop","map","concat","264XJEIlH","readdir"];return(_0x5183=function(){return t})()}function getSrcRootPath(t){var r=_0x12e1f6;commonConfig_1.Applets[r(523)]="./";for(var e=0;e<commonConfig_1[r(490)][r(544)];e++){var n=commonConfig_1[r(490)][e],n=path[r(486)](t,n);fs[r(529)](n)&&((n=JSON[r(515)](fs[r(474)](n).toString())).miniprogramRoot?commonConfig_1[r(522)].srcRootPath=n[r(518)]:n.smartProgramRoot?commonConfig_1[r(522)][r(523)]=n[r(549)]:commonConfig_1[r(522)][r(523)]="./")}return commonConfig_1[r(522)][r(523)]}exports[_0x12e1f6(584)]=confirmConverterFun,exports[_0x12e1f6(567)]=confirmConverterH5Fun,exports.checkInputPathFun=checkInputPathFun;
1
+ var _0x90fc96=_0x14cc;function _0x14cc(r,t){var n=_0x2e20();return(_0x14cc=function(r,t){return n[r-=480]})(r,t)}function _typeof(r){var n=_0x14cc;return(_typeof=n(542)==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){var t=n;return r&&t(542)==typeof Symbol&&r[t(480)]===Symbol&&r!==Symbol[t(573)]?t(515):typeof r})(r)}function _regeneratorRuntime(){var f=_0x14cc;_regeneratorRuntime=function(){return a};var s,a={},r=Object[f(573)],h=r.hasOwnProperty,m=Object[f(594)]||function(r,t,n){var e=f;r[t]=n[e(613)]},t=f(542)==typeof Symbol?Symbol:{},i=t[f(562)]||f(618),n=t[f(612)]||f(513),e=t[f(621)]||f(499);function o(r,t,n){return Object[f(594)](r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{o({},"")}catch(r){o=function(r,t,n){return r[t]=n}}function u(r,t,n,e){var o,i,c,a,u=f,t=t&&t[u(573)]instanceof x?t:x,t=Object[u(570)](t[u(573)]),e=new j(e||[]);return m(t,u(550),{value:(o=r,i=n,c=e,a=l,function(r,t){var n=_0x14cc;if(a===_)throw Error(n(539));if(a===y){if(n(554)===r)throw t;return{value:s,done:!0}}for(c[n(555)]=r,c[n(584)]=t;;){var e=c[n(490)];if(e){e=function r(t,n){var e=f,o=n[e(555)],i=t[e(562)][o];if(i===s)return n[e(490)]=null,e(554)===o&&t[e(562)][e(601)]&&(n[e(555)]=e(601),n[e(584)]=s,r(t,n),e(554)===n[e(555)])||e(601)!==o&&(n[e(555)]=e(554),n[e(584)]=new TypeError(e(543)+o+"' method")),g;o=p(i,t[e(562)],n[e(584)]);if(e(554)===o[e(526)])return n[e(555)]=e(554),n[e(584)]=o[e(584)],n[e(490)]=null,g;i=o[e(584)];return i?i.done?(n[t[e(616)]]=i.value,n[e(522)]=t[e(510)],e(601)!==n[e(555)]&&(n[e(555)]=e(522),n[e(584)]=s),n[e(490)]=null,g):i:(n[e(555)]="throw",n[e(584)]=new TypeError(e(619)),n[e(490)]=null,g)}(e,c);if(e){if(e===g)continue;return e}}if(n(522)===c[n(555)])c[n(604)]=c[n(532)]=c[n(584)];else if(n(554)===c[n(555)]){if(a===l)throw a=y,c.arg;c[n(566)](c.arg)}else"return"===c[n(555)]&&c[n(615)]("return",c[n(584)]);a=_;e=p(o,i,c);if(n(552)===e[n(526)]){if(a=c[n(602)]?y:v,e[n(584)]===g)continue;return{value:e[n(584)],done:c[n(602)]}}n(554)===e[n(526)]&&(a=y,c[n(555)]="throw",c[n(584)]=e.arg)}})}),t}function p(r,t,n){var e=f;try{return{type:e(552),arg:r[e(559)](t,n)}}catch(r){return{type:e(554),arg:r}}}a[f(493)]=u;var l=f(595),v=f(614),_=f(597),y=f(546),g={};function x(){}function c(){}function d(){}var t={},b=(o(t,i,function(){return this}),Object.getPrototypeOf),b=b&&b(b(O([]))),C=(b&&b!==r&&h[f(559)](b,i)&&(t=b),d.prototype=x[f(573)]=Object.create(t));function w(r){var t=f;[t(522),t(554),t(601)].forEach(function(t){o(r,t,function(r){return this._invoke(t,r)})})}function P(a,u){var t,o=f;m(this,o(550),{value:function(n,e){function r(){return new u(function(r,t){!function t(r,n,e,o){var i,c=_0x14cc,r=p(a[r],a,n);if("throw"!==r[c(526)])return(n=(i=r[c(584)])[c(613)])&&c(497)==_typeof(n)&&h.call(n,c(576))?u[c(500)](n[c(576)])[c(561)](function(r){t("next",r,e,o)},function(r){t(c(554),r,e,o)}):u.resolve(n)[c(561)](function(r){i[c(613)]=r,e(i)},function(r){return t(c(554),r,e,o)});o(r[c(584)])}(n,e,r,t)})}return t=t?t[o(561)](r,r):r()}})}function F(r){var t=f,n={tryLoc:r[0]};1 in r&&(n[t(528)]=r[1]),2 in r&&(n[t(518)]=r[2],n[t(481)]=r[3]),this[t(551)][t(617)](n)}function S(r){var t=f,n=r[t(572)]||{};n[t(526)]="normal",delete n[t(584)],r[t(572)]=n}function j(r){var t=f;this[t(551)]=[{tryLoc:t(600)}],r.forEach(F,this),this.reset(!0)}function O(n){var e=f;if(n||""===n){var o,r=n[i];if(r)return r[e(559)](n);if(e(542)==typeof n.next)return n;if(!isNaN(n[e(575)]))return o=-1,(r=function r(){for(var t=e;++o<n[t(575)];)if(h.call(n,o))return r[t(613)]=n[o],r[t(602)]=!1,r;return r.value=s,r.done=!0,r}).next=r}throw new TypeError(_typeof(n)+e(491))}return m(C,"constructor",{value:c.prototype=d,configurable:!0}),m(d,f(480),{value:c,configurable:!0}),c[f(599)]=o(d,e,f(482)),a.isGeneratorFunction=function(r){var t=f,r=t(542)==typeof r&&r[t(480)];return!!r&&(r===c||"GeneratorFunction"===(r[t(599)]||r[t(486)]))},a.mark=function(r){var t=f;return Object[t(545)]?Object.setPrototypeOf(r,d):(r[t(534)]=d,o(r,e,t(482))),r[t(573)]=Object[t(570)](C),r},a[f(547)]=function(r){return{__await:r}},w(P[f(573)]),o(P[f(573)],n,function(){return this}),a.AsyncIterator=P,a[f(521)]=function(r,t,n,e,o){var i=f,c=(void 0===o&&(o=Promise),new P(u(r,t,n,e),o));return a[i(580)](t)?c:c[i(522)]()[i(561)](function(r){var t=i;return r[t(602)]?r.value:c[t(522)]()})},w(C),o(C,e,f(502)),o(C,i,function(){return this}),o(C,f(530),function(){return"[object Generator]"}),a[f(598)]=function(r){var t,e=f,o=Object(r),i=[];for(t in o)i[e(617)](t);return i[e(558)](),function r(){for(var t=e;i.length;){var n=i.pop();if(n in o)return r[t(613)]=n,r[t(602)]=!1,r}return r[t(602)]=!0,r}},a.values=O,j[f(573)]={constructor:j,reset:function(r){var t=f;if(this[t(529)]=0,this.next=0,this[t(604)]=this[t(532)]=s,this[t(602)]=!1,this[t(490)]=null,this[t(555)]=t(522),this[t(584)]=s,this.tryEntries[t(607)](S),!r)for(var n in this)"t"===n[t(588)](0)&&h[t(559)](this,n)&&!isNaN(+n.slice(1))&&(this[n]=s)},stop:function(){var r=f,t=(this[r(602)]=!0,this.tryEntries[0][r(572)]);if(r(554)===t[r(526)])throw t[r(584)];return this[r(512)]},dispatchException:function(e){var o=f;if(this[o(602)])throw e;var i=this;function r(r,t){var n=o;return c[n(526)]=n(554),c[n(584)]=e,i[n(522)]=r,t&&(i[n(555)]=n(522),i[n(584)]=s),!!t}for(var t=this[o(551)][o(575)]-1;0<=t;--t){var n=this[o(551)][t],c=n[o(572)];if(o(600)===n[o(496)])return r(o(592));if(n[o(496)]<=this[o(529)]){var a=h.call(n,o(528)),u=h[o(559)](n,o(518));if(a&&u){if(this[o(529)]<n[o(528)])return r(n[o(528)],!0);if(this[o(529)]<n[o(518)])return r(n[o(518)])}else if(a){if(this.prev<n[o(528)])return r(n[o(528)],!0)}else{if(!u)throw Error(o(560));if(this.prev<n[o(518)])return r(n[o(518)])}}}},abrupt:function(r,t){for(var n=f,e=this[n(551)][n(575)]-1;0<=e;--e){var o=this[n(551)][e];if(o.tryLoc<=this[n(529)]&&h[n(559)](o,n(518))&&this.prev<o[n(518)]){var i=o;break}}var c=(i=i&&(n(565)===r||n(605)===r)&&i[n(496)]<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return c[n(526)]=r,c.arg=t,i?(this[n(555)]=n(522),this[n(522)]=i.finallyLoc,g):this[n(590)](c)},complete:function(r,t){var n=f;if("throw"===r.type)throw r.arg;return"break"===r[n(526)]||n(605)===r[n(526)]?this[n(522)]=r.arg:n(601)===r.type?(this.rval=this[n(584)]=r[n(584)],this[n(555)]="return",this[n(522)]=n(592)):n(552)===r[n(526)]&&t&&(this[n(522)]=t),g},finish:function(r){for(var t=f,n=this[t(551)][t(575)]-1;0<=n;--n){var e=this[t(551)][n];if(e.finallyLoc===r)return this[t(590)](e[t(572)],e[t(481)]),S(e),g}},catch:function(r){for(var t=f,n=this[t(551)][t(575)]-1;0<=n;--n){var e,o,i=this[t(551)][n];if(i[t(496)]===r)return"throw"===(e=i.completion)[t(526)]&&(o=e[t(584)],S(i)),o}throw Error(t(509))},delegateYield:function(r,t,n){var e=f;return this[e(490)]={iterator:O(r),resultName:t,nextLoc:n},e(522)===this[e(555)]&&(this.arg=s),g}},a}function asyncGeneratorStep(r,t,n,e,o,i,c){var a=_0x14cc;try{var u=r[i](c),f=u[a(613)]}catch(r){return void n(r)}u[a(602)]?t(f):Promise[a(500)](f)[a(561)](e,o)}function _asyncToGenerator(u){return function(){var r=this,a=arguments;return new Promise(function(t,n){var e=_0x14cc,o=u[e(556)](r,a);function i(r){asyncGeneratorStep(o,t,n,i,c,e(522),r)}function c(r){asyncGeneratorStep(o,t,n,i,c,e(554),r)}i(void 0)})}}(()=>{for(var r=_0x14cc,t=_0x2e20();;)try{if(997915==+parseInt(r(535))+-parseInt(r(611))/2*(parseInt(r(519))/3)+-parseInt(r(514))/4*(-parseInt(r(564))/5)+parseInt(r(487))/6*(parseInt(r(549))/7)+parseInt(r(484))/8*(parseInt(r(583))/9)+parseInt(r(538))/10+-parseInt(r(540))/11)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),Object[_0x90fc96(594)](exports,_0x90fc96(511),{value:!0}),exports.checkInputPathFun=exports[_0x90fc96(596)]=exports.confirmConverterFun=void 0;var commonConfig_1=require("../common/commonConfig"),path=require(_0x90fc96(591)),fs=require("fs"),commonUtils_1=require("../common/commonUtils"),_require=require(_0x90fc96(508)),clearResource=_require[_0x90fc96(609)];function confirmConverterFun(r,t){return _confirmConverterFun[_0x90fc96(556)](this,arguments)}function _confirmConverterFun(){var r=_0x90fc96;return(_confirmConverterFun=_asyncToGenerator(_regeneratorRuntime()[r(507)](function r(n,e){var o,i;return _regeneratorRuntime().wrap(function(r){for(var t=_0x14cc;;)switch(r[t(529)]=r.next){case 0:if(r.prev=0,o=path[t(500)](n[t(610)],t(557)),i=path.resolve(n.inputPath,"project.config.json"),fs[t(577)](i)||!fs.existsSync(o)||n[t(582)]){r.next=7;break}return r.abrupt("return",{command:t(544)});case 7:return r[t(522)]=9,doConvert(n,e);case 9:return r[t(615)](t(601),r[t(604)]);case 10:r[t(522)]=16;break;case 12:return r.prev=12,r.t0=r[t(492)](0),console[t(587)](r.t0),r[t(615)](t(601),{command:"failedTransform",errorMessage:r.t0[t(568)]});case 16:case"end":return r.stop()}},r,null,[[0,12]])})))[r(556)](this,arguments)}function confirmConverterH5Fun(r,t){var n=_0x90fc96,e=path[n(506)](r[n(524)],r[n(541)]);try{return commonUtils_1[n(485)](e,n(494),!0),commonUtils_1.copyDir(path[n(506)](__filename,n(504),n(494)),path[n(506)](e,n(494)),!1,!0),commonUtils_1[n(536)](r,path[n(506)](e,"src")),{command:n(548)}}catch(r){return console[n(587)](r),{command:"failedTransform",errorMessage:r[n(568)]}}}function checkConvertOutput(r,t){var n=_0x90fc96,r=path.resolve(r),t=path[n(500)](t);if(fs[n(577)](t))throw new Error(n(585)[n(586)](t,n(578)));if(t[n(589)](r+path[n(527)]))throw new Error("Output directory cannot be a subdirectory of the input directory.")}function doConvert(r,t){return _doConvert[_0x90fc96(556)](this,arguments)}function _doConvert(){var r=_0x90fc96;return(_doConvert=_asyncToGenerator(_regeneratorRuntime()[r(507)](function r(n,t){var e,o,i;return _regeneratorRuntime().wrap(function(r){for(var t=_0x14cc;;)switch(r[t(529)]=r[t(522)]){case 0:if(e=path.resolve(n[t(524)],t(516)),process[t(579)][t(609)]===t(606))return r[t(522)]=4,clearResource([e]);r[t(522)]=4;break;case 4:return checkConvertOutput(n[t(610)],e),o=commonConfig_1.Applets[t(488)],r[t(529)]=6,commonUtils_1[t(485)](e,o),commonUtils_1[t(503)](e,n[t(610)]),i=path[t(506)](e,o),"./"===o||""===o?(commonUtils_1[t(498)](n.inputPath,i),commonUtils_1[t(581)](n[t(610)],i)):(commonUtils_1[t(498)](path[t(506)](n[t(610)],o),i),commonUtils_1[t(581)](path[t(506)](n.inputPath,o),i),commonUtils_1.copyConfigFiles(path[t(506)](n[t(610)]),e)),commonUtils_1.transformNodeModuleComponent(),commonUtils_1[t(608)](path[t(506)](e,o),n),commonUtils_1[t(567)](path[t(506)](e)),"my"===commonConfig_1.Applets[t(501)]&&commonUtils_1[t(574)](e,path[t(506)](__filename,t(537))),r[t(615)](t(601),{command:t(548),folderUrl:e});case 18:return r[t(529)]=18,r.t0=r.catch(6),console[t(587)](r.t0),removePromise(e)[t(603)](),r[t(615)](t(601),{command:"failedTransform",errorMessage:r.t0.message});case 23:case t(592):return r[t(531)]()}},r,null,[[6,18]])})))[r(556)](this,arguments)}function removePromise(i){return new Promise(function(o,r){var n=_0x14cc;fs[n(495)](i,function(r,t){var e=n;t[e(523)]()?fs.readdir(i,function(r,t){var n=e,t=(t=t.map(function(r){return path[_0x14cc(506)](i,r)})).map(function(r){return removePromise(r)});Promise.all(t)[n(561)](function(){fs[n(525)](i,o)})}):fs.unlink(i,o)})})}function _0x2e20(){var r=["afterLoc","GeneratorFunction","pages","5480vKAjJC","createDirs","name","203598PSbvfK","srcRootPath","readFileSync","delegate"," is not iterable","catch","wrap","src","stat","tryLoc","object","setOriginPtahObject","@@toStringTag","resolve","appletType","Generator","createTransformReportFile","../lib","checkInputPathFun","join","mark","../../common/utils","illegal catch attempt","nextLoc","__esModule","rval","@@asyncIterator","2798516TGJUgq","symbol","ascf/ascf_src","isArray","finallyLoc","366swxlRi","parse","async","next","isDirectory","outPath","rmdir","type","sep","catchLoc","prev","toString","stop","_sent","confirmConverterFun","__proto__","1897233xiuETD","handleConfigInfo","../../","15698320qrttjl","Generator is already running","44009570VzUhJK","packageName","function","The iterator does not provide a '","notifyConfig","setPrototypeOf","completed","awrap","completeTransform","259PsHBQW","_invoke","tryEntries","normal","dirname","throw","method","apply","app.json","reverse","call","try statement without catch or finally","then","iterator","projectFileSuffix","5UrrSyQ","break","dispatchException","projectConfigFile","message","Applets","create","smartProgramRoot","completion","prototype","adaptApiFile","length","__await","existsSync"," is exists. Use the -c parameter to clear.","env","isGeneratorFunction","copyDir","confirmAddConfig","11628eYOffo","arg","Output path ","concat","error","charAt","startsWith","complete","path","end","hxml","defineProperty","suspendedStart","confirmConverterH5Fun","executing","keys","displayName","root","return","done","finally","sent","continue","yes","forEach","appJsonFile","clearResource","inputPath","21450YyDEQU","asyncIterator","value","suspendedYield","abrupt","resultName","push","@@iterator","iterator result is not an object","miniprogramRoot","toStringTag","constructor"];return(_0x2e20=function(){return r})()}function checkInputPathFun(r){var t=_0x90fc96,r=path[t(500)](r);return{command:"postInputPath",data:{returnCode:checkMiniProgram(r),outPath:path[t(553)](r)}}}function checkMiniProgram(r){var t=_0x90fc96,n=!0,t=path[t(506)](r,t(557));return n=fs.existsSync(t)&&identifyProgram(r)?n:!1}function identifyProgram(r){var t=_0x90fc96;try{var n=path[t(506)](r,t(557)),e=JSON[t(520)](fs[t(489)](n)[t(530)]());if(e&&e[t(483)]&&Array[t(517)](e[t(483)])&&0<e[t(483)].length)for(var o=getSrcRootPath(r),i=0,c=Object.keys(commonConfig_1[t(563)]);i<c.length;i++){var a=c[i],u=path[t(506)](r,o,e[t(483)][0]+commonConfig_1.projectFileSuffix[a][t(593)]);if(fs[t(577)](u))return"wx"===a?commonConfig_1.Applets[t(501)]="tt":commonConfig_1[t(569)][t(501)]=a,!0}return!1}catch(r){return!1}}function getSrcRootPath(r){var t=_0x90fc96;commonConfig_1[t(569)].srcRootPath="./";for(var n=0;n<commonConfig_1.configBasenameArray.length;n++){var e=commonConfig_1.configBasenameArray[n],e=path[t(506)](r,e);fs[t(577)](e)&&((e=JSON[t(520)](fs[t(489)](e)[t(530)]()))[t(620)]?commonConfig_1[t(569)][t(488)]=e[t(620)]:e[t(571)]?commonConfig_1[t(569)][t(488)]=e[t(571)]:commonConfig_1[t(569)].srcRootPath="./")}return commonConfig_1[t(569)][t(488)]}exports[_0x90fc96(533)]=confirmConverterFun,exports.confirmConverterH5Fun=confirmConverterH5Fun,exports[_0x90fc96(505)]=checkInputPathFun;
@@ -1 +1 @@
1
- var _0x1b0d14=_0x556f;function _0xdf85(){var t=["wxssParser","character","interfacesForTransform","endOffset","startsWith","transformWxsFilePath","../","getText","15058098RIICgU","handleWxmlFile","handleWxssImport","7934022ffkYLU","import","wxInterface","css","3052024jikVOR","start","filePath","forEach","type","./transformReport","../common/commonConfig","mixins","line","startOffset","notSupport","../features/fileHandle","has:","projectFileSuffix","module","../parse/wxssParser","indexOf","length","path","wxSchema","uri","245664HmHnZJ","has","transformJsPath","extname","behaviors","existsSync",".css","5SIfyml","../common/textDocument","transformJsFile","4419kjStea",' {"line":',"substring","hxml","parseFragment","hjs","api ","setLanguage","join","invalidApis","../common/commonUtils","../parse/importVisitor","9020053nIVTdw"," TODO\n","offsetAt",',"column":',"property","concat","478ynwIkR","5837808YSOAdx","moduleRange","replacepos","insertStr","serialize"];return(_0xdf85=function(){return t})()}(()=>{for(var t=_0x556f,e=_0xdf85();;)try{if(731786==+parseInt(t(350))+-parseInt(t(308))/2*(-parseInt(t(290))/3)+parseInt(t(309))/4*(parseInt(t(357))/5)+-parseInt(t(325))/6+parseInt(t(302))/7+parseInt(t(329))/8+-parseInt(t(322))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x1b0d14(352)]=exports[_0x1b0d14(289)]=exports[_0x1b0d14(319)]=exports[_0x1b0d14(323)]=exports[_0x1b0d14(324)]=void 0;var globalDistanceCount,globalJsLine,path=require(_0x1b0d14(347)),fs=require("fs"),_require=require(_0x1b0d14(288)),create=_require.create,fileHandle_1=require(_0x1b0d14(340)),commonConfig_1=require(_0x1b0d14(335)),commonUtils_1=require(_0x1b0d14(300)),importVisitor_1=require(_0x1b0d14(301)),wxssParser_1=require(_0x1b0d14(344)),commonConfig_2=require(_0x1b0d14(335)),TransformReport=require(_0x1b0d14(334)),parse5=require("../compiler-utils/parse5.bundle"),insertedApiObj={},insertedApiCountObj={},DEST_API_NAME=_0x1b0d14(351),DEST_API_LEN=DEST_API_NAME[_0x1b0d14(346)];function handleWxssImport(t,r,n){var o=_0x1b0d14,a=commonConfig_1.projectFileSuffix[n],t=create(t,r),t=(r=t[o(321)](),wxssParser_1[o(314)](r,t,a[o(328)],n)),s=0;return t[o(332)](function(t){var e=o;t[e(333)]===e(326)?(r=commonUtils_1[e(311)](r,t.endOffset-a[e(328)][e(346)]-s,t[e(317)]-s,e(356)),s+=a[e(328)][e(346)]-4):(r=commonUtils_1[e(311)](r,t[e(338)]-s,t[e(338)]+n[e(346)]+1-s,""),s+=n[e(346)]+1)}),r}function handleWxmlFile(t,e,r,n){var o=_0x1b0d14,e=create(t,e),e=parse5[o(294)](e.getText(),{}),t={filePath:t,srcPath:r,appType:n,utils:{commonConfig:commonConfig_1,importVisitor:importVisitor_1,textDocument:{create:create},fileHandle:fileHandle_1}};return parse5[o(313)](e,{convertOptions:t})}function transformWxSchemas(t,e,r){var n=_0x1b0d14,o=t[n(310)][n(330)],e=e[n(304)]({line:o[n(337)]-1,character:o[n(315)]+1});return r=commonUtils_1[n(311)](r,e+globalDistanceCount,e+t[n(343)][n(346)]+globalDistanceCount,n(341)),globalDistanceCount-=t[n(343)][n(346)]-4,r}function _0x556f(t,e){var r=_0xdf85();return(_0x556f=function(t,e){return r[t-=288]})(t,e)}function transformWxmlWxsFilePath(t,e,r){var n=_0x1b0d14,o=t.moduleRange[n(330)],e=e[n(304)]({line:o[n(337)]-1,character:o[n(315)]});return r=commonUtils_1[n(311)](r,e+globalDistanceCount,e+globalDistanceCount+t[n(343)].length-1,4===t[n(343)].length?"hjs":n(293))}function transformWxsFilePath(t,s,i,l,e){var c=_0x1b0d14,m=0,f=commonConfig_1[c(342)][e];return t[c(332)](function(t){var e=c;if(path[e(353)](t[e(343)])===f[e(295)]){var r=t[e(343)],n=t[e(310)][e(330)],n=s[e(304)]({line:n[e(337)]-1,character:n[e(315)]-1})+m,o=t[e(343)][e(292)](0,t.module.length-(f[e(295)][e(346)]-1))+e(295);if(r&&!r.startsWith("./")&&!r[e(318)](e(320))){var a=path[e(298)](l,"..",r);if(!path[e(353)](a))return;fs.existsSync(a)&&(a=".",r.startsWith("/")?m+=1:(a="./",m+=2),o=a+o)}i=commonUtils_1[e(311)](i,n,n+t[e(343)].length,o)}}),i}function transformWxInterface(t,e,r,n){var o,a,s=_0x1b0d14,i=t[s(310)].start,l=e.uri()+"-"+i.line,c=e[s(304)]({line:i.line-1,character:i[s(315)]});return r=commonUtils_1.replacepos(r,c+globalDistanceCount,globalDistanceCount+c+n[s(346)],DEST_API_NAME),commonConfig_2[s(316)][t[s(306)]]?(globalDistanceCount-=n[s(346)]-DEST_API_LEN,r=commonUtils_1[s(311)](r,c+globalDistanceCount+n.length+1,c+globalDistanceCount+n[s(346)]+1+t[s(306)][s(346)],commonConfig_2.interfacesForTransform[t[s(306)]]),globalDistanceCount-=t[s(306)][s(346)]-commonConfig_2.interfacesForTransform[t.property][s(346)]):-1===commonConfig_2[s(299)][s(345)](t[s(306)])||-1!==Object.keys(insertedApiObj)[s(345)](l)&&insertedApiObj[l]===t.property?globalDistanceCount-=n[s(346)]-DEST_API_LEN:(c=e[s(304)]({line:i.line-1,character:0}),o="// ".concat(commonUtils_1.setLanguage(s(339)),s(296))[s(307)](DEST_API_NAME,".")[s(307)](t.property,s(303)),a=i[s(337)]+1,insertedApiCountObj[l]&&(a+=insertedApiCountObj[l]),e=e[s(349)]()+s(291)+(a+globalJsLine)+s(305)+i.character+"}",TransformReport.writeInfo(""[s(307)](commonUtils_1[s(297)](s(339)),"api ")[s(307)](DEST_API_NAME,".")[s(307)](t[s(306)]),e),r=commonUtils_1[s(312)](r,c+globalDistanceCount,o),globalJsLine++,globalDistanceCount=(globalDistanceCount+=o.length)-(n[s(346)]-DEST_API_LEN),insertedApiObj[l]=t[s(306)],insertedApiCountObj[l]?insertedApiCountObj[l]++:insertedApiCountObj[l]=1),r}function transformJsFile(t,r,n,o){var a=_0x1b0d14,s=create(t,n),t=(n=s[a(321)](),importVisitor_1.getImportRules(n,null,null,o));return globalJsLine=globalDistanceCount=0,t[a(332)](function(t){var e=a;switch(t[e(333)]){case"fileImport":n=transformJsPath(t,r,n,s);break;case e(327):n=transformWxInterface(t,s,n,o);break;case e(331):n=transformWxmlWxsFilePath(t,s,n);break;case e(348):n=transformWxSchemas(t,s,n);break;case e(336):n=transformComponentMixins(t,s,n)}}),n}function transformComponentMixins(t,e,r){var n=_0x1b0d14,o=t[n(310)][n(330)],e=e[n(304)]({line:o[n(337)]-1,character:o.character});return r=commonUtils_1[n(311)](r,e+globalDistanceCount,e+t.module[n(346)]+globalDistanceCount,n(354)),globalDistanceCount-=t[n(343)].length-9,r}function transformJsPath(t,e,r,n){var o=_0x1b0d14,a=t[o(343)];return!a||a[o(318)]("./")||a[o(318)]("../")||(e=path[o(298)](e,"..",a),path[o(353)](e)||(e+=".js"),fs[o(355)](e)&&(e=t[o(310)].start,t=n.offsetAt({line:e[o(337)]-1,character:e[o(315)]-1})+globalDistanceCount,n=".",a.startsWith("/")?globalDistanceCount+=1:(n="./",globalDistanceCount+=2),r=commonUtils_1[o(312)](r,t,n))),r}exports[_0x1b0d14(324)]=handleWxssImport,exports[_0x1b0d14(323)]=handleWxmlFile,exports.transformWxsFilePath=transformWxsFilePath,exports.transformJsFile=transformJsFile,exports[_0x1b0d14(352)]=transformJsPath;
1
+ var _0x27b641=_0x50fa;function _0x1a81(){var e=["__esModule","wxssParser","../","concat",' {"line":',"projectFileSuffix","112720mmGKOI","insertStr","length","wxSchema","invalidApis","handleWxssImport","start","getText","mixins","startsWith","9HKMdXZ","has","setLanguage","serialize","indexOf","transformJsFile","existsSync","transformJsPath","startOffset","module","character","2638255gUsREa","../common/commonConfig","../parse/importVisitor","filePath","wxInterface","line","css","forEach","moduleRange","join","interfacesForTransform","995569TJdoZE","defineProperty","handleWxmlFile","transformWxsFilePath",".js","1288014IsCbkg","endOffset","../compiler-utils/parse5.bundle","// ","path","type","behaviors","replacepos","property","./transformReport","offsetAt","notSupport","141627hNLcKw","6483684wxnzxW",',"column":',"fileImport","../common/commonUtils","68jKglvq","uri","extname","writeInfo","../parse/wxssParser","import","keys","hjs",".css","substring","8124488blHeGO","create"];return(_0x1a81=function(){return e})()}(()=>{for(var e=_0x50fa,t=_0x1a81();;)try{if(585342==-parseInt(e(428))+-parseInt(e(396))/2+-parseInt(e(445))/3*(parseInt(e(378))/4)+parseInt(e(417))/5+parseInt(e(446))/6+-parseInt(e(433))/7+parseInt(e(388))/8*(parseInt(e(406))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x27b641(429)](exports,_0x27b641(390),{value:!0}),exports[_0x27b641(413)]=exports[_0x27b641(411)]=exports[_0x27b641(431)]=exports[_0x27b641(430)]=exports[_0x27b641(401)]=void 0;var globalDistanceCount,globalJsLine,path=require(_0x27b641(437)),fs=require("fs"),_require=require("../common/textDocument"),create=_require[_0x27b641(389)],fileHandle_1=require("../features/fileHandle"),commonConfig_1=require(_0x27b641(418)),commonUtils_1=require(_0x27b641(449)),importVisitor_1=require(_0x27b641(419)),wxssParser_1=require(_0x27b641(382)),commonConfig_2=require(_0x27b641(418)),TransformReport=require(_0x27b641(442)),parse5=require(_0x27b641(435)),insertedApiObj={},insertedApiCountObj={},DEST_API_NAME=_0x27b641(407),DEST_API_LEN=DEST_API_NAME[_0x27b641(398)];function handleWxssImport(e,n,r){var o=_0x27b641,a=commonConfig_1[o(395)][r],e=create(e,n),e=(n=e[o(403)](),wxssParser_1[o(391)](n,e,a.css,r)),s=0;return e.forEach(function(e){var t=o;e[t(438)]===t(383)?(n=commonUtils_1[t(440)](n,e.endOffset-a[t(423)][t(398)]-s,e[t(434)]-s,t(386)),s+=a.css[t(398)]-4):(n=commonUtils_1[t(440)](n,e[t(414)]-s,e.startOffset+r.length+1-s,""),s+=r[t(398)]+1)}),n}function handleWxmlFile(e,t,n,r){var o=_0x27b641,t=create(e,t),t=parse5.parseFragment(t[o(403)](),{}),e={filePath:e,srcPath:n,appType:r,utils:{commonConfig:commonConfig_1,importVisitor:importVisitor_1,textDocument:{create:create},fileHandle:fileHandle_1}};return parse5[o(409)](t,{convertOptions:e})}function transformWxSchemas(e,t,n){var r=_0x27b641,o=e.moduleRange.start,t=t[r(443)]({line:o[r(422)]-1,character:o[r(416)]+1});return n=commonUtils_1[r(440)](n,t+globalDistanceCount,t+e[r(415)].length+globalDistanceCount,"has:"),globalDistanceCount-=e[r(415)].length-4,n}function _0x50fa(e,t){var n=_0x1a81();return(_0x50fa=function(e,t){return n[e-=378]})(e,t)}function transformWxmlWxsFilePath(e,t,n){var r=_0x27b641,o=e.moduleRange[r(402)],t=t.offsetAt({line:o[r(422)]-1,character:o[r(416)]});return n=commonUtils_1.replacepos(n,t+globalDistanceCount,t+globalDistanceCount+e[r(415)][r(398)]-1,4===e[r(415)][r(398)]?r(385):"hxml")}function transformWxsFilePath(e,s,i,l,t){var c=_0x27b641,m=0,f=commonConfig_1[c(395)][t];return e.forEach(function(e){var t=c;if(path[t(380)](e[t(415)])===f[t(385)]){var n=e[t(415)],r=e[t(425)][t(402)],r=s[t(443)]({line:r[t(422)]-1,character:r[t(416)]-1})+m,o=e.module[t(387)](0,e.module[t(398)]-(f[t(385)][t(398)]-1))+"hjs";if(n&&!n[t(405)]("./")&&!n.startsWith(t(392))){var a=path[t(426)](l,"..",n);if(!path[t(380)](a))return;fs[t(412)](a)&&(a=".",n[t(405)]("/")?m+=1:(a="./",m+=2),o=a+o)}i=commonUtils_1.replacepos(i,r,r+e.module.length,o)}}),i}function transformWxInterface(e,t,n,r){var o,a,s=_0x27b641,i=e[s(425)].start,l=t[s(379)]()+"-"+i.line,c=t.offsetAt({line:i[s(422)]-1,character:i[s(416)]});return n=commonUtils_1[s(440)](n,c+globalDistanceCount,globalDistanceCount+c+r[s(398)],DEST_API_NAME),commonConfig_2[s(427)][e[s(441)]]?(globalDistanceCount-=r.length-DEST_API_LEN,n=commonUtils_1[s(440)](n,c+globalDistanceCount+r[s(398)]+1,c+globalDistanceCount+r.length+1+e[s(441)][s(398)],commonConfig_2[s(427)][e[s(441)]]),globalDistanceCount-=e[s(441)][s(398)]-commonConfig_2[s(427)][e.property].length):-1===commonConfig_2[s(400)][s(410)](e[s(441)])||-1!==Object[s(384)](insertedApiObj)[s(410)](l)&&insertedApiObj[l]===e[s(441)]?globalDistanceCount-=r[s(398)]-DEST_API_LEN:(c=t.offsetAt({line:i[s(422)]-1,character:0}),o=s(436)[s(393)](commonUtils_1[s(408)](s(444)),"api ")[s(393)](DEST_API_NAME,".")[s(393)](e[s(441)]," TODO\n"),a=i[s(422)]+1,insertedApiCountObj[l]&&(a+=insertedApiCountObj[l]),t=t[s(379)]()+s(394)+(a+globalJsLine)+s(447)+i[s(416)]+"}",TransformReport[s(381)]("".concat(commonUtils_1[s(408)](s(444)),"api ").concat(DEST_API_NAME,".")[s(393)](e[s(441)]),t),n=commonUtils_1.insertStr(n,c+globalDistanceCount,o),globalJsLine++,globalDistanceCount=(globalDistanceCount+=o.length)-(r[s(398)]-DEST_API_LEN),insertedApiObj[l]=e[s(441)],insertedApiCountObj[l]?insertedApiCountObj[l]++:insertedApiCountObj[l]=1),n}function transformJsFile(e,n,r,o){var a=_0x27b641,s=create(e,r),e=(r=s[a(403)](),importVisitor_1.getImportRules(r,null,null,o));return globalJsLine=globalDistanceCount=0,e[a(424)](function(e){var t=a;switch(e.type){case t(448):r=transformJsPath(e,n,r,s);break;case t(421):r=transformWxInterface(e,s,r,o);break;case t(420):r=transformWxmlWxsFilePath(e,s,r);break;case t(399):r=transformWxSchemas(e,s,r);break;case t(404):r=transformComponentMixins(e,s,r)}}),r}function transformComponentMixins(e,t,n){var r=_0x27b641,o=e[r(425)].start,t=t[r(443)]({line:o[r(422)]-1,character:o[r(416)]});return n=commonUtils_1[r(440)](n,t+globalDistanceCount,t+e[r(415)].length+globalDistanceCount,r(439)),globalDistanceCount-=e[r(415)][r(398)]-9,n}function transformJsPath(e,t,n,r){var o=_0x27b641,a=e.module;return!a||a[o(405)]("./")||a[o(405)]("../")||(t=path[o(426)](t,"..",a),path[o(380)](t)||(t+=o(432)),fs.existsSync(t)&&(t=e.moduleRange[o(402)],e=r[o(443)]({line:t[o(422)]-1,character:t[o(416)]-1})+globalDistanceCount,r=".",a[o(405)]("/")?globalDistanceCount+=1:(r="./",globalDistanceCount+=2),n=commonUtils_1[o(397)](n,e,r))),n}exports.handleWxssImport=handleWxssImport,exports.handleWxmlFile=handleWxmlFile,exports[_0x27b641(431)]=transformWxsFilePath,exports[_0x27b641(411)]=transformJsFile,exports[_0x27b641(413)]=transformJsPath;
@@ -1 +1 @@
1
- var _0x4dd133=_0x1353,commonUtils_1=((()=>{for(var t=_0x1353,r=_0x2dbc();;)try{if(519470==-parseInt(t(412))*(parseInt(t(408))/2)+-parseInt(t(398))/3+parseInt(t(403))/4*(parseInt(t(414))/5)+parseInt(t(402))/6*(-parseInt(t(411))/7)+parseInt(t(406))/8+-parseInt(t(395))/9*(parseInt(t(397))/10)+parseInt(t(407))/11*(parseInt(t(404))/12))break;r.push(r.shift())}catch(t){r.push(r.shift())}})(),Object[_0x4dd133(399)](exports,"__esModule",{value:!0}),exports[_0x4dd133(401)]=exports[_0x4dd133(415)]=void 0,require(_0x4dd133(413))),fs=require("fs");function writeInfo(t,r){var n=_0x4dd133;write([n(410),t,"\n",commonUtils_1[n(405)](n(394)),r,n(400)][n(396)](""))}function insertInfo(t){var r=_0x4dd133,n=fs[r(392)](commonUtils_1[r(409)]()).toString();fs[r(391)](commonUtils_1[r(409)](),t),write(n)}function _0x1353(t,r){var n=_0x2dbc();return(_0x1353=function(t,r){return n[t-=391]})(t,r)}function write(t){var r=_0x4dd133;t&&fs.appendFile(commonUtils_1[r(409)](),t,function(t){if(t)throw t})}function _0x2dbc(){var t=["60pVTMMT","377721kdWTxg","defineProperty","\n\n\n","insertInfo","6TFvwGS","4McwDdB","19584876qTNGhO","setLanguage","2463296wgJhaw","11BLQVQf","2lAxcFo","getGlobleOutPutPath","Error: ","4648742JgkCZJ","681221vPZDjE","../common/commonUtils","2596865QFdjQX","writeInfo","writeFileSync","readFileSync","write","position","702981KrpJBK","join"];return(_0x2dbc=function(){return t})()}exports[_0x4dd133(415)]=writeInfo,exports[_0x4dd133(401)]=insertInfo,exports[_0x4dd133(393)]=write;
1
+ var _0x277fb0=_0x42c6;function _0x42c6(t,n){var r=_0x5d58();return(_0x42c6=function(t,n){return r[t-=291]})(t,n)}(()=>{for(var t=_0x42c6,n=_0x5d58();;)try{if(684409==-parseInt(t(302))*(parseInt(t(304))/2)+parseInt(t(295))/3*(parseInt(t(300))/4)+-parseInt(t(307))/5+parseInt(t(306))/6*(-parseInt(t(299))/7)+parseInt(t(301))/8+-parseInt(t(311))/9*(parseInt(t(294))/10)+parseInt(t(296))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x277fb0(298)]=exports.writeInfo=void 0;var commonUtils_1=require(_0x277fb0(308)),fs=require("fs");function writeInfo(t,n){var r=_0x277fb0;write([r(303),t,"\n",commonUtils_1.setLanguage(r(297)),n,r(292)][r(309)](""))}function insertInfo(t){var n=_0x277fb0,r=fs[n(293)](commonUtils_1.getGlobleOutPutPath()).toString();fs[n(291)](commonUtils_1[n(310)](),t),write(r)}function _0x5d58(){var t=["3820472EshNfl","94pJUUUi","Error: ","29086dOxvMh","write","108pKPQjU","2118815NUDfUe","../common/commonUtils","join","getGlobleOutPutPath","18vHYsxs","writeFileSync","\n\n\n","readFileSync","5803230HDoypu","1509ThiTHv","40222127kGenoL","position","insertInfo","341257HhdxRb","3016oCNiYz"];return(_0x5d58=function(){return t})()}function write(t){var n=_0x277fb0;t&&fs.appendFile(commonUtils_1[n(310)](),t,function(t){if(t)throw t})}exports.writeInfo=writeInfo,exports[_0x277fb0(298)]=insertInfo,exports[_0x277fb0(305)]=write;
@@ -1 +1 @@
1
- function _0x5ec7(){var a=["showLoading","scanCode","concat","8YoJbkC","1043502hvUrrO","toFixed","downloadFile","setScreenBrightness","prototype","object","forEach","code","callBack","apFilePath","saveImageToPhotosAlbum","apFilePaths","function","params","push","11221230rQZgQW","chooseImage","defaultImgVuality","index","removeSavedFile","tempFilePath","phoneNumber","src","7ZqKKlo","title","saveFile","level","filePath","3059892Tqgnov","getClipboardData","apply","string","clearStorageSync","text","407690UWmcgK","quality","brightness","3980235BhJrob","eventName","getSavedFileInfo","data","name","391240ZRnEmd","isArray","returnVal","length","showActionSheet","apiName","uploadFile","setClipboardData","symbol","removeStorageSync","makePhoneCall","sort","9MHKMTc","setStorageSync","iterator","compressImage","success","getScreenBrightness","keys","toPrimitive","getFileInfo","onlyFromCamera","showToast","@@toPrimitive must return a primitive value.","360007MhmEKs"];return(_0x5ec7=function(){return a})()}function _typeof(a){var t=_0x13b7;return(_typeof=t(304)==typeof Symbol&&t(342)==typeof Symbol[t(348)]?function(a){return typeof a}:function(a){var e=t;return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol[e(367)]?"symbol":typeof a})(a)}function _0x13b7(a,e){var t=_0x5ec7();return(_0x13b7=function(a,e){return t[a-=297]})(a,e)}function _defineProperty(a,e,t){return(e=_toPropertyKey(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function _toPropertyKey(a){a=_toPrimitive(a,_0x13b7(323));return"symbol"==_typeof(a)?a:a+""}function _toPrimitive(a,e){var t=_0x13b7;if(t(297)!=_typeof(a)||!a)return a;var r=a[Symbol[t(353)]];if(void 0===r)return(t(323)===e?String:Number)(a);r=r.call(a,e||"default");if(t(297)!=_typeof(r))return r;throw new TypeError(t(357))}(()=>{for(var a=_0x13b7,e=_0x5ec7();;)try{if(430427==+parseInt(a(358))+parseInt(a(326))/2+-parseInt(a(346))/3*(parseInt(a(334))/4)+-parseInt(a(329))/5+-parseInt(a(363))/6*(-parseInt(a(315))/7)+parseInt(a(362))/8*(-parseInt(a(320))/9)+parseInt(a(307))/10)break;e.push(e.shift())}catch(a){e.push(e.shift())}})(),(()=>{var a,e,m,n=_0x13b7;function i(e,t){var a=n;e&&Object[a(352)](e)[a(298)](function(a){t[a]&&(t[e[a]]=t[a],delete t[a])})}has.__apiAdapterConverted||(has.__apiAdapterConverted=!0,a=[{apiName:n(308),callBack:[{eventName:n(350),params:{tempFilePaths:n(303)}}]},{apiName:n(317),params:{apFilePath:"tempFilePath"},callBack:[{eventName:n(350),params:{savedFilePath:n(301)}}]},{apiName:n(354),params:{apFilePath:n(319)}},{apiName:n(331),params:{apFilePath:"filePath"}},{apiName:n(311),params:{apFilePath:"filePath"}},{apiName:n(341),params:{text:"data"}},{apiName:n(321),callBack:[{eventName:"success",params:{data:n(325)}}]},{apiName:n(302),params:{url:"filePath"}},{apiName:n(359),params:{content:"title"}},{apiName:n(338),params:{items:"itemList"},callBack:[{eventName:n(350),params:{tapIndex:n(310)}}]},{apiName:n(340),params:{fileName:n(333)}},{apiName:n(366),params:{brightness:"value"}},{apiName:n(351),callBack:[{eventName:n(350),params:{value:n(328)}}]},{apiName:n(360),params:{hideAlbum:n(355)},callBack:[{eventName:n(350),params:{result:n(299)}}]},{apiName:n(344),params:{number:n(313)}},{apiName:n(356),params:{content:n(316)}},{apiName:n(365),callBack:[{eventName:n(350),params:{tempFilePath:n(301)}}]}],e=[{apiName:"getStorageSync",params:{key:1},returnVal:n(332)},{apiName:n(347),params:{key:1,data:2}},{apiName:n(343),params:{key:1}},{apiName:n(324)}],m={},a[n(361)](e)[n(298)](function(a){a=a.apiName;m[a]=has[a]}),a[n(298)](function(e){var t=n,r=e[t(339)];has[r]=function(){var a=t,n=0<arguments[a(337)]&&void 0!==arguments[0]?arguments[0]:{};return i(e[a(305)],n),e[a(300)]&&e[a(300)].forEach(function(e){var t=a,r=n[e.eventName];n[e[t(330)]]=function(a){i(e[t(305)],a),r(a)}}),m[r](n)}}),e[n(298)](function(e){var o=n,p=e[o(339)];has[p]=function(){var t=o,r=0<arguments[t(337)]&&void 0!==arguments[0]?arguments[0]:{},n=[],i=e[t(305)]&&Object[t(352)](e[t(305)])||[],a=(i[t(345)](function(a,e){return i[a]-i[e]}),i[t(298)](function(a){var e=t;r[a]&&n[e(306)](r[a])}),m[p][t(322)](m,n));return e.returnVal?_defineProperty({},e[t(336)],a):{}}}),m[n(349)]=has.compressImage,has[n(349)]=function(){var t=n,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(a[t(314)]=Array[t(335)](a[t(303)])?a.apFilePaths[0]:"",Number(a[t(318)])),r=(e<=3?a[t(327)]=(100/3*e)[t(364)](0):a[t(309)]=80,a.quality=Number(a[t(327)]),a[t(350)]);return a[t(350)]=function(a){var e=t;a[e(303)]=[a[e(312)]],r(a)},m[t(349)](a)})})();
1
+ function _typeof(a){var t=_0x1b0b;return(_typeof=t(503)==typeof Symbol&&t(519)==typeof Symbol[t(516)]?function(a){return typeof a}:function(a){var e=t;return a&&e(503)==typeof Symbol&&a[e(538)]===Symbol&&a!==Symbol[e(522)]?e(519):typeof a})(a)}function _defineProperty(a,e,t){return(e=_toPropertyKey(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function _0x5ef0(){var a=["src","compressImage","length","48hUiPeG","constructor","brightness","apFilePaths","makePhoneCall","2214776fZWqRY","chooseImage","eventName","object","720300jFDjBw","params","5522RXNDPU","push","uploadFile","getFileInfo","4510540wAfPQT","success","tempFilePath","isArray","3214050naqqyh","phoneNumber","2434356PlMMwE","sort","filePath","toFixed","apply","downloadFile","14pTAfgt","244OTAzaj","onlyFromCamera","function","forEach","string","showActionSheet","keys","concat","@@toPrimitive must return a primitive value.","scanCode","toPrimitive","__apiAdapterConverted","name","setClipboardData","apiName","iterator","137276NUOoTU","defaultImgVuality","symbol","data","saveImageToPhotosAlbum","prototype","quality","setStorageSync","returnVal","removeStorageSync","code","showToast","default","title","showLoading","apFilePath","getScreenBrightness"];return(_0x5ef0=function(){return a})()}function _0x1b0b(a,e){var t=_0x5ef0();return(_0x1b0b=function(a,e){return t[a-=476]})(a,e)}function _toPropertyKey(a){var e=_0x1b0b,a=_toPrimitive(a,e(505));return e(519)==_typeof(a)?a:a+""}function _toPrimitive(a,e){var t=_0x1b0b;if(t(481)!=_typeof(a)||!a)return a;var r=a[Symbol[t(511)]];if(void 0===r)return(t(505)===e?String:Number)(a);r=r.call(a,e||t(529));if("object"!=_typeof(r))return r;throw new TypeError(t(509))}(()=>{for(var a=_0x1b0b,e=_0x5ef0();;)try{if(348351==-parseInt(a(501))*(-parseInt(a(484))/2)+parseInt(a(537))/3*(-parseInt(a(517))/4)+-parseInt(a(482))/5+parseInt(a(492))/6+parseInt(a(500))/7*(parseInt(a(478))/8)+-parseInt(a(494))/9+-parseInt(a(488))/10)break;e.push(e.shift())}catch(a){e.push(e.shift())}})(),(()=>{var a,e,s,n=_0x1b0b;function i(e,t){var a=n;e&&Object[a(507)](e)[a(504)](function(a){t[a]&&(t[e[a]]=t[a],delete t[a])})}has[n(512)]||(has[n(512)]=!0,a=[{apiName:n(479),callBack:[{eventName:"success",params:{tempFilePaths:n(476)}}]},{apiName:"saveFile",params:{apFilePath:n(490)},callBack:[{eventName:"success",params:{savedFilePath:n(532)}}]},{apiName:n(487),params:{apFilePath:"filePath"}},{apiName:"getSavedFileInfo",params:{apFilePath:n(496)}},{apiName:"removeSavedFile",params:{apFilePath:n(496)}},{apiName:n(514),params:{text:"data"}},{apiName:"getClipboardData",callBack:[{eventName:"success",params:{data:"text"}}]},{apiName:n(521),params:{url:n(496)}},{apiName:n(531),params:{content:n(530)}},{apiName:n(506),params:{items:"itemList"},callBack:[{eventName:n(489),params:{tapIndex:"index"}}]},{apiName:n(486),params:{fileName:n(513)}},{apiName:"setScreenBrightness",params:{brightness:"value"}},{apiName:n(533),callBack:[{eventName:n(489),params:{value:n(539)}}]},{apiName:n(510),params:{hideAlbum:n(502)},callBack:[{eventName:n(489),params:{result:n(527)}}]},{apiName:n(477),params:{number:n(493)}},{apiName:n(528),params:{content:"title"}},{apiName:n(499),callBack:[{eventName:"success",params:{tempFilePath:n(532)}}]}],e=[{apiName:"getStorageSync",params:{key:1},returnVal:n(520)},{apiName:n(524),params:{key:1,data:2}},{apiName:n(526),params:{key:1}},{apiName:"clearStorageSync"}],s={},a[n(508)](e)[n(504)](function(a){a=a[n(515)];s[a]=has[a]}),a[n(504)](function(e){var t=e.apiName;has[t]=function(){var a=_0x1b0b,n=0<arguments[a(536)]&&void 0!==arguments[0]?arguments[0]:{};return i(e[a(483)],n),e.callBack&&e.callBack.forEach(function(e){var t=a,r=n[e[t(480)]];n[e[t(480)]]=function(a){i(e[t(483)],a),r(a)}}),s[t](n)}}),e[n(504)](function(e){var o=n,p=e[o(515)];has[p]=function(){var t=o,r=0<arguments[t(536)]&&void 0!==arguments[0]?arguments[0]:{},n=[],i=e[t(483)]&&Object[t(507)](e.params)||[],a=(i[t(495)](function(a,e){return i[a]-i[e]}),i[t(504)](function(a){var e=t;r[a]&&n[e(485)](r[a])}),s[p][t(498)](s,n));return e[t(525)]?_defineProperty({},e[t(525)],a):{}}}),s.compressImage=has[n(535)],has.compressImage=function(){var a=n,e=0<arguments[a(536)]&&void 0!==arguments[0]?arguments[0]:{},t=(e[a(534)]=Array[a(491)](e[a(476)])?e[a(476)][0]:"",Number(e.level)),r=(t<=3?e[a(523)]=(100/3*t)[a(497)](0):e[a(518)]=80,e[a(523)]=Number(e[a(523)]),e[a(489)]);return e[a(489)]=function(a){a.apFilePaths=[a.tempFilePath],r(a)},s[a(535)](e)})})();
@@ -1 +1 @@
1
- var _0x47da16=_0x4c50;function _0x4c50(r,e){var a=_0x23c5();return(_0x4c50=function(r,e){return a[r-=332]})(r,e)}(()=>{for(var r=_0x4c50,e=_0x23c5();;)try{if(690734==-parseInt(r(343))*(-parseInt(r(335))/2)+parseInt(r(345))/3+-parseInt(r(344))/4*(-parseInt(r(341))/5)+-parseInt(r(347))/6*(parseInt(r(342))/7)+-parseInt(r(340))/8+parseInt(r(338))/9*(parseInt(r(350))/10)+parseInt(r(339))/11*(-parseInt(r(336))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),Object[_0x47da16(332)](exports,_0x47da16(351),{value:!0}),exports[_0x47da16(333)]=void 0;var babelParser=require(_0x47da16(346)),parseTryCount=0;function babelTransform(e,a){var n=_0x47da16;try{var t=babelParser[n(337)](e,{sourceType:n(349),allowReturnOutsideFunction:!0,plugins:["classProperties"]});return parseTryCount=0,t}catch(r){if(a){if(0===parseTryCount)return t=e[n(348)](0,a-1)+e[n(348)](a,e[n(334)]),parseTryCount++,babelTransform(t,a);if(parseTryCount<3)return t=e[n(348)](0,a)+","+e.substring(a,e[n(334)]),parseTryCount++,babelTransform(t,a);parseTryCount=0}return null}}function _0x23c5(){var r=["330297ZeeACq","227024gtEkhn","843320nZLKBv","14oDwgrQ","1UiwfBH","4uFwqPN","1899858mkokQt","@babel/parser","2167734jkBGxx","substring","unambiguous","269060OJFJAM","__esModule","defineProperty","babelTransform","length","1841914TzbLFr","564VMOMRH","parse","378AcZVqM"];return(_0x23c5=function(){return r})()}exports[_0x47da16(333)]=babelTransform;
1
+ var _0x30d804=_0x42f5;function _0x42f5(r,e){var a=_0x2ab6();return(_0x42f5=function(r,e){return a[r-=216]})(r,e)}(()=>{for(var r=_0x42f5,e=_0x2ab6();;)try{if(583092==+parseInt(r(230))*(parseInt(r(224))/2)+-parseInt(r(227))/3*(-parseInt(r(217))/4)+parseInt(r(229))/5+parseInt(r(221))/6*(-parseInt(r(222))/7)+-parseInt(r(225))/8*(-parseInt(r(231))/9)+-parseInt(r(226))/10*(parseInt(r(232))/11)+-parseInt(r(233))/12*(parseInt(r(218))/13))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),Object[_0x30d804(223)](exports,_0x30d804(216),{value:!0}),exports[_0x30d804(235)]=void 0;var babelParser=require(_0x30d804(234)),parseTryCount=0;function _0x2ab6(){var r=["3755382PtvHsU","7xZDCdo","defineProperty","6GKegrS","8BbsYjw","10bWRThJ","753cgOYpd","length","1661335RbLGCN","321143BFdmGT","2961027EMKwjk","2866666kLPtet","7505736oPKPam","@babel/parser","babelTransform","parse","__esModule","7496pdLwGl","13FRzfqR","substring","classProperties"];return(_0x2ab6=function(){return r})()}function babelTransform(e,a){var t=_0x30d804;try{var n=babelParser[t(236)](e,{sourceType:"unambiguous",allowReturnOutsideFunction:!0,plugins:[t(220)]});return parseTryCount=0,n}catch(r){if(a){if(0===parseTryCount)return n=e[t(219)](0,a-1)+e[t(219)](a,e[t(228)]),parseTryCount++,babelTransform(n,a);if(parseTryCount<3)return n=e[t(219)](0,a)+","+e[t(219)](a,e[t(228)]),parseTryCount++,babelTransform(n,a);parseTryCount=0}return null}}exports[_0x30d804(235)]=babelTransform;
@@ -1 +1 @@
1
- var _0x27c73a=_0x5885,babelParser_1=((()=>{for(var e=_0x5885,r=_0x899a();;)try{if(421678==+parseInt(e(532))+parseInt(e(477))/2*(parseInt(e(498))/3)+parseInt(e(517))/4*(-parseInt(e(491))/5)+-parseInt(e(487))/6*(-parseInt(e(484))/7)+-parseInt(e(534))/8*(parseInt(e(527))/9)+parseInt(e(513))/10+parseInt(e(481))/11*(parseInt(e(502))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x27c73a(478)]=void 0,require(_0x27c73a(497))),babel_traverse_1=require(_0x27c73a(523)),pathTool=require("path"),commonConfig_1=require(_0x27c73a(485)),babelTypes=require(_0x27c73a(494)).types;function _0x5885(e,r){var t=_0x899a();return(_0x5885=function(e,r){return t[e-=476]})(e,r)}function getQaSchemasReg(e){return new RegExp("^"[_0x27c73a(480)](e,"://"))}var currentType,suffixs,importRules=[],visitor={ImportDeclaration:function(e){var r=_0x27c73a;importRules.push({type:"fileImport",module:e.node[r(509)].value,moduleRange:{start:{line:e[r(511)][r(509)].loc.start.line,character:e[r(511)][r(509)][r(483)][r(512)][r(514)]+2},end:{line:e[r(511)][r(509)][r(483)][r(492)][r(488)],character:e[r(511)].source[r(483)].end[r(514)]+2}}})},CallExpression:function(e){var t=_0x27c73a;e[t(511)][t(500)]&&e.node.arguments&&e[t(511)][t(500)][t(510)]===t(526)&&1===e[t(511)].arguments[t(493)]&&importRules[t(518)]({type:t(499),module:e[t(511)][t(489)][0].value,moduleRange:{start:{line:e.node[t(489)][0][t(483)][t(512)][t(488)],character:e[t(511)].arguments[0][t(483)][t(512)][t(514)]+2},end:{line:e[t(511)].arguments[0].loc[t(492)].line,character:e[t(511)].arguments[0].loc.end[t(514)]+2}}}),e[t(511)].callee&&e[t(511)].arguments&&e[t(511)][t(500)].name===t(479)&&1===e[t(511)][t(489)][t(493)]&&babelTypes[t(505)](e[t(511)][t(489)][0])&&e[t(511)][t(489)][0][t(519)]&&0<e[t(511)][t(489)][0].properties[t(493)]&&e.node[t(489)][0][t(519)][t(515)](function(e){var r=t;babelTypes[r(503)](e)&&babelTypes[r(535)](e.key)&&"mixins"===e.key.name&&importRules[r(518)]({type:r(476),module:e[r(495)].name,moduleRange:{start:{line:e[r(483)][r(512)][r(488)],character:e[r(483)].start[r(514)]},end:{line:e.key[r(483)][r(492)][r(488)],character:e[r(495)][r(483)].end[r(514)]}}})})},MemberExpression:function(e){var r=_0x27c73a;e[r(511)][r(496)]&&e.node[r(508)]&&e.node[r(496)][r(510)]===currentType&&!hasParent(e,e[r(511)].object.name)&&importRules.push({type:r(531),module:e[r(511)][r(496)].name,moduleRange:{start:{line:e[r(511)][r(496)][r(483)][r(512)][r(488)],character:e[r(511)][r(496)][r(483)][r(512)][r(514)]},end:{line:e.node.object[r(483)].end[r(488)],character:e[r(511)][r(496)][r(483)][r(492)][r(514)]}},property:e[r(511)][r(508)].name})},Identifier:function(e){var r=_0x27c73a;e[r(511)].name!==currentType||0!==e[r(495)]||hasParent(e,e[r(511)][r(510)])||importRules.push({type:r(531),module:e[r(511)][r(510)],moduleRange:{start:{line:e.node.loc.start[r(488)],character:e[r(511)][r(483)][r(512)][r(514)]},end:{line:e[r(511)][r(483)][r(492)].line,character:e.node[r(483)][r(492)][r(514)]}},property:null})},StringLiteral:function(e){var r,t=_0x27c73a;!e[t(511)][t(501)]||pathTool[t(530)](e[t(511)].value)!==suffixs[t(521)]&&pathTool.extname(e[t(511)].value)!==suffixs[t(524)]||(r=pathTool[t(530)](e.node[t(501)]),importRules[t(518)]({type:"filePath",module:r,moduleRange:{start:{line:e.node.loc[t(492)][t(488)],character:e.node.loc[t(492)][t(514)]-r[t(493)]},end:{line:e.node[t(483)][t(492)][t(488)],character:e[t(511)].loc[t(492)].column}}})),e[t(511)][t(501)]&&getQaSchemasReg(currentType).test(e[t(511)][t(501)])&&importRules[t(518)]({type:t(522),module:""[t(480)](currentType,":"),moduleRange:{start:{line:e[t(511)][t(483)].start[t(488)],character:e[t(511)][t(483)][t(512)][t(514)]},end:{line:e.node[t(483)].start[t(488)],character:e[t(511)].loc[t(512)][t(514)]+5}}})}};function _0x899a(){var e=["default","hxml","wxSchema","@babel/traverse","hjs","ImportDeclaration","require","7329294CXBodo","findParent","CallExpression","extname","wxInterface","238492fXVYSc","scope","8lHgOkx","isIdentifier","mixins","2rvswGQ","getImportRules","Component","concat","605TiGDHG","Identifier","loc","160517NyjwLk","../common/commonConfig","babelTransform","138cfxiMZ","line","arguments","MemberExpression","135NjpXUi","end","length","@babel/core","key","object","./babelParser","594921DmuliM","fileImport","callee","value","43116Mjzbdh","isObjectProperty","StringLiteral","isObjectExpression","projectFileSuffix","splice","property","source","name","node","start","6864960yvqwab","column","forEach","getOwnBinding","90708fGqBjy","push","properties"];return(_0x899a=function(){return e})()}function hasParent(e,t){var a=_0x27c73a,n=!1;return e.getStatementParent()[a(528)](function(e){var r=a;n||e[r(533)][r(516)](t)&&(n=!0)}),n}function clear(){var e=_0x27c73a;importRules[e(507)](0,importRules[e(493)])}function getImportRules(e,r){var t=_0x27c73a,a=2<arguments[t(493)]&&void 0!==arguments[2]&&arguments[2],n=3<arguments[t(493)]?arguments[3]:void 0,a=(currentType=n,suffixs=commonConfig_1[t(506)][n],n=a?{CallExpression:visitor.CallExpression,ImportDeclaration:visitor[t(525)]}:{MemberExpression:visitor[t(490)],StringLiteral:visitor[t(504)],Identifier:visitor[t(482)],CallExpression:visitor[t(529)]},babelParser_1[t(486)](e,r));return clear(),babel_traverse_1[t(520)](a,n),importRules}exports.getImportRules=getImportRules;
1
+ var _0x5d60b7=_0x3c7d,babelParser_1=((()=>{for(var e=_0x3c7d,r=_0x446e();;)try{if(180076==-parseInt(e(156))+-parseInt(e(162))/2*(parseInt(e(149))/3)+parseInt(e(124))/4+parseInt(e(169))/5+parseInt(e(146))/6+-parseInt(e(137))/7+parseInt(e(164))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports.getImportRules=void 0,require(_0x5d60b7(132))),babel_traverse_1=require(_0x5d60b7(129)),pathTool=require("path"),commonConfig_1=require(_0x5d60b7(138)),babelTypes=require(_0x5d60b7(133))[_0x5d60b7(144)];function getQaSchemasReg(e){var r=_0x5d60b7;return new RegExp("^".concat(e,r(119)))}var currentType,suffixs,importRules=[],visitor={ImportDeclaration:function(e){var r=_0x5d60b7;importRules[r(168)]({type:r(145),module:e[r(121)][r(131)][r(122)],moduleRange:{start:{line:e[r(121)][r(131)][r(165)][r(148)].line,character:e[r(121)][r(131)][r(165)][r(148)].column+2},end:{line:e[r(121)][r(131)][r(165)][r(127)].line,character:e[r(121)].source.loc[r(127)].column+2}}})},CallExpression:function(e){var t=_0x5d60b7;e.node[t(155)]&&e.node[t(135)]&&"require"===e.node.callee[t(141)]&&1===e.node[t(135)][t(120)]&&importRules[t(168)]({type:t(145),module:e[t(121)][t(135)][0][t(122)],moduleRange:{start:{line:e[t(121)].arguments[0][t(165)].start[t(126)],character:e[t(121)][t(135)][0][t(165)][t(148)][t(128)]+2},end:{line:e[t(121)][t(135)][0][t(165)][t(127)][t(126)],character:e.node[t(135)][0].loc[t(127)][t(128)]+2}}}),e[t(121)][t(155)]&&e[t(121)][t(135)]&&e[t(121)][t(155)].name===t(150)&&1===e[t(121)][t(135)][t(120)]&&babelTypes[t(153)](e[t(121)][t(135)][0])&&e[t(121)][t(135)][0][t(136)]&&0<e[t(121)].arguments[0][t(136)][t(120)]&&e[t(121)][t(135)][0][t(136)][t(140)](function(e){var r=t;babelTypes[r(154)](e)&&babelTypes[r(143)](e[r(157)])&&"mixins"===e.key.name&&importRules[r(168)]({type:"mixins",module:e[r(157)].name,moduleRange:{start:{line:e[r(165)].start[r(126)],character:e[r(165)][r(148)][r(128)]},end:{line:e.key.loc[r(127)][r(126)],character:e[r(157)][r(165)].end[r(128)]}}})})},MemberExpression:function(e){var r=_0x5d60b7;e.node.object&&e[r(121)][r(125)]&&e[r(121)].object.name===currentType&&!hasParent(e,e[r(121)][r(152)][r(141)])&&importRules[r(168)]({type:r(160),module:e[r(121)][r(152)].name,moduleRange:{start:{line:e.node[r(152)][r(165)][r(148)].line,character:e[r(121)].object[r(165)][r(148)][r(128)]},end:{line:e.node[r(152)][r(165)][r(127)][r(126)],character:e.node.object[r(165)][r(127)][r(128)]}},property:e[r(121)].property[r(141)]})},Identifier:function(e){var r=_0x5d60b7;e[r(121)].name!==currentType||0!==e.key||hasParent(e,e[r(121)][r(141)])||importRules[r(168)]({type:"wxInterface",module:e[r(121)][r(141)],moduleRange:{start:{line:e[r(121)].loc[r(148)][r(126)],character:e[r(121)][r(165)][r(148)].column},end:{line:e.node[r(165)][r(127)][r(126)],character:e.node.loc[r(127)][r(128)]}},property:null})},StringLiteral:function(e){var r,t=_0x5d60b7;!e[t(121)][t(122)]||pathTool[t(167)](e[t(121)].value)!==suffixs[t(130)]&&pathTool[t(167)](e[t(121)][t(122)])!==suffixs.hjs||(r=pathTool[t(167)](e.node[t(122)]),importRules.push({type:"filePath",module:r,moduleRange:{start:{line:e[t(121)][t(165)][t(127)][t(126)],character:e[t(121)][t(165)][t(127)][t(128)]-r.length},end:{line:e.node.loc[t(127)][t(126)],character:e[t(121)][t(165)][t(127)].column}}})),e[t(121)].value&&getQaSchemasReg(currentType)[t(139)](e.node[t(122)])&&importRules[t(168)]({type:t(151),module:""[t(170)](currentType,":"),moduleRange:{start:{line:e[t(121)][t(165)][t(148)].line,character:e[t(121)][t(165)].start.column},end:{line:e[t(121)].loc[t(148)][t(126)],character:e[t(121)][t(165)][t(148)][t(128)]+5}}})}};function hasParent(e,t){var n=_0x5d60b7,a=!1;return e[n(163)]()[n(166)](function(e){var r=n;a||e[r(147)][r(159)](t)&&(a=!0)}),a}function _0x3c7d(e,r){var t=_0x446e();return(_0x3c7d=function(e,r){return t[e-=119]})(e,r)}function clear(){var e=_0x5d60b7;importRules[e(161)](0,importRules[e(120)])}function _0x446e(){var e=["node","value","ImportDeclaration","1413928IkYepV","property","line","end","column","@babel/traverse","hxml","source","./babelParser","@babel/core","CallExpression","arguments","properties","1039542juWfeF","../common/commonConfig","test","forEach","name","babelTransform","isIdentifier","types","fileImport","1037730cskvUz","scope","start","78lzHlzU","Component","wxSchema","object","isObjectExpression","isObjectProperty","callee","290410ypOPpd","key","MemberExpression","getOwnBinding","wxInterface","splice","27182AcaYuK","getStatementParent","2886888dcdeuR","loc","findParent","extname","push","425300yqaNNE","concat","://","length"];return(_0x446e=function(){return e})()}function getImportRules(e,r){var t=_0x5d60b7,n=2<arguments[t(120)]&&void 0!==arguments[2]&&arguments[2],a=3<arguments[t(120)]?arguments[3]:void 0,n=(currentType=a,suffixs=commonConfig_1.projectFileSuffix[a],a=n?{CallExpression:visitor[t(134)],ImportDeclaration:visitor[t(123)]}:{MemberExpression:visitor[t(158)],StringLiteral:visitor.StringLiteral,Identifier:visitor.Identifier,CallExpression:visitor[t(134)]},babelParser_1[t(142)](e,r));return clear(),babel_traverse_1.default(n,a),importRules}exports.getImportRules=getImportRules;
@@ -1 +1 @@
1
- var _0x4b0926=_0x49d2;function _0x49d2(t,e){var r=_0x16bb();return(_0x49d2=function(t,e){return r[t-=269]})(t,e)}(()=>{for(var t=_0x49d2,e=_0x16bb();;)try{if(563338==-parseInt(t(305))+parseInt(t(304))/2*(-parseInt(t(309))/3)+parseInt(t(315))/4*(parseInt(t(307))/5)+-parseInt(t(314))/6*(-parseInt(t(293))/7)+parseInt(t(301))/8*(-parseInt(t(273))/9)+parseInt(t(311))/10+parseInt(t(303))/11*(parseInt(t(324))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),Object[_0x4b0926(274)](exports,_0x4b0926(292),{value:!0}),exports.wxssParser=exports.importFileReg=exports[_0x4b0926(278)]=void 0;var postcss=require(_0x4b0926(280)),path=require(_0x4b0926(291));function wxssParser(e,r,i,p){var c=_0x4b0926,n=[];try{n=postcss.parse(e).nodes[c(313)](function(t){var e=c;return t[e(295)]===e(289)&&"import"===t[e(276)]})[c(297)](function(t){var e=c;return{type:e(319),import:t[e(312)],position:{start:t[e(323)].start,end:t[e(323)].end}}})}catch(t){for(var s=e[c(286)](exports[c(278)]),o=0,a=0;s=exports[c(278)][c(287)](e);){var u,a=e.indexOf(s[0],a),x=checkIsInComment(s[0],e,o,s[c(284)]);x[c(281)]?(o=s[c(284)]+x[c(320)],a+=x[c(320)]):(o=s.index+s[0][c(290)],(x=s[0][c(286)](exports[c(322)]))&&(u=r[c(299)](a+x[c(284)]),n[c(272)]({type:c(319),uri:r[c(288)],position:{start:{line:u[c(283)]+1,column:u[c(294)]},end:{line:u[c(283)]+1,column:u[c(294)]+x[0][c(290)]+2}},value:x?x[1]:"",import:x[0]})),a+=s[0][c(290)])}}var f=[];return n.forEach(function(n){var s,t,o,a=c;n[a(295)]===a(319)?(t={line:n[a(271)][a(310)].line-1,character:n[a(271)].end[a(321)]-2},s=r[a(270)](t),t=n[a(319)][a(296)](/[\r\n]/gi," ").split(" "),o=0,t[a(279)](function(t){var e,r=a,t=t[r(275)](1,t[r(290)]-1);path.extname(t)===i&&(e=n[r(319)][r(316)](t,o),o=e,f.push({type:r(319),import:t,endOffset:s-(n.import[r(290)]-e-t[r(290)])+1}))})):p===a(308)&&getSelectorRule(n,r,p,f)}),f}function _0x16bb(){var t=["name","selectors","importReg","forEach","postcss","isInComment","((?:^|\\n|\\r)\\s*\\/\\*[\\s\\S]*?","line","index","selector","match","exec","uri","atrule","length","path","__esModule","3143PGJPHn","character","type","replace","map","start","positionAt","[\\s\\S]*?\\*\\/\\s*(?:\\r|\\n|$)|((?:^|\\n|\\r)\\s*\\/\\/.*","66392DmEXqt","split","8590978dhQSza","2kzahZP","557677XJzPNG","concat","3060LsZZif","swan","955047WYaxdb","end","978120uVdtyJ","params","filter","7866VjNCdL","1064uLKyOF","indexOf","getText","test","import","restLength","column","importFileReg","source","12adfuKt",".*(?:\\r|\\n|$)))","offsetAt","position","push","207AFuYkf","defineProperty","substring"];return(_0x16bb=function(){return t})()}function getSelectorRule(t,e,r,n){var s,o,a,i,p,c=_0x4b0926;"rule"===t[c(295)]?(s=e[c(317)](),o=new RegExp("^"[c(306)](r,"-")),a=t[c(277)],i={line:t[c(271)].start[c(283)]-1,character:t.position[c(298)][c(321)]-1},p=e[c(270)](i),a&&a[c(279)](function(t){var r=c;t[r(302)](/\s+/)[r(279)](function(t){var e=r;p=s[e(316)](t,p),o[e(318)](t)&&n[e(272)]({type:e(285),selector:t,startOffset:p}),p+=t[e(290)]})})):"media"===t[c(295)]&&t.rules[c(279)](function(t){getSelectorRule(t,e,r,n)})}function checkIsInComment(t,e,r,n){for(var s,o=_0x4b0926,a=new RegExp(o(282)[o(306)](t,o(300)).concat(t,o(269)),"g");s=a[o(287)](e[o(275)](r));){if(s[o(284)]+r<n&&s[o(284)]+r+s[0][o(290)]>n)return{isInComment:!0,restLength:s.index+r+s[0].length-n};if(s[o(284)]+r>n)break}return{isInComment:!1,restLength:0}}exports.importReg=/\@import\s+[\'\"].*[\'\"](\s+.*(\s*[and|not|only|or|\,]\s*\(.*\))*)?\s*\;?/g,exports[_0x4b0926(322)]=/['"]\s*([^()]+?)\s*['"]/,exports.wxssParser=wxssParser;
1
+ var _0x4f5672=_0x3521;function _0x5bdb(){var e=["selectors","map","offsetAt","atrule","split","replace","start","restLength","importReg","rules","filter","selector","concat","exec","source","5GxerVr","forEach","match","2753130QhvAiu","143481VDsdFd","isInComment","column","nodes","wxssParser","226748NFQhak","type","1998786arZOao","end","character","uri","19663gxCDwm","importFileReg","((?:^|\\n|\\r)\\s*\\/\\*[\\s\\S]*?","parse","swan","import","line","1024dVzMTq","indexOf","4KSACIc","push","4282281lTIQoq","55074MhwtKu","rule","index","position","substring","test","extname","postcss","path","length"];return(_0x5bdb=function(){return e})()}(()=>{for(var e=_0x3521,t=_0x5bdb();;)try{if(380533==+parseInt(e(251))+parseInt(e(269))/2+-parseInt(e(246))/3*(parseInt(e(266))/4)+parseInt(e(242))/5*(parseInt(e(253))/6)+-parseInt(e(257))/7*(parseInt(e(264))/8)+parseInt(e(268))/9+-parseInt(e(245))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x4f5672(250)]=exports[_0x4f5672(258)]=exports[_0x4f5672(235)]=void 0;var postcss=require(_0x4f5672(224)),path=require(_0x4f5672(225));function _0x3521(e,t){var r=_0x5bdb();return(_0x3521=function(e,t){return r[e-=218]})(e,t)}function wxssParser(t,r,i,p){var c=_0x4f5672,n=[];try{n=postcss[c(260)](t)[c(249)][c(237)](function(e){var t=c;return e[t(252)]===t(230)&&"import"===e.name})[c(228)](function(e){var t=c;return{type:t(262),import:e.params,position:{start:e[t(241)][t(233)],end:e[t(241)].end}}})}catch(e){for(var s=t[c(244)](exports[c(235)]),o=0,a=0;s=exports[c(235)][c(240)](t);){var u,a=t[c(265)](s[0],a),f=checkIsInComment(s[0],t,o,s.index);f[c(247)]?(o=s[c(219)]+f.restLength,a+=f[c(234)]):(o=s[c(219)]+s[0][c(226)],(f=s[0][c(244)](exports[c(258)]))&&(u=r.positionAt(a+f[c(219)]),n.push({type:c(262),uri:r[c(256)],position:{start:{line:u[c(263)]+1,column:u.character},end:{line:u.line+1,column:u[c(255)]+f[0][c(226)]+2}},value:f?f[1]:"",import:f[0]})),a+=s[0].length)}}var x=[];return n[c(243)](function(n){var s,e,o,a=c;n[a(252)]===a(262)?(e={line:n[a(220)][a(254)][a(263)]-1,character:n[a(220)][a(254)][a(248)]-2},s=r[a(229)](e),e=n[a(262)][a(232)](/[\r\n]/gi," ")[a(231)](" "),o=0,e[a(243)](function(e){var t,r=a,e=e[r(221)](1,e[r(226)]-1);path[r(223)](e)===i&&(t=n[r(262)].indexOf(e,o),o=t,x[r(267)]({type:r(262),import:e,endOffset:s-(n[r(262)][r(226)]-t-e.length)+1}))})):p===a(261)&&getSelectorRule(n,r,p,x)}),x}function getSelectorRule(e,t,r,n){var s,o,a,i,p,c=_0x4f5672;e[c(252)]===c(218)?(s=t.getText(),o=new RegExp("^"[c(239)](r,"-")),a=e[c(227)],i={line:e[c(220)].start.line-1,character:e[c(220)][c(233)].column-1},p=t[c(229)](i),a&&a[c(243)](function(e){var r=c;e[r(231)](/\s+/)[r(243)](function(e){var t=r;p=s[t(265)](e,p),o[t(222)](e)&&n[t(267)]({type:t(238),selector:e,startOffset:p}),p+=e.length})})):"media"===e[c(252)]&&e[c(236)][c(243)](function(e){getSelectorRule(e,t,r,n)})}function checkIsInComment(e,t,r,n){for(var s,o=_0x4f5672,a=new RegExp(o(259)[o(239)](e,"[\\s\\S]*?\\*\\/\\s*(?:\\r|\\n|$)|((?:^|\\n|\\r)\\s*\\/\\/.*")[o(239)](e,".*(?:\\r|\\n|$)))"),"g");s=a[o(240)](t[o(221)](r));){if(s[o(219)]+r<n&&s[o(219)]+r+s[0].length>n)return{isInComment:!0,restLength:s.index+r+s[0][o(226)]-n};if(s[o(219)]+r>n)break}return{isInComment:!1,restLength:0}}exports[_0x4f5672(235)]=/\@import\s+[\'\"].*[\'\"](\s+.*(\s*[and|not|only|or|\,]\s*\(.*\))*)?\s*\;?/g,exports[_0x4f5672(258)]=/['"]\s*([^()]+?)\s*['"]/,exports[_0x4f5672(250)]=wxssParser;
package/lib/bin/ascf.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var _global$_ascfCliProgr,_0x465b0f=_0x4fc1;function _typeof(t){var e=_0x4fc1;return(_typeof=e(278)==typeof Symbol&&e(277)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=e;return t&&"function"==typeof Symbol&&t[r(262)]===Symbol&&t!==Symbol.prototype?r(277):typeof t})(t)}function _regeneratorRuntime(){var u=_0x4fc1;_regeneratorRuntime=function(){return c};var s,c={},t=Object[u(338)],l=t[u(239)],p=Object[u(337)]||function(t,r,e){var n=u;t[r]=e[n(236)]},r=u(278)==typeof Symbol?Symbol:{},i=r[u(241)]||"@@iterator",e=r[u(259)]||u(334),n=r[u(307)]||u(283);function o(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o,i,a,c,f=u,r=r&&r[f(338)]instanceof m?r:m,r=Object[f(254)](r[f(338)]),n=new S(n||[]);return p(r,f(233),{value:(o=t,i=e,a=n,c=v,function(t,r){var e=_0x4fc1;if(c===b)throw Error(e(249));if(c===y){if(e(273)===t)throw r;return{value:s,done:!0}}for(a.method=t,a.arg=r;;){var n=a.delegate;if(n){n=function t(r,e){var n=u,o=e[n(342)],i=r[n(241)][o];if(i===s)return e.delegate=null,n(273)===o&&r[n(241)][n(261)]&&(e[n(342)]=n(261),e[n(328)]=s,t(r,e),n(273)===e[n(342)])||n(261)!==o&&(e.method=n(273),e[n(328)]=new TypeError(n(288)+o+"' method")),g;o=h(i,r[n(241)],e[n(328)]);if(n(273)===o[n(310)])return e[n(342)]=n(273),e[n(328)]=o.arg,e[n(274)]=null,g;i=o[n(328)];return i?i.done?(e[r[n(298)]]=i.value,e[n(299)]=r.nextLoc,"return"!==e.method&&(e[n(342)]=n(299),e.arg=s),e[n(274)]=null,g):i:(e[n(342)]=n(273),e[n(328)]=new TypeError(n(296)),e[n(274)]=null,g)}(n,a);if(n){if(n===g)continue;return n}}if(e(299)===a[e(342)])a[e(244)]=a._sent=a[e(328)];else if(e(273)===a[e(342)]){if(c===v)throw c=y,a[e(328)];a[e(247)](a[e(328)])}else e(261)===a.method&&a[e(282)](e(261),a[e(328)]);c=b;n=h(o,i,a);if(e(317)===n[e(310)]){if(c=a[e(243)]?y:_,n[e(328)]===g)continue;return{value:n[e(328)],done:a[e(243)]}}"throw"===n.type&&(c=y,a[e(342)]=e(273),a[e(328)]=n[e(328)])}})}),r}function h(t,r,e){var n=u;try{return{type:n(317),arg:t[n(324)](r,e)}}catch(t){return{type:n(273),arg:t}}}c[u(258)]=f;var v=u(333),_="suspendedYield",b=u(325),y=u(341),g={};function m(){}function a(){}function x(){}var r={},d=(o(r,i,function(){return this}),Object[u(312)]),d=d&&d(d(P([]))),w=(d&&d!==t&&l[u(324)](d,i)&&(r=d),x[u(338)]=m[u(338)]=Object[u(254)](r));function j(t){var r=u;[r(299),r(273),"return"].forEach(function(r){o(t,r,function(t){return this[_0x4fc1(233)](r,t)})})}function E(c,f){var r,o=u;p(this,o(233),{value:function(e,n){function t(){return new f(function(t,r){!function r(t,e,n,o){var i,a=_0x4fc1,t=h(c[t],c,e);if(a(273)!==t[a(310)])return(e=(i=t.arg)[a(236)])&&"object"==_typeof(e)&&l.call(e,"__await")?f[a(340)](e.__await)[a(257)](function(t){r("next",t,n,o)},function(t){r("throw",t,n,o)}):f[a(340)](e)[a(257)](function(t){i.value=t,n(i)},function(t){return r(a(273),t,n,o)});o(t[a(328)])}(e,n,t,r)})}return r=r?r[o(257)](t,t):t()}})}function L(t){var r=u,e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e[r(240)]=t[2],e[r(318)]=t[3]),this[r(263)][r(297)](e)}function O(t){var r=u,e=t[r(295)]||{};e[r(310)]=r(317),delete e[r(328)],t[r(295)]=e}function S(t){var r=u;this[r(263)]=[{tryLoc:r(279)}],t[r(290)](L,this),this[r(291)](!0)}function P(e){var n=u;if(e||""===e){var o,t=e[i];if(t)return t[n(324)](e);if("function"==typeof e.next)return e;if(!isNaN(e[n(238)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(238)];)if(l[r(324)](e,o))return t.value=e[o],t.done=!1,t;return t[r(236)]=s,t[r(243)]=!0,t})[n(299)]=t}throw new TypeError(_typeof(e)+" is not iterable")}return a[u(338)]=x,p(w,u(262),{value:x,configurable:!0}),p(x,u(262),{value:a,configurable:!0}),a[u(286)]=o(x,n,"GeneratorFunction"),c[u(329)]=function(t){var r=u,t="function"==typeof t&&t.constructor;return!!t&&(t===a||r(336)===(t.displayName||t.name))},c.mark=function(t){var r=u;return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t[r(320)]=x,o(t,n,r(336))),t[r(338)]=Object[r(254)](w),t},c[u(265)]=function(t){return{__await:t}},j(E[u(338)]),o(E[u(338)],e,function(){return this}),c[u(322)]=E,c[u(335)]=function(t,r,e,n,o){var i=u,a=(void 0===o&&(o=Promise),new E(f(t,r,e,n),o));return c[i(329)](r)?a:a.next().then(function(t){var r=i;return t[r(243)]?t[r(236)]:a[r(299)]()})},j(w),o(w,n,u(332)),o(w,i,function(){return this}),o(w,u(293),function(){return u(271)}),c[u(251)]=function(t){var r,n=u,o=Object(t),i=[];for(r in o)i[n(297)](r);return i[n(331)](),function t(){for(var r=n;i.length;){var e=i[r(260)]();if(e in o)return t[r(236)]=e,t[r(243)]=!1,t}return t[r(243)]=!0,t}},c[u(280)]=P,S[u(338)]={constructor:S,reset:function(t){var r=u;if(this.prev=0,this[r(299)]=0,this[r(244)]=this[r(343)]=s,this.done=!1,this[r(274)]=null,this.method=r(299),this[r(328)]=s,this[r(263)].forEach(O),!t)for(var e in this)"t"===e[r(272)](0)&&l[r(324)](this,e)&&!isNaN(+e.slice(1))&&(this[e]=s)},stop:function(){var t=u,r=(this[t(243)]=!0,this[t(263)][0][t(295)]);if(t(273)===r[t(310)])throw r.arg;return this[t(248)]},dispatchException:function(n){var o=u;if(this[o(243)])throw n;var i=this;function t(t,r){var e=o;return a[e(310)]=e(273),a[e(328)]=n,i[e(299)]=t,r&&(i[e(342)]=e(299),i[e(328)]=s),!!r}for(var r=this[o(263)].length-1;0<=r;--r){var e=this[o(263)][r],a=e[o(295)];if("root"===e[o(302)])return t(o(237));if(e.tryLoc<=this[o(319)]){var c=l[o(324)](e,"catchLoc"),f=l[o(324)](e,o(240));if(c&&f){if(this[o(319)]<e[o(326)])return t(e[o(326)],!0);if(this.prev<e[o(240)])return t(e[o(240)])}else if(c){if(this[o(319)]<e.catchLoc)return t(e[o(326)],!0)}else{if(!f)throw Error(o(294));if(this[o(319)]<e[o(240)])return t(e.finallyLoc)}}}},abrupt:function(t,r){for(var e=u,n=this[e(263)].length-1;0<=n;--n){var o=this[e(263)][n];if(o[e(302)]<=this[e(319)]&&l[e(324)](o,e(240))&&this[e(319)]<o[e(240)]){var i=o;break}}var a=(i=i&&(e(256)===t||e(339)===t)&&i.tryLoc<=r&&r<=i[e(240)]?null:i)?i.completion:{};return a.type=t,a[e(328)]=r,i?(this[e(342)]=e(299),this[e(299)]=i.finallyLoc,g):this.complete(a)},complete:function(t,r){var e=u;if(e(273)===t[e(310)])throw t.arg;return e(256)===t.type||e(339)===t[e(310)]?this[e(299)]=t.arg:"return"===t[e(310)]?(this[e(248)]=this[e(328)]=t.arg,this[e(342)]=e(261),this.next="end"):e(317)===t[e(310)]&&r&&(this[e(299)]=r),g},finish:function(t){for(var r=u,e=this.tryEntries[r(238)]-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this[r(304)](n.completion,n[r(318)]),O(n),g}},catch:function(t){for(var r=u,e=this.tryEntries[r(238)]-1;0<=e;--e){var n,o,i=this[r(263)][e];if(i.tryLoc===t)return n=i[r(295)],r(273)===n[r(310)]&&(o=n.arg,O(i)),o}throw Error("illegal catch attempt")},delegateYield:function(t,r,e){var n=u;return this[n(274)]={iterator:P(t),resultName:r,nextLoc:e},n(299)===this[n(342)]&&(this[n(328)]=s),g}},c}function _0x4fc1(t,r){var e=_0x59a8();return(_0x4fc1=function(t,r){return e[t-=233]})(t,r)}function asyncGeneratorStep(t,r,e,n,o,i,a){var c=_0x4fc1;try{var f=t[i](a),u=f[c(236)]}catch(t){return void e(t)}f[c(243)]?r(u):Promise[c(340)](u)[c(257)](n,o)}function _asyncToGenerator(f){return function(){var t=this,c=arguments;return new Promise(function(r,e){var n=_0x4fc1,o=f[n(266)](t,c);function i(t){asyncGeneratorStep(o,r,e,i,a,n(299),t)}function a(t){asyncGeneratorStep(o,r,e,i,a,n(273),t)}i(void 0)})}}(()=>{for(var t=_0x4fc1,r=_0x59a8();;)try{if(864890==-parseInt(t(285))+-parseInt(t(253))/2+parseInt(t(301))/3*(-parseInt(t(305))/4)+parseInt(t(316))/5+parseInt(t(309))/6*(parseInt(t(311))/7)+parseInt(t(284))/8+parseInt(t(242))/9*(parseInt(t(275))/10))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var ascf=require(_0x465b0f(315)),_require=require("commander"),Command=_require[_0x465b0f(327)],pkg=require(_0x465b0f(281)),program=new Command;function _0x59a8(){var t=["wrap","asyncIterator","pop","return","constructor","tryEntries","compile <projectRoot>","awrap","apply","Environment is development","parse","-o, --output <output-directory>","Clear build resource","[object Generator]","charAt","throw","delegate","50BJUxVN","action","symbol","function","root","values","../../package.json","abrupt","@@toStringTag","3230288XYkgDE","148544fujAHV","displayName","stop","The iterator does not provide a '","Compile ascf project","forEach","reset","description","toString","try statement without catch or finally","completion","iterator result is not an object","push","resultName","next","Validate path","2288859UOSfAn","tryLoc","--debug","complete","4ElMyMK","Clear convert output path","toStringTag","-m, --mode","9678sFYTDE","type","1295xVcaet","getPrototypeOf","convert","_ascfCliProgram","../index","573890lcvPpf","normal","afterLoc","prev","__proto__","-w, --watch","AsyncIterator","option","call","executing","catchLoc","Command","arg","isGeneratorFunction","mark","reverse","Generator","suspendedStart","@@asyncIterator","async","GeneratorFunction","defineProperty","prototype","continue","resolve","completed","method","_sent","_invoke","opts","-c, --clear","value","end","length","hasOwnProperty","finallyLoc","iterator","4458330GNzxog","done","sent","debug","requiredOption","dispatchException","rval","Generator is already running","command","keys","-va, --validate","3034864kCVLPF","create","argv","break","then"];return(_0x59a8=function(){return t})()}program.version(pkg.version)[_0x465b0f(292)]("ascf toolkit convert and compile ascf project")[_0x465b0f(323)](_0x465b0f(303),"enable debug logging"),program[_0x465b0f(250)]("convert").description("Convert miniprogram project to ascf project")[_0x465b0f(246)]("-i, --input <input-directory>")[_0x465b0f(246)](_0x465b0f(269))[_0x465b0f(323)]("-c, --clear",_0x465b0f(306))[_0x465b0f(323)](_0x465b0f(252),_0x465b0f(300))[_0x465b0f(276)]((()=>{var r=_0x465b0f,e=_asyncToGenerator(_regeneratorRuntime()[r(330)](function t(e){return _regeneratorRuntime().wrap(function(t){for(var r=_0x4fc1;;)switch(t[r(319)]=t[r(299)]){case 0:return t[r(299)]=2,ascf[r(313)](e);case 2:case r(237):return t[r(287)]()}},t)}));return function(t){return e[r(266)](this,arguments)}})()),program[_0x465b0f(250)](_0x465b0f(264))[_0x465b0f(292)](_0x465b0f(289))[_0x465b0f(323)]("-p, --progress","Show build progress")[_0x465b0f(323)](_0x465b0f(321),"Watch for changes")[_0x465b0f(323)](_0x465b0f(308),_0x465b0f(267)).option(_0x465b0f(235),_0x465b0f(270)).action((()=>{var i=_0x465b0f,e=_asyncToGenerator(_regeneratorRuntime()[i(330)](function t(e,n){var o=i;return _regeneratorRuntime()[o(258)](function(t){for(var r=o;;)switch(t[r(319)]=t[r(299)]){case 0:return t[r(299)]=2,ascf.compile(e,n);case 2:case r(237):return t[r(287)]()}},t)}));return function(t,r){return e[i(266)](this,arguments)}})()),program[_0x465b0f(268)](process[_0x465b0f(255)]),global[_0x465b0f(314)]=program,global._ascfDebug=!(null==(_global$_ascfCliProgr=global[_0x465b0f(314)][_0x465b0f(234)]())||!_global$_ascfCliProgr[_0x465b0f(245)]);
2
+ function _0x52e0(){var t=["continue","next","awrap","end","136409uvaWqs","completed","call","[object Generator]","toString","tryLoc","../../package.json","nextLoc","parse","name","' method","_invoke","397420OwRzxS","pop","rval","hasOwnProperty","1999242jHQOPi","method","displayName","compile <projectRoot>","reverse","Clear convert output path","159560iYtkDP","command","finallyLoc","@@asyncIterator","855864VHAnTf","charAt","-m, --mode","_sent","Generator","toStringTag","push","async","getPrototypeOf","requiredOption","../index","return","try statement without catch or finally","suspendedStart","setPrototypeOf","mark","then","__proto__","break","Show build progress","value","stop","prev","create","__await","Validate path","abrupt","normal","693itNaMX","iterator result is not an object","option","13053yHiRWR","ascf toolkit convert and compile ascf project","-w, --watch","isGeneratorFunction","arg"," is not iterable","reset","forEach","Command","illegal catch attempt","delegate","Environment is development","description","debug","symbol","keys","AsyncIterator","defineProperty","action","wrap","afterLoc","convert","-i, --input <input-directory>","complete","resultName","opts","prototype","Generator is already running","commander","Watch for changes","completion","_ascfDebug","-p, --progress","iterator","Convert miniprogram project to ascf project","asyncIterator","dispatchException","slice","sent","type","_ascfCliProgram","values","done","constructor","version","tryEntries","--debug","root","apply","length","function","@@toStringTag","throw","380RTWsOP","object","The iterator does not provide a '","-va, --validate","4482317OugzDV","catchLoc","-o, --output <output-directory>"];return(_0x52e0=function(){return t})()}function _0x5efd(t,r){var e=_0x52e0();return(_0x5efd=function(t,r){return e[t-=198]})(t,r)}var _global$_ascfCliProgr,_0x4c6e3a=_0x5efd;function _typeof(t){var e=_0x5efd;return(_typeof="function"==typeof Symbol&&e(248)==typeof Symbol[e(267)]?function(t){return typeof t}:function(t){var r=e;return t&&r(284)==typeof Symbol&&t[r(277)]===Symbol&&t!==Symbol[r(260)]?r(248):typeof t})(t)}function _regeneratorRuntime(){var f=_0x5efd;_regeneratorRuntime=function(){return c};var s,c={},t=Object[f(260)],l=t[f(313)],p=Object.defineProperty||function(t,r,e){var n=f;t[r]=e[n(223)]},r=f(284)==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",e=r[f(269)]||f(202),n=r[f(208)]||f(285);function o(t,r,e){return Object[f(251)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o,a,i,c,u=f,r=r&&r[u(260)]instanceof x?r:x,r=Object.create(r[u(260)]),u=new L(n||[]);return p(r,"_invoke",{value:(o=t,a=e,i=u,c=v,function(t,r){var e=_0x5efd;if(c===y)throw Error(e(261));if(c===m){if(e(286)===t)throw r;return{value:s,done:!0}}for(i.method=t,i[e(238)]=r;;){var n=i[e(244)];if(n){n=function t(r,e){var n=f,o=e.method,a=r[n(267)][o];if(a===s)return e.delegate=null,n(286)===o&&r[n(267)][n(214)]&&(e[n(315)]=n(214),e[n(238)]=s,t(r,e),n(286)===e[n(315)])||n(214)!==o&&(e.method="throw",e.arg=new TypeError(n(289)+o+n(308))),d;o=h(a,r.iterator,e[n(238)]);if(n(286)===o[n(273)])return e.method=n(286),e.arg=o.arg,e[n(244)]=null,d;a=o[n(238)];return a?a[n(276)]?(e[r[n(258)]]=a[n(223)],e.next=r[n(305)],n(214)!==e[n(315)]&&(e[n(315)]=n(295),e.arg=s),e.delegate=null,d):a:(e[n(315)]="throw",e[n(238)]=new TypeError(n(232)),e[n(244)]=null,d)}(n,i);if(n){if(n===d)continue;return n}}if(e(295)===i[e(315)])i.sent=i._sent=i[e(238)];else if("throw"===i[e(315)]){if(c===v)throw c=m,i[e(238)];i[e(270)](i[e(238)])}else e(214)===i[e(315)]&&i[e(229)](e(214),i[e(238)]);c=y;n=h(o,a,i);if(e(230)===n[e(273)]){if(c=i[e(276)]?m:_,n[e(238)]===d)continue;return{value:n[e(238)],done:i[e(276)]}}e(286)===n[e(273)]&&(c=m,i.method=e(286),i.arg=n.arg)}})}),r}function h(t,r,e){var n=f;try{return{type:"normal",arg:t[n(300)](r,e)}}catch(t){return{type:n(286),arg:t}}}c[f(253)]=u;var v=f(216),_="suspendedYield",y="executing",m=f(299),d={};function x(){}function i(){}function g(){}var r={},b=(o(r,a,function(){return this}),Object[f(211)]),b=b&&b(b(k([]))),w=(b&&b!==t&&l[f(300)](b,a)&&(r=b),g.prototype=x[f(260)]=Object[f(226)](r));function j(t){var r=f;["next",r(286),r(214)][r(241)](function(r){o(t,r,function(t){return this[_0x5efd(309)](r,t)})})}function O(c,u){var r;p(this,f(309),{value:function(e,n){function t(){return new u(function(t,r){!function r(t,e,n,o){var a,i=_0x5efd,t=h(c[t],c,e);if(i(286)!==t[i(273)])return(e=(a=t[i(238)])[i(223)])&&i(288)==_typeof(e)&&l.call(e,i(227))?u.resolve(e[i(227)])[i(219)](function(t){r(i(295),t,n,o)},function(t){r(i(286),t,n,o)}):u.resolve(e)[i(219)](function(t){a[i(223)]=t,n(a)},function(t){return r(i(286),t,n,o)});o(t[i(238)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function P(t){var r=f,e={tryLoc:t[0]};1 in t&&(e[r(292)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(254)]=t[3]),this[r(279)][r(209)](e)}function S(t){var r=f,e=t.completion||{};e.type=r(230),delete e.arg,t.completion=e}function L(t){var r=f;this[r(279)]=[{tryLoc:"root"}],t[r(241)](P,this),this[r(240)](!0)}function k(e){var n=f;if(e||""===e){var o,t=e[a];if(t)return t[n(300)](e);if(n(284)==typeof e[n(295)])return e;if(!isNaN(e[n(283)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(283)];)if(l.call(e,o))return t[r(223)]=e[o],t[r(276)]=!1,t;return t[r(223)]=s,t[r(276)]=!0,t}).next=t}throw new TypeError(_typeof(e)+n(239))}return i[f(260)]=g,p(w,f(277),{value:g,configurable:!0}),p(g,"constructor",{value:i,configurable:!0}),i[f(316)]=o(g,n,"GeneratorFunction"),c[f(237)]=function(t){var r=f,t=r(284)==typeof t&&t.constructor;return!!t&&(t===i||"GeneratorFunction"===(t[r(316)]||t[r(307)]))},c[f(218)]=function(t){var r=f;return Object.setPrototypeOf?Object[r(217)](t,g):(t[r(220)]=g,o(t,n,"GeneratorFunction")),t[r(260)]=Object.create(w),t},c[f(296)]=function(t){return{__await:t}},j(O.prototype),o(O[f(260)],e,function(){return this}),c[f(250)]=O,c[f(210)]=function(t,r,e,n,o){var a=f,i=(void 0===o&&(o=Promise),new O(u(t,r,e,n),o));return c.isGeneratorFunction(r)?i:i[a(295)]()[a(219)](function(t){var r=a;return t[r(276)]?t.value:i[r(295)]()})},j(w),o(w,n,f(207)),o(w,a,function(){return this}),o(w,f(302),function(){return f(301)}),c[f(249)]=function(t){var r,n=f,o=Object(t),a=[];for(r in o)a[n(209)](r);return a[n(318)](),function t(){for(var r=n;a[r(283)];){var e=a[r(311)]();if(e in o)return t[r(223)]=e,t[r(276)]=!1,t}return t.done=!0,t}},c[f(275)]=k,L[f(260)]={constructor:L,reset:function(t){var r=f;if(this[r(225)]=0,this[r(295)]=0,this[r(272)]=this[r(206)]=s,this[r(276)]=!1,this[r(244)]=null,this[r(315)]="next",this[r(238)]=s,this.tryEntries[r(241)](S),!t)for(var e in this)"t"===e[r(204)](0)&&l[r(300)](this,e)&&!isNaN(+e[r(271)](1))&&(this[e]=s)},stop:function(){var t=f,r=(this[t(276)]=!0,this[t(279)][0][t(264)]);if(t(286)===r[t(273)])throw r[t(238)];return this[t(312)]},dispatchException:function(n){var o=f;if(this[o(276)])throw n;var a=this;function t(t,r){var e=o;return i[e(273)]=e(286),i[e(238)]=n,a[e(295)]=t,r&&(a.method=e(295),a[e(238)]=s),!!r}for(var r=this.tryEntries[o(283)]-1;0<=r;--r){var e=this[o(279)][r],i=e[o(264)];if(o(281)===e[o(303)])return t(o(297));if(e[o(303)]<=this.prev){var c=l[o(300)](e,o(292)),u=l[o(300)](e,"finallyLoc");if(c&&u){if(this[o(225)]<e[o(292)])return t(e.catchLoc,!0);if(this[o(225)]<e[o(201)])return t(e.finallyLoc)}else if(c){if(this.prev<e[o(292)])return t(e[o(292)],!0)}else{if(!u)throw Error(o(215));if(this.prev<e[o(201)])return t(e.finallyLoc)}}}},abrupt:function(t,r){for(var e=f,n=this[e(279)][e(283)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[e(303)]<=this[e(225)]&&l[e(300)](o,"finallyLoc")&&this.prev<o[e(201)]){var a=o;break}}var i=(a=a&&("break"===t||e(294)===t)&&a[e(303)]<=r&&r<=a[e(201)]?null:a)?a[e(264)]:{};return i.type=t,i[e(238)]=r,a?(this[e(315)]=e(295),this[e(295)]=a[e(201)],d):this[e(257)](i)},complete:function(t,r){var e=f;if(e(286)===t[e(273)])throw t[e(238)];return e(221)===t[e(273)]||e(294)===t[e(273)]?this[e(295)]=t[e(238)]:e(214)===t.type?(this.rval=this.arg=t[e(238)],this.method="return",this[e(295)]=e(297)):e(230)===t[e(273)]&&r&&(this[e(295)]=r),d},finish:function(t){for(var r=f,e=this[r(279)][r(283)]-1;0<=e;--e){var n=this[r(279)][e];if(n[r(201)]===t)return this[r(257)](n[r(264)],n[r(254)]),S(n),d}},catch:function(t){for(var r=f,e=this[r(279)][r(283)]-1;0<=e;--e){var n,o,a=this[r(279)][e];if(a.tryLoc===t)return n=a.completion,r(286)===n.type&&(o=n[r(238)],S(a)),o}throw Error(r(243))},delegateYield:function(t,r,e){var n=f;return this[n(244)]={iterator:k(t),resultName:r,nextLoc:e},n(295)===this.method&&(this[n(238)]=s),d}},c}function asyncGeneratorStep(t,r,e,n,o,a,i){var c=_0x5efd;try{var u=t[a](i),f=u[c(223)]}catch(t){return void e(t)}u[c(276)]?r(f):Promise.resolve(f)[c(219)](n,o)}function _asyncToGenerator(c){return function(){var t=this,i=arguments;return new Promise(function(r,e){var n=c.apply(t,i);function o(t){asyncGeneratorStep(n,r,e,o,a,_0x5efd(295),t)}function a(t){asyncGeneratorStep(n,r,e,o,a,_0x5efd(286),t)}o(void 0)})}}(()=>{for(var t=_0x5efd,r=_0x52e0();;)try{if(360921==-parseInt(t(298))+parseInt(t(203))/2+-parseInt(t(234))/3*(parseInt(t(287))/4)+-parseInt(t(310))/5+-parseInt(t(314))/6+-parseInt(t(291))/7+parseInt(t(199))/8*(parseInt(t(231))/9))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var ascf=require(_0x4c6e3a(213)),_require=require(_0x4c6e3a(262)),Command=_require[_0x4c6e3a(242)],pkg=require(_0x4c6e3a(304)),program=new Command;program[_0x4c6e3a(278)](pkg.version)[_0x4c6e3a(246)](_0x4c6e3a(235))[_0x4c6e3a(233)](_0x4c6e3a(280),"enable debug logging"),program.command(_0x4c6e3a(255))[_0x4c6e3a(246)](_0x4c6e3a(268))[_0x4c6e3a(212)](_0x4c6e3a(256))[_0x4c6e3a(212)](_0x4c6e3a(293))[_0x4c6e3a(233)]("-c, --clear",_0x4c6e3a(198))[_0x4c6e3a(233)](_0x4c6e3a(290),_0x4c6e3a(228))[_0x4c6e3a(252)]((()=>{var r=_0x4c6e3a,e=_asyncToGenerator(_regeneratorRuntime()[r(218)](function t(e){var n=r;return _regeneratorRuntime()[n(253)](function(t){for(var r=n;;)switch(t[r(225)]=t[r(295)]){case 0:return t.next=2,ascf[r(255)](e);case 2:case r(297):return t[r(224)]()}},t)}));return function(t){return e[r(282)](this,arguments)}})()),program[_0x4c6e3a(200)](_0x4c6e3a(317))[_0x4c6e3a(246)]("Compile ascf project").option(_0x4c6e3a(266),_0x4c6e3a(222))[_0x4c6e3a(233)](_0x4c6e3a(236),_0x4c6e3a(263)).option(_0x4c6e3a(205),_0x4c6e3a(245)).option("-c, --clear","Clear build resource")[_0x4c6e3a(252)]((()=>{var e=_asyncToGenerator(_regeneratorRuntime().mark(function t(e,n){var o=_0x5efd;return _regeneratorRuntime()[o(253)](function(t){for(var r=o;;)switch(t[r(225)]=t[r(295)]){case 0:return t.next=2,ascf.compile(e,n);case 2:case r(297):return t[r(224)]()}},t)}));return function(t,r){return e[_0x5efd(282)](this,arguments)}})()),program[_0x4c6e3a(306)](process.argv),global[_0x4c6e3a(274)]=program,global[_0x4c6e3a(265)]=!(null==(_global$_ascfCliProgr=global[_0x4c6e3a(274)][_0x4c6e3a(259)]())||!_global$_ascfCliProgr[_0x4c6e3a(247)]);
@@ -1 +1 @@
1
- var _0x36c519=_0x22b7;function _typeof(r){var t=_0x22b7;return(_typeof="function"==typeof Symbol&&t(181)==typeof Symbol[t(195)]?function(r){return typeof r}:function(r){var e=t;return r&&"function"==typeof Symbol&&r[e(233)]===Symbol&&r!==Symbol[e(187)]?"symbol":typeof r})(r)}function _classCallCheck(r,e){var t=_0x22b7;if(!(r instanceof e))throw new TypeError(t(235))}function _defineProperties(r,e){for(var t=_0x22b7,n=0;n<e[t(202)];n++){var o=e[n];o[t(234)]=o[t(234)]||!1,o[t(176)]=!0,"value"in o&&(o[t(215)]=!0),Object.defineProperty(r,_toPropertyKey(o.key),o)}}function _createClass(r,e,t){var n=_0x22b7;return e&&_defineProperties(r[n(187)],e),t&&_defineProperties(r,t),Object[n(182)](r,n(187),{writable:!1}),r}function _toPropertyKey(r){r=_toPrimitive(r,"string");return"symbol"==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x22b7;if(t(223)!=_typeof(r)||!r)return r;var n=r[Symbol[t(212)]];if(void 0===n)return(t(158)===e?String:Number)(r);n=n[t(240)](r,e||t(192));if(t(223)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _0x4b43(){var r=["writable","getBuildMsg","from","compileTime: ","extraInfo","replace","file","137490aiJAtZ","object","calculate","1461138iwdpUa","Error: ","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","origin","714ZIGwKw","(Emitted value instead of an instance of Error) ","../ascf-compiler/chalk/bundle.cjs","689666LwvToL","constructor","enumerable","Cannot call a class as a function","tap","Map","Arguments","endTime","call","44485IqOCEy","concat","options","errors","noteCount"," ms","info","reduce","compilation","string","assign","some","warn","error","hasWarnings","17800HCUvln","includes","297vxsHrX","warnCount","level","439184HrPzDp","slice","stringify","warnings","showtime","true","ModuleNotFoundError","configurable","3hCMXRI","hasErrors","exports","warningCount","symbol","defineProperty","displayErrors","green","map","ERROR: ","prototype","hooks","\nCOMPILE RESULT:SUCCESS","forEach","dropRepeat","default","message","errorCount","iterator","Object","810FQrzxS","formatters","2081045bCaKvY","\n@ ","showCompileTime","length","startTime","printCompileResult","BuildLogOutputPlugin","test","name","isArray","@@iterator","transformers","undefined","toPrimitive","warning","Module not found"];return(_0x4b43=function(){return r})()}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x22b7(227))}function _unsupportedIterableToArray(r,e){var t,n=_0x22b7;if(r)return n(158)==typeof r?_arrayLikeToArray(r,e):(t={}.toString.call(r)[n(170)](8,-1),n(196)===t&&r[n(233)]&&(t=r.constructor[n(207)]),n(237)===t||"Set"===t?Array[n(217)](r):n(238)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(206)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x22b7;if(e(211)!=typeof Symbol&&null!=r[Symbol[e(195)]]||null!=r[e(209)])return Array.from(r)}function _arrayWithoutHoles(r){if(Array[_0x22b7(208)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x22b7;(null==e||e>r[t(202)])&&(e=r[t(202)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x22b7,e=_0x4b43();;)try{if(398930==+parseInt(r(232))+parseInt(r(225))/2+parseInt(r(177))/3*(-parseInt(r(169))/4)+parseInt(r(199))/5+parseInt(r(229))/6*(-parseInt(r(241))/7)+-parseInt(r(164))/8*(parseInt(r(197))/9)+parseInt(r(222))/10*(-parseInt(r(166))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x36c519(214),chalk=require(_0x36c519(231));function defaultFormatter(r,e){var t=_0x36c519;return r[t(156)](function(r,e){return[][t(242)](_toConsumableArray(r),["\n".concat(e.message)])},[])}function babelSyntaxError(r){var e=_0x36c519;return isBabelSyntaxError(r)&&(r[e(193)]=cleanStackTrace(r[e(193)])),r}function isBabelSyntaxError(r){var e=_0x36c519;return"ModuleBuildError"===r[e(207)]&&r[e(193)].includes("SyntaxError")}function cleanStackTrace(r){var e=_0x36c519;return r[e(220)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(220)](/^Module build failed.*:\s/,e(226))}function moduleNotFoundError(r){var e,t=_0x36c519;return r[t(207)]===t(175)&&r[t(193)][t(165)](TYPE)&&(r[t(193)]=r[t(193)].replace(TYPE,t(186)[t(242)](TYPE)),e=r[t(228)]&&r.origin.resource)&&(r.message+=t(200)[t(242)](e)),r}chalk[_0x36c519(168)]=1;var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x36c519;return{message:r.message,file:r[e(221)],origin:r[e(228)],name:r[e(207)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x36c519;return r[e(220)](e(230),"")[e(220)](/Module Warning[^\n]+\n/,"")[e(220)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x36c519;return r[n(185)](extractError)[n(185)](function(r){return e[_0x22b7(156)](t,r)})}function formatErrors(e,r,t){var n=_0x36c519;return r.map(function(r){return r(e,t)||[]})[n(156)](function(r,e){return r.concat(e)},[])}function getCompileTime(r){var e=_0x36c519,t=r[e(239)],r=r[e(203)];console.info(chalk[e(184)](e(218)[e(242)](t-r,e(154))))}function _0x22b7(r,e){var t=_0x4b43();return(_0x22b7=function(r,e){return t[r-=154]})(r,e)}function _dropRepeat(r){var e=_0x36c519;return r[e(156)](function(r,t){var n=e;return r[n(160)](function(r){var e=n;return r.message===t[e(193)]})?r:r.concat(t)},[])}var BuildLogOutputPlugin=(()=>{var u=_0x36c519;return _createClass(function r(){var e=_0x22b7,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.showCompileTime,n=void 0!==n&&n,t=t.options;_classCallCheck(this,r),this.errorCount=0,this[e(180)]=0,this[e(245)]=0,this[e(201)]=n||process.env[e(173)]===e(174),this[e(198)]=defaultFormatters,this[e(210)]=defaultTransformers,this[e(243)]=t},[{key:"apply",value:function(r){var u=_0x22b7,s=this;r[u(188)].done[u(236)](u(205),function(e){var t=u,r=(s[t(191)](e),e[t(157)]),n=r[t(244)],o=r[t(172)],a=e[t(178)](),i=e[t(163)]();setTimeout(function(){var r=t;a&&s[r(183)](n,"error"),i&&s[r(183)](o,r(213)),s[r(224)](e,n,o),s[r(204)](),s[r(201)]&&getCompileTime(e)})})}},{key:u(191),value:function(r){var e=u;r[e(157)][e(172)]=_dropRepeat(r[e(157)][e(172)]),r[e(157)][e(244)]=_dropRepeat(r[e(157)][e(244)])}},{key:u(224),value:function(r,e){var t=u,n=this,o=2<arguments[t(202)]&&void 0!==arguments[2]?arguments[2]:[],r=r[t(157)][t(219)]||{},a=r[t(194)],a=void 0===a?0:a,i=r[t(167)],i=void 0===i?0:i,r=r[t(245)],r=void 0===r?0:r;this[t(194)]=e[t(202)]+a,this[t(180)]=i,this[t(245)]=r,o[t(190)](function(r){var e=t,r=r[e(193)];/^NOTE:/[e(206)](cleanMessage(r))?n[e(245)]++:n[e(180)]++})}},{key:u(204),value:function(){var r,e=u,t=this[e(194)],n=this[e(180)],o=this[e(245)];0<t+n+o?(r=t?"FAIL ":"SUCCESS ",t=Object[e(159)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),console[e(161)](chalk.yellow("\nCOMPILE RESULT:"[e(242)](r)[e(242)](JSON[e(171)](t))))):console[e(155)](chalk[e(184)](e(189)))}},{key:"displayErrors",value:function(r,t){var n=u;formatErrors(transformErrors(r,this.transformers),this[n(198)],t)[n(190)](function(r){var e=n;t===e(162)&&console[e(162)](chalk.red(cleanMessage(r))),t===e(213)&&console[e(161)](chalk.yellow(cleanMessage(r)))})}},{key:u(216),value:function(r,e){var t=u;return formatErrors(transformErrors(r,this[t(210)]),this[t(198)],e)[t(185)](function(r){return cleanMessage(r)})}}])})();module[_0x36c519(179)]=BuildLogOutputPlugin;
1
+ var _0x194456=_0x4820;function _typeof(r){var t=_0x4820;return(_typeof=t(506)==typeof Symbol&&t(469)==typeof Symbol.iterator?function(r){return typeof r}:function(r){var e=t;return r&&e(506)==typeof Symbol&&r[e(491)]===Symbol&&r!==Symbol[e(512)]?e(469):typeof r})(r)}function _classCallCheck(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(r,e){for(var t=_0x4820,n=0;n<e[t(505)];n++){var o=e[n];o[t(483)]=o.enumerable||!1,o[t(544)]=!0,t(533)in o&&(o[t(532)]=!0),Object[t(509)](r,_toPropertyKey(o[t(495)]),o)}}function _createClass(r,e,t){return e&&_defineProperties(r.prototype,e),t&&_defineProperties(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function _toPropertyKey(r){var e=_0x4820,r=_toPrimitive(r,e(453));return e(469)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x4820;if(t(454)!=_typeof(r)||!r)return r;var n=r[Symbol[t(527)]];if(void 0===n)return("string"===e?String:Number)(r);n=n[t(501)](r,e||t(480));if(t(454)!=_typeof(n))return n;throw new TypeError(t(492))}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x4820(528))}function _unsupportedIterableToArray(r,e){var t,n=_0x4820;if(r)return n(453)==typeof r?_arrayLikeToArray(r,e):("Object"===(t={}[n(459)][n(501)](r).slice(8,-1))&&r[n(491)]&&(t=r.constructor[n(536)]),n(499)===t||n(517)===t?Array[n(500)](r):n(457)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x4820;if(e(493)!=typeof Symbol&&null!=r[Symbol[e(476)]]||null!=r["@@iterator"])return Array[e(500)](r)}function _arrayWithoutHoles(r){if(Array[_0x4820(511)](r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x4820;(null==e||e>r[t(505)])&&(e=r[t(505)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x4820,e=_0xe5ca();;)try{if(624647==-parseInt(r(524))*(parseInt(r(504))/2)+parseInt(r(468))/3*(-parseInt(r(529))/4)+-parseInt(r(540))/5*(parseInt(r(481))/6)+-parseInt(r(539))/7+-parseInt(r(489))/8+parseInt(r(519))/9*(parseInt(r(465))/10)+parseInt(r(475))/11*(parseInt(r(474))/12))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE="Module not found",chalk=require(_0x194456(514));function defaultFormatter(r,e){var n=_0x194456;return r[n(470)](function(r,e){var t=n;return[][t(496)](_toConsumableArray(r),["\n"[t(496)](e.message)])},[])}function babelSyntaxError(r){var e=_0x194456;return isBabelSyntaxError(r)&&(r[e(467)]=cleanStackTrace(r[e(467)])),r}function isBabelSyntaxError(r){var e=_0x194456;return r[e(536)]===e(541)&&r[e(467)].includes(e(458))}function cleanStackTrace(r){var e=_0x194456;return r[e(545)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"")[e(545)](/^Module build failed.*:\s/,e(538))}function moduleNotFoundError(r){var e,t=_0x194456;return r[t(536)]===t(542)&&r.message[t(522)](TYPE)&&(r[t(467)]=r.message[t(545)](TYPE,"ERROR: "[t(496)](TYPE)),e=r.origin&&r[t(502)][t(546)])&&(r[t(467)]+=t(477)[t(496)](e)),r}chalk[_0x194456(478)]=1;var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function _0xe5ca(){var r=["Set","hasErrors","10560051nHjDoB","true","warningCount","includes","compileTime: ","14Puvgst","env","stringify","toPrimitive","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","332DSrRDN","\nCOMPILE RESULT:","warning","writable","value","options","file","name","forEach","Error: ","1394519YscSYg","5gmghVB","ModuleBuildError","ModuleNotFoundError","getBuildMsg","configurable","replace","resource","errors","apply","FAIL ","displayErrors","string","object","transformers","red","Arguments","SyntaxError","toString","warn","showCompileTime","assign","hasWarnings","extraInfo","10oloDOP","error","message","12981tbhhbJ","symbol","reduce","errorCount"," ms","map","335148mbICPD","913rWwbHS","iterator","\n@ ","level","warnings","default","2815242VxTiwI","showtime","enumerable","printCompileResult","\nCOMPILE RESULT:SUCCESS","calculate","noteCount","warnCount","5669536ccmncU","yellow","constructor","@@toPrimitive must return a primitive value.","undefined","info","key","concat","green","dropRepeat","Map","from","call","origin","startTime","161506qZMMaH","length","function","(Emitted value instead of an instance of Error) ","compilation","defineProperty","tap","isArray","prototype","done","../ascf-compiler/chalk/bundle.cjs","formatters","SUCCESS "];return(_0xe5ca=function(){return r})()}function extractError(r){var e=_0x194456;return{message:r[e(467)],file:r[e(535)],origin:r[e(502)],name:r[e(536)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x194456;return r.replace(e(507),"")[e(545)](/Module Warning[^\n]+\n/,"")[e(545)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}return r[_0x194456(473)](extractError).map(function(r){return e.reduce(t,r)})}function formatErrors(e,r,t){var n=_0x194456;return r.map(function(r){return r(e,t)||[]})[n(470)](function(r,e){return r[_0x4820(496)](e)},[])}function getCompileTime(r){var e=_0x194456,t=r.endTime,r=r[e(503)];console[e(494)](chalk[e(497)](e(523)[e(496)](t-r,e(472))))}function _dropRepeat(r){return r.reduce(function(r,t){var e=_0x4820;return r.some(function(r){var e=_0x4820;return r[e(467)]===t[e(467)]})?r:r[e(496)](t)},[])}function _0x4820(r,e){var t=_0xe5ca();return(_0x4820=function(r,e){return t[r-=453]})(r,e)}var BuildLogOutputPlugin=(()=>{var l=_0x194456;return _createClass(function r(){var e=_0x4820,t=0<arguments[e(505)]&&void 0!==arguments[0]?arguments[0]:{},n=t.showCompileTime,n=void 0!==n&&n,t=t[e(534)];_classCallCheck(this,r),this[e(471)]=0,this[e(521)]=0,this[e(487)]=0,this[e(461)]=n||process[e(525)][e(482)]===e(520),this[e(515)]=defaultFormatters,this[e(455)]=defaultTransformers,this[e(534)]=t},[{key:l(548),value:function(r){var u=l,s=this;r.hooks[u(513)][u(510)]("BuildLogOutputPlugin",function(e){var t=u,r=(s.dropRepeat(e),e[t(508)]),n=r.errors,o=r[t(479)],a=e[t(518)](),i=e[t(463)]();setTimeout(function(){var r=t;a&&s.displayErrors(n,r(466)),i&&s[r(550)](o,r(531)),s[r(486)](e,n,o),s[r(484)](),s[r(461)]&&getCompileTime(e)})})}},{key:l(498),value:function(r){var e=l;r[e(508)][e(479)]=_dropRepeat(r[e(508)].warnings),r[e(508)][e(547)]=_dropRepeat(r[e(508)][e(547)])}},{key:l(486),value:function(r,e){var t=l,n=this,o=2<arguments[t(505)]&&void 0!==arguments[2]?arguments[2]:[],r=r.compilation[t(464)]||{},a=r[t(471)],a=void 0===a?0:a,i=r[t(488)],i=void 0===i?0:i,r=r[t(487)],r=void 0===r?0:r;this[t(471)]=e[t(505)]+a,this.warningCount=i,this[t(487)]=r,o[t(537)](function(r){var e=t,r=r[e(467)];/^NOTE:/.test(cleanMessage(r))?n.noteCount++:n[e(521)]++})}},{key:l(484),value:function(){var r,e=l,t=this[e(471)],n=this[e(521)],o=this[e(487)];0<t+n+o?(r=e(t?549:516),t=Object[e(462)]({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),console[e(460)](chalk[e(490)](e(530)[e(496)](r).concat(JSON[e(526)](t))))):console[e(494)](chalk[e(497)](e(485)))}},{key:"displayErrors",value:function(r,t){var n=l;formatErrors(transformErrors(r,this[n(455)]),this[n(515)],t)[n(537)](function(r){var e=n;t===e(466)&&console[e(466)](chalk[e(456)](cleanMessage(r))),t===e(531)&&console.warn(chalk.yellow(cleanMessage(r)))})}},{key:l(543),value:function(r,e){return formatErrors(transformErrors(r,this.transformers),this.formatters,e).map(function(r){return cleanMessage(r)})}}])})();module.exports=BuildLogOutputPlugin;
@@ -1 +1 @@
1
- function _0x4d89(r,t){var n=_0x51c9();return(_0x4d89=function(r,t){return n[r-=320]})(r,t)}function _0x51c9(){var r=["length","1357272QvZKvW","directives","value","9MPDSrh","459416BJpprH","1913140PHmHiA","1944534qaQaYZ","splice","26435270uIKVrl","4416235eEUQzu","use strict","49BeAAeN","8COQGDX","6881106IKIwNn"];return(_0x51c9=function(){return r})()}(()=>{for(var r=_0x4d89,t=_0x51c9();;)try{if(808084==-parseInt(r(324))+parseInt(r(329))/2+parseInt(r(330))/3*(-parseInt(r(321))/4)+-parseInt(r(333))/5+parseInt(r(322))/6+-parseInt(r(320))/7*(parseInt(r(328))/8)+parseInt(r(327))/9*(parseInt(r(332))/10))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module.exports=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x4d89,n=r.node[t(325)],e=n[t(323)]-1;0<=e;e--)n[e][t(326)][t(326)]===t(334)&&n[t(331)](e,1)}}}}};
1
+ var _0x50031e=_0x430f;function _0x430f(r,t){var n=_0x4a08();return(_0x430f=function(r,t){return n[r-=168]})(r,t)}function _0x4a08(){var r=["node","186qYlKEI","exports","length","3439305VaNojM","33974vFACSs","8020RYhdoP","value","8452686NlfeVI","40gCAJXJ","3225DFfcXB","1217869HnNcla","6927560sDZBTJ","directives","474bpoSha","15659XjVUdH","splice"];return(_0x4a08=function(){return r})()}(()=>{for(var r=_0x430f,t=_0x4a08();;)try{if(934229==-parseInt(r(183))+parseInt(r(177))/2*(-parseInt(r(173))/3)+parseInt(r(178))/4*(-parseInt(r(182))/5)+-parseInt(r(169))/6*(-parseInt(r(170))/7)+parseInt(r(184))/8+parseInt(r(176))/9+parseInt(r(181))/10*(parseInt(r(180))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x50031e(174)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x430f,n=r[t(172)][t(168)],e=n[t(175)]-1;0<=e;e--)"use strict"===n[e][t(179)][t(179)]&&n[t(171)](e,1)}}}}};
@@ -1 +1 @@
1
- var _0x261097=_0x5f03,rimraf=((()=>{for(var e=_0x5f03,r=_0x78ff();;)try{if(844374==+parseInt(e(131))+parseInt(e(179))/2+-parseInt(e(135))/3+-parseInt(e(133))/4+parseInt(e(189))/5+-parseInt(e(197))/6*(-parseInt(e(192))/7)+parseInt(e(154))/8*(-parseInt(e(196))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require("rimraf")),fs=require("fs"),path=require(_0x261097(121)),_require=require("child_process"),execSync=_require[_0x261097(146)],_require2=require(_0x261097(163)),satisfies=_require2[_0x261097(178)],JSON5=require(_0x261097(116)),chalk=require(_0x261097(143)),projectPath=(chalk[_0x261097(193)]=1,process.env[_0x261097(198)]||process.cwd()),projectCfg=readProjectCfgJson(projectPath)||{},srcPath=path.resolve(projectPath,_0x261097(152));function readJsonFile(r){var t=_0x261097;if(!fs[t(187)](r))return{};var e={};try{e=JSON5[t(150)](fs[t(190)](r,t(141)).toString())}catch(e){throw new Error(t(186)[t(159)](r,t(158)))}return e}function writeJsonFile(e,r){var t=_0x261097;try{fs.writeFileSync(e,JSON[t(137)](r,null,2))}catch(e){throw"ERROR: Write JSON file failed: ".concat(e)}}function initVersionType(){var e=_0x261097,r=[e(140),"beta",e(157)],t=process[e(151)][e(145)];global[e(153)]=e(140),t&&r[e(149)](t)?global[e(153)]=t:(r="true"===process.env[e(117)],global[e(153)]=r?e(157):"debug")}function readProjectCfgJson(e){var r,t=_0x261097,e=path[t(148)](e,t(175));return r=fs[t(187)](e)?JSON[t(150)](fs[t(190)](e)[t(200)]()):r}function getEntryPackageName(){var e=_0x261097,r=path[e(155)](projectPath,e(176)),r=JSON5[e(150)](fs[e(190)](r)[e(200)]());if(r[e(124)]&&0!==r[e(124)][e(191)])return r.modules[0][e(164)];throw e(136)}function checkPath(e,r){var t=_0x261097;require(t(181))[t(130)](e)[t(170)][t(120)]?(e=path[t(155)](r,t(176)),fs[t(187)](e)?(e=JSON5.parse(fs[t(190)](e)[t(200)]()))[t(124)]&&0!==e.modules[t(191)]?(r=path.resolve(r,e[t(124)][0][t(164)],t(183)),(e=JSON5[t(150)](fs[t(190)](r).toString()))[t(184)]&&Object[t(162)][t(167)][t(173)](e.dependencies,t(182))?console[t(127)](chalk.green(t(161))):console.error(chalk[t(129)](t(123)))):console[t(119)](chalk.red(t(123))):console[t(119)](chalk[t(129)](t(123)))):console[t(119)](chalk.red(t(180)))}function _0x78ff(){var e=["3039272vWVpbW","Input path is not MiniProgram src.","../ascf-converter/features/converter.js","@atomicservice/ascf","./oh-package.json5","dependencies","version","parse json file ","existsSync",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"955410FoXAlc","readFileSync","length","3204509JdxcYS","level","ascfRoot","sync","36513GWcJpD","12JfYAGH","projectRoot"," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","toString","trim","isLatestAscfHar","json5","uglifyjs","WARNING: ","error","returnCode","path","INFO: ASCF Shared Library can be upgraded.","Output path is not an ASCF project.","modules","checkPath","all","info","yellow","red","checkInputPathFun","931490KKVbun","green","3588836WkccWr","IS_PRD","3245646DsifYu","ERROR: build-profile.json5 file modules is null","stringify","package.json","RAWFILE_DIR","debug","utf-8","ASCF_BUILD_PATH","../ascf-compiler/chalk/bundle.cjs","oh-package.json5","versionType","execSync","warn","join","includes","parse","env","ascf/ascf_src","_versionType","1448mzUHLg","resolve","readJsonFile","release"," error","concat","production","Check success.","prototype","semver","srcPath","isLatestAscfToolkit","PROJECT_CONFIG","hasOwnProperty","npm view @atomicservice/ascf-toolkit version","map","data","split","ascf","call","@atomicservice/ascf-toolkit","ascf.config.json","build-profile.json5","src/main/resources/rawfile","satisfies"];return(_0x78ff=function(){return e})()}function _0x5f03(e,r){var t=_0x78ff();return(_0x5f03=function(e,r){return t[e-=116]})(e,r)}initVersionType(),exports[_0x261097(134)]=process[_0x261097(151)].NODE_ENV===_0x261097(160),exports.PROJECT_PATH=projectPath,exports[_0x261097(166)]=projectCfg,exports.ASCF_SRC_PATH=projectCfg[_0x261097(194)]?path[_0x261097(155)](srcPath,projectCfg[_0x261097(194)]):srcPath,exports[_0x261097(142)]=path[_0x261097(155)](projectPath,_0x261097(172),"ascf_build"),exports[_0x261097(139)]=_0x261097(177),exports.clearResource=function(e){var o=_0x261097;return Promise[o(126)](e[o(169)](function(r){var t=o;if(fs[t(187)](r))return new Promise(function(e){rimraf[t(195)](r),e()})}))},exports.isPrivatePkg=function(){var e=_0x261097,r=readJsonFile(path[e(148)](__dirname,"..","..",e(138))).name;return r!==e(174)&&r[e(149)]("/")},exports[_0x261097(156)]=readJsonFile,exports.writeJsonFile=writeJsonFile,exports[_0x261097(165)]=function(){var e=_0x261097,r=0<arguments[e(191)]&&void 0!==arguments[0]&&arguments[0],t=JSON[e(150)](fs[e(190)](path.join(__dirname,"..","..",e(138)),"utf-8")[e(200)]())[e(185)],o=execSync(e(168),{timeout:5e3})[e(200)]()[e(201)]();t!==o&&(r?console[e(147)](chalk.yellow('WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '.concat(o,'"'))):console.info(chalk[e(132)](e(188)[e(159)](o,'"'))))},exports[_0x261097(202)]=function(){var e,r=_0x261097,t=0<arguments[r(191)]&&void 0!==arguments[0]&&arguments[0],o=path[r(148)](projectPath,getEntryPackageName(),r(144)),a=JSON5[r(150)](fs[r(190)](o,r(141)).toString())[r(184)]["@atomicservice/ascf"];a?(e=execSync("ohpm info @atomicservice/ascf -ft 10000",{timeout:5e3})[r(200)]()[r(171)]("latest:")[1][r(171)]("\n")[0][r(201)](),satisfies(e,a)||"latest"===a.toLowerCase()||(t?console.warn(chalk[r(128)]("WARNING: ASCF Shared Library can be upgraded.")):console.info(chalk.green(r(122))))):console[r(147)](chalk[r(128)](r(118).concat(o,r(199))))},exports[_0x261097(125)]=checkPath;
1
+ var _0x6f0925=_0x4235,rimraf=((()=>{for(var e=_0x4235,r=_0x6ea9();;)try{if(130058==+parseInt(e(390))*(parseInt(e(397))/2)+-parseInt(e(392))/3*(parseInt(e(382))/4)+-parseInt(e(319))/5*(-parseInt(e(335))/6)+parseInt(e(393))/7+-parseInt(e(308))/8*(parseInt(e(341))/9)+parseInt(e(312))/10*(parseInt(e(356))/11)+parseInt(e(353))/12*(parseInt(e(307))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),require("rimraf")),fs=require("fs"),path=require("path"),_require=require(_0x6f0925(322)),execSync=_require.execSync,_require2=require(_0x6f0925(396)),satisfies=_require2[_0x6f0925(394)],JSON5=require("json5"),chalk=require(_0x6f0925(329)),projectPath=(chalk[_0x6f0925(316)]=1,process.env[_0x6f0925(332)]||process[_0x6f0925(315)]()),projectCfg=readProjectCfgJson(projectPath)||{},srcPath=path.resolve(projectPath,_0x6f0925(309));function readJsonFile(r){var t=_0x6f0925;if(!fs[t(318)](r))return{};var e={};try{e=JSON5.parse(fs.readFileSync(r,"utf-8")[t(317)]())}catch(e){throw new Error("parse json file "[t(377)](r,t(321)))}return e}function _0x6ea9(){var e=['WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit '," does not depend on ASCF Shared Library. Select a project that does, or create a new one.","Input path is not MiniProgram src.","all","isLatestAscfToolkit",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"name","build-profile.json5","concat","true","utf-8","srcPath","@atomicservice/ascf-toolkit","4huvILv","returnCode","versionType","RAWFILE_DIR","../ascf-converter/features/converter.js","sync","length","trim","1433fnNRpq","PROJECT_PATH","672066FRRkPz","89299blTeWX","satisfies","ascfRoot","semver","166YBgKhx","error","oh-package.json5","1045811Hikanc","153552OsIjWd","ascf/ascf_src","IS_PRD","_versionType","10YZvSNv","ERROR: Write JSON file failed: ","yellow","cwd","level","toString","existsSync","25qeGBue","info"," error","child_process","release","WARNING: ","call","join","npm view @atomicservice/ascf-toolkit version","ASCF_SRC_PATH","../ascf-compiler/chalk/bundle.cjs","checkPath","ohpm info @atomicservice/ascf -ft 10000","projectRoot","Check success.","package.json","40422uZycKz","@atomicservice/ascf","isPrivatePkg","writeJsonFile","readFileSync","resolve","117uyAAtj","clearResource","Output path is not an ASCF project.","uglifyjs","green","isLatestAscfHar","prototype","stringify","parse","warn","includes","modules","48mJiyAa","checkInputPathFun","NODE_ENV","1280763EqGUEE","beta","red","writeFileSync","ascf.config.json","env","version","ERROR: build-profile.json5 file modules is null","debug","dependencies","split","./oh-package.json5","production"];return(_0x6ea9=function(){return e})()}function writeJsonFile(e,r){var t=_0x6f0925;try{fs[t(359)](e,JSON[t(348)](r,null,2))}catch(e){throw t(313).concat(e)}}function _0x4235(e,r){var t=_0x6ea9();return(_0x4235=function(e,r){return t[e-=306]})(e,r)}function initVersionType(){var e=_0x6f0925,r=[e(364),e(357),e(323)],t=process[e(361)][e(384)];global._versionType=e(364),t&&r[e(351)](t)?global[e(311)]=t:(r=process[e(361)][e(344)]===e(378),global[e(311)]=e(r?323:364))}function readProjectCfgJson(e){var r,t=_0x6f0925,e=path[t(326)](e,t(360));return r=fs[t(318)](e)?JSON[t(349)](fs[t(339)](e)[t(317)]()):r}function getEntryPackageName(){var e=_0x6f0925,r=path.resolve(projectPath,e(376)),r=JSON5.parse(fs[e(339)](r)[e(317)]());if(r.modules&&0!==r[e(352)][e(388)])return r[e(352)][0][e(380)];throw e(363)}function checkPath(e,r){var t=_0x6f0925;require(t(386))[t(354)](e).data[t(383)]?(e=path[t(340)](r,t(376)),fs[t(318)](e)?(e=JSON5[t(349)](fs.readFileSync(e)[t(317)]()))[t(352)]&&0!==e.modules[t(388)]?(r=path[t(340)](r,e[t(352)][0][t(380)],t(367)),(e=JSON5[t(349)](fs[t(339)](r)[t(317)]()))[t(365)]&&Object[t(347)].hasOwnProperty[t(325)](e[t(365)],t(336))?console[t(320)](chalk[t(345)](t(333))):console[t(398)](chalk.red("Output path is not an ASCF project."))):console[t(398)](chalk.red(t(343))):console.error(chalk[t(358)]("Output path is not an ASCF project."))):console[t(398)](chalk.red(t(371)))}initVersionType(),exports[_0x6f0925(310)]=process[_0x6f0925(361)][_0x6f0925(355)]===_0x6f0925(368),exports[_0x6f0925(391)]=projectPath,exports.PROJECT_CONFIG=projectCfg,exports[_0x6f0925(328)]=projectCfg.ascfRoot?path[_0x6f0925(340)](srcPath,projectCfg[_0x6f0925(395)]):srcPath,exports.ASCF_BUILD_PATH=path[_0x6f0925(340)](projectPath,"ascf","ascf_build"),exports[_0x6f0925(385)]="src/main/resources/rawfile",exports[_0x6f0925(342)]=function(e){var a=_0x6f0925;return Promise[a(372)](e.map(function(r){var t=a;if(fs[t(318)](r))return new Promise(function(e){rimraf[t(387)](r),e()})}))},exports[_0x6f0925(337)]=function(){var e=_0x6f0925,r=readJsonFile(path[e(326)](__dirname,"..","..",e(334)))[e(375)];return r!==e(381)&&r[e(351)]("/")},exports.readJsonFile=readJsonFile,exports[_0x6f0925(338)]=writeJsonFile,exports[_0x6f0925(373)]=function(){var e=_0x6f0925,r=0<arguments[e(388)]&&void 0!==arguments[0]&&arguments[0],t=JSON[e(349)](fs[e(339)](path[e(326)](__dirname,"..","..",e(334)),e(379))[e(317)]())[e(362)],a=execSync(e(327),{timeout:5e3})[e(317)]()[e(389)]();t!==a&&(r?console.warn(chalk[e(314)](e(369)[e(377)](a,'"'))):console[e(320)](chalk[e(345)](e(374)[e(377)](a,'"'))))},exports[_0x6f0925(346)]=function(){var e,r=_0x6f0925,t=0<arguments[r(388)]&&void 0!==arguments[0]&&arguments[0],a=path[r(326)](projectPath,getEntryPackageName(),r(306)),o=JSON5[r(349)](fs[r(339)](a,r(379))[r(317)]())[r(365)][r(336)];o?(e=execSync(r(331),{timeout:5e3})[r(317)]()[r(366)]("latest:")[1][r(366)]("\n")[0][r(389)](),satisfies(e,o)||"latest"===o.toLowerCase()||(t?console[r(350)](chalk.yellow("WARNING: ASCF Shared Library can be upgraded.")):console[r(320)](chalk[r(345)]("INFO: ASCF Shared Library can be upgraded.")))):console[r(350)](chalk[r(314)](r(324)[r(377)](a,r(370))))},exports[_0x6f0925(330)]=checkPath;
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x360d98=_0x21ce;function _0x21ce(t,e){var r=_0x3e12();return(_0x21ce=function(t,e){return r[t-=241]})(t,e)}function _typeof(t){var r=_0x21ce;return(_typeof=r(300)==typeof Symbol&&r(376)==typeof Symbol[r(322)]?function(t){return typeof t}:function(t){var e=r;return t&&e(300)==typeof Symbol&&t[e(353)]===Symbol&&t!==Symbol[e(305)]?e(376):typeof t})(t)}function _regeneratorRuntime(){var s=_0x21ce;_regeneratorRuntime=function(){return a};var f,a={},t=Object.prototype,l=t[s(286)],h=Object[s(299)]||function(t,e,r){var n=s;t[e]=r[n(374)]},e=s(300)==typeof Symbol?Symbol:{},i=e[s(322)]||s(344),r=e[s(339)]||"@@asyncIterator",n=e[s(333)]||s(302);function o(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o,i,c,a,u=s,e=e&&e[u(305)]instanceof _?e:_,e=Object[u(277)](e[u(305)]),n=new L(n||[]);return h(e,u(328),{value:(o=t,i=r,c=n,a=v,function(t,e){var r=_0x21ce;if(a===d)throw Error("Generator is already running");if(a===m){if("throw"===t)throw e;return{value:f,done:!0}}for(c[r(309)]=t,c[r(317)]=e;;){var n=c[r(266)];if(n){n=function t(e,r){var n=s,o=r[n(309)],i=e.iterator[o];if(i===f)return r.delegate=null,"throw"===o&&e[n(322)].return&&(r[n(309)]=n(249),r[n(317)]=f,t(e,r),n(278)===r[n(309)])||n(249)!==o&&(r.method="throw",r[n(317)]=new TypeError(n(373)+o+n(261))),g;o=p(i,e.iterator,r[n(317)]);if(n(278)===o[n(281)])return r[n(309)]=n(278),r[n(317)]=o[n(317)],r[n(266)]=null,g;i=o.arg;return i?i[n(335)]?(r[e[n(375)]]=i[n(374)],r.next=e[n(320)],n(249)!==r[n(309)]&&(r.method="next",r[n(317)]=f),r.delegate=null,g):i:(r.method=n(278),r[n(317)]=new TypeError("iterator result is not an object"),r[n(266)]=null,g)}(n,c);if(n){if(n===g)continue;return n}}if(r(304)===c[r(309)])c[r(275)]=c[r(247)]=c[r(317)];else if("throw"===c[r(309)]){if(a===v)throw a=m,c[r(317)];c[r(271)](c[r(317)])}else r(249)===c[r(309)]&&c[r(296)](r(249),c.arg);a=d;n=p(o,i,c);if(r(319)===n[r(281)]){if(a=c[r(335)]?m:y,n[r(317)]===g)continue;return{value:n[r(317)],done:c[r(335)]}}r(278)===n.type&&(a=m,c[r(309)]=r(278),c.arg=n[r(317)])}})}),e}function p(t,e,r){var n=s;try{return{type:n(319),arg:t[n(315)](e,r)}}catch(t){return{type:n(278),arg:t}}}a.wrap=u;var v=s(276),y="suspendedYield",d=s(289),m=s(348),g={};function _(){}function c(){}function b(){}var e={},w=(o(e,i,function(){return this}),Object[s(349)]),w=w&&w(w(P([]))),x=(w&&w!==t&&l[s(315)](w,i)&&(e=w),b.prototype=_[s(305)]=Object[s(277)](e));function k(t){var e=s;[e(304),e(278),e(249)][e(346)](function(e){o(t,e,function(t){return this[_0x21ce(328)](e,t)})})}function j(a,u){var e;h(this,s(328),{value:function(r,n){function t(){return new u(function(t,e){!function e(t,r,n,o){var i,c=_0x21ce,t=p(a[t],a,r);if("throw"!==t.type)return(r=(i=t[c(317)])[c(374)])&&c(345)==_typeof(r)&&l.call(r,c(360))?u.resolve(r[c(360)])[c(356)](function(t){e(c(304),t,n,o)},function(t){e(c(278),t,n,o)}):u[c(243)](r).then(function(t){i[c(374)]=t,n(i)},function(t){return e(c(278),t,n,o)});o(t[c(317)])}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function E(t){var e=s,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r[e(338)]=t[2],r[e(368)]=t[3]),this.tryEntries.push(r)}function I(t){var e=s,r=t[e(331)]||{};r[e(281)]=e(319),delete r[e(317)],t[e(331)]=r}function L(t){var e=s;this.tryEntries=[{tryLoc:e(321)}],t[e(346)](E,this),this[e(244)](!0)}function P(r){var n=s;if(r||""===r){var o,t=r[i];if(t)return t[n(315)](r);if(n(300)==typeof r[n(304)])return r;if(!isNaN(r[n(256)]))return o=-1,(t=function t(){for(var e=n;++o<r.length;)if(l[e(315)](r,o))return t[e(374)]=r[o],t.done=!1,t;return t[e(374)]=f,t.done=!0,t}).next=t}throw new TypeError(_typeof(r)+" is not iterable")}return c.prototype=b,h(x,s(353),{value:b,configurable:!0}),h(b,"constructor",{value:c,configurable:!0}),c[s(242)]=o(b,n,s(250)),a.isGeneratorFunction=function(t){var e=s,t=e(300)==typeof t&&t.constructor;return!!t&&(t===c||e(250)===(t[e(242)]||t.name))},a[s(314)]=function(t){var e=s;return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t[e(350)]=b,o(t,n,e(250))),t[e(305)]=Object[e(277)](x),t},a[s(283)]=function(t){return{__await:t}},k(j[s(305)]),o(j[s(305)],r,function(){return this}),a[s(347)]=j,a[s(361)]=function(t,e,r,n,o){var i=s,c=(void 0===o&&(o=Promise),new j(u(t,e,r,n),o));return a[i(253)](e)?c:c[i(304)]().then(function(t){var e=i;return t.done?t[e(374)]:c.next()})},k(x),o(x,n,"Generator"),o(x,i,function(){return this}),o(x,s(259),function(){return s(264)}),a[s(340)]=function(t){var e,n=s,o=Object(t),i=[];for(e in o)i[n(255)](e);return i[n(359)](),function t(){for(var e=n;i[e(256)];){var r=i[e(260)]();if(r in o)return t[e(374)]=r,t[e(335)]=!1,t}return t.done=!0,t}},a[s(363)]=P,L.prototype={constructor:L,reset:function(t){var e=s;if(this[e(316)]=0,this.next=0,this.sent=this[e(247)]=f,this[e(335)]=!1,this[e(266)]=null,this.method="next",this[e(317)]=f,this[e(358)][e(346)](I),!t)for(var r in this)"t"===r.charAt(0)&&l[e(315)](this,r)&&!isNaN(+r.slice(1))&&(this[r]=f)},stop:function(){var t=s,e=(this[t(335)]=!0,this[t(358)][0][t(331)]);if("throw"===e[t(281)])throw e[t(317)];return this.rval},dispatchException:function(n){var t=s;if(this.done)throw n;var o=this;function e(t,e){var r=_0x21ce;return c[r(281)]="throw",c[r(317)]=n,o[r(304)]=t,e&&(o[r(309)]="next",o[r(317)]=f),!!e}for(var r=this[t(358)][t(256)]-1;0<=r;--r){var i=this[t(358)][r],c=i.completion;if("root"===i[t(268)])return e(t(323));if(i[t(268)]<=this[t(316)]){var a=l[t(315)](i,t(270)),u=l[t(315)](i,t(338));if(a&&u){if(this[t(316)]<i[t(270)])return e(i[t(270)],!0);if(this[t(316)]<i[t(338)])return e(i[t(338)])}else if(a){if(this[t(316)]<i[t(270)])return e(i[t(270)],!0)}else{if(!u)throw Error(t(325));if(this[t(316)]<i[t(338)])return e(i[t(338)])}}}},abrupt:function(t,e){for(var r=s,n=this[r(358)][r(256)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[r(268)]<=this.prev&&l.call(o,r(338))&&this[r(316)]<o[r(338)]){var i=o;break}}var c=(i=i&&(r(293)===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i[r(331)]:{};return c[r(281)]=t,c[r(317)]=e,i?(this.method=r(304),this[r(304)]=i[r(338)],g):this[r(355)](c)},complete:function(t,e){var r=s;if(r(278)===t[r(281)])throw t[r(317)];return"break"===t.type||"continue"===t[r(281)]?this[r(304)]=t[r(317)]:r(249)===t[r(281)]?(this[r(367)]=this[r(317)]=t[r(317)],this[r(309)]=r(249),this[r(304)]=r(323)):r(319)===t.type&&e&&(this[r(304)]=e),g},finish:function(t){for(var e=s,r=this[e(358)].length-1;0<=r;--r){var n=this[e(358)][r];if(n[e(338)]===t)return this[e(355)](n[e(331)],n[e(368)]),I(n),g}},catch:function(t){for(var e=s,r=this[e(358)].length-1;0<=r;--r){var n,o,i=this.tryEntries[r];if(i.tryLoc===t)return n=i[e(331)],e(278)===n[e(281)]&&(o=n[e(317)],I(i)),o}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){var n=s;return this[n(266)]={iterator:P(t),resultName:e,nextLoc:r},n(304)===this[n(309)]&&(this[n(317)]=f),g}},a}function asyncGeneratorStep(t,e,r,n,o,i,c){var a=_0x21ce;try{var u=t[i](c),s=u[a(374)]}catch(t){return void r(t)}u.done?e(s):Promise[a(243)](s)[a(356)](n,o)}function _asyncToGenerator(a){return function(){var t=this,c=arguments;return new Promise(function(e,r){var n=a.apply(t,c);function o(t){asyncGeneratorStep(n,e,r,o,i,_0x21ce(304),t)}function i(t){asyncGeneratorStep(n,e,r,o,i,_0x21ce(278),t)}o(void 0)})}}(()=>{for(var t=_0x21ce,e=_0x3e12();;)try{if(359724==+parseInt(t(297))+parseInt(t(372))/2*(-parseInt(t(303))/3)+-parseInt(t(285))/4*(-parseInt(t(336))/5)+-parseInt(t(370))/6+-parseInt(t(364))/7*(-parseInt(t(274))/8)+parseInt(t(295))/9+-parseInt(t(263))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var chalk=require(_0x360d98(290));function convert(t){return _convert.apply(this,arguments)}function _convert(){return(_convert=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var n,o,i,c=_0x21ce;return _regeneratorRuntime()[c(329)](function(t){for(var r=c;;)switch(t[r(316)]=t[r(304)]){case 0:if(n=require(r(284)),global._isMiniAppConvertMode=!0,global._isAscfMode=!0,process[r(246)][r(301)]=e[r(251)]?r(287):"no",i=require(r(245)),o=i[r(294)],i=i[r(308)],e[r(258)]&&(i(e.input,e[r(324)]),process[r(337)](0)),n.checkInputPathFun(e[r(265)]),e[r(272)]){t[r(304)]=12;break}return t[r(304)]=10,n[r(257)]({inputPath:e[r(265)],outPath:e[r(324)],confirmAddConfig:!0});case 10:(i=t[r(275)])[r(330)]?console[r(327)](chalk[r(377)]('"command":"'[r(332)](i.command,'","errorMessage":"')[r(332)](i[r(330)],'"'))):console[r(357)](chalk[r(354)](r(292)[r(332)](i[r(310)],'","folderUrl":"')[r(332)](i.folderUrl,'"')));case 12:setTimeout(function(){var e=r;try{o()}catch(t){console[e(267)](chalk.yellow(e(342).concat(t,".")))}});case 13:case r(323):return t[r(313)]()}},t)}))).apply(this,arguments)}function compile(t,e){return _compile.apply(this,arguments)}function _0x3e12(){var t=["resultName","symbol","red","infrastructureLogging","displayName","resolve","reset","./common/utils.js","env","_sent","level","return","GeneratorFunction","clear","catch","isGeneratorFunction","uncaughtException","push","length","confirmConverterFun","validate","toString","pop","' method","projectRoot","3009570XpjmDe","[object Generator]","input","delegate","warn","tryLoc","exports","catchLoc","dispatchException","check","isLatestAscfHar","2246440WriWVZ","sent","suspendedStart","create","throw","watch","ascf/ascf_src","type","./ascf-compiler/web.webpack.config.js","awrap","./ascf-converter/features/converter.js","104812APvMlN","hasOwnProperty","yes","progress","executing","./ascf-compiler/chalk/bundle.cjs","reason:",'"command":"',"break","isLatestAscfToolkit","1194867dcJLYF","abrupt","318054yVVeTd","verbose","defineProperty","function","clearResource","@@toStringTag","227637usmGqj","next","prototype","NODE_ENV","development","checkPath","method","command","chdir","ASCF uncaught error","stop","mark","call","prev","arg","ProgressPlugin","normal","nextLoc","root","iterator","end","output","try statement without catch or finally","plugins","error","_invoke","wrap","errorMessage","completion","concat","toStringTag","_ascfDebug","done","125SpuEcI","exit","finallyLoc","asyncIterator","keys","production","WARNING: Get @atomicservice/ascf-toolkit version failed: ","WARNING: Get @atomicservice/ascf info failed.","@@iterator","object","forEach","AsyncIterator","completed","getPrototypeOf","__proto__","EnvironmentPlugin","yellow","constructor","green","complete","then","info","tryEntries","reverse","__await","async","existsVerifyLog","values","7Hdfayq","webpack","apply","rval","afterLoc","path","3900822lIgUOF","run","2pQsjkK","The iterator does not provide a '","value"];return(_0x3e12=function(){return t})()}function _compile(){var e=_0x360d98;return(_compile=_asyncToGenerator(_regeneratorRuntime()[e(314)](function t(r,n){var o,i,c,a=e;return _regeneratorRuntime()[a(329)](function(t){for(var e=a;;)switch(t[e(316)]=t[e(304)]){case 0:return o=require(e(369)),process[e(246)][e(262)]=o[e(243)](r),process[e(311)](o[e(243)](r,e(280))),process[e(246)][e(306)]=n.mode?e(307):e(341),process[e(246)].clearResource=n[e(251)]?e(287):"no",o=require(e(365)),t[e(316)]=6,i=require(e(282)),t[e(304)]=10,i();case 10:return(i=t[e(275)])[e(326)]=i.plugins||[],i.plugins[e(255)](new o[e(351)]({projectRoot:r})),n[e(288)]&&i[e(326)][e(255)](new o[e(318)]),n.watch&&(i[e(279)]=!0),global[e(334)]&&(i[e(241)]={level:e(298)}),c=o(i),t.next=19,run(c);case 19:t[e(304)]=25;break;case 21:t[e(316)]=21,t.t0=t[e(252)](6),console.error(t.t0),process.exit(1);case 25:case e(323):return t[e(313)]()}},t,null,[[6,21]])})))[e(366)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(t){return new Promise(function(r,o){var i=_0x21ce;t[i(371)](function(t,e){var n=i;global[n(334)]&&e&&console.log(e[n(259)]({all:!1,colors:!0,errors:!0,warnings:!0,logging:n(298)})),t&&(console[n(327)](t),o(t)),setTimeout(function(){var e=n,t=require("./common/utils.js"),r=t.isLatestAscfToolkit,t=t[e(273)];try{t(global[e(362)])}catch(t){console[e(267)](chalk[e(352)](e(343)))}try{r(global[e(362)])}catch(t){console.warn(chalk[e(352)](e(342).concat(t,".")))}}),r()})})}chalk[_0x360d98(248)]=1,global._isAscfMode=!0,process.on(_0x360d98(254),function(t){var e=_0x360d98;console[e(327)](e(312),t)}),process.on("unhandledRejection",function(t,e){var r=_0x360d98;console[r(327)]("ASCF unhandled rejection at:",e,r(291),t)}),module[_0x360d98(269)]={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname};
1
+ var _0x2b4b2d=_0x1602;function _0x3d53(){var r=['","folderUrl":"',"completion","throw","existsVerifyLog","65958civuED","confirmConverterFun","command","folderUrl"," is not iterable","toString","asyncIterator","forEach","WARNING: Get @atomicservice/ascf info failed.","verbose","mode","_sent","end","arg","yellow","level","length","getPrototypeOf","yes","watch","push","672567cbqdeg","env","NODE_ENV","completed","sent","plugins","charAt","WARNING: Get @atomicservice/ascf-toolkit version failed: ","log","apply","prototype","AsyncIterator","async","tryLoc","721EObjvB","chdir","call","then","toStringTag","catchLoc","@@iterator","Generator is already running","tryEntries","infrastructureLogging","_ascfDebug","70264bemIsW","slice","3269960WIyBIi","./ascf-compiler/chalk/bundle.cjs","complete","3177801MGaBUL","method","info","iterator result is not an object","concat","validate","12lUZkwb","afterLoc","path","clear","finallyLoc","type","error","ascf/ascf_src","run","__await","prev","defineProperty","isLatestAscfToolkit","suspendedStart","projectRoot","check","iterator","reason:","[object Generator]","normal","next","development","catch","The iterator does not provide a '","ASCF uncaught error","webpack","done","./ascf-compiler/web.webpack.config.js","keys","./common/utils.js","illegal catch attempt","checkInputPathFun","checkPath","_invoke","28qQXmFq","continue","./ascf-converter/features/converter.js","GeneratorFunction","resolve","clearResource","rval","mark","__proto__","_isAscfMode","exit","361343tfQtok","abrupt","wrap","function","warn","360FIlgcQ","874255jRdVNr","reverse","Generator","2muuDIX","setPrototypeOf","symbol","pop","EnvironmentPlugin","break","ASCF unhandled rejection at:","value","create","resultName","isGeneratorFunction","executing","input","delegate","errorMessage","displayName","progress","object","return","constructor","uncaughtException",'"command":"',"red","output","reset"];return(_0x3d53=function(){return r})()}function _0x1602(r,t){var e=_0x3d53();return(_0x1602=function(r,t){return e[r-=283]})(r,t)}function _typeof(r){var e=_0x1602;return(_typeof=e(329)==typeof Symbol&&e(337)==typeof Symbol[e(297)]?function(r){return typeof r}:function(r){var t=e;return r&&t(329)==typeof Symbol&&r.constructor===Symbol&&r!==Symbol[t(395)]?t(337):typeof r})(r)}function _regeneratorRuntime(){var s=_0x1602;_regeneratorRuntime=function(){return c};var f,c={},r=Object[s(395)],l=r.hasOwnProperty,h=Object[s(292)]||function(r,t,e){var n=s;r[t]=e[n(342)]},t=s(329)==typeof Symbol?Symbol:{},i=t[s(297)]||s(405),e=t[s(370)]||"@@asyncIterator",n=t[s(403)]||"@@toStringTag";function o(r,t,e){return Object[s(292)](r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{o({},"")}catch(r){o=function(r,t,e){return r[t]=e}}function u(r,t,e,n){var o,i,a,c,u=s,t=t&&t[u(395)]instanceof b?t:b,t=Object.create(t[u(395)]),n=new L(n||[]);return h(t,u(314),{value:(o=r,i=e,a=n,c=v,function(r,t){var e=_0x1602;if(c===g)throw Error(e(406));if(c===d){if(e(362)===r)throw t;return{value:f,done:!0}}for(a[e(416)]=r,a[e(377)]=t;;){var n=a[e(348)];if(n){n=function r(t,e){var n=s,o=e.method,i=t.iterator[o];if(i===f)return e[n(348)]=null,n(362)===o&&t[n(297)].return&&(e[n(416)]="return",e[n(377)]=f,r(t,e),"throw"===e[n(416)])||"return"!==o&&(e[n(416)]="throw",e.arg=new TypeError(n(304)+o+"' method")),m;o=p(i,t[n(297)],e.arg);if(n(362)===o[n(286)])return e[n(416)]=n(362),e[n(377)]=o.arg,e.delegate=null,m;i=o[n(377)];return i?i.done?(e[t[n(344)]]=i[n(342)],e[n(301)]=t.nextLoc,n(353)!==e.method&&(e[n(416)]=n(301),e[n(377)]=f),e.delegate=null,m):i:(e[n(416)]=n(362),e[n(377)]=new TypeError(n(418)),e[n(348)]=null,m)}(n,a);if(n){if(n===m)continue;return n}}if(e(301)===a[e(416)])a[e(389)]=a[e(375)]=a[e(377)];else if(e(362)===a[e(416)]){if(c===v)throw c=d,a[e(377)];a.dispatchException(a[e(377)])}else"return"===a[e(416)]&&a[e(327)](e(353),a.arg);c=g;n=p(o,i,a);if("normal"===n[e(286)]){if(c=a[e(307)]?d:y,n.arg===m)continue;return{value:n[e(377)],done:a[e(307)]}}"throw"===n.type&&(c=d,a[e(416)]=e(362),a.arg=n[e(377)])}})}),t}function p(r,t,e){var n=s;try{return{type:n(300),arg:r[n(401)](t,e)}}catch(r){return{type:n(362),arg:r}}}c[s(328)]=u;var v=s(294),y="suspendedYield",g=s(346),d=s(388),m={};function b(){}function a(){}function _(){}var t={},x=(o(t,i,function(){return this}),Object[s(381)]),x=x&&x(x(G([]))),w=(x&&x!==r&&l[s(401)](x,i)&&(t=x),_[s(395)]=b[s(395)]=Object[s(343)](t));function k(r){var t=s;[t(301),"throw",t(353)][t(371)](function(t){o(r,t,function(r){return this[_0x1602(314)](t,r)})})}function j(c,u){var t,o=s;h(this,o(314),{value:function(e,n){function r(){return new u(function(r,t){!function t(r,e,n,o){var i,a=_0x1602,r=p(c[r],c,e);if("throw"!==r[a(286)])return(e=(i=r[a(377)]).value)&&a(352)==_typeof(e)&&l[a(401)](e,a(290))?u[a(319)](e[a(290)])[a(402)](function(r){t(a(301),r,n,o)},function(r){t(a(362),r,n,o)}):u[a(319)](e)[a(402)](function(r){i[a(342)]=r,n(i)},function(r){return t(a(362),r,n,o)});o(r.arg)}(e,n,r,t)})}return t=t?t[o(402)](r,r):r()}})}function I(r){var t=s,e={tryLoc:r[0]};1 in r&&(e[t(404)]=r[1]),2 in r&&(e.finallyLoc=r[2],e[t(422)]=r[3]),this[t(407)][t(384)](e)}function E(r){var t=s,e=r[t(361)]||{};e[t(286)]=t(300),delete e[t(377)],r.completion=e}function L(r){var t=s;this[t(407)]=[{tryLoc:"root"}],r[t(371)](I,this),this[t(359)](!0)}function G(e){var n=s;if(e||""===e){var o,r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e[n(380)]))return o=-1,(r=function r(){for(var t=n;++o<e[t(380)];)if(l.call(e,o))return r[t(342)]=e[o],r.done=!1,r;return r[t(342)]=f,r[t(307)]=!0,r})[n(301)]=r}throw new TypeError(_typeof(e)+n(368))}return a[s(395)]=_,h(w,s(354),{value:_,configurable:!0}),h(_,s(354),{value:a,configurable:!0}),a.displayName=o(_,n,s(318)),c[s(345)]=function(r){var t=s,r=t(329)==typeof r&&r[t(354)];return!!r&&(r===a||t(318)===(r[t(350)]||r.name))},c[s(322)]=function(r){var t=s;return Object[t(336)]?Object.setPrototypeOf(r,_):(r[t(323)]=_,o(r,n,t(318))),r[t(395)]=Object.create(w),r},c.awrap=function(r){return{__await:r}},k(j[s(395)]),o(j[s(395)],e,function(){return this}),c[s(396)]=j,c[s(397)]=function(r,t,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new j(u(r,t,e,n),o));return c.isGeneratorFunction(t)?a:a[i(301)]()[i(402)](function(r){var t=i;return r[t(307)]?r[t(342)]:a.next()})},k(w),o(w,n,s(334)),o(w,i,function(){return this}),o(w,s(369),function(){return s(299)}),c[s(309)]=function(r){var t,n=s,o=Object(r),i=[];for(t in o)i[n(384)](t);return i[n(333)](),function r(){for(var t=n;i[t(380)];){var e=i[t(338)]();if(e in o)return r.value=e,r[t(307)]=!1,r}return r[t(307)]=!0,r}},c.values=G,L.prototype={constructor:L,reset:function(r){var t=s;if(this.prev=0,this[t(301)]=0,this.sent=this._sent=f,this.done=!1,this[t(348)]=null,this[t(416)]=t(301),this[t(377)]=f,this[t(407)][t(371)](E),!r)for(var e in this)"t"===e[t(391)](0)&&l[t(401)](this,e)&&!isNaN(+e[t(411)](1))&&(this[e]=f)},stop:function(){var r=s,t=(this.done=!0,this[r(407)][0][r(361)]);if(r(362)===t.type)throw t[r(377)];return this[r(321)]},dispatchException:function(n){var o=s;if(this[o(307)])throw n;var i=this;function r(r,t){var e=o;return a[e(286)]=e(362),a[e(377)]=n,i.next=r,t&&(i[e(416)]=e(301),i[e(377)]=f),!!t}for(var t=this[o(407)][o(380)]-1;0<=t;--t){var e=this.tryEntries[t],a=e[o(361)];if("root"===e[o(398)])return r(o(376));if(e.tryLoc<=this[o(291)]){var c=l[o(401)](e,o(404)),u=l[o(401)](e,o(285));if(c&&u){if(this[o(291)]<e[o(404)])return r(e[o(404)],!0);if(this.prev<e[o(285)])return r(e[o(285)])}else if(c){if(this[o(291)]<e[o(404)])return r(e.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(291)]<e[o(285)])return r(e[o(285)])}}}},abrupt:function(r,t){for(var e=s,n=this[e(407)][e(380)]-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&l[e(401)](o,e(285))&&this[e(291)]<o[e(285)]){var i=o;break}}var a=(i=i&&(e(340)===r||e(316)===r)&&i[e(398)]<=t&&t<=i[e(285)]?null:i)?i[e(361)]:{};return a[e(286)]=r,a.arg=t,i?(this[e(416)]="next",this[e(301)]=i.finallyLoc,m):this[e(414)](a)},complete:function(r,t){var e=s;if(e(362)===r[e(286)])throw r[e(377)];return e(340)===r[e(286)]||e(316)===r[e(286)]?this.next=r.arg:e(353)===r[e(286)]?(this.rval=this.arg=r.arg,this[e(416)]=e(353),this.next=e(376)):"normal"===r[e(286)]&&t&&(this.next=t),m},finish:function(r){for(var t=s,e=this[t(407)].length-1;0<=e;--e){var n=this.tryEntries[e];if(n[t(285)]===r)return this[t(414)](n[t(361)],n[t(422)]),E(n),m}},catch:function(r){for(var t=s,e=this.tryEntries[t(380)]-1;0<=e;--e){var n,o,i=this[t(407)][e];if(i[t(398)]===r)return n=i[t(361)],t(362)===n[t(286)]&&(o=n[t(377)],E(i)),o}throw Error(t(311))},delegateYield:function(r,t,e){var n=s;return this[n(348)]={iterator:G(r),resultName:t,nextLoc:e},n(301)===this[n(416)]&&(this.arg=f),m}},c}function asyncGeneratorStep(r,t,e,n,o,i,a){var c=_0x1602;try{var u=r[i](a),s=u[c(342)]}catch(r){return void e(r)}u[c(307)]?t(s):Promise[c(319)](s)[c(402)](n,o)}function _asyncToGenerator(c){return function(){var r=this,a=arguments;return new Promise(function(t,e){var n=c.apply(r,a);function o(r){asyncGeneratorStep(n,t,e,o,i,_0x1602(301),r)}function i(r){asyncGeneratorStep(n,t,e,o,i,_0x1602(362),r)}o(void 0)})}}(()=>{for(var r=_0x1602,t=_0x3d53();;)try{if(618257==+parseInt(r(326))*(parseInt(r(335))/2)+-parseInt(r(385))/3+parseInt(r(315))/4*(parseInt(r(332))/5)+parseInt(r(364))/6*(-parseInt(r(399))/7)+parseInt(r(410))/8*(parseInt(r(331))/9)+parseInt(r(412))/10+-parseInt(r(415))/11*(parseInt(r(421))/12))break;t.push(t.shift())}catch(r){t.push(t.shift())}})();var chalk=require(_0x2b4b2d(413));function convert(r){return _convert[_0x2b4b2d(394)](this,arguments)}function _convert(){var r=_0x2b4b2d;return(_convert=_asyncToGenerator(_regeneratorRuntime()[r(322)](function r(t){var n,o,i;return _regeneratorRuntime().wrap(function(r){for(var e=_0x1602;;)switch(r[e(291)]=r[e(301)]){case 0:if(n=require(e(317)),global._isMiniAppConvertMode=!0,global[e(324)]=!0,process[e(386)].clearResource=t[e(284)]?e(382):"no",i=require(e(310)),o=i.isLatestAscfToolkit,i=i[e(313)],t[e(420)]&&(i(t.input,t[e(358)]),process[e(325)](0)),n[e(312)](t[e(347)]),t[e(296)]){r[e(301)]=12;break}return r.next=10,n[e(365)]({inputPath:t.input,outPath:t[e(358)],confirmAddConfig:!0});case 10:(i=r[e(389)])[e(349)]?console[e(287)](chalk[e(357)](e(356).concat(i[e(366)],'","errorMessage":"')[e(419)](i.errorMessage,'"'))):console[e(417)](chalk.green(e(356).concat(i[e(366)],e(360))[e(419)](i[e(367)],'"')));case 12:setTimeout(function(){var t=e;try{o()}catch(r){console[t(330)](chalk[t(378)](t(392)[t(419)](r,".")))}});case 13:case e(376):return r.stop()}},r)})))[r(394)](this,arguments)}function compile(r,t){return _compile.apply(this,arguments)}function _compile(){var r=_0x2b4b2d;return(_compile=_asyncToGenerator(_regeneratorRuntime().mark(function r(e,n){var o,i,a,c=_0x1602;return _regeneratorRuntime()[c(328)](function(r){for(var t=c;;)switch(r.prev=r[t(301)]){case 0:return o=require(t(283)),process.env[t(295)]=o[t(319)](e),process[t(400)](o[t(319)](e,t(288))),process[t(386)][t(387)]=n[t(374)]?t(302):"production",process[t(386)][t(320)]=n[t(284)]?t(382):"no",o=require(t(306)),r[t(291)]=6,i=require(t(308)),r.next=10,i();case 10:return(i=r[t(389)])[t(390)]=i.plugins||[],i.plugins[t(384)](new o[t(339)]({projectRoot:e})),n[t(351)]&&i[t(390)][t(384)](new o.ProgressPlugin),n.watch&&(i[t(383)]=!0),global._ascfDebug&&(i[t(408)]={level:t(373)}),a=o(i),r[t(301)]=19,run(a);case 19:r[t(301)]=25;break;case 21:r[t(291)]=21,r.t0=r[t(303)](6),console[t(287)](r.t0),process[t(325)](1);case 25:case t(376):return r.stop()}},r,null,[[6,21]])})))[r(394)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(r){return new Promise(function(e,o){var i=_0x1602;r[i(289)](function(r,t){var n=i;global[n(409)]&&t&&console[n(393)](t[n(369)]({all:!1,colors:!0,errors:!0,warnings:!0,logging:n(373)})),r&&(console[n(287)](r),o(r)),setTimeout(function(){var t=n,r=require(t(310)),e=r[t(293)],r=r.isLatestAscfHar;try{r(global.existsVerifyLog)}catch(r){console[t(330)](chalk[t(378)](t(372)))}try{e(global[t(363)])}catch(r){console[t(330)](chalk[t(378)](t(392)[t(419)](r,".")))}}),e()})})}chalk[_0x2b4b2d(379)]=1,global._isAscfMode=!0,process.on(_0x2b4b2d(355),function(r){var t=_0x2b4b2d;console[t(287)](t(305),r)}),process.on("unhandledRejection",function(r,t){var e=_0x2b4b2d;console[e(287)](e(341),t,e(298),r)}),module.exports={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicservice/ascf-toolkit",
3
- "version": "1.0.1-beta.0",
3
+ "version": "1.0.1",
4
4
  "author": "atomicservice",
5
5
  "title": "ASCF toolkit for atomicservice",
6
6
  "description": "ASCF toolkit for atomicservice",