@jsfsi-core/ts-nestjs 1.1.46 → 1.1.48
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/dist/index.cjs +17 -17
- package/dist/index.mjs +3295 -3296
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);let f=require(`path`);f=u(f);let p=require(`url`);var m=s((()=>{var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:s(),r=i(e);n.Reflect!==void 0&&(r=i(n.Reflect,r)),t(r,n),n.Reflect===void 0&&(n.Reflect=e);function i(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}function a(){try{return Function(`return this;`)()}catch{}}function o(){try{return(0,eval)(`(function() { return this; })()`)}catch{}}function s(){return a()||o()}})(function(e,t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol==`function`,i=r&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,a=r&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,o=typeof Object.create==`function`,s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return Ae(Object.create(null))}:s?function(){return Ae({__proto__:null})}:function(){return Ae({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d=typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:De(),f=typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:Oe(),p=typeof WeakMap==`function`?WeakMap:ke(),m=r?Symbol.for(`@reflect-metadata:registry`):void 0,h=Ce(),g=we(h);function _(e,t,n,r){if(N(n)){if(!de(e)||!pe(t))throw TypeError();return D(e,t)}else{if(!de(e)||!P(t)||!P(r)&&!N(r)&&!ie(r))throw TypeError();return ie(r)&&(r=void 0),n=ue(n),O(e,t,n,r)}}e(`decorate`,_);function v(e,t){function n(n,r){if(!P(n)||!N(r)&&!me(r))throw TypeError();M(e,t,n,r)}return n}e(`metadata`,v);function y(e,t,n,r){if(!P(n))throw TypeError();return N(r)||(r=ue(r)),M(e,t,n,r)}e(`defineMetadata`,y);function b(e,t,n){if(!P(t))throw TypeError();return N(n)||(n=ue(n)),k(e,t,n)}e(`hasMetadata`,b);function x(e,t,n){if(!P(t))throw TypeError();return N(n)||(n=ue(n)),A(e,t,n)}e(`hasOwnMetadata`,x);function S(e,t,n){if(!P(t))throw TypeError();return N(n)||(n=ue(n)),j(e,t,n)}e(`getMetadata`,S);function C(e,t,n){if(!P(t))throw TypeError();return N(n)||(n=ue(n)),ee(e,t,n)}e(`getOwnMetadata`,C);function w(e,t){if(!P(e))throw TypeError();return N(t)||(t=ue(t)),te(e,t)}e(`getMetadataKeys`,w);function T(e,t){if(!P(e))throw TypeError();return N(t)||(t=ue(t)),ne(e,t)}e(`getOwnMetadataKeys`,T);function E(e,t,n){if(!P(t)||(N(n)||(n=ue(n)),!P(t)))throw TypeError();N(n)||(n=ue(n));var r=Ee(t,n,!1);return N(r)?!1:r.OrdinaryDeleteMetadata(e,t,n)}e(`deleteMetadata`,E);function D(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!N(i)&&!ie(i)){if(!pe(i))throw TypeError();t=i}}return t}function O(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!N(o)&&!ie(o)){if(!P(o))throw TypeError();r=o}}return r}function k(e,t,n){if(A(e,t,n))return!0;var r=xe(t);return ie(r)?!1:k(e,r,n)}function A(e,t,n){var r=Ee(t,n,!1);return N(r)?!1:ce(r.OrdinaryHasOwnMetadata(e,t,n))}function j(e,t,n){if(A(e,t,n))return ee(e,t,n);var r=xe(t);if(!ie(r))return j(e,r,n)}function ee(e,t,n){var r=Ee(t,n,!1);if(!N(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function M(e,t,n,r){Ee(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function te(e,t){var n=ne(e,t),r=xe(e);if(r===null)return n;var i=te(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function ne(e,t){var n=Ee(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function re(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function N(e){return e===void 0}function ie(e){return e===null}function ae(e){return typeof e==`symbol`}function P(e){return typeof e==`object`?e!==null:typeof e==`function`}function oe(e,t){switch(re(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,r=ge(e,i);if(r!==void 0){var a=r.call(e,n);if(P(a))throw TypeError();return a}return se(e,n===`default`?`number`:n)}function se(e,t){if(t===`string`){var n=e.toString;if(fe(n)){var r=n.call(e);if(!P(r))return r}var i=e.valueOf;if(fe(i)){var r=i.call(e);if(!P(r))return r}}else{var i=e.valueOf;if(fe(i)){var r=i.call(e);if(!P(r))return r}var a=e.toString;if(fe(a)){var r=a.call(e);if(!P(r))return r}}throw TypeError()}function ce(e){return!!e}function le(e){return``+e}function ue(e){var t=oe(e,3);return ae(t)?t:le(t)}function de(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function fe(e){return typeof e==`function`}function pe(e){return typeof e==`function`}function me(e){switch(re(e)){case 3:return!0;case 4:return!0;default:return!1}}function he(e,t){return e===t||e!==e&&t!==t}function ge(e,t){var n=e[t];if(n!=null){if(!fe(n))throw TypeError();return n}}function _e(e){var t=ge(e,a);if(!fe(t))throw TypeError();var n=t.call(e);if(!P(n))throw TypeError();return n}function ve(e){return e.value}function ye(e){var t=e.next();return t.done?!1:t}function be(e){var t=e.return;t&&t.call(e)}function xe(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===u||t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function Se(){var e;!N(m)&&t.Reflect!==void 0&&!(m in t.Reflect)&&typeof t.Reflect.defineMetadata==`function`&&(e=Te(t.Reflect));var n,r,i,a=new p,o={registerProvider:s,getProvider:l,setProvider:h};return o;function s(t){if(!Object.isExtensible(o))throw Error(`Cannot add provider to a frozen registry.`);switch(!0){case e===t:break;case N(n):n=t;break;case n===t:break;case N(r):r=t;break;case r===t:break;default:i===void 0&&(i=new f),i.add(t);break}}function c(t,a){if(!N(n)){if(n.isProviderFor(t,a))return n;if(!N(r)){if(r.isProviderFor(t,a))return n;if(!N(i))for(var o=_e(i);;){var s=ye(o);if(!s)return;var c=ve(s);if(c.isProviderFor(t,a))return be(o),c}}}if(!N(e)&&e.isProviderFor(t,a))return e}function l(e,t){var n=a.get(e),r;return N(n)||(r=n.get(t)),N(r)?(r=c(e,t),N(r)||(N(n)&&(n=new d,a.set(e,n)),n.set(t,r)),r):r}function u(e){if(N(e))throw TypeError();return n===e||r===e||!N(i)&&i.has(e)}function h(e,t,n){if(!u(n))throw Error(`Metadata provider not registered.`);var r=l(e,t);if(r!==n){if(!N(r))return!1;var i=a.get(e);N(i)&&(i=new d,a.set(e,i)),i.set(t,n)}return!0}}function Ce(){var e;return!N(m)&&P(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),N(e)&&(e=Se()),!N(m)&&P(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function we(e){var t=new p,n={isProviderFor:function(e,n){var r=t.get(e);return N(r)?!1:r.has(n)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:i,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(N(o)){if(!a)return;o=new d,t.set(r,o),s=!0}var c=o.get(i);if(N(c)){if(!a)return;if(c=new d,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),Error(`Wrong provider for target.`)}return c}function i(e,t,n){var i=r(t,n,!1);return N(i)?!1:ce(i.has(e))}function a(e,t,n){var i=r(t,n,!1);if(!N(i))return i.get(e)}function o(e,t,n,i){r(n,i,!0).set(e,t)}function s(e,t){var n=[],i=r(e,t,!1);if(N(i))return n;for(var a=_e(i.keys()),o=0;;){var s=ye(a);if(!s)return n.length=o,n;var c=ve(s);try{n[o]=c}catch(e){try{be(a)}finally{throw e}}o++}}function c(e,n,i){var a=r(n,i,!1);if(N(a)||!a.delete(e))return!1;if(a.size===0){var o=t.get(n);N(o)||(o.delete(i),o.size===0&&t.delete(o))}return!0}}function Te(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new p;return{isProviderFor:function(e,t){var n=o.get(e);return!N(n)&&n.has(t)?!0:i(e,t).length?(N(n)&&(n=new f,o.set(e,n)),n.add(t),!0):!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}function Ee(e,t,n){var r=h.getProvider(e,t);if(!N(r))return r;if(n){if(h.setProvider(e,t,g))return g;throw Error(`Illegal state.`)}}function De(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,`size`,{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,he(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!he(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(he(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function Oe(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,`size`,{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}()}function ke(){var e=16,t=l.create(),r=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=a(e,!1);return t===void 0?!1:l.has(t,this._key)},e.prototype.get=function(e){var t=a(e,!1);return t===void 0?void 0:l.get(t,this._key)},e.prototype.set=function(e,t){var n=a(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=a(e,!1);return t===void 0?!1:delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var e;do e=`@@WeakMap@@`+c();while(l.has(t,e));return t[e]=!0,e}function a(e,t){if(!n.call(e,r)){if(!t)return;Object.defineProperty(e,r,{value:l.create()})}return e[r]}function o(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function s(e){if(typeof Uint8Array==`function`){var t=new Uint8Array(e);return typeof crypto<`u`?crypto.getRandomValues(t):typeof msCrypto<`u`?msCrypto.getRandomValues(t):o(t,e),t}return o(Array(e),e)}function c(){var t=s(e);t[6]=t[6]&79|64,t[8]=t[8]&191|128;for(var n=``,r=0;r<e;++r){var i=t[r];(r===4||r===6||r===8)&&(n+=`-`),i<16&&(n+=`0`),n+=i.toString(16).toLowerCase()}return n}}function Ae(e){return e.__=void 0,delete e.__,e}})})(e||={})}));m();var h=Object.create,g=Object.defineProperty,_=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,y=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=v(t),a=0,o=i.length,s;a<o;a++)s=i[a],!b.call(e,s)&&s!==n&&g(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=_(t,s))||r.enumerable});return e},C=(e,t,n)=>(n=e==null?{}:h(y(e)),S(t||!e||!e.__esModule?g(n,`default`,{value:e,enumerable:!0}):n,e)),w=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),T=C(x(((e,t)=>{var n=w(`fs`),r=w(`path`),i=w(`os`),a=w(`crypto`),o=[`◈ encrypted .env [www.dotenvx.com]`,`◈ secrets for agents [www.dotenvx.com]`,`⌁ auth for agents [www.vestauth.com]`,`⌘ custom filepath { path: '/custom/path/.env' }`,`⌘ enable debugging { debug: true }`,`⌘ override existing { override: true }`,`⌘ suppress logs { quiet: true }`,`⌘ multiple files { path: ['.env.local', '.env'] }`];function s(){return o[Math.floor(Math.random()*o.length)]}function c(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function l(){return process.stdout.isTTY}function u(e){return l()?`\x1b[2m${e}\x1b[0m`:e}var d=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function f(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);let f=require(`path`);f=u(f);var p=s((()=>{var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:s(),r=i(e);n.Reflect!==void 0&&(r=i(n.Reflect,r)),t(r,n),n.Reflect===void 0&&(n.Reflect=e);function i(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}function a(){try{return Function(`return this;`)()}catch{}}function o(){try{return(0,eval)(`(function() { return this; })()`)}catch{}}function s(){return a()||o()}})(function(e,t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol==`function`,i=r&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,a=r&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,o=typeof Object.create==`function`,s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return Ae(Object.create(null))}:s?function(){return Ae({__proto__:null})}:function(){return Ae({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d=typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:Oe(),f=typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:ke(),p=typeof WeakMap==`function`?WeakMap:P(),m=r?Symbol.for(`@reflect-metadata:registry`):void 0,h=we(),g=Te(h);function _(e,t,n,r){if(M(n)){if(!fe(e)||!me(t))throw TypeError();return D(e,t)}else{if(!fe(e)||!N(t)||!N(r)&&!M(r)&&!ae(r))throw TypeError();return ae(r)&&(r=void 0),n=de(n),O(e,t,n,r)}}e(`decorate`,_);function v(e,t){function n(n,r){if(!N(n)||!M(r)&&!he(r))throw TypeError();ne(e,t,n,r)}return n}e(`metadata`,v);function y(e,t,n,r){if(!N(n))throw TypeError();return M(r)||(r=de(r)),ne(e,t,n,r)}e(`defineMetadata`,y);function b(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),k(e,t,n)}e(`hasMetadata`,b);function x(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),A(e,t,n)}e(`hasOwnMetadata`,x);function S(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),ee(e,t,n)}e(`getMetadata`,S);function C(e,t,n){if(!N(t))throw TypeError();return M(n)||(n=de(n)),te(e,t,n)}e(`getOwnMetadata`,C);function w(e,t){if(!N(e))throw TypeError();return M(t)||(t=de(t)),j(e,t)}e(`getMetadataKeys`,w);function T(e,t){if(!N(e))throw TypeError();return M(t)||(t=de(t)),re(e,t)}e(`getOwnMetadataKeys`,T);function E(e,t,n){if(!N(t)||(M(n)||(n=de(n)),!N(t)))throw TypeError();M(n)||(n=de(n));var r=De(t,n,!1);return M(r)?!1:r.OrdinaryDeleteMetadata(e,t,n)}e(`deleteMetadata`,E);function D(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!M(i)&&!ae(i)){if(!me(i))throw TypeError();t=i}}return t}function O(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!M(o)&&!ae(o)){if(!N(o))throw TypeError();r=o}}return r}function k(e,t,n){if(A(e,t,n))return!0;var r=Se(t);return ae(r)?!1:k(e,r,n)}function A(e,t,n){var r=De(t,n,!1);return M(r)?!1:le(r.OrdinaryHasOwnMetadata(e,t,n))}function ee(e,t,n){if(A(e,t,n))return te(e,t,n);var r=Se(t);if(!ae(r))return ee(e,r,n)}function te(e,t,n){var r=De(t,n,!1);if(!M(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function ne(e,t,n,r){De(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function j(e,t){var n=re(e,t),r=Se(e);if(r===null)return n;var i=j(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function re(e,t){var n=De(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function ie(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function M(e){return e===void 0}function ae(e){return e===null}function oe(e){return typeof e==`symbol`}function N(e){return typeof e==`object`?e!==null:typeof e==`function`}function se(e,t){switch(ie(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,r=_e(e,i);if(r!==void 0){var a=r.call(e,n);if(N(a))throw TypeError();return a}return ce(e,n===`default`?`number`:n)}function ce(e,t){if(t===`string`){var n=e.toString;if(pe(n)){var r=n.call(e);if(!N(r))return r}var i=e.valueOf;if(pe(i)){var r=i.call(e);if(!N(r))return r}}else{var i=e.valueOf;if(pe(i)){var r=i.call(e);if(!N(r))return r}var a=e.toString;if(pe(a)){var r=a.call(e);if(!N(r))return r}}throw TypeError()}function le(e){return!!e}function ue(e){return``+e}function de(e){var t=se(e,3);return oe(t)?t:ue(t)}function fe(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function pe(e){return typeof e==`function`}function me(e){return typeof e==`function`}function he(e){switch(ie(e)){case 3:return!0;case 4:return!0;default:return!1}}function ge(e,t){return e===t||e!==e&&t!==t}function _e(e,t){var n=e[t];if(n!=null){if(!pe(n))throw TypeError();return n}}function ve(e){var t=_e(e,a);if(!pe(t))throw TypeError();var n=t.call(e);if(!N(n))throw TypeError();return n}function ye(e){return e.value}function be(e){var t=e.next();return t.done?!1:t}function xe(e){var t=e.return;t&&t.call(e)}function Se(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===u||t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function Ce(){var e;!M(m)&&t.Reflect!==void 0&&!(m in t.Reflect)&&typeof t.Reflect.defineMetadata==`function`&&(e=Ee(t.Reflect));var n,r,i,a=new p,o={registerProvider:s,getProvider:l,setProvider:h};return o;function s(t){if(!Object.isExtensible(o))throw Error(`Cannot add provider to a frozen registry.`);switch(!0){case e===t:break;case M(n):n=t;break;case n===t:break;case M(r):r=t;break;case r===t:break;default:i===void 0&&(i=new f),i.add(t);break}}function c(t,a){if(!M(n)){if(n.isProviderFor(t,a))return n;if(!M(r)){if(r.isProviderFor(t,a))return n;if(!M(i))for(var o=ve(i);;){var s=be(o);if(!s)return;var c=ye(s);if(c.isProviderFor(t,a))return xe(o),c}}}if(!M(e)&&e.isProviderFor(t,a))return e}function l(e,t){var n=a.get(e),r;return M(n)||(r=n.get(t)),M(r)?(r=c(e,t),M(r)||(M(n)&&(n=new d,a.set(e,n)),n.set(t,r)),r):r}function u(e){if(M(e))throw TypeError();return n===e||r===e||!M(i)&&i.has(e)}function h(e,t,n){if(!u(n))throw Error(`Metadata provider not registered.`);var r=l(e,t);if(r!==n){if(!M(r))return!1;var i=a.get(e);M(i)&&(i=new d,a.set(e,i)),i.set(t,n)}return!0}}function we(){var e;return!M(m)&&N(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),M(e)&&(e=Ce()),!M(m)&&N(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function Te(e){var t=new p,n={isProviderFor:function(e,n){var r=t.get(e);return M(r)?!1:r.has(n)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:i,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(M(o)){if(!a)return;o=new d,t.set(r,o),s=!0}var c=o.get(i);if(M(c)){if(!a)return;if(c=new d,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),Error(`Wrong provider for target.`)}return c}function i(e,t,n){var i=r(t,n,!1);return M(i)?!1:le(i.has(e))}function a(e,t,n){var i=r(t,n,!1);if(!M(i))return i.get(e)}function o(e,t,n,i){r(n,i,!0).set(e,t)}function s(e,t){var n=[],i=r(e,t,!1);if(M(i))return n;for(var a=ve(i.keys()),o=0;;){var s=be(a);if(!s)return n.length=o,n;var c=ye(s);try{n[o]=c}catch(e){try{xe(a)}finally{throw e}}o++}}function c(e,n,i){var a=r(n,i,!1);if(M(a)||!a.delete(e))return!1;if(a.size===0){var o=t.get(n);M(o)||(o.delete(i),o.size===0&&t.delete(o))}return!0}}function Ee(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new p;return{isProviderFor:function(e,t){var n=o.get(e);return!M(n)&&n.has(t)?!0:i(e,t).length?(M(n)&&(n=new f,o.set(e,n)),n.add(t),!0):!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}function De(e,t,n){var r=h.getProvider(e,t);if(!M(r))return r;if(n){if(h.setProvider(e,t,g))return g;throw Error(`Illegal state.`)}}function Oe(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,`size`,{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,ge(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!ge(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(ge(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function ke(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,`size`,{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}()}function P(){var e=16,t=l.create(),r=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=a(e,!1);return t===void 0?!1:l.has(t,this._key)},e.prototype.get=function(e){var t=a(e,!1);return t===void 0?void 0:l.get(t,this._key)},e.prototype.set=function(e,t){var n=a(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=a(e,!1);return t===void 0?!1:delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var e;do e=`@@WeakMap@@`+c();while(l.has(t,e));return t[e]=!0,e}function a(e,t){if(!n.call(e,r)){if(!t)return;Object.defineProperty(e,r,{value:l.create()})}return e[r]}function o(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function s(e){if(typeof Uint8Array==`function`){var t=new Uint8Array(e);return typeof crypto<`u`?crypto.getRandomValues(t):typeof msCrypto<`u`?msCrypto.getRandomValues(t):o(t,e),t}return o(Array(e),e)}function c(){var t=s(e);t[6]=t[6]&79|64,t[8]=t[8]&191|128;for(var n=``,r=0;r<e;++r){var i=t[r];(r===4||r===6||r===8)&&(n+=`-`),i<16&&(n+=`0`),n+=i.toString(16).toLowerCase()}return n}}function Ae(e){return e.__=void 0,delete e.__,e}})})(e||={})}));p();var m=Object.create,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=_(t),a=0,o=i.length,s;a<o;a++)s=i[a],!y.call(e,s)&&s!==n&&h(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=g(t,s))||r.enumerable});return e},S=(e,t,n)=>(n=e==null?{}:m(v(e)),x(t||!e||!e.__esModule?h(n,`default`,{value:e,enumerable:!0}):n,e)),C=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),w=S(b(((e,t)=>{var n=C(`fs`),r=C(`path`),i=C(`os`),a=C(`crypto`),o=[`◈ encrypted .env [www.dotenvx.com]`,`◈ secrets for agents [www.dotenvx.com]`,`⌁ auth for agents [www.vestauth.com]`,`⌘ custom filepath { path: '/custom/path/.env' }`,`⌘ enable debugging { debug: true }`,`⌘ override existing { override: true }`,`⌘ suppress logs { quiet: true }`,`⌘ multiple files { path: ['.env.local', '.env'] }`];function s(){return o[Math.floor(Math.random()*o.length)]}function c(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function l(){return process.stdout.isTTY}function u(e){return l()?`\x1b[2m${e}\x1b[0m`:e}var d=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function f(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
2
2
|
`);let r;for(;(r=d.exec(n))!=null;){let e=r[1],n=r[2]||``;n=n.trim();let i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,`$2`),i===`"`&&(n=n.replace(/\\n/g,`
|
|
3
|
-
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function p(e){e||={};let t=y(e);e.path=t;let n=D.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=_(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=v(n,r[e].trim());a=D.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return D.parse(a)}function m(e){console.error(`⚠ ${e}`)}function h(e){console.log(`┆ ${e}`)}function g(e){console.log(`◇ ${e}`)}function _(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function v(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function y(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=r.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function b(e){return e[0]===`~`?r.join(i.homedir(),e.slice(1)):e}function x(e){let t=c(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=c(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&g(`loading env from encrypted .env.vault`);let r=D._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),D.populate(i,r,e),{parsed:r}}function S(e){let t=r.resolve(process.cwd(),`.env`),i=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=c(a.DOTENV_CONFIG_DEBUG||e&&e.debug),l=c(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?i=e.encoding:o&&h(`no encoding is specified (UTF-8 is used by default)`);let d=[t];if(e&&e.path)if(!Array.isArray(e.path))d=[b(e.path)];else{d=[];for(let t of e.path)d.push(b(t))}let f,p={};for(let t of d)try{let r=D.parse(n.readFileSync(t,{encoding:i}));D.populate(p,r,e)}catch(e){o&&h(`failed to load ${t} ${e.message}`),f=e}let m=D.populate(a,p,e);if(o=c(a.DOTENV_CONFIG_DEBUG||o),l=c(a.DOTENV_CONFIG_QUIET||l),o||!l){let e=Object.keys(m).length,t=[];for(let e of d)try{let n=r.relative(process.cwd(),e);t.push(n)}catch(t){o&&h(`failed to load ${e} ${t.message}`),f=t}g(`injected env (${e}) from ${t.join(`,`)} ${u(`// tip: ${s()}`)}`)}return f?{parsed:p,error:f}:{parsed:p}}function C(e){if(_(e).length===0)return D.configDotenv(e);let t=y(e);return t?D._configVault(e):(m(`you set DOTENV_KEY but you are missing a .env.vault file at ${t}`),D.configDotenv(e))}function T(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{let e=a.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function E(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&h(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}var D={configDotenv:S,_configVault:x,_parseVault:p,config:C,decrypt:T,parse:f,populate:E};t.exports.configDotenv=D.configDotenv,t.exports._configVault=D._configVault,t.exports._parseVault=D._parseVault,t.exports.config=D.config,t.exports.decrypt=D.decrypt,t.exports.parse=D.parse,t.exports.populate=D.populate,t.exports=D}))(),1),E=(0,p.fileURLToPath)({}.url),D=f.default.dirname(E),O=(e={})=>{let{env:t,configPath:n}=e,r=f.default.resolve(D,`${n??`.`}/.env${t?`.${t}`:``}`),{parsed:i}=T.config({path:r});return i};x(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}}))();var k=s(((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,ee,M;(function(e){var n=typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:{};typeof define==`function`&&define.amd?define(`tslib`,[`exports`],function(t){e(r(n,r(t)))}):typeof t==`object`&&typeof t.exports==`object`?e(r(n,r(t.exports))):e(r(n));function r(e,t){return e!==n&&(typeof Object.create==`function`?Object.defineProperty(e,`__esModule`,{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};n=function(e,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},a=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},c=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},l=function(e){return typeof e==`symbol`?e:`${e}`},u=function(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})},d=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},f=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},p=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},m=function(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&A(t,e,n)},A=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),h=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},g=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},_=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e},v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},y=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},b=function(e){return this instanceof b?(this.v=e,this):new b(e)},x=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}},S=function(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:!1}:i?i(t):t}:i}},C=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof h==`function`?h(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},w=function(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e};var te=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},ne=function(e){return ne=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},ne(e)};T=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ne(e),r=0;r<n.length;r++)n[r]!==`default`&&A(t,e,n[r]);return te(t,e),t},E=function(e){return e&&e.__esModule?e:{default:e}},D=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},O=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},k=function(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)},j=function(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t};var re=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r};ee=function(e){function t(t){e.error=e.hasError?new re(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()},M=function(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e},e(`__extends`,n),e(`__assign`,r),e(`__rest`,i),e(`__decorate`,a),e(`__param`,o),e(`__esDecorate`,s),e(`__runInitializers`,c),e(`__propKey`,l),e(`__setFunctionName`,u),e(`__metadata`,d),e(`__awaiter`,f),e(`__generator`,p),e(`__exportStar`,m),e(`__createBinding`,A),e(`__values`,h),e(`__read`,g),e(`__spread`,_),e(`__spreadArrays`,v),e(`__spreadArray`,y),e(`__await`,b),e(`__asyncGenerator`,x),e(`__asyncDelegator`,S),e(`__asyncValues`,C),e(`__makeTemplateObject`,w),e(`__importStar`,T),e(`__importDefault`,E),e(`__classPrivateFieldGet`,D),e(`__classPrivateFieldSet`,O),e(`__classPrivateFieldIn`,k),e(`__addDisposableResource`,j),e(`__disposeResources`,ee),e(`__rewriteRelativeImportExtension`,M)})})),A=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Bind=t;function t(...e){return(t,n,r)=>(e.forEach((e,r)=>e(t,n,r)),r)}})),j=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ENTRY_PROVIDER_WATERMARK=e.CATCH_WATERMARK=e.CONTROLLER_WATERMARK=e.INJECTABLE_WATERMARK=e.VERSION_METADATA=e.SSE_METADATA=e.RESPONSE_PASSTHROUGH_METADATA=e.REDIRECT_METADATA=e.HEADERS_METADATA=e.MODULE_PATH=e.HTTP_CODE_METADATA=e.RENDER_METADATA=e.ENHANCER_KEY_TO_SUBTYPE_MAP=e.EXCEPTION_FILTERS_METADATA=e.INTERCEPTORS_METADATA=e.GUARDS_METADATA=e.PIPES_METADATA=e.FILTER_CATCH_EXCEPTIONS=e.CUSTOM_ROUTE_ARGS_METADATA=e.ROUTE_ARGS_METADATA=e.METHOD_METADATA=e.SCOPE_OPTIONS_METADATA=e.OPTIONAL_PROPERTY_DEPS_METADATA=e.PROPERTY_DEPS_METADATA=e.OPTIONAL_DEPS_METADATA=e.SELF_DECLARED_DEPS_METADATA=e.PARAMTYPES_METADATA=e.PATH_METADATA=e.HOST_METADATA=e.GLOBAL_MODULE_METADATA=e.MODULE_METADATA=void 0,e.MODULE_METADATA={IMPORTS:`imports`,PROVIDERS:`providers`,CONTROLLERS:`controllers`,EXPORTS:`exports`},e.GLOBAL_MODULE_METADATA=`__module:global__`,e.HOST_METADATA=`host`,e.PATH_METADATA=`path`,e.PARAMTYPES_METADATA=`design:paramtypes`,e.SELF_DECLARED_DEPS_METADATA=`self:paramtypes`,e.OPTIONAL_DEPS_METADATA=`optional:paramtypes`,e.PROPERTY_DEPS_METADATA=`self:properties_metadata`,e.OPTIONAL_PROPERTY_DEPS_METADATA=`optional:properties_metadata`,e.SCOPE_OPTIONS_METADATA=`scope:options`,e.METHOD_METADATA=`method`,e.ROUTE_ARGS_METADATA=`__routeArguments__`,e.CUSTOM_ROUTE_ARGS_METADATA=`__customRouteArgs__`,e.FILTER_CATCH_EXCEPTIONS=`__filterCatchExceptions__`,e.PIPES_METADATA=`__pipes__`,e.GUARDS_METADATA=`__guards__`,e.INTERCEPTORS_METADATA=`__interceptors__`,e.EXCEPTION_FILTERS_METADATA=`__exceptionFilters__`,e.ENHANCER_KEY_TO_SUBTYPE_MAP={[e.GUARDS_METADATA]:`guard`,[e.INTERCEPTORS_METADATA]:`interceptor`,[e.PIPES_METADATA]:`pipe`,[e.EXCEPTION_FILTERS_METADATA]:`filter`},e.RENDER_METADATA=`__renderTemplate__`,e.HTTP_CODE_METADATA=`__httpCode__`,e.MODULE_PATH=`__module_path__`,e.HEADERS_METADATA=`__headers__`,e.REDIRECT_METADATA=`__redirect__`,e.RESPONSE_PASSTHROUGH_METADATA=`__responsePassthrough__`,e.SSE_METADATA=`__sse__`,e.VERSION_METADATA=`__version__`,e.INJECTABLE_WATERMARK=`__injectable__`,e.CONTROLLER_WATERMARK=`__controller__`,e.CATCH_WATERMARK=`__catch__`,e.ENTRY_PROVIDER_WATERMARK=`__entryProvider__`})),ee=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Catch=n;var t=j();function n(...e){return n=>{Reflect.defineMetadata(t.CATCH_WATERMARK,!0,n),Reflect.defineMetadata(t.FILTER_CATCH_EXCEPTIONS,e,n)}}})),M=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isSymbol=e.isEmpty=e.isNil=e.isConstructor=e.isNumber=e.isString=e.isFunction=e.stripEndSlash=e.normalizePath=e.addLeadingSlash=e.isPlainObject=e.isObject=e.isUndefined=void 0,e.isUndefined=e=>e===void 0,e.isObject=t=>!(0,e.isNil)(t)&&typeof t==`object`,e.isPlainObject=t=>{if(!(0,e.isObject)(t))return!1;let n=Object.getPrototypeOf(t);if(n===null)return!0;let r=Object.prototype.hasOwnProperty.call(n,`constructor`)&&n.constructor;return typeof r==`function`&&r instanceof r&&Function.prototype.toString.call(r)===Function.prototype.toString.call(Object)},e.addLeadingSlash=e=>e&&typeof e==`string`?e.charAt(0)!==`/`&&e.substring(0,2)!==`{/`?`/`+e:e:``,e.normalizePath=e=>e?e.startsWith(`/`)?(`/`+e.replace(/\/+$/,``)).replace(/\/+/g,`/`):`/`+e.replace(/\/+$/,``):`/`,e.stripEndSlash=e=>e[e.length-1]===`/`?e.slice(0,e.length-1):e,e.isFunction=e=>typeof e==`function`,e.isString=e=>typeof e==`string`,e.isNumber=e=>typeof e==`number`,e.isConstructor=e=>e===`constructor`,e.isNil=t=>(0,e.isUndefined)(t)||t===null,e.isEmpty=e=>!(e&&e.length>0),e.isSymbol=e=>typeof e==`symbol`})),te=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Controller=r;var t=j(),n=M();function r(e){let[r,i,a,o]=(0,n.isUndefined)(e)?[`/`,void 0,void 0,void 0]:(0,n.isString)(e)||Array.isArray(e)?[e,void 0,void 0,void 0]:[e.path||`/`,e.host,{scope:e.scope,durable:e.durable},Array.isArray(e.version)?Array.from(new Set(e.version)):e.version];return e=>{Reflect.defineMetadata(t.CONTROLLER_WATERMARK,!0,e),Reflect.defineMetadata(t.PATH_METADATA,r,e),Reflect.defineMetadata(t.HOST_METADATA,i,e),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,a,e),Reflect.defineMetadata(t.VERSION_METADATA,o,e)}}})),ne=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Dependencies=void 0,e.flatten=n;var t=j();function n(e){let t=[].concat(...e);return t.some(Array.isArray)?n(t):t}e.Dependencies=(...e)=>{let r=n(e);return e=>{Reflect.defineMetadata(t.PARAMTYPES_METADATA,r,e)}}})),re=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendArrayMetadata=t;function t(e,t,n){let r=[...Reflect.getMetadata(e,n)||[],...t];Reflect.defineMetadata(e,r,n)}})),N=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidDecoratorItemException=void 0,e.validateEach=n;var t=class extends Error{constructor(e,t,n){let r=`Invalid ${t} passed to ${e}() decorator (${n}).`;super(r),this.msg=r}what(){return this.msg}};e.InvalidDecoratorItemException=t;function n(e,n,r,i,a){if(!e||!e.name)return!0;if(n.some(e=>!r(e)))throw new t(i,a,e.name);return!0}})),ie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseFilters=void 0;var t=j(),n=re(),r=M(),i=N();e.UseFilters=(...e)=>a(...e);function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.catch));return s?((0,i.validateEach)(a.constructor,e,c,`@UseFilters`,`filter`),(0,n.extendArrayMetadata)(t.EXCEPTION_FILTERS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseFilters`,`filter`),(0,n.extendArrayMetadata)(t.EXCEPTION_FILTERS_METADATA,e,a),a)}}})),ae=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Inject=r;var t=j(),n=M();function r(e){let r=arguments.length>0;return(i,a,o)=>{let s=e||Reflect.getMetadata(`design:type`,i,a);if(!s&&!r&&(s=Reflect.getMetadata(t.PARAMTYPES_METADATA,i,a)?.[o]),!(0,n.isUndefined)(o)){let e=Reflect.getMetadata(t.SELF_DECLARED_DEPS_METADATA,i)||[];e=[...e,{index:o,param:s}],Reflect.defineMetadata(t.SELF_DECLARED_DEPS_METADATA,e,i);return}let c=Reflect.getMetadata(t.PROPERTY_DEPS_METADATA,i.constructor)||[];c=[...c,{key:a,type:s}],Reflect.defineMetadata(t.PROPERTY_DEPS_METADATA,c,i.constructor)}}})),P=s((e=>{for(var t=256,n=[],r=256,i;t--;)n[t]=(t+256).toString(16).substring(1);function a(e){var a=0,o=e||11;if(!i||t+o>r*2)for(i=``,t=0;a<r;a++)i+=n[Math.random()*256|0];return i.substring(t,t+++o)}e.uid=a})),oe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Injectable=r,e.mixin=i;var t=P(),n=j();function r(e){return t=>{Reflect.defineMetadata(n.INJECTABLE_WATERMARK,!0,t),Reflect.defineMetadata(n.SCOPE_OPTIONS_METADATA,e,t)}}function i(e){return Object.defineProperty(e,`name`,{value:(0,t.uid)(21)}),r()(e),e}})),se=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Optional=r;var t=j(),n=M();function r(){return(e,r,i)=>{if(!(0,n.isUndefined)(i)){let n=Reflect.getMetadata(t.OPTIONAL_DEPS_METADATA,e)||[];Reflect.defineMetadata(t.OPTIONAL_DEPS_METADATA,[...n,i],e);return}let a=Reflect.getMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,e.constructor)||[];Reflect.defineMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,[...a,r],e.constructor)}}})),ce=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SetMetadata=void 0,e.SetMetadata=(e,t)=>{let n=(n,r,i)=>i?(Reflect.defineMetadata(e,t,i.value),i):(Reflect.defineMetadata(e,t,n),n);return n.KEY=e,n}})),le=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseGuards=a;var t=j(),n=re(),r=M(),i=N();function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.canActivate));return s?((0,i.validateEach)(a.constructor,e,c,`@UseGuards`,`guard`),(0,n.extendArrayMetadata)(t.GUARDS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseGuards`,`guard`),(0,n.extendArrayMetadata)(t.GUARDS_METADATA,e,a),a)}}})),ue=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseInterceptors=a;var t=j(),n=re(),r=M(),i=N();function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.intercept));return s?((0,i.validateEach)(a.constructor,e,c,`@UseInterceptors`,`interceptor`),(0,n.extendArrayMetadata)(t.INTERCEPTORS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseInterceptors`,`interceptor`),(0,n.extendArrayMetadata)(t.INTERCEPTORS_METADATA,e,a),a)}}})),de=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UsePipes=a;var t=j(),n=re(),r=M(),i=N();function a(...e){return(a,o,s)=>s?((0,n.extendArrayMetadata)(t.PIPES_METADATA,e,s.value),s):((0,i.validateEach)(a,e,e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.transform)),`@UsePipes`,`pipe`),(0,n.extendArrayMetadata)(t.PIPES_METADATA,e,a),a)}})),fe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.applyDecorators=t;function t(...e){return(t,n,r)=>{for(let i of e){if(t instanceof Function&&!r){i(t);continue}i(t,n,r)}}}})),pe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Version=n;var t=j();function n(e){return Array.isArray(e)&&(e=Array.from(new Set(e))),(n,r,i)=>(Reflect.defineMetadata(t.VERSION_METADATA,e,i.value),i)}})),me=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(A(),e),t.__exportStar(ee(),e),t.__exportStar(te(),e),t.__exportStar(ne(),e),t.__exportStar(ie(),e),t.__exportStar(ae(),e),t.__exportStar(oe(),e),t.__exportStar(se(),e),t.__exportStar(ce(),e),t.__exportStar(le(),e),t.__exportStar(ue(),e),t.__exportStar(de(),e),t.__exportStar(fe(),e),t.__exportStar(pe(),e)})),he=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Global=n;var t=j();function n(){return e=>{Reflect.defineMetadata(t.GLOBAL_MODULE_METADATA,!0,e)}}})),ge=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=r;var t=j();e.INVALID_MODULE_CONFIG_MESSAGE=(e,t)=>`Invalid property '${t}' passed into the @Module() decorator.`;var n=[t.MODULE_METADATA.IMPORTS,t.MODULE_METADATA.EXPORTS,t.MODULE_METADATA.CONTROLLERS,t.MODULE_METADATA.PROVIDERS];function r(t){t.forEach(t=>{if(!n.includes(t))throw Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${t}`)})}})),_e=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Module=n;var t=ge();function n(e){let n=Object.keys(e);return(0,t.validateModuleKeys)(n),t=>{for(let n in e)Object.hasOwnProperty.call(e,n)&&Reflect.defineMetadata(n,e[n],t)}}})),ve=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(he(),e),t.__exportStar(_e(),e)})),ye=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequestMethod=void 0;var t;(function(e){e[e.GET=0]=`GET`,e[e.POST=1]=`POST`,e[e.PUT=2]=`PUT`,e[e.DELETE=3]=`DELETE`,e[e.PATCH=4]=`PATCH`,e[e.ALL=5]=`ALL`,e[e.OPTIONS=6]=`OPTIONS`,e[e.HEAD=7]=`HEAD`,e[e.SEARCH=8]=`SEARCH`,e[e.PROPFIND=9]=`PROPFIND`,e[e.PROPPATCH=10]=`PROPPATCH`,e[e.MKCOL=11]=`MKCOL`,e[e.COPY=12]=`COPY`,e[e.MOVE=13]=`MOVE`,e[e.LOCK=14]=`LOCK`,e[e.UNLOCK=15]=`UNLOCK`})(t||(e.RequestMethod=t={}))})),be=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Unlock=e.Lock=e.Move=e.Copy=e.Mkcol=e.Proppatch=e.Propfind=e.Search=e.All=e.Head=e.Options=e.Patch=e.Put=e.Delete=e.Get=e.Post=e.RequestMapping=void 0;var t=j(),n=ye(),r={[t.PATH_METADATA]:`/`,[t.METHOD_METADATA]:n.RequestMethod.GET};e.RequestMapping=(e=r)=>{let i=e[t.PATH_METADATA],a=i&&i.length?i:`/`,o=e[t.METHOD_METADATA]||n.RequestMethod.GET;return(e,n,r)=>(Reflect.defineMetadata(t.PATH_METADATA,a,r.value),Reflect.defineMetadata(t.METHOD_METADATA,o,r.value),r)};var i=n=>r=>(0,e.RequestMapping)({[t.PATH_METADATA]:r,[t.METHOD_METADATA]:n});e.Post=i(n.RequestMethod.POST),e.Get=i(n.RequestMethod.GET),e.Delete=i(n.RequestMethod.DELETE),e.Put=i(n.RequestMethod.PUT),e.Patch=i(n.RequestMethod.PATCH),e.Options=i(n.RequestMethod.OPTIONS),e.Head=i(n.RequestMethod.HEAD),e.All=i(n.RequestMethod.ALL),e.Search=i(n.RequestMethod.SEARCH),e.Propfind=i(n.RequestMethod.PROPFIND),e.Proppatch=i(n.RequestMethod.PROPPATCH),e.Mkcol=i(n.RequestMethod.MKCOL),e.Copy=i(n.RequestMethod.COPY),e.Move=i(n.RequestMethod.MOVE),e.Lock=i(n.RequestMethod.LOCK),e.Unlock=i(n.RequestMethod.UNLOCK)})),xe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteParamtypes=void 0;var t;(function(e){e[e.REQUEST=0]=`REQUEST`,e[e.RESPONSE=1]=`RESPONSE`,e[e.NEXT=2]=`NEXT`,e[e.BODY=3]=`BODY`,e[e.QUERY=4]=`QUERY`,e[e.PARAM=5]=`PARAM`,e[e.HEADERS=6]=`HEADERS`,e[e.SESSION=7]=`SESSION`,e[e.FILE=8]=`FILE`,e[e.FILES=9]=`FILES`,e[e.HOST=10]=`HOST`,e[e.IP=11]=`IP`,e[e.RAW_BODY=12]=`RAW_BODY`,e[e.ACK=13]=`ACK`})(t||(e.RouteParamtypes=t={}))})),Se=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Res=e.Req=e.Headers=e.Session=e.Ip=e.Next=e.Response=e.Request=void 0,e.assignMetadata=i,e.UploadedFile=s,e.UploadedFiles=c,e.Query=l,e.Body=u,e.RawBody=d,e.Param=f,e.HostParam=p;var t=j(),n=xe(),r=M();function i(e,t,n,r,...i){return{...e,[`${t}:${n}`]:{index:n,data:r,pipes:i}}}function a(e){return n=>(r,a,o)=>{let s=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,r.constructor,a)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(s,e,o,n),r.constructor,a)}}var o=e=>(n,...a)=>(o,s,c)=>{let l=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,o.constructor,s)||{},u=(0,r.isNil)(n)||(0,r.isString)(n),d=u?n:void 0,f=u?a:[n,...a];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(l,e,c,d,...f),o.constructor,s)};e.Request=a(n.RouteParamtypes.REQUEST),e.Response=e=>(r,i,o)=>(e?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,e?.passthrough,r.constructor,i),a(n.RouteParamtypes.RESPONSE)()(r,i,o)),e.Next=a(n.RouteParamtypes.NEXT),e.Ip=a(n.RouteParamtypes.IP),e.Session=a(n.RouteParamtypes.SESSION);function s(e,...t){return o(n.RouteParamtypes.FILE)(e,...t)}function c(...e){return o(n.RouteParamtypes.FILES)(void 0,...e)}e.Headers=a(n.RouteParamtypes.HEADERS);function l(e,...t){return o(n.RouteParamtypes.QUERY)(e,...t)}function u(e,...t){return o(n.RouteParamtypes.BODY)(e,...t)}function d(...e){return o(n.RouteParamtypes.RAW_BODY)(void 0,...e)}function f(e,...t){return o(n.RouteParamtypes.PARAM)(e,...t)}function p(e){return a(n.RouteParamtypes.HOST)(e)}e.Req=e.Request,e.Res=e.Response})),Ce=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpCode=n;var t=j();function n(e){return(n,r,i)=>(Reflect.defineMetadata(t.HTTP_CODE_METADATA,e,i.value),i)}})),we=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignCustomParameterMetadata=n;var t=j();function n(e,n,r,i,a,...o){return{...e,[`${n}${t.CUSTOM_ROUTE_ARGS_METADATA}:${r}`]:{index:r,factory:i,data:a,pipes:o}}}})),Te=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createParamDecorator=a;var t=P(),n=j(),r=we(),i=M();function a(e,a=[]){let o=(0,t.uid)(21);return(t,...s)=>(c,l,u)=>{let d=Reflect.getMetadata(n.ROUTE_ARGS_METADATA,c.constructor,l)||{},f=(0,i.isNil)(t)||!(e=>e&&((0,i.isFunction)(e)&&e.prototype&&(0,i.isFunction)(e.prototype.transform)||(0,i.isFunction)(e.transform)))(t),p=f?t:void 0,m=f?s:[t,...s];Reflect.defineMetadata(n.ROUTE_ARGS_METADATA,(0,r.assignCustomParameterMetadata)(d,o,u,e,p,...m),c.constructor,l),a.forEach(e=>e(c,l,u))}}})),Ee=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Render=n;var t=j();function n(e){return(n,r,i)=>(Reflect.defineMetadata(t.RENDER_METADATA,e,i.value),i)}})),De=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Header=r;var t=j(),n=re();function r(e,r){return(i,a,o)=>((0,n.extendArrayMetadata)(t.HEADERS_METADATA,[{name:e,value:r}],o.value),o)}})),Oe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Redirect=n;var t=j();function n(e=``,n){return(r,i,a)=>(Reflect.defineMetadata(t.REDIRECT_METADATA,{statusCode:n,url:e},a.value),a)}})),ke=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Sse=r;var t=j(),n=ye();function r(e,r={[t.METHOD_METADATA]:n.RequestMethod.GET}){return(n,i,a)=>(e=e&&e.length?e:`/`,Reflect.defineMetadata(t.PATH_METADATA,e,a.value),Reflect.defineMetadata(t.METHOD_METADATA,r[t.METHOD_METADATA],a.value),Reflect.defineMetadata(t.SSE_METADATA,!0,a.value),a)}})),Ae=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(be(),e),t.__exportStar(Se(),e),t.__exportStar(Ce(),e),t.__exportStar(Te(),e),t.__exportStar(Ee(),e),t.__exportStar(De(),e),t.__exportStar(Oe(),e),t.__exportStar(ke(),e)})),je=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(me(),e),t.__exportStar(ve(),e),t.__exportStar(Ae(),e)})),F=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpStatus=void 0;var t;(function(e){e[e.CONTINUE=100]=`CONTINUE`,e[e.SWITCHING_PROTOCOLS=101]=`SWITCHING_PROTOCOLS`,e[e.PROCESSING=102]=`PROCESSING`,e[e.EARLYHINTS=103]=`EARLYHINTS`,e[e.OK=200]=`OK`,e[e.CREATED=201]=`CREATED`,e[e.ACCEPTED=202]=`ACCEPTED`,e[e.NON_AUTHORITATIVE_INFORMATION=203]=`NON_AUTHORITATIVE_INFORMATION`,e[e.NO_CONTENT=204]=`NO_CONTENT`,e[e.RESET_CONTENT=205]=`RESET_CONTENT`,e[e.PARTIAL_CONTENT=206]=`PARTIAL_CONTENT`,e[e.MULTI_STATUS=207]=`MULTI_STATUS`,e[e.ALREADY_REPORTED=208]=`ALREADY_REPORTED`,e[e.CONTENT_DIFFERENT=210]=`CONTENT_DIFFERENT`,e[e.AMBIGUOUS=300]=`AMBIGUOUS`,e[e.MOVED_PERMANENTLY=301]=`MOVED_PERMANENTLY`,e[e.FOUND=302]=`FOUND`,e[e.SEE_OTHER=303]=`SEE_OTHER`,e[e.NOT_MODIFIED=304]=`NOT_MODIFIED`,e[e.TEMPORARY_REDIRECT=307]=`TEMPORARY_REDIRECT`,e[e.PERMANENT_REDIRECT=308]=`PERMANENT_REDIRECT`,e[e.BAD_REQUEST=400]=`BAD_REQUEST`,e[e.UNAUTHORIZED=401]=`UNAUTHORIZED`,e[e.PAYMENT_REQUIRED=402]=`PAYMENT_REQUIRED`,e[e.FORBIDDEN=403]=`FORBIDDEN`,e[e.NOT_FOUND=404]=`NOT_FOUND`,e[e.METHOD_NOT_ALLOWED=405]=`METHOD_NOT_ALLOWED`,e[e.NOT_ACCEPTABLE=406]=`NOT_ACCEPTABLE`,e[e.PROXY_AUTHENTICATION_REQUIRED=407]=`PROXY_AUTHENTICATION_REQUIRED`,e[e.REQUEST_TIMEOUT=408]=`REQUEST_TIMEOUT`,e[e.CONFLICT=409]=`CONFLICT`,e[e.GONE=410]=`GONE`,e[e.LENGTH_REQUIRED=411]=`LENGTH_REQUIRED`,e[e.PRECONDITION_FAILED=412]=`PRECONDITION_FAILED`,e[e.PAYLOAD_TOO_LARGE=413]=`PAYLOAD_TOO_LARGE`,e[e.URI_TOO_LONG=414]=`URI_TOO_LONG`,e[e.UNSUPPORTED_MEDIA_TYPE=415]=`UNSUPPORTED_MEDIA_TYPE`,e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]=`REQUESTED_RANGE_NOT_SATISFIABLE`,e[e.EXPECTATION_FAILED=417]=`EXPECTATION_FAILED`,e[e.I_AM_A_TEAPOT=418]=`I_AM_A_TEAPOT`,e[e.MISDIRECTED=421]=`MISDIRECTED`,e[e.UNPROCESSABLE_ENTITY=422]=`UNPROCESSABLE_ENTITY`,e[e.LOCKED=423]=`LOCKED`,e[e.FAILED_DEPENDENCY=424]=`FAILED_DEPENDENCY`,e[e.PRECONDITION_REQUIRED=428]=`PRECONDITION_REQUIRED`,e[e.TOO_MANY_REQUESTS=429]=`TOO_MANY_REQUESTS`,e[e.UNRECOVERABLE_ERROR=456]=`UNRECOVERABLE_ERROR`,e[e.INTERNAL_SERVER_ERROR=500]=`INTERNAL_SERVER_ERROR`,e[e.NOT_IMPLEMENTED=501]=`NOT_IMPLEMENTED`,e[e.BAD_GATEWAY=502]=`BAD_GATEWAY`,e[e.SERVICE_UNAVAILABLE=503]=`SERVICE_UNAVAILABLE`,e[e.GATEWAY_TIMEOUT=504]=`GATEWAY_TIMEOUT`,e[e.HTTP_VERSION_NOT_SUPPORTED=505]=`HTTP_VERSION_NOT_SUPPORTED`,e[e.INSUFFICIENT_STORAGE=507]=`INSUFFICIENT_STORAGE`,e[e.LOOP_DETECTED=508]=`LOOP_DETECTED`})(t||(e.HttpStatus=t={}))})),Me=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ShutdownSignal=void 0;var t;(function(e){e.SIGHUP=`SIGHUP`,e.SIGINT=`SIGINT`,e.SIGQUIT=`SIGQUIT`,e.SIGILL=`SIGILL`,e.SIGTRAP=`SIGTRAP`,e.SIGABRT=`SIGABRT`,e.SIGBUS=`SIGBUS`,e.SIGFPE=`SIGFPE`,e.SIGSEGV=`SIGSEGV`,e.SIGUSR2=`SIGUSR2`,e.SIGTERM=`SIGTERM`})(t||(e.ShutdownSignal=t={}))})),Ne=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VersioningType=void 0;var t;(function(e){e[e.URI=0]=`URI`,e[e.HEADER=1]=`HEADER`,e[e.MEDIA_TYPE=2]=`MEDIA_TYPE`,e[e.CUSTOM=3]=`CUSTOM`})(t||(e.VersioningType=t={}))})),Pe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(ye(),e),t.__exportStar(F(),e),t.__exportStar(Me(),e),t.__exportStar(Ne(),e)})),Fe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.IntrinsicException=void 0,e.IntrinsicException=class extends Error{}})),I=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpException=void 0;var t=M(),n=Fe();e.HttpException=class extends n.IntrinsicException{constructor(e,t,n){super(),this.response=e,this.status=t,this.options=n,this.initMessage(),this.initName(),this.initCause()}initCause(){if(this.options?.cause){this.cause=this.options.cause;return}}initMessage(){(0,t.isString)(this.response)?this.message=this.response:(0,t.isObject)(this.response)&&(0,t.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(` `)??`Error`)}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(e,n,r){return e?(0,t.isString)(e)||Array.isArray(e)||(0,t.isNumber)(e)?{message:e,error:n,statusCode:r}:e:{message:n,statusCode:r}}static getDescriptionFrom(e){return(0,t.isString)(e)?e:e?.description}static getHttpExceptionOptionsFrom(e){return(0,t.isString)(e)?{}:e}static extractDescriptionAndOptionsFrom(e){return{description:(0,t.isString)(e)?e:e?.description,httpExceptionOptions:(0,t.isString)(e)?{}:e}}}})),Ie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BadGatewayException=void 0;var t=F(),n=I();e.BadGatewayException=class extends n.HttpException{constructor(e,r=`Bad Gateway`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.BAD_GATEWAY),t.HttpStatus.BAD_GATEWAY,a)}}})),Le=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BadRequestException=void 0;var t=F(),n=I();e.BadRequestException=class extends n.HttpException{constructor(e,r=`Bad Request`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.BAD_REQUEST),t.HttpStatus.BAD_REQUEST,a)}}})),Re=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConflictException=void 0;var t=F(),n=I();e.ConflictException=class extends n.HttpException{constructor(e,r=`Conflict`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.CONFLICT),t.HttpStatus.CONFLICT,a)}}})),ze=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ForbiddenException=void 0;var t=F(),n=I();e.ForbiddenException=class extends n.HttpException{constructor(e,r=`Forbidden`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.FORBIDDEN),t.HttpStatus.FORBIDDEN,a)}}})),Be=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GatewayTimeoutException=void 0;var t=F(),n=I();e.GatewayTimeoutException=class extends n.HttpException{constructor(e,r=`Gateway Timeout`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.GATEWAY_TIMEOUT),t.HttpStatus.GATEWAY_TIMEOUT,a)}}})),Ve=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GoneException=void 0;var t=F(),n=I();e.GoneException=class extends n.HttpException{constructor(e,r=`Gone`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.GONE),t.HttpStatus.GONE,a)}}})),He=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpVersionNotSupportedException=void 0;var t=F(),n=I();e.HttpVersionNotSupportedException=class extends n.HttpException{constructor(e,r=`HTTP Version Not Supported`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),t.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,a)}}})),Ue=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ImATeapotException=void 0;var t=F(),n=I();e.ImATeapotException=class extends n.HttpException{constructor(e,r=`I'm a teapot`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.I_AM_A_TEAPOT),t.HttpStatus.I_AM_A_TEAPOT,a)}}})),We=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalServerErrorException=void 0;var t=F(),n=I();e.InternalServerErrorException=class extends n.HttpException{constructor(e,r=`Internal Server Error`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.INTERNAL_SERVER_ERROR),t.HttpStatus.INTERNAL_SERVER_ERROR,a)}}})),Ge=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MethodNotAllowedException=void 0;var t=F(),n=I();e.MethodNotAllowedException=class extends n.HttpException{constructor(e,r=`Method Not Allowed`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.METHOD_NOT_ALLOWED),t.HttpStatus.METHOD_NOT_ALLOWED,a)}}})),Ke=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MisdirectedException=void 0;var t=F(),n=I();e.MisdirectedException=class extends n.HttpException{constructor(e,r=`Misdirected`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.MISDIRECTED),t.HttpStatus.MISDIRECTED,a)}}})),qe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotAcceptableException=void 0;var t=F(),n=I();e.NotAcceptableException=class extends n.HttpException{constructor(e,r=`Not Acceptable`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_ACCEPTABLE),t.HttpStatus.NOT_ACCEPTABLE,a)}}})),Je=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotFoundException=void 0;var t=F(),n=I();e.NotFoundException=class extends n.HttpException{constructor(e,r=`Not Found`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_FOUND),t.HttpStatus.NOT_FOUND,a)}}})),Ye=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotImplementedException=void 0;var t=F(),n=I();e.NotImplementedException=class extends n.HttpException{constructor(e,r=`Not Implemented`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_IMPLEMENTED),t.HttpStatus.NOT_IMPLEMENTED,a)}}})),Xe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PayloadTooLargeException=void 0;var t=F(),n=I();e.PayloadTooLargeException=class extends n.HttpException{constructor(e,r=`Payload Too Large`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.PAYLOAD_TOO_LARGE),t.HttpStatus.PAYLOAD_TOO_LARGE,a)}}})),Ze=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PreconditionFailedException=void 0;var t=F(),n=I();e.PreconditionFailedException=class extends n.HttpException{constructor(e,r=`Precondition Failed`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.PRECONDITION_FAILED),t.HttpStatus.PRECONDITION_FAILED,a)}}})),Qe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequestTimeoutException=void 0;var t=F(),n=I();e.RequestTimeoutException=class extends n.HttpException{constructor(e,r=`Request Timeout`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.REQUEST_TIMEOUT),t.HttpStatus.REQUEST_TIMEOUT,a)}}})),$e=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceUnavailableException=void 0;var t=F(),n=I();e.ServiceUnavailableException=class extends n.HttpException{constructor(e,r=`Service Unavailable`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.SERVICE_UNAVAILABLE),t.HttpStatus.SERVICE_UNAVAILABLE,a)}}})),et=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnauthorizedException=void 0;var t=F(),n=I();e.UnauthorizedException=class extends n.HttpException{constructor(e,r=`Unauthorized`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNAUTHORIZED),t.HttpStatus.UNAUTHORIZED,a)}}})),tt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnprocessableEntityException=void 0;var t=F(),n=I();e.UnprocessableEntityException=class extends n.HttpException{constructor(e,r=`Unprocessable Entity`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNPROCESSABLE_ENTITY),t.HttpStatus.UNPROCESSABLE_ENTITY,a)}}})),nt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsupportedMediaTypeException=void 0;var t=F(),n=I();e.UnsupportedMediaTypeException=class extends n.HttpException{constructor(e,r=`Unsupported Media Type`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNSUPPORTED_MEDIA_TYPE),t.HttpStatus.UNSUPPORTED_MEDIA_TYPE,a)}}})),rt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Ie(),e),t.__exportStar(Le(),e),t.__exportStar(Re(),e),t.__exportStar(ze(),e),t.__exportStar(Be(),e),t.__exportStar(Ve(),e),t.__exportStar(He(),e),t.__exportStar(I(),e),t.__exportStar(Ue(),e),t.__exportStar(We(),e),t.__exportStar(Fe(),e),t.__exportStar(Ge(),e),t.__exportStar(Ke(),e),t.__exportStar(qe(),e),t.__exportStar(Je(),e),t.__exportStar(Ye(),e),t.__exportStar(Xe(),e),t.__exportStar(Ze(),e),t.__exportStar(Qe(),e),t.__exportStar($e(),e),t.__exportStar(et(),e),t.__exportStar(tt(),e),t.__exportStar(nt(),e)})),it=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.yellow=e.clc=e.isColorAllowed=void 0,e.isColorAllowed=()=>!process.env.NO_COLOR;var t=t=>n=>(0,e.isColorAllowed)()?t(n):n;e.clc={bold:t(e=>`\x1B[1m${e}\x1B[0m`),green:t(e=>`\x1B[32m${e}\x1B[39m`),yellow:t(e=>`\x1B[33m${e}\x1B[39m`),red:t(e=>`\x1B[31m${e}\x1B[39m`),magentaBright:t(e=>`\x1B[95m${e}\x1B[39m`),cyanBright:t(e=>`\x1B[96m${e}\x1B[39m`)},e.yellow=t(e=>`\x1B[38;5;3m${e}\x1B[39m`)})),at=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLogLevelEnabled=n;var t={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};function n(e,n){if(!n||Array.isArray(n)&&n?.length===0)return!1;if(n.includes(e))return!0;let r=-1/0;for(let e of n){let n=t[e];n>r&&(r=n)}return t[e]>=r}})),ot=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.ConsoleLogger=void 0;var n=k(),r=require(`util`),i=me(),a=it(),o=M(),s=at(),c=5,l=[`log`,`error`,`warn`,`debug`,`verbose`,`fatal`],u=new Intl.DateTimeFormat(void 0,{year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`,day:`2-digit`,month:`2-digit`}),d=t=class{constructor(e,t){let[n,r]=(0,o.isString)(e)?[e,t]:t?[void 0,t]:[e?.context,e];r??={},r.logLevels??=l,r.colors??=r.colors??(r.json?!1:(0,a.isColorAllowed)()),r.prefix??=`Nest`,this.options=r,this.inspectOptions=this.getInspectOptions(),n&&(this.context=n,this.originalContext=n)}log(e,...t){if(!this.isLevelEnabled(`log`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`log`)}error(e,...t){if(!this.isLevelEnabled(`error`))return;let{messages:n,context:r,stack:i}=this.getContextAndStackAndMessagesToPrint([e,...t]);this.printMessages(n,r,`error`,`stderr`,i),this.printStackTrace(i)}warn(e,...t){if(!this.isLevelEnabled(`warn`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`warn`)}debug(e,...t){if(!this.isLevelEnabled(`debug`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`debug`)}verbose(e,...t){if(!this.isLevelEnabled(`verbose`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`verbose`)}fatal(e,...t){if(!this.isLevelEnabled(`fatal`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`fatal`)}setLogLevels(e){this.options||={},this.options.logLevels=e}setContext(e){this.context=e}resetContext(){this.context=this.originalContext}isLevelEnabled(e){let t=this.options?.logLevels;return(0,s.isLogLevelEnabled)(e,t)}getTimestamp(){return u.format(Date.now())}printMessages(e,t=``,n=`log`,r,i){e.forEach(e=>{if(this.options.json){this.printAsJson(e,{context:t,logLevel:n,writeStreamType:r,errorStack:i});return}let a=this.formatPid(process.pid),o=this.formatContext(t),s=this.updateAndGetTimestampDiff(),c=n.toUpperCase().padStart(7,` `),l=this.formatMessage(n,e,a,c,o,s);this.options.forceConsole?r===`stderr`?console.error(l.trim()):console.log(l.trim()):process[r??`stdout`].write(l)})}printAsJson(e,t){let n=this.getJsonLogObject(e,t),i=!this.options.colors&&this.inspectOptions.compact===!0?JSON.stringify(n,this.stringifyReplacer):(0,r.inspect)(n,this.inspectOptions);this.options.forceConsole?t.writeStreamType===`stderr`?console.error(i):console.log(i):process[t.writeStreamType??`stdout`].write(`${i}\n`)}getJsonLogObject(e,t){let n={level:t.logLevel,pid:process.pid,timestamp:Date.now(),message:e};return t.context&&(n.context=t.context),t.errorStack&&(n.stack=t.errorStack),n}formatPid(e){return`[${this.options.prefix}] ${e} - `}formatContext(e){return e?(e=`[${e}] `,this.options.colors?(0,a.yellow)(e):e):``}formatMessage(e,t,n,r,i,a){let o=this.stringifyMessage(t,e);return n=this.colorize(n,e),r=this.colorize(r,e),`${n}${this.getTimestamp()} ${r} ${i}${o}${a}\n`}stringifyMessage(e,t){if((0,o.isFunction)(e))return Function.prototype.toString.call(e).startsWith(`class `)?this.stringifyMessage(e.name,t):this.stringifyMessage(e(),t);if(typeof e==`string`)return this.colorize(e,t);let n=(0,r.inspect)(e,this.inspectOptions);return(0,o.isPlainObject)(e)?`Object(${Object.keys(e).length}) ${n}`:Array.isArray(e)?`Array(${e.length}) ${n}`:n}colorize(e,t){return!this.options.colors||this.options.json?e:this.getColorByLogLevel(t)(e)}printStackTrace(e){!e||this.options.json||(this.options.forceConsole?console.error(e):process.stderr.write(`${e}\n`))}updateAndGetTimestampDiff(){let e=t.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-t.lastTimestampAt):``;return t.lastTimestampAt=Date.now(),e}formatTimestampDiff(e){let t=` +${e}ms`;return this.options.colors?(0,a.yellow)(t):t}getInspectOptions(){let e=this.options.breakLength;e===void 0&&(e=this.options.colors?this.options.compact?1/0:void 0:this.options.compact===!1?void 0:1/0);let t={depth:this.options.depth??c,sorted:this.options.sorted,showHidden:this.options.showHidden,compact:this.options.compact??!!this.options.json,colors:this.options.colors,breakLength:e};return this.options.maxArrayLength!==void 0&&(t.maxArrayLength=this.options.maxArrayLength),this.options.maxStringLength!==void 0&&(t.maxStringLength=this.options.maxStringLength),t}stringifyReplacer(e,t){return typeof t==`bigint`||typeof t==`symbol`?t.toString():t instanceof Map||t instanceof Set||t instanceof Error?`${(0,r.inspect)(t,this.inspectOptions)}`:t}getContextAndMessagesToPrint(e){if(e?.length<=1)return{messages:e,context:this.context};let t=e[e.length-1];return(0,o.isString)(t)?{context:t,messages:e.slice(0,e.length-1)}:{messages:e,context:this.context}}getContextAndStackAndMessagesToPrint(e){if(e.length===2)return this.isStackFormat(e[1])?{messages:[e[0]],stack:e[1],context:this.context}:{...this.getContextAndMessagesToPrint(e)};let{messages:t,context:n}=this.getContextAndMessagesToPrint(e);if(t?.length<=1)return{messages:t,context:n};let r=t[t.length-1];return!(0,o.isString)(r)&&!(0,o.isUndefined)(r)?{messages:t,context:n}:{stack:r,messages:t.slice(0,t.length-1),context:n}}isStackFormat(e){return!(0,o.isString)(e)&&!(0,o.isUndefined)(e)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(e)}getColorByLogLevel(e){switch(e){case`debug`:return a.clc.magentaBright;case`warn`:return a.clc.yellow;case`error`:return a.clc.red;case`verbose`:return a.clc.cyanBright;case`fatal`:return a.clc.bold;default:return a.clc.green}}};e.ConsoleLogger=d,e.ConsoleLogger=d=t=n.__decorate([(0,i.Injectable)(),n.__param(0,(0,i.Optional)()),n.__param(1,(0,i.Optional)()),n.__metadata(`design:paramtypes`,[Object,Object])],d)})),st=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLogLevel=n;var t=ut();function n(e){return t.LOG_LEVELS.includes(e)}})),ct=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.filterLogLevels=r;var t=ut(),n=st();function r(e=``){let r=e.replaceAll(` `,``).toLowerCase();if(r[0]===`>`){let e=r[1]===`=`,n=t.LOG_LEVELS.indexOf(r.substring(e?2:1));if(n===-1)throw Error(`parse error (unknown log level): ${r}`);return t.LOG_LEVELS.slice(e?n:n+1)}else if(r.includes(`,`))return r.split(`,`).filter(n.isLogLevel);return(0,n.isLogLevel)(r)?[r]:t.LOG_LEVELS}})),lt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(ct(),e),t.__exportStar(at(),e),t.__exportStar(st(),e)})),ut=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.Logger=e.LOG_LEVELS=void 0;var n=k(),r=me(),i=M(),a=ot(),o=lt();e.LOG_LEVELS=[`verbose`,`debug`,`log`,`warn`,`error`,`fatal`];var s=new a.ConsoleLogger,c=new Intl.DateTimeFormat(void 0,{year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`,day:`2-digit`,month:`2-digit`}),l=t=class{constructor(e,t={}){this.context=e,this.options=t}get localInstance(){return t.staticInstanceRef===s||t.staticInstanceRef instanceof t&&Object.getPrototypeOf(t.staticInstanceRef).constructor===t?this.registerLocalInstanceRef():t.staticInstanceRef}error(e,...t){t=this.context?(t.length?t:[void 0]).concat(this.context):t,this.localInstance?.error(e,...t)}log(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.log(e,...t)}warn(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.warn(e,...t)}debug(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.debug?.(e,...t)}verbose(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.verbose?.(e,...t)}fatal(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.fatal?.(e,...t)}static error(e,...t){this.staticInstanceRef?.error(e,...t)}static log(e,...t){this.staticInstanceRef?.log(e,...t)}static warn(e,...t){this.staticInstanceRef?.warn(e,...t)}static debug(e,...t){this.staticInstanceRef?.debug?.(e,...t)}static verbose(e,...t){this.staticInstanceRef?.verbose?.(e,...t)}static fatal(e,...t){this.staticInstanceRef?.fatal?.(e,...t)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(e=>e.methodRef(...e.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return c.format(Date.now())}static overrideLogger(e){if(Array.isArray(e))return t.logLevels=e,this.staticInstanceRef?.setLogLevels?.(e);if((0,i.isObject)(e)){if(e instanceof t&&e.constructor!==t){let e=`Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.`;throw this.staticInstanceRef?.error(e),Error(e)}this.staticInstanceRef=e}else this.staticInstanceRef=void 0}static isLevelEnabled(e){let n=t.logLevels;return(0,o.isLogLevelEnabled)(e,n)}registerLocalInstanceRef(){return this.localInstanceRef||=new a.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:t.logLevels}),this.localInstanceRef}};e.Logger=l,l.logBuffer=[],l.staticInstanceRef=s,l.WrapBuffer=(e,n,r)=>{let i=r.value;r.value=function(...e){if(t.isBufferAttached){t.logBuffer.push({methodRef:i.bind(this),arguments:e});return}return i.call(this,...e)}},n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`error`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`log`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`warn`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`debug`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`verbose`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`fatal`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`error`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`log`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`warn`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`debug`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`verbose`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`fatal`,null),e.Logger=l=t=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,r.Optional)()),n.__param(1,(0,r.Optional)()),n.__metadata(`design:paramtypes`,[String,Object])],l)})),dt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(ot(),e),t.__exportStar(ut(),e),t.__exportStar(ct(),e)})),ft=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.StreamableFile=void 0;var t=require(`stream`),n=require(`util`),r=Pe(),i=dt(),a=M();e.StreamableFile=class{constructor(e,o={}){this.options=o,this.logger=new i.Logger(`StreamableFile`),this.handleError=(e,t)=>{if(!t.destroyed){if(t.headersSent){t.end();return}t.statusCode=r.HttpStatus.BAD_REQUEST,t.send(e.message)}},this.logError=e=>{this.logger.error(e)},n.types.isUint8Array(e)?(this.stream=new t.Readable,this.stream.push(e),this.stream.push(null),this.options.length??=e.length):e.pipe&&(0,a.isFunction)(e.pipe)&&(this.stream=e)}getStream(){return this.stream}getHeaders(){let{type:e=`application/octet-stream`,disposition:t=void 0,length:n=void 0}=this.options;return{type:e,disposition:t,length:n}}get errorHandler(){return this.handleError}setErrorHandler(e){return this.handleError=e,this}get errorLogger(){return this.logError}setErrorLogger(e){return this.logError=e,this}}})),pt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(ft(),e)})),mt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ht=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),gt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),_t=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),vt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),bt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),xt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),St=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ct=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),wt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Tt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Et=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Dt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ot=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),kt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),At=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),jt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Mt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Nt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Pt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(kt(),e),t.__exportStar(At(),e),t.__exportStar(jt(),e),t.__exportStar(Mt(),e),t.__exportStar(Nt(),e)})),Ft=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),It=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Lt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Rt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),zt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Bt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Ft(),e),t.__exportStar(It(),e),t.__exportStar(Lt(),e),t.__exportStar(Rt(),e),t.__exportStar(zt(),e)})),Vt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ht=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ut=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Wt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Gt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Kt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),qt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Ut(),e),t.__exportStar(Wt(),e),t.__exportStar(Gt(),e),t.__exportStar(Kt(),e)})),Jt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Yt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Xt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Zt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Qt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),$t=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),en=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),tn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),nn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Jt(),e),t.__exportStar(Yt(),e),t.__exportStar(Xt(),e),t.__exportStar(Zt(),e),t.__exportStar(Qt(),e),t.__exportStar($t(),e),t.__exportStar(en(),e),t.__exportStar(tn(),e)})),rn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),an=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),on=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),sn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),cn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scope=void 0;var t;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.TRANSIENT=1]=`TRANSIENT`,e[e.REQUEST=2]=`REQUEST`})(t||(e.Scope=t={}))})),ln=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),un=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),dn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION_NEUTRAL=void 0,e.VERSION_NEUTRAL=Symbol(`VERSION_NEUTRAL`)})),fn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),pn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(mt(),e),t.__exportStar(ht(),e),t.__exportStar(gt(),e),t.__exportStar(_t(),e),t.__exportStar(vt(),e),t.__exportStar(yt(),e),t.__exportStar(bt(),e),t.__exportStar(xt(),e),t.__exportStar(St(),e),t.__exportStar(Ct(),e),t.__exportStar(wt(),e),t.__exportStar(Tt(),e),t.__exportStar(Et(),e),t.__exportStar(Dt(),e),t.__exportStar(Ot(),e),t.__exportStar(Pt(),e),t.__exportStar(Bt(),e),t.__exportStar(Vt(),e),t.__exportStar(Ht(),e),t.__exportStar(qt(),e),t.__exportStar(nn(),e),t.__exportStar(rn(),e),t.__exportStar(an(),e),t.__exportStar(on(),e),t.__exportStar(sn(),e),t.__exportStar(cn(),e),t.__exportStar(ln(),e),t.__exportStar(un(),e),t.__exportStar(dn(),e),t.__exportStar(fn(),e)})),mn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.randomStringGenerator=void 0;var t=P();e.randomStringGenerator=()=>(0,t.uid)(21)})),hn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ASYNC_OPTIONS_METADATA_KEYS=e.CONFIGURABLE_MODULE_ID=e.ASYNC_METHOD_SUFFIX=e.DEFAULT_FACTORY_CLASS_METHOD_KEY=e.DEFAULT_METHOD_KEY=void 0,e.DEFAULT_METHOD_KEY=`register`,e.DEFAULT_FACTORY_CLASS_METHOD_KEY=`create`,e.ASYNC_METHOD_SUFFIX=`Async`,e.CONFIGURABLE_MODULE_ID=`CONFIGURABLE_MODULE_ID`,e.ASYNC_OPTIONS_METADATA_KEYS=[`useFactory`,`useClass`,`useExisting`,`inject`,`imports`,`provideInjectionTokensFrom`]})),gn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.generateOptionsInjectionToken=n;var t=mn();function n(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,t.randomStringGenerator)()}]`}})),_n=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getInjectionProviders=i;var t=M();function n(e){return!(0,t.isUndefined)(e.token)&&!(0,t.isUndefined)(e.optional)&&!e.prototype}var r=e=>n(e)?e.token:e;function i(e,t){let n=[],i=t.map(r);for(;i.length>0;){let t=(e??[]).filter(e=>!n.includes(e)&&(i.includes(e)||i.includes(e?.provide)));n.push(...t),i=t.filter(e=>e?.inject).flatMap(e=>e.inject).map(r)}return n}})),vn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(gn(),e),t.__exportStar(_n(),e)})),yn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigurableModuleBuilder=void 0;var t=ut(),n=mn(),r=hn(),i=vn();e.ConfigurableModuleBuilder=class e{constructor(n={},r){this.options=n,this.logger=new t.Logger(e.name),r&&(this.staticMethodKey=r.staticMethodKey,this.factoryClassMethodKey=r.factoryClassMethodKey,this.transformModuleDefinition=r.transformModuleDefinition,this.extras=r.extras)}setExtras(t,n=e=>e){let r=new e(this.options,this);return r.extras=t,r.transformModuleDefinition=n,r}setClassMethodName(t){let n=new e(this.options,this);return n.staticMethodKey=t,n}setFactoryMethodName(t){let n=new e(this.options,this);return n.factoryClassMethodKey=t,n}build(){return this.staticMethodKey??=r.DEFAULT_METHOD_KEY,this.factoryClassMethodKey??=r.DEFAULT_FACTORY_CLASS_METHOD_KEY,this.options.optionsInjectionToken??=this.options.moduleName?this.constructInjectionTokenString():(0,i.generateOptionsInjectionToken)(),this.transformModuleDefinition??=e=>e,{ConfigurableModuleClass:this.createConfigurableModuleCls(),MODULE_OPTIONS_TOKEN:this.options.optionsInjectionToken,ASYNC_OPTIONS_TYPE:this.createTypeProxy(`ASYNC_OPTIONS_TYPE`),OPTIONS_TYPE:this.createTypeProxy(`OPTIONS_TYPE`)}}constructInjectionTokenString(){return`${this.options.moduleName.trim().split(/(?=[A-Z])/).join(`_`).toUpperCase()}_MODULE_OPTIONS`}createConfigurableModuleCls(){let e=this,t=this.staticMethodKey+r.ASYNC_METHOD_SUFFIX;class a{static[e.staticMethodKey](t){let i=[{provide:e.options.optionsInjectionToken,useValue:this.omitExtras(t,e.extras)}];return e.options.alwaysTransient&&i.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,n.randomStringGenerator)()}),e.transformModuleDefinition({module:this,providers:i},{...e.extras,...t})}static[t](t){let i=this.createAsyncProviders(t);return e.options.alwaysTransient&&i.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,n.randomStringGenerator)()}),e.transformModuleDefinition({module:this,imports:t.imports||[],providers:i},{...e.extras,...this.extractExtrasFromAsyncOptions(t,e.extras)})}static omitExtras(e,t){if(!t)return e;let n={},r=Object.keys(t);return Object.keys(e).filter(e=>!r.includes(e)).forEach(t=>{n[t]=e[t]}),n}static extractExtrasFromAsyncOptions(e,t){if(!t)return{};let n={};return Object.keys(e).filter(e=>!r.ASYNC_OPTIONS_METADATA_KEYS.includes(e)).forEach(t=>{n[t]=e[t]}),n}static createAsyncProviders(e){return e.useExisting||e.useFactory?e.inject&&e.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(e),...(0,i.getInjectionProviders)(e.provideInjectionTokensFrom,e.inject)]:[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(t){return t.useFactory?{provide:e.options.optionsInjectionToken,useFactory:t.useFactory,inject:t.inject||[]}:{provide:e.options.optionsInjectionToken,useFactory:async t=>await t[e.factoryClassMethodKey](),inject:[t.useExisting||t.useClass]}}}return a}createTypeProxy(e){return new Proxy({},{get:()=>{throw Error(`"${e}" is not supposed to be used as a value.`)}})}}})),bn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),xn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Sn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Cn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(bn(),e),t.__exportStar(xn(),e),t.__exportStar(Sn(),e)})),wn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(yn(),e),t.__exportStar(Cn(),e)})),Tn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultValuePipe=void 0;var t=k(),n=oe(),r=M(),i=class{constructor(e){this.defaultValue=e}transform(e,t){return(0,r.isNil)(e)||(0,r.isNumber)(e)&&isNaN(e)?this.defaultValue:e}};e.DefaultValuePipe=i,e.DefaultValuePipe=i=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[Object])],i)})),En=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileValidator=void 0,e.FileValidator=class{constructor(e){this.validationOptions=e}}})),Dn=s(((e,t)=>{t.exports={loadEsm:e=>import(e)}})),On=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileTypeValidator=void 0;var t=require(`url`),n=ut(),r=En(),i=Dn(),a=new n.Logger(`FileTypeValidator`);e.FileTypeValidator=class extends r.FileValidator{buildErrorMessage(e){let{errorMessage:t,...n}=this.validationOptions;if(t)return typeof t==`function`?t({file:e,config:n}):t;if(e?.mimetype){let t=`Validation failed (current file type is ${e.mimetype}, expected type is ${this.validationOptions.fileType})`;return this.validationOptions.fallbackToMimetype?`${t} - magic number detection failed, used mimetype fallback`:t}return`Validation failed (expected type is ${this.validationOptions.fileType})`}async isValid(e){if(!this.validationOptions)return!0;let n=!!e&&`mimetype`in e;if(this.validationOptions.skipMagicNumbersValidation)return n&&!!e.mimetype.match(this.validationOptions.fileType);if(!n)return!1;if(!e.buffer)return this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1;try{let n;try{let e=require.resolve(`file-type`);n=(0,t.pathToFileURL)(e).href}catch{n=`file-type`}let{fileTypeFromBuffer:r}=await(0,i.loadEsm)(n),a=await r(e.buffer);return a?!!a.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1}catch(t){let n=t instanceof Error?t.message:String(t);return(n.includes(`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`)||n.includes(`Cannot find module`)||n.includes(`ERR_MODULE_NOT_FOUND`))&&a.warn(`Failed to load the "file-type" package for magic number validation. If you are using Jest, run it with NODE_OPTIONS="--experimental-vm-modules". Error: ${n}`),this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1}}}})),kn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MaxFileSizeValidator=void 0;var t=En();e.MaxFileSizeValidator=class extends t.FileValidator{buildErrorMessage(e){let{errorMessage:t,message:n,...r}=this.validationOptions;return t?typeof t==`function`?t({file:e,config:r}):t:n?typeof n==`function`?n(this.validationOptions.maxSize):n:e?.size?`Validation failed (current file size is ${e.size}, expected size is less than ${this.validationOptions.maxSize})`:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(e){return!this.validationOptions||!e?!0:`size`in e&&e.size<this.validationOptions.maxSize}}})),An=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),jn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpErrorByCode=void 0;var t=Pe(),n=rt();e.HttpErrorByCode={[t.HttpStatus.BAD_GATEWAY]:n.BadGatewayException,[t.HttpStatus.BAD_REQUEST]:n.BadRequestException,[t.HttpStatus.CONFLICT]:n.ConflictException,[t.HttpStatus.FORBIDDEN]:n.ForbiddenException,[t.HttpStatus.GATEWAY_TIMEOUT]:n.GatewayTimeoutException,[t.HttpStatus.GONE]:n.GoneException,[t.HttpStatus.I_AM_A_TEAPOT]:n.ImATeapotException,[t.HttpStatus.INTERNAL_SERVER_ERROR]:n.InternalServerErrorException,[t.HttpStatus.METHOD_NOT_ALLOWED]:n.MethodNotAllowedException,[t.HttpStatus.NOT_ACCEPTABLE]:n.NotAcceptableException,[t.HttpStatus.NOT_FOUND]:n.NotFoundException,[t.HttpStatus.NOT_IMPLEMENTED]:n.NotImplementedException,[t.HttpStatus.PAYLOAD_TOO_LARGE]:n.PayloadTooLargeException,[t.HttpStatus.PRECONDITION_FAILED]:n.PreconditionFailedException,[t.HttpStatus.REQUEST_TIMEOUT]:n.RequestTimeoutException,[t.HttpStatus.SERVICE_UNAVAILABLE]:n.ServiceUnavailableException,[t.HttpStatus.UNAUTHORIZED]:n.UnauthorizedException,[t.HttpStatus.UNPROCESSABLE_ENTITY]:n.UnprocessableEntityException,[t.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:n.UnsupportedMediaTypeException}})),Mn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFilePipe=void 0;var t=k(),n=me(),r=Pe(),i=jn(),a=M(),o=class{constructor(e={}){let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST,validators:a=[],fileIsRequired:o}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e)),this.validators=a,this.fileIsRequired=o??!0}async transform(e){let t=this.thereAreNoFilesIn(e);if(t&&this.fileIsRequired)throw this.exceptionFactory(`File is required`);return!t&&this.validators.length&&await this.validateFilesOrFile(e),e}async validateFilesOrFile(e){Array.isArray(e)?await Promise.all(e.map(e=>this.validate(e))):await this.validate(e)}thereAreNoFilesIn(e){let t=Array.isArray(e)&&(0,a.isEmpty)(e),n=(0,a.isObject)(e)&&(0,a.isEmpty)(Object.keys(e));return(0,a.isUndefined)(e)||t||n}async validate(e){for(let t of this.validators)await this.validateOrThrow(e,t);return e}async validateOrThrow(e,t){if(!await t.isValid(e)){let n=t.buildErrorMessage(e);throw this.exceptionFactory(n)}}getValidators(){return this.validators}};e.ParseFilePipe=o,e.ParseFilePipe=o=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object])],o)})),Nn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFilePipeBuilder=void 0;var t=On(),n=kn(),r=Mn();e.ParseFilePipeBuilder=class{constructor(){this.validators=[]}addMaxSizeValidator(e){return this.addValidator(new n.MaxFileSizeValidator(e))}addFileTypeValidator(e){return this.addValidator(new t.FileTypeValidator(e))}addValidator(e){return this.validators.push(e),this}build(e){let t=new r.ParseFilePipe({...e,validators:this.validators});return this.validators=[],t}}})),Pn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(On(),e),t.__exportStar(En(),e),t.__exportStar(kn(),e),t.__exportStar(An(),e),t.__exportStar(Mn(),e),t.__exportStar(Nn(),e)})),Fn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConcatIterator=class{constructor(e){this.toConcat=e}next(){if(this.toConcat.length===0)return{done:!0};let e=this.toConcat[0].next();return e.done?(this.toConcat.shift(),this.next()):e}}})),In=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FilterIterator=class{constructor(e,t){this.source=e,this.predicate=t}next(){let e;do e=this.source.next();while(!e.done&&!this.predicate(e.value));return e}}})),Ln=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`object`&&!!e&&typeof e.next==`function`}e.isIterator=t;function n(e){return typeof e==`object`&&!!e&&typeof e[Symbol.iterator]==`function`}e.isIterable=n;function r(e){if(t(e))return e;if(n(e))return e[Symbol.iterator]();throw Error(`Passed collection is neither an Iterator nor an Iterable`)}e.toIterator=r})),Rn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ln();e.FlattenIterator=class{constructor(e){this.outer=e}next(){if(this.inner){let e=this.inner.next();if(!e.done)return e;this.inner=void 0}let{value:e,done:n}=this.outer.next();return t.isIterable(e)?(this.inner=e[Symbol.iterator](),this.next()):{value:e,done:n}}}})),zn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MapIterator=class{constructor(e,t){this.source=e,this.iteratee=t}next(){let{value:e,done:t}=this.source.next();return{value:!t&&this.iteratee(e),done:t}}}})),Bn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SliceIterator=class{constructor(e,t,n=1/0){this.source=e,this.start=t,this.end=n,this.i=0}next(){for(;this.i<this.start;){let e=this.source.next();if(e.done)return e;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}})),Vn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ZipIterator=class{constructor(e,t){this.a=e,this.b=t}next(){let e=this.a.next();if(e.done)return{done:!0};let t=this.b.next();return t.done?{done:!0}:{value:[e.value,t.value],done:!1}}}})),Hn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Fn(),n=In(),r=Rn(),i=zn(),a=Bn(),o=Ln(),s=Vn(),c=class e{constructor(e){this.source=e}next(){return this.source.next()}[Symbol.iterator](){return this}map(t){return new e(new i.MapIterator(this.source,t))}filter(t){return new e(new n.FilterIterator(this.source,t))}concat(n){return new e(new t.ConcatIterator([this.source,o.toIterator(n)]))}take(t){return new e(new a.SliceIterator(this.source,0,t+1))}drop(t){return new e(new a.SliceIterator(this.source,t,1/0))}slice(t,n=1/0){return new e(new a.SliceIterator(this.source,t,n))}flatten(){return new e(new r.FlattenIterator(this.source))}reduce(e,t){let n;if(t===void 0){if(n=this.source.next(),n.done)throw TypeError(`Reduce of empty Iterator with no initial value`);t=n.value}for(;n=this.source.next(),!n.done;)t=e(t,n.value);return t}find(e){let t;for(;;){if(t=this.source.next(),t.done)return;if(e(t.value))return t.value}}includes(e){let t;do if(t=this.source.next(),!t.done&&t.value===e)return!0;while(!t.done);return!1}some(e){let t;do if(t=this.source.next(),!t.done&&e(t.value))return!0;while(!t.done);return!1}every(e){let t;do if(t=this.source.next(),!t.done&&!e(t.value))return!1;while(!t.done);return!0}forEach(e){let t;for(;t=this.source.next(),!t.done;)e(t.value)}join(e=`,`){let t=``,n;for(;n=this.source.next(),!n.done;)t+=e+n.value;return t.substr(e.length)}toArray(){return Array.from(this)}toSet(){let e=new Set;for(;;){let{value:t,done:n}=this.next();if(n)return e;e.add(t)}}toMap(){return new Map(this)}};e.IteratorWithOperators=c;function l(e){return new c(o.toIterator(e))}e.iterate=l;function u(e,t){return new c(new s.ZipIterator(o.toIterator(e),o.toIterator(t)))}e.zip=u,e.default=l})),L=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Hn();e.iterate=t.iterate,e.zip=t.zip,e.default=t.iterate})),Un=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadPackage=i;var t=ut(),n=(e,t)=>`The "${e}" package is missing. Please, make sure to install it to take advantage of ${t}.`,r=new t.Logger(`PackageLoader`);function i(e,i,a){try{return a?a():require(e)}catch{r.error(n(e,i)),t.Logger.flush(),process.exit(1)}}})),Wn=o((()=>{throw Error(`Could not resolve "class-validator" imported by "@nestjs/common". Is it installed?`)})),Gn=o((()=>{throw Error(`Could not resolve "class-transformer" imported by "@nestjs/common". Is it installed?`)})),Kn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValidationPipe=void 0;var t=k(),n=L(),r=require(`util`),i=je(),a=me(),o=F(),s=jn(),c=Un(),l=M(),u={},d={},f=[Date,RegExp,Error,Map,Set,WeakMap,WeakSet],p=class{constructor(e){e||={};let{transform:t,disableErrorMessages:n,errorHttpStatusCode:r,expectedType:i,transformOptions:a,validateCustomDecorators:s,...c}=e;this.validatorOptions={forbidUnknownValues:!1,...c},this.isTransformEnabled=!!t,this.transformOptions=a,this.isDetailedOutputDisabled=n,this.validateCustomDecorators=s||!1,this.errorHttpStatusCode=r||o.HttpStatus.BAD_REQUEST,this.expectedType=i,this.exceptionFactory=e.exceptionFactory||this.createExceptionFactory(),u=this.loadValidator(e.validatorPackage),d=this.loadTransformer(e.transformerPackage)}loadValidator(e){return e??(0,c.loadPackage)(`class-validator`,`ValidationPipe`,()=>Wn())}loadTransformer(e){return e??(0,c.loadPackage)(`class-transformer`,`ValidationPipe`,()=>Gn())}async transform(e,t){this.expectedType&&(t={...t,metatype:this.expectedType});let n=t.metatype;if(!n||!this.toValidate(t))return this.isTransformEnabled?this.transformPrimitive(e,t):e;let r=e;e=this.toEmptyIfNil(e,n);let i=e!==r,a=this.isPrimitive(e);this.stripProtoKeys(e);let o=d.plainToInstance(n,e,this.transformOptions),s=o,c=o.constructor!==n;c&&!a?o.constructor=n:c&&(o={constructor:n});let l=await this.validate(o,this.validatorOptions);if(l.length>0)throw await this.exceptionFactory(l);return r===void 0&&s===``?r:(a&&(o=s),this.isTransformEnabled?o:i?r:Object.keys(this.validatorOptions).length>1?d.classToPlain(o,this.transformOptions):e)}createExceptionFactory(){return(e=[])=>{if(this.isDetailedOutputDisabled)return new s.HttpErrorByCode[this.errorHttpStatusCode];let t=this.flattenValidationErrors(e);return new s.HttpErrorByCode[this.errorHttpStatusCode](t)}}toValidate(e){let{metatype:t,type:n}=e;return n===`custom`&&!this.validateCustomDecorators?!1:![String,Boolean,Number,Array,Object,Buffer,Date].some(e=>t===e)&&!(0,l.isNil)(t)}transformPrimitive(e,t){if(!t.data)return e;let{type:n,metatype:r}=t;return n!==`param`&&n!==`query`?e:r===Boolean?(0,l.isUndefined)(e)?void 0:e===!0||e===`true`:r===Number?(0,l.isUndefined)(e)?void 0:+e:r===String&&!(0,l.isUndefined)(e)?String(e):e}toEmptyIfNil(e,t){return(0,l.isNil)(e)?typeof t==`function`||t&&`prototype`in t&&t.prototype?.constructor?{}:``:e}stripProtoKeys(e){if(typeof e!=`object`||!e||r.types.isTypedArray(e)||f.some(t=>e instanceof t))return;if(Array.isArray(e)){for(let t of e)this.stripProtoKeys(t);return}delete e.__proto__,delete e.prototype;let t=e?.constructor;t&&!f.includes(t)&&delete e.constructor;for(let t in e)this.stripProtoKeys(e[t])}isPrimitive(e){return[`number`,`boolean`,`string`].includes(typeof e)}validate(e,t){return u.validate(e,t)}flattenValidationErrors(e){return(0,n.iterate)(e).map(e=>this.mapChildrenToValidationErrors(e)).flatten().filter(e=>!!e.constraints).map(e=>Object.values(e.constraints)).flatten().toArray()}mapChildrenToValidationErrors(e,t){if(!(e.children&&e.children.length))return[e];let n=[];t=t?`${t}.${e.property}`:e.property;for(let r of e.children)r.children&&r.children.length&&n.push(...this.mapChildrenToValidationErrors(r,t)),n.push(this.prependConstraintsWithParentProp(t,r));return n}prependConstraintsWithParentProp(e,t){let n={};for(let r in t.constraints)n[r]=`${e}.${t.constraints[r]}`;return{...t,constraints:n}}};e.ValidationPipe=p,e.ValidationPipe=p=t.__decorate([(0,a.Injectable)(),t.__param(0,(0,i.Optional)()),t.__metadata(`design:paramtypes`,[Object])],p)})),qn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseArrayPipe=void 0;var t=k(),n=oe(),r=se(),i=F(),a=jn(),o=M(),s=Kn(),c=`Validation failed (parsable array expected)`,l=`,`,u=class{constructor(e={}){this.options=e,this.validationPipe=new s.ValidationPipe({transform:!0,validateCustomDecorators:!0,...e});let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if(!e&&!this.options.optional)throw this.exceptionFactory(c);if((0,o.isNil)(e)&&this.options.optional)return e;if(!Array.isArray(e))if((0,o.isString)(e))try{e=e.trim().split(this.options.separator||l)}catch{throw this.exceptionFactory(c)}else throw this.exceptionFactory(c);if(this.options.items){let t={metatype:this.options.items,type:`query`},n=this.isExpectedTypePrimitive(),r=(e,r)=>{if(this.options.items!==String)try{e=JSON.parse(e)}catch{}return n?this.validatePrimitive(e,r):this.validationPipe.transform(e,t)};if(this.options.stopAtFirstError===!1){let t=[],n=e;for(let e=0;e<n.length;e++)try{n[e]=await r(n[e])}catch(n){let r;if(n.getResponse){let t=n.getResponse();r=Array.isArray(t.message)?t.message.map(t=>`[${e}] ${t}`):`[${e}] ${t.message}`}else r=n;t=t.concat(r)}if(t.length>0)throw this.exceptionFactory(t);return n}else e=await Promise.all(e.map(r))}return e}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(e,t){if(this.options.items===Number){let n=e!==null&&e!==``?+e:NaN;if(isNaN(n))throw this.exceptionFactory(`${(0,o.isUndefined)(t)?``:`[${t}] `}item must be a number`);return n}else if(this.options.items===String){if(!(0,o.isString)(e))return`${e}`}else if(this.options.items===Boolean&&typeof e!=`boolean`)throw this.exceptionFactory(`${(0,o.isUndefined)(t)?``:`[${t}] `}item must be a boolean value`);return e}};e.ParseArrayPipe=u,e.ParseArrayPipe=u=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],u)})),Jn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseBoolPipe=void 0;var t=k(),n=oe(),r=se(),i=F(),a=jn(),o=M(),s=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(this.isTrue(e))return!0;if(this.isFalse(e))return!1;throw this.exceptionFactory(`Validation failed (boolean string is expected)`)}isTrue(e){return e===!0||e===`true`}isFalse(e){return e===!1||e===`false`}};e.ParseBoolPipe=s,e.ParseBoolPipe=s=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],s)})),Yn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseDatePipe=void 0;var t=k(),n=oe(),r=F(),i=jn(),a=M(),o=class{constructor(e={}){this.options=e;let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e))}transform(e){if(this.options.optional&&(0,a.isNil)(e))return this.options.default?this.options.default():e;if(!e)throw this.exceptionFactory(`Validation failed (no Date provided)`);let t=new Date(e);if(isNaN(t.getTime()))throw this.exceptionFactory(`Validation failed (invalid date format)`);return t}};e.ParseDatePipe=o,e.ParseDatePipe=o=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[Object])],o)})),Xn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseEnumPipe=void 0;var t=k(),n=me(),r=U(),i=jn(),a=M(),o=class{constructor(e,t){if(this.enumType=e,this.options=t,!e)throw Error(`"ParseEnumPipe" requires "enumType" argument specified (to validate input values).`);t||={};let{exceptionFactory:n,errorHttpStatusCode:a=r.HttpStatus.BAD_REQUEST}=t;this.exceptionFactory=n||(e=>new i.HttpErrorByCode[a](e))}async transform(e,t){if((0,a.isNil)(e)&&this.options?.optional)return e;if(!this.isEnum(e))throw this.exceptionFactory(`Validation failed (enum string is expected)`);return e}isEnum(e){return Object.keys(this.enumType).map(e=>this.enumType[e]).includes(e)}};e.ParseEnumPipe=o,e.ParseEnumPipe=o=t.__decorate([(0,n.Injectable)(),t.__param(1,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object,Object])],o)})),Zn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFloatPipe=void 0;var t=k(),n=me(),r=U(),i=jn(),a=M(),o=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e))}async transform(e,t){if((0,a.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory(`Validation failed (numeric string is expected)`);return parseFloat(e)}isNumeric(e){return[`string`,`number`].includes(typeof e)&&!isNaN(parseFloat(e))&&isFinite(e)}};e.ParseFloatPipe=o,e.ParseFloatPipe=o=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object])],o)})),Qn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseIntPipe=void 0;var t=k(),n=oe(),r=se(),i=F(),a=jn(),o=M(),s=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory(`Validation failed (numeric string is expected)`);return parseInt(e,10)}isNumeric(e){return[`string`,`number`].includes(typeof e)&&/^-?\d+$/.test(e)&&isFinite(e)}};e.ParseIntPipe=s,e.ParseIntPipe=s=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],s)})),$n=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseUUIDPipe=void 0;var n=k(),r=oe(),i=se(),a=F(),o=jn(),s=M(),c=t=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=a.HttpStatus.BAD_REQUEST,version:r}=e;this.version=r,this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,s.isNil)(e)&&this.options?.optional)return e;if(!this.isUUID(e,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:``} is expected)`);return e}isUUID(e,n=`all`){if(!(0,s.isString)(e))throw this.exceptionFactory(`The value passed as UUID is not a string`);return t.uuidRegExps[n]?.test(e)}};e.ParseUUIDPipe=c,c.uuidRegExps={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},e.ParseUUIDPipe=c=t=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,i.Optional)()),n.__metadata(`design:paramtypes`,[Object])],c)})),er=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Tn(),e),t.__exportStar(Pn(),e),t.__exportStar(qn(),e),t.__exportStar(Jn(),e),t.__exportStar(Yn(),e),t.__exportStar(Xn(),e),t.__exportStar(Zn(),e),t.__exportStar(Qn(),e),t.__exportStar($n(),e),t.__exportStar(Kn(),e)})),R=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isFunction=void 0;function t(e){return typeof e==`function`}e.isFunction=t})),z=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.operate=e.hasLift=void 0;var t=R();function n(e){return t.isFunction(e?.lift)}e.hasLift=n;function r(e){return function(t){if(n(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}e.operate=r})),tr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArrayLike=void 0,e.isArrayLike=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`})})),nr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromise=void 0;var t=R();function n(e){return t.isFunction(e?.then)}e.isPromise=n})),rr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createErrorClass=void 0;function t(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.createErrorClass=t})),ir=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsubscriptionError=void 0,e.UnsubscriptionError=rr().createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
3
|
+
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function p(e){e||={};let t=y(e);e.path=t;let n=D.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=_(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=v(n,r[e].trim());a=D.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return D.parse(a)}function m(e){console.error(`⚠ ${e}`)}function h(e){console.log(`┆ ${e}`)}function g(e){console.log(`◇ ${e}`)}function _(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function v(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function y(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=r.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function b(e){return e[0]===`~`?r.join(i.homedir(),e.slice(1)):e}function x(e){let t=c(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=c(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&g(`loading env from encrypted .env.vault`);let r=D._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),D.populate(i,r,e),{parsed:r}}function S(e){let t=r.resolve(process.cwd(),`.env`),i=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=c(a.DOTENV_CONFIG_DEBUG||e&&e.debug),l=c(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?i=e.encoding:o&&h(`no encoding is specified (UTF-8 is used by default)`);let d=[t];if(e&&e.path)if(!Array.isArray(e.path))d=[b(e.path)];else{d=[];for(let t of e.path)d.push(b(t))}let f,p={};for(let t of d)try{let r=D.parse(n.readFileSync(t,{encoding:i}));D.populate(p,r,e)}catch(e){o&&h(`failed to load ${t} ${e.message}`),f=e}let m=D.populate(a,p,e);if(o=c(a.DOTENV_CONFIG_DEBUG||o),l=c(a.DOTENV_CONFIG_QUIET||l),o||!l){let e=Object.keys(m).length,t=[];for(let e of d)try{let n=r.relative(process.cwd(),e);t.push(n)}catch(t){o&&h(`failed to load ${e} ${t.message}`),f=t}g(`injected env (${e}) from ${t.join(`,`)} ${u(`// tip: ${s()}`)}`)}return f?{parsed:p,error:f}:{parsed:p}}function w(e){if(_(e).length===0)return D.configDotenv(e);let t=y(e);return t?D._configVault(e):(m(`you set DOTENV_KEY but you are missing a .env.vault file at ${t}`),D.configDotenv(e))}function T(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{let e=a.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function E(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&h(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}var D={configDotenv:S,_configVault:x,_parseVault:p,config:w,decrypt:T,parse:f,populate:E};t.exports.configDotenv=D.configDotenv,t.exports._configVault=D._configVault,t.exports._parseVault=D._parseVault,t.exports.config=D.config,t.exports.decrypt=D.decrypt,t.exports.parse=D.parse,t.exports.populate=D.populate,t.exports=D}))(),1),T=(e={})=>{let{env:t,configPath:n}=e,r=f.default.resolve(n??process.cwd(),`.env${t?`.${t}`:``}`),{parsed:i}=w.config({path:r});return i};b(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:+(e>t)}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}}))();var E=s(((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,ee,te,ne;(function(e){var n=typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:{};typeof define==`function`&&define.amd?define(`tslib`,[`exports`],function(t){e(r(n,r(t)))}):typeof t==`object`&&typeof t.exports==`object`?e(r(n,r(t.exports))):e(r(n));function r(e,t){return e!==n&&(typeof Object.create==`function`?Object.defineProperty(e,`__esModule`,{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};n=function(e,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},a=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=function(e,t){return function(n,r){t(n,r,e)}},s=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},c=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},l=function(e){return typeof e==`symbol`?e:`${e}`},u=function(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})},d=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},f=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},p=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},m=function(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&A(t,e,n)},A=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),h=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},g=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},_=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e},v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},y=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},b=function(e){return this instanceof b?(this.v=e,this):new b(e)},x=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof b?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}},S=function(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:!1}:i?i(t):t}:i}},C=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof h==`function`?h(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},w=function(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e};var j=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},re=function(e){return re=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},re(e)};T=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=re(e),r=0;r<n.length;r++)n[r]!==`default`&&A(t,e,n[r]);return j(t,e),t},E=function(e){return e&&e.__esModule?e:{default:e}},D=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},O=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},k=function(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)},ee=function(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t};var ie=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r};te=function(e){function t(t){e.error=e.hasError?new ie(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()},ne=function(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e},e(`__extends`,n),e(`__assign`,r),e(`__rest`,i),e(`__decorate`,a),e(`__param`,o),e(`__esDecorate`,s),e(`__runInitializers`,c),e(`__propKey`,l),e(`__setFunctionName`,u),e(`__metadata`,d),e(`__awaiter`,f),e(`__generator`,p),e(`__exportStar`,m),e(`__createBinding`,A),e(`__values`,h),e(`__read`,g),e(`__spread`,_),e(`__spreadArrays`,v),e(`__spreadArray`,y),e(`__await`,b),e(`__asyncGenerator`,x),e(`__asyncDelegator`,S),e(`__asyncValues`,C),e(`__makeTemplateObject`,w),e(`__importStar`,T),e(`__importDefault`,E),e(`__classPrivateFieldGet`,D),e(`__classPrivateFieldSet`,O),e(`__classPrivateFieldIn`,k),e(`__addDisposableResource`,ee),e(`__disposeResources`,te),e(`__rewriteRelativeImportExtension`,ne)})})),D=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Bind=t;function t(...e){return(t,n,r)=>(e.forEach((e,r)=>e(t,n,r)),r)}})),O=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ENTRY_PROVIDER_WATERMARK=e.CATCH_WATERMARK=e.CONTROLLER_WATERMARK=e.INJECTABLE_WATERMARK=e.VERSION_METADATA=e.SSE_METADATA=e.RESPONSE_PASSTHROUGH_METADATA=e.REDIRECT_METADATA=e.HEADERS_METADATA=e.MODULE_PATH=e.HTTP_CODE_METADATA=e.RENDER_METADATA=e.ENHANCER_KEY_TO_SUBTYPE_MAP=e.EXCEPTION_FILTERS_METADATA=e.INTERCEPTORS_METADATA=e.GUARDS_METADATA=e.PIPES_METADATA=e.FILTER_CATCH_EXCEPTIONS=e.CUSTOM_ROUTE_ARGS_METADATA=e.ROUTE_ARGS_METADATA=e.METHOD_METADATA=e.SCOPE_OPTIONS_METADATA=e.OPTIONAL_PROPERTY_DEPS_METADATA=e.PROPERTY_DEPS_METADATA=e.OPTIONAL_DEPS_METADATA=e.SELF_DECLARED_DEPS_METADATA=e.PARAMTYPES_METADATA=e.PATH_METADATA=e.HOST_METADATA=e.GLOBAL_MODULE_METADATA=e.MODULE_METADATA=void 0,e.MODULE_METADATA={IMPORTS:`imports`,PROVIDERS:`providers`,CONTROLLERS:`controllers`,EXPORTS:`exports`},e.GLOBAL_MODULE_METADATA=`__module:global__`,e.HOST_METADATA=`host`,e.PATH_METADATA=`path`,e.PARAMTYPES_METADATA=`design:paramtypes`,e.SELF_DECLARED_DEPS_METADATA=`self:paramtypes`,e.OPTIONAL_DEPS_METADATA=`optional:paramtypes`,e.PROPERTY_DEPS_METADATA=`self:properties_metadata`,e.OPTIONAL_PROPERTY_DEPS_METADATA=`optional:properties_metadata`,e.SCOPE_OPTIONS_METADATA=`scope:options`,e.METHOD_METADATA=`method`,e.ROUTE_ARGS_METADATA=`__routeArguments__`,e.CUSTOM_ROUTE_ARGS_METADATA=`__customRouteArgs__`,e.FILTER_CATCH_EXCEPTIONS=`__filterCatchExceptions__`,e.PIPES_METADATA=`__pipes__`,e.GUARDS_METADATA=`__guards__`,e.INTERCEPTORS_METADATA=`__interceptors__`,e.EXCEPTION_FILTERS_METADATA=`__exceptionFilters__`,e.ENHANCER_KEY_TO_SUBTYPE_MAP={[e.GUARDS_METADATA]:`guard`,[e.INTERCEPTORS_METADATA]:`interceptor`,[e.PIPES_METADATA]:`pipe`,[e.EXCEPTION_FILTERS_METADATA]:`filter`},e.RENDER_METADATA=`__renderTemplate__`,e.HTTP_CODE_METADATA=`__httpCode__`,e.MODULE_PATH=`__module_path__`,e.HEADERS_METADATA=`__headers__`,e.REDIRECT_METADATA=`__redirect__`,e.RESPONSE_PASSTHROUGH_METADATA=`__responsePassthrough__`,e.SSE_METADATA=`__sse__`,e.VERSION_METADATA=`__version__`,e.INJECTABLE_WATERMARK=`__injectable__`,e.CONTROLLER_WATERMARK=`__controller__`,e.CATCH_WATERMARK=`__catch__`,e.ENTRY_PROVIDER_WATERMARK=`__entryProvider__`})),k=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Catch=n;var t=O();function n(...e){return n=>{Reflect.defineMetadata(t.CATCH_WATERMARK,!0,n),Reflect.defineMetadata(t.FILTER_CATCH_EXCEPTIONS,e,n)}}})),A=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isSymbol=e.isEmpty=e.isNil=e.isConstructor=e.isNumber=e.isString=e.isFunction=e.stripEndSlash=e.normalizePath=e.addLeadingSlash=e.isPlainObject=e.isObject=e.isUndefined=void 0,e.isUndefined=e=>e===void 0,e.isObject=t=>!(0,e.isNil)(t)&&typeof t==`object`,e.isPlainObject=t=>{if(!(0,e.isObject)(t))return!1;let n=Object.getPrototypeOf(t);if(n===null)return!0;let r=Object.prototype.hasOwnProperty.call(n,`constructor`)&&n.constructor;return typeof r==`function`&&r instanceof r&&Function.prototype.toString.call(r)===Function.prototype.toString.call(Object)},e.addLeadingSlash=e=>e&&typeof e==`string`?e.charAt(0)!==`/`&&e.substring(0,2)!==`{/`?`/`+e:e:``,e.normalizePath=e=>e?e.startsWith(`/`)?(`/`+e.replace(/\/+$/,``)).replace(/\/+/g,`/`):`/`+e.replace(/\/+$/,``):`/`,e.stripEndSlash=e=>e[e.length-1]===`/`?e.slice(0,e.length-1):e,e.isFunction=e=>typeof e==`function`,e.isString=e=>typeof e==`string`,e.isNumber=e=>typeof e==`number`,e.isConstructor=e=>e===`constructor`,e.isNil=t=>(0,e.isUndefined)(t)||t===null,e.isEmpty=e=>!(e&&e.length>0),e.isSymbol=e=>typeof e==`symbol`})),ee=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Controller=r;var t=O(),n=A();function r(e){let[r,i,a,o]=(0,n.isUndefined)(e)?[`/`,void 0,void 0,void 0]:(0,n.isString)(e)||Array.isArray(e)?[e,void 0,void 0,void 0]:[e.path||`/`,e.host,{scope:e.scope,durable:e.durable},Array.isArray(e.version)?Array.from(new Set(e.version)):e.version];return e=>{Reflect.defineMetadata(t.CONTROLLER_WATERMARK,!0,e),Reflect.defineMetadata(t.PATH_METADATA,r,e),Reflect.defineMetadata(t.HOST_METADATA,i,e),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,a,e),Reflect.defineMetadata(t.VERSION_METADATA,o,e)}}})),te=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Dependencies=void 0,e.flatten=n;var t=O();function n(e){let t=[].concat(...e);return t.some(Array.isArray)?n(t):t}e.Dependencies=(...e)=>{let r=n(e);return e=>{Reflect.defineMetadata(t.PARAMTYPES_METADATA,r,e)}}})),ne=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendArrayMetadata=t;function t(e,t,n){let r=[...Reflect.getMetadata(e,n)||[],...t];Reflect.defineMetadata(e,r,n)}})),j=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidDecoratorItemException=void 0,e.validateEach=n;var t=class extends Error{constructor(e,t,n){let r=`Invalid ${t} passed to ${e}() decorator (${n}).`;super(r),this.msg=r}what(){return this.msg}};e.InvalidDecoratorItemException=t;function n(e,n,r,i,a){if(!e||!e.name)return!0;if(n.some(e=>!r(e)))throw new t(i,a,e.name);return!0}})),re=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseFilters=void 0;var t=O(),n=ne(),r=A(),i=j();e.UseFilters=(...e)=>a(...e);function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.catch));return s?((0,i.validateEach)(a.constructor,e,c,`@UseFilters`,`filter`),(0,n.extendArrayMetadata)(t.EXCEPTION_FILTERS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseFilters`,`filter`),(0,n.extendArrayMetadata)(t.EXCEPTION_FILTERS_METADATA,e,a),a)}}})),ie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Inject=r;var t=O(),n=A();function r(e){let r=arguments.length>0;return(i,a,o)=>{let s=e||Reflect.getMetadata(`design:type`,i,a);if(!s&&!r&&(s=Reflect.getMetadata(t.PARAMTYPES_METADATA,i,a)?.[o]),!(0,n.isUndefined)(o)){let e=Reflect.getMetadata(t.SELF_DECLARED_DEPS_METADATA,i)||[];e=[...e,{index:o,param:s}],Reflect.defineMetadata(t.SELF_DECLARED_DEPS_METADATA,e,i);return}let c=Reflect.getMetadata(t.PROPERTY_DEPS_METADATA,i.constructor)||[];c=[...c,{key:a,type:s}],Reflect.defineMetadata(t.PROPERTY_DEPS_METADATA,c,i.constructor)}}})),M=s((e=>{for(var t=256,n=[],r=256,i;t--;)n[t]=(t+256).toString(16).substring(1);function a(e){var a=0,o=e||11;if(!i||t+o>r*2)for(i=``,t=0;a<r;a++)i+=n[Math.random()*256|0];return i.substring(t,t+++o)}e.uid=a})),ae=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Injectable=r,e.mixin=i;var t=M(),n=O();function r(e){return t=>{Reflect.defineMetadata(n.INJECTABLE_WATERMARK,!0,t),Reflect.defineMetadata(n.SCOPE_OPTIONS_METADATA,e,t)}}function i(e){return Object.defineProperty(e,`name`,{value:(0,t.uid)(21)}),r()(e),e}})),oe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Optional=r;var t=O(),n=A();function r(){return(e,r,i)=>{if(!(0,n.isUndefined)(i)){let n=Reflect.getMetadata(t.OPTIONAL_DEPS_METADATA,e)||[];Reflect.defineMetadata(t.OPTIONAL_DEPS_METADATA,[...n,i],e);return}let a=Reflect.getMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,e.constructor)||[];Reflect.defineMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,[...a,r],e.constructor)}}})),N=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SetMetadata=void 0,e.SetMetadata=(e,t)=>{let n=(n,r,i)=>i?(Reflect.defineMetadata(e,t,i.value),i):(Reflect.defineMetadata(e,t,n),n);return n.KEY=e,n}})),se=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseGuards=a;var t=O(),n=ne(),r=A(),i=j();function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.canActivate));return s?((0,i.validateEach)(a.constructor,e,c,`@UseGuards`,`guard`),(0,n.extendArrayMetadata)(t.GUARDS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseGuards`,`guard`),(0,n.extendArrayMetadata)(t.GUARDS_METADATA,e,a),a)}}})),ce=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UseInterceptors=a;var t=O(),n=ne(),r=A(),i=j();function a(...e){return(a,o,s)=>{let c=e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.intercept));return s?((0,i.validateEach)(a.constructor,e,c,`@UseInterceptors`,`interceptor`),(0,n.extendArrayMetadata)(t.INTERCEPTORS_METADATA,e,s.value),s):((0,i.validateEach)(a,e,c,`@UseInterceptors`,`interceptor`),(0,n.extendArrayMetadata)(t.INTERCEPTORS_METADATA,e,a),a)}}})),le=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UsePipes=a;var t=O(),n=ne(),r=A(),i=j();function a(...e){return(a,o,s)=>s?((0,n.extendArrayMetadata)(t.PIPES_METADATA,e,s.value),s):((0,i.validateEach)(a,e,e=>e&&((0,r.isFunction)(e)||(0,r.isFunction)(e.transform)),`@UsePipes`,`pipe`),(0,n.extendArrayMetadata)(t.PIPES_METADATA,e,a),a)}})),ue=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.applyDecorators=t;function t(...e){return(t,n,r)=>{for(let i of e){if(t instanceof Function&&!r){i(t);continue}i(t,n,r)}}}})),de=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Version=n;var t=O();function n(e){return Array.isArray(e)&&(e=Array.from(new Set(e))),(n,r,i)=>(Reflect.defineMetadata(t.VERSION_METADATA,e,i.value),i)}})),fe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(D(),e),t.__exportStar(k(),e),t.__exportStar(ee(),e),t.__exportStar(te(),e),t.__exportStar(re(),e),t.__exportStar(ie(),e),t.__exportStar(ae(),e),t.__exportStar(oe(),e),t.__exportStar(N(),e),t.__exportStar(se(),e),t.__exportStar(ce(),e),t.__exportStar(le(),e),t.__exportStar(ue(),e),t.__exportStar(de(),e)})),pe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Global=n;var t=O();function n(){return e=>{Reflect.defineMetadata(t.GLOBAL_MODULE_METADATA,!0,e)}}})),me=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=r;var t=O();e.INVALID_MODULE_CONFIG_MESSAGE=(e,t)=>`Invalid property '${t}' passed into the @Module() decorator.`;var n=[t.MODULE_METADATA.IMPORTS,t.MODULE_METADATA.EXPORTS,t.MODULE_METADATA.CONTROLLERS,t.MODULE_METADATA.PROVIDERS];function r(t){t.forEach(t=>{if(!n.includes(t))throw Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${t}`)})}})),he=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Module=n;var t=me();function n(e){let n=Object.keys(e);return(0,t.validateModuleKeys)(n),t=>{for(let n in e)Object.hasOwnProperty.call(e,n)&&Reflect.defineMetadata(n,e[n],t)}}})),ge=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(pe(),e),t.__exportStar(he(),e)})),_e=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequestMethod=void 0;var t;(function(e){e[e.GET=0]=`GET`,e[e.POST=1]=`POST`,e[e.PUT=2]=`PUT`,e[e.DELETE=3]=`DELETE`,e[e.PATCH=4]=`PATCH`,e[e.ALL=5]=`ALL`,e[e.OPTIONS=6]=`OPTIONS`,e[e.HEAD=7]=`HEAD`,e[e.SEARCH=8]=`SEARCH`,e[e.PROPFIND=9]=`PROPFIND`,e[e.PROPPATCH=10]=`PROPPATCH`,e[e.MKCOL=11]=`MKCOL`,e[e.COPY=12]=`COPY`,e[e.MOVE=13]=`MOVE`,e[e.LOCK=14]=`LOCK`,e[e.UNLOCK=15]=`UNLOCK`})(t||(e.RequestMethod=t={}))})),ve=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Unlock=e.Lock=e.Move=e.Copy=e.Mkcol=e.Proppatch=e.Propfind=e.Search=e.All=e.Head=e.Options=e.Patch=e.Put=e.Delete=e.Get=e.Post=e.RequestMapping=void 0;var t=O(),n=_e(),r={[t.PATH_METADATA]:`/`,[t.METHOD_METADATA]:n.RequestMethod.GET};e.RequestMapping=(e=r)=>{let i=e[t.PATH_METADATA],a=i&&i.length?i:`/`,o=e[t.METHOD_METADATA]||n.RequestMethod.GET;return(e,n,r)=>(Reflect.defineMetadata(t.PATH_METADATA,a,r.value),Reflect.defineMetadata(t.METHOD_METADATA,o,r.value),r)};var i=n=>r=>(0,e.RequestMapping)({[t.PATH_METADATA]:r,[t.METHOD_METADATA]:n});e.Post=i(n.RequestMethod.POST),e.Get=i(n.RequestMethod.GET),e.Delete=i(n.RequestMethod.DELETE),e.Put=i(n.RequestMethod.PUT),e.Patch=i(n.RequestMethod.PATCH),e.Options=i(n.RequestMethod.OPTIONS),e.Head=i(n.RequestMethod.HEAD),e.All=i(n.RequestMethod.ALL),e.Search=i(n.RequestMethod.SEARCH),e.Propfind=i(n.RequestMethod.PROPFIND),e.Proppatch=i(n.RequestMethod.PROPPATCH),e.Mkcol=i(n.RequestMethod.MKCOL),e.Copy=i(n.RequestMethod.COPY),e.Move=i(n.RequestMethod.MOVE),e.Lock=i(n.RequestMethod.LOCK),e.Unlock=i(n.RequestMethod.UNLOCK)})),ye=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteParamtypes=void 0;var t;(function(e){e[e.REQUEST=0]=`REQUEST`,e[e.RESPONSE=1]=`RESPONSE`,e[e.NEXT=2]=`NEXT`,e[e.BODY=3]=`BODY`,e[e.QUERY=4]=`QUERY`,e[e.PARAM=5]=`PARAM`,e[e.HEADERS=6]=`HEADERS`,e[e.SESSION=7]=`SESSION`,e[e.FILE=8]=`FILE`,e[e.FILES=9]=`FILES`,e[e.HOST=10]=`HOST`,e[e.IP=11]=`IP`,e[e.RAW_BODY=12]=`RAW_BODY`,e[e.ACK=13]=`ACK`})(t||(e.RouteParamtypes=t={}))})),be=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Res=e.Req=e.Headers=e.Session=e.Ip=e.Next=e.Response=e.Request=void 0,e.assignMetadata=i,e.UploadedFile=s,e.UploadedFiles=c,e.Query=l,e.Body=u,e.RawBody=d,e.Param=f,e.HostParam=p;var t=O(),n=ye(),r=A();function i(e,t,n,r,...i){return{...e,[`${t}:${n}`]:{index:n,data:r,pipes:i}}}function a(e){return n=>(r,a,o)=>{let s=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,r.constructor,a)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(s,e,o,n),r.constructor,a)}}var o=e=>(n,...a)=>(o,s,c)=>{let l=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,o.constructor,s)||{},u=(0,r.isNil)(n)||(0,r.isString)(n),d=u?n:void 0,f=u?a:[n,...a];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,i(l,e,c,d,...f),o.constructor,s)};e.Request=a(n.RouteParamtypes.REQUEST),e.Response=e=>(r,i,o)=>(e?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,e?.passthrough,r.constructor,i),a(n.RouteParamtypes.RESPONSE)()(r,i,o)),e.Next=a(n.RouteParamtypes.NEXT),e.Ip=a(n.RouteParamtypes.IP),e.Session=a(n.RouteParamtypes.SESSION);function s(e,...t){return o(n.RouteParamtypes.FILE)(e,...t)}function c(...e){return o(n.RouteParamtypes.FILES)(void 0,...e)}e.Headers=a(n.RouteParamtypes.HEADERS);function l(e,...t){return o(n.RouteParamtypes.QUERY)(e,...t)}function u(e,...t){return o(n.RouteParamtypes.BODY)(e,...t)}function d(...e){return o(n.RouteParamtypes.RAW_BODY)(void 0,...e)}function f(e,...t){return o(n.RouteParamtypes.PARAM)(e,...t)}function p(e){return a(n.RouteParamtypes.HOST)(e)}e.Req=e.Request,e.Res=e.Response})),xe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpCode=n;var t=O();function n(e){return(n,r,i)=>(Reflect.defineMetadata(t.HTTP_CODE_METADATA,e,i.value),i)}})),Se=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignCustomParameterMetadata=n;var t=O();function n(e,n,r,i,a,...o){return{...e,[`${n}${t.CUSTOM_ROUTE_ARGS_METADATA}:${r}`]:{index:r,factory:i,data:a,pipes:o}}}})),Ce=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createParamDecorator=a;var t=M(),n=O(),r=Se(),i=A();function a(e,a=[]){let o=(0,t.uid)(21);return(t,...s)=>(c,l,u)=>{let d=Reflect.getMetadata(n.ROUTE_ARGS_METADATA,c.constructor,l)||{},f=(0,i.isNil)(t)||!(e=>e&&((0,i.isFunction)(e)&&e.prototype&&(0,i.isFunction)(e.prototype.transform)||(0,i.isFunction)(e.transform)))(t),p=f?t:void 0,m=f?s:[t,...s];Reflect.defineMetadata(n.ROUTE_ARGS_METADATA,(0,r.assignCustomParameterMetadata)(d,o,u,e,p,...m),c.constructor,l),a.forEach(e=>e(c,l,u))}}})),we=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Render=n;var t=O();function n(e){return(n,r,i)=>(Reflect.defineMetadata(t.RENDER_METADATA,e,i.value),i)}})),Te=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Header=r;var t=O(),n=ne();function r(e,r){return(i,a,o)=>((0,n.extendArrayMetadata)(t.HEADERS_METADATA,[{name:e,value:r}],o.value),o)}})),Ee=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Redirect=n;var t=O();function n(e=``,n){return(r,i,a)=>(Reflect.defineMetadata(t.REDIRECT_METADATA,{statusCode:n,url:e},a.value),a)}})),De=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Sse=r;var t=O(),n=_e();function r(e,r={[t.METHOD_METADATA]:n.RequestMethod.GET}){return(n,i,a)=>(e=e&&e.length?e:`/`,Reflect.defineMetadata(t.PATH_METADATA,e,a.value),Reflect.defineMetadata(t.METHOD_METADATA,r[t.METHOD_METADATA],a.value),Reflect.defineMetadata(t.SSE_METADATA,!0,a.value),a)}})),Oe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(ve(),e),t.__exportStar(be(),e),t.__exportStar(xe(),e),t.__exportStar(Ce(),e),t.__exportStar(we(),e),t.__exportStar(Te(),e),t.__exportStar(Ee(),e),t.__exportStar(De(),e)})),ke=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(fe(),e),t.__exportStar(ge(),e),t.__exportStar(Oe(),e)})),P=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpStatus=void 0;var t;(function(e){e[e.CONTINUE=100]=`CONTINUE`,e[e.SWITCHING_PROTOCOLS=101]=`SWITCHING_PROTOCOLS`,e[e.PROCESSING=102]=`PROCESSING`,e[e.EARLYHINTS=103]=`EARLYHINTS`,e[e.OK=200]=`OK`,e[e.CREATED=201]=`CREATED`,e[e.ACCEPTED=202]=`ACCEPTED`,e[e.NON_AUTHORITATIVE_INFORMATION=203]=`NON_AUTHORITATIVE_INFORMATION`,e[e.NO_CONTENT=204]=`NO_CONTENT`,e[e.RESET_CONTENT=205]=`RESET_CONTENT`,e[e.PARTIAL_CONTENT=206]=`PARTIAL_CONTENT`,e[e.MULTI_STATUS=207]=`MULTI_STATUS`,e[e.ALREADY_REPORTED=208]=`ALREADY_REPORTED`,e[e.CONTENT_DIFFERENT=210]=`CONTENT_DIFFERENT`,e[e.AMBIGUOUS=300]=`AMBIGUOUS`,e[e.MOVED_PERMANENTLY=301]=`MOVED_PERMANENTLY`,e[e.FOUND=302]=`FOUND`,e[e.SEE_OTHER=303]=`SEE_OTHER`,e[e.NOT_MODIFIED=304]=`NOT_MODIFIED`,e[e.TEMPORARY_REDIRECT=307]=`TEMPORARY_REDIRECT`,e[e.PERMANENT_REDIRECT=308]=`PERMANENT_REDIRECT`,e[e.BAD_REQUEST=400]=`BAD_REQUEST`,e[e.UNAUTHORIZED=401]=`UNAUTHORIZED`,e[e.PAYMENT_REQUIRED=402]=`PAYMENT_REQUIRED`,e[e.FORBIDDEN=403]=`FORBIDDEN`,e[e.NOT_FOUND=404]=`NOT_FOUND`,e[e.METHOD_NOT_ALLOWED=405]=`METHOD_NOT_ALLOWED`,e[e.NOT_ACCEPTABLE=406]=`NOT_ACCEPTABLE`,e[e.PROXY_AUTHENTICATION_REQUIRED=407]=`PROXY_AUTHENTICATION_REQUIRED`,e[e.REQUEST_TIMEOUT=408]=`REQUEST_TIMEOUT`,e[e.CONFLICT=409]=`CONFLICT`,e[e.GONE=410]=`GONE`,e[e.LENGTH_REQUIRED=411]=`LENGTH_REQUIRED`,e[e.PRECONDITION_FAILED=412]=`PRECONDITION_FAILED`,e[e.PAYLOAD_TOO_LARGE=413]=`PAYLOAD_TOO_LARGE`,e[e.URI_TOO_LONG=414]=`URI_TOO_LONG`,e[e.UNSUPPORTED_MEDIA_TYPE=415]=`UNSUPPORTED_MEDIA_TYPE`,e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]=`REQUESTED_RANGE_NOT_SATISFIABLE`,e[e.EXPECTATION_FAILED=417]=`EXPECTATION_FAILED`,e[e.I_AM_A_TEAPOT=418]=`I_AM_A_TEAPOT`,e[e.MISDIRECTED=421]=`MISDIRECTED`,e[e.UNPROCESSABLE_ENTITY=422]=`UNPROCESSABLE_ENTITY`,e[e.LOCKED=423]=`LOCKED`,e[e.FAILED_DEPENDENCY=424]=`FAILED_DEPENDENCY`,e[e.PRECONDITION_REQUIRED=428]=`PRECONDITION_REQUIRED`,e[e.TOO_MANY_REQUESTS=429]=`TOO_MANY_REQUESTS`,e[e.UNRECOVERABLE_ERROR=456]=`UNRECOVERABLE_ERROR`,e[e.INTERNAL_SERVER_ERROR=500]=`INTERNAL_SERVER_ERROR`,e[e.NOT_IMPLEMENTED=501]=`NOT_IMPLEMENTED`,e[e.BAD_GATEWAY=502]=`BAD_GATEWAY`,e[e.SERVICE_UNAVAILABLE=503]=`SERVICE_UNAVAILABLE`,e[e.GATEWAY_TIMEOUT=504]=`GATEWAY_TIMEOUT`,e[e.HTTP_VERSION_NOT_SUPPORTED=505]=`HTTP_VERSION_NOT_SUPPORTED`,e[e.INSUFFICIENT_STORAGE=507]=`INSUFFICIENT_STORAGE`,e[e.LOOP_DETECTED=508]=`LOOP_DETECTED`})(t||(e.HttpStatus=t={}))})),Ae=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ShutdownSignal=void 0;var t;(function(e){e.SIGHUP=`SIGHUP`,e.SIGINT=`SIGINT`,e.SIGQUIT=`SIGQUIT`,e.SIGILL=`SIGILL`,e.SIGTRAP=`SIGTRAP`,e.SIGABRT=`SIGABRT`,e.SIGBUS=`SIGBUS`,e.SIGFPE=`SIGFPE`,e.SIGSEGV=`SIGSEGV`,e.SIGUSR2=`SIGUSR2`,e.SIGTERM=`SIGTERM`})(t||(e.ShutdownSignal=t={}))})),je=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VersioningType=void 0;var t;(function(e){e[e.URI=0]=`URI`,e[e.HEADER=1]=`HEADER`,e[e.MEDIA_TYPE=2]=`MEDIA_TYPE`,e[e.CUSTOM=3]=`CUSTOM`})(t||(e.VersioningType=t={}))})),Me=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(_e(),e),t.__exportStar(P(),e),t.__exportStar(Ae(),e),t.__exportStar(je(),e)})),Ne=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.IntrinsicException=void 0,e.IntrinsicException=class extends Error{}})),F=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpException=void 0;var t=A(),n=Ne();e.HttpException=class extends n.IntrinsicException{constructor(e,t,n){super(),this.response=e,this.status=t,this.options=n,this.initMessage(),this.initName(),this.initCause()}initCause(){if(this.options?.cause){this.cause=this.options.cause;return}}initMessage(){(0,t.isString)(this.response)?this.message=this.response:(0,t.isObject)(this.response)&&(0,t.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(` `)??`Error`)}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(e,n,r){return e?(0,t.isString)(e)||Array.isArray(e)||(0,t.isNumber)(e)?{message:e,error:n,statusCode:r}:e:{message:n,statusCode:r}}static getDescriptionFrom(e){return(0,t.isString)(e)?e:e?.description}static getHttpExceptionOptionsFrom(e){return(0,t.isString)(e)?{}:e}static extractDescriptionAndOptionsFrom(e){return{description:(0,t.isString)(e)?e:e?.description,httpExceptionOptions:(0,t.isString)(e)?{}:e}}}})),Pe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BadGatewayException=void 0;var t=P(),n=F();e.BadGatewayException=class extends n.HttpException{constructor(e,r=`Bad Gateway`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.BAD_GATEWAY),t.HttpStatus.BAD_GATEWAY,a)}}})),Fe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BadRequestException=void 0;var t=P(),n=F();e.BadRequestException=class extends n.HttpException{constructor(e,r=`Bad Request`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.BAD_REQUEST),t.HttpStatus.BAD_REQUEST,a)}}})),Ie=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConflictException=void 0;var t=P(),n=F();e.ConflictException=class extends n.HttpException{constructor(e,r=`Conflict`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.CONFLICT),t.HttpStatus.CONFLICT,a)}}})),Le=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ForbiddenException=void 0;var t=P(),n=F();e.ForbiddenException=class extends n.HttpException{constructor(e,r=`Forbidden`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.FORBIDDEN),t.HttpStatus.FORBIDDEN,a)}}})),Re=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GatewayTimeoutException=void 0;var t=P(),n=F();e.GatewayTimeoutException=class extends n.HttpException{constructor(e,r=`Gateway Timeout`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.GATEWAY_TIMEOUT),t.HttpStatus.GATEWAY_TIMEOUT,a)}}})),ze=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GoneException=void 0;var t=P(),n=F();e.GoneException=class extends n.HttpException{constructor(e,r=`Gone`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.GONE),t.HttpStatus.GONE,a)}}})),Be=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpVersionNotSupportedException=void 0;var t=P(),n=F();e.HttpVersionNotSupportedException=class extends n.HttpException{constructor(e,r=`HTTP Version Not Supported`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),t.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,a)}}})),Ve=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ImATeapotException=void 0;var t=P(),n=F();e.ImATeapotException=class extends n.HttpException{constructor(e,r=`I'm a teapot`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.I_AM_A_TEAPOT),t.HttpStatus.I_AM_A_TEAPOT,a)}}})),He=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalServerErrorException=void 0;var t=P(),n=F();e.InternalServerErrorException=class extends n.HttpException{constructor(e,r=`Internal Server Error`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.INTERNAL_SERVER_ERROR),t.HttpStatus.INTERNAL_SERVER_ERROR,a)}}})),Ue=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MethodNotAllowedException=void 0;var t=P(),n=F();e.MethodNotAllowedException=class extends n.HttpException{constructor(e,r=`Method Not Allowed`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.METHOD_NOT_ALLOWED),t.HttpStatus.METHOD_NOT_ALLOWED,a)}}})),We=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MisdirectedException=void 0;var t=P(),n=F();e.MisdirectedException=class extends n.HttpException{constructor(e,r=`Misdirected`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.MISDIRECTED),t.HttpStatus.MISDIRECTED,a)}}})),Ge=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotAcceptableException=void 0;var t=P(),n=F();e.NotAcceptableException=class extends n.HttpException{constructor(e,r=`Not Acceptable`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_ACCEPTABLE),t.HttpStatus.NOT_ACCEPTABLE,a)}}})),Ke=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotFoundException=void 0;var t=P(),n=F();e.NotFoundException=class extends n.HttpException{constructor(e,r=`Not Found`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_FOUND),t.HttpStatus.NOT_FOUND,a)}}})),qe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotImplementedException=void 0;var t=P(),n=F();e.NotImplementedException=class extends n.HttpException{constructor(e,r=`Not Implemented`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.NOT_IMPLEMENTED),t.HttpStatus.NOT_IMPLEMENTED,a)}}})),Je=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PayloadTooLargeException=void 0;var t=P(),n=F();e.PayloadTooLargeException=class extends n.HttpException{constructor(e,r=`Payload Too Large`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.PAYLOAD_TOO_LARGE),t.HttpStatus.PAYLOAD_TOO_LARGE,a)}}})),Ye=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PreconditionFailedException=void 0;var t=P(),n=F();e.PreconditionFailedException=class extends n.HttpException{constructor(e,r=`Precondition Failed`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.PRECONDITION_FAILED),t.HttpStatus.PRECONDITION_FAILED,a)}}})),Xe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RequestTimeoutException=void 0;var t=P(),n=F();e.RequestTimeoutException=class extends n.HttpException{constructor(e,r=`Request Timeout`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.REQUEST_TIMEOUT),t.HttpStatus.REQUEST_TIMEOUT,a)}}})),Ze=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ServiceUnavailableException=void 0;var t=P(),n=F();e.ServiceUnavailableException=class extends n.HttpException{constructor(e,r=`Service Unavailable`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.SERVICE_UNAVAILABLE),t.HttpStatus.SERVICE_UNAVAILABLE,a)}}})),Qe=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnauthorizedException=void 0;var t=P(),n=F();e.UnauthorizedException=class extends n.HttpException{constructor(e,r=`Unauthorized`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNAUTHORIZED),t.HttpStatus.UNAUTHORIZED,a)}}})),$e=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnprocessableEntityException=void 0;var t=P(),n=F();e.UnprocessableEntityException=class extends n.HttpException{constructor(e,r=`Unprocessable Entity`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNPROCESSABLE_ENTITY),t.HttpStatus.UNPROCESSABLE_ENTITY,a)}}})),et=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsupportedMediaTypeException=void 0;var t=P(),n=F();e.UnsupportedMediaTypeException=class extends n.HttpException{constructor(e,r=`Unsupported Media Type`){let{description:i,httpExceptionOptions:a}=n.HttpException.extractDescriptionAndOptionsFrom(r);super(n.HttpException.createBody(e,i,t.HttpStatus.UNSUPPORTED_MEDIA_TYPE),t.HttpStatus.UNSUPPORTED_MEDIA_TYPE,a)}}})),tt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Pe(),e),t.__exportStar(Fe(),e),t.__exportStar(Ie(),e),t.__exportStar(Le(),e),t.__exportStar(Re(),e),t.__exportStar(ze(),e),t.__exportStar(Be(),e),t.__exportStar(F(),e),t.__exportStar(Ve(),e),t.__exportStar(He(),e),t.__exportStar(Ne(),e),t.__exportStar(Ue(),e),t.__exportStar(We(),e),t.__exportStar(Ge(),e),t.__exportStar(Ke(),e),t.__exportStar(qe(),e),t.__exportStar(Je(),e),t.__exportStar(Ye(),e),t.__exportStar(Xe(),e),t.__exportStar(Ze(),e),t.__exportStar(Qe(),e),t.__exportStar($e(),e),t.__exportStar(et(),e)})),nt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.yellow=e.clc=e.isColorAllowed=void 0,e.isColorAllowed=()=>!process.env.NO_COLOR;var t=t=>n=>(0,e.isColorAllowed)()?t(n):n;e.clc={bold:t(e=>`\x1B[1m${e}\x1B[0m`),green:t(e=>`\x1B[32m${e}\x1B[39m`),yellow:t(e=>`\x1B[33m${e}\x1B[39m`),red:t(e=>`\x1B[31m${e}\x1B[39m`),magentaBright:t(e=>`\x1B[95m${e}\x1B[39m`),cyanBright:t(e=>`\x1B[96m${e}\x1B[39m`)},e.yellow=t(e=>`\x1B[38;5;3m${e}\x1B[39m`)})),rt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLogLevelEnabled=n;var t={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};function n(e,n){if(!n||Array.isArray(n)&&n?.length===0)return!1;if(n.includes(e))return!0;let r=-1/0;for(let e of n){let n=t[e];n>r&&(r=n)}return t[e]>=r}})),it=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.ConsoleLogger=void 0;var n=E(),r=require(`util`),i=fe(),a=nt(),o=A(),s=rt(),c=5,l=[`log`,`error`,`warn`,`debug`,`verbose`,`fatal`],u=new Intl.DateTimeFormat(void 0,{year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`,day:`2-digit`,month:`2-digit`}),d=t=class{constructor(e,t){let[n,r]=(0,o.isString)(e)?[e,t]:t?[void 0,t]:[e?.context,e];r??={},r.logLevels??=l,r.colors??=r.colors??(r.json?!1:(0,a.isColorAllowed)()),r.prefix??=`Nest`,this.options=r,this.inspectOptions=this.getInspectOptions(),n&&(this.context=n,this.originalContext=n)}log(e,...t){if(!this.isLevelEnabled(`log`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`log`)}error(e,...t){if(!this.isLevelEnabled(`error`))return;let{messages:n,context:r,stack:i}=this.getContextAndStackAndMessagesToPrint([e,...t]);this.printMessages(n,r,`error`,`stderr`,i),this.printStackTrace(i)}warn(e,...t){if(!this.isLevelEnabled(`warn`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`warn`)}debug(e,...t){if(!this.isLevelEnabled(`debug`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`debug`)}verbose(e,...t){if(!this.isLevelEnabled(`verbose`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`verbose`)}fatal(e,...t){if(!this.isLevelEnabled(`fatal`))return;let{messages:n,context:r}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,r,`fatal`)}setLogLevels(e){this.options||={},this.options.logLevels=e}setContext(e){this.context=e}resetContext(){this.context=this.originalContext}isLevelEnabled(e){let t=this.options?.logLevels;return(0,s.isLogLevelEnabled)(e,t)}getTimestamp(){return u.format(Date.now())}printMessages(e,t=``,n=`log`,r,i){e.forEach(e=>{if(this.options.json){this.printAsJson(e,{context:t,logLevel:n,writeStreamType:r,errorStack:i});return}let a=this.formatPid(process.pid),o=this.formatContext(t),s=this.updateAndGetTimestampDiff(),c=n.toUpperCase().padStart(7,` `),l=this.formatMessage(n,e,a,c,o,s);this.options.forceConsole?r===`stderr`?console.error(l.trim()):console.log(l.trim()):process[r??`stdout`].write(l)})}printAsJson(e,t){let n=this.getJsonLogObject(e,t),i=!this.options.colors&&this.inspectOptions.compact===!0?JSON.stringify(n,this.stringifyReplacer):(0,r.inspect)(n,this.inspectOptions);this.options.forceConsole?t.writeStreamType===`stderr`?console.error(i):console.log(i):process[t.writeStreamType??`stdout`].write(`${i}\n`)}getJsonLogObject(e,t){let n={level:t.logLevel,pid:process.pid,timestamp:Date.now(),message:e};return t.context&&(n.context=t.context),t.errorStack&&(n.stack=t.errorStack),n}formatPid(e){return`[${this.options.prefix}] ${e} - `}formatContext(e){return e?(e=`[${e}] `,this.options.colors?(0,a.yellow)(e):e):``}formatMessage(e,t,n,r,i,a){let o=this.stringifyMessage(t,e);return n=this.colorize(n,e),r=this.colorize(r,e),`${n}${this.getTimestamp()} ${r} ${i}${o}${a}\n`}stringifyMessage(e,t){if((0,o.isFunction)(e))return Function.prototype.toString.call(e).startsWith(`class `)?this.stringifyMessage(e.name,t):this.stringifyMessage(e(),t);if(typeof e==`string`)return this.colorize(e,t);let n=(0,r.inspect)(e,this.inspectOptions);return(0,o.isPlainObject)(e)?`Object(${Object.keys(e).length}) ${n}`:Array.isArray(e)?`Array(${e.length}) ${n}`:n}colorize(e,t){return!this.options.colors||this.options.json?e:this.getColorByLogLevel(t)(e)}printStackTrace(e){!e||this.options.json||(this.options.forceConsole?console.error(e):process.stderr.write(`${e}\n`))}updateAndGetTimestampDiff(){let e=t.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-t.lastTimestampAt):``;return t.lastTimestampAt=Date.now(),e}formatTimestampDiff(e){let t=` +${e}ms`;return this.options.colors?(0,a.yellow)(t):t}getInspectOptions(){let e=this.options.breakLength;e===void 0&&(e=this.options.colors?this.options.compact?1/0:void 0:this.options.compact===!1?void 0:1/0);let t={depth:this.options.depth??c,sorted:this.options.sorted,showHidden:this.options.showHidden,compact:this.options.compact??!!this.options.json,colors:this.options.colors,breakLength:e};return this.options.maxArrayLength!==void 0&&(t.maxArrayLength=this.options.maxArrayLength),this.options.maxStringLength!==void 0&&(t.maxStringLength=this.options.maxStringLength),t}stringifyReplacer(e,t){return typeof t==`bigint`||typeof t==`symbol`?t.toString():t instanceof Map||t instanceof Set||t instanceof Error?`${(0,r.inspect)(t,this.inspectOptions)}`:t}getContextAndMessagesToPrint(e){if(e?.length<=1)return{messages:e,context:this.context};let t=e[e.length-1];return(0,o.isString)(t)?{context:t,messages:e.slice(0,e.length-1)}:{messages:e,context:this.context}}getContextAndStackAndMessagesToPrint(e){if(e.length===2)return this.isStackFormat(e[1])?{messages:[e[0]],stack:e[1],context:this.context}:{...this.getContextAndMessagesToPrint(e)};let{messages:t,context:n}=this.getContextAndMessagesToPrint(e);if(t?.length<=1)return{messages:t,context:n};let r=t[t.length-1];return!(0,o.isString)(r)&&!(0,o.isUndefined)(r)?{messages:t,context:n}:{stack:r,messages:t.slice(0,t.length-1),context:n}}isStackFormat(e){return!(0,o.isString)(e)&&!(0,o.isUndefined)(e)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(e)}getColorByLogLevel(e){switch(e){case`debug`:return a.clc.magentaBright;case`warn`:return a.clc.yellow;case`error`:return a.clc.red;case`verbose`:return a.clc.cyanBright;case`fatal`:return a.clc.bold;default:return a.clc.green}}};e.ConsoleLogger=d,e.ConsoleLogger=d=t=n.__decorate([(0,i.Injectable)(),n.__param(0,(0,i.Optional)()),n.__param(1,(0,i.Optional)()),n.__metadata(`design:paramtypes`,[Object,Object])],d)})),at=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isLogLevel=n;var t=ct();function n(e){return t.LOG_LEVELS.includes(e)}})),ot=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.filterLogLevels=r;var t=ct(),n=at();function r(e=``){let r=e.replaceAll(` `,``).toLowerCase();if(r[0]===`>`){let e=r[1]===`=`,n=t.LOG_LEVELS.indexOf(r.substring(e?2:1));if(n===-1)throw Error(`parse error (unknown log level): ${r}`);return t.LOG_LEVELS.slice(e?n:n+1)}else if(r.includes(`,`))return r.split(`,`).filter(n.isLogLevel);return(0,n.isLogLevel)(r)?[r]:t.LOG_LEVELS}})),st=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(ot(),e),t.__exportStar(rt(),e),t.__exportStar(at(),e)})),ct=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.Logger=e.LOG_LEVELS=void 0;var n=E(),r=fe(),i=A(),a=it(),o=st();e.LOG_LEVELS=[`verbose`,`debug`,`log`,`warn`,`error`,`fatal`];var s=new a.ConsoleLogger,c=new Intl.DateTimeFormat(void 0,{year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`,day:`2-digit`,month:`2-digit`}),l=t=class{constructor(e,t={}){this.context=e,this.options=t}get localInstance(){return t.staticInstanceRef===s||t.staticInstanceRef instanceof t&&Object.getPrototypeOf(t.staticInstanceRef).constructor===t?this.registerLocalInstanceRef():t.staticInstanceRef}error(e,...t){t=this.context?(t.length?t:[void 0]).concat(this.context):t,this.localInstance?.error(e,...t)}log(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.log(e,...t)}warn(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.warn(e,...t)}debug(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.debug?.(e,...t)}verbose(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.verbose?.(e,...t)}fatal(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.fatal?.(e,...t)}static error(e,...t){this.staticInstanceRef?.error(e,...t)}static log(e,...t){this.staticInstanceRef?.log(e,...t)}static warn(e,...t){this.staticInstanceRef?.warn(e,...t)}static debug(e,...t){this.staticInstanceRef?.debug?.(e,...t)}static verbose(e,...t){this.staticInstanceRef?.verbose?.(e,...t)}static fatal(e,...t){this.staticInstanceRef?.fatal?.(e,...t)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(e=>e.methodRef(...e.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return c.format(Date.now())}static overrideLogger(e){if(Array.isArray(e))return t.logLevels=e,this.staticInstanceRef?.setLogLevels?.(e);if((0,i.isObject)(e)){if(e instanceof t&&e.constructor!==t){let e=`Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.`;throw this.staticInstanceRef?.error(e),Error(e)}this.staticInstanceRef=e}else this.staticInstanceRef=void 0}static isLevelEnabled(e){let n=t.logLevels;return(0,o.isLogLevelEnabled)(e,n)}registerLocalInstanceRef(){return this.localInstanceRef||=new a.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:t.logLevels}),this.localInstanceRef}};e.Logger=l,l.logBuffer=[],l.staticInstanceRef=s,l.WrapBuffer=(e,n,r)=>{let i=r.value;r.value=function(...e){if(t.isBufferAttached){t.logBuffer.push({methodRef:i.bind(this),arguments:e});return}return i.call(this,...e)}},n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`error`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`log`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`warn`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`debug`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`verbose`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l.prototype,`fatal`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`error`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`log`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`warn`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`debug`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`verbose`,null),n.__decorate([l.WrapBuffer,n.__metadata(`design:type`,Function),n.__metadata(`design:paramtypes`,[Object,Object]),n.__metadata(`design:returntype`,void 0)],l,`fatal`,null),e.Logger=l=t=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,r.Optional)()),n.__param(1,(0,r.Optional)()),n.__metadata(`design:paramtypes`,[String,Object])],l)})),lt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(it(),e),t.__exportStar(ct(),e),t.__exportStar(ot(),e)})),ut=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.StreamableFile=void 0;var t=require(`stream`),n=require(`util`),r=Me(),i=lt(),a=A();e.StreamableFile=class{constructor(e,o={}){this.options=o,this.logger=new i.Logger(`StreamableFile`),this.handleError=(e,t)=>{if(!t.destroyed){if(t.headersSent){t.end();return}t.statusCode=r.HttpStatus.BAD_REQUEST,t.send(e.message)}},this.logError=e=>{this.logger.error(e)},n.types.isUint8Array(e)?(this.stream=new t.Readable,this.stream.push(e),this.stream.push(null),this.options.length??=e.length):e.pipe&&(0,a.isFunction)(e.pipe)&&(this.stream=e)}getStream(){return this.stream}getHeaders(){let{type:e=`application/octet-stream`,disposition:t=void 0,length:n=void 0}=this.options;return{type:e,disposition:t,length:n}}get errorHandler(){return this.handleError}setErrorHandler(e){return this.handleError=e,this}get errorLogger(){return this.logError}setErrorLogger(e){return this.logError=e,this}}})),dt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(ut(),e)})),ft=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),pt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),mt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ht=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),gt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),_t=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),vt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),bt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),xt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),St=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ct=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),wt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Tt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Et=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Dt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ot=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),kt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),At=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),jt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Mt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Dt(),e),t.__exportStar(Ot(),e),t.__exportStar(kt(),e),t.__exportStar(At(),e),t.__exportStar(jt(),e)})),Nt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Pt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ft=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),It=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Lt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Rt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Nt(),e),t.__exportStar(Pt(),e),t.__exportStar(Ft(),e),t.__exportStar(It(),e),t.__exportStar(Lt(),e)})),zt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Bt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Vt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ht=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ut=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Wt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Gt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Vt(),e),t.__exportStar(Ht(),e),t.__exportStar(Ut(),e),t.__exportStar(Wt(),e)})),Kt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),qt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Jt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Yt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Xt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Zt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Qt=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),$t=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),en=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Kt(),e),t.__exportStar(qt(),e),t.__exportStar(Jt(),e),t.__exportStar(Yt(),e),t.__exportStar(Xt(),e),t.__exportStar(Zt(),e),t.__exportStar(Qt(),e),t.__exportStar($t(),e)})),tn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),nn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),rn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),an=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),on=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scope=void 0;var t;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.TRANSIENT=1]=`TRANSIENT`,e[e.REQUEST=2]=`REQUEST`})(t||(e.Scope=t={}))})),sn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),cn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ln=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION_NEUTRAL=void 0,e.VERSION_NEUTRAL=Symbol(`VERSION_NEUTRAL`)})),un=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),dn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(ft(),e),t.__exportStar(pt(),e),t.__exportStar(mt(),e),t.__exportStar(ht(),e),t.__exportStar(gt(),e),t.__exportStar(_t(),e),t.__exportStar(vt(),e),t.__exportStar(yt(),e),t.__exportStar(bt(),e),t.__exportStar(xt(),e),t.__exportStar(St(),e),t.__exportStar(Ct(),e),t.__exportStar(wt(),e),t.__exportStar(Tt(),e),t.__exportStar(Et(),e),t.__exportStar(Mt(),e),t.__exportStar(Rt(),e),t.__exportStar(zt(),e),t.__exportStar(Bt(),e),t.__exportStar(Gt(),e),t.__exportStar(en(),e),t.__exportStar(tn(),e),t.__exportStar(nn(),e),t.__exportStar(rn(),e),t.__exportStar(an(),e),t.__exportStar(on(),e),t.__exportStar(sn(),e),t.__exportStar(cn(),e),t.__exportStar(ln(),e),t.__exportStar(un(),e)})),fn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.randomStringGenerator=void 0;var t=M();e.randomStringGenerator=()=>(0,t.uid)(21)})),pn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ASYNC_OPTIONS_METADATA_KEYS=e.CONFIGURABLE_MODULE_ID=e.ASYNC_METHOD_SUFFIX=e.DEFAULT_FACTORY_CLASS_METHOD_KEY=e.DEFAULT_METHOD_KEY=void 0,e.DEFAULT_METHOD_KEY=`register`,e.DEFAULT_FACTORY_CLASS_METHOD_KEY=`create`,e.ASYNC_METHOD_SUFFIX=`Async`,e.CONFIGURABLE_MODULE_ID=`CONFIGURABLE_MODULE_ID`,e.ASYNC_OPTIONS_METADATA_KEYS=[`useFactory`,`useClass`,`useExisting`,`inject`,`imports`,`provideInjectionTokensFrom`]})),mn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.generateOptionsInjectionToken=n;var t=fn();function n(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,t.randomStringGenerator)()}]`}})),hn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getInjectionProviders=i;var t=A();function n(e){return!(0,t.isUndefined)(e.token)&&!(0,t.isUndefined)(e.optional)&&!e.prototype}var r=e=>n(e)?e.token:e;function i(e,t){let n=[],i=t.map(r);for(;i.length>0;){let t=(e??[]).filter(e=>!n.includes(e)&&(i.includes(e)||i.includes(e?.provide)));n.push(...t),i=t.filter(e=>e?.inject).flatMap(e=>e.inject).map(r)}return n}})),gn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(mn(),e),t.__exportStar(hn(),e)})),_n=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigurableModuleBuilder=void 0;var t=ct(),n=fn(),r=pn(),i=gn();e.ConfigurableModuleBuilder=class e{constructor(n={},r){this.options=n,this.logger=new t.Logger(e.name),r&&(this.staticMethodKey=r.staticMethodKey,this.factoryClassMethodKey=r.factoryClassMethodKey,this.transformModuleDefinition=r.transformModuleDefinition,this.extras=r.extras)}setExtras(t,n=e=>e){let r=new e(this.options,this);return r.extras=t,r.transformModuleDefinition=n,r}setClassMethodName(t){let n=new e(this.options,this);return n.staticMethodKey=t,n}setFactoryMethodName(t){let n=new e(this.options,this);return n.factoryClassMethodKey=t,n}build(){return this.staticMethodKey??=r.DEFAULT_METHOD_KEY,this.factoryClassMethodKey??=r.DEFAULT_FACTORY_CLASS_METHOD_KEY,this.options.optionsInjectionToken??=this.options.moduleName?this.constructInjectionTokenString():(0,i.generateOptionsInjectionToken)(),this.transformModuleDefinition??=e=>e,{ConfigurableModuleClass:this.createConfigurableModuleCls(),MODULE_OPTIONS_TOKEN:this.options.optionsInjectionToken,ASYNC_OPTIONS_TYPE:this.createTypeProxy(`ASYNC_OPTIONS_TYPE`),OPTIONS_TYPE:this.createTypeProxy(`OPTIONS_TYPE`)}}constructInjectionTokenString(){return`${this.options.moduleName.trim().split(/(?=[A-Z])/).join(`_`).toUpperCase()}_MODULE_OPTIONS`}createConfigurableModuleCls(){let e=this,t=this.staticMethodKey+r.ASYNC_METHOD_SUFFIX;class a{static[e.staticMethodKey](t){let i=[{provide:e.options.optionsInjectionToken,useValue:this.omitExtras(t,e.extras)}];return e.options.alwaysTransient&&i.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,n.randomStringGenerator)()}),e.transformModuleDefinition({module:this,providers:i},{...e.extras,...t})}static[t](t){let i=this.createAsyncProviders(t);return e.options.alwaysTransient&&i.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,n.randomStringGenerator)()}),e.transformModuleDefinition({module:this,imports:t.imports||[],providers:i},{...e.extras,...this.extractExtrasFromAsyncOptions(t,e.extras)})}static omitExtras(e,t){if(!t)return e;let n={},r=Object.keys(t);return Object.keys(e).filter(e=>!r.includes(e)).forEach(t=>{n[t]=e[t]}),n}static extractExtrasFromAsyncOptions(e,t){if(!t)return{};let n={};return Object.keys(e).filter(e=>!r.ASYNC_OPTIONS_METADATA_KEYS.includes(e)).forEach(t=>{n[t]=e[t]}),n}static createAsyncProviders(e){return e.useExisting||e.useFactory?e.inject&&e.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(e),...(0,i.getInjectionProviders)(e.provideInjectionTokensFrom,e.inject)]:[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(t){return t.useFactory?{provide:e.options.optionsInjectionToken,useFactory:t.useFactory,inject:t.inject||[]}:{provide:e.options.optionsInjectionToken,useFactory:async t=>await t[e.factoryClassMethodKey](),inject:[t.useExisting||t.useClass]}}}return a}createTypeProxy(e){return new Proxy({},{get:()=>{throw Error(`"${e}" is not supposed to be used as a value.`)}})}}})),vn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),yn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),bn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),xn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(vn(),e),t.__exportStar(yn(),e),t.__exportStar(bn(),e)})),Sn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(_n(),e),t.__exportStar(xn(),e)})),Cn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DefaultValuePipe=void 0;var t=E(),n=ae(),r=A(),i=class{constructor(e){this.defaultValue=e}transform(e,t){return(0,r.isNil)(e)||(0,r.isNumber)(e)&&isNaN(e)?this.defaultValue:e}};e.DefaultValuePipe=i,e.DefaultValuePipe=i=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[Object])],i)})),wn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileValidator=void 0,e.FileValidator=class{constructor(e){this.validationOptions=e}}})),Tn=s(((e,t)=>{t.exports={loadEsm:e=>import(e)}})),En=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileTypeValidator=void 0;var t=require(`url`),n=ct(),r=wn(),i=Tn(),a=new n.Logger(`FileTypeValidator`);e.FileTypeValidator=class extends r.FileValidator{buildErrorMessage(e){let{errorMessage:t,...n}=this.validationOptions;if(t)return typeof t==`function`?t({file:e,config:n}):t;if(e?.mimetype){let t=`Validation failed (current file type is ${e.mimetype}, expected type is ${this.validationOptions.fileType})`;return this.validationOptions.fallbackToMimetype?`${t} - magic number detection failed, used mimetype fallback`:t}return`Validation failed (expected type is ${this.validationOptions.fileType})`}async isValid(e){if(!this.validationOptions)return!0;let n=!!e&&`mimetype`in e;if(this.validationOptions.skipMagicNumbersValidation)return n&&!!e.mimetype.match(this.validationOptions.fileType);if(!n)return!1;if(!e.buffer)return this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1;try{let n;try{let e=require.resolve(`file-type`);n=(0,t.pathToFileURL)(e).href}catch{n=`file-type`}let{fileTypeFromBuffer:r}=await(0,i.loadEsm)(n),a=await r(e.buffer);return a?!!a.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1}catch(t){let n=t instanceof Error?t.message:String(t);return(n.includes(`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`)||n.includes(`Cannot find module`)||n.includes(`ERR_MODULE_NOT_FOUND`))&&a.warn(`Failed to load the "file-type" package for magic number validation. If you are using Jest, run it with NODE_OPTIONS="--experimental-vm-modules". Error: ${n}`),this.validationOptions.fallbackToMimetype?!!e.mimetype.match(this.validationOptions.fileType):!1}}}})),Dn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MaxFileSizeValidator=void 0;var t=wn();e.MaxFileSizeValidator=class extends t.FileValidator{buildErrorMessage(e){let{errorMessage:t,message:n,...r}=this.validationOptions;return t?typeof t==`function`?t({file:e,config:r}):t:n?typeof n==`function`?n(this.validationOptions.maxSize):n:e?.size?`Validation failed (current file size is ${e.size}, expected size is less than ${this.validationOptions.maxSize})`:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(e){return!this.validationOptions||!e?!0:`size`in e&&e.size<this.validationOptions.maxSize}}})),On=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),kn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpErrorByCode=void 0;var t=Me(),n=tt();e.HttpErrorByCode={[t.HttpStatus.BAD_GATEWAY]:n.BadGatewayException,[t.HttpStatus.BAD_REQUEST]:n.BadRequestException,[t.HttpStatus.CONFLICT]:n.ConflictException,[t.HttpStatus.FORBIDDEN]:n.ForbiddenException,[t.HttpStatus.GATEWAY_TIMEOUT]:n.GatewayTimeoutException,[t.HttpStatus.GONE]:n.GoneException,[t.HttpStatus.I_AM_A_TEAPOT]:n.ImATeapotException,[t.HttpStatus.INTERNAL_SERVER_ERROR]:n.InternalServerErrorException,[t.HttpStatus.METHOD_NOT_ALLOWED]:n.MethodNotAllowedException,[t.HttpStatus.NOT_ACCEPTABLE]:n.NotAcceptableException,[t.HttpStatus.NOT_FOUND]:n.NotFoundException,[t.HttpStatus.NOT_IMPLEMENTED]:n.NotImplementedException,[t.HttpStatus.PAYLOAD_TOO_LARGE]:n.PayloadTooLargeException,[t.HttpStatus.PRECONDITION_FAILED]:n.PreconditionFailedException,[t.HttpStatus.REQUEST_TIMEOUT]:n.RequestTimeoutException,[t.HttpStatus.SERVICE_UNAVAILABLE]:n.ServiceUnavailableException,[t.HttpStatus.UNAUTHORIZED]:n.UnauthorizedException,[t.HttpStatus.UNPROCESSABLE_ENTITY]:n.UnprocessableEntityException,[t.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:n.UnsupportedMediaTypeException}})),An=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFilePipe=void 0;var t=E(),n=fe(),r=Me(),i=kn(),a=A(),o=class{constructor(e={}){let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST,validators:a=[],fileIsRequired:o}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e)),this.validators=a,this.fileIsRequired=o??!0}async transform(e){let t=this.thereAreNoFilesIn(e);if(t&&this.fileIsRequired)throw this.exceptionFactory(`File is required`);return!t&&this.validators.length&&await this.validateFilesOrFile(e),e}async validateFilesOrFile(e){Array.isArray(e)?await Promise.all(e.map(e=>this.validate(e))):await this.validate(e)}thereAreNoFilesIn(e){let t=Array.isArray(e)&&(0,a.isEmpty)(e),n=(0,a.isObject)(e)&&(0,a.isEmpty)(Object.keys(e));return(0,a.isUndefined)(e)||t||n}async validate(e){for(let t of this.validators)await this.validateOrThrow(e,t);return e}async validateOrThrow(e,t){if(!await t.isValid(e)){let n=t.buildErrorMessage(e);throw this.exceptionFactory(n)}}getValidators(){return this.validators}};e.ParseFilePipe=o,e.ParseFilePipe=o=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object])],o)})),jn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFilePipeBuilder=void 0;var t=En(),n=Dn(),r=An();e.ParseFilePipeBuilder=class{constructor(){this.validators=[]}addMaxSizeValidator(e){return this.addValidator(new n.MaxFileSizeValidator(e))}addFileTypeValidator(e){return this.addValidator(new t.FileTypeValidator(e))}addValidator(e){return this.validators.push(e),this}build(e){let t=new r.ParseFilePipe({...e,validators:this.validators});return this.validators=[],t}}})),Mn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(En(),e),t.__exportStar(wn(),e),t.__exportStar(Dn(),e),t.__exportStar(On(),e),t.__exportStar(An(),e),t.__exportStar(jn(),e)})),Nn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConcatIterator=class{constructor(e){this.toConcat=e}next(){if(this.toConcat.length===0)return{done:!0};let e=this.toConcat[0].next();return e.done?(this.toConcat.shift(),this.next()):e}}})),Pn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FilterIterator=class{constructor(e,t){this.source=e,this.predicate=t}next(){let e;do e=this.source.next();while(!e.done&&!this.predicate(e.value));return e}}})),Fn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`object`&&!!e&&typeof e.next==`function`}e.isIterator=t;function n(e){return typeof e==`object`&&!!e&&typeof e[Symbol.iterator]==`function`}e.isIterable=n;function r(e){if(t(e))return e;if(n(e))return e[Symbol.iterator]();throw Error(`Passed collection is neither an Iterator nor an Iterable`)}e.toIterator=r})),In=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Fn();e.FlattenIterator=class{constructor(e){this.outer=e}next(){if(this.inner){let e=this.inner.next();if(!e.done)return e;this.inner=void 0}let{value:e,done:n}=this.outer.next();return t.isIterable(e)?(this.inner=e[Symbol.iterator](),this.next()):{value:e,done:n}}}})),Ln=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MapIterator=class{constructor(e,t){this.source=e,this.iteratee=t}next(){let{value:e,done:t}=this.source.next();return{value:!t&&this.iteratee(e),done:t}}}})),Rn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SliceIterator=class{constructor(e,t,n=1/0){this.source=e,this.start=t,this.end=n,this.i=0}next(){for(;this.i<this.start;){let e=this.source.next();if(e.done)return e;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}})),zn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ZipIterator=class{constructor(e,t){this.a=e,this.b=t}next(){let e=this.a.next();if(e.done)return{done:!0};let t=this.b.next();return t.done?{done:!0}:{value:[e.value,t.value],done:!1}}}})),Bn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Nn(),n=Pn(),r=In(),i=Ln(),a=Rn(),o=Fn(),s=zn(),c=class e{constructor(e){this.source=e}next(){return this.source.next()}[Symbol.iterator](){return this}map(t){return new e(new i.MapIterator(this.source,t))}filter(t){return new e(new n.FilterIterator(this.source,t))}concat(n){return new e(new t.ConcatIterator([this.source,o.toIterator(n)]))}take(t){return new e(new a.SliceIterator(this.source,0,t+1))}drop(t){return new e(new a.SliceIterator(this.source,t,1/0))}slice(t,n=1/0){return new e(new a.SliceIterator(this.source,t,n))}flatten(){return new e(new r.FlattenIterator(this.source))}reduce(e,t){let n;if(t===void 0){if(n=this.source.next(),n.done)throw TypeError(`Reduce of empty Iterator with no initial value`);t=n.value}for(;n=this.source.next(),!n.done;)t=e(t,n.value);return t}find(e){let t;for(;;){if(t=this.source.next(),t.done)return;if(e(t.value))return t.value}}includes(e){let t;do if(t=this.source.next(),!t.done&&t.value===e)return!0;while(!t.done);return!1}some(e){let t;do if(t=this.source.next(),!t.done&&e(t.value))return!0;while(!t.done);return!1}every(e){let t;do if(t=this.source.next(),!t.done&&!e(t.value))return!1;while(!t.done);return!0}forEach(e){let t;for(;t=this.source.next(),!t.done;)e(t.value)}join(e=`,`){let t=``,n;for(;n=this.source.next(),!n.done;)t+=e+n.value;return t.substr(e.length)}toArray(){return Array.from(this)}toSet(){let e=new Set;for(;;){let{value:t,done:n}=this.next();if(n)return e;e.add(t)}}toMap(){return new Map(this)}};e.IteratorWithOperators=c;function l(e){return new c(o.toIterator(e))}e.iterate=l;function u(e,t){return new c(new s.ZipIterator(o.toIterator(e),o.toIterator(t)))}e.zip=u,e.default=l})),I=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Bn();e.iterate=t.iterate,e.zip=t.zip,e.default=t.iterate})),Vn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadPackage=i;var t=ct(),n=(e,t)=>`The "${e}" package is missing. Please, make sure to install it to take advantage of ${t}.`,r=new t.Logger(`PackageLoader`);function i(e,i,a){try{return a?a():require(e)}catch{r.error(n(e,i)),t.Logger.flush(),process.exit(1)}}})),Hn=o((()=>{throw Error(`Could not resolve "class-validator" imported by "@nestjs/common". Is it installed?`)})),Un=o((()=>{throw Error(`Could not resolve "class-transformer" imported by "@nestjs/common". Is it installed?`)})),Wn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValidationPipe=void 0;var t=E(),n=I(),r=require(`util`),i=ke(),a=fe(),o=P(),s=kn(),c=Vn(),l=A(),u={},d={},f=[Date,RegExp,Error,Map,Set,WeakMap,WeakSet],p=class{constructor(e){e||={};let{transform:t,disableErrorMessages:n,errorHttpStatusCode:r,expectedType:i,transformOptions:a,validateCustomDecorators:s,...c}=e;this.validatorOptions={forbidUnknownValues:!1,...c},this.isTransformEnabled=!!t,this.transformOptions=a,this.isDetailedOutputDisabled=n,this.validateCustomDecorators=s||!1,this.errorHttpStatusCode=r||o.HttpStatus.BAD_REQUEST,this.expectedType=i,this.exceptionFactory=e.exceptionFactory||this.createExceptionFactory(),u=this.loadValidator(e.validatorPackage),d=this.loadTransformer(e.transformerPackage)}loadValidator(e){return e??(0,c.loadPackage)(`class-validator`,`ValidationPipe`,()=>Hn())}loadTransformer(e){return e??(0,c.loadPackage)(`class-transformer`,`ValidationPipe`,()=>Un())}async transform(e,t){this.expectedType&&(t={...t,metatype:this.expectedType});let n=t.metatype;if(!n||!this.toValidate(t))return this.isTransformEnabled?this.transformPrimitive(e,t):e;let r=e;e=this.toEmptyIfNil(e,n);let i=e!==r,a=this.isPrimitive(e);this.stripProtoKeys(e);let o=d.plainToInstance(n,e,this.transformOptions),s=o,c=o.constructor!==n;c&&!a?o.constructor=n:c&&(o={constructor:n});let l=await this.validate(o,this.validatorOptions);if(l.length>0)throw await this.exceptionFactory(l);return r===void 0&&s===``?r:(a&&(o=s),this.isTransformEnabled?o:i?r:Object.keys(this.validatorOptions).length>1?d.classToPlain(o,this.transformOptions):e)}createExceptionFactory(){return(e=[])=>{if(this.isDetailedOutputDisabled)return new s.HttpErrorByCode[this.errorHttpStatusCode];let t=this.flattenValidationErrors(e);return new s.HttpErrorByCode[this.errorHttpStatusCode](t)}}toValidate(e){let{metatype:t,type:n}=e;return n===`custom`&&!this.validateCustomDecorators?!1:![String,Boolean,Number,Array,Object,Buffer,Date].some(e=>t===e)&&!(0,l.isNil)(t)}transformPrimitive(e,t){if(!t.data)return e;let{type:n,metatype:r}=t;return n!==`param`&&n!==`query`?e:r===Boolean?(0,l.isUndefined)(e)?void 0:e===!0||e===`true`:r===Number?(0,l.isUndefined)(e)?void 0:+e:r===String&&!(0,l.isUndefined)(e)?String(e):e}toEmptyIfNil(e,t){return(0,l.isNil)(e)?typeof t==`function`||t&&`prototype`in t&&t.prototype?.constructor?{}:``:e}stripProtoKeys(e){if(typeof e!=`object`||!e||r.types.isTypedArray(e)||f.some(t=>e instanceof t))return;if(Array.isArray(e)){for(let t of e)this.stripProtoKeys(t);return}delete e.__proto__,delete e.prototype;let t=e?.constructor;t&&!f.includes(t)&&delete e.constructor;for(let t in e)this.stripProtoKeys(e[t])}isPrimitive(e){return[`number`,`boolean`,`string`].includes(typeof e)}validate(e,t){return u.validate(e,t)}flattenValidationErrors(e){return(0,n.iterate)(e).map(e=>this.mapChildrenToValidationErrors(e)).flatten().filter(e=>!!e.constraints).map(e=>Object.values(e.constraints)).flatten().toArray()}mapChildrenToValidationErrors(e,t){if(!(e.children&&e.children.length))return[e];let n=[];t=t?`${t}.${e.property}`:e.property;for(let r of e.children)r.children&&r.children.length&&n.push(...this.mapChildrenToValidationErrors(r,t)),n.push(this.prependConstraintsWithParentProp(t,r));return n}prependConstraintsWithParentProp(e,t){let n={};for(let r in t.constraints)n[r]=`${e}.${t.constraints[r]}`;return{...t,constraints:n}}};e.ValidationPipe=p,e.ValidationPipe=p=t.__decorate([(0,a.Injectable)(),t.__param(0,(0,i.Optional)()),t.__metadata(`design:paramtypes`,[Object])],p)})),Gn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseArrayPipe=void 0;var t=E(),n=ae(),r=oe(),i=P(),a=kn(),o=A(),s=Wn(),c=`Validation failed (parsable array expected)`,l=`,`,u=class{constructor(e={}){this.options=e,this.validationPipe=new s.ValidationPipe({transform:!0,validateCustomDecorators:!0,...e});let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if(!e&&!this.options.optional)throw this.exceptionFactory(c);if((0,o.isNil)(e)&&this.options.optional)return e;if(!Array.isArray(e))if((0,o.isString)(e))try{e=e.trim().split(this.options.separator||l)}catch{throw this.exceptionFactory(c)}else throw this.exceptionFactory(c);if(this.options.items){let t={metatype:this.options.items,type:`query`},n=this.isExpectedTypePrimitive(),r=(e,r)=>{if(this.options.items!==String)try{e=JSON.parse(e)}catch{}return n?this.validatePrimitive(e,r):this.validationPipe.transform(e,t)};if(this.options.stopAtFirstError===!1){let t=[],n=e;for(let e=0;e<n.length;e++)try{n[e]=await r(n[e])}catch(n){let r;if(n.getResponse){let t=n.getResponse();r=Array.isArray(t.message)?t.message.map(t=>`[${e}] ${t}`):`[${e}] ${t.message}`}else r=n;t=t.concat(r)}if(t.length>0)throw this.exceptionFactory(t);return n}else e=await Promise.all(e.map(r))}return e}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(e,t){if(this.options.items===Number){let n=e!==null&&e!==``?+e:NaN;if(isNaN(n))throw this.exceptionFactory(`${(0,o.isUndefined)(t)?``:`[${t}] `}item must be a number`);return n}else if(this.options.items===String){if(!(0,o.isString)(e))return`${e}`}else if(this.options.items===Boolean&&typeof e!=`boolean`)throw this.exceptionFactory(`${(0,o.isUndefined)(t)?``:`[${t}] `}item must be a boolean value`);return e}};e.ParseArrayPipe=u,e.ParseArrayPipe=u=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],u)})),Kn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseBoolPipe=void 0;var t=E(),n=ae(),r=oe(),i=P(),a=kn(),o=A(),s=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(this.isTrue(e))return!0;if(this.isFalse(e))return!1;throw this.exceptionFactory(`Validation failed (boolean string is expected)`)}isTrue(e){return e===!0||e===`true`}isFalse(e){return e===!1||e===`false`}};e.ParseBoolPipe=s,e.ParseBoolPipe=s=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],s)})),qn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseDatePipe=void 0;var t=E(),n=ae(),r=P(),i=kn(),a=A(),o=class{constructor(e={}){this.options=e;let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e))}transform(e){if(this.options.optional&&(0,a.isNil)(e))return this.options.default?this.options.default():e;if(!e)throw this.exceptionFactory(`Validation failed (no Date provided)`);let t=new Date(e);if(isNaN(t.getTime()))throw this.exceptionFactory(`Validation failed (invalid date format)`);return t}};e.ParseDatePipe=o,e.ParseDatePipe=o=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[Object])],o)})),Jn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseEnumPipe=void 0;var t=E(),n=fe(),r=H(),i=kn(),a=A(),o=class{constructor(e,t){if(this.enumType=e,this.options=t,!e)throw Error(`"ParseEnumPipe" requires "enumType" argument specified (to validate input values).`);t||={};let{exceptionFactory:n,errorHttpStatusCode:a=r.HttpStatus.BAD_REQUEST}=t;this.exceptionFactory=n||(e=>new i.HttpErrorByCode[a](e))}async transform(e,t){if((0,a.isNil)(e)&&this.options?.optional)return e;if(!this.isEnum(e))throw this.exceptionFactory(`Validation failed (enum string is expected)`);return e}isEnum(e){return Object.keys(this.enumType).map(e=>this.enumType[e]).includes(e)}};e.ParseEnumPipe=o,e.ParseEnumPipe=o=t.__decorate([(0,n.Injectable)(),t.__param(1,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object,Object])],o)})),Yn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseFloatPipe=void 0;var t=E(),n=fe(),r=H(),i=kn(),a=A(),o=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=r.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new i.HttpErrorByCode[n](e))}async transform(e,t){if((0,a.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory(`Validation failed (numeric string is expected)`);return parseFloat(e)}isNumeric(e){return[`string`,`number`].includes(typeof e)&&!isNaN(parseFloat(e))&&isFinite(e)}};e.ParseFloatPipe=o,e.ParseFloatPipe=o=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,n.Optional)()),t.__metadata(`design:paramtypes`,[Object])],o)})),Xn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseIntPipe=void 0;var t=E(),n=ae(),r=oe(),i=P(),a=kn(),o=A(),s=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new a.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory(`Validation failed (numeric string is expected)`);return parseInt(e,10)}isNumeric(e){return[`string`,`number`].includes(typeof e)&&/^-?\d+$/.test(e)&&isFinite(e)}};e.ParseIntPipe=s,e.ParseIntPipe=s=t.__decorate([(0,n.Injectable)(),t.__param(0,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object])],s)})),Zn=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.ParseUUIDPipe=void 0;var n=E(),r=ae(),i=oe(),a=P(),o=kn(),s=A(),c=t=class{constructor(e){this.options=e,e||={};let{exceptionFactory:t,errorHttpStatusCode:n=a.HttpStatus.BAD_REQUEST,version:r}=e;this.version=r,this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,s.isNil)(e)&&this.options?.optional)return e;if(!this.isUUID(e,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:``} is expected)`);return e}isUUID(e,n=`all`){if(!(0,s.isString)(e))throw this.exceptionFactory(`The value passed as UUID is not a string`);return t.uuidRegExps[n]?.test(e)}};e.ParseUUIDPipe=c,c.uuidRegExps={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},e.ParseUUIDPipe=c=t=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,i.Optional)()),n.__metadata(`design:paramtypes`,[Object])],c)})),Qn=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Cn(),e),t.__exportStar(Mn(),e),t.__exportStar(Gn(),e),t.__exportStar(Kn(),e),t.__exportStar(qn(),e),t.__exportStar(Jn(),e),t.__exportStar(Yn(),e),t.__exportStar(Xn(),e),t.__exportStar(Zn(),e),t.__exportStar(Wn(),e)})),L=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isFunction=void 0;function t(e){return typeof e==`function`}e.isFunction=t})),R=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.operate=e.hasLift=void 0;var t=L();function n(e){return t.isFunction(e?.lift)}e.hasLift=n;function r(e){return function(t){if(n(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}e.operate=r})),$n=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArrayLike=void 0,e.isArrayLike=(function(e){return e&&typeof e.length==`number`&&typeof e!=`function`})})),er=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isPromise=void 0;var t=L();function n(e){return t.isFunction(e?.then)}e.isPromise=n})),tr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createErrorClass=void 0;function t(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.createErrorClass=t})),nr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsubscriptionError=void 0,e.UnsubscriptionError=tr().createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
4
4
|
`+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
|
|
5
|
-
`):``,this.name=`UnsubscriptionError`,this.errors=t}})})),ar=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.arrRemove=void 0;function t(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}e.arrRemove=t})),or=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.isSubscription=e.EMPTY_SUBSCRIPTION=e.Subscription=void 0;var i=R(),a=ir(),o=ar(),s=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,o,s,c,u;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var f=t(d),p=f.next();!p.done;p=f.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(e)throw e.error}}else d.remove(this);var m=this.initialTeardown;if(i.isFunction(m))try{m()}catch(e){u=e instanceof a.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=t(h),_=g.next();!_.done;_=g.next()){var v=_.value;try{l(v)}catch(e){u??=[],e instanceof a.UnsubscriptionError?u=r(r([],n(u)),n(e.errors)):u.push(e)}}}catch(e){s={error:e}}finally{try{_&&!_.done&&(c=g.return)&&c.call(g)}finally{if(s)throw s.error}}}if(u)throw new a.UnsubscriptionError(u)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&o.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&o.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}();e.Subscription=s,e.EMPTY_SUBSCRIPTION=s.EMPTY;function c(e){return e instanceof s||e&&`closed`in e&&i.isFunction(e.remove)&&i.isFunction(e.add)&&i.isFunction(e.unsubscribe)}e.isSubscription=c;function l(e){i.isFunction(e)?e():e.unsubscribe()}})),sr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}})),cr=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=e.timeoutProvider.delegate;return s?.setTimeout?s.setTimeout.apply(s,n([r,i],t(a))):setTimeout.apply(void 0,n([r,i],t(a)))},clearTimeout:function(t){return(e.timeoutProvider.delegate?.clearTimeout||clearTimeout)(t)},delegate:void 0}})),lr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reportUnhandledError=void 0;var t=sr(),n=cr();function r(e){n.timeoutProvider.setTimeout(function(){var n=t.config.onUnhandledError;if(n)n(e);else throw e})}e.reportUnhandledError=r})),ur=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.noop=void 0;function t(){}e.noop=t})),dr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createNotification=e.nextNotification=e.errorNotification=e.COMPLETE_NOTIFICATION=void 0,e.COMPLETE_NOTIFICATION=(function(){return r(`C`,void 0,void 0)})();function t(e){return r(`E`,void 0,e)}e.errorNotification=t;function n(e){return r(`N`,e,void 0)}e.nextNotification=n;function r(e,t,n){return{kind:e,value:t,error:n}}e.createNotification=r})),fr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.captureError=e.errorContext=void 0;var t=sr(),n=null;function r(e){if(t.config.useDeprecatedSynchronousErrorHandling){var r=!n;if(r&&(n={errorThrown:!1,error:null}),e(),r){var i=n,a=i.errorThrown,o=i.error;if(n=null,a)throw o}}else e()}e.errorContext=r;function i(e){t.config.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}e.captureError=i})),pr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var n=R(),r=or(),i=sr(),a=lr(),o=ur(),s=dr(),c=cr(),l=fr(),u=function(n){t(i,n);function i(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,r.isSubscription(t)&&t.add(i)):i.destination=e.EMPTY_OBSERVER,i}return i.create=function(e,t,n){return new m(e,t,n)},i.prototype.next=function(e){this.isStopped?_(s.nextNotification(e),this):this._next(e)},i.prototype.error=function(e){this.isStopped?_(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped?_(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(r.Subscription);e.Subscriber=u;var d=Function.prototype.bind;function f(e,t){return d.call(e,t)}var p=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),m=function(e){t(r,e);function r(t,r,a){var o=e.call(this)||this,s;if(n.isFunction(t)||!t)s={next:t??void 0,error:r??void 0,complete:a??void 0};else{var c;o&&i.config.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&f(t.next,c),error:t.error&&f(t.error,c),complete:t.complete&&f(t.complete,c)}):s=t}return o.destination=new p(s),o}return r}(u);e.SafeSubscriber=m;function h(e){i.config.useDeprecatedSynchronousErrorHandling?l.captureError(e):a.reportUnhandledError(e)}function g(e){throw e}function _(e,t){var n=i.config.onStoppedNotification;n&&c.timeoutProvider.setTimeout(function(){return n(e,t)})}e.EMPTY_OBSERVER={closed:!0,next:o.noop,error:g,complete:o.noop}})),mr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observable=void 0,e.observable=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})()})),hr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.identity=void 0;function t(e){return e}e.identity=t})),gr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pipeFromArray=e.pipe=void 0;var t=hr();function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}e.pipe=n;function r(e){return e.length===0?t.identity:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.pipeFromArray=r})),B=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=void 0;var t=pr(),n=or(),r=mr(),i=gr(),a=sr(),o=R(),s=fr();e.Observable=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,n,r){var i=this,a=u(e)?e:new t.SafeSubscriber(e,n,r);return s.errorContext(function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,n){var r=this;return n=c(n),new n(function(n,i){var a=new t.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),a.unsubscribe()}},error:i,complete:n});r.subscribe(a)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[r.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=c(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function c(e){return e??a.config.Promise??Promise}function l(e){return e&&o.isFunction(e.next)&&o.isFunction(e.error)&&o.isFunction(e.complete)}function u(e){return e&&e instanceof t.Subscriber||l(e)&&n.isSubscription(e)}})),_r=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isInteropObservable=void 0;var t=mr(),n=R();function r(e){return n.isFunction(e[t.observable])}e.isInteropObservable=r})),vr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isAsyncIterable=void 0;var t=R();function n(e){return Symbol.asyncIterator&&t.isFunction(e?.[Symbol.asyncIterator])}e.isAsyncIterable=n})),yr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createInvalidObservableTypeError=void 0;function t(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}e.createInvalidObservableTypeError=t})),br=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.iterator=e.getSymbolIterator=void 0;function t(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}e.getSymbolIterator=t,e.iterator=t()})),xr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isIterable=void 0;var t=br(),n=R();function r(e){return n.isFunction(e?.[t.iterator])}e.isIterable=r})),Sr=s((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},n=e&&e.__await||function(e){return this instanceof n?(this.v=e,this):new n(e)},r=e&&e.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,t||[]),a,o=[];return a={},s(`next`),s(`throw`),s(`return`),a[Symbol.asyncIterator]=function(){return this},a;function s(e){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||c(e,t)})})}function c(e,t){try{l(i[e](t))}catch(e){f(o[0][3],e)}}function l(e){e.value instanceof n?Promise.resolve(e.value.v).then(u,d):f(o[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(e,`__esModule`,{value:!0}),e.isReadableStreamLike=e.readableStreamLikeToAsyncGenerator=void 0;var i=R();function a(e){return r(this,arguments,function(){var r,i,a,o;return t(this,function(t){switch(t.label){case 0:r=e.getReader(),t.label=1;case 1:t.trys.push([1,,9,10]),t.label=2;case 2:return[4,n(r.read())];case 3:return i=t.sent(),a=i.value,o=i.done,o?[4,n(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,n(a)];case 6:return[4,t.sent()];case 7:return t.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}e.readableStreamLikeToAsyncGenerator=a;function o(e){return i.isFunction(e?.getReader)}e.isReadableStreamLike=o})),V=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},r=e&&e.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof i==`function`?i(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),a(r,i,n.done,n.value)})}}function a(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.fromReadableStreamLike=e.fromAsyncIterable=e.fromIterable=e.fromPromise=e.fromArrayLike=e.fromInteropObservable=e.innerFrom=void 0;var a=tr(),o=nr(),s=B(),c=_r(),l=vr(),u=yr(),d=xr(),f=Sr(),p=R(),m=lr(),h=mr();function g(e){if(e instanceof s.Observable)return e;if(e!=null){if(c.isInteropObservable(e))return _(e);if(a.isArrayLike(e))return v(e);if(o.isPromise(e))return y(e);if(l.isAsyncIterable(e))return x(e);if(d.isIterable(e))return b(e);if(f.isReadableStreamLike(e))return S(e)}throw u.createInvalidObservableTypeError(e)}e.innerFrom=g;function _(e){return new s.Observable(function(t){var n=e[h.observable]();if(p.isFunction(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}e.fromInteropObservable=_;function v(e){return new s.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}e.fromArrayLike=v;function y(e){return new s.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,m.reportUnhandledError)})}e.fromPromise=y;function b(e){return new s.Observable(function(t){var n,r;try{for(var a=i(e),o=a.next();!o.done;o=a.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()})}e.fromIterable=b;function x(e){return new s.Observable(function(t){C(e,t).catch(function(e){return t.error(e)})})}e.fromAsyncIterable=x;function S(e){return x(f.readableStreamLikeToAsyncGenerator(e))}e.fromReadableStreamLike=S;function C(e,i){var a,o,s,c;return t(this,void 0,void 0,function(){var t,l;return n(this,function(n){switch(n.label){case 0:n.trys.push([0,5,6,11]),a=r(e),n.label=1;case 1:return[4,a.next()];case 2:if(o=n.sent(),o.done)return[3,4];if(t=o.value,i.next(t),i.closed)return[2];n.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=n.sent(),s={error:l},[3,11];case 6:return n.trys.push([6,,9,10]),o&&!o.done&&(c=a.return)?[4,c.call(a)]:[3,8];case 7:n.sent(),n.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return i.complete(),[2]}})})}})),H=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.OperatorSubscriber=e.createOperatorSubscriber=void 0;var n=pr();function r(e,t,n,r,a){return new i(e,t,n,r,a)}e.createOperatorSubscriber=r;var i=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},n}(n.Subscriber);e.OperatorSubscriber=i})),Cr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.audit=void 0;var t=z(),n=V(),r=H();function i(e){return t.operate(function(t,i){var a=!1,o=null,s=null,c=!1,l=function(){if(s?.unsubscribe(),s=null,a){a=!1;var e=o;o=null,i.next(e)}c&&i.complete()},u=function(){s=null,c&&i.complete()};t.subscribe(r.createOperatorSubscriber(i,function(t){a=!0,o=t,s||n.innerFrom(e(t)).subscribe(s=r.createOperatorSubscriber(i,l,u))},function(){c=!0,(!a||!s||s.closed)&&i.complete()}))})}e.audit=i})),wr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Action=void 0,e.Action=function(e){t(n,e);function n(t,n){return e.call(this)||this}return n.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},n}(or().Subscription)})),Tr=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=e.intervalProvider.delegate;return s?.setInterval?s.setInterval.apply(s,n([r,i],t(a))):setInterval.apply(void 0,n([r,i],t(a)))},clearInterval:function(t){return(e.intervalProvider.delegate?.clearInterval||clearInterval)(t)},delegate:void 0}})),Er=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncAction=void 0;var n=wr(),r=Tr(),i=ar();e.AsyncAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this},n.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),r.intervalProvider.setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&r.intervalProvider.clearInterval(t)},n.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,a=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,i.arrRemove(a,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(n.Action)})),Dr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})),Or=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scheduler=void 0;var t=Dr();e.Scheduler=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=t.dateTimestampProvider.now,e}()})),kr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncScheduler=void 0;var n=Or();e.AsyncScheduler=function(e){t(r,e);function r(t,r){r===void 0&&(r=n.Scheduler.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return r.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},r}(n.Scheduler)})),Ar=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.async=e.asyncScheduler=void 0;var t=Er();e.asyncScheduler=new(kr()).AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})),jr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isScheduler=void 0;var t=R();function n(e){return e&&t.isFunction(e.schedule)}e.isScheduler=n})),Mr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isValidDate=void 0;function t(e){return e instanceof Date&&!isNaN(e)}e.isValidDate=t})),Nr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timer=void 0;var t=B(),n=Ar(),r=jr(),i=Mr();function a(e,a,o){e===void 0&&(e=0),o===void 0&&(o=n.async);var s=-1;return a!=null&&(r.isScheduler(a)?o=a:s=a),new t.Observable(function(t){var n=i.isValidDate(e)?+e-o.now():e;n<0&&(n=0);var r=0;return o.schedule(function(){t.closed||(t.next(r++),0<=s?this.schedule(void 0,s):t.complete())},n)})}e.timer=a})),Pr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.auditTime=void 0;var t=Ar(),n=Cr(),r=Nr();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.audit(function(){return r.timer(e,i)})}e.auditTime=i})),Fr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buffer=void 0;var t=z(),n=ur(),r=H(),i=V();function a(e){return t.operate(function(t,a){var o=[];return t.subscribe(r.createOperatorSubscriber(a,function(e){return o.push(e)},function(){a.next(o),a.complete()})),i.innerFrom(e).subscribe(r.createOperatorSubscriber(a,function(){var e=o;o=[],a.next(e)},n.noop)),function(){o=null}})}e.buffer=a})),Ir=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferCount=void 0;var n=z(),r=H(),i=ar();function a(e,a){return a===void 0&&(a=null),a??=e,n.operate(function(n,o){var s=[],c=0;n.subscribe(r.createOperatorSubscriber(o,function(n){var r,l,u,d,f=null;c++%a===0&&s.push([]);try{for(var p=t(s),m=p.next();!m.done;m=p.next()){var h=m.value;h.push(n),e<=h.length&&(f??=[],f.push(h))}}catch(e){r={error:e}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(r)throw r.error}}if(f)try{for(var g=t(f),_=g.next();!_.done;_=g.next()){var h=_.value;i.arrRemove(s,h),o.next(h)}}catch(e){u={error:e}}finally{try{_&&!_.done&&(d=g.return)&&d.call(g)}finally{if(u)throw u.error}}},function(){var e,n;try{for(var r=t(s),i=r.next();!i.done;i=r.next()){var a=i.value;o.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}o.complete()},void 0,function(){s=null}))})}e.bufferCount=a})),Lr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.popNumber=e.popScheduler=e.popResultSelector=void 0;var t=R(),n=jr();function r(e){return e[e.length-1]}function i(e){return t.isFunction(r(e))?e.pop():void 0}e.popResultSelector=i;function a(e){return n.isScheduler(r(e))?e.pop():void 0}e.popScheduler=a;function o(e,t){return typeof r(e)==`number`?e.pop():t}e.popNumber=o})),Rr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.executeSchedule=void 0;function t(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}e.executeSchedule=t})),zr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferTime=void 0;var n=or(),r=z(),i=H(),a=ar(),o=Ar(),s=Lr(),c=Rr();function l(e){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var d=s.popScheduler(l)??o.asyncScheduler,f=l[0]??null,p=l[1]||1/0;return r.operate(function(r,o){var s=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(s,e),o.next(t),l&&m()},m=function(){if(s){var t=new n.Subscription;o.add(t);var r={buffer:[],subs:t};s.push(r),c.executeSchedule(t,d,function(){return u(r)},e)}};f!==null&&f>=0?c.executeSchedule(o,d,m,f,!0):l=!0,m();var h=i.createOperatorSubscriber(o,function(e){var n,r,i=s.slice();try{for(var a=t(i),o=a.next();!o.done;o=a.next()){var c=o.value,l=c.buffer;l.push(e),p<=l.length&&u(c)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},function(){for(;s?.length;)o.next(s.shift().buffer);h?.unsubscribe(),o.complete(),o.unsubscribe()},void 0,function(){return s=null});r.subscribe(h)})}e.bufferTime=l})),Br=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferToggle=void 0;var n=or(),r=z(),i=V(),a=H(),o=ur(),s=ar();function c(e,c){return r.operate(function(r,l){var u=[];i.innerFrom(e).subscribe(a.createOperatorSubscriber(l,function(e){var t=[];u.push(t);var r=new n.Subscription;r.add(i.innerFrom(c(e)).subscribe(a.createOperatorSubscriber(l,function(){s.arrRemove(u,t),l.next(t),r.unsubscribe()},o.noop)))},o.noop)),r.subscribe(a.createOperatorSubscriber(l,function(e){var n,r;try{for(var i=t(u),a=i.next();!a.done;a=i.next())a.value.push(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},function(){for(;u.length>0;)l.next(u.shift());l.complete()}))})}e.bufferToggle=c})),Vr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferWhen=void 0;var t=z(),n=ur(),r=H(),i=V();function a(e){return t.operate(function(t,a){var o=null,s=null,c=function(){s?.unsubscribe();var t=o;o=[],t&&a.next(t),i.innerFrom(e()).subscribe(s=r.createOperatorSubscriber(a,c,n.noop))};c(),t.subscribe(r.createOperatorSubscriber(a,function(e){return o?.push(e)},function(){o&&a.next(o),a.complete()},void 0,function(){return o=s=null}))})}e.bufferWhen=a})),Hr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.catchError=void 0;var t=V(),n=H(),r=z();function i(e){return r.operate(function(r,a){var o=null,s=!1,c;o=r.subscribe(n.createOperatorSubscriber(a,void 0,void 0,function(n){c=t.innerFrom(e(n,i(e)(r))),o?(o.unsubscribe(),o=null,c.subscribe(a)):s=!0})),s&&(o.unsubscribe(),o=null,c.subscribe(a))})}e.catchError=i})),Ur=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.argsArgArrayOrObject=void 0;var t=Array.isArray,n=Object.getPrototypeOf,r=Object.prototype,i=Object.keys;function a(e){if(e.length===1){var n=e[0];if(t(n))return{args:n,keys:null};if(o(n)){var r=i(n);return{args:r.map(function(e){return n[e]}),keys:r}}}return{args:e,keys:null}}e.argsArgArrayOrObject=a;function o(e){return e&&typeof e==`object`&&n(e)===r}})),Wr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observeOn=void 0;var t=Rr(),n=z(),r=H();function i(e,i){return i===void 0&&(i=0),n.operate(function(n,a){n.subscribe(r.createOperatorSubscriber(a,function(n){return t.executeSchedule(a,e,function(){return a.next(n)},i)},function(){return t.executeSchedule(a,e,function(){return a.complete()},i)},function(n){return t.executeSchedule(a,e,function(){return a.error(n)},i)}))})}e.observeOn=i})),Gr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.subscribeOn=void 0;var t=z();function n(e,n){return n===void 0&&(n=0),t.operate(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}e.subscribeOn=n})),Kr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleObservable=void 0;var t=V(),n=Wr(),r=Gr();function i(e,i){return t.innerFrom(e).pipe(r.subscribeOn(i),n.observeOn(i))}e.scheduleObservable=i})),qr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.schedulePromise=void 0;var t=V(),n=Wr(),r=Gr();function i(e,i){return t.innerFrom(e).pipe(r.subscribeOn(i),n.observeOn(i))}e.schedulePromise=i})),Jr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleArray=void 0;var t=B();function n(e,n){return new t.Observable(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}e.scheduleArray=n})),Yr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleIterable=void 0;var t=B(),n=br(),r=R(),i=Rr();function a(e,a){return new t.Observable(function(t){var o;return i.executeSchedule(t,a,function(){o=e[n.iterator](),i.executeSchedule(t,a,function(){var e,n,r;try{e=o.next(),n=e.value,r=e.done}catch(e){t.error(e);return}r?t.complete():t.next(n)},0,!0)}),function(){return r.isFunction(o?.return)&&o.return()}})}e.scheduleIterable=a})),Xr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleAsyncIterable=void 0;var t=B(),n=Rr();function r(e,r){if(!e)throw Error(`Iterable cannot be null`);return new t.Observable(function(t){n.executeSchedule(t,r,function(){var i=e[Symbol.asyncIterator]();n.executeSchedule(t,r,function(){i.next().then(function(e){e.done?t.complete():t.next(e.value)})},0,!0)})})}e.scheduleAsyncIterable=r})),Zr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleReadableStreamLike=void 0;var t=Xr(),n=Sr();function r(e,r){return t.scheduleAsyncIterable(n.readableStreamLikeToAsyncGenerator(e),r)}e.scheduleReadableStreamLike=r})),Qr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduled=void 0;var t=Kr(),n=qr(),r=Jr(),i=Yr(),a=Xr(),o=_r(),s=nr(),c=tr(),l=xr(),u=vr(),d=yr(),f=Sr(),p=Zr();function m(e,m){if(e!=null){if(o.isInteropObservable(e))return t.scheduleObservable(e,m);if(c.isArrayLike(e))return r.scheduleArray(e,m);if(s.isPromise(e))return n.schedulePromise(e,m);if(u.isAsyncIterable(e))return a.scheduleAsyncIterable(e,m);if(l.isIterable(e))return i.scheduleIterable(e,m);if(f.isReadableStreamLike(e))return p.scheduleReadableStreamLike(e,m)}throw d.createInvalidObservableTypeError(e)}e.scheduled=m})),$r=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.from=void 0;var t=Qr(),n=V();function r(e,r){return r?t.scheduled(e,r):n.innerFrom(e)}e.from=r})),ei=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.map=void 0;var t=z(),n=H();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){i.next(e.call(r,t,a++))}))})}e.map=r})),ti=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.mapOneOrManyArgs=void 0;var r=ei(),i=Array.isArray;function a(e,r){return i(r)?e.apply(void 0,n([],t(r))):e(r)}function o(e){return r.map(function(t){return a(e,t)})}e.mapOneOrManyArgs=o})),ni=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createObject=void 0;function t(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}e.createObject=t})),ri=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var t=B(),n=Ur(),r=$r(),i=hr(),a=ti(),o=Lr(),s=ni(),c=H(),l=Rr();function u(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=o.popScheduler(e),u=o.popResultSelector(e),f=n.argsArgArrayOrObject(e),p=f.args,m=f.keys;if(p.length===0)return r.from([],l);var h=new t.Observable(d(p,l,m?function(e){return s.createObject(m,e)}:i.identity));return u?h.pipe(a.mapOneOrManyArgs(u)):h}e.combineLatest=u;function d(e,t,n){return n===void 0&&(n=i.identity),function(i){f(t,function(){for(var a=e.length,o=Array(a),s=a,l=a,u=function(a){f(t,function(){var u=r.from(e[a],t),d=!1;u.subscribe(c.createOperatorSubscriber(i,function(e){o[a]=e,d||(d=!0,l--),l||i.next(n(o.slice()))},function(){--s||i.complete()}))},i)},d=0;d<a;d++)u(d)},i)}}e.combineLatestInit=d;function f(e,t,n){e?l.executeSchedule(n,e,t):t()}})),ii=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeInternals=void 0;var t=V(),n=Rr(),r=H();function i(e,i,a,o,s,c,l,u){var d=[],f=0,p=0,m=!1,h=function(){m&&!d.length&&!f&&i.complete()},g=function(e){return f<o?_(e):d.push(e)},_=function(e){c&&i.next(e),f++;var u=!1;t.innerFrom(a(e,p++)).subscribe(r.createOperatorSubscriber(i,function(e){s?.(e),c?g(e):i.next(e)},function(){u=!0},void 0,function(){if(u)try{f--;for(var e=function(){var e=d.shift();l?n.executeSchedule(i,l,function(){return _(e)}):_(e)};d.length&&f<o;)e();h()}catch(e){i.error(e)}}))};return e.subscribe(r.createOperatorSubscriber(i,g,function(){m=!0,h()})),function(){u?.()}}e.mergeInternals=i})),ai=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeMap=void 0;var t=ei(),n=V(),r=z(),i=ii(),a=R();function o(e,s,c){return c===void 0&&(c=1/0),a.isFunction(s)?o(function(r,i){return t.map(function(e,t){return s(r,e,i,t)})(n.innerFrom(e(r,i)))},c):(typeof s==`number`&&(c=s),r.operate(function(t,n){return i.mergeInternals(t,n,e,c)}))}e.mergeMap=o})),oi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scanInternals=void 0;var t=H();function n(e,n,r,i,a){return function(o,s){var c=r,l=n,u=0;o.subscribe(t.createOperatorSubscriber(s,function(t){var n=u++;l=c?e(l,t,n):(c=!0,t),i&&s.next(l)},a&&(function(){c&&s.next(l),s.complete()})))}}e.scanInternals=n})),si=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reduce=void 0;var t=oi(),n=z();function r(e,r){return n.operate(t.scanInternals(e,r,arguments.length>=2,!1,!0))}e.reduce=r})),ci=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.toArray=void 0;var t=si(),n=z(),r=function(e,t){return e.push(t),e};function i(){return n.operate(function(e,n){t.reduce(r,[])(e).subscribe(n)})}e.toArray=i})),li=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.joinAllInternals=void 0;var t=hr(),n=ti(),r=gr(),i=ai(),a=ci();function o(e,o){return r.pipe(a.toArray(),i.mergeMap(function(t){return e(t)}),o?n.mapOneOrManyArgs(o):t.identity)}e.joinAllInternals=o})),ui=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestAll=void 0;var t=ri(),n=li();function r(e){return n.joinAllInternals(t.combineLatest,e)}e.combineLatestAll=r})),di=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineAll=void 0,e.combineAll=ui().combineLatestAll})),fi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;function n(e){return e.length===1&&t(e[0])?e[0]:e}e.argsOrArgArray=n})),pi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatest=void 0;var r=ri(),i=z(),a=fi(),o=ti(),s=gr(),c=Lr();function l(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];var d=c.popResultSelector(e);return d?s.pipe(l.apply(void 0,n([],t(e))),o.mapOneOrManyArgs(d)):i.operate(function(i,o){r.combineLatestInit(n([i],t(a.argsOrArgArray(e))))(o)})}e.combineLatest=l})),mi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestWith=void 0;var r=pi();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.combineLatest.apply(void 0,n([],t(e)))}e.combineLatestWith=i})),hi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeAll=void 0;var t=ai(),n=hr();function r(e){return e===void 0&&(e=1/0),t.mergeMap(n.identity,e)}e.mergeAll=r})),gi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatAll=void 0;var t=hi();function n(){return t.mergeAll(1)}e.concatAll=n})),_i=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=void 0;var r=z(),i=gi(),a=Lr(),o=$r();function s(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var c=a.popScheduler(e);return r.operate(function(r,a){i.concatAll()(o.from(n([r],t(e)),c)).subscribe(a)})}e.concat=s})),vi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatMap=void 0;var t=ai(),n=R();function r(e,r){return n.isFunction(r)?t.mergeMap(e,r,1):t.mergeMap(e,1)}e.concatMap=r})),yi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatMapTo=void 0;var t=vi(),n=R();function r(e,r){return n.isFunction(r)?t.concatMap(function(){return e},r):t.concatMap(function(){return e})}e.concatMapTo=r})),bi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.concatWith=void 0;var r=_i();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.concat.apply(void 0,n([],t(e)))}e.concatWith=i})),xi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ObjectUnsubscribedError=void 0,e.ObjectUnsubscribedError=rr().createErrorClass(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}})})),Si=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.AnonymousSubject=e.Subject=void 0;var r=B(),i=or(),a=xi(),o=ar(),s=fr(),c=function(e){t(c,e);function c(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return c.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},c.prototype._throwIfClosed=function(){if(this.closed)throw new a.ObjectUnsubscribedError},c.prototype.next=function(e){var t=this;s.errorContext(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var a=n(t.currentObservers),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}})},c.prototype.error=function(e){var t=this;s.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},c.prototype.complete=function(){var e=this;s.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},c.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(c.prototype,`observed`,{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),c.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},c.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},c.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,s=n.observers;return r||a?i.EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(e),new i.Subscription(function(){t.currentObservers=null,o.arrRemove(s,e)}))},c.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},c.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},c.create=function(e,t){return new l(e,t)},c}(r.Observable);e.Subject=c;var l=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return n.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},n.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},n.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},n.prototype._subscribe=function(e){return this.source?.subscribe(e)??i.EMPTY_SUBSCRIPTION},n}(c);e.AnonymousSubject=l})),Ci=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fromSubscribable=void 0;var t=B();function n(e){return new t.Observable(function(t){return e.subscribe(t)})}e.fromSubscribable=n})),wi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.connect=void 0;var t=Si(),n=V(),r=z(),i=Ci(),a={connector:function(){return new t.Subject}};function o(e,t){t===void 0&&(t=a);var o=t.connector;return r.operate(function(t,r){var a=o();n.innerFrom(e(i.fromSubscribable(a))).subscribe(r),r.add(t.subscribe(a))})}e.connect=o})),Ti=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.count=void 0;var t=si();function n(e){return t.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}e.count=n})),Ei=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounce=void 0;var t=z(),n=ur(),r=H(),i=V();function a(e){return t.operate(function(t,a){var o=!1,s=null,c=null,l=function(){if(c?.unsubscribe(),c=null,o){o=!1;var e=s;s=null,a.next(e)}};t.subscribe(r.createOperatorSubscriber(a,function(t){c?.unsubscribe(),o=!0,s=t,c=r.createOperatorSubscriber(a,l,n.noop),i.innerFrom(e(t)).subscribe(c)},function(){l(),a.complete()},void 0,function(){s=c=null}))})}e.debounce=a})),Di=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounceTime=void 0;var t=Ar(),n=z(),r=H();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.operate(function(t,n){var a=null,o=null,s=null,c=function(){if(a){a.unsubscribe(),a=null;var e=o;o=null,n.next(e)}};function l(){var t=s+e,r=i.now();if(r<t){a=this.schedule(void 0,t-r),n.add(a);return}c()}t.subscribe(r.createOperatorSubscriber(n,function(t){o=t,s=i.now(),a||(a=i.schedule(l,e),n.add(a))},function(){c(),n.complete()},void 0,function(){o=a=null}))})}e.debounceTime=i})),Oi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultIfEmpty=void 0;var t=z(),n=H();function r(e){return t.operate(function(t,r){var i=!1;t.subscribe(n.createOperatorSubscriber(r,function(e){i=!0,r.next(e)},function(){i||r.next(e),r.complete()}))})}e.defaultIfEmpty=r})),ki=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=void 0;var t=gi(),n=Lr(),r=$r();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.concatAll()(r.from(e,n.popScheduler(e)))}e.concat=i})),Ai=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.empty=e.EMPTY=void 0;var t=B();e.EMPTY=new t.Observable(function(e){return e.complete()});function n(t){return t?r(t):e.EMPTY}e.empty=n;function r(e){return new t.Observable(function(t){return e.schedule(function(){return t.complete()})})}})),ji=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.take=void 0;var t=Ai(),n=z(),r=H();function i(e){return e<=0?function(){return t.EMPTY}:n.operate(function(t,n){var i=0;t.subscribe(r.createOperatorSubscriber(n,function(t){++i<=e&&(n.next(t),e<=i&&n.complete())}))})}e.take=i})),Mi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ignoreElements=void 0;var t=z(),n=H(),r=ur();function i(){return t.operate(function(e,t){e.subscribe(n.createOperatorSubscriber(t,r.noop))})}e.ignoreElements=i})),Ni=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapTo=void 0;var t=ei();function n(e){return t.map(function(){return e})}e.mapTo=n})),Pi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.delayWhen=void 0;var t=ki(),n=ji(),r=Mi(),i=Ni(),a=ai(),o=V();function s(e,c){return c?function(i){return t.concat(c.pipe(n.take(1),r.ignoreElements()),i.pipe(s(e)))}:a.mergeMap(function(t,r){return o.innerFrom(e(t,r)).pipe(n.take(1),i.mapTo(t))})}e.delayWhen=s})),Fi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.delay=void 0;var t=Ar(),n=Pi(),r=Nr();function i(e,i){i===void 0&&(i=t.asyncScheduler);var a=r.timer(e,i);return n.delayWhen(function(){return a})}e.delay=i})),Ii=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.of=void 0;var t=Lr(),n=$r();function r(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.popScheduler(e);return n.from(e,i)}e.of=r})),Li=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throwError=void 0;var t=B(),n=R();function r(e,r){var i=n.isFunction(e)?e:function(){return e},a=function(e){return e.error(i())};return new t.Observable(r?function(e){return r.schedule(a,0,e)}:a)}e.throwError=r})),Ri=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=Ai(),n=Ii(),r=Li(),i=R();(function(e){e.NEXT=`N`,e.ERROR=`E`,e.COMPLETE=`C`})(e.NotificationKind||={}),e.Notification=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e===`N`}return e.prototype.observe=function(e){return a(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,a=r.value,o=r.error;return i===`N`?e?.(a):i===`E`?t?.(o):n?.()},e.prototype.accept=function(e,t,n){return i.isFunction(e?.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,i=e.kind,a=e.value,o=e.error,s=i===`N`?n.of(a):i===`E`?r.throwError(function(){return o}):i===`C`?t.EMPTY:0;if(!s)throw TypeError(`Unexpected notification kind `+i);return s},e.createNext=function(t){return new e(`N`,t)},e.createError=function(t){return new e(`E`,void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e(`C`),e}();function a(e,t){var n,r,i,a=e,o=a.kind,s=a.value,c=a.error;if(typeof o!=`string`)throw TypeError(`Invalid notification, missing "kind"`);o===`N`?(n=t.next)==null||n.call(t,s):o===`E`?(r=t.error)==null||r.call(t,c):(i=t.complete)==null||i.call(t)}e.observeNotification=a})),zi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dematerialize=void 0;var t=Ri(),n=z(),r=H();function i(){return n.operate(function(e,n){e.subscribe(r.createOperatorSubscriber(n,function(e){return t.observeNotification(e,n)}))})}e.dematerialize=i})),Bi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinct=void 0;var t=z(),n=H(),r=ur(),i=V();function a(e,a){return t.operate(function(t,o){var s=new Set;t.subscribe(n.createOperatorSubscriber(o,function(t){var n=e?e(t):t;s.has(n)||(s.add(n),o.next(t))})),a&&i.innerFrom(a).subscribe(n.createOperatorSubscriber(o,function(){return s.clear()},r.noop))})}e.distinct=a})),Vi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinctUntilChanged=void 0;var t=hr(),n=z(),r=H();function i(e,i){return i===void 0&&(i=t.identity),e??=a,n.operate(function(t,n){var a,o=!0;t.subscribe(r.createOperatorSubscriber(n,function(t){var r=i(t);(o||!e(a,r))&&(o=!1,a=r,n.next(t))}))})}e.distinctUntilChanged=i;function a(e,t){return e===t}})),Hi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinctUntilKeyChanged=void 0;var t=Vi();function n(e,n){return t.distinctUntilChanged(function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})}e.distinctUntilKeyChanged=n})),Ui=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ArgumentOutOfRangeError=void 0,e.ArgumentOutOfRangeError=rr().createErrorClass(function(e){return function(){e(this),this.name=`ArgumentOutOfRangeError`,this.message=`argument out of range`}})})),Wi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.filter=void 0;var t=z(),n=H();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){return e.call(r,t,a++)&&i.next(t)}))})}e.filter=r})),Gi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EmptyError=void 0,e.EmptyError=rr().createErrorClass(function(e){return function(){e(this),this.name=`EmptyError`,this.message=`no elements in sequence`}})})),Ki=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throwIfEmpty=void 0;var t=Gi(),n=z(),r=H();function i(e){return e===void 0&&(e=a),n.operate(function(t,n){var i=!1;t.subscribe(r.createOperatorSubscriber(n,function(e){i=!0,n.next(e)},function(){return i?n.complete():n.error(e())}))})}e.throwIfEmpty=i;function a(){return new t.EmptyError}})),qi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.elementAt=void 0;var t=Ui(),n=Wi(),r=Ki(),i=Oi(),a=ji();function o(e,o){if(e<0)throw new t.ArgumentOutOfRangeError;var s=arguments.length>=2;return function(c){return c.pipe(n.filter(function(t,n){return n===e}),a.take(1),s?i.defaultIfEmpty(o):r.throwIfEmpty(function(){return new t.ArgumentOutOfRangeError}))}}e.elementAt=o})),Ji=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.endWith=void 0;var r=ki(),i=Ii();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return function(a){return r.concat(a,i.of.apply(void 0,n([],t(e))))}}e.endWith=a})),Yi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.every=void 0;var t=z(),n=H();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(n){e.call(r,n,a++,t)||(i.next(!1),i.complete())},function(){i.next(!0),i.complete()}))})}e.every=r})),Xi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaustMap=void 0;var t=ei(),n=V(),r=z(),i=H();function a(e,o){return o?function(r){return r.pipe(a(function(r,i){return n.innerFrom(e(r,i)).pipe(t.map(function(e,t){return o(r,e,i,t)}))}))}:r.operate(function(t,r){var a=0,o=null,s=!1;t.subscribe(i.createOperatorSubscriber(r,function(t){o||(o=i.createOperatorSubscriber(r,void 0,function(){o=null,s&&r.complete()}),n.innerFrom(e(t,a++)).subscribe(o))},function(){s=!0,!o&&r.complete()}))})}e.exhaustMap=a})),Zi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaustAll=void 0;var t=Xi(),n=hr();function r(){return t.exhaustMap(n.identity)}e.exhaustAll=r})),Qi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaust=void 0,e.exhaust=Zi().exhaustAll})),$i=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.expand=void 0;var t=z(),n=ii();function r(e,r,i){return r===void 0&&(r=1/0),r=(r||0)<1?1/0:r,t.operate(function(t,a){return n.mergeInternals(t,a,e,r,void 0,!0,i)})}e.expand=r})),ea=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.finalize=void 0;var t=z();function n(e){return t.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}e.finalize=n})),ta=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createFind=e.find=void 0;var t=z(),n=H();function r(e,n){return t.operate(i(e,n,`value`))}e.find=r;function i(e,t,r){var i=r===`index`;return function(r,a){var o=0;r.subscribe(n.createOperatorSubscriber(a,function(n){var s=o++;e.call(t,n,s,r)&&(a.next(i?s:n),a.complete())},function(){a.next(i?-1:void 0),a.complete()}))}}e.createFind=i})),na=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.findIndex=void 0;var t=z(),n=ta();function r(e,r){return t.operate(n.createFind(e,r,`index`))}e.findIndex=r})),ra=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.first=void 0;var t=Gi(),n=Wi(),r=ji(),i=Oi(),a=Ki(),o=hr();function s(e,s){var c=arguments.length>=2;return function(l){return l.pipe(e?n.filter(function(t,n){return e(t,n,l)}):o.identity,r.take(1),c?i.defaultIfEmpty(s):a.throwIfEmpty(function(){return new t.EmptyError}))}}e.first=s})),ia=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.groupBy=void 0;var t=B(),n=V(),r=Si(),i=z(),a=H();function o(e,o,s,c){return i.operate(function(i,l){var u;!o||typeof o==`function`?u=o:(s=o.duration,u=o.element,c=o.connector);var d=new Map,f=function(e){d.forEach(e),e(l)},p=function(e){return f(function(t){return t.error(e)})},m=0,h=!1,g=new a.OperatorSubscriber(l,function(t){try{var i=e(t),o=d.get(i);if(!o){d.set(i,o=c?c():new r.Subject);var f=_(i,o);if(l.next(f),s){var m=a.createOperatorSubscriber(o,function(){o.complete(),m?.unsubscribe()},void 0,void 0,function(){return d.delete(i)});g.add(n.innerFrom(s(f)).subscribe(m))}}o.next(u?u(t):t)}catch(e){p(e)}},function(){return f(function(e){return e.complete()})},p,function(){return d.clear()},function(){return h=!0,m===0});i.subscribe(g);function _(e,n){var r=new t.Observable(function(e){m++;var t=n.subscribe(e);return function(){t.unsubscribe(),--m===0&&h&&g.unsubscribe()}});return r.key=e,r}})}e.groupBy=o})),aa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isEmpty=void 0;var t=z(),n=H();function r(){return t.operate(function(e,t){e.subscribe(n.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}e.isEmpty=r})),oa=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.takeLast=void 0;var n=Ai(),r=z(),i=H();function a(e){return e<=0?function(){return n.EMPTY}:r.operate(function(n,r){var a=[];n.subscribe(i.createOperatorSubscriber(r,function(t){a.push(t),e<a.length&&a.shift()},function(){var e,n;try{for(var i=t(a),o=i.next();!o.done;o=i.next()){var s=o.value;r.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}r.complete()},void 0,function(){a=null}))})}e.takeLast=a})),sa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.last=void 0;var t=Gi(),n=Wi(),r=oa(),i=Ki(),a=Oi(),o=hr();function s(e,s){var c=arguments.length>=2;return function(l){return l.pipe(e?n.filter(function(t,n){return e(t,n,l)}):o.identity,r.takeLast(1),c?a.defaultIfEmpty(s):i.throwIfEmpty(function(){return new t.EmptyError}))}}e.last=s})),ca=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.materialize=void 0;var t=Ri(),n=z(),r=H();function i(){return n.operate(function(e,n){e.subscribe(r.createOperatorSubscriber(n,function(e){n.next(t.Notification.createNext(e))},function(){n.next(t.Notification.createComplete()),n.complete()},function(e){n.next(t.Notification.createError(e)),n.complete()}))})}e.materialize=i})),la=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.max=void 0;var t=si(),n=R();function r(e){return t.reduce(n.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}e.max=r})),ua=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;var r=z(),i=hi(),a=Lr(),o=$r();function s(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var c=a.popScheduler(e),l=a.popNumber(e,1/0);return r.operate(function(r,a){i.mergeAll(l)(o.from(n([r],t(e)),c)).subscribe(a)})}e.merge=s})),da=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flatMap=void 0,e.flatMap=ai().mergeMap})),fa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeMapTo=void 0;var t=ai(),n=R();function r(e,r,i){return i===void 0&&(i=1/0),n.isFunction(r)?t.mergeMap(function(){return e},r,i):(typeof r==`number`&&(i=r),t.mergeMap(function(){return e},i))}e.mergeMapTo=r})),pa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeScan=void 0;var t=z(),n=ii();function r(e,r,i){return i===void 0&&(i=1/0),t.operate(function(t,a){var o=r;return n.mergeInternals(t,a,function(t,n){return e(o,t,n)},i,function(e){o=e},!1,void 0,function(){return o=null})})}e.mergeScan=r})),ma=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeWith=void 0;var r=ua();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.merge.apply(void 0,n([],t(e)))}e.mergeWith=i})),ha=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.min=void 0;var t=si(),n=R();function r(e){return t.reduce(n.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}e.min=r})),ga=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.refCount=void 0;var t=z(),n=H();function r(){return t.operate(function(e,t){var r=null;e._refCount++;var i=n.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var n=e._connection,i=r;r=null,n&&(!i||n===i)&&n.unsubscribe(),t.unsubscribe()});e.subscribe(i),i.closed||(r=e.connect())})}e.refCount=r})),_a=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ConnectableObservable=void 0;var n=B(),r=or(),i=ga(),a=H(),o=z();e.ConnectableObservable=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,o.hasLift(t)&&(r.lift=t.lift),r}return n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e?.unsubscribe()},n.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new r.Subscription;var n=this.getSubject();t.add(this.source.subscribe(a.createOperatorSubscriber(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=r.Subscription.EMPTY)}return t},n.prototype.refCount=function(){return i.refCount()(this)},n}(n.Observable)})),va=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.multicast=void 0;var t=_a(),n=R(),r=wi();function i(e,i){var a=n.isFunction(e)?e:function(){return e};return n.isFunction(i)?r.connect(i,{connector:a}):function(e){return new t.ConnectableObservable(e,a)}}e.multicast=i})),ya=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.onErrorResumeNext=void 0;var t=B(),n=fi(),r=H(),i=ur(),a=V();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=n.argsOrArgArray(e);return new t.Observable(function(e){var t=0,n=function(){if(t<s.length){var o=void 0;try{o=a.innerFrom(s[t++])}catch{n();return}var c=new r.OperatorSubscriber(e,void 0,i.noop,i.noop);o.subscribe(c),c.add(n)}else e.complete()};n()})}e.onErrorResumeNext=o})),ba=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.onErrorResumeNext=e.onErrorResumeNextWith=void 0;var r=fi(),i=ya();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];var o=r.argsOrArgArray(e);return function(e){return i.onErrorResumeNext.apply(void 0,n([e],t(o)))}}e.onErrorResumeNextWith=a,e.onErrorResumeNext=a})),xa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pairwise=void 0;var t=z(),n=H();function r(){return t.operate(function(e,t){var r,i=!1;e.subscribe(n.createOperatorSubscriber(t,function(e){var n=r;r=e,i&&t.next([n,e]),i=!0}))})}e.pairwise=r})),Sa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.not=void 0;function t(e,t){return function(n,r){return!e.call(t,n,r)}}e.not=t})),Ca=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.partition=void 0;var t=Sa(),n=Wi();function r(e,r){return function(i){return[n.filter(e,r)(i),n.filter(t.not(e,r))(i)]}}e.partition=r})),wa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluck=void 0;var t=ei();function n(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length;if(r===0)throw Error(`list of properties cannot be empty.`);return t.map(function(t){for(var n=t,i=0;i<r;i++){var a=n?.[e[i]];if(a!==void 0)n=a;else return}return n})}e.pluck=n})),Ta=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publish=void 0;var t=Si(),n=va(),r=wi();function i(e){return e?function(t){return r.connect(e)(t)}:function(e){return n.multicast(new t.Subject)(e)}}e.publish=i})),Ea=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.BehaviorSubject=void 0,e.BehaviorSubject=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(n.prototype,`value`,{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Si().Subject)})),Da=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishBehavior=void 0;var t=Ea(),n=_a();function r(e){return function(r){var i=new t.BehaviorSubject(e);return new n.ConnectableObservable(r,function(){return i})}}e.publishBehavior=r})),Oa=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncSubject=void 0,e.AsyncSubject=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return n.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,a=t.thrownError,o=t.isStopped,s=t._isComplete;n?e.error(a):(o||s)&&(r&&e.next(i),e.complete())},n.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},n.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},n}(Si().Subject)})),ka=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishLast=void 0;var t=Oa(),n=_a();function r(){return function(e){var r=new t.AsyncSubject;return new n.ConnectableObservable(e,function(){return r})}}e.publishLast=r})),Aa=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplaySubject=void 0;var n=Si(),r=Dr();e.ReplaySubject=function(e){t(n,e);function n(t,n,i){t===void 0&&(t=1/0),n===void 0&&(n=1/0),i===void 0&&(i=r.dateTimestampProvider);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=n,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=n===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,n),a}return n.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},n.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a<i.length&&!e.closed;a+=r?1:2)e.next(i[a]);return this._checkFinalizedStatuses(e),t},n.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,c=1;c<r.length&&r[c]<=o;c+=2)s=c;s&&r.splice(0,s+1)}},n}(n.Subject)})),ja=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishReplay=void 0;var t=Aa(),n=va(),r=R();function i(e,i,a,o){a&&!r.isFunction(a)&&(o=a);var s=r.isFunction(a)?a:void 0;return function(r){return n.multicast(new t.ReplaySubject(e,i,o),s)(r)}}e.publishReplay=i})),Ma=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.raceInit=e.race=void 0;var t=B(),n=V(),r=fi(),i=H();function a(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e=r.argsOrArgArray(e),e.length===1?n.innerFrom(e[0]):new t.Observable(o(e))}e.race=a;function o(e){return function(t){for(var r=[],a=function(a){r.push(n.innerFrom(e[a]).subscribe(i.createOperatorSubscriber(t,function(e){if(r){for(var n=0;n<r.length;n++)n!==a&&r[n].unsubscribe();r=null}t.next(e)})))},o=0;r&&!t.closed&&o<e.length;o++)a(o)}}e.raceInit=o})),Na=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.raceWith=void 0;var r=Ma(),i=z(),a=hr();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length?i.operate(function(i,a){r.raceInit(n([i],t(e)))(a)}):a.identity}e.raceWith=o})),Pa=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.race=void 0;var r=fi(),i=Na();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i.raceWith.apply(void 0,n([],t(r.argsOrArgArray(e))))}e.race=a})),Fa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repeat=void 0;var t=Ai(),n=z(),r=H(),i=V(),a=Nr();function o(e){var o,s=1/0,c;return e!=null&&(typeof e==`object`?(o=e.count,s=o===void 0?1/0:o,c=e.delay):s=e),s<=0?function(){return t.EMPTY}:n.operate(function(e,t){var n=0,o,l=function(){if(o?.unsubscribe(),o=null,c!=null){var e=typeof c==`number`?a.timer(c):i.innerFrom(c(n)),s=r.createOperatorSubscriber(t,function(){s.unsubscribe(),u()});e.subscribe(s)}else u()},u=function(){var i=!1;o=e.subscribe(r.createOperatorSubscriber(t,void 0,function(){++n<s?o?l():i=!0:t.complete()})),i&&l()};u()})}e.repeat=o})),Ia=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repeatWhen=void 0;var t=V(),n=Si(),r=z(),i=H();function a(e){return r.operate(function(r,a){var o,s=!1,c,l=!1,u=!1,d=function(){return u&&l&&(a.complete(),!0)},f=function(){return c||(c=new n.Subject,t.innerFrom(e(c)).subscribe(i.createOperatorSubscriber(a,function(){o?p():s=!0},function(){l=!0,d()}))),c},p=function(){u=!1,o=r.subscribe(i.createOperatorSubscriber(a,void 0,function(){u=!0,!d()&&f().next()})),s&&(o.unsubscribe(),o=null,s=!1,p())};p()})}e.repeatWhen=a})),La=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.retry=void 0;var t=z(),n=H(),r=hr(),i=Nr(),a=V();function o(e){e===void 0&&(e=1/0);var o=e&&typeof e==`object`?e:{count:e},s=o.count,c=s===void 0?1/0:s,l=o.delay,u=o.resetOnSuccess,d=u===void 0?!1:u;return c<=0?r.identity:t.operate(function(e,t){var r=0,o,s=function(){var u=!1;o=e.subscribe(n.createOperatorSubscriber(t,function(e){d&&(r=0),t.next(e)},void 0,function(e){if(r++<c){var d=function(){o?(o.unsubscribe(),o=null,s()):u=!0};if(l!=null){var f=typeof l==`number`?i.timer(l):a.innerFrom(l(e,r)),p=n.createOperatorSubscriber(t,function(){p.unsubscribe(),d()},function(){t.complete()});f.subscribe(p)}else d()}else t.error(e)})),u&&(o.unsubscribe(),o=null,s())};s()})}e.retry=o})),Ra=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.retryWhen=void 0;var t=V(),n=Si(),r=z(),i=H();function a(e){return r.operate(function(r,a){var o,s=!1,c,l=function(){o=r.subscribe(i.createOperatorSubscriber(a,void 0,void 0,function(r){c||(c=new n.Subject,t.innerFrom(e(c)).subscribe(i.createOperatorSubscriber(a,function(){return o?l():s=!0}))),c&&c.next(r)})),s&&(o.unsubscribe(),o=null,s=!1,l())};l()})}e.retryWhen=a})),za=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sample=void 0;var t=V(),n=z(),r=ur(),i=H();function a(e){return n.operate(function(n,a){var o=!1,s=null;n.subscribe(i.createOperatorSubscriber(a,function(e){o=!0,s=e})),t.innerFrom(e).subscribe(i.createOperatorSubscriber(a,function(){if(o){o=!1;var e=s;s=null,a.next(e)}},r.noop))})}e.sample=a})),Ba=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.interval=void 0;var t=Ar(),n=Nr();function r(e,r){return e===void 0&&(e=0),r===void 0&&(r=t.asyncScheduler),e<0&&(e=0),n.timer(e,e,r)}e.interval=r})),Va=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sampleTime=void 0;var t=Ar(),n=za(),r=Ba();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.sample(r.interval(e,i))}e.sampleTime=i})),Ha=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scan=void 0;var t=z(),n=oi();function r(e,r){return t.operate(n.scanInternals(e,r,arguments.length>=2,!0))}e.scan=r})),Ua=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sequenceEqual=void 0;var t=z(),n=H(),r=V();function i(e,i){return i===void 0&&(i=function(e,t){return e===t}),t.operate(function(t,o){var s=a(),c=a(),l=function(e){o.next(e),o.complete()},u=function(e,t){var r=n.createOperatorSubscriber(o,function(n){var r=t.buffer,a=t.complete;r.length===0?a?l(!1):e.buffer.push(n):!i(n,r.shift())&&l(!1)},function(){e.complete=!0;var n=t.complete,i=t.buffer;n&&l(i.length===0),r?.unsubscribe()});return r};t.subscribe(u(s,c)),r.innerFrom(e).subscribe(u(c,s))})}e.sequenceEqual=i;function a(){return{buffer:[],complete:!1}}})),Wa=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.share=void 0;var r=V(),i=Si(),a=pr(),o=z();function s(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new i.Subject}:t,s=e.resetOnError,l=s===void 0?!0:s,u=e.resetOnComplete,d=u===void 0?!0:u,f=e.resetOnRefCountZero,p=f===void 0?!0:f;return function(e){var t,i,s,u=0,f=!1,m=!1,h=function(){i?.unsubscribe(),i=void 0},g=function(){h(),t=s=void 0,f=m=!1},_=function(){var e=t;g(),e?.unsubscribe()};return o.operate(function(e,o){u++,!m&&!f&&h();var v=s??=n();o.add(function(){u--,u===0&&!m&&!f&&(i=c(_,p))}),v.subscribe(o),!t&&u>0&&(t=new a.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){m=!0,h(),i=c(g,l,e),v.error(e)},complete:function(){f=!0,h(),i=c(g,d),v.complete()}}),r.innerFrom(e).subscribe(t))})(e)}}e.share=s;function c(e,i){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];if(i===!0){e();return}if(i!==!1){var c=new a.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return r.innerFrom(i.apply(void 0,n([],t(o)))).subscribe(c)}}})),Ga=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shareReplay=void 0;var t=Aa(),n=Wa();function r(e,r,i){var a,o,s,c,l=!1;return e&&typeof e==`object`?(a=e.bufferSize,c=a===void 0?1/0:a,o=e.windowTime,r=o===void 0?1/0:o,s=e.refCount,l=s===void 0?!1:s,i=e.scheduler):c=e??1/0,n.share({connector:function(){return new t.ReplaySubject(c,r,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}e.shareReplay=r})),Ka=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SequenceError=void 0,e.SequenceError=rr().createErrorClass(function(e){return function(t){e(this),this.name=`SequenceError`,this.message=t}})})),qa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotFoundError=void 0,e.NotFoundError=rr().createErrorClass(function(e){return function(t){e(this),this.name=`NotFoundError`,this.message=t}})})),Ja=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.single=void 0;var t=Gi(),n=Ka(),r=qa(),i=z(),a=H();function o(e){return i.operate(function(i,o){var s=!1,c,l=!1,u=0;i.subscribe(a.createOperatorSubscriber(o,function(t){l=!0,(!e||e(t,u++,i))&&(s&&o.error(new n.SequenceError(`Too many matching values`)),s=!0,c=t)},function(){s?(o.next(c),o.complete()):o.error(l?new r.NotFoundError(`No matching values`):new t.EmptyError)}))})}e.single=o})),Ya=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skip=void 0;var t=Wi();function n(e){return t.filter(function(t,n){return e<=n})}e.skip=n})),Xa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipLast=void 0;var t=hr(),n=z(),r=H();function i(e){return e<=0?t.identity:n.operate(function(t,n){var i=Array(e),a=0;return t.subscribe(r.createOperatorSubscriber(n,function(t){var r=a++;if(r<e)i[r]=t;else{var o=r%e,s=i[o];i[o]=t,n.next(s)}})),function(){i=null}})}e.skipLast=i})),Za=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipUntil=void 0;var t=z(),n=H(),r=V(),i=ur();function a(e){return t.operate(function(t,a){var o=!1,s=n.createOperatorSubscriber(a,function(){s?.unsubscribe(),o=!0},i.noop);r.innerFrom(e).subscribe(s),t.subscribe(n.createOperatorSubscriber(a,function(e){return o&&a.next(e)}))})}e.skipUntil=a})),Qa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipWhile=void 0;var t=z(),n=H();function r(e){return t.operate(function(t,r){var i=!1,a=0;t.subscribe(n.createOperatorSubscriber(r,function(t){return(i||=!e(t,a++))&&r.next(t)}))})}e.skipWhile=r})),$a=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.startWith=void 0;var t=ki(),n=Lr(),r=z();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=n.popScheduler(e);return r.operate(function(n,r){(a?t.concat(e,n,a):t.concat(e,n)).subscribe(r)})}e.startWith=i})),eo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchMap=void 0;var t=V(),n=z(),r=H();function i(e,i){return n.operate(function(n,a){var o=null,s=0,c=!1,l=function(){return c&&!o&&a.complete()};n.subscribe(r.createOperatorSubscriber(a,function(n){o?.unsubscribe();var c=0,u=s++;t.innerFrom(e(n,u)).subscribe(o=r.createOperatorSubscriber(a,function(e){return a.next(i?i(n,e,u,c++):e)},function(){o=null,l()}))},function(){c=!0,l()}))})}e.switchMap=i})),to=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchAll=void 0;var t=eo(),n=hr();function r(){return t.switchMap(n.identity)}e.switchAll=r})),no=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchMapTo=void 0;var t=eo(),n=R();function r(e,r){return n.isFunction(r)?t.switchMap(function(){return e},r):t.switchMap(function(){return e})}e.switchMapTo=r})),ro=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchScan=void 0;var t=eo(),n=z();function r(e,r){return n.operate(function(n,i){var a=r;return t.switchMap(function(t,n){return e(a,t,n)},function(e,t){return a=t,t})(n).subscribe(i),function(){a=null}})}e.switchScan=r})),io=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.takeUntil=void 0;var t=z(),n=H(),r=V(),i=ur();function a(e){return t.operate(function(t,a){r.innerFrom(e).subscribe(n.createOperatorSubscriber(a,function(){return a.complete()},i.noop)),!a.closed&&t.subscribe(a)})}e.takeUntil=a})),ao=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.takeWhile=void 0;var t=z(),n=H();function r(e,r){return r===void 0&&(r=!1),t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){var n=e(t,a++);(n||r)&&i.next(t),!n&&i.complete()}))})}e.takeWhile=r})),oo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.tap=void 0;var t=R(),n=z(),r=H(),i=hr();function a(e,a,o){var s=t.isFunction(e)||a||o?{next:e,error:a,complete:o}:e;return s?n.operate(function(e,t){var n;(n=s.subscribe)==null||n.call(s);var i=!0;e.subscribe(r.createOperatorSubscriber(t,function(e){var n;(n=s.next)==null||n.call(s,e),t.next(e)},function(){var e;i=!1,(e=s.complete)==null||e.call(s),t.complete()},function(e){var n;i=!1,(n=s.error)==null||n.call(s,e),t.error(e)},function(){var e,t;i&&((e=s.unsubscribe)==null||e.call(s)),(t=s.finalize)==null||t.call(s)}))}):i.identity}e.tap=a})),so=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throttle=void 0;var t=z(),n=H(),r=V();function i(e,i){return t.operate(function(t,a){var o=i??{},s=o.leading,c=s===void 0?!0:s,l=o.trailing,u=l===void 0?!1:l,d=!1,f=null,p=null,m=!1,h=function(){p?.unsubscribe(),p=null,u&&(v(),m&&a.complete())},g=function(){p=null,m&&a.complete()},_=function(t){return p=r.innerFrom(e(t)).subscribe(n.createOperatorSubscriber(a,h,g))},v=function(){if(d){d=!1;var e=f;f=null,a.next(e),!m&&_(e)}};t.subscribe(n.createOperatorSubscriber(a,function(e){d=!0,f=e,!(p&&!p.closed)&&(c?v():_(e))},function(){m=!0,!(u&&d&&p&&!p.closed)&&a.complete()}))})}e.throttle=i})),co=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throttleTime=void 0;var t=Ar(),n=so(),r=Nr();function i(e,i,a){i===void 0&&(i=t.asyncScheduler);var o=r.timer(e,i);return n.throttle(function(){return o},a)}e.throttleTime=i})),lo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TimeInterval=e.timeInterval=void 0;var t=Ar(),n=z(),r=H();function i(e){return e===void 0&&(e=t.asyncScheduler),n.operate(function(t,n){var i=e.now();t.subscribe(r.createOperatorSubscriber(n,function(t){var r=e.now(),o=r-i;i=r,n.next(new a(t,o))}))})}e.timeInterval=i;var a=function(){function e(e,t){this.value=e,this.interval=t}return e}();e.TimeInterval=a})),uo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timeout=e.TimeoutError=void 0;var t=Ar(),n=Mr(),r=z(),i=V(),a=rr(),o=H(),s=Rr();e.TimeoutError=a.createErrorClass(function(e){return function(t){t===void 0&&(t=null),e(this),this.message=`Timeout has occurred`,this.name=`TimeoutError`,this.info=t}});function c(e,a){var c=n.isValidDate(e)?{first:e}:typeof e==`number`?{each:e}:e,u=c.first,d=c.each,f=c.with,p=f===void 0?l:f,m=c.scheduler,h=m===void 0?a??t.asyncScheduler:m,g=c.meta,_=g===void 0?null:g;if(u==null&&d==null)throw TypeError(`No timeout provided.`);return r.operate(function(e,t){var n,r,a=null,c=0,l=function(e){r=s.executeSchedule(t,h,function(){try{n.unsubscribe(),i.innerFrom(p({meta:_,lastValue:a,seen:c})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(o.createOperatorSubscriber(t,function(e){r?.unsubscribe(),c++,t.next(a=e),d>0&&l(d)},void 0,void 0,function(){r?.closed||r?.unsubscribe(),a=null})),!c&&l(u==null?d:typeof u==`number`?u:+u-h.now())})}e.timeout=c;function l(t){throw new e.TimeoutError(t)}})),fo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timeoutWith=void 0;var t=Ar(),n=Mr(),r=uo();function i(e,i,a){var o,s,c;if(a??=t.async,n.isValidDate(e)?o=e:typeof e==`number`&&(s=e),i)c=function(){return i};else throw TypeError(`No observable provided to switch to`);if(o==null&&s==null)throw TypeError(`No timeout provided.`);return r.timeout({first:o,each:s,scheduler:a,with:c})}e.timeoutWith=i})),po=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timestamp=void 0;var t=Dr(),n=ei();function r(e){return e===void 0&&(e=t.dateTimestampProvider),n.map(function(t){return{value:t,timestamp:e.now()}})}e.timestamp=r})),mo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.window=void 0;var t=Si(),n=z(),r=H(),i=ur(),a=V();function o(e){return n.operate(function(n,o){var s=new t.Subject;o.next(s.asObservable());var c=function(e){s.error(e),o.error(e)};return n.subscribe(r.createOperatorSubscriber(o,function(e){return s?.next(e)},function(){s.complete(),o.complete()},c)),a.innerFrom(e).subscribe(r.createOperatorSubscriber(o,function(){s.complete(),o.next(s=new t.Subject)},i.noop,c)),function(){s?.unsubscribe(),s=null}})}e.window=o})),ho=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.windowCount=void 0;var n=Si(),r=z(),i=H();function a(e,a){a===void 0&&(a=0);var o=a>0?a:e;return r.operate(function(r,a){var s=[new n.Subject],c=0;a.next(s[0].asObservable()),r.subscribe(i.createOperatorSubscriber(a,function(r){var i,l;try{for(var u=t(s),d=u.next();!d.done;d=u.next())d.value.next(r)}catch(e){i={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(i)throw i.error}}var f=c-e+1;if(f>=0&&f%o===0&&s.shift().complete(),++c%o===0){var p=new n.Subject;s.push(p),a.next(p.asObservable())}},function(){for(;s.length>0;)s.shift().complete();a.complete()},function(e){for(;s.length>0;)s.shift().error(e);a.error(e)},function(){s=null}))})}e.windowCount=a})),go=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.windowTime=void 0;var t=Si(),n=Ar(),r=or(),i=z(),a=H(),o=ar(),s=Lr(),c=Rr();function l(e){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var d=s.popScheduler(l)??n.asyncScheduler,f=l[0]??null,p=l[1]||1/0;return i.operate(function(n,i){var s=[],l=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),o.arrRemove(s,e),l&&m()},m=function(){if(s){var n=new r.Subscription;i.add(n);var a=new t.Subject,o={window:a,subs:n,seen:0};s.push(o),i.next(a.asObservable()),c.executeSchedule(n,d,function(){return u(o)},e)}};f!==null&&f>=0?c.executeSchedule(i,d,m,f,!0):l=!0,m();var h=function(e){return s.slice().forEach(e)},g=function(e){h(function(t){var n=t.window;return e(n)}),e(i),i.unsubscribe()};return n.subscribe(a.createOperatorSubscriber(i,function(e){h(function(t){t.window.next(e),p<=++t.seen&&u(t)})},function(){return g(function(e){return e.complete()})},function(e){return g(function(t){return t.error(e)})})),function(){s=null}})}e.windowTime=l})),_o=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.windowToggle=void 0;var n=Si(),r=or(),i=z(),a=V(),o=H(),s=ur(),c=ar();function l(e,l){return i.operate(function(i,u){var d=[],f=function(e){for(;0<d.length;)d.shift().error(e);u.error(e)};a.innerFrom(e).subscribe(o.createOperatorSubscriber(u,function(e){var t=new n.Subject;d.push(t);var i=new r.Subscription,p=function(){c.arrRemove(d,t),t.complete(),i.unsubscribe()},m;try{m=a.innerFrom(l(e))}catch(e){f(e);return}u.next(t.asObservable()),i.add(m.subscribe(o.createOperatorSubscriber(u,p,s.noop,f)))},s.noop)),i.subscribe(o.createOperatorSubscriber(u,function(e){var n,r,i=d.slice();try{for(var a=t(i),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},function(){for(;0<d.length;)d.shift().complete();u.complete()},f,function(){for(;0<d.length;)d.shift().unsubscribe()}))})}e.windowToggle=l})),vo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.windowWhen=void 0;var t=Si(),n=z(),r=H(),i=V();function a(e){return n.operate(function(n,a){var o,s,c=function(e){o.error(e),a.error(e)},l=function(){s?.unsubscribe(),o?.complete(),o=new t.Subject,a.next(o.asObservable());var n;try{n=i.innerFrom(e())}catch(e){c(e);return}n.subscribe(s=r.createOperatorSubscriber(a,l,l,c))};l(),n.subscribe(r.createOperatorSubscriber(a,function(e){return o.next(e)},function(){o.complete(),a.complete()},c,function(){s?.unsubscribe(),o=null}))})}e.windowWhen=a})),yo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.withLatestFrom=void 0;var r=z(),i=H(),a=V(),o=hr(),s=ur(),c=Lr();function l(){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];var u=c.popResultSelector(e);return r.operate(function(r,c){for(var l=e.length,d=Array(l),f=e.map(function(){return!1}),p=!1,m=function(t){a.innerFrom(e[t]).subscribe(i.createOperatorSubscriber(c,function(e){d[t]=e,!p&&!f[t]&&(f[t]=!0,(p=f.every(o.identity))&&(f=null))},s.noop))},h=0;h<l;h++)m(h);r.subscribe(i.createOperatorSubscriber(c,function(e){if(p){var r=n([e],t(d));c.next(u?u.apply(void 0,n([],t(r))):r)}}))})}e.withLatestFrom=l})),bo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zip=void 0;var r=B(),i=V(),a=fi(),o=Ai(),s=H(),c=Lr();function l(){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];var u=c.popResultSelector(e),d=a.argsOrArgArray(e);return d.length?new r.Observable(function(e){var r=d.map(function(){return[]}),a=d.map(function(){return!1});e.add(function(){r=a=null});for(var o=function(o){i.innerFrom(d[o]).subscribe(s.createOperatorSubscriber(e,function(i){if(r[o].push(i),r.every(function(e){return e.length})){var s=r.map(function(e){return e.shift()});e.next(u?u.apply(void 0,n([],t(s))):s),r.some(function(e,t){return!e.length&&a[t]})&&e.complete()}},function(){a[o]=!0,!r[o].length&&e.complete()}))},c=0;!e.closed&&c<d.length;c++)o(c);return function(){r=a=null}}):o.EMPTY}e.zip=l})),xo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zip=void 0;var r=bo(),i=z();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i.operate(function(i,a){r.zip.apply(void 0,n([i],t(e))).subscribe(a)})}e.zip=a})),So=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.zipAll=void 0;var t=bo(),n=li();function r(e){return n.joinAllInternals(t.zip,e)}e.zipAll=r})),Co=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zipWith=void 0;var r=xo();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.zip.apply(void 0,n([],t(e)))}e.zipWith=i})),wo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeAll=e.merge=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.concat=e.combineLatestWith=e.combineLatest=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=void 0,e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.race=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.partition=e.pairwise=e.onErrorResumeNext=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=void 0,e.zipWith=e.zipAll=e.zip=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=void 0;var t=Cr();Object.defineProperty(e,`audit`,{enumerable:!0,get:function(){return t.audit}});var n=Pr();Object.defineProperty(e,`auditTime`,{enumerable:!0,get:function(){return n.auditTime}});var r=Fr();Object.defineProperty(e,`buffer`,{enumerable:!0,get:function(){return r.buffer}});var i=Ir();Object.defineProperty(e,`bufferCount`,{enumerable:!0,get:function(){return i.bufferCount}});var a=zr();Object.defineProperty(e,`bufferTime`,{enumerable:!0,get:function(){return a.bufferTime}});var o=Br();Object.defineProperty(e,`bufferToggle`,{enumerable:!0,get:function(){return o.bufferToggle}});var s=Vr();Object.defineProperty(e,`bufferWhen`,{enumerable:!0,get:function(){return s.bufferWhen}});var c=Hr();Object.defineProperty(e,`catchError`,{enumerable:!0,get:function(){return c.catchError}});var l=di();Object.defineProperty(e,`combineAll`,{enumerable:!0,get:function(){return l.combineAll}});var u=ui();Object.defineProperty(e,`combineLatestAll`,{enumerable:!0,get:function(){return u.combineLatestAll}});var d=pi();Object.defineProperty(e,`combineLatest`,{enumerable:!0,get:function(){return d.combineLatest}});var f=mi();Object.defineProperty(e,`combineLatestWith`,{enumerable:!0,get:function(){return f.combineLatestWith}});var p=_i();Object.defineProperty(e,`concat`,{enumerable:!0,get:function(){return p.concat}});var m=gi();Object.defineProperty(e,`concatAll`,{enumerable:!0,get:function(){return m.concatAll}});var h=vi();Object.defineProperty(e,`concatMap`,{enumerable:!0,get:function(){return h.concatMap}});var g=yi();Object.defineProperty(e,`concatMapTo`,{enumerable:!0,get:function(){return g.concatMapTo}});var _=bi();Object.defineProperty(e,`concatWith`,{enumerable:!0,get:function(){return _.concatWith}});var v=wi();Object.defineProperty(e,`connect`,{enumerable:!0,get:function(){return v.connect}});var y=Ti();Object.defineProperty(e,`count`,{enumerable:!0,get:function(){return y.count}});var b=Ei();Object.defineProperty(e,`debounce`,{enumerable:!0,get:function(){return b.debounce}});var x=Di();Object.defineProperty(e,`debounceTime`,{enumerable:!0,get:function(){return x.debounceTime}});var S=Oi();Object.defineProperty(e,`defaultIfEmpty`,{enumerable:!0,get:function(){return S.defaultIfEmpty}});var C=Fi();Object.defineProperty(e,`delay`,{enumerable:!0,get:function(){return C.delay}});var w=Pi();Object.defineProperty(e,`delayWhen`,{enumerable:!0,get:function(){return w.delayWhen}});var T=zi();Object.defineProperty(e,`dematerialize`,{enumerable:!0,get:function(){return T.dematerialize}});var E=Bi();Object.defineProperty(e,`distinct`,{enumerable:!0,get:function(){return E.distinct}});var D=Vi();Object.defineProperty(e,`distinctUntilChanged`,{enumerable:!0,get:function(){return D.distinctUntilChanged}});var O=Hi();Object.defineProperty(e,`distinctUntilKeyChanged`,{enumerable:!0,get:function(){return O.distinctUntilKeyChanged}});var k=qi();Object.defineProperty(e,`elementAt`,{enumerable:!0,get:function(){return k.elementAt}});var A=Ji();Object.defineProperty(e,`endWith`,{enumerable:!0,get:function(){return A.endWith}});var j=Yi();Object.defineProperty(e,`every`,{enumerable:!0,get:function(){return j.every}});var ee=Qi();Object.defineProperty(e,`exhaust`,{enumerable:!0,get:function(){return ee.exhaust}});var M=Zi();Object.defineProperty(e,`exhaustAll`,{enumerable:!0,get:function(){return M.exhaustAll}});var te=Xi();Object.defineProperty(e,`exhaustMap`,{enumerable:!0,get:function(){return te.exhaustMap}});var ne=$i();Object.defineProperty(e,`expand`,{enumerable:!0,get:function(){return ne.expand}});var re=Wi();Object.defineProperty(e,`filter`,{enumerable:!0,get:function(){return re.filter}});var N=ea();Object.defineProperty(e,`finalize`,{enumerable:!0,get:function(){return N.finalize}});var ie=ta();Object.defineProperty(e,`find`,{enumerable:!0,get:function(){return ie.find}});var ae=na();Object.defineProperty(e,`findIndex`,{enumerable:!0,get:function(){return ae.findIndex}});var P=ra();Object.defineProperty(e,`first`,{enumerable:!0,get:function(){return P.first}});var oe=ia();Object.defineProperty(e,`groupBy`,{enumerable:!0,get:function(){return oe.groupBy}});var se=Mi();Object.defineProperty(e,`ignoreElements`,{enumerable:!0,get:function(){return se.ignoreElements}});var ce=aa();Object.defineProperty(e,`isEmpty`,{enumerable:!0,get:function(){return ce.isEmpty}});var le=sa();Object.defineProperty(e,`last`,{enumerable:!0,get:function(){return le.last}});var ue=ei();Object.defineProperty(e,`map`,{enumerable:!0,get:function(){return ue.map}});var de=Ni();Object.defineProperty(e,`mapTo`,{enumerable:!0,get:function(){return de.mapTo}});var fe=ca();Object.defineProperty(e,`materialize`,{enumerable:!0,get:function(){return fe.materialize}});var pe=la();Object.defineProperty(e,`max`,{enumerable:!0,get:function(){return pe.max}});var me=ua();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return me.merge}});var he=hi();Object.defineProperty(e,`mergeAll`,{enumerable:!0,get:function(){return he.mergeAll}});var ge=da();Object.defineProperty(e,`flatMap`,{enumerable:!0,get:function(){return ge.flatMap}});var _e=ai();Object.defineProperty(e,`mergeMap`,{enumerable:!0,get:function(){return _e.mergeMap}});var ve=fa();Object.defineProperty(e,`mergeMapTo`,{enumerable:!0,get:function(){return ve.mergeMapTo}});var ye=pa();Object.defineProperty(e,`mergeScan`,{enumerable:!0,get:function(){return ye.mergeScan}});var be=ma();Object.defineProperty(e,`mergeWith`,{enumerable:!0,get:function(){return be.mergeWith}});var xe=ha();Object.defineProperty(e,`min`,{enumerable:!0,get:function(){return xe.min}});var Se=va();Object.defineProperty(e,`multicast`,{enumerable:!0,get:function(){return Se.multicast}});var Ce=Wr();Object.defineProperty(e,`observeOn`,{enumerable:!0,get:function(){return Ce.observeOn}});var we=ba();Object.defineProperty(e,`onErrorResumeNext`,{enumerable:!0,get:function(){return we.onErrorResumeNext}});var Te=xa();Object.defineProperty(e,`pairwise`,{enumerable:!0,get:function(){return Te.pairwise}});var Ee=Ca();Object.defineProperty(e,`partition`,{enumerable:!0,get:function(){return Ee.partition}});var De=wa();Object.defineProperty(e,`pluck`,{enumerable:!0,get:function(){return De.pluck}});var Oe=Ta();Object.defineProperty(e,`publish`,{enumerable:!0,get:function(){return Oe.publish}});var ke=Da();Object.defineProperty(e,`publishBehavior`,{enumerable:!0,get:function(){return ke.publishBehavior}});var Ae=ka();Object.defineProperty(e,`publishLast`,{enumerable:!0,get:function(){return Ae.publishLast}});var je=ja();Object.defineProperty(e,`publishReplay`,{enumerable:!0,get:function(){return je.publishReplay}});var F=Pa();Object.defineProperty(e,`race`,{enumerable:!0,get:function(){return F.race}});var Me=Na();Object.defineProperty(e,`raceWith`,{enumerable:!0,get:function(){return Me.raceWith}});var Ne=si();Object.defineProperty(e,`reduce`,{enumerable:!0,get:function(){return Ne.reduce}});var Pe=Fa();Object.defineProperty(e,`repeat`,{enumerable:!0,get:function(){return Pe.repeat}});var Fe=Ia();Object.defineProperty(e,`repeatWhen`,{enumerable:!0,get:function(){return Fe.repeatWhen}});var I=La();Object.defineProperty(e,`retry`,{enumerable:!0,get:function(){return I.retry}});var Ie=Ra();Object.defineProperty(e,`retryWhen`,{enumerable:!0,get:function(){return Ie.retryWhen}});var Le=ga();Object.defineProperty(e,`refCount`,{enumerable:!0,get:function(){return Le.refCount}});var Re=za();Object.defineProperty(e,`sample`,{enumerable:!0,get:function(){return Re.sample}});var ze=Va();Object.defineProperty(e,`sampleTime`,{enumerable:!0,get:function(){return ze.sampleTime}});var Be=Ha();Object.defineProperty(e,`scan`,{enumerable:!0,get:function(){return Be.scan}});var Ve=Ua();Object.defineProperty(e,`sequenceEqual`,{enumerable:!0,get:function(){return Ve.sequenceEqual}});var He=Wa();Object.defineProperty(e,`share`,{enumerable:!0,get:function(){return He.share}});var Ue=Ga();Object.defineProperty(e,`shareReplay`,{enumerable:!0,get:function(){return Ue.shareReplay}});var We=Ja();Object.defineProperty(e,`single`,{enumerable:!0,get:function(){return We.single}});var Ge=Ya();Object.defineProperty(e,`skip`,{enumerable:!0,get:function(){return Ge.skip}});var Ke=Xa();Object.defineProperty(e,`skipLast`,{enumerable:!0,get:function(){return Ke.skipLast}});var qe=Za();Object.defineProperty(e,`skipUntil`,{enumerable:!0,get:function(){return qe.skipUntil}});var Je=Qa();Object.defineProperty(e,`skipWhile`,{enumerable:!0,get:function(){return Je.skipWhile}});var Ye=$a();Object.defineProperty(e,`startWith`,{enumerable:!0,get:function(){return Ye.startWith}});var Xe=Gr();Object.defineProperty(e,`subscribeOn`,{enumerable:!0,get:function(){return Xe.subscribeOn}});var Ze=to();Object.defineProperty(e,`switchAll`,{enumerable:!0,get:function(){return Ze.switchAll}});var Qe=eo();Object.defineProperty(e,`switchMap`,{enumerable:!0,get:function(){return Qe.switchMap}});var $e=no();Object.defineProperty(e,`switchMapTo`,{enumerable:!0,get:function(){return $e.switchMapTo}});var et=ro();Object.defineProperty(e,`switchScan`,{enumerable:!0,get:function(){return et.switchScan}});var tt=ji();Object.defineProperty(e,`take`,{enumerable:!0,get:function(){return tt.take}});var nt=oa();Object.defineProperty(e,`takeLast`,{enumerable:!0,get:function(){return nt.takeLast}});var rt=io();Object.defineProperty(e,`takeUntil`,{enumerable:!0,get:function(){return rt.takeUntil}});var it=ao();Object.defineProperty(e,`takeWhile`,{enumerable:!0,get:function(){return it.takeWhile}});var at=oo();Object.defineProperty(e,`tap`,{enumerable:!0,get:function(){return at.tap}});var ot=so();Object.defineProperty(e,`throttle`,{enumerable:!0,get:function(){return ot.throttle}});var st=co();Object.defineProperty(e,`throttleTime`,{enumerable:!0,get:function(){return st.throttleTime}});var ct=Ki();Object.defineProperty(e,`throwIfEmpty`,{enumerable:!0,get:function(){return ct.throwIfEmpty}});var lt=lo();Object.defineProperty(e,`timeInterval`,{enumerable:!0,get:function(){return lt.timeInterval}});var ut=uo();Object.defineProperty(e,`timeout`,{enumerable:!0,get:function(){return ut.timeout}});var dt=fo();Object.defineProperty(e,`timeoutWith`,{enumerable:!0,get:function(){return dt.timeoutWith}});var ft=po();Object.defineProperty(e,`timestamp`,{enumerable:!0,get:function(){return ft.timestamp}});var pt=ci();Object.defineProperty(e,`toArray`,{enumerable:!0,get:function(){return pt.toArray}});var mt=mo();Object.defineProperty(e,`window`,{enumerable:!0,get:function(){return mt.window}});var ht=ho();Object.defineProperty(e,`windowCount`,{enumerable:!0,get:function(){return ht.windowCount}});var gt=go();Object.defineProperty(e,`windowTime`,{enumerable:!0,get:function(){return gt.windowTime}});var _t=_o();Object.defineProperty(e,`windowToggle`,{enumerable:!0,get:function(){return _t.windowToggle}});var vt=vo();Object.defineProperty(e,`windowWhen`,{enumerable:!0,get:function(){return vt.windowWhen}});var yt=yo();Object.defineProperty(e,`withLatestFrom`,{enumerable:!0,get:function(){return yt.withLatestFrom}});var bt=xo();Object.defineProperty(e,`zip`,{enumerable:!0,get:function(){return bt.zip}});var xt=So();Object.defineProperty(e,`zipAll`,{enumerable:!0,get:function(){return xt.zipAll}});var St=Co();Object.defineProperty(e,`zipWith`,{enumerable:!0,get:function(){return St.zipWith}})})),To=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CLASS_SERIALIZER_OPTIONS=void 0,e.CLASS_SERIALIZER_OPTIONS=`class_serializer:options`})),Eo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ClassSerializerInterceptor=void 0;var t=k(),n=wo(),r=me(),i=pt(),a=Un(),o=M(),s=To(),c={},l=`Reflector`,u=class{constructor(e,t={}){this.reflector=e,this.defaultOptions=t,c=t?.transformerPackage??(0,a.loadPackage)(`class-transformer`,`ClassSerializerInterceptor`,()=>Gn()),t?.transformerPackage||Gn()}intercept(e,t){let r=this.getContextOptions(e),i={...this.defaultOptions,...r};return t.handle().pipe((0,n.map)(e=>this.serialize(e,i)))}serialize(e,t){return!(0,o.isObject)(e)||e instanceof i.StreamableFile?e:Array.isArray(e)?e.map(e=>this.transformToPlain(e,t)):this.transformToPlain(e,t)}transformToPlain(e,t){if(!e)return e;if(!t.type||e instanceof t.type)return c.classToPlain(e,t);let n=c.plainToInstance(t.type,e,t);return c.classToPlain(n,t)}getContextOptions(e){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[e.getHandler(),e.getClass()])}};e.ClassSerializerInterceptor=u,e.ClassSerializerInterceptor=u=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,r.Inject)(l)),t.__param(1,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object,Object])],u)})),Do=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializeOptions=void 0;var t=je(),n=To();e.SerializeOptions=e=>(0,t.SetMetadata)(n.CLASS_SERIALIZER_OPTIONS,e)})),Oo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(Do(),e)})),ko=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Ao=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Eo(),e),t.__exportStar(Oo(),e),t.__exportStar(ko(),e)})),jo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.forwardRef=void 0,e.forwardRef=e=>({forwardRef:e})})),Mo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(jo(),e)})),U=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;var t=k();m(),t.__exportStar(je(),e),t.__exportStar(Pe(),e),t.__exportStar(rt(),e),t.__exportStar(pt(),e);var n=pn();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,`VERSION_NEUTRAL`,{enumerable:!0,get:function(){return n.VERSION_NEUTRAL}}),t.__exportStar(wn(),e),t.__exportStar(er(),e),t.__exportStar(Ao(),e),t.__exportStar(dt(),e),t.__exportStar(Mo(),e)})),No=c({browser:()=>Yo,default:()=>Xo,description:()=>Io,devDependencies:()=>qo,engines:()=>Jo,exports:()=>zo,funding:()=>Uo,homepage:()=>Ho,keywords:()=>Wo,license:()=>Ko,main:()=>Lo,name:()=>Po,readmeFilename:()=>Go,repository:()=>Vo,scripts:()=>Bo,types:()=>Ro,version:()=>Fo}),Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo=o((()=>{Po=`dotenv`,Fo=`17.2.3`,Io=`Loads environment variables from .env file`,Lo=`lib/main.js`,Ro=`lib/main.d.ts`,zo={".":{types:`./lib/main.d.ts`,require:`./lib/main.js`,default:`./lib/main.js`},"./config":`./config.js`,"./config.js":`./config.js`,"./lib/env-options":`./lib/env-options.js`,"./lib/env-options.js":`./lib/env-options.js`,"./lib/cli-options":`./lib/cli-options.js`,"./lib/cli-options.js":`./lib/cli-options.js`,"./package.json":`./package.json`},Bo={"dts-check":`tsc --project tests/types/tsconfig.json`,lint:`standard`,pretest:`npm run lint && npm run dts-check`,test:`tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000`,"test:coverage":`tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov`,prerelease:`npm test`,release:`standard-version`},Vo={type:`git`,url:`git://github.com/motdotla/dotenv.git`},Ho=`https://github.com/motdotla/dotenv#readme`,Uo=`https://dotenvx.com`,Wo=[`dotenv`,`env`,`.env`,`environment`,`variables`,`config`,`settings`],Go=`README.md`,Ko=`BSD-2-Clause`,qo={"@types/node":`^18.11.3`,decache:`^4.6.2`,sinon:`^14.0.1`,standard:`^17.0.0`,"standard-version":`^9.5.0`,tap:`^19.2.0`,typescript:`^4.8.4`},Jo={node:`>=12`},Yo={fs:!1},Xo={name:Po,version:Fo,description:Io,main:Lo,types:Ro,exports:zo,scripts:Bo,repository:Vo,homepage:Ho,funding:Uo,keywords:Wo,readmeFilename:Go,license:Ko,devDependencies:qo,engines:Jo,browser:Yo}})),Qo=s(((e,t)=>{var n=require(`fs`),r=require(`path`),i=require(`os`),a=require(`crypto`),o=(Zo(),d(No).default).version,s=[`🔐 encrypt with Dotenvx: https://dotenvx.com`,`🔐 prevent committing .env to code: https://dotenvx.com/precommit`,`🔐 prevent building .env in docker: https://dotenvx.com/prebuild`,`📡 add observability to secrets: https://dotenvx.com/ops`,`👥 sync secrets across teammates & machines: https://dotenvx.com/ops`,`🗂️ backup and recover secrets: https://dotenvx.com/ops`,`✅ audit secrets and track compliance: https://dotenvx.com/ops`,`🔄 add secrets lifecycle management: https://dotenvx.com/ops`,`🔑 add access controls to secrets: https://dotenvx.com/ops`,"🛠️ run anywhere with `dotenvx run -- yourcommand`",`⚙️ specify custom .env file path with { path: '/custom/path/.env' }`,`⚙️ enable debug logging with { debug: true }`,`⚙️ override existing env vars with { override: true }`,`⚙️ suppress all logs with { quiet: true }`,`⚙️ write to custom object with { processEnv: myObject }`,`⚙️ load multiple .env files with { path: ['.env.local', '.env'] }`];function c(){return s[Math.floor(Math.random()*s.length)]}function l(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function u(){return process.stdout.isTTY}function f(e){return u()?`\x1b[2m${e}\x1b[0m`:e}var p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function m(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
5
|
+
`):``,this.name=`UnsubscriptionError`,this.errors=t}})})),rr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.arrRemove=void 0;function t(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}e.arrRemove=t})),ir=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.isSubscription=e.EMPTY_SUBSCRIPTION=e.Subscription=void 0;var i=L(),a=nr(),o=rr(),s=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,o,s,c,u;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var f=t(d),p=f.next();!p.done;p=f.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(e)throw e.error}}else d.remove(this);var m=this.initialTeardown;if(i.isFunction(m))try{m()}catch(e){u=e instanceof a.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=t(h),_=g.next();!_.done;_=g.next()){var v=_.value;try{l(v)}catch(e){u??=[],e instanceof a.UnsubscriptionError?u=r(r([],n(u)),n(e.errors)):u.push(e)}}}catch(e){s={error:e}}finally{try{_&&!_.done&&(c=g.return)&&c.call(g)}finally{if(s)throw s.error}}}if(u)throw new a.UnsubscriptionError(u)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&o.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&o.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}();e.Subscription=s,e.EMPTY_SUBSCRIPTION=s.EMPTY;function c(e){return e instanceof s||e&&`closed`in e&&i.isFunction(e.remove)&&i.isFunction(e.add)&&i.isFunction(e.unsubscribe)}e.isSubscription=c;function l(e){i.isFunction(e)?e():e.unsubscribe()}})),ar=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.config=void 0,e.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}})),or=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=e.timeoutProvider.delegate;return s?.setTimeout?s.setTimeout.apply(s,n([r,i],t(a))):setTimeout.apply(void 0,n([r,i],t(a)))},clearTimeout:function(t){return(e.timeoutProvider.delegate?.clearTimeout||clearTimeout)(t)},delegate:void 0}})),sr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reportUnhandledError=void 0;var t=ar(),n=or();function r(e){n.timeoutProvider.setTimeout(function(){var n=t.config.onUnhandledError;if(n)n(e);else throw e})}e.reportUnhandledError=r})),cr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.noop=void 0;function t(){}e.noop=t})),lr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createNotification=e.nextNotification=e.errorNotification=e.COMPLETE_NOTIFICATION=void 0,e.COMPLETE_NOTIFICATION=(function(){return r(`C`,void 0,void 0)})();function t(e){return r(`E`,void 0,e)}e.errorNotification=t;function n(e){return r(`N`,e,void 0)}e.nextNotification=n;function r(e,t,n){return{kind:e,value:t,error:n}}e.createNotification=r})),ur=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.captureError=e.errorContext=void 0;var t=ar(),n=null;function r(e){if(t.config.useDeprecatedSynchronousErrorHandling){var r=!n;if(r&&(n={errorThrown:!1,error:null}),e(),r){var i=n,a=i.errorThrown,o=i.error;if(n=null,a)throw o}}else e()}e.errorContext=r;function i(e){t.config.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}e.captureError=i})),dr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var n=L(),r=ir(),i=ar(),a=sr(),o=cr(),s=lr(),c=or(),l=ur(),u=function(n){t(i,n);function i(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,r.isSubscription(t)&&t.add(i)):i.destination=e.EMPTY_OBSERVER,i}return i.create=function(e,t,n){return new m(e,t,n)},i.prototype.next=function(e){this.isStopped?_(s.nextNotification(e),this):this._next(e)},i.prototype.error=function(e){this.isStopped?_(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped?_(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(r.Subscription);e.Subscriber=u;var d=Function.prototype.bind;function f(e,t){return d.call(e,t)}var p=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),m=function(e){t(r,e);function r(t,r,a){var o=e.call(this)||this,s;if(n.isFunction(t)||!t)s={next:t??void 0,error:r??void 0,complete:a??void 0};else{var c;o&&i.config.useDeprecatedNextContext?(c=Object.create(t),c.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&f(t.next,c),error:t.error&&f(t.error,c),complete:t.complete&&f(t.complete,c)}):s=t}return o.destination=new p(s),o}return r}(u);e.SafeSubscriber=m;function h(e){i.config.useDeprecatedSynchronousErrorHandling?l.captureError(e):a.reportUnhandledError(e)}function g(e){throw e}function _(e,t){var n=i.config.onStoppedNotification;n&&c.timeoutProvider.setTimeout(function(){return n(e,t)})}e.EMPTY_OBSERVER={closed:!0,next:o.noop,error:g,complete:o.noop}})),fr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observable=void 0,e.observable=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})()})),pr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.identity=void 0;function t(e){return e}e.identity=t})),mr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pipeFromArray=e.pipe=void 0;var t=pr();function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}e.pipe=n;function r(e){return e.length===0?t.identity:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.pipeFromArray=r})),z=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=void 0;var t=dr(),n=ir(),r=fr(),i=mr(),a=ar(),o=L(),s=ur();e.Observable=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,n,r){var i=this,a=u(e)?e:new t.SafeSubscriber(e,n,r);return s.errorContext(function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,n){var r=this;return n=c(n),new n(function(n,i){var a=new t.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),a.unsubscribe()}},error:i,complete:n});r.subscribe(a)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[r.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=c(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function c(e){return e??a.config.Promise??Promise}function l(e){return e&&o.isFunction(e.next)&&o.isFunction(e.error)&&o.isFunction(e.complete)}function u(e){return e&&e instanceof t.Subscriber||l(e)&&n.isSubscription(e)}})),hr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isInteropObservable=void 0;var t=fr(),n=L();function r(e){return n.isFunction(e[t.observable])}e.isInteropObservable=r})),gr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isAsyncIterable=void 0;var t=L();function n(e){return Symbol.asyncIterator&&t.isFunction(e?.[Symbol.asyncIterator])}e.isAsyncIterable=n})),_r=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createInvalidObservableTypeError=void 0;function t(e){return TypeError(`You provided `+(typeof e==`object`&&e?`an invalid object`:`'`+e+`'`)+` where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}e.createInvalidObservableTypeError=t})),vr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.iterator=e.getSymbolIterator=void 0;function t(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}e.getSymbolIterator=t,e.iterator=t()})),yr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isIterable=void 0;var t=vr(),n=L();function r(e){return n.isFunction(e?.[t.iterator])}e.isIterable=r})),br=s((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},n=e&&e.__await||function(e){return this instanceof n?(this.v=e,this):new n(e)},r=e&&e.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,t||[]),a,o=[];return a={},s(`next`),s(`throw`),s(`return`),a[Symbol.asyncIterator]=function(){return this},a;function s(e){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||c(e,t)})})}function c(e,t){try{l(i[e](t))}catch(e){f(o[0][3],e)}}function l(e){e.value instanceof n?Promise.resolve(e.value.v).then(u,d):f(o[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(e,`__esModule`,{value:!0}),e.isReadableStreamLike=e.readableStreamLikeToAsyncGenerator=void 0;var i=L();function a(e){return r(this,arguments,function(){var r,i,a,o;return t(this,function(t){switch(t.label){case 0:r=e.getReader(),t.label=1;case 1:t.trys.push([1,,9,10]),t.label=2;case 2:return[4,n(r.read())];case 3:return i=t.sent(),a=i.value,o=i.done,o?[4,n(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,n(a)];case 6:return[4,t.sent()];case 7:return t.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}e.readableStreamLikeToAsyncGenerator=a;function o(e){return i.isFunction(e?.getReader)}e.isReadableStreamLike=o})),B=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},r=e&&e.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof i==`function`?i(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),a(r,i,n.done,n.value)})}}function a(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.fromReadableStreamLike=e.fromAsyncIterable=e.fromIterable=e.fromPromise=e.fromArrayLike=e.fromInteropObservable=e.innerFrom=void 0;var a=$n(),o=er(),s=z(),c=hr(),l=gr(),u=_r(),d=yr(),f=br(),p=L(),m=sr(),h=fr();function g(e){if(e instanceof s.Observable)return e;if(e!=null){if(c.isInteropObservable(e))return _(e);if(a.isArrayLike(e))return v(e);if(o.isPromise(e))return y(e);if(l.isAsyncIterable(e))return x(e);if(d.isIterable(e))return b(e);if(f.isReadableStreamLike(e))return S(e)}throw u.createInvalidObservableTypeError(e)}e.innerFrom=g;function _(e){return new s.Observable(function(t){var n=e[h.observable]();if(p.isFunction(n.subscribe))return n.subscribe(t);throw TypeError(`Provided object does not correctly implement Symbol.observable`)})}e.fromInteropObservable=_;function v(e){return new s.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}e.fromArrayLike=v;function y(e){return new s.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,m.reportUnhandledError)})}e.fromPromise=y;function b(e){return new s.Observable(function(t){var n,r;try{for(var a=i(e),o=a.next();!o.done;o=a.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()})}e.fromIterable=b;function x(e){return new s.Observable(function(t){C(e,t).catch(function(e){return t.error(e)})})}e.fromAsyncIterable=x;function S(e){return x(f.readableStreamLikeToAsyncGenerator(e))}e.fromReadableStreamLike=S;function C(e,i){var a,o,s,c;return t(this,void 0,void 0,function(){var t,l;return n(this,function(n){switch(n.label){case 0:n.trys.push([0,5,6,11]),a=r(e),n.label=1;case 1:return[4,a.next()];case 2:if(o=n.sent(),o.done)return[3,4];if(t=o.value,i.next(t),i.closed)return[2];n.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=n.sent(),s={error:l},[3,11];case 6:return n.trys.push([6,,9,10]),o&&!o.done&&(c=a.return)?[4,c.call(a)]:[3,8];case 7:n.sent(),n.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return i.complete(),[2]}})})}})),V=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.OperatorSubscriber=e.createOperatorSubscriber=void 0;var n=dr();function r(e,t,n,r,a){return new i(e,t,n,r,a)}e.createOperatorSubscriber=r;var i=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},n}(n.Subscriber);e.OperatorSubscriber=i})),xr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.audit=void 0;var t=R(),n=B(),r=V();function i(e){return t.operate(function(t,i){var a=!1,o=null,s=null,c=!1,l=function(){if(s?.unsubscribe(),s=null,a){a=!1;var e=o;o=null,i.next(e)}c&&i.complete()},u=function(){s=null,c&&i.complete()};t.subscribe(r.createOperatorSubscriber(i,function(t){a=!0,o=t,s||n.innerFrom(e(t)).subscribe(s=r.createOperatorSubscriber(i,l,u))},function(){c=!0,(!a||!s||s.closed)&&i.complete()}))})}e.audit=i})),Sr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Action=void 0,e.Action=function(e){t(n,e);function n(t,n){return e.call(this)||this}return n.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},n}(ir().Subscription)})),Cr=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(r,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=e.intervalProvider.delegate;return s?.setInterval?s.setInterval.apply(s,n([r,i],t(a))):setInterval.apply(void 0,n([r,i],t(a)))},clearInterval:function(t){return(e.intervalProvider.delegate?.clearInterval||clearInterval)(t)},delegate:void 0}})),wr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncAction=void 0;var n=Sr(),r=Cr(),i=rr();e.AsyncAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this},n.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),r.intervalProvider.setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&r.intervalProvider.clearInterval(t)},n.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,a=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,i.arrRemove(a,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(n.Action)})),Tr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})),Er=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scheduler=void 0;var t=Tr();e.Scheduler=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=t.dateTimestampProvider.now,e}()})),Dr=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncScheduler=void 0;var n=Er();e.AsyncScheduler=function(e){t(r,e);function r(t,r){r===void 0&&(r=n.Scheduler.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return r.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},r}(n.Scheduler)})),Or=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.async=e.asyncScheduler=void 0;var t=wr();e.asyncScheduler=new(Dr()).AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})),kr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isScheduler=void 0;var t=L();function n(e){return e&&t.isFunction(e.schedule)}e.isScheduler=n})),Ar=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isValidDate=void 0;function t(e){return e instanceof Date&&!isNaN(e)}e.isValidDate=t})),jr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timer=void 0;var t=z(),n=Or(),r=kr(),i=Ar();function a(e,a,o){e===void 0&&(e=0),o===void 0&&(o=n.async);var s=-1;return a!=null&&(r.isScheduler(a)?o=a:s=a),new t.Observable(function(t){var n=i.isValidDate(e)?+e-o.now():e;n<0&&(n=0);var r=0;return o.schedule(function(){t.closed||(t.next(r++),0<=s?this.schedule(void 0,s):t.complete())},n)})}e.timer=a})),Mr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.auditTime=void 0;var t=Or(),n=xr(),r=jr();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.audit(function(){return r.timer(e,i)})}e.auditTime=i})),Nr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buffer=void 0;var t=R(),n=cr(),r=V(),i=B();function a(e){return t.operate(function(t,a){var o=[];return t.subscribe(r.createOperatorSubscriber(a,function(e){return o.push(e)},function(){a.next(o),a.complete()})),i.innerFrom(e).subscribe(r.createOperatorSubscriber(a,function(){var e=o;o=[],a.next(e)},n.noop)),function(){o=null}})}e.buffer=a})),Pr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferCount=void 0;var n=R(),r=V(),i=rr();function a(e,a){return a===void 0&&(a=null),a??=e,n.operate(function(n,o){var s=[],c=0;n.subscribe(r.createOperatorSubscriber(o,function(n){var r,l,u,d,f=null;c++%a===0&&s.push([]);try{for(var p=t(s),m=p.next();!m.done;m=p.next()){var h=m.value;h.push(n),e<=h.length&&(f??=[],f.push(h))}}catch(e){r={error:e}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(r)throw r.error}}if(f)try{for(var g=t(f),_=g.next();!_.done;_=g.next()){var h=_.value;i.arrRemove(s,h),o.next(h)}}catch(e){u={error:e}}finally{try{_&&!_.done&&(d=g.return)&&d.call(g)}finally{if(u)throw u.error}}},function(){var e,n;try{for(var r=t(s),i=r.next();!i.done;i=r.next()){var a=i.value;o.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}o.complete()},void 0,function(){s=null}))})}e.bufferCount=a})),Fr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.popNumber=e.popScheduler=e.popResultSelector=void 0;var t=L(),n=kr();function r(e){return e[e.length-1]}function i(e){return t.isFunction(r(e))?e.pop():void 0}e.popResultSelector=i;function a(e){return n.isScheduler(r(e))?e.pop():void 0}e.popScheduler=a;function o(e,t){return typeof r(e)==`number`?e.pop():t}e.popNumber=o})),Ir=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.executeSchedule=void 0;function t(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}e.executeSchedule=t})),Lr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferTime=void 0;var n=ir(),r=R(),i=V(),a=rr(),o=Or(),s=Fr(),c=Ir();function l(e){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var d=s.popScheduler(l)??o.asyncScheduler,f=l[0]??null,p=l[1]||1/0;return r.operate(function(r,o){var s=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(s,e),o.next(t),l&&m()},m=function(){if(s){var t=new n.Subscription;o.add(t);var r={buffer:[],subs:t};s.push(r),c.executeSchedule(t,d,function(){return u(r)},e)}};f!==null&&f>=0?c.executeSchedule(o,d,m,f,!0):l=!0,m();var h=i.createOperatorSubscriber(o,function(e){var n,r,i=s.slice();try{for(var a=t(i),o=a.next();!o.done;o=a.next()){var c=o.value,l=c.buffer;l.push(e),p<=l.length&&u(c)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},function(){for(;s?.length;)o.next(s.shift().buffer);h?.unsubscribe(),o.complete(),o.unsubscribe()},void 0,function(){return s=null});r.subscribe(h)})}e.bufferTime=l})),Rr=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferToggle=void 0;var n=ir(),r=R(),i=B(),a=V(),o=cr(),s=rr();function c(e,c){return r.operate(function(r,l){var u=[];i.innerFrom(e).subscribe(a.createOperatorSubscriber(l,function(e){var t=[];u.push(t);var r=new n.Subscription;r.add(i.innerFrom(c(e)).subscribe(a.createOperatorSubscriber(l,function(){s.arrRemove(u,t),l.next(t),r.unsubscribe()},o.noop)))},o.noop)),r.subscribe(a.createOperatorSubscriber(l,function(e){var n,r;try{for(var i=t(u),a=i.next();!a.done;a=i.next())a.value.push(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},function(){for(;u.length>0;)l.next(u.shift());l.complete()}))})}e.bufferToggle=c})),zr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bufferWhen=void 0;var t=R(),n=cr(),r=V(),i=B();function a(e){return t.operate(function(t,a){var o=null,s=null,c=function(){s?.unsubscribe();var t=o;o=[],t&&a.next(t),i.innerFrom(e()).subscribe(s=r.createOperatorSubscriber(a,c,n.noop))};c(),t.subscribe(r.createOperatorSubscriber(a,function(e){return o?.push(e)},function(){o&&a.next(o),a.complete()},void 0,function(){return o=s=null}))})}e.bufferWhen=a})),Br=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.catchError=void 0;var t=B(),n=V(),r=R();function i(e){return r.operate(function(r,a){var o=null,s=!1,c;o=r.subscribe(n.createOperatorSubscriber(a,void 0,void 0,function(n){c=t.innerFrom(e(n,i(e)(r))),o?(o.unsubscribe(),o=null,c.subscribe(a)):s=!0})),s&&(o.unsubscribe(),o=null,c.subscribe(a))})}e.catchError=i})),Vr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.argsArgArrayOrObject=void 0;var t=Array.isArray,n=Object.getPrototypeOf,r=Object.prototype,i=Object.keys;function a(e){if(e.length===1){var n=e[0];if(t(n))return{args:n,keys:null};if(o(n)){var r=i(n);return{args:r.map(function(e){return n[e]}),keys:r}}}return{args:e,keys:null}}e.argsArgArrayOrObject=a;function o(e){return e&&typeof e==`object`&&n(e)===r}})),Hr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observeOn=void 0;var t=Ir(),n=R(),r=V();function i(e,i){return i===void 0&&(i=0),n.operate(function(n,a){n.subscribe(r.createOperatorSubscriber(a,function(n){return t.executeSchedule(a,e,function(){return a.next(n)},i)},function(){return t.executeSchedule(a,e,function(){return a.complete()},i)},function(n){return t.executeSchedule(a,e,function(){return a.error(n)},i)}))})}e.observeOn=i})),Ur=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.subscribeOn=void 0;var t=R();function n(e,n){return n===void 0&&(n=0),t.operate(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}e.subscribeOn=n})),Wr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleObservable=void 0;var t=B(),n=Hr(),r=Ur();function i(e,i){return t.innerFrom(e).pipe(r.subscribeOn(i),n.observeOn(i))}e.scheduleObservable=i})),Gr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.schedulePromise=void 0;var t=B(),n=Hr(),r=Ur();function i(e,i){return t.innerFrom(e).pipe(r.subscribeOn(i),n.observeOn(i))}e.schedulePromise=i})),Kr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleArray=void 0;var t=z();function n(e,n){return new t.Observable(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}e.scheduleArray=n})),qr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleIterable=void 0;var t=z(),n=vr(),r=L(),i=Ir();function a(e,a){return new t.Observable(function(t){var o;return i.executeSchedule(t,a,function(){o=e[n.iterator](),i.executeSchedule(t,a,function(){var e,n,r;try{e=o.next(),n=e.value,r=e.done}catch(e){t.error(e);return}r?t.complete():t.next(n)},0,!0)}),function(){return r.isFunction(o?.return)&&o.return()}})}e.scheduleIterable=a})),Jr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleAsyncIterable=void 0;var t=z(),n=Ir();function r(e,r){if(!e)throw Error(`Iterable cannot be null`);return new t.Observable(function(t){n.executeSchedule(t,r,function(){var i=e[Symbol.asyncIterator]();n.executeSchedule(t,r,function(){i.next().then(function(e){e.done?t.complete():t.next(e.value)})},0,!0)})})}e.scheduleAsyncIterable=r})),Yr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduleReadableStreamLike=void 0;var t=Jr(),n=br();function r(e,r){return t.scheduleAsyncIterable(n.readableStreamLikeToAsyncGenerator(e),r)}e.scheduleReadableStreamLike=r})),Xr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scheduled=void 0;var t=Wr(),n=Gr(),r=Kr(),i=qr(),a=Jr(),o=hr(),s=er(),c=$n(),l=yr(),u=gr(),d=_r(),f=br(),p=Yr();function m(e,m){if(e!=null){if(o.isInteropObservable(e))return t.scheduleObservable(e,m);if(c.isArrayLike(e))return r.scheduleArray(e,m);if(s.isPromise(e))return n.schedulePromise(e,m);if(u.isAsyncIterable(e))return a.scheduleAsyncIterable(e,m);if(l.isIterable(e))return i.scheduleIterable(e,m);if(f.isReadableStreamLike(e))return p.scheduleReadableStreamLike(e,m)}throw d.createInvalidObservableTypeError(e)}e.scheduled=m})),Zr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.from=void 0;var t=Xr(),n=B();function r(e,r){return r?t.scheduled(e,r):n.innerFrom(e)}e.from=r})),Qr=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.map=void 0;var t=R(),n=V();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){i.next(e.call(r,t,a++))}))})}e.map=r})),$r=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.mapOneOrManyArgs=void 0;var r=Qr(),i=Array.isArray;function a(e,r){return i(r)?e.apply(void 0,n([],t(r))):e(r)}function o(e){return r.map(function(t){return a(e,t)})}e.mapOneOrManyArgs=o})),ei=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createObject=void 0;function t(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}e.createObject=t})),ti=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestInit=e.combineLatest=void 0;var t=z(),n=Vr(),r=Zr(),i=pr(),a=$r(),o=Fr(),s=ei(),c=V(),l=Ir();function u(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=o.popScheduler(e),u=o.popResultSelector(e),f=n.argsArgArrayOrObject(e),p=f.args,m=f.keys;if(p.length===0)return r.from([],l);var h=new t.Observable(d(p,l,m?function(e){return s.createObject(m,e)}:i.identity));return u?h.pipe(a.mapOneOrManyArgs(u)):h}e.combineLatest=u;function d(e,t,n){return n===void 0&&(n=i.identity),function(i){f(t,function(){for(var a=e.length,o=Array(a),s=a,l=a,u=function(a){f(t,function(){var u=r.from(e[a],t),d=!1;u.subscribe(c.createOperatorSubscriber(i,function(e){o[a]=e,d||(d=!0,l--),l||i.next(n(o.slice()))},function(){--s||i.complete()}))},i)},d=0;d<a;d++)u(d)},i)}}e.combineLatestInit=d;function f(e,t,n){e?l.executeSchedule(n,e,t):t()}})),ni=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeInternals=void 0;var t=B(),n=Ir(),r=V();function i(e,i,a,o,s,c,l,u){var d=[],f=0,p=0,m=!1,h=function(){m&&!d.length&&!f&&i.complete()},g=function(e){return f<o?_(e):d.push(e)},_=function(e){c&&i.next(e),f++;var u=!1;t.innerFrom(a(e,p++)).subscribe(r.createOperatorSubscriber(i,function(e){s?.(e),c?g(e):i.next(e)},function(){u=!0},void 0,function(){if(u)try{f--;for(var e=function(){var e=d.shift();l?n.executeSchedule(i,l,function(){return _(e)}):_(e)};d.length&&f<o;)e();h()}catch(e){i.error(e)}}))};return e.subscribe(r.createOperatorSubscriber(i,g,function(){m=!0,h()})),function(){u?.()}}e.mergeInternals=i})),ri=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeMap=void 0;var t=Qr(),n=B(),r=R(),i=ni(),a=L();function o(e,s,c){return c===void 0&&(c=1/0),a.isFunction(s)?o(function(r,i){return t.map(function(e,t){return s(r,e,i,t)})(n.innerFrom(e(r,i)))},c):(typeof s==`number`&&(c=s),r.operate(function(t,n){return i.mergeInternals(t,n,e,c)}))}e.mergeMap=o})),ii=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scanInternals=void 0;var t=V();function n(e,n,r,i,a){return function(o,s){var c=r,l=n,u=0;o.subscribe(t.createOperatorSubscriber(s,function(t){var n=u++;l=c?e(l,t,n):(c=!0,t),i&&s.next(l)},a&&(function(){c&&s.next(l),s.complete()})))}}e.scanInternals=n})),ai=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reduce=void 0;var t=ii(),n=R();function r(e,r){return n.operate(t.scanInternals(e,r,arguments.length>=2,!1,!0))}e.reduce=r})),oi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.toArray=void 0;var t=ai(),n=R(),r=function(e,t){return e.push(t),e};function i(){return n.operate(function(e,n){t.reduce(r,[])(e).subscribe(n)})}e.toArray=i})),si=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.joinAllInternals=void 0;var t=pr(),n=$r(),r=mr(),i=ri(),a=oi();function o(e,o){return r.pipe(a.toArray(),i.mergeMap(function(t){return e(t)}),o?n.mapOneOrManyArgs(o):t.identity)}e.joinAllInternals=o})),ci=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestAll=void 0;var t=ti(),n=si();function r(e){return n.joinAllInternals(t.combineLatest,e)}e.combineLatestAll=r})),li=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.combineAll=void 0,e.combineAll=ci().combineLatestAll})),ui=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;function n(e){return e.length===1&&t(e[0])?e[0]:e}e.argsOrArgArray=n})),di=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatest=void 0;var r=ti(),i=R(),a=ui(),o=$r(),s=mr(),c=Fr();function l(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];var d=c.popResultSelector(e);return d?s.pipe(l.apply(void 0,n([],t(e))),o.mapOneOrManyArgs(d)):i.operate(function(i,o){r.combineLatestInit(n([i],t(a.argsOrArgArray(e))))(o)})}e.combineLatest=l})),fi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.combineLatestWith=void 0;var r=di();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.combineLatest.apply(void 0,n([],t(e)))}e.combineLatestWith=i})),pi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeAll=void 0;var t=ri(),n=pr();function r(e){return e===void 0&&(e=1/0),t.mergeMap(n.identity,e)}e.mergeAll=r})),mi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatAll=void 0;var t=pi();function n(){return t.mergeAll(1)}e.concatAll=n})),hi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=void 0;var r=R(),i=mi(),a=Fr(),o=Zr();function s(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var c=a.popScheduler(e);return r.operate(function(r,a){i.concatAll()(o.from(n([r],t(e)),c)).subscribe(a)})}e.concat=s})),gi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatMap=void 0;var t=ri(),n=L();function r(e,r){return n.isFunction(r)?t.mergeMap(e,r,1):t.mergeMap(e,1)}e.concatMap=r})),_i=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concatMapTo=void 0;var t=gi(),n=L();function r(e,r){return n.isFunction(r)?t.concatMap(function(){return e},r):t.concatMap(function(){return e})}e.concatMapTo=r})),vi=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.concatWith=void 0;var r=hi();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.concat.apply(void 0,n([],t(e)))}e.concatWith=i})),yi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ObjectUnsubscribedError=void 0,e.ObjectUnsubscribedError=tr().createErrorClass(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}})})),bi=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.AnonymousSubject=e.Subject=void 0;var r=z(),i=ir(),a=yi(),o=rr(),s=ur(),c=function(e){t(c,e);function c(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return c.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},c.prototype._throwIfClosed=function(){if(this.closed)throw new a.ObjectUnsubscribedError},c.prototype.next=function(e){var t=this;s.errorContext(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var a=n(t.currentObservers),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}})},c.prototype.error=function(e){var t=this;s.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},c.prototype.complete=function(){var e=this;s.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},c.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(c.prototype,`observed`,{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),c.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},c.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},c.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,s=n.observers;return r||a?i.EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(e),new i.Subscription(function(){t.currentObservers=null,o.arrRemove(s,e)}))},c.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},c.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},c.create=function(e,t){return new l(e,t)},c}(r.Observable);e.Subject=c;var l=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return n.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},n.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},n.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},n.prototype._subscribe=function(e){return this.source?.subscribe(e)??i.EMPTY_SUBSCRIPTION},n}(c);e.AnonymousSubject=l})),xi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fromSubscribable=void 0;var t=z();function n(e){return new t.Observable(function(t){return e.subscribe(t)})}e.fromSubscribable=n})),Si=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.connect=void 0;var t=bi(),n=B(),r=R(),i=xi(),a={connector:function(){return new t.Subject}};function o(e,t){t===void 0&&(t=a);var o=t.connector;return r.operate(function(t,r){var a=o();n.innerFrom(e(i.fromSubscribable(a))).subscribe(r),r.add(t.subscribe(a))})}e.connect=o})),Ci=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.count=void 0;var t=ai();function n(e){return t.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}e.count=n})),wi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounce=void 0;var t=R(),n=cr(),r=V(),i=B();function a(e){return t.operate(function(t,a){var o=!1,s=null,c=null,l=function(){if(c?.unsubscribe(),c=null,o){o=!1;var e=s;s=null,a.next(e)}};t.subscribe(r.createOperatorSubscriber(a,function(t){c?.unsubscribe(),o=!0,s=t,c=r.createOperatorSubscriber(a,l,n.noop),i.innerFrom(e(t)).subscribe(c)},function(){l(),a.complete()},void 0,function(){s=c=null}))})}e.debounce=a})),Ti=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.debounceTime=void 0;var t=Or(),n=R(),r=V();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.operate(function(t,n){var a=null,o=null,s=null,c=function(){if(a){a.unsubscribe(),a=null;var e=o;o=null,n.next(e)}};function l(){var t=s+e,r=i.now();if(r<t){a=this.schedule(void 0,t-r),n.add(a);return}c()}t.subscribe(r.createOperatorSubscriber(n,function(t){o=t,s=i.now(),a||(a=i.schedule(l,e),n.add(a))},function(){c(),n.complete()},void 0,function(){o=a=null}))})}e.debounceTime=i})),Ei=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultIfEmpty=void 0;var t=R(),n=V();function r(e){return t.operate(function(t,r){var i=!1;t.subscribe(n.createOperatorSubscriber(r,function(e){i=!0,r.next(e)},function(){i||r.next(e),r.complete()}))})}e.defaultIfEmpty=r})),Di=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.concat=void 0;var t=mi(),n=Fr(),r=Zr();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.concatAll()(r.from(e,n.popScheduler(e)))}e.concat=i})),Oi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.empty=e.EMPTY=void 0;var t=z();e.EMPTY=new t.Observable(function(e){return e.complete()});function n(t){return t?r(t):e.EMPTY}e.empty=n;function r(e){return new t.Observable(function(t){return e.schedule(function(){return t.complete()})})}})),ki=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.take=void 0;var t=Oi(),n=R(),r=V();function i(e){return e<=0?function(){return t.EMPTY}:n.operate(function(t,n){var i=0;t.subscribe(r.createOperatorSubscriber(n,function(t){++i<=e&&(n.next(t),e<=i&&n.complete())}))})}e.take=i})),Ai=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ignoreElements=void 0;var t=R(),n=V(),r=cr();function i(){return t.operate(function(e,t){e.subscribe(n.createOperatorSubscriber(t,r.noop))})}e.ignoreElements=i})),ji=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapTo=void 0;var t=Qr();function n(e){return t.map(function(){return e})}e.mapTo=n})),Mi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.delayWhen=void 0;var t=Di(),n=ki(),r=Ai(),i=ji(),a=ri(),o=B();function s(e,c){return c?function(i){return t.concat(c.pipe(n.take(1),r.ignoreElements()),i.pipe(s(e)))}:a.mergeMap(function(t,r){return o.innerFrom(e(t,r)).pipe(n.take(1),i.mapTo(t))})}e.delayWhen=s})),Ni=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.delay=void 0;var t=Or(),n=Mi(),r=jr();function i(e,i){i===void 0&&(i=t.asyncScheduler);var a=r.timer(e,i);return n.delayWhen(function(){return a})}e.delay=i})),Pi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.of=void 0;var t=Fr(),n=Zr();function r(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.popScheduler(e);return n.from(e,i)}e.of=r})),Fi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throwError=void 0;var t=z(),n=L();function r(e,r){var i=n.isFunction(e)?e:function(){return e},a=function(e){return e.error(i())};return new t.Observable(r?function(e){return r.schedule(a,0,e)}:a)}e.throwError=r})),Ii=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=Oi(),n=Pi(),r=Fi(),i=L();(function(e){e.NEXT=`N`,e.ERROR=`E`,e.COMPLETE=`C`})(e.NotificationKind||={}),e.Notification=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e===`N`}return e.prototype.observe=function(e){return a(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,a=r.value,o=r.error;return i===`N`?e?.(a):i===`E`?t?.(o):n?.()},e.prototype.accept=function(e,t,n){return i.isFunction(e?.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,i=e.kind,a=e.value,o=e.error,s=i===`N`?n.of(a):i===`E`?r.throwError(function(){return o}):i===`C`?t.EMPTY:0;if(!s)throw TypeError(`Unexpected notification kind `+i);return s},e.createNext=function(t){return new e(`N`,t)},e.createError=function(t){return new e(`E`,void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e(`C`),e}();function a(e,t){var n,r,i,a=e,o=a.kind,s=a.value,c=a.error;if(typeof o!=`string`)throw TypeError(`Invalid notification, missing "kind"`);o===`N`?(n=t.next)==null||n.call(t,s):o===`E`?(r=t.error)==null||r.call(t,c):(i=t.complete)==null||i.call(t)}e.observeNotification=a})),Li=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dematerialize=void 0;var t=Ii(),n=R(),r=V();function i(){return n.operate(function(e,n){e.subscribe(r.createOperatorSubscriber(n,function(e){return t.observeNotification(e,n)}))})}e.dematerialize=i})),Ri=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinct=void 0;var t=R(),n=V(),r=cr(),i=B();function a(e,a){return t.operate(function(t,o){var s=new Set;t.subscribe(n.createOperatorSubscriber(o,function(t){var n=e?e(t):t;s.has(n)||(s.add(n),o.next(t))})),a&&i.innerFrom(a).subscribe(n.createOperatorSubscriber(o,function(){return s.clear()},r.noop))})}e.distinct=a})),zi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinctUntilChanged=void 0;var t=pr(),n=R(),r=V();function i(e,i){return i===void 0&&(i=t.identity),e??=a,n.operate(function(t,n){var a,o=!0;t.subscribe(r.createOperatorSubscriber(n,function(t){var r=i(t);(o||!e(a,r))&&(o=!1,a=r,n.next(t))}))})}e.distinctUntilChanged=i;function a(e,t){return e===t}})),Bi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.distinctUntilKeyChanged=void 0;var t=zi();function n(e,n){return t.distinctUntilChanged(function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})}e.distinctUntilKeyChanged=n})),Vi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ArgumentOutOfRangeError=void 0,e.ArgumentOutOfRangeError=tr().createErrorClass(function(e){return function(){e(this),this.name=`ArgumentOutOfRangeError`,this.message=`argument out of range`}})})),Hi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.filter=void 0;var t=R(),n=V();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){return e.call(r,t,a++)&&i.next(t)}))})}e.filter=r})),Ui=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EmptyError=void 0,e.EmptyError=tr().createErrorClass(function(e){return function(){e(this),this.name=`EmptyError`,this.message=`no elements in sequence`}})})),Wi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throwIfEmpty=void 0;var t=Ui(),n=R(),r=V();function i(e){return e===void 0&&(e=a),n.operate(function(t,n){var i=!1;t.subscribe(r.createOperatorSubscriber(n,function(e){i=!0,n.next(e)},function(){return i?n.complete():n.error(e())}))})}e.throwIfEmpty=i;function a(){return new t.EmptyError}})),Gi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.elementAt=void 0;var t=Vi(),n=Hi(),r=Wi(),i=Ei(),a=ki();function o(e,o){if(e<0)throw new t.ArgumentOutOfRangeError;var s=arguments.length>=2;return function(c){return c.pipe(n.filter(function(t,n){return n===e}),a.take(1),s?i.defaultIfEmpty(o):r.throwIfEmpty(function(){return new t.ArgumentOutOfRangeError}))}}e.elementAt=o})),Ki=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.endWith=void 0;var r=Di(),i=Pi();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return function(a){return r.concat(a,i.of.apply(void 0,n([],t(e))))}}e.endWith=a})),qi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.every=void 0;var t=R(),n=V();function r(e,r){return t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(n){e.call(r,n,a++,t)||(i.next(!1),i.complete())},function(){i.next(!0),i.complete()}))})}e.every=r})),Ji=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaustMap=void 0;var t=Qr(),n=B(),r=R(),i=V();function a(e,o){return o?function(r){return r.pipe(a(function(r,i){return n.innerFrom(e(r,i)).pipe(t.map(function(e,t){return o(r,e,i,t)}))}))}:r.operate(function(t,r){var a=0,o=null,s=!1;t.subscribe(i.createOperatorSubscriber(r,function(t){o||(o=i.createOperatorSubscriber(r,void 0,function(){o=null,s&&r.complete()}),n.innerFrom(e(t,a++)).subscribe(o))},function(){s=!0,!o&&r.complete()}))})}e.exhaustMap=a})),Yi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaustAll=void 0;var t=Ji(),n=pr();function r(){return t.exhaustMap(n.identity)}e.exhaustAll=r})),Xi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.exhaust=void 0,e.exhaust=Yi().exhaustAll})),Zi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.expand=void 0;var t=R(),n=ni();function r(e,r,i){return r===void 0&&(r=1/0),r=(r||0)<1?1/0:r,t.operate(function(t,a){return n.mergeInternals(t,a,e,r,void 0,!0,i)})}e.expand=r})),Qi=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.finalize=void 0;var t=R();function n(e){return t.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}e.finalize=n})),$i=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createFind=e.find=void 0;var t=R(),n=V();function r(e,n){return t.operate(i(e,n,`value`))}e.find=r;function i(e,t,r){var i=r===`index`;return function(r,a){var o=0;r.subscribe(n.createOperatorSubscriber(a,function(n){var s=o++;e.call(t,n,s,r)&&(a.next(i?s:n),a.complete())},function(){a.next(i?-1:void 0),a.complete()}))}}e.createFind=i})),ea=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.findIndex=void 0;var t=R(),n=$i();function r(e,r){return t.operate(n.createFind(e,r,`index`))}e.findIndex=r})),ta=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.first=void 0;var t=Ui(),n=Hi(),r=ki(),i=Ei(),a=Wi(),o=pr();function s(e,s){var c=arguments.length>=2;return function(l){return l.pipe(e?n.filter(function(t,n){return e(t,n,l)}):o.identity,r.take(1),c?i.defaultIfEmpty(s):a.throwIfEmpty(function(){return new t.EmptyError}))}}e.first=s})),na=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.groupBy=void 0;var t=z(),n=B(),r=bi(),i=R(),a=V();function o(e,o,s,c){return i.operate(function(i,l){var u;!o||typeof o==`function`?u=o:(s=o.duration,u=o.element,c=o.connector);var d=new Map,f=function(e){d.forEach(e),e(l)},p=function(e){return f(function(t){return t.error(e)})},m=0,h=!1,g=new a.OperatorSubscriber(l,function(t){try{var i=e(t),o=d.get(i);if(!o){d.set(i,o=c?c():new r.Subject);var f=_(i,o);if(l.next(f),s){var m=a.createOperatorSubscriber(o,function(){o.complete(),m?.unsubscribe()},void 0,void 0,function(){return d.delete(i)});g.add(n.innerFrom(s(f)).subscribe(m))}}o.next(u?u(t):t)}catch(e){p(e)}},function(){return f(function(e){return e.complete()})},p,function(){return d.clear()},function(){return h=!0,m===0});i.subscribe(g);function _(e,n){var r=new t.Observable(function(e){m++;var t=n.subscribe(e);return function(){t.unsubscribe(),--m===0&&h&&g.unsubscribe()}});return r.key=e,r}})}e.groupBy=o})),ra=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isEmpty=void 0;var t=R(),n=V();function r(){return t.operate(function(e,t){e.subscribe(n.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}e.isEmpty=r})),ia=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.takeLast=void 0;var n=Oi(),r=R(),i=V();function a(e){return e<=0?function(){return n.EMPTY}:r.operate(function(n,r){var a=[];n.subscribe(i.createOperatorSubscriber(r,function(t){a.push(t),e<a.length&&a.shift()},function(){var e,n;try{for(var i=t(a),o=i.next();!o.done;o=i.next()){var s=o.value;r.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}r.complete()},void 0,function(){a=null}))})}e.takeLast=a})),aa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.last=void 0;var t=Ui(),n=Hi(),r=ia(),i=Wi(),a=Ei(),o=pr();function s(e,s){var c=arguments.length>=2;return function(l){return l.pipe(e?n.filter(function(t,n){return e(t,n,l)}):o.identity,r.takeLast(1),c?a.defaultIfEmpty(s):i.throwIfEmpty(function(){return new t.EmptyError}))}}e.last=s})),oa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.materialize=void 0;var t=Ii(),n=R(),r=V();function i(){return n.operate(function(e,n){e.subscribe(r.createOperatorSubscriber(n,function(e){n.next(t.Notification.createNext(e))},function(){n.next(t.Notification.createComplete()),n.complete()},function(e){n.next(t.Notification.createError(e)),n.complete()}))})}e.materialize=i})),sa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.max=void 0;var t=ai(),n=L();function r(e){return t.reduce(n.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}e.max=r})),ca=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;var r=R(),i=pi(),a=Fr(),o=Zr();function s(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var c=a.popScheduler(e),l=a.popNumber(e,1/0);return r.operate(function(r,a){i.mergeAll(l)(o.from(n([r],t(e)),c)).subscribe(a)})}e.merge=s})),la=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flatMap=void 0,e.flatMap=ri().mergeMap})),ua=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeMapTo=void 0;var t=ri(),n=L();function r(e,r,i){return i===void 0&&(i=1/0),n.isFunction(r)?t.mergeMap(function(){return e},r,i):(typeof r==`number`&&(i=r),t.mergeMap(function(){return e},i))}e.mergeMapTo=r})),da=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeScan=void 0;var t=R(),n=ni();function r(e,r,i){return i===void 0&&(i=1/0),t.operate(function(t,a){var o=r;return n.mergeInternals(t,a,function(t,n){return e(o,t,n)},i,function(e){o=e},!1,void 0,function(){return o=null})})}e.mergeScan=r})),fa=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeWith=void 0;var r=ca();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.merge.apply(void 0,n([],t(e)))}e.mergeWith=i})),pa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.min=void 0;var t=ai(),n=L();function r(e){return t.reduce(n.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}e.min=r})),ma=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.refCount=void 0;var t=R(),n=V();function r(){return t.operate(function(e,t){var r=null;e._refCount++;var i=n.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var n=e._connection,i=r;r=null,n&&(!i||n===i)&&n.unsubscribe(),t.unsubscribe()});e.subscribe(i),i.closed||(r=e.connect())})}e.refCount=r})),ha=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ConnectableObservable=void 0;var n=z(),r=ir(),i=ma(),a=V(),o=R();e.ConnectableObservable=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,o.hasLift(t)&&(r.lift=t.lift),r}return n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e?.unsubscribe()},n.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new r.Subscription;var n=this.getSubject();t.add(this.source.subscribe(a.createOperatorSubscriber(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=r.Subscription.EMPTY)}return t},n.prototype.refCount=function(){return i.refCount()(this)},n}(n.Observable)})),ga=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.multicast=void 0;var t=ha(),n=L(),r=Si();function i(e,i){var a=n.isFunction(e)?e:function(){return e};return n.isFunction(i)?r.connect(i,{connector:a}):function(e){return new t.ConnectableObservable(e,a)}}e.multicast=i})),_a=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.onErrorResumeNext=void 0;var t=z(),n=ui(),r=V(),i=cr(),a=B();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=n.argsOrArgArray(e);return new t.Observable(function(e){var t=0,n=function(){if(t<s.length){var o=void 0;try{o=a.innerFrom(s[t++])}catch{n();return}var c=new r.OperatorSubscriber(e,void 0,i.noop,i.noop);o.subscribe(c),c.add(n)}else e.complete()};n()})}e.onErrorResumeNext=o})),va=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.onErrorResumeNext=e.onErrorResumeNextWith=void 0;var r=ui(),i=_a();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];var o=r.argsOrArgArray(e);return function(e){return i.onErrorResumeNext.apply(void 0,n([e],t(o)))}}e.onErrorResumeNextWith=a,e.onErrorResumeNext=a})),ya=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pairwise=void 0;var t=R(),n=V();function r(){return t.operate(function(e,t){var r,i=!1;e.subscribe(n.createOperatorSubscriber(t,function(e){var n=r;r=e,i&&t.next([n,e]),i=!0}))})}e.pairwise=r})),ba=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.not=void 0;function t(e,t){return function(n,r){return!e.call(t,n,r)}}e.not=t})),xa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.partition=void 0;var t=ba(),n=Hi();function r(e,r){return function(i){return[n.filter(e,r)(i),n.filter(t.not(e,r))(i)]}}e.partition=r})),Sa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluck=void 0;var t=Qr();function n(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length;if(r===0)throw Error(`list of properties cannot be empty.`);return t.map(function(t){for(var n=t,i=0;i<r;i++){var a=n?.[e[i]];if(a!==void 0)n=a;else return}return n})}e.pluck=n})),Ca=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publish=void 0;var t=bi(),n=ga(),r=Si();function i(e){return e?function(t){return r.connect(e)(t)}:function(e){return n.multicast(new t.Subject)(e)}}e.publish=i})),wa=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.BehaviorSubject=void 0,e.BehaviorSubject=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(n.prototype,`value`,{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(bi().Subject)})),Ta=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishBehavior=void 0;var t=wa(),n=ha();function r(e){return function(r){var i=new t.BehaviorSubject(e);return new n.ConnectableObservable(r,function(){return i})}}e.publishBehavior=r})),Ea=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncSubject=void 0,e.AsyncSubject=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return n.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,a=t.thrownError,o=t.isStopped,s=t._isComplete;n?e.error(a):(o||s)&&(r&&e.next(i),e.complete())},n.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},n.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},n}(bi().Subject)})),Da=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishLast=void 0;var t=Ea(),n=ha();function r(){return function(e){var r=new t.AsyncSubject;return new n.ConnectableObservable(e,function(){return r})}}e.publishLast=r})),Oa=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplaySubject=void 0;var n=bi(),r=Tr();e.ReplaySubject=function(e){t(n,e);function n(t,n,i){t===void 0&&(t=1/0),n===void 0&&(n=1/0),i===void 0&&(i=r.dateTimestampProvider);var a=e.call(this)||this;return a._bufferSize=t,a._windowTime=n,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=n===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,n),a}return n.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},n.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a<i.length&&!e.closed;a+=r?1:2)e.next(i[a]);return this._checkFinalizedStatuses(e),t},n.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,c=1;c<r.length&&r[c]<=o;c+=2)s=c;s&&r.splice(0,s+1)}},n}(n.Subject)})),ka=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.publishReplay=void 0;var t=Oa(),n=ga(),r=L();function i(e,i,a,o){a&&!r.isFunction(a)&&(o=a);var s=r.isFunction(a)?a:void 0;return function(r){return n.multicast(new t.ReplaySubject(e,i,o),s)(r)}}e.publishReplay=i})),Aa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.raceInit=e.race=void 0;var t=z(),n=B(),r=ui(),i=V();function a(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e=r.argsOrArgArray(e),e.length===1?n.innerFrom(e[0]):new t.Observable(o(e))}e.race=a;function o(e){return function(t){for(var r=[],a=function(a){r.push(n.innerFrom(e[a]).subscribe(i.createOperatorSubscriber(t,function(e){if(r){for(var n=0;n<r.length;n++)n!==a&&r[n].unsubscribe();r=null}t.next(e)})))},o=0;r&&!t.closed&&o<e.length;o++)a(o)}}e.raceInit=o})),ja=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.raceWith=void 0;var r=Aa(),i=R(),a=pr();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length?i.operate(function(i,a){r.raceInit(n([i],t(e)))(a)}):a.identity}e.raceWith=o})),Ma=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.race=void 0;var r=ui(),i=ja();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i.raceWith.apply(void 0,n([],t(r.argsOrArgArray(e))))}e.race=a})),Na=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repeat=void 0;var t=Oi(),n=R(),r=V(),i=B(),a=jr();function o(e){var o,s=1/0,c;return e!=null&&(typeof e==`object`?(o=e.count,s=o===void 0?1/0:o,c=e.delay):s=e),s<=0?function(){return t.EMPTY}:n.operate(function(e,t){var n=0,o,l=function(){if(o?.unsubscribe(),o=null,c!=null){var e=typeof c==`number`?a.timer(c):i.innerFrom(c(n)),s=r.createOperatorSubscriber(t,function(){s.unsubscribe(),u()});e.subscribe(s)}else u()},u=function(){var i=!1;o=e.subscribe(r.createOperatorSubscriber(t,void 0,function(){++n<s?o?l():i=!0:t.complete()})),i&&l()};u()})}e.repeat=o})),Pa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repeatWhen=void 0;var t=B(),n=bi(),r=R(),i=V();function a(e){return r.operate(function(r,a){var o,s=!1,c,l=!1,u=!1,d=function(){return u&&l&&(a.complete(),!0)},f=function(){return c||(c=new n.Subject,t.innerFrom(e(c)).subscribe(i.createOperatorSubscriber(a,function(){o?p():s=!0},function(){l=!0,d()}))),c},p=function(){u=!1,o=r.subscribe(i.createOperatorSubscriber(a,void 0,function(){u=!0,!d()&&f().next()})),s&&(o.unsubscribe(),o=null,s=!1,p())};p()})}e.repeatWhen=a})),Fa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.retry=void 0;var t=R(),n=V(),r=pr(),i=jr(),a=B();function o(e){e===void 0&&(e=1/0);var o=e&&typeof e==`object`?e:{count:e},s=o.count,c=s===void 0?1/0:s,l=o.delay,u=o.resetOnSuccess,d=u===void 0?!1:u;return c<=0?r.identity:t.operate(function(e,t){var r=0,o,s=function(){var u=!1;o=e.subscribe(n.createOperatorSubscriber(t,function(e){d&&(r=0),t.next(e)},void 0,function(e){if(r++<c){var d=function(){o?(o.unsubscribe(),o=null,s()):u=!0};if(l!=null){var f=typeof l==`number`?i.timer(l):a.innerFrom(l(e,r)),p=n.createOperatorSubscriber(t,function(){p.unsubscribe(),d()},function(){t.complete()});f.subscribe(p)}else d()}else t.error(e)})),u&&(o.unsubscribe(),o=null,s())};s()})}e.retry=o})),Ia=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.retryWhen=void 0;var t=B(),n=bi(),r=R(),i=V();function a(e){return r.operate(function(r,a){var o,s=!1,c,l=function(){o=r.subscribe(i.createOperatorSubscriber(a,void 0,void 0,function(r){c||(c=new n.Subject,t.innerFrom(e(c)).subscribe(i.createOperatorSubscriber(a,function(){return o?l():s=!0}))),c&&c.next(r)})),s&&(o.unsubscribe(),o=null,s=!1,l())};l()})}e.retryWhen=a})),La=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sample=void 0;var t=B(),n=R(),r=cr(),i=V();function a(e){return n.operate(function(n,a){var o=!1,s=null;n.subscribe(i.createOperatorSubscriber(a,function(e){o=!0,s=e})),t.innerFrom(e).subscribe(i.createOperatorSubscriber(a,function(){if(o){o=!1;var e=s;s=null,a.next(e)}},r.noop))})}e.sample=a})),Ra=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.interval=void 0;var t=Or(),n=jr();function r(e,r){return e===void 0&&(e=0),r===void 0&&(r=t.asyncScheduler),e<0&&(e=0),n.timer(e,e,r)}e.interval=r})),za=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sampleTime=void 0;var t=Or(),n=La(),r=Ra();function i(e,i){return i===void 0&&(i=t.asyncScheduler),n.sample(r.interval(e,i))}e.sampleTime=i})),Ba=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.scan=void 0;var t=R(),n=ii();function r(e,r){return t.operate(n.scanInternals(e,r,arguments.length>=2,!0))}e.scan=r})),Va=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sequenceEqual=void 0;var t=R(),n=V(),r=B();function i(e,i){return i===void 0&&(i=function(e,t){return e===t}),t.operate(function(t,o){var s=a(),c=a(),l=function(e){o.next(e),o.complete()},u=function(e,t){var r=n.createOperatorSubscriber(o,function(n){var r=t.buffer,a=t.complete;r.length===0?a?l(!1):e.buffer.push(n):!i(n,r.shift())&&l(!1)},function(){e.complete=!0;var n=t.complete,i=t.buffer;n&&l(i.length===0),r?.unsubscribe()});return r};t.subscribe(u(s,c)),r.innerFrom(e).subscribe(u(c,s))})}e.sequenceEqual=i;function a(){return{buffer:[],complete:!1}}})),Ha=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.share=void 0;var r=B(),i=bi(),a=dr(),o=R();function s(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new i.Subject}:t,s=e.resetOnError,l=s===void 0?!0:s,u=e.resetOnComplete,d=u===void 0?!0:u,f=e.resetOnRefCountZero,p=f===void 0?!0:f;return function(e){var t,i,s,u=0,f=!1,m=!1,h=function(){i?.unsubscribe(),i=void 0},g=function(){h(),t=s=void 0,f=m=!1},_=function(){var e=t;g(),e?.unsubscribe()};return o.operate(function(e,o){u++,!m&&!f&&h();var v=s??=n();o.add(function(){u--,u===0&&!m&&!f&&(i=c(_,p))}),v.subscribe(o),!t&&u>0&&(t=new a.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){m=!0,h(),i=c(g,l,e),v.error(e)},complete:function(){f=!0,h(),i=c(g,d),v.complete()}}),r.innerFrom(e).subscribe(t))})(e)}}e.share=s;function c(e,i){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];if(i===!0){e();return}if(i!==!1){var c=new a.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return r.innerFrom(i.apply(void 0,n([],t(o)))).subscribe(c)}}})),Ua=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shareReplay=void 0;var t=Oa(),n=Ha();function r(e,r,i){var a,o,s,c,l=!1;return e&&typeof e==`object`?(a=e.bufferSize,c=a===void 0?1/0:a,o=e.windowTime,r=o===void 0?1/0:o,s=e.refCount,l=s===void 0?!1:s,i=e.scheduler):c=e??1/0,n.share({connector:function(){return new t.ReplaySubject(c,r,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}e.shareReplay=r})),Wa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SequenceError=void 0,e.SequenceError=tr().createErrorClass(function(e){return function(t){e(this),this.name=`SequenceError`,this.message=t}})})),Ga=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NotFoundError=void 0,e.NotFoundError=tr().createErrorClass(function(e){return function(t){e(this),this.name=`NotFoundError`,this.message=t}})})),Ka=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.single=void 0;var t=Ui(),n=Wa(),r=Ga(),i=R(),a=V();function o(e){return i.operate(function(i,o){var s=!1,c,l=!1,u=0;i.subscribe(a.createOperatorSubscriber(o,function(t){l=!0,(!e||e(t,u++,i))&&(s&&o.error(new n.SequenceError(`Too many matching values`)),s=!0,c=t)},function(){s?(o.next(c),o.complete()):o.error(l?new r.NotFoundError(`No matching values`):new t.EmptyError)}))})}e.single=o})),qa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skip=void 0;var t=Hi();function n(e){return t.filter(function(t,n){return e<=n})}e.skip=n})),Ja=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipLast=void 0;var t=pr(),n=R(),r=V();function i(e){return e<=0?t.identity:n.operate(function(t,n){var i=Array(e),a=0;return t.subscribe(r.createOperatorSubscriber(n,function(t){var r=a++;if(r<e)i[r]=t;else{var o=r%e,s=i[o];i[o]=t,n.next(s)}})),function(){i=null}})}e.skipLast=i})),Ya=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipUntil=void 0;var t=R(),n=V(),r=B(),i=cr();function a(e){return t.operate(function(t,a){var o=!1,s=n.createOperatorSubscriber(a,function(){s?.unsubscribe(),o=!0},i.noop);r.innerFrom(e).subscribe(s),t.subscribe(n.createOperatorSubscriber(a,function(e){return o&&a.next(e)}))})}e.skipUntil=a})),Xa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.skipWhile=void 0;var t=R(),n=V();function r(e){return t.operate(function(t,r){var i=!1,a=0;t.subscribe(n.createOperatorSubscriber(r,function(t){return(i||=!e(t,a++))&&r.next(t)}))})}e.skipWhile=r})),Za=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.startWith=void 0;var t=Di(),n=Fr(),r=R();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=n.popScheduler(e);return r.operate(function(n,r){(a?t.concat(e,n,a):t.concat(e,n)).subscribe(r)})}e.startWith=i})),Qa=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchMap=void 0;var t=B(),n=R(),r=V();function i(e,i){return n.operate(function(n,a){var o=null,s=0,c=!1,l=function(){return c&&!o&&a.complete()};n.subscribe(r.createOperatorSubscriber(a,function(n){o?.unsubscribe();var c=0,u=s++;t.innerFrom(e(n,u)).subscribe(o=r.createOperatorSubscriber(a,function(e){return a.next(i?i(n,e,u,c++):e)},function(){o=null,l()}))},function(){c=!0,l()}))})}e.switchMap=i})),$a=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchAll=void 0;var t=Qa(),n=pr();function r(){return t.switchMap(n.identity)}e.switchAll=r})),eo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchMapTo=void 0;var t=Qa(),n=L();function r(e,r){return n.isFunction(r)?t.switchMap(function(){return e},r):t.switchMap(function(){return e})}e.switchMapTo=r})),to=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.switchScan=void 0;var t=Qa(),n=R();function r(e,r){return n.operate(function(n,i){var a=r;return t.switchMap(function(t,n){return e(a,t,n)},function(e,t){return a=t,t})(n).subscribe(i),function(){a=null}})}e.switchScan=r})),no=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.takeUntil=void 0;var t=R(),n=V(),r=B(),i=cr();function a(e){return t.operate(function(t,a){r.innerFrom(e).subscribe(n.createOperatorSubscriber(a,function(){return a.complete()},i.noop)),!a.closed&&t.subscribe(a)})}e.takeUntil=a})),ro=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.takeWhile=void 0;var t=R(),n=V();function r(e,r){return r===void 0&&(r=!1),t.operate(function(t,i){var a=0;t.subscribe(n.createOperatorSubscriber(i,function(t){var n=e(t,a++);(n||r)&&i.next(t),!n&&i.complete()}))})}e.takeWhile=r})),io=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.tap=void 0;var t=L(),n=R(),r=V(),i=pr();function a(e,a,o){var s=t.isFunction(e)||a||o?{next:e,error:a,complete:o}:e;return s?n.operate(function(e,t){var n;(n=s.subscribe)==null||n.call(s);var i=!0;e.subscribe(r.createOperatorSubscriber(t,function(e){var n;(n=s.next)==null||n.call(s,e),t.next(e)},function(){var e;i=!1,(e=s.complete)==null||e.call(s),t.complete()},function(e){var n;i=!1,(n=s.error)==null||n.call(s,e),t.error(e)},function(){var e,t;i&&((e=s.unsubscribe)==null||e.call(s)),(t=s.finalize)==null||t.call(s)}))}):i.identity}e.tap=a})),ao=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throttle=void 0;var t=R(),n=V(),r=B();function i(e,i){return t.operate(function(t,a){var o=i??{},s=o.leading,c=s===void 0?!0:s,l=o.trailing,u=l===void 0?!1:l,d=!1,f=null,p=null,m=!1,h=function(){p?.unsubscribe(),p=null,u&&(v(),m&&a.complete())},g=function(){p=null,m&&a.complete()},_=function(t){return p=r.innerFrom(e(t)).subscribe(n.createOperatorSubscriber(a,h,g))},v=function(){if(d){d=!1;var e=f;f=null,a.next(e),!m&&_(e)}};t.subscribe(n.createOperatorSubscriber(a,function(e){d=!0,f=e,!(p&&!p.closed)&&(c?v():_(e))},function(){m=!0,!(u&&d&&p&&!p.closed)&&a.complete()}))})}e.throttle=i})),oo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.throttleTime=void 0;var t=Or(),n=ao(),r=jr();function i(e,i,a){i===void 0&&(i=t.asyncScheduler);var o=r.timer(e,i);return n.throttle(function(){return o},a)}e.throttleTime=i})),so=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TimeInterval=e.timeInterval=void 0;var t=Or(),n=R(),r=V();function i(e){return e===void 0&&(e=t.asyncScheduler),n.operate(function(t,n){var i=e.now();t.subscribe(r.createOperatorSubscriber(n,function(t){var r=e.now(),o=r-i;i=r,n.next(new a(t,o))}))})}e.timeInterval=i;var a=function(){function e(e,t){this.value=e,this.interval=t}return e}();e.TimeInterval=a})),co=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timeout=e.TimeoutError=void 0;var t=Or(),n=Ar(),r=R(),i=B(),a=tr(),o=V(),s=Ir();e.TimeoutError=a.createErrorClass(function(e){return function(t){t===void 0&&(t=null),e(this),this.message=`Timeout has occurred`,this.name=`TimeoutError`,this.info=t}});function c(e,a){var c=n.isValidDate(e)?{first:e}:typeof e==`number`?{each:e}:e,u=c.first,d=c.each,f=c.with,p=f===void 0?l:f,m=c.scheduler,h=m===void 0?a??t.asyncScheduler:m,g=c.meta,_=g===void 0?null:g;if(u==null&&d==null)throw TypeError(`No timeout provided.`);return r.operate(function(e,t){var n,r,a=null,c=0,l=function(e){r=s.executeSchedule(t,h,function(){try{n.unsubscribe(),i.innerFrom(p({meta:_,lastValue:a,seen:c})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(o.createOperatorSubscriber(t,function(e){r?.unsubscribe(),c++,t.next(a=e),d>0&&l(d)},void 0,void 0,function(){r?.closed||r?.unsubscribe(),a=null})),!c&&l(u==null?d:typeof u==`number`?u:+u-h.now())})}e.timeout=c;function l(t){throw new e.TimeoutError(t)}})),lo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timeoutWith=void 0;var t=Or(),n=Ar(),r=co();function i(e,i,a){var o,s,c;if(a??=t.async,n.isValidDate(e)?o=e:typeof e==`number`&&(s=e),i)c=function(){return i};else throw TypeError(`No observable provided to switch to`);if(o==null&&s==null)throw TypeError(`No timeout provided.`);return r.timeout({first:o,each:s,scheduler:a,with:c})}e.timeoutWith=i})),uo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.timestamp=void 0;var t=Tr(),n=Qr();function r(e){return e===void 0&&(e=t.dateTimestampProvider),n.map(function(t){return{value:t,timestamp:e.now()}})}e.timestamp=r})),fo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.window=void 0;var t=bi(),n=R(),r=V(),i=cr(),a=B();function o(e){return n.operate(function(n,o){var s=new t.Subject;o.next(s.asObservable());var c=function(e){s.error(e),o.error(e)};return n.subscribe(r.createOperatorSubscriber(o,function(e){return s?.next(e)},function(){s.complete(),o.complete()},c)),a.innerFrom(e).subscribe(r.createOperatorSubscriber(o,function(){s.complete(),o.next(s=new t.Subject)},i.noop,c)),function(){s?.unsubscribe(),s=null}})}e.window=o})),po=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.windowCount=void 0;var n=bi(),r=R(),i=V();function a(e,a){a===void 0&&(a=0);var o=a>0?a:e;return r.operate(function(r,a){var s=[new n.Subject],c=0;a.next(s[0].asObservable()),r.subscribe(i.createOperatorSubscriber(a,function(r){var i,l;try{for(var u=t(s),d=u.next();!d.done;d=u.next())d.value.next(r)}catch(e){i={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(i)throw i.error}}var f=c-e+1;if(f>=0&&f%o===0&&s.shift().complete(),++c%o===0){var p=new n.Subject;s.push(p),a.next(p.asObservable())}},function(){for(;s.length>0;)s.shift().complete();a.complete()},function(e){for(;s.length>0;)s.shift().error(e);a.error(e)},function(){s=null}))})}e.windowCount=a})),mo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.windowTime=void 0;var t=bi(),n=Or(),r=ir(),i=R(),a=V(),o=rr(),s=Fr(),c=Ir();function l(e){for(var l=[],u=1;u<arguments.length;u++)l[u-1]=arguments[u];var d=s.popScheduler(l)??n.asyncScheduler,f=l[0]??null,p=l[1]||1/0;return i.operate(function(n,i){var s=[],l=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),o.arrRemove(s,e),l&&m()},m=function(){if(s){var n=new r.Subscription;i.add(n);var a=new t.Subject,o={window:a,subs:n,seen:0};s.push(o),i.next(a.asObservable()),c.executeSchedule(n,d,function(){return u(o)},e)}};f!==null&&f>=0?c.executeSchedule(i,d,m,f,!0):l=!0,m();var h=function(e){return s.slice().forEach(e)},g=function(e){h(function(t){var n=t.window;return e(n)}),e(i),i.unsubscribe()};return n.subscribe(a.createOperatorSubscriber(i,function(e){h(function(t){t.window.next(e),p<=++t.seen&&u(t)})},function(){return g(function(e){return e.complete()})},function(e){return g(function(t){return t.error(e)})})),function(){s=null}})}e.windowTime=l})),ho=s((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,`__esModule`,{value:!0}),e.windowToggle=void 0;var n=bi(),r=ir(),i=R(),a=B(),o=V(),s=cr(),c=rr();function l(e,l){return i.operate(function(i,u){var d=[],f=function(e){for(;0<d.length;)d.shift().error(e);u.error(e)};a.innerFrom(e).subscribe(o.createOperatorSubscriber(u,function(e){var t=new n.Subject;d.push(t);var i=new r.Subscription,p=function(){c.arrRemove(d,t),t.complete(),i.unsubscribe()},m;try{m=a.innerFrom(l(e))}catch(e){f(e);return}u.next(t.asObservable()),i.add(m.subscribe(o.createOperatorSubscriber(u,p,s.noop,f)))},s.noop)),i.subscribe(o.createOperatorSubscriber(u,function(e){var n,r,i=d.slice();try{for(var a=t(i),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},function(){for(;0<d.length;)d.shift().complete();u.complete()},f,function(){for(;0<d.length;)d.shift().unsubscribe()}))})}e.windowToggle=l})),go=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.windowWhen=void 0;var t=bi(),n=R(),r=V(),i=B();function a(e){return n.operate(function(n,a){var o,s,c=function(e){o.error(e),a.error(e)},l=function(){s?.unsubscribe(),o?.complete(),o=new t.Subject,a.next(o.asObservable());var n;try{n=i.innerFrom(e())}catch(e){c(e);return}n.subscribe(s=r.createOperatorSubscriber(a,l,l,c))};l(),n.subscribe(r.createOperatorSubscriber(a,function(e){return o.next(e)},function(){o.complete(),a.complete()},c,function(){s?.unsubscribe(),o=null}))})}e.windowWhen=a})),_o=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.withLatestFrom=void 0;var r=R(),i=V(),a=B(),o=pr(),s=cr(),c=Fr();function l(){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];var u=c.popResultSelector(e);return r.operate(function(r,c){for(var l=e.length,d=Array(l),f=e.map(function(){return!1}),p=!1,m=function(t){a.innerFrom(e[t]).subscribe(i.createOperatorSubscriber(c,function(e){d[t]=e,!p&&!f[t]&&(f[t]=!0,(p=f.every(o.identity))&&(f=null))},s.noop))},h=0;h<l;h++)m(h);r.subscribe(i.createOperatorSubscriber(c,function(e){if(p){var r=n([e],t(d));c.next(u?u.apply(void 0,n([],t(r))):r)}}))})}e.withLatestFrom=l})),vo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zip=void 0;var r=z(),i=B(),a=ui(),o=Oi(),s=V(),c=Fr();function l(){for(var e=[],l=0;l<arguments.length;l++)e[l]=arguments[l];var u=c.popResultSelector(e),d=a.argsOrArgArray(e);return d.length?new r.Observable(function(e){var r=d.map(function(){return[]}),a=d.map(function(){return!1});e.add(function(){r=a=null});for(var o=function(o){i.innerFrom(d[o]).subscribe(s.createOperatorSubscriber(e,function(i){if(r[o].push(i),r.every(function(e){return e.length})){var s=r.map(function(e){return e.shift()});e.next(u?u.apply(void 0,n([],t(s))):s),r.some(function(e,t){return!e.length&&a[t]})&&e.complete()}},function(){a[o]=!0,!r[o].length&&e.complete()}))},c=0;!e.closed&&c<d.length;c++)o(c);return function(){r=a=null}}):o.EMPTY}e.zip=l})),yo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zip=void 0;var r=vo(),i=R();function a(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return i.operate(function(i,a){r.zip.apply(void 0,n([i],t(e))).subscribe(a)})}e.zip=a})),bo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.zipAll=void 0;var t=vo(),n=si();function r(e){return n.joinAllInternals(t.zip,e)}e.zipAll=r})),xo=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.zipWith=void 0;var r=yo();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.zip.apply(void 0,n([],t(e)))}e.zipWith=i})),So=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeAll=e.merge=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.concat=e.combineLatestWith=e.combineLatest=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=void 0,e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.race=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.partition=e.pairwise=e.onErrorResumeNext=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=void 0,e.zipWith=e.zipAll=e.zip=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=void 0;var t=xr();Object.defineProperty(e,`audit`,{enumerable:!0,get:function(){return t.audit}});var n=Mr();Object.defineProperty(e,`auditTime`,{enumerable:!0,get:function(){return n.auditTime}});var r=Nr();Object.defineProperty(e,`buffer`,{enumerable:!0,get:function(){return r.buffer}});var i=Pr();Object.defineProperty(e,`bufferCount`,{enumerable:!0,get:function(){return i.bufferCount}});var a=Lr();Object.defineProperty(e,`bufferTime`,{enumerable:!0,get:function(){return a.bufferTime}});var o=Rr();Object.defineProperty(e,`bufferToggle`,{enumerable:!0,get:function(){return o.bufferToggle}});var s=zr();Object.defineProperty(e,`bufferWhen`,{enumerable:!0,get:function(){return s.bufferWhen}});var c=Br();Object.defineProperty(e,`catchError`,{enumerable:!0,get:function(){return c.catchError}});var l=li();Object.defineProperty(e,`combineAll`,{enumerable:!0,get:function(){return l.combineAll}});var u=ci();Object.defineProperty(e,`combineLatestAll`,{enumerable:!0,get:function(){return u.combineLatestAll}});var d=di();Object.defineProperty(e,`combineLatest`,{enumerable:!0,get:function(){return d.combineLatest}});var f=fi();Object.defineProperty(e,`combineLatestWith`,{enumerable:!0,get:function(){return f.combineLatestWith}});var p=hi();Object.defineProperty(e,`concat`,{enumerable:!0,get:function(){return p.concat}});var m=mi();Object.defineProperty(e,`concatAll`,{enumerable:!0,get:function(){return m.concatAll}});var h=gi();Object.defineProperty(e,`concatMap`,{enumerable:!0,get:function(){return h.concatMap}});var g=_i();Object.defineProperty(e,`concatMapTo`,{enumerable:!0,get:function(){return g.concatMapTo}});var _=vi();Object.defineProperty(e,`concatWith`,{enumerable:!0,get:function(){return _.concatWith}});var v=Si();Object.defineProperty(e,`connect`,{enumerable:!0,get:function(){return v.connect}});var y=Ci();Object.defineProperty(e,`count`,{enumerable:!0,get:function(){return y.count}});var b=wi();Object.defineProperty(e,`debounce`,{enumerable:!0,get:function(){return b.debounce}});var x=Ti();Object.defineProperty(e,`debounceTime`,{enumerable:!0,get:function(){return x.debounceTime}});var S=Ei();Object.defineProperty(e,`defaultIfEmpty`,{enumerable:!0,get:function(){return S.defaultIfEmpty}});var C=Ni();Object.defineProperty(e,`delay`,{enumerable:!0,get:function(){return C.delay}});var w=Mi();Object.defineProperty(e,`delayWhen`,{enumerable:!0,get:function(){return w.delayWhen}});var T=Li();Object.defineProperty(e,`dematerialize`,{enumerable:!0,get:function(){return T.dematerialize}});var E=Ri();Object.defineProperty(e,`distinct`,{enumerable:!0,get:function(){return E.distinct}});var D=zi();Object.defineProperty(e,`distinctUntilChanged`,{enumerable:!0,get:function(){return D.distinctUntilChanged}});var O=Bi();Object.defineProperty(e,`distinctUntilKeyChanged`,{enumerable:!0,get:function(){return O.distinctUntilKeyChanged}});var k=Gi();Object.defineProperty(e,`elementAt`,{enumerable:!0,get:function(){return k.elementAt}});var A=Ki();Object.defineProperty(e,`endWith`,{enumerable:!0,get:function(){return A.endWith}});var ee=qi();Object.defineProperty(e,`every`,{enumerable:!0,get:function(){return ee.every}});var te=Xi();Object.defineProperty(e,`exhaust`,{enumerable:!0,get:function(){return te.exhaust}});var ne=Yi();Object.defineProperty(e,`exhaustAll`,{enumerable:!0,get:function(){return ne.exhaustAll}});var j=Ji();Object.defineProperty(e,`exhaustMap`,{enumerable:!0,get:function(){return j.exhaustMap}});var re=Zi();Object.defineProperty(e,`expand`,{enumerable:!0,get:function(){return re.expand}});var ie=Hi();Object.defineProperty(e,`filter`,{enumerable:!0,get:function(){return ie.filter}});var M=Qi();Object.defineProperty(e,`finalize`,{enumerable:!0,get:function(){return M.finalize}});var ae=$i();Object.defineProperty(e,`find`,{enumerable:!0,get:function(){return ae.find}});var oe=ea();Object.defineProperty(e,`findIndex`,{enumerable:!0,get:function(){return oe.findIndex}});var N=ta();Object.defineProperty(e,`first`,{enumerable:!0,get:function(){return N.first}});var se=na();Object.defineProperty(e,`groupBy`,{enumerable:!0,get:function(){return se.groupBy}});var ce=Ai();Object.defineProperty(e,`ignoreElements`,{enumerable:!0,get:function(){return ce.ignoreElements}});var le=ra();Object.defineProperty(e,`isEmpty`,{enumerable:!0,get:function(){return le.isEmpty}});var ue=aa();Object.defineProperty(e,`last`,{enumerable:!0,get:function(){return ue.last}});var de=Qr();Object.defineProperty(e,`map`,{enumerable:!0,get:function(){return de.map}});var fe=ji();Object.defineProperty(e,`mapTo`,{enumerable:!0,get:function(){return fe.mapTo}});var pe=oa();Object.defineProperty(e,`materialize`,{enumerable:!0,get:function(){return pe.materialize}});var me=sa();Object.defineProperty(e,`max`,{enumerable:!0,get:function(){return me.max}});var he=ca();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return he.merge}});var ge=pi();Object.defineProperty(e,`mergeAll`,{enumerable:!0,get:function(){return ge.mergeAll}});var _e=la();Object.defineProperty(e,`flatMap`,{enumerable:!0,get:function(){return _e.flatMap}});var ve=ri();Object.defineProperty(e,`mergeMap`,{enumerable:!0,get:function(){return ve.mergeMap}});var ye=ua();Object.defineProperty(e,`mergeMapTo`,{enumerable:!0,get:function(){return ye.mergeMapTo}});var be=da();Object.defineProperty(e,`mergeScan`,{enumerable:!0,get:function(){return be.mergeScan}});var xe=fa();Object.defineProperty(e,`mergeWith`,{enumerable:!0,get:function(){return xe.mergeWith}});var Se=pa();Object.defineProperty(e,`min`,{enumerable:!0,get:function(){return Se.min}});var Ce=ga();Object.defineProperty(e,`multicast`,{enumerable:!0,get:function(){return Ce.multicast}});var we=Hr();Object.defineProperty(e,`observeOn`,{enumerable:!0,get:function(){return we.observeOn}});var Te=va();Object.defineProperty(e,`onErrorResumeNext`,{enumerable:!0,get:function(){return Te.onErrorResumeNext}});var Ee=ya();Object.defineProperty(e,`pairwise`,{enumerable:!0,get:function(){return Ee.pairwise}});var De=xa();Object.defineProperty(e,`partition`,{enumerable:!0,get:function(){return De.partition}});var Oe=Sa();Object.defineProperty(e,`pluck`,{enumerable:!0,get:function(){return Oe.pluck}});var ke=Ca();Object.defineProperty(e,`publish`,{enumerable:!0,get:function(){return ke.publish}});var P=Ta();Object.defineProperty(e,`publishBehavior`,{enumerable:!0,get:function(){return P.publishBehavior}});var Ae=Da();Object.defineProperty(e,`publishLast`,{enumerable:!0,get:function(){return Ae.publishLast}});var je=ka();Object.defineProperty(e,`publishReplay`,{enumerable:!0,get:function(){return je.publishReplay}});var Me=Ma();Object.defineProperty(e,`race`,{enumerable:!0,get:function(){return Me.race}});var Ne=ja();Object.defineProperty(e,`raceWith`,{enumerable:!0,get:function(){return Ne.raceWith}});var F=ai();Object.defineProperty(e,`reduce`,{enumerable:!0,get:function(){return F.reduce}});var Pe=Na();Object.defineProperty(e,`repeat`,{enumerable:!0,get:function(){return Pe.repeat}});var Fe=Pa();Object.defineProperty(e,`repeatWhen`,{enumerable:!0,get:function(){return Fe.repeatWhen}});var Ie=Fa();Object.defineProperty(e,`retry`,{enumerable:!0,get:function(){return Ie.retry}});var Le=Ia();Object.defineProperty(e,`retryWhen`,{enumerable:!0,get:function(){return Le.retryWhen}});var Re=ma();Object.defineProperty(e,`refCount`,{enumerable:!0,get:function(){return Re.refCount}});var ze=La();Object.defineProperty(e,`sample`,{enumerable:!0,get:function(){return ze.sample}});var Be=za();Object.defineProperty(e,`sampleTime`,{enumerable:!0,get:function(){return Be.sampleTime}});var Ve=Ba();Object.defineProperty(e,`scan`,{enumerable:!0,get:function(){return Ve.scan}});var He=Va();Object.defineProperty(e,`sequenceEqual`,{enumerable:!0,get:function(){return He.sequenceEqual}});var Ue=Ha();Object.defineProperty(e,`share`,{enumerable:!0,get:function(){return Ue.share}});var We=Ua();Object.defineProperty(e,`shareReplay`,{enumerable:!0,get:function(){return We.shareReplay}});var Ge=Ka();Object.defineProperty(e,`single`,{enumerable:!0,get:function(){return Ge.single}});var Ke=qa();Object.defineProperty(e,`skip`,{enumerable:!0,get:function(){return Ke.skip}});var qe=Ja();Object.defineProperty(e,`skipLast`,{enumerable:!0,get:function(){return qe.skipLast}});var Je=Ya();Object.defineProperty(e,`skipUntil`,{enumerable:!0,get:function(){return Je.skipUntil}});var Ye=Xa();Object.defineProperty(e,`skipWhile`,{enumerable:!0,get:function(){return Ye.skipWhile}});var Xe=Za();Object.defineProperty(e,`startWith`,{enumerable:!0,get:function(){return Xe.startWith}});var Ze=Ur();Object.defineProperty(e,`subscribeOn`,{enumerable:!0,get:function(){return Ze.subscribeOn}});var Qe=$a();Object.defineProperty(e,`switchAll`,{enumerable:!0,get:function(){return Qe.switchAll}});var $e=Qa();Object.defineProperty(e,`switchMap`,{enumerable:!0,get:function(){return $e.switchMap}});var et=eo();Object.defineProperty(e,`switchMapTo`,{enumerable:!0,get:function(){return et.switchMapTo}});var tt=to();Object.defineProperty(e,`switchScan`,{enumerable:!0,get:function(){return tt.switchScan}});var nt=ki();Object.defineProperty(e,`take`,{enumerable:!0,get:function(){return nt.take}});var rt=ia();Object.defineProperty(e,`takeLast`,{enumerable:!0,get:function(){return rt.takeLast}});var it=no();Object.defineProperty(e,`takeUntil`,{enumerable:!0,get:function(){return it.takeUntil}});var at=ro();Object.defineProperty(e,`takeWhile`,{enumerable:!0,get:function(){return at.takeWhile}});var ot=io();Object.defineProperty(e,`tap`,{enumerable:!0,get:function(){return ot.tap}});var st=ao();Object.defineProperty(e,`throttle`,{enumerable:!0,get:function(){return st.throttle}});var ct=oo();Object.defineProperty(e,`throttleTime`,{enumerable:!0,get:function(){return ct.throttleTime}});var lt=Wi();Object.defineProperty(e,`throwIfEmpty`,{enumerable:!0,get:function(){return lt.throwIfEmpty}});var ut=so();Object.defineProperty(e,`timeInterval`,{enumerable:!0,get:function(){return ut.timeInterval}});var dt=co();Object.defineProperty(e,`timeout`,{enumerable:!0,get:function(){return dt.timeout}});var ft=lo();Object.defineProperty(e,`timeoutWith`,{enumerable:!0,get:function(){return ft.timeoutWith}});var pt=uo();Object.defineProperty(e,`timestamp`,{enumerable:!0,get:function(){return pt.timestamp}});var mt=oi();Object.defineProperty(e,`toArray`,{enumerable:!0,get:function(){return mt.toArray}});var ht=fo();Object.defineProperty(e,`window`,{enumerable:!0,get:function(){return ht.window}});var gt=po();Object.defineProperty(e,`windowCount`,{enumerable:!0,get:function(){return gt.windowCount}});var _t=mo();Object.defineProperty(e,`windowTime`,{enumerable:!0,get:function(){return _t.windowTime}});var vt=ho();Object.defineProperty(e,`windowToggle`,{enumerable:!0,get:function(){return vt.windowToggle}});var yt=go();Object.defineProperty(e,`windowWhen`,{enumerable:!0,get:function(){return yt.windowWhen}});var bt=_o();Object.defineProperty(e,`withLatestFrom`,{enumerable:!0,get:function(){return bt.withLatestFrom}});var xt=yo();Object.defineProperty(e,`zip`,{enumerable:!0,get:function(){return xt.zip}});var St=bo();Object.defineProperty(e,`zipAll`,{enumerable:!0,get:function(){return St.zipAll}});var Ct=xo();Object.defineProperty(e,`zipWith`,{enumerable:!0,get:function(){return Ct.zipWith}})})),Co=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CLASS_SERIALIZER_OPTIONS=void 0,e.CLASS_SERIALIZER_OPTIONS=`class_serializer:options`})),wo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ClassSerializerInterceptor=void 0;var t=E(),n=So(),r=fe(),i=dt(),a=Vn(),o=A(),s=Co(),c={},l=`Reflector`,u=class{constructor(e,t={}){this.reflector=e,this.defaultOptions=t,c=t?.transformerPackage??(0,a.loadPackage)(`class-transformer`,`ClassSerializerInterceptor`,()=>Un()),t?.transformerPackage||Un()}intercept(e,t){let r=this.getContextOptions(e),i={...this.defaultOptions,...r};return t.handle().pipe((0,n.map)(e=>this.serialize(e,i)))}serialize(e,t){return!(0,o.isObject)(e)||e instanceof i.StreamableFile?e:Array.isArray(e)?e.map(e=>this.transformToPlain(e,t)):this.transformToPlain(e,t)}transformToPlain(e,t){if(!e)return e;if(!t.type||e instanceof t.type)return c.classToPlain(e,t);let n=c.plainToInstance(t.type,e,t);return c.classToPlain(n,t)}getContextOptions(e){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[e.getHandler(),e.getClass()])}};e.ClassSerializerInterceptor=u,e.ClassSerializerInterceptor=u=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,r.Inject)(l)),t.__param(1,(0,r.Optional)()),t.__metadata(`design:paramtypes`,[Object,Object])],u)})),To=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializeOptions=void 0;var t=ke(),n=Co();e.SerializeOptions=e=>(0,t.SetMetadata)(n.CLASS_SERIALIZER_OPTIONS,e)})),Eo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(To(),e)})),Do=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Oo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(wo(),e),t.__exportStar(Eo(),e),t.__exportStar(Do(),e)})),ko=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.forwardRef=void 0,e.forwardRef=e=>({forwardRef:e})})),Ao=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(ko(),e)})),H=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;var t=E();p(),t.__exportStar(ke(),e),t.__exportStar(Me(),e),t.__exportStar(tt(),e),t.__exportStar(dt(),e);var n=dn();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,`VERSION_NEUTRAL`,{enumerable:!0,get:function(){return n.VERSION_NEUTRAL}}),t.__exportStar(Sn(),e),t.__exportStar(Qn(),e),t.__exportStar(Oo(),e),t.__exportStar(lt(),e),t.__exportStar(Ao(),e)})),jo=c({browser:()=>qo,default:()=>Jo,description:()=>Po,devDependencies:()=>Go,engines:()=>Ko,exports:()=>Lo,funding:()=>Vo,homepage:()=>Bo,keywords:()=>Ho,license:()=>Wo,main:()=>Fo,name:()=>Mo,readmeFilename:()=>Uo,repository:()=>zo,scripts:()=>Ro,types:()=>Io,version:()=>No}),Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo=o((()=>{Mo=`dotenv`,No=`17.2.3`,Po=`Loads environment variables from .env file`,Fo=`lib/main.js`,Io=`lib/main.d.ts`,Lo={".":{types:`./lib/main.d.ts`,require:`./lib/main.js`,default:`./lib/main.js`},"./config":`./config.js`,"./config.js":`./config.js`,"./lib/env-options":`./lib/env-options.js`,"./lib/env-options.js":`./lib/env-options.js`,"./lib/cli-options":`./lib/cli-options.js`,"./lib/cli-options.js":`./lib/cli-options.js`,"./package.json":`./package.json`},Ro={"dts-check":`tsc --project tests/types/tsconfig.json`,lint:`standard`,pretest:`npm run lint && npm run dts-check`,test:`tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000`,"test:coverage":`tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov`,prerelease:`npm test`,release:`standard-version`},zo={type:`git`,url:`git://github.com/motdotla/dotenv.git`},Bo=`https://github.com/motdotla/dotenv#readme`,Vo=`https://dotenvx.com`,Ho=[`dotenv`,`env`,`.env`,`environment`,`variables`,`config`,`settings`],Uo=`README.md`,Wo=`BSD-2-Clause`,Go={"@types/node":`^18.11.3`,decache:`^4.6.2`,sinon:`^14.0.1`,standard:`^17.0.0`,"standard-version":`^9.5.0`,tap:`^19.2.0`,typescript:`^4.8.4`},Ko={node:`>=12`},qo={fs:!1},Jo={name:Mo,version:No,description:Po,main:Fo,types:Io,exports:Lo,scripts:Ro,repository:zo,homepage:Bo,funding:Vo,keywords:Ho,readmeFilename:Uo,license:Wo,devDependencies:Go,engines:Ko,browser:qo}})),Xo=s(((e,t)=>{var n=require(`fs`),r=require(`path`),i=require(`os`),a=require(`crypto`),o=(Yo(),d(jo).default).version,s=[`🔐 encrypt with Dotenvx: https://dotenvx.com`,`🔐 prevent committing .env to code: https://dotenvx.com/precommit`,`🔐 prevent building .env in docker: https://dotenvx.com/prebuild`,`📡 add observability to secrets: https://dotenvx.com/ops`,`👥 sync secrets across teammates & machines: https://dotenvx.com/ops`,`🗂️ backup and recover secrets: https://dotenvx.com/ops`,`✅ audit secrets and track compliance: https://dotenvx.com/ops`,`🔄 add secrets lifecycle management: https://dotenvx.com/ops`,`🔑 add access controls to secrets: https://dotenvx.com/ops`,"🛠️ run anywhere with `dotenvx run -- yourcommand`",`⚙️ specify custom .env file path with { path: '/custom/path/.env' }`,`⚙️ enable debug logging with { debug: true }`,`⚙️ override existing env vars with { override: true }`,`⚙️ suppress all logs with { quiet: true }`,`⚙️ write to custom object with { processEnv: myObject }`,`⚙️ load multiple .env files with { path: ['.env.local', '.env'] }`];function c(){return s[Math.floor(Math.random()*s.length)]}function l(e){return typeof e==`string`?![`false`,`0`,`no`,`off`,``].includes(e.toLowerCase()):!!e}function u(){return process.stdout.isTTY}function f(e){return u()?`\x1b[2m${e}\x1b[0m`:e}var p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function m(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
6
6
|
`);let r;for(;(r=p.exec(n))!=null;){let e=r[1],n=r[2]||``;n=n.trim();let i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,`$2`),i===`"`&&(n=n.replace(/\\n/g,`
|
|
7
|
-
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function h(e){e||={};let t=x(e);e.path=t;let n=O.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=y(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=b(n,r[e].trim());a=O.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return O.parse(a)}function g(e){console.error(`[dotenv@${o}][WARN] ${e}`)}function _(e){console.log(`[dotenv@${o}][DEBUG] ${e}`)}function v(e){console.log(`[dotenv@${o}] ${e}`)}function y(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function b(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function x(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=r.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function S(e){return e[0]===`~`?r.join(i.homedir(),e.slice(1)):e}function C(e){let t=l(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=l(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&v(`Loading env from encrypted .env.vault`);let r=O._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),O.populate(i,r,e),{parsed:r}}function w(e){let t=r.resolve(process.cwd(),`.env`),i=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=l(a.DOTENV_CONFIG_DEBUG||e&&e.debug),s=l(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?i=e.encoding:o&&_(`No encoding is specified. UTF-8 is used by default`);let u=[t];if(e&&e.path)if(!Array.isArray(e.path))u=[S(e.path)];else{u=[];for(let t of e.path)u.push(S(t))}let d,p={};for(let t of u)try{let r=O.parse(n.readFileSync(t,{encoding:i}));O.populate(p,r,e)}catch(e){o&&_(`Failed to load ${t} ${e.message}`),d=e}let m=O.populate(a,p,e);if(o=l(a.DOTENV_CONFIG_DEBUG||o),s=l(a.DOTENV_CONFIG_QUIET||s),o||!s){let e=Object.keys(m).length,t=[];for(let e of u)try{let n=r.relative(process.cwd(),e);t.push(n)}catch(t){o&&_(`Failed to load ${e} ${t.message}`),d=t}v(`injecting env (${e}) from ${t.join(`,`)} ${f(`-- tip: ${c()}`)}`)}return d?{parsed:p,error:d}:{parsed:p}}function T(e){if(y(e).length===0)return O.configDotenv(e);let t=x(e);return t?O._configVault(e):(g(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),O.configDotenv(e))}function E(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{let e=a.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function D(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&_(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}var O={configDotenv:w,_configVault:C,_parseVault:h,config:T,decrypt:E,parse:m,populate:D};t.exports.configDotenv=O.configDotenv,t.exports._configVault=O._configVault,t.exports._parseVault=O._parseVault,t.exports.config=O.config,t.exports.decrypt=O.decrypt,t.exports.parse=O.parse,t.exports.populate=O.populate,t.exports=O})),$o=s(((e,t)=>{function n(e){return e.replace(/\\\$/g,`$`)}function r(e,t,n){let r={...n,...t},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,a=e,o,s=new Set;for(;(o=i.exec(a))!==null;){s.add(a);let[e,t,c]=o,l=t||c,u=l.match(/(:\+|\+|:-|-)/),d=u?u[0]:null,f=l.split(d),p,m,h=f.shift();if([`:+`,`+`].includes(d)?(p=r[h]?f.join(d):``,m=null):(p=f.join(d),m=r[h]),a=m?s.has(m)?a.replace(e,p):a.replace(e,m):a.replace(e,p),a===n[h])break;i.lastIndex=0}return a}function i(e){let t={},i=process.env;e&&e.processEnv!=null&&(i=e.processEnv);for(let a in e.parsed){let o=e.parsed[a];o=i[a]&&i[a]!==o?i[a]:r(o,i,t),e.parsed[a]=n(o),t[a]=n(o)}for(let t in e.parsed)i[t]=e.parsed[t];return e}t.exports.expand=i})),es=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AS_PROVIDER_METHOD_KEY=e.VALIDATED_ENV_PROPNAME=e.PARTIAL_CONFIGURATION_PROPNAME=e.PARTIAL_CONFIGURATION_KEY=e.VALIDATED_ENV_LOADER=e.CONFIGURATION_LOADER=e.CONFIGURATION_TOKEN=e.CONFIGURATION_SERVICE_TOKEN=void 0,e.CONFIGURATION_SERVICE_TOKEN=Symbol(`CONFIG_SERVICE`),e.CONFIGURATION_TOKEN=`CONFIGURATION_TOKEN`,e.CONFIGURATION_LOADER=`CONFIGURATION_LOADER`,e.VALIDATED_ENV_LOADER=`VALIDATED_ENV_LOADER`,e.PARTIAL_CONFIGURATION_KEY=`PARTIAL_CONFIGURATION_KEY`,e.PARTIAL_CONFIGURATION_PROPNAME=`KEY`,e.VALIDATED_ENV_PROPNAME=`_PROCESS_ENV_VALIDATED`,e.AS_PROVIDER_METHOD_KEY=`asProvider`})),ts=s(((e,t)=>{t.exports=Array.isArray})),ns=s(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),rs=s(((e,t)=>{var n=ns(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),is=s(((e,t)=>{t.exports=rs().Symbol})),as=s(((e,t)=>{var n=is(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),os=s(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),ss=s(((e,t)=>{var n=is(),r=as(),i=os(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),cs=s(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),ls=s(((e,t)=>{var n=ss(),r=cs(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),us=s(((e,t)=>{var n=ts(),r=ls(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),ds=s(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),fs=s(((e,t)=>{var n=ss(),r=ds(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),ps=s(((e,t)=>{t.exports=rs()[`__core-js_shared__`]})),ms=s(((e,t)=>{var n=ps(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),hs=s(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),gs=s(((e,t)=>{var n=fs(),r=ms(),i=ds(),a=hs(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),_s=s(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),vs=s(((e,t)=>{var n=gs(),r=_s();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),ys=s(((e,t)=>{t.exports=vs()(Object,`create`)})),bs=s(((e,t)=>{var n=ys();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),xs=s(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),Ss=s(((e,t)=>{var n=ys(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Cs=s(((e,t)=>{var n=ys(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),ws=s(((e,t)=>{var n=ys(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Ts=s(((e,t)=>{var n=bs(),r=xs(),i=Ss(),a=Cs(),o=ws();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Es=s(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ds=s(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Os=s(((e,t)=>{var n=Ds();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),ks=s(((e,t)=>{var n=Os(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),As=s(((e,t)=>{var n=Os();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),js=s(((e,t)=>{var n=Os();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Ms=s(((e,t)=>{var n=Os();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Ns=s(((e,t)=>{var n=Es(),r=ks(),i=As(),a=js(),o=Ms();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ps=s(((e,t)=>{t.exports=vs()(rs(),`Map`)})),Fs=s(((e,t)=>{var n=Ts(),r=Ns(),i=Ps();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Is=s(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Ls=s(((e,t)=>{var n=Is();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Rs=s(((e,t)=>{var n=Ls();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),zs=s(((e,t)=>{var n=Ls();function r(e){return n(this,e).get(e)}t.exports=r})),Bs=s(((e,t)=>{var n=Ls();function r(e){return n(this,e).has(e)}t.exports=r})),Vs=s(((e,t)=>{var n=Ls();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Hs=s(((e,t)=>{var n=Fs(),r=Rs(),i=zs(),a=Bs(),o=Vs();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Us=s(((e,t)=>{var n=Hs(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Ws=s(((e,t)=>{var n=Us(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Gs=s(((e,t)=>{var n=Ws(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Ks=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),qs=s(((e,t)=>{var n=is(),r=Ks(),i=ts(),a=ls(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Js=s(((e,t)=>{var n=qs();function r(e){return e==null?``:n(e)}t.exports=r})),Ys=s(((e,t)=>{var n=ts(),r=us(),i=Gs(),a=Js();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Xs=s(((e,t)=>{var n=ls(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Zs=s(((e,t)=>{var n=Ys(),r=Xs();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),Qs=s(((e,t)=>{var n=Zs();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),$s=s(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){return e!=null&&n.call(e,t)}t.exports=r})),ec=s(((e,t)=>{var n=ss(),r=cs(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),tc=s(((e,t)=>{var n=ec(),r=cs(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),nc=s(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),rc=s(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),ic=s(((e,t)=>{var n=Ys(),r=tc(),i=ts(),a=nc(),o=rc(),s=Xs();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),ac=s(((e,t)=>{var n=$s(),r=ic();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),oc=s(((e,t)=>{var n=vs();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),sc=s(((e,t)=>{var n=oc();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),cc=s(((e,t)=>{var n=sc(),r=Ds(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),lc=s(((e,t)=>{var n=cc(),r=Ys(),i=nc(),a=ds(),o=Xs();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),uc=s(((e,t)=>{var n=lc();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),dc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}})),fc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrameProvider=void 0;var r=or();e.animationFrameProvider={schedule:function(t){var n=requestAnimationFrame,i=cancelAnimationFrame,a=e.animationFrameProvider.delegate;a&&(n=a.requestAnimationFrame,i=a.cancelAnimationFrame);var o=n(function(e){i=void 0,t(e)});return new r.Subscription(function(){return i?.(o)})},requestAnimationFrame:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(e.animationFrameProvider.delegate?.requestAnimationFrame||requestAnimationFrame).apply(void 0,n([],t(r)))},cancelAnimationFrame:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(e.animationFrameProvider.delegate?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,n([],t(r)))},delegate:void 0}})),pc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrames=void 0;var t=B(),n=dc(),r=fc();function i(e){return e?a(e):o}e.animationFrames=i;function a(e){return new t.Observable(function(t){var i=e||n.performanceTimestampProvider,a=i.now(),o=0,s=function(){t.closed||(o=r.animationFrameProvider.requestAnimationFrame(function(n){o=0;var r=i.now();t.next({timestamp:e?r:n,elapsed:r-a}),s()}))};return s(),function(){o&&r.animationFrameProvider.cancelAnimationFrame(o)}})}var o=a()})),mc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTools=e.Immediate=void 0;var t=1,n,r={};function i(e){return e in r?(delete r[e],!0):!1}e.Immediate={setImmediate:function(e){var a=t++;return r[a]=!0,n||=Promise.resolve(),n.then(function(){return i(a)&&e()}),a},clearImmediate:function(e){i(e)}},e.TestTools={pending:function(){return Object.keys(r).length}}})),hc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.immediateProvider=void 0;var r=mc(),i=r.Immediate.setImmediate,a=r.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return(e.immediateProvider.delegate?.setImmediate||i).apply(void 0,n([],t(r)))},clearImmediate:function(t){return(e.immediateProvider.delegate?.clearImmediate||a)(t)},delegate:void 0}})),gc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapAction=void 0;var n=Er(),r=hc();e.AsapAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t._scheduled||=r.immediateProvider.setImmediate(t.flush.bind(t,void 0)))},n.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i==null?this.delay>0:i>0)return e.prototype.recycleAsyncId.call(this,t,n,i);var a=t.actions;n!=null&&a[a.length-1]?.id!==n&&(r.immediateProvider.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},n}(n.AsyncAction)})),_c=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapScheduler=void 0,e.AsapScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},n}(kr().AsyncScheduler)})),vc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.asap=e.asapScheduler=void 0;var t=gc();e.asapScheduler=new(_c()).AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})),yc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueAction=void 0,e.QueueAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!=null&&r>0||r==null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.flush(this),0)},n}(Er().AsyncAction)})),bc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueScheduler=void 0,e.QueueScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(kr().AsyncScheduler)})),xc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.queue=e.queueScheduler=void 0;var t=yc();e.queueScheduler=new(bc()).QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})),Sc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameAction=void 0;var n=Er(),r=fc();e.AnimationFrameAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t._scheduled||=r.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)}))},n.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i==null?this.delay>0:i>0)return e.prototype.recycleAsyncId.call(this,t,n,i);var a=t.actions;n!=null&&n===t._scheduled&&a[a.length-1]?.id!==n&&(r.animationFrameProvider.cancelAnimationFrame(n),t._scheduled=void 0)},n}(n.AsyncAction)})),Cc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameScheduler=void 0,e.AnimationFrameScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this._active=!0;var t;e?t=e.id:(t=this._scheduled,this._scheduled=void 0);var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},n}(kr().AsyncScheduler)})),wc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=Sc();e.animationFrameScheduler=new(Cc()).AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})),Tc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var n=Er(),r=or();e.VirtualTimeScheduler=function(e){t(n,e);function n(t,n){t===void 0&&(t=i),n===void 0&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return n.prototype.flush=function(){for(var e=this,t=e.actions,n=e.maxFrames,r,i;(i=t[0])&&i.delay<=n&&(t.shift(),this.frame=i.delay,!(r=i.execute(i.state,i.delay))););if(r){for(;i=t.shift();)i.unsubscribe();throw r}},n.frameTimeFactor=10,n}(kr().AsyncScheduler);var i=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return n.prototype.schedule=function(t,i){if(i===void 0&&(i=0),Number.isFinite(i)){if(!this.id)return e.prototype.schedule.call(this,t,i);this.active=!1;var a=new n(this.scheduler,this.work);return this.add(a),a.schedule(t,i)}else return r.Subscription.EMPTY},n.prototype.requestAsyncId=function(e,t,r){r===void 0&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),1},n.prototype.recycleAsyncId=function(e,t,n){n===void 0&&(n=0)},n.prototype._execute=function(t,n){if(this.active===!0)return e.prototype._execute.call(this,t,n)},n.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},n}(n.AsyncAction);e.VirtualAction=i})),Ec=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isObservable=void 0;var t=B(),n=R();function r(e){return!!e&&(e instanceof t.Observable||n.isFunction(e.lift)&&n.isFunction(e.subscribe))}e.isObservable=r})),Dc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lastValueFrom=void 0;var t=Gi();function n(e,n){var r=typeof n==`object`;return new Promise(function(i,a){var o=!1,s;e.subscribe({next:function(e){s=e,o=!0},error:a,complete:function(){o?i(s):r?i(n.defaultValue):a(new t.EmptyError)}})})}e.lastValueFrom=n})),Oc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.firstValueFrom=void 0;var t=Gi(),n=pr();function r(e,r){var i=typeof r==`object`;return new Promise(function(a,o){var s=new n.SafeSubscriber({next:function(e){a(e),s.unsubscribe()},error:o,complete:function(){i?a(r.defaultValue):o(new t.EmptyError)}});e.subscribe(s)})}e.firstValueFrom=r})),kc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.bindCallbackInternals=void 0;var r=jr(),i=B(),a=Gr(),o=ti(),s=Wr(),c=Oa();function l(e,u,d,f){if(d)if(r.isScheduler(d))f=d;else return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(e,u,f).apply(this,t).pipe(o.mapOneOrManyArgs(d))};return f?function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(e,u).apply(this,t).pipe(a.subscribeOn(f),s.observeOn(f))}:function(){for(var r=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=new c.AsyncSubject,l=!0;return new i.Observable(function(i){var o=s.subscribe(i);if(l){l=!1;var c=!1,d=!1;u.apply(r,n(n([],t(a)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(r!=null){s.error(r);return}}s.next(1<t.length?t:t[0]),d=!0,c&&s.complete()}])),d&&s.complete(),c=!0}return o})}}e.bindCallbackInternals=l})),Ac=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bindCallback=void 0;var t=kc();function n(e,n,r){return t.bindCallbackInternals(!1,e,n,r)}e.bindCallback=n})),jc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bindNodeCallback=void 0;var t=kc();function n(e,n,r){return t.bindCallbackInternals(!0,e,n,r)}e.bindNodeCallback=n})),Mc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defer=void 0;var t=B(),n=V();function r(e){return new t.Observable(function(t){n.innerFrom(e()).subscribe(t)})}e.defer=r})),Nc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.connectable=void 0;var t=Si(),n=B(),r=Mc(),i={connector:function(){return new t.Subject},resetOnDisconnect:!0};function a(e,t){t===void 0&&(t=i);var a=null,o=t.connector,s=t.resetOnDisconnect,c=s===void 0?!0:s,l=o(),u=new n.Observable(function(e){return l.subscribe(e)});return u.connect=function(){return(!a||a.closed)&&(a=r.defer(function(){return e}).subscribe(l),c&&a.add(function(){return l=o()})),a},u}e.connectable=a})),Pc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.forkJoin=void 0;var t=B(),n=Ur(),r=V(),i=Lr(),a=H(),o=ti(),s=ni();function c(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=i.popResultSelector(e),u=n.argsArgArrayOrObject(e),d=u.args,f=u.keys,p=new t.Observable(function(e){var t=d.length;if(!t){e.complete();return}for(var n=Array(t),i=t,o=t,c=function(t){var c=!1;r.innerFrom(d[t]).subscribe(a.createOperatorSubscriber(e,function(e){c||(c=!0,o--),n[t]=e},function(){return i--},void 0,function(){(!i||!c)&&(o||e.next(f?s.createObject(f,n):n),e.complete())}))},l=0;l<t;l++)c(l)});return l?p.pipe(o.mapOneOrManyArgs(l)):p}e.forkJoin=c})),Fc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,`__esModule`,{value:!0}),e.fromEvent=void 0;var n=V(),r=B(),i=ai(),a=tr(),o=R(),s=ti(),c=[`addListener`,`removeListener`],l=[`addEventListener`,`removeEventListener`],u=[`on`,`off`];function d(e,g,_,v){if(o.isFunction(_)&&(v=_,_=void 0),v)return d(e,g,_).pipe(s.mapOneOrManyArgs(v));var y=t(h(e)?l.map(function(t){return function(n){return e[t](g,n,_)}}):p(e)?c.map(f(e,g)):m(e)?u.map(f(e,g)):[],2),b=y[0],x=y[1];if(!b&&a.isArrayLike(e))return i.mergeMap(function(e){return d(e,g,_)})(n.innerFrom(e));if(!b)throw TypeError(`Invalid event target`);return new r.Observable(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return b(t),function(){return x(t)}})}e.fromEvent=d;function f(e,t){return function(n){return function(r){return e[n](t,r)}}}function p(e){return o.isFunction(e.addListener)&&o.isFunction(e.removeListener)}function m(e){return o.isFunction(e.on)&&o.isFunction(e.off)}function h(e){return o.isFunction(e.addEventListener)&&o.isFunction(e.removeEventListener)}})),Ic=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fromEventPattern=void 0;var t=B(),n=R(),r=ti();function i(e,a,o){return o?i(e,a).pipe(r.mapOneOrManyArgs(o)):new t.Observable(function(t){var r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(e.length===1?e[0]:e)},i=e(r);return n.isFunction(a)?function(){return a(r,i)}:void 0})}e.fromEventPattern=i})),Lc=s((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0}),e.generate=void 0;var n=hr(),r=jr(),i=Mc(),a=Yr();function o(e,o,s,c,l){var u,d,f,p;arguments.length===1?(u=e,p=u.initialState,o=u.condition,s=u.iterate,d=u.resultSelector,f=d===void 0?n.identity:d,l=u.scheduler):(p=e,!c||r.isScheduler(c)?(f=n.identity,l=c):f=c);function m(){var e;return t(this,function(t){switch(t.label){case 0:e=p,t.label=1;case 1:return!o||o(e)?[4,f(e)]:[3,4];case 2:t.sent(),t.label=3;case 3:return e=s(e),[3,1];case 4:return[2]}})}return i.defer(l?function(){return a.scheduleIterable(m(),l)}:m)}e.generate=o})),Rc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.iif=void 0;var t=Mc();function n(e,n,r){return t.defer(function(){return e()?n:r})}e.iif=n})),zc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;var t=hi(),n=V(),r=Ai(),i=Lr(),a=$r();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=i.popScheduler(e),c=i.popNumber(e,1/0),l=e;return l.length?l.length===1?n.innerFrom(l[0]):t.mergeAll(c)(a.from(l,s)):r.EMPTY}e.merge=o})),Bc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.never=e.NEVER=void 0;var t=B(),n=ur();e.NEVER=new t.Observable(n.noop);function r(){return e.NEVER}e.never=r})),Vc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pairs=void 0;var t=$r();function n(e,n){return t.from(Object.entries(e),n)}e.pairs=n})),Hc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.partition=void 0;var t=Sa(),n=Wi(),r=V();function i(e,i,a){return[n.filter(i,a)(r.innerFrom(e)),n.filter(t.not(i,a))(r.innerFrom(e))]}e.partition=i})),Uc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.range=void 0;var t=B(),n=Ai();function r(e,r,i){if(r??(r=e,e=0),r<=0)return n.EMPTY;var a=r+e;return new t.Observable(i?function(t){var n=e;return i.schedule(function(){n<a?(t.next(n++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<a&&!t.closed;)t.next(n++);t.complete()})}e.range=r})),Wc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.using=void 0;var t=B(),n=V(),r=Ai();function i(e,i){return new t.Observable(function(t){var a=e(),o=i(a);return(o?n.innerFrom(o):r.EMPTY).subscribe(t),function(){a&&a.unsubscribe()}})}e.using=i})),Gc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Kc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var r=B();Object.defineProperty(e,`Observable`,{enumerable:!0,get:function(){return r.Observable}});var i=_a();Object.defineProperty(e,`ConnectableObservable`,{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=mr();Object.defineProperty(e,`observable`,{enumerable:!0,get:function(){return a.observable}});var o=pc();Object.defineProperty(e,`animationFrames`,{enumerable:!0,get:function(){return o.animationFrames}});var s=Si();Object.defineProperty(e,`Subject`,{enumerable:!0,get:function(){return s.Subject}});var c=Ea();Object.defineProperty(e,`BehaviorSubject`,{enumerable:!0,get:function(){return c.BehaviorSubject}});var l=Aa();Object.defineProperty(e,`ReplaySubject`,{enumerable:!0,get:function(){return l.ReplaySubject}});var u=Oa();Object.defineProperty(e,`AsyncSubject`,{enumerable:!0,get:function(){return u.AsyncSubject}});var d=vc();Object.defineProperty(e,`asap`,{enumerable:!0,get:function(){return d.asap}}),Object.defineProperty(e,`asapScheduler`,{enumerable:!0,get:function(){return d.asapScheduler}});var f=Ar();Object.defineProperty(e,`async`,{enumerable:!0,get:function(){return f.async}}),Object.defineProperty(e,`asyncScheduler`,{enumerable:!0,get:function(){return f.asyncScheduler}});var p=xc();Object.defineProperty(e,`queue`,{enumerable:!0,get:function(){return p.queue}}),Object.defineProperty(e,`queueScheduler`,{enumerable:!0,get:function(){return p.queueScheduler}});var m=wc();Object.defineProperty(e,`animationFrame`,{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(e,`animationFrameScheduler`,{enumerable:!0,get:function(){return m.animationFrameScheduler}});var h=Tc();Object.defineProperty(e,`VirtualTimeScheduler`,{enumerable:!0,get:function(){return h.VirtualTimeScheduler}}),Object.defineProperty(e,`VirtualAction`,{enumerable:!0,get:function(){return h.VirtualAction}});var g=Or();Object.defineProperty(e,`Scheduler`,{enumerable:!0,get:function(){return g.Scheduler}});var _=or();Object.defineProperty(e,`Subscription`,{enumerable:!0,get:function(){return _.Subscription}});var v=pr();Object.defineProperty(e,`Subscriber`,{enumerable:!0,get:function(){return v.Subscriber}});var y=Ri();Object.defineProperty(e,`Notification`,{enumerable:!0,get:function(){return y.Notification}}),Object.defineProperty(e,`NotificationKind`,{enumerable:!0,get:function(){return y.NotificationKind}});var b=gr();Object.defineProperty(e,`pipe`,{enumerable:!0,get:function(){return b.pipe}});var x=ur();Object.defineProperty(e,`noop`,{enumerable:!0,get:function(){return x.noop}});var S=hr();Object.defineProperty(e,`identity`,{enumerable:!0,get:function(){return S.identity}});var C=Ec();Object.defineProperty(e,`isObservable`,{enumerable:!0,get:function(){return C.isObservable}});var w=Dc();Object.defineProperty(e,`lastValueFrom`,{enumerable:!0,get:function(){return w.lastValueFrom}});var T=Oc();Object.defineProperty(e,`firstValueFrom`,{enumerable:!0,get:function(){return T.firstValueFrom}});var E=Ui();Object.defineProperty(e,`ArgumentOutOfRangeError`,{enumerable:!0,get:function(){return E.ArgumentOutOfRangeError}});var D=Gi();Object.defineProperty(e,`EmptyError`,{enumerable:!0,get:function(){return D.EmptyError}});var O=qa();Object.defineProperty(e,`NotFoundError`,{enumerable:!0,get:function(){return O.NotFoundError}});var k=xi();Object.defineProperty(e,`ObjectUnsubscribedError`,{enumerable:!0,get:function(){return k.ObjectUnsubscribedError}});var A=Ka();Object.defineProperty(e,`SequenceError`,{enumerable:!0,get:function(){return A.SequenceError}});var j=uo();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return j.TimeoutError}});var ee=ir();Object.defineProperty(e,`UnsubscriptionError`,{enumerable:!0,get:function(){return ee.UnsubscriptionError}});var M=Ac();Object.defineProperty(e,`bindCallback`,{enumerable:!0,get:function(){return M.bindCallback}});var te=jc();Object.defineProperty(e,`bindNodeCallback`,{enumerable:!0,get:function(){return te.bindNodeCallback}});var ne=ri();Object.defineProperty(e,`combineLatest`,{enumerable:!0,get:function(){return ne.combineLatest}});var re=ki();Object.defineProperty(e,`concat`,{enumerable:!0,get:function(){return re.concat}});var N=Nc();Object.defineProperty(e,`connectable`,{enumerable:!0,get:function(){return N.connectable}});var ie=Mc();Object.defineProperty(e,`defer`,{enumerable:!0,get:function(){return ie.defer}});var ae=Ai();Object.defineProperty(e,`empty`,{enumerable:!0,get:function(){return ae.empty}});var P=Pc();Object.defineProperty(e,`forkJoin`,{enumerable:!0,get:function(){return P.forkJoin}});var oe=$r();Object.defineProperty(e,`from`,{enumerable:!0,get:function(){return oe.from}});var se=Fc();Object.defineProperty(e,`fromEvent`,{enumerable:!0,get:function(){return se.fromEvent}});var ce=Ic();Object.defineProperty(e,`fromEventPattern`,{enumerable:!0,get:function(){return ce.fromEventPattern}});var le=Lc();Object.defineProperty(e,`generate`,{enumerable:!0,get:function(){return le.generate}});var ue=Rc();Object.defineProperty(e,`iif`,{enumerable:!0,get:function(){return ue.iif}});var de=Ba();Object.defineProperty(e,`interval`,{enumerable:!0,get:function(){return de.interval}});var fe=zc();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return fe.merge}});var pe=Bc();Object.defineProperty(e,`never`,{enumerable:!0,get:function(){return pe.never}});var me=Ii();Object.defineProperty(e,`of`,{enumerable:!0,get:function(){return me.of}});var he=ya();Object.defineProperty(e,`onErrorResumeNext`,{enumerable:!0,get:function(){return he.onErrorResumeNext}});var ge=Vc();Object.defineProperty(e,`pairs`,{enumerable:!0,get:function(){return ge.pairs}});var _e=Hc();Object.defineProperty(e,`partition`,{enumerable:!0,get:function(){return _e.partition}});var ve=Ma();Object.defineProperty(e,`race`,{enumerable:!0,get:function(){return ve.race}});var ye=Uc();Object.defineProperty(e,`range`,{enumerable:!0,get:function(){return ye.range}});var be=Li();Object.defineProperty(e,`throwError`,{enumerable:!0,get:function(){return be.throwError}});var xe=Nr();Object.defineProperty(e,`timer`,{enumerable:!0,get:function(){return xe.timer}});var Se=Wc();Object.defineProperty(e,`using`,{enumerable:!0,get:function(){return Se.using}});var Ce=bo();Object.defineProperty(e,`zip`,{enumerable:!0,get:function(){return Ce.zip}});var we=Qr();Object.defineProperty(e,`scheduled`,{enumerable:!0,get:function(){return we.scheduled}});var Te=Ai();Object.defineProperty(e,`EMPTY`,{enumerable:!0,get:function(){return Te.EMPTY}});var Ee=Bc();Object.defineProperty(e,`NEVER`,{enumerable:!0,get:function(){return Ee.NEVER}}),n(Gc(),e);var De=sr();Object.defineProperty(e,`config`,{enumerable:!0,get:function(){return De.config}});var Oe=Cr();Object.defineProperty(e,`audit`,{enumerable:!0,get:function(){return Oe.audit}});var ke=Pr();Object.defineProperty(e,`auditTime`,{enumerable:!0,get:function(){return ke.auditTime}});var Ae=Fr();Object.defineProperty(e,`buffer`,{enumerable:!0,get:function(){return Ae.buffer}});var je=Ir();Object.defineProperty(e,`bufferCount`,{enumerable:!0,get:function(){return je.bufferCount}});var F=zr();Object.defineProperty(e,`bufferTime`,{enumerable:!0,get:function(){return F.bufferTime}});var Me=Br();Object.defineProperty(e,`bufferToggle`,{enumerable:!0,get:function(){return Me.bufferToggle}});var Ne=Vr();Object.defineProperty(e,`bufferWhen`,{enumerable:!0,get:function(){return Ne.bufferWhen}});var Pe=Hr();Object.defineProperty(e,`catchError`,{enumerable:!0,get:function(){return Pe.catchError}});var Fe=di();Object.defineProperty(e,`combineAll`,{enumerable:!0,get:function(){return Fe.combineAll}});var I=ui();Object.defineProperty(e,`combineLatestAll`,{enumerable:!0,get:function(){return I.combineLatestAll}});var Ie=mi();Object.defineProperty(e,`combineLatestWith`,{enumerable:!0,get:function(){return Ie.combineLatestWith}});var Le=gi();Object.defineProperty(e,`concatAll`,{enumerable:!0,get:function(){return Le.concatAll}});var Re=vi();Object.defineProperty(e,`concatMap`,{enumerable:!0,get:function(){return Re.concatMap}});var ze=yi();Object.defineProperty(e,`concatMapTo`,{enumerable:!0,get:function(){return ze.concatMapTo}});var Be=bi();Object.defineProperty(e,`concatWith`,{enumerable:!0,get:function(){return Be.concatWith}});var Ve=wi();Object.defineProperty(e,`connect`,{enumerable:!0,get:function(){return Ve.connect}});var He=Ti();Object.defineProperty(e,`count`,{enumerable:!0,get:function(){return He.count}});var Ue=Ei();Object.defineProperty(e,`debounce`,{enumerable:!0,get:function(){return Ue.debounce}});var We=Di();Object.defineProperty(e,`debounceTime`,{enumerable:!0,get:function(){return We.debounceTime}});var Ge=Oi();Object.defineProperty(e,`defaultIfEmpty`,{enumerable:!0,get:function(){return Ge.defaultIfEmpty}});var Ke=Fi();Object.defineProperty(e,`delay`,{enumerable:!0,get:function(){return Ke.delay}});var qe=Pi();Object.defineProperty(e,`delayWhen`,{enumerable:!0,get:function(){return qe.delayWhen}});var Je=zi();Object.defineProperty(e,`dematerialize`,{enumerable:!0,get:function(){return Je.dematerialize}});var Ye=Bi();Object.defineProperty(e,`distinct`,{enumerable:!0,get:function(){return Ye.distinct}});var Xe=Vi();Object.defineProperty(e,`distinctUntilChanged`,{enumerable:!0,get:function(){return Xe.distinctUntilChanged}});var Ze=Hi();Object.defineProperty(e,`distinctUntilKeyChanged`,{enumerable:!0,get:function(){return Ze.distinctUntilKeyChanged}});var Qe=qi();Object.defineProperty(e,`elementAt`,{enumerable:!0,get:function(){return Qe.elementAt}});var $e=Ji();Object.defineProperty(e,`endWith`,{enumerable:!0,get:function(){return $e.endWith}});var et=Yi();Object.defineProperty(e,`every`,{enumerable:!0,get:function(){return et.every}});var tt=Qi();Object.defineProperty(e,`exhaust`,{enumerable:!0,get:function(){return tt.exhaust}});var nt=Zi();Object.defineProperty(e,`exhaustAll`,{enumerable:!0,get:function(){return nt.exhaustAll}});var rt=Xi();Object.defineProperty(e,`exhaustMap`,{enumerable:!0,get:function(){return rt.exhaustMap}});var it=$i();Object.defineProperty(e,`expand`,{enumerable:!0,get:function(){return it.expand}});var at=Wi();Object.defineProperty(e,`filter`,{enumerable:!0,get:function(){return at.filter}});var ot=ea();Object.defineProperty(e,`finalize`,{enumerable:!0,get:function(){return ot.finalize}});var st=ta();Object.defineProperty(e,`find`,{enumerable:!0,get:function(){return st.find}});var ct=na();Object.defineProperty(e,`findIndex`,{enumerable:!0,get:function(){return ct.findIndex}});var lt=ra();Object.defineProperty(e,`first`,{enumerable:!0,get:function(){return lt.first}});var ut=ia();Object.defineProperty(e,`groupBy`,{enumerable:!0,get:function(){return ut.groupBy}});var dt=Mi();Object.defineProperty(e,`ignoreElements`,{enumerable:!0,get:function(){return dt.ignoreElements}});var ft=aa();Object.defineProperty(e,`isEmpty`,{enumerable:!0,get:function(){return ft.isEmpty}});var pt=sa();Object.defineProperty(e,`last`,{enumerable:!0,get:function(){return pt.last}});var mt=ei();Object.defineProperty(e,`map`,{enumerable:!0,get:function(){return mt.map}});var ht=Ni();Object.defineProperty(e,`mapTo`,{enumerable:!0,get:function(){return ht.mapTo}});var gt=ca();Object.defineProperty(e,`materialize`,{enumerable:!0,get:function(){return gt.materialize}});var _t=la();Object.defineProperty(e,`max`,{enumerable:!0,get:function(){return _t.max}});var vt=hi();Object.defineProperty(e,`mergeAll`,{enumerable:!0,get:function(){return vt.mergeAll}});var yt=da();Object.defineProperty(e,`flatMap`,{enumerable:!0,get:function(){return yt.flatMap}});var bt=ai();Object.defineProperty(e,`mergeMap`,{enumerable:!0,get:function(){return bt.mergeMap}});var xt=fa();Object.defineProperty(e,`mergeMapTo`,{enumerable:!0,get:function(){return xt.mergeMapTo}});var St=pa();Object.defineProperty(e,`mergeScan`,{enumerable:!0,get:function(){return St.mergeScan}});var Ct=ma();Object.defineProperty(e,`mergeWith`,{enumerable:!0,get:function(){return Ct.mergeWith}});var wt=ha();Object.defineProperty(e,`min`,{enumerable:!0,get:function(){return wt.min}});var Tt=va();Object.defineProperty(e,`multicast`,{enumerable:!0,get:function(){return Tt.multicast}});var Et=Wr();Object.defineProperty(e,`observeOn`,{enumerable:!0,get:function(){return Et.observeOn}});var Dt=ba();Object.defineProperty(e,`onErrorResumeNextWith`,{enumerable:!0,get:function(){return Dt.onErrorResumeNextWith}});var Ot=xa();Object.defineProperty(e,`pairwise`,{enumerable:!0,get:function(){return Ot.pairwise}});var kt=wa();Object.defineProperty(e,`pluck`,{enumerable:!0,get:function(){return kt.pluck}});var At=Ta();Object.defineProperty(e,`publish`,{enumerable:!0,get:function(){return At.publish}});var jt=Da();Object.defineProperty(e,`publishBehavior`,{enumerable:!0,get:function(){return jt.publishBehavior}});var Mt=ka();Object.defineProperty(e,`publishLast`,{enumerable:!0,get:function(){return Mt.publishLast}});var Nt=ja();Object.defineProperty(e,`publishReplay`,{enumerable:!0,get:function(){return Nt.publishReplay}});var Pt=Na();Object.defineProperty(e,`raceWith`,{enumerable:!0,get:function(){return Pt.raceWith}});var Ft=si();Object.defineProperty(e,`reduce`,{enumerable:!0,get:function(){return Ft.reduce}});var It=Fa();Object.defineProperty(e,`repeat`,{enumerable:!0,get:function(){return It.repeat}});var Lt=Ia();Object.defineProperty(e,`repeatWhen`,{enumerable:!0,get:function(){return Lt.repeatWhen}});var Rt=La();Object.defineProperty(e,`retry`,{enumerable:!0,get:function(){return Rt.retry}});var zt=Ra();Object.defineProperty(e,`retryWhen`,{enumerable:!0,get:function(){return zt.retryWhen}});var Bt=ga();Object.defineProperty(e,`refCount`,{enumerable:!0,get:function(){return Bt.refCount}});var Vt=za();Object.defineProperty(e,`sample`,{enumerable:!0,get:function(){return Vt.sample}});var Ht=Va();Object.defineProperty(e,`sampleTime`,{enumerable:!0,get:function(){return Ht.sampleTime}});var Ut=Ha();Object.defineProperty(e,`scan`,{enumerable:!0,get:function(){return Ut.scan}});var Wt=Ua();Object.defineProperty(e,`sequenceEqual`,{enumerable:!0,get:function(){return Wt.sequenceEqual}});var Gt=Wa();Object.defineProperty(e,`share`,{enumerable:!0,get:function(){return Gt.share}});var Kt=Ga();Object.defineProperty(e,`shareReplay`,{enumerable:!0,get:function(){return Kt.shareReplay}});var qt=Ja();Object.defineProperty(e,`single`,{enumerable:!0,get:function(){return qt.single}});var Jt=Ya();Object.defineProperty(e,`skip`,{enumerable:!0,get:function(){return Jt.skip}});var Yt=Xa();Object.defineProperty(e,`skipLast`,{enumerable:!0,get:function(){return Yt.skipLast}});var Xt=Za();Object.defineProperty(e,`skipUntil`,{enumerable:!0,get:function(){return Xt.skipUntil}});var Zt=Qa();Object.defineProperty(e,`skipWhile`,{enumerable:!0,get:function(){return Zt.skipWhile}});var Qt=$a();Object.defineProperty(e,`startWith`,{enumerable:!0,get:function(){return Qt.startWith}});var $t=Gr();Object.defineProperty(e,`subscribeOn`,{enumerable:!0,get:function(){return $t.subscribeOn}});var en=to();Object.defineProperty(e,`switchAll`,{enumerable:!0,get:function(){return en.switchAll}});var tn=eo();Object.defineProperty(e,`switchMap`,{enumerable:!0,get:function(){return tn.switchMap}});var nn=no();Object.defineProperty(e,`switchMapTo`,{enumerable:!0,get:function(){return nn.switchMapTo}});var rn=ro();Object.defineProperty(e,`switchScan`,{enumerable:!0,get:function(){return rn.switchScan}});var an=ji();Object.defineProperty(e,`take`,{enumerable:!0,get:function(){return an.take}});var on=oa();Object.defineProperty(e,`takeLast`,{enumerable:!0,get:function(){return on.takeLast}});var sn=io();Object.defineProperty(e,`takeUntil`,{enumerable:!0,get:function(){return sn.takeUntil}});var cn=ao();Object.defineProperty(e,`takeWhile`,{enumerable:!0,get:function(){return cn.takeWhile}});var ln=oo();Object.defineProperty(e,`tap`,{enumerable:!0,get:function(){return ln.tap}});var un=so();Object.defineProperty(e,`throttle`,{enumerable:!0,get:function(){return un.throttle}});var dn=co();Object.defineProperty(e,`throttleTime`,{enumerable:!0,get:function(){return dn.throttleTime}});var fn=Ki();Object.defineProperty(e,`throwIfEmpty`,{enumerable:!0,get:function(){return fn.throwIfEmpty}});var pn=lo();Object.defineProperty(e,`timeInterval`,{enumerable:!0,get:function(){return pn.timeInterval}});var mn=uo();Object.defineProperty(e,`timeout`,{enumerable:!0,get:function(){return mn.timeout}});var hn=fo();Object.defineProperty(e,`timeoutWith`,{enumerable:!0,get:function(){return hn.timeoutWith}});var gn=po();Object.defineProperty(e,`timestamp`,{enumerable:!0,get:function(){return gn.timestamp}});var _n=ci();Object.defineProperty(e,`toArray`,{enumerable:!0,get:function(){return _n.toArray}});var vn=mo();Object.defineProperty(e,`window`,{enumerable:!0,get:function(){return vn.window}});var yn=ho();Object.defineProperty(e,`windowCount`,{enumerable:!0,get:function(){return yn.windowCount}});var bn=go();Object.defineProperty(e,`windowTime`,{enumerable:!0,get:function(){return bn.windowTime}});var xn=_o();Object.defineProperty(e,`windowToggle`,{enumerable:!0,get:function(){return xn.windowToggle}});var Sn=vo();Object.defineProperty(e,`windowWhen`,{enumerable:!0,get:function(){return Sn.windowWhen}});var Cn=yo();Object.defineProperty(e,`withLatestFrom`,{enumerable:!0,get:function(){return Cn.withLatestFrom}});var wn=So();Object.defineProperty(e,`zipAll`,{enumerable:!0,get:function(){return wn.zipAll}});var Tn=Co();Object.defineProperty(e,`zipWith`,{enumerable:!0,get:function(){return Tn.zipWith}})})),qc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),a=e&&e.__metadata||function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},o=e&&e.__param||function(e,t){return function(n,r){t(n,r,e)}},s=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigService=void 0;var c=U(),l=M(),u=i(Qo()),d=s(require(`fs`)),f=s(Qs()),p=s(ac()),m=s(uc()),h=Kc(),g=es(),_=class{set isCacheEnabled(e){this._isCacheEnabled=e}get isCacheEnabled(){return this._isCacheEnabled}set skipProcessEnv(e){this._skipProcessEnv=e}get skipProcessEnv(){return this._skipProcessEnv}constructor(e={}){this.internalConfig=e,this.cache={},this._changes$=new h.Subject,this._skipProcessEnv=!1,this._isCacheEnabled=!1,this.envFilePaths=[]}get changes$(){return this._changes$.asObservable()}get(e,t,n){let r=this.getFromInternalConfig(e);if(!(0,l.isUndefined)(r))return r;let i=this.getFromValidatedEnv(e);if(!(0,l.isUndefined)(i))return i;let a=this.isGetOptionsObject(t)&&!n?void 0:t;if(!this._skipProcessEnv){let t=this.getFromProcessEnv(e,a);if(!(0,l.isUndefined)(t))return t}return a}getOrThrow(e,t,n){let r=this.get(e,t,n);if((0,l.isUndefined)(r))throw TypeError(`Configuration key "${e.toString()}" does not exist`);return r}set(e,t){let n=this.get(e);(0,m.default)(this.internalConfig,e,t),typeof e==`string`&&(process.env[e]=String(t),this.updateInterpolatedEnv(e,String(t))),this.isCacheEnabled&&this.setInCacheIfDefined(e,t),this._changes$.next({path:e,oldValue:n,newValue:t})}setEnvFilePaths(e){this.envFilePaths=e}getFromCache(e,t){let n=(0,f.default)(this.cache,e);return(0,l.isUndefined)(n)?t:n}getFromValidatedEnv(e){return(0,f.default)(this.internalConfig[g.VALIDATED_ENV_PROPNAME],e)}getFromProcessEnv(e,t){if(this.isCacheEnabled&&(0,p.default)(this.cache,e)){let n=this.getFromCache(e,t);return(0,l.isUndefined)(n)?t:n}let n=(0,f.default)(process.env,e);return this.setInCacheIfDefined(e,n),n}getFromInternalConfig(e){return(0,f.default)(this.internalConfig,e)}setInCacheIfDefined(e,t){t!==void 0&&(0,m.default)(this.cache,e,t)}isGetOptionsObject(e){return e&&e?.infer&&Object.keys(e).length===1}updateInterpolatedEnv(e,t){let n={};for(let e of this.envFilePaths)d.default.existsSync(e)&&(n=Object.assign(u.parse(d.default.readFileSync(e)),n));let r=RegExp(`\\$\\{?${e}\\}?`,`g`);for(let[e,i]of Object.entries(n))r.test(i)&&(process.env[e]=i.replace(r,t))}};e.ConfigService=_,e.ConfigService=_=r([(0,c.Injectable)(),o(0,(0,c.Optional)()),o(0,(0,c.Inject)(g.CONFIGURATION_TOKEN)),a(`design:paramtypes`,[Object])],_)})),Jc=s((e=>{var t=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigHostModule=void 0;var n=U(),r=es(),i=qc(),a=class{};e.ConfigHostModule=a,e.ConfigHostModule=a=t([(0,n.Global)(),(0,n.Module)({providers:[{provide:r.CONFIGURATION_TOKEN,useFactory:()=>({})},{provide:r.CONFIGURATION_SERVICE_TOKEN,useClass:i.ConfigService}],exports:[r.CONFIGURATION_TOKEN,r.CONFIGURATION_SERVICE_TOKEN]})],a)})),Yc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getConfigToken=t;function t(e){return`CONFIGURATION(${e.toString()})`}})),Xc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfigProvider=r;var t=Yc(),n=require(`crypto`);function r(e){return{provide:e.KEY||(0,t.getConfigToken)((0,n.randomUUID)()),useFactory:e,inject:[]}}})),Zc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getRegistrationToken=n;var t=es();function n(e){return e[t.PARTIAL_CONFIGURATION_KEY]}})),Qc=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeConfigObject=r;var n=t(uc());function r(e,t,r){if(r)return(0,n.default)(e,r,t),t;Object.assign(e,t)}})),$c=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),a;Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigModule=void 0;var o=U(),s=M(),c=i(Qo()),l=$o(),u=i(require(`fs`)),d=require(`path`),f=Jc(),p=es(),m=qc(),h=Xc(),g=Zc(),_=Qc(),v=a=class{static get envVariablesLoaded(){return this._envVariablesLoaded}static async forRoot(e={}){let t=Array.isArray(e.envFilePath)?e.envFilePath:[e.envFilePath||(0,d.resolve)(process.cwd(),`.env`)],n,r=e.ignoreEnvFile?{}:this.loadEnvFile(t,e);if(!e.ignoreEnvVars&&e.validatePredefined!==!1&&(r={...r,...process.env}),e.validate){let t=e.validate(r);n=t,this.assignVariablesToProcess(t)}else if(e.validationSchema){let t=this.getSchemaValidationOptions(e),{error:i,value:a}=e.validationSchema.validate(r,t);if(i)throw Error(`Config validation error: ${i.message}`);n=a,this.assignVariablesToProcess(a)}else this.assignVariablesToProcess(r);let i=e.load&&e.load.length,o=(await Promise.all(e.load||[])).map(e=>(0,h.createConfigProvider)(e)).filter(e=>e),s=o.map(e=>e.provide),c={provide:m.ConfigService,useFactory:n=>{let r=n;return e.cache&&(r.isCacheEnabled=!0),e.skipProcessEnv&&(r.skipProcessEnv=!0),n.setEnvFilePaths(t),n},inject:[p.CONFIGURATION_SERVICE_TOKEN,...s]};if(o.push(c),n){let e={provide:p.VALIDATED_ENV_LOADER,useFactory:e=>{e[p.VALIDATED_ENV_PROPNAME]=n},inject:[p.CONFIGURATION_TOKEN]};o.push(e)}return this.environmentVariablesLoadedSignal(),{module:a,global:e.isGlobal,providers:i?[...o,{provide:p.CONFIGURATION_LOADER,useFactory:(e,...t)=>{t.forEach((t,n)=>this.mergePartial(e,t,o[n]))},inject:[p.CONFIGURATION_TOKEN,...s]}]:o,exports:[m.ConfigService,...s]}}static forFeature(e){let t=(0,h.createConfigProvider)(e),n={provide:m.ConfigService,useFactory:e=>e,inject:[p.CONFIGURATION_SERVICE_TOKEN,t.provide]};return{module:a,providers:[t,n,{provide:p.CONFIGURATION_LOADER,useFactory:(e,n)=>{this.mergePartial(e,n,t)},inject:[p.CONFIGURATION_TOKEN,t.provide]}],exports:[m.ConfigService,t.provide]}}static loadEnvFile(e,t){let n={};for(let r of e)if(u.existsSync(r)&&(n=Object.assign(c.parse(u.readFileSync(r)),n),t.expandVariables)){let e=typeof t.expandVariables==`object`?t.expandVariables:{};n=(0,l.expand)({...e,parsed:n}).parsed||n}return n}static assignVariablesToProcess(e){(0,s.isObject)(e)&&Object.keys(e).filter(e=>!(e in process.env)).forEach(t=>{let n=e[t];typeof n==`string`?process.env[t]=n:(typeof n==`boolean`||typeof n==`number`)&&(process.env[t]=`${n}`)})}static mergePartial(e,t,n){let r=n.useFactory,i=(0,g.getRegistrationToken)(r);(0,_.mergeConfigObject)(e,t,i)}static getSchemaValidationOptions(e){return e.validationOptions?(e.validationOptions.allowUnknown===void 0&&(e.validationOptions.allowUnknown=!0),e.validationOptions):{abortEarly:!1,allowUnknown:!0}}};e.ConfigModule=v,v._envVariablesLoaded=new Promise(e=>a.environmentVariablesLoadedSignal=e),e.ConfigModule=v=a=r([(0,o.Module)({imports:[f.ConfigHostModule],providers:[{provide:m.ConfigService,useExisting:p.CONFIGURATION_SERVICE_TOKEN}],exports:[f.ConfigHostModule,m.ConfigService]})],v)})),el=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConditionalModule=void 0;var t=U(),n=$c(),r=e=>e?.forwardRef?e.forwardRef()?.name:e.module?e.module?.name:e.name;e.ConditionalModule=class e{static async registerWhen(i,a,o){let{timeout:s=5e3,debug:c=!0}=o??{},l=r(i)||i.toString(),u=setTimeout(()=>{throw Error(`Nest was not able to resolve the config variables within ${s} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${l} should be registered or not`)},s);u.unref();let d={module:e,imports:[],exports:[]};if(typeof a==`string`){let e=a;a=t=>t[e]?.toLowerCase()!==`false`}return await n.ConfigModule.envVariablesLoaded,clearTimeout(u),a(process.env)?(d.imports.push(i),d.exports.push(i)):c&&t.Logger.debug(`${a.toString()} evaluated to false. Skipping the registration of ${l}`,e.name),d}}})),tl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),nl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),rl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),il=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),al=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(tl(),e),n(nl(),e),n(rl(),e),n(il(),e)})),ol=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerAs=i;var t=fl(),n=es(),r=Yc();function i(e,i){let a=(e,t)=>{Object.defineProperty(i,e,{configurable:!1,enumerable:!1,value:t,writable:!1})};return a(n.PARTIAL_CONFIGURATION_KEY,e),a(n.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(e)),a(n.AS_PROVIDER_METHOD_KEY,()=>({imports:[t.ConfigModule.forFeature(i)],useFactory:e=>e,inject:[(0,r.getConfigToken)(e)]})),i}})),sl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(ol(),e),n(Yc(),e)})),cl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ll=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ul=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),dl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(cl(),e),n(ll(),e),n(ul(),e)})),fl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(el(),e),n($c(),e),n(qc(),e),n(al(),e),n(sl(),e),n(dl(),e)})),pl=s((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,t(fl())}))(),ml=(e,t=process.env)=>{let n=e.safeParse(t);if(!n.success)throw Error(`Invalid environment variables: ${JSON.stringify(n.error.issues)}`);return n.data},hl=[];for(let e=0;e<256;++e)hl.push((e+256).toString(16).slice(1));typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Object.freeze({status:`aborted`});function W(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var gl=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},_l=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},vl={};function yl(e){return e&&Object.assign(vl,e),vl}function bl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function xl(e,t){return typeof t==`bigint`?t.toString():t}function Sl(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function Cl(e){return e==null}function wl(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Tl(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var El=Symbol(`evaluating`);function G(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==El)return r===void 0&&(r=El,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Dl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ol(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function kl(e){return JSON.stringify(e)}function Al(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var jl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ml(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Nl=Sl(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Pl(e){if(Ml(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ml(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Fl(e){return Pl(e)?{...e}:Array.isArray(e)?[...e]:e}var Il=new Set([`string`,`number`,`symbol`]);function Ll(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Rl(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function K(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function zl(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Bl={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Vl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Rl(e,Ol(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Dl(this,`shape`,e),e},checks:[]}))}function Hl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Rl(e,Ol(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Dl(this,`shape`,r),r},checks:[]}))}function Ul(e,t){if(!Pl(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Rl(e,Ol(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Dl(this,`shape`,n),n}}))}function Wl(e,t){if(!Pl(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Rl(e,Ol(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Dl(this,`shape`,n),n}}))}function Gl(e,t){return Rl(e,Ol(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Dl(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Kl(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Rl(t,Ol(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Dl(this,`shape`,i),i},checks:[]}))}function ql(e,t,n){return Rl(t,Ol(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Dl(this,`shape`,i),i}}))}function Jl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Yl(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Xl(e){return typeof e==`string`?e:e?.message}function Zl(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Xl(e.inst?._zod.def?.error?.(e))??Xl(t?.error?.(e))??Xl(n.customError?.(e))??Xl(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Ql(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function $l(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var eu=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,xl,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},tu=W(`$ZodError`,eu),nu=W(`$ZodError`,eu,{Parent:Error});function ru(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function iu(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var au=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new gl;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Zl(e,a,yl())));throw jl(t,i?.callee),t}return o.value},ou=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Zl(e,a,yl())));throw jl(t,i?.callee),t}return o.value},su=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new gl;return a.issues.length?{success:!1,error:new(e??tu)(a.issues.map(e=>Zl(e,i,yl())))}:{success:!0,data:a.value}},cu=su(nu),lu=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Zl(e,i,yl())))}:{success:!0,data:a.value}},uu=lu(nu),du=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return au(e)(t,n,i)},fu=e=>(t,n,r)=>au(e)(t,n,r),pu=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return ou(e)(t,n,i)},mu=e=>async(t,n,r)=>ou(e)(t,n,r),hu=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return su(e)(t,n,i)},gu=e=>(t,n,r)=>su(e)(t,n,r),_u=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return lu(e)(t,n,i)},vu=e=>async(t,n,r)=>lu(e)(t,n,r),yu=/^[cC][^\s-]{8,}$/,bu=/^[0-9a-z]+$/,xu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Su=/^[0-9a-vA-V]{20}$/,Cu=/^[A-Za-z0-9]{27}$/,wu=/^[a-zA-Z0-9_-]{21}$/,Tu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Eu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Du=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ou=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ku=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Au(){return new RegExp(ku,`u`)}var ju=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Nu=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Iu=/^[A-Za-z0-9_-]*$/,Lu=/^\+[1-9]\d{6,14}$/,Ru=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,zu=RegExp(`^${Ru}$`);function Bu(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vu(e){return RegExp(`^${Bu(e)}$`)}function Hu(e){let t=Bu({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Ru}T(?:${r})$`)}var Uu=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Wu=/^-?\d+$/,Gu=/^-?\d+(?:\.\d+)?$/,Ku=/^[^A-Z]*$/,qu=/^[^a-z]*$/,Ju=W(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Yu={number:`number`,bigint:`bigint`,object:`date`},Xu=W(`$ZodCheckLessThan`,(e,t)=>{Ju.init(e,t);let n=Yu[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Zu=W(`$ZodCheckGreaterThan`,(e,t)=>{Ju.init(e,t);let n=Yu[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Qu=W(`$ZodCheckMultipleOf`,(e,t)=>{Ju.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Tl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),$u=W(`$ZodCheckNumberFormat`,(e,t)=>{Ju.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Bl[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Wu)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),ed=W(`$ZodCheckMaxLength`,(e,t)=>{var n;Ju.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Cl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Ql(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),td=W(`$ZodCheckMinLength`,(e,t)=>{var n;Ju.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Cl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ql(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),nd=W(`$ZodCheckLengthEquals`,(e,t)=>{var n;Ju.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Cl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ql(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),rd=W(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Ju.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),id=W(`$ZodCheckRegex`,(e,t)=>{rd.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ad=W(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Ku,rd.init(e,t)}),od=W(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=qu,rd.init(e,t)}),sd=W(`$ZodCheckIncludes`,(e,t)=>{Ju.init(e,t);let n=Ll(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),cd=W(`$ZodCheckStartsWith`,(e,t)=>{Ju.init(e,t);let n=RegExp(`^${Ll(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ld=W(`$ZodCheckEndsWith`,(e,t)=>{Ju.init(e,t);let n=RegExp(`.*${Ll(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),ud=W(`$ZodCheckOverwrite`,(e,t)=>{Ju.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),dd=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
7
|
+
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function h(e){e||={};let t=x(e);e.path=t;let n=O.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw e.code=`MISSING_DATA`,e}let r=y(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=b(n,r[e].trim());a=O.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return O.parse(a)}function g(e){console.error(`[dotenv@${o}][WARN] ${e}`)}function _(e){console.log(`[dotenv@${o}][DEBUG] ${e}`)}function v(e){console.log(`[dotenv@${o}] ${e}`)}function y(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function b(e,t){let n;try{n=new URL(t)}catch(e){if(e.code===`ERR_INVALID_URL`){let e=Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development`);throw e.code=`INVALID_DOTENV_KEY`,e}throw e}let r=n.password;if(!r){let e=Error(`INVALID_DOTENV_KEY: Missing key part`);throw e.code=`INVALID_DOTENV_KEY`,e}let i=n.searchParams.get(`environment`);if(!i){let e=Error(`INVALID_DOTENV_KEY: Missing environment part`);throw e.code=`INVALID_DOTENV_KEY`,e}let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw e.code=`NOT_FOUND_DOTENV_ENVIRONMENT`,e}return{ciphertext:o,key:r}}function x(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(`.vault`)?r:`${r}.vault`);else t=e.path.endsWith(`.vault`)?e.path:`${e.path}.vault`;else t=r.resolve(process.cwd(),`.env.vault`);return n.existsSync(t)?t:null}function S(e){return e[0]===`~`?r.join(i.homedir(),e.slice(1)):e}function C(e){let t=l(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=l(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!n)&&v(`Loading env from encrypted .env.vault`);let r=O._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),O.populate(i,r,e),{parsed:r}}function w(e){let t=r.resolve(process.cwd(),`.env`),i=`utf8`,a=process.env;e&&e.processEnv!=null&&(a=e.processEnv);let o=l(a.DOTENV_CONFIG_DEBUG||e&&e.debug),s=l(a.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?i=e.encoding:o&&_(`No encoding is specified. UTF-8 is used by default`);let u=[t];if(e&&e.path)if(!Array.isArray(e.path))u=[S(e.path)];else{u=[];for(let t of e.path)u.push(S(t))}let d,p={};for(let t of u)try{let r=O.parse(n.readFileSync(t,{encoding:i}));O.populate(p,r,e)}catch(e){o&&_(`Failed to load ${t} ${e.message}`),d=e}let m=O.populate(a,p,e);if(o=l(a.DOTENV_CONFIG_DEBUG||o),s=l(a.DOTENV_CONFIG_QUIET||s),o||!s){let e=Object.keys(m).length,t=[];for(let e of u)try{let n=r.relative(process.cwd(),e);t.push(n)}catch(t){o&&_(`Failed to load ${e} ${t.message}`),d=t}v(`injecting env (${e}) from ${t.join(`,`)} ${f(`-- tip: ${c()}`)}`)}return d?{parsed:p,error:d}:{parsed:p}}function T(e){if(y(e).length===0)return O.configDotenv(e);let t=x(e);return t?O._configVault(e):(g(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),O.configDotenv(e))}function E(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.subarray(0,12),o=r.subarray(-16);r=r.subarray(12,-16);try{let e=a.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(o),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;if(t||n){let e=Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`);throw e.code=`INVALID_DOTENV_KEY`,e}else if(r){let e=Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`);throw e.code=`DECRYPTION_FAILED`,e}else throw e}}function D(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof t!=`object`){let e=Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);throw e.code=`OBJECT_REQUIRED`,e}for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n],a[n]=t[n]),r&&_(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):(e[n]=t[n],a[n]=t[n]);return a}var O={configDotenv:w,_configVault:C,_parseVault:h,config:T,decrypt:E,parse:m,populate:D};t.exports.configDotenv=O.configDotenv,t.exports._configVault=O._configVault,t.exports._parseVault=O._parseVault,t.exports.config=O.config,t.exports.decrypt=O.decrypt,t.exports.parse=O.parse,t.exports.populate=O.populate,t.exports=O})),Zo=s(((e,t)=>{function n(e){return e.replace(/\\\$/g,`$`)}function r(e,t,n){let r={...n,...t},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,a=e,o,s=new Set;for(;(o=i.exec(a))!==null;){s.add(a);let[e,t,c]=o,l=t||c,u=l.match(/(:\+|\+|:-|-)/),d=u?u[0]:null,f=l.split(d),p,m,h=f.shift();if([`:+`,`+`].includes(d)?(p=r[h]?f.join(d):``,m=null):(p=f.join(d),m=r[h]),a=m?s.has(m)?a.replace(e,p):a.replace(e,m):a.replace(e,p),a===n[h])break;i.lastIndex=0}return a}function i(e){let t={},i=process.env;e&&e.processEnv!=null&&(i=e.processEnv);for(let a in e.parsed){let o=e.parsed[a];o=i[a]&&i[a]!==o?i[a]:r(o,i,t),e.parsed[a]=n(o),t[a]=n(o)}for(let t in e.parsed)i[t]=e.parsed[t];return e}t.exports.expand=i})),Qo=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AS_PROVIDER_METHOD_KEY=e.VALIDATED_ENV_PROPNAME=e.PARTIAL_CONFIGURATION_PROPNAME=e.PARTIAL_CONFIGURATION_KEY=e.VALIDATED_ENV_LOADER=e.CONFIGURATION_LOADER=e.CONFIGURATION_TOKEN=e.CONFIGURATION_SERVICE_TOKEN=void 0,e.CONFIGURATION_SERVICE_TOKEN=Symbol(`CONFIG_SERVICE`),e.CONFIGURATION_TOKEN=`CONFIGURATION_TOKEN`,e.CONFIGURATION_LOADER=`CONFIGURATION_LOADER`,e.VALIDATED_ENV_LOADER=`VALIDATED_ENV_LOADER`,e.PARTIAL_CONFIGURATION_KEY=`PARTIAL_CONFIGURATION_KEY`,e.PARTIAL_CONFIGURATION_PROPNAME=`KEY`,e.VALIDATED_ENV_PROPNAME=`_PROCESS_ENV_VALIDATED`,e.AS_PROVIDER_METHOD_KEY=`asProvider`})),$o=s(((e,t)=>{t.exports=Array.isArray})),es=s(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),ts=s(((e,t)=>{var n=es(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),ns=s(((e,t)=>{t.exports=ts().Symbol})),rs=s(((e,t)=>{var n=ns(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),is=s(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),as=s(((e,t)=>{var n=ns(),r=rs(),i=is(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),os=s(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),ss=s(((e,t)=>{var n=as(),r=os(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),cs=s(((e,t)=>{var n=$o(),r=ss(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),ls=s(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),us=s(((e,t)=>{var n=as(),r=ls(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),ds=s(((e,t)=>{t.exports=ts()[`__core-js_shared__`]})),fs=s(((e,t)=>{var n=ds(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),ps=s(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),ms=s(((e,t)=>{var n=us(),r=fs(),i=ls(),a=ps(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),hs=s(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),gs=s(((e,t)=>{var n=ms(),r=hs();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),_s=s(((e,t)=>{t.exports=gs()(Object,`create`)})),vs=s(((e,t)=>{var n=_s();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),ys=s(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),bs=s(((e,t)=>{var n=_s(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),xs=s(((e,t)=>{var n=_s(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Ss=s(((e,t)=>{var n=_s(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Cs=s(((e,t)=>{var n=vs(),r=ys(),i=bs(),a=xs(),o=Ss();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),ws=s(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),Ts=s(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Es=s(((e,t)=>{var n=Ts();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Ds=s(((e,t)=>{var n=Es(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Os=s(((e,t)=>{var n=Es();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),ks=s(((e,t)=>{var n=Es();function r(e){return n(this.__data__,e)>-1}t.exports=r})),As=s(((e,t)=>{var n=Es();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),js=s(((e,t)=>{var n=ws(),r=Ds(),i=Os(),a=ks(),o=As();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Ms=s(((e,t)=>{t.exports=gs()(ts(),`Map`)})),Ns=s(((e,t)=>{var n=Cs(),r=js(),i=Ms();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Ps=s(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Fs=s(((e,t)=>{var n=Ps();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Is=s(((e,t)=>{var n=Fs();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Ls=s(((e,t)=>{var n=Fs();function r(e){return n(this,e).get(e)}t.exports=r})),Rs=s(((e,t)=>{var n=Fs();function r(e){return n(this,e).has(e)}t.exports=r})),zs=s(((e,t)=>{var n=Fs();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Bs=s(((e,t)=>{var n=Ns(),r=Is(),i=Ls(),a=Rs(),o=zs();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Vs=s(((e,t)=>{var n=Bs(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Hs=s(((e,t)=>{var n=Vs(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Us=s(((e,t)=>{var n=Hs(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Ws=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Gs=s(((e,t)=>{var n=ns(),r=Ws(),i=$o(),a=ss(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Ks=s(((e,t)=>{var n=Gs();function r(e){return e==null?``:n(e)}t.exports=r})),qs=s(((e,t)=>{var n=$o(),r=cs(),i=Us(),a=Ks();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Js=s(((e,t)=>{var n=ss(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Ys=s(((e,t)=>{var n=qs(),r=Js();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),Xs=s(((e,t)=>{var n=Ys();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Zs=s(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){return e!=null&&n.call(e,t)}t.exports=r})),Qs=s(((e,t)=>{var n=as(),r=os(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),$s=s(((e,t)=>{var n=Qs(),r=os(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),ec=s(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),tc=s(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),nc=s(((e,t)=>{var n=qs(),r=$s(),i=$o(),a=ec(),o=tc(),s=Js();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),rc=s(((e,t)=>{var n=Zs(),r=nc();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),ic=s(((e,t)=>{var n=gs();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),ac=s(((e,t)=>{var n=ic();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),oc=s(((e,t)=>{var n=ac(),r=Ts(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),sc=s(((e,t)=>{var n=oc(),r=qs(),i=ec(),a=ls(),o=Js();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),cc=s(((e,t)=>{var n=sc();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),lc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}})),uc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrameProvider=void 0;var r=ir();e.animationFrameProvider={schedule:function(t){var n=requestAnimationFrame,i=cancelAnimationFrame,a=e.animationFrameProvider.delegate;a&&(n=a.requestAnimationFrame,i=a.cancelAnimationFrame);var o=n(function(e){i=void 0,t(e)});return new r.Subscription(function(){return i?.(o)})},requestAnimationFrame:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(e.animationFrameProvider.delegate?.requestAnimationFrame||requestAnimationFrame).apply(void 0,n([],t(r)))},cancelAnimationFrame:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(e.animationFrameProvider.delegate?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,n([],t(r)))},delegate:void 0}})),dc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrames=void 0;var t=z(),n=lc(),r=uc();function i(e){return e?a(e):o}e.animationFrames=i;function a(e){return new t.Observable(function(t){var i=e||n.performanceTimestampProvider,a=i.now(),o=0,s=function(){t.closed||(o=r.animationFrameProvider.requestAnimationFrame(function(n){o=0;var r=i.now();t.next({timestamp:e?r:n,elapsed:r-a}),s()}))};return s(),function(){o&&r.animationFrameProvider.cancelAnimationFrame(o)}})}var o=a()})),fc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestTools=e.Immediate=void 0;var t=1,n,r={};function i(e){return e in r?(delete r[e],!0):!1}e.Immediate={setImmediate:function(e){var a=t++;return r[a]=!0,n||=Promise.resolve(),n.then(function(){return i(a)&&e()}),a},clearImmediate:function(e){i(e)}},e.TestTools={pending:function(){return Object.keys(r).length}}})),pc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.immediateProvider=void 0;var r=fc(),i=r.Immediate.setImmediate,a=r.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return(e.immediateProvider.delegate?.setImmediate||i).apply(void 0,n([],t(r)))},clearImmediate:function(t){return(e.immediateProvider.delegate?.clearImmediate||a)(t)},delegate:void 0}})),mc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapAction=void 0;var n=wr(),r=pc();e.AsapAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t._scheduled||=r.immediateProvider.setImmediate(t.flush.bind(t,void 0)))},n.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i==null?this.delay>0:i>0)return e.prototype.recycleAsyncId.call(this,t,n,i);var a=t.actions;n!=null&&a[a.length-1]?.id!==n&&(r.immediateProvider.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},n}(n.AsyncAction)})),hc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapScheduler=void 0,e.AsapScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},n}(Dr().AsyncScheduler)})),gc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.asap=e.asapScheduler=void 0;var t=mc();e.asapScheduler=new(hc()).AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})),_c=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueAction=void 0,e.QueueAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!=null&&r>0||r==null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.flush(this),0)},n}(wr().AsyncAction)})),vc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueScheduler=void 0,e.QueueScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(Dr().AsyncScheduler)})),yc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.queue=e.queueScheduler=void 0;var t=_c();e.queueScheduler=new(vc()).QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})),bc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameAction=void 0;var n=wr(),r=uc();e.AnimationFrameAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t._scheduled||=r.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)}))},n.prototype.recycleAsyncId=function(t,n,i){if(i===void 0&&(i=0),i==null?this.delay>0:i>0)return e.prototype.recycleAsyncId.call(this,t,n,i);var a=t.actions;n!=null&&n===t._scheduled&&a[a.length-1]?.id!==n&&(r.animationFrameProvider.cancelAnimationFrame(n),t._scheduled=void 0)},n}(n.AsyncAction)})),xc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameScheduler=void 0,e.AnimationFrameScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this._active=!0;var t;e?t=e.id:(t=this._scheduled,this._scheduled=void 0);var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},n}(Dr().AsyncScheduler)})),Sc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=bc();e.animationFrameScheduler=new(xc()).AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})),Cc=s((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var n=wr(),r=ir();e.VirtualTimeScheduler=function(e){t(n,e);function n(t,n){t===void 0&&(t=i),n===void 0&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return n.prototype.flush=function(){for(var e=this,t=e.actions,n=e.maxFrames,r,i;(i=t[0])&&i.delay<=n&&(t.shift(),this.frame=i.delay,!(r=i.execute(i.state,i.delay))););if(r){for(;i=t.shift();)i.unsubscribe();throw r}},n.frameTimeFactor=10,n}(Dr().AsyncScheduler);var i=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return n.prototype.schedule=function(t,i){if(i===void 0&&(i=0),Number.isFinite(i)){if(!this.id)return e.prototype.schedule.call(this,t,i);this.active=!1;var a=new n(this.scheduler,this.work);return this.add(a),a.schedule(t,i)}else return r.Subscription.EMPTY},n.prototype.requestAsyncId=function(e,t,r){r===void 0&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(n.sortActions),1},n.prototype.recycleAsyncId=function(e,t,n){n===void 0&&(n=0)},n.prototype._execute=function(t,n){if(this.active===!0)return e.prototype._execute.call(this,t,n)},n.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},n}(n.AsyncAction);e.VirtualAction=i})),wc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isObservable=void 0;var t=z(),n=L();function r(e){return!!e&&(e instanceof t.Observable||n.isFunction(e.lift)&&n.isFunction(e.subscribe))}e.isObservable=r})),Tc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.lastValueFrom=void 0;var t=Ui();function n(e,n){var r=typeof n==`object`;return new Promise(function(i,a){var o=!1,s;e.subscribe({next:function(e){s=e,o=!0},error:a,complete:function(){o?i(s):r?i(n.defaultValue):a(new t.EmptyError)}})})}e.lastValueFrom=n})),Ec=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.firstValueFrom=void 0;var t=Ui(),n=dr();function r(e,r){var i=typeof r==`object`;return new Promise(function(a,o){var s=new n.SafeSubscriber({next:function(e){a(e),s.unsubscribe()},error:o,complete:function(){i?a(r.defaultValue):o(new t.EmptyError)}});e.subscribe(s)})}e.firstValueFrom=r})),Dc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,`__esModule`,{value:!0}),e.bindCallbackInternals=void 0;var r=kr(),i=z(),a=Ur(),o=$r(),s=Hr(),c=Ea();function l(e,u,d,f){if(d)if(r.isScheduler(d))f=d;else return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(e,u,f).apply(this,t).pipe(o.mapOneOrManyArgs(d))};return f?function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l(e,u).apply(this,t).pipe(a.subscribeOn(f),s.observeOn(f))}:function(){for(var r=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=new c.AsyncSubject,l=!0;return new i.Observable(function(i){var o=s.subscribe(i);if(l){l=!1;var c=!1,d=!1;u.apply(r,n(n([],t(a)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(r!=null){s.error(r);return}}s.next(1<t.length?t:t[0]),d=!0,c&&s.complete()}])),d&&s.complete(),c=!0}return o})}}e.bindCallbackInternals=l})),Oc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bindCallback=void 0;var t=Dc();function n(e,n,r){return t.bindCallbackInternals(!1,e,n,r)}e.bindCallback=n})),kc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.bindNodeCallback=void 0;var t=Dc();function n(e,n,r){return t.bindCallbackInternals(!0,e,n,r)}e.bindNodeCallback=n})),Ac=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defer=void 0;var t=z(),n=B();function r(e){return new t.Observable(function(t){n.innerFrom(e()).subscribe(t)})}e.defer=r})),jc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.connectable=void 0;var t=bi(),n=z(),r=Ac(),i={connector:function(){return new t.Subject},resetOnDisconnect:!0};function a(e,t){t===void 0&&(t=i);var a=null,o=t.connector,s=t.resetOnDisconnect,c=s===void 0?!0:s,l=o(),u=new n.Observable(function(e){return l.subscribe(e)});return u.connect=function(){return(!a||a.closed)&&(a=r.defer(function(){return e}).subscribe(l),c&&a.add(function(){return l=o()})),a},u}e.connectable=a})),Mc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.forkJoin=void 0;var t=z(),n=Vr(),r=B(),i=Fr(),a=V(),o=$r(),s=ei();function c(){for(var e=[],c=0;c<arguments.length;c++)e[c]=arguments[c];var l=i.popResultSelector(e),u=n.argsArgArrayOrObject(e),d=u.args,f=u.keys,p=new t.Observable(function(e){var t=d.length;if(!t){e.complete();return}for(var n=Array(t),i=t,o=t,c=function(t){var c=!1;r.innerFrom(d[t]).subscribe(a.createOperatorSubscriber(e,function(e){c||(c=!0,o--),n[t]=e},function(){return i--},void 0,function(){(!i||!c)&&(o||e.next(f?s.createObject(f,n):n),e.complete())}))},l=0;l<t;l++)c(l)});return l?p.pipe(o.mapOneOrManyArgs(l)):p}e.forkJoin=c})),Nc=s((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,`__esModule`,{value:!0}),e.fromEvent=void 0;var n=B(),r=z(),i=ri(),a=$n(),o=L(),s=$r(),c=[`addListener`,`removeListener`],l=[`addEventListener`,`removeEventListener`],u=[`on`,`off`];function d(e,g,_,v){if(o.isFunction(_)&&(v=_,_=void 0),v)return d(e,g,_).pipe(s.mapOneOrManyArgs(v));var y=t(h(e)?l.map(function(t){return function(n){return e[t](g,n,_)}}):p(e)?c.map(f(e,g)):m(e)?u.map(f(e,g)):[],2),b=y[0],x=y[1];if(!b&&a.isArrayLike(e))return i.mergeMap(function(e){return d(e,g,_)})(n.innerFrom(e));if(!b)throw TypeError(`Invalid event target`);return new r.Observable(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return b(t),function(){return x(t)}})}e.fromEvent=d;function f(e,t){return function(n){return function(r){return e[n](t,r)}}}function p(e){return o.isFunction(e.addListener)&&o.isFunction(e.removeListener)}function m(e){return o.isFunction(e.on)&&o.isFunction(e.off)}function h(e){return o.isFunction(e.addEventListener)&&o.isFunction(e.removeEventListener)}})),Pc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.fromEventPattern=void 0;var t=z(),n=L(),r=$r();function i(e,a,o){return o?i(e,a).pipe(r.mapOneOrManyArgs(o)):new t.Observable(function(t){var r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(e.length===1?e[0]:e)},i=e(r);return n.isFunction(a)?function(){return a(r,i)}:void 0})}e.fromEventPattern=i})),Fc=s((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,`__esModule`,{value:!0}),e.generate=void 0;var n=pr(),r=kr(),i=Ac(),a=qr();function o(e,o,s,c,l){var u,d,f,p;arguments.length===1?(u=e,p=u.initialState,o=u.condition,s=u.iterate,d=u.resultSelector,f=d===void 0?n.identity:d,l=u.scheduler):(p=e,!c||r.isScheduler(c)?(f=n.identity,l=c):f=c);function m(){var e;return t(this,function(t){switch(t.label){case 0:e=p,t.label=1;case 1:return!o||o(e)?[4,f(e)]:[3,4];case 2:t.sent(),t.label=3;case 3:return e=s(e),[3,1];case 4:return[2]}})}return i.defer(l?function(){return a.scheduleIterable(m(),l)}:m)}e.generate=o})),Ic=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.iif=void 0;var t=Ac();function n(e,n,r){return t.defer(function(){return e()?n:r})}e.iif=n})),Lc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.merge=void 0;var t=pi(),n=B(),r=Oi(),i=Fr(),a=Zr();function o(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=i.popScheduler(e),c=i.popNumber(e,1/0),l=e;return l.length?l.length===1?n.innerFrom(l[0]):t.mergeAll(c)(a.from(l,s)):r.EMPTY}e.merge=o})),Rc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.never=e.NEVER=void 0;var t=z(),n=cr();e.NEVER=new t.Observable(n.noop);function r(){return e.NEVER}e.never=r})),zc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pairs=void 0;var t=Zr();function n(e,n){return t.from(Object.entries(e),n)}e.pairs=n})),Bc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.partition=void 0;var t=ba(),n=Hi(),r=B();function i(e,i,a){return[n.filter(i,a)(r.innerFrom(e)),n.filter(t.not(i,a))(r.innerFrom(e))]}e.partition=i})),Vc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.range=void 0;var t=z(),n=Oi();function r(e,r,i){if(r??(r=e,e=0),r<=0)return n.EMPTY;var a=r+e;return new t.Observable(i?function(t){var n=e;return i.schedule(function(){n<a?(t.next(n++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<a&&!t.closed;)t.next(n++);t.complete()})}e.range=r})),Hc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.using=void 0;var t=z(),n=B(),r=Oi();function i(e,i){return new t.Observable(function(t){var a=e(),o=i(a);return(o?n.innerFrom(o):r.EMPTY).subscribe(t),function(){a&&a.unsubscribe()}})}e.using=i})),Uc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Wc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var r=z();Object.defineProperty(e,`Observable`,{enumerable:!0,get:function(){return r.Observable}});var i=ha();Object.defineProperty(e,`ConnectableObservable`,{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=fr();Object.defineProperty(e,`observable`,{enumerable:!0,get:function(){return a.observable}});var o=dc();Object.defineProperty(e,`animationFrames`,{enumerable:!0,get:function(){return o.animationFrames}});var s=bi();Object.defineProperty(e,`Subject`,{enumerable:!0,get:function(){return s.Subject}});var c=wa();Object.defineProperty(e,`BehaviorSubject`,{enumerable:!0,get:function(){return c.BehaviorSubject}});var l=Oa();Object.defineProperty(e,`ReplaySubject`,{enumerable:!0,get:function(){return l.ReplaySubject}});var u=Ea();Object.defineProperty(e,`AsyncSubject`,{enumerable:!0,get:function(){return u.AsyncSubject}});var d=gc();Object.defineProperty(e,`asap`,{enumerable:!0,get:function(){return d.asap}}),Object.defineProperty(e,`asapScheduler`,{enumerable:!0,get:function(){return d.asapScheduler}});var f=Or();Object.defineProperty(e,`async`,{enumerable:!0,get:function(){return f.async}}),Object.defineProperty(e,`asyncScheduler`,{enumerable:!0,get:function(){return f.asyncScheduler}});var p=yc();Object.defineProperty(e,`queue`,{enumerable:!0,get:function(){return p.queue}}),Object.defineProperty(e,`queueScheduler`,{enumerable:!0,get:function(){return p.queueScheduler}});var m=Sc();Object.defineProperty(e,`animationFrame`,{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(e,`animationFrameScheduler`,{enumerable:!0,get:function(){return m.animationFrameScheduler}});var h=Cc();Object.defineProperty(e,`VirtualTimeScheduler`,{enumerable:!0,get:function(){return h.VirtualTimeScheduler}}),Object.defineProperty(e,`VirtualAction`,{enumerable:!0,get:function(){return h.VirtualAction}});var g=Er();Object.defineProperty(e,`Scheduler`,{enumerable:!0,get:function(){return g.Scheduler}});var _=ir();Object.defineProperty(e,`Subscription`,{enumerable:!0,get:function(){return _.Subscription}});var v=dr();Object.defineProperty(e,`Subscriber`,{enumerable:!0,get:function(){return v.Subscriber}});var y=Ii();Object.defineProperty(e,`Notification`,{enumerable:!0,get:function(){return y.Notification}}),Object.defineProperty(e,`NotificationKind`,{enumerable:!0,get:function(){return y.NotificationKind}});var b=mr();Object.defineProperty(e,`pipe`,{enumerable:!0,get:function(){return b.pipe}});var x=cr();Object.defineProperty(e,`noop`,{enumerable:!0,get:function(){return x.noop}});var S=pr();Object.defineProperty(e,`identity`,{enumerable:!0,get:function(){return S.identity}});var C=wc();Object.defineProperty(e,`isObservable`,{enumerable:!0,get:function(){return C.isObservable}});var w=Tc();Object.defineProperty(e,`lastValueFrom`,{enumerable:!0,get:function(){return w.lastValueFrom}});var T=Ec();Object.defineProperty(e,`firstValueFrom`,{enumerable:!0,get:function(){return T.firstValueFrom}});var E=Vi();Object.defineProperty(e,`ArgumentOutOfRangeError`,{enumerable:!0,get:function(){return E.ArgumentOutOfRangeError}});var D=Ui();Object.defineProperty(e,`EmptyError`,{enumerable:!0,get:function(){return D.EmptyError}});var O=Ga();Object.defineProperty(e,`NotFoundError`,{enumerable:!0,get:function(){return O.NotFoundError}});var k=yi();Object.defineProperty(e,`ObjectUnsubscribedError`,{enumerable:!0,get:function(){return k.ObjectUnsubscribedError}});var A=Wa();Object.defineProperty(e,`SequenceError`,{enumerable:!0,get:function(){return A.SequenceError}});var ee=co();Object.defineProperty(e,`TimeoutError`,{enumerable:!0,get:function(){return ee.TimeoutError}});var te=nr();Object.defineProperty(e,`UnsubscriptionError`,{enumerable:!0,get:function(){return te.UnsubscriptionError}});var ne=Oc();Object.defineProperty(e,`bindCallback`,{enumerable:!0,get:function(){return ne.bindCallback}});var j=kc();Object.defineProperty(e,`bindNodeCallback`,{enumerable:!0,get:function(){return j.bindNodeCallback}});var re=ti();Object.defineProperty(e,`combineLatest`,{enumerable:!0,get:function(){return re.combineLatest}});var ie=Di();Object.defineProperty(e,`concat`,{enumerable:!0,get:function(){return ie.concat}});var M=jc();Object.defineProperty(e,`connectable`,{enumerable:!0,get:function(){return M.connectable}});var ae=Ac();Object.defineProperty(e,`defer`,{enumerable:!0,get:function(){return ae.defer}});var oe=Oi();Object.defineProperty(e,`empty`,{enumerable:!0,get:function(){return oe.empty}});var N=Mc();Object.defineProperty(e,`forkJoin`,{enumerable:!0,get:function(){return N.forkJoin}});var se=Zr();Object.defineProperty(e,`from`,{enumerable:!0,get:function(){return se.from}});var ce=Nc();Object.defineProperty(e,`fromEvent`,{enumerable:!0,get:function(){return ce.fromEvent}});var le=Pc();Object.defineProperty(e,`fromEventPattern`,{enumerable:!0,get:function(){return le.fromEventPattern}});var ue=Fc();Object.defineProperty(e,`generate`,{enumerable:!0,get:function(){return ue.generate}});var de=Ic();Object.defineProperty(e,`iif`,{enumerable:!0,get:function(){return de.iif}});var fe=Ra();Object.defineProperty(e,`interval`,{enumerable:!0,get:function(){return fe.interval}});var pe=Lc();Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return pe.merge}});var me=Rc();Object.defineProperty(e,`never`,{enumerable:!0,get:function(){return me.never}});var he=Pi();Object.defineProperty(e,`of`,{enumerable:!0,get:function(){return he.of}});var ge=_a();Object.defineProperty(e,`onErrorResumeNext`,{enumerable:!0,get:function(){return ge.onErrorResumeNext}});var _e=zc();Object.defineProperty(e,`pairs`,{enumerable:!0,get:function(){return _e.pairs}});var ve=Bc();Object.defineProperty(e,`partition`,{enumerable:!0,get:function(){return ve.partition}});var ye=Aa();Object.defineProperty(e,`race`,{enumerable:!0,get:function(){return ye.race}});var be=Vc();Object.defineProperty(e,`range`,{enumerable:!0,get:function(){return be.range}});var xe=Fi();Object.defineProperty(e,`throwError`,{enumerable:!0,get:function(){return xe.throwError}});var Se=jr();Object.defineProperty(e,`timer`,{enumerable:!0,get:function(){return Se.timer}});var Ce=Hc();Object.defineProperty(e,`using`,{enumerable:!0,get:function(){return Ce.using}});var we=vo();Object.defineProperty(e,`zip`,{enumerable:!0,get:function(){return we.zip}});var Te=Xr();Object.defineProperty(e,`scheduled`,{enumerable:!0,get:function(){return Te.scheduled}});var Ee=Oi();Object.defineProperty(e,`EMPTY`,{enumerable:!0,get:function(){return Ee.EMPTY}});var De=Rc();Object.defineProperty(e,`NEVER`,{enumerable:!0,get:function(){return De.NEVER}}),n(Uc(),e);var Oe=ar();Object.defineProperty(e,`config`,{enumerable:!0,get:function(){return Oe.config}});var ke=xr();Object.defineProperty(e,`audit`,{enumerable:!0,get:function(){return ke.audit}});var P=Mr();Object.defineProperty(e,`auditTime`,{enumerable:!0,get:function(){return P.auditTime}});var Ae=Nr();Object.defineProperty(e,`buffer`,{enumerable:!0,get:function(){return Ae.buffer}});var je=Pr();Object.defineProperty(e,`bufferCount`,{enumerable:!0,get:function(){return je.bufferCount}});var Me=Lr();Object.defineProperty(e,`bufferTime`,{enumerable:!0,get:function(){return Me.bufferTime}});var Ne=Rr();Object.defineProperty(e,`bufferToggle`,{enumerable:!0,get:function(){return Ne.bufferToggle}});var F=zr();Object.defineProperty(e,`bufferWhen`,{enumerable:!0,get:function(){return F.bufferWhen}});var Pe=Br();Object.defineProperty(e,`catchError`,{enumerable:!0,get:function(){return Pe.catchError}});var Fe=li();Object.defineProperty(e,`combineAll`,{enumerable:!0,get:function(){return Fe.combineAll}});var Ie=ci();Object.defineProperty(e,`combineLatestAll`,{enumerable:!0,get:function(){return Ie.combineLatestAll}});var Le=fi();Object.defineProperty(e,`combineLatestWith`,{enumerable:!0,get:function(){return Le.combineLatestWith}});var Re=mi();Object.defineProperty(e,`concatAll`,{enumerable:!0,get:function(){return Re.concatAll}});var ze=gi();Object.defineProperty(e,`concatMap`,{enumerable:!0,get:function(){return ze.concatMap}});var Be=_i();Object.defineProperty(e,`concatMapTo`,{enumerable:!0,get:function(){return Be.concatMapTo}});var Ve=vi();Object.defineProperty(e,`concatWith`,{enumerable:!0,get:function(){return Ve.concatWith}});var He=Si();Object.defineProperty(e,`connect`,{enumerable:!0,get:function(){return He.connect}});var Ue=Ci();Object.defineProperty(e,`count`,{enumerable:!0,get:function(){return Ue.count}});var We=wi();Object.defineProperty(e,`debounce`,{enumerable:!0,get:function(){return We.debounce}});var Ge=Ti();Object.defineProperty(e,`debounceTime`,{enumerable:!0,get:function(){return Ge.debounceTime}});var Ke=Ei();Object.defineProperty(e,`defaultIfEmpty`,{enumerable:!0,get:function(){return Ke.defaultIfEmpty}});var qe=Ni();Object.defineProperty(e,`delay`,{enumerable:!0,get:function(){return qe.delay}});var Je=Mi();Object.defineProperty(e,`delayWhen`,{enumerable:!0,get:function(){return Je.delayWhen}});var Ye=Li();Object.defineProperty(e,`dematerialize`,{enumerable:!0,get:function(){return Ye.dematerialize}});var Xe=Ri();Object.defineProperty(e,`distinct`,{enumerable:!0,get:function(){return Xe.distinct}});var Ze=zi();Object.defineProperty(e,`distinctUntilChanged`,{enumerable:!0,get:function(){return Ze.distinctUntilChanged}});var Qe=Bi();Object.defineProperty(e,`distinctUntilKeyChanged`,{enumerable:!0,get:function(){return Qe.distinctUntilKeyChanged}});var $e=Gi();Object.defineProperty(e,`elementAt`,{enumerable:!0,get:function(){return $e.elementAt}});var et=Ki();Object.defineProperty(e,`endWith`,{enumerable:!0,get:function(){return et.endWith}});var tt=qi();Object.defineProperty(e,`every`,{enumerable:!0,get:function(){return tt.every}});var nt=Xi();Object.defineProperty(e,`exhaust`,{enumerable:!0,get:function(){return nt.exhaust}});var rt=Yi();Object.defineProperty(e,`exhaustAll`,{enumerable:!0,get:function(){return rt.exhaustAll}});var it=Ji();Object.defineProperty(e,`exhaustMap`,{enumerable:!0,get:function(){return it.exhaustMap}});var at=Zi();Object.defineProperty(e,`expand`,{enumerable:!0,get:function(){return at.expand}});var ot=Hi();Object.defineProperty(e,`filter`,{enumerable:!0,get:function(){return ot.filter}});var st=Qi();Object.defineProperty(e,`finalize`,{enumerable:!0,get:function(){return st.finalize}});var ct=$i();Object.defineProperty(e,`find`,{enumerable:!0,get:function(){return ct.find}});var lt=ea();Object.defineProperty(e,`findIndex`,{enumerable:!0,get:function(){return lt.findIndex}});var ut=ta();Object.defineProperty(e,`first`,{enumerable:!0,get:function(){return ut.first}});var dt=na();Object.defineProperty(e,`groupBy`,{enumerable:!0,get:function(){return dt.groupBy}});var ft=Ai();Object.defineProperty(e,`ignoreElements`,{enumerable:!0,get:function(){return ft.ignoreElements}});var pt=ra();Object.defineProperty(e,`isEmpty`,{enumerable:!0,get:function(){return pt.isEmpty}});var mt=aa();Object.defineProperty(e,`last`,{enumerable:!0,get:function(){return mt.last}});var ht=Qr();Object.defineProperty(e,`map`,{enumerable:!0,get:function(){return ht.map}});var gt=ji();Object.defineProperty(e,`mapTo`,{enumerable:!0,get:function(){return gt.mapTo}});var _t=oa();Object.defineProperty(e,`materialize`,{enumerable:!0,get:function(){return _t.materialize}});var vt=sa();Object.defineProperty(e,`max`,{enumerable:!0,get:function(){return vt.max}});var yt=pi();Object.defineProperty(e,`mergeAll`,{enumerable:!0,get:function(){return yt.mergeAll}});var bt=la();Object.defineProperty(e,`flatMap`,{enumerable:!0,get:function(){return bt.flatMap}});var xt=ri();Object.defineProperty(e,`mergeMap`,{enumerable:!0,get:function(){return xt.mergeMap}});var St=ua();Object.defineProperty(e,`mergeMapTo`,{enumerable:!0,get:function(){return St.mergeMapTo}});var Ct=da();Object.defineProperty(e,`mergeScan`,{enumerable:!0,get:function(){return Ct.mergeScan}});var wt=fa();Object.defineProperty(e,`mergeWith`,{enumerable:!0,get:function(){return wt.mergeWith}});var Tt=pa();Object.defineProperty(e,`min`,{enumerable:!0,get:function(){return Tt.min}});var Et=ga();Object.defineProperty(e,`multicast`,{enumerable:!0,get:function(){return Et.multicast}});var Dt=Hr();Object.defineProperty(e,`observeOn`,{enumerable:!0,get:function(){return Dt.observeOn}});var Ot=va();Object.defineProperty(e,`onErrorResumeNextWith`,{enumerable:!0,get:function(){return Ot.onErrorResumeNextWith}});var kt=ya();Object.defineProperty(e,`pairwise`,{enumerable:!0,get:function(){return kt.pairwise}});var At=Sa();Object.defineProperty(e,`pluck`,{enumerable:!0,get:function(){return At.pluck}});var jt=Ca();Object.defineProperty(e,`publish`,{enumerable:!0,get:function(){return jt.publish}});var Mt=Ta();Object.defineProperty(e,`publishBehavior`,{enumerable:!0,get:function(){return Mt.publishBehavior}});var Nt=Da();Object.defineProperty(e,`publishLast`,{enumerable:!0,get:function(){return Nt.publishLast}});var Pt=ka();Object.defineProperty(e,`publishReplay`,{enumerable:!0,get:function(){return Pt.publishReplay}});var Ft=ja();Object.defineProperty(e,`raceWith`,{enumerable:!0,get:function(){return Ft.raceWith}});var It=ai();Object.defineProperty(e,`reduce`,{enumerable:!0,get:function(){return It.reduce}});var Lt=Na();Object.defineProperty(e,`repeat`,{enumerable:!0,get:function(){return Lt.repeat}});var Rt=Pa();Object.defineProperty(e,`repeatWhen`,{enumerable:!0,get:function(){return Rt.repeatWhen}});var zt=Fa();Object.defineProperty(e,`retry`,{enumerable:!0,get:function(){return zt.retry}});var Bt=Ia();Object.defineProperty(e,`retryWhen`,{enumerable:!0,get:function(){return Bt.retryWhen}});var Vt=ma();Object.defineProperty(e,`refCount`,{enumerable:!0,get:function(){return Vt.refCount}});var Ht=La();Object.defineProperty(e,`sample`,{enumerable:!0,get:function(){return Ht.sample}});var Ut=za();Object.defineProperty(e,`sampleTime`,{enumerable:!0,get:function(){return Ut.sampleTime}});var Wt=Ba();Object.defineProperty(e,`scan`,{enumerable:!0,get:function(){return Wt.scan}});var Gt=Va();Object.defineProperty(e,`sequenceEqual`,{enumerable:!0,get:function(){return Gt.sequenceEqual}});var Kt=Ha();Object.defineProperty(e,`share`,{enumerable:!0,get:function(){return Kt.share}});var qt=Ua();Object.defineProperty(e,`shareReplay`,{enumerable:!0,get:function(){return qt.shareReplay}});var Jt=Ka();Object.defineProperty(e,`single`,{enumerable:!0,get:function(){return Jt.single}});var Yt=qa();Object.defineProperty(e,`skip`,{enumerable:!0,get:function(){return Yt.skip}});var Xt=Ja();Object.defineProperty(e,`skipLast`,{enumerable:!0,get:function(){return Xt.skipLast}});var Zt=Ya();Object.defineProperty(e,`skipUntil`,{enumerable:!0,get:function(){return Zt.skipUntil}});var Qt=Xa();Object.defineProperty(e,`skipWhile`,{enumerable:!0,get:function(){return Qt.skipWhile}});var $t=Za();Object.defineProperty(e,`startWith`,{enumerable:!0,get:function(){return $t.startWith}});var en=Ur();Object.defineProperty(e,`subscribeOn`,{enumerable:!0,get:function(){return en.subscribeOn}});var tn=$a();Object.defineProperty(e,`switchAll`,{enumerable:!0,get:function(){return tn.switchAll}});var nn=Qa();Object.defineProperty(e,`switchMap`,{enumerable:!0,get:function(){return nn.switchMap}});var rn=eo();Object.defineProperty(e,`switchMapTo`,{enumerable:!0,get:function(){return rn.switchMapTo}});var an=to();Object.defineProperty(e,`switchScan`,{enumerable:!0,get:function(){return an.switchScan}});var on=ki();Object.defineProperty(e,`take`,{enumerable:!0,get:function(){return on.take}});var sn=ia();Object.defineProperty(e,`takeLast`,{enumerable:!0,get:function(){return sn.takeLast}});var cn=no();Object.defineProperty(e,`takeUntil`,{enumerable:!0,get:function(){return cn.takeUntil}});var ln=ro();Object.defineProperty(e,`takeWhile`,{enumerable:!0,get:function(){return ln.takeWhile}});var un=io();Object.defineProperty(e,`tap`,{enumerable:!0,get:function(){return un.tap}});var dn=ao();Object.defineProperty(e,`throttle`,{enumerable:!0,get:function(){return dn.throttle}});var fn=oo();Object.defineProperty(e,`throttleTime`,{enumerable:!0,get:function(){return fn.throttleTime}});var pn=Wi();Object.defineProperty(e,`throwIfEmpty`,{enumerable:!0,get:function(){return pn.throwIfEmpty}});var mn=so();Object.defineProperty(e,`timeInterval`,{enumerable:!0,get:function(){return mn.timeInterval}});var hn=co();Object.defineProperty(e,`timeout`,{enumerable:!0,get:function(){return hn.timeout}});var gn=lo();Object.defineProperty(e,`timeoutWith`,{enumerable:!0,get:function(){return gn.timeoutWith}});var _n=uo();Object.defineProperty(e,`timestamp`,{enumerable:!0,get:function(){return _n.timestamp}});var vn=oi();Object.defineProperty(e,`toArray`,{enumerable:!0,get:function(){return vn.toArray}});var yn=fo();Object.defineProperty(e,`window`,{enumerable:!0,get:function(){return yn.window}});var bn=po();Object.defineProperty(e,`windowCount`,{enumerable:!0,get:function(){return bn.windowCount}});var xn=mo();Object.defineProperty(e,`windowTime`,{enumerable:!0,get:function(){return xn.windowTime}});var Sn=ho();Object.defineProperty(e,`windowToggle`,{enumerable:!0,get:function(){return Sn.windowToggle}});var Cn=go();Object.defineProperty(e,`windowWhen`,{enumerable:!0,get:function(){return Cn.windowWhen}});var wn=_o();Object.defineProperty(e,`withLatestFrom`,{enumerable:!0,get:function(){return wn.withLatestFrom}});var Tn=bo();Object.defineProperty(e,`zipAll`,{enumerable:!0,get:function(){return Tn.zipAll}});var En=xo();Object.defineProperty(e,`zipWith`,{enumerable:!0,get:function(){return En.zipWith}})})),Gc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),a=e&&e.__metadata||function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},o=e&&e.__param||function(e,t){return function(n,r){t(n,r,e)}},s=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigService=void 0;var c=H(),l=A(),u=i(Xo()),d=s(require(`fs`)),f=s(Xs()),p=s(rc()),m=s(cc()),h=Wc(),g=Qo(),_=class{set isCacheEnabled(e){this._isCacheEnabled=e}get isCacheEnabled(){return this._isCacheEnabled}set skipProcessEnv(e){this._skipProcessEnv=e}get skipProcessEnv(){return this._skipProcessEnv}constructor(e={}){this.internalConfig=e,this.cache={},this._changes$=new h.Subject,this._skipProcessEnv=!1,this._isCacheEnabled=!1,this.envFilePaths=[]}get changes$(){return this._changes$.asObservable()}get(e,t,n){let r=this.getFromInternalConfig(e);if(!(0,l.isUndefined)(r))return r;let i=this.getFromValidatedEnv(e);if(!(0,l.isUndefined)(i))return i;let a=this.isGetOptionsObject(t)&&!n?void 0:t;if(!this._skipProcessEnv){let t=this.getFromProcessEnv(e,a);if(!(0,l.isUndefined)(t))return t}return a}getOrThrow(e,t,n){let r=this.get(e,t,n);if((0,l.isUndefined)(r))throw TypeError(`Configuration key "${e.toString()}" does not exist`);return r}set(e,t){let n=this.get(e);(0,m.default)(this.internalConfig,e,t),typeof e==`string`&&(process.env[e]=String(t),this.updateInterpolatedEnv(e,String(t))),this.isCacheEnabled&&this.setInCacheIfDefined(e,t),this._changes$.next({path:e,oldValue:n,newValue:t})}setEnvFilePaths(e){this.envFilePaths=e}getFromCache(e,t){let n=(0,f.default)(this.cache,e);return(0,l.isUndefined)(n)?t:n}getFromValidatedEnv(e){return(0,f.default)(this.internalConfig[g.VALIDATED_ENV_PROPNAME],e)}getFromProcessEnv(e,t){if(this.isCacheEnabled&&(0,p.default)(this.cache,e)){let n=this.getFromCache(e,t);return(0,l.isUndefined)(n)?t:n}let n=(0,f.default)(process.env,e);return this.setInCacheIfDefined(e,n),n}getFromInternalConfig(e){return(0,f.default)(this.internalConfig,e)}setInCacheIfDefined(e,t){t!==void 0&&(0,m.default)(this.cache,e,t)}isGetOptionsObject(e){return e&&e?.infer&&Object.keys(e).length===1}updateInterpolatedEnv(e,t){let n={};for(let e of this.envFilePaths)d.default.existsSync(e)&&(n=Object.assign(u.parse(d.default.readFileSync(e)),n));let r=RegExp(`\\$\\{?${e}\\}?`,`g`);for(let[e,i]of Object.entries(n))r.test(i)&&(process.env[e]=i.replace(r,t))}};e.ConfigService=_,e.ConfigService=_=r([(0,c.Injectable)(),o(0,(0,c.Optional)()),o(0,(0,c.Inject)(g.CONFIGURATION_TOKEN)),a(`design:paramtypes`,[Object])],_)})),Kc=s((e=>{var t=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigHostModule=void 0;var n=H(),r=Qo(),i=Gc(),a=class{};e.ConfigHostModule=a,e.ConfigHostModule=a=t([(0,n.Global)(),(0,n.Module)({providers:[{provide:r.CONFIGURATION_TOKEN,useFactory:()=>({})},{provide:r.CONFIGURATION_SERVICE_TOKEN,useClass:i.ConfigService}],exports:[r.CONFIGURATION_TOKEN,r.CONFIGURATION_SERVICE_TOKEN]})],a)})),qc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getConfigToken=t;function t(e){return`CONFIGURATION(${e.toString()})`}})),Jc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfigProvider=r;var t=qc(),n=require(`crypto`);function r(e){return{provide:e.KEY||(0,t.getConfigToken)((0,n.randomUUID)()),useFactory:e,inject:[]}}})),Yc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getRegistrationToken=n;var t=Qo();function n(e){return e[t.PARTIAL_CONFIGURATION_KEY]}})),Xc=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.mergeConfigObject=r;var n=t(cc());function r(e,t,r){if(r)return(0,n.default)(e,r,t),t;Object.assign(e,t)}})),Zc=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!==`default`&&t(i,r,a[o]);return n(i,r),i}})(),a;Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigModule=void 0;var o=H(),s=A(),c=i(Xo()),l=Zo(),u=i(require(`fs`)),d=require(`path`),f=Kc(),p=Qo(),m=Gc(),h=Jc(),g=Yc(),_=Xc(),v=a=class{static get envVariablesLoaded(){return this._envVariablesLoaded}static async forRoot(e={}){let t=Array.isArray(e.envFilePath)?e.envFilePath:[e.envFilePath||(0,d.resolve)(process.cwd(),`.env`)],n,r=e.ignoreEnvFile?{}:this.loadEnvFile(t,e);if(!e.ignoreEnvVars&&e.validatePredefined!==!1&&(r={...r,...process.env}),e.validate){let t=e.validate(r);n=t,this.assignVariablesToProcess(t)}else if(e.validationSchema){let t=this.getSchemaValidationOptions(e),{error:i,value:a}=e.validationSchema.validate(r,t);if(i)throw Error(`Config validation error: ${i.message}`);n=a,this.assignVariablesToProcess(a)}else this.assignVariablesToProcess(r);let i=e.load&&e.load.length,o=(await Promise.all(e.load||[])).map(e=>(0,h.createConfigProvider)(e)).filter(e=>e),s=o.map(e=>e.provide),c={provide:m.ConfigService,useFactory:n=>{let r=n;return e.cache&&(r.isCacheEnabled=!0),e.skipProcessEnv&&(r.skipProcessEnv=!0),n.setEnvFilePaths(t),n},inject:[p.CONFIGURATION_SERVICE_TOKEN,...s]};if(o.push(c),n){let e={provide:p.VALIDATED_ENV_LOADER,useFactory:e=>{e[p.VALIDATED_ENV_PROPNAME]=n},inject:[p.CONFIGURATION_TOKEN]};o.push(e)}return this.environmentVariablesLoadedSignal(),{module:a,global:e.isGlobal,providers:i?[...o,{provide:p.CONFIGURATION_LOADER,useFactory:(e,...t)=>{t.forEach((t,n)=>this.mergePartial(e,t,o[n]))},inject:[p.CONFIGURATION_TOKEN,...s]}]:o,exports:[m.ConfigService,...s]}}static forFeature(e){let t=(0,h.createConfigProvider)(e),n={provide:m.ConfigService,useFactory:e=>e,inject:[p.CONFIGURATION_SERVICE_TOKEN,t.provide]};return{module:a,providers:[t,n,{provide:p.CONFIGURATION_LOADER,useFactory:(e,n)=>{this.mergePartial(e,n,t)},inject:[p.CONFIGURATION_TOKEN,t.provide]}],exports:[m.ConfigService,t.provide]}}static loadEnvFile(e,t){let n={};for(let r of e)if(u.existsSync(r)&&(n=Object.assign(c.parse(u.readFileSync(r)),n),t.expandVariables)){let e=typeof t.expandVariables==`object`?t.expandVariables:{};n=(0,l.expand)({...e,parsed:n}).parsed||n}return n}static assignVariablesToProcess(e){(0,s.isObject)(e)&&Object.keys(e).filter(e=>!(e in process.env)).forEach(t=>{let n=e[t];typeof n==`string`?process.env[t]=n:(typeof n==`boolean`||typeof n==`number`)&&(process.env[t]=`${n}`)})}static mergePartial(e,t,n){let r=n.useFactory,i=(0,g.getRegistrationToken)(r);(0,_.mergeConfigObject)(e,t,i)}static getSchemaValidationOptions(e){return e.validationOptions?(e.validationOptions.allowUnknown===void 0&&(e.validationOptions.allowUnknown=!0),e.validationOptions):{abortEarly:!1,allowUnknown:!0}}};e.ConfigModule=v,v._envVariablesLoaded=new Promise(e=>a.environmentVariablesLoadedSignal=e),e.ConfigModule=v=a=r([(0,o.Module)({imports:[f.ConfigHostModule],providers:[{provide:m.ConfigService,useExisting:p.CONFIGURATION_SERVICE_TOKEN}],exports:[f.ConfigHostModule,m.ConfigService]})],v)})),Qc=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConditionalModule=void 0;var t=H(),n=Zc(),r=e=>e?.forwardRef?e.forwardRef()?.name:e.module?e.module?.name:e.name;e.ConditionalModule=class e{static async registerWhen(i,a,o){let{timeout:s=5e3,debug:c=!0}=o??{},l=r(i)||i.toString(),u=setTimeout(()=>{throw Error(`Nest was not able to resolve the config variables within ${s} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${l} should be registered or not`)},s);u.unref();let d={module:e,imports:[],exports:[]};if(typeof a==`string`){let e=a;a=t=>t[e]?.toLowerCase()!==`false`}return await n.ConfigModule.envVariablesLoaded,clearTimeout(u),a(process.env)?(d.imports.push(i),d.exports.push(i)):c&&t.Logger.debug(`${a.toString()} evaluated to false. Skipping the registration of ${l}`,e.name),d}}})),$c=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),el=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),tl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),nl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),rl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n($c(),e),n(el(),e),n(tl(),e),n(nl(),e)})),il=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.registerAs=i;var t=ul(),n=Qo(),r=qc();function i(e,i){let a=(e,t)=>{Object.defineProperty(i,e,{configurable:!1,enumerable:!1,value:t,writable:!1})};return a(n.PARTIAL_CONFIGURATION_KEY,e),a(n.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(e)),a(n.AS_PROVIDER_METHOD_KEY,()=>({imports:[t.ConfigModule.forFeature(i)],useFactory:e=>e,inject:[(0,r.getConfigToken)(e)]})),i}})),al=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(il(),e),n(qc(),e)})),ol=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),sl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),cl=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),ll=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(ol(),e),n(sl(),e),n(cl(),e)})),ul=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),n(Qc(),e),n(Zc(),e),n(Gc(),e),n(rl(),e),n(al(),e),n(ll(),e)})),dl=s((e=>{function t(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,t(ul())}))(),fl=(e,t=process.env)=>{let n=e.safeParse(t);if(!n.success)throw Error(`Invalid environment variables: ${JSON.stringify(n.error.issues)}`);return n.data},pl=[];for(let e=0;e<256;++e)pl.push((e+256).toString(16).slice(1));typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Object.freeze({status:`aborted`});function U(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var ml=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},hl=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},gl={};function _l(e){return e&&Object.assign(gl,e),gl}function vl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function yl(e,t){return typeof t==`bigint`?t.toString():t}function bl(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function xl(e){return e==null}function Sl(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Cl(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var wl=Symbol(`evaluating`);function W(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==wl)return r===void 0&&(r=wl,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Tl(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function El(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Dl(e){return JSON.stringify(e)}function Ol(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var kl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Al(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var jl=bl(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ml(e){if(Al(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Al(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Nl(e){return Ml(e)?{...e}:Array.isArray(e)?[...e]:e}var Pl=new Set([`string`,`number`,`symbol`]);function Fl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Il(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Ll(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Rl={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function zl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Il(e,El(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Tl(this,`shape`,e),e},checks:[]}))}function Bl(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Il(e,El(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Tl(this,`shape`,r),r},checks:[]}))}function Vl(e,t){if(!Ml(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Il(e,El(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Tl(this,`shape`,n),n}}))}function Hl(e,t){if(!Ml(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Il(e,El(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Tl(this,`shape`,n),n}}))}function Ul(e,t){return Il(e,El(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Tl(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Wl(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Il(t,El(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Tl(this,`shape`,i),i},checks:[]}))}function Gl(e,t,n){return Il(t,El(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Tl(this,`shape`,i),i}}))}function Kl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ql(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Jl(e){return typeof e==`string`?e:e?.message}function Yl(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Jl(e.inst?._zod.def?.error?.(e))??Jl(t?.error?.(e))??Jl(n.customError?.(e))??Jl(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Xl(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Zl(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ql=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,yl,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},$l=U(`$ZodError`,Ql),eu=U(`$ZodError`,Ql,{Parent:Error});function tu(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function nu(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var ru=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new ml;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Yl(e,a,_l())));throw kl(t,i?.callee),t}return o.value},iu=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Yl(e,a,_l())));throw kl(t,i?.callee),t}return o.value},au=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ml;return a.issues.length?{success:!1,error:new(e??$l)(a.issues.map(e=>Yl(e,i,_l())))}:{success:!0,data:a.value}},ou=au(eu),su=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Yl(e,i,_l())))}:{success:!0,data:a.value}},cu=su(eu),lu=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return ru(e)(t,n,i)},uu=e=>(t,n,r)=>ru(e)(t,n,r),du=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return iu(e)(t,n,i)},fu=e=>async(t,n,r)=>iu(e)(t,n,r),pu=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return au(e)(t,n,i)},mu=e=>(t,n,r)=>au(e)(t,n,r),hu=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return su(e)(t,n,i)},gu=e=>async(t,n,r)=>su(e)(t,n,r),_u=/^[cC][^\s-]{8,}$/,vu=/^[0-9a-z]+$/,yu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bu=/^[0-9a-vA-V]{20}$/,xu=/^[A-Za-z0-9]{27}$/,Su=/^[a-zA-Z0-9_-]{21}$/,Cu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Tu=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Eu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Du=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Ou(){return new RegExp(Du,`u`)}var ku=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Au=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ju=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Mu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Nu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pu=/^[A-Za-z0-9_-]*$/,Fu=/^\+[1-9]\d{6,14}$/,Iu=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Lu=RegExp(`^${Iu}$`);function Ru(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function zu(e){return RegExp(`^${Ru(e)}$`)}function Bu(e){let t=Ru({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Iu}T(?:${r})$`)}var Vu=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Hu=/^-?\d+$/,Uu=/^-?\d+(?:\.\d+)?$/,Wu=/^[^A-Z]*$/,Gu=/^[^a-z]*$/,Ku=U(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qu={number:`number`,bigint:`bigint`,object:`date`},Ju=U(`$ZodCheckLessThan`,(e,t)=>{Ku.init(e,t);let n=qu[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Yu=U(`$ZodCheckGreaterThan`,(e,t)=>{Ku.init(e,t);let n=qu[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xu=U(`$ZodCheckMultipleOf`,(e,t)=>{Ku.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Cl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Zu=U(`$ZodCheckNumberFormat`,(e,t)=>{Ku.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Rl[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Hu)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Qu=U(`$ZodCheckMaxLength`,(e,t)=>{var n;Ku.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Xl(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$u=U(`$ZodCheckMinLength`,(e,t)=>{var n;Ku.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Xl(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ed=U(`$ZodCheckLengthEquals`,(e,t)=>{var n;Ku.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xl(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Xl(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),td=U(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Ku.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),nd=U(`$ZodCheckRegex`,(e,t)=>{td.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rd=U(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Wu,td.init(e,t)}),id=U(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Gu,td.init(e,t)}),ad=U(`$ZodCheckIncludes`,(e,t)=>{Ku.init(e,t);let n=Fl(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),od=U(`$ZodCheckStartsWith`,(e,t)=>{Ku.init(e,t);let n=RegExp(`^${Fl(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),sd=U(`$ZodCheckEndsWith`,(e,t)=>{Ku.init(e,t);let n=RegExp(`.*${Fl(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),cd=U(`$ZodCheckOverwrite`,(e,t)=>{Ku.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),ld=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
8
8
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
9
|
-
`))}},
|
|
9
|
+
`))}},ud={major:4,minor:3,patch:6},K=U(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ud;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Kl(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new ml;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Kl(e,t))});else{if(e.issues.length===t)continue;r||=Kl(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Kl(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new ml;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new ml;return o.then(e=>t(e,r,a))}return t(o,r,a)}}W(e,`~standard`,()=>({validate:t=>{try{let n=ou(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return cu(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),dd=U(`$ZodString`,(e,t)=>{K.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Vu(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),q=U(`$ZodStringFormat`,(e,t)=>{td.init(e,t),dd.init(e,t)}),fd=U(`$ZodGUID`,(e,t)=>{t.pattern??=wu,q.init(e,t)}),pd=U(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Tu(e)}else t.pattern??=Tu();q.init(e,t)}),md=U(`$ZodEmail`,(e,t)=>{t.pattern??=Eu,q.init(e,t)}),hd=U(`$ZodURL`,(e,t)=>{q.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),gd=U(`$ZodEmoji`,(e,t)=>{t.pattern??=Ou(),q.init(e,t)}),_d=U(`$ZodNanoID`,(e,t)=>{t.pattern??=Su,q.init(e,t)}),vd=U(`$ZodCUID`,(e,t)=>{t.pattern??=_u,q.init(e,t)}),yd=U(`$ZodCUID2`,(e,t)=>{t.pattern??=vu,q.init(e,t)}),bd=U(`$ZodULID`,(e,t)=>{t.pattern??=yu,q.init(e,t)}),xd=U(`$ZodXID`,(e,t)=>{t.pattern??=bu,q.init(e,t)}),Sd=U(`$ZodKSUID`,(e,t)=>{t.pattern??=xu,q.init(e,t)}),Cd=U(`$ZodISODateTime`,(e,t)=>{t.pattern??=Bu(t),q.init(e,t)}),wd=U(`$ZodISODate`,(e,t)=>{t.pattern??=Lu,q.init(e,t)}),Td=U(`$ZodISOTime`,(e,t)=>{t.pattern??=zu(t),q.init(e,t)}),Ed=U(`$ZodISODuration`,(e,t)=>{t.pattern??=Cu,q.init(e,t)}),Dd=U(`$ZodIPv4`,(e,t)=>{t.pattern??=ku,q.init(e,t),e._zod.bag.format=`ipv4`}),Od=U(`$ZodIPv6`,(e,t)=>{t.pattern??=Au,q.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),kd=U(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ju,q.init(e,t)}),Ad=U(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Mu,q.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function jd(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Md=U(`$ZodBase64`,(e,t)=>{t.pattern??=Nu,q.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{jd(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Nd(e){if(!Pu.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return jd(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Pd=U(`$ZodBase64URL`,(e,t)=>{t.pattern??=Pu,q.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Nd(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Fd=U(`$ZodE164`,(e,t)=>{t.pattern??=Fu,q.init(e,t)});function Id(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ld=U(`$ZodJWT`,(e,t)=>{q.init(e,t),e._zod.check=n=>{Id(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Rd=U(`$ZodNumber`,(e,t)=>{K.init(e,t),e._zod.pattern=e._zod.bag.pattern??Uu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),zd=U(`$ZodNumberFormat`,(e,t)=>{Zu.init(e,t),Rd.init(e,t)}),Bd=U(`$ZodUnknown`,(e,t)=>{K.init(e,t),e._zod.parse=e=>e}),Vd=U(`$ZodNever`,(e,t)=>{K.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Hd(e,t,n){e.issues.length&&t.issues.push(...ql(n,e.issues)),t.value[n]=e.value}var Ud=U(`$ZodArray`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Hd(t,n,e))):Hd(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Wd(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...ql(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Gd(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Ll(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Kd(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Wd(e,n,i,t,u))):Wd(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var qd=U(`$ZodObject`,(e,t)=>{if(K.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=bl(()=>Gd(t));W(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Al,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Wd(n,t,e,s,r))):Wd(i,t,e,s,r)}return i?Kd(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Jd=U(`$ZodObjectJIT`,(e,t)=>{qd.init(e,t);let n=e._zod.parse,r=bl(()=>Gd(t)),i=e=>{let t=new ld([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Dl(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Dl(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
|
10
10
|
if (${n}.issues.length) {
|
|
11
11
|
if (${o} in input) {
|
|
12
12
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
@@ -40,11 +40,11 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
|
|
|
40
40
|
newResult[${o}] = ${n}.value;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ml,s=!vl.jitless,c=s&&Nl.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Yd([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Qd(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Jl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Zl(e,r,yl())))}),t)}var $d=W(`$ZodUnion`,(e,t)=>{pd.init(e,t),G(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),G(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),G(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),G(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>wl(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Qd(t,i,e,a)):Qd(s,i,e,a)}}),ef=W(`$ZodIntersection`,(e,t)=>{pd.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>nf(e,t,n)):nf(e,i,a)}});function tf(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Pl(e)&&Pl(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=tf(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=tf(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nf(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Jl(e))return e;let o=tf(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var rf=W(`$ZodEnum`,(e,t)=>{pd.init(e,t);let n=bl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Il.has(typeof e)).map(e=>typeof e==`string`?Ll(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),af=W(`$ZodTransform`,(e,t)=>{pd.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new _l(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new gl;return n.value=i,n}});function of(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var sf=W(`$ZodOptional`,(e,t)=>{pd.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,G(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),G(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${wl(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>of(t,e.value)):of(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),cf=W(`$ZodExactOptional`,(e,t)=>{sf.init(e,t),G(e._zod,`values`,()=>t.innerType._zod.values),G(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),lf=W(`$ZodNullable`,(e,t)=>{pd.init(e,t),G(e._zod,`optin`,()=>t.innerType._zod.optin),G(e._zod,`optout`,()=>t.innerType._zod.optout),G(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${wl(e.source)}|null)$`):void 0}),G(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),uf=W(`$ZodDefault`,(e,t)=>{pd.init(e,t),e._zod.optin=`optional`,G(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>df(e,t)):df(r,t)}});function df(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ff=W(`$ZodPrefault`,(e,t)=>{pd.init(e,t),e._zod.optin=`optional`,G(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),pf=W(`$ZodNonOptional`,(e,t)=>{pd.init(e,t),G(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>mf(t,e)):mf(i,e)}});function mf(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var hf=W(`$ZodCatch`,(e,t)=>{pd.init(e,t),G(e._zod,`optin`,()=>t.innerType._zod.optin),G(e._zod,`optout`,()=>t.innerType._zod.optout),G(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Zl(e,n,yl()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Zl(e,n,yl()))},input:e.value}),e.issues=[]),e)}}),gf=W(`$ZodPipe`,(e,t)=>{pd.init(e,t),G(e._zod,`values`,()=>t.in._zod.values),G(e._zod,`optin`,()=>t.in._zod.optin),G(e._zod,`optout`,()=>t.out._zod.optout),G(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>_f(e,t.in,n)):_f(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>_f(e,t.out,n)):_f(r,t.out,n)}});function _f(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var vf=W(`$ZodReadonly`,(e,t)=>{pd.init(e,t),G(e._zod,`propValues`,()=>t.innerType._zod.propValues),G(e._zod,`values`,()=>t.innerType._zod.values),G(e._zod,`optin`,()=>t.innerType?._zod?.optin),G(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(yf):yf(r)}});function yf(e){return e.value=Object.freeze(e.value),e}var bf=W(`$ZodCustom`,(e,t)=>{Ju.init(e,t),pd.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>xf(t,n,r,e));xf(i,n,r,e)}});function xf(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push($l(e))}}var Sf,Cf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function wf(){return new Cf}(Sf=globalThis).__zod_globalRegistry??(Sf.__zod_globalRegistry=wf());var Tf=globalThis.__zod_globalRegistry;function Ef(e,t){return new e({type:`string`,...K(t)})}function Df(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...K(t)})}function Of(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...K(t)})}function kf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...K(t)})}function Af(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...K(t)})}function jf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...K(t)})}function Mf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...K(t)})}function Nf(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...K(t)})}function Pf(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...K(t)})}function Ff(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...K(t)})}function If(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...K(t)})}function Lf(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...K(t)})}function Rf(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...K(t)})}function zf(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...K(t)})}function Bf(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...K(t)})}function Vf(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...K(t)})}function Hf(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...K(t)})}function Uf(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...K(t)})}function Wf(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...K(t)})}function Gf(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...K(t)})}function Kf(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...K(t)})}function qf(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...K(t)})}function Jf(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...K(t)})}function Yf(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...K(t)})}function Xf(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...K(t)})}function Zf(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...K(t)})}function Qf(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...K(t)})}function $f(e,t){return new e({type:`number`,checks:[],...K(t)})}function ep(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...K(t)})}function tp(e){return new e({type:`unknown`})}function np(e,t){return new e({type:`never`,...K(t)})}function rp(e,t){return new Xu({check:`less_than`,...K(t),value:e,inclusive:!1})}function ip(e,t){return new Xu({check:`less_than`,...K(t),value:e,inclusive:!0})}function ap(e,t){return new Zu({check:`greater_than`,...K(t),value:e,inclusive:!1})}function op(e,t){return new Zu({check:`greater_than`,...K(t),value:e,inclusive:!0})}function sp(e,t){return new Qu({check:`multiple_of`,...K(t),value:e})}function cp(e,t){return new ed({check:`max_length`,...K(t),maximum:e})}function lp(e,t){return new td({check:`min_length`,...K(t),minimum:e})}function up(e,t){return new nd({check:`length_equals`,...K(t),length:e})}function dp(e,t){return new id({check:`string_format`,format:`regex`,...K(t),pattern:e})}function fp(e){return new ad({check:`string_format`,format:`lowercase`,...K(e)})}function pp(e){return new od({check:`string_format`,format:`uppercase`,...K(e)})}function mp(e,t){return new sd({check:`string_format`,format:`includes`,...K(t),includes:e})}function hp(e,t){return new cd({check:`string_format`,format:`starts_with`,...K(t),prefix:e})}function gp(e,t){return new ld({check:`string_format`,format:`ends_with`,...K(t),suffix:e})}function _p(e){return new ud({check:`overwrite`,tx:e})}function vp(e){return _p(t=>t.normalize(e))}function yp(){return _p(e=>e.trim())}function bp(){return _p(e=>e.toLowerCase())}function xp(){return _p(e=>e.toUpperCase())}function Sp(){return _p(e=>Al(e))}function Cp(e,t,n){return new e({type:`array`,element:t,...K(n)})}function wp(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...K(n)})}function Tp(e){let t=Ep(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push($l(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push($l(r))}},e(n.value,n)));return t}function Ep(e,t){let n=new Ju({check:`custom`,...K(t)});return n._zod.check=e,n}function Dp(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Tf,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Op(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Op(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&jp(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function kp(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
43
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Al,s=!gl.jitless,c=s&&jl.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Kd([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Yd(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Kl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Yl(e,r,_l())))}),t)}var Xd=U(`$ZodUnion`,(e,t)=>{K.init(e,t),W(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),W(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),W(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),W(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Sl(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Yd(t,i,e,a)):Yd(s,i,e,a)}}),Zd=U(`$ZodIntersection`,(e,t)=>{K.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>$d(e,t,n)):$d(e,i,a)}});function Qd(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ml(e)&&Ml(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Qd(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Qd(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function $d(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Kl(e))return e;let o=Qd(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var ef=U(`$ZodEnum`,(e,t)=>{K.init(e,t);let n=vl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Pl.has(typeof e)).map(e=>typeof e==`string`?Fl(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),tf=U(`$ZodTransform`,(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new hl(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new ml;return n.value=i,n}});function nf(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var rf=U(`$ZodOptional`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Sl(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>nf(t,e.value)):nf(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),af=U(`$ZodExactOptional`,(e,t)=>{rf.init(e,t),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),of=U(`$ZodNullable`,(e,t)=>{K.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Sl(e.source)}|null)$`):void 0}),W(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),sf=U(`$ZodDefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>cf(e,t)):cf(r,t)}});function cf(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var lf=U(`$ZodPrefault`,(e,t)=>{K.init(e,t),e._zod.optin=`optional`,W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),uf=U(`$ZodNonOptional`,(e,t)=>{K.init(e,t),W(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>df(t,e)):df(i,e)}});function df(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var ff=U(`$ZodCatch`,(e,t)=>{K.init(e,t),W(e._zod,`optin`,()=>t.innerType._zod.optin),W(e._zod,`optout`,()=>t.innerType._zod.optout),W(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Yl(e,n,_l()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Yl(e,n,_l()))},input:e.value}),e.issues=[]),e)}}),pf=U(`$ZodPipe`,(e,t)=>{K.init(e,t),W(e._zod,`values`,()=>t.in._zod.values),W(e._zod,`optin`,()=>t.in._zod.optin),W(e._zod,`optout`,()=>t.out._zod.optout),W(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>mf(e,t.in,n)):mf(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>mf(e,t.out,n)):mf(r,t.out,n)}});function mf(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var hf=U(`$ZodReadonly`,(e,t)=>{K.init(e,t),W(e._zod,`propValues`,()=>t.innerType._zod.propValues),W(e._zod,`values`,()=>t.innerType._zod.values),W(e._zod,`optin`,()=>t.innerType?._zod?.optin),W(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(gf):gf(r)}});function gf(e){return e.value=Object.freeze(e.value),e}var _f=U(`$ZodCustom`,(e,t)=>{Ku.init(e,t),K.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>vf(t,n,r,e));vf(i,n,r,e)}});function vf(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Zl(e))}}var yf,bf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function xf(){return new bf}(yf=globalThis).__zod_globalRegistry??(yf.__zod_globalRegistry=xf());var Sf=globalThis.__zod_globalRegistry;function Cf(e,t){return new e({type:`string`,...G(t)})}function wf(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...G(t)})}function Tf(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...G(t)})}function Ef(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...G(t)})}function Df(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...G(t)})}function Of(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...G(t)})}function kf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...G(t)})}function Af(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...G(t)})}function jf(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...G(t)})}function Mf(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...G(t)})}function Nf(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...G(t)})}function Pf(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...G(t)})}function Ff(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...G(t)})}function If(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...G(t)})}function Lf(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...G(t)})}function Rf(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...G(t)})}function zf(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...G(t)})}function Bf(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...G(t)})}function Vf(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...G(t)})}function Hf(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...G(t)})}function Uf(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...G(t)})}function Wf(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...G(t)})}function Gf(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...G(t)})}function Kf(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...G(t)})}function qf(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...G(t)})}function Jf(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...G(t)})}function Yf(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...G(t)})}function Xf(e,t){return new e({type:`number`,checks:[],...G(t)})}function Zf(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...G(t)})}function Qf(e){return new e({type:`unknown`})}function $f(e,t){return new e({type:`never`,...G(t)})}function ep(e,t){return new Ju({check:`less_than`,...G(t),value:e,inclusive:!1})}function tp(e,t){return new Ju({check:`less_than`,...G(t),value:e,inclusive:!0})}function np(e,t){return new Yu({check:`greater_than`,...G(t),value:e,inclusive:!1})}function rp(e,t){return new Yu({check:`greater_than`,...G(t),value:e,inclusive:!0})}function ip(e,t){return new Xu({check:`multiple_of`,...G(t),value:e})}function ap(e,t){return new Qu({check:`max_length`,...G(t),maximum:e})}function op(e,t){return new $u({check:`min_length`,...G(t),minimum:e})}function sp(e,t){return new ed({check:`length_equals`,...G(t),length:e})}function cp(e,t){return new nd({check:`string_format`,format:`regex`,...G(t),pattern:e})}function lp(e){return new rd({check:`string_format`,format:`lowercase`,...G(e)})}function up(e){return new id({check:`string_format`,format:`uppercase`,...G(e)})}function dp(e,t){return new ad({check:`string_format`,format:`includes`,...G(t),includes:e})}function fp(e,t){return new od({check:`string_format`,format:`starts_with`,...G(t),prefix:e})}function pp(e,t){return new sd({check:`string_format`,format:`ends_with`,...G(t),suffix:e})}function mp(e){return new cd({check:`overwrite`,tx:e})}function hp(e){return mp(t=>t.normalize(e))}function gp(){return mp(e=>e.trim())}function _p(){return mp(e=>e.toLowerCase())}function vp(){return mp(e=>e.toUpperCase())}function yp(){return mp(e=>Ol(e))}function bp(e,t,n){return new e({type:`array`,element:t,...G(n)})}function xp(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...G(n)})}function Sp(e){let t=Cp(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Zl(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Zl(r))}},e(n.value,n)));return t}function Cp(e,t){let n=new Ku({check:`custom`,...G(t)});return n._zod.check=e,n}function wp(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Sf,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Tp(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Tp(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Op(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ep(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
44
44
|
|
|
45
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Ap(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Np(t,`input`,e.processors),output:Np(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function jp(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return jp(r.element,n);if(r.type===`set`)return jp(r.valueType,n);if(r.type===`lazy`)return jp(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return jp(r.innerType,n);if(r.type===`intersection`)return jp(r.left,n)||jp(r.right,n);if(r.type===`record`||r.type===`map`)return jp(r.keyType,n)||jp(r.valueType,n);if(r.type===`pipe`)return jp(r.in,n)||jp(r.out,n);if(r.type===`object`){for(let e in r.shape)if(jp(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(jp(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(jp(e,n))return!0;return!!(r.rest&&jp(r.rest,n))}return!1}var Mp=(e,t={})=>n=>{let r=Dp({...n,processors:t});return Op(e,r),kp(r,e),Ap(r,e)},Np=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Dp({...i??{},target:a,io:t,processors:n});return Op(e,o),kp(o,e),Ap(o,e)},Pp={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Fp=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Pp[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Ip=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Lp=(e,t,n,r)=>{n.not={}},Rp=(e,t,n,r)=>{let i=e._zod.def,a=bl(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},zp=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Bp=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Vp=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Op(a.element,t,{...r,path:[...r.path,`items`]})},Hp=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Op(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Op(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Up=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Op(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Wp=(e,t,n,r)=>{let i=e._zod.def,a=Op(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Op(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Gp=(e,t,n,r)=>{let i=e._zod.def,a=Op(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Kp=(e,t,n,r)=>{let i=e._zod.def;Op(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},qp=(e,t,n,r)=>{let i=e._zod.def;Op(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Jp=(e,t,n,r)=>{let i=e._zod.def;Op(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Yp=(e,t,n,r)=>{let i=e._zod.def;Op(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Xp=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Op(a,t,r);let o=t.seen.get(e);o.ref=a},Zp=(e,t,n,r)=>{let i=e._zod.def;Op(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Qp=(e,t,n,r)=>{let i=e._zod.def;Op(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$p=W(`ZodISODateTime`,(e,t)=>{Ed.init(e,t),J.init(e,t)});function em(e){return Yf($p,e)}var tm=W(`ZodISODate`,(e,t)=>{Dd.init(e,t),J.init(e,t)});function nm(e){return Xf(tm,e)}var rm=W(`ZodISOTime`,(e,t)=>{Od.init(e,t),J.init(e,t)});function im(e){return Zf(rm,e)}var am=W(`ZodISODuration`,(e,t)=>{kd.init(e,t),J.init(e,t)});function om(e){return Qf(am,e)}var sm=(e,t)=>{tu.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>iu(e,t)},flatten:{value:t=>ru(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,xl,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,xl,2)}},isEmpty:{get(){return e.issues.length===0}}})};W(`ZodError`,sm);var cm=W(`ZodError`,sm,{Parent:Error}),lm=au(cm),um=ou(cm),dm=su(cm),fm=lu(cm),pm=du(cm),mm=fu(cm),hm=pu(cm),gm=mu(cm),_m=hu(cm),vm=gu(cm),ym=_u(cm),bm=vu(cm),xm=W(`ZodType`,(e,t)=>(pd.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Np(e,`input`),output:Np(e,`output`)}}),e.toJSONSchema=Mp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Ol(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>Rl(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>lm(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>dm(e,t,n),e.parseAsync=async(t,n)=>um(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>fm(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>pm(e,t,n),e.decode=(t,n)=>mm(e,t,n),e.encodeAsync=async(t,n)=>hm(e,t,n),e.decodeAsync=async(t,n)=>gm(e,t,n),e.safeEncode=(t,n)=>_m(e,t,n),e.safeDecode=(t,n)=>vm(e,t,n),e.safeEncodeAsync=async(t,n)=>ym(e,t,n),e.safeDecodeAsync=async(t,n)=>bm(e,t,n),e.refine=(t,n)=>e.check(kh(t,n)),e.superRefine=t=>e.check(Ah(t)),e.overwrite=t=>e.check(_p(t)),e.optional=()=>dh(e),e.exactOptional=()=>ph(e),e.nullable=()=>hh(e),e.nullish=()=>dh(hh(e)),e.nonoptional=t=>xh(e,t),e.array=()=>$m(e),e.or=t=>rh([e,t]),e.and=t=>ah(e,t),e.transform=t=>Th(e,lh(t)),e.default=t=>_h(e,t),e.prefault=t=>yh(e,t),e.catch=t=>Ch(e,t),e.pipe=t=>Th(e,t),e.readonly=()=>Dh(e),e.describe=t=>{let n=e.clone();return Tf.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Tf.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Tf.get(e);let n=e.clone();return Tf.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Sm=W(`_ZodString`,(e,t)=>{md.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fp(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(dp(...t)),e.includes=(...t)=>e.check(mp(...t)),e.startsWith=(...t)=>e.check(hp(...t)),e.endsWith=(...t)=>e.check(gp(...t)),e.min=(...t)=>e.check(lp(...t)),e.max=(...t)=>e.check(cp(...t)),e.length=(...t)=>e.check(up(...t)),e.nonempty=(...t)=>e.check(lp(1,...t)),e.lowercase=t=>e.check(fp(t)),e.uppercase=t=>e.check(pp(t)),e.trim=()=>e.check(yp()),e.normalize=(...t)=>e.check(vp(...t)),e.toLowerCase=()=>e.check(bp()),e.toUpperCase=()=>e.check(xp()),e.slugify=()=>e.check(Sp())}),Cm=W(`ZodString`,(e,t)=>{md.init(e,t),Sm.init(e,t),e.email=t=>e.check(Df(Tm,t)),e.url=t=>e.check(Nf(Om,t)),e.jwt=t=>e.check(Jf(Um,t)),e.emoji=t=>e.check(Pf(km,t)),e.guid=t=>e.check(Of(Em,t)),e.uuid=t=>e.check(kf(Dm,t)),e.uuidv4=t=>e.check(Af(Dm,t)),e.uuidv6=t=>e.check(jf(Dm,t)),e.uuidv7=t=>e.check(Mf(Dm,t)),e.nanoid=t=>e.check(Ff(Am,t)),e.guid=t=>e.check(Of(Em,t)),e.cuid=t=>e.check(If(jm,t)),e.cuid2=t=>e.check(Lf(Mm,t)),e.ulid=t=>e.check(Rf(Nm,t)),e.base64=t=>e.check(Gf(Bm,t)),e.base64url=t=>e.check(Kf(Vm,t)),e.xid=t=>e.check(zf(Pm,t)),e.ksuid=t=>e.check(Bf(Fm,t)),e.ipv4=t=>e.check(Vf(Im,t)),e.ipv6=t=>e.check(Hf(Lm,t)),e.cidrv4=t=>e.check(Uf(Rm,t)),e.cidrv6=t=>e.check(Wf(zm,t)),e.e164=t=>e.check(qf(Hm,t)),e.datetime=t=>e.check(em(t)),e.date=t=>e.check(nm(t)),e.time=t=>e.check(im(t)),e.duration=t=>e.check(om(t))});function wm(e){return Ef(Cm,e)}var J=W(`ZodStringFormat`,(e,t)=>{q.init(e,t),Sm.init(e,t)}),Tm=W(`ZodEmail`,(e,t)=>{_d.init(e,t),J.init(e,t)}),Em=W(`ZodGUID`,(e,t)=>{hd.init(e,t),J.init(e,t)}),Dm=W(`ZodUUID`,(e,t)=>{gd.init(e,t),J.init(e,t)}),Om=W(`ZodURL`,(e,t)=>{vd.init(e,t),J.init(e,t)}),km=W(`ZodEmoji`,(e,t)=>{yd.init(e,t),J.init(e,t)}),Am=W(`ZodNanoID`,(e,t)=>{bd.init(e,t),J.init(e,t)}),jm=W(`ZodCUID`,(e,t)=>{xd.init(e,t),J.init(e,t)}),Mm=W(`ZodCUID2`,(e,t)=>{Sd.init(e,t),J.init(e,t)}),Nm=W(`ZodULID`,(e,t)=>{Cd.init(e,t),J.init(e,t)}),Pm=W(`ZodXID`,(e,t)=>{wd.init(e,t),J.init(e,t)}),Fm=W(`ZodKSUID`,(e,t)=>{Td.init(e,t),J.init(e,t)}),Im=W(`ZodIPv4`,(e,t)=>{Ad.init(e,t),J.init(e,t)}),Lm=W(`ZodIPv6`,(e,t)=>{jd.init(e,t),J.init(e,t)}),Rm=W(`ZodCIDRv4`,(e,t)=>{Md.init(e,t),J.init(e,t)}),zm=W(`ZodCIDRv6`,(e,t)=>{Nd.init(e,t),J.init(e,t)}),Bm=W(`ZodBase64`,(e,t)=>{Fd.init(e,t),J.init(e,t)}),Vm=W(`ZodBase64URL`,(e,t)=>{Ld.init(e,t),J.init(e,t)}),Hm=W(`ZodE164`,(e,t)=>{Rd.init(e,t),J.init(e,t)}),Um=W(`ZodJWT`,(e,t)=>{Bd.init(e,t),J.init(e,t)}),Wm=W(`ZodNumber`,(e,t)=>{Vd.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ip(e,t,n,r),e.gt=(t,n)=>e.check(ap(t,n)),e.gte=(t,n)=>e.check(op(t,n)),e.min=(t,n)=>e.check(op(t,n)),e.lt=(t,n)=>e.check(rp(t,n)),e.lte=(t,n)=>e.check(ip(t,n)),e.max=(t,n)=>e.check(ip(t,n)),e.int=t=>e.check(qm(t)),e.safe=t=>e.check(qm(t)),e.positive=t=>e.check(ap(0,t)),e.nonnegative=t=>e.check(op(0,t)),e.negative=t=>e.check(rp(0,t)),e.nonpositive=t=>e.check(ip(0,t)),e.multipleOf=(t,n)=>e.check(sp(t,n)),e.step=(t,n)=>e.check(sp(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Gm(e){return $f(Wm,e)}var Km=W(`ZodNumberFormat`,(e,t)=>{Hd.init(e,t),Wm.init(e,t)});function qm(e){return ep(Km,e)}var Jm=W(`ZodUnknown`,(e,t)=>{Ud.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ym(){return tp(Jm)}var Xm=W(`ZodNever`,(e,t)=>{Wd.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lp(e,t,n,r)});function Zm(e){return np(Xm,e)}var Qm=W(`ZodArray`,(e,t)=>{Kd.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vp(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(lp(t,n)),e.nonempty=t=>e.check(lp(1,t)),e.max=(t,n)=>e.check(cp(t,n)),e.length=(t,n)=>e.check(up(t,n)),e.unwrap=()=>e.element});function $m(e,t){return Cp(Qm,e,t)}var eh=W(`ZodObject`,(e,t)=>{Zd.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hp(e,t,n,r),G(e,`shape`,()=>t.shape),e.keyof=()=>sh(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ym()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ym()}),e.strict=()=>e.clone({...e._zod.def,catchall:Zm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Ul(e,t),e.safeExtend=t=>Wl(e,t),e.merge=t=>Gl(e,t),e.pick=t=>Vl(e,t),e.omit=t=>Hl(e,t),e.partial=(...t)=>Kl(uh,e,t[0]),e.required=(...t)=>ql(bh,e,t[0])});function th(e,t){return new eh({type:`object`,shape:e??{},...K(t)})}var nh=W(`ZodUnion`,(e,t)=>{$d.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Up(e,t,n,r),e.options=t.options});function rh(e,t){return new nh({type:`union`,options:e,...K(t)})}var ih=W(`ZodIntersection`,(e,t)=>{ef.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wp(e,t,n,r)});function ah(e,t){return new ih({type:`intersection`,left:e,right:t})}var oh=W(`ZodEnum`,(e,t)=>{rf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rp(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new oh({...t,checks:[],...K(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new oh({...t,checks:[],...K(r),entries:i})}});function sh(e,t){return new oh({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...K(t)})}var ch=W(`ZodTransform`,(e,t)=>{af.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bp(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new _l(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push($l(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push($l(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function lh(e){return new ch({type:`transform`,transform:e})}var uh=W(`ZodOptional`,(e,t)=>{sf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dh(e){return new uh({type:`optional`,innerType:e})}var fh=W(`ZodExactOptional`,(e,t)=>{cf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ph(e){return new fh({type:`optional`,innerType:e})}var mh=W(`ZodNullable`,(e,t)=>{lf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hh(e){return new mh({type:`nullable`,innerType:e})}var gh=W(`ZodDefault`,(e,t)=>{uf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _h(e,t){return new gh({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Fl(t)}})}var vh=W(`ZodPrefault`,(e,t)=>{ff.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yh(e,t){return new vh({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Fl(t)}})}var bh=W(`ZodNonOptional`,(e,t)=>{pf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xh(e,t){return new bh({type:`nonoptional`,innerType:e,...K(t)})}var Sh=W(`ZodCatch`,(e,t)=>{hf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ch(e,t){return new Sh({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var wh=W(`ZodPipe`,(e,t)=>{gf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xp(e,t,n,r),e.in=t.in,e.out=t.out});function Th(e,t){return new wh({type:`pipe`,in:e,out:t})}var Eh=W(`ZodReadonly`,(e,t)=>{vf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Dh(e){return new Eh({type:`readonly`,innerType:e})}var Oh=W(`ZodCustom`,(e,t)=>{bf.init(e,t),xm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zp(e,t,n,r)});function kh(e,t={}){return wp(Oh,e,t)}function Ah(e){return Tp(e)}var jh=rh([Gm(),wm()]).optional().transform(e=>e===void 0||e===``?void 0:Number(e)).refine(e=>e===void 0||!Number.isNaN(e),{message:`Must be a valid number`});th({page:jh,pageSize:jh}),Object.freeze({status:`aborted`});function Y(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var Mh=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Nh=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},Ph={};function Fh(e){return e&&Object.assign(Ph,e),Ph}function Ih(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Lh(e,t){return typeof t==`bigint`?t.toString():t}function Rh(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function zh(e){return e==null}function Bh(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var Vh=Symbol(`evaluating`);function X(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Vh)return r===void 0&&(r=Vh,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Hh(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Uh(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Wh(e){return JSON.stringify(e)}function Gh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Kh=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function qh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Jh=Rh(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Yh(e){if(qh(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(qh(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Xh(e){return Yh(e)?{...e}:Array.isArray(e)?[...e]:e}var Zh=new Set([`string`,`number`,`symbol`]);function Qh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function $h(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function eg(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function tg(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return $h(e,Uh(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Hh(this,`shape`,e),e},checks:[]}))}function ng(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return $h(e,Uh(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Hh(this,`shape`,r),r},checks:[]}))}function rg(e,t){if(!Yh(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return $h(e,Uh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Hh(this,`shape`,n),n}}))}function ig(e,t){if(!Yh(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return $h(e,Uh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Hh(this,`shape`,n),n}}))}function ag(e,t){return $h(e,Uh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Hh(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function og(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return $h(t,Uh(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Hh(this,`shape`,i),i},checks:[]}))}function sg(e,t,n){return $h(t,Uh(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Hh(this,`shape`,i),i}}))}function cg(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function lg(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ug(e){return typeof e==`string`?e:e?.message}function dg(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=ug(e.inst?._zod.def?.error?.(e))??ug(t?.error?.(e))??ug(n.customError?.(e))??ug(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function fg(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function pg(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var mg=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,Lh,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},hg=Y(`$ZodError`,mg),gg=Y(`$ZodError`,mg,{Parent:Error});function _g(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function vg(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var yg=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Mh;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>dg(e,a,Fh())));throw Kh(t,i?.callee),t}return o.value},bg=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>dg(e,a,Fh())));throw Kh(t,i?.callee),t}return o.value},xg=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Mh;return a.issues.length?{success:!1,error:new(e??hg)(a.issues.map(e=>dg(e,i,Fh())))}:{success:!0,data:a.value}},Sg=xg(gg),Cg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>dg(e,i,Fh())))}:{success:!0,data:a.value}},wg=Cg(gg),Tg=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return yg(e)(t,n,i)},Eg=e=>(t,n,r)=>yg(e)(t,n,r),Dg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return bg(e)(t,n,i)},Og=e=>async(t,n,r)=>bg(e)(t,n,r),kg=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return xg(e)(t,n,i)},Ag=e=>(t,n,r)=>xg(e)(t,n,r),jg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Cg(e)(t,n,i)},Mg=e=>async(t,n,r)=>Cg(e)(t,n,r),Ng=/^[cC][^\s-]{8,}$/,Pg=/^[0-9a-z]+$/,Fg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ig=/^[0-9a-vA-V]{20}$/,Lg=/^[A-Za-z0-9]{27}$/,Rg=/^[a-zA-Z0-9_-]{21}$/,zg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Bg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Vg=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Hg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ug=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Wg(){return new RegExp(Ug,`u`)}var Gg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Kg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Jg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Yg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Xg=/^[A-Za-z0-9_-]*$/,Zg=/^\+[1-9]\d{6,14}$/,Qg=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,$g=RegExp(`^${Qg}$`);function e_(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function t_(e){return RegExp(`^${e_(e)}$`)}function n_(e){let t=e_({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Qg}T(?:${r})$`)}var r_=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},i_=/^[^A-Z]*$/,a_=/^[^a-z]*$/,o_=Y(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),s_=Y(`$ZodCheckMaxLength`,(e,t)=>{var n;o_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!zh(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=fg(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),c_=Y(`$ZodCheckMinLength`,(e,t)=>{var n;o_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!zh(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=fg(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),l_=Y(`$ZodCheckLengthEquals`,(e,t)=>{var n;o_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!zh(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=fg(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),u_=Y(`$ZodCheckStringFormat`,(e,t)=>{var n,r;o_.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),d_=Y(`$ZodCheckRegex`,(e,t)=>{u_.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),f_=Y(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=i_,u_.init(e,t)}),p_=Y(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=a_,u_.init(e,t)}),m_=Y(`$ZodCheckIncludes`,(e,t)=>{o_.init(e,t);let n=Qh(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),h_=Y(`$ZodCheckStartsWith`,(e,t)=>{o_.init(e,t);let n=RegExp(`^${Qh(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),g_=Y(`$ZodCheckEndsWith`,(e,t)=>{o_.init(e,t);let n=RegExp(`.*${Qh(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),__=Y(`$ZodCheckOverwrite`,(e,t)=>{o_.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),v_=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
45
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Dp(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Ap(t,`input`,e.processors),output:Ap(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Op(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Op(r.element,n);if(r.type===`set`)return Op(r.valueType,n);if(r.type===`lazy`)return Op(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Op(r.innerType,n);if(r.type===`intersection`)return Op(r.left,n)||Op(r.right,n);if(r.type===`record`||r.type===`map`)return Op(r.keyType,n)||Op(r.valueType,n);if(r.type===`pipe`)return Op(r.in,n)||Op(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Op(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Op(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Op(e,n))return!0;return!!(r.rest&&Op(r.rest,n))}return!1}var kp=(e,t={})=>n=>{let r=wp({...n,processors:t});return Tp(e,r),Ep(r,e),Dp(r,e)},Ap=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wp({...i??{},target:a,io:t,processors:n});return Tp(e,o),Ep(o,e),Dp(o,e)},jp={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Mp=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=jp[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Np=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Pp=(e,t,n,r)=>{n.not={}},Fp=(e,t,n,r)=>{let i=e._zod.def,a=vl(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Ip=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Lp=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Rp=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Tp(a.element,t,{...r,path:[...r.path,`items`]})},zp=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Tp(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Tp(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Bp=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Tp(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Vp=(e,t,n,r)=>{let i=e._zod.def,a=Tp(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Tp(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Hp=(e,t,n,r)=>{let i=e._zod.def,a=Tp(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Up=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Wp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Gp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Kp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},qp=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Tp(a,t,r);let o=t.seen.get(e);o.ref=a},Jp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Yp=(e,t,n,r)=>{let i=e._zod.def;Tp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Xp=U(`ZodISODateTime`,(e,t)=>{Cd.init(e,t),J.init(e,t)});function Zp(e){return Kf(Xp,e)}var Qp=U(`ZodISODate`,(e,t)=>{wd.init(e,t),J.init(e,t)});function $p(e){return qf(Qp,e)}var em=U(`ZodISOTime`,(e,t)=>{Td.init(e,t),J.init(e,t)});function tm(e){return Jf(em,e)}var nm=U(`ZodISODuration`,(e,t)=>{Ed.init(e,t),J.init(e,t)});function rm(e){return Yf(nm,e)}var im=(e,t)=>{$l.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>nu(e,t)},flatten:{value:t=>tu(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,yl,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,yl,2)}},isEmpty:{get(){return e.issues.length===0}}})};U(`ZodError`,im);var am=U(`ZodError`,im,{Parent:Error}),om=ru(am),sm=iu(am),cm=au(am),lm=su(am),um=lu(am),dm=uu(am),fm=du(am),pm=fu(am),mm=pu(am),hm=mu(am),gm=hu(am),_m=gu(am),vm=U(`ZodType`,(e,t)=>(K.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Ap(e,`input`),output:Ap(e,`output`)}}),e.toJSONSchema=kp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(El(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>Il(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>om(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>cm(e,t,n),e.parseAsync=async(t,n)=>sm(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>lm(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>um(e,t,n),e.decode=(t,n)=>dm(e,t,n),e.encodeAsync=async(t,n)=>fm(e,t,n),e.decodeAsync=async(t,n)=>pm(e,t,n),e.safeEncode=(t,n)=>mm(e,t,n),e.safeDecode=(t,n)=>hm(e,t,n),e.safeEncodeAsync=async(t,n)=>gm(e,t,n),e.safeDecodeAsync=async(t,n)=>_m(e,t,n),e.refine=(t,n)=>e.check(Eh(t,n)),e.superRefine=t=>e.check(Dh(t)),e.overwrite=t=>e.check(mp(t)),e.optional=()=>ch(e),e.exactOptional=()=>uh(e),e.nullable=()=>fh(e),e.nullish=()=>ch(fh(e)),e.nonoptional=t=>vh(e,t),e.array=()=>Xm(e),e.or=t=>eh([e,t]),e.and=t=>nh(e,t),e.transform=t=>Sh(e,oh(t)),e.default=t=>mh(e,t),e.prefault=t=>gh(e,t),e.catch=t=>bh(e,t),e.pipe=t=>Sh(e,t),e.readonly=()=>wh(e),e.describe=t=>{let n=e.clone();return Sf.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Sf.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Sf.get(e);let n=e.clone();return Sf.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),ym=U(`_ZodString`,(e,t)=>{dd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mp(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(cp(...t)),e.includes=(...t)=>e.check(dp(...t)),e.startsWith=(...t)=>e.check(fp(...t)),e.endsWith=(...t)=>e.check(pp(...t)),e.min=(...t)=>e.check(op(...t)),e.max=(...t)=>e.check(ap(...t)),e.length=(...t)=>e.check(sp(...t)),e.nonempty=(...t)=>e.check(op(1,...t)),e.lowercase=t=>e.check(lp(t)),e.uppercase=t=>e.check(up(t)),e.trim=()=>e.check(gp()),e.normalize=(...t)=>e.check(hp(...t)),e.toLowerCase=()=>e.check(_p()),e.toUpperCase=()=>e.check(vp()),e.slugify=()=>e.check(yp())}),bm=U(`ZodString`,(e,t)=>{dd.init(e,t),ym.init(e,t),e.email=t=>e.check(wf(Sm,t)),e.url=t=>e.check(Af(Tm,t)),e.jwt=t=>e.check(Gf(Bm,t)),e.emoji=t=>e.check(jf(Em,t)),e.guid=t=>e.check(Tf(Cm,t)),e.uuid=t=>e.check(Ef(wm,t)),e.uuidv4=t=>e.check(Df(wm,t)),e.uuidv6=t=>e.check(Of(wm,t)),e.uuidv7=t=>e.check(kf(wm,t)),e.nanoid=t=>e.check(Mf(Dm,t)),e.guid=t=>e.check(Tf(Cm,t)),e.cuid=t=>e.check(Nf(Om,t)),e.cuid2=t=>e.check(Pf(km,t)),e.ulid=t=>e.check(Ff(Am,t)),e.base64=t=>e.check(Hf(Lm,t)),e.base64url=t=>e.check(Uf(Rm,t)),e.xid=t=>e.check(If(jm,t)),e.ksuid=t=>e.check(Lf(Mm,t)),e.ipv4=t=>e.check(Rf(Nm,t)),e.ipv6=t=>e.check(zf(Pm,t)),e.cidrv4=t=>e.check(Bf(Fm,t)),e.cidrv6=t=>e.check(Vf(Im,t)),e.e164=t=>e.check(Wf(zm,t)),e.datetime=t=>e.check(Zp(t)),e.date=t=>e.check($p(t)),e.time=t=>e.check(tm(t)),e.duration=t=>e.check(rm(t))});function xm(e){return Cf(bm,e)}var J=U(`ZodStringFormat`,(e,t)=>{q.init(e,t),ym.init(e,t)}),Sm=U(`ZodEmail`,(e,t)=>{md.init(e,t),J.init(e,t)}),Cm=U(`ZodGUID`,(e,t)=>{fd.init(e,t),J.init(e,t)}),wm=U(`ZodUUID`,(e,t)=>{pd.init(e,t),J.init(e,t)}),Tm=U(`ZodURL`,(e,t)=>{hd.init(e,t),J.init(e,t)}),Em=U(`ZodEmoji`,(e,t)=>{gd.init(e,t),J.init(e,t)}),Dm=U(`ZodNanoID`,(e,t)=>{_d.init(e,t),J.init(e,t)}),Om=U(`ZodCUID`,(e,t)=>{vd.init(e,t),J.init(e,t)}),km=U(`ZodCUID2`,(e,t)=>{yd.init(e,t),J.init(e,t)}),Am=U(`ZodULID`,(e,t)=>{bd.init(e,t),J.init(e,t)}),jm=U(`ZodXID`,(e,t)=>{xd.init(e,t),J.init(e,t)}),Mm=U(`ZodKSUID`,(e,t)=>{Sd.init(e,t),J.init(e,t)}),Nm=U(`ZodIPv4`,(e,t)=>{Dd.init(e,t),J.init(e,t)}),Pm=U(`ZodIPv6`,(e,t)=>{Od.init(e,t),J.init(e,t)}),Fm=U(`ZodCIDRv4`,(e,t)=>{kd.init(e,t),J.init(e,t)}),Im=U(`ZodCIDRv6`,(e,t)=>{Ad.init(e,t),J.init(e,t)}),Lm=U(`ZodBase64`,(e,t)=>{Md.init(e,t),J.init(e,t)}),Rm=U(`ZodBase64URL`,(e,t)=>{Pd.init(e,t),J.init(e,t)}),zm=U(`ZodE164`,(e,t)=>{Fd.init(e,t),J.init(e,t)}),Bm=U(`ZodJWT`,(e,t)=>{Ld.init(e,t),J.init(e,t)}),Vm=U(`ZodNumber`,(e,t)=>{Rd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Np(e,t,n,r),e.gt=(t,n)=>e.check(np(t,n)),e.gte=(t,n)=>e.check(rp(t,n)),e.min=(t,n)=>e.check(rp(t,n)),e.lt=(t,n)=>e.check(ep(t,n)),e.lte=(t,n)=>e.check(tp(t,n)),e.max=(t,n)=>e.check(tp(t,n)),e.int=t=>e.check(Wm(t)),e.safe=t=>e.check(Wm(t)),e.positive=t=>e.check(np(0,t)),e.nonnegative=t=>e.check(rp(0,t)),e.negative=t=>e.check(ep(0,t)),e.nonpositive=t=>e.check(tp(0,t)),e.multipleOf=(t,n)=>e.check(ip(t,n)),e.step=(t,n)=>e.check(ip(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Hm(e){return Xf(Vm,e)}var Um=U(`ZodNumberFormat`,(e,t)=>{zd.init(e,t),Vm.init(e,t)});function Wm(e){return Zf(Um,e)}var Gm=U(`ZodUnknown`,(e,t)=>{Bd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Km(){return Qf(Gm)}var qm=U(`ZodNever`,(e,t)=>{Vd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pp(e,t,n,r)});function Jm(e){return $f(qm,e)}var Ym=U(`ZodArray`,(e,t)=>{Ud.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rp(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(op(t,n)),e.nonempty=t=>e.check(op(1,t)),e.max=(t,n)=>e.check(ap(t,n)),e.length=(t,n)=>e.check(sp(t,n)),e.unwrap=()=>e.element});function Xm(e,t){return bp(Ym,e,t)}var Zm=U(`ZodObject`,(e,t)=>{Jd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zp(e,t,n,r),W(e,`shape`,()=>t.shape),e.keyof=()=>ih(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Km()}),e.loose=()=>e.clone({...e._zod.def,catchall:Km()}),e.strict=()=>e.clone({...e._zod.def,catchall:Jm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Vl(e,t),e.safeExtend=t=>Hl(e,t),e.merge=t=>Ul(e,t),e.pick=t=>zl(e,t),e.omit=t=>Bl(e,t),e.partial=(...t)=>Wl(sh,e,t[0]),e.required=(...t)=>Gl(_h,e,t[0])});function Qm(e,t){return new Zm({type:`object`,shape:e??{},...G(t)})}var $m=U(`ZodUnion`,(e,t)=>{Xd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bp(e,t,n,r),e.options=t.options});function eh(e,t){return new $m({type:`union`,options:e,...G(t)})}var th=U(`ZodIntersection`,(e,t)=>{Zd.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vp(e,t,n,r)});function nh(e,t){return new th({type:`intersection`,left:e,right:t})}var rh=U(`ZodEnum`,(e,t)=>{ef.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fp(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new rh({...t,checks:[],...G(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rh({...t,checks:[],...G(r),entries:i})}});function ih(e,t){return new rh({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...G(t)})}var ah=U(`ZodTransform`,(e,t)=>{tf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lp(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new hl(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Zl(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Zl(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function oh(e){return new ah({type:`transform`,transform:e})}var sh=U(`ZodOptional`,(e,t)=>{rf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ch(e){return new sh({type:`optional`,innerType:e})}var lh=U(`ZodExactOptional`,(e,t)=>{af.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function uh(e){return new lh({type:`optional`,innerType:e})}var dh=U(`ZodNullable`,(e,t)=>{of.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function fh(e){return new dh({type:`nullable`,innerType:e})}var ph=U(`ZodDefault`,(e,t)=>{sf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mh(e,t){return new ph({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nl(t)}})}var hh=U(`ZodPrefault`,(e,t)=>{lf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gh(e,t){return new hh({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Nl(t)}})}var _h=U(`ZodNonOptional`,(e,t)=>{uf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Up(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vh(e,t){return new _h({type:`nonoptional`,innerType:e,...G(t)})}var yh=U(`ZodCatch`,(e,t)=>{ff.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bh(e,t){return new yh({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var xh=U(`ZodPipe`,(e,t)=>{pf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qp(e,t,n,r),e.in=t.in,e.out=t.out});function Sh(e,t){return new xh({type:`pipe`,in:e,out:t})}var Ch=U(`ZodReadonly`,(e,t)=>{hf.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jp(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wh(e){return new Ch({type:`readonly`,innerType:e})}var Th=U(`ZodCustom`,(e,t)=>{_f.init(e,t),vm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ip(e,t,n,r)});function Eh(e,t={}){return xp(Th,e,t)}function Dh(e){return Sp(e)}var Oh=eh([Hm(),xm()]).optional().transform(e=>e===void 0||e===``?void 0:Number(e)).refine(e=>e===void 0||!Number.isNaN(e),{message:`Must be a valid number`});Qm({page:Oh,pageSize:Oh}),Object.freeze({status:`aborted`});function Y(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var kh=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ah=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},jh={};function Mh(e){return e&&Object.assign(jh,e),jh}function Nh(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Ph(e,t){return typeof t==`bigint`?t.toString():t}function Fh(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function Ih(e){return e==null}function Lh(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var Rh=Symbol(`evaluating`);function X(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Rh)return r===void 0&&(r=Rh,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function zh(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Bh(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function Vh(e){return JSON.stringify(e)}function Hh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Uh=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Wh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Gh=Fh(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Kh(e){if(Wh(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Wh(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function qh(e){return Kh(e)?{...e}:Array.isArray(e)?[...e]:e}var Jh=new Set([`string`,`number`,`symbol`]);function Yh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Xh(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Zh(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Qh(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Xh(e,Bh(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return zh(this,`shape`,e),e},checks:[]}))}function $h(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Xh(e,Bh(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return zh(this,`shape`,r),r},checks:[]}))}function eg(e,t){if(!Kh(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Xh(e,Bh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zh(this,`shape`,n),n}}))}function tg(e,t){if(!Kh(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Xh(e,Bh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return zh(this,`shape`,n),n}}))}function ng(e,t){return Xh(e,Bh(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return zh(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function rg(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Xh(t,Bh(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return zh(this,`shape`,i),i},checks:[]}))}function ig(e,t,n){return Xh(t,Bh(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return zh(this,`shape`,i),i}}))}function ag(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function og(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function sg(e){return typeof e==`string`?e:e?.message}function cg(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=sg(e.inst?._zod.def?.error?.(e))??sg(t?.error?.(e))??sg(n.customError?.(e))??sg(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function lg(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function ug(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var dg=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ph,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},fg=Y(`$ZodError`,dg),pg=Y(`$ZodError`,dg,{Parent:Error});function mg(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function hg(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var gg=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new kh;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>cg(e,a,Mh())));throw Uh(t,i?.callee),t}return o.value},_g=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>cg(e,a,Mh())));throw Uh(t,i?.callee),t}return o.value},vg=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new kh;return a.issues.length?{success:!1,error:new(e??fg)(a.issues.map(e=>cg(e,i,Mh())))}:{success:!0,data:a.value}},yg=vg(pg),bg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>cg(e,i,Mh())))}:{success:!0,data:a.value}},xg=bg(pg),Sg=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return gg(e)(t,n,i)},Cg=e=>(t,n,r)=>gg(e)(t,n,r),wg=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return _g(e)(t,n,i)},Tg=e=>async(t,n,r)=>_g(e)(t,n,r),Eg=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return vg(e)(t,n,i)},Dg=e=>(t,n,r)=>vg(e)(t,n,r),Og=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return bg(e)(t,n,i)},kg=e=>async(t,n,r)=>bg(e)(t,n,r),Ag=/^[cC][^\s-]{8,}$/,jg=/^[0-9a-z]+$/,Mg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ng=/^[0-9a-vA-V]{20}$/,Pg=/^[A-Za-z0-9]{27}$/,Fg=/^[a-zA-Z0-9_-]{21}$/,Ig=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Lg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Rg=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Bg=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Vg(){return new RegExp(Bg,`u`)}var Hg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ug=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Wg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Gg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Kg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qg=/^[A-Za-z0-9_-]*$/,Jg=/^\+[1-9]\d{6,14}$/,Yg=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Xg=RegExp(`^${Yg}$`);function Zg(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Qg(e){return RegExp(`^${Zg(e)}$`)}function $g(e){let t=Zg({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Yg}T(?:${r})$`)}var e_=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},t_=/^[^A-Z]*$/,n_=/^[^a-z]*$/,r_=Y(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),i_=Y(`$ZodCheckMaxLength`,(e,t)=>{var n;r_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ih(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=lg(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),a_=Y(`$ZodCheckMinLength`,(e,t)=>{var n;r_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ih(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=lg(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),o_=Y(`$ZodCheckLengthEquals`,(e,t)=>{var n;r_.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ih(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=lg(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),s_=Y(`$ZodCheckStringFormat`,(e,t)=>{var n,r;r_.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),c_=Y(`$ZodCheckRegex`,(e,t)=>{s_.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),l_=Y(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=t_,s_.init(e,t)}),u_=Y(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=n_,s_.init(e,t)}),d_=Y(`$ZodCheckIncludes`,(e,t)=>{r_.init(e,t);let n=Yh(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),f_=Y(`$ZodCheckStartsWith`,(e,t)=>{r_.init(e,t);let n=RegExp(`^${Yh(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),p_=Y(`$ZodCheckEndsWith`,(e,t)=>{r_.init(e,t);let n=RegExp(`.*${Yh(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),m_=Y(`$ZodCheckOverwrite`,(e,t)=>{r_.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),h_=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
46
46
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
47
|
-
`))}},
|
|
47
|
+
`))}},g_={major:4,minor:3,patch:6},__=Y(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=g_;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ag(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new kh;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ag(e,t))});else{if(e.issues.length===t)continue;r||=ag(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ag(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new kh;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new kh;return o.then(e=>t(e,r,a))}return t(o,r,a)}}X(e,`~standard`,()=>({validate:t=>{try{let n=yg(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return xg(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),v_=Y(`$ZodString`,(e,t)=>{__.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??e_(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Q=Y(`$ZodStringFormat`,(e,t)=>{s_.init(e,t),v_.init(e,t)}),y_=Y(`$ZodGUID`,(e,t)=>{t.pattern??=Lg,Q.init(e,t)}),b_=Y(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Rg(e)}else t.pattern??=Rg();Q.init(e,t)}),x_=Y(`$ZodEmail`,(e,t)=>{t.pattern??=zg,Q.init(e,t)}),S_=Y(`$ZodURL`,(e,t)=>{Q.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),C_=Y(`$ZodEmoji`,(e,t)=>{t.pattern??=Vg(),Q.init(e,t)}),w_=Y(`$ZodNanoID`,(e,t)=>{t.pattern??=Fg,Q.init(e,t)}),T_=Y(`$ZodCUID`,(e,t)=>{t.pattern??=Ag,Q.init(e,t)}),E_=Y(`$ZodCUID2`,(e,t)=>{t.pattern??=jg,Q.init(e,t)}),D_=Y(`$ZodULID`,(e,t)=>{t.pattern??=Mg,Q.init(e,t)}),O_=Y(`$ZodXID`,(e,t)=>{t.pattern??=Ng,Q.init(e,t)}),k_=Y(`$ZodKSUID`,(e,t)=>{t.pattern??=Pg,Q.init(e,t)}),A_=Y(`$ZodISODateTime`,(e,t)=>{t.pattern??=$g(t),Q.init(e,t)}),j_=Y(`$ZodISODate`,(e,t)=>{t.pattern??=Xg,Q.init(e,t)}),M_=Y(`$ZodISOTime`,(e,t)=>{t.pattern??=Qg(t),Q.init(e,t)}),N_=Y(`$ZodISODuration`,(e,t)=>{t.pattern??=Ig,Q.init(e,t)}),P_=Y(`$ZodIPv4`,(e,t)=>{t.pattern??=Hg,Q.init(e,t),e._zod.bag.format=`ipv4`}),F_=Y(`$ZodIPv6`,(e,t)=>{t.pattern??=Ug,Q.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),I_=Y(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Wg,Q.init(e,t)}),L_=Y(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Gg,Q.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function R_(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var z_=Y(`$ZodBase64`,(e,t)=>{t.pattern??=Kg,Q.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{R_(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function B_(e){if(!qg.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return R_(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var V_=Y(`$ZodBase64URL`,(e,t)=>{t.pattern??=qg,Q.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{B_(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),H_=Y(`$ZodE164`,(e,t)=>{t.pattern??=Jg,Q.init(e,t)});function U_(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var W_=Y(`$ZodJWT`,(e,t)=>{Q.init(e,t),e._zod.check=n=>{U_(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),G_=Y(`$ZodUnknown`,(e,t)=>{__.init(e,t),e._zod.parse=e=>e}),K_=Y(`$ZodNever`,(e,t)=>{__.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function q_(e,t,n){e.issues.length&&t.issues.push(...og(n,e.issues)),t.value[n]=e.value}var J_=Y(`$ZodArray`,(e,t)=>{__.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>q_(t,n,e))):q_(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Y_(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...og(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function X_(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Zh(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Z_(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Y_(e,n,i,t,u))):Y_(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Q_=Y(`$ZodObject`,(e,t)=>{if(__.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=Fh(()=>X_(t));X(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Wh,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Y_(n,t,e,s,r))):Y_(i,t,e,s,r)}return i?Z_(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),$_=Y(`$ZodObjectJIT`,(e,t)=>{Q_.init(e,t);let n=e._zod.parse,r=Fh(()=>X_(t)),i=e=>{let t=new h_([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Vh(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=Vh(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
|
|
48
48
|
if (${n}.issues.length) {
|
|
49
49
|
if (${o} in input) {
|
|
50
50
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
@@ -78,9 +78,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
78
78
|
newResult[${o}] = ${n}.value;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=qh,s=!Ph.jitless,c=s&&Jh.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?ev([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function rv(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!cg(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>dg(e,r,Fh())))}),t)}var iv=Y(`$ZodUnion`,(e,t)=>{b_.init(e,t),X(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),X(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),X(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),X(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Bh(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>rv(t,i,e,a)):rv(s,i,e,a)}}),av=Y(`$ZodIntersection`,(e,t)=>{b_.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>sv(e,t,n)):sv(e,i,a)}});function ov(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Yh(e)&&Yh(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ov(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ov(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function sv(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),cg(e))return e;let o=ov(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var cv=Y(`$ZodEnum`,(e,t)=>{b_.init(e,t);let n=Ih(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Zh.has(typeof e)).map(e=>typeof e==`string`?Qh(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),lv=Y(`$ZodTransform`,(e,t)=>{b_.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Nh(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Mh;return n.value=i,n}});function uv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var dv=Y(`$ZodOptional`,(e,t)=>{b_.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),X(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Bh(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>uv(t,e.value)):uv(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),fv=Y(`$ZodExactOptional`,(e,t)=>{dv.init(e,t),X(e._zod,`values`,()=>t.innerType._zod.values),X(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),pv=Y(`$ZodNullable`,(e,t)=>{b_.init(e,t),X(e._zod,`optin`,()=>t.innerType._zod.optin),X(e._zod,`optout`,()=>t.innerType._zod.optout),X(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Bh(e.source)}|null)$`):void 0}),X(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),mv=Y(`$ZodDefault`,(e,t)=>{b_.init(e,t),e._zod.optin=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>hv(e,t)):hv(r,t)}});function hv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var gv=Y(`$ZodPrefault`,(e,t)=>{b_.init(e,t),e._zod.optin=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),_v=Y(`$ZodNonOptional`,(e,t)=>{b_.init(e,t),X(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>vv(t,e)):vv(i,e)}});function vv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var yv=Y(`$ZodCatch`,(e,t)=>{b_.init(e,t),X(e._zod,`optin`,()=>t.innerType._zod.optin),X(e._zod,`optout`,()=>t.innerType._zod.optout),X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>dg(e,n,Fh()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>dg(e,n,Fh()))},input:e.value}),e.issues=[]),e)}}),bv=Y(`$ZodPipe`,(e,t)=>{b_.init(e,t),X(e._zod,`values`,()=>t.in._zod.values),X(e._zod,`optin`,()=>t.in._zod.optin),X(e._zod,`optout`,()=>t.out._zod.optout),X(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>xv(e,t.in,n)):xv(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>xv(e,t.out,n)):xv(r,t.out,n)}});function xv(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Sv=Y(`$ZodReadonly`,(e,t)=>{b_.init(e,t),X(e._zod,`propValues`,()=>t.innerType._zod.propValues),X(e._zod,`values`,()=>t.innerType._zod.values),X(e._zod,`optin`,()=>t.innerType?._zod?.optin),X(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Cv):Cv(r)}});function Cv(e){return e.value=Object.freeze(e.value),e}var wv=Y(`$ZodCustom`,(e,t)=>{o_.init(e,t),b_.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Tv(t,n,r,e));Tv(i,n,r,e)}});function Tv(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(pg(e))}}var Ev,Dv=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ov(){return new Dv}(Ev=globalThis).__zod_globalRegistry??(Ev.__zod_globalRegistry=Ov());var kv=globalThis.__zod_globalRegistry;function Av(e,t){return new e({type:`string`,...Z(t)})}function jv(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Z(t)})}function Mv(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Z(t)})}function Nv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Z(t)})}function Pv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Z(t)})}function Fv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Z(t)})}function Iv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Z(t)})}function Lv(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Z(t)})}function Rv(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Z(t)})}function zv(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Z(t)})}function Bv(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Z(t)})}function Vv(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Z(t)})}function Hv(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Z(t)})}function Uv(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Z(t)})}function Wv(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Z(t)})}function Gv(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Z(t)})}function Kv(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Z(t)})}function qv(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Z(t)})}function Jv(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Z(t)})}function Yv(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Z(t)})}function Xv(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Z(t)})}function Zv(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Z(t)})}function Qv(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Z(t)})}function $v(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Z(t)})}function ey(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Z(t)})}function ty(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Z(t)})}function ny(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Z(t)})}function ry(e){return new e({type:`unknown`})}function iy(e,t){return new e({type:`never`,...Z(t)})}function ay(e,t){return new s_({check:`max_length`,...Z(t),maximum:e})}function oy(e,t){return new c_({check:`min_length`,...Z(t),minimum:e})}function sy(e,t){return new l_({check:`length_equals`,...Z(t),length:e})}function cy(e,t){return new d_({check:`string_format`,format:`regex`,...Z(t),pattern:e})}function ly(e){return new f_({check:`string_format`,format:`lowercase`,...Z(e)})}function uy(e){return new p_({check:`string_format`,format:`uppercase`,...Z(e)})}function dy(e,t){return new m_({check:`string_format`,format:`includes`,...Z(t),includes:e})}function fy(e,t){return new h_({check:`string_format`,format:`starts_with`,...Z(t),prefix:e})}function py(e,t){return new g_({check:`string_format`,format:`ends_with`,...Z(t),suffix:e})}function my(e){return new __({check:`overwrite`,tx:e})}function hy(e){return my(t=>t.normalize(e))}function gy(){return my(e=>e.trim())}function _y(){return my(e=>e.toLowerCase())}function vy(){return my(e=>e.toUpperCase())}function yy(){return my(e=>Gh(e))}function by(e,t,n){return new e({type:`array`,element:t,...Z(n)})}function xy(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Z(n)})}function Sy(e){let t=Cy(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(pg(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(pg(r))}},e(n.value,n)));return t}function Cy(e,t){let n=new o_({check:`custom`,...Z(t)});return n._zod.check=e,n}function wy(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??kv,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Ty(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Ty(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Oy(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ey(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
81
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Wh,s=!jh.jitless,c=s&&Gh.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Z_([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function ev(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ag(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>cg(e,r,Mh())))}),t)}var tv=Y(`$ZodUnion`,(e,t)=>{__.init(e,t),X(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),X(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),X(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),X(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Lh(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>ev(t,i,e,a)):ev(s,i,e,a)}}),nv=Y(`$ZodIntersection`,(e,t)=>{__.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>iv(e,t,n)):iv(e,i,a)}});function rv(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Kh(e)&&Kh(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=rv(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=rv(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function iv(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ag(e))return e;let o=rv(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var av=Y(`$ZodEnum`,(e,t)=>{__.init(e,t);let n=Nh(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Jh.has(typeof e)).map(e=>typeof e==`string`?Yh(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ov=Y(`$ZodTransform`,(e,t)=>{__.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ah(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new kh;return n.value=i,n}});function sv(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var cv=Y(`$ZodOptional`,(e,t)=>{__.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),X(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Lh(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>sv(t,e.value)):sv(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),lv=Y(`$ZodExactOptional`,(e,t)=>{cv.init(e,t),X(e._zod,`values`,()=>t.innerType._zod.values),X(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),uv=Y(`$ZodNullable`,(e,t)=>{__.init(e,t),X(e._zod,`optin`,()=>t.innerType._zod.optin),X(e._zod,`optout`,()=>t.innerType._zod.optout),X(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Lh(e.source)}|null)$`):void 0}),X(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),dv=Y(`$ZodDefault`,(e,t)=>{__.init(e,t),e._zod.optin=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>fv(e,t)):fv(r,t)}});function fv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var pv=Y(`$ZodPrefault`,(e,t)=>{__.init(e,t),e._zod.optin=`optional`,X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),mv=Y(`$ZodNonOptional`,(e,t)=>{__.init(e,t),X(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>hv(t,e)):hv(i,e)}});function hv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var gv=Y(`$ZodCatch`,(e,t)=>{__.init(e,t),X(e._zod,`optin`,()=>t.innerType._zod.optin),X(e._zod,`optout`,()=>t.innerType._zod.optout),X(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>cg(e,n,Mh()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>cg(e,n,Mh()))},input:e.value}),e.issues=[]),e)}}),_v=Y(`$ZodPipe`,(e,t)=>{__.init(e,t),X(e._zod,`values`,()=>t.in._zod.values),X(e._zod,`optin`,()=>t.in._zod.optin),X(e._zod,`optout`,()=>t.out._zod.optout),X(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>vv(e,t.in,n)):vv(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>vv(e,t.out,n)):vv(r,t.out,n)}});function vv(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var yv=Y(`$ZodReadonly`,(e,t)=>{__.init(e,t),X(e._zod,`propValues`,()=>t.innerType._zod.propValues),X(e._zod,`values`,()=>t.innerType._zod.values),X(e._zod,`optin`,()=>t.innerType?._zod?.optin),X(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(bv):bv(r)}});function bv(e){return e.value=Object.freeze(e.value),e}var xv=Y(`$ZodCustom`,(e,t)=>{r_.init(e,t),__.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Sv(t,n,r,e));Sv(i,n,r,e)}});function Sv(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ug(e))}}var Cv,wv=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Tv(){return new wv}(Cv=globalThis).__zod_globalRegistry??(Cv.__zod_globalRegistry=Tv());var Ev=globalThis.__zod_globalRegistry;function Dv(e,t){return new e({type:`string`,...Z(t)})}function Ov(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Z(t)})}function kv(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Z(t)})}function Av(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Z(t)})}function jv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Z(t)})}function Mv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Z(t)})}function Nv(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Z(t)})}function Pv(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Z(t)})}function Fv(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Z(t)})}function Iv(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Z(t)})}function Lv(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Z(t)})}function Rv(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Z(t)})}function zv(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Z(t)})}function Bv(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Z(t)})}function Vv(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Z(t)})}function Hv(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Z(t)})}function Uv(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Z(t)})}function Wv(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Z(t)})}function Gv(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Z(t)})}function Kv(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Z(t)})}function qv(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Z(t)})}function Jv(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Z(t)})}function Yv(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Z(t)})}function Xv(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Z(t)})}function Zv(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Z(t)})}function Qv(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Z(t)})}function $v(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Z(t)})}function ey(e){return new e({type:`unknown`})}function ty(e,t){return new e({type:`never`,...Z(t)})}function ny(e,t){return new i_({check:`max_length`,...Z(t),maximum:e})}function ry(e,t){return new a_({check:`min_length`,...Z(t),minimum:e})}function iy(e,t){return new o_({check:`length_equals`,...Z(t),length:e})}function ay(e,t){return new c_({check:`string_format`,format:`regex`,...Z(t),pattern:e})}function oy(e){return new l_({check:`string_format`,format:`lowercase`,...Z(e)})}function sy(e){return new u_({check:`string_format`,format:`uppercase`,...Z(e)})}function cy(e,t){return new d_({check:`string_format`,format:`includes`,...Z(t),includes:e})}function ly(e,t){return new f_({check:`string_format`,format:`starts_with`,...Z(t),prefix:e})}function uy(e,t){return new p_({check:`string_format`,format:`ends_with`,...Z(t),suffix:e})}function dy(e){return new m_({check:`overwrite`,tx:e})}function fy(e){return dy(t=>t.normalize(e))}function py(){return dy(e=>e.trim())}function my(){return dy(e=>e.toLowerCase())}function hy(){return dy(e=>e.toUpperCase())}function gy(){return dy(e=>Hh(e))}function _y(e,t,n){return new e({type:`array`,element:t,...Z(n)})}function vy(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Z(n)})}function yy(e){let t=by(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(ug(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(ug(r))}},e(n.value,n)));return t}function by(e,t){let n=new r_({check:`custom`,...Z(t)});return n._zod.check=e,n}function xy(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Ev,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Sy(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Sy(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Ty(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Cy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
82
82
|
|
|
83
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Dy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Ay(t,`input`,e.processors),output:Ay(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Oy(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Oy(r.element,n);if(r.type===`set`)return Oy(r.valueType,n);if(r.type===`lazy`)return Oy(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Oy(r.innerType,n);if(r.type===`intersection`)return Oy(r.left,n)||Oy(r.right,n);if(r.type===`record`||r.type===`map`)return Oy(r.keyType,n)||Oy(r.valueType,n);if(r.type===`pipe`)return Oy(r.in,n)||Oy(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Oy(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Oy(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Oy(e,n))return!0;return!!(r.rest&&Oy(r.rest,n))}return!1}var ky=(e,t={})=>n=>{let r=wy({...n,processors:t});return Ty(e,r),Ey(r,e),Dy(r,e)},Ay=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wy({...i??{},target:a,io:t,processors:n});return Ty(e,o),Ey(o,e),Dy(o,e)},jy={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},My=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=jy[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Ny=(e,t,n,r)=>{n.not={}},Py=(e,t,n,r)=>{let i=e._zod.def,a=Ih(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Fy=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Iy=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ly=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Ty(a.element,t,{...r,path:[...r.path,`items`]})},Ry=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Ty(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Ty(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},zy=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Ty(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},By=(e,t,n,r)=>{let i=e._zod.def,a=Ty(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Ty(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Vy=(e,t,n,r)=>{let i=e._zod.def,a=Ty(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Hy=(e,t,n,r)=>{let i=e._zod.def;Ty(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Uy=(e,t,n,r)=>{let i=e._zod.def;Ty(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Wy=(e,t,n,r)=>{let i=e._zod.def;Ty(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Gy=(e,t,n,r)=>{let i=e._zod.def;Ty(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Ky=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Ty(a,t,r);let o=t.seen.get(e);o.ref=a},qy=(e,t,n,r)=>{let i=e._zod.def;Ty(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Jy=(e,t,n,r)=>{let i=e._zod.def;Ty(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Yy=Y(`ZodISODateTime`,(e,t)=>{N_.init(e,t),$.init(e,t)});function Xy(e){return $v(Yy,e)}var Zy=Y(`ZodISODate`,(e,t)=>{P_.init(e,t),$.init(e,t)});function Qy(e){return ey(Zy,e)}var $y=Y(`ZodISOTime`,(e,t)=>{F_.init(e,t),$.init(e,t)});function eb(e){return ty($y,e)}var tb=Y(`ZodISODuration`,(e,t)=>{I_.init(e,t),$.init(e,t)});function nb(e){return ny(tb,e)}var rb=(e,t)=>{hg.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>vg(e,t)},flatten:{value:t=>_g(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Lh,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Lh,2)}},isEmpty:{get(){return e.issues.length===0}}})};Y(`ZodError`,rb);var ib=Y(`ZodError`,rb,{Parent:Error}),ab=yg(ib),ob=bg(ib),sb=xg(ib),cb=Cg(ib),lb=Tg(ib),ub=Eg(ib),db=Dg(ib),fb=Og(ib),pb=kg(ib),mb=Ag(ib),hb=jg(ib),gb=Mg(ib),_b=Y(`ZodType`,(e,t)=>(b_.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Ay(e,`input`),output:Ay(e,`output`)}}),e.toJSONSchema=ky(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Uh(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>$h(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ab(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>sb(e,t,n),e.parseAsync=async(t,n)=>ob(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>cb(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>lb(e,t,n),e.decode=(t,n)=>ub(e,t,n),e.encodeAsync=async(t,n)=>db(e,t,n),e.decodeAsync=async(t,n)=>fb(e,t,n),e.safeEncode=(t,n)=>pb(e,t,n),e.safeDecode=(t,n)=>mb(e,t,n),e.safeEncodeAsync=async(t,n)=>hb(e,t,n),e.safeDecodeAsync=async(t,n)=>gb(e,t,n),e.refine=(t,n)=>e.check(xx(t,n)),e.superRefine=t=>e.check(Sx(t)),e.overwrite=t=>e.check(my(t)),e.optional=()=>rx(e),e.exactOptional=()=>ax(e),e.nullable=()=>sx(e),e.nullish=()=>rx(sx(e)),e.nonoptional=t=>px(e,t),e.array=()=>Gb(e),e.or=t=>Yb([e,t]),e.and=t=>Zb(e,t),e.transform=t=>_x(e,tx(t)),e.default=t=>lx(e,t),e.prefault=t=>dx(e,t),e.catch=t=>hx(e,t),e.pipe=t=>_x(e,t),e.readonly=()=>yx(e),e.describe=t=>{let n=e.clone();return kv.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return kv.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return kv.get(e);let n=e.clone();return kv.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),vb=Y(`_ZodString`,(e,t)=>{x_.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>My(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(cy(...t)),e.includes=(...t)=>e.check(dy(...t)),e.startsWith=(...t)=>e.check(fy(...t)),e.endsWith=(...t)=>e.check(py(...t)),e.min=(...t)=>e.check(oy(...t)),e.max=(...t)=>e.check(ay(...t)),e.length=(...t)=>e.check(sy(...t)),e.nonempty=(...t)=>e.check(oy(1,...t)),e.lowercase=t=>e.check(ly(t)),e.uppercase=t=>e.check(uy(t)),e.trim=()=>e.check(gy()),e.normalize=(...t)=>e.check(hy(...t)),e.toLowerCase=()=>e.check(_y()),e.toUpperCase=()=>e.check(vy()),e.slugify=()=>e.check(yy())}),yb=Y(`ZodString`,(e,t)=>{x_.init(e,t),vb.init(e,t),e.email=t=>e.check(jv(xb,t)),e.url=t=>e.check(Lv(wb,t)),e.jwt=t=>e.check(Qv(zb,t)),e.emoji=t=>e.check(Rv(Tb,t)),e.guid=t=>e.check(Mv(Sb,t)),e.uuid=t=>e.check(Nv(Cb,t)),e.uuidv4=t=>e.check(Pv(Cb,t)),e.uuidv6=t=>e.check(Fv(Cb,t)),e.uuidv7=t=>e.check(Iv(Cb,t)),e.nanoid=t=>e.check(zv(Eb,t)),e.guid=t=>e.check(Mv(Sb,t)),e.cuid=t=>e.check(Bv(Db,t)),e.cuid2=t=>e.check(Vv(Ob,t)),e.ulid=t=>e.check(Hv(kb,t)),e.base64=t=>e.check(Yv(Ib,t)),e.base64url=t=>e.check(Xv(Lb,t)),e.xid=t=>e.check(Uv(Ab,t)),e.ksuid=t=>e.check(Wv(jb,t)),e.ipv4=t=>e.check(Gv(Mb,t)),e.ipv6=t=>e.check(Kv(Nb,t)),e.cidrv4=t=>e.check(qv(Pb,t)),e.cidrv6=t=>e.check(Jv(Fb,t)),e.e164=t=>e.check(Zv(Rb,t)),e.datetime=t=>e.check(Xy(t)),e.date=t=>e.check(Qy(t)),e.time=t=>e.check(eb(t)),e.duration=t=>e.check(nb(t))});function bb(e){return Av(yb,e)}var $=Y(`ZodStringFormat`,(e,t)=>{Q.init(e,t),vb.init(e,t)}),xb=Y(`ZodEmail`,(e,t)=>{w_.init(e,t),$.init(e,t)}),Sb=Y(`ZodGUID`,(e,t)=>{S_.init(e,t),$.init(e,t)}),Cb=Y(`ZodUUID`,(e,t)=>{C_.init(e,t),$.init(e,t)}),wb=Y(`ZodURL`,(e,t)=>{T_.init(e,t),$.init(e,t)}),Tb=Y(`ZodEmoji`,(e,t)=>{E_.init(e,t),$.init(e,t)}),Eb=Y(`ZodNanoID`,(e,t)=>{D_.init(e,t),$.init(e,t)}),Db=Y(`ZodCUID`,(e,t)=>{O_.init(e,t),$.init(e,t)}),Ob=Y(`ZodCUID2`,(e,t)=>{k_.init(e,t),$.init(e,t)}),kb=Y(`ZodULID`,(e,t)=>{A_.init(e,t),$.init(e,t)}),Ab=Y(`ZodXID`,(e,t)=>{j_.init(e,t),$.init(e,t)}),jb=Y(`ZodKSUID`,(e,t)=>{M_.init(e,t),$.init(e,t)}),Mb=Y(`ZodIPv4`,(e,t)=>{L_.init(e,t),$.init(e,t)}),Nb=Y(`ZodIPv6`,(e,t)=>{R_.init(e,t),$.init(e,t)}),Pb=Y(`ZodCIDRv4`,(e,t)=>{z_.init(e,t),$.init(e,t)}),Fb=Y(`ZodCIDRv6`,(e,t)=>{B_.init(e,t),$.init(e,t)}),Ib=Y(`ZodBase64`,(e,t)=>{H_.init(e,t),$.init(e,t)}),Lb=Y(`ZodBase64URL`,(e,t)=>{W_.init(e,t),$.init(e,t)}),Rb=Y(`ZodE164`,(e,t)=>{G_.init(e,t),$.init(e,t)}),zb=Y(`ZodJWT`,(e,t)=>{q_.init(e,t),$.init(e,t)}),Bb=Y(`ZodUnknown`,(e,t)=>{J_.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Vb(){return ry(Bb)}var Hb=Y(`ZodNever`,(e,t)=>{Y_.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ny(e,t,n,r)});function Ub(e){return iy(Hb,e)}var Wb=Y(`ZodArray`,(e,t)=>{Z_.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ly(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(oy(t,n)),e.nonempty=t=>e.check(oy(1,t)),e.max=(t,n)=>e.check(ay(t,n)),e.length=(t,n)=>e.check(sy(t,n)),e.unwrap=()=>e.element});function Gb(e,t){return by(Wb,e,t)}var Kb=Y(`ZodObject`,(e,t)=>{nv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ry(e,t,n,r),X(e,`shape`,()=>t.shape),e.keyof=()=>$b(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Vb()}),e.loose=()=>e.clone({...e._zod.def,catchall:Vb()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ub()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>rg(e,t),e.safeExtend=t=>ig(e,t),e.merge=t=>ag(e,t),e.pick=t=>tg(e,t),e.omit=t=>ng(e,t),e.partial=(...t)=>og(nx,e,t[0]),e.required=(...t)=>sg(fx,e,t[0])});function qb(e,t){return new Kb({type:`object`,shape:e??{},...Z(t)})}var Jb=Y(`ZodUnion`,(e,t)=>{iv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zy(e,t,n,r),e.options=t.options});function Yb(e,t){return new Jb({type:`union`,options:e,...Z(t)})}var Xb=Y(`ZodIntersection`,(e,t)=>{av.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>By(e,t,n,r)});function Zb(e,t){return new Xb({type:`intersection`,left:e,right:t})}var Qb=Y(`ZodEnum`,(e,t)=>{cv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Py(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Qb({...t,checks:[],...Z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Qb({...t,checks:[],...Z(r),entries:i})}});function $b(e,t){return new Qb({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Z(t)})}var ex=Y(`ZodTransform`,(e,t)=>{lv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iy(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Nh(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(pg(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(pg(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function tx(e){return new ex({type:`transform`,transform:e})}var nx=Y(`ZodOptional`,(e,t)=>{dv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rx(e){return new nx({type:`optional`,innerType:e})}var ix=Y(`ZodExactOptional`,(e,t)=>{fv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ax(e){return new ix({type:`optional`,innerType:e})}var ox=Y(`ZodNullable`,(e,t)=>{pv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function sx(e){return new ox({type:`nullable`,innerType:e})}var cx=Y(`ZodDefault`,(e,t)=>{mv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lx(e,t){return new cx({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Xh(t)}})}var ux=Y(`ZodPrefault`,(e,t)=>{gv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function dx(e,t){return new ux({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Xh(t)}})}var fx=Y(`ZodNonOptional`,(e,t)=>{_v.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function px(e,t){return new fx({type:`nonoptional`,innerType:e,...Z(t)})}var mx=Y(`ZodCatch`,(e,t)=>{yv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function hx(e,t){return new mx({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var gx=Y(`ZodPipe`,(e,t)=>{bv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ky(e,t,n,r),e.in=t.in,e.out=t.out});function _x(e,t){return new gx({type:`pipe`,in:e,out:t})}var vx=Y(`ZodReadonly`,(e,t)=>{Sv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yx(e){return new vx({type:`readonly`,innerType:e})}var bx=Y(`ZodCustom`,(e,t)=>{wv.init(e,t),_b.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fy(e,t,n,r)});function xx(e,t={}){return xy(bx,e,t)}function Sx(e){return Sy(e)}var Cx=`nestjs-app-config`,wx=Gb($b([`verbose`,`debug`,`log`,`warn`,`error`,`fatal`])).default([`log`]),Tx=qb({APP_PORT:bb().transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:`APP_PORT must be a valid number`}).refine(e=>e>0,{message:`APP_PORT must be a positive number`}),LOGGER_PROVIDER:bb().optional(),LOGGER_LEVELS:bb().optional().default(`verbose,debug,log,warn,error,fatal`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_ORIGIN:bb().default(`*`),CORS_METHODS:bb().default(`GET,POST,PUT,DELETE,PATCH,OPTIONS`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_ALLOWED_HEADERS:bb().default(`Content-Type,Authorization`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_CREDENTIALS:bb().default(`true`).transform(e=>e.toLowerCase()===`true`),CORS_MAX_AGE:bb().default(`3600`).transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:`CORS_MAX_AGE must be a valid number`}),CORE_API_VERSION:bb().default(`latest`),LOG_LEVELS:bb().default(`verbose,debug,log,warn,error,fatal`).transform(e=>{let t=e.split(`,`);return wx.parse(t)})}),Ex=e=>pl.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[(0,pl.registerAs)(e,()=>ml(Tx))]}),Dx=()=>Ex(Cx),Ox=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractHttpAdapter=void 0,e.AbstractHttpAdapter=class{constructor(e){this.instance=e}async init(){}use(...e){return this.instance.use(...e)}get(...e){return this.instance.get(...e)}post(...e){return this.instance.post(...e)}head(...e){return this.instance.head(...e)}delete(...e){return this.instance.delete(...e)}put(...e){return this.instance.put(...e)}patch(...e){return this.instance.patch(...e)}propfind(...e){return this.instance.propfind(...e)}proppatch(...e){return this.instance.proppatch(...e)}mkcol(...e){return this.instance.mkcol(...e)}copy(...e){return this.instance.copy(...e)}move(...e){return this.instance.move(...e)}lock(...e){return this.instance.lock(...e)}unlock(...e){return this.instance.unlock(...e)}all(...e){return this.instance.all(...e)}search(...e){return this.instance.search(...e)}options(...e){return this.instance.options(...e)}listen(e,t,n){return this.instance.listen(e,t,n)}getHttpServer(){return this.httpServer}setHttpServer(e){this.httpServer=e}setInstance(e){this.instance=e}getInstance(){return this.instance}normalizePath(e){return e}setOnRouteTriggered(e){this.onRouteTriggered=e}getOnRouteTriggered(){return this.onRouteTriggered}setOnRequestHook(e){}setOnResponseHook(e){}}})),kx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(Ox(),e)})),Ax=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ApplicationConfig=void 0,e.ApplicationConfig=class{constructor(e=null){this.ioAdapter=e,this.globalPrefix=``,this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(e){this.globalPrefix=e}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(e){this.globalPrefixOptions=e}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(e){this.ioAdapter=e}getIoAdapter(){return this.ioAdapter}addGlobalPipe(e){this.globalPipes.push(e)}useGlobalPipes(...e){this.globalPipes=this.globalPipes.concat(e)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(e){this.globalFilters.push(e)}useGlobalFilters(...e){this.globalFilters=this.globalFilters.concat(e)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(e){this.globalInterceptors.push(e)}useGlobalInterceptors(...e){this.globalInterceptors=this.globalInterceptors.concat(e)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(e){this.globalGuards.push(e)}useGlobalGuards(...e){this.globalGuards=this.globalGuards.concat(e)}addGlobalRequestInterceptor(e){this.globalRequestInterceptors.push(e)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(e){this.globalRequestPipes.push(e)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(e){this.globalRequestFilters.push(e)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(e){this.globalRequestGuards.push(e)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(e){Array.isArray(e.defaultVersion)&&(e.defaultVersion=Array.from(new Set(e.defaultVersion))),this.versioningOptions=e}getVersioning(){return this.versioningOptions}}})),jx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ENHANCER_TOKEN_TO_SUBTYPE_MAP=e.APP_FILTER=e.APP_GUARD=e.APP_PIPE=e.APP_INTERCEPTOR=e.MESSAGES=void 0,e.MESSAGES={APPLICATION_START:`Starting Nest application...`,APPLICATION_READY:`Nest application successfully started`,MICROSERVICE_READY:`Nest microservice successfully started`,UNKNOWN_EXCEPTION_MESSAGE:`Internal server error`,ERROR_DURING_SHUTDOWN:`Error happened during shutdown`,CALL_LISTEN_FIRST:`app.listen() needs to be called before calling app.getUrl()`},e.APP_INTERCEPTOR=`APP_INTERCEPTOR`,e.APP_PIPE=`APP_PIPE`,e.APP_GUARD=`APP_GUARD`,e.APP_FILTER=`APP_FILTER`,e.ENHANCER_TOKEN_TO_SUBTYPE_MAP={[e.APP_GUARD]:`guard`,[e.APP_INTERCEPTOR]:`interceptor`,[e.APP_PIPE]:`pipe`,[e.APP_FILTER]:`filter`}})),Mx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MetadataScanner=void 0;var t=M();e.MetadataScanner=class{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(e,n,r){if(!n)return[];let i=new Map,a=[];do for(let e of Object.getOwnPropertyNames(n)){if(i.has(e))continue;i.set(e,!0);let o=Object.getOwnPropertyDescriptor(n,e);if(o.set||o.get||(0,t.isConstructor)(e)||!(0,t.isFunction)(n[e]))continue;let s=r(e);(0,t.isNil)(s)||a.push(s)}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype);return a}*getAllFilteredMethodNames(e){yield*this.getAllMethodNames(e)}getAllMethodNames(e){if(!e)return[];if(this.cachedScannedPrototypes.has(e))return this.cachedScannedPrototypes.get(e);let n=new Map,r=[];this.cachedScannedPrototypes.set(e,r);do for(let i of Object.getOwnPropertyNames(e)){if(n.has(i))continue;n.set(i,!0);let a=Object.getOwnPropertyDescriptor(e,i);a.set||a.get||(0,t.isConstructor)(i)||!(0,t.isFunction)(e[i])||r.push(i)}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return r}}})),Nx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModulesContainer=void 0;var t=Kc(),n=P();e.ModulesContainer=class extends Map{constructor(){super(...arguments),this._applicationId=(0,n.uid)(21),this._rpcTargetRegistry$=new t.ReplaySubject}get applicationId(){return this._applicationId}getById(e){return Array.from(this.values()).find(t=>t.id===e)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(e){this._rpcTargetRegistry$.next(e)}}})),Px=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoverableMetaHostCollection=void 0;var t=class e{static addClassMetaHostLink(e,t){this.metaHostLinks.set(e,t)}static inspectProvider(e,t){return this.inspectInstanceWrapper(e,t,this.providersByMetaKey)}static inspectController(e,t){return this.inspectInstanceWrapper(e,t,this.controllersByMetaKey)}static insertByMetaKey(e,t,n){if(n.has(e))n.get(e).add(t);else{let r=new Set;r.add(t),n.set(e,r)}}static getProvidersByMetaKey(e,t){return this.providersByMetaKey.get(e)?.get(t)??new Set}static getControllersByMetaKey(e,t){return this.controllersByMetaKey.get(e)?.get(t)??new Set}static inspectInstanceWrapper(t,n,r){let i=e.getMetaKeyByInstanceWrapper(n);if(!i)return;let a;r.has(t)?a=r.get(t):(a=new Map,r.set(t,a)),this.insertByMetaKey(i,n,a)}static getMetaKeyByInstanceWrapper(e){return this.metaHostLinks.get(e.metatype||e.inject?e.instance?.constructor??e.metatype:e.metatype)}};e.DiscoverableMetaHostCollection=t,t.metaHostLinks=new Map,t.providersByMetaKey=new WeakMap,t.controllersByMetaKey=new WeakMap})),Fx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoveryService=void 0;var t=k(),n=U(),r=P(),i=Nx(),a=Px(),o=class{constructor(e){this.modulesContainer=e}static createDecorator(){let e=(0,r.uid)(21),t=t=>(r,i,o)=>{o||a.DiscoverableMetaHostCollection.addClassMetaHostLink(r,e),(0,n.SetMetadata)(e,t??{})(r,i,o)};return t.KEY=e,t}getProviders(e={},t=this.getModules(e)){if(`metadataKey`in e){let t=a.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,e.metadataKey);return Array.from(t)}let r=t.map(e=>[...e.providers.values()]);return(0,n.flatten)(r)}getControllers(e={},t=this.getModules(e)){if(`metadataKey`in e){let t=a.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,e.metadataKey);return Array.from(t)}let r=t.map(e=>[...e.controllers.values()]);return(0,n.flatten)(r)}getMetadataByDecorator(e,t,n){if(n)return Reflect.getMetadata(e.KEY,t.instance[n]);let r=t.instance?.constructor??t.metatype;return Reflect.getMetadata(e.KEY,r)}getModules(e={}){return`include`in e?this.includeWhitelisted(e.include):[...this.modulesContainer.values()]}includeWhitelisted(e){return[...this.modulesContainer.values()].filter(({metatype:t})=>e.some(e=>e===t))}};e.DiscoveryService=o,e.DiscoveryService=o=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[i.ModulesContainer])],o)})),Ix=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoveryModule=void 0;var t=k(),n=U(),r=Mx(),i=Fx(),a=class{};e.DiscoveryModule=a,e.DiscoveryModule=a=t.__decorate([(0,n.Module)({providers:[r.MetadataScanner,i.DiscoveryService],exports:[r.MetadataScanner,i.DiscoveryService]})],a)})),Lx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Ix(),e),t.__exportStar(Fx(),e)})),Rx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpAdapterHost=void 0;var t=Kc();e.HttpAdapterHost=class{constructor(){this._listen$=new t.Subject,this._init$=new t.ReplaySubject,this.isListening=!1}set httpAdapter(e){this._httpAdapter=e,this._init$.next(),this._init$.complete()}get httpAdapter(){return this._httpAdapter}get listen$(){return this._listen$.asObservable()}get init$(){return this._init$.asObservable()}set listening(e){this.isListening=e,e&&(this._listen$.next(),this._listen$.complete())}get listening(){return this.isListening}}})),zx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseExceptionFilter=void 0;var t=k(),n=U(),r=M(),i=jx(),a=Rx(),o=class e{constructor(e){this.applicationRef=e}catch(e,t){let i=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(e instanceof n.HttpException))return this.handleUnknownError(e,t,i);let a=e.getResponse(),o=(0,r.isObject)(a)?a:{statusCode:e.getStatus(),message:a},s=t.getArgByIndex(1);i.isHeadersSent(s)?i.end(s):i.reply(s,o,e.getStatus())}handleUnknownError(t,r,a){let o=this.isHttpError(t)?{statusCode:t.statusCode,message:t.message}:{statusCode:n.HttpStatus.INTERNAL_SERVER_ERROR,message:i.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE},s=r.getArgByIndex(1);a.isHeadersSent(s)?a.end(s):a.reply(s,o,o.statusCode),t instanceof n.IntrinsicException||e.logger.error(t)}isExceptionObject(e){return(0,r.isObject)(e)&&!!e.message}isHttpError(e){return e?.statusCode&&e?.message}};e.BaseExceptionFilter=o,o.logger=new n.Logger(`ExceptionsHandler`),t.__decorate([(0,n.Optional)(),(0,n.Inject)(),t.__metadata(`design:type`,a.HttpAdapterHost)],o.prototype,`httpAdapterHost`,void 0)})),Bx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(zx(),e)})),Vx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REQUEST_CONTEXT_ID=e.REQUEST=void 0,e.REQUEST=`REQUEST`,e.REQUEST_CONTEXT_ID=Symbol(`REQUEST_CONTEXT_ID`)})),Hx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextIdFactory=void 0,e.createContextId=r;var t=M(),n=Vx();function r(){return{id:Math.random()}}e.ContextIdFactory=class e{static create(){return r()}static getByRequest(t,i=[`raw`]){if(!t)return e.create();if(t[n.REQUEST_CONTEXT_ID])return t[n.REQUEST_CONTEXT_ID];for(let e of i)if(t[e]?.[n.REQUEST_CONTEXT_ID])return t[e][n.REQUEST_CONTEXT_ID];if(!this.strategy)return e.create();let a=r(),o=this.strategy.attach(a,t);return this.isContextIdResolverWithPayload(o)?(a.getParent=o.resolve,a.payload=o.payload):a.getParent=o,a}static apply(e){this.strategy=e}static isContextIdResolverWithPayload(e){return(0,t.isObject)(e)}}})),Ux=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.STATIC_CONTEXT=e.CONTROLLER_ID_KEY=void 0,e.CONTROLLER_ID_KEY=`CONTROLLER_ID`,e.STATIC_CONTEXT=Object.freeze({id:1})})),Wx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextCreator=void 0;var t=Ux();e.ContextCreator=class{createContext(e,n,r,i=t.STATIC_CONTEXT,a){let o=this.getGlobalMetadata&&this.getGlobalMetadata(i,a),s=this.reflectClassMetadata(e,r),c=this.reflectMethodMetadata(n,r);return[...this.createConcreteContext(o||[],i,a),...this.createConcreteContext(s,i,a),...this.createConcreteContext(c,i,a)]}reflectClassMetadata(e,t){let n=Object.getPrototypeOf(e);return Reflect.getMetadata(t,n.constructor)}reflectMethodMetadata(e,t){return Reflect.getMetadata(t,e)}getContextId(e,t){return e.getParent?e.getParent({token:t.token,isTreeDurable:t.isDependencyTreeDurable()}):e}}})),Gx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseExceptionFilterContext=void 0;var t=j(),n=M(),r=L(),i=Wx(),a=Ux();e.BaseExceptionFilterContext=class extends i.ContextCreator{constructor(e){super(),this.container=e}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&((0,n.isFunction)(e.catch)||e.name)).map(e=>this.getFilterInstance(e,t,i)).filter(e=>!!e).map(e=>({func:e.catch.bind(e),exceptionMetatypes:this.reflectCatchExceptions(e)})).toArray()}getFilterInstance(e,t=a.STATIC_CONTEXT,n){if(e.catch)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}reflectCatchExceptions(e){let n=Object.getPrototypeOf(e);return Reflect.getMetadata(t.FILTER_CATCH_EXCEPTIONS,n.constructor)||[]}}})),Kx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectExceptionFilterMetadata=void 0,e.selectExceptionFilterMetadata=(e,t)=>e.find(({exceptionMetatypes:e})=>!e.length||e.some(e=>t instanceof e))})),qx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RuntimeException=void 0,e.RuntimeException=class extends Error{constructor(e=``){super(e)}what(){return this.message}}})),Jx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=e.INVALID_EXCEPTION_FILTER=e.UNHANDLED_RUNTIME_EXCEPTION=e.INVALID_MIDDLEWARE_CONFIGURATION=e.UNKNOWN_REQUEST_MAPPING=e.INVALID_CLASS_SCOPE_MESSAGE=e.INVALID_CLASS_MESSAGE=e.UNKNOWN_EXPORT_MESSAGE=e.UNDEFINED_MODULE_MESSAGE=e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=e.INVALID_MODULE_MESSAGE=e.UNDEFINED_FORWARDREF_MESSAGE=e.INVALID_MIDDLEWARE_MESSAGE=e.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;var t=M(),n=e=>e?.forwardRef?e.forwardRef()?.name:e?.module?e.module?.name:e?.name,r=(e,r,i=!0)=>n(e)||(0,t.isSymbol)(e)&&e.toString()||(e?i?`"${e}"`:e:void 0)||r,i=e=>e&&n(e.metatype)||`current`,a=e=>(e||[]).map(n).join(` -> `);e.UNKNOWN_DEPENDENCIES_MESSAGE=(e,n,a)=>{let{index:o,name:s,dependencies:c,key:l}=n,u=i(a),d=r(s,`dependency`),f=!(0,t.isNil)(o)&&c&&(c[o]===void 0||c[o]===Object||typeof c[o]==`function`&&c[o].name===`Object`),p;p=f?`\n
|
|
83
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function wy(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Dy(t,`input`,e.processors),output:Dy(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Ty(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Ty(r.element,n);if(r.type===`set`)return Ty(r.valueType,n);if(r.type===`lazy`)return Ty(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return Ty(r.innerType,n);if(r.type===`intersection`)return Ty(r.left,n)||Ty(r.right,n);if(r.type===`record`||r.type===`map`)return Ty(r.keyType,n)||Ty(r.valueType,n);if(r.type===`pipe`)return Ty(r.in,n)||Ty(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Ty(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Ty(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Ty(e,n))return!0;return!!(r.rest&&Ty(r.rest,n))}return!1}var Ey=(e,t={})=>n=>{let r=xy({...n,processors:t});return Sy(e,r),Cy(r,e),wy(r,e)},Dy=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=xy({...i??{},target:a,io:t,processors:n});return Sy(e,o),Cy(o,e),wy(o,e)},Oy={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ky=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Oy[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Ay=(e,t,n,r)=>{n.not={}},jy=(e,t,n,r)=>{let i=e._zod.def,a=Nh(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},My=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Ny=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Py=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Sy(a.element,t,{...r,path:[...r.path,`items`]})},Fy=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Sy(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Sy(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Iy=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Sy(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Ly=(e,t,n,r)=>{let i=e._zod.def,a=Sy(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Sy(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Ry=(e,t,n,r)=>{let i=e._zod.def,a=Sy(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},zy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},By=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Vy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Hy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Uy=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;Sy(a,t,r);let o=t.seen.get(e);o.ref=a},Wy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Gy=(e,t,n,r)=>{let i=e._zod.def;Sy(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ky=Y(`ZodISODateTime`,(e,t)=>{A_.init(e,t),$.init(e,t)});function qy(e){return Xv(Ky,e)}var Jy=Y(`ZodISODate`,(e,t)=>{j_.init(e,t),$.init(e,t)});function Yy(e){return Zv(Jy,e)}var Xy=Y(`ZodISOTime`,(e,t)=>{M_.init(e,t),$.init(e,t)});function Zy(e){return Qv(Xy,e)}var Qy=Y(`ZodISODuration`,(e,t)=>{N_.init(e,t),$.init(e,t)});function $y(e){return $v(Qy,e)}var eb=(e,t)=>{fg.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>hg(e,t)},flatten:{value:t=>mg(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ph,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ph,2)}},isEmpty:{get(){return e.issues.length===0}}})};Y(`ZodError`,eb);var tb=Y(`ZodError`,eb,{Parent:Error}),nb=gg(tb),rb=_g(tb),ib=vg(tb),ab=bg(tb),ob=Sg(tb),sb=Cg(tb),cb=wg(tb),lb=Tg(tb),ub=Eg(tb),db=Dg(tb),fb=Og(tb),pb=kg(tb),mb=Y(`ZodType`,(e,t)=>(__.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Dy(e,`input`),output:Dy(e,`output`)}}),e.toJSONSchema=Ey(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Bh(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>Xh(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>nb(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ib(e,t,n),e.parseAsync=async(t,n)=>rb(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ab(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ob(e,t,n),e.decode=(t,n)=>sb(e,t,n),e.encodeAsync=async(t,n)=>cb(e,t,n),e.decodeAsync=async(t,n)=>lb(e,t,n),e.safeEncode=(t,n)=>ub(e,t,n),e.safeDecode=(t,n)=>db(e,t,n),e.safeEncodeAsync=async(t,n)=>fb(e,t,n),e.safeDecodeAsync=async(t,n)=>pb(e,t,n),e.refine=(t,n)=>e.check(vx(t,n)),e.superRefine=t=>e.check(yx(t)),e.overwrite=t=>e.check(dy(t)),e.optional=()=>ex(e),e.exactOptional=()=>nx(e),e.nullable=()=>ix(e),e.nullish=()=>ex(ix(e)),e.nonoptional=t=>ux(e,t),e.array=()=>Hb(e),e.or=t=>Kb([e,t]),e.and=t=>Jb(e,t),e.transform=t=>mx(e,Qb(t)),e.default=t=>ox(e,t),e.prefault=t=>cx(e,t),e.catch=t=>fx(e,t),e.pipe=t=>mx(e,t),e.readonly=()=>gx(e),e.describe=t=>{let n=e.clone();return Ev.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Ev.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Ev.get(e);let n=e.clone();return Ev.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),hb=Y(`_ZodString`,(e,t)=>{v_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ky(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ay(...t)),e.includes=(...t)=>e.check(cy(...t)),e.startsWith=(...t)=>e.check(ly(...t)),e.endsWith=(...t)=>e.check(uy(...t)),e.min=(...t)=>e.check(ry(...t)),e.max=(...t)=>e.check(ny(...t)),e.length=(...t)=>e.check(iy(...t)),e.nonempty=(...t)=>e.check(ry(1,...t)),e.lowercase=t=>e.check(oy(t)),e.uppercase=t=>e.check(sy(t)),e.trim=()=>e.check(py()),e.normalize=(...t)=>e.check(fy(...t)),e.toLowerCase=()=>e.check(my()),e.toUpperCase=()=>e.check(hy()),e.slugify=()=>e.check(gy())}),gb=Y(`ZodString`,(e,t)=>{v_.init(e,t),hb.init(e,t),e.email=t=>e.check(Ov(vb,t)),e.url=t=>e.check(Pv(xb,t)),e.jwt=t=>e.check(Yv(Ib,t)),e.emoji=t=>e.check(Fv(Sb,t)),e.guid=t=>e.check(kv(yb,t)),e.uuid=t=>e.check(Av(bb,t)),e.uuidv4=t=>e.check(jv(bb,t)),e.uuidv6=t=>e.check(Mv(bb,t)),e.uuidv7=t=>e.check(Nv(bb,t)),e.nanoid=t=>e.check(Iv(Cb,t)),e.guid=t=>e.check(kv(yb,t)),e.cuid=t=>e.check(Lv(wb,t)),e.cuid2=t=>e.check(Rv(Tb,t)),e.ulid=t=>e.check(zv(Eb,t)),e.base64=t=>e.check(Kv(Nb,t)),e.base64url=t=>e.check(qv(Pb,t)),e.xid=t=>e.check(Bv(Db,t)),e.ksuid=t=>e.check(Vv(Ob,t)),e.ipv4=t=>e.check(Hv(kb,t)),e.ipv6=t=>e.check(Uv(Ab,t)),e.cidrv4=t=>e.check(Wv(jb,t)),e.cidrv6=t=>e.check(Gv(Mb,t)),e.e164=t=>e.check(Jv(Fb,t)),e.datetime=t=>e.check(qy(t)),e.date=t=>e.check(Yy(t)),e.time=t=>e.check(Zy(t)),e.duration=t=>e.check($y(t))});function _b(e){return Dv(gb,e)}var $=Y(`ZodStringFormat`,(e,t)=>{Q.init(e,t),hb.init(e,t)}),vb=Y(`ZodEmail`,(e,t)=>{x_.init(e,t),$.init(e,t)}),yb=Y(`ZodGUID`,(e,t)=>{y_.init(e,t),$.init(e,t)}),bb=Y(`ZodUUID`,(e,t)=>{b_.init(e,t),$.init(e,t)}),xb=Y(`ZodURL`,(e,t)=>{S_.init(e,t),$.init(e,t)}),Sb=Y(`ZodEmoji`,(e,t)=>{C_.init(e,t),$.init(e,t)}),Cb=Y(`ZodNanoID`,(e,t)=>{w_.init(e,t),$.init(e,t)}),wb=Y(`ZodCUID`,(e,t)=>{T_.init(e,t),$.init(e,t)}),Tb=Y(`ZodCUID2`,(e,t)=>{E_.init(e,t),$.init(e,t)}),Eb=Y(`ZodULID`,(e,t)=>{D_.init(e,t),$.init(e,t)}),Db=Y(`ZodXID`,(e,t)=>{O_.init(e,t),$.init(e,t)}),Ob=Y(`ZodKSUID`,(e,t)=>{k_.init(e,t),$.init(e,t)}),kb=Y(`ZodIPv4`,(e,t)=>{P_.init(e,t),$.init(e,t)}),Ab=Y(`ZodIPv6`,(e,t)=>{F_.init(e,t),$.init(e,t)}),jb=Y(`ZodCIDRv4`,(e,t)=>{I_.init(e,t),$.init(e,t)}),Mb=Y(`ZodCIDRv6`,(e,t)=>{L_.init(e,t),$.init(e,t)}),Nb=Y(`ZodBase64`,(e,t)=>{z_.init(e,t),$.init(e,t)}),Pb=Y(`ZodBase64URL`,(e,t)=>{V_.init(e,t),$.init(e,t)}),Fb=Y(`ZodE164`,(e,t)=>{H_.init(e,t),$.init(e,t)}),Ib=Y(`ZodJWT`,(e,t)=>{W_.init(e,t),$.init(e,t)}),Lb=Y(`ZodUnknown`,(e,t)=>{G_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Rb(){return ey(Lb)}var zb=Y(`ZodNever`,(e,t)=>{K_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ay(e,t,n,r)});function Bb(e){return ty(zb,e)}var Vb=Y(`ZodArray`,(e,t)=>{J_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Py(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(ry(t,n)),e.nonempty=t=>e.check(ry(1,t)),e.max=(t,n)=>e.check(ny(t,n)),e.length=(t,n)=>e.check(iy(t,n)),e.unwrap=()=>e.element});function Hb(e,t){return _y(Vb,e,t)}var Ub=Y(`ZodObject`,(e,t)=>{$_.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fy(e,t,n,r),X(e,`shape`,()=>t.shape),e.keyof=()=>Xb(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Rb()}),e.loose=()=>e.clone({...e._zod.def,catchall:Rb()}),e.strict=()=>e.clone({...e._zod.def,catchall:Bb()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>eg(e,t),e.safeExtend=t=>tg(e,t),e.merge=t=>ng(e,t),e.pick=t=>Qh(e,t),e.omit=t=>$h(e,t),e.partial=(...t)=>rg($b,e,t[0]),e.required=(...t)=>ig(lx,e,t[0])});function Wb(e,t){return new Ub({type:`object`,shape:e??{},...Z(t)})}var Gb=Y(`ZodUnion`,(e,t)=>{tv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Iy(e,t,n,r),e.options=t.options});function Kb(e,t){return new Gb({type:`union`,options:e,...Z(t)})}var qb=Y(`ZodIntersection`,(e,t)=>{nv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ly(e,t,n,r)});function Jb(e,t){return new qb({type:`intersection`,left:e,right:t})}var Yb=Y(`ZodEnum`,(e,t)=>{av.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jy(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Yb({...t,checks:[],...Z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Yb({...t,checks:[],...Z(r),entries:i})}});function Xb(e,t){return new Yb({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Z(t)})}var Zb=Y(`ZodTransform`,(e,t)=>{ov.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ny(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ah(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ug(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ug(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Qb(e){return new Zb({type:`transform`,transform:e})}var $b=Y(`ZodOptional`,(e,t)=>{cv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ex(e){return new $b({type:`optional`,innerType:e})}var tx=Y(`ZodExactOptional`,(e,t)=>{lv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nx(e){return new tx({type:`optional`,innerType:e})}var rx=Y(`ZodNullable`,(e,t)=>{uv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ry(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ix(e){return new rx({type:`nullable`,innerType:e})}var ax=Y(`ZodDefault`,(e,t)=>{dv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>By(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ox(e,t){return new ax({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():qh(t)}})}var sx=Y(`ZodPrefault`,(e,t)=>{pv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cx(e,t){return new sx({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():qh(t)}})}var lx=Y(`ZodNonOptional`,(e,t)=>{mv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ux(e,t){return new lx({type:`nonoptional`,innerType:e,...Z(t)})}var dx=Y(`ZodCatch`,(e,t)=>{gv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fx(e,t){return new dx({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var px=Y(`ZodPipe`,(e,t)=>{_v.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uy(e,t,n,r),e.in=t.in,e.out=t.out});function mx(e,t){return new px({type:`pipe`,in:e,out:t})}var hx=Y(`ZodReadonly`,(e,t)=>{yv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wy(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gx(e){return new hx({type:`readonly`,innerType:e})}var _x=Y(`ZodCustom`,(e,t)=>{xv.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(t,n,r)=>My(e,t,n,r)});function vx(e,t={}){return vy(_x,e,t)}function yx(e){return yy(e)}var bx=`nestjs-app-config`,xx=Hb(Xb([`verbose`,`debug`,`log`,`warn`,`error`,`fatal`])).default([`log`]),Sx=Wb({APP_PORT:_b().transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:`APP_PORT must be a valid number`}).refine(e=>e>0,{message:`APP_PORT must be a positive number`}),LOGGER_PROVIDER:_b().optional(),LOGGER_LEVELS:_b().optional().default(`verbose,debug,log,warn,error,fatal`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_ORIGIN:_b().default(`*`),CORS_METHODS:_b().default(`GET,POST,PUT,DELETE,PATCH,OPTIONS`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_ALLOWED_HEADERS:_b().default(`Content-Type,Authorization`).transform(e=>e.split(`,`).map(e=>e.trim())),CORS_CREDENTIALS:_b().default(`true`).transform(e=>e.toLowerCase()===`true`),CORS_MAX_AGE:_b().default(`3600`).transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:`CORS_MAX_AGE must be a valid number`}),CORE_API_VERSION:_b().default(`latest`),LOG_LEVELS:_b().default(`verbose,debug,log,warn,error,fatal`).transform(e=>{let t=e.split(`,`);return xx.parse(t)})}),Cx=e=>dl.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[(0,dl.registerAs)(e,()=>fl(Sx))]}),wx=()=>Cx(bx),Tx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractHttpAdapter=void 0,e.AbstractHttpAdapter=class{constructor(e){this.instance=e}async init(){}use(...e){return this.instance.use(...e)}get(...e){return this.instance.get(...e)}post(...e){return this.instance.post(...e)}head(...e){return this.instance.head(...e)}delete(...e){return this.instance.delete(...e)}put(...e){return this.instance.put(...e)}patch(...e){return this.instance.patch(...e)}propfind(...e){return this.instance.propfind(...e)}proppatch(...e){return this.instance.proppatch(...e)}mkcol(...e){return this.instance.mkcol(...e)}copy(...e){return this.instance.copy(...e)}move(...e){return this.instance.move(...e)}lock(...e){return this.instance.lock(...e)}unlock(...e){return this.instance.unlock(...e)}all(...e){return this.instance.all(...e)}search(...e){return this.instance.search(...e)}options(...e){return this.instance.options(...e)}listen(e,t,n){return this.instance.listen(e,t,n)}getHttpServer(){return this.httpServer}setHttpServer(e){this.httpServer=e}setInstance(e){this.instance=e}getInstance(){return this.instance}normalizePath(e){return e}setOnRouteTriggered(e){this.onRouteTriggered=e}getOnRouteTriggered(){return this.onRouteTriggered}setOnRequestHook(e){}setOnResponseHook(e){}}})),Ex=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(Tx(),e)})),Dx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ApplicationConfig=void 0,e.ApplicationConfig=class{constructor(e=null){this.ioAdapter=e,this.globalPrefix=``,this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(e){this.globalPrefix=e}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(e){this.globalPrefixOptions=e}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(e){this.ioAdapter=e}getIoAdapter(){return this.ioAdapter}addGlobalPipe(e){this.globalPipes.push(e)}useGlobalPipes(...e){this.globalPipes=this.globalPipes.concat(e)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(e){this.globalFilters.push(e)}useGlobalFilters(...e){this.globalFilters=this.globalFilters.concat(e)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(e){this.globalInterceptors.push(e)}useGlobalInterceptors(...e){this.globalInterceptors=this.globalInterceptors.concat(e)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(e){this.globalGuards.push(e)}useGlobalGuards(...e){this.globalGuards=this.globalGuards.concat(e)}addGlobalRequestInterceptor(e){this.globalRequestInterceptors.push(e)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(e){this.globalRequestPipes.push(e)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(e){this.globalRequestFilters.push(e)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(e){this.globalRequestGuards.push(e)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(e){Array.isArray(e.defaultVersion)&&(e.defaultVersion=Array.from(new Set(e.defaultVersion))),this.versioningOptions=e}getVersioning(){return this.versioningOptions}}})),Ox=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ENHANCER_TOKEN_TO_SUBTYPE_MAP=e.APP_FILTER=e.APP_GUARD=e.APP_PIPE=e.APP_INTERCEPTOR=e.MESSAGES=void 0,e.MESSAGES={APPLICATION_START:`Starting Nest application...`,APPLICATION_READY:`Nest application successfully started`,MICROSERVICE_READY:`Nest microservice successfully started`,UNKNOWN_EXCEPTION_MESSAGE:`Internal server error`,ERROR_DURING_SHUTDOWN:`Error happened during shutdown`,CALL_LISTEN_FIRST:`app.listen() needs to be called before calling app.getUrl()`},e.APP_INTERCEPTOR=`APP_INTERCEPTOR`,e.APP_PIPE=`APP_PIPE`,e.APP_GUARD=`APP_GUARD`,e.APP_FILTER=`APP_FILTER`,e.ENHANCER_TOKEN_TO_SUBTYPE_MAP={[e.APP_GUARD]:`guard`,[e.APP_INTERCEPTOR]:`interceptor`,[e.APP_PIPE]:`pipe`,[e.APP_FILTER]:`filter`}})),kx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MetadataScanner=void 0;var t=A();e.MetadataScanner=class{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(e,n,r){if(!n)return[];let i=new Map,a=[];do for(let e of Object.getOwnPropertyNames(n)){if(i.has(e))continue;i.set(e,!0);let o=Object.getOwnPropertyDescriptor(n,e);if(o.set||o.get||(0,t.isConstructor)(e)||!(0,t.isFunction)(n[e]))continue;let s=r(e);(0,t.isNil)(s)||a.push(s)}while((n=Reflect.getPrototypeOf(n))&&n!==Object.prototype);return a}*getAllFilteredMethodNames(e){yield*this.getAllMethodNames(e)}getAllMethodNames(e){if(!e)return[];if(this.cachedScannedPrototypes.has(e))return this.cachedScannedPrototypes.get(e);let n=new Map,r=[];this.cachedScannedPrototypes.set(e,r);do for(let i of Object.getOwnPropertyNames(e)){if(n.has(i))continue;n.set(i,!0);let a=Object.getOwnPropertyDescriptor(e,i);a.set||a.get||(0,t.isConstructor)(i)||!(0,t.isFunction)(e[i])||r.push(i)}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return r}}})),Ax=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModulesContainer=void 0;var t=Wc(),n=M();e.ModulesContainer=class extends Map{constructor(){super(...arguments),this._applicationId=(0,n.uid)(21),this._rpcTargetRegistry$=new t.ReplaySubject}get applicationId(){return this._applicationId}getById(e){return Array.from(this.values()).find(t=>t.id===e)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(e){this._rpcTargetRegistry$.next(e)}}})),jx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoverableMetaHostCollection=void 0;var t=class e{static addClassMetaHostLink(e,t){this.metaHostLinks.set(e,t)}static inspectProvider(e,t){return this.inspectInstanceWrapper(e,t,this.providersByMetaKey)}static inspectController(e,t){return this.inspectInstanceWrapper(e,t,this.controllersByMetaKey)}static insertByMetaKey(e,t,n){if(n.has(e))n.get(e).add(t);else{let r=new Set;r.add(t),n.set(e,r)}}static getProvidersByMetaKey(e,t){return this.providersByMetaKey.get(e)?.get(t)??new Set}static getControllersByMetaKey(e,t){return this.controllersByMetaKey.get(e)?.get(t)??new Set}static inspectInstanceWrapper(t,n,r){let i=e.getMetaKeyByInstanceWrapper(n);if(!i)return;let a;r.has(t)?a=r.get(t):(a=new Map,r.set(t,a)),this.insertByMetaKey(i,n,a)}static getMetaKeyByInstanceWrapper(e){return this.metaHostLinks.get(e.metatype||e.inject?e.instance?.constructor??e.metatype:e.metatype)}};e.DiscoverableMetaHostCollection=t,t.metaHostLinks=new Map,t.providersByMetaKey=new WeakMap,t.controllersByMetaKey=new WeakMap})),Mx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoveryService=void 0;var t=E(),n=H(),r=M(),i=Ax(),a=jx(),o=class{constructor(e){this.modulesContainer=e}static createDecorator(){let e=(0,r.uid)(21),t=t=>(r,i,o)=>{o||a.DiscoverableMetaHostCollection.addClassMetaHostLink(r,e),(0,n.SetMetadata)(e,t??{})(r,i,o)};return t.KEY=e,t}getProviders(e={},t=this.getModules(e)){if(`metadataKey`in e){let t=a.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,e.metadataKey);return Array.from(t)}let r=t.map(e=>[...e.providers.values()]);return(0,n.flatten)(r)}getControllers(e={},t=this.getModules(e)){if(`metadataKey`in e){let t=a.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,e.metadataKey);return Array.from(t)}let r=t.map(e=>[...e.controllers.values()]);return(0,n.flatten)(r)}getMetadataByDecorator(e,t,n){if(n)return Reflect.getMetadata(e.KEY,t.instance[n]);let r=t.instance?.constructor??t.metatype;return Reflect.getMetadata(e.KEY,r)}getModules(e={}){return`include`in e?this.includeWhitelisted(e.include):[...this.modulesContainer.values()]}includeWhitelisted(e){return[...this.modulesContainer.values()].filter(({metatype:t})=>e.some(e=>e===t))}};e.DiscoveryService=o,e.DiscoveryService=o=t.__decorate([(0,n.Injectable)(),t.__metadata(`design:paramtypes`,[i.ModulesContainer])],o)})),Nx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscoveryModule=void 0;var t=E(),n=H(),r=kx(),i=Mx(),a=class{};e.DiscoveryModule=a,e.DiscoveryModule=a=t.__decorate([(0,n.Module)({providers:[r.MetadataScanner,i.DiscoveryService],exports:[r.MetadataScanner,i.DiscoveryService]})],a)})),Px=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Nx(),e),t.__exportStar(Mx(),e)})),Fx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HttpAdapterHost=void 0;var t=Wc();e.HttpAdapterHost=class{constructor(){this._listen$=new t.Subject,this._init$=new t.ReplaySubject,this.isListening=!1}set httpAdapter(e){this._httpAdapter=e,this._init$.next(),this._init$.complete()}get httpAdapter(){return this._httpAdapter}get listen$(){return this._listen$.asObservable()}get init$(){return this._init$.asObservable()}set listening(e){this.isListening=e,e&&(this._listen$.next(),this._listen$.complete())}get listening(){return this.isListening}}})),Ix=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseExceptionFilter=void 0;var t=E(),n=H(),r=A(),i=Ox(),a=Fx(),o=class e{constructor(e){this.applicationRef=e}catch(e,t){let i=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(e instanceof n.HttpException))return this.handleUnknownError(e,t,i);let a=e.getResponse(),o=(0,r.isObject)(a)?a:{statusCode:e.getStatus(),message:a},s=t.getArgByIndex(1);i.isHeadersSent(s)?i.end(s):i.reply(s,o,e.getStatus())}handleUnknownError(t,r,a){let o=this.isHttpError(t)?{statusCode:t.statusCode,message:t.message}:{statusCode:n.HttpStatus.INTERNAL_SERVER_ERROR,message:i.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE},s=r.getArgByIndex(1);a.isHeadersSent(s)?a.end(s):a.reply(s,o,o.statusCode),t instanceof n.IntrinsicException||e.logger.error(t)}isExceptionObject(e){return(0,r.isObject)(e)&&!!e.message}isHttpError(e){return e?.statusCode&&e?.message}};e.BaseExceptionFilter=o,o.logger=new n.Logger(`ExceptionsHandler`),t.__decorate([(0,n.Optional)(),(0,n.Inject)(),t.__metadata(`design:type`,a.HttpAdapterHost)],o.prototype,`httpAdapterHost`,void 0)})),Lx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(Ix(),e)})),Rx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REQUEST_CONTEXT_ID=e.REQUEST=void 0,e.REQUEST=`REQUEST`,e.REQUEST_CONTEXT_ID=Symbol(`REQUEST_CONTEXT_ID`)})),zx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextIdFactory=void 0,e.createContextId=r;var t=A(),n=Rx();function r(){return{id:Math.random()}}e.ContextIdFactory=class e{static create(){return r()}static getByRequest(t,i=[`raw`]){if(!t)return e.create();if(t[n.REQUEST_CONTEXT_ID])return t[n.REQUEST_CONTEXT_ID];for(let e of i)if(t[e]?.[n.REQUEST_CONTEXT_ID])return t[e][n.REQUEST_CONTEXT_ID];if(!this.strategy)return e.create();let a=r(),o=this.strategy.attach(a,t);return this.isContextIdResolverWithPayload(o)?(a.getParent=o.resolve,a.payload=o.payload):a.getParent=o,a}static apply(e){this.strategy=e}static isContextIdResolverWithPayload(e){return(0,t.isObject)(e)}}})),Bx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.STATIC_CONTEXT=e.CONTROLLER_ID_KEY=void 0,e.CONTROLLER_ID_KEY=`CONTROLLER_ID`,e.STATIC_CONTEXT=Object.freeze({id:1})})),Vx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextCreator=void 0;var t=Bx();e.ContextCreator=class{createContext(e,n,r,i=t.STATIC_CONTEXT,a){let o=this.getGlobalMetadata&&this.getGlobalMetadata(i,a),s=this.reflectClassMetadata(e,r),c=this.reflectMethodMetadata(n,r);return[...this.createConcreteContext(o||[],i,a),...this.createConcreteContext(s,i,a),...this.createConcreteContext(c,i,a)]}reflectClassMetadata(e,t){let n=Object.getPrototypeOf(e);return Reflect.getMetadata(t,n.constructor)}reflectMethodMetadata(e,t){return Reflect.getMetadata(t,e)}getContextId(e,t){return e.getParent?e.getParent({token:t.token,isTreeDurable:t.isDependencyTreeDurable()}):e}}})),Hx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseExceptionFilterContext=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.BaseExceptionFilterContext=class extends i.ContextCreator{constructor(e){super(),this.container=e}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&((0,n.isFunction)(e.catch)||e.name)).map(e=>this.getFilterInstance(e,t,i)).filter(e=>!!e).map(e=>({func:e.catch.bind(e),exceptionMetatypes:this.reflectCatchExceptions(e)})).toArray()}getFilterInstance(e,t=a.STATIC_CONTEXT,n){if(e.catch)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}reflectCatchExceptions(e){let n=Object.getPrototypeOf(e);return Reflect.getMetadata(t.FILTER_CATCH_EXCEPTIONS,n.constructor)||[]}}})),Ux=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.selectExceptionFilterMetadata=void 0,e.selectExceptionFilterMetadata=(e,t)=>e.find(({exceptionMetatypes:e})=>!e.length||e.some(e=>t instanceof e))})),Wx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RuntimeException=void 0,e.RuntimeException=class extends Error{constructor(e=``){super(e)}what(){return this.message}}})),Gx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=e.INVALID_EXCEPTION_FILTER=e.UNHANDLED_RUNTIME_EXCEPTION=e.INVALID_MIDDLEWARE_CONFIGURATION=e.UNKNOWN_REQUEST_MAPPING=e.INVALID_CLASS_SCOPE_MESSAGE=e.INVALID_CLASS_MESSAGE=e.UNKNOWN_EXPORT_MESSAGE=e.UNDEFINED_MODULE_MESSAGE=e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=e.INVALID_MODULE_MESSAGE=e.UNDEFINED_FORWARDREF_MESSAGE=e.INVALID_MIDDLEWARE_MESSAGE=e.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;var t=A(),n=e=>e?.forwardRef?e.forwardRef()?.name:e?.module?e.module?.name:e?.name,r=(e,r,i=!0)=>n(e)||(0,t.isSymbol)(e)&&e.toString()||(e?i?`"${e}"`:e:void 0)||r,i=e=>e&&n(e.metatype)||`current`,a=e=>(e||[]).map(n).join(` -> `);e.UNKNOWN_DEPENDENCIES_MESSAGE=(e,n,a)=>{let{index:o,name:s,dependencies:c,key:l}=n,u=i(a),d=r(s,`dependency`),f=!(0,t.isNil)(o)&&c&&(c[o]===void 0||c[o]===Object||typeof c[o]==`function`&&c[o].name===`Object`),p;p=f?`\n
|
|
84
84
|
Potential solutions:
|
|
85
85
|
- The dependency at index [${o}] appears to be undefined at runtime
|
|
86
86
|
- This commonly occurs when using 'import type' instead of 'import' for injectable classes
|
|
@@ -131,18 +131,18 @@ Possible Solutions:
|
|
|
131
131
|
- Is ${e} part of the relevant providers/imports within ${n}?
|
|
132
132
|
|
|
133
133
|
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors
|
|
134
|
-
`),e.INVALID_CLASS_MESSAGE=(e,t)=>`ModuleRef cannot instantiate class (${t} is not constructable).`,e.INVALID_CLASS_SCOPE_MESSAGE=(e,t)=>`${t||`This class`} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`,e.UNKNOWN_REQUEST_MAPPING=e=>{let t=e.name;return t?`An invalid controller has been detected. "${t}" does not have the @Controller() decorator but it is being listed in the "controllers" array of some module.`:`An invalid controller has been detected. Perhaps, one of your controllers is missing the @Controller() decorator.`},e.INVALID_MIDDLEWARE_CONFIGURATION=`An invalid middleware configuration has been passed inside the module 'configure()' method.`,e.UNHANDLED_RUNTIME_EXCEPTION=`Unhandled Runtime Exception.`,e.INVALID_EXCEPTION_FILTER=`Invalid exception filters (@UseFilters()).`,e.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=`Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)`})),Yx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidExceptionFilterException=void 0;var t=qx(),n=Jx();e.InvalidExceptionFilterException=class extends t.RuntimeException{constructor(){super(n.INVALID_EXCEPTION_FILTER)}}})),Xx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionFilter=void 0;var t=U(),n=class e{catch(n,r){throw n instanceof Error&&!(n instanceof t.IntrinsicException)&&e.logger.error(n),n}};e.ExternalExceptionFilter=n,n.logger=new t.Logger(`ExceptionsHandler`)})),Zx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionsHandler=void 0;var t=Kx(),n=M(),r=Yx(),i=Xx();e.ExternalExceptionsHandler=class extends i.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(e,t){return this.invokeCustomFilters(e,t)||super.catch(e,t)}setCustomFilters(e){if(!Array.isArray(e))throw new r.InvalidExceptionFilterException;this.filters=e}invokeCustomFilters(e,r){if((0,n.isEmpty)(this.filters))return null;let i=(0,t.selectExceptionFilterMetadata)(this.filters,e);return i?i.func(e,r):null}}})),Qx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionFilterContext=void 0;var t=j(),n=M(),r=L(),i=Ux(),a=Gx(),o=Zx();e.ExternalExceptionFilterContext=class extends a.BaseExceptionFilterContext{constructor(e,t){super(e),this.config=t}create(e,r,a,s=i.STATIC_CONTEXT,c){this.moduleContext=a;let l=new o.ExternalExceptionsHandler,u=this.createContext(e,r,t.EXCEPTION_FILTERS_METADATA,s,c);return(0,n.isEmpty)(u)||l.setCustomFilters(u.reverse()),l}getGlobalMetadata(e=i.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalFilters();if(e===i.STATIC_CONTEXT&&!t)return n;let a=this.config.getGlobalRequestFilters(),o=(0,r.iterate)(a).map(n=>n.getInstanceByContextId(e,t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),$x=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FORBIDDEN_MESSAGE=void 0,e.FORBIDDEN_MESSAGE=`Forbidden resource`})),eS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExecutionContextHost=void 0,e.ExecutionContextHost=class{constructor(e,t=null,n=null){this.args=e,this.constructorRef=t,this.handler=n,this.contextType=`http`}setType(e){e&&(this.contextType=e)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(e){return this.args[e]}switchToRpc(){return Object.assign(this,{getData:()=>this.getArgByIndex(0),getContext:()=>this.getArgByIndex(1)})}switchToHttp(){return Object.assign(this,{getRequest:()=>this.getArgByIndex(0),getResponse:()=>this.getArgByIndex(1),getNext:()=>this.getArgByIndex(2)})}switchToWs(){return Object.assign(this,{getClient:()=>this.getArgByIndex(0),getData:()=>this.getArgByIndex(1),getPattern:()=>this.getArgByIndex(this.getArgs().length-1)})}}})),tS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GuardsConsumer=void 0;var t=M(),n=Kc(),r=eS();e.GuardsConsumer=class{async tryActivate(e,n,r,i,a){if(!e||(0,t.isEmpty)(e))return!0;let o=this.createContext(n,r,i);o.setType(a);for(let t of e){let e=t.canActivate(o);if(typeof e==`boolean`){if(!e)return!1;continue}if(!await this.pickResult(e))return!1}return!0}createContext(e,t,n){return new r.ExecutionContextHost(e,t.constructor,n)}async pickResult(e){return e instanceof n.Observable?(0,n.lastValueFrom)(e):e}}})),nS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GuardsContextCreator=void 0;var t=j(),n=M(),r=L(),i=Wx(),a=Ux();e.GuardsContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.GUARDS_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.canActivate)).map(e=>this.getGuardInstance(e,t,i)).filter(e=>!!e&&(0,n.isFunction)(e.canActivate)).toArray()}getGuardInstance(e,t=a.STATIC_CONTEXT,n){if(e.canActivate)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalGuards();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestGuards(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),rS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar($x(),e),t.__exportStar(tS(),e),t.__exportStar(nS(),e)})),iS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InterceptorsConsumer=void 0;var t=M(),n=require(`async_hooks`),r=Kc(),i=wo(),a=eS();e.InterceptorsConsumer=class{async intercept(e,a,o,s,c,l){if((0,t.isEmpty)(e))return c();let u=this.createContext(a,o,s);u.setType(l);let d=async(t=0)=>t>=e.length?(0,r.defer)(n.AsyncResource.bind(()=>this.transformDeferred(c))):e[t].intercept(u,{handle:()=>(0,r.defer)(n.AsyncResource.bind(()=>d(t+1))).pipe((0,i.mergeAll)())});return(0,r.defer)(()=>d()).pipe((0,i.mergeAll)())}createContext(e,t,n){return new a.ExecutionContextHost(e,t.constructor,n)}transformDeferred(e){return(0,r.from)(e()).pipe((0,i.switchMap)(e=>e instanceof Promise||e instanceof r.Observable?e:Promise.resolve(e)))}}})),aS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InterceptorsContextCreator=void 0;var t=j(),n=M(),r=L(),i=Wx(),a=Ux();e.InterceptorsContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.INTERCEPTORS_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.intercept)).map(e=>this.getInterceptorInstance(e,t,i)).filter(e=>e?(0,n.isFunction)(e.intercept):!1).toArray()}getInterceptorInstance(e,t=a.STATIC_CONTEXT,n){if(e.intercept)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalInterceptors();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestInterceptors(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),oS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(iS(),e),t.__exportStar(aS(),e)})),sS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParamsTokenFactory=void 0;var t=xe();e.ParamsTokenFactory=class{exchangeEnumForString(e){switch(e){case t.RouteParamtypes.BODY:return`body`;case t.RouteParamtypes.PARAM:return`param`;case t.RouteParamtypes.QUERY:return`query`;default:return`custom`}}}})),cS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PipesConsumer=void 0;var t=sS();e.PipesConsumer=class{constructor(){this.paramsTokenFactory=new t.ParamsTokenFactory}async apply(e,{metatype:t,type:n,data:r},i){let a=this.paramsTokenFactory.exchangeEnumForString(n);return this.applyPipes(e,{metatype:t,type:a,data:r},i)}async applyPipes(e,{metatype:t,type:n,data:r},i){return i.reduce(async(e,i)=>{let a=await e;return i.transform(a,{metatype:t,type:n,data:r})},Promise.resolve(e))}}})),lS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PipesContextCreator=void 0;var t=j(),n=M(),r=L(),i=Wx(),a=Ux();e.PipesContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.PIPES_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.transform)).map(e=>this.getPipeInstance(e,t,i)).filter(e=>!!e&&e.transform&&(0,n.isFunction)(e.transform)).toArray()}getPipeInstance(e,t=a.STATIC_CONTEXT,n){if(e.transform)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalPipes();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestPipes(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}setModuleContext(e){this.moduleContext=e}}})),uS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(sS(),e),t.__exportStar(cS(),e),t.__exportStar(lS(),e)})),dS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextUtils=void 0;var t=j(),n=M(),r=eS();e.ContextUtils=class{mapParamType(e){return e.split(`:`)[0]}reflectCallbackParamtypes(e,n){return Reflect.getMetadata(t.PARAMTYPES_METADATA,e,n)}reflectCallbackMetadata(e,t,n){return Reflect.getMetadata(n,e.constructor,t)}reflectPassthrough(e,n){return Reflect.getMetadata(t.RESPONSE_PASSTHROUGH_METADATA,e.constructor,n)}getArgumentsLength(e,t){return e.length?Math.max(...e.map(e=>t[e].index))+1:0}createNullArray(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=void 0;return t}mergeParamsMetatypes(e,t){return t?e.map(e=>({...e,metatype:t[e.index]})):e}getCustomFactory(e,t,r){return(0,n.isFunction)(e)?(...n)=>e(t,r(n)):()=>null}getContextFactory(e,t,n){let i=t&&t.constructor;return t=>{let a=new r.ExecutionContextHost(t,i,n);return a.setType(e),a}}}})),fS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalErrorProxy=void 0;var t=eS();e.ExternalErrorProxy=class{createProxy(e,n,r){return async(...i)=>{try{return await e(...i)}catch(e){let a=new t.ExecutionContextHost(i);return a.setType(r),n.next(e,a)}}}}})),pS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;var n=Ux();e.HANDLER_METADATA_SYMBOL=Symbol.for(`handler_metadata:cache`),e.HandlerMetadataStorage=class{constructor(){this[t]=new Map}set(t,n,r){let i=this.getMetadataKey(t,n);this[e.HANDLER_METADATA_SYMBOL].set(i,r)}get(t,n){let r=this.getMetadataKey(t,n);return this[e.HANDLER_METADATA_SYMBOL].get(r)}getMetadataKey(e,t){let r=e.constructor;return(r&&(r[n.CONTROLLER_ID_KEY]||r.name))+t}},t=e.HANDLER_METADATA_SYMBOL})),mS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalContextCreator=void 0;var t=U(),n=j(),r=M(),i=Kc(),a=Qx(),o=rS(),s=$x(),c=Ux(),l=oS(),u=uS(),d=dS(),f=fS(),p=pS();e.ExternalContextCreator=class e{constructor(e,t,n,r,i,a,o,s){this.guardsContextCreator=e,this.guardsConsumer=t,this.interceptorsContextCreator=n,this.interceptorsConsumer=r,this.modulesContainer=i,this.pipesContextCreator=a,this.pipesConsumer=o,this.filtersContextCreator=s,this.contextUtils=new d.ContextUtils,this.externalErrorProxy=new f.ExternalErrorProxy,this.handlerMetadataStorage=new p.HandlerMetadataStorage}static fromContainer(t){let n=new o.GuardsContextCreator(t,t.applicationConfig),r=new o.GuardsConsumer,i=new l.InterceptorsContextCreator(t,t.applicationConfig),s=new l.InterceptorsConsumer,c=new u.PipesContextCreator(t,t.applicationConfig),d=new u.PipesConsumer,f=new a.ExternalExceptionFilterContext(t,t.applicationConfig),p=new e(n,r,i,s,t.getModules(),c,d,f);return p.container=t,p}create(e,t,n,r,i,a=c.STATIC_CONTEXT,o,s={interceptors:!0,guards:!0,filters:!0},l=`http`){let u=this.getContextModuleKey(e.constructor),{argsLength:d,paramtypes:f,getParamsMetadata:p}=this.getMetadata(e,n,r,i,l),m=this.pipesContextCreator.create(e,t,u,a,o),h=this.guardsContextCreator.create(e,t,u,a,o),g=this.filtersContextCreator.create(e,t,u,a,o),_=s.interceptors?this.interceptorsContextCreator.create(e,t,u,a,o):[],v=p(u,a,o),y=v?this.contextUtils.mergeParamsMetatypes(v,f):[],b=s.guards?this.createGuardsFn(h,e,t,l):null,x=this.createPipesFn(m,y),S=(n,...r)=>async()=>x?(await x(n,...r),t.apply(e,n)):t.apply(e,r),C=async(...n)=>{let r=this.contextUtils.createNullArray(d);b&&await b(n);let i=await this.interceptorsConsumer.intercept(_,n,e,t,S(r,...n),l);return this.transformToResult(i)};return s.filters?this.externalErrorProxy.createProxy(C,g,l):C}getMetadata(e,t,n,r,i){let a=this.handlerMetadataStorage.get(e,t);if(a)return a;let o=this.contextUtils.reflectCallbackMetadata(e,t,n||``)||{},s=Object.keys(o),l=this.contextUtils.getArgumentsLength(s,o),u=this.contextUtils.reflectCallbackParamtypes(e,t),d=this.contextUtils.getContextFactory(i,e,e[t]),f={argsLength:l,paramtypes:u,getParamsMetadata:(e,t=c.STATIC_CONTEXT,n)=>r?this.exchangeKeysForValues(s,o,e,r,t,n,d):null};return this.handlerMetadataStorage.set(e,t,f),f}getContextModuleKey(e){if(!e)return``;let t=this.modulesContainer.entries();for(let[n,r]of t)if(r.hasProvider(e))return n;return``}exchangeKeysForValues(e,t,r,i,a=c.STATIC_CONTEXT,o,s=this.contextUtils.getContextFactory(`http`)){return this.pipesContextCreator.setModuleContext(r),e.map(e=>{let{index:r,data:c,pipes:l}=t[e],u=this.pipesContextCreator.createConcreteContext(l,a,o),d=this.contextUtils.mapParamType(e);if(e.includes(n.CUSTOM_ROUTE_ARGS_METADATA)){let{factory:n}=t[e];return{index:r,extractValue:this.contextUtils.getCustomFactory(n,c,s),type:d,data:c,pipes:u}}let f=Number(d);return{index:r,extractValue:(...e)=>i.exchangeKeyForValue(f,c,e),type:f,data:c,pipes:u}})}createPipesFn(e,t){return t.length?async(n,...r)=>{await Promise.all(t.map(async t=>{let{index:i,extractValue:a,type:o,data:s,metatype:c,pipes:l}=t,u=a(...r);n[i]=await this.getParamValue(u,{metatype:c,type:o,data:s},e.concat(l))}))}:null}async getParamValue(e,{metatype:t,type:n,data:i},a){return(0,r.isEmpty)(a)?e:this.pipesConsumer.apply(e,{metatype:t,type:n,data:i},a)}async transformToResult(e){return(0,i.isObservable)(e)?(0,i.lastValueFrom)(e):e}createGuardsFn(e,n,r,i){return e.length?async a=>{if(!await this.guardsConsumer.tryActivate(e,a,n,r,i))throw new t.ForbiddenException(s.FORBIDDEN_MESSAGE)}:null}registerRequestProvider(e,t){this.container.registerRequestProvider(e,t)}}})),hS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(Hx(),e),t.__exportStar(mS(),e),t.__exportStar(Rx(),e)})),gS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CircularDependencyException=void 0;var t=qx();e.CircularDependencyException=class extends t.RuntimeException{constructor(e){let t=e?` inside ${e}`:``;super(`A circular dependency has been detected${t}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()". Note that circular relationships between custom providers (e.g., factories) are not supported since functions cannot be called more than once.`)}}})),_S=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownElementException=void 0;var t=qx();e.UnknownElementException=class extends t.RuntimeException{constructor(e){e&&=e.toString(),super(`Nest could not find ${e||`given`} element (this provider does not exist in the current context)`)}}})),vS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassScopeException=void 0;var t=M(),n=Jx(),r=qx();e.InvalidClassScopeException=class extends r.RuntimeException{constructor(e){let r=(0,t.isFunction)(e)?e.name:e;r&&=r.toString(),super((0,n.INVALID_CLASS_SCOPE_MESSAGE)`${r}`)}}})),yS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassException=void 0;var t=Jx(),n=qx();e.InvalidClassException=class extends n.RuntimeException{constructor(e){super((0,t.INVALID_CLASS_MESSAGE)`${e}`)}}})),bS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownExportException=void 0;var t=Jx(),n=qx();e.UnknownExportException=class extends n.RuntimeException{constructor(e,n){super((0,t.UNKNOWN_EXPORT_MESSAGE)(e,n))}}})),xS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownModuleException=void 0;var t=qx();e.UnknownModuleException=class extends t.RuntimeException{constructor(e){super(`Nest could not select the given module (${e?`"${e}"`:`it`} does not exist in current context).`)}}})),SS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedForwardRefException=void 0;var t=Jx(),n=qx();e.UndefinedForwardRefException=class extends n.RuntimeException{constructor(e){super((0,t.UNDEFINED_FORWARDREF_MESSAGE)(e))}}})),CS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(gS(),e),t.__exportStar(qx(),e),t.__exportStar(_S(),e),t.__exportStar(vS(),e),t.__exportStar(yS(),e),t.__exportStar(bS(),e),t.__exportStar(xS(),e),t.__exportStar(SS(),e)})),wS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InitializeOnPreviewAllowlist=void 0;var t=class{static add(e){this.allowlist.set(e,!0)}static has(e){return this.allowlist.has(e)}};e.InitializeOnPreviewAllowlist=t,t.allowlist=new WeakMap})),TS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INQUIRER=void 0,e.INQUIRER=`INQUIRER`})),ES=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SilentLogger=void 0;var t=U(),n=()=>{};e.SilentLogger=class extends t.Logger{constructor(){super(...arguments),this.log=n,this.error=n,this.warn=n,this.debug=n,this.verbose=n,this.fatal=n,this.setLogLevels=n}}})),DS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getClassScope=n;var t=j();function n(e){let n=Reflect.getMetadata(t.SCOPE_OPTIONS_METADATA,e);return n&&n.scope}})),OS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDurable=n;var t=j();function n(e){let n=Reflect.getMetadata(t.SCOPE_OPTIONS_METADATA,e);return n&&n.durable}})),kS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractInstanceResolver=void 0;var t=U(),n=CS();e.AbstractInstanceResolver=class{find(e,r){let i=this.instanceLinksHost.get(e,r),a=({wrapperRef:r})=>{if(r.scope===t.Scope.REQUEST||r.scope===t.Scope.TRANSIENT||!r.isDependencyTreeStatic())throw new n.InvalidClassScopeException(e);return r.instance};return Array.isArray(i)?i.map(a):a(i)}async resolvePerContext(e,t,r,i){let a=i?.strict?this.instanceLinksHost.get(e,{moduleId:t.id,each:i.each}):this.instanceLinksHost.get(e,{each:i?.each}),o=async t=>{let{wrapperRef:i,collection:a}=t;if(i.isDependencyTreeStatic()&&!i.isTransient)return i.instance;let o=i.instance||{constructor:e},s=await this.injector.loadPerContext(o,i.host,a,r,i);if(!s)throw new n.UnknownElementException;return s};return Array.isArray(a)?Promise.all(a.map(e=>o(e))):o(a)}}})),AS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedDependencyException=void 0;var t=Jx(),n=qx();e.UndefinedDependencyException=class extends n.RuntimeException{constructor(e,n,r){super((0,t.UNKNOWN_DEPENDENCIES_MESSAGE)(e,n,r))}}})),jS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownDependenciesException=void 0;var t=Jx(),n=qx();e.UnknownDependenciesException=class extends n.RuntimeException{constructor(e,n,r,i){super((0,t.UNKNOWN_DEPENDENCIES_MESSAGE)(e,n,r)),this.type=e,this.context=n,this.metadata=i,this.moduleRef=r&&{id:r.id}}}})),MS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Barrier=void 0,e.Barrier=class{constructor(e){this.currentCount=0,this.targetCount=e,this.promise=new Promise(e=>{this.resolve=e})}signal(){this.currentCount+=1,this.currentCount===this.targetCount&&this.resolve()}async wait(){return this.promise}async signalAndWait(){return this.signal(),this.wait()}}})),NS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(TS(),e)})),PS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeterministicUuidRegistry=void 0;var t=class{static get(e,t=0){let n=t?this.hashCode(`${e}_${t}`):this.hashCode(e);return this.registry.has(n)?this.get(e,t+1):(this.registry.set(n,!0),n)}static clear(){this.registry.clear()}static hashCode(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t.toString()}};e.DeterministicUuidRegistry=t,t.registry=new Map})),FS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UuidFactory=e.UuidFactoryMode=void 0;var t=mn(),n=PS(),r;(function(e){e.Random=`random`,e.Deterministic=`deterministic`})(r||(e.UuidFactoryMode=r={}));var i=class{static set mode(e){this._mode=e}static get(e=``){return this._mode===r.Deterministic?n.DeterministicUuidRegistry.get(e):(0,t.randomStringGenerator)()}};e.UuidFactory=i,i._mode=r.Random})),IS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isClassProvider=n,e.isValueProvider=r,e.isFactoryProvider=i;var t=M();function n(e){return!!e?.useClass}function r(e){let n=e?.useValue;return!(0,t.isUndefined)(n)}function i(e){return!!e.useFactory}})),LS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceWrapper=e.INSTANCE_ID_SYMBOL=e.INSTANCE_METADATA_SYMBOL=void 0;var n=U(),r=it(),i=mn(),a=M(),o=L(),s=FS(),c=Ux(),l=IS();e.INSTANCE_METADATA_SYMBOL=Symbol.for(`instance_metadata:cache`),e.INSTANCE_ID_SYMBOL=Symbol.for(`instance_metadata:id`);var u=class u{constructor(r={}){this.isAlias=!1,this.scope=n.Scope.DEFAULT,this.values=new WeakMap,this[t]={},this.initialize(r),this[e.INSTANCE_ID_SYMBOL]=r[e.INSTANCE_ID_SYMBOL]??this.generateUuid()}get id(){return this[e.INSTANCE_ID_SYMBOL]}set instance(e){this.values.set(c.STATIC_CONTEXT,{instance:e})}get instance(){return this.getInstanceByContextId(c.STATIC_CONTEXT).instance}get isNotMetatype(){return!this.metatype||this.isFactory}get isFactory(){return!!this.metatype&&!(0,a.isNil)(this.inject)}get isTransient(){return this.scope===n.Scope.TRANSIENT}getInstanceByContextId(e,t){return this.scope===n.Scope.TRANSIENT&&t?this.getInstanceByInquirerId(e,t):this.values.get(e)||(e===c.STATIC_CONTEXT?{instance:null,isResolved:!0,isPending:!1}:this.cloneStaticInstance(e))}getInstanceByInquirerId(e,t){let n=this.transientMap.get(t);return n||(n=new WeakMap,this.transientMap.set(t,n)),n.get(e)||this.cloneTransientInstance(e,t)}setInstanceByContextId(e,t,r){if(this.scope===n.Scope.TRANSIENT&&r)return this.setInstanceByInquirerId(e,r,t);this.values.set(e,t)}setInstanceByInquirerId(e,t,n){let r=this.transientMap.get(t);r||(r=new WeakMap,this.transientMap.set(t,r)),r.set(e,n)}removeInstanceByContextId(e,t){if(this.scope===n.Scope.TRANSIENT&&t)return this.removeInstanceByInquirerId(e,t);this.values.delete(e)}removeInstanceByInquirerId(e,t){let n=this.transientMap.get(t);n&&n.delete(e)}addCtorMetadata(t,n){this[e.INSTANCE_METADATA_SYMBOL].dependencies||(this[e.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[e.INSTANCE_METADATA_SYMBOL].dependencies[t]=n}getCtorMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(t,n){this[e.INSTANCE_METADATA_SYMBOL].properties||(this[e.INSTANCE_METADATA_SYMBOL].properties=[]),this[e.INSTANCE_METADATA_SYMBOL].properties.push({key:t,wrapper:n})}getPropertiesMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(t){this[e.INSTANCE_METADATA_SYMBOL].enhancers||(this[e.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[e.INSTANCE_METADATA_SYMBOL].enhancers.push(t)}getEnhancersMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeDurable(e=[]){return(0,a.isUndefined)(this.isTreeDurable)?this.scope===n.Scope.REQUEST?(this.isTreeDurable=this.durable===void 0?!1:this.durable,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable):this.isDependencyTreeStatic()?!1:(this.isTreeDurable=!this.introspectDepsAttribute((e,t)=>e.some(e=>!e.isDependencyTreeStatic()&&!e.isDependencyTreeDurable(t)),e),this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable):this.isTreeDurable}introspectDepsAttribute(t,n=[]){if(n.includes(this[e.INSTANCE_ID_SYMBOL]))return!1;n=n.concat(this[e.INSTANCE_ID_SYMBOL]);let{dependencies:r,properties:i,enhancers:a}=this[e.INSTANCE_METADATA_SYMBOL],o=r?t(r,n):!1;return o||!(i||a)||(o=i?t(i.map(e=>e.wrapper),n):!1,o||!a)?o:a?t(a,n):!1}isDependencyTreeStatic(e=[]){return(0,a.isUndefined)(this.isTreeStatic)?this.scope===n.Scope.REQUEST?(this.isTreeStatic=!1,this.printIntrospectedAsRequestScoped(),this.isTreeStatic):(this.isTreeStatic=!this.introspectDepsAttribute((e,t)=>e.some(e=>!e.isDependencyTreeStatic(t)),e),this.isTreeStatic||this.printIntrospectedAsRequestScoped(),this.isTreeStatic):this.isTreeStatic}cloneStaticInstance(e){let t=this.getInstanceByContextId(c.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return t;let n={...t,instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(n.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(e,n),n}cloneTransientInstance(e,t){let n={...this.getInstanceByContextId(c.STATIC_CONTEXT),instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(n.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(e,t,n),n}createPrototype(e){let t=this.getInstanceByContextId(e);if(!(!this.isNewable()||t.isResolved))return Object.create(this.metatype.prototype)}isInRequestScope(e,t){return!this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!t)}isLazyTransient(e,t){let n=!!(t&&!t.isDependencyTreeStatic());return this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&this.isTransient&&n}isExplicitlyRequested(e,t){let r=t===this;return this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&(r||!!(t&&t.scope===n.Scope.TRANSIENT))}isStatic(e,t){if(!this.isDependencyTreeStatic()||e!==c.STATIC_CONTEXT)return!1;if(!this.isTransient)return!0;let n=t&&!t.isDependencyTreeStatic(),r=this.isTransient&&!n,i=t?.getRootInquirer();return!!(r&&t&&!t.isTransient||r&&i&&!i.isTransient||r&&t?.isTransient&&!i)}attachRootInquirer(e){this.isTransient&&(this.rootInquirer=e.getRootInquirer()??e)}getRootInquirer(){return this.rootInquirer}getStaticTransientInstances(){if(!this.transientMap)return[];let e=[...this.transientMap.values()];return(0,o.iterate)(e).map(e=>e.get(c.STATIC_CONTEXT)).filter(e=>!!(e&&e.isConstructorCalled)).toArray()}mergeWith(e){(0,l.isValueProvider)(e)?(this.metatype=null,this.inject=null,this.scope=n.Scope.DEFAULT,this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:e.useValue,isResolved:!0,isPending:!1})):(0,l.isClassProvider)(e)?(this.inject=null,this.metatype=e.useClass):(0,l.isFactoryProvider)(e)&&(this.metatype=e.useFactory,this.inject=e.inject||[])}isNewable(){return(0,a.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}initialize(e){let{instance:t,isResolved:r,...i}=e;Object.assign(this,i),this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:t,isResolved:r}),this.scope===n.Scope.TRANSIENT&&(this.transientMap=new Map)}printIntrospectedAsRequestScoped(){!this.isDebugMode()||this.name===`REQUEST`||(0,a.isString)(this.name)&&u.logger.log(`${r.clc.cyanBright(this.name)}${r.clc.green(` introspected as `)}${r.clc.magentaBright(`request-scoped`)}`)}printIntrospectedAsDurable(){this.isDebugMode()&&(0,a.isString)(this.name)&&u.logger.log(`${r.clc.cyanBright(this.name)}${r.clc.green(` introspected as `)}${r.clc.magentaBright(`durable`)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}generateUuid(){let e=this.name?.toString()??this.token?.toString();return e+=this.host?.name??``,e?s.UuidFactory.get(e):(0,i.randomStringGenerator)()}};e.InstanceWrapper=u,t=e.INSTANCE_METADATA_SYMBOL,u.logger=new n.Logger(u.name)})),RS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SettlementSignal=void 0,e.SettlementSignal=class{constructor(){this._refs=new Set,this.completed=!1,this.settledPromise=new Promise(e=>{this.settleFn=e})}complete(){this.completed=!0,this.settleFn()}error(e){this.completed=!0,this.settleFn(e)}asPromise(){return this.settledPromise}insertRef(e){this._refs.add(e)}isCycle(e){return!this.completed&&this._refs.has(e)}}})),zS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Injector=void 0;var t=U(),n=j(),r=it(),i=M(),a=L(),o=require(`perf_hooks`),s=CS(),c=qx(),l=AS(),u=jS(),d=MS(),f=Ux(),p=NS(),m=LS(),h=RS();e.Injector=class{constructor(e){this.options=e,this.logger=new t.Logger(`InjectorLogger`),this.instanceDecorator=e=>e,e?.instanceDecorator&&(this.instanceDecorator=e.instanceDecorator)}loadPrototype({token:e},t,n=f.STATIC_CONTEXT){if(!t)return;let r=t.get(e),i=r.createPrototype(n);if(i){let n=new m.InstanceWrapper({...r,instance:i});t.set(e,n)}}async loadInstance(e,t,n,r=f.STATIC_CONTEXT,a){let o=this.getInquirerId(a),l=e.getInstanceByContextId(this.getContextId(r,e),o);if(l.isPending){let t=e.settlementSignal;if(a&&t?.isCycle(a.id))throw new s.CircularDependencyException(`"${e.name}"`);return l.donePromise.then(e=>{if(e)throw e})}let u=this.applySettlementSignal(l,e),d=e.token||e.name,{inject:p}=e,m=t.get(d);if((0,i.isUndefined)(m))throw new c.RuntimeException;if(l.isResolved)return u.complete();try{let t=this.getNowTimestamp();await this.resolveConstructorParams(e,n,p,async i=>{let o=await this.resolveProperties(e,n,p,r,e,a),s=await this.instantiateClass(i,e,m,r,a);this.applyProperties(s,o),e.initTime=this.getNowTimestamp()-t,u.complete()},r,e,a)}catch(t){throw e.removeInstanceByContextId(this.getContextId(r,e),o),u.error(t),t}}async loadMiddleware(e,t,n,r=f.STATIC_CONTEXT,a){let{metatype:o,token:s}=e,c=t.get(s);(0,i.isUndefined)(c.instance)&&(c.instance=Object.create(o.prototype),await this.loadInstance(e,t,n,r,a||e))}async loadController(e,t,n=f.STATIC_CONTEXT){let r=t.controllers;await this.loadInstance(e,r,t,n,e),await this.loadEnhancersPerContext(e,n,e)}async loadInjectable(e,t,n=f.STATIC_CONTEXT,r){let i=t.injectables;await this.loadInstance(e,i,t,n,r)}async loadProvider(e,t,n=f.STATIC_CONTEXT,r){let i=t.providers;await this.loadInstance(e,i,t,n,r),await this.loadEnhancersPerContext(e,n,e)}applySettlementSignal(e,t){let n=new h.SettlementSignal;return e.donePromise=n.asPromise(),e.isPending=!0,t.settlementSignal=n,n}async resolveConstructorParams(e,t,n,r,a=f.STATIC_CONTEXT,o,s){let c=e.getCtorMetadata();if(c&&a!==f.STATIC_CONTEXT)return r(await this.loadCtorMetadata(c,a,o,s));let[l,u]=(0,i.isNil)(n)?this.getClassDependencies(e):this.getFactoryProviderDependencies(e),p=new d.Barrier(l.length),m=!0,h=await Promise.all(l.map(async(n,r)=>{try{if(this.isInquirer(n,s))return p.signal(),s&&s.instance;o?.isTransient&&s&&o.attachRootInquirer(s);let i=await this.resolveSingleParam(e,n,{index:r,dependencies:l},t,a,o,r);await p.signalAndWait();let c=this.getEffectiveInquirer(i,o,s,a),u=await this.resolveComponentHost(t,i,a,c),d=u.getInstanceByContextId(this.getContextId(a,u),this.getInquirerId(c));return!d.isResolved&&!u.forwardRef&&(m=!1),d?.instance}catch(e){if(p.signal(),!u.includes(r))throw e;return}}));m&&await r(h)}getClassDependencies(e){let t=e.metatype;return[this.reflectConstructorParams(t),this.reflectOptionalParams(t)]}getFactoryProviderDependencies(e){let t=[];function n(e){return!(0,i.isUndefined)(e.token)&&!(0,i.isUndefined)(e.optional)&&!e.prototype}return[e.inject?.map?.((e,r)=>typeof e==`object`&&n(e)?(e.optional&&t.push(r),e?.token):e),t]}reflectConstructorParams(e){let t=[...Reflect.getMetadata(n.PARAMTYPES_METADATA,e)||[]];return this.reflectSelfParams(e).forEach(({index:e,param:n})=>t[e]=n),Array.from(t)}reflectOptionalParams(e){return Reflect.getMetadata(n.OPTIONAL_DEPS_METADATA,e)||[]}reflectSelfParams(e){return Reflect.getMetadata(n.SELF_DECLARED_DEPS_METADATA,e)||[]}async resolveSingleParam(e,t,n,r,a=f.STATIC_CONTEXT,o,s){if((0,i.isUndefined)(t))throw this.logger.log(`Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration.`),new l.UndefinedDependencyException(e.name,n,r);let c=this.resolveParamToken(e,t);return this.resolveComponentWrapper(r,c,n,e,a,o,s)}resolveParamToken(e,t){return typeof t==`object`&&`forwardRef`in t?(e.forwardRef=!0,t.forwardRef()):t}async resolveComponentWrapper(e,t,n,r,i=f.STATIC_CONTEXT,a,o){this.printResolvingDependenciesLog(t,a),this.printLookingForProviderLog(t,e);let s=e.providers;return this.lookupComponent(s,e,{...n,name:t},r,i,a,o)}async resolveComponentHost(e,t,n=f.STATIC_CONTEXT,r){let i=this.getInquirerId(r),a=t.getInstanceByContextId(this.getContextId(n,t),i);if(!a.isResolved&&!t.forwardRef?(r?.settlementSignal?.insertRef(t.id),await this.loadProvider(t,t.host??e,n,r)):!a.isResolved&&t.forwardRef&&(n!==f.STATIC_CONTEXT||i)&&a.donePromise&&a.donePromise.then(()=>this.loadProvider(t,e,n,r)).catch(e=>{t.settlementSignal?.error(e)}),t.async){let e=t.getInstanceByContextId(this.getContextId(n,t),i);e.instance=await e.instance,t.setInstanceByContextId(n,e,i)}return t}async lookupComponent(e,t,n,r,i=f.STATIC_CONTEXT,a,o){let s=r.token||r.name,{name:c}=n;if(r&&s===c)throw new u.UnknownDependenciesException(r.name,n,t,{id:r.id});if(c&&e.has(c)){let n=e.get(c);return this.printFoundInModuleLog(c,t),this.addDependencyMetadata(o,r,n),n}return this.lookupComponentInParentModules(n,t,r,i,a,o)}async lookupComponentInParentModules(e,t,n,r=f.STATIC_CONTEXT,a,o){let s=await this.lookupComponentInImports(t,e.name,n,new Set,r,a,o);if((0,i.isNil)(s))throw new u.UnknownDependenciesException(n.name,e,t,{id:n.id});return s}async lookupComponentInImports(e,t,n,r=new Set,i=f.STATIC_CONTEXT,a,o,s){let c=null,l=e.imports||new Set,u=e=>e,d=[...l.values()].filter(u);if(s){let t=e.exports;d=d.filter(e=>t.has(e.metatype))}for(let e of d){if(r.has(e.id))continue;this.printLookingForProviderLog(t,e),r.add(e.id);let{providers:s,exports:l}=e;if(!l.has(t)||!s.has(t)){let s=await this.lookupComponentInImports(e,t,n,r,i,a,o,!0);if(s)return this.addDependencyMetadata(o,n,s),s;continue}this.printFoundInModuleLog(t,e),c=s.get(t),this.addDependencyMetadata(o,n,c);let u=this.getInquirerId(a);if(!c.getInstanceByContextId(this.getContextId(i,c),u).isResolved&&!c.forwardRef)break}return c}async resolveProperties(e,t,n,r=f.STATIC_CONTEXT,a,o){if(!(0,i.isNil)(n))return[];let s=e.getPropertiesMetadata();if(s&&r!==f.STATIC_CONTEXT)return this.loadPropertiesMetadata(s,r,a);let c=this.reflectProperties(e.metatype),l=new d.Barrier(c.length),u=await Promise.all(c.map(async n=>{try{let i={key:n.key,name:n.name};if(this.isInquirer(n.name,o))return l.signal(),o&&o.instance;let s=await this.resolveSingleParam(e,n.name,i,t,r,a,n.key);await l.signalAndWait();let c=this.getEffectiveInquirer(s,a,o,r),u=await this.resolveComponentHost(t,s,r,c);return u?u.getInstanceByContextId(this.getContextId(r,u),this.getInquirerId(c)).instance:void 0}catch(e){if(l.signal(),!n.isOptional)throw e;return}}));return c.map((e,t)=>({...e,instance:u[t]}))}reflectProperties(e){let t=Reflect.getMetadata(n.PROPERTY_DEPS_METADATA,e)||[],r=Reflect.getMetadata(n.OPTIONAL_PROPERTY_DEPS_METADATA,e)||[];return t.map(e=>({...e,name:e.type,isOptional:r.includes(e.key)}))}applyProperties(e,t){(0,i.isObject)(e)&&(0,a.iterate)(t).filter(e=>!(0,i.isNil)(e.instance)).forEach(t=>e[t.key]=t.instance)}async instantiateClass(e,t,n,r=f.STATIC_CONTEXT,a){let{metatype:o,inject:s}=t,c=this.getInquirerId(a),l=n.getInstanceByContextId(this.getContextId(r,n),c),u=t.isStatic(r,a)||t.isInRequestScope(r,a)||t.isLazyTransient(r,a)||t.isExplicitlyRequested(r,a);return this.options?.preview&&!t.host?.initOnPreview?(l.isResolved=!0,l.instance):((0,i.isNil)(s)&&u?(l.instance=t.forwardRef?Object.assign(l.instance,new o(...e)):new o(...e),l.instance=this.instanceDecorator(l.instance),l.isConstructorCalled=!0):u&&(l.instance=await n.metatype(...e),l.instance=this.instanceDecorator(l.instance),l.isConstructorCalled=!0),l.isResolved=!0,l.instance)}async loadPerContext(e,t,n,r,i){if(!i){let t=e.constructor;i=n.get(t)}await this.loadInstance(i,n,t,r,i),await this.loadEnhancersPerContext(i,r,i);let a=i.getInstanceByContextId(this.getContextId(r,i),i.id);return a&&a.instance}async loadEnhancersPerContext(e,t,n){let r=e.getEnhancersMetadata()||[];await Promise.all(r.map(e=>{let r=e.host;return this.loadInstance(e,r.injectables,r,t,n)}))}async loadCtorMetadata(e,t,n,r){return(await Promise.all(e.map(async e=>this.resolveScopedComponentHost(e,t,n,r)))).map((i,a)=>{let o=e[a],s=this.getEffectiveInquirer(o,n,r,t);return i?.getInstanceByContextId(this.getContextId(t,i),this.getInquirerId(s)).instance})}async loadPropertiesMetadata(e,t,n){let r=await Promise.all(e.map(async({wrapper:e,key:r})=>({key:r,host:await this.resolveComponentHost(e.host,e,t,n)}))),i=this.getInquirerId(n);return r.map(({key:e,host:n})=>({key:e,name:e,instance:n.getInstanceByContextId(this.getContextId(t,n),i).instance}))}getInquirerId(e){return e?e.id:void 0}getEffectiveInquirer(e,t,n,r){return e?.isTransient&&t?.isTransient&&n&&r!==f.STATIC_CONTEXT?n:t}resolveScopedComponentHost(e,t,n,r){return this.isInquirerRequest(e,r)?r:this.resolveComponentHost(e.host,e,t,this.getEffectiveInquirer(e,n,r,t))}isInquirerRequest(e,t){return e.isTransient&&e.name===p.INQUIRER&&t}isInquirer(e,t){return e===p.INQUIRER&&t}addDependencyMetadata(e,t,n){(0,i.isSymbol)(e)||(0,i.isString)(e)?t.addPropertiesMetadata(e,n):t.addCtorMetadata(e,n)}getTokenName(e){return(0,i.isFunction)(e)?e.name:e.toString()}printResolvingDependenciesLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=(t?.name&&t.name.toString?.())??`unknown`,a=i===n,o=`Resolving dependency ${r.clc.cyanBright(n)}${r.clc.green(` in the `)}${r.clc.yellow(i)}${r.clc.green(` provider ${a?`(alias)`:``}`)}`;this.logger.log(o)}printLookingForProviderLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=t?.metatype?.name??`unknown`;this.logger.log(`Looking for ${r.clc.cyanBright(n)}${r.clc.green(` in `)}${r.clc.magentaBright(i)}`)}printFoundInModuleLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=t?.metatype?.name??`unknown`;this.logger.log(`Found ${r.clc.cyanBright(n)}${r.clc.green(` in `)}${r.clc.magentaBright(i)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}getContextId(e,t){return e.getParent?e.getParent({token:t.token,isTreeDurable:t.isDependencyTreeDurable()}):e}getNowTimestamp(){return o.performance.now()}}})),BS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceLinksHost=void 0;var t=M(),n=_S();e.InstanceLinksHost=class{constructor(e){this.container=e,this.instanceLinks=new Map,this.initialize()}get(e,t={}){let r=this.instanceLinks.get(e);if(!r)throw new n.UnknownElementException(this.getInstanceNameByToken(e));if(t.each)return r;let i=t.moduleId?r.find(e=>e.moduleId===t.moduleId):r[r.length-1];if(!i)throw new n.UnknownElementException(this.getInstanceNameByToken(e));return i}initialize(){this.container.getModules().forEach(e=>{let{providers:t,injectables:n,controllers:r}=e;t.forEach((t,n)=>this.addLink(t,n,e,`providers`)),n.forEach((t,n)=>this.addLink(t,n,e,`injectables`)),r.forEach((t,n)=>this.addLink(t,n,e,`controllers`))})}addLink(e,t,n,r){let i={moduleId:n.id,wrapperRef:e,collection:n[r],token:t},a=this.instanceLinks.get(t);a?a.push(i):this.instanceLinks.set(t,[i])}getInstanceNameByToken(e){return(0,t.isFunction)(e)?e?.name:e}}})),VS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleRef=void 0;var t=U(),n=DS(),r=OS(),i=kS(),a=Ux(),o=zS(),s=BS(),c=LS();e.ModuleRef=class extends i.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||=new s.InstanceLinksHost(this.container),this._instanceLinksHost}constructor(e){super(),this.container=e,this.injector=new o.Injector({preview:e.contextOptions?.preview,instanceDecorator:e.contextOptions?.instrument?.instanceDecorator})}introspect(e){let{wrapperRef:n}=this.instanceLinksHost.get(e),r=t.Scope.DEFAULT;return n.isDependencyTreeStatic()?n.isTransient&&(r=t.Scope.TRANSIENT):r=t.Scope.REQUEST,{scope:r}}registerRequestByContextId(e,t){this.container.registerRequestProvider(e,t)}async instantiateClass(e,t,i){let o=new c.InstanceWrapper({name:e&&e.name,metatype:e,isResolved:!1,scope:(0,n.getClassScope)(e),durable:(0,r.isDurable)(e),host:t});return e?.prototype&&o.setInstanceByContextId(i??a.STATIC_CONTEXT,{instance:Object.create(e.prototype),isResolved:!1,isPending:!1}),new Promise(async(n,r)=>{try{await this.injector.resolveConstructorParams(o,t,void 0,async r=>{let a=await this.injector.resolveProperties(o,t,void 0,i,o),s=new e(...r);this.injector.applyProperties(s,a),n(s)},i,o)}catch(e){r(e)}})}}})),HS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LazyModuleLoader=void 0;var t=ES(),n=VS();e.LazyModuleLoader=class{constructor(e,t,n,r,i){this.dependenciesScanner=e,this.instanceLoader=t,this.moduleCompiler=n,this.modulesContainer=r,this.moduleOverrides=i}async load(e,t){this.registerLoggerConfiguration(t);let n=await e(),r=await this.dependenciesScanner.scanForModules({moduleDefinition:n,overrides:this.moduleOverrides,lazy:!0});if(r.length===0){let{token:e}=await this.moduleCompiler.compile(n),t=this.modulesContainer.get(e);return t&&this.getTargetModuleRef(t)}let i=this.createLazyModulesContainer(r);await this.dependenciesScanner.scanModulesForDependencies(i),await this.instanceLoader.createInstancesOfDependencies(i);let[a]=r;return this.getTargetModuleRef(a)}registerLoggerConfiguration(e){e?.logger===!1&&this.instanceLoader.setLogger(new t.SilentLogger)}createLazyModulesContainer(e){return e=Array.from(new Set(e)),new Map(e.map(e=>[e.token,e]))}getTargetModuleRef(e){return e.getProviderByKey(n.ModuleRef).instance}}})),US=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Reflector=void 0;var t=U(),n=M(),r=P();e.Reflector=class{static createDecorator(e={}){let n=e.key??(0,r.uid)(21),i=r=>(i,a,o)=>{let s=e.transform?e.transform(r):r;(0,t.SetMetadata)(n,s??{})(i,a,o)};return i.KEY=n,i}get(e,t){let n=e.KEY??e;return Reflect.getMetadata(n,t)}getAll(e,t){return(t||[]).map(t=>this.get(e,t))}getAllAndMerge(e,t){let r=this.getAll(e,t).filter(e=>e!==void 0);if((0,n.isEmpty)(r))return r;if(r.length===1){let e=r[0];return(0,n.isObject)(e)?e:r}return r.reduce((e,t)=>Array.isArray(e)?e.concat(t):(0,n.isObject)(e)&&(0,n.isObject)(t)?{...e,...t}:[e,t])}getAllAndOverride(e,t){for(let n of t){let t=this.get(e,n);if(t!==void 0)return t}}}})),WS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializedGraph=void 0;var t=Ax(),n=mS(),r=Rx(),i=TS(),a=HS(),o=VS(),s=Nx(),c=Vx(),l=US(),u=PS(),d=class e{constructor(){this.nodes=new Map,this.edges=new Map,this.entrypoints=new Map,this.extras={orphanedEnhancers:[],attachedEnhancers:[]},this._status=`complete`}set status(e){this._status=e}set metadata(e){this._metadata=e}insertNode(t){return t.metadata.type===`provider`&&e.INTERNAL_PROVIDERS.includes(t.metadata.token)&&(t.metadata={...t.metadata,internal:!0}),this.nodes.has(t.id)?this.nodes.get(t.id):(this.nodes.set(t.id,t),t)}insertEdge(t){t.metadata.type===`class-to-class`&&(e.INTERNAL_PROVIDERS.includes(t.metadata.sourceClassToken)||e.INTERNAL_PROVIDERS.includes(t.metadata.targetClassToken))&&(t.metadata={...t.metadata,internal:!0});let n=t.id??this.generateUuidByEdgeDefinition(t),r={...t,id:n};return this.edges.set(n,r),r}insertEntrypoint(e,t){this.entrypoints.has(t)?this.entrypoints.get(t).push(e):this.entrypoints.set(t,[e])}insertOrphanedEnhancer(e){this.extras.orphanedEnhancers.push(e)}insertAttachedEnhancer(e){this.extras.attachedEnhancers.push({nodeId:e})}getNodeById(e){return this.nodes.get(e)}toJSON(){let e={nodes:Object.fromEntries(this.nodes),edges:Object.fromEntries(this.edges),entrypoints:Object.fromEntries(this.entrypoints),extras:this.extras};return this._status&&(e.status=this._status),this._metadata&&(e.metadata=this._metadata),e}toString(){return JSON.stringify(this.toJSON(),(e,t)=>typeof t==`symbol`?t.toString():typeof t==`function`?t.name??`Function`:t,2)}generateUuidByEdgeDefinition(e){return u.DeterministicUuidRegistry.get(JSON.stringify(e))}};e.SerializedGraph=d,d.INTERNAL_PROVIDERS=[t.ApplicationConfig,o.ModuleRef,r.HttpAdapterHost,a.LazyModuleLoader,n.ExternalContextCreator,s.ModulesContainer,l.Reflector,d,r.HttpAdapterHost.name,l.Reflector.name,c.REQUEST,i.INQUIRER]})),GS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleCompiler=void 0,e.ModuleCompiler=class{constructor(e){this._moduleOpaqueKeyFactory=e}get moduleOpaqueKeyFactory(){return this._moduleOpaqueKeyFactory}async compile(e){e=await e;let{type:t,dynamicMetadata:n}=this.extractMetadata(e);return{type:t,dynamicMetadata:n,token:n?this._moduleOpaqueKeyFactory.createForDynamic(t,n,e):this._moduleOpaqueKeyFactory.createForStatic(t,e)}}extractMetadata(e){if(!this.isDynamicModule(e))return{type:e?.forwardRef?e.forwardRef():e,dynamicMetadata:void 0};let{module:t,...n}=e;return{type:t,dynamicMetadata:n}}isDynamicModule(e){return!!e.module}}})),KS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.requestProvider=void 0;var t=U();e.requestProvider={provide:Vx().REQUEST,scope:t.Scope.REQUEST,useFactory:()=>{}}})),qS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(US(),e)})),JS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inquirerProvider=void 0;var t=U();e.inquirerProvider={provide:TS().INQUIRER,scope:t.Scope.TRANSIENT,useFactory:()=>{}}})),YS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalCoreModule=void 0;var n=k(),r=U(),i=KS(),a=qS(),o=JS(),s={provide:a.Reflector.name,useExisting:a.Reflector},c=t=class{static register(e){return{module:t,providers:[...e],exports:[...e.map(e=>e.provide)]}}};e.InternalCoreModule=c,e.InternalCoreModule=c=t=n.__decorate([(0,r.Global)(),(0,r.Module)({providers:[a.Reflector,s,i.requestProvider,o.inquirerProvider],exports:[a.Reflector,s,i.requestProvider,o.inquirerProvider]})],c)})),XS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalProvidersStorage=void 0;var t=Rx();e.InternalProvidersStorage=class{constructor(){this._httpAdapterHost=new t.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(e){this._httpAdapter=e}}})),ZS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Module=void 0;var t=j(),n=pn(),r=mn(),i=M(),a=L(),o=Ax(),s=CS(),c=Hx(),l=DS(),u=OS(),d=FS(),f=Ux(),p=LS(),m=VS();e.Module=class{constructor(e,t){this._metatype=e,this.container=t,this._imports=new Set,this._providers=new Map,this._injectables=new Map,this._middlewares=new Map,this._controllers=new Map,this._entryProviderKeys=new Set,this._exports=new Set,this._distance=0,this._initOnPreview=!1,this._isGlobal=!1,this.addCoreProviders(),this._id=this.generateUuid()}get id(){return this._id}get token(){return this._token}set token(e){this._token=e}get name(){return this.metatype.name}get isGlobal(){return this._isGlobal}set isGlobal(e){this._isGlobal=e}get initOnPreview(){return this._initOnPreview}set initOnPreview(e){this._initOnPreview=e}get providers(){return this._providers}get middlewares(){return this._middlewares}get imports(){return this._imports}get injectables(){return this._injectables}get controllers(){return this._controllers}get entryProviders(){return Array.from(this._entryProviderKeys).map(e=>this.providers.get(e))}get exports(){return this._exports}get instance(){if(!this._providers.has(this._metatype))throw new s.RuntimeException;return this._providers.get(this._metatype).instance}get metatype(){return this._metatype}get distance(){return this._distance}set distance(e){this._distance=e}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){let e=this.createModuleReferenceType();this._providers.set(m.ModuleRef,new p.InstanceWrapper({token:m.ModuleRef,name:m.ModuleRef.name,metatype:m.ModuleRef,isResolved:!0,instance:new e,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new p.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(o.ApplicationConfig,new p.InstanceWrapper({token:o.ApplicationConfig,name:o.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(e,t,n){if(this.isCustomProvider(e))return this.addCustomProvider(e,this._injectables,t);let r=this.injectables.get(e);if(r||(r=new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),subtype:t,host:this}),this._injectables.set(e,r)),n){let e=this._controllers.get(n)||this._providers.get(n);e&&e.addEnhancerMetadata(r)}return r}addProvider(e,t){if(this.isCustomProvider(e))return this.isEntryProvider(e.provide)&&this._entryProviderKeys.add(e.provide),this.addCustomProvider(e,this._providers,t);let n=this._providers.has(e);return(this.isTransientProvider(e)||this.isRequestScopeProvider(e))&&n?e:(this._providers.set(e,new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),host:this})),this.isEntryProvider(e)&&this._entryProviderKeys.add(e),e)}isCustomProvider(e){return!(0,i.isNil)(e.provide)}addCustomProvider(e,t,n){return this.isCustomClass(e)?this.addCustomClass(e,t,n):this.isCustomValue(e)?this.addCustomValue(e,t,n):this.isCustomFactory(e)?this.addCustomFactory(e,t,n):this.isCustomUseExisting(e)&&this.addCustomUseExisting(e,t,n),e.provide}isCustomClass(e){return!(0,i.isUndefined)(e.useClass)}isCustomValue(e){return(0,i.isObject)(e)&&Object.prototype.hasOwnProperty.call(e,`useValue`)}isCustomFactory(e){return!(0,i.isUndefined)(e.useFactory)}isCustomUseExisting(e){return!(0,i.isUndefined)(e.useExisting)}isDynamicModule(e){return e&&e.module}addCustomClass(e,t,n){let{scope:r,durable:a}=e,{useClass:o}=e;(0,i.isUndefined)(r)&&(r=(0,l.getClassScope)(o)),(0,i.isUndefined)(a)&&(a=(0,u.isDurable)(o));let s=e.provide;t.set(s,new p.InstanceWrapper({token:s,name:o?.name||o,metatype:o,instance:null,isResolved:!1,scope:r,durable:a,host:this,subtype:n}))}addCustomValue(e,t,n){let{useValue:r,provide:i}=e,a=this.container.contextOptions?.instrument?.instanceDecorator;t.set(i,new p.InstanceWrapper({token:i,name:i?.name||i,metatype:null,instance:a?a(r):r,isResolved:!0,async:r instanceof Promise,host:this,subtype:n}))}addCustomFactory(e,t,n){let{useFactory:r,inject:i,scope:a,durable:o,provide:s}=e;t.set(s,new p.InstanceWrapper({token:s,name:s?.name||s,metatype:r,instance:null,isResolved:!1,inject:i||[],scope:a,durable:o,host:this,subtype:n}))}addCustomUseExisting(e,t,n){let{useExisting:r,provide:i}=e;t.set(i,new p.InstanceWrapper({token:i,name:i?.name||i,metatype:(e=>e),instance:null,isResolved:!1,inject:[r],host:this,isAlias:!0,subtype:n}))}addExportedProviderOrModule(e){let t=e=>this._exports.add(this.validateExportedProvider(e));if(this.isCustomProvider(e))return this.addCustomExportedProvider(e);if((0,i.isString)(e)||(0,i.isSymbol)(e))return t(e);if(this.isDynamicModule(e)){let{module:n}=e;return t(n)}t(e)}addCustomExportedProvider(e){let t=e.provide;if((0,i.isString)(t)||(0,i.isSymbol)(t))return this._exports.add(this.validateExportedProvider(t));this._exports.add(this.validateExportedProvider(t))}validateExportedProvider(e){if(this._providers.has(e))return e;if(!(0,a.iterate)(this._imports.values()).filter(e=>!!e).map(({metatype:e})=>e).filter(e=>!!e).toArray().includes(e)){let{name:t}=this.metatype,n=(0,i.isFunction)(e)?e.name:e;throw new s.UnknownExportException(n,t)}return e}addController(e){this._controllers.set(e,new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),host:this})),this.assignControllerUniqueId(e)}assignControllerUniqueId(e){Object.defineProperty(e,f.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,r.randomStringGenerator)()})}addImport(e){this._imports.add(e)}replace(e,t){if(t.isProvider&&this.hasProvider(e))return this._providers.get(e).mergeWith({provide:e,...t});if(!t.isProvider&&this.hasInjectable(e))return this._injectables.get(e).mergeWith({provide:e,...t})}hasProvider(e){return this._providers.has(e)}hasInjectable(e){return this._injectables.has(e)}getProviderByKey(e){return this._providers.get(e)}getProviderById(e){return Array.from(this._providers.values()).find(t=>t.id===e)}getControllerById(e){return Array.from(this._controllers.values()).find(t=>t.id===e)}getInjectableById(e){return Array.from(this._injectables.values()).find(t=>t.id===e)}getMiddlewareById(e){return Array.from(this._middlewares.values()).find(t=>t.id===e)}getNonAliasProviders(){return[...this._providers].filter(([e,t])=>!t.isAlias)}createModuleReferenceType(){let e=this;return class extends m.ModuleRef{constructor(){super(e.container)}get(t,n={}){return n.strict??=!0,n.each??=!1,this.find(t,n.strict?{moduleId:e.id,each:n.each}:n)}resolve(t,n=(0,c.createContextId)(),r={}){return r.strict??=!0,r.each??=!1,this.resolvePerContext(t,e,n,r)}async create(t,n){if(!(t&&(0,i.isFunction)(t)&&t.prototype))throw new s.InvalidClassException(t);return this.instantiateClass(t,e,n)}}}isEntryProvider(e){return typeof e==`function`?!!Reflect.getMetadata(t.ENTRY_PROVIDER_WATERMARK,e):!1}generateUuid(){let e=this.token?this.token.includes(`:`)?this.token.split(`:`)[1]:this.token:this.name;return e?d.UuidFactory.get(`M__${e}`):(0,r.randomStringGenerator)()}isTransientProvider(e){return(0,l.getClassScope)(e)===n.Scope.TRANSIENT}isRequestScopeProvider(e){return(0,l.getClassScope)(e)===n.Scope.REQUEST}}})),QS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ByReferenceModuleOpaqueKeyFactory=void 0;var t=mn(),n=require(`crypto`),r=Symbol(`K_MODULE_ID`);e.ByReferenceModuleOpaqueKeyFactory=class{constructor(e){this.keyGenerationStrategy=e?.keyGenerationStrategy??`random`}createForStatic(e,t=e){return this.getOrCreateModuleId(e,void 0,t)}createForDynamic(e,t,n){return this.getOrCreateModuleId(e,t,n)}getOrCreateModuleId(e,t,n){if(n[r])return n[r];let i;return i=this.keyGenerationStrategy===`random`?this.generateRandomString():t?`${this.generateRandomString()}:${this.hashString(e.name+JSON.stringify(t))}`:`${this.generateRandomString()}:${this.hashString(e.toString())}`,n[r]=i,i}hashString(e){return(0,n.createHash)(`sha256`).update(e).digest(`hex`)}generateRandomString(){return(0,t.randomStringGenerator)()}}})),$S=s(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}})),eC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeepHashedModuleOpaqueKeyFactory=void 0;var t=ut(),n=mn(),r=M(),i=require(`crypto`),a=$S(),o=`class `,s=6;e.DeepHashedModuleOpaqueKeyFactory=class e{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new t.Logger(e.name,{timestamp:!0})}createForStatic(e){let t=`${this.getModuleId(e)}_${this.getModuleName(e)}`;if(this.moduleTokenCache.has(t))return this.moduleTokenCache.get(t);let n=this.hashString(t);return this.moduleTokenCache.set(t,n),n}createForDynamic(e,t){let n={id:this.getModuleId(e),module:this.getModuleName(e),dynamic:t},r=performance.now(),i=this.getStringifiedOpaqueToken(n),a=performance.now()-r;if(a>10){let e=a.toFixed(2);this.logger.warn(`The module "${n.module}" is taking ${e}ms to serialize, this may be caused by larger objects statically assigned to the module. Consider changing the "moduleIdGeneratorAlgorithm" option to "reference" to improve the performance.`)}return this.hashString(i)}getStringifiedOpaqueToken(e){return e?(0,a.default)(e,this.replacer):``}getModuleId(e){let t=this.moduleIdsCache.get(e);return t||(t=(0,n.randomStringGenerator)(),this.moduleIdsCache.set(e,t),t)}getModuleName(e){return e.name}hashString(e){return(0,i.createHash)(`sha256`).update(e).digest(`hex`)}replacer(e,t){if((0,r.isFunction)(t)){let e=t.toString();return e.slice(0,s)===o?t.name:e}return(0,r.isSymbol)(t)?t.toString():t}}})),tC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestContainer=void 0;var t=j(),n=Px(),r=CS(),i=wS(),a=WS(),o=Vx(),s=GS(),c=YS(),l=XS(),u=ZS(),d=Nx(),f=QS(),p=eC();e.NestContainer=class{constructor(e=void 0,t=void 0){this._applicationConfig=e,this._contextOptions=t,this.globalModules=new Set,this.modules=new d.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new l.InternalProvidersStorage,this._serializedGraph=new a.SerializedGraph;let n=this._contextOptions?.moduleIdGeneratorAlgorithm===`deep-hash`?new p.DeepHashedModuleOpaqueKeyFactory:new f.ByReferenceModuleOpaqueKeyFactory({keyGenerationStrategy:this._contextOptions?.snapshot?`shallow`:`random`});this.moduleCompiler=new s.ModuleCompiler(n)}get serializedGraph(){return this._serializedGraph}get applicationConfig(){return this._applicationConfig}get contextOptions(){return this._contextOptions}setHttpAdapter(e){if(this.internalProvidersStorage.httpAdapter=e,!this.internalProvidersStorage.httpAdapterHost)return;let t=this.internalProvidersStorage.httpAdapterHost;t.httpAdapter=e}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}async addModule(e,t){if(!e)throw new r.UndefinedForwardRefException(t);let{type:n,dynamicMetadata:i,token:a}=await this.moduleCompiler.compile(e);return this.modules.has(a)?{moduleRef:this.modules.get(a),inserted:!0}:{moduleRef:await this.setModule({token:a,type:n,dynamicMetadata:i},t),inserted:!0}}async replaceModule(e,t,n){if(!e||!t)throw new r.UndefinedForwardRefException(n);let{token:i}=await this.moduleCompiler.compile(e),{type:a,dynamicMetadata:o}=await this.moduleCompiler.compile(t);return{moduleRef:await this.setModule({token:i,type:a,dynamicMetadata:o},n),inserted:!1}}async setModule({token:e,dynamicMetadata:t,type:n},r){let i=new u.Module(n,this);i.token=e,i.initOnPreview=this.shouldInitOnPreview(n),this.modules.set(e,i);let a=[].concat(r,n);return await this.addDynamicMetadata(e,t,a),this.isGlobalModule(n,t)&&(i.isGlobal=!0,i.distance=Number.MAX_VALUE,this.addGlobalModule(i)),i}async addDynamicMetadata(e,t,n){if(!t)return;this.dynamicModulesMetadata.set(e,t);let{imports:r}=t;await this.addDynamicModules(r,n)}async addDynamicModules(e,t){e&&await Promise.all(e.map(e=>this.addModule(e,t)))}isGlobalModule(e,n){return n&&n.global?!0:!!Reflect.getMetadata(t.GLOBAL_MODULE_METADATA,e)}addGlobalModule(e){this.globalModules.add(e)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(e){return this.modules.get(e)}getInternalCoreModuleRef(){return this.internalCoreModule}async addImport(e,t){if(!this.modules.has(t))return;let n=this.modules.get(t),{token:r}=await this.moduleCompiler.compile(e),i=this.modules.get(r);n.addImport(i)}addProvider(e,t,i){let a=this.modules.get(t);if(!e)throw new r.CircularDependencyException(a?.metatype.name);if(!a)throw new r.UnknownModuleException;let o=a.addProvider(e,i),s=a.getProviderByKey(o);return n.DiscoverableMetaHostCollection.inspectProvider(this.modules,s),o}addInjectable(e,t,n,i){if(!this.modules.has(t))throw new r.UnknownModuleException;return this.modules.get(t).addInjectable(e,n,i)}addExportedProviderOrModule(e,t){if(!this.modules.has(t))throw new r.UnknownModuleException;this.modules.get(t).addExportedProviderOrModule(e)}addController(e,t){if(!this.modules.has(t))throw new r.UnknownModuleException;let i=this.modules.get(t);i.addController(e);let a=i.controllers.get(e);n.DiscoverableMetaHostCollection.inspectController(this.modules,a)}clear(){this.modules.clear()}replace(e,t){this.modules.forEach(n=>n.replace(e,t))}bindGlobalScope(){this.modules.forEach(e=>this.bindGlobalsToImports(e))}bindGlobalsToImports(e){this.globalModules.forEach(t=>this.bindGlobalModuleToModule(e,t))}bindGlobalModuleToModule(e,t){e===t||e===this.internalCoreModule||e.addImport(t)}getDynamicMetadataByToken(e,t){let n=this.dynamicModulesMetadata.get(e);return t?n?.[t]??[]:n}registerCoreModuleRef(e){this.internalCoreModule=e,this.modules[c.InternalCoreModule.name]=e}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(e,t){this.internalCoreModule.getProviderByKey(o.REQUEST).setInstanceByContextId(t,{instance:e,isResolved:!0})}shouldInitOnPreview(e){return i.InitializeOnPreviewAllowlist.has(e)}}})),nC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(tC(),e),t.__exportStar(NS(),e),t.__exportStar(HS(),e),t.__exportStar(VS(),e),t.__exportStar(Nx(),e)})),rC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PartialGraphHost=void 0,e.PartialGraphHost=class{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(e){this.partialGraph=e}}})),iC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphInspector=void 0;var t=jS(),n=PS(),r=rC();e.GraphInspector=class{constructor(e){this.container=e,this.enhancersMetadataCache=[],this.graph=e.serializedGraph}inspectModules(e=this.container.getModules()){for(let t of e.values())this.insertModuleNode(t),this.insertClassNodes(t),this.insertModuleToModuleEdges(t);this.enhancersMetadataCache.forEach(e=>this.insertEnhancerEdge(e)),n.DeterministicUuidRegistry.clear()}registerPartial(e){this.graph.status=`partial`,e instanceof t.UnknownDependenciesException?this.graph.metadata={cause:{type:`unknown-dependencies`,context:e.context,moduleId:e.moduleRef?.id,nodeId:e.metadata?.id}}:this.graph.metadata={cause:{type:`unknown`,error:e}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(e,t){e.getCtorMetadata()?.forEach((n,r)=>this.insertClassToClassEdge(e,n,t,r,`constructor`)),e.getPropertiesMetadata()?.forEach(({key:n,wrapper:r})=>this.insertClassToClassEdge(e,r,t,n,`property`))}insertEnhancerMetadataCache(e){this.enhancersMetadataCache.push(e)}insertOrphanedEnhancer(e){this.graph.insertOrphanedEnhancer({...e,ref:e.ref?.constructor?.name??`Object`})}insertAttachedEnhancer(e){let t=this.graph.getNodeById(e.id);t.metadata.global=!0,this.graph.insertAttachedEnhancer(t.id)}insertEntrypointDefinition(e,t){e={...e,id:`${e.classNodeId}_${e.methodName}`},this.graph.insertEntrypoint(e,t)}insertClassNode(e,t,n){this.graph.insertNode({id:t.id,label:t.name,parent:e.id,metadata:{type:n,internal:t.metatype===e.metatype,sourceModuleName:e.name,durable:t.isDependencyTreeDurable(),static:t.isDependencyTreeStatic(),scope:t.scope,transient:t.isTransient,exported:e.exports.has(t.token),token:t.token,subtype:t.subtype,initTime:t.initTime}})}insertModuleNode(e){let t=this.container.getDynamicMetadataByToken(e.token),n={id:e.id,label:e.name,metadata:{type:`module`,global:e.isGlobal,dynamic:!!t,internal:e.name===`InternalCoreModule`}};this.graph.insertNode(n)}insertModuleToModuleEdges(e){for(let t of e.imports)this.graph.insertEdge({source:e.id,target:t.id,metadata:{type:`module-to-module`,sourceModuleName:e.name,targetModuleName:t.name}})}insertEnhancerEdge(e){let t=this.container.getModuleByKey(e.moduleToken),n=t.controllers.get(e.classRef)??t.providers.get(e.classRef),r=this.graph.getNodeById(n.id),i=r.metadata.enhancers??[];if(e.enhancerInstanceWrapper)this.insertClassToClassEdge(n,e.enhancerInstanceWrapper,t,void 0,`decorator`),i.push({id:e.enhancerInstanceWrapper.id,methodKey:e.methodKey,subtype:e.subtype});else{let t=e.enhancerRef.constructor?.name??e.enhancerRef.name;i.push({name:t,methodKey:e.methodKey,subtype:e.subtype})}r.metadata.enhancers=i}insertClassToClassEdge(e,t,n,r,i){this.graph.insertEdge({source:e.id,target:t.id,metadata:{type:`class-to-class`,sourceModuleName:n.name,sourceClassName:e.name,targetClassName:t.name,sourceClassToken:e.token,targetClassToken:t.token,targetModuleName:t.host?.name,keyOrIndex:r,injectionType:i}})}insertClassNodes(e){e.providers.forEach(t=>this.insertClassNode(e,t,`provider`)),e.injectables.forEach(t=>this.insertClassNode(e,t,`injectable`)),e.controllers.forEach(t=>this.insertClassNode(e,t,`controller`))}}})),aC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(iC(),e),t.__exportStar(wS(),e),t.__exportStar(rC(),e),t.__exportStar(WS(),e)})),oC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=u,e.compile=d,e.match=m,e.pathToRegexp=h,e.stringify=b;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function o(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var c=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=c;var l=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=l;function u(e,t={}){let{encodePath:a=n}=t,o=[...e],s=0;function u(t){let n=[],c=``;function d(){c&&=(n.push({type:`text`,value:a(c)}),``)}for(;s<o.length;){let a=o[s++];if(a===t)return d(),n;if(a===`\\`){if(s===o.length)throw new l(`Unexpected end after \\ at index ${s}`,e);c+=o[s++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,c=``;if(r.test(o[s]))do c+=o[s++];while(i.test(o[s]));else if(o[s]===`"`){let t=s;for(;s<o.length;){if(o[++s]===`"`){s++,t=0;break}o[s]===`\\`&&s++,c+=o[s]}if(t)throw new l(`Unterminated quote at index ${t}`,e)}if(!c)throw new l(`Missing parameter name at index ${s}`,e);d(),n.push({type:t,name:c});continue}if(a===`{`){d(),n.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new l(`Unexpected ${a} at index ${s-1}`,e);c+=a}if(t)throw new l(`Unexpected end at index ${s}, expected ${t}`,e);return d(),n}return new c(u(``),e)}function d(e,n={}){let{encode:r=encodeURIComponent,delimiter:i=t}=n,a=f((typeof e==`object`?e:u(e,n)).tokens,i,r);return function(e={}){let t=[],n=a(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function f(e,t,n){let r=e.map(e=>p(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function p(e,t,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let n=f(e.tokens,t,r);return(e,t)=>{let r=t.length,i=n(e,t);return t.length===r?i:(t.length=r,``)}}let i=r||n;return e.type===`wildcard`&&r!==!1?(n,r)=>{let a=n[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let n=0;n<a.length;n++){if(typeof a[n]!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);n>0&&(o+=t),o+=i(a[n])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function m(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=h(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function h(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:o=!0}=n,c=[],d=``,f=0;function p(e){if(Array.isArray(e)){for(let t of e)p(t);return}let t=typeof e==`object`?e:u(e,n);g(t.tokens,0,[],e=>{if(f>=256)throw new l(`Too many path combinations`,t.originalPath);f>0&&(d+=`|`),d+=_(e,r,c,t.originalPath),f++})}p(e);let m=`^(?:${d})`;return o&&(m+=`(?:`+s(r)+`$)?`),m+=i?`$`:`(?=`+s(r)+`|$)`,{regexp:new RegExp(m,a?``:`i`),keys:c}}function g(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;g(i.tokens,0,n,n=>g(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function _(e,t,n,r){let i=``,a=``,o=``,c=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=s(m.value),a+=m.value,c===2&&(o+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(c&&!a)throw new l(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${v(t,a)}+)`:f(d,`wildcard`)?`(${v(t,p(d))}+)`:u&1?`(${v(t,a)}+|${s(a)})`:`(${v(t,``)}+)`,u|=c=1):(i+=u&2?`(${v(a,``)}+)`:o?`(${v(o,``)}+|${v(t,``)}+)`:`([^]+)`,o=``,u|=c=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function v(e,t){return t.length>e.length?v(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${s(e)}|${s(t)})[^])`:e.length>1?`(?:(?!${s(e)})[^${s(t)}])`:`[^${s(e+t)}]`)}function y(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=o(r.value);continue}if(r.type===`group`){n+=`{`+y(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+x(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+x(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function b(e){return y(e.tokens,0)}function x(e,t){return!a.test(e)||t?.type===`text`&&i.test(t.value[0])?JSON.stringify(e):e}})),sC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyRouteConverter=void 0;var t=U(),n=(e,t)=>`Unsupported route path: "${t}". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide.`,r=class{static tryConvert(e,t){let n=e.startsWith(`/`)?e:`/${e}`,r=e.endsWith(`/`)?n:`${n}/`,i=t?.logs??!0?this.printWarning.bind(this):()=>{};return r.endsWith(`/(.*)/`)?(r!==`/(.*)/`&&i(e),e.replace(`(.*)`,`{*path}`)):r.endsWith(`/*/`)?(r!==`/*/`&&i(e),e.replace(`*`,`{*path}`)):r.endsWith(`/+/`)?(i(e),e.replace(`/+`,`/*path`)):r.includes(`/*/`)?(i(e),e.replaceAll(`/*/`,(e,t)=>`/*path${t}/`)):e}static printError(e){this.logger.error(n`${e}`)}static printWarning(e){this.logger.warn(n`${e}`+` Attempting to auto-convert...`)}};e.LegacyRouteConverter=r,r.logger=new t.Logger(r.name)})),cC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=r;var t=U(),n=M();e.isRequestMethodAll=e=>t.RequestMethod.ALL===e||e===-1;function r(t,r,i){return t.some(t=>(0,e.isRequestMethodAll)(t.requestMethod)||t.requestMethod===i?t.pathRegex.exec((0,n.addLeadingSlash)(r)):!1)}})),lC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flattenRoutePaths=n;var t=M();function n(e){let r=[];return e.forEach(e=>{if(e.module&&e.path&&r.push({module:e.module,path:e.path}),e.children){let i=e.children;i.forEach(n=>{!(0,t.isString)(n)&&(0,t.isString)(n.path)?n.path=(0,t.normalizePath)((0,t.normalizePath)(e.path)+(0,t.normalizePath)(n.path)):r.push({path:e.path,module:n})}),r.push(...n(i))}}),r}})),uC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(cC(),e),t.__exportStar(lC(),e)})),dC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapToClass=e.filterMiddleware=e.mapToExcludeRoute=void 0,e.isMiddlewareClass=c,e.assignToken=l,e.isMiddlewareRouteExcluded=u;var t=U(),n=M(),r=L(),i=oC(),a=P(),o=sC(),s=uC();e.mapToExcludeRoute=e=>e.map(e=>{let r=(0,n.isString)(e)?e:e.path,a=o.LegacyRouteConverter.tryConvert(r);try{return(0,n.isString)(e)?{path:a,requestMethod:t.RequestMethod.ALL,pathRegex:(0,i.pathToRegexp)((0,n.addLeadingSlash)(a)).regexp}:{path:a,requestMethod:e.method,pathRegex:(0,i.pathToRegexp)((0,n.addLeadingSlash)(a)).regexp}}catch(e){throw e instanceof TypeError&&o.LegacyRouteConverter.printError(r),e}}),e.filterMiddleware=(t,i,a)=>{let o=(0,e.mapToExcludeRoute)(i);return(0,r.iterate)([]).concat(t).filter(n.isFunction).map(t=>(0,e.mapToClass)(t,o,a)).toArray()},e.mapToClass=(e,t,n)=>c(e)?t.length<=0?e:l(class extends e{use(...e){let[r,i,a]=e;return u(r,t,n)?a():super.use(...e)}},e.name):l(class{constructor(){this.use=(...r)=>{let[i,a,o]=r;return u(i,t,n)?o():e(...r)}}});function c(e){let t=e.toString();if(t.substring(0,5)===`class`)return!0;let r=t.split(` `);return r[0]===`function`&&/[A-Z]/.test(r[1]?.[0])&&(0,n.isFunction)(e.prototype?.use)}function l(e,t=(0,a.uid)(21)){return Object.defineProperty(e,`name`,{value:t}),e}function u(e,n,r){if(n.length<=0)return!1;let i=r.getRequestMethod(e),a=r.getRequestUrl(e),o=a?a.indexOf(`?`):-1,c=o>=0?a.slice(0,o):a;return(0,s.isRouteExcluded)(n,c,t.RequestMethod[i])}})),fC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareBuilder=void 0;var t=M(),n=L(),r=dC(),i=class e{constructor(e,t,n){this.routesMapper=e,this.httpAdapter=t,this.routeInfoPathExtractor=n,this.middlewareCollection=new Set}apply(...t){return new e.ConfigProxy(this,t.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}};e.MiddlewareBuilder=i,i.ConfigProxy=class{constructor(e,t,n){this.builder=e,this.middleware=t,this.routeInfoPathExtractor=n,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...e){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(e).reduce((e,t)=>{for(let n of this.routeInfoPathExtractor.extractPathFrom(t))e.push({...t,path:n});return e},[])],this}forRoutes(...e){let{middlewareCollection:t}=this.builder,n=this.getRoutesFlatList(e),i=this.removeOverlappedRoutes(n),a={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:i};return t.add(a),this.builder}getRoutesFlatList(e){let{routesMapper:t}=this.builder;return(0,n.iterate)(e).map(e=>t.mapRouteToRouteInfo(e)).flatten().toArray()}removeOverlappedRoutes(e){let n=/(:[^/]*)/g,r=e.filter(e=>e.path.includes(`:`)).map(e=>({method:e.method,path:e.path,regex:RegExp(`^(`+e.path.replace(n,`([^/]*)`)+`)$`,`g`)}));return e.filter(e=>r.find(n=>{if(e.method!==n.method)return!1;let r=(0,t.stripEndSlash)(e.path);return r!==n.path&&n.regex.test(r)})===void 0)}}})),pC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(fC(),e)})),mC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.optionalRequire=t;function t(e,t){try{return t?t():require(e)}catch{return{}}}})),hC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareContainer=void 0;var t=DS(),n=OS(),r=LS();e.MiddlewareContainer=class{constructor(e){this.container=e,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(e){if(!this.middleware.has(e)){let t=this.container.getModuleByKey(e);this.middleware.set(e,t.middlewares)}return this.middleware.get(e)}getConfigurations(){return this.configurationSets}insertConfig(e,i){let a=this.getMiddlewareCollection(i),o=this.getTargetConfig(i),s=e||[],c=e=>{let i=e;a.set(i,new r.InstanceWrapper({scope:(0,t.getClassScope)(e),durable:(0,n.isDurable)(e),name:i?.name??i,metatype:e,token:i}))};s.forEach(e=>{[].concat(e.middleware).map(c),o.add(e)})}getTargetConfig(e){return this.configurationSets.has(e)||this.configurationSets.set(e,new Set),this.configurationSets.get(e)}}})),gC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidMiddlewareException=void 0;var t=Jx(),n=qx();e.InvalidMiddlewareException=class extends n.RuntimeException{constructor(e){super((0,t.INVALID_MIDDLEWARE_MESSAGE)`${e}`)}}})),_C=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionsHandler=void 0;var t=Kx(),n=M(),r=Yx(),i=zx();e.ExceptionsHandler=class extends i.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(e,t){this.invokeCustomFilters(e,t)||super.catch(e,t)}setCustomFilters(e){if(!Array.isArray(e))throw new r.InvalidExceptionFilterException;this.filters=e}invokeCustomFilters(e,r){if((0,n.isEmpty)(this.filters))return!1;let i=(0,t.selectExceptionFilterMetadata)(this.filters,e);return i&&i.func(e,r),!!i}}})),vC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExceptionFilters=void 0;var t=j(),n=M(),r=L(),i=Gx(),a=_C(),o=Ux();e.RouterExceptionFilters=class extends i.BaseExceptionFilterContext{constructor(e,t,n){super(e),this.config=t,this.applicationRef=n}create(e,r,i,s=o.STATIC_CONTEXT,c){this.moduleContext=i;let l=new a.ExceptionsHandler(this.applicationRef),u=this.createContext(e,r,t.EXCEPTION_FILTERS_METADATA,s,c);return(0,n.isEmpty)(u)||l.setCustomFilters(u.reverse()),l}getGlobalMetadata(e=o.STATIC_CONTEXT,t){let n=this.config.getGlobalFilters();if(e===o.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestFilters(),a=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(e,t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(a)}}})),yC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterProxy=void 0;var t=eS();e.RouterProxy=class{createProxy(e,n){return async(r,i,a)=>{try{await e(r,i,a)}catch(e){let o=new t.ExecutionContextHost([r,i,a]);return n.next(e,o),i}}}createExceptionLayerProxy(e,n){return async(r,i,a,o)=>{try{await e(r,i,a,o)}catch(e){let r=new t.ExecutionContextHost([i,a,o]);return n.next(e,r),a}}}}})),bC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareResolver=void 0,e.MiddlewareResolver=class{constructor(e,t){this.middlewareContainer=e,this.injector=t}async resolveInstances(e,t){let n=this.middlewareContainer.getMiddlewareCollection(t),r=async t=>this.resolveMiddlewareInstance(t,n,e);await Promise.all([...n.values()].map(r))}async resolveMiddlewareInstance(e,t,n){await this.injector.loadMiddleware(e,t,n)}}})),xC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutePathFactory=void 0;var t=U(),n=M(),r=uC();e.RoutePathFactory=class{constructor(e){this.applicationConfig=e}create(e,r){let i=[``],a=this.getVersion(e);if(a&&e.versioningOptions?.type===t.VersioningType.URI){let n=this.getVersionPrefix(e.versioningOptions);Array.isArray(a)?i=(0,t.flatten)(i.map(e=>a.map(r=>r===t.VERSION_NEUTRAL?e:`${e}/${n}${r}`))):a!==t.VERSION_NEUTRAL&&(i=i.map(e=>`${e}/${n}${a}`))}return i=this.appendToAllIfDefined(i,e.modulePath),i=this.appendToAllIfDefined(i,e.ctrlPath),i=this.appendToAllIfDefined(i,e.methodPath),e.globalPrefix&&(i=i.map(t=>this.isExcludedFromGlobalPrefix(t,r,a,e.versioningOptions)?t:(0,n.stripEndSlash)(e.globalPrefix||``)+t)),i.map(e=>(0,n.addLeadingSlash)(e||`/`)).map(e=>e===`/`?e:(0,n.stripEndSlash)(e))}getVersion(e){return e.methodVersion||e.controllerVersion}getVersionPrefix(e){if(e.type===t.VersioningType.URI){if(e.prefix===!1)return``;if(e.prefix!==void 0)return e.prefix}return`v`}appendToAllIfDefined(e,r){if(!r)return e;let i=(e,t)=>(0,n.stripEndSlash)(e)+(0,n.addLeadingSlash)(t);if(Array.isArray(r)){let n=e.map(e=>r.map(t=>i(e,t)));return(0,t.flatten)(n)}return e.map(e=>i(e,r))}isExcludedFromGlobalPrefix(e,i,a,o){if((0,n.isUndefined)(i))return!1;let s=this.applicationConfig.getGlobalPrefixOptions().exclude;return a&&a!==t.VERSION_NEUTRAL&&o?.type===t.VersioningType.URI&&(e=this.truncateVersionPrefixFromPath(e,a,o)),Array.isArray(s)&&(0,r.isRouteExcluded)(s,e,i)}truncateVersionPrefixFromPath(e,t,n){if(typeof t!=`string`)return t.forEach(t=>{typeof t==`string`&&(e=this.truncateVersionPrefixFromPath(e,t,n))}),e;let r=`/${this.getVersionPrefix(n)}${t}`;return e.startsWith(r)?e.replace(r,``):e}}})),SC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteInfoPathExtractor=void 0;var t=U(),n=M(),r=uC(),i=xC();e.RouteInfoPathExtractor=class{constructor(e){this.applicationConfig=e,this.routePathFactory=new i.RoutePathFactory(e),this.prefixPath=(0,n.stripEndSlash)((0,n.addLeadingSlash)(this.applicationConfig.getGlobalPrefix())),this.excludedGlobalPrefixRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude,this.versioningConfig=this.applicationConfig.getVersioning()}extractPathsFrom({path:e,method:t,version:r}){let i=this.extractVersionPathFrom(r);if(this.isAWildcard(e)){let t=i.length>0?i.map(t=>[this.prefixPath+t+`$`,this.prefixPath+t+(0,n.addLeadingSlash)(e)]).flat():this.prefixPath?[this.prefixPath+`$`,this.prefixPath+(0,n.addLeadingSlash)(e)]:[(0,n.addLeadingSlash)(e)];return Array.isArray(this.excludedGlobalPrefixRoutes)?[...t,...this.excludedGlobalPrefixRoutes.map(e=>Array.isArray(i)&&i.length>0?i.map(t=>t+(0,n.addLeadingSlash)(e.path)):(0,n.addLeadingSlash)(e.path)).flat()]:t}return this.extractNonWildcardPathsFrom({path:e,method:t,version:r})}extractPathFrom(e){return this.isAWildcard(e.path)&&!e.version?[(0,n.addLeadingSlash)(e.path)]:this.extractNonWildcardPathsFrom(e)}isAWildcard(e){return[`*`,`/*`,`/*/`,`(.*)`,`/(.*)`].includes(e)?!0:/^\/\{.*\}.*|^\/\*.*$/.test(e)}extractNonWildcardPathsFrom({path:e,method:t,version:i}){let a=this.extractVersionPathFrom(i);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,e,t)?a.length?a.map(t=>t+(0,n.addLeadingSlash)(e)):[(0,n.addLeadingSlash)(e)]:a.length?a.map(t=>this.prefixPath+t+(0,n.addLeadingSlash)(e)):[this.prefixPath+(0,n.addLeadingSlash)(e)]}extractVersionPathFrom(e){if(!e||this.versioningConfig?.type!==t.VersioningType.URI)return[];let r=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(e)?e.map(e=>(0,n.addLeadingSlash)(r+e.toString())):[(0,n.addLeadingSlash)(r+e.toString())]}}})),CC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathsExplorer=void 0;var t=j(),n=M();e.PathsExplorer=class{constructor(e){this.metadataScanner=e}scanForPaths(e,t){let r=(0,n.isUndefined)(t)?Object.getPrototypeOf(e):t;return this.metadataScanner.getAllMethodNames(r).reduce((t,n)=>{let i=this.exploreMethodMetadata(e,r,n);return i&&t.push(i),t},[])}exploreMethodMetadata(e,r,i){let a=e[i],o=r[i],s=Reflect.getMetadata(t.PATH_METADATA,o);if((0,n.isUndefined)(s))return null;let c=Reflect.getMetadata(t.METHOD_METADATA,o),l=Reflect.getMetadata(t.VERSION_METADATA,o);return{path:(0,n.isString)(s)?[(0,n.addLeadingSlash)(s)]:s.map(e=>(0,n.addLeadingSlash)(e)),requestMethod:c,targetCallback:a,methodName:i,version:l}}}})),wC=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;var n=k(),r=U(),i=j(),a=M(),o=Nx(),s=uC();e.ROUTES=Symbol(`ROUTES`),e.targetModulesByContainer=new WeakMap;var c=t=class{constructor(e,t){this.modulesContainer=e,this.routes=t,this.routes=this.deepCloneRoutes(t),this.initialize()}static register(n){return{module:t,providers:[{provide:e.ROUTES,useValue:n}]}}deepCloneRoutes(e){return e.map(e=>typeof e==`function`?e:e.children?{...e,children:this.deepCloneRoutes(e.children)}:{...e})}initialize(){(0,s.flattenRoutePaths)(this.routes).forEach(e=>{let t=(0,a.normalizePath)(e.path);this.registerModulePathMetadata(e.module,t),this.updateTargetModulesCache(e.module)})}registerModulePathMetadata(e,t){Reflect.defineMetadata(i.MODULE_PATH+this.modulesContainer.applicationId,t,e)}updateTargetModulesCache(t){let n;e.targetModulesByContainer.has(this.modulesContainer)?n=e.targetModulesByContainer.get(this.modulesContainer):(n=new WeakSet,e.targetModulesByContainer.set(this.modulesContainer,n));let r=Array.from(this.modulesContainer.values()).find(e=>e?.metatype===t);r&&n.add(r)}};e.RouterModule=c,e.RouterModule=c=t=n.__decorate([(0,r.Module)({}),n.__param(1,(0,r.Inject)(e.ROUTES)),n.__metadata(`design:paramtypes`,[o.ModulesContainer,Array])],c)})),TC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutesMapper=void 0;var t=j(),n=pn(),r=M(),i=Mx(),a=CC(),o=wC();e.RoutesMapper=class{constructor(e,t){this.container=e,this.applicationConfig=t,this.pathsExplorer=new a.PathsExplorer(new i.MetadataScanner)}mapRouteToRouteInfo(e){if((0,r.isString)(e))return this.getRouteInfoFromPath(e);let t=this.getRoutePath(e);return this.isRouteInfo(t,e)?this.getRouteInfoFromObject(e):this.getRouteInfoFromController(e,t)}getRouteInfoFromPath(e){return[{path:(0,r.addLeadingSlash)(e),method:-1}]}getRouteInfoFromObject(e){let t={path:(0,r.addLeadingSlash)(e.path),method:e.method};return e.version&&(t.version=e.version),[t]}getRouteInfoFromController(e,t){let i=this.pathsExplorer.scanForPaths(Object.create(e),e.prototype),a=this.getVersionMetadata(e),o=this.applicationConfig.getVersioning(),s=this.getHostModuleOfController(e),c=this.getModulePath(s?.metatype),l=(e,t)=>e.concat(t),u=e=>e===n.VERSION_NEUTRAL?void 0:e,d=(e,t)=>e.path?.flatMap(n=>{let i=c??``;i+=this.normalizeGlobalPath(t)+(0,r.addLeadingSlash)(n);let s={path:i,method:e.requestMethod},l=e.version??a;if(l&&o){if(typeof l!=`string`&&Array.isArray(l))return l.map(e=>({...s,version:u(e)}));s.version=u(l)}return s});return[].concat(t).map(e=>i.map(t=>d(t,e)).reduce(l,[])).reduce(l,[])}isRouteInfo(e,t){return(0,r.isUndefined)(e)}normalizeGlobalPath(e){let t=(0,r.addLeadingSlash)(e);return t===`/`?``:t}getRoutePath(e){return Reflect.getMetadata(t.PATH_METADATA,e)}getHostModuleOfController(e){if(!e)return;let t=this.container.getModules(),n=o.targetModulesByContainer.get(t);if(n)return Array.from(t.values()).filter(e=>n.has(e)).find(({controllers:t})=>t.has(e))}getModulePath(e){if(!e)return;let n=this.container.getModules();return Reflect.getMetadata(t.MODULE_PATH+n.applicationId,e)??Reflect.getMetadata(t.MODULE_PATH,e)}getVersionMetadata(e){let n=this.applicationConfig.getVersioning();if(n)return Reflect.getMetadata(t.VERSION_METADATA,e)??n.defaultVersion}}})),EC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareModule=void 0;var t=U(),n=ye(),r=M(),i=gC(),a=qx(),o=Hx(),s=eS(),c=Ux(),l=Vx(),u=vC(),d=yC(),f=uC(),p=fC(),m=bC(),h=SC(),g=TC();e.MiddlewareModule=class e{constructor(){this.routerProxy=new d.RouterProxy,this.exceptionFiltersCache=new WeakMap,this.logger=new t.Logger(e.name)}async register(e,t,n,r,i,a,o){this.appOptions=o;let s=t.getHttpAdapterRef();this.routerExceptionFilter=new u.RouterExceptionFilters(t,n,s),this.routesMapper=new g.RoutesMapper(t,n),this.resolver=new m.MiddlewareResolver(e,r),this.routeInfoPathExtractor=new h.RouteInfoPathExtractor(n),this.injector=r,this.container=t,this.httpAdapter=i,this.graphInspector=a;let c=t.getModules();await this.resolveMiddleware(e,c)}async resolveMiddleware(e,t){let n=[...t.entries()];await Promise.all(n.map(async([t,n])=>{await this.loadConfiguration(e,n,t),await this.resolver.resolveInstances(n,t)}))}async loadConfiguration(e,t,n){let{instance:r}=t;if(!r.configure)return;let i=new p.MiddlewareBuilder(this.routesMapper,this.httpAdapter,this.routeInfoPathExtractor);try{await r.configure(i)}catch(e){if(!this.appOptions.preview)throw e;let n=`Warning! "${t.name}" module exposes a "configure" method that throws an exception in the preview mode (possibly due to missing dependencies). Note: you can ignore this message, just be aware that some of those conditional middlewares will not be reflected in your graph.`;this.logger.warn(n)}if(!(i instanceof p.MiddlewareBuilder))return;let a=i.build();e.insertConfig(a,n)}async registerMiddleware(e,t){let n=e.getConfigurations(),r=async(n,r)=>{for(let i of r)await this.registerMiddlewareConfig(e,i,n,t)},i=[...n.entries()].sort(([e],[t])=>{let n=this.container.getModuleByKey(e),r=this.container.getModuleByKey(t),i=n.distance===Number.MAX_VALUE,a=r.distance===Number.MAX_VALUE;return i&&a?0:i?-1:a?1:n.distance-r.distance});for(let[e,t]of i)await r(e,[...t])}async registerMiddlewareConfig(e,t,n,r){let{forRoutes:i}=t;for(let a of i)await this.registerRouteMiddleware(e,a,t,n,r)}async registerRouteMiddleware(e,t,i,o,s){let c=[].concat(i.middleware),l=this.container.getModuleByKey(o);for(let i of c){let c=e.getMiddlewareCollection(o),u=c.get(i);if((0,r.isUndefined)(u))throw new a.RuntimeException;if(u.isTransient)return;this.graphInspector.insertClassNode(l,u,`middleware`);let d={type:`middleware`,methodName:`use`,className:u.name,classNodeId:u.id,metadata:{key:t.path,path:t.path,requestMethod:n.RequestMethod[t.method]??`ALL`,version:t.version}};this.graphInspector.insertEntrypointDefinition(d,u.id),await this.bindHandler(u,s,t,l,c)}}async bindHandler(e,t,n,a,o){let{instance:c,metatype:l}=e;if((0,r.isUndefined)(c?.use))throw new i.InvalidMiddlewareException(l.name);if(e.isDependencyTreeStatic()){let e=await this.createProxy(c);return this.registerHandler(t,n,e)}let u=e.isDependencyTreeDurable();await this.registerHandler(t,n,async(e,t,n)=>{try{let r=this.getContextId(e,u),i=await this.injector.loadPerContext(c,a,o,r);return(await this.createProxy(i,r))(e,t,n)}catch(r){let i=this.exceptionFiltersCache.get(c.use);i||(i=this.routerExceptionFilter.create(c,c.use,void 0),this.exceptionFiltersCache.set(c.use,i));let a=new s.ExecutionContextHost([e,t,n]);i.next(r,a)}})}async createProxy(e,t=c.STATIC_CONTEXT){let n=this.routerExceptionFilter.create(e,e.use,void 0,t),r=e.use.bind(e);return this.routerProxy.createProxy(r,n)}async registerHandler(e,t,r){let{method:i}=t,a=this.routeInfoPathExtractor.extractPathsFrom(t),o=(0,f.isRequestMethodAll)(i),s=n.RequestMethod[i],c=await e.createMiddlewareFactory(i),l=o?r:(t,i,a)=>{let o=e.getRequestMethod?.(t);return o===s||o===n.RequestMethod[n.RequestMethod.HEAD]&&s===n.RequestMethod[n.RequestMethod.GET]?r(t,i,a):a()},u=[];a.some(e=>e.match(/^\/?$/))?u.push(`/`):u.push(...a),u.forEach(e=>c(e,l))}getContextId(e,t){let n=o.ContextIdFactory.getByRequest(e);if(!e[l.REQUEST_CONTEXT_ID]){Object.defineProperty(e,l.REQUEST_CONTEXT_ID,{value:n,enumerable:!1,writable:!1,configurable:!1});let r=t?n.payload:Object.assign(e,n.payload);this.container.registerRequestProvider(r,n)}return n}}})),DC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTransientInstances=n,e.getNonTransientInstances=r;var t=L();function n(e){return(0,t.iterate)(e).filter(([e,t])=>t.isDependencyTreeStatic()).map(([e,t])=>t.getStaticTransientInstances()).flatten().filter(e=>!!e).map(({instance:e})=>e).toArray()}function r(e){return(0,t.iterate)(e).filter(([e,t])=>t.isDependencyTreeStatic()&&!t.isTransient).map(([e,{instance:t}])=>t).toArray()}})),OC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleBootstrapHook=o;var t=M(),n=L(),r=DC();function i(e){return(0,t.isFunction)(e.onApplicationBootstrap)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onApplicationBootstrap()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onApplicationBootstrap()}})),kC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callAppShutdownHook=o;var t=M(),n=L(),r=DC();function i(e){return(0,t.isFunction)(e.onApplicationShutdown)}function a(e,r){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onApplicationShutdown(r)).toArray()}async function o(e,t){let n=e.getNonAliasProviders(),[o,s]=n.shift(),c=[...e.controllers,...n,...e.injectables,...e.middlewares],l=(0,r.getNonTransientInstances)(c);await Promise.all(a(l,t));let u=(0,r.getTransientInstances)(c);await Promise.all(a(u,t));let d=s.instance;d&&i(d)&&s.isDependencyTreeStatic()&&await d.onApplicationShutdown(t)}})),AC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleDestroyHook=o;var t=M(),n=L(),r=DC();function i(e){return(0,t.isFunction)(e.onModuleDestroy)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onModuleDestroy()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onModuleDestroy()}})),jC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleInitHook=o;var t=M(),n=L(),r=DC();function i(e){return(0,t.isFunction)(e.onModuleInit)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onModuleInit()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onModuleInit()}})),MC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callBeforeAppShutdownHook=o;var t=M(),n=L(),r=DC();function i(e){return(0,t.isFunction)(e.beforeApplicationShutdown)}function a(e,r){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.beforeApplicationShutdown(r)).toArray()}async function o(e,t){let n=e.getNonAliasProviders(),[o,s]=n.shift(),c=[...e.controllers,...n,...e.injectables,...e.middlewares],l=(0,r.getNonTransientInstances)(c);await Promise.all(a(l,t));let u=(0,r.getTransientInstances)(c);await Promise.all(a(u,t));let d=s.instance;d&&i(d)&&s.isDependencyTreeStatic()&&await d.beforeApplicationShutdown(t)}})),NC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(OC(),e),t.__exportStar(kC(),e),t.__exportStar(AC(),e),t.__exportStar(jC(),e),t.__exportStar(MC(),e)})),PC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestApplicationContext=void 0;var t=U(),n=M(),r=L(),i=jx(),a=CS(),o=Hx(),s=NC(),c=kS(),l=zS(),u=BS();e.NestApplicationContext=class e extends c.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||=new u.InstanceLinksHost(this.container),this._instanceLinksHost}constructor(n,r={},i=null,a=[]){super(),this.container=n,this.appOptions=r,this.contextModule=i,this.scope=a,this.isInitialized=!1,this.logger=new t.Logger(e.name,{timestamp:!0}),this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=[],this.injector=new l.Injector,this.moduleCompiler=n.getModuleCompiler(),this.appOptions.preview&&this.printInPreviewModeWarning()}selectContextModule(){this.contextModule=this.container.getModules().values().next().value}select(t,n){let r=this.container.getModules(),i=this.contextModule.metatype,o=this.scope.concat(i),s=this.container.getModuleTokenFactory(),{type:c,dynamicMetadata:l}=this.moduleCompiler.extractMetadata(t),u=l?s.createForDynamic(c,l,t):s.createForStatic(c,t),d=r.get(u);if(!d)throw new a.UnknownModuleException(c.name);let f=n?.abortOnError===void 0?this.appOptions:{...this.appOptions,...n};return new e(this.container,f,d,o)}get(e,t={strict:!1}){return t&&t.strict?this.find(e,{moduleId:this.contextModule?.id,each:t.each}):this.find(e,t)}resolve(e,t=(0,o.createContextId)(),n={strict:!1}){return this.resolvePerContext(e,this.contextModule,t,n)}registerRequestByContextId(e,t){this.container.registerRequestProvider(e,t)}async init(){return this.isInitialized?this:(this.initializationPromise=new Promise(async(e,t)=>{try{await this.callInitHook(),await this.callBootstrapHook(),e()}catch(e){t(e)}}),await this.initializationPromise,this.isInitialized=!0,this)}async close(e){await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(e),await this.dispose(),await this.callShutdownHook(e),this.unsubscribeFromProcessSignals()}useLogger(e){t.Logger.overrideLogger(e),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){t.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(e=[],i={}){return e=(0,n.isEmpty)(e)?Object.keys(t.ShutdownSignal).map(e=>t.ShutdownSignal[e]):Array.from(new Set(e)),e=(0,r.iterate)(e).map(e=>e.toString().toUpperCase().trim()).filter(e=>!this.activeShutdownSignals.includes(e)).toArray(),this.listenToShutdownSignals(e,i),this}async dispose(){return Promise.resolve()}listenToShutdownSignals(n,r={}){let a=!1,o=async s=>{try{if(a)return;a=!0,await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(s),await this.dispose(),await this.callShutdownHook(s),n.forEach(e=>process.removeListener(e,o)),r.useProcessExit?process.exit(0):process.kill(process.pid,s)}catch(n){t.Logger.error(i.MESSAGES.ERROR_DURING_SHUTDOWN,n?.stack,e.name),process.exit(1)}};this.shutdownCleanupRef=o,n.forEach(e=>{this.activeShutdownSignals.push(e),process.on(e,o)})}unsubscribeFromProcessSignals(){this.shutdownCleanupRef&&this.activeShutdownSignals.forEach(e=>{process.removeListener(e,this.shutdownCleanupRef)})}async callInitHook(){let e=this.getModulesToTriggerHooksOn();for(let t of e)await(0,s.callModuleInitHook)(t)}async callDestroyHook(){let e=[...this.getModulesToTriggerHooksOn()].reverse();for(let t of e)await(0,s.callModuleDestroyHook)(t)}async callBootstrapHook(){let e=this.getModulesToTriggerHooksOn();for(let t of e)await(0,s.callModuleBootstrapHook)(t)}async callShutdownHook(e){let t=[...this.getModulesToTriggerHooksOn()].reverse();for(let n of t)await(0,s.callAppShutdownHook)(n,e)}async callBeforeShutdownHook(e){let t=[...this.getModulesToTriggerHooksOn()].reverse();for(let n of t)await(0,s.callBeforeAppShutdownHook)(n,e)}assertNotInPreviewMode(e){if(this.appOptions.preview){let t=`Calling the "${e}" in the preview mode is not supported.`;throw this.logger.error(t),Error(t)}}getModulesToTriggerHooksOn(){if(this._moduleRefsForHooksByDistance)return this._moduleRefsForHooksByDistance;let e=this.container.getModules(),t=Array.from(e.values()).sort((e,t)=>t.distance-e.distance);return this._moduleRefsForHooksByDistance=this.appOptions?.preview?t.filter(e=>e.initOnPreview):t,this._moduleRefsForHooksByDistance}printInPreviewModeWarning(){this.logger.warn(`------------------------------------------------`),this.logger.warn(`Application is running in the PREVIEW mode!`),this.logger.warn(`Providers/controllers will not be instantiated.`),this.logger.warn(`------------------------------------------------`)}}})),FC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INVALID_EXECUTION_CONTEXT=e.VERSIONED_CONTROLLER_MAPPING_MESSAGE=e.CONTROLLER_MAPPING_MESSAGE=e.VERSIONED_ROUTE_MAPPED_MESSAGE=e.ROUTE_MAPPED_MESSAGE=e.MODULE_INIT_MESSAGE=void 0;var t=ye(),n=dn();e.MODULE_INIT_MESSAGE=(e,t)=>`${t} dependencies initialized`,e.ROUTE_MAPPED_MESSAGE=(e,n)=>`Mapped {${e}, ${t.RequestMethod[n]}} route`,e.VERSIONED_ROUTE_MAPPED_MESSAGE=(e,r,i)=>{let a=(Array.isArray(i)?i:[i]).map(e=>e===n.VERSION_NEUTRAL?`Neutral`:e).join(`,`);return`Mapped {${e}, ${t.RequestMethod[r]}} (version: ${a}) route`},e.CONTROLLER_MAPPING_MESSAGE=(e,t)=>`${e} {${t}}:`,e.VERSIONED_CONTROLLER_MAPPING_MESSAGE=(e,t,r)=>`${e} {${t}} (version: ${(Array.isArray(r)?r:[r]).map(e=>e===n.VERSION_NEUTRAL?`Neutral`:e).join(`,`)}):`,e.INVALID_EXECUTION_CONTEXT=(e,t)=>`Calling ${e} is not allowed in this context. Your current execution context is "${t}".`})),IC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownRequestMappingException=void 0;var t=qx(),n=Jx();e.UnknownRequestMappingException=class extends t.RuntimeException{constructor(e){super((0,n.UNKNOWN_REQUEST_MAPPING)(e))}}})),LC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;var t=ye();e.REQUEST_METHOD_MAP={[t.RequestMethod.GET]:`get`,[t.RequestMethod.POST]:`post`,[t.RequestMethod.PUT]:`put`,[t.RequestMethod.DELETE]:`delete`,[t.RequestMethod.PATCH]:`patch`,[t.RequestMethod.ALL]:`all`,[t.RequestMethod.OPTIONS]:`options`,[t.RequestMethod.HEAD]:`head`,[t.RequestMethod.SEARCH]:`search`,[t.RequestMethod.PROPFIND]:`propfind`,[t.RequestMethod.PROPPATCH]:`proppatch`,[t.RequestMethod.MKCOL]:`mkcol`,[t.RequestMethod.COPY]:`copy`,[t.RequestMethod.MOVE]:`move`,[t.RequestMethod.LOCK]:`lock`,[t.RequestMethod.UNLOCK]:`unlock`},e.RouterMethodFactory=class{get(t,n){return t[e.REQUEST_METHOD_MAP[n]]||t.use}}})),RC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteParamsFactory=void 0;var t=xe();e.RouteParamsFactory=class{exchangeKeyForValue(e,n,{req:r,res:i,next:a}){switch(e){case t.RouteParamtypes.NEXT:return a;case t.RouteParamtypes.REQUEST:return r;case t.RouteParamtypes.RESPONSE:return i;case t.RouteParamtypes.BODY:return n&&r.body?r.body[n]:r.body;case t.RouteParamtypes.RAW_BODY:return r.rawBody;case t.RouteParamtypes.PARAM:return n?r.params[n]:r.params;case t.RouteParamtypes.HOST:let e=r.hosts||{};return n?e[n]:e;case t.RouteParamtypes.QUERY:return n?r.query[n]:r.query;case t.RouteParamtypes.HEADERS:return n?r.headers[n.toLowerCase()]:r.headers;case t.RouteParamtypes.SESSION:return r.session;case t.RouteParamtypes.FILE:return r[n||`file`];case t.RouteParamtypes.FILES:return r.files;case t.RouteParamtypes.IP:return r.ip;default:return null}}}})),zC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SseStream=void 0;var t=M(),n=require(`stream`);function r(e){return(0,t.isObject)(e)?r(JSON.stringify(e)):e.split(/\r\n|\r|\n/).map(e=>`data: ${e}\n`).join(``)}e.SseStream=class extends n.Transform{constructor(e){super({objectMode:!0}),this.lastEventId=null,e&&e.socket&&(e.socket.setKeepAlive(!0),e.socket.setNoDelay(!0),e.socket.setTimeout(0))}pipe(e,t){if(e.writeHead){let n=t?.statusCode??200;e.writeHead(n,{...t?.additionalHeaders,"Content-Type":`text/event-stream`,Connection:`keep-alive`,"Cache-Control":`private, no-cache, no-store, must-revalidate, max-age=0, no-transform`,Pragma:`no-cache`,Expire:`0`,"X-Accel-Buffering":`no`}),e.flushHeaders?.()}return e.write(`
|
|
134
|
+
`),e.INVALID_CLASS_MESSAGE=(e,t)=>`ModuleRef cannot instantiate class (${t} is not constructable).`,e.INVALID_CLASS_SCOPE_MESSAGE=(e,t)=>`${t||`This class`} is marked as a scoped provider. Request and transient-scoped providers can't be used in combination with "get()" method. Please, use "resolve()" instead.`,e.UNKNOWN_REQUEST_MAPPING=e=>{let t=e.name;return t?`An invalid controller has been detected. "${t}" does not have the @Controller() decorator but it is being listed in the "controllers" array of some module.`:`An invalid controller has been detected. Perhaps, one of your controllers is missing the @Controller() decorator.`},e.INVALID_MIDDLEWARE_CONFIGURATION=`An invalid middleware configuration has been passed inside the module 'configure()' method.`,e.UNHANDLED_RUNTIME_EXCEPTION=`Unhandled Runtime Exception.`,e.INVALID_EXCEPTION_FILTER=`Invalid exception filters (@UseFilters()).`,e.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=`Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)`})),Kx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidExceptionFilterException=void 0;var t=Wx(),n=Gx();e.InvalidExceptionFilterException=class extends t.RuntimeException{constructor(){super(n.INVALID_EXCEPTION_FILTER)}}})),qx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionFilter=void 0;var t=H(),n=class e{catch(n,r){throw n instanceof Error&&!(n instanceof t.IntrinsicException)&&e.logger.error(n),n}};e.ExternalExceptionFilter=n,n.logger=new t.Logger(`ExceptionsHandler`)})),Jx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionsHandler=void 0;var t=Ux(),n=A(),r=Kx(),i=qx();e.ExternalExceptionsHandler=class extends i.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(e,t){return this.invokeCustomFilters(e,t)||super.catch(e,t)}setCustomFilters(e){if(!Array.isArray(e))throw new r.InvalidExceptionFilterException;this.filters=e}invokeCustomFilters(e,r){if((0,n.isEmpty)(this.filters))return null;let i=(0,t.selectExceptionFilterMetadata)(this.filters,e);return i?i.func(e,r):null}}})),Yx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalExceptionFilterContext=void 0;var t=O(),n=A(),r=I(),i=Bx(),a=Hx(),o=Jx();e.ExternalExceptionFilterContext=class extends a.BaseExceptionFilterContext{constructor(e,t){super(e),this.config=t}create(e,r,a,s=i.STATIC_CONTEXT,c){this.moduleContext=a;let l=new o.ExternalExceptionsHandler,u=this.createContext(e,r,t.EXCEPTION_FILTERS_METADATA,s,c);return(0,n.isEmpty)(u)||l.setCustomFilters(u.reverse()),l}getGlobalMetadata(e=i.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalFilters();if(e===i.STATIC_CONTEXT&&!t)return n;let a=this.config.getGlobalRequestFilters(),o=(0,r.iterate)(a).map(n=>n.getInstanceByContextId(e,t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),Xx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FORBIDDEN_MESSAGE=void 0,e.FORBIDDEN_MESSAGE=`Forbidden resource`})),Zx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExecutionContextHost=void 0,e.ExecutionContextHost=class{constructor(e,t=null,n=null){this.args=e,this.constructorRef=t,this.handler=n,this.contextType=`http`}setType(e){e&&(this.contextType=e)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(e){return this.args[e]}switchToRpc(){return Object.assign(this,{getData:()=>this.getArgByIndex(0),getContext:()=>this.getArgByIndex(1)})}switchToHttp(){return Object.assign(this,{getRequest:()=>this.getArgByIndex(0),getResponse:()=>this.getArgByIndex(1),getNext:()=>this.getArgByIndex(2)})}switchToWs(){return Object.assign(this,{getClient:()=>this.getArgByIndex(0),getData:()=>this.getArgByIndex(1),getPattern:()=>this.getArgByIndex(this.getArgs().length-1)})}}})),Qx=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GuardsConsumer=void 0;var t=A(),n=Wc(),r=Zx();e.GuardsConsumer=class{async tryActivate(e,n,r,i,a){if(!e||(0,t.isEmpty)(e))return!0;let o=this.createContext(n,r,i);o.setType(a);for(let t of e){let e=t.canActivate(o);if(typeof e==`boolean`){if(!e)return!1;continue}if(!await this.pickResult(e))return!1}return!0}createContext(e,t,n){return new r.ExecutionContextHost(e,t.constructor,n)}async pickResult(e){return e instanceof n.Observable?(0,n.lastValueFrom)(e):e}}})),$x=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GuardsContextCreator=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.GuardsContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.GUARDS_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.canActivate)).map(e=>this.getGuardInstance(e,t,i)).filter(e=>!!e&&(0,n.isFunction)(e.canActivate)).toArray()}getGuardInstance(e,t=a.STATIC_CONTEXT,n){if(e.canActivate)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalGuards();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestGuards(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),eS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(Xx(),e),t.__exportStar(Qx(),e),t.__exportStar($x(),e)})),tS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InterceptorsConsumer=void 0;var t=A(),n=require(`async_hooks`),r=Wc(),i=So(),a=Zx();e.InterceptorsConsumer=class{async intercept(e,a,o,s,c,l){if((0,t.isEmpty)(e))return c();let u=this.createContext(a,o,s);u.setType(l);let d=async(t=0)=>t>=e.length?(0,r.defer)(n.AsyncResource.bind(()=>this.transformDeferred(c))):e[t].intercept(u,{handle:()=>(0,r.defer)(n.AsyncResource.bind(()=>d(t+1))).pipe((0,i.mergeAll)())});return(0,r.defer)(()=>d()).pipe((0,i.mergeAll)())}createContext(e,t,n){return new a.ExecutionContextHost(e,t.constructor,n)}transformDeferred(e){return(0,r.from)(e()).pipe((0,i.switchMap)(e=>e instanceof Promise||e instanceof r.Observable?e:Promise.resolve(e)))}}})),nS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InterceptorsContextCreator=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.InterceptorsContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.INTERCEPTORS_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.intercept)).map(e=>this.getInterceptorInstance(e,t,i)).filter(e=>e?(0,n.isFunction)(e.intercept):!1).toArray()}getInterceptorInstance(e,t=a.STATIC_CONTEXT,n){if(e.intercept)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalInterceptors();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestInterceptors(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}}})),rS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(tS(),e),t.__exportStar(nS(),e)})),iS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ParamsTokenFactory=void 0;var t=ye();e.ParamsTokenFactory=class{exchangeEnumForString(e){switch(e){case t.RouteParamtypes.BODY:return`body`;case t.RouteParamtypes.PARAM:return`param`;case t.RouteParamtypes.QUERY:return`query`;default:return`custom`}}}})),aS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PipesConsumer=void 0;var t=iS();e.PipesConsumer=class{constructor(){this.paramsTokenFactory=new t.ParamsTokenFactory}async apply(e,{metatype:t,type:n,data:r},i){let a=this.paramsTokenFactory.exchangeEnumForString(n);return this.applyPipes(e,{metatype:t,type:a,data:r},i)}async applyPipes(e,{metatype:t,type:n,data:r},i){return i.reduce(async(e,i)=>{let a=await e;return i.transform(a,{metatype:t,type:n,data:r})},Promise.resolve(e))}}})),oS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PipesContextCreator=void 0;var t=O(),n=A(),r=I(),i=Vx(),a=Bx();e.PipesContextCreator=class extends i.ContextCreator{constructor(e,t){super(),this.container=e,this.config=t}create(e,n,r,i=a.STATIC_CONTEXT,o){return this.moduleContext=r,this.createContext(e,n,t.PIPES_METADATA,i,o)}createConcreteContext(e,t=a.STATIC_CONTEXT,i){return(0,n.isEmpty)(e)?[]:(0,r.iterate)(e).filter(e=>e&&(e.name||e.transform)).map(e=>this.getPipeInstance(e,t,i)).filter(e=>!!e&&e.transform&&(0,n.isFunction)(e.transform)).toArray()}getPipeInstance(e,t=a.STATIC_CONTEXT,n){if(e.transform)return e;let r=this.getInstanceByMetatype(e);if(!r)return null;let i=r.getInstanceByContextId(this.getContextId(t,r),n);return i&&i.instance}getInstanceByMetatype(e){if(!this.moduleContext)return;let t=this.container.getModules().get(this.moduleContext);if(t)return t.injectables.get(e)}getGlobalMetadata(e=a.STATIC_CONTEXT,t){if(!this.config)return[];let n=this.config.getGlobalPipes();if(e===a.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestPipes(),o=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(this.getContextId(e,n),t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(o)}setModuleContext(e){this.moduleContext=e}}})),sS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(iS(),e),t.__exportStar(aS(),e),t.__exportStar(oS(),e)})),cS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ContextUtils=void 0;var t=O(),n=A(),r=Zx();e.ContextUtils=class{mapParamType(e){return e.split(`:`)[0]}reflectCallbackParamtypes(e,n){return Reflect.getMetadata(t.PARAMTYPES_METADATA,e,n)}reflectCallbackMetadata(e,t,n){return Reflect.getMetadata(n,e.constructor,t)}reflectPassthrough(e,n){return Reflect.getMetadata(t.RESPONSE_PASSTHROUGH_METADATA,e.constructor,n)}getArgumentsLength(e,t){return e.length?Math.max(...e.map(e=>t[e].index))+1:0}createNullArray(e){let t=Array(e);for(let n=0;n<e;++n)t[n]=void 0;return t}mergeParamsMetatypes(e,t){return t?e.map(e=>({...e,metatype:t[e.index]})):e}getCustomFactory(e,t,r){return(0,n.isFunction)(e)?(...n)=>e(t,r(n)):()=>null}getContextFactory(e,t,n){let i=t&&t.constructor;return t=>{let a=new r.ExecutionContextHost(t,i,n);return a.setType(e),a}}}})),lS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalErrorProxy=void 0;var t=Zx();e.ExternalErrorProxy=class{createProxy(e,n,r){return async(...i)=>{try{return await e(...i)}catch(e){let a=new t.ExecutionContextHost(i);return a.setType(r),n.next(e,a)}}}}})),uS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;var n=Bx();e.HANDLER_METADATA_SYMBOL=Symbol.for(`handler_metadata:cache`),e.HandlerMetadataStorage=class{constructor(){this[t]=new Map}set(t,n,r){let i=this.getMetadataKey(t,n);this[e.HANDLER_METADATA_SYMBOL].set(i,r)}get(t,n){let r=this.getMetadataKey(t,n);return this[e.HANDLER_METADATA_SYMBOL].get(r)}getMetadataKey(e,t){let r=e.constructor;return(r&&(r[n.CONTROLLER_ID_KEY]||r.name))+t}},t=e.HANDLER_METADATA_SYMBOL})),dS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExternalContextCreator=void 0;var t=H(),n=O(),r=A(),i=Wc(),a=Yx(),o=eS(),s=Xx(),c=Bx(),l=rS(),u=sS(),d=cS(),f=lS(),p=uS();e.ExternalContextCreator=class e{constructor(e,t,n,r,i,a,o,s){this.guardsContextCreator=e,this.guardsConsumer=t,this.interceptorsContextCreator=n,this.interceptorsConsumer=r,this.modulesContainer=i,this.pipesContextCreator=a,this.pipesConsumer=o,this.filtersContextCreator=s,this.contextUtils=new d.ContextUtils,this.externalErrorProxy=new f.ExternalErrorProxy,this.handlerMetadataStorage=new p.HandlerMetadataStorage}static fromContainer(t){let n=new o.GuardsContextCreator(t,t.applicationConfig),r=new o.GuardsConsumer,i=new l.InterceptorsContextCreator(t,t.applicationConfig),s=new l.InterceptorsConsumer,c=new u.PipesContextCreator(t,t.applicationConfig),d=new u.PipesConsumer,f=new a.ExternalExceptionFilterContext(t,t.applicationConfig),p=new e(n,r,i,s,t.getModules(),c,d,f);return p.container=t,p}create(e,t,n,r,i,a=c.STATIC_CONTEXT,o,s={interceptors:!0,guards:!0,filters:!0},l=`http`){let u=this.getContextModuleKey(e.constructor),{argsLength:d,paramtypes:f,getParamsMetadata:p}=this.getMetadata(e,n,r,i,l),m=this.pipesContextCreator.create(e,t,u,a,o),h=this.guardsContextCreator.create(e,t,u,a,o),g=this.filtersContextCreator.create(e,t,u,a,o),_=s.interceptors?this.interceptorsContextCreator.create(e,t,u,a,o):[],v=p(u,a,o),y=v?this.contextUtils.mergeParamsMetatypes(v,f):[],b=s.guards?this.createGuardsFn(h,e,t,l):null,x=this.createPipesFn(m,y),S=(n,...r)=>async()=>x?(await x(n,...r),t.apply(e,n)):t.apply(e,r),C=async(...n)=>{let r=this.contextUtils.createNullArray(d);b&&await b(n);let i=await this.interceptorsConsumer.intercept(_,n,e,t,S(r,...n),l);return this.transformToResult(i)};return s.filters?this.externalErrorProxy.createProxy(C,g,l):C}getMetadata(e,t,n,r,i){let a=this.handlerMetadataStorage.get(e,t);if(a)return a;let o=this.contextUtils.reflectCallbackMetadata(e,t,n||``)||{},s=Object.keys(o),l=this.contextUtils.getArgumentsLength(s,o),u=this.contextUtils.reflectCallbackParamtypes(e,t),d=this.contextUtils.getContextFactory(i,e,e[t]),f={argsLength:l,paramtypes:u,getParamsMetadata:(e,t=c.STATIC_CONTEXT,n)=>r?this.exchangeKeysForValues(s,o,e,r,t,n,d):null};return this.handlerMetadataStorage.set(e,t,f),f}getContextModuleKey(e){if(!e)return``;let t=this.modulesContainer.entries();for(let[n,r]of t)if(r.hasProvider(e))return n;return``}exchangeKeysForValues(e,t,r,i,a=c.STATIC_CONTEXT,o,s=this.contextUtils.getContextFactory(`http`)){return this.pipesContextCreator.setModuleContext(r),e.map(e=>{let{index:r,data:c,pipes:l}=t[e],u=this.pipesContextCreator.createConcreteContext(l,a,o),d=this.contextUtils.mapParamType(e);if(e.includes(n.CUSTOM_ROUTE_ARGS_METADATA)){let{factory:n}=t[e];return{index:r,extractValue:this.contextUtils.getCustomFactory(n,c,s),type:d,data:c,pipes:u}}let f=Number(d);return{index:r,extractValue:(...e)=>i.exchangeKeyForValue(f,c,e),type:f,data:c,pipes:u}})}createPipesFn(e,t){return t.length?async(n,...r)=>{await Promise.all(t.map(async t=>{let{index:i,extractValue:a,type:o,data:s,metatype:c,pipes:l}=t,u=a(...r);n[i]=await this.getParamValue(u,{metatype:c,type:o,data:s},e.concat(l))}))}:null}async getParamValue(e,{metatype:t,type:n,data:i},a){return(0,r.isEmpty)(a)?e:this.pipesConsumer.apply(e,{metatype:t,type:n,data:i},a)}async transformToResult(e){return(0,i.isObservable)(e)?(0,i.lastValueFrom)(e):e}createGuardsFn(e,n,r,i){return e.length?async a=>{if(!await this.guardsConsumer.tryActivate(e,a,n,r,i))throw new t.ForbiddenException(s.FORBIDDEN_MESSAGE)}:null}registerRequestProvider(e,t){this.container.registerRequestProvider(e,t)}}})),fS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(zx(),e),t.__exportStar(dS(),e),t.__exportStar(Fx(),e)})),pS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CircularDependencyException=void 0;var t=Wx();e.CircularDependencyException=class extends t.RuntimeException{constructor(e){let t=e?` inside ${e}`:``;super(`A circular dependency has been detected${t}. Please, make sure that each side of a bidirectional relationships are decorated with "forwardRef()". Note that circular relationships between custom providers (e.g., factories) are not supported since functions cannot be called more than once.`)}}})),mS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownElementException=void 0;var t=Wx();e.UnknownElementException=class extends t.RuntimeException{constructor(e){e&&=e.toString(),super(`Nest could not find ${e||`given`} element (this provider does not exist in the current context)`)}}})),hS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassScopeException=void 0;var t=A(),n=Gx(),r=Wx();e.InvalidClassScopeException=class extends r.RuntimeException{constructor(e){let r=(0,t.isFunction)(e)?e.name:e;r&&=r.toString(),super((0,n.INVALID_CLASS_SCOPE_MESSAGE)`${r}`)}}})),gS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassException=void 0;var t=Gx(),n=Wx();e.InvalidClassException=class extends n.RuntimeException{constructor(e){super((0,t.INVALID_CLASS_MESSAGE)`${e}`)}}})),_S=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownExportException=void 0;var t=Gx(),n=Wx();e.UnknownExportException=class extends n.RuntimeException{constructor(e,n){super((0,t.UNKNOWN_EXPORT_MESSAGE)(e,n))}}})),vS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownModuleException=void 0;var t=Wx();e.UnknownModuleException=class extends t.RuntimeException{constructor(e){super(`Nest could not select the given module (${e?`"${e}"`:`it`} does not exist in current context).`)}}})),yS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedForwardRefException=void 0;var t=Gx(),n=Wx();e.UndefinedForwardRefException=class extends n.RuntimeException{constructor(e){super((0,t.UNDEFINED_FORWARDREF_MESSAGE)(e))}}})),bS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(pS(),e),t.__exportStar(Wx(),e),t.__exportStar(mS(),e),t.__exportStar(hS(),e),t.__exportStar(gS(),e),t.__exportStar(_S(),e),t.__exportStar(vS(),e),t.__exportStar(yS(),e)})),xS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InitializeOnPreviewAllowlist=void 0;var t=class{static add(e){this.allowlist.set(e,!0)}static has(e){return this.allowlist.has(e)}};e.InitializeOnPreviewAllowlist=t,t.allowlist=new WeakMap})),SS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INQUIRER=void 0,e.INQUIRER=`INQUIRER`})),CS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SilentLogger=void 0;var t=H(),n=()=>{};e.SilentLogger=class extends t.Logger{constructor(){super(...arguments),this.log=n,this.error=n,this.warn=n,this.debug=n,this.verbose=n,this.fatal=n,this.setLogLevels=n}}})),wS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getClassScope=n;var t=O();function n(e){let n=Reflect.getMetadata(t.SCOPE_OPTIONS_METADATA,e);return n&&n.scope}})),TS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isDurable=n;var t=O();function n(e){let n=Reflect.getMetadata(t.SCOPE_OPTIONS_METADATA,e);return n&&n.durable}})),ES=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractInstanceResolver=void 0;var t=H(),n=bS();e.AbstractInstanceResolver=class{find(e,r){let i=this.instanceLinksHost.get(e,r),a=({wrapperRef:r})=>{if(r.scope===t.Scope.REQUEST||r.scope===t.Scope.TRANSIENT||!r.isDependencyTreeStatic())throw new n.InvalidClassScopeException(e);return r.instance};return Array.isArray(i)?i.map(a):a(i)}async resolvePerContext(e,t,r,i){let a=i?.strict?this.instanceLinksHost.get(e,{moduleId:t.id,each:i.each}):this.instanceLinksHost.get(e,{each:i?.each}),o=async t=>{let{wrapperRef:i,collection:a}=t;if(i.isDependencyTreeStatic()&&!i.isTransient)return i.instance;let o=i.instance||{constructor:e},s=await this.injector.loadPerContext(o,i.host,a,r,i);if(!s)throw new n.UnknownElementException;return s};return Array.isArray(a)?Promise.all(a.map(e=>o(e))):o(a)}}})),DS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedDependencyException=void 0;var t=Gx(),n=Wx();e.UndefinedDependencyException=class extends n.RuntimeException{constructor(e,n,r){super((0,t.UNKNOWN_DEPENDENCIES_MESSAGE)(e,n,r))}}})),OS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownDependenciesException=void 0;var t=Gx(),n=Wx();e.UnknownDependenciesException=class extends n.RuntimeException{constructor(e,n,r,i){super((0,t.UNKNOWN_DEPENDENCIES_MESSAGE)(e,n,r)),this.type=e,this.context=n,this.metadata=i,this.moduleRef=r&&{id:r.id}}}})),kS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Barrier=void 0,e.Barrier=class{constructor(e){this.currentCount=0,this.targetCount=e,this.promise=new Promise(e=>{this.resolve=e})}signal(){this.currentCount+=1,this.currentCount===this.targetCount&&this.resolve()}async wait(){return this.promise}async signalAndWait(){return this.signal(),this.wait()}}})),AS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(SS(),e)})),jS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeterministicUuidRegistry=void 0;var t=class{static get(e,t=0){let n=t?this.hashCode(`${e}_${t}`):this.hashCode(e);return this.registry.has(n)?this.get(e,t+1):(this.registry.set(n,!0),n)}static clear(){this.registry.clear()}static hashCode(e){let t=0;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t.toString()}};e.DeterministicUuidRegistry=t,t.registry=new Map})),MS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UuidFactory=e.UuidFactoryMode=void 0;var t=fn(),n=jS(),r;(function(e){e.Random=`random`,e.Deterministic=`deterministic`})(r||(e.UuidFactoryMode=r={}));var i=class{static set mode(e){this._mode=e}static get(e=``){return this._mode===r.Deterministic?n.DeterministicUuidRegistry.get(e):(0,t.randomStringGenerator)()}};e.UuidFactory=i,i._mode=r.Random})),NS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isClassProvider=n,e.isValueProvider=r,e.isFactoryProvider=i;var t=A();function n(e){return!!e?.useClass}function r(e){let n=e?.useValue;return!(0,t.isUndefined)(n)}function i(e){return!!e.useFactory}})),PS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceWrapper=e.INSTANCE_ID_SYMBOL=e.INSTANCE_METADATA_SYMBOL=void 0;var n=H(),r=nt(),i=fn(),a=A(),o=I(),s=MS(),c=Bx(),l=NS();e.INSTANCE_METADATA_SYMBOL=Symbol.for(`instance_metadata:cache`),e.INSTANCE_ID_SYMBOL=Symbol.for(`instance_metadata:id`);var u=class u{constructor(r={}){this.isAlias=!1,this.scope=n.Scope.DEFAULT,this.values=new WeakMap,this[t]={},this.initialize(r),this[e.INSTANCE_ID_SYMBOL]=r[e.INSTANCE_ID_SYMBOL]??this.generateUuid()}get id(){return this[e.INSTANCE_ID_SYMBOL]}set instance(e){this.values.set(c.STATIC_CONTEXT,{instance:e})}get instance(){return this.getInstanceByContextId(c.STATIC_CONTEXT).instance}get isNotMetatype(){return!this.metatype||this.isFactory}get isFactory(){return!!this.metatype&&!(0,a.isNil)(this.inject)}get isTransient(){return this.scope===n.Scope.TRANSIENT}getInstanceByContextId(e,t){return this.scope===n.Scope.TRANSIENT&&t?this.getInstanceByInquirerId(e,t):this.values.get(e)||(e===c.STATIC_CONTEXT?{instance:null,isResolved:!0,isPending:!1}:this.cloneStaticInstance(e))}getInstanceByInquirerId(e,t){let n=this.transientMap.get(t);return n||(n=new WeakMap,this.transientMap.set(t,n)),n.get(e)||this.cloneTransientInstance(e,t)}setInstanceByContextId(e,t,r){if(this.scope===n.Scope.TRANSIENT&&r)return this.setInstanceByInquirerId(e,r,t);this.values.set(e,t)}setInstanceByInquirerId(e,t,n){let r=this.transientMap.get(t);r||(r=new WeakMap,this.transientMap.set(t,r)),r.set(e,n)}removeInstanceByContextId(e,t){if(this.scope===n.Scope.TRANSIENT&&t)return this.removeInstanceByInquirerId(e,t);this.values.delete(e)}removeInstanceByInquirerId(e,t){let n=this.transientMap.get(t);n&&n.delete(e)}addCtorMetadata(t,n){this[e.INSTANCE_METADATA_SYMBOL].dependencies||(this[e.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[e.INSTANCE_METADATA_SYMBOL].dependencies[t]=n}getCtorMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(t,n){this[e.INSTANCE_METADATA_SYMBOL].properties||(this[e.INSTANCE_METADATA_SYMBOL].properties=[]),this[e.INSTANCE_METADATA_SYMBOL].properties.push({key:t,wrapper:n})}getPropertiesMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(t){this[e.INSTANCE_METADATA_SYMBOL].enhancers||(this[e.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[e.INSTANCE_METADATA_SYMBOL].enhancers.push(t)}getEnhancersMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeDurable(e=[]){return(0,a.isUndefined)(this.isTreeDurable)?this.scope===n.Scope.REQUEST?(this.isTreeDurable=this.durable===void 0?!1:this.durable,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable):this.isDependencyTreeStatic()?!1:(this.isTreeDurable=!this.introspectDepsAttribute((e,t)=>e.some(e=>!e.isDependencyTreeStatic()&&!e.isDependencyTreeDurable(t)),e),this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable):this.isTreeDurable}introspectDepsAttribute(t,n=[]){if(n.includes(this[e.INSTANCE_ID_SYMBOL]))return!1;n=n.concat(this[e.INSTANCE_ID_SYMBOL]);let{dependencies:r,properties:i,enhancers:a}=this[e.INSTANCE_METADATA_SYMBOL],o=r?t(r,n):!1;return o||!(i||a)||(o=i?t(i.map(e=>e.wrapper),n):!1,o||!a)?o:a?t(a,n):!1}isDependencyTreeStatic(e=[]){return(0,a.isUndefined)(this.isTreeStatic)?this.scope===n.Scope.REQUEST?(this.isTreeStatic=!1,this.printIntrospectedAsRequestScoped(),this.isTreeStatic):(this.isTreeStatic=!this.introspectDepsAttribute((e,t)=>e.some(e=>!e.isDependencyTreeStatic(t)),e),this.isTreeStatic||this.printIntrospectedAsRequestScoped(),this.isTreeStatic):this.isTreeStatic}cloneStaticInstance(e){let t=this.getInstanceByContextId(c.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return t;let n={...t,instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(n.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(e,n),n}cloneTransientInstance(e,t){let n={...this.getInstanceByContextId(c.STATIC_CONTEXT),instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(n.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(e,t,n),n}createPrototype(e){let t=this.getInstanceByContextId(e);if(!(!this.isNewable()||t.isResolved))return Object.create(this.metatype.prototype)}isInRequestScope(e,t){return!this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!t)}isLazyTransient(e,t){let n=!!(t&&!t.isDependencyTreeStatic());return this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&this.isTransient&&n}isExplicitlyRequested(e,t){let r=t===this;return this.isDependencyTreeStatic()&&e!==c.STATIC_CONTEXT&&(r||!!(t&&t.scope===n.Scope.TRANSIENT))}isStatic(e,t){if(!this.isDependencyTreeStatic()||e!==c.STATIC_CONTEXT)return!1;if(!this.isTransient)return!0;let n=t&&!t.isDependencyTreeStatic(),r=this.isTransient&&!n,i=t?.getRootInquirer();return!!(r&&t&&!t.isTransient||r&&i&&!i.isTransient||r&&t?.isTransient&&!i)}attachRootInquirer(e){this.isTransient&&(this.rootInquirer=e.getRootInquirer()??e)}getRootInquirer(){return this.rootInquirer}getStaticTransientInstances(){if(!this.transientMap)return[];let e=[...this.transientMap.values()];return(0,o.iterate)(e).map(e=>e.get(c.STATIC_CONTEXT)).filter(e=>!!(e&&e.isConstructorCalled)).toArray()}mergeWith(e){(0,l.isValueProvider)(e)?(this.metatype=null,this.inject=null,this.scope=n.Scope.DEFAULT,this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:e.useValue,isResolved:!0,isPending:!1})):(0,l.isClassProvider)(e)?(this.inject=null,this.metatype=e.useClass):(0,l.isFactoryProvider)(e)&&(this.metatype=e.useFactory,this.inject=e.inject||[])}isNewable(){return(0,a.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}initialize(e){let{instance:t,isResolved:r,...i}=e;Object.assign(this,i),this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:t,isResolved:r}),this.scope===n.Scope.TRANSIENT&&(this.transientMap=new Map)}printIntrospectedAsRequestScoped(){!this.isDebugMode()||this.name===`REQUEST`||(0,a.isString)(this.name)&&u.logger.log(`${r.clc.cyanBright(this.name)}${r.clc.green(` introspected as `)}${r.clc.magentaBright(`request-scoped`)}`)}printIntrospectedAsDurable(){this.isDebugMode()&&(0,a.isString)(this.name)&&u.logger.log(`${r.clc.cyanBright(this.name)}${r.clc.green(` introspected as `)}${r.clc.magentaBright(`durable`)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}generateUuid(){let e=this.name?.toString()??this.token?.toString();return e+=this.host?.name??``,e?s.UuidFactory.get(e):(0,i.randomStringGenerator)()}};e.InstanceWrapper=u,t=e.INSTANCE_METADATA_SYMBOL,u.logger=new n.Logger(u.name)})),FS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SettlementSignal=void 0,e.SettlementSignal=class{constructor(){this._refs=new Set,this.completed=!1,this.settledPromise=new Promise(e=>{this.settleFn=e})}complete(){this.completed=!0,this.settleFn()}error(e){this.completed=!0,this.settleFn(e)}asPromise(){return this.settledPromise}insertRef(e){this._refs.add(e)}isCycle(e){return!this.completed&&this._refs.has(e)}}})),IS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Injector=void 0;var t=H(),n=O(),r=nt(),i=A(),a=I(),o=require(`perf_hooks`),s=bS(),c=Wx(),l=DS(),u=OS(),d=kS(),f=Bx(),p=AS(),m=PS(),h=FS();e.Injector=class{constructor(e){this.options=e,this.logger=new t.Logger(`InjectorLogger`),this.instanceDecorator=e=>e,e?.instanceDecorator&&(this.instanceDecorator=e.instanceDecorator)}loadPrototype({token:e},t,n=f.STATIC_CONTEXT){if(!t)return;let r=t.get(e),i=r.createPrototype(n);if(i){let n=new m.InstanceWrapper({...r,instance:i});t.set(e,n)}}async loadInstance(e,t,n,r=f.STATIC_CONTEXT,a){let o=this.getInquirerId(a),l=e.getInstanceByContextId(this.getContextId(r,e),o);if(l.isPending){let t=e.settlementSignal;if(a&&t?.isCycle(a.id))throw new s.CircularDependencyException(`"${e.name}"`);return l.donePromise.then(e=>{if(e)throw e})}let u=this.applySettlementSignal(l,e),d=e.token||e.name,{inject:p}=e,m=t.get(d);if((0,i.isUndefined)(m))throw new c.RuntimeException;if(l.isResolved)return u.complete();try{let t=this.getNowTimestamp();await this.resolveConstructorParams(e,n,p,async i=>{let o=await this.resolveProperties(e,n,p,r,e,a),s=await this.instantiateClass(i,e,m,r,a);this.applyProperties(s,o),e.initTime=this.getNowTimestamp()-t,u.complete()},r,e,a)}catch(t){throw e.removeInstanceByContextId(this.getContextId(r,e),o),u.error(t),t}}async loadMiddleware(e,t,n,r=f.STATIC_CONTEXT,a){let{metatype:o,token:s}=e,c=t.get(s);(0,i.isUndefined)(c.instance)&&(c.instance=Object.create(o.prototype),await this.loadInstance(e,t,n,r,a||e))}async loadController(e,t,n=f.STATIC_CONTEXT){let r=t.controllers;await this.loadInstance(e,r,t,n,e),await this.loadEnhancersPerContext(e,n,e)}async loadInjectable(e,t,n=f.STATIC_CONTEXT,r){let i=t.injectables;await this.loadInstance(e,i,t,n,r)}async loadProvider(e,t,n=f.STATIC_CONTEXT,r){let i=t.providers;await this.loadInstance(e,i,t,n,r),await this.loadEnhancersPerContext(e,n,e)}applySettlementSignal(e,t){let n=new h.SettlementSignal;return e.donePromise=n.asPromise(),e.isPending=!0,t.settlementSignal=n,n}async resolveConstructorParams(e,t,n,r,a=f.STATIC_CONTEXT,o,s){let c=e.getCtorMetadata();if(c&&a!==f.STATIC_CONTEXT)return r(await this.loadCtorMetadata(c,a,o,s));let[l,u]=(0,i.isNil)(n)?this.getClassDependencies(e):this.getFactoryProviderDependencies(e),p=new d.Barrier(l.length),m=!0,h=await Promise.all(l.map(async(n,r)=>{try{if(this.isInquirer(n,s))return p.signal(),s&&s.instance;o?.isTransient&&s&&o.attachRootInquirer(s);let i=await this.resolveSingleParam(e,n,{index:r,dependencies:l},t,a,o,r);await p.signalAndWait();let c=this.getEffectiveInquirer(i,o,s,a),u=await this.resolveComponentHost(t,i,a,c),d=u.getInstanceByContextId(this.getContextId(a,u),this.getInquirerId(c));return!d.isResolved&&!u.forwardRef&&(m=!1),d?.instance}catch(e){if(p.signal(),!u.includes(r))throw e;return}}));m&&await r(h)}getClassDependencies(e){let t=e.metatype;return[this.reflectConstructorParams(t),this.reflectOptionalParams(t)]}getFactoryProviderDependencies(e){let t=[];function n(e){return!(0,i.isUndefined)(e.token)&&!(0,i.isUndefined)(e.optional)&&!e.prototype}return[e.inject?.map?.((e,r)=>typeof e==`object`&&n(e)?(e.optional&&t.push(r),e?.token):e),t]}reflectConstructorParams(e){let t=[...Reflect.getMetadata(n.PARAMTYPES_METADATA,e)||[]];return this.reflectSelfParams(e).forEach(({index:e,param:n})=>t[e]=n),Array.from(t)}reflectOptionalParams(e){return Reflect.getMetadata(n.OPTIONAL_DEPS_METADATA,e)||[]}reflectSelfParams(e){return Reflect.getMetadata(n.SELF_DECLARED_DEPS_METADATA,e)||[]}async resolveSingleParam(e,t,n,r,a=f.STATIC_CONTEXT,o,s){if((0,i.isUndefined)(t))throw this.logger.log(`Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration.`),new l.UndefinedDependencyException(e.name,n,r);let c=this.resolveParamToken(e,t);return this.resolveComponentWrapper(r,c,n,e,a,o,s)}resolveParamToken(e,t){return typeof t==`object`&&`forwardRef`in t?(e.forwardRef=!0,t.forwardRef()):t}async resolveComponentWrapper(e,t,n,r,i=f.STATIC_CONTEXT,a,o){this.printResolvingDependenciesLog(t,a),this.printLookingForProviderLog(t,e);let s=e.providers;return this.lookupComponent(s,e,{...n,name:t},r,i,a,o)}async resolveComponentHost(e,t,n=f.STATIC_CONTEXT,r){let i=this.getInquirerId(r),a=t.getInstanceByContextId(this.getContextId(n,t),i);if(!a.isResolved&&!t.forwardRef?(r?.settlementSignal?.insertRef(t.id),await this.loadProvider(t,t.host??e,n,r)):!a.isResolved&&t.forwardRef&&(n!==f.STATIC_CONTEXT||i)&&a.donePromise&&a.donePromise.then(()=>this.loadProvider(t,e,n,r)).catch(e=>{t.settlementSignal?.error(e)}),t.async){let e=t.getInstanceByContextId(this.getContextId(n,t),i);e.instance=await e.instance,t.setInstanceByContextId(n,e,i)}return t}async lookupComponent(e,t,n,r,i=f.STATIC_CONTEXT,a,o){let s=r.token||r.name,{name:c}=n;if(r&&s===c)throw new u.UnknownDependenciesException(r.name,n,t,{id:r.id});if(c&&e.has(c)){let n=e.get(c);return this.printFoundInModuleLog(c,t),this.addDependencyMetadata(o,r,n),n}return this.lookupComponentInParentModules(n,t,r,i,a,o)}async lookupComponentInParentModules(e,t,n,r=f.STATIC_CONTEXT,a,o){let s=await this.lookupComponentInImports(t,e.name,n,new Set,r,a,o);if((0,i.isNil)(s))throw new u.UnknownDependenciesException(n.name,e,t,{id:n.id});return s}async lookupComponentInImports(e,t,n,r=new Set,i=f.STATIC_CONTEXT,a,o,s){let c=null,l=e.imports||new Set,u=e=>e,d=[...l.values()].filter(u);if(s){let t=e.exports;d=d.filter(e=>t.has(e.metatype))}for(let e of d){if(r.has(e.id))continue;this.printLookingForProviderLog(t,e),r.add(e.id);let{providers:s,exports:l}=e;if(!l.has(t)||!s.has(t)){let s=await this.lookupComponentInImports(e,t,n,r,i,a,o,!0);if(s)return this.addDependencyMetadata(o,n,s),s;continue}this.printFoundInModuleLog(t,e),c=s.get(t),this.addDependencyMetadata(o,n,c);let u=this.getInquirerId(a);if(!c.getInstanceByContextId(this.getContextId(i,c),u).isResolved&&!c.forwardRef)break}return c}async resolveProperties(e,t,n,r=f.STATIC_CONTEXT,a,o){if(!(0,i.isNil)(n))return[];let s=e.getPropertiesMetadata();if(s&&r!==f.STATIC_CONTEXT)return this.loadPropertiesMetadata(s,r,a);let c=this.reflectProperties(e.metatype),l=new d.Barrier(c.length),u=await Promise.all(c.map(async n=>{try{let i={key:n.key,name:n.name};if(this.isInquirer(n.name,o))return l.signal(),o&&o.instance;let s=await this.resolveSingleParam(e,n.name,i,t,r,a,n.key);await l.signalAndWait();let c=this.getEffectiveInquirer(s,a,o,r),u=await this.resolveComponentHost(t,s,r,c);return u?u.getInstanceByContextId(this.getContextId(r,u),this.getInquirerId(c)).instance:void 0}catch(e){if(l.signal(),!n.isOptional)throw e;return}}));return c.map((e,t)=>({...e,instance:u[t]}))}reflectProperties(e){let t=Reflect.getMetadata(n.PROPERTY_DEPS_METADATA,e)||[],r=Reflect.getMetadata(n.OPTIONAL_PROPERTY_DEPS_METADATA,e)||[];return t.map(e=>({...e,name:e.type,isOptional:r.includes(e.key)}))}applyProperties(e,t){(0,i.isObject)(e)&&(0,a.iterate)(t).filter(e=>!(0,i.isNil)(e.instance)).forEach(t=>e[t.key]=t.instance)}async instantiateClass(e,t,n,r=f.STATIC_CONTEXT,a){let{metatype:o,inject:s}=t,c=this.getInquirerId(a),l=n.getInstanceByContextId(this.getContextId(r,n),c),u=t.isStatic(r,a)||t.isInRequestScope(r,a)||t.isLazyTransient(r,a)||t.isExplicitlyRequested(r,a);return this.options?.preview&&!t.host?.initOnPreview?(l.isResolved=!0,l.instance):((0,i.isNil)(s)&&u?(l.instance=t.forwardRef?Object.assign(l.instance,new o(...e)):new o(...e),l.instance=this.instanceDecorator(l.instance),l.isConstructorCalled=!0):u&&(l.instance=await n.metatype(...e),l.instance=this.instanceDecorator(l.instance),l.isConstructorCalled=!0),l.isResolved=!0,l.instance)}async loadPerContext(e,t,n,r,i){if(!i){let t=e.constructor;i=n.get(t)}await this.loadInstance(i,n,t,r,i),await this.loadEnhancersPerContext(i,r,i);let a=i.getInstanceByContextId(this.getContextId(r,i),i.id);return a&&a.instance}async loadEnhancersPerContext(e,t,n){let r=e.getEnhancersMetadata()||[];await Promise.all(r.map(e=>{let r=e.host;return this.loadInstance(e,r.injectables,r,t,n)}))}async loadCtorMetadata(e,t,n,r){return(await Promise.all(e.map(async e=>this.resolveScopedComponentHost(e,t,n,r)))).map((i,a)=>{let o=e[a],s=this.getEffectiveInquirer(o,n,r,t);return i?.getInstanceByContextId(this.getContextId(t,i),this.getInquirerId(s)).instance})}async loadPropertiesMetadata(e,t,n){let r=await Promise.all(e.map(async({wrapper:e,key:r})=>({key:r,host:await this.resolveComponentHost(e.host,e,t,n)}))),i=this.getInquirerId(n);return r.map(({key:e,host:n})=>({key:e,name:e,instance:n.getInstanceByContextId(this.getContextId(t,n),i).instance}))}getInquirerId(e){return e?e.id:void 0}getEffectiveInquirer(e,t,n,r){return e?.isTransient&&t?.isTransient&&n&&r!==f.STATIC_CONTEXT?n:t}resolveScopedComponentHost(e,t,n,r){return this.isInquirerRequest(e,r)?r:this.resolveComponentHost(e.host,e,t,this.getEffectiveInquirer(e,n,r,t))}isInquirerRequest(e,t){return e.isTransient&&e.name===p.INQUIRER&&t}isInquirer(e,t){return e===p.INQUIRER&&t}addDependencyMetadata(e,t,n){(0,i.isSymbol)(e)||(0,i.isString)(e)?t.addPropertiesMetadata(e,n):t.addCtorMetadata(e,n)}getTokenName(e){return(0,i.isFunction)(e)?e.name:e.toString()}printResolvingDependenciesLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=(t?.name&&t.name.toString?.())??`unknown`,a=i===n,o=`Resolving dependency ${r.clc.cyanBright(n)}${r.clc.green(` in the `)}${r.clc.yellow(i)}${r.clc.green(` provider ${a?`(alias)`:``}`)}`;this.logger.log(o)}printLookingForProviderLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=t?.metatype?.name??`unknown`;this.logger.log(`Looking for ${r.clc.cyanBright(n)}${r.clc.green(` in `)}${r.clc.magentaBright(i)}`)}printFoundInModuleLog(e,t){if(!this.isDebugMode())return;let n=this.getTokenName(e),i=t?.metatype?.name??`unknown`;this.logger.log(`Found ${r.clc.cyanBright(n)}${r.clc.green(` in `)}${r.clc.magentaBright(i)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}getContextId(e,t){return e.getParent?e.getParent({token:t.token,isTreeDurable:t.isDependencyTreeDurable()}):e}getNowTimestamp(){return o.performance.now()}}})),LS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceLinksHost=void 0;var t=A(),n=mS();e.InstanceLinksHost=class{constructor(e){this.container=e,this.instanceLinks=new Map,this.initialize()}get(e,t={}){let r=this.instanceLinks.get(e);if(!r)throw new n.UnknownElementException(this.getInstanceNameByToken(e));if(t.each)return r;let i=t.moduleId?r.find(e=>e.moduleId===t.moduleId):r[r.length-1];if(!i)throw new n.UnknownElementException(this.getInstanceNameByToken(e));return i}initialize(){this.container.getModules().forEach(e=>{let{providers:t,injectables:n,controllers:r}=e;t.forEach((t,n)=>this.addLink(t,n,e,`providers`)),n.forEach((t,n)=>this.addLink(t,n,e,`injectables`)),r.forEach((t,n)=>this.addLink(t,n,e,`controllers`))})}addLink(e,t,n,r){let i={moduleId:n.id,wrapperRef:e,collection:n[r],token:t},a=this.instanceLinks.get(t);a?a.push(i):this.instanceLinks.set(t,[i])}getInstanceNameByToken(e){return(0,t.isFunction)(e)?e?.name:e}}})),RS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleRef=void 0;var t=H(),n=wS(),r=TS(),i=ES(),a=Bx(),o=IS(),s=LS(),c=PS();e.ModuleRef=class extends i.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||=new s.InstanceLinksHost(this.container),this._instanceLinksHost}constructor(e){super(),this.container=e,this.injector=new o.Injector({preview:e.contextOptions?.preview,instanceDecorator:e.contextOptions?.instrument?.instanceDecorator})}introspect(e){let{wrapperRef:n}=this.instanceLinksHost.get(e),r=t.Scope.DEFAULT;return n.isDependencyTreeStatic()?n.isTransient&&(r=t.Scope.TRANSIENT):r=t.Scope.REQUEST,{scope:r}}registerRequestByContextId(e,t){this.container.registerRequestProvider(e,t)}async instantiateClass(e,t,i){let o=new c.InstanceWrapper({name:e&&e.name,metatype:e,isResolved:!1,scope:(0,n.getClassScope)(e),durable:(0,r.isDurable)(e),host:t});return e?.prototype&&o.setInstanceByContextId(i??a.STATIC_CONTEXT,{instance:Object.create(e.prototype),isResolved:!1,isPending:!1}),new Promise(async(n,r)=>{try{await this.injector.resolveConstructorParams(o,t,void 0,async r=>{let a=await this.injector.resolveProperties(o,t,void 0,i,o),s=new e(...r);this.injector.applyProperties(s,a),n(s)},i,o)}catch(e){r(e)}})}}})),zS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LazyModuleLoader=void 0;var t=CS(),n=RS();e.LazyModuleLoader=class{constructor(e,t,n,r,i){this.dependenciesScanner=e,this.instanceLoader=t,this.moduleCompiler=n,this.modulesContainer=r,this.moduleOverrides=i}async load(e,t){this.registerLoggerConfiguration(t);let n=await e(),r=await this.dependenciesScanner.scanForModules({moduleDefinition:n,overrides:this.moduleOverrides,lazy:!0});if(r.length===0){let{token:e}=await this.moduleCompiler.compile(n),t=this.modulesContainer.get(e);return t&&this.getTargetModuleRef(t)}let i=this.createLazyModulesContainer(r);await this.dependenciesScanner.scanModulesForDependencies(i),await this.instanceLoader.createInstancesOfDependencies(i);let[a]=r;return this.getTargetModuleRef(a)}registerLoggerConfiguration(e){e?.logger===!1&&this.instanceLoader.setLogger(new t.SilentLogger)}createLazyModulesContainer(e){return e=Array.from(new Set(e)),new Map(e.map(e=>[e.token,e]))}getTargetModuleRef(e){return e.getProviderByKey(n.ModuleRef).instance}}})),BS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Reflector=void 0;var t=H(),n=A(),r=M();e.Reflector=class{static createDecorator(e={}){let n=e.key??(0,r.uid)(21),i=r=>(i,a,o)=>{let s=e.transform?e.transform(r):r;(0,t.SetMetadata)(n,s??{})(i,a,o)};return i.KEY=n,i}get(e,t){let n=e.KEY??e;return Reflect.getMetadata(n,t)}getAll(e,t){return(t||[]).map(t=>this.get(e,t))}getAllAndMerge(e,t){let r=this.getAll(e,t).filter(e=>e!==void 0);if((0,n.isEmpty)(r))return r;if(r.length===1){let e=r[0];return(0,n.isObject)(e)?e:r}return r.reduce((e,t)=>Array.isArray(e)?e.concat(t):(0,n.isObject)(e)&&(0,n.isObject)(t)?{...e,...t}:[e,t])}getAllAndOverride(e,t){for(let n of t){let t=this.get(e,n);if(t!==void 0)return t}}}})),VS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SerializedGraph=void 0;var t=Dx(),n=dS(),r=Fx(),i=SS(),a=zS(),o=RS(),s=Ax(),c=Rx(),l=BS(),u=jS(),d=class e{constructor(){this.nodes=new Map,this.edges=new Map,this.entrypoints=new Map,this.extras={orphanedEnhancers:[],attachedEnhancers:[]},this._status=`complete`}set status(e){this._status=e}set metadata(e){this._metadata=e}insertNode(t){return t.metadata.type===`provider`&&e.INTERNAL_PROVIDERS.includes(t.metadata.token)&&(t.metadata={...t.metadata,internal:!0}),this.nodes.has(t.id)?this.nodes.get(t.id):(this.nodes.set(t.id,t),t)}insertEdge(t){t.metadata.type===`class-to-class`&&(e.INTERNAL_PROVIDERS.includes(t.metadata.sourceClassToken)||e.INTERNAL_PROVIDERS.includes(t.metadata.targetClassToken))&&(t.metadata={...t.metadata,internal:!0});let n=t.id??this.generateUuidByEdgeDefinition(t),r={...t,id:n};return this.edges.set(n,r),r}insertEntrypoint(e,t){this.entrypoints.has(t)?this.entrypoints.get(t).push(e):this.entrypoints.set(t,[e])}insertOrphanedEnhancer(e){this.extras.orphanedEnhancers.push(e)}insertAttachedEnhancer(e){this.extras.attachedEnhancers.push({nodeId:e})}getNodeById(e){return this.nodes.get(e)}toJSON(){let e={nodes:Object.fromEntries(this.nodes),edges:Object.fromEntries(this.edges),entrypoints:Object.fromEntries(this.entrypoints),extras:this.extras};return this._status&&(e.status=this._status),this._metadata&&(e.metadata=this._metadata),e}toString(){return JSON.stringify(this.toJSON(),(e,t)=>typeof t==`symbol`?t.toString():typeof t==`function`?t.name??`Function`:t,2)}generateUuidByEdgeDefinition(e){return u.DeterministicUuidRegistry.get(JSON.stringify(e))}};e.SerializedGraph=d,d.INTERNAL_PROVIDERS=[t.ApplicationConfig,o.ModuleRef,r.HttpAdapterHost,a.LazyModuleLoader,n.ExternalContextCreator,s.ModulesContainer,l.Reflector,d,r.HttpAdapterHost.name,l.Reflector.name,c.REQUEST,i.INQUIRER]})),HS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ModuleCompiler=void 0,e.ModuleCompiler=class{constructor(e){this._moduleOpaqueKeyFactory=e}get moduleOpaqueKeyFactory(){return this._moduleOpaqueKeyFactory}async compile(e){e=await e;let{type:t,dynamicMetadata:n}=this.extractMetadata(e);return{type:t,dynamicMetadata:n,token:n?this._moduleOpaqueKeyFactory.createForDynamic(t,n,e):this._moduleOpaqueKeyFactory.createForStatic(t,e)}}extractMetadata(e){if(!this.isDynamicModule(e))return{type:e?.forwardRef?e.forwardRef():e,dynamicMetadata:void 0};let{module:t,...n}=e;return{type:t,dynamicMetadata:n}}isDynamicModule(e){return!!e.module}}})),US=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.requestProvider=void 0;var t=H();e.requestProvider={provide:Rx().REQUEST,scope:t.Scope.REQUEST,useFactory:()=>{}}})),WS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(BS(),e)})),GS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.inquirerProvider=void 0;var t=H();e.inquirerProvider={provide:SS().INQUIRER,scope:t.Scope.TRANSIENT,useFactory:()=>{}}})),KS=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalCoreModule=void 0;var n=E(),r=H(),i=US(),a=WS(),o=GS(),s={provide:a.Reflector.name,useExisting:a.Reflector},c=t=class{static register(e){return{module:t,providers:[...e],exports:[...e.map(e=>e.provide)]}}};e.InternalCoreModule=c,e.InternalCoreModule=c=t=n.__decorate([(0,r.Global)(),(0,r.Module)({providers:[a.Reflector,s,i.requestProvider,o.inquirerProvider],exports:[a.Reflector,s,i.requestProvider,o.inquirerProvider]})],c)})),qS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalProvidersStorage=void 0;var t=Fx();e.InternalProvidersStorage=class{constructor(){this._httpAdapterHost=new t.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(e){this._httpAdapter=e}}})),JS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Module=void 0;var t=O(),n=dn(),r=fn(),i=A(),a=I(),o=Dx(),s=bS(),c=zx(),l=wS(),u=TS(),d=MS(),f=Bx(),p=PS(),m=RS();e.Module=class{constructor(e,t){this._metatype=e,this.container=t,this._imports=new Set,this._providers=new Map,this._injectables=new Map,this._middlewares=new Map,this._controllers=new Map,this._entryProviderKeys=new Set,this._exports=new Set,this._distance=0,this._initOnPreview=!1,this._isGlobal=!1,this.addCoreProviders(),this._id=this.generateUuid()}get id(){return this._id}get token(){return this._token}set token(e){this._token=e}get name(){return this.metatype.name}get isGlobal(){return this._isGlobal}set isGlobal(e){this._isGlobal=e}get initOnPreview(){return this._initOnPreview}set initOnPreview(e){this._initOnPreview=e}get providers(){return this._providers}get middlewares(){return this._middlewares}get imports(){return this._imports}get injectables(){return this._injectables}get controllers(){return this._controllers}get entryProviders(){return Array.from(this._entryProviderKeys).map(e=>this.providers.get(e))}get exports(){return this._exports}get instance(){if(!this._providers.has(this._metatype))throw new s.RuntimeException;return this._providers.get(this._metatype).instance}get metatype(){return this._metatype}get distance(){return this._distance}set distance(e){this._distance=e}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){let e=this.createModuleReferenceType();this._providers.set(m.ModuleRef,new p.InstanceWrapper({token:m.ModuleRef,name:m.ModuleRef.name,metatype:m.ModuleRef,isResolved:!0,instance:new e,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new p.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(o.ApplicationConfig,new p.InstanceWrapper({token:o.ApplicationConfig,name:o.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(e,t,n){if(this.isCustomProvider(e))return this.addCustomProvider(e,this._injectables,t);let r=this.injectables.get(e);if(r||(r=new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),subtype:t,host:this}),this._injectables.set(e,r)),n){let e=this._controllers.get(n)||this._providers.get(n);e&&e.addEnhancerMetadata(r)}return r}addProvider(e,t){if(this.isCustomProvider(e))return this.isEntryProvider(e.provide)&&this._entryProviderKeys.add(e.provide),this.addCustomProvider(e,this._providers,t);let n=this._providers.has(e);return(this.isTransientProvider(e)||this.isRequestScopeProvider(e))&&n?e:(this._providers.set(e,new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),host:this})),this.isEntryProvider(e)&&this._entryProviderKeys.add(e),e)}isCustomProvider(e){return!(0,i.isNil)(e.provide)}addCustomProvider(e,t,n){return this.isCustomClass(e)?this.addCustomClass(e,t,n):this.isCustomValue(e)?this.addCustomValue(e,t,n):this.isCustomFactory(e)?this.addCustomFactory(e,t,n):this.isCustomUseExisting(e)&&this.addCustomUseExisting(e,t,n),e.provide}isCustomClass(e){return!(0,i.isUndefined)(e.useClass)}isCustomValue(e){return(0,i.isObject)(e)&&Object.prototype.hasOwnProperty.call(e,`useValue`)}isCustomFactory(e){return!(0,i.isUndefined)(e.useFactory)}isCustomUseExisting(e){return!(0,i.isUndefined)(e.useExisting)}isDynamicModule(e){return e&&e.module}addCustomClass(e,t,n){let{scope:r,durable:a}=e,{useClass:o}=e;(0,i.isUndefined)(r)&&(r=(0,l.getClassScope)(o)),(0,i.isUndefined)(a)&&(a=(0,u.isDurable)(o));let s=e.provide;t.set(s,new p.InstanceWrapper({token:s,name:o?.name||o,metatype:o,instance:null,isResolved:!1,scope:r,durable:a,host:this,subtype:n}))}addCustomValue(e,t,n){let{useValue:r,provide:i}=e,a=this.container.contextOptions?.instrument?.instanceDecorator;t.set(i,new p.InstanceWrapper({token:i,name:i?.name||i,metatype:null,instance:a?a(r):r,isResolved:!0,async:r instanceof Promise,host:this,subtype:n}))}addCustomFactory(e,t,n){let{useFactory:r,inject:i,scope:a,durable:o,provide:s}=e;t.set(s,new p.InstanceWrapper({token:s,name:s?.name||s,metatype:r,instance:null,isResolved:!1,inject:i||[],scope:a,durable:o,host:this,subtype:n}))}addCustomUseExisting(e,t,n){let{useExisting:r,provide:i}=e;t.set(i,new p.InstanceWrapper({token:i,name:i?.name||i,metatype:(e=>e),instance:null,isResolved:!1,inject:[r],host:this,isAlias:!0,subtype:n}))}addExportedProviderOrModule(e){let t=e=>this._exports.add(this.validateExportedProvider(e));if(this.isCustomProvider(e))return this.addCustomExportedProvider(e);if((0,i.isString)(e)||(0,i.isSymbol)(e))return t(e);if(this.isDynamicModule(e)){let{module:n}=e;return t(n)}t(e)}addCustomExportedProvider(e){let t=e.provide;if((0,i.isString)(t)||(0,i.isSymbol)(t))return this._exports.add(this.validateExportedProvider(t));this._exports.add(this.validateExportedProvider(t))}validateExportedProvider(e){if(this._providers.has(e))return e;if(!(0,a.iterate)(this._imports.values()).filter(e=>!!e).map(({metatype:e})=>e).filter(e=>!!e).toArray().includes(e)){let{name:t}=this.metatype,n=(0,i.isFunction)(e)?e.name:e;throw new s.UnknownExportException(n,t)}return e}addController(e){this._controllers.set(e,new p.InstanceWrapper({token:e,name:e.name,metatype:e,instance:null,isResolved:!1,scope:(0,l.getClassScope)(e),durable:(0,u.isDurable)(e),host:this})),this.assignControllerUniqueId(e)}assignControllerUniqueId(e){Object.defineProperty(e,f.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,r.randomStringGenerator)()})}addImport(e){this._imports.add(e)}replace(e,t){if(t.isProvider&&this.hasProvider(e))return this._providers.get(e).mergeWith({provide:e,...t});if(!t.isProvider&&this.hasInjectable(e))return this._injectables.get(e).mergeWith({provide:e,...t})}hasProvider(e){return this._providers.has(e)}hasInjectable(e){return this._injectables.has(e)}getProviderByKey(e){return this._providers.get(e)}getProviderById(e){return Array.from(this._providers.values()).find(t=>t.id===e)}getControllerById(e){return Array.from(this._controllers.values()).find(t=>t.id===e)}getInjectableById(e){return Array.from(this._injectables.values()).find(t=>t.id===e)}getMiddlewareById(e){return Array.from(this._middlewares.values()).find(t=>t.id===e)}getNonAliasProviders(){return[...this._providers].filter(([e,t])=>!t.isAlias)}createModuleReferenceType(){let e=this;return class extends m.ModuleRef{constructor(){super(e.container)}get(t,n={}){return n.strict??=!0,n.each??=!1,this.find(t,n.strict?{moduleId:e.id,each:n.each}:n)}resolve(t,n=(0,c.createContextId)(),r={}){return r.strict??=!0,r.each??=!1,this.resolvePerContext(t,e,n,r)}async create(t,n){if(!(t&&(0,i.isFunction)(t)&&t.prototype))throw new s.InvalidClassException(t);return this.instantiateClass(t,e,n)}}}isEntryProvider(e){return typeof e==`function`?!!Reflect.getMetadata(t.ENTRY_PROVIDER_WATERMARK,e):!1}generateUuid(){let e=this.token?this.token.includes(`:`)?this.token.split(`:`)[1]:this.token:this.name;return e?d.UuidFactory.get(`M__${e}`):(0,r.randomStringGenerator)()}isTransientProvider(e){return(0,l.getClassScope)(e)===n.Scope.TRANSIENT}isRequestScopeProvider(e){return(0,l.getClassScope)(e)===n.Scope.REQUEST}}})),YS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ByReferenceModuleOpaqueKeyFactory=void 0;var t=fn(),n=require(`crypto`),r=Symbol(`K_MODULE_ID`);e.ByReferenceModuleOpaqueKeyFactory=class{constructor(e){this.keyGenerationStrategy=e?.keyGenerationStrategy??`random`}createForStatic(e,t=e){return this.getOrCreateModuleId(e,void 0,t)}createForDynamic(e,t,n){return this.getOrCreateModuleId(e,t,n)}getOrCreateModuleId(e,t,n){if(n[r])return n[r];let i;return i=this.keyGenerationStrategy===`random`?this.generateRandomString():t?`${this.generateRandomString()}:${this.hashString(e.name+JSON.stringify(t))}`:`${this.generateRandomString()}:${this.hashString(e.toString())}`,n[r]=i,i}hashString(e){return(0,n.createHash)(`sha256`).update(e).digest(`hex`)}generateRandomString(){return(0,t.randomStringGenerator)()}}})),XS=s(((e,t)=>{t.exports=s,s.default=s,s.stable=d,s.stableStringify=d;var n=`[...]`,r=`[Circular]`,i=[],a=[];function o(){return{depthLimit:2**53-1,edgesLimit:2**53-1}}function s(e,t,n,r){r===void 0&&(r=o()),l(e,``,0,[],void 0,0,r);var s;try{s=a.length===0?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var c=i.pop();c.length===4?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function c(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get===void 0?(r[n]=e,i.push([r,n,t])):o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):a.push([t,n,e])}function l(e,t,i,a,o,s,u){s+=1;var d;if(typeof e==`object`&&e){for(d=0;d<a.length;d++)if(a[d]===e){c(r,e,t,o);return}if(u.depthLimit!==void 0&&s>u.depthLimit){c(n,e,t,o);return}if(u.edgesLimit!==void 0&&i+1>u.edgesLimit){c(n,e,t,o);return}if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,s,u);else{var f=Object.keys(e);for(d=0;d<f.length;d++){var p=f[d];l(e[p],p,d,a,e,s,u)}}a.pop()}}function u(e,t){return e<t?-1:+(e>t)}function d(e,t,n,r){r===void 0&&(r=o());var s=f(e,``,0,[],void 0,0,r)||e,c;try{c=a.length===0?JSON.stringify(s,t,n):JSON.stringify(s,p(t),n)}catch{return JSON.stringify(`[unable to serialize, circular reference is too complex to analyze]`)}finally{for(;i.length!==0;){var l=i.pop();l.length===4?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function f(e,t,a,o,s,l,d){l+=1;var p;if(typeof e==`object`&&e){for(p=0;p<o.length;p++)if(o[p]===e){c(r,e,t,s);return}try{if(typeof e.toJSON==`function`)return}catch{return}if(d.depthLimit!==void 0&&l>d.depthLimit){c(n,e,t,s);return}if(d.edgesLimit!==void 0&&a+1>d.edgesLimit){c(n,e,t,s);return}if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)f(e[p],p,p,o,e,l,d);else{var m={},h=Object.keys(e).sort(u);for(p=0;p<h.length;p++){var g=h[p];f(e[g],g,p,o,e,l,d),m[g]=e[g]}if(s!==void 0)i.push([s,t,e]),s[t]=m;else return m}o.pop()}}function p(e){return e=e===void 0?function(e,t){return t}:e,function(t,n){if(a.length>0)for(var r=0;r<a.length;r++){var i=a[r];if(i[1]===t&&i[0]===n){n=i[2],a.splice(r,1);break}}return e.call(this,t,n)}}})),ZS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeepHashedModuleOpaqueKeyFactory=void 0;var t=ct(),n=fn(),r=A(),i=require(`crypto`),a=XS(),o=`class `,s=6;e.DeepHashedModuleOpaqueKeyFactory=class e{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new t.Logger(e.name,{timestamp:!0})}createForStatic(e){let t=`${this.getModuleId(e)}_${this.getModuleName(e)}`;if(this.moduleTokenCache.has(t))return this.moduleTokenCache.get(t);let n=this.hashString(t);return this.moduleTokenCache.set(t,n),n}createForDynamic(e,t){let n={id:this.getModuleId(e),module:this.getModuleName(e),dynamic:t},r=performance.now(),i=this.getStringifiedOpaqueToken(n),a=performance.now()-r;if(a>10){let e=a.toFixed(2);this.logger.warn(`The module "${n.module}" is taking ${e}ms to serialize, this may be caused by larger objects statically assigned to the module. Consider changing the "moduleIdGeneratorAlgorithm" option to "reference" to improve the performance.`)}return this.hashString(i)}getStringifiedOpaqueToken(e){return e?(0,a.default)(e,this.replacer):``}getModuleId(e){let t=this.moduleIdsCache.get(e);return t||(t=(0,n.randomStringGenerator)(),this.moduleIdsCache.set(e,t),t)}getModuleName(e){return e.name}hashString(e){return(0,i.createHash)(`sha256`).update(e).digest(`hex`)}replacer(e,t){if((0,r.isFunction)(t)){let e=t.toString();return e.slice(0,s)===o?t.name:e}return(0,r.isSymbol)(t)?t.toString():t}}})),QS=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestContainer=void 0;var t=O(),n=jx(),r=bS(),i=xS(),a=VS(),o=Rx(),s=HS(),c=KS(),l=qS(),u=JS(),d=Ax(),f=YS(),p=ZS();e.NestContainer=class{constructor(e=void 0,t=void 0){this._applicationConfig=e,this._contextOptions=t,this.globalModules=new Set,this.modules=new d.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new l.InternalProvidersStorage,this._serializedGraph=new a.SerializedGraph;let n=this._contextOptions?.moduleIdGeneratorAlgorithm===`deep-hash`?new p.DeepHashedModuleOpaqueKeyFactory:new f.ByReferenceModuleOpaqueKeyFactory({keyGenerationStrategy:this._contextOptions?.snapshot?`shallow`:`random`});this.moduleCompiler=new s.ModuleCompiler(n)}get serializedGraph(){return this._serializedGraph}get applicationConfig(){return this._applicationConfig}get contextOptions(){return this._contextOptions}setHttpAdapter(e){if(this.internalProvidersStorage.httpAdapter=e,!this.internalProvidersStorage.httpAdapterHost)return;let t=this.internalProvidersStorage.httpAdapterHost;t.httpAdapter=e}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}async addModule(e,t){if(!e)throw new r.UndefinedForwardRefException(t);let{type:n,dynamicMetadata:i,token:a}=await this.moduleCompiler.compile(e);return this.modules.has(a)?{moduleRef:this.modules.get(a),inserted:!0}:{moduleRef:await this.setModule({token:a,type:n,dynamicMetadata:i},t),inserted:!0}}async replaceModule(e,t,n){if(!e||!t)throw new r.UndefinedForwardRefException(n);let{token:i}=await this.moduleCompiler.compile(e),{type:a,dynamicMetadata:o}=await this.moduleCompiler.compile(t);return{moduleRef:await this.setModule({token:i,type:a,dynamicMetadata:o},n),inserted:!1}}async setModule({token:e,dynamicMetadata:t,type:n},r){let i=new u.Module(n,this);i.token=e,i.initOnPreview=this.shouldInitOnPreview(n),this.modules.set(e,i);let a=[].concat(r,n);return await this.addDynamicMetadata(e,t,a),this.isGlobalModule(n,t)&&(i.isGlobal=!0,i.distance=Number.MAX_VALUE,this.addGlobalModule(i)),i}async addDynamicMetadata(e,t,n){if(!t)return;this.dynamicModulesMetadata.set(e,t);let{imports:r}=t;await this.addDynamicModules(r,n)}async addDynamicModules(e,t){e&&await Promise.all(e.map(e=>this.addModule(e,t)))}isGlobalModule(e,n){return n&&n.global?!0:!!Reflect.getMetadata(t.GLOBAL_MODULE_METADATA,e)}addGlobalModule(e){this.globalModules.add(e)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(e){return this.modules.get(e)}getInternalCoreModuleRef(){return this.internalCoreModule}async addImport(e,t){if(!this.modules.has(t))return;let n=this.modules.get(t),{token:r}=await this.moduleCompiler.compile(e),i=this.modules.get(r);n.addImport(i)}addProvider(e,t,i){let a=this.modules.get(t);if(!e)throw new r.CircularDependencyException(a?.metatype.name);if(!a)throw new r.UnknownModuleException;let o=a.addProvider(e,i),s=a.getProviderByKey(o);return n.DiscoverableMetaHostCollection.inspectProvider(this.modules,s),o}addInjectable(e,t,n,i){if(!this.modules.has(t))throw new r.UnknownModuleException;return this.modules.get(t).addInjectable(e,n,i)}addExportedProviderOrModule(e,t){if(!this.modules.has(t))throw new r.UnknownModuleException;this.modules.get(t).addExportedProviderOrModule(e)}addController(e,t){if(!this.modules.has(t))throw new r.UnknownModuleException;let i=this.modules.get(t);i.addController(e);let a=i.controllers.get(e);n.DiscoverableMetaHostCollection.inspectController(this.modules,a)}clear(){this.modules.clear()}replace(e,t){this.modules.forEach(n=>n.replace(e,t))}bindGlobalScope(){this.modules.forEach(e=>this.bindGlobalsToImports(e))}bindGlobalsToImports(e){this.globalModules.forEach(t=>this.bindGlobalModuleToModule(e,t))}bindGlobalModuleToModule(e,t){e===t||e===this.internalCoreModule||e.addImport(t)}getDynamicMetadataByToken(e,t){let n=this.dynamicModulesMetadata.get(e);return t?n?.[t]??[]:n}registerCoreModuleRef(e){this.internalCoreModule=e,this.modules[c.InternalCoreModule.name]=e}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(e,t){this.internalCoreModule.getProviderByKey(o.REQUEST).setInstanceByContextId(t,{instance:e,isResolved:!0})}shouldInitOnPreview(e){return i.InitializeOnPreviewAllowlist.has(e)}}})),$S=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(QS(),e),t.__exportStar(AS(),e),t.__exportStar(zS(),e),t.__exportStar(RS(),e),t.__exportStar(Ax(),e)})),eC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PartialGraphHost=void 0,e.PartialGraphHost=class{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(e){this.partialGraph=e}}})),tC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GraphInspector=void 0;var t=OS(),n=jS(),r=eC();e.GraphInspector=class{constructor(e){this.container=e,this.enhancersMetadataCache=[],this.graph=e.serializedGraph}inspectModules(e=this.container.getModules()){for(let t of e.values())this.insertModuleNode(t),this.insertClassNodes(t),this.insertModuleToModuleEdges(t);this.enhancersMetadataCache.forEach(e=>this.insertEnhancerEdge(e)),n.DeterministicUuidRegistry.clear()}registerPartial(e){this.graph.status=`partial`,e instanceof t.UnknownDependenciesException?this.graph.metadata={cause:{type:`unknown-dependencies`,context:e.context,moduleId:e.moduleRef?.id,nodeId:e.metadata?.id}}:this.graph.metadata={cause:{type:`unknown`,error:e}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(e,t){e.getCtorMetadata()?.forEach((n,r)=>this.insertClassToClassEdge(e,n,t,r,`constructor`)),e.getPropertiesMetadata()?.forEach(({key:n,wrapper:r})=>this.insertClassToClassEdge(e,r,t,n,`property`))}insertEnhancerMetadataCache(e){this.enhancersMetadataCache.push(e)}insertOrphanedEnhancer(e){this.graph.insertOrphanedEnhancer({...e,ref:e.ref?.constructor?.name??`Object`})}insertAttachedEnhancer(e){let t=this.graph.getNodeById(e.id);t.metadata.global=!0,this.graph.insertAttachedEnhancer(t.id)}insertEntrypointDefinition(e,t){e={...e,id:`${e.classNodeId}_${e.methodName}`},this.graph.insertEntrypoint(e,t)}insertClassNode(e,t,n){this.graph.insertNode({id:t.id,label:t.name,parent:e.id,metadata:{type:n,internal:t.metatype===e.metatype,sourceModuleName:e.name,durable:t.isDependencyTreeDurable(),static:t.isDependencyTreeStatic(),scope:t.scope,transient:t.isTransient,exported:e.exports.has(t.token),token:t.token,subtype:t.subtype,initTime:t.initTime}})}insertModuleNode(e){let t=this.container.getDynamicMetadataByToken(e.token),n={id:e.id,label:e.name,metadata:{type:`module`,global:e.isGlobal,dynamic:!!t,internal:e.name===`InternalCoreModule`}};this.graph.insertNode(n)}insertModuleToModuleEdges(e){for(let t of e.imports)this.graph.insertEdge({source:e.id,target:t.id,metadata:{type:`module-to-module`,sourceModuleName:e.name,targetModuleName:t.name}})}insertEnhancerEdge(e){let t=this.container.getModuleByKey(e.moduleToken),n=t.controllers.get(e.classRef)??t.providers.get(e.classRef),r=this.graph.getNodeById(n.id),i=r.metadata.enhancers??[];if(e.enhancerInstanceWrapper)this.insertClassToClassEdge(n,e.enhancerInstanceWrapper,t,void 0,`decorator`),i.push({id:e.enhancerInstanceWrapper.id,methodKey:e.methodKey,subtype:e.subtype});else{let t=e.enhancerRef.constructor?.name??e.enhancerRef.name;i.push({name:t,methodKey:e.methodKey,subtype:e.subtype})}r.metadata.enhancers=i}insertClassToClassEdge(e,t,n,r,i){this.graph.insertEdge({source:e.id,target:t.id,metadata:{type:`class-to-class`,sourceModuleName:n.name,sourceClassName:e.name,targetClassName:t.name,sourceClassToken:e.token,targetClassToken:t.token,targetModuleName:t.host?.name,keyOrIndex:r,injectionType:i}})}insertClassNodes(e){e.providers.forEach(t=>this.insertClassNode(e,t,`provider`)),e.injectables.forEach(t=>this.insertClassNode(e,t,`injectable`)),e.controllers.forEach(t=>this.insertClassNode(e,t,`controller`))}}})),nC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(tC(),e),t.__exportStar(xS(),e),t.__exportStar(eC(),e),t.__exportStar(VS(),e)})),rC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.parse=u,e.compile=d,e.match=m,e.pathToRegexp=h,e.stringify=b;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function o(e){return e.replace(/[{}()\[\]+?!:*\\]/g,`\\$&`)}function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var c=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=c;var l=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=l;function u(e,t={}){let{encodePath:a=n}=t,o=[...e],s=0;function u(t){let n=[],c=``;function d(){c&&=(n.push({type:`text`,value:a(c)}),``)}for(;s<o.length;){let a=o[s++];if(a===t)return d(),n;if(a===`\\`){if(s===o.length)throw new l(`Unexpected end after \\ at index ${s}`,e);c+=o[s++];continue}if(a===`:`||a===`*`){let t=a===`:`?`param`:`wildcard`,c=``;if(r.test(o[s]))do c+=o[s++];while(i.test(o[s]));else if(o[s]===`"`){let t=s;for(;s<o.length;){if(o[++s]===`"`){s++,t=0;break}o[s]===`\\`&&s++,c+=o[s]}if(t)throw new l(`Unterminated quote at index ${t}`,e)}if(!c)throw new l(`Missing parameter name at index ${s}`,e);d(),n.push({type:t,name:c});continue}if(a===`{`){d(),n.push({type:`group`,tokens:u(`}`)});continue}if(a===`}`||a===`(`||a===`)`||a===`[`||a===`]`||a===`+`||a===`?`||a===`!`)throw new l(`Unexpected ${a} at index ${s-1}`,e);c+=a}if(t)throw new l(`Unexpected end at index ${s}, expected ${t}`,e);return d(),n}return new c(u(``),e)}function d(e,n={}){let{encode:r=encodeURIComponent,delimiter:i=t}=n,a=f((typeof e==`object`?e:u(e,n)).tokens,i,r);return function(e={}){let t=[],n=a(e,t);if(t.length)throw TypeError(`Missing parameters: ${t.join(`, `)}`);return n}}function f(e,t,n){let r=e.map(e=>p(e,t,n));return(e,t)=>{let n=``;for(let i of r)n+=i(e,t);return n}}function p(e,t,r){if(e.type===`text`)return()=>e.value;if(e.type===`group`){let n=f(e.tokens,t,r);return(e,t)=>{let r=t.length,i=n(e,t);return t.length===r?i:(t.length=r,``)}}let i=r||n;return e.type===`wildcard`&&r!==!1?(n,r)=>{let a=n[e.name];if(a==null)return r.push(e.name),``;if(!Array.isArray(a)||a.length===0)throw TypeError(`Expected "${e.name}" to be a non-empty array`);let o=``;for(let n=0;n<a.length;n++){if(typeof a[n]!=`string`)throw TypeError(`Expected "${e.name}/${n}" to be a string`);n>0&&(o+=t),o+=i(a[n])}return o}:(t,n)=>{let r=t[e.name];if(r==null)return n.push(e.name),``;if(typeof r!=`string`)throw TypeError(`Expected "${e.name}" to be a string`);return i(r)}}function m(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=h(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function h(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:o=!0}=n,c=[],d=``,f=0;function p(e){if(Array.isArray(e)){for(let t of e)p(t);return}let t=typeof e==`object`?e:u(e,n);g(t.tokens,0,[],e=>{if(f>=256)throw new l(`Too many path combinations`,t.originalPath);f>0&&(d+=`|`),d+=_(e,r,c,t.originalPath),f++})}p(e);let m=`^(?:${d})`;return o&&(m+=`(?:`+s(r)+`$)?`),m+=i?`$`:`(?=`+s(r)+`|$)`,{regexp:new RegExp(m,a?``:`i`),keys:c}}function g(e,t,n,r){for(;t<e.length;){let i=e[t++];if(i.type===`group`){let a=n.length;g(i.tokens,0,n,n=>g(e,t,n,r)),n.length=a;continue}n.push(i)}r(n)}function _(e,t,n,r){let i=``,a=``,o=``,c=0,u=0,d=0;function f(n,r){for(;n<e.length;){let i=e[n++];if(i.type===r)return!0;if(i.type===`text`&&i.value.includes(t))break}return!1}function p(t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type!==`text`)break;n+=r.value}return n}for(;d<e.length;){let m=e[d++];if(m.type===`text`){i+=s(m.value),a+=m.value,c===2&&(o+=m.value),m.value.includes(t)&&(u=0);continue}if(m.type===`param`||m.type===`wildcard`){if(c&&!a)throw new l(`Missing text before "${m.name}" ${m.type}`,r);m.type===`param`?(i+=u&2?`(${v(t,a)}+)`:f(d,`wildcard`)?`(${v(t,p(d))}+)`:u&1?`(${v(t,a)}+|${s(a)})`:`(${v(t,``)}+)`,u|=c=1):(i+=u&2?`(${v(a,``)}+)`:o?`(${v(o,``)}+|${v(t,``)}+)`:`([^]+)`,o=``,u|=c=2),n.push(m),a=``;continue}throw TypeError(`Unknown token type: ${m.type}`)}return i}function v(e,t){return t.length>e.length?v(t,e):(e===t&&(t=``),t.length>1?`(?:(?!${s(e)}|${s(t)})[^])`:e.length>1?`(?:(?!${s(e)})[^${s(t)}])`:`[^${s(e+t)}]`)}function y(e,t){let n=``;for(;t<e.length;){let r=e[t++];if(r.type===`text`){n+=o(r.value);continue}if(r.type===`group`){n+=`{`+y(r.tokens,0)+`}`;continue}if(r.type===`param`){n+=`:`+x(r.name,e[t]);continue}if(r.type===`wildcard`){n+=`*`+x(r.name,e[t]);continue}throw TypeError(`Unknown token type: ${r.type}`)}return n}function b(e){return y(e.tokens,0)}function x(e,t){return!a.test(e)||t?.type===`text`&&i.test(t.value[0])?JSON.stringify(e):e}})),iC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LegacyRouteConverter=void 0;var t=H(),n=(e,t)=>`Unsupported route path: "${t}". In previous versions, the symbols ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. For more details, refer to the migration guide.`,r=class{static tryConvert(e,t){let n=e.startsWith(`/`)?e:`/${e}`,r=e.endsWith(`/`)?n:`${n}/`,i=t?.logs??!0?this.printWarning.bind(this):()=>{};return r.endsWith(`/(.*)/`)?(r!==`/(.*)/`&&i(e),e.replace(`(.*)`,`{*path}`)):r.endsWith(`/*/`)?(r!==`/*/`&&i(e),e.replace(`*`,`{*path}`)):r.endsWith(`/+/`)?(i(e),e.replace(`/+`,`/*path`)):r.includes(`/*/`)?(i(e),e.replaceAll(`/*/`,(e,t)=>`/*path${t}/`)):e}static printError(e){this.logger.error(n`${e}`)}static printWarning(e){this.logger.warn(n`${e}`+` Attempting to auto-convert...`)}};e.LegacyRouteConverter=r,r.logger=new t.Logger(r.name)})),aC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=r;var t=H(),n=A();e.isRequestMethodAll=e=>t.RequestMethod.ALL===e||e===-1;function r(t,r,i){return t.some(t=>(0,e.isRequestMethodAll)(t.requestMethod)||t.requestMethod===i?t.pathRegex.exec((0,n.addLeadingSlash)(r)):!1)}})),oC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.flattenRoutePaths=n;var t=A();function n(e){let r=[];return e.forEach(e=>{if(e.module&&e.path&&r.push({module:e.module,path:e.path}),e.children){let i=e.children;i.forEach(n=>{!(0,t.isString)(n)&&(0,t.isString)(n.path)?n.path=(0,t.normalizePath)((0,t.normalizePath)(e.path)+(0,t.normalizePath)(n.path)):r.push({path:e.path,module:n})}),r.push(...n(i))}}),r}})),sC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(aC(),e),t.__exportStar(oC(),e)})),cC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mapToClass=e.filterMiddleware=e.mapToExcludeRoute=void 0,e.isMiddlewareClass=c,e.assignToken=l,e.isMiddlewareRouteExcluded=u;var t=H(),n=A(),r=I(),i=rC(),a=M(),o=iC(),s=sC();e.mapToExcludeRoute=e=>e.map(e=>{let r=(0,n.isString)(e)?e:e.path,a=o.LegacyRouteConverter.tryConvert(r);try{return(0,n.isString)(e)?{path:a,requestMethod:t.RequestMethod.ALL,pathRegex:(0,i.pathToRegexp)((0,n.addLeadingSlash)(a)).regexp}:{path:a,requestMethod:e.method,pathRegex:(0,i.pathToRegexp)((0,n.addLeadingSlash)(a)).regexp}}catch(e){throw e instanceof TypeError&&o.LegacyRouteConverter.printError(r),e}}),e.filterMiddleware=(t,i,a)=>{let o=(0,e.mapToExcludeRoute)(i);return(0,r.iterate)([]).concat(t).filter(n.isFunction).map(t=>(0,e.mapToClass)(t,o,a)).toArray()},e.mapToClass=(e,t,n)=>c(e)?t.length<=0?e:l(class extends e{use(...e){let[r,i,a]=e;return u(r,t,n)?a():super.use(...e)}},e.name):l(class{constructor(){this.use=(...r)=>{let[i,a,o]=r;return u(i,t,n)?o():e(...r)}}});function c(e){let t=e.toString();if(t.substring(0,5)===`class`)return!0;let r=t.split(` `);return r[0]===`function`&&/[A-Z]/.test(r[1]?.[0])&&(0,n.isFunction)(e.prototype?.use)}function l(e,t=(0,a.uid)(21)){return Object.defineProperty(e,`name`,{value:t}),e}function u(e,n,r){if(n.length<=0)return!1;let i=r.getRequestMethod(e),a=r.getRequestUrl(e),o=a?a.indexOf(`?`):-1,c=o>=0?a.slice(0,o):a;return(0,s.isRouteExcluded)(n,c,t.RequestMethod[i])}})),lC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareBuilder=void 0;var t=A(),n=I(),r=cC(),i=class e{constructor(e,t,n){this.routesMapper=e,this.httpAdapter=t,this.routeInfoPathExtractor=n,this.middlewareCollection=new Set}apply(...t){return new e.ConfigProxy(this,t.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}};e.MiddlewareBuilder=i,i.ConfigProxy=class{constructor(e,t,n){this.builder=e,this.middleware=t,this.routeInfoPathExtractor=n,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...e){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(e).reduce((e,t)=>{for(let n of this.routeInfoPathExtractor.extractPathFrom(t))e.push({...t,path:n});return e},[])],this}forRoutes(...e){let{middlewareCollection:t}=this.builder,n=this.getRoutesFlatList(e),i=this.removeOverlappedRoutes(n),a={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:i};return t.add(a),this.builder}getRoutesFlatList(e){let{routesMapper:t}=this.builder;return(0,n.iterate)(e).map(e=>t.mapRouteToRouteInfo(e)).flatten().toArray()}removeOverlappedRoutes(e){let n=/(:[^/]*)/g,r=e.filter(e=>e.path.includes(`:`)).map(e=>({method:e.method,path:e.path,regex:RegExp(`^(`+e.path.replace(n,`([^/]*)`)+`)$`,`g`)}));return e.filter(e=>r.find(n=>{if(e.method!==n.method)return!1;let r=(0,t.stripEndSlash)(e.path);return r!==n.path&&n.regex.test(r)})===void 0)}}})),uC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(lC(),e)})),dC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.optionalRequire=t;function t(e,t){try{return t?t():require(e)}catch{return{}}}})),fC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareContainer=void 0;var t=wS(),n=TS(),r=PS();e.MiddlewareContainer=class{constructor(e){this.container=e,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(e){if(!this.middleware.has(e)){let t=this.container.getModuleByKey(e);this.middleware.set(e,t.middlewares)}return this.middleware.get(e)}getConfigurations(){return this.configurationSets}insertConfig(e,i){let a=this.getMiddlewareCollection(i),o=this.getTargetConfig(i),s=e||[],c=e=>{let i=e;a.set(i,new r.InstanceWrapper({scope:(0,t.getClassScope)(e),durable:(0,n.isDurable)(e),name:i?.name??i,metatype:e,token:i}))};s.forEach(e=>{[].concat(e.middleware).map(c),o.add(e)})}getTargetConfig(e){return this.configurationSets.has(e)||this.configurationSets.set(e,new Set),this.configurationSets.get(e)}}})),pC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidMiddlewareException=void 0;var t=Gx(),n=Wx();e.InvalidMiddlewareException=class extends n.RuntimeException{constructor(e){super((0,t.INVALID_MIDDLEWARE_MESSAGE)`${e}`)}}})),mC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionsHandler=void 0;var t=Ux(),n=A(),r=Kx(),i=Ix();e.ExceptionsHandler=class extends i.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(e,t){this.invokeCustomFilters(e,t)||super.catch(e,t)}setCustomFilters(e){if(!Array.isArray(e))throw new r.InvalidExceptionFilterException;this.filters=e}invokeCustomFilters(e,r){if((0,n.isEmpty)(this.filters))return!1;let i=(0,t.selectExceptionFilterMetadata)(this.filters,e);return i&&i.func(e,r),!!i}}})),hC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExceptionFilters=void 0;var t=O(),n=A(),r=I(),i=Hx(),a=mC(),o=Bx();e.RouterExceptionFilters=class extends i.BaseExceptionFilterContext{constructor(e,t,n){super(e),this.config=t,this.applicationRef=n}create(e,r,i,s=o.STATIC_CONTEXT,c){this.moduleContext=i;let l=new a.ExceptionsHandler(this.applicationRef),u=this.createContext(e,r,t.EXCEPTION_FILTERS_METADATA,s,c);return(0,n.isEmpty)(u)||l.setCustomFilters(u.reverse()),l}getGlobalMetadata(e=o.STATIC_CONTEXT,t){let n=this.config.getGlobalFilters();if(e===o.STATIC_CONTEXT&&!t)return n;let i=this.config.getGlobalRequestFilters(),a=(0,r.iterate)(i).map(n=>n.getInstanceByContextId(e,t)).filter(e=>!!e).map(e=>e.instance).toArray();return n.concat(a)}}})),gC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterProxy=void 0;var t=Zx();e.RouterProxy=class{createProxy(e,n){return async(r,i,a)=>{try{await e(r,i,a)}catch(e){let o=new t.ExecutionContextHost([r,i,a]);return n.next(e,o),i}}}createExceptionLayerProxy(e,n){return async(r,i,a,o)=>{try{await e(r,i,a,o)}catch(e){let r=new t.ExecutionContextHost([i,a,o]);return n.next(e,r),a}}}}})),_C=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareResolver=void 0,e.MiddlewareResolver=class{constructor(e,t){this.middlewareContainer=e,this.injector=t}async resolveInstances(e,t){let n=this.middlewareContainer.getMiddlewareCollection(t),r=async t=>this.resolveMiddlewareInstance(t,n,e);await Promise.all([...n.values()].map(r))}async resolveMiddlewareInstance(e,t,n){await this.injector.loadMiddleware(e,t,n)}}})),vC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutePathFactory=void 0;var t=H(),n=A(),r=sC();e.RoutePathFactory=class{constructor(e){this.applicationConfig=e}create(e,r){let i=[``],a=this.getVersion(e);if(a&&e.versioningOptions?.type===t.VersioningType.URI){let n=this.getVersionPrefix(e.versioningOptions);Array.isArray(a)?i=(0,t.flatten)(i.map(e=>a.map(r=>r===t.VERSION_NEUTRAL?e:`${e}/${n}${r}`))):a!==t.VERSION_NEUTRAL&&(i=i.map(e=>`${e}/${n}${a}`))}return i=this.appendToAllIfDefined(i,e.modulePath),i=this.appendToAllIfDefined(i,e.ctrlPath),i=this.appendToAllIfDefined(i,e.methodPath),e.globalPrefix&&(i=i.map(t=>this.isExcludedFromGlobalPrefix(t,r,a,e.versioningOptions)?t:(0,n.stripEndSlash)(e.globalPrefix||``)+t)),i.map(e=>(0,n.addLeadingSlash)(e||`/`)).map(e=>e===`/`?e:(0,n.stripEndSlash)(e))}getVersion(e){return e.methodVersion||e.controllerVersion}getVersionPrefix(e){if(e.type===t.VersioningType.URI){if(e.prefix===!1)return``;if(e.prefix!==void 0)return e.prefix}return`v`}appendToAllIfDefined(e,r){if(!r)return e;let i=(e,t)=>(0,n.stripEndSlash)(e)+(0,n.addLeadingSlash)(t);if(Array.isArray(r)){let n=e.map(e=>r.map(t=>i(e,t)));return(0,t.flatten)(n)}return e.map(e=>i(e,r))}isExcludedFromGlobalPrefix(e,i,a,o){if((0,n.isUndefined)(i))return!1;let s=this.applicationConfig.getGlobalPrefixOptions().exclude;return a&&a!==t.VERSION_NEUTRAL&&o?.type===t.VersioningType.URI&&(e=this.truncateVersionPrefixFromPath(e,a,o)),Array.isArray(s)&&(0,r.isRouteExcluded)(s,e,i)}truncateVersionPrefixFromPath(e,t,n){if(typeof t!=`string`)return t.forEach(t=>{typeof t==`string`&&(e=this.truncateVersionPrefixFromPath(e,t,n))}),e;let r=`/${this.getVersionPrefix(n)}${t}`;return e.startsWith(r)?e.replace(r,``):e}}})),yC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteInfoPathExtractor=void 0;var t=H(),n=A(),r=sC(),i=vC();e.RouteInfoPathExtractor=class{constructor(e){this.applicationConfig=e,this.routePathFactory=new i.RoutePathFactory(e),this.prefixPath=(0,n.stripEndSlash)((0,n.addLeadingSlash)(this.applicationConfig.getGlobalPrefix())),this.excludedGlobalPrefixRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude,this.versioningConfig=this.applicationConfig.getVersioning()}extractPathsFrom({path:e,method:t,version:r}){let i=this.extractVersionPathFrom(r);if(this.isAWildcard(e)){let t=i.length>0?i.map(t=>[this.prefixPath+t+`$`,this.prefixPath+t+(0,n.addLeadingSlash)(e)]).flat():this.prefixPath?[this.prefixPath+`$`,this.prefixPath+(0,n.addLeadingSlash)(e)]:[(0,n.addLeadingSlash)(e)];return Array.isArray(this.excludedGlobalPrefixRoutes)?[...t,...this.excludedGlobalPrefixRoutes.map(e=>Array.isArray(i)&&i.length>0?i.map(t=>t+(0,n.addLeadingSlash)(e.path)):(0,n.addLeadingSlash)(e.path)).flat()]:t}return this.extractNonWildcardPathsFrom({path:e,method:t,version:r})}extractPathFrom(e){return this.isAWildcard(e.path)&&!e.version?[(0,n.addLeadingSlash)(e.path)]:this.extractNonWildcardPathsFrom(e)}isAWildcard(e){return[`*`,`/*`,`/*/`,`(.*)`,`/(.*)`].includes(e)?!0:/^\/\{.*\}.*|^\/\*.*$/.test(e)}extractNonWildcardPathsFrom({path:e,method:t,version:i}){let a=this.extractVersionPathFrom(i);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,e,t)?a.length?a.map(t=>t+(0,n.addLeadingSlash)(e)):[(0,n.addLeadingSlash)(e)]:a.length?a.map(t=>this.prefixPath+t+(0,n.addLeadingSlash)(e)):[this.prefixPath+(0,n.addLeadingSlash)(e)]}extractVersionPathFrom(e){if(!e||this.versioningConfig?.type!==t.VersioningType.URI)return[];let r=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(e)?e.map(e=>(0,n.addLeadingSlash)(r+e.toString())):[(0,n.addLeadingSlash)(r+e.toString())]}}})),bC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathsExplorer=void 0;var t=O(),n=A();e.PathsExplorer=class{constructor(e){this.metadataScanner=e}scanForPaths(e,t){let r=(0,n.isUndefined)(t)?Object.getPrototypeOf(e):t;return this.metadataScanner.getAllMethodNames(r).reduce((t,n)=>{let i=this.exploreMethodMetadata(e,r,n);return i&&t.push(i),t},[])}exploreMethodMetadata(e,r,i){let a=e[i],o=r[i],s=Reflect.getMetadata(t.PATH_METADATA,o);if((0,n.isUndefined)(s))return null;let c=Reflect.getMetadata(t.METHOD_METADATA,o),l=Reflect.getMetadata(t.VERSION_METADATA,o);return{path:(0,n.isString)(s)?[(0,n.addLeadingSlash)(s)]:s.map(e=>(0,n.addLeadingSlash)(e)),requestMethod:c,targetCallback:a,methodName:i,version:l}}}})),xC=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;var n=E(),r=H(),i=O(),a=A(),o=Ax(),s=sC();e.ROUTES=Symbol(`ROUTES`),e.targetModulesByContainer=new WeakMap;var c=t=class{constructor(e,t){this.modulesContainer=e,this.routes=t,this.routes=this.deepCloneRoutes(t),this.initialize()}static register(n){return{module:t,providers:[{provide:e.ROUTES,useValue:n}]}}deepCloneRoutes(e){return e.map(e=>typeof e==`function`?e:e.children?{...e,children:this.deepCloneRoutes(e.children)}:{...e})}initialize(){(0,s.flattenRoutePaths)(this.routes).forEach(e=>{let t=(0,a.normalizePath)(e.path);this.registerModulePathMetadata(e.module,t),this.updateTargetModulesCache(e.module)})}registerModulePathMetadata(e,t){Reflect.defineMetadata(i.MODULE_PATH+this.modulesContainer.applicationId,t,e)}updateTargetModulesCache(t){let n;e.targetModulesByContainer.has(this.modulesContainer)?n=e.targetModulesByContainer.get(this.modulesContainer):(n=new WeakSet,e.targetModulesByContainer.set(this.modulesContainer,n));let r=Array.from(this.modulesContainer.values()).find(e=>e?.metatype===t);r&&n.add(r)}};e.RouterModule=c,e.RouterModule=c=t=n.__decorate([(0,r.Module)({}),n.__param(1,(0,r.Inject)(e.ROUTES)),n.__metadata(`design:paramtypes`,[o.ModulesContainer,Array])],c)})),SC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutesMapper=void 0;var t=O(),n=dn(),r=A(),i=kx(),a=bC(),o=xC();e.RoutesMapper=class{constructor(e,t){this.container=e,this.applicationConfig=t,this.pathsExplorer=new a.PathsExplorer(new i.MetadataScanner)}mapRouteToRouteInfo(e){if((0,r.isString)(e))return this.getRouteInfoFromPath(e);let t=this.getRoutePath(e);return this.isRouteInfo(t,e)?this.getRouteInfoFromObject(e):this.getRouteInfoFromController(e,t)}getRouteInfoFromPath(e){return[{path:(0,r.addLeadingSlash)(e),method:-1}]}getRouteInfoFromObject(e){let t={path:(0,r.addLeadingSlash)(e.path),method:e.method};return e.version&&(t.version=e.version),[t]}getRouteInfoFromController(e,t){let i=this.pathsExplorer.scanForPaths(Object.create(e),e.prototype),a=this.getVersionMetadata(e),o=this.applicationConfig.getVersioning(),s=this.getHostModuleOfController(e),c=this.getModulePath(s?.metatype),l=(e,t)=>e.concat(t),u=e=>e===n.VERSION_NEUTRAL?void 0:e,d=(e,t)=>e.path?.flatMap(n=>{let i=c??``;i+=this.normalizeGlobalPath(t)+(0,r.addLeadingSlash)(n);let s={path:i,method:e.requestMethod},l=e.version??a;if(l&&o){if(typeof l!=`string`&&Array.isArray(l))return l.map(e=>({...s,version:u(e)}));s.version=u(l)}return s});return[].concat(t).map(e=>i.map(t=>d(t,e)).reduce(l,[])).reduce(l,[])}isRouteInfo(e,t){return(0,r.isUndefined)(e)}normalizeGlobalPath(e){let t=(0,r.addLeadingSlash)(e);return t===`/`?``:t}getRoutePath(e){return Reflect.getMetadata(t.PATH_METADATA,e)}getHostModuleOfController(e){if(!e)return;let t=this.container.getModules(),n=o.targetModulesByContainer.get(t);if(n)return Array.from(t.values()).filter(e=>n.has(e)).find(({controllers:t})=>t.has(e))}getModulePath(e){if(!e)return;let n=this.container.getModules();return Reflect.getMetadata(t.MODULE_PATH+n.applicationId,e)??Reflect.getMetadata(t.MODULE_PATH,e)}getVersionMetadata(e){let n=this.applicationConfig.getVersioning();if(n)return Reflect.getMetadata(t.VERSION_METADATA,e)??n.defaultVersion}}})),CC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MiddlewareModule=void 0;var t=H(),n=_e(),r=A(),i=pC(),a=Wx(),o=zx(),s=Zx(),c=Bx(),l=Rx(),u=hC(),d=gC(),f=sC(),p=lC(),m=_C(),h=yC(),g=SC();e.MiddlewareModule=class e{constructor(){this.routerProxy=new d.RouterProxy,this.exceptionFiltersCache=new WeakMap,this.logger=new t.Logger(e.name)}async register(e,t,n,r,i,a,o){this.appOptions=o;let s=t.getHttpAdapterRef();this.routerExceptionFilter=new u.RouterExceptionFilters(t,n,s),this.routesMapper=new g.RoutesMapper(t,n),this.resolver=new m.MiddlewareResolver(e,r),this.routeInfoPathExtractor=new h.RouteInfoPathExtractor(n),this.injector=r,this.container=t,this.httpAdapter=i,this.graphInspector=a;let c=t.getModules();await this.resolveMiddleware(e,c)}async resolveMiddleware(e,t){let n=[...t.entries()];await Promise.all(n.map(async([t,n])=>{await this.loadConfiguration(e,n,t),await this.resolver.resolveInstances(n,t)}))}async loadConfiguration(e,t,n){let{instance:r}=t;if(!r.configure)return;let i=new p.MiddlewareBuilder(this.routesMapper,this.httpAdapter,this.routeInfoPathExtractor);try{await r.configure(i)}catch(e){if(!this.appOptions.preview)throw e;let n=`Warning! "${t.name}" module exposes a "configure" method that throws an exception in the preview mode (possibly due to missing dependencies). Note: you can ignore this message, just be aware that some of those conditional middlewares will not be reflected in your graph.`;this.logger.warn(n)}if(!(i instanceof p.MiddlewareBuilder))return;let a=i.build();e.insertConfig(a,n)}async registerMiddleware(e,t){let n=e.getConfigurations(),r=async(n,r)=>{for(let i of r)await this.registerMiddlewareConfig(e,i,n,t)},i=[...n.entries()].sort(([e],[t])=>{let n=this.container.getModuleByKey(e),r=this.container.getModuleByKey(t),i=n.distance===Number.MAX_VALUE,a=r.distance===Number.MAX_VALUE;return i&&a?0:i?-1:a?1:n.distance-r.distance});for(let[e,t]of i)await r(e,[...t])}async registerMiddlewareConfig(e,t,n,r){let{forRoutes:i}=t;for(let a of i)await this.registerRouteMiddleware(e,a,t,n,r)}async registerRouteMiddleware(e,t,i,o,s){let c=[].concat(i.middleware),l=this.container.getModuleByKey(o);for(let i of c){let c=e.getMiddlewareCollection(o),u=c.get(i);if((0,r.isUndefined)(u))throw new a.RuntimeException;if(u.isTransient)return;this.graphInspector.insertClassNode(l,u,`middleware`);let d={type:`middleware`,methodName:`use`,className:u.name,classNodeId:u.id,metadata:{key:t.path,path:t.path,requestMethod:n.RequestMethod[t.method]??`ALL`,version:t.version}};this.graphInspector.insertEntrypointDefinition(d,u.id),await this.bindHandler(u,s,t,l,c)}}async bindHandler(e,t,n,a,o){let{instance:c,metatype:l}=e;if((0,r.isUndefined)(c?.use))throw new i.InvalidMiddlewareException(l.name);if(e.isDependencyTreeStatic()){let e=await this.createProxy(c);return this.registerHandler(t,n,e)}let u=e.isDependencyTreeDurable();await this.registerHandler(t,n,async(e,t,n)=>{try{let r=this.getContextId(e,u),i=await this.injector.loadPerContext(c,a,o,r);return(await this.createProxy(i,r))(e,t,n)}catch(r){let i=this.exceptionFiltersCache.get(c.use);i||(i=this.routerExceptionFilter.create(c,c.use,void 0),this.exceptionFiltersCache.set(c.use,i));let a=new s.ExecutionContextHost([e,t,n]);i.next(r,a)}})}async createProxy(e,t=c.STATIC_CONTEXT){let n=this.routerExceptionFilter.create(e,e.use,void 0,t),r=e.use.bind(e);return this.routerProxy.createProxy(r,n)}async registerHandler(e,t,r){let{method:i}=t,a=this.routeInfoPathExtractor.extractPathsFrom(t),o=(0,f.isRequestMethodAll)(i),s=n.RequestMethod[i],c=await e.createMiddlewareFactory(i),l=o?r:(t,i,a)=>{let o=e.getRequestMethod?.(t);return o===s||o===n.RequestMethod[n.RequestMethod.HEAD]&&s===n.RequestMethod[n.RequestMethod.GET]?r(t,i,a):a()},u=[];a.some(e=>e.match(/^\/?$/))?u.push(`/`):u.push(...a),u.forEach(e=>c(e,l))}getContextId(e,t){let n=o.ContextIdFactory.getByRequest(e);if(!e[l.REQUEST_CONTEXT_ID]){Object.defineProperty(e,l.REQUEST_CONTEXT_ID,{value:n,enumerable:!1,writable:!1,configurable:!1});let r=t?n.payload:Object.assign(e,n.payload);this.container.registerRequestProvider(r,n)}return n}}})),wC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getTransientInstances=n,e.getNonTransientInstances=r;var t=I();function n(e){return(0,t.iterate)(e).filter(([e,t])=>t.isDependencyTreeStatic()).map(([e,t])=>t.getStaticTransientInstances()).flatten().filter(e=>!!e).map(({instance:e})=>e).toArray()}function r(e){return(0,t.iterate)(e).filter(([e,t])=>t.isDependencyTreeStatic()&&!t.isTransient).map(([e,{instance:t}])=>t).toArray()}})),TC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleBootstrapHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onApplicationBootstrap)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onApplicationBootstrap()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onApplicationBootstrap()}})),EC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callAppShutdownHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onApplicationShutdown)}function a(e,r){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onApplicationShutdown(r)).toArray()}async function o(e,t){let n=e.getNonAliasProviders(),[o,s]=n.shift(),c=[...e.controllers,...n,...e.injectables,...e.middlewares],l=(0,r.getNonTransientInstances)(c);await Promise.all(a(l,t));let u=(0,r.getTransientInstances)(c);await Promise.all(a(u,t));let d=s.instance;d&&i(d)&&s.isDependencyTreeStatic()&&await d.onApplicationShutdown(t)}})),DC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleDestroyHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onModuleDestroy)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onModuleDestroy()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onModuleDestroy()}})),OC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callModuleInitHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.onModuleInit)}function a(e){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.onModuleInit()).toArray()}async function o(e){let t=e.getNonAliasProviders(),[n,o]=t.shift(),s=[...e.controllers,...t,...e.injectables,...e.middlewares],c=(0,r.getNonTransientInstances)(s);await Promise.all(a(c));let l=(0,r.getTransientInstances)(s);await Promise.all(a(l));let u=o.instance;u&&i(u)&&o.isDependencyTreeStatic()&&await u.onModuleInit()}})),kC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callBeforeAppShutdownHook=o;var t=A(),n=I(),r=wC();function i(e){return(0,t.isFunction)(e.beforeApplicationShutdown)}function a(e,r){return(0,n.iterate)(e).filter(e=>!(0,t.isNil)(e)).filter(i).map(async e=>e.beforeApplicationShutdown(r)).toArray()}async function o(e,t){let n=e.getNonAliasProviders(),[o,s]=n.shift(),c=[...e.controllers,...n,...e.injectables,...e.middlewares],l=(0,r.getNonTransientInstances)(c);await Promise.all(a(l,t));let u=(0,r.getTransientInstances)(c);await Promise.all(a(u,t));let d=s.instance;d&&i(d)&&s.isDependencyTreeStatic()&&await d.beforeApplicationShutdown(t)}})),AC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(TC(),e),t.__exportStar(EC(),e),t.__exportStar(DC(),e),t.__exportStar(OC(),e),t.__exportStar(kC(),e)})),jC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestApplicationContext=void 0;var t=H(),n=A(),r=I(),i=Ox(),a=bS(),o=zx(),s=AC(),c=ES(),l=IS(),u=LS();e.NestApplicationContext=class e extends c.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||=new u.InstanceLinksHost(this.container),this._instanceLinksHost}constructor(n,r={},i=null,a=[]){super(),this.container=n,this.appOptions=r,this.contextModule=i,this.scope=a,this.isInitialized=!1,this.logger=new t.Logger(e.name,{timestamp:!0}),this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=[],this.injector=new l.Injector,this.moduleCompiler=n.getModuleCompiler(),this.appOptions.preview&&this.printInPreviewModeWarning()}selectContextModule(){this.contextModule=this.container.getModules().values().next().value}select(t,n){let r=this.container.getModules(),i=this.contextModule.metatype,o=this.scope.concat(i),s=this.container.getModuleTokenFactory(),{type:c,dynamicMetadata:l}=this.moduleCompiler.extractMetadata(t),u=l?s.createForDynamic(c,l,t):s.createForStatic(c,t),d=r.get(u);if(!d)throw new a.UnknownModuleException(c.name);let f=n?.abortOnError===void 0?this.appOptions:{...this.appOptions,...n};return new e(this.container,f,d,o)}get(e,t={strict:!1}){return t&&t.strict?this.find(e,{moduleId:this.contextModule?.id,each:t.each}):this.find(e,t)}resolve(e,t=(0,o.createContextId)(),n={strict:!1}){return this.resolvePerContext(e,this.contextModule,t,n)}registerRequestByContextId(e,t){this.container.registerRequestProvider(e,t)}async init(){return this.isInitialized?this:(this.initializationPromise=new Promise(async(e,t)=>{try{await this.callInitHook(),await this.callBootstrapHook(),e()}catch(e){t(e)}}),await this.initializationPromise,this.isInitialized=!0,this)}async close(e){await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(e),await this.dispose(),await this.callShutdownHook(e),this.unsubscribeFromProcessSignals()}useLogger(e){t.Logger.overrideLogger(e),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){t.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(e=[],i={}){return e=(0,n.isEmpty)(e)?Object.keys(t.ShutdownSignal).map(e=>t.ShutdownSignal[e]):Array.from(new Set(e)),e=(0,r.iterate)(e).map(e=>e.toString().toUpperCase().trim()).filter(e=>!this.activeShutdownSignals.includes(e)).toArray(),this.listenToShutdownSignals(e,i),this}async dispose(){return Promise.resolve()}listenToShutdownSignals(n,r={}){let a=!1,o=async s=>{try{if(a)return;a=!0,await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(s),await this.dispose(),await this.callShutdownHook(s),n.forEach(e=>process.removeListener(e,o)),r.useProcessExit?process.exit(0):process.kill(process.pid,s)}catch(n){t.Logger.error(i.MESSAGES.ERROR_DURING_SHUTDOWN,n?.stack,e.name),process.exit(1)}};this.shutdownCleanupRef=o,n.forEach(e=>{this.activeShutdownSignals.push(e),process.on(e,o)})}unsubscribeFromProcessSignals(){this.shutdownCleanupRef&&this.activeShutdownSignals.forEach(e=>{process.removeListener(e,this.shutdownCleanupRef)})}async callInitHook(){let e=this.getModulesToTriggerHooksOn();for(let t of e)await(0,s.callModuleInitHook)(t)}async callDestroyHook(){let e=[...this.getModulesToTriggerHooksOn()].reverse();for(let t of e)await(0,s.callModuleDestroyHook)(t)}async callBootstrapHook(){let e=this.getModulesToTriggerHooksOn();for(let t of e)await(0,s.callModuleBootstrapHook)(t)}async callShutdownHook(e){let t=[...this.getModulesToTriggerHooksOn()].reverse();for(let n of t)await(0,s.callAppShutdownHook)(n,e)}async callBeforeShutdownHook(e){let t=[...this.getModulesToTriggerHooksOn()].reverse();for(let n of t)await(0,s.callBeforeAppShutdownHook)(n,e)}assertNotInPreviewMode(e){if(this.appOptions.preview){let t=`Calling the "${e}" in the preview mode is not supported.`;throw this.logger.error(t),Error(t)}}getModulesToTriggerHooksOn(){if(this._moduleRefsForHooksByDistance)return this._moduleRefsForHooksByDistance;let e=this.container.getModules(),t=Array.from(e.values()).sort((e,t)=>t.distance-e.distance);return this._moduleRefsForHooksByDistance=this.appOptions?.preview?t.filter(e=>e.initOnPreview):t,this._moduleRefsForHooksByDistance}printInPreviewModeWarning(){this.logger.warn(`------------------------------------------------`),this.logger.warn(`Application is running in the PREVIEW mode!`),this.logger.warn(`Providers/controllers will not be instantiated.`),this.logger.warn(`------------------------------------------------`)}}})),MC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.INVALID_EXECUTION_CONTEXT=e.VERSIONED_CONTROLLER_MAPPING_MESSAGE=e.CONTROLLER_MAPPING_MESSAGE=e.VERSIONED_ROUTE_MAPPED_MESSAGE=e.ROUTE_MAPPED_MESSAGE=e.MODULE_INIT_MESSAGE=void 0;var t=_e(),n=ln();e.MODULE_INIT_MESSAGE=(e,t)=>`${t} dependencies initialized`,e.ROUTE_MAPPED_MESSAGE=(e,n)=>`Mapped {${e}, ${t.RequestMethod[n]}} route`,e.VERSIONED_ROUTE_MAPPED_MESSAGE=(e,r,i)=>{let a=(Array.isArray(i)?i:[i]).map(e=>e===n.VERSION_NEUTRAL?`Neutral`:e).join(`,`);return`Mapped {${e}, ${t.RequestMethod[r]}} (version: ${a}) route`},e.CONTROLLER_MAPPING_MESSAGE=(e,t)=>`${e} {${t}}:`,e.VERSIONED_CONTROLLER_MAPPING_MESSAGE=(e,t,r)=>`${e} {${t}} (version: ${(Array.isArray(r)?r:[r]).map(e=>e===n.VERSION_NEUTRAL?`Neutral`:e).join(`,`)}):`,e.INVALID_EXECUTION_CONTEXT=(e,t)=>`Calling ${e} is not allowed in this context. Your current execution context is "${t}".`})),NC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnknownRequestMappingException=void 0;var t=Wx(),n=Gx();e.UnknownRequestMappingException=class extends t.RuntimeException{constructor(e){super((0,n.UNKNOWN_REQUEST_MAPPING)(e))}}})),PC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;var t=_e();e.REQUEST_METHOD_MAP={[t.RequestMethod.GET]:`get`,[t.RequestMethod.POST]:`post`,[t.RequestMethod.PUT]:`put`,[t.RequestMethod.DELETE]:`delete`,[t.RequestMethod.PATCH]:`patch`,[t.RequestMethod.ALL]:`all`,[t.RequestMethod.OPTIONS]:`options`,[t.RequestMethod.HEAD]:`head`,[t.RequestMethod.SEARCH]:`search`,[t.RequestMethod.PROPFIND]:`propfind`,[t.RequestMethod.PROPPATCH]:`proppatch`,[t.RequestMethod.MKCOL]:`mkcol`,[t.RequestMethod.COPY]:`copy`,[t.RequestMethod.MOVE]:`move`,[t.RequestMethod.LOCK]:`lock`,[t.RequestMethod.UNLOCK]:`unlock`},e.RouterMethodFactory=class{get(t,n){return t[e.REQUEST_METHOD_MAP[n]]||t.use}}})),FC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouteParamsFactory=void 0;var t=ye();e.RouteParamsFactory=class{exchangeKeyForValue(e,n,{req:r,res:i,next:a}){switch(e){case t.RouteParamtypes.NEXT:return a;case t.RouteParamtypes.REQUEST:return r;case t.RouteParamtypes.RESPONSE:return i;case t.RouteParamtypes.BODY:return n&&r.body?r.body[n]:r.body;case t.RouteParamtypes.RAW_BODY:return r.rawBody;case t.RouteParamtypes.PARAM:return n?r.params[n]:r.params;case t.RouteParamtypes.HOST:let e=r.hosts||{};return n?e[n]:e;case t.RouteParamtypes.QUERY:return n?r.query[n]:r.query;case t.RouteParamtypes.HEADERS:return n?r.headers[n.toLowerCase()]:r.headers;case t.RouteParamtypes.SESSION:return r.session;case t.RouteParamtypes.FILE:return r[n||`file`];case t.RouteParamtypes.FILES:return r.files;case t.RouteParamtypes.IP:return r.ip;default:return null}}}})),IC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SseStream=void 0;var t=A(),n=require(`stream`);function r(e){return(0,t.isObject)(e)?r(JSON.stringify(e)):e.split(/\r\n|\r|\n/).map(e=>`data: ${e}\n`).join(``)}e.SseStream=class extends n.Transform{constructor(e){super({objectMode:!0}),this.lastEventId=null,e&&e.socket&&(e.socket.setKeepAlive(!0),e.socket.setNoDelay(!0),e.socket.setTimeout(0))}pipe(e,t){if(e.writeHead){let n=t?.statusCode??200;e.writeHead(n,{...t?.additionalHeaders,"Content-Type":`text/event-stream`,Connection:`keep-alive`,"Cache-Control":`private, no-cache, no-store, must-revalidate, max-age=0, no-transform`,Pragma:`no-cache`,Expire:`0`,"X-Accel-Buffering":`no`}),e.flushHeaders?.()}return e.write(`
|
|
135
135
|
`),super.pipe(e,t)}_transform(e,t,n){let i=e=>String(e).replace(/[\r\n]/g,``),a=e.type?`event: ${i(e.type)}\n`:``;a+=e.id?`id: ${i(e.id)}\n`:``,a+=e.retry?`retry: ${i(e.retry)}\n`:``,a+=e.data?r(e.data):``,a+=`
|
|
136
|
-
`,this.push(a),n()}writeMessage(e,t){e.id||=(this.lastEventId++,this.lastEventId.toString()),this.write(e,`utf-8`)?process.nextTick(t):this.once(`drain`,t)}}})),BC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterResponseController=void 0;var t=U(),n=M(),r=Kc(),i=wo(),a=zC();e.RouterResponseController=class e{constructor(n){this.applicationRef=n,this.logger=new t.Logger(e.name)}async apply(e,t,n){return this.applicationRef.reply(t,e,n)}async redirect(e,n,r){let i=await this.transformToResult(e),a=i&&i.statusCode?i.statusCode:r.statusCode?r.statusCode:t.HttpStatus.FOUND,o=i&&i.url?i.url:r.url;this.applicationRef.redirect(n,a,o)}async render(e,t,n){let r=await this.transformToResult(e);return this.applicationRef.render(t,n,r)}async transformToResult(e){return(0,r.isObservable)(e)?(0,r.lastValueFrom)(e):e}getStatusByMethod(e){switch(e){case t.RequestMethod.POST:return t.HttpStatus.CREATED;default:return t.HttpStatus.OK}}setHeaders(e,t){t.forEach(({name:t,value:n})=>this.applicationRef.setHeader(e,t,typeof n==`function`?n():n))}setStatus(e,t){this.applicationRef.status(e,t)}async sse(e,t,o,s){if(t.writableEnded)return;let c=await Promise.resolve(e);this.assertObservable(c);let l=new a.SseStream(o),u=t.statusCode,d=u===void 0?s:{...s,statusCode:u};l.pipe(t,d);let f=c.pipe((0,i.map)(e=>(0,n.isObject)(e)?e:{data:e}),(0,i.concatMap)(e=>new Promise(t=>l.writeMessage(e,()=>t()))),(0,i.catchError)(e=>{let t=e instanceof Error?e.message:e;return l.writeMessage({type:`error`,data:t},e=>{e&&this.logger.error(e)}),r.EMPTY})).subscribe({complete:()=>{t.end()}});o.on(`close`,()=>{f.unsubscribe(),l.writableEnded||l.end()})}assertObservable(e){if(!(0,r.isObservable)(e))throw ReferenceError(`You must return an Observable stream to use Server-Sent Events (SSE).`)}}})),VC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExecutionContext=void 0;var t=U(),n=j(),r=xe(),i=M(),a=rS(),o=dS(),s=pS(),c=Ux(),l=BC();e.RouterExecutionContext=class{constructor(e,t,n,r,i,a,c,u){this.paramsFactory=e,this.pipesContextCreator=t,this.pipesConsumer=n,this.guardsContextCreator=r,this.guardsConsumer=i,this.interceptorsContextCreator=a,this.interceptorsConsumer=c,this.applicationRef=u,this.handlerMetadataStorage=new s.HandlerMetadataStorage,this.contextUtils=new o.ContextUtils,this.responseController=new l.RouterResponseController(u)}create(e,t,n,r,i,a=c.STATIC_CONTEXT,o){let s=`http`,{argsLength:l,fnHandleResponse:u,paramtypes:d,getParamsMetadata:f,httpStatusCode:p,responseHeaders:m,hasCustomHeaders:h}=this.getMetadata(e,t,n,r,i,s),g=this.contextUtils.mergeParamsMetatypes(f(r,a,o),d),_=this.pipesContextCreator.create(e,t,r,a,o),v=this.guardsContextCreator.create(e,t,r,a,o),y=this.interceptorsContextCreator.create(e,t,r,a,o),b=this.createGuardsFn(v,e,t,s),x=this.createPipesFn(_,g),S=(n,r,i,a)=>async()=>(x&&await x(n,r,i,a),t.apply(e,n));return async(n,r,i)=>{let a=this.contextUtils.createNullArray(l);b&&await b([n,r,i]),this.responseController.setStatus(r,p),h&&this.responseController.setHeaders(r,m),await u(await this.interceptorsConsumer.intercept(y,[n,r,i],e,t,S(a,n,r,i),s),r,n)}}getMetadata(e,t,r,a,o,s){let l=this.handlerMetadataStorage.get(e,r);if(l)return l;let u=this.contextUtils.reflectCallbackMetadata(e,r,n.ROUTE_ARGS_METADATA)||{},d=Object.keys(u),f=this.contextUtils.getArgumentsLength(d,u),p=this.contextUtils.reflectCallbackParamtypes(e,r),m=this.contextUtils.getContextFactory(s,e,t),h=(e,t=c.STATIC_CONTEXT,n)=>this.exchangeKeysForValues(d,u,e,t,n,m),g=h(a),_=this.isResponseHandled(e,r,g),v=this.reflectRedirect(t),y=this.createHandleResponseFn(t,_,v),b=this.reflectHttpStatusCode(t)||this.responseController.getStatusByMethod(o),x=this.reflectResponseHeaders(t),S={argsLength:f,fnHandleResponse:y,paramtypes:p,getParamsMetadata:h,httpStatusCode:b,hasCustomHeaders:!(0,i.isEmpty)(x),responseHeaders:x};return this.handlerMetadataStorage.set(e,r,S),S}reflectRedirect(e){return Reflect.getMetadata(n.REDIRECT_METADATA,e)}reflectHttpStatusCode(e){return Reflect.getMetadata(n.HTTP_CODE_METADATA,e)}reflectRenderTemplate(e){return Reflect.getMetadata(n.RENDER_METADATA,e)}reflectResponseHeaders(e){return Reflect.getMetadata(n.HEADERS_METADATA,e)||[]}reflectSse(e){return Reflect.getMetadata(n.SSE_METADATA,e)}exchangeKeysForValues(e,t,r,i=c.STATIC_CONTEXT,a,o){return this.pipesContextCreator.setModuleContext(r),e.map(e=>{let{index:r,data:s,pipes:c}=t[e],l=this.pipesContextCreator.createConcreteContext(c,i,a),u=this.contextUtils.mapParamType(e);if(e.includes(n.CUSTOM_ROUTE_ARGS_METADATA)){let{factory:n}=t[e];return{index:r,extractValue:this.contextUtils.getCustomFactory(n,s,o),type:u,data:s,pipes:l}}let d=Number(u);return{index:r,extractValue:(e,t,n)=>this.paramsFactory.exchangeKeyForValue(d,s,{req:e,res:t,next:n}),type:d,data:s,pipes:l}})}async getParamValue(e,{metatype:t,type:n,data:r},a){return(0,i.isEmpty)(a)?e:this.pipesConsumer.apply(e,{metatype:t,type:n,data:r},a)}isPipeable(e){return e===r.RouteParamtypes.BODY||e===r.RouteParamtypes.RAW_BODY||e===r.RouteParamtypes.QUERY||e===r.RouteParamtypes.PARAM||e===r.RouteParamtypes.FILE||e===r.RouteParamtypes.FILES||(0,i.isString)(e)}createGuardsFn(e,n,r,i){return e.length?async o=>{if(!await this.guardsConsumer.tryActivate(e,o,n,r,i))throw new t.ForbiddenException(a.FORBIDDEN_MESSAGE)}:null}createPipesFn(e,t){return t.length?async(n,r,i,a)=>{await Promise.all(t.map(async t=>{let{index:o,extractValue:s,type:c,data:l,metatype:u,pipes:d}=t,f=s(r,i,a);n[o]=this.isPipeable(c)?await this.getParamValue(f,{metatype:u,type:c,data:l},e.concat(d)):f}))}:null}createHandleResponseFn(e,t,n,r){let a=this.reflectRenderTemplate(e);return a?async(e,t)=>await this.responseController.render(e,t,a):n&&(0,i.isString)(n.url)?async(e,t)=>{await this.responseController.redirect(e,t,n)}:this.reflectSse(e)?async(e,t,n)=>{await this.responseController.sse(e,t.raw||t,n.raw||n,{additionalHeaders:t.getHeaders?.()})}:async(e,n)=>(e=await this.responseController.transformToResult(e),!t&&await this.responseController.apply(e,n,r),n)}isResponseHandled(e,t,n){let i=n.some(({type:e})=>e===r.RouteParamtypes.RESPONSE||e===r.RouteParamtypes.NEXT),a=this.contextUtils.reflectPassthrough(e,t);return i&&!a}}})),HC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExplorer=void 0;var t=j(),n=Pe(),r=rt(),i=ut(),a=M(),o=oC(),s=IC(),c=rS(),l=Hx(),u=eS(),d=FC(),f=LC(),p=Ux(),m=oS(),h=uS(),g=CC(),_=Vx(),v=RC(),y=VC();e.RouterExplorer=class e{constructor(t,n,r,a,o,s,l,u){this.container=n,this.injector=r,this.routerProxy=a,this.exceptionsFilter=o,this.routePathFactory=l,this.graphInspector=u,this.routerMethodFactory=new f.RouterMethodFactory,this.logger=new i.Logger(e.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap,this.pathsExplorer=new g.PathsExplorer(t);let d=new v.RouteParamsFactory,p=new h.PipesContextCreator(n,s),_=new h.PipesConsumer,b=new c.GuardsContextCreator(n,s),x=new c.GuardsConsumer,S=new m.InterceptorsContextCreator(n,s),C=new m.InterceptorsConsumer;this.executionContextCreator=new y.RouterExecutionContext(d,p,_,b,x,S,C,n.getHttpAdapterRef())}explore(e,t,n,r,i){let{instance:a}=e,o=this.pathsExplorer.scanForPaths(a);this.applyPathsToRouterProxy(n,o,e,t,i,r)}extractRouterPath(e){let n=Reflect.getMetadata(t.PATH_METADATA,e);if((0,a.isUndefined)(n))throw new s.UnknownRequestMappingException(e);return Array.isArray(n)?n.map(e=>(0,a.addLeadingSlash)(e)):[(0,a.addLeadingSlash)(n)]}applyPathsToRouterProxy(e,t,n,r,i,a){(t||[]).forEach(t=>{let{version:o}=t;i.methodVersion=o,this.applyCallbackToRouter(e,t,n,r,i,a)})}applyCallbackToRouter(e,t,r,i,a,o){let{path:s,requestMethod:c,targetCallback:l,methodName:u}=t,{instance:f}=r,p=this.routerMethodFactory.get(e,c).bind(e),m=r.isDependencyTreeStatic()?this.createCallbackProxy(f,l,u,i,c):this.createRequestScopedHandler(r,c,this.container.getModuleByKey(i),i,u),h=(a.methodVersion||a.controllerVersion)&&a.versioningOptions,g=this.applyHostFilter(o,m);s.forEach(t=>{h&&a.versioningOptions.type!==n.VersioningType.URI&&(g=this.applyVersionFilter(e,a,g)),a.methodPath=t,this.routePathFactory.create(a,c).forEach(t=>{let i={type:`http-endpoint`,methodName:u,className:r.name,classNodeId:r.id,metadata:{key:t,path:t,requestMethod:n.RequestMethod[c],methodVersion:a.methodVersion,controllerVersion:a.controllerVersion}};this.copyMetadataToCallback(l,g);let o=e.normalizePath?e.normalizePath(t):t,s=this.container.getHttpAdapterRef().getOnRouteTriggered?.();s?p(o,(...e)=>(s(c,t),g(...e))):p(o,g),this.graphInspector.insertEntrypointDefinition(i,r.id)}),this.routePathFactory.create({...a,versioningOptions:void 0},c).forEach(e=>{if(h){let t=this.routePathFactory.getVersion(a);this.logger.log((0,d.VERSIONED_ROUTE_MAPPED_MESSAGE)(e,c,t))}else this.logger.log((0,d.ROUTE_MAPPED_MESSAGE)(e,c))})})}applyHostFilter(e,t){if(!e)return t;let n=this.container.getHttpAdapterRef(),i=(Array.isArray(e)?e:[e]).map(e=>{if(typeof e==`string`)try{return(0,o.pathToRegexp)(e)}catch(t){throw t instanceof TypeError&&this.logger.error(`Unsupported host "${e}" syntax. In past releases, ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. Please see the migration guide for more information.`),t}return{regexp:e,keys:[]}}),a=Array.isArray(e)?`HTTP adapter does not support filtering on hosts: ["${e.join(`", "`)}"]`:`HTTP adapter does not support filtering on host: "${e}"`;return(e,o,s)=>{e.hosts={};let c=n.getRequestHostname(e)||``;for(let n of i){let r=c.match(n.regexp);if(r){if(n.keys.length>0)n.keys.forEach((t,n)=>e.hosts[t.name]=r[n+1]);else if(n.regexp&&r.groups)for(let t in r.groups)e.hosts[t]=r.groups[t];return t(e,o,s)}}if(!s)throw new r.InternalServerErrorException(a);return s()}}applyVersionFilter(e,t,n){let r=this.routePathFactory.getVersion(t);return e.applyVersionFilter(n,r,t.versioningOptions)}createCallbackProxy(e,t,n,r,i,a=p.STATIC_CONTEXT,o){let s=this.executionContextCreator.create(e,t,n,r,i,a,o),c=this.exceptionsFilter.create(e,t,r,a,o);return this.routerProxy.createProxy(s,c)}createRequestScopedHandler(e,t,n,r,i){let{instance:a}=e,o=n.controllers,s=e.isDependencyTreeDurable();return async(c,l,d)=>{try{let u=this.getContextId(c,s),f=await this.injector.loadPerContext(a,n,o,u);await this.createCallbackProxy(f,f[i],i,r,t,u,e.id)(c,l,d)}catch(e){let t=this.exceptionFiltersCache.get(a[i]);t||(t=this.exceptionsFilter.create(a,a[i],r),this.exceptionFiltersCache.set(a[i],t));let n=new u.ExecutionContextHost([c,l,d]);t.next(e,n)}}}getContextId(e,t){let n=l.ContextIdFactory.getByRequest(e);if(!e[_.REQUEST_CONTEXT_ID]){Object.defineProperty(e,_.REQUEST_CONTEXT_ID,{value:n,enumerable:!1,writable:!1,configurable:!1});let r=t?n.payload:Object.assign(e,n.payload);this.container.registerRequestProvider(r,n)}return n}copyMetadataToCallback(e,t){for(let n of Reflect.getMetadataKeys(e))Reflect.defineMetadata(n,Reflect.getMetadata(n,e),t)}}})),UC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutesResolver=void 0;var t=U(),n=j(),r=ut(),i=FC(),a=Mx(),o=xC(),s=vC(),c=HC(),l=yC();e.RoutesResolver=class e{constructor(t,n,i,u){this.container=t,this.applicationConfig=n,this.injector=i,this.logger=new r.Logger(e.name,{timestamp:!0}),this.routerProxy=new l.RouterProxy;let d=t.getHttpAdapterRef();this.routerExceptionsFilter=new s.RouterExceptionFilters(t,n,d),this.routePathFactory=new o.RoutePathFactory(this.applicationConfig);let f=new a.MetadataScanner;this.routerExplorer=new c.RouterExplorer(f,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory,u)}resolve(e,t){this.container.getModules().forEach(({controllers:n,metatype:r},i)=>{let a=this.getModulePathMetadata(r);this.registerRouters(n,i,t,a,e)})}registerRouters(e,t,n,r,a){e.forEach(e=>{let{metatype:o}=e,s=this.getHostMetadata(o),c=this.routerExplorer.extractRouterPath(o),l=this.getVersionMetadata(o),u=o.name;c.forEach(o=>{let c=this.routePathFactory.create({ctrlPath:o,modulePath:r,globalPrefix:n});l?c.forEach(e=>{let t=(0,i.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(u,e,l);this.logger.log(t)}):c.forEach(e=>{let t=(0,i.CONTROLLER_MAPPING_MESSAGE)(u,e);this.logger.log(t)});let d={ctrlPath:o,modulePath:r,globalPrefix:n,controllerVersion:l,versioningOptions:this.applicationConfig.getVersioning()};this.routerExplorer.explore(e,t,a,s,d)})})}registerNotFoundHandler(){let e=this.container.getHttpAdapterRef(),n=(n,r)=>{let i=e.getRequestMethod(n),a=e.getRequestUrl(n);throw new t.NotFoundException(`Cannot ${i} ${a}`)},r=this.routerExceptionsFilter.create({},n,void 0),i=this.routerProxy.createProxy(n,r);e.setNotFoundHandler&&e.setNotFoundHandler(i,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){let e=(e,t,n,r)=>{throw this.mapExternalException(e)},t=this.routerExceptionsFilter.create({},e,void 0),n=this.routerProxy.createExceptionLayerProxy(e,t),r=this.container.getHttpAdapterRef();r.setErrorHandler&&r.setErrorHandler(n,this.applicationConfig.getGlobalPrefix())}mapExternalException(e){switch(!0){case e instanceof SyntaxError||e instanceof URIError:return new t.BadRequestException(e.message);case this.isHttpFastifyError(e):return new t.HttpException(e.message,e.statusCode);default:return e}}isHttpFastifyError(e){return e.statusCode!==void 0&&e instanceof Error&&e.name===`FastifyError`}getModulePathMetadata(e){let t=this.container.getModules();return Reflect.getMetadata(n.MODULE_PATH+t.applicationId,e)??Reflect.getMetadata(n.MODULE_PATH,e)}getHostMetadata(e){return Reflect.getMetadata(n.HOST_METADATA,e)}getVersionMetadata(e){let t=this.applicationConfig.getVersioning();if(t)return Reflect.getMetadata(n.VERSION_METADATA,e)??t.defaultVersion}}})),WC=o((()=>{throw Error(`Could not resolve "@nestjs/websockets/socket-module" imported by "@nestjs/core". Is it installed?`)})),GC=o((()=>{throw Error(`Could not resolve "@nestjs/microservices/microservices-module" imported by "@nestjs/core". Is it installed?`)})),KC=o((()=>{throw Error(`Could not resolve "@nestjs/microservices" imported by "@nestjs/core". Is it installed?`)})),qC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestApplication=void 0;var t=U(),n=ut(),r=Un(),i=M(),a=L(),o=require(`os`),s=Ax(),c=jx(),l=mC(),u=zS(),d=hC(),f=EC(),p=dC(),m=PC(),h=UC(),{SocketModule:g}=(0,l.optionalRequire)(`@nestjs/websockets/socket-module`,()=>WC()),{MicroservicesModule:_}=(0,l.optionalRequire)(`@nestjs/microservices/microservices-module`,()=>GC());e.NestApplication=class e extends m.NestApplicationContext{constructor(t,r,i,a,o={}){super(t,o),this.httpAdapter=r,this.config=i,this.graphInspector=a,this.logger=new n.Logger(e.name,{timestamp:!0}),this.middlewareContainer=new d.MiddlewareContainer(this.container),this.microservicesModule=_&&new _,this.socketModule=g&&new g,this.microservices=[],this.isListening=!1,this.selectContextModule(),this.registerHttpServer(),this.injector=new u.Injector({preview:this.appOptions.preview,instanceDecorator:o.instrument?.instanceDecorator}),this.middlewareModule=new f.MiddlewareModule,this.routesResolver=new h.RoutesResolver(this.container,this.config,this.injector,this.graphInspector)}async dispose(){this.socketModule&&await this.socketModule.close(),this.microservicesModule&&await this.microservicesModule.close(),this.httpAdapter&&await this.httpAdapter.close(),await Promise.all((0,a.iterate)(this.microservices).map(async e=>{e.setIsTerminated(!0),await e.close()}))}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){if(!(!this.appOptions||!this.appOptions.cors))return(0,i.isObject)(this.appOptions.cors)||(0,i.isFunction)(this.appOptions.cors)?this.enableCors(this.appOptions.cors):this.enableCors()}createServer(){return this.httpAdapter.initHttpServer(this.appOptions),this.httpAdapter.getHttpServer()}async registerModules(){this.registerWsModule(),this.microservicesModule&&(this.microservicesModule.register(this.container,this.graphInspector,this.config,this.appOptions),this.microservicesModule.setupClients(this.container)),await this.middlewareModule.register(this.middlewareContainer,this.container,this.config,this.injector,this.httpAdapter,this.graphInspector,this.appOptions)}registerWsModule(){this.socketModule&&this.socketModule.register(this.container,this.config,this.graphInspector,this.appOptions,this.httpServer)}async init(){return this.isInitialized?this:(this.applyOptions(),await this.httpAdapter?.init?.(),this.appOptions&&this.appOptions.bodyParser!==!1&&this.registerParserMiddleware(),await this.registerModules(),await this.registerRouter(),await this.callInitHook(),await this.registerRouterHooks(),await this.callBootstrapHook(),this.isInitialized=!0,this.logger.log(c.MESSAGES.APPLICATION_READY),this)}registerParserMiddleware(){let e=this.config.getGlobalPrefix(),t=!!this.appOptions?.rawBody;this.httpAdapter.registerParserMiddleware(e,t)}async registerRouter(){await this.registerMiddleware(this.httpAdapter);let e=this.config.getGlobalPrefix(),t=(0,i.addLeadingSlash)(e);this.routesResolver.resolve(this.httpAdapter,t)}async registerRouterHooks(){this.routesResolver.registerNotFoundHandler(),this.routesResolver.registerExceptionHandler()}connectMicroservice(e,t={}){let{NestMicroservice:n}=(0,r.loadPackage)(`@nestjs/microservices`,`NestFactory`,()=>KC()),{inheritAppConfig:i}=t,a=i?this.config:new s.ApplicationConfig,o=new n(this.container,e,this.graphInspector,a);return t.deferInitialization||(o.registerListeners(),o.setIsInitialized(!0),o.setIsInitHookCalled(!0)),this.microservices.push(o),o}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}async startAllMicroservices(){return this.assertNotInPreviewMode(`startAllMicroservices`),await Promise.all(this.microservices.map(e=>e.listen())),this}use(...e){return this.httpAdapter.use(...e),this}useBodyParser(...e){if(!(`useBodyParser`in this.httpAdapter))return this.logger.warn("Your HTTP Adapter does not support `.useBodyParser`."),this;let[t,...n]=e,r=!!this.appOptions.rawBody;return this.httpAdapter.useBodyParser?.(t,r,...n),this}enableCors(e){this.httpAdapter.enableCors(e)}enableVersioning(e={type:t.VersioningType.URI}){return this.config.enableVersioning(e),this}async listen(e,...t){this.assertNotInPreviewMode(`listen`),this.isInitialized||await this.init();let n=this.container.getHttpAdapterHostRef();return new Promise((r,a)=>{let o=e=>{this.logger.error(e?.toString?.()),a(e)};this.httpServer.once(`error`,o);let s=(0,i.isFunction)(t[t.length-1]),c=s?t.slice(0,t.length-1):t;this.httpAdapter.listen(e,...c,(...e)=>{if((this.appOptions?.autoFlushLogs??!0)&&this.flushLogs(),e[0]instanceof Error)return a(e[0]);this.httpServer.address()&&(this.httpServer.removeListener(`error`,o),this.isListening=!0,n.listening=!0,r(this.httpServer)),s&&t[t.length-1](...e)})})}async getUrl(){return new Promise((e,t)=>{if(!this.isListening){this.logger.error(c.MESSAGES.CALL_LISTEN_FIRST),t(c.MESSAGES.CALL_LISTEN_FIRST);return}let n=this.httpServer.address();e(this.formatAddress(n))})}formatAddress(e){if((0,i.isString)(e)){if((0,o.platform)()===`win32`)return e;let t=encodeURIComponent(e);return`${this.getProtocol()}+unix://${t}`}let t=this.host();return e&&e.family===`IPv6`?t=t===`::`?`[::1]`:`[${t}]`:t===`0.0.0.0`&&(t=`127.0.0.1`),`${this.getProtocol()}://${t}:${e.port}`}setGlobalPrefix(e,t){if(this.config.setGlobalPrefix(e),t){let e=t?.exclude?(0,p.mapToExcludeRoute)(t.exclude):[];this.config.setGlobalPrefixOptions({...t,exclude:e})}return this}useWebSocketAdapter(e){return this.config.setIoAdapter(e),this}useGlobalFilters(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalFilters(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`filter`,ref:e})),this}useGlobalPipes(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalPipes(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`pipe`,ref:e})),this}useGlobalInterceptors(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalInterceptors(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`interceptor`,ref:e})),this}useGlobalGuards(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalGuards(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`guard`,ref:e})),this}useStaticAssets(e,t){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(e,t),this}setBaseViewsDir(e){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(e),this}setViewEngine(e){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(e),this}host(){let e=this.httpServer.address();if(!(0,i.isString)(e))return e&&e.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?`https`:`http`}async registerMiddleware(e){await this.middlewareModule.registerMiddleware(this.middlewareContainer,e)}applyInstanceDecoratorIfRegistered(...e){return this.appOptions.instrument?.instanceDecorator?e.map(e=>this.appOptions.instrument.instanceDecorator(e)):e}}})),JC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionHandler=void 0;var t=ut(),n=class e{handle(t){e.logger.error(t)}};e.ExceptionHandler=n,n.logger=new t.Logger(n.name)})),YC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionsZone=void 0;var t=U(),n=JC(),r=()=>process.exit(1),i=class{static run(e,n=r,i){try{e()}catch(e){this.exceptionHandler.handle(e),i&&t.Logger.flush(),n(e)}}static async asyncRun(e,n=r,i){try{await e()}catch(e){this.exceptionHandler.handle(e),i&&t.Logger.flush(),n(e)}}};e.ExceptionsZone=i,i.exceptionHandler=new n.ExceptionHandler})),XC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadAdapter=i;var t=U(),n=(e,t)=>`No driver (${t}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${e}" package ($ npm install ${e}).`,r=new t.Logger(`PackageLoader`);function i(e,t,i){try{return i?i():require(e)}catch{r.error(n(e,t)),process.exit(1)}}})),ZC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rethrow=void 0,e.rethrow=e=>{throw e}})),QC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceLoader=void 0;var t=U(),n=FC(),r=YS();e.InstanceLoader=class e{constructor(n,r,i,a=new t.Logger(e.name,{timestamp:!0})){this.container=n,this.injector=r,this.graphInspector=i,this.logger=a}setLogger(e){this.logger=e}async createInstancesOfDependencies(e=this.container.getModules()){this.createPrototypes(e);try{await this.createInstances(e)}catch(t){throw this.graphInspector.inspectModules(e),this.graphInspector.registerPartial(t),t}this.graphInspector.inspectModules(e)}createPrototypes(e){e.forEach(e=>{this.createPrototypesOfProviders(e),this.createPrototypesOfInjectables(e),this.createPrototypesOfControllers(e)})}async createInstances(e){await Promise.all([...e.values()].map(async e=>{await this.createInstancesOfProviders(e),await this.createInstancesOfInjectables(e),await this.createInstancesOfControllers(e);let{name:t}=e;this.isModuleWhitelisted(t)&&this.logger.log((0,n.MODULE_INIT_MESSAGE)`${t}`)}))}createPrototypesOfProviders(e){let{providers:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfProviders(e){let{providers:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadProvider(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}createPrototypesOfControllers(e){let{controllers:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfControllers(e){let{controllers:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadController(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}createPrototypesOfInjectables(e){let{injectables:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfInjectables(e){let{injectables:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadInjectable(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}isModuleWhitelisted(e){return e!==r.InternalCoreModule.name}}})),$C=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoopGraphInspector=void 0;var t=iC(),n=()=>{};e.NoopGraphInspector=new Proxy(t.GraphInspector.prototype,{get:()=>n})})),ew=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassModuleException=void 0;var t=Jx(),n=qx();e.InvalidClassModuleException=class extends n.RuntimeException{constructor(e,n){super((0,t.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(e,n))}}})),tw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidModuleException=void 0;var t=Jx(),n=qx();e.InvalidModuleException=class extends n.RuntimeException{constructor(e,n,r){super((0,t.INVALID_MODULE_MESSAGE)(e,n,r))}}})),nw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedModuleException=void 0;var t=qx(),n=Jx();e.UndefinedModuleException=class extends t.RuntimeException{constructor(e,t,r){super((0,n.UNDEFINED_MODULE_MESSAGE)(e,t,r))}}})),rw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalCoreModuleFactory=void 0;var t=U(),n=mS(),r=Rx(),i=wS(),a=WS(),o=zS(),s=QC(),c=HS(),l=Nx(),u=YS();e.InternalCoreModuleFactory=class{static create(e,d,f,p,m,h){return i.InitializeOnPreviewAllowlist.add(u.InternalCoreModule),u.InternalCoreModule.register([{provide:n.ExternalContextCreator,useFactory:()=>n.ExternalContextCreator.fromContainer(e)},{provide:l.ModulesContainer,useFactory:()=>e.getModules()},{provide:r.HttpAdapterHost,useFactory:()=>p},{provide:c.LazyModuleLoader,useFactory:()=>{let n=new t.Logger(c.LazyModuleLoader.name,{timestamp:!1}),r=new o.Injector({preview:e.contextOptions?.preview,instanceDecorator:e.contextOptions?.instrument?.instanceDecorator}),i=new s.InstanceLoader(e,r,m,n);return new c.LazyModuleLoader(d,i,f,e.getModules(),h)}},{provide:a.SerializedGraph,useFactory:()=>e.serializedGraph}])}}})),iw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TreeNode=void 0,e.TreeNode=class{constructor({value:e,parent:t}){this.children=new Set,this.value=e,this.parent=t}addChild(e){this.children.add(e)}removeChild(e){this.children.delete(e)}relink(e){this.parent?.removeChild(this),this.parent=e,this.parent.addChild(this)}getDepth(){let e=new Set,t=0,n=this;for(;n;){if(t++,n=n.parent,e.has(n))return-1;e.add(n)}return t}hasCycleWith(e){let t=new Set,n=this;for(;n;){if(n.value===e)return!0;if(n=n.parent,t.has(n))return!1;t.add(n)}return!1}}})),aw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TopologyTree=void 0;var t=iw();e.TopologyTree=class{constructor(e){this.links=new Map,this.root=new t.TreeNode({value:e,parent:null}),this.links.set(e,this.root),this.traverseAndMapToTree(this.root)}walk(e){function t(n,r=1){e(n.value,r),n.children.forEach(e=>t(e,r+1))}t(this.root)}traverseAndMapToTree(e,n=1){e.value.imports&&e.value.imports.forEach(r=>{if(!r)return;if(this.links.has(r)){let t=this.links.get(r);if(e.hasCycleWith(r))return;t.getDepth()<n&&t.relink(e);return}let i=new t.TreeNode({value:r,parent:e});e.addChild(i),this.links.set(r,i),this.traverseAndMapToTree(i,n+1)})}}})),ow=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DependenciesScanner=void 0;var t=j(),n=pn(),r=M(),i=L(),a=Ax(),o=jx(),s=gS(),c=ew(),l=tw(),u=nw(),d=DS(),f=rw(),p=aw(),m=FS();e.DependenciesScanner=class{constructor(e,t,n,r=new a.ApplicationConfig){this.container=e,this.metadataScanner=t,this.graphInspector=n,this.applicationConfig=r,this.applicationProvidersApplyMap=[]}async scan(e,t){await this.registerCoreModule(t?.overrides),await this.scanForModules({moduleDefinition:e,overrides:t?.overrides}),await this.scanModulesForDependencies(),this.addScopedEnhancersMetadata(),this.calculateModulesDistance(),this.container.bindGlobalScope()}async scanForModules({moduleDefinition:e,lazy:n,scope:r=[],ctxRegistry:i=[],overrides:a=[]}){let{moduleRef:o,inserted:s}=await this.insertOrOverrideModule(e,a,r)??{};e=this.getOverrideModuleByModule(e,a)?.newModule??e,e=e instanceof Promise?await e:e,i.push(e),this.isForwardReference(e)&&(e=e.forwardRef());let c=this.isDynamicModule(e)?[...this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e.module),...e.imports||[]]:this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e),d=[];for(let[t,o]of c.entries()){if(o===void 0)throw new u.UndefinedModuleException(e,t,r);if(!o)throw new l.InvalidModuleException(e,t,r);if(i.includes(o))continue;let s=await this.scanForModules({moduleDefinition:o,scope:[].concat(r,e),ctxRegistry:i,overrides:a,lazy:n});d=d.concat(s)}return o?(n&&s&&this.container.bindGlobalsToImports(o),[o].concat(d)):d}async insertModule(e,t){let n=this.isForwardReference(e)?e.forwardRef():e;if(this.isInjectable(n)||this.isController(n)||this.isExceptionFilter(n))throw new c.InvalidClassModuleException(e,t);return this.container.addModule(n,t)}async scanModulesForDependencies(e=this.container.getModules()){for(let[t,{metatype:n}]of e)await this.reflectImports(n,t,n.name),this.reflectProviders(n,t),this.reflectControllers(n,t),this.reflectExports(n,t)}async reflectImports(e,n,r){let i=[...this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.IMPORTS)];for(let e of i)await this.insertImport(e,n,r)}reflectProviders(e,n){[...this.reflectMetadata(t.MODULE_METADATA.PROVIDERS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.PROVIDERS)].forEach(e=>{this.insertProvider(e,n),this.reflectDynamicMetadata(e,n)})}reflectControllers(e,n){[...this.reflectMetadata(t.MODULE_METADATA.CONTROLLERS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.CONTROLLERS)].forEach(e=>{this.insertController(e,n),this.reflectDynamicMetadata(e,n)})}reflectDynamicMetadata(e,n){!e||!e.prototype||(this.reflectInjectables(e,n,t.GUARDS_METADATA),this.reflectInjectables(e,n,t.INTERCEPTORS_METADATA),this.reflectInjectables(e,n,t.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(e,n,t.PIPES_METADATA),this.reflectParamInjectables(e,n,t.ROUTE_ARGS_METADATA))}reflectExports(e,n){[...this.reflectMetadata(t.MODULE_METADATA.EXPORTS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.EXPORTS)].forEach(e=>this.insertExportedProviderOrModule(e,n))}reflectInjectables(e,n,r){let i=this.reflectMetadata(r,e),a=this.metadataScanner.getAllMethodNames(e.prototype).reduce((t,n)=>{let i=this.reflectKeyMetadata(e,r,n);return i&&t.push(i),t},[]);i.forEach(i=>this.insertInjectable(i,n,e,t.ENHANCER_KEY_TO_SUBTYPE_MAP[r])),a.forEach(i=>{i.metadata.forEach(a=>this.insertInjectable(a,n,e,t.ENHANCER_KEY_TO_SUBTYPE_MAP[r],i.methodKey))})}reflectParamInjectables(e,t,n){this.metadataScanner.getAllMethodNames(e.prototype).forEach(r=>{let i=Reflect.getMetadata(n,e,r);i&&Object.values(i).map(e=>e.pipes).flat(1).forEach(n=>this.insertInjectable(n,t,e,`pipe`,r))})}reflectKeyMetadata(e,t,n){let r=e.prototype;do{let e=Reflect.getOwnPropertyDescriptor(r,n);if(!e)continue;let i=Reflect.getMetadata(t,e.value);return i?{methodKey:n,metadata:i}:void 0}while((r=Reflect.getPrototypeOf(r))&&r!==Object.prototype&&r)}calculateModulesDistance(){let e=this.container.getModules().values();e.next();let t=e.next().value;t&&new p.TopologyTree(t).walk((e,t)=>{e.isGlobal||(e.distance=t)})}async insertImport(e,t,n){if((0,r.isUndefined)(e))throw new s.CircularDependencyException(n);if(this.isForwardReference(e))return this.container.addImport(e.forwardRef(),t);await this.container.addImport(e,t)}isCustomProvider(e){return e&&!(0,r.isNil)(e.provide)}insertProvider(e,t){if(!this.isCustomProvider(e))return this.container.addProvider(e,t);let n=this.getApplyProvidersMap(),i=Object.keys(n),a=e.provide;if(!i.includes(a))return this.container.addProvider(e,t);let s=`${a} (UUID: ${m.UuidFactory.get(a.toString())})`,c=e.scope;(0,r.isNil)(c)&&e.useClass&&(c=(0,d.getClassScope)(e.useClass)),this.applicationProvidersApplyMap.push({type:a,moduleKey:t,providerKey:s,scope:c});let l={...e,provide:s,scope:c},u=o.ENHANCER_TOKEN_TO_SUBTYPE_MAP[a],f=l;if(this.isRequestOrTransient(f.scope))return this.container.addInjectable(l,t,u);this.container.addProvider(l,t,u)}insertInjectable(e,t,n,i,a){if((0,r.isFunction)(e)){let r=this.container.addInjectable(e,t,i,n);return this.graphInspector.insertEnhancerMetadataCache({moduleToken:t,classRef:n,enhancerInstanceWrapper:r,targetNodeId:r.id,subtype:i,methodKey:a}),r}else this.graphInspector.insertEnhancerMetadataCache({moduleToken:t,classRef:n,enhancerRef:e,methodKey:a,subtype:i})}insertExportedProviderOrModule(e,t){let n=this.isForwardReference(e)?e.forwardRef():e;this.container.addExportedProviderOrModule(n,t)}insertController(e,t){this.container.addController(e,t)}insertOrOverrideModule(e,t,n){let r=this.getOverrideModuleByModule(e,t);return r===void 0?this.insertModule(e,n):this.overrideModule(e,r.newModule,n)}getOverrideModuleByModule(e,t){return this.isForwardReference(e)?t.find(t=>t.moduleToReplace===e.forwardRef()||t.moduleToReplace.forwardRef?.()===e.forwardRef()):t.find(t=>t.moduleToReplace===e)}async overrideModule(e,t,n){return this.container.replaceModule(this.isForwardReference(e)?e.forwardRef():e,this.isForwardReference(t)?t.forwardRef():t,n)}reflectMetadata(e,t){return Reflect.getMetadata(e,t)||[]}async registerCoreModule(e){let t=f.InternalCoreModuleFactory.create(this.container,this,this.container.getModuleCompiler(),this.container.getHttpAdapterHostRef(),this.graphInspector,e),[n]=await this.scanForModules({moduleDefinition:t,overrides:e});this.container.registerCoreModuleRef(n)}addScopedEnhancersMetadata(){(0,i.iterate)(this.applicationProvidersApplyMap).filter(e=>this.isRequestOrTransient(e.scope)).forEach(({moduleKey:e,providerKey:t})=>{let n=this.container.getModules(),{injectables:r}=n.get(e),a=r.get(t),o=n.values();(0,i.iterate)(o).map(e=>Array.from(e.controllers.values()).concat(e.entryProviders)).flatten().forEach(e=>e.addEnhancerMetadata(a))})}applyApplicationProviders(){let e=this.getApplyProvidersMap(),t=this.getApplyRequestProvidersMap(),n=(e,t,n)=>this.container.getModules().get(e)[n].get(t);this.applicationProvidersApplyMap.forEach(({moduleKey:r,providerKey:i,type:a,scope:o})=>{let s;if(this.isRequestOrTransient(o))return s=n(r,i,`injectables`),this.graphInspector.insertAttachedEnhancer(s),t[a](s);s=n(r,i,`providers`),this.graphInspector.insertAttachedEnhancer(s),e[a](s.instance)})}getApplyProvidersMap(){return{[o.APP_INTERCEPTOR]:e=>this.applicationConfig.addGlobalInterceptor(e),[o.APP_PIPE]:e=>this.applicationConfig.addGlobalPipe(e),[o.APP_GUARD]:e=>this.applicationConfig.addGlobalGuard(e),[o.APP_FILTER]:e=>this.applicationConfig.addGlobalFilter(e)}}getApplyRequestProvidersMap(){return{[o.APP_INTERCEPTOR]:e=>this.applicationConfig.addGlobalRequestInterceptor(e),[o.APP_PIPE]:e=>this.applicationConfig.addGlobalRequestPipe(e),[o.APP_GUARD]:e=>this.applicationConfig.addGlobalRequestGuard(e),[o.APP_FILTER]:e=>this.applicationConfig.addGlobalRequestFilter(e)}}isDynamicModule(e){return e&&!!e.module}isInjectable(e){return!!Reflect.getMetadata(t.INJECTABLE_WATERMARK,e)}isController(e){return!!Reflect.getMetadata(t.CONTROLLER_WATERMARK,e)}isExceptionFilter(e){return!!Reflect.getMetadata(t.CATCH_WATERMARK,e)}isForwardReference(e){return e&&!!e.forwardRef}isRequestOrTransient(e){return e===n.Scope.REQUEST||e===n.Scope.TRANSIENT}}})),sw=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),cw=s(((e,t)=>{t.exports=a,t.exports.append=r;var n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,t){if(typeof e!=`string`)throw TypeError(`header argument is required`);if(!t)throw TypeError(`field argument is required`);for(var r=Array.isArray(t)?t:i(String(t)),a=0;a<r.length;a++)if(!n.test(r[a]))throw TypeError(`field argument contains an invalid header name`);if(e===`*`)return e;var o=e,s=i(e.toLowerCase());if(r.indexOf(`*`)!==-1||s.indexOf(`*`)!==-1)return`*`;for(var c=0;c<r.length;c++){var l=r[c].toLowerCase();s.indexOf(l)===-1&&(s.push(l),o=o?o+`, `+r[c]:r[c])}return o}function i(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}function a(e,t){if(!e||!e.getHeader||!e.setHeader)throw TypeError(`res argument is required`);var n=e.getHeader(`Vary`)||``;(n=r(Array.isArray(n)?n.join(`, `):String(n),t))&&e.setHeader(`Vary`,n)}})),lw=s(((e,t)=>{(function(){"use strict";var e=sw(),n=cw(),r={origin:`*`,methods:`GET,HEAD,PUT,PATCH,POST,DELETE`,preflightContinue:!1,optionsSuccessStatus:204};function i(e){return typeof e==`string`||e instanceof String}function a(e,t){if(Array.isArray(t)){for(var n=0;n<t.length;++n)if(a(e,t[n]))return!0;return!1}else if(i(t))return e===t;else if(t instanceof RegExp)return t.test(e);else return!!t}function o(e,t){var n=t.headers.origin,r=[],o;return!e.origin||e.origin===`*`?r.push([{key:`Access-Control-Allow-Origin`,value:`*`}]):i(e.origin)?(r.push([{key:`Access-Control-Allow-Origin`,value:e.origin}]),r.push([{key:`Vary`,value:`Origin`}])):(o=a(n,e.origin),r.push([{key:`Access-Control-Allow-Origin`,value:o?n:!1}]),r.push([{key:`Vary`,value:`Origin`}])),r}function s(e){var t=e.methods;return t.join&&(t=e.methods.join(`,`)),{key:`Access-Control-Allow-Methods`,value:t}}function c(e){return e.credentials===!0?{key:`Access-Control-Allow-Credentials`,value:`true`}:null}function l(e,t){var n=e.allowedHeaders||e.headers,r=[];return n?n.join&&(n=n.join(`,`)):(n=t.headers[`access-control-request-headers`],r.push([{key:`Vary`,value:`Access-Control-Request-Headers`}])),n&&n.length&&r.push([{key:`Access-Control-Allow-Headers`,value:n}]),r}function u(e){var t=e.exposedHeaders;if(t)t.join&&(t=t.join(`,`));else return null;return t&&t.length?{key:`Access-Control-Expose-Headers`,value:t}:null}function d(e){var t=(typeof e.maxAge==`number`||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:`Access-Control-Max-Age`,value:t}:null}function f(e,t){for(var r=0,i=e.length;r<i;r++){var a=e[r];a&&(Array.isArray(a)?f(a,t):a.key===`Vary`&&a.value?n(t,a.value):a.value&&t.setHeader(a.key,a.value))}}function p(e,t,n,r){var i=[];(t.method&&t.method.toUpperCase&&t.method.toUpperCase())===`OPTIONS`?(i.push(o(e,t)),i.push(c(e)),i.push(s(e)),i.push(l(e,t)),i.push(d(e)),i.push(u(e)),f(i,n),e.preflightContinue?r():(n.statusCode=e.optionsSuccessStatus,n.setHeader(`Content-Length`,`0`),n.end())):(i.push(o(e,t)),i.push(c(e)),i.push(u(e)),f(i,n),r())}function m(t){var n=null;return n=typeof t==`function`?t:function(e,n){n(null,t)},function(t,i,a){n(t,function(n,o){if(n)a(n);else{var s=e({},r,o),c=null;s.origin&&typeof s.origin==`function`?c=s.origin:s.origin&&(c=function(e,t){t(null,s.origin)}),c?c(t.headers.origin,function(e,n){e||!n?a(e):(s.origin=n,p(s,t,i,a))}):a()}})}}t.exports=m})()})),uw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getBodyParserOptions=n;var t=(e,t,n)=>(Buffer.isBuffer(n)&&(e.rawBody=n),!0);function n(e,n){let r=n||{};return e===!0&&(r={...r,verify:t}),r}})),dw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExpressAdapter=void 0;var t=U(),n=M(),r=Ox(),i=LC(),a=sC(),o=lw(),s=require(`express`),c=require(`http`),l=require(`https`),u=oC(),d=uw();e.ExpressAdapter=class e extends r.AbstractHttpAdapter{constructor(n){super(n||s()),this.routerMethodFactory=new i.RouterMethodFactory,this.logger=new t.Logger(e.name),this.openConnections=new Set,this.instance.use((e,t,n)=>{this.onResponseHook&&t.on(`finish`,()=>{this.onResponseHook.apply(this,[e,t])}),this.onRequestHook?this.onRequestHook.apply(this,[e,t,n]):n()})}setOnRequestHook(e){this.onRequestHook=e}setOnResponseHook(e){this.onResponseHook=e}reply(e,r,i){if(i&&e.status(i),(0,n.isNil)(r))return e.send();if(r instanceof t.StreamableFile){this.applyStreamHeaders(e,r);let t=r.getStream();return t.once(`error`,t=>{r.errorHandler(t,e)}),t.pipe(e).on(`error`,e=>r.errorLogger(e))}let a=e.getHeader(`Content-Type`);return typeof a==`string`&&!a.startsWith(`application/json`)&&r?.statusCode>=t.HttpStatus.BAD_REQUEST&&(this.logger.warn(`Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses`),e.setHeader(`Content-Type`,`application/json`)),(0,n.isObject)(r)?e.json(r):e.send(String(r))}status(e,t){return e.status(t)}end(e,t){return e.end(t)}render(e,t,n){return e.render(t,n)}redirect(e,t,n){return e.redirect(t,n)}setErrorHandler(e,t){return this.use(e)}setNotFoundHandler(e,t){return this.use(e)}isHeadersSent(e){return e.headersSent}getHeader(e,t){return e.get(t)}setHeader(e,t,n){return e.set(t,n)}appendHeader(e,t,n){return e.append(t,n)}normalizePath(e){try{let t=a.LegacyRouteConverter.tryConvert(e);return(0,u.pathToRegexp)(t),t}catch(t){throw t instanceof TypeError&&a.LegacyRouteConverter.printError(e),t}}listen(e,...t){return this.httpServer.listen(e,...t)}close(){if(this.closeOpenConnections(),this.httpServer)return new Promise(e=>this.httpServer.close(e))}set(...e){return this.instance.set(...e)}enable(...e){return this.instance.enable(...e)}disable(...e){return this.instance.disable(...e)}engine(...e){return this.instance.engine(...e)}useStaticAssets(e,t){return t&&t.prefix?this.use(t.prefix,s.static(e,t)):this.use(s.static(e,t))}setBaseViewsDir(e){return this.set(`views`,e)}setViewEngine(e){return this.set(`view engine`,e)}getRequestHostname(e){return e.hostname}getRequestMethod(e){return e.method}getRequestUrl(e){return e.originalUrl}enableCors(e){return this.use(o(e))}createMiddlewareFactory(e){return(t,n)=>{try{let r=a.LegacyRouteConverter.tryConvert(t);return this.routerMethodFactory.get(this.instance,e).call(this.instance,r,n)}catch(e){throw e instanceof TypeError&&a.LegacyRouteConverter.printError(t),e}}}initHttpServer(e){e&&e.httpsOptions?this.httpServer=l.createServer(e.httpsOptions,this.getInstance()):this.httpServer=c.createServer(this.getInstance()),e?.forceCloseConnections&&this.trackOpenConnections()}registerParserMiddleware(e,t){let n=(0,d.getBodyParserOptions)(t),r=(0,d.getBodyParserOptions)(t,{extended:!0}),i={jsonParser:s.json(n),urlencodedParser:s.urlencoded(r)};Object.keys(i).filter(e=>!this.isMiddlewareApplied(e)).forEach(e=>this.use(i[e]))}useBodyParser(e,t,n){let r=(0,d.getBodyParserOptions)(t,n),i=s[e](r);return this.use(i),this}setLocal(e,t){return this.instance.locals[e]=t,this}getType(){return`express`}applyVersionFilter(e,r,i){let a=(e,n,r)=>{if(!r)throw new t.InternalServerErrorException(`HTTP adapter does not support filtering on version`);return r()};if(r===t.VERSION_NEUTRAL||i.type===t.VersioningType.URI)return(t,n,r)=>e(t,n,r);if(i.type===t.VersioningType.CUSTOM)return(t,o,s)=>{let c=i.extractor(t);if(Array.isArray(r)){if(Array.isArray(c)&&r.filter(e=>c.includes(e)).length||(0,n.isString)(c)&&r.includes(c))return e(t,o,s)}else if((0,n.isString)(r)&&(Array.isArray(c)&&c.includes(r)||(0,n.isString)(c)&&r===c))return e(t,o,s);return a(t,o,s)};if(i.type===t.VersioningType.MEDIA_TYPE)return(o,s,c)=>{let l=o.headers?.Accept||o.headers?.accept,u=l?l.split(`;`)[1]:void 0;if((0,n.isUndefined)(u)){if(Array.isArray(r)&&r.includes(t.VERSION_NEUTRAL))return e(o,s,c)}else{let t=u.split(i.key)[1];if(Array.isArray(r)){if(r.includes(t))return e(o,s,c)}else if((0,n.isString)(r)&&r===t)return e(o,s,c)}return a(o,s,c)};if(i.type===t.VersioningType.HEADER)return(o,s,c)=>{let l=o.headers?.[i.header]||o.headers?.[i.header.toLowerCase()];if((0,n.isUndefined)(l)){if(Array.isArray(r)&&r.includes(t.VERSION_NEUTRAL))return e(o,s,c)}else if(Array.isArray(r)){if(r.includes(l))return e(o,s,c)}else if((0,n.isString)(r)&&r===l)return e(o,s,c);return a(o,s,c)};throw Error(`Unsupported versioning options`)}trackOpenConnections(){this.httpServer.on(`connection`,e=>{this.openConnections.add(e),e.on(`close`,()=>this.openConnections.delete(e))})}closeOpenConnections(){for(let e of this.openConnections)e.destroy(),this.openConnections.delete(e)}isMiddlewareApplied(e){let t=this.getInstance();return!!t.router&&!!t.router.stack&&(0,n.isFunction)(t.router.stack.filter)&&t.router.stack.some(t=>t&&t.handle&&t.handle.name===e)}setHeaderIfNotExists(e,t,n){if(n!==void 0&&e.getHeader(t)===void 0){let r=Array.isArray(n)?n.join(`,`):n;e.setHeader(t,r)}}applyStreamHeaders(e,t){let n=t.getHeaders();this.setHeaderIfNotExists(e,`Content-Type`,n.type),this.setHeaderIfNotExists(e,`Content-Disposition`,n.disposition),this.setHeaderIfNotExists(e,`Content-Length`,n.length)}}})),fw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(dw(),e)})),pw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),mw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),hw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(pw(),e),t.__exportStar(mw(),e)})),gw=s((e=>{var t=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,n=/^[\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,i=/\\([\u0000-\u007f])/g,a=/([\\"])/g,o=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,c=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;e.format=l,e.parse=u;function l(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var t=e.parameters,n=e.subtype,i=e.suffix,a=e.type;if(!a||!s.test(a))throw TypeError(`invalid type`);if(!n||!o.test(n))throw TypeError(`invalid subtype`);var c=a+`/`+n;if(i){if(!s.test(i))throw TypeError(`invalid suffix`);c+=`+`+i}if(t&&typeof t==`object`)for(var l,u=Object.keys(t).sort(),d=0;d<u.length;d++){if(l=u[d],!r.test(l))throw TypeError(`invalid parameter name`);c+=`; `+l+`=`+f(t[l])}return c}function u(e){if(!e)throw TypeError(`argument string is required`);if(typeof e==`object`&&(e=d(e)),typeof e!=`string`)throw TypeError(`argument string is required to be a string`);var n=e.indexOf(`;`),r=n===-1?e:e.substr(0,n),a,o,s=p(r),c={},l;for(t.lastIndex=n;o=t.exec(e);){if(o.index!==n)throw TypeError(`invalid parameter format`);n+=o[0].length,a=o[1].toLowerCase(),l=o[2],l[0]===`"`&&(l=l.substr(1,l.length-2).replace(i,`$1`)),c[a]=l}if(n!==-1&&n!==e.length)throw TypeError(`invalid parameter format`);return s.parameters=c,s}function d(e){if(typeof e.getHeader==`function`)return e.getHeader(`content-type`);if(typeof e.headers==`object`)return e.headers&&e.headers[`content-type`]}function f(e){var t=String(e);if(r.test(t))return t;if(t.length>0&&!n.test(t))throw TypeError(`invalid parameter value`);return`"`+t.replace(a,`\\$1`)+`"`}function p(e){var t=c.exec(e.toLowerCase());if(!t)throw TypeError(`invalid media type`);var n=t[1],r=t[2],i,a=r.lastIndexOf(`+`);return a!==-1&&(i=r.substr(a+1),r=r.substr(0,a)),{type:n,subtype:r,suffix:i}}})),_w=c({default:()=>vw}),vw,yw=o((()=>{vw={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),bw=s(((e,t)=>{t.exports=(yw(),d(_w).default)})),xw=s((e=>{var t=bw(),n=require(`path`).extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=o,e.extension=s,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function a(e){if(!e||typeof e!=`string`)return!1;var n=r.exec(e),a=n&&t[n[1].toLowerCase()];return a&&a.charset?a.charset:n&&i.test(n[1])?`UTF-8`:!1}function o(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function s(t){if(!t||typeof t!=`string`)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];return!i||!i.length?!1:i[0]}function c(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().substr(1);return r&&e.types[r]||!1}function l(e,n){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(i){var a=t[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(a.source);if(n[c]!==`application/octet-stream`&&(l>u||l===u&&n[c].substr(0,12)===`application/`))continue}n[c]=i}}})}})),Sw=s(((e,t)=>{var n=gw(),r=xw();t.exports=o,t.exports.is=i,t.exports.hasBody=a,t.exports.normalize=s,t.exports.match=c;function i(e,t){var n,r=t,i=u(e);if(!i)return!1;if(r&&!Array.isArray(r))for(r=Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];if(!r||!r.length)return i;var a;for(n=0;n<r.length;n++)if(c(s(a=r[n]),i))return a[0]===`+`||a.indexOf(`*`)!==-1?i:a;return!1}function a(e){return e.headers[`transfer-encoding`]!==void 0||!isNaN(e.headers[`content-length`])}function o(e,t){var n=t;if(!a(e))return null;if(arguments.length>2){n=Array(arguments.length-1);for(var r=0;r<n.length;r++)n[r]=arguments[r+1]}var o=e.headers[`content-type`];return i(o,n)}function s(e){if(typeof e!=`string`)return!1;switch(e){case`urlencoded`:return`application/x-www-form-urlencoded`;case`multipart`:return`multipart/*`}return e[0]===`+`?`*/*`+e:e.indexOf(`/`)===-1?r.lookup(e):e}function c(e,t){if(e===!1)return!1;var n=t.split(`/`),r=e.split(`/`);return n.length!==2||r.length!==2||r[0]!==`*`&&r[0]!==n[0]?!1:r[1].substr(0,2)===`*+`?r[1].length<=n[1].length+1&&r[1].substr(1)===n[1].substr(1-r[1].length):!(r[1]!==`*`&&r[1]!==n[1])}function l(e){var t=n.parse(e);return t.parameters=void 0,n.format(t)}function u(e){if(!e)return null;try{return l(e)}catch{return null}}})),Cw=s(((e,t)=>{function n(e){if(e.length===0)return;let t=Object.create(null),n=0;for(;n<e.length;++n){let t=e.charCodeAt(n);if(u[t]!==1){if(t!==47||n===0)return;break}}if(n===e.length)return;let i=e.slice(0,n).toLowerCase(),a=++n;for(;n<e.length;++n)if(u[e.charCodeAt(n)]!==1){if(n===a||r(e,n,t)===void 0)return;break}if(n!==a)return{type:i,subtype:e.slice(a,n).toLowerCase(),params:t}}function r(e,t,n){for(;t<e.length;){for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)break;if(e.charCodeAt(t++)!==59)return;for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)return;let r,i=t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(u[n]!==1){if(n!==61)return;break}}if(t===e.length||(r=e.slice(i,t),++t,t===e.length))return;let a=``,o;if(e.charCodeAt(t)===34){o=++t;let n=!1;for(;t<e.length;++t){let r=e.charCodeAt(t);if(r===92){n?(o=t,n=!1):(a+=e.slice(o,t),n=!0);continue}if(r===34){if(n){o=t,n=!1;continue}a+=e.slice(o,t);break}if(n&&=(o=t-1,!1),d[r]!==1)return}if(t===e.length)return;++t}else{for(o=t;t<e.length;++t)if(u[e.charCodeAt(t)]!==1){if(t===o)return;break}a=e.slice(o,t)}r=r.toLowerCase(),n[r]===void 0&&(n[r]=a)}return n}function i(e,t){if(e.length===0)return;let n=Object.create(null),r=0;for(;r<e.length;++r)if(u[e.charCodeAt(r)]!==1){if(a(e,r,n,t)===void 0)return;break}return{type:e.slice(0,r).toLowerCase(),params:n}}function a(e,t,n,r){for(;t<e.length;){for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)break;if(e.charCodeAt(t++)!==59)return;for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)return;let i,a=t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(u[n]!==1){if(n===61)break;return}}if(t===e.length)return;let o=``,s,l;if(i=e.slice(a,t),i.charCodeAt(i.length-1)===42){let n=++t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(f[n]!==1){if(n!==39)return;break}}if(t===e.length)return;for(l=e.slice(n,t),++t;t<e.length&&e.charCodeAt(t)!==39;++t);if(t===e.length||(++t,t===e.length))return;s=t;let r=0;for(;t<e.length;++t){let n=e.charCodeAt(t);if(p[n]!==1){if(n===37){let n,i;if(t+2<e.length&&(n=m[e.charCodeAt(t+1)])!==-1&&(i=m[e.charCodeAt(t+2)])!==-1){let a=(n<<4)+i;o+=e.slice(s,t),o+=String.fromCharCode(a),t+=2,s=t+1,a>=128?r=2:r===0&&(r=1);continue}return}break}}if(o+=e.slice(s,t),o=c(o,l,r),o===void 0)return}else{if(++t,t===e.length)return;if(e.charCodeAt(t)===34){s=++t;let n=!1;for(;t<e.length;++t){let r=e.charCodeAt(t);if(r===92){n?(s=t,n=!1):(o+=e.slice(s,t),n=!0);continue}if(r===34){if(n){s=t,n=!1;continue}o+=e.slice(s,t);break}if(n&&=(s=t-1,!1),d[r]!==1)return}if(t===e.length)return;++t}else{for(s=t;t<e.length;++t)if(u[e.charCodeAt(t)]!==1){if(t===s)return;break}o=e.slice(s,t)}if(o=r(o,2),o===void 0)return}i=i.toLowerCase(),n[i]===void 0&&(n[i]=o)}return n}function o(e){let t;for(;;)switch(e){case`utf-8`:case`utf8`:return s.utf8;case`latin1`:case`ascii`:case`us-ascii`:case`iso-8859-1`:case`iso8859-1`:case`iso88591`:case`iso_8859-1`:case`windows-1252`:case`iso_8859-1:1987`:case`cp1252`:case`x-cp1252`:return s.latin1;case`utf16le`:case`utf-16le`:case`ucs2`:case`ucs-2`:return s.utf16le;case`base64`:return s.base64;default:if(t===void 0){t=!0,e=e.toLowerCase();continue}return s.other.bind(e)}}var s={utf8:(e,t)=>{if(e.length===0)return``;if(typeof e==`string`){if(t<2)return e;e=Buffer.from(e,`latin1`)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>e.length===0?``:typeof e==`string`?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,`latin1`)),e.ucs2Slice(0,e.length)),base64:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,`latin1`)),e.base64Slice(0,e.length)),other:(t,n)=>{if(t.length===0)return``;typeof t==`string`&&(t=Buffer.from(t,`latin1`));try{return new TextDecoder(e).decode(t)}catch{}}};function c(e,t,n){let r=o(t);if(r)return r(e,n)}function l(e){if(typeof e!=`string`)return``;for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return e=e.slice(t+1),e===`..`||e===`.`?``:e}return e===`..`||e===`.`?``:e}var u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.exports={basename:l,convertToUTF8:c,getDecoder:o,parseContentType:n,parseDisposition:i}})),ww=s(((e,t)=>{function n(e,t,n,r,i){for(let a=0;a<i;++a)if(e[t+a]!==n[r+a])return!1;return!0}var r=class{constructor(e,t){if(typeof t!=`function`)throw Error(`Missing match callback`);if(typeof e==`string`)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw Error(`Expected Buffer for needle, got ${typeof e}`);let n=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(n),this._occ=[n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n],n>1)for(let t=0;t<n-1;++t)this._occ[e[t]]=n-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,t){let n;Buffer.isBuffer(e)||(e=Buffer.from(e,`latin1`));let r=e.length;for(this._bufPos=t||0;n!==r&&this.matches<this.maxMatches;)n=i(this,e);return n}destroy(){let e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}};function i(e,t){let r=t.length,i=e._needle,o=i.length,s=-e._lookbehindSize,c=o-1,l=i[c],u=r-o,d=e._occ,f=e._lookbehind;if(s<0){for(;s<0&&s<=u;){let n=s+c,r=n<0?f[e._lookbehindSize+n]:t[n];if(r===l&&a(e,t,s,c))return e._lookbehindSize=0,++e.matches,s>-e._lookbehindSize?e._cb(!0,f,0,e._lookbehindSize+s,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=s+o;s+=d[r]}for(;s<0&&!a(e,t,s,r-s);)++s;if(s<0){let n=e._lookbehindSize+s;return n>0&&e._cb(!1,f,0,n,!1),e._lookbehindSize-=n,f.copy(f,0,n,e._lookbehindSize),f.set(t,e._lookbehindSize),e._lookbehindSize+=r,e._bufPos=r,r}e._cb(!1,f,0,e._lookbehindSize,!1),e._lookbehindSize=0}s+=e._bufPos;let p=i[0];for(;s<=u;){let r=t[s+c];if(r===l&&t[s]===p&&n(i,0,t,s,c))return++e.matches,s>0?e._cb(!0,t,e._bufPos,s,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=s+o;s+=d[r]}for(;s<r;){if(t[s]!==p||!n(t,s,i,0,r-s)){++s;continue}t.copy(f,0,s,r),e._lookbehindSize=r-s;break}return s>0&&e._cb(!1,t,e._bufPos,s<r?s:r,!0),e._bufPos=r,r}function a(e,t,n,r){let i=e._lookbehind,a=e._lookbehindSize,o=e._needle;for(let e=0;e<r;++e,++n)if((n<0?i[a+n]:t[n])!==o[e])return!1;return!0}t.exports=r})),Tw=s(((e,t)=>{var{Readable:n,Writable:r}=require(`stream`),i=ww(),{basename:a,convertToUTF8:o,getDecoder:s,parseContentType:c,parseDisposition:l}=Cw(),u=Buffer.from(`\r
|
|
137
|
-
`),d=Buffer.from(`\r`),f=Buffer.from(`-`);function p(){}var m=2e3,h=16*1024,g=0,_=1,v=2,y=class{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=g,this.name=``,this.value=``,this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=g,this.name=``,this.value=``,this.crlf=0}push(e,t,n){let r=t;for(;t<n;)switch(this.state){case g:{let i=!1;for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(D[n]!==1){if(n!==58||(this.name+=e.latin1Slice(r,t),this.name.length===0))return-1;++t,i=!0,this.state=_;break}}if(!i){this.name+=e.latin1Slice(r,t);break}}case _:{let i=!1;for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(n!==32&&n!==9){r=t,i=!0,this.state=v;break}}if(!i)break}case v:switch(this.crlf){case 0:for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(O[n]!==1){if(n!==13)return-1;++this.crlf;break}}this.value+=e.latin1Slice(r,t++);break;case 1:if(this.byteCount===h||(++this.byteCount,e[t++]!==10))return-1;++this.crlf;break;case 2:{if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];n===32||n===9?(r=t,this.crlf=0):(++this.pairCount<m&&(this.name=this.name.toLowerCase(),this.header[this.name]===void 0?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),n===13?(++this.crlf,++t):(r=t,this.crlf=0,this.state=g,this.name=``,this.value=``));break}case 3:{if(this.byteCount===h||(++this.byteCount,e[t++]!==10))return-1;let n=this.header;return this.reset(),this.cb(n),t}}break}return t}},b=class extends n{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once(`end`,()=>{if(this._read(),--t._fileEndsLeft===0&&t._finalcb){let e=t._finalcb;t._finalcb=null,process.nextTick(e)}})}_read(e){let t=this._readcb;t&&(this._readcb=null,t())}},x={push:(e,t)=>{},destroy:()=>{}};function S(e,t){let n=e._writecb;e._writecb=null,t?e.destroy(t):n&&n()}function C(e,t){return e}var w=class extends r{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.highWaterMark==`number`?e.highWaterMark:void 0};if(super(t),!e.conType.params||typeof e.conType.params.boundary!=`string`)throw Error(`Multipart: Boundary not found`);let n=e.conType.params.boundary,r=typeof e.defParamCharset==`string`&&e.defParamCharset?s(e.defParamCharset):C,m=e.defCharset||`utf8`,h=e.preservePath,g={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.fileHwm==`number`?e.fileHwm:void 0},_=e.limits,v=_&&typeof _.fieldSize==`number`?_.fieldSize:1*1024*1024,S=_&&typeof _.fileSize==`number`?_.fileSize:1/0,w=_&&typeof _.files==`number`?_.files:1/0,T=_&&typeof _.fields==`number`?_.fields:1/0,E=_&&typeof _.parts==`number`?_.parts:1/0,D=-1,O=0,k=0,A=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let j=0,ee,M=0,te,ne,re,N,ie=!1,ae=!1,P=!1;this._hparser=null;let oe=new y(e=>{this._hparser=null,A=!1,re=`text/plain`,te=m,ne=`7bit`,N=void 0,ie=!1;let t;if(!e[`content-disposition`]){A=!0;return}let n=l(e[`content-disposition`][0],r);if(!n||n.type!==`form-data`){A=!0;return}if(n.params&&(n.params.name&&(N=n.params.name),n.params[`filename*`]?t=n.params[`filename*`]:n.params.filename&&(t=n.params.filename),t!==void 0&&!h&&(t=a(t))),e[`content-type`]){let t=c(e[`content-type`][0]);t&&(re=`${t.type}/${t.subtype}`,t.params&&typeof t.params.charset==`string`&&(te=t.params.charset.toLowerCase()))}if(e[`content-transfer-encoding`]&&(ne=e[`content-transfer-encoding`][0].toLowerCase()),re===`application/octet-stream`||t!==void 0){if(k===w){ae||(ae=!0,this.emit(`filesLimit`)),A=!0;return}if(++k,this.listenerCount(`file`)===0){A=!0;return}j=0,this._fileStream=new b(g,this),++this._fileEndsLeft,this.emit(`file`,N,this._fileStream,{filename:t,encoding:ne,mimeType:re})}else{if(O===T){P||(P=!0,this.emit(`fieldsLimit`)),A=!0;return}if(++O,this.listenerCount(`field`)===0){A=!0;return}ee=[],M=0}}),se=0,ce=(e,t,n,r,i)=>{retrydata:for(;t;){if(this._hparser!==null){let e=this._hparser.push(t,n,r);if(e===-1){this._hparser=null,oe.reset(),this.emit(`error`,Error(`Malformed part header`));break}n=e}if(n===r)break;if(se!==0){if(se===1){switch(t[n]){case 45:se=2,++n;break;case 13:se=3,++n;break;default:se=0}if(n===r)return}if(se===2){if(se=0,t[n]===45){this._complete=!0,this._bparser=x;return}let e=this._writecb;this._writecb=p,ce(!1,f,0,1,!1),this._writecb=e}else if(se===3)if(se=0,t[n]===10){if(++n,D>=E||(this._hparser=oe,n===r))break;continue retrydata}else{let e=this._writecb;this._writecb=p,ce(!1,d,0,1,!1),this._writecb=e}}if(!A){if(this._fileStream){let e,a=Math.min(r-n,S-j);i?e=t.slice(n,n+a):(e=Buffer.allocUnsafe(a),t.copy(e,0,n,n+a)),j+=e.length,j===S?(e.length>0&&this._fileStream.push(e),this._fileStream.emit(`limit`),this._fileStream.truncated=!0,A=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(ee!==void 0){let e,a=Math.min(r-n,v-M);i?e=t.slice(n,n+a):(e=Buffer.allocUnsafe(a),t.copy(e,0,n,n+a)),M+=a,ee.push(e),M===v&&(A=!0,ie=!0)}}break}if(e){if(se=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(ee!==void 0){let e;switch(ee.length){case 0:e=``;break;case 1:e=o(ee[0],te,0);break;default:e=o(Buffer.concat(ee,M),te,0)}ee=void 0,M=0,this.emit(`field`,N,e,{nameTruncated:!1,valueTruncated:ie,encoding:ne,mimeType:re})}++D===E&&this.emit(`partsLimit`)}};this._bparser=new i(`\r\n--${n}`,ce),this._writecb=null,this._finalcb=null,this.write(u)}static detect(e){return e.type===`multipart`&&e.subtype===`form-data`}_write(e,t,n){this._writecb=n,this._bparser.push(e,0),this._writecb&&S(this)}_destroy(e,t){this._hparser=null,this._bparser=x,e||=E(this);let n=this._fileStream;n&&(this._fileStream=null,n.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error(`Unexpected end of form`));this._fileEndsLeft?this._finalcb=T.bind(null,this,e):T(this,e)}};function T(e,t,n){if(n)return t(n);n=E(e),t(n)}function E(e){if(e._hparser)return Error(`Malformed part header`);let t=e._fileStream;if(t&&(e._fileStream=null,t.destroy(Error(`Unexpected end of file`))),!e._complete)return Error(`Unexpected end of form`)}var D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.exports=w})),Ew=s(((e,t)=>{var{Writable:n}=require(`stream`),{getDecoder:r}=Cw(),i=class extends n{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.highWaterMark==`number`?e.highWaterMark:void 0};super(t);let n=e.defCharset||`utf8`;e.conType.params&&typeof e.conType.params.charset==`string`&&(n=e.conType.params.charset),this.charset=n;let i=e.limits;this.fieldSizeLimit=i&&typeof i.fieldSize==`number`?i.fieldSize:1*1024*1024,this.fieldsLimit=i&&typeof i.fields==`number`?i.fields:1/0,this.fieldNameSizeLimit=i&&typeof i.fieldNameSize==`number`?i.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key=``,this._val=``,this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=r(n)}static detect(e){return e.type===`application`&&e.subtype===`x-www-form-urlencoded`}_write(e,t,n){if(this._fields>=this.fieldsLimit)return n();let r=0,i=e.length;if(this._lastPos=0,this._byte!==-2){if(r=a(this,e,r,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();this._inKey?++this._bytesKey:++this._bytesVal}main:for(;r<i;)if(this._inKey){for(r=o(this,e,r,i);r<i;){switch(e[r]){case 61:this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue main;case 38:if(this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit(`field`,this._key,``,{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:`text/plain`}),this._key=``,this._val=``,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit(`fieldsLimit`),n();continue;case 43:this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._key+=` `,this._lastPos=r+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=r+1,this._byte=-1,r=a(this,e,r+1,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();++this._bytesKey,r=o(this,e,r,i);continue}++r,++this._bytesKey,r=o(this,e,r,i)}this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r))}else{for(r=s(this,e,r,i);r<i;){switch(e[r]){case 38:if(this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit(`field`,this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:`text/plain`}),this._key=``,this._val=``,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit(`fieldsLimit`),n();continue main;case 43:this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._val+=` `,this._lastPos=r+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._lastPos=r+1,this._byte=-1,r=a(this,e,r+1,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();++this._bytesVal,r=s(this,e,r,i);continue}++r,++this._bytesVal,r=s(this,e,r,i)}this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r))}n()}_final(e){if(this._byte!==-2)return e(Error(`Malformed urlencoded form`));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit(`field`,this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:`text/plain`})),e()}};function a(e,t,n,r){if(n>=r)return r;if(e._byte===-1){let i=c[t[n++]];if(i===-1)return-1;if(i>=8&&(e._encode=2),n<r){let r=c[t[n++]];if(r===-1)return-1;e._inKey?e._key+=String.fromCharCode((i<<4)+r):e._val+=String.fromCharCode((i<<4)+r),e._byte=-2,e._lastPos=n}else e._byte=i}else{let r=c[t[n++]];if(r===-1)return-1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+r):e._val+=String.fromCharCode((e._byte<<4)+r),e._byte=-2,e._lastPos=n}return n}function o(e,t,n,r){if(e._bytesKey>e.fieldNameSizeLimit){for(e._keyTrunc||e._lastPos<n&&(e._key+=t.latin1Slice(e._lastPos,n-1)),e._keyTrunc=!0;n<r;++n){let r=t[n];if(r===61||r===38)break;++e._bytesKey}e._lastPos=n}return n}function s(e,t,n,r){if(e._bytesVal>e.fieldSizeLimit){for(e._valTrunc||e._lastPos<n&&(e._val+=t.latin1Slice(e._lastPos,n-1)),e._valTrunc=!0;n<r&&t[n]!==38;++n)++e._bytesVal;e._lastPos=n}return n}var c=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.exports=i})),Dw=s(((e,t)=>{var{parseContentType:n}=Cw();function r(e){let t=e.headers,r=n(t[`content-type`]);if(!r)throw Error(`Malformed content type`);for(let n of i){if(!n.detect(r))continue;let i={limits:e.limits,headers:t,conType:r,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(i.highWaterMark=e.highWaterMark),e.fileHwm&&(i.fileHwm=e.fileHwm),i.defCharset=e.defCharset,i.defParamCharset=e.defParamCharset,i.preservePath=e.preservePath,new n(i)}throw Error(`Unsupported content type: ${t[`content-type`]}`)}var i=[Tw(),Ew()].filter(function(e){return typeof e.detect==`function`});t.exports=e=>{if((typeof e!=`object`||!e)&&(e={}),typeof e.headers!=`object`||e.headers===null||typeof e.headers[`content-type`]!=`string`)throw Error(`Missing Content-Type`);return r(e)}})),Ow=s(((e,t)=>{var n=/^[^\[]*/,r=/^\[(\d+)\]/,i=/^\[([^\]]+)\]/;function a(e){function t(){return[{type:`object`,key:e,last:!0}]}var a=n.exec(e)[0];if(!a)return t();for(var o=e.length,s=a.length,c={type:`object`,key:a},l=[c];s<o;){var u;if(e[s]===`[`&&e[s+1]===`]`){if(s+=2,c.append=!0,s!==o)return t();continue}if(u=r.exec(e.substring(s)),u!==null){s+=u[0].length,c.nextType=`array`,c={type:`array`,key:parseInt(u[1],10)},l.push(c);continue}if(u=i.exec(e.substring(s)),u!==null){s+=u[0].length,c.nextType=`object`,c={type:`object`,key:u[1]},l.push(c);continue}return t()}return c.last=!0,l}t.exports=a})),kw=s(((e,t)=>{function n(e){return e===void 0?`undefined`:Array.isArray(e)?`array`:typeof e==`object`?`object`:`scalar`}function r(e,t,i,a){switch(n(i)){case`undefined`:t.append?e[t.key]=[a]:e[t.key]=a;break;case`array`:e[t.key].push(a);break;case`object`:return r(i,{type:`object`,key:``,last:!0},i[``],a);case`scalar`:e[t.key]=[e[t.key],a];break}return e}function i(e,t,i,a){if(t.last)return r(e,t,i,a);var o;switch(n(i)){case`undefined`:return t.nextType===`array`?e[t.key]=[]:e[t.key]=Object.create(null),e[t.key];case`object`:return e[t.key];case`array`:return t.nextType===`array`?i:(o=Object.create(null),e[t.key]=o,i.forEach(function(e,t){e!==void 0&&(o[``+t]=e)}),o);case`scalar`:return o=Object.create(null),o[``]=i,e[t.key]=o,o}}t.exports=i})),Aw=s(((e,t)=>{var n=Ow(),r=kw();function i(e,t,i){n(t).reduce(function(e,t){return r(e,t,e[t.key],i)},e)}t.exports=i})),jw=s(((e,t)=>{var n=require(`events`).EventEmitter;function r(){n.call(this),this.value=0}r.prototype=Object.create(n.prototype),r.prototype.increment=function(){this.value++},r.prototype.decrement=function(){--this.value===0&&this.emit(`zero`)},r.prototype.isZero=function(){return this.value===0},r.prototype.onceZero=function(e){if(this.isZero())return e();this.once(`zero`,e)},t.exports=r})),Mw=s(((e,t)=>{var n=require(`util`),r={LIMIT_PART_COUNT:`Too many parts`,LIMIT_FILE_SIZE:`File too large`,LIMIT_FILE_COUNT:`Too many files`,LIMIT_FIELD_KEY:`Field name too long`,LIMIT_FIELD_VALUE:`Field value too long`,LIMIT_FIELD_COUNT:`Too many fields`,LIMIT_UNEXPECTED_FILE:`Unexpected field`,MISSING_FIELD_NAME:`Field name missing`};function i(e,t){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=r[e],this.code=e,t&&(this.field=t)}n.inherits(i,Error),t.exports=i})),Nw=s(((e,t)=>{function n(e,t){var n=e.indexOf(t);~n&&e.splice(n,1)}function r(e,t){switch(this.strategy=e,this.req=t,e){case`NONE`:break;case`VALUE`:break;case`ARRAY`:t.files=[];break;case`OBJECT`:t.files=Object.create(null);break;default:throw Error(`Unknown file strategy: `+e)}}r.prototype.insertPlaceholder=function(e){var t={fieldname:e.fieldname};switch(this.strategy){case`NONE`:break;case`VALUE`:break;case`ARRAY`:this.req.files.push(t);break;case`OBJECT`:this.req.files[e.fieldname]?this.req.files[e.fieldname].push(t):this.req.files[e.fieldname]=[t];break}return t},r.prototype.removePlaceholder=function(e){switch(this.strategy){case`NONE`:break;case`VALUE`:break;case`ARRAY`:n(this.req.files,e);break;case`OBJECT`:this.req.files[e.fieldname].length===1?delete this.req.files[e.fieldname]:n(this.req.files[e.fieldname],e);break}},r.prototype.replacePlaceholder=function(e,t){if(this.strategy===`VALUE`){this.req.file=t;return}delete e.fieldname,Object.assign(e,t)},t.exports=r})),Pw=s(((e,t)=>{function n(e,t,n){var r=e.length,i=[];if(r===0)return n(null,i);function a(o){var s=e[o];t(s,function(e){e&&(e.file=s,e.field=s.fieldname,i.push(e)),o<r-1?setImmediate(function(){a(o+1)}):n(null,i)})}a(0)}t.exports=n})),Fw=s(((e,t)=>{var n=Sw(),r=Dw(),i=Aw(),a=jw(),o=Mw(),s=Nw(),c=Pw();function l(e){e.on(`readable`,()=>{for(;e.read()!==null;);})}function u(e){return function(t,u,d){if(!n(t,[`multipart`]))return d();var f=e(),p=f.limits,m=f.storage,h=f.fileFilter,g=f.fileStrategy,_=f.preservePath,v=f.defParamCharset;t.body=Object.create(null);var y,b=null,x=!1,S=!1,C=!1,w=new a,T=[];function E(e){var n=!1;function r(){n||(n=!0,d(e))}if(!x){if(x=!0,y&&(t.unpipe(y),setImmediate(()=>{y.removeAllListeners()})),l(t),t.resume(),e&&t.readable&&!t.destroyed){t.once(`end`,r),t.once(`error`,r),t.once(`close`,r);return}d(e)}}function D(){S&&w.isZero()&&!C&&E()}function O(e,n){if(C)return;C=!0;function r(){function n(e,n){m._removeFile(t,e,n)}c(T,n,function(t,n){if(t)return E(t);e.storageErrors=n,E(e)})}n?r():w.onceZero(r)}function k(e,t){O(new o(e,t))}function A(e){x||(y&&(t.unpipe(y),y.destroy(e)),O(e,!0))}t.on(`error`,function(e){A(e||Error(`Request error`))}),t.on(`aborted`,function(){A(Error(`Request aborted`))}),t.on(`close`,function(){t.readableEnded||A(Error(`Request closed`))});try{y=r({headers:t.headers,limits:p,preservePath:_,defParamCharset:v})}catch(e){return d(e)}b=new s(g,t),y.on(`field`,function(e,n,{nameTruncated:r,valueTruncated:a}){if(e==null)return k(`MISSING_FIELD_NAME`);if(r)return k(`LIMIT_FIELD_KEY`);if(a)return k(`LIMIT_FIELD_VALUE`,e);if(p&&Object.prototype.hasOwnProperty.call(p,`fieldNameSize`)&&e.length>p.fieldNameSize)return k(`LIMIT_FIELD_KEY`);i(t.body,e,n)}),y.on(`file`,function(e,n,{filename:r,encoding:i,mimeType:a}){var o=!1;if(n.on(`error`,function(e){o&&w.decrement(),O(e)}),e==null)return k(`MISSING_FIELD_NAME`);if(!r)return n.resume();if(p&&Object.prototype.hasOwnProperty.call(p,`fieldNameSize`)&&e.length>p.fieldNameSize)return k(`LIMIT_FIELD_KEY`);var s={fieldname:e,originalname:r,encoding:i,mimetype:a},c=b.insertPlaceholder(s);h(t,s,function(r,i){if(C)return b.removePlaceholder(c),n.resume();if(r)return b.removePlaceholder(c),O(r);if(!i)return b.removePlaceholder(c),n.resume();var a=!1;o=!0,w.increment(),Object.defineProperty(s,`stream`,{configurable:!0,enumerable:!1,value:n}),n.on(`limit`,function(){a=!0,k(`LIMIT_FILE_SIZE`,e)}),m._handleFile(t,s,function(e,t){if(a)return b.removePlaceholder(c),T.push({...s,...t}),w.decrement();if(e)return b.removePlaceholder(c),w.decrement(),O(e);var n={...s,...t};b.replacePlaceholder(c,n),T.push(n),w.decrement(),D()})})}),y.on(`error`,function(e){O(e)}),y.on(`partsLimit`,function(){k(`LIMIT_PART_COUNT`)}),y.on(`filesLimit`,function(){k(`LIMIT_FILE_COUNT`)}),y.on(`fieldsLimit`,function(){k(`LIMIT_FIELD_COUNT`)}),y.on(`close`,function(){S=!0,D()}),t.pipe(y)}}t.exports=u})),Iw=s(((e,t)=>{var n=require(`fs`),r=require(`os`),i=require(`path`),a=require(`crypto`);function o(e,t,n){a.randomBytes(16,function(e,t){n(e,e?void 0:t.toString(`hex`))})}function s(e,t,n){n(null,r.tmpdir())}function c(e){this.getFilename=e.filename||o,typeof e.destination==`string`?(n.mkdirSync(e.destination,{recursive:!0}),this.getDestination=function(t,n,r){r(null,e.destination)}):this.getDestination=e.destination||s}c.prototype._handleFile=function(e,t,r){var a=this;a.getDestination(e,t,function(o,s){if(o)return r(o);a.getFilename(e,t,function(e,a){if(e)return r(e);var o=i.join(s,a),c=n.createWriteStream(o);t.stream.pipe(c),c.on(`error`,r),c.on(`finish`,function(){r(null,{destination:s,filename:a,path:o,size:c.bytesWritten})})})})},c.prototype._removeFile=function(e,t,r){var i=t.path;delete t.destination,delete t.filename,delete t.path,n.unlink(i,r)},t.exports=function(e){return new c(e)}})),Lw=s(((e,t)=>{t.exports=require(`events`).EventEmitter})),Rw=s(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(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,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=require(`buffer`).Buffer,d=require(`util`).inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),zw=s(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(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?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){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)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Bw=s(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),Vw=s(((e,t)=>{var n=Bw().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),Hw=s(((e,t)=>{typeof Object.create==`function`?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){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),Uw=s(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),Ww=s(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){se(t,e)}}var r;T.WritableState=C;var i={deprecate:Uw()},a=Lw(),o=require(`buffer`).Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=zw(),d=Vw().getHighWaterMark,f=Bw().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Hw()(T,a);function S(){}function C(e,t,i){r||=Gw(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=Gw();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&re(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return c}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function j(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(P,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),P(e,t))}function ee(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(ee(n),t)j(e,n,r,t,i);else{var a=N(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&re(e,n),r?process.nextTick(te,e,n,a,i):te(e,n,a,i)}}function te(e,t,n,r){n||ne(e,t),t.pendingcb--,r(),P(e,t)}function ne(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function re(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,A(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}T.prototype._write=function(e,t,n){n(new m(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||oe(this,r,n),this},Object.defineProperty(T.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function N(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ie(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit(`prefinish`),P(e,t)})}function ae(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(ie,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function P(e,t){var n=N(t);if(n&&(ae(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function oe(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?process.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function se(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(e,t){t(e)}})),Gw=s(((e,t)=>{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Zw(),i=Ww();Hw()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),Kw=s(((e,t)=>{var n=require(`buffer`),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),qw=s((e=>{var t=Kw().Buffer,n=t.isEncoding||function(e){switch(e=``+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 r(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}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)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||``},a.prototype.end=d,a.prototype.text=u,a.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};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?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 h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Jw=s(((e,t)=>{var n=Bw().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Yw=s(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=Jw(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),Xw=s(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Zw=s(((e,t)=>{t.exports=E;var n;E.ReadableState=T,require(`events`).EventEmitter;var r=function(e,t){return e.listeners(t).length},i=Lw(),a=require(`buffer`).Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=require(`util`),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=Rw(),f=zw(),p=Vw().getHighWaterMark,m=Bw().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Hw()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=Gw(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,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.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=qw().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=Gw(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,M(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):re(e,o)):O(e,o,t,!1);else r||(o.reading=!1,re(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&te(e)),re(e,t)}function k(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){y||=qw().StringDecoder;var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function j(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ee(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?ue(this):te(this),null;if(e=ee(e,t),e===0&&t.ended)return t.length===0&&ue(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=ee(n,t)));var i=e>0?le(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ue(this)),i!==null&&this.emit(`data`,i),i};function M(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?te(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ne(e)))}}function te(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(ne,e))}function ne(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ce(e)}function re(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}E.prototype._read=function(e){S(this,new _(`_read()`))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?s:g;i.endEmitted?process.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=ie(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&fe(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function ie(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,ce(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=fe(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?te(this):r.reading||process.nextTick(P,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(ae,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(ae,this),t};function ae(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function P(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,oe(this,e)),e.paused=!1,this};function oe(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(se,e,t))}function se(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),ce(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function ce(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(E.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=Yw()),b(this)}),Object.defineProperty(E.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=le,Object.defineProperty(E.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}});function le(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function ue(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(de,t,e))}function de(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=Xw()),x(E,e,t)});function fe(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),Qw=s(((e,t)=>{t.exports=l;var n=Bw().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Gw();Hw()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),$w=s(((e,t)=>{t.exports=r;var n=Qw();Hw()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),eT=s(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Bw().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=Jw()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a(`streams`);var i,o=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){i||=e,e&&o.forEach(u),!a&&(o.forEach(u),r(i))})});return t.reduce(d)}t.exports=p})),tT=s(((e,t)=>{e=t.exports=Zw(),e.Stream=e,e.Readable=e,e.Writable=Ww(),e.Duplex=Gw(),e.Transform=Qw(),e.PassThrough=$w(),e.finished=Jw(),e.pipeline=eT()})),nT=s(((e,t)=>{var n=Object.prototype.toString,r=typeof Buffer<`u`&&typeof Buffer.alloc==`function`&&typeof Buffer.allocUnsafe==`function`&&typeof Buffer.from==`function`;function i(e){return n.call(e).slice(8,-1)===`ArrayBuffer`}function a(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw RangeError(`'offset' is out of bounds`);if(n===void 0)n=i;else if(n>>>=0,n>i)throw RangeError(`'length' is out of bounds`);return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function o(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!Buffer.isEncoding(t))throw TypeError(`"encoding" must be a valid string encoding`);return r?Buffer.from(e,t):new Buffer(e,t)}function s(e,t,n){if(typeof e==`number`)throw TypeError(`"value" argument must not be a number`);return i(e)?a(e,t,n):typeof e==`string`?o(e,t):r?Buffer.from(e):new Buffer(e)}t.exports=s})),rT=s((e=>{var t=void 0,n=1e5,r=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,``)},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return typeof e==`function`},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),i=Math.LN2,a=Math.abs,o=Math.floor,s=Math.log,c=Math.min,l=Math.pow,u=Math.round;function d(e){if(p&&f){var t=p(e),n;for(n=0;n<t.length;n+=1)f(e,t[n],{value:e[t[n]],writable:!1,enumerable:!1,configurable:!1})}}var f=Object.defineProperty&&(function(){try{return Object.defineProperty({},`x`,{}),!0}catch{return!1}})()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw TypeError(`Object.defineProperty called on non-object`);return r.HasProperty(n,`get`)&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),r.HasProperty(n,`set`)&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),r.HasProperty(n,`value`)&&(e[t]=n.value),e},p=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw TypeError(`Object.getOwnPropertyNames called on non-object`);var t=[],n;for(n in e)r.HasOwnProperty(e,n)&&t.push(n);return t};function m(e){if(!f)return;if(e.length>n)throw RangeError(`Array too large for polyfill`);function t(t){f(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}var r;for(r=0;r<e.length;r+=1)t(r)}function h(e,t){var n=32-t;return e<<n>>n}function g(e,t){var n=32-t;return e<<n>>>n}function _(e){return[e&255]}function v(e){return h(e[0],8)}function y(e){return[e&255]}function b(e){return g(e[0],8)}function x(e){return e=u(Number(e)),[e<0?0:e>255?255:e&255]}function S(e){return[e>>8&255,e&255]}function C(e){return h(e[0]<<8|e[1],16)}function w(e){return[e>>8&255,e&255]}function T(e){return g(e[0]<<8|e[1],16)}function E(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function D(e){return h(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function O(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function k(e){return g(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function A(e,t,n){var r=(1<<t-1)-1,u,d,f,p,m,h,g;function _(e){var t=o(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e===e?e===1/0||e===-1/0?(d=(1<<t)-1,f=0,u=e<0?1:0):e===0?(d=0,f=0,u=1/e==-1/0?1:0):(u=e<0,e=a(e),e>=l(2,1-r)?(d=c(o(s(e)/i),1023),f=_(e/l(2,d)*l(2,n)),f/l(2,n)>=2&&(d+=1,f=1),d>r?(d=(1<<t)-1,f=0):(d+=r,f-=l(2,n))):(d=0,f=_(e/l(2,1-r-n)))):(d=(1<<t)-1,f=l(2,n-1),u=0),m=[],p=n;p;--p)m.push(f%2?1:0),f=o(f/2);for(p=t;p;--p)m.push(d%2?1:0),d=o(d/2);for(m.push(u?1:0),m.reverse(),h=m.join(``),g=[];h.length;)g.push(parseInt(h.substring(0,8),2)),h=h.substring(8);return g}function j(e,t,n){var r=[],i,a,o,s,c,u,d,f;for(i=e.length;i;--i)for(o=e[i-1],a=8;a;--a)r.push(o%2?1:0),o>>=1;return r.reverse(),s=r.join(``),c=(1<<t-1)-1,u=parseInt(s.substring(0,1),2)?-1:1,d=parseInt(s.substring(1,1+t),2),f=parseInt(s.substring(1+t),2),d===(1<<t)-1?f===0?u*(1/0):NaN:d>0?u*l(2,d-c)*(1+f/l(2,n)):f===0?u<0?-0:0:u*l(2,-(c-1))*(f/l(2,n))}function ee(e){return j(e,11,52)}function M(e){return A(e,11,52)}function te(e){return j(e,8,23)}function ne(e){return A(e,8,23)}(function(){var n=function(e){if(e=r.ToInt32(e),e<0)throw RangeError(`ArrayBuffer size is not a small enough positive integer`);this.byteLength=e,this._bytes=[],this._bytes.length=e;var t;for(t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};e.ArrayBuffer=e.ArrayBuffer||n;var i=function(){};function a(e,a,o){var s=function(e,t,i){var a,o,c,l;if(!arguments.length||typeof arguments[0]==`number`){if(this.length=r.ToInt32(arguments[0]),i<0)throw RangeError(`ArrayBufferView size is not a small enough positive integer`);this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]==`object`&&arguments[0].constructor===s)for(a=arguments[0],this.length=a.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,a._getter(c));else if(typeof arguments[0]==`object`&&!(arguments[0]instanceof n||r.Class(arguments[0])===`ArrayBuffer`))for(o=arguments[0],this.length=r.ToUint32(o.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)l=o[c],this._setter(c,Number(l));else if(typeof arguments[0]==`object`&&(arguments[0]instanceof n||r.Class(arguments[0])===`ArrayBuffer`)){if(this.buffer=e,this.byteOffset=r.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(this.byteOffset%this.BYTES_PER_ELEMENT)throw RangeError(`ArrayBuffer length minus the byteOffset is not a multiple of the element size.`);if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw RangeError(`length of buffer minus byteOffset not a multiple of the element size`);this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(i),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`)}else throw TypeError(`Unexpected argument type(s)`);this.constructor=s,d(this),m(this)};return s.prototype=new i,s.prototype.BYTES_PER_ELEMENT=e,s.prototype._pack=a,s.prototype._unpack=o,s.BYTES_PER_ELEMENT=e,s.prototype._getter=function(e){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);if(e=r.ToUint32(e),e>=this.length)return t;var n=[],i,a;for(i=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,a+=1)n.push(this.buffer._bytes[a]);return this._unpack(n)},s.prototype.get=s.prototype._getter,s.prototype._setter=function(e,n){if(arguments.length<2)throw SyntaxError(`Not enough arguments`);if(e=r.ToUint32(e),e>=this.length)return t;var i=this._pack(n),a,o;for(a=0,o=this.byteOffset+e*this.BYTES_PER_ELEMENT;a<this.BYTES_PER_ELEMENT;a+=1,o+=1)this.buffer._bytes[o]=i[a]},s.prototype.set=function(e,t){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);var n,i,a,o,s,c,l,u,d,f;if(typeof arguments[0]==`object`&&arguments[0].constructor===this.constructor){if(n=arguments[0],a=r.ToUint32(arguments[1]),a+n.length>this.length)throw RangeError(`Offset plus length of array is out of range`);if(u=this.byteOffset+a*this.BYTES_PER_ELEMENT,d=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(f=[],s=0,c=n.byteOffset;s<d;s+=1,c+=1)f[s]=n.buffer._bytes[c];for(s=0,l=u;s<d;s+=1,l+=1)this.buffer._bytes[l]=f[s]}else for(s=0,c=n.byteOffset,l=u;s<d;s+=1,c+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[c]}else if(typeof arguments[0]==`object`&&arguments[0].length!==void 0){if(i=arguments[0],o=r.ToUint32(i.length),a=r.ToUint32(arguments[1]),a+o>this.length)throw RangeError(`Offset plus length of array is out of range`);for(s=0;s<o;s+=1)c=i[s],this._setter(a+s,Number(c))}else throw TypeError(`Unexpected argument type(s)`)},s.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=r.ToInt32(e),t=r.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length),t=n(t,0,this.length);var i=t-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},s}var o=a(1,_,v),s=a(1,y,b),c=a(1,x,b),l=a(2,S,C),u=a(2,w,T),f=a(4,E,D),p=a(4,O,k),h=a(4,ne,te),g=a(8,M,ee);e.Int8Array=e.Int8Array||o,e.Uint8Array=e.Uint8Array||s,e.Uint8ClampedArray=e.Uint8ClampedArray||c,e.Int16Array=e.Int16Array||l,e.Uint16Array=e.Uint16Array||u,e.Int32Array=e.Int32Array||f,e.Uint32Array=e.Uint32Array||p,e.Float32Array=e.Float32Array||h,e.Float64Array=e.Float64Array||g})(),(function(){function t(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}var n=function(){var n=new e.Uint16Array([4660]);return t(new e.Uint8Array(n.buffer),0)===18}(),i=function(t,n,i){if(arguments.length===0)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||r.Class(t)===`ArrayBuffer`))throw TypeError(`TypeError`);if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=r.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`);d(this)};function a(i){return function(a,o){if(a=r.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);a+=this.byteOffset;var s=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),c=[],l;for(l=0;l<i.BYTES_PER_ELEMENT;l+=1)c.push(t(s,l));return!!o==!!n&&c.reverse(),t(new i(new e.Uint8Array(c).buffer),0)}}i.prototype.getUint8=a(e.Uint8Array),i.prototype.getInt8=a(e.Int8Array),i.prototype.getUint16=a(e.Uint16Array),i.prototype.getInt16=a(e.Int16Array),i.prototype.getUint32=a(e.Uint32Array),i.prototype.getInt32=a(e.Int32Array),i.prototype.getFloat32=a(e.Float32Array),i.prototype.getFloat64=a(e.Float64Array);function o(i){return function(a,o,s){if(a=r.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);var c=new i([o]),l=new e.Uint8Array(c.buffer),u=[],d,f;for(d=0;d<i.BYTES_PER_ELEMENT;d+=1)u.push(t(l,d));!!s==!!n&&u.reverse(),f=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),f.set(u)}}i.prototype.setUint8=o(e.Uint8Array),i.prototype.setInt8=o(e.Int8Array),i.prototype.setUint16=o(e.Uint16Array),i.prototype.setInt16=o(e.Int16Array),i.prototype.setUint32=o(e.Uint32Array),i.prototype.setInt32=o(e.Int32Array),i.prototype.setFloat32=o(e.Float32Array),i.prototype.setFloat64=o(e.Float64Array),e.DataView=e.DataView||i})()})),iT=s(((e,t)=>{var n=tT().Writable,r=Hw(),i=nT();if(typeof Uint8Array>`u`)var a=rT().Uint8Array;else var a=Uint8Array;function o(e,t){if(!(this instanceof o))return new o(e,t);typeof e==`function`&&(t=e,e={}),e||={};var r=e.encoding,i=!1;r?(r=String(r).toLowerCase(),(r===`u8`||r===`uint8`)&&(r=`uint8array`)):i=!0,n.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=i,t&&this.on(`finish`,function(){t(this.getBody())}),this.body=[]}t.exports=o,r(o,n),o.prototype._write=function(e,t,n){this.body.push(e),n()},o.prototype.inferEncoding=function(e){var t=e===void 0?this.body[0]:e;return Buffer.isBuffer(t)?`buffer`:typeof Uint8Array<`u`&&t instanceof Uint8Array?`uint8array`:Array.isArray(t)?`array`:typeof t==`string`?`string`:Object.prototype.toString.call(t)===`[object Object]`?`object`:`buffer`},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding===`array`?d(this.body):this.encoding===`string`?l(this.body):this.encoding===`buffer`?u(this.body):this.encoding===`uint8array`?f(this.body):this.body)},Array.isArray;function s(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function c(e){return typeof e==`string`||s(e)||e&&typeof e.subarray==`function`}function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];typeof r==`string`||Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.isBuffer(e[0])?(t=Buffer.concat(t),t=t.toString(`utf8`)):t=t.join(``),t}function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.concat(t)}function d(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}function f(e){for(var t=0,n=0;n<e.length;n++)typeof e[n]==`string`&&(e[n]=i(e[n])),t+=e[n].length;for(var r=new a(t),n=0,o=0;n<e.length;n++)for(var s=e[n],c=0;c<s.length;c++)r[o++]=s[c];return r}})),aT=s(((e,t)=>{var n=iT();function r(e){}r.prototype._handleFile=function(e,t,r){t.stream.pipe(n({encoding:`buffer`},function(e){r(null,{buffer:e,size:e.length})}))},r.prototype._removeFile=function(e,t,n){delete t.buffer,n(null)},t.exports=function(e){return new r(e)}})),oT=s(((e,t)=>{var n=Fw(),r=Iw(),i=aT(),a=Mw();function o(e,t,n){n(null,!0)}function s(e){e.storage?this.storage=e.storage:e.dest?this.storage=r({destination:e.dest}):this.storage=i(),this.limits=e.limits,this.preservePath=e.preservePath,this.defParamCharset=e.defParamCharset||`latin1`,this.fileFilter=e.fileFilter||o}s.prototype._makeMiddleware=function(e,t){function r(){var n=this.fileFilter,r=Object.create(null);e.forEach(function(e){typeof e.maxCount==`number`?r[e.name]=e.maxCount:r[e.name]=1/0});function i(e,t,i){if((r[t.fieldname]||0)<=0)return i(new a(`LIMIT_UNEXPECTED_FILE`,t.fieldname));--r[t.fieldname],n(e,t,i)}return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:i,fileStrategy:t}}return n(r.bind(this))},s.prototype.single=function(e){return this._makeMiddleware([{name:e,maxCount:1}],`VALUE`)},s.prototype.array=function(e,t){return this._makeMiddleware([{name:e,maxCount:t}],`ARRAY`)},s.prototype.fields=function(e){return this._makeMiddleware(e,`OBJECT`)},s.prototype.none=function(){return this._makeMiddleware([],`NONE`)},s.prototype.any=function(){function e(){return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:`ARRAY`}}return n(e.bind(this))};function c(e){if(e===void 0)return new s({});if(typeof e==`object`&&e)return new s(e);throw TypeError(`Expected object for argument options`)}t.exports=c,t.exports.diskStorage=r,t.exports.memoryStorage=i,t.exports.MulterError=a})),sT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MULTER_MODULE_OPTIONS=void 0,e.MULTER_MODULE_OPTIONS=`MULTER_MODULE_OPTIONS`})),cT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.busboyExceptions=e.multerExceptions=void 0,e.multerExceptions={LIMIT_PART_COUNT:`Too many parts`,LIMIT_FILE_SIZE:`File too large`,LIMIT_FILE_COUNT:`Too many files`,LIMIT_FIELD_KEY:`Field name too long`,LIMIT_FIELD_VALUE:`Field value too long`,LIMIT_FIELD_COUNT:`Too many fields`,LIMIT_UNEXPECTED_FILE:`Unexpected field`,MISSING_FIELD_NAME:`Field name missing`},e.busboyExceptions={MULTIPART_BOUNDARY_NOT_FOUND:`Multipart: Boundary not found`,MULTIPART_MALFORMED_PART_HEADER:`Malformed part header`,MULTIPART_UNEXPECTED_END_OF_FORM:`Unexpected end of form`,MULTIPART_UNEXPECTED_END_OF_FILE:`Unexpected end of file`}})),lT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.transformException=r;var t=U(),n=cT();function r(e){if(!e||e instanceof t.HttpException)return e;switch(e.message){case n.multerExceptions.LIMIT_FILE_SIZE:return new t.PayloadTooLargeException(e.message);case n.multerExceptions.LIMIT_FILE_COUNT:case n.multerExceptions.LIMIT_FIELD_KEY:case n.multerExceptions.LIMIT_FIELD_VALUE:case n.multerExceptions.LIMIT_FIELD_COUNT:case n.multerExceptions.LIMIT_UNEXPECTED_FILE:case n.multerExceptions.LIMIT_PART_COUNT:case n.multerExceptions.MISSING_FIELD_NAME:return e.field?new t.BadRequestException(`${e.message} - ${e.field}`):new t.BadRequestException(e.message);case n.busboyExceptions.MULTIPART_BOUNDARY_NOT_FOUND:return new t.BadRequestException(e.message);case n.busboyExceptions.MULTIPART_MALFORMED_PART_HEADER:case n.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FORM:case n.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FILE:return new t.BadRequestException(`Multipart: ${e.message}`)}return e}})),uT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnyFilesInterceptor=o;var t=k(),n=U(),r=oT(),i=sT(),a=lT();function o(e){let o=class{constructor(t={}){this.multer=r({...t,...e})}async intercept(e,t){let n=e.switchToHttp();return await new Promise((e,t)=>this.multer.any()(n.getRequest(),n.getResponse(),n=>{if(n)return t((0,a.transformException)(n));e()})),t.handle()}};return o=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],o),(0,n.mixin)(o)}})),dT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileFieldsInterceptor=o;var t=k(),n=U(),r=oT(),i=sT(),a=lT();function o(e,o){let s=class{constructor(e={}){this.multer=r({...e,...o})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.fields(e)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return s=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],s),(0,n.mixin)(s)}})),fT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileInterceptor=o;var t=k(),n=U(),r=oT(),i=sT(),a=lT();function o(e,o){let s=class{constructor(e={}){this.multer=r({...e,...o})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.single(e)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return s=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],s),(0,n.mixin)(s)}})),pT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FilesInterceptor=o;var t=k(),n=U(),r=oT(),i=sT(),a=lT();function o(e,o,s){let c=class{constructor(e={}){this.multer=r({...e,...s})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.array(e,o)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return c=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],c),(0,n.mixin)(c)}})),mT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoFilesInterceptor=o;var t=k(),n=U(),r=oT(),i=sT(),a=lT();function o(e){let o=class{constructor(t={}){this.multer=r({...t,...e})}async intercept(e,t){let n=e.switchToHttp();return await new Promise((e,t)=>this.multer.none()(n.getRequest(),n.getResponse(),n=>{if(n)return t((0,a.transformException)(n));e()})),t.handle()}};return o=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],o),(0,n.mixin)(o)}})),hT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(uT(),e),t.__exportStar(dT(),e),t.__exportStar(fT(),e),t.__exportStar(pT(),e),t.__exportStar(mT(),e)})),gT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),_T=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(gT(),e)})),vT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MULTER_MODULE_ID=void 0,e.MULTER_MODULE_ID=`MULTER_MODULE_ID`})),yT=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.MulterModule=void 0;var n=k(),r=U(),i=mn(),a=sT(),o=vT(),s=t=class{static register(e={}){return{module:t,providers:[{provide:a.MULTER_MODULE_OPTIONS,useFactory:()=>e},{provide:o.MULTER_MODULE_ID,useValue:(0,i.randomStringGenerator)()}],exports:[a.MULTER_MODULE_OPTIONS]}}static registerAsync(e){return{module:t,imports:e.imports,providers:[...this.createAsyncProviders(e),{provide:o.MULTER_MODULE_ID,useValue:(0,i.randomStringGenerator)()}],exports:[a.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(e){return e.useExisting||e.useFactory?[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(e){return e.useFactory?{provide:a.MULTER_MODULE_OPTIONS,useFactory:e.useFactory,inject:e.inject||[]}:{provide:a.MULTER_MODULE_OPTIONS,useFactory:async e=>e.createMulterOptions(),inject:[e.useExisting||e.useClass]}}};e.MulterModule=s,e.MulterModule=s=t=n.__decorate([(0,r.Module)({})],s)})),bT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(hT(),e),t.__exportStar(_T(),e),t.__exportStar(yT(),e)})),xT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(fw(),e),t.__exportStar(hw(),e),t.__exportStar(bT(),e)})),ST=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestFactory=e.NestFactoryStatic=void 0;var t=ot(),n=ut(),r=Un(),i=M(),a=Ax(),o=jx(),s=YC(),c=XC(),l=ZC(),u=tC(),d=zS(),f=QC(),p=iC(),m=$C(),h=FS(),g=Mx(),_=qC(),v=PC(),y=ow(),b=class{constructor(){this.logger=new n.Logger(`NestFactory`,{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}async create(e,t,n){let[r,i]=this.isHttpServer(t)?[t,n]:[this.createHttpAdapter(),t],o=new a.ApplicationConfig,s=new u.NestContainer(o,i),c=this.createGraphInspector(i,s);this.setAbortOnError(t,n),this.registerLoggerConfiguration(i),await this.initialize(e,s,c,o,i,r);let l=new _.NestApplication(s,r,o,c,i),d=this.createNestInstance(l);return this.createAdapterProxy(d,r)}async createMicroservice(e,t){let{NestMicroservice:n}=(0,r.loadPackage)(`@nestjs/microservices`,`NestFactory`,()=>KC()),i=new a.ApplicationConfig,o=new u.NestContainer(i,t),s=this.createGraphInspector(t,o);return this.setAbortOnError(t),this.registerLoggerConfiguration(t),await this.initialize(e,o,s,i,t),this.createNestInstance(new n(o,t,s,i))}async createApplicationContext(e,t){let n=new a.ApplicationConfig,r=new u.NestContainer(n,t),i=this.createGraphInspector(t,r);this.setAbortOnError(t),this.registerLoggerConfiguration(t),await this.initialize(e,r,i,n,t);let o=r.getModules().values().next().value,s=this.createNestInstance(new v.NestApplicationContext(r,t,o));return this.autoFlushLogs&&s.flushLogsOnOverride(),s.init()}createNestInstance(e){return this.createProxy(e)}async initialize(e,t,n,r=new a.ApplicationConfig,i={},c=null){h.UuidFactory.mode=i.snapshot?h.UuidFactoryMode.Deterministic:h.UuidFactoryMode.Random;let u=new d.Injector({preview:i.preview,instanceDecorator:i.instrument?.instanceDecorator}),p=new f.InstanceLoader(t,u,n),m=new g.MetadataScanner,_=new y.DependenciesScanner(t,m,n,r);t.setHttpAdapter(c);let v=this.abortOnError===!1?l.rethrow:void 0;await c?.init?.();try{this.logger.log(o.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await _.scan(e),await p.createInstancesOfDependencies(),_.applyApplicationProviders()},v,this.autoFlushLogs)}catch(e){this.handleInitializationError(e)}}handleInitializationError(e){this.abortOnError&&process.abort(),(0,l.rethrow)(e)}createProxy(e){let t=this.createExceptionProxy();return new Proxy(e,{get:t,set:t})}createExceptionProxy(){return(e,t)=>{if(t in e)return(0,i.isFunction)(e[t])?this.createExceptionZone(e,t):e[t]}}createExceptionZone(e,t){let n=this.abortOnError===!1?l.rethrow:void 0;return(...r)=>{let i;return s.ExceptionsZone.run(()=>{i=e[t](...r)},n,this.autoFlushLogs),i}}registerLoggerConfiguration(e){if(!e)return;let{logger:r,bufferLogs:a,autoFlushLogs:o,forceConsole:s}=e;if(r!==!0&&!(0,i.isNil)(r))n.Logger.overrideLogger(r);else if(s){let e=new t.ConsoleLogger({forceConsole:!0});n.Logger.overrideLogger(e)}a&&n.Logger.attachBuffer(),this.autoFlushLogs=o??!0}createHttpAdapter(e){let{ExpressAdapter:t}=(0,c.loadAdapter)(`@nestjs/platform-express`,`HTTP`,()=>xT());return new t(e)}isHttpServer(e){return!!(e&&e.patch)}setAbortOnError(e,t){this.abortOnError=this.isHttpServer(e)?!(t&&t.abortOnError===!1):!(e&&e.abortOnError===!1)}createAdapterProxy(e,t){let n=new Proxy(e,{get:(e,r)=>{let a=e=>e instanceof Promise?e.then(a):e instanceof _.NestApplication?n:e;return!(r in e)&&r in t?(...e)=>a(this.createExceptionZone(t,r)(...e)):(0,i.isFunction)(e[r])?(...t)=>a(e[r](...t)):e[r]}});return n}createGraphInspector(e,t){return e?.snapshot?new p.GraphInspector(t):m.NoopGraphInspector}};e.NestFactoryStatic=b,e.NestFactory=new b})),CT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignToObject=t;function t(e,t){return Object.defineProperties(e,Object.keys(t).reduce((e,n)=>(e[n]=Object.getOwnPropertyDescriptor(t,n),e),Object.create(null))),e}})),wT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REPL_INITIALIZED_MESSAGE=void 0,e.REPL_INITIALIZED_MESSAGE=`REPL initialized`})),TT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplFunction=void 0;var t=it();e.ReplFunction=class{constructor(e){this.ctx=e,this.logger=e.logger}makeHelpMessage(){let{description:e,name:n,signature:r}=this.fnDefinition,i=`${n}${r}`;return`${t.clc.yellow(e)}\n${t.clc.magentaBright(`Interface:`)} ${t.clc.bold(i)}\n`}}})),ET=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HelpReplFn=void 0;var t=L(),n=it(),r=TT(),i=class e extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`help`,signature:`() => void`,description:`Display all available REPL native functions.`}}action(){let r=(0,t.iterate)(this.ctx.nativeFunctions).map(([,e])=>e.fnDefinition).toArray().sort((e,t)=>e.name<t.name?-1:1);this.ctx.writeToStdout(`You can call ${n.clc.bold(`.help`)} on any function listed below (e.g.: ${n.clc.bold(`help.help`)}):\n\n`+r.map(e.buildHelpMessage).join(`
|
|
136
|
+
`,this.push(a),n()}writeMessage(e,t){e.id||=(this.lastEventId++,this.lastEventId.toString()),this.write(e,`utf-8`)?process.nextTick(t):this.once(`drain`,t)}}})),LC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterResponseController=void 0;var t=H(),n=A(),r=Wc(),i=So(),a=IC();e.RouterResponseController=class e{constructor(n){this.applicationRef=n,this.logger=new t.Logger(e.name)}async apply(e,t,n){return this.applicationRef.reply(t,e,n)}async redirect(e,n,r){let i=await this.transformToResult(e),a=i&&i.statusCode?i.statusCode:r.statusCode?r.statusCode:t.HttpStatus.FOUND,o=i&&i.url?i.url:r.url;this.applicationRef.redirect(n,a,o)}async render(e,t,n){let r=await this.transformToResult(e);return this.applicationRef.render(t,n,r)}async transformToResult(e){return(0,r.isObservable)(e)?(0,r.lastValueFrom)(e):e}getStatusByMethod(e){switch(e){case t.RequestMethod.POST:return t.HttpStatus.CREATED;default:return t.HttpStatus.OK}}setHeaders(e,t){t.forEach(({name:t,value:n})=>this.applicationRef.setHeader(e,t,typeof n==`function`?n():n))}setStatus(e,t){this.applicationRef.status(e,t)}async sse(e,t,o,s){if(t.writableEnded)return;let c=await Promise.resolve(e);this.assertObservable(c);let l=new a.SseStream(o),u=t.statusCode,d=u===void 0?s:{...s,statusCode:u};l.pipe(t,d);let f=c.pipe((0,i.map)(e=>(0,n.isObject)(e)?e:{data:e}),(0,i.concatMap)(e=>new Promise(t=>l.writeMessage(e,()=>t()))),(0,i.catchError)(e=>{let t=e instanceof Error?e.message:e;return l.writeMessage({type:`error`,data:t},e=>{e&&this.logger.error(e)}),r.EMPTY})).subscribe({complete:()=>{t.end()}});o.on(`close`,()=>{f.unsubscribe(),l.writableEnded||l.end()})}assertObservable(e){if(!(0,r.isObservable)(e))throw ReferenceError(`You must return an Observable stream to use Server-Sent Events (SSE).`)}}})),RC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExecutionContext=void 0;var t=H(),n=O(),r=ye(),i=A(),a=eS(),o=cS(),s=uS(),c=Bx(),l=LC();e.RouterExecutionContext=class{constructor(e,t,n,r,i,a,c,u){this.paramsFactory=e,this.pipesContextCreator=t,this.pipesConsumer=n,this.guardsContextCreator=r,this.guardsConsumer=i,this.interceptorsContextCreator=a,this.interceptorsConsumer=c,this.applicationRef=u,this.handlerMetadataStorage=new s.HandlerMetadataStorage,this.contextUtils=new o.ContextUtils,this.responseController=new l.RouterResponseController(u)}create(e,t,n,r,i,a=c.STATIC_CONTEXT,o){let s=`http`,{argsLength:l,fnHandleResponse:u,paramtypes:d,getParamsMetadata:f,httpStatusCode:p,responseHeaders:m,hasCustomHeaders:h}=this.getMetadata(e,t,n,r,i,s),g=this.contextUtils.mergeParamsMetatypes(f(r,a,o),d),_=this.pipesContextCreator.create(e,t,r,a,o),v=this.guardsContextCreator.create(e,t,r,a,o),y=this.interceptorsContextCreator.create(e,t,r,a,o),b=this.createGuardsFn(v,e,t,s),x=this.createPipesFn(_,g),S=(n,r,i,a)=>async()=>(x&&await x(n,r,i,a),t.apply(e,n));return async(n,r,i)=>{let a=this.contextUtils.createNullArray(l);b&&await b([n,r,i]),this.responseController.setStatus(r,p),h&&this.responseController.setHeaders(r,m),await u(await this.interceptorsConsumer.intercept(y,[n,r,i],e,t,S(a,n,r,i),s),r,n)}}getMetadata(e,t,r,a,o,s){let l=this.handlerMetadataStorage.get(e,r);if(l)return l;let u=this.contextUtils.reflectCallbackMetadata(e,r,n.ROUTE_ARGS_METADATA)||{},d=Object.keys(u),f=this.contextUtils.getArgumentsLength(d,u),p=this.contextUtils.reflectCallbackParamtypes(e,r),m=this.contextUtils.getContextFactory(s,e,t),h=(e,t=c.STATIC_CONTEXT,n)=>this.exchangeKeysForValues(d,u,e,t,n,m),g=h(a),_=this.isResponseHandled(e,r,g),v=this.reflectRedirect(t),y=this.createHandleResponseFn(t,_,v),b=this.reflectHttpStatusCode(t)||this.responseController.getStatusByMethod(o),x=this.reflectResponseHeaders(t),S={argsLength:f,fnHandleResponse:y,paramtypes:p,getParamsMetadata:h,httpStatusCode:b,hasCustomHeaders:!(0,i.isEmpty)(x),responseHeaders:x};return this.handlerMetadataStorage.set(e,r,S),S}reflectRedirect(e){return Reflect.getMetadata(n.REDIRECT_METADATA,e)}reflectHttpStatusCode(e){return Reflect.getMetadata(n.HTTP_CODE_METADATA,e)}reflectRenderTemplate(e){return Reflect.getMetadata(n.RENDER_METADATA,e)}reflectResponseHeaders(e){return Reflect.getMetadata(n.HEADERS_METADATA,e)||[]}reflectSse(e){return Reflect.getMetadata(n.SSE_METADATA,e)}exchangeKeysForValues(e,t,r,i=c.STATIC_CONTEXT,a,o){return this.pipesContextCreator.setModuleContext(r),e.map(e=>{let{index:r,data:s,pipes:c}=t[e],l=this.pipesContextCreator.createConcreteContext(c,i,a),u=this.contextUtils.mapParamType(e);if(e.includes(n.CUSTOM_ROUTE_ARGS_METADATA)){let{factory:n}=t[e];return{index:r,extractValue:this.contextUtils.getCustomFactory(n,s,o),type:u,data:s,pipes:l}}let d=Number(u);return{index:r,extractValue:(e,t,n)=>this.paramsFactory.exchangeKeyForValue(d,s,{req:e,res:t,next:n}),type:d,data:s,pipes:l}})}async getParamValue(e,{metatype:t,type:n,data:r},a){return(0,i.isEmpty)(a)?e:this.pipesConsumer.apply(e,{metatype:t,type:n,data:r},a)}isPipeable(e){return e===r.RouteParamtypes.BODY||e===r.RouteParamtypes.RAW_BODY||e===r.RouteParamtypes.QUERY||e===r.RouteParamtypes.PARAM||e===r.RouteParamtypes.FILE||e===r.RouteParamtypes.FILES||(0,i.isString)(e)}createGuardsFn(e,n,r,i){return e.length?async o=>{if(!await this.guardsConsumer.tryActivate(e,o,n,r,i))throw new t.ForbiddenException(a.FORBIDDEN_MESSAGE)}:null}createPipesFn(e,t){return t.length?async(n,r,i,a)=>{await Promise.all(t.map(async t=>{let{index:o,extractValue:s,type:c,data:l,metatype:u,pipes:d}=t,f=s(r,i,a);n[o]=this.isPipeable(c)?await this.getParamValue(f,{metatype:u,type:c,data:l},e.concat(d)):f}))}:null}createHandleResponseFn(e,t,n,r){let a=this.reflectRenderTemplate(e);return a?async(e,t)=>await this.responseController.render(e,t,a):n&&(0,i.isString)(n.url)?async(e,t)=>{await this.responseController.redirect(e,t,n)}:this.reflectSse(e)?async(e,t,n)=>{await this.responseController.sse(e,t.raw||t,n.raw||n,{additionalHeaders:t.getHeaders?.()})}:async(e,n)=>(e=await this.responseController.transformToResult(e),!t&&await this.responseController.apply(e,n,r),n)}isResponseHandled(e,t,n){let i=n.some(({type:e})=>e===r.RouteParamtypes.RESPONSE||e===r.RouteParamtypes.NEXT),a=this.contextUtils.reflectPassthrough(e,t);return i&&!a}}})),zC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterExplorer=void 0;var t=O(),n=Me(),r=tt(),i=ct(),a=A(),o=rC(),s=NC(),c=eS(),l=zx(),u=Zx(),d=MC(),f=PC(),p=Bx(),m=rS(),h=sS(),g=bC(),_=Rx(),v=FC(),y=RC();e.RouterExplorer=class e{constructor(t,n,r,a,o,s,l,u){this.container=n,this.injector=r,this.routerProxy=a,this.exceptionsFilter=o,this.routePathFactory=l,this.graphInspector=u,this.routerMethodFactory=new f.RouterMethodFactory,this.logger=new i.Logger(e.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap,this.pathsExplorer=new g.PathsExplorer(t);let d=new v.RouteParamsFactory,p=new h.PipesContextCreator(n,s),_=new h.PipesConsumer,b=new c.GuardsContextCreator(n,s),x=new c.GuardsConsumer,S=new m.InterceptorsContextCreator(n,s),C=new m.InterceptorsConsumer;this.executionContextCreator=new y.RouterExecutionContext(d,p,_,b,x,S,C,n.getHttpAdapterRef())}explore(e,t,n,r,i){let{instance:a}=e,o=this.pathsExplorer.scanForPaths(a);this.applyPathsToRouterProxy(n,o,e,t,i,r)}extractRouterPath(e){let n=Reflect.getMetadata(t.PATH_METADATA,e);if((0,a.isUndefined)(n))throw new s.UnknownRequestMappingException(e);return Array.isArray(n)?n.map(e=>(0,a.addLeadingSlash)(e)):[(0,a.addLeadingSlash)(n)]}applyPathsToRouterProxy(e,t,n,r,i,a){(t||[]).forEach(t=>{let{version:o}=t;i.methodVersion=o,this.applyCallbackToRouter(e,t,n,r,i,a)})}applyCallbackToRouter(e,t,r,i,a,o){let{path:s,requestMethod:c,targetCallback:l,methodName:u}=t,{instance:f}=r,p=this.routerMethodFactory.get(e,c).bind(e),m=r.isDependencyTreeStatic()?this.createCallbackProxy(f,l,u,i,c):this.createRequestScopedHandler(r,c,this.container.getModuleByKey(i),i,u),h=(a.methodVersion||a.controllerVersion)&&a.versioningOptions,g=this.applyHostFilter(o,m);s.forEach(t=>{h&&a.versioningOptions.type!==n.VersioningType.URI&&(g=this.applyVersionFilter(e,a,g)),a.methodPath=t,this.routePathFactory.create(a,c).forEach(t=>{let i={type:`http-endpoint`,methodName:u,className:r.name,classNodeId:r.id,metadata:{key:t,path:t,requestMethod:n.RequestMethod[c],methodVersion:a.methodVersion,controllerVersion:a.controllerVersion}};this.copyMetadataToCallback(l,g);let o=e.normalizePath?e.normalizePath(t):t,s=this.container.getHttpAdapterRef().getOnRouteTriggered?.();s?p(o,(...e)=>(s(c,t),g(...e))):p(o,g),this.graphInspector.insertEntrypointDefinition(i,r.id)}),this.routePathFactory.create({...a,versioningOptions:void 0},c).forEach(e=>{if(h){let t=this.routePathFactory.getVersion(a);this.logger.log((0,d.VERSIONED_ROUTE_MAPPED_MESSAGE)(e,c,t))}else this.logger.log((0,d.ROUTE_MAPPED_MESSAGE)(e,c))})})}applyHostFilter(e,t){if(!e)return t;let n=this.container.getHttpAdapterRef(),i=(Array.isArray(e)?e:[e]).map(e=>{if(typeof e==`string`)try{return(0,o.pathToRegexp)(e)}catch(t){throw t instanceof TypeError&&this.logger.error(`Unsupported host "${e}" syntax. In past releases, ?, *, and + were used to denote optional or repeating path parameters. The latest version of "path-to-regexp" now requires the use of named parameters. For example, instead of using a route like /users/* to capture all routes starting with "/users", you should use /users/*path. Please see the migration guide for more information.`),t}return{regexp:e,keys:[]}}),a=Array.isArray(e)?`HTTP adapter does not support filtering on hosts: ["${e.join(`", "`)}"]`:`HTTP adapter does not support filtering on host: "${e}"`;return(e,o,s)=>{e.hosts={};let c=n.getRequestHostname(e)||``;for(let n of i){let r=c.match(n.regexp);if(r){if(n.keys.length>0)n.keys.forEach((t,n)=>e.hosts[t.name]=r[n+1]);else if(n.regexp&&r.groups)for(let t in r.groups)e.hosts[t]=r.groups[t];return t(e,o,s)}}if(!s)throw new r.InternalServerErrorException(a);return s()}}applyVersionFilter(e,t,n){let r=this.routePathFactory.getVersion(t);return e.applyVersionFilter(n,r,t.versioningOptions)}createCallbackProxy(e,t,n,r,i,a=p.STATIC_CONTEXT,o){let s=this.executionContextCreator.create(e,t,n,r,i,a,o),c=this.exceptionsFilter.create(e,t,r,a,o);return this.routerProxy.createProxy(s,c)}createRequestScopedHandler(e,t,n,r,i){let{instance:a}=e,o=n.controllers,s=e.isDependencyTreeDurable();return async(c,l,d)=>{try{let u=this.getContextId(c,s),f=await this.injector.loadPerContext(a,n,o,u);await this.createCallbackProxy(f,f[i],i,r,t,u,e.id)(c,l,d)}catch(e){let t=this.exceptionFiltersCache.get(a[i]);t||(t=this.exceptionsFilter.create(a,a[i],r),this.exceptionFiltersCache.set(a[i],t));let n=new u.ExecutionContextHost([c,l,d]);t.next(e,n)}}}getContextId(e,t){let n=l.ContextIdFactory.getByRequest(e);if(!e[_.REQUEST_CONTEXT_ID]){Object.defineProperty(e,_.REQUEST_CONTEXT_ID,{value:n,enumerable:!1,writable:!1,configurable:!1});let r=t?n.payload:Object.assign(e,n.payload);this.container.registerRequestProvider(r,n)}return n}copyMetadataToCallback(e,t){for(let n of Reflect.getMetadataKeys(e))Reflect.defineMetadata(n,Reflect.getMetadata(n,e),t)}}})),BC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RoutesResolver=void 0;var t=H(),n=O(),r=ct(),i=MC(),a=kx(),o=vC(),s=hC(),c=zC(),l=gC();e.RoutesResolver=class e{constructor(t,n,i,u){this.container=t,this.applicationConfig=n,this.injector=i,this.logger=new r.Logger(e.name,{timestamp:!0}),this.routerProxy=new l.RouterProxy;let d=t.getHttpAdapterRef();this.routerExceptionsFilter=new s.RouterExceptionFilters(t,n,d),this.routePathFactory=new o.RoutePathFactory(this.applicationConfig);let f=new a.MetadataScanner;this.routerExplorer=new c.RouterExplorer(f,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory,u)}resolve(e,t){this.container.getModules().forEach(({controllers:n,metatype:r},i)=>{let a=this.getModulePathMetadata(r);this.registerRouters(n,i,t,a,e)})}registerRouters(e,t,n,r,a){e.forEach(e=>{let{metatype:o}=e,s=this.getHostMetadata(o),c=this.routerExplorer.extractRouterPath(o),l=this.getVersionMetadata(o),u=o.name;c.forEach(o=>{let c=this.routePathFactory.create({ctrlPath:o,modulePath:r,globalPrefix:n});l?c.forEach(e=>{let t=(0,i.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(u,e,l);this.logger.log(t)}):c.forEach(e=>{let t=(0,i.CONTROLLER_MAPPING_MESSAGE)(u,e);this.logger.log(t)});let d={ctrlPath:o,modulePath:r,globalPrefix:n,controllerVersion:l,versioningOptions:this.applicationConfig.getVersioning()};this.routerExplorer.explore(e,t,a,s,d)})})}registerNotFoundHandler(){let e=this.container.getHttpAdapterRef(),n=(n,r)=>{let i=e.getRequestMethod(n),a=e.getRequestUrl(n);throw new t.NotFoundException(`Cannot ${i} ${a}`)},r=this.routerExceptionsFilter.create({},n,void 0),i=this.routerProxy.createProxy(n,r);e.setNotFoundHandler&&e.setNotFoundHandler(i,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){let e=(e,t,n,r)=>{throw this.mapExternalException(e)},t=this.routerExceptionsFilter.create({},e,void 0),n=this.routerProxy.createExceptionLayerProxy(e,t),r=this.container.getHttpAdapterRef();r.setErrorHandler&&r.setErrorHandler(n,this.applicationConfig.getGlobalPrefix())}mapExternalException(e){switch(!0){case e instanceof SyntaxError||e instanceof URIError:return new t.BadRequestException(e.message);case this.isHttpFastifyError(e):return new t.HttpException(e.message,e.statusCode);default:return e}}isHttpFastifyError(e){return e.statusCode!==void 0&&e instanceof Error&&e.name===`FastifyError`}getModulePathMetadata(e){let t=this.container.getModules();return Reflect.getMetadata(n.MODULE_PATH+t.applicationId,e)??Reflect.getMetadata(n.MODULE_PATH,e)}getHostMetadata(e){return Reflect.getMetadata(n.HOST_METADATA,e)}getVersionMetadata(e){let t=this.applicationConfig.getVersioning();if(t)return Reflect.getMetadata(n.VERSION_METADATA,e)??t.defaultVersion}}})),VC=o((()=>{throw Error(`Could not resolve "@nestjs/websockets/socket-module" imported by "@nestjs/core". Is it installed?`)})),HC=o((()=>{throw Error(`Could not resolve "@nestjs/microservices/microservices-module" imported by "@nestjs/core". Is it installed?`)})),UC=o((()=>{throw Error(`Could not resolve "@nestjs/microservices" imported by "@nestjs/core". Is it installed?`)})),WC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestApplication=void 0;var t=H(),n=ct(),r=Vn(),i=A(),a=I(),o=require(`os`),s=Dx(),c=Ox(),l=dC(),u=IS(),d=fC(),f=CC(),p=cC(),m=jC(),h=BC(),{SocketModule:g}=(0,l.optionalRequire)(`@nestjs/websockets/socket-module`,()=>VC()),{MicroservicesModule:_}=(0,l.optionalRequire)(`@nestjs/microservices/microservices-module`,()=>HC());e.NestApplication=class e extends m.NestApplicationContext{constructor(t,r,i,a,o={}){super(t,o),this.httpAdapter=r,this.config=i,this.graphInspector=a,this.logger=new n.Logger(e.name,{timestamp:!0}),this.middlewareContainer=new d.MiddlewareContainer(this.container),this.microservicesModule=_&&new _,this.socketModule=g&&new g,this.microservices=[],this.isListening=!1,this.selectContextModule(),this.registerHttpServer(),this.injector=new u.Injector({preview:this.appOptions.preview,instanceDecorator:o.instrument?.instanceDecorator}),this.middlewareModule=new f.MiddlewareModule,this.routesResolver=new h.RoutesResolver(this.container,this.config,this.injector,this.graphInspector)}async dispose(){this.socketModule&&await this.socketModule.close(),this.microservicesModule&&await this.microservicesModule.close(),this.httpAdapter&&await this.httpAdapter.close(),await Promise.all((0,a.iterate)(this.microservices).map(async e=>{e.setIsTerminated(!0),await e.close()}))}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){if(!(!this.appOptions||!this.appOptions.cors))return(0,i.isObject)(this.appOptions.cors)||(0,i.isFunction)(this.appOptions.cors)?this.enableCors(this.appOptions.cors):this.enableCors()}createServer(){return this.httpAdapter.initHttpServer(this.appOptions),this.httpAdapter.getHttpServer()}async registerModules(){this.registerWsModule(),this.microservicesModule&&(this.microservicesModule.register(this.container,this.graphInspector,this.config,this.appOptions),this.microservicesModule.setupClients(this.container)),await this.middlewareModule.register(this.middlewareContainer,this.container,this.config,this.injector,this.httpAdapter,this.graphInspector,this.appOptions)}registerWsModule(){this.socketModule&&this.socketModule.register(this.container,this.config,this.graphInspector,this.appOptions,this.httpServer)}async init(){return this.isInitialized?this:(this.applyOptions(),await this.httpAdapter?.init?.(),this.appOptions&&this.appOptions.bodyParser!==!1&&this.registerParserMiddleware(),await this.registerModules(),await this.registerRouter(),await this.callInitHook(),await this.registerRouterHooks(),await this.callBootstrapHook(),this.isInitialized=!0,this.logger.log(c.MESSAGES.APPLICATION_READY),this)}registerParserMiddleware(){let e=this.config.getGlobalPrefix(),t=!!this.appOptions?.rawBody;this.httpAdapter.registerParserMiddleware(e,t)}async registerRouter(){await this.registerMiddleware(this.httpAdapter);let e=this.config.getGlobalPrefix(),t=(0,i.addLeadingSlash)(e);this.routesResolver.resolve(this.httpAdapter,t)}async registerRouterHooks(){this.routesResolver.registerNotFoundHandler(),this.routesResolver.registerExceptionHandler()}connectMicroservice(e,t={}){let{NestMicroservice:n}=(0,r.loadPackage)(`@nestjs/microservices`,`NestFactory`,()=>UC()),{inheritAppConfig:i}=t,a=i?this.config:new s.ApplicationConfig,o=new n(this.container,e,this.graphInspector,a);return t.deferInitialization||(o.registerListeners(),o.setIsInitialized(!0),o.setIsInitHookCalled(!0)),this.microservices.push(o),o}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}async startAllMicroservices(){return this.assertNotInPreviewMode(`startAllMicroservices`),await Promise.all(this.microservices.map(e=>e.listen())),this}use(...e){return this.httpAdapter.use(...e),this}useBodyParser(...e){if(!(`useBodyParser`in this.httpAdapter))return this.logger.warn("Your HTTP Adapter does not support `.useBodyParser`."),this;let[t,...n]=e,r=!!this.appOptions.rawBody;return this.httpAdapter.useBodyParser?.(t,r,...n),this}enableCors(e){this.httpAdapter.enableCors(e)}enableVersioning(e={type:t.VersioningType.URI}){return this.config.enableVersioning(e),this}async listen(e,...t){this.assertNotInPreviewMode(`listen`),this.isInitialized||await this.init();let n=this.container.getHttpAdapterHostRef();return new Promise((r,a)=>{let o=e=>{this.logger.error(e?.toString?.()),a(e)};this.httpServer.once(`error`,o);let s=(0,i.isFunction)(t[t.length-1]),c=s?t.slice(0,t.length-1):t;this.httpAdapter.listen(e,...c,(...e)=>{if((this.appOptions?.autoFlushLogs??!0)&&this.flushLogs(),e[0]instanceof Error)return a(e[0]);this.httpServer.address()&&(this.httpServer.removeListener(`error`,o),this.isListening=!0,n.listening=!0,r(this.httpServer)),s&&t[t.length-1](...e)})})}async getUrl(){return new Promise((e,t)=>{if(!this.isListening){this.logger.error(c.MESSAGES.CALL_LISTEN_FIRST),t(c.MESSAGES.CALL_LISTEN_FIRST);return}let n=this.httpServer.address();e(this.formatAddress(n))})}formatAddress(e){if((0,i.isString)(e)){if((0,o.platform)()===`win32`)return e;let t=encodeURIComponent(e);return`${this.getProtocol()}+unix://${t}`}let t=this.host();return e&&e.family===`IPv6`?t=t===`::`?`[::1]`:`[${t}]`:t===`0.0.0.0`&&(t=`127.0.0.1`),`${this.getProtocol()}://${t}:${e.port}`}setGlobalPrefix(e,t){if(this.config.setGlobalPrefix(e),t){let e=t?.exclude?(0,p.mapToExcludeRoute)(t.exclude):[];this.config.setGlobalPrefixOptions({...t,exclude:e})}return this}useWebSocketAdapter(e){return this.config.setIoAdapter(e),this}useGlobalFilters(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalFilters(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`filter`,ref:e})),this}useGlobalPipes(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalPipes(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`pipe`,ref:e})),this}useGlobalInterceptors(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalInterceptors(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`interceptor`,ref:e})),this}useGlobalGuards(...e){return e=this.applyInstanceDecoratorIfRegistered(...e),this.config.useGlobalGuards(...e),e.forEach(e=>this.graphInspector.insertOrphanedEnhancer({subtype:`guard`,ref:e})),this}useStaticAssets(e,t){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(e,t),this}setBaseViewsDir(e){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(e),this}setViewEngine(e){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(e),this}host(){let e=this.httpServer.address();if(!(0,i.isString)(e))return e&&e.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?`https`:`http`}async registerMiddleware(e){await this.middlewareModule.registerMiddleware(this.middlewareContainer,e)}applyInstanceDecoratorIfRegistered(...e){return this.appOptions.instrument?.instanceDecorator?e.map(e=>this.appOptions.instrument.instanceDecorator(e)):e}}})),GC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionHandler=void 0;var t=ct(),n=class e{handle(t){e.logger.error(t)}};e.ExceptionHandler=n,n.logger=new t.Logger(n.name)})),KC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExceptionsZone=void 0;var t=H(),n=GC(),r=()=>process.exit(1),i=class{static run(e,n=r,i){try{e()}catch(e){this.exceptionHandler.handle(e),i&&t.Logger.flush(),n(e)}}static async asyncRun(e,n=r,i){try{await e()}catch(e){this.exceptionHandler.handle(e),i&&t.Logger.flush(),n(e)}}};e.ExceptionsZone=i,i.exceptionHandler=new n.ExceptionHandler})),qC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.loadAdapter=i;var t=H(),n=(e,t)=>`No driver (${t}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${e}" package ($ npm install ${e}).`,r=new t.Logger(`PackageLoader`);function i(e,t,i){try{return i?i():require(e)}catch{r.error(n(e,t)),process.exit(1)}}})),JC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rethrow=void 0,e.rethrow=e=>{throw e}})),YC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InstanceLoader=void 0;var t=H(),n=MC(),r=KS();e.InstanceLoader=class e{constructor(n,r,i,a=new t.Logger(e.name,{timestamp:!0})){this.container=n,this.injector=r,this.graphInspector=i,this.logger=a}setLogger(e){this.logger=e}async createInstancesOfDependencies(e=this.container.getModules()){this.createPrototypes(e);try{await this.createInstances(e)}catch(t){throw this.graphInspector.inspectModules(e),this.graphInspector.registerPartial(t),t}this.graphInspector.inspectModules(e)}createPrototypes(e){e.forEach(e=>{this.createPrototypesOfProviders(e),this.createPrototypesOfInjectables(e),this.createPrototypesOfControllers(e)})}async createInstances(e){await Promise.all([...e.values()].map(async e=>{await this.createInstancesOfProviders(e),await this.createInstancesOfInjectables(e),await this.createInstancesOfControllers(e);let{name:t}=e;this.isModuleWhitelisted(t)&&this.logger.log((0,n.MODULE_INIT_MESSAGE)`${t}`)}))}createPrototypesOfProviders(e){let{providers:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfProviders(e){let{providers:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadProvider(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}createPrototypesOfControllers(e){let{controllers:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfControllers(e){let{controllers:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadController(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}createPrototypesOfInjectables(e){let{injectables:t}=e;t.forEach(e=>this.injector.loadPrototype(e,t))}async createInstancesOfInjectables(e){let{injectables:t}=e,n=[...t.values()];await Promise.all(n.map(async t=>{await this.injector.loadInjectable(t,e),this.graphInspector.inspectInstanceWrapper(t,e)}))}isModuleWhitelisted(e){return e!==r.InternalCoreModule.name}}})),XC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoopGraphInspector=void 0;var t=tC(),n=()=>{};e.NoopGraphInspector=new Proxy(t.GraphInspector.prototype,{get:()=>n})})),ZC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidClassModuleException=void 0;var t=Gx(),n=Wx();e.InvalidClassModuleException=class extends n.RuntimeException{constructor(e,n){super((0,t.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(e,n))}}})),QC=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InvalidModuleException=void 0;var t=Gx(),n=Wx();e.InvalidModuleException=class extends n.RuntimeException{constructor(e,n,r){super((0,t.INVALID_MODULE_MESSAGE)(e,n,r))}}})),$C=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UndefinedModuleException=void 0;var t=Wx(),n=Gx();e.UndefinedModuleException=class extends t.RuntimeException{constructor(e,t,r){super((0,n.UNDEFINED_MODULE_MESSAGE)(e,t,r))}}})),ew=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InternalCoreModuleFactory=void 0;var t=H(),n=dS(),r=Fx(),i=xS(),a=VS(),o=IS(),s=YC(),c=zS(),l=Ax(),u=KS();e.InternalCoreModuleFactory=class{static create(e,d,f,p,m,h){return i.InitializeOnPreviewAllowlist.add(u.InternalCoreModule),u.InternalCoreModule.register([{provide:n.ExternalContextCreator,useFactory:()=>n.ExternalContextCreator.fromContainer(e)},{provide:l.ModulesContainer,useFactory:()=>e.getModules()},{provide:r.HttpAdapterHost,useFactory:()=>p},{provide:c.LazyModuleLoader,useFactory:()=>{let n=new t.Logger(c.LazyModuleLoader.name,{timestamp:!1}),r=new o.Injector({preview:e.contextOptions?.preview,instanceDecorator:e.contextOptions?.instrument?.instanceDecorator}),i=new s.InstanceLoader(e,r,m,n);return new c.LazyModuleLoader(d,i,f,e.getModules(),h)}},{provide:a.SerializedGraph,useFactory:()=>e.serializedGraph}])}}})),tw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TreeNode=void 0,e.TreeNode=class{constructor({value:e,parent:t}){this.children=new Set,this.value=e,this.parent=t}addChild(e){this.children.add(e)}removeChild(e){this.children.delete(e)}relink(e){this.parent?.removeChild(this),this.parent=e,this.parent.addChild(this)}getDepth(){let e=new Set,t=0,n=this;for(;n;){if(t++,n=n.parent,e.has(n))return-1;e.add(n)}return t}hasCycleWith(e){let t=new Set,n=this;for(;n;){if(n.value===e)return!0;if(n=n.parent,t.has(n))return!1;t.add(n)}return!1}}})),nw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TopologyTree=void 0;var t=tw();e.TopologyTree=class{constructor(e){this.links=new Map,this.root=new t.TreeNode({value:e,parent:null}),this.links.set(e,this.root),this.traverseAndMapToTree(this.root)}walk(e){function t(n,r=1){e(n.value,r),n.children.forEach(e=>t(e,r+1))}t(this.root)}traverseAndMapToTree(e,n=1){e.value.imports&&e.value.imports.forEach(r=>{if(!r)return;if(this.links.has(r)){let t=this.links.get(r);if(e.hasCycleWith(r))return;t.getDepth()<n&&t.relink(e);return}let i=new t.TreeNode({value:r,parent:e});e.addChild(i),this.links.set(r,i),this.traverseAndMapToTree(i,n+1)})}}})),rw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DependenciesScanner=void 0;var t=O(),n=dn(),r=A(),i=I(),a=Dx(),o=Ox(),s=pS(),c=ZC(),l=QC(),u=$C(),d=wS(),f=ew(),p=nw(),m=MS();e.DependenciesScanner=class{constructor(e,t,n,r=new a.ApplicationConfig){this.container=e,this.metadataScanner=t,this.graphInspector=n,this.applicationConfig=r,this.applicationProvidersApplyMap=[]}async scan(e,t){await this.registerCoreModule(t?.overrides),await this.scanForModules({moduleDefinition:e,overrides:t?.overrides}),await this.scanModulesForDependencies(),this.addScopedEnhancersMetadata(),this.calculateModulesDistance(),this.container.bindGlobalScope()}async scanForModules({moduleDefinition:e,lazy:n,scope:r=[],ctxRegistry:i=[],overrides:a=[]}){let{moduleRef:o,inserted:s}=await this.insertOrOverrideModule(e,a,r)??{};e=this.getOverrideModuleByModule(e,a)?.newModule??e,e=e instanceof Promise?await e:e,i.push(e),this.isForwardReference(e)&&(e=e.forwardRef());let c=this.isDynamicModule(e)?[...this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e.module),...e.imports||[]]:this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e),d=[];for(let[t,o]of c.entries()){if(o===void 0)throw new u.UndefinedModuleException(e,t,r);if(!o)throw new l.InvalidModuleException(e,t,r);if(i.includes(o))continue;let s=await this.scanForModules({moduleDefinition:o,scope:[].concat(r,e),ctxRegistry:i,overrides:a,lazy:n});d=d.concat(s)}return o?(n&&s&&this.container.bindGlobalsToImports(o),[o].concat(d)):d}async insertModule(e,t){let n=this.isForwardReference(e)?e.forwardRef():e;if(this.isInjectable(n)||this.isController(n)||this.isExceptionFilter(n))throw new c.InvalidClassModuleException(e,t);return this.container.addModule(n,t)}async scanModulesForDependencies(e=this.container.getModules()){for(let[t,{metatype:n}]of e)await this.reflectImports(n,t,n.name),this.reflectProviders(n,t),this.reflectControllers(n,t),this.reflectExports(n,t)}async reflectImports(e,n,r){let i=[...this.reflectMetadata(t.MODULE_METADATA.IMPORTS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.IMPORTS)];for(let e of i)await this.insertImport(e,n,r)}reflectProviders(e,n){[...this.reflectMetadata(t.MODULE_METADATA.PROVIDERS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.PROVIDERS)].forEach(e=>{this.insertProvider(e,n),this.reflectDynamicMetadata(e,n)})}reflectControllers(e,n){[...this.reflectMetadata(t.MODULE_METADATA.CONTROLLERS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.CONTROLLERS)].forEach(e=>{this.insertController(e,n),this.reflectDynamicMetadata(e,n)})}reflectDynamicMetadata(e,n){!e||!e.prototype||(this.reflectInjectables(e,n,t.GUARDS_METADATA),this.reflectInjectables(e,n,t.INTERCEPTORS_METADATA),this.reflectInjectables(e,n,t.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(e,n,t.PIPES_METADATA),this.reflectParamInjectables(e,n,t.ROUTE_ARGS_METADATA))}reflectExports(e,n){[...this.reflectMetadata(t.MODULE_METADATA.EXPORTS,e),...this.container.getDynamicMetadataByToken(n,t.MODULE_METADATA.EXPORTS)].forEach(e=>this.insertExportedProviderOrModule(e,n))}reflectInjectables(e,n,r){let i=this.reflectMetadata(r,e),a=this.metadataScanner.getAllMethodNames(e.prototype).reduce((t,n)=>{let i=this.reflectKeyMetadata(e,r,n);return i&&t.push(i),t},[]);i.forEach(i=>this.insertInjectable(i,n,e,t.ENHANCER_KEY_TO_SUBTYPE_MAP[r])),a.forEach(i=>{i.metadata.forEach(a=>this.insertInjectable(a,n,e,t.ENHANCER_KEY_TO_SUBTYPE_MAP[r],i.methodKey))})}reflectParamInjectables(e,t,n){this.metadataScanner.getAllMethodNames(e.prototype).forEach(r=>{let i=Reflect.getMetadata(n,e,r);i&&Object.values(i).map(e=>e.pipes).flat(1).forEach(n=>this.insertInjectable(n,t,e,`pipe`,r))})}reflectKeyMetadata(e,t,n){let r=e.prototype;do{let e=Reflect.getOwnPropertyDescriptor(r,n);if(!e)continue;let i=Reflect.getMetadata(t,e.value);return i?{methodKey:n,metadata:i}:void 0}while((r=Reflect.getPrototypeOf(r))&&r!==Object.prototype&&r)}calculateModulesDistance(){let e=this.container.getModules().values();e.next();let t=e.next().value;t&&new p.TopologyTree(t).walk((e,t)=>{e.isGlobal||(e.distance=t)})}async insertImport(e,t,n){if((0,r.isUndefined)(e))throw new s.CircularDependencyException(n);if(this.isForwardReference(e))return this.container.addImport(e.forwardRef(),t);await this.container.addImport(e,t)}isCustomProvider(e){return e&&!(0,r.isNil)(e.provide)}insertProvider(e,t){if(!this.isCustomProvider(e))return this.container.addProvider(e,t);let n=this.getApplyProvidersMap(),i=Object.keys(n),a=e.provide;if(!i.includes(a))return this.container.addProvider(e,t);let s=`${a} (UUID: ${m.UuidFactory.get(a.toString())})`,c=e.scope;(0,r.isNil)(c)&&e.useClass&&(c=(0,d.getClassScope)(e.useClass)),this.applicationProvidersApplyMap.push({type:a,moduleKey:t,providerKey:s,scope:c});let l={...e,provide:s,scope:c},u=o.ENHANCER_TOKEN_TO_SUBTYPE_MAP[a],f=l;if(this.isRequestOrTransient(f.scope))return this.container.addInjectable(l,t,u);this.container.addProvider(l,t,u)}insertInjectable(e,t,n,i,a){if((0,r.isFunction)(e)){let r=this.container.addInjectable(e,t,i,n);return this.graphInspector.insertEnhancerMetadataCache({moduleToken:t,classRef:n,enhancerInstanceWrapper:r,targetNodeId:r.id,subtype:i,methodKey:a}),r}else this.graphInspector.insertEnhancerMetadataCache({moduleToken:t,classRef:n,enhancerRef:e,methodKey:a,subtype:i})}insertExportedProviderOrModule(e,t){let n=this.isForwardReference(e)?e.forwardRef():e;this.container.addExportedProviderOrModule(n,t)}insertController(e,t){this.container.addController(e,t)}insertOrOverrideModule(e,t,n){let r=this.getOverrideModuleByModule(e,t);return r===void 0?this.insertModule(e,n):this.overrideModule(e,r.newModule,n)}getOverrideModuleByModule(e,t){return this.isForwardReference(e)?t.find(t=>t.moduleToReplace===e.forwardRef()||t.moduleToReplace.forwardRef?.()===e.forwardRef()):t.find(t=>t.moduleToReplace===e)}async overrideModule(e,t,n){return this.container.replaceModule(this.isForwardReference(e)?e.forwardRef():e,this.isForwardReference(t)?t.forwardRef():t,n)}reflectMetadata(e,t){return Reflect.getMetadata(e,t)||[]}async registerCoreModule(e){let t=f.InternalCoreModuleFactory.create(this.container,this,this.container.getModuleCompiler(),this.container.getHttpAdapterHostRef(),this.graphInspector,e),[n]=await this.scanForModules({moduleDefinition:t,overrides:e});this.container.registerCoreModuleRef(n)}addScopedEnhancersMetadata(){(0,i.iterate)(this.applicationProvidersApplyMap).filter(e=>this.isRequestOrTransient(e.scope)).forEach(({moduleKey:e,providerKey:t})=>{let n=this.container.getModules(),{injectables:r}=n.get(e),a=r.get(t),o=n.values();(0,i.iterate)(o).map(e=>Array.from(e.controllers.values()).concat(e.entryProviders)).flatten().forEach(e=>e.addEnhancerMetadata(a))})}applyApplicationProviders(){let e=this.getApplyProvidersMap(),t=this.getApplyRequestProvidersMap(),n=(e,t,n)=>this.container.getModules().get(e)[n].get(t);this.applicationProvidersApplyMap.forEach(({moduleKey:r,providerKey:i,type:a,scope:o})=>{let s;if(this.isRequestOrTransient(o))return s=n(r,i,`injectables`),this.graphInspector.insertAttachedEnhancer(s),t[a](s);s=n(r,i,`providers`),this.graphInspector.insertAttachedEnhancer(s),e[a](s.instance)})}getApplyProvidersMap(){return{[o.APP_INTERCEPTOR]:e=>this.applicationConfig.addGlobalInterceptor(e),[o.APP_PIPE]:e=>this.applicationConfig.addGlobalPipe(e),[o.APP_GUARD]:e=>this.applicationConfig.addGlobalGuard(e),[o.APP_FILTER]:e=>this.applicationConfig.addGlobalFilter(e)}}getApplyRequestProvidersMap(){return{[o.APP_INTERCEPTOR]:e=>this.applicationConfig.addGlobalRequestInterceptor(e),[o.APP_PIPE]:e=>this.applicationConfig.addGlobalRequestPipe(e),[o.APP_GUARD]:e=>this.applicationConfig.addGlobalRequestGuard(e),[o.APP_FILTER]:e=>this.applicationConfig.addGlobalRequestFilter(e)}}isDynamicModule(e){return e&&!!e.module}isInjectable(e){return!!Reflect.getMetadata(t.INJECTABLE_WATERMARK,e)}isController(e){return!!Reflect.getMetadata(t.CONTROLLER_WATERMARK,e)}isExceptionFilter(e){return!!Reflect.getMetadata(t.CATCH_WATERMARK,e)}isForwardReference(e){return e&&!!e.forwardRef}isRequestOrTransient(e){return e===n.Scope.REQUEST||e===n.Scope.TRANSIENT}}})),iw=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),aw=s(((e,t)=>{t.exports=a,t.exports.append=r;var n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,t){if(typeof e!=`string`)throw TypeError(`header argument is required`);if(!t)throw TypeError(`field argument is required`);for(var r=Array.isArray(t)?t:i(String(t)),a=0;a<r.length;a++)if(!n.test(r[a]))throw TypeError(`field argument contains an invalid header name`);if(e===`*`)return e;var o=e,s=i(e.toLowerCase());if(r.indexOf(`*`)!==-1||s.indexOf(`*`)!==-1)return`*`;for(var c=0;c<r.length;c++){var l=r[c].toLowerCase();s.indexOf(l)===-1&&(s.push(l),o=o?o+`, `+r[c]:r[c])}return o}function i(e){for(var t=0,n=[],r=0,i=0,a=e.length;i<a;i++)switch(e.charCodeAt(i)){case 32:r===t&&(r=t=i+1);break;case 44:n.push(e.substring(r,t)),r=t=i+1;break;default:t=i+1;break}return n.push(e.substring(r,t)),n}function a(e,t){if(!e||!e.getHeader||!e.setHeader)throw TypeError(`res argument is required`);var n=e.getHeader(`Vary`)||``;(n=r(Array.isArray(n)?n.join(`, `):String(n),t))&&e.setHeader(`Vary`,n)}})),ow=s(((e,t)=>{(function(){"use strict";var e=iw(),n=aw(),r={origin:`*`,methods:`GET,HEAD,PUT,PATCH,POST,DELETE`,preflightContinue:!1,optionsSuccessStatus:204};function i(e){return typeof e==`string`||e instanceof String}function a(e,t){if(Array.isArray(t)){for(var n=0;n<t.length;++n)if(a(e,t[n]))return!0;return!1}else if(i(t))return e===t;else if(t instanceof RegExp)return t.test(e);else return!!t}function o(e,t){var n=t.headers.origin,r=[],o;return!e.origin||e.origin===`*`?r.push([{key:`Access-Control-Allow-Origin`,value:`*`}]):i(e.origin)?(r.push([{key:`Access-Control-Allow-Origin`,value:e.origin}]),r.push([{key:`Vary`,value:`Origin`}])):(o=a(n,e.origin),r.push([{key:`Access-Control-Allow-Origin`,value:o?n:!1}]),r.push([{key:`Vary`,value:`Origin`}])),r}function s(e){var t=e.methods;return t.join&&(t=e.methods.join(`,`)),{key:`Access-Control-Allow-Methods`,value:t}}function c(e){return e.credentials===!0?{key:`Access-Control-Allow-Credentials`,value:`true`}:null}function l(e,t){var n=e.allowedHeaders||e.headers,r=[];return n?n.join&&(n=n.join(`,`)):(n=t.headers[`access-control-request-headers`],r.push([{key:`Vary`,value:`Access-Control-Request-Headers`}])),n&&n.length&&r.push([{key:`Access-Control-Allow-Headers`,value:n}]),r}function u(e){var t=e.exposedHeaders;if(t)t.join&&(t=t.join(`,`));else return null;return t&&t.length?{key:`Access-Control-Expose-Headers`,value:t}:null}function d(e){var t=(typeof e.maxAge==`number`||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:`Access-Control-Max-Age`,value:t}:null}function f(e,t){for(var r=0,i=e.length;r<i;r++){var a=e[r];a&&(Array.isArray(a)?f(a,t):a.key===`Vary`&&a.value?n(t,a.value):a.value&&t.setHeader(a.key,a.value))}}function p(e,t,n,r){var i=[];(t.method&&t.method.toUpperCase&&t.method.toUpperCase())===`OPTIONS`?(i.push(o(e,t)),i.push(c(e)),i.push(s(e)),i.push(l(e,t)),i.push(d(e)),i.push(u(e)),f(i,n),e.preflightContinue?r():(n.statusCode=e.optionsSuccessStatus,n.setHeader(`Content-Length`,`0`),n.end())):(i.push(o(e,t)),i.push(c(e)),i.push(u(e)),f(i,n),r())}function m(t){var n=null;return n=typeof t==`function`?t:function(e,n){n(null,t)},function(t,i,a){n(t,function(n,o){if(n)a(n);else{var s=e({},r,o),c=null;s.origin&&typeof s.origin==`function`?c=s.origin:s.origin&&(c=function(e,t){t(null,s.origin)}),c?c(t.headers.origin,function(e,n){e||!n?a(e):(s.origin=n,p(s,t,i,a))}):a()}})}}t.exports=m})()})),sw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getBodyParserOptions=n;var t=(e,t,n)=>(Buffer.isBuffer(n)&&(e.rawBody=n),!0);function n(e,n){let r=n||{};return e===!0&&(r={...r,verify:t}),r}})),cw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ExpressAdapter=void 0;var t=H(),n=A(),r=Tx(),i=PC(),a=iC(),o=ow(),s=require(`express`),c=require(`http`),l=require(`https`),u=rC(),d=sw();e.ExpressAdapter=class e extends r.AbstractHttpAdapter{constructor(n){super(n||s()),this.routerMethodFactory=new i.RouterMethodFactory,this.logger=new t.Logger(e.name),this.openConnections=new Set,this.instance.use((e,t,n)=>{this.onResponseHook&&t.on(`finish`,()=>{this.onResponseHook.apply(this,[e,t])}),this.onRequestHook?this.onRequestHook.apply(this,[e,t,n]):n()})}setOnRequestHook(e){this.onRequestHook=e}setOnResponseHook(e){this.onResponseHook=e}reply(e,r,i){if(i&&e.status(i),(0,n.isNil)(r))return e.send();if(r instanceof t.StreamableFile){this.applyStreamHeaders(e,r);let t=r.getStream();return t.once(`error`,t=>{r.errorHandler(t,e)}),t.pipe(e).on(`error`,e=>r.errorLogger(e))}let a=e.getHeader(`Content-Type`);return typeof a==`string`&&!a.startsWith(`application/json`)&&r?.statusCode>=t.HttpStatus.BAD_REQUEST&&(this.logger.warn(`Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses`),e.setHeader(`Content-Type`,`application/json`)),(0,n.isObject)(r)?e.json(r):e.send(String(r))}status(e,t){return e.status(t)}end(e,t){return e.end(t)}render(e,t,n){return e.render(t,n)}redirect(e,t,n){return e.redirect(t,n)}setErrorHandler(e,t){return this.use(e)}setNotFoundHandler(e,t){return this.use(e)}isHeadersSent(e){return e.headersSent}getHeader(e,t){return e.get(t)}setHeader(e,t,n){return e.set(t,n)}appendHeader(e,t,n){return e.append(t,n)}normalizePath(e){try{let t=a.LegacyRouteConverter.tryConvert(e);return(0,u.pathToRegexp)(t),t}catch(t){throw t instanceof TypeError&&a.LegacyRouteConverter.printError(e),t}}listen(e,...t){return this.httpServer.listen(e,...t)}close(){if(this.closeOpenConnections(),this.httpServer)return new Promise(e=>this.httpServer.close(e))}set(...e){return this.instance.set(...e)}enable(...e){return this.instance.enable(...e)}disable(...e){return this.instance.disable(...e)}engine(...e){return this.instance.engine(...e)}useStaticAssets(e,t){return t&&t.prefix?this.use(t.prefix,s.static(e,t)):this.use(s.static(e,t))}setBaseViewsDir(e){return this.set(`views`,e)}setViewEngine(e){return this.set(`view engine`,e)}getRequestHostname(e){return e.hostname}getRequestMethod(e){return e.method}getRequestUrl(e){return e.originalUrl}enableCors(e){return this.use(o(e))}createMiddlewareFactory(e){return(t,n)=>{try{let r=a.LegacyRouteConverter.tryConvert(t);return this.routerMethodFactory.get(this.instance,e).call(this.instance,r,n)}catch(e){throw e instanceof TypeError&&a.LegacyRouteConverter.printError(t),e}}}initHttpServer(e){e&&e.httpsOptions?this.httpServer=l.createServer(e.httpsOptions,this.getInstance()):this.httpServer=c.createServer(this.getInstance()),e?.forceCloseConnections&&this.trackOpenConnections()}registerParserMiddleware(e,t){let n=(0,d.getBodyParserOptions)(t),r=(0,d.getBodyParserOptions)(t,{extended:!0}),i={jsonParser:s.json(n),urlencodedParser:s.urlencoded(r)};Object.keys(i).filter(e=>!this.isMiddlewareApplied(e)).forEach(e=>this.use(i[e]))}useBodyParser(e,t,n){let r=(0,d.getBodyParserOptions)(t,n),i=s[e](r);return this.use(i),this}setLocal(e,t){return this.instance.locals[e]=t,this}getType(){return`express`}applyVersionFilter(e,r,i){let a=(e,n,r)=>{if(!r)throw new t.InternalServerErrorException(`HTTP adapter does not support filtering on version`);return r()};if(r===t.VERSION_NEUTRAL||i.type===t.VersioningType.URI)return(t,n,r)=>e(t,n,r);if(i.type===t.VersioningType.CUSTOM)return(t,o,s)=>{let c=i.extractor(t);if(Array.isArray(r)){if(Array.isArray(c)&&r.filter(e=>c.includes(e)).length||(0,n.isString)(c)&&r.includes(c))return e(t,o,s)}else if((0,n.isString)(r)&&(Array.isArray(c)&&c.includes(r)||(0,n.isString)(c)&&r===c))return e(t,o,s);return a(t,o,s)};if(i.type===t.VersioningType.MEDIA_TYPE)return(o,s,c)=>{let l=o.headers?.Accept||o.headers?.accept,u=l?l.split(`;`)[1]:void 0;if((0,n.isUndefined)(u)){if(Array.isArray(r)&&r.includes(t.VERSION_NEUTRAL))return e(o,s,c)}else{let t=u.split(i.key)[1];if(Array.isArray(r)){if(r.includes(t))return e(o,s,c)}else if((0,n.isString)(r)&&r===t)return e(o,s,c)}return a(o,s,c)};if(i.type===t.VersioningType.HEADER)return(o,s,c)=>{let l=o.headers?.[i.header]||o.headers?.[i.header.toLowerCase()];if((0,n.isUndefined)(l)){if(Array.isArray(r)&&r.includes(t.VERSION_NEUTRAL))return e(o,s,c)}else if(Array.isArray(r)){if(r.includes(l))return e(o,s,c)}else if((0,n.isString)(r)&&r===l)return e(o,s,c);return a(o,s,c)};throw Error(`Unsupported versioning options`)}trackOpenConnections(){this.httpServer.on(`connection`,e=>{this.openConnections.add(e),e.on(`close`,()=>this.openConnections.delete(e))})}closeOpenConnections(){for(let e of this.openConnections)e.destroy(),this.openConnections.delete(e)}isMiddlewareApplied(e){let t=this.getInstance();return!!t.router&&!!t.router.stack&&(0,n.isFunction)(t.router.stack.filter)&&t.router.stack.some(t=>t&&t.handle&&t.handle.name===e)}setHeaderIfNotExists(e,t,n){if(n!==void 0&&e.getHeader(t)===void 0){let r=Array.isArray(n)?n.join(`,`):n;e.setHeader(t,r)}}applyStreamHeaders(e,t){let n=t.getHeaders();this.setHeaderIfNotExists(e,`Content-Type`,n.type),this.setHeaderIfNotExists(e,`Content-Disposition`,n.disposition),this.setHeaderIfNotExists(e,`Content-Length`,n.length)}}})),lw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(cw(),e)})),uw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),dw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),fw=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(uw(),e),t.__exportStar(dw(),e)})),pw=s((e=>{var t=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,n=/^[\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,i=/\\([\u0000-\u007f])/g,a=/([\\"])/g,o=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,c=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;e.format=l,e.parse=u;function l(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var t=e.parameters,n=e.subtype,i=e.suffix,a=e.type;if(!a||!s.test(a))throw TypeError(`invalid type`);if(!n||!o.test(n))throw TypeError(`invalid subtype`);var c=a+`/`+n;if(i){if(!s.test(i))throw TypeError(`invalid suffix`);c+=`+`+i}if(t&&typeof t==`object`)for(var l,u=Object.keys(t).sort(),d=0;d<u.length;d++){if(l=u[d],!r.test(l))throw TypeError(`invalid parameter name`);c+=`; `+l+`=`+f(t[l])}return c}function u(e){if(!e)throw TypeError(`argument string is required`);if(typeof e==`object`&&(e=d(e)),typeof e!=`string`)throw TypeError(`argument string is required to be a string`);var n=e.indexOf(`;`),r=n===-1?e:e.substr(0,n),a,o,s=p(r),c={},l;for(t.lastIndex=n;o=t.exec(e);){if(o.index!==n)throw TypeError(`invalid parameter format`);n+=o[0].length,a=o[1].toLowerCase(),l=o[2],l[0]===`"`&&(l=l.substr(1,l.length-2).replace(i,`$1`)),c[a]=l}if(n!==-1&&n!==e.length)throw TypeError(`invalid parameter format`);return s.parameters=c,s}function d(e){if(typeof e.getHeader==`function`)return e.getHeader(`content-type`);if(typeof e.headers==`object`)return e.headers&&e.headers[`content-type`]}function f(e){var t=String(e);if(r.test(t))return t;if(t.length>0&&!n.test(t))throw TypeError(`invalid parameter value`);return`"`+t.replace(a,`\\$1`)+`"`}function p(e){var t=c.exec(e.toLowerCase());if(!t)throw TypeError(`invalid media type`);var n=t[1],r=t[2],i,a=r.lastIndexOf(`+`);return a!==-1&&(i=r.substr(a+1),r=r.substr(0,a)),{type:n,subtype:r,suffix:i}}})),mw=c({default:()=>hw}),hw,gw=o((()=>{hw={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),_w=s(((e,t)=>{t.exports=(gw(),d(mw).default)})),vw=s((e=>{var t=_w(),n=require(`path`).extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=o,e.extension=s,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function a(e){if(!e||typeof e!=`string`)return!1;var n=r.exec(e),a=n&&t[n[1].toLowerCase()];return a&&a.charset?a.charset:n&&i.test(n[1])?`UTF-8`:!1}function o(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function s(t){if(!t||typeof t!=`string`)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];return!i||!i.length?!1:i[0]}function c(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().substr(1);return r&&e.types[r]||!1}function l(e,n){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(i){var a=t[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(a.source);if(n[c]!==`application/octet-stream`&&(l>u||l===u&&n[c].substr(0,12)===`application/`))continue}n[c]=i}}})}})),yw=s(((e,t)=>{var n=pw(),r=vw();t.exports=o,t.exports.is=i,t.exports.hasBody=a,t.exports.normalize=s,t.exports.match=c;function i(e,t){var n,r=t,i=u(e);if(!i)return!1;if(r&&!Array.isArray(r))for(r=Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];if(!r||!r.length)return i;var a;for(n=0;n<r.length;n++)if(c(s(a=r[n]),i))return a[0]===`+`||a.indexOf(`*`)!==-1?i:a;return!1}function a(e){return e.headers[`transfer-encoding`]!==void 0||!isNaN(e.headers[`content-length`])}function o(e,t){var n=t;if(!a(e))return null;if(arguments.length>2){n=Array(arguments.length-1);for(var r=0;r<n.length;r++)n[r]=arguments[r+1]}var o=e.headers[`content-type`];return i(o,n)}function s(e){if(typeof e!=`string`)return!1;switch(e){case`urlencoded`:return`application/x-www-form-urlencoded`;case`multipart`:return`multipart/*`}return e[0]===`+`?`*/*`+e:e.indexOf(`/`)===-1?r.lookup(e):e}function c(e,t){if(e===!1)return!1;var n=t.split(`/`),r=e.split(`/`);return n.length!==2||r.length!==2||r[0]!==`*`&&r[0]!==n[0]?!1:r[1].substr(0,2)===`*+`?r[1].length<=n[1].length+1&&r[1].substr(1)===n[1].substr(1-r[1].length):!(r[1]!==`*`&&r[1]!==n[1])}function l(e){var t=n.parse(e);return t.parameters=void 0,n.format(t)}function u(e){if(!e)return null;try{return l(e)}catch{return null}}})),bw=s(((e,t)=>{function n(e){if(e.length===0)return;let t=Object.create(null),n=0;for(;n<e.length;++n){let t=e.charCodeAt(n);if(u[t]!==1){if(t!==47||n===0)return;break}}if(n===e.length)return;let i=e.slice(0,n).toLowerCase(),a=++n;for(;n<e.length;++n)if(u[e.charCodeAt(n)]!==1){if(n===a||r(e,n,t)===void 0)return;break}if(n!==a)return{type:i,subtype:e.slice(a,n).toLowerCase(),params:t}}function r(e,t,n){for(;t<e.length;){for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)break;if(e.charCodeAt(t++)!==59)return;for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)return;let r,i=t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(u[n]!==1){if(n!==61)return;break}}if(t===e.length||(r=e.slice(i,t),++t,t===e.length))return;let a=``,o;if(e.charCodeAt(t)===34){o=++t;let n=!1;for(;t<e.length;++t){let r=e.charCodeAt(t);if(r===92){n?(o=t,n=!1):(a+=e.slice(o,t),n=!0);continue}if(r===34){if(n){o=t,n=!1;continue}a+=e.slice(o,t);break}if(n&&=(o=t-1,!1),d[r]!==1)return}if(t===e.length)return;++t}else{for(o=t;t<e.length;++t)if(u[e.charCodeAt(t)]!==1){if(t===o)return;break}a=e.slice(o,t)}r=r.toLowerCase(),n[r]===void 0&&(n[r]=a)}return n}function i(e,t){if(e.length===0)return;let n=Object.create(null),r=0;for(;r<e.length;++r)if(u[e.charCodeAt(r)]!==1){if(a(e,r,n,t)===void 0)return;break}return{type:e.slice(0,r).toLowerCase(),params:n}}function a(e,t,n,r){for(;t<e.length;){for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)break;if(e.charCodeAt(t++)!==59)return;for(;t<e.length;++t){let n=e.charCodeAt(t);if(n!==32&&n!==9)break}if(t===e.length)return;let i,a=t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(u[n]!==1){if(n===61)break;return}}if(t===e.length)return;let o=``,s,l;if(i=e.slice(a,t),i.charCodeAt(i.length-1)===42){let n=++t;for(;t<e.length;++t){let n=e.charCodeAt(t);if(f[n]!==1){if(n!==39)return;break}}if(t===e.length)return;for(l=e.slice(n,t),++t;t<e.length&&e.charCodeAt(t)!==39;++t);if(t===e.length||(++t,t===e.length))return;s=t;let r=0;for(;t<e.length;++t){let n=e.charCodeAt(t);if(p[n]!==1){if(n===37){let n,i;if(t+2<e.length&&(n=m[e.charCodeAt(t+1)])!==-1&&(i=m[e.charCodeAt(t+2)])!==-1){let a=(n<<4)+i;o+=e.slice(s,t),o+=String.fromCharCode(a),t+=2,s=t+1,a>=128?r=2:r===0&&(r=1);continue}return}break}}if(o+=e.slice(s,t),o=c(o,l,r),o===void 0)return}else{if(++t,t===e.length)return;if(e.charCodeAt(t)===34){s=++t;let n=!1;for(;t<e.length;++t){let r=e.charCodeAt(t);if(r===92){n?(s=t,n=!1):(o+=e.slice(s,t),n=!0);continue}if(r===34){if(n){s=t,n=!1;continue}o+=e.slice(s,t);break}if(n&&=(s=t-1,!1),d[r]!==1)return}if(t===e.length)return;++t}else{for(s=t;t<e.length;++t)if(u[e.charCodeAt(t)]!==1){if(t===s)return;break}o=e.slice(s,t)}if(o=r(o,2),o===void 0)return}i=i.toLowerCase(),n[i]===void 0&&(n[i]=o)}return n}function o(e){let t;for(;;)switch(e){case`utf-8`:case`utf8`:return s.utf8;case`latin1`:case`ascii`:case`us-ascii`:case`iso-8859-1`:case`iso8859-1`:case`iso88591`:case`iso_8859-1`:case`windows-1252`:case`iso_8859-1:1987`:case`cp1252`:case`x-cp1252`:return s.latin1;case`utf16le`:case`utf-16le`:case`ucs2`:case`ucs-2`:return s.utf16le;case`base64`:return s.base64;default:if(t===void 0){t=!0,e=e.toLowerCase();continue}return s.other.bind(e)}}var s={utf8:(e,t)=>{if(e.length===0)return``;if(typeof e==`string`){if(t<2)return e;e=Buffer.from(e,`latin1`)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>e.length===0?``:typeof e==`string`?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,`latin1`)),e.ucs2Slice(0,e.length)),base64:(e,t)=>e.length===0?``:(typeof e==`string`&&(e=Buffer.from(e,`latin1`)),e.base64Slice(0,e.length)),other:(t,n)=>{if(t.length===0)return``;typeof t==`string`&&(t=Buffer.from(t,`latin1`));try{return new TextDecoder(e).decode(t)}catch{}}};function c(e,t,n){let r=o(t);if(r)return r(e,n)}function l(e){if(typeof e!=`string`)return``;for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return e=e.slice(t+1),e===`..`||e===`.`?``:e}return e===`..`||e===`.`?``:e}var u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.exports={basename:l,convertToUTF8:c,getDecoder:o,parseContentType:n,parseDisposition:i}})),xw=s(((e,t)=>{function n(e,t,n,r,i){for(let a=0;a<i;++a)if(e[t+a]!==n[r+a])return!1;return!0}var r=class{constructor(e,t){if(typeof t!=`function`)throw Error(`Missing match callback`);if(typeof e==`string`)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw Error(`Expected Buffer for needle, got ${typeof e}`);let n=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(n),this._occ=[n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n],n>1)for(let t=0;t<n-1;++t)this._occ[e[t]]=n-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,t){let n;Buffer.isBuffer(e)||(e=Buffer.from(e,`latin1`));let r=e.length;for(this._bufPos=t||0;n!==r&&this.matches<this.maxMatches;)n=i(this,e);return n}destroy(){let e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}};function i(e,t){let r=t.length,i=e._needle,o=i.length,s=-e._lookbehindSize,c=o-1,l=i[c],u=r-o,d=e._occ,f=e._lookbehind;if(s<0){for(;s<0&&s<=u;){let n=s+c,r=n<0?f[e._lookbehindSize+n]:t[n];if(r===l&&a(e,t,s,c))return e._lookbehindSize=0,++e.matches,s>-e._lookbehindSize?e._cb(!0,f,0,e._lookbehindSize+s,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=s+o;s+=d[r]}for(;s<0&&!a(e,t,s,r-s);)++s;if(s<0){let n=e._lookbehindSize+s;return n>0&&e._cb(!1,f,0,n,!1),e._lookbehindSize-=n,f.copy(f,0,n,e._lookbehindSize),f.set(t,e._lookbehindSize),e._lookbehindSize+=r,e._bufPos=r,r}e._cb(!1,f,0,e._lookbehindSize,!1),e._lookbehindSize=0}s+=e._bufPos;let p=i[0];for(;s<=u;){let r=t[s+c];if(r===l&&t[s]===p&&n(i,0,t,s,c))return++e.matches,s>0?e._cb(!0,t,e._bufPos,s,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=s+o;s+=d[r]}for(;s<r;){if(t[s]!==p||!n(t,s,i,0,r-s)){++s;continue}t.copy(f,0,s,r),e._lookbehindSize=r-s;break}return s>0&&e._cb(!1,t,e._bufPos,s<r?s:r,!0),e._bufPos=r,r}function a(e,t,n,r){let i=e._lookbehind,a=e._lookbehindSize,o=e._needle;for(let e=0;e<r;++e,++n)if((n<0?i[a+n]:t[n])!==o[e])return!1;return!0}t.exports=r})),Sw=s(((e,t)=>{var{Readable:n,Writable:r}=require(`stream`),i=xw(),{basename:a,convertToUTF8:o,getDecoder:s,parseContentType:c,parseDisposition:l}=bw(),u=Buffer.from(`\r
|
|
137
|
+
`),d=Buffer.from(`\r`),f=Buffer.from(`-`);function p(){}var m=2e3,h=16*1024,g=0,_=1,v=2,y=class{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=g,this.name=``,this.value=``,this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=g,this.name=``,this.value=``,this.crlf=0}push(e,t,n){let r=t;for(;t<n;)switch(this.state){case g:{let i=!1;for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(D[n]!==1){if(n!==58||(this.name+=e.latin1Slice(r,t),this.name.length===0))return-1;++t,i=!0,this.state=_;break}}if(!i){this.name+=e.latin1Slice(r,t);break}}case _:{let i=!1;for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(n!==32&&n!==9){r=t,i=!0,this.state=v;break}}if(!i)break}case v:switch(this.crlf){case 0:for(;t<n;++t){if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];if(O[n]!==1){if(n!==13)return-1;++this.crlf;break}}this.value+=e.latin1Slice(r,t++);break;case 1:if(this.byteCount===h||(++this.byteCount,e[t++]!==10))return-1;++this.crlf;break;case 2:{if(this.byteCount===h)return-1;++this.byteCount;let n=e[t];n===32||n===9?(r=t,this.crlf=0):(++this.pairCount<m&&(this.name=this.name.toLowerCase(),this.header[this.name]===void 0?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),n===13?(++this.crlf,++t):(r=t,this.crlf=0,this.state=g,this.name=``,this.value=``));break}case 3:{if(this.byteCount===h||(++this.byteCount,e[t++]!==10))return-1;let n=this.header;return this.reset(),this.cb(n),t}}break}return t}},b=class extends n{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once(`end`,()=>{if(this._read(),--t._fileEndsLeft===0&&t._finalcb){let e=t._finalcb;t._finalcb=null,process.nextTick(e)}})}_read(e){let t=this._readcb;t&&(this._readcb=null,t())}},x={push:(e,t)=>{},destroy:()=>{}};function S(e,t){let n=e._writecb;e._writecb=null,t?e.destroy(t):n&&n()}function C(e,t){return e}var w=class extends r{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.highWaterMark==`number`?e.highWaterMark:void 0};if(super(t),!e.conType.params||typeof e.conType.params.boundary!=`string`)throw Error(`Multipart: Boundary not found`);let n=e.conType.params.boundary,r=typeof e.defParamCharset==`string`&&e.defParamCharset?s(e.defParamCharset):C,m=e.defCharset||`utf8`,h=e.preservePath,g={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.fileHwm==`number`?e.fileHwm:void 0},_=e.limits,v=_&&typeof _.fieldSize==`number`?_.fieldSize:1*1024*1024,S=_&&typeof _.fileSize==`number`?_.fileSize:1/0,w=_&&typeof _.files==`number`?_.files:1/0,T=_&&typeof _.fields==`number`?_.fields:1/0,E=_&&typeof _.parts==`number`?_.parts:1/0,D=-1,O=0,k=0,A=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let ee=0,te,ne=0,j,re,ie,M,ae=!1,oe=!1,N=!1;this._hparser=null;let se=new y(e=>{this._hparser=null,A=!1,ie=`text/plain`,j=m,re=`7bit`,M=void 0,ae=!1;let t;if(!e[`content-disposition`]){A=!0;return}let n=l(e[`content-disposition`][0],r);if(!n||n.type!==`form-data`){A=!0;return}if(n.params&&(n.params.name&&(M=n.params.name),n.params[`filename*`]?t=n.params[`filename*`]:n.params.filename&&(t=n.params.filename),t!==void 0&&!h&&(t=a(t))),e[`content-type`]){let t=c(e[`content-type`][0]);t&&(ie=`${t.type}/${t.subtype}`,t.params&&typeof t.params.charset==`string`&&(j=t.params.charset.toLowerCase()))}if(e[`content-transfer-encoding`]&&(re=e[`content-transfer-encoding`][0].toLowerCase()),ie===`application/octet-stream`||t!==void 0){if(k===w){oe||(oe=!0,this.emit(`filesLimit`)),A=!0;return}if(++k,this.listenerCount(`file`)===0){A=!0;return}ee=0,this._fileStream=new b(g,this),++this._fileEndsLeft,this.emit(`file`,M,this._fileStream,{filename:t,encoding:re,mimeType:ie})}else{if(O===T){N||(N=!0,this.emit(`fieldsLimit`)),A=!0;return}if(++O,this.listenerCount(`field`)===0){A=!0;return}te=[],ne=0}}),ce=0,le=(e,t,n,r,i)=>{retrydata:for(;t;){if(this._hparser!==null){let e=this._hparser.push(t,n,r);if(e===-1){this._hparser=null,se.reset(),this.emit(`error`,Error(`Malformed part header`));break}n=e}if(n===r)break;if(ce!==0){if(ce===1){switch(t[n]){case 45:ce=2,++n;break;case 13:ce=3,++n;break;default:ce=0}if(n===r)return}if(ce===2){if(ce=0,t[n]===45){this._complete=!0,this._bparser=x;return}let e=this._writecb;this._writecb=p,le(!1,f,0,1,!1),this._writecb=e}else if(ce===3)if(ce=0,t[n]===10){if(++n,D>=E||(this._hparser=se,n===r))break;continue retrydata}else{let e=this._writecb;this._writecb=p,le(!1,d,0,1,!1),this._writecb=e}}if(!A){if(this._fileStream){let e,a=Math.min(r-n,S-ee);i?e=t.slice(n,n+a):(e=Buffer.allocUnsafe(a),t.copy(e,0,n,n+a)),ee+=e.length,ee===S?(e.length>0&&this._fileStream.push(e),this._fileStream.emit(`limit`),this._fileStream.truncated=!0,A=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(te!==void 0){let e,a=Math.min(r-n,v-ne);i?e=t.slice(n,n+a):(e=Buffer.allocUnsafe(a),t.copy(e,0,n,n+a)),ne+=a,te.push(e),ne===v&&(A=!0,ae=!0)}}break}if(e){if(ce=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(te!==void 0){let e;switch(te.length){case 0:e=``;break;case 1:e=o(te[0],j,0);break;default:e=o(Buffer.concat(te,ne),j,0)}te=void 0,ne=0,this.emit(`field`,M,e,{nameTruncated:!1,valueTruncated:ae,encoding:re,mimeType:ie})}++D===E&&this.emit(`partsLimit`)}};this._bparser=new i(`\r\n--${n}`,le),this._writecb=null,this._finalcb=null,this.write(u)}static detect(e){return e.type===`multipart`&&e.subtype===`form-data`}_write(e,t,n){this._writecb=n,this._bparser.push(e,0),this._writecb&&S(this)}_destroy(e,t){this._hparser=null,this._bparser=x,e||=E(this);let n=this._fileStream;n&&(this._fileStream=null,n.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error(`Unexpected end of form`));this._fileEndsLeft?this._finalcb=T.bind(null,this,e):T(this,e)}};function T(e,t,n){if(n)return t(n);n=E(e),t(n)}function E(e){if(e._hparser)return Error(`Malformed part header`);let t=e._fileStream;if(t&&(e._fileStream=null,t.destroy(Error(`Unexpected end of file`))),!e._complete)return Error(`Unexpected end of form`)}var D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];t.exports=w})),Cw=s(((e,t)=>{var{Writable:n}=require(`stream`),{getDecoder:r}=bw(),i=class extends n{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:typeof e.highWaterMark==`number`?e.highWaterMark:void 0};super(t);let n=e.defCharset||`utf8`;e.conType.params&&typeof e.conType.params.charset==`string`&&(n=e.conType.params.charset),this.charset=n;let i=e.limits;this.fieldSizeLimit=i&&typeof i.fieldSize==`number`?i.fieldSize:1*1024*1024,this.fieldsLimit=i&&typeof i.fields==`number`?i.fields:1/0,this.fieldNameSizeLimit=i&&typeof i.fieldNameSize==`number`?i.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key=``,this._val=``,this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=r(n)}static detect(e){return e.type===`application`&&e.subtype===`x-www-form-urlencoded`}_write(e,t,n){if(this._fields>=this.fieldsLimit)return n();let r=0,i=e.length;if(this._lastPos=0,this._byte!==-2){if(r=a(this,e,r,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();this._inKey?++this._bytesKey:++this._bytesVal}main:for(;r<i;)if(this._inKey){for(r=o(this,e,r,i);r<i;){switch(e[r]){case 61:this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue main;case 38:if(this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit(`field`,this._key,``,{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:`text/plain`}),this._key=``,this._val=``,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit(`fieldsLimit`),n();continue;case 43:this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._key+=` `,this._lastPos=r+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r)),this._lastPos=r+1,this._byte=-1,r=a(this,e,r+1,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();++this._bytesKey,r=o(this,e,r,i);continue}++r,++this._bytesKey,r=o(this,e,r,i)}this._lastPos<r&&(this._key+=e.latin1Slice(this._lastPos,r))}else{for(r=s(this,e,r,i);r<i;){switch(e[r]){case 38:if(this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._lastPos=++r,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit(`field`,this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:`text/plain`}),this._key=``,this._val=``,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit(`fieldsLimit`),n();continue main;case 43:this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._val+=` `,this._lastPos=r+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r)),this._lastPos=r+1,this._byte=-1,r=a(this,e,r+1,i),r===-1)return n(Error(`Malformed urlencoded form`));if(r>=i)return n();++this._bytesVal,r=s(this,e,r,i);continue}++r,++this._bytesVal,r=s(this,e,r,i)}this._lastPos<r&&(this._val+=e.latin1Slice(this._lastPos,r))}n()}_final(e){if(this._byte!==-2)return e(Error(`Malformed urlencoded form`));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit(`field`,this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:`text/plain`})),e()}};function a(e,t,n,r){if(n>=r)return r;if(e._byte===-1){let i=c[t[n++]];if(i===-1)return-1;if(i>=8&&(e._encode=2),n<r){let r=c[t[n++]];if(r===-1)return-1;e._inKey?e._key+=String.fromCharCode((i<<4)+r):e._val+=String.fromCharCode((i<<4)+r),e._byte=-2,e._lastPos=n}else e._byte=i}else{let r=c[t[n++]];if(r===-1)return-1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+r):e._val+=String.fromCharCode((e._byte<<4)+r),e._byte=-2,e._lastPos=n}return n}function o(e,t,n,r){if(e._bytesKey>e.fieldNameSizeLimit){for(e._keyTrunc||e._lastPos<n&&(e._key+=t.latin1Slice(e._lastPos,n-1)),e._keyTrunc=!0;n<r;++n){let r=t[n];if(r===61||r===38)break;++e._bytesKey}e._lastPos=n}return n}function s(e,t,n,r){if(e._bytesVal>e.fieldSizeLimit){for(e._valTrunc||e._lastPos<n&&(e._val+=t.latin1Slice(e._lastPos,n-1)),e._valTrunc=!0;n<r&&t[n]!==38;++n)++e._bytesVal;e._lastPos=n}return n}var c=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];t.exports=i})),ww=s(((e,t)=>{var{parseContentType:n}=bw();function r(e){let t=e.headers,r=n(t[`content-type`]);if(!r)throw Error(`Malformed content type`);for(let n of i){if(!n.detect(r))continue;let i={limits:e.limits,headers:t,conType:r,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(i.highWaterMark=e.highWaterMark),e.fileHwm&&(i.fileHwm=e.fileHwm),i.defCharset=e.defCharset,i.defParamCharset=e.defParamCharset,i.preservePath=e.preservePath,new n(i)}throw Error(`Unsupported content type: ${t[`content-type`]}`)}var i=[Sw(),Cw()].filter(function(e){return typeof e.detect==`function`});t.exports=e=>{if((typeof e!=`object`||!e)&&(e={}),typeof e.headers!=`object`||e.headers===null||typeof e.headers[`content-type`]!=`string`)throw Error(`Missing Content-Type`);return r(e)}})),Tw=s(((e,t)=>{var n=/^[^\[]*/,r=/^\[(\d+)\]/,i=/^\[([^\]]+)\]/;function a(e){function t(){return[{type:`object`,key:e,last:!0}]}var a=n.exec(e)[0];if(!a)return t();for(var o=e.length,s=a.length,c={type:`object`,key:a},l=[c];s<o;){var u;if(e[s]===`[`&&e[s+1]===`]`){if(s+=2,c.append=!0,s!==o)return t();continue}if(u=r.exec(e.substring(s)),u!==null){s+=u[0].length,c.nextType=`array`,c={type:`array`,key:parseInt(u[1],10)},l.push(c);continue}if(u=i.exec(e.substring(s)),u!==null){s+=u[0].length,c.nextType=`object`,c={type:`object`,key:u[1]},l.push(c);continue}return t()}return c.last=!0,l}t.exports=a})),Ew=s(((e,t)=>{function n(e){return e===void 0?`undefined`:Array.isArray(e)?`array`:typeof e==`object`?`object`:`scalar`}function r(e,t,i,a){switch(n(i)){case`undefined`:t.append?e[t.key]=[a]:e[t.key]=a;break;case`array`:e[t.key].push(a);break;case`object`:return r(i,{type:`object`,key:``,last:!0},i[``],a);case`scalar`:e[t.key]=[e[t.key],a];break}return e}function i(e,t,i,a){if(t.last)return r(e,t,i,a);var o;switch(n(i)){case`undefined`:return t.nextType===`array`?e[t.key]=[]:e[t.key]=Object.create(null),e[t.key];case`object`:return e[t.key];case`array`:return t.nextType===`array`?i:(o=Object.create(null),e[t.key]=o,i.forEach(function(e,t){e!==void 0&&(o[``+t]=e)}),o);case`scalar`:return o=Object.create(null),o[``]=i,e[t.key]=o,o}}t.exports=i})),Dw=s(((e,t)=>{var n=Tw(),r=Ew();function i(e,t,i){n(t).reduce(function(e,t){return r(e,t,e[t.key],i)},e)}t.exports=i})),Ow=s(((e,t)=>{var n=require(`events`).EventEmitter;function r(){n.call(this),this.value=0}r.prototype=Object.create(n.prototype),r.prototype.increment=function(){this.value++},r.prototype.decrement=function(){--this.value===0&&this.emit(`zero`)},r.prototype.isZero=function(){return this.value===0},r.prototype.onceZero=function(e){if(this.isZero())return e();this.once(`zero`,e)},t.exports=r})),kw=s(((e,t)=>{var n=require(`util`),r={LIMIT_PART_COUNT:`Too many parts`,LIMIT_FILE_SIZE:`File too large`,LIMIT_FILE_COUNT:`Too many files`,LIMIT_FIELD_KEY:`Field name too long`,LIMIT_FIELD_VALUE:`Field value too long`,LIMIT_FIELD_COUNT:`Too many fields`,LIMIT_UNEXPECTED_FILE:`Unexpected field`,MISSING_FIELD_NAME:`Field name missing`};function i(e,t){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=r[e],this.code=e,t&&(this.field=t)}n.inherits(i,Error),t.exports=i})),Aw=s(((e,t)=>{function n(e,t){var n=e.indexOf(t);~n&&e.splice(n,1)}function r(e,t){switch(this.strategy=e,this.req=t,e){case`NONE`:break;case`VALUE`:break;case`ARRAY`:t.files=[];break;case`OBJECT`:t.files=Object.create(null);break;default:throw Error(`Unknown file strategy: `+e)}}r.prototype.insertPlaceholder=function(e){var t={fieldname:e.fieldname};switch(this.strategy){case`NONE`:break;case`VALUE`:break;case`ARRAY`:this.req.files.push(t);break;case`OBJECT`:this.req.files[e.fieldname]?this.req.files[e.fieldname].push(t):this.req.files[e.fieldname]=[t];break}return t},r.prototype.removePlaceholder=function(e){switch(this.strategy){case`NONE`:break;case`VALUE`:break;case`ARRAY`:n(this.req.files,e);break;case`OBJECT`:this.req.files[e.fieldname].length===1?delete this.req.files[e.fieldname]:n(this.req.files[e.fieldname],e);break}},r.prototype.replacePlaceholder=function(e,t){if(this.strategy===`VALUE`){this.req.file=t;return}delete e.fieldname,Object.assign(e,t)},t.exports=r})),jw=s(((e,t)=>{function n(e,t,n){var r=e.length,i=[];if(r===0)return n(null,i);function a(o){var s=e[o];t(s,function(e){e&&(e.file=s,e.field=s.fieldname,i.push(e)),o<r-1?setImmediate(function(){a(o+1)}):n(null,i)})}a(0)}t.exports=n})),Mw=s(((e,t)=>{var n=yw(),r=ww(),i=Dw(),a=Ow(),o=kw(),s=Aw(),c=jw();function l(e){e.on(`readable`,()=>{for(;e.read()!==null;);})}function u(e){return function(t,u,d){if(!n(t,[`multipart`]))return d();var f=e(),p=f.limits,m=f.storage,h=f.fileFilter,g=f.fileStrategy,_=f.preservePath,v=f.defParamCharset;t.body=Object.create(null);var y,b=null,x=!1,S=!1,C=!1,w=new a,T=[];function E(e){var n=!1;function r(){n||(n=!0,d(e))}if(!x){if(x=!0,y&&(t.unpipe(y),setImmediate(()=>{y.removeAllListeners()})),l(t),t.resume(),e&&t.readable&&!t.destroyed){t.once(`end`,r),t.once(`error`,r),t.once(`close`,r);return}d(e)}}function D(){S&&w.isZero()&&!C&&E()}function O(e,n){if(C)return;C=!0;function r(){function n(e,n){m._removeFile(t,e,n)}c(T,n,function(t,n){if(t)return E(t);e.storageErrors=n,E(e)})}n?r():w.onceZero(r)}function k(e,t){O(new o(e,t))}function A(e){x||(y&&(t.unpipe(y),y.destroy(e)),O(e,!0))}t.on(`error`,function(e){A(e||Error(`Request error`))}),t.on(`aborted`,function(){A(Error(`Request aborted`))}),t.on(`close`,function(){t.readableEnded||A(Error(`Request closed`))});try{y=r({headers:t.headers,limits:p,preservePath:_,defParamCharset:v})}catch(e){return d(e)}b=new s(g,t),y.on(`field`,function(e,n,{nameTruncated:r,valueTruncated:a}){if(e==null)return k(`MISSING_FIELD_NAME`);if(r)return k(`LIMIT_FIELD_KEY`);if(a)return k(`LIMIT_FIELD_VALUE`,e);if(p&&Object.prototype.hasOwnProperty.call(p,`fieldNameSize`)&&e.length>p.fieldNameSize)return k(`LIMIT_FIELD_KEY`);i(t.body,e,n)}),y.on(`file`,function(e,n,{filename:r,encoding:i,mimeType:a}){var o=!1;if(n.on(`error`,function(e){o&&w.decrement(),O(e)}),e==null)return k(`MISSING_FIELD_NAME`);if(!r)return n.resume();if(p&&Object.prototype.hasOwnProperty.call(p,`fieldNameSize`)&&e.length>p.fieldNameSize)return k(`LIMIT_FIELD_KEY`);var s={fieldname:e,originalname:r,encoding:i,mimetype:a},c=b.insertPlaceholder(s);h(t,s,function(r,i){if(C)return b.removePlaceholder(c),n.resume();if(r)return b.removePlaceholder(c),O(r);if(!i)return b.removePlaceholder(c),n.resume();var a=!1;o=!0,w.increment(),Object.defineProperty(s,`stream`,{configurable:!0,enumerable:!1,value:n}),n.on(`limit`,function(){a=!0,k(`LIMIT_FILE_SIZE`,e)}),m._handleFile(t,s,function(e,t){if(a)return b.removePlaceholder(c),T.push({...s,...t}),w.decrement();if(e)return b.removePlaceholder(c),w.decrement(),O(e);var n={...s,...t};b.replacePlaceholder(c,n),T.push(n),w.decrement(),D()})})}),y.on(`error`,function(e){O(e)}),y.on(`partsLimit`,function(){k(`LIMIT_PART_COUNT`)}),y.on(`filesLimit`,function(){k(`LIMIT_FILE_COUNT`)}),y.on(`fieldsLimit`,function(){k(`LIMIT_FIELD_COUNT`)}),y.on(`close`,function(){S=!0,D()}),t.pipe(y)}}t.exports=u})),Nw=s(((e,t)=>{var n=require(`fs`),r=require(`os`),i=require(`path`),a=require(`crypto`);function o(e,t,n){a.randomBytes(16,function(e,t){n(e,e?void 0:t.toString(`hex`))})}function s(e,t,n){n(null,r.tmpdir())}function c(e){this.getFilename=e.filename||o,typeof e.destination==`string`?(n.mkdirSync(e.destination,{recursive:!0}),this.getDestination=function(t,n,r){r(null,e.destination)}):this.getDestination=e.destination||s}c.prototype._handleFile=function(e,t,r){var a=this;a.getDestination(e,t,function(o,s){if(o)return r(o);a.getFilename(e,t,function(e,a){if(e)return r(e);var o=i.join(s,a),c=n.createWriteStream(o);t.stream.pipe(c),c.on(`error`,r),c.on(`finish`,function(){r(null,{destination:s,filename:a,path:o,size:c.bytesWritten})})})})},c.prototype._removeFile=function(e,t,r){var i=t.path;delete t.destination,delete t.filename,delete t.path,n.unlink(i,r)},t.exports=function(e){return new c(e)}})),Pw=s(((e,t)=>{t.exports=require(`events`).EventEmitter})),Fw=s(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(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,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=require(`buffer`).Buffer,d=require(`util`).inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),Iw=s(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(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?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){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)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Lw=s(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),Rw=s(((e,t)=>{var n=Lw().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),zw=s(((e,t)=>{typeof Object.create==`function`?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){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),Bw=s(((e,t)=>{t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()===`true`}})),Vw=s(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){ce(t,e)}}var r;T.WritableState=C;var i={deprecate:Bw()},a=Pw(),o=require(`buffer`).Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=Iw(),d=Rw().getHighWaterMark,f=Lw().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;zw()(T,a);function S(){}function C(e,t,i){r||=Hw(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=e.decodeStrings!==!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ne(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,`buffer`,{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T?e&&e._writableState instanceof C:!1}})):w=function(e){return e instanceof this};function T(e){r||=Hw();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ie(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return c}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function ee(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(N,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),N(e,t))}function te(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function ne(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(te(n),t)ee(e,n,r,t,i);else{var a=M(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&ie(e,n),r?process.nextTick(j,e,n,a,i):j(e,n,a,i)}}function j(e,t,n,r){n||re(e,t),t.pendingcb--,r(),N(e,t)}function re(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function ie(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,A(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}T.prototype._write=function(e,t,n){n(new m(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||se(this,r,n),this},Object.defineProperty(T.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function M(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ae(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit(`prefinish`),N(e,t)})}function oe(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(ae,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function N(e,t){var n=M(t);if(n&&(oe(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function se(e,t,n){t.ending=!0,N(e,t),n&&(t.finished?process.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function ce(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,`destroyed`,{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(e,t){t(e)}})),Hw=s(((e,t)=>{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Jw(),i=Vw();zw()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,`writableHighWaterMark`,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,`writableBuffer`,{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,`writableLength`,{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),Uw=s(((e,t)=>{var n=require(`buffer`),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Ww=s((e=>{var t=Uw().Buffer,n=t.isEncoding||function(e){switch(e=``+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 r(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}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)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||``},a.prototype.end=d,a.prototype.text=u,a.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};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?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 h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Gw=s(((e,t)=>{var n=Lw().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Kw=s(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=Gw(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),qw=s(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),Jw=s(((e,t)=>{t.exports=E;var n;E.ReadableState=T,require(`events`).EventEmitter;var r=function(e,t){return e.listeners(t).length},i=Pw(),a=require(`buffer`).Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=require(`util`),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=Fw(),f=Iw(),p=Rw().getHighWaterMark,m=Lw().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;zw()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=Hw(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,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.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=Ww().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=Hw(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,`destroyed`,{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,ne(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):ie(e,o)):O(e,o,t,!1);else r||(o.reading=!1,ie(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&j(e)),ie(e,t)}function k(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){y||=Ww().StringDecoder;var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function ee(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function te(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=ee(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?de(this):j(this),null;if(e=te(e,t),e===0&&t.ended)return t.length===0&&de(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=te(n,t)));var i=e>0?ue(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&de(this)),i!==null&&this.emit(`data`,i),i};function ne(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,re(e)))}}function j(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(re,e))}function re(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,le(e)}function ie(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}E.prototype._read=function(e){S(this,new _(`_read()`))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?s:g;i.endEmitted?process.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=ae(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&pe(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function ae(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,le(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=pe(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?j(this):r.reading||process.nextTick(N,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(oe,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(oe,this),t};function oe(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function N(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,se(this,e)),e.paused=!1,this};function se(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(ce,e,t))}function ce(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),le(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function le(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(E.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=Kw()),b(this)}),Object.defineProperty(E.prototype,`readableHighWaterMark`,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,`readableBuffer`,{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,`readableFlowing`,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=ue,Object.defineProperty(E.prototype,`readableLength`,{enumerable:!1,get:function(){return this._readableState.length}});function ue(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function de(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(fe,t,e))}function fe(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=qw()),x(E,e,t)});function pe(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),Yw=s(((e,t)=>{t.exports=l;var n=Lw().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=Hw();zw()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),Xw=s(((e,t)=>{t.exports=r;var n=Yw();zw()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Zw=s(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Lw().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=Gw()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a(`streams`);var i,o=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){i||=e,e&&o.forEach(u),!a&&(o.forEach(u),r(i))})});return t.reduce(d)}t.exports=p})),Qw=s(((e,t)=>{e=t.exports=Jw(),e.Stream=e,e.Readable=e,e.Writable=Vw(),e.Duplex=Hw(),e.Transform=Yw(),e.PassThrough=Xw(),e.finished=Gw(),e.pipeline=Zw()})),$w=s(((e,t)=>{var n=Object.prototype.toString,r=typeof Buffer<`u`&&typeof Buffer.alloc==`function`&&typeof Buffer.allocUnsafe==`function`&&typeof Buffer.from==`function`;function i(e){return n.call(e).slice(8,-1)===`ArrayBuffer`}function a(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw RangeError(`'offset' is out of bounds`);if(n===void 0)n=i;else if(n>>>=0,n>i)throw RangeError(`'length' is out of bounds`);return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function o(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!Buffer.isEncoding(t))throw TypeError(`"encoding" must be a valid string encoding`);return r?Buffer.from(e,t):new Buffer(e,t)}function s(e,t,n){if(typeof e==`number`)throw TypeError(`"value" argument must not be a number`);return i(e)?a(e,t,n):typeof e==`string`?o(e,t):r?Buffer.from(e):new Buffer(e)}t.exports=s})),eT=s((e=>{var t=void 0,n=1e5,r=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,``)},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return typeof e==`function`},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),i=Math.LN2,a=Math.abs,o=Math.floor,s=Math.log,c=Math.min,l=Math.pow,u=Math.round;function d(e){if(p&&f){var t=p(e),n;for(n=0;n<t.length;n+=1)f(e,t[n],{value:e[t[n]],writable:!1,enumerable:!1,configurable:!1})}}var f=Object.defineProperty&&(function(){try{return Object.defineProperty({},`x`,{}),!0}catch{return!1}})()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw TypeError(`Object.defineProperty called on non-object`);return r.HasProperty(n,`get`)&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),r.HasProperty(n,`set`)&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),r.HasProperty(n,`value`)&&(e[t]=n.value),e},p=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw TypeError(`Object.getOwnPropertyNames called on non-object`);var t=[],n;for(n in e)r.HasOwnProperty(e,n)&&t.push(n);return t};function m(e){if(!f)return;if(e.length>n)throw RangeError(`Array too large for polyfill`);function t(t){f(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}var r;for(r=0;r<e.length;r+=1)t(r)}function h(e,t){var n=32-t;return e<<n>>n}function g(e,t){var n=32-t;return e<<n>>>n}function _(e){return[e&255]}function v(e){return h(e[0],8)}function y(e){return[e&255]}function b(e){return g(e[0],8)}function x(e){return e=u(Number(e)),[e<0?0:e>255?255:e&255]}function S(e){return[e>>8&255,e&255]}function C(e){return h(e[0]<<8|e[1],16)}function w(e){return[e>>8&255,e&255]}function T(e){return g(e[0]<<8|e[1],16)}function E(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function D(e){return h(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function O(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function k(e){return g(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function A(e,t,n){var r=(1<<t-1)-1,u,d,f,p,m,h,g;function _(e){var t=o(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e===e?e===1/0||e===-1/0?(d=(1<<t)-1,f=0,u=+(e<0)):e===0?(d=0,f=0,u=+(1/e==-1/0)):(u=e<0,e=a(e),e>=l(2,1-r)?(d=c(o(s(e)/i),1023),f=_(e/l(2,d)*l(2,n)),f/l(2,n)>=2&&(d+=1,f=1),d>r?(d=(1<<t)-1,f=0):(d+=r,f-=l(2,n))):(d=0,f=_(e/l(2,1-r-n)))):(d=(1<<t)-1,f=l(2,n-1),u=0),m=[],p=n;p;--p)m.push(f%2?1:0),f=o(f/2);for(p=t;p;--p)m.push(d%2?1:0),d=o(d/2);for(m.push(+!!u),m.reverse(),h=m.join(``),g=[];h.length;)g.push(parseInt(h.substring(0,8),2)),h=h.substring(8);return g}function ee(e,t,n){var r=[],i,a,o,s,c,u,d,f;for(i=e.length;i;--i)for(o=e[i-1],a=8;a;--a)r.push(o%2?1:0),o>>=1;return r.reverse(),s=r.join(``),c=(1<<t-1)-1,u=parseInt(s.substring(0,1),2)?-1:1,d=parseInt(s.substring(1,1+t),2),f=parseInt(s.substring(1+t),2),d===(1<<t)-1?f===0?u*(1/0):NaN:d>0?u*l(2,d-c)*(1+f/l(2,n)):f===0?u<0?-0:0:u*l(2,-(c-1))*(f/l(2,n))}function te(e){return ee(e,11,52)}function ne(e){return A(e,11,52)}function j(e){return ee(e,8,23)}function re(e){return A(e,8,23)}(function(){var n=function(e){if(e=r.ToInt32(e),e<0)throw RangeError(`ArrayBuffer size is not a small enough positive integer`);this.byteLength=e,this._bytes=[],this._bytes.length=e;var t;for(t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};e.ArrayBuffer=e.ArrayBuffer||n;var i=function(){};function a(e,a,o){var s=function(e,t,i){var a,o,c,l;if(!arguments.length||typeof arguments[0]==`number`){if(this.length=r.ToInt32(arguments[0]),i<0)throw RangeError(`ArrayBufferView size is not a small enough positive integer`);this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]==`object`&&arguments[0].constructor===s)for(a=arguments[0],this.length=a.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,a._getter(c));else if(typeof arguments[0]==`object`&&!(arguments[0]instanceof n||r.Class(arguments[0])===`ArrayBuffer`))for(o=arguments[0],this.length=r.ToUint32(o.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)l=o[c],this._setter(c,Number(l));else if(typeof arguments[0]==`object`&&(arguments[0]instanceof n||r.Class(arguments[0])===`ArrayBuffer`)){if(this.buffer=e,this.byteOffset=r.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(this.byteOffset%this.BYTES_PER_ELEMENT)throw RangeError(`ArrayBuffer length minus the byteOffset is not a multiple of the element size.`);if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw RangeError(`length of buffer minus byteOffset not a multiple of the element size`);this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(i),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`)}else throw TypeError(`Unexpected argument type(s)`);this.constructor=s,d(this),m(this)};return s.prototype=new i,s.prototype.BYTES_PER_ELEMENT=e,s.prototype._pack=a,s.prototype._unpack=o,s.BYTES_PER_ELEMENT=e,s.prototype._getter=function(e){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);if(e=r.ToUint32(e),e>=this.length)return t;var n=[],i,a;for(i=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,a+=1)n.push(this.buffer._bytes[a]);return this._unpack(n)},s.prototype.get=s.prototype._getter,s.prototype._setter=function(e,n){if(arguments.length<2)throw SyntaxError(`Not enough arguments`);if(e=r.ToUint32(e),e>=this.length)return t;var i=this._pack(n),a,o;for(a=0,o=this.byteOffset+e*this.BYTES_PER_ELEMENT;a<this.BYTES_PER_ELEMENT;a+=1,o+=1)this.buffer._bytes[o]=i[a]},s.prototype.set=function(e,t){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);var n,i,a,o,s,c,l,u,d,f;if(typeof arguments[0]==`object`&&arguments[0].constructor===this.constructor){if(n=arguments[0],a=r.ToUint32(arguments[1]),a+n.length>this.length)throw RangeError(`Offset plus length of array is out of range`);if(u=this.byteOffset+a*this.BYTES_PER_ELEMENT,d=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(f=[],s=0,c=n.byteOffset;s<d;s+=1,c+=1)f[s]=n.buffer._bytes[c];for(s=0,l=u;s<d;s+=1,l+=1)this.buffer._bytes[l]=f[s]}else for(s=0,c=n.byteOffset,l=u;s<d;s+=1,c+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[c]}else if(typeof arguments[0]==`object`&&arguments[0].length!==void 0){if(i=arguments[0],o=r.ToUint32(i.length),a=r.ToUint32(arguments[1]),a+o>this.length)throw RangeError(`Offset plus length of array is out of range`);for(s=0;s<o;s+=1)c=i[s],this._setter(a+s,Number(c))}else throw TypeError(`Unexpected argument type(s)`)},s.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=r.ToInt32(e),t=r.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length),t=n(t,0,this.length);var i=t-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},s}var o=a(1,_,v),s=a(1,y,b),c=a(1,x,b),l=a(2,S,C),u=a(2,w,T),f=a(4,E,D),p=a(4,O,k),h=a(4,re,j),g=a(8,ne,te);e.Int8Array=e.Int8Array||o,e.Uint8Array=e.Uint8Array||s,e.Uint8ClampedArray=e.Uint8ClampedArray||c,e.Int16Array=e.Int16Array||l,e.Uint16Array=e.Uint16Array||u,e.Int32Array=e.Int32Array||f,e.Uint32Array=e.Uint32Array||p,e.Float32Array=e.Float32Array||h,e.Float64Array=e.Float64Array||g})(),(function(){function t(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}var n=function(){var n=new e.Uint16Array([4660]);return t(new e.Uint8Array(n.buffer),0)===18}(),i=function(t,n,i){if(arguments.length===0)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||r.Class(t)===`ArrayBuffer`))throw TypeError(`TypeError`);if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=r.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`);d(this)};function a(i){return function(a,o){if(a=r.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);a+=this.byteOffset;var s=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),c=[],l;for(l=0;l<i.BYTES_PER_ELEMENT;l+=1)c.push(t(s,l));return!!o==!!n&&c.reverse(),t(new i(new e.Uint8Array(c).buffer),0)}}i.prototype.getUint8=a(e.Uint8Array),i.prototype.getInt8=a(e.Int8Array),i.prototype.getUint16=a(e.Uint16Array),i.prototype.getInt16=a(e.Int16Array),i.prototype.getUint32=a(e.Uint32Array),i.prototype.getInt32=a(e.Int32Array),i.prototype.getFloat32=a(e.Float32Array),i.prototype.getFloat64=a(e.Float64Array);function o(i){return function(a,o,s){if(a=r.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);var c=new i([o]),l=new e.Uint8Array(c.buffer),u=[],d,f;for(d=0;d<i.BYTES_PER_ELEMENT;d+=1)u.push(t(l,d));!!s==!!n&&u.reverse(),f=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),f.set(u)}}i.prototype.setUint8=o(e.Uint8Array),i.prototype.setInt8=o(e.Int8Array),i.prototype.setUint16=o(e.Uint16Array),i.prototype.setInt16=o(e.Int16Array),i.prototype.setUint32=o(e.Uint32Array),i.prototype.setInt32=o(e.Int32Array),i.prototype.setFloat32=o(e.Float32Array),i.prototype.setFloat64=o(e.Float64Array),e.DataView=e.DataView||i})()})),tT=s(((e,t)=>{var n=Qw().Writable,r=zw(),i=$w();if(typeof Uint8Array>`u`)var a=eT().Uint8Array;else var a=Uint8Array;function o(e,t){if(!(this instanceof o))return new o(e,t);typeof e==`function`&&(t=e,e={}),e||={};var r=e.encoding,i=!1;r?(r=String(r).toLowerCase(),(r===`u8`||r===`uint8`)&&(r=`uint8array`)):i=!0,n.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=i,t&&this.on(`finish`,function(){t(this.getBody())}),this.body=[]}t.exports=o,r(o,n),o.prototype._write=function(e,t,n){this.body.push(e),n()},o.prototype.inferEncoding=function(e){var t=e===void 0?this.body[0]:e;return Buffer.isBuffer(t)?`buffer`:typeof Uint8Array<`u`&&t instanceof Uint8Array?`uint8array`:Array.isArray(t)?`array`:typeof t==`string`?`string`:Object.prototype.toString.call(t)===`[object Object]`?`object`:`buffer`},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding===`array`?d(this.body):this.encoding===`string`?l(this.body):this.encoding===`buffer`?u(this.body):this.encoding===`uint8array`?f(this.body):this.body)},Array.isArray;function s(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function c(e){return typeof e==`string`||s(e)||e&&typeof e.subarray==`function`}function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];typeof r==`string`||Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.isBuffer(e[0])?(t=Buffer.concat(t),t=t.toString(`utf8`)):t=t.join(``),t}function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.concat(t)}function d(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}function f(e){for(var t=0,n=0;n<e.length;n++)typeof e[n]==`string`&&(e[n]=i(e[n])),t+=e[n].length;for(var r=new a(t),n=0,o=0;n<e.length;n++)for(var s=e[n],c=0;c<s.length;c++)r[o++]=s[c];return r}})),nT=s(((e,t)=>{var n=tT();function r(e){}r.prototype._handleFile=function(e,t,r){t.stream.pipe(n({encoding:`buffer`},function(e){r(null,{buffer:e,size:e.length})}))},r.prototype._removeFile=function(e,t,n){delete t.buffer,n(null)},t.exports=function(e){return new r(e)}})),rT=s(((e,t)=>{var n=Mw(),r=Nw(),i=nT(),a=kw();function o(e,t,n){n(null,!0)}function s(e){e.storage?this.storage=e.storage:e.dest?this.storage=r({destination:e.dest}):this.storage=i(),this.limits=e.limits,this.preservePath=e.preservePath,this.defParamCharset=e.defParamCharset||`latin1`,this.fileFilter=e.fileFilter||o}s.prototype._makeMiddleware=function(e,t){function r(){var n=this.fileFilter,r=Object.create(null);e.forEach(function(e){typeof e.maxCount==`number`?r[e.name]=e.maxCount:r[e.name]=1/0});function i(e,t,i){if((r[t.fieldname]||0)<=0)return i(new a(`LIMIT_UNEXPECTED_FILE`,t.fieldname));--r[t.fieldname],n(e,t,i)}return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:i,fileStrategy:t}}return n(r.bind(this))},s.prototype.single=function(e){return this._makeMiddleware([{name:e,maxCount:1}],`VALUE`)},s.prototype.array=function(e,t){return this._makeMiddleware([{name:e,maxCount:t}],`ARRAY`)},s.prototype.fields=function(e){return this._makeMiddleware(e,`OBJECT`)},s.prototype.none=function(){return this._makeMiddleware([],`NONE`)},s.prototype.any=function(){function e(){return{limits:this.limits,preservePath:this.preservePath,defParamCharset:this.defParamCharset,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:`ARRAY`}}return n(e.bind(this))};function c(e){if(e===void 0)return new s({});if(typeof e==`object`&&e)return new s(e);throw TypeError(`Expected object for argument options`)}t.exports=c,t.exports.diskStorage=r,t.exports.memoryStorage=i,t.exports.MulterError=a})),iT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MULTER_MODULE_OPTIONS=void 0,e.MULTER_MODULE_OPTIONS=`MULTER_MODULE_OPTIONS`})),aT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.busboyExceptions=e.multerExceptions=void 0,e.multerExceptions={LIMIT_PART_COUNT:`Too many parts`,LIMIT_FILE_SIZE:`File too large`,LIMIT_FILE_COUNT:`Too many files`,LIMIT_FIELD_KEY:`Field name too long`,LIMIT_FIELD_VALUE:`Field value too long`,LIMIT_FIELD_COUNT:`Too many fields`,LIMIT_UNEXPECTED_FILE:`Unexpected field`,MISSING_FIELD_NAME:`Field name missing`},e.busboyExceptions={MULTIPART_BOUNDARY_NOT_FOUND:`Multipart: Boundary not found`,MULTIPART_MALFORMED_PART_HEADER:`Malformed part header`,MULTIPART_UNEXPECTED_END_OF_FORM:`Unexpected end of form`,MULTIPART_UNEXPECTED_END_OF_FILE:`Unexpected end of file`}})),oT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.transformException=r;var t=H(),n=aT();function r(e){if(!e||e instanceof t.HttpException)return e;switch(e.message){case n.multerExceptions.LIMIT_FILE_SIZE:return new t.PayloadTooLargeException(e.message);case n.multerExceptions.LIMIT_FILE_COUNT:case n.multerExceptions.LIMIT_FIELD_KEY:case n.multerExceptions.LIMIT_FIELD_VALUE:case n.multerExceptions.LIMIT_FIELD_COUNT:case n.multerExceptions.LIMIT_UNEXPECTED_FILE:case n.multerExceptions.LIMIT_PART_COUNT:case n.multerExceptions.MISSING_FIELD_NAME:return e.field?new t.BadRequestException(`${e.message} - ${e.field}`):new t.BadRequestException(e.message);case n.busboyExceptions.MULTIPART_BOUNDARY_NOT_FOUND:return new t.BadRequestException(e.message);case n.busboyExceptions.MULTIPART_MALFORMED_PART_HEADER:case n.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FORM:case n.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FILE:return new t.BadRequestException(`Multipart: ${e.message}`)}return e}})),sT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AnyFilesInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e){let o=class{constructor(t={}){this.multer=r({...t,...e})}async intercept(e,t){let n=e.switchToHttp();return await new Promise((e,t)=>this.multer.any()(n.getRequest(),n.getResponse(),n=>{if(n)return t((0,a.transformException)(n));e()})),t.handle()}};return o=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],o),(0,n.mixin)(o)}})),cT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileFieldsInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e,o){let s=class{constructor(e={}){this.multer=r({...e,...o})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.fields(e)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return s=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],s),(0,n.mixin)(s)}})),lT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FileInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e,o){let s=class{constructor(e={}){this.multer=r({...e,...o})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.single(e)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return s=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],s),(0,n.mixin)(s)}})),uT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FilesInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e,o,s){let c=class{constructor(e={}){this.multer=r({...e,...s})}async intercept(t,n){let r=t.switchToHttp();return await new Promise((t,n)=>this.multer.array(e,o)(r.getRequest(),r.getResponse(),e=>{if(e)return n((0,a.transformException)(e));t()})),n.handle()}};return c=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],c),(0,n.mixin)(c)}})),dT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoFilesInterceptor=o;var t=E(),n=H(),r=rT(),i=iT(),a=oT();function o(e){let o=class{constructor(t={}){this.multer=r({...t,...e})}async intercept(e,t){let n=e.switchToHttp();return await new Promise((e,t)=>this.multer.none()(n.getRequest(),n.getResponse(),n=>{if(n)return t((0,a.transformException)(n));e()})),t.handle()}};return o=t.__decorate([t.__param(0,(0,n.Optional)()),t.__param(0,(0,n.Inject)(i.MULTER_MODULE_OPTIONS)),t.__metadata(`design:paramtypes`,[Object])],o),(0,n.mixin)(o)}})),fT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(sT(),e),t.__exportStar(cT(),e),t.__exportStar(lT(),e),t.__exportStar(uT(),e),t.__exportStar(dT(),e)})),pT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),mT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(pT(),e)})),hT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MULTER_MODULE_ID=void 0,e.MULTER_MODULE_ID=`MULTER_MODULE_ID`})),gT=s((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.MulterModule=void 0;var n=E(),r=H(),i=fn(),a=iT(),o=hT(),s=t=class{static register(e={}){return{module:t,providers:[{provide:a.MULTER_MODULE_OPTIONS,useFactory:()=>e},{provide:o.MULTER_MODULE_ID,useValue:(0,i.randomStringGenerator)()}],exports:[a.MULTER_MODULE_OPTIONS]}}static registerAsync(e){return{module:t,imports:e.imports,providers:[...this.createAsyncProviders(e),{provide:o.MULTER_MODULE_ID,useValue:(0,i.randomStringGenerator)()}],exports:[a.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(e){return e.useExisting||e.useFactory?[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(e){return e.useFactory?{provide:a.MULTER_MODULE_OPTIONS,useFactory:e.useFactory,inject:e.inject||[]}:{provide:a.MULTER_MODULE_OPTIONS,useFactory:async e=>e.createMulterOptions(),inject:[e.useExisting||e.useClass]}}};e.MulterModule=s,e.MulterModule=s=t=n.__decorate([(0,r.Module)({})],s)})),_T=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(fT(),e),t.__exportStar(mT(),e),t.__exportStar(gT(),e)})),vT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(lw(),e),t.__exportStar(fw(),e),t.__exportStar(_T(),e)})),yT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestFactory=e.NestFactoryStatic=void 0;var t=it(),n=ct(),r=Vn(),i=A(),a=Dx(),o=Ox(),s=KC(),c=qC(),l=JC(),u=QS(),d=IS(),f=YC(),p=tC(),m=XC(),h=MS(),g=kx(),_=WC(),v=jC(),y=rw(),b=class{constructor(){this.logger=new n.Logger(`NestFactory`,{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}async create(e,t,n){let[r,i]=this.isHttpServer(t)?[t,n]:[this.createHttpAdapter(),t],o=new a.ApplicationConfig,s=new u.NestContainer(o,i),c=this.createGraphInspector(i,s);this.setAbortOnError(t,n),this.registerLoggerConfiguration(i),await this.initialize(e,s,c,o,i,r);let l=new _.NestApplication(s,r,o,c,i),d=this.createNestInstance(l);return this.createAdapterProxy(d,r)}async createMicroservice(e,t){let{NestMicroservice:n}=(0,r.loadPackage)(`@nestjs/microservices`,`NestFactory`,()=>UC()),i=new a.ApplicationConfig,o=new u.NestContainer(i,t),s=this.createGraphInspector(t,o);return this.setAbortOnError(t),this.registerLoggerConfiguration(t),await this.initialize(e,o,s,i,t),this.createNestInstance(new n(o,t,s,i))}async createApplicationContext(e,t){let n=new a.ApplicationConfig,r=new u.NestContainer(n,t),i=this.createGraphInspector(t,r);this.setAbortOnError(t),this.registerLoggerConfiguration(t),await this.initialize(e,r,i,n,t);let o=r.getModules().values().next().value,s=this.createNestInstance(new v.NestApplicationContext(r,t,o));return this.autoFlushLogs&&s.flushLogsOnOverride(),s.init()}createNestInstance(e){return this.createProxy(e)}async initialize(e,t,n,r=new a.ApplicationConfig,i={},c=null){h.UuidFactory.mode=i.snapshot?h.UuidFactoryMode.Deterministic:h.UuidFactoryMode.Random;let u=new d.Injector({preview:i.preview,instanceDecorator:i.instrument?.instanceDecorator}),p=new f.InstanceLoader(t,u,n),m=new g.MetadataScanner,_=new y.DependenciesScanner(t,m,n,r);t.setHttpAdapter(c);let v=this.abortOnError===!1?l.rethrow:void 0;await c?.init?.();try{this.logger.log(o.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await _.scan(e),await p.createInstancesOfDependencies(),_.applyApplicationProviders()},v,this.autoFlushLogs)}catch(e){this.handleInitializationError(e)}}handleInitializationError(e){this.abortOnError&&process.abort(),(0,l.rethrow)(e)}createProxy(e){let t=this.createExceptionProxy();return new Proxy(e,{get:t,set:t})}createExceptionProxy(){return(e,t)=>{if(t in e)return(0,i.isFunction)(e[t])?this.createExceptionZone(e,t):e[t]}}createExceptionZone(e,t){let n=this.abortOnError===!1?l.rethrow:void 0;return(...r)=>{let i;return s.ExceptionsZone.run(()=>{i=e[t](...r)},n,this.autoFlushLogs),i}}registerLoggerConfiguration(e){if(!e)return;let{logger:r,bufferLogs:a,autoFlushLogs:o,forceConsole:s}=e;if(r!==!0&&!(0,i.isNil)(r))n.Logger.overrideLogger(r);else if(s){let e=new t.ConsoleLogger({forceConsole:!0});n.Logger.overrideLogger(e)}a&&n.Logger.attachBuffer(),this.autoFlushLogs=o??!0}createHttpAdapter(e){let{ExpressAdapter:t}=(0,c.loadAdapter)(`@nestjs/platform-express`,`HTTP`,()=>vT());return new t(e)}isHttpServer(e){return!!(e&&e.patch)}setAbortOnError(e,t){this.abortOnError=this.isHttpServer(e)?!(t&&t.abortOnError===!1):!(e&&e.abortOnError===!1)}createAdapterProxy(e,t){let n=new Proxy(e,{get:(e,r)=>{let a=e=>e instanceof Promise?e.then(a):e instanceof _.NestApplication?n:e;return!(r in e)&&r in t?(...e)=>a(this.createExceptionZone(t,r)(...e)):(0,i.isFunction)(e[r])?(...t)=>a(e[r](...t)):e[r]}});return n}createGraphInspector(e,t){return e?.snapshot?new p.GraphInspector(t):m.NoopGraphInspector}};e.NestFactoryStatic=b,e.NestFactory=new b})),bT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignToObject=t;function t(e,t){return Object.defineProperties(e,Object.keys(t).reduce((e,n)=>(e[n]=Object.getOwnPropertyDescriptor(t,n),e),Object.create(null))),e}})),xT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REPL_INITIALIZED_MESSAGE=void 0,e.REPL_INITIALIZED_MESSAGE=`REPL initialized`})),ST=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplFunction=void 0;var t=nt();e.ReplFunction=class{constructor(e){this.ctx=e,this.logger=e.logger}makeHelpMessage(){let{description:e,name:n,signature:r}=this.fnDefinition,i=`${n}${r}`;return`${t.clc.yellow(e)}\n${t.clc.magentaBright(`Interface:`)} ${t.clc.bold(i)}\n`}}})),CT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.HelpReplFn=void 0;var t=I(),n=nt(),r=ST(),i=class e extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`help`,signature:`() => void`,description:`Display all available REPL native functions.`}}action(){let r=(0,t.iterate)(this.ctx.nativeFunctions).map(([,e])=>e.fnDefinition).toArray().sort((e,t)=>e.name<t.name?-1:1);this.ctx.writeToStdout(`You can call ${n.clc.bold(`.help`)} on any function listed below (e.g.: ${n.clc.bold(`help.help`)}):\n\n`+r.map(e.buildHelpMessage).join(`
|
|
138
138
|
`)+`
|
|
139
|
-
`)}};e.HelpReplFn=i,i.buildHelpMessage=({name:e,description:t})=>n.clc.cyanBright(e)+(t?` ${n.clc.bold(`-`)} ${t}`:``)})),
|
|
139
|
+
`)}};e.HelpReplFn=i,i.buildHelpMessage=({name:e,description:t})=>n.clc.cyanBright(e)+(t?` ${n.clc.bold(`-`)} ${t}`:``)})),wT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.GetReplFn=void 0;var t=ST();e.GetReplFn=class extends t.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`get`,signature:`(token: InjectionToken) => any`,description:`Retrieves an instance of either injectable or controller, otherwise, throws exception.`,aliases:[`$`]}}action(e){return this.ctx.app.get(e)}}})),TT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ResolveReplFn=void 0;var t=ST();e.ResolveReplFn=class extends t.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`resolve`,description:`Resolves transient or request-scoped instance of either injectable or controller, otherwise, throws exception.`,signature:`(token: InjectionToken, contextId: any) => Promise<any>`}}action(e,t){return this.ctx.app.resolve(e,t)}}})),ET=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SelectReplFn=void 0;var t=ST();e.SelectReplFn=class extends t.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`select`,description:`Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module.`,signature:`(token: DynamicModule | ClassRef) => INestApplicationContext`}}action(e){return this.ctx.app.select(e)}}})),DT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DebugReplFn=void 0;var t=nt(),n=ST();e.DebugReplFn=class extends n.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`debug`,description:`Print all registered modules as a list together with their controllers and providers.
|
|
140
140
|
If the argument is passed in, for example, "debug(MyModule)" then it will only print components of this specific module.`,signature:`(moduleCls?: ClassRef | string) => void`}}action(e){if(this.ctx.writeToStdout(`
|
|
141
141
|
`),e){let t=typeof e==`function`?e.name:e,n=this.ctx.debugRegistry[t];if(!n)return this.logger.error(`"${t}" has not been found in the modules registry`);this.printCtrlsAndProviders(t,n)}else Object.keys(this.ctx.debugRegistry).forEach(e=>{this.printCtrlsAndProviders(e,this.ctx.debugRegistry[e])});this.ctx.writeToStdout(`
|
|
142
|
-
`)}printCtrlsAndProviders(e,n){this.ctx.writeToStdout(`${t.clc.green(e)}:\n`),this.printCollection(`controllers`,n.controllers),this.printCollection(`providers`,n.providers)}printCollection(e,n){let r=Object.keys(n);r.length<=0||(this.ctx.writeToStdout(` ${t.clc.yellow(`- ${e}`)}:\n`),r.forEach(e=>this.ctx.writeToStdout(` ${t.clc.green(`◻`)} ${e}\n`)))}}})),
|
|
142
|
+
`)}printCtrlsAndProviders(e,n){this.ctx.writeToStdout(`${t.clc.green(e)}:\n`),this.printCollection(`controllers`,n.controllers),this.printCollection(`providers`,n.providers)}printCollection(e,n){let r=Object.keys(n);r.length<=0||(this.ctx.writeToStdout(` ${t.clc.yellow(`- ${e}`)}:\n`),r.forEach(e=>this.ctx.writeToStdout(` ${t.clc.green(`◻`)} ${e}\n`)))}}})),OT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MethodsReplFn=void 0;var t=nt(),n=kx(),r=ST();e.MethodsReplFn=class extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:`methods`,description:`Display all public methods available on a given provider or controller.`,signature:`(token: ClassRef | string) => void`},this.metadataScanner=new n.MetadataScanner}action(e){let n=typeof e==`function`?e?.prototype:Object.getPrototypeOf(this.ctx.app.get(e)),r=this.metadataScanner.getAllMethodNames(n);this.ctx.writeToStdout(`
|
|
143
143
|
`),this.ctx.writeToStdout(`${t.clc.green(`Methods`)}:\n`),r.forEach(e=>this.ctx.writeToStdout(` ${t.clc.yellow(`◻`)} ${e}\n`)),this.ctx.writeToStdout(`
|
|
144
|
-
`)}}})),
|
|
144
|
+
`)}}})),kT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(CT(),e),t.__exportStar(wT(),e),t.__exportStar(TT(),e),t.__exportStar(ET(),e),t.__exportStar(DT(),e),t.__exportStar(OT(),e)})),AT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplContext=void 0;var t=H(),n=Dx(),r=$S(),i=KS(),a=kT();e.ReplContext=class e{constructor(n,r){this.app=n,this.logger=new t.Logger(e.name),this.debugRegistry={},this.globalScope=Object.create(null),this.nativeFunctions=new Map,this.container=n.container,this.initializeContext(),this.initializeNativeFunctions(r||[])}writeToStdout(e){process.stdout.write(e)}initializeContext(){this.container.getModules().forEach(e=>{let t=e.metatype.name;t!==i.InternalCoreModule.name&&(this.globalScope[t]&&(t+=` (${e.token})`),this.introspectCollection(e,t,`providers`),this.introspectCollection(e,t,`controllers`),Object.defineProperty(this.globalScope,t,{value:e.metatype,configurable:!1,enumerable:!0}))})}introspectCollection(e,t,i){let a={};e[i].forEach(({token:t})=>{let i=this.stringifyToken(t);i===n.ApplicationConfig.name||i===e.metatype.name||(this.globalScope[i]||Object.defineProperty(this.globalScope,i,{value:t,configurable:!1,enumerable:!0}),i!==r.ModuleRef.name&&(a[i]=t))}),this.debugRegistry[t]={...this.debugRegistry?.[t],[i]:a}}stringifyToken(e){return typeof e==`string`?`"${e}"`:typeof e==`function`?e.name:e?.toString()}addNativeFunction(e){let t=new e(this),n=[t];return this.nativeFunctions.set(t.fnDefinition.name,t),t.fnDefinition.aliases?.forEach(e=>{let r=Object.create(t);r.fnDefinition={name:e,description:r.fnDefinition.description,signature:r.fnDefinition.signature},this.nativeFunctions.set(e,r),n.push(r)}),n}registerFunctionIntoGlobalScope(e){this.globalScope[e.fnDefinition.name]=e.action.bind(e);let t=this.globalScope[e.fnDefinition.name];Object.defineProperty(t,`help`,{enumerable:!1,configurable:!1,get:()=>this.writeToStdout(e.makeHelpMessage())})}initializeNativeFunctions(e){[a.HelpReplFn,a.GetReplFn,a.ResolveReplFn,a.SelectReplFn,a.DebugReplFn,a.MethodsReplFn].concat(e).forEach(e=>{this.addNativeFunction(e).forEach(e=>{this.registerFunctionIntoGlobalScope(e)})})}}})),jT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReplLogger=void 0;var t=H(),n=WC(),r=zC(),i=BC(),a=class e extends t.ConsoleLogger{log(t,n){if(!e.ignoredContexts.includes(n))return super.log.apply(this,Array.from(arguments))}};e.ReplLogger=a,a.ignoredContexts=[i.RoutesResolver.name,r.RouterExplorer.name,n.NestApplication.name]})),MT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.defineDefaultCommandsOnRepl=n;function t(e){Object.keys(e.commands).sort().forEach(t=>{let n=e.commands[t];n&&e.output.write(`${t}\t${n.help||``}\n`)})}function n(e){e.defineCommand(`help`,{help:`Show REPL options`,action(e){if(this.clearBufferedCommand(),e){let t=(this.commands[e]||this.context[e])?.help;t&&this.output.write(`${t}\n`)}else t(this),this.output.write(`
|
|
145
145
|
|
|
146
146
|
`),this.context.help(),this.output.write(`
|
|
147
147
|
Press Ctrl+C to abort current expression, Ctrl+D to exit the REPL
|
|
148
|
-
`);this.displayPrompt()}})}})),IT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repl=l;var t=U(),n=it(),r=ST(),i=CT(),a=wT(),o=NT(),s=PT(),c=FT();async function l(e,l={}){let u=await r.NestFactory.createApplicationContext(e,{abortOnError:!1,logger:new s.ReplLogger});await u.init();let d=new o.ReplContext(u);t.Logger.log(a.REPL_INITIALIZED_MESSAGE);let f=(await Promise.resolve().then(()=>require(`repl`))).start({prompt:n.clc.green(`> `),ignoreUndefined:!0,...l});return(0,i.assignToObject)(f.context,d.globalScope),(0,c.defineDefaultCommandsOnRepl)(f),f.on(`exit`,async()=>{await u.close()}),f}})),LT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(IT(),e)})),RT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),zT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),k().__exportStar(RT(),e)})),BT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REQUEST=void 0;var t=Vx();Object.defineProperty(e,`REQUEST`,{enumerable:!0,get:function(){return t.REQUEST}})})),VT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterModule=void 0;var t=k();t.__exportStar(zT(),e),t.__exportStar(BT(),e);var n=wC();Object.defineProperty(e,`RouterModule`,{enumerable:!0,get:function(){return n.RouterModule}})})),HT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestFactory=e.APP_PIPE=e.APP_INTERCEPTOR=e.APP_GUARD=e.APP_FILTER=void 0;var t=k();m(),t.__exportStar(kx(),e),t.__exportStar(Ax(),e);var n=jx();Object.defineProperty(e,`APP_FILTER`,{enumerable:!0,get:function(){return n.APP_FILTER}}),Object.defineProperty(e,`APP_GUARD`,{enumerable:!0,get:function(){return n.APP_GUARD}}),Object.defineProperty(e,`APP_INTERCEPTOR`,{enumerable:!0,get:function(){return n.APP_INTERCEPTOR}}),Object.defineProperty(e,`APP_PIPE`,{enumerable:!0,get:function(){return n.APP_PIPE}}),t.__exportStar(Lx(),e),t.__exportStar(Bx(),e),t.__exportStar(hS(),e),t.__exportStar(nC(),e),t.__exportStar(aC(),e),t.__exportStar(Mx(),e),t.__exportStar(pC(),e),t.__exportStar(qC(),e),t.__exportStar(PC(),e);var r=ST();Object.defineProperty(e,`NestFactory`,{enumerable:!0,get:function(){return r.NestFactory}}),t.__exportStar(LT(),e),t.__exportStar(VT(),e),t.__exportStar(qS(),e)})),UT=U(),WT=HT();function GT(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function KT(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var qT,JT,YT={400:`log`,401:`log`,403:`log`,404:`log`,"4XX":`warn`,"5XX":`error`},XT=JT=class{logger=new UT.Logger(JT.name);constructor(e){this.httpAdapterHost=e}mapStatusCode(e){return`getStatus`in e&&typeof e.getStatus==`function`?e.getStatus():UT.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return`getResponse`in e&&typeof e.getResponse==`function`?e.getResponse():{error:`internal-error`}}statusCodeToSeverity(e){let t=e.toString();return YT[t]?YT[t]:YT[`${e.toString().slice(0,1)}XX`]}catch(e,t){let{httpAdapter:n}=this.httpAdapterHost,r=t.switchToHttp(),i=this.mapStatusCode(e),a=this.mapError(e),o=this.statusCodeToSeverity(i);o||this.logger.error(`Unhandled exception`,e),(o===`error`||o===`warn`)&&this.logger[o](`Unhandled exception`,e),n.reply(r.getResponse(),a,i)}};XT=JT=KT([(0,UT.Catch)(),GT(`design:paramtypes`,[typeof(qT=WT.HttpAdapterHost!==void 0&&WT.HttpAdapterHost)==`function`?qT:Object])],XT);var ZT=async({existentApp:e,existentLogger:t,appModule:n})=>{if(!e&&!n)throw Error(`Either existentApp or appModule must be provided`);let r=process.env.LOGGER_PROVIDER===`NESTJS`||!t?new UT.Logger:t;r.setLogLevels?.([`verbose`,`debug`,`log`,`warn`,`error`,`fatal`]);let i=e||await WT.NestFactory.create(n,{bufferLogs:!0,logger:r,rawBody:!0});i.useLogger(r);let a=i.get(pl.ConfigService).get(Cx);if(!a)throw Error(`Configuration with token ${Cx} not found`);r.setLogLevels?.(a.LOG_LEVELS);let o=i.get(WT.HttpAdapterHost);return i.useGlobalFilters(new XT(o)),i.enableCors({origin:a.CORS_ORIGIN.split(`,`).map(e=>e.trim()),methods:a.CORS_METHODS,allowedHeaders:a.CORS_ALLOWED_HEADERS,credentials:a.CORS_CREDENTIALS,maxAge:a.CORS_MAX_AGE}),{app:i,logger:r}};async function QT({appModule:e,configPath:t=f.resolve(__dirname,`../configuration`),logger:n}){O({env:``,configPath:t});let{app:r,logger:i}=await ZT({appModule:e,existentLogger:n}),a=r.get(pl.ConfigService).get(Cx);if(!a)throw Error(`Configuration with token ${Cx} not found`);await r.listen(a.APP_PORT),i.log(`NestJS App is running at http://localhost:${a.APP_PORT}`),$T(r,i)}function $T(e,t){let n=async n=>{t.log(`Received ${n}, starting graceful shutdown...`);try{await e.close(),t.log(`Application closed successfully`),process.exit(0)}catch(e){t.error(`Error during shutdown`,e),process.exit(1)}};process.on(`SIGINT`,()=>{n(`SIGINT`)}),process.on(`SIGTERM`,()=>{n(`SIGTERM`)})}var eE=class extends UT.Logger{},tE=`REQUEST_MIDDLEWARE_LOG_CUSTOMIZER`;function nE(e,t){return function(n,r){t(n,r,e)}}var rE,iE={"2XX":`verbose`,"3XX":`debug`,400:`log`,401:`log`,403:`log`,404:`log`,"4XX":`warn`,"5XX":`error`},aE=rE=class{logger=new eE(rE.name);constructor(e){this.customizer=e}statusCodeToSeverity(e){let t=e.toString();return iE[t]?iE[t]:iE[`${e.toString().slice(0,1)}XX`]}use(e,t,n){if(e.headers.host!==`127.0.0.1`){let n=Date.now();t.on(`finish`,()=>{let r=Date.now()-n,i={method:e.method,url:e.originalUrl,statusCode:t.statusCode,timeSpentMs:r,domain:e.hostname,requestHeaders:e.headers,responseHeaders:t.getHeaders()},a=this.customizer?.buildLogPayload(e,t)??{},o={...i,...a},s=this.statusCodeToSeverity(t.statusCode);this.logger[s](`Request: ${e.method} ${e.originalUrl} ${t.statusCode}`,o)})}n()}};aE=rE=KT([(0,UT.Injectable)(),nE(0,(0,UT.Optional)()),nE(0,(0,UT.Inject)(tE)),GT(`design:paramtypes`,[Object])],aE);var oE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),sE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),cE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),lE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(oE(),e),t.__exportStar(sE(),e),t.__exportStar(cE(),e)})),uE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingLogger=void 0;var t=U();e.TestingLogger=class extends t.ConsoleLogger{constructor(){super(`Testing`)}log(e){}warn(e){}debug(e){}verbose(e){}error(e,...t){return super.error(e,...t)}}})),dE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingInjector=void 0;var t=Ux(),n=zS(),r=LS();e.TestingInjector=class extends n.Injector{setMocker(e){this.mocker=e}setContainer(e){this.container=e}async resolveComponentWrapper(e,n,r,i,a=t.STATIC_CONTEXT,o,s){try{return await super.resolveComponentWrapper(e,n,r,i,a,o,s)}catch(t){return this.mockWrapper(t,e,n,i)}}async resolveComponentHost(e,n,r=t.STATIC_CONTEXT,i){try{return await super.resolveComponentHost(e,n,r,i)}catch(t){return this.mockWrapper(t,e,n.name,n)}}async mockWrapper(e,t,n,i){if(!this.mocker)throw e;let a=this.mocker(n);if(!a)throw e;let o=new r.InstanceWrapper({name:n,isAlias:!1,scope:i.scope,instance:a,isResolved:!0,host:t,metatype:i.metatype}),s=this.container.getInternalCoreModuleRef();if(!s)throw Error(`Expected to have internal core module reference at this point.`);return s.addCustomProvider({provide:n,useValue:a},s.providers),s.addExportedProviderOrModule(n),o}}})),fE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingInstanceLoader=void 0;var t=QC();e.TestingInstanceLoader=class extends t.InstanceLoader{async createInstancesOfDependencies(e=this.container.getModules(),t){this.injector.setContainer(this.container),t&&this.injector.setMocker(t),await super.createInstancesOfDependencies()}}})),pE=o((()=>{throw Error(`Could not resolve "@nestjs/microservices" imported by "@nestjs/testing". Is it installed?`)})),mE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingModule=void 0;var t=U(),n=Un(),r=M(),i=HT();e.TestingModule=class extends i.NestApplicationContext{constructor(e,t,n,r,i=[]){super(e,{},n,i),this.applicationConfig=r,this.graphInspector=t}isHttpServer(e){return!!(e&&e.patch)}createNestApplication(e,t){let[n,r]=this.isHttpServer(e)?[e,t]:[this.createHttpAdapter(),e];this.applyLogger(r),this.container.setHttpAdapter(n);let a=new i.NestApplication(this.container,n,this.applicationConfig,this.graphInspector,r);return this.createAdapterProxy(a,n)}createNestMicroservice(e){let{NestMicroservice:t}=(0,n.loadPackage)(`@nestjs/microservices`,`TestingModule`,()=>pE());return this.applyLogger(e),new t(this.container,e,this.graphInspector,this.applicationConfig)}createHttpAdapter(e){let{ExpressAdapter:t}=(0,n.loadPackage)(`@nestjs/platform-express`,`NestFactory`,()=>xT());return new t(e)}applyLogger(e){!e||(0,r.isUndefined)(e.logger)||t.Logger.overrideLogger(e.logger)}createAdapterProxy(e,t){return new Proxy(e,{get:(e,n)=>!(n in e)&&n in t?t[n]:e[n]})}}})),hE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingModuleBuilder=void 0;var t=U(),n=Ax(),r=tC(),i=iC(),a=$C(),o=FS(),s=ow(),c=uE(),l=dE(),u=fE(),d=mE();e.TestingModuleBuilder=class{constructor(e,t,i){this.metadataScanner=e,this.applicationConfig=new n.ApplicationConfig,this.overloadsMap=new Map,this.moduleOverloadsMap=new Map,this.container=new r.NestContainer(this.applicationConfig,i),this.module=this.createModule(t)}setLogger(e){return this.testingLogger=e,this}overridePipe(e){return this.override(e,!1)}useMocker(e){return this.mocker=e,this}overrideFilter(e){return this.override(e,!1)}overrideGuard(e){return this.override(e,!1)}overrideInterceptor(e){return this.override(e,!1)}overrideProvider(e){return this.override(e,!0)}overrideModule(e){return{useModule:t=>(this.moduleOverloadsMap.set(e,t),this)}}async compile(e={}){this.applyLogger();let t;e?.snapshot?(t=new i.GraphInspector(this.container),o.UuidFactory.mode=o.UuidFactoryMode.Deterministic):(t=a.NoopGraphInspector,o.UuidFactory.mode=o.UuidFactoryMode.Random);let n=new s.DependenciesScanner(this.container,this.metadataScanner,t,this.applicationConfig);await n.scan(this.module,{overrides:this.getModuleOverloads()}),this.applyOverloadsMap(),await this.createInstancesOfDependencies(t,e),n.applyApplicationProviders();let r=this.getRootModule();return new d.TestingModule(this.container,t,r,this.applicationConfig)}override(e,t){return this.createOverrideByBuilder(n=>(this.overloadsMap.set(e,{...n,isProvider:t}),this))}createOverrideByBuilder(e){return{useValue:t=>e({useValue:t}),useFactory:t=>e({...t,useFactory:t.factory}),useClass:t=>e({useClass:t})}}applyOverloadsMap(){[...this.overloadsMap.entries()].forEach(([e,t])=>{this.container.replace(e,t)})}getModuleOverloads(){return[...this.moduleOverloadsMap.entries()].map(([e,t])=>({moduleToReplace:e,newModule:t}))}getRootModule(){return this.container.getModules().values().next().value}async createInstancesOfDependencies(e,t){let n=new l.TestingInjector({preview:t?.preview??!1});await new u.TestingInstanceLoader(this.container,n,e).createInstancesOfDependencies(this.container.getModules(),this.mocker)}createModule(e){class n{}return(0,t.Module)(e)(n),n}applyLogger(){t.Logger.overrideLogger(this.testingLogger||new c.TestingLogger)}}})),gE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Test=void 0;var t=Mx(),n=hE(),r=class{static createTestingModule(e,t){return new n.TestingModuleBuilder(this.metadataScanner,e,t)}};e.Test=r,r.metadataScanner=new t.MetadataScanner})),_E=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=k();t.__exportStar(lE(),e),t.__exportStar(gE(),e),t.__exportStar(mE(),e),t.__exportStar(hE(),e)}))();function vE(e,t=[]){return t.forEach(t=>{e=e.overrideGuard(t.type).useValue(t.value)}),e}function yE(e,t=[]){return t.forEach(t=>{e=e.overrideProvider(t.type).useValue(t.value)}),e}async function bE(e={},t){let n=_E.Test.createTestingModule({imports:[t]});n=vE(n,e.guards),n=yE(n,e.providers);let r=await n.compile();return e.logger&&r.useLogger(e.logger),r}async function xE(e,t={}){let{app:n}=await ZT({existentApp:(await bE(t,e)).createNestApplication(),existentLogger:t.logger});return n.init()}var SE=class{requestTimestamps=new Map;options;constructor(e){if(e.windowMs<=0||e.maxRequests<=0)throw Error(`windowMs and maxRequests must be positive`);this.options=e}async canActivate(e){let t=e.switchToHttp().getRequest(),n=e.switchToHttp().getResponse(),r=this.extractIp(t),i=Date.now(),a=i-this.options.windowMs,o=(this.requestTimestamps.get(r)??[]).filter(e=>e>a);if(o.length>=this.options.maxRequests){let e=o[0],t=Math.ceil((e+this.options.windowMs-i)/1e3);throw n.setHeader(`Retry-After`,t),new UT.HttpException(`Too Many Requests`,UT.HttpStatus.TOO_MANY_REQUESTS)}return o.push(i),this.requestTimestamps.set(r,o),this.cleanupExpiredEntries(i),!0}extractIp(e){let t=e.headers?.[`x-forwarded-for`];return t?(Array.isArray(t)?t[0]:t).split(`,`)[0].trim():e.ip?e.ip:`unknown`}cleanupExpiredEntries(e){let t=e-this.options.windowMs;for(let[e,n]of this.requestTimestamps.entries()){let r=n.filter(e=>e>t);r.length===0?this.requestTimestamps.delete(e):this.requestTimestamps.set(e,r)}}};function CE(e,t=`body`){return(0,UT.createParamDecorator)((n,r)=>{let i=r.switchToHttp().getRequest()[t],a=e.safeParse(i);if(!a.success)throw new UT.BadRequestException({message:`Invalid ${t} data`,errors:a.error});return a.data})()}function wE(e){return CE(e,`query`)}function TE(e){return CE(e,`body`)}function EE(e){return CE(e,`params`)}exports.APP_CONFIG_TOKEN=Cx,exports.AppConfigSchema=Tx,exports.CustomLogger=eE,exports.InMemoryRateLimitGuard=SE,exports.REQUEST_MIDDLEWARE_LOG_CUSTOMIZER=tE,Object.defineProperty(exports,`RequestMiddleware`,{enumerable:!0,get:function(){return aE}}),exports.SafeBody=TE,exports.SafeParams=EE,exports.SafeQuery=wE,exports.ZodValidator=CE,exports.appConfigModuleSetup=Dx,exports.bootstrap=QT,exports.createApp=ZT,exports.createTestingApp=xE,exports.createTestingModule=bE;
|
|
148
|
+
`);this.displayPrompt()}})}})),NT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.repl=l;var t=H(),n=nt(),r=yT(),i=bT(),a=xT(),o=AT(),s=jT(),c=MT();async function l(e,l={}){let u=await r.NestFactory.createApplicationContext(e,{abortOnError:!1,logger:new s.ReplLogger});await u.init();let d=new o.ReplContext(u);t.Logger.log(a.REPL_INITIALIZED_MESSAGE);let f=(await Promise.resolve().then(()=>require(`repl`))).start({prompt:n.clc.green(`> `),ignoreUndefined:!0,...l});return(0,i.assignToObject)(f.context,d.globalScope),(0,c.defineDefaultCommandsOnRepl)(f),f.on(`exit`,async()=>{await u.close()}),f}})),PT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(NT(),e)})),FT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),IT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),E().__exportStar(FT(),e)})),LT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.REQUEST=void 0;var t=Rx();Object.defineProperty(e,`REQUEST`,{enumerable:!0,get:function(){return t.REQUEST}})})),RT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.RouterModule=void 0;var t=E();t.__exportStar(IT(),e),t.__exportStar(LT(),e);var n=xC();Object.defineProperty(e,`RouterModule`,{enumerable:!0,get:function(){return n.RouterModule}})})),zT=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NestFactory=e.APP_PIPE=e.APP_INTERCEPTOR=e.APP_GUARD=e.APP_FILTER=void 0;var t=E();p(),t.__exportStar(Ex(),e),t.__exportStar(Dx(),e);var n=Ox();Object.defineProperty(e,`APP_FILTER`,{enumerable:!0,get:function(){return n.APP_FILTER}}),Object.defineProperty(e,`APP_GUARD`,{enumerable:!0,get:function(){return n.APP_GUARD}}),Object.defineProperty(e,`APP_INTERCEPTOR`,{enumerable:!0,get:function(){return n.APP_INTERCEPTOR}}),Object.defineProperty(e,`APP_PIPE`,{enumerable:!0,get:function(){return n.APP_PIPE}}),t.__exportStar(Px(),e),t.__exportStar(Lx(),e),t.__exportStar(fS(),e),t.__exportStar($S(),e),t.__exportStar(nC(),e),t.__exportStar(kx(),e),t.__exportStar(uC(),e),t.__exportStar(WC(),e),t.__exportStar(jC(),e);var r=yT();Object.defineProperty(e,`NestFactory`,{enumerable:!0,get:function(){return r.NestFactory}}),t.__exportStar(PT(),e),t.__exportStar(RT(),e),t.__exportStar(WS(),e)})),BT=H(),VT=zT();function HT(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function UT(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var WT,GT,KT={400:`log`,401:`log`,403:`log`,404:`log`,"4XX":`warn`,"5XX":`error`},qT=GT=class{logger=new BT.Logger(GT.name);constructor(e){this.httpAdapterHost=e}mapStatusCode(e){return`getStatus`in e&&typeof e.getStatus==`function`?e.getStatus():BT.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return`getResponse`in e&&typeof e.getResponse==`function`?e.getResponse():{error:`internal-error`}}statusCodeToSeverity(e){let t=e.toString();return KT[t]?KT[t]:KT[`${e.toString().slice(0,1)}XX`]}catch(e,t){let{httpAdapter:n}=this.httpAdapterHost,r=t.switchToHttp(),i=this.mapStatusCode(e),a=this.mapError(e),o=this.statusCodeToSeverity(i);o||this.logger.error(`Unhandled exception`,e),(o===`error`||o===`warn`)&&this.logger[o](`Unhandled exception`,e),n.reply(r.getResponse(),a,i)}};qT=GT=UT([(0,BT.Catch)(),HT(`design:paramtypes`,[typeof(WT=VT.HttpAdapterHost!==void 0&&VT.HttpAdapterHost)==`function`?WT:Object])],qT);var JT=async({existentApp:e,existentLogger:t,appModule:n})=>{if(!e&&!n)throw Error(`Either existentApp or appModule must be provided`);let r=process.env.LOGGER_PROVIDER===`NESTJS`||!t?new BT.Logger:t;r.setLogLevels?.([`verbose`,`debug`,`log`,`warn`,`error`,`fatal`]);let i=e||await VT.NestFactory.create(n,{bufferLogs:!0,logger:r,rawBody:!0});i.useLogger(r);let a=i.get(dl.ConfigService).get(bx);if(!a)throw Error(`Configuration with token ${bx} not found`);r.setLogLevels?.(a.LOG_LEVELS);let o=i.get(VT.HttpAdapterHost);return i.useGlobalFilters(new qT(o)),i.enableCors({origin:a.CORS_ORIGIN.split(`,`).map(e=>e.trim()),methods:a.CORS_METHODS,allowedHeaders:a.CORS_ALLOWED_HEADERS,credentials:a.CORS_CREDENTIALS,maxAge:a.CORS_MAX_AGE}),{app:i,logger:r}};async function YT({appModule:e,configPath:t=f.resolve(__dirname,`../configuration`),logger:n}){T({env:``,configPath:t});let{app:r,logger:i}=await JT({appModule:e,existentLogger:n}),a=r.get(dl.ConfigService).get(bx);if(!a)throw Error(`Configuration with token ${bx} not found`);await r.listen(a.APP_PORT),i.log(`NestJS App is running at http://localhost:${a.APP_PORT}`),XT(r,i)}function XT(e,t){let n=async n=>{t.log(`Received ${n}, starting graceful shutdown...`);try{await e.close(),t.log(`Application closed successfully`),process.exit(0)}catch(e){t.error(`Error during shutdown`,e),process.exit(1)}};process.on(`SIGINT`,()=>{n(`SIGINT`)}),process.on(`SIGTERM`,()=>{n(`SIGTERM`)})}var ZT=class extends BT.Logger{},QT=`REQUEST_MIDDLEWARE_LOG_CUSTOMIZER`;function $T(e,t){return function(n,r){t(n,r,e)}}var eE,tE={"2XX":`verbose`,"3XX":`debug`,400:`log`,401:`log`,403:`log`,404:`log`,"4XX":`warn`,"5XX":`error`},nE=eE=class{logger=new ZT(eE.name);constructor(e){this.customizer=e}statusCodeToSeverity(e){let t=e.toString();return tE[t]?tE[t]:tE[`${e.toString().slice(0,1)}XX`]}use(e,t,n){if(e.headers.host!==`127.0.0.1`){let n=Date.now();t.on(`finish`,()=>{let r=Date.now()-n,i={method:e.method,url:e.originalUrl,statusCode:t.statusCode,timeSpentMs:r,domain:e.hostname,requestHeaders:e.headers,responseHeaders:t.getHeaders()},a=this.customizer?.buildLogPayload(e,t)??{},o={...i,...a},s=this.statusCodeToSeverity(t.statusCode);this.logger[s](`Request: ${e.method} ${e.originalUrl} ${t.statusCode}`,o)})}n()}};nE=eE=UT([(0,BT.Injectable)(),$T(0,(0,BT.Optional)()),$T(0,(0,BT.Inject)(QT)),HT(`design:paramtypes`,[Object])],nE);var rE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),iE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),aE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),oE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(rE(),e),t.__exportStar(iE(),e),t.__exportStar(aE(),e)})),sE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingLogger=void 0;var t=H();e.TestingLogger=class extends t.ConsoleLogger{constructor(){super(`Testing`)}log(e){}warn(e){}debug(e){}verbose(e){}error(e,...t){return super.error(e,...t)}}})),cE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingInjector=void 0;var t=Bx(),n=IS(),r=PS();e.TestingInjector=class extends n.Injector{setMocker(e){this.mocker=e}setContainer(e){this.container=e}async resolveComponentWrapper(e,n,r,i,a=t.STATIC_CONTEXT,o,s){try{return await super.resolveComponentWrapper(e,n,r,i,a,o,s)}catch(t){return this.mockWrapper(t,e,n,i)}}async resolveComponentHost(e,n,r=t.STATIC_CONTEXT,i){try{return await super.resolveComponentHost(e,n,r,i)}catch(t){return this.mockWrapper(t,e,n.name,n)}}async mockWrapper(e,t,n,i){if(!this.mocker)throw e;let a=this.mocker(n);if(!a)throw e;let o=new r.InstanceWrapper({name:n,isAlias:!1,scope:i.scope,instance:a,isResolved:!0,host:t,metatype:i.metatype}),s=this.container.getInternalCoreModuleRef();if(!s)throw Error(`Expected to have internal core module reference at this point.`);return s.addCustomProvider({provide:n,useValue:a},s.providers),s.addExportedProviderOrModule(n),o}}})),lE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingInstanceLoader=void 0;var t=YC();e.TestingInstanceLoader=class extends t.InstanceLoader{async createInstancesOfDependencies(e=this.container.getModules(),t){this.injector.setContainer(this.container),t&&this.injector.setMocker(t),await super.createInstancesOfDependencies()}}})),uE=o((()=>{throw Error(`Could not resolve "@nestjs/microservices" imported by "@nestjs/testing". Is it installed?`)})),dE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingModule=void 0;var t=H(),n=Vn(),r=A(),i=zT();e.TestingModule=class extends i.NestApplicationContext{constructor(e,t,n,r,i=[]){super(e,{},n,i),this.applicationConfig=r,this.graphInspector=t}isHttpServer(e){return!!(e&&e.patch)}createNestApplication(e,t){let[n,r]=this.isHttpServer(e)?[e,t]:[this.createHttpAdapter(),e];this.applyLogger(r),this.container.setHttpAdapter(n);let a=new i.NestApplication(this.container,n,this.applicationConfig,this.graphInspector,r);return this.createAdapterProxy(a,n)}createNestMicroservice(e){let{NestMicroservice:t}=(0,n.loadPackage)(`@nestjs/microservices`,`TestingModule`,()=>uE());return this.applyLogger(e),new t(this.container,e,this.graphInspector,this.applicationConfig)}createHttpAdapter(e){let{ExpressAdapter:t}=(0,n.loadPackage)(`@nestjs/platform-express`,`NestFactory`,()=>vT());return new t(e)}applyLogger(e){!e||(0,r.isUndefined)(e.logger)||t.Logger.overrideLogger(e.logger)}createAdapterProxy(e,t){return new Proxy(e,{get:(e,n)=>!(n in e)&&n in t?t[n]:e[n]})}}})),fE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TestingModuleBuilder=void 0;var t=H(),n=Dx(),r=QS(),i=tC(),a=XC(),o=MS(),s=rw(),c=sE(),l=cE(),u=lE(),d=dE();e.TestingModuleBuilder=class{constructor(e,t,i){this.metadataScanner=e,this.applicationConfig=new n.ApplicationConfig,this.overloadsMap=new Map,this.moduleOverloadsMap=new Map,this.container=new r.NestContainer(this.applicationConfig,i),this.module=this.createModule(t)}setLogger(e){return this.testingLogger=e,this}overridePipe(e){return this.override(e,!1)}useMocker(e){return this.mocker=e,this}overrideFilter(e){return this.override(e,!1)}overrideGuard(e){return this.override(e,!1)}overrideInterceptor(e){return this.override(e,!1)}overrideProvider(e){return this.override(e,!0)}overrideModule(e){return{useModule:t=>(this.moduleOverloadsMap.set(e,t),this)}}async compile(e={}){this.applyLogger();let t;e?.snapshot?(t=new i.GraphInspector(this.container),o.UuidFactory.mode=o.UuidFactoryMode.Deterministic):(t=a.NoopGraphInspector,o.UuidFactory.mode=o.UuidFactoryMode.Random);let n=new s.DependenciesScanner(this.container,this.metadataScanner,t,this.applicationConfig);await n.scan(this.module,{overrides:this.getModuleOverloads()}),this.applyOverloadsMap(),await this.createInstancesOfDependencies(t,e),n.applyApplicationProviders();let r=this.getRootModule();return new d.TestingModule(this.container,t,r,this.applicationConfig)}override(e,t){return this.createOverrideByBuilder(n=>(this.overloadsMap.set(e,{...n,isProvider:t}),this))}createOverrideByBuilder(e){return{useValue:t=>e({useValue:t}),useFactory:t=>e({...t,useFactory:t.factory}),useClass:t=>e({useClass:t})}}applyOverloadsMap(){[...this.overloadsMap.entries()].forEach(([e,t])=>{this.container.replace(e,t)})}getModuleOverloads(){return[...this.moduleOverloadsMap.entries()].map(([e,t])=>({moduleToReplace:e,newModule:t}))}getRootModule(){return this.container.getModules().values().next().value}async createInstancesOfDependencies(e,t){let n=new l.TestingInjector({preview:t?.preview??!1});await new u.TestingInstanceLoader(this.container,n,e).createInstancesOfDependencies(this.container.getModules(),this.mocker)}createModule(e){class n{}return(0,t.Module)(e)(n),n}applyLogger(){t.Logger.overrideLogger(this.testingLogger||new c.TestingLogger)}}})),pE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Test=void 0;var t=kx(),n=fE(),r=class{static createTestingModule(e,t){return new n.TestingModuleBuilder(this.metadataScanner,e,t)}};e.Test=r,r.metadataScanner=new t.MetadataScanner})),mE=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=E();t.__exportStar(oE(),e),t.__exportStar(pE(),e),t.__exportStar(dE(),e),t.__exportStar(fE(),e)}))();function hE(e,t=[]){return t.forEach(t=>{e=e.overrideGuard(t.type).useValue(t.value)}),e}function gE(e,t=[]){return t.forEach(t=>{e=e.overrideProvider(t.type).useValue(t.value)}),e}async function _E(e={},t){let n=mE.Test.createTestingModule({imports:[t]});n=hE(n,e.guards),n=gE(n,e.providers);let r=await n.compile();return e.logger&&r.useLogger(e.logger),r}async function vE(e,t={}){let{app:n}=await JT({existentApp:(await _E(t,e)).createNestApplication(),existentLogger:t.logger});return n.init()}var yE=class{requestTimestamps=new Map;options;constructor(e){if(e.windowMs<=0||e.maxRequests<=0)throw Error(`windowMs and maxRequests must be positive`);this.options=e}async canActivate(e){let t=e.switchToHttp().getRequest(),n=e.switchToHttp().getResponse(),r=this.extractIp(t),i=Date.now(),a=i-this.options.windowMs,o=(this.requestTimestamps.get(r)??[]).filter(e=>e>a);if(o.length>=this.options.maxRequests){let e=o[0],t=Math.ceil((e+this.options.windowMs-i)/1e3);throw n.setHeader(`Retry-After`,t),new BT.HttpException(`Too Many Requests`,BT.HttpStatus.TOO_MANY_REQUESTS)}return o.push(i),this.requestTimestamps.set(r,o),this.cleanupExpiredEntries(i),!0}extractIp(e){let t=e.headers?.[`x-forwarded-for`];return t?(Array.isArray(t)?t[0]:t).split(`,`)[0].trim():e.ip?e.ip:`unknown`}cleanupExpiredEntries(e){let t=e-this.options.windowMs;for(let[e,n]of this.requestTimestamps.entries()){let r=n.filter(e=>e>t);r.length===0?this.requestTimestamps.delete(e):this.requestTimestamps.set(e,r)}}};function bE(e,t=`body`){return(0,BT.createParamDecorator)((n,r)=>{let i=r.switchToHttp().getRequest()[t],a=e.safeParse(i);if(!a.success)throw new BT.BadRequestException({message:`Invalid ${t} data`,errors:a.error});return a.data})()}function xE(e){return bE(e,`query`)}function SE(e){return bE(e,`body`)}function CE(e){return bE(e,`params`)}exports.APP_CONFIG_TOKEN=bx,exports.AppConfigSchema=Sx,exports.CustomLogger=ZT,exports.InMemoryRateLimitGuard=yE,exports.REQUEST_MIDDLEWARE_LOG_CUSTOMIZER=QT,Object.defineProperty(exports,`RequestMiddleware`,{enumerable:!0,get:function(){return nE}}),exports.SafeBody=SE,exports.SafeParams=CE,exports.SafeQuery=xE,exports.ZodValidator=bE,exports.appConfigModuleSetup=wx,exports.bootstrap=YT,exports.createApp=JT,exports.createTestingApp=vE,exports.createTestingModule=_E;
|