UNPKG

@zoranwong/acc-engine.js

Version:

A javascript framework to accelerate your applicatin developement

8 lines 165 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["acc-engine.js"]=e():t["acc-engine.js"]=e()}(this,(function(){return function(t){var e=this.webpackHotUpdateacc_engine_js;this.webpackHotUpdateacc_engine_js=function(t,r){!function(t,e){if(!k[t]||!w[t])return;for(var r in w[t]=!1,e)Object.prototype.hasOwnProperty.call(e,r)&&(p[r]=e[r]);0==--m&&0===b&&O()}(t,r),e&&e(t,r)};var r,n=!0,o="5fa175999ca6e3bf2f20",i={},u=[],s=[];function a(t){var e=S[t];if(!e)return A;var n=function(n){return e.hot.active?(S[n]?-1===S[n].parents.indexOf(t)&&S[n].parents.push(t):(u=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),u=[]),A(n)},o=function(t){return{configurable:!0,enumerable:!0,get:function(){return A[t]},set:function(e){A[t]=e}}};for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(n,i,o(i));return n.e=function(t){return"ready"===l&&d("prepare"),b++,A.e(t).then(e,(function(t){throw e(),t}));function e(){b--,"prepare"===l&&(g[t]||x(t),0===b&&0===m&&O())}},n.t=function(t,e){return 1&e&&(t=n(t)),A.t(t,-2&e)},n}function c(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(p={})[e]=t[e],d("ready");break;case"ready":R(e);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(e)}},check:_,apply:P,status:function(t){if(!t)return l;f.push(t)},addStatusHandler:function(t){f.push(t)},removeStatusHandler:function(t){var e=f.indexOf(t);e>=0&&f.splice(e,1)},data:i[e]};return r=void 0,n}var f=[],l="idle";function d(t){l=t;for(var e=0;e<f.length;e++)f[e].call(null,t)}var h,p,v,y,m=0,b=0,g={},w={},k={};function j(t){return+t+""===t?+t:t}function _(t){if("idle"!==l)throw new Error("check() is only allowed in idle status");return n=t,d("check"),(e=1e4,e=e||1e4,new Promise((function(t,r){if("undefined"==typeof XMLHttpRequest)return r(new Error("No browser support"));try{var n=new XMLHttpRequest,i=A.p+""+o+".hot-update.json";n.open("GET",i,!0),n.timeout=e,n.send(null)}catch(t){return r(t)}n.onreadystatechange=function(){if(4===n.readyState)if(0===n.status)r(new Error("Manifest request to "+i+" timed out."));else if(404===n.status)t();else if(200!==n.status&&304!==n.status)r(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(n.responseText)}catch(t){return void r(t)}t(e)}}}))).then((function(t){if(!t)return d(E()?"ready":"idle"),null;w={},g={},k=t.c,v=t.h,d("prepare");var e=new Promise((function(t,e){h={resolve:t,reject:e}}));p={};return x(0),"prepare"===l&&0===b&&0===m&&O(),e}));var e}function x(t){k[t]?(w[t]=!0,m++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=A.p+""+t+"."+o+".hot-update.js",document.head.appendChild(e)}(t)):g[t]=!0}function O(){d("ready");var t=h;if(h=null,t)if(n)Promise.resolve().then((function(){return P(n)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&e.push(j(r));t.resolve(e)}}function P(e){if("ready"!==l)throw new Error("apply() is only allowed in ready status");return function e(n){var s,a,c,f,l;function h(t){for(var e=[t],r={},n=e.map((function(t){return{chain:[t],id:t}}));n.length>0;){var o=n.pop(),i=o.id,u=o.chain;if((f=S[i])&&(!f.hot._selfAccepted||f.hot._selfInvalidated)){if(f.hot._selfDeclined)return{type:"self-declined",chain:u,moduleId:i};if(f.hot._main)return{type:"unaccepted",chain:u,moduleId:i};for(var s=0;s<f.parents.length;s++){var a=f.parents[s],c=S[a];if(c){if(c.hot._declinedDependencies[i])return{type:"declined",chain:u.concat([a]),moduleId:i,parentId:a};-1===e.indexOf(a)&&(c.hot._acceptedDependencies[i]?(r[a]||(r[a]=[]),m(r[a],[i])):(delete r[a],e.push(a),n.push({chain:u.concat([a]),id:a})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:r}}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];-1===t.indexOf(n)&&t.push(n)}}E();var b={},g=[],w={},_=function(){console.warn("[HMR] unexpected require("+O.moduleId+") to disposed module")};for(var x in p)if(Object.prototype.hasOwnProperty.call(p,x)){var O;l=j(x),O=p[x]?h(l):{type:"disposed",moduleId:x};var P=!1,R=!1,T=!1,D="";switch(O.chain&&(D="\nUpdate propagation: "+O.chain.join(" -> ")),O.type){case"self-declined":n.onDeclined&&n.onDeclined(O),n.ignoreDeclined||(P=new Error("Aborted because of self decline: "+O.moduleId+D));break;case"declined":n.onDeclined&&n.onDeclined(O),n.ignoreDeclined||(P=new Error("Aborted because of declined dependency: "+O.moduleId+" in "+O.parentId+D));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(O),n.ignoreUnaccepted||(P=new Error("Aborted because "+l+" is not accepted"+D));break;case"accepted":n.onAccepted&&n.onAccepted(O),R=!0;break;case"disposed":n.onDisposed&&n.onDisposed(O),T=!0;break;default:throw new Error("Unexception type "+O.type)}if(P)return d("abort"),Promise.reject(P);if(R)for(l in w[l]=p[l],m(g,O.outdatedModules),O.outdatedDependencies)Object.prototype.hasOwnProperty.call(O.outdatedDependencies,l)&&(b[l]||(b[l]=[]),m(b[l],O.outdatedDependencies[l]));T&&(m(g,[O.moduleId]),w[l]=_)}var C,M=[];for(a=0;a<g.length;a++)l=g[a],S[l]&&S[l].hot._selfAccepted&&w[l]!==_&&!S[l].hot._selfInvalidated&&M.push({module:l,parents:S[l].parents.slice(),errorHandler:S[l].hot._selfAccepted});d("dispose"),Object.keys(k).forEach((function(t){!1===k[t]&&function(t){delete installedChunks[t]}(t)}));var I,W,L=g.slice();for(;L.length>0;)if(l=L.pop(),f=S[l]){var N={},F=f.hot._disposeHandlers;for(c=0;c<F.length;c++)(s=F[c])(N);for(i[l]=N,f.hot.active=!1,delete S[l],delete b[l],c=0;c<f.children.length;c++){var q=S[f.children[c]];q&&((C=q.parents.indexOf(l))>=0&&q.parents.splice(C,1))}}for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(f=S[l]))for(W=b[l],c=0;c<W.length;c++)I=W[c],(C=f.children.indexOf(I))>=0&&f.children.splice(C,1);d("apply"),void 0!==v&&(o=v,v=void 0);for(l in p=void 0,w)Object.prototype.hasOwnProperty.call(w,l)&&(t[l]=w[l]);var B=null;for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(f=S[l])){W=b[l];var U=[];for(a=0;a<W.length;a++)if(I=W[a],s=f.hot._acceptedDependencies[I]){if(-1!==U.indexOf(s))continue;U.push(s)}for(a=0;a<U.length;a++){s=U[a];try{s(W)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:l,dependencyId:W[a],error:t}),n.ignoreErrored||B||(B=t)}}}for(a=0;a<M.length;a++){var z=M[a];l=z.module,u=z.parents,r=l;try{A(l)}catch(t){if("function"==typeof z.errorHandler)try{z.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:l,error:e,originalError:t}),n.ignoreErrored||B||(B=e),B||(B=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:l,error:t}),n.ignoreErrored||B||(B=t)}}if(B)return d("fail"),Promise.reject(B);if(y)return e(n).then((function(t){return g.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return d("idle"),new Promise((function(t){t(g)}))}(e=e||{})}function E(){if(y)return p||(p={}),y.forEach(R),y=void 0,!0}function R(e){Object.prototype.hasOwnProperty.call(p,e)||(p[e]=t[e])}var S={};function A(e){if(S[e])return S[e].exports;var r=S[e]={i:e,l:!1,exports:{},hot:c(e),parents:(s=u,u=[],s),children:[]};return t[e].call(r.exports,r,r.exports,a(e)),r.l=!0,r.exports}return A.m=t,A.c=S,A.d=function(t,e,r){A.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},A.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},A.t=function(t,e){if(1&e&&(t=A(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(A.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)A.d(r,n,function(e){return t[e]}.bind(null,n));return r},A.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return A.d(e,"a",e),e},A.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},A.p="",A.h=function(){return o},a("./src/index.js")(A.s="./src/index.js")}({"./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js":function(t,e){t.exports=function(t,e,r,n,o){var i={};return Object.keys(n).forEach((function(t){i[t]=n[t]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(r,n){return n(t,e,r)||r}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(t,e,i),i=null),i}},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},"./node_modules/@babel/runtime/helpers/arrayWithHoles.js":function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");t.exports=function(t){if(Array.isArray(t))return n(t)}},"./node_modules/@babel/runtime/helpers/assertThisInitialized.js":function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},"./node_modules/@babel/runtime/helpers/asyncToGenerator.js":function(t,e){function r(t,e,r,n,o,i,u){try{var s=t[i](u),a=s.value}catch(t){return void r(t)}s.done?e(a):Promise.resolve(a).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var u=t.apply(e,n);function s(t){r(u,o,i,s,a,"next",t)}function a(t){r(u,o,i,s,a,"throw",t)}s(void 0)}))}}},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},"./node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js":function(t,e){t.exports=function(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}},"./node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js":function(t,e){var r=0;t.exports=function(t){return"__private_"+r+++"_"+t}},"./node_modules/@babel/runtime/helpers/construct.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/setPrototypeOf.js"),o=r("./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");function i(e,r,u){return o()?t.exports=i=Reflect.construct:t.exports=i=function(t,e,r){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return r&&n(i,r.prototype),i},i.apply(null,arguments)}t.exports=i},"./node_modules/@babel/runtime/helpers/createClass.js":function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},"./node_modules/@babel/runtime/helpers/defineProperty.js":function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},"./node_modules/@babel/runtime/helpers/get.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/superPropBase.js");function o(e,r,i){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=o=Reflect.get:t.exports=o=function(t,e,r){var o=n(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(r):i.value}},o(e,r,i||e)}t.exports=o},"./node_modules/@babel/runtime/helpers/getPrototypeOf.js":function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},"./node_modules/@babel/runtime/helpers/inherits.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/setPrototypeOf.js");t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},"./node_modules/@babel/runtime/helpers/initializerDefineProperty.js":function(t,e){t.exports=function(t,e,r,n){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}},"./node_modules/@babel/runtime/helpers/initializerWarningHelper.js":function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},"./node_modules/@babel/runtime/helpers/isNativeFunction.js":function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}},"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},"./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,s=t[Symbol.iterator]();!(n=(u=s.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}},"./node_modules/@babel/runtime/helpers/newArrowCheck.js":function(t,e){t.exports=function(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}},"./node_modules/@babel/runtime/helpers/nonIterableRest.js":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js"),o=r("./node_modules/@babel/runtime/helpers/assertThisInitialized.js");t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,n)}t.exports=r},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=r("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),i=r("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),u=r("./node_modules/@babel/runtime/helpers/nonIterableRest.js");t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||u()}},"./node_modules/@babel/runtime/helpers/superPropBase.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js");t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t}},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=r("./node_modules/@babel/runtime/helpers/iterableToArray.js"),i=r("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),u=r("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");t.exports=function(t){return n(t)||o(t)||i(t)||u()}},"./node_modules/@babel/runtime/helpers/typeof.js":function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js":function(t,e,r){var n=r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),o=r("./node_modules/@babel/runtime/helpers/setPrototypeOf.js"),i=r("./node_modules/@babel/runtime/helpers/isNativeFunction.js"),u=r("./node_modules/@babel/runtime/helpers/construct.js");function s(e){var r="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return u(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},s(e)}t.exports=s},"./node_modules/@babel/runtime/regenerator/index.js":function(t,e,r){t.exports=r("./node_modules/regenerator-runtime/runtime.js")},"./node_modules/@zoranwong/pure-container/lib/Container.js":function(t,e,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i,u,s,a,c,f=n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),l=n(r("./node_modules/@babel/runtime/helpers/createClass.js")),d=n(r("./node_modules/@babel/runtime/helpers/assertThisInitialized.js")),h=n(r("./node_modules/@babel/runtime/helpers/inherits.js")),p=n(r("./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")),v=n(r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js")),y=n(r("./node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js")),m=n(r("./node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js")),b=n(r("./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js")),g=n(r("./node_modules/@zoranwong/pure-container/lib/contracts/IContainer.js")),w=r("./node_modules/@zoranwong/pure-container/lib/helpers.js"),k=r("./node_modules/underscore/modules/index-all.js");function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,v.default)(t);if(e){var o=(0,v.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,p.default)(this,r)}}var _=(o=(0,r("./node_modules/@zoranwong/pure-decorators/lib/main.js").CheckType)(g.default),a=(0,m.default)("proxy"),c=s=function(t){(0,h.default)(r,t);var e=j(r);function r(){var t;return(0,f.default)(this,r),t=e.call(this),Object.defineProperty((0,d.default)(t),a,{writable:!0,value:null}),(0,y.default)((0,d.default)(t),a)[a]=new Proxy((0,d.default)(t),{get:function(t,e){return void 0===t[e]?t.get(e):t[e]},set:function(t,e,r){return(0,w.isClass)(r)?t.bind(e,r):(0,k.isFunction)(r)?void 0===r()?t.bindMethod(e,r):t.bind(e,r):t.instance(e,r),r}}),t}return(0,l.default)(r,[{key:"getProxy",value:function(){return(0,y.default)(this,a)[a]}},{key:"isClass",value:function(t){return(0,w.isClass)(t)}}],[{key:"getInstance",value:function(){var t=r._instance;return t||(r._instance=t=new r),t.getProxy()}}]),r}(g.default),s._instance=null,i=c,(0,b.default)(i,"_instance",[o],(u=(u=Object.getOwnPropertyDescriptor(i,"_instance"))?u.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return u}}),i),i);e.default=_},"./node_modules/@zoranwong/pure-container/lib/contracts/IContainer.js":function(t,e,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i,u,s,a,c,f,l,d,h,p,v,y,m,b,g,w=n(r("./node_modules/@babel/runtime/helpers/newArrowCheck.js")),k=n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),j=n(r("./node_modules/@babel/runtime/helpers/createClass.js")),_=n(r("./node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js")),x=n(r("./node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js")),O=n(r("./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js")),P=n(r("./node_modules/@zoranwong/pure-container/lib/contracts/RegisterContext.js")),E=r("./node_modules/underscore/modules/index-all.js"),R=r("./node_modules/@zoranwong/pure-decorators/lib/main.js"),S=(o=(0,R.method)([R.string,R.any],S),i=(0,R.method)([R.string,R.any,R.any,R.any],S),u=(0,R.method)([R.string,R.fun],R.any),s=(0,R.method)([R.string],R.string),a=(0,R.method)([R.string],R.boolean),c=(0,R.method)([R.string],R.any),f=(0,R.method)([R.string,R.any],S),l=(0,R.method)([R.any],R.any),d=(0,R.method)([R.string],R.any),h=(0,R.method)([R.any],R.any),p=(0,R.method)([R.any],R.any),y=(0,x.default)("instances"),m=(0,x.default)("bindings"),b=(0,x.default)("aliases"),g=(0,x.default)("methodBindings"),v=function(){function t(){(0,k.default)(this,t),Object.defineProperty(this,y,{writable:!0,value:{}}),Object.defineProperty(this,m,{writable:!0,value:{}}),Object.defineProperty(this,b,{writable:!0,value:{}}),Object.defineProperty(this,g,{writable:!0,value:{}})}return(0,j.default)(t,[{key:"instance",value:function(t,e){if((0,E.isFunction)(e))throw TypeError("注册对象不可以是函数或者类");return(0,_.default)(this,y)[y][t]=e,this}},{key:"bind",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,_.default)(this,m)[m][t]=new P.default(t,e,this,n,r),this}},{key:"bindMethod",value:function(t,e){(0,_.default)(this,g)[g][this.parseBindMethod(t)]=e}},{key:"parseBindMethod",value:function(t){return(0,E.isArray)(t)?"".concat(t[0],"@").concat(t[1]):t}},{key:"hasMethodBinding",value:function(t){return t=this.parseBindMethod(t),void 0!==(0,_.default)(this,g)[g][t]}},{key:"callMethodBinding",value:function(t){var e=(0,_.default)(this,g)[g];if(this.hasMethodBinding(t)){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e[t].apply(e,n)}}},{key:"singleton",value:function(t,e){return this.bind(t,e,!1,!0)}},{key:"getAlias",value:function(t){return void 0===(0,_.default)(this,b)[b][t]?t:this.getAlias(t)}},{key:"make",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return this.resolve.apply(this,[t].concat(r))}},{key:"resolve",value:function(t){t=this.getAlias(t);var e=(0,_.default)(this,y)[y];if(void 0!==e[t])return e[t];var r=(0,_.default)(this,m)[m],n=r[t];if(void 0!==n){for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];var s=n.resolve.apply(n,i);return n.singleton&&(e[t]=s),s}return null}},{key:"get",value:function(t){return this.resolve(t)}},{key:"extend",value:function(t,e){t=this.getAlias(t);var r=(0,_.default)(this,y)[y];if(void 0!==r[t]){var n=r[t];r[t]=e(n,this)}}},{key:"mixin",value:function(t){var e=this;(0,E.each)(t,function(t,r){(0,w.default)(this,e),this.addMethodOnPrototype(r,t)}.bind(this))}},{key:"addMethodOnPrototype",value:function(t,e){this.constructor.prototype[t]=e}}]),t}(),(0,O.default)(v.prototype,"instance",[o],Object.getOwnPropertyDescriptor(v.prototype,"instance"),v.prototype),(0,O.default)(v.prototype,"bind",[i],Object.getOwnPropertyDescriptor(v.prototype,"bind"),v.prototype),(0,O.default)(v.prototype,"bindMethod",[u],Object.getOwnPropertyDescriptor(v.prototype,"bindMethod"),v.prototype),(0,O.default)(v.prototype,"parseBindMethod",[s],Object.getOwnPropertyDescriptor(v.prototype,"parseBindMethod"),v.prototype),(0,O.default)(v.prototype,"hasMethodBinding",[a],Object.getOwnPropertyDescriptor(v.prototype,"hasMethodBinding"),v.prototype),(0,O.default)(v.prototype,"callMethodBinding",[c],Object.getOwnPropertyDescriptor(v.prototype,"callMethodBinding"),v.prototype),(0,O.default)(v.prototype,"singleton",[f],Object.getOwnPropertyDescriptor(v.prototype,"singleton"),v.prototype),(0,O.default)(v.prototype,"getAlias",[l],Object.getOwnPropertyDescriptor(v.prototype,"getAlias"),v.prototype),(0,O.default)(v.prototype,"make",[d],Object.getOwnPropertyDescriptor(v.prototype,"make"),v.prototype),(0,O.default)(v.prototype,"resolve",[h],Object.getOwnPropertyDescriptor(v.prototype,"resolve"),v.prototype),(0,O.default)(v.prototype,"get",[p],Object.getOwnPropertyDescriptor(v.prototype,"get"),v.prototype),v);e.default=S},"./node_modules/@zoranwong/pure-container/lib/contracts/RegisterContext.js":function(t,e,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i,u,s,a,c,f,l=n(r("./node_modules/@babel/runtime/helpers/construct.js")),d=n(r("./node_modules/@babel/runtime/helpers/newArrowCheck.js")),h=n(r("./node_modules/@babel/runtime/helpers/initializerDefineProperty.js")),p=n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),v=n(r("./node_modules/@babel/runtime/helpers/createClass.js")),y=n(r("./node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js")),m=(n(r("./node_modules/@babel/runtime/helpers/initializerWarningHelper.js")),r("./node_modules/underscore/modules/index-all.js")),b=(n(r("./node_modules/@zoranwong/pure-container/lib/contracts/IContainer.js")),r("./node_modules/@zoranwong/pure-decorators/lib/main.js")),g=r("./node_modules/@zoranwong/pure-container/lib/helpers.js"),w=(f=c=function(){function t(e,r,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,p.default)(this,t),(0,h.default)(this,"singleton",i,this),(0,h.default)(this,"callback",u,this),this.context=null,(0,h.default)(this,"name",s,this),(0,h.default)(this,"needPool",a,this),this._constructor=void 0,this.name=e,this.singleton=o,this.context=n,this.needPool=c,this.callback=this.getClosure(r)}return(0,v.default)(t,[{key:"getClosure",value:function(t){var e=this;if(!(0,m.isFunction)(t))return(0,m.isObject)(t)&&void 0!==t.constructor?(this._constructor=t.constructor,function(t){(0,d.default)(this,e),this.context=t;for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(0,l.default)(this._constructor,n)}.bind(this)):function(r){return(0,d.default)(this,e),t}.bind(this);try{if((0,g.isClass)(t))return this._constructor=t,function(t){(0,d.default)(this,e),this.context=t;for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(0,l.default)(this._constructor,n)}.bind(this);var r=function e(r){(0,p.default)(this,e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var u=t.apply(void 0,[r].concat(o));this.instance=u||(0,l.default)(t,o)};return r.prototype.instance=null,this._constructor=r,function(t){(0,d.default)(this,e),this.context=t;for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(0,l.default)(this._constructor,[t].concat(n)).instance}.bind(this)}catch(r){var n=function e(){(0,p.default)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];this.instance=(0,l.default)(t,n)};return n.prototype.instance=null,this._constructor=n,function(t){(0,d.default)(this,e),this.context=t;for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(0,l.default)(this._constructor,n).instance}.bind(this)}}},{key:"resolve",value:function(){if(this.callback){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(this.singleton){var o=this.callback.apply(this,[this.context].concat(r)),i=this.context;return i.instance(this.name,o),o}var u=[],s=[];this.needPool&&this._constructor&&(u=t.busyPool.get(this._constructor),s=t.freePool.get(this._constructor));var a=s?s.pop():null;return a=a||this.callback.apply(this,[this.context].concat(r)),this.needPool&&this._constructor&&((u=u||[]).push(a),this.bindDestroy(a)),a}return null}},{key:"bindDestroy",value:function(e){var r=this,n=function(){(0,d.default)(this,r);var n=t.busyPool.get(this._constructor),o=(n=n||[]).indexOf(e);o>-1&&delete n[o],t.busyPool.set(this._constructor,n);var i=t.freePool.get(this._constructor);(i=i||[]).length<100&&i.push(e),t.freePool.set(this._constructor,i)}.bind(this);e.hasOwnProperty("destroy")||Object.defineProperty(e,"destroy",{writable:!1,value:n})}}]),t}(),c.busyPool=new WeakMap,c.freePool=new WeakMap,o=f,i=(0,y.default)(o.prototype,"singleton",[b.boolean],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,y.default)(o.prototype,"callback",[b.ArrowFunction],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var t=this;return function(){return(0,d.default)(this,t),null}.bind(this)}}),s=(0,y.default)(o.prototype,"name",[b.string],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),a=(0,y.default)(o.prototype,"needPool",[b.boolean],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o);e.default=w},"./node_modules/@zoranwong/pure-container/lib/helpers.js":function(t,e,r){"use strict";function n(t){if("function"!=typeof t)return!1;if(void 0===t.prototype)return!0;var e=String(t);return!(Object.getOwnPropertyNames(t.prototype).length>=2)&&"class"!==e.slice(0,5)}Object.defineProperty(e,"__esModule",{value:!0}),e.isClass=function(t){if("function"!=typeof t)return!1;if(void 0===t.prototype)return!1;if(t.prototype.constructor!==t)return!1;if(Object.getOwnPropertyNames(t.prototype).length>=2)return!0;var e=String(t);if("class"==e.slice(0,5))return!0;if(/^function\s*\(|^function anonymous\(/.test(e))return!1;if(/this/.test(e)){return!!(/(classCallCheck)/.test(e)||/\[native code\]/.test(e)&&"BigInt"!==t.name&&"Symbol"!==t.name)||/^function\sdefault_\d+\s*\(/.test(e)}return!1},e.isFunction=n,e.isArrowFun=function(t){if(!n(t))return!1;var e=String(t);if(/^\([\w\s\,]*\)\s* \=>\s*\{[\s\S]*\}$/.test(e))return!0;if(/^function[\s]*\([\w\s\,]*\)\s*\{\s*\[native code\]\s*\}/.test(e))return!0;return!1}},"./node_modules/@zoranwong/pure-container/lib/index.js":function(t,e,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r("./node_modules/@zoranwong/pure-container/lib/Container.js")).default;e.default=o},"./node_modules/@zoranwong/pure-decorators/lib/main.js":function(t,e,r){"use strict";var n=r("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.string=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return b("string",t,e,r)},e.number=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return b("number",t,e,r)},e.unsigned=function(t,e,r){return b("unsigned",t,e,r)},e.int=function(t,e,r){return b("int",t,e,r)},e.array=function(t,e,r){return b("array",t,e,r)},e.fun=function(t,e,r){return b("function",t,e,r)},e.ArrowFunction=function(t,e,r){return b("ArrowFunction",t,e,r)},e.Constructor=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r?b("Constructor",e,r,n):function(r,n,o){return(0,i.default)(this,t),b("Constructor",r,n,o,e)}.bind(this)},e.float=function(t,e,r){return b("float",t,e,r)},e.boolean=function(t,e,r){return b("boolean",t,e,r)},e.Enum=function(t){var e=this;return function(r,n,o){return(0,i.default)(this,e),b("Enum",r,n,o,t)}.bind(this)},e.readonly=function(t,e,r){return r.writable=!1,r},e.any=function(t,e,r){return!0},e.CheckType=function(t){var e=this;return function(r,n,o){return(0,i.default)(this,e),b(t,r,n,o)}.bind(this)},e.method=function(t,e){var r=this;return function(n,o,u){return(0,i.default)(this,r),a(a({},u),{},{value:function(){for(var r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];for(var s in t){var a=t[s];"string"!==g(a)?a(o[s],s):p(o[s],s,a)}var c=(r=u.value).call.apply(r,[this].concat(o));return e&&("string"===g(e)?v(c,e):e(c)),c}})}.bind(this)},e.property=function(t){var e=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(n){(0,i.default)(this,e);var o={enumerable:!0,configurable:!0,writable:!0};o="string"==typeof r?b(r,this,t,o):r(this,t,o),Object.defineProperty(n.prototype,t,o)}.bind(this)};var o=n(r("./node_modules/@babel/runtime/helpers/defineProperty.js")),i=(n(r("./node_modules/@babel/runtime/helpers/classCallCheck.js")),n(r("./node_modules/@babel/runtime/helpers/createClass.js")),n(r("./node_modules/@babel/runtime/helpers/newArrowCheck.js"))),u=n(r("./node_modules/@babel/runtime/helpers/typeof.js"));function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var c=[Number,String,Boolean,Array,Symbol,Function];function f(t){for(var e in c)if(c[e].name.toLowerCase()===(0,u.default)(t))return!0;return!1}function l(t){if("function"!=typeof t)return!1;if(void 0===t.prototype)return!0;var e=String(t);return!(Object.getOwnPropertyNames(t.prototype).length>=2)&&"class"!==e.slice(0,5)}function d(t){if("function"!=typeof t)return!1;if(void 0===t.prototype)return!1;if(t.prototype.constructor!==t)return!1;if(Object.getOwnPropertyNames(t.prototype).length>=2)return!0;var e=String(t);return"class"==e.slice(0,5)||!/^function\s*\(|^function anonymous\(/.test(e)&&(!!/this/.test(e)&&(!!(/(classCallCheck)/.test(e)||/\[native code\]/.test(e)&&"BigInt"!==t.name&&"Symbol"!==t.name)||/^function\sdefault_\d+\s*\(/.test(e)))}function h(t){if(!l(t))return!1;var e=String(t);return!!/^\([\w\s\,]*\)\s* \=>\s*\{[\s\S]*\}$/.test(e)||!!/^function[\s]*\([\w\s\,]*\)\s*\{\s*\[native code\]\s*\}/.test(e)}var p=function(t,e,r,n){(0,i.default)(this,void 0);var o=g(t);if("string"===g(r)){switch(r){case"Enum":if(n.indexOf(t)>-1)return!0;throw new TypeError("the parameters[".concat(e,"] ").concat(name," is a enum type value, can't set a value not in the enum set"));case"function":if(l(t))return!0;throw new TypeError("the parameters[".concat(e,"] ").concat(name," is a function"));case"ArrowFunction":if(h(t))return!0;throw new TypeError("the parameters[".concat(e,"] ").concat(name," is a arrow function"));case"Constructor":if(!d(t)||n&&t!==n)throw new TypeError("the parameters[".concat(e,"] ").concat(name," is a class"));return!0}if(w(o,r))return!0;throw new TypeError("the parameters[".concat(e,"] is a ").concat(r," value, not a ").concat(o," value"))}if("object"===o){if(t instanceof r)return!0;throw new TypeError("the parameters[".concat(e,"] is a class ").concat(r.name," instance, not a class ").concat(t.constructor.name," instance"))}if(f(t))return!0;throw new TypeError("the parameters[".concat(e,"] is a ").concat(o," instance, not a class ").concat(t.constructor.name," instance"))}.bind(void 0),v=function(t,e,r){(0,i.default)(this,void 0);var n=g(t);if("string"===g(e)){switch(e){case"Enum":if(r.indexOf(t)>-1)return!0;throw new TypeError("the return value ".concat(name," is a enum type value, can't set a value not in the enum set"));case"function":if(l(t))return!0;throw new TypeError("the return value ".concat(name," is a function"));case"ArrowFunction":if(h(t))return!0;throw new TypeError("the return value ".concat(name," is a arrow function"));case"Constructor":if(!d(t)||r&&t!==r)throw new TypeError("the return value ".concat(name," is a class"));return!0}if(w(n,e))return!0;throw new TypeError("the function return data is a ".concat(e," value, not a ").concat(n," value"))}if("object"===n){if(t instanceof e)return!0;throw new TypeError("the function return data is a class ".concat(e.name," instance, not a class ").concat(t.constructor.name," instance"))}if(f(t))return!0;throw new TypeError("the function return data is a ".concat(n," instance, not a class ").concat(t.constructor.name," instance"))}.bind(void 0),y=function(t,e,r,n){(0,i.default)(this,void 0);var o=g(t);if("string"===g(r)){switch(r){case"Enum":if(n.indexOf(t)>-1)return!0;throw new TypeError("the property ".concat(e," is a enum type value, can't set a value not in the enum set"));case"function":if(l(t))return!0;throw new TypeError("the property ".concat(e," is a function"));case"ArrowFunction":if(h(t))return!0;throw new TypeError("the property ".concat(e," is a arrow function"));case"Constructor":if(!d(t)||n&&t!==n)throw new TypeError("the property ".concat(e," is a class"));return!0}if(w(o,r))return!0;throw new TypeError("the property ".concat(e," is a ").concat(r," value, not a ").concat(o," value"))}if("object"===o){if(t instanceof r)return!0;throw new TypeError("the property ".concat(e," is a class ").concat(r.name," instance, not a class ").concat(t.constructor.name," instance"))}if(f(t))return!0;throw new TypeError("the property ".concat(e," is a ").concat(o," instance, not a class ").concat(t.constructor.name," instance"))}.bind(void 0),m=function(t,e,r,n,o){return(0,i.default)(this,void 0),{enumerable:!0,configurable:!0,get:function(){return this.decorators?this.decorators[r]:(this.decorators={},n.initializer&&n.initializer.call(this))},set:function(t){y(t,r,e,o)&&(this.decorators||(this.decorators={}),this.decorators[r]=t)}}}.bind(void 0),b=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,i.default)(this,void 0),n?m(e,t,r,n,o):r?p(e,r,t,o):v(e,t,o)}.bind(void 0);function g(t){var e=(0,u.default)(t);if("number"===e){var r=t+"";"int"===(e=r.indexOf(".")>-1?"float":"int")&&(e="-"===r.charAt(0)?"int":"unsigned")}return e}function w(t,e){var r=("int"===t||"unsigned"===t)&&"float"===e,n="unsigned"===t&&"int"===e,o=["int","unsigned","float"].indexOf(t)>-1&&"number"===e;return!!(t===e||r||n||o)}},"./node_modules/charenc/charenc.js":function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},"./node_modules/crypt/crypt.js":function(t,e){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var e=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?e.push(r.charAt(o>>>6*(3-i)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&e.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(t.charAt(n))>>>6-2*o);return e}},t.exports=n},"./node_modules/decode-uri-component/index.js":function(t,e,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function i(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],i(r),i(n))}function u(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(n),r=1;r<e.length;r++)e=(t=i(e,r).join("")).match(n);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},r=o.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var n=u(r[0]);n!==r[0]&&(e[r[0]]=n)}r=o.exec(t)}e["%C2"]="�";for(var i=Object.keys(e),s=0;s<i.length;s++){var a=i[s];t=t.replace(new RegExp(a,"g"),e[a])}return t}(t)}}},"./node_modules/is-buffer/index.js":function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},"./node_modules/md5/md5.js":function(t,e,r){var n,o,i,u,s;n=r("./node_modules/crypt/crypt.js"),o=r("./node_modules/charenc/charenc.js").utf8,i=r("./node_modules/is-buffer/index.js"),u=r("./node_modules/charenc/charenc.js").bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?u.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),a=8*t.length,c=1732584193,f=-271733879,l=-1732584194,d=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[a>>>5]|=128<<a%32,r[14+(a+64>>>9<<4)]=a;var p=s._ff,v=s._gg,y=s._hh,m=s._ii;for(h=0;h<r.length;h+=16){var b=c,g=f,w=l,k=d;c=p(c,f,l,d,r[h+0],7,-680876936),d=p(d,c,f,l,r[h+1],12,-389564586),l=p(l,d,c,f,r[h+2],17,606105819),f=p(f,l,d,c,r[h+3],22,-1044525330),c=p(c,f,l,d,r[h+4],7,-176418897),d=p(d,c,f,l,r[h+5],12,1200080426),l=p(l,d,c,f,r[h+6],17,-1473231341),f=p(f,l,d,c,r[h+7],22,-45705983),c=p(c,f,l,d,r[h+8],7,1770035416),d=p(d,c,f,l,r[h+9],12,-1958414417),l=p(l,d,c,f,r[h+10],17,-42063),f=p(f,l,d,c,r[h+11],22,-1990404162),c=p(c,f,l,d,r[h+12],7,1804603682),d=p(d,c,f,l,r[h+13],12,-40341101),l=p(l,d,c,f,r[h+14],17,-1502002290),c=v(c,f=p(f,l,d,c,r[h+15],22,1236535329),l,d,r[h+1],5,-165796510),d=v(d,c,f,l,r[h+6],9,-1069501632),l=v(l,d,c,f,r[h+11],14,643717713),f=v(f,l,d,c,r[h+0],20,-373897302),c=v(c,f,l,d,r[h+5],5,-701558691),d=v(d,c,f,l,r[h+10],9,38016083),l=v(l,d,c,f,r[h+15],14,-660478335),f=v(f,l,d,c,r[h+4],20,-405537848),c=v(c,f,l,d,r[h+9],5,568446438),d=v(d,c,f,l,r[h+14],9,-1019803690),l=v(l,d,c,f,r[h+3],14,-187363961),f=v(f,l,d,c,r[h+8],20,1163531501),c=v(c,f,l,d,r[h+13],5,-1444681467),d=v(d,c,f,l,r[h+2],9,-51403784),l=v(l,d,c,f,r[h+7],14,1735328473),c=y(c,f=v(f,l,d,c,r[h+12],20,-1926607734),l,d,r[h+5],4,-378558),d=y(d,c,f,l,r[h+8],11,-2022574463),l=y(l,d,c,f,r[h+11],16,1839030562),f=y(f,l,d,c,r[h+14],23,-35309556),c=y(c,f,l,d,r[h+1],4,-1530992060),d=y(d,c,f,l,r[h+4],11,1272893353),l=y(l,d,c,f,r[h+7],16,-155497632),f=y(f,l,d,c,r[h+10],23,-1094730640),c=y(c,f,l,d,r[h+13],4,681279174),d=y(d,c,f,l,r[h+0],11,-358537222),l=y(l,d,c,f,r[h+3],16,-722521979),f=y(f,l,d,c,r[h+6],23,76029189),c=y(c,f,l,d,r[h+9],4,-640364487),d=y(d,c,f,l,r[h+12],11,-421815835),l=y(l,d,c,f,r[h+15],16,530742520),c=m(c,f=y(f,l,d,c,r[h+2],23,-995338651),l,d,r[h+0],6,-198630844),d=m(d,c,f,l,r[h+7],10,1126891415),l=m(l,d,c,f,r[h+14],15,-1416354905),f=m(f,l,d,c,r[h+5],21,-57434055),c=m(c,f,l,d,r[h+12],6,1700485571),d=m(d,c,f,l,r[h+3],10,-1894986606),l=m(l,d,c,f,r[h+10],15,-1051523),f=m(f,l,d,c,r[h+1],21,-2054922799),c=m(c,f,l,d,r[h+8],6,1873313359),d=m(d,c,f,l,r[h+15],10,-30611744),l=m(l,d,c,f,r[h+6],15,-1560198380),f=m(f,l,d,c,r[h+13],21,1309151649),c=m(c,f,l,d,r[h+4],6,-145523070),d=m(d,c,f,l,r[h+11],10,-1120210379),l=m(l,d,c,f,r[h+2],15,718787259),f=m(f,l,d,c,r[h+9],21,-343485551),c=c+b>>>0,f=f+g>>>0,l=l+w>>>0,d=d+k>>>0}return n.endian([c,f,l,d])})._ff=function(t,e,r,n,o,i,u){var s=t+(e&r|~e&n)+(o>>>0)+u;return(s<<i|s>>>32-i)+e},s._gg=function(t,e,r,n,o,i,u){var s=t+(e&n|r&~n)+(o>>>0)+u;return(s<<i|s>>>32-i)+e},s._hh=function(t,e,r,n,o,i,u){var s=t+(e^r^n)+(o>>>0)+u;return(s<<i|s>>>32-i)+e},s._ii=function(t,e,r,n,o,i,u){var s=t+(r^(e|~n))+(o>>>0)+u;return(s<<i|s>>>32-i)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?u.bytesToString(r):n.bytesToHex(r)}},"./node_modules/process/browser.js":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(t){n=u}}();var a,c=[],f=!1,l=-1;function d(){f&&a&&(f=!1,a.length?c=a.concat(c):l=-1,c.length&&h())}function h(){if(!f){var t=s(d);f=!0;for(var e=c.length;e;){for(a=c,c=[];++l<e;)a&&a[l].run();l=-1,e=c.length}a=null,f=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||f||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},"./node_modules/query-string/index.js":function(t,e,r){"use strict";const n=r("./node_modules/strict-uri-encode/index.js"),o=r("./node_modules/decode-uri-component/index.js"),i=r("./node_modules/split-on-first/index.js");function u(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function a(t,e){return e.decode?o(t):t}function c(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function f(t){const e=(t=c(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function l(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function d(t,e){u((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const o="string"==typeof r&&r.includes(t.arrayFormatSeparator),i="string"==typeof r&&!o&&a(r,t).includes(t.arrayFormatSeparator);r=i?a(r,t):r;const u=o||i?r.split(t.arrayFormatSeparator).map(