@atomicservice/ascf-toolkit 1.0.3-beta.0 → 1.0.3-beta.6
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.
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/parser-babel.js +1 -0
- package/lib/ascf-compiler/common/parser-swc.js +1 -0
- package/lib/ascf-compiler/common/parser.js +1 -0
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/swc-loader.js +1 -0
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/watch/watch.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/bin/ascf.js +1 -1
- package/lib/common/config.js +1 -1
- package/lib/common/log4js.js +1 -0
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +6 -7
- package/lib/ascf-compiler/chalk/bundle.cjs.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2efd62=_0x31c5,_require=((()=>{for(var n=_0x31c5,r=_0x4c97();;)try{if(303824==+parseInt(n(398))+-parseInt(n(406))/2*(-parseInt(n(404))/3)+-parseInt(n(390))/4+parseInt(n(402))/5*(parseInt(n(400))/6)+parseInt(n(410))/7*(-parseInt(n(391))/8)+parseInt(n(405))/9*(-parseInt(n(394))/10)+parseInt(n(396))/11)break;r.push(r.shift())}catch(n){r.push(r.shift())}})(),require("child_process")),execSync=_require[_0x2efd62(397)],log4js=require(_0x2efd62(411)),logger=log4js.getLogger("watch");function _0x4c97(){var n=["error","7CBGwQM","../../common/log4js.js","1883608ZRugMy","2693032tcdwzu","Run command error: ","info","150UXlmVL","utf8","4266152bTrRZJ","execSync","564269WhXBhW","watch","210YIhcKS","Run command on changes been watched: ","22945EGzjbm","toString","3ZldbNc","4851GuqFdj","13448qlnXDF","debug","verbose"];return(_0x4c97=function(){return n})()}function _0x31c5(n,r){var e=_0x4c97();return(_0x31c5=function(n,r){return e[n-=390]})(n,r)}function watchRun(n,c){var a=_0x2efd62;n[a(399)]({},function(n,r){var e=a;r&&logger.info(r[e(403)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global._ascfDebug?e(408):e(393)})),n&&logger[e(409)](n),c&&c(n,r)})}var isCommandRunning=!(exports.watchExec=function(n,e){watchRun(n,function(n,r){n?logger[_0x31c5(409)](n):runOnChanges(e,r)})});function runOnChanges(n){var r=_0x2efd62;if(n&&!isCommandRunning)try{logger[r(407)](r(401),n),isCommandRunning=!0;var e=execSync(n,{encoding:r(395)});logger[r(407)]("Run command result: ",String(e))}catch(n){logger[r(409)](r(392),n)}finally{isCommandRunning=!1}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x22e264=_0x5f55;function _regeneratorRuntime(){var c=_0x5f55;_regeneratorRuntime=function(){return s};var l,s={},e=Object.prototype,p=e.hasOwnProperty,f=Object.defineProperty||function(e,t,r){var n=_0x5f55;e[t]=r[n(417)]},t=c(291)==typeof Symbol?Symbol:{},a=t[c(314)]||c(237),r=t[c(436)]||c(242),n=t[c(384)]||c(286);function o(e,t,r){return Object[c(315)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o,a,i,s,u=c,t=t&&t[u(260)]instanceof v?t:v,t=Object.create(t[u(260)]),n=new T(n||[]);return f(t,u(235),{value:(o=e,a=r,i=n,s=h,function(e,t){var r=_0x5f55;if(s===m)throw Error(r(442));if(s===g){if(r(220)===e)throw t;return{value:l,done:!0}}for(i[r(249)]=e,i.arg=t;;){var n=i.delegate;if(n){n=function e(t,r){var n=c,o=r[n(249)],a=t[n(314)][o];if(a===l)return r[n(265)]=null,"throw"===o&&t.iterator[n(431)]&&(r[n(249)]=n(431),r[n(233)]=l,e(t,r),n(220)===r.method)||n(431)!==o&&(r[n(249)]=n(220),r.arg=new TypeError(n(437)+o+"' method")),y;o=_(a,t[n(314)],r[n(233)]);if(n(220)===o.type)return r[n(249)]="throw",r.arg=o.arg,r[n(265)]=null,y;a=o[n(233)];return a?a[n(267)]?(r[t[n(240)]]=a[n(417)],r[n(381)]=t.nextLoc,n(431)!==r[n(249)]&&(r[n(249)]=n(381),r[n(233)]=l),r[n(265)]=null,y):a:(r[n(249)]=n(220),r.arg=new TypeError(n(333)),r[n(265)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if("next"===i[r(249)])i[r(355)]=i[r(363)]=i[r(233)];else if("throw"===i.method){if(s===h)throw s=g,i[r(233)];i[r(222)](i[r(233)])}else r(431)===i[r(249)]&&i.abrupt(r(431),i[r(233)]);s=m;n=_(o,a,i);if(r(241)===n[r(243)]){if(s=i[r(267)]?g:d,n[r(233)]===y)continue;return{value:n[r(233)],done:i[r(267)]}}r(220)===n.type&&(s=g,i[r(249)]=r(220),i[r(233)]=n[r(233)])}})}),t}function _(e,t,r){var n=c;try{return{type:n(241),arg:e[n(254)](t,r)}}catch(e){return{type:n(220),arg:e}}}s.wrap=u;var h=c(276),d=c(320),m=c(353),g=c(334),y={};function v(){}function i(){}function P(){}var t={},b=(o(t,a,function(){return this}),Object[c(275)]),b=b&&b(b(I([]))),x=(b&&b!==e&&p.call(b,a)&&(t=b),P[c(260)]=v[c(260)]=Object.create(t));function A(e){var t=c;["next",t(220),"return"][t(225)](function(t){o(e,t,function(e){return this._invoke(t,e)})})}function C(s,u){var t,o=c;f(this,o(235),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var a,i=_0x5f55,e=_(s[e],s,r);if("throw"!==e[i(243)])return(r=(a=e[i(233)])[i(417)])&&i(329)==_typeof(r)&&p[i(254)](r,i(232))?u.resolve(r[i(232)])[i(327)](function(e){t(i(381),e,n,o)},function(e){t("throw",e,n,o)}):u[i(228)](r)[i(327)](function(e){a.value=e,n(a)},function(e){return t(i(220),e,n,o)});o(e[i(233)])}(r,n,e,t)})}return t=t?t[o(327)](e,e):e()}})}function S(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(290)]=e[1]),2 in e&&(r[t(261)]=e[2],r[t(354)]=e[3]),this.tryEntries[t(445)](r)}function R(e){var t=c,r=e.completion||{};r[t(243)]=t(241),delete r[t(233)],e[t(226)]=r}function T(e){var t=c;this[t(339)]=[{tryLoc:t(277)}],e[t(225)](S,this),this[t(246)](!0)}function I(r){var n=c;if(r||""===r){var o,e=r[a];if(e)return e[n(254)](r);if(n(291)==typeof r[n(381)])return r;if(!isNaN(r[n(422)]))return o=-1,(e=function e(){for(var t=n;++o<r[t(422)];)if(p[t(254)](r,o))return e.value=r[o],e[t(267)]=!1,e;return e.value=l,e.done=!0,e})[n(381)]=e}throw new TypeError(_typeof(r)+n(293))}return i[c(260)]=P,f(x,"constructor",{value:P,configurable:!0}),f(P,"constructor",{value:i,configurable:!0}),i.displayName=o(P,n,c(337)),s[c(441)]=function(e){var t=c,e=t(291)==typeof e&&e[t(245)];return!!e&&(e===i||"GeneratorFunction"===(e[t(439)]||e[t(322)]))},s[c(364)]=function(e){var t=c;return Object[t(358)]?Object[t(358)](e,P):(e[t(234)]=P,o(e,n,t(337))),e[t(260)]=Object.create(x),e},s[c(367)]=function(e){return{__await:e}},A(C.prototype),o(C[c(260)],r,function(){return this}),s.AsyncIterator=C,s[c(428)]=function(e,t,r,n,o){var a=c,i=(void 0===o&&(o=Promise),new C(u(e,t,r,n),o));return s.isGeneratorFunction(t)?i:i[a(381)]()[a(327)](function(e){var t=a;return e[t(267)]?e[t(417)]:i[t(381)]()})},A(x),o(x,n,c(263)),o(x,a,function(){return this}),o(x,"toString",function(){return c(227)}),s[c(360)]=function(e){var t,n=Object(e),o=[];for(t in n)o.push(t);return o.reverse(),function e(){for(var t=_0x5f55;o[t(422)];){var r=o[t(294)]();if(r in n)return e[t(417)]=r,e[t(267)]=!1,e}return e[t(267)]=!0,e}},s[c(274)]=I,T[c(260)]={constructor:T,reset:function(e){var t=c;if(this[t(247)]=0,this.next=0,this[t(355)]=this[t(363)]=l,this[t(267)]=!1,this[t(265)]=null,this[t(249)]=t(381),this[t(233)]=l,this[t(339)].forEach(R),!e)for(var r in this)"t"===r[t(434)](0)&&p[t(254)](this,r)&&!isNaN(+r[t(236)](1))&&(this[r]=l)},stop:function(){var e=c,t=(this.done=!0,this[e(339)][0][e(226)]);if(e(220)===t.type)throw t[e(233)];return this.rval},dispatchException:function(n){var o=c;if(this[o(267)])throw n;var a=this;function e(e,t){var r=o;return i.type="throw",i[r(233)]=n,a.next=e,t&&(a.method=r(381),a.arg=l),!!t}for(var t=this[o(339)][o(422)]-1;0<=t;--t){var r=this[o(339)][t],i=r[o(226)];if(o(277)===r.tryLoc)return e("end");if(r[o(255)]<=this[o(247)]){var s=p.call(r,o(290)),u=p[o(254)](r,o(261));if(s&&u){if(this[o(247)]<r[o(290)])return e(r[o(290)],!0);if(this[o(247)]<r[o(261)])return e(r[o(261)])}else if(s){if(this.prev<r.catchLoc)return e(r[o(290)],!0)}else{if(!u)throw Error(o(318));if(this.prev<r[o(261)])return e(r[o(261)])}}}},abrupt:function(e,t){for(var r=c,n=this[r(339)].length-1;0<=n;--n){var o=this[r(339)][n];if(o[r(255)]<=this[r(247)]&&p.call(o,r(261))&&this[r(247)]<o[r(261)]){var a=o;break}}var i=(a=a&&("break"===e||r(216)===e)&&a.tryLoc<=t&&t<=a[r(261)]?null:a)?a.completion:{};return i[r(243)]=e,i.arg=t,a?(this[r(249)]=r(381),this[r(381)]=a.finallyLoc,y):this.complete(i)},complete:function(e,t){var r=c;if(r(220)===e[r(243)])throw e[r(233)];return r(279)===e[r(243)]||r(216)===e[r(243)]?this.next=e[r(233)]:r(431)===e[r(243)]?(this.rval=this.arg=e[r(233)],this[r(249)]=r(431),this[r(381)]=r(295)):r(241)===e[r(243)]&&t&&(this[r(381)]=t),y},finish:function(e){for(var t=c,r=this.tryEntries[t(422)]-1;0<=r;--r){var n=this[t(339)][r];if(n[t(261)]===e)return this[t(421)](n[t(226)],n.afterLoc),R(n),y}},catch:function(e){for(var t=c,r=this[t(339)][t(422)]-1;0<=r;--r){var n,o,a=this[t(339)][r];if(a[t(255)]===e)return n=a[t(226)],t(220)===n[t(243)]&&(o=n[t(233)],R(a)),o}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){var n=c;return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this[n(233)]=l),y}},s}function _typeof(e){var r=_0x5f55;return(_typeof="function"==typeof Symbol&&r(423)==typeof Symbol[r(314)]?function(e){return typeof e}:function(e){var t=r;return e&&t(291)==typeof Symbol&&e[t(245)]===Symbol&&e!==Symbol.prototype?t(423):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){var s=_0x5f55;try{var u=e[a](i),c=u[s(417)]}catch(e){return void r(e)}u[s(267)]?t(c):Promise[s(228)](c).then(n,o)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x5f55,o=u[n(394)](e,s);function a(e){asyncGeneratorStep(o,t,r,a,i,n(381),e)}function i(e){asyncGeneratorStep(o,t,r,a,i,n(220),e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x5f55(424))}function _iterableToArray(e){var t=_0x5f55;if(t(429)!=typeof Symbol&&null!=e[Symbol[t(314)]]||null!=e["@@iterator"])return Array[t(326)](e)}function _arrayWithoutHoles(e){if(Array[_0x5f55(331)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,o,a,i=_0x5f55,s="undefined"!=typeof Symbol&&e[Symbol[i(314)]]||e[i(237)];if(s)return o=!(n=!0),{s:function(){s=s[i(254)](e)},n:function(){var e=i,t=s[e(381)]();return n=t[e(267)],t},e:function(e){o=!0,r=e},f:function(){var e=i;try{n||null==s[e(431)]||s[e(431)]()}finally{if(o)throw r}}};if(Array.isArray(e)||(s=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e[i(422)])return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r,n=_0x5f55;if(e)return n(414)==typeof e?_arrayLikeToArray(e,t):(r={}[n(352)].call(e)[n(236)](8,-1),n(343)===r&&e[n(245)]&&(r=e[n(245)][n(322)]),n(351)===r||"Set"===r?Array[n(326)](e):n(253)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(223)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0x5f55;(null==t||t>e[r(422)])&&(t=e[r(422)]);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _defineProperty(e,t,r){var n=_0x5f55;return(t=_toPropertyKey(t))in e?Object[n(315)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0x5f55,e=_toPrimitive(e,t(414));return t(423)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x5f55;if("object"!=_typeof(e)||!e)return e;var n=e[Symbol[r(404)]];if(void 0===n)return(r(414)===t?String:Number)(e);n=n[r(254)](e,t||"default");if(r(329)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0x5f55,t=_0x2def();;)try{if(231881==-parseInt(e(378))*(parseInt(e(398))/2)+parseInt(e(268))/3+-parseInt(e(224))/4*(parseInt(e(397))/5)+-parseInt(e(399))/6*(-parseInt(e(325))/7)+-parseInt(e(369))/8*(-parseInt(e(443))/9)+parseInt(e(219))/10+-parseInt(e(310))/11*(parseInt(e(385))/12))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require(_0x22e264(411)),fs=require("fs"),webpack=require(_0x22e264(250)),json5=require(_0x22e264(386)),ResourcePlugin=require("./plugin/resource-plugin"),HtmlGeneratorPlugin=require(_0x22e264(229)),ManifestGeneratorPlugin=require("./plugin/manifest-generator-plugin"),I18NPlugin=require(_0x22e264(230)),CopyAscfBundlePlugin=require(_0x22e264(231)),_packOptions=require("./common/packoptions-utils"),_require=require(_0x22e264(302)),clearResource=_require[_0x22e264(298)],IS_PRD=_require.IS_PRD,PROJECT_PATH=_require[_0x22e264(313)],PROJECT_CONFIG=_require[_0x22e264(340)],ASCF_SRC_PATH=_require[_0x22e264(444)],ASCF_BUILD_PATH=_require.ASCF_BUILD_PATH,RAWFILE_DIR=_require.RAWFILE_DIR,WebpackTargetPlugin=require(_0x22e264(419)),LoggerPlguin=require(_0x22e264(416)),utils=require(_0x22e264(330)),commonUtils=require(_0x22e264(302)),removeStrictModePlugin=require(_0x22e264(387)),chalk=require(_0x22e264(287)),ExtConfigPlugin=require(_0x22e264(262)),ignoreRules=(chalk.level=1,process[_0x22e264(285)]=!0,generateIgnoreRule(PROJECT_CONFIG)),ZIP_PATH=path[_0x22e264(273)](ASCF_SRC_PATH,_0x22e264(415),_0x22e264(383)),buildProfileJson5Path=path[_0x22e264(228)](PROJECT_PATH,_0x22e264(371));if(!fs[_0x22e264(412)](buildProfileJson5Path))throw _0x22e264(382);var buildProfile=json5[_0x22e264(296)](fs[_0x22e264(332)](buildProfileJson5Path)[_0x22e264(352)]());if(!buildProfile[_0x22e264(284)]||0===buildProfile.modules.length)throw _0x22e264(328);var BUILD_PATH=path[_0x22e264(228)](PROJECT_PATH,buildProfile.modules[0][_0x22e264(396)],RAWFILE_DIR),I18N_ENTRY=[],I18N="i18n",APP=_0x22e264(408),APP_TYPE="webapp";function handleUsingComponents(e,t){var r,n=_0x22e264;if(e)for(var o in e)Object.prototype[n(258)][n(254)](e,o)&&(r=e[o][n(272)](),e[o]=utils[n(316)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,a,r=_0x22e264,i=["iconPath","selectedIconPath",r(366)],n=(null==(n=e[r(323)])?void 0:n.list)||[],e=e.subPackages||e[r(357)]||[];n!==[]&&e!==[]&&(t=e[r(409)](function(e){return e[r(277)]}).filter(function(e){return e}),a=[],n[r(225)](function(o){t[r(225)](function(n){i.forEach(function(e){var t,r=_0x5f55;path.join(ASCF_SRC_PATH,null!=(t=o[e])?t:"")[r(281)](path[r(273)](ASCF_SRC_PATH,n,"/"))&&a[r(445)](chalk[r(218)](r(319)[r(432)](o[r(248)]," ")[r(432)](e," cannot be in the subpackage directory")))})})}),0<a[r(422)])&&(a[r(225)](function(e){console[r(278)](chalk.red(e))}),console[r(278)](chalk[r(218)](r(221))),process[r(359)](1))}function readAppJson(){var r=_0x22e264,e=_defineProperty({},APP,new Map),t=path[r(273)](ASCF_SRC_PATH,"app.json");if(!fs[r(412)](t))throw r(309);var n=commonUtils[r(379)](t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(312)],t),n.page={},n[r(365)]=[],[]);if(!n.pages||n[r(373)][r(422)]<=0)throw"ERROR: app.json doesn't contain any page.";putPageInfoToEntryList(n[r(373)],"",!1,n,e[APP]);var o=[r(357),r(349)][r(433)](function(e){var t=r;return Object[t(260)][t(258)].call(n,e)});if(t[r(422)]){o&&delete n[o];var a,i=_createForOfIteratorHelper(n[r(357)]=t);try{for(i.s();!(a=i.n()).done;){var s=a[r(417)],u=new Map;e[s[r(277)]]=u,putPageInfoToEntryList(s[r(373)],s[r(277)],s[r(390)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(o){t=n[o],delete n[o];var c,l=_createForOfIteratorHelper(n[r(357)]=t);try{for(l.s();!(c=l.n()).done;){var p=c[r(417)],f=new Map;e[p[r(277)]]=f,putPageInfoToEntryList(p[r(373)],p[r(277)],p.independent,n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x22e264;e[r(243)]=null!=(t=null!=(t=e[r(243)])?t:e[r(324)])?t:APP_TYPE,delete e[r(324)]}function hasCustomTabBar(e){var t=_0x22e264;return(e[t(323)]||{})[t(266)]&&fs.existsSync(path[t(228)](ASCF_SRC_PATH,t(306)))}function handingCustomTabBar(e){var t=_0x22e264;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(323)][t(407)]);try{for(n.s();!(r=n.n())[t(267)];){var o=r.value;if(!e[t(400)][o.pagePath])throw t(410)+"'"[t(432)](o.pagePath,t(405));e[t(400)][o[t(366)]][t(376)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var e=_0x22e264,t=0<arguments[e(422)]&&void 0!==arguments[0]?arguments[0]:{},r=[];return Object[e(360)](t)[e(225)](function(e){r.push({key:e,path:t[e]})}),r}function putPageInfoToEntryList(e,t,r,n,o){var a=_0x22e264;if(e)for(var i in e)if(Object[a(260)][a(258)].call(e,i)){var i=path[a(273)](ASCF_SRC_PATH,t,e[i]),s=path[a(311)](ASCF_SRC_PATH,i);if(!_packOptions[a(406)](s,ignoreRules)){var s=s[a(305)](/\\/g,"/"),i=""[a(432)](i,a(257)),u=void 0;try{u=fs.existsSync(i)?JSON.parse(fs[a(332)](i)[a(352)]()):{}}catch(e){throw a(418)[a(432)](i,a(271))}handleUsingComponents(u[a(312)],i),r&&n[a(365)][a(445)](s),n[a(400)][s]=u,t||getUsingComponents(n,"","",o,a(400)),getUsingComponents(u,i,s,o,"page")}}}function getUsingComponents(a,i,e,s,t){var u=_0x22e264,c=5<arguments[u(422)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=a[u(322)];if(a.usingComponents)for(var f in a[u(312)])(()=>{var t=u;if(Object[t(260)][t(258)][t(254)](a[t(312)],f)){var r=a[t(312)][f],e=utils.getAbsPath(r,i,ASCF_SRC_PATH,t(257)),n=e[t(300)],e=e[t(297)],o=path[t(311)](ASCF_SRC_PATH,n).replace(/\\/g,"/")[t(305)](/\.json/,""),r=e||o;if(a[t(312)][f]=r,!p&&i===n)return p=f;if(c.find(function(e){return e===n}))return;l[t(356)](function(e){return e[t(411)]===r})||l[t(445)]({path:r,key:f,compJsonPath:n});e=JSON[t(296)](fs[t(332)](n)[t(352)]());handleUsingComponents(e[t(312)],n),getUsingComponents(e,n,r,s,t(217),c[t(432)]([n]))}})();e&&!s[u(380)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(389)](e,t))}function getI18NEntry(u){var c=_0x22e264;fs[c(252)](u,function(e,t){var r=c;if(e)throw e;var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n())[r(267)];){var a,i=n[r(417)],s=path[r(273)](u,i)[r(305)](/\\/g,"/");fs[r(336)](s).isDirectory()&&!/(node_modules)|(\.ascf)/[r(223)](i)&&((a=s.split("/"))[a.length-1][r(440)]()===I18N&&I18N_ENTRY[r(445)](s),getI18NEntry(s))}}catch(e){o.e(e)}finally{o.f()}})}function generateEntry(e){var n=_0x22e264,o={},t=e[n(345)],r=[],a=(Object.keys(t)[n(259)]()[n(225)](function(e){r[n(445)](t[e])}),o["app.js"]=path[n(228)](ASCF_SRC_PATH,n(361))[n(305)](/\\/g,"/"),utils[n(388)](r)),i=path[n(228)](ASCF_SRC_PATH,"app.css");if(fs[n(412)](i)&&(o[n(344)]=path[n(228)](ASCF_SRC_PATH,n(283))),hasCustomTabBar(e[n(215)])){var s,i=path.resolve(ASCF_SRC_PATH,"custom-tab-bar/index.hxml"),u=i[n(305)](/\.hxml$/,n(257)),c=(o[n(413)]="".concat(i,n(244)),_createForOfIteratorHelper(e[n(215)][n(323)][n(407)]));try{for(c.s();!(s=c.n())[n(267)];){var l=s[n(417)];a[n(380)](l.pagePath)&&a[n(380)](l[n(366)])[n(308)][n(445)]({path:n(375),key:"customTabBar",compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:"component",compJsonPath:u};t[n(408)][n(389)](n(375),i)}return a[n(225)](function(e,t){var r=n;return o[""[r(432)](t,r(420))]=e.compJsonPath[r(305)](/\.json$/,r(251))}),utils[n(372)](e,n(391),a),generateWidgetsEntry(o,e),o}function generateWidgetsEntry(o,r){var a,n,i=_0x22e264,e=r[i(215)];r.manifest&&e[i(430)]&&((a=e[i(430)][i(373)])&&Object[i(360)](a)[i(225)](function(e){var t=i,r=a[e],n=r.component,r=(r||console[t(307)](chalk[t(264)](t(341)[t(432)](e,"' does not have the component attribute configured. ")+t(299)[t(432)](n,t(335)))),path[t(273)](ASCF_SRC_PATH,e,n)),e=""[t(432)](path[t(273)](e,n),t(374));if(fs.existsSync("".concat(r,".ux")))o[e]=""[t(432)](r,t(362));else if(!fs.existsSync(""[t(432)](r,t(251))))throw t(427)[t(432)](r,t(362))}),e=e[i(426)])&&0<e[i(422)]&&(r[i(280)]=[],n="",e.forEach(function(e){var t=i;n=e[t(411)],r[t(280)].push(path[t(273)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x22e264,t={targets:{node:8}};return{rules:[][e(432)](_toConsumableArray(utils.createCSSRule()),[{test:/\.js$/,use:[{loader:utils.loadBabelModule(e(338)),options:{presets:[[utils.loadBabelModule(e(317)),t]],plugins:[utils[e(368)](e(282)),utils[e(368)](e(350))]}},{loader:path[e(228)](__dirname,e(438))}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path.resolve(__dirname,e(239))},{loader:utils.loadBabelModule(e(338)),options:{presets:[[utils[e(368)](e(317)),t]],plugins:[utils[e(368)](e(282)),removeStrictModePlugin]}},{loader:path[e(228)](__dirname,e(321))},{loader:path.resolve(__dirname,e(438))}],exclude:/node_modules/},{test:/\.hxml$/,type:"javascript/auto",use:[{loader:utils[e(368)](e(338)),options:{presets:[[utils[e(368)](e(317)),t]],compact:!1}},{loader:path.resolve(__dirname,e(269))},{loader:path[e(228)](__dirname,e(393))}]},{test:/app\.json$/,type:"javascript/auto",use:[{loader:path[e(228)](__dirname,e(270))}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path[e(228)](__dirname,"fa-compiler/loader.js")}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x22e264(238)](e):t)||{}}function _0x5f55(e,t){var r=_0x2def();return(_0x5f55=function(e,t){return r[e-=215]})(e,t)}function generateRouteMapping(e){var t=_0x22e264,r=e[t(215)][t(256)]||{},n=path[t(273)](ASCF_SRC_PATH,t(425));if(fs[t(412)](n)){var o=JSON[t(296)](fs[t(332)](n).toString());if(o)for(var a in o)Object[t(260)].hasOwnProperty[t(254)](o,a)&&(r[a]=o[a])}0<Object[t(360)](r)[t(422)]&&(e[t(215)][t(256)]=r)}function generatePlugins(e){var t=_0x22e264;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(215)]}),new ManifestGeneratorPlugin({manifest:e[t(215)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[t(215)],pagesInfo:e[t(215)][t(400)],srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e[t(391)]}),new webpack[t(403)]({options:{srcPath:ASCF_SRC_PATH,manifest:e.manifest,components:e.components,projectComponentsMap:e[t(345)],versionNum:e[t(288)],widgetPathsList:e.widgetPathsList,widgetsDependList:e[t(280)],projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(215)][t(312)])}}),new I18NPlugin({srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,entries:I18N_ENTRY}),new WebpackTargetPlugin,new CopyAscfBundlePlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH,bundleDir:RAWFILE_DIR}),new ExtConfigPlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH})]}function getResolve(){var e=_0x22e264;return{modules:[path[e(273)](ASCF_SRC_PATH,"miniprogram_npm"),path.join(ASCF_SRC_PATH,e(342)),path[e(273)](__dirname,"..","..",e(342)),path[e(273)](__dirname,"..","..","..","..",e(342))]}}function checkBuildResources(){var e=_0x22e264;(fs[e(412)](ZIP_PATH)||fs.existsSync(BUILD_PATH)||fs[e(412)](ASCF_BUILD_PATH))&&(console.warn(chalk.yellow(e(435))),process[e(359)](1))}function generateConfig(){return _generateConfig[_0x22e264(394)](this,arguments)}function _0x2def(){var e=["iterator","defineProperty","getProjectAbsPath","@babel/preset-env","try statement without catch or finally","ERROR: tabBar ","suspendedYield","./path-process-loader.js","name","tabBar","appType","1423555Fyxjyf","from","then","ERROR: build-profile.json5 file modules is null","object","./common/utils","isArray","readFileSync","iterator result is not an object","completed","' is used.","lstatSync","GeneratorFunction","babel-loader","tryEntries","PROJECT_CONFIG","WARNING:Route information in the manifest.json file is incomplete:\n Page '","node_modules","Object","app.css.js","projectComponentsMap","moduleIds","production","yes","subPackages","@babel/plugin-proposal-class-properties","Map","toString","executing","afterLoc","sent","some","subpackages","setPrototypeOf","exit","keys","app.json?package=app",".ux","_sent","mark","independentList","pagePath","awrap","loadBabelModule","8lpxKmY","none","build-profile.json5","defFreezeProperty","pages",".js","custom-tab-bar/index","useCustomTabBar","[name]","1MTmhcy","readJsonFile","get","next","ERROR: build-profile.json5 file not found","dist","toStringTag","12EAmYWF","json5","../common/remove-strict-mode-plugin","mergeMap","set","independent","components","stop","./trustlist-hxml-verify-loader.js","apply","global","srcPath","81645JGjETx","74650hrUWMc","6QXegsG","page","named","development","LoaderOptionsPlugin","toPrimitive","', please check tabBar configuration.","isIgnoreFile","list","app","map","ERROR: Can not resolve tabBar list item : ","path","existsSync","custom-tab-bar/index.pack.js","string",".ascf","../common/logger-plugin","value","ERROR: ","./plugin/webpack-target/index",".pack.js","complete","length","symbol","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","route-mapping.json","widgets","ERROR: Failed to find the file: ","async","undefined","router","return","concat","find","charAt","WARNING: The build directory is not cleared. Use the -c parameter.","asyncIterator","The iterator does not provide a '","./trustlist-js-verify-loader.js","displayName","toLowerCase","isGeneratorFunction","Generator is already running","1833669vIHXTj","ASCF_SRC_PATH","push","manifest","continue","component","red","2908980wtyQpS","throw","ERROR: modify app.json tabBar and recompile it","dispatchException","test","76MFlVKa","forEach","completion","[object Generator]","resolve","./plugin/html-generator-plugin","./plugin/i18n-transform-plugin","./plugin/copy-bundle-plugin","__await","arg","__proto__","_invoke","slice","@@iterator","parseIgnoreRules","./hjs-loader","resultName","normal","@@asyncIterator","type","?type=component","constructor","reset","prev","text","method","webpack",".hxml","readdir","Arguments","call","tryLoc","routeMapping",".json","hasOwnProperty","reverse","prototype","finallyLoc","./plugin/extConfig-plugin","Generator","yellow","delegate","custom","done","21282tIRnnO","./hxml-loader","./appjson-loader"," contains error, please check it.","trim","join","values","getPrototypeOf","suspendedStart","root","error","break","widgetPathsList","startsWith","@babel/plugin-transform-modules-commonjs","app.css","modules","noDeprecation","@@toStringTag","../ascf-compiler/chalk/bundle.cjs","versionNum","web","catchLoc","function","abrupt"," is not iterable","pop","end","parse","fixEntryPath","clearResource","By default, '","filePath","wrap","../common/utils","import-scripts","inline-cheap-source-map","replace","custom-tab-bar/index.hxml","warn","componentList","ERROR: Can not resolve file : app.json","1382051SUaswD","relative","usingComponents","PROJECT_PATH"];return(_0x2def=function(){return e})()}function _generateConfig(){var t=_0x22e264;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[t(364)](function e(){var r,n,o=t;return _regeneratorRuntime()[o(301)](function(e){for(var t=o;;)switch(e[t(247)]=e[t(381)]){case 0:if(process.env.clearResource===t(348))return e[t(381)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(381)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:t(IS_PRD?347:402),devtool:!IS_PRD&&t(304),context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(377),publicPath:"/",globalObject:t(395),enabledChunkLoadingTypes:[t(303)]},target:t(289),resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(370),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(428),cacheGroups:{default:!1}}}},IS_PRD||(n.optimization[t(346)]=t(401)),e[t(292)]("return",n);case 11:case"end":return e[t(392)]()}},e)}))).apply(this,arguments)}module.exports=generateConfig;
|
|
1
|
+
var _0x550b8a=_0x4f63;function _regeneratorRuntime(){var c=_0x4f63;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(310)],f=e[c(350)],p=Object[c(200)]||function(e,t,r){var n=c;e[t]=r[n(391)]},t=c(326)==typeof Symbol?Symbol:{},a=t[c(400)]||c(299),r=t.asyncIterator||c(296),n=t[c(295)]||c(251);function o(e,t,r){return Object[c(200)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o,a,i,s,u=c,t=t&&t[u(310)]instanceof y?t:y,t=Object[u(222)](t[u(310)]),n=new R(n||[]);return p(t,u(331),{value:(o=e,a=r,i=n,s=h,function(e,t){var r=_0x4f63;if(s===m)throw Error("Generator is already running");if(s===d){if("throw"===e)throw t;return{value:l,done:!0}}for(i[r(202)]=e,i[r(204)]=t;;){var n=i[r(368)];if(n){n=function e(t,r){var n=c,o=r.method,a=t[n(400)][o];if(a===l)return r[n(368)]=null,n(309)===o&&t[n(400)][n(269)]&&(r[n(202)]=n(269),r[n(204)]=l,e(t,r),n(309)===r[n(202)])||"return"!==o&&(r[n(202)]=n(309),r[n(204)]=new TypeError(n(198)+o+n(346))),b;o=_(a,t[n(400)],r[n(204)]);if(n(309)===o[n(319)])return r[n(202)]=n(309),r[n(204)]=o[n(204)],r[n(368)]=null,b;a=o[n(204)];return a?a[n(349)]?(r[t[n(247)]]=a.value,r[n(357)]=t[n(343)],n(269)!==r.method&&(r[n(202)]=n(357),r[n(204)]=l),r.delegate=null,b):a:(r[n(202)]=n(309),r[n(204)]=new TypeError(n(245)),r[n(368)]=null,b)}(n,i);if(n){if(n===b)continue;return n}}if("next"===i.method)i.sent=i[r(333)]=i.arg;else if(r(309)===i.method){if(s===h)throw s=d,i[r(204)];i[r(217)](i.arg)}else r(269)===i[r(202)]&&i.abrupt(r(269),i[r(204)]);s=m;n=_(o,a,i);if(r(329)===n[r(319)]){if(s=i[r(349)]?d:g,n[r(204)]===b)continue;return{value:n[r(204)],done:i.done}}"throw"===n[r(319)]&&(s=d,i[r(202)]="throw",i.arg=n.arg)}})}),t}function _(e,t,r){var n=c;try{return{type:n(329),arg:e[n(284)](t,r)}}catch(e){return{type:n(309),arg:e}}}s.wrap=u;var h=c(355),g=c(266),m=c(337),d=c(306),b={};function y(){}function i(){}function v(){}var t={},P=(o(t,a,function(){return this}),Object.getPrototypeOf),P=P&&P(P(I([]))),A=(P&&P!==e&&f[c(284)](P,a)&&(t=P),v[c(310)]=y[c(310)]=Object[c(222)](t));function C(e){var t=c;["next",t(309),"return"][t(253)](function(t){o(e,t,function(e){return this[_0x4f63(331)](t,e)})})}function x(s,u){var t,o=c;p(this,o(331),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var a,i=_0x4f63,e=_(s[e],s,r);if(i(309)!==e[i(319)])return(r=(a=e.arg)[i(391)])&&i(297)==_typeof(r)&&f.call(r,i(300))?u.resolve(r[i(300)]).then(function(e){t(i(357),e,n,o)},function(e){t(i(309),e,n,o)}):u[i(358)](r).then(function(e){a[i(391)]=e,n(a)},function(e){return t("throw",e,n,o)});o(e[i(204)])}(r,n,e,t)})}return t=t?t[o(224)](e,e):e()}})}function T(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(413)]=e[1]),2 in e&&(r[t(335)]=e[2],r[t(365)]=e[3]),this.tryEntries[t(219)](r)}function S(e){var t=c,r=e[t(318)]||{};r[t(319)]=t(329),delete r[t(204)],e[t(318)]=r}function R(e){var t=c;this.tryEntries=[{tryLoc:"root"}],e[t(253)](T,this),this[t(339)](!0)}function I(r){var n=c;if(r||""===r){var o,e=r[a];if(e)return e[n(284)](r);if(n(326)==typeof r.next)return r;if(!isNaN(r[n(373)]))return o=-1,(e=function e(){for(var t=n;++o<r.length;)if(f[t(284)](r,o))return e[t(391)]=r[o],e[t(349)]=!1,e;return e[t(391)]=l,e[t(349)]=!0,e}).next=e}throw new TypeError(_typeof(r)+" is not iterable")}return i[c(310)]=v,p(A,c(397),{value:v,configurable:!0}),p(v,c(397),{value:i,configurable:!0}),i[c(359)]=o(v,n,c(354)),s[c(264)]=function(e){var t=c,e=t(326)==typeof e&&e.constructor;return!!e&&(e===i||t(354)===(e.displayName||e.name))},s[c(287)]=function(e){var t=c;return Object.setPrototypeOf?Object[t(322)](e,v):(e[t(240)]=v,o(e,n,"GeneratorFunction")),e[t(310)]=Object[t(222)](A),e},s[c(414)]=function(e){return{__await:e}},C(x[c(310)]),o(x[c(310)],r,function(){return this}),s.AsyncIterator=x,s.async=function(e,t,r,n,o){var a=c,i=(void 0===o&&(o=Promise),new x(u(e,t,r,n),o));return s[a(264)](t)?i:i[a(357)]()[a(224)](function(e){var t=a;return e[t(349)]?e[t(391)]:i[t(357)]()})},C(A),o(A,n,c(243)),o(A,a,function(){return this}),o(A,"toString",function(){return c(270)}),s[c(298)]=function(e){var t,n=c,o=Object(e),a=[];for(t in o)a[n(219)](t);return a[n(364)](),function e(){for(var t=n;a.length;){var r=a.pop();if(r in o)return e[t(391)]=r,e.done=!1,e}return e[t(349)]=!0,e}},s[c(316)]=I,R[c(310)]={constructor:R,reset:function(e){var t=c;if(this[t(321)]=0,this[t(357)]=0,this[t(209)]=this[t(333)]=l,this[t(349)]=!1,this.delegate=null,this.method=t(357),this[t(204)]=l,this.tryEntries[t(253)](S),!e)for(var r in this)"t"===r[t(311)](0)&&f[t(284)](this,r)&&!isNaN(+r[t(278)](1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(349)]=!0,this[e(263)][0][e(318)]);if("throw"===t.type)throw t[e(204)];return this[e(360)]},dispatchException:function(n){var e=c;if(this.done)throw n;var o=this;function t(e,t){var r=_0x4f63;return i[r(319)]=r(309),i.arg=n,o[r(357)]=e,t&&(o[r(202)]=r(357),o[r(204)]=l),!!t}for(var r=this.tryEntries[e(373)]-1;0<=r;--r){var a=this[e(263)][r],i=a.completion;if(e(210)===a[e(248)])return t("end");if(a[e(248)]<=this.prev){var s=f[e(284)](a,"catchLoc"),u=f[e(284)](a,e(335));if(s&&u){if(this.prev<a[e(413)])return t(a[e(413)],!0);if(this[e(321)]<a.finallyLoc)return t(a[e(335)])}else if(s){if(this[e(321)]<a[e(413)])return t(a[e(413)],!0)}else{if(!u)throw Error(e(267));if(this.prev<a[e(335)])return t(a[e(335)])}}}},abrupt:function(e,t){for(var r=c,n=this[r(263)][r(373)]-1;0<=n;--n){var o=this[r(263)][n];if(o[r(248)]<=this[r(321)]&&f.call(o,"finallyLoc")&&this[r(321)]<o[r(335)]){var a=o;break}}var i=(a=a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a[r(335)]?null:a)?a[r(318)]:{};return i[r(319)]=e,i[r(204)]=t,a?(this.method="next",this[r(357)]=a.finallyLoc,b):this[r(352)](i)},complete:function(e,t){var r=c;if(r(309)===e.type)throw e[r(204)];return r(203)===e[r(319)]||r(257)===e[r(319)]?this.next=e.arg:r(269)===e[r(319)]?(this[r(360)]=this[r(204)]=e[r(204)],this[r(202)]=r(269),this[r(357)]=r(231)):r(329)===e[r(319)]&&t&&(this[r(357)]=t),b},finish:function(e){for(var t=c,r=this.tryEntries[t(373)]-1;0<=r;--r){var n=this[t(263)][r];if(n[t(335)]===e)return this.complete(n.completion,n.afterLoc),S(n),b}},catch:function(e){for(var t=c,r=this[t(263)][t(373)]-1;0<=r;--r){var n,o,a=this.tryEntries[r];if(a[t(248)]===e)return n=a[t(318)],t(309)===n.type&&(o=n.arg,S(a)),o}throw Error(t(371))},delegateYield:function(e,t,r){var n=c;return this.delegate={iterator:I(e),resultName:t,nextLoc:r},n(357)===this.method&&(this.arg=l),b}},s}function _typeof(e){var r=_0x4f63;return(_typeof=r(326)==typeof Symbol&&"symbol"==typeof Symbol[r(400)]?function(e){return typeof e}:function(e){var t=r;return e&&t(326)==typeof Symbol&&e[t(397)]===Symbol&&e!==Symbol[t(310)]?t(220):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){var s=_0x4f63;try{var u=e[a](i),c=u[s(391)]}catch(e){return void r(e)}u[s(349)]?t(c):Promise[s(358)](c)[s(224)](n,o)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x4f63,o=u[n(230)](e,s);function a(e){asyncGeneratorStep(o,t,r,a,i,"next",e)}function i(e){asyncGeneratorStep(o,t,r,a,i,n(309),e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x4f63(401))}function _iterableToArray(e){var t=_0x4f63;if(t(351)!=typeof Symbol&&null!=e[Symbol[t(400)]]||null!=e[t(299)])return Array[t(221)](e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,o,a,i=_0x4f63,s=i(351)!=typeof Symbol&&e[Symbol.iterator]||e[i(299)];if(s)return o=!(n=!0),{s:function(){s=s[i(284)](e)},n:function(){var e=i,t=s[e(357)]();return n=t[e(349)],t},e:function(e){o=!0,r=e},f:function(){var e=i;try{n||null==s[e(269)]||s[e(269)]()}finally{if(o)throw r}}};if(Array[i(372)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&i(328)==typeof e[i(373)])return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e[i(373)]?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError(i(225))}function _unsupportedIterableToArray(e,t){var r,n=_0x4f63;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):(r={}[n(345)][n(284)](e)[n(278)](8,-1),n(392)===r&&e.constructor&&(r=e[n(397)][n(272)]),n(347)===r||n(226)===r?Array[n(221)](e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(216)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0x4f63;(null==t||t>e.length)&&(t=e[r(373)]);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0x4f63,e=_toPrimitive(e,t(280));return t(220)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x4f63;if("object"!=_typeof(e)||!e)return e;var n=e[Symbol[r(312)]];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||r(258));if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0x4f63,t=_0xfc77();;)try{if(754510==+parseInt(e(341))+parseInt(e(376))/2+-parseInt(e(260))/3+parseInt(e(344))/4+-parseInt(e(411))/5+-parseInt(e(403))/6*(-parseInt(e(375))/7)+-parseInt(e(393))/8*(parseInt(e(323))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require(_0x550b8a(236)),fs=require("fs"),webpack=require("webpack"),json5=require(_0x550b8a(277)),ResourcePlugin=require("./plugin/resource-plugin"),HtmlGeneratorPlugin=require(_0x550b8a(303)),ManifestGeneratorPlugin=require(_0x550b8a(242)),I18NPlugin=require(_0x550b8a(238)),CopyAscfBundlePlugin=require(_0x550b8a(305)),_packOptions=require(_0x550b8a(205)),_require=require("../common/utils"),clearResource=_require[_0x550b8a(353)],IS_PRD=_require.IS_PRD,PROJECT_PATH=_require[_0x550b8a(307)],PROJECT_CONFIG=_require.PROJECT_CONFIG,ASCF_SRC_PATH=_require[_0x550b8a(199)],ASCF_BUILD_PATH=_require.ASCF_BUILD_PATH,RAWFILE_DIR=_require[_0x550b8a(378)],WebpackTargetPlugin=require(_0x550b8a(233)),LoggerPlguin=require("../common/logger-plugin"),utils=require(_0x550b8a(268)),commonUtils=require(_0x550b8a(308)),removeStrictModePlugin=require("../common/remove-strict-mode-plugin"),ExtConfigPlugin=require(_0x550b8a(286)),log4js=require(_0x550b8a(301)),logger=log4js[_0x550b8a(234)]("web.webpack.config"),_require2=require(_0x550b8a(330)),useJsLoader=_require2.useJsLoader,useJsLoaderNoCompact=_require2[_0x550b8a(274)],ignoreRules=(process[_0x550b8a(237)]=!0,generateIgnoreRule(PROJECT_CONFIG)),ZIP_PATH=path.join(ASCF_SRC_PATH,".ascf","dist"),buildProfileJson5Path=path.resolve(PROJECT_PATH,_0x550b8a(366));if(!fs[_0x550b8a(386)](buildProfileJson5Path))throw _0x550b8a(250);var buildProfile=json5[_0x550b8a(212)](fs[_0x550b8a(290)](buildProfileJson5Path).toString());if(!buildProfile[_0x550b8a(379)]||0===buildProfile[_0x550b8a(379)].length)throw"ERROR: build-profile.json5 file modules is null";var BUILD_PATH=path[_0x550b8a(358)](PROJECT_PATH,buildProfile[_0x550b8a(379)][0][_0x550b8a(241)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x550b8a(407),APP=_0x550b8a(293),APP_TYPE=_0x550b8a(363);function handleUsingComponents(e,t){var r,n=_0x550b8a;if(e)for(var o in e)Object[n(310)].hasOwnProperty.call(e,o)&&(r=e[o][n(410)](),e[o]=utils.getProjectAbsPath(r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,i,r=_0x550b8a,s=["iconPath","selectedIconPath",r(405)],n=(null==(n=e[r(249)])?void 0:n[r(283)])||[],e=e[r(348)]||e[r(208)]||[];n!==[]&&e!==[]&&(t=e.map(function(e){return e[r(210)]}).filter(function(e){return e}),i=[],n[r(253)](function(a){var e=r;t[e(253)](function(n){var o=e;s[o(253)](function(e){var t,r=o;path.join(ASCF_SRC_PATH,null!=(t=a[e])?t:"")[r(325)](path.join(ASCF_SRC_PATH,n,"/"))&&i[r(219)](r(402)[r(327)](a[r(390)]," ")[r(327)](e," cannot be in the subpackage directory"))})})}),0<i[r(373)])&&(i.forEach(function(e){logger.error(e)}),logger.error(r(415)),process.exit(1))}function readAppJson(){var r=_0x550b8a,e=_defineProperty({},APP,new Map),t=path.join(ASCF_SRC_PATH,r(383));if(!fs[r(386)](t))throw r(255);var n=commonUtils[r(317)](t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n.usingComponents,t),n[r(304)]={},n[r(324)]=[],[]);if(!n.pages||n[r(288)].length<=0)throw r(223);putPageInfoToEntryList(n[r(288)],"",!1,n,e[APP]);var o=["subpackages","subPackages"][r(406)](function(e){var t=r;return Object[t(310)].hasOwnProperty[t(284)](n,e)});if(t[r(373)]){o&&delete n[o];var a,i=_createForOfIteratorHelper(n[r(208)]=t);try{for(i.s();!(a=i.n())[r(349)];){var s=a[r(391)],u=new Map;e[s[r(210)]]=u,putPageInfoToEntryList(s[r(288)],s[r(210)],s[r(214)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(o){t=n[o],delete n[o];var c,l=_createForOfIteratorHelper(n[r(208)]=t);try{for(l.s();!(c=l.n())[r(349)];){var f=c.value,p=new Map;e[f[r(210)]]=p,putPageInfoToEntryList(f[r(288)],f[r(210)],f[r(214)],n,p)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x550b8a;e[r(319)]=null!=(t=null!=(t=e.type)?t:e[r(271)])?t:APP_TYPE,delete e.appType}function hasCustomTabBar(e){var t=_0x550b8a;return(e[t(249)]||{})[t(409)]&&fs[t(386)](path[t(358)](ASCF_SRC_PATH,t(206)))}function _0x4f63(e,t){var r=_0xfc77();return(_0x4f63=function(e,t){return r[e-=198]})(e,t)}function handingCustomTabBar(e){var t=_0x550b8a;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(249)][t(283)]);try{for(n.s();!(r=n.n()).done;){var o=r.value;if(!e[t(304)][o.pagePath])throw t(334)+"'".concat(o[t(405)],t(377));e[t(304)][o[t(405)]][t(369)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=_0x550b8a,r=0<arguments[t(373)]&&void 0!==arguments[0]?arguments[0]:{},n=[];return Object[t(298)](r)[t(253)](function(e){n[t(219)]({key:e,path:r[e]})}),n}function putPageInfoToEntryList(e,t,r,n,o){var a,i,s=_0x550b8a;if(e)for(var u in e)Object[s(310)][s(350)][s(284)](e,u)&&(u=path[s(408)](ASCF_SRC_PATH,t,e[u]),a=path[s(320)](ASCF_SRC_PATH,u),_packOptions.isIgnoreFile(a,ignoreRules)||(a=a.replace(/\\/g,"/"),u="".concat(u,".json"),handleUsingComponents((i=commonUtils[s(317)](u))[s(404)],u),r&&n[s(324)][s(219)](a),n.page[a]=i,t||getUsingComponents(n,"","",o,"page"),getUsingComponents(i,u,a,o,s(304))))}function getUsingComponents(a,i,e,s,t){var u=_0x550b8a,c=5<arguments[u(373)]&&void 0!==arguments[5]?arguments[5]:[],l=[],f=a[u(272)];if(a[u(404)])for(var p in a[u(404)])(()=>{var t=u;if(Object[t(310)][t(350)][t(284)](a[t(404)],p)){var r=a[t(404)][p],e=utils[t(235)](r,i,ASCF_SRC_PATH,t(396)),n=e[t(215)],e=e[t(387)],o=path[t(320)](ASCF_SRC_PATH,n).replace(/\\/g,"/")[t(374)](/\.json/,""),r=e||o;if(a[t(404)][p]=r,!f&&i===n)return f=p;if(c[t(406)](function(e){return e===n}))return;l.some(function(e){return e[t(236)]===r})||l[t(219)]({path:r,key:p,compJsonPath:n});e=JSON[t(212)](fs[t(290)](n)[t(345)]());handleUsingComponents(e[t(404)],n),getUsingComponents(e,n,r,s,t(395),c[t(327)]([n]))}})();e&&!s.get(e)&&(t={componentList:l,type:t,componentName:f,compJsonPath:i,path:e},s[u(361)](e,t))}function getI18NEntry(u){var c=_0x550b8a;fs[c(227)](u,function(e,t){var r=c;if(e)throw e;var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n())[r(349)];){var a,i=n[r(391)],s=path[r(408)](u,i)[r(374)](/\\/g,"/");fs[r(384)](s).isDirectory()&&!/(node_modules)|(\.ascf)/[r(216)](i)&&((a=s[r(367)]("/"))[a.length-1][r(394)]()===I18N&&I18N_ENTRY[r(219)](s),getI18NEntry(s))}}catch(e){o.e(e)}finally{o.f()}})}function generateEntry(e){var n=_0x550b8a,o={},t=e[n(336)],r=[],a=(Object[n(298)](t)[n(364)]()[n(253)](function(e){r[n(219)](t[e])}),o[n(281)]=path[n(358)](ASCF_SRC_PATH,n(259))[n(374)](/\\/g,"/"),utils[n(389)](r)),i=path.resolve(ASCF_SRC_PATH,n(315));if(fs[n(386)](i)&&(o["app.css.js"]=path[n(358)](ASCF_SRC_PATH,n(315))),hasCustomTabBar(e[n(342)])){var s,i=path.resolve(ASCF_SRC_PATH,n(206)),u=i.replace(/\.hxml$/,n(396)),c=(o["custom-tab-bar/index.pack.js"]="".concat(i,"?type=component"),_createForOfIteratorHelper(e[n(342)][n(249)][n(283)]));try{for(c.s();!(s=c.n())[n(349)];){var l=s[n(391)];a[n(370)](l[n(405)])&&a[n(370)](l[n(405)]).componentList[n(219)]({path:n(279),key:n(314),compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:n(395),compJsonPath:u};t[n(293)].set(n(279),i)}return a.forEach(function(e,t){var r=n;return o[""[r(327)](t,r(380))]=e[r(285)].replace(/\.json$/,r(228))}),utils[n(239)](e,n(262),a),generateWidgetsEntry(o,e),o}function generateWidgetsEntry(o,r){var a,n,i=_0x550b8a,e=r[i(342)];r[i(342)]&&e[i(332)]&&((a=e.router.pages)&&Object.keys(a)[i(253)](function(e){var t=i,r=a[e],n=r[t(395)],r=(r||logger[t(382)](t(292)[t(327)](e,"' does not have the component attribute configured. ")+t(302)[t(327)](n,t(398))),path[t(408)](ASCF_SRC_PATH,e,n)),e=""[t(327)](path[t(408)](e,n),t(362));if(fs[t(386)]("".concat(r,".ux")))o[e]="".concat(r,t(232));else if(!fs[t(386)](""[t(327)](r,t(228))))throw t(381)[t(327)](r,t(232))}),e=e[i(246)])&&0<e[i(373)]&&(r[i(385)]=[],n="",e[i(253)](function(e){var t=i;n=e[t(236)],r.widgetPathsList[t(219)](path[t(408)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x550b8a;return{rules:[].concat(_toConsumableArray(utils.createCSSRule()),[{test:/\.js$/,use:[useJsLoader(),{loader:path.resolve(__dirname,"./trustlist-js-verify-loader.js")}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(358)](__dirname,e(254))},useJsLoader([removeStrictModePlugin]),{loader:path.resolve(__dirname,e(275))},{loader:path[e(358)](__dirname,e(218))}],exclude:/node_modules/},{test:/\.hxml$/,type:e(291),use:[useJsLoaderNoCompact(),{loader:path[e(358)](__dirname,"./hxml-loader")},{loader:path[e(358)](__dirname,e(273))}]},{test:/app\.json$/,type:"javascript/auto",use:[{loader:path[e(358)](__dirname,e(388))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x550b8a(399)](e):t)||{}}function generateRouteMapping(e){var t=_0x550b8a,r=e[t(342)][t(289)]||{},n=path[t(408)](ASCF_SRC_PATH,t(356));if(fs[t(386)](n)){var o=JSON[t(212)](fs.readFileSync(n)[t(345)]());if(o)for(var a in o)Object[t(310)][t(350)].call(o,a)&&(r[a]=o[a])}0<Object.keys(r)[t(373)]&&(e[t(342)][t(289)]=r)}function generatePlugins(e){var t=_0x550b8a;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e.manifest}),new ManifestGeneratorPlugin({manifest:e.manifest,build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e.manifest,pagesInfo:e[t(342)].page,srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e[t(262)]}),new webpack[t(282)]({options:{srcPath:ASCF_SRC_PATH,manifest:e[t(342)],components:e.components,projectComponentsMap:e[t(336)],versionNum:e[t(229)],widgetPathsList:e.widgetPathsList,widgetsDependList:e.widgetPathsList,projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e.manifest[t(404)])}}),new I18NPlugin({srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,entries:I18N_ENTRY}),new WebpackTargetPlugin,new CopyAscfBundlePlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH,bundleDir:RAWFILE_DIR}),new ExtConfigPlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH})]}function getResolve(){var e=_0x550b8a;return{modules:[path.join(ASCF_SRC_PATH,e(261)),path.join(ASCF_SRC_PATH,e(252)),path[e(408)](__dirname,"..","..",e(252)),path.join(__dirname,"..","..","..","..",e(252))]}}function _0xfc77(){var e=["_invoke","router","_sent","ERROR: Can not resolve tabBar list item : ","finallyLoc","projectComponentsMap","executing","env","reset","stop","1297526eaYVmv","manifest","nextLoc","2999500rPflDD","toString","' method","Map","subPackages","done","hasOwnProperty","undefined","complete","clearResource","GeneratorFunction","suspendedStart","route-mapping.json","next","resolve","displayName","rval","set",".js","webapp","reverse","afterLoc","build-profile.json5","split","delegate","useCustomTabBar","get","illegal catch attempt","isArray","length","replace","7PTyfly","126758jbVzUT","', please check tabBar configuration.","RAWFILE_DIR","modules",".pack.js","ERROR: Failed to find the file: ","warn","app.json","lstatSync","widgetPathsList","existsSync","fixEntryPath","./appjson-loader","mergeMap","text","value","Object","11323624dgyTAV","toLowerCase","component",".json","constructor","' is used.","parseIgnoreRules","iterator","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","ERROR: tabBar ","3319266eQtpBX","usingComponents","pagePath","find","i18n","join","custom","trim","1901485SQmoOb","none","catchLoc","awrap","ERROR: modify app.json tabBar and recompile it","The iterator does not provide a '","ASCF_SRC_PATH","defineProperty","WARNING: The build directory is not cleared. Use the -c parameter.","method","break","arg","./common/packoptions-utils","custom-tab-bar/index.hxml","inline-cheap-source-map","subpackages","sent","root","development","parse","web","independent","filePath","test","dispatchException","./trustlist-js-verify-loader.js","push","symbol","from","create","ERROR: app.json doesn't contain any page.","then","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","Set","readdir",".hxml","versionNum","apply","end",".ux","./plugin/webpack-target/index","getLogger","getAbsPath","path","noDeprecation","./plugin/i18n-transform-plugin","defFreezeProperty","__proto__","srcPath","./plugin/manifest-generator-plugin","Generator","moduleIds","iterator result is not an object","widgets","resultName","tryLoc","tabBar","ERROR: build-profile.json5 file not found","@@toStringTag","node_modules","forEach","./hjs-loader","ERROR: Can not resolve file : app.json","abrupt","continue","default","app.json?package=app","341193YOaEuu","miniprogram_npm","components","tryEntries","isGeneratorFunction","global","suspendedYield","try statement without catch or finally","./common/utils","return","[object Generator]","appType","name","./trustlist-hxml-verify-loader.js","useJsLoaderNoCompact","./path-process-loader.js","optimization","json5","slice","custom-tab-bar/index","string","app.js","LoaderOptionsPlugin","list","call","compJsonPath","./plugin/extConfig-plugin","mark","pages","routeMapping","readFileSync","javascript/auto","WARNING:Route information in the manifest.json file is incomplete:\n Page '","app","wrap","toStringTag","@@asyncIterator","object","keys","@@iterator","__await","../common/log4js.js","By default, '","./plugin/html-generator-plugin","page","./plugin/copy-bundle-plugin","completed","PROJECT_PATH","../common/utils","throw","prototype","charAt","toPrimitive","async","customTabBar","app.css","values","readJsonFile","completion","type","relative","prev","setPrototypeOf","9qIYkiC","independentList","startsWith","function","concat","number","normal","./common/parser"];return(_0xfc77=function(){return e})()}function checkBuildResources(){var e=_0x550b8a;(fs[e(386)](ZIP_PATH)||fs[e(386)](BUILD_PATH)||fs[e(386)](ASCF_BUILD_PATH))&&(logger[e(382)](e(201)),process.exit(1))}function generateConfig(){return _generateConfig[_0x550b8a(230)](this,arguments)}function _generateConfig(){var t=_0x550b8a;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[t(287)](function e(){var r,n,o=t;return _regeneratorRuntime()[o(294)](function(e){for(var t=o;;)switch(e.prev=e[t(357)]){case 0:if("yes"===process[t(338)][t(353)])return e[t(357)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e.next=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:IS_PRD?"production":t(211),devtool:!IS_PRD&&t(207),context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:"[name]",publicPath:"/",globalObject:t(265),enabledChunkLoadingTypes:["import-scripts"]},target:t(213),resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(412),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(313),cacheGroups:{default:!1}}}},IS_PRD||(n[t(276)][t(244)]="named"),e[t(256)]("return",n);case 11:case t(231):return e[t(340)]()}},e)})))[t(230)](this,arguments)}module.exports=generateConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x474750=_0x3c12;function _typeof(e){var t=_0x3c12;return(_typeof=t(330)==typeof Symbol&&"symbol"==typeof Symbol[t(203)]?function(e){return typeof e}:function(e){var o=t;return e&&o(330)==typeof Symbol&&e[o(272)]===Symbol&&e!==Symbol.prototype?o(212):typeof e})(e)}function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,o){for(var t=_0x3c12,n=0;n<o.length;n++){var a=o[n];a[t(180)]=a[t(180)]||!1,a.configurable=!0,t(321)in a&&(a.writable=!0),Object.defineProperty(e,_toPropertyKey(a[t(218)]),a)}}function _createClass(e,o,t){return o&&_defineProperties(e[_0x3c12(346)],o),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var o=_0x3c12,e=_toPrimitive(e,o(287));return o(212)==_typeof(e)?e:e+""}function _toPrimitive(e,o){var t=_0x3c12;if(t(269)!=_typeof(e)||!e)return e;var n=e[Symbol[t(233)]];if(void 0===n)return(t(287)===o?String:Number)(e);n=n[t(168)](e,o||t(237));if("object"!=_typeof(n))return n;throw new TypeError(t(275))}function _0x3c12(e,o){var t=_0x43dd();return(_0x3c12=function(e,o){return t[e-=135]})(e,o)}function _0x43dd(){var e=["getDirectivesReg","compressImage","onRenderStart",".ttml","onAnimationEnd","onAudioInterruptionEnd",".acss","createRtcRoomContext","projectFileSuffix","navigateBackSmartProgram","addTemplate","showModal","offWindowResize","onAnimationIteration","onMemoryWarning","onBackgroundAudioPlay","1304150aFoVws","updateBookshelfReadTime","setMetaKeywords","chooseAlipayContact","deleteTemplate","call","openReplyEditor","getRecorderManager","setCanPullDown","saveFile","weChat","getSwanId","onError","list","invalidApis","windowItems","touchMove","enumerable","concat","onAudioInterruptionBegin","mute",".css","arrayBufferToBase64","onScroll","onLoad",".wxss","onBlur","hideKeyboard","stopLocationUpdate","278632SZvQHR","__esModule","4UHFVGX","tap","setNavigationBar","tagEventToTransform","onChange","closeReplyEditor","pauseBackgroundAudio","Applets","wxs","iterator","Alipay","8175805KPEzXk","getServerTime","tt:","datePicker","qa:","Baidu","628RbLlJS","symbol","_appletType","createBLEConnection","appletType","directivesPrefix","onFocus","key","pauseVoice","setTabBarStyle","bindwaiting","stopRecord","chooseCity","SDKVersion","getUserInfo","base64ToArrayBuffer","block-size","deletesitemap","setDocumentTitle","submitresource","deleteBookshelf","wx:","toPrimitive","commonOnEvents","getRunScene","polygons","default","onScrollToLower","insertCalendar","hideBackHome","subscribeService","iconPath","setTopBarText","6BdgxnV","requestHwPayment","offAudioInterruptionEnd",".wxs","text","createAnimation","stopAccelerometer","navigationBarTitleText","playBackgroundAudio","saveImageToPhotosAlbum","insertBookshelf","onPause","nextTick","getTemplateLibraryList","setTabBarItem","resetConfig","isLoginSync","onFirstAppear","selectedIconPath","getRealtimeLogManager","getAppIdSync","setEnableDebug","onToBindWithTagEvents","onConfirm","project.swan.json","object","saveFileToDisk","compressVideo","constructor","closeCommunityEditor","Headline","@@toPrimitive must return a primitive value.","startLocationUpdateBackground","onScale","showTabBarRedDot","onWindowResize","createOffscreenCanvas","onURLQueryChange","getunionid","stopBackgroundAudio","offMemoryWarning",".sjs","createInnerAudioContext","string","onFullScreenChange","tablebarListItems","addSupportTypes","getSelectedTextRange","1692gLLDUV","setBackgroundColor","onUserAction","interfacesForTransform","offSocketClose","project.config.json","7744muIaoK","enablePullDownRefresh","offSocketMessage","getTemplateLibraryById","shareFile","navigateToSmartProgram","3125633JtAgFV","988956VGpvlh","touchStart","setWifiList","startLocationUpdate","startWifi","submitsitemap","offLocationChange","minProgramLanguage","hideToast","onInput","chooseMessageFile","getBackgroundAudioManager","setMetaDescription","offSocketError","tablebarItems","playVoice","value","setClipboardData","onAppear","onBackgroundAudioPause","import-sjs","onAnimationStart","vibrate","hideHomeButton","onSubmit","function","specialTag","onDisappear","closeBLEConnection","rsa","getTemplateList","stopVoice","color","getSystemRiskInfo","onEnded","setLocatedCity","onMarkerTap","bindchange","onRegionChange","scanCode","setPageInfo","prototype","block-color","createAudioContext","onCalloutTap","configBasenameArray","offAudioInterruptionBegin",".ttss","showNavigationBarLoading","onShareAppMessage",".swan","quickapp.config.json","onLocationChange","8480jNynsH",".axml","createARCameraContext","onControlTap","bindanimationfinish","navigateToBookshelf","getAccountInfoSync","sendTemplateMessage","defineProperty"];return(_0x43dd=function(){return e})()}(()=>{for(var e=_0x3c12,o=_0x43dd();;)try{if(283827==-parseInt(e(192))*(parseInt(e(194))/2)+parseInt(e(305))/3+parseInt(e(211))/4*(parseInt(e(138))/5)+parseInt(e(244))/6*(-parseInt(e(304))/7)+-parseInt(e(298))/8*(parseInt(e(292))/9)+parseInt(e(163))/10+parseInt(e(205))/11)break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0x474750(146)](exports,_0x474750(193),{value:!0}),exports.interfacesForTransform=exports[_0x474750(266)]=exports[_0x474750(197)]=exports[_0x474750(234)]=exports[_0x474750(201)]=exports.tablebarListItems=exports[_0x474750(319)]=exports[_0x474750(178)]=exports[_0x474750(350)]=exports[_0x474750(331)]=exports[_0x474750(216)]=exports.projectFileSuffix=exports.minProgramLanguage=exports[_0x474750(177)]=void 0,exports[_0x474750(177)]=[_0x474750(226),_0x474750(185),_0x474750(152),_0x474750(182),_0x474750(246),_0x474750(351),_0x474750(265),_0x474750(313),_0x474750(353),"hideNavigationBarLoading","setBackgroundTextStyle",_0x474750(293),_0x474750(278),_0x474750(220),_0x474750(258),"hideTabBarRedDot",_0x474750(249),_0x474750(256),"getMenuButtonBoundingClientRect",_0x474750(148),_0x474750(271),_0x474750(336),"setInnerAudioOption",_0x474750(320),_0x474750(219),"getAvailableAudioSources",_0x474750(286),_0x474750(348),_0x474750(283),"seekBackgroundAudio",_0x474750(252),_0x474750(200),"onBackgroundAudioStop",_0x474750(162),_0x474750(324),"getBackgroundAudioPlayerState",_0x474750(316),_0x474750(222),"startRecord",_0x474750(170),_0x474750(191),_0x474750(276),_0x474750(308),_0x474750(137),_0x474750(311),"getClipboardData",_0x474750(307),_0x474750(309),"stopWifi",_0x474750(270),_0x474750(280),_0x474750(161),_0x474750(284),_0x474750(263),_0x474750(328),_0x474750(243),_0x474750(279),_0x474750(159),_0x474750(315),"checkSession",_0x474750(225),_0x474750(245),_0x474750(144),_0x474750(264),_0x474750(235),_0x474750(224),_0x474750(240),_0x474750(196),_0x474750(166),_0x474750(223),"onLocatedComplete",_0x474750(340),"regionPicker",_0x474750(208),"calculateRoute","optionsSelect","multiLevelSelect",_0x474750(171),_0x474750(296),_0x474750(300),"offSocketOpen",_0x474750(318),_0x474750(183),_0x474750(351),"offAudioInterruptionEnd",_0x474750(182),_0x474750(152),_0x474750(327),"watchShake",_0x474750(206),"showAuthGuide",_0x474750(334),"getURLQuery","setURLQuery",_0x474750(281),"ai",_0x474750(140),"createAnimationVideo","createLivePlayerContext",_0x474750(154),"getEnvInfoSync",_0x474750(282),_0x474750(260),"requestPolymerPayment",_0x474750(345),_0x474750(317),_0x474750(165),_0x474750(229),"loadSubPackage","reportAnalytics",_0x474750(338),_0x474750(241),_0x474750(254),_0x474750(231),"queryBookshelf",_0x474750(164),_0x474750(143),_0x474750(174),_0x474750(354),"openShare",_0x474750(302),_0x474750(303),_0x474750(156),"openCommunityEditor",_0x474750(273),_0x474750(169),_0x474750(199),_0x474750(230),"deleteresource",_0x474750(310),_0x474750(228),_0x474750(257),_0x474750(301),_0x474750(157),_0x474750(335),_0x474750(167),_0x474750(145)],exports[_0x474750(312)]={qa:"quickapp",wx:_0x474750(173),swan:_0x474750(210),my:_0x474750(204),tt:_0x474750(274)},exports[_0x474750(155)]={qa:{hxml:".qxml",css:".css",hjs:".qjs"},wx:{hxml:".wxml",css:_0x474750(188),hjs:_0x474750(247)},swan:{hxml:_0x474750(135),css:_0x474750(184),hjs:_0x474750(285)},my:{hxml:_0x474750(139),css:_0x474750(153),hjs:_0x474750(285)},tt:{hxml:_0x474750(150),css:_0x474750(352),hjs:_0x474750(285)}},exports[_0x474750(216)]={qa:_0x474750(209),wx:_0x474750(232),swan:"s-",my:"a:",tt:_0x474750(207)},exports[_0x474750(331)]={wx:_0x474750(202),swan:_0x474750(325),my:_0x474750(325),tt:null},exports.configBasenameArray=[_0x474750(297),_0x474750(268)];var configBasename={qa:_0x474750(136),wx:_0x474750(297),swan:"project.swan.json",my:null,tt:_0x474750(297)},addSupportTypes=(exports[_0x474750(178)]={titleBarColor:"navigationBarBackgroundColor",pullRefresh:_0x474750(299),defaultTitle:_0x474750(251)},exports[_0x474750(319)]={textColor:_0x474750(337),items:_0x474750(176)},exports[_0x474750(289)]={name:_0x474750(248),icon:_0x474750(242),activeIcon:_0x474750(262)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var t=_0x474750;function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:t(215),get:function(){return n[t(213)]},set:function(e){var o=t;n.resetConfig(e),n[o(213)]=e}},{key:t(259),value:function(e){var o=t;n.configBasename=configBasename[e],n[o(290)]=addSupportTypes[e]}},{key:t(147),value:function(e){var o=t;return new RegExp("^"[o(181)](exports[o(216)][e],".*"))}}])})();exports[_0x474750(201)]=Applets,exports[_0x474750(234)]=[_0x474750(306),_0x474750(179),"touchEnd","touchCancel",_0x474750(195),"longTap"],exports[_0x474750(197)]={swiper:{onAnimationEnd:_0x474750(142)},video:{onLoading:_0x474750(221)},checkbox:{onChange:_0x474750(342)},slider:{"handle-size":_0x474750(227),handleSize:"block-size","handle-color":_0x474750(347),handleColor:"block-color"},map:{polygon:_0x474750(236)}},exports[_0x474750(266)]={view:["onTransitionEnd",_0x474750(160),_0x474750(326),_0x474750(151),_0x474750(323),_0x474750(332),_0x474750(261)],"movable-view":["onChange",_0x474750(277),"onChangeEnd"],"scroll-view":["onScrollToUpper",_0x474750(238),_0x474750(186)],swiper:[_0x474750(198),"onTransition"],"checkbox-group":[_0x474750(198)],form:[_0x474750(329),"onReset"],input:[_0x474750(314),_0x474750(217),_0x474750(189),_0x474750(267)],picker:[_0x474750(198)],"picker-view":["onChange"],"radio-group":[_0x474750(198)],slider:[_0x474750(198),"onChanging"],switch:[_0x474750(198)],textarea:["onInput",_0x474750(217),_0x474750(189),_0x474750(267)],image:[_0x474750(187),_0x474750(175)],video:["onPlay",_0x474750(255),_0x474750(339),"onTimeUpdate",_0x474750(175),_0x474750(288),_0x474750(294),"onStop",_0x474750(149)],map:[_0x474750(341),_0x474750(349),_0x474750(141),_0x474750(343),"onPanelTap"]},exports[_0x474750(295)]={confirm:_0x474750(158),saveImage:_0x474750(253),connectBLEDevice:_0x474750(214),disconnectBLEDevice:_0x474750(333),scan:_0x474750(344),setClipboard:_0x474750(322),getClipboard:"getClipboardData",getSelectedTextRange:_0x474750(190),hideKeyboard:_0x474750(291),compressVideo:_0x474750(271),saveFileToDisk:_0x474750(172),addPhoneRepeatCalendar:_0x474750(239),stopAccelerometer:_0x474750(250)};
|
|
1
|
+
var _0x205351=_0x2b83;function _0x392c(){var e=["submitresource","tagEventToTransform","block-color","hideTabBarRedDot","createAnimation","longTap","onTimeUpdate","getRealtimeLogManager","updateBookshelfReadTime","getAppIdSync","setNavigationBar","offAudioInterruptionBegin",".sjs","startLocationUpdate","project.config.json","chooseAlipayContact","30983388tPGtan","addTemplate","interfacesForTransform","minProgramLanguage","setMetaKeywords","onRegionChange","onUserAction","deleteBookshelf","stopVoice","onAudioInterruptionEnd","optionsSelect","tt:","272EtcPWS","createAnimationVideo","quickapp.config.json","offMemoryWarning","regionPicker","setURLQuery","1744cHwBFx","length","showTabBarRedDot","onSubmit","addSupportTypes","quickapp",".ttss","onLoad","2OIVJdj","saveImageToPhotosAlbum","touchEnd","getSwanId","onTransitionEnd","offSocketOpen",".qxml","setTopBarText","startRecord",".swan","setInnerAudioOption","11HuhMwq","wxs","datePicker","startLocationUpdateBackground","compressVideo","onBackgroundAudioPause","constructor","2395GThoJV","import-sjs","base64ToArrayBuffer","onLocationChange","closeReplyEditor","setClipboardData","hideNavigationBarLoading","isLoginSync","touchStart","hideKeyboard","function","onURLQueryChange","loadSubPackage","getunionid","stopRecord","_appletType","writable","saveFile","multiLevelSelect","nextTick","configBasenameArray","project.swan.json","offSocketClose","createBLEConnection","465580OnXcgZ","onPause","invalidApis","showAuthGuide","chooseCity","specialTag","onReset","setTabBarStyle","bindanimationfinish","calculateRoute","onRenderStart","setCanPullDown","101754xAQizh","projectFileSuffix","submitsitemap","getClipboardData","onFocus","offSocketMessage","setBackgroundTextStyle","color","value","setPageInfo","iterator","chooseMessageFile","touchMove","navigateBackSmartProgram","setTabBarItem","152740PaBNLU","getSystemRiskInfo","defineProperty",".axml","scanCode","setEnableDebug","call","onScrollToUpper","openReplyEditor","onControlTap","Cannot call a class as a function","watchShake","onPlay","closeBLEConnection","selectedIconPath","createRtcRoomContext","onChangeEnd","onTransition","requestHwPayment","offAudioInterruptionEnd","commonOnEvents","getSelectedTextRange","Alipay","list","navigateToBookshelf","insertCalendar","vibrate","appletType","offSocketError",".qjs","onLocatedComplete","onChange","onCalloutTap","resetConfig","createARCameraContext","pauseBackgroundAudio","getTemplateLibraryById","getServerTime","onDisappear","playBackgroundAudio","onError","qa:","createLivePlayerContext","4892646QAxMoM","hideToast","symbol","tap","sendTemplateMessage","directivesPrefix","setWifiList","getURLQuery","deletesitemap","36Uuelqb","onAudioInterruptionBegin","text","compressImage","key","getEnvInfoSync","shareFile","windowItems",".wxss","toPrimitive","tablebarItems","mute","getRunScene","Baidu","onEnded","setDocumentTitle","onInput","onScrollToLower","prototype","onScroll","showModal","getUserInfo","5884250NNOtax","onBlur","block-size","getDirectivesReg","offLocationChange","playVoice","onFullScreenChange","weChat","setLocatedCity",".css","saveFileToDisk","arrayBufferToBase64","touchCancel","onBackgroundAudioPlay","onAppear","wx:","onAnimationIteration","configBasename","concat","default","__esModule","onConfirm",".ttml","getTemplateList","onAnimationEnd","onFirstAppear","openShare","setMetaDescription","object","getMenuButtonBoundingClientRect","openCommunityEditor","onBackgroundAudioStop","enumerable","createAudioContext","Headline"];return(_0x392c=function(){return e})()}function _typeof(e){var t=_0x2b83;return(_typeof=t(584)==typeof Symbol&&t(670)==typeof Symbol[t(620)]?function(e){return typeof e}:function(e){var o=t;return e&&"function"==typeof Symbol&&e[o(573)]===Symbol&&e!==Symbol[o(475)]?"symbol":typeof e})(e)}function _classCallCheck(e,o){var t=_0x2b83;if(!(e instanceof o))throw new TypeError(t(635))}function _defineProperties(e,o){for(var t=_0x2b83,n=0;n<o[t(549)];n++){var a=o[n];a[t(511)]=a[t(511)]||!1,a.configurable=!0,t(618)in a&&(a[t(590)]=!0),Object[t(627)](e,_toPropertyKey(a[t(681)]),a)}}function _createClass(e,o,t){var n=_0x2b83;return o&&_defineProperties(e[n(475)],o),t&&_defineProperties(e,t),Object[n(627)](e,n(475),{writable:!1}),e}function _toPropertyKey(e){var o=_0x2b83,e=_toPrimitive(e,"string");return o(670)==_typeof(e)?e:e+""}function _toPrimitive(e,o){var t=_0x2b83;if(t(507)!=_typeof(e)||!e)return e;var n=e[Symbol[t(466)]];if(void 0===n)return("string"===o?String:Number)(e);n=n[t(631)](e,o||t(498));if(t(507)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _0x2b83(e,o){var t=_0x392c();return(_0x2b83=function(e,o){return t[e-=462]})(e,o)}(()=>{for(var e=_0x2b83,o=_0x392c();;)try{if(827106==-parseInt(e(556))*(-parseInt(e(598))/2)+parseInt(e(668))/3+-parseInt(e(548))/4*(-parseInt(e(574))/5)+parseInt(e(677))/6*(parseInt(e(625))/7)+parseInt(e(542))/8*(parseInt(e(610))/9)+parseInt(e(479))/10+-parseInt(e(567))/11*(parseInt(e(530))/12))break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0x205351(627)](exports,_0x205351(499),{value:!0}),exports[_0x205351(532)]=exports.onToBindWithTagEvents=exports[_0x205351(515)]=exports[_0x205351(645)]=exports.Applets=exports.tablebarListItems=exports[_0x205351(467)]=exports[_0x205351(464)]=exports[_0x205351(594)]=exports[_0x205351(603)]=exports[_0x205351(673)]=exports[_0x205351(611)]=exports[_0x205351(533)]=exports.invalidApis=void 0,exports[_0x205351(600)]=[_0x205351(576),_0x205351(490),"onAudioInterruptionEnd","onAudioInterruptionBegin",_0x205351(644),_0x205351(525),_0x205351(630),_0x205351(669),"showNavigationBarLoading",_0x205351(580),_0x205351(616),"setBackgroundColor",_0x205351(550),_0x205351(605),_0x205351(624),_0x205351(517),_0x205351(518),_0x205351(593),_0x205351(508),_0x205351(680),_0x205351(571),_0x205351(538),_0x205351(566),_0x205351(484),"pauseVoice","getAvailableAudioSources","createInnerAudioContext",_0x205351(512),"stopBackgroundAudio","seekBackgroundAudio",_0x205351(664),_0x205351(660),_0x205351(510),_0x205351(492),_0x205351(572),"getBackgroundAudioPlayerState","getBackgroundAudioManager",_0x205351(588),_0x205351(564),"getRecorderManager","stopLocationUpdate",_0x205351(570),_0x205351(527),_0x205351(577),_0x205351(483),_0x205351(613),_0x205351(674),"startWifi","stopWifi",_0x205351(489),"createOffscreenCanvas","onMemoryWarning",_0x205351(545),_0x205351(521),"hideHomeButton",_0x205351(563),"onWindowResize","offWindowResize",_0x205351(621),"checkSession",_0x205351(478),_0x205351(643),"getAccountInfoSync",_0x205351(523),_0x205351(469),"SDKVersion","hideBackHome",_0x205351(524),_0x205351(529),_0x205351(602),_0x205351(655),_0x205351(487),_0x205351(546),_0x205351(569),_0x205351(607),_0x205351(540),_0x205351(592),_0x205351(609),_0x205351(596),_0x205351(615),_0x205351(561),_0x205351(653),_0x205351(468),_0x205351(525),_0x205351(644),_0x205351(678),_0x205351(539),_0x205351(651),_0x205351(636),_0x205351(662),_0x205351(601),"rsa",_0x205351(675),_0x205351(547),_0x205351(585),"ai",_0x205351(659),_0x205351(543),_0x205351(667),_0x205351(640),_0x205351(462),_0x205351(587),_0x205351(581),"requestPolymerPayment",_0x205351(619),_0x205351(506),_0x205351(534),_0x205351(472),_0x205351(586),"reportAnalytics",_0x205351(626),"subscribeService","insertBookshelf",_0x205351(537),"queryBookshelf",_0x205351(522),_0x205351(649),_0x205351(559),"onShareAppMessage",_0x205351(505),_0x205351(463),"navigateToSmartProgram",_0x205351(623),_0x205351(509),"closeCommunityEditor",_0x205351(633),_0x205351(578),_0x205351(514),"deleteresource",_0x205351(612),_0x205351(676),"getTemplateLibraryList",_0x205351(661),_0x205351(531),_0x205351(502),"deleteTemplate",_0x205351(672)],exports.minProgramLanguage={qa:_0x205351(553),wx:_0x205351(486),swan:_0x205351(470),my:_0x205351(647),tt:_0x205351(513)},exports[_0x205351(611)]={qa:{hxml:_0x205351(562),css:_0x205351(488),hjs:_0x205351(654)},wx:{hxml:".wxml",css:_0x205351(465),hjs:".wxs"},swan:{hxml:_0x205351(565),css:_0x205351(488),hjs:_0x205351(526)},my:{hxml:_0x205351(628),css:".acss",hjs:_0x205351(526)},tt:{hxml:_0x205351(501),css:_0x205351(554),hjs:_0x205351(526)}},exports[_0x205351(673)]={qa:_0x205351(666),wx:_0x205351(494),swan:"s-",my:"a:",tt:_0x205351(541)},exports[_0x205351(603)]={wx:_0x205351(568),swan:_0x205351(575),my:"import-sjs",tt:null},exports[_0x205351(594)]=["project.config.json",_0x205351(595)];var configBasename={qa:_0x205351(544),wx:_0x205351(528),swan:_0x205351(595),my:null,tt:_0x205351(528)},addSupportTypes=(exports.windowItems={titleBarColor:"navigationBarBackgroundColor",pullRefresh:"enablePullDownRefresh",defaultTitle:"navigationBarTitleText"},exports[_0x205351(467)]={textColor:_0x205351(617),items:_0x205351(648)},exports.tablebarListItems={name:_0x205351(679),icon:"iconPath",activeIcon:_0x205351(639)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var t=_0x205351;function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:t(652),get:function(){return n[t(589)]},set:function(e){var o=t;n[o(658)](e),n[o(589)]=e}},{key:t(658),value:function(e){var o=t;n[o(496)]=configBasename[e],n[o(552)]=addSupportTypes[e]}},{key:t(482),value:function(e){return new RegExp("^"[t(497)](exports.directivesPrefix[e],".*"))}}])})();exports.Applets=Applets,exports[_0x205351(645)]=[_0x205351(582),_0x205351(622),_0x205351(558),_0x205351(491),_0x205351(671),_0x205351(519)],exports[_0x205351(515)]={swiper:{onAnimationEnd:_0x205351(606)},video:{onLoading:"bindwaiting"},checkbox:{onChange:"bindchange"},slider:{"handle-size":_0x205351(481),handleSize:_0x205351(481),"handle-color":_0x205351(516),handleColor:"block-color"},map:{polygon:"polygons"}},exports.onToBindWithTagEvents={view:[_0x205351(560),_0x205351(495),"onAnimationStart",_0x205351(503),_0x205351(493),_0x205351(663),_0x205351(504)],"movable-view":["onChange","onScale",_0x205351(641)],"scroll-view":[_0x205351(632),_0x205351(474),_0x205351(476)],swiper:[_0x205351(656),_0x205351(642)],"checkbox-group":["onChange"],form:[_0x205351(551),_0x205351(604)],input:[_0x205351(473),_0x205351(614),"onBlur",_0x205351(500)],picker:["onChange"],"picker-view":[_0x205351(656)],"radio-group":[_0x205351(656)],slider:[_0x205351(656),"onChanging"],switch:[_0x205351(656)],textarea:["onInput",_0x205351(614),_0x205351(480),_0x205351(500)],image:[_0x205351(555),_0x205351(665)],video:[_0x205351(637),_0x205351(599),_0x205351(471),_0x205351(520),_0x205351(665),_0x205351(485),_0x205351(536),"onStop",_0x205351(608)],map:["onMarkerTap",_0x205351(657),_0x205351(634),_0x205351(535),"onPanelTap"]},exports[_0x205351(532)]={confirm:_0x205351(477),saveImage:_0x205351(557),connectBLEDevice:_0x205351(597),disconnectBLEDevice:_0x205351(638),scan:_0x205351(629),setClipboard:_0x205351(579),getClipboard:_0x205351(613),getSelectedTextRange:_0x205351(583),hideKeyboard:_0x205351(646),compressVideo:"compressVideo",saveFileToDisk:_0x205351(591),addPhoneRepeatCalendar:_0x205351(650),stopAccelerometer:"stopAccelerometer"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3c4b94=_0x2397;function _0x24c1(){var e=["transformNodeModuleComponent","hello.ux","output",".json",".hjs","iconPath","338712yvAVAS","mkdirSync",".js","assign","handleWxssImport","939944SGzQKj","835132GfrfTq","lib","handleWxmlFile","../lib/locale.json","setOriginPtahObject","isDirectory","statSync","target","widgets","webUrl","unlinkSync","concat","isArray","createDirs","toLowerCase","basename","addSupportTypes","appJsonFile","entry","versionName","replacepos","stringify","forEach",".hxml","navigateToMiniProgramAppIdList","copyFile","toString","Common","readdirSync","app.js","Applets","join","getImportRules","locale","slice","substring","transformJsFile","VSCODE_NLS_CONFIG","name","fileImport","hjs","windowItems","package","transform.log","1202139FZTxKB","replace","__esModule","node_modules","1315615aalpAE","icon","length","../features/fileHandle","copyConfigFiles","miniprogram_npm","chinese","adaptApiFile","isFile","../parse/importVisitor","tabBar","createTransformReportFile","appletType","indexOf","filter","orientation","window","ascf.config.json","minPlatformVersion","changeAppJsonItem","path","projectConfigFile","app.json","eventTargetKey","writeFileSync","versionCode","insertStr","projectFileSuffix","326452lpTZlC","28TWGPRL","utf-8","existsSync","push","debug","type","210564UeSJMV","list","configBasename","usingComponents","log","tablebarItems","util","getGlobleOutPutPath","srcRootPath","helloUxStr","../common/textDocument","dirname","display","readFileSync","Hello","parse","copyDir","platformFeature","css","create","defineProperty","99ZJFfVj","renameSync","handleConfigInfo",".css","input","english","tablebarListItems"];return(_0x24c1=function(){return e})()}(()=>{for(var e=_0x2397,t=_0x24c1();;)try{if(309866==-parseInt(e(539))+-parseInt(e(580))/2+-parseInt(e(507))/3+-parseInt(e(586))/4+parseInt(e(511))/5+parseInt(e(546))/6*(-parseInt(e(540))/7)+-parseInt(e(585))/8*(-parseInt(e(567))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x3c4b94(566)](exports,_0x3c4b94(509),{value:!0}),exports.setLanguage=exports.adaptApiFile=exports.getGlobleOutPutPath=exports[_0x3c4b94(522)]=exports[_0x3c4b94(599)]=exports[_0x3c4b94(532)]=exports[_0x3c4b94(603)]=exports[_0x3c4b94(530)]=exports[_0x3c4b94(611)]=exports[_0x3c4b94(515)]=exports[_0x3c4b94(574)]=exports[_0x3c4b94(569)]=exports[_0x3c4b94(562)]=exports.insertStr=exports[_0x3c4b94(606)]=exports.setOriginPtahObject=void 0;var path=require(_0x3c4b94(531)),fs=require("fs"),importVisitor_1=require(_0x3c4b94(520)),_require=require(_0x3c4b94(556)),create=_require[_0x3c4b94(565)],fileHandle_1=require(_0x3c4b94(514)),commonConfig_1=require("./commonConfig"),transformReport=require("../features/transformReport"),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){thirdComponents=[],originPtahObject[_0x3c4b94(571)]=e,originPtahObject.output=t}function replacepos(e,t,o,n){var i=_0x3c4b94;return e[i(498)](0,t)+n+e[i(498)](o)}function insertStr(e,t,o){var n=_0x3c4b94;return e[n(497)](0,t)+o+e[n(497)](t)}function copyDir(e,t){var o=_0x3c4b94,n=2<arguments[o(513)]&&void 0!==arguments[2]&&arguments[2],i=3<arguments[o(513)]&&void 0!==arguments[3]&&arguments[3];try{fs[o(542)](t)||fs[o(581)](t),i?_copyH5Pragram(e,t):_copyMiniPragram(e,t,n)}catch(e){throw e}}function handleConfigInfo(e,t){var o=_0x3c4b94,n=path[o(617)](t,"manifest.json"),i=JSON[o(561)](fs[o(559)](n,{encoding:o(541)})),i=(i[o(558)].pages[o(560)][o(526)]=e[o(526)],i[o(512)]=i[o(512)]+path[o(601)](e[o(579)]),i[o(505)]=e.packageName,i.name=e.appName,i.versionName=e[o(605)],i[o(536)]=e[o(536)],JSON[o(607)](i,null,2)),n=(fs.writeFileSync(n,i),path.join(t,"Hello",o(575))),i=(i=fs[o(559)](n,{encoding:o(541)}))[o(508)](o(555),e[o(595)]);fs[o(535)](n,i),fs[o(542)](path[o(617)](t,o(613)))||fs[o(581)](path.join(t,o(613))),copyFile(path[o(617)](t,o(613),path[o(601)](e[o(579)])),e[o(579)])}function _copyH5Pragram(i,a){var r=_0x3c4b94;try{fs[r(614)](i)[r(608)](function(e){var t=r,o=path[t(617)](i,e),e=path[t(617)](a,e),n=fs[t(592)](o);n[t(519)]()&©File(e,o),n.isDirectory()&©Dir(o,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(a,r){var c=_0x3c4b94,s=2<arguments[c(513)]&&void 0!==arguments[2]&&arguments[2];try{fs[c(614)](a)[c(608)](function(e){var t=c,o=path[t(617)](a,e),n=path[t(617)](r,e),i=fs.statSync(o);i[t(519)]()&&(copyFile(n,o),!s)&&dealWithFile(n,o),i[t(591)]()&&o!==t(510)&&"miniprogram_npm"!==o&&(e===t(510)?copyDir(o,path[t(617)](r,t(516)),!0):copyDir(o,n,s))})}catch(e){throw e}}function dealWithFile(t,o){var e=_0x3c4b94,n=2<arguments[e(513)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(616)][e(523)],i=path.extname(t);switch(i){case e(582):modifyFileContent(t,o,e(582),n);break;case".json":modifyFileContent(t,o,e(577));break;default:var a=[commonConfig_1[e(616)][e(523)]];(a=commonConfig_1[e(616)][e(602)]?a.concat(commonConfig_1.Applets[e(602)]):a).forEach(function(e){dealWithMainFile(t,o,i,e)})}}function dealWithMainFile(e,t,o,n){var i=_0x3c4b94,a=commonConfig_1[i(538)][n];switch(o){case a.hxml:var r=e[i(508)](o,i(609));modifyFile(e,r,a.hxml,t,n);break;case a[i(564)]:r=e[i(508)](o,i(570));modifyFile(e,r,a.css,null,n);break;case a[i(503)]:if(!a[i(503)])return;r=e[i(508)](o,i(578));modifyFile(e,r,a[i(503)],t,n)}}function modifyFile(e,t,o,n){var i=_0x3c4b94,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:commonConfig_1.Applets[i(523)];try{fs[i(568)](e,t),modifyFileContent(t,n,o,a)}catch(e){throw console.error(e),e}}function modifyFileContent(e,t,o){var n=_0x3c4b94,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:commonConfig_1.Applets[n(523)];try{var a,r=fs[n(559)](e,{encoding:n(541)})[n(612)](),c=commonConfig_1[n(538)][i];switch(o){case c.hxml:r=fileHandle_1[n(588)](e,r,t,i),"tt"===i&&(r=fileHandle_1[n(588)](e,r,t,"wx"));break;case c[n(503)]:var s=create(e,r),r=s.getText(),p=importVisitor_1[n(618)](r,null,!0,i)[n(525)](function(e){var t=n;return e[t(545)]===t(502)});r=fileHandle_1.transformWxsFilePath(p,s,r,t,i);break;case c[n(564)]:r=fileHandle_1[n(584)](e,r,i),"tt"===i&&(r=fileHandle_1.handleWxssImport(e,r,"wx"));break;case n(582):r=fileHandle_1[n(499)](e,t,r,i),"tt"===i&&(r=fileHandle_1.transformJsFile(e,t,r,"wx"));break;case".json":r&&((a=JSON[n(561)](r)).usingComponents&&handleUsingComponents(a[n(549)]),"my"===commonConfig_1[n(616)][n(523)]&&changeAppJsonItem(a,commonConfig_1[n(504)]),r=JSON[n(607)](a,null,2))}fs[n(535)](e,r)}catch(e){throw e}}function dealWithNodeModuleComponent(o,n){var i=_0x3c4b94,e=fs[i(592)](o);e.isFile()&&dealWithFile(o,n),e[i(591)]()&&fs.readdirSync(o)[i(608)](function(e){var t=i;dealWithNodeModuleComponent(path[t(617)](o,e),path[t(617)](n,e))})}function transformNodeModuleComponent(){var i=_0x3c4b94;thirdComponents[i(608)](function(e){var t,o=i,n=path[o(617)](originPtahObject[o(576)],o(516),e);fs[o(542)](n)&&(t=path[o(617)](originPtahObject[o(571)],o(516),e),fs[o(542)](t)?dealWithNodeModuleComponent(n,t):dealWithNodeModuleComponent(n,path[o(617)](originPtahObject.input,o(510),e)))})}function handleUsingComponents(e){var t,o,n=_0x3c4b94;for(t in e)e[t]&&(o=e[t].split("/"))[0]&&"."!==o[0][0]&&-1===thirdComponents[n(524)](o[0])&&thirdComponents[n(543)](o[0])}function copyConfigFiles(n,i){var a=_0x3c4b94;try{fs[a(614)](n)[a(608)](function(e){var t=a,o=path[t(617)](n,e),e=path[t(617)](i,e);fs[t(592)](o)[t(519)]()&©File(e,o)})}catch(e){throw e}}function _0x2397(e,t){var o=_0x24c1();return(_0x2397=function(e,t){return o[e-=496]})(e,t)}function copyFile(e,t){fs[_0x3c4b94(535)](e,fs.readFileSync(t))}function changeAppJsonItem(e,t){if(e)for(var o in t)e[o]&&(e[t[o]]=e[o],delete e[o])}function appJsonFile(e,t){var o=_0x3c4b94,n=JSON.parse(fs[o(559)](path.join(e,o(533)))[o(612)]()),n=(delete n[o(505)],delete n[o(501)],delete n[o(605)],delete n[o(536)],delete n[o(529)],delete n[o(512)],delete n.type,changeAppJsonItem(n[o(527)],commonConfig_1.windowItems),changeAppJsonItem(n[o(521)],commonConfig_1[o(551)]),n.tabBar&&n[o(521)][o(547)]&&n.tabBar[o(547)].forEach(function(e){changeAppJsonItem(e,commonConfig_1[o(573)])}),Object[o(583)]({},n)),n=(delete n[o(594)],delete n[o(604)],delete n[o(544)],delete n[o(610)],-1!==["swan","my"][o(524)](commonConfig_1[o(616)][o(523)])&&(n.platformFeature={enableNoDeclareCompProp:!0}),-1!==["my"][o(524)](commonConfig_1[o(616)][o(523)])&&(n[o(563)][o(534)]=o(593)),JSON[o(607)](n,null,2));fs[o(535)](path.join(e,o(533)),n)}function projectConfigFile(e){var t=_0x3c4b94,o={},n=(commonConfig_1[t(616)][t(548)]?fs.existsSync(path[t(617)](e,commonConfig_1[t(616)][t(548)]))&&(o=JSON.parse(fs[t(559)](path[t(617)](e,commonConfig_1[t(616)][t(548)]))[t(612)]())):o={},{ascfRoot:commonConfig_1[t(616)][t(554)],packOptions:{ignore:[]}}),o=(n.packOptions=o.packOptions,JSON.stringify(n,null,2));commonConfig_1[t(616)][t(548)]&&fs[t(542)](path.join(e,commonConfig_1[t(616)][t(548)]))&&fs[t(596)](path.join(e,commonConfig_1[t(616)][t(548)])),fs.writeFile(path[t(617)](e,t(528)),o,function(e){e&&console[t(550)](e)})}function mkdirsSync(e){var t=_0x3c4b94;return!!fs[t(542)](e)||(mkdirsSync(path[t(557)](e))?(fs[t(581)](e),!0):void 0)}function createDirs(e,t){var o=_0x3c4b94;o(513);fs[o(542)](e)||mkdirsSync(e),fs[o(542)](path[o(617)](e,t))||mkdirsSync(path[o(617)](e,t))}function createTransformReportFile(e,t){var o=_0x3c4b94(506),e=(globleOutPutPath=path.join(e,o),setLanguage("miniProgramProject")+t+"\n\n");fs.writeFileSync(globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var o=_0x3c4b94,t=(fs[o(542)](path[o(617)](e,o(552)))||fs.mkdirSync(path[o(617)](e,o(552))),copyFile(path[o(617)](e,o(552),"apiadapter4alipay.js"),path[o(617)](t,o(587),"apiadapter4alipay.js")),path.join(e,o(615))),e=fs.readFileSync(t,{encoding:o(541)}),e="require('./util/apiadapter4alipay.js');\r\n"[o(597)](e);fs[o(535)](t,e)}exports[_0x3c4b94(590)]=setOriginPtahObject,exports[_0x3c4b94(606)]=replacepos,exports[_0x3c4b94(537)]=insertStr,exports[_0x3c4b94(562)]=copyDir,exports[_0x3c4b94(569)]=handleConfigInfo,exports[_0x3c4b94(574)]=transformNodeModuleComponent,exports[_0x3c4b94(515)]=copyConfigFiles,exports.copyFile=copyFile,exports.changeAppJsonItem=changeAppJsonItem,exports[_0x3c4b94(603)]=appJsonFile,exports[_0x3c4b94(532)]=projectConfigFile,exports.createDirs=createDirs,exports[_0x3c4b94(522)]=createTransformReportFile,exports[_0x3c4b94(553)]=getGlobleOutPutPath,exports[_0x3c4b94(518)]=adaptApiFile;var lan=JSON.parse(process.env[_0x3c4b94(500)]||'{"locale": "zh-cn"}')[_0x3c4b94(496)][_0x3c4b94(600)](),language=require(_0x3c4b94(589));function setLanguage(e,t){var o,n=_0x3c4b94;return language[e]?(o="zh-cn"===lan?language[e][n(517)]:language[e][n(572)],Array[n(598)](t)&&t[n(608)](function(e,t){o=o[n(508)]("${"+(t+1)+"}",e)}),o):e}exports.setLanguage=setLanguage;
|
|
1
|
+
var _0xe34f4c=_0x23a8,path=((()=>{for(var e=_0x23a8,o=_0xe3c2();;)try{if(137314==-parseInt(e(280))*(parseInt(e(345))/2)+parseInt(e(377))/3*(parseInt(e(348))/4)+-parseInt(e(371))/5+-parseInt(e(391))/6*(parseInt(e(269))/7)+-parseInt(e(365))/8*(-parseInt(e(385))/9)+parseInt(e(325))/10*(parseInt(e(357))/11)+-parseInt(e(392))/12)break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0xe34f4c(346)](exports,_0xe34f4c(386),{value:!0}),exports[_0xe34f4c(304)]=exports[_0xe34f4c(293)]=exports[_0xe34f4c(315)]=exports[_0xe34f4c(308)]=exports[_0xe34f4c(275)]=exports.projectConfigFile=exports[_0xe34f4c(342)]=exports.changeAppJsonItem=exports[_0xe34f4c(336)]=exports.copyConfigFiles=exports[_0xe34f4c(333)]=exports[_0xe34f4c(363)]=exports[_0xe34f4c(313)]=exports[_0xe34f4c(276)]=exports[_0xe34f4c(272)]=exports[_0xe34f4c(352)]=void 0,require("path")),fs=require("fs"),importVisitor_1=require("../parse/importVisitor"),_require=require(_0xe34f4c(339)),create=_require.create,fileHandle_1=require("../features/fileHandle"),commonConfig_1=require("./commonConfig"),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""},log4js=require(_0xe34f4c(299)),logger=log4js[_0xe34f4c(359)](_0xe34f4c(319));function _0xe3c2(){var e=["zh-cn","push","readdirSync","projectConfigFile","css","miniProgramProject","Common","locale","VSCODE_NLS_CONFIG","adaptApiFile","writeFile","utf-8","platformFeature","split","existsSync","../../common/log4js.js","navigateToMiniProgramAppIdList","unlinkSync","hjs","basename","setLanguage","display","isFile","icon","createTransformReportFile","concat","package","usingComponents","swan","copyDir","name","getGlobleOutPutPath","packOptions","output","lib","commonUtils","readFileSync","util","debug","error","target","94200SwjqKc","env","toLowerCase","minPlatformVersion","appletType","copyConfigFiles","substring","stringify","transformNodeModuleComponent","isArray","join","copyFile","hello.ux","configBasename","../common/textDocument","webUrl","projectFileSuffix","appJsonFile","isDirectory","tabBar","82jzRNyo","defineProperty","list","78004xIXVgE","../lib/locale.json","getText","statSync","setOriginPtahObject","getImportRules",".json","extname","changeAppJsonItem","11ZSuxmI","widgets","getLogger","renameSync","require('./util/apiadapter4alipay.js');\r\n","miniprogram_npm","handleConfigInfo","orientation","868048zaDwaA","filter","Applets","hxml","Hello","assign","297835PbOCMA","mkdirSync","windowItems","versionCode","fileImport","toString","42sbdALh","appName","transformJsFile","addSupportTypes","type","forEach","chinese","node_modules","18SGeaOz","__esModule","slice","indexOf","dirname","versionName","127038nMePro","2205252URkKAe",".hxml","window","input",".js","writeFileSync","transformWxsFilePath","length","replace","7fAMbXq","apiadapter4alipay.js","iconPath","replacepos","srcRootPath",'{"locale": "zh-cn"}',"createDirs","insertStr","app.json","parse","handleWxssImport","2381ajNIOS","pages","entry","handleWxmlFile"];return(_0xe3c2=function(){return e})()}function setOriginPtahObject(e,o){var t=_0xe34f4c;thirdComponents=[],originPtahObject.input=e,originPtahObject[t(317)]=o}function replacepos(e,o,t,n){var i=_0xe34f4c;return e[i(331)](0,o)+n+e[i(331)](t)}function insertStr(e,o,t){var n=_0xe34f4c;return e[n(387)](0,o)+t+e[n(387)](o)}function copyDir(e,o){var t=_0xe34f4c,n=2<arguments[t(399)]&&void 0!==arguments[2]&&arguments[2],i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];try{fs[t(298)](o)||fs[t(372)](o),i?_copyH5Pragram(e,o):_copyMiniPragram(e,o,n)}catch(e){throw e}}function handleConfigInfo(e,o){var t=_0xe34f4c,n=path[t(335)](o,"manifest.json"),i=JSON[t(278)](fs[t(320)](n,{encoding:"utf-8"})),i=(i[t(305)][t(281)][t(369)].orientation=e[t(364)],i[t(307)]=i[t(307)]+path[t(303)](e[t(271)]),i.package=e.packageName,i[t(314)]=e[t(378)],i[t(390)]=e[t(390)],i.versionCode=e[t(374)],JSON[t(332)](i,null,2)),n=(fs[t(397)](n,i),path[t(335)](o,t(369),t(337))),i=(i=fs[t(320)](n,{encoding:t(295)}))[t(268)]("helloUxStr",e[t(340)]);fs[t(397)](n,i),fs[t(298)](path[t(335)](o,"Common"))||fs.mkdirSync(path[t(335)](o,"Common")),copyFile(path[t(335)](o,t(290),path[t(303)](e[t(271)])),e[t(271)])}function _copyH5Pragram(i,a){var r=_0xe34f4c;try{fs[r(286)](i)[r(382)](function(e){var o=r,t=path[o(335)](i,e),e=path[o(335)](a,e),n=fs[o(351)](t);n[o(306)]()&©File(e,t),n.isDirectory()&©Dir(t,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(a,r){var c=_0xe34f4c,s=2<arguments.length&&void 0!==arguments[2]&&arguments[2];try{fs[c(286)](a)[c(382)](function(e){var o=c,t=path[o(335)](a,e),n=path[o(335)](r,e),i=fs[o(351)](t);i[o(306)]()&&(copyFile(n,t),!s)&&dealWithFile(n,t),i[o(343)]()&&"node_modules"!==t&&t!==o(362)&&(e===o(384)?copyDir(t,path.join(r,"miniprogram_npm"),!0):copyDir(t,n,s))})}catch(e){throw e}}function dealWithFile(o,t){var e=_0xe34f4c,n=2<arguments[e(399)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(367)].appletType,i=path[e(355)](o);switch(i){case e(396):modifyFileContent(o,t,e(396),n);break;case e(354):modifyFileContent(o,t,e(354));break;default:var a=[commonConfig_1[e(367)][e(329)]];(a=commonConfig_1[e(367)].addSupportTypes?a.concat(commonConfig_1[e(367)][e(380)]):a)[e(382)](function(e){dealWithMainFile(o,t,i,e)})}}function dealWithMainFile(e,o,t,n){var i=_0xe34f4c,a=commonConfig_1[i(341)][n];switch(t){case a[i(368)]:var r=e[i(268)](t,i(393));modifyFile(e,r,a[i(368)],o,n);break;case a[i(288)]:r=e.replace(t,".css");modifyFile(e,r,a[i(288)],null,n);break;case a[i(302)]:if(!a[i(302)])return;r=e[i(268)](t,".hjs");modifyFile(e,r,a[i(302)],o,n)}}function modifyFile(e,o,t,n){var i=_0xe34f4c,a=4<arguments[i(399)]&&void 0!==arguments[4]?arguments[4]:commonConfig_1[i(367)][i(329)];try{fs[i(360)](e,o),modifyFileContent(o,n,t,a)}catch(e){throw logger[i(323)](e),e}}function modifyFileContent(e,o,t){var n=_0xe34f4c,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:commonConfig_1[n(367)][n(329)];try{var a,r=fs.readFileSync(e,{encoding:n(295)})[n(376)](),c=commonConfig_1[n(341)][i];switch(t){case c[n(368)]:r=fileHandle_1[n(283)](e,r,o,i),"tt"===i&&(r=fileHandle_1[n(283)](e,r,o,"wx"));break;case c[n(302)]:var s=create(e,r),r=s[n(350)](),p=importVisitor_1[n(353)](r,null,!0,i)[n(366)](function(e){var o=n;return e[o(381)]===o(375)});r=fileHandle_1[n(398)](p,s,r,o,i);break;case c.css:r=fileHandle_1[n(279)](e,r,i),"tt"===i&&(r=fileHandle_1.handleWxssImport(e,r,"wx"));break;case".js":r=fileHandle_1[n(379)](e,o,r,i),"tt"===i&&(r=fileHandle_1.transformJsFile(e,o,r,"wx"));break;case n(354):r&&((a=JSON[n(278)](r)).usingComponents&&handleUsingComponents(a[n(311)]),"my"===commonConfig_1[n(367)].appletType&&changeAppJsonItem(a,commonConfig_1.windowItems),r=JSON[n(332)](a,null,2))}fs[n(397)](e,r)}catch(e){throw e}}function dealWithNodeModuleComponent(t,n){var i=_0xe34f4c,e=fs[i(351)](t);e[i(306)]()&&dealWithFile(t,n),e[i(343)]()&&fs[i(286)](t).forEach(function(e){var o=i;dealWithNodeModuleComponent(path[o(335)](t,e),path[o(335)](n,e))})}function transformNodeModuleComponent(){thirdComponents.forEach(function(e){var o,t=_0x23a8,n=path[t(335)](originPtahObject[t(317)],"miniprogram_npm",e);fs[t(298)](n)&&(o=path.join(originPtahObject[t(395)],"miniprogram_npm",e),fs.existsSync(o)?dealWithNodeModuleComponent(n,o):dealWithNodeModuleComponent(n,path[t(335)](originPtahObject[t(395)],t(384),e)))})}function handleUsingComponents(e){var o,t,n=_0xe34f4c;for(o in e)e[o]&&(t=e[o][n(297)]("/"))[0]&&"."!==t[0][0]&&-1===thirdComponents.indexOf(t[0])&&thirdComponents[n(285)](t[0])}function copyConfigFiles(n,i){var a=_0xe34f4c;try{fs[a(286)](n).forEach(function(e){var o=a,t=path.join(n,e),e=path.join(i,e);fs.statSync(t)[o(306)]()&©File(e,t)})}catch(e){throw e}}function copyFile(e,o){var t=_0xe34f4c;fs.writeFileSync(e,fs[t(320)](o))}function changeAppJsonItem(e,o){if(e)for(var t in o)e[t]&&(e[o[t]]=e[t],delete e[t])}function appJsonFile(e,o){var t=_0xe34f4c,n=JSON[t(278)](fs[t(320)](path[t(335)](e,t(277)))[t(376)]()),n=(delete n[t(310)],delete n.name,delete n[t(390)],delete n[t(374)],delete n[t(328)],delete n[t(307)],delete n.type,changeAppJsonItem(n[t(394)],commonConfig_1[t(373)]),changeAppJsonItem(n[t(344)],commonConfig_1.tablebarItems),n.tabBar&&n[t(344)][t(347)]&&n.tabBar[t(347)][t(382)](function(e){changeAppJsonItem(e,commonConfig_1.tablebarListItems)}),Object[t(370)]({},n)),n=(delete n[t(358)],delete n[t(282)],delete n[t(322)],delete n[t(300)],-1!==[t(312),"my"][t(388)](commonConfig_1[t(367)][t(329)])&&(n[t(296)]={enableNoDeclareCompProp:!0}),-1!==["my"][t(388)](commonConfig_1[t(367)][t(329)])&&(n[t(296)].eventTargetKey=t(324)),JSON.stringify(n,null,2));fs.writeFileSync(path[t(335)](e,t(277)),n)}function projectConfigFile(e){var o=_0xe34f4c,t={},n=(commonConfig_1[o(367)][o(338)]?fs[o(298)](path[o(335)](e,commonConfig_1[o(367)][o(338)]))&&(t=JSON[o(278)](fs[o(320)](path[o(335)](e,commonConfig_1[o(367)].configBasename))[o(376)]())):t={},{ascfRoot:commonConfig_1[o(367)][o(273)],packOptions:{ignore:[]}}),t=(n[o(316)]=t[o(316)],JSON[o(332)](n,null,2));commonConfig_1[o(367)].configBasename&&fs.existsSync(path[o(335)](e,commonConfig_1.Applets.configBasename))&&fs[o(301)](path[o(335)](e,commonConfig_1[o(367)][o(338)])),fs[o(294)](path[o(335)](e,"ascf.config.json"),t,function(e){e&&logger[o(323)](e)})}function mkdirsSync(e){var o=_0xe34f4c;return!!fs.existsSync(e)||(mkdirsSync(path[o(389)](e))?(fs[o(372)](e),!0):void 0)}function createDirs(e,o){var t=_0xe34f4c;t(399);fs[t(298)](e)||mkdirsSync(e),fs[t(298)](path[t(335)](e,o))||mkdirsSync(path.join(e,o))}function createTransformReportFile(e,o){var t=_0xe34f4c,e=(globleOutPutPath=path[t(335)](e,"transform.log"),setLanguage(t(289))+o+"\n\n");fs[t(397)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function _0x23a8(e,o){var t=_0xe3c2();return(_0x23a8=function(e,o){return t[e-=268]})(e,o)}function adaptApiFile(e,o){var t=_0xe34f4c,o=(fs[t(298)](path[t(335)](e,t(321)))||fs.mkdirSync(path[t(335)](e,t(321))),copyFile(path[t(335)](e,t(321),t(270)),path[t(335)](o,t(318),t(270))),path.join(e,"app.js")),e=fs[t(320)](o,{encoding:t(295)}),e=t(361)[t(309)](e);fs[t(397)](o,e)}exports[_0xe34f4c(352)]=setOriginPtahObject,exports.replacepos=replacepos,exports.insertStr=insertStr,exports[_0xe34f4c(313)]=copyDir,exports[_0xe34f4c(363)]=handleConfigInfo,exports[_0xe34f4c(333)]=transformNodeModuleComponent,exports[_0xe34f4c(330)]=copyConfigFiles,exports.copyFile=copyFile,exports[_0xe34f4c(356)]=changeAppJsonItem,exports[_0xe34f4c(342)]=appJsonFile,exports[_0xe34f4c(287)]=projectConfigFile,exports[_0xe34f4c(275)]=createDirs,exports[_0xe34f4c(308)]=createTransformReportFile,exports.getGlobleOutPutPath=getGlobleOutPutPath,exports[_0xe34f4c(293)]=adaptApiFile;var lan=JSON[_0xe34f4c(278)](process[_0xe34f4c(326)][_0xe34f4c(292)]||_0xe34f4c(274))[_0xe34f4c(291)][_0xe34f4c(327)](),language=require(_0xe34f4c(349));function setLanguage(e,o){var t,n=_0xe34f4c;return language[e]?(t=lan===n(284)?language[e][n(383)]:language[e].english,Array[n(334)](o)&&o[n(382)](function(e,o){t=t[n(268)]("${"+(o+1)+"}",e)}),t):e}exports[_0xe34f4c(304)]=setLanguage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4916(e,r){var n=_0x4713();return(_0x4916=function(e,r){return n[e-=371]})(e,r)}var _0xc44da2=_0x4916;function _0x4713(){var e=["oh-package.json5","length","65SnSZuH","134072bEqdTO","12495357MqIYRj","path","../../common/utils","pathValidator","modules","1129304TzuNOq","@atomicservice/ascf","build-profile.json5","checkInputPathFun","readJsonFile","Input path is not MiniProgram src.","data","3435702OrqWeu","1912449VGvMzw","resolve","dependencies","153644eNKkjK","921046FSMtgN","info","@atomicservice/ascfapi","srcPath","406fMrhJq","existsSync"];return(_0x4713=function(){return e})()}(()=>{for(var e=_0x4916,r=_0x4713();;)try{if(504252==+parseInt(e(394))+-parseInt(e(382))/2+parseInt(e(390))/3+parseInt(e(393))/4*(parseInt(e(375))/5)+-parseInt(e(389))/6+parseInt(e(371))/7*(parseInt(e(376))/8)+-parseInt(e(377))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var fs=require("fs"),path=require(_0xc44da2(378)),_require=require(_0xc44da2(379)),readJsonFile=_require[_0xc44da2(386)];exports[_0xc44da2(380)]=function(e,r){var n,a=_0xc44da2;require("../features/converter.js")[a(385)](e)[a(388)].returnCode?(e=path[a(391)](r,a(384)),null!=(r=(n=0<(null==(e=fs[a(372)](e)?readJsonFile(e):void 0)||null==(n=e.modules)?void 0:n[a(374)])?path.resolve(r,e[a(381)][0][a(397)],a(373)):void 0)?readJsonFile(n):void 0)&&r[a(392)]&&(r.dependencies[a(396)]||r.dependencies[a(383)])?console[a(395)]("Check success."):console.error("Output path is not an ASCF project.")):console.error(a(387))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _typeof(t){var r=
|
|
1
|
+
var _0x3389b4=_0x3cbd;function _typeof(t){var r=_0x3cbd;return(_typeof=r(178)==typeof Symbol&&r(194)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var e=r;return t&&e(178)==typeof Symbol&&t[e(209)]===Symbol&&t!==Symbol[e(185)]?e(194):typeof t})(t)}function _classCallCheck(t,e){var r=_0x3cbd;if(!(t instanceof e))throw new TypeError(r(176))}function _defineProperties(t,e){for(var r=_0x3cbd,n=0;n<e[r(175)];n++){var i=e[n];i[r(211)]=i[r(211)]||!1,i[r(182)]=!0,r(173)in i&&(i[r(210)]=!0),Object[r(179)](t,_toPropertyKey(i[r(188)]),i)}}function _createClass(t,e,r){var n=_0x3cbd;return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object[n(179)](t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_0x3cbd,t=_toPrimitive(t,e(177));return e(194)==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x3cbd;if(r(192)!=_typeof(t)||!t)return t;var n=t[Symbol[r(190)]];if(void 0===n)return(r(177)===e?String:Number)(t);n=n.call(t,e||r(181));if(r(192)!=_typeof(n))return n;throw new TypeError(r(203))}(()=>{for(var t=_0x3cbd,e=_0x573a();;)try{if(921859==+parseInt(t(204))+parseInt(t(202))/2*(parseInt(t(196))/3)+parseInt(t(212))/4*(-parseInt(t(199))/5)+-parseInt(t(198))/6+-parseInt(t(208))/7+-parseInt(t(187))/8+parseInt(t(206))/9*(parseInt(t(193))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var TextDocument=(()=>{var c=_0x3cbd;return _createClass(function t(e,r){var n=_0x3cbd;_classCallCheck(this,t),this[n(213)]=e,this._content=r,this._lineOffsets=void 0},[{key:c(174),value:function(){return this[c(195)]}},{key:"uri",value:function(){return this[c(213)]}},{key:"offsetAt",value:function(t){var e,r=c,n=this.getLineOffsets();return t.line>=n[r(175)]?this[r(195)][r(175)]:t.line<0?0:(e=n[t[r(186)]],n=t[r(186)]+1<n[r(175)]?n[t.line+1]:this._content[r(175)],Math[r(183)](Math[r(201)](e+t[r(191)],n),e))}},{key:c(197),value:function(){var t=c;return void 0===this[t(207)]&&(this[t(207)]=this.computeLineOffsets(this[t(195)],!0)),this[t(207)]}},{key:"computeLineOffsets",value:function(t,e,r){for(var n=c,i=(void 0===r&&(r=0),e?[r]:[]),o=0;o<t[n(175)];o++){var a=t[n(180)](o);13!==a&&10!==a||(13===a&&o+1<t[n(175)]&&10===t.charCodeAt(o+1)&&o++,i[n(205)](r+o+1))}return i}},{key:c(189),value:function(t){var e=c,r=(t=Math[e(183)](Math[e(201)](t,this[e(195)][e(175)]),0),this.getLineOffsets()),n=0,i=r[e(175)];if(0===i)return{line:0,character:t};for(;n<i;){var o=Math[e(200)]((n+i)/2);r[o]>t?i=o:n=o+1}var a=n-1;return{line:a,character:t-r[a]}}}])})();function create(t,e){return new TextDocument(t,e)}function _0x3cbd(t,e){var r=_0x573a();return(_0x3cbd=function(t,e){return r[t-=173]})(t,e)}function _0x573a(){var t=["line","357208yWSTXN","key","positionAt","toPrimitive","character","object","33855260sRmDYo","symbol","_content","1839165bolcBw","getLineOffsets","6918378BSSFFi","275165dqAnZO","floor","min","2dMsDVq","@@toPrimitive must return a primitive value.","393583IjFAtq","push","9ZeHoKW","_lineOffsets","12055827xTXYLV","constructor","writable","enumerable","40LRfFVG","_uri","value","getText","length","Cannot call a class as a function","string","function","defineProperty","charCodeAt","default","configurable","max","exports","prototype"];return(_0x573a=function(){return t})()}module[_0x3389b4(184)]={create:create};
|