-
Notifications
You must be signed in to change notification settings - Fork 0
/
ioc.js
2 lines (2 loc) · 11.1 KB
/
ioc.js
1
2
/*! For license information please see ioc.js.LICENSE.txt */
(()=>{var t={844:(t,e,r)=>{var n;!function(t){!function(){var e="object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),n=o(t);function o(t,e){return function(r,n){"function"!=typeof t[r]&&Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0===e.Reflect?e.Reflect=t:n=o(e.Reflect,n),function(t){var e=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",i="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!i&&!u,c={create:i?function(){return z(Object.create(null))}:u?function(){return z({__proto__:null})}:function(){return z({})},has:a?function(t,r){return e.call(t,r)}:function(t,e){return e in t},get:a?function(t,r){return e.call(t,r)?t[r]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),s="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,h=s||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,u)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function u(t,e){return[t,e]}}():Map,p=s||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}():Set,y=new(s||"function"!=typeof WeakMap?function(){var t=c.create(),r=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=o(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=o(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=o(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+u()}while(c.has(t,e));return t[e]=!0,e}function o(t,n){if(!e.call(t,r)){if(!n)return;Object.defineProperty(t,r,{value:c.create()})}return t[r]}function i(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function u(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):i(new Uint8Array(t),t):i(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var r="",n=0;n<16;++n){var o=e[n];4!==n&&6!==n&&8!==n||(r+="-"),o<16&&(r+="0"),r+=o.toString(16).toLowerCase()}return r}}():WeakMap);function l(t,e,r){var n=y.get(t);if(k(n)){if(!r)return;n=new h,y.set(t,n)}var o=n.get(e);if(k(o)){if(!r)return;o=new h,n.set(e,o)}return o}function v(t,e,r){if(d(t,e,r))return!0;var n=K(e);return!O(n)&&v(t,n,r)}function d(t,e,r){var n=l(e,r,!1);return!k(n)&&!!n.has(t)}function _(t,e,r){if(d(t,e,r))return w(t,e,r);var n=K(e);return O(n)?void 0:_(t,n,r)}function w(t,e,r){var n=l(e,r,!1);if(!k(n))return n.get(t)}function g(t,e,r,n){l(r,n,!0).set(t,e)}function b(t,e){var r=m(t,e),n=K(t);if(null===n)return r;var o=b(n,e);if(o.length<=0)return r;if(r.length<=0)return o;for(var i=new p,u=[],a=0,c=r;a<c.length;a++){var f=c[a];i.has(f)||(i.add(f),u.push(f))}for(var s=0,h=o;s<h.length;s++)f=h[s],i.has(f)||(i.add(f),u.push(f));return u}function m(t,e){var r=[],n=l(t,e,!1);if(k(n))return r;for(var i=function(t){var e=R(t,o);if(!P(e))throw new TypeError;var r=e.call(t);if(!E(r))throw new TypeError;return r}(n.keys()),u=0;;){var a=S(i);if(!a)return r.length=u,r;var c=a.value;try{r[u]=c}catch(t){try{I(i)}finally{throw t}}u++}}function j(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function k(t){return void 0===t}function O(t){return null===t}function E(t){return"object"==typeof t?null!==t:"function"==typeof t}function T(t,e){switch(j(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",o=R(t,n);if(void 0!==o){var i=o.call(t,r);if(E(i))throw new TypeError;return i}return function(t,e){if("string"===e){var r=t.toString;if(P(r)&&!E(o=r.call(t)))return o;if(P(n=t.valueOf)&&!E(o=n.call(t)))return o}else{var n;if(P(n=t.valueOf)&&!E(o=n.call(t)))return o;var o,i=t.toString;if(P(i)&&!E(o=i.call(t)))return o}throw new TypeError}(t,"default"===r?"number":r)}function x(t){var e=T(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function M(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function P(t){return"function"==typeof t}function A(t){return"function"==typeof t}function R(t,e){var r=t[e];if(null!=r){if(!P(r))throw new TypeError;return r}}function S(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function K(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var o=n.constructor;return"function"!=typeof o||o===t?e:o}function z(t){return t.__=void 0,delete t.__,t}t("decorate",(function(t,e,r,n){if(k(r)){if(!M(t))throw new TypeError;if(!A(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!k(n)&&!O(n)){if(!A(n))throw new TypeError;e=n}}return e}(t,e)}if(!M(t))throw new TypeError;if(!E(e))throw new TypeError;if(!E(n)&&!k(n)&&!O(n))throw new TypeError;return O(n)&&(n=void 0),function(t,e,r,n){for(var o=t.length-1;o>=0;--o){var i=(0,t[o])(e,r,n);if(!k(i)&&!O(i)){if(!E(i))throw new TypeError;n=i}}return n}(t,e,r=x(r),n)})),t("metadata",(function(t,e){return function(r,n){if(!E(r))throw new TypeError;if(!k(n)&&!function(t){switch(j(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;g(t,e,r,n)}})),t("defineMetadata",(function(t,e,r,n){if(!E(r))throw new TypeError;return k(n)||(n=x(n)),g(t,e,r,n)})),t("hasMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return k(r)||(r=x(r)),v(t,e,r)})),t("hasOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return k(r)||(r=x(r)),d(t,e,r)})),t("getMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return k(r)||(r=x(r)),_(t,e,r)})),t("getOwnMetadata",(function(t,e,r){if(!E(e))throw new TypeError;return k(r)||(r=x(r)),w(t,e,r)})),t("getMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return k(e)||(e=x(e)),b(t,e)})),t("getOwnMetadataKeys",(function(t,e){if(!E(t))throw new TypeError;return k(e)||(e=x(e)),m(t,e)})),t("deleteMetadata",(function(t,e,r){if(!E(e))throw new TypeError;k(r)||(r=x(r));var n=l(e,r,!1);if(k(n))return!1;if(!n.delete(t))return!1;if(n.size>0)return!0;var o=y.get(e);return o.delete(r),o.size>0||y.delete(e),!0}))}(n)}()}(n||(n={}))},561:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.injectable=void 0,r(844);const n=[];e.injectable=function(t){let e=Reflect.getMetadata("design:paramtypes",t);-1===n.indexOf(t)&&(e.length&&e.forEach(((e,r)=>{if(e===t)throw new Error("不可以依赖自身");if(-1===n.indexOf(e))throw new Error(`依赖${r}[${e.name}]不可被注入`)})),n.push(t))},e.create=function t(e){return new e(...Reflect.getMetadata("design:paramtypes",e).map(((e,r)=>{if(-1===n.indexOf(e))throw new Error(`参数${r}[${e.name}]不可被注入`);return e.length?t(e):new e})))}},603:function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,u=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(u=(i<3?o(u):i>3?o(e,r,u):o(e,r))||u);return i>3&&u&&Object.defineProperty(e,r,u),u},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});const i=r(561);let u=class{constructor(t){this.a=t}};u=n([i.injectable,o("design:paramtypes",[f])],u);let a=class{};a=n([i.injectable],a);let c=class{};c=n([i.injectable],c);let f=class{};f=n([i.injectable],f);let s=class{constructor(t,e,r){this.b=t,this.c=e,this.d=r}};s=n([i.injectable,o("design:paramtypes",[u,a,c])],s),(0,i.create)(s)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(603)})();