@atomicservice/ascf-toolkit 1.0.9 → 1.0.11
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-common/index.js +1 -1
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/ascf-define.js +1 -1
- package/lib/ascf-compiler/common/ascf-file-cache.js +1 -0
- package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -1
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/eventHappenHjs.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/hdc-executor.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/manifest-handler.js +1 -1
- package/lib/ascf-compiler/common/manifest-manager.js +1 -1
- package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -1
- 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/js-parser/parser-babel.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
- package/lib/ascf-compiler/js-parser/parser.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/before-loader-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/dynamic-entry-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/quick-service-build-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/replace-module-id-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/require-loader.js +1 -1
- package/lib/ascf-compiler/server/dev-server.js +1 -1
- package/lib/ascf-compiler/server/port-manager.js +1 -1
- package/lib/ascf-compiler/swc-loader.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/implicit-model-config.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/template-compiler/index.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/trustlist-verify/verify-ignore-files.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue-compiler.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.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/convertManager.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/ascf-converter/report/js/index.js +1 -1
- package/lib/ascf-sign-tools/cli.js +1 -1
- package/lib/ascf-sign-tools/index.js +1 -1
- package/lib/bin/ascf.js +1 -1
- package/lib/commands/ascfbuild/index.js +1 -1
- package/lib/commands/build-npm/index.js +1 -1
- package/lib/commands/compile.js +1 -1
- package/lib/commands/convert.js +1 -1
- package/lib/commands/debugger/index.js +1 -1
- package/lib/commands/quickservice/index.js +1 -1
- package/lib/common/config.js +1 -1
- package/lib/common/constants.js +1 -1
- package/lib/common/log4js.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.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 +8 -8
- package/lib/ascf-base/index.js +0 -1
- package/lib/tools/platform-tools-darwin/adb +0 -0
- package/lib/tools/platform-tools-windows/AdbWinApi.dll +0 -0
- package/lib/tools/platform-tools-windows/AdbWinUsbApi.dll +0 -0
- package/lib/tools/platform-tools-windows/adb.exe +0 -0
- package/lib/tools/release_64/SSL/ct_log_list.cnf +0 -9
- package/lib/tools/release_64/SSL/ct_log_list.cnf.dist +0 -9
- package/lib/tools/release_64/SSL/misc/CA.pl +0 -215
- package/lib/tools/release_64/SSL/misc/tsget.pl +0 -200
- package/lib/tools/release_64/SSL/openssl.cnf +0 -350
- package/lib/tools/release_64/SSL/openssl.cnf.dist +0 -350
- package/lib/tools/release_64/bin/c_rehash.pl +0 -251
- package/lib/tools/release_64/bin/libcrypto-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/libssl-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/openssl.exe +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x139f27=_0x3872;function _0x3872(e,r){var t=_0x1f8b();return(_0x3872=function(e,r){return t[e-=457]})(e,r)}function ownKeys(r,e){var t,n=_0x3872,i=Object[n(1104)](r);return Object[n(2250)]&&(t=Object[n(2250)](r),e&&(t=t[n(1236)](function(e){return Object[n(1224)](r,e).enumerable})),i[n(1158)][n(1988)](i,t)),i}function _objectSpread(t){for(var n=_0x3872,e=1;e<arguments[n(1963)];e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object[n(2086)]?Object[n(1087)](t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i))[n(610)](function(e){var r=n;Object[r(1200)](t,e,Object[r(1224)](i,e))})}return t}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x3872(1686))}function _iterableToArray(e){var r=_0x3872;if(r(1068)!=typeof Symbol&&null!=e[Symbol[r(1288)]]||null!=e[r(819)])return Array[r(1806)](e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _regenerator(){var _,g=_0x3872,e=g(1221)==typeof Symbol?Symbol:{},r=e[g(1288)]||g(819),t=e[g(2098)]||g(730);function n(e,r,t,n){var i,a,o,s,u,c,f,h,l,v,d=g,r=r&&r[d(785)]instanceof y?r:y,r=Object.create(r.prototype);return _regeneratorDefine2(r,d(2132),(i=e,a=t,h=n||[],l=!1,v={p:f=0,n:0,v:_,a:p,f:p[(c=d)(1690)](_,4),d:function(e,r){return o=e,s=0,u=_,v.n=r,m}},function(e,r,t){var n=c;if(1<f)throw TypeError("Generator is already running");for(l&&1===r&&p(r,t),s=r,u=t;(b=s<2?_:u)||!l;){o||(s?s<3?(1<s&&(v.n=-1),p(s,u)):v.n=u:v.v=u);try{if(f=2,o){if(s||(e=n(1935)),b=o[e]){if(!(b=b.call(o,u)))throw TypeError("iterator result is not an object");if(!b[n(1328)])return b;u=b[n(1203)],s<2&&(s=0)}else 1===s&&(b=o[n(2070)])&&b[n(1775)](o),s<2&&(u=TypeError(n(896)+e+n(2043)),s=1);o=_}else if((b=(l=v.n<0)?u:i[n(1775)](a,v))!==m)break}catch(e){o=_,s=1,u=e}finally{f=1}}return{value:b,done:l}}),!0),r;function p(e,r){for(s=e,u=r,b=0;!l&&f&&!t&&b<h.length;b++){var t,n=h[b],i=v.p,a=n[2];3<e?(t=a===r)&&(u=n[(s=n[4])?5:s=3],n[4]=n[5]=_):n[0]<=i&&((t=e<2&&i<n[1])?(s=0,v.v=r,v.n=n[1]):i<a&&(t=e<3||n[0]>r||a<r)&&(n[4]=e,n[5]=r,v.n=a,s=0))}if(t||1<e)return m;throw l=!0,r}}var m={};function y(){}function i(){}function a(){}var b=Object.getPrototypeOf,e=[][r]?b(b([][r]())):(_regeneratorDefine2(b={},r,function(){return this}),b),o=a[g(785)]=y[g(785)]=Object[g(784)](e);function s(e){var r=g;return Object[r(715)]?Object[r(715)](e,a):(e.__proto__=a,_regeneratorDefine2(e,t,r(2254))),e[r(785)]=Object[r(784)](o),e}return i[g(785)]=a,_regeneratorDefine2(o,"constructor",a),_regeneratorDefine2(a,g(2248),i),i[g(1463)]=g(2254),_regeneratorDefine2(a,t,g(2254)),_regeneratorDefine2(o),_regeneratorDefine2(o,t,"Generator"),_regeneratorDefine2(o,r,function(){return this}),_regeneratorDefine2(o,g(641),function(){return g(1619)}),(_regenerator=function(){return{w:n,m:s}})()}function _regeneratorDefine2(e,r,t,n){var o=_0x3872,s=Object[o(1200)];try{s({},"",{})}catch(e){s=0}(_regeneratorDefine2=function(e,r,t,n){var i=o;function a(r,t){_regeneratorDefine2(e,r,function(e){return this[_0x3872(2132)](r,t,e)})}r?s?s(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(a("next",0),a(i(1807),1),a(i(2070),2))})(e,r,t,n)}function asyncGeneratorStep(e,r,t,n,i,a,o){var s=_0x3872;try{var u=e[a](o),c=u[s(1203)]}catch(e){return void t(e)}u[s(1328)]?r(c):Promise.resolve(c)[s(1142)](n,i)}function _asyncToGenerator(s){return function(){var e=this,o=arguments;return new Promise(function(r,t){var n=s[_0x3872(1988)](e,o);function i(e){asyncGeneratorStep(n,r,t,i,a,"next",e)}function a(e){asyncGeneratorStep(n,r,t,i,a,"throw",e)}i(void 0)})}}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(_0x3872(1037))}function _iterableToArrayLimit(e,r){var t=_0x3872,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,o,s,u=[],c=!0,f=!1;try{if(o=(n=n.call(e))[t(1935)],0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o[t(1775)](n)).done)&&(u.push(i[t(1203)]),u[t(1963)]!==r);c=!0);}catch(e){f=!0,a=e}finally{try{if(!c&&null!=n[t(2070)]&&(s=n[t(2070)](),Object(s)!==s))return}finally{if(f)throw a}}return u}}function _arrayWithHoles(e){if(Array[_0x3872(920)](e))return e}function _defineProperties(e,r){for(var t=_0x3872,n=0;n<r[t(1963)];n++){var i=r[n];i[t(1005)]=i[t(1005)]||!1,i[t(2210)]=!0,"value"in i&&(i[t(705)]=!0),Object[t(1200)](e,_toPropertyKey(i[t(2017)]),i)}}function _createClass(e,r,t){var n=_0x3872;return r&&_defineProperties(e[n(785)],r),t&&_defineProperties(e,t),Object[n(1200)](e,n(785),{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,_0x3872(1191));return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,r){var t=_0x3872;if(t(1184)!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===r?String:Number)(e);n=n[t(1775)](e,r||t(1755));if("object"!=_typeof(n))return n;throw new TypeError(t(1919))}function _classCallCheck(e,r){var t=_0x3872;if(!(e instanceof r))throw new TypeError(t(1585))}function _callSuper(e,r,t){var n=_0x3872;return r=_getPrototypeOf(r),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect[n(1862)](r,t||[],_getPrototypeOf(e)[n(2248)]):r[n(1988)](e,t))}function _possibleConstructorReturn(e,r){var t=_0x3872;if(r&&(t(1184)==_typeof(r)||t(1221)==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(_0x3872(1785));return e}function _inherits(e,r){var t=_0x3872;if(t(1221)!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e[t(785)]=Object[t(784)](r&&r[t(785)],{constructor:{value:e,writable:!0,configurable:!0}}),Object[t(1200)](e,t(785),{writable:!1}),r&&_setPrototypeOf(e,r)}function _wrapNativeSuper(e){var n=_0x3872,i=n(1221)==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(r){var t=n;if(null===r||!_isNativeFunction(r))return r;if(t(1221)!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(r))return i[t(1453)](r);i.set(r,e)}function e(){var e=t;return _construct(r,arguments,_getPrototypeOf(this)[e(2248)])}return e[t(785)]=Object[t(784)](r[t(785)],{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(e,r)})(e)}function _construct(e,r,t){var n,i=_0x3872;return _isNativeReflectConstruct()?Reflect.construct.apply(null,arguments):((n=[null])[i(1158)][i(1988)](n,r),r=new(e.bind[i(1988)](e,n)),t&&_setPrototypeOf(r,t.prototype),r)}function _isNativeReflectConstruct(){var e=_0x3872;try{var r=!Boolean[e(785)][e(1143)][e(1775)](Reflect[e(1862)](Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!r})()}function _isNativeFunction(r){var t=_0x3872;try{return-1!==Function[t(641)].call(r)[t(2215)](t(926))}catch(e){return t(1221)==typeof r}}function _setPrototypeOf(e,r){var t=_0x3872;return(_setPrototypeOf=Object[t(715)]?Object[t(715)][t(1690)]():function(e,r){return e[t(1054)]=r,e})(e,r)}function _getPrototypeOf(e){var t=_0x3872;return(_getPrototypeOf=Object[t(715)]?Object[t(1294)][t(1690)]():function(e){var r=t;return e.__proto__||Object[r(1294)](e)})(e)}function _createForOfIteratorHelper(e,r){var t,n,i,a,o=_0x3872,s=o(1068)!=typeof Symbol&&e[Symbol[o(1288)]]||e[o(819)];if(s)return i=!(n=!0),{s:function(){s=s[o(1775)](e)},n:function(){var e=o,r=s[e(1935)]();return n=r[e(1328)],r},e:function(e){i=!0,t=e},f:function(){var e=o;try{n||null==s[e(2070)]||s[e(2070)]()}finally{if(i)throw t}}};if(Array[o(920)](e)||(s=_unsupportedIterableToArray(e))||r&&e&&o(1393)==typeof e[o(1963)])return s&&(e=s),a=0,{s:r=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r};throw new TypeError(o(1830))}function _unsupportedIterableToArray(e,r){var t,n=_0x3872;if(e)return n(1191)==typeof e?_arrayLikeToArray(e,r):(t={}[n(641)].call(e)[n(2136)](8,-1),n(1521)===t&&e[n(2248)]&&(t=e.constructor[n(1180)]),n(1490)===t||n(2251)===t?Array[n(1806)](e):n(850)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(2156)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var t=_0x3872;(null==r||r>e[t(1963)])&&(r=e[t(1963)]);for(var n=0,i=Array(r);n<r;n++)i[n]=e[n];return i}function _typeof(e){var t=_0x3872;return(_typeof="function"==typeof Symbol&&t(855)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var r=t;return e&&r(1221)==typeof Symbol&&e[r(2248)]===Symbol&&e!==Symbol.prototype?r(855):typeof e})(e)}(()=>{for(var e=_0x3872,r=_0x1f8b();;)try{if(546479==+parseInt(e(1321))*(parseInt(e(1764))/2)+parseInt(e(1232))/3*(-parseInt(e(1732))/4)+parseInt(e(792))/5*(-parseInt(e(1889))/6)+parseInt(e(1978))/7*(parseInt(e(1944))/8)+parseInt(e(1430))/9*(-parseInt(e(1210))/10)+parseInt(e(586))/11+parseInt(e(1149))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var $e=function(r,t){return function(){var e=_0x3872;return t||r((t={exports:{}})[e(946)],t),t[e(946)]}},dr=$e(function(c,e){function r(e,r){return function(){return r||e((r={exports:{}})[_0x3872(946)],r),r.exports}}function i(t,n,i,a){var o=$;if(n&&_typeof(n)==o(1184)||typeof n==o(1221)){var s,r=_createForOfIteratorHelper(m(n));try{for(r.s();!(s=r.n())[o(1328)];)(()=>{var e=o,r=s[e(1203)];O[e(1775)](t,r)||r===i||u(t,r,{get:function(){return n[r]},enumerable:!(a=l(n,r))||a[e(1005)]})})()}catch(e){r.e(e)}finally{r.f()}}return t}function t(e,r,t){var n=$;return t=null!=e?f(y(e)):{},i(!r&&e&&e[n(2154)]?t:u(t,n(1755),{value:e,enumerable:!0}),e)}var n,$=_0x3872,f=Object[$(784)],u=Object[$(1200)],l=Object[$(1224)],m=Object.getOwnPropertyNames,y=Object[$(1294)],O=Object[$(785)][$(981)],k=r(function(e){var r=$,t=(_inherits(a,_wrapNativeSuper(Error)),_createClass(a)),n=(_inherits(i,t),_createClass(i));function i(e){var r=_0x3872;return _classCallCheck(this,i),e=_callSuper(this,i,[1,r(2027),e]),Error.captureStackTrace(_assertThisInitialized(e),e.constructor),e[r(1180)]=e[r(2248)][r(1180)],e}function a(e,r,t){var n=_0x3872;return _classCallCheck(this,a),t=_callSuper(this,a,[t]),Error.captureStackTrace(_assertThisInitialized(t),t[n(2248)]),t[n(1180)]=t[n(2248)][n(1180)],t.code=r,t[n(706)]=e,t.nestedError=void 0,t}e[r(2173)]=t,e[r(802)]=n}),x=r(function(e){var a,n=$,o=k()[n(802)],r=_createClass(function e(r,t){var n=_0x3872;switch(_classCallCheck(this,e),this.description=t||"",this[n(541)]=!1,this[n(1609)]=void 0,this.defaultValue=void 0,this[n(581)]=void 0,this[n(916)]=void 0,r[0]){case"<":this.required=!0,this[n(940)]=r.slice(1,-1);break;case"[":this[n(1527)]=!1,this[n(940)]=r[n(2136)](1,-1);break;default:this[n(1527)]=!0,this[n(940)]=r}3<this[n(940)][n(1963)]&&this[n(940)][n(2136)](-3)===n(1891)&&(this[n(541)]=!0,this._name=this[n(940)][n(2136)](0,-3))},[{key:(a=n)(1180),value:function(){return this._name}},{key:a(511),value:function(e,r){var t=a;return r!==this[t(1322)]&&Array[t(920)](r)?r[t(1176)](e):[e]}},{key:"default",value:function(e,r){var t=a;return this.defaultValue=e,this[t(581)]=r,this}},{key:"argParser",value:function(e){return this[a(1609)]=e,this}},{key:a(1432),value:function(e){var n=a,i=this;return this.argChoices=e[n(2136)](),this[n(1609)]=function(e,r){var t=n;if(i[t(916)][t(466)](e))return i[t(541)]?i[t(511)](e,r):e;throw new o("Allowed choices are ".concat(i.argChoices.join(", "),"."))},this}},{key:a(889),value:function(){return this[a(1527)]=!0,this}},{key:"argOptional",value:function(){return this[a(1527)]=!1,this}}]);e[n(1319)]=r,e[n(531)]=function(e){var r=n,t=e[r(1180)]()+(!0===e[r(541)]?r(1891):"");return e[r(1527)]?"<"+t+">":"["+t+"]"}}),C=r(function(e){var c,r=$,n=x()[r(531)],t=_createClass(function e(){var r=_0x3872;_classCallCheck(this,e),this[r(1763)]=void 0,this[r(892)]=!1,this[r(1196)]=!1},[{key:(c=r)(1089),value:function(e){var r,t,n=c,i=e.commands[n(1236)](function(e){return!e._hidden});return e[n(535)]()&&(t=(r=_slicedToArray(e._helpCommandnameAndArgs[n(1131)](/([^ ]+) *(.*)/),3))[1],r=r[2],(t=e[n(900)](t)[n(891)](!1))[n(2112)](e[n(971)]),r&&t[n(1823)](r),i.push(t)),this[n(892)]&&i[n(1913)](function(e,r){var t=n;return e[t(1180)]()[t(2079)](r.name())}),i}},{key:c(686),value:function(e){var n,i=c,r=e.options[i(1236)](function(e){return!e[i(1046)]}),t=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),a=e[i(1563)]&&!e[i(1185)](e[i(1343)]);return(t||a)&&(t=t?a?e[i(1165)](e[i(1298)],e._helpDescription):e[i(1165)](e[i(1822)],e._helpDescription):e[i(1165)](e[i(1343)],e._helpDescription),r.push(t)),this.sortOptions&&(n=function(e){var r=i;return e[r(1267)]?e[r(1267)][r(2108)](/^-/,""):e[r(1379)].replace(/^--/,"")},r[i(1913)](function(e,r){var t=i;return n(e)[t(2079)](n(r))})),r}},{key:c(2073),value:function(t){var n=c;return t[n(1468)]&&t[n(488)][n(610)](function(e){var r=n;e[r(2112)]=e[r(2112)]||t[r(1468)][e.name()]||""}),t[n(488)][n(1762)](function(e){return e[n(2112)]})?t[n(488)]:[]}},{key:"subcommandTerm",value:function(e){var r=c,t=e[r(488)][r(1383)](function(e){return n(e)})[r(877)](" ");return e[r(940)]+(e[r(1157)][0]?"|"+e[r(1157)][0]:"")+(e[r(1819)].length?" [options]":"")+(t?" "+t:"")}},{key:c(649),value:function(e){return e[c(1895)]}},{key:"argumentTerm",value:function(e){return e.name()}},{key:c(589),value:function(e,n){return n.visibleCommands(e).reduce(function(e,r){var t=_0x3872;return Math.max(e,n[t(2200)](r)[t(1963)])},0)}},{key:c(1672),value:function(e,n){var i=c;return n.visibleOptions(e)[i(804)](function(e,r){var t=i;return Math[t(936)](e,n[t(649)](r)[t(1963)])},0)}},{key:c(766),value:function(e,n){var i=c;return n[i(2073)](e)[i(804)](function(e,r){var t=i;return Math.max(e,n[t(1370)](r)[t(1963)])},0)}},{key:c(1022),value:function(e){for(var r=c,t=e[r(940)],n=(e[r(1157)][0]&&(t=t+"|"+e[r(1157)][0]),""),i=e[r(663)];i;i=i[r(663)])n=i[r(1180)]()+" "+n;return n+t+" "+e[r(2238)]()}},{key:"commandDescription",value:function(e){return e[c(2112)]()}},{key:c(2174),value:function(e){var r=c;return e[r(598)]()||e[r(2112)]()}},{key:c(576),value:function(e){var r=c,t=[];return e[r(916)]&&t.push(r(927)[r(1176)](e[r(916)][r(1383)](function(e){return JSON[r(954)](e)})[r(877)](", "))),void 0!==e[r(1322)]&&(e[r(1527)]||e[r(2160)]||e[r(561)]()&&"boolean"==typeof e[r(1322)])&&t.push(r(1069).concat(e[r(581)]||JSON[r(954)](e[r(1322)]))),void 0!==e.presetArg&&e.optional&&t[r(1158)]("preset: ".concat(JSON[r(954)](e[r(1015)]))),void 0!==e[r(557)]&&t.push(r(675).concat(e.envVar)),0<t.length?"".concat(e[r(2112)]," (")[r(1176)](t.join(", "),")"):e[r(2112)]}},{key:c(1989),value:function(e){var r=c,t=[];return e[r(916)]&&t[r(1158)](r(927).concat(e[r(916)][r(1383)](function(e){return JSON.stringify(e)})[r(877)](", "))),void 0!==e[r(1322)]&&t[r(1158)]("default: "[r(1176)](e[r(581)]||JSON[r(954)](e[r(1322)]))),0<t.length?(t="(".concat(t[r(877)](", "),")"),e[r(2112)]?""[r(1176)](e.description," ")[r(1176)](t):t):e[r(2112)]}},{key:c(1581),value:function(e,n){var i=c,a=n[i(1474)](e,n),o=n[i(1763)]||80;function t(e,r){var t=i;return r?(r=""[t(1176)](e.padEnd(a+2))[t(1176)](r),n[t(1906)](r,o-2,a+2)):e}function r(e){var r=i;return e[r(877)]("\n")[r(2108)](/^/gm," "[r(555)](2))}var s=[i(798)[i(1176)](n[i(1022)](e)),""],u=n[i(924)](e),u=(0<u[i(1963)]&&(s=s[i(1176)]([u,""])),n[i(2073)](e).map(function(e){var r=i;return t(n[r(1370)](e),n[r(1989)](e))})),u=(0<u[i(1963)]&&(s=s[i(1176)](["Arguments:",r(u),""])),n[i(686)](e)[i(1383)](function(e){return t(n[i(649)](e),n.optionDescription(e))})),u=(0<u[i(1963)]&&(s=s[i(1176)]([i(1570),r(u),""])),n[i(1089)](e).map(function(e){var r=i;return t(n[r(2200)](e),n[r(2174)](e))}));return(s=0<u.length?s[i(1176)]([i(1021),r(u),""]):s)[i(877)]("\n")}},{key:c(1474),value:function(e,r){var t=c;return Math.max(r.longestOptionTermLength(e,r),r[t(589)](e,r),r.longestArgumentTermLength(e,r))}},{key:c(1906),value:function(e,r,t){var n,i=c,a=3<arguments[i(1963)]&&void 0!==arguments[3]?arguments[3]:40;return e[i(1131)](/[\n]\s+/)||(r=r-t)<a?e:(a=e[i(2136)](0,t),e=e[i(2136)](t),n=" "[i(555)](t),t=new RegExp(i(2207)+(r-1)+i(1592),"g"),a+(e[i(1131)](t)||[])[i(1383)](function(e,r){var t=i;return"\n"===e[t(2136)](-1)&&(e=e[t(2136)](0,e[t(1963)]-1)),(0<r?n:"")+e[t(1190)]()})[i(877)]("\n"))}}]);e[r(1484)]=t}),E=r(function(e){var i,a,r=$,o=k().InvalidArgumentError,t=_createClass(function e(r,t){var n=_0x3872,t=(_classCallCheck(this,e),this[n(1895)]=r,this[n(2112)]=t||"",this[n(1527)]=r[n(466)]("<"),this.optional=r[n(466)]("["),this.variadic=/\w\.\.\.[>\]]$/[n(2156)](r),this[n(2220)]=!1,s(r));this[n(1267)]=t.shortFlag,this[n(1379)]=t[n(958)],this[n(1257)]=!1,this.long&&(this[n(1257)]=this.long[n(624)](n(808))),this.defaultValue=void 0,this[n(581)]=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this[n(1046)]=!1,this.argChoices=void 0,this[n(2260)]=[],this[n(1509)]=void 0},[{key:(a=_0x3872)(1755),value:function(e,r){var t=a;return this[t(1322)]=e,this[t(581)]=r,this}},{key:a(1612),value:function(e){return this[a(1015)]=e,this}},{key:a(812),value:function(e){var r=a;return this[r(2260)]=this.conflictsWith[r(1176)](e),this}},{key:a(988),value:function(e){var r=a;return this[r(1509)]=Object[r(861)](this.implied||{},e),this}},{key:"env",value:function(e){return this[a(557)]=e,this}},{key:a(1589),value:function(e){return this[a(1609)]=e,this}},{key:a(2270),value:function(){var e=!(0<arguments[a(1963)]&&void 0!==arguments[0])||arguments[0];return this.mandatory=!!e,this}},{key:"hideHelp",value:function(){var e=a,r=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this[e(1046)]=!!r,this}},{key:a(511),value:function(e,r){return r!==this[a(1322)]&&Array.isArray(r)?r.concat(e):[e]}},{key:a(1432),value:function(e){var n=a,i=this;return this[n(916)]=e.slice(),this[n(1609)]=function(e,r){var t=n;if(i[t(916)][t(466)](e))return i[t(541)]?i[t(511)](e,r):e;throw new o(t(1541)[t(1176)](i[t(916)][t(877)](", "),"."))},this}},{key:"name",value:function(){var e=a;return this[e(1379)]?this[e(1379)][e(2108)](/^--/,""):this.short[e(2108)](/^-/,"")}},{key:a(1808),value:function(){var n,e=a;return this[e(1180)]()[e(2108)](/^no-/,"")[(n=_0x3872)(516)]("-")[n(804)](function(e,r){var t=n;return e+r[0][t(1169)]()+r[t(2136)](1)})}},{key:"is",value:function(e){var r=a;return this.short===e||this[r(1379)]===e}},{key:a(561),value:function(){var e=a;return!this.required&&!this[e(2160)]&&!this[e(1257)]}}]),n=_createClass(function e(r){var n=_0x3872,i=this;_classCallCheck(this,e),this.positiveOptions=new Map,this.negativeOptions=new Map,this[n(1642)]=new Set,r.forEach(function(e){var r=n;e[r(1257)]?i[r(1575)][r(1596)](e.attributeName(),e):i[r(591)].set(e[r(1808)](),e)}),this.negativeOptions[n(610)](function(e,r){var t=n;i[t(591)][t(625)](r)&&i[t(1642)][t(614)](r)})},[{key:(i=_0x3872)(1669),value:function(e,r){var t=i,n=r[t(1808)]();return!this[t(1642)][t(625)](n)||(n=void 0!==(n=this[t(1575)][t(1453)](n)[t(1015)])&&n,r[t(1257)]===(n===e))}}]);function s(e){var r,t=_0x3872,e=e[t(516)](/[ |,]+/);return 1<e[t(1963)]&&!/^[[<]/[t(2156)](e[1])&&(r=e[t(1804)]()),e=e.shift(),!r&&/^-[^-]$/[t(2156)](e)&&(r=e,e=void 0),{shortFlag:r,longFlag:e}}e[r(1965)]=t,e[r(1523)]=s,e[r(847)]=n}),B=r(function(e){e[$(1682)]=function(i,e){var a=_0x3872;if(!e||0===e.length)return"";e=Array[a(1806)](new Set(e));var r=i[a(624)]("--"),o=(r&&(i=i.slice(2),e=e[a(1383)](function(e){return e[a(2136)](2)})),[]),s=3;return e[a(610)](function(e){var r,t,n=a;e[n(1963)]<=1||(r=((e,r)=>{var t=_0x3872;if(3<Math.abs(e.length-r[t(1963)]))return Math.max(e[t(1963)],r[t(1963)]);for(var n=[],i=0;i<=e[t(1963)];i++)n[i]=[i];for(var a=0;a<=r.length;a++)n[0][a]=a;for(var o=1;o<=r[t(1963)];o++)for(var s=1;s<=e[t(1963)];s++){var u=1,u=e[s-1]===r[o-1]?0:1;n[s][o]=Math[t(1722)](n[s-1][o]+1,n[s][o-1]+1,n[s-1][o-1]+u),1<s&&1<o&&e[s-1]===r[o-2]&&e[s-2]===r[o-1]&&(n[s][o]=Math.min(n[s][o],n[s-2][o-2]+1))}return n[e.length][r[t(1963)]]})(i,e),.4<((t=Math[n(936)](i[n(1963)],e[n(1963)]))-r)/t&&(r<s?(s=r,o=[e]):r===s&&o[n(1158)](e)))}),o[a(1913)](function(e,r){return e[a(2079)](r)}),1<(o=r?o[a(1383)](function(e){return"--"[a(1176)](e)}):o)[a(1963)]?a(1684).concat(o[a(877)](", "),"?)"):1===o[a(1963)]?a(2241)[a(1176)](o[0],"?)"):""}}),H=r(function(e){var t,v,i=$,r=require("events").EventEmitter,h=require(i(2106)),l=require(i(1231)),d=require("fs"),p=require(i(1970)),n=x(),a=n.Argument,o=n[i(531)],_=k()[i(2173)],s=C()[i(1484)],n=E(),u=n[i(1965)],c=n[i(1523)],f=n[i(847)],g=B()[i(1682)],n=(v=i,_inherits(m,r),_createClass(m,[{key:v(1279),value:function(e){var r=v;return this[r(1285)]=e._outputConfiguration,this[r(1563)]=e[r(1563)],this[r(1298)]=e[r(1298)],this[r(807)]=e[r(807)],this._helpShortFlag=e[r(1822)],this._helpLongFlag=e[r(1343)],this[r(2134)]=e[r(2134)],this._helpCommandnameAndArgs=e[r(571)],this[r(971)]=e[r(971)],this[r(1827)]=e[r(1827)],this[r(1780)]=e[r(1780)],this[r(941)]=e[r(941)],this[r(682)]=e[r(682)],this[r(1877)]=e[r(1877)],this._enablePositionalOptions=e[r(2128)],this._showHelpAfterError=e[r(1070)],this._showSuggestionAfterError=e[r(1198)],this}},{key:v(1414),value:function(e,r,t){var n=v,t=(_typeof(r)==n(1184)&&null!==r&&(t=r,r=null),t||{}),e=_slicedToArray(e[n(1131)](/([^ ]+) *(.*)/),3),i=e[1],e=e[2],i=this.createCommand(i);return r&&(i[n(2112)](r),i[n(655)]=!0),t[n(2196)]&&(this[n(809)]=i._name),i[n(1287)]=!(!t.noHelp&&!t.hidden),i[n(629)]=t[n(525)]||null,e&&i[n(1823)](e),this[n(1371)][n(1158)](i),i[n(663)]=this,i[n(1279)](this),r?this:i}},{key:v(900),value:function(e){return new m(e)}},{key:v(949),value:function(){var e=v;return Object.assign(new s,this[e(611)]())}},{key:"configureHelp",value:function(e){var r=v;return void 0===e?this[r(1827)]:(this[r(1827)]=e,this)}},{key:"configureOutput",value:function(e){return void 0===e?this[v(1285)]:(Object.assign(this._outputConfiguration,e),this)}},{key:v(934),value:function(){var e=v,r=!(0<arguments[e(1963)]&&void 0!==arguments[0])||arguments[0];return"string"!=typeof r&&(r=!!r),this[e(1070)]=r,this}},{key:v(2288),value:function(){var e=v,r=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this[e(1198)]=!!r,this}},{key:v(2232),value:function(e,r){var t=v;if(e._name)return(r=r||{})[t(2196)]&&(this[t(809)]=e[t(940)]),(r.noHelp||r[t(1046)])&&(e[t(1287)]=!0),this.commands[t(1158)](e),e[t(663)]=this;throw new Error(t(780))}},{key:v(1040),value:function(e,r){return new a(e,r)}},{key:v(1892),value:function(e,r,t,n){var i=v,e=this[i(1040)](e,r);return typeof t==i(1221)?e[i(1755)](n)[i(1589)](t):e[i(1755)](t),this[i(520)](e),this}},{key:"arguments",value:function(e){var r=v,t=this;return e[r(516)](/ +/).forEach(function(e){t[r(1892)](e)}),this}},{key:v(520),value:function(e){var r=v,t=this[r(488)][r(2136)](-1)[0];if(t&&t.variadic)throw new Error("only the last argument can be variadic '".concat(t[r(1180)](),"'"));if(e[r(1527)]&&void 0!==e[r(1322)]&&void 0===e[r(1609)])throw new Error(r(2211)[r(1176)](e.name(),"'"));return this._args[r(1158)](e),this}},{key:"addHelpCommand",value:function(e,r){var t=v;return!1===e?this[t(2264)]=!1:(this[t(2264)]=!0,typeof e==t(1191)&&(this[t(2134)]=e[t(516)](" ")[0],this[t(571)]=e),this[t(971)]=r||this[t(971)]),this}},{key:v(535),value:function(){var e=v;return void 0===this[e(2264)]?this[e(1371)][e(1963)]&&!this._actionHandler&&!this._findCommand("help"):this[e(2264)]}},{key:v(1081),value:function(e,r){var t=v,n=["preSubcommand",t(1416),t(1674)];if(n[t(466)](e))return this[t(2182)][e]?this[t(2182)][e].push(r):this[t(2182)][e]=[r],this;throw new Error(t(1261)[t(1176)](e,t(1985))[t(1176)](n[t(877)](t(1624)),"'"))}},{key:v(1059),value:function(e){var t=v;return this[t(1780)]=e||function(e){var r=t;if(e.code!==r(1673))throw e},this}},{key:"_exit",value:function(e,r,t){var n=v;this[n(1780)]&&this[n(1780)](new _(e,r,t)),p[n(2293)](e)}},{key:"action",value:function(n){var i=this;return this[v(2141)]=function(e){var r=_0x3872,t=i[r(488)][r(1963)],e=e[r(2136)](0,t);return i._storeOptionsAsProperties?e[t]=i:e[t]=i[r(1982)](),e.push(i),n[r(1988)](i,e)},this}},{key:v(1165),value:function(e,r){return new u(e,r)}},{key:"addOption",value:function(a){function n(e,r,t){var n=o,i=(null==e&&void 0!==a.presetArg&&(e=a[n(1015)]),s[n(1489)](u));if(null!==e&&a[n(1609)])try{e=a[n(1609)](e,i)}catch(e){throw"commander.invalidArgument"===e[n(1435)]&&(r=""[n(1176)](r," ")[n(1176)](e[n(2099)]),s[n(1803)](r,{exitCode:e.exitCode,code:e[n(1435)]})),e}else null!==e&&a.variadic&&(e=a._concatValue(e,i));null==e&&(e=!a.negate&&(!(!a[n(561)]()&&!a.optional)||"")),s.setOptionValueWithSource(u,e,t)}var e,o=v,s=this,r=a[o(1180)](),u=a[o(1808)]();a[o(1257)]?(e=a[o(1379)][o(2108)](/^--no-/,"--"),this[o(1185)](e)||this.setOptionValueWithSource(u,void 0===a[o(1322)]||a[o(1322)],o(1755))):void 0!==a[o(1322)]&&this[o(1406)](u,a.defaultValue,"default"),this[o(1819)].push(a);return this.on(o(1103)+r,function(e){var r=o,t=r(1271).concat(a[r(1895)],r(907))[r(1176)](e,r(1949));n(e,t,r(1560))}),a[o(557)]&&this.on(o(1908)+r,function(e){var r=o,t=r(1271)[r(1176)](a.flags,r(1063))[r(1176)](e,r(1654))[r(1176)](a[r(557)],r(1949));n(e,t,r(1374))}),this}},{key:v(619),value:function(e,r,t,n,i){var a=v;if(_typeof(r)==a(1184)&&r instanceof u)throw new Error(a(2274));var o,r=this[a(1165)](r,t);return r.makeOptionMandatory(!!e[a(2220)]),typeof n==a(1221)?r.default(i)[a(1589)](n):n instanceof RegExp?(o=n,n=function(e,r){e=o[a(1998)](e);return e?e[0]:r},r[a(1755)](i)[a(1589)](n)):r[a(1755)](n),this.addOption(r)}},{key:v(1851),value:function(e,r,t,n){return this[v(619)]({},e,r,t,n)}},{key:v(2227),value:function(e,r,t,n){return this._optionEx({mandatory:!0},e,r,t,n)}},{key:v(1657),value:function(){var e=!(0<arguments[v(1963)]&&void 0!==arguments[0])||arguments[0];return this._combineFlagAndOptionalValue=!!e,this}},{key:"allowUnknownOption",value:function(){var e=v,r=!(0<arguments[e(1963)]&&void 0!==arguments[0])||arguments[0];return this[e(1979)]=!!r,this}},{key:v(1688),value:function(){var e=v,r=!(0<arguments[e(1963)]&&void 0!==arguments[0])||arguments[0];return this[e(1877)]=!!r,this}},{key:v(987),value:function(){var e=!(0<arguments[v(1963)]&&void 0!==arguments[0])||arguments[0];return this._enablePositionalOptions=!!e,this}},{key:v(538),value:function(){var e=v,r=!(0<arguments[e(1963)]&&void 0!==arguments[0])||arguments[0];if(this[e(1140)]=!!r,this[e(663)]&&r&&!this[e(663)][e(2128)])throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}},{key:v(2100),value:function(){var e=v,r=!(0<arguments[e(1963)]&&void 0!==arguments[0])||arguments[0];if(this[e(941)]=!!r,this.options.length)throw new Error(e(1586));return this}},{key:"getOptionValue",value:function(e){return(this._storeOptionsAsProperties?this:this._optionValues)[e]}},{key:v(1325),value:function(e,r){return this[v(941)]?this[e]=r:this._optionValues[e]=r,this}},{key:v(1406),value:function(e,r,t){return this[v(1325)](e,r),this._optionValueSources[e]=t,this}},{key:"getOptionValueSource",value:function(e){return this[v(2103)][e]}},{key:v(1776),value:function(e,r){var t,n=v;if(void 0!==e&&!Array[n(920)](e))throw new Error(n(1009));switch(r=r||{},void 0===e&&(e=p.argv,p[n(978)])&&p.versions[n(1871)]&&(r[n(1806)]=n(1871)),this[n(718)]=e[n(2136)](),r[n(1806)]){case void 0:case"node":this[n(1003)]=e[1],t=e.slice(2);break;case"electron":t=p[n(707)]?(this._scriptPath=e[1],e[n(2136)](2)):e.slice(1);break;case n(741):t=e[n(2136)](0);break;default:throw new Error(n(1771)[n(1176)](r[n(1806)],"' }"))}return!this._name&&this[n(1003)]&&this[n(728)](this[n(1003)]),this[n(940)]=this._name||n(1373),t}},{key:"parse",value:function(e,r){var t=v,e=this[t(1776)](e,r);return this[t(2279)]([],e),this}},{key:v(733),value:(t=_asyncToGenerator(_regenerator().m(function e(t,n){var i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return i=this[r(1776)](t,n),e.n=1,this[r(2279)]([],i);case 1:return e.a(2,this)}},e,this)})),function(e,r){return t[_0x3872(1988)](this,arguments)})},{key:v(2034),value:function(n,e){var i=v,a=(e=e.slice(),[i(1292),i(1750),i(485),i(999),i(2147)]);function r(e,r){var t=i,n=l.resolve(e,r);return d[t(465)](n)?n:!a[t(466)](l.extname(r))&&(e=a[t(1762)](function(e){var r=t;return d[r(465)](""[r(1176)](n)[r(1176)](e))}))?""[t(1176)](n)[t(1176)](e):void 0}this[i(885)](),this[i(1504)]();var t,o,s,u=n[i(629)]||""[i(1176)](this[i(940)],"-").concat(n[i(940)]),c=this[i(2190)]||"";if(this[i(1003)]){try{t=d[i(2289)](this[i(1003)])}catch(e){t=this[i(1003)]}c=l.resolve(l[i(853)](t),c)}c&&((t=r(c,u))||n._executableFile||!this[i(1003)]||(o=l[i(1206)](this[i(1003)],l.extname(this[i(1003)])))!==this._name&&(t=r(c,""[i(1176)](o,"-")[i(1176)](n[i(940)]))),u=t||u),o=a.includes(l[i(2053)](u)),(s="win32"!==p[i(1635)]?o?(e.unshift(u),e=b(p.execArgv)[i(1176)](e),h[i(1514)](p.argv[0],e,{stdio:i(2213)})):h[i(1514)](u,e,{stdio:"inherit"}):(e[i(1999)](u),e=b(p[i(2144)])[i(1176)](e),h[i(1514)](p[i(697)],e,{stdio:i(2213)}))).killed||[i(495),i(953),i(2285),"SIGINT",i(744)][i(610)](function(r){p.on(r,function(){var e=_0x3872;!1===s[e(1836)]&&null===s.exitCode&&s[e(2090)](r)})});var f=this._exitCallback;f?s.on(i(2228),function(){var e=i;f(new _(p.exitCode||0,e(1673),e(1715)))}):s.on("close",p[i(2293)][i(1690)](p)),s.on(i(1803),function(e){var r,t=i;if(e[t(1435)]===t(803))throw r=c?t(762)[t(1176)](c,"'"):"no directory for search for local subcommand, use .executableDir() to supply a custom directory",r="'"[t(1176)](u,"' does not exist\n - if '")[t(1176)](n[t(940)],t(1031))[t(1176)](r),new Error(r);if("EACCES"===e.code)throw new Error("'"[t(1176)](u,"' not executable"));f?((r=new _(1,t(1673),t(1389)))[t(1831)]=e,f(r)):p[t(2293)](1)}),this[i(582)]=s}},{key:v(1358),value:function(e,r,t){var n=v,i=this,a=this[n(1942)](e);return a||this[n(573)]({error:!0}),e=this[n(1608)](void 0,a,n(1061)),this[n(1434)](e,function(){var e=n;if(!a._executableHandler)return a[e(2279)](r,t);i[e(2034)](a,r[e(1176)](t))})}},{key:v(1225),value:function(){var n=v,i=this;this[n(488)][n(610)](function(e,r){var t=n;e[t(1527)]&&null==i[t(1528)][r]&&i[t(2292)](e[t(1180)]())}),!(0<this._args[n(1963)]&&this[n(488)][this._args[n(1963)]-1][n(541)])&&this[n(1528)].length>this[n(488)][n(1963)]&&this[n(1878)](this[n(1528)])}},{key:v(544),value:function(){function i(r,t,n){var i=_0x3872,e=t;if(null!==t&&r.parseArg)try{e=r[i(1609)](t,n)}catch(e){throw e[i(1435)]===i(2027)&&(n=i(498)[i(1176)](t,i(1269))[i(1176)](r[i(1180)](),i(1423)).concat(e[i(2099)]),o[i(1803)](n,{exitCode:e[i(706)],code:e[i(1435)]})),e}return e}var a=v,o=this,s=(this._checkNumberOfArguments(),[]);this[a(488)].forEach(function(t,e){var r=a,n=t[r(1322)];t[r(541)]?e<o[r(1528)].length?(n=o[r(1528)][r(2136)](e),t.parseArg&&(n=n[r(804)](function(e,r){return i(t,r,e)},t[r(1322)]))):void 0===n&&(n=[]):e<o[r(1528)][r(1963)]&&(n=o[r(1528)][e],t[r(1609)])&&(n=i(t,n,t[r(1322)])),s[e]=n}),this[a(801)]=s}},{key:v(1434),value:function(e,r){var t=v;return e&&e.then&&typeof e[t(1142)]==t(1221)?e.then(function(){return r()}):r()}},{key:v(2244),value:function(e,n){var i=v,a=this,o=e,s=[];return w(this).reverse()[i(1236)](function(e){return void 0!==e[i(2182)][n]}).forEach(function(r){var t=i;r[t(2182)][n].forEach(function(e){s[t(1158)]({hookedCommand:r,callback:e})})}),"postAction"===n&&s[i(1901)](),s.forEach(function(r){var t=i;o=a[t(1434)](o,function(){var e=t;return r[e(2269)](r[e(1073)],a)})}),o}},{key:"_chainOrCallSubCommandHook",value:function(e,r,t){var n=v,i=this,a=e;return void 0!==this[n(2182)][t]&&this[n(2182)][t][n(610)](function(e){a=i[n(1434)](a,function(){return e(i,r)})}),a}},{key:v(2279),value:function(e,r){var t=v,n=this,i=this[t(2206)](r);if(this[t(1857)](),this[t(1077)](),e=e[t(1176)](i[t(2184)]),r=i[t(2225)],this[t(1528)]=e[t(1176)](r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e[t(2136)](1),r);if(this._hasImplicitHelpCommand()&&e[0]===this[t(2134)])return 1===e[t(1963)]&&this[t(573)](),this[t(1358)](e[1],[],[this[t(1343)]]);if(this[t(809)])return y(this,r),this[t(1358)](this[t(809)],e,r);!this.commands[t(1963)]||0!==this[t(1528)][t(1963)]||this[t(2141)]||this[t(809)]||this.help({error:!0}),y(this,i[t(2225)]),this[t(885)](),this._checkForConflictingOptions();function a(){var e=t;0<i[e(2225)][e(1963)]&&n[e(1734)](i[e(2225)][0])}var o,s="command:"[t(1176)](this[t(1180)]());if(this[t(2141)])return a(),this[t(544)](),o=this._chainOrCallHooks(o,t(1416)),o=this[t(1434)](o,function(){var e=t;return n[e(2141)](n[e(801)])}),this.parent&&(o=this._chainOrCall(o,function(){n[t(663)].emit(s,e,r)})),o=this._chainOrCallHooks(o,t(1674));if(this[t(663)]&&this[t(663)][t(1966)](s))a(),this[t(544)](),this[t(663)][t(1375)](s,e,r);else if(e.length){if(this[t(1942)]("*"))return this[t(1358)]("*",e,r);this[t(1966)](t(1627))?this.emit(t(1627),e,r):this[t(1371)][t(1963)]?this.unknownCommand():(a(),this._processArguments())}else this.commands[t(1963)]?(a(),this.help({error:!0})):(a(),this._processArguments())}},{key:"_findCommand",value:function(t){var n=v;if(t)return this[n(1371)].find(function(e){var r=n;return e._name===t||e[r(1157)].includes(t)})}},{key:v(1185),value:function(r){var e=v;return this[e(1819)][e(1762)](function(e){return e.is(r)})}},{key:v(885),value:function(){for(var e=v,r=this;r;r=r[e(663)])(t=>{var n=_0x3872;t[n(1819)].forEach(function(e){var r=n;e.mandatory&&void 0===t.getOptionValue(e[r(1808)]())&&t[r(1969)](e)})})(r)}},{key:"_checkForConflictingLocalOptions",value:function(){var n=v,i=this,a=this[n(1819)].filter(function(e){var r=n,e=e[r(1808)]();return void 0!==i[r(1489)](e)&&"default"!==i[r(592)](e)});a.filter(function(e){var r=n;return 0<e[r(2260)][r(1963)]})[n(610)](function(r){var t=n,e=a[t(1762)](function(e){return r[t(2260)].includes(e.attributeName())});e&&i[t(2029)](r,e)})}},{key:v(1504),value:function(){for(var e=v,r=this;r;r=r[e(663)])r[e(1975)]()}},{key:v(2206),value:function(e){var r=v,t=[],n=[],i=t,a=e.slice();function o(e){return 1<e[_0x3872(1963)]&&"-"===e[0]}for(var s=null;a.length;){var u=a[r(1804)]();if("--"===u){i===n&&i[r(1158)](u),(f=i).push[r(1988)](f,_toConsumableArray(a));break}if(s&&!o(u))this[r(1375)]("option:".concat(s[r(1180)]()),u);else{if(s=null,o(u)){var c,f=this[r(1185)](u);if(f){f[r(1527)]?(void 0===(c=a[r(1804)]())&&this[r(1713)](f),this[r(1375)](r(1103)[r(1176)](f[r(1180)]()),c)):f[r(2160)]?(c=null,0<a[r(1963)]&&!o(a[0])&&(c=a[r(1804)]()),this[r(1375)]("option:"[r(1176)](f.name()),c)):this[r(1375)](r(1103)[r(1176)](f.name())),s=f[r(541)]?f:null;continue}}if(2<u[r(1963)]&&"-"===u[0]&&"-"!==u[1]){var h=this[r(1185)]("-"[r(1176)](u[1]));if(h){h[r(1527)]||h.optional&&this._combineFlagAndOptionalValue?this[r(1375)](r(1103)[r(1176)](h[r(1180)]()),u[r(2136)](2)):(this[r(1375)](r(1103).concat(h[r(1180)]())),a[r(1999)]("-".concat(u[r(2136)](2))));continue}}if(/^--[^=]+=/[r(2156)](u)){var h=u[r(2215)]("="),l=this[r(1185)](u[r(2136)](0,h));if(l&&(l[r(1527)]||l.optional)){this.emit(r(1103).concat(l[r(1180)]()),u[r(2136)](h+1));continue}}if(o(u)&&(i=n),(this[r(2128)]||this[r(1140)])&&0===t[r(1963)]&&0===n[r(1963)]){if(this._findCommand(u)){t.push(u),0<a[r(1963)]&&n[r(1158)][r(1988)](n,_toConsumableArray(a));break}if(u===this[r(2134)]&&this[r(535)]()){t[r(1158)](u),0<a[r(1963)]&&t[r(1158)].apply(t,_toConsumableArray(a));break}if(this[r(809)]){n[r(1158)](u),0<a[r(1963)]&&n[r(1158)][r(1988)](n,_toConsumableArray(a));break}}if(this[r(1140)]){i.push(u),0<a.length&&(l=i)[r(1158)][r(1988)](l,_toConsumableArray(a));break}i[r(1158)](u)}}return{operands:t,unknown:n}}},{key:v(1982),value:function(){var e=v;if(this[e(941)]){for(var r={},t=this.options[e(1963)],n=0;n<t;n++){var i=this[e(1819)][n].attributeName();r[i]=i===this[e(1496)]?this[e(1739)]:this[i]}return r}return this[e(1814)]}},{key:v(1067),value:function(){return w(this).reduce(function(e,r){var t=_0x3872;return Object.assign(e,r[t(1982)]())},{})}},{key:"error",value:function(e,r){var t=v,r=(this[t(1285)][t(2081)](""[t(1176)](e,"\n"),this._outputConfiguration.writeErr),typeof this[t(1070)]==t(1191)?this._outputConfiguration[t(1533)](""[t(1176)](this[t(1070)],"\n")):this[t(1070)]&&(this[t(1285)][t(1533)]("\n"),this.outputHelp({error:!0})),r||{}),n=r[t(706)]||1,r=r[t(1435)]||t(667);this[t(1825)](n,r,e)}},{key:v(1857),value:function(){var n=v,i=this;this.options[n(610)](function(e){var r,t=n;e.envVar&&e[t(557)]in p[t(1374)]&&(r=e[t(1808)](),void 0!==i[t(1489)](r)&&!["default",t(2192),t(1374)][t(466)](i[t(592)](r))||(e.required||e.optional?i[t(1375)](t(1908).concat(e[t(1180)]()),p[t(1374)][e[t(557)]]):i.emit(t(1908)[t(1176)](e[t(1180)]()))))})}},{key:v(1077),value:function(){function i(e){var r=a;return void 0!==o[r(1489)](e)&&![r(1755),r(1509)][r(466)](o.getOptionValueSource(e))}var a=v,o=this,t=new f(this[a(1819)]);this[a(1819)][a(1236)](function(e){var r=a;return void 0!==e.implied&&i(e[r(1808)]())&&t[r(1669)](o[r(1489)](e[r(1808)]()),e)})[a(610)](function(t){var n=a;Object[n(1104)](t[n(1509)]).filter(function(e){return!i(e)})[n(610)](function(e){var r=n;o[r(1406)](e,t[r(1509)][e],r(1509))})})}},{key:"missingArgument",value:function(e){var r=v,e=r(1488)[r(1176)](e,"'");this[r(1803)](e,{code:r(1365)})}},{key:v(1713),value:function(e){var r=v,e="error: option '"[r(1176)](e[r(1895)],r(2276));this[r(1803)](e,{code:r(1178)})}},{key:v(1969),value:function(e){var r=v,e=r(740)[r(1176)](e[r(1895)],r(1168));this.error(e,{code:"commander.missingMandatoryOptionValue"})}},{key:v(2029),value:function(e,r){function t(e){var r=_0x3872,t=(e=i(e))[r(1808)]();return o[r(592)](t)===r(1374)?"environment variable '"[r(1176)](e[r(557)],"'"):r(1852)[r(1176)](e[r(1895)],"'")}var n=v,o=this,i=function(e){var t=_0x3872,n=e[t(1808)](),r=o[t(1489)](n),i=o.options[t(1762)](function(e){var r=t;return e[r(1257)]&&n===e[r(1808)]()}),a=o[t(1819)].find(function(e){var r=t;return!e[r(1257)]&&n===e[r(1808)]()});return i&&(void 0===i.presetArg&&!1===r||void 0!==i[t(1015)]&&r===i[t(1015)])?i:a||e},e=n(636)[n(1176)](t(e),n(1024)).concat(t(r));this[n(1803)](e,{code:n(948)})}},{key:v(1734),value:function(e){var r=v;if(!this[r(1979)]){var t="";if(e[r(624)]("--")&&this._showSuggestionAfterError){var n=[],i=this;do{var a=i.createHelp()[r(686)](i)[r(1236)](function(e){return e[r(1379)]})[r(1383)](function(e){return e.long}),n=n[r(1176)](a),i=i[r(663)]}while(i&&!i._enablePositionalOptions);t=g(e,n)}e=r(2115).concat(e,"'")[r(1176)](t);this[r(1803)](e,{code:r(1033)})}}},{key:v(1878),value:function(e){var r,t,n=v;this[n(1877)]||(r=1===(t=this[n(488)][n(1963)])?"":"s",t=n(1996)[n(1176)](this[n(663)]?n(881)[n(1176)](this[n(1180)](),"'"):"",n(1945))[n(1176)](t," argument")[n(1176)](r,n(1772))[n(1176)](e[n(1963)],"."),this[n(1803)](t,{code:n(1552)}))}},{key:v(1832),value:function(){var t,n=v,e=this[n(1528)][0],r="",e=(this[n(1198)]&&(t=[],this[n(949)]()[n(1089)](this).forEach(function(e){var r=n;t[r(1158)](e.name()),e[r(1928)]()&&t[r(1158)](e[r(1928)]())}),r=g(e,t)),"error: unknown command '"[n(1176)](e,"'")[n(1176)](r));this[n(1803)](e,{code:n(1993)})}},{key:"version",value:function(r,e,t){var n=v,i=this;if(void 0===r)return this._version;this[n(1739)]=r,e=e||n(1478),t=t||n(1141);e=this[n(1165)](e,t);return this._versionOptionName=e.attributeName(),this[n(1819)][n(1158)](e),this.on(n(1103)+e[n(1180)](),function(){var e=n;i[e(1285)][e(2275)](""[e(1176)](r,"\n")),i[e(1825)](0,e(2263),r)}),this}},{key:v(2112),value:function(e,r){var t=v;return void 0===e&&void 0===r?this[t(1486)]:(this[t(1486)]=e,r&&(this._argsDescription=r),this)}},{key:v(598),value:function(e){var r=v;return void 0===e?this._summary:(this[r(1761)]=e,this)}},{key:v(1928),value:function(e){var r=v;if(void 0===e)return this._aliases[0];var t=this;if(e===(t=0!==this.commands.length&&this[r(1371)][this[r(1371)].length-1][r(655)]?this[r(1371)][this[r(1371)][r(1963)]-1]:t)[r(940)])throw new Error("Command alias can't be the same as its name");return t[r(1157)][r(1158)](e),this}},{key:v(878),value:function(e){var r=v,t=this;return void 0===e?this[r(1157)]:(e[r(610)](function(e){return t[r(1928)](e)}),this)}},{key:v(2238),value:function(e){var r,t=v;return void 0===e?this[t(1251)]?this[t(1251)]:(r=this[t(488)][t(1383)](function(e){return o(e)}),[][t(1176)](this[t(1819)][t(1963)]||this[t(1563)]?t(1569):[],this[t(1371)][t(1963)]?t(1865):[],this[t(488)][t(1963)]?r:[])[t(877)](" ")):(this[t(1251)]=e,this)}},{key:v(1180),value:function(e){var r=v;return void 0===e?this._name:(this[r(940)]=e,this)}},{key:v(728),value:function(e){var r=v;return this[r(940)]=l.basename(e,l[r(2053)](e)),this}},{key:v(1082),value:function(e){var r=v;return void 0===e?this._executableDir:(this[r(2190)]=e,this)}},{key:"helpInformation",value:function(e){var r=v,t=this[r(949)]();return void 0===t.helpWidth&&(t[r(1763)]=e&&e[r(1803)]?this[r(1285)].getErrHelpWidth():this._outputConfiguration[r(1384)]()),t[r(1581)](this,t)}},{key:"_getHelpContext",value:function(e){var t=v,n=this,r={error:!!(e=e||{})[t(1803)]},i=r[t(1803)]?function(e){var r=t;return n[r(1285)][r(1533)](e)}:function(e){return n[t(1285)].writeOut(e)};return r[t(1282)]=e[t(1282)]||i,r.command=this,r}},{key:"outputHelp",value:function(e){var r,t=v,n=(typeof e==t(1221)&&(r=e,e=void 0),this[t(1153)](e)),e=(w(this)[t(1901)]()[t(610)](function(e){return e[t(1375)]("beforeAllHelp",n)}),this[t(1375)](t(1538),n),this[t(1195)](n));if(r&&"string"!=typeof(e=r(e))&&!Buffer[t(1320)](e))throw new Error(t(1093));n[t(1282)](e),this[t(1375)](this[t(1343)]),this[t(1375)](t(622),n),w(this)[t(610)](function(e){var r=t;return e[r(1375)](r(1907),n)})}},{key:v(891),value:function(e,r){var t=v;return typeof e==t(518)?this[t(1563)]=e:(this[t(1298)]=e||this._helpFlags,this[t(807)]=r||this[t(807)],e=c(this._helpFlags),this[t(1822)]=e[t(1238)],this[t(1343)]=e[t(958)]),this}},{key:v(573),value:function(e){var r=v,t=(this[r(1128)](e),p[r(706)]||0);0===t&&e&&typeof e!=r(1221)&&e[r(1803)]&&(t=1),this[r(1825)](t,r(1568),r(1637))}},{key:v(2092),value:function(e,n){var i=v,r=[i(1520),"before",i(1010),"afterAll"];if(r[i(466)](e))return e=""[i(1176)](e,"Help"),this.on(e,function(e){var r=i,t=typeof n==r(1221)?n({error:e.error,command:e.command}):n;t&&e[r(1282)]("".concat(t,"\n"))}),this;throw new Error(i(969).concat(r[i(877)](i(1624)),"'"))}}]));function m(e){var r,t=_0x3872;return _classCallCheck(this,m),(r=_callSuper(this,m)).commands=[],r.options=[],r[t(663)]=null,r[t(1979)]=!1,r[t(1877)]=!0,r[t(488)]=[],r[t(1528)]=[],r[t(718)]=[],r[t(801)]=[],r[t(1003)]=null,r[t(940)]=e||"",r._optionValues={},r[t(2103)]={},r[t(941)]=!1,r[t(2141)]=null,r._executableHandler=!1,r[t(629)]=null,r._executableDir=null,r[t(809)]=null,r._exitCallback=null,r._aliases=[],r[t(682)]=!0,r[t(1486)]="",r[t(1761)]="",r[t(1468)]=void 0,r._enablePositionalOptions=!1,r._passThroughOptions=!1,r[t(2182)]={},r[t(1070)]=!1,r[t(1198)]=!0,r[t(1285)]={writeOut:function(e){var r=t;return p[r(929)][r(1282)](e)},writeErr:function(e){return p[t(1801)].write(e)},getOutHelpWidth:function(){var e=t;return p[e(929)][e(2060)]?p[e(929)][e(1545)]:void 0},getErrHelpWidth:function(){var e=t;return p.stderr[e(2060)]?p[e(1801)][e(1545)]:void 0},outputError:function(e,r){return r(e)}},r[t(1287)]=!1,r._hasHelpOption=!0,r[t(1298)]=t(913),r._helpDescription="display help for command",r[t(1822)]="-h",r[t(1343)]=t(577),r[t(2264)]=void 0,r._helpCommandName=t(573),r._helpCommandnameAndArgs=t(1939),r[t(971)]=t(1537),r._helpConfiguration={},r}function y(r,e){var t=i;r[t(1563)]&&e[t(1762)](function(e){return e===r._helpLongFlag||e===r._helpShortFlag})&&(r[t(1128)](),r[t(1825)](0,t(1968),t(1637)))}function b(e){return e.map(function(e){var r,t,n,i,a=_0x3872;return e[a(624)](a(1643))&&(t=a(2247),n=a(601),null!==(i=e.match(/^(--inspect(-brk)?)$/))?r=i[1]:null!==(i=e[a(1131)](/^(--inspect(-brk|-port)?)=([^:]+)$/))?(r=i[1],/^\d+$/[a(2156)](i[3])?n=i[3]:t=i[3]):null!==(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(r=i[1],t=i[3],n=i[4]),r)&&"0"!==n?""[a(1176)](r,"=")[a(1176)](t,":")[a(1176)](parseInt(n)+1):e})}function w(e){for(var r=i,t=[],n=e;n;n=n[r(663)])t.push(n);return t}e.Command=n}),M=r(function(e,r){var t=$,n=x()[t(1319)],i=H()[t(1958)],a=k(),o=a[t(2173)],a=a[t(802)],s=C().Help,u=E().Option;((e=r.exports=new i)[t(1373)]=e)[t(1319)]=n,e[t(1958)]=i,e[t(2173)]=o,e[t(1484)]=s,e.InvalidArgumentError=a,e[t(2013)]=a,e[t(1965)]=u}),P=r(function(e,r){var u=$;"u"<(typeof process===u(1068)?"undefined":_typeof(process))||!process[u(654)]||0===process.version[u(2215)]("v0.")||0===process.version[u(2215)]("v1.")&&0!==process[u(654)][u(2215)](u(788))?r[u(946)]={nextTick:function(e,r,t,n){var i=u;if(typeof e!=i(1221))throw new TypeError(i(996));var a,o,s=arguments[i(1963)];switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e[i(1775)](null,r)});case 3:return process[i(585)](function(){e[i(1775)](null,r,t)});case 4:return process[i(585)](function(){e[i(1775)](null,r,t,n)});default:for(a=new Array(s-1),o=0;o<a[i(1963)];)a[o++]=arguments[o];return process[i(585)](function(){e[i(1988)](null,a)})}}}:r.exports=process}),z=r(function(e,r){var t=$,n={}[t(641)];r[t(946)]=Array[t(920)]||function(e){return"[object Array]"==n[t(1775)](e)}}),F=r(function(e,r){r[$(946)]=require("stream")}),I=r(function(e,r){var i=$,t=require("buffer"),a=t.Buffer;function n(e,r){for(var t in e)r[t]=e[t]}function o(e,r,t){return a(e,r,t)}a[i(1806)]&&a[i(982)]&&a[i(738)]&&a.allocUnsafeSlow?r.exports=t:(n(t,e),e[i(843)]=o),n(a,o),o.from=function(e,r,t){if("number"==typeof e)throw new TypeError(i(1760));return a(e,r,t)},o.alloc=function(e,r,t){var n=i;if(typeof e!=n(1393))throw new TypeError(n(1268));e=a(e);return void 0!==r?"string"==typeof t?e[n(1177)](r,t):e[n(1177)](r):e.fill(0),e},o[i(738)]=function(e){var r=i;if(typeof e!=r(1393))throw new TypeError(r(1268));return a(e)},o[i(2268)]=function(e){var r=i;if(typeof e!=r(1393))throw new TypeError(r(1268));return t[r(1495)](e)}}),R=r(function(e){var t=$;function n(e){var r=t;return Object[r(785)][r(641)][r(1775)](e)}e[t(920)]=function(e){var r=_0x3872;return Array.isArray?Array.isArray(e):n(e)===r(2209)},e[t(561)]=function(e){return typeof e==t(518)},e[t(1458)]=function(e){return null===e},e.isNullOrUndefined=function(e){return null==e},e[t(770)]=function(e){return typeof e==t(1393)},e[t(1262)]=function(e){return typeof e==t(1191)},e[t(2063)]=function(e){var r=t;return _typeof(e)==r(855)},e[t(1329)]=function(e){return void 0===e},e[t(1918)]=function(e){var r=t;return n(e)===r(874)},e[t(1129)]=function(e){var r=t;return _typeof(e)==r(1184)&&null!==e},e[t(866)]=function(e){var r=t;return n(e)===r(628)},e[t(604)]=function(e){var r=t;return n(e)===r(1250)||e instanceof Error},e[t(532)]=function(e){return typeof e==t(1221)},e.isPrimitive=function(e){var r=t;return null===e||typeof e==r(518)||typeof e==r(1393)||typeof e==r(1191)||_typeof(e)==r(855)||"u"<_typeof(e)},e[t(1320)]=require("buffer")[t(843)][t(1320)]}),U=r(function(e,r){var i=$;typeof Object.create==i(1221)?r.exports=function(e,r){var t=i;r&&(e[t(2084)]=r,e[t(785)]=Object[t(784)](r[t(785)],{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:r[i(946)]=function(e,r){var t,n=i;r&&(e[n(2084)]=r,(t=function(){})[n(785)]=r[n(785)],e[n(785)]=new t,e[n(785)][n(2248)]=e)}}),j=r(function(e,r){var t,n=$;try{if(typeof(t=require("util"))[n(1828)]!=n(1221))throw"";r[n(946)]=t[n(1828)]}catch(e){r[n(946)]=U()}}),q=r(function(e,r){var u=$;var c,f=I()[u(843)],t=require("util");function n(){var e=_0x3872,r=_0x3872;if(!(this instanceof n))throw new TypeError(r(1585));this[e(2109)]=null,this.tail=null,this[e(1963)]=0}r.exports=(n[(c=u)(785)][c(1158)]=function(e){var r=c,e={data:e,next:null};0<this[r(1963)]?this.tail[r(1935)]=e:this[r(2109)]=e,this.tail=e,++this[r(1963)]},n[c(785)][c(1999)]=function(e){var r=c,e={data:e,next:this.head};0===this.length&&(this[r(633)]=e),this[r(2109)]=e,++this.length},n[c(785)][c(1804)]=function(){var e,r=c;if(0!==this[r(1963)])return e=this[r(2109)][r(583)],1===this.length?this[r(2109)]=this[r(633)]=null:this[r(2109)]=this.head[r(1935)],--this[r(1963)],e},n[c(785)][c(2047)]=function(){var e=c;this[e(2109)]=this[e(633)]=null,this[e(1963)]=0},n[c(785)].join=function(e){var r=c;if(0===this.length)return"";for(var t=this[r(2109)],n=""+t[r(583)];t=t[r(1935)];)n+=e+t[r(583)];return n},n[c(785)][c(1176)]=function(e){var r=c;if(0===this[r(1963)])return f[r(982)](0);for(var t,n,i,a=f.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=a,i=s,t[u(883)](n,i),s+=o.data[r(1963)],o=o[r(1935)];return a},n),t&&t[u(1656)]&&t[u(1656)].custom&&(r[u(946)][u(785)][t[u(1656)][u(746)]]=function(){var e=u,r=t[e(1656)]({length:this[e(1963)]});return this[e(2248)].name+" "+r})}),N=r(function(e,r){var t=$,o=P();function s(e,r){var t=_0x3872;e.emit(t(1803),r)}r[t(946)]={destroy:function(e,t){var n=_0x3872,i=this,r=this[n(787)]&&this._readableState[n(1391)],a=this[n(816)]&&this[n(816)].destroyed;return r||a?t?t(e):e&&(this[n(816)]?this[n(816)].errorEmitted||(this[n(816)][n(1920)]=!0,o[n(585)](s,this,e)):o[n(585)](s,this,e)):(this[n(787)]&&(this[n(787)][n(1391)]=!0),this[n(816)]&&(this._writableState[n(1391)]=!0),this[n(596)](e||null,function(e){var r=n;!t&&e?i[r(816)]?i._writableState[r(1920)]||(i[r(816)][r(1920)]=!0,o[r(585)](s,i,e)):o.nextTick(s,i,e):t&&t(e)})),this},undestroy:function(){var e=_0x3872;this._readableState&&(this._readableState[e(1391)]=!1,this._readableState.reading=!1,this[e(787)][e(980)]=!1,this[e(787)][e(775)]=!1),this[e(816)]&&(this[e(816)][e(1391)]=!1,this[e(816)][e(980)]=!1,this[e(816)][e(1479)]=!1,this._writableState[e(2006)]=!1,this[e(816)][e(632)]=!1,this._writableState[e(522)]=!1,this[e(816)].errorEmitted=!1)}}}),K=r(function(e,r){var t=$;r[t(946)]=require(t(2234))[t(1172)]}),v=r(function(e,r){var p=$,_=P();function h(o){var e=p,s=this;this.next=null,this[e(1792)]=null,this[e(1532)]=function(){var e=s,r=o,t=void 0,n=p,i=e.entry;for(e[n(1792)]=null;i;){var a=i[n(2269)];r.pendingcb--,a(t),i=i[n(1935)]}r.corkedRequestsFree[n(1935)]=e}}r[p(946)]=u;var o,v=!process[p(1915)]&&-1<[p(546),"v0.9."][p(2215)](process[p(654)][p(2136)](0,5))?setImmediate:_.nextTick,r=(u[p(2137)]=s,Object[p(784)](R())),t=(r[p(1828)]=j(),{deprecate:K()}),n=F(),g=I()[p(843)],m=((typeof global===p(1068)?p(1068):_typeof(global))<"u"?global:(typeof window===p(1068)?p(1068):_typeof(window))<"u"?window:(typeof self===p(1068)?p(1068):_typeof(self))<"u"?self:{})[p(1839)]||function(){};var i,a=N();function y(){}function s(e,l){var r=p,t=(o=o||G(),e=e||{},l instanceof o),n=(this.objectMode=!!e.objectMode,t&&(this[r(1628)]=this[r(1628)]||!!e[r(564)]),e[r(1364)]),i=e[r(533)],a=this[r(1628)]?16:16384,n=(this.highWaterMark=n||0===n?n:t&&(i||0===i)?i:a,this[r(1364)]=Math[r(482)](this[r(1364)]),this[r(2006)]=!1,this[r(1360)]=!1,this[r(1479)]=!1,this[r(980)]=!1,this[r(522)]=!1,(this[r(1391)]=!1)===e[r(2007)]);this.decodeStrings=!n,this[r(1972)]=e[r(1972)]||r(635),this.length=0,this.writing=!1,this[r(1102)]=0,this[r(639)]=!0,this[r(857)]=!1,this[r(2087)]=function(e){e=e,t=p,n=(r=l)._writableState,i=n[t(639)],a=n[t(1083)];var r,t,n,i,a,o=n,s=p;{var u,c,f,h;(o[s(2271)]=!1,o[s(1083)]=null,o[s(1963)]-=o[s(1526)],o[s(1526)]=0,e)?(o=r,u=i,c=e,f=a,--(s=n)[(h=p)(1376)],u?(_[h(585)](f,c),_[h(585)](x,o,s),o[h(816)][h(1920)]=!0,o.emit(h(1803),c)):(f(c),o._writableState[h(1920)]=!0,o[h(1375)](h(1803),c),x(o,s))):((e=k(n))||n[t(1102)]||n[t(857)]||!n[t(499)]||w(r,n),i?v(d,r,n,e,a):d(r,n,e,a))}},this[r(1083)]=null,this[r(1526)]=0,this[r(499)]=null,this.lastBufferedRequest=null,this[r(1376)]=0,this[r(632)]=!1,this[r(1920)]=!1,this[r(1725)]=0,this[r(599)]=new h(this)}r[p(1828)](u,n),s[p(785)][p(1529)]=function(){for(var e=p,r=this[e(499)],t=[];r;)t[e(1158)](r),r=r[e(1935)];return t};r=p;try{Object[r(1200)](s[r(785)],r(1249),{get:t.deprecate(function(){return this.getBuffer()},r(1116),r(1531))})}catch(e){}function u(e){var r=p;if(o=o||G(),!(i.call(u,this)||this instanceof o))return new u(e);this[r(816)]=new s(e,this),this[r(705)]=!0,e&&(typeof e[r(1282)]==r(1221)&&(this[r(1680)]=e.write),"function"==typeof e[r(1345)]&&(this[r(1150)]=e[r(1345)]),typeof e[r(2011)]==r(1221)&&(this[r(596)]=e[r(2011)]),typeof e[r(1894)]==r(1221))&&(this[r(2164)]=e.final),n[r(1775)](this)}function b(e,r,t,n,i,a,o){var s=p;r.writelen=n,r[s(1083)]=o,r[s(2271)]=!0,r.sync=!0,t?e[s(1150)](i,r.onwrite):e[s(1680)](i,a,r[s(2087)]),r.sync=!1}function d(e,r,t,n){var i,a;t||(t=e,a=p,0===(i=r).length&&i[a(1360)]&&(i[a(1360)]=!1,t.emit(a(1187)))),r.pendingcb--,n(),x(e,r)}function w(e,r){var t=p,n=(r.bufferProcessing=!0,r.bufferedRequest);if(e._writev&&n&&n[t(1935)]){var i=r[t(1725)],a=new Array(i),i=r[t(599)];i.entry=n;for(var o=0,s=!0;n;)(a[o]=n)[t(529)]||(s=!1),n=n.next,o+=1;a[t(1401)]=s,b(e,r,!0,r[t(1963)],a,"",i[t(1532)]),r[t(1376)]++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i[t(1935)],i[t(1935)]=null):r[t(599)]=new h(r),r[t(1725)]=0}else{for(;n;){var u=n[t(742)],c=n.encoding,f=n[t(2269)];if(b(e,r,!1,r[t(1628)]?1:u.length,u,c,f),n=n[t(1935)],r.bufferedRequestCount--,r[t(2271)])break}null===n&&(r.lastBufferedRequest=null)}r[t(499)]=n,r.bufferProcessing=!1}function k(e){var r=p;return e[r(1479)]&&0===e[r(1963)]&&null===e.bufferedRequest&&!e[r(522)]&&!e[r(2271)]}function c(t,n){var i=p;t[i(2164)](function(e){var r=i;n.pendingcb--,e&&t.emit(r(1803),e),n[r(632)]=!0,t[r(1375)](r(2201)),x(t,n)})}function x(e,r){var t,n,i,a=p,o=k(r);return o&&(t=e,(n=r)[(i=p)(632)]||n[i(2006)]||(typeof t._final==i(1221)?(n[i(1376)]++,n[i(2006)]=!0,_[i(585)](c,t,n)):(n[i(632)]=!0,t[i(1375)](i(2201)))),0===r.pendingcb)&&(r[a(522)]=!0,e[a(1375)](a(1532))),o}"function"==typeof Symbol&&Symbol[p(1671)]&&typeof Function.prototype[Symbol.hasInstance]==p(1221)?(i=Function[p(785)][Symbol.hasInstance],Object[p(1200)](u,Symbol[p(1671)],{value:function(e){var r=p;return!!i[r(1775)](this,e)||this===u&&e&&e[r(816)]instanceof s}})):i=function(e){return e instanceof this},u[p(785)].pipe=function(){var e=p;this[e(1375)]("error",new Error(e(1445)))},u[p(785)][p(1282)]=function(e,r,t){var n,i,a,o,s,u,c,f,h=p,l=this[h(816)],v=!1,d=!l.objectMode&&(d=e,g.isBuffer(d)||d instanceof m);return d&&!g[h(1320)](e)&&(f=e,e=g[p(1806)](f)),typeof r==h(1221)&&(t=r,r=null),r=d?"buffer":r||l.defaultEncoding,typeof t!=h(1221)&&(t=y),l[h(980)]?(f=this,s=t,u=p,c=new Error("write after end"),f[u(1375)]("error",c),_[u(585)](s,c)):(d||(u=this,s=l,c=t,i=p,o=!(a=!0),null===(n=e)?o=new TypeError(i(2193)):typeof n==i(1191)||void 0===n||s.objectMode||(o=new TypeError(i(945))),o&&(u[i(1375)](i(1803),o),_[i(585)](c,o),a=!1),a))&&(l[h(1376)]++,v=((e,r,t,n,i,a)=>{var o,s=p,u=(t||(u=((e,r,t)=>{var n=p;return r=e[n(1628)]||!1===e.decodeStrings||typeof r!=n(1191)?r:g[n(1806)](r,t)})(r,n,i),n!==u&&(t=!0,i=s(1249),n=u)),r[s(1628)]?1:n[s(1963)]),c=(r[s(1963)]+=u,r.length<r[s(1364)]);return c||(r[s(1360)]=!0),r[s(2271)]||r[s(1102)]?(o=r[s(1916)],r[s(1916)]={chunk:n,encoding:i,isBuf:t,callback:a,next:null},o?o[s(1935)]=r[s(1916)]:r[s(499)]=r.lastBufferedRequest,r[s(1725)]+=1):b(e,r,!1,u,n,i,a),c})(this,l,d,e,r,t)),v},u[p(785)][p(2261)]=function(){var e=p;this[e(816)][e(1102)]++},u.prototype.uncork=function(){var e=p,r=this[e(816)];!r[e(1102)]||(r[e(1102)]--,r[e(2271)])||r[e(1102)]||r[e(857)]||!r[e(499)]||w(this,r)},u[p(785)][p(1425)]=function(e){var r=p;if("string"==typeof e&&(e=e.toLowerCase()),-1<[r(2026),r(635),r(1833),r(1156),r(2290),r(2262),r(1614),r(693),"utf16le",r(1869),"raw"][r(2215)]((e+"").toLowerCase()))return this._writableState[r(1972)]=e,this;throw new TypeError(r(1905)+e)},Object[p(1200)](u[p(785)],p(533),{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u[p(785)]._write=function(e,r,t){t(new Error("_write() is not implemented"))},u[p(785)]._writev=null,u.prototype[p(1954)]=function(e,r,t){var n=p,i=this[n(816)];typeof e==n(1221)?(t=e,r=e=null):typeof r==n(1221)&&(t=r,r=null),null!=e&&this[n(1282)](e,r),i[n(1102)]&&(i[n(1102)]=1,this[n(2021)]()),i[n(1479)]||(e=this,r=t,n=p,(t=i).ending=!0,x(e,t),r&&(t[n(522)]?_[n(585)](r):e[n(714)](n(1532),r)),t.ended=!0,e.writable=!1)},Object[p(1200)](u.prototype,p(1391),{get:function(){var e=p;return void 0!==this[e(816)]&&this[e(816)][e(1391)]},set:function(e){var r=p;this[r(816)]&&(this[r(816)][r(1391)]=e)}}),u[p(785)][p(2011)]=a.destroy,u[p(785)][p(1964)]=a[p(1909)],u[p(785)][p(596)]=function(e,r){this[p(1954)](),r(e)}}),G=r(function(e,r){var t,n,i,a=$,o=P(),s=Object[a(1104)]||function(e){var r,t=a,n=[];for(r in e)n[t(1158)](r);return n},r=(r[a(946)]=f,Object[a(784)](R())),u=(r[a(1828)]=j(),d()),c=v();for(r[a(1828)](f,u),t=s(c[a(785)]),i=0;i<t[a(1963)];i++)n=t[i],f[a(785)][n]||(f[a(785)][n]=c[a(785)][n]);function f(e){var r=a;if(!(this instanceof f))return new f(e);u[r(1775)](this,e),c[r(1775)](this,e),e&&!1===e.readable&&(this[r(909)]=!1),e&&!1===e[r(705)]&&(this.writable=!1),this[r(2163)]=!0,e&&!1===e[r(2163)]&&(this[r(2163)]=!1),this[r(714)](r(1954),h)}function h(){var e=a;this.allowHalfOpen||this[e(816)][e(980)]||o[e(585)](l,this)}function l(e){e[a(1954)]()}Object[a(1200)](f[a(785)],a(533),{enumerable:!1,get:function(){var e=a;return this._writableState[e(1364)]}}),Object[a(1200)](f[a(785)],a(1391),{get:function(){var e=a;return void 0!==this[e(787)]&&void 0!==this[e(816)]&&this[e(787)].destroyed&&this[e(816)][e(1391)]},set:function(e){var r=a;void 0!==this[r(787)]&&void 0!==this[r(816)]&&(this._readableState[r(1391)]=e,this[r(816)].destroyed=e)}}),f[a(785)][a(596)]=function(e,r){var t=a;this[t(1158)](null),this[t(1954)](),o[t(585)](r,e)}}),L=r(function(e){var o=$,n=I()[o(843)],i=n.isEncoding||function(e){var r=o;switch((e=""+e)&&e[r(2102)]()){case r(2026):case"utf8":case r(1833):case r(1156):case r(2290):case r(2262):case r(1614):case"ucs-2":case r(460):case r(1869):case"raw":return!0;default:return!1}};function a(e){var r=o,t=(e=>{var r,t=o;if(!e)return t(635);for(;;)switch(e){case"utf8":case t(1833):return t(635);case t(1614):case t(693):case t(460):case t(1869):return t(460);case t(681):case t(2290):return t(681);case"base64":case t(1156):case t(2026):return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}})(e);if(typeof t==r(1191)||n[r(831)]!==i&&i(e))return t||e;throw new Error(r(1905)+e)}function r(e){var r,t=o;switch(this.encoding=a(e),this.encoding){case t(460):this[t(1649)]=c,this.end=f,r=4;break;case t(635):this[t(1042)]=u,r=4;break;case t(2262):this.text=h,this[t(1954)]=l,r=3;break;default:return this[t(1282)]=v,void(this.end=d)}this[t(1380)]=0,this[t(2140)]=0,this[t(1576)]=n[t(738)](r)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var r,t,n=o,i=this[n(2140)]-this[n(1380)],a=(r=this,t=o,128!=(192&(a=e)[0])?(r[t(1380)]=0,"�"):1<r[t(1380)]&&1<a[t(1963)]?128!=(192&a[1])?(r[t(1380)]=1,"�"):2<r[t(1380)]&&2<a[t(1963)]&&128!=(192&a[2])?(r[t(1380)]=2,"�"):void 0:void 0);return void 0!==a?a:this.lastNeed<=e.length?(e[n(883)](this[n(1576)],i,0,this[n(1380)]),this[n(1576)][n(641)](this[n(906)],0,this[n(2140)])):(e[n(883)](this[n(1576)],i,0,e[n(1963)]),void(this[n(1380)]-=e[n(1963)]))}function c(e,r){var t=o;if((e[t(1963)]-r)%2!=0)return this.lastNeed=1,this[t(2140)]=2,this.lastChar[0]=e[e[t(1963)]-1],e[t(641)](t(460),r,e.length-1);r=e[t(641)](t(460),r);if(r){var n=r[t(670)](r[t(1963)]-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this[t(2140)]=4,this[t(1576)][0]=e[e[t(1963)]-2],this[t(1576)][1]=e[e.length-1],r[t(2136)](0,-1)}return r}function f(e){var r,t=o,e=e&&e[t(1963)]?this.write(e):"";return this[t(1380)]?(r=this[t(2140)]-this[t(1380)],e+this.lastChar.toString(t(460),0,r)):e}function h(e,r){var t=o,n=(e[t(1963)]-r)%3;return 0==n?e.toString("base64",r):(this[t(1380)]=3-n,this[t(2140)]=3,1==n?this[t(1576)][0]=e[e[t(1963)]-1]:(this[t(1576)][0]=e[e[t(1963)]-2],this[t(1576)][1]=e[e[t(1963)]-1]),e[t(641)](t(2262),r,e[t(1963)]-n))}function l(e){var r=o,e=e&&e[r(1963)]?this[r(1282)](e):"";return this[r(1380)]?e+this[r(1576)][r(641)](r(2262),0,3-this[r(1380)]):e}function v(e){var r=o;return e[r(641)](this[r(906)])}function d(e){var r=o;return e&&e[r(1963)]?this[r(1282)](e):""}(e[o(1691)]=r)[o(785)][o(1282)]=function(e){var r,t,n=o;if(0===e.length)return"";if(this[n(1380)]){if(void 0===(r=this[n(1042)](e)))return"";t=this[n(1380)],this[n(1380)]=0}else t=0;return t<e[n(1963)]?r?r+this[n(1649)](e,t):this[n(1649)](e,t):r||""},r[o(785)][o(1954)]=function(e){var r=o,e=e&&e.length?this[r(1282)](e):"";return this[r(1380)]?e+"�":e},r.prototype[o(1649)]=function(e,r){var t=o,n=((e,r,t)=>{var n,i=o,a=r[i(1963)]-1;return a<t?0:0<=(n=s(r[a]))?(0<n&&(e[i(1380)]=n-1),n):--a<t||-2===n?0:0<=(n=s(r[a]))?(0<n&&(e[i(1380)]=n-2),n):!(--a<t||-2===n)&&0<=(n=s(r[a]))?(0<n&&(2===n?n=0:e[i(1380)]=n-3),n):0})(this,e,r);if(!this[t(1380)])return e[t(641)](t(635),r);this[t(2140)]=n;n=e[t(1963)]-(n-this.lastNeed);return e[t(883)](this[t(1576)],0,n),e[t(641)](t(635),r,n)},r[o(785)][o(1042)]=function(e){var r=o;if(this.lastNeed<=e[r(1963)])return e[r(883)](this[r(1576)],this[r(2140)]-this[r(1380)],0,this[r(1380)]),this[r(1576)][r(641)](this.encoding,0,this[r(2140)]);e[r(883)](this[r(1576)],this.lastTotal-this[r(1380)],0,e.length),this[r(1380)]-=e[r(1963)]}}),d=r(function(e,r){function g(e,r){return e[m(1099)](r).length}var o,m=$,y=P(),b=(r[m(946)]=a,z()),n=(a[m(1239)]=i,require(m(708))[m(1639)],F()),v=I()[m(843)],d=(("undefined"==typeof global?m(1068):_typeof(global))<"u"?global:(typeof window===m(1068)?m(1068):_typeof(window))<"u"?window:(typeof self===m(1068)?m(1068):_typeof(self))<"u"?self:{})[m(1839)]||function(){};var s,r=Object[m(784)](R()),t=(r[m(1828)]=j(),require("util")),w=void 0,w=t&&t.debuglog?t[m(606)](m(976)):function(){},u=q(),t=N(),c=(r[m(1828)](a,n),[m(1803),m(2228),m(2011),"pause","resume"]);function i(e,r){var t=m,r=(e=e||{},r instanceof(o=o||G())),n=(this[t(1628)]=!!e[t(1628)],r&&(this[t(1628)]=this.objectMode||!!e.readableObjectMode),e[t(1364)]),i=e[t(833)],a=this[t(1628)]?16:16384;this[t(1364)]=n||0===n?n:r&&(i||0===i)?i:a,this.highWaterMark=Math[t(482)](this[t(1364)]),this[t(1249)]=new u,this.length=0,this[t(1342)]=null,this[t(1349)]=0,this[t(650)]=null,this.ended=!1,this.endEmitted=!1,this[t(2110)]=!1,this[t(639)]=!0,this[t(1991)]=!1,this.emittedReadable=!1,this[t(570)]=!1,this.resumeScheduled=!1,this[t(1391)]=!1,this.defaultEncoding=e[t(1972)]||t(635),this[t(840)]=0,this[t(1135)]=!1,this[t(2157)]=null,this[t(906)]=null,e[t(906)]&&(s=s||L()[t(1691)],this[t(2157)]=new s(e[t(906)]),this[t(906)]=e.encoding)}function a(e){var r=m;if(o=o||G(),!(this instanceof a))return new a(e);this[r(787)]=new i(e,this),this[r(909)]=!0,e&&(typeof e[r(1567)]==r(1221)&&(this[r(2169)]=e[r(1567)]),"function"==typeof e[r(2011)])&&(this[r(596)]=e[r(2011)]),n.call(this)}function f(e,r,t,n,i){var a,o,s,u,c,f,h=m,l=e._readableState;return null===r?(l[h(2110)]=!1,o=e,c=m,(u=l).ended||(u.decoder&&(s=u.decoder[c(1954)]())&&s[c(1963)]&&(u[c(1249)][c(1158)](s),u.length+=u[c(1628)]?1:s[c(1963)]),u.ended=!0,_(o))):(i||(s=l,c=m,a=f=(e=>v[m(1320)](e)||e instanceof d)(u=r)||typeof u==c(1191)||void 0===u||s[c(1628)]?f:new TypeError(c(945))),a?e[h(1375)]("error",a):l[h(1628)]||r&&0<r[h(1963)]?(typeof r==h(1191)||l[h(1628)]||Object[h(1294)](r)===v[h(785)]||(o=r,r=v[m(1806)](o)),n?l[h(775)]?e[h(1375)](h(1803),new Error("stream.unshift() after end event")):p(e,l,r,!0):l[h(980)]?e[h(1375)](h(1803),new Error("stream.push() after EOF")):(l[h(2110)]=!1,!l[h(2157)]||t||(r=l[h(2157)][h(1282)](r),l[h(1628)])||0!==r[h(1963)]?p(e,l,r,!1):x(e,l))):n||(l[h(2110)]=!1)),!(i=l)[(f=m)(980)]&&(i[f(1991)]||i[f(1963)]<i[f(1364)]||0===i[f(1963)])}function p(e,r,t,n){var i=m;r.flowing&&0===r[i(1963)]&&!r.sync?(e.emit("data",t),e[i(1567)](0)):(r[i(1963)]+=r.objectMode?1:t.length,n?r[i(1249)][i(1999)](t):r[i(1249)].push(t),r.needReadable&&_(e)),x(e,r)}Object.defineProperty(a[m(785)],"destroyed",{get:function(){var e=m;return void 0!==this[e(787)]&&this._readableState[e(1391)]},set:function(e){var r=m;this[r(787)]&&(this[r(787)].destroyed=e)}}),a[m(785)][m(2011)]=t.destroy,a.prototype[m(1964)]=t.undestroy,a.prototype._destroy=function(e,r){this[m(1158)](null),r(e)},a.prototype.push=function(e,r){var t,n=m,i=this[n(787)];return i[n(1628)]?t=!0:typeof e==n(1191)&&((r=r||i[n(1972)])!==i[n(906)]&&(e=v.from(e,r),r=""),t=!0),f(this,e,r,!1,t)},a[m(785)][m(1999)]=function(e){return f(this,e,null,!0,!1)},a[m(785)].isPaused=function(){var e=m;return!1===this[e(787)][e(650)]},a[m(785)][m(1252)]=function(e){var r=m;return s=s||L()[r(1691)],this[r(787)][r(2157)]=new s(e),this[r(787)][r(906)]=e,this};var h=8388608;function l(e,r){var t,n=m;return e<=0||0===r[n(1963)]&&r[n(980)]?0:r[n(1628)]?1:e!=e?r[n(650)]&&r[n(1963)]?r.buffer.head[n(583)].length:r[n(1963)]:(e>r[n(1364)]&&(r[n(1364)]=(h<=(t=e)?t=h:(t--,t=(t=(t=(t=(t|=t>>>1)|t>>>2)|t>>>4)|t>>>8)|t>>>16,t++),t)),e<=r[n(1963)]?e:r[n(980)]?r[n(1963)]:(r[n(1991)]=!0,0))}function _(e){var r=m,t=e[r(787)];t[r(1991)]=!1,t[r(1188)]||(w(r(977),t[r(650)]),t.emittedReadable=!0,t[r(639)]?y[r(585)](k,e):k(e))}function k(e){var r=m;w(r(1773)),e[r(1375)](r(909)),S(e)}function x(e,r){var t=m;r.readingMore||(r[t(1135)]=!0,y[t(585)](C,e,r))}function C(e,r){for(var t=m,n=r[t(1963)];!r.reading&&!r[t(650)]&&!r.ended&&r.length<r.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),n!==r[t(1963)]);)n=r[t(1963)];r[t(1135)]=!1}function E(e){var r=m;w("readable nexttick read 0"),e[r(1567)](0)}function A(e,r){var t=m;r.reading||(w(t(1132)),e[t(1567)](0)),r.resumeScheduled=!1,r[t(840)]=0,e.emit(t(662)),S(e),r[t(650)]&&!r[t(2110)]&&e[t(1567)](0)}function S(e){var r=m,t=e[r(787)];for(w(r(873),t.flowing);t[r(650)]&&null!==e[r(1567)](););}function D(e,r){var t,n,i,a=m;return 0===r[a(1963)]?null:(r[a(1628)]?t=r[a(1249)][a(1804)]():!e||e>=r[a(1963)]?(t=r[a(2157)]?r[a(1249)][a(877)](""):1===r[a(1249)].length?r[a(1249)][a(2109)][a(583)]:r.buffer[a(1176)](r.length),r[a(1249)][a(2047)]()):(e=e,n=r[a(1249)],r=r[a(2157)],e<n[(a=m)(2109)][a(583)].length?(i=n.head[a(583)][a(2136)](0,e),n[a(2109)][a(583)]=n.head[a(583)][a(2136)](e)):i=e===n[a(2109)].data[a(1963)]?n[a(1804)]():(r?(e,r)=>{var t=m,n=r.head,i=1,a=n[t(583)];for(e-=a[t(1963)];n=n.next;){var o=n[t(583)],s=e>o[t(1963)]?o[t(1963)]:e;if(s===o[t(1963)]?a+=o:a+=o[t(2136)](0,e),0===(e-=s)){s===o[t(1963)]?(++i,n[t(1935)]?r[t(2109)]=n[t(1935)]:r[t(2109)]=r[t(633)]=null):(r[t(2109)]=n)[t(583)]=o.slice(s);break}++i}return r[t(1963)]-=i,a}:(e,r)=>{var t=m,n=v[t(738)](e),i=r[t(2109)],a=1;for(i.data.copy(n),e-=i[t(583)][t(1963)];i=i[t(1935)];){var o=i[t(583)],s=e>o.length?o.length:e;if(o[t(883)](n,n[t(1963)]-e,0,s),0===(e-=s)){s===o.length?(++a,i[t(1935)]?r[t(2109)]=i[t(1935)]:r[t(2109)]=r.tail=null):(r.head=i)[t(583)]=o.slice(s);break}++a}return r[t(1963)]-=a,n})(e,n),t=i),t)}function T(e){var r=m,t=e[r(787)];if(0<t[r(1963)])throw new Error(r(602));t[r(775)]||(t[r(980)]=!0,y.nextTick(O,t,e))}function O(e,r){var t=m;e[t(775)]||0!==e.length||(e[t(775)]=!0,r[t(909)]=!1,r[t(1375)](t(1954)))}function B(e,r){for(var t=0,n=e[m(1963)];t<n;t++)if(e[t]===r)return t;return-1}a[m(785)][m(1567)]=function(e){var r,t=m,n=(w("read",e),e=parseInt(e,10),this._readableState),i=e;return 0!==e&&(n.emittedReadable=!1),0===e&&n[t(1991)]&&(n.length>=n[t(1364)]||n[t(980)])?(w(t(1737),n[t(1963)],n[t(980)]),(0===n.length&&n[t(980)]?T:_)(this),null):0===(e=l(e,n))&&n[t(980)]?(0===n.length&&T(this),null):(r=n[t(1991)],w(t(1714),r),(0===n[t(1963)]||n[t(1963)]-e<n[t(1364)])&&(r=!0,w(t(2010),r)),n.ended||n[t(2110)]?(r=!1,w(t(2117),r)):r&&(w("do read"),n[t(2110)]=!0,n.sync=!0,0===n[t(1963)]&&(n[t(1991)]=!0),this._read(n[t(1364)]),n[t(639)]=!1,n[t(2110)]||(e=l(i,n))),null===(r=0<e?D(e,n):null)?(n[t(1991)]=!0,e=0):n[t(1963)]-=e,0===n[t(1963)]&&(n[t(980)]||(n[t(1991)]=!0),i!==e)&&n[t(980)]&&T(this),null!==r&&this[t(1375)](t(583),r),r)},a[m(785)][m(2169)]=function(e){var r=m;this[r(1375)](r(1803),new Error("_read() is not implemented"))},a[m(785)][m(1724)]=function(n,e){var i=m,a=this,o=this._readableState;switch(o[i(1349)]){case 0:o.pipes=n;break;case 1:o.pipes=[o[i(1342)],n];break;default:o.pipes.push(n)}o[i(1349)]+=1,w(i(729),o[i(1349)],e);e=(!e||!1!==e[i(1954)])&&n!==process.stdout&&n!==process.stderr?u:_;function s(e,r){var t=i;w("onunpipe"),e===a&&r&&!1===r.hasUnpiped&&(r[t(1127)]=!0,w((e=i)(660)),n.removeListener("close",d),n[e(1631)](e(1532),p),n.removeListener(e(1187),c),n[e(1631)](e(1803),v),n.removeListener(e(1859),s),a[e(1631)](e(1954),u),a.removeListener(e(1954),_),a.removeListener(e(583),l),f=!0,!o.awaitDrain||n._writableState&&!n[e(816)].needDrain||c())}function u(){var e=i;w(e(1931)),n[e(1954)]()}o[i(775)]?y[i(585)](e):a.once("end",e),n.on(i(1859),s);t=a;var t,c=function(){var e=_0x3872,r=t[e(787)];w(e(1014),r[e(840)]),r.awaitDrain&&r.awaitDrain--,0===r[e(840)]&&g(t,e(583))&&(r[e(650)]=!0,S(t))},f=(n.on(i(1187),c),!1);var h=!1;function l(e){var r=i;w(r(1668)),(h=!1)!==n[r(1282)](e)||h||((1===o[r(1349)]&&o[r(1342)]===n||1<o.pipesCount&&-1!==B(o[r(1342)],n))&&!f&&(w(r(1017),o[r(840)]),o[r(840)]++,h=!0),a.pause())}function v(e){var r=i;w(r(1477),e),_(),n[r(1631)](r(1803),v),0===g(n,r(1803))&&n.emit(r(1803),e)}function d(){var e=i;n.removeListener(e(1532),p),_()}function p(){w("onfinish"),n.removeListener("close",d),_()}function _(){var e=i;w(e(1859)),a[e(1859)](n)}return a.on("data",l),((e,r,t)=>{var n=m;if(typeof e[n(1229)]==n(1221))return e[n(1229)](r,t);e._events&&e[n(751)][r]?b(e._events[r])?e[n(751)][r][n(1999)](t):e[n(751)][r]=[t,e[n(751)][r]]:e.on(r,t)})(n,i(1803),v),n[i(714)](i(2228),d),n[i(714)](i(1532),p),n.emit(i(1724),a),o[i(650)]||(w(i(1318)),a[i(662)]()),n},a.prototype[m(1859)]=function(e){var r=m,t=this[r(787)],n={hasUnpiped:!1};if(0!==t[r(1349)])if(1===t[r(1349)])e&&e!==t[r(1342)]||(e=e||t[r(1342)],t[r(1342)]=null,t[r(1349)]=0,t[r(650)]=!1,e&&e.emit(r(1859),this,n));else if(e){var i=B(t[r(1342)],e);-1!==i&&(t.pipes[r(1767)](i,1),--t[r(1349)],1===t.pipesCount&&(t.pipes=t[r(1342)][0]),e[r(1375)]("unpipe",this,n))}else{var a=t[r(1342)],o=t[r(1349)];t[r(1342)]=null,t.pipesCount=0,t[r(650)]=!1;for(var s=0;s<o;s++)a[s][r(1375)](r(1859),this,{hasUnpiped:!1})}return this},a.prototype.on=function(e,r){var t=m,r=n[t(785)].on[t(1775)](this,e,r);return e===t(583)?!1!==this[t(787)][t(650)]&&this[t(662)]():e!==t(909)||(e=this[t(787)])[t(775)]||e[t(570)]||(e[t(570)]=e[t(1991)]=!0,e[t(1188)]=!1,e.reading?e[t(1963)]&&_(this):y[t(585)](E,this)),r},a[m(785)][m(506)]=a[m(785)].on,a[m(785)].resume=function(){var e,r=m,t=this[r(787)];return t[r(650)]||(w(r(662)),t[r(650)]=!0,r=this,e=m,(t=t).resumeScheduled||(t[e(507)]=!0,y.nextTick(A,r,t))),this},a[m(785)].pause=function(){var e=m;return w(e(1254),this[e(787)][e(650)]),!1!==this._readableState[e(650)]&&(w(e(1499)),this[e(787)].flowing=!1,this[e(1375)](e(1499))),this},a[m(785)][m(1906)]=function(t){var e,n=m,i=this,a=this[n(787)],o=!1;for(e in t.on(n(1954),function(){var e,r=n;w(r(1204)),a[r(2157)]&&!a[r(980)]&&(e=a[r(2157)].end())&&e[r(1963)]&&i[r(1158)](e),i[r(1158)](null)}),t.on(n(583),function(e){var r=n;w(r(1497)),a.decoder&&(e=a.decoder.write(e)),a[r(1628)]&&null==e||!(a[r(1628)]||e&&e[r(1963)])||i[r(1158)](e)||(o=!0,t[r(1499)]())}),t)void 0===this[e]&&typeof t[e]==n(1221)&&(this[e]=(e=>function(){return t[e].apply(t,arguments)})(e));for(var r=0;r<c[n(1963)];r++)t.on(c[r],this.emit.bind(this,c[r]));return this[n(2169)]=function(e){var r=n;w(r(1747),e),o&&(o=!1,t[r(662)]())},this},Object[m(1200)](a[m(785)],m(833),{enumerable:!1,get:function(){var e=m;return this._readableState[e(1364)]}}),a[m(786)]=D}),a=r(function(e,r){var a=$,o=(r[a(946)]=t,G()),r=Object[a(784)](R());function t(e){var r=a;if(!(this instanceof t))return new t(e);o.call(this,e),this[r(1194)]={afterTransform:function(e,r){var t=a,n=this[t(1194)],i=(n[t(1295)]=!1,n[t(1083)]);if(!i)return this[t(1375)]("error",new Error(t(2024)));n[t(1418)]=null,(n[t(1083)]=null)!=r&&this[t(1158)](r),i(e),(n=this._readableState)[t(2110)]=!1,(n.needReadable||n[t(1963)]<n[t(1364)])&&this._read(n[t(1364)])}[r(1690)](this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this[r(787)][r(1991)]=!0,this[r(787)][r(639)]=!1,e&&(typeof e.transform==r(1221)&&(this[r(716)]=e[r(609)]),typeof e[r(657)]==r(1221))&&(this[r(1640)]=e[r(657)]),this.on(r(2201),n)}function n(){var e=a,t=this;typeof this._flush==e(1221)?this[e(1640)](function(e,r){i(t,e,r)}):i(this,null,null)}function i(e,r,t){var n=a;if(r)return e[n(1375)](n(1803),r);if(null!=t&&e[n(1158)](t),e[n(816)][n(1963)])throw new Error(n(530));if(e[n(1194)].transforming)throw new Error("Calling transform done when still transforming");e[n(1158)](null)}r[a(1828)]=j(),r[a(1828)](t,o),t[a(785)][a(1158)]=function(e,r){var t=a;return this._transformState[t(2077)]=!1,o.prototype.push[t(1775)](this,e,r)},t[a(785)]._transform=function(e,r,t){throw new Error(a(1980))},t[a(785)][a(1680)]=function(e,r,t){var n=a,i=this[n(1194)];i[n(1083)]=t,i[n(1418)]=e,i[n(1390)]=r,!i[n(1295)]&&(t=this[n(787)],i[n(2077)]||t[n(1991)]||t[n(1963)]<t[n(1364)])&&this._read(t[n(1364)])},t[a(785)][a(2169)]=function(e){var r=a,t=this._transformState;null!==t[r(1418)]&&t[r(1083)]&&!t[r(1295)]?(t[r(1295)]=!0,this._transform(t[r(1418)],t[r(1390)],t[r(821)])):t[r(2077)]=!0},t[a(785)][a(596)]=function(e,t){var n=a,i=this;o.prototype._destroy[n(1775)](this,e,function(e){var r=n;t(e),i[r(1375)]("close")})}}),Z=r(function(e,r){var t=$,n=(r[t(946)]=i,a()),r=Object[t(784)](R());function i(e){var r=t;if(!(this instanceof i))return new i(e);n[r(1775)](this,e)}r[t(1828)]=j(),r.inherits(i,n),i[t(785)][t(716)]=function(e,r,t){t(null,e)}}),s=r(function(e,r){var t=$,n=require(t(976));"disable"===process[t(1374)][t(517)]&&n?(r.exports=n,(e=r[t(946)]=n[t(1394)])[t(1394)]=n[t(1394)],e[t(1230)]=n.Writable,e[t(1800)]=n[t(1800)],e[t(776)]=n[t(776)],e[t(1284)]=n[t(1284)],e[t(1838)]=n):((e=r[t(946)]=d()).Stream=n||e,(e[t(1394)]=e)[t(1230)]=v(),e[t(1800)]=G(),e.Transform=a(),e[t(1284)]=Z())}),_=r(function(r){var t,n,i=$;if(r[i(2262)]=!0,r.array=!0,r.string=!0,r[i(869)]=(typeof ArrayBuffer===i(1068)?i(1068):_typeof(ArrayBuffer))<"u"&&(typeof Uint8Array===i(1068)?"undefined":_typeof(Uint8Array))<"u",r[i(1051)]=(typeof Buffer===i(1068)?i(1068):_typeof(Buffer))<"u",r[i(1587)]=(typeof Uint8Array===i(1068)?i(1068):_typeof(Uint8Array))<"u","u"<(typeof ArrayBuffer===i(1068)?"undefined":_typeof(ArrayBuffer)))r[i(1256)]=!1;else{t=new ArrayBuffer(0);try{r.blob=0===new Blob([t],{type:"application/zip"})[i(2023)]}catch(e){try{(n=new(self.BlobBuilder||self[i(1707)]||self[i(534)]||self[i(1e3)])).append(t),r[i(1256)]=0===n.getBlob(i(2124))[i(2023)]}catch(e){r.blob=!1}}}try{r[i(864)]=!!s()[i(1394)]}catch(e){r[i(864)]=!1}}),p=r(function(e){var l=$,v=A(),d=_(),p=l(921);e[l(1421)]=function(e){for(var r,t,n,i,a,o,s=l,u=[],c=0,f=e[s(1963)],h=v[s(1881)](e)!==s(1191);c<e[s(1963)];)o=f-c,n=h?(r=e[c++],t=c<f?e[c++]:0,c<f?e[c++]:0):(r=e[s(670)](c++),t=c<f?e.charCodeAt(c++):0,c<f?e.charCodeAt(c++):0),i=(3&r)<<4|t>>4,a=1<o?(15&t)<<2|n>>6:64,o=2<o?63&n:64,u.push(p.charAt(r>>2)+p[s(1588)](i)+p[s(1588)](a)+p.charAt(o));return u[s(877)]("")},e[l(1004)]=function(e){var r,t,n,i,a,o,s=l,u=0,c=0,f=s(2039);if(e[s(1599)](0,f[s(1963)])===f)throw new Error(s(1047));var h,f=3*(e=e[s(2108)](/[^A-Za-z0-9\+\/\=]/g,""))[s(1963)]/4;if(e[s(1588)](e[s(1963)]-1)===p[s(1588)](64)&&f--,e[s(1588)](e[s(1963)]-2)===p[s(1588)](64)&&f--,f%1!=0)throw new Error(s(659));for(h=new(d[s(1587)]?Uint8Array:Array)(0|f);u<e[s(1963)];)n=p[s(2215)](e[s(1588)](u++)),r=(15&(i=p[s(2215)](e[s(1588)](u++))))<<4|(a=p[s(2215)](e[s(1588)](u++)))>>2,t=(3&a)<<6|(o=p[s(2215)](e.charAt(u++))),h[c++]=n<<2|i>>4,64!==a&&(h[c++]=r),64!==o&&(h[c++]=t);return h}}),b=r(function(e,r){var n=$;r[n(946)]={isNode:("undefined"==typeof Buffer?n(1068):_typeof(Buffer))<"u",newBufferFrom:function(e,r){var t=n;if(Buffer[t(1806)]&&Buffer[t(1806)]!==Uint8Array.from)return Buffer.from(e,r);if(typeof e==t(1393))throw new Error('The "data" argument must not be a number');return new Buffer(e,r)},allocBuffer:function(e){var r=n;return Buffer[r(982)]?Buffer[r(982)](e):((e=new Buffer(e))[r(1177)](0),e)},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){var r=n;return e&&"function"==typeof e.on&&typeof e[r(1499)]==r(1221)&&typeof e.resume==r(1221)}}}),W=r(function(e,r){var t=$;r[t(946)]=typeof setImmediate==t(1221)?setImmediate:function(){var e=t,r=[][e(2136)][e(1988)](arguments);r[e(1767)](1,0,0),setTimeout[e(1988)](null,r)}}),Y=r(function(e,r){var t,n,i,a,o=$,s=global[o(484)]||global[o(549)],u=process.browser?s?(t=0,s=new s(f),n=global[o(1860)][o(1481)](""),s[o(2094)](n,{characterData:!0}),function(){n[o(583)]=t=++t%2}):!global[o(1843)]&&_typeof(global[o(1334)])<"u"?((i=new global.MessageChannel)[o(1139)][o(536)]=f,function(){var e=o;i.port2[e(1749)](0)}):"document"in global&&o(1685)in global[o(1860)][o(689)](o(2253))?function(){var r=o,t=global[r(1860)][r(689)](r(2253));t.onreadystatechange=function(){var e=r;f(),t.onreadystatechange=null,t.parentNode[e(459)](t),t=null},global[r(1860)].documentElement[r(1333)](t)}:function(){setTimeout(f,0)}:function(){process.nextTick(f)},c=[];function f(){var e=o;a=!0;for(var r,t,n=c.length;n;){for(t=c,c=[],r=-1;++r<n;)t[r]();n=c[e(1963)]}a=!1}r[o(946)]=function(e){1!==c[o(1158)](e)||a||u()}}),J=r(function(e,r){var f=$,a=Y();function h(){}var o,l={},s=[f(1443)],u=[f(1336)],i=[f(944)];function t(e){var r=f;if("function"!=typeof e)throw new TypeError(r(1243));this[r(2153)]=i,this[r(1106)]=[],this.outcome=void 0,process[r(1915)]||(this[r(526)]=o),e!==h&&p(this,e)}function c(e,r,t){var n=f;this[n(2107)]=e,"function"==typeof r&&(this.onFulfilled=r,this[n(713)]=this.otherCallFulfilled),typeof t==n(1221)&&(this[n(2226)]=t,this[n(1166)]=this[n(1769)])}function v(t,n,i){a(function(){var e,r=_0x3872;try{e=n(i)}catch(e){return l.reject(t,e)}e===t?l[r(554)](t,new TypeError(r(871))):l[r(665)](t,e)})}function d(e){var r=f,t=e&&e.then;if(e&&("object"==_typeof(e)||typeof e==r(1221))&&typeof t==r(1221))return function(){t[r(1988)](e,arguments)}}function p(r,e){var t=f,n=!1;function i(e){n||(n=!0,l[_0x3872(554)](r,e))}function a(e){n||(n=!0,l.resolve(r,e))}var o=_(function(){e(a,i)});o.status===t(1803)&&i(o[t(1203)])}function _(e,r){var t=f,n={};try{n[t(1203)]=e(r),n.status=t(876)}catch(e){n[t(774)]=t(1803),n.value=e}return n}process[f(1915)]||(o=["UNHANDLED"]),(r[f(946)]=t)[f(785)][f(2181)]=function(t){var n,i=f;return typeof t!=i(1221)?this:(n=this.constructor,this[i(1142)](function(e){var r=i;return n[r(665)](t())[r(1142)](function(){return e})},function(e){var r=i;return n[r(665)](t())[r(1142)](function(){throw e})}))},t.prototype.catch=function(e){return this[f(1142)](null,e)},t[f(785)][f(1142)]=function(e,r){var t,n=f;return typeof e!=n(1221)&&this[n(2153)]===u||"function"!=typeof r&&this[n(2153)]===s?this:(t=new this[n(2248)](h),process.browser||this[n(526)]===o&&(this[n(526)]=null),this[n(2153)]!==i?v(t,this[n(2153)]===u?e:r,this[n(1555)]):this[n(1106)].push(new c(t,e,r)),t)},c[f(785)][f(713)]=function(e){l[f(665)](this.promise,e)},c[f(785)][f(1632)]=function(e){var r=f;v(this[r(2107)],this[r(2172)],e)},c[f(785)][f(1166)]=function(e){var r=f;l[r(554)](this[r(2107)],e)},c.prototype[f(1769)]=function(e){var r=f;v(this[r(2107)],this[r(2226)],e)},l[f(665)]=function(e,r){var t=f,n=_(d,r);if(n[t(774)]===t(1803))return l[t(554)](e,n[t(1203)]);n=n[t(1203)];if(n)p(e,n);else{e[t(2153)]=u,e[t(1555)]=r;for(var i=-1,a=e.queue.length;++i<a;)e[t(1106)][i].callFulfilled(r)}return e},l[f(554)]=function(r,t){var n=f;r[n(2153)]=s,r[n(1555)]=t,process[n(1915)]||r[n(526)]===o&&a(function(){var e=n;r[e(526)]===o&&process[e(1375)](e(1847),t,r)});for(var e=-1,i=r[n(1106)].length;++e<i;)r[n(1106)][e][n(1166)](t);return r},t[f(665)]=function(e){var r=f;return e instanceof this?e:l[r(665)](new this(h),e)},t.reject=function(e){var r=f,t=new this(h);return l[r(554)](t,e)},t[f(1426)]=function(e){var r=f,i=this;if(Object.prototype.toString[r(1775)](e)!==r(2209))return this[r(554)](new TypeError(r(1659)));var a=e[r(1963)],o=!1;if(!a)return this[r(665)]([]);for(var s=new Array(a),u=0,t=-1,c=new this(h);++t<a;)((e,t)=>{var n=r;i[n(665)](e)[n(1142)](function(e){var r=n;s[t]=e,++u!==a||o||(o=!0,l[r(665)](c,s))},function(e){o||(o=!0,l[n(554)](c,e))})})(e[t],t);return c},t.race=function(e){var t=f,n=this;if("[object Array]"!==Object.prototype[t(641)].call(e))return this[t(554)](new TypeError(t(1659)));var r=e[t(1963)],i=!1;if(!r)return this[t(665)]([]);for(var a=-1,o=new this(h);++a<r;)(e=>{var r=t;n[r(665)](e)[r(1142)](function(e){i||(i=!0,l.resolve(o,e))},function(e){i||(i=!0,l[r(554)](o,e))})})(e[a]);return o}}),g=r(function(e,r){var t=$,n=null,n=("undefined"==typeof Promise?t(1068):_typeof(Promise))<"u"?Promise:J();r[t(946)]={Promise:n}}),A=r(function(c){var f=$,h=_(),l=p(),t=b(),n=W(),v=g();function e(e){return e}function d(e,r){for(var t=f,n=0;n<e[t(1963)];++n)r[n]=255&e[t(670)](n);return r}c[f(1201)]=function(r,t){var n=f;c[n(1433)]("blob");try{return new Blob([r],{type:t})}catch(e){try{var i=new(self[n(818)]||self[n(1707)]||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(r),i[n(1469)](t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var a={stringifyByChunk:function(e,r,t){var n=f,i=[],a=0,o=e[n(1963)];if(o<=t)return String[n(942)][n(1988)](null,e);for(;a<o;)"array"===r||r===n(1051)?i[n(1158)](String.fromCharCode.apply(null,e[n(2136)](a,Math.min(a+t,o)))):i[n(1158)](String[n(942)].apply(null,e[n(568)](a,Math[n(1722)](a+t,o)))),a+=t;return i.join("")},stringifyByChar:function(e){for(var r=f,t="",n=0;n<e[r(1963)];n++)t+=String[r(942)](e[n]);return t},applyCanBeUsed:{uint8array:(()=>{var e=f;try{return h[e(1587)]&&1===String[e(942)].apply(null,new Uint8Array(1)).length}catch(e){return!1}})(),nodebuffer:(()=>{var e=f;try{return h[e(1051)]&&1===String[e(942)][e(1988)](null,t[e(1417)](1)).length}catch(e){return!1}})()}};function r(e){var r=f,t=65536,n=c[r(1881)](e),i=!0;if(n===r(1587)?i=a[r(1060)].uint8array:n===r(1051)&&(i=a[r(1060)][r(1051)]),i)for(;1<t;)try{return a[r(642)](e,n,t)}catch(e){t=Math[r(482)](t/2)}return a[r(578)](e)}function i(e,r){for(var t=f,n=0;n<e[t(1963)];n++)r[n]=e[n];return r}c[f(1679)]=r;var o={};o.string={string:e,array:function(e){return d(e,new Array(e[f(1963)]))},arraybuffer:function(e){var r=f;return o[r(1191)][r(1587)](e)[r(1249)]},uint8array:function(e){return d(e,new Uint8Array(e[f(1963)]))},nodebuffer:function(e){return d(e,t[f(1417)](e.length))}},o.array={string:r,array:e,arraybuffer:function(e){var r=f;return new Uint8Array(e)[r(1249)]},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return t[f(789)](e)}},o[f(869)]={string:function(e){return r(new Uint8Array(e))},array:function(e){var r=f;return i(new Uint8Array(e),new Array(e[r(1451)]))},arraybuffer:e,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return t[f(789)](new Uint8Array(e))}},o[f(1587)]={string:r,array:function(e){return i(e,new Array(e[f(1963)]))},arraybuffer:function(e){return e[f(1249)]},uint8array:e,nodebuffer:function(e){return t[f(789)](e)}},o[f(1051)]={string:r,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){var r=f;return o[r(1051)][r(1587)](e)[r(1249)]},uint8array:function(e){return i(e,new Uint8Array(e[f(1963)]))},nodebuffer:e},c[f(1125)]=function(e,r){if(r=r||"",!e)return r;c[f(1433)](e);var t=c.getTypeOf(r);return o[t][e](r)},c[f(1881)]=function(e){var r=f;return"string"==typeof e?"string":Object[r(785)][r(641)][r(1775)](e)===r(2209)?r(502):h.nodebuffer&&t[r(1320)](e)?r(1051):h[r(1587)]&&e instanceof Uint8Array?r(1587):h.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},c[f(1433)]=function(e){var r=f;if(!h[e.toLowerCase()])throw new Error(e+r(684))},c[f(1590)]=65535,c[f(2031)]=-1,c.pretty=function(e){for(var r,t=f,n="",i=0;i<(e||"")[t(1963)];i++)n+="\\x"+((r=e[t(670)](i))<16?"0":"")+r[t(641)](16)[t(1169)]();return n},c.delay=function(e,r,t){n(function(){e[_0x3872(1988)](t||null,r||[])})},c[f(1828)]=function(e,r){function t(){}var n=f;t.prototype=r[n(785)],e[n(785)]=new t},c[f(469)]=function(){for(var e,r=f,t={},n=0;n<arguments[r(1963)];n++)for(e in arguments[n])arguments[n][r(981)](e)&&"u"<_typeof(t[e])&&(t[e]=arguments[n][e]);return t},c[f(2118)]=function(i,e,a,o,s){var u=f;return v[u(1930)][u(665)](e).then(function(r){var a=u;return h.blob&&(r instanceof Blob||-1!==[a(1556),a(1786)][a(2215)](Object[a(785)].toString.call(r)))&&("undefined"==typeof FileReader?"undefined":_typeof(FileReader))<"u"?new v[a(1930)](function(t,n){var i=a,e=new FileReader;e[i(489)]=function(e){var r=i;t(e[r(490)][r(2067)])},e.onerror=function(e){var r=i;n(e[r(490)][r(1803)])},e[i(2202)](r)}):r})[u(1142)](function(e){var r,t=u,n=c[t(1881)](e);return n?(n===t(869)?e=c.transformTo(t(1587),e):n===t(1191)&&(s?e=l[t(1004)](e):a&&!0!==o&&(e=d(n=e,new(h[(r=_0x3872)(1587)]?Uint8Array:Array)(n[r(1963)])))),e):v[t(1930)][t(554)](new Error(t(1784)+i+t(2187)))})}}),S=r(function(e,r){var i=$;function t(e){var r=_0x3872;this.name=e||r(1755),this[r(565)]={},this[r(687)]=null,this[r(640)]={},this[r(1621)]=!0,this.isFinished=!1,this[r(1770)]=!1,this[r(2085)]={data:[],end:[],error:[]},this[r(1952)]=null}t[i(785)]={push:function(e){var r=i;this[r(1375)](r(583),e)},end:function(){var r=i;if(this.isFinished)return!1;this.flush();try{this[r(1375)](r(1954)),this[r(1981)](),this[r(575)]=!0}catch(e){this.emit(r(1803),e)}return!0},error:function(e){var r=i;return!this[r(575)]&&(this[r(1621)]?this.generatedError=e:(this[r(575)]=!0,this.emit(r(1803),e),this[r(1952)]&&this[r(1952)][r(1803)](e),this.cleanUp()),!0)},on:function(e,r){return this[i(2085)][e].push(r),this},cleanUp:function(){var e=i;this[e(565)]=this.generatedError=this[e(640)]=null,this[e(2085)]=[]},emit:function(e,r){var t=i;if(this[t(2085)][e])for(var n=0;n<this[t(2085)][e].length;n++)this._listeners[e][n][t(1775)](this,r)},pipe:function(e){return e[i(1456)](this)},registerPrevious:function(e){var r=i;if(this[r(1770)])throw new Error(r(2186)+this+"' has already been used.");this[r(565)]=e.streamInfo,this[r(2025)](),this[r(1952)]=e;var t=this;return e.on(r(583),function(e){t[r(1957)](e)}),e.on(r(1954),function(){t[r(1954)]()}),e.on("error",function(e){t[r(1803)](e)}),this},pause:function(){var e=i;return!this[e(1621)]&&!this.isFinished&&(this[e(1621)]=!0,this[e(1952)]&&this.previous[e(1499)](),!0)},resume:function(){var e,r=i;return!(!this[r(1621)]||this.isFinished||(e=this[r(1621)]=!1,this[r(687)]&&(this[r(1803)](this[r(687)]),e=!0),this.previous&&this[r(1952)].resume(),e))},flush:function(){},processChunk:function(e){this[i(1158)](e)},withStreamInfo:function(e,r){var t=i;return this[t(640)][e]=r,this[t(2025)](),this},mergeStreamInfo:function(){var e,r=i;for(e in this[r(640)])this[r(640)].hasOwnProperty(e)&&(this.streamInfo[e]=this[r(640)][e])},lock:function(){var e=i;if(this.isLocked)throw new Error("The stream '"+this+e(473));this[e(1770)]=!0,this.previous&&this.previous[e(1699)]()},toString:function(){var e=i,r=e(859)+this[e(1180)];return this[e(1952)]?this.previous+e(1875)+r:r}},r[i(946)]=t}),D=r(function(a){for(var e,h=$,c=A(),l=_(),v=b(),r=S(),f=new Array(256),e=0;e<256;e++)f[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;f[254]=f[254]=1;function t(){var e=h;r[e(1775)](this,e(937)),this[e(669)]=null}function n(){r.call(this,"utf-8 encode")}a[h(1986)]=function(e){var r=h;if(l.nodebuffer)return v[r(789)](e,"utf-8");for(var t,n,i,a,o=e,s=_0x3872,u=o.length,c=0,f=0;f<u;f++)55296==(64512&(n=o[s(670)](f)))&&f+1<u&&56320==(64512&(i=o[s(670)](f+1)))&&(n=65536+(n-55296<<10)+(i-56320),f++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new(l[s(1587)]?Uint8Array:Array)(c),f=a=0;a<c;f++)55296==(64512&(n=o.charCodeAt(f)))&&f+1<u&&56320==(64512&(i=o[s(670)](f+1)))&&(n=65536+(n-55296<<10)+(i-56320),f++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},a[h(994)]=function(e){var r=h;if(l.nodebuffer)return c.transformTo(r(1051),e)[r(641)](r(1833));for(var t,n,i=e=c.transformTo(l[r(1587)]?r(1587):"array",e),r=_0x3872,a=i.length,o=new Array(2*a),s=0,u=0;u<a;)if((t=i[u++])<128)o[s++]=t;else if(4<(n=f[t]))o[s++]=65533,u+=n-1;else{for(t&=2===n?31:3===n?15:7;1<n&&u<a;)t=t<<6|63&i[u++],n--;1<n?o[s++]=65533:t<65536?o[s++]=t:(t-=65536,o[s++]=55296|t>>10&1023,o[s++]=56320|1023&t)}return o[r(1963)]!==s&&(o[r(568)]?o=o.subarray(0,s):o[r(1963)]=s),c[r(1679)](o)},c.inherits(t,r),t.prototype.processChunk=function(e){var r=h,t=c[r(1125)](l[r(1587)]?"uint8array":"array",e[r(583)]),n=(this[r(669)]&&this[r(669)][r(1963)]&&(l.uint8array?(n=t,(t=new Uint8Array(n[r(1963)]+this.leftOver.length))[r(1596)](this[r(669)],0),t[r(1596)](n,this[r(669)][r(1963)])):t=this[r(669)][r(1176)](t),this[r(669)]=null),((e,r)=>{for(var t=_0x3872,n=(r=(r=r||e[t(1963)])>e.length?e[t(1963)]:r)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+f[e[n]]>r?n:r})(t)),i=t;n!==t.length&&(l[r(1587)]?(i=t.subarray(0,n),this[r(669)]=t[r(568)](n,t.length)):(i=t[r(2136)](0,n),this[r(669)]=t[r(2136)](n,t[r(1963)]))),this[r(1158)]({data:a[r(994)](i),meta:e[r(1692)]})},t[h(785)][h(657)]=function(){var e=h;this[e(669)]&&this[e(669)][e(1963)]&&(this.push({data:a[e(994)](this[e(669)]),meta:{}}),this[e(669)]=null)},a[h(646)]=t,c.inherits(n,r),n[h(785)][h(1957)]=function(e){var r=h;this.push({data:a[r(1986)](e[r(583)]),meta:e[r(1692)]})},a[h(1233)]=n}),Q=r(function(e,r){var t=$,n=S(),i=A();function a(e){var r=_0x3872;n[r(1775)](this,r(1100)+e),this[r(717)]=e}i[t(1828)](a,n),a[t(785)][t(1957)]=function(e){var r=t;this[r(1158)]({data:i[r(1125)](this[r(717)],e[r(583)]),meta:e.meta})},r[t(946)]=a}),ee=r(function(e,r){var a=$,o=s()[a(1394)];function t(e,r,t){var n=a,i=(o[n(1775)](this,r),this[n(2191)]=e,this);e.on(n(583),function(e,r){i.push(e)||i._helper.pause(),t&&t(r)}).on(n(1803),function(e){var r=n;i[r(1375)](r(1803),e)}).on(n(1954),function(){i.push(null)})}A()[a(1828)](t,o),t[a(785)][a(2169)]=function(){var e=a;this[e(2191)][e(662)]()},r[a(946)]=t}),w=r(function(e,r){var f=$,h=A(),a=Q(),o=S(),l=p(),t=_(),n=g(),i=null;if(t[f(864)])try{i=ee()}catch(e){}function s(s,u){var c=f;return new n[c(1930)](function(r,t){var e=c,n=[],i=s[e(1922)],a=s._outputType,o=s[e(504)];s.on(e(583),function(e,r){n.push(e),u&&u(r)}).on(e(1803),function(e){n=[],t(e)}).on(e(1954),function(){try{var e=((e,r,t)=>{var n=f;switch(e){case n(1256):return h[n(1201)](h.transformTo("arraybuffer",r),t);case n(2262):return l[n(1421)](r);default:return h.transformTo(e,r)}})(a,((e,r)=>{for(var t=f,n=0,i=null,a=0,o=0;o<r.length;o++)a+=r[o][t(1963)];switch(e){case t(1191):return r[t(877)]("");case t(502):return Array[t(785)][t(1176)][t(1988)]([],r);case t(1587):for(i=new Uint8Array(a),o=0;o<r.length;o++)i[t(1596)](r[o],n),n+=r[o][t(1963)];return i;case t(1051):return Buffer[t(1176)](r);default:throw new Error(t(1226)+e+"'")}})(i,n),o);r(e)}catch(e){t(e)}n=[]})[e(662)]()})}function u(e,r,t){var n=f,i=r;switch(r){case"blob":case n(869):i=n(1587);break;case n(2262):i=n(1191)}try{this[n(1922)]=i,this._outputType=r,this[n(504)]=t,h.checkSupport(i),this[n(894)]=e[n(1724)](new a(i)),e[n(1699)]()}catch(e){this[n(894)]=new o(n(1803)),this._worker.error(e)}}u.prototype={accumulate:function(e){return s(this,e)},on:function(e,t){var n=f,i=this;return e===n(583)?this[n(894)].on(e,function(e){var r=n;t[r(1775)](i,e[r(583)],e[r(1692)])}):this[n(894)].on(e,function(){h[n(1272)](t,arguments,i)}),this},resume:function(){var e=f;return h[e(1272)](this._worker[e(662)],[],this[e(894)]),this},pause:function(){var e=f;return this[e(894)][e(1499)](),this},toNodejsStream:function(e){var r=f;if(h[r(1433)](r(864)),this[r(1960)]!==r(1051))throw new Error(this[r(1960)]+r(826));return new i(this,{objectMode:this[r(1960)]!==r(1051)},e)}},r.exports=u}),re=r(function(e){var r=$;e[r(2262)]=!1,e[r(2290)]=!1,e[r(919)]=!1,e[r(1977)]=!0,e.date=null,e[r(637)]=null,e[r(674)]=null,e[r(547)]=null,e[r(901)]=null,e.dosPermissions=null}),te=r(function(e,r){var n=$,i=A(),a=S();function t(e){var t=_0x3872,n=(a[t(1775)](this,t(1340)),this);this[t(797)]=!1,this[t(1709)]=0,this[t(936)]=0,this[t(583)]=null,this[t(725)]="",this[t(2075)]=!1,e[t(1142)](function(e){var r=t;n.dataIsReady=!0,n[r(583)]=e,n[r(936)]=e&&e.length||0,n.type=i[r(1881)](e),n[r(1621)]||n[r(764)]()},function(e){n[t(1803)](e)})}i[n(1828)](t,a),t.prototype[n(1981)]=function(){var e=n;a[e(785)][e(1981)][e(1775)](this),this[e(583)]=null},t[n(785)].resume=function(){var e=n;return!!a[e(785)].resume[e(1775)](this)&&(!this[e(2075)]&&this[e(797)]&&(this[e(2075)]=!0,i[e(1272)](this[e(764)],[],this)),!0)},t[n(785)]._tickAndRepeat=function(){var e=n;this[e(2075)]=!1,this[e(1621)]||this.isFinished||(this[e(1356)](),this[e(575)])||(i[e(1272)](this._tickAndRepeat,[],this),this._tickScheduled=!0)},t[n(785)][n(1356)]=function(){var e=n;if(this[e(1621)]||this[e(575)])return!1;var r=null,t=Math[e(1722)](this.max,this[e(1709)]+16384);if(this[e(1709)]>=this[e(936)])return this[e(1954)]();switch(this.type){case e(1191):r=this[e(583)][e(513)](this[e(1709)],t);break;case e(1587):r=this[e(583)][e(568)](this[e(1709)],t);break;case e(502):case e(1051):r=this[e(583)][e(2136)](this[e(1709)],t)}return this.index=t,this[e(1158)]({data:r,meta:{percent:this.max?this[e(1709)]/this[e(936)]*100:0}})},r[n(946)]=t}),h=r(function(e,r){var _=$,g=A();var m=(()=>{for(var e=[],r=0;r<256;r++){for(var t=r,n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})();r[_(946)]=function(e,r){var t=_;if("u"<_typeof(e)||!e[t(1963)])return 0;var n="string"!==g[t(1881)](e);if(n){var i=0|r,a=e,n=e.length,o=0,s=m,u=o+n;i^=-1;for(var c=o;c<u;c++)i=i>>>8^s[255&(i^a[c])];return-1^i}var f=0|r,h=e,n=e[t(1963)],o=0,l=_0x3872,v=m,d=o+n;f^=-1;for(var p=o;p<d;p++)f=f>>>8^v[255&(f^h[l(670)](p))];return-1^f}}),ne=r(function(e,r){var t=$,n=S(),i=h();function a(){var e=_0x3872;n.call(this,e(1868)),this.withStreamInfo(e(1728),0)}A()[t(1828)](a,n),a[t(785)][t(1957)]=function(e){var r=t;this[r(565)][r(1728)]=i(e.data,this[r(565)][r(1728)]||0),this[r(1158)](e)},r[t(946)]=a}),ie=r(function(e,r){var n=$,t=A(),i=S();function a(e){var r=_0x3872;i[r(1775)](this,r(903)+e),this[r(1517)]=e,this[r(2040)](e,0)}t.inherits(a,i),a[n(785)].processChunk=function(e){var r,t=n;e&&(r=this[t(565)][this.propName]||0,this[t(565)][this[t(1517)]]=r+e.data.length),i[t(785)][t(1957)].call(this,e)},r[n(946)]=a}),T=r(function(e,r){var i=$,n=g(),a=te(),o=ne(),s=ie();function t(e,r,t,n,i){var a=_0x3872;this[a(2096)]=e,this.uncompressedSize=r,this[a(1728)]=t,this[a(637)]=n,this[a(1983)]=i}t[i(785)]={getContentWorker:function(){var r=i,e=new a(n[r(1930)][r(665)](this.compressedContent))[r(1724)](this[r(637)].uncompressWorker()).pipe(new s(r(1316))),t=this;return e.on("end",function(){var e=r;if(this[e(565)][e(1316)]!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){var e=i;return new a(n[e(1930)][e(665)](this.compressedContent))[e(2040)]("compressedSize",this.compressedSize)[e(2040)]("uncompressedSize",this.uncompressedSize)[e(2040)](e(1728),this.crc32)[e(2040)](e(637),this[e(637)])}},t[i(1571)]=function(e,r,t){var n=i;return e[n(1724)](new o)[n(1724)](new s(n(2231)))[n(1724)](r[n(904)](t))[n(1724)](new s("compressedSize")).withStreamInfo("compression",r)},r[i(946)]=t}),ae=r(function(e,r){for(var t,o=$,s=w(),n=te(),u=D(),i=T(),c=S(),a=function(e,r,t){var n=_0x3872;this[n(1180)]=e,this[n(919)]=t.dir,this[n(1650)]=t[n(1650)],this[n(547)]=t[n(547)],this[n(901)]=t[n(901)],this[n(760)]=t[n(760)],this[n(1694)]=r,this[n(1583)]=t[n(2290)],this.options={compression:t.compression,compressionOptions:t[n(674)]}},f=(a[o(785)]={internalStream:function(e){var r=o,t=null,n="string";try{if(!e)throw new Error(r(1579));var i=(n=e.toLowerCase())===r(1191)||"text"===n,a=(n!==r(685)&&n!==r(1649)||(n=r(1191)),t=this[r(1466)](),!this[r(1583)]);a&&!i&&(t=t[r(1724)](new u[r(1233)])),!a&&i&&(t=t[r(1724)](new u[r(646)]))}catch(e){(t=new c(r(1803)))[r(1803)](e)}return new s(t,n,"")},async:function(e,r){return this[o(1678)](e).accumulate(r)},nodeStream:function(e,r){var t=o;return this[t(1678)](e||t(1051))[t(2114)](r)},_compressWorker:function(e,r){var t,n=o;return this[n(1694)]instanceof i&&this[n(1694)].compression[n(1940)]===e[n(1940)]?this[n(1694)][n(2004)]():(t=this[n(1466)](),this[n(1583)]||(t=t[n(1724)](new u[n(1233)])),i[n(1571)](t,e,r))},_decompressWorker:function(){var e=o;return this._data instanceof i?this[e(1694)][e(1459)]():this._data instanceof c?this[e(1694)]:new n(this[e(1694)])}},[o(556),o(1508),o(519),"asUint8Array",o(1274)]),h=function(){throw new Error(o(834))},t=0;t<f[o(1963)];t++)a[o(785)][f[t]]=h;r.exports=a}),X=r(function(t){var u=$,e=(typeof Uint8Array===u(1068)?u(1068):_typeof(Uint8Array))<"u"&&(typeof Uint16Array===u(1068)?u(1068):_typeof(Uint16Array))<"u"&&(typeof Int32Array===u(1068)?"undefined":_typeof(Int32Array))<"u";t[u(861)]=function(e){for(var r,t,n,i=u,a=Array.prototype[i(2136)][i(1775)](arguments,1);a[i(1963)];){var o=a[i(1804)]();if(o){if(_typeof(o)!=i(1184))throw new TypeError(o+i(1091));for(var s in o)r=o,t=s,n=void 0,n=u,Object[n(785)].hasOwnProperty[n(1775)](r,t)&&(e[s]=o[s])}}return e},t[u(1630)]=function(e,r){var t=u;return e.length===r?e:e[t(568)]?e[t(568)](0,r):(e[t(1963)]=r,e)};var n={arraySet:function(e,r,t,n,i){var a=u;if(r.subarray&&e[a(568)])e[a(1596)](r[a(568)](t,t+n),i);else for(var o=0;o<n;o++)e[i+o]=r[t+o]},flattenChunks:function(e){for(var r,t,n,i=u,a=0,o=0,s=e[i(1963)];o<s;o++)a+=e[o][i(1963)];for(n=new Uint8Array(a),o=r=0,s=e.length;o<s;o++)t=e[o],n[i(1596)](t,r),r+=t.length;return n}},i={arraySet:function(e,r,t,n,i){for(var a=0;a<n;a++)e[i+a]=r[t+a]},flattenChunks:function(e){var r=u;return[][r(1176)][r(1988)]([],e)}};t[u(1817)]=function(e){var r=u;e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t[r(861)](t,n)):(t[r(2049)]=Array,t[r(1108)]=Array,t[r(2237)]=Array,t[r(861)](t,i))},t[u(1817)](e)}),oe=r(function(e){var r=$,o=X(),l=0,v=1;function t(e){for(var r=e[_0x3872(1963)];0<=--r;)e[r]=0}var u,c,f,h=29,d=256,p=d+1+h,_=30,g=19,S=2*p+1,D=15,i=16,L=7,m=256,y=16,b=17,w=18,k=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(p+2)),A=(t(E),new Array(2*_)),T=(t(A),new Array(512)),O=(t(T),new Array(256)),B=(t(O),new Array(h)),P=(t(B),new Array(_));function F(e,r,t,n,i){var a=_0x3872;this[a(1078)]=e,this[a(1444)]=r,this[a(1144)]=t,this[a(2088)]=n,this[a(1237)]=i,this.has_stree=e&&e[a(1963)]}function I(e,r){var t=_0x3872;this[t(2052)]=e,this[t(1182)]=0,this.stat_desc=r}function M(e){return e<256?T[e]:T[256+(e>>>7)]}function a(e,r){var t=_0x3872;e[t(1646)][e[t(1346)]++]=255&r,e[t(1646)][e.pending++]=r>>>8&255}function R(e,r,t){var n=_0x3872;e[n(1234)]>i-t?(e[n(1898)]|=r<<e[n(1234)]&65535,a(e,e[n(1898)]),e[n(1898)]=r>>i-e.bi_valid,e.bi_valid+=t-i):(e.bi_buf|=r<<e.bi_valid&65535,e.bi_valid+=t)}function j(e,r,t){R(e,t[2*r],t[2*r+1])}function z(e,r){for(var t=0;t|=1&e,e>>>=1,t<<=1,0<--r;);return t>>>1}function U(e,r,t){for(var n,i=new Array(D+1),a=0,o=1;o<=D;o++)i[o]=a=a+t[o-1]<<1;for(n=0;n<=r;n++){var s=e[2*n+1];0!==s&&(e[2*n]=z(i[s]++,s))}}function q(e){for(var r=_0x3872,t=0;t<p;t++)e[r(1866)][2*t]=0;for(t=0;t<_;t++)e[r(528)][2*t]=0;for(t=0;t<g;t++)e[r(1885)][2*t]=0;e.dyn_ltree[2*m]=1,e[r(1273)]=e[r(1115)]=0,e.last_lit=e[r(1593)]=0}function K(e){var r=_0x3872;8<e[r(1234)]?a(e,e[r(1898)]):0<e.bi_valid&&(e[r(1646)][e[r(1346)]++]=e[r(1898)]),e[r(1898)]=0,e[r(1234)]=0}function s(e,r,t,n){var i=2*r,a=2*t;return e[i]<e[a]||e[i]===e[a]&&n[r]<=n[t]}function N(e,r,t){for(var n=_0x3872,i=e[n(1405)][t],a=t<<1;a<=e.heap_len&&(a<e[n(1873)]&&s(r,e[n(1405)][a+1],e.heap[a],e[n(1266)])&&a++,!s(r,i,e[n(1405)][a],e[n(1266)]));)e[n(1405)][t]=e[n(1405)][a],t=a,a<<=1;e[n(1405)][t]=i}function Z(e,r,t){var n,i,a,o,s=_0x3872,u=0;if(0!==e.last_lit)for(;n=e[s(1646)][e[s(1211)]+2*u]<<8|e[s(1646)][e.d_buf+2*u+1],i=e[s(1646)][e.l_buf+u],u++,0==n?j(e,i,r):(j(e,(a=O[i])+d+1,r),0!==(o=k[a])&&R(e,i-=B[a],o),j(e,a=M(--n),t),0!==(o=x[a])&&R(e,n-=P[a],o)),u<e.last_lit;);j(e,m,r)}function G(e,r){var t,n,i,a=_0x3872,o=r[a(2052)],s=r[a(2212)].static_tree,u=r[a(2212)].has_stree,c=r.stat_desc.elems,f=-1;for(e[a(1873)]=0,e[a(607)]=S,t=0;t<c;t++)0!==o[2*t]?(e.heap[++e[a(1873)]]=f=t,e.depth[t]=0):o[2*t+1]=0;for(;e[a(1873)]<2;)o[2*(i=e.heap[++e.heap_len]=f<2?++f:0)]=1,e[a(1266)][i]=0,e.opt_len--,u&&(e.static_len-=s[2*i+1]);for(r[a(1182)]=f,t=e[a(1873)]>>1;1<=t;t--)N(e,o,t);for(i=c;t=e[a(1405)][1],e[a(1405)][1]=e[a(1405)][e[a(1873)]--],N(e,o,1),n=e[a(1405)][1],e[a(1405)][--e[a(607)]]=t,e[a(1405)][--e[a(607)]]=n,o[2*i]=o[2*t]+o[2*n],e[a(1266)][i]=(e.depth[t]>=e[a(1266)][n]?e[a(1266)][t]:e[a(1266)][n])+1,o[2*t+1]=o[2*n+1]=i,e[a(1405)][1]=i++,N(e,o,1),2<=e.heap_len;);e.heap[--e[a(607)]]=e.heap[1];for(var h,l,v,d,p,_=e,g=_0x3872,m=r[g(2052)],y=r[g(1182)],b=r[g(2212)][g(1078)],w=r[g(2212)][g(1214)],k=r[g(2212)][g(1444)],x=r[g(2212)][g(1144)],C=r[g(2212)][g(1237)],E=0,A=0;A<=D;A++)_[g(1175)][A]=0;for(m[2*_.heap[_[g(607)]]+1]=0,h=_.heap_max+1;h<S;h++)C<(A=m[2*m[2*(l=_[g(1405)][h])+1]+1]+1)&&(A=C,E++),m[2*l+1]=A,y<l||(_.bl_count[A]++,d=0,x<=l&&(d=k[l-x]),p=m[2*l],_[g(1273)]+=p*(A+d),!w)||(_[g(1115)]+=p*(b[2*l+1]+d));if(0!==E){do{for(A=C-1;0===_[g(1175)][A];)A--}while(_[g(1175)][A]--,_[g(1175)][A+1]+=2,_[g(1175)][C]--,0<(E-=2));for(A=C;0!==A;A--)for(l=_[g(1175)][A];0!==l;)y<(v=_[g(1405)][--h])||(m[2*v+1]!==A&&(_[g(1273)]+=(A-m[2*v+1])*m[2*v],m[2*v+1]=A),l--)}U(o,f,e[a(1175)])}function V(e,r,t){var n,i,a=_0x3872,o=-1,s=r[1],u=0,c=7,f=4;for(0===s&&(c=138,f=3),r[2*(t+1)+1]=65535,n=0;n<=t;n++)i=s,s=r[2*(n+1)+1],++u<c&&i===s||(u<f?e[a(1885)][2*i]+=u:0!==i?(i!==o&&e.bl_tree[2*i]++,e[a(1885)][2*y]++):u<=10?e[a(1885)][2*b]++:e[a(1885)][2*w]++,o=i,f=(u=0)===s?(c=138,3):i===s?(c=6,3):(c=7,4))}function W(e,r,t){var n,i,a=_0x3872,o=-1,s=r[1],u=0,c=7,f=4;for(0===s&&(c=138,f=3),n=0;n<=t;n++)if(i=s,s=r[2*(n+1)+1],!(++u<c&&i===s)){if(u<f)for(;j(e,i,e[a(1885)]),0!=--u;);else 0!==i?(i!==o&&(j(e,i,e.bl_tree),u--),j(e,y,e[a(1885)]),R(e,u-3,2)):u<=10?(j(e,b,e[a(1885)]),R(e,u-3,3)):(j(e,w,e[a(1885)]),R(e,u-11,7));o=i,f=(u=0)===s?(c=138,3):i===s?(c=6,3):(c=7,4)}}t(P);var Y=!1;function J(e,r,t,n){var i;R(e,0+(n?1:0),3),n=r,r=t,t=!0,i=_0x3872,K(e=e),t&&(a(e,r),a(e,~r)),o[i(1611)](e.pending_buf,e[i(811)],n,r,e[i(1346)]),e[i(1346)]+=r}e[r(1263)]=function(e){var r=_0x3872;if(!Y){for(var t,n,i,a=new Array(D+1),o=0,s=0;s<h-1;s++)for(B[s]=o,t=0;t<1<<k[s];t++)O[o++]=s;for(O[o-1]=s,s=i=0;s<16;s++)for(P[s]=i,t=0;t<1<<x[s];t++)T[i++]=s;for(i>>=7;s<_;s++)for(P[s]=i<<7,t=0;t<1<<x[s]-7;t++)T[256+i++]=s;for(n=0;n<=D;n++)a[n]=0;for(t=0;t<=143;)E[2*t+1]=8,t++,a[8]++;for(;t<=255;)E[2*t+1]=9,t++,a[9]++;for(;t<=279;)E[2*t+1]=7,t++,a[7]++;for(;t<=287;)E[2*t+1]=8,t++,a[8]++;for(U(E,p+1,a),t=0;t<_;t++)A[2*t+1]=5,A[2*t]=z(t,5);u=new F(E,k,d+1,p,D),c=new F(A,x,0,_,D),f=new F(new Array(0),H,0,g,L),Y=!0}e[r(472)]=new I(e.dyn_ltree,u),e.d_desc=new I(e[r(528)],c),e[r(991)]=new I(e.bl_tree,f),e[r(1898)]=0,e.bi_valid=0,q(e)},e._tr_stored_block=J,e[r(1066)]=function(e,r,t,n){var i,a,o=_0x3872,s=0;if(0<e.level?(2===e[o(726)][o(1648)]&&(e.strm[o(1648)]=(e=>{for(var r=_0x3872,t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e[r(1866)][2*n])return l;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e[r(1866)][26])return v;for(n=32;n<d;n++)if(0!==e[r(1866)][2*n])return v;return l})(e)),G(e,e[o(472)]),G(e,e[o(1600)]),s=(e=>{var r,t=_0x3872;for(V(e,e[t(1866)],e.l_desc[t(1182)]),V(e,e[t(528)],e[t(1600)][t(1182)]),G(e,e[t(991)]),r=g-1;3<=r&&0===e[t(1885)][2*C[r]+1];r--);return e.opt_len+=3*(r+1)+5+5+4,r})(e),i=e.opt_len+3+7>>>3,(a=e[o(1115)]+3+7>>>3)<=i&&(i=a)):i=a=t+5,t+4<=i&&-1!==r)J(e,r,t,n);else if(4===e[o(1002)]||a===i)R(e,2+(n?1:0),3),Z(e,E,A);else{R(e,4+(n?1:0),3);var u,c=e,f=(r=e[o(472)].max_code+1,t=e[o(1600)][o(1182)]+1,s+1),h=_0x3872;for(R(c,r-257,5),R(c,t-1,5),R(c,f-4,4),u=0;u<f;u++)R(c,c[h(1885)][2*C[u]+1],3);W(c,c.dyn_ltree,r-1),W(c,c[h(528)],t-1),Z(e,e[o(1866)],e[o(528)])}q(e),n&&K(e)},e._tr_tally=function(e,r,t){var n=_0x3872;return e[n(1646)][e[n(1211)]+2*e[n(618)]]=r>>>8&255,e[n(1646)][e[n(1211)]+2*e[n(618)]+1]=255&r,e[n(1646)][e[n(501)]+e.last_lit]=255&t,e.last_lit++,0===r?e.dyn_ltree[2*t]++:(e[n(1593)]++,r--,e.dyn_ltree[2*(O[t]+d+1)]++,e[n(528)][2*M(r)]++),e[n(618)]===e[n(917)]-1},e._tr_align=function(e){var r;R(e,2,3),j(e,m,E),16===(e=e)[(r=_0x3872)(1234)]?(a(e,e[r(1898)]),e[r(1898)]=0,e[r(1234)]=0):8<=e[r(1234)]&&(e.pending_buf[e.pending++]=255&e[r(1898)],e.bi_buf>>=8,e.bi_valid-=8)}}),se=r(function(e,r){r[$(946)]=function(e,r,t,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==t;){for(t-=o=2e3<t?2e3:t;a=a+(i=i+r[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}}),ue=r(function(e,r){var s=(()=>{for(var e=[],r=0;r<256;r++){for(var t=r,n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e})();r.exports=function(e,r,t,n){var i=s,a=n+t;e^=-1;for(var o=n;o<a;o++)e=e>>>8^i[255&(e^r[o])];return-1^e}}),V=r(function(e,r){var t=$;r[t(946)]={2:t(1396),1:t(1181),0:"","-1":t(1546),"-2":t(1605),"-3":t(668),"-4":t(1513),"-5":t(698),"-6":t(799)}}),ce=r(function(e){var u,r=$,v=X(),c=oe(),d=se(),p=ue(),j=V(),f=0,h=4,l=0,_=-2,N=-1,G=4,L=2,g=8,H=9,t=286,M=30,z=19,U=2*t+1,q=15,m=3,y=258,b=y+m+1,w=42,k=113,x=1,C=2,E=3,A=4;function S(e,r){return e[_0x3872(1326)]=j[r],r}function D(e){return(e<<1)-(4<e?9:0)}function T(e){for(var r=e.length;0<=--r;)e[r]=0}function O(e){var r=_0x3872,t=e[r(2153)],n=t[r(1346)];0!==(n=n>e[r(688)]?e[r(688)]:n)&&(v.arraySet(e[r(510)],t[r(1646)],t[r(1971)],n,e.next_out),e[r(676)]+=n,t.pending_out+=n,e.total_out+=n,e[r(688)]-=n,t.pending-=n,0===t[r(1346)])&&(t[r(1971)]=0)}function B(e,r){var t=_0x3872;c[t(1066)](e,0<=e[t(1110)]?e[t(1110)]:-1,e[t(2044)]-e.block_start,r),e[t(1110)]=e[t(2044)],O(e.strm)}function P(e,r){var t=_0x3872;e.pending_buf[e[t(1346)]++]=r}function F(e,r){var t=_0x3872;e[t(1646)][e.pending++]=r>>>8&255,e.pending_buf[e[t(1346)]++]=255&r}function o(e,r){var t,n,i=_0x3872,a=e[i(2091)],o=e[i(2044)],s=e[i(814)],u=e[i(737)],c=e[i(2044)]>e[i(1973)]-b?e[i(2044)]-(e[i(1973)]-b):0,f=e[i(811)],h=e[i(959)],l=e[i(2240)],v=e[i(2044)]+y,d=f[o+s-1],p=f[o+s];e[i(814)]>=e.good_match&&(a>>=2),e.lookahead<u&&(u=e[i(2130)]);do{if(f[(t=r)+s]===p&&f[t+s-1]===d&&f[t]===f[o]&&f[++t]===f[o+1]){for(o+=2,t++;f[++o]===f[++t]&&f[++o]===f[++t]&&f[++o]===f[++t]&&f[++o]===f[++t]&&f[++o]===f[++t]&&f[++o]===f[++t]&&f[++o]===f[++t]&&f[++o]===f[++t]&&o<v;);if(n=y-(v-o),o=v-y,s<n){if(e[i(1313)]=r,u<=(s=n))break;d=f[o+s-1],p=f[o+s]}}}while((r=l[r&h])>c&&0!=--a);return s<=e[i(2130)]?s:e.lookahead}function I(e){var r,t,n,i,a,o,s,u,c,f,h=_0x3872,l=e[h(1973)];do{if(u=e[h(2259)]-e.lookahead-e[h(2044)],e[h(2044)]>=l+(l-b)){for(v[h(1611)](e[h(811)],e[h(811)],l,l,0),e.match_start-=l,e[h(2044)]-=l,e[h(1110)]-=l,r=t=e[h(1544)];n=e.head[--r],e[h(2109)][r]=l<=n?n-l:0,--t;);for(r=t=l;n=e[h(2240)][--r],e[h(2240)][r]=l<=n?n-l:0,--t;);u+=l}if(0===e[h(726)][h(2242)])break;if(a=e.strm,o=e[h(811)],s=e[h(2044)]+e[h(2130)],u=u,f=c=void 0,f=a[(c=_0x3872)(2242)],t=0===(f=u<f?u:f)?0:(a.avail_in-=f,v[c(1611)](o,a[c(2074)],a.next_in,f,s),1===a[c(2153)][c(1906)]?a[c(664)]=d(a[c(664)],o,f,s):2===a[c(2153)].wrap&&(a[c(664)]=p(a[c(664)],o,f,s)),a[c(1602)]+=f,a.total_in+=f,f),e[h(2130)]+=t,e[h(2130)]+e.insert>=m)for(i=e[h(2044)]-e[h(1731)],e.ins_h=e[h(811)][i],e.ins_h=(e.ins_h<<e[h(1837)]^e[h(811)][i+1])&e[h(1462)];e[h(1731)]&&(e.ins_h=(e[h(1766)]<<e[h(1837)]^e[h(811)][i+m-1])&e[h(1462)],e[h(2240)][i&e[h(959)]]=e[h(2109)][e.ins_h],e[h(2109)][e[h(1766)]]=i,i++,e[h(1731)]--,!(e[h(2130)]+e[h(1731)]<m)););}while(e.lookahead<b&&0!==e[h(726)][h(2242)])}function n(e,r){for(var t,n,i=_0x3872;;){if(e[i(2130)]<b){if(I(e),e.lookahead<b&&r===f)return x;if(0===e[i(2130)])break}if(t=0,m<=e.lookahead&&(e[i(1766)]=(e[i(1766)]<<e[i(1837)]^e[i(811)][e[i(2044)]+m-1])&e[i(1462)],t=e.prev[e[i(2044)]&e.w_mask]=e[i(2109)][e[i(1766)]],e[i(2109)][e[i(1766)]]=e.strstart),0!==t&&e.strstart-t<=e[i(1973)]-b&&(e[i(1677)]=o(e,t)),m<=e.match_length)if(n=c[i(2278)](e,e[i(2044)]-e[i(1313)],e.match_length-m),e.lookahead-=e[i(1677)],e[i(1677)]<=e[i(1777)]&&e[i(2130)]>=m){for(e[i(1677)]--;e.strstart++,e.ins_h=(e[i(1766)]<<e.hash_shift^e.window[e[i(2044)]+m-1])&e[i(1462)],t=e.prev[e[i(2044)]&e[i(959)]]=e.head[e[i(1766)]],e[i(2109)][e[i(1766)]]=e[i(2044)],0!=--e.match_length;);e[i(2044)]++}else e[i(2044)]+=e.match_length,e[i(1677)]=0,e[i(1766)]=e[i(811)][e[i(2044)]],e[i(1766)]=(e.ins_h<<e[i(1837)]^e[i(811)][e[i(2044)]+1])&e.hash_mask;else n=c._tr_tally(e,0,e[i(811)][e[i(2044)]]),e[i(2130)]--,e[i(2044)]++;if(n&&(B(e,!1),0===e[i(726)][i(688)]))return x}return e[i(1731)]=e[i(2044)]<m-1?e[i(2044)]:m-1,r===h?(B(e,!0),0===e[i(726)][i(688)]?E:A):e[i(618)]&&(B(e,!1),0===e[i(726)].avail_out)?x:C}function i(e,r){for(var t,n,i,a=_0x3872;;){if(e[a(2130)]<b){if(I(e),e[a(2130)]<b&&r===f)return x;if(0===e[a(2130)])break}if(t=0,e[a(2130)]>=m&&(e.ins_h=(e[a(1766)]<<e[a(1837)]^e[a(811)][e[a(2044)]+m-1])&e[a(1462)],t=e[a(2240)][e[a(2044)]&e.w_mask]=e[a(2109)][e[a(1766)]],e.head[e[a(1766)]]=e[a(2044)]),e[a(814)]=e[a(1677)],e[a(1219)]=e[a(1313)],e[a(1677)]=m-1,0!==t&&e[a(814)]<e.max_lazy_match&&e[a(2044)]-t<=e[a(1973)]-b&&(e.match_length=o(e,t),e.match_length<=5)&&(1===e.strategy||e[a(1677)]===m&&4096<e.strstart-e[a(1313)])&&(e[a(1677)]=m-1),e[a(814)]>=m&&e.match_length<=e[a(814)]){for(i=e[a(2044)]+e.lookahead-m,n=c[a(2278)](e,e[a(2044)]-1-e.prev_match,e.prev_length-m),e[a(2130)]-=e.prev_length-1,e[a(814)]-=2;++e[a(2044)]<=i&&(e[a(1766)]=(e.ins_h<<e.hash_shift^e[a(811)][e[a(2044)]+m-1])&e[a(1462)],t=e[a(2240)][e.strstart&e[a(959)]]=e.head[e.ins_h],e.head[e[a(1766)]]=e[a(2044)]),0!=--e[a(814)];);if(e[a(1904)]=0,e[a(1677)]=m-1,e[a(2044)]++,n&&(B(e,!1),0===e.strm[a(688)]))return x}else if(e.match_available){if((n=c[a(2278)](e,0,e[a(811)][e[a(2044)]-1]))&&B(e,!1),e.strstart++,e.lookahead--,0===e[a(726)][a(688)])return x}else e.match_available=1,e[a(2044)]++,e[a(2130)]--}return e[a(1904)]&&(n=c._tr_tally(e,0,e.window[e[a(2044)]-1]),e.match_available=0),e[a(1731)]=e[a(2044)]<m-1?e[a(2044)]:m-1,r===h?(B(e,!0),0===e[a(726)].avail_out?E:A):e.last_lit&&(B(e,!1),0===e[a(726)][a(688)])?x:C}function a(e,r,t,n,i){var a=_0x3872;this[a(1001)]=e,this[a(1634)]=r,this[a(1953)]=t,this.max_chain=n,this[a(603)]=i}function K(){var e=_0x3872;this[e(726)]=null,this[e(774)]=0,this[e(1646)]=null,this[e(2012)]=0,this[e(1971)]=0,this[e(1346)]=0,this.wrap=0,this.gzhead=null,this[e(1717)]=0,this[e(739)]=g,this.last_flush=-1,this[e(1973)]=0,this.w_bits=0,this[e(959)]=0,this.window=null,this[e(2259)]=0,this.prev=null,this[e(2109)]=null,this[e(1766)]=0,this[e(1544)]=0,this[e(1626)]=0,this.hash_mask=0,this.hash_shift=0,this[e(1110)]=0,this[e(1677)]=0,this[e(1219)]=0,this.match_available=0,this[e(2044)]=0,this.match_start=0,this.lookahead=0,this[e(814)]=0,this.max_chain_length=0,this[e(1777)]=0,this[e(734)]=0,this[e(1002)]=0,this.good_match=0,this[e(737)]=0,this[e(1866)]=new v.Buf16(2*U),this[e(528)]=new v[e(1108)](2*(2*M+1)),this[e(1885)]=new v[e(1108)](2*(2*z+1)),T(this[e(1866)]),T(this[e(528)]),T(this.bl_tree),this[e(472)]=null,this[e(1600)]=null,this[e(991)]=null,this.bl_count=new v[e(1108)](q+1),this[e(1405)]=new v[e(1108)](2*t+1),T(this[e(1405)]),this.heap_len=0,this.heap_max=0,this[e(1266)]=new v[e(1108)](2*t+1),T(this[e(1266)]),this[e(501)]=0,this[e(917)]=0,this[e(618)]=0,this[e(1211)]=0,this[e(1273)]=0,this[e(1115)]=0,this[e(1593)]=0,this[e(1731)]=0,this[e(1898)]=0,this.bi_valid=0}function s(e){var r,t=_0x3872;return e&&e[t(2153)]?(e[t(758)]=e[t(613)]=0,e[t(1648)]=L,(r=e[t(2153)])[t(1346)]=0,r[t(1971)]=0,r[t(1906)]<0&&(r.wrap=-r.wrap),r[t(774)]=r[t(1906)]?w:k,e[t(664)]=2===r[t(1906)]?0:1,r[t(2266)]=f,c._tr_init(r),l):S(e,_)}function R(e){var r=_0x3872,t=s(e);return t===l&&((e=e[r(2153)])[(r=_0x3872)(2259)]=2*e[r(1973)],T(e[r(2109)]),e[r(1777)]=u[e[r(734)]][r(1634)],e[r(2219)]=u[e.level][r(1001)],e.nice_match=u[e[r(734)]][r(1953)],e.max_chain_length=u[e[r(734)]][r(1299)],e[r(2044)]=0,e[r(1110)]=0,e[r(2130)]=0,e[r(1731)]=0,e[r(1677)]=e[r(814)]=m-1,e[r(1904)]=0,e.ins_h=0),t}function Z(e,r,t,n,i,a){var o=_0x3872;if(!e)return _;var s=1;if(r===N&&(r=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||H<i||t!==g||n<8||15<n||r<0||9<r||a<0||G<a)return S(e,_);8===n&&(n=9);var u=new K;return(e[o(2153)]=u)[o(726)]=e,u[o(1906)]=s,u[o(813)]=null,u[o(1604)]=n,u[o(1973)]=1<<u[o(1604)],u.w_mask=u[o(1973)]-1,u[o(1626)]=i+7,u[o(1544)]=1<<u[o(1626)],u[o(1462)]=u[o(1544)]-1,u[o(1837)]=~~((u[o(1626)]+m-1)/m),u.window=new v[o(2049)](2*u[o(1973)]),u[o(2109)]=new v[o(1108)](u.hash_size),u.prev=new v.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u[o(917)],u[o(1646)]=new v[o(2049)](u[o(2012)]),u[o(1211)]=+u[o(917)],u[o(501)]=3*u[o(917)],u[o(734)]=r,u.strategy=a,u[o(739)]=t,R(e)}u=[new a(0,0,0,0,function(e,r){var t=_0x3872,n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e[t(2130)]<=1){if(I(e),0===e[t(2130)]&&r===f)return x;if(0===e[t(2130)])break}e[t(2044)]+=e[t(2130)],e[t(2130)]=0;var i=e.block_start+n;if((0===e[t(2044)]||e[t(2044)]>=i)&&(e[t(2130)]=e.strstart-i,e[t(2044)]=i,B(e,!1),0===e.strm[t(688)])||e[t(2044)]-e.block_start>=e[t(1973)]-b&&(B(e,!1),0===e[t(726)][t(688)]))return x}return e[t(1731)]=0,r===h?(B(e,!0),0===e[t(726)][t(688)]?E:A):(e[t(2044)]>e[t(1110)]&&(B(e,!1),e.strm.avail_out),x)}),new a(4,4,8,4,n),new a(4,5,16,8,n),new a(4,6,32,32,n),new a(4,4,16,16,i),new a(8,16,32,32,i),new a(8,16,128,128,i),new a(8,32,128,256,i),new a(32,128,258,1024,i),new a(32,258,258,4096,i)],e[r(1324)]=function(e,r){return Z(e,r,g,15,8,0)},e[r(1362)]=Z,e.deflateReset=R,e[r(914)]=s,e[r(1543)]=function(e,r){var t=_0x3872;return e&&e[t(2153)]&&2===e[t(2153)].wrap?(e[t(2153)][t(813)]=r,l):_},e[r(600)]=function(e,r){var t,n,i,a,o=_0x3872;if(!e||!e.state||5<r||r<0)return e?S(e,_):_;if(n=e[o(2153)],!e[o(510)]||!e.input&&0!==e[o(2242)]||666===n[o(774)]&&r!==h)return S(e,0===e[o(688)]?-5:_);if(n[o(726)]=e,t=n[o(2266)],n.last_flush=r,n.status===w&&(2===n[o(1906)]?(e[o(664)]=0,P(n,31),P(n,139),P(n,8),n.gzhead?(P(n,(n[o(813)].text?1:0)+(n[o(813)][o(2058)]?2:0)+(n.gzhead[o(623)]?4:0)+(n[o(813)].name?8:0)+(n[o(813)][o(547)]?16:0)),P(n,255&n[o(813)][o(1561)]),P(n,n[o(813)][o(1561)]>>8&255),P(n,n[o(813)][o(1561)]>>16&255),P(n,n[o(813)][o(1561)]>>24&255),P(n,9===n.level?2:2<=n.strategy||n[o(734)]<2?4:0),P(n,255&n[o(813)].os),n.gzhead.extra&&n.gzhead[o(623)][o(1963)]&&(P(n,255&n.gzhead[o(623)][o(1963)]),P(n,n[o(813)][o(623)][o(1963)]>>8&255)),n[o(813)][o(2058)]&&(e.adler=p(e[o(664)],n[o(1646)],n.pending,0)),n.gzindex=0,n[o(774)]=69):(P(n,0),P(n,0),P(n,0),P(n,0),P(n,0),P(n,9===n[o(734)]?2:2<=n[o(1002)]||n.level<2?4:0),P(n,3),n[o(774)]=k)):(s=g+(n[o(1604)]-8<<4)<<8,s|=(2<=n[o(1002)]||n[o(734)]<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n[o(2044)]&&(s|=32),s+=31-s%31,n[o(774)]=k,F(n,s),0!==n[o(2044)]&&(F(n,e[o(664)]>>>16),F(n,65535&e[o(664)])),e[o(664)]=1)),69===n[o(774)])if(n.gzhead[o(623)]){for(i=n[o(1346)];n[o(1717)]<(65535&n[o(813)][o(623)][o(1963)])&&(n[o(1346)]!==n[o(2012)]||(n[o(813)].hcrc&&n.pending>i&&(e[o(664)]=p(e[o(664)],n[o(1646)],n[o(1346)]-i,i)),O(e),i=n[o(1346)],n[o(1346)]!==n[o(2012)]));)P(n,255&n.gzhead[o(623)][n[o(1717)]]),n.gzindex++;n[o(813)].hcrc&&n[o(1346)]>i&&(e[o(664)]=p(e.adler,n[o(1646)],n[o(1346)]-i,i)),n[o(1717)]===n.gzhead[o(623)][o(1963)]&&(n[o(1717)]=0,n[o(774)]=73)}else n[o(774)]=73;if(73===n.status)if(n[o(813)][o(1180)]){i=n[o(1346)];do{if(n[o(1346)]===n[o(2012)]&&(n.gzhead[o(2058)]&&n[o(1346)]>i&&(e[o(664)]=p(e[o(664)],n.pending_buf,n.pending-i,i)),O(e),i=n[o(1346)],n[o(1346)]===n[o(2012)])){a=1;break}}while(a=n[o(1717)]<n.gzhead[o(1180)][o(1963)]?255&n[o(813)][o(1180)][o(670)](n[o(1717)]++):0,P(n,a),0!==a);n[o(813)][o(2058)]&&n[o(1346)]>i&&(e[o(664)]=p(e[o(664)],n[o(1646)],n[o(1346)]-i,i)),0===a&&(n.gzindex=0,n[o(774)]=91)}else n[o(774)]=91;if(91===n[o(774)])if(n[o(813)].comment){i=n[o(1346)];do{if(n.pending===n[o(2012)]&&(n[o(813)].hcrc&&n[o(1346)]>i&&(e.adler=p(e.adler,n[o(1646)],n.pending-i,i)),O(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n[o(1717)]<n[o(813)][o(547)][o(1963)]?255&n[o(813)][o(547)].charCodeAt(n[o(1717)]++):0,P(n,a),0!==a);n[o(813)][o(2058)]&&n[o(1346)]>i&&(e[o(664)]=p(e[o(664)],n.pending_buf,n[o(1346)]-i,i)),0===a&&(n[o(774)]=103)}else n.status=103;if(103===n.status&&(n[o(813)][o(2058)]?(n[o(1346)]+2>n[o(2012)]&&O(e),n[o(1346)]+2<=n.pending_buf_size&&(P(n,255&e[o(664)]),P(n,e.adler>>8&255),e[o(664)]=0,n[o(774)]=k)):n[o(774)]=k),0!==n[o(1346)]){if(O(e),0===e.avail_out)return n[o(2266)]=-1,l}else if(0===e.avail_in&&D(r)<=D(t)&&r!==h)return S(e,-5);if(666===n[o(774)]&&0!==e[o(2242)])return S(e,-5);if(0!==e[o(2242)]||0!==n[o(2130)]||r!==f&&666!==n[o(774)]){var s=2===n.strategy?((e,r)=>{for(var t,n=_0x3872;;){if(0===e[n(2130)]&&(I(e),0===e[n(2130)])){if(r===f)return x;break}if(e[n(1677)]=0,t=c[n(2278)](e,0,e[n(811)][e.strstart]),e[n(2130)]--,e[n(2044)]++,t&&(B(e,!1),0===e.strm.avail_out))return x}return e.insert=0,r===h?(B(e,!0),0===e.strm.avail_out?E:A):e.last_lit&&(B(e,!1),0===e[n(726)][n(688)])?x:C})(n,r):3===n.strategy?((e,r)=>{for(var t,n,i,a,o=_0x3872,s=e.window;;){if(e[o(2130)]<=y){if(I(e),e.lookahead<=y&&r===f)return x;if(0===e[o(2130)])break}if(e[o(1677)]=0,e[o(2130)]>=m&&0<e.strstart&&(n=s[i=e[o(2044)]-1])===s[++i]&&n===s[++i]&&n===s[++i]){for(a=e[o(2044)]+y;n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a;);e.match_length=y-(a-i),e[o(1677)]>e.lookahead&&(e[o(1677)]=e[o(2130)])}if(e[o(1677)]>=m?(t=c[o(2278)](e,1,e.match_length-m),e[o(2130)]-=e[o(1677)],e[o(2044)]+=e.match_length,e[o(1677)]=0):(t=c[o(2278)](e,0,e.window[e.strstart]),e[o(2130)]--,e[o(2044)]++),t&&(B(e,!1),0===e.strm[o(688)]))return x}return e[o(1731)]=0,r===h?(B(e,!0),0===e.strm[o(688)]?E:A):e[o(618)]&&(B(e,!1),0===e.strm[o(688)])?x:C})(n,r):u[n[o(734)]][o(603)](n,r);if(s!==E&&s!==A||(n[o(774)]=666),s===x||s===E)return 0===e[o(688)]&&(n[o(2266)]=-1),l;if(s===C&&(1===r?c._tr_align(n):5!==r&&(c._tr_stored_block(n,0,0,!1),3===r)&&(T(n[o(2109)]),0===n[o(2130)])&&(n[o(2044)]=0,n[o(1110)]=0,n[o(1731)]=0),O(e),0===e[o(688)]))return n.last_flush=-1,l}return r!==h||!(n[o(1906)]<=0)&&(2===n[o(1906)]?(P(n,255&e.adler),P(n,e[o(664)]>>8&255),P(n,e[o(664)]>>16&255),P(n,e[o(664)]>>24&255),P(n,255&e[o(758)]),P(n,e[o(758)]>>8&255),P(n,e[o(758)]>>16&255),P(n,e[o(758)]>>24&255)):(F(n,e[o(664)]>>>16),F(n,65535&e[o(664)])),O(e),0<n.wrap&&(n[o(1906)]=-n.wrap),0!==n[o(1346)])?l:1},e.deflateEnd=function(e){var r=_0x3872;return e&&e[r(2153)]?(r=e[r(2153)].status)!==w&&69!==r&&73!==r&&91!==r&&103!==r&&r!==k&&666!==r?S(e,_):(e.state=null,r===k?S(e,-3):l):_},e.deflateSetDictionary=function(e,r){var t,n,i,a,o,s,u,c=_0x3872,f=r[c(1963)];if(!e||!e[c(2153)]||2===(a=(t=e.state)[c(1906)])||1===a&&t[c(774)]!==w||t[c(2130)])return _;for(1===a&&(e[c(664)]=d(e[c(664)],r,f,0)),t.wrap=0,f>=t[c(1973)]&&(0===a&&(T(t[c(2109)]),t[c(2044)]=0,t[c(1110)]=0,t.insert=0),u=new v[c(2049)](t[c(1973)]),v[c(1611)](u,r,f-t[c(1973)],t[c(1973)],0),r=u,f=t[c(1973)]),u=e[c(2242)],o=e[c(1602)],s=e.input,e.avail_in=f,e[c(1602)]=0,e[c(2074)]=r,I(t);t[c(2130)]>=m;){for(n=t[c(2044)],i=t[c(2130)]-(m-1);t.ins_h=(t[c(1766)]<<t[c(1837)]^t.window[n+m-1])&t.hash_mask,t[c(2240)][n&t[c(959)]]=t.head[t[c(1766)]],t[c(2109)][t[c(1766)]]=n,n++,--i;);t[c(2044)]=n,t[c(2130)]=m-1,I(t)}return t[c(2044)]+=t[c(2130)],t[c(1110)]=t.strstart,t[c(1731)]=t[c(2130)],t[c(2130)]=0,t.match_length=t.prev_length=m-1,t.match_available=0,e[c(1602)]=o,e[c(2074)]=s,e[c(2242)]=u,t[c(1906)]=a,l},e.deflateInfo=r(1855)}),fe=r(function(e){var c=$,f=X(),a=!0,o=!0;try{String.fromCharCode[c(1988)](null,[0])}catch(e){a=!1}try{String[c(942)][c(1988)](null,new Uint8Array(1))}catch(e){o=!1}for(var r,u=new f.Buf8(256),r=0;r<256;r++)u[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function h(e,r){var t=c;if(r<65534&&(e[t(568)]&&o||!e[t(568)]&&a))return String[t(942)].apply(null,f[t(1630)](e,r));for(var n="",i=0;i<r;i++)n+=String[t(942)](e[i]);return n}u[254]=u[254]=1,e.string2buf=function(e){for(var r,t,n,i,a=c,o=e[a(1963)],s=0,u=0;u<o;u++)55296==(64512&(t=e[a(670)](u)))&&u+1<o&&56320==(64512&(n=e[a(670)](u+1)))&&(t=65536+(t-55296<<10)+(n-56320),u++),s+=t<128?1:t<2048?2:t<65536?3:4;for(r=new f[a(2049)](s),u=i=0;i<s;u++)55296==(64512&(t=e[a(670)](u)))&&u+1<o&&56320==(64512&(n=e.charCodeAt(u+1)))&&(t=65536+(t-55296<<10)+(n-56320),u++),t<128?r[i++]=t:(t<2048?r[i++]=192|t>>>6:(t<65536?r[i++]=224|t>>>12:(r[i++]=240|t>>>18,r[i++]=128|t>>>12&63),r[i++]=128|t>>>6&63),r[i++]=128|63&t);return r},e.buf2binstring=function(e){return h(e,e[c(1963)])},e[c(867)]=function(e){for(var r=c,t=new f[r(2049)](e[r(1963)]),n=0,i=t[r(1963)];n<i;n++)t[n]=e[r(670)](n);return t},e[c(1291)]=function(e,r){for(var t,n,i=r||e[c(1963)],a=new Array(2*i),o=0,s=0;s<i;)if((t=e[s++])<128)a[o++]=t;else if(4<(n=u[t]))a[o++]=65533,s+=n-1;else{for(t&=2===n?31:3===n?15:7;1<n&&s<i;)t=t<<6|63&e[s++],n--;1<n?a[o++]=65533:t<65536?a[o++]=t:(t-=65536,a[o++]=55296|t>>10&1023,a[o++]=56320|1023&t)}return h(a,o)},e[c(752)]=function(e,r){for(var t=c,n=(r=(r=r||e[t(1963)])>e[t(1963)]?e[t(1963)]:r)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+u[e[n]]>r?n:r}}),he=r(function(e,r){r[$(946)]=function(){var e=_0x3872;this.input=null,this[e(1602)]=0,this[e(2242)]=0,this[e(758)]=0,this[e(510)]=null,this.next_out=0,this[e(688)]=0,this[e(613)]=0,this[e(1326)]="",this.state=null,this[e(1648)]=2,this[e(664)]=0}}),le=r(function(e){var s=$,u=ce(),c=X(),f=fe(),n=V(),i=he(),h=Object[s(785)][s(641)];function a(e){var r=s;if(!(this instanceof a))return new a(e);this[r(1819)]=c.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e=this[r(1819)];if(e[r(461)]&&0<e[r(1929)]?e[r(1929)]=-e[r(1929)]:e.gzip&&0<e[r(1929)]&&e.windowBits<16&&(e[r(1929)]+=16),this[r(1148)]=0,this[r(1326)]="",this[r(980)]=!1,this[r(1079)]=[],this.strm=new i,(this[r(726)][r(688)]=0)!==(t=u.deflateInit2(this[r(726)],e[r(734)],e[r(739)],e[r(1929)],e[r(2199)],e.strategy)))throw new Error(n[t]);if(e[r(961)]&&u[r(1543)](this[r(726)],e[r(961)]),e.dictionary){var t,e="string"==typeof e[r(494)]?f[r(2179)](e[r(494)]):h[r(1775)](e[r(494)])===r(2003)?new Uint8Array(e[r(494)]):e[r(494)];if(0!==(t=u[r(1485)](this[r(726)],e)))throw new Error(n[t]);this[r(1351)]=!0}}function t(e,r){var t=s,r=new a(r);if(r[t(1158)](e,!0),r[t(1148)])throw r[t(1326)]||n[r[t(1148)]];return r[t(2067)]}a[s(785)][s(1158)]=function(e,r){var t,n,i=s,a=this[i(726)],o=this[i(1819)][i(1603)];if(this.ended)return!1;n=r===~~r?r:!0===r?4:0,"string"==typeof e?a[i(2074)]=f[i(2179)](e):"[object ArrayBuffer]"===h[i(1775)](e)?a[i(2074)]=new Uint8Array(e):a[i(2074)]=e,a[i(1602)]=0,a.avail_in=a[i(2074)][i(1963)];do{if(0===a[i(688)]&&(a.output=new c.Buf8(o),a.next_out=0,a[i(688)]=o),1!==(t=u[i(600)](a,n))&&0!==t)return this.onEnd(t),!(this[i(980)]=!0)}while(0!==a[i(688)]&&(0!==a.avail_in||4!==n&&2!==n)||("string"===this[i(1819)].to?this[i(772)](f.buf2binstring(c[i(1630)](a[i(510)],a.next_out))):this.onData(c.shrinkBuf(a.output,a[i(676)]))),(0<a[i(2242)]||0===a[i(688)])&&1!==t);return 4===n?(t=u.deflateEnd(this.strm),this[i(1787)](t),this[i(980)]=!0,0===t):(2===n&&(this[i(1787)](0),a.avail_out=0),!0)},a[s(785)].onData=function(e){var r=s;this[r(1079)][r(1158)](e)},a[s(785)][s(1787)]=function(e){var r=s;0===e&&(this.options.to===r(1191)?this.result=this[r(1079)][r(877)](""):this[r(2067)]=c.flattenChunks(this.chunks)),this[r(1079)]=[],this.err=e,this[r(1326)]=this[r(726)][r(1326)]},e[s(588)]=a,e.deflate=t,e[s(704)]=function(e,r){return(r=r||{})[s(461)]=!0,t(e,r)},e[s(1483)]=function(e,r){return(r=r||{}).gzip=!0,t(e,r)}}),ve=r(function(e,r){var D=$;r[D(946)]=function(e,r){var t,n,i,a,o,s,u=D,c=e.state,f=e[u(1602)],h=e[u(2074)],l=f+(e[u(2242)]-5),v=e[u(676)],d=e[u(510)],p=v-(r-e[u(688)]),_=v+(e[u(688)]-257),g=c.dmax,m=c.wsize,y=c[u(1163)],b=c[u(1703)],w=c[u(811)],k=c[u(2066)],x=c.bits,C=c.lencode,E=c[u(1507)],A=(1<<c.lenbits)-1,S=(1<<c[u(2205)])-1;e:do{for(x<15&&(k+=h[f++]<<x,x+=8,k+=h[f++]<<x,x+=8),t=C[k&A];;){if(k>>>=n=t>>>24,x-=n,0===(n=t>>>16&255))d[v++]=65535&t;else{if(!(16&n)){if(0==(64&n)){t=C[(65535&t)+(k&(1<<n)-1)];continue}if(32&n){c[u(521)]=12;break e}e.msg=u(1186),c[u(521)]=30;break e}for(i=65535&t,(n&=15)&&(x<n&&(k+=h[f++]<<x,x+=8),i+=k&(1<<n)-1,k>>>=n,x-=n),x<15&&(k+=h[f++]<<x,x+=8,k+=h[f++]<<x,x+=8),t=E[k&S];;){if(k>>>=n=t>>>24,x-=n,!(16&(n=t>>>16&255))){if(0==(64&n)){t=E[(65535&t)+(k&(1<<n)-1)];continue}e[u(1326)]=u(1753),c[u(521)]=30;break e}if(a=65535&t,x<(n&=15)&&(k+=h[f++]<<x,(x+=8)<n)&&(k+=h[f++]<<x,x+=8),g<(a+=k&(1<<n)-1)){e[u(1326)]=u(2123),c[u(521)]=30;break e}if(k>>>=n,x-=n,(n=v-p)<a){if(y<(n=a-n)&&c[u(1095)]){e[u(1326)]="invalid distance too far back",c[u(521)]=30;break e}if(s=w,(o=0)===b){if(o+=m-n,n<i){for(i-=n;d[v++]=w[o++],--n;);o=v-a,s=d}}else if(b<n){if(o+=m+b-n,(n-=b)<i){for(i-=n;d[v++]=w[o++],--n;);if(o=0,b<i){for(i-=n=b;d[v++]=w[o++],--n;);o=v-a,s=d}}}else if(o+=b-n,n<i){for(i-=n;d[v++]=w[o++],--n;);o=v-a,s=d}for(;2<i;)d[v++]=s[o++],d[v++]=s[o++],d[v++]=s[o++],i-=3;i&&(d[v++]=s[o++],1<i)&&(d[v++]=s[o++])}else{for(o=v-a;d[v++]=d[o++],d[v++]=d[o++],d[v++]=d[o++],2<(i-=3););i&&(d[v++]=d[o++],1<i)&&(d[v++]=d[o++])}break}}break}}while(f<l&&v<_);f-=i=x>>3,k&=(1<<(x-=i<<3))-1,e[u(1602)]=f,e[u(676)]=v,e.avail_in=f<l?l-f+5:5-(f-l),e[u(688)]=v<_?_-v+257:257-(v-_),c[u(2066)]=k,c[u(908)]=x}}),de=r(function(e,r){var R=$,j=X(),N=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],G=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],L=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],H=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r[R(946)]=function(e,r,t,n,i,a,o,s){for(var u,c,f,h,l,v,d,p,_,g=R,m=s[g(908)],y=0,b=0,w=0,k=0,x=0,C=0,E=0,A=0,S=0,D=0,T=null,O=0,B=new j[g(1108)](16),P=new j.Buf16(16),F=null,I=0,y=0;y<=15;y++)B[y]=0;for(b=0;b<n;b++)B[r[t+b]]++;for(x=m,k=15;1<=k&&0===B[k];k--);if(k<x&&(x=k),0===k)i[a++]=20971520,i[a++]=20971520,s[g(908)]=1;else{for(w=1;w<k&&0===B[w];w++);for(x<w&&(x=w),y=A=1;y<=15;y++)if((A=(A<<1)-B[y])<0)return-1;if(0<A&&(0===e||1!==k))return-1;for(P[1]=0,y=1;y<15;y++)P[y+1]=P[y]+B[y];for(b=0;b<n;b++)0!==r[t+b]&&(o[P[r[t+b]]++]=b);if(v=0===e?(T=F=o,19):1===e?(T=N,O-=257,F=G,I-=257,256):(T=L,F=H,-1),y=w,l=a,E=b=D=0,f=-1,h=(S=1<<(C=x))-1,1===e&&852<S||2===e&&592<S)return 1;for(;;){for(_=o[b]<v?(p=0,o[b]):o[b]>v?(p=F[I+o[b]],T[O+o[b]]):(p=96,0),u=1<<(d=y-E),w=c=1<<C;i[l+(D>>E)+(c-=u)]=d<<24|p<<16|_|0,0!==c;);for(u=1<<y-1;D&u;)u>>=1;if(0!==u?D=(D&u-1)+u:D=0,b++,0==--B[y]){if(y===k)break;y=r[t+o[b]]}if(x<y&&(D&h)!==f){for(l+=w,A=1<<(C=y-(E=0===E?x:E));C+E<k&&!((A-=B[C+E])<=0);)C++,A<<=1;if(S+=1<<C,1===e&&852<S||2===e&&592<S)return 1;i[f=D&h]=x<<24|C<<16|l-a|0}}0!==D&&(i[l+D]=y-E<<24|64<<16|0),s[g(908)]=x}return 0}}),pe=r(function(e){var r=$,F=X(),I=se(),R=ue(),j=ve(),N=de(),G=1,L=2,H=0,M=-2,z=1,n=852,i=592;function U(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){var e=_0x3872;this[e(521)]=0,this[e(2166)]=!1,this.wrap=0,this[e(462)]=!1,this[e(1895)]=0,this[e(1019)]=0,this[e(1886)]=0,this.total=0,this.head=null,this[e(1431)]=0,this[e(912)]=0,this[e(1163)]=0,this[e(1703)]=0,this[e(811)]=null,this[e(2066)]=0,this.bits=0,this[e(1963)]=0,this[e(1386)]=0,this.extra=0,this[e(1052)]=null,this.distcode=null,this.lenbits=0,this.distbits=0,this[e(1914)]=0,this[e(1159)]=0,this[e(2056)]=0,this[e(935)]=0,this[e(1935)]=null,this[e(1759)]=new F[e(1108)](320),this[e(1467)]=new F[e(1108)](288),this[e(1447)]=null,this[e(2243)]=null,this.sane=0,this[e(1218)]=0,this[e(2282)]=0}function o(e){var r,t=_0x3872;return e&&e[t(2153)]?(r=e[t(2153)],e[t(758)]=e[t(613)]=r[t(1064)]=0,e.msg="",r[t(1906)]&&(e[t(664)]=1&r[t(1906)]),r[t(521)]=z,r[t(2166)]=0,r[t(462)]=0,r[t(1019)]=32768,r[t(2109)]=null,r[t(2066)]=0,r[t(908)]=0,r[t(1052)]=r.lendyn=new F[t(2237)](n),r[t(1507)]=r[t(2243)]=new F.Buf32(i),r[t(1095)]=1,r.back=-1,H):M}function s(e){var r,t=_0x3872;return e&&e[t(2153)]?((r=e.state).wsize=0,r[t(1163)]=0,r[t(1703)]=0,o(e)):M}function u(e,r){var t,n,i=_0x3872;return!e||!e[i(2153)]||(n=e[i(2153)],r<0?(t=0,r=-r):(t=1+(r>>4),r<48&&(r&=15)),r&&(r<8||15<r))?M:(null!==n[i(811)]&&n[i(1431)]!==r&&(n[i(811)]=null),n.wrap=t,n[i(1431)]=r,s(e))}function t(e,r){var t,n=_0x3872;return e?(t=new a,(e[n(2153)]=t).window=null,(t=u(e,r))!==H&&(e[n(2153)]=null),t):M}var q,K,Z=!0;function V(e,r,t,n){var i,a=_0x3872,e=e[a(2153)];return null===e[a(811)]&&(e.wsize=1<<e[a(1431)],e.wnext=0,e.whave=0,e.window=new F[a(2049)](e[a(912)])),n>=e[a(912)]?(F.arraySet(e[a(811)],r,t-e[a(912)],e[a(912)],0),e[a(1703)]=0,e[a(1163)]=e[a(912)]):(n<(i=e[a(912)]-e[a(1703)])&&(i=n),F.arraySet(e[a(811)],r,t-n,i,e[a(1703)]),(n-=i)?(F[a(1611)](e[a(811)],r,t-n,n,0),e.wnext=n,e[a(1163)]=e.wsize):(e[a(1703)]+=i,e.wnext===e[a(912)]&&(e[a(1703)]=0),e.whave<e.wsize&&(e.whave+=i))),0}e[r(2121)]=s,e[r(631)]=u,e[r(1085)]=o,e[r(1094)]=function(e){return t(e,15)},e.inflateInit2=t,e[r(1519)]=function(e,r){var t,n,i,a,o,s,u,c,f,h,l,v,d,p,_,g,m,y,b,w,k,x,C,E,A=_0x3872,S=0,D=new F[A(2049)](4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e[A(2153)]||!e.output||!e[A(2074)]&&0!==e.avail_in)return M;12===(t=e[A(2153)])[A(521)]&&(t[A(521)]=13),o=e[A(676)],i=e[A(510)],u=e[A(688)],a=e[A(1602)],n=e.input,s=e[A(2242)],c=t[A(2066)],f=t[A(908)],h=s,l=u,x=H;e:for(;;)switch(t.mode){case z:if(0===t[A(1906)])t[A(521)]=13;else{for(;f<16;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(2&t[A(1906)]&&35615===c)D[t[A(1886)]=0]=255&c,D[1]=c>>>8&255,t[A(1886)]=R(t[A(1886)],D,2,0),f=c=0,t[A(521)]=2;else if(t[A(1895)]=0,t[A(2109)]&&(t[A(2109)][A(1328)]=!1),!(1&t[A(1906)])||(((255&c)<<8)+(c>>8))%31)e[A(1326)]=A(1253),t[A(521)]=30;else if(8!=(15&c))e[A(1326)]="unknown compression method",t[A(521)]=30;else{if(f-=4,k=8+(15&(c>>>=4)),0===t[A(1431)])t[A(1431)]=k;else if(k>t.wbits){e.msg=A(923),t[A(521)]=30;break}t.dmax=1<<k,e[A(664)]=t[A(1886)]=1,t[A(521)]=512&c?10:12,f=c=0}}break;case 2:for(;f<16;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(t[A(1895)]=c,8!=(255&t[A(1895)])){e[A(1326)]=A(1623),t[A(521)]=30;break}if(57344&t[A(1895)]){e[A(1326)]=A(2224),t[A(521)]=30;break}t[A(2109)]&&(t[A(2109)][A(1649)]=c>>8&1),512&t[A(1895)]&&(D[0]=255&c,D[1]=c>>>8&255,t[A(1886)]=R(t[A(1886)],D,2,0)),f=c=0,t[A(521)]=3;case 3:for(;f<32;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}t[A(2109)]&&(t.head[A(1561)]=c),512&t[A(1895)]&&(D[0]=255&c,D[1]=c>>>8&255,D[2]=c>>>16&255,D[3]=c>>>24&255,t[A(1886)]=R(t[A(1886)],D,4,0)),f=c=0,t.mode=4;case 4:for(;f<16;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}t[A(2109)]&&(t.head[A(479)]=255&c,t[A(2109)].os=c>>8),512&t[A(1895)]&&(D[0]=255&c,D[1]=c>>>8&255,t[A(1886)]=R(t.check,D,2,0)),f=c=0,t[A(521)]=5;case 5:if(1024&t[A(1895)]){for(;f<16;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}t[A(1963)]=c,t[A(2109)]&&(t.head[A(679)]=c),512&t[A(1895)]&&(D[0]=255&c,D[1]=c>>>8&255,t[A(1886)]=R(t.check,D,2,0)),f=c=0}else t[A(2109)]&&(t[A(2109)][A(623)]=null);t[A(521)]=6;case 6:if(1024&t[A(1895)]&&((v=s<(v=t[A(1963)])?s:v)&&(t[A(2109)]&&(k=t[A(2109)][A(679)]-t[A(1963)],t[A(2109)][A(623)]||(t[A(2109)].extra=new Array(t[A(2109)].extra_len)),F.arraySet(t.head[A(623)],n,a,v,k)),512&t[A(1895)]&&(t[A(1886)]=R(t[A(1886)],n,v,a)),s-=v,a+=v,t.length-=v),t[A(1963)]))break e;t[A(1963)]=0,t[A(521)]=7;case 7:if(2048&t[A(1895)]){if(0===s)break e;for(v=0;k=n[a+v++],t[A(2109)]&&k&&t[A(1963)]<65536&&(t.head[A(1180)]+=String[A(942)](k)),k&&v<s;);if(512&t[A(1895)]&&(t.check=R(t.check,n,v,a)),s-=v,a+=v,k)break e}else t[A(2109)]&&(t.head[A(1180)]=null);t[A(1963)]=0,t.mode=8;case 8:if(4096&t.flags){if(0===s)break e;for(v=0;k=n[a+v++],t[A(2109)]&&k&&t.length<65536&&(t[A(2109)].comment+=String[A(942)](k)),k&&v<s;);if(512&t[A(1895)]&&(t[A(1886)]=R(t[A(1886)],n,v,a)),s-=v,a+=v,k)break e}else t.head&&(t[A(2109)][A(547)]=null);t.mode=9;case 9:if(512&t[A(1895)]){for(;f<16;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(c!==(65535&t[A(1886)])){e[A(1326)]=A(1133),t[A(521)]=30;break}f=c=0}t[A(2109)]&&(t.head[A(2058)]=t[A(1895)]>>9&1,t[A(2109)][A(1328)]=!0),e[A(664)]=t[A(1886)]=0,t[A(521)]=12;break;case 10:for(;f<32;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}e[A(664)]=t[A(1886)]=U(c),f=c=0,t[A(521)]=11;case 11:if(0===t[A(462)])return e[A(676)]=o,e[A(688)]=u,e[A(1602)]=a,e[A(2242)]=s,t.hold=c,t[A(908)]=f,2;e[A(664)]=t[A(1886)]=1,t[A(521)]=12;case 12:if(5===r||6===r)break e;case 13:if(t[A(2166)])c>>>=7&f,f-=7&f,t.mode=27;else{for(;f<3;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}switch(t[A(2166)]=1&c,--f,3&(c>>>=1)){case 0:t[A(521)]=14;break;case 1:O=P=B=void 0;var O,B=t,P=_0x3872;if(Z){for(q=new F[P(2237)](512),K=new F[P(2237)](32),O=0;O<144;)B[P(1759)][O++]=8;for(;O<256;)B[P(1759)][O++]=9;for(;O<280;)B[P(1759)][O++]=7;for(;O<288;)B.lens[O++]=8;for(N(G,B[P(1759)],0,288,q,0,B[P(1467)],{bits:9}),O=0;O<32;)B.lens[O++]=5;N(L,B.lens,0,32,K,0,B.work,{bits:5}),Z=!1}if(B[P(1052)]=q,B.lenbits=9,B[P(1507)]=K,B[P(2205)]=5,t[A(521)]=20,6!==r)break;c>>>=2,f-=2;break e;case 2:t[A(521)]=17;break;case 3:e.msg="invalid block type",t[A(521)]=30}c>>>=2,f-=2}break;case 14:for(c>>>=7&f,f-=7&f;f<32;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if((65535&c)!=(c>>>16^65535)){e[A(1326)]="invalid stored block lengths",t[A(521)]=30;break}if(t.length=65535&c,f=c=0,t[A(521)]=15,6===r)break e;case 15:t[A(521)]=16;case 16:if(v=t[A(1963)]){if(0===(v=u<(v=s<v?s:v)?u:v))break e;F.arraySet(i,n,a,v,o),s-=v,a+=v,u-=v,o+=v,t.length-=v}else t[A(521)]=12;break;case 17:for(;f<14;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(t[A(1159)]=257+(31&c),c>>>=5,f-=5,t[A(2056)]=1+(31&c),c>>>=5,f-=5,t[A(1914)]=4+(15&c),c>>>=4,f-=4,286<t.nlen||30<t[A(2056)]){e[A(1326)]=A(648),t[A(521)]=30;break}t[A(935)]=0,t[A(521)]=18;case 18:for(;t[A(935)]<t.ncode;){for(;f<3;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}t[A(1759)][T[t[A(935)]++]]=7&c,c>>>=3,f-=3}for(;t[A(935)]<19;)t[A(1759)][T[t.have++]]=0;if(t[A(1052)]=t[A(1447)],t[A(1647)]=7,C={bits:t.lenbits},x=N(0,t.lens,0,19,t[A(1052)],0,t[A(1467)],C),t[A(1647)]=C[A(908)],x){e[A(1326)]=A(782),t[A(521)]=30;break}t.have=0,t[A(521)]=19;case 19:for(;t[A(935)]<t[A(1159)]+t.ndist;){for(;g=(S=t.lencode[c&(1<<t.lenbits)-1])>>>16&255,m=65535&S,!((_=S>>>24)<=f);){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(m<16)c>>>=_,f-=_,t[A(1759)][t.have++]=m;else{if(16===m){for(E=_+2;f<E;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(c>>>=_,f-=_,0===t.have){e[A(1326)]=A(2035),t[A(521)]=30;break}k=t.lens[t[A(935)]-1],v=3+(3&c),c>>>=2,f-=2}else if(17===m){for(E=_+3;f<E;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}k=0,v=3+(7&(c>>>=_)),c>>>=3,f=f-_-3}else{for(E=_+7;f<E;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}k=0,v=11+(127&(c>>>=_)),c>>>=7,f=f-_-7}if(t[A(935)]+v>t[A(1159)]+t.ndist){e[A(1326)]=A(2035),t.mode=30;break}for(;v--;)t[A(1759)][t.have++]=k}}if(30===t[A(521)])break;if(0===t[A(1759)][256]){e[A(1326)]=A(1912),t.mode=30;break}if(t[A(1647)]=9,C={bits:t[A(1647)]},x=N(G,t.lens,0,t[A(1159)],t[A(1052)],0,t.work,C),t[A(1647)]=C[A(908)],x){e[A(1326)]="invalid literal/lengths set",t[A(521)]=30;break}if(t[A(2205)]=6,t.distcode=t[A(2243)],C={bits:t.distbits},x=N(L,t[A(1759)],t[A(1159)],t[A(2056)],t[A(1507)],0,t[A(1467)],C),t[A(2205)]=C[A(908)],x){e[A(1326)]=A(1840),t[A(521)]=30;break}if(t[A(521)]=20,6===r)break e;case 20:t[A(521)]=21;case 21:if(6<=s&&258<=u){e[A(676)]=o,e.avail_out=u,e.next_in=a,e.avail_in=s,t.hold=c,t.bits=f,j(e,l),o=e.next_out,i=e[A(510)],u=e[A(688)],a=e[A(1602)],n=e[A(2074)],s=e[A(2242)],c=t[A(2066)],f=t.bits,12===t[A(521)]&&(t.back=-1);break}for(t[A(1218)]=0;g=(S=t[A(1052)][c&(1<<t.lenbits)-1])>>>16&255,m=65535&S,!((_=S>>>24)<=f);){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(g&&0==(240&g)){for(y=_,b=g,w=m;g=(S=t[A(1052)][w+((c&(1<<y+b)-1)>>y)])>>>16&255,m=65535&S,!(y+(_=S>>>24)<=f);){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}c>>>=y,f-=y,t.back+=y}if(c>>>=_,f-=_,t[A(1218)]+=_,t[A(1963)]=m,0===g){t.mode=26;break}if(32&g){t[A(1218)]=-1,t[A(521)]=12;break}if(64&g){e[A(1326)]=A(1186),t[A(521)]=30;break}t[A(623)]=15&g,t[A(521)]=22;case 22:if(t[A(623)]){for(E=t[A(623)];f<E;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}t[A(1963)]+=c&(1<<t[A(623)])-1,c>>>=t[A(623)],f-=t.extra,t[A(1218)]+=t[A(623)]}t[A(2282)]=t[A(1963)],t.mode=23;case 23:for(;g=(S=t[A(1507)][c&(1<<t[A(2205)])-1])>>>16&255,m=65535&S,!((_=S>>>24)<=f);){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(0==(240&g)){for(y=_,b=g,w=m;g=(S=t[A(1507)][w+((c&(1<<y+b)-1)>>y)])>>>16&255,m=65535&S,!(y+(_=S>>>24)<=f);){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}c>>>=y,f-=y,t[A(1218)]+=y}if(c>>>=_,f-=_,t[A(1218)]+=_,64&g){e[A(1326)]=A(1753),t[A(521)]=30;break}t[A(1386)]=m,t[A(623)]=15&g,t[A(521)]=24;case 24:if(t[A(623)]){for(E=t.extra;f<E;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}t.offset+=c&(1<<t[A(623)])-1,c>>>=t[A(623)],f-=t[A(623)],t.back+=t[A(623)]}if(t[A(1386)]>t.dmax){e[A(1326)]="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===u)break e;if(v=l-u,t[A(1386)]>v){if((v=t.offset-v)>t.whave&&t[A(1095)]){e.msg=A(2123),t.mode=30;break}d=v>t[A(1703)]?(v-=t.wnext,t[A(912)]-v):t[A(1703)]-v,v>t[A(1963)]&&(v=t[A(1963)]),p=t.window}else p=i,d=o-t[A(1386)],v=t[A(1963)];for(u-=v=u<v?u:v,t[A(1963)]-=v;i[o++]=p[d++],--v;);0===t[A(1963)]&&(t[A(521)]=21);break;case 26:if(0===u)break e;i[o++]=t.length,u--,t[A(521)]=21;break;case 27:if(t[A(1906)]){for(;f<32;){if(0===s)break e;s--,c|=n[a++]<<f,f+=8}if(l-=u,e.total_out+=l,t[A(1064)]+=l,l&&(e[A(664)]=t[A(1886)]=(t[A(1895)]?R:I)(t[A(1886)],i,l,o-l)),l=u,(t[A(1895)]?c:U(c))!==t[A(1886)]){e[A(1326)]=A(956),t.mode=30;break}f=c=0}t[A(521)]=28;case 28:if(t[A(1906)]&&t[A(1895)]){for(;f<32;){if(0===s)break e;s--,c+=n[a++]<<f,f+=8}if(c!==(4294967295&t[A(1064)])){e[A(1326)]=A(1457),t[A(521)]=30;break}f=c=0}t.mode=29;case 29:x=1;break e;case 30:x=-3;break e;case 31:return-4;default:return M}return e.next_out=o,e.avail_out=u,e[A(1602)]=a,e.avail_in=s,t[A(2066)]=c,t.bits=f,(t.wsize||l!==e[A(688)]&&t[A(521)]<30&&(t[A(521)]<27||4!==r))&&V(e,e[A(510)],e.next_out,l-e.avail_out)?(t.mode=31,-4):(h-=e[A(2242)],l-=e.avail_out,e[A(758)]+=h,e[A(613)]+=l,t.total+=l,t[A(1906)]&&l&&(e[A(664)]=t[A(1886)]=(t[A(1895)]?R:I)(t[A(1886)],i,l,e.next_out-l)),e.data_type=t[A(908)]+(t[A(2166)]?64:0)+(12===t.mode?128:0)+(20===t[A(521)]||15===t.mode?256:0),x=(0==h&&0===l||4===r)&&x===H?-5:x)},e[r(651)]=function(e){var r,t=_0x3872;return e&&e[t(2153)]?((r=e.state)[t(811)]&&(r.window=null),e.state=null,H):M},e.inflateGetHeader=function(e,r){var t=_0x3872;return e&&e.state&&0!=(2&(e=e.state)[t(1906)])?((e[t(2109)]=r).done=!1,H):M},e[r(699)]=function(e,r){var t,n=_0x3872,i=r[n(1963)];return e&&e[n(2153)]&&(0===(t=e[n(2153)]).wrap||11===t[n(521)])?11===t[n(521)]&&I(1,r,i,0)!==t[n(1886)]?-3:V(e,r,i,i)?(t[n(521)]=31,-4):(t[n(462)]=1,H):M},e[r(1874)]=r(822)}),_e=r(function(e,r){r[$(946)]={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}),ge=r(function(e,r){r[$(946)]=function(){var e=_0x3872;this[e(1649)]=0,this[e(1561)]=0,this[e(479)]=0,this.os=0,this[e(623)]=null,this[e(679)]=0,this[e(1180)]="",this[e(547)]="",this[e(2058)]=0,this[e(1328)]=!1}}),me=r(function(e){var l=$,v=pe(),d=X(),p=fe(),_=_e(),n=V(),i=he(),a=ge(),g=Object[l(785)][l(641)];function o(e){var r=l;if(!(this instanceof o))return new o(e);this[r(1819)]=d[r(861)]({chunkSize:16384,windowBits:0,to:""},e||{});var t=this[r(1819)],e=(t[r(461)]&&0<=t[r(1929)]&&t[r(1929)]<16&&(t[r(1929)]=-t[r(1929)],0===t.windowBits)&&(t[r(1929)]=-15),!(0<=t[r(1929)]&&t[r(1929)]<16)||e&&e.windowBits||(t[r(1929)]+=32),15<t[r(1929)]&&t[r(1929)]<48&&0==(15&t[r(1929)])&&(t[r(1929)]|=15),this[r(1148)]=0,this[r(1326)]="",this[r(980)]=!1,this[r(1079)]=[],this[r(726)]=new i,this[r(726)].avail_out=0,v[r(1880)](this[r(726)],t[r(1929)]));if(e!==_[r(1043)])throw new Error(n[e]);if(this.header=new a,v[r(1280)](this[r(726)],this.header),t[r(494)]&&("string"==typeof t[r(494)]?t[r(494)]=p[r(2179)](t[r(494)]):g[r(1775)](t.dictionary)===r(2003)&&(t.dictionary=new Uint8Array(t.dictionary)),t[r(461)])&&(e=v[r(699)](this[r(726)],t[r(494)]))!==_.Z_OK)throw new Error(n[e])}function t(e,r){var t=l,r=new o(r);if(r[t(1158)](e,!0),r[t(1148)])throw r.msg||n[r[t(1148)]];return r[t(2067)]}o[l(785)][l(1158)]=function(e,r){var t,n,i,a,o,s=l,u=this[s(726)],c=this.options[s(1603)],f=this[s(1819)].dictionary,h=!1;if(this[s(980)])return!1;n=r===~~r?r:!0===r?_[s(1535)]:_[s(593)],typeof e==s(1191)?u.input=p[s(867)](e):g.call(e)===s(2003)?u[s(2074)]=new Uint8Array(e):u[s(2074)]=e,u[s(1602)]=0,u.avail_in=u.input[s(1963)];do{if(0===u[s(688)]&&(u.output=new d[s(2049)](c),u.next_out=0,u[s(688)]=c),(t=(t=v[s(1519)](u,_.Z_NO_FLUSH))===_[s(2188)]&&f?v[s(699)](this[s(726)],f):t)===_[s(1090)]&&!0===h&&(t=_.Z_OK,h=!1),t!==_[s(1564)]&&t!==_.Z_OK)return this[s(1787)](t),!(this.ended=!0)}while(!u[s(676)]||0!==u[s(688)]&&t!==_[s(1564)]&&(0!==u.avail_in||n!==_[s(1535)]&&n!==_[s(1745)])||(this[s(1819)].to===s(1191)?(i=p[s(752)](u[s(510)],u[s(676)]),a=u[s(676)]-i,o=p[s(1291)](u[s(510)],i),u[s(676)]=a,u[s(688)]=c-a,a&&d.arraySet(u[s(510)],u.output,i,a,0),this[s(772)](o)):this.onData(d.shrinkBuf(u[s(510)],u[s(676)]))),0===u[s(2242)]&&0===u[s(688)]&&(h=!0),(0<u[s(2242)]||0===u[s(688)])&&t!==_[s(1564)]);return(n=t===_[s(1564)]?_[s(1535)]:n)===_[s(1535)]?(t=v.inflateEnd(this.strm),this.onEnd(t),this[s(980)]=!0,t===_[s(1043)]):(n===_.Z_SYNC_FLUSH&&(this[s(1787)](_[s(1043)]),u.avail_out=0),!0)},o[l(785)][l(772)]=function(e){var r=l;this.chunks[r(1158)](e)},o[l(785)][l(1787)]=function(e){var r=l;e===_[r(1043)]&&(this[r(1819)].to===r(1191)?this[r(2067)]=this.chunks[r(877)](""):this[r(2067)]=d[r(1361)](this.chunks)),this[r(1079)]=[],this.err=e,this.msg=this[r(726)][r(1326)]},e[l(1136)]=o,e.inflate=t,e[l(1227)]=function(e,r){return(r=r||{})[l(461)]=!0,t(e,r)},e[l(2177)]=t}),ye=r(function(e,r){var t={};(0,X().assign)(t,le(),me(),_e()),r.exports=t}),be=r(function(e){var n=$,r=("undefined"==typeof Uint8Array?n(1068):_typeof(Uint8Array))<"u"&&(typeof Uint16Array===n(1068)?n(1068):_typeof(Uint16Array))<"u"&&(typeof Uint32Array===n(1068)?"undefined":_typeof(Uint32Array))<"u",i=ye(),t=A(),a=S(),o=r?"uint8array":"array";function s(e,r){var t=n;a[t(1775)](this,"FlateWorker/"+e),this[t(2277)]=null,this[t(2051)]=e,this[t(1449)]=r,this[t(1692)]={}}e[n(1940)]="\b\0",t.inherits(s,a),s[n(785)][n(1957)]=function(e){var r=n;this[r(1692)]=e[r(1692)],null===this._pako&&this[r(2178)](),this._pako[r(1158)](t.transformTo(o,e[r(583)]),!1)},s[n(785)][n(657)]=function(){var e=n;a[e(785)].flush.call(this),null===this[e(2277)]&&this[e(2178)](),this[e(2277)][e(1158)]([],!0)},s[n(785)][n(1981)]=function(){var e=n;a[e(785)][e(1981)][e(1775)](this),this._pako=null},s[n(785)][n(2178)]=function(){var r=n,t=(this[r(2277)]=new i[this[r(2051)]]({raw:!0,level:this[r(1449)][r(734)]||-1}),this);this[r(2277)].onData=function(e){t[r(1158)]({data:e,meta:t.meta})}},e.compressWorker=function(e){return new s("Deflate",e)},e.uncompressWorker=function(){return new s("Inflate",{})}}),we=r(function(e){var r=$,t=S();e[r(1308)]={magic:"\0\0",compressWorker:function(e){return new t(r(645))},uncompressWorker:function(){return new t(r(1223))}},e[r(2151)]=be()}),ke=r(function(e){var r=$;e.LOCAL_FILE_HEADER=r(2083),e.CENTRAL_FILE_HEADER="PK",e[r(2222)]="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",e[r(1932)]="PK",e[r(2223)]=r(2072)}),xe=r(function(e,r){function y(e,r){for(var t=_0x3872,n="",i=0;i<r;i++)n+=String[t(942)](255&e),e>>>=8;return n}function i(e,r,t,n,i,a){var o=_0x3872,s=e[o(1636)],u=e.compression,c=a!==w[o(1986)],f=b[o(1125)](o(1191),a(s[o(1180)])),h=b[o(1125)]("string",w.utf8encode(s[o(1180)])),l=s[o(547)],a=b[o(1125)](o(1191),a(l)),v=b[o(1125)](o(1191),w[o(1986)](l)),d=h[o(1963)]!==s.name[o(1963)],l=v[o(1963)]!==l[o(1963)],p="",_=s.dir,g=s[o(1650)],m={crc32:0,compressedSize:0,uncompressedSize:0},t=(r&&!t||(m[o(1728)]=e[o(1728)],m.compressedSize=e[o(2096)],m[o(2231)]=e[o(2231)]),0),e=(r&&(t|=8),c||!d&&!l||(t|=2048),0),r=0,g=(_&&(e|=16),i===o(1470)?(r=798,e|=(c=s[o(901)],i=_,(65535&(c?c:i?16893:33204))<<16)):(r=20,e|=63&(s[o(760)]||0)),_=g[o(899)](),_<<=6,_=(_=(_|g[o(539)]())<<5)|g[o(1826)]()/2,c=g[o(595)]()-1980,c=(c=((c<<=4)|g[o(2111)]()+1)<<5)|g.getUTCDate(),d&&(i=y(1,1)+y(k(f),4)+h,p+="up"+y(i[o(1963)],2)+i),l&&(s=y(1,1)+y(k(a),4)+v,p+="uc"+y(s[o(1963)],2)+s),""),g=(g=(g=(g=(g=(g=(g=(g=(g=(g+="\n\0")+y(t,2))+u.magic)+y(_,2))+y(c,2))+y(m[o(1728)],4))+y(m[o(2096)],4))+y(m[o(2231)],4))+y(f[o(1963)],2))+y(p[o(1963)],2);return{fileRecord:x.LOCAL_FILE_HEADER+g+f+p,dirRecord:x[o(1086)]+y(r,2)+g+y(a[o(1963)],2)+o(1810)+y(e,4)+y(n,4)+f+p+a}}var u=$,b=A(),a=S(),w=D(),k=h(),x=ke();function t(e,r,t,n){var i=_0x3872;a[i(1775)](this,i(2281)),this.bytesWritten=0,this[i(1461)]=r,this.zipPlatform=t,this[i(1475)]=n,this.streamFiles=e,this[i(1248)]=!1,this[i(2239)]=[],this[i(666)]=[],this[i(1048)]=0,this[i(470)]=0,this[i(1372)]=null,this[i(2127)]=[]}b[u(1828)](t,a),t[u(785)][u(1158)]=function(e){var r=u,t=e[r(1692)][r(817)]||0,n=this[r(470)],i=this[r(2127)][r(1963)];this[r(1248)]?this[r(2239)].push(e):(this[r(634)]+=e[r(583)].length,a[r(785)][r(1158)][r(1775)](this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},t[u(785)][u(1303)]=function(e){var r=u,t=(this[r(1048)]=this[r(634)],this[r(1372)]=e[r(1636)][r(1180)],this[r(1174)]&&!e.file[r(919)]);t?(e=i(e,t,!1,this.currentSourceOffset,this[r(1751)],this[r(1475)]),this.push({data:e[r(887)],meta:{percent:0}})):this[r(1248)]=!0},t[u(785)].closedSource=function(e){var r=u,t=(this[r(1248)]=!1,this[r(1174)]&&!e[r(1636)][r(919)]),n=i(e,t,!0,this[r(1048)],this.zipPlatform,this[r(1475)]);if(this[r(666)][r(1158)](n[r(552)]),t)this.push({data:(t=e,e=_0x3872,x.DATA_DESCRIPTOR+y(t[e(1728)],4)+y(t.compressedSize,4)+y(t[e(2231)],4)),meta:{percent:100}});else for(this[r(1158)]({data:n[r(887)],meta:{percent:0}});this[r(2239)].length;)this[r(1158)](this[r(2239)][r(1804)]());this[r(1372)]=null},t.prototype.flush=function(){for(var e=u,r=this[e(634)],t=0;t<this.dirRecords.length;t++)this[e(1158)]({data:this[e(666)][t],meta:{percent:100}});var n,i,a,o=this[e(634)]-r,s=(n=this.dirRecords[e(1963)],o=o,r=r,s=this.zipComment,i=this[e(1475)],i=b[(a=_0x3872)(1125)]("string",i(s)),x[a(2222)]+"\0\0\0\0"+y(n,2)+y(n,2)+y(o,4)+y(r,4)+y(i[a(1963)],2)+i);this.push({data:s,meta:{percent:100}})},t[u(785)][u(1241)]=function(){var e=u;this[e(1952)]=this[e(2127)][e(1804)](),this.openedSource(this[e(1952)][e(565)]),this[e(1621)]?this[e(1952)][e(1499)]():this[e(1952)].resume()},t[u(785)][u(1456)]=function(e){var r=u,t=(this._sources[r(1158)](e),this);return e.on(r(583),function(e){t[r(1957)](e)}),e.on(r(1954),function(){var e=r;t.closedSource(t[e(1952)][e(565)]),t._sources[e(1963)]?t[e(1241)]():t[e(1954)]()}),e.on(r(1803),function(e){t[r(1803)](e)}),this},t[u(785)][u(662)]=function(){var e=u;return!!a.prototype[e(662)].call(this)&&(!this[e(1952)]&&this._sources[e(1963)]?(this[e(1241)](),!0):this[e(1952)]||this[e(2127)][e(1963)]||this[e(687)]?void 0:(this[e(1954)](),!0))},t[u(785)].error=function(e){var r=u,t=this._sources;if(!a[r(785)].error[r(1775)](this,e))return!1;for(var n=0;n<t[r(1963)];n++)try{t[n].error(e)}catch(e){}return!0},t.prototype.lock=function(){var e=u;a[e(785)][e(1699)][e(1775)](this);for(var r=this[e(2127)],t=0;t<r[e(1963)];t++)r[t].lock()},r[u(946)]=t}),Ce=r(function(e){var h=we(),t=xe();e.generateWorker=function(e,s,r){var u=_0x3872,c=new t(s.streamFiles,r,s.platform,s[u(1475)]),f=0;try{e[u(610)](function(e,r){var t=u,n=(f++,((e,r)=>{if(r=h[e=e||r])return r;throw new Error(e+" is not a valid compression method !")})(r[t(1819)][t(637)],s[t(637)])),i=r[t(1819)][t(674)]||s[t(674)]||{},a=r.dir,o=r[t(1650)];r[t(1207)](n,i).withStreamInfo("file",{name:e,dir:a,date:o,comment:r[t(547)]||"",unixPermissions:r[t(901)],dosPermissions:r[t(760)]})[t(1724)](c)}),c[u(470)]=f}catch(e){c[u(1803)](e)}return c}}),Ee=r(function(e,r){var i=$,t=A(),n=S();function a(e,r){var t=_0x3872;n[t(1775)](this,"Nodejs stream input adapter for "+e),this[t(1197)]=!1,this[t(1408)](r)}t[i(1828)](a,n),a[i(785)][i(1408)]=function(e){var t=i,n=this;(this[t(1518)]=e)[t(1499)](),e.on("data",function(e){n.push({data:e,meta:{percent:0}})}).on(t(1803),function(e){var r=t;n[r(1621)]?this.generatedError=e:n[r(1803)](e)}).on(t(1954),function(){var e=t;n.isPaused?n._upstreamEnded=!0:n[e(1954)]()})},a[i(785)][i(1499)]=function(){var e=i;return!!n[e(785)].pause[e(1775)](this)&&(this[e(1518)][e(1499)](),!0)},a[i(785)][i(662)]=function(){var e=i;return!!n[e(785)][e(662)].call(this)&&(this[e(1197)]?this[e(1954)]():this._stream[e(662)](),!0)},r.exports=a}),Ae=r(function(e,r){function s(e){var r=_0x3872,t=(e="/"===e[r(2136)](-1)?e.substring(0,e.length-1):e).lastIndexOf("/");return 0<t?e[r(513)](0,t):""}function u(e,r){var t=_0x3872;return r=_typeof(r)<"u"?r:h[t(1977)],e=m(e),this[t(1701)][e]||g[t(1775)](this,e,null,{dir:!0,createFolders:r}),this.files[e]}var t=$,a=D(),c=A(),f=S(),o=w(),h=re(),l=T(),v=ae(),d=Ce(),p=b(),_=Ee(),g=function(e,r,t){var n=_0x3872,i=c[n(1881)](r),a=c[n(469)](t||{},h),o=(a.date=a.date||new Date,null!==a[n(637)]&&(a[n(637)]=a[n(637)][n(1169)]()),typeof a[n(901)]==n(1191)&&(a[n(901)]=parseInt(a.unixPermissions,8)),a[n(901)]&&16384&a[n(901)]&&(a[n(919)]=!0),a.dosPermissions&&16&a.dosPermissions&&(a[n(919)]=!0),a[n(919)]&&(e=m(e)),a[n(1977)]&&(o=s(e))&&u[n(1775)](this,o,!0),i===n(1191)&&!1===a.binary&&!1===a[n(2262)]);(!t||"u"<_typeof(t[n(2290)]))&&(a[n(2290)]=!o);(r instanceof l&&0===r[n(2231)]||a[n(919)]||!r||0===r[n(1963)])&&(a[n(2262)]=!1,a[n(2290)]=!0,r="",a[n(637)]=n(1308),n(1191));i=null,i=r instanceof l||r instanceof f?r:p[n(882)]&&p[n(1710)](r)?new _(e,r):c[n(2118)](e,r,a[n(2290)],a[n(1363)],a[n(2262)]),t=new v(e,i,a);this[n(1701)][e]=t},m=function(e){return"/"!==e[_0x3872(2136)](-1)&&(e+="/"),e};function y(e){var r=_0x3872;return Object[r(785)].toString[r(1775)](e)===r(874)}var n={load:function(){throw new Error(_0x3872(834))},forEach:function(e){var r,t,n,i=_0x3872;for(r in this[i(1701)])n=this.files[r],t=r[i(2136)](this.root[i(1963)],r.length),t&&r.slice(0,this.root.length)===this[i(2036)]&&e(t,n)},filter:function(t){var n=[];return this[_0x3872(610)](function(e,r){t(e,r)&&n.push(r)}),n},file:function(e,r,t){var n,i,a=_0x3872;return 1===arguments[a(1963)]?y(e)?(n=e,this[a(1236)](function(e,r){return!r[a(919)]&&n.test(e)})):(i=this[a(1701)][this[a(2036)]+e])&&!i[a(919)]?i:null:(e=this[a(2036)]+e,g[a(1775)](this,e,r,t),this)},folder:function(n){var e,r,i=_0x3872;return n?y(n)?this[i(1236)](function(e,r){var t=i;return r[t(919)]&&n[t(2156)](e)}):(e=this[i(2036)]+n,e=u[i(1775)](this,e),(r=this[i(823)]())[i(2036)]=e[i(1180)],r):this},remove:function(n){var i=_0x3872,e=(n=this[i(2036)]+n,this[i(1701)][n]);if(e||("/"!==n.slice(-1)&&(n+="/"),e=this.files[n]),e&&!e[i(919)])delete this[i(1701)][n];else for(var r=this[i(1236)](function(e,r){var t=i;return r[t(1180)][t(2136)](0,n.length)===n}),t=0;t<r[i(1963)];t++)delete this[i(1701)][r[t][i(1180)]];return this},generate:function(e){throw new Error(_0x3872(834))},generateInternalStream:function(e){var r=_0x3872,t={};try{if((t=c[r(469)](e||{},{streamFiles:!1,compression:r(1308),compressionOptions:null,type:"",platform:r(1480),comment:null,mimeType:r(2124),encodeFileName:a[r(1986)]}))[r(725)]=t[r(725)][r(2102)](),t[r(637)]=t[r(637)].toUpperCase(),"binarystring"===t.type&&(t[r(725)]="string"),!t[r(725)])throw new Error(r(1579));c.checkSupport(t.type),"darwin"!==t[r(1635)]&&t[r(1635)]!==r(984)&&t.platform!==r(1921)&&t[r(1635)]!==r(1032)||(t.platform=r(1470)),t[r(1635)]===r(524)&&(t.platform=r(1480));var n=t[r(547)]||this[r(547)]||"",i=d[r(1844)](this,t,n)}catch(e){(i=new f(r(1803)))[r(1803)](e)}return new o(i,t[r(725)]||r(1191),t[r(960)])},generateAsync:function(e,r){return this[_0x3872(1774)](e).accumulate(r)},generateNodeStream:function(e,r){var t=_0x3872;return(e=e||{})[t(725)]||(e[t(725)]=t(1051)),this.generateInternalStream(e)[t(2114)](r)}};r[t(946)]=n}),Se=r(function(e,r){var t=$,n=A();function i(e){var r=_0x3872;this[r(583)]=e,this[r(1963)]=e[r(1963)],this.index=0,this[r(880)]=0}i.prototype={checkOffset:function(e){var r=_0x3872;this.checkIndex(this[r(1709)]+e)},checkIndex:function(e){var r=_0x3872;if(this.length<this.zero+e||e<0)throw new Error(r(1718)+this.length+r(644)+e+r(1437))},setIndex:function(e){var r=_0x3872;this[r(1492)](e),this[r(1709)]=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var r,t=_0x3872,n=0;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)n=(n<<8)+this[t(1029)](r);return this[t(1709)]+=e,n},readString:function(e){var r=_0x3872;return n[r(1125)](r(1191),this[r(973)](e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this[_0x3872(627)](4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},r[t(946)]=i}),De=r(function(e,r){var s=$,n=Se();function t(e){var r=_0x3872;n[r(1775)](this,e);for(var t=0;t<this[r(583)].length;t++)e[t]=255&e[t]}A().inherits(t,n),t.prototype.byteAt=function(e){var r=_0x3872;return this[r(583)][this[r(880)]+e]},t[s(785)][s(1524)]=function(e){for(var r=s,t=e[r(670)](0),n=e[r(670)](1),i=e.charCodeAt(2),a=e[r(670)](3),o=this.length-4;0<=o;--o)if(this[r(583)][o]===t&&this.data[o+1]===n&&this[r(583)][o+2]===i&&this[r(583)][o+3]===a)return o-this.zero;return-1},t.prototype[s(1044)]=function(e){var r=s,t=e[r(670)](0),r=e[r(670)](1),n=e.charCodeAt(2),e=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&e===i[3]},t[s(785)].readData=function(e){var r,t=s;return this[t(558)](e),0===e?[]:(r=this[t(583)].slice(this[t(880)]+this.index,this.zero+this[t(1709)]+e),this[t(1709)]+=e,r)},r[s(946)]=t}),Te=r(function(e,r){var t=$,n=Se();function i(e){n[_0x3872(1775)](this,e)}A().inherits(i,n),i[t(785)].byteAt=function(e){var r=t;return this.data[r(670)](this[r(880)]+e)},i.prototype[t(1524)]=function(e){return this[t(583)].lastIndexOf(e)-this.zero},i[t(785)][t(1044)]=function(e){return e===this[t(973)](4)},i[t(785)][t(973)]=function(e){var r=t,r=(this.checkOffset(e),this.data[r(2136)](this[r(880)]+this[r(1709)],this[r(880)]+this[r(1709)]+e));return this.index+=e,r},r[t(946)]=i}),Oe=r(function(e,r){var n=$,t=De();function i(e){t[_0x3872(1775)](this,e)}A().inherits(i,t),i.prototype[n(973)]=function(e){var r,t=n;return this.checkOffset(e),0===e?new Uint8Array(0):(r=this.data[t(568)](this[t(880)]+this.index,this[t(880)]+this[t(1709)]+e),this[t(1709)]+=e,r)},r.exports=i}),Be=r(function(e,r){var n=$,t=Oe();function i(e){t.call(this,e)}A().inherits(i,t),i[n(785)][n(973)]=function(e){var r=n,t=(this[r(558)](e),this[r(583)][r(2136)](this[r(880)]+this[r(1709)],this[r(880)]+this[r(1709)]+e));return this[r(1709)]+=e,t},r.exports=i}),Pe=r(function(e,r){var n=$,i=A(),a=_(),o=De(),s=Te(),u=Be(),c=Oe();r[n(946)]=function(e){var r=n,t=i[r(1881)](e);return i[r(1433)](t),t!==r(1191)||a[r(1587)]?t===r(1051)?new u(e):a.uint8array?new c(i[r(1125)]("uint8array",e)):new o(i[r(1125)]("array",e)):new s(e)}}),Fe=r(function(e,r){var o=$,n=Pe(),i=A(),a=T(),s=h(),u=D(),c=we(),f=_();function t(e,r){this[_0x3872(1819)]=e,this.loadOptions=r}t[o(785)]={isEncrypted:function(){return 1==(1&this[o(1057)])},useUTF8:function(){return 2048==(2048&this[o(1057)])},readLocalPart:function(e){var r,t=o;if(e.skip(22),this[t(1171)]=e.readInt(2),r=e[t(627)](2),this[t(732)]=e[t(973)](this.fileNameLength),e[t(1743)](r),-1===this[t(2096)]||-1===this[t(2231)])throw new Error(t(643));if(null===(r=(e=>{var r,t=_0x3872;for(r in c)if(c.hasOwnProperty(r)&&c[r][t(1940)]===e)return c[r];return null})(this[t(515)])))throw new Error(t(2120)+i.pretty(this[t(515)])+t(993)+i[t(1125)]("string",this[t(732)])+")");this[t(1126)]=new a(this[t(2096)],this.uncompressedSize,this.crc32,r,e[t(973)](this[t(2096)]))},readCentralPart:function(e){var r=o,t=(this[r(1302)]=e[r(627)](2),e[r(1743)](2),this.bitFlag=e[r(627)](2),this.compressionMethod=e[r(974)](2),this.date=e[r(1382)](),this.crc32=e.readInt(4),this[r(2096)]=e[r(627)](4),this[r(2231)]=e.readInt(4),e[r(627)](2));if(this[r(829)]=e[r(627)](2),this[r(1645)]=e[r(627)](2),this[r(1357)]=e.readInt(2),this[r(1946)]=e[r(627)](2),this[r(527)]=e[r(627)](4),this.localHeaderOffset=e[r(627)](4),this[r(1829)]())throw new Error("Encrypted zip are not supported");e[r(1743)](t),this[r(1392)](e),this[r(1289)](e),this[r(791)]=e[r(973)](this[r(1645)])},processAttributes:function(){var e=o,r=(this.unixPermissions=null,this[e(760)]=null,this[e(1302)]>>8);this[e(919)]=!!(16&this[e(527)]),0==r&&(this[e(760)]=63&this[e(527)]),3==r&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this[e(1842)].slice(-1)||(this[e(919)]=!0)},parseZIP64ExtraField:function(e){var r,t=o;this.extraFields[1]&&(r=n(this[t(1799)][1][t(1203)]),this[t(2231)]===i[t(2031)]&&(this[t(2231)]=r[t(627)](8)),this[t(2096)]===i[t(2031)]&&(this[t(2096)]=r[t(627)](8)),this.localHeaderOffset===i[t(2031)]&&(this[t(1951)]=r[t(627)](8)),this[t(1357)]===i.MAX_VALUE_32BITS)&&(this.diskNumberStart=r[t(627)](4))},readExtraFields:function(e){var r,t,n,i=o,a=e[i(1709)]+this[i(829)];for(this[i(1799)]||(this[i(1799)]={});e[i(1709)]+4<a;)r=e[i(627)](2),t=e[i(627)](2),n=e[i(973)](t),this[i(1799)][r]={id:r,length:t,value:n};e[i(652)](a)},handleUTF8:function(){var e,r=o,t=f.uint8array?"uint8array":r(502);this[r(1723)]()?(this.fileNameStr=u[r(994)](this[r(732)]),this[r(496)]=u[r(994)](this[r(791)])):(null!==(e=this.findExtraFieldUnicodePath())?this[r(1842)]=e:(e=i[r(1125)](t,this[r(732)]),this.fileNameStr=this[r(1242)][r(1768)](e)),null!==(e=this[r(1036)]())?this[r(496)]=e:(e=i[r(1125)](t,this[r(791)]),this[r(496)]=this.loadOptions[r(1768)](e)))},findExtraFieldUnicodePath:function(){var e,r=o,t=this.extraFields[28789];return!t||1!==(e=n(t.value))[r(627)](1)||s(this[r(732)])!==e[r(627)](4)?null:u[r(994)](e.readData(t[r(1963)]-5))},findExtraFieldUnicodeComment:function(){var e,r=o,t=this[r(1799)][25461];return!t||1!==(e=n(t[r(1203)]))[r(627)](1)||s(this[r(791)])!==e[r(627)](4)?null:u.utf8decode(e[r(973)](t[r(1963)]-5))}},r[o(946)]=t}),Ie=r(function(e,r){var t=Pe(),n=A(),i=ke(),a=Fe(),o=(D(),_());function s(e){var r=_0x3872;this.files=[],this[r(1242)]=e}s.prototype={checkSignature:function(e){var r,t=_0x3872;if(!this[t(1035)][t(1044)](e))throw this[t(1035)][t(1709)]-=4,r=this[t(1035)][t(974)](4),new Error("Corrupted zip or bug: unexpected signature ("+n[t(1027)](r)+t(1367)+n.pretty(e)+")")},isSignature:function(e,r){var t=_0x3872,n=this.reader[t(1709)];this[t(1035)][t(652)](e);e=this[t(1035)][t(974)](4)===r;return this[t(1035)][t(652)](n),e},readBlockEndOfCentral:function(){var e=_0x3872,r=(this.diskNumber=this[e(1035)][e(627)](2),this.diskWithCentralDirStart=this[e(1035)].readInt(2),this[e(1720)]=this[e(1035)][e(627)](2),this.centralDirRecords=this[e(1035)].readInt(2),this[e(1258)]=this[e(1035)].readInt(4),this.centralDirOffset=this[e(1035)][e(627)](4),this.zipCommentLength=this[e(1035)][e(627)](2),this[e(1035)][e(973)](this[e(2002)])),t=o[e(1587)]?e(1587):e(502),t=n[e(1125)](t,r);this.zipComment=this.loadOptions[e(1768)](t)},readBlockZip64EndOfCentral:function(){var e=_0x3872;this[e(970)]=this[e(1035)][e(627)](8),this[e(1035)][e(1743)](4),this[e(1962)]=this[e(1035)][e(627)](4),this[e(810)]=this[e(1035)].readInt(4),this[e(1720)]=this[e(1035)][e(627)](8),this[e(1811)]=this.reader.readInt(8),this[e(1258)]=this[e(1035)][e(627)](8),this[e(1352)]=this[e(1035)][e(627)](8),this[e(1245)]={};for(var r,t,n,i=this[e(970)]-44;0<i;)r=this[e(1035)][e(627)](2),t=this.reader.readInt(4),n=this.reader[e(973)](t),this[e(1245)][r]={id:r,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){var e=_0x3872;if(this[e(1407)]=this[e(1035)][e(627)](4),this[e(2149)]=this[e(1035)].readInt(8),this[e(886)]=this[e(1035)][e(627)](4),1<this[e(886)])throw new Error(e(514))},readLocalFiles:function(){for(var e,r=_0x3872,t=0;t<this[r(1701)][r(1963)];t++)e=this[r(1701)][t],this.reader.setIndex(e[r(1951)]),this[r(2122)](i[r(579)]),e.readLocalPart(this[r(1035)]),e[r(1849)](),e.processAttributes()},readCentralDir:function(){var e,r=_0x3872;for(this[r(1035)].setIndex(this[r(1352)]);this[r(1035)].readAndCheckSignature(i[r(1086)]);)(e=new a({zip64:this[r(1246)]},this[r(1242)]))[r(1240)](this[r(1035)]),this[r(1701)][r(1158)](e);if(this[r(1811)]!==this.files[r(1963)]&&0!==this[r(1811)]&&0===this[r(1701)][r(1963)])throw new Error(r(1134)+this[r(1811)]+r(765)+this[r(1701)][r(1963)])},readEndOfCentral:function(){var e=_0x3872,r=this[e(1035)][e(1524)](i[e(2222)]);if(r<0)throw!this[e(1160)](0,i[e(579)])?new Error(e(1162)):new Error("Corrupted zip: can't find end of central directory");this[e(1035)][e(652)](r);var t=r;if(this[e(2122)](i.CENTRAL_DIRECTORY_END),this[e(1264)](),this[e(1962)]===n[e(1590)]||this[e(810)]===n[e(1590)]||this.centralDirRecordsOnThisDisk===n[e(1590)]||this.centralDirRecords===n.MAX_VALUE_16BITS||this[e(1258)]===n[e(2031)]||this[e(1352)]===n[e(2031)]){if(this[e(1246)]=!0,(r=this[e(1035)][e(1524)](i[e(905)]))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this[e(1035)][e(652)](r),this[e(2122)](i[e(905)]),this[e(683)](),!this.isSignature(this[e(2149)],i[e(1932)])&&(this[e(2149)]=this[e(1035)][e(1524)](i[e(1932)]),this[e(2149)]<0))throw new Error(e(863));this[e(1035)][e(652)](this[e(2149)]),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}r=this[e(1352)]+this[e(1258)],r=t-(r=this[e(1246)]?(r+=20)+(12+this[e(970)]):r);if(0<r)this[e(1160)](t,i[e(1086)])||(this.reader[e(880)]=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math[e(1315)](r)+e(1660))},prepareReader:function(e){this[_0x3872(1035)]=t(e)},load:function(e){var r=_0x3872;this.prepareReader(e),this[r(832)](),this[r(781)](),this[r(572)]()}},r.exports=s}),Re=r(function(e,r){var t=$,n=A(),u=g(),i=D(),c=Ie(),f=ne(),h=b();r[t(946)]=function(e,a){var o=t,s=this;return a=n.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i[o(994)]}),h[o(882)]&&h.isStream(e)?u[o(1930)][o(554)](new Error(o(630))):n[o(2118)]("the loaded zip file",e,!0,a.optimizedBinaryString,a.base64)[o(1142)](function(e){var r=new c(a);return r.load(e),r})[o(1142)](function(e){var r=o,t=[u[r(1930)].resolve(e)],n=e[r(1701)];if(a[r(983)])for(var i=0;i<n[r(1963)];i++)t[r(1158)]((a=>{var e=_0x3872;return new u[e(1930)](function(r,t){var n=e,i=a[n(1126)][n(1459)]()[n(1724)](new f);i.on(n(1803),function(e){t(e)}).on(n(1954),function(){var e=n;i[e(565)].crc32!==a[e(1126)].crc32?t(new Error(e(1936))):r()})[n(662)]()})})(n[i]));return u[r(1930)].all(t)}).then(function(e){for(var r=o,e=e[r(1804)](),t=e.files,n=0;n<t.length;n++){var i=t[n];s[r(1636)](i[r(1842)],i.decompressed,{binary:!0,optimizedBinaryString:!0,date:i[r(1650)],dir:i[r(919)],comment:i[r(496)].length?i[r(496)]:null,unixPermissions:i.unixPermissions,dosPermissions:i[r(760)],createFolders:a[r(1977)]})}return e.zipComment[r(1963)]&&(s.comment=e[r(1461)]),s})}}),je=r(function(e,r){var n=$;function i(){var n=_0x3872;if(!(this instanceof i))return new i;if(arguments[n(1963)])throw new Error(n(1124));this[n(1701)]=Object[n(784)](null),this[n(547)]=null,this[n(2036)]="",this[n(823)]=function(){var e,r=n,t=new i;for(e in this)typeof this[e]!=r(1221)&&(t[e]=this[e]);return t}}i[n(785)]=Ae(),i[n(785)][n(1967)]=Re(),i[n(1947)]=_(),i[n(777)]=re(),i[n(654)]=n(1652),i.loadAsync=function(e,r){var t=n;return(new i)[t(1967)](e,r)},i[n(1018)]=g(),r[n(946)]=i}),o={},Ne=o,Ge={Command:function(){return Le},jszip:function(){return He[$(1755)]}};for(n in Ge)u(Ne,n,{get:Ge[n],enumerable:!0});e[$(946)]=(e=o,i(u({},$(2154),{value:!0}),e));var o=t(M(),1)[$(1755)],Le=(o[$(1373)],o[$(900)],o[$(1040)],o[$(1165)],o[$(2173)],o.InvalidArgumentError,o[$(2013)],o[$(1958)]),He=(o[$(1319)],o[$(1965)],o[$(1484)],t(je()))}),qt=$e(function(e,r){var t,n,i=_0x3872,a=i(852),o=i(1465);r[i(946)]={MAX_SIZE_SSPK:2097152,MAX_SIZE_SPK:20971520,SIGN_MAGIC:i(1454),SIGN_MAGIC_APK:i(1606),SIGN_TYPE_FULL_PACKAGE:16777473,SIGN_TYPE_FULL_PACKAGE_APK:1896449818,SIGN_TYPE_FILE_LIST:16777729,CRYPT_TYPE_RSA_SHA256:259,SIGN_HEADER:[48,49,48,13,6,9,96,134,72,1,101,3,4,2,1,5,0,4,32],BEGIN_TAG:165,JOINT_TAG:90,CERT_HEAD:i(952),CERT_END:"\n-----END CERTIFICATE-----",setSignType:function(e){return a=e},isApkSign:function(){return"apk"===a},setDssHost:function(e){return t=e},setDssKey:function(e){return n=e},setDssKeyId:function(e){return o=e},getDssHost:function(){return t},getDssKey:function(){return n},getDssKeyId:function(){return o},setDssConfig:function(e){var r=i;t=e.dssHost,n=e[r(938)]}}}),Tr=$e(function(e,r){var t=_0x3872,h=qt(),l=22,v=67324752,d=33639248,p=101010256,_=16;r[t(946)]={parserZip:function(e,r){var t,n,i,a,o,s,u,c=_0x3872,f={tag:!1,length:e[c(1963)],sections:{header:null,central:null,footer:null}};return f[c(1788)][c(509)]=(e=>{var r=_0x3872,t={tag:!1};if(e&&!(e[r(1963)]<l))for(var n=e[r(1963)]-l;0<=n;n--)if(p===e[r(868)](n)){t.tag=!0,t[r(1107)]=n,t[r(1879)]=e[r(1963)]-n,t[r(1952)]=e[r(868)](n+_);break}return t})(e),f[c(1788)][c(509)].tag&&(f[c(1788)].central=(i=e,a=f[c(1788)][c(509)][c(1952)],o=f[c(1788)][c(509)][c(1107)]-f.sections.footer[c(1952)],s=_0x3872,u={tag:!1},!i||i.length<a||d===i[s(868)](a)&&(u[s(2095)]=!0,u[s(1107)]=a,u.len=o,u.previous=i[s(868)](a+42)),u),f[c(1788)].central[c(2095)])&&(o=f[c(1788)][c(2033)].previous,i=f.sections[c(2033)][c(1107)]-f[c(1788)][c(2033)][c(1952)],r&&(f.sections[c(1189)]=(s=o,a=_0x3872,u={tag:!1},!(r=e)||r.length<s||(s=h[a(2143)]()?h.SIGN_MAGIC_APK:h[a(2155)],0<(s=r[a(2215)](s))&&(t=r.readInt32LE(s-8),n=s+16-t-8,r[a(868)](n)===t)&&(u[a(2095)]=!0,u[a(1879)]=t,u[a(1107)]=s+16,u.previous=n)),u),o=0,i=f.sections[c(1189)][c(1107)]-f.sections[c(1189)][c(1879)]-8),f[c(1788)][c(961)]=(r=o,t=i,a=_0x3872,s={tag:!1},!(n=e)||n[a(1963)]<r||v===n.readInt32LE(r)&&(s.tag=!0,s.startIndex=r,s.len=t,s.previous=-1),s),f.sections[c(961)][c(2095)]&&(f[c(2095)]=!0)),f},checkZipBuffer:function(e,r){var t=_0x3872;return!e||e[t(1963)]<=4?(console[t(1816)](t(1841),r),!1):v===e[t(868)](0)||(console[t(1816)](t(1727),r),!1)}}}),ei=$e(function(e,r){var u,c=_0x3872,t={};t[c(1004)]=function(e){var r=c;if(void 0===u){var t="= \f\n\r\t \u2028\u2029";for(u=[],o=0;o<64;++o)u[r(828)[r(1588)](o)]=o;for(o=0;o<t[r(1963)];++o)u[t[r(1588)](o)]=-1}for(var n=[],i=0,a=0,o=0;o<e[r(1963)];++o){var s=e[r(1588)](o);if("="===s)break;if(-1!==(s=u[s])){if(void 0===s)throw r(1633)+o;i|=s,4<=++a?(n[n[r(1963)]]=i>>16,n[n[r(1963)]]=i>>8&255,n[n.length]=255&i,a=i=0):i<<=6}}switch(a){case 1:throw r(483);case 2:n[n[r(1963)]]=i>>10;break;case 3:n[n[r(1963)]]=i>>16,n[n.length]=i>>8&255}return n},t.re=/-----BEGIN [^-]+-----([A-Za-z\d+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z\d+\/=\s]+)====/,t.unarmor=function(e){var r=c,r=t.re[r(1998)](e);if(r)if(r[1])e=r[1];else{if(!r[2])throw"RegExp out of sync";e=r[2]}return t.decode(e)},r[c(946)]=t}),ni=$e(function(e,r){var c,t={decode:function(e){var r=_0x3872;if(void 0===c){var t=r(2131),n=r(1927);for(c=[],s=0;s<16;++s)c[t[r(1588)](s)]=s;for(t=t.toLowerCase(),s=10;s<16;++s)c[t.charAt(s)]=s;for(s=0;s<n.length;++s)c[n[r(1588)](s)]=-1}for(var i=[],a=0,o=0,s=0;s<e[r(1963)];++s){var u=e.charAt(s);if("="===u)break;if(-1!==(u=c[u])){if(void 0===u)throw"Illegal character at offset "+s;a|=u,2<=++o?(i[i[r(1963)]]=a,o=a=0):a<<=4}}if(o)throw r(1742);return i}};r.exports=t}),ai=$e(function(e,r){var o=_0x3872,t={};t[o(2217)]=function(e,r){var t,n=o;void 0===r&&(r=0);r^=-1;for(var i=0,a=e[n(1963)];i<a;i++)t=255&(r^e[n(670)](i)),r=r>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*t,8);return-1^r},r[o(946)]=t}),Rr=$e(function(e,r){var t=_0x3872,n=ei(),i=ni(),a=ai();r[t(946)]={Base64:n,Hex:i,CRC32:a}}),Nr=$e(function(e,r){var c=_0x3872,f=require("crypto"),h=require(c(463)),l=qt(),v=require(c(1072))[c(1740)];var d={"Content-Type":c(1872)};function a(e){var r,t,n,a=c,o={version:"1",payload:v(e),paddingMode:"1"},e=(new Date)[a(1974)](),i=a(1259),s=(d[i]=(i=o,r=c,t=(new Date)[r(1974)](),i=r(615)+new URL(l[r(1530)]()).pathname+"&&"+JSON.stringify(i)+r(700)+l[r(749)]()+r(1028)+t,n=l.getDssKey(),n=f[r(1550)](r(694),n)[r(1959)](i)[r(2217)](r(2262)),r(1270)[r(1176)](l[r(749)](),r(1420))[r(1176)](t,r(1278))[r(1176)](n,'"')),d[a(2203)]=e,new URL(l[a(1530)]())),u=s[a(1012)];return new Promise(function(n){var i=a,e=h.request({host:s[i(701)],port:8108,method:i(1297),path:u,headers:d},function(e){var r=i,t="";e.on(r(583),function(e){t+=e}),e.on(r(1954),function(){n(JSON[r(545)](t))})});e.on(i(1803),function(e){var r=i;console[r(1803)](r(692)[r(1176)](e[r(2099)]))}),e[i(1282)](JSON.stringify(o)),e[i(1954)]()})}function i(e){return t[c(1988)](this,arguments)}function t(){var e=c;return(t=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,a(t);case 1:return n=e.v,console[r(1816)](n),i={},e.a(2,(n&&0===n[r(774)]?(i[r(1399)]=n.result[r(1399)],i[r(1205)]=n[r(2067)][r(1205)]):console[r(1803)]("sign request error:"+(n?n.result[r(2158)]:"")),i))}},e)})))[e(1988)](this,arguments)}function o(e){var r,t=c;if(e)return r=(e=e[t(2108)](/-/g,"+")[t(2108)](/_/g,"/")).length%4,e+t(1377)[t(513)](0,r)}function n(){return(n=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return l[r(1536)](t),e.n=1,i(r(1117));case 1:return n=e.v,n=o(n.cert)[r(2108)](/(.{64})/g,r(1306)),e.a(2,l[r(1498)]+n+l[r(1924)])}},e)}))).apply(this,arguments)}r[c(946)]={getSignDigestOnline:i,Base64UrlToBase64:o,setOnlineParam:function(e,r){var t=c;l[t(2101)](e),l[t(2009)](r)},generateCertificate:function(e){return n[c(1988)](this,arguments)}}}),zr=$e(function(e,r){var k=_0x3872,x=qt(),d=Tr(),t=require("js-base64"),n=t[k(1421)],p=t[k(587)],u=require("http"),i=require("fs"),_=require("crypto"),s=Rr(),g=Nr(),c=k(1049),f=k(2221),h=k(1381),l=k(2071),v=k(1515);function m(e,r){var t=k,n=r.startIndex,i=r[t(1107)]+r[t(1879)],e=e[t(2136)](n,i),n=Buffer[t(982)](5+r[t(1879)]);n[0]=x[t(1472)],n[t(1097)](e[t(1963)],1),e[t(883)](n,5),r[t(1189)]=B(n)}function y(e){var r=k;function t(e){var r=_0x3872;e[r(883)](i,a),a+=e[r(1963)]}var e=e[r(1788)],n=e.header[r(1189)][r(1963)]+e[r(2033)][r(1189)][r(1963)]+e[r(509)][r(1189)][r(1963)]+5,i=Buffer[r(982)](n),a=0;return i.writeInt8(x[r(1438)],0),i[r(1097)](3,1),a+=5,t(e[r(961)].sign),t(e[r(2033)][r(1189)]),t(e[r(509)][r(1189)]),B(i)}function b(e,r){var t=k,a={keyId:r[t(1613)],clientType:c,clientVersion:f,algorithmType:h,userName:r[t(1994)],unSignData:n(e),passwordDigest:r[t(2195)],algorithm:l,outFileNameArray:[v],encryptPassword:r[t(1625)]},o=new URL(r[t(1900)]),s=o[t(1012)];return new Promise(function(n){var i=t,e=u[i(806)]({host:o[i(701)],method:i(1297),path:s,headers:{"Content-Type":i(1872)}},function(e){var r=i,t="";e.on(r(583),function(e){t+=e}),e.on("end",function(){n(JSON[r(545)](t))})});e.on(i(1803),function(e){var r=i;console[r(1803)]("problem with request: "[r(1176)](e[r(2099)]))}),e[i(1282)](JSON[i(954)](a)),e[i(1954)]()})}function w(e){var r=k,t=Buffer[r(1806)](x.SIGN_HEADER),e=B(e),n=Buffer[r(982)](e[r(1963)]+t[r(1963)]),i=0;return t[r(883)](n,0),i+=t[r(1963)],e[r(883)](n,i),n}function C(e){var r=k,t=Buffer[r(982)](e.length+12);return t[r(1097)](e.length+8,0),t[r(1097)](x[r(767)],4),t[r(1097)](e.length,8),e.copy(t,12),{len:t[r(1963)],buffer:t}}function E(e,r){var t=k,n={len:12,digests:{size:0,data:[]},certs:{size:0,data:[]},additional:0};return n[t(790)][t(583)][t(1158)](e),n[t(790)].size+=e[t(1879)],n.len+=e.len,n[t(2265)][t(583)][t(1158)](r),n[t(2265)].size+=r[t(1879)],n[t(1879)]+=r[t(1879)],n}function A(){var e=k;return(A=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s,u;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if((i={len:16+n[r(1399)][r(1202)][r(1963)],size:12+n[r(1399)].pemBuffer.length,signdata:{size:0,buffer:null},signatures:{size:0,data:[]},pubkey:{size:n[r(1399)][r(1202)][r(1963)],buffer:n[r(1399)][r(1202)]}})[r(1494)].buffer=D(t),i[r(1494)].size=t[r(1879)],i[r(2023)]+=t[r(1879)],i.len+=t.len,x[r(2143)]())return e.n=1,g[r(1937)](i[r(1494)][r(1249)]);e.n=2;break;case 1:a=e.v,a=Buffer.from(p[r(2032)](a[r(1205)])),e.n=8;break;case 2:if(n.type===r(2142))return e.n=3,g.getSignDigestOnline(i.signdata[r(1249)]);e.n=4;break;case 3:o=e.v,a=Buffer.from(p.toUint8Array(o[r(1205)])),e.n=8;break;case 4:if(n[r(477)])return o=w(i[r(1494)][r(1249)]),e.n=5,b(o,n[r(1809)]);e.n=7;break;case 5:if((s=e.v)[r(876)]){e.n=6;break}throw new Error(s.message);case 6:a=Buffer[r(1806)](p[r(2032)](s[r(583)].signData)),e.n=8;break;case 7:(u=_.createSign(r(1011))).update(i.signdata[r(1249)]),a=u[r(1189)](n[r(964)]);case 8:return u={len:a[r(1963)]+12,size:a[r(1963)]+8,id:x[r(767)],buffer:a},e.a(2,(i[r(1424)][r(583)][r(1158)](u),i[r(1424)].size+=u[r(1879)],i[r(2023)]+=u.len,i[r(1879)]+=u[r(1879)],i))}},e)})))[e(1988)](this,arguments)}function S(){var e=k;return(S=_asyncToGenerator(_regenerator().m(function e(t,n,i){var a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if((a={len:4+n.len,size:n[r(1879)],data:[]})[r(583)][r(1158)](n),o=x[r(2143)]()?x[r(860)]:x.SIGN_TYPE_FULL_PACKAGE,o={len:a[r(1879)]+12,size:a[r(1879)]+4,id:o,value:a},(a={len:32+o[r(1879)],size:24+o[r(1879)],data:[]}).data[r(1158)](o),t[r(1701)]&&!x[r(2143)]())return e.n=1,function(){return O[k(1988)](this,arguments)}(t[r(1701)],i);e.n=2;break;case 1:(o=e.v)&&((s={len:4+o[r(1963)],size:o[r(1963)],data:[]}).data[r(1158)](o),s={len:s[r(1879)]+12,size:s.len+4,id:x.SIGN_TYPE_FILE_LIST,value:s},a[r(583)][r(1158)](s),a[r(2023)]+=s[r(1879)],a[r(1879)]+=s[r(1879)]);case 2:return e.a(2,a)}},e)})))[e(1988)](this,arguments)}function D(e){var t=k,n=Buffer[t(982)](e[t(1879)]),i=0;return n[t(1097)](e.digests[t(2023)],i),i+=4,e[t(790)][t(583)][t(610)](function(e){var r=t;e[r(1249)][r(883)](n,i),i+=e[r(1879)]}),n[t(1097)](e.certs[t(2023)],i),i+=4,e[t(2265)][t(583)].forEach(function(e){e[t(1249)].copy(n,i),i+=e.len}),n[t(1097)](e[t(537)],i),n}function T(e){var a=k,o={len:8,size:4,digests:[],sign:null};return e[a(610)](function(e){var r=a,t=s[r(1667)][r(2217)](e[r(1180)][r(641)]()),n=6+e[r(754)][r(1963)],i=Buffer[r(982)](n);i.writeInt32LE(t,0),i[r(1114)](e[r(754)][r(1963)],4),e[r(754)].copy(i,6),o[r(790)][r(1158)](i),o.size+=n,o[r(1879)]+=n}),o}function O(){var e=k;return(O=_asyncToGenerator(_regenerator().m(function e(o,s){var u,c,f,h,l,v,d;return _regenerator().w(function(e){for(var r,t,n,i,a=_0x3872;;)switch(e.n){case 0:u=T(o),c=Buffer[a(982)](u[a(2023)]),f=0,u[a(790)][a(610)](function(e){e.copy(c,f),f+=e.length}),s.sign?(console[a(1816)](a(467)),h=s[a(1189)],e.n=7):e.n=1;break;case 1:if("dss"===s[a(725)])return e.n=2,g[a(1937)](c);e.n=3;break;case 2:l=e.v,h=Buffer[a(1806)](p[a(2032)](l[a(1205)])),e.n=7;break;case 3:if(s[a(477)])return l=w(c),e.n=4,b(l,s[a(1809)]);e.n=6;break;case 4:if((v=e.v).success){e.n=5;break}throw new Error(v[a(2099)]);case 5:h=Buffer[a(1806)](p[a(2032)](v[a(583)][a(1515)])),e.n=7;break;case 6:(d=_[a(1620)](a(1011)))[a(1959)](c),h=d[a(1189)](s[a(964)]);case 7:return e.a(2,(u[a(790)]=c[a(2136)](),u[a(1189)]={len:12+h[a(1963)],size:8+h[a(1963)],id:x[a(767)],data:h},u[a(1879)]+=u[a(1189)][a(1879)],r=u,i=n=t=void 0,t=k,n=Buffer[t(982)](r[t(1879)]),i=0,n[t(1097)](r[t(2023)],0),i+=4,r[t(790)].copy(n,4),i+=r[t(790)].length,n.writeInt32LE(r[t(1189)][t(2023)],i),i+=4,n[t(1097)](r[t(1189)].id,i),i+=4,n[t(1097)](r.sign[t(583)][t(1963)],i),i+=4,r[t(1189)].data.copy(n,i),n))}},e)})))[e(1988)](this,arguments)}function a(){var e=k;return(a=_asyncToGenerator(_regenerator().m(function e(u,c,f){var h,l,v;return _regenerator().w(function(e){for(var r,t,n,i,a,o,s=_0x3872;;)switch(e.n){case 0:if(d[s(1422)](u)){e.n=1;break}return e.a(2,null);case 1:if((h=d[s(1765)](u))[s(1819)]={files:c},h[s(2095)]){e.n=2;break}return e.a(2,null);case 2:return Object[s(1104)](h[s(1788)])[s(610)](function(e){e=h[s(1788)][e];m(u,e)}),l=y(h),l=C(l),l=E(l,f[s(1399)][s(1419)]),e.n=3,function(){return A[k(1988)](this,arguments)}(l,f);case 3:return l=e.v,e.n=4,function(){return S[k(1988)](this,arguments)}(h.options,l,f);case 4:return v=e.v,e.a(2,(h[s(1050)]=(e=>{var r=k,i=Buffer[r(982)](e[r(1879)]),a=0,t=(i[r(1097)](e[r(2023)],a),a+=4,i.writeInt32LE(0,a),a+=4,x[r(2143)]()?x[r(860)]:x[r(1566)]),e=(e[r(583)][r(610)](function(e){var n=r;i[n(1097)](e[n(2023)],a),a+=4,i[n(1097)](0,a),a+=4,i.writeInt32LE(e.id,a),a+=4,i[n(1097)](e[n(1203)][n(2023)],a),a+=4,t===e.id?e[n(1203)][n(583)].forEach(function(e){var t=n;i[t(1097)](e[t(2023)],a),a+=4,i[t(1097)](e.signdata[t(2023)],a),a+=4,e[t(1494)][t(1249)][t(883)](i,a),a+=e[t(1494)].buffer[t(1963)],i[t(1097)](e[t(1424)][t(2023)],a),a+=4,e[t(1424)][t(583)][t(610)](function(e){var r=t;i[r(1097)](e[r(2023)],a),a+=4,i[r(1097)](e.id,a),a+=4,i[r(1097)](e[r(1249)][r(1963)],a),a+=4,e[r(1249)][r(883)](i,a),a+=e[r(1249)][r(1963)]}),i[t(1097)](e.pubkey[t(2023)],a),a+=4,e[t(773)][t(1249)][t(883)](i,a),a+=e[t(773)][t(1249)][t(1963)]}):x[n(1789)]===e.id&&e.value[n(583)].forEach(function(e){var r=n;e.copy(i,a),a+=e[r(1963)]})}),i[r(1097)](e[r(2023)],a),a+=4,i[r(1097)](0,a),a+=4,x[r(2143)]()?x[r(1683)]:x[r(2155)]);return Buffer.from(e).copy(i,a),i})(v),r=u,t=h,o=a=i=n=void 0,n=k,i=Buffer.alloc(r[n(1963)]+t.signchunk[n(1963)]),a=0,o=t[n(1788)],r.copy(i,0,o[n(961)].startIndex,o[n(961)].startIndex+o[n(961)][n(1879)]),a+=o[n(961)].len,t[n(1050)][n(883)](i,a),a+=t[n(1050)][n(1963)],r.copy(i,a,o.central.startIndex,o[n(2033)][n(1107)]+o.central[n(1879)]),a+=o[n(2033)].len,r[n(1097)](o[n(2033)].startIndex+t[n(1050)][n(1963)],o.footer[n(1107)]+16),r[n(883)](i,a,o.footer[n(1107)],o[n(509)][n(1107)]+o[n(509)][n(1879)]),i))}},e)})))[e(1988)](this,arguments)}function o(){var e=k;return(o=_asyncToGenerator(_regenerator().m(function e(t,n,i){var a,o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(d[r(1422)](t)){e.n=1;break}return e.a(2,null);case 1:if((a=d[r(1765)](t))[r(1819)]={files:n},a.tag){e.n=2;break}return e.a(2,null);case 2:return Object[r(1104)](a[r(1788)])[r(610)](function(e){e=a[r(1788)][e];m(t,e)}),o=y(a),o=C(o),o=E(o,i.cert.obj),e.a(2,D(o))}},e)})))[e(1988)](this,arguments)}function B(e){var r=k,t=_.createHash("SHA256");return t[r(1959)](e),t[r(2217)]()}function P(e,r){var t=k,n={};return n[t(2023)]=e[t(868)](r),r+=4,n[t(1249)]=e[t(2136)](r,r+n[t(2023)]),{obj:n,i:r+=n[t(2023)]}}r[k(946)]={hashFile:function(e){return B(i[k(1446)](e))},signZipResource:function(e,r,t){return a[k(1988)](this,arguments)},getBufferSha256:B,getSignChunk:function(e,r){for(var t,n,i,a,o,s,u,c=k,f=(w=r.previous+8)+r.len,h=[],l={},v=(l[c(1330)]=[],x[c(2143)]()?x[c(860)]:x[c(1566)]);w<f;){d=e,o=w,u=s=void 0,(u={})[(s=k)(2023)]=d[s(868)](o),u.id=d.readInt32LE(o+=8),o+=4,u[s(1203)]={},u[s(1203)][s(2023)]=d.readInt32LE(o),u[s(1203)].data=[];var d={data:u,index:o+=4},p=d[c(583)],_=(w=d[c(1709)])+p[c(1203)][c(2023)],g={};if(v===p.id)for(;w<_;){g[c(2023)]=e[c(868)](w);var m=P(e,w+=4),y=(g[c(1494)]=m.obj,w=m.i,l[c(1330)].push(g[c(1494)][c(1249)]),g[c(1424)]={},g[c(1424)].size=e[c(868)](w),(w+=4)+g[c(1424)][c(2023)]);for(g[c(1424)][c(583)]=[];w<y;){b=e,t=w,a=i=n=void 0,(i={})[(n=k)(2023)]=b[n(868)](t),t+=4,i.id=b[n(868)](t),a=b.readInt32LE(t+=4),t+=4,i[n(1249)]=b[n(2136)](t,t+a);var b={sData:i,index:t+=a},w=b.index;g.signatures[c(583)][c(1158)](b[c(1798)])}m=P(e,w);g.pubkey=m[c(1419)],w=m.i,p[c(1203)][c(583)][c(1158)](g)}else x.SIGN_TYPE_FILE_LIST===p.id&&(g=e[c(2136)](w,w+p[c(1203)][c(2023)]),p.value[c(583)][c(1158)](g));h[c(1158)](p)}return l.data=h,l[c(2023)]=r[c(2023)],l},getCertBuffer:function(e){var r,t,n=k;if(e)return e[n(1330)]&&0<e[n(1330)][n(1963)]?(t=e.signDataBufList[r=0][n(868)](0),t=e.signDataBufList[0].readInt32LE(r=r+(4+t)+4),r+=4,e=e[n(1330)][0][n(2136)](r,r+t),x[n(1498)]+e[n(641)](n(2262))+x[n(1924)]):void 0;console.error(n(1179))},getSignFilesObject:T,getSignData:function(e,r,t){return o[k(1988)](this,arguments)}}}),Ct=$e(function(j,e){function N(t,n,i,a){var o=y;if(n&&_typeof(n)==o(1184)||typeof n==o(1221)){var s,r=_createForOfIteratorHelper(z(n));try{for(r.s();!(s=r.n())[o(1328)];)(()=>{var e=o,r=s.value;q[e(1775)](t,r)||r===i||H(t,r,{get:function(){return n[r]},enumerable:!(a=M(n,r))||a[e(1005)]})})()}catch(e){r.e(e)}finally{r.f()}}return t}function r(e,r,t){var n=y;return t=null!=e?L(U(e)):{},N(!r&&e&&e[n(2154)]?t:H(t,n(1755),{value:e,enumerable:!0}),e)}var G,y=_0x3872,L=Object[y(784)],H=Object[y(1200)],M=Object.getOwnPropertyDescriptor,z=Object[y(710)],U=Object[y(1294)],q=Object[y(785)][y(981)],t={},K=t,Z={$async:function(){return b},ASCF_LOG_FILE:function(){return re},AscfBuilder:function(){return En},AscfDebugger:function(){return St},AsyncResult:function(){return se},BUILD_MODE_DEBUG:function(){return vn},BUILD_MODE_RELEASE:function(){return dn},BUILD_TARGET_AS:function(){return Ue},BUILD_TARGET_QS:function(){return qe},BuildProcessFactory:function(){return Wn},DebuggerProcessFactory:function(){return Yn},ERROR_MSG:function(){return m},HOS_DEVICE:function(){return l},LEGACY_DEVICE:function(){return h},ascfCompile:function(){return $t},ascfConvert:function(){return Qt},ascfGenCert:function(){return rn},ascfGenP12:function(){return nn},ascfRun:function(){return Yt},clearAscfDepDirCache:function(){return Lt},configureLogger:function(){return ne},devicesLegacyShared:function(){return Ce},execSafe:function(){return wr},findAvailablePort:function(){return Er},fixHvigorPath:function(){return Mt},getAscfDebuggerPidFile:function(){return hn},getAscfDepDir:function(){return Ut},getBundleInfo:function(){return fr},getDebugServerInfo:function(){return cn},getDebugees:function(){return ut},getDevEcoSdkHome:function(){return be},getDevEcoToolsDir:function(){return _e},getHdcPath:function(){return we},getHvigorwPath:function(){return u},getLogLevelGetter:function(){return ae},getLogger:function(){return n},getNodePath:function(){return ge},getNpmPath:function(){return me},getOhpmPath:function(){return ye},getPath:function(){return i},getProjectConfig:function(){return hr},getSpkInfo:function(){return cr},hasHvigor:function(){return Gt},hdcDeviceShared:function(){return rr},hdcShared:function(){return Ke},installSpkShared:function(){return Fn},isPortReachable:function(){return xr},maskLast4:function(){return ze},mergeJson:function(){return or},normalizeBuildMode:function(){return pn},openInBrowser:function(){return Yr},optArgIf:function(){return Cn},parseJsonFile:function(){return v},parseJsonSafe:function(){return ar},portManagerShared:function(){return Sr},setLogLevelGetter:function(){return ie},setLoggerConfig:function(){return te},startDebugServerCmd:function(){return on},stopDebugServer:function(){return un},tryHdcPortReversing:function(){return Le}};for(G in Z)H(K,G,{get:Z[G],enumerable:!0});e.exports=(e=t,N(H({},y(2154),{value:!0}),e));var V=r(require(y(1359))),W=r(require(y(1231))),Y=r(require(y(1887))),J=!1,$=[y(1595),y(771),"warn",y(1803),y(727)],X=y(1350),Q=y(771),ee=function(){return Q||y(771)},re=W[y(665)]((0,Y[y(1755)])(y(2016)),y(1118));function te(e){var r,t=y,e=(r=y,(e=e)&&$[r(466)](e[r(2102)]())?e[r(2102)]():r(771));Q=e,V[t(1559)]({appenders:{default:{type:t(929),layout:{type:"pattern",pattern:t(723)}},"debug-log-file":{type:"fileSync",filename:W.resolve((0,Y[t(1755)])(t(2016)),t(1118)),maxLogSize:10485760,backups:9,layout:{type:"pattern",pattern:t(1741)}}},categories:{default:{appenders:[t(1755)],level:e},AscfToolkit:{appenders:[t(879)],level:t(1595)}}})}function ne(e){V[y(1559)](e)}function ie(e){ee=e}function ae(){return ee}var s,oe=_createClass(function e(r){var t=_0x3872;_classCallCheck(this,e),this[t(2283)]=r,this[t(2014)]=V[t(1058)](r),global[t(838)]&&(this[t(839)]=V[t(1058)](X))},[{key:(s=y)(1452),value:function(e,r,t){var n,i=s,a=3<arguments[i(1963)]&&void 0!==arguments[3]&&arguments[3],o="";""!==(o=e!==i(771)?function(e){var r=y,t="";if(J){for(var n=arguments[r(1963)],i=new Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];i[r(1999)](e);for(var o=0;o<i[r(1963)];o++){var s="";"string"==typeof i[o]&&(s=i[o]),(s=i[o]instanceof Error?i[o][r(2099)]:s)[r(624)]("\n")?t+=String(s).split("\n")[1]:t+=String(s).split("\n")[0]}}return t}[i(1988)](void 0,[r].concat(_toConsumableArray(t))):o)?(this[i(2014)][e](o),null!=(n=this.fileLogger)&&n[e](o)):((n=this[i(2014)])[e][i(1988)](n,[r][i(1176)](_toConsumableArray(t))),null!=(o=this[i(839)])&&o[e][i(1988)](o,[r][i(1176)](_toConsumableArray(t)))),a&&process.exit(1)}},{key:s(771),value:function(e){for(var r=s,t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this[r(1452)]("info",e,n)}},{key:s(551),value:function(e){for(var r=s,t=arguments[r(1963)],n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this[r(1452)](r(551),e,n)}},{key:s(1595),value:function(e){for(var r=s,t=arguments[r(1963)],n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this[r(1452)](r(1595),e,n)}},{key:s(1803),value:function(e){for(var r=s,t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this[r(1452)]("error",e,n)}},{key:s(727),value:function(e){for(var r=s,t=arguments[r(1963)],n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.doLog(r(727),e,n,!0)}}]);function n(e){return new oe(e)}var se=_createClass(function e(){_classCallCheck(this,e)});function b(e){return ue[y(1988)](this,arguments)}function ue(){return(ue=_asyncToGenerator(_regenerator().m(function e(r){var t;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,r;case 1:return t=e.v,e.a(2,{data:t});case 2:return e.p=2,e.a(2,{err:e.v})}},e,null,[[0,2]])}))).apply(this,arguments)}var ce=require(y(2106)),fe=r(require("fs")),he=r(require("fs")),le=r(require(y(1231))),ve=n(y(493)),de=!1,a=process.platform===y(524),t=y(1076),pe=a?"C:\\Program Files\\Huawei\\DevEco Studio\\tools":t;function _e(){var e=y,r=process[e(1374)][e(1312)]||process[e(1374)][e(608)]||process[e(1374)][e(1696)],r=r?r.split(";")[0].trim()+e(1428):pe;return de||he[e(465)](r)||(de=!0,ve[e(1803)]("DEVECO_SDK_HOME is not found, please set environment DEVECO_SDK_HOME")),r}function i(){for(var e=y,r=arguments[e(1963)],t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var i=_e(),i=le.join[e(1988)](le,[i][e(1176)](t));return a&&i.includes(" ")?'"'[e(1176)](i,'"'):i}function ge(){var e=y;return i(e(1689),a?e(1332):"bin/node")}function me(){var e=y;return i(e(1689),a?e(1578):"bin/npm")}function ye(){var e=y;return i("ohpm",e(559),e(2161))}function u(){return i(y(1277),"bin","hvigorw")}function be(){return i(y(1950)).replace(/"/g,"")}function we(){var e=y;return i(e(2078),e(a?1748:1708))}var ke=r(require(y(1231))),xe=require("os");function Ce(e){var n=y,c=e[n(2014)],f=e.runAdbCmdAsync;function r(){return(r=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,b(f([r(1738),"-l"]));case 1:return t=e.v,e.a(2,t.err?(c[r(1803)](r(1212)+t[r(1148)]),[]):null==(t=t.data)||null==(t=t[r(647)]())||null==(t=t[r(516)]("\n"))?void 0:t[r(1383)](function(e){return e.trim()}))}},e)}))).apply(this,arguments)}function t(){var e=n;return(t=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,b(f(["-s",t,r(2055),"getprop",r(1112)]));case 1:return n=e.v,e.a(2,n.err||/(\[Fail\])/[r(2156)](n[r(583)])?(c[r(1803)](r(1441),n[r(1148)]),r(870)):null==(n=n.data)?void 0:n[r(647)]())}},e)})))[e(1988)](this,arguments)}function h(e,r){return i.apply(this,arguments)}function i(){var e=n;return(i=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s,u=arguments;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return a=2<u[r(1963)]&&void 0!==u[2]?u[2]:0,o=Math[r(482)](64512*Math[r(1744)]())+1024,e.n=1,b(f(["-s",t,r(1901),r(898)[r(1176)](o),r(898)[r(1176)](n)]));case 1:if((s=e.v)[r(1148)])return c[r(551)](r(979)[r(1176)](o," tcp:")[r(1176)](n),s[r(1148)]),e.a(2);e.n=2;break;case 2:return e.a(2,s[r(583)]&&10!==a?null!=(i=s.data)&&i.includes(String(o))?o:h(t,n,++a):0)}},e)})))[e(1988)](this,arguments)}var a="com.huawei.ascf.sample/com.huawei.ascf.main.AscfActivity";function o(){var e=n;return(o=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,r(2055),"am",r(1155),"-n",a,"-S","--es",r(2037),n]))},e)})))[e(1988)](this,arguments)}function s(){var e=n;return(s=_asyncToGenerator(_regenerator().m(function e(t,n,i){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,"shell","am",r(1155),"-n",a,"-S",r(1870),r(1228),r(1805),r(1870),r(1756),i,r(1870),r(2037),n,r(1870),"app_id",n[r(516)](r(1693))[1]]))},e)})))[e(1988)](this,arguments)}function u(){var e=n;return(u=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,"forward",r(1846)],{sensitive:!0}))},e)})))[e(1988)](this,arguments)}function l(){var e=n;return(l=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,r(2093),"--remove",n]))},e)})))[e(1988)](this,arguments)}function v(){var e=n;return(v=_asyncToGenerator(_regenerator().m(function e(t,n,i){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,r(2093),n,i]))},e)})))[e(1988)](this,arguments)}function d(){var e=n;return(d=_asyncToGenerator(_regenerator().m(function e(t,n,i){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,r(1901),r(898)[r(1176)](i),"tcp"[r(1176)](n)]))},e)})))[e(1988)](this,arguments)}function p(){var e=n;return(p=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,r(1901),r(1121),n]))},e)})))[e(1988)](this,arguments)}function _(){var e=n;return(_=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f([r(1738),"-l"],{sensitive:!0}))},e)})))[e(1988)](this,arguments)}function g(){var e=n;return(g=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,f(["-s",t,"shell",r(1247),r(2208)]))},e)})))[e(1988)](this,arguments)}function m(){var e=n;return(m=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return i=1,e.n=1,b(f(["-s",t,r(2055),r(457)]));case 1:return a=e.v,e.a(2,(a[r(583)]&&(i=null!=(a=Number(null==(a=/AscfContainerActivity(\d+)/[r(1998)](a[r(583)]))?void 0:a[1]))?a:1),f(["-s",t,r(2055),'"ps -ef | grep '.concat(n,r(962))[r(1176)](i,r(653))])))}},e)})))[e(1988)](this,arguments)}return{listTargets:function(){return r[n(1988)](this,arguments)},getDeviceName:function(e){return t[n(1988)](this,arguments)},tryAdbPortReversing:h,startHostPkg:function(e,r){return o.apply(this,arguments)},startHostPkgUrl:function(e,r,t){return s[n(1988)](this,arguments)},fportListCmd:function(e){return u.apply(this,arguments)},fportRmCmd:function(e,r){return l[n(1988)](this,arguments)},fportCmd:function(e,r,t){return v[n(1988)](this,arguments)},rportCmd:function(e,r,t){return d.apply(this,arguments)},rportRmCmd:function(e,r){return p[n(1988)](this,arguments)},getDevicesCmd:function(){return _[n(1988)](this,arguments)},getLegacyDeviceName:function(e){return g[n(1988)](this,arguments)},getLegacyProcess:function(e,r){return m[n(1988)](this,arguments)}}}function Ee(e,r){return Ae[y(1988)](this,arguments)}function Ae(){var e=y;return(Ae=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,p((r=void 0,xe[(r=y)(1635)])()===r(524)?ke[r(1755)][r(877)](__dirname,r(757)):(0,xe[r(1635)])()===r(1655)?ke[r(1755)][r(877)](__dirname,r(750)):ke[r(1755)].join(__dirname,"../tools/platform-tools-linux/adb"),t,n));var r},e)})))[e(1988)](this,arguments)}var e=Ce({logger:n(y(695)),runAdbCmdAsync:Ee}),Se=(e.listTargets,e.tryAdbPortReversing),De=e.startHostPkg,Te=e[y(2019)],t=e[y(1442)],Oe=e[y(888)],Be=e.fportCmd,Pe=(e[y(1283)],e[y(458)]),o=e[y(1170)],c=e[y(574)],Fe=e[y(2116)];function Ie(){return(Ie=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,Ee(["-s",t,r(2055),'"pm list packages -f | grep '.concat(n,'"')]))},e)}))).apply(this,arguments)}var Re=n("hos");function je(){return Ne.apply(this,arguments)}function Ne(){var e=y;return(Ne=_asyncToGenerator(_regenerator().m(function e(r,t){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,p(we(),r,t))},e)})))[e(1988)](this,arguments)}function Ge(){return(Ge=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,b(je(["list",r(2162)],{sensitive:!0}));case 1:return t=e.v,e.a(2,t[r(1148)]?(Re[r(1803)](r(1212)+t[r(1148)]),[]):null==(t=t.data)||null==(t=t[r(647)]())||null==(t=t.split("\n"))?void 0:t.map(function(e){return e[r(647)]()}))}},e)}))).apply(this,arguments)}function Le(e,r){return He[y(1988)](this,arguments)}function He(){var e=y;return(He=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s,u=arguments;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return a=2<u.length&&void 0!==u[2]?u[2]:0,o=Math[r(482)](64512*Math[r(1744)]())+1024,e.n=1,b(je(["-t",t,r(1607),r(898)[r(1176)](o),r(898).concat(n)]));case 1:if((s=e.v)[r(1148)])return Re[r(551)](r(1281)[r(1176)](o,r(1505))[r(1176)](n),s[r(1148)]),e.a(2);e.n=2;break;case 2:return e.a(2,s.data&&10!==a?null!=(i=s[r(583)])&&i[r(466)]("Forwardport result:OK")?o:Le(t,n,++a):0)}},e)})))[e(1988)](this,arguments)}var Me=require("child_process");function ze(e){var r=y;return e&&(e[r(1963)]<4?"*"[r(555)](e[r(1963)]):e[r(2136)](0,-4)+r(1934))}var Ue=y(2089),qe=y(1465);function Ke(e){var l=y,v=e[l(2014)],d=e[l(1712)],p=e.getPath,n=e[l(719)];function _(e){var i=l;return null==e?void 0:e[i(2108)](/--sign-pwd\s+\S+/g,"--sign-pwd ***")[i(2108)](/(--deviceId|-t|-s)\s+(\S+)/g,function(e,r,t){var n=i;return"".concat(r," ")[n(1176)](ze(t))})}function s(e,r,i,a,t){function n(e){var r=c;null!=a&&a.sensitive||v.debug(r(543),_(e)),f[r(1158)](e)}var o,s,u,c=l,r=(v.debug(c(464),e," ",_(null==r?void 0:r[c(877)](" "))),!1===(null==a?void 0:a.shell)&&(e=e.replace(/"/g,"")),(0,Me.spawn)(e,r,(e=a,r=l,o=d(),s=p("node"),v[r(1595)](r(2059)+o),u=s+";"+(null!=(u=process[r(1374)][r(930)])?u:""),Object.assign({shell:!0,env:_objectSpread(_objectSpread({},process[r(1374)]||{}),{},{NODE_HOME:s,PATH:u,DEVECO_SDK_HOME:o})},e)))),f=(null!=t&&t(r),[]),h=[];return r[c(929)].on(c(583),function(e){var r=c,e=e[r(641)]()[r(647)]();n(e)}),r[c(1801)].on(c(583),function(e){var r=c,e=e[r(641)]()[r(647)]();/<i> \[(webpack-dev-server)|(webpack-dev-middleware)\]/[r(2156)](e)?n(e):(r=e,/hvigor /[(e=c)(2156)](r)&&/WARN/[e(2156)](r)?(v[e(551)]("runCmd stdout: ",r),f.push(r)):(v[e(1803)]("runCmd stderr: ",r),h[e(1158)](r)))}),r.on(c(2228),function(e){var r,t=c,n=f[t(877)]("\n");0===e||null!=a&&null!=(r=a[t(2257)])&&r.call(a,e)?/failed to start ability/.test(n)?null!=i&&i(t(1573)):(null!=i&&i(null,n),v[t(1595)]("runCmd exited.")):(r=t(1161)[t(1176)](e,"."),v.error(r),null!=i&&i(r+t(872)+h[t(877)]("\n"),n))}),r}function i(e,r,t,n){return a[l(1988)](this,arguments)}function a(){var e=l;return(a=_asyncToGenerator(_regenerator().m(function e(r,i,a,o){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(t,n){s(r,i,function(e,r){if(e)return n(e);t(r)},a,o)}))},e)})))[e(1988)](this,arguments)}function o(e,r){return t[l(1988)](this,arguments)}function t(){var e=l;return(t=_asyncToGenerator(_regenerator().m(function e(r,t){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,i(n(),r,t))},e)})))[e(1988)](this,arguments)}function r(){var e=l;return(r=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,b(o(["-t",t,r(2055),r(989),"get",r(2125)]));case 1:return n=e.v,e.a(2,n.err||/(\[Fail\])/[r(2156)](n[r(583)])?(v[r(1803)](r(1441),n[r(1148)]),r(870)):null==(n=n[r(583)])?void 0:n[r(647)]())}},e)})))[e(1988)](this,arguments)}return{runCmd:s,runCmdAsync:i,runExecAsync:function(r,t,n){return new Promise(function(i,a){var o=_0x3872,e=[r][o(1176)](_toConsumableArray(t||[])).join(" ");v[o(1595)](o(1503),e),(0,Me[o(1998)])(e,_objectSpread({encoding:o(635)},n||{}),function(e,r,t){var n=o;if(e)return v[n(1803)](n(1255),t),a(t);v[n(1595)](n(1997),r),i(r)})})},runHdcCmd:function(e,r,t){return s(n(),e,r,t)},runHdcCmdAsync:o,getDeviceName:function(e){return r[l(1988)](this,arguments)}}}var Ze,Ve,We,Ye,Je,$e,Xe,f,h=y(695),l=y(1296),Qe=_createClass(function e(){var r=y,t=0<arguments[r(1963)]&&void 0!==arguments[0]?arguments[0]:l;_classCallCheck(this,e),this[r(725)]=t}),er=_createClass(function e(r){var t=_0x3872;_classCallCheck(this,e),this[t(805)]=new Map,this[t(1653)]=null,this[t(928)]=!1,this[t(1738)]=[],this[t(1501)]=r},[{key:(f=y)(1130),value:(Xe=_asyncToGenerator(_regenerator().m(function e(){var t,n,i,a=arguments;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(n=1<a.length&&void 0!==a[1]&&a[1],!(0<a.length&&void 0!==a[0]&&a[0])&&this[r(928)]&&null!=(t=this[r(1738)])&&t[r(1963)])return e.a(2,this[r(1738)]);e.n=1;break;case 1:return i=n?null:(null==(t=global[r(580)])?void 0:t.deviceType)||l,e.n=2,this.getDevicesInner(i);case 2:return i=e.v,e.a(2,(this[r(1738)]=i,this[r(928)]=!0,i))}},e,this)})),function(){return Xe.apply(this,arguments)})},{key:f(1522),value:($e=_asyncToGenerator(_regenerator().m(function e(t){var n,i,a,o,s,u;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(n=[],t===l)return e.n=1,this.getHosDevices();e.n=2;break;case 1:n=e.v,e.n=4;break;case 2:if(t===h)return e.n=3,this[r(1893)]();e.n=4;break;case 3:n=e.v;case 4:if(n.length){e.n=8;break}return o=Promise,e.n=5,this.getHosDevices();case 5:return s=e.v,e.n=6,this[r(1893)]();case 6:return u=e.v,e.n=7,o[r(1426)][r(1775)](o,[s,u]);case 7:u=e.v,a=_slicedToArray(u,2),i=a[0],a=a[1],n=[][r(1176)](_toConsumableArray(i),_toConsumableArray(a));case 8:return e.a(2,(n[r(1963)]||this[r(1501)][r(2014)][r(1595)]("listTargets error or no devices found"),n))}},e,this)})),function(e){return $e[_0x3872(1988)](this,arguments)})},{key:f(2082),value:(Je=_asyncToGenerator(_regenerator().m(function e(){var t,n,a,i,o=this;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,b(this[r(1501)].listTargets());case 1:if((n=e.v).err||null==n||null==(t=n[r(583)])||!t[r(1963)]||/(\[Empty\])|(\[Fail\])/[r(2156)](null==(t=n[r(583)])?void 0:t[r(877)]("\n")))return e.a(2,(this[r(1653)]=null,this[r(1501)][r(2014)][r(1595)](r(779),n[r(1148)]),[]));e.n=2;break;case 2:return this[r(1501)][r(2014)][r(1595)](r(673),null==(t=n[r(583)])?void 0:t[r(1383)](ze).join("\n")),a=!1,e.n=3,Promise[r(1426)](n[r(583)][r(1383)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(o[r(1653)]&&o[r(1653)].sn===t&&(a=!0),o.cache.has(t))return e.a(2,o[r(805)][r(1453)](t));e.n=1;break;case 1:return(n=new Qe(l)).sn=t,e.n=2,o[r(1501)][r(1824)](t);case 2:return i=e.v,e.a(2,(n[r(1180)]=r(1327)[r(1176)](i),o[r(805)][r(1596)](t,n),n))}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})()));case 3:return i=e.v,e.a(2,(a||(this[r(1653)]=i[r(1963)]?i[0]:null),i))}},e,this)})),function(){return Je[_0x3872(1988)](this,arguments)})},{key:f(1893),value:(Ye=_asyncToGenerator(_regenerator().m(function e(){var t,n,a,i,o=this;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,b(this[r(1501)][r(1170)]());case 1:if((t=e.v)[r(1148)]||null==t||null==(n=t[r(583)])||!n[r(1963)]||/^List of devices attached$/[r(2156)](t.data))return e.a(2,(this[r(1501)].logger[r(1595)](r(2129)),[]));e.n=2;break;case 2:return(n=t[r(583)].split("\n"))[r(1804)](),n=n.map(function(e){return e[r(516)](" ")[0]}),this[r(1501)].logger[r(1595)](r(673),null==(i=n)?void 0:i.map(ze)[r(877)]("\n")),a=!1,e.n=3,Promise[r(1426)](n.map((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(o.cur&&o[r(1653)].sn===t&&(a=!0),o[r(805)][r(625)](t))return e.a(2,o[r(805)][r(1453)](t));e.n=1;break;case 1:return(n=new Qe(h)).sn=t,e.n=2,o[r(1501)][r(574)](t);case 2:return i=e.v,e.a(2,(n[r(1180)]=i,o[r(805)][r(1596)](t,n),n))}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})()));case 3:return i=e.v,e.a(2,(a||(this[r(1653)]=i[r(1963)]?i[0]:null),i))}},e,this)})),function(){return Ye[_0x3872(1988)](this,arguments)})},{key:f(1053),value:function(){return this[f(1653)]}},{key:"setCurrent",value:function(e){var r=f;e&&this[r(805)][r(625)](e)&&(e=this[r(805)][r(1453)](e),this[r(1653)]=e)}},{key:f(1309),value:(We=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,this[r(1130)]();case 1:return e.a(2,this.getCurrent())}},e,this)})),function(){return We[_0x3872(1988)](this,arguments)})},{key:f(672),value:(Ve=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,this[r(1130)]();case 1:if(t=null==(t=this.getCurrent())?void 0:t.sn){e.n=2;break}return this.adapter.onError(this[r(1501)][r(1687)]),e.a(2);case 2:return e.a(2,t)}},e,this)})),function(){return Ve[_0x3872(1988)](this,arguments)})},{key:f(1644),value:(Ze=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,this[r(1130)]();case 1:if(n=t?null==(n=this[r(1738)])?void 0:n[r(1762)](function(e){return e.sn===t}):null)return e.a(2,n[r(725)]);e.n=2;break;case 2:if(i=null==(i=this[r(1053)]())?void 0:i.type){e.n=3;break}return this[r(1501)].onError(this.adapter[r(1687)]),e.a(2);case 3:return e.a(2,i)}},e,this)})),function(e){return Ze[_0x3872(1988)](this,arguments)})}]);function rr(e){var r=y,t=_createClass(n,null,[{key:"getInstance",value:function(){return n[_0x3872(2218)]}}]);function n(){_classCallCheck(this,n)}return t[r(2218)]=new er(e),{DeviceInfo:Qe,DeviceManager:t}}var tr=r(require("fs")),nr=require("json5"),ir=n("json");function ar(e,r){var t,n=y;try{return(null!=(t=nr[n(1755)])?t:nr).parse(e)}catch(e){ir[n(1803)](n(1658),e)}return r}function v(e,r){var t=y;return tr.existsSync(e)?ar(tr[t(1446)](e,"utf-8"),r):r}function or(e,r){var t,n,i=y;for(t in r)_typeof(r[t])==i(1184)?Array[i(920)](r[t])?(Object[i(785)].hasOwnProperty[i(1775)](e,t)||(e[t]=[]),(n=e[t])[i(1158)].apply(n,_toConsumableArray(r[t]))):(Object[i(785)].hasOwnProperty.call(e,t)&&_typeof(e[t])==i(1184)||(e[t]={}),or(e[t],r[t])):e[t]=r[t];return e}var sr=r(require("fs")),ur=n(y(1310));function cr(e,r){var t=y,e=fr(e,!0),n=e[t(1056)],e=e[t(497)],i=(new Date)[t(1706)]()[t(516)]("T")[0][t(516)]("-")[t(877)]("");return{bundleName:n,spkName:""[t(1176)](n,"-")[t(1176)](e,"-")[t(1176)](r,"-").concat(i,t(1429))}}function fr(e){var r=y,t={bundleName:"",versionCode:""};if(1<arguments[r(1963)]&&void 0!==arguments[1]&&arguments[1]){var n=""[r(1176)](e,r(722));if(sr[r(1755)][r(465)](n)){n=JSON[r(545)](sr[r(1755)][r(1446)](n,r(635)));if(null!=n&&n[r(1539)])return t[r(1056)]=null==n?void 0:n[r(1539)],t.versionCode=null==n?void 0:n[r(497)],t}}var n="".concat(e,r(922));if(sr.default[r(465)](n))return e=v(n,{}),t.bundleName=null==e||null==(n=e[r(1897)])?void 0:n[r(1056)],t[r(497)]=null==e||null==(n=e.app)?void 0:n.versionCode,t;if(t[r(1056)]&&t[r(497)])return t;throw e=r(1548),ur[r(1803)](e),new Error(e)}function hr(e){var r=y;return v(""[r(1176)](e,r(990)),{})}var d=n(y(1708)),e=Ke({logger:d,getDevEcoSdkHome:be,getPath:i,getHdcPath:we}),lr=e[y(1473)],p=e.runCmdAsync,_=(e.runExecAsync,e[y(1818)],e[y(2080)]),e=e[y(1824)];function vr(e){var r,t=y,e=""[t(1176)](e,t(922));if(fe[t(465)](e))return null==(r=v(e,{}))||null==(r=r.app)?void 0:r[t(1056)];throw d[t(1803)](""[t(1176)](e,t(548))),new Error("".concat(e,t(548)))}function dr(e){var r=y,e=""[r(1176)](e,r(745));if(fe.existsSync(e))return v(e,{});throw d[r(1803)](""[r(1176)](e,r(548))),new Error(""[r(1176)](e,r(548)))}function pr(){return _r[y(1988)](this,arguments)}function _r(){var e=y;return(_r=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return d.info(r(1778)[r(1176)](t)),i=vr(t),e.n=1,b(_(["-t",n,"shell","aa","force-stop",i]));case 1:return a=["-t",n,"shell","aa",r(1155),"-a",r(2061),"-b",i,r(1062)],(null==(o=hr(t))?void 0:o[r(656)])===r(612)&&a.push(r(1835)),e.n=2,b(_(a));case 2:if((o=e.v).err)return d[r(1803)]("start hap error",o[r(1148)]),d.error(r(1167)),e.a(2);e.n=3;break;case 3:return e.a(2)}},e)})))[e(1988)](this,arguments)}function gr(){var e=y;return(gr=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return d[r(771)]("start installDeps under "[r(1176)](t)),e.n=1,b(p(ye(),["update"],{chdir:!0,cwd:t}));case 1:(n=e.v)[r(1148)]&&d[r(1803)](r(1506),n[r(1148)]);case 2:return e.a(2)}},e)})))[e(1988)](this,arguments)}function mr(){var e=y;return(mr=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return d[r(771)](r(747)[r(1176)](t)),e.n=1,b(p(ye(),[r(824)],{chdir:!0,cwd:t}));case 1:(n=e.v).err&&d[r(1803)](r(768),n[r(1148)]);case 2:return e.a(2)}},e)})))[e(1988)](this,arguments)}function yr(){var e=y;return(yr=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return d.info("start hvigor clean under "[r(1176)](t)),e.n=1,b(p(u(),["clean",r(2249)],{chdir:!0,cwd:t}));case 1:(n=e.v)[r(1148)]&&d[r(1803)](r(567),n[r(1148)]);case 2:return e.a(2)}},e)})))[e(1988)](this,arguments)}function br(e){var r=y;if(e){var t=process.platform;try{t===r(524)?(0,ce.execSync)(r(2119)[r(1176)](e[r(2046)],r(1663))):"darwin"===t&&e[r(2046)]?process.kill(e[r(2046)]):e[r(2090)]()}catch(e){d[r(551)](r(1992))}}}var e=rr({logger:d,listTargets:function(){return Ge[y(1988)](this,arguments)},getDeviceName:e,getDevicesCmd:o,getLegacyDeviceName:c,NO_DEVICE_ERROR:y(1864),onError:function(e){throw new Error(e)}}),g=(e[y(837)],e.DeviceManager);function wr(e){var r,t=y,n=1<arguments[t(1963)]&&void 0!==arguments[1]?arguments[1]:{};try{return null==(r=(0,ce[t(1353)])(e,n))?void 0:r.toString(t(635))}catch(e){d[t(551)]("exec cmd error",e)}}var kr=r(require(y(1146)));function xr(e){return Cr[y(1988)](this,arguments)}function Cr(){var e=y;return(Cr=_asyncToGenerator(_regenerator().m(function e(o){var s,r,u,t,n=arguments;return _regenerator().w(function(e){for(var a=_0x3872;;)switch(e.p=e.n){case 0:return r=(t=1<n.length&&void 0!==n[1]?n[1]:{}).host,s=void 0===r?a(2247):r,r=t[a(1026)],u=void 0===r?1e3:r,t=new Promise(function(e,r){function t(){i[n(2011)](),r()}var n=a,i=new kr[n(794)];i[n(714)]("error",t),i[n(714)]("timeout",t),i[n(500)](u),i[n(2048)](o,s,function(){i[n(1954)](),e(o)})}),e.p=1,e.n=2,t;case 2:return e.a(2,!0);case 3:return e.p=3,e.a(2,!1)}},e,null,[[1,3]])})))[e(1988)](this,arguments)}function Er(){return Ar[y(1988)](this,arguments)}function Ar(){var e=y;return(Ar=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(t,n){var i,a,o;i=function(e,r){r?t(r):n(e)},(o=kr[(a=y)(1038)]())[a(680)](0,a(2247),function(){var e=a,r=null==(r=o[e(1209)]())?void 0:r[e(1601)];o.close(),i(null,r)}),o.on(a(1803),function(e){i(e)})}))},e)})))[e(1988)](this,arguments)}var m=y(1854);function Sr(e){var n=y,c=e[n(2014)],f=e[n(1442)],h=e[n(888)],u=e[n(815)],l=e[n(478)];function v(e){return r[n(1988)](this,arguments)}function r(){var e=n;return(r=_asyncToGenerator(_regenerator().m(function e(o){var r,s,u,n,i,a=arguments;return _regenerator().w(function(e){for(var t=_0x3872;;)switch(e.n){case 0:return s=1<a[t(1963)]&&void 0!==a[1]&&a[1],u=2<a[t(1963)]&&void 0!==a[2]?a[2]:"",e.n=1,b(f(o));case 1:!(n=e.v)[t(1148)]&&n[t(583)]?e.n=2:(c[t(1803)]("fport ls error: ",m),i=[],e.n=4);break;case 2:return e.n=3,Promise.all(null==(r=n[t(583)])?void 0:r.trim()[t(516)]("\n")[t(1383)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n,i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(i=t[r(516)](/\s+/),n=null==(n=i[1])?void 0:n[r(647)](),i=null==(i=i[2])?void 0:i[r(647)](),a=s&&n==="tcp:"[r(1176)](u))return e.n=1,b(h(o,n,i));e.n=1;break;case 1:return e.a(2,{localPort:n,remotePort:i,needRm:a})}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})()));case 3:i=e.v[t(1236)](function(e){var r=t;return e[r(2e3)]&&!e[r(1039)]});case 4:return e.a(2,i)}},e)})))[e(1988)](this,arguments)}function i(){var e=n;return(i=_asyncToGenerator(_regenerator().m(function e(i,a,o){var t,s,n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,v(i);case 1:return t=e.v,s=!1,n=a[r(647)]().replace("tcp:",""),e.n=2,Promise[r(1426)](t[r(1383)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(t.localPort&&t[r(820)]){e.n=1;break}return e.a(2);case 1:if(n=!1,t.localPort===a&&t[r(820)]===o?s=!0:t[r(2e3)]!==a&&t[r(820)]!==o||(n=!0),n)return e.n=2,b(h(i,a,o));e.n=2;break;case 2:return e.a(2)}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})()));case 2:if(s)return c[r(551)](r(658)),e.a(2);e.n=3;break;case 3:return e.n=4,u(n);case 4:if(e.v)return c[r(1803)](r(1941)[r(1176)](n,r(724))),e.a(2);e.n=5;break;case 5:return e.n=6,b(l(i,a,o));case 6:if(e.v[r(1148)])return c[r(1803)](r(1618),m),e.a(2);e.n=7;break;case 7:return e.a(2)}},e)})))[e(1988)](this,arguments)}function t(){var e=n;return(t=_asyncToGenerator(_regenerator().m(function e(r,t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,v(r,!0,t);case 1:return e.a(2,e.v)}},e)})))[e(1988)](this,arguments)}return{fportList:v,fport:function(e,r,t){return i[n(1988)](this,arguments)},fportRm:function(e,r){return t[n(1988)](this,arguments)}}}function Dr(e){var r,t,n,i,a,o,s,u=y,c=e[u(2014)],f=e[u(1938)],h=e[u(1008)],l=e[u(1790)],v=e[u(1065)],d=e.fportRm,p=e[u(902)],e=e[u(492)],_=void 0===e?9225:e,e=_createClass(function e(){var r=_0x3872;_classCallCheck(this,e),this[r(1987)]=9222,this[r(1510)]=9229},[{key:(s=u)(1137),value:(o=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(s=!t)return e.n=1,f.getInstance().getDeviceId();e.n=2;break;case 1:t=e.v,s=!t;case 2:if(s)return e.a(2);e.n=3;break;case 3:return e.n=4,b(h(t,n));case 4:if((a=e.v)[r(1148)]||null==(i=a.data)||!i.length)return c.error(r(1154),l),e.a(2);e.n=5;break;case 5:return o=null==(i=a[r(583)])||null==(i=i[r(647)]()[r(516)]("\n"))?void 0:i[0][r(647)]()[r(516)](/\s+/)[1][r(647)](),e.n=6,b(v(t,r(898)+this[r(1987)],r(2022).concat(o)));case 6:if(e.v.err)return c.error("fport web error: ",l),e.a(2);e.n=7;break;case 7:return e.a(2)}},e,this)})),function(e,r){return o[_0x3872(1988)](this,arguments)})},{key:s(721),value:(a=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(i=!t)return e.n=1,f[r(1020)]()[r(672)]();e.n=2;break;case 1:t=e.v,i=!t;case 2:if(n=!i)return e.n=3,b(v(t,"tcp:"+this[r(1510)],r(898).concat(_)));e.n=4;break;case 3:n=e.v[r(1148)];case 4:if(n)return c[r(1803)](r(2273),l),e.a(2);e.n=5;break;case 5:return e.a(2)}},e,this)})),function(e){return a[_0x3872(1988)](this,arguments)})},{key:"fportRmV8",value:(i=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,this[r(1366)](t,String(this[r(1510)]));case 1:return e.a(2)}},e,this)})),function(e){return i[_0x3872(1988)](this,arguments)})},{key:"fportRmWeb",value:(n=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,this[r(1366)](t,String(this.webLocalPort));case 1:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:s(1366),value:(t=_asyncToGenerator(_regenerator().m(function e(t,n){var i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(i=!t)return e.n=1,f[r(1020)]()[r(672)]();e.n=2;break;case 1:t=e.v,i=!t;case 2:if(i){e.n=3;break}return e.n=3,d(t,n);case 3:return e.a(2)}},e)})),function(e,r){return t[_0x3872(1988)](this,arguments)})},{key:"status",value:(r=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(n=!t)return e.n=1,f.getInstance()[r(672)]();e.n=2;break;case 1:t=e.v,n=!t;case 2:n?(i=[],e.n=5):e.n=3;break;case 3:return e.n=4,p(t);case 4:i=e.v;case 5:return e.a(2,i)}},e)})),function(e){return r[_0x3872(1988)](this,arguments)})}],[{key:"getInstance",value:function(){return this[s(2218)]}}]);return e[u(2218)]=new e,{DebugPortManager:e}}var o=n(y(1666)),c=Sr({logger:o,isPortReachable:xr,fportListCmd:function(e){return _(["-t",e,y(1065),"ls"])},fportRmCmd:function(e,r,t){return _(["-t",e,y(1065),"rm",r,t])},fportCmd:function(e,r,t){return _(["-t",e,"fport",r,t])}}),e=c.fportList,w=c[y(1065)],c=c[y(1366)],Tr=Dr({logger:o,DeviceManager:g,ERROR_MSG:m,fport:w,fportRm:c,fportList:e,getPid:function(e,r){var t=y;return _(["-t",e,t(2055),'"ps -ef | grep '[t(1176)](r,t(653))])}})[y(1666)],Or=y(1793),Br="com.huawei.ascf.sample",Pr=y(695),Fr=y(480),k=y(1976),o=n("LegacyDebugPortManager"),w=Sr({logger:o,fportListCmd:t,fportRmCmd:Oe,isPortReachable:xr,fportCmd:Be}),c=w[y(902)],e=w[y(1065)],t=w.fportRm,Ir=Dr({logger:o,DeviceManager:g,ERROR_MSG:m,fport:e,fportRm:t,fportList:c,getPid:function(e,r){return Fe(e,Br)},remoteV8Port:9229})[y(1666)],Oe=r(require("path")),Rr=r(require(y(463)));function jr(n,o){return new Promise(function(i,a){var r=_0x3872,e=Object[r(861)]({timeout:6e3},o),t=Rr[r(1755)][r(1453)](n,function(e){var t=r,n="";e.on(t(583),function(e){n+=e}),e.on(t(1954),function(){var r=t;try{i(JSON.parse(n))}catch(e){a(new Error(r(590)))}})});t.setTimeout(e[r(1026)],function(){var e=r;t[e(1754)](),a(new Error(e(584)))}),t.on(r(1803),a),t.end()})}var Nr=r(require("fs")),Gr=r(require("path")),Lr=r(require(y(1948))),Hr=r(require(y(1887))),Mr=n(y(1525));function zr(){var e=y;return Gr.resolve((0,Hr[e(1755)])("ascf-cache"),e(957)[e(1176)](process[e(2046)],".json"))}function Ur(){var e=y;return(Ur=_asyncToGenerator(_regenerator().m(function e(r,t){var i,a,o,s,u,c;return _regenerator().w(function(e){for(var n=_0x3872;;)if(0===e.n)return a=(i=!1,Lr[n(1755)])(),o=Gr[n(620)](r),a.use(Lr[n(1755)][n(481)](o)),a[n(1453)](n(1757),function(e,r){r[n(910)]({code:0,isStart:i,port:t})}),a.get(n(1164),function(e,r){c(),r.json({code:0})}),s=a[n(680)](t,n(2247),function(){var e=n;Mr[e(771)]("Debug Server is running on http://127.0.0.1:"[e(1176)](t)),i=!0}),u=!1,c=function(){var e,t=n;u||(Mr[t(771)]("Debug Server stopping ..."),e=zr(),Nr.existsSync(e)&&Nr[t(523)](e,function(e){var r=t;return e&&Mr.warn(r(616),e)}),s[t(2228)](function(){var e=t;Mr[e(771)](e(1853)),u=!0}))},e.a(2,{port:t,stop:c})},e)})))[e(1988)](this,arguments)}var qr=r(require(y(1970))),Kr=require(y(1249)),Zr=r(require("child_process")),Vr={chrome:{darwin:y(1925),win32:y(884),linux:[y(1899),y(2028),"chromium"]},edge:{darwin:y(1923),win32:y(1896),linux:["microsoft-edge","microsoft-edge-dev"]}};function Wr(e,r){var t=y,n=qr[t(1635)],i=null==(i=Vr[e])?void 0:i[n];if(!i)throw new Error(""[t(1176)](e,t(1697)));var e=t(1813),a=[],o=[];n===t(1655)?(e="open",o[t(1158)]("-a",i),/^(chrome|edge):/i[t(2156)](r)&&o[t(1158)]("--allow-file-access-from-files")):n===t(524)&&(e=""[t(1176)](qr.env[t(1193)]||qr[t(1374)].windir||t(2146),t(2064)),o[t(1158)](t(2054),t(1402),"-ExecutionPolicy",t(2235),"-EncodedCommand"),n=[t(2236)],i?(n[t(1158)](t(986)[t(1176)](i,t(1705))),r&&(/^(chrome|edge):/i[t(2156)](r)&&a.push(t(1610),"--allow-file-access-from-files"),a[t(1158)](r))):r&&n.push('"'[t(1176)](r,'"')),0<a[t(1963)]&&(a=a[t(1383)](function(e){return t(986).concat(e,'`""')}),n[t(1158)](t(736),a[t(877)](","))),r=Kr.Buffer[t(1806)](n[t(877)](" "),t(460)).toString(t(2262))),r&&o[t(1158)](r),Zr[t(1514)](e,o)[t(1023)]()}function Yr(r){var t=y,n=1<arguments[t(1963)]&&void 0!==arguments[1]?arguments[1]:t(884);try{Wr(n,r)}catch(e){Wr(n===t(884)?t(2170):"chrome",r)}}var Be=r(require("cachedir")),Jr=require("https"),$r=require("fs"),Xr=require(y(1231)),Qr=r(require(y(1071))),et=r(require(y(1856))),rt=r(require(y(976))),tt=require(y(1500)),x=n(y(951));function nt(){return(nt=_asyncToGenerator(_regenerator().m(function e(t,u,c){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(o,s){var r=_0x3872;(0,Jr[r(1453)])(t,function(e){var t,n,a=r;200!==e[a(709)]?s(new Error(a(975)[a(1176)](e[a(709)]))):(t=(0,tt.createHash)(a(1482)),n=[],e.on(a(583),function(e){var r=a;t[r(1959)](e),n[r(1158)](e)}),e.on(a(1954),function(){var e,r,i=a;"sha512-".concat(t[i(2217)](i(2262)))!==c?s(i(2113)):(x[i(1595)](i(825)[i(1176)](u)),r=Buffer.concat(n),(e=new rt[i(1284)])[i(1954)](r),(r=Qr.x({cwd:u,strip:1,noChmod:!0,noMtime:!0,preserveOwner:!1,onwarn:function(e,r,t){var n=i;x[n(551)](n(594),e,r)}})).on(i(1954),o),r.on(i(1803),s),e[i(1724)](et[i(1681)]())[i(1724)](r).on(i(1803),function(e){var r=i;return x[r(1803)](r(2175),e)}).on(i(2228),o))}),e.on(a(1532),o),e.on(a(1803),s))}).on(r(1803),s)}))},e)}))).apply(this,arguments)}var it={pkg:y(2015),version:"1.20251708.0",baseFolder:""};function at(){var e=y;return(at=_asyncToGenerator(_regenerator().m(function e(a){var o,s,u,c,f,h,l,v;return _regenerator().w(function(e){for(var r,t,n,i=_0x3872;;)switch(e.p=e.n){case 0:if(o=it[i(755)],s=it[i(654)],c=it.baseFolder,u=""[i(1176)](o,"@")[i(1176)](s),x[i(771)]("begin to download "[i(1176)](u)),c=(0,Xr[i(877)])(a,c),f=(0,Xr[i(877)])(c,i(626)),(0,$r.existsSync)(f))return e.a(2,(x[i(1595)](""[i(1176)](f," is exists, skip download and extract")),c));e.n=1;break;case 1:if(r=o,t=s,n=void 0,l=(null==(n=ar(wr(""[(n=y)(1176)](me(),n(1347))[n(1176)](r,"@").concat(t)),{}))?void 0:n.dist)||{},h=l[i(1111)],l=l[i(1152)],h){e.n=2;break}return x.error(""[i(1176)](u," is not found")),e.a(2);case 2:return(0,$r[i(1344)])(a,{recursive:!0}),e.p=3,e.n=4,function(){return nt[y(1988)](this,arguments)}(h,a,l);case 4:e.n=6;break;case 5:return e.p=5,v=e.v,x[i(1803)](i(1511)[i(1176)](h,i(1638)),v),(0,$r.existsSync)(a)&&(0,$r[i(995)])(a,{recursive:!0}),e.a(2);case 6:if((0,$r[i(465)])(f))return e.a(2,(x.info(i(2180)[i(1176)](u,i(2097))[i(1176)](a,i(2030))),c));e.n=7;break;case 7:x[i(1803)](i(2180)[i(1176)](u,i(2097)).concat(a,i(1812)));case 8:return e.a(2)}},e,null,[[3,5]])})))[e(1988)](this,arguments)}var C=n(y(2267)),w=(0,Be[y(1755)])("ascf-cache"),ot=Oe[y(877)](w,y(2001)),st=["exit",y(1711),y(2285)];function ut(e){return ct[y(1988)](this,arguments)}function ct(){var e=y;return(ct=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return n=[],e.p=1,e.n=2,jr(r(2159)[r(1176)](t,"/json"),{timeout:3e3});case 2:n=e.v,e.n=4;break;case 3:e.p=3,C.error("getDebugees "[r(1176)](t,r(1397)),m);case 4:return e.a(2,n)}},e,null,[[1,3]])})))[e(1988)](this,arguments)}function ft(){return ht[y(1988)](this,arguments)}function ht(){var e=y;return(ht=_asyncToGenerator(_regenerator().m(function e(t){var n,i,a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,"");case 1:return e.p=1,e.n=2,ut(t);case 2:if(n=e.v,a=null===n){e.n=3;break}a=void 0===n;case 3:if(i=a){e.n=4;break}i=null==(n=n[0]);case 4:i?(o=void 0,e.n=6):e.n=5;break;case 5:o=n[r(1075)];case 6:return e.a(2,o);case 7:return e.p=7,s=e.v,C[r(1803)](r(1348)[r(1176)](t," error"),s),e.a(2,"")}},e,null,[[1,7]])})))[e(1988)](this,arguments)}var lt,vt,dt,pt,E,_t,gt,mt,yt,bt,wt,kt,xt,A,Ct,Et,S,o=_createClass(function e(r){var t=_0x3872;_classCallCheck(this,e),this[t(1726)]=null,this.options=Object.assign({open:""},r)},[{key:(S=y)(743),value:function(e){var t=S,r=this,n=(C[t(771)](t(1729).concat(e)),{status:function(){return r.status()},start:function(){return r.start()},stop:function(){return r[t(759)]()},"start-view":function(){return r.startView()},"start-service":function(){return r[t(2020)]()},"stop-view":function(){return r[t(1098)]()},"stop-service":function(){return r[t(865)]()}});n[e]?n[e]()[t(1142)](function(){var e=t;return C[e(771)](e(836))}).catch(function(e){var r=t;return C[r(1803)](r(845),e)}):C.error(t(1222)+Object[t(1104)](n).join(","))}},{key:S(1025),value:(Et=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s=arguments;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:a=2<s[r(1963)]&&void 0!==s[2]?s[2]:"",C[r(771)](r(1025),t,n),t!==k||(null==(i=this.options)?void 0:i[r(1055)])!==h?e.n=1:(o="devtools://devtools/bundled/js_app.html?v8only=true&ws=localhost:9229",e.n=3);break;case 1:return e.n=2,ft(n);case 2:o=e.v;case 3:if(o){e.n=4;break}return C[r(771)](r(2272)),e.a(2);case 4:t===k?this.startDebugServer(o):(a&&(o=a),C.info(r(2133),o));case 5:return e.a(2)}},e,this)})),function(e,r){return Et[_0x3872(1988)](this,arguments)})},{key:S(1145),value:(Ct=_asyncToGenerator(_regenerator().m(function e(i){var a,o,s,u,c;return _regenerator().w(function(e){for(var r,t,n=_0x3872;;)switch(e.p=e.n){case 0:return this[n(1275)](),e.p=1,e.n=2,function(){return at.apply(this,arguments)}(ot);case 2:if(a=e.v){e.n=3;break}return C[n(1803)](n(1192)),e.a(2);case 3:return e.n=4,Er();case 4:return o=e.v,s=i[n(2108)](n(1721),n(795)[n(1176)](o,n(1460))),s+=(s[n(466)]("?")?"&":"?")+n(1123),r={port:o,debugUrl:s},t=void 0,t=y,Nr.writeFileSync(zr(),JSON.stringify(r),t(635)),e.n=5,function(){return Ur[y(1988)](this,arguments)}(a,o);case 5:u=e.v,this[n(1726)]=u,st[n(610)](function(e){var r=n;process.on(e,u[r(759)])}),C[n(771)](n(1138).concat(s)),null!=(o=this[n(1819)])&&o[n(1813)]&&Yr(s,this.options.open),e.n=7;break;case 6:e.p=6,c=e.v,C.error(n(1293),c),this[n(1275)]();case 7:return e.a(2)}},e,this,[[1,6]])})),function(e){return Ct.apply(this,arguments)})},{key:S(1275),value:function(){var t=S,n=this;this[t(1726)]&&(st[t(610)](function(e){var r=t;process[r(1631)](e,n[r(1726)][r(759)])}),this[t(1726)][t(759)](),this[t(1726)]=null)}}]),D=n(y(2291)),At=y(1695),St=(A=y,_inherits(Nt,o),_createClass(Nt,[{key:"isLegacy",value:function(){var e=_0x3872;return this[e(1819)][e(1055)]===Pr}},{key:A(1796),value:function(){var e=A;return(this[e(2286)]()?Ir:Tr)[e(1020)]()}},{key:A(774),value:(xt=_asyncToGenerator(_regenerator().m(function e(){var t,s=this;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D[r(771)]("status"),e.n=1,this[r(2068)]();case 1:if(e.v){e.n=2;break}return e.a(2);case 2:return e.n=3,this[r(1796)]().status(this[r(1819)][r(966)]);case 3:return t=e.v,e.n=4,Promise.all(null==t?void 0:t[r(1383)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n,i,a,o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:t[r(2e3)]!==r(898)[r(1176)](s[r(1796)]().webLocalPort)?e.n=1:(n=Fr,e.n=3);break;case 1:t[r(2e3)]!==r(898)[r(1176)](s[r(1796)]()[r(1510)])?e.n=2:(n=k,e.n=3);break;case 2:return e.a(2);case 3:if(i="",a=!(n===k&&s[r(2286)]()))return e.n=4,ft(t[r(2e3)][r(2108)]("tcp:",""));e.n=5;break;case 4:i=e.v,a=!i;case 5:a?(o="",e.n=7):e.n=6;break;case 6:n===Fr&&(i=r(476)),o=""[r(1176)](n," ").concat(t[r(2e3)]," ").concat(t[r(820)],r(2152))[r(1176)](i);case 7:return e.a(2,o)}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})()));case 4:0!==(t=(t=e.v).filter(Boolean)).length&&D[r(771)](r(1088)+t[r(877)]("\n"));case 5:return e.a(2)}},e,this)})),function(){return xt[_0x3872(1988)](this,arguments)})},{key:A(1155),value:(kt=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D[r(771)]("start"),e.n=1,this[r(1598)]();case 1:return e.n=2,this[r(2020)]();case 2:return e.a(2)}},e,this)})),function(){return kt[_0x3872(1988)](this,arguments)})},{key:A(759),value:(wt=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D[r(771)](r(759)),e.n=1,this.stopView();case 1:return e.n=2,this.stopService();case 2:return e.a(2)}},e,this)})),function(){return wt[_0x3872(1988)](this,arguments)})},{key:A(1598),value:(bt=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D.info(r(1598)),e.n=1,this[r(2068)]();case 1:if(t=e.v)return e.n=2,this[r(1796)]().fportWeb(this.options[r(966)],t);e.n=3;break;case 2:return e.n=3,this.openBrowser(Fr,this[r(1796)]().webLocalPort,r(2065));case 3:return e.a(2)}},e,this)})),function(){return bt[_0x3872(1988)](this,arguments)})},{key:A(2020),value:(yt=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D[r(771)]("startService"),e.n=1,this[r(2068)]();case 1:if(e.v)return e.n=2,this.getPortManager()[r(721)](this[r(1819)].deviceId);e.n=3;break;case 2:return e.n=3,this.openBrowser(k,this.getPortManager()[r(1510)]);case 3:return e.a(2)}},e,this)})),function(){return yt.apply(this,arguments)})},{key:A(1098),value:(mt=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D[r(771)](r(1098)),e.n=1,this[r(1796)]()[r(895)](this[r(1819)][r(966)]);case 1:return e.a(2)}},e,this)})),function(){return mt[_0x3872(1988)](this,arguments)})},{key:"stopService",value:(gt=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return D[r(771)](r(865)),e.n=1,this[r(1796)]()[r(2256)](this[r(1819)][r(966)]);case 1:return e.a(2)}},e,this)})),function(){return gt[_0x3872(1988)](this,arguments)})},{key:"checkAndGetBundleName",value:(_t=_asyncToGenerator(_regenerator().m(function e(){var t,n,i,a,o,s,u,c,f;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(i=this[r(1819)],n=i[r(1055)],i=i[r(2162)],i=i===qe?Or:this[r(1819)].bundleName,i=n===Pr?Br:i||vr(process.cwd()),a=this[r(1819)][r(966)],u=!a)return e.n=1,g[r(1020)]()[r(672)]();e.n=2;break;case 1:a=e.v,u=!a;case 2:if(u)return e.a(2,!1);e.n=3;break;case 3:if(o="",n===Pr)return e.n=4,b(function(){return Ie[y(1988)](this,arguments)}(a,i));e.n=5;break;case 4:s=e.v,o=!(s[r(1148)]||!s[r(583)]),e.n=10;break;case 5:return e.n=6,b(_(["-t",a,r(2055),r(553),i]));case 6:if(t=e.v[r(583)],c=null===t){e.n=7;break}c=void 0===t;case 7:c?(f=void 0,e.n=9):e.n=8;break;case 8:f=t[r(647)]();case 9:o=f;case 10:return e.a(2,(o||D[r(1803)](At),i))}},e,this)})),function(){return _t.apply(this,arguments)})}])),Dt=r(require("fs")),Tt=r(require(y(1231))),Ot=r(require("fs")),Bt=r(require(y(1231))),T=n(y(1781)),e=_createClass(function e(r){var t=_0x3872;_classCallCheck(this,e),this[t(1670)]=[],this[t(735)]=null,this[t(1783)]=!1,this[t(1819)]=Object[t(861)]({buildMode:t(1595)},r)},[{key:(E=y)(743),value:function(e){var t=E,r=this,n=(T.info(t(1729)[t(1176)](e)),{start:function(){return r.start()},installDeps:function(){return r[t(1597)]()},assembleHap:function(){return r[t(851)]()},assembleApp:function(){return r[t(605)]()},installHap:function(){return r[t(875)]()},assembleAndInstallHap:function(){return r[t(1512)]()},uninstall:function(){return r.uninstall()},clean:function(){return r[t(824)]()},stop:function(){return r[t(759)]()}});n[e]?n[e]()[t(1142)](function(){var e=t;return T[e(771)](e(1858))})[t(1845)](function(e){var r=t;return T[r(1803)](r(845),e)}):T[t(1803)](t(1222)+Object[t(1104)](n)[t(877)](","))}},{key:E(1597),value:(pt=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return t=this[r(1819)][r(1331)],T.info(r(1368).concat(t)),e.n=1,b(function(){return gr[y(1988)](this,arguments)}(t));case 1:return e.a(2)}},e,this)})),function(){return pt[_0x3872(1988)](this,arguments)})},{key:"prepareAssemble",value:(dt=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(Ot[r(465)](Bt[r(665)](t,r(1378)))){e.n=1;break}return e.n=1,this[r(1597)]();case 1:return T[r(771)](r(720)),e.n=2,b(this.runCmdAsync(u(),[r(1464)].concat(_toConsumableArray(n||[])),{cwd:t}));case 2:return e.a(2)}},e,this)})),function(e,r){return dt[_0x3872(1988)](this,arguments)})},{key:E(614),value:function(e){var r=E;this[r(1670)][r(1158)](e)}},{key:E(486),value:function(e){var r=E,e=this[r(1670)][r(2215)](e);-1!==e&&this[r(1670)][r(1767)](e,1)}},{key:E(759),value:function(){this.stopping=!0,this.dispose()}},{key:E(1955),value:function(){for(var e=E;this.cpList.length;)br(this[e(1670)][e(1664)]())}},{key:E(2214),value:function(){}},{key:E(854),value:(vt=_asyncToGenerator(_regenerator().m(function e(r,o,s){var u=this;return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(t,n){var i,a=_0x3872;u[a(1783)]?n(a(1676)):(i=lr(r,o,function(e,r){if(u[a(486)](i),e)return n(e);t(r)},s),u[a(614)](i))}))},e)})),function(e,r,t){return vt[_0x3872(1988)](this,arguments)})},{key:E(824),value:(lt=_asyncToGenerator(_regenerator().m(function e(){var r,n;return _regenerator().w(function(e){for(var t=_0x3872;;)switch(e.n){case 0:if(void 0===(r=this[t(1819)][t(1331)]))return e.a(2);e.n=1;break;case 1:return e.n=2,function(){return mr.apply(this,arguments)}(r);case 2:return e.n=3,function(){return yr[y(1988)](this,arguments)}(r);case 3:n=Bt.resolve(r,t(1735),t(1795),t(1235)),Ot.rm(n,{recursive:!0,force:!0},function(e){var r=t;e?T[r(1803)](r(1455),e):T[r(771)](r(1702))});case 4:return e.a(2)}},e,this)})),function(){return lt[_0x3872(1988)](this,arguments)})}]),O=r(require(y(1231))),B=r(require("fs")),Pt=r(require("os")),Ft=r(require(y(1500))),It=r(require(y(1304))),Rt=r(require("cachedir")),P=n(y(950)),jt=/ASCF_GET_HVIGOR_DEPS_CACHES_DIR=(.+)$/m;function Nt(e){return _classCallCheck(this,Nt),_callSuper(this,Nt,[e])}function Gt(e){var r=y,e=O[r(877)](e,r(1547));return B[r(465)](e)}function Lt(e){}var Ht=function(e){var r=y;return Ft[r(1290)](r(503))[r(1959)](e)[r(2217)]("hex")};function Mt(r){var e=y;try{return B.realpathSync[e(1882)](r)}catch(e){return r}}function zt(e){var r=y,t=""[r(1176)](O[r(665)]((t=y,process[t(1374)][t(783)]||O[t(665)](Pt[t(1339)](),".hvigor")),"project_caches",Ht(O.resolve(e)),r(1577)),"/node_modules/@atomicservice/ascf-toolkit/lib");return B[r(465)](""[r(1176)](t,"/bin/ascf.js"))?t:void 0}function Ut(e){return qt.apply(this,arguments)}function qt(){var e=y;return(qt=_asyncToGenerator(_regenerator().m(function e(t){var n,i,a,o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(P[r(771)](r(1943).concat(t)),n="",Gt(t)){if(!process.env.ASCF_DISABLE_CACHE_DEP_DIR&&(n=zt(t)))return e.a(2,n);e.n=1}else e.n=3;break;case 1:return e.n=2,b(p(u(),[r(1574),r(1651)],{chdir:!0,cwd:t}));case 2:(a=e.v)[r(1148)]&&P[r(1803)]("getAscfDepDir err",a[r(1148)]),a=null!=(a=a[r(583)])?a:"",n=null==(a=jt[r(1998)](a))?void 0:a[1],e.n=6;break;case 3:if(i=O[r(877)](t,r(1045)),!B[r(465)](i)){e.n=5;break}if(n=O[r(877)](t,r(2167)),B[r(465)](""[r(1176)](n,r(661)))){e.n=4;break}throw a=""[r(1176)](n,r(890)),P[r(1803)](a),new Error(a);case 4:e.n=6;break;case 5:o="".concat(i," is not found for project, will use global ascf"),P[r(1803)](o);case 6:return e.a(2,(P[r(1595)](r(931),n),n))}},e)})))[e(1988)](this,arguments)}function Kt(){return Zt[y(1988)](this,arguments)}function Zt(){var e=y;return(Zt=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,Ut(t);case 1:return i=e.v,a="ascf",o=[],i?(a=ge(),o.push(""[r(1176)](i,"/bin/ascf.js"))):P.warn(r(1553)),s=null==(s=ee)?void 0:s(),e.a(2,(s&&"info"!==s&&o.push(r(947),s),o[r(1158)][r(1988)](o,_toConsumableArray((null==n?void 0:n[r(1528)])||[])),{cmd:a,args:o,ascfVerCmd:i?"".concat(a," ")[r(1176)](o[0]," -V"):r(1557)}))}},e)})))[e(1988)](this,arguments)}var Vt,Wt=function(e,r,t){var n=y,r=e.indexOf(r);return-1!==r&&(null==(e=e[r+1])?void 0:e[n(466)](t))};function Yt(e,r,t){return Jt[y(1988)](this,arguments)}function Jt(){var e=y;return(Jt=_asyncToGenerator(_regenerator().m(function e(a,o,s){var u,c,f;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,Kt(a,o);case 1:if(f=e.v,u=f[r(1183)],c=f[r(1528)],f=f[r(1883)],Wt(c,"--deviceType",h)){t=void 0;n=void 0;i=void 0;var t=f;var n=y,i=global[n(2045)];if(i){t=wr(t);if(t&&It.gt(i,t))throw new Error(n(512)[n(1176)](i,n(1337)))}}return e.n=2,b(p(u,c,_objectSpread(_objectSpread({},(null==o?void 0:o[r(1982)])||{}),{},{chdir:!0,cwd:a}),s));case 2:if((f=e.v)[r(1148)])throw P.error(r(1034),f[r(1148)]),f[r(1148)];e.n=3;break;case 3:return e.a(2)}},e)})))[e(1988)](this,arguments)}function $t(e,r,t){return Xt[y(1988)](this,arguments)}function Xt(){var e=y;return(Xt=_asyncToGenerator(_regenerator().m(function e(t,n,i){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,Yt(t,Object[r(861)]({args:["compile",t][r(1176)](_toConsumableArray((null==n?void 0:n.extraArgs)||[]))},n),i))},e)})))[e(1988)](this,arguments)}function Qt(e,r,t){return en.apply(this,arguments)}function en(){var e=y;return(en=_asyncToGenerator(_regenerator().m(function e(t,n,i){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,Yt(n,Object[r(861)]({args:["convert","-i",t,"-o",n][r(1176)](_toConsumableArray((null==i?void 0:i.extraArgs)||[]))},i)))},e)})))[e(1988)](this,arguments)}function rn(e,r){return tn[y(1988)](this,arguments)}function tn(){return(tn=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,Yt(t,Object.assign({args:[r(763),r(1867),"-r",t][r(1176)](_toConsumableArray((null==n?void 0:n[r(1471)])||[]))},n)))},e)}))).apply(this,arguments)}function nn(e,r){return an[y(1988)](this,arguments)}function an(){var e=y;return(an=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,Yt(t,Object[r(861)]({args:["signtools","generate-p12","-r",t][r(1176)](_toConsumableArray((null==n?void 0:n[r(1471)])||[]))},n)))},e)})))[e(1988)](this,arguments)}function on(e,r){return sn[y(1988)](this,arguments)}function sn(){var e=y;return(sn=_asyncToGenerator(_regenerator().m(function e(r,n){var i,a,o,s;return _regenerator().w(function(e){for(var t=_0x3872;;)switch(e.n){case 0:return un(),i=[t(2076),t(1155)],["deviceType",t(966)].forEach(function(e){var r=t;n[e]&&i[r(1158)]("--"[r(1176)](e),n[e])}),e.n=1,Kt(r,{args:i});case 1:return a=e.v,o=a.cmd,s=a[t(1528)],e.a(2,new Promise(function(n,e){lr(o,s,function(e,r){},{shell:!1,chdir:!0,cwd:r,ignoreError:function(e){return!0}},function(e){var r=_0x3872,t=hn(null==(e=Vt=e)?void 0:e[r(2046)]);P[r(1595)]("trying to get ascf debugger server info: "[r(1176)](t)),function(t,n){var e=y,i=2<arguments[e(1963)]&&void 0!==arguments[2]?arguments[2]:500,a=3<arguments[e(1963)]&&void 0!==arguments[3]?arguments[3]:6e4,o=(ln&&clearInterval(ln),0);ln=setInterval(function(){var e=a<o,r=B.existsSync(t);(e||r)&&(clearInterval(ln),ln=0,n(r)),o+=i},i)}(t,function(e){n(e?v(t,{}):{})})})}))}},e)})))[e(1988)](this,arguments)}function un(){Vt&&(br(Vt),Vt=void 0)}function cn(e,r){return fn[y(1988)](this,arguments)}function fn(){return(fn=_asyncToGenerator(_regenerator().m(function e(t,n){var i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,jr(r(795)[r(1176)](t,"/")[r(1176)](n),{timeout:3e3});case 1:return e.a(2,e.v);case 2:e.p=2,i=e.v,P[r(1803)](r(1791),i);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function hn(e){var r=y;if(e)return O[r(665)]((0,Rt[r(1755)])(r(2016)),r(957).concat(e,".json"))}var ln=0;var vn=y(1595),dn=y(2135);function pn(e){return e&&(!0===e||/debug|development/i[y(2156)](e))?vn:dn}var _n,gn,mn,yn,bn,wn,kn,xn,Cn=function(e,r,t){return r===t?[]:[e,r]},F=n("AscfBuilder"),En=(t=y,_inherits(On,e),_createClass(On,[{key:t(2080),value:(xn=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,this[r(854)](we(),t,n))},e,this)})),function(e,r){return xn[_0x3872(1988)](this,arguments)})},{key:t(1155),value:(kn=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(t=this.options[r(1331)],F[r(771)]("start ability under ".concat(t)),n=this[r(1819)][r(966)]){e.n=2;break}return e.n=1,g[r(1020)]()[r(672)]();case 1:n=e.v;case 2:return e.n=3,b(pr(t,n));case 3:return e.a(2)}},e,this)})),function(){return kn[_0x3872(1988)](this,arguments)})},{key:t(851),value:(wn=_asyncToGenerator(_regenerator().m(function e(){var r,n,i,a,o;return _regenerator().w(function(e){for(var t=_0x3872;;)switch(e.n){case 0:return i=this.options,r=i[t(1331)],i=i[t(1092)],F[t(771)](t(967)[t(1176)](r)),n=(new Date)[t(1974)](),i=["-p",t(1926)[t(1176)](pn(i)),"--parallel",t(1716)],e.n=1,this[t(1736)](r,i);case 1:return a=null==(a=dr(r))||null==(a=a[t(835)])?void 0:a.map(function(e){var r=t;return""[r(1176)](e[r(1180)],r(2183))}),e.n=2,b(this[t(854)](u(),["-m",t(1355),"-p",t(1584)[t(1176)](null==a?void 0:a.join(","))].concat(i,[t(851),1<a[t(1963)]?t(1815):"",t(2062)]),{chdir:!0,cwd:r}));case 2:(a=e.v)[t(1148)]&&F[t(1803)](t(1746),a[t(1148)]),o=Math.round(((new Date)[t(1974)]()-n)/1e3),F[t(771)](t(756)[t(1176)](o," s"));case 3:return e.a(2)}},e,this)})),function(){return wn.apply(this,arguments)})},{key:"assembleApp",value:(bn=_asyncToGenerator(_regenerator().m(function e(){var t,n,i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return i=this.options,t=i.projectRoot,i=i[r(1092)],F[r(771)](r(769)[r(1176)](t)),n=(new Date).getTime(),i=["-p",r(540),"-p","buildMode="[r(1176)](pn(i)),"--parallel",r(1716)],e.n=1,this[r(1736)](t,i);case 1:return F[r(771)]("start assembleApp, please waiting ..."),e.n=2,b(this[r(854)](u(),["-m",r(1244),"assembleApp"][r(1176)](i,[r(2062)]),{chdir:!0,cwd:t}));case 2:(a=e.v)[r(1148)]&&F.error(r(1109),a[r(1148)]),a=Math[r(1400)](((new Date)[r(1974)]()-n)/1e3),F.info("assembleApp within "[r(1176)](a," s"));case 3:return e.a(2)}},e,this)})),function(){return bn[_0x3872(1988)](this,arguments)})},{key:t(2230),value:(yn=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return i="/data/local/tmp/"+((new Date)[r(1974)]()+Math[r(1400)](1e3*Math[r(1744)]())),e.n=1,b(this[r(2080)](["-t",t,r(2055),r(1534),i]));case 1:if((a=e.v).err)return F[r(1803)](r(2139),a.err),e.a(2);e.n=2;break;case 2:return e.n=3,b(n(i));case 3:return(a=e.v)[r(1148)]&&F.error(r(2204),a[r(1148)]),e.n=4,b(this.runHdcCmdAsync(["-t",t,r(2055),"rm",r(2150),i]));case 4:return e.a(2)}},e,this)})),function(e,r){return yn[_0x3872(1988)](this,arguments)})},{key:"installHap",value:(mn=_asyncToGenerator(_regenerator().m(function e(){var n,t,o,i,s=this;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(n=this.options.projectRoot,F.info(r(1582)[r(1176)](n)),t=(new Date).getTime(),o=this[r(1819)].deviceId){e.n=2;break}return e.n=1,g[r(1020)]()[r(672)]();case 1:o=e.v;case 2:return e.n=3,b(this[r(2230)](o,(()=>{var r=_asyncToGenerator(_regenerator().m(function e(i){var a,r;return _regenerator().w(function(e){for(var t=_0x3872;;)switch(e.n){case 0:return r=null==(r=dr(n))||null==(r=r[t(835)])?void 0:r[t(1383)](function(e){var r=t;return Tt[r(665)](n,e[r(2041)],r(1387).concat(e[r(1180)],r(1007))[r(1176)]("entry"===e[r(1180)]?"hap":r(918)))}),a=!1,e.n=1,Promise[t(1426)](null==r?void 0:r[t(1383)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(Dt[r(465)](t)){e.n=1;break}return F[r(1803)](r(1554),t),a=!0,e.a(2);case 1:return e.n=2,b(s[r(2080)](["-t",o,r(1636),"send",t,i]));case 2:(n=e.v)[r(1148)]&&(F[r(1803)](r(1956),n[r(1148)]),a=!0);case 3:return e.a(2)}},e)}));return function(e){return r.apply(this,arguments)}})()));case 1:if(a)return e.a(2);e.n=2;break;case 2:return e.n=3,b(s[t(2080)](["-t",o,t(2055),"bm",t(796),"-p",i]));case 3:if((r=e.v)[t(1148)])return F[t(1803)]("install hap error",r.err),e.a(2);e.n=4;break;case 4:pr(n,o);case 5:return e.a(2)}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})()));case 3:i=Math[r(1400)](((new Date)[r(1974)]()-t)/1e3),F[r(771)](r(2138)[r(1176)](i," s"));case 4:return e.a(2)}},e,this)})),function(){return mn[_0x3872(1988)](this,arguments)})},{key:"assembleAndInstallHap",value:(gn=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return this[r(1783)]=!1,e.n=1,g[r(1020)]()[r(672)]();case 1:if(e.v){e.n=2;break}return e.a(2);case 2:return e.n=3,b(this[r(851)]());case 3:if((t=e.v)[r(1148)])return F[r(1803)]("assembleHap error",t.err),e.a(2);e.n=4;break;case 4:return e.n=5,b(this[r(875)]());case 5:return e.a(2)}},e,this)})),function(){return gn[_0x3872(1988)](this,arguments)})},{key:t(1286),value:(_n=_asyncToGenerator(_regenerator().m(function e(){var t,n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(t=this[r(1819)][r(1331)],F[r(771)](r(2194)[r(1176)](t)),n=this[r(1819)].deviceId){e.n=2;break}return e.n=1,g[r(1020)]()[r(672)]();case 1:n=e.v;case 2:return i=vr(t),e.n=3,b(this[r(2080)](["-t",n,r(1286),i]));case 3:if((i=e.v).err)return F.error(r(1719),i[r(1148)]),e.a(2);e.n=4;break;case 4:return e.a(2)}},e,this)})),function(){return _n[_0x3872(1988)](this,arguments)})}])),An=r(require("path")),Sn=r(require(y(463))),Dn=r(require("fs")),Tn=r(require(y(1231))),I=n(y(1781));function On(e){return _classCallCheck(this,On),_callSuper(this,On,[e])}function Bn(e,r){return Pn[y(1988)](this,arguments)}function Pn(){var e=y;return(Pn=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,xr(t);case 1:if(e.v){e.n=3;break}return I[r(551)]("Port "[r(1176)](t,r(1933))),e.n=2,Er();case 2:t=e.v;case 3:return e.a(2,((r,t)=>{var s=y,u=[],e=Sn[s(1038)](function(n,i){var e,a=s,o=(new Date)[a(1974)]();I[a(1595)]("request ".concat(n.url)),n[a(739)]===a(1030)?(e=Tn.join(t,n[a(2018)]),Dn.readFile(e,function(e,r){var t=a;e?(i[t(1307)](404,{"Content-Type":t(2287)}),i[t(1954)](t(1698))):(i[t(1307)](200,{"Content-Type":t(997)}),i[t(1954)](r),I[t(1595)](t(1675)[t(1176)](n.url,t(2005))[t(1176)]((new Date)[t(1974)]()-o," ms")),u[t(1158)](n[t(2018)]))})):(i[a(1307)](405,{"Content-Type":"text/plain"}),i[a(1954)](a(1591)))});return e[s(680)](r,function(){var e=s;I[e(1595)](e(1335)[e(1176)](r,"/"))}),e.on(s(1803),function(e){var r=s;I[r(1803)](r(1616),e)}),{server:e,port:r,close:function(){var r=s;e[r(2228)](function(){var e=r;I[e(1595)](e(678))})},hasReq:function(r){var t=s;return r&&u[t(1802)](function(e){return e&&r[t(1305)](e)})}}})(t,n))}},e)})))[e(1988)](this,arguments)}var R=n(y(1629));function Fn(e){return In[y(1988)](this,arguments)}function In(){return(In=_asyncToGenerator(_regenerator().m(function e(t){var n,i,a,o,s,u,c,f,h,l,v,d,p,_;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return n=t[r(2014)],f=t[r(1331)],i=t[r(966)],c=t.getSpkInfo,u=t[r(1092)],d=t.startServer,a=t[r(677)],o=t[r(2019)],s=t[r(458)],n[r(771)](r(1403)[r(1176)](f)),c=c(f,u),u=c[r(1056)],c=c[r(1119)],f=An.join(f,r(2105)),e.n=1,d(3e3,f);case 1:return h=e.v,e.n=2,a(i,h[r(1601)],0);case 2:if(l=e.v){e.n=3;break}return n[r(1803)](r(1369)),e.a(2);case 3:return v=r(795).concat(l,"/")[r(1176)](c),e.n=4,b(o(i,u,v));case 4:if((d=e.v)[r(1148)])return n[r(1803)](r(638),d[r(1148)]),e.a(2);e.n=5;break;case 5:n[r(771)](r(1617)),p=0,_=setInterval(function(){var e=r;h[e(2069)](v)||60<p?(s(i,e(898)[e(1176)](l)),h.close(),clearInterval(_)):p++},1e3);case 6:return e.a(2)}},e)}))).apply(this,arguments)}c=y,_inherits(qn,e);var Rn,jn,Nn,Gn,Ln,Hn,Mn,zn=_createClass(qn,[{key:c(1155),value:(Mn=_asyncToGenerator(_regenerator().m(function e(){var t,n,i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return n=this.options,t=n.projectRoot,n=n[r(1092)],R[r(771)](r(1558)[r(1176)](t)),e.n=1,this[r(672)]();case 1:return i=e.v,a=cr(t,n),a=a[r(1056)],e.n=2,b(De(i,a));case 2:return e.a(2)}},e,this)})),function(){return Mn[_0x3872(1988)](this,arguments)})},{key:c(851),value:(Hn=_asyncToGenerator(_regenerator().m(function e(){var t,n,i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return t=this[r(1819)][r(1331)],R.info(r(1415)[r(1176)](t)),n=(new Date).getTime(),e.n=1,this[r(1736)](t);case 1:return e.n=2,b($t(t,{extraArgs:["-c",r(1323),this[r(1819)][r(2162)],this[r(1819)].buildMode===r(1595)?"-m":""]}));case 2:if((i=e.v)[r(1148)])throw R[r(1803)](r(1410),i[r(1148)]),i[r(1148)];e.n=3;break;case 3:i[r(583)]&&R[r(771)](r(2104),i.data),i[r(1148)]&&R[r(1803)]("assembleSpk err",i[r(1148)]),a=Math[r(1400)](((new Date)[r(1974)]()-n)/1e3),R[r(771)](r(1084)[r(1176)](a," s"));case 4:return e.a(2)}},e,this)})),function(){return Hn[_0x3872(1988)](this,arguments)})},{key:"assembleApp",value:(Ln=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)if(0===e.n)return e.a(2,this[r(851)]())},e,this)})),function(){return Ln[_0x3872(1988)](this,arguments)})},{key:c(875),value:(Gn=_asyncToGenerator(_regenerator().m(function e(){var t,n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return n=this[r(1819)],t=n.projectRoot,n=n.buildMode,R[r(771)](r(1582)[r(1176)](t)),e.n=1,this[r(672)]();case 1:return i=e.v,e.a(2,Fn({logger:R,projectRoot:t,deviceId:i,getSpkInfo:cr,buildMode:n,startServer:Bn,tryAdbPortReversing:Se,startHostPkgUrl:Te,rportRmCmd:Pe}))}},e,this)})),function(){return Gn[_0x3872(1988)](this,arguments)})},{key:c(1512),value:(Nn=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return this[r(1783)]=!1,e.n=1,b(this[r(851)]());case 1:if((t=e.v)[r(1148)])return R[r(1803)](r(1213),t[r(1148)]),e.a(2);e.n=2;break;case 2:return e.n=3,b(this.installHap());case 3:return e.a(2)}},e,this)})),function(){return Nn.apply(this,arguments)})},{key:"uninstall",value:(jn=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:R[r(551)](r(1096));case 1:return e.a(2)}},e)})),function(){return jn[_0x3872(1988)](this,arguments)})},{key:"getDeviceId",value:(Rn=_asyncToGenerator(_regenerator().m(function e(){var t,n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:null==(t=this[r(1819)][r(966)])?e.n=1:(i=t,e.n=3);break;case 1:return e.n=2,g[r(1020)]()[r(672)]();case 2:i=e.v;case 3:if(n=i){e.n=4;break}throw new Error(r(696));case 4:return e.a(2,n)}},e,this)})),function(){return Rn.apply(this,arguments)})}]),Un=_defineProperty(_defineProperty({},Pr,function(e){return new zn(e)}),y(1296),function(e){return new En(e)});function qn(e){return _classCallCheck(this,qn),_callSuper(this,qn,[e])}function Kn(){var e=y;return(Kn=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(a=(a=t.deviceType)&&!n[a]?r(1296):a){e.n=5;break}return e.n=1,b(g[r(1020)]()[r(1644)](t[r(966)]));case 1:if(i=e.v.data,!(o=null!==i)){e.n=2;break}o=void 0!==i;case 2:o?(s=i,e.n=4):e.n=3;break;case 3:s=r(1296);case 4:a=s;case 5:return e.a(2,n[a](t))}},e)})))[e(1988)](this,arguments)}var Zn,Vn,Wn=_createClass(function e(){_classCallCheck(this,e)},null,[{key:y(784),value:(Vn=_asyncToGenerator(_regenerator().m(function e(r){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,function(){return Kn[y(1988)](this,arguments)}(r,Un))},e)})),function(e){return Vn[_0x3872(1988)](this,arguments)})}]),Yn=_createClass(function e(){_classCallCheck(this,e)},null,[{key:y(784),value:(Zn=_asyncToGenerator(_regenerator().m(function e(r){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new St(r))},e)})),function(e){return Zn[_0x3872(1988)](this,arguments)})}])}),rr=$e(function(e,r){var _=_0x3872,c=require(_(1231)),g=require("fs"),m=require("crypto"),y=dr()[_(998)],b=zr(),h=require(_(1016)),l=Rr(),w=Tr(),k=zr(),v=Nr(),x=(0,Ct().getLogger)("spk-sign-utils"),u=_(1427),s=_(550),C={type:_(1051),compression:_(2151),compressionOptions:{level:9}};function f(){var e=_;return(f=_asyncToGenerator(_regenerator().m(function e(r,t){var i,a,o;return _regenerator().w(function(e){for(var n=_0x3872;;)switch(e.n){case 0:return i={},r[n(610)](function(e){var r=n,t=e[r(1105)],e=e[r(2008)];return i[t]=e[r(641)](r(2026))}),(a=new y).file(s,JSON[n(954)]({algorithm:n(2245),digests:i})),e.n=1,a.generateAsync(C);case 1:return a=e.v,o={name:s,hash:b.getBufferSha256(a)},e.n=2,b[n(1491)](a,[o],t);case 2:return e.a(2,e.v)}},e)})))[e(1988)](this,arguments)}function E(){return t[_(1988)](this,arguments)}function t(){var e=_;return(t=_asyncToGenerator(_regenerator().m(function e(r,t){var i,a,o,s;return _regenerator().w(function(e){for(var n=_0x3872;;)switch(e.n){case 0:return i=r[n(1013)],a=new y,o=i[n(1383)](function(e){var r=n;return{name:e[r(1105)],hash:e[r(2008)]}}),e.n=1,function(){return f[_(1988)](this,arguments)}(i,t);case 1:return s=e.v,a.file(u,s),o[n(1999)]({name:u,hash:b[n(1752)](s)}),s=Object[n(861)]({},C),i[n(610)](function(e){var r=n,t=e.fileBuildPath,e=e[r(846)];a[r(1636)](t,e)}),e.n=2,a[n(671)](s);case 2:return s=e.v,e.n=3,b.signZipResource(s,o,t);case 3:return e.a(2,e.v)}},e)})))[e(1988)](this,arguments)}function a(){return(a=_asyncToGenerator(_regenerator().m(function e(r,t,i,a,o){var s,u,c,f,h,l,v,d,p;return _regenerator().w(function(e){for(var n=_0x3872;;)switch(e.n){case 0:return e.n=1,E(i,t);case 1:if(s=e.v,a.length){e.n=2;break}return e.a(2,{rpkBuffer:s});case 2:if(u=new y,c=[],f=Object[n(861)]({},C),o[n(1565)]&&o[n(1565)]!==n(2165)){e.n=4;break}return l=a.map(function(e){return E(e,t)}),e.n=3,Promise[n(1426)](l)[n(1845)](function(){new Error(n(2252))});case 3:e.v[n(610)](function(e,r){var t=n,r="".concat(a[r][t(800)]);e[t(1963)],u[t(1636)](r,e),c[t(1158)]({name:r,hash:b[t(1752)](e)})}),e.n=6;break;case 4:return h=a[0],e.n=5,E(h,t)[n(1845)](function(){new Error(n(2252))});case 5:l=e.v,v="".concat(h.pkgName),l[n(1963)],u[n(1636)](v,l),c[n(1158)]({name:v,hash:b.getBufferSha256(l)});case 6:return e.n=7,u[n(671)](f);case 7:return v=e.v,e.n=8,b[n(1491)](v,c,t);case 8:return d=e.v,p=s,e.a(2,{rpksBuffer:d,rpkBuffer:p})}},e)}))).apply(this,arguments)}function n(){var e=_;return(n=_asyncToGenerator(_regenerator().m(function e(t,n){var i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return i=g[r(1446)](n),e.n=1,b.signZipResource(i,[],t);case 1:return i=e.v,e.a(2,{apkBuffer:i})}},e)})))[e(1988)](this,arguments)}function d(e,r,t,n){var i=_;e[i(1013)][i(1158)]({fileBuildPath:r,fileContentBuffer:t,fileContentDigest:n})}function i(e){var r,t,n,i,a,o,s,u=_,e=e[u(1131)](/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/);if(e)return o=e[1],s=parseInt(o),2===o[u(1963)]&&(50<=s&&s<100?s=1900+s:0<=s&&s<50&&(s=2e3+s)),o=parseInt(e[2])-1,r=parseInt(e[3]),t=parseInt(e[4]),n=parseInt(e[5]),i=parseInt(e[6]),a=0,""!==(e=e[7])&&(e=(e[u(1599)](1)+"00")[u(1599)](0,3),a=parseInt(e)),Date[u(2229)](s,o,r,t,n,i,a);throw new Error(u(1704))}function A(e,r,t){return o[_(1988)](this,arguments)}function o(){var e=_;return(o=_asyncToGenerator(_regenerator().m(function e(t,n,i){var a,o,s,u,c,f=arguments;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(o=3<f[r(1963)]&&void 0!==f[3]?f[3]:{},a={signOnline:null!=i,privateKey:n,onlineConfig:i},o&&o[r(2148)]&&o[r(938)])return e.n=1,v[r(563)](o);e.n=2;break;case 1:t=e.v,a.type="dss";case 2:return(o=new h.X509)[r(1779)](t.toString()),s=h.KEYUTIL.getPEM(o[r(1215)]()),u=Buffer[r(1806)](l[r(587)][r(1662)](t)),c=Buffer[r(982)](u[r(1963)]+4),e.a(2,(c[r(1097)](u[r(1963)],0),u[r(883)](c,4),a[r(1399)]={content:t,obj:{len:c[r(1963)],buffer:c},pemBuffer:Buffer[r(1806)](l[r(587)][r(1662)](s))},a))}},e)})))[e(1988)](this,arguments)}function p(e){var r=_,t=new h[r(566)],e=(t[r(1779)](e),t[r(560)]()),t=Buffer[r(1806)](e,"hex")[r(641)]("base64"),e=k[r(1752)](t);return Buffer[r(1806)](e).toString(r(2026))}function S(){var e=_;return(S=_asyncToGenerator(_regenerator().m(function e(s){var u,c,f,h,l,v,d,p;return _regenerator().w(function(e){for(var r,t,n,i,a,o=_0x3872;;)switch(e.n){case 0:if(s&&g.existsSync(s)){e.n=1;break}throw new Error(o(2189)+s);case 1:if(u=g[o(1446)](s),w[o(1422)](u)){e.n=2;break}throw new Error(o(1502));case 2:if((c=w[o(1765)](u,!0))[o(1788)][o(1189)][o(2095)]){e.n=3;break}throw new Error("No sign block!");case 3:if(f=k[o(1216)](u,c.sections[o(1189)]),h=k[o(856)](f)){e.n=4;break}throw new Error("Get Certificate error!");case 4:return l=f[o(583)][0][o(1203)].data[0][o(1424)][o(583)][0][o(1249)],v=[],r=u,a=i=n=void 0,t=(t=c)[(n=_)(1788)],i=Buffer[n(982)](t[n(961)][n(1879)]+t.central.len+t[n(509)][n(1879)]),a=0,r[n(883)](i,0,t[n(961)][n(1107)],t.header[n(1107)]+t[n(961)].len),a+=t[n(961)][n(1879)],r[n(883)](i,a,t[n(2033)].startIndex,t[n(2033)].startIndex+t[n(2033)][n(1879)]),a+=t[n(2033)][n(1879)],r[n(883)](i,a,t.footer[n(1107)],t[n(509)][n(1107)]+t[n(509)][n(1879)]),i[n(1097)](t[n(961)][n(1879)],i.length-6),d=i,e.n=5,A(h);case 5:return p=e.v,e.n=6,b[o(932)](d,v,p);case 6:p=e.v,m.createVerify(o(1011)).update(p).verify(h,l)||(x[o(1803)](o(1006)),process[o(2293)](-1));case 7:return e.a(2)}},e)})))[e(1988)](this,arguments)}r[_(946)]={generatePkgDef:function(){var t=_,e=0<arguments[t(1963)]&&void 0!==arguments[0]?arguments[0]:[],n=[],r={pkgName:t(849),fileList:[]};return e.forEach(function(e){var r=t,e=e[r(955)];r(1180);n.push({pkgName:""[r(1176)](e,r(2280)),fileList:[],root:e})}),{mainPkg:{pkgName:"base.spk",fileList:[]},subPkgs:e[t(1963)]?[r][t(1176)](n):[r]}},addResourceToPkg:function(e,r,t,s){e.forEach(function(n){var i,a=_0x3872,e=g[a(1446)](c[a(877)](r,n)),o=[n,e,b.getBufferSha256(e)];d[a(1988)](void 0,[t][a(1176)](o)),s.length&&(i=!0,s[a(2136)](1).forEach(function(e){var r=a,t=n[r(516)]("/");t[0]===e[r(2036)]&&(o[0]=t[r(2136)](1)[r(877)]("/"),d.apply(void 0,[e][r(1176)](o)),i=!1)}),i)&&d[a(1988)](void 0,[s[0]][a(1176)](o))})},signPkgs:function(e,r,t,n,i){return a[_(1988)](this,arguments)},DIGEST_PATH:u,getResources:function(e){var r=_;return function n(i,a){var o=_0x3872,s=[],u=c[o(827)][o(877)](i,a);return g.readdirSync(u)[o(610)](function(e){var r=o,t=c.posix[r(877)](u,e),e=c[r(827)][r(877)](a,e);g[r(1861)](t)[r(1074)]()?s.push(e):s=s.concat(n(i,e))}),s}(e,".")[r(1236)](function(e){return e!==u})},checkValidity:function(e){(r=new h[(t=_)(566)])[t(1779)](String(e));var e=i(r.getNotAfter()),r=i(r[t(1572)]()),t=Number(new Date);return{validityDays:Number(e-t)/864e5,isInvalid:0<Number(r)-t}},getSignInfo:A,getApkSignInfo:function(e){var r=_,t={signOnline:!1,onlineConfig:null},n=((n=new h[r(566)])[r(1779)](e.toString()),h[r(1388)].getPEM(n[r(1215)]())),i=Buffer.from(l[r(587)][r(1662)](e)),a=Buffer[r(982)](i[r(1963)]+4);return a.writeInt32LE(i[r(1963)],0),i[r(883)](a,4),t[r(1399)]={content:e,obj:{len:a[r(1963)],buffer:a},pemBuffer:Buffer.from(l[r(587)][r(1662)](n))},t},getSignedZipCertFp:function(e){return S.apply(this,arguments)},getCertFp:function(e){var r=_;if(g[r(465)](e))return p(g[r(1446)](e)[r(641)]());console[r(1803)](r(965))},signFullApk:function(e,r){return n[_(1988)](this,arguments)},getCertString:function(e){var r=_;if(!e||!g.existsSync(e))throw new Error(r(508)+e);if(e=g.readFileSync(e),!w[r(1422)](e))throw new Error(r(1502));var t=w[r(1765)](e,!0);if(!t[r(1788)][r(1189)].tag)throw new Error(r(2216));if(e=k.getSignChunk(e,t[r(1788)][r(1189)]),t=k[r(856)](e))return p(t);throw new Error(r(992))}}}),At=$e(function(e,r){var f=_0x3872,h=require("path"),l=require("fs"),n=require("json5"),i=require(f(848)),v=require(f(972)),t=f(1493),a=f(2171),o=f(1884),s=f(1385),u=(0,Ct()[f(1058)])(f(1080)),c=require(f(2106)),d=c[f(1998)],p=c.spawnSync;function _(e){var r,t=f,n=h[t(665)](e,t(471));if(!l.existsSync(n))return h[t(877)](e,t(1792));n=g(n);if(0<(null==n||null==(r=n[t(835)])?void 0:r[t(1963)]))return h[t(877)](e,n.modules[0][t(2041)]);throw new Error(t(1580))}function g(r){var t=f;if(!l[t(465)](r))return{};var e={};try{e=n[t(545)](l.readFileSync(r,t(1833)).toString()||"{}")}catch(e){throw new Error(t(1120)[t(1176)](r,":")[t(1176)](e[t(793)],":").concat(e[t(1542)]," "))}return e}var m=function(e){return Promise.all(e.map(function(r){var t=_0x3872;if(l[t(465)](r))return new Promise(function(e){i[t(639)](r),e()})}))};function y(){var e=f;return(y=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s,u,c,f;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,v(t,n);case 1:a=l[r(1562)](n,{withFileTypes:!0}),i=[],a=_createForOfIteratorHelper(a),e.p=2,a.s();case 3:if((f=a.n()).done)e.n=9;else{if(o=f[r(1203)],s=h[r(665)](h[r(877)](n,o.name)),u="",o.name===r(849))return e.n=4,v(s,n);e.n=5}break;case 4:u=h[r(665)](h[r(877)](n,r(1984))),e.n=7;break;case 5:return c=o[r(1180)][r(516)](".")[0],e.n=6,v(s,h[r(665)](n,c));case 6:u=h.resolve(h[r(665)](n,c,r(1984)));case 7:i[r(1158)](u),l[r(1436)](s);case 8:e.n=3;break;case 9:e.n=11;break;case 10:e.p=10,f=e.v,a.e(f);case 11:return e.p=11,a.f(),e.f(11);case 12:return e.n=13,m(i);case 13:e.n=15;break;case 14:throw e.p=14,e.v;case 15:return e.a(2)}},e,null,[[2,10,11,12],[0,14]])})))[e(1988)](this,arguments)}r[f(946)]={RAWFILE_DIR:t,ASCF_BUILD:a,ASCF_CONFIG_JSON:o,P12_PATH:"sign/ascf-build.p12",QUICK_SERVICE_BUILD:s,DIST_PATH:"build/dist",getManifestData:function(e){var r=f;return g(h.resolve(_(e),t,r(691)))},getEntryPkgPath:_,readJsonFile:g,clearResource:m,copyDirectory:function e(r,t){var n,i=f;if(l[i(1344)](t,{recursive:!0}),l[i(1861)](r)[i(1074)]())n=h.join(t,h[i(1206)](r)),l[i(1147)](r,n);else{var a,o=_createForOfIteratorHelper(l[i(1562)](r,{withFileTypes:!0}));try{for(o.s();!(a=o.n()).done;){var s=a[i(1203)],u=h[i(665)](h[i(877)](r,s.name)),c=h[i(877)](t,s.name);s[i(1217)]()?e(u,c):l[i(1147)](u,c)}}catch(e){o.e(e)}finally{o.f()}}},mkdirsSync:function e(r){var t=f;if(!l[t(465)](r)){if(l[t(465)](h.dirname(r))||!e(h[t(853)](r)))return l.mkdirSync(r);print(t(1782)[t(1176)](r))}},formatHexString:function(e){var r=f;if(64!==e[r(1963)])throw new Error(r(911));for(var t="",n=0;n<e[r(1963)];n+=2)t+=e.substr(n,2)+":";return t[r(2136)](0,-1).toUpperCase()},extractspk:function(e,r){return y[f(1988)](this,arguments)},deleteDirectory:function t(n){var i=f;l[i(465)](n)&&(l[i(1562)](n).forEach(function(e){var r=i,e=h[r(877)](n,e);l[r(1151)](e)[r(1217)]()?t(e):l[r(1436)](e)}),l.rmdirSync(n))},executeCommand:function(a){var o=/^mac verified ok/i;return new Promise(function(r,t){var e,n=_0x3872,i=d(a);null!=(e=i[n(929)])&&e.on("data",function(e){u[n(1595)](e)}),null!=(e=i[n(1801)])&&e.on(n(583),function(e){var r=n;!e.match(o)&&a[r(466)](r(1540))&&t(e)}),null!=(e=i[n(1801)])&&e.on(n(1803),function(e){t(e)}),i.on("close",function(e){r(e)})})},checkOpenSSL:function(e){var r=f;if(0===(e=p(e,[r(654)],{encoding:r(1833)}))[r(774)])return u[r(1595)](e.stdout),!0;throw new Error(r(778)+e[r(1801)])},validatePassword:function(){var e,r=f,t=0<arguments[r(1963)]&&void 0!==arguments[0]?arguments[0]:"";return!(t[r(1963)]<8)&&(e=0,/[a-z]/[r(2156)](t)&&e++,/[A-Z]/[r(2156)](t)&&e++,/[0-9]/[r(2156)](t)&&e++,/[`~!@#$%^&*()\-_=+\\|[{}];:'",<.>\/?]/[r(2156)](t)&&e++,2<=e)}}}),ln=$e(function(e,r){var t=_0x3872,n=require("path"),i=require("os"),a=At().checkOpenSSL,o=i[t(1635)](),s=(0,Ct()[t(1058)])("openssl"),u=!1;r.exports={getOpensslPath:function(){var e=t,r="openssl";return"win32"===o&&(r=n[e(877)](__dirname,"../tools/release_64/bin/openssl.exe")),u||(s[e(1595)](r),u=a(r)),r},getOpensslConfig:function(){var e=t,r="";return r=o===e(524)?e(1730).concat(n.join(__dirname,"../tools/release_64/SSL/openssl.cnf")):r}}}),aa=$e(function(j,e){var v,h=_0x3872,f=require(h(1500)),d=require(h(1231)),p=require("fs"),i=dr()[h(998)],_=rr(),r=Ct()[h(1058)],t=At(),g=t[h(2255)],m=t[h(731)],y=t[h(1549)],b=t[h(862)],w=t[h(893)],k=t.getManifestData,N=t.readJsonFile,x=t[h(2198)],l=t[h(748)],G=t[h(2176)],L=t[h(475)],C=t[h(2168)],E=ln()[h(761)],A=r(h(897)),c=100,H=1e4,M=0;function S(){return n[h(1988)](this,arguments)}function n(){var e=h;return(n=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return i=d.resolve(t,x),e.n=1,function(){return u.apply(this,arguments)}(n,t,i);case 1:return a=e.v,e.n=2,function(){return s[h(1988)](this,arguments)}(n,t,i);case 2:return o=e.v,e.a(2,_[r(1848)](o,a,v))}},e)})))[e(1988)](this,arguments)}function s(){var e=h;return(s=_asyncToGenerator(_regenerator().m(function e(a,o,s){var u,c,f;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(u="",p[r(465)](a[r(2246)])&&(A[r(1595)](r(1820)),u=p[r(1446)](a.signPublicKeyPath)),!u&&p.existsSync(a[r(1961)]))return A[r(1595)](r(1661)),e.n=1,R(a[r(1961)],F(a.signPwd));e.n=2;break;case 1:u=e.v;case 2:u||!p[r(465)](s)?e.n=5:(c=null==(c=JSON.parse(p[r(1446)](s)[r(641)]()))?void 0:c[r(1876)],p.existsSync(null==c?void 0:c.publicKeyPath)?(A[r(1595)](r(569)),u=p[r(1446)](c[r(703)]),e.n=5):e.n=3);break;case 3:if(p[r(465)](null==c?void 0:c[r(1516)]))return A[r(1595)](r(491)),e.n=4,R(c.profilePath,F(a[r(1208)]));e.n=5;break;case 4:u=e.v;case 5:if(f=d[r(665)](o,r(1317)),!u&&p[r(465)](f)&&(A[r(1595)](r(2145).concat(f)),u=p[r(1446)](f)),f=d[r(665)](o,l),!u&&p[r(465)](f))return A.debug(r(1122)),e.n=6,R(f,F(a.signPwd));e.n=7;break;case 6:u=e.v;case 7:u||(A.error(r(1487)),process[r(2293)](-1)),i=n=t=void 0;var t=u,n=h,i=(t=_[n(1797)](t))[n(858)],t=t.isInvalid;if(i<0||t)throw new Error(n(943));return i<180&&A[n(551)](n(915)),e.a(2,u)}},e)})))[e(1988)](this,arguments)}function u(){return(u=_asyncToGenerator(_regenerator().m(function e(t,n,i){var a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:if(a="",p[r(465)](t.signPrivateKeyPath)&&(A[r(1595)](r(2042)),a=p[r(1446)](t.signPrivateKeyPath)),!a&&p.existsSync(t[r(1961)]))return A.debug(r(1661)),e.n=1,I(t.signProfilePath,F(t.signPwd));e.n=2;break;case 1:a=e.v;case 2:a||!p[r(465)](i)?e.n=5:(o=null==(o=JSON[r(545)](p.readFileSync(i).toString()))?void 0:o[r(1876)],p[r(465)](null==o?void 0:o[r(1265)])?(A.debug(r(1615)),a=p[r(1446)](o[r(1265)]),e.n=5):e.n=3);break;case 3:if(p.existsSync(null==o?void 0:o.profilePath))return A[r(1595)](r(1311)),e.n=4,I(o[r(1516)],F(t[r(1208)]));e.n=5;break;case 4:a=e.v;case 5:if(s=d.resolve(n,r(1276)),!a&&p[r(465)](s)&&(A[r(1595)]("Obtaining the private key using ".concat(s)),a=p[r(1446)](s)),s=d[r(665)](n,l),!a&&p[r(465)](s))return A.debug("Obtaining the private Key Using the p12 File"),e.n=6,I(s,F(t[r(1208)]));e.n=7;break;case 6:a=e.v;case 7:return a||(A[r(1803)](r(985)),process.exit(-1)),e.a(2,a)}},e)}))).apply(this,arguments)}function D(){return a[h(1988)](this,arguments)}function a(){var e=h;return(a=_asyncToGenerator(_regenerator().m(function e(o,r,s,u){return _regenerator().w(function(e){for(var r,t,n,i,a=_0x3872;;)if(0===e.n)return e.a(2,(p.existsSync(o)||p[a(1344)](o),r=s[a(2057)],t=o,i=void 0,i=h,(n=u).length>c&&(n=n[i(2136)](0,c)),t=d.join(t,n),p[i(1411)](t,r),A[i(771)](i(474)[i(1176)](t)),t))},e)})))[e(1988)](this,arguments)}function T(e){var r=h;if(!e[r(1539)]||!e[r(1539)][r(624)]("com.atomicservice."))throw new Error(r(1700));if(!e[r(468)]||!e[r(497)])throw new Error("The versionName and versionCode fields in the app.json file cannot be empty.")}function O(e){var r=h,t=(new Date)[r(1706)]().split("T")[0][r(516)]("-")[r(877)](""),n=process[r(1374)][r(925)]===r(1476)?r(2135):"debug";return""[r(1176)](e[r(1539)],"-")[r(1176)](e.versionCode,"-").concat(n,"-")[r(1176)](t,r(1429))}function o(){var e=h;return(o=_asyncToGenerator(_regenerator().m(function e(n,r){var i,a,o,s,u,c,f,h,l;return _regenerator().w(function(e){for(var t=_0x3872;;)switch(e.n){case 0:if(i=d[t(877)](n,x),(v=(p[t(465)](i)?require(i):{}).sign)&&!v[t(1900)])throw new Error(t(1173));e.n=1;break;case 1:return e.n=2,S(n,r);case 2:if(a=e.v){e.n=3;break}throw new Error(t(1733));case 3:return o=d[t(665)](n,L),s=d[t(665)](n,G),e.n=4,y([s]);case 4:if(T(u=k(n)),c=O(u),null!=(i=u[t(1917)])&&i[t(610)](function(e){var r=t,r=d[r(665)](n,m,e[r(955)],g);b(r,d.resolve(s,e.resource))}),b(d[t(665)](w(n),g),s),h=_[t(1300)](u[t(1917)]),f=h[t(621)],h=h.subPkgs,(l=0<(l=[])[t(1963)]?l:_[t(1409)](s)).length){e.n=5;break}throw new Error("The packed file is empty.");case 5:return e.a(2,(_[t(753)](l,s,f,h),_[t(487)]("",a,f,h,r)[t(1142)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,D(o,u[r(1917)],t,c);case 1:if(n=e.v,u[r(562)]===r(2135))return e.n=2,P(n);e.n=2;break;case 2:return e.a(2,n)}},e)}));return function(e){return r[_0x3872(1988)](this,arguments)}})())))}},e)})))[e(1988)](this,arguments)}function B(){var e=h;return(B=_asyncToGenerator(_regenerator().m(function e(t,n,i,a){var o,s,u,c,f,h,l;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return o={signPrivateKeyPath:i,signPublicKeyPath:n,disableSubpackages:!1},e.n=1,S("",o);case 1:if(s=e.v,h=d.resolve(t,r(691)),u=N(h),c=O(u),T(u),h=_.generatePkgDef(u.subpackages),f=h[r(621)],h=h[r(1439)],(l=0<(l=[])[r(1963)]?l:_[r(1409)](t))[r(1963)]){e.n=2;break}throw new Error("The packed file is empty.");case 2:_.addResourceToPkg(l,t,f,h),a=null!=a?a:d[r(665)](t,r(1398)),_[r(487)]("",s,f,h,o)[r(1142)]((()=>{var r=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,D(a,u[r(1917)],t,c);case 1:if(n=e.v,"release"===u[r(562)])return e.n=2,P(n);e.n=2;break;case 2:return e.a(2,n)}},e)}));return function(e){return r.apply(this,arguments)}})());case 3:return e.a(2)}},e)})))[e(1988)](this,arguments)}function P(e){var r=h,t=qt(),s=t.MAX_SIZE_SSPK,t=t[r(2185)];if(p.statSync(e).size>t)throw new Error("Total package is exceed limit "[r(1176)](t/1024/1024," MB."));return new Promise(function(a,o){var n=r;p[n(2050)](e,function(e,r){var t=n;if(e)return o(e);i.loadAsync(r)[t(1142)](function(e){var n=t,i=null;if(e[n(610)](function(e,r){var t=n;if(H<++M)throw t(1412);!i&&r._data.compressedSize>s&&(i=new Error("Package is exceed limit "[t(1176)](s/1024/1024,t(1834))))}),i)return o(i);a()})})})}function F(e){var r=h,e=null!=e?e:process[r(1374)][r(1301)];return e||(A[r(1803)](r(968)),process[r(2293)](-1)),e}function I(u,c){return new Promise((t=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o,s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return A[r(1595)](r(711)),i=f.randomBytes(16)[r(641)](r(2026)),a=f[r(2126)](16).toString(r(2026)),e.p=1,o=""[r(1176)](E()," pkcs12 -in ")[r(1176)](u,r(2038))[r(1176)](i,r(1890))[r(1176)](c),A.debug(""[r(1176)](E(),r(1995))[r(1176)](u,r(2038)).concat(i," -passin pass:***")),e.n=2,C(o);case 2:return o=""[r(1176)](E()," ec -in ")[r(1176)](i,r(2258)).concat(a),A[r(1595)](""[r(1176)](E(),r(1450))[r(1176)](i," -check -out ").concat(a)),e.n=3,C(o);case 3:return p[r(465)](i)&&p[r(1436)](i),s="",e.a(2,(p[r(465)](a)&&(s=p[r(1446)](a),p[r(1436)](a)),A[r(1595)](r(1863)),t(s)));case 4:e.p=4,s=e.v,p[r(465)](i)&&p[r(1436)](i),p[r(465)](a)&&p[r(1436)](a),n(r(1404).concat(s));case 5:return e.a(2)}},e,null,[[1,4]])})),function(e,r){return t[_0x3872(1988)](this,arguments)}));var t}function R(s,u){return new Promise((t=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a,o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return i=f[r(2126)](16)[r(641)](r(2026)),e.p=1,a=""[r(1176)](E()," pkcs12 -in ")[r(1176)](s,r(1448))[r(1176)](u,r(1101)).concat(E()," x509 -out ")[r(1176)](i),A[r(1595)](""[r(1176)](E()," pkcs12 -in ")[r(1176)](s,r(830))[r(1176)](E(),r(1594)).concat(i)),e.n=2,C(a);case 2:if(p[r(465)](i))return a=p[r(1446)](i),e.a(2,(p[r(1436)](i),t(a)));e.n=3;break;case 3:e.n=5;break;case 4:e.p=4,o=e.v,p[r(465)](i)&&p[r(1436)](i),n(r(617)[r(1176)](o));case 5:return e.a(2)}},e,null,[[1,4]])})),function(e,r){return t[_0x3872(1988)](this,arguments)}));var t}e[h(946)]={signSpk:function(e,r){return o[h(1988)](this,arguments)},resignSpk:function(e,r,t,n){return B[h(1988)](this,arguments)}}}),la=$e(function(e,r){var t=_0x3872,s=(require("path"),require("fs")),n=Ct().getLogger,i=At(),u=i.executeCommand,c=i.validatePassword,i=ln(),f=i.getOpensslPath,o=i[t(1794)],h=n(t(2197));function a(){var e=t;return(a=_asyncToGenerator(_regenerator().m(function e(t,n){var i,a;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:if(s[r(465)](t)||s[r(465)](n))throw new Error("".concat(t," or ")[r(1176)](n,r(1641)));e.n=1;break;case 1:return e.p=1,i="".concat(f(),r(702))[r(1176)](t),h[r(1595)](i),e.n=2,u(i);case 2:return i=""[r(1176)](f(),r(1910))[r(1176)](t,r(690)).concat(n,r(1902))[r(1176)](o()),h[r(1595)](i),e.n=3,u(i);case 3:e.n=5;break;case 4:e.p=4,a=e.v,h.error(r(1903),a),s[r(465)](t)&&s[r(1436)](t),s[r(465)](n)&&s[r(1436)](n);case 5:return e.a(2)}},e,null,[[1,4]])})))[e(1988)](this,arguments)}function l(){return(l=_asyncToGenerator(_regenerator().m(function e(t,n,i,a){var o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:if(c(a)){e.n=1;break}throw new Error(r(1354));case 1:if(s[r(465)](t))throw new Error(""[r(1176)](t,r(1641)));e.n=2;break;case 2:return e.p=2,o=""[r(1176)](f()," pkcs12 -export -out ")[r(1176)](t,r(1314))[r(1176)](n," -in ").concat(i,r(712))[r(1176)](a),h[r(1595)](""[r(1176)](f()," pkcs12 -export -out ")[r(1176)](t,r(1314)).concat(n,r(1338)).concat(i,r(2233))),e.n=3,u(o);case 3:e.n=5;break;case 4:e.p=4,o=e.v,h[r(1803)](r(1911),o),s.existsSync(t)&&s.unlinkSync(t);case 5:return e.a(2)}},e,null,[[2,4]])}))).apply(this,arguments)}r[t(946)]={genCert:function(e,r){return a[t(1988)](this,arguments)},genP12:function(e,r,t,n){return l.apply(this,arguments)}}}),ua=$e(function(e){var r=_0x3872,i=require(r(1231)),a=require(r(972)),o=rr().getSignedZipCertFp,t=At(),s=t[r(1549)],u=t[r(1413)];function n(){return(n=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return n=null!=n?n:i[r(665)](i[r(853)](t),r(1398)),e.n=1,o(t);case 1:return e.n=2,s([n]);case 2:return e.n=3,a(t,n);case 3:u(i.resolve(n,"META-INF"));case 4:return e.a(2)}},e)}))).apply(this,arguments)}e[r(1341)]=function(e,r){return n.apply(this,arguments)}}),pa=$e(function(e,r){var d=_0x3872,g=require("fs"),m=require("path"),a=dr()[d(998)],t=At(),y=t[d(1665)],p=t.extractspk,_=t[d(1549)],b=rr(),o=d(691),w="";function k(){var e=d;return(k=_asyncToGenerator(_regenerator().m(function e(t,n,i,a){var o,s,u,c,f,h,l,v,d,p,_;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return y(n),o=t[r(1539)],s=t.versionType,u=t[r(497)],d=a.privateKeyFilePath,f=a[r(1850)],f=g[r(1446)](f),d=g[r(1446)](d),e.n=1,b.getSignInfo(f,d);case 1:if(c=e.v,f=b[r(1300)](t[r(1917)]),h=f[r(621)],l=f.subPkgs,(v=0<(v=[])[r(1963)]?v:b.getResources(i))[r(1963)]){e.n=2;break}throw new Error(r(933));case 2:return b.addResourceToPkg(v,i,h,l),e.n=3,b.signPkgs(o,c,h,l,{disableSubpackages:!1});case 3:d=e.v,p=d[r(2057)],_=(new Date)[r(1706)]().split("T")[0][r(516)]("-").join(""),w=m[r(877)](n,"".concat(o,"-")[r(1176)](u,"-")[r(1176)](s,"-")[r(1176)](_,r(1429))),g[r(1411)](w,p);case 4:return e.a(2)}},e)})))[e(1988)](this,arguments)}function x(){var e=d;return(x=_asyncToGenerator(_regenerator().m(function e(t){var n,i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.n){case 0:return e.n=1,(new a).loadAsync(g[r(1446)](t));case 1:if((n=e.v)[r(1701)]["base.sspk"]){e.n=2;break}throw new Error(r(842));case 2:return e.n=3,n[r(1701)]["base.sspk"].async(r(1051));case 3:return i=e.v,e.n=4,(new a).loadAsync(i);case 4:return e.n=5,e.v[r(1636)](o).async(r(1191));case 5:return i=e.v,e.a(2,JSON[r(545)](i)||{})}},e)})))[e(1988)](this,arguments)}r.exports={spkHandler:function(c,f,h,l,v){return new Promise((t=_asyncToGenerator(_regenerator().m(function e(i,a){var o,s,u;return _regenerator().w(function(e){for(var r,t,n=_0x3872;;)switch(e.n){case 0:if(g[n(465)](c)){e.n=1;break}return e.a(2,a(new Error(n(1758).concat(c))));case 1:if(g[n(465)](f)){e.n=2;break}return e.a(2,a(new Error(n(841)[n(1176)](f))));case 2:if(g[n(465)](h)){e.n=3;break}return e.a(2,a(new Error(n(1622)[n(1176)](h))));case 3:return e.n=4,function(){return x[d(1988)](this,arguments)}(c);case 4:if(o=e.v,r=o,t=void 0,t=d,0===Object.keys(r)[t(1963)])return e.a(2,a(new Error(n(1395))));e.n=5;break;case 5:return s=o.package,u=m.dirname(c),u=m[n(877)](u,s),s=m[n(877)](null!=l?l:u,"quick-service-build"),u=m[n(877)](null!=l?l:u,n(1398)),e.n=6,_([s,u]);case 6:return y(s),e.n=7,p(c,s);case 7:return o[n(562)]=null!=v?v:o.versionType,g[n(1411)](m.resolve(s,n(691)),JSON[n(954)](o,null,2)),e.n=8,function(){return k[d(1988)](this,arguments)}(o,u,s,{privateKeyFilePath:h,certFilePath:f});case 8:return e.a(2,i(w))}},e)})),function(e,r){return t[_0x3872(1988)](this,arguments)}));var t}}}),_aa=aa(),mh=_aa[_0x139f27(963)],_h=_aa[_0x139f27(505)],_la=la(),vh=_la[_0x139f27(844)],yh=_la[_0x139f27(1440)],_At6=At(),bh=_At6[_0x139f27(1551)],_ua=ua(),wh=_ua[_0x139f27(1341)],_Ct6=Ct(),Sh=_Ct6.getLogger,_pa=pa(),kh=_pa.spkHandler,_rr2=rr(),Eh=_rr2.getCertString,je=Sh(_0x139f27(1709));function Ch(e,r){return _Ch[_0x139f27(1988)](this,arguments)}function _Ch(){return(_Ch=_asyncToGenerator(_regenerator().m(function e(t,n){var i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return e.p=0,je.info(r(2284)),e.n=1,mh(t,n);case 1:return i=e.v,e.a(2,(je[r(771)](r(1260)),i));case 2:e.p=2,i=e.v,je[r(727)](r(1888)+i),process[r(2293)](-1);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function Ah(e,r,t,n){return _Ah[_0x139f27(1988)](this,arguments)}function _0x1f8b(){var e=[". Expected ","internalFileAttributes","support","express","' is invalid.","../sdk","localHeaderOffset","previous","nice_length","end","dispose","send hap error","processChunk","Command","update","_outputType","signProfilePath","diskNumber","length","_undestroy","Option","listenerCount","loadAsync","commander.helpDisplayed","missingMandatoryOptionValue","process","pending_out","defaultEncoding","w_size","getTime","_checkForConflictingLocalOptions","service","createFolders","77stPKLi","_allowUnknownOption","_transform() is not implemented","cleanUp","opts","compressedContent","META-INF","'.\nExpecting one of '","utf8encode","webLocalPort","apply","argumentDescription","exec print fingerprints success, fingerprints info: ","needReadable","killProcess error","commander.unknownCommand","userName"," pkcs12 -in ","error: too many arguments","runExecAsync stdout","exec","unshift","localPort","chrome-devtools-frontend","zipCommentLength","[object ArrayBuffer]","getCompressedWorker"," elapsed ","finalCalled","decodeStrings","fileContentDigest","setDssHost","length less than watermark","destroy","pending_buf_size","InvalidOptionArgumentError","logger","@chrome-devtools/js-app","ascf-cache","key","url","startHostPkgUrl","startService","uncork","localabstract:webview_devtools_remote_","size","write callback called multiple times","mergeStreamInfo","hex","commander.invalidArgument","google-chrome-stable","_conflictingOption"," success","MAX_VALUE_32BITS","toUint8Array","central","_executeSubCommand","invalid bit length repeat","root","ascfPackageName"," -nocerts -nodes -out ","data:","withStreamInfo","srcPath","Obtaining a private Key using a Path","' method","strstart","__ASCF_MIN_TOOLKIT_VERSION","pid","clear","connect","Buf8","readFile","_pakoAction","dyn_tree","extname","-NoProfile","shell","ndist","rpksBuffer","hcrc","DEVECO_SDK_HOME=","isTTY","EntryAbility","--daemon","isSymbol","\\System32\\WindowsPowerShell\\v1.0\\powershell","chrome://inspect/#devices","hold","result","checkAndGetBundleName","hasReq","return","NONEWITHRSA","PK\b","visibleArguments","input","_tickScheduled","debugger","needTransform","../sdk/default/openharmony/toolchains","localeCompare","runHdcCmdAsync","outputError","getHosDevices","PK","super_","_listeners","getOwnPropertyDescriptors","onwrite","elems","atomicservice","kill","max_chain_length","addHelpText","forward","observe","tag","compressedSize"," to ","toStringTag","message","storeOptionsAsProperties","setDssKey","toLowerCase","_optionValueSources","generateSpk info","build/dist","child_process","promise","replace","head","reading","getUTCMonth","description","Verify integrity failed","toNodejsStream","error: unknown option '","getLegacyProcess","reading or ended","prepareContent","taskkill /pid ","Corrupted zip : compression ","inflateReset","checkSignature","invalid distance too far back","application/zip","const.product.name","randomBytes","_sources","_enablePositionalOptions","legacy listTargets error or no devices found","lookahead","0123456789ABCDEF","_invoke","please open url in browser: ","_helpCommandName","release","slice","WritableState","Launched within ","mkdir error","lastTotal","_actionHandler","dss","isApkSign","execArgv","Obtaining the public key using ","C:\\Windows",".cjs","dssHost","relativeOffsetEndOfZip64CentralDir","-rf","DEFLATE",", browser url: ","state","__esModule","SIGN_MAGIC","test","decoder","errMsg","http://localhost:","optional","ohpm","targets","allowHalfOpen","_final","false","last","ascf/ascf_src/node_modules/@atomicservice/ascf-toolkit/lib","executeCommand","_read","edge","ascf/ascf_build","onFulfilled","CommanderError","subcommandDescription","Extract error:","QUICK_SERVICE_BUILD","ungzip","_createPako","string2buf","download ","finally","_lifeCycleHooks","@default","operands","MAX_SIZE_SPK","The stream '","'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?","Z_NEED_DICT","No rpk file : ","_executableDir","_helper","config","May not write null values to stream","start uninstall pkg under ","passwordDigest","isDefault","cert-utils","ASCF_CONFIG_JSON","memLevel","subcommandTerm","prefinish","readAsArrayBuffer","X-Request-ID","usingTmpDir error","distbits","parseOptions",".{1,","ro.product.model","[object Array]","configurable","a default value for a required argument is never used: '","stat_desc","inherit","init","indexOf","No sign block!","digest","instance","good_match","mandatory","Rsagen-V3.0.1.20190615","CENTRAL_DIRECTORY_END","DATA_DESCRIPTOR","unknown header flags set","unknown","onRejected","requiredOption","close","UTC","usingTmpDir","uncompressedSize","addCommand"," -passout pass:***","util","Bypass","Start","Buf32","usage","contentBuffer","prev","\n(Did you mean ","avail_in","distdyn","_chainOrCallHooks","SHA-256","signPublicKeyPath","127.0.0.1","constructor","--parallel","getOwnPropertySymbols","Set","ERROR: Rpk sign failed!","script","GeneratorFunction","RAWFILE_DIR","fportRmV8","ignoreError"," -check -out ","window_size","conflictsWith","cork","base64","commander.version","_addImplicitHelpCommand","certs","last_flush","DebuggerProcess","allocUnsafeSlow","callback","makeOptionMandatory","writing","openBrowser error, please try later","fport v8 error: ","To add an Option object use addOption() instead of option() or requiredOption()","writeOut","' argument missing","_pako","_tr_tally","_parseCommand",".sspk","ZipFileWorker","was","categories","start exec sign spk","SIGTERM","isLegacy","text/plain","showSuggestionAfterError","realpathSync","binary","AscfDebugger","missingArgument","exit",'"dumpsys activity activities | grep mResumedActivity"',"rportRmCmd","removeChild","utf16le","raw","havedict","http","begin runCmd: ","existsSync","includes","sign files, use remote sign","versionName","extend","entriesCount","build-profile.json5","l_desc","' has already been used.","Build spk ","DIST_PATH","chrome://inspect#devices","signOnline","fportCmd","xflags","view","static","floor","Base64 encoding incomplete: at least 2 bits missing","MutationObserver",".tsx","del","signPkgs","_args","onload","target","Obtain the public key from the ascf.config.json profilePath","remoteV8Port","deveco","dictionary","SIGUSR1","fileCommentStr","versionCode","error: command-argument value '","bufferedRequest","setTimeout","l_buf","array","MD5","_mimeType","resignSpk","addListener","resumeScheduled","No srpk file : ","footer","output","_concatValue","ascf toolkit version is below ","substring","Multi-volumes zip are not supported","compressionMethod","split","READABLE_STREAM","boolean","asNodeBuffer","addArgument","mode","finished","unlink","win32","executableFile","handled","externalFileAttributes","dyn_dtree","isBuf","Calling transform done when ws.length != 0","humanReadableArgName","isFunction","writableHighWaterMark","MozBlobBuilder","_hasImplicitHelpCommand","onmessage","additional","passThroughOptions","getUTCMinutes","product=default","variadic","repack failed: ","runCmd stdout: ","_processArguments","parse","v0.10","comment"," is not found","WebKitMutationObserver","hash.json","warn","dirRecord","pidof","reject","repeat","asText","envVar","checkOffset","bin","getSignatureValueHex","isBoolean","versionType","generateCertificate","writableObjectMode","streamInfo","X509","hvigorClean err","subarray","Obtain the public key from the ascf.config.json publicKeyPath","readableListening","_helpCommandnameAndArgs","readLocalFiles","help","getLegacyDeviceName","isFinished","optionDescription","--help","stringifyByChar","LOCAL_FILE_HEADER","_ascfCliOptions","defaultValueDescription","runningCommand","data","Request timed out","nextTick","2368795paDFQw","Base64","Deflate","longestSubcommandTermLength","Invalid JSON","positiveOptions","getOptionValueSource","Z_NO_FLUSH","extract entry error","getUTCFullYear","_destroy","start exec print fingerprints","summary","corkedRequestsFree","deflate","9229",'"endReadable()" called on non-empty stream',"func","isError","assembleApp","debuglog","heap_max","DEVECO_SDK_HOME","transform","forEach","configureHelp","brk","total_out","add","POST&","delete ascf debugger pid file error","Failed to obtain the cert key: ","last_lit","_optionEx","normalize","mainPkg","afterHelp","extra","startsWith","has","js_app.html","readInt","[object Date]","_executableFile","JSZip can't accept a stream when loading a zip file.","inflateReset2","prefinished","tail","bytesWritten","utf8","error: ","compression","install spk error","sync","extraStreamInfo","toString","stringifyByChunk","Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)",", asked index = ","STORE compression","Utf8DecodeWorker","trim","too many length or distance symbols","optionTerm","flowing","inflateEnd","setIndex",' | grep -v render | grep -v grep"',"version","_executableHandler","ascfDebugger","flush","already has forward","Invalid base64 input, bad content length.","cleanup","/bin/ascf.js","resume","parent","adler","resolve","dirRecords","commander.error","data error","leftOver","charCodeAt","generateAsync","getDeviceId","found devices: ","compressionOptions","env: ","next_out","tryAdbPortReversing","Server has been closed.","extra_len","listen","latin1","_combineFlagAndOptionalValue","readBlockZip64EndOfCentralLocator"," is not supported by this platform","binarystring","visibleOptions","generatedError","avail_out","createElement"," -out ","manifest.json","sign request error: ","ucs-2","sha256","legacy","No device found.","execPath","buffer error","inflateSetDictionary","&appid=","hostname"," ecparam -name secp256r1 -genkey -noout -out ","publicKeyPath","deflateRaw","writable","exitCode","defaultApp","events","statusCode","getOwnPropertyNames","Start to obtain the private key"," -passout pass:","callFulfilled","once","setPrototypeOf","_transform","destType","rawArgs","getHdcPath","start hvigorw --sync, please waiting ...","fportV8","/ascf/ascf_src/app.json","%d{hh:mm:ss.SSS} > %p %c %[%m%]"," is used","type","strm","fatal","nameFromFilename","pipe count=%d opts=%j","@@toStringTag","ASCF_BUILD","fileName","parseAsync","level","terminal","-ArgumentList","nice_match","allocUnsafe","method","error: required option '","user","chunk","handle","SIGHUP","/build-profile.json5","custom","start ohpm clean under ","P12_PATH","getDssKeyId","../tools/platform-tools-darwin/adb","_events","utf8border","addResourceToPkg","hash","pkg","assembleHap within ","../tools/platform-tools-windows/adb.exe","total_in","stop","dosPermissions","getOpensslPath","searched for local subcommand relative to directory '","signtools","_tickAndRepeat"," records in central dir, got ","longestArgumentTermLength","CRYPT_TYPE_RSA_SHA256","ohpmClean err","start assembleApp under ","isNumber","info","onData","pubkey","status","endEmitted","Transform","defaults","Please install openssl or configure PATH.","hos listTargets error or no devices found","Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()","readCentralDir","invalid code lengths set","HVIGOR_USER_HOME","create","prototype","_fromList","_readableState","v1.8.","newBufferFrom","digests","fileComment","5pcFfnK","lineNumber","Socket","http://127.0.0.1:","install","dataIsReady","Usage: ","incompatible version","pkgName","processedArgs","InvalidArgumentError","ENOENT","reduce","cache","request","_helpDescription","--no-","_defaultCommandName","diskWithCentralDirStart","window","conflicts","gzhead","prev_length","isPortReachable","_writableState","percent","BlobBuilder","@@iterator","remotePort","afterTransform","pako inflate (from Nodeca project)","clone","clean","Extracting to "," is not supported by this method","posix","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/","extraFieldsLength"," -nokeys -clcerts -passin pass:*** | ","isEncoding","readEndOfCentral","readableHighWaterMark","This method has been removed in JSZip 3.0, please check the upgrade guide.","modules","handle end","DeviceInfo","_ascfCliProgram","fileLogger","awaitDrain","Can not resolve certificate file: ","Can not resolve base.sspk file.","Buffer","genCert","handle error","fileContentBuffer","DualOptions","rimraf","base.sspk","Arguments","assembleHap","rpk","dirname","runCmdAsync","symbol","getCertBuffer","bufferProcessing","validityDays","Worker ","SIGN_TYPE_FULL_PACKAGE_APK","assign","copyDirectory","Corrupted zip: can't find the ZIP64 end of central directory","nodestream","stopService","isDate","binstring2buf","readInt32LE","arraybuffer","Unknown","Cannot resolve promise with itself"," errors:\n","flow","[object RegExp]","installHap","success","join","aliases","debug-log-file","zero"," for '","isNode","copy","chrome","_checkForMissingMandatoryOptions","disksCount","fileRecord","fportRmCmd","argRequired","/bin/ascf.js is not found for project, please install using package manager first","helpOption","sortSubcommands","getEntryPkgPath","_worker","fportRmWeb","The iterator does not provide a '","generate-spk","tcp:","getUTCHours","createCommand","unixPermissions","fportList","DataLengthProbe for ","compressWorker","ZIP64_CENTRAL_DIRECTORY_LOCATOR","encoding","' argument '","bits","readable","json","指纹格式错误","wsize","-h, --help","deflateResetKeep","WARNING: Your certificate is valid for less than 180 days. Please update it in time.","argChoices","lit_bufsize","hsp","dir","isArray","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","/AppScope/app.json5","invalid window size","commandDescription","NODE_ENV","[native code]","choices: ","isInit","stdout","PATH","getAscfDepDir","getSignData","The packed file is empty.","showHelpAfterError","have","max","utf-8 decode","dssKey","failed to obtain the fingerprint: ","_name","_storeOptionsAsProperties","fromCharCode","ERROR: Your certificate is Invalid.","PENDING","Invalid non-string/buffer chunk","exports","--logging","commander.conflictingOption","createHelp","toolkit","npmUtils","-----BEGIN CERTIFICATE-----\n","SIGUSR2","stringify","resource","incorrect data check","ascf.debugger.","longFlag","w_mask","mimeType","header",":ascf","signSpk","privateKey","error : certificate.pem is not exist!","deviceId","start assembleHap under ","signPwd is null, please configure through cli options, ascf.config.json or env ASCF_SIGN_PWD","Unexpected value for position to addHelpText.\nExpecting one of '","zip64EndOfCentralSize","_helpCommandDescription","decompress","readData","readString","Download failed: ","stream","emitReadable","versions","Adb reverse tcp:","ended","hasOwnProperty","alloc","checkCRC32","freebsd","failed to obtain the private key, please ensure private.pem or ascf-build.p12 under sign",'"`"',"enablePositionalOptions","implies","param","/ascf/ascf_src/ascf.config.json","bl_desc","Get Certificate error!"," unknown (inner file : ","utf8decode","rmdirSync",'"callback" argument must be a function',"application/octet-stream","jszip",".mjs","MSBlobBuilder","good_length","strategy","_scriptPath","decode","enumerable","Failed to verify the signature","-default-signed.","getPid","first parameter to parse must be array or undefined","after","RSA-SHA256","pathname","fileList","pipeOnDrain","presetArg","jsrsasign","false write response, pause","external","dmax","getInstance","Commands:","commandUsage","unref"," cannot be used with ","openBrowser","timeout","pretty","×tamp=","byteAt","GET","' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ","sunos","commander.unknownOption","ascf run err","reader","findExtraFieldUnicodeComment","Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","createServer","needRm","createArgument","start exec resign spk","fillLast","Z_OK","readAndCheckSignature","ascf/ascf_src/package.json","hidden","Invalid base64 input, it looks like a data url.","currentSourceOffset","Rsagen","signchunk","nodebuffer","lencode","getCurrent","__proto__","deviceType","bundleName","bitFlag","getLogger","exitOverride","applyCanBeUsed","preSubcommand","--ps launchMode forceUpdate","' value '","total","fport","_tr_flush_block","optsWithGlobals","undefined","default: ","_showHelpAfterError","tar","js-base64","hookedCommand","isFile","devtoolsFrontendUrl","/Applications/DevEco-Studio.app/Contents/tools","_parseOptionsImplied","static_tree","chunks","utils","hook","executableDir","writecb","assembleSpk within ","inflateResetKeep","CENTRAL_FILE_HEADER","defineProperties","ports:\n","visibleCommands","Z_BUF_ERROR","must be non-object","buildMode","outputHelp callback must return a string or a Buffer","inflateInit","sane","Uninstall not supported.","writeInt32LE","stopView","listeners","ConvertWorker to "," | ","corked","option:","keys","fileBuildPath","queue","startIndex","Buf16","assembleApp err","block_start","tarball","ro.product.name","uncaughtException","writeInt16LE","static_len","_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","abc","build.log","spkName","parse json file error at ","--remove","Obtaining the public Key Using the .p12 File","panel=sources","The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.","transformTo","decompressed","hasUnpiped","outputHelp","isObject","getDevices","match","resume read 0","header crc mismatch","Corrupted zip or bug: expected ","readingMore","Inflate","fportWeb","start debug server url: ","port1","_passThroughOptions","output the version number","then","valueOf","extra_base","startDebugServer","net","copyFileSync","err","1503096rnjFol","_writev","lstatSync","integrity","_getHelpContext","fportWeb get pid error: ","start","ascii","_aliases","push","nlen","isSignature","runCmd exited with code ","Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html","whave","/debugServer/stop","createOption","callRejected","Start ability error","' not specified","toUpperCase","getDevicesCmd","fileNameLength","deprecate","ERROR: The signature configuration file is incorrect, the hostvalue is empty.","streamFiles","bl_count","concat","fill","commander.optionMissingArgument","no sign chunk!","name","stream end","max_code","cmd","object","_findOption","invalid literal/length code","drain","emittedReadable","sign","trimRight","string","install devtools failed, please open chrome://inspect in browser(chrome/edge) to debug","SYSTEMROOT","_transformState","helpInformation","sortOptions","_upstreamEnded","_showSuggestionAfterError","exec repack success, repack package path: ","defineProperty","newBlob","pemBuffer","value","wrapped end","signature","basename","_compressWorker","signPwd","address","30cpXOmx","d_buf","list targets error: ","assembleSpk error","has_stree","getPublicKey","getSignChunk","isDirectory","back","prev_match","start exec repack","function","invalid subCmd, should be ","STORE decompression","getOwnPropertyDescriptor","_checkNumberOfArguments","concat : unsupported type '","inflateRaw","startMode","prependListener","Writable","path","3wcYKDI","Utf8EncodeWorker","bi_valid",".pack_cache","filter","max_length","shortFlag","ReadableState","readCentralPart","prepareNextSource","loadOptions","resolver must be a function","project","zip64ExtensibleData","zip64","getprop","accumulate","buffer","[object Error]","_usage","setEncoding","incorrect header check","call pause flowing=%j","runExecAsync stderr","blob","negate","centralDirSize","Authorization","Signed successfully.","Unexpected value for event passed to hook : '","isString","_tr_init","readBlockEndOfCentral","privateKeyPath","depth","short","Argument must be a number","' is invalid for argument '","CLOUDSOA-HMAC-SHA256 appid=","error: option '","delay","opt_len","asArrayBuffer","stopDebugServer","sign/private.pem","hvigor",', signature="',"copyInheritedSettings","inflateGetHeader","hdc rport tcp:","write","rportCmd","PassThrough","_outputConfiguration","uninstall","_hidden","iterator","parseZIP64ExtraField","createHash","buf2string",".js","startDebugServer error","getPrototypeOf","transforming","hos","POST","_helpFlags","max_chain","generatePkgDef","ASCF_SIGN_PWD","versionMadeBy","openedSource","semver","endsWith","$1\n","writeHead","STORE","checkAndGetCurrent","bundle","Obtain the private key from the ascf.config.json profilePath","DevEco Studio","match_start"," -inkey ","abs","data_length","sign/certificate.pem","pipe resume","Argument","isBuffer","14009vVNbla","defaultValue","--targets","deflateInit","setOptionValue","msg","[HOS] ","done","isUndefined","signDataBufList","projectRoot","node.exe","appendChild","MessageChannel","Server running at http://localhost:","FULFILLED",", please upgrade ascf toolkit or hvigor plugin"," -in ","homedir","DataWorker","verifySignHandler","pipes","_helpLongFlag","mkdirSync","writev","pending"," info --json ","getDebugUrl ","pipesCount","AscfToolkit","_dict_set","centralDirOffset","execSync","Invalid Password.\nThe password must contain at least 8 characters and include any two of the following:\n1. Lowercase letters: a-z\n2. Uppercase letters : A-Z\n3. Digits : 0-9\n4. Special characters : `~!@#$%^&*()-_=+\\|[{}];:'\",<.>/?","module","_tick","diskNumberStart","_dispatchSubcommand","log4js","needDrain","flattenChunks","deflateInit2","optimizedBinaryString","highWaterMark","commander.missingArgument","fportRm",", expected ","start installDeps under ","hdc rport error, maybe find remote port error","argumentTerm","commands","currentFile","program","env","emit","pendingcb","====","oh_modules","long","lastNeed","Normal","readDate","map","getOutHelpWidth","build/quick_service_build","offset","build/default/outputs/default/","KEYUTIL","(error)","writeencoding","destroyed","readExtraFields","number","Readable","Invalid spk file.","need dictionary"," error: ","dist","cert","round","allBuffers","-NonInteractive","start install start spk under ","Failed to obtain the private key: ","heap","setOptionValueWithSource","diskWithZip64CentralDirStart","_bindStream","getResources","generateSpk err","writeFileSync","Reached max. number of files","deleteDirectory","command","start assembleSpk under ","preAction","allocBuffer","writechunk","obj",", timestamp=","encode","checkZipBuffer","'. ","signatures","setDefaultEncoding","all","META-INF/CERT","/../tools/",".spk","2688678wwQANN","wbits","choices","checkSupport","_chainOrCall","code","unlinkSync","). Corrupted zip ?","JOINT_TAG","subPkgs","genP12","get device name error","fportListCmd","REJECTED","extra_bits","Cannot pipe, not readable","readFileSync","lendyn"," -nokeys -clcerts -passin pass:","_pakoOptions"," ec -in ","byteLength","doLog","get","RPK Sig Block 42","Failed to remove cacheDir:","registerPrevious","incorrect length check","isNull","getContentWorker","/js_app.html","zipComment","hash_mask","displayName","--sync","crossAtomicService","_decompressWorker","work","_argsDescription","getBlob","UNIX","extraArgs","BEGIN_TAG","runCmd","padWidth","encodeFileName","production","onerror","-V, --version","ending","DOS","createTextNode","sha512","gzip","Help","deflateSetDictionary","_description","failed to obtain the public key, please ensure certificate.pem or ascf-build.p12 under sign","error: missing required argument '","getOptionValue","Map","signZipResource","checkIndex","src/main/resources/rawfile","signdata","SlowBuffer","_versionOptionName","wrapped data","CERT_HEAD","pause","crypto","adapter","Get File Certificate Error!","begin runExecAsync","_checkForConflictingOptions"," tcp:","installDeps err","distcode","asBinary","implied","v8LocalPort","downloadAndExtract ","assembleAndInstallHap","insufficient memory","spawn","signData","profilePath","propName","_stream","inflate","beforeAll","Object","getDevicesInner","splitOptionFlags","lastIndexOfSignature","DebugServer","writelen","required","args","getBuffer","getDssHost","DEP0003","finish","writeErr","mkdir","Z_FINISH","setDssConfig","display help for command","beforeHelp","package","pkcs12","Allowed choices are ","columnNumber","deflateSetHeader","hash_size","columns","file error","hvigor/hvigor-config.json5","bundleName or versionCode is not configured","clearResource","createHmac","formatHexString","commander.excessArguments","get ascf dep dir failed, fallback to use global ascf","hapPath is not exists","outcome","[object File]","ascf -V","start ability under ","configure","cli","time","readdirSync","_hasHelpOption","Z_STREAM_END","disableSubpackages","SIGN_TYPE_FULL_PACKAGE","read","commander.help","[options]","Options:","createWorkerFrom","getNotBefore","start ability error","GetHvigorDepsCachesDir","negativeOptions","lastChar","workspace","npm.cmd","No output type specified.","getEntryPkgPath error, build-profile.json5 file modules is null","formatHelp","start install pkg under ","_dataBinary","module=","Cannot call a class as a function","call .storeOptionsAsProperties() before adding options","uint8array","charAt","argParser","MAX_VALUE_16BITS","Method not allowed","}([\\s]|$)|[^\\s]+?([\\s]|$)","matches"," x509 -out ","debug","set","installDeps","startView","substr","d_desc","port","next_in","chunkSize","w_bits","stream error","APK Sig Block 42","rport","_chainOrCallSubCommandHook","parseArg","--disable-web-security","arraySet","preset","keyId","ucs2","Obtain the private key from the ascf.config.json privateKeyPath","Server error:","waiting download and install package ...","fport error: ","[object Generator]","createSign","isPaused","Can not resolve private key file: ","unknown compression method","', '","encryptPassword","hash_bits","command:*","objectMode","AdbBuilder","shrinkBuf","removeListener","otherCallFulfilled","Illegal character at offset ","max_lazy","platform","file","(outputHelp)"," error","EventEmitter","_flush"," exists","dualOptions","--inspect","getDeviceType","fileCommentLength","pending_buf","lenbits","data_type","text","date","--no-daemon","3.7.1","cur","' from env '","darwin","inspect","combineFlagAndOptionalValue","parse json error","must be an array"," bytes.","Obtain the private key using the p12 file path specified by the parameter","unarmor"," /T /F","pop","mkdirsSync","DebugPortManager","CRC32","ondata","valueFromOption","cpList","hasInstance","longestOptionTermLength","commander.executeSubCommandAsync","postAction","request ","cancelled","match_length","internalStream","applyFromCharCode","_write","createGunzip","suggestSimilar","SIGN_MAGIC_APK","\n(Did you mean one of ","onreadystatechange","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","NO_DEVICE_ERROR","allowExcessArguments","node","bind","StringDecoder","meta","com.atomicservice.","_data","The selected Atomic Service is not running properly. Please start the Atomic Service first.","ASCF_DEVECO_SDK_HOME"," is not supported","File not found","lock","The package in the app.json file cannot be empty and must start with com.atomicservice.","files","cacheDir removed successfully","wnext","Your certificate is Invalid.",'`""',"toISOString","WebKitBlobBuilder","hdc","index","isStream","SIGINT","getDevEcoSdkHome","optionMissingArgument","need readable","(close)","--incremental","gzindex","End of data reached (data length = ","uninstall hap error","centralDirRecordsOnThisDisk","devtools://devtools/bundled/js_app.html","min","useUTF8","pipe","bufferedRequestCount","lastDebugServer","### Sign Failed, zip file error: ","crc32","handle ","-config ","insert","454724weSwRT","ERROR: Failed to obtain the signature configuration information.","unknownOption","ascf","prepareAssemble","read: emitReadable","devices","_version","encodeURL","%d{yyyy-MM-dd hh:mm:ss.SSS} > %p %c %m","Hex encoding incomplete: 4 bits missing","skip","random","Z_SYNC_FLUSH","assembleHap err","wrapped _read","hdc.exe","postMessage",".ts","zipPlatform","getBufferSha256","invalid distance code","abort","default","pkgUrl","/debugServer/status","Can not resolve spk file: ","lens","Argument must not be a number","_summary","find","helpWidth","142DkgJIt","parserZip","ins_h","splice","decodeFileName","otherCallRejected","isLocked","unexpected parse option { from: '"," but got ","emit readable","generateInternalStream","call","_prepareUserArgs","max_lazy_match","start startAbility under ","readCertPEM","_exitCallback","BuildProcess","mkdirSync err : ","stopping","Can't read the data of '","this hasn't been initialised - super() hasn't been called","[object Blob]","onEnd","sections","SIGN_TYPE_FILE_LIST","ERROR_MSG","getDebugees error","entry","com.enjoy.now.hmos","getOpensslConfig","build","getPortManager","checkValidity","sData","extraFields","Duplex","stderr","some","error","shift","installAndRunDebugPkg","from","throw","attributeName","onlineConfig","\0\0\0\0","centralDirRecords"," failed","open","_optionValues","assembleHsp","log","setTyped","runHdcCmd","options","Obtaining a public Key using a Path","reason:","_helpShortFlag","arguments","getDeviceName","_exit","getUTCSeconds","_helpConfiguration","inherits","isEncrypted","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","nestedError","unknownCommand","utf-8"," MB.","--ps ascfDebugger brk","killed","hash_shift","Stream","Uint8Array","invalid distances set","### Sign Failed, cannot open file: ","fileNameStr","setImmediate","generateWorker","catch","--list","unhandledRejection","getSignInfo","handleUTF8","certFilePath","option","option '","Debug Server has been stopped","Please check the following: 1.The device is connected to the computer. 2. The screen is on. 3. Check whether the debugging port is occupied.","pako deflate (from Nodeca project)","zlib","_parseOptionsEnv","handle success","unpipe","document","statSync","construct","Obtaining the private key is complete.","No devices found, please connect to phone","[command]","dyn_ltree","generate-keypair","Crc32Probe","utf-16le","--es","electron","application/json","heap_len","inflateInfo"," -> ","signConfig","_allowExcessArguments","_excessArguments","len","inflateInit2","getTypeOf","native","ascfVerCmd","ascf/ascf_src/ascf.config.json","bl_tree","check","cachedir","Signing failed: ","3695274lftWCp"," -passin pass:","...","argument","getLegacyDevices","final","flags","msedge","app","bi_buf","google-chrome","host","reverse",' -days 3650 -sha256 -subj "/CN=ASCF/OU=/O=/L=/ST=/C=CN" ',"Failed to generate cert","match_available","Unknown encoding: ","wrap","afterAllHelp","optionEnv:","undestroy"," req -new -x509 -key ","Failed to generate p12","invalid code -- missing end-of-block","sort","ncode","browser","lastBufferedRequest","subpackages","isRegExp","@@toPrimitive must return a primitive value.","errorEmitted","linux","_internalType","microsoft edge","CERT_END","google chrome","buildMode="," \f\n\r\t \u2028\u2029","alias","windowBits","Promise","onend","ZIP64_CENTRAL_DIRECTORY_END"," is not available, try find available","****","next","Corrupted zip : CRC32 mismatch","getSignDigestOnline","DeviceManager","help [command]","magic","port ","_findCommand","getAscfDepDir under ","608744BRqelz"];return(_0x1f8b=function(){return e})()}function _Ah(){var e=_0x139f27;return(_Ah=_asyncToGenerator(_regenerator().m(function e(t,n,i,a){var o;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return e.p=0,je[r(771)](r(1041)),e.n=1,_h(t,n,i,a);case 1:je[r(771)]("Signed successfully."),e.n=3;break;case 2:e.p=2,o=e.v,je[r(727)](r(1888)+o),process[r(2293)](-1);case 3:return e.a(2)}},e,null,[[0,2]])})))[e(1988)](this,arguments)}function xh(e,r){return _xh[_0x139f27(1988)](this,arguments)}function _xh(){var e=_0x139f27;return(_xh=_asyncToGenerator(_regenerator().m(function e(t,n){var i;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return e.p=0,je.info("start exec verify sign"),e.n=1,wh(t,n);case 1:je.info("Signature verification succeeded."),e.n=3;break;case 2:e.p=2,i=e.v,je[r(771)]("Failed to verify the signature: ",i),process[r(2293)](-1);case 3:return e.a(2)}},e,null,[[0,2]])})))[e(1988)](this,arguments)}function Dh(e,r,t,n,i){return _Dh[_0x139f27(1988)](this,arguments)}function _Dh(){return(_Dh=_asyncToGenerator(_regenerator().m(function e(t,n,i,a,o){var s;return _regenerator().w(function(e){for(var r=_0x3872;;)switch(e.p=e.n){case 0:return e.p=0,je.info(r(1220)),e.n=1,kh(t,n,i,a,o);case 1:s=e.v,je[r(771)](r(1199)+s),e.n=3;break;case 2:e.p=2,s=e.v,je[r(727)](r(542)+s),process.exit(-1);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function Oh(e){var r=_0x139f27;try{je[r(771)](r(597));var t=Eh(e),n=bh(t);je.info(r(1990)+n)}catch(e){je[r(727)](r(939)+e),process[r(2293)](-1)}}process.on(_0x139f27(1113),function(e){je[_0x139f27(1803)]("ASCF uncaught error",e)}),process.on(_0x139f27(1847),function(e,r){var t=_0x139f27;je.error("ASCF unhandled rejection at:",r,t(1821),e)}),module[_0x139f27(946)]={signPkg:Ch,resignPkg:Ah,verifySign:xh,repackHandler:Dh,printFp:Oh,genCert:vh,genP12:yh};
|
|
1
|
+
function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _regenerator(){var p,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var i,a,o,s,u,c,l,h,f,t=t&&t.prototype instanceof m?t:m,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(i=e,a=n,l=r||[],h=!1,f={p:c=0,n:0,v:p,a:d,f:d.bind(p,4),d:function(e,t){return o=e,s=0,u=p,f.n=t,g}},function(e,t,n){if(1<c)throw TypeError("Generator is already running");for(h&&1===t&&d(t,n),s=t,u=n;(_=s<2?p:u)||!h;){o||(s?s<3?(1<s&&(f.n=-1),d(s,u)):f.n=u:f.v=u);try{if(c=2,o){if(_=o[e=s?e:"next"]){if(!(_=_.call(o,u)))throw TypeError("iterator result is not an object");if(!_.done)return _;u=_.value,s<2&&(s=0)}else 1===s&&(_=o.return)&&_.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),s=1);o=p}else if((_=(h=f.n<0)?u:i.call(a,f))!==g)break}catch(e){o=p,s=1,u=e}finally{c=1}}return{value:_,done:h}}),!0),t;function d(e,t){for(s=e,u=t,_=0;!h&&c&&!n&&_<l.length;_++){var n,r=l[_],i=f.p,a=r[2];3<e?(n=a===t)&&(u=r[(s=r[4])?5:s=3],r[4]=r[5]=p):r[0]<=i&&((n=e<2&&i<r[1])?(s=0,f.v=t,f.n=r[1]):i<a&&(n=e<3||r[0]>t||a<t)&&(r[4]=e,r[5]=t,f.n=a,s=0))}if(n||1<e)return g;throw h=!0,t}}var g={};function m(){}function i(){}function a(){}var _=Object.getPrototypeOf,e=[][t]?_(_([][t]())):(_regeneratorDefine2(_={},t,function(){return this}),_),o=a.prototype=m.prototype=Object.create(e);function s(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e.prototype=Object.create(o),e}return _regeneratorDefine2(o,"constructor",i.prototype=a),_regeneratorDefine2(a,"constructor",i),_regeneratorDefine2(a,n,i.displayName="GeneratorFunction"),_regeneratorDefine2(o),_regeneratorDefine2(o,n,"Generator"),_regeneratorDefine2(o,t,function(){return this}),_regeneratorDefine2(o,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:r,m:s}})()}function _regeneratorDefine2(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,t,n,r){function i(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(s){return function(){var e=this,o=arguments;return new Promise(function(t,n){var r=s.apply(e,o);function i(e){asyncGeneratorStep(r,t,n,i,a,"next",e)}function a(e){asyncGeneratorStep(r,t,n,i,a,"throw",e)}i(void 0)})}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _construct(e,t,n){var r;return _isNativeReflectConstruct()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&_setPrototypeOf(t,n.prototype),t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _createForOfIteratorHelper(e,t){var n,r,i,a,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return i=!(r=!0),{s:function(){o=o.call(e)},n:function(){var e=o.next();return r=e.done,e},e:function(e){i=!0,n=e},f:function(){try{r||null==o.return||o.return()}finally{if(i)throw n}}};if(Array.isArray(e)||(o=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),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 n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Lt=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},Pe=Lt(function(c,e){function t(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}}function r(t,n,r,i){if(n&&"object"==_typeof(n)||"function"==typeof n){var a,o=_createForOfIteratorHelper(y(n));try{for(o.s();!(a=o.n()).done;)(()=>{var e=a.value;j.call(t,e)||e===r||s(t,e,{get:function(){return n[e]},enumerable:!(i=_(n,e))||i.enumerable})})()}catch(e){o.e(e)}finally{o.f()}}return t}function n(e,t,n){return n=null!=e?h(B(e)):{},r(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)}var i,h=Object.create,s=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,B=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,b=t(function(e){_inherits(i,_wrapNativeSuper(Error));var t=_createClass(i),n=(_inherits(r,t),_createClass(r));function r(e){return _classCallCheck(this,r),e=_callSuper(this,r,[1,"commander.invalidArgument",e]),Error.captureStackTrace(_assertThisInitialized(e),e.constructor),e.name=e.constructor.name,e}function i(e,t,n){return _classCallCheck(this,i),n=_callSuper(this,i,[n]),Error.captureStackTrace(_assertThisInitialized(n),n.constructor),n.name=n.constructor.name,n.code=t,n.exitCode=e,n.nestedError=void 0,n}e.CommanderError=t,e.InvalidArgumentError=n}),w=t(function(e){var r=b().InvalidArgumentError,t=_createClass(function e(t,n){switch(_classCallCheck(this,e),this.description=n||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t}3<this._name.length&&"..."===this._name.slice(-3)&&(this.variadic=!0,this._name=this._name.slice(0,-3))},[{key:"name",value:function(){return this._name}},{key:"_concatValue",value:function(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}},{key:"default",value:function(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}},{key:"argParser",value:function(e){return this.parseArg=e,this}},{key:"choices",value:function(e){var n=this;return this.argChoices=e.slice(),this.parseArg=function(e,t){if(n.argChoices.includes(e))return n.variadic?n._concatValue(e,t):e;throw new r("Allowed choices are ".concat(n.argChoices.join(", "),"."))},this}},{key:"argRequired",value:function(){return this.required=!0,this}},{key:"argOptional",value:function(){return this.required=!1,this}}]);e.Argument=t,e.humanReadableArgName=function(e){var t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}}),k=t(function(e){var n=w().humanReadableArgName,t=_createClass(function e(){_classCallCheck(this,e),this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1},[{key:"visibleCommands",value:function(e){var t,n,r=e.commands.filter(function(e){return!e._hidden});return e._hasImplicitHelpCommand()&&(n=(t=_slicedToArray(e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),3))[1],t=t[2],(n=e.createCommand(n).helpOption(!1)).description(e._helpCommandDescription),t&&n.arguments(t),r.push(n)),this.sortSubcommands&&r.sort(function(e,t){return e.name().localeCompare(t.name())}),r}},{key:"visibleOptions",value:function(e){var n,t=e.options.filter(function(e){return!e.hidden}),r=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);return(r||i)&&(r=r?i?e.createOption(e._helpFlags,e._helpDescription):e.createOption(e._helpShortFlag,e._helpDescription):e.createOption(e._helpLongFlag,e._helpDescription),t.push(r)),this.sortOptions&&(n=function(e){return e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"")},t.sort(function(e,t){return n(e).localeCompare(n(t))})),t}},{key:"visibleArguments",value:function(t){return t._argsDescription&&t._args.forEach(function(e){e.description=e.description||t._argsDescription[e.name()]||""}),t._args.find(function(e){return e.description})?t._args:[]}},{key:"subcommandTerm",value:function(e){var t=e._args.map(function(e){return n(e)}).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}},{key:"optionTerm",value:function(e){return e.flags}},{key:"argumentTerm",value:function(e){return e.name()}},{key:"longestSubcommandTermLength",value:function(e,n){return n.visibleCommands(e).reduce(function(e,t){return Math.max(e,n.subcommandTerm(t).length)},0)}},{key:"longestOptionTermLength",value:function(e,n){return n.visibleOptions(e).reduce(function(e,t){return Math.max(e,n.optionTerm(t).length)},0)}},{key:"longestArgumentTermLength",value:function(e,n){return n.visibleArguments(e).reduce(function(e,t){return Math.max(e,n.argumentTerm(t).length)},0)}},{key:"commandUsage",value:function(e){for(var t=e._name,n=(e._aliases[0]&&(t=t+"|"+e._aliases[0]),""),r=e.parent;r;r=r.parent)n=r.name()+" "+n;return n+t+" "+e.usage()}},{key:"commandDescription",value:function(e){return e.description()}},{key:"subcommandDescription",value:function(e){return e.summary()||e.description()}},{key:"optionDescription",value:function(e){var t=[];return e.argChoices&&t.push("choices: ".concat(e.argChoices.map(function(e){return JSON.stringify(e)}).join(", "))),void 0!==e.defaultValue&&(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push("default: ".concat(e.defaultValueDescription||JSON.stringify(e.defaultValue))),void 0!==e.presetArg&&e.optional&&t.push("preset: ".concat(JSON.stringify(e.presetArg))),void 0!==e.envVar&&t.push("env: ".concat(e.envVar)),0<t.length?"".concat(e.description," (").concat(t.join(", "),")"):e.description}},{key:"argumentDescription",value:function(e){var t=[];return e.argChoices&&t.push("choices: ".concat(e.argChoices.map(function(e){return JSON.stringify(e)}).join(", "))),void 0!==e.defaultValue&&t.push("default: ".concat(e.defaultValueDescription||JSON.stringify(e.defaultValue))),0<t.length?(t="(".concat(t.join(", "),")"),e.description?"".concat(e.description," ").concat(t):t):e.description}},{key:"formatHelp",value:function(e,n){var r=n.padWidth(e,n),i=n.helpWidth||80;function t(e,t){return t?(t="".concat(e.padEnd(r+2)).concat(t),n.wrap(t,i-2,r+2)):e}function a(e){return e.join("\n").replace(/^/gm," ".repeat(2))}var o=["Usage: ".concat(n.commandUsage(e)),""],s=n.commandDescription(e),s=(0<s.length&&(o=o.concat([s,""])),n.visibleArguments(e).map(function(e){return t(n.argumentTerm(e),n.argumentDescription(e))})),s=(0<s.length&&(o=o.concat(["Arguments:",a(s),""])),n.visibleOptions(e).map(function(e){return t(n.optionTerm(e),n.optionDescription(e))})),s=(0<s.length&&(o=o.concat(["Options:",a(s),""])),n.visibleCommands(e).map(function(e){return t(n.subcommandTerm(e),n.subcommandDescription(e))}));return(o=0<s.length?o.concat(["Commands:",a(s),""]):o).join("\n")}},{key:"padWidth",value:function(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}},{key:"wrap",value:function(e,t,n){var r,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:40;return e.match(/[\n]\s+/)||(t=t-n)<i?e:(i=e.slice(0,n),e=e.slice(n),r=" ".repeat(n),n=new RegExp(".{1,"+(t-1)+"}([\\s]|$)|[^\\s]+?([\\s]|$)","g"),i+(e.match(n)||[]).map(function(e,t){return"\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),(0<t?r:"")+e.trimRight()}).join("\n"))}}]);e.Help=t}),S=t(function(e){var r=b().InvalidArgumentError,t=_createClass(function e(t,n){_classCallCheck(this,e),this.flags=t,this.description=n||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;n=i(t);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0},[{key:"default",value:function(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}},{key:"preset",value:function(e){return this.presetArg=e,this}},{key:"conflicts",value:function(e){return this.conflictsWith=this.conflictsWith.concat(e),this}},{key:"implies",value:function(e){return this.implied=Object.assign(this.implied||{},e),this}},{key:"env",value:function(e){return this.envVar=e,this}},{key:"argParser",value:function(e){return this.parseArg=e,this}},{key:"makeOptionMandatory",value:function(){return this.mandatory=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"hideHelp",value:function(){return this.hidden=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"_concatValue",value:function(e,t){return t!==this.defaultValue&&Array.isArray(t)?t.concat(e):[e]}},{key:"choices",value:function(e){var n=this;return this.argChoices=e.slice(),this.parseArg=function(e,t){if(n.argChoices.includes(e))return n.variadic?n._concatValue(e,t):e;throw new r("Allowed choices are ".concat(n.argChoices.join(", "),"."))},this}},{key:"name",value:function(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}},{key:"attributeName",value:function(){return this.name().replace(/^no-/,"").split("-").reduce(function(e,t){return e+t[0].toUpperCase()+t.slice(1)})}},{key:"is",value:function(e){return this.short===e||this.long===e}},{key:"isBoolean",value:function(){return!this.required&&!this.optional&&!this.negate}}]),n=_createClass(function e(t){var n=this;_classCallCheck(this,e),this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(function(e){(e.negate?n.negativeOptions:n.positiveOptions).set(e.attributeName(),e)}),this.negativeOptions.forEach(function(e,t){n.positiveOptions.has(t)&&n.dualOptions.add(t)})},[{key:"valueFromOption",value:function(e,t){var n=t.attributeName();return!this.dualOptions.has(n)||(n=this.negativeOptions.get(n).presetArg,t.negate===((void 0!==n&&n)===e))}}]);function i(e){var t,e=e.split(/[ |,]+/);return 1<e.length&&!/^[[<]/.test(e[1])&&(t=e.shift()),e=e.shift(),!t&&/^-[^-]$/.test(e)&&(t=e,e=void 0),{shortFlag:t,longFlag:e}}e.Option=t,e.splitOptionFlags=i,e.DualOptions=n}),H=t(function(e){e.suggestSimilar=function(r,e){if(!e||0===e.length)return"";e=Array.from(new Set(e));var t=r.startsWith("--"),i=(t&&(r=r.slice(2),e=e.map(function(e){return e.slice(2)})),[]),a=3;return e.forEach(function(e){var t,n;e.length<=1||(t=((e,t)=>{if(3<Math.abs(e.length-t.length))return Math.max(e.length,t.length);for(var n=[],r=0;r<=e.length;r++)n[r]=[r];for(var i=0;i<=t.length;i++)n[0][i]=i;for(var a=1;a<=t.length;a++)for(var o=1;o<=e.length;o++){var s=1,s=e[o-1]===t[a-1]?0:1;n[o][a]=Math.min(n[o-1][a]+1,n[o][a-1]+1,n[o-1][a-1]+s),1<o&&1<a&&e[o-1]===t[a-2]&&e[o-2]===t[a-1]&&(n[o][a]=Math.min(n[o][a],n[o-2][a-2]+1))}return n[e.length][t.length]})(r,e),.4<((n=Math.max(r.length,e.length))-t)/n&&(t<a?(a=t,i=[e]):t===a&&i.push(e)))}),i.sort(function(e,t){return e.localeCompare(t)}),1<(i=t?i.map(function(e){return"--".concat(e)}):i).length?"\n(Did you mean one of ".concat(i.join(", "),"?)"):1===i.length?"\n(Did you mean ".concat(i[0],"?)"):""}}),U=t(function(e){var n,t=require("events").EventEmitter,l=require("child_process"),h=require("path"),f=require("fs"),d=require("process"),r=w(),i=r.Argument,a=r.humanReadableArgName,p=b().CommanderError,o=k().Help,r=S(),s=r.Option,u=r.splitOptionFlags,c=r.DualOptions,g=H().suggestSimilar,r=(_inherits(m,t),_createClass(m,[{key:"copyInheritedSettings",value:function(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}},{key:"command",value:function(e,t,n){"object"==_typeof(t)&&null!==t&&(n=t,t=null);var n=n||{},e=_slicedToArray(e.match(/([^ ]+) *(.*)/),3),r=e[1],e=e[2],r=this.createCommand(r);return t&&(r.description(t),r._executableHandler=!0),n.isDefault&&(this._defaultCommandName=r._name),r._hidden=!(!n.noHelp&&!n.hidden),r._executableFile=n.executableFile||null,e&&r.arguments(e),this.commands.push(r),r.parent=this,r.copyInheritedSettings(this),t?this:r}},{key:"createCommand",value:function(e){return new m(e)}},{key:"createHelp",value:function(){return Object.assign(new o,this.configureHelp())}},{key:"configureHelp",value:function(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}},{key:"configureOutput",value:function(e){return void 0===e?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}},{key:"showHelpAfterError",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return this._showHelpAfterError=e="string"!=typeof e?!!e:e,this}},{key:"showSuggestionAfterError",value:function(){return this._showSuggestionAfterError=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"addCommand",value:function(e,t){if(e._name)return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this;throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()")}},{key:"createArgument",value:function(e,t){return new i(e,t)}},{key:"argument",value:function(e,t,n,r){e=this.createArgument(e,t);return"function"==typeof n?e.default(r).argParser(n):e.default(n),this.addArgument(e),this}},{key:"arguments",value:function(e){var t=this;return e.split(/ +/).forEach(function(e){t.argument(e)}),this}},{key:"addArgument",value:function(e){var t=this._args.slice(-1)[0];if(t&&t.variadic)throw new Error("only the last argument can be variadic '".concat(t.name(),"'"));if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw new Error("a default value for a required argument is never used: '".concat(e.name(),"'"));return this._args.push(e),this}},{key:"addHelpCommand",value:function(e,t){return!1===e?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,"string"==typeof e&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}},{key:"_hasImplicitHelpCommand",value:function(){return void 0===this._addImplicitHelpCommand?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}},{key:"hook",value:function(e,t){var n=["preSubcommand","preAction","postAction"];if(n.includes(e))return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this;throw new Error("Unexpected value for event passed to hook : '".concat(e,"'.\nExpecting one of '").concat(n.join("', '"),"'"))}},{key:"exitOverride",value:function(e){return this._exitCallback=e||function(e){if("commander.executeSubCommandAsync"!==e.code)throw e},this}},{key:"_exit",value:function(e,t,n){this._exitCallback&&this._exitCallback(new p(e,t,n)),d.exit(e)}},{key:"action",value:function(n){var r=this;return this._actionHandler=function(e){var t=r._args.length,e=e.slice(0,t);return r._storeOptionsAsProperties?e[t]=r:e[t]=r.opts(),e.push(r),n.apply(r,e)},this}},{key:"createOption",value:function(e,t){return new s(e,t)}},{key:"addOption",value:function(i){function n(e,t,n){null==e&&void 0!==i.presetArg&&(e=i.presetArg);var r=a.getOptionValue(o);if(null!==e&&i.parseArg)try{e=i.parseArg(e,r)}catch(e){throw"commander.invalidArgument"===e.code&&(t="".concat(t," ").concat(e.message),a.error(t,{exitCode:e.exitCode,code:e.code})),e}else null!==e&&i.variadic&&(e=i._concatValue(e,r));null==e&&(e=!i.negate&&(!(!i.isBoolean()&&!i.optional)||"")),a.setOptionValueWithSource(o,e,n)}var e,a=this,t=i.name(),o=i.attributeName();i.negate?(e=i.long.replace(/^--no-/,"--"),this._findOption(e)||this.setOptionValueWithSource(o,void 0===i.defaultValue||i.defaultValue,"default")):void 0!==i.defaultValue&&this.setOptionValueWithSource(o,i.defaultValue,"default"),this.options.push(i);return this.on("option:"+t,function(e){var t="error: option '".concat(i.flags,"' argument '").concat(e,"' is invalid.");n(e,t,"cli")}),i.envVar&&this.on("optionEnv:"+t,function(e){var t="error: option '".concat(i.flags,"' value '").concat(e,"' from env '").concat(i.envVar,"' is invalid.");n(e,t,"env")}),this}},{key:"_optionEx",value:function(e,t,n,r,i){if("object"==_typeof(t)&&t instanceof s)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");var a,t=this.createOption(t,n);return t.makeOptionMandatory(!!e.mandatory),"function"==typeof r?t.default(i).argParser(r):r instanceof RegExp?(a=r,r=function(e,t){e=a.exec(e);return e?e[0]:t},t.default(i).argParser(r)):t.default(r),this.addOption(t)}},{key:"option",value:function(e,t,n,r){return this._optionEx({},e,t,n,r)}},{key:"requiredOption",value:function(e,t,n,r){return this._optionEx({mandatory:!0},e,t,n,r)}},{key:"combineFlagAndOptionalValue",value:function(){return this._combineFlagAndOptionalValue=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"allowUnknownOption",value:function(){return this._allowUnknownOption=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"allowExcessArguments",value:function(){return this._allowExcessArguments=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"enablePositionalOptions",value:function(){return this._enablePositionalOptions=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this}},{key:"passThroughOptions",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];if(this._passThroughOptions=!!e,this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}},{key:"storeOptionsAsProperties",value:function(){if(this._storeOptionsAsProperties=!!(!(0<arguments.length&&void 0!==arguments[0])||arguments[0]),this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}},{key:"getOptionValue",value:function(e){return(this._storeOptionsAsProperties?this:this._optionValues)[e]}},{key:"setOptionValue",value:function(e,t){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this}},{key:"setOptionValueWithSource",value:function(e,t,n){return this.setOptionValue(e,t),this._optionValueSources[e]=n,this}},{key:"getOptionValueSource",value:function(e){return this._optionValueSources[e]}},{key:"_prepareUserArgs",value:function(e,t){if(void 0!==e&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");var n;switch(t=t||{},void 0===e&&(e=d.argv,d.versions)&&d.versions.electron&&(t.from="electron"),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":n=d.defaultApp?(this._scriptPath=e[1],e.slice(2)):e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error("unexpected parse option { from: '".concat(t.from,"' }"))}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}},{key:"parse",value:function(e,t){e=this._prepareUserArgs(e,t);return this._parseCommand([],e),this}},{key:"parseAsync",value:(n=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=this._prepareUserArgs(t,n),e.n=1,this._parseCommand([],r);case 1:return e.a(2,this)}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"_executeSubCommand",value:function(n,e){e=e.slice();var r=[".js",".ts",".tsx",".mjs",".cjs"];function t(e,t){var n=h.resolve(e,t);return f.existsSync(n)?n:!r.includes(h.extname(t))&&(e=r.find(function(e){return f.existsSync("".concat(n).concat(e))}))?"".concat(n).concat(e):void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();var i,a,o,s=n._executableFile||"".concat(this._name,"-").concat(n._name),u=this._executableDir||"";if(this._scriptPath){try{i=f.realpathSync(this._scriptPath)}catch(e){i=this._scriptPath}u=h.resolve(h.dirname(i),u)}u&&((i=t(u,s))||n._executableFile||!this._scriptPath||(a=h.basename(this._scriptPath,h.extname(this._scriptPath)))!==this._name&&(i=t(u,"".concat(a,"-").concat(n._name))),s=i||s),a=r.includes(h.extname(s)),(o="win32"!==d.platform?a?(e.unshift(s),e=y(d.execArgv).concat(e),l.spawn(d.argv[0],e,{stdio:"inherit"})):l.spawn(s,e,{stdio:"inherit"}):(e.unshift(s),e=y(d.execArgv).concat(e),l.spawn(d.execPath,e,{stdio:"inherit"}))).killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(function(e){d.on(e,function(){!1===o.killed&&null===o.exitCode&&o.kill(e)})});var c=this._exitCallback;c?o.on("close",function(){c(new p(d.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):o.on("close",d.exit.bind(d)),o.on("error",function(e){var t;if("ENOENT"===e.code)throw t=u?"searched for local subcommand relative to directory '".concat(u,"'"):"no directory for search for local subcommand, use .executableDir() to supply a custom directory",t="'".concat(s,"' does not exist\n - if '").concat(n._name,"' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ").concat(t),new Error(t);if("EACCES"===e.code)throw new Error("'".concat(s,"' not executable"));c?((t=new p(1,"commander.executeSubCommandAsync","(error)")).nestedError=e,c(t)):d.exit(1)}),this.runningCommand=o}},{key:"_dispatchSubcommand",value:function(e,t,n){var r=this,i=this._findCommand(e);return i||this.help({error:!0}),e=this._chainOrCallSubCommandHook(void 0,i,"preSubcommand"),this._chainOrCall(e,function(){if(!i._executableHandler)return i._parseCommand(t,n);r._executeSubCommand(i,t.concat(n))})}},{key:"_checkNumberOfArguments",value:function(){var n=this;this._args.forEach(function(e,t){e.required&&null==n.args[t]&&n.missingArgument(e.name())}),!(0<this._args.length&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}},{key:"_processArguments",value:function(){function r(t,n,r){var e=n;if(null!==n&&t.parseArg)try{e=t.parseArg(n,r)}catch(e){throw"commander.invalidArgument"===e.code&&(r="error: command-argument value '".concat(n,"' is invalid for argument '").concat(t.name(),"'. ").concat(e.message),i.error(r,{exitCode:e.exitCode,code:e.code})),e}return e}var i=this,a=(this._checkNumberOfArguments(),[]);this._args.forEach(function(n,e){var t=n.defaultValue;n.variadic?e<i.args.length?(t=i.args.slice(e),n.parseArg&&(t=t.reduce(function(e,t){return r(n,t,e)},n.defaultValue))):void 0===t&&(t=[]):e<i.args.length&&(t=i.args[e],n.parseArg)&&(t=r(n,t,n.defaultValue)),a[e]=t}),this.processedArgs=a}},{key:"_chainOrCall",value:function(e,t){return e&&e.then&&"function"==typeof e.then?e.then(function(){return t()}):t()}},{key:"_chainOrCallHooks",value:function(e,n){var t=this,r=e,i=[];return v(this).reverse().filter(function(e){return void 0!==e._lifeCycleHooks[n]}).forEach(function(t){t._lifeCycleHooks[n].forEach(function(e){i.push({hookedCommand:t,callback:e})})}),"postAction"===n&&i.reverse(),i.forEach(function(e){r=t._chainOrCall(r,function(){return e.callback(e.hookedCommand,t)})}),r}},{key:"_chainOrCallSubCommandHook",value:function(e,t,n){var r=this,i=e;return void 0!==this._lifeCycleHooks[n]&&this._lifeCycleHooks[n].forEach(function(e){i=r._chainOrCall(i,function(){return e(r,t)})}),i}},{key:"_parseCommand",value:function(e,t){var n=this,r=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(r.operands),t=r.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return 1===e.length&&this.help(),this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);if(this._defaultCommandName)return _(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),_(this,r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();function i(){0<r.unknown.length&&n.unknownOption(r.unknown[0])}var a,o="command:".concat(this.name());if(this._actionHandler)return i(),this._processArguments(),a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,function(){return n._actionHandler(n.processedArgs)}),this.parent&&(a=this._chainOrCall(a,function(){n.parent.emit(o,e,t)})),a=this._chainOrCallHooks(a,"postAction");if(this.parent&&this.parent.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}},{key:"_findCommand",value:function(t){if(t)return this.commands.find(function(e){return e._name===t||e._aliases.includes(t)})}},{key:"_findOption",value:function(t){return this.options.find(function(e){return e.is(t)})}},{key:"_checkForMissingMandatoryOptions",value:function(){for(var e=this;e;e=e.parent)(t=>{t.options.forEach(function(e){e.mandatory&&void 0===t.getOptionValue(e.attributeName())&&t.missingMandatoryOptionValue(e)})})(e)}},{key:"_checkForConflictingLocalOptions",value:function(){var n=this,r=this.options.filter(function(e){e=e.attributeName();return void 0!==n.getOptionValue(e)&&"default"!==n.getOptionValueSource(e)});r.filter(function(e){return 0<e.conflictsWith.length}).forEach(function(t){var e=r.find(function(e){return t.conflictsWith.includes(e.attributeName())});e&&n._conflictingOption(t,e)})}},{key:"_checkForConflictingOptions",value:function(){for(var e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}},{key:"parseOptions",value:function(e){var t=[],n=[],r=t,i=e.slice();function a(e){return 1<e.length&&"-"===e[0]}for(var o=null;i.length;){var s=i.shift();if("--"===s){r===n&&r.push(s),r.push.apply(r,_toConsumableArray(i));break}if(o&&!a(s))this.emit("option:".concat(o.name()),s);else{if(o=null,a(s)){var u,c=this._findOption(s);if(c){c.required?(void 0===(u=i.shift())&&this.optionMissingArgument(c),this.emit("option:".concat(c.name()),u)):c.optional?(u=null,0<i.length&&!a(i[0])&&(u=i.shift()),this.emit("option:".concat(c.name()),u)):this.emit("option:".concat(c.name())),o=c.variadic?c:null;continue}}if(2<s.length&&"-"===s[0]&&"-"!==s[1]){c=this._findOption("-".concat(s[1]));if(c){c.required||c.optional&&this._combineFlagAndOptionalValue?this.emit("option:".concat(c.name()),s.slice(2)):(this.emit("option:".concat(c.name())),i.unshift("-".concat(s.slice(2))));continue}}if(/^--[^=]+=/.test(s)){var l=s.indexOf("="),h=this._findOption(s.slice(0,l));if(h&&(h.required||h.optional)){this.emit("option:".concat(h.name()),s.slice(l+1));continue}}if(a(s)&&(r=n),(this._enablePositionalOptions||this._passThroughOptions)&&0===t.length&&0===n.length){if(this._findCommand(s)){t.push(s),0<i.length&&n.push.apply(n,_toConsumableArray(i));break}if(s===this._helpCommandName&&this._hasImplicitHelpCommand()){t.push(s),0<i.length&&t.push.apply(t,_toConsumableArray(i));break}if(this._defaultCommandName){n.push(s),0<i.length&&n.push.apply(n,_toConsumableArray(i));break}}if(this._passThroughOptions){r.push(s),0<i.length&&r.push.apply(r,_toConsumableArray(i));break}r.push(s)}}return{operands:t,unknown:n}}},{key:"opts",value:function(){if(this._storeOptionsAsProperties){for(var e={},t=this.options.length,n=0;n<t;n++){var r=this.options[n].attributeName();e[r]=r===this._versionOptionName?this._version:this[r]}return e}return this._optionValues}},{key:"optsWithGlobals",value:function(){return v(this).reduce(function(e,t){return Object.assign(e,t.opts())},{})}},{key:"error",value:function(e,t){this._outputConfiguration.outputError("".concat(e,"\n"),this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr("".concat(this._showHelpAfterError,"\n")):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));var t=t||{},n=t.exitCode||1;this._exit(n,t.code||"commander.error",e)}},{key:"_parseOptionsEnv",value:function(){var n=this;this.options.forEach(function(e){var t;e.envVar&&e.envVar in d.env&&(t=e.attributeName(),void 0!==n.getOptionValue(t)&&!["default","config","env"].includes(n.getOptionValueSource(t))||(e.required||e.optional?n.emit("optionEnv:".concat(e.name()),d.env[e.envVar]):n.emit("optionEnv:".concat(e.name()))))})}},{key:"_parseOptionsImplied",value:function(){function n(e){return void 0!==r.getOptionValue(e)&&!["default","implied"].includes(r.getOptionValueSource(e))}var r=this,t=new c(this.options);this.options.filter(function(e){return void 0!==e.implied&&n(e.attributeName())&&t.valueFromOption(r.getOptionValue(e.attributeName()),e)}).forEach(function(t){Object.keys(t.implied).filter(function(e){return!n(e)}).forEach(function(e){r.setOptionValueWithSource(e,t.implied[e],"implied")})})}},{key:"missingArgument",value:function(e){e="error: missing required argument '".concat(e,"'");this.error(e,{code:"commander.missingArgument"})}},{key:"optionMissingArgument",value:function(e){e="error: option '".concat(e.flags,"' argument missing");this.error(e,{code:"commander.optionMissingArgument"})}},{key:"missingMandatoryOptionValue",value:function(e){e="error: required option '".concat(e.flags,"' not specified");this.error(e,{code:"commander.missingMandatoryOptionValue"})}},{key:"_conflictingOption",value:function(e,t){function n(e){t=(e=e).attributeName(),r=a.getOptionValue(t),i=a.options.find(function(e){return e.negate&&t===e.attributeName()}),n=a.options.find(function(e){return!e.negate&&t===e.attributeName()});var t,n,r=i&&(void 0===i.presetArg&&!1===r||void 0!==i.presetArg&&r===i.presetArg)?i:n||e,i=r.attributeName();return"env"===a.getOptionValueSource(i)?"environment variable '".concat(r.envVar,"'"):"option '".concat(r.flags,"'")}var a=this,e="error: ".concat(n(e)," cannot be used with ").concat(n(t));this.error(e,{code:"commander.conflictingOption"})}},{key:"unknownOption",value:function(e){if(!this._allowUnknownOption){var t="";if(e.startsWith("--")&&this._showSuggestionAfterError){var n=[],r=this;do{var i=r.createHelp().visibleOptions(r).filter(function(e){return e.long}).map(function(e){return e.long}),n=n.concat(i),r=r.parent}while(r&&!r._enablePositionalOptions);t=g(e,n)}e="error: unknown option '".concat(e,"'").concat(t);this.error(e,{code:"commander.unknownOption"})}}},{key:"_excessArguments",value:function(e){var t,n;this._allowExcessArguments||(t=1===(n=this._args.length)?"":"s",n="error: too many arguments".concat(this.parent?" for '".concat(this.name(),"'"):"",". Expected ").concat(n," argument").concat(t," but got ").concat(e.length,"."),this.error(n,{code:"commander.excessArguments"}))}},{key:"unknownCommand",value:function(){var t,e=this.args[0],n="",e=(this._showSuggestionAfterError&&(t=[],this.createHelp().visibleCommands(this).forEach(function(e){t.push(e.name()),e.alias()&&t.push(e.alias())}),n=g(e,t)),"error: unknown command '".concat(e,"'").concat(n));this.error(e,{code:"commander.unknownCommand"})}},{key:"version",value:function(e,t,n){var r=this;if(void 0===e)return this._version;this._version=e;t=this.createOption(t=t||"-V, --version",n=n||"output the version number");return this._versionOptionName=t.attributeName(),this.options.push(t),this.on("option:"+t.name(),function(){r._outputConfiguration.writeOut("".concat(e,"\n")),r._exit(0,"commander.version",e)}),this}},{key:"description",value:function(e,t){return void 0===e&&void 0===t?this._description:(this._description=e,t&&(this._argsDescription=t),this)}},{key:"summary",value:function(e){return void 0===e?this._summary:(this._summary=e,this)}},{key:"alias",value:function(e){if(void 0===e)return this._aliases[0];var t=this;if(e===(t=0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler?this.commands[this.commands.length-1]:t)._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}},{key:"aliases",value:function(e){var t=this;return void 0===e?this._aliases:(e.forEach(function(e){return t.alias(e)}),this)}},{key:"usage",value:function(e){var t;return void 0===e?this._usage||(t=this._args.map(function(e){return a(e)}),[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?t:[]).join(" ")):(this._usage=e,this)}},{key:"name",value:function(e){return void 0===e?this._name:(this._name=e,this)}},{key:"nameFromFilename",value:function(e){return this._name=h.basename(e,h.extname(e)),this}},{key:"executableDir",value:function(e){return void 0===e?this._executableDir:(this._executableDir=e,this)}},{key:"helpInformation",value:function(e){var t=this.createHelp();return void 0===t.helpWidth&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}},{key:"_getHelpContext",value:function(e){var t=this,n={error:!!(e=e||{}).error},r=n.error?function(e){return t._outputConfiguration.writeErr(e)}:function(e){return t._outputConfiguration.writeOut(e)};return n.write=e.write||r,n.command=this,n}},{key:"outputHelp",value:function(e){"function"==typeof e&&(t=e,e=void 0);var t,n=this._getHelpContext(e),e=(v(this).reverse().forEach(function(e){return e.emit("beforeAllHelp",n)}),this.emit("beforeHelp",n),this.helpInformation(n));if(t&&"string"!=typeof(e=t(e))&&!Buffer.isBuffer(e))throw new Error("outputHelp callback must return a string or a Buffer");n.write(e),this.emit(this._helpLongFlag),this.emit("afterHelp",n),v(this).forEach(function(e){return e.emit("afterAllHelp",n)})}},{key:"helpOption",value:function(e,t){return"boolean"==typeof e?this._hasHelpOption=e:(this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription,e=u(this._helpFlags),this._helpShortFlag=e.shortFlag,this._helpLongFlag=e.longFlag),this}},{key:"help",value:function(e){this.outputHelp(e);var t=d.exitCode||0;0===t&&e&&"function"!=typeof e&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}},{key:"addHelpText",value:function(e,n){var t=["beforeAll","before","after","afterAll"];if(t.includes(e))return e="".concat(e,"Help"),this.on(e,function(e){var t="function"==typeof n?n({error:e.error,command:e.command}):n;t&&e.write("".concat(t,"\n"))}),this;throw new Error("Unexpected value for position to addHelpText.\nExpecting one of '".concat(t.join("', '"),"'"))}}]));function m(e){var t;return _classCallCheck(this,m),(t=_callSuper(this,m)).commands=[],t.options=[],t.parent=null,t._allowUnknownOption=!1,t._allowExcessArguments=!0,t._args=[],t.args=[],t.rawArgs=[],t.processedArgs=[],t._scriptPath=null,t._name=e||"",t._optionValues={},t._optionValueSources={},t._storeOptionsAsProperties=!1,t._actionHandler=null,t._executableHandler=!1,t._executableFile=null,t._executableDir=null,t._defaultCommandName=null,t._exitCallback=null,t._aliases=[],t._combineFlagAndOptionalValue=!0,t._description="",t._summary="",t._argsDescription=void 0,t._enablePositionalOptions=!1,t._passThroughOptions=!1,t._lifeCycleHooks={},t._showHelpAfterError=!1,t._showSuggestionAfterError=!0,t._outputConfiguration={writeOut:function(e){return d.stdout.write(e)},writeErr:function(e){return d.stderr.write(e)},getOutHelpWidth:function(){return d.stdout.isTTY?d.stdout.columns:void 0},getErrHelpWidth:function(){return d.stderr.isTTY?d.stderr.columns:void 0},outputError:function(e,t){return t(e)}},t._hidden=!1,t._hasHelpOption=!0,t._helpFlags="-h, --help",t._helpDescription="display help for command",t._helpShortFlag="-h",t._helpLongFlag="--help",t._addImplicitHelpCommand=void 0,t._helpCommandName="help",t._helpCommandnameAndArgs="help [command]",t._helpCommandDescription="display help for command",t._helpConfiguration={},t}function _(t,e){t._hasHelpOption&&e.find(function(e){return e===t._helpLongFlag||e===t._helpShortFlag})&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function y(e){return e.map(function(e){var t,n,r,i;return e.startsWith("--inspect")&&(n="127.0.0.1",r="9229",null!==(i=e.match(/^(--inspect(-brk)?)$/))?t=i[1]:null!==(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=i[1],/^\d+$/.test(i[3])?r=i[3]:n=i[3]):null!==(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=i[1],n=i[3],r=i[4]),t)&&"0"!==r?"".concat(t,"=").concat(n,":").concat(parseInt(r)+1):e})}function v(e){for(var t=[],n=e;n;n=n.parent)t.push(n);return t}e.Command=r}),M=t(function(e,t){var n=w().Argument,r=U().Command,i=b(),a=i.CommanderError,i=i.InvalidArgumentError,o=k().Help,s=S().Option;((e=t.exports=new r).program=e).Argument=n,e.Command=r,e.CommanderError=a,e.Help=o,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i,e.Option=s}),I=t(function(e,t){"u"<("undefined"==typeof process?"undefined":_typeof(process))||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(o-1),a=0;a<i.length;)i[a++]=arguments[a];return process.nextTick(function(){e.apply(null,i)})}}}:t.exports=process}),q=t(function(e,t){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}}),T=t(function(e,t){t.exports=require("stream")}),F=t(function(e,t){var n=require("buffer"),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),i(r,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=r(e);return void 0!==t?"string"==typeof n?e.fill(t,n):e.fill(t):e.fill(0),e},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}),P=t(function(e){function t(e){return Object.prototype.toString.call(e)}e.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},e.isBoolean=function(e){return"boolean"==typeof e},e.isNull=function(e){return null===e},e.isNullOrUndefined=function(e){return null==e},e.isNumber=function(e){return"number"==typeof e},e.isString=function(e){return"string"==typeof e},e.isSymbol=function(e){return"symbol"==_typeof(e)},e.isUndefined=function(e){return void 0===e},e.isRegExp=function(e){return"[object RegExp]"===t(e)},e.isObject=function(e){return"object"==_typeof(e)&&null!==e},e.isDate=function(e){return"[object Date]"===t(e)},e.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},e.isFunction=function(e){return"function"==typeof e},e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==_typeof(e)||"u"<_typeof(e)},e.isBuffer=require("buffer").Buffer.isBuffer}),G=t(function(e,t){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){var n;t&&(e.super_=t,(n=function(){}).prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e)}}),R=t(function(e,t){try{if("function"!=typeof(n=require("util")).inherits)throw"";t.exports=n.inherits}catch(e){t.exports=G()}var n}),W=t(function(e,t){var o=F().Buffer,n=require("util");function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}t.exports=(r.prototype.push=function(e){e={data:e,next:null};0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},r.prototype.unshift=function(e){e={data:e,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},r.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},r.prototype.concat=function(e){if(0===this.length)return o.alloc(0);for(var t,n,r=o.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,n=a,t.copy(r,n),a+=i.data.length,i=i.next;return r},r),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})}),z=t(function(e,t){var a=I();function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,e)):a.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,a.nextTick(o,n,e)):a.nextTick(o,n,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}),V=t(function(e,t){t.exports=require("util").deprecate}),f=t(function(e,t){var d=I();function h(a){var o=this;this.next=null,this.entry=null,this.finish=function(){var e=o,t=a,n=void 0,r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}}t.exports=u;var a,f=!process.browser&&-1<["v0.10","v0.9."].indexOf(process.version.slice(0,5))?setImmediate:d.nextTick,t=(u.WritableState=s,Object.create(P())),n=(t.inherits=R(),{deprecate:V()}),r=T(),p=F().Buffer,g=(("undefined"==typeof global?"undefined":_typeof(global))<"u"?global:("undefined"==typeof window?"undefined":_typeof(window))<"u"?window:("undefined"==typeof self?"undefined":_typeof(self))<"u"?self:{}).Uint8Array||function(){};var i,o=z();function m(){}function s(e,l){a=a||N(),e=e||{};var t=l instanceof a,n=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),e.highWaterMark),r=e.writableHighWaterMark,i=this.objectMode?16:16384,n=(this.highWaterMark=n||0===n?n:t&&(r||0===r)?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,(this.destroyed=!1)===e.decodeStrings);this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){e=e,n=(t=l)._writableState,r=n.sync,i=n.writecb;var t,n,r,i,a=n;{var o,s,u,c;(a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e)?(a=t,s=r,u=e,c=i,--(o=n).pendingcb,s?(d.nextTick(c,u),d.nextTick(w,a,o),a._writableState.errorEmitted=!0,a.emit("error",u)):(c(u),a._writableState.errorEmitted=!0,a.emit("error",u),w(a,o))):((e=b(n))||n.corked||n.bufferProcessing||!n.bufferedRequest||v(t,n),r?f(y,t,n,e,i):y(t,n,e,i))}},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}t.inherits(u,r),s.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(s.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}function u(e){if(a=a||N(),!(i.call(u,this)||this instanceof a))return new u(e);this._writableState=new s(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final)&&(this._final=e.final),r.call(this)}function _(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function y(e,t,n,r){var i;n||(n=e,0===(i=t).length&&i.needDrain&&(i.needDrain=!1,n.emit("drain"))),t.pendingcb--,r(),w(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),r=t.corkedRequestsFree;r.entry=n;for(var a=0,o=!0;n;)(i[a]=n).isBuf||(o=!1),n=n.next,a+=1;i.allBuffers=o,_(e,t,!0,t.length,i,"",r.finish),t.pendingcb++,t.lastBufferedRequest=null,r.next?(t.corkedRequestsFree=r.next,r.next=null):t.corkedRequestsFree=new h(t),t.bufferedRequestCount=0}else{for(;n;){var s=n.chunk,u=n.encoding,c=n.callback;if(_(e,t,!1,t.objectMode?1:s.length,s,u,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function c(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),w(t,n)})}function w(e,t){var n,r,i=b(t);return i&&(n=e,(r=t).prefinished||r.finalCalled||("function"==typeof n._final?(r.pendingcb++,r.finalCalled=!0,d.nextTick(c,n,r)):(r.prefinished=!0,n.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),i}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===u&&e&&e._writableState instanceof s}})):i=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,n){var r,i,a,o,s,u,c,l=this._writableState,h=!1,f=!l.objectMode&&(f=e,p.isBuffer(f)||f instanceof g);return f&&!p.isBuffer(e)&&(c=e,e=p.from(c)),"function"==typeof t&&(n=t,t=null),t=f?"buffer":t||l.defaultEncoding,"function"!=typeof n&&(n=m),l.ended?(c=this,s=n,u=new Error("write after end"),c.emit("error",u),d.nextTick(s,u)):(f||(s=this,u=l,i=n,o=!(a=!0),null===(r=e)?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||u.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(s.emit("error",o),d.nextTick(i,o),a=!1),a))&&(l.pendingcb++,h=((e,t,n,r,i,a)=>{n||(s=((e,t,n)=>t=e.objectMode||!1===e.decodeStrings||"string"!=typeof t?t:p.from(t,n))(t,r,i),r!==s&&(n=!0,i="buffer",r=s));var o,s=t.objectMode?1:r.length,u=(t.length+=s,t.length<t.highWaterMark);return u||(t.needDrain=!0),t.writing||t.corked?(o=t.lastBufferedRequest,t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},o?o.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1):_(e,t,!1,s,r,i,a),u})(this,l,f,e,t,n)),h},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing)||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e)},u.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||(e=this,t=n,(n=r).ending=!0,w(e,n),t&&(n.finished?d.nextTick(t):e.once("finish",t)),n.ended=!0,e.writable=!1)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),u.prototype.destroy=o.destroy,u.prototype._undestroy=o.undestroy,u.prototype._destroy=function(e,t){this.end(),t(e)}}),N=t(function(e,t){var n,r,i,a=I(),o=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},t=(t.exports=c,Object.create(P())),s=(t.inherits=R(),d()),u=f();for(t.inherits(c,s),n=o(u.prototype),i=0;i<n.length;i++)r=n[i],c.prototype[r]||(c.prototype[r]=u.prototype[r]);function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),u.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||a.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(e,t){this.push(null),this.end(),a.nextTick(t,e)}}),L=t(function(e){var n=F().Buffer,r=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t=(e=>{if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}})(e);if("string"==typeof t||n.isEncoding!==r&&r(e))return t||e;throw new Error("Unknown encoding: "+e)}function t(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=s,this.end=u,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t,n=this.lastTotal-this.lastNeed,r=(t=this,128!=(192&(r=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<r.length?128!=(192&r[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<r.length&&128!=(192&r[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,n,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var n=t.charCodeAt(t.length-1);if(55296<=n&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function u(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function c(e,t){var n=(e.length-t)%3;return 0==n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function l(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}(e.StringDecoder=t).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},t.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},t.prototype.text=function(e,t){var n=((e,t,n)=>{var r,i=t.length-1;return i<n?0:0<=(r=a(t[i]))?(0<r&&(e.lastNeed=r-1),r):--i<n||-2===r?0:0<=(r=a(t[i]))?(0<r&&(e.lastNeed=r-2),r):!(--i<n||-2===r)&&0<=(r=a(t[i]))?(0<r&&(2===r?r=0:e.lastNeed=r-3),r):0})(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;n=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},t.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}),d=t(function(e,t){function g(e,t){return e.listeners(t).length}var a,m=I(),_=(t.exports=c,q()),n=(c.ReadableState=i,require("events").EventEmitter,T()),h=F().Buffer,f=(("undefined"==typeof global?"undefined":_typeof(global))<"u"?global:("undefined"==typeof window?"undefined":_typeof(window))<"u"?window:("undefined"==typeof self?"undefined":_typeof(self))<"u"?self:{}).Uint8Array||function(){};var o,t=Object.create(P()),r=(t.inherits=R(),require("util")),y=void 0,y=r&&r.debuglog?r.debuglog("stream"):function(){},s=W(),r=z(),u=(t.inherits(c,n),["error","close","destroy","pause","resume"]);function i(e,t){e=e||{};var t=t instanceof(a=a||N()),n=(this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),e.highWaterMark),r=e.readableHighWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:t&&(r||0===r)?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o=o||L().StringDecoder,this.decoder=new o(e.encoding),this.encoding=e.encoding)}function c(e){if(a=a||N(),!(this instanceof c))return new c(e);this._readableState=new i(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy)&&(this._destroy=e.destroy),n.call(this)}function l(e,t,n,r,i){var a,o,s,u,c,l=e._readableState;return null===t?(l.reading=!1,o=e,(u=l).ended||(u.decoder&&(s=u.decoder.end())&&s.length&&(u.buffer.push(s),u.length+=u.objectMode?1:s.length),u.ended=!0,b(o))):(i||(s=l,a=c=(e=>h.isBuffer(e)||e instanceof f)(u=t)||"string"==typeof u||void 0===u||s.objectMode?c:new TypeError("Invalid non-string/buffer chunk")),a?e.emit("error",a):l.objectMode||t&&0<t.length?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===h.prototype||(o=t,t=h.from(o)),r?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,!l.decoder||n||(t=l.decoder.write(t),l.objectMode)||0!==t.length?d(e,l,t,!1):k(e,l))):r||(l.reading=!1)),!(i=l).ended&&(i.needReadable||i.length<i.highWaterMark||0===i.length)}function d(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&b(e)),k(e,t)}Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),c.prototype.destroy=r.destroy,c.prototype._undestroy=r.undestroy,c.prototype._destroy=function(e,t){this.push(null),t(e)},c.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=h.from(e,t),t=""),n=!0),l(this,e,t,!1,n)},c.prototype.unshift=function(e){return l(this,e,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(e){return o=o||L().StringDecoder,this._readableState.decoder=new o(e),this._readableState.encoding=e,this};var p=8388608;function v(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(p<=(n=e)?n=p:(n--,n=(n=(n=(n=(n|=n>>>1)|n>>>2)|n>>>4)|n>>>8)|n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function b(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m.nextTick(w,e):w(e))}function w(e){y("emit readable"),e.emit("readable"),A(e)}function k(e,t){t.readingMore||(t.readingMore=!0,m.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(y("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function E(e){y("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(y("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(y("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){var n,r,i;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(i=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):i=e===r.head.data.length?r.shift():(t?(e,t)=>{var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(i+=o===a.length?a:a.slice(0,e),0===(e-=o)){o===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=a.slice(o);break}++r}return t.length-=r,i}:(e,t)=>{var n=h.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=a.slice(o);break}++i}return t.length-=i,n})(e,r),n=i),n)}function O(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,m.nextTick(D,t,e))}function D(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}c.prototype.read=function(e){y("read",e),e=parseInt(e,10);var t,n=this._readableState,r=e;return 0!==e&&(n.emittedReadable=!1),0===e&&n.needReadable&&(n.length>=n.highWaterMark||n.ended)?(y("read: emitReadable",n.length,n.ended),(0===n.length&&n.ended?O:b)(this),null):0===(e=v(e,n))&&n.ended?(0===n.length&&O(this),null):(t=n.needReadable,y("need readable",t),(0===n.length||n.length-e<n.highWaterMark)&&y("length less than watermark",t=!0),n.ended||n.reading?y("reading or ended",t=!1):t&&(y("do read"),n.reading=!0,n.sync=!0,0===n.length&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(e=v(r,n))),null===(t=0<e?x(e,n):null)?(n.needReadable=!0,e=0):n.length-=e,0===n.length&&(n.ended||(n.needReadable=!0),r!==e)&&n.ended&&O(this),null!==t&&this.emit("data",t),t)},c.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,y("pipe count=%d opts=%j",i.pipesCount,e);e=(!e||!1!==e.end)&&n!==process.stdout&&n!==process.stderr?o:p;function a(e,t){y("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,y("cleanup"),n.removeListener("close",f),n.removeListener("finish",d),n.removeListener("drain",s),n.removeListener("error",h),n.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",p),r.removeListener("data",l),u=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||s())}function o(){y("onend"),n.end()}i.endEmitted?m.nextTick(e):r.once("end",e),n.on("unpipe",a);t=r;var t,s=function(){var e=t._readableState;y("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&g(t,"data")&&(e.flowing=!0,A(t))},u=(n.on("drain",s),!1);var c=!1;function l(e){y("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==B(i.pipes,n))&&!u&&(y("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function h(e){y("onerror",e),p(),n.removeListener("error",h),0===g(n,"error")&&n.emit("error",e)}function f(){n.removeListener("finish",d),p()}function d(){y("onfinish"),n.removeListener("close",f),p()}function p(){y("unpipe"),r.unpipe(n)}return r.on("data",l),((e,t,n)=>{if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?_(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)})(n,"error",h),n.once("close",f),n.once("finish",d),n.emit("pipe",r),i.flowing||(y("pipe resume"),r.resume()),n},c.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n));else if(e){var r=B(t.pipes,e);-1!==r&&(t.pipes.splice(r,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n))}else{var i=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<a;o++)i[o].emit("unpipe",this,{hasUnpiped:!1})}return this},c.prototype.addListener=c.prototype.on=function(e,t){t=n.prototype.on.call(this,e,t);return"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&b(this):m.nextTick(E,this)),t},c.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(y("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,m.nextTick(C,e,t))),this},c.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(t){var e,n=this,r=this._readableState,i=!1;for(e in t.on("end",function(){var e;y("wrapped end"),r.decoder&&!r.ended&&(e=r.decoder.end())&&e.length&&n.push(e),n.push(null)}),t.on("data",function(e){y("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||!(r.objectMode||e&&e.length)||n.push(e)||(i=!0,t.pause())}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=(e=>function(){return t[e].apply(t,arguments)})(e));for(var a=0;a<u.length;a++)t.on(u[a],this.emit.bind(this,u[a]));return this._read=function(e){y("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(c.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),c._fromList=x}),a=t(function(e,t){t.exports=n;var r=N(),t=Object.create(P());function n(e){if(!(this instanceof n))return new n(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState,r=(n.transforming=!1,n.writecb);if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e),(n=this._readableState).reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",i)}function i(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){a(n,e,t)}):a(this,null,null)}function a(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}t.inherits=R(),t.inherits(n,r),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},n.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,n){var r=this._transformState;r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming&&(n=this._readableState,r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}}),K=t(function(e,t){t.exports=r;var n=a(),t=Object.create(P());function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}t.inherits=R(),t.inherits(r,n),r.prototype._transform=function(e,t,n){n(null,e)}}),o=t(function(e,t){var n=require("stream");"disable"===process.env.READABLE_STREAM&&n?(t.exports=n,(e=t.exports=n.Readable).Readable=n.Readable,e.Writable=n.Writable,e.Duplex=n.Duplex,e.Transform=n.Transform,e.PassThrough=n.PassThrough,e.Stream=n):((e=t.exports=d()).Stream=n||e,(e.Readable=e).Writable=f(),e.Duplex=N(),e.Transform=a(),e.PassThrough=K())}),p=t(function(t){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=("undefined"==typeof ArrayBuffer?"undefined":_typeof(ArrayBuffer))<"u"&&("undefined"==typeof Uint8Array?"undefined":_typeof(Uint8Array))<"u",t.nodebuffer=("undefined"==typeof Buffer?"undefined":_typeof(Buffer))<"u",t.uint8array=("undefined"==typeof Uint8Array?"undefined":_typeof(Uint8Array))<"u","u"<("undefined"==typeof ArrayBuffer?"undefined":_typeof(ArrayBuffer)))t.blob=!1;else{n=new ArrayBuffer(0);try{t.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{(r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder)).append(n),t.blob=0===r.getBlob("application/zip").size}catch(e){t.blob=!1}}}var n,r;try{t.nodestream=!!o().Readable}catch(e){t.nodestream=!1}}),g=t(function(e){var h=E(),f=p(),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(e){for(var t,n,r,i,a,o,s=[],u=0,c=e.length,l="string"!==h.getTypeOf(e);u<e.length;)o=c-u,r=l?(t=e[u++],n=u<c?e[u++]:0,u<c?e[u++]:0):(t=e.charCodeAt(u++),n=u<c?e.charCodeAt(u++):0,u<c?e.charCodeAt(u++):0),i=(3&t)<<4|n>>4,a=1<o?(15&n)<<2|r>>6:64,o=2<o?63&r:64,s.push(d.charAt(t>>2)+d.charAt(i)+d.charAt(a)+d.charAt(o));return s.join("")},e.decode=function(e){var t,n,r,i,a,o,s=0,u=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var c,l=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===d.charAt(64)&&l--,e.charAt(e.length-2)===d.charAt(64)&&l--,l%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=new(f.uint8array?Uint8Array:Array)(0|l);s<e.length;)r=d.indexOf(e.charAt(s++)),t=(15&(i=d.indexOf(e.charAt(s++))))<<4|(a=d.indexOf(e.charAt(s++)))>>2,n=(3&a)<<6|(o=d.indexOf(e.charAt(s++))),c[u++]=r<<2|i>>4,64!==a&&(c[u++]=t),64!==o&&(c[u++]=n);return c}}),v=t(function(e,t){t.exports={isNode:("undefined"==typeof Buffer?"undefined":_typeof(Buffer))<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){return Buffer.alloc?Buffer.alloc(e):((e=new Buffer(e)).fill(0),e)},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}}),Y=t(function(e,t){t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}),X=t(function(e,t){var n,r,i,a,o=global.MutationObserver||global.WebKitMutationObserver,s=process.browser?o?(n=0,o=new o(c),r=global.document.createTextNode(""),o.observe(r,{characterData:!0}),function(){r.data=n=++n%2}):!global.setImmediate&&_typeof(global.MessageChannel)<"u"?((i=new global.MessageChannel).port1.onmessage=c,function(){i.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?function(){var e=global.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)}:function(){process.nextTick(c)},u=[];function c(){a=!0;for(var e,t,n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}a=!1}t.exports=function(e){1!==u.push(e)||a||s()}}),$=t(function(e,t){var i=X();function u(){}var a,c={},o=["REJECTED"],s=["FULFILLED"],r=["PENDING"];function n(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=r,this.queue=[],this.outcome=void 0,process.browser||(this.handled=a),e!==u&&d(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,n,r){i(function(){var e;try{e=n(r)}catch(e){return c.reject(t,e)}e===t?c.reject(t,new TypeError("Cannot resolve promise with itself")):c.resolve(t,e)})}function f(e){var t=e&&e.then;if(e&&("object"==_typeof(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(t,e){var n=!1;function r(e){n||(n=!0,c.reject(t,e))}function i(e){n||(n=!0,c.resolve(t,e))}var a=p(function(){e(i,r)});"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}process.browser||(a=["UNHANDLED"]),(t.exports=n).prototype.finally=function(t){var n;return"function"!=typeof t?this:(n=this.constructor,this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}))},n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var n;return"function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o?this:(n=new this.constructor(u),process.browser||this.handled===a&&(this.handled=null),this.state!==r?h(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n)},l.prototype.callFulfilled=function(e){c.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){c.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},c.resolve=function(e,t){var n=p(f,t);if("error"===n.status)return c.reject(e,n.value);n=n.value;if(n)d(e,n);else{e.state=s,e.outcome=t;for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callFulfilled(t)}return e},c.reject=function(e,t){e.state=o,e.outcome=t,process.browser||e.handled===a&&i(function(){e.handled===a&&process.emit("unhandledRejection",t,e)});for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},n.resolve=function(e){return e instanceof this?e:c.resolve(new this(u),e)},n.reject=function(e){var t=new this(u);return c.reject(t,e)},n.all=function(e){var n=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),o=0,t=-1,s=new this(u);++t<r;)((e,t)=>{n.resolve(e).then(function(e){a[t]=e,++o!==r||i||(i=!0,c.resolve(s,a))},function(e){i||(i=!0,c.reject(s,e))})})(e[t],t);return s},n.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var i=-1,a=new this(u);++i<n;)(e=>{t.resolve(e).then(function(e){r||(r=!0,c.resolve(a,e))},function(e){r||(r=!0,c.reject(a,e))})})(e[i]);return a}}),m=t(function(e,t){var n=null,n=("undefined"==typeof Promise?"undefined":_typeof(Promise))<"u"?Promise:$();t.exports={Promise:n}}),E=t(function(o){var s=p(),u=g(),t=v(),r=Y(),c=m();function e(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}o.newBlob=function(t,n){o.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(t),r.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var i={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)r.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a))):String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:(()=>{try{return s.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}})(),nodebuffer:(()=>{try{return s.nodebuffer&&1===String.fromCharCode.apply(null,t.allocBuffer(1)).length}catch(e){return!1}})()}};function n(e){var t=65536,n=o.getTypeOf(e),r=!0;if("uint8array"===n?r=i.applyCanBeUsed.uint8array:"nodebuffer"===n&&(r=i.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return i.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return i.stringifyByChar(e)}function a(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}o.applyFromCharCode=n;var h={};h.string={string:e,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,t.allocBuffer(e.length))}},h.array={string:n,array:e,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return t.newBufferFrom(e)}},h.arraybuffer={string:function(e){return n(new Uint8Array(e))},array:function(e){return a(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:e,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return t.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:n,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:e,nodebuffer:function(e){return t.newBufferFrom(e)}},h.nodebuffer={string:n,array:function(e){return a(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return a(e,new Uint8Array(e.length))},nodebuffer:e},o.transformTo=function(e,t){if(t=t||"",!e)return t;o.checkSupport(e);var n=o.getTypeOf(t);return h[n][e](t)},o.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":s.nodebuffer&&t.isBuffer(e)?"nodebuffer":s.uint8array&&e instanceof Uint8Array?"uint8array":s.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(e){if(!s[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(e){for(var t,n="",r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},o.delay=function(e,t,n){r(function(){e.apply(n||null,t||[])})},o.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},o.extend=function(){for(var e,t={},n=0;n<arguments.length;n++)for(e in arguments[n])arguments[n].hasOwnProperty(e)&&"u"<_typeof(t[e])&&(t[e]=arguments[n][e]);return t},o.prepareContent=function(n,e,r,i,a){return c.Promise.resolve(e).then(function(r){return s.blob&&(r instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(r)))&&("undefined"==typeof FileReader?"undefined":_typeof(FileReader))<"u"?new c.Promise(function(t,n){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){n(e.target.error)},e.readAsArrayBuffer(r)}):r}).then(function(e){var t=o.getTypeOf(e);return t?("arraybuffer"===t?e=o.transformTo("uint8array",e):"string"===t&&(a?e=u.decode(e):r&&!0!==i&&(e=l(t=e,new(s.uint8array?Uint8Array:Array)(t.length)))),e):c.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}}),C=t(function(e,t){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n}),A=t(function(i){for(var e,u=E(),c=p(),l=v(),t=C(),h=new Array(256),e=0;e<256;e++)h[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;h[254]=h[254]=1;function n(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}i.utf8encode=function(e){if(c.nodebuffer)return l.newBufferFrom(e,"utf-8");for(var t,n,r,i,a=e,o=a.length,s=0,u=0;u<o;u++)55296==(64512&(n=a.charCodeAt(u)))&&u+1<o&&56320==(64512&(r=a.charCodeAt(u+1)))&&(n=65536+(n-55296<<10)+(r-56320),u++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new(c.uint8array?Uint8Array:Array)(s),u=i=0;i<s;u++)55296==(64512&(n=a.charCodeAt(u)))&&u+1<o&&56320==(64512&(r=a.charCodeAt(u+1)))&&(n=65536+(n-55296<<10)+(r-56320),u++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},i.utf8decode=function(e){if(c.nodebuffer)return u.transformTo("nodebuffer",e).toString("utf-8");for(var t,n,r=e=u.transformTo(c.uint8array?"uint8array":"array",e),i=r.length,a=new Array(2*i),o=0,s=0;s<i;)if((t=r[s++])<128)a[o++]=t;else if(4<(n=h[t]))a[o++]=65533,s+=n-1;else{for(t&=2===n?31:3===n?15:7;1<n&&s<i;)t=t<<6|63&r[s++],n--;1<n?a[o++]=65533:t<65536?a[o++]=t:(t-=65536,a[o++]=55296|t>>10&1023,a[o++]=56320|1023&t)}return a.length!==o&&(a.subarray?a=a.subarray(0,o):a.length=o),u.applyFromCharCode(a)},u.inherits(n,t),n.prototype.processChunk=function(e){var t=u.transformTo(c.uint8array?"uint8array":"array",e.data),n=(this.leftOver&&this.leftOver.length&&(c.uint8array?(n=t,(t=new Uint8Array(n.length+this.leftOver.length)).set(this.leftOver,0),t.set(n,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),((e,t)=>{for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+h[e[n]]>t?n:t})(t)),r=t;n!==t.length&&(c.uint8array?(r=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(r=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:i.utf8decode(r),meta:e.meta})},n.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=n,u.inherits(r,t),r.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=r}),Q=t(function(e,t){var n=C(),r=E();function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i}),ee=t(function(e,t){var i=o().Readable;function n(e,t,n){i.call(this,t),this._helper=e;var r=this;e.on("data",function(e,t){r.push(e)||r._helper.pause(),n&&n(t)}).on("error",function(e){r.emit("error",e)}).on("end",function(){r.push(null)})}E().inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n}),x=t(function(e,t){var u=E(),i=Q(),a=C(),c=g(),n=p(),r=m(),o=null;if(n.nodestream)try{o=ee()}catch(e){}function s(e,s){return new r.Promise(function(t,n){var r=[],i=e._internalType,a=e._outputType,o=e._mimeType;e.on("data",function(e,t){r.push(e),s&&s(t)}).on("error",function(e){r=[],n(e)}).on("end",function(){try{var e=((e,t,n)=>{switch(e){case"blob":return u.newBlob(u.transformTo("arraybuffer",t),n);case"base64":return c.encode(t);default:return u.transformTo(e,t)}})(a,((e,t)=>{for(var n=0,r=null,i=0,a=0;a<t.length;a++)i+=t[a].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(i),a=0;a<t.length;a++)r.set(t[a],n),n+=t[a].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}})(i,r),o);t(e)}catch(e){n(e)}r=[]}).resume()})}function l(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,u.checkSupport(r),this._worker=e.pipe(new i(r)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}l.prototype={accumulate:function(e){return s(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){u.delay(t,arguments,n)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(u.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new o(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=l}),O=t(function(e){e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null}),te=t(function(e,t){var n=E(),r=C();function i(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(i,r),i.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i}),l=t(function(e,t){var n=E();var s=(()=>{for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})();t.exports=function(e,t){return"u"<_typeof(e)||!e.length?0:("string"!==n.getTypeOf(e)?(e,t,n,r)=>{var i=s,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}:(e,t,n,r)=>{var i=s,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t.charCodeAt(o))];return-1^e})(0|t,e,e.length,0)}}),ne=t(function(e,t){var n=C(),r=l();function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}E().inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i}),re=t(function(e,t){var n=E(),r=C();function i(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,r),i.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),r.prototype.processChunk.call(this,e)},t.exports=i}),D=t(function(e,t){var n=m(),r=te(),i=ne(),a=re();function o(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,n){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o}),ie=t(function(e,t){for(var n,a=x(),r=te(),o=A(),i=D(),s=C(),u=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}},c=(u.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n,i=("binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker(),!this._dataBinary);i&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!i&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new a(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var n;return this._data instanceof i&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(n=this._decompressWorker(),this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),i.createWorkerFrom(n,e,t))},_decompressWorker:function(){return this._data instanceof i?this._data.getContentWorker():this._data instanceof s?this._data:new r(this._data)}},["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"]),l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},n=0;n<c.length;n++)u.prototype[c[n]]=l;t.exports=u}),J=t(function(t){var e=("undefined"==typeof Uint8Array?"undefined":_typeof(Uint8Array))<"u"&&("undefined"==typeof Uint16Array?"undefined":_typeof(Uint16Array))<"u"&&("undefined"==typeof Int32Array?"undefined":_typeof(Int32Array))<"u";t.assign=function(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=_typeof(i))throw new TypeError(i+"must be non-object");for(var a in i)t=i,n=a,Object.prototype.hasOwnProperty.call(t,n)&&(e[a]=i[a])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){for(var t,n,r,i=0,a=0,o=e.length;a<o;a++)i+=e[a].length;for(r=new Uint8Array(i),a=t=0,o=e.length;a<o;a++)n=e[a],r.set(n,t),t+=n.length;return r}},r={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,r))},t.setTyped(e)}),ae=t(function(e){var a=J(),l=0,h=1;function t(e){for(var t=e.length;0<=--t;)e[t]=0}var s,u,c,f=29,d=256,p=d+1+f,g=30,m=19,C=2*p+1,A=15,r=16,j=7,_=256,y=16,v=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(p+2)),x=(t(E),new Array(2*g)),O=(t(x),new Array(512)),D=(t(O),new Array(256)),B=(t(D),new Array(f)),I=(t(B),new Array(g));function T(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function P(e){return e<256?O[e]:O[256+(e>>>7)]}function i(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function R(e,t,n){e.bi_valid>r-n?(e.bi_buf|=t<<e.bi_valid&65535,i(e,e.bi_buf),e.bi_buf=t>>r-e.bi_valid,e.bi_valid+=n-r):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function z(e,t,n){R(e,n[2*t],n[2*t+1])}function U(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function M(e,t,n){for(var r,i=new Array(A+1),a=0,o=1;o<=A;o++)i[o]=a=a+n[o-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=U(i[s]++,s))}}function q(e){for(var t=0;t<p;t++)e.dyn_ltree[2*t]=0;for(t=0;t<g;t++)e.dyn_dtree[2*t]=0;for(t=0;t<m;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*_]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function G(e){8<e.bi_valid?i(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function o(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function N(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&o(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!o(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function W(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0==r?z(e,i,t):(z(e,(a=D[i])+d+1,t),0!==(o=w[a])&&R(e,i-=B[a],o),z(e,a=P(--r),n),0!==(o=k[a])&&R(e,r-=I[a],o)),s<e.last_lit;);z(e,_,t)}function L(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=C,n=0;n<u;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)N(e,a,n);for(i=u;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],N(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,N(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var l,h,f,d,p,g=e,m=t.dyn_tree,_=t.max_code,y=t.stat_desc.static_tree,v=t.stat_desc.has_stree,b=t.stat_desc.extra_bits,w=t.stat_desc.extra_base,k=t.stat_desc.max_length,S=0,E=0;E<=A;E++)g.bl_count[E]=0;for(m[2*g.heap[g.heap_max]+1]=0,l=g.heap_max+1;l<C;l++)k<(E=m[2*m[2*(h=g.heap[l])+1]+1]+1)&&(E=k,S++),m[2*h+1]=E,_<h||(g.bl_count[E]++,d=0,w<=h&&(d=b[h-w]),p=m[2*h],g.opt_len+=p*(E+d),!v)||(g.static_len+=p*(y[2*h+1]+d));if(0!==S){do{for(E=k-1;0===g.bl_count[E];)E--}while(g.bl_count[E]--,g.bl_count[E+1]+=2,g.bl_count[k]--,0<(S-=2));for(E=k;0!==E;E--)for(h=g.bl_count[E];0!==h;)_<(f=g.heap[--l])||(m[2*f+1]!==E&&(g.opt_len+=(E-m[2*f+1])*m[2*f],m[2*f+1]=E),h--)}M(a,c,e.bl_count)}function Z(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,c=4;for(0===o&&(u=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<u&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*v]++:e.bl_tree[2*b]++,a=i,c=(s=0)===o?(u=138,3):i===o?(u=6,3):(u=7,4))}function V(e,t,n){var r,i,a=-1,o=t[1],s=0,u=7,c=4;for(0===o&&(u=138,c=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<u&&i===o)){if(s<c)for(;z(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(z(e,i,e.bl_tree),s--),z(e,y,e.bl_tree),R(e,s-3,2)):s<=10?(z(e,v,e.bl_tree),R(e,s-3,3)):(z(e,b,e.bl_tree),R(e,s-11,7));a=i,c=(s=0)===o?(u=138,3):i===o?(u=6,3):(u=7,4)}}t(I);var K=!1;function Y(e,t,n,r){R(e,0+(r?1:0),3),r=t,t=n,n=!0,G(e=e),n&&(i(e,t),i(e,~t)),a.arraySet(e.pending_buf,e.window,r,t,e.pending),e.pending+=t}e._tr_init=function(e){if(!K){for(var t,n,r,i=new Array(A+1),a=0,o=0;o<f-1;o++)for(B[o]=a,t=0;t<1<<w[o];t++)D[a++]=o;for(D[a-1]=o,o=r=0;o<16;o++)for(I[o]=r,t=0;t<1<<k[o];t++)O[r++]=o;for(r>>=7;o<g;o++)for(I[o]=r<<7,t=0;t<1<<k[o]-7;t++)O[256+r++]=o;for(n=0;n<=A;n++)i[n]=0;for(t=0;t<=143;)E[2*t+1]=8,t++,i[8]++;for(;t<=255;)E[2*t+1]=9,t++,i[9]++;for(;t<=279;)E[2*t+1]=7,t++,i[7]++;for(;t<=287;)E[2*t+1]=8,t++,i[8]++;for(M(E,p+1,i),t=0;t<g;t++)x[2*t+1]=5,x[2*t]=U(t,5);s=new T(E,w,d+1,p,A),u=new T(x,k,0,g,A),c=new T(new Array(0),H,0,m,j),K=!0}e.l_desc=new F(e.dyn_ltree,s),e.d_desc=new F(e.dyn_dtree,u),e.bl_desc=new F(e.bl_tree,c),e.bi_buf=0,e.bi_valid=0,q(e)},e._tr_stored_block=Y,e._tr_flush_block=function(e,t,n,r){var i,a,o,s=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=(e=>{for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*n])return l;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return h;for(n=32;n<d;n++)if(0!==e.dyn_ltree[2*n])return h;return l})(e)),L(e,e.l_desc),L(e,e.d_desc),s=(e=>{var t;for(Z(e,e.dyn_ltree,e.l_desc.max_code),Z(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=m-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),(a=e.static_len+3+7>>>3)<=(i=e.opt_len+3+7>>>3)&&(i=a)):i=a=n+5,n+4<=i&&-1!==t)Y(e,t,n,r);else if(4===e.strategy||a===i)R(e,2+(r?1:0),3),W(e,E,x);else{R(e,4+(r?1:0),3);var u=e,c=(t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,s+1);for(R(u,t-257,5),R(u,n-1,5),R(u,c-4,4),o=0;o<c;o++)R(u,u.bl_tree[2*S[o]+1],3);V(u,u.dyn_ltree,t-1),V(u,u.dyn_dtree,n-1),W(e,e.dyn_ltree,e.dyn_dtree)}q(e),r&&G(e)},e._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(D[n]+d+1)]++,e.dyn_dtree[2*P(t)]++),e.last_lit===e.lit_bufsize-1},e._tr_align=function(e){R(e,2,3),z(e,_,E),16===(e=e).bi_valid?(i(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}}),oe=t(function(e,t){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}}),se=t(function(e,t){var s=(()=>{for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})();t.exports=function(e,t,n,r){var i=s,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}}),Z=t(function(e,t){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}}),ue=t(function(e){var s,h=J(),u=ae(),f=oe(),d=se(),z=Z(),c=0,l=4,p=0,g=-2,N=-1,L=4,j=2,m=8,H=9,t=286,U=30,M=19,q=2*t+1,G=15,_=3,y=258,v=y+_+1,b=42,w=113,k=1,S=2,E=3,C=4;function A(e,t){return e.msg=z[t],t}function x(e){return(e<<1)-(4<e?9:0)}function O(e){for(var t=e.length;0<=--t;)e[t]=0}function D(e){var t=e.state,n=t.pending;0!==(n=e.avail_out<n?e.avail_out:n)&&(h.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending)&&(t.pending_out=0)}function B(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,D(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function T(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function a(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.w_size-v<e.strstart?e.strstart-(e.w_size-v):0,c=e.window,l=e.w_mask,h=e.prev,f=e.strstart+y,d=c[a+o-1],p=c[a+o];e.good_match<=e.prev_length&&(i>>=2),e.lookahead<s&&(s=e.lookahead);do{if(c[(n=t)+o]===p&&c[n+o-1]===d&&c[n]===c[a]&&c[++n]===c[a+1]){for(a+=2,n++;c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<f;);if(r=y-(f-a),a=f-y,o<r){if(e.match_start=t,s<=(o=r))break;d=c[a+o-1],p=c[a+o]}}}while((t=h[t&l])>u&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,n,r,i,a,o,s,u,c,l=e.w_size;do{if(u=e.window_size-e.lookahead-e.strstart,l+(l-v)<=e.strstart){for(h.arraySet(e.window,e.window,l,l,0),e.match_start-=l,e.strstart-=l,e.block_start-=l,t=n=e.hash_size;r=e.head[--t],e.head[t]=l<=r?r-l:0,--n;);for(t=n=l;r=e.prev[--t],e.prev[t]=l<=r?r-l:0,--n;);u+=l}if(0===e.strm.avail_in)break;if(o=e.window,s=e.strstart+e.lookahead,u=u,c=void 0,c=(a=e.strm).avail_in,n=0===(c=u<c?u:c)?0:(a.avail_in-=c,h.arraySet(o,a.input,a.next_in,c,s),1===a.state.wrap?a.adler=f(a.adler,o,c,s):2===a.state.wrap&&(a.adler=d(a.adler,o,c,s)),a.next_in+=c,a.total_in+=c,c),e.lookahead+=n,_<=e.lookahead+e.insert)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+_-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<_)););}while(e.lookahead<v&&0!==e.strm.avail_in)}function n(e,t){for(var n,r;;){if(e.lookahead<v){if(F(e),e.lookahead<v&&t===c)return k;if(0===e.lookahead)break}if(n=0,_<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-v&&(e.match_length=a(e,n)),_<=e.match_length)if(r=u._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(B(e,!1),0===e.strm.avail_out))return k}return e.insert=e.strstart<_-1?e.strstart:_-1,t===l?(B(e,!0),0===e.strm.avail_out?E:C):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?k:S}function r(e,t){for(var n,r,i;;){if(e.lookahead<v){if(F(e),e.lookahead<v&&t===c)return k;if(0===e.lookahead)break}if(n=0,_<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=_-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-v&&(e.match_length=a(e,n),e.match_length<=5)&&(1===e.strategy||e.match_length===_&&4096<e.strstart-e.match_start)&&(e.match_length=_-1),_<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-_,r=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=_-1,e.strstart++,r&&(B(e,!1),0===e.strm.avail_out))return k}else if(e.match_available){if((r=u._tr_tally(e,0,e.window[e.strstart-1]))&&B(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return k}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=u._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<_-1?e.strstart:_-1,t===l?(B(e,!0),0===e.strm.avail_out?E:C):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?k:S}function i(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new h.Buf16(2*q),this.dyn_dtree=new h.Buf16(2*(2*U+1)),this.bl_tree=new h.Buf16(2*(2*M+1)),O(this.dyn_ltree),O(this.dyn_dtree),O(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(G+1),this.heap=new h.Buf16(2*t+1),O(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*t+1),O(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function o(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=j,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?b:w,e.adler=2===t.wrap?0:1,t.last_flush=c,u._tr_init(t),p):A(e,g)}function P(e){var t=o(e);return t===p&&((e=e.state).window_size=2*e.w_size,O(e.head),e.max_lazy_match=s[e.level].max_lazy,e.good_match=s[e.level].good_length,e.nice_match=s[e.level].nice_length,e.max_chain_length=s[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=_-1,e.match_available=0,e.ins_h=0),t}function R(e,t,n,r,i,a){if(!e)return g;var o=1;if(t===N&&(t=6),r<0?(o=0,r=-r):15<r&&(o=2,r-=16),i<1||H<i||n!==m||r<8||15<r||t<0||9<t||a<0||L<a)return A(e,g);8===r&&(r=9);var s=new W;return(e.state=s).strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+_-1)/_),s.window=new h.Buf8(2*s.w_size),s.head=new h.Buf16(s.hash_size),s.prev=new h.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new h.Buf8(s.pending_buf_size),s.d_buf=+s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,P(e)}s=[new i(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===c)return k;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,B(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-v&&(B(e,!1),0===e.strm.avail_out))return k}return e.insert=0,t===l?(B(e,!0),0===e.strm.avail_out?E:C):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out),k)}),new i(4,4,8,4,n),new i(4,5,16,8,n),new i(4,6,32,32,n),new i(4,4,16,16,r),new i(8,16,32,32,r),new i(8,16,128,128,r),new i(8,32,128,256,r),new i(32,128,258,1024,r),new i(32,258,258,4096,r)],e.deflateInit=function(e,t){return R(e,t,m,15,8,0)},e.deflateInit2=R,e.deflateReset=P,e.deflateResetKeep=o,e.deflateSetHeader=function(e,t){return e&&e.state&&2===e.state.wrap?(e.state.gzhead=t,p):g},e.deflate=function(e,t){var n,r,i,a;if(!e||!e.state||5<t||t<0)return e?A(e,g):g;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==l)return A(e,0===e.avail_out?-5:g);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===b&&(2===r.wrap?(e.adler=0,I(r,31),I(r,139),I(r,8),r.gzhead?(I(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),I(r,255&r.gzhead.time),I(r,r.gzhead.time>>8&255),I(r,r.gzhead.time>>16&255),I(r,r.gzhead.time>>24&255),I(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),I(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(I(r,255&r.gzhead.extra.length),I(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=d(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(I(r,0),I(r,0),I(r,0),I(r,0),I(r,0),I(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),I(r,3),r.status=w)):(o=m+(r.w_bits-8<<4)<<8,o|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(o|=32),o+=31-o%31,r.status=w,T(r,o),0!==r.strstart&&(T(r,e.adler>>>16),T(r,65535&e.adler)),e.adler=1)),69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=d(e.adler,r.pending_buf,r.pending-i,i)),D(e),i=r.pending,r.pending!==r.pending_buf_size));)I(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=d(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=d(e.adler,r.pending_buf,r.pending-i,i)),D(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}}while(a=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,I(r,a),0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=d(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=d(e.adler,r.pending_buf,r.pending-i,i)),D(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}}while(a=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,I(r,a),0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=d(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&D(e),r.pending+2<=r.pending_buf_size&&(I(r,255&e.adler),I(r,e.adler>>8&255),e.adler=0,r.status=w)):r.status=w),0!==r.pending){if(D(e),0===e.avail_out)return r.last_flush=-1,p}else if(0===e.avail_in&&x(t)<=x(n)&&t!==l)return A(e,-5);if(666===r.status&&0!==e.avail_in)return A(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==c&&666!==r.status){var o=2===r.strategy?((e,t)=>{for(var n;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===c)return k;break}if(e.match_length=0,n=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(B(e,!1),0===e.strm.avail_out))return k}return e.insert=0,t===l?(B(e,!0),0===e.strm.avail_out?E:C):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?k:S})(r,t):3===r.strategy?((e,t)=>{for(var n,r,i,a,o=e.window;;){if(e.lookahead<=y){if(F(e),e.lookahead<=y&&t===c)return k;if(0===e.lookahead)break}if(e.match_length=0,_<=e.lookahead&&0<e.strstart&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){for(a=e.strstart+y;r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a;);e.match_length=y-(a-i),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(_<=e.match_length?(n=u._tr_tally(e,1,e.match_length-_),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(B(e,!1),0===e.strm.avail_out))return k}return e.insert=0,t===l?(B(e,!0),0===e.strm.avail_out?E:C):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?k:S})(r,t):s[r.level].func(r,t);if(o!==E&&o!==C||(r.status=666),o===k||o===E)return 0===e.avail_out&&(r.last_flush=-1),p;if(o===S&&(1===t?u._tr_align(r):5!==t&&(u._tr_stored_block(r,0,0,!1),3===t)&&(O(r.head),0===r.lookahead)&&(r.strstart=0,r.block_start=0,r.insert=0),D(e),0===e.avail_out))return r.last_flush=-1,p}return t!==l||!(r.wrap<=0)&&(2===r.wrap?(I(r,255&e.adler),I(r,e.adler>>8&255),I(r,e.adler>>16&255),I(r,e.adler>>24&255),I(r,255&e.total_in),I(r,e.total_in>>8&255),I(r,e.total_in>>16&255),I(r,e.total_in>>24&255)):(T(r,e.adler>>>16),T(r,65535&e.adler)),D(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending)?p:1},e.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==b&&69!==t&&73!==t&&91!==t&&103!==t&&t!==w&&666!==t?A(e,g):(e.state=null,t===w?A(e,-3):p):g},e.deflateSetDictionary=function(e,t){var n,r,i,a,o,s,u,c=t.length;if(!e||!e.state||2===(a=(n=e.state).wrap)||1===a&&n.status!==b||n.lookahead)return g;for(1===a&&(e.adler=f(e.adler,t,c,0)),n.wrap=0,c>=n.w_size&&(0===a&&(O(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new h.Buf8(n.w_size),h.arraySet(u,t,c-n.w_size,n.w_size,0),t=u,c=n.w_size),u=e.avail_in,o=e.next_in,s=e.input,e.avail_in=c,e.next_in=0,e.input=t,F(n);n.lookahead>=_;){for(r=n.strstart,i=n.lookahead-(_-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+_-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=_-1,F(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=_-1,n.match_available=0,e.next_in=o,e.input=s,e.avail_in=u,n.wrap=a,p},e.deflateInfo="pako deflate (from Nodeca project)"}),ce=t(function(e){var u=J(),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var t,c=new u.Buf8(256),t=0;t<256;t++)c[t]=252<=t?6:248<=t?5:240<=t?4:224<=t?3:192<=t?2:1;function l(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,u.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}c[254]=c[254]=1,e.string2buf=function(e){for(var t,n,r,i,a=e.length,o=0,s=0;s<a;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),o+=n<128?1:n<2048?2:n<65536?3:4;for(t=new u.Buf8(o),s=i=0;i<o;s++)55296==(64512&(n=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(n=65536+(n-55296<<10)+(r-56320),s++),n<128?t[i++]=n:(n<2048?t[i++]=192|n>>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t},e.buf2binstring=function(e){return l(e,e.length)},e.binstring2buf=function(e){for(var t=new u.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},e.buf2string=function(e,t){for(var n,r,i=t||e.length,a=new Array(2*i),o=0,s=0;s<i;)if((n=e[s++])<128)a[o++]=n;else if(4<(r=c[n]))a[o++]=65533,s+=r-1;else{for(n&=2===r?31:3===r?15:7;1<r&&s<i;)n=n<<6|63&e[s++],r--;1<r?a[o++]=65533:n<65536?a[o++]=n:(n-=65536,a[o++]=55296|n>>10&1023,a[o++]=56320|1023&n)}return l(a,o)},e.utf8border=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+c[e[n]]>t?n:t}}),le=t(function(e,t){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}),he=t(function(e){var o=ue(),s=J(),u=ce(),n=Z(),r=le(),c=Object.prototype.toString;function i(e){if(!(this instanceof i))return new i(e);this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e=this.options;if(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,(this.strm.avail_out=0)!==(t=o.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy)))throw new Error(n[t]);if(e.header&&o.deflateSetHeader(this.strm,e.header),e.dictionary){var t,e="string"==typeof e.dictionary?u.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(t=o.deflateSetDictionary(this.strm,e)))throw new Error(n[t]);this._dict_set=!0}}function a(e,t){t=new i(t);if(t.push(e,!0),t.err)throw t.msg||n[t.err];return t.result}i.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=u.string2buf(e):"[object ArrayBuffer]"===c.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new s.Buf8(a),i.next_out=0,i.avail_out=a),1!==(n=o.deflate(i,r))&&0!==n)return this.onEnd(n),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(u.buf2binstring(s.shrinkBuf(i.output,i.next_out))):this.onData(s.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==n);return 4===r?(n=o.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):(2===r&&(this.onEnd(0),i.avail_out=0),!0)},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},e.Deflate=i,e.deflate=a,e.deflateRaw=function(e,t){return(t=t||{}).raw=!0,a(e,t)},e.gzip=function(e,t){return(t=t||{}).gzip=!0,a(e,t)}}),fe=t(function(e,t){t.exports=function(e,t){var n,r,i,a,o,s,u=e.state,c=e.next_in,l=e.input,h=c+(e.avail_in-5),f=e.next_out,d=e.output,p=f-(t-e.avail_out),g=f+(e.avail_out-257),m=u.dmax,_=u.wsize,y=u.whave,v=u.wnext,b=u.window,w=u.hold,k=u.bits,S=u.lencode,E=u.distcode,C=(1<<u.lenbits)-1,A=(1<<u.distbits)-1;e:do{for(k<15&&(w+=l[c++]<<k,k+=8,w+=l[c++]<<k,k+=8),n=S[w&C];;){if(w>>>=r=n>>>24,k-=r,0===(r=n>>>16&255))d[f++]=65535&n;else{if(!(16&r)){if(0==(64&r)){n=S[(65535&n)+(w&(1<<r)-1)];continue}if(32&r){u.mode=12;break e}e.msg="invalid literal/length code",u.mode=30;break e}for(i=65535&n,(r&=15)&&(k<r&&(w+=l[c++]<<k,k+=8),i+=w&(1<<r)-1,w>>>=r,k-=r),k<15&&(w+=l[c++]<<k,k+=8,w+=l[c++]<<k,k+=8),n=E[w&A];;){if(w>>>=r=n>>>24,k-=r,!(16&(r=n>>>16&255))){if(0==(64&r)){n=E[(65535&n)+(w&(1<<r)-1)];continue}e.msg="invalid distance code",u.mode=30;break e}if(a=65535&n,k<(r&=15)&&(w+=l[c++]<<k,(k+=8)<r)&&(w+=l[c++]<<k,k+=8),m<(a+=w&(1<<r)-1)){e.msg="invalid distance too far back",u.mode=30;break e}if(w>>>=r,k-=r,(r=f-p)<a){if(y<(r=a-r)&&u.sane){e.msg="invalid distance too far back",u.mode=30;break e}if(s=b,(o=0)===v){if(o+=_-r,r<i){for(i-=r;d[f++]=b[o++],--r;);o=f-a,s=d}}else if(v<r){if(o+=_+v-r,(r-=v)<i){for(i-=r;d[f++]=b[o++],--r;);if(o=0,v<i){for(i-=r=v;d[f++]=b[o++],--r;);o=f-a,s=d}}}else if(o+=v-r,r<i){for(i-=r;d[f++]=b[o++],--r;);o=f-a,s=d}for(;2<i;)d[f++]=s[o++],d[f++]=s[o++],d[f++]=s[o++],i-=3;i&&(d[f++]=s[o++],1<i)&&(d[f++]=s[o++])}else{for(o=f-a;d[f++]=d[o++],d[f++]=d[o++],d[f++]=d[o++],2<(i-=3););i&&(d[f++]=d[o++],1<i)&&(d[f++]=d[o++])}break}}break}}while(c<h&&f<g);w&=(1<<(k-=(i=k>>3)<<3))-1,e.next_in=c-=i,e.next_out=f,e.avail_in=c<h?h-c+5:5-(c-h),e.avail_out=f<g?g-f+257:257-(f-g),u.hold=w,u.bits=k}}),de=t(function(e,t){var P=J(),R=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],z=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],N=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],L=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,r,i,a,o,s){for(var u,c,l,h,f,d,p,g,m,_=s.bits,y=0,v=0,b=0,w=0,k=0,S=0,E=0,C=0,A=0,x=0,O=null,D=0,B=new P.Buf16(16),I=new P.Buf16(16),T=null,F=0,y=0;y<=15;y++)B[y]=0;for(v=0;v<r;v++)B[t[n+v]]++;for(k=_,w=15;1<=w&&0===B[w];w--);if(w<k&&(k=w),0===w)i[a++]=20971520,i[a++]=20971520,s.bits=1;else{for(b=1;b<w&&0===B[b];b++);for(k<b&&(k=b),y=C=1;y<=15;y++)if((C=(C<<1)-B[y])<0)return-1;if(0<C&&(0===e||1!==w))return-1;for(I[1]=0,y=1;y<15;y++)I[y+1]=I[y]+B[y];for(v=0;v<r;v++)0!==t[n+v]&&(o[I[t[n+v]]++]=v);if(d=0===e?(O=T=o,19):1===e?(O=R,D-=257,T=z,F-=257,256):(O=N,T=L,-1),y=b,f=a,E=v=x=0,l=-1,h=(A=1<<(S=k))-1,1===e&&852<A||2===e&&592<A)return 1;for(;;){for(m=o[v]<d?(g=0,o[v]):o[v]>d?(g=T[F+o[v]],O[D+o[v]]):(g=96,0),u=1<<(p=y-E),b=c=1<<S;i[f+(x>>E)+(c-=u)]=p<<24|g<<16|m|0,0!==c;);for(u=1<<y-1;x&u;)u>>=1;if(0!==u?x=(x&u-1)+u:x=0,v++,0==--B[y]){if(y===w)break;y=t[n+o[v]]}if(k<y&&(x&h)!==l){for(f+=b,C=1<<(S=y-(E=0===E?k:E));S+E<w&&!((C-=B[S+E])<=0);)S++,C<<=1;if(A+=1<<S,1===e&&852<A||2===e&&592<A)return 1;i[l=x&h]=k<<24|S<<16|f-a|0}}0!==x&&(i[f+x]=y-E<<24|64<<16|0),s.bits=k}return 0}}),pe=t(function(e){var I=J(),T=oe(),F=se(),P=fe(),R=de(),z=1,N=2,L=0,j=-2,H=1,n=852,r=592;function U(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=H,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new I.Buf32(n),t.distcode=t.distdyn=new I.Buf32(r),t.sane=1,t.back=-1,L):j}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):j}function s(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?j:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,o(e))}function t(e,t){var n;return e?(n=new i,(e.state=n).window=null,(n=s(e,t))!==L&&(e.state=null),n):j}var M,q,G=!0;function W(e,t,n,r){var i,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new I.Buf8(e.wsize)),e.wsize<=r?(I.arraySet(e.window,t,n-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(r<(i=e.wsize-e.wnext)&&(i=r),I.arraySet(e.window,t,n-r,i,e.wnext),(r-=i)?(I.arraySet(e.window,t,n-r,r,0),e.wnext=r,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0}e.inflateReset=o,e.inflateReset2=s,e.inflateResetKeep=a,e.inflateInit=function(e){return t(e,15)},e.inflateInit2=t,e.inflate=function(e,t){var n,r,i,a,o,s,u,c,l,h,f,d,p,g,m,_,y,v,b,w,k,S,E,C,A=0,x=new I.Buf8(4),O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return j;12===(n=e.state).mode&&(n.mode=13),o=e.next_out,i=e.output,a=e.next_in,r=e.input,c=n.hold,l=n.bits,h=s=e.avail_in,f=u=e.avail_out,S=L;e:for(;;)switch(n.mode){case H:if(0===n.wrap)n.mode=13;else{for(;l<16;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(2&n.wrap&&35615===c)x[n.check=0]=255&c,x[1]=c>>>8&255,n.check=F(n.check,x,2,0),l=c=0,n.mode=2;else if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31)e.msg="incorrect header check",n.mode=30;else if(8!=(15&c))e.msg="unknown compression method",n.mode=30;else{if(l-=4,k=8+(15&(c>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&c?10:12,l=c=0}}break;case 2:for(;l<16;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(x[0]=255&c,x[1]=c>>>8&255,n.check=F(n.check,x,2,0)),l=c=0,n.mode=3;case 3:for(;l<32;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}n.head&&(n.head.time=c),512&n.flags&&(x[0]=255&c,x[1]=c>>>8&255,x[2]=c>>>16&255,x[3]=c>>>24&255,n.check=F(n.check,x,4,0)),l=c=0,n.mode=4;case 4:for(;l<16;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(x[0]=255&c,x[1]=c>>>8&255,n.check=F(n.check,x,2,0)),l=c=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(x[0]=255&c,x[1]=c>>>8&255,n.check=F(n.check,x,2,0)),l=c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((d=s<(d=n.length)?s:d)&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),I.arraySet(n.head.extra,r,a,d,k)),512&n.flags&&(n.check=F(n.check,r,d,a)),s-=d,a+=d,n.length-=d),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;for(d=0;k=r[a+d++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k)),k&&d<s;);if(512&n.flags&&(n.check=F(n.check,r,d,a)),s-=d,a+=d,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;for(d=0;k=r[a+d++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k)),k&&d<s;);if(512&n.flags&&(n.check=F(n.check,r,d,a)),s-=d,a+=d,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}l=c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;l<32;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}e.adler=n.check=U(c),l=c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=l,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last)c>>>=7&l,l-=7&l,n.mode=27;else{for(;l<3;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}switch(n.last=1&c,--l,3&(c>>>=1)){case 0:n.mode=14;break;case 1:D=B=void 0;var D,B=n;if(G){for(M=new I.Buf32(512),q=new I.Buf32(32),D=0;D<144;)B.lens[D++]=8;for(;D<256;)B.lens[D++]=9;for(;D<280;)B.lens[D++]=7;for(;D<288;)B.lens[D++]=8;for(R(z,B.lens,0,288,M,0,B.work,{bits:9}),D=0;D<32;)B.lens[D++]=5;R(N,B.lens,0,32,q,0,B.work,{bits:5}),G=!1}if(B.lencode=M,B.lenbits=9,B.distcode=q,B.distbits=5,n.mode=20,6!==t)break;c>>>=2,l-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}c>>>=2,l-=2}break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&c,l=c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(d=n.length){if(0===(d=u<(d=s<d?s:d)?u:d))break e;I.arraySet(i,r,a,d,o),s-=d,a+=d,u-=d,o+=d,n.length-=d}else n.mode=12;break;case 17:for(;l<14;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}n.lens[O[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=R(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;_=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((m=A>>>24)<=l);){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(y<16)c>>>=m,l-=m,n.lens[n.have++]=y;else{if(16===y){for(C=m+2;l<C;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(c>>>=m,l-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(C=m+3;l<C;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}k=0,d=3+(7&(c>>>=m)),c>>>=3,l=l-m-3}else{for(C=m+7;l<C;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}k=0,d=11+(127&(c>>>=m)),c>>>=7,l=l-m-7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;d--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,E={bits:n.lenbits},S=R(z,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=R(N,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=s&&258<=u){e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=l,P(e,f),o=e.next_out,i=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,l=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;_=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((m=A>>>24)<=l);){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(_&&0==(240&_)){for(v=m,b=_,w=y;_=(A=n.lencode[w+((c&(1<<v+b)-1)>>v)])>>>16&255,y=65535&A,!(v+(m=A>>>24)<=l);){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}c>>>=v,l-=v,n.back+=v}if(c>>>=m,l-=m,n.back+=m,n.length=y,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=12;break}if(64&_){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(C=n.extra;l<C;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(A=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&A,!((m=A>>>24)<=l);){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(0==(240&_)){for(v=m,b=_,w=y;_=(A=n.distcode[w+((c&(1<<v+b)-1)>>v)])>>>16&255,y=65535&A,!(v+(m=A>>>24)<=l);){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}c>>>=v,l-=v,n.back+=v}if(c>>>=m,l-=m,n.back+=m,64&_){e.msg="invalid distance code",n.mode=30;break}n.offset=y,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(C=n.extra;l<C;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===u)break e;if(n.offset>(d=f-u)){if((d=n.offset-d)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}p=d>n.wnext?(d-=n.wnext,n.wsize-d):n.wnext-d,d>n.length&&(d=n.length),g=n.window}else g=i,p=o-n.offset,d=n.length;for(u-=d=u<d?u:d,n.length-=d;i[o++]=g[p++],--d;);0===n.length&&(n.mode=21);break;case 26:if(0===u)break e;i[o++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break e;s--,c|=r[a++]<<l,l+=8}if(f-=u,e.total_out+=f,n.total+=f,f&&(e.adler=n.check=(n.flags?F:T)(n.check,i,f,o-f)),f=u,(n.flags?c:U(c))!==n.check){e.msg="incorrect data check",n.mode=30;break}l=c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break e;s--,c+=r[a++]<<l,l+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}l=c=0}n.mode=29;case 29:S=1;break e;case 30:S=-3;break e;case 31:return-4;default:return j}return e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=l,(n.wsize||f!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&W(e,e.output,e.next_out,f-e.avail_out)?(n.mode=31,-4):(h-=e.avail_in,f-=e.avail_out,e.total_in+=h,e.total_out+=f,n.total+=f,n.wrap&&f&&(e.adler=n.check=(n.flags?F:T)(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),S=(0==h&&0===f||4===t)&&S===L?-5:S)},e.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,L):j},e.inflateGetHeader=function(e,t){return e&&e.state&&0!=(2&(e=e.state).wrap)?((e.head=t).done=!1,L):j},e.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state&&(0===(n=e.state).wrap||11===n.mode)?11===n.mode&&T(1,t,r,0)!==n.check?-3:W(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,L):j},e.inflateInfo="pako inflate (from Nodeca project)"}),ge=t(function(e,t){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}}),me=t(function(e,t){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}}),_e=t(function(e){var h=pe(),f=J(),d=ce(),p=ge(),n=Z(),r=le(),i=me(),g=Object.prototype.toString;function a(e){if(!(this instanceof a))return new a(e);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0,h.inflateInit2(this.strm,t.windowBits));if(e!==p.Z_OK)throw new Error(n[e]);if(this.header=new i,h.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=d.string2buf(t.dictionary):"[object ArrayBuffer]"===g.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=h.inflateSetDictionary(this.strm,t.dictionary))!==p.Z_OK)throw new Error(n[e])}function o(e,t){t=new a(t);if(t.push(e,!0),t.err)throw t.msg||n[t.err];return t.result}a.prototype.push=function(e,t){var n,r,i,a,o,s=this.strm,u=this.options.chunkSize,c=this.options.dictionary,l=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?p.Z_FINISH:p.Z_NO_FLUSH,"string"==typeof e?s.input=d.binstring2buf(e):"[object ArrayBuffer]"===g.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new f.Buf8(u),s.next_out=0,s.avail_out=u),(n=(n=h.inflate(s,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&c?h.inflateSetDictionary(this.strm,c):n)===p.Z_BUF_ERROR&&!0===l&&(n=p.Z_OK,l=!1),n!==p.Z_STREAM_END&&n!==p.Z_OK)return this.onEnd(n),!(this.ended=!0)}while(!s.next_out||0!==s.avail_out&&n!==p.Z_STREAM_END&&(0!==s.avail_in||r!==p.Z_FINISH&&r!==p.Z_SYNC_FLUSH)||("string"===this.options.to?(i=d.utf8border(s.output,s.next_out),a=s.next_out-i,o=d.buf2string(s.output,i),s.next_out=a,s.avail_out=u-a,a&&f.arraySet(s.output,s.output,i,a,0),this.onData(o)):this.onData(f.shrinkBuf(s.output,s.next_out))),0===s.avail_in&&0===s.avail_out&&(l=!0),(0<s.avail_in||0===s.avail_out)&&n!==p.Z_STREAM_END);return(r=n===p.Z_STREAM_END?p.Z_FINISH:r)===p.Z_FINISH?(n=h.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===p.Z_OK):(r===p.Z_SYNC_FLUSH&&(this.onEnd(p.Z_OK),s.avail_out=0),!0)},a.prototype.onData=function(e){this.chunks.push(e)},a.prototype.onEnd=function(e){e===p.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},e.Inflate=a,e.inflate=o,e.inflateRaw=function(e,t){return(t=t||{}).raw=!0,o(e,t)},e.ungzip=o}),ye=t(function(e,t){var n={};(0,J().assign)(n,he(),_e(),ge()),t.exports=n}),ve=t(function(e){var t=("undefined"==typeof Uint8Array?"undefined":_typeof(Uint8Array))<"u"&&("undefined"==typeof Uint16Array?"undefined":_typeof(Uint16Array))<"u"&&("undefined"==typeof Uint32Array?"undefined":_typeof(Uint32Array))<"u",n=ye(),r=E(),i=C(),a=t?"uint8array":"array";function o(e,t){i.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}e.magic="\b\0",r.inherits(o,i),o.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(a,e.data),!1)},o.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},o.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},e.compressWorker=function(e){return new o("Deflate",e)},e.uncompressWorker=function(){return new o("Inflate",{})}}),be=t(function(e){var t=C();e.STORE={magic:"\0\0",compressWorker:function(e){return new t("STORE compression")},uncompressWorker:function(){return new t("STORE decompression")}},e.DEFLATE=ve()}),we=t(function(e){e.LOCAL_FILE_HEADER="PK",e.CENTRAL_FILE_HEADER="PK",e.CENTRAL_DIRECTORY_END="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",e.ZIP64_CENTRAL_DIRECTORY_END="PK",e.DATA_DESCRIPTOR="PK\b"}),ke=t(function(e,t){function y(e,t){for(var n="",r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function r(e,t,n,r,i,a){var o=e.file,s=e.compression,u=a!==b.utf8encode,c=v.transformTo("string",a(o.name)),l=v.transformTo("string",b.utf8encode(o.name)),h=o.comment,a=v.transformTo("string",a(h)),f=v.transformTo("string",b.utf8encode(h)),d=l.length!==o.name.length,h=f.length!==h.length,p="",g=o.dir,m=o.date,_={crc32:0,compressedSize:0,uncompressedSize:0},n=(t&&!n||(_.crc32=e.crc32,_.compressedSize=e.compressedSize,_.uncompressedSize=e.uncompressedSize),0),e=(t&&(n|=8),u||!d&&!h||(n|=2048),0),t=0,m=(g&&(e|=16),"UNIX"===i?(t=798,e|=(u=o.unixPermissions,i=g,(65535&(u?u:i?16893:33204))<<16)):(t=20,e|=63&(o.dosPermissions||0)),g=m.getUTCHours(),g<<=6,g=(g=(g|m.getUTCMinutes())<<5)|m.getUTCSeconds()/2,u=m.getUTCFullYear()-1980,u=(u=((u<<=4)|m.getUTCMonth()+1)<<5)|m.getUTCDate(),d&&(i=y(1,1)+y(w(c),4)+l,p+="up"+y(i.length,2)+i),h&&(o=y(1,1)+y(w(a),4)+f,p+="uc"+y(o.length,2)+o),""),m=(m=(m=(m=(m=(m=(m=(m=(m=(m+="\n\0")+y(n,2))+s.magic)+y(g,2))+y(u,2))+y(_.crc32,4))+y(_.compressedSize,4))+y(_.uncompressedSize,4))+y(c.length,2))+y(p.length,2);return{fileRecord:k.LOCAL_FILE_HEADER+m+c+p,dirRecord:k.CENTRAL_FILE_HEADER+y(t,2)+m+y(a.length,2)+"\0\0\0\0"+y(e,4)+y(r,4)+c+p+a}}var v=E(),i=C(),b=A(),w=l(),k=we();function n(e,t,n,r){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(n,i),n.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},n.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},n.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=r(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:(t=e,k.DATA_DESCRIPTOR+y(t.crc32,4)+y(t.compressedSize,4)+y(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,n=((e,t,n,r,i)=>(i=v.transformTo("string",i(r)),k.CENTRAL_DIRECTORY_END+"\0\0\0\0"+y(e,2)+y(e,2)+y(t,4)+y(n,4)+y(i.length,2)+i))(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},n.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=n}),Se=t(function(e){var c=be(),n=ke();e.generateWorker=function(e,o,t){var s=new n(o.streamFiles,t,o.platform,o.encodeFileName),u=0;try{e.forEach(function(e,t){u++;var n=((e,t)=>{if(t=c[e=e||t])return t;throw new Error(e+" is not a valid compression method !")})(t.options.compression,o.compression),r=t.options.compressionOptions||o.compressionOptions||{},i=t.dir,a=t.date;t._compressWorker(n,r).withStreamInfo("file",{name:e,dir:i,date:a,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(s)}),s.entriesCount=u}catch(e){s.error(e)}return s}}),Ee=t(function(e,t){var n=E(),r=C();function i(e,t){r.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,r),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},i.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i}),Ce=t(function(e,t){function o(e){var t=(e="/"===e.slice(-1)?e.substring(0,e.length-1):e).lastIndexOf("/");return 0<t?e.substring(0,t):""}function s(e,t){return t=_typeof(t)<"u"?t:l.createFolders,e=_(e),this.files[e]||m.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var i=A(),u=E(),c=C(),a=x(),l=O(),h=D(),f=ie(),d=Se(),p=v(),g=Ee(),m=function(e,t,n){var r=u.getTypeOf(t),i=u.extend(n||{},l),a=(i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(e=_(e)),i.createFolders&&(a=o(e))&&s.call(this,a,!0),"string"===r&&!1===i.binary&&!1===i.base64);(!n||"u"<_typeof(n.binary))&&(i.binary=!a);(t instanceof h&&0===t.uncompressedSize||i.dir||!t||0===t.length)&&(i.base64=!1,i.binary=!0,t="",i.compression="STORE");r=null,r=t instanceof h||t instanceof c?t:p.isNode&&p.isStream(t)?new g(e,t):u.prepareContent(e,t,i.binary,i.optimizedBinaryString,i.base64),n=new f(e,r,i);this.files[e]=n},_=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],n=t.slice(this.root.length,t.length),n&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(n){var r=[];return this.forEach(function(e,t){n(e,t)&&r.push(t)}),r},file:function(e,t,n){var r,i;return 1===arguments.length?y(e)?(r=e,this.filter(function(e,t){return!t.dir&&r.test(e)})):(i=this.files[this.root+e])&&!i.dir?i:null:(e=this.root+e,m.call(this,e,t,n),this)},folder:function(n){var e,t;return n?y(n)?this.filter(function(e,t){return t.dir&&n.test(e)}):(e=this.root+n,e=s.call(this,e),(t=this.clone()).root=e.name,t):this},remove:function(n){n=this.root+n;var e=this.files[n];if(e||("/"!==n.slice(-1)&&(n+="/"),e=this.files[n]),e&&!e.dir)delete this.files[n];else for(var t=this.filter(function(e,t){return t.name.slice(0,n.length)===n}),r=0;r<t.length;r++)delete this.files[t[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t={};try{if((t=u.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");u.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var n=t.comment||this.comment||"",r=d.generateWorker(this,t,n)}catch(e){(r=new c("error")).error(e)}return new a(r,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}}),Ae=t(function(e,t){var n=E();function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r}),xe=t(function(e,t){var n=Ae();function r(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}E().inherits(r,n),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),e=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&e===i[3]},r.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},t.exports=r}),Oe=t(function(e,t){var n=Ae();function r(e){n.call(this,e)}E().inherits(r,n),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r}),De=t(function(e,t){var n=xe();function r(e){n.call(this,e)}E().inherits(r,n),r.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},t.exports=r}),Be=t(function(e,t){var n=De();function r(e){n.call(this,e)}E().inherits(r,n),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r}),Ie=t(function(e,t){var n=E(),r=p(),i=xe(),a=Oe(),o=Be(),s=De();t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new o(e):r.uint8array?new s(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new a(e)}}),Te=t(function(e,t){var n=Ie(),r=E(),i=D(),a=l(),o=A(),s=be(),u=p();function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=(e=>{for(var t in s)if(s.hasOwnProperty(t)&&s[t].magic===e)return s[t];return null})(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){var t;this.extraFields[1]&&(t=n(this.extraFields[1].value),this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS)&&(this.diskNumberStart=t.readInt(4))},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e,t=u.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=r.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=r.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return!t||1!==(e=n(t.value)).readInt(1)||a(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return!t||1!==(e=n(t.value)).readInt(1)||a(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}},t.exports=c}),Fe=t(function(e,t){var n=Ie(),r=E(),i=we(),a=Te(),o=(A(),p());function s(e){this.files=[],this.loadOptions=e}s.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);e=this.reader.readString(4)===t;return this.reader.setIndex(n),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",t=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw!this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e);if(0<e)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=s}),Pe=t(function(e,t){var n=E(),o=m(),r=A(),s=Fe(),u=ne(),c=v();t.exports=function(e,i){var a=this;return i=n.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),c.isNode&&c.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,i.optimizedBinaryString,i.base64).then(function(e){var t=new s(i);return t.load(e),t}).then(function(e){var t=[o.Promise.resolve(e)],n=e.files;if(i.checkCRC32)for(var r=0;r<n.length;r++)t.push((r=>new o.Promise(function(e,t){var n=r.decompressed.getContentWorker().pipe(new u);n.on("error",function(e){t(e)}).on("end",function(){n.streamInfo.crc32!==r.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()}))(n[r]));return o.Promise.all(t)}).then(function(e){for(var e=e.shift(),t=e.files,n=0;n<t.length;n++){var r=t[n];a.file(r.fileNameStr,r.decompressed,{binary:!0,optimizedBinaryString:!0,date:r.date,dir:r.dir,comment:r.fileCommentStr.length?r.fileCommentStr:null,unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions,createFolders:i.createFolders})}return e.zipComment.length&&(a.comment=e.zipComment),a})}}),Re=t(function(e,t){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e,t=new n;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=Ce()).loadAsync=Pe(),n.support=p(),n.defaults=O(),n.version="3.7.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=m(),t.exports=n}),u={},ze=u,Ne={Command:function(){return Le},jszip:function(){return je.default}};for(i in Ne)s(ze,i,{get:Ne[i],enumerable:!0});e.exports=(e=u,r(s({},"__esModule",{value:!0}),e));var u=n(M(),1).default,Le=(u.program,u.Command),je=n(Re())}),ve=Lt(function(e,t){var n,r,i="rpk",a="crossAtomicService";t.exports={MAX_SIZE_SSPK:2097152,MAX_SIZE_SPK:20971520,SIGN_MAGIC:"RPK Sig Block 42",SIGN_MAGIC_APK:"APK Sig Block 42",SIGN_TYPE_FULL_PACKAGE:16777473,SIGN_TYPE_FULL_PACKAGE_APK:1896449818,SIGN_TYPE_FILE_LIST:16777729,CRYPT_TYPE_RSA_SHA256:259,SIGN_HEADER:[48,49,48,13,6,9,96,134,72,1,101,3,4,2,1,5,0,4,32],BEGIN_TAG:165,JOINT_TAG:90,CERT_HEAD:"-----BEGIN CERTIFICATE-----\n",CERT_END:"\n-----END CERTIFICATE-----",setSignType:function(e){return i=e},isApkSign:function(){return"apk"===i},setDssHost:function(e){return n=e},setDssKey:function(e){return r=e},setDssKeyId:function(e){return a=e},getDssHost:function(){return n},getDssKey:function(){return r},getDssKeyId:function(){return a},setDssConfig:function(e){n=e.dssHost,r=e.dssKey}}}),Ge=Lt(function(e,t){var c=ve(),l=22,h=67324752,f=33639248,d=101010256,p=16;t.exports={parserZip:function(e,t){var n,r,i,a,o,s,u={tag:!1,length:e.length,sections:{header:null,central:null,footer:null}};return u.sections.footer=(e=>{var t={tag:!1};if(e&&!(e.length<l))for(var n=e.length-l;0<=n;n--)if(d===e.readInt32LE(n)){t.tag=!0,t.startIndex=n,t.len=e.length-n,t.previous=e.readInt32LE(n+p);break}return t})(e),u.sections.footer.tag&&(u.sections.central=(i=e,a=u.sections.footer.previous,o=u.sections.footer.startIndex-u.sections.footer.previous,s={tag:!1},!i||i.length<a||f===i.readInt32LE(a)&&(s.tag=!0,s.startIndex=a,s.len=o,s.previous=i.readInt32LE(a+42)),s),u.sections.central.tag)&&(o=u.sections.central.previous,i=u.sections.central.startIndex-u.sections.central.previous,t&&(u.sections.sign=(a=o,s={tag:!1},!(t=e)||t.length<a||(a=c.isApkSign()?c.SIGN_MAGIC_APK:c.SIGN_MAGIC,0<(a=t.indexOf(a))&&(n=t.readInt32LE(a-8),r=a+16-n-8,t.readInt32LE(r)===n)&&(s.tag=!0,s.len=n,s.startIndex=a+16,s.previous=r)),s),o=0,i=u.sections.sign.startIndex-u.sections.sign.len-8),u.sections.header=(t=o,n=i,a={tag:!1},!(r=e)||r.length<t||h===r.readInt32LE(t)&&(a.tag=!0,a.startIndex=t,a.len=n,a.previous=-1),a),u.sections.header.tag&&(u.tag=!0)),u},checkZipBuffer:function(e,t){return!e||e.length<=4?(console.log("### Sign Failed, cannot open file: ",t),!1):h===e.readInt32LE(0)||(console.log("### Sign Failed, zip file error: ",t),!1)}}}),tn=Lt(function(e,t){var s,n={decode:function(e){if(void 0===s){var t="= \f\n\r\t \u2028\u2029";for(s=[],a=0;a<64;++a)s["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a)]=a;for(a=0;a<t.length;++a)s[t.charAt(a)]=-1}for(var n=[],r=0,i=0,a=0;a<e.length;++a){var o=e.charAt(a);if("="===o)break;if(-1!==(o=s[o])){if(void 0===o)throw"Illegal character at offset "+a;r|=o,4<=++i?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,i=r=0):r<<=6}}switch(i){case 1:throw"Base64 encoding incomplete: at least 2 bits missing";case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z\d+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z\d+\/=\s]+)====/,unarmor:function(e){var t=n.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw"RegExp out of sync";e=t[2]}return n.decode(e)}};t.exports=n}),nn=Lt(function(e,t){var u,n={decode:function(e){if(void 0===u){var t="0123456789ABCDEF",n=" \f\n\r\t \u2028\u2029";for(u=[],o=0;o<16;++o)u[t.charAt(o)]=o;for(t=t.toLowerCase(),o=10;o<16;++o)u[t.charAt(o)]=o;for(o=0;o<n.length;++o)u[n.charAt(o)]=-1}for(var r=[],i=0,a=0,o=0;o<e.length;++o){var s=e.charAt(o);if("="===s)break;if(-1!==(s=u[s])){if(void 0===s)throw"Illegal character at offset "+o;i|=s,2<=++a?(r[r.length]=i,a=i=0):i<<=4}}if(a)throw"Hex encoding incomplete: 4 bits missing";return r}};t.exports=n}),on=Lt(function(e,t){var n={};n.digest=function(e,t){void 0===t&&(t=0);var n;t^=-1;for(var r=0,i=e.length;r<i;r++)n=255&(t^e.charCodeAt(r)),t=t>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*n,8);return-1^t},t.exports=n}),Ye=Lt(function(e,t){var n=tn(),r=nn(),i=on();t.exports={Base64:n,Hex:r,CRC32:i}}),Xe=Lt(function(e,t){var s=require("crypto"),u=require("http"),c=ve(),l=require("js-base64").encodeURL;var h={"Content-Type":"application/json"};function i(e){var t,n,r,i={version:"1",payload:l(e),paddingMode:"1"},e=(new Date).getTime(),a=(h.Authorization=(t=i,n=(new Date).getTime(),t="POST&"+new URL(c.getDssHost()).pathname+"&&"+JSON.stringify(t)+"&appid="+c.getDssKeyId()+"×tamp="+n,r=c.getDssKey(),r=s.createHmac("sha256",r).update(t).digest("base64"),"CLOUDSOA-HMAC-SHA256 appid=".concat(c.getDssKeyId(),", timestamp=").concat(n,', signature="').concat(r,'"')),h["X-Request-ID"]=e,new URL(c.getDssHost())),o=a.pathname;return new Promise(function(n){var e=u.request({host:a.hostname,port:8108,method:"POST",path:o,headers:h},function(e){var t="";e.on("data",function(e){t+=e}),e.on("end",function(){n(JSON.parse(t))})});e.on("error",function(e){console.error("sign request error: ".concat(e.message))}),e.write(JSON.stringify(i)),e.end()})}function r(e){return n.apply(this,arguments)}function n(){return(n=_asyncToGenerator(_regenerator().m(function e(t){var n,r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,i(t);case 1:return n=e.v,console.log(n),r={},e.a(2,(n&&0===n.status?(r.cert=n.result.cert,r.signature=n.result.signature):console.error("sign request error:"+(n?n.result.errMsg:"")),r))}},e)}))).apply(this,arguments)}function a(e){var t;if(e)return t=(e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4,e+"====".substring(0,t)}function o(){return(o=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return c.setDssConfig(t),e.n=1,r("abc");case 1:return n=e.v,n=a(n.cert).replace(/(.{64})/g,"$1\n"),e.a(2,c.CERT_HEAD+n+c.CERT_END)}},e)}))).apply(this,arguments)}t.exports={getSignDigestOnline:r,Base64UrlToBase64:a,setOnlineParam:function(e,t){c.setDssKey(e),c.setDssHost(t)},generateCertificate:function(e){return o.apply(this,arguments)}}}),er=Lt(function(e,t){var v=ve(),f=Ge(),n=require("js-base64"),o=n.encode,d=n.Base64,s=require("http"),r=require("fs"),p=require("crypto"),a=Ye(),g=Xe(),u="Rsagen",c="Rsagen-V3.0.1.20190615",l="Normal",h="NONEWITHRSA",m="signData";function _(e,t){var n=t.startIndex,e=e.slice(n,t.startIndex+t.len),n=Buffer.alloc(5+t.len);n[0]=v.BEGIN_TAG,n.writeInt32LE(e.length,1),e.copy(n,5),t.sign=B(n)}function y(e){function t(e){e.copy(r,i),i+=e.length}var e=e.sections,n=e.header.sign.length+e.central.sign.length+e.footer.sign.length+5,r=Buffer.alloc(n),i=0;return r.writeInt8(v.JOINT_TAG,0),r.writeInt32LE(3,1),i+=5,t(e.header.sign),t(e.central.sign),t(e.footer.sign),B(r)}function b(e,t){var r={keyId:t.keyId,clientType:u,clientVersion:c,algorithmType:l,userName:t.userName,unSignData:o(e),passwordDigest:t.passwordDigest,algorithm:h,outFileNameArray:[m],encryptPassword:t.encryptPassword},i=new URL(t.host),a=i.pathname;return new Promise(function(n){var e=s.request({host:i.hostname,method:"POST",path:a,headers:{"Content-Type":"application/json"}},function(e){var t="";e.on("data",function(e){t+=e}),e.on("end",function(){n(JSON.parse(t))})});e.on("error",function(e){console.error("problem with request: ".concat(e.message))}),e.write(JSON.stringify(r)),e.end()})}function w(e){var t=Buffer.from(v.SIGN_HEADER),e=B(e),n=Buffer.alloc(e.length+t.length),r=0;return t.copy(n,0),r+=t.length,e.copy(n,r),n}function k(e){var t=Buffer.alloc(e.length+12);return t.writeInt32LE(e.length+8,0),t.writeInt32LE(v.CRYPT_TYPE_RSA_SHA256,4),t.writeInt32LE(e.length,8),e.copy(t,12),{len:t.length,buffer:t}}function S(e,t){var n={len:12,digests:{size:0,data:[]},certs:{size:0,data:[]},additional:0};return n.digests.data.push(e),n.digests.size+=e.len,n.len+=e.len,n.certs.data.push(t),n.certs.size+=t.len,n.len+=t.len,n}function E(){return(E=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a,o,s;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if((r={len:16+n.cert.pemBuffer.length,size:12+n.cert.pemBuffer.length,signdata:{size:0,buffer:null},signatures:{size:0,data:[]},pubkey:{size:n.cert.pemBuffer.length,buffer:n.cert.pemBuffer}}).signdata.buffer=A(t),r.signdata.size=t.len,r.size+=t.len,r.len+=t.len,v.isApkSign())return e.n=1,g.getSignDigestOnline(r.signdata.buffer);e.n=2;break;case 1:i=e.v,i=Buffer.from(d.toUint8Array(i.signature)),e.n=8;break;case 2:if("dss"===n.type)return e.n=3,g.getSignDigestOnline(r.signdata.buffer);e.n=4;break;case 3:a=e.v,i=Buffer.from(d.toUint8Array(a.signature)),e.n=8;break;case 4:if(n.signOnline)return a=w(r.signdata.buffer),e.n=5,b(a,n.onlineConfig);e.n=7;break;case 5:if((o=e.v).success){e.n=6;break}throw new Error(o.message);case 6:i=Buffer.from(d.toUint8Array(o.data.signData)),e.n=8;break;case 7:(s=p.createSign("RSA-SHA256")).update(r.signdata.buffer),i=s.sign(n.privateKey);case 8:return s={len:i.length+12,size:i.length+8,id:v.CRYPT_TYPE_RSA_SHA256,buffer:i},e.a(2,(r.signatures.data.push(s),r.signatures.size+=s.len,r.size+=s.len,r.len+=s.len,r))}},e)}))).apply(this,arguments)}function C(){return(C=_asyncToGenerator(_regenerator().m(function e(t,n,r){var i,a,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if((i={len:4+n.len,size:n.len,data:[]}).data.push(n),a=v.isApkSign()?v.SIGN_TYPE_FULL_PACKAGE_APK:v.SIGN_TYPE_FULL_PACKAGE,(i={len:32+(a={len:i.len+12,size:i.len+4,id:a,value:i}).len,size:24+a.len,data:[]}).data.push(a),t.files&&!v.isApkSign())return e.n=1,function(){return O.apply(this,arguments)}(t.files,r);e.n=2;break;case 1:(a=e.v)&&((o={len:4+a.length,size:a.length,data:[]}).data.push(a),o={len:o.len+12,size:o.len+4,id:v.SIGN_TYPE_FILE_LIST,value:o},i.data.push(o),i.size+=o.len,i.len+=o.len);case 2:return e.a(2,i)}},e)}))).apply(this,arguments)}function A(e){var t=Buffer.alloc(e.len),n=0;return t.writeInt32LE(e.digests.size,n),n+=4,e.digests.data.forEach(function(e){e.buffer.copy(t,n),n+=e.len}),t.writeInt32LE(e.certs.size,n),n+=4,e.certs.data.forEach(function(e){e.buffer.copy(t,n),n+=e.len}),t.writeInt32LE(e.additional,n),t}function x(e){var i={len:8,size:4,digests:[],sign:null};return e.forEach(function(e){var t=a.CRC32.digest(e.name.toString()),n=6+e.hash.length,r=Buffer.alloc(n);r.writeInt32LE(t,0),r.writeInt16LE(e.hash.length,4),e.hash.copy(r,6),i.digests.push(r),i.size+=n,i.len+=n}),i}function O(){return(O=_asyncToGenerator(_regenerator().m(function e(i,a){var o,s,u,c,l,h,f;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:o=x(i),s=Buffer.alloc(o.size),u=0,o.digests.forEach(function(e){e.copy(s,u),u+=e.length}),a.sign?(console.log("sign files, use remote sign"),c=a.sign,e.n=7):e.n=1;break;case 1:if("dss"===a.type)return e.n=2,g.getSignDigestOnline(s);e.n=3;break;case 2:l=e.v,c=Buffer.from(d.toUint8Array(l.signature)),e.n=7;break;case 3:if(a.signOnline)return l=w(s),e.n=4,b(l,a.onlineConfig);e.n=6;break;case 4:if((h=e.v).success){e.n=5;break}throw new Error(h.message);case 5:c=Buffer.from(d.toUint8Array(h.data.signData)),e.n=7;break;case 6:(f=p.createSign("RSA-SHA256")).update(s),c=f.sign(a.privateKey);case 7:return e.a(2,(o.digests=s.slice(),o.sign={len:12+c.length,size:8+c.length,id:v.CRYPT_TYPE_RSA_SHA256,data:c},o.len+=o.sign.len,t=o,r=n=void 0,n=Buffer.alloc(t.len),r=0,n.writeInt32LE(t.size,0),r+=4,t.digests.copy(n,4),r+=t.digests.length,n.writeInt32LE(t.sign.size,r),r+=4,n.writeInt32LE(t.sign.id,r),r+=4,n.writeInt32LE(t.sign.data.length,r),r+=4,t.sign.data.copy(n,r),n))}var t,n,r},e)}))).apply(this,arguments)}function i(){return(i=_asyncToGenerator(_regenerator().m(function e(o,s,u){var c,l,h;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(f.checkZipBuffer(o)){e.n=1;break}return e.a(2,null);case 1:if((c=f.parserZip(o)).options={files:s},c.tag){e.n=2;break}return e.a(2,null);case 2:return Object.keys(c.sections).forEach(function(e){e=c.sections[e];_(o,e)}),l=y(c),l=k(l),l=S(l,u.cert.obj),e.n=3,function(){return E.apply(this,arguments)}(l,u);case 3:return l=e.v,e.n=4,function(){return C.apply(this,arguments)}(c.options,l,u);case 4:return h=e.v,e.a(2,(c.signchunk=(e=>{var t=Buffer.alloc(e.len),n=0,r=(t.writeInt32LE(e.size,n),n+=4,t.writeInt32LE(0,n),n+=4,v.isApkSign()?v.SIGN_TYPE_FULL_PACKAGE_APK:v.SIGN_TYPE_FULL_PACKAGE),e=(e.data.forEach(function(e){t.writeInt32LE(e.size,n),n+=4,t.writeInt32LE(0,n),n+=4,t.writeInt32LE(e.id,n),n+=4,t.writeInt32LE(e.value.size,n),n+=4,r===e.id?e.value.data.forEach(function(e){t.writeInt32LE(e.size,n),n+=4,t.writeInt32LE(e.signdata.size,n),n+=4,e.signdata.buffer.copy(t,n),n+=e.signdata.buffer.length,t.writeInt32LE(e.signatures.size,n),n+=4,e.signatures.data.forEach(function(e){t.writeInt32LE(e.size,n),n+=4,t.writeInt32LE(e.id,n),n+=4,t.writeInt32LE(e.buffer.length,n),n+=4,e.buffer.copy(t,n),n+=e.buffer.length}),t.writeInt32LE(e.pubkey.size,n),n+=4,e.pubkey.buffer.copy(t,n),n+=e.pubkey.buffer.length}):v.SIGN_TYPE_FILE_LIST===e.id&&e.value.data.forEach(function(e){e.copy(t,n),n+=e.length})}),t.writeInt32LE(e.size,n),n+=4,t.writeInt32LE(0,n),n+=4,v.isApkSign()?v.SIGN_MAGIC_APK:v.SIGN_MAGIC);return Buffer.from(e).copy(t,n),t})(h),t=o,n=c,a=i=r=void 0,r=Buffer.alloc(t.length+n.signchunk.length),i=0,a=n.sections,t.copy(r,0,a.header.startIndex,a.header.startIndex+a.header.len),i+=a.header.len,n.signchunk.copy(r,i),i+=n.signchunk.length,t.copy(r,i,a.central.startIndex,a.central.startIndex+a.central.len),i+=a.central.len,t.writeInt32LE(a.central.startIndex+n.signchunk.length,a.footer.startIndex+16),t.copy(r,i,a.footer.startIndex,a.footer.startIndex+a.footer.len),r))}var t,n,r,i,a},e)}))).apply(this,arguments)}function D(){return(D=_asyncToGenerator(_regenerator().m(function e(t,n,r){var i,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(f.checkZipBuffer(t)){e.n=1;break}return e.a(2,null);case 1:if((i=f.parserZip(t)).options={files:n},i.tag){e.n=2;break}return e.a(2,null);case 2:return Object.keys(i.sections).forEach(function(e){e=i.sections[e];_(t,e)}),a=y(i),a=k(a),a=S(a,r.cert.obj),e.a(2,A(a))}},e)}))).apply(this,arguments)}function B(e){var t=p.createHash("SHA256");return t.update(e),t.digest()}function I(e,t){var n={};return n.size=e.readInt32LE(t),n.buffer=e.slice(t+=4,t+n.size),{obj:n,i:t+=n.size}}t.exports={hashFile:function(e){return B(r.readFileSync(e))},signZipResource:function(e,t,n){return i.apply(this,arguments)},getBufferSha256:B,getSignChunk:function(e,t){for(var n,r,i,a,o,s=(y=t.previous+8)+t.len,u=[],c={signDataBufList:[]},l=v.isApkSign()?v.SIGN_TYPE_FULL_PACKAGE_APK:v.SIGN_TYPE_FULL_PACKAGE;y<s;){a=y,void 0,(o={}).size=(h=e).readInt32LE(a),o.id=h.readInt32LE(a+=8),a+=4,o.value={},o.value.size=h.readInt32LE(a),o.value.data=[];var h={data:o,index:a+=4},f=h.data,d=(y=h.index)+f.value.size,p={};if(l===f.id)for(;y<d;){p.size=e.readInt32LE(y);var g=I(e,y+=4),m=(p.signdata=g.obj,y=g.i,c.signDataBufList.push(p.signdata.buffer),p.signatures={},p.signatures.size=e.readInt32LE(y),(y+=4)+p.signatures.size);for(p.signatures.data=[];y<m;){n=y,i=r=void 0,(r={}).size=(_=e).readInt32LE(n),r.id=_.readInt32LE(n+=4),i=_.readInt32LE(n+=4),r.buffer=_.slice(n+=4,n+i);var _={sData:r,index:n+=i},y=_.index;p.signatures.data.push(_.sData)}g=I(e,y);p.pubkey=g.obj,y=g.i,f.value.data.push(p)}else v.SIGN_TYPE_FILE_LIST===f.id&&(p=e.slice(y,y+f.value.size),f.value.data.push(p));u.push(f)}return c.data=u,c.size=t.size,c},getCertBuffer:function(e){var t,n;if(e)return e.signDataBufList&&0<e.signDataBufList.length?(n=e.signDataBufList[t=0].readInt32LE(0),n=e.signDataBufList[0].readInt32LE(t=t+(4+n)+4),e=e.signDataBufList[0].slice(t+=4,t+n),v.CERT_HEAD+e.toString("base64")+v.CERT_END):void 0;console.error("no sign chunk!")},getSignFilesObject:x,getSignData:function(e,t,n){return D.apply(this,arguments)}}}),Ce=Lt(function(e,t){var s=require("path"),p=require("fs"),g=require("crypto"),m=Pe().jszip,_=er(),l=require("jsrsasign"),h=Ye(),y=Ge(),v=er(),f=Xe(),b=(0,require("@atomicservice/ascf-base").getLogger)("spk-sign-utils"),u="META-INF/CERT",o="hash.json",w={type:"nodebuffer",compression:"DEFLATE",compressionOptions:{level:9}};function c(){return(c=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r={},t.forEach(function(e){var t=e.fileBuildPath,e=e.fileContentDigest;return r[t]=e.toString("hex")}),(i=new m).file(o,JSON.stringify({algorithm:"SHA-256",digests:r})),e.n=1,i.generateAsync(w);case 1:return i=e.v,a={name:o,hash:_.getBufferSha256(i)},e.n=2,_.signZipResource(i,[a],n);case 2:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function k(){return n.apply(this,arguments)}function n(){return(n=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=t.fileList,i=new m,a=r.map(function(e){return{name:e.fileBuildPath,hash:e.fileContentDigest}}),e.n=1,function(){return c.apply(this,arguments)}(r,n);case 1:return o=e.v,i.file(u,o),a.unshift({name:u,hash:_.getBufferSha256(o)}),o=Object.assign({},w),r.forEach(function(e){var t=e.fileBuildPath;i.file(t,e.fileContentBuffer)}),e.n=2,i.generateAsync(o);case 2:return o=e.v,e.n=3,_.signZipResource(o,a,n);case 3:return e.a(2,e.v)}},e)}))).apply(this,arguments)}function a(){return(a=_asyncToGenerator(_regenerator().m(function e(t,n,r,i,a){var o,s,u,c,l,h,f,d,p;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,k(r,n);case 1:if(o=e.v,i.length){e.n=2;break}return e.a(2,{rpkBuffer:o});case 2:if(s=new m,u=[],c=Object.assign({},w),a.disableSubpackages&&"false"!==a.disableSubpackages){e.n=4;break}return h=i.map(function(e){return k(e,n)}),e.n=3,Promise.all(h).catch(function(){new Error("ERROR: Rpk sign failed!")});case 3:e.v.forEach(function(e,t){t="".concat(i[t].pkgName);e.length,s.file(t,e),u.push({name:t,hash:_.getBufferSha256(e)})}),e.n=6;break;case 4:return l=i[0],e.n=5,k(l,n).catch(function(){new Error("ERROR: Rpk sign failed!")});case 5:h=e.v,f="".concat(l.pkgName),h.length,s.file(f,h),u.push({name:f,hash:_.getBufferSha256(h)});case 6:return e.n=7,s.generateAsync(c);case 7:return f=e.v,e.n=8,_.signZipResource(f,u,n);case 8:return d=e.v,p=o,e.a(2,{rpksBuffer:d,rpkBuffer:p})}},e)}))).apply(this,arguments)}function r(){return(r=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=p.readFileSync(n),e.n=1,_.signZipResource(r,[],t);case 1:return r=e.v,e.a(2,{apkBuffer:r})}},e)}))).apply(this,arguments)}function d(e,t,n,r){e.fileList.push({fileBuildPath:t,fileContentBuffer:n,fileContentDigest:r})}function i(e){var t,n,r,i,a,o,s,e=e.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/);if(e)return o=e[1],s=parseInt(o),2===o.length&&(50<=s&&s<100?s=1900+s:0<=s&&s<50&&(s=2e3+s)),o=parseInt(e[2])-1,t=parseInt(e[3]),n=parseInt(e[4]),r=parseInt(e[5]),i=parseInt(e[6]),a=0,""!==(e=e[7])&&(e=(e.substr(1)+"00").substr(0,3),a=parseInt(e)),Date.UTC(s,o,t,n,r,i,a);throw new Error("Your certificate is Invalid.")}function S(e,t,n){return E.apply(this,arguments)}function E(){return(E=_asyncToGenerator(_regenerator().m(function e(t,n,r){var i,a,o,s,u,c=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(i={signOnline:null!=r,privateKey:n,onlineConfig:r},(a=3<c.length&&void 0!==c[3]?c[3]:{})&&a.dssHost&&a.dssKey)return e.n=1,f.generateCertificate(a);e.n=2;break;case 1:t=e.v,i.type="dss";case 2:return(a=new l.X509).readCertPEM(t.toString()),o=l.KEYUTIL.getPEM(a.getPublicKey()),s=Buffer.from(h.Base64.unarmor(t)),u=Buffer.alloc(s.length+4),e.a(2,(u.writeInt32LE(s.length,0),s.copy(u,4),i.cert={content:t,obj:{len:u.length,buffer:u},pemBuffer:Buffer.from(h.Base64.unarmor(o))},i))}},e)}))).apply(this,arguments)}function C(e){var t=new l.X509,e=(t.readCertPEM(e),t.getSignatureValueHex()),t=Buffer.from(e,"hex").toString("base64"),e=v.getBufferSha256(t);return Buffer.from(e).toString("hex")}function A(){return(A=_asyncToGenerator(_regenerator().m(function e(a){var o,s,u,c,l,h,f,d;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(a&&p.existsSync(a)){e.n=1;break}throw new Error("No rpk file : "+a);case 1:if(o=p.readFileSync(a),y.checkZipBuffer(o)){e.n=2;break}throw new Error("Get File Certificate Error!");case 2:if((s=y.parserZip(o,!0)).sections.sign.tag){e.n=3;break}throw new Error("No sign block!");case 3:if(u=v.getSignChunk(o,s.sections.sign),c=v.getCertBuffer(u)){e.n=4;break}throw new Error("Get Certificate error!");case 4:return l=u.data[0].value.data[0].signatures.data[0].buffer,h=[],t=o,i=r=void 0,n=(n=s).sections,r=Buffer.alloc(n.header.len+n.central.len+n.footer.len),i=0,t.copy(r,0,n.header.startIndex,n.header.startIndex+n.header.len),i+=n.header.len,t.copy(r,i,n.central.startIndex,n.central.startIndex+n.central.len),i+=n.central.len,t.copy(r,i,n.footer.startIndex,n.footer.startIndex+n.footer.len),r.writeInt32LE(n.header.len,r.length-6),f=r,e.n=5,S(c);case 5:return d=e.v,e.n=6,_.getSignData(f,h,d);case 6:d=e.v,g.createVerify("RSA-SHA256").update(d).verify(c,l)||(b.error("Failed to verify the signature"),process.exit(-1));case 7:return e.a(2)}var t,n,r,i},e)}))).apply(this,arguments)}t.exports={generatePkgDef:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=[],n={pkgName:"base.sspk",fileList:[]};return e.forEach(function(e){e=e.resource;t.push({pkgName:"".concat(e,".sspk"),fileList:[],root:e})}),{mainPkg:{pkgName:"base.spk",fileList:[]},subPkgs:e.length?[n].concat(t):[n]}},addResourceToPkg:function(e,t,a,o){e.forEach(function(n){var r,e=p.readFileSync(s.join(t,n)),i=[n,e,_.getBufferSha256(e)];d.apply(void 0,[a].concat(i)),o.length&&(r=!0,o.slice(1).forEach(function(e){var t=n.split("/");t[0]===e.root&&(i[0]=t.slice(1).join("/"),d.apply(void 0,[e].concat(i)),r=!1)}),r)&&d.apply(void 0,[o[0]].concat(i))})},signPkgs:function(e,t,n,r,i){return a.apply(this,arguments)},DIGEST_PATH:u,getResources:function(e){return function n(r,i){var a=[],o=s.posix.join(r,i);return p.readdirSync(o).forEach(function(e){var t=s.posix.join(o,e),e=s.posix.join(i,e);p.statSync(t).isFile()?a.push(e):a=a.concat(n(r,e))}),a}(e,".").filter(function(e){return e!==u})},checkValidity:function(e){(t=new l.X509).readCertPEM(String(e));var e=i(t.getNotAfter()),t=i(t.getNotBefore()),n=Number(new Date);return{validityDays:Number(e-n)/864e5,isInvalid:0<Number(t)-n}},getSignInfo:S,getApkSignInfo:function(e){var t={signOnline:!1,onlineConfig:null},n=((n=new l.X509).readCertPEM(e.toString()),l.KEYUTIL.getPEM(n.getPublicKey())),r=Buffer.from(h.Base64.unarmor(e)),i=Buffer.alloc(r.length+4);return i.writeInt32LE(r.length,0),r.copy(i,4),t.cert={content:e,obj:{len:i.length,buffer:i},pemBuffer:Buffer.from(h.Base64.unarmor(n))},t},getSignedZipCertFp:function(e){return A.apply(this,arguments)},getCertFp:function(e){if(p.existsSync(e))return C(p.readFileSync(e).toString());console.error("error : certificate.pem is not exist!")},signFullApk:function(e,t){return r.apply(this,arguments)},getCertString:function(e){if(!e||!p.existsSync(e))throw new Error("No srpk file : "+e);if(e=p.readFileSync(e),!y.checkZipBuffer(e))throw new Error("Get File Certificate Error!");var t=y.parserZip(e,!0);if(!t.sections.sign.tag)throw new Error("No sign block!");if(e=v.getSignChunk(e,t.sections.sign),t=v.getCertBuffer(e))return C(t);throw new Error("Get Certificate error!")}}}),le=Lt(function(e,t){var l=require("path"),h=require("fs"),n=require("json5"),r=require("rimraf"),f=require("decompress"),i="src/main/resources/rawfile",o=(0,require("@atomicservice/ascf-base").getLogger)("utils"),a=require("child_process"),s=a.exec,u=a.spawnSync;function c(e){var t,n=l.resolve(e,"build-profile.json5");if(!h.existsSync(n))return l.join(e,"entry");n=d(n);if(0<(null==n||null==(t=n.modules)?void 0:t.length))return l.join(e,n.modules[0].srcPath);throw new Error("getEntryPkgPath error, build-profile.json5 file modules is null")}function d(t){if(!h.existsSync(t))return{};var e={};try{e=n.parse(h.readFileSync(t,"utf-8").toString()||"{}")}catch(e){throw new Error("parse json file error at ".concat(t,":").concat(e.lineNumber,":").concat(e.columnNumber," "))}return e}var p=function(e){return Promise.all(e.map(function(t){if(h.existsSync(t))return new Promise(function(e){r.sync(t),e()})}))};function g(){return(g=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a,o,s,u,c;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,f(t,n);case 1:i=h.readdirSync(n,{withFileTypes:!0}),r=[],i=_createForOfIteratorHelper(i),e.p=2,i.s();case 3:if((c=i.n()).done)e.n=9;else{if(a=c.value,o=l.resolve(l.join(n,a.name)),s="","base.sspk"===a.name)return e.n=4,f(o,n);e.n=5}break;case 4:s=l.resolve(l.join(n,"META-INF")),e.n=7;break;case 5:return u=a.name.split(".")[0],e.n=6,f(o,l.resolve(n,u));case 6:s=l.resolve(l.resolve(n,u,"META-INF"));case 7:r.push(s),h.unlinkSync(o);case 8:e.n=3;break;case 9:e.n=11;break;case 10:e.p=10,c=e.v,i.e(c);case 11:return e.p=11,i.f(),e.f(11);case 12:return e.n=13,p(r);case 13:e.n=15;break;case 14:throw e.p=14,e.v;case 15:return e.a(2)}},e,null,[[2,10,11,12],[0,14]])}))).apply(this,arguments)}t.exports={RAWFILE_DIR:i,ASCF_BUILD:"ascf/ascf_build",ASCF_CONFIG_JSON:"ascf/ascf_src/ascf.config.json",P12_PATH:"sign/ascf-build.p12",QUICK_SERVICE_BUILD:"build/quick_service_build",DIST_PATH:"build/dist",getManifestData:function(e){return d(l.resolve(c(e),i,"manifest.json"))},getEntryPkgPath:c,readJsonFile:d,clearResource:p,copyDirectory:function e(t,n){var r;if(h.mkdirSync(n,{recursive:!0}),h.statSync(t).isFile())r=l.join(n,l.basename(t)),h.copyFileSync(t,r);else{var i,a=_createForOfIteratorHelper(h.readdirSync(t,{withFileTypes:!0}));try{for(a.s();!(i=a.n()).done;){var o=i.value,s=l.resolve(l.join(t,o.name)),u=l.join(n,o.name);o.isDirectory()?e(s,u):h.copyFileSync(s,u)}}catch(e){a.e(e)}finally{a.f()}}},mkdirsSync:function e(t){if(!h.existsSync(t)){if(h.existsSync(l.dirname(t))||!e(l.dirname(t)))return h.mkdirSync(t);print("mkdirSync err : ".concat(t))}},formatHexString:function(e){if(64!==e.length)throw new Error("指纹格式错误");for(var t="",n=0;n<e.length;n+=2)t+=e.substr(n,2)+":";return t.slice(0,-1).toUpperCase()},extractspk:function(e,t){return g.apply(this,arguments)},deleteDirectory:function t(n){h.existsSync(n)&&(h.readdirSync(n).forEach(function(e){e=l.join(n,e),h.lstatSync(e).isDirectory()?t(e):h.unlinkSync(e)}),h.rmdirSync(n))},executeCommand:function(i){var a=/^mac verified ok/i;return new Promise(function(t,n){var e,r=s(i);null!=(e=r.stdout)&&e.on("data",function(e){o.debug(e)}),null!=(e=r.stderr)&&e.on("data",function(e){!e.match(a)&&i.includes("pkcs12")&&n(e)}),null!=(e=r.stderr)&&e.on("error",function(e){n(e)}),r.on("close",function(e){t(e)})})},checkOpenSSL:function(e){if(0===(e=u(e,["version"],{encoding:"utf-8"})).status)return o.debug(e.stdout),!0;throw new Error("Please install openssl or configure PATH."+e.stderr)},validatePassword:function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return!(t.length<8)&&(e=0,/[a-z]/.test(t)&&e++,/[A-Z]/.test(t)&&e++,/[0-9]/.test(t)&&e++,/[`~!@#$%^&*()\-_=+\\|[{}];:'",<.>\/?]/.test(t)&&e++,2<=e)}}}),lr=Lt(function(e,t){var r=require("path"),n=require("os"),i=le().checkOpenSSL,a=n.platform(),n=require("@atomicservice/ascf-base"),o=n.getLogger,s=n.installAscfTools,u=o("openssl"),c=!1;function l(){return(l=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(t="openssl","win32"===a)return e.n=1,s();e.n=2;break;case 1:n=e.v,t=r.join(n,"/lib/tools/release_64/bin/openssl.exe");case 2:return e.a(2,(c||(u.debug(t),c=i(t)),t))}},e)}))).apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(t="","win32"===a)return e.n=1,s();e.n=2;break;case 1:n=e.v,t="-config ".concat(r.join(n,"/lib/tools/release_64/SSL/openssl.cnf"));case 2:return e.a(2,t)}},e)}))).apply(this,arguments)}t.exports={getOpensslPath:function(){return l.apply(this,arguments)},getOpensslConfig:function(){return h.apply(this,arguments)}}}),Qn=Lt(function(z,e){var f,l=require("crypto"),d=require("path"),p=require("fs"),n=Pe().jszip,g=Ce(),t=require("@atomicservice/ascf-base").getLogger,r=le(),m=r.RAWFILE_DIR,_=r.ASCF_BUILD,y=r.clearResource,v=r.copyDirectory,b=r.getEntryPkgPath,w=r.getManifestData,k=r.readJsonFile,S=r.ASCF_CONFIG_JSON,c=r.P12_PATH,N=r.QUICK_SERVICE_BUILD,L=r.DIST_PATH,h=r.executeCommand,E=lr().getOpensslPath,C=t("generate-spk"),s=100,j=1e4,H=0;function A(){return i.apply(this,arguments)}function i(){return(i=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=d.resolve(t,S),e.n=1,function(){return u.apply(this,arguments)}(n,t,r);case 1:return i=e.v,e.n=2,function(){return o.apply(this,arguments)}(n,t,r);case 2:return a=e.v,e.a(2,g.getSignInfo(a,i,f))}},e)}))).apply(this,arguments)}function o(){return(o=_asyncToGenerator(_regenerator().m(function e(r,i,a){var o,s,u;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(o="",p.existsSync(r.signPublicKeyPath)&&(C.debug("Obtaining a public Key using a Path"),o=p.readFileSync(r.signPublicKeyPath)),!o&&p.existsSync(r.signProfilePath))return C.debug("Obtain the private key using the p12 file path specified by the parameter"),e.n=1,R(r.signProfilePath,F(r.signPwd));e.n=2;break;case 1:o=e.v;case 2:o||!p.existsSync(a)?e.n=5:(s=null==(s=JSON.parse(p.readFileSync(a).toString()))?void 0:s.signConfig,p.existsSync(null==s?void 0:s.publicKeyPath)?(C.debug("Obtain the public key from the ascf.config.json publicKeyPath"),o=p.readFileSync(s.publicKeyPath),e.n=5):e.n=3);break;case 3:if(p.existsSync(null==s?void 0:s.profilePath))return C.debug("Obtain the public key from the ascf.config.json profilePath"),e.n=4,R(s.profilePath,F(r.signPwd));e.n=5;break;case 4:o=e.v;case 5:if(u=d.resolve(i,"sign/certificate.pem"),!o&&p.existsSync(u)&&(C.debug("Obtaining the public key using ".concat(u)),o=p.readFileSync(u)),u=d.resolve(i,c),!o&&p.existsSync(u))return C.debug("Obtaining the public Key Using the .p12 File"),e.n=6,R(u,F(r.signPwd));e.n=7;break;case 6:o=e.v;case 7:o||(C.error("failed to obtain the public key, please ensure certificate.pem or ascf-build.p12 under sign"),process.exit(-1)),n=t=void 0;var t=o,n=(t=g.checkValidity(t)).validityDays,t=t.isInvalid;if(n<0||t)throw new Error("ERROR: Your certificate is Invalid.");return n<180&&C.warn("WARNING: Your certificate is valid for less than 180 days. Please update it in time."),e.a(2,o)}},e)}))).apply(this,arguments)}function u(){return(u=_asyncToGenerator(_regenerator().m(function e(t,n,r){var i,a,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(i="",p.existsSync(t.signPrivateKeyPath)&&(C.debug("Obtaining a private Key using a Path"),i=p.readFileSync(t.signPrivateKeyPath)),!i&&p.existsSync(t.signProfilePath))return C.debug("Obtain the private key using the p12 file path specified by the parameter"),e.n=1,P(t.signProfilePath,F(t.signPwd));e.n=2;break;case 1:i=e.v;case 2:i||!p.existsSync(r)?e.n=5:(a=null==(a=JSON.parse(p.readFileSync(r).toString()))?void 0:a.signConfig,p.existsSync(null==a?void 0:a.privateKeyPath)?(C.debug("Obtain the private key from the ascf.config.json privateKeyPath"),i=p.readFileSync(a.privateKeyPath),e.n=5):e.n=3);break;case 3:if(p.existsSync(null==a?void 0:a.profilePath))return C.debug("Obtain the private key from the ascf.config.json profilePath"),e.n=4,P(a.profilePath,F(t.signPwd));e.n=5;break;case 4:i=e.v;case 5:if(o=d.resolve(n,"sign/private.pem"),!i&&p.existsSync(o)&&(C.debug("Obtaining the private key using ".concat(o)),i=p.readFileSync(o)),o=d.resolve(n,c),!i&&p.existsSync(o))return C.debug("Obtaining the private Key Using the p12 File"),e.n=6,P(o,F(t.signPwd));e.n=7;break;case 6:i=e.v;case 7:return i||(C.error("failed to obtain the private key, please ensure private.pem or ascf-build.p12 under sign"),process.exit(-1)),e.a(2,i)}},e)}))).apply(this,arguments)}function x(){return a.apply(this,arguments)}function a(){return(a=_asyncToGenerator(_regenerator().m(function e(i,t,a,o){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,(p.existsSync(i)||p.mkdirSync(i),t=a.rpksBuffer,n=i,(r=o).length>s&&(r=r.slice(0,s)),n=d.join(n,r),p.writeFileSync(n,t),C.info("Build spk ".concat(n)),n));var t,n,r},e)}))).apply(this,arguments)}function O(e){if(!e.package||!e.package.startsWith("com.atomicservice."))throw new Error("The package in the app.json file cannot be empty and must start with com.atomicservice.");if(!e.versionName||!e.versionCode)throw new Error("The versionName and versionCode fields in the app.json file cannot be empty.")}function D(e){var t=(new Date).toISOString().split("T")[0].split("-").join(""),n="production"===process.env.NODE_ENV?"release":"debug";return"".concat(e.package,"-").concat(e.versionCode,"-").concat(n,"-").concat(t,".spk")}function B(){return(B=_asyncToGenerator(_regenerator().m(function e(n,t){var r,i,a,o,s,u,c,l,h;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(r=d.join(n,S),(f=(p.existsSync(r)?require(r):{}).sign)&&!f.host)throw new Error("ERROR: The signature configuration file is incorrect, the hostvalue is empty.");e.n=1;break;case 1:return e.n=2,A(n,t);case 2:if(i=e.v){e.n=3;break}throw new Error("ERROR: Failed to obtain the signature configuration information.");case 3:return a=d.resolve(n,L),o=d.resolve(n,N),e.n=4,y([o]);case 4:if(O(s=w(n)),u=D(s),null!=(r=s.subpackages)&&r.forEach(function(e){var t=d.resolve(n,_,e.resource,m);v(t,d.resolve(o,e.resource))}),v(d.resolve(b(n),m),o),l=g.generatePkgDef(s.subpackages),c=l.mainPkg,l=l.subPkgs,(h=0<(h=[]).length?h:g.getResources(o)).length){e.n=5;break}throw new Error("The packed file is empty.");case 5:return e.a(2,(g.addResourceToPkg(h,o,c,l),g.signPkgs("",i,c,l,t).then((()=>{var t=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,x(a,s.subpackages,t,u);case 1:if(n=e.v,"release"===s.versionType)return e.n=2,T(n);e.n=2;break;case 2:return e.a(2,n)}},e)}));return function(e){return t.apply(this,arguments)}})())))}},e)}))).apply(this,arguments)}function I(){return(I=_asyncToGenerator(_regenerator().m(function e(t,n,r,i){var a,o,s,u,c,l,h;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return a={signPrivateKeyPath:r,signPublicKeyPath:n,disableSubpackages:!1},e.n=1,A("",a);case 1:if(o=e.v,l=d.resolve(t,"manifest.json"),s=k(l),u=D(s),O(s),l=g.generatePkgDef(s.subpackages),c=l.mainPkg,l=l.subPkgs,(h=0<(h=[]).length?h:g.getResources(t)).length){e.n=2;break}throw new Error("The packed file is empty.");case 2:g.addResourceToPkg(h,t,c,l),i=null!=i?i:d.resolve(t,"dist"),g.signPkgs("",o,c,l,a).then((()=>{var t=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,x(i,s.subpackages,t,u);case 1:if(n=e.v,"release"===s.versionType)return e.n=2,T(n);e.n=2;break;case 2:return e.a(2,n)}},e)}));return function(e){return t.apply(this,arguments)}})());case 3:return e.a(2)}},e)}))).apply(this,arguments)}function T(e){var t=ve(),a=t.MAX_SIZE_SSPK,t=t.MAX_SIZE_SPK;if(p.statSync(e).size>t)throw new Error("Total package is exceed limit ".concat(t/1024/1024," MB."));return new Promise(function(r,i){p.readFile(e,function(e,t){if(e)return i(e);n.loadAsync(t).then(function(e){var n=null;if(e.forEach(function(e,t){if(j<++H)throw"Reached max. number of files";!n&&t._data.compressedSize>a&&(n=new Error("Package is exceed limit ".concat(a/1024/1024," MB.")))}),n)return i(n);r()})})})}function F(e){e=null!=e?e:process.env.ASCF_SIGN_PWD;return e||(C.error("signPwd is null, please configure through cli options, ascf.config.json or env ASCF_SIGN_PWD"),process.exit(-1)),e}function P(u,c){return new Promise((n=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a,o,s;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return C.debug("Start to obtain the private key"),r=l.randomBytes(16).toString("hex"),i=l.randomBytes(16).toString("hex"),e.p=1,e.n=2,E();case 2:return a=e.v,o="".concat(a," pkcs12 -in ").concat(u," -nocerts -nodes -out ").concat(r," -passin pass:").concat(c),C.debug("".concat(a," pkcs12 -in ").concat(u," -nocerts -nodes -out ").concat(r," -passin pass:***")),e.n=3,h(o);case 3:return o="".concat(a," ec -in ").concat(r," -check -out ").concat(i),C.debug("".concat(a," ec -in ").concat(r," -check -out ").concat(i)),e.n=4,h(o);case 4:return p.existsSync(r)&&p.unlinkSync(r),s="",e.a(2,(p.existsSync(i)&&(s=p.readFileSync(i),p.unlinkSync(i)),C.debug("Obtaining the private key is complete."),t(s)));case 5:e.p=5,s=e.v,p.existsSync(r)&&p.unlinkSync(r),p.existsSync(i)&&p.unlinkSync(i),n("Failed to obtain the private key: ".concat(s));case 6:return e.a(2)}},e,null,[[1,5]])})),function(e,t){return n.apply(this,arguments)}));var n}function R(o,s){return new Promise((n=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=l.randomBytes(16).toString("hex"),e.p=1,e.n=2,E();case 2:return i=e.v,a="".concat(i," pkcs12 -in ").concat(o," -nokeys -clcerts -passin pass:").concat(s," | ").concat(i," x509 -out ").concat(r),C.debug("".concat(i," pkcs12 -in ").concat(o," -nokeys -clcerts -passin pass:*** | ").concat(i," x509 -out ").concat(r)),e.n=3,h(a);case 3:if(p.existsSync(r))return i=p.readFileSync(r),e.a(2,(p.unlinkSync(r),t(i)));e.n=4;break;case 4:e.n=6;break;case 5:e.p=5,a=e.v,p.existsSync(r)&&p.unlinkSync(r),n("Failed to obtain the cert key: ".concat(a));case 6:return e.a(2)}},e,null,[[1,5]])})),function(e,t){return n.apply(this,arguments)}));var n}e.exports={signSpk:function(e,t){return B.apply(this,arguments)},resignSpk:function(e,t,n,r){return I.apply(this,arguments)}}}),ri=Lt(function(e,t){require("path");var s=require("fs"),n=require("@atomicservice/ascf-base").getLogger,r=le(),u=r.executeCommand,c=r.validatePassword,r=lr(),l=r.getOpensslPath,h=r.getOpensslConfig,f=n("cert-utils");function i(){return(i=_asyncToGenerator(_regenerator().m(function e(t,n){var r,i,a,o;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(s.existsSync(t)||s.existsSync(n))throw new Error("".concat(t," or ").concat(n," exists"));e.n=1;break;case 1:return e.p=1,e.n=2,l();case 2:return r=e.v,e.n=3,h();case 3:return i=e.v,a="".concat(r," ecparam -name secp256r1 -genkey -noout -out ").concat(t),f.debug(a),e.n=4,u(a);case 4:return a="".concat(r," req -new -x509 -key ").concat(t," -out ").concat(n,' -days 3650 -sha256 -subj "/CN=ASCF/OU=/O=/L=/ST=/C=CN" ').concat(i),f.debug(a),e.n=5,u(a);case 5:e.n=7;break;case 6:e.p=6,o=e.v,f.error("Failed to generate cert",o),s.existsSync(t)&&s.unlinkSync(t),s.existsSync(n)&&s.unlinkSync(n);case 7:return e.a(2)}},e,null,[[1,6]])}))).apply(this,arguments)}function a(){return(a=_asyncToGenerator(_regenerator().m(function e(t,n,r,i){var a,o;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(c(i)){e.n=1;break}throw new Error("Invalid Password.\nThe password must contain at least 8 characters and include any two of the following:\n1. Lowercase letters: a-z\n2. Uppercase letters : A-Z\n3. Digits : 0-9\n4. Special characters : `~!@#$%^&*()-_=+\\|[{}];:'\",<.>/?");case 1:if(s.existsSync(t))throw new Error("".concat(t," exists"));e.n=2;break;case 2:return e.p=2,e.n=3,l();case 3:return o=e.v,a="".concat(o," pkcs12 -export -out ").concat(t," -inkey ").concat(n," -in ").concat(r," -passout pass:").concat(i),f.debug("".concat(o," pkcs12 -export -out ").concat(t," -inkey ").concat(n," -in ").concat(r," -passout pass:***")),e.n=4,u(a);case 4:e.n=6;break;case 5:e.p=5,o=e.v,f.error("Failed to generate p12",o),s.existsSync(t)&&s.unlinkSync(t);case 6:return e.a(2)}},e,null,[[2,5]])}))).apply(this,arguments)}t.exports={genCert:function(e,t){return i.apply(this,arguments)},genP12:function(e,t,n,r){return a.apply(this,arguments)}}}),ii=Lt(function(e){var r=require("path"),i=require("decompress"),a=Ce().getSignedZipCertFp,t=le(),o=t.clearResource,s=t.deleteDirectory;function n(){return(n=_asyncToGenerator(_regenerator().m(function e(t,n){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return n=null!=n?n:r.resolve(r.dirname(t),"dist"),e.n=1,a(t);case 1:return e.n=2,o([n]);case 2:return e.n=3,i(t,n);case 3:s(r.resolve(n,"META-INF"));case 4:return e.a(2)}},e)}))).apply(this,arguments)}e.verifySignHandler=function(e,t){return n.apply(this,arguments)}}),li=Lt(function(e,t){var m=require("fs"),_=require("path"),i=Pe().jszip,n=le(),y=n.mkdirsSync,f=n.extractspk,d=n.clearResource,v=Ce(),a="manifest.json",b="";function p(){return(p=_asyncToGenerator(_regenerator().m(function e(t,n,r,i){var a,o,s,u,c,l,h,f,d,p,g;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return y(n),a=t.package,o=t.versionType,s=t.versionCode,d=i.privateKeyFilePath,c=i.certFilePath,c=m.readFileSync(c),d=m.readFileSync(d),e.n=1,v.getSignInfo(c,d);case 1:if(u=e.v,c=v.generatePkgDef(t.subpackages),l=c.mainPkg,h=c.subPkgs,(f=0<(f=[]).length?f:v.getResources(r)).length){e.n=2;break}throw new Error("The packed file is empty.");case 2:return v.addResourceToPkg(f,r,l,h),e.n=3,v.signPkgs(a,u,l,h,{disableSubpackages:!1});case 3:d=e.v,p=d.rpksBuffer,g=(new Date).toISOString().split("T")[0].split("-").join(""),b=_.join(n,"".concat(a,"-").concat(s,"-").concat(o,"-").concat(g,".spk")),m.writeFileSync(b,p);case 4:return e.a(2)}},e)}))).apply(this,arguments)}function g(){return(g=_asyncToGenerator(_regenerator().m(function e(t){var n,r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(new i).loadAsync(m.readFileSync(t));case 1:if((n=e.v).files["base.sspk"]){e.n=2;break}throw new Error("Can not resolve base.sspk file.");case 2:return e.n=3,n.files["base.sspk"].async("nodebuffer");case 3:return r=e.v,e.n=4,(new i).loadAsync(r);case 4:return e.n=5,e.v.file(a).async("string");case 5:return r=e.v,e.a(2,JSON.parse(r)||{})}},e)}))).apply(this,arguments)}t.exports={spkHandler:function(s,u,c,l,h){return new Promise((n=_asyncToGenerator(_regenerator().m(function e(n,r){var i,a,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(m.existsSync(s)){e.n=1;break}return e.a(2,r(new Error("Can not resolve spk file: ".concat(s))));case 1:if(m.existsSync(u)){e.n=2;break}return e.a(2,r(new Error("Can not resolve certificate file: ".concat(u))));case 2:if(m.existsSync(c)){e.n=3;break}return e.a(2,r(new Error("Can not resolve private key file: ".concat(c))));case 3:return e.n=4,function(){return g.apply(this,arguments)}(s);case 4:if(i=e.v,t=i,0===Object.keys(t).length)return e.a(2,r(new Error("Invalid spk file.")));e.n=5;break;case 5:return a=i.package,o=_.dirname(s),o=_.join(o,a),a=_.join(null!=l?l:o,"quick-service-build"),o=_.join(null!=l?l:o,"dist"),e.n=6,d([a,o]);case 6:return y(a),e.n=7,f(s,a);case 7:return i.versionType=null!=h?h:i.versionType,m.writeFileSync(_.resolve(a,"manifest.json"),JSON.stringify(i,null,2)),e.n=8,function(){return p.apply(this,arguments)}(i,o,a,{privateKeyFilePath:c,certFilePath:u});case 8:return e.a(2,n(b))}var t},e)})),function(e,t){return n.apply(this,arguments)}));var n}}}),_Qn=Qn(),oo=_Qn.signSpk,lo=_Qn.resignSpk,_ri=ri(),ho=_ri.genCert,uo=_ri.genP12,_le6=le(),co=_le6.formatHexString,_ii=ii(),fo=_ii.verifySignHandler,_require9=require("@atomicservice/ascf-base"),po=_require9.getLogger,_li=li(),go=_li.spkHandler,_Ce2=Ce(),mo=_Ce2.getCertString,Rt=po("index");function _o(e,t){return _o18.apply(this,arguments)}function _o18(){return(_o18=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Rt.info("start exec sign spk"),e.n=1,oo(t,n);case 1:return r=e.v,e.a(2,(Rt.info("Signed successfully."),r));case 2:e.p=2,r=e.v,Rt.fatal("Signing failed: "+r),process.exit(-1);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function bo(e,t,n,r){return _bo.apply(this,arguments)}function _bo(){return(_bo=_asyncToGenerator(_regenerator().m(function e(t,n,r,i){var a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Rt.info("start exec resign spk"),e.n=1,lo(t,n,r,i);case 1:Rt.info("Signed successfully."),e.n=3;break;case 2:e.p=2,a=e.v,Rt.fatal("Signing failed: "+a),process.exit(-1);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function yo(e,t){return _yo.apply(this,arguments)}function _yo(){return(_yo=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Rt.info("start exec verify sign"),e.n=1,fo(t,n);case 1:Rt.info("Signature verification succeeded."),e.n=3;break;case 2:e.p=2,r=e.v,Rt.info("Failed to verify the signature: ",r),process.exit(-1);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function vo(e,t,n,r,i){return _vo.apply(this,arguments)}function _vo(){return(_vo=_asyncToGenerator(_regenerator().m(function e(t,n,r,i,a){var o;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Rt.info("start exec repack"),e.n=1,go(t,n,r,i,a);case 1:o=e.v,Rt.info("exec repack success, repack package path: "+o),e.n=3;break;case 2:e.p=2,o=e.v,Rt.fatal("repack failed: "+o),process.exit(-1);case 3:return e.a(2)}},e,null,[[0,2]])}))).apply(this,arguments)}function wo(e){try{Rt.info("start exec print fingerprints");var t=mo(e),n=co(t);Rt.info("exec print fingerprints success, fingerprints info: "+n)}catch(e){Rt.fatal("failed to obtain the fingerprint: "+e),process.exit(-1)}}process.on("uncaughtException",function(e){Rt.error("ASCF uncaught error",e)}),process.on("unhandledRejection",function(e,t){Rt.error("ASCF unhandled rejection at:",t,"reason:",e)}),module.exports={signPkg:_o,resignPkg:bo,verifySign:yo,repackHandler:vo,printFp:wo,genCert:ho,genP12:uo};
|