@jsfsi-core/ts-nestjs 1.1.2
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 +172 -0
- package/dist/index.mjs +33811 -0
- package/dist/src/app/app.d.ts +7 -0
- package/dist/src/app/app.test.d.ts +1 -0
- package/dist/src/app/bootstrap.d.ts +2 -0
- package/dist/src/configuration/AppConfigurationService.d.ts +14 -0
- package/dist/src/filters/AllExceptionsFilter.d.ts +10 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/middlewares/RequestMiddleware.d.ts +7 -0
- package/dist/src/middlewares/RequestMiddleware.test.d.ts +1 -0
- package/dist/src/test/testing-app.d.ts +14 -0
- package/dist/src/validators/ZodValidator.d.ts +5 -0
- package/dist/src/validators/ZodValidator.test.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +67 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Yt=require("path"),XF=require("url"),ai=require("fs"),lp=require("os"),oi=require("crypto"),dp=require("stream"),si=require("util"),QF=require("async_hooks"),JF=require("perf_hooks"),eD=require("express"),tD=require("http"),rD=require("https"),sg=require("events"),pp=require("buffer"),nD=require("repl");var vf=typeof document<"u"?document.currentScript:null;function iD(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const aD=iD(Yt);var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ci(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function a(){var o=!1;try{o=this instanceof a}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),r}var Mb={};/*! *****************************************************************************
|
|
2
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */var Ib;function cg(){if(Ib)return Mb;Ib=1;var e;return(function(t){(function(r){var a=typeof globalThis=="object"?globalThis:typeof ut=="object"?ut:typeof self=="object"?self:typeof this=="object"?this:c(),o=n(t);typeof a.Reflect<"u"&&(o=n(a.Reflect,o)),r(o,a),typeof a.Reflect>"u"&&(a.Reflect=t);function n(u,p){return function(l,d){Object.defineProperty(u,l,{configurable:!0,writable:!0,value:d}),p&&p(l,d)}}function s(){try{return Function("return this;")()}catch{}}function i(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||i()}})(function(r,a){var o=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",s=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!c&&!u,l={create:c?function(){return fr(Object.create(null))}:u?function(){return fr({__proto__:null})}:function(){return fr({})},has:p?function(B,V){return o.call(B,V)}:function(B,V){return V in B},get:p?function(B,V){return o.call(B,V)?B[V]:void 0}:function(B,V){return B[V]}},d=Object.getPrototypeOf(Function),f=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Ve(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:bi(),m=typeof WeakMap=="function"?WeakMap:yi(),v=n?Symbol.for("@reflect-metadata:registry"):void 0,g=me(),_=je(g);function b(B,V,W,te){if(N(W)){if(!I(B))throw new TypeError;if(!Q(V))throw new TypeError;return C(B,V)}else{if(!I(B))throw new TypeError;if(!M(V))throw new TypeError;if(!M(te)&&!N(te)&&!L(te))throw new TypeError;return L(te)&&(te=void 0),W=R(W),D(B,V,W,te)}}r("decorate",b);function y(B,V){function W(te,fe){if(!M(te))throw new TypeError;if(!N(fe)&&!oe(fe))throw new TypeError;X(B,V,te,fe)}return W}r("metadata",y);function E(B,V,W,te){if(!M(W))throw new TypeError;return N(te)||(te=R(te)),X(B,V,W,te)}r("defineMetadata",E);function x(B,V,W){if(!M(V))throw new TypeError;return N(W)||(W=R(W)),H(B,V,W)}r("hasMetadata",x);function O(B,V,W){if(!M(V))throw new TypeError;return N(W)||(W=R(W)),F(B,V,W)}r("hasOwnMetadata",O);function S(B,V,W){if(!M(V))throw new TypeError;return N(W)||(W=R(W)),z(B,V,W)}r("getMetadata",S);function w(B,V,W){if(!M(V))throw new TypeError;return N(W)||(W=R(W)),Z(B,V,W)}r("getOwnMetadata",w);function T(B,V){if(!M(B))throw new TypeError;return N(V)||(V=R(V)),k(B,V)}r("getMetadataKeys",T);function A(B,V){if(!M(B))throw new TypeError;return N(V)||(V=R(V)),re(B,V)}r("getOwnMetadataKeys",A);function P(B,V,W){if(!M(V))throw new TypeError;if(N(W)||(W=R(W)),!M(V))throw new TypeError;N(W)||(W=R(W));var te=be(V,W,!1);return N(te)?!1:te.OrdinaryDeleteMetadata(B,V,W)}r("deleteMetadata",P);function C(B,V){for(var W=B.length-1;W>=0;--W){var te=B[W],fe=te(V);if(!N(fe)&&!L(fe)){if(!Q(fe))throw new TypeError;V=fe}}return V}function D(B,V,W,te){for(var fe=B.length-1;fe>=0;--fe){var De=B[fe],$e=De(V,W,te);if(!N($e)&&!L($e)){if(!M($e))throw new TypeError;te=$e}}return te}function H(B,V,W){var te=F(B,V,W);if(te)return!0;var fe=Ee(V);return L(fe)?!1:H(B,fe,W)}function F(B,V,W){var te=be(V,W,!1);return N(te)?!1:K(te.OrdinaryHasOwnMetadata(B,V,W))}function z(B,V,W){var te=F(B,V,W);if(te)return Z(B,V,W);var fe=Ee(V);if(!L(fe))return z(B,fe,W)}function Z(B,V,W){var te=be(V,W,!1);if(!N(te))return te.OrdinaryGetOwnMetadata(B,V,W)}function X(B,V,W,te){var fe=be(W,te,!0);fe.OrdinaryDefineOwnMetadata(B,V,W,te)}function k(B,V){var W=re(B,V),te=Ee(B);if(te===null)return W;var fe=k(te,V);if(fe.length<=0)return W;if(W.length<=0)return fe;for(var De=new h,$e=[],Oe=0,ie=W;Oe<ie.length;Oe++){var se=ie[Oe],ue=De.has(se);ue||(De.add(se),$e.push(se))}for(var de=0,Se=fe;de<Se.length;de++){var se=Se[de],ue=De.has(se);ue||(De.add(se),$e.push(se))}return $e}function re(B,V){var W=be(B,V,!1);return W?W.OrdinaryOwnMetadataKeys(B,V):[]}function q(B){if(B===null)return 1;switch(typeof B){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return B===null?1:6;default:return 6}}function N(B){return B===void 0}function L(B){return B===null}function $(B){return typeof B=="symbol"}function M(B){return typeof B=="object"?B!==null:typeof B=="function"}function j(B,V){switch(q(B)){case 0:return B;case 1:return B;case 2:return B;case 3:return B;case 4:return B;case 5:return B}var W="string",te=le(B,s);if(te!==void 0){var fe=te.call(B,W);if(M(fe))throw new TypeError;return fe}return U(B)}function U(B,V){var W,te,fe;{var De=B.toString;if(G(De)){var te=De.call(B);if(!M(te))return te}var W=B.valueOf;if(G(W)){var te=W.call(B);if(!M(te))return te}}throw new TypeError}function K(B){return!!B}function ee(B){return""+B}function R(B){var V=j(B);return $(V)?V:ee(V)}function I(B){return Array.isArray?Array.isArray(B):B instanceof Object?B instanceof Array:Object.prototype.toString.call(B)==="[object Array]"}function G(B){return typeof B=="function"}function Q(B){return typeof B=="function"}function oe(B){switch(q(B)){case 3:return!0;case 4:return!0;default:return!1}}function J(B,V){return B===V||B!==B&&V!==V}function le(B,V){var W=B[V];if(W!=null){if(!G(W))throw new TypeError;return W}}function _e(B){var V=le(B,i);if(!G(V))throw new TypeError;var W=V.call(B);if(!M(W))throw new TypeError;return W}function ye(B){return B.value}function Pe(B){var V=B.next();return V.done?!1:V}function Re(B){var V=B.return;V&&V.call(B)}function Ee(B){var V=Object.getPrototypeOf(B);if(typeof B!="function"||B===d||V!==d)return V;var W=B.prototype,te=W&&Object.getPrototypeOf(W);if(te==null||te===Object.prototype)return V;var fe=te.constructor;return typeof fe!="function"||fe===B?V:fe}function Te(){var B;!N(v)&&typeof a.Reflect<"u"&&!(v in a.Reflect)&&typeof a.Reflect.defineMetadata=="function"&&(B=Ze(a.Reflect));var V,W,te,fe=new m,De={registerProvider:$e,getProvider:ie,setProvider:ue};return De;function $e(de){if(!Object.isExtensible(De))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case B===de:break;case N(V):V=de;break;case V===de:break;case N(W):W=de;break;case W===de:break;default:te===void 0&&(te=new h),te.add(de);break}}function Oe(de,Se){if(!N(V)){if(V.isProviderFor(de,Se))return V;if(!N(W)){if(W.isProviderFor(de,Se))return V;if(!N(te))for(var Me=_e(te);;){var ke=Pe(Me);if(!ke)return;var at=ye(ke);if(at.isProviderFor(de,Se))return Re(Me),at}}}if(!N(B)&&B.isProviderFor(de,Se))return B}function ie(de,Se){var Me=fe.get(de),ke;return N(Me)||(ke=Me.get(Se)),N(ke)&&(ke=Oe(de,Se),N(ke)||(N(Me)&&(Me=new f,fe.set(de,Me)),Me.set(Se,ke))),ke}function se(de){if(N(de))throw new TypeError;return V===de||W===de||!N(te)&&te.has(de)}function ue(de,Se,Me){if(!se(Me))throw new Error("Metadata provider not registered.");var ke=ie(de,Se);if(ke!==Me){if(!N(ke))return!1;var at=fe.get(de);N(at)&&(at=new f,fe.set(de,at)),at.set(Se,Me)}return!0}}function me(){var B;return!N(v)&&M(a.Reflect)&&Object.isExtensible(a.Reflect)&&(B=a.Reflect[v]),N(B)&&(B=Te()),!N(v)&&M(a.Reflect)&&Object.isExtensible(a.Reflect)&&Object.defineProperty(a.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:B}),B}function je(B){var V=new m,W={isProviderFor:function(se,ue){var de=V.get(se);return N(de)?!1:de.has(ue)},OrdinaryDefineOwnMetadata:$e,OrdinaryHasOwnMetadata:fe,OrdinaryGetOwnMetadata:De,OrdinaryOwnMetadataKeys:Oe,OrdinaryDeleteMetadata:ie};return g.registerProvider(W),W;function te(se,ue,de){var Se=V.get(se),Me=!1;if(N(Se)){if(!de)return;Se=new f,V.set(se,Se),Me=!0}var ke=Se.get(ue);if(N(ke)){if(!de)return;if(ke=new f,Se.set(ue,ke),!B.setProvider(se,ue,W))throw Se.delete(ue),Me&&V.delete(se),new Error("Wrong provider for target.")}return ke}function fe(se,ue,de){var Se=te(ue,de,!1);return N(Se)?!1:K(Se.has(se))}function De(se,ue,de){var Se=te(ue,de,!1);if(!N(Se))return Se.get(se)}function $e(se,ue,de,Se){var Me=te(de,Se,!0);Me.set(se,ue)}function Oe(se,ue){var de=[],Se=te(se,ue,!1);if(N(Se))return de;for(var Me=Se.keys(),ke=_e(Me),at=0;;){var Pn=Pe(ke);if(!Pn)return de.length=at,de;var Ei=ye(Pn);try{de[at]=Ei}catch(xi){try{Re(ke)}finally{throw xi}}at++}}function ie(se,ue,de){var Se=te(ue,de,!1);if(N(Se)||!Se.delete(se))return!1;if(Se.size===0){var Me=V.get(ue);N(Me)||(Me.delete(de),Me.size===0&&V.delete(Me))}return!0}}function Ze(B){var V=B.defineMetadata,W=B.hasOwnMetadata,te=B.getOwnMetadata,fe=B.getOwnMetadataKeys,De=B.deleteMetadata,$e=new m,Oe={isProviderFor:function(ie,se){var ue=$e.get(ie);return!N(ue)&&ue.has(se)?!0:fe(ie,se).length?(N(ue)&&(ue=new h,$e.set(ie,ue)),ue.add(se),!0):!1},OrdinaryDefineOwnMetadata:V,OrdinaryHasOwnMetadata:W,OrdinaryGetOwnMetadata:te,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:De};return Oe}function be(B,V,W){var te=g.getProvider(B,V);if(!N(te))return te;if(W){if(g.setProvider(B,V,_))return _;throw new Error("Illegal state.")}}function Ve(){var B={},V=[],W=(function(){function Oe(ie,se,ue){this._index=0,this._keys=ie,this._values=se,this._selector=ue}return Oe.prototype["@@iterator"]=function(){return this},Oe.prototype[i]=function(){return this},Oe.prototype.next=function(){var ie=this._index;if(ie>=0&&ie<this._keys.length){var se=this._selector(this._keys[ie],this._values[ie]);return ie+1>=this._keys.length?(this._index=-1,this._keys=V,this._values=V):this._index++,{value:se,done:!1}}return{value:void 0,done:!0}},Oe.prototype.throw=function(ie){throw this._index>=0&&(this._index=-1,this._keys=V,this._values=V),ie},Oe.prototype.return=function(ie){return this._index>=0&&(this._index=-1,this._keys=V,this._values=V),{value:ie,done:!0}},Oe})(),te=(function(){function Oe(){this._keys=[],this._values=[],this._cacheKey=B,this._cacheIndex=-2}return Object.defineProperty(Oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Oe.prototype.has=function(ie){return this._find(ie,!1)>=0},Oe.prototype.get=function(ie){var se=this._find(ie,!1);return se>=0?this._values[se]:void 0},Oe.prototype.set=function(ie,se){var ue=this._find(ie,!0);return this._values[ue]=se,this},Oe.prototype.delete=function(ie){var se=this._find(ie,!1);if(se>=0){for(var ue=this._keys.length,de=se+1;de<ue;de++)this._keys[de-1]=this._keys[de],this._values[de-1]=this._values[de];return this._keys.length--,this._values.length--,J(ie,this._cacheKey)&&(this._cacheKey=B,this._cacheIndex=-2),!0}return!1},Oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=B,this._cacheIndex=-2},Oe.prototype.keys=function(){return new W(this._keys,this._values,fe)},Oe.prototype.values=function(){return new W(this._keys,this._values,De)},Oe.prototype.entries=function(){return new W(this._keys,this._values,$e)},Oe.prototype["@@iterator"]=function(){return this.entries()},Oe.prototype[i]=function(){return this.entries()},Oe.prototype._find=function(ie,se){if(!J(this._cacheKey,ie)){this._cacheIndex=-1;for(var ue=0;ue<this._keys.length;ue++)if(J(this._keys[ue],ie)){this._cacheIndex=ue;break}}return this._cacheIndex<0&&se&&(this._cacheIndex=this._keys.length,this._keys.push(ie),this._values.push(void 0)),this._cacheIndex},Oe})();return te;function fe(Oe,ie){return Oe}function De(Oe,ie){return ie}function $e(Oe,ie){return[Oe,ie]}}function bi(){var B=(function(){function V(){this._map=new f}return Object.defineProperty(V.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),V.prototype.has=function(W){return this._map.has(W)},V.prototype.add=function(W){return this._map.set(W,W),this},V.prototype.delete=function(W){return this._map.delete(W)},V.prototype.clear=function(){this._map.clear()},V.prototype.keys=function(){return this._map.keys()},V.prototype.values=function(){return this._map.keys()},V.prototype.entries=function(){return this._map.entries()},V.prototype["@@iterator"]=function(){return this.keys()},V.prototype[i]=function(){return this.keys()},V})();return B}function yi(){var B=16,V=l.create(),W=te();return(function(){function ie(){this._key=te()}return ie.prototype.has=function(se){var ue=fe(se,!1);return ue!==void 0?l.has(ue,this._key):!1},ie.prototype.get=function(se){var ue=fe(se,!1);return ue!==void 0?l.get(ue,this._key):void 0},ie.prototype.set=function(se,ue){var de=fe(se,!0);return de[this._key]=ue,this},ie.prototype.delete=function(se){var ue=fe(se,!1);return ue!==void 0?delete ue[this._key]:!1},ie.prototype.clear=function(){this._key=te()},ie})();function te(){var ie;do ie="@@WeakMap@@"+Oe();while(l.has(V,ie));return V[ie]=!0,ie}function fe(ie,se){if(!o.call(ie,W)){if(!se)return;Object.defineProperty(ie,W,{value:l.create()})}return ie[W]}function De(ie,se){for(var ue=0;ue<se;++ue)ie[ue]=Math.random()*255|0;return ie}function $e(ie){if(typeof Uint8Array=="function"){var se=new Uint8Array(ie);return typeof crypto<"u"?crypto.getRandomValues(se):typeof msCrypto<"u"?msCrypto.getRandomValues(se):De(se,ie),se}return De(new Array(ie),ie)}function Oe(){var ie=$e(B);ie[6]=ie[6]&79|64,ie[8]=ie[8]&191|128;for(var se="",ue=0;ue<B;++ue){var de=ie[ue];(ue===4||ue===6||ue===8)&&(se+="-"),de<16&&(se+="0"),se+=de.toString(16).toLowerCase()}return se}}function fr(B){return B.__=void 0,delete B.__,B}})})(e||(e={})),Mb}cg();var St={exports:{}};const oD="17.2.3",sD={version:oD};var Cb;function cD(){if(Cb)return St.exports;Cb=1;const e=ai,t=Yt,r=lp,a=oi,o=sD.version,n=["🔐 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 s(){return n[Math.floor(Math.random()*n.length)]}function i(T){return typeof T=="string"?!["false","0","no","off",""].includes(T.toLowerCase()):!!T}function c(){return process.stdout.isTTY}function u(T){return c()?`\x1B[2m${T}\x1B[0m`:T}const p=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function l(T){const A={};let P=T.toString();P=P.replace(/\r\n?/mg,`
|
|
15
|
+
`);let C;for(;(C=p.exec(P))!=null;){const D=C[1];let H=C[2]||"";H=H.trim();const F=H[0];H=H.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),F==='"'&&(H=H.replace(/\\n/g,`
|
|
16
|
+
`),H=H.replace(/\\r/g,"\r")),A[D]=H}return A}function d(T){T=T||{};const A=_(T);T.path=A;const P=w.configDotenv(T);if(!P.parsed){const F=new Error(`MISSING_DATA: Cannot parse ${A} for an unknown reason`);throw F.code="MISSING_DATA",F}const C=v(T).split(","),D=C.length;let H;for(let F=0;F<D;F++)try{const z=C[F].trim(),Z=g(P,z);H=w.decrypt(Z.ciphertext,Z.key);break}catch(z){if(F+1>=D)throw z}return w.parse(H)}function f(T){console.error(`[dotenv@${o}][WARN] ${T}`)}function h(T){console.log(`[dotenv@${o}][DEBUG] ${T}`)}function m(T){console.log(`[dotenv@${o}] ${T}`)}function v(T){return T&&T.DOTENV_KEY&&T.DOTENV_KEY.length>0?T.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function g(T,A){let P;try{P=new URL(A)}catch(z){if(z.code==="ERR_INVALID_URL"){const Z=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw Z.code="INVALID_DOTENV_KEY",Z}throw z}const C=P.password;if(!C){const z=new Error("INVALID_DOTENV_KEY: Missing key part");throw z.code="INVALID_DOTENV_KEY",z}const D=P.searchParams.get("environment");if(!D){const z=new Error("INVALID_DOTENV_KEY: Missing environment part");throw z.code="INVALID_DOTENV_KEY",z}const H=`DOTENV_VAULT_${D.toUpperCase()}`,F=T.parsed[H];if(!F){const z=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${H} in your .env.vault file.`);throw z.code="NOT_FOUND_DOTENV_ENVIRONMENT",z}return{ciphertext:F,key:C}}function _(T){let A=null;if(T&&T.path&&T.path.length>0)if(Array.isArray(T.path))for(const P of T.path)e.existsSync(P)&&(A=P.endsWith(".vault")?P:`${P}.vault`);else A=T.path.endsWith(".vault")?T.path:`${T.path}.vault`;else A=t.resolve(process.cwd(),".env.vault");return e.existsSync(A)?A:null}function b(T){return T[0]==="~"?t.join(r.homedir(),T.slice(1)):T}function y(T){const A=i(process.env.DOTENV_CONFIG_DEBUG||T&&T.debug),P=i(process.env.DOTENV_CONFIG_QUIET||T&&T.quiet);(A||!P)&&m("Loading env from encrypted .env.vault");const C=w._parseVault(T);let D=process.env;return T&&T.processEnv!=null&&(D=T.processEnv),w.populate(D,C,T),{parsed:C}}function E(T){const A=t.resolve(process.cwd(),".env");let P="utf8",C=process.env;T&&T.processEnv!=null&&(C=T.processEnv);let D=i(C.DOTENV_CONFIG_DEBUG||T&&T.debug),H=i(C.DOTENV_CONFIG_QUIET||T&&T.quiet);T&&T.encoding?P=T.encoding:D&&h("No encoding is specified. UTF-8 is used by default");let F=[A];if(T&&T.path)if(!Array.isArray(T.path))F=[b(T.path)];else{F=[];for(const k of T.path)F.push(b(k))}let z;const Z={};for(const k of F)try{const re=w.parse(e.readFileSync(k,{encoding:P}));w.populate(Z,re,T)}catch(re){D&&h(`Failed to load ${k} ${re.message}`),z=re}const X=w.populate(C,Z,T);if(D=i(C.DOTENV_CONFIG_DEBUG||D),H=i(C.DOTENV_CONFIG_QUIET||H),D||!H){const k=Object.keys(X).length,re=[];for(const q of F)try{const N=t.relative(process.cwd(),q);re.push(N)}catch(N){D&&h(`Failed to load ${q} ${N.message}`),z=N}m(`injecting env (${k}) from ${re.join(",")} ${u(`-- tip: ${s()}`)}`)}return z?{parsed:Z,error:z}:{parsed:Z}}function x(T){if(v(T).length===0)return w.configDotenv(T);const A=_(T);return A?w._configVault(T):(f(`You set DOTENV_KEY but you are missing a .env.vault file at ${A}. Did you forget to build it?`),w.configDotenv(T))}function O(T,A){const P=Buffer.from(A.slice(-64),"hex");let C=Buffer.from(T,"base64");const D=C.subarray(0,12),H=C.subarray(-16);C=C.subarray(12,-16);try{const F=a.createDecipheriv("aes-256-gcm",P,D);return F.setAuthTag(H),`${F.update(C)}${F.final()}`}catch(F){const z=F instanceof RangeError,Z=F.message==="Invalid key length",X=F.message==="Unsupported state or unable to authenticate data";if(z||Z){const k=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw k.code="INVALID_DOTENV_KEY",k}else if(X){const k=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw k.code="DECRYPTION_FAILED",k}else throw F}}function S(T,A,P={}){const C=!!(P&&P.debug),D=!!(P&&P.override),H={};if(typeof A!="object"){const F=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw F.code="OBJECT_REQUIRED",F}for(const F of Object.keys(A))Object.prototype.hasOwnProperty.call(T,F)?(D===!0&&(T[F]=A[F],H[F]=A[F]),C&&h(D===!0?`"${F}" is already defined and WAS overwritten`:`"${F}" is already defined and was NOT overwritten`)):(T[F]=A[F],H[F]=A[F]);return H}const w={configDotenv:E,_configVault:y,_parseVault:d,config:x,decrypt:O,parse:l,populate:S};return St.exports.configDotenv=w.configDotenv,St.exports._configVault=w._configVault,St.exports._parseVault=w._parseVault,St.exports.config=w.config,St.exports.decrypt=w.decrypt,St.exports.parse=w.parse,St.exports.populate=w.populate,St.exports=w,St.exports}var uD=cD();const lD=XF.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:vf&&vf.tagName.toUpperCase()==="SCRIPT"&&vf.src||new URL("index.cjs",document.baseURI).href),dD=Yt.dirname(lD),pD=(e={})=>{const{env:t,configPath:r}=e,a=Yt.resolve(dD,`${r??"."}/.env${t?`.${t}`:""}`),{parsed:o}=uD.config({path:a});return o};var mf,jb;function fD(){if(jb)return mf;jb=1,mf=n,n.default=n,n.stable=u,n.stableStringify=u;var e="[...]",t="[Circular]",r=[],a=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function n(d,f,h,m){typeof m>"u"&&(m=o()),i(d,"",0,[],void 0,0,m);var v;try{a.length===0?v=JSON.stringify(d,f,h):v=JSON.stringify(d,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var g=r.pop();g.length===4?Object.defineProperty(g[0],g[1],g[3]):g[0][g[1]]=g[2]}}return v}function s(d,f,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:d}),r.push([m,h,f,v])):a.push([f,h,d]):(m[h]=d,r.push([m,h,f]))}function i(d,f,h,m,v,g,_){g+=1;var b;if(typeof d=="object"&&d!==null){for(b=0;b<m.length;b++)if(m[b]===d){s(t,d,f,v);return}if(typeof _.depthLimit<"u"&&g>_.depthLimit){s(e,d,f,v);return}if(typeof _.edgesLimit<"u"&&h+1>_.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(b=0;b<d.length;b++)i(d[b],b,b,m,d,g,_);else{var y=Object.keys(d);for(b=0;b<y.length;b++){var E=y[b];i(d[E],E,b,m,d,g,_)}}m.pop()}}function c(d,f){return d<f?-1:d>f?1:0}function u(d,f,h,m){typeof m>"u"&&(m=o());var v=p(d,"",0,[],void 0,0,m)||d,g;try{a.length===0?g=JSON.stringify(v,f,h):g=JSON.stringify(v,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var _=r.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return g}function p(d,f,h,m,v,g,_){g+=1;var b;if(typeof d=="object"&&d!==null){for(b=0;b<m.length;b++)if(m[b]===d){s(t,d,f,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof _.depthLimit<"u"&&g>_.depthLimit){s(e,d,f,v);return}if(typeof _.edgesLimit<"u"&&h+1>_.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(b=0;b<d.length;b++)p(d[b],b,b,m,d,g,_);else{var y={},E=Object.keys(d).sort(c);for(b=0;b<E.length;b++){var x=E[b];p(d[x],x,b,m,d,g,_),y[x]=d[x]}if(typeof v<"u")r.push([v,f,d]),v[f]=y;else return y}m.pop()}}function l(d){return d=typeof d<"u"?d:function(f,h){return h},function(f,h){if(a.length>0)for(var m=0;m<a.length;m++){var v=a[m];if(v[1]===f&&v[0]===h){h=v[2],a.splice(m,1);break}}return d.call(this,f,h)}}return mf}fD();var _f={},gf={exports:{}},qb;function ae(){return qb||(qb=1,(function(e){var t,r,a,o,n,s,i,c,u,p,l,d,f,h,m,v,g,_,b,y,E,x,O,S,w,T,A,P,C,D,H,F;(function(z){var Z=typeof ut=="object"?ut:typeof self=="object"?self:typeof this=="object"?this:{};z(X(Z,X(e.exports)));function X(k,re){return k!==Z&&(typeof Object.create=="function"?Object.defineProperty(k,"__esModule",{value:!0}):k.__esModule=!0),function(q,N){return k[q]=re?re(q,N):N}}})(function(z){var Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,N){q.__proto__=N}||function(q,N){for(var L in N)Object.prototype.hasOwnProperty.call(N,L)&&(q[L]=N[L])};t=function(q,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");Z(q,N);function L(){this.constructor=q}q.prototype=N===null?Object.create(N):(L.prototype=N.prototype,new L)},r=Object.assign||function(q){for(var N,L=1,$=arguments.length;L<$;L++){N=arguments[L];for(var M in N)Object.prototype.hasOwnProperty.call(N,M)&&(q[M]=N[M])}return q},a=function(q,N){var L={};for(var $ in q)Object.prototype.hasOwnProperty.call(q,$)&&N.indexOf($)<0&&(L[$]=q[$]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,$=Object.getOwnPropertySymbols(q);M<$.length;M++)N.indexOf($[M])<0&&Object.prototype.propertyIsEnumerable.call(q,$[M])&&(L[$[M]]=q[$[M]]);return L},o=function(q,N,L,$){var M=arguments.length,j=M<3?N:$===null?$=Object.getOwnPropertyDescriptor(N,L):$,U;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(q,N,L,$);else for(var K=q.length-1;K>=0;K--)(U=q[K])&&(j=(M<3?U(j):M>3?U(N,L,j):U(N,L))||j);return M>3&&j&&Object.defineProperty(N,L,j),j},n=function(q,N){return function(L,$){N(L,$,q)}},s=function(q,N,L,$,M,j){function U(ye){if(ye!==void 0&&typeof ye!="function")throw new TypeError("Function expected");return ye}for(var K=$.kind,ee=K==="getter"?"get":K==="setter"?"set":"value",R=!N&&q?$.static?q:q.prototype:null,I=N||(R?Object.getOwnPropertyDescriptor(R,$.name):{}),G,Q=!1,oe=L.length-1;oe>=0;oe--){var J={};for(var le in $)J[le]=le==="access"?{}:$[le];for(var le in $.access)J.access[le]=$.access[le];J.addInitializer=function(ye){if(Q)throw new TypeError("Cannot add initializers after decoration has completed");j.push(U(ye||null))};var _e=(0,L[oe])(K==="accessor"?{get:I.get,set:I.set}:I[ee],J);if(K==="accessor"){if(_e===void 0)continue;if(_e===null||typeof _e!="object")throw new TypeError("Object expected");(G=U(_e.get))&&(I.get=G),(G=U(_e.set))&&(I.set=G),(G=U(_e.init))&&M.unshift(G)}else(G=U(_e))&&(K==="field"?M.unshift(G):I[ee]=G)}R&&Object.defineProperty(R,$.name,I),Q=!0},i=function(q,N,L){for(var $=arguments.length>2,M=0;M<N.length;M++)L=$?N[M].call(q,L):N[M].call(q);return $?L:void 0},c=function(q){return typeof q=="symbol"?q:"".concat(q)},u=function(q,N,L){return typeof N=="symbol"&&(N=N.description?"[".concat(N.description,"]"):""),Object.defineProperty(q,"name",{configurable:!0,value:L?"".concat(L," ",N):N})},p=function(q,N){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(q,N)},l=function(q,N,L,$){function M(j){return j instanceof L?j:new L(function(U){U(j)})}return new(L||(L=Promise))(function(j,U){function K(I){try{R($.next(I))}catch(G){U(G)}}function ee(I){try{R($.throw(I))}catch(G){U(G)}}function R(I){I.done?j(I.value):M(I.value).then(K,ee)}R(($=$.apply(q,N||[])).next())})},d=function(q,N){var L={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},$,M,j,U=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return U.next=K(0),U.throw=K(1),U.return=K(2),typeof Symbol=="function"&&(U[Symbol.iterator]=function(){return this}),U;function K(R){return function(I){return ee([R,I])}}function ee(R){if($)throw new TypeError("Generator is already executing.");for(;U&&(U=0,R[0]&&(L=0)),L;)try{if($=1,M&&(j=R[0]&2?M.return:R[0]?M.throw||((j=M.return)&&j.call(M),0):M.next)&&!(j=j.call(M,R[1])).done)return j;switch(M=0,j&&(R=[R[0]&2,j.value]),R[0]){case 0:case 1:j=R;break;case 4:return L.label++,{value:R[1],done:!1};case 5:L.label++,M=R[1],R=[0];continue;case 7:R=L.ops.pop(),L.trys.pop();continue;default:if(j=L.trys,!(j=j.length>0&&j[j.length-1])&&(R[0]===6||R[0]===2)){L=0;continue}if(R[0]===3&&(!j||R[1]>j[0]&&R[1]<j[3])){L.label=R[1];break}if(R[0]===6&&L.label<j[1]){L.label=j[1],j=R;break}if(j&&L.label<j[2]){L.label=j[2],L.ops.push(R);break}j[2]&&L.ops.pop(),L.trys.pop();continue}R=N.call(q,L)}catch(I){R=[6,I],M=0}finally{$=j=0}if(R[0]&5)throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}},f=function(q,N){for(var L in q)L!=="default"&&!Object.prototype.hasOwnProperty.call(N,L)&&C(N,q,L)},C=Object.create?(function(q,N,L,$){$===void 0&&($=L);var M=Object.getOwnPropertyDescriptor(N,L);(!M||("get"in M?!N.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return N[L]}}),Object.defineProperty(q,$,M)}):(function(q,N,L,$){$===void 0&&($=L),q[$]=N[L]}),h=function(q){var N=typeof Symbol=="function"&&Symbol.iterator,L=N&&q[N],$=0;if(L)return L.call(q);if(q&&typeof q.length=="number")return{next:function(){return q&&$>=q.length&&(q=void 0),{value:q&&q[$++],done:!q}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(q,N){var L=typeof Symbol=="function"&&q[Symbol.iterator];if(!L)return q;var $=L.call(q),M,j=[],U;try{for(;(N===void 0||N-- >0)&&!(M=$.next()).done;)j.push(M.value)}catch(K){U={error:K}}finally{try{M&&!M.done&&(L=$.return)&&L.call($)}finally{if(U)throw U.error}}return j},v=function(){for(var q=[],N=0;N<arguments.length;N++)q=q.concat(m(arguments[N]));return q},g=function(){for(var q=0,N=0,L=arguments.length;N<L;N++)q+=arguments[N].length;for(var $=Array(q),M=0,N=0;N<L;N++)for(var j=arguments[N],U=0,K=j.length;U<K;U++,M++)$[M]=j[U];return $},_=function(q,N,L){if(L||arguments.length===2)for(var $=0,M=N.length,j;$<M;$++)(j||!($ in N))&&(j||(j=Array.prototype.slice.call(N,0,$)),j[$]=N[$]);return q.concat(j||Array.prototype.slice.call(N))},b=function(q){return this instanceof b?(this.v=q,this):new b(q)},y=function(q,N,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=L.apply(q,N||[]),M,j=[];return M=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),K("next"),K("throw"),K("return",U),M[Symbol.asyncIterator]=function(){return this},M;function U(oe){return function(J){return Promise.resolve(J).then(oe,G)}}function K(oe,J){$[oe]&&(M[oe]=function(le){return new Promise(function(_e,ye){j.push([oe,le,_e,ye])>1||ee(oe,le)})},J&&(M[oe]=J(M[oe])))}function ee(oe,J){try{R($[oe](J))}catch(le){Q(j[0][3],le)}}function R(oe){oe.value instanceof b?Promise.resolve(oe.value.v).then(I,G):Q(j[0][2],oe)}function I(oe){ee("next",oe)}function G(oe){ee("throw",oe)}function Q(oe,J){oe(J),j.shift(),j.length&&ee(j[0][0],j[0][1])}},E=function(q){var N,L;return N={},$("next"),$("throw",function(M){throw M}),$("return"),N[Symbol.iterator]=function(){return this},N;function $(M,j){N[M]=q[M]?function(U){return(L=!L)?{value:b(q[M](U)),done:!1}:j?j(U):U}:j}},x=function(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=q[Symbol.asyncIterator],L;return N?N.call(q):(q=typeof h=="function"?h(q):q[Symbol.iterator](),L={},$("next"),$("throw"),$("return"),L[Symbol.asyncIterator]=function(){return this},L);function $(j){L[j]=q[j]&&function(U){return new Promise(function(K,ee){U=q[j](U),M(K,ee,U.done,U.value)})}}function M(j,U,K,ee){Promise.resolve(ee).then(function(R){j({value:R,done:K})},U)}},O=function(q,N){return Object.defineProperty?Object.defineProperty(q,"raw",{value:N}):q.raw=N,q};var X=Object.create?(function(q,N){Object.defineProperty(q,"default",{enumerable:!0,value:N})}):function(q,N){q.default=N},k=function(q){return k=Object.getOwnPropertyNames||function(N){var L=[];for(var $ in N)Object.prototype.hasOwnProperty.call(N,$)&&(L[L.length]=$);return L},k(q)};S=function(q){if(q&&q.__esModule)return q;var N={};if(q!=null)for(var L=k(q),$=0;$<L.length;$++)L[$]!=="default"&&C(N,q,L[$]);return X(N,q),N},w=function(q){return q&&q.__esModule?q:{default:q}},T=function(q,N,L,$){if(L==="a"&&!$)throw new TypeError("Private accessor was defined without a getter");if(typeof N=="function"?q!==N||!$:!N.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return L==="m"?$:L==="a"?$.call(q):$?$.value:N.get(q)},A=function(q,N,L,$,M){if($==="m")throw new TypeError("Private method is not writable");if($==="a"&&!M)throw new TypeError("Private accessor was defined without a setter");if(typeof N=="function"?q!==N||!M:!N.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return $==="a"?M.call(q,L):M?M.value=L:N.set(q,L),L},P=function(q,N){if(N===null||typeof N!="object"&&typeof N!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof q=="function"?N===q:q.has(N)},D=function(q,N,L){if(N!=null){if(typeof N!="object"&&typeof N!="function")throw new TypeError("Object expected.");var $,M;if(L){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");$=N[Symbol.asyncDispose]}if($===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");$=N[Symbol.dispose],L&&(M=$)}if(typeof $!="function")throw new TypeError("Object not disposable.");M&&($=function(){try{M.call(this)}catch(j){return Promise.reject(j)}}),q.stack.push({value:N,dispose:$,async:L})}else L&&q.stack.push({async:!0});return N};var re=typeof SuppressedError=="function"?SuppressedError:function(q,N,L){var $=new Error(L);return $.name="SuppressedError",$.error=q,$.suppressed=N,$};H=function(q){function N(j){q.error=q.hasError?new re(j,q.error,"An error was suppressed during disposal."):j,q.hasError=!0}var L,$=0;function M(){for(;L=q.stack.pop();)try{if(!L.async&&$===1)return $=0,q.stack.push(L),Promise.resolve().then(M);if(L.dispose){var j=L.dispose.call(L.value);if(L.async)return $|=2,Promise.resolve(j).then(M,function(U){return N(U),M()})}else $|=1}catch(U){N(U)}if($===1)return q.hasError?Promise.reject(q.error):Promise.resolve();if(q.hasError)throw q.error}return M()},F=function(q,N){return typeof q=="string"&&/^\.\.?\//.test(q)?q.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(L,$,M,j,U){return $?N?".jsx":".js":M&&(!j||!U)?L:M+j+"."+U.toLowerCase()+"js"}):q},z("__extends",t),z("__assign",r),z("__rest",a),z("__decorate",o),z("__param",n),z("__esDecorate",s),z("__runInitializers",i),z("__propKey",c),z("__setFunctionName",u),z("__metadata",p),z("__awaiter",l),z("__generator",d),z("__exportStar",f),z("__createBinding",C),z("__values",h),z("__read",m),z("__spread",v),z("__spreadArrays",g),z("__spreadArray",_),z("__await",b),z("__asyncGenerator",y),z("__asyncDelegator",E),z("__asyncValues",x),z("__makeTemplateObject",O),z("__importStar",S),z("__importDefault",w),z("__classPrivateFieldGet",T),z("__classPrivateFieldSet",A),z("__classPrivateFieldIn",P),z("__addDisposableResource",D),z("__disposeResources",H),z("__rewriteRelativeImportExtension",F)})})(gf)),gf.exports}var bf={},yf={},zl={},Nb;function hD(){if(Nb)return zl;Nb=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.Bind=e;function e(...t){return(r,a,o)=>(t.forEach((n,s)=>n(r,a,s)),o)}return zl}var Bl={},Ef={},Fb;function xe(){return Fb||(Fb=1,(function(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__"})(Ef)),Ef}var Db;function vD(){if(Db)return Bl;Db=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.Catch=t;const e=xe();function t(...r){return a=>{Reflect.defineMetadata(e.CATCH_WATERMARK,!0,a),Reflect.defineMetadata(e.FILTER_CATCH_EXCEPTIONS,r,a)}}return Bl}var Hl={},xf={},kb;function ne(){return kb||(kb=1,(function(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;const t=h=>typeof h>"u";e.isUndefined=t;const r=h=>!(0,e.isNil)(h)&&typeof h=="object";e.isObject=r;const a=h=>{if(!(0,e.isObject)(h))return!1;const m=Object.getPrototypeOf(h);if(m===null)return!0;const v=Object.prototype.hasOwnProperty.call(m,"constructor")&&m.constructor;return typeof v=="function"&&v instanceof v&&Function.prototype.toString.call(v)===Function.prototype.toString.call(Object)};e.isPlainObject=a;const o=h=>h&&typeof h=="string"?h.charAt(0)!=="/"&&h.substring(0,2)!=="{/"?"/"+h:h:"";e.addLeadingSlash=o;const n=h=>h?h.startsWith("/")?("/"+h.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+h.replace(/\/+$/,""):"/";e.normalizePath=n;const s=h=>h[h.length-1]==="/"?h.slice(0,h.length-1):h;e.stripEndSlash=s;const i=h=>typeof h=="function";e.isFunction=i;const c=h=>typeof h=="string";e.isString=c;const u=h=>typeof h=="number";e.isNumber=u;const p=h=>h==="constructor";e.isConstructor=p;const l=h=>(0,e.isUndefined)(h)||h===null;e.isNil=l;const d=h=>!(h&&h.length>0);e.isEmpty=d;const f=h=>typeof h=="symbol";e.isSymbol=f})(xf)),xf}var Lb;function mD(){if(Lb)return Hl;Lb=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.Controller=r;const e=xe(),t=ne();function r(a){const[n,s,i,c]=(0,t.isUndefined)(a)?["/",void 0,void 0,void 0]:(0,t.isString)(a)||Array.isArray(a)?[a,void 0,void 0,void 0]:[a.path||"/",a.host,{scope:a.scope,durable:a.durable},Array.isArray(a.version)?Array.from(new Set(a.version)):a.version];return u=>{Reflect.defineMetadata(e.CONTROLLER_WATERMARK,!0,u),Reflect.defineMetadata(e.PATH_METADATA,n,u),Reflect.defineMetadata(e.HOST_METADATA,s,u),Reflect.defineMetadata(e.SCOPE_OPTIONS_METADATA,i,u),Reflect.defineMetadata(e.VERSION_METADATA,c,u)}}return Hl}var Rn={},Ub;function _D(){if(Ub)return Rn;Ub=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.Dependencies=void 0,Rn.flatten=t;const e=xe();function t(a){const o=[].concat(...a);return o.some(Array.isArray)?t(o):o}const r=(...a)=>{const o=t(a);return n=>{Reflect.defineMetadata(e.PARAMTYPES_METADATA,o,n)}};return Rn.Dependencies=r,Rn}var Oi={},Vl={},$b;function ml(){if($b)return Vl;$b=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.extendArrayMetadata=e;function e(t,r,a){const n=[...Reflect.getMetadata(t,a)||[],...r];Reflect.defineMetadata(t,n,a)}return Vl}var Mn={},zb;function fp(){if(zb)return Mn;zb=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.InvalidDecoratorItemException=void 0,Mn.validateEach=t;class e extends Error{constructor(a,o,n){const s=`Invalid ${o} passed to ${a}() decorator (${n}).`;super(s),this.msg=s}what(){return this.msg}}Mn.InvalidDecoratorItemException=e;function t(r,a,o,n,s){if(!r||!r.name)return!0;if(a.some(c=>!o(c)))throw new e(n,s,r.name);return!0}return Mn}var Bb;function gD(){if(Bb)return Oi;Bb=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.UseFilters=void 0;const e=xe(),t=ml(),r=ne(),a=fp(),o=(...s)=>n(...s);Oi.UseFilters=o;function n(...s){return(i,c,u)=>{const p=l=>l&&((0,r.isFunction)(l)||(0,r.isFunction)(l.catch));return u?((0,a.validateEach)(i.constructor,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,u.value),u):((0,a.validateEach)(i,s,p,"@UseFilters","filter"),(0,t.extendArrayMetadata)(e.EXCEPTION_FILTERS_METADATA,s,i),i)}}return Oi}var Gl={},Hb;function bD(){if(Hb)return Gl;Hb=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.Inject=r;const e=xe(),t=ne();function r(a){const o=arguments.length>0;return(n,s,i)=>{let c=a||Reflect.getMetadata("design:type",n,s);if(!c&&!o&&(c=Reflect.getMetadata(e.PARAMTYPES_METADATA,n,s)?.[i]),!(0,t.isUndefined)(i)){let p=Reflect.getMetadata(e.SELF_DECLARED_DEPS_METADATA,n)||[];p=[...p,{index:i,param:c}],Reflect.defineMetadata(e.SELF_DECLARED_DEPS_METADATA,p,n);return}let u=Reflect.getMetadata(e.PROPERTY_DEPS_METADATA,n.constructor)||[];u=[...u,{key:s,type:c}],Reflect.defineMetadata(e.PROPERTY_DEPS_METADATA,u,n.constructor)}}return Gl}var wi={},Of={},Vb;function pn(){if(Vb)return Of;Vb=1;for(var e=256,t=[],r=256,a;e--;)t[e]=(e+256).toString(16).substring(1);function o(n){var s=0,i=n||11;if(!a||e+i>r*2)for(a="",e=0;s<r;s++)a+=t[Math.random()*256|0];return a.substring(e,e+++i)}return Of.uid=o,Of}var Gb;function fn(){if(Gb)return wi;Gb=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.Injectable=r,wi.mixin=a;const e=pn(),t=xe();function r(o){return n=>{Reflect.defineMetadata(t.INJECTABLE_WATERMARK,!0,n),Reflect.defineMetadata(t.SCOPE_OPTIONS_METADATA,o,n)}}function a(o){return Object.defineProperty(o,"name",{value:(0,e.uid)(21)}),r()(o),o}return wi}var Wl={},Wb;function _l(){if(Wb)return Wl;Wb=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.Optional=r;const e=xe(),t=ne();function r(){return(a,o,n)=>{if(!(0,t.isUndefined)(n)){const i=Reflect.getMetadata(e.OPTIONAL_DEPS_METADATA,a)||[];Reflect.defineMetadata(e.OPTIONAL_DEPS_METADATA,[...i,n],a);return}const s=Reflect.getMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,a.constructor)||[];Reflect.defineMetadata(e.OPTIONAL_PROPERTY_DEPS_METADATA,[...s,o],a.constructor)}}return Wl}var Si={},Zb;function yD(){if(Zb)return Si;Zb=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.SetMetadata=void 0;const e=(t,r)=>{const a=(o,n,s)=>s?(Reflect.defineMetadata(t,r,s.value),s):(Reflect.defineMetadata(t,r,o),o);return a.KEY=t,a};return Si.SetMetadata=e,Si}var Zl={},Kb;function ED(){if(Kb)return Zl;Kb=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.UseGuards=o;const e=xe(),t=ml(),r=ne(),a=fp();function o(...n){return(s,i,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.canActivate));return c?((0,a.validateEach)(s.constructor,n,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,n,c.value),c):((0,a.validateEach)(s,n,u,"@UseGuards","guard"),(0,t.extendArrayMetadata)(e.GUARDS_METADATA,n,s),s)}}return Zl}var Kl={},Yb;function xD(){if(Yb)return Kl;Yb=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.UseInterceptors=o;const e=xe(),t=ml(),r=ne(),a=fp();function o(...n){return(s,i,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.intercept));return c?((0,a.validateEach)(s.constructor,n,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,n,c.value),c):((0,a.validateEach)(s,n,u,"@UseInterceptors","interceptor"),(0,t.extendArrayMetadata)(e.INTERCEPTORS_METADATA,n,s),s)}}return Kl}var Yl={},Xb;function OD(){if(Xb)return Yl;Xb=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.UsePipes=o;const e=xe(),t=ml(),r=ne(),a=fp();function o(...n){return(s,i,c)=>{const u=p=>p&&((0,r.isFunction)(p)||(0,r.isFunction)(p.transform));return c?((0,t.extendArrayMetadata)(e.PIPES_METADATA,n,c.value),c):((0,a.validateEach)(s,n,u,"@UsePipes","pipe"),(0,t.extendArrayMetadata)(e.PIPES_METADATA,n,s),s)}}return Yl}var Xl={},Qb;function wD(){if(Qb)return Xl;Qb=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.applyDecorators=e;function e(...t){return(r,a,o)=>{for(const n of t){if(r instanceof Function&&!o){n(r);continue}n(r,a,o)}}}return Xl}var Ql={},Jb;function SD(){if(Jb)return Ql;Jb=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.Version=t;const e=xe();function t(r){return Array.isArray(r)&&(r=Array.from(new Set(r))),(a,o,n)=>(Reflect.defineMetadata(e.VERSION_METADATA,r,n.value),n)}return Ql}var ey;function rr(){return ey||(ey=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(hD(),e),t.__exportStar(vD(),e),t.__exportStar(mD(),e),t.__exportStar(_D(),e),t.__exportStar(gD(),e),t.__exportStar(bD(),e),t.__exportStar(fn(),e),t.__exportStar(_l(),e),t.__exportStar(yD(),e),t.__exportStar(ED(),e),t.__exportStar(xD(),e),t.__exportStar(OD(),e),t.__exportStar(wD(),e),t.__exportStar(SD(),e)})(yf)),yf}var wf={},Jl={},ty;function PD(){if(ty)return Jl;ty=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.Global=t;const e=xe();function t(){return r=>{Reflect.defineMetadata(e.GLOBAL_MODULE_METADATA,!0,r)}}return Jl}var ed={},Sf={},ry;function TD(){return ry||(ry=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_MODULE_CONFIG_MESSAGE=void 0,e.validateModuleKeys=o;const t=xe(),r=(n,s)=>`Invalid property '${s}' passed into the @Module() decorator.`;e.INVALID_MODULE_CONFIG_MESSAGE=r;const a=[t.MODULE_METADATA.IMPORTS,t.MODULE_METADATA.EXPORTS,t.MODULE_METADATA.CONTROLLERS,t.MODULE_METADATA.PROVIDERS];function o(n){const s=i=>{if(!a.includes(i))throw new Error((0,e.INVALID_MODULE_CONFIG_MESSAGE)`${i}`)};n.forEach(s)}})(Sf)),Sf}var ny;function AD(){if(ny)return ed;ny=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.Module=t;const e=TD();function t(r){const a=Object.keys(r);return(0,e.validateModuleKeys)(a),o=>{for(const n in r)Object.hasOwnProperty.call(r,n)&&Reflect.defineMetadata(n,r[n],o)}}return ed}var iy;function RD(){return iy||(iy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(PD(),e),t.__exportStar(AD(),e)})(wf)),wf}var Pf={},Tf={},Pi={},ay;function ui(){if(ay)return Pi;ay=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.RequestMethod=void 0;var e;return(function(t){t[t.GET=0]="GET",t[t.POST=1]="POST",t[t.PUT=2]="PUT",t[t.DELETE=3]="DELETE",t[t.PATCH=4]="PATCH",t[t.ALL=5]="ALL",t[t.OPTIONS=6]="OPTIONS",t[t.HEAD=7]="HEAD",t[t.SEARCH=8]="SEARCH",t[t.PROPFIND=9]="PROPFIND",t[t.PROPPATCH=10]="PROPPATCH",t[t.MKCOL=11]="MKCOL",t[t.COPY=12]="COPY",t[t.MOVE=13]="MOVE",t[t.LOCK=14]="LOCK",t[t.UNLOCK=15]="UNLOCK"})(e||(Pi.RequestMethod=e={})),Pi}var oy;function MD(){return oy||(oy=1,(function(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;const t=xe(),r=ui(),a={[t.PATH_METADATA]:"/",[t.METHOD_METADATA]:r.RequestMethod.GET},o=(s=a)=>{const i=s[t.PATH_METADATA],c=i&&i.length?i:"/",u=s[t.METHOD_METADATA]||r.RequestMethod.GET;return(p,l,d)=>(Reflect.defineMetadata(t.PATH_METADATA,c,d.value),Reflect.defineMetadata(t.METHOD_METADATA,u,d.value),d)};e.RequestMapping=o;const n=s=>i=>(0,e.RequestMapping)({[t.PATH_METADATA]:i,[t.METHOD_METADATA]:s});e.Post=n(r.RequestMethod.POST),e.Get=n(r.RequestMethod.GET),e.Delete=n(r.RequestMethod.DELETE),e.Put=n(r.RequestMethod.PUT),e.Patch=n(r.RequestMethod.PATCH),e.Options=n(r.RequestMethod.OPTIONS),e.Head=n(r.RequestMethod.HEAD),e.All=n(r.RequestMethod.ALL),e.Search=n(r.RequestMethod.SEARCH),e.Propfind=n(r.RequestMethod.PROPFIND),e.Proppatch=n(r.RequestMethod.PROPPATCH),e.Mkcol=n(r.RequestMethod.MKCOL),e.Copy=n(r.RequestMethod.COPY),e.Move=n(r.RequestMethod.MOVE),e.Lock=n(r.RequestMethod.LOCK),e.Unlock=n(r.RequestMethod.UNLOCK)})(Tf)),Tf}var Af={},Ti={},sy;function hp(){if(sy)return Ti;sy=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.RouteParamtypes=void 0;var e;return(function(t){t[t.REQUEST=0]="REQUEST",t[t.RESPONSE=1]="RESPONSE",t[t.NEXT=2]="NEXT",t[t.BODY=3]="BODY",t[t.QUERY=4]="QUERY",t[t.PARAM=5]="PARAM",t[t.HEADERS=6]="HEADERS",t[t.SESSION=7]="SESSION",t[t.FILE=8]="FILE",t[t.FILES=9]="FILES",t[t.HOST=10]="HOST",t[t.IP=11]="IP",t[t.RAW_BODY=12]="RAW_BODY",t[t.ACK=13]="ACK"})(e||(Ti.RouteParamtypes=e={})),Ti}var cy;function ID(){return cy||(cy=1,(function(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=o,e.UploadedFile=c,e.UploadedFiles=u,e.Query=p,e.Body=l,e.RawBody=d,e.Param=f,e.HostParam=h;const t=xe(),r=hp(),a=ne();function o(m,v,g,_,...b){return{...m,[`${v}:${g}`]:{index:g,data:_,pipes:b}}}function n(m){return v=>(g,_,b)=>{const y=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,g.constructor,_)||{};Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,o(y,m,b,v),g.constructor,_)}}const s=m=>(v,...g)=>(_,b,y)=>{const E=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,_.constructor,b)||{},x=(0,a.isNil)(v)||(0,a.isString)(v),O=x?v:void 0,S=x?g:[v,...g];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,o(E,m,y,O,...S),_.constructor,b)};e.Request=n(r.RouteParamtypes.REQUEST);const i=m=>(v,g,_)=>(m?.passthrough&&Reflect.defineMetadata(t.RESPONSE_PASSTHROUGH_METADATA,m?.passthrough,v.constructor,g),n(r.RouteParamtypes.RESPONSE)()(v,g,_));e.Response=i,e.Next=n(r.RouteParamtypes.NEXT),e.Ip=n(r.RouteParamtypes.IP),e.Session=n(r.RouteParamtypes.SESSION);function c(m,...v){return s(r.RouteParamtypes.FILE)(m,...v)}function u(...m){return s(r.RouteParamtypes.FILES)(void 0,...m)}e.Headers=n(r.RouteParamtypes.HEADERS);function p(m,...v){return s(r.RouteParamtypes.QUERY)(m,...v)}function l(m,...v){return s(r.RouteParamtypes.BODY)(m,...v)}function d(...m){return s(r.RouteParamtypes.RAW_BODY)(void 0,...m)}function f(m,...v){return s(r.RouteParamtypes.PARAM)(m,...v)}function h(m){return n(r.RouteParamtypes.HOST)(m)}e.Req=e.Request,e.Res=e.Response})(Af)),Af}var td={},uy;function CD(){if(uy)return td;uy=1,Object.defineProperty(td,"__esModule",{value:!0}),td.HttpCode=t;const e=xe();function t(r){return(a,o,n)=>(Reflect.defineMetadata(e.HTTP_CODE_METADATA,r,n.value),n)}return td}var rd={},nd={},ly;function jD(){if(ly)return nd;ly=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.assignCustomParameterMetadata=t;const e=xe();function t(r,a,o,n,s,...i){return{...r,[`${a}${e.CUSTOM_ROUTE_ARGS_METADATA}:${o}`]:{index:o,factory:n,data:s,pipes:i}}}return nd}var dy;function qD(){if(dy)return rd;dy=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.createParamDecorator=o;const e=pn(),t=xe(),r=jD(),a=ne();function o(n,s=[]){const i=(0,e.uid)(21);return(c,...u)=>(p,l,d)=>{const f=Reflect.getMetadata(t.ROUTE_ARGS_METADATA,p.constructor,l)||{},h=_=>_&&((0,a.isFunction)(_)&&_.prototype&&(0,a.isFunction)(_.prototype.transform)||(0,a.isFunction)(_.transform)),m=(0,a.isNil)(c)||!h(c),v=m?c:void 0,g=m?u:[c,...u];Reflect.defineMetadata(t.ROUTE_ARGS_METADATA,(0,r.assignCustomParameterMetadata)(f,i,d,n,v,...g),p.constructor,l),s.forEach(_=>_(p,l,d))}}return rd}var id={},py;function ND(){if(py)return id;py=1,Object.defineProperty(id,"__esModule",{value:!0}),id.Render=t;const e=xe();function t(r){return(a,o,n)=>(Reflect.defineMetadata(e.RENDER_METADATA,r,n.value),n)}return id}var ad={},fy;function FD(){if(fy)return ad;fy=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.Header=r;const e=xe(),t=ml();function r(a,o){return(n,s,i)=>((0,t.extendArrayMetadata)(e.HEADERS_METADATA,[{name:a,value:o}],i.value),i)}return ad}var od={},hy;function DD(){if(hy)return od;hy=1,Object.defineProperty(od,"__esModule",{value:!0}),od.Redirect=t;const e=xe();function t(r="",a){return(o,n,s)=>(Reflect.defineMetadata(e.REDIRECT_METADATA,{statusCode:a,url:r},s.value),s)}return od}var sd={},vy;function kD(){if(vy)return sd;vy=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.Sse=r;const e=xe(),t=ui();function r(a){return(o,n,s)=>(a=a&&a.length?a:"/",Reflect.defineMetadata(e.PATH_METADATA,a,s.value),Reflect.defineMetadata(e.METHOD_METADATA,t.RequestMethod.GET,s.value),Reflect.defineMetadata(e.SSE_METADATA,!0,s.value),s)}return sd}var my;function LD(){return my||(my=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(MD(),e),t.__exportStar(ID(),e),t.__exportStar(CD(),e),t.__exportStar(qD(),e),t.__exportStar(ND(),e),t.__exportStar(FD(),e),t.__exportStar(DD(),e),t.__exportStar(kD(),e)})(Pf)),Pf}var _y;function ug(){return _y||(_y=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(rr(),e),t.__exportStar(RD(),e),t.__exportStar(LD(),e)})(bf)),bf}var Rf={},Ai={},gy;function Ie(){if(gy)return Ai;gy=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.HttpStatus=void 0;var e;return(function(t){t[t.CONTINUE=100]="CONTINUE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.PROCESSING=102]="PROCESSING",t[t.EARLYHINTS=103]="EARLYHINTS",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.MULTI_STATUS=207]="MULTI_STATUS",t[t.ALREADY_REPORTED=208]="ALREADY_REPORTED",t[t.CONTENT_DIFFERENT=210]="CONTENT_DIFFERENT",t[t.AMBIGUOUS=300]="AMBIGUOUS",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.FOUND=302]="FOUND",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",t[t.URI_TOO_LONG=414]="URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",t[t.MISDIRECTED=421]="MISDIRECTED",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.LOCKED=423]="LOCKED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.UNRECOVERABLE_ERROR=456]="UNRECOVERABLE_ERROR",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.LOOP_DETECTED=508]="LOOP_DETECTED"})(e||(Ai.HttpStatus=e={})),Ai}var Ri={},by;function UD(){if(by)return Ri;by=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.ShutdownSignal=void 0;var e;return(function(t){t.SIGHUP="SIGHUP",t.SIGINT="SIGINT",t.SIGQUIT="SIGQUIT",t.SIGILL="SIGILL",t.SIGTRAP="SIGTRAP",t.SIGABRT="SIGABRT",t.SIGBUS="SIGBUS",t.SIGFPE="SIGFPE",t.SIGSEGV="SIGSEGV",t.SIGUSR2="SIGUSR2",t.SIGTERM="SIGTERM"})(e||(Ri.ShutdownSignal=e={})),Ri}var Mi={},yy;function $D(){if(yy)return Mi;yy=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.VersioningType=void 0;var e;return(function(t){t[t.URI=0]="URI",t[t.HEADER=1]="HEADER",t[t.MEDIA_TYPE=2]="MEDIA_TYPE",t[t.CUSTOM=3]="CUSTOM"})(e||(Mi.VersioningType=e={})),Mi}var Ey;function gl(){return Ey||(Ey=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(ui(),e),t.__exportStar(Ie(),e),t.__exportStar(UD(),e),t.__exportStar($D(),e)})(Rf)),Rf}var Mf={},Ii={},Ci={},ji={},xy;function ZI(){if(xy)return ji;xy=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.IntrinsicException=void 0;class e extends Error{}return ji.IntrinsicException=e,ji}var Oy;function Be(){if(Oy)return Ci;Oy=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.HttpException=void 0;const e=ne(),t=ZI();class r extends t.IntrinsicException{constructor(o,n,s){super(),this.response=o,this.status=n,this.options=s,this.initMessage(),this.initName(),this.initCause()}initCause(){if(this.options?.cause){this.cause=this.options.cause;return}}initMessage(){(0,e.isString)(this.response)?this.message=this.response:(0,e.isObject)(this.response)&&(0,e.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(o,n,s){return o?(0,e.isString)(o)||Array.isArray(o)||(0,e.isNumber)(o)?{message:o,error:n,statusCode:s}:o:{message:n,statusCode:s}}static getDescriptionFrom(o){return(0,e.isString)(o)?o:o?.description}static getHttpExceptionOptionsFrom(o){return(0,e.isString)(o)?{}:o}static extractDescriptionAndOptionsFrom(o){const n=(0,e.isString)(o)?o:o?.description,s=(0,e.isString)(o)?{}:o;return{description:n,httpExceptionOptions:s}}}return Ci.HttpException=r,Ci}var wy;function zD(){if(wy)return Ii;wy=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.BadGatewayException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Bad Gateway"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.BAD_GATEWAY),e.HttpStatus.BAD_GATEWAY,i)}}return Ii.BadGatewayException=r,Ii}var qi={},Sy;function BD(){if(Sy)return qi;Sy=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.BadRequestException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Bad Request"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.BAD_REQUEST),e.HttpStatus.BAD_REQUEST,i)}}return qi.BadRequestException=r,qi}var Ni={},Py;function HD(){if(Py)return Ni;Py=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.ConflictException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Conflict"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.CONFLICT),e.HttpStatus.CONFLICT,i)}}return Ni.ConflictException=r,Ni}var Fi={},Ty;function VD(){if(Ty)return Fi;Ty=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.ForbiddenException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Forbidden"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.FORBIDDEN),e.HttpStatus.FORBIDDEN,i)}}return Fi.ForbiddenException=r,Fi}var Di={},Ay;function GD(){if(Ay)return Di;Ay=1,Object.defineProperty(Di,"__esModule",{value:!0}),Di.GatewayTimeoutException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Gateway Timeout"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.GATEWAY_TIMEOUT),e.HttpStatus.GATEWAY_TIMEOUT,i)}}return Di.GatewayTimeoutException=r,Di}var ki={},Ry;function WD(){if(Ry)return ki;Ry=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.GoneException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Gone"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.GONE),e.HttpStatus.GONE,i)}}return ki.GoneException=r,ki}var Li={},My;function ZD(){if(My)return Li;My=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.HttpVersionNotSupportedException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="HTTP Version Not Supported"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),e.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,i)}}return Li.HttpVersionNotSupportedException=r,Li}var Ui={},Iy;function KD(){if(Iy)return Ui;Iy=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.ImATeapotException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="I'm a teapot"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.I_AM_A_TEAPOT),e.HttpStatus.I_AM_A_TEAPOT,i)}}return Ui.ImATeapotException=r,Ui}var $i={},Cy;function YD(){if(Cy)return $i;Cy=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.InternalServerErrorException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Internal Server Error"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.INTERNAL_SERVER_ERROR),e.HttpStatus.INTERNAL_SERVER_ERROR,i)}}return $i.InternalServerErrorException=r,$i}var zi={},jy;function XD(){if(jy)return zi;jy=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.MethodNotAllowedException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Method Not Allowed"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.METHOD_NOT_ALLOWED),e.HttpStatus.METHOD_NOT_ALLOWED,i)}}return zi.MethodNotAllowedException=r,zi}var Bi={},qy;function QD(){if(qy)return Bi;qy=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.MisdirectedException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Misdirected"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.MISDIRECTED),e.HttpStatus.MISDIRECTED,i)}}return Bi.MisdirectedException=r,Bi}var Hi={},Ny;function JD(){if(Ny)return Hi;Ny=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.NotAcceptableException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Not Acceptable"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_ACCEPTABLE),e.HttpStatus.NOT_ACCEPTABLE,i)}}return Hi.NotAcceptableException=r,Hi}var Vi={},Fy;function ek(){if(Fy)return Vi;Fy=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.NotFoundException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Not Found"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_FOUND),e.HttpStatus.NOT_FOUND,i)}}return Vi.NotFoundException=r,Vi}var Gi={},Dy;function tk(){if(Dy)return Gi;Dy=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.NotImplementedException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Not Implemented"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.NOT_IMPLEMENTED),e.HttpStatus.NOT_IMPLEMENTED,i)}}return Gi.NotImplementedException=r,Gi}var Wi={},ky;function rk(){if(ky)return Wi;ky=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.PayloadTooLargeException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Payload Too Large"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.PAYLOAD_TOO_LARGE),e.HttpStatus.PAYLOAD_TOO_LARGE,i)}}return Wi.PayloadTooLargeException=r,Wi}var Zi={},Ly;function nk(){if(Ly)return Zi;Ly=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.PreconditionFailedException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Precondition Failed"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.PRECONDITION_FAILED),e.HttpStatus.PRECONDITION_FAILED,i)}}return Zi.PreconditionFailedException=r,Zi}var Ki={},Uy;function ik(){if(Uy)return Ki;Uy=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.RequestTimeoutException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Request Timeout"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.REQUEST_TIMEOUT),e.HttpStatus.REQUEST_TIMEOUT,i)}}return Ki.RequestTimeoutException=r,Ki}var Yi={},$y;function ak(){if($y)return Yi;$y=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.ServiceUnavailableException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Service Unavailable"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.SERVICE_UNAVAILABLE),e.HttpStatus.SERVICE_UNAVAILABLE,i)}}return Yi.ServiceUnavailableException=r,Yi}var Xi={},zy;function ok(){if(zy)return Xi;zy=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.UnauthorizedException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Unauthorized"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.UNAUTHORIZED),e.HttpStatus.UNAUTHORIZED,i)}}return Xi.UnauthorizedException=r,Xi}var Qi={},By;function sk(){if(By)return Qi;By=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.UnprocessableEntityException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Unprocessable Entity"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.UNPROCESSABLE_ENTITY),e.HttpStatus.UNPROCESSABLE_ENTITY,i)}}return Qi.UnprocessableEntityException=r,Qi}var Ji={},Hy;function ck(){if(Hy)return Ji;Hy=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.UnsupportedMediaTypeException=void 0;const e=Ie(),t=Be();class r extends t.HttpException{constructor(o,n="Unsupported Media Type"){const{description:s,httpExceptionOptions:i}=t.HttpException.extractDescriptionAndOptionsFrom(n);super(t.HttpException.createBody(o,s,e.HttpStatus.UNSUPPORTED_MEDIA_TYPE),e.HttpStatus.UNSUPPORTED_MEDIA_TYPE,i)}}return Ji.UnsupportedMediaTypeException=r,Ji}var Vy;function lg(){return Vy||(Vy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(zD(),e),t.__exportStar(BD(),e),t.__exportStar(HD(),e),t.__exportStar(VD(),e),t.__exportStar(GD(),e),t.__exportStar(WD(),e),t.__exportStar(ZD(),e),t.__exportStar(Be(),e),t.__exportStar(KD(),e),t.__exportStar(YD(),e),t.__exportStar(ZI(),e),t.__exportStar(XD(),e),t.__exportStar(QD(),e),t.__exportStar(JD(),e),t.__exportStar(ek(),e),t.__exportStar(tk(),e),t.__exportStar(rk(),e),t.__exportStar(nk(),e),t.__exportStar(ik(),e),t.__exportStar(ak(),e),t.__exportStar(ok(),e),t.__exportStar(sk(),e),t.__exportStar(ck(),e)})(Mf)),Mf}var If={},ea={},Cf={},In={},jf={},Gy;function nr(){return Gy||(Gy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.yellow=e.clc=e.isColorAllowed=void 0;const t=()=>!process.env.NO_COLOR;e.isColorAllowed=t;const r=a=>o=>(0,e.isColorAllowed)()?a(o):o;e.clc={bold:r(a=>`\x1B[1m${a}\x1B[0m`),green:r(a=>`\x1B[32m${a}\x1B[39m`),yellow:r(a=>`\x1B[33m${a}\x1B[39m`),red:r(a=>`\x1B[31m${a}\x1B[39m`),magentaBright:r(a=>`\x1B[95m${a}\x1B[39m`),cyanBright:r(a=>`\x1B[96m${a}\x1B[39m`)},e.yellow=r(a=>`\x1B[38;5;3m${a}\x1B[39m`)})(jf)),jf}var cd={},Wy;function KI(){if(Wy)return cd;Wy=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.isLogLevelEnabled=t;const e={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};function t(r,a){if(!a||Array.isArray(a)&&a?.length===0)return!1;if(a.includes(r))return!0;const o=a.map(s=>e[s]).sort((s,i)=>i-s)?.[0];return e[r]>=o}return cd}var Zy;function dg(){if(Zy)return In;Zy=1;var e;Object.defineProperty(In,"__esModule",{value:!0}),In.ConsoleLogger=void 0;const t=ae(),r=si,a=rr(),o=nr(),n=ne(),s=KI(),i=5,c=["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"});let p=e=class{constructor(d,f){let[h,m]=(0,n.isString)(d)?[d,f]:f?[void 0,f]:[d?.context,d];m=m??{},m.logLevels??=c,m.colors??=m.colors??(m.json?!1:(0,o.isColorAllowed)()),m.prefix??="Nest",this.options=m,this.inspectOptions=this.getInspectOptions(),h&&(this.context=h,this.originalContext=h)}log(d,...f){if(!this.isLevelEnabled("log"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"log")}error(d,...f){if(!this.isLevelEnabled("error"))return;const{messages:h,context:m,stack:v}=this.getContextAndStackAndMessagesToPrint([d,...f]);this.printMessages(h,m,"error","stderr",v),this.printStackTrace(v)}warn(d,...f){if(!this.isLevelEnabled("warn"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"warn")}debug(d,...f){if(!this.isLevelEnabled("debug"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"debug")}verbose(d,...f){if(!this.isLevelEnabled("verbose"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"verbose")}fatal(d,...f){if(!this.isLevelEnabled("fatal"))return;const{messages:h,context:m}=this.getContextAndMessagesToPrint([d,...f]);this.printMessages(h,m,"fatal")}setLogLevels(d){this.options||(this.options={}),this.options.logLevels=d}setContext(d){this.context=d}resetContext(){this.context=this.originalContext}isLevelEnabled(d){const f=this.options?.logLevels;return(0,s.isLogLevelEnabled)(d,f)}getTimestamp(){return u.format(Date.now())}printMessages(d,f="",h="log",m,v){d.forEach(g=>{if(this.options.json){this.printAsJson(g,{context:f,logLevel:h,writeStreamType:m,errorStack:v});return}const _=this.formatPid(process.pid),b=this.formatContext(f),y=this.updateAndGetTimestampDiff(),E=h.toUpperCase().padStart(7," "),x=this.formatMessage(h,g,_,E,b,y);this.options.forceConsole?m==="stderr"?console.error(x.trim()):console.log(x.trim()):process[m??"stdout"].write(x)})}printAsJson(d,f){const h=this.getJsonLogObject(d,f),m=!this.options.colors&&this.inspectOptions.compact===!0?JSON.stringify(h,this.stringifyReplacer):(0,r.inspect)(h,this.inspectOptions);this.options.forceConsole?f.writeStreamType==="stderr"?console.error(m):console.log(m):process[f.writeStreamType??"stdout"].write(`${m}
|
|
17
|
+
`)}getJsonLogObject(d,f){const h={level:f.logLevel,pid:process.pid,timestamp:Date.now(),message:d};return f.context&&(h.context=f.context),f.errorStack&&(h.stack=f.errorStack),h}formatPid(d){return`[${this.options.prefix}] ${d} - `}formatContext(d){return d?(d=`[${d}] `,this.options.colors?(0,o.yellow)(d):d):""}formatMessage(d,f,h,m,v,g){const _=this.stringifyMessage(f,d);return h=this.colorize(h,d),m=this.colorize(m,d),`${h}${this.getTimestamp()} ${m} ${v}${_}${g}
|
|
18
|
+
`}stringifyMessage(d,f){if((0,n.isFunction)(d))return Function.prototype.toString.call(d).startsWith("class ")?this.stringifyMessage(d.name,f):this.stringifyMessage(d(),f);if(typeof d=="string")return this.colorize(d,f);const h=(0,r.inspect)(d,this.inspectOptions);return(0,n.isPlainObject)(d)?`Object(${Object.keys(d).length}) ${h}`:Array.isArray(d)?`Array(${d.length}) ${h}`:h}colorize(d,f){return!this.options.colors||this.options.json?d:this.getColorByLogLevel(f)(d)}printStackTrace(d){!d||this.options.json||(this.options.forceConsole?console.error(d):process.stderr.write(`${d}
|
|
19
|
+
`))}updateAndGetTimestampDiff(){const f=e.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-e.lastTimestampAt):"";return e.lastTimestampAt=Date.now(),f}formatTimestampDiff(d){const f=` +${d}ms`;return this.options.colors?(0,o.yellow)(f):f}getInspectOptions(){let d=this.options.breakLength;typeof d>"u"&&(d=this.options.colors?this.options.compact?1/0:void 0:this.options.compact===!1?void 0:1/0);const f={depth:this.options.depth??i,sorted:this.options.sorted,showHidden:this.options.showHidden,compact:this.options.compact??!!this.options.json,colors:this.options.colors,breakLength:d};return this.options.maxArrayLength&&(f.maxArrayLength=this.options.maxArrayLength),this.options.maxStringLength&&(f.maxStringLength=this.options.maxStringLength),f}stringifyReplacer(d,f){return typeof f=="bigint"||typeof f=="symbol"?f.toString():f instanceof Map||f instanceof Set||f instanceof Error?`${(0,r.inspect)(f,this.inspectOptions)}`:f}getContextAndMessagesToPrint(d){if(d?.length<=1)return{messages:d,context:this.context};const f=d[d.length-1];return(0,n.isString)(f)?{context:f,messages:d.slice(0,d.length-1)}:{messages:d,context:this.context}}getContextAndStackAndMessagesToPrint(d){if(d.length===2)return this.isStackFormat(d[1])?{messages:[d[0]],stack:d[1],context:this.context}:{messages:[d[0]],context:d[1]};const{messages:f,context:h}=this.getContextAndMessagesToPrint(d);if(f?.length<=1)return{messages:f,context:h};const m=f[f.length-1];return!(0,n.isString)(m)&&!(0,n.isUndefined)(m)?{messages:f,context:h}:{stack:m,messages:f.slice(0,f.length-1),context:h}}isStackFormat(d){return!(0,n.isString)(d)&&!(0,n.isUndefined)(d)?!1:/^(.)+\n\s+at .+:\d+:\d+/.test(d)}getColorByLogLevel(d){switch(d){case"debug":return o.clc.magentaBright;case"warn":return o.clc.yellow;case"error":return o.clc.red;case"verbose":return o.clc.cyanBright;case"fatal":return o.clc.bold;default:return o.clc.green}}};return In.ConsoleLogger=p,In.ConsoleLogger=p=e=t.__decorate([(0,a.Injectable)(),t.__param(0,(0,a.Optional)()),t.__param(1,(0,a.Optional)()),t.__metadata("design:paramtypes",[Object,Object])],p),In}var Jt={},qf={},ud={},ld={},Ky;function YI(){if(Ky)return ld;Ky=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.isLogLevel=t;const e=wt();function t(r){return e.LOG_LEVELS.includes(r)}return ld}var Yy;function XI(){if(Yy)return ud;Yy=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.filterLogLevels=r;const e=wt(),t=YI();function r(a=""){const o=a.replaceAll(" ","").toLowerCase();if(o[0]===">"){const n=o[1]==="=",s=e.LOG_LEVELS.indexOf(o.substring(n?2:1));if(s===-1)throw new Error(`parse error (unknown log level): ${o}`);return e.LOG_LEVELS.slice(n?s:s+1)}else if(o.includes(","))return o.split(",").filter(t.isLogLevel);return(0,t.isLogLevel)(o)?[o]:e.LOG_LEVELS}return ud}var Xy;function uk(){return Xy||(Xy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(XI(),e),t.__exportStar(KI(),e),t.__exportStar(YI(),e)})(qf)),qf}var Qy;function wt(){if(Qy)return Jt;Qy=1;var e;Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.Logger=Jt.LOG_LEVELS=void 0;const t=ae(),r=rr(),a=ne(),o=dg(),n=uk();Jt.LOG_LEVELS=["verbose","debug","log","warn","error","fatal"];const s=new o.ConsoleLogger,i=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let c=e=class{constructor(p,l={}){this.context=p,this.options=l}get localInstance(){return e.staticInstanceRef===s?this.registerLocalInstanceRef():e.staticInstanceRef instanceof e&&Object.getPrototypeOf(e.staticInstanceRef).constructor===e?this.registerLocalInstanceRef():e.staticInstanceRef}error(p,...l){l=this.context?(l.length?l:[void 0]).concat(this.context):l,this.localInstance?.error(p,...l)}log(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.log(p,...l)}warn(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.warn(p,...l)}debug(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.debug?.(p,...l)}verbose(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.verbose?.(p,...l)}fatal(p,...l){l=this.context?l.concat(this.context):l,this.localInstance?.fatal?.(p,...l)}static error(p,...l){this.staticInstanceRef?.error(p,...l)}static log(p,...l){this.staticInstanceRef?.log(p,...l)}static warn(p,...l){this.staticInstanceRef?.warn(p,...l)}static debug(p,...l){this.staticInstanceRef?.debug?.(p,...l)}static verbose(p,...l){this.staticInstanceRef?.verbose?.(p,...l)}static fatal(p,...l){this.staticInstanceRef?.fatal?.(p,...l)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach(p=>p.methodRef(...p.arguments)),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return i.format(Date.now())}static overrideLogger(p){if(Array.isArray(p))return e.logLevels=p,this.staticInstanceRef?.setLogLevels?.(p);if((0,a.isObject)(p)){if(p instanceof e&&p.constructor!==e){const l='Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.';throw this.staticInstanceRef?.error(l),new Error(l)}this.staticInstanceRef=p}else this.staticInstanceRef=void 0}static isLevelEnabled(p){const l=e.logLevels;return(0,n.isLogLevelEnabled)(p,l)}registerLocalInstanceRef(){return this.localInstanceRef?this.localInstanceRef:(this.localInstanceRef=new o.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:e.logLevels}),this.localInstanceRef)}};return Jt.Logger=c,c.logBuffer=new Array,c.staticInstanceRef=s,c.WrapBuffer=(u,p,l)=>{const d=l.value;l.value=function(...f){if(e.isBufferAttached){e.logBuffer.push({methodRef:d.bind(this),arguments:f});return}return d.call(this,...f)}},t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"error",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"log",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"warn",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"debug",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"verbose",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c.prototype,"fatal",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"error",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"log",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"warn",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"debug",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"verbose",null),t.__decorate([c.WrapBuffer,t.__metadata("design:type",Function),t.__metadata("design:paramtypes",[Object,Object]),t.__metadata("design:returntype",void 0)],c,"fatal",null),Jt.Logger=c=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,r.Optional)()),t.__param(1,(0,r.Optional)()),t.__metadata("design:paramtypes",[String,Object])],c),Jt}var Jy;function QI(){return Jy||(Jy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(dg(),e),t.__exportStar(wt(),e),t.__exportStar(XI(),e)})(Cf)),Cf}var e1;function lk(){if(e1)return ea;e1=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.StreamableFile=void 0;const e=dp,t=si,r=gl(),a=QI(),o=ne();class n{constructor(i,c={}){this.options=c,this.logger=new a.Logger("StreamableFile"),this.handleError=(u,p)=>{if(!p.destroyed){if(p.headersSent){p.end();return}p.statusCode=r.HttpStatus.BAD_REQUEST,p.send(u.message)}},this.logError=u=>{this.logger.error(u)},t.types.isUint8Array(i)?(this.stream=new e.Readable,this.stream.push(i),this.stream.push(null),this.options.length??=i.length):i.pipe&&(0,o.isFunction)(i.pipe)&&(this.stream=i)}getStream(){return this.stream}getHeaders(){const{type:i="application/octet-stream",disposition:c=void 0,length:u=void 0}=this.options;return{type:i,disposition:c,length:u}}get errorHandler(){return this.handleError}setErrorHandler(i){return this.handleError=i,this}get errorLogger(){return this.logError}setErrorLogger(i){return this.logError=i,this}}return ea.StreamableFile=n,ea}var t1;function JI(){return t1||(t1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(lk(),e)})(If)),If}var Nf={},Ff={},r1;function dk(){return r1||(r1=1,Object.defineProperty(Ff,"__esModule",{value:!0})),Ff}var Df={},n1;function pk(){return n1||(n1=1,Object.defineProperty(Df,"__esModule",{value:!0})),Df}var kf={},i1;function fk(){return i1||(i1=1,Object.defineProperty(kf,"__esModule",{value:!0})),kf}var Lf={},a1;function hk(){return a1||(a1=1,Object.defineProperty(Lf,"__esModule",{value:!0})),Lf}var Uf={},o1;function vk(){return o1||(o1=1,Object.defineProperty(Uf,"__esModule",{value:!0})),Uf}var $f={},s1;function mk(){return s1||(s1=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var zf={},c1;function _k(){return c1||(c1=1,Object.defineProperty(zf,"__esModule",{value:!0})),zf}var Bf={},u1;function gk(){return u1||(u1=1,Object.defineProperty(Bf,"__esModule",{value:!0})),Bf}var Hf={},l1;function bk(){return l1||(l1=1,Object.defineProperty(Hf,"__esModule",{value:!0})),Hf}var Vf={},d1;function yk(){return d1||(d1=1,Object.defineProperty(Vf,"__esModule",{value:!0})),Vf}var Gf={},p1;function Ek(){return p1||(p1=1,Object.defineProperty(Gf,"__esModule",{value:!0})),Gf}var Wf={},f1;function xk(){return f1||(f1=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Zf={},h1;function Ok(){return h1||(h1=1,Object.defineProperty(Zf,"__esModule",{value:!0})),Zf}var Kf={},v1;function wk(){return v1||(v1=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Yf={},m1;function Sk(){return m1||(m1=1,Object.defineProperty(Yf,"__esModule",{value:!0})),Yf}var Xf={},Qf={},_1;function Pk(){return _1||(_1=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var Jf={},g1;function Tk(){return g1||(g1=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var eh={},b1;function Ak(){return b1||(b1=1,Object.defineProperty(eh,"__esModule",{value:!0})),eh}var th={},y1;function Rk(){return y1||(y1=1,Object.defineProperty(th,"__esModule",{value:!0})),th}var rh={},E1;function Mk(){return E1||(E1=1,Object.defineProperty(rh,"__esModule",{value:!0})),rh}var x1;function Ik(){return x1||(x1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Pk(),e),t.__exportStar(Tk(),e),t.__exportStar(Ak(),e),t.__exportStar(Rk(),e),t.__exportStar(Mk(),e)})(Xf)),Xf}var nh={},ih={},O1;function Ck(){return O1||(O1=1,Object.defineProperty(ih,"__esModule",{value:!0})),ih}var ah={},w1;function jk(){return w1||(w1=1,Object.defineProperty(ah,"__esModule",{value:!0})),ah}var oh={},S1;function qk(){return S1||(S1=1,Object.defineProperty(oh,"__esModule",{value:!0})),oh}var sh={},P1;function Nk(){return P1||(P1=1,Object.defineProperty(sh,"__esModule",{value:!0})),sh}var ch={},T1;function Fk(){return T1||(T1=1,Object.defineProperty(ch,"__esModule",{value:!0})),ch}var A1;function Dk(){return A1||(A1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Ck(),e),t.__exportStar(jk(),e),t.__exportStar(qk(),e),t.__exportStar(Nk(),e),t.__exportStar(Fk(),e)})(nh)),nh}var uh={},R1;function kk(){return R1||(R1=1,Object.defineProperty(uh,"__esModule",{value:!0})),uh}var lh={},M1;function Lk(){return M1||(M1=1,Object.defineProperty(lh,"__esModule",{value:!0})),lh}var dh={},ph={},I1;function Uk(){return I1||(I1=1,Object.defineProperty(ph,"__esModule",{value:!0})),ph}var fh={},C1;function $k(){return C1||(C1=1,Object.defineProperty(fh,"__esModule",{value:!0})),fh}var hh={},j1;function zk(){return j1||(j1=1,Object.defineProperty(hh,"__esModule",{value:!0})),hh}var vh={},q1;function Bk(){return q1||(q1=1,Object.defineProperty(vh,"__esModule",{value:!0})),vh}var N1;function Hk(){return N1||(N1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Uk(),e),t.__exportStar($k(),e),t.__exportStar(zk(),e),t.__exportStar(Bk(),e)})(dh)),dh}var mh={},_h={},F1;function Vk(){return F1||(F1=1,Object.defineProperty(_h,"__esModule",{value:!0})),_h}var gh={},D1;function Gk(){return D1||(D1=1,Object.defineProperty(gh,"__esModule",{value:!0})),gh}var bh={},k1;function Wk(){return k1||(k1=1,Object.defineProperty(bh,"__esModule",{value:!0})),bh}var yh={},L1;function Zk(){return L1||(L1=1,Object.defineProperty(yh,"__esModule",{value:!0})),yh}var Eh={},U1;function Kk(){return U1||(U1=1,Object.defineProperty(Eh,"__esModule",{value:!0})),Eh}var xh={},$1;function Yk(){return $1||($1=1,Object.defineProperty(xh,"__esModule",{value:!0})),xh}var Oh={},z1;function Xk(){return z1||(z1=1,Object.defineProperty(Oh,"__esModule",{value:!0})),Oh}var wh={},B1;function Qk(){return B1||(B1=1,Object.defineProperty(wh,"__esModule",{value:!0})),wh}var H1;function Jk(){return H1||(H1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Vk(),e),t.__exportStar(Gk(),e),t.__exportStar(Wk(),e),t.__exportStar(Zk(),e),t.__exportStar(Kk(),e),t.__exportStar(Yk(),e),t.__exportStar(Xk(),e),t.__exportStar(Qk(),e)})(mh)),mh}var Sh={},V1;function eL(){return V1||(V1=1,Object.defineProperty(Sh,"__esModule",{value:!0})),Sh}var Ph={},G1;function tL(){return G1||(G1=1,Object.defineProperty(Ph,"__esModule",{value:!0})),Ph}var Th={},W1;function rL(){return W1||(W1=1,Object.defineProperty(Th,"__esModule",{value:!0})),Th}var Ah={},Z1;function nL(){return Z1||(Z1=1,Object.defineProperty(Ah,"__esModule",{value:!0})),Ah}var ta={},K1;function iL(){if(K1)return ta;K1=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.Scope=void 0;var e;return(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.TRANSIENT=1]="TRANSIENT",t[t.REQUEST=2]="REQUEST"})(e||(ta.Scope=e={})),ta}var Rh={},Y1;function aL(){return Y1||(Y1=1,Object.defineProperty(Rh,"__esModule",{value:!0})),Rh}var ra={},X1;function eC(){return X1||(X1=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.VERSION_NEUTRAL=void 0,ra.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")),ra}var Mh={},Q1;function oL(){return Q1||(Q1=1,Object.defineProperty(Mh,"__esModule",{value:!0})),Mh}var J1;function vp(){return J1||(J1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(dk(),e),t.__exportStar(pk(),e),t.__exportStar(fk(),e),t.__exportStar(hk(),e),t.__exportStar(vk(),e),t.__exportStar(mk(),e),t.__exportStar(_k(),e),t.__exportStar(gk(),e),t.__exportStar(bk(),e),t.__exportStar(yk(),e),t.__exportStar(Ek(),e),t.__exportStar(xk(),e),t.__exportStar(Ok(),e),t.__exportStar(wk(),e),t.__exportStar(Sk(),e),t.__exportStar(Ik(),e),t.__exportStar(Dk(),e),t.__exportStar(kk(),e),t.__exportStar(Lk(),e),t.__exportStar(Hk(),e),t.__exportStar(Jk(),e),t.__exportStar(eL(),e),t.__exportStar(tL(),e),t.__exportStar(rL(),e),t.__exportStar(nL(),e),t.__exportStar(iL(),e),t.__exportStar(aL(),e),t.__exportStar(eC(),e),t.__exportStar(oL(),e)})(Nf)),Nf}var Ih={},na={},ia={},eE;function ir(){if(eE)return ia;eE=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.randomStringGenerator=void 0;const e=pn(),t=()=>(0,e.uid)(21);return ia.randomStringGenerator=t,ia}var lt={},tE;function sL(){return tE||(tE=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.ASYNC_OPTIONS_METADATA_KEYS=lt.CONFIGURABLE_MODULE_ID=lt.ASYNC_METHOD_SUFFIX=lt.DEFAULT_FACTORY_CLASS_METHOD_KEY=lt.DEFAULT_METHOD_KEY=void 0,lt.DEFAULT_METHOD_KEY="register",lt.DEFAULT_FACTORY_CLASS_METHOD_KEY="create",lt.ASYNC_METHOD_SUFFIX="Async",lt.CONFIGURABLE_MODULE_ID="CONFIGURABLE_MODULE_ID",lt.ASYNC_OPTIONS_METADATA_KEYS=["useFactory","useClass","useExisting","inject","imports","provideInjectionTokensFrom"]),lt}var Ch={},dd={},rE;function cL(){if(rE)return dd;rE=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.generateOptionsInjectionToken=t;const e=ir();function t(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,e.randomStringGenerator)()}]`}return dd}var pd={},nE;function uL(){if(nE)return pd;nE=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.getInjectionProviders=a;const e=ne();function t(o){return!(0,e.isUndefined)(o.token)&&!(0,e.isUndefined)(o.optional)&&!o.prototype}const r=o=>t(o)?o.token:o;function a(o,n){const s=[];let i=n.map(r);for(;i.length>0;){const c=(o??[]).filter(u=>!s.includes(u)&&(i.includes(u)||i.includes(u?.provide)));s.push(...c),i=c.filter(u=>u?.inject).flatMap(u=>u.inject).map(r)}return s}return pd}var iE;function lL(){return iE||(iE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(cL(),e),t.__exportStar(uL(),e)})(Ch)),Ch}var aE;function dL(){if(aE)return na;aE=1,Object.defineProperty(na,"__esModule",{value:!0}),na.ConfigurableModuleBuilder=void 0;const e=wt(),t=ir(),r=sL(),a=lL();class o{constructor(s={},i){this.options=s,this.logger=new e.Logger(o.name),i&&(this.staticMethodKey=i.staticMethodKey,this.factoryClassMethodKey=i.factoryClassMethodKey,this.transformModuleDefinition=i.transformModuleDefinition,this.extras=i.extras)}setExtras(s,i=c=>c){const c=new o(this.options,this);return c.extras=s,c.transformModuleDefinition=i,c}setClassMethodName(s){const i=new o(this.options,this);return i.staticMethodKey=s,i}setFactoryMethodName(s){const i=new o(this.options,this);return i.factoryClassMethodKey=s,i}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,a.generateOptionsInjectionToken)(),this.transformModuleDefinition??=s=>s,{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(){const s=this,i=this.staticMethodKey+r.ASYNC_METHOD_SUFFIX;class c{static[s.staticMethodKey](p){const l=[{provide:s.options.optionsInjectionToken,useValue:this.omitExtras(p,s.extras)}];return s.options.alwaysTransient&&l.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,t.randomStringGenerator)()}),s.transformModuleDefinition({module:this,providers:l},{...s.extras,...p})}static[i](p){const l=this.createAsyncProviders(p);return s.options.alwaysTransient&&l.push({provide:r.CONFIGURABLE_MODULE_ID,useValue:(0,t.randomStringGenerator)()}),s.transformModuleDefinition({module:this,imports:p.imports||[],providers:l},{...s.extras,...this.extractExtrasFromAsyncOptions(p,s.extras)})}static omitExtras(p,l){if(!l)return p;const d={},f=Object.keys(l);return Object.keys(p).filter(h=>!f.includes(h)).forEach(h=>{d[h]=p[h]}),d}static extractExtrasFromAsyncOptions(p,l){if(!l)return{};const d={};return Object.keys(p).filter(f=>!r.ASYNC_OPTIONS_METADATA_KEYS.includes(f)).forEach(f=>{d[f]=p[f]}),d}static createAsyncProviders(p){return p.useExisting||p.useFactory?p.inject&&p.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(p),...(0,a.getInjectionProviders)(p.provideInjectionTokensFrom,p.inject)]:[this.createAsyncOptionsProvider(p)]:[this.createAsyncOptionsProvider(p),{provide:p.useClass,useClass:p.useClass}]}static createAsyncOptionsProvider(p){return p.useFactory?{provide:s.options.optionsInjectionToken,useFactory:p.useFactory,inject:p.inject||[]}:{provide:s.options.optionsInjectionToken,useFactory:async l=>await l[s.factoryClassMethodKey](),inject:[p.useExisting||p.useClass]}}}return c}createTypeProxy(s){return new Proxy({},{get:()=>{throw new Error(`"${s}" is not supposed to be used as a value.`)}})}}return na.ConfigurableModuleBuilder=o,na}var jh={},qh={},oE;function pL(){return oE||(oE=1,Object.defineProperty(qh,"__esModule",{value:!0})),qh}var Nh={},sE;function fL(){return sE||(sE=1,Object.defineProperty(Nh,"__esModule",{value:!0})),Nh}var Fh={},cE;function hL(){return cE||(cE=1,Object.defineProperty(Fh,"__esModule",{value:!0})),Fh}var uE;function vL(){return uE||(uE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(pL(),e),t.__exportStar(fL(),e),t.__exportStar(hL(),e)})(jh)),jh}var lE;function mL(){return lE||(lE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(dL(),e),t.__exportStar(vL(),e)})(Ih)),Ih}var Dh={},Cn={},dE;function _L(){if(dE)return Cn;dE=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.DefaultValuePipe=void 0;const e=ae(),t=fn(),r=ne();let a=class{constructor(n){this.defaultValue=n}transform(n,s){return(0,r.isNil)(n)||(0,r.isNumber)(n)&&isNaN(n)?this.defaultValue:n}};return Cn.DefaultValuePipe=a,Cn.DefaultValuePipe=a=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],a),Cn}var kh={},aa={},oa={},pE;function pg(){if(pE)return oa;pE=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.FileValidator=void 0;class e{constructor(r){this.validationOptions=r}}return oa.FileValidator=e,oa}var Lh,fE;function gL(){return fE||(fE=1,Lh={loadEsm:e=>import(e)}),Lh}var hE;function tC(){if(hE)return aa;hE=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.FileTypeValidator=void 0;const e=pg(),t=gL();class r extends e.FileValidator{buildErrorMessage(o){const n=this.validationOptions.fileType;if(o?.mimetype){const s=`Validation failed (current file type is ${o.mimetype}, expected type is ${n})`;return this.validationOptions.fallbackToMimetype?`${s} - magic number detection failed, used mimetype fallback`:s}return`Validation failed (expected type is ${n})`}async isValid(o){if(!this.validationOptions)return!0;const n=!!o&&"mimetype"in o;if(this.validationOptions.skipMagicNumbersValidation)return n&&!!o.mimetype.match(this.validationOptions.fileType);if(!n||!o.buffer)return!1;try{const{fileTypeFromBuffer:s}=await(0,t.loadEsm)("file-type"),i=await s(o.buffer);return i?!!i.mime.match(this.validationOptions.fileType):this.validationOptions.fallbackToMimetype?!!o.mimetype.match(this.validationOptions.fileType):!1}catch{return!1}}}return aa.FileTypeValidator=r,aa}var sa={},vE;function rC(){if(vE)return sa;vE=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.MaxFileSizeValidator=void 0;const e=pg();class t extends e.FileValidator{buildErrorMessage(a){return"message"in this.validationOptions?typeof this.validationOptions.message=="function"?this.validationOptions.message(this.validationOptions.maxSize):this.validationOptions.message:a?.size?`Validation failed (current file size is ${a.size}, expected size is less than ${this.validationOptions.maxSize})`:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(a){return!this.validationOptions||!a?!0:"size"in a&&a.size<this.validationOptions.maxSize}}return sa.MaxFileSizeValidator=t,sa}var Uh={},mE;function bL(){return mE||(mE=1,Object.defineProperty(Uh,"__esModule",{value:!0})),Uh}var jn={},ca={},_E;function Xt(){if(_E)return ca;_E=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.HttpErrorByCode=void 0;const e=gl(),t=lg();return ca.HttpErrorByCode={[e.HttpStatus.BAD_GATEWAY]:t.BadGatewayException,[e.HttpStatus.BAD_REQUEST]:t.BadRequestException,[e.HttpStatus.CONFLICT]:t.ConflictException,[e.HttpStatus.FORBIDDEN]:t.ForbiddenException,[e.HttpStatus.GATEWAY_TIMEOUT]:t.GatewayTimeoutException,[e.HttpStatus.GONE]:t.GoneException,[e.HttpStatus.I_AM_A_TEAPOT]:t.ImATeapotException,[e.HttpStatus.INTERNAL_SERVER_ERROR]:t.InternalServerErrorException,[e.HttpStatus.METHOD_NOT_ALLOWED]:t.MethodNotAllowedException,[e.HttpStatus.NOT_ACCEPTABLE]:t.NotAcceptableException,[e.HttpStatus.NOT_FOUND]:t.NotFoundException,[e.HttpStatus.NOT_IMPLEMENTED]:t.NotImplementedException,[e.HttpStatus.PAYLOAD_TOO_LARGE]:t.PayloadTooLargeException,[e.HttpStatus.PRECONDITION_FAILED]:t.PreconditionFailedException,[e.HttpStatus.REQUEST_TIMEOUT]:t.RequestTimeoutException,[e.HttpStatus.SERVICE_UNAVAILABLE]:t.ServiceUnavailableException,[e.HttpStatus.UNAUTHORIZED]:t.UnauthorizedException,[e.HttpStatus.UNPROCESSABLE_ENTITY]:t.UnprocessableEntityException,[e.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:t.UnsupportedMediaTypeException},ca}var gE;function nC(){if(gE)return jn;gE=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.ParseFilePipe=void 0;const e=ae(),t=rr(),r=gl(),a=Xt(),o=ne();let n=class{constructor(i={}){const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST,validators:p=[],fileIsRequired:l}=i;this.exceptionFactory=c||(d=>new a.HttpErrorByCode[u](d)),this.validators=p,this.fileIsRequired=l??!0}async transform(i){const c=this.thereAreNoFilesIn(i);if(c&&this.fileIsRequired)throw this.exceptionFactory("File is required");return!c&&this.validators.length&&await this.validateFilesOrFile(i),i}async validateFilesOrFile(i){Array.isArray(i)?await Promise.all(i.map(c=>this.validate(c))):await this.validate(i)}thereAreNoFilesIn(i){const c=Array.isArray(i)&&(0,o.isEmpty)(i),u=(0,o.isObject)(i)&&(0,o.isEmpty)(Object.keys(i));return(0,o.isUndefined)(i)||c||u}async validate(i){for(const c of this.validators)await this.validateOrThrow(i,c);return i}async validateOrThrow(i,c){if(!await c.isValid(i)){const p=c.buildErrorMessage(i);throw this.exceptionFactory(p)}}getValidators(){return this.validators}};return jn.ParseFilePipe=n,jn.ParseFilePipe=n=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],n),jn}var ua={},bE;function yL(){if(bE)return ua;bE=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.ParseFilePipeBuilder=void 0;const e=tC(),t=rC(),r=nC();class a{constructor(){this.validators=[]}addMaxSizeValidator(n){return this.addValidator(new t.MaxFileSizeValidator(n))}addFileTypeValidator(n){return this.addValidator(new e.FileTypeValidator(n))}addValidator(n){return this.validators.push(n),this}build(n){const s=new r.ParseFilePipe({...n,validators:this.validators});return this.validators=[],s}}return ua.ParseFilePipeBuilder=a,ua}var yE;function EL(){return yE||(yE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(tC(),e),t.__exportStar(pg(),e),t.__exportStar(rC(),e),t.__exportStar(bL(),e),t.__exportStar(nC(),e),t.__exportStar(yL(),e)})(kh)),kh}var qn={},Nn={},Fn={},vr={},fd={},EE;function xL(){if(EE)return fd;EE=1,Object.defineProperty(fd,"__esModule",{value:!0});class e{constructor(r){this.toConcat=r}next(){if(this.toConcat.length===0)return{done:!0};const r=this.toConcat[0].next();return r.done?(this.toConcat.shift(),this.next()):r}}return fd.ConcatIterator=e,fd}var hd={},xE;function OL(){if(xE)return hd;xE=1,Object.defineProperty(hd,"__esModule",{value:!0});class e{constructor(r,a){this.source=r,this.predicate=a}next(){let r;do r=this.source.next();while(!r.done&&!this.predicate(r.value));return r}}return hd.FilterIterator=e,hd}var vd={},Dn={},OE;function iC(){if(OE)return Dn;OE=1,Object.defineProperty(Dn,"__esModule",{value:!0});function e(a){return typeof a=="object"&&a!==null&&typeof a.next=="function"}Dn.isIterator=e;function t(a){return typeof a=="object"&&a!==null&&typeof a[Symbol.iterator]=="function"}Dn.isIterable=t;function r(a){if(e(a))return a;if(t(a))return a[Symbol.iterator]();throw new Error("Passed collection is neither an Iterator nor an Iterable")}return Dn.toIterator=r,Dn}var wE;function wL(){if(wE)return vd;wE=1,Object.defineProperty(vd,"__esModule",{value:!0});const e=iC();class t{constructor(a){this.outer=a}next(){if(this.inner){const n=this.inner.next();if(!n.done)return n;this.inner=void 0}const{value:a,done:o}=this.outer.next();return e.isIterable(a)?(this.inner=a[Symbol.iterator](),this.next()):{value:a,done:o}}}return vd.FlattenIterator=t,vd}var md={},SE;function SL(){if(SE)return md;SE=1,Object.defineProperty(md,"__esModule",{value:!0});class e{constructor(r,a){this.source=r,this.iteratee=a}next(){const{value:r,done:a}=this.source.next();return{value:!a&&this.iteratee(r),done:a}}}return md.MapIterator=e,md}var _d={},PE;function PL(){if(PE)return _d;PE=1,Object.defineProperty(_d,"__esModule",{value:!0});class e{constructor(r,a,o=1/0){this.source=r,this.start=a,this.end=o,this.i=0}next(){for(;this.i<this.start;){const r=this.source.next();if(r.done)return r;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}return _d.SliceIterator=e,_d}var gd={},TE;function TL(){if(TE)return gd;TE=1,Object.defineProperty(gd,"__esModule",{value:!0});class e{constructor(r,a){this.a=r,this.b=a}next(){const r=this.a.next();if(r.done)return{done:!0};const a=this.b.next();return a.done?{done:!0}:{value:[r.value,a.value],done:!1}}}return gd.ZipIterator=e,gd}var AE;function AL(){if(AE)return vr;AE=1,Object.defineProperty(vr,"__esModule",{value:!0});const e=xL(),t=OL(),r=wL(),a=SL(),o=PL(),n=iC(),s=TL();class i{constructor(l){this.source=l}next(){return this.source.next()}[Symbol.iterator](){return this}map(l){return new i(new a.MapIterator(this.source,l))}filter(l){return new i(new t.FilterIterator(this.source,l))}concat(l){return new i(new e.ConcatIterator([this.source,n.toIterator(l)]))}take(l){return new i(new o.SliceIterator(this.source,0,l+1))}drop(l){return new i(new o.SliceIterator(this.source,l,1/0))}slice(l,d=1/0){return new i(new o.SliceIterator(this.source,l,d))}flatten(){return new i(new r.FlattenIterator(this.source))}reduce(l,d){let f;if(d===void 0){if(f=this.source.next(),f.done)throw new TypeError("Reduce of empty Iterator with no initial value");d=f.value}for(;f=this.source.next(),!f.done;)d=l(d,f.value);return d}find(l){let d;for(;;){if(d=this.source.next(),d.done)return;if(l(d.value))return d.value}}includes(l){let d;do if(d=this.source.next(),!d.done&&d.value===l)return!0;while(!d.done);return!1}some(l){let d;do if(d=this.source.next(),!d.done&&l(d.value))return!0;while(!d.done);return!1}every(l){let d;do if(d=this.source.next(),!d.done&&!l(d.value))return!1;while(!d.done);return!0}forEach(l){let d;for(;d=this.source.next(),!d.done;)l(d.value)}join(l=","){let d="",f;for(;f=this.source.next(),!f.done;)d+=l+f.value;return d.substr(l.length)}toArray(){return Array.from(this)}toSet(){const l=new Set;for(;;){const{value:d,done:f}=this.next();if(f)return l;l.add(d)}}toMap(){return new Map(this)}}vr.IteratorWithOperators=i;function c(p){return new i(n.toIterator(p))}vr.iterate=c;function u(p,l){return new i(new s.ZipIterator(n.toIterator(p),n.toIterator(l)))}return vr.zip=u,vr.default=c,vr}var RE;function He(){if(RE)return Fn;RE=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=AL();return Fn.iterate=e.iterate,Fn.zip=e.zip,Fn.default=e.iterate,Fn}function fg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bd={},ME;function bl(){if(ME)return bd;ME=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.loadPackage=a;const e=wt(),t=(o,n)=>`The "${o}" package is missing. Please, make sure to install it to take advantage of ${n}.`,r=new e.Logger("PackageLoader");function a(o,n,s){try{return s?s():fg(o)}catch{r.error(t(o,n)),e.Logger.flush(),process.exit(1)}}return bd}const RL={},ML=Object.freeze(Object.defineProperty({__proto__:null,default:RL},Symbol.toStringTag,{value:"Module"})),IL=ci(ML),CL={},jL=Object.freeze(Object.defineProperty({__proto__:null,default:CL},Symbol.toStringTag,{value:"Module"})),aC=ci(jL);var IE;function oC(){if(IE)return Nn;IE=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.ValidationPipe=void 0;const e=ae(),t=He(),r=si,a=ug(),o=rr(),n=Ie(),s=Xt(),i=bl(),c=ne();let u={},p={},l=class{constructor(f){f=f||{};const{transform:h,disableErrorMessages:m,errorHttpStatusCode:v,expectedType:g,transformOptions:_,validateCustomDecorators:b,...y}=f;this.validatorOptions={forbidUnknownValues:!1,...y},this.isTransformEnabled=!!h,this.transformOptions=_,this.isDetailedOutputDisabled=m,this.validateCustomDecorators=b||!1,this.errorHttpStatusCode=v||n.HttpStatus.BAD_REQUEST,this.expectedType=g,this.exceptionFactory=f.exceptionFactory||this.createExceptionFactory(),u=this.loadValidator(f.validatorPackage),p=this.loadTransformer(f.transformerPackage)}loadValidator(f){return f??(0,i.loadPackage)("class-validator","ValidationPipe",()=>IL)}loadTransformer(f){return f??(0,i.loadPackage)("class-transformer","ValidationPipe",()=>aC)}async transform(f,h){this.expectedType&&(h={...h,metatype:this.expectedType});const m=h.metatype;if(!m||!this.toValidate(h))return this.isTransformEnabled?this.transformPrimitive(f,h):f;const v=f;f=this.toEmptyIfNil(f,m);const g=f!==v,_=this.isPrimitive(f);this.stripProtoKeys(f);let b=p.plainToInstance(m,f,this.transformOptions);const y=b,E=b.constructor!==m;E&&!_?b.constructor=m:E&&(b={constructor:m});const x=await this.validate(b,this.validatorOptions);if(x.length>0)throw await this.exceptionFactory(x);return v===void 0&&y===""?v:(_&&(b=y),this.isTransformEnabled?b:g?v:Object.keys(this.validatorOptions).length>1?p.classToPlain(b,this.transformOptions):f)}createExceptionFactory(){return(f=[])=>{if(this.isDetailedOutputDisabled)return new s.HttpErrorByCode[this.errorHttpStatusCode];const h=this.flattenValidationErrors(f);return new s.HttpErrorByCode[this.errorHttpStatusCode](h)}}toValidate(f){const{metatype:h,type:m}=f;return m==="custom"&&!this.validateCustomDecorators?!1:![String,Boolean,Number,Array,Object,Buffer,Date].some(g=>h===g)&&!(0,c.isNil)(h)}transformPrimitive(f,h){if(!h.data)return f;const{type:m,metatype:v}=h;return m!=="param"&&m!=="query"?f:v===Boolean?(0,c.isUndefined)(f)?void 0:f===!0||f==="true":v===Number?(0,c.isUndefined)(f)?void 0:+f:v===String&&!(0,c.isUndefined)(f)?String(f):f}toEmptyIfNil(f,h){return(0,c.isNil)(f)?typeof h=="function"||h&&"prototype"in h&&h.prototype?.constructor?{}:"":f}stripProtoKeys(f){if(!(f==null||typeof f!="object"||r.types.isTypedArray(f))){if(Array.isArray(f)){for(const h of f)this.stripProtoKeys(h);return}delete f.__proto__;for(const h in f)this.stripProtoKeys(f[h])}}isPrimitive(f){return["number","boolean","string"].includes(typeof f)}validate(f,h){return u.validate(f,h)}flattenValidationErrors(f){return(0,t.iterate)(f).map(h=>this.mapChildrenToValidationErrors(h)).flatten().filter(h=>!!h.constraints).map(h=>Object.values(h.constraints)).flatten().toArray()}mapChildrenToValidationErrors(f,h){if(!(f.children&&f.children.length))return[f];const m=[];h=h?`${h}.${f.property}`:f.property;for(const v of f.children)v.children&&v.children.length&&m.push(...this.mapChildrenToValidationErrors(v,h)),m.push(this.prependConstraintsWithParentProp(h,v));return m}prependConstraintsWithParentProp(f,h){const m={};for(const v in h.constraints)m[v]=`${f}.${h.constraints[v]}`;return{...h,constraints:m}}};return Nn.ValidationPipe=l,Nn.ValidationPipe=l=e.__decorate([(0,o.Injectable)(),e.__param(0,(0,a.Optional)()),e.__metadata("design:paramtypes",[Object])],l),Nn}var CE;function qL(){if(CE)return qn;CE=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.ParseArrayPipe=void 0;const e=ae(),t=fn(),r=_l(),a=Ie(),o=Xt(),n=ne(),s=oC(),i="Validation failed (parsable array expected)",c=",";let u=class{constructor(l={}){this.options=l,this.validationPipe=new s.ValidationPipe({transform:!0,validateCustomDecorators:!0,...l});const{exceptionFactory:d,errorHttpStatusCode:f=a.HttpStatus.BAD_REQUEST}=l;this.exceptionFactory=d||(h=>new o.HttpErrorByCode[f](h))}async transform(l,d){if(!l&&!this.options.optional)throw this.exceptionFactory(i);if((0,n.isNil)(l)&&this.options.optional)return l;if(!Array.isArray(l))if((0,n.isString)(l))try{l=l.trim().split(this.options.separator||c)}catch{throw this.exceptionFactory(i)}else throw this.exceptionFactory(i);if(this.options.items){const f={metatype:this.options.items,type:"query"},h=this.isExpectedTypePrimitive(),m=(v,g)=>{if(this.options.items!==String)try{v=JSON.parse(v)}catch{}return h?this.validatePrimitive(v,g):this.validationPipe.transform(v,f)};if(this.options.stopAtFirstError===!1){let v=[];const g=l;for(let _=0;_<g.length;_++)try{g[_]=await m(g[_])}catch(b){let y;if(b.getResponse){const E=b.getResponse();Array.isArray(E.message)?y=E.message.map(x=>`[${_}] ${x}`):y=`[${_}] ${E.message}`}else y=b;v=v.concat(y)}if(v.length>0)throw this.exceptionFactory(v);return g}else l=await Promise.all(l.map(m))}return l}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(l,d){if(this.options.items===Number){const f=l!==null&&l!==""?+l:NaN;if(isNaN(f))throw this.exceptionFactory(`${(0,n.isUndefined)(d)?"":`[${d}] `}item must be a number`);return f}else if(this.options.items===String){if(!(0,n.isString)(l))return`${l}`}else if(this.options.items===Boolean&&typeof l!="boolean")throw this.exceptionFactory(`${(0,n.isUndefined)(d)?"":`[${d}] `}item must be a boolean value`);return l}};return qn.ParseArrayPipe=u,qn.ParseArrayPipe=u=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],u),qn}var kn={},jE;function NL(){if(jE)return kn;jE=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.ParseBoolPipe=void 0;const e=ae(),t=fn(),r=_l(),a=Ie(),o=Xt(),n=ne();let s=class{constructor(c){this.options=c,c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=a.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new o.HttpErrorByCode[p](l))}async transform(c,u){if((0,n.isNil)(c)&&this.options?.optional)return c;if(this.isTrue(c))return!0;if(this.isFalse(c))return!1;throw this.exceptionFactory("Validation failed (boolean string is expected)")}isTrue(c){return c===!0||c==="true"}isFalse(c){return c===!1||c==="false"}};return kn.ParseBoolPipe=s,kn.ParseBoolPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),kn}var Ln={},qE;function FL(){if(qE)return Ln;qE=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ParseDatePipe=void 0;const e=ae(),t=fn(),r=Ie(),a=Xt(),o=ne();let n=class{constructor(i={}){this.options=i;const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=i;this.exceptionFactory=c||(p=>new a.HttpErrorByCode[u](p))}transform(i){if(this.options.optional&&(0,o.isNil)(i))return this.options.default?this.options.default():i;if(!i)throw this.exceptionFactory("Validation failed (no Date provided)");const c=new Date(i);if(isNaN(c.getTime()))throw this.exceptionFactory("Validation failed (invalid date format)");return c}};return Ln.ParseDatePipe=n,Ln.ParseDatePipe=n=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[Object])],n),Ln}var Un={},NE;function DL(){if(NE)return Un;NE=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ParseEnumPipe=void 0;const e=ae(),t=rr(),r=ve(),a=Xt(),o=ne();let n=class{constructor(i,c){if(this.enumType=i,this.options=c,!i)throw new Error('"ParseEnumPipe" requires "enumType" argument specified (to validate input values).');c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=r.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new a.HttpErrorByCode[p](l))}async transform(i,c){if((0,o.isNil)(i)&&this.options?.optional)return i;if(!this.isEnum(i))throw this.exceptionFactory("Validation failed (enum string is expected)");return i}isEnum(i){return Object.keys(this.enumType).map(u=>this.enumType[u]).includes(i)}};return Un.ParseEnumPipe=n,Un.ParseEnumPipe=n=e.__decorate([(0,t.Injectable)(),e.__param(1,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],n),Un}var $n={},FE;function kL(){if(FE)return $n;FE=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.ParseFloatPipe=void 0;const e=ae(),t=rr(),r=ve(),a=Xt(),o=ne();let n=class{constructor(i){this.options=i,i=i||{};const{exceptionFactory:c,errorHttpStatusCode:u=r.HttpStatus.BAD_REQUEST}=i;this.exceptionFactory=c||(p=>new a.HttpErrorByCode[u](p))}async transform(i,c){if((0,o.isNil)(i)&&this.options?.optional)return i;if(!this.isNumeric(i))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(i)}isNumeric(i){return["string","number"].includes(typeof i)&&!isNaN(parseFloat(i))&&isFinite(i)}};return $n.ParseFloatPipe=n,$n.ParseFloatPipe=n=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,t.Optional)()),e.__metadata("design:paramtypes",[Object])],n),$n}var zn={},DE;function LL(){if(DE)return zn;DE=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.ParseIntPipe=void 0;const e=ae(),t=fn(),r=_l(),a=Ie(),o=Xt(),n=ne();let s=class{constructor(c){this.options=c,c=c||{};const{exceptionFactory:u,errorHttpStatusCode:p=a.HttpStatus.BAD_REQUEST}=c;this.exceptionFactory=u||(l=>new o.HttpErrorByCode[p](l))}async transform(c,u){if((0,n.isNil)(c)&&this.options?.optional)return c;if(!this.isNumeric(c))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseInt(c,10)}isNumeric(c){return["string","number"].includes(typeof c)&&/^-?\d+$/.test(c)&&isFinite(c)}};return zn.ParseIntPipe=s,zn.ParseIntPipe=s=e.__decorate([(0,t.Injectable)(),e.__param(0,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object])],s),zn}var Bn={},kE;function UL(){if(kE)return Bn;kE=1;var e;Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.ParseUUIDPipe=void 0;const t=ae(),r=fn(),a=_l(),o=Ie(),n=Xt(),s=ne();let i=e=class{constructor(u){this.options=u,u=u||{};const{exceptionFactory:p,errorHttpStatusCode:l=o.HttpStatus.BAD_REQUEST,version:d}=u;this.version=d,this.exceptionFactory=p||(f=>new n.HttpErrorByCode[l](f))}async transform(u,p){if((0,s.isNil)(u)&&this.options?.optional)return u;if(!this.isUUID(u,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:""} is expected)`);return u}isUUID(u,p="all"){if(!(0,s.isString)(u))throw this.exceptionFactory("The value passed as UUID is not a string");return e.uuidRegExps[p]?.test(u)}};return Bn.ParseUUIDPipe=i,i.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},Bn.ParseUUIDPipe=i=e=t.__decorate([(0,r.Injectable)(),t.__param(0,(0,a.Optional)()),t.__metadata("design:paramtypes",[Object])],i),Bn}var LE;function $L(){return LE||(LE=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(_L(),e),t.__exportStar(EL(),e),t.__exportStar(qL(),e),t.__exportStar(NL(),e),t.__exportStar(FL(),e),t.__exportStar(DL(),e),t.__exportStar(kL(),e),t.__exportStar(LL(),e),t.__exportStar(UL(),e),t.__exportStar(oC(),e)})(Dh)),Dh}var $h={},Hn={},zh={},la={},mr={},da={},UE;function Ce(){if(UE)return da;UE=1,Object.defineProperty(da,"__esModule",{value:!0}),da.isFunction=void 0;function e(t){return typeof t=="function"}return da.isFunction=e,da}var $E;function ce(){if($E)return mr;$E=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.operate=mr.hasLift=void 0;var e=Ce();function t(a){return e.isFunction(a?.lift)}mr.hasLift=t;function r(a){return function(o){if(t(o))return o.lift(function(n){try{return a(n,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}return mr.operate=r,mr}var Le={},pa={},zE;function hg(){return zE||(zE=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.isArrayLike=void 0,pa.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})),pa}var fa={},BE;function sC(){if(BE)return fa;BE=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.isPromise=void 0;var e=Ce();function t(r){return e.isFunction(r?.then)}return fa.isPromise=t,fa}var ha={},va={},ot={},ma={},_a={},HE;function hn(){if(HE)return _a;HE=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.createErrorClass=void 0;function e(t){var r=function(o){Error.call(o),o.stack=new Error().stack},a=t(r);return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}return _a.createErrorClass=e,_a}var VE;function cC(){if(VE)return ma;VE=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.UnsubscriptionError=void 0;var e=hn();return ma.UnsubscriptionError=e.createErrorClass(function(t){return function(a){t(this),this.message=a?a.length+` errors occurred during unsubscription:
|
|
20
|
+
`+a.map(function(o,n){return n+1+") "+o.toString()}).join(`
|
|
21
|
+
`):"",this.name="UnsubscriptionError",this.errors=a}}),ma}var ga={},GE;function ar(){if(GE)return ga;GE=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.arrRemove=void 0;function e(t,r){if(t){var a=t.indexOf(r);0<=a&&t.splice(a,1)}}return ga.arrRemove=e,ga}var WE;function mt(){if(WE)return ot;WE=1;var e=ot&&ot.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},t=ot&&ot.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},r=ot&&ot.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(ot,"__esModule",{value:!0}),ot.isSubscription=ot.EMPTY_SUBSCRIPTION=ot.Subscription=void 0;var a=Ce(),o=cC(),n=ar(),s=(function(){function u(p){this.initialTeardown=p,this.closed=!1,this._parentage=null,this._finalizers=null}return u.prototype.unsubscribe=function(){var p,l,d,f,h;if(!this.closed){this.closed=!0;var m=this._parentage;if(m)if(this._parentage=null,Array.isArray(m))try{for(var v=e(m),g=v.next();!g.done;g=v.next()){var _=g.value;_.remove(this)}}catch(S){p={error:S}}finally{try{g&&!g.done&&(l=v.return)&&l.call(v)}finally{if(p)throw p.error}}else m.remove(this);var b=this.initialTeardown;if(a.isFunction(b))try{b()}catch(S){h=S instanceof o.UnsubscriptionError?S.errors:[S]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var E=e(y),x=E.next();!x.done;x=E.next()){var O=x.value;try{c(O)}catch(S){h=h??[],S instanceof o.UnsubscriptionError?h=r(r([],t(h)),t(S.errors)):h.push(S)}}}catch(S){d={error:S}}finally{try{x&&!x.done&&(f=E.return)&&f.call(E)}finally{if(d)throw d.error}}}if(h)throw new o.UnsubscriptionError(h)}},u.prototype.add=function(p){var l;if(p&&p!==this)if(this.closed)c(p);else{if(p instanceof u){if(p.closed||p._hasParent(this))return;p._addParent(this)}(this._finalizers=(l=this._finalizers)!==null&&l!==void 0?l:[]).push(p)}},u.prototype._hasParent=function(p){var l=this._parentage;return l===p||Array.isArray(l)&&l.includes(p)},u.prototype._addParent=function(p){var l=this._parentage;this._parentage=Array.isArray(l)?(l.push(p),l):l?[l,p]:p},u.prototype._removeParent=function(p){var l=this._parentage;l===p?this._parentage=null:Array.isArray(l)&&n.arrRemove(l,p)},u.prototype.remove=function(p){var l=this._finalizers;l&&n.arrRemove(l,p),p instanceof u&&p._removeParent(this)},u.EMPTY=(function(){var p=new u;return p.closed=!0,p})(),u})();ot.Subscription=s,ot.EMPTY_SUBSCRIPTION=s.EMPTY;function i(u){return u instanceof s||u&&"closed"in u&&a.isFunction(u.remove)&&a.isFunction(u.add)&&a.isFunction(u.unsubscribe)}ot.isSubscription=i;function c(u){a.isFunction(u)?u():u.unsubscribe()}return ot}var ba={},ZE;function yl(){return ZE||(ZE=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.config=void 0,ba.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}),ba}var ya={},_r={},KE;function uC(){return KE||(KE=1,(function(e){var t=_r&&_r.__read||function(a,o){var n=typeof Symbol=="function"&&a[Symbol.iterator];if(!n)return a;var s=n.call(a),i,c=[],u;try{for(;(o===void 0||o-- >0)&&!(i=s.next()).done;)c.push(i.value)}catch(p){u={error:p}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(u)throw u.error}}return c},r=_r&&_r.__spreadArray||function(a,o){for(var n=0,s=o.length,i=a.length;n<s;n++,i++)a[i]=o[n];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(a,o){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var i=e.timeoutProvider.delegate;return i?.setTimeout?i.setTimeout.apply(i,r([a,o],t(n))):setTimeout.apply(void 0,r([a,o],t(n)))},clearTimeout:function(a){var o=e.timeoutProvider.delegate;return(o?.clearTimeout||clearTimeout)(a)},delegate:void 0}})(_r)),_r}var YE;function lC(){if(YE)return ya;YE=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.reportUnhandledError=void 0;var e=yl(),t=uC();function r(a){t.timeoutProvider.setTimeout(function(){var o=e.config.onUnhandledError;if(o)o(a);else throw a})}return ya.reportUnhandledError=r,ya}var Ea={},XE;function tt(){if(XE)return Ea;XE=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.noop=void 0;function e(){}return Ea.noop=e,Ea}var yt={},QE;function zL(){if(QE)return yt;QE=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.createNotification=yt.nextNotification=yt.errorNotification=yt.COMPLETE_NOTIFICATION=void 0,yt.COMPLETE_NOTIFICATION=(function(){return r("C",void 0,void 0)})();function e(a){return r("E",void 0,a)}yt.errorNotification=e;function t(a){return r("N",a,void 0)}yt.nextNotification=t;function r(a,o,n){return{kind:a,value:o,error:n}}return yt.createNotification=r,yt}var gr={},JE;function vg(){if(JE)return gr;JE=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.captureError=gr.errorContext=void 0;var e=yl(),t=null;function r(o){if(e.config.useDeprecatedSynchronousErrorHandling){var n=!t;if(n&&(t={errorThrown:!1,error:null}),o(),n){var s=t,i=s.errorThrown,c=s.error;if(t=null,i)throw c}}else o()}gr.errorContext=r;function a(o){e.config.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=o)}return gr.captureError=a,gr}var ex;function El(){return ex||(ex=1,(function(e){var t=va&&va.__extends||(function(){var _=function(b,y){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&(E[O]=x[O])},_(b,y)};return function(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");_(b,y);function E(){this.constructor=b}b.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var r=Ce(),a=mt(),o=yl(),n=lC(),s=tt(),i=zL(),c=uC(),u=vg(),p=(function(_){t(b,_);function b(y){var E=_.call(this)||this;return E.isStopped=!1,y?(E.destination=y,a.isSubscription(y)&&y.add(E)):E.destination=e.EMPTY_OBSERVER,E}return b.create=function(y,E,x){return new h(y,E,x)},b.prototype.next=function(y){this.isStopped?g(i.nextNotification(y),this):this._next(y)},b.prototype.error=function(y){this.isStopped?g(i.errorNotification(y),this):(this.isStopped=!0,this._error(y))},b.prototype.complete=function(){this.isStopped?g(i.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},b.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_.prototype.unsubscribe.call(this),this.destination=null)},b.prototype._next=function(y){this.destination.next(y)},b.prototype._error=function(y){try{this.destination.error(y)}finally{this.unsubscribe()}},b.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},b})(a.Subscription);e.Subscriber=p;var l=Function.prototype.bind;function d(_,b){return l.call(_,b)}var f=(function(){function _(b){this.partialObserver=b}return _.prototype.next=function(b){var y=this.partialObserver;if(y.next)try{y.next(b)}catch(E){m(E)}},_.prototype.error=function(b){var y=this.partialObserver;if(y.error)try{y.error(b)}catch(E){m(E)}else m(b)},_.prototype.complete=function(){var b=this.partialObserver;if(b.complete)try{b.complete()}catch(y){m(y)}},_})(),h=(function(_){t(b,_);function b(y,E,x){var O=_.call(this)||this,S;if(r.isFunction(y)||!y)S={next:y??void 0,error:E??void 0,complete:x??void 0};else{var w;O&&o.config.useDeprecatedNextContext?(w=Object.create(y),w.unsubscribe=function(){return O.unsubscribe()},S={next:y.next&&d(y.next,w),error:y.error&&d(y.error,w),complete:y.complete&&d(y.complete,w)}):S=y}return O.destination=new f(S),O}return b})(p);e.SafeSubscriber=h;function m(_){o.config.useDeprecatedSynchronousErrorHandling?u.captureError(_):n.reportUnhandledError(_)}function v(_){throw _}function g(_,b){var y=o.config.onStoppedNotification;y&&c.timeoutProvider.setTimeout(function(){return y(_,b)})}e.EMPTY_OBSERVER={closed:!0,next:s.noop,error:v,complete:s.noop}})(va)),va}var xa={},tx;function mp(){return tx||(tx=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.observable=void 0,xa.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()),xa}var br={},Oa={},rx;function rt(){if(rx)return Oa;rx=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.identity=void 0;function e(t){return t}return Oa.identity=e,Oa}var nx;function _p(){if(nx)return br;nx=1,Object.defineProperty(br,"__esModule",{value:!0}),br.pipeFromArray=br.pipe=void 0;var e=rt();function t(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return r(a)}br.pipe=t;function r(a){return a.length===0?e.identity:a.length===1?a[0]:function(n){return a.reduce(function(s,i){return i(s)},n)}}return br.pipeFromArray=r,br}var ix;function qe(){if(ix)return ha;ix=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.Observable=void 0;var e=El(),t=mt(),r=mp(),a=_p(),o=yl(),n=Ce(),s=vg(),i=(function(){function l(d){d&&(this._subscribe=d)}return l.prototype.lift=function(d){var f=new l;return f.source=this,f.operator=d,f},l.prototype.subscribe=function(d,f,h){var m=this,v=p(d)?d:new e.SafeSubscriber(d,f,h);return s.errorContext(function(){var g=m,_=g.operator,b=g.source;v.add(_?_.call(v,b):b?m._subscribe(v):m._trySubscribe(v))}),v},l.prototype._trySubscribe=function(d){try{return this._subscribe(d)}catch(f){d.error(f)}},l.prototype.forEach=function(d,f){var h=this;return f=c(f),new f(function(m,v){var g=new e.SafeSubscriber({next:function(_){try{d(_)}catch(b){v(b),g.unsubscribe()}},error:v,complete:m});h.subscribe(g)})},l.prototype._subscribe=function(d){var f;return(f=this.source)===null||f===void 0?void 0:f.subscribe(d)},l.prototype[r.observable]=function(){return this},l.prototype.pipe=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return a.pipeFromArray(d)(this)},l.prototype.toPromise=function(d){var f=this;return d=c(d),new d(function(h,m){var v;f.subscribe(function(g){return v=g},function(g){return m(g)},function(){return h(v)})})},l.create=function(d){return new l(d)},l})();ha.Observable=i;function c(l){var d;return(d=l??o.config.Promise)!==null&&d!==void 0?d:Promise}function u(l){return l&&n.isFunction(l.next)&&n.isFunction(l.error)&&n.isFunction(l.complete)}function p(l){return l&&l instanceof e.Subscriber||u(l)&&t.isSubscription(l)}return ha}var wa={},ax;function dC(){if(ax)return wa;ax=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.isInteropObservable=void 0;var e=mp(),t=Ce();function r(a){return t.isFunction(a[e.observable])}return wa.isInteropObservable=r,wa}var Sa={},ox;function pC(){if(ox)return Sa;ox=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.isAsyncIterable=void 0;var e=Ce();function t(r){return Symbol.asyncIterator&&e.isFunction(r?.[Symbol.asyncIterator])}return Sa.isAsyncIterable=t,Sa}var Pa={},sx;function fC(){if(sx)return Pa;sx=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.createInvalidObservableTypeError=void 0;function e(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}return Pa.createInvalidObservableTypeError=e,Pa}var Ta={},yr={},cx;function hC(){if(cx)return yr;cx=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.iterator=yr.getSymbolIterator=void 0;function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}return yr.getSymbolIterator=e,yr.iterator=e(),yr}var ux;function vC(){if(ux)return Ta;ux=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.isIterable=void 0;var e=hC(),t=Ce();function r(a){return t.isFunction(a?.[e.iterator])}return Ta.isIterable=r,Ta}var dt={},lx;function mg(){if(lx)return dt;lx=1;var e=dt&&dt.__generator||function(s,i){var c={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,p,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(v){return h([m,v])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,p&&(l=m[0]&2?p.return:m[0]?p.throw||((l=p.return)&&l.call(p),0):p.next)&&!(l=l.call(p,m[1])).done)return l;switch(p=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,p=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(l=c.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){c.label=m[1];break}if(m[0]===6&&c.label<l[1]){c.label=l[1],l=m;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(m);break}l[2]&&c.ops.pop(),c.trys.pop();continue}m=i.call(s,c)}catch(v){m=[6,v],p=0}finally{u=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},t=dt&&dt.__await||function(s){return this instanceof t?(this.v=s,this):new t(s)},r=dt&&dt.__asyncGenerator||function(s,i,c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=c.apply(s,i||[]),p,l=[];return p={},d("next"),d("throw"),d("return"),p[Symbol.asyncIterator]=function(){return this},p;function d(_){u[_]&&(p[_]=function(b){return new Promise(function(y,E){l.push([_,b,y,E])>1||f(_,b)})})}function f(_,b){try{h(u[_](b))}catch(y){g(l[0][3],y)}}function h(_){_.value instanceof t?Promise.resolve(_.value.v).then(m,v):g(l[0][2],_)}function m(_){f("next",_)}function v(_){f("throw",_)}function g(_,b){_(b),l.shift(),l.length&&f(l[0][0],l[0][1])}};Object.defineProperty(dt,"__esModule",{value:!0}),dt.isReadableStreamLike=dt.readableStreamLikeToAsyncGenerator=void 0;var a=Ce();function o(s){return r(this,arguments,function(){var c,u,p,l;return e(this,function(d){switch(d.label){case 0:c=s.getReader(),d.label=1;case 1:d.trys.push([1,,9,10]),d.label=2;case 2:return[4,t(c.read())];case 3:return u=d.sent(),p=u.value,l=u.done,l?[4,t(void 0)]:[3,5];case 4:return[2,d.sent()];case 5:return[4,t(p)];case 6:return[4,d.sent()];case 7:return d.sent(),[3,2];case 8:return[3,10];case 9:return c.releaseLock(),[7];case 10:return[2]}})})}dt.readableStreamLikeToAsyncGenerator=o;function n(s){return a.isFunction(s?.getReader)}return dt.isReadableStreamLike=n,dt}var dx;function we(){if(dx)return Le;dx=1;var e=Le&&Le.__awaiter||function(O,S,w,T){function A(P){return P instanceof w?P:new w(function(C){C(P)})}return new(w||(w=Promise))(function(P,C){function D(z){try{F(T.next(z))}catch(Z){C(Z)}}function H(z){try{F(T.throw(z))}catch(Z){C(Z)}}function F(z){z.done?P(z.value):A(z.value).then(D,H)}F((T=T.apply(O,S||[])).next())})},t=Le&&Le.__generator||function(O,S){var w={label:0,sent:function(){if(P[0]&1)throw P[1];return P[1]},trys:[],ops:[]},T,A,P,C;return C={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function D(F){return function(z){return H([F,z])}}function H(F){if(T)throw new TypeError("Generator is already executing.");for(;w;)try{if(T=1,A&&(P=F[0]&2?A.return:F[0]?A.throw||((P=A.return)&&P.call(A),0):A.next)&&!(P=P.call(A,F[1])).done)return P;switch(A=0,P&&(F=[F[0]&2,P.value]),F[0]){case 0:case 1:P=F;break;case 4:return w.label++,{value:F[1],done:!1};case 5:w.label++,A=F[1],F=[0];continue;case 7:F=w.ops.pop(),w.trys.pop();continue;default:if(P=w.trys,!(P=P.length>0&&P[P.length-1])&&(F[0]===6||F[0]===2)){w=0;continue}if(F[0]===3&&(!P||F[1]>P[0]&&F[1]<P[3])){w.label=F[1];break}if(F[0]===6&&w.label<P[1]){w.label=P[1],P=F;break}if(P&&w.label<P[2]){w.label=P[2],w.ops.push(F);break}P[2]&&w.ops.pop(),w.trys.pop();continue}F=S.call(O,w)}catch(z){F=[6,z],A=0}finally{T=P=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},r=Le&&Le.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S=O[Symbol.asyncIterator],w;return S?S.call(O):(O=typeof a=="function"?a(O):O[Symbol.iterator](),w={},T("next"),T("throw"),T("return"),w[Symbol.asyncIterator]=function(){return this},w);function T(P){w[P]=O[P]&&function(C){return new Promise(function(D,H){C=O[P](C),A(D,H,C.done,C.value)})}}function A(P,C,D,H){Promise.resolve(H).then(function(F){P({value:F,done:D})},C)}},a=Le&&Le.__values||function(O){var S=typeof Symbol=="function"&&Symbol.iterator,w=S&&O[S],T=0;if(w)return w.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&T>=O.length&&(O=void 0),{value:O&&O[T++],done:!O}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Le,"__esModule",{value:!0}),Le.fromReadableStreamLike=Le.fromAsyncIterable=Le.fromIterable=Le.fromPromise=Le.fromArrayLike=Le.fromInteropObservable=Le.innerFrom=void 0;var o=hg(),n=sC(),s=qe(),i=dC(),c=pC(),u=fC(),p=vC(),l=mg(),d=Ce(),f=lC(),h=mp();function m(O){if(O instanceof s.Observable)return O;if(O!=null){if(i.isInteropObservable(O))return v(O);if(o.isArrayLike(O))return g(O);if(n.isPromise(O))return _(O);if(c.isAsyncIterable(O))return y(O);if(p.isIterable(O))return b(O);if(l.isReadableStreamLike(O))return E(O)}throw u.createInvalidObservableTypeError(O)}Le.innerFrom=m;function v(O){return new s.Observable(function(S){var w=O[h.observable]();if(d.isFunction(w.subscribe))return w.subscribe(S);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}Le.fromInteropObservable=v;function g(O){return new s.Observable(function(S){for(var w=0;w<O.length&&!S.closed;w++)S.next(O[w]);S.complete()})}Le.fromArrayLike=g;function _(O){return new s.Observable(function(S){O.then(function(w){S.closed||(S.next(w),S.complete())},function(w){return S.error(w)}).then(null,f.reportUnhandledError)})}Le.fromPromise=_;function b(O){return new s.Observable(function(S){var w,T;try{for(var A=a(O),P=A.next();!P.done;P=A.next()){var C=P.value;if(S.next(C),S.closed)return}}catch(D){w={error:D}}finally{try{P&&!P.done&&(T=A.return)&&T.call(A)}finally{if(w)throw w.error}}S.complete()})}Le.fromIterable=b;function y(O){return new s.Observable(function(S){x(O,S).catch(function(w){return S.error(w)})})}Le.fromAsyncIterable=y;function E(O){return y(l.readableStreamLikeToAsyncGenerator(O))}Le.fromReadableStreamLike=E;function x(O,S){var w,T,A,P;return e(this,void 0,void 0,function(){var C,D;return t(this,function(H){switch(H.label){case 0:H.trys.push([0,5,6,11]),w=r(O),H.label=1;case 1:return[4,w.next()];case 2:if(T=H.sent(),!!T.done)return[3,4];if(C=T.value,S.next(C),S.closed)return[2];H.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return D=H.sent(),A={error:D},[3,11];case 6:return H.trys.push([6,,9,10]),T&&!T.done&&(P=w.return)?[4,P.call(w)]:[3,8];case 7:H.sent(),H.label=8;case 8:return[3,10];case 9:if(A)throw A.error;return[7];case 10:return[7];case 11:return S.complete(),[2]}})})}return Le}var It={},px;function pe(){if(px)return It;px=1;var e=It&&It.__extends||(function(){var o=function(n,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(i[u]=c[u])},o(n,s)};return function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(n,s);function i(){this.constructor=n}n.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})();Object.defineProperty(It,"__esModule",{value:!0}),It.OperatorSubscriber=It.createOperatorSubscriber=void 0;var t=El();function r(o,n,s,i,c){return new a(o,n,s,i,c)}It.createOperatorSubscriber=r;var a=(function(o){e(n,o);function n(s,i,c,u,p,l){var d=o.call(this,s)||this;return d.onFinalize=p,d.shouldUnsubscribe=l,d._next=i?function(f){try{i(f)}catch(h){s.error(h)}}:o.prototype._next,d._error=u?function(f){try{u(f)}catch(h){s.error(h)}finally{this.unsubscribe()}}:o.prototype._error,d._complete=c?function(){try{c()}catch(f){s.error(f)}finally{this.unsubscribe()}}:o.prototype._complete,d}return n.prototype.unsubscribe=function(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;o.prototype.unsubscribe.call(this),!i&&((s=this.onFinalize)===null||s===void 0||s.call(this))}},n})(t.Subscriber);return It.OperatorSubscriber=a,It}var fx;function _g(){if(fx)return la;fx=1,Object.defineProperty(la,"__esModule",{value:!0}),la.audit=void 0;var e=ce(),t=we(),r=pe();function a(o){return e.operate(function(n,s){var i=!1,c=null,u=null,p=!1,l=function(){if(u?.unsubscribe(),u=null,i){i=!1;var f=c;c=null,s.next(f)}p&&s.complete()},d=function(){u=null,p&&s.complete()};n.subscribe(r.createOperatorSubscriber(s,function(f){i=!0,c=f,u||t.innerFrom(o(f)).subscribe(u=r.createOperatorSubscriber(s,l,d))},function(){p=!0,(!i||!u||u.closed)&&s.complete()}))})}return la.audit=a,la}var Aa={},Bh={},Er={},xr={},hx;function BL(){if(hx)return xr;hx=1;var e=xr&&xr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(xr,"__esModule",{value:!0}),xr.Action=void 0;var t=mt(),r=(function(a){e(o,a);function o(n,s){return a.call(this)||this}return o.prototype.schedule=function(n,s){return this},o})(t.Subscription);return xr.Action=r,xr}var Or={},vx;function HL(){return vx||(vx=1,(function(e){var t=Or&&Or.__read||function(a,o){var n=typeof Symbol=="function"&&a[Symbol.iterator];if(!n)return a;var s=n.call(a),i,c=[],u;try{for(;(o===void 0||o-- >0)&&!(i=s.next()).done;)c.push(i.value)}catch(p){u={error:p}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(u)throw u.error}}return c},r=Or&&Or.__spreadArray||function(a,o){for(var n=0,s=o.length,i=a.length;n<s;n++,i++)a[i]=o[n];return a};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(a,o){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var i=e.intervalProvider.delegate;return i?.setInterval?i.setInterval.apply(i,r([a,o],t(n))):setInterval.apply(void 0,r([a,o],t(n)))},clearInterval:function(a){var o=e.intervalProvider.delegate;return(o?.clearInterval||clearInterval)(a)},delegate:void 0}})(Or)),Or}var mx;function xl(){if(mx)return Er;mx=1;var e=Er&&Er.__extends||(function(){var n=function(s,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(c[p]=u[p])},n(s,i)};return function(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(s,i);function c(){this.constructor=s}s.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}})();Object.defineProperty(Er,"__esModule",{value:!0}),Er.AsyncAction=void 0;var t=BL(),r=HL(),a=ar(),o=(function(n){e(s,n);function s(i,c){var u=n.call(this,i,c)||this;return u.scheduler=i,u.work=c,u.pending=!1,u}return s.prototype.schedule=function(i,c){var u;if(c===void 0&&(c=0),this.closed)return this;this.state=i;var p=this.id,l=this.scheduler;return p!=null&&(this.id=this.recycleAsyncId(l,p,c)),this.pending=!0,this.delay=c,this.id=(u=this.id)!==null&&u!==void 0?u:this.requestAsyncId(l,this.id,c),this},s.prototype.requestAsyncId=function(i,c,u){return u===void 0&&(u=0),r.intervalProvider.setInterval(i.flush.bind(i,this),u)},s.prototype.recycleAsyncId=function(i,c,u){if(u===void 0&&(u=0),u!=null&&this.delay===u&&this.pending===!1)return c;c!=null&&r.intervalProvider.clearInterval(c)},s.prototype.execute=function(i,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var u=this._execute(i,c);if(u)return u;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},s.prototype._execute=function(i,c){var u=!1,p;try{this.work(i)}catch(l){u=!0,p=l||new Error("Scheduled action threw falsy error")}if(u)return this.unsubscribe(),p},s.prototype.unsubscribe=function(){if(!this.closed){var i=this,c=i.id,u=i.scheduler,p=u.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(p,this),c!=null&&(this.id=this.recycleAsyncId(u,c,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},s})(t.Action);return Er.AsyncAction=o,Er}var wr={},Ra={},Hh={},_x;function gg(){return _x||(_x=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}})(Hh)),Hh}var gx;function mC(){if(gx)return Ra;gx=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.Scheduler=void 0;var e=gg(),t=(function(){function r(a,o){o===void 0&&(o=r.now),this.schedulerActionCtor=a,this.now=o}return r.prototype.schedule=function(a,o,n){return o===void 0&&(o=0),new this.schedulerActionCtor(this,a).schedule(n,o)},r.now=e.dateTimestampProvider.now,r})();return Ra.Scheduler=t,Ra}var bx;function Ol(){if(bx)return wr;bx=1;var e=wr&&wr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(wr,"__esModule",{value:!0}),wr.AsyncScheduler=void 0;var t=mC(),r=(function(a){e(o,a);function o(n,s){s===void 0&&(s=t.Scheduler.now);var i=a.call(this,n,s)||this;return i.actions=[],i._active=!1,i}return o.prototype.flush=function(n){var s=this.actions;if(this._active){s.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=s.shift());if(this._active=!1,i){for(;n=s.shift();)n.unsubscribe();throw i}},o})(t.Scheduler);return wr.AsyncScheduler=r,wr}var yx;function pt(){return yx||(yx=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var t=xl(),r=Ol();e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})(Bh)),Bh}var Ma={},Ia={},Ex;function gp(){if(Ex)return Ia;Ex=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.isScheduler=void 0;var e=Ce();function t(r){return r&&e.isFunction(r.schedule)}return Ia.isScheduler=t,Ia}var Ca={},xx;function bg(){if(xx)return Ca;xx=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.isValidDate=void 0;function e(t){return t instanceof Date&&!isNaN(t)}return Ca.isValidDate=e,Ca}var Ox;function vn(){if(Ox)return Ma;Ox=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.timer=void 0;var e=qe(),t=pt(),r=gp(),a=bg();function o(n,s,i){n===void 0&&(n=0),i===void 0&&(i=t.async);var c=-1;return s!=null&&(r.isScheduler(s)?i=s:c=s),new e.Observable(function(u){var p=a.isValidDate(n)?+n-i.now():n;p<0&&(p=0);var l=0;return i.schedule(function(){u.closed||(u.next(l++),0<=c?this.schedule(void 0,c):u.complete())},p)})}return Ma.timer=o,Ma}var wx;function _C(){if(wx)return Aa;wx=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.auditTime=void 0;var e=pt(),t=_g(),r=vn();function a(o,n){return n===void 0&&(n=e.asyncScheduler),t.audit(function(){return r.timer(o,n)})}return Aa.auditTime=a,Aa}var ja={},Sx;function gC(){if(Sx)return ja;Sx=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.buffer=void 0;var e=ce(),t=tt(),r=pe(),a=we();function o(n){return e.operate(function(s,i){var c=[];return s.subscribe(r.createOperatorSubscriber(i,function(u){return c.push(u)},function(){i.next(c),i.complete()})),a.innerFrom(n).subscribe(r.createOperatorSubscriber(i,function(){var u=c;c=[],i.next(u)},t.noop)),function(){c=null}})}return ja.buffer=o,ja}var Sr={},Px;function bC(){if(Px)return Sr;Px=1;var e=Sr&&Sr.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&n[s],c=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&c>=n.length&&(n=void 0),{value:n&&n[c++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.bufferCount=void 0;var t=ce(),r=pe(),a=ar();function o(n,s){return s===void 0&&(s=null),s=s??n,t.operate(function(i,c){var u=[],p=0;i.subscribe(r.createOperatorSubscriber(c,function(l){var d,f,h,m,v=null;p++%s===0&&u.push([]);try{for(var g=e(u),_=g.next();!_.done;_=g.next()){var b=_.value;b.push(l),n<=b.length&&(v=v??[],v.push(b))}}catch(x){d={error:x}}finally{try{_&&!_.done&&(f=g.return)&&f.call(g)}finally{if(d)throw d.error}}if(v)try{for(var y=e(v),E=y.next();!E.done;E=y.next()){var b=E.value;a.arrRemove(u,b),c.next(b)}}catch(x){h={error:x}}finally{try{E&&!E.done&&(m=y.return)&&m.call(y)}finally{if(h)throw h.error}}},function(){var l,d;try{for(var f=e(u),h=f.next();!h.done;h=f.next()){var m=h.value;c.next(m)}}catch(v){l={error:v}}finally{try{h&&!h.done&&(d=f.return)&&d.call(f)}finally{if(l)throw l.error}}c.complete()},void 0,function(){u=null}))})}return Sr.bufferCount=o,Sr}var Pr={},Ct={},Tx;function ft(){if(Tx)return Ct;Tx=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.popNumber=Ct.popScheduler=Ct.popResultSelector=void 0;var e=Ce(),t=gp();function r(s){return s[s.length-1]}function a(s){return e.isFunction(r(s))?s.pop():void 0}Ct.popResultSelector=a;function o(s){return t.isScheduler(r(s))?s.pop():void 0}Ct.popScheduler=o;function n(s,i){return typeof r(s)=="number"?s.pop():i}return Ct.popNumber=n,Ct}var qa={},Ax;function or(){if(Ax)return qa;Ax=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.executeSchedule=void 0;function e(t,r,a,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var s=r.schedule(function(){a(),n?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(s),!n)return s}return qa.executeSchedule=e,qa}var Rx;function yC(){if(Rx)return Pr;Rx=1;var e=Pr&&Pr.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.bufferTime=void 0;var t=mt(),r=ce(),a=pe(),o=ar(),n=pt(),s=ft(),i=or();function c(u){for(var p,l,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=(p=s.popScheduler(d))!==null&&p!==void 0?p:n.asyncScheduler,m=(l=d[0])!==null&&l!==void 0?l:null,v=d[1]||1/0;return r.operate(function(g,_){var b=[],y=!1,E=function(S){var w=S.buffer,T=S.subs;T.unsubscribe(),o.arrRemove(b,S),_.next(w),y&&x()},x=function(){if(b){var S=new t.Subscription;_.add(S);var w=[],T={buffer:w,subs:S};b.push(T),i.executeSchedule(S,h,function(){return E(T)},u)}};m!==null&&m>=0?i.executeSchedule(_,h,x,m,!0):y=!0,x();var O=a.createOperatorSubscriber(_,function(S){var w,T,A=b.slice();try{for(var P=e(A),C=P.next();!C.done;C=P.next()){var D=C.value,H=D.buffer;H.push(S),v<=H.length&&E(D)}}catch(F){w={error:F}}finally{try{C&&!C.done&&(T=P.return)&&T.call(P)}finally{if(w)throw w.error}}},function(){for(;b?.length;)_.next(b.shift().buffer);O?.unsubscribe(),_.complete(),_.unsubscribe()},void 0,function(){return b=null});g.subscribe(O)})}return Pr.bufferTime=c,Pr}var Tr={},Mx;function EC(){if(Mx)return Tr;Mx=1;var e=Tr&&Tr.__values||function(c){var u=typeof Symbol=="function"&&Symbol.iterator,p=u&&c[u],l=0;if(p)return p.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&l>=c.length&&(c=void 0),{value:c&&c[l++],done:!c}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.bufferToggle=void 0;var t=mt(),r=ce(),a=we(),o=pe(),n=tt(),s=ar();function i(c,u){return r.operate(function(p,l){var d=[];a.innerFrom(c).subscribe(o.createOperatorSubscriber(l,function(f){var h=[];d.push(h);var m=new t.Subscription,v=function(){s.arrRemove(d,h),l.next(h),m.unsubscribe()};m.add(a.innerFrom(u(f)).subscribe(o.createOperatorSubscriber(l,v,n.noop)))},n.noop)),p.subscribe(o.createOperatorSubscriber(l,function(f){var h,m;try{for(var v=e(d),g=v.next();!g.done;g=v.next()){var _=g.value;_.push(f)}}catch(b){h={error:b}}finally{try{g&&!g.done&&(m=v.return)&&m.call(v)}finally{if(h)throw h.error}}},function(){for(;d.length>0;)l.next(d.shift());l.complete()}))})}return Tr.bufferToggle=i,Tr}var Na={},Ix;function xC(){if(Ix)return Na;Ix=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.bufferWhen=void 0;var e=ce(),t=tt(),r=pe(),a=we();function o(n){return e.operate(function(s,i){var c=null,u=null,p=function(){u?.unsubscribe();var l=c;c=[],l&&i.next(l),a.innerFrom(n()).subscribe(u=r.createOperatorSubscriber(i,p,t.noop))};p(),s.subscribe(r.createOperatorSubscriber(i,function(l){return c?.push(l)},function(){c&&i.next(c),i.complete()},void 0,function(){return c=u=null}))})}return Na.bufferWhen=o,Na}var Fa={},Cx;function OC(){if(Cx)return Fa;Cx=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.catchError=void 0;var e=we(),t=pe(),r=ce();function a(o){return r.operate(function(n,s){var i=null,c=!1,u;i=n.subscribe(t.createOperatorSubscriber(s,void 0,void 0,function(p){u=e.innerFrom(o(p,a(o)(n))),i?(i.unsubscribe(),i=null,u.subscribe(s)):c=!0})),c&&(i.unsubscribe(),i=null,u.subscribe(s))})}return Fa.catchError=a,Fa}var Da={},ka={},Ar={},La={},jx;function wC(){if(jx)return La;jx=1,Object.defineProperty(La,"__esModule",{value:!0}),La.argsArgArrayOrObject=void 0;var e=Array.isArray,t=Object.getPrototypeOf,r=Object.prototype,a=Object.keys;function o(s){if(s.length===1){var i=s[0];if(e(i))return{args:i,keys:null};if(n(i)){var c=a(i);return{args:c.map(function(u){return i[u]}),keys:c}}}return{args:s,keys:null}}La.argsArgArrayOrObject=o;function n(s){return s&&typeof s=="object"&&t(s)===r}return La}var Ua={},$a={},za={},Ba={},qx;function wl(){if(qx)return Ba;qx=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.observeOn=void 0;var e=or(),t=ce(),r=pe();function a(o,n){return n===void 0&&(n=0),t.operate(function(s,i){s.subscribe(r.createOperatorSubscriber(i,function(c){return e.executeSchedule(i,o,function(){return i.next(c)},n)},function(){return e.executeSchedule(i,o,function(){return i.complete()},n)},function(c){return e.executeSchedule(i,o,function(){return i.error(c)},n)}))})}return Ba.observeOn=a,Ba}var Ha={},Nx;function Sl(){if(Nx)return Ha;Nx=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.subscribeOn=void 0;var e=ce();function t(r,a){return a===void 0&&(a=0),e.operate(function(o,n){n.add(r.schedule(function(){return o.subscribe(n)},a))})}return Ha.subscribeOn=t,Ha}var Fx;function VL(){if(Fx)return za;Fx=1,Object.defineProperty(za,"__esModule",{value:!0}),za.scheduleObservable=void 0;var e=we(),t=wl(),r=Sl();function a(o,n){return e.innerFrom(o).pipe(r.subscribeOn(n),t.observeOn(n))}return za.scheduleObservable=a,za}var Va={},Dx;function GL(){if(Dx)return Va;Dx=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.schedulePromise=void 0;var e=we(),t=wl(),r=Sl();function a(o,n){return e.innerFrom(o).pipe(r.subscribeOn(n),t.observeOn(n))}return Va.schedulePromise=a,Va}var Ga={},kx;function WL(){if(kx)return Ga;kx=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.scheduleArray=void 0;var e=qe();function t(r,a){return new e.Observable(function(o){var n=0;return a.schedule(function(){n===r.length?o.complete():(o.next(r[n++]),o.closed||this.schedule())})})}return Ga.scheduleArray=t,Ga}var Wa={},Lx;function SC(){if(Lx)return Wa;Lx=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.scheduleIterable=void 0;var e=qe(),t=hC(),r=Ce(),a=or();function o(n,s){return new e.Observable(function(i){var c;return a.executeSchedule(i,s,function(){c=n[t.iterator](),a.executeSchedule(i,s,function(){var u,p,l;try{u=c.next(),p=u.value,l=u.done}catch(d){i.error(d);return}l?i.complete():i.next(p)},0,!0)}),function(){return r.isFunction(c?.return)&&c.return()}})}return Wa.scheduleIterable=o,Wa}var Za={},Ux;function PC(){if(Ux)return Za;Ux=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.scheduleAsyncIterable=void 0;var e=qe(),t=or();function r(a,o){if(!a)throw new Error("Iterable cannot be null");return new e.Observable(function(n){t.executeSchedule(n,o,function(){var s=a[Symbol.asyncIterator]();t.executeSchedule(n,o,function(){s.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}return Za.scheduleAsyncIterable=r,Za}var Ka={},$x;function ZL(){if($x)return Ka;$x=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.scheduleReadableStreamLike=void 0;var e=PC(),t=mg();function r(a,o){return e.scheduleAsyncIterable(t.readableStreamLikeToAsyncGenerator(a),o)}return Ka.scheduleReadableStreamLike=r,Ka}var zx;function TC(){if(zx)return $a;zx=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.scheduled=void 0;var e=VL(),t=GL(),r=WL(),a=SC(),o=PC(),n=dC(),s=sC(),i=hg(),c=vC(),u=pC(),p=fC(),l=mg(),d=ZL();function f(h,m){if(h!=null){if(n.isInteropObservable(h))return e.scheduleObservable(h,m);if(i.isArrayLike(h))return r.scheduleArray(h,m);if(s.isPromise(h))return t.schedulePromise(h,m);if(u.isAsyncIterable(h))return o.scheduleAsyncIterable(h,m);if(c.isIterable(h))return a.scheduleIterable(h,m);if(l.isReadableStreamLike(h))return d.scheduleReadableStreamLike(h,m)}throw p.createInvalidObservableTypeError(h)}return $a.scheduled=f,$a}var Bx;function sr(){if(Bx)return Ua;Bx=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.from=void 0;var e=TC(),t=we();function r(a,o){return o?e.scheduled(a,o):t.innerFrom(a)}return Ua.from=r,Ua}var jt={},Ya={},Hx;function cr(){if(Hx)return Ya;Hx=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.map=void 0;var e=ce(),t=pe();function r(a,o){return e.operate(function(n,s){var i=0;n.subscribe(t.createOperatorSubscriber(s,function(c){s.next(a.call(o,c,i++))}))})}return Ya.map=r,Ya}var Vx;function mn(){if(Vx)return jt;Vx=1;var e=jt&&jt.__read||function(s,i){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(i===void 0||i-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},t=jt&&jt.__spreadArray||function(s,i){for(var c=0,u=i.length,p=s.length;c<u;c++,p++)s[p]=i[c];return s};Object.defineProperty(jt,"__esModule",{value:!0}),jt.mapOneOrManyArgs=void 0;var r=cr(),a=Array.isArray;function o(s,i){return a(i)?s.apply(void 0,t([],e(i))):s(i)}function n(s){return r.map(function(i){return o(s,i)})}return jt.mapOneOrManyArgs=n,jt}var Xa={},Gx;function AC(){if(Gx)return Xa;Gx=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.createObject=void 0;function e(t,r){return t.reduce(function(a,o,n){return a[o]=r[n],a},{})}return Xa.createObject=e,Xa}var Wx;function yg(){if(Wx)return Ar;Wx=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.combineLatestInit=Ar.combineLatest=void 0;var e=qe(),t=wC(),r=sr(),a=rt(),o=mn(),n=ft(),s=AC(),i=pe(),c=or();function u(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=n.popScheduler(d),m=n.popResultSelector(d),v=t.argsArgArrayOrObject(d),g=v.args,_=v.keys;if(g.length===0)return r.from([],h);var b=new e.Observable(p(g,h,_?function(y){return s.createObject(_,y)}:a.identity));return m?b.pipe(o.mapOneOrManyArgs(m)):b}Ar.combineLatest=u;function p(d,f,h){return h===void 0&&(h=a.identity),function(m){l(f,function(){for(var v=d.length,g=new Array(v),_=v,b=v,y=function(x){l(f,function(){var O=r.from(d[x],f),S=!1;O.subscribe(i.createOperatorSubscriber(m,function(w){g[x]=w,S||(S=!0,b--),b||m.next(h(g.slice()))},function(){--_||m.complete()}))},m)},E=0;E<v;E++)y(E)},m)}}Ar.combineLatestInit=p;function l(d,f,h){d?c.executeSchedule(h,d,f):f()}return Ar}var Qa={},Ja={},eo={},Zx;function Eg(){if(Zx)return eo;Zx=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.mergeInternals=void 0;var e=we(),t=or(),r=pe();function a(o,n,s,i,c,u,p,l){var d=[],f=0,h=0,m=!1,v=function(){m&&!d.length&&!f&&n.complete()},g=function(b){return f<i?_(b):d.push(b)},_=function(b){u&&n.next(b),f++;var y=!1;e.innerFrom(s(b,h++)).subscribe(r.createOperatorSubscriber(n,function(E){c?.(E),u?g(E):n.next(E)},function(){y=!0},void 0,function(){if(y)try{f--;for(var E=function(){var x=d.shift();p?t.executeSchedule(n,p,function(){return _(x)}):_(x)};d.length&&f<i;)E();v()}catch(x){n.error(x)}}))};return o.subscribe(r.createOperatorSubscriber(n,g,function(){m=!0,v()})),function(){l?.()}}return eo.mergeInternals=a,eo}var Kx;function Qt(){if(Kx)return Ja;Kx=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.mergeMap=void 0;var e=cr(),t=we(),r=ce(),a=Eg(),o=Ce();function n(s,i,c){return c===void 0&&(c=1/0),o.isFunction(i)?n(function(u,p){return e.map(function(l,d){return i(u,l,p,d)})(t.innerFrom(s(u,p)))},c):(typeof i=="number"&&(c=i),r.operate(function(u,p){return a.mergeInternals(u,p,s,c)}))}return Ja.mergeMap=n,Ja}var to={},ro={},no={},Yx;function RC(){if(Yx)return no;Yx=1,Object.defineProperty(no,"__esModule",{value:!0}),no.scanInternals=void 0;var e=pe();function t(r,a,o,n,s){return function(i,c){var u=o,p=a,l=0;i.subscribe(e.createOperatorSubscriber(c,function(d){var f=l++;p=u?r(p,d,f):(u=!0,d),n&&c.next(p)},s&&(function(){u&&c.next(p),c.complete()})))}}return no.scanInternals=t,no}var Xx;function li(){if(Xx)return ro;Xx=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.reduce=void 0;var e=RC(),t=ce();function r(a,o){return t.operate(e.scanInternals(a,o,arguments.length>=2,!1,!0))}return ro.reduce=r,ro}var Qx;function xg(){if(Qx)return to;Qx=1,Object.defineProperty(to,"__esModule",{value:!0}),to.toArray=void 0;var e=li(),t=ce(),r=function(o,n){return o.push(n),o};function a(){return t.operate(function(o,n){e.reduce(r,[])(o).subscribe(n)})}return to.toArray=a,to}var Jx;function MC(){if(Jx)return Qa;Jx=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.joinAllInternals=void 0;var e=rt(),t=mn(),r=_p(),a=Qt(),o=xg();function n(s,i){return r.pipe(o.toArray(),a.mergeMap(function(c){return s(c)}),i?t.mapOneOrManyArgs(i):e.identity)}return Qa.joinAllInternals=n,Qa}var eO;function Og(){if(eO)return ka;eO=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.combineLatestAll=void 0;var e=yg(),t=MC();function r(a){return t.joinAllInternals(e.combineLatest,a)}return ka.combineLatestAll=r,ka}var tO;function IC(){if(tO)return Da;tO=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.combineAll=void 0;var e=Og();return Da.combineAll=e.combineLatestAll,Da}var qt={},io={},rO;function di(){if(rO)return io;rO=1,Object.defineProperty(io,"__esModule",{value:!0}),io.argsOrArgArray=void 0;var e=Array.isArray;function t(r){return r.length===1&&e(r[0])?r[0]:r}return io.argsOrArgArray=t,io}var nO;function CC(){if(nO)return qt;nO=1;var e=qt&&qt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=qt&&qt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(qt,"__esModule",{value:!0}),qt.combineLatest=void 0;var r=yg(),a=ce(),o=di(),n=mn(),s=_p(),i=ft();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=i.popResultSelector(u);return l?s.pipe(c.apply(void 0,t([],e(u))),n.mapOneOrManyArgs(l)):a.operate(function(d,f){r.combineLatestInit(t([d],e(o.argsOrArgArray(u))))(f)})}return qt.combineLatest=c,qt}var Nt={},iO;function jC(){if(iO)return Nt;iO=1;var e=Nt&&Nt.__read||function(o,n){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var i=s.call(o),c,u=[],p;try{for(;(n===void 0||n-- >0)&&!(c=i.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(p)throw p.error}}return u},t=Nt&&Nt.__spreadArray||function(o,n){for(var s=0,i=n.length,c=o.length;s<i;s++,c++)o[c]=n[s];return o};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.combineLatestWith=void 0;var r=CC();function a(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.combineLatest.apply(void 0,t([],e(o)))}return Nt.combineLatestWith=a,Nt}var Ft={},ao={},oo={},aO;function Pl(){if(aO)return oo;aO=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.mergeAll=void 0;var e=Qt(),t=rt();function r(a){return a===void 0&&(a=1/0),e.mergeMap(t.identity,a)}return oo.mergeAll=r,oo}var oO;function bp(){if(oO)return ao;oO=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.concatAll=void 0;var e=Pl();function t(){return e.mergeAll(1)}return ao.concatAll=t,ao}var sO;function qC(){if(sO)return Ft;sO=1;var e=Ft&&Ft.__read||function(i,c){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var p=u.call(i),l,d=[],f;try{for(;(c===void 0||c-- >0)&&!(l=p.next()).done;)d.push(l.value)}catch(h){f={error:h}}finally{try{l&&!l.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return d},t=Ft&&Ft.__spreadArray||function(i,c){for(var u=0,p=c.length,l=i.length;u<p;u++,l++)i[l]=c[u];return i};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.concat=void 0;var r=ce(),a=bp(),o=ft(),n=sr();function s(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=o.popScheduler(i);return r.operate(function(p,l){a.concatAll()(n.from(t([p],e(i)),u)).subscribe(l)})}return Ft.concat=s,Ft}var so={},cO;function wg(){if(cO)return so;cO=1,Object.defineProperty(so,"__esModule",{value:!0}),so.concatMap=void 0;var e=Qt(),t=Ce();function r(a,o){return t.isFunction(o)?e.mergeMap(a,o,1):e.mergeMap(a,1)}return so.concatMap=r,so}var co={},uO;function NC(){if(uO)return co;uO=1,Object.defineProperty(co,"__esModule",{value:!0}),co.concatMapTo=void 0;var e=wg(),t=Ce();function r(a,o){return t.isFunction(o)?e.concatMap(function(){return a},o):e.concatMap(function(){return a})}return co.concatMapTo=r,co}var Dt={},lO;function FC(){if(lO)return Dt;lO=1;var e=Dt&&Dt.__read||function(o,n){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var i=s.call(o),c,u=[],p;try{for(;(n===void 0||n-- >0)&&!(c=i.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(p)throw p.error}}return u},t=Dt&&Dt.__spreadArray||function(o,n){for(var s=0,i=n.length,c=o.length;s<i;s++,c++)o[c]=n[s];return o};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.concatWith=void 0;var r=qC();function a(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.concat.apply(void 0,t([],e(o)))}return Dt.concatWith=a,Dt}var uo={},Et={},lo={},dO;function DC(){if(dO)return lo;dO=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.ObjectUnsubscribedError=void 0;var e=hn();return lo.ObjectUnsubscribedError=e.createErrorClass(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),lo}var pO;function nt(){if(pO)return Et;pO=1;var e=Et&&Et.__extends||(function(){var u=function(p,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])},u(p,l)};return function(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(p,l);function d(){this.constructor=p}p.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}})(),t=Et&&Et.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Et,"__esModule",{value:!0}),Et.AnonymousSubject=Et.Subject=void 0;var r=qe(),a=mt(),o=DC(),n=ar(),s=vg(),i=(function(u){e(p,u);function p(){var l=u.call(this)||this;return l.closed=!1,l.currentObservers=null,l.observers=[],l.isStopped=!1,l.hasError=!1,l.thrownError=null,l}return p.prototype.lift=function(l){var d=new c(this,this);return d.operator=l,d},p.prototype._throwIfClosed=function(){if(this.closed)throw new o.ObjectUnsubscribedError},p.prototype.next=function(l){var d=this;s.errorContext(function(){var f,h;if(d._throwIfClosed(),!d.isStopped){d.currentObservers||(d.currentObservers=Array.from(d.observers));try{for(var m=t(d.currentObservers),v=m.next();!v.done;v=m.next()){var g=v.value;g.next(l)}}catch(_){f={error:_}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(f)throw f.error}}}})},p.prototype.error=function(l){var d=this;s.errorContext(function(){if(d._throwIfClosed(),!d.isStopped){d.hasError=d.isStopped=!0,d.thrownError=l;for(var f=d.observers;f.length;)f.shift().error(l)}})},p.prototype.complete=function(){var l=this;s.errorContext(function(){if(l._throwIfClosed(),!l.isStopped){l.isStopped=!0;for(var d=l.observers;d.length;)d.shift().complete()}})},p.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(p.prototype,"observed",{get:function(){var l;return((l=this.observers)===null||l===void 0?void 0:l.length)>0},enumerable:!1,configurable:!0}),p.prototype._trySubscribe=function(l){return this._throwIfClosed(),u.prototype._trySubscribe.call(this,l)},p.prototype._subscribe=function(l){return this._throwIfClosed(),this._checkFinalizedStatuses(l),this._innerSubscribe(l)},p.prototype._innerSubscribe=function(l){var d=this,f=this,h=f.hasError,m=f.isStopped,v=f.observers;return h||m?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,v.push(l),new a.Subscription(function(){d.currentObservers=null,n.arrRemove(v,l)}))},p.prototype._checkFinalizedStatuses=function(l){var d=this,f=d.hasError,h=d.thrownError,m=d.isStopped;f?l.error(h):m&&l.complete()},p.prototype.asObservable=function(){var l=new r.Observable;return l.source=this,l},p.create=function(l,d){return new c(l,d)},p})(r.Observable);Et.Subject=i;var c=(function(u){e(p,u);function p(l,d){var f=u.call(this)||this;return f.destination=l,f.source=d,f}return p.prototype.next=function(l){var d,f;(f=(d=this.destination)===null||d===void 0?void 0:d.next)===null||f===void 0||f.call(d,l)},p.prototype.error=function(l){var d,f;(f=(d=this.destination)===null||d===void 0?void 0:d.error)===null||f===void 0||f.call(d,l)},p.prototype.complete=function(){var l,d;(d=(l=this.destination)===null||l===void 0?void 0:l.complete)===null||d===void 0||d.call(l)},p.prototype._subscribe=function(l){var d,f;return(f=(d=this.source)===null||d===void 0?void 0:d.subscribe(l))!==null&&f!==void 0?f:a.EMPTY_SUBSCRIPTION},p})(i);return Et.AnonymousSubject=c,Et}var po={},fO;function KL(){if(fO)return po;fO=1,Object.defineProperty(po,"__esModule",{value:!0}),po.fromSubscribable=void 0;var e=qe();function t(r){return new e.Observable(function(a){return r.subscribe(a)})}return po.fromSubscribable=t,po}var hO;function yp(){if(hO)return uo;hO=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.connect=void 0;var e=nt(),t=we(),r=ce(),a=KL(),o={connector:function(){return new e.Subject}};function n(s,i){i===void 0&&(i=o);var c=i.connector;return r.operate(function(u,p){var l=c();t.innerFrom(s(a.fromSubscribable(l))).subscribe(p),p.add(u.subscribe(l))})}return uo.connect=n,uo}var fo={},vO;function kC(){if(vO)return fo;vO=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.count=void 0;var e=li();function t(r){return e.reduce(function(a,o,n){return!r||r(o,n)?a+1:a},0)}return fo.count=t,fo}var ho={},mO;function LC(){if(mO)return ho;mO=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.debounce=void 0;var e=ce(),t=tt(),r=pe(),a=we();function o(n){return e.operate(function(s,i){var c=!1,u=null,p=null,l=function(){if(p?.unsubscribe(),p=null,c){c=!1;var d=u;u=null,i.next(d)}};s.subscribe(r.createOperatorSubscriber(i,function(d){p?.unsubscribe(),c=!0,u=d,p=r.createOperatorSubscriber(i,l,t.noop),a.innerFrom(n(d)).subscribe(p)},function(){l(),i.complete()},void 0,function(){u=p=null}))})}return ho.debounce=o,ho}var vo={},_O;function UC(){if(_O)return vo;_O=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.debounceTime=void 0;var e=pt(),t=ce(),r=pe();function a(o,n){return n===void 0&&(n=e.asyncScheduler),t.operate(function(s,i){var c=null,u=null,p=null,l=function(){if(c){c.unsubscribe(),c=null;var f=u;u=null,i.next(f)}};function d(){var f=p+o,h=n.now();if(h<f){c=this.schedule(void 0,f-h),i.add(c);return}l()}s.subscribe(r.createOperatorSubscriber(i,function(f){u=f,p=n.now(),c||(c=n.schedule(d,o),i.add(c))},function(){l(),i.complete()},void 0,function(){u=c=null}))})}return vo.debounceTime=a,vo}var mo={},gO;function Tl(){if(gO)return mo;gO=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.defaultIfEmpty=void 0;var e=ce(),t=pe();function r(a){return e.operate(function(o,n){var s=!1;o.subscribe(t.createOperatorSubscriber(n,function(i){s=!0,n.next(i)},function(){s||n.next(a),n.complete()}))})}return mo.defaultIfEmpty=r,mo}var _o={},go={},bo={},bO;function Ep(){if(bO)return bo;bO=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.concat=void 0;var e=bp(),t=ft(),r=sr();function a(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.concatAll()(r.from(o,t.popScheduler(o)))}return bo.concat=a,bo}var yo={},Vh={},yO;function Tt(){return yO||(yO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var t=qe();e.EMPTY=new t.Observable(function(o){return o.complete()});function r(o){return o?a(o):e.EMPTY}e.empty=r;function a(o){return new t.Observable(function(n){return o.schedule(function(){return n.complete()})})}})(Vh)),Vh}var EO;function Al(){if(EO)return yo;EO=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.take=void 0;var e=Tt(),t=ce(),r=pe();function a(o){return o<=0?function(){return e.EMPTY}:t.operate(function(n,s){var i=0;n.subscribe(r.createOperatorSubscriber(s,function(c){++i<=o&&(s.next(c),o<=i&&s.complete())}))})}return yo.take=a,yo}var Eo={},xO;function Sg(){if(xO)return Eo;xO=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.ignoreElements=void 0;var e=ce(),t=pe(),r=tt();function a(){return e.operate(function(o,n){o.subscribe(t.createOperatorSubscriber(n,r.noop))})}return Eo.ignoreElements=a,Eo}var xo={},OO;function Pg(){if(OO)return xo;OO=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.mapTo=void 0;var e=cr();function t(r){return e.map(function(){return r})}return xo.mapTo=t,xo}var wO;function Tg(){if(wO)return go;wO=1,Object.defineProperty(go,"__esModule",{value:!0}),go.delayWhen=void 0;var e=Ep(),t=Al(),r=Sg(),a=Pg(),o=Qt(),n=we();function s(i,c){return c?function(u){return e.concat(c.pipe(t.take(1),r.ignoreElements()),u.pipe(s(i)))}:o.mergeMap(function(u,p){return n.innerFrom(i(u,p)).pipe(t.take(1),a.mapTo(u))})}return go.delayWhen=s,go}var SO;function $C(){if(SO)return _o;SO=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.delay=void 0;var e=pt(),t=Tg(),r=vn();function a(o,n){n===void 0&&(n=e.asyncScheduler);var s=r.timer(o,n);return t.delayWhen(function(){return s})}return _o.delay=a,_o}var Oo={},Gh={},wo={},PO;function Ag(){if(PO)return wo;PO=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.of=void 0;var e=ft(),t=sr();function r(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var n=e.popScheduler(a);return t.from(a,n)}return wo.of=r,wo}var So={},TO;function zC(){if(TO)return So;TO=1,Object.defineProperty(So,"__esModule",{value:!0}),So.throwError=void 0;var e=qe(),t=Ce();function r(a,o){var n=t.isFunction(a)?a:function(){return a},s=function(i){return i.error(n())};return new e.Observable(o?function(i){return o.schedule(s,0,i)}:s)}return So.throwError=r,So}var AO;function Rg(){return AO||(AO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var t=Tt(),r=Ag(),a=zC(),o=Ce();(function(i){i.NEXT="N",i.ERROR="E",i.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var n=(function(){function i(c,u,p){this.kind=c,this.value=u,this.error=p,this.hasValue=c==="N"}return i.prototype.observe=function(c){return s(this,c)},i.prototype.do=function(c,u,p){var l=this,d=l.kind,f=l.value,h=l.error;return d==="N"?c?.(f):d==="E"?u?.(h):p?.()},i.prototype.accept=function(c,u,p){var l;return o.isFunction((l=c)===null||l===void 0?void 0:l.next)?this.observe(c):this.do(c,u,p)},i.prototype.toObservable=function(){var c=this,u=c.kind,p=c.value,l=c.error,d=u==="N"?r.of(p):u==="E"?a.throwError(function(){return l}):u==="C"?t.EMPTY:0;if(!d)throw new TypeError("Unexpected notification kind "+u);return d},i.createNext=function(c){return new i("N",c)},i.createError=function(c){return new i("E",void 0,c)},i.createComplete=function(){return i.completeNotification},i.completeNotification=new i("C"),i})();e.Notification=n;function s(i,c){var u,p,l,d=i,f=d.kind,h=d.value,m=d.error;if(typeof f!="string")throw new TypeError('Invalid notification, missing "kind"');f==="N"?(u=c.next)===null||u===void 0||u.call(c,h):f==="E"?(p=c.error)===null||p===void 0||p.call(c,m):(l=c.complete)===null||l===void 0||l.call(c)}e.observeNotification=s})(Gh)),Gh}var RO;function BC(){if(RO)return Oo;RO=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.dematerialize=void 0;var e=Rg(),t=ce(),r=pe();function a(){return t.operate(function(o,n){o.subscribe(r.createOperatorSubscriber(n,function(s){return e.observeNotification(s,n)}))})}return Oo.dematerialize=a,Oo}var Po={},MO;function HC(){if(MO)return Po;MO=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.distinct=void 0;var e=ce(),t=pe(),r=tt(),a=we();function o(n,s){return e.operate(function(i,c){var u=new Set;i.subscribe(t.createOperatorSubscriber(c,function(p){var l=n?n(p):p;u.has(l)||(u.add(l),c.next(p))})),s&&a.innerFrom(s).subscribe(t.createOperatorSubscriber(c,function(){return u.clear()},r.noop))})}return Po.distinct=o,Po}var To={},IO;function Mg(){if(IO)return To;IO=1,Object.defineProperty(To,"__esModule",{value:!0}),To.distinctUntilChanged=void 0;var e=rt(),t=ce(),r=pe();function a(n,s){return s===void 0&&(s=e.identity),n=n??o,t.operate(function(i,c){var u,p=!0;i.subscribe(r.createOperatorSubscriber(c,function(l){var d=s(l);(p||!n(u,d))&&(p=!1,u=d,c.next(l))}))})}To.distinctUntilChanged=a;function o(n,s){return n===s}return To}var Ao={},CO;function VC(){if(CO)return Ao;CO=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.distinctUntilKeyChanged=void 0;var e=Mg();function t(r,a){return e.distinctUntilChanged(function(o,n){return a?a(o[r],n[r]):o[r]===n[r]})}return Ao.distinctUntilKeyChanged=t,Ao}var Ro={},Mo={},jO;function GC(){if(jO)return Mo;jO=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.ArgumentOutOfRangeError=void 0;var e=hn();return Mo.ArgumentOutOfRangeError=e.createErrorClass(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),Mo}var Io={},qO;function ur(){if(qO)return Io;qO=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.filter=void 0;var e=ce(),t=pe();function r(a,o){return e.operate(function(n,s){var i=0;n.subscribe(t.createOperatorSubscriber(s,function(c){return a.call(o,c,i++)&&s.next(c)}))})}return Io.filter=r,Io}var Co={},jo={},NO;function _n(){if(NO)return jo;NO=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.EmptyError=void 0;var e=hn();return jo.EmptyError=e.createErrorClass(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}),jo}var FO;function Rl(){if(FO)return Co;FO=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.throwIfEmpty=void 0;var e=_n(),t=ce(),r=pe();function a(n){return n===void 0&&(n=o),t.operate(function(s,i){var c=!1;s.subscribe(r.createOperatorSubscriber(i,function(u){c=!0,i.next(u)},function(){return c?i.complete():i.error(n())}))})}Co.throwIfEmpty=a;function o(){return new e.EmptyError}return Co}var DO;function WC(){if(DO)return Ro;DO=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.elementAt=void 0;var e=GC(),t=ur(),r=Rl(),a=Tl(),o=Al();function n(s,i){if(s<0)throw new e.ArgumentOutOfRangeError;var c=arguments.length>=2;return function(u){return u.pipe(t.filter(function(p,l){return l===s}),o.take(1),c?a.defaultIfEmpty(i):r.throwIfEmpty(function(){return new e.ArgumentOutOfRangeError}))}}return Ro.elementAt=n,Ro}var kt={},kO;function ZC(){if(kO)return kt;kO=1;var e=kt&&kt.__read||function(n,s){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var c=i.call(n),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(l)throw l.error}}return p},t=kt&&kt.__spreadArray||function(n,s){for(var i=0,c=s.length,u=n.length;i<c;i++,u++)n[u]=s[i];return n};Object.defineProperty(kt,"__esModule",{value:!0}),kt.endWith=void 0;var r=Ep(),a=Ag();function o(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return function(i){return r.concat(i,a.of.apply(void 0,t([],e(n))))}}return kt.endWith=o,kt}var qo={},LO;function KC(){if(LO)return qo;LO=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.every=void 0;var e=ce(),t=pe();function r(a,o){return e.operate(function(n,s){var i=0;n.subscribe(t.createOperatorSubscriber(s,function(c){a.call(o,c,i++,n)||(s.next(!1),s.complete())},function(){s.next(!0),s.complete()}))})}return qo.every=r,qo}var No={},Fo={},Do={},UO;function Ig(){if(UO)return Do;UO=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.exhaustMap=void 0;var e=cr(),t=we(),r=ce(),a=pe();function o(n,s){return s?function(i){return i.pipe(o(function(c,u){return t.innerFrom(n(c,u)).pipe(e.map(function(p,l){return s(c,p,u,l)}))}))}:r.operate(function(i,c){var u=0,p=null,l=!1;i.subscribe(a.createOperatorSubscriber(c,function(d){p||(p=a.createOperatorSubscriber(c,void 0,function(){p=null,l&&c.complete()}),t.innerFrom(n(d,u++)).subscribe(p))},function(){l=!0,!p&&c.complete()}))})}return Do.exhaustMap=o,Do}var $O;function Cg(){if($O)return Fo;$O=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.exhaustAll=void 0;var e=Ig(),t=rt();function r(){return e.exhaustMap(t.identity)}return Fo.exhaustAll=r,Fo}var zO;function YC(){if(zO)return No;zO=1,Object.defineProperty(No,"__esModule",{value:!0}),No.exhaust=void 0;var e=Cg();return No.exhaust=e.exhaustAll,No}var ko={},BO;function XC(){if(BO)return ko;BO=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.expand=void 0;var e=ce(),t=Eg();function r(a,o,n){return o===void 0&&(o=1/0),o=(o||0)<1?1/0:o,e.operate(function(s,i){return t.mergeInternals(s,i,a,o,void 0,!0,n)})}return ko.expand=r,ko}var Lo={},HO;function QC(){if(HO)return Lo;HO=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.finalize=void 0;var e=ce();function t(r){return e.operate(function(a,o){try{a.subscribe(o)}finally{o.add(r)}})}return Lo.finalize=t,Lo}var Rr={},VO;function jg(){if(VO)return Rr;VO=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.createFind=Rr.find=void 0;var e=ce(),t=pe();function r(o,n){return e.operate(a(o,n,"value"))}Rr.find=r;function a(o,n,s){var i=s==="index";return function(c,u){var p=0;c.subscribe(t.createOperatorSubscriber(u,function(l){var d=p++;o.call(n,l,d,c)&&(u.next(i?d:l),u.complete())},function(){u.next(i?-1:void 0),u.complete()}))}}return Rr.createFind=a,Rr}var Uo={},GO;function JC(){if(GO)return Uo;GO=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.findIndex=void 0;var e=ce(),t=jg();function r(a,o){return e.operate(t.createFind(a,o,"index"))}return Uo.findIndex=r,Uo}var $o={},WO;function ej(){if(WO)return $o;WO=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.first=void 0;var e=_n(),t=ur(),r=Al(),a=Tl(),o=Rl(),n=rt();function s(i,c){var u=arguments.length>=2;return function(p){return p.pipe(i?t.filter(function(l,d){return i(l,d,p)}):n.identity,r.take(1),u?a.defaultIfEmpty(c):o.throwIfEmpty(function(){return new e.EmptyError}))}}return $o.first=s,$o}var zo={},ZO;function tj(){if(ZO)return zo;ZO=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.groupBy=void 0;var e=qe(),t=we(),r=nt(),a=ce(),o=pe();function n(s,i,c,u){return a.operate(function(p,l){var d;!i||typeof i=="function"?d=i:(c=i.duration,d=i.element,u=i.connector);var f=new Map,h=function(y){f.forEach(y),y(l)},m=function(y){return h(function(E){return E.error(y)})},v=0,g=!1,_=new o.OperatorSubscriber(l,function(y){try{var E=s(y),x=f.get(E);if(!x){f.set(E,x=u?u():new r.Subject);var O=b(E,x);if(l.next(O),c){var S=o.createOperatorSubscriber(x,function(){x.complete(),S?.unsubscribe()},void 0,void 0,function(){return f.delete(E)});_.add(t.innerFrom(c(O)).subscribe(S))}}x.next(d?d(y):y)}catch(w){m(w)}},function(){return h(function(y){return y.complete()})},m,function(){return f.clear()},function(){return g=!0,v===0});p.subscribe(_);function b(y,E){var x=new e.Observable(function(O){v++;var S=E.subscribe(O);return function(){S.unsubscribe(),--v===0&&g&&_.unsubscribe()}});return x.key=y,x}})}return zo.groupBy=n,zo}var Bo={},KO;function rj(){if(KO)return Bo;KO=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.isEmpty=void 0;var e=ce(),t=pe();function r(){return e.operate(function(a,o){a.subscribe(t.createOperatorSubscriber(o,function(){o.next(!1),o.complete()},function(){o.next(!0),o.complete()}))})}return Bo.isEmpty=r,Bo}var Ho={},Mr={},YO;function qg(){if(YO)return Mr;YO=1;var e=Mr&&Mr.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&n[s],c=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&c>=n.length&&(n=void 0),{value:n&&n[c++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.takeLast=void 0;var t=Tt(),r=ce(),a=pe();function o(n){return n<=0?function(){return t.EMPTY}:r.operate(function(s,i){var c=[];s.subscribe(a.createOperatorSubscriber(i,function(u){c.push(u),n<c.length&&c.shift()},function(){var u,p;try{for(var l=e(c),d=l.next();!d.done;d=l.next()){var f=d.value;i.next(f)}}catch(h){u={error:h}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(u)throw u.error}}i.complete()},void 0,function(){c=null}))})}return Mr.takeLast=o,Mr}var XO;function nj(){if(XO)return Ho;XO=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.last=void 0;var e=_n(),t=ur(),r=qg(),a=Rl(),o=Tl(),n=rt();function s(i,c){var u=arguments.length>=2;return function(p){return p.pipe(i?t.filter(function(l,d){return i(l,d,p)}):n.identity,r.takeLast(1),u?o.defaultIfEmpty(c):a.throwIfEmpty(function(){return new e.EmptyError}))}}return Ho.last=s,Ho}var Vo={},QO;function ij(){if(QO)return Vo;QO=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.materialize=void 0;var e=Rg(),t=ce(),r=pe();function a(){return t.operate(function(o,n){o.subscribe(r.createOperatorSubscriber(n,function(s){n.next(e.Notification.createNext(s))},function(){n.next(e.Notification.createComplete()),n.complete()},function(s){n.next(e.Notification.createError(s)),n.complete()}))})}return Vo.materialize=a,Vo}var Go={},JO;function aj(){if(JO)return Go;JO=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.max=void 0;var e=li(),t=Ce();function r(a){return e.reduce(t.isFunction(a)?function(o,n){return a(o,n)>0?o:n}:function(o,n){return o>n?o:n})}return Go.max=r,Go}var Lt={},ew;function oj(){if(ew)return Lt;ew=1;var e=Lt&&Lt.__read||function(i,c){var u=typeof Symbol=="function"&&i[Symbol.iterator];if(!u)return i;var p=u.call(i),l,d=[],f;try{for(;(c===void 0||c-- >0)&&!(l=p.next()).done;)d.push(l.value)}catch(h){f={error:h}}finally{try{l&&!l.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return d},t=Lt&&Lt.__spreadArray||function(i,c){for(var u=0,p=c.length,l=i.length;u<p;u++,l++)i[l]=c[u];return i};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.merge=void 0;var r=ce(),a=Pl(),o=ft(),n=sr();function s(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=o.popScheduler(i),p=o.popNumber(i,1/0);return r.operate(function(l,d){a.mergeAll(p)(n.from(t([l],e(i)),u)).subscribe(d)})}return Lt.merge=s,Lt}var Wo={},tw;function sj(){if(tw)return Wo;tw=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.flatMap=void 0;var e=Qt();return Wo.flatMap=e.mergeMap,Wo}var Zo={},rw;function cj(){if(rw)return Zo;rw=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.mergeMapTo=void 0;var e=Qt(),t=Ce();function r(a,o,n){return n===void 0&&(n=1/0),t.isFunction(o)?e.mergeMap(function(){return a},o,n):(typeof o=="number"&&(n=o),e.mergeMap(function(){return a},n))}return Zo.mergeMapTo=r,Zo}var Ko={},nw;function uj(){if(nw)return Ko;nw=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.mergeScan=void 0;var e=ce(),t=Eg();function r(a,o,n){return n===void 0&&(n=1/0),e.operate(function(s,i){var c=o;return t.mergeInternals(s,i,function(u,p){return a(c,u,p)},n,function(u){c=u},!1,void 0,function(){return c=null})})}return Ko.mergeScan=r,Ko}var Ut={},iw;function lj(){if(iw)return Ut;iw=1;var e=Ut&&Ut.__read||function(o,n){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var i=s.call(o),c,u=[],p;try{for(;(n===void 0||n-- >0)&&!(c=i.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(p)throw p.error}}return u},t=Ut&&Ut.__spreadArray||function(o,n){for(var s=0,i=n.length,c=o.length;s<i;s++,c++)o[c]=n[s];return o};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.mergeWith=void 0;var r=oj();function a(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.merge.apply(void 0,t([],e(o)))}return Ut.mergeWith=a,Ut}var Yo={},aw;function dj(){if(aw)return Yo;aw=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.min=void 0;var e=li(),t=Ce();function r(a){return e.reduce(t.isFunction(a)?function(o,n){return a(o,n)<0?o:n}:function(o,n){return o<n?o:n})}return Yo.min=r,Yo}var Xo={},Ir={},Qo={},ow;function Ng(){if(ow)return Qo;ow=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.refCount=void 0;var e=ce(),t=pe();function r(){return e.operate(function(a,o){var n=null;a._refCount++;var s=t.createOperatorSubscriber(o,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount){n=null;return}var i=a._connection,c=n;n=null,i&&(!c||i===c)&&i.unsubscribe(),o.unsubscribe()});a.subscribe(s),s.closed||(n=a.connect())})}return Qo.refCount=r,Qo}var sw;function xp(){if(sw)return Ir;sw=1;var e=Ir&&Ir.__extends||(function(){var i=function(c,u){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(p[d]=l[d])},i(c,u)};return function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");i(c,u);function p(){this.constructor=c}c.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}})();Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.ConnectableObservable=void 0;var t=qe(),r=mt(),a=Ng(),o=pe(),n=ce(),s=(function(i){e(c,i);function c(u,p){var l=i.call(this)||this;return l.source=u,l.subjectFactory=p,l._subject=null,l._refCount=0,l._connection=null,n.hasLift(u)&&(l.lift=u.lift),l}return c.prototype._subscribe=function(u){return this.getSubject().subscribe(u)},c.prototype.getSubject=function(){var u=this._subject;return(!u||u.isStopped)&&(this._subject=this.subjectFactory()),this._subject},c.prototype._teardown=function(){this._refCount=0;var u=this._connection;this._subject=this._connection=null,u?.unsubscribe()},c.prototype.connect=function(){var u=this,p=this._connection;if(!p){p=this._connection=new r.Subscription;var l=this.getSubject();p.add(this.source.subscribe(o.createOperatorSubscriber(l,void 0,function(){u._teardown(),l.complete()},function(d){u._teardown(),l.error(d)},function(){return u._teardown()}))),p.closed&&(this._connection=null,p=r.Subscription.EMPTY)}return p},c.prototype.refCount=function(){return a.refCount()(this)},c})(t.Observable);return Ir.ConnectableObservable=s,Ir}var cw;function Op(){if(cw)return Xo;cw=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.multicast=void 0;var e=xp(),t=Ce(),r=yp();function a(o,n){var s=t.isFunction(o)?o:function(){return o};return t.isFunction(n)?r.connect(n,{connector:s}):function(i){return new e.ConnectableObservable(i,s)}}return Xo.multicast=a,Xo}var xt={},Jo={},uw;function pj(){if(uw)return Jo;uw=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.onErrorResumeNext=void 0;var e=qe(),t=di(),r=pe(),a=tt(),o=we();function n(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];var c=t.argsOrArgArray(s);return new e.Observable(function(u){var p=0,l=function(){if(p<c.length){var d=void 0;try{d=o.innerFrom(c[p++])}catch{l();return}var f=new r.OperatorSubscriber(u,void 0,a.noop,a.noop);d.subscribe(f),f.add(l)}else u.complete()};l()})}return Jo.onErrorResumeNext=n,Jo}var lw;function fj(){if(lw)return xt;lw=1;var e=xt&&xt.__read||function(n,s){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var c=i.call(n),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(l)throw l.error}}return p},t=xt&&xt.__spreadArray||function(n,s){for(var i=0,c=s.length,u=n.length;i<c;i++,u++)n[u]=s[i];return n};Object.defineProperty(xt,"__esModule",{value:!0}),xt.onErrorResumeNext=xt.onErrorResumeNextWith=void 0;var r=di(),a=pj();function o(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var i=r.argsOrArgArray(n);return function(c){return a.onErrorResumeNext.apply(void 0,t([c],e(i)))}}return xt.onErrorResumeNextWith=o,xt.onErrorResumeNext=o,xt}var es={},dw;function hj(){if(dw)return es;dw=1,Object.defineProperty(es,"__esModule",{value:!0}),es.pairwise=void 0;var e=ce(),t=pe();function r(){return e.operate(function(a,o){var n,s=!1;a.subscribe(t.createOperatorSubscriber(o,function(i){var c=n;n=i,s&&o.next([c,i]),s=!0}))})}return es.pairwise=r,es}var ts={},rs={},pw;function vj(){if(pw)return rs;pw=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.not=void 0;function e(t,r){return function(a,o){return!t.call(r,a,o)}}return rs.not=e,rs}var fw;function YL(){if(fw)return ts;fw=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.partition=void 0;var e=vj(),t=ur();function r(a,o){return function(n){return[t.filter(a,o)(n),t.filter(e.not(a,o))(n)]}}return ts.partition=r,ts}var ns={},hw;function mj(){if(hw)return ns;hw=1,Object.defineProperty(ns,"__esModule",{value:!0}),ns.pluck=void 0;var e=cr();function t(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=r.length;if(o===0)throw new Error("list of properties cannot be empty.");return e.map(function(n){for(var s=n,i=0;i<o;i++){var c=s?.[r[i]];if(typeof c<"u")s=c;else return}return s})}return ns.pluck=t,ns}var is={},vw;function _j(){if(vw)return is;vw=1,Object.defineProperty(is,"__esModule",{value:!0}),is.publish=void 0;var e=nt(),t=Op(),r=yp();function a(o){return o?function(n){return r.connect(o)(n)}:function(n){return t.multicast(new e.Subject)(n)}}return is.publish=a,is}var as={},Cr={},mw;function gj(){if(mw)return Cr;mw=1;var e=Cr&&Cr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.BehaviorSubject=void 0;var t=nt(),r=(function(a){e(o,a);function o(n){var s=a.call(this)||this;return s._value=n,s}return Object.defineProperty(o.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),o.prototype._subscribe=function(n){var s=a.prototype._subscribe.call(this,n);return!s.closed&&n.next(this._value),s},o.prototype.getValue=function(){var n=this,s=n.hasError,i=n.thrownError,c=n._value;if(s)throw i;return this._throwIfClosed(),c},o.prototype.next=function(n){a.prototype.next.call(this,this._value=n)},o})(t.Subject);return Cr.BehaviorSubject=r,Cr}var _w;function bj(){if(_w)return as;_w=1,Object.defineProperty(as,"__esModule",{value:!0}),as.publishBehavior=void 0;var e=gj(),t=xp();function r(a){return function(o){var n=new e.BehaviorSubject(a);return new t.ConnectableObservable(o,function(){return n})}}return as.publishBehavior=r,as}var os={},jr={},gw;function Fg(){if(gw)return jr;gw=1;var e=jr&&jr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(jr,"__esModule",{value:!0}),jr.AsyncSubject=void 0;var t=nt(),r=(function(a){e(o,a);function o(){var n=a!==null&&a.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}return o.prototype._checkFinalizedStatuses=function(n){var s=this,i=s.hasError,c=s._hasValue,u=s._value,p=s.thrownError,l=s.isStopped,d=s._isComplete;i?n.error(p):(l||d)&&(c&&n.next(u),n.complete())},o.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},o.prototype.complete=function(){var n=this,s=n._hasValue,i=n._value,c=n._isComplete;c||(this._isComplete=!0,s&&a.prototype.next.call(this,i),a.prototype.complete.call(this))},o})(t.Subject);return jr.AsyncSubject=r,jr}var bw;function yj(){if(bw)return os;bw=1,Object.defineProperty(os,"__esModule",{value:!0}),os.publishLast=void 0;var e=Fg(),t=xp();function r(){return function(a){var o=new e.AsyncSubject;return new t.ConnectableObservable(a,function(){return o})}}return os.publishLast=r,os}var ss={},qr={},yw;function Dg(){if(yw)return qr;yw=1;var e=qr&&qr.__extends||(function(){var o=function(n,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(i[u]=c[u])},o(n,s)};return function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(n,s);function i(){this.constructor=n}n.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})();Object.defineProperty(qr,"__esModule",{value:!0}),qr.ReplaySubject=void 0;var t=nt(),r=gg(),a=(function(o){e(n,o);function n(s,i,c){s===void 0&&(s=1/0),i===void 0&&(i=1/0),c===void 0&&(c=r.dateTimestampProvider);var u=o.call(this)||this;return u._bufferSize=s,u._windowTime=i,u._timestampProvider=c,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=i===1/0,u._bufferSize=Math.max(1,s),u._windowTime=Math.max(1,i),u}return n.prototype.next=function(s){var i=this,c=i.isStopped,u=i._buffer,p=i._infiniteTimeWindow,l=i._timestampProvider,d=i._windowTime;c||(u.push(s),!p&&u.push(l.now()+d)),this._trimBuffer(),o.prototype.next.call(this,s)},n.prototype._subscribe=function(s){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(s),c=this,u=c._infiniteTimeWindow,p=c._buffer,l=p.slice(),d=0;d<l.length&&!s.closed;d+=u?1:2)s.next(l[d]);return this._checkFinalizedStatuses(s),i},n.prototype._trimBuffer=function(){var s=this,i=s._bufferSize,c=s._timestampProvider,u=s._buffer,p=s._infiniteTimeWindow,l=(p?1:2)*i;if(i<1/0&&l<u.length&&u.splice(0,u.length-l),!p){for(var d=c.now(),f=0,h=1;h<u.length&&u[h]<=d;h+=2)f=h;f&&u.splice(0,f+1)}},n})(t.Subject);return qr.ReplaySubject=a,qr}var Ew;function Ej(){if(Ew)return ss;Ew=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.publishReplay=void 0;var e=Dg(),t=Op(),r=Ce();function a(o,n,s,i){s&&!r.isFunction(s)&&(i=s);var c=r.isFunction(s)?s:void 0;return function(u){return t.multicast(new e.ReplaySubject(o,n,i),c)(u)}}return ss.publishReplay=a,ss}var $t={},zt={},Nr={},xw;function xj(){if(xw)return Nr;xw=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.raceInit=Nr.race=void 0;var e=qe(),t=we(),r=di(),a=pe();function o(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];return s=r.argsOrArgArray(s),s.length===1?t.innerFrom(s[0]):new e.Observable(n(s))}Nr.race=o;function n(s){return function(i){for(var c=[],u=function(l){c.push(t.innerFrom(s[l]).subscribe(a.createOperatorSubscriber(i,function(d){if(c){for(var f=0;f<c.length;f++)f!==l&&c[f].unsubscribe();c=null}i.next(d)})))},p=0;c&&!i.closed&&p<s.length;p++)u(p)}}return Nr.raceInit=n,Nr}var Ow;function kg(){if(Ow)return zt;Ow=1;var e=zt&&zt.__read||function(s,i){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(i===void 0||i-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},t=zt&&zt.__spreadArray||function(s,i){for(var c=0,u=i.length,p=s.length;c<u;c++,p++)s[p]=i[c];return s};Object.defineProperty(zt,"__esModule",{value:!0}),zt.raceWith=void 0;var r=xj(),a=ce(),o=rt();function n(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];return s.length?a.operate(function(c,u){r.raceInit(t([c],e(s)))(u)}):o.identity}return zt.raceWith=n,zt}var ww;function XL(){if(ww)return $t;ww=1;var e=$t&&$t.__read||function(n,s){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var c=i.call(n),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(l)throw l.error}}return p},t=$t&&$t.__spreadArray||function(n,s){for(var i=0,c=s.length,u=n.length;i<c;i++,u++)n[u]=s[i];return n};Object.defineProperty($t,"__esModule",{value:!0}),$t.race=void 0;var r=di(),a=kg();function o(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return a.raceWith.apply(void 0,t([],e(r.argsOrArgArray(n))))}return $t.race=o,$t}var cs={},Sw;function Oj(){if(Sw)return cs;Sw=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.repeat=void 0;var e=Tt(),t=ce(),r=pe(),a=we(),o=vn();function n(s){var i,c=1/0,u;return s!=null&&(typeof s=="object"?(i=s.count,c=i===void 0?1/0:i,u=s.delay):c=s),c<=0?function(){return e.EMPTY}:t.operate(function(p,l){var d=0,f,h=function(){if(f?.unsubscribe(),f=null,u!=null){var v=typeof u=="number"?o.timer(u):a.innerFrom(u(d)),g=r.createOperatorSubscriber(l,function(){g.unsubscribe(),m()});v.subscribe(g)}else m()},m=function(){var v=!1;f=p.subscribe(r.createOperatorSubscriber(l,void 0,function(){++d<c?f?h():v=!0:l.complete()})),v&&h()};m()})}return cs.repeat=n,cs}var us={},Pw;function wj(){if(Pw)return us;Pw=1,Object.defineProperty(us,"__esModule",{value:!0}),us.repeatWhen=void 0;var e=we(),t=nt(),r=ce(),a=pe();function o(n){return r.operate(function(s,i){var c,u=!1,p,l=!1,d=!1,f=function(){return d&&l&&(i.complete(),!0)},h=function(){return p||(p=new t.Subject,e.innerFrom(n(p)).subscribe(a.createOperatorSubscriber(i,function(){c?m():u=!0},function(){l=!0,f()}))),p},m=function(){d=!1,c=s.subscribe(a.createOperatorSubscriber(i,void 0,function(){d=!0,!f()&&h().next()})),u&&(c.unsubscribe(),c=null,u=!1,m())};m()})}return us.repeatWhen=o,us}var ls={},Tw;function Sj(){if(Tw)return ls;Tw=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.retry=void 0;var e=ce(),t=pe(),r=rt(),a=vn(),o=we();function n(s){s===void 0&&(s=1/0);var i;s&&typeof s=="object"?i=s:i={count:s};var c=i.count,u=c===void 0?1/0:c,p=i.delay,l=i.resetOnSuccess,d=l===void 0?!1:l;return u<=0?r.identity:e.operate(function(f,h){var m=0,v,g=function(){var _=!1;v=f.subscribe(t.createOperatorSubscriber(h,function(b){d&&(m=0),h.next(b)},void 0,function(b){if(m++<u){var y=function(){v?(v.unsubscribe(),v=null,g()):_=!0};if(p!=null){var E=typeof p=="number"?a.timer(p):o.innerFrom(p(b,m)),x=t.createOperatorSubscriber(h,function(){x.unsubscribe(),y()},function(){h.complete()});E.subscribe(x)}else y()}else h.error(b)})),_&&(v.unsubscribe(),v=null,g())};g()})}return ls.retry=n,ls}var ds={},Aw;function Pj(){if(Aw)return ds;Aw=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.retryWhen=void 0;var e=we(),t=nt(),r=ce(),a=pe();function o(n){return r.operate(function(s,i){var c,u=!1,p,l=function(){c=s.subscribe(a.createOperatorSubscriber(i,void 0,void 0,function(d){p||(p=new t.Subject,e.innerFrom(n(p)).subscribe(a.createOperatorSubscriber(i,function(){return c?l():u=!0}))),p&&p.next(d)})),u&&(c.unsubscribe(),c=null,u=!1,l())};l()})}return ds.retryWhen=o,ds}var ps={},Rw;function Lg(){if(Rw)return ps;Rw=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.sample=void 0;var e=we(),t=ce(),r=tt(),a=pe();function o(n){return t.operate(function(s,i){var c=!1,u=null;s.subscribe(a.createOperatorSubscriber(i,function(p){c=!0,u=p})),e.innerFrom(n).subscribe(a.createOperatorSubscriber(i,function(){if(c){c=!1;var p=u;u=null,i.next(p)}},r.noop))})}return ps.sample=o,ps}var fs={},hs={},Mw;function Tj(){if(Mw)return hs;Mw=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.interval=void 0;var e=pt(),t=vn();function r(a,o){return a===void 0&&(a=0),o===void 0&&(o=e.asyncScheduler),a<0&&(a=0),t.timer(a,a,o)}return hs.interval=r,hs}var Iw;function Aj(){if(Iw)return fs;Iw=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.sampleTime=void 0;var e=pt(),t=Lg(),r=Tj();function a(o,n){return n===void 0&&(n=e.asyncScheduler),t.sample(r.interval(o,n))}return fs.sampleTime=a,fs}var vs={},Cw;function Rj(){if(Cw)return vs;Cw=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.scan=void 0;var e=ce(),t=RC();function r(a,o){return e.operate(t.scanInternals(a,o,arguments.length>=2,!0))}return vs.scan=r,vs}var ms={},jw;function Mj(){if(jw)return ms;jw=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.sequenceEqual=void 0;var e=ce(),t=pe(),r=we();function a(n,s){return s===void 0&&(s=function(i,c){return i===c}),e.operate(function(i,c){var u=o(),p=o(),l=function(f){c.next(f),c.complete()},d=function(f,h){var m=t.createOperatorSubscriber(c,function(v){var g=h.buffer,_=h.complete;g.length===0?_?l(!1):f.buffer.push(v):!s(v,g.shift())&&l(!1)},function(){f.complete=!0;var v=h.complete,g=h.buffer;v&&l(g.length===0),m?.unsubscribe()});return m};i.subscribe(d(u,p)),r.innerFrom(n).subscribe(d(p,u))})}ms.sequenceEqual=a;function o(){return{buffer:[],complete:!1}}return ms}var Bt={},qw;function Ug(){if(qw)return Bt;qw=1;var e=Bt&&Bt.__read||function(c,u){var p=typeof Symbol=="function"&&c[Symbol.iterator];if(!p)return c;var l=p.call(c),d,f=[],h;try{for(;(u===void 0||u-- >0)&&!(d=l.next()).done;)f.push(d.value)}catch(m){h={error:m}}finally{try{d&&!d.done&&(p=l.return)&&p.call(l)}finally{if(h)throw h.error}}return f},t=Bt&&Bt.__spreadArray||function(c,u){for(var p=0,l=u.length,d=c.length;p<l;p++,d++)c[d]=u[p];return c};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.share=void 0;var r=we(),a=nt(),o=El(),n=ce();function s(c){c===void 0&&(c={});var u=c.connector,p=u===void 0?function(){return new a.Subject}:u,l=c.resetOnError,d=l===void 0?!0:l,f=c.resetOnComplete,h=f===void 0?!0:f,m=c.resetOnRefCountZero,v=m===void 0?!0:m;return function(g){var _,b,y,E=0,x=!1,O=!1,S=function(){b?.unsubscribe(),b=void 0},w=function(){S(),_=y=void 0,x=O=!1},T=function(){var A=_;w(),A?.unsubscribe()};return n.operate(function(A,P){E++,!O&&!x&&S();var C=y=y??p();P.add(function(){E--,E===0&&!O&&!x&&(b=i(T,v))}),C.subscribe(P),!_&&E>0&&(_=new o.SafeSubscriber({next:function(D){return C.next(D)},error:function(D){O=!0,S(),b=i(w,d,D),C.error(D)},complete:function(){x=!0,S(),b=i(w,h),C.complete()}}),r.innerFrom(A).subscribe(_))})(g)}}Bt.share=s;function i(c,u){for(var p=[],l=2;l<arguments.length;l++)p[l-2]=arguments[l];if(u===!0){c();return}if(u!==!1){var d=new o.SafeSubscriber({next:function(){d.unsubscribe(),c()}});return r.innerFrom(u.apply(void 0,t([],e(p)))).subscribe(d)}}return Bt}var _s={},Nw;function Ij(){if(Nw)return _s;Nw=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.shareReplay=void 0;var e=Dg(),t=Ug();function r(a,o,n){var s,i,c,u,p=!1;return a&&typeof a=="object"?(s=a.bufferSize,u=s===void 0?1/0:s,i=a.windowTime,o=i===void 0?1/0:i,c=a.refCount,p=c===void 0?!1:c,n=a.scheduler):u=a??1/0,t.share({connector:function(){return new e.ReplaySubject(u,o,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:p})}return _s.shareReplay=r,_s}var gs={},bs={},Fw;function Cj(){if(Fw)return bs;Fw=1,Object.defineProperty(bs,"__esModule",{value:!0}),bs.SequenceError=void 0;var e=hn();return bs.SequenceError=e.createErrorClass(function(t){return function(a){t(this),this.name="SequenceError",this.message=a}}),bs}var ys={},Dw;function jj(){if(Dw)return ys;Dw=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.NotFoundError=void 0;var e=hn();return ys.NotFoundError=e.createErrorClass(function(t){return function(a){t(this),this.name="NotFoundError",this.message=a}}),ys}var kw;function qj(){if(kw)return gs;kw=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.single=void 0;var e=_n(),t=Cj(),r=jj(),a=ce(),o=pe();function n(s){return a.operate(function(i,c){var u=!1,p,l=!1,d=0;i.subscribe(o.createOperatorSubscriber(c,function(f){l=!0,(!s||s(f,d++,i))&&(u&&c.error(new t.SequenceError("Too many matching values")),u=!0,p=f)},function(){u?(c.next(p),c.complete()):c.error(l?new r.NotFoundError("No matching values"):new e.EmptyError)}))})}return gs.single=n,gs}var Es={},Lw;function Nj(){if(Lw)return Es;Lw=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.skip=void 0;var e=ur();function t(r){return e.filter(function(a,o){return r<=o})}return Es.skip=t,Es}var xs={},Uw;function Fj(){if(Uw)return xs;Uw=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.skipLast=void 0;var e=rt(),t=ce(),r=pe();function a(o){return o<=0?e.identity:t.operate(function(n,s){var i=new Array(o),c=0;return n.subscribe(r.createOperatorSubscriber(s,function(u){var p=c++;if(p<o)i[p]=u;else{var l=p%o,d=i[l];i[l]=u,s.next(d)}})),function(){i=null}})}return xs.skipLast=a,xs}var Os={},$w;function Dj(){if($w)return Os;$w=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.skipUntil=void 0;var e=ce(),t=pe(),r=we(),a=tt();function o(n){return e.operate(function(s,i){var c=!1,u=t.createOperatorSubscriber(i,function(){u?.unsubscribe(),c=!0},a.noop);r.innerFrom(n).subscribe(u),s.subscribe(t.createOperatorSubscriber(i,function(p){return c&&i.next(p)}))})}return Os.skipUntil=o,Os}var ws={},zw;function kj(){if(zw)return ws;zw=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.skipWhile=void 0;var e=ce(),t=pe();function r(a){return e.operate(function(o,n){var s=!1,i=0;o.subscribe(t.createOperatorSubscriber(n,function(c){return(s||(s=!a(c,i++)))&&n.next(c)}))})}return ws.skipWhile=r,ws}var Ss={},Bw;function Lj(){if(Bw)return Ss;Bw=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.startWith=void 0;var e=Ep(),t=ft(),r=ce();function a(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var s=t.popScheduler(o);return r.operate(function(i,c){(s?e.concat(o,i,s):e.concat(o,i)).subscribe(c)})}return Ss.startWith=a,Ss}var Ps={},Ts={},Hw;function Ml(){if(Hw)return Ts;Hw=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.switchMap=void 0;var e=we(),t=ce(),r=pe();function a(o,n){return t.operate(function(s,i){var c=null,u=0,p=!1,l=function(){return p&&!c&&i.complete()};s.subscribe(r.createOperatorSubscriber(i,function(d){c?.unsubscribe();var f=0,h=u++;e.innerFrom(o(d,h)).subscribe(c=r.createOperatorSubscriber(i,function(m){return i.next(n?n(d,m,h,f++):m)},function(){c=null,l()}))},function(){p=!0,l()}))})}return Ts.switchMap=a,Ts}var Vw;function Uj(){if(Vw)return Ps;Vw=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.switchAll=void 0;var e=Ml(),t=rt();function r(){return e.switchMap(t.identity)}return Ps.switchAll=r,Ps}var As={},Gw;function $j(){if(Gw)return As;Gw=1,Object.defineProperty(As,"__esModule",{value:!0}),As.switchMapTo=void 0;var e=Ml(),t=Ce();function r(a,o){return t.isFunction(o)?e.switchMap(function(){return a},o):e.switchMap(function(){return a})}return As.switchMapTo=r,As}var Rs={},Ww;function zj(){if(Ww)return Rs;Ww=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.switchScan=void 0;var e=Ml(),t=ce();function r(a,o){return t.operate(function(n,s){var i=o;return e.switchMap(function(c,u){return a(i,c,u)},function(c,u){return i=u,u})(n).subscribe(s),function(){i=null}})}return Rs.switchScan=r,Rs}var Ms={},Zw;function Bj(){if(Zw)return Ms;Zw=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.takeUntil=void 0;var e=ce(),t=pe(),r=we(),a=tt();function o(n){return e.operate(function(s,i){r.innerFrom(n).subscribe(t.createOperatorSubscriber(i,function(){return i.complete()},a.noop)),!i.closed&&s.subscribe(i)})}return Ms.takeUntil=o,Ms}var Is={},Kw;function Hj(){if(Kw)return Is;Kw=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.takeWhile=void 0;var e=ce(),t=pe();function r(a,o){return o===void 0&&(o=!1),e.operate(function(n,s){var i=0;n.subscribe(t.createOperatorSubscriber(s,function(c){var u=a(c,i++);(u||o)&&s.next(c),!u&&s.complete()}))})}return Is.takeWhile=r,Is}var Cs={},Yw;function Vj(){if(Yw)return Cs;Yw=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.tap=void 0;var e=Ce(),t=ce(),r=pe(),a=rt();function o(n,s,i){var c=e.isFunction(n)||s||i?{next:n,error:s,complete:i}:n;return c?t.operate(function(u,p){var l;(l=c.subscribe)===null||l===void 0||l.call(c);var d=!0;u.subscribe(r.createOperatorSubscriber(p,function(f){var h;(h=c.next)===null||h===void 0||h.call(c,f),p.next(f)},function(){var f;d=!1,(f=c.complete)===null||f===void 0||f.call(c),p.complete()},function(f){var h;d=!1,(h=c.error)===null||h===void 0||h.call(c,f),p.error(f)},function(){var f,h;d&&((f=c.unsubscribe)===null||f===void 0||f.call(c)),(h=c.finalize)===null||h===void 0||h.call(c)}))}):a.identity}return Cs.tap=o,Cs}var js={},Xw;function $g(){if(Xw)return js;Xw=1,Object.defineProperty(js,"__esModule",{value:!0}),js.throttle=void 0;var e=ce(),t=pe(),r=we();function a(o,n){return e.operate(function(s,i){var c=n??{},u=c.leading,p=u===void 0?!0:u,l=c.trailing,d=l===void 0?!1:l,f=!1,h=null,m=null,v=!1,g=function(){m?.unsubscribe(),m=null,d&&(y(),v&&i.complete())},_=function(){m=null,v&&i.complete()},b=function(E){return m=r.innerFrom(o(E)).subscribe(t.createOperatorSubscriber(i,g,_))},y=function(){if(f){f=!1;var E=h;h=null,i.next(E),!v&&b(E)}};s.subscribe(t.createOperatorSubscriber(i,function(E){f=!0,h=E,!(m&&!m.closed)&&(p?y():b(E))},function(){v=!0,!(d&&f&&m&&!m.closed)&&i.complete()}))})}return js.throttle=a,js}var qs={},Qw;function Gj(){if(Qw)return qs;Qw=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.throttleTime=void 0;var e=pt(),t=$g(),r=vn();function a(o,n,s){n===void 0&&(n=e.asyncScheduler);var i=r.timer(o,n);return t.throttle(function(){return i},s)}return qs.throttleTime=a,qs}var Fr={},Jw;function Wj(){if(Jw)return Fr;Jw=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.TimeInterval=Fr.timeInterval=void 0;var e=pt(),t=ce(),r=pe();function a(n){return n===void 0&&(n=e.asyncScheduler),t.operate(function(s,i){var c=n.now();s.subscribe(r.createOperatorSubscriber(i,function(u){var p=n.now(),l=p-c;c=p,i.next(new o(u,l))}))})}Fr.timeInterval=a;var o=(function(){function n(s,i){this.value=s,this.interval=i}return n})();return Fr.TimeInterval=o,Fr}var Wh={},e0;function rp(){return e0||(e0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var t=pt(),r=bg(),a=ce(),o=we(),n=hn(),s=pe(),i=or();e.TimeoutError=n.createErrorClass(function(p){return function(d){d===void 0&&(d=null),p(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=d}});function c(p,l){var d=r.isValidDate(p)?{first:p}:typeof p=="number"?{each:p}:p,f=d.first,h=d.each,m=d.with,v=m===void 0?u:m,g=d.scheduler,_=g===void 0?l??t.asyncScheduler:g,b=d.meta,y=b===void 0?null:b;if(f==null&&h==null)throw new TypeError("No timeout provided.");return a.operate(function(E,x){var O,S,w=null,T=0,A=function(P){S=i.executeSchedule(x,_,function(){try{O.unsubscribe(),o.innerFrom(v({meta:y,lastValue:w,seen:T})).subscribe(x)}catch(C){x.error(C)}},P)};O=E.subscribe(s.createOperatorSubscriber(x,function(P){S?.unsubscribe(),T++,x.next(w=P),h>0&&A(h)},void 0,void 0,function(){S?.closed||S?.unsubscribe(),w=null})),!T&&A(f!=null?typeof f=="number"?f:+f-_.now():h)})}e.timeout=c;function u(p){throw new e.TimeoutError(p)}})(Wh)),Wh}var Ns={},t0;function Zj(){if(t0)return Ns;t0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.timeoutWith=void 0;var e=pt(),t=bg(),r=rp();function a(o,n,s){var i,c,u;if(s=s??e.async,t.isValidDate(o)?i=o:typeof o=="number"&&(c=o),n)u=function(){return n};else throw new TypeError("No observable provided to switch to");if(i==null&&c==null)throw new TypeError("No timeout provided.");return r.timeout({first:i,each:c,scheduler:s,with:u})}return Ns.timeoutWith=a,Ns}var Fs={},r0;function Kj(){if(r0)return Fs;r0=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.timestamp=void 0;var e=gg(),t=cr();function r(a){return a===void 0&&(a=e.dateTimestampProvider),t.map(function(o){return{value:o,timestamp:a.now()}})}return Fs.timestamp=r,Fs}var Ds={},n0;function Yj(){if(n0)return Ds;n0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.window=void 0;var e=nt(),t=ce(),r=pe(),a=tt(),o=we();function n(s){return t.operate(function(i,c){var u=new e.Subject;c.next(u.asObservable());var p=function(l){u.error(l),c.error(l)};return i.subscribe(r.createOperatorSubscriber(c,function(l){return u?.next(l)},function(){u.complete(),c.complete()},p)),o.innerFrom(s).subscribe(r.createOperatorSubscriber(c,function(){u.complete(),c.next(u=new e.Subject)},a.noop,p)),function(){u?.unsubscribe(),u=null}})}return Ds.window=n,Ds}var Dr={},i0;function Xj(){if(i0)return Dr;i0=1;var e=Dr&&Dr.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&n[s],c=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&c>=n.length&&(n=void 0),{value:n&&n[c++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.windowCount=void 0;var t=nt(),r=ce(),a=pe();function o(n,s){s===void 0&&(s=0);var i=s>0?s:n;return r.operate(function(c,u){var p=[new t.Subject],l=0;u.next(p[0].asObservable()),c.subscribe(a.createOperatorSubscriber(u,function(d){var f,h;try{for(var m=e(p),v=m.next();!v.done;v=m.next()){var g=v.value;g.next(d)}}catch(y){f={error:y}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(f)throw f.error}}var _=l-n+1;if(_>=0&&_%i===0&&p.shift().complete(),++l%i===0){var b=new t.Subject;p.push(b),u.next(b.asObservable())}},function(){for(;p.length>0;)p.shift().complete();u.complete()},function(d){for(;p.length>0;)p.shift().error(d);u.error(d)},function(){p=null}))})}return Dr.windowCount=o,Dr}var ks={},a0;function Qj(){if(a0)return ks;a0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.windowTime=void 0;var e=nt(),t=pt(),r=mt(),a=ce(),o=pe(),n=ar(),s=ft(),i=or();function c(u){for(var p,l,d=[],f=1;f<arguments.length;f++)d[f-1]=arguments[f];var h=(p=s.popScheduler(d))!==null&&p!==void 0?p:t.asyncScheduler,m=(l=d[0])!==null&&l!==void 0?l:null,v=d[1]||1/0;return a.operate(function(g,_){var b=[],y=!1,E=function(w){var T=w.window,A=w.subs;T.complete(),A.unsubscribe(),n.arrRemove(b,w),y&&x()},x=function(){if(b){var w=new r.Subscription;_.add(w);var T=new e.Subject,A={window:T,subs:w,seen:0};b.push(A),_.next(T.asObservable()),i.executeSchedule(w,h,function(){return E(A)},u)}};m!==null&&m>=0?i.executeSchedule(_,h,x,m,!0):y=!0,x();var O=function(w){return b.slice().forEach(w)},S=function(w){O(function(T){var A=T.window;return w(A)}),w(_),_.unsubscribe()};return g.subscribe(o.createOperatorSubscriber(_,function(w){O(function(T){T.window.next(w),v<=++T.seen&&E(T)})},function(){return S(function(w){return w.complete()})},function(w){return S(function(T){return T.error(w)})})),function(){b=null}})}return ks.windowTime=c,ks}var kr={},o0;function Jj(){if(o0)return kr;o0=1;var e=kr&&kr.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,l=p&&u[p],d=0;if(l)return l.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&d>=u.length&&(u=void 0),{value:u&&u[d++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(kr,"__esModule",{value:!0}),kr.windowToggle=void 0;var t=nt(),r=mt(),a=ce(),o=we(),n=pe(),s=tt(),i=ar();function c(u,p){return a.operate(function(l,d){var f=[],h=function(m){for(;0<f.length;)f.shift().error(m);d.error(m)};o.innerFrom(u).subscribe(n.createOperatorSubscriber(d,function(m){var v=new t.Subject;f.push(v);var g=new r.Subscription,_=function(){i.arrRemove(f,v),v.complete(),g.unsubscribe()},b;try{b=o.innerFrom(p(m))}catch(y){h(y);return}d.next(v.asObservable()),g.add(b.subscribe(n.createOperatorSubscriber(d,_,s.noop,h)))},s.noop)),l.subscribe(n.createOperatorSubscriber(d,function(m){var v,g,_=f.slice();try{for(var b=e(_),y=b.next();!y.done;y=b.next()){var E=y.value;E.next(m)}}catch(x){v={error:x}}finally{try{y&&!y.done&&(g=b.return)&&g.call(b)}finally{if(v)throw v.error}}},function(){for(;0<f.length;)f.shift().complete();d.complete()},h,function(){for(;0<f.length;)f.shift().unsubscribe()}))})}return kr.windowToggle=c,kr}var Ls={},s0;function eq(){if(s0)return Ls;s0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.windowWhen=void 0;var e=nt(),t=ce(),r=pe(),a=we();function o(n){return t.operate(function(s,i){var c,u,p=function(d){c.error(d),i.error(d)},l=function(){u?.unsubscribe(),c?.complete(),c=new e.Subject,i.next(c.asObservable());var d;try{d=a.innerFrom(n())}catch(f){p(f);return}d.subscribe(u=r.createOperatorSubscriber(i,l,l,p))};l(),s.subscribe(r.createOperatorSubscriber(i,function(d){return c.next(d)},function(){c.complete(),i.complete()},p,function(){u?.unsubscribe(),c=null}))})}return Ls.windowWhen=o,Ls}var Ht={},c0;function tq(){if(c0)return Ht;c0=1;var e=Ht&&Ht.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Ht&&Ht.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.withLatestFrom=void 0;var r=ce(),a=pe(),o=we(),n=rt(),s=tt(),i=ft();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=i.popResultSelector(u);return r.operate(function(d,f){for(var h=u.length,m=new Array(h),v=u.map(function(){return!1}),g=!1,_=function(y){o.innerFrom(u[y]).subscribe(a.createOperatorSubscriber(f,function(E){m[y]=E,!g&&!v[y]&&(v[y]=!0,(g=v.every(n.identity))&&(v=null))},s.noop))},b=0;b<h;b++)_(b);d.subscribe(a.createOperatorSubscriber(f,function(y){if(g){var E=t([y],e(m));f.next(l?l.apply(void 0,t([],e(E))):E)}}))})}return Ht.withLatestFrom=c,Ht}var Vt={},Gt={},u0;function zg(){if(u0)return Gt;u0=1;var e=Gt&&Gt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Gt&&Gt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.zip=void 0;var r=qe(),a=we(),o=di(),n=Tt(),s=pe(),i=ft();function c(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var l=i.popResultSelector(u),d=o.argsOrArgArray(u);return d.length?new r.Observable(function(f){var h=d.map(function(){return[]}),m=d.map(function(){return!1});f.add(function(){h=m=null});for(var v=function(_){a.innerFrom(d[_]).subscribe(s.createOperatorSubscriber(f,function(b){if(h[_].push(b),h.every(function(E){return E.length})){var y=h.map(function(E){return E.shift()});f.next(l?l.apply(void 0,t([],e(y))):y),h.some(function(E,x){return!E.length&&m[x]})&&f.complete()}},function(){m[_]=!0,!h[_].length&&f.complete()}))},g=0;!f.closed&&g<d.length;g++)v(g);return function(){h=m=null}}):n.EMPTY}return Gt.zip=c,Gt}var l0;function rq(){if(l0)return Vt;l0=1;var e=Vt&&Vt.__read||function(n,s){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var c=i.call(n),u,p=[],l;try{for(;(s===void 0||s-- >0)&&!(u=c.next()).done;)p.push(u.value)}catch(d){l={error:d}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(l)throw l.error}}return p},t=Vt&&Vt.__spreadArray||function(n,s){for(var i=0,c=s.length,u=n.length;i<c;i++,u++)n[u]=s[i];return n};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.zip=void 0;var r=zg(),a=ce();function o(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return a.operate(function(i,c){r.zip.apply(void 0,t([i],e(n))).subscribe(c)})}return Vt.zip=o,Vt}var Us={},d0;function nq(){if(d0)return Us;d0=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.zipAll=void 0;var e=zg(),t=MC();function r(a){return t.joinAllInternals(e.zip,a)}return Us.zipAll=r,Us}var Wt={},p0;function iq(){if(p0)return Wt;p0=1;var e=Wt&&Wt.__read||function(o,n){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var i=s.call(o),c,u=[],p;try{for(;(n===void 0||n-- >0)&&!(c=i.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(p)throw p.error}}return u},t=Wt&&Wt.__spreadArray||function(o,n){for(var s=0,i=n.length,c=o.length;s<i;s++,c++)o[c]=n[s];return o};Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.zipWith=void 0;var r=rq();function a(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.zip.apply(void 0,t([],e(o)))}return Wt.zipWith=a,Wt}var f0;function Bg(){return f0||(f0=1,(function(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=_g();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return t.audit}});var r=_C();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return r.auditTime}});var a=gC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return a.buffer}});var o=bC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return o.bufferCount}});var n=yC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return n.bufferTime}});var s=EC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return s.bufferToggle}});var i=xC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return i.bufferWhen}});var c=OC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return c.catchError}});var u=IC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return u.combineAll}});var p=Og();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var l=CC();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return l.combineLatest}});var d=jC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return d.combineLatestWith}});var f=qC();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return f.concat}});var h=bp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return h.concatAll}});var m=wg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return m.concatMap}});var v=NC();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var g=FC();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return g.concatWith}});var _=yp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return _.connect}});var b=kC();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return b.count}});var y=LC();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return y.debounce}});var E=UC();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return E.debounceTime}});var x=Tl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return x.defaultIfEmpty}});var O=$C();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return O.delay}});var S=Tg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return S.delayWhen}});var w=BC();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return w.dematerialize}});var T=HC();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return T.distinct}});var A=Mg();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return A.distinctUntilChanged}});var P=VC();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return P.distinctUntilKeyChanged}});var C=WC();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return C.elementAt}});var D=ZC();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return D.endWith}});var H=KC();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return H.every}});var F=YC();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return F.exhaust}});var z=Cg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return z.exhaustAll}});var Z=Ig();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Z.exhaustMap}});var X=XC();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return X.expand}});var k=ur();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return k.filter}});var re=QC();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return re.finalize}});var q=jg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return q.find}});var N=JC();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return N.findIndex}});var L=ej();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return L.first}});var $=tj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return $.groupBy}});var M=Sg();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return M.ignoreElements}});var j=rj();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return j.isEmpty}});var U=nj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return U.last}});var K=cr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return K.map}});var ee=Pg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return ee.mapTo}});var R=ij();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return R.materialize}});var I=aj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return I.max}});var G=oj();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return G.merge}});var Q=Pl();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return Q.mergeAll}});var oe=sj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return oe.flatMap}});var J=Qt();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return J.mergeMap}});var le=cj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return le.mergeMapTo}});var _e=uj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return _e.mergeScan}});var ye=lj();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return ye.mergeWith}});var Pe=dj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return Pe.min}});var Re=Op();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return Re.multicast}});var Ee=wl();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return Ee.observeOn}});var Te=fj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Te.onErrorResumeNext}});var me=hj();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return me.pairwise}});var je=YL();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return je.partition}});var Ze=mj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Ze.pluck}});var be=_j();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return be.publish}});var Ve=bj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Ve.publishBehavior}});var bi=yj();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return bi.publishLast}});var yi=Ej();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return yi.publishReplay}});var fr=XL();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return fr.race}});var B=kg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return B.raceWith}});var V=li();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return V.reduce}});var W=Oj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return W.repeat}});var te=wj();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return te.repeatWhen}});var fe=Sj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return fe.retry}});var De=Pj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return De.retryWhen}});var $e=Ng();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return $e.refCount}});var Oe=Lg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return Oe.sample}});var ie=Aj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return ie.sampleTime}});var se=Rj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return se.scan}});var ue=Mj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return ue.sequenceEqual}});var de=Ug();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return de.share}});var Se=Ij();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Se.shareReplay}});var Me=qj();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return Me.single}});var ke=Nj();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return ke.skip}});var at=Fj();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return at.skipLast}});var Pn=Dj();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Pn.skipUntil}});var Ei=kj();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Ei.skipWhile}});var xi=Lj();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return xi.startWith}});var $p=Sl();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return $p.subscribeOn}});var zp=Uj();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return zp.switchAll}});var Bp=Ml();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Bp.switchMap}});var Hp=$j();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return Hp.switchMapTo}});var Vp=zj();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Vp.switchScan}});var Gp=Al();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Gp.take}});var Wp=qg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return Wp.takeLast}});var Zp=Bj();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Zp.takeUntil}});var Kp=Hj();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Kp.takeWhile}});var Yp=Vj();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return Yp.tap}});var Xp=$g();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Xp.throttle}});var Qp=Gj();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Qp.throttleTime}});var Jp=Rl();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Jp.throwIfEmpty}});var ef=Wj();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return ef.timeInterval}});var tf=rp();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return tf.timeout}});var rf=Zj();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return rf.timeoutWith}});var nf=Kj();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return nf.timestamp}});var af=xg();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return af.toArray}});var of=Yj();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return of.window}});var sf=Xj();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return sf.windowCount}});var cf=Qj();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return cf.windowTime}});var uf=Jj();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return uf.windowToggle}});var lf=eq();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return lf.windowWhen}});var df=tq();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return df.withLatestFrom}});var pf=rq();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return pf.zip}});var ff=nq();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return ff.zipAll}});var hf=iq();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return hf.zipWith}})})(zh)),zh}var $s={},h0;function aq(){return h0||(h0=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.CLASS_SERIALIZER_OPTIONS=void 0,$s.CLASS_SERIALIZER_OPTIONS="class_serializer:options"),$s}var v0;function QL(){if(v0)return Hn;v0=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.ClassSerializerInterceptor=void 0;const e=ae(),t=Bg(),r=rr(),a=JI(),o=bl(),n=ne(),s=aq();let i={};const c="Reflector";let u=class{constructor(l,d={}){this.reflector=l,this.defaultOptions=d,i=d?.transformerPackage??(0,o.loadPackage)("class-transformer","ClassSerializerInterceptor",()=>aC),d?.transformerPackage}intercept(l,d){const f=this.getContextOptions(l),h={...this.defaultOptions,...f};return d.handle().pipe((0,t.map)(m=>this.serialize(m,h)))}serialize(l,d){return!(0,n.isObject)(l)||l instanceof a.StreamableFile?l:Array.isArray(l)?l.map(f=>this.transformToPlain(f,d)):this.transformToPlain(l,d)}transformToPlain(l,d){if(!l)return l;if(!d.type||l instanceof d.type)return i.classToPlain(l,d);const f=i.plainToInstance(d.type,l,d);return i.classToPlain(f,d)}getContextOptions(l){return this.reflector.getAllAndOverride(s.CLASS_SERIALIZER_OPTIONS,[l.getHandler(),l.getClass()])}};return Hn.ClassSerializerInterceptor=u,Hn.ClassSerializerInterceptor=u=e.__decorate([(0,r.Injectable)(),e.__param(0,(0,r.Inject)(c)),e.__param(1,(0,r.Optional)()),e.__metadata("design:paramtypes",[Object,Object])],u),Hn}var Zh={},zs={},m0;function JL(){if(m0)return zs;m0=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.SerializeOptions=void 0;const e=ug(),t=aq(),r=a=>(0,e.SetMetadata)(t.CLASS_SERIALIZER_OPTIONS,a);return zs.SerializeOptions=r,zs}var _0;function eU(){return _0||(_0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(JL(),e)})(Zh)),Zh}var Kh={},g0;function tU(){return g0||(g0=1,Object.defineProperty(Kh,"__esModule",{value:!0})),Kh}var b0;function rU(){return b0||(b0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(QL(),e),t.__exportStar(eU(),e),t.__exportStar(tU(),e)})($h)),$h}var Yh={},Bs={},y0;function nU(){if(y0)return Bs;y0=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.forwardRef=void 0;const e=t=>({forwardRef:t});return Bs.forwardRef=e,Bs}var E0;function iU(){return E0||(E0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(nU(),e)})(Yh)),Yh}var x0;function ve(){return x0||(x0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION_NEUTRAL=e.Scope=void 0;const t=ae();cg(),t.__exportStar(ug(),e),t.__exportStar(gl(),e),t.__exportStar(lg(),e),t.__exportStar(JI(),e);var r=vp();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"VERSION_NEUTRAL",{enumerable:!0,get:function(){return r.VERSION_NEUTRAL}}),t.__exportStar(mL(),e),t.__exportStar($L(),e),t.__exportStar(rU(),e),t.__exportStar(QI(),e),t.__exportStar(iU(),e)})(_f)),_f}var Ot=ve(),Xh={},Lr={},Hs={},ct={},Pt={exports:{}};const aU="16.4.7",oU={version:aU};var O0;function oq(){if(O0)return Pt.exports;O0=1;const e=ai,t=Yt,r=lp,a=oi,n=oU.version,s=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function i(x){const O={};let S=x.toString();S=S.replace(/\r\n?/mg,`
|
|
22
|
+
`);let w;for(;(w=s.exec(S))!=null;){const T=w[1];let A=w[2]||"";A=A.trim();const P=A[0];A=A.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),P==='"'&&(A=A.replace(/\\n/g,`
|
|
23
|
+
`),A=A.replace(/\\r/g,"\r")),O[T]=A}return O}function c(x){const O=h(x),S=E.configDotenv({path:O});if(!S.parsed){const P=new Error(`MISSING_DATA: Cannot parse ${O} for an unknown reason`);throw P.code="MISSING_DATA",P}const w=d(x).split(","),T=w.length;let A;for(let P=0;P<T;P++)try{const C=w[P].trim(),D=f(S,C);A=E.decrypt(D.ciphertext,D.key);break}catch(C){if(P+1>=T)throw C}return E.parse(A)}function u(x){console.log(`[dotenv@${n}][INFO] ${x}`)}function p(x){console.log(`[dotenv@${n}][WARN] ${x}`)}function l(x){console.log(`[dotenv@${n}][DEBUG] ${x}`)}function d(x){return x&&x.DOTENV_KEY&&x.DOTENV_KEY.length>0?x.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function f(x,O){let S;try{S=new URL(O)}catch(C){if(C.code==="ERR_INVALID_URL"){const D=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw D.code="INVALID_DOTENV_KEY",D}throw C}const w=S.password;if(!w){const C=new Error("INVALID_DOTENV_KEY: Missing key part");throw C.code="INVALID_DOTENV_KEY",C}const T=S.searchParams.get("environment");if(!T){const C=new Error("INVALID_DOTENV_KEY: Missing environment part");throw C.code="INVALID_DOTENV_KEY",C}const A=`DOTENV_VAULT_${T.toUpperCase()}`,P=x.parsed[A];if(!P){const C=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${A} in your .env.vault file.`);throw C.code="NOT_FOUND_DOTENV_ENVIRONMENT",C}return{ciphertext:P,key:w}}function h(x){let O=null;if(x&&x.path&&x.path.length>0)if(Array.isArray(x.path))for(const S of x.path)e.existsSync(S)&&(O=S.endsWith(".vault")?S:`${S}.vault`);else O=x.path.endsWith(".vault")?x.path:`${x.path}.vault`;else O=t.resolve(process.cwd(),".env.vault");return e.existsSync(O)?O:null}function m(x){return x[0]==="~"?t.join(r.homedir(),x.slice(1)):x}function v(x){u("Loading env from encrypted .env.vault");const O=E._parseVault(x);let S=process.env;return x&&x.processEnv!=null&&(S=x.processEnv),E.populate(S,O,x),{parsed:O}}function g(x){const O=t.resolve(process.cwd(),".env");let S="utf8";const w=!!(x&&x.debug);x&&x.encoding?S=x.encoding:w&&l("No encoding is specified. UTF-8 is used by default");let T=[O];if(x&&x.path)if(!Array.isArray(x.path))T=[m(x.path)];else{T=[];for(const D of x.path)T.push(m(D))}let A;const P={};for(const D of T)try{const H=E.parse(e.readFileSync(D,{encoding:S}));E.populate(P,H,x)}catch(H){w&&l(`Failed to load ${D} ${H.message}`),A=H}let C=process.env;return x&&x.processEnv!=null&&(C=x.processEnv),E.populate(C,P,x),A?{parsed:P,error:A}:{parsed:P}}function _(x){if(d(x).length===0)return E.configDotenv(x);const O=h(x);return O?E._configVault(x):(p(`You set DOTENV_KEY but you are missing a .env.vault file at ${O}. Did you forget to build it?`),E.configDotenv(x))}function b(x,O){const S=Buffer.from(O.slice(-64),"hex");let w=Buffer.from(x,"base64");const T=w.subarray(0,12),A=w.subarray(-16);w=w.subarray(12,-16);try{const P=a.createDecipheriv("aes-256-gcm",S,T);return P.setAuthTag(A),`${P.update(w)}${P.final()}`}catch(P){const C=P instanceof RangeError,D=P.message==="Invalid key length",H=P.message==="Unsupported state or unable to authenticate data";if(C||D){const F=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw F.code="INVALID_DOTENV_KEY",F}else if(H){const F=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw F.code="DECRYPTION_FAILED",F}else throw P}}function y(x,O,S={}){const w=!!(S&&S.debug),T=!!(S&&S.override);if(typeof O!="object"){const A=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw A.code="OBJECT_REQUIRED",A}for(const A of Object.keys(O))Object.prototype.hasOwnProperty.call(x,A)?(T===!0&&(x[A]=O[A]),w&&l(T===!0?`"${A}" is already defined and WAS overwritten`:`"${A}" is already defined and was NOT overwritten`)):x[A]=O[A]}const E={configDotenv:g,_configVault:v,_parseVault:c,config:_,decrypt:b,parse:i,populate:y};return Pt.exports.configDotenv=E.configDotenv,Pt.exports._configVault=E._configVault,Pt.exports._parseVault=E._parseVault,Pt.exports.config=E.config,Pt.exports.decrypt=E.decrypt,Pt.exports.parse=E.parse,Pt.exports.populate=E.populate,Pt.exports=E,Pt.exports}var Qh={},w0;function sU(){if(w0)return Qh;w0=1;function e(a){return a.replace(/\\\$/g,"$")}function t(a,o,n){const s={...n,...o},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;let c=a,u;const p=new Set;for(;(u=i.exec(c))!==null;){p.add(c);const[l,d,f]=u,h=d||f,m=/(:\+|\+|:-|-)/,v=h.match(m),g=v?v[0]:null,_=h.split(g);let b,y;const E=_.shift();if([":+","+"].includes(g)?(b=s[E]?_.join(g):"",y=null):(b=_.join(g),y=s[E]),y?p.has(y)?c=c.replace(l,b):c=c.replace(l,y):c=c.replace(l,b),c===n[E])break;i.lastIndex=0}return c}function r(a){const o={};let n=process.env;a&&a.processEnv!=null&&(n=a.processEnv);for(const s in a.parsed){let i=a.parsed[s];n[s]&&n[s]!==i?i=n[s]:i=t(i,n,o),a.parsed[s]=e(i),o[s]=e(i)}for(const s in a.parsed)n[s]=a.parsed[s];return a}return Qh.expand=r,Qh}var er={},Ke={},S0;function Il(){return S0||(S0=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.AS_PROVIDER_METHOD_KEY=Ke.VALIDATED_ENV_PROPNAME=Ke.PARTIAL_CONFIGURATION_PROPNAME=Ke.PARTIAL_CONFIGURATION_KEY=Ke.VALIDATED_ENV_LOADER=Ke.CONFIGURATION_LOADER=Ke.CONFIGURATION_TOKEN=Ke.CONFIGURATION_SERVICE_TOKEN=void 0,Ke.CONFIGURATION_SERVICE_TOKEN=Symbol("CONFIG_SERVICE"),Ke.CONFIGURATION_TOKEN="CONFIGURATION_TOKEN",Ke.CONFIGURATION_LOADER="CONFIGURATION_LOADER",Ke.VALIDATED_ENV_LOADER="VALIDATED_ENV_LOADER",Ke.PARTIAL_CONFIGURATION_KEY="PARTIAL_CONFIGURATION_KEY",Ke.PARTIAL_CONFIGURATION_PROPNAME="KEY",Ke.VALIDATED_ENV_PROPNAME="_PROCESS_ENV_VALIDATED",Ke.AS_PROVIDER_METHOD_KEY="asProvider"),Ke}var Ge={},Jh,P0;function wp(){if(P0)return Jh;P0=1;var e=Array.isArray;return Jh=e,Jh}var ev,T0;function cU(){if(T0)return ev;T0=1;var e=typeof ut=="object"&&ut&&ut.Object===Object&&ut;return ev=e,ev}var tv,A0;function Hg(){if(A0)return tv;A0=1;var e=cU(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return tv=r,tv}var rv,R0;function Vg(){if(R0)return rv;R0=1;var e=Hg(),t=e.Symbol;return rv=t,rv}var nv,M0;function uU(){if(M0)return nv;M0=1;var e=Vg(),t=Object.prototype,r=t.hasOwnProperty,a=t.toString,o=e?e.toStringTag:void 0;function n(s){var i=r.call(s,o),c=s[o];try{s[o]=void 0;var u=!0}catch{}var p=a.call(s);return u&&(i?s[o]=c:delete s[o]),p}return nv=n,nv}var iv,I0;function lU(){if(I0)return iv;I0=1;var e=Object.prototype,t=e.toString;function r(a){return t.call(a)}return iv=r,iv}var av,C0;function Gg(){if(C0)return av;C0=1;var e=Vg(),t=uU(),r=lU(),a="[object Null]",o="[object Undefined]",n=e?e.toStringTag:void 0;function s(i){return i==null?i===void 0?o:a:n&&n in Object(i)?t(i):r(i)}return av=s,av}var ov,j0;function Wg(){if(j0)return ov;j0=1;function e(t){return t!=null&&typeof t=="object"}return ov=e,ov}var sv,q0;function Zg(){if(q0)return sv;q0=1;var e=Gg(),t=Wg(),r="[object Symbol]";function a(o){return typeof o=="symbol"||t(o)&&e(o)==r}return sv=a,sv}var cv,N0;function dU(){if(N0)return cv;N0=1;var e=wp(),t=Zg(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(n,s){if(e(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||t(n)?!0:a.test(n)||!r.test(n)||s!=null&&n in Object(s)}return cv=o,cv}var uv,F0;function Kg(){if(F0)return uv;F0=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return uv=e,uv}var lv,D0;function pU(){if(D0)return lv;D0=1;var e=Gg(),t=Kg(),r="[object AsyncFunction]",a="[object Function]",o="[object GeneratorFunction]",n="[object Proxy]";function s(i){if(!t(i))return!1;var c=e(i);return c==a||c==o||c==r||c==n}return lv=s,lv}var dv,k0;function fU(){if(k0)return dv;k0=1;var e=Hg(),t=e["__core-js_shared__"];return dv=t,dv}var pv,L0;function hU(){if(L0)return pv;L0=1;var e=fU(),t=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function r(a){return!!t&&t in a}return pv=r,pv}var fv,U0;function vU(){if(U0)return fv;U0=1;var e=Function.prototype,t=e.toString;function r(a){if(a!=null){try{return t.call(a)}catch{}try{return a+""}catch{}}return""}return fv=r,fv}var hv,$0;function mU(){if($0)return hv;$0=1;var e=pU(),t=hU(),r=Kg(),a=vU(),o=/[\\^$.*+?()[\]{}|]/g,n=/^\[object .+?Constructor\]$/,s=Function.prototype,i=Object.prototype,c=s.toString,u=i.hasOwnProperty,p=RegExp("^"+c.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var f=e(d)?p:n;return f.test(a(d))}return hv=l,hv}var vv,z0;function _U(){if(z0)return vv;z0=1;function e(t,r){return t?.[r]}return vv=e,vv}var mv,B0;function Yg(){if(B0)return mv;B0=1;var e=mU(),t=_U();function r(a,o){var n=t(a,o);return e(n)?n:void 0}return mv=r,mv}var _v,H0;function Sp(){if(H0)return _v;H0=1;var e=Yg(),t=e(Object,"create");return _v=t,_v}var gv,V0;function gU(){if(V0)return gv;V0=1;var e=Sp();function t(){this.__data__=e?e(null):{},this.size=0}return gv=t,gv}var bv,G0;function bU(){if(G0)return bv;G0=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return bv=e,bv}var yv,W0;function yU(){if(W0)return yv;W0=1;var e=Sp(),t="__lodash_hash_undefined__",r=Object.prototype,a=r.hasOwnProperty;function o(n){var s=this.__data__;if(e){var i=s[n];return i===t?void 0:i}return a.call(s,n)?s[n]:void 0}return yv=o,yv}var Ev,Z0;function EU(){if(Z0)return Ev;Z0=1;var e=Sp(),t=Object.prototype,r=t.hasOwnProperty;function a(o){var n=this.__data__;return e?n[o]!==void 0:r.call(n,o)}return Ev=a,Ev}var xv,K0;function xU(){if(K0)return xv;K0=1;var e=Sp(),t="__lodash_hash_undefined__";function r(a,o){var n=this.__data__;return this.size+=this.has(a)?0:1,n[a]=e&&o===void 0?t:o,this}return xv=r,xv}var Ov,Y0;function OU(){if(Y0)return Ov;Y0=1;var e=gU(),t=bU(),r=yU(),a=EU(),o=xU();function n(s){var i=-1,c=s==null?0:s.length;for(this.clear();++i<c;){var u=s[i];this.set(u[0],u[1])}}return n.prototype.clear=e,n.prototype.delete=t,n.prototype.get=r,n.prototype.has=a,n.prototype.set=o,Ov=n,Ov}var wv,X0;function wU(){if(X0)return wv;X0=1;function e(){this.__data__=[],this.size=0}return wv=e,wv}var Sv,Q0;function sq(){if(Q0)return Sv;Q0=1;function e(t,r){return t===r||t!==t&&r!==r}return Sv=e,Sv}var Pv,J0;function Pp(){if(J0)return Pv;J0=1;var e=sq();function t(r,a){for(var o=r.length;o--;)if(e(r[o][0],a))return o;return-1}return Pv=t,Pv}var Tv,eS;function SU(){if(eS)return Tv;eS=1;var e=Pp(),t=Array.prototype,r=t.splice;function a(o){var n=this.__data__,s=e(n,o);if(s<0)return!1;var i=n.length-1;return s==i?n.pop():r.call(n,s,1),--this.size,!0}return Tv=a,Tv}var Av,tS;function PU(){if(tS)return Av;tS=1;var e=Pp();function t(r){var a=this.__data__,o=e(a,r);return o<0?void 0:a[o][1]}return Av=t,Av}var Rv,rS;function TU(){if(rS)return Rv;rS=1;var e=Pp();function t(r){return e(this.__data__,r)>-1}return Rv=t,Rv}var Mv,nS;function AU(){if(nS)return Mv;nS=1;var e=Pp();function t(r,a){var o=this.__data__,n=e(o,r);return n<0?(++this.size,o.push([r,a])):o[n][1]=a,this}return Mv=t,Mv}var Iv,iS;function RU(){if(iS)return Iv;iS=1;var e=wU(),t=SU(),r=PU(),a=TU(),o=AU();function n(s){var i=-1,c=s==null?0:s.length;for(this.clear();++i<c;){var u=s[i];this.set(u[0],u[1])}}return n.prototype.clear=e,n.prototype.delete=t,n.prototype.get=r,n.prototype.has=a,n.prototype.set=o,Iv=n,Iv}var Cv,aS;function MU(){if(aS)return Cv;aS=1;var e=Yg(),t=Hg(),r=e(t,"Map");return Cv=r,Cv}var jv,oS;function IU(){if(oS)return jv;oS=1;var e=OU(),t=RU(),r=MU();function a(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return jv=a,jv}var qv,sS;function CU(){if(sS)return qv;sS=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return qv=e,qv}var Nv,cS;function Tp(){if(cS)return Nv;cS=1;var e=CU();function t(r,a){var o=r.__data__;return e(a)?o[typeof a=="string"?"string":"hash"]:o.map}return Nv=t,Nv}var Fv,uS;function jU(){if(uS)return Fv;uS=1;var e=Tp();function t(r){var a=e(this,r).delete(r);return this.size-=a?1:0,a}return Fv=t,Fv}var Dv,lS;function qU(){if(lS)return Dv;lS=1;var e=Tp();function t(r){return e(this,r).get(r)}return Dv=t,Dv}var kv,dS;function NU(){if(dS)return kv;dS=1;var e=Tp();function t(r){return e(this,r).has(r)}return kv=t,kv}var Lv,pS;function FU(){if(pS)return Lv;pS=1;var e=Tp();function t(r,a){var o=e(this,r),n=o.size;return o.set(r,a),this.size+=o.size==n?0:1,this}return Lv=t,Lv}var Uv,fS;function DU(){if(fS)return Uv;fS=1;var e=IU(),t=jU(),r=qU(),a=NU(),o=FU();function n(s){var i=-1,c=s==null?0:s.length;for(this.clear();++i<c;){var u=s[i];this.set(u[0],u[1])}}return n.prototype.clear=e,n.prototype.delete=t,n.prototype.get=r,n.prototype.has=a,n.prototype.set=o,Uv=n,Uv}var $v,hS;function kU(){if(hS)return $v;hS=1;var e=DU(),t="Expected a function";function r(a,o){if(typeof a!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var n=function(){var s=arguments,i=o?o.apply(this,s):s[0],c=n.cache;if(c.has(i))return c.get(i);var u=a.apply(this,s);return n.cache=c.set(i,u)||c,u};return n.cache=new(r.Cache||e),n}return r.Cache=e,$v=r,$v}var zv,vS;function LU(){if(vS)return zv;vS=1;var e=kU(),t=500;function r(a){var o=e(a,function(s){return n.size===t&&n.clear(),s}),n=o.cache;return o}return zv=r,zv}var Bv,mS;function UU(){if(mS)return Bv;mS=1;var e=LU(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=e(function(o){var n=[];return o.charCodeAt(0)===46&&n.push(""),o.replace(t,function(s,i,c,u){n.push(c?u.replace(r,"$1"):i||s)}),n});return Bv=a,Bv}var Hv,_S;function $U(){if(_S)return Hv;_S=1;function e(t,r){for(var a=-1,o=t==null?0:t.length,n=Array(o);++a<o;)n[a]=r(t[a],a,t);return n}return Hv=e,Hv}var Vv,gS;function zU(){if(gS)return Vv;gS=1;var e=Vg(),t=$U(),r=wp(),a=Zg(),o=e?e.prototype:void 0,n=o?o.toString:void 0;function s(i){if(typeof i=="string")return i;if(r(i))return t(i,s)+"";if(a(i))return n?n.call(i):"";var c=i+"";return c=="0"&&1/i==-1/0?"-0":c}return Vv=s,Vv}var Gv,bS;function BU(){if(bS)return Gv;bS=1;var e=zU();function t(r){return r==null?"":e(r)}return Gv=t,Gv}var Wv,yS;function Xg(){if(yS)return Wv;yS=1;var e=wp(),t=dU(),r=UU(),a=BU();function o(n,s){return e(n)?n:t(n,s)?[n]:r(a(n))}return Wv=o,Wv}var Zv,ES;function Qg(){if(ES)return Zv;ES=1;var e=Zg();function t(r){if(typeof r=="string"||e(r))return r;var a=r+"";return a=="0"&&1/r==-1/0?"-0":a}return Zv=t,Zv}var Kv,xS;function HU(){if(xS)return Kv;xS=1;var e=Xg(),t=Qg();function r(a,o){o=e(o,a);for(var n=0,s=o.length;a!=null&&n<s;)a=a[t(o[n++])];return n&&n==s?a:void 0}return Kv=r,Kv}var Yv,OS;function VU(){if(OS)return Yv;OS=1;var e=HU();function t(r,a,o){var n=r==null?void 0:e(r,a);return n===void 0?o:n}return Yv=t,Yv}var Xv,wS;function GU(){if(wS)return Xv;wS=1;var e=Object.prototype,t=e.hasOwnProperty;function r(a,o){return a!=null&&t.call(a,o)}return Xv=r,Xv}var Qv,SS;function WU(){if(SS)return Qv;SS=1;var e=Gg(),t=Wg(),r="[object Arguments]";function a(o){return t(o)&&e(o)==r}return Qv=a,Qv}var Jv,PS;function ZU(){if(PS)return Jv;PS=1;var e=WU(),t=Wg(),r=Object.prototype,a=r.hasOwnProperty,o=r.propertyIsEnumerable,n=e((function(){return arguments})())?e:function(s){return t(s)&&a.call(s,"callee")&&!o.call(s,"callee")};return Jv=n,Jv}var em,TS;function cq(){if(TS)return em;TS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(a,o){var n=typeof a;return o=o??e,!!o&&(n=="number"||n!="symbol"&&t.test(a))&&a>-1&&a%1==0&&a<o}return em=r,em}var tm,AS;function KU(){if(AS)return tm;AS=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return tm=t,tm}var rm,RS;function YU(){if(RS)return rm;RS=1;var e=Xg(),t=ZU(),r=wp(),a=cq(),o=KU(),n=Qg();function s(i,c,u){c=e(c,i);for(var p=-1,l=c.length,d=!1;++p<l;){var f=n(c[p]);if(!(d=i!=null&&u(i,f)))break;i=i[f]}return d||++p!=l?d:(l=i==null?0:i.length,!!l&&o(l)&&a(f,l)&&(r(i)||t(i)))}return rm=s,rm}var nm,MS;function XU(){if(MS)return nm;MS=1;var e=GU(),t=YU();function r(a,o){return a!=null&&t(a,o,e)}return nm=r,nm}var im,IS;function QU(){if(IS)return im;IS=1;var e=Yg(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return im=t,im}var am,CS;function JU(){if(CS)return am;CS=1;var e=QU();function t(r,a,o){a=="__proto__"&&e?e(r,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[a]=o}return am=t,am}var om,jS;function e$(){if(jS)return om;jS=1;var e=JU(),t=sq(),r=Object.prototype,a=r.hasOwnProperty;function o(n,s,i){var c=n[s];(!(a.call(n,s)&&t(c,i))||i===void 0&&!(s in n))&&e(n,s,i)}return om=o,om}var sm,qS;function t$(){if(qS)return sm;qS=1;var e=e$(),t=Xg(),r=cq(),a=Kg(),o=Qg();function n(s,i,c,u){if(!a(s))return s;i=t(i,s);for(var p=-1,l=i.length,d=l-1,f=s;f!=null&&++p<l;){var h=o(i[p]),m=c;if(h==="__proto__"||h==="constructor"||h==="prototype")return s;if(p!=d){var v=f[h];m=u?u(v,h,f):void 0,m===void 0&&(m=a(v)?v:r(i[p+1])?[]:{})}e(f,h,m),f=f[h]}return s}return sm=n,sm}var cm,NS;function uq(){if(NS)return cm;NS=1;var e=t$();function t(r,a,o){return r==null?r:e(r,a,o)}return cm=t,cm}var Ur={},Vs={},um={},FS;function r$(){return FS||(FS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}})(um)),um}var $r={},DS;function lq(){return DS||(DS=1,(function(e){var t=$r&&$r.__read||function(o,n){var s=typeof Symbol=="function"&&o[Symbol.iterator];if(!s)return o;var i=s.call(o),c,u=[],p;try{for(;(n===void 0||n-- >0)&&!(c=i.next()).done;)u.push(c.value)}catch(l){p={error:l}}finally{try{c&&!c.done&&(s=i.return)&&s.call(i)}finally{if(p)throw p.error}}return u},r=$r&&$r.__spreadArray||function(o,n){for(var s=0,i=n.length,c=o.length;s<i;s++,c++)o[c]=n[s];return o};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var a=mt();e.animationFrameProvider={schedule:function(o){var n=requestAnimationFrame,s=cancelAnimationFrame,i=e.animationFrameProvider.delegate;i&&(n=i.requestAnimationFrame,s=i.cancelAnimationFrame);var c=n(function(u){s=void 0,o(u)});return new a.Subscription(function(){return s?.(c)})},requestAnimationFrame:function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var s=e.animationFrameProvider.delegate;return(s?.requestAnimationFrame||requestAnimationFrame).apply(void 0,r([],t(o)))},cancelAnimationFrame:function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var s=e.animationFrameProvider.delegate;return(s?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,r([],t(o)))},delegate:void 0}})($r)),$r}var kS;function n$(){if(kS)return Vs;kS=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.animationFrames=void 0;var e=qe(),t=r$(),r=lq();function a(s){return s?o(s):n}Vs.animationFrames=a;function o(s){return new e.Observable(function(i){var c=s||t.performanceTimestampProvider,u=c.now(),p=0,l=function(){i.closed||(p=r.animationFrameProvider.requestAnimationFrame(function(d){p=0;var f=c.now();i.next({timestamp:s?f:d,elapsed:f-u}),l()}))};return l(),function(){p&&r.animationFrameProvider.cancelAnimationFrame(p)}})}var n=o();return Vs}var lm={},zr={},Br={},Hr={},LS;function i$(){if(LS)return Hr;LS=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.TestTools=Hr.Immediate=void 0;var e=1,t,r={};function a(o){return o in r?(delete r[o],!0):!1}return Hr.Immediate={setImmediate:function(o){var n=e++;return r[n]=!0,t||(t=Promise.resolve()),t.then(function(){return a(n)&&o()}),n},clearImmediate:function(o){a(o)}},Hr.TestTools={pending:function(){return Object.keys(r).length}},Hr}var US;function a$(){return US||(US=1,(function(e){var t=Br&&Br.__read||function(s,i){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var u=c.call(s),p,l=[],d;try{for(;(i===void 0||i-- >0)&&!(p=u.next()).done;)l.push(p.value)}catch(f){d={error:f}}finally{try{p&&!p.done&&(c=u.return)&&c.call(u)}finally{if(d)throw d.error}}return l},r=Br&&Br.__spreadArray||function(s,i){for(var c=0,u=i.length,p=s.length;c<u;c++,p++)s[p]=i[c];return s};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var a=i$(),o=a.Immediate.setImmediate,n=a.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];var c=e.immediateProvider.delegate;return(c?.setImmediate||o).apply(void 0,r([],t(s)))},clearImmediate:function(s){var i=e.immediateProvider.delegate;return(i?.clearImmediate||n)(s)},delegate:void 0}})(Br)),Br}var $S;function o$(){if($S)return zr;$S=1;var e=zr&&zr.__extends||(function(){var o=function(n,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(i[u]=c[u])},o(n,s)};return function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(n,s);function i(){this.constructor=n}n.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})();Object.defineProperty(zr,"__esModule",{value:!0}),zr.AsapAction=void 0;var t=xl(),r=a$(),a=(function(o){e(n,o);function n(s,i){var c=o.call(this,s,i)||this;return c.scheduler=s,c.work=i,c}return n.prototype.requestAsyncId=function(s,i,c){return c===void 0&&(c=0),c!==null&&c>0?o.prototype.requestAsyncId.call(this,s,i,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.immediateProvider.setImmediate(s.flush.bind(s,void 0))))},n.prototype.recycleAsyncId=function(s,i,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,s,i,c);var p=s.actions;i!=null&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==i&&(r.immediateProvider.clearImmediate(i),s._scheduled===i&&(s._scheduled=void 0))},n})(t.AsyncAction);return zr.AsapAction=a,zr}var Vr={},zS;function s$(){if(zS)return Vr;zS=1;var e=Vr&&Vr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.AsapScheduler=void 0;var t=Ol(),r=(function(a){e(o,a);function o(){return a!==null&&a.apply(this,arguments)||this}return o.prototype.flush=function(n){this._active=!0;var s=this._scheduled;this._scheduled=void 0;var i=this.actions,c;n=n||i.shift();do if(c=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===s&&i.shift());if(this._active=!1,c){for(;(n=i[0])&&n.id===s&&i.shift();)n.unsubscribe();throw c}},o})(t.AsyncScheduler);return Vr.AsapScheduler=r,Vr}var BS;function c$(){return BS||(BS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var t=o$(),r=s$();e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})(lm)),lm}var dm={},Gr={},HS;function u$(){if(HS)return Gr;HS=1;var e=Gr&&Gr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.QueueAction=void 0;var t=xl(),r=(function(a){e(o,a);function o(n,s){var i=a.call(this,n,s)||this;return i.scheduler=n,i.work=s,i}return o.prototype.schedule=function(n,s){return s===void 0&&(s=0),s>0?a.prototype.schedule.call(this,n,s):(this.delay=s,this.state=n,this.scheduler.flush(this),this)},o.prototype.execute=function(n,s){return s>0||this.closed?a.prototype.execute.call(this,n,s):this._execute(n,s)},o.prototype.requestAsyncId=function(n,s,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?a.prototype.requestAsyncId.call(this,n,s,i):(n.flush(this),0)},o})(t.AsyncAction);return Gr.QueueAction=r,Gr}var Wr={},VS;function l$(){if(VS)return Wr;VS=1;var e=Wr&&Wr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.QueueScheduler=void 0;var t=Ol(),r=(function(a){e(o,a);function o(){return a!==null&&a.apply(this,arguments)||this}return o})(t.AsyncScheduler);return Wr.QueueScheduler=r,Wr}var GS;function d$(){return GS||(GS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var t=u$(),r=l$();e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})(dm)),dm}var pm={},Zr={},WS;function p$(){if(WS)return Zr;WS=1;var e=Zr&&Zr.__extends||(function(){var o=function(n,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(i[u]=c[u])},o(n,s)};return function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");o(n,s);function i(){this.constructor=n}n.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})();Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.AnimationFrameAction=void 0;var t=xl(),r=lq(),a=(function(o){e(n,o);function n(s,i){var c=o.call(this,s,i)||this;return c.scheduler=s,c.work=i,c}return n.prototype.requestAsyncId=function(s,i,c){return c===void 0&&(c=0),c!==null&&c>0?o.prototype.requestAsyncId.call(this,s,i,c):(s.actions.push(this),s._scheduled||(s._scheduled=r.animationFrameProvider.requestAnimationFrame(function(){return s.flush(void 0)})))},n.prototype.recycleAsyncId=function(s,i,c){var u;if(c===void 0&&(c=0),c!=null?c>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,s,i,c);var p=s.actions;i!=null&&i===s._scheduled&&((u=p[p.length-1])===null||u===void 0?void 0:u.id)!==i&&(r.animationFrameProvider.cancelAnimationFrame(i),s._scheduled=void 0)},n})(t.AsyncAction);return Zr.AnimationFrameAction=a,Zr}var Kr={},ZS;function f$(){if(ZS)return Kr;ZS=1;var e=Kr&&Kr.__extends||(function(){var a=function(o,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])},a(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");a(o,n);function s(){this.constructor=o}o.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}})();Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.AnimationFrameScheduler=void 0;var t=Ol(),r=(function(a){e(o,a);function o(){return a!==null&&a.apply(this,arguments)||this}return o.prototype.flush=function(n){this._active=!0;var s;n?s=n.id:(s=this._scheduled,this._scheduled=void 0);var i=this.actions,c;n=n||i.shift();do if(c=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===s&&i.shift());if(this._active=!1,c){for(;(n=i[0])&&n.id===s&&i.shift();)n.unsubscribe();throw c}},o})(t.AsyncScheduler);return Kr.AnimationFrameScheduler=r,Kr}var KS;function h$(){return KS||(KS=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var t=p$(),r=f$();e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler})(pm)),pm}var Zt={},YS;function v$(){if(YS)return Zt;YS=1;var e=Zt&&Zt.__extends||(function(){var s=function(i,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var l in p)Object.prototype.hasOwnProperty.call(p,l)&&(u[l]=p[l])},s(i,c)};return function(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(i,c);function u(){this.constructor=i}i.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}})();Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.VirtualAction=Zt.VirtualTimeScheduler=void 0;var t=xl(),r=mt(),a=Ol(),o=(function(s){e(i,s);function i(c,u){c===void 0&&(c=n),u===void 0&&(u=1/0);var p=s.call(this,c,function(){return p.frame})||this;return p.maxFrames=u,p.frame=0,p.index=-1,p}return i.prototype.flush=function(){for(var c=this,u=c.actions,p=c.maxFrames,l,d;(d=u[0])&&d.delay<=p&&(u.shift(),this.frame=d.delay,!(l=d.execute(d.state,d.delay))););if(l){for(;d=u.shift();)d.unsubscribe();throw l}},i.frameTimeFactor=10,i})(a.AsyncScheduler);Zt.VirtualTimeScheduler=o;var n=(function(s){e(i,s);function i(c,u,p){p===void 0&&(p=c.index+=1);var l=s.call(this,c,u)||this;return l.scheduler=c,l.work=u,l.index=p,l.active=!0,l.index=c.index=p,l}return i.prototype.schedule=function(c,u){if(u===void 0&&(u=0),Number.isFinite(u)){if(!this.id)return s.prototype.schedule.call(this,c,u);this.active=!1;var p=new i(this.scheduler,this.work);return this.add(p),p.schedule(c,u)}else return r.Subscription.EMPTY},i.prototype.requestAsyncId=function(c,u,p){p===void 0&&(p=0),this.delay=c.frame+p;var l=c.actions;return l.push(this),l.sort(i.sortActions),1},i.prototype.recycleAsyncId=function(c,u,p){},i.prototype._execute=function(c,u){if(this.active===!0)return s.prototype._execute.call(this,c,u)},i.sortActions=function(c,u){return c.delay===u.delay?c.index===u.index?0:c.index>u.index?1:-1:c.delay>u.delay?1:-1},i})(t.AsyncAction);return Zt.VirtualAction=n,Zt}var Gs={},XS;function m$(){if(XS)return Gs;XS=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.isObservable=void 0;var e=qe(),t=Ce();function r(a){return!!a&&(a instanceof e.Observable||t.isFunction(a.lift)&&t.isFunction(a.subscribe))}return Gs.isObservable=r,Gs}var Ws={},QS;function _$(){if(QS)return Ws;QS=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.lastValueFrom=void 0;var e=_n();function t(r,a){var o=typeof a=="object";return new Promise(function(n,s){var i=!1,c;r.subscribe({next:function(u){c=u,i=!0},error:s,complete:function(){i?n(c):o?n(a.defaultValue):s(new e.EmptyError)}})})}return Ws.lastValueFrom=t,Ws}var Zs={},JS;function g$(){if(JS)return Zs;JS=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.firstValueFrom=void 0;var e=_n(),t=El();function r(a,o){var n=typeof o=="object";return new Promise(function(s,i){var c=new t.SafeSubscriber({next:function(u){s(u),c.unsubscribe()},error:i,complete:function(){n?s(o.defaultValue):i(new e.EmptyError)}});a.subscribe(c)})}return Zs.firstValueFrom=r,Zs}var Ks={},Kt={},eP;function dq(){if(eP)return Kt;eP=1;var e=Kt&&Kt.__read||function(u,p){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var d=l.call(u),f,h=[],m;try{for(;(p===void 0||p-- >0)&&!(f=d.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(m)throw m.error}}return h},t=Kt&&Kt.__spreadArray||function(u,p){for(var l=0,d=p.length,f=u.length;l<d;l++,f++)u[f]=p[l];return u};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.bindCallbackInternals=void 0;var r=gp(),a=qe(),o=Sl(),n=mn(),s=wl(),i=Fg();function c(u,p,l,d){if(l)if(r.isScheduler(l))d=l;else return function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(u,p,d).apply(this,f).pipe(n.mapOneOrManyArgs(l))};return d?function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return c(u,p).apply(this,f).pipe(o.subscribeOn(d),s.observeOn(d))}:function(){for(var f=this,h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=new i.AsyncSubject,g=!0;return new a.Observable(function(_){var b=v.subscribe(_);if(g){g=!1;var y=!1,E=!1;p.apply(f,t(t([],e(h)),[function(){for(var x=[],O=0;O<arguments.length;O++)x[O]=arguments[O];if(u){var S=x.shift();if(S!=null){v.error(S);return}}v.next(1<x.length?x:x[0]),E=!0,y&&v.complete()}])),E&&v.complete(),y=!0}return b})}}return Kt.bindCallbackInternals=c,Kt}var tP;function b$(){if(tP)return Ks;tP=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.bindCallback=void 0;var e=dq();function t(r,a,o){return e.bindCallbackInternals(!1,r,a,o)}return Ks.bindCallback=t,Ks}var Ys={},rP;function y$(){if(rP)return Ys;rP=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.bindNodeCallback=void 0;var e=dq();function t(r,a,o){return e.bindCallbackInternals(!0,r,a,o)}return Ys.bindNodeCallback=t,Ys}var Xs={},Qs={},nP;function Ap(){if(nP)return Qs;nP=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.defer=void 0;var e=qe(),t=we();function r(a){return new e.Observable(function(o){t.innerFrom(a()).subscribe(o)})}return Qs.defer=r,Qs}var iP;function E$(){if(iP)return Xs;iP=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.connectable=void 0;var e=nt(),t=qe(),r=Ap(),a={connector:function(){return new e.Subject},resetOnDisconnect:!0};function o(n,s){s===void 0&&(s=a);var i=null,c=s.connector,u=s.resetOnDisconnect,p=u===void 0?!0:u,l=c(),d=new t.Observable(function(f){return l.subscribe(f)});return d.connect=function(){return(!i||i.closed)&&(i=r.defer(function(){return n}).subscribe(l),p&&i.add(function(){return l=c()})),i},d}return Xs.connectable=o,Xs}var Js={},aP;function x$(){if(aP)return Js;aP=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.forkJoin=void 0;var e=qe(),t=wC(),r=we(),a=ft(),o=pe(),n=mn(),s=AC();function i(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var p=a.popResultSelector(c),l=t.argsArgArrayOrObject(c),d=l.args,f=l.keys,h=new e.Observable(function(m){var v=d.length;if(!v){m.complete();return}for(var g=new Array(v),_=v,b=v,y=function(x){var O=!1;r.innerFrom(d[x]).subscribe(o.createOperatorSubscriber(m,function(S){O||(O=!0,b--),g[x]=S},function(){return _--},void 0,function(){(!_||!O)&&(b||m.next(f?s.createObject(f,g):g),m.complete())}))},E=0;E<v;E++)y(E)});return p?h.pipe(n.mapOneOrManyArgs(p)):h}return Js.forkJoin=i,Js}var Yr={},oP;function O$(){if(oP)return Yr;oP=1;var e=Yr&&Yr.__read||function(m,v){var g=typeof Symbol=="function"&&m[Symbol.iterator];if(!g)return m;var _=g.call(m),b,y=[],E;try{for(;(v===void 0||v-- >0)&&!(b=_.next()).done;)y.push(b.value)}catch(x){E={error:x}}finally{try{b&&!b.done&&(g=_.return)&&g.call(_)}finally{if(E)throw E.error}}return y};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.fromEvent=void 0;var t=we(),r=qe(),a=Qt(),o=hg(),n=Ce(),s=mn(),i=["addListener","removeListener"],c=["addEventListener","removeEventListener"],u=["on","off"];function p(m,v,g,_){if(n.isFunction(g)&&(_=g,g=void 0),_)return p(m,v,g).pipe(s.mapOneOrManyArgs(_));var b=e(h(m)?c.map(function(x){return function(O){return m[x](v,O,g)}}):d(m)?i.map(l(m,v)):f(m)?u.map(l(m,v)):[],2),y=b[0],E=b[1];if(!y&&o.isArrayLike(m))return a.mergeMap(function(x){return p(x,v,g)})(t.innerFrom(m));if(!y)throw new TypeError("Invalid event target");return new r.Observable(function(x){var O=function(){for(var S=[],w=0;w<arguments.length;w++)S[w]=arguments[w];return x.next(1<S.length?S:S[0])};return y(O),function(){return E(O)}})}Yr.fromEvent=p;function l(m,v){return function(g){return function(_){return m[g](v,_)}}}function d(m){return n.isFunction(m.addListener)&&n.isFunction(m.removeListener)}function f(m){return n.isFunction(m.on)&&n.isFunction(m.off)}function h(m){return n.isFunction(m.addEventListener)&&n.isFunction(m.removeEventListener)}return Yr}var ec={},sP;function w$(){if(sP)return ec;sP=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.fromEventPattern=void 0;var e=qe(),t=Ce(),r=mn();function a(o,n,s){return s?a(o,n).pipe(r.mapOneOrManyArgs(s)):new e.Observable(function(i){var c=function(){for(var p=[],l=0;l<arguments.length;l++)p[l]=arguments[l];return i.next(p.length===1?p[0]:p)},u=o(c);return t.isFunction(n)?function(){return n(c,u)}:void 0})}return ec.fromEventPattern=a,ec}var Xr={},cP;function S$(){if(cP)return Xr;cP=1;var e=Xr&&Xr.__generator||function(s,i){var c={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,p,l,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(v){return h([m,v])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,p&&(l=m[0]&2?p.return:m[0]?p.throw||((l=p.return)&&l.call(p),0):p.next)&&!(l=l.call(p,m[1])).done)return l;switch(p=0,l&&(m=[m[0]&2,l.value]),m[0]){case 0:case 1:l=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,p=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(l=c.trys,!(l=l.length>0&&l[l.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!l||m[1]>l[0]&&m[1]<l[3])){c.label=m[1];break}if(m[0]===6&&c.label<l[1]){c.label=l[1],l=m;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(m);break}l[2]&&c.ops.pop(),c.trys.pop();continue}m=i.call(s,c)}catch(v){m=[6,v],p=0}finally{u=l=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.generate=void 0;var t=rt(),r=gp(),a=Ap(),o=SC();function n(s,i,c,u,p){var l,d,f,h;arguments.length===1?(l=s,h=l.initialState,i=l.condition,c=l.iterate,d=l.resultSelector,f=d===void 0?t.identity:d,p=l.scheduler):(h=s,!u||r.isScheduler(u)?(f=t.identity,p=u):f=u);function m(){var v;return e(this,function(g){switch(g.label){case 0:v=h,g.label=1;case 1:return!i||i(v)?[4,f(v)]:[3,4];case 2:g.sent(),g.label=3;case 3:return v=c(v),[3,1];case 4:return[2]}})}return a.defer(p?function(){return o.scheduleIterable(m(),p)}:m)}return Xr.generate=n,Xr}var tc={},uP;function P$(){if(uP)return tc;uP=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.iif=void 0;var e=Ap();function t(r,a,o){return e.defer(function(){return r()?a:o})}return tc.iif=t,tc}var rc={},lP;function T$(){if(lP)return rc;lP=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.merge=void 0;var e=Pl(),t=we(),r=Tt(),a=ft(),o=sr();function n(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];var c=a.popScheduler(s),u=a.popNumber(s,1/0),p=s;return p.length?p.length===1?t.innerFrom(p[0]):e.mergeAll(u)(o.from(p,c)):r.EMPTY}return rc.merge=n,rc}var fm={},dP;function pP(){return dP||(dP=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var t=qe(),r=tt();e.NEVER=new t.Observable(r.noop);function a(){return e.NEVER}e.never=a})(fm)),fm}var nc={},fP;function A$(){if(fP)return nc;fP=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.pairs=void 0;var e=sr();function t(r,a){return e.from(Object.entries(r),a)}return nc.pairs=t,nc}var ic={},hP;function R$(){if(hP)return ic;hP=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.partition=void 0;var e=vj(),t=ur(),r=we();function a(o,n,s){return[t.filter(n,s)(r.innerFrom(o)),t.filter(e.not(n,s))(r.innerFrom(o))]}return ic.partition=a,ic}var ac={},vP;function M$(){if(vP)return ac;vP=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.range=void 0;var e=qe(),t=Tt();function r(a,o,n){if(o==null&&(o=a,a=0),o<=0)return t.EMPTY;var s=o+a;return new e.Observable(n?function(i){var c=a;return n.schedule(function(){c<s?(i.next(c++),this.schedule()):i.complete()})}:function(i){for(var c=a;c<s&&!i.closed;)i.next(c++);i.complete()})}return ac.range=r,ac}var oc={},mP;function I$(){if(mP)return oc;mP=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.using=void 0;var e=qe(),t=we(),r=Tt();function a(o,n){return new e.Observable(function(s){var i=o(),c=n(i),u=c?t.innerFrom(c):r.EMPTY;return u.subscribe(s),function(){i&&i.unsubscribe()}})}return oc.using=a,oc}var hm={},_P;function C$(){return _P||(_P=1,Object.defineProperty(hm,"__esModule",{value:!0})),hm}var gP;function gn(){return gP||(gP=1,(function(e){var t=Ur&&Ur.__createBinding||(Object.create?(function(Tn,An,Mt,hr){hr===void 0&&(hr=Mt),Object.defineProperty(Tn,hr,{enumerable:!0,get:function(){return An[Mt]}})}):(function(Tn,An,Mt,hr){hr===void 0&&(hr=Mt),Tn[hr]=An[Mt]})),r=Ur&&Ur.__exportStar||function(Tn,An){for(var Mt in Tn)Mt!=="default"&&!Object.prototype.hasOwnProperty.call(An,Mt)&&t(An,Tn,Mt)};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 a=qe();Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return a.Observable}});var o=xp();Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var n=mp();Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return n.observable}});var s=n$();Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return s.animationFrames}});var i=nt();Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return i.Subject}});var c=gj();Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var u=Dg();Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return u.ReplaySubject}});var p=Fg();Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var l=c$();Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return l.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return l.asapScheduler}});var d=pt();Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var f=d$();Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return f.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return f.queueScheduler}});var h=h$();Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return h.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return h.animationFrameScheduler}});var m=v$();Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return m.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return m.VirtualAction}});var v=mC();Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var g=mt();Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return g.Subscription}});var _=El();Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return _.Subscriber}});var b=Rg();Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return b.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return b.NotificationKind}});var y=_p();Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return y.pipe}});var E=tt();Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return E.noop}});var x=rt();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return x.identity}});var O=m$();Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return O.isObservable}});var S=_$();Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});var w=g$();Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return w.firstValueFrom}});var T=GC();Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return T.ArgumentOutOfRangeError}});var A=_n();Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return A.EmptyError}});var P=jj();Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return P.NotFoundError}});var C=DC();Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return C.ObjectUnsubscribedError}});var D=Cj();Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return D.SequenceError}});var H=rp();Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return H.TimeoutError}});var F=cC();Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var z=b$();Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return z.bindCallback}});var Z=y$();Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return Z.bindNodeCallback}});var X=yg();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return X.combineLatest}});var k=Ep();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return k.concat}});var re=E$();Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return re.connectable}});var q=Ap();Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return q.defer}});var N=Tt();Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return N.empty}});var L=x$();Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return L.forkJoin}});var $=sr();Object.defineProperty(e,"from",{enumerable:!0,get:function(){return $.from}});var M=O$();Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return M.fromEvent}});var j=w$();Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return j.fromEventPattern}});var U=S$();Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return U.generate}});var K=P$();Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return K.iif}});var ee=Tj();Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return ee.interval}});var R=T$();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return R.merge}});var I=pP();Object.defineProperty(e,"never",{enumerable:!0,get:function(){return I.never}});var G=Ag();Object.defineProperty(e,"of",{enumerable:!0,get:function(){return G.of}});var Q=pj();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var oe=A$();Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return oe.pairs}});var J=R$();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return J.partition}});var le=xj();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return le.race}});var _e=M$();Object.defineProperty(e,"range",{enumerable:!0,get:function(){return _e.range}});var ye=zC();Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return ye.throwError}});var Pe=vn();Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return Pe.timer}});var Re=I$();Object.defineProperty(e,"using",{enumerable:!0,get:function(){return Re.using}});var Ee=zg();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Ee.zip}});var Te=TC();Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return Te.scheduled}});var me=Tt();Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return me.EMPTY}});var je=pP();Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return je.NEVER}}),r(C$(),e);var Ze=yl();Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Ze.config}});var be=_g();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return be.audit}});var Ve=_C();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Ve.auditTime}});var bi=gC();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return bi.buffer}});var yi=bC();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return yi.bufferCount}});var fr=yC();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return fr.bufferTime}});var B=EC();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return B.bufferToggle}});var V=xC();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return V.bufferWhen}});var W=OC();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return W.catchError}});var te=IC();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return te.combineAll}});var fe=Og();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return fe.combineLatestAll}});var De=jC();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return De.combineLatestWith}});var $e=bp();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return $e.concatAll}});var Oe=wg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Oe.concatMap}});var ie=NC();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return ie.concatMapTo}});var se=FC();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return se.concatWith}});var ue=yp();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return ue.connect}});var de=kC();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return de.count}});var Se=LC();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Se.debounce}});var Me=UC();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Me.debounceTime}});var ke=Tl();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return ke.defaultIfEmpty}});var at=$C();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return at.delay}});var Pn=Tg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return Pn.delayWhen}});var Ei=BC();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Ei.dematerialize}});var xi=HC();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return xi.distinct}});var $p=Mg();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return $p.distinctUntilChanged}});var zp=VC();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return zp.distinctUntilKeyChanged}});var Bp=WC();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Bp.elementAt}});var Hp=ZC();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Hp.endWith}});var Vp=KC();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Vp.every}});var Gp=YC();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return Gp.exhaust}});var Wp=Cg();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Wp.exhaustAll}});var Zp=Ig();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Zp.exhaustMap}});var Kp=XC();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return Kp.expand}});var Yp=ur();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return Yp.filter}});var Xp=QC();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Xp.finalize}});var Qp=jg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return Qp.find}});var Jp=JC();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Jp.findIndex}});var ef=ej();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return ef.first}});var tf=tj();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return tf.groupBy}});var rf=Sg();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return rf.ignoreElements}});var nf=rj();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return nf.isEmpty}});var af=nj();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return af.last}});var of=cr();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return of.map}});var sf=Pg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return sf.mapTo}});var cf=ij();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return cf.materialize}});var uf=aj();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return uf.max}});var lf=Pl();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return lf.mergeAll}});var df=sj();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return df.flatMap}});var pf=Qt();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return pf.mergeMap}});var ff=cj();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return ff.mergeMapTo}});var hf=uj();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return hf.mergeScan}});var KN=lj();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return KN.mergeWith}});var YN=dj();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return YN.min}});var XN=Op();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return XN.multicast}});var QN=wl();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return QN.observeOn}});var JN=fj();Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return JN.onErrorResumeNextWith}});var eF=hj();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return eF.pairwise}});var tF=mj();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return tF.pluck}});var rF=_j();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return rF.publish}});var nF=bj();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return nF.publishBehavior}});var iF=yj();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return iF.publishLast}});var aF=Ej();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return aF.publishReplay}});var oF=kg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return oF.raceWith}});var sF=li();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return sF.reduce}});var cF=Oj();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return cF.repeat}});var uF=wj();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return uF.repeatWhen}});var lF=Sj();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return lF.retry}});var dF=Pj();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return dF.retryWhen}});var pF=Ng();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return pF.refCount}});var fF=Lg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return fF.sample}});var hF=Aj();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return hF.sampleTime}});var vF=Rj();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return vF.scan}});var mF=Mj();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return mF.sequenceEqual}});var _F=Ug();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return _F.share}});var gF=Ij();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return gF.shareReplay}});var bF=qj();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return bF.single}});var yF=Nj();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return yF.skip}});var EF=Fj();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return EF.skipLast}});var xF=Dj();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return xF.skipUntil}});var OF=kj();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return OF.skipWhile}});var wF=Lj();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return wF.startWith}});var SF=Sl();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return SF.subscribeOn}});var PF=Uj();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return PF.switchAll}});var TF=Ml();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return TF.switchMap}});var AF=$j();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return AF.switchMapTo}});var RF=zj();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return RF.switchScan}});var MF=Al();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return MF.take}});var IF=qg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return IF.takeLast}});var CF=Bj();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return CF.takeUntil}});var jF=Hj();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return jF.takeWhile}});var qF=Vj();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return qF.tap}});var NF=$g();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return NF.throttle}});var FF=Gj();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return FF.throttleTime}});var DF=Rl();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return DF.throwIfEmpty}});var kF=Wj();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return kF.timeInterval}});var LF=rp();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return LF.timeout}});var UF=Zj();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return UF.timeoutWith}});var $F=Kj();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return $F.timestamp}});var zF=xg();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return zF.toArray}});var BF=Yj();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return BF.window}});var HF=Xj();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return HF.windowCount}});var VF=Qj();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return VF.windowTime}});var GF=Jj();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return GF.windowToggle}});var WF=eq();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return WF.windowWhen}});var ZF=tq();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return ZF.withLatestFrom}});var KF=nq();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return KF.zipAll}});var YF=iq();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return YF.zipWith}})})(Ur)),Ur}var bP;function Jg(){if(bP)return Ge;bP=1;var e=Ge&&Ge.__createBinding||(Object.create?(function(g,_,b,y){y===void 0&&(y=b);var E=Object.getOwnPropertyDescriptor(_,b);(!E||("get"in E?!_.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return _[b]}}),Object.defineProperty(g,y,E)}):(function(g,_,b,y){y===void 0&&(y=b),g[y]=_[b]})),t=Ge&&Ge.__setModuleDefault||(Object.create?(function(g,_){Object.defineProperty(g,"default",{enumerable:!0,value:_})}):function(g,_){g.default=_}),r=Ge&&Ge.__decorate||function(g,_,b,y){var E=arguments.length,x=E<3?_:y===null?y=Object.getOwnPropertyDescriptor(_,b):y,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(g,_,b,y);else for(var S=g.length-1;S>=0;S--)(O=g[S])&&(x=(E<3?O(x):E>3?O(_,b,x):O(_,b))||x);return E>3&&x&&Object.defineProperty(_,b,x),x},a=Ge&&Ge.__importStar||(function(){var g=function(_){return g=Object.getOwnPropertyNames||function(b){var y=[];for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(y[y.length]=E);return y},g(_)};return function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var y=g(_),E=0;E<y.length;E++)y[E]!=="default"&&e(b,_,y[E]);return t(b,_),b}})(),o=Ge&&Ge.__metadata||function(g,_){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(g,_)},n=Ge&&Ge.__param||function(g,_){return function(b,y){_(b,y,g)}},s=Ge&&Ge.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.ConfigService=void 0;const i=ve(),c=ne(),u=a(oq()),p=s(ai),l=s(VU()),d=s(XU()),f=s(uq()),h=gn(),m=Il();let v=class{set isCacheEnabled(_){this._isCacheEnabled=_}get isCacheEnabled(){return this._isCacheEnabled}set skipProcessEnv(_){this._skipProcessEnv=_}get skipProcessEnv(){return this._skipProcessEnv}constructor(_={}){this.internalConfig=_,this.cache={},this._changes$=new h.Subject,this._skipProcessEnv=!1,this._isCacheEnabled=!1,this.envFilePaths=[]}get changes$(){return this._changes$.asObservable()}get(_,b,y){const E=this.getFromInternalConfig(_);if(!(0,c.isUndefined)(E))return E;const x=this.getFromValidatedEnv(_);if(!(0,c.isUndefined)(x))return x;const O=this.isGetOptionsObject(b)&&!y?void 0:b;if(!this._skipProcessEnv){const S=this.getFromProcessEnv(_,O);if(!(0,c.isUndefined)(S))return S}return O}getOrThrow(_,b,y){const E=this.get(_,b,y);if((0,c.isUndefined)(E))throw new TypeError(`Configuration key "${_.toString()}" does not exist`);return E}set(_,b){const y=this.get(_);(0,f.default)(this.internalConfig,_,b),typeof _=="string"&&(process.env[_]=String(b),this.updateInterpolatedEnv(_,String(b))),this.isCacheEnabled&&this.setInCacheIfDefined(_,b),this._changes$.next({path:_,oldValue:y,newValue:b})}setEnvFilePaths(_){this.envFilePaths=_}getFromCache(_,b){const y=(0,l.default)(this.cache,_);return(0,c.isUndefined)(y)?b:y}getFromValidatedEnv(_){return(0,l.default)(this.internalConfig[m.VALIDATED_ENV_PROPNAME],_)}getFromProcessEnv(_,b){if(this.isCacheEnabled&&(0,d.default)(this.cache,_)){const E=this.getFromCache(_,b);return(0,c.isUndefined)(E)?b:E}const y=(0,l.default)(process.env,_);return this.setInCacheIfDefined(_,y),y}getFromInternalConfig(_){return(0,l.default)(this.internalConfig,_)}setInCacheIfDefined(_,b){typeof b>"u"||(0,f.default)(this.cache,_,b)}isGetOptionsObject(_){return _&&_?.infer&&Object.keys(_).length===1}updateInterpolatedEnv(_,b){let y={};for(const x of this.envFilePaths)p.default.existsSync(x)&&(y=Object.assign(u.parse(p.default.readFileSync(x)),y));const E=new RegExp(`\\$\\{?${_}\\}?`,"g");for(const[x,O]of Object.entries(y))E.test(O)&&(process.env[x]=O.replace(E,b))}};return Ge.ConfigService=v,Ge.ConfigService=v=r([(0,i.Injectable)(),n(0,(0,i.Optional)()),n(0,(0,i.Inject)(m.CONFIGURATION_TOKEN)),o("design:paramtypes",[Object])],v),Ge}var yP;function j$(){if(yP)return er;yP=1;var e=er&&er.__decorate||function(n,s,i,c){var u=arguments.length,p=u<3?s:c===null?c=Object.getOwnPropertyDescriptor(s,i):c,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(n,s,i,c);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(p=(u<3?l(p):u>3?l(s,i,p):l(s,i))||p);return u>3&&p&&Object.defineProperty(s,i,p),p};Object.defineProperty(er,"__esModule",{value:!0}),er.ConfigHostModule=void 0;const t=ve(),r=Il(),a=Jg();let o=class{};return er.ConfigHostModule=o,er.ConfigHostModule=o=e([(0,t.Global)(),(0,t.Module)({providers:[{provide:r.CONFIGURATION_TOKEN,useFactory:()=>({})},{provide:r.CONFIGURATION_SERVICE_TOKEN,useClass:a.ConfigService}],exports:[r.CONFIGURATION_TOKEN,r.CONFIGURATION_SERVICE_TOKEN]})],o),er}var yd={},Ed={},EP;function eb(){if(EP)return Ed;EP=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.getConfigToken=e;function e(t){return`CONFIGURATION(${t.toString()})`}return Ed}var xP;function q$(){if(xP)return yd;xP=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.createConfigProvider=r;const e=eb(),t=oi;function r(a){return{provide:a.KEY||(0,e.getConfigToken)((0,t.randomUUID)()),useFactory:a,inject:[]}}return yd}var xd={},OP;function N$(){if(OP)return xd;OP=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.getRegistrationToken=t;const e=Il();function t(r){return r[e.PARTIAL_CONFIGURATION_KEY]}return xd}var Vn={},wP;function F$(){if(wP)return Vn;wP=1;var e=Vn&&Vn.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.mergeConfigObject=r;const t=e(uq());function r(a,o,n){if(n)return(0,t.default)(a,n,o),o;Object.assign(a,o)}return Vn}var SP;function pq(){if(SP)return ct;SP=1;var e=ct&&ct.__createBinding||(Object.create?(function(_,b,y,E){E===void 0&&(E=y);var x=Object.getOwnPropertyDescriptor(b,y);(!x||("get"in x?!b.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return b[y]}}),Object.defineProperty(_,E,x)}):(function(_,b,y,E){E===void 0&&(E=y),_[E]=b[y]})),t=ct&&ct.__setModuleDefault||(Object.create?(function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}):function(_,b){_.default=b}),r=ct&&ct.__decorate||function(_,b,y,E){var x=arguments.length,O=x<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,y):E,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(_,b,y,E);else for(var w=_.length-1;w>=0;w--)(S=_[w])&&(O=(x<3?S(O):x>3?S(b,y,O):S(b,y))||O);return x>3&&O&&Object.defineProperty(b,y,O),O},a=ct&&ct.__importStar||(function(){var _=function(b){return _=Object.getOwnPropertyNames||function(y){var E=[];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(E[E.length]=x);return E},_(b)};return function(b){if(b&&b.__esModule)return b;var y={};if(b!=null)for(var E=_(b),x=0;x<E.length;x++)E[x]!=="default"&&e(y,b,E[x]);return t(y,b),y}})(),o;Object.defineProperty(ct,"__esModule",{value:!0}),ct.ConfigModule=void 0;const n=ve(),s=ne(),i=a(oq()),c=sU(),u=a(ai),p=Yt,l=j$(),d=Il(),f=Jg(),h=q$(),m=N$(),v=F$();let g=o=class{static get envVariablesLoaded(){return this._envVariablesLoaded}static async forRoot(b={}){const y=Array.isArray(b.envFilePath)?b.envFilePath:[b.envFilePath||(0,p.resolve)(process.cwd(),".env")];let E,x=b.ignoreEnvFile?{}:this.loadEnvFile(y,b);if(!b.ignoreEnvVars&&b.validatePredefined!==!1&&(x={...x,...process.env}),b.validate){const P=b.validate(x);E=P,this.assignVariablesToProcess(P)}else if(b.validationSchema){const P=this.getSchemaValidationOptions(b),{error:C,value:D}=b.validationSchema.validate(x,P);if(C)throw new Error(`Config validation error: ${C.message}`);E=D,this.assignVariablesToProcess(D)}else this.assignVariablesToProcess(x);const O=b.load&&b.load.length,w=(await Promise.all(b.load||[])).map(P=>(0,h.createConfigProvider)(P)).filter(P=>P),T=w.map(P=>P.provide),A={provide:f.ConfigService,useFactory:P=>{const C=P;return b.cache&&(C.isCacheEnabled=!0),b.skipProcessEnv&&(C.skipProcessEnv=!0),P.setEnvFilePaths(y),P},inject:[d.CONFIGURATION_SERVICE_TOKEN,...T]};if(w.push(A),E){const P={provide:d.VALIDATED_ENV_LOADER,useFactory:C=>{C[d.VALIDATED_ENV_PROPNAME]=E},inject:[d.CONFIGURATION_TOKEN]};w.push(P)}return this.environmentVariablesLoadedSignal(),{module:o,global:b.isGlobal,providers:O?[...w,{provide:d.CONFIGURATION_LOADER,useFactory:(P,...C)=>{C.forEach((D,H)=>this.mergePartial(P,D,w[H]))},inject:[d.CONFIGURATION_TOKEN,...T]}]:w,exports:[f.ConfigService,...T]}}static forFeature(b){const y=(0,h.createConfigProvider)(b),E={provide:f.ConfigService,useFactory:x=>x,inject:[d.CONFIGURATION_SERVICE_TOKEN,y.provide]};return{module:o,providers:[y,E,{provide:d.CONFIGURATION_LOADER,useFactory:(x,O)=>{this.mergePartial(x,O,y)},inject:[d.CONFIGURATION_TOKEN,y.provide]}],exports:[f.ConfigService,y.provide]}}static loadEnvFile(b,y){let E={};for(const x of b)if(u.existsSync(x)&&(E=Object.assign(i.parse(u.readFileSync(x)),E),y.expandVariables)){const O=typeof y.expandVariables=="object"?y.expandVariables:{};E=(0,c.expand)({...O,parsed:E}).parsed||E}return E}static assignVariablesToProcess(b){if(!(0,s.isObject)(b))return;Object.keys(b).filter(E=>!(E in process.env)).forEach(E=>{const x=b[E];typeof x=="string"?process.env[E]=x:(typeof x=="boolean"||typeof x=="number")&&(process.env[E]=`${x}`)})}static mergePartial(b,y,E){const x=E.useFactory,O=(0,m.getRegistrationToken)(x);(0,v.mergeConfigObject)(b,y,O)}static getSchemaValidationOptions(b){return b.validationOptions?(typeof b.validationOptions.allowUnknown>"u"&&(b.validationOptions.allowUnknown=!0),b.validationOptions):{abortEarly:!1,allowUnknown:!0}}};return ct.ConfigModule=g,g._envVariablesLoaded=new Promise(_=>o.environmentVariablesLoadedSignal=_),ct.ConfigModule=g=o=r([(0,n.Module)({imports:[l.ConfigHostModule],providers:[{provide:f.ConfigService,useExisting:d.CONFIGURATION_SERVICE_TOKEN}],exports:[l.ConfigHostModule,f.ConfigService]})],g),ct}var PP;function D$(){if(PP)return Hs;PP=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.ConditionalModule=void 0;const e=ve(),t=pq(),r=o=>o?.forwardRef?o.forwardRef()?.name:o.module?o.module?.name:o.name;class a{static async registerWhen(n,s,i){const{timeout:c=5e3,debug:u=!0}=i??{},p=r(n)||n.toString(),l=setTimeout(()=>{throw new Error(`Nest was not able to resolve the config variables within ${c} milliseconds. Bause of this, the ConditionalModule was not able to determine if ${p} should be registered or not`)},c);l.unref();const d={module:a,imports:[],exports:[]};if(typeof s=="string"){const h=s;s=m=>m[h]?.toLowerCase()!=="false"}return await t.ConfigModule.envVariablesLoaded,clearTimeout(l),s(process.env)?(d.imports.push(n),d.exports.push(n)):u&&e.Logger.debug(`${s.toString()} evaluated to false. Skipping the registration of ${p}`,a.name),d}}return Hs.ConditionalModule=a,Hs}var Qr={},vm={},TP;function k$(){return TP||(TP=1,Object.defineProperty(vm,"__esModule",{value:!0})),vm}var mm={},AP;function L$(){return AP||(AP=1,Object.defineProperty(mm,"__esModule",{value:!0})),mm}var _m={},RP;function U$(){return RP||(RP=1,Object.defineProperty(_m,"__esModule",{value:!0})),_m}var gm={},MP;function $$(){return MP||(MP=1,Object.defineProperty(gm,"__esModule",{value:!0})),gm}var IP;function z$(){return IP||(IP=1,(function(e){var t=Qr&&Qr.__createBinding||(Object.create?(function(a,o,n,s){s===void 0&&(s=n);var i=Object.getOwnPropertyDescriptor(o,n);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(a,s,i)}):(function(a,o,n,s){s===void 0&&(s=n),a[s]=o[n]})),r=Qr&&Qr.__exportStar||function(a,o){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(o,n)&&t(o,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(k$(),e),r(L$(),e),r(U$(),e),r($$(),e)})(Qr)),Qr}var Jr={},Od={},CP;function B$(){if(CP)return Od;CP=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.registerAs=a;const e=fq(),t=Il(),r=eb();function a(o,n){const s=(i,c)=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!1,value:c,writable:!1})};return s(t.PARTIAL_CONFIGURATION_KEY,o),s(t.PARTIAL_CONFIGURATION_PROPNAME,(0,r.getConfigToken)(o)),s(t.AS_PROVIDER_METHOD_KEY,()=>({imports:[e.ConfigModule.forFeature(n)],useFactory:i=>i,inject:[(0,r.getConfigToken)(o)]})),n}return Od}var jP;function H$(){return jP||(jP=1,(function(e){var t=Jr&&Jr.__createBinding||(Object.create?(function(a,o,n,s){s===void 0&&(s=n);var i=Object.getOwnPropertyDescriptor(o,n);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(a,s,i)}):(function(a,o,n,s){s===void 0&&(s=n),a[s]=o[n]})),r=Jr&&Jr.__exportStar||function(a,o){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(o,n)&&t(o,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(B$(),e),r(eb(),e)})(Jr)),Jr}var en={},bm={},qP;function V$(){return qP||(qP=1,Object.defineProperty(bm,"__esModule",{value:!0})),bm}var ym={},NP;function G$(){return NP||(NP=1,Object.defineProperty(ym,"__esModule",{value:!0})),ym}var Em={},FP;function W$(){return FP||(FP=1,Object.defineProperty(Em,"__esModule",{value:!0})),Em}var DP;function Z$(){return DP||(DP=1,(function(e){var t=en&&en.__createBinding||(Object.create?(function(a,o,n,s){s===void 0&&(s=n);var i=Object.getOwnPropertyDescriptor(o,n);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(a,s,i)}):(function(a,o,n,s){s===void 0&&(s=n),a[s]=o[n]})),r=en&&en.__exportStar||function(a,o){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(o,n)&&t(o,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(V$(),e),r(G$(),e),r(W$(),e)})(en)),en}var kP;function fq(){return kP||(kP=1,(function(e){var t=Lr&&Lr.__createBinding||(Object.create?(function(a,o,n,s){s===void 0&&(s=n);var i=Object.getOwnPropertyDescriptor(o,n);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[n]}}),Object.defineProperty(a,s,i)}):(function(a,o,n,s){s===void 0&&(s=n),a[s]=o[n]})),r=Lr&&Lr.__exportStar||function(a,o){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(o,n)&&t(o,a,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(D$(),e),r(pq(),e),r(Jg(),e),r(z$(),e),r(H$(),e),r(Z$(),e)})(Lr)),Lr}var LP;function K$(){return LP||(LP=1,(function(e){function t(r){for(var a in r)e.hasOwnProperty(a)||(e[a]=r[a])}e.__esModule=!0,t(fq())})(Xh)),Xh}var np=K$();const Y$=(e,t=process.env)=>{const r=e.safeParse(t);if(!r.success)throw new Error(`Invalid environment variables: ${JSON.stringify(r.error.issues)}`);return r.data},X$=[];for(let e=0;e<256;++e)X$.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function he(e,t,r){function a(i,c){var u;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(u=i._zod).traits??(u.traits=new Set),i._zod.traits.add(e),t(i,c);for(const p in s.prototype)p in i||Object.defineProperty(i,p,{value:s.prototype[p].bind(i)});i._zod.constr=s,i._zod.def=c}const o=r?.Parent??Object;class n extends o{}Object.defineProperty(n,"name",{value:e});function s(i){var c;const u=r?.Parent?new n:this;a(u,i),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:a}),Object.defineProperty(s,Symbol.hasInstance,{value:i=>r?.Parent&&i instanceof r.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ti extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class hq extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const vq={};function cn(e){return vq}function Q$(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function tg(e,t){return typeof t=="bigint"?t.toString():t}function tb(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function rb(e){return e==null}function nb(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function J$(e,t){const r=(e.toString().split(".")[1]||"").length,a=t.toString();let o=(a.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(a)){const c=a.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const n=r>o?r:o,s=Number.parseInt(e.toFixed(n).replace(".","")),i=Number.parseInt(t.toFixed(n).replace(".",""));return s%i/10**n}const UP=Symbol("evaluating");function Ne(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==UP)return a===void 0&&(a=UP,a=r()),a},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function bn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function yn(...e){const t={};for(const r of e){const a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function $P(e){return JSON.stringify(e)}const mq="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ip(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ez=tb(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function pl(e){if(ip(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(ip(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function _q(e){return pl(e)?{...e}:Array.isArray(e)?[...e]:e}const tz=new Set(["string","number","symbol"]);function rz(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lr(e,t,r){const a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function We(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new 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 nz(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const iz={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function az(e,t){const r=e._zod.def,a=yn(e._zod.def,{get shape(){const o={};for(const n in t){if(!(n in r.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&(o[n]=r.shape[n])}return bn(this,"shape",o),o},checks:[]});return lr(e,a)}function oz(e,t){const r=e._zod.def,a=yn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const n in t){if(!(n in r.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&delete o[n]}return bn(this,"shape",o),o},checks:[]});return lr(e,a)}function sz(e,t){if(!pl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const a=yn(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return bn(this,"shape",o),o},checks:[]});return lr(e,a)}function cz(e,t){if(!pl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const a={...e._zod.def.shape,...t};return bn(this,"shape",a),a},checks:e._zod.def.checks};return lr(e,r)}function uz(e,t){const r=yn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return bn(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return lr(e,r)}function lz(e,t,r){const a=yn(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(n[s]=e?new e({type:"optional",innerType:o[s]}):o[s])}else for(const s in o)n[s]=e?new e({type:"optional",innerType:o[s]}):o[s];return bn(this,"shape",n),n},checks:[]});return lr(t,a)}function dz(e,t,r){const a=yn(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const s in r){if(!(s in n))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(n[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)n[s]=new e({type:"nonoptional",innerType:o[s]});return bn(this,"shape",n),n},checks:[]});return lr(t,a)}function Jn(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function gq(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function wd(e){return typeof e=="string"?e:e?.message}function un(e,t,r){const a={...e,path:e.path??[]};if(!e.message){const o=wd(e.inst?._zod.def?.error?.(e))??wd(t?.error?.(e))??wd(r.customError?.(e))??wd(r.localeError?.(e))??"Invalid input";a.message=o}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function ib(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function fl(...e){const[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}const bq=(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,tg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yq=he("$ZodError",bq),Eq=he("$ZodError",bq,{Parent:Error});function pz(e,t=r=>r.message){const r={},a=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):a.push(t(o));return{formErrors:a,fieldErrors:r}}function fz(e,t=r=>r.message){const r={_errors:[]},a=o=>{for(const n of o.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(s=>a({issues:s}));else if(n.code==="invalid_key")a({issues:n.issues});else if(n.code==="invalid_element")a({issues:n.issues});else if(n.path.length===0)r._errors.push(t(n));else{let s=r,i=0;for(;i<n.path.length;){const c=n.path[i];i===n.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(n))):s[c]=s[c]||{_errors:[]},s=s[c],i++}}};return a(e),r}const ab=e=>(t,r,a,o)=>{const n=a?Object.assign(a,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise)throw new ti;if(s.issues.length){const i=new(o?.Err??e)(s.issues.map(c=>un(c,n,cn())));throw mq(i,o?.callee),i}return s.value},ob=e=>async(t,r,a,o)=>{const n=a?Object.assign(a,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise&&(s=await s),s.issues.length){const i=new(o?.Err??e)(s.issues.map(c=>un(c,n,cn())));throw mq(i,o?.callee),i}return s.value},Rp=e=>(t,r,a)=>{const o=a?{...a,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},o);if(n instanceof Promise)throw new ti;return n.issues.length?{success:!1,error:new(e??yq)(n.issues.map(s=>un(s,o,cn())))}:{success:!0,data:n.value}},hz=Rp(Eq),Mp=e=>async(t,r,a)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let n=t._zod.run({value:r,issues:[]},o);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(s=>un(s,o,cn())))}:{success:!0,data:n.value}},vz=Mp(Eq),mz=e=>(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ab(e)(t,r,o)},_z=e=>(t,r,a)=>ab(e)(t,r,a),gz=e=>async(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ob(e)(t,r,o)},bz=e=>async(t,r,a)=>ob(e)(t,r,a),yz=e=>(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Rp(e)(t,r,o)},Ez=e=>(t,r,a)=>Rp(e)(t,r,a),xz=e=>async(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Mp(e)(t,r,o)},Oz=e=>async(t,r,a)=>Mp(e)(t,r,a),wz=/^-?\d+$/,Sz=/^-?\d+(?:\.\d+)?/,At=he("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),xq={number:"number",bigint:"bigint",object:"date"},Oq=he("$ZodCheckLessThan",(e,t)=>{At.init(e,t);const r=xq[typeof t.value];e._zod.onattach.push(a=>{const o=a._zod.bag,n=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<n&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wq=he("$ZodCheckGreaterThan",(e,t)=>{At.init(e,t);const r=xq[typeof t.value];e._zod.onattach.push(a=>{const o=a._zod.bag,n=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>n&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pz=he("$ZodCheckMultipleOf",(e,t)=>{At.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):J$(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Tz=he("$ZodCheckNumberFormat",(e,t)=>{At.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),a=r?"int":"number",[o,n]=iz[t.format];e._zod.onattach.push(s=>{const i=s._zod.bag;i.format=t.format,i.minimum=o,i.maximum=n,r&&(i.pattern=wz)}),e._zod.check=s=>{const i=s.value;if(r){if(!Number.isInteger(i)){s.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:i,inst:e});return}if(!Number.isSafeInteger(i)){i>0?s.issues.push({input:i,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,continue:!t.abort}):s.issues.push({input:i,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,continue:!t.abort});return}}i<o&&s.issues.push({origin:"number",input:i,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),i>n&&s.issues.push({origin:"number",input:i,code:"too_big",maximum:n,inst:e})}}),Az=he("$ZodCheckMaxLength",(e,t)=>{var r;At.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!rb(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{const o=a.value;if(o.length<=t.maximum)return;const n=ib(o);a.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Rz=he("$ZodCheckMinLength",(e,t)=>{var r;At.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!rb(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const o=a.value;if(o.length>=t.minimum)return;const n=ib(o);a.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Mz=he("$ZodCheckLengthEquals",(e,t)=>{var r;At.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!rb(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=a=>{const o=a.value,n=o.length;if(n===t.length)return;const s=ib(o),i=n>t.length;a.issues.push({origin:s,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Iz=he("$ZodCheckOverwrite",(e,t)=>{At.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Cz{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
24
|
+
`).filter(n=>n),a=Math.min(...r.map(n=>n.length-n.trimStart().length)),o=r.map(n=>n.slice(a)).map(n=>" ".repeat(this.indent*2)+n);for(const n of o)this.content.push(n)}compile(){const t=Function,r=this?.args,a=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,a.join(`
|
|
25
|
+
`))}}const jz={major:4,minor:1,patch:12},Ye=he("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=jz;const a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(const o of a)for(const n of o._zod.onattach)n(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,i,c)=>{let u=Jn(s),p;for(const l of i){if(l._zod.def.when){if(!l._zod.def.when(s))continue}else if(u)continue;const d=s.issues.length,f=l._zod.check(s);if(f instanceof Promise&&c?.async===!1)throw new ti;if(p||f instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await f,s.issues.length!==d&&(u||(u=Jn(s,d)))});else{if(s.issues.length===d)continue;u||(u=Jn(s,d))}}return p?p.then(()=>s):s},n=(s,i,c)=>{if(Jn(s))return s.aborted=!0,s;const u=o(i,a,c);if(u instanceof Promise){if(c.async===!1)throw new ti;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(s,i)=>{if(i.skipChecks)return e._zod.parse(s,i);if(i.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...i,skipChecks:!0});return u instanceof Promise?u.then(p=>n(p,s,i)):n(u,s,i)}const c=e._zod.parse(s,i);if(c instanceof Promise){if(i.async===!1)throw new ti;return c.then(u=>o(u,a,i))}return o(c,a,i)}}e["~standard"]={validate:o=>{try{const n=hz(e,o);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return vz(e,o).then(n=>n.success?{value:n.data}:{issues:n.error?.issues})}},vendor:"zod",version:1}}),Sq=he("$ZodNumber",(e,t)=>{Ye.init(e,t),e._zod.pattern=e._zod.bag.pattern??Sz,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;const n=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...n?{received:n}:{}}),r}}),qz=he("$ZodNumber",(e,t)=>{Tz.init(e,t),Sq.init(e,t)}),Nz=he("$ZodUnknown",(e,t)=>{Ye.init(e,t),e._zod.parse=r=>r}),Fz=he("$ZodNever",(e,t)=>{Ye.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function zP(e,t,r){e.issues.length&&t.issues.push(...gq(r,e.issues)),t.value[r]=e.value}const Dz=he("$ZodArray",(e,t)=>{Ye.init(e,t),e._zod.parse=(r,a)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const n=[];for(let s=0;s<o.length;s++){const i=o[s],c=t.element._zod.run({value:i,issues:[]},a);c instanceof Promise?n.push(c.then(u=>zP(u,r,s))):zP(c,r,s)}return n.length?Promise.all(n).then(()=>r):r}});function ap(e,t,r,a){e.issues.length&&t.issues.push(...gq(r,e.issues)),e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function Pq(e){const t=Object.keys(e.shape);for(const a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const r=nz(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Tq(e,t,r,a,o,n){const s=[],i=o.keySet,c=o.catchall._zod,u=c.def.type;for(const p of Object.keys(t)){if(i.has(p))continue;if(u==="never"){s.push(p);continue}const l=c.run({value:t[p],issues:[]},a);l instanceof Promise?e.push(l.then(d=>ap(d,r,p,t))):ap(l,r,p,t)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:n}),e.length?Promise.all(e).then(()=>r):r}const kz=he("$ZodObject",(e,t)=>{if(Ye.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const i={...s};return Object.defineProperty(t,"shape",{value:i}),i}})}const r=tb(()=>Pq(t));Ne(e._zod,"propValues",()=>{const s=t.shape,i={};for(const c in s){const u=s[c]._zod;if(u.values){i[c]??(i[c]=new Set);for(const p of u.values)i[c].add(p)}}return i});const a=ip,o=t.catchall;let n;e._zod.parse=(s,i)=>{n??(n=r.value);const c=s.value;if(!a(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};const u=[],p=n.shape;for(const l of n.keys){const d=p[l]._zod.run({value:c[l],issues:[]},i);d instanceof Promise?u.push(d.then(f=>ap(f,s,l,c))):ap(d,s,l,c)}return o?Tq(u,c,s,i,r.value,e):u.length?Promise.all(u).then(()=>s):s}}),Lz=he("$ZodObjectJIT",(e,t)=>{kz.init(e,t);const r=e._zod.parse,a=tb(()=>Pq(t)),o=l=>{const d=new Cz(["shape","payload","ctx"]),f=a.value,h=_=>{const b=$P(_);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};d.write("const input = payload.value;");const m=Object.create(null);let v=0;for(const _ of f.keys)m[_]=`key_${v++}`;d.write("const newResult = {};");for(const _ of f.keys){const b=m[_],y=$P(_);d.write(`const ${b} = ${h(_)};`),d.write(`
|
|
26
|
+
if (${b}.issues.length) {
|
|
27
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
28
|
+
...iss,
|
|
29
|
+
path: iss.path ? [${y}, ...iss.path] : [${y}]
|
|
30
|
+
})));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
if (${b}.value === undefined) {
|
|
35
|
+
if (${y} in input) {
|
|
36
|
+
newResult[${y}] = undefined;
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
newResult[${y}] = ${b}.value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
`)}d.write("payload.value = newResult;"),d.write("return payload;");const g=d.compile();return(_,b)=>g(l,_,b)};let n;const s=ip,i=!vq.jitless,c=i&&ez.value,u=t.catchall;let p;e._zod.parse=(l,d)=>{p??(p=a.value);const f=l.value;return s(f)?i&&c&&d?.async===!1&&d.jitless!==!0?(n||(n=o(t.shape)),l=n(l,d),u?Tq([],f,l,d,p,e):l):r(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),l)}});function BP(e,t,r,a){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const o=e.filter(n=>!Jn(n));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(s=>un(s,a,cn())))}),t)}const Uz=he("$ZodUnion",(e,t)=>{Ye.init(e,t),Ne(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ne(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ne(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ne(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>nb(n.source)).join("|")})$`)}});const r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(o,n)=>{if(r)return a(o,n);let s=!1;const i=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},n);if(u instanceof Promise)i.push(u),s=!0;else{if(u.issues.length===0)return u;i.push(u)}}return s?Promise.all(i).then(c=>BP(c,o,e,n)):BP(i,o,e,n)}}),$z=he("$ZodIntersection",(e,t)=>{Ye.init(e,t),e._zod.parse=(r,a)=>{const o=r.value,n=t.left._zod.run({value:o,issues:[]},a),s=t.right._zod.run({value:o,issues:[]},a);return n instanceof Promise||s instanceof Promise?Promise.all([n,s]).then(([i,c])=>HP(r,i,c)):HP(r,n,s)}});function rg(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(pl(e)&&pl(t)){const r=Object.keys(t),a=Object.keys(e).filter(n=>r.indexOf(n)!==-1),o={...e,...t};for(const n of a){const s=rg(e[n],t[n]);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};o[n]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let a=0;a<e.length;a++){const o=e[a],n=t[a],s=rg(o,n);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function HP(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Jn(e))return e;const a=rg(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const zz=he("$ZodEnum",(e,t)=>{Ye.init(e,t);const r=Q$(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(o=>tz.has(typeof o)).map(o=>typeof o=="string"?rz(o):o.toString()).join("|")})$`),e._zod.parse=(o,n)=>{const s=o.value;return a.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),Bz=he("$ZodTransform",(e,t)=>{Ye.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new hq(e.constructor.name);const o=t.transform(r.value,r);if(a.async)return(o instanceof Promise?o:Promise.resolve(o)).then(n=>(r.value=n,r));if(o instanceof Promise)throw new ti;return r.value=o,r}});function VP(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Hz=he("$ZodOptional",(e,t)=>{Ye.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ne(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${nb(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>VP(n,r.value)):VP(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),Vz=he("$ZodNullable",(e,t)=>{Ye.init(e,t),Ne(e._zod,"optin",()=>t.innerType._zod.optin),Ne(e._zod,"optout",()=>t.innerType._zod.optout),Ne(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${nb(r.source)}|null)$`):void 0}),Ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),Gz=he("$ZodDefault",(e,t)=>{Ye.init(e,t),e._zod.optin="optional",Ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>GP(n,t)):GP(o,t)}});function GP(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Wz=he("$ZodPrefault",(e,t)=>{Ye.init(e,t),e._zod.optin="optional",Ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),Zz=he("$ZodNonOptional",(e,t)=>{Ye.init(e,t),Ne(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>WP(n,e)):WP(o,e)}});function WP(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Kz=he("$ZodCatch",(e,t)=>{Ye.init(e,t),Ne(e._zod,"optin",()=>t.innerType._zod.optin),Ne(e._zod,"optout",()=>t.innerType._zod.optout),Ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(s=>un(s,a,cn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(n=>un(n,a,cn()))},input:r.value}),r.issues=[]),r)}}),Yz=he("$ZodPipe",(e,t)=>{Ye.init(e,t),Ne(e._zod,"values",()=>t.in._zod.values),Ne(e._zod,"optin",()=>t.in._zod.optin),Ne(e._zod,"optout",()=>t.out._zod.optout),Ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){const n=t.out._zod.run(r,a);return n instanceof Promise?n.then(s=>Sd(s,t.in,a)):Sd(n,t.in,a)}const o=t.in._zod.run(r,a);return o instanceof Promise?o.then(n=>Sd(n,t.out,a)):Sd(o,t.out,a)}});function Sd(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const Xz=he("$ZodReadonly",(e,t)=>{Ye.init(e,t),Ne(e._zod,"propValues",()=>t.innerType._zod.propValues),Ne(e._zod,"values",()=>t.innerType._zod.values),Ne(e._zod,"optin",()=>t.innerType._zod.optin),Ne(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(ZP):ZP(o)}});function ZP(e){return e.value=Object.freeze(e.value),e}const Qz=he("$ZodCustom",(e,t)=>{At.init(e,t),Ye.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{const a=r.value,o=t.fn(a);if(o instanceof Promise)return o.then(n=>KP(n,r,a,e));KP(o,r,a,e)}});function KP(e,t,r,a){if(!e){const o={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(o.params=a._zod.def.params),t.issues.push(fl(o))}}class Jz{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const a=r[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const a={...this.get(r)??{}};delete a.id;const o={...a,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function eB(){return new Jz}const Pd=eB();function tB(e,t){return new e({type:"number",checks:[],...We(t)})}function rB(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...We(t)})}function nB(e){return new e({type:"unknown"})}function iB(e,t){return new e({type:"never",...We(t)})}function YP(e,t){return new Oq({check:"less_than",...We(t),value:e,inclusive:!1})}function xm(e,t){return new Oq({check:"less_than",...We(t),value:e,inclusive:!0})}function XP(e,t){return new wq({check:"greater_than",...We(t),value:e,inclusive:!1})}function Om(e,t){return new wq({check:"greater_than",...We(t),value:e,inclusive:!0})}function QP(e,t){return new Pz({check:"multiple_of",...We(t),value:e})}function aB(e,t){return new Az({check:"max_length",...We(t),maximum:e})}function JP(e,t){return new Rz({check:"min_length",...We(t),minimum:e})}function oB(e,t){return new Mz({check:"length_equals",...We(t),length:e})}function sB(e){return new Iz({check:"overwrite",tx:e})}function cB(e,t,r){return new e({type:"array",element:t,...We(r)})}function uB(e,t,r){return new e({type:"custom",check:"custom",fn:t,...We(r)})}function lB(e){const t=dB(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(fl(a,r.value,t._zod.def));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(fl(o))}},e(r.value,r)));return t}function dB(e,t){const r=new At({check:"custom",...We(t)});return r._zod.check=e,r}const pB=(e,t)=>{yq.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>fz(e,r)},flatten:{value:r=>pz(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,tg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,tg,2)}},isEmpty:{get(){return e.issues.length===0}}})},_t=he("ZodError",pB,{Parent:Error}),fB=ab(_t),hB=ob(_t),vB=Rp(_t),mB=Mp(_t),_B=mz(_t),gB=_z(_t),bB=gz(_t),yB=bz(_t),EB=yz(_t),xB=Ez(_t),OB=xz(_t),wB=Oz(_t),Qe=he("ZodType",(e,t)=>(Ye.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(yn(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]})),e.clone=(r,a)=>lr(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>fB(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>vB(e,r,a),e.parseAsync=async(r,a)=>hB(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>mB(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>_B(e,r,a),e.decode=(r,a)=>gB(e,r,a),e.encodeAsync=async(r,a)=>bB(e,r,a),e.decodeAsync=async(r,a)=>yB(e,r,a),e.safeEncode=(r,a)=>EB(e,r,a),e.safeDecode=(r,a)=>xB(e,r,a),e.safeEncodeAsync=async(r,a)=>OB(e,r,a),e.safeDecodeAsync=async(r,a)=>wB(e,r,a),e.refine=(r,a)=>e.check(QB(r,a)),e.superRefine=r=>e.check(JB(r)),e.overwrite=r=>e.check(sB(r)),e.optional=()=>nT(e),e.nullable=()=>iT(e),e.nullish=()=>nT(iT(e)),e.nonoptional=r=>VB(e,r),e.array=()=>MB(e),e.or=r=>qB([e,r]),e.and=r=>FB(e,r),e.transform=r=>aT(e,LB(r)),e.default=r=>zB(e,r),e.prefault=r=>HB(e,r),e.catch=r=>WB(e,r),e.pipe=r=>aT(e,r),e.readonly=()=>YB(e),e.describe=r=>{const a=e.clone();return Pd.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return Pd.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Pd.get(e);const a=e.clone();return Pd.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Aq=he("ZodNumber",(e,t)=>{Sq.init(e,t),Qe.init(e,t),e.gt=(a,o)=>e.check(XP(a,o)),e.gte=(a,o)=>e.check(Om(a,o)),e.min=(a,o)=>e.check(Om(a,o)),e.lt=(a,o)=>e.check(YP(a,o)),e.lte=(a,o)=>e.check(xm(a,o)),e.max=(a,o)=>e.check(xm(a,o)),e.int=a=>e.check(tT(a)),e.safe=a=>e.check(tT(a)),e.positive=a=>e.check(XP(0,a)),e.nonnegative=a=>e.check(Om(0,a)),e.negative=a=>e.check(YP(0,a)),e.nonpositive=a=>e.check(xm(0,a)),e.multipleOf=(a,o)=>e.check(QP(a,o)),e.step=(a,o)=>e.check(QP(a,o)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function eT(e){return tB(Aq,e)}const SB=he("ZodNumberFormat",(e,t)=>{qz.init(e,t),Aq.init(e,t)});function tT(e){return rB(SB,e)}const PB=he("ZodUnknown",(e,t)=>{Nz.init(e,t),Qe.init(e,t)});function rT(){return nB(PB)}const TB=he("ZodNever",(e,t)=>{Fz.init(e,t),Qe.init(e,t)});function AB(e){return iB(TB,e)}const RB=he("ZodArray",(e,t)=>{Dz.init(e,t),Qe.init(e,t),e.element=t.element,e.min=(r,a)=>e.check(JP(r,a)),e.nonempty=r=>e.check(JP(1,r)),e.max=(r,a)=>e.check(aB(r,a)),e.length=(r,a)=>e.check(oB(r,a)),e.unwrap=()=>e.element});function MB(e,t){return cB(RB,e,t)}const IB=he("ZodObject",(e,t)=>{Lz.init(e,t),Qe.init(e,t),Ne(e,"shape",()=>t.shape),e.keyof=()=>DB(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:rT()}),e.loose=()=>e.clone({...e._zod.def,catchall:rT()}),e.strict=()=>e.clone({...e._zod.def,catchall:AB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>sz(e,r),e.safeExtend=r=>cz(e,r),e.merge=r=>uz(e,r),e.pick=r=>az(e,r),e.omit=r=>oz(e,r),e.partial=(...r)=>lz(Rq,e,r[0]),e.required=(...r)=>dz(Mq,e,r[0])});function CB(e,t){const r={type:"object",shape:e??{},...We(t)};return new IB(r)}const jB=he("ZodUnion",(e,t)=>{Uz.init(e,t),Qe.init(e,t),e.options=t.options});function qB(e,t){return new jB({type:"union",options:e,...We(t)})}const NB=he("ZodIntersection",(e,t)=>{$z.init(e,t),Qe.init(e,t)});function FB(e,t){return new NB({type:"intersection",left:e,right:t})}const ng=he("ZodEnum",(e,t)=>{zz.init(e,t),Qe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(a,o)=>{const n={};for(const s of a)if(r.has(s))n[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ng({...t,checks:[],...We(o),entries:n})},e.exclude=(a,o)=>{const n={...t.entries};for(const s of a)if(r.has(s))delete n[s];else throw new Error(`Key ${s} not found in enum`);return new ng({...t,checks:[],...We(o),entries:n})}});function DB(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new ng({type:"enum",entries:r,...We(t)})}const kB=he("ZodTransform",(e,t)=>{Bz.init(e,t),Qe.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new hq(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(fl(n,r.value,t));else{const s=n;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(fl(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(n=>(r.value=n,r)):(r.value=o,r)}});function LB(e){return new kB({type:"transform",transform:e})}const Rq=he("ZodOptional",(e,t)=>{Hz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nT(e){return new Rq({type:"optional",innerType:e})}const UB=he("ZodNullable",(e,t)=>{Vz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function iT(e){return new UB({type:"nullable",innerType:e})}const $B=he("ZodDefault",(e,t)=>{Gz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function zB(e,t){return new $B({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():_q(t)}})}const BB=he("ZodPrefault",(e,t)=>{Wz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function HB(e,t){return new BB({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():_q(t)}})}const Mq=he("ZodNonOptional",(e,t)=>{Zz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function VB(e,t){return new Mq({type:"nonoptional",innerType:e,...We(t)})}const GB=he("ZodCatch",(e,t)=>{Kz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function WB(e,t){return new GB({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ZB=he("ZodPipe",(e,t)=>{Yz.init(e,t),Qe.init(e,t),e.in=t.in,e.out=t.out});function aT(e,t){return new ZB({type:"pipe",in:e,out:t})}const KB=he("ZodReadonly",(e,t)=>{Xz.init(e,t),Qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function YB(e){return new KB({type:"readonly",innerType:e})}const XB=he("ZodCustom",(e,t)=>{Qz.init(e,t),Qe.init(e,t)});function QB(e,t={}){return uB(XB,e,t)}function JB(e){return lB(e)}CB({page:eT(),pageSize:eT()});function Y(e,t,r){function a(i,c){var u;Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(u=i._zod).traits??(u.traits=new Set),i._zod.traits.add(e),t(i,c);for(const p in s.prototype)p in i||Object.defineProperty(i,p,{value:s.prototype[p].bind(i)});i._zod.constr=s,i._zod.def=c}const o=r?.Parent??Object;class n extends o{}Object.defineProperty(n,"name",{value:e});function s(i){var c;const u=r?.Parent?new n:this;a(u,i),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(s,"init",{value:a}),Object.defineProperty(s,Symbol.hasInstance,{value:i=>r?.Parent&&i instanceof r.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ri extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Iq extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Cq={};function ln(e){return Cq}function eH(e){const t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,o])=>t.indexOf(+a)===-1).map(([a,o])=>o)}function ig(e,t){return typeof t=="bigint"?t.toString():t}function sb(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function cb(e){return e==null}function ub(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const oT=Symbol("evaluating");function Fe(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==oT)return a===void 0&&(a=oT,a=r()),a},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function En(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function xn(...e){const t={};for(const r of e){const a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function sT(e){return JSON.stringify(e)}const jq="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function op(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const tH=sb(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function hl(e){if(op(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(op(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function qq(e){return hl(e)?{...e}:Array.isArray(e)?[...e]:e}const rH=new Set(["string","number","symbol"]);function Ip(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dr(e,t,r){const a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function ge(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new 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 nH(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function iH(e,t){const r=e._zod.def,a=xn(e._zod.def,{get shape(){const o={};for(const n in t){if(!(n in r.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&(o[n]=r.shape[n])}return En(this,"shape",o),o},checks:[]});return dr(e,a)}function aH(e,t){const r=e._zod.def,a=xn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const n in t){if(!(n in r.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&delete o[n]}return En(this,"shape",o),o},checks:[]});return dr(e,a)}function oH(e,t){if(!hl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=xn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return En(this,"shape",n),n},checks:[]});return dr(e,o)}function sH(e,t){if(!hl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const a={...e._zod.def.shape,...t};return En(this,"shape",a),a},checks:e._zod.def.checks};return dr(e,r)}function cH(e,t){const r=xn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return En(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return dr(e,r)}function uH(e,t,r){const a=xn(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(n[s]=e?new e({type:"optional",innerType:o[s]}):o[s])}else for(const s in o)n[s]=e?new e({type:"optional",innerType:o[s]}):o[s];return En(this,"shape",n),n},checks:[]});return dr(t,a)}function lH(e,t,r){const a=xn(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const s in r){if(!(s in n))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(n[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)n[s]=new e({type:"nonoptional",innerType:o[s]});return En(this,"shape",n),n},checks:[]});return dr(t,a)}function ei(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Nq(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function Td(e){return typeof e=="string"?e:e?.message}function dn(e,t,r){const a={...e,path:e.path??[]};if(!e.message){const o=Td(e.inst?._zod.def?.error?.(e))??Td(t?.error?.(e))??Td(r.customError?.(e))??Td(r.localeError?.(e))??"Invalid input";a.message=o}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function lb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function vl(...e){const[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}const Fq=(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,ig,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dq=Y("$ZodError",Fq),kq=Y("$ZodError",Fq,{Parent:Error});function dH(e,t=r=>r.message){const r={},a=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):a.push(t(o));return{formErrors:a,fieldErrors:r}}function pH(e,t=r=>r.message){const r={_errors:[]},a=o=>{for(const n of o.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(s=>a({issues:s}));else if(n.code==="invalid_key")a({issues:n.issues});else if(n.code==="invalid_element")a({issues:n.issues});else if(n.path.length===0)r._errors.push(t(n));else{let s=r,i=0;for(;i<n.path.length;){const c=n.path[i];i===n.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(n))):s[c]=s[c]||{_errors:[]},s=s[c],i++}}};return a(e),r}const db=e=>(t,r,a,o)=>{const n=a?Object.assign(a,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise)throw new ri;if(s.issues.length){const i=new(o?.Err??e)(s.issues.map(c=>dn(c,n,ln())));throw jq(i,o?.callee),i}return s.value},pb=e=>async(t,r,a,o)=>{const n=a?Object.assign(a,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise&&(s=await s),s.issues.length){const i=new(o?.Err??e)(s.issues.map(c=>dn(c,n,ln())));throw jq(i,o?.callee),i}return s.value},Cp=e=>(t,r,a)=>{const o=a?{...a,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},o);if(n instanceof Promise)throw new ri;return n.issues.length?{success:!1,error:new(e??Dq)(n.issues.map(s=>dn(s,o,ln())))}:{success:!0,data:n.value}},fH=Cp(kq),jp=e=>async(t,r,a)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let n=t._zod.run({value:r,issues:[]},o);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(s=>dn(s,o,ln())))}:{success:!0,data:n.value}},hH=jp(kq),vH=e=>(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return db(e)(t,r,o)},mH=e=>(t,r,a)=>db(e)(t,r,a),_H=e=>async(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return pb(e)(t,r,o)},gH=e=>async(t,r,a)=>pb(e)(t,r,a),bH=e=>(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Cp(e)(t,r,o)},yH=e=>(t,r,a)=>Cp(e)(t,r,a),EH=e=>async(t,r,a)=>{const o=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return jp(e)(t,r,o)},xH=e=>async(t,r,a)=>jp(e)(t,r,a),OH=/^[cC][^\s-]{8,}$/,wH=/^[0-9a-z]+$/,SH=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,PH=/^[0-9a-vA-V]{20}$/,TH=/^[A-Za-z0-9]{27}$/,AH=/^[a-zA-Z0-9_-]{21}$/,RH=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,MH=/^([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})$/,cT=e=>e?new 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)$/,IH=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,CH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jH(){return new RegExp(CH,"u")}const qH=/^(?:(?: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])$/,NH=/^(([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}|:))$/,FH=/^((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])$/,DH=/^(([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])$/,kH=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lq=/^[A-Za-z0-9_-]*$/,LH=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,UH=/^\+(?:[0-9]){6,14}[0-9]$/,Uq="(?:(?:\\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])))",$H=new RegExp(`^${Uq}$`);function $q(e){const 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 zH(e){return new RegExp(`^${$q(e)}$`)}function BH(e){const t=$q({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${r.join("|")})`;return new RegExp(`^${Uq}T(?:${a})$`)}const HH=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},VH=/^[^A-Z]*$/,GH=/^[^a-z]*$/,Rt=Y("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),WH=Y("$ZodCheckMaxLength",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!cb(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{const o=a.value;if(o.length<=t.maximum)return;const s=lb(o);a.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ZH=Y("$ZodCheckMinLength",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!cb(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const o=a.value;if(o.length>=t.minimum)return;const s=lb(o);a.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),KH=Y("$ZodCheckLengthEquals",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=a=>{const o=a.value;return!cb(o)&&o.length!==void 0}),e._zod.onattach.push(a=>{const o=a._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=a=>{const o=a.value,n=o.length;if(n===t.length)return;const s=lb(o),i=n>t.length;a.issues.push({origin:s,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),qp=Y("$ZodCheckStringFormat",(e,t)=>{var r,a;Rt.init(e,t),e._zod.onattach.push(o=>{const n=o._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),YH=Y("$ZodCheckRegex",(e,t)=>{qp.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),XH=Y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=VH),qp.init(e,t)}),QH=Y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=GH),qp.init(e,t)}),JH=Y("$ZodCheckIncludes",(e,t)=>{Rt.init(e,t);const r=Ip(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(o=>{const n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),eV=Y("$ZodCheckStartsWith",(e,t)=>{Rt.init(e,t);const r=new RegExp(`^${Ip(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),tV=Y("$ZodCheckEndsWith",(e,t)=>{Rt.init(e,t);const r=new RegExp(`.*${Ip(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}}),rV=Y("$ZodCheckOverwrite",(e,t)=>{Rt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class nV{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const a=t.split(`
|
|
43
|
+
`).filter(s=>s),o=Math.min(...a.map(s=>s.length-s.trimStart().length)),n=a.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(const s of n)this.content.push(s)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(n=>` ${n}`)];return new t(...r,o.join(`
|
|
44
|
+
`))}}const iV={major:4,minor:1,patch:12},Xe=Y("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=iV;const a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(const o of a)for(const n of o._zod.onattach)n(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,i,c)=>{let u=ei(s),p;for(const l of i){if(l._zod.def.when){if(!l._zod.def.when(s))continue}else if(u)continue;const d=s.issues.length,f=l._zod.check(s);if(f instanceof Promise&&c?.async===!1)throw new ri;if(p||f instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await f,s.issues.length!==d&&(u||(u=ei(s,d)))});else{if(s.issues.length===d)continue;u||(u=ei(s,d))}}return p?p.then(()=>s):s},n=(s,i,c)=>{if(ei(s))return s.aborted=!0,s;const u=o(i,a,c);if(u instanceof Promise){if(c.async===!1)throw new ri;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(s,i)=>{if(i.skipChecks)return e._zod.parse(s,i);if(i.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...i,skipChecks:!0});return u instanceof Promise?u.then(p=>n(p,s,i)):n(u,s,i)}const c=e._zod.parse(s,i);if(c instanceof Promise){if(i.async===!1)throw new ri;return c.then(u=>o(u,a,i))}return o(c,a,i)}}e["~standard"]={validate:o=>{try{const n=fH(e,o);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return hH(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),fb=Y("$ZodString",(e,t)=>{Xe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??HH(e._zod.bag),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ue=Y("$ZodStringFormat",(e,t)=>{qp.init(e,t),fb.init(e,t)}),aV=Y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=MH),Ue.init(e,t)}),oV=Y("$ZodUUID",(e,t)=>{if(t.version){const a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=cT(a))}else t.pattern??(t.pattern=cT());Ue.init(e,t)}),sV=Y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=IH),Ue.init(e,t)}),cV=Y("$ZodURL",(e,t)=>{Ue.init(e,t),e._zod.check=r=>{try{const a=r.value.trim(),o=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:LH.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),uV=Y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jH()),Ue.init(e,t)}),lV=Y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=AH),Ue.init(e,t)}),dV=Y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=OH),Ue.init(e,t)}),pV=Y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=wH),Ue.init(e,t)}),fV=Y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=SH),Ue.init(e,t)}),hV=Y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=PH),Ue.init(e,t)}),vV=Y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=TH),Ue.init(e,t)}),mV=Y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=BH(t)),Ue.init(e,t)}),_V=Y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$H),Ue.init(e,t)}),gV=Y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=zH(t)),Ue.init(e,t)}),bV=Y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=RH),Ue.init(e,t)}),yV=Y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=qH),Ue.init(e,t),e._zod.onattach.push(r=>{const a=r._zod.bag;a.format="ipv4"})}),EV=Y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=NH),Ue.init(e,t),e._zod.onattach.push(r=>{const a=r._zod.bag;a.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),xV=Y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=FH),Ue.init(e,t)}),OV=Y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=DH),Ue.init(e,t),e._zod.check=r=>{const a=r.value.split("/");try{if(a.length!==2)throw new Error;const[o,n]=a;if(!n)throw new Error;const s=Number(n);if(`${s}`!==n)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function zq(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const wV=Y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=kH),Ue.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{zq(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function SV(e){if(!Lq.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return zq(r)}const PV=Y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Lq),Ue.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{SV(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),TV=Y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=UH),Ue.init(e,t)});function AV(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[a]=r;if(!a)return!1;const o=JSON.parse(atob(a));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const RV=Y("$ZodJWT",(e,t)=>{Ue.init(e,t),e._zod.check=r=>{AV(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),MV=Y("$ZodUnknown",(e,t)=>{Xe.init(e,t),e._zod.parse=r=>r}),IV=Y("$ZodNever",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function uT(e,t,r){e.issues.length&&t.issues.push(...Nq(r,e.issues)),t.value[r]=e.value}const CV=Y("$ZodArray",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,a)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const n=[];for(let s=0;s<o.length;s++){const i=o[s],c=t.element._zod.run({value:i,issues:[]},a);c instanceof Promise?n.push(c.then(u=>uT(u,r,s))):uT(c,r,s)}return n.length?Promise.all(n).then(()=>r):r}});function sp(e,t,r,a){e.issues.length&&t.issues.push(...Nq(r,e.issues)),e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function Bq(e){const t=Object.keys(e.shape);for(const a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const r=nH(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Hq(e,t,r,a,o,n){const s=[],i=o.keySet,c=o.catchall._zod,u=c.def.type;for(const p of Object.keys(t)){if(i.has(p))continue;if(u==="never"){s.push(p);continue}const l=c.run({value:t[p],issues:[]},a);l instanceof Promise?e.push(l.then(d=>sp(d,r,p,t))):sp(l,r,p,t)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:n}),e.length?Promise.all(e).then(()=>r):r}const jV=Y("$ZodObject",(e,t)=>{if(Xe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const i=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...i};return Object.defineProperty(t,"shape",{value:c}),c}})}const a=sb(()=>Bq(t));Fe(e._zod,"propValues",()=>{const i=t.shape,c={};for(const u in i){const p=i[u]._zod;if(p.values){c[u]??(c[u]=new Set);for(const l of p.values)c[u].add(l)}}return c});const o=op,n=t.catchall;let s;e._zod.parse=(i,c)=>{s??(s=a.value);const u=i.value;if(!o(u))return i.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),i;i.value={};const p=[],l=s.shape;for(const d of s.keys){const h=l[d]._zod.run({value:u[d],issues:[]},c);h instanceof Promise?p.push(h.then(m=>sp(m,i,d,u))):sp(h,i,d,u)}return n?Hq(p,u,i,c,a.value,e):p.length?Promise.all(p).then(()=>i):i}}),qV=Y("$ZodObjectJIT",(e,t)=>{jV.init(e,t);const r=e._zod.parse,a=sb(()=>Bq(t)),o=d=>{const f=new nV(["shape","payload","ctx"]),h=a.value,m=b=>{const y=sT(b);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const v=Object.create(null);let g=0;for(const b of h.keys)v[b]=`key_${g++}`;f.write("const newResult = {};");for(const b of h.keys){const y=v[b],E=sT(b);f.write(`const ${y} = ${m(b)};`),f.write(`
|
|
45
|
+
if (${y}.issues.length) {
|
|
46
|
+
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
47
|
+
...iss,
|
|
48
|
+
path: iss.path ? [${E}, ...iss.path] : [${E}]
|
|
49
|
+
})));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
if (${y}.value === undefined) {
|
|
54
|
+
if (${E} in input) {
|
|
55
|
+
newResult[${E}] = undefined;
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
newResult[${E}] = ${y}.value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");const _=f.compile();return(b,y)=>_(d,b,y)};let n;const s=op,i=!Cq.jitless,u=i&&tH.value,p=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=a.value);const h=d.value;return s(h)?i&&u&&f?.async===!1&&f.jitless!==!0?(n||(n=o(t.shape)),d=n(d,f),p?Hq([],h,d,f,l,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function lT(e,t,r,a){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const o=e.filter(n=>!ei(n));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(s=>dn(s,a,ln())))}),t)}const NV=Y("$ZodUnion",(e,t)=>{Xe.init(e,t),Fe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Fe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Fe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Fe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>ub(n.source)).join("|")})$`)}});const r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(o,n)=>{if(r)return a(o,n);let s=!1;const i=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},n);if(u instanceof Promise)i.push(u),s=!0;else{if(u.issues.length===0)return u;i.push(u)}}return s?Promise.all(i).then(c=>lT(c,o,e,n)):lT(i,o,e,n)}}),FV=Y("$ZodIntersection",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,a)=>{const o=r.value,n=t.left._zod.run({value:o,issues:[]},a),s=t.right._zod.run({value:o,issues:[]},a);return n instanceof Promise||s instanceof Promise?Promise.all([n,s]).then(([c,u])=>dT(r,c,u)):dT(r,n,s)}});function ag(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(hl(e)&&hl(t)){const r=Object.keys(t),a=Object.keys(e).filter(n=>r.indexOf(n)!==-1),o={...e,...t};for(const n of a){const s=ag(e[n],t[n]);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};o[n]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let a=0;a<e.length;a++){const o=e[a],n=t[a],s=ag(o,n);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function dT(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ei(e))return e;const a=ag(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const DV=Y("$ZodEnum",(e,t)=>{Xe.init(e,t);const r=eH(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(o=>rH.has(typeof o)).map(o=>typeof o=="string"?Ip(o):o.toString()).join("|")})$`),e._zod.parse=(o,n)=>{const s=o.value;return a.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),kV=Y("$ZodTransform",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Iq(e.constructor.name);const o=t.transform(r.value,r);if(a.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ri;return r.value=o,r}});function pT(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const LV=Y("$ZodOptional",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Fe(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${ub(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>pT(n,r.value)):pT(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),UV=Y("$ZodNullable",(e,t)=>{Xe.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${ub(r.source)}|null)$`):void 0}),Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),$V=Y("$ZodDefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>fT(n,t)):fT(o,t)}});function fT(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const zV=Y("$ZodPrefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),BV=Y("$ZodNonOptional",(e,t)=>{Xe.init(e,t),Fe(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>hT(n,e)):hT(o,e)}});function hT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const HV=Y("$ZodCatch",(e,t)=>{Xe.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(s=>dn(s,a,ln()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(n=>dn(n,a,ln()))},input:r.value}),r.issues=[]),r)}}),VV=Y("$ZodPipe",(e,t)=>{Xe.init(e,t),Fe(e._zod,"values",()=>t.in._zod.values),Fe(e._zod,"optin",()=>t.in._zod.optin),Fe(e._zod,"optout",()=>t.out._zod.optout),Fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){const n=t.out._zod.run(r,a);return n instanceof Promise?n.then(s=>Ad(s,t.in,a)):Ad(n,t.in,a)}const o=t.in._zod.run(r,a);return o instanceof Promise?o.then(n=>Ad(n,t.out,a)):Ad(o,t.out,a)}});function Ad(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const GV=Y("$ZodReadonly",(e,t)=>{Xe.init(e,t),Fe(e._zod,"propValues",()=>t.innerType._zod.propValues),Fe(e._zod,"values",()=>t.innerType._zod.values),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);const o=t.innerType._zod.run(r,a);return o instanceof Promise?o.then(vT):vT(o)}});function vT(e){return e.value=Object.freeze(e.value),e}const WV=Y("$ZodCustom",(e,t)=>{Rt.init(e,t),Xe.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{const a=r.value,o=t.fn(a);if(o instanceof Promise)return o.then(n=>mT(n,r,a,e));mT(o,r,a,e)}});function mT(e,t,r,a){if(!e){const o={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(o.params=a._zod.def.params),t.issues.push(vl(o))}}class ZV{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const a=r[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const a={...this.get(r)??{}};delete a.id;const o={...a,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function KV(){return new ZV}const Rd=KV();function YV(e,t){return new e({type:"string",...ge(t)})}function XV(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ge(t)})}function _T(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ge(t)})}function QV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ge(t)})}function JV(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ge(t)})}function eG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ge(t)})}function tG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ge(t)})}function rG(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ge(t)})}function nG(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ge(t)})}function iG(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ge(t)})}function aG(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ge(t)})}function oG(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ge(t)})}function sG(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ge(t)})}function cG(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ge(t)})}function uG(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ge(t)})}function lG(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ge(t)})}function dG(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ge(t)})}function pG(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ge(t)})}function fG(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ge(t)})}function hG(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ge(t)})}function vG(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ge(t)})}function mG(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ge(t)})}function _G(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ge(t)})}function gG(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ge(t)})}function bG(e,t){return new e({type:"string",format:"date",check:"string_format",...ge(t)})}function yG(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ge(t)})}function EG(e,t){return new e({type:"string",format:"duration",check:"string_format",...ge(t)})}function xG(e){return new e({type:"unknown"})}function OG(e,t){return new e({type:"never",...ge(t)})}function Vq(e,t){return new WH({check:"max_length",...ge(t),maximum:e})}function cp(e,t){return new ZH({check:"min_length",...ge(t),minimum:e})}function Gq(e,t){return new KH({check:"length_equals",...ge(t),length:e})}function wG(e,t){return new YH({check:"string_format",format:"regex",...ge(t),pattern:e})}function SG(e){return new XH({check:"string_format",format:"lowercase",...ge(e)})}function PG(e){return new QH({check:"string_format",format:"uppercase",...ge(e)})}function TG(e,t){return new JH({check:"string_format",format:"includes",...ge(t),includes:e})}function AG(e,t){return new eV({check:"string_format",format:"starts_with",...ge(t),prefix:e})}function RG(e,t){return new tV({check:"string_format",format:"ends_with",...ge(t),suffix:e})}function Cl(e){return new rV({check:"overwrite",tx:e})}function MG(e){return Cl(t=>t.normalize(e))}function IG(){return Cl(e=>e.trim())}function CG(){return Cl(e=>e.toLowerCase())}function jG(){return Cl(e=>e.toUpperCase())}function qG(e,t,r){return new e({type:"array",element:t,...ge(r)})}function NG(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ge(r)})}function FG(e){const t=DG(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(vl(a,r.value,t._zod.def));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(vl(o))}},e(r.value,r)));return t}function DG(e,t){const r=new Rt({check:"custom",...ge(t)});return r._zod.check=e,r}const kG=Y("ZodISODateTime",(e,t)=>{mV.init(e,t),ze.init(e,t)});function LG(e){return gG(kG,e)}const UG=Y("ZodISODate",(e,t)=>{_V.init(e,t),ze.init(e,t)});function $G(e){return bG(UG,e)}const zG=Y("ZodISOTime",(e,t)=>{gV.init(e,t),ze.init(e,t)});function BG(e){return yG(zG,e)}const HG=Y("ZodISODuration",(e,t)=>{bV.init(e,t),ze.init(e,t)});function VG(e){return EG(HG,e)}const GG=(e,t)=>{Dq.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>pH(e,r)},flatten:{value:r=>dH(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ig,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ig,2)}},isEmpty:{get(){return e.issues.length===0}}})},gt=Y("ZodError",GG,{Parent:Error}),WG=db(gt),ZG=pb(gt),KG=Cp(gt),YG=jp(gt),XG=vH(gt),QG=mH(gt),JG=_H(gt),e2=gH(gt),t2=bH(gt),r2=yH(gt),n2=EH(gt),i2=xH(gt),Je=Y("ZodType",(e,t)=>(Xe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(xn(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]})),e.clone=(r,a)=>dr(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>WG(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>KG(e,r,a),e.parseAsync=async(r,a)=>ZG(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>YG(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>XG(e,r,a),e.decode=(r,a)=>QG(e,r,a),e.encodeAsync=async(r,a)=>JG(e,r,a),e.decodeAsync=async(r,a)=>e2(e,r,a),e.safeEncode=(r,a)=>t2(e,r,a),e.safeDecode=(r,a)=>r2(e,r,a),e.safeEncodeAsync=async(r,a)=>n2(e,r,a),e.safeDecodeAsync=async(r,a)=>i2(e,r,a),e.refine=(r,a)=>e.check(K2(r,a)),e.superRefine=r=>e.check(Y2(r)),e.overwrite=r=>e.check(Cl(r)),e.optional=()=>yT(e),e.nullable=()=>ET(e),e.nullish=()=>yT(ET(e)),e.nonoptional=r=>z2(e,r),e.array=()=>T2(e),e.or=r=>I2([e,r]),e.and=r=>j2(e,r),e.transform=r=>xT(e,F2(r)),e.default=r=>L2(e,r),e.prefault=r=>$2(e,r),e.catch=r=>H2(e,r),e.pipe=r=>xT(e,r),e.readonly=()=>W2(e),e.describe=r=>{const a=e.clone();return Rd.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return Rd.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Rd.get(e);const a=e.clone();return Rd.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Wq=Y("_ZodString",(e,t)=>{fb.init(e,t),Je.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(wG(...a)),e.includes=(...a)=>e.check(TG(...a)),e.startsWith=(...a)=>e.check(AG(...a)),e.endsWith=(...a)=>e.check(RG(...a)),e.min=(...a)=>e.check(cp(...a)),e.max=(...a)=>e.check(Vq(...a)),e.length=(...a)=>e.check(Gq(...a)),e.nonempty=(...a)=>e.check(cp(1,...a)),e.lowercase=a=>e.check(SG(a)),e.uppercase=a=>e.check(PG(a)),e.trim=()=>e.check(IG()),e.normalize=(...a)=>e.check(MG(...a)),e.toLowerCase=()=>e.check(CG()),e.toUpperCase=()=>e.check(jG())}),a2=Y("ZodString",(e,t)=>{fb.init(e,t),Wq.init(e,t),e.email=r=>e.check(XV(o2,r)),e.url=r=>e.check(rG(s2,r)),e.jwt=r=>e.check(_G(x2,r)),e.emoji=r=>e.check(nG(c2,r)),e.guid=r=>e.check(_T(gT,r)),e.uuid=r=>e.check(QV(Md,r)),e.uuidv4=r=>e.check(JV(Md,r)),e.uuidv6=r=>e.check(eG(Md,r)),e.uuidv7=r=>e.check(tG(Md,r)),e.nanoid=r=>e.check(iG(u2,r)),e.guid=r=>e.check(_T(gT,r)),e.cuid=r=>e.check(aG(l2,r)),e.cuid2=r=>e.check(oG(d2,r)),e.ulid=r=>e.check(sG(p2,r)),e.base64=r=>e.check(hG(b2,r)),e.base64url=r=>e.check(vG(y2,r)),e.xid=r=>e.check(cG(f2,r)),e.ksuid=r=>e.check(uG(h2,r)),e.ipv4=r=>e.check(lG(v2,r)),e.ipv6=r=>e.check(dG(m2,r)),e.cidrv4=r=>e.check(pG(_2,r)),e.cidrv6=r=>e.check(fG(g2,r)),e.e164=r=>e.check(mG(E2,r)),e.datetime=r=>e.check(LG(r)),e.date=r=>e.check($G(r)),e.time=r=>e.check(BG(r)),e.duration=r=>e.check(VG(r))});function tr(e){return YV(a2,e)}const ze=Y("ZodStringFormat",(e,t)=>{Ue.init(e,t),Wq.init(e,t)}),o2=Y("ZodEmail",(e,t)=>{sV.init(e,t),ze.init(e,t)}),gT=Y("ZodGUID",(e,t)=>{aV.init(e,t),ze.init(e,t)}),Md=Y("ZodUUID",(e,t)=>{oV.init(e,t),ze.init(e,t)}),s2=Y("ZodURL",(e,t)=>{cV.init(e,t),ze.init(e,t)}),c2=Y("ZodEmoji",(e,t)=>{uV.init(e,t),ze.init(e,t)}),u2=Y("ZodNanoID",(e,t)=>{lV.init(e,t),ze.init(e,t)}),l2=Y("ZodCUID",(e,t)=>{dV.init(e,t),ze.init(e,t)}),d2=Y("ZodCUID2",(e,t)=>{pV.init(e,t),ze.init(e,t)}),p2=Y("ZodULID",(e,t)=>{fV.init(e,t),ze.init(e,t)}),f2=Y("ZodXID",(e,t)=>{hV.init(e,t),ze.init(e,t)}),h2=Y("ZodKSUID",(e,t)=>{vV.init(e,t),ze.init(e,t)}),v2=Y("ZodIPv4",(e,t)=>{yV.init(e,t),ze.init(e,t)}),m2=Y("ZodIPv6",(e,t)=>{EV.init(e,t),ze.init(e,t)}),_2=Y("ZodCIDRv4",(e,t)=>{xV.init(e,t),ze.init(e,t)}),g2=Y("ZodCIDRv6",(e,t)=>{OV.init(e,t),ze.init(e,t)}),b2=Y("ZodBase64",(e,t)=>{wV.init(e,t),ze.init(e,t)}),y2=Y("ZodBase64URL",(e,t)=>{PV.init(e,t),ze.init(e,t)}),E2=Y("ZodE164",(e,t)=>{TV.init(e,t),ze.init(e,t)}),x2=Y("ZodJWT",(e,t)=>{RV.init(e,t),ze.init(e,t)}),O2=Y("ZodUnknown",(e,t)=>{MV.init(e,t),Je.init(e,t)});function bT(){return xG(O2)}const w2=Y("ZodNever",(e,t)=>{IV.init(e,t),Je.init(e,t)});function S2(e){return OG(w2,e)}const P2=Y("ZodArray",(e,t)=>{CV.init(e,t),Je.init(e,t),e.element=t.element,e.min=(r,a)=>e.check(cp(r,a)),e.nonempty=r=>e.check(cp(1,r)),e.max=(r,a)=>e.check(Vq(r,a)),e.length=(r,a)=>e.check(Gq(r,a)),e.unwrap=()=>e.element});function T2(e,t){return qG(P2,e,t)}const A2=Y("ZodObject",(e,t)=>{qV.init(e,t),Je.init(e,t),Fe(e,"shape",()=>t.shape),e.keyof=()=>q2(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bT()}),e.loose=()=>e.clone({...e._zod.def,catchall:bT()}),e.strict=()=>e.clone({...e._zod.def,catchall:S2()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>oH(e,r),e.safeExtend=r=>sH(e,r),e.merge=r=>cH(e,r),e.pick=r=>iH(e,r),e.omit=r=>aH(e,r),e.partial=(...r)=>uH(Zq,e,r[0]),e.required=(...r)=>lH(Kq,e,r[0])});function R2(e,t){const r={type:"object",shape:e??{},...ge(t)};return new A2(r)}const M2=Y("ZodUnion",(e,t)=>{NV.init(e,t),Je.init(e,t),e.options=t.options});function I2(e,t){return new M2({type:"union",options:e,...ge(t)})}const C2=Y("ZodIntersection",(e,t)=>{FV.init(e,t),Je.init(e,t)});function j2(e,t){return new C2({type:"intersection",left:e,right:t})}const og=Y("ZodEnum",(e,t)=>{DV.init(e,t),Je.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(a,o)=>{const n={};for(const s of a)if(r.has(s))n[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new og({...t,checks:[],...ge(o),entries:n})},e.exclude=(a,o)=>{const n={...t.entries};for(const s of a)if(r.has(s))delete n[s];else throw new Error(`Key ${s} not found in enum`);return new og({...t,checks:[],...ge(o),entries:n})}});function q2(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new og({type:"enum",entries:r,...ge(t)})}const N2=Y("ZodTransform",(e,t)=>{kV.init(e,t),Je.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Iq(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(vl(n,r.value,t));else{const s=n;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(vl(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(n=>(r.value=n,r)):(r.value=o,r)}});function F2(e){return new N2({type:"transform",transform:e})}const Zq=Y("ZodOptional",(e,t)=>{LV.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yT(e){return new Zq({type:"optional",innerType:e})}const D2=Y("ZodNullable",(e,t)=>{UV.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ET(e){return new D2({type:"nullable",innerType:e})}const k2=Y("ZodDefault",(e,t)=>{$V.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function L2(e,t){return new k2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():qq(t)}})}const U2=Y("ZodPrefault",(e,t)=>{zV.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $2(e,t){return new U2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():qq(t)}})}const Kq=Y("ZodNonOptional",(e,t)=>{BV.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function z2(e,t){return new Kq({type:"nonoptional",innerType:e,...ge(t)})}const B2=Y("ZodCatch",(e,t)=>{HV.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function H2(e,t){return new B2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const V2=Y("ZodPipe",(e,t)=>{VV.init(e,t),Je.init(e,t),e.in=t.in,e.out=t.out});function xT(e,t){return new V2({type:"pipe",in:e,out:t})}const G2=Y("ZodReadonly",(e,t)=>{GV.init(e,t),Je.init(e,t),e.unwrap=()=>e._zod.def.innerType});function W2(e){return new G2({type:"readonly",innerType:e})}const Z2=Y("ZodCustom",(e,t)=>{WV.init(e,t),Je.init(e,t)});function K2(e,t={}){return NG(Z2,e,t)}function Y2(e){return FG(e)}const ni="nestjs-app-config",Yq=R2({APP_PORT:tr().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:tr().optional(),CORS_ORIGIN:tr().default("*"),CORS_METHODS:tr().default("GET,POST,PUT,DELETE,PATCH,OPTIONS").transform(e=>e.split(",").map(t=>t.trim())),CORS_ALLOWED_HEADERS:tr().default("Content-Type,Authorization").transform(e=>e.split(",").map(t=>t.trim())),CORS_CREDENTIALS:tr().default("true").transform(e=>e.toLowerCase()==="true"),CORS_MAX_AGE:tr().default("3600").transform(e=>parseInt(e,10)).refine(e=>!isNaN(e),{message:"CORS_MAX_AGE must be a valid number"}),CORE_API_VERSION:tr().default("latest")}),X2=e=>np.ConfigModule.forRoot({ignoreEnvFile:!0,isGlobal:!0,expandVariables:!0,cache:!1,load:[np.registerAs(e,()=>Y$(Yq))]}),Q2=()=>X2(ni);var wm={},Sm={},sc={},OT;function Xq(){if(OT)return sc;OT=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.AbstractHttpAdapter=void 0;class e{constructor(r){this.instance=r}async init(){}use(...r){return this.instance.use(...r)}get(...r){return this.instance.get(...r)}post(...r){return this.instance.post(...r)}head(...r){return this.instance.head(...r)}delete(...r){return this.instance.delete(...r)}put(...r){return this.instance.put(...r)}patch(...r){return this.instance.patch(...r)}propfind(...r){return this.instance.propfind(...r)}proppatch(...r){return this.instance.proppatch(...r)}mkcol(...r){return this.instance.mkcol(...r)}copy(...r){return this.instance.copy(...r)}move(...r){return this.instance.move(...r)}lock(...r){return this.instance.lock(...r)}unlock(...r){return this.instance.unlock(...r)}all(...r){return this.instance.all(...r)}search(...r){return this.instance.search(...r)}options(...r){return this.instance.options(...r)}listen(r,a,o){return this.instance.listen(r,a,o)}getHttpServer(){return this.httpServer}setHttpServer(r){this.httpServer=r}setInstance(r){this.instance=r}getInstance(){return this.instance}normalizePath(r){return r}setOnRouteTriggered(r){this.onRouteTriggered=r}getOnRouteTriggered(){return this.onRouteTriggered}setOnRequestHook(r){}setOnResponseHook(r){}}return sc.AbstractHttpAdapter=e,sc}var wT;function J2(){return wT||(wT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(Xq(),e)})(Sm)),Sm}var cc={},ST;function pr(){if(ST)return cc;ST=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.ApplicationConfig=void 0;class e{constructor(r=null){this.ioAdapter=r,this.globalPrefix="",this.globalPrefixOptions={},this.globalPipes=[],this.globalFilters=[],this.globalInterceptors=[],this.globalGuards=[],this.globalRequestPipes=[],this.globalRequestFilters=[],this.globalRequestInterceptors=[],this.globalRequestGuards=[]}setGlobalPrefix(r){this.globalPrefix=r}getGlobalPrefix(){return this.globalPrefix}setGlobalPrefixOptions(r){this.globalPrefixOptions=r}getGlobalPrefixOptions(){return this.globalPrefixOptions}setIoAdapter(r){this.ioAdapter=r}getIoAdapter(){return this.ioAdapter}addGlobalPipe(r){this.globalPipes.push(r)}useGlobalPipes(...r){this.globalPipes=this.globalPipes.concat(r)}getGlobalFilters(){return this.globalFilters}addGlobalFilter(r){this.globalFilters.push(r)}useGlobalFilters(...r){this.globalFilters=this.globalFilters.concat(r)}getGlobalPipes(){return this.globalPipes}getGlobalInterceptors(){return this.globalInterceptors}addGlobalInterceptor(r){this.globalInterceptors.push(r)}useGlobalInterceptors(...r){this.globalInterceptors=this.globalInterceptors.concat(r)}getGlobalGuards(){return this.globalGuards}addGlobalGuard(r){this.globalGuards.push(r)}useGlobalGuards(...r){this.globalGuards=this.globalGuards.concat(r)}addGlobalRequestInterceptor(r){this.globalRequestInterceptors.push(r)}getGlobalRequestInterceptors(){return this.globalRequestInterceptors}addGlobalRequestPipe(r){this.globalRequestPipes.push(r)}getGlobalRequestPipes(){return this.globalRequestPipes}addGlobalRequestFilter(r){this.globalRequestFilters.push(r)}getGlobalRequestFilters(){return this.globalRequestFilters}addGlobalRequestGuard(r){this.globalRequestGuards.push(r)}getGlobalRequestGuards(){return this.globalRequestGuards}enableVersioning(r){Array.isArray(r.defaultVersion)&&(r.defaultVersion=Array.from(new Set(r.defaultVersion))),this.versioningOptions=r}getVersioning(){return this.versioningOptions}}return cc.ApplicationConfig=e,cc}var Pm={},PT;function pi(){return PT||(PT=1,(function(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"}})(Pm)),Pm}var Tm={},Gn={},uc={},TT;function On(){if(TT)return uc;TT=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.MetadataScanner=void 0;const e=ne();class t{constructor(){this.cachedScannedPrototypes=new Map}scanFromPrototype(a,o,n){if(!o)return[];const s=new Map,i=[];do for(const c of Object.getOwnPropertyNames(o)){if(s.has(c))continue;s.set(c,!0);const u=Object.getOwnPropertyDescriptor(o,c);if(u.set||u.get||(0,e.isConstructor)(c)||!(0,e.isFunction)(o[c]))continue;const p=n(c);(0,e.isNil)(p)||i.push(p)}while((o=Reflect.getPrototypeOf(o))&&o!==Object.prototype);return i}*getAllFilteredMethodNames(a){yield*this.getAllMethodNames(a)}getAllMethodNames(a){if(!a)return[];if(this.cachedScannedPrototypes.has(a))return this.cachedScannedPrototypes.get(a);const o=new Map,n=[];this.cachedScannedPrototypes.set(a,n);do for(const s of Object.getOwnPropertyNames(a)){if(o.has(s))continue;o.set(s,!0);const i=Object.getOwnPropertyDescriptor(a,s);i.set||i.get||(0,e.isConstructor)(s)||!(0,e.isFunction)(a[s])||n.push(s)}while((a=Reflect.getPrototypeOf(a))&&a!==Object.prototype);return n}}return uc.MetadataScanner=t,uc}var Wn={},lc={},AT;function fi(){if(AT)return lc;AT=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.ModulesContainer=void 0;const e=gn(),t=pn();class r extends Map{constructor(){super(...arguments),this._applicationId=(0,t.uid)(21),this._rpcTargetRegistry$=new e.ReplaySubject}get applicationId(){return this._applicationId}getById(o){return Array.from(this.values()).find(n=>n.id===o)}getRpcTargetRegistry(){return this._rpcTargetRegistry$.asObservable()}addRpcTarget(o){this._rpcTargetRegistry$.next(o)}}return lc.ModulesContainer=r,lc}var dc={},RT;function Qq(){if(RT)return dc;RT=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.DiscoverableMetaHostCollection=void 0;class e{static addClassMetaHostLink(r,a){this.metaHostLinks.set(r,a)}static inspectProvider(r,a){return this.inspectInstanceWrapper(r,a,this.providersByMetaKey)}static inspectController(r,a){return this.inspectInstanceWrapper(r,a,this.controllersByMetaKey)}static insertByMetaKey(r,a,o){if(o.has(r))o.get(r).add(a);else{const n=new Set;n.add(a),o.set(r,n)}}static getProvidersByMetaKey(r,a){return this.providersByMetaKey.get(r)?.get(a)??new Set}static getControllersByMetaKey(r,a){return this.controllersByMetaKey.get(r)?.get(a)??new Set}static inspectInstanceWrapper(r,a,o){const n=e.getMetaKeyByInstanceWrapper(a);if(!n)return;let s;o.has(r)?s=o.get(r):(s=new Map,o.set(r,s)),this.insertByMetaKey(n,a,s)}static getMetaKeyByInstanceWrapper(r){return this.metaHostLinks.get(r.metatype||r.inject?r.instance?.constructor??r.metatype:r.metatype)}}return dc.DiscoverableMetaHostCollection=e,e.metaHostLinks=new Map,e.providersByMetaKey=new WeakMap,e.controllersByMetaKey=new WeakMap,dc}var MT;function Jq(){if(MT)return Wn;MT=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.DiscoveryService=void 0;const e=ae(),t=ve(),r=pn(),a=fi(),o=Qq();let n=class{constructor(i){this.modulesContainer=i}static createDecorator(){const i=(0,r.uid)(21),c=u=>(p,l,d)=>{d||o.DiscoverableMetaHostCollection.addClassMetaHostLink(p,i),(0,t.SetMetadata)(i,u??{})(p,l,d)};return c.KEY=i,c}getProviders(i={},c=this.getModules(i)){if("metadataKey"in i){const p=o.DiscoverableMetaHostCollection.getProvidersByMetaKey(this.modulesContainer,i.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.providers.values()]);return(0,t.flatten)(u)}getControllers(i={},c=this.getModules(i)){if("metadataKey"in i){const p=o.DiscoverableMetaHostCollection.getControllersByMetaKey(this.modulesContainer,i.metadataKey);return Array.from(p)}const u=c.map(p=>[...p.controllers.values()]);return(0,t.flatten)(u)}getMetadataByDecorator(i,c,u){if(u)return Reflect.getMetadata(i.KEY,c.instance[u]);const p=c.instance?.constructor??c.metatype;return Reflect.getMetadata(i.KEY,p)}getModules(i={}){return"include"in i?this.includeWhitelisted(i.include):[...this.modulesContainer.values()]}includeWhitelisted(i){return[...this.modulesContainer.values()].filter(({metatype:u})=>i.some(p=>p===u))}};return Wn.DiscoveryService=n,Wn.DiscoveryService=n=e.__decorate([(0,t.Injectable)(),e.__metadata("design:paramtypes",[a.ModulesContainer])],n),Wn}var IT;function eW(){if(IT)return Gn;IT=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.DiscoveryModule=void 0;const e=ae(),t=ve(),r=On(),a=Jq();let o=class{};return Gn.DiscoveryModule=o,Gn.DiscoveryModule=o=e.__decorate([(0,t.Module)({providers:[r.MetadataScanner,a.DiscoveryService],exports:[r.MetadataScanner,a.DiscoveryService]})],o),Gn}var CT;function tW(){return CT||(CT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(eW(),e),t.__exportStar(Jq(),e)})(Tm)),Tm}var Am={},pc={},fc={},jT;function jl(){if(jT)return fc;jT=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.HttpAdapterHost=void 0;const e=gn();class t{constructor(){this._listen$=new e.Subject,this._init$=new e.ReplaySubject,this.isListening=!1}set httpAdapter(a){this._httpAdapter=a,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(a){this.isListening=a,a&&(this._listen$.next(),this._listen$.complete())}get listening(){return this.isListening}}return fc.HttpAdapterHost=t,fc}var qT;function eN(){if(qT)return pc;qT=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.BaseExceptionFilter=void 0;const e=ae(),t=ve(),r=ne(),a=pi(),o=jl();class n{constructor(i){this.applicationRef=i}catch(i,c){const u=this.applicationRef||this.httpAdapterHost&&this.httpAdapterHost.httpAdapter;if(!(i instanceof t.HttpException))return this.handleUnknownError(i,c,u);const p=i.getResponse(),l=(0,r.isObject)(p)?p:{statusCode:i.getStatus(),message:p},d=c.getArgByIndex(1);u.isHeadersSent(d)?u.end(d):u.reply(d,l,i.getStatus())}handleUnknownError(i,c,u){const p=this.isHttpError(i)?{statusCode:i.statusCode,message:i.message}:{statusCode:t.HttpStatus.INTERNAL_SERVER_ERROR,message:a.MESSAGES.UNKNOWN_EXCEPTION_MESSAGE},l=c.getArgByIndex(1);u.isHeadersSent(l)?u.end(l):u.reply(l,p,p.statusCode),i instanceof t.IntrinsicException||n.logger.error(i)}isExceptionObject(i){return(0,r.isObject)(i)&&!!i.message}isHttpError(i){return i?.statusCode&&i?.message}}return pc.BaseExceptionFilter=n,n.logger=new t.Logger("ExceptionsHandler"),e.__decorate([(0,t.Optional)(),(0,t.Inject)(),e.__metadata("design:type",o.HttpAdapterHost)],n.prototype,"httpAdapterHost",void 0),pc}var NT;function rW(){return NT||(NT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(eN(),e)})(Am)),Am}var Rm={},Zn={},tn={},FT;function wn(){return FT||(FT=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.REQUEST_CONTEXT_ID=tn.REQUEST=void 0,tn.REQUEST="REQUEST",tn.REQUEST_CONTEXT_ID=Symbol("REQUEST_CONTEXT_ID")),tn}var DT;function ql(){if(DT)return Zn;DT=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.ContextIdFactory=void 0,Zn.createContextId=r;const e=ne(),t=wn();function r(){return{id:Math.random()}}class a{static create(){return r()}static getByRequest(n,s=["raw"]){if(!n)return a.create();if(n[t.REQUEST_CONTEXT_ID])return n[t.REQUEST_CONTEXT_ID];for(const u of s)if(n[u]?.[t.REQUEST_CONTEXT_ID])return n[u][t.REQUEST_CONTEXT_ID];if(!this.strategy)return a.create();const i=r(),c=this.strategy.attach(i,n);return this.isContextIdResolverWithPayload(c)?(i.getParent=c.resolve,i.payload=c.payload):i.getParent=c,i}static apply(n){this.strategy=n}static isContextIdResolverWithPayload(n){return(0,e.isObject)(n)}}return Zn.ContextIdFactory=a,Zn}var hc={},vc={},rn={},kT;function it(){if(kT)return rn;kT=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.STATIC_CONTEXT=rn.CONTROLLER_ID_KEY=void 0,rn.CONTROLLER_ID_KEY="CONTROLLER_ID";const e=1;return rn.STATIC_CONTEXT=Object.freeze({id:e}),rn}var mc={},_c={},LT;function Np(){if(LT)return _c;LT=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.ContextCreator=void 0;const e=it();class t{createContext(a,o,n,s=e.STATIC_CONTEXT,i){const c=this.getGlobalMetadata&&this.getGlobalMetadata(s,i),u=this.reflectClassMetadata(a,n),p=this.reflectMethodMetadata(o,n);return[...this.createConcreteContext(c||[],s,i),...this.createConcreteContext(u,s,i),...this.createConcreteContext(p,s,i)]}reflectClassMetadata(a,o){const n=Object.getPrototypeOf(a);return Reflect.getMetadata(o,n.constructor)}reflectMethodMetadata(a,o){return Reflect.getMetadata(o,a)}getContextId(a,o){return a.getParent?a.getParent({token:o.token,isTreeDurable:o.isDependencyTreeDurable()}):a}}return _c.ContextCreator=t,_c}var UT;function tN(){if(UT)return mc;UT=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.BaseExceptionFilterContext=void 0;const e=xe(),t=ne(),r=He(),a=Np(),o=it();class n extends a.ContextCreator{constructor(i){super(),this.container=i}createConcreteContext(i,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(i)?[]:(0,r.iterate)(i).filter(p=>p&&((0,t.isFunction)(p.catch)||p.name)).map(p=>this.getFilterInstance(p,c,u)).filter(p=>!!p).map(p=>({func:p.catch.bind(p),exceptionMetatypes:this.reflectCatchExceptions(p)})).toArray()}getFilterInstance(i,c=o.STATIC_CONTEXT,u){if(!!i.catch)return i;const l=this.getInstanceByMetatype(i);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(i){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(i)}reflectCatchExceptions(i){const c=Object.getPrototypeOf(i);return Reflect.getMetadata(e.FILTER_CATCH_EXCEPTIONS,c.constructor)||[]}}return mc.BaseExceptionFilterContext=n,mc}var gc={},bc={},$T;function rN(){if($T)return bc;$T=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.selectExceptionFilterMetadata=void 0;const e=(t,r)=>t.find(({exceptionMetatypes:a})=>!a.length||a.some(o=>r instanceof o));return bc.selectExceptionFilterMetadata=e,bc}var yc={},Ec={},zT;function et(){if(zT)return Ec;zT=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.RuntimeException=void 0;class e extends Error{constructor(r=""){super(r)}what(){return this.message}}return Ec.RuntimeException=e,Ec}var Ae={},BT;function bt(){if(BT)return Ae;BT=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION=Ae.INVALID_EXCEPTION_FILTER=Ae.UNHANDLED_RUNTIME_EXCEPTION=Ae.INVALID_MIDDLEWARE_CONFIGURATION=Ae.UNKNOWN_REQUEST_MAPPING=Ae.INVALID_CLASS_SCOPE_MESSAGE=Ae.INVALID_CLASS_MESSAGE=Ae.UNKNOWN_EXPORT_MESSAGE=Ae.UNDEFINED_MODULE_MESSAGE=Ae.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=Ae.INVALID_MODULE_MESSAGE=Ae.UNDEFINED_FORWARDREF_MESSAGE=Ae.INVALID_MIDDLEWARE_MESSAGE=Ae.UNKNOWN_DEPENDENCIES_MESSAGE=void 0;const e=ne(),t=m=>m?.forwardRef?m.forwardRef()?.name:m?.module?m.module?.name:m?.name,r=(m,v,g=!0)=>t(m)||(0,e.isSymbol)(m)&&m.toString()||(m?g?`"${m}"`:m:void 0)||v,a=m=>m&&t(m.metatype)||"current",o=m=>(m||[]).map(t).join(" -> "),n=(m,v,g)=>{const{index:_,name:b,dependencies:y,key:E}=v,x=a(g),O=r(b,"dependency"),S=!(0,e.isNil)(_)&&y&&(y[_]===void 0||y[_]===Object||typeof y[_]=="function"&&y[_].name==="Object");let w;S?w=`
|
|
62
|
+
|
|
63
|
+
Potential solutions:
|
|
64
|
+
- The dependency at index [${_}] appears to be undefined at runtime
|
|
65
|
+
- This commonly occurs when using 'import type' instead of 'import' for injectable classes
|
|
66
|
+
- Check your imports and change:
|
|
67
|
+
❌ import type { SomeService } from './some.service';
|
|
68
|
+
✅ import { SomeService } from './some.service';
|
|
69
|
+
- Ensure the imported class is decorated with @Injectable() or is a valid provider
|
|
70
|
+
- If using dynamic imports, ensure the class is available at runtime, not just for type checking
|
|
71
|
+
|
|
72
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`:w=x!=="current"?`
|
|
73
|
+
|
|
74
|
+
Potential solutions:
|
|
75
|
+
- Is ${x} a valid NestJS module?
|
|
76
|
+
- If ${O} is a provider, is it part of the current ${x}?
|
|
77
|
+
- If ${O} is exported from a separate @Module, is that module imported within ${x}?
|
|
78
|
+
@Module({
|
|
79
|
+
imports: [ /* the Module containing ${O} */ ]
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`:`
|
|
83
|
+
|
|
84
|
+
Potential solutions:
|
|
85
|
+
- If ${O} is a provider, is it part of the current Module?
|
|
86
|
+
- If ${O} is exported from a separate @Module, is that module imported within Module?
|
|
87
|
+
@Module({
|
|
88
|
+
imports: [ /* the Module containing ${O} */ ]
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors`;let T=`Nest can't resolve dependencies of the ${m.toString()}`;if((0,e.isNil)(_))return T+=`. Please make sure that the "${E.toString()}" property is available in the current context.${w}`,T;const A=(y||[]).map(P=>r(P,"+",!1));return A[_]="?",T+=" (",T+=A.join(", "),T+=`). Please make sure that the argument ${S?"dependency":O} at index [${_}] is available in the ${S?"current":x} context.`,T+=w,T};Ae.UNKNOWN_DEPENDENCIES_MESSAGE=n;const s=(m,v)=>`The middleware doesn't provide the 'use' method (${v})`;Ae.INVALID_MIDDLEWARE_MESSAGE=s;const i=m=>`Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it.
|
|
92
|
+
|
|
93
|
+
(Read more: https://docs.nestjs.com/fundamentals/circular-dependency)
|
|
94
|
+
Scope [${o(m)}]
|
|
95
|
+
`;Ae.UNDEFINED_FORWARDREF_MESSAGE=i;const c=(m,v,g)=>{const _=m?.name||"module";return`Nest cannot create the ${_} instance.
|
|
96
|
+
Received an unexpected value at index [${v}] of the ${_} "imports" array.
|
|
97
|
+
|
|
98
|
+
Scope [${o(g)}]`};Ae.INVALID_MODULE_MESSAGE=c;const u=(m,v)=>`Classes annotated with @Injectable(), @Catch(), and @Controller() decorators must not appear in the "imports" array of a module.
|
|
99
|
+
Please remove ${`"${t(m)}"`} (including forwarded occurrences, if any) from all of the "imports" arrays.
|
|
100
|
+
|
|
101
|
+
Scope [${o(v)}]
|
|
102
|
+
`;Ae.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE=u;const p=(m,v,g)=>{const _=m?.name||"module";return`Nest cannot create the ${_} instance.
|
|
103
|
+
The module at index [${v}] of the ${_} "imports" array is undefined.
|
|
104
|
+
|
|
105
|
+
Potential causes:
|
|
106
|
+
- A circular dependency between modules. Use forwardRef() to avoid it. Read more: https://docs.nestjs.com/fundamentals/circular-dependency
|
|
107
|
+
- The module at index [${v}] is of type "undefined". Check your import statements and the type of the module.
|
|
108
|
+
|
|
109
|
+
Scope [${o(g)}]`};Ae.UNDEFINED_MODULE_MESSAGE=p;const l=(m="item",v)=>(m=(0,e.isSymbol)(m)?m.toString():m,`Nest cannot export a provider/module that is not a part of the currently processed module (${v}). Please verify whether the exported ${m} is available in this particular context.
|
|
110
|
+
|
|
111
|
+
Possible Solutions:
|
|
112
|
+
- Is ${m} part of the relevant providers/imports within ${v}?
|
|
113
|
+
|
|
114
|
+
For more common dependency resolution issues, see: https://docs.nestjs.com/faq/common-errors
|
|
115
|
+
`);Ae.UNKNOWN_EXPORT_MESSAGE=l;const d=(m,v)=>`ModuleRef cannot instantiate class (${v} is not constructable).`;Ae.INVALID_CLASS_MESSAGE=d;const f=(m,v)=>`${v||"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.`;Ae.INVALID_CLASS_SCOPE_MESSAGE=f;const h=m=>{const v=m.name;return v?`An invalid controller has been detected. "${v}" 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."};return Ae.UNKNOWN_REQUEST_MAPPING=h,Ae.INVALID_MIDDLEWARE_CONFIGURATION="An invalid middleware configuration has been passed inside the module 'configure()' method.",Ae.UNHANDLED_RUNTIME_EXCEPTION="Unhandled Runtime Exception.",Ae.INVALID_EXCEPTION_FILTER="Invalid exception filters (@UseFilters()).",Ae.MICROSERVICES_PACKAGE_NOT_FOUND_EXCEPTION="Unable to load @nestjs/microservices package. (Please make sure that it's already installed.)",Ae}var HT;function nN(){if(HT)return yc;HT=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.InvalidExceptionFilterException=void 0;const e=et(),t=bt();class r extends e.RuntimeException{constructor(){super(t.INVALID_EXCEPTION_FILTER)}}return yc.InvalidExceptionFilterException=r,yc}var xc={},VT;function nW(){if(VT)return xc;VT=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.ExternalExceptionFilter=void 0;const e=ve();class t{catch(a,o){throw a instanceof Error&&!(a instanceof e.IntrinsicException)&&t.logger.error(a),a}}return xc.ExternalExceptionFilter=t,t.logger=new e.Logger("ExceptionsHandler"),xc}var GT;function iW(){if(GT)return gc;GT=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.ExternalExceptionsHandler=void 0;const e=rN(),t=ne(),r=nN(),a=nW();class o extends a.ExternalExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,i){const c=this.invokeCustomFilters(s,i);return c||super.catch(s,i)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,i){if((0,t.isEmpty)(this.filters))return null;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c?c.func(s,i):null}}return gc.ExternalExceptionsHandler=o,gc}var WT;function aW(){if(WT)return vc;WT=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.ExternalExceptionFilterContext=void 0;const e=xe(),t=ne(),r=He(),a=it(),o=tN(),n=iW();class s extends o.BaseExceptionFilterContext{constructor(c,u){super(c),this.config=u}create(c,u,p,l=a.STATIC_CONTEXT,d){this.moduleContext=p;const f=new n.ExternalExceptionsHandler,h=this.createContext(c,u,e.EXCEPTION_FILTERS_METADATA,l,d);return(0,t.isEmpty)(h)||f.setCustomFilters(h.reverse()),f}getGlobalMetadata(c=a.STATIC_CONTEXT,u){if(!this.config)return[];const p=this.config.getGlobalFilters();if(c===a.STATIC_CONTEXT&&!u)return p;const l=this.config.getGlobalRequestFilters(),d=(0,r.iterate)(l).map(f=>f.getInstanceByContextId(c,u)).filter(f=>!!f).map(f=>f.instance).toArray();return p.concat(d)}}return vc.ExternalExceptionFilterContext=s,vc}var Mm={},Oc={},ZT;function iN(){return ZT||(ZT=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.FORBIDDEN_MESSAGE=void 0,Oc.FORBIDDEN_MESSAGE="Forbidden resource"),Oc}var wc={},Sc={},KT;function Sn(){if(KT)return Sc;KT=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.ExecutionContextHost=void 0;class e{constructor(r,a=null,o=null){this.args=r,this.constructorRef=a,this.handler=o,this.contextType="http"}setType(r){r&&(this.contextType=r)}getType(){return this.contextType}getClass(){return this.constructorRef}getHandler(){return this.handler}getArgs(){return this.args}getArgByIndex(r){return this.args[r]}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)})}}return Sc.ExecutionContextHost=e,Sc}var YT;function oW(){if(YT)return wc;YT=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.GuardsConsumer=void 0;const e=ne(),t=gn(),r=Sn();class a{async tryActivate(n,s,i,c,u){if(!n||(0,e.isEmpty)(n))return!0;const p=this.createContext(s,i,c);p.setType(u);for(const l of n){const d=l.canActivate(p);if(typeof d=="boolean"){if(!d)return!1;continue}if(!await this.pickResult(d))return!1}return!0}createContext(n,s,i){return new r.ExecutionContextHost(n,s.constructor,i)}async pickResult(n){return n instanceof t.Observable?(0,t.lastValueFrom)(n):n}}return wc.GuardsConsumer=a,wc}var Pc={},XT;function sW(){if(XT)return Pc;XT=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.GuardsContextCreator=void 0;const e=xe(),t=ne(),r=He(),a=Np(),o=it();class n extends a.ContextCreator{constructor(i,c){super(),this.container=i,this.config=c}create(i,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(i,c,e.GUARDS_METADATA,p,l)}createConcreteContext(i,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(i)?[]:(0,r.iterate)(i).filter(p=>p&&(p.name||p.canActivate)).map(p=>this.getGuardInstance(p,c,u)).filter(p=>!!p&&(0,t.isFunction)(p.canActivate)).toArray()}getGuardInstance(i,c=o.STATIC_CONTEXT,u){if(!!i.canActivate)return i;const l=this.getInstanceByMetatype(i);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(i){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);return u?u.injectables.get(i):void 0}getGlobalMetadata(i=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalGuards();if(i===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestGuards(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(i,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Pc.GuardsContextCreator=n,Pc}var QT;function hb(){return QT||(QT=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(iN(),e),t.__exportStar(oW(),e),t.__exportStar(sW(),e)})(Mm)),Mm}var Im={},Tc={},JT;function cW(){if(JT)return Tc;JT=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.InterceptorsConsumer=void 0;const e=ne(),t=QF,r=gn(),a=Bg(),o=Sn();class n{async intercept(i,c,u,p,l,d){if((0,e.isEmpty)(i))return l();const f=this.createContext(c,u,p);f.setType(d);const h=async(m=0)=>{if(m>=i.length)return(0,r.defer)(t.AsyncResource.bind(()=>this.transformDeferred(l)));const v={handle:()=>(0,r.defer)(t.AsyncResource.bind(()=>h(m+1))).pipe((0,a.mergeAll)())};return i[m].intercept(f,v)};return(0,r.defer)(()=>h()).pipe((0,a.mergeAll)())}createContext(i,c,u){return new o.ExecutionContextHost(i,c.constructor,u)}transformDeferred(i){return(0,r.from)(i()).pipe((0,a.switchMap)(c=>c instanceof Promise||c instanceof r.Observable?c:Promise.resolve(c)))}}return Tc.InterceptorsConsumer=n,Tc}var Ac={},eA;function uW(){if(eA)return Ac;eA=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.InterceptorsContextCreator=void 0;const e=xe(),t=ne(),r=He(),a=Np(),o=it();class n extends a.ContextCreator{constructor(i,c){super(),this.container=i,this.config=c}create(i,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(i,c,e.INTERCEPTORS_METADATA,p,l)}createConcreteContext(i,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(i)?[]:(0,r.iterate)(i).filter(p=>p&&(p.name||p.intercept)).map(p=>this.getInterceptorInstance(p,c,u)).filter(p=>p?(0,t.isFunction)(p.intercept):!1).toArray()}getInterceptorInstance(i,c=o.STATIC_CONTEXT,u){if(!!i.intercept)return i;const l=this.getInstanceByMetatype(i);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(i){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(i)}getGlobalMetadata(i=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalInterceptors();if(i===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestInterceptors(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(i,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}}return Ac.InterceptorsContextCreator=n,Ac}var tA;function aN(){return tA||(tA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(cW(),e),t.__exportStar(uW(),e)})(Im)),Im}var Cm={},Rc={},rA;function oN(){if(rA)return Rc;rA=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.ParamsTokenFactory=void 0;const e=hp();class t{exchangeEnumForString(a){switch(a){case e.RouteParamtypes.BODY:return"body";case e.RouteParamtypes.PARAM:return"param";case e.RouteParamtypes.QUERY:return"query";default:return"custom"}}}return Rc.ParamsTokenFactory=t,Rc}var Mc={},nA;function lW(){if(nA)return Mc;nA=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.PipesConsumer=void 0;const e=oN();class t{constructor(){this.paramsTokenFactory=new e.ParamsTokenFactory}async apply(a,{metatype:o,type:n,data:s},i){const c=this.paramsTokenFactory.exchangeEnumForString(n);return this.applyPipes(a,{metatype:o,type:c,data:s},i)}async applyPipes(a,{metatype:o,type:n,data:s},i){return i.reduce(async(c,u)=>{const p=await c;return u.transform(p,{metatype:o,type:n,data:s})},Promise.resolve(a))}}return Mc.PipesConsumer=t,Mc}var Ic={},iA;function dW(){if(iA)return Ic;iA=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.PipesContextCreator=void 0;const e=xe(),t=ne(),r=He(),a=Np(),o=it();class n extends a.ContextCreator{constructor(i,c){super(),this.container=i,this.config=c}create(i,c,u,p=o.STATIC_CONTEXT,l){return this.moduleContext=u,this.createContext(i,c,e.PIPES_METADATA,p,l)}createConcreteContext(i,c=o.STATIC_CONTEXT,u){return(0,t.isEmpty)(i)?[]:(0,r.iterate)(i).filter(p=>p&&(p.name||p.transform)).map(p=>this.getPipeInstance(p,c,u)).filter(p=>!!p&&p.transform&&(0,t.isFunction)(p.transform)).toArray()}getPipeInstance(i,c=o.STATIC_CONTEXT,u){if(!!i.transform)return i;const l=this.getInstanceByMetatype(i);if(!l)return null;const d=l.getInstanceByContextId(this.getContextId(c,l),u);return d&&d.instance}getInstanceByMetatype(i){if(!this.moduleContext)return;const u=this.container.getModules().get(this.moduleContext);if(u)return u.injectables.get(i)}getGlobalMetadata(i=o.STATIC_CONTEXT,c){if(!this.config)return[];const u=this.config.getGlobalPipes();if(i===o.STATIC_CONTEXT&&!c)return u;const p=this.config.getGlobalRequestPipes(),l=(0,r.iterate)(p).map(d=>d.getInstanceByContextId(this.getContextId(i,d),c)).filter(d=>!!d).map(d=>d.instance).toArray();return u.concat(l)}setModuleContext(i){this.moduleContext=i}}return Ic.PipesContextCreator=n,Ic}var aA;function sN(){return aA||(aA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(oN(),e),t.__exportStar(lW(),e),t.__exportStar(dW(),e)})(Cm)),Cm}var Cc={},oA;function cN(){if(oA)return Cc;oA=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.ContextUtils=void 0;const e=xe(),t=ne(),r=Sn();class a{mapParamType(n){return n.split(":")[0]}reflectCallbackParamtypes(n,s){return Reflect.getMetadata(e.PARAMTYPES_METADATA,n,s)}reflectCallbackMetadata(n,s,i){return Reflect.getMetadata(i,n.constructor,s)}reflectPassthrough(n,s){return Reflect.getMetadata(e.RESPONSE_PASSTHROUGH_METADATA,n.constructor,s)}getArgumentsLength(n,s){return n.length?Math.max(...n.map(i=>s[i].index))+1:0}createNullArray(n){const s=new Array(n);for(let i=0;i<n;++i)s[i]=void 0;return s}mergeParamsMetatypes(n,s){return s?n.map(i=>({...i,metatype:s[i.index]})):n}getCustomFactory(n,s,i){return(0,t.isFunction)(n)?(...c)=>n(s,i(c)):()=>null}getContextFactory(n,s,i){const c=s&&s.constructor;return u=>{const p=new r.ExecutionContextHost(u,c,i);return p.setType(n),p}}}return Cc.ContextUtils=a,Cc}var jc={},sA;function pW(){if(sA)return jc;sA=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.ExternalErrorProxy=void 0;const e=Sn();class t{createProxy(a,o,n){return async(...s)=>{try{return await a(...s)}catch(i){const c=new e.ExecutionContextHost(s);return c.setType(n),o.next(i,c)}}}}return jc.ExternalErrorProxy=t,jc}var jm={},cA;function uN(){return cA||(cA=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerMetadataStorage=e.HANDLER_METADATA_SYMBOL=void 0;const r=it();e.HANDLER_METADATA_SYMBOL=Symbol.for("handler_metadata:cache");class a{constructor(){this[t]=new Map}set(n,s,i){const c=this.getMetadataKey(n,s);this[e.HANDLER_METADATA_SYMBOL].set(c,i)}get(n,s){const i=this.getMetadataKey(n,s);return this[e.HANDLER_METADATA_SYMBOL].get(i)}getMetadataKey(n,s){const i=n.constructor;return(i&&(i[r.CONTROLLER_ID_KEY]||i.name))+s}}e.HandlerMetadataStorage=a,t=e.HANDLER_METADATA_SYMBOL})(jm)),jm}var uA;function vb(){if(uA)return hc;uA=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.ExternalContextCreator=void 0;const e=ve(),t=xe(),r=ne(),a=gn(),o=aW(),n=hb(),s=iN(),i=it(),c=aN(),u=sN(),p=cN(),l=pW(),d=uN();class f{constructor(m,v,g,_,b,y,E,x){this.guardsContextCreator=m,this.guardsConsumer=v,this.interceptorsContextCreator=g,this.interceptorsConsumer=_,this.modulesContainer=b,this.pipesContextCreator=y,this.pipesConsumer=E,this.filtersContextCreator=x,this.contextUtils=new p.ContextUtils,this.externalErrorProxy=new l.ExternalErrorProxy,this.handlerMetadataStorage=new d.HandlerMetadataStorage}static fromContainer(m){const v=new n.GuardsContextCreator(m,m.applicationConfig),g=new n.GuardsConsumer,_=new c.InterceptorsContextCreator(m,m.applicationConfig),b=new c.InterceptorsConsumer,y=new u.PipesContextCreator(m,m.applicationConfig),E=new u.PipesConsumer,x=new o.ExternalExceptionFilterContext(m,m.applicationConfig),O=new f(v,g,_,b,m.getModules(),y,E,x);return O.container=m,O}create(m,v,g,_,b,y=i.STATIC_CONTEXT,E,x={interceptors:!0,guards:!0,filters:!0},O="http"){const S=this.getContextModuleKey(m.constructor),{argsLength:w,paramtypes:T,getParamsMetadata:A}=this.getMetadata(m,g,_,b,O),P=this.pipesContextCreator.create(m,v,S,y,E),C=this.guardsContextCreator.create(m,v,S,y,E),D=this.filtersContextCreator.create(m,v,S,y,E),H=x.interceptors?this.interceptorsContextCreator.create(m,v,S,y,E):[],F=A(S,y,E),z=F?this.contextUtils.mergeParamsMetatypes(F,T):[],Z=x.guards?this.createGuardsFn(C,m,v,O):null,X=this.createPipesFn(P,z),k=(q,...N)=>async()=>X?(await X(q,...N),v.apply(m,q)):v.apply(m,N),re=async(...q)=>{const N=this.contextUtils.createNullArray(w);Z&&await Z(q);const L=await this.interceptorsConsumer.intercept(H,q,m,v,k(N,...q),O);return this.transformToResult(L)};return x.filters?this.externalErrorProxy.createProxy(re,D,O):re}getMetadata(m,v,g,_,b){const y=this.handlerMetadataStorage.get(m,v);if(y)return y;const E=this.contextUtils.reflectCallbackMetadata(m,v,g||"")||{},x=Object.keys(E),O=this.contextUtils.getArgumentsLength(x,E),S=this.contextUtils.reflectCallbackParamtypes(m,v),w=this.contextUtils.getContextFactory(b,m,m[v]),A={argsLength:O,paramtypes:S,getParamsMetadata:(P,C=i.STATIC_CONTEXT,D)=>_?this.exchangeKeysForValues(x,E,P,_,C,D,w):null};return this.handlerMetadataStorage.set(m,v,A),A}getContextModuleKey(m){if(!m)return"";const g=this.modulesContainer.entries();for(const[_,b]of g)if(b.hasProvider(m))return _;return""}exchangeKeysForValues(m,v,g,_,b=i.STATIC_CONTEXT,y,E=this.contextUtils.getContextFactory("http")){return this.pipesContextCreator.setModuleContext(g),m.map(x=>{const{index:O,data:S,pipes:w}=v[x],T=this.pipesContextCreator.createConcreteContext(w,b,y),A=this.contextUtils.mapParamType(x);if(x.includes(t.CUSTOM_ROUTE_ARGS_METADATA)){const{factory:D}=v[x],H=this.contextUtils.getCustomFactory(D,S,E);return{index:O,extractValue:H,type:A,data:S,pipes:T}}const P=Number(A);return{index:O,extractValue:(...D)=>_.exchangeKeyForValue(P,S,D),type:P,data:S,pipes:T}})}createPipesFn(m,v){const g=async(_,...b)=>{const y=async E=>{const{index:x,extractValue:O,type:S,data:w,metatype:T,pipes:A}=E,P=O(...b);_[x]=await this.getParamValue(P,{metatype:T,type:S,data:w},m.concat(A))};await Promise.all(v.map(y))};return v.length?g:null}async getParamValue(m,{metatype:v,type:g,data:_},b){return(0,r.isEmpty)(b)?m:this.pipesConsumer.apply(m,{metatype:v,type:g,data:_},b)}async transformToResult(m){return(0,a.isObservable)(m)?(0,a.lastValueFrom)(m):m}createGuardsFn(m,v,g,_){const b=async y=>{if(!await this.guardsConsumer.tryActivate(m,y,v,g,_))throw new e.ForbiddenException(s.FORBIDDEN_MESSAGE)};return m.length?b:null}registerRequestProvider(m,v){this.container.registerRequestProvider(m,v)}}return hc.ExternalContextCreator=f,hc}var lA;function fW(){return lA||(lA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(ql(),e),t.__exportStar(vb(),e),t.__exportStar(jl(),e)})(Rm)),Rm}var qm={},qc={},Nm={},Nc={},dA;function lN(){if(dA)return Nc;dA=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.CircularDependencyException=void 0;const e=et();class t extends e.RuntimeException{constructor(a){const o=a?` inside ${a}`:"";super(`A circular dependency has been detected${o}. 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.`)}}return Nc.CircularDependencyException=t,Nc}var Fc={},pA;function dN(){if(pA)return Fc;pA=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.UnknownElementException=void 0;const e=et();class t extends e.RuntimeException{constructor(a){a=a&&a.toString(),super(`Nest could not find ${a||"given"} element (this provider does not exist in the current context)`)}}return Fc.UnknownElementException=t,Fc}var Dc={},fA;function hW(){if(fA)return Dc;fA=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.InvalidClassScopeException=void 0;const e=ne(),t=bt(),r=et();class a extends r.RuntimeException{constructor(n){let s=(0,e.isFunction)(n)?n.name:n;s=s&&s.toString(),super((0,t.INVALID_CLASS_SCOPE_MESSAGE)`${s}`)}}return Dc.InvalidClassScopeException=a,Dc}var kc={},hA;function vW(){if(hA)return kc;hA=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.InvalidClassException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.INVALID_CLASS_MESSAGE)`${o}`)}}return kc.InvalidClassException=r,kc}var Lc={},vA;function mW(){if(vA)return Lc;vA=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.UnknownExportException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o,n){super((0,e.UNKNOWN_EXPORT_MESSAGE)(o,n))}}return Lc.UnknownExportException=r,Lc}var Uc={},mA;function _W(){if(mA)return Uc;mA=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.UnknownModuleException=void 0;const e=et();class t extends e.RuntimeException{constructor(a){super(`Nest could not select the given module (${a?`"${a}"`:"it"} does not exist in current context).`)}}return Uc.UnknownModuleException=t,Uc}var $c={},_A;function gW(){if(_A)return $c;_A=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.UndefinedForwardRefException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.UNDEFINED_FORWARDREF_MESSAGE)(o))}}return $c.UndefinedForwardRefException=r,$c}var gA;function Nl(){return gA||(gA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(lN(),e),t.__exportStar(et(),e),t.__exportStar(dN(),e),t.__exportStar(hW(),e),t.__exportStar(vW(),e),t.__exportStar(mW(),e),t.__exportStar(_W(),e),t.__exportStar(gW(),e)})(Nm)),Nm}var zc={},bA;function mb(){if(bA)return zc;bA=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.InitializeOnPreviewAllowlist=void 0;class e{static add(r){this.allowlist.set(r,!0)}static has(r){return this.allowlist.has(r)}}return zc.InitializeOnPreviewAllowlist=e,e.allowlist=new WeakMap,zc}var Bc={},Hc={},yA;function _b(){return yA||(yA=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.INQUIRER=void 0,Hc.INQUIRER="INQUIRER"),Hc}var Vc={},Gc={},EA;function bW(){if(EA)return Gc;EA=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.SilentLogger=void 0;const e=ve(),t=()=>{};class r extends e.Logger{constructor(){super(...arguments),this.log=t,this.error=t,this.warn=t,this.debug=t,this.verbose=t,this.fatal=t,this.setLogLevels=t}}return Gc.SilentLogger=r,Gc}var Wc={},Id={},xA;function Fp(){if(xA)return Id;xA=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.getClassScope=t;const e=xe();function t(r){const a=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return a&&a.scope}return Id}var Cd={},OA;function gb(){if(OA)return Cd;OA=1,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.isDurable=t;const e=xe();function t(r){const a=Reflect.getMetadata(e.SCOPE_OPTIONS_METADATA,r);return a&&a.durable}return Cd}var Zc={},wA;function pN(){if(wA)return Zc;wA=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.AbstractInstanceResolver=void 0;const e=ve(),t=Nl();class r{find(o,n){const s=this.instanceLinksHost.get(o,n),i=({wrapperRef:c})=>{if(c.scope===e.Scope.REQUEST||c.scope===e.Scope.TRANSIENT)throw new t.InvalidClassScopeException(o);return c.instance};return Array.isArray(s)?s.map(i):i(s)}async resolvePerContext(o,n,s,i){const c=i?.strict?this.instanceLinksHost.get(o,{moduleId:n.id,each:i.each}):this.instanceLinksHost.get(o,{each:i?.each}),u=async p=>{const{wrapperRef:l,collection:d}=p;if(l.isDependencyTreeStatic()&&!l.isTransient)return this.get(o,{strict:i?.strict});const f=l.instance||{constructor:o},h=await this.injector.loadPerContext(f,l.host,d,s,l);if(!h)throw new t.UnknownElementException;return h};return Array.isArray(c)?Promise.all(c.map(p=>u(p))):u(c)}}return Zc.AbstractInstanceResolver=r,Zc}var Kc={},Yc={},SA;function yW(){if(SA)return Yc;SA=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.UndefinedDependencyException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o,n,s){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(o,n,s))}}return Yc.UndefinedDependencyException=r,Yc}var Xc={},PA;function fN(){if(PA)return Xc;PA=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.UnknownDependenciesException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o,n,s,i){super((0,e.UNKNOWN_DEPENDENCIES_MESSAGE)(o,n,s)),this.type=o,this.context=n,this.metadata=i,this.moduleRef=s&&{id:s.id}}}return Xc.UnknownDependenciesException=r,Xc}var Qc={},TA;function EW(){if(TA)return Qc;TA=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.Barrier=void 0;class e{constructor(r){this.currentCount=0,this.targetCount=r,this.promise=new Promise(a=>{this.resolve=a})}signal(){this.currentCount+=1,this.currentCount===this.targetCount&&this.resolve()}async wait(){return this.promise}async signalAndWait(){return this.signal(),this.wait()}}return Qc.Barrier=e,Qc}var Fm={},AA;function hN(){return AA||(AA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(_b(),e)})(Fm)),Fm}var Dm={},nn={},Jc={},RA;function bb(){if(RA)return Jc;RA=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.DeterministicUuidRegistry=void 0;class e{static get(r,a=0){const o=a?this.hashCode(`${r}_${a}`):this.hashCode(r);return this.registry.has(o)?this.get(r,a+1):(this.registry.set(o,!0),o)}static clear(){this.registry.clear()}static hashCode(r){let a=0;for(let o=0;o<r.length;o++)a=Math.imul(31,a)+r.charCodeAt(o)|0;return a.toString()}}return Jc.DeterministicUuidRegistry=e,e.registry=new Map,Jc}var MA;function Fl(){if(MA)return nn;MA=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.UuidFactory=nn.UuidFactoryMode=void 0;const e=ir(),t=bb();var r;(function(o){o.Random="random",o.Deterministic="deterministic"})(r||(nn.UuidFactoryMode=r={}));class a{static set mode(n){this._mode=n}static get(n=""){return this._mode===r.Deterministic?t.DeterministicUuidRegistry.get(n):(0,e.randomStringGenerator)()}}return nn.UuidFactory=a,a._mode=r.Random,nn}var Kn={},IA;function xW(){if(IA)return Kn;IA=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.isClassProvider=t,Kn.isValueProvider=r,Kn.isFactoryProvider=a;const e=ne();function t(o){return!!o?.useClass}function r(o){const n=o?.useValue;return!(0,e.isUndefined)(n)}function a(o){return!!o.useFactory}return Kn}var CA;function Dl(){return CA||(CA=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.InstanceWrapper=e.INSTANCE_ID_SYMBOL=e.INSTANCE_METADATA_SYMBOL=void 0;const r=ve(),a=nr(),o=ir(),n=ne(),s=He(),i=Fl(),c=it(),u=xW();e.INSTANCE_METADATA_SYMBOL=Symbol.for("instance_metadata:cache"),e.INSTANCE_ID_SYMBOL=Symbol.for("instance_metadata:id");class p{constructor(d={}){this.isAlias=!1,this.scope=r.Scope.DEFAULT,this.values=new WeakMap,this[t]={},this.initialize(d),this[e.INSTANCE_ID_SYMBOL]=d[e.INSTANCE_ID_SYMBOL]??this.generateUuid()}get id(){return this[e.INSTANCE_ID_SYMBOL]}set instance(d){this.values.set(c.STATIC_CONTEXT,{instance:d})}get instance(){return this.getInstanceByContextId(c.STATIC_CONTEXT).instance}get isNotMetatype(){return!this.metatype||this.isFactory}get isFactory(){return!!this.metatype&&!(0,n.isNil)(this.inject)}get isTransient(){return this.scope===r.Scope.TRANSIENT}getInstanceByContextId(d,f){if(this.scope===r.Scope.TRANSIENT&&f)return this.getInstanceByInquirerId(d,f);const h=this.values.get(d);return h||(d!==c.STATIC_CONTEXT?this.cloneStaticInstance(d):{instance:null,isResolved:!0,isPending:!1})}getInstanceByInquirerId(d,f){let h=this.transientMap.get(f);h||(h=new WeakMap,this.transientMap.set(f,h));const m=h.get(d);return m||this.cloneTransientInstance(d,f)}setInstanceByContextId(d,f,h){if(this.scope===r.Scope.TRANSIENT&&h)return this.setInstanceByInquirerId(d,h,f);this.values.set(d,f)}setInstanceByInquirerId(d,f,h){let m=this.transientMap.get(f);m||(m=new WeakMap,this.transientMap.set(f,m)),m.set(d,h)}removeInstanceByContextId(d,f){if(this.scope===r.Scope.TRANSIENT&&f)return this.removeInstanceByInquirerId(d,f);this.values.delete(d)}removeInstanceByInquirerId(d,f){const h=this.transientMap.get(f);h&&h.delete(d)}addCtorMetadata(d,f){this[e.INSTANCE_METADATA_SYMBOL].dependencies||(this[e.INSTANCE_METADATA_SYMBOL].dependencies=[]),this[e.INSTANCE_METADATA_SYMBOL].dependencies[d]=f}getCtorMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].dependencies}addPropertiesMetadata(d,f){this[e.INSTANCE_METADATA_SYMBOL].properties||(this[e.INSTANCE_METADATA_SYMBOL].properties=[]),this[e.INSTANCE_METADATA_SYMBOL].properties.push({key:d,wrapper:f})}getPropertiesMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].properties}addEnhancerMetadata(d){this[e.INSTANCE_METADATA_SYMBOL].enhancers||(this[e.INSTANCE_METADATA_SYMBOL].enhancers=[]),this[e.INSTANCE_METADATA_SYMBOL].enhancers.push(d)}getEnhancersMetadata(){return this[e.INSTANCE_METADATA_SYMBOL].enhancers}isDependencyTreeDurable(d=[]){if(!(0,n.isUndefined)(this.isTreeDurable))return this.isTreeDurable;if(this.scope===r.Scope.REQUEST)return this.isTreeDurable=this.durable===void 0?!1:this.durable,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable;if(this.isDependencyTreeStatic())return!1;const h=this.introspectDepsAttribute((m,v)=>m.some(g=>!g.isDependencyTreeStatic()&&!g.isDependencyTreeDurable(v)),d);return this.isTreeDurable=!h,this.isTreeDurable&&this.printIntrospectedAsDurable(),this.isTreeDurable}introspectDepsAttribute(d,f=[]){if(f.includes(this[e.INSTANCE_ID_SYMBOL]))return!1;f=f.concat(this[e.INSTANCE_ID_SYMBOL]);const{dependencies:h,properties:m,enhancers:v}=this[e.INSTANCE_METADATA_SYMBOL];let g=h?d(h,f):!1;return g||!(m||v)||(g=m?d(m.map(_=>_.wrapper),f):!1,g||!v)?g:v?d(v,f):!1}isDependencyTreeStatic(d=[]){return(0,n.isUndefined)(this.isTreeStatic)?this.scope===r.Scope.REQUEST?(this.isTreeStatic=!1,this.printIntrospectedAsRequestScoped(),this.isTreeStatic):(this.isTreeStatic=!this.introspectDepsAttribute((f,h)=>f.some(m=>!m.isDependencyTreeStatic(h)),d),this.isTreeStatic||this.printIntrospectedAsRequestScoped(),this.isTreeStatic):this.isTreeStatic}cloneStaticInstance(d){const f=this.getInstanceByContextId(c.STATIC_CONTEXT);if(this.isDependencyTreeStatic())return f;const h={...f,instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(h.instance=Object.create(this.metatype.prototype)),this.setInstanceByContextId(d,h),h}cloneTransientInstance(d,f){const m={...this.getInstanceByContextId(c.STATIC_CONTEXT),instance:void 0,isResolved:!1,isPending:!1};return this.isNewable()&&(m.instance=Object.create(this.metatype.prototype)),this.setInstanceByInquirerId(d,f,m),m}createPrototype(d){const f=this.getInstanceByContextId(d);if(!(!this.isNewable()||f.isResolved))return Object.create(this.metatype.prototype)}isInRequestScope(d,f){return!this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&(!this.isTransient||this.isTransient&&!!f)}isLazyTransient(d,f){const h=!!(f&&!f.isDependencyTreeStatic());return this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&this.isTransient&&h}isExplicitlyRequested(d,f){const h=f===this;return this.isDependencyTreeStatic()&&d!==c.STATIC_CONTEXT&&(h||!!(f&&f.scope===r.Scope.TRANSIENT))}isStatic(d,f){const h=f&&!f.isDependencyTreeStatic(),m=this.isTransient&&!h,v=f?.getRootInquirer();return this.isDependencyTreeStatic()&&d===c.STATIC_CONTEXT&&(!this.isTransient||m&&!!f&&!f.isTransient||m&&!!v&&!v.isTransient)}attachRootInquirer(d){this.isTransient&&(this.rootInquirer=d.getRootInquirer()??d)}getRootInquirer(){return this.rootInquirer}getStaticTransientInstances(){if(!this.transientMap)return[];const d=[...this.transientMap.values()];return(0,s.iterate)(d).map(f=>f.get(c.STATIC_CONTEXT)).filter(f=>!!(f&&f.isConstructorCalled)).toArray()}mergeWith(d){(0,u.isValueProvider)(d)?(this.metatype=null,this.inject=null,this.scope=r.Scope.DEFAULT,this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:d.useValue,isResolved:!0,isPending:!1})):(0,u.isClassProvider)(d)?(this.inject=null,this.metatype=d.useClass):(0,u.isFactoryProvider)(d)&&(this.metatype=d.useFactory,this.inject=d.inject||[])}isNewable(){return(0,n.isNil)(this.inject)&&this.metatype&&this.metatype.prototype}initialize(d){const{instance:f,isResolved:h,...m}=d;Object.assign(this,m),this.setInstanceByContextId(c.STATIC_CONTEXT,{instance:f,isResolved:h}),this.scope===r.Scope.TRANSIENT&&(this.transientMap=new Map)}printIntrospectedAsRequestScoped(){!this.isDebugMode()||this.name==="REQUEST"||(0,n.isString)(this.name)&&p.logger.log(`${a.clc.cyanBright(this.name)}${a.clc.green(" introspected as ")}${a.clc.magentaBright("request-scoped")}`)}printIntrospectedAsDurable(){this.isDebugMode()&&(0,n.isString)(this.name)&&p.logger.log(`${a.clc.cyanBright(this.name)}${a.clc.green(" introspected as ")}${a.clc.magentaBright("durable")}`)}isDebugMode(){return!!process.env.NEST_DEBUG}generateUuid(){let d=this.name?.toString()??this.token?.toString();return d+=this.host?.name??"",d?i.UuidFactory.get(d):(0,o.randomStringGenerator)()}}e.InstanceWrapper=p,t=e.INSTANCE_METADATA_SYMBOL,p.logger=new r.Logger(p.name)})(Dm)),Dm}var eu={},jA;function OW(){if(jA)return eu;jA=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.SettlementSignal=void 0;class e{constructor(){this._refs=new Set,this.completed=!1,this.settledPromise=new Promise(r=>{this.settleFn=r})}complete(){this.completed=!0,this.settleFn()}error(r){this.completed=!0,this.settleFn(r)}asPromise(){return this.settledPromise}insertRef(r){this._refs.add(r)}isCycle(r){return!this.completed&&this._refs.has(r)}}return eu.SettlementSignal=e,eu}var qA;function hi(){if(qA)return Kc;qA=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.Injector=void 0;const e=ve(),t=xe(),r=nr(),a=ne(),o=He(),n=JF,s=Nl(),i=et(),c=yW(),u=fN(),p=EW(),l=it(),d=hN(),f=Dl(),h=OW();class m{constructor(g){this.options=g,this.logger=new e.Logger("InjectorLogger"),this.instanceDecorator=_=>_,g?.instanceDecorator&&(this.instanceDecorator=g.instanceDecorator)}loadPrototype({token:g},_,b=l.STATIC_CONTEXT){if(!_)return;const y=_.get(g),E=y.createPrototype(b);if(E){const x=new f.InstanceWrapper({...y,instance:E});_.set(g,x)}}async loadInstance(g,_,b,y=l.STATIC_CONTEXT,E){const x=this.getInquirerId(E),O=g.getInstanceByContextId(this.getContextId(y,g),x);if(O.isPending){const P=g.settlementSignal;if(E&&P?.isCycle(E.id))throw new s.CircularDependencyException(`"${g.name}"`);return O.donePromise.then(C=>{if(C)throw C})}const S=this.applySettlementSignal(O,g),w=g.token||g.name,{inject:T}=g,A=_.get(w);if((0,a.isUndefined)(A))throw new i.RuntimeException;if(O.isResolved)return S.complete();try{const P=this.getNowTimestamp(),C=async D=>{const H=await this.resolveProperties(g,b,T,y,g,E),F=await this.instantiateClass(D,g,A,y,E);this.applyProperties(F,H),g.initTime=this.getNowTimestamp()-P,S.complete()};await this.resolveConstructorParams(g,b,T,C,y,g,E)}catch(P){throw g.removeInstanceByContextId(this.getContextId(y,g),x),S.error(P),P}}async loadMiddleware(g,_,b,y=l.STATIC_CONTEXT,E){const{metatype:x,token:O}=g,S=_.get(O);(0,a.isUndefined)(S.instance)&&(S.instance=Object.create(x.prototype),await this.loadInstance(g,_,b,y,E||g))}async loadController(g,_,b=l.STATIC_CONTEXT){const y=_.controllers;await this.loadInstance(g,y,_,b,g),await this.loadEnhancersPerContext(g,b,g)}async loadInjectable(g,_,b=l.STATIC_CONTEXT,y){const E=_.injectables;await this.loadInstance(g,E,_,b,y)}async loadProvider(g,_,b=l.STATIC_CONTEXT,y){const E=_.providers;await this.loadInstance(g,E,_,b,y),await this.loadEnhancersPerContext(g,b,g)}applySettlementSignal(g,_){const b=new h.SettlementSignal;return g.donePromise=b.asPromise(),g.isPending=!0,_.settlementSignal=b,b}async resolveConstructorParams(g,_,b,y,E=l.STATIC_CONTEXT,x,O){const S=g.getCtorMetadata();if(S&&E!==l.STATIC_CONTEXT){const F=await this.loadCtorMetadata(S,E,x,O);return y(F)}const w=!(0,a.isNil)(b),[T,A]=w?this.getFactoryProviderDependencies(g):this.getClassDependencies(g),P=new p.Barrier(T.length);let C=!0;const D=async(F,z)=>{try{if(this.isInquirer(F,O))return P.signal(),O&&O.instance;x?.isTransient&&O&&x.attachRootInquirer(O);const Z=await this.resolveSingleParam(g,F,{index:z,dependencies:T},_,E,x,z);await P.signalAndWait();const X=this.getEffectiveInquirer(Z,x,O,E),k=await this.resolveComponentHost(_,Z,E,X),re=k.getInstanceByContextId(this.getContextId(E,k),this.getInquirerId(X));return!re.isResolved&&!k.forwardRef&&(C=!1),re?.instance}catch(Z){if(P.signal(),!A.includes(z))throw Z;return}},H=await Promise.all(T.map(D));C&&await y(H)}getClassDependencies(g){const _=g.metatype;return[this.reflectConstructorParams(_),this.reflectOptionalParams(_)]}getFactoryProviderDependencies(g){const _=[];function b(E){return!(0,a.isUndefined)(E.token)&&!(0,a.isUndefined)(E.optional)&&!E.prototype}const y=(E,x)=>typeof E!="object"?E:b(E)?(E.optional&&_.push(x),E?.token):E;return[g.inject?.map?.(y),_]}reflectConstructorParams(g){const _=[...Reflect.getMetadata(t.PARAMTYPES_METADATA,g)||[]];return this.reflectSelfParams(g).forEach(({index:y,param:E})=>_[y]=E),_}reflectOptionalParams(g){return Reflect.getMetadata(t.OPTIONAL_DEPS_METADATA,g)||[]}reflectSelfParams(g){return Reflect.getMetadata(t.SELF_DECLARED_DEPS_METADATA,g)||[]}async resolveSingleParam(g,_,b,y,E=l.STATIC_CONTEXT,x,O){if((0,a.isUndefined)(_))throw this.logger.log("Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration."),new c.UndefinedDependencyException(g.name,b,y);const S=this.resolveParamToken(g,_);return this.resolveComponentWrapper(y,S,b,g,E,x,O)}resolveParamToken(g,_){return typeof _=="object"&&"forwardRef"in _?(g.forwardRef=!0,_.forwardRef()):_}async resolveComponentWrapper(g,_,b,y,E=l.STATIC_CONTEXT,x,O){this.printResolvingDependenciesLog(_,x),this.printLookingForProviderLog(_,g);const S=g.providers;return this.lookupComponent(S,g,{...b,name:_},y,E,x,O)}async resolveComponentHost(g,_,b=l.STATIC_CONTEXT,y){const E=this.getInquirerId(y),x=_.getInstanceByContextId(this.getContextId(b,_),E);if(!x.isResolved&&!_.forwardRef?(y?.settlementSignal?.insertRef(_.id),await this.loadProvider(_,_.host??g,b,y)):!x.isResolved&&_.forwardRef&&(b!==l.STATIC_CONTEXT||E)&&x.donePromise&&x.donePromise.then(()=>this.loadProvider(_,g,b,y)),_.async){const O=_.getInstanceByContextId(this.getContextId(b,_),E);O.instance=await O.instance,_.setInstanceByContextId(b,O,E)}return _}async lookupComponent(g,_,b,y,E=l.STATIC_CONTEXT,x,O){const S=y.token||y.name,{name:w}=b;if(y&&S===w)throw new u.UnknownDependenciesException(y.name,b,_,{id:y.id});if(w&&g.has(w)){const T=g.get(w);return this.printFoundInModuleLog(w,_),this.addDependencyMetadata(O,y,T),T}return this.lookupComponentInParentModules(b,_,y,E,x,O)}async lookupComponentInParentModules(g,_,b,y=l.STATIC_CONTEXT,E,x){const O=await this.lookupComponentInImports(_,g.name,b,[],y,E,x);if((0,a.isNil)(O))throw new u.UnknownDependenciesException(b.name,g,_,{id:b.id});return O}async lookupComponentInImports(g,_,b,y=[],E=l.STATIC_CONTEXT,x,O,S){let w=null;const T=g.imports||new Set,A=C=>C;let P=[...T.values()].filter(A);if(S){const C=g.exports;P=P.filter(D=>C.has(D.metatype))}for(const C of P){if(y.includes(C.id))continue;this.printLookingForProviderLog(_,C),y.push(C.id);const{providers:D,exports:H}=C;if(!H.has(_)||!D.has(_)){const Z=await this.lookupComponentInImports(C,_,b,y,E,x,O,!0);if(Z)return this.addDependencyMetadata(O,b,Z),Z;continue}this.printFoundInModuleLog(_,C),w=D.get(_),this.addDependencyMetadata(O,b,w);const F=this.getInquirerId(x);if(!w.getInstanceByContextId(this.getContextId(E,w),F).isResolved&&!w.forwardRef)break}return w}async resolveProperties(g,_,b,y=l.STATIC_CONTEXT,E,x){if(!(0,a.isNil)(b))return[];const O=g.getPropertiesMetadata();if(O&&y!==l.STATIC_CONTEXT)return this.loadPropertiesMetadata(O,y,E);const S=this.reflectProperties(g.metatype),w=new p.Barrier(S.length),T=await Promise.all(S.map(async A=>{try{const P={key:A.key,name:A.name};if(this.isInquirer(A.name,x))return w.signal(),x&&x.instance;const C=await this.resolveSingleParam(g,A.name,P,_,y,E,A.key);await w.signalAndWait();const D=this.getEffectiveInquirer(C,E,x,y),H=await this.resolveComponentHost(_,C,y,D);return H?H.getInstanceByContextId(this.getContextId(y,H),this.getInquirerId(D)).instance:void 0}catch(P){if(w.signal(),!A.isOptional)throw P;return}}));return S.map((A,P)=>({...A,instance:T[P]}))}reflectProperties(g){const _=Reflect.getMetadata(t.PROPERTY_DEPS_METADATA,g)||[],b=Reflect.getMetadata(t.OPTIONAL_PROPERTY_DEPS_METADATA,g)||[];return _.map(y=>({...y,name:y.type,isOptional:b.includes(y.key)}))}applyProperties(g,_){(0,a.isObject)(g)&&(0,o.iterate)(_).filter(b=>!(0,a.isNil)(b.instance)).forEach(b=>g[b.key]=b.instance)}async instantiateClass(g,_,b,y=l.STATIC_CONTEXT,E){const{metatype:x,inject:O}=_,S=this.getInquirerId(E),w=b.getInstanceByContextId(this.getContextId(y,b),S),T=_.isStatic(y,E)||_.isInRequestScope(y,E)||_.isLazyTransient(y,E)||_.isExplicitlyRequested(y,E);if(this.options?.preview&&!_.host?.initOnPreview)return w.isResolved=!0,w.instance;if((0,a.isNil)(O)&&T)w.instance=_.forwardRef?Object.assign(w.instance,new x(...g)):new x(...g),w.instance=this.instanceDecorator(w.instance),w.isConstructorCalled=!0;else if(T){const A=b.metatype(...g);w.instance=await A,w.instance=this.instanceDecorator(w.instance),w.isConstructorCalled=!0}return w.isResolved=!0,w.instance}async loadPerContext(g,_,b,y,E){if(!E){const O=g.constructor;E=b.get(O)}await this.loadInstance(E,b,_,y,E),await this.loadEnhancersPerContext(E,y,E);const x=E.getInstanceByContextId(this.getContextId(y,E),E.id);return x&&x.instance}async loadEnhancersPerContext(g,_,b){const y=g.getEnhancersMetadata()||[],E=x=>{const O=x.host;return this.loadInstance(x,O.injectables,O,_,b)};await Promise.all(y.map(E))}async loadCtorMetadata(g,_,b,y){return(await Promise.all(g.map(async x=>this.resolveScopedComponentHost(x,_,b,y)))).map((x,O)=>{const S=g[O],w=this.getEffectiveInquirer(S,b,y,_);return x?.getInstanceByContextId(this.getContextId(_,x),this.getInquirerId(w)).instance})}async loadPropertiesMetadata(g,_,b){const y=await Promise.all(g.map(async({wrapper:x,key:O})=>({key:O,host:await this.resolveComponentHost(x.host,x,_,b)}))),E=this.getInquirerId(b);return y.map(({key:x,host:O})=>({key:x,name:x,instance:O.getInstanceByContextId(this.getContextId(_,O),E).instance}))}getInquirerId(g){return g?g.id:void 0}getEffectiveInquirer(g,_,b,y){return g?.isTransient&&_?.isTransient&&b&&y!==l.STATIC_CONTEXT?b:_}resolveScopedComponentHost(g,_,b,y){return this.isInquirerRequest(g,y)?y:this.resolveComponentHost(g.host,g,_,this.getEffectiveInquirer(g,b,y,_))}isInquirerRequest(g,_){return g.isTransient&&g.name===d.INQUIRER&&_}isInquirer(g,_){return g===d.INQUIRER&&_}addDependencyMetadata(g,_,b){(0,a.isSymbol)(g)||(0,a.isString)(g)?_.addPropertiesMetadata(g,b):_.addCtorMetadata(g,b)}getTokenName(g){return(0,a.isFunction)(g)?g.name:g.toString()}printResolvingDependenciesLog(g,_){if(!this.isDebugMode())return;const b=this.getTokenName(g),y=(_?.name&&_.name.toString?.())??"unknown",E=y===b,x=`Resolving dependency ${r.clc.cyanBright(b)}${r.clc.green(" in the ")}${r.clc.yellow(y)}${r.clc.green(` provider ${E?"(alias)":""}`)}`;this.logger.log(x)}printLookingForProviderLog(g,_){if(!this.isDebugMode())return;const b=this.getTokenName(g),y=_?.metatype?.name??"unknown";this.logger.log(`Looking for ${r.clc.cyanBright(b)}${r.clc.green(" in ")}${r.clc.magentaBright(y)}`)}printFoundInModuleLog(g,_){if(!this.isDebugMode())return;const b=this.getTokenName(g),y=_?.metatype?.name??"unknown";this.logger.log(`Found ${r.clc.cyanBright(b)}${r.clc.green(" in ")}${r.clc.magentaBright(y)}`)}isDebugMode(){return!!process.env.NEST_DEBUG}getContextId(g,_){return g.getParent?g.getParent({token:_.token,isTreeDurable:_.isDependencyTreeDurable()}):g}getNowTimestamp(){return n.performance.now()}}return Kc.Injector=m,Kc}var tu={},NA;function vN(){if(NA)return tu;NA=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.InstanceLinksHost=void 0;const e=ne(),t=dN();class r{constructor(o){this.container=o,this.instanceLinks=new Map,this.initialize()}get(o,n={}){const s=this.instanceLinks.get(o);if(!s)throw new t.UnknownElementException(this.getInstanceNameByToken(o));if(n.each)return s;const i=n.moduleId?s.find(c=>c.moduleId===n.moduleId):s[s.length-1];if(!i)throw new t.UnknownElementException(this.getInstanceNameByToken(o));return i}initialize(){this.container.getModules().forEach(n=>{const{providers:s,injectables:i,controllers:c}=n;s.forEach((u,p)=>this.addLink(u,p,n,"providers")),i.forEach((u,p)=>this.addLink(u,p,n,"injectables")),c.forEach((u,p)=>this.addLink(u,p,n,"controllers"))})}addLink(o,n,s,i){const c={moduleId:s.id,wrapperRef:o,collection:s[i],token:n},u=this.instanceLinks.get(n);u?u.push(c):this.instanceLinks.set(n,[c])}getInstanceNameByToken(o){return(0,e.isFunction)(o)?o?.name:o}}return tu.InstanceLinksHost=r,tu}var FA;function Dp(){if(FA)return Wc;FA=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.ModuleRef=void 0;const e=ve(),t=Fp(),r=gb(),a=pN(),o=hi(),n=vN(),s=Dl();class i extends a.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new n.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(u){super(),this.container=u,this.injector=new o.Injector({preview:u.contextOptions?.preview,instanceDecorator:u.contextOptions?.instrument?.instanceDecorator})}introspect(u){const{wrapperRef:p}=this.instanceLinksHost.get(u);let l=e.Scope.DEFAULT;return p.isDependencyTreeStatic()?p.isTransient&&(l=e.Scope.TRANSIENT):l=e.Scope.REQUEST,{scope:l}}registerRequestByContextId(u,p){this.container.registerRequestProvider(u,p)}async instantiateClass(u,p,l){const d=new s.InstanceWrapper({name:u&&u.name,metatype:u,isResolved:!1,scope:(0,t.getClassScope)(u),durable:(0,r.isDurable)(u),host:p});return new Promise(async(f,h)=>{try{const m=async v=>{const g=await this.injector.resolveProperties(d,p,void 0,l),_=new u(...v);this.injector.applyProperties(_,g),f(_)};await this.injector.resolveConstructorParams(d,p,void 0,m,l)}catch(m){h(m)}})}}return Wc.ModuleRef=i,Wc}var DA;function yb(){if(DA)return Vc;DA=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.LazyModuleLoader=void 0;const e=bW(),t=Dp();class r{constructor(o,n,s,i,c){this.dependenciesScanner=o,this.instanceLoader=n,this.moduleCompiler=s,this.modulesContainer=i,this.moduleOverrides=c}async load(o,n){this.registerLoggerConfiguration(n);const s=await o(),i=await this.dependenciesScanner.scanForModules({moduleDefinition:s,overrides:this.moduleOverrides,lazy:!0});if(i.length===0){const{token:p}=await this.moduleCompiler.compile(s),l=this.modulesContainer.get(p);return l&&this.getTargetModuleRef(l)}const c=this.createLazyModulesContainer(i);await this.dependenciesScanner.scanModulesForDependencies(c),await this.instanceLoader.createInstancesOfDependencies(c);const[u]=i;return this.getTargetModuleRef(u)}registerLoggerConfiguration(o){o?.logger===!1&&this.instanceLoader.setLogger(new e.SilentLogger)}createLazyModulesContainer(o){return o=Array.from(new Set(o)),new Map(o.map(n=>[n.token,n]))}getTargetModuleRef(o){return o.getProviderByKey(t.ModuleRef).instance}}return Vc.LazyModuleLoader=r,Vc}var ru={},kA;function mN(){if(kA)return ru;kA=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.Reflector=void 0;const e=ve(),t=ne(),r=pn();class a{static createDecorator(n={}){const s=n.key??(0,r.uid)(21),i=c=>(u,p,l)=>{const d=n.transform?n.transform(c):c;(0,e.SetMetadata)(s,d??{})(u,p,l)};return i.KEY=s,i}get(n,s){const i=n.KEY??n;return Reflect.getMetadata(i,s)}getAll(n,s){return(s||[]).map(i=>this.get(n,i))}getAllAndMerge(n,s){const i=this.getAll(n,s).filter(c=>c!==void 0);if((0,t.isEmpty)(i))return i;if(i.length===1){const c=i[0];return(0,t.isObject)(c)?c:i}return i.reduce((c,u)=>Array.isArray(c)?c.concat(u):(0,t.isObject)(c)&&(0,t.isObject)(u)?{...c,...u}:[c,u])}getAllAndOverride(n,s){for(const i of s){const c=this.get(n,i);if(c!==void 0)return c}}}return ru.Reflector=a,ru}var LA;function Eb(){if(LA)return Bc;LA=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.SerializedGraph=void 0;const e=pr(),t=vb(),r=jl(),a=_b(),o=yb(),n=Dp(),s=fi(),i=wn(),c=mN(),u=bb();class p{constructor(){this.nodes=new Map,this.edges=new Map,this.entrypoints=new Map,this.extras={orphanedEnhancers:[],attachedEnhancers:[]},this._status="complete"}set status(d){this._status=d}set metadata(d){this._metadata=d}insertNode(d){return d.metadata.type==="provider"&&p.INTERNAL_PROVIDERS.includes(d.metadata.token)&&(d.metadata={...d.metadata,internal:!0}),this.nodes.has(d.id)?this.nodes.get(d.id):(this.nodes.set(d.id,d),d)}insertEdge(d){d.metadata.type==="class-to-class"&&(p.INTERNAL_PROVIDERS.includes(d.metadata.sourceClassToken)||p.INTERNAL_PROVIDERS.includes(d.metadata.targetClassToken))&&(d.metadata={...d.metadata,internal:!0});const f=d.id??this.generateUuidByEdgeDefinition(d),h={...d,id:f};return this.edges.set(f,h),h}insertEntrypoint(d,f){this.entrypoints.has(f)?this.entrypoints.get(f).push(d):this.entrypoints.set(f,[d])}insertOrphanedEnhancer(d){this.extras.orphanedEnhancers.push(d)}insertAttachedEnhancer(d){this.extras.attachedEnhancers.push({nodeId:d})}getNodeById(d){return this.nodes.get(d)}toJSON(){const d={nodes:Object.fromEntries(this.nodes),edges:Object.fromEntries(this.edges),entrypoints:Object.fromEntries(this.entrypoints),extras:this.extras};return this._status&&(d.status=this._status),this._metadata&&(d.metadata=this._metadata),d}toString(){const d=(f,h)=>typeof h=="symbol"?h.toString():typeof h=="function"?h.name??"Function":h;return JSON.stringify(this.toJSON(),d,2)}generateUuidByEdgeDefinition(d){return u.DeterministicUuidRegistry.get(JSON.stringify(d))}}return Bc.SerializedGraph=p,p.INTERNAL_PROVIDERS=[e.ApplicationConfig,n.ModuleRef,r.HttpAdapterHost,o.LazyModuleLoader,t.ExternalContextCreator,s.ModulesContainer,c.Reflector,p,r.HttpAdapterHost.name,c.Reflector.name,i.REQUEST,a.INQUIRER],Bc}var nu={},UA;function wW(){if(UA)return nu;UA=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.ModuleCompiler=void 0;class e{constructor(r){this._moduleOpaqueKeyFactory=r}get moduleOpaqueKeyFactory(){return this._moduleOpaqueKeyFactory}async compile(r){r=await r;const{type:a,dynamicMetadata:o}=this.extractMetadata(r),n=o?this._moduleOpaqueKeyFactory.createForDynamic(a,o,r):this._moduleOpaqueKeyFactory.createForStatic(a,r);return{type:a,dynamicMetadata:o,token:n}}extractMetadata(r){if(!this.isDynamicModule(r))return{type:r?.forwardRef?r.forwardRef():r,dynamicMetadata:void 0};const{module:a,...o}=r;return{type:a,dynamicMetadata:o}}isDynamicModule(r){return!!r.module}}return nu.ModuleCompiler=e,nu}var Yn={},iu={},$A;function SW(){if($A)return iu;$A=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.requestProvider=void 0;const e=ve(),t=wn(),r=()=>{};return iu.requestProvider={provide:t.REQUEST,scope:e.Scope.REQUEST,useFactory:r},iu}var km={},zA;function _N(){return zA||(zA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(mN(),e)})(km)),km}var au={},BA;function PW(){if(BA)return au;BA=1,Object.defineProperty(au,"__esModule",{value:!0}),au.inquirerProvider=void 0;const e=ve(),t=_b(),r=()=>{};return au.inquirerProvider={provide:t.INQUIRER,scope:e.Scope.TRANSIENT,useFactory:r},au}var HA;function kp(){if(HA)return Yn;HA=1;var e;Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.InternalCoreModule=void 0;const t=ae(),r=ve(),a=SW(),o=_N(),n=PW(),s={provide:o.Reflector.name,useExisting:o.Reflector};let i=e=class{static register(u){return{module:e,providers:[...u],exports:[...u.map(p=>p.provide)]}}};return Yn.InternalCoreModule=i,Yn.InternalCoreModule=i=e=t.__decorate([(0,r.Global)(),(0,r.Module)({providers:[o.Reflector,s,a.requestProvider,n.inquirerProvider],exports:[o.Reflector,s,a.requestProvider,n.inquirerProvider]})],i),Yn}var ou={},VA;function TW(){if(VA)return ou;VA=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.InternalProvidersStorage=void 0;const e=jl();class t{constructor(){this._httpAdapterHost=new e.HttpAdapterHost}get httpAdapterHost(){return this._httpAdapterHost}get httpAdapter(){return this._httpAdapter}set httpAdapter(a){this._httpAdapter=a}}return ou.InternalProvidersStorage=t,ou}var su={},GA;function AW(){if(GA)return su;GA=1,Object.defineProperty(su,"__esModule",{value:!0}),su.Module=void 0;const e=xe(),t=vp(),r=ir(),a=ne(),o=He(),n=pr(),s=Nl(),i=ql(),c=Fp(),u=gb(),p=Fl(),l=it(),d=Dl(),f=Dp();class h{constructor(v,g){this._metatype=v,this.container=g,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(v){this._token=v}get name(){return this.metatype.name}get isGlobal(){return this._isGlobal}set isGlobal(v){this._isGlobal=v}get initOnPreview(){return this._initOnPreview}set initOnPreview(v){this._initOnPreview=v}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(v=>this.providers.get(v))}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(v){this._distance=v}addCoreProviders(){this.addModuleAsProvider(),this.addModuleRef(),this.addApplicationConfig()}addModuleRef(){const v=this.createModuleReferenceType();this._providers.set(f.ModuleRef,new d.InstanceWrapper({token:f.ModuleRef,name:f.ModuleRef.name,metatype:f.ModuleRef,isResolved:!0,instance:new v,host:this}))}addModuleAsProvider(){this._providers.set(this._metatype,new d.InstanceWrapper({token:this._metatype,name:this._metatype.name,metatype:this._metatype,isResolved:!1,instance:null,host:this}))}addApplicationConfig(){this._providers.set(n.ApplicationConfig,new d.InstanceWrapper({token:n.ApplicationConfig,name:n.ApplicationConfig.name,isResolved:!0,instance:this.container.applicationConfig,host:this}))}addInjectable(v,g,_){if(this.isCustomProvider(v))return this.addCustomProvider(v,this._injectables,g);let b=this.injectables.get(v);if(b||(b=new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),subtype:g,host:this}),this._injectables.set(v,b)),_){const y=this._controllers.get(_)||this._providers.get(_);y&&y.addEnhancerMetadata(b)}return b}addProvider(v,g){if(this.isCustomProvider(v))return this.isEntryProvider(v.provide)&&this._entryProviderKeys.add(v.provide),this.addCustomProvider(v,this._providers,g);const _=this._providers.has(v);return(this.isTransientProvider(v)||this.isRequestScopeProvider(v))&&_||(this._providers.set(v,new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),host:this})),this.isEntryProvider(v)&&this._entryProviderKeys.add(v)),v}isCustomProvider(v){return!(0,a.isNil)(v.provide)}addCustomProvider(v,g,_){return this.isCustomClass(v)?this.addCustomClass(v,g,_):this.isCustomValue(v)?this.addCustomValue(v,g,_):this.isCustomFactory(v)?this.addCustomFactory(v,g,_):this.isCustomUseExisting(v)&&this.addCustomUseExisting(v,g,_),v.provide}isCustomClass(v){return!(0,a.isUndefined)(v.useClass)}isCustomValue(v){return(0,a.isObject)(v)&&Object.prototype.hasOwnProperty.call(v,"useValue")}isCustomFactory(v){return!(0,a.isUndefined)(v.useFactory)}isCustomUseExisting(v){return!(0,a.isUndefined)(v.useExisting)}isDynamicModule(v){return v&&v.module}addCustomClass(v,g,_){let{scope:b,durable:y}=v;const{useClass:E}=v;(0,a.isUndefined)(b)&&(b=(0,c.getClassScope)(E)),(0,a.isUndefined)(y)&&(y=(0,u.isDurable)(E));const x=v.provide;g.set(x,new d.InstanceWrapper({token:x,name:E?.name||E,metatype:E,instance:null,isResolved:!1,scope:b,durable:y,host:this,subtype:_}))}addCustomValue(v,g,_){const{useValue:b,provide:y}=v,E=this.container.contextOptions?.instrument?.instanceDecorator;g.set(y,new d.InstanceWrapper({token:y,name:y?.name||y,metatype:null,instance:E?E(b):b,isResolved:!0,async:b instanceof Promise,host:this,subtype:_}))}addCustomFactory(v,g,_){const{useFactory:b,inject:y,scope:E,durable:x,provide:O}=v;g.set(O,new d.InstanceWrapper({token:O,name:O?.name||O,metatype:b,instance:null,isResolved:!1,inject:y||[],scope:E,durable:x,host:this,subtype:_}))}addCustomUseExisting(v,g,_){const{useExisting:b,provide:y}=v;g.set(y,new d.InstanceWrapper({token:y,name:y?.name||y,metatype:(E=>E),instance:null,isResolved:!1,inject:[b],host:this,isAlias:!0,subtype:_}))}addExportedProviderOrModule(v){const g=_=>this._exports.add(this.validateExportedProvider(_));if(this.isCustomProvider(v))return this.addCustomExportedProvider(v);if((0,a.isString)(v)||(0,a.isSymbol)(v))return g(v);if(this.isDynamicModule(v)){const{module:_}=v;return g(_)}g(v)}addCustomExportedProvider(v){const g=v.provide;if((0,a.isString)(g)||(0,a.isSymbol)(g))return this._exports.add(this.validateExportedProvider(g));this._exports.add(this.validateExportedProvider(g))}validateExportedProvider(v){if(this._providers.has(v))return v;if(!(0,o.iterate)(this._imports.values()).filter(_=>!!_).map(({metatype:_})=>_).filter(_=>!!_).toArray().includes(v)){const{name:_}=this.metatype,b=(0,a.isFunction)(v)?v.name:v;throw new s.UnknownExportException(b,_)}return v}addController(v){this._controllers.set(v,new d.InstanceWrapper({token:v,name:v.name,metatype:v,instance:null,isResolved:!1,scope:(0,c.getClassScope)(v),durable:(0,u.isDurable)(v),host:this})),this.assignControllerUniqueId(v)}assignControllerUniqueId(v){Object.defineProperty(v,l.CONTROLLER_ID_KEY,{enumerable:!1,writable:!1,configurable:!0,value:(0,r.randomStringGenerator)()})}addImport(v){this._imports.add(v)}replace(v,g){if(g.isProvider&&this.hasProvider(v))return this._providers.get(v).mergeWith({provide:v,...g});if(!g.isProvider&&this.hasInjectable(v))return this._injectables.get(v).mergeWith({provide:v,...g})}hasProvider(v){return this._providers.has(v)}hasInjectable(v){return this._injectables.has(v)}getProviderByKey(v){return this._providers.get(v)}getProviderById(v){return Array.from(this._providers.values()).find(g=>g.id===v)}getControllerById(v){return Array.from(this._controllers.values()).find(g=>g.id===v)}getInjectableById(v){return Array.from(this._injectables.values()).find(g=>g.id===v)}getMiddlewareById(v){return Array.from(this._middlewares.values()).find(g=>g.id===v)}getNonAliasProviders(){return[...this._providers].filter(([v,g])=>!g.isAlias)}createModuleReferenceType(){const v=this;return class extends f.ModuleRef{constructor(){super(v.container)}get(g,_={}){return _.strict??=!0,_.each??=!1,this.find(g,_.strict?{moduleId:v.id,each:_.each}:_)}resolve(g,_=(0,i.createContextId)(),b={}){return b.strict??=!0,b.each??=!1,this.resolvePerContext(g,v,_,b)}async create(g,_){if(!(g&&(0,a.isFunction)(g)&&g.prototype))throw new s.InvalidClassException(g);return this.instantiateClass(g,v,_)}}}isEntryProvider(v){return typeof v=="function"?!!Reflect.getMetadata(e.ENTRY_PROVIDER_WATERMARK,v):!1}generateUuid(){const g=this.token?this.token.includes(":")?this.token.split(":")[1]:this.token:this.name;return g?p.UuidFactory.get(`M__${g}`):(0,r.randomStringGenerator)()}isTransientProvider(v){return(0,c.getClassScope)(v)===t.Scope.TRANSIENT}isRequestScopeProvider(v){return(0,c.getClassScope)(v)===t.Scope.REQUEST}}return su.Module=h,su}var cu={},WA;function RW(){if(WA)return cu;WA=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.ByReferenceModuleOpaqueKeyFactory=void 0;const e=ir(),t=oi,r=Symbol("K_MODULE_ID");class a{constructor(n){this.keyGenerationStrategy=n?.keyGenerationStrategy??"random"}createForStatic(n,s=n){return this.getOrCreateModuleId(n,void 0,s)}createForDynamic(n,s,i){return this.getOrCreateModuleId(n,s,i)}getOrCreateModuleId(n,s,i){if(i[r])return i[r];let c;return this.keyGenerationStrategy==="random"?c=this.generateRandomString():c=s?`${this.generateRandomString()}:${this.hashString(n.name+JSON.stringify(s))}`:`${this.generateRandomString()}:${this.hashString(n.toString())}`,i[r]=c,c}hashString(n){return(0,t.createHash)("sha256").update(n).digest("hex")}generateRandomString(){return(0,e.randomStringGenerator)()}}return cu.ByReferenceModuleOpaqueKeyFactory=a,cu}var uu={},Lm,ZA;function MW(){if(ZA)return Lm;ZA=1,Lm=n,n.default=n,n.stable=u,n.stableStringify=u;var e="[...]",t="[Circular]",r=[],a=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function n(d,f,h,m){typeof m>"u"&&(m=o()),i(d,"",0,[],void 0,0,m);var v;try{a.length===0?v=JSON.stringify(d,f,h):v=JSON.stringify(d,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var g=r.pop();g.length===4?Object.defineProperty(g[0],g[1],g[3]):g[0][g[1]]=g[2]}}return v}function s(d,f,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:d}),r.push([m,h,f,v])):a.push([f,h,d]):(m[h]=d,r.push([m,h,f]))}function i(d,f,h,m,v,g,_){g+=1;var b;if(typeof d=="object"&&d!==null){for(b=0;b<m.length;b++)if(m[b]===d){s(t,d,f,v);return}if(typeof _.depthLimit<"u"&&g>_.depthLimit){s(e,d,f,v);return}if(typeof _.edgesLimit<"u"&&h+1>_.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(b=0;b<d.length;b++)i(d[b],b,b,m,d,g,_);else{var y=Object.keys(d);for(b=0;b<y.length;b++){var E=y[b];i(d[E],E,b,m,d,g,_)}}m.pop()}}function c(d,f){return d<f?-1:d>f?1:0}function u(d,f,h,m){typeof m>"u"&&(m=o());var v=p(d,"",0,[],void 0,0,m)||d,g;try{a.length===0?g=JSON.stringify(v,f,h):g=JSON.stringify(v,l(f),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var _=r.pop();_.length===4?Object.defineProperty(_[0],_[1],_[3]):_[0][_[1]]=_[2]}}return g}function p(d,f,h,m,v,g,_){g+=1;var b;if(typeof d=="object"&&d!==null){for(b=0;b<m.length;b++)if(m[b]===d){s(t,d,f,v);return}try{if(typeof d.toJSON=="function")return}catch{return}if(typeof _.depthLimit<"u"&&g>_.depthLimit){s(e,d,f,v);return}if(typeof _.edgesLimit<"u"&&h+1>_.edgesLimit){s(e,d,f,v);return}if(m.push(d),Array.isArray(d))for(b=0;b<d.length;b++)p(d[b],b,b,m,d,g,_);else{var y={},E=Object.keys(d).sort(c);for(b=0;b<E.length;b++){var x=E[b];p(d[x],x,b,m,d,g,_),y[x]=d[x]}if(typeof v<"u")r.push([v,f,d]),v[f]=y;else return y}m.pop()}}function l(d){return d=typeof d<"u"?d:function(f,h){return h},function(f,h){if(a.length>0)for(var m=0;m<a.length;m++){var v=a[m];if(v[1]===f&&v[0]===h){h=v[2],a.splice(m,1);break}}return d.call(this,f,h)}}return Lm}var KA;function IW(){if(KA)return uu;KA=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.DeepHashedModuleOpaqueKeyFactory=void 0;const e=wt(),t=ir(),r=ne(),a=oi,o=MW(),n="class ",s=n.length;class i{constructor(){this.moduleIdsCache=new WeakMap,this.moduleTokenCache=new Map,this.logger=new e.Logger(i.name,{timestamp:!0})}createForStatic(u){const p=this.getModuleId(u),l=this.getModuleName(u),d=`${p}_${l}`;if(this.moduleTokenCache.has(d))return this.moduleTokenCache.get(d);const f=this.hashString(d);return this.moduleTokenCache.set(d,f),f}createForDynamic(u,p){const l=this.getModuleId(u),d=this.getModuleName(u),f={id:l,module:d,dynamic:p},h=performance.now(),m=this.getStringifiedOpaqueToken(f),v=performance.now()-h;if(v>10){const g=v.toFixed(2);this.logger.warn(`The module "${f.module}" is taking ${g}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(m)}getStringifiedOpaqueToken(u){return u?(0,o.default)(u,this.replacer):""}getModuleId(u){let p=this.moduleIdsCache.get(u);return p||(p=(0,t.randomStringGenerator)(),this.moduleIdsCache.set(u,p),p)}getModuleName(u){return u.name}hashString(u){return(0,a.createHash)("sha256").update(u).digest("hex")}replacer(u,p){if((0,r.isFunction)(p)){const l=p.toString();return l.slice(0,s)===n?p.name:l}return(0,r.isSymbol)(p)?p.toString():p}}return uu.DeepHashedModuleOpaqueKeyFactory=i,uu}var YA;function xb(){if(YA)return qc;YA=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.NestContainer=void 0;const e=xe(),t=Qq(),r=Nl(),a=mb(),o=Eb(),n=wn(),s=wW(),i=kp(),c=TW(),u=AW(),p=fi(),l=RW(),d=IW();class f{constructor(m=void 0,v=void 0){this._applicationConfig=m,this._contextOptions=v,this.globalModules=new Set,this.modules=new p.ModulesContainer,this.dynamicModulesMetadata=new Map,this.internalProvidersStorage=new c.InternalProvidersStorage,this._serializedGraph=new o.SerializedGraph;const g=this._contextOptions?.moduleIdGeneratorAlgorithm==="deep-hash"?new d.DeepHashedModuleOpaqueKeyFactory:new l.ByReferenceModuleOpaqueKeyFactory({keyGenerationStrategy:this._contextOptions?.snapshot?"shallow":"random"});this.moduleCompiler=new s.ModuleCompiler(g)}get serializedGraph(){return this._serializedGraph}get applicationConfig(){return this._applicationConfig}get contextOptions(){return this._contextOptions}setHttpAdapter(m){if(this.internalProvidersStorage.httpAdapter=m,!this.internalProvidersStorage.httpAdapterHost)return;const v=this.internalProvidersStorage.httpAdapterHost;v.httpAdapter=m}getHttpAdapterRef(){return this.internalProvidersStorage.httpAdapter}getHttpAdapterHostRef(){return this.internalProvidersStorage.httpAdapterHost}async addModule(m,v){if(!m)throw new r.UndefinedForwardRefException(v);const{type:g,dynamicMetadata:_,token:b}=await this.moduleCompiler.compile(m);return this.modules.has(b)?{moduleRef:this.modules.get(b),inserted:!0}:{moduleRef:await this.setModule({token:b,type:g,dynamicMetadata:_},v),inserted:!0}}async replaceModule(m,v,g){if(!m||!v)throw new r.UndefinedForwardRefException(g);const{token:_}=await this.moduleCompiler.compile(m),{type:b,dynamicMetadata:y}=await this.moduleCompiler.compile(v);return{moduleRef:await this.setModule({token:_,type:b,dynamicMetadata:y},g),inserted:!1}}async setModule({token:m,dynamicMetadata:v,type:g},_){const b=new u.Module(g,this);b.token=m,b.initOnPreview=this.shouldInitOnPreview(g),this.modules.set(m,b);const y=[].concat(_,g);return await this.addDynamicMetadata(m,v,y),this.isGlobalModule(g,v)&&(b.isGlobal=!0,b.distance=Number.MAX_VALUE,this.addGlobalModule(b)),b}async addDynamicMetadata(m,v,g){if(!v)return;this.dynamicModulesMetadata.set(m,v);const{imports:_}=v;await this.addDynamicModules(_,g)}async addDynamicModules(m,v){m&&await Promise.all(m.map(g=>this.addModule(g,v)))}isGlobalModule(m,v){return v&&v.global?!0:!!Reflect.getMetadata(e.GLOBAL_MODULE_METADATA,m)}addGlobalModule(m){this.globalModules.add(m)}getModules(){return this.modules}getModuleCompiler(){return this.moduleCompiler}getModuleByKey(m){return this.modules.get(m)}getInternalCoreModuleRef(){return this.internalCoreModule}async addImport(m,v){if(!this.modules.has(v))return;const g=this.modules.get(v),{token:_}=await this.moduleCompiler.compile(m),b=this.modules.get(_);g.addImport(b)}addProvider(m,v,g){const _=this.modules.get(v);if(!m)throw new r.CircularDependencyException(_?.metatype.name);if(!_)throw new r.UnknownModuleException;const b=_.addProvider(m,g),y=_.getProviderByKey(b);return t.DiscoverableMetaHostCollection.inspectProvider(this.modules,y),b}addInjectable(m,v,g,_){if(!this.modules.has(v))throw new r.UnknownModuleException;return this.modules.get(v).addInjectable(m,g,_)}addExportedProviderOrModule(m,v){if(!this.modules.has(v))throw new r.UnknownModuleException;this.modules.get(v).addExportedProviderOrModule(m)}addController(m,v){if(!this.modules.has(v))throw new r.UnknownModuleException;const g=this.modules.get(v);g.addController(m);const _=g.controllers.get(m);t.DiscoverableMetaHostCollection.inspectController(this.modules,_)}clear(){this.modules.clear()}replace(m,v){this.modules.forEach(g=>g.replace(m,v))}bindGlobalScope(){this.modules.forEach(m=>this.bindGlobalsToImports(m))}bindGlobalsToImports(m){this.globalModules.forEach(v=>this.bindGlobalModuleToModule(m,v))}bindGlobalModuleToModule(m,v){m===v||m===this.internalCoreModule||m.addImport(v)}getDynamicMetadataByToken(m,v){const g=this.dynamicModulesMetadata.get(m);return v?g?.[v]??[]:g}registerCoreModuleRef(m){this.internalCoreModule=m,this.modules[i.InternalCoreModule.name]=m}getModuleTokenFactory(){return this.moduleCompiler.moduleOpaqueKeyFactory}registerRequestProvider(m,v){this.internalCoreModule.getProviderByKey(n.REQUEST).setInstanceByContextId(v,{instance:m,isResolved:!0})}shouldInitOnPreview(m){return a.InitializeOnPreviewAllowlist.has(m)}}return qc.NestContainer=f,qc}var XA;function gN(){return XA||(XA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(xb(),e),t.__exportStar(hN(),e),t.__exportStar(yb(),e),t.__exportStar(Dp(),e),t.__exportStar(fi(),e)})(qm)),qm}var Um={},lu={},du={},QA;function bN(){if(QA)return du;QA=1,Object.defineProperty(du,"__esModule",{value:!0}),du.PartialGraphHost=void 0;class e{static toJSON(){return this.partialGraph?.toJSON()}static toString(){return this.partialGraph?.toString()}static register(r){this.partialGraph=r}}return du.PartialGraphHost=e,du}var JA;function Lp(){if(JA)return lu;JA=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.GraphInspector=void 0;const e=fN(),t=bb(),r=bN();class a{constructor(n){this.container=n,this.enhancersMetadataCache=new Array,this.graph=n.serializedGraph}inspectModules(n=this.container.getModules()){for(const s of n.values())this.insertModuleNode(s),this.insertClassNodes(s),this.insertModuleToModuleEdges(s);this.enhancersMetadataCache.forEach(s=>this.insertEnhancerEdge(s)),t.DeterministicUuidRegistry.clear()}registerPartial(n){this.graph.status="partial",n instanceof e.UnknownDependenciesException?this.graph.metadata={cause:{type:"unknown-dependencies",context:n.context,moduleId:n.moduleRef?.id,nodeId:n.metadata?.id}}:this.graph.metadata={cause:{type:"unknown",error:n}},r.PartialGraphHost.register(this.graph)}inspectInstanceWrapper(n,s){n.getCtorMetadata()?.forEach((u,p)=>this.insertClassToClassEdge(n,u,s,p,"constructor")),n.getPropertiesMetadata()?.forEach(({key:u,wrapper:p})=>this.insertClassToClassEdge(n,p,s,u,"property"))}insertEnhancerMetadataCache(n){this.enhancersMetadataCache.push(n)}insertOrphanedEnhancer(n){this.graph.insertOrphanedEnhancer({...n,ref:n.ref?.constructor?.name??"Object"})}insertAttachedEnhancer(n){const s=this.graph.getNodeById(n.id);s.metadata.global=!0,this.graph.insertAttachedEnhancer(s.id)}insertEntrypointDefinition(n,s){n={...n,id:`${n.classNodeId}_${n.methodName}`},this.graph.insertEntrypoint(n,s)}insertClassNode(n,s,i){this.graph.insertNode({id:s.id,label:s.name,parent:n.id,metadata:{type:i,internal:s.metatype===n.metatype,sourceModuleName:n.name,durable:s.isDependencyTreeDurable(),static:s.isDependencyTreeStatic(),scope:s.scope,transient:s.isTransient,exported:n.exports.has(s.token),token:s.token,subtype:s.subtype,initTime:s.initTime}})}insertModuleNode(n){const s=this.container.getDynamicMetadataByToken(n.token),i={id:n.id,label:n.name,metadata:{type:"module",global:n.isGlobal,dynamic:!!s,internal:n.name==="InternalCoreModule"}};this.graph.insertNode(i)}insertModuleToModuleEdges(n){for(const s of n.imports)this.graph.insertEdge({source:n.id,target:s.id,metadata:{type:"module-to-module",sourceModuleName:n.name,targetModuleName:s.name}})}insertEnhancerEdge(n){const s=this.container.getModuleByKey(n.moduleToken),i=s.controllers.get(n.classRef)??s.providers.get(n.classRef),c=this.graph.getNodeById(i.id),u=c.metadata.enhancers??[];if(n.enhancerInstanceWrapper)this.insertClassToClassEdge(i,n.enhancerInstanceWrapper,s,void 0,"decorator"),u.push({id:n.enhancerInstanceWrapper.id,methodKey:n.methodKey,subtype:n.subtype});else{const p=n.enhancerRef.constructor?.name??n.enhancerRef.name;u.push({name:p,methodKey:n.methodKey,subtype:n.subtype})}c.metadata.enhancers=u}insertClassToClassEdge(n,s,i,c,u){this.graph.insertEdge({source:n.id,target:s.id,metadata:{type:"class-to-class",sourceModuleName:i.name,sourceClassName:n.name,targetClassName:s.name,sourceClassToken:n.token,targetClassToken:s.token,targetModuleName:s.host?.name,keyOrIndex:c,injectionType:u}})}insertClassNodes(n){n.providers.forEach(s=>this.insertClassNode(n,s,"provider")),n.injectables.forEach(s=>this.insertClassNode(n,s,"injectable")),n.controllers.forEach(s=>this.insertClassNode(n,s,"controller"))}}return lu.GraphInspector=a,lu}var eR;function CW(){return eR||(eR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(Lp(),e),t.__exportStar(mb(),e),t.__exportStar(bN(),e),t.__exportStar(Eb(),e)})(Um)),Um}var $m={},pu={},zm={},ht={},tR;function yN(){if(tR)return ht;tR=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.PathError=ht.TokenData=void 0,ht.parse=u,ht.compile=p,ht.match=f,ht.pathToRegexp=h,ht.stringify=y;const e="/",t=O=>O,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function n(O){return O.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function s(O){return O.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class i{constructor(S,w){this.tokens=S,this.originalPath=w}}ht.TokenData=i;class c extends TypeError{constructor(S,w){let T=S;w&&(T+=`: ${w}`),T+="; visit https://git.new/pathToRegexpError for info",super(T),this.originalPath=w}}ht.PathError=c;function u(O,S={}){const{encodePath:w=t}=S,T=[...O],A=[];let P=0,C=0;function D(){let F="";if(r.test(T[P]))do F+=T[P++];while(a.test(T[P]));else if(T[P]==='"'){let z=P;for(;P++<T.length;){if(T[P]==='"'){P++,z=0;break}T[P]==="\\"&&P++,F+=T[P]}if(z)throw new c(`Unterminated quote at index ${z}`,O)}if(!F)throw new c(`Missing parameter name at index ${P}`,O);return F}for(;P<T.length;){const F=T[P],z=o[F];z?A.push({type:z,index:P++,value:F}):F==="\\"?A.push({type:"escape",index:P++,value:T[P++]}):F===":"?A.push({type:"param",index:P++,value:D()}):F==="*"?A.push({type:"wildcard",index:P++,value:D()}):A.push({type:"char",index:P++,value:F})}A.push({type:"end",index:P,value:""});function H(F){const z=[];for(;;){const Z=A[C++];if(Z.type===F)break;if(Z.type==="char"||Z.type==="escape"){let X=Z.value,k=A[C];for(;k.type==="char"||k.type==="escape";)X+=k.value,k=A[++C];z.push({type:"text",value:w(X)});continue}if(Z.type==="param"||Z.type==="wildcard"){z.push({type:Z.type,name:Z.value});continue}if(Z.type==="{"){z.push({type:"group",tokens:H("}")});continue}throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${F}`,O)}return z}return new i(H("end"),O)}function p(O,S={}){const{encode:w=encodeURIComponent,delimiter:T=e}=S,A=typeof O=="object"?O:u(O,S),P=l(A.tokens,T,w);return function(D={}){const[H,...F]=P(D);if(F.length)throw new TypeError(`Missing parameters: ${F.join(", ")}`);return H}}function l(O,S,w){const T=O.map(A=>d(A,S,w));return A=>{const P=[""];for(const C of T){const[D,...H]=C(A);P[0]+=D,P.push(...H)}return P}}function d(O,S,w){if(O.type==="text")return()=>[O.value];if(O.type==="group"){const A=l(O.tokens,S,w);return P=>{const[C,...D]=A(P);return D.length?[""]:[C]}}const T=w||t;return O.type==="wildcard"&&w!==!1?A=>{const P=A[O.name];if(P==null)return["",O.name];if(!Array.isArray(P)||P.length===0)throw new TypeError(`Expected "${O.name}" to be a non-empty array`);return[P.map((C,D)=>{if(typeof C!="string")throw new TypeError(`Expected "${O.name}/${D}" to be a string`);return T(C)}).join(S)]}:A=>{const P=A[O.name];if(P==null)return["",O.name];if(typeof P!="string")throw new TypeError(`Expected "${O.name}" to be a string`);return[T(P)]}}function f(O,S={}){const{decode:w=decodeURIComponent,delimiter:T=e}=S,{regexp:A,keys:P}=h(O,S),C=P.map(D=>w===!1?t:D.type==="param"?w:H=>H.split(T).map(w));return function(H){const F=A.exec(H);if(!F)return!1;const z=F[0],Z=Object.create(null);for(let X=1;X<F.length;X++){if(F[X]===void 0)continue;const k=P[X-1],re=C[X-1];Z[k.name]=re(F[X])}return{path:z,params:Z}}}function h(O,S={}){const{delimiter:w=e,end:T=!0,sensitive:A=!1,trailing:P=!0}=S,C=[],D=A?"":"i",H=[];for(const Z of m(O,[])){const X=typeof Z=="object"?Z:u(Z,S);for(const k of v(X.tokens,0,[]))H.push(g(k,w,C,X.originalPath))}let F=`^(?:${H.join("|")})`;return P&&(F+=`(?:${s(w)}$)?`),F+=T?"$":`(?=${s(w)}|$)`,{regexp:new RegExp(F,D),keys:C}}function m(O,S){if(Array.isArray(O))for(const w of O)m(w,S);else S.push(O);return S}function*v(O,S,w){if(S===O.length)return yield w;const T=O[S];if(T.type==="group")for(const A of v(T.tokens,0,w.slice()))yield*v(O,S+1,A);else w.push(T);yield*v(O,S+1,w)}function g(O,S,w,T){let A="",P="",C=!0;for(const D of O){if(D.type==="text"){A+=s(D.value),P+=D.value,C||(C=D.value.includes(S));continue}if(D.type==="param"||D.type==="wildcard"){if(!C&&!P)throw new c(`Missing text before "${D.name}" ${D.type}`,T);D.type==="param"?A+=`(${_(S,C?"":P)}+)`:A+="([\\s\\S]+)",w.push(D),P="",C=!1;continue}}return A}function _(O,S){return S.length<2?O.length<2?`[^${s(O+S)}]`:`(?:(?!${s(O)})[^${s(S)}])`:O.length<2?`(?:(?!${s(S)})[^${s(O)}])`:`(?:(?!${s(S)}|${s(O)})[\\s\\S])`}function b(O){let S="",w=0;function T(A){return E(A)&&x(O[w])?A:JSON.stringify(A)}for(;w<O.length;){const A=O[w++];if(A.type==="text"){S+=n(A.value);continue}if(A.type==="group"){S+=`{${b(A.tokens)}}`;continue}if(A.type==="param"){S+=`:${T(A.name)}`;continue}if(A.type==="wildcard"){S+=`*${T(A.name)}`;continue}throw new TypeError(`Unknown token type: ${A.type}`)}return S}function y(O){return b(O.tokens)}function E(O){const[S,...w]=O;return r.test(S)&&w.every(T=>a.test(T))}function x(O){return O&&O.type==="text"?!a.test(O.value[0]):!0}return ht}var fu={},rR;function EN(){if(rR)return fu;rR=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.LegacyRouteConverter=void 0;const e=ve(),t=(a,o)=>`Unsupported route path: "${o}". 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.`;class r{static tryConvert(o,n){const s=o.startsWith("/")?o:`/${o}`,i=o.endsWith("/")?s:`${s}/`,u=n?.logs??!0?this.printWarning.bind(this):()=>{};return i.endsWith("/(.*)/")?(i!=="/(.*)/"&&u(o),o.replace("(.*)","{*path}")):i.endsWith("/*/")?(i!=="/*/"&&u(o),o.replace("*","{*path}")):i.endsWith("/+/")?(u(o),o.replace("/+","/*path")):i.includes("/*/")?(u(o),o.replaceAll("/*/",(p,l)=>`/*path${l}/`)):o}static printError(o){this.logger.error(t`${o}`)}static printWarning(o){this.logger.warn(t`${o}`+" Attempting to auto-convert...")}}return fu.LegacyRouteConverter=r,r.logger=new e.Logger(r.name),fu}var Bm={},Hm={},nR;function jW(){return nR||(nR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isRequestMethodAll=void 0,e.isRouteExcluded=o;const t=ve(),r=ne(),a=n=>t.RequestMethod.ALL===n||n===-1;e.isRequestMethodAll=a;function o(n,s,i){return n.some(c=>(0,e.isRequestMethodAll)(c.requestMethod)||c.requestMethod===i?c.pathRegex.exec((0,r.addLeadingSlash)(s)):!1)}})(Hm)),Hm}var jd={},iR;function qW(){if(iR)return jd;iR=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.flattenRoutePaths=t;const e=ne();function t(r){const a=[];return r.forEach(o=>{if(o.module&&o.path&&a.push({module:o.module,path:o.path}),o.children){const n=o.children;n.forEach(s=>{!(0,e.isString)(s)&&(0,e.isString)(s.path)?s.path=(0,e.normalizePath)((0,e.normalizePath)(o.path)+(0,e.normalizePath)(s.path)):a.push({path:o.path,module:s})}),a.push(...t(n))}}),a}return jd}var aR;function kl(){return aR||(aR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(jW(),e),t.__exportStar(qW(),e)})(Bm)),Bm}var oR;function xN(){return oR||(oR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mapToClass=e.filterMiddleware=e.mapToExcludeRoute=void 0,e.isMiddlewareClass=l,e.assignToken=d,e.isMiddlewareRouteExcluded=f;const t=ve(),r=ne(),a=He(),o=yN(),n=pn(),s=EN(),i=kl(),c=h=>h.map(m=>{const v=(0,r.isString)(m)?m:m.path,g=s.LegacyRouteConverter.tryConvert(v);try{return(0,r.isString)(m)?{path:g,requestMethod:t.RequestMethod.ALL,pathRegex:(0,o.pathToRegexp)((0,r.addLeadingSlash)(g)).regexp}:{path:g,requestMethod:m.method,pathRegex:(0,o.pathToRegexp)((0,r.addLeadingSlash)(g)).regexp}}catch(_){throw _ instanceof TypeError&&s.LegacyRouteConverter.printError(v),_}});e.mapToExcludeRoute=c;const u=(h,m,v)=>{const g=(0,e.mapToExcludeRoute)(m);return(0,a.iterate)([]).concat(h).filter(r.isFunction).map(_=>(0,e.mapToClass)(_,g,v)).toArray()};e.filterMiddleware=u;const p=(h,m,v)=>l(h)?m.length<=0?h:d(class extends h{use(..._){const[b,y,E]=_;return f(b,m,v)?E():super.use(..._)}},h.name):d(class{constructor(){this.use=(...g)=>{const[_,b,y]=g;return f(_,m,v)?y():h(...g)}}});e.mapToClass=p;function l(h){const m=h.toString();if(m.substring(0,5)==="class")return!0;const v=m.split(" ");return v[0]==="function"&&/[A-Z]/.test(v[1]?.[0])&&(0,r.isFunction)(h.prototype?.use)}function d(h,m=(0,n.uid)(21)){return Object.defineProperty(h,"name",{value:m}),h}function f(h,m,v){if(m.length<=0)return!1;const g=v.getRequestMethod(h),_=v.getRequestUrl(h),b=_?_.indexOf("?"):-1,y=b>=0?_.slice(0,b):_;return(0,i.isRouteExcluded)(m,y,t.RequestMethod[g])}})(zm)),zm}var sR;function ON(){if(sR)return pu;sR=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.MiddlewareBuilder=void 0;const e=ne(),t=He(),r=xN();class a{constructor(n,s,i){this.routesMapper=n,this.httpAdapter=s,this.routeInfoPathExtractor=i,this.middlewareCollection=new Set}apply(...n){return new a.ConfigProxy(this,n.flat(),this.routeInfoPathExtractor)}build(){return[...this.middlewareCollection]}getHttpAdapter(){return this.httpAdapter}}return pu.MiddlewareBuilder=a,a.ConfigProxy=class{constructor(o,n,s){this.builder=o,this.middleware=n,this.routeInfoPathExtractor=s,this.excludedRoutes=[]}getExcludedRoutes(){return this.excludedRoutes}exclude(...o){return this.excludedRoutes=[...this.excludedRoutes,...this.getRoutesFlatList(o).reduce((n,s)=>{for(const i of this.routeInfoPathExtractor.extractPathFrom(s))n.push({...s,path:i});return n},[])],this}forRoutes(...o){const{middlewareCollection:n}=this.builder,s=this.getRoutesFlatList(o),i=this.removeOverlappedRoutes(s),c={middleware:(0,r.filterMiddleware)(this.middleware,this.excludedRoutes,this.builder.getHttpAdapter()),forRoutes:i};return n.add(c),this.builder}getRoutesFlatList(o){const{routesMapper:n}=this.builder;return(0,t.iterate)(o).map(s=>n.mapRouteToRouteInfo(s)).flatten().toArray()}removeOverlappedRoutes(o){const n=/(:[^/]*)/g,s="([^/]*)",i=o.filter(c=>c.path.includes(":")).map(c=>({method:c.method,path:c.path,regex:new RegExp("^("+c.path.replace(n,s)+")$","g")}));return o.filter(c=>{const u=l=>{if(c.method!==l.method)return!1;const d=(0,e.stripEndSlash)(c.path);return d!==l.path&&l.regex.test(d)};return i.find(u)===void 0})}},pu}var cR;function NW(){return cR||(cR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(ON(),e)})($m)),$m}var hu={},qd={},uR;function FW(){if(uR)return qd;uR=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.optionalRequire=e;function e(t,r){try{return r?r():fg(t)}catch{return{}}}return qd}var vu={},lR;function DW(){if(lR)return vu;lR=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.MiddlewareContainer=void 0;const e=Fp(),t=gb(),r=Dl();class a{constructor(n){this.container=n,this.middleware=new Map,this.configurationSets=new Map}getMiddlewareCollection(n){if(!this.middleware.has(n)){const s=this.container.getModuleByKey(n);this.middleware.set(n,s.middlewares)}return this.middleware.get(n)}getConfigurations(){return this.configurationSets}insertConfig(n,s){const i=this.getMiddlewareCollection(s),c=this.getTargetConfig(s),u=n||[],p=l=>{const d=l;i.set(d,new r.InstanceWrapper({scope:(0,e.getClassScope)(l),durable:(0,t.isDurable)(l),name:d?.name??d,metatype:l,token:d}))};u.forEach(l=>{[].concat(l.middleware).map(p),c.add(l)})}getTargetConfig(n){return this.configurationSets.has(n)||this.configurationSets.set(n,new Set),this.configurationSets.get(n)}}return vu.MiddlewareContainer=a,vu}var mu={},_u={},dR;function kW(){if(dR)return _u;dR=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.InvalidMiddlewareException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o){super((0,e.INVALID_MIDDLEWARE_MESSAGE)`${o}`)}}return _u.InvalidMiddlewareException=r,_u}var gu={},bu={},pR;function LW(){if(pR)return bu;pR=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.ExceptionsHandler=void 0;const e=rN(),t=ne(),r=nN(),a=eN();class o extends a.BaseExceptionFilter{constructor(){super(...arguments),this.filters=[]}next(s,i){this.invokeCustomFilters(s,i)||super.catch(s,i)}setCustomFilters(s){if(!Array.isArray(s))throw new r.InvalidExceptionFilterException;this.filters=s}invokeCustomFilters(s,i){if((0,t.isEmpty)(this.filters))return!1;const c=(0,e.selectExceptionFilterMetadata)(this.filters,s);return c&&c.func(s,i),!!c}}return bu.ExceptionsHandler=o,bu}var fR;function wN(){if(fR)return gu;fR=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.RouterExceptionFilters=void 0;const e=xe(),t=ne(),r=He(),a=tN(),o=LW(),n=it();class s extends a.BaseExceptionFilterContext{constructor(c,u,p){super(c),this.config=u,this.applicationRef=p}create(c,u,p,l=n.STATIC_CONTEXT,d){this.moduleContext=p;const f=new o.ExceptionsHandler(this.applicationRef),h=this.createContext(c,u,e.EXCEPTION_FILTERS_METADATA,l,d);return(0,t.isEmpty)(h)||f.setCustomFilters(h.reverse()),f}getGlobalMetadata(c=n.STATIC_CONTEXT,u){const p=this.config.getGlobalFilters();if(c===n.STATIC_CONTEXT&&!u)return p;const l=this.config.getGlobalRequestFilters(),d=(0,r.iterate)(l).map(f=>f.getInstanceByContextId(c,u)).filter(f=>!!f).map(f=>f.instance).toArray();return p.concat(d)}}return gu.RouterExceptionFilters=s,gu}var yu={},hR;function SN(){if(hR)return yu;hR=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.RouterProxy=void 0;const e=Sn();class t{createProxy(a,o){return async(n,s,i)=>{try{await a(n,s,i)}catch(c){const u=new e.ExecutionContextHost([n,s,i]);return o.next(c,u),s}}}createExceptionLayerProxy(a,o){return async(n,s,i,c)=>{try{await a(n,s,i,c)}catch(u){const p=new e.ExecutionContextHost([s,i,c]);return o.next(u,p),i}}}}return yu.RouterProxy=t,yu}var Eu={},vR;function UW(){if(vR)return Eu;vR=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.MiddlewareResolver=void 0;class e{constructor(r,a){this.middlewareContainer=r,this.injector=a}async resolveInstances(r,a){const o=this.middlewareContainer.getMiddlewareCollection(a),n=async s=>this.resolveMiddlewareInstance(s,o,r);await Promise.all([...o.values()].map(n))}async resolveMiddlewareInstance(r,a,o){await this.injector.loadMiddleware(r,a,o)}}return Eu.MiddlewareResolver=e,Eu}var xu={},Ou={},mR;function PN(){if(mR)return Ou;mR=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.RoutePathFactory=void 0;const e=ve(),t=ne(),r=kl();class a{constructor(n){this.applicationConfig=n}create(n,s){let i=[""];const c=this.getVersion(n);if(c&&n.versioningOptions?.type===e.VersioningType.URI){const u=this.getVersionPrefix(n.versioningOptions);Array.isArray(c)?i=(0,e.flatten)(i.map(p=>c.map(l=>l===e.VERSION_NEUTRAL?p:`${p}/${u}${l}`))):c!==e.VERSION_NEUTRAL&&(i=i.map(p=>`${p}/${u}${c}`))}return i=this.appendToAllIfDefined(i,n.modulePath),i=this.appendToAllIfDefined(i,n.ctrlPath),i=this.appendToAllIfDefined(i,n.methodPath),n.globalPrefix&&(i=i.map(u=>this.isExcludedFromGlobalPrefix(u,s,c,n.versioningOptions)?u:(0,t.stripEndSlash)(n.globalPrefix||"")+u)),i.map(u=>(0,t.addLeadingSlash)(u||"/")).map(u=>u!=="/"?(0,t.stripEndSlash)(u):u)}getVersion(n){return n.methodVersion||n.controllerVersion}getVersionPrefix(n){if(n.type===e.VersioningType.URI){if(n.prefix===!1)return"";if(n.prefix!==void 0)return n.prefix}return"v"}appendToAllIfDefined(n,s){if(!s)return n;const i=(c,u)=>(0,t.stripEndSlash)(c)+(0,t.addLeadingSlash)(u);if(Array.isArray(s)){const c=n.map(u=>s.map(p=>i(u,p)));return(0,e.flatten)(c)}return n.map(c=>i(c,s))}isExcludedFromGlobalPrefix(n,s,i,c){if((0,t.isUndefined)(s))return!1;const p=this.applicationConfig.getGlobalPrefixOptions().exclude;return i&&i!==e.VERSION_NEUTRAL&&c?.type===e.VersioningType.URI&&(n=this.truncateVersionPrefixFromPath(n,i,c)),Array.isArray(p)&&(0,r.isRouteExcluded)(p,n,s)}truncateVersionPrefixFromPath(n,s,i){if(typeof s!="string")return s.forEach(u=>{typeof u=="string"&&(n=this.truncateVersionPrefixFromPath(n,u,i))}),n;const c=`/${this.getVersionPrefix(i)}${s}`;return n.startsWith(c)?n.replace(c,""):n}}return Ou.RoutePathFactory=a,Ou}var _R;function $W(){if(_R)return xu;_R=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.RouteInfoPathExtractor=void 0;const e=ve(),t=ne(),r=kl(),a=PN();class o{constructor(s){this.applicationConfig=s,this.routePathFactory=new a.RoutePathFactory(s),this.prefixPath=(0,t.stripEndSlash)((0,t.addLeadingSlash)(this.applicationConfig.getGlobalPrefix())),this.excludedGlobalPrefixRoutes=this.applicationConfig.getGlobalPrefixOptions().exclude,this.versioningConfig=this.applicationConfig.getVersioning()}extractPathsFrom({path:s,method:i,version:c}){const u=this.extractVersionPathFrom(c);if(this.isAWildcard(s)){const p=u.length>0?u.map(l=>[this.prefixPath+l+"$",this.prefixPath+l+(0,t.addLeadingSlash)(s)]).flat():this.prefixPath?[this.prefixPath+"$",this.prefixPath+(0,t.addLeadingSlash)(s)]:[(0,t.addLeadingSlash)(s)];return Array.isArray(this.excludedGlobalPrefixRoutes)?[...p,...this.excludedGlobalPrefixRoutes.map(l=>Array.isArray(u)&&u.length>0?u.map(d=>d+(0,t.addLeadingSlash)(l.path)):(0,t.addLeadingSlash)(l.path)).flat()]:p}return this.extractNonWildcardPathsFrom({path:s,method:i,version:c})}extractPathFrom(s){return this.isAWildcard(s.path)&&!s.version?[(0,t.addLeadingSlash)(s.path)]:this.extractNonWildcardPathsFrom(s)}isAWildcard(s){return["*","/*","/*/","(.*)","/(.*)"].includes(s)?!0:/^\/\{.*\}.*|^\/\*.*$/.test(s)}extractNonWildcardPathsFrom({path:s,method:i,version:c}){const u=this.extractVersionPathFrom(c);return Array.isArray(this.excludedGlobalPrefixRoutes)&&(0,r.isRouteExcluded)(this.excludedGlobalPrefixRoutes,s,i)?u.length?u.map(p=>p+(0,t.addLeadingSlash)(s)):[(0,t.addLeadingSlash)(s)]:u.length?u.map(p=>this.prefixPath+p+(0,t.addLeadingSlash)(s)):[this.prefixPath+(0,t.addLeadingSlash)(s)]}extractVersionPathFrom(s){if(!s||this.versioningConfig?.type!==e.VersioningType.URI)return[];const i=this.routePathFactory.getVersionPrefix(this.versioningConfig);return Array.isArray(s)?s.map(c=>(0,t.addLeadingSlash)(i+c.toString())):[(0,t.addLeadingSlash)(i+s.toString())]}}return xu.RouteInfoPathExtractor=o,xu}var wu={},Su={},gR;function TN(){if(gR)return Su;gR=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.PathsExplorer=void 0;const e=xe(),t=ne();class r{constructor(o){this.metadataScanner=o}scanForPaths(o,n){const s=(0,t.isUndefined)(n)?Object.getPrototypeOf(o):n;return this.metadataScanner.getAllMethodNames(s).reduce((i,c)=>{const u=this.exploreMethodMetadata(o,s,c);return u&&i.push(u),i},[])}exploreMethodMetadata(o,n,s){const i=o[s],c=n[s],u=Reflect.getMetadata(e.PATH_METADATA,c);if((0,t.isUndefined)(u))return null;const p=Reflect.getMetadata(e.METHOD_METADATA,c),l=Reflect.getMetadata(e.VERSION_METADATA,c);return{path:(0,t.isString)(u)?[(0,t.addLeadingSlash)(u)]:u.map(f=>(0,t.addLeadingSlash)(f)),requestMethod:p,targetCallback:i,methodName:s,version:l}}}return Su.PathsExplorer=r,Su}var Vm={},bR;function AN(){return bR||(bR=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=e.targetModulesByContainer=e.ROUTES=void 0;const r=ae(),a=ve(),o=xe(),n=ne(),s=fi(),i=kl();e.ROUTES=Symbol("ROUTES"),e.targetModulesByContainer=new WeakMap;let c=t=class{constructor(p,l){this.modulesContainer=p,this.routes=l,this.routes=this.deepCloneRoutes(l),this.initialize()}static register(p){return{module:t,providers:[{provide:e.ROUTES,useValue:p}]}}deepCloneRoutes(p){return p.map(l=>typeof l=="function"?l:l.children?{...l,children:this.deepCloneRoutes(l.children)}:{...l})}initialize(){(0,i.flattenRoutePaths)(this.routes).forEach(l=>{const d=(0,n.normalizePath)(l.path);this.registerModulePathMetadata(l.module,d),this.updateTargetModulesCache(l.module)})}registerModulePathMetadata(p,l){Reflect.defineMetadata(o.MODULE_PATH+this.modulesContainer.applicationId,l,p)}updateTargetModulesCache(p){let l;e.targetModulesByContainer.has(this.modulesContainer)?l=e.targetModulesByContainer.get(this.modulesContainer):(l=new WeakSet,e.targetModulesByContainer.set(this.modulesContainer,l));const d=Array.from(this.modulesContainer.values()).find(f=>f?.metatype===p);d&&l.add(d)}};e.RouterModule=c,e.RouterModule=c=t=r.__decorate([(0,a.Module)({}),r.__param(1,(0,a.Inject)(e.ROUTES)),r.__metadata("design:paramtypes",[s.ModulesContainer,Array])],c)})(Vm)),Vm}var yR;function zW(){if(yR)return wu;yR=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.RoutesMapper=void 0;const e=xe(),t=vp(),r=ne(),a=On(),o=TN(),n=AN();class s{constructor(c,u){this.container=c,this.applicationConfig=u,this.pathsExplorer=new o.PathsExplorer(new a.MetadataScanner)}mapRouteToRouteInfo(c){if((0,r.isString)(c))return this.getRouteInfoFromPath(c);const u=this.getRoutePath(c);return this.isRouteInfo(u,c)?this.getRouteInfoFromObject(c):this.getRouteInfoFromController(c,u)}getRouteInfoFromPath(c){return[{path:(0,r.addLeadingSlash)(c),method:-1}]}getRouteInfoFromObject(c){const u={path:(0,r.addLeadingSlash)(c.path),method:c.method};return c.version&&(u.version=c.version),[u]}getRouteInfoFromController(c,u){const p=this.pathsExplorer.scanForPaths(Object.create(c),c.prototype),l=this.getVersionMetadata(c),d=this.applicationConfig.getVersioning(),f=this.getHostModuleOfController(c),h=this.getModulePath(f?.metatype),m=(_,b)=>_.concat(b),v=_=>_===t.VERSION_NEUTRAL?void 0:_,g=(_,b)=>_.path?.flatMap(y=>{let E=h??"";E+=this.normalizeGlobalPath(b)+(0,r.addLeadingSlash)(y);const x={path:E,method:_.requestMethod},O=_.version??l;if(O&&d){if(typeof O!="string"&&Array.isArray(O))return O.map(S=>({...x,version:v(S)}));x.version=v(O)}return x});return[].concat(u).map(_=>p.map(b=>g(b,_)).reduce(m,[])).reduce(m,[])}isRouteInfo(c,u){return(0,r.isUndefined)(c)}normalizeGlobalPath(c){const u=(0,r.addLeadingSlash)(c);return u==="/"?"":u}getRoutePath(c){return Reflect.getMetadata(e.PATH_METADATA,c)}getHostModuleOfController(c){if(!c)return;const u=this.container.getModules(),p=n.targetModulesByContainer.get(u);return p?Array.from(u.values()).filter(d=>p.has(d)).find(({controllers:d})=>d.has(c)):void 0}getModulePath(c){if(!c)return;const u=this.container.getModules();return Reflect.getMetadata(e.MODULE_PATH+u.applicationId,c)??Reflect.getMetadata(e.MODULE_PATH,c)}getVersionMetadata(c){const u=this.applicationConfig.getVersioning();if(u)return Reflect.getMetadata(e.VERSION_METADATA,c)??u.defaultVersion}}return wu.RoutesMapper=s,wu}var ER;function BW(){if(ER)return mu;ER=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.MiddlewareModule=void 0;const e=ve(),t=ui(),r=ne(),a=kW(),o=et(),n=ql(),s=Sn(),i=it(),c=wn(),u=wN(),p=SN(),l=kl(),d=ON(),f=UW(),h=$W(),m=zW();class v{constructor(){this.routerProxy=new p.RouterProxy,this.exceptionFiltersCache=new WeakMap,this.logger=new e.Logger(v.name)}async register(_,b,y,E,x,O,S){this.appOptions=S;const w=b.getHttpAdapterRef();this.routerExceptionFilter=new u.RouterExceptionFilters(b,y,w),this.routesMapper=new m.RoutesMapper(b,y),this.resolver=new f.MiddlewareResolver(_,E),this.routeInfoPathExtractor=new h.RouteInfoPathExtractor(y),this.injector=E,this.container=b,this.httpAdapter=x,this.graphInspector=O;const T=b.getModules();await this.resolveMiddleware(_,T)}async resolveMiddleware(_,b){const y=[...b.entries()],E=async([x,O])=>{await this.loadConfiguration(_,O,x),await this.resolver.resolveInstances(O,x)};await Promise.all(y.map(E))}async loadConfiguration(_,b,y){const{instance:E}=b;if(!E.configure)return;const x=new d.MiddlewareBuilder(this.routesMapper,this.httpAdapter,this.routeInfoPathExtractor);try{await E.configure(x)}catch(S){if(!this.appOptions.preview)throw S;const w=`Warning! "${b.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(w)}if(!(x instanceof d.MiddlewareBuilder))return;const O=x.build();_.insertConfig(O,y)}async registerMiddleware(_,b){const y=_.getConfigurations(),E=async(O,S)=>{for(const w of S)await this.registerMiddlewareConfig(_,w,O,b)},x=[...y.entries()].sort(([O],[S])=>{const w=this.container.getModuleByKey(O),T=this.container.getModuleByKey(S),A=w.distance===Number.MAX_VALUE,P=T.distance===Number.MAX_VALUE;return A&&P?0:A?-1:P?1:w.distance-T.distance});for(const[O,S]of x)await E(O,[...S])}async registerMiddlewareConfig(_,b,y,E){const{forRoutes:x}=b;for(const O of x)await this.registerRouteMiddleware(_,O,b,y,E)}async registerRouteMiddleware(_,b,y,E,x){const O=[].concat(y.middleware),S=this.container.getModuleByKey(E);for(const w of O){const T=_.getMiddlewareCollection(E),A=T.get(w);if((0,r.isUndefined)(A))throw new o.RuntimeException;if(A.isTransient)return;this.graphInspector.insertClassNode(S,A,"middleware");const P={type:"middleware",methodName:"use",className:A.name,classNodeId:A.id,metadata:{key:b.path,path:b.path,requestMethod:t.RequestMethod[b.method]??"ALL",version:b.version}};this.graphInspector.insertEntrypointDefinition(P,A.id),await this.bindHandler(A,x,b,S,T)}}async bindHandler(_,b,y,E,x){const{instance:O,metatype:S}=_;if((0,r.isUndefined)(O?.use))throw new a.InvalidMiddlewareException(S.name);if(_.isDependencyTreeStatic()){const A=await this.createProxy(O);return this.registerHandler(b,y,A)}const T=_.isDependencyTreeDurable();await this.registerHandler(b,y,async(A,P,C)=>{try{const D=this.getContextId(A,T),H=await this.injector.loadPerContext(O,E,x,D);return(await this.createProxy(H,D))(A,P,C)}catch(D){let H=this.exceptionFiltersCache.get(O.use);H||(H=this.routerExceptionFilter.create(O,O.use,void 0),this.exceptionFiltersCache.set(O.use,H));const F=new s.ExecutionContextHost([A,P,C]);H.next(D,F)}})}async createProxy(_,b=i.STATIC_CONTEXT){const y=this.routerExceptionFilter.create(_,_.use,void 0,b),E=_.use.bind(_);return this.routerProxy.createProxy(E,y)}async registerHandler(_,b,y){const{method:E}=b,x=this.routeInfoPathExtractor.extractPathsFrom(b),O=(0,l.isRequestMethodAll)(E),S=t.RequestMethod[E],w=await _.createMiddlewareFactory(E),T=O?y:(P,C,D)=>_.getRequestMethod?.(P)===S?y(P,C,D):D(),A=[];x.some(P=>P.match(/^\/?$/))?A.push("/"):A.push(...x),A.forEach(P=>w(P,T))}getContextId(_,b){const y=n.ContextIdFactory.getByRequest(_);if(!_[c.REQUEST_CONTEXT_ID]){Object.defineProperty(_,c.REQUEST_CONTEXT_ID,{value:y,enumerable:!1,writable:!1,configurable:!1});const E=b?y.payload:Object.assign(_,y.payload);this.container.registerRequestProvider(E,y)}return y}}return mu.MiddlewareModule=v,mu}var Pu={},Gm={},Nd={},Tu={},xR;function Ll(){if(xR)return Tu;xR=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.getTransientInstances=t,Tu.getNonTransientInstances=r;const e=He();function t(a){return(0,e.iterate)(a).filter(([o,n])=>n.isDependencyTreeStatic()).map(([o,n])=>n.getStaticTransientInstances()).flatten().filter(o=>!!o).map(({instance:o})=>o).toArray()}function r(a){return(0,e.iterate)(a).filter(([o,n])=>n.isDependencyTreeStatic()&&!n.isTransient).map(([o,{instance:n}])=>n).toArray()}return Tu}var OR;function HW(){if(OR)return Nd;OR=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.callModuleBootstrapHook=n;const e=ne(),t=He(),r=Ll();function a(s){return(0,e.isFunction)(s.onApplicationBootstrap)}function o(s){return(0,t.iterate)(s).filter(i=>!(0,e.isNil)(i)).filter(a).map(async i=>i.onApplicationBootstrap()).toArray()}async function n(s){const i=s.getNonAliasProviders(),[c,u]=i.shift(),p=[...s.controllers,...i,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&a(f)&&u.isDependencyTreeStatic()&&await f.onApplicationBootstrap()}return Nd}var Fd={},wR;function VW(){if(wR)return Fd;wR=1,Object.defineProperty(Fd,"__esModule",{value:!0}),Fd.callAppShutdownHook=n;const e=ne(),t=He(),r=Ll();function a(s){return(0,e.isFunction)(s.onApplicationShutdown)}function o(s,i){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(a).map(async c=>c.onApplicationShutdown(i)).toArray()}async function n(s,i){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(o(d,i));const f=(0,r.getTransientInstances)(l);await Promise.all(o(f,i));const h=p.instance;h&&a(h)&&p.isDependencyTreeStatic()&&await h.onApplicationShutdown(i)}return Fd}var Dd={},SR;function GW(){if(SR)return Dd;SR=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.callModuleDestroyHook=n;const e=ne(),t=He(),r=Ll();function a(s){return(0,e.isFunction)(s.onModuleDestroy)}function o(s){return(0,t.iterate)(s).filter(i=>!(0,e.isNil)(i)).filter(a).map(async i=>i.onModuleDestroy()).toArray()}async function n(s){const i=s.getNonAliasProviders(),[c,u]=i.shift(),p=[...s.controllers,...i,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&a(f)&&u.isDependencyTreeStatic()&&await f.onModuleDestroy()}return Dd}var kd={},PR;function WW(){if(PR)return kd;PR=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.callModuleInitHook=n;const e=ne(),t=He(),r=Ll();function a(s){return(0,e.isFunction)(s.onModuleInit)}function o(s){return(0,t.iterate)(s).filter(i=>!(0,e.isNil)(i)).filter(a).map(async i=>i.onModuleInit()).toArray()}async function n(s){const i=s.getNonAliasProviders(),[c,u]=i.shift(),p=[...s.controllers,...i,...s.injectables,...s.middlewares],l=(0,r.getNonTransientInstances)(p);await Promise.all(o(l));const d=(0,r.getTransientInstances)(p);await Promise.all(o(d));const f=u.instance;f&&a(f)&&u.isDependencyTreeStatic()&&await f.onModuleInit()}return kd}var Ld={},TR;function ZW(){if(TR)return Ld;TR=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.callBeforeAppShutdownHook=n;const e=ne(),t=He(),r=Ll();function a(s){return(0,e.isFunction)(s.beforeApplicationShutdown)}function o(s,i){return(0,t.iterate)(s).filter(c=>!(0,e.isNil)(c)).filter(a).map(async c=>c.beforeApplicationShutdown(i)).toArray()}async function n(s,i){const c=s.getNonAliasProviders(),[u,p]=c.shift(),l=[...s.controllers,...c,...s.injectables,...s.middlewares],d=(0,r.getNonTransientInstances)(l);await Promise.all(o(d,i));const f=(0,r.getTransientInstances)(l);await Promise.all(o(f,i));const h=p.instance;h&&a(h)&&p.isDependencyTreeStatic()&&await h.beforeApplicationShutdown(i)}return Ld}var AR;function KW(){return AR||(AR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(HW(),e),t.__exportStar(VW(),e),t.__exportStar(GW(),e),t.__exportStar(WW(),e),t.__exportStar(ZW(),e)})(Gm)),Gm}var RR;function Ob(){if(RR)return Pu;RR=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.NestApplicationContext=void 0;const e=ve(),t=ne(),r=He(),a=pi(),o=Nl(),n=ql(),s=KW(),i=pN(),c=hi(),u=vN();class p extends i.AbstractInstanceResolver{get instanceLinksHost(){return this._instanceLinksHost||(this._instanceLinksHost=new u.InstanceLinksHost(this.container)),this._instanceLinksHost}constructor(d,f={},h=null,m=new Array){super(),this.container=d,this.appOptions=f,this.contextModule=h,this.scope=m,this.isInitialized=!1,this.logger=new e.Logger(p.name,{timestamp:!0}),this.shouldFlushLogsOnOverride=!1,this.activeShutdownSignals=new Array,this.injector=new c.Injector,this.moduleCompiler=d.getModuleCompiler(),this.appOptions.preview&&this.printInPreviewModeWarning()}selectContextModule(){const d=this.container.getModules().values();this.contextModule=d.next().value}select(d,f){const h=this.container.getModules(),m=this.contextModule.metatype,v=this.scope.concat(m),g=this.container.getModuleTokenFactory(),{type:_,dynamicMetadata:b}=this.moduleCompiler.extractMetadata(d),y=b?g.createForDynamic(_,b,d):g.createForStatic(_,d),E=h.get(y);if(!E)throw new o.UnknownModuleException(_.name);const x=typeof f?.abortOnError<"u"?{...this.appOptions,...f}:this.appOptions;return new p(this.container,x,E,v)}get(d,f={strict:!1}){return f&&f.strict?this.find(d,{moduleId:this.contextModule?.id,each:f.each}):this.find(d,f)}resolve(d,f=(0,n.createContextId)(),h={strict:!1}){return this.resolvePerContext(d,this.contextModule,f,h)}registerRequestByContextId(d,f){this.container.registerRequestProvider(d,f)}async init(){return this.isInitialized?this:(this.initializationPromise=new Promise(async(d,f)=>{try{await this.callInitHook(),await this.callBootstrapHook(),d()}catch(h){f(h)}}),await this.initializationPromise,this.isInitialized=!0,this)}async close(d){await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(d),await this.dispose(),await this.callShutdownHook(d),this.unsubscribeFromProcessSignals()}useLogger(d){e.Logger.overrideLogger(d),this.shouldFlushLogsOnOverride&&this.flushLogs()}flushLogs(){e.Logger.flush()}flushLogsOnOverride(){this.shouldFlushLogsOnOverride=!0}enableShutdownHooks(d=[]){return(0,t.isEmpty)(d)?d=Object.keys(e.ShutdownSignal).map(f=>e.ShutdownSignal[f]):d=Array.from(new Set(d)),d=(0,r.iterate)(d).map(f=>f.toString().toUpperCase().trim()).filter(f=>!this.activeShutdownSignals.includes(f)).toArray(),this.listenToShutdownSignals(d),this}async dispose(){return Promise.resolve()}listenToShutdownSignals(d){let f=!1;const h=async m=>{try{if(f)return;f=!0,await this.initializationPromise,await this.callDestroyHook(),await this.callBeforeShutdownHook(m),await this.dispose(),await this.callShutdownHook(m),d.forEach(v=>process.removeListener(v,h)),process.kill(process.pid,m)}catch(v){e.Logger.error(a.MESSAGES.ERROR_DURING_SHUTDOWN,v?.stack,p.name),process.exit(1)}};this.shutdownCleanupRef=h,d.forEach(m=>{this.activeShutdownSignals.push(m),process.on(m,h)})}unsubscribeFromProcessSignals(){this.shutdownCleanupRef&&this.activeShutdownSignals.forEach(d=>{process.removeListener(d,this.shutdownCleanupRef)})}async callInitHook(){const d=this.getModulesToTriggerHooksOn();for(const f of d)await(0,s.callModuleInitHook)(f)}async callDestroyHook(){const d=[...this.getModulesToTriggerHooksOn()].reverse();for(const f of d)await(0,s.callModuleDestroyHook)(f)}async callBootstrapHook(){const d=this.getModulesToTriggerHooksOn();for(const f of d)await(0,s.callModuleBootstrapHook)(f)}async callShutdownHook(d){const f=[...this.getModulesToTriggerHooksOn()].reverse();for(const h of f)await(0,s.callAppShutdownHook)(h,d)}async callBeforeShutdownHook(d){const f=[...this.getModulesToTriggerHooksOn()].reverse();for(const h of f)await(0,s.callBeforeAppShutdownHook)(h,d)}assertNotInPreviewMode(d){if(this.appOptions.preview){const f=`Calling the "${d}" in the preview mode is not supported.`;throw this.logger.error(f),new Error(f)}}getModulesToTriggerHooksOn(){if(this._moduleRefsForHooksByDistance)return this._moduleRefsForHooksByDistance;const d=this.container.getModules(),f=(m,v)=>v.distance-m.distance,h=Array.from(d.values()).sort(f);return this._moduleRefsForHooksByDistance=this.appOptions?.preview?h.filter(m=>m.initOnPreview):h,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("------------------------------------------------")}}return Pu.NestApplicationContext=p,Pu}var Au={},st={},MR;function wb(){if(MR)return st;MR=1,Object.defineProperty(st,"__esModule",{value:!0}),st.INVALID_EXECUTION_CONTEXT=st.VERSIONED_CONTROLLER_MAPPING_MESSAGE=st.CONTROLLER_MAPPING_MESSAGE=st.VERSIONED_ROUTE_MAPPED_MESSAGE=st.ROUTE_MAPPED_MESSAGE=st.MODULE_INIT_MESSAGE=void 0;const e=ui(),t=eC(),r=(c,u)=>`${u} dependencies initialized`;st.MODULE_INIT_MESSAGE=r;const a=(c,u)=>`Mapped {${c}, ${e.RequestMethod[u]}} route`;st.ROUTE_MAPPED_MESSAGE=a;const o=(c,u,p)=>{const d=(Array.isArray(p)?p:[p]).map(f=>f===t.VERSION_NEUTRAL?"Neutral":f).join(",");return`Mapped {${c}, ${e.RequestMethod[u]}} (version: ${d}) route`};st.VERSIONED_ROUTE_MAPPED_MESSAGE=o;const n=(c,u)=>`${c} {${u}}:`;st.CONTROLLER_MAPPING_MESSAGE=n;const s=(c,u,p)=>{const d=(Array.isArray(p)?p:[p]).map(f=>f===t.VERSION_NEUTRAL?"Neutral":f).join(",");return`${c} {${u}} (version: ${d}):`};st.VERSIONED_CONTROLLER_MAPPING_MESSAGE=s;const i=(c,u)=>`Calling ${c} is not allowed in this context. Your current execution context is "${u}".`;return st.INVALID_EXECUTION_CONTEXT=i,st}var Ru={},Mu={},IR;function YW(){if(IR)return Mu;IR=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.UnknownRequestMappingException=void 0;const e=et(),t=bt();class r extends e.RuntimeException{constructor(o){super((0,t.UNKNOWN_REQUEST_MAPPING)(o))}}return Mu.UnknownRequestMappingException=r,Mu}var Wm={},CR;function RN(){return CR||(CR=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterMethodFactory=e.REQUEST_METHOD_MAP=void 0;const t=ui();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"};class r{get(o,n){const s=e.REQUEST_METHOD_MAP[n],i=o[s];return i||o.use}}e.RouterMethodFactory=r})(Wm)),Wm}var Iu={},jR;function XW(){if(jR)return Iu;jR=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.RouteParamsFactory=void 0;const e=hp();class t{exchangeKeyForValue(a,o,{req:n,res:s,next:i}){switch(a){case e.RouteParamtypes.NEXT:return i;case e.RouteParamtypes.REQUEST:return n;case e.RouteParamtypes.RESPONSE:return s;case e.RouteParamtypes.BODY:return o&&n.body?n.body[o]:n.body;case e.RouteParamtypes.RAW_BODY:return n.rawBody;case e.RouteParamtypes.PARAM:return o?n.params[o]:n.params;case e.RouteParamtypes.HOST:const c=n.hosts||{};return o?c[o]:c;case e.RouteParamtypes.QUERY:return o?n.query[o]:n.query;case e.RouteParamtypes.HEADERS:return o?n.headers[o.toLowerCase()]:n.headers;case e.RouteParamtypes.SESSION:return n.session;case e.RouteParamtypes.FILE:return n[o||"file"];case e.RouteParamtypes.FILES:return n.files;case e.RouteParamtypes.IP:return n.ip;default:return null}}}return Iu.RouteParamsFactory=t,Iu}var Cu={},ju={},qu={},qR;function QW(){if(qR)return qu;qR=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.SseStream=void 0;const e=ne(),t=dp;function r(o){return(0,e.isObject)(o)?r(JSON.stringify(o)):o.split(/\r\n|\r|\n/).map(n=>`data: ${n}
|
|
116
|
+
`).join("")}class a extends t.Transform{constructor(n){super({objectMode:!0}),this.lastEventId=null,n&&n.socket&&(n.socket.setKeepAlive(!0),n.socket.setNoDelay(!0),n.socket.setTimeout(0))}pipe(n,s){return n.writeHead&&(n.writeHead(200,{...s?.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"}),n.flushHeaders?.()),n.write(`
|
|
117
|
+
`),super.pipe(n,s)}_transform(n,s,i){let c=n.type?`event: ${n.type}
|
|
118
|
+
`:"";c+=n.id?`id: ${n.id}
|
|
119
|
+
`:"",c+=n.retry?`retry: ${n.retry}
|
|
120
|
+
`:"",c+=n.data?r(n.data):"",c+=`
|
|
121
|
+
`,this.push(c),i()}writeMessage(n,s){n.id||(this.lastEventId++,n.id=this.lastEventId.toString()),this.write(n,"utf-8")?process.nextTick(s):this.once("drain",s)}}return qu.SseStream=a,qu}var NR;function JW(){if(NR)return ju;NR=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.RouterResponseController=void 0;const e=ve(),t=ne(),r=gn(),a=Bg(),o=QW();class n{constructor(i){this.applicationRef=i,this.logger=new e.Logger(n.name)}async apply(i,c,u){return this.applicationRef.reply(c,i,u)}async redirect(i,c,u){const p=await this.transformToResult(i),l=p&&p.statusCode?p.statusCode:u.statusCode?u.statusCode:e.HttpStatus.FOUND,d=p&&p.url?p.url:u.url;this.applicationRef.redirect(c,l,d)}async render(i,c,u){const p=await this.transformToResult(i);return this.applicationRef.render(c,u,p)}async transformToResult(i){return(0,r.isObservable)(i)?(0,r.lastValueFrom)(i):i}getStatusByMethod(i){switch(i){case e.RequestMethod.POST:return e.HttpStatus.CREATED;default:return e.HttpStatus.OK}}setHeaders(i,c){c.forEach(({name:u,value:p})=>this.applicationRef.setHeader(i,u,typeof p=="function"?p():p))}setStatus(i,c){this.applicationRef.status(i,c)}sse(i,c,u,p){if(c.writableEnded)return;this.assertObservable(i);const l=new o.SseStream(u);l.pipe(c,p);const d=i.pipe((0,a.map)(f=>(0,t.isObject)(f)?f:{data:f}),(0,a.concatMap)(f=>new Promise(h=>l.writeMessage(f,()=>h()))),(0,a.catchError)(f=>{const h=f instanceof Error?f.message:f;return l.writeMessage({type:"error",data:h},m=>{m&&this.logger.error(m)}),r.EMPTY})).subscribe({complete:()=>{c.end()}});u.on("close",()=>{d.unsubscribe(),l.writableEnded||l.end()})}assertObservable(i){if(!(0,r.isObservable)(i))throw new ReferenceError("You must return an Observable stream to use Server-Sent Events (SSE).")}}return ju.RouterResponseController=n,ju}var FR;function e3(){if(FR)return Cu;FR=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.RouterExecutionContext=void 0;const e=ve(),t=xe(),r=hp(),a=ne(),o=hb(),n=cN(),s=uN(),i=it(),c=JW();class u{constructor(l,d,f,h,m,v,g,_){this.paramsFactory=l,this.pipesContextCreator=d,this.pipesConsumer=f,this.guardsContextCreator=h,this.guardsConsumer=m,this.interceptorsContextCreator=v,this.interceptorsConsumer=g,this.applicationRef=_,this.handlerMetadataStorage=new s.HandlerMetadataStorage,this.contextUtils=new n.ContextUtils,this.responseController=new c.RouterResponseController(_)}create(l,d,f,h,m,v=i.STATIC_CONTEXT,g){const _="http",{argsLength:b,fnHandleResponse:y,paramtypes:E,getParamsMetadata:x,httpStatusCode:O,responseHeaders:S,hasCustomHeaders:w}=this.getMetadata(l,d,f,h,m,_),T=this.contextUtils.mergeParamsMetatypes(x(h,v,g),E),A=this.pipesContextCreator.create(l,d,h,v,g),P=this.guardsContextCreator.create(l,d,h,v,g),C=this.interceptorsContextCreator.create(l,d,h,v,g),D=this.createGuardsFn(P,l,d,_),H=this.createPipesFn(A,T),F=(z,Z,X,k)=>async()=>(H&&await H(z,Z,X,k),d.apply(l,z));return async(z,Z,X)=>{const k=this.contextUtils.createNullArray(b);D&&await D([z,Z,X]),this.responseController.setStatus(Z,O),w&&this.responseController.setHeaders(Z,S);const re=await this.interceptorsConsumer.intercept(C,[z,Z,X],l,d,F(k,z,Z,X),_);await y(re,Z,z)}}getMetadata(l,d,f,h,m,v){const g=this.handlerMetadataStorage.get(l,f);if(g)return g;const _=this.contextUtils.reflectCallbackMetadata(l,f,t.ROUTE_ARGS_METADATA)||{},b=Object.keys(_),y=this.contextUtils.getArgumentsLength(b,_),E=this.contextUtils.reflectCallbackParamtypes(l,f),x=this.contextUtils.getContextFactory(v,l,d),O=(z,Z=i.STATIC_CONTEXT,X)=>this.exchangeKeysForValues(b,_,z,Z,X,x),S=O(h),w=this.isResponseHandled(l,f,S),T=this.reflectRedirect(d),A=this.createHandleResponseFn(d,w,T),P=this.reflectHttpStatusCode(d),C=P||this.responseController.getStatusByMethod(m),D=this.reflectResponseHeaders(d),H=!(0,a.isEmpty)(D),F={argsLength:y,fnHandleResponse:A,paramtypes:E,getParamsMetadata:O,httpStatusCode:C,hasCustomHeaders:H,responseHeaders:D};return this.handlerMetadataStorage.set(l,f,F),F}reflectRedirect(l){return Reflect.getMetadata(t.REDIRECT_METADATA,l)}reflectHttpStatusCode(l){return Reflect.getMetadata(t.HTTP_CODE_METADATA,l)}reflectRenderTemplate(l){return Reflect.getMetadata(t.RENDER_METADATA,l)}reflectResponseHeaders(l){return Reflect.getMetadata(t.HEADERS_METADATA,l)||[]}reflectSse(l){return Reflect.getMetadata(t.SSE_METADATA,l)}exchangeKeysForValues(l,d,f,h=i.STATIC_CONTEXT,m,v){return this.pipesContextCreator.setModuleContext(f),l.map(g=>{const{index:_,data:b,pipes:y}=d[g],E=this.pipesContextCreator.createConcreteContext(y,h,m),x=this.contextUtils.mapParamType(g);if(g.includes(t.CUSTOM_ROUTE_ARGS_METADATA)){const{factory:w}=d[g],T=this.contextUtils.getCustomFactory(w,b,v);return{index:_,extractValue:T,type:x,data:b,pipes:E}}const O=Number(x);return{index:_,extractValue:(w,T,A)=>this.paramsFactory.exchangeKeyForValue(O,b,{req:w,res:T,next:A}),type:O,data:b,pipes:E}})}async getParamValue(l,{metatype:d,type:f,data:h},m){return(0,a.isEmpty)(m)?l:this.pipesConsumer.apply(l,{metatype:d,type:f,data:h},m)}isPipeable(l){return l===r.RouteParamtypes.BODY||l===r.RouteParamtypes.RAW_BODY||l===r.RouteParamtypes.QUERY||l===r.RouteParamtypes.PARAM||l===r.RouteParamtypes.FILE||l===r.RouteParamtypes.FILES||(0,a.isString)(l)}createGuardsFn(l,d,f,h){const m=async v=>{if(!await this.guardsConsumer.tryActivate(l,v,d,f,h))throw new e.ForbiddenException(o.FORBIDDEN_MESSAGE)};return l.length?m:null}createPipesFn(l,d){const f=async(h,m,v,g)=>{const _=async b=>{const{index:y,extractValue:E,type:x,data:O,metatype:S,pipes:w}=b,T=E(m,v,g);h[y]=this.isPipeable(x)?await this.getParamValue(T,{metatype:S,type:x,data:O},l.concat(w)):T};await Promise.all(d.map(_))};return d.length?f:null}createHandleResponseFn(l,d,f,h){const m=this.reflectRenderTemplate(l);return m?async(g,_)=>await this.responseController.render(g,_,m):f&&(0,a.isString)(f.url)?async(g,_)=>{await this.responseController.redirect(g,_,f)}:this.reflectSse(l)?(g,_,b)=>{this.responseController.sse(g,_.raw||_,b.raw||b,{additionalHeaders:_.getHeaders?.()})}:async(g,_)=>(g=await this.responseController.transformToResult(g),!d&&await this.responseController.apply(g,_,h),_)}isResponseHandled(l,d,f){const h=f.some(({type:v})=>v===r.RouteParamtypes.RESPONSE||v===r.RouteParamtypes.NEXT),m=this.contextUtils.reflectPassthrough(l,d);return h&&!m}}return Cu.RouterExecutionContext=u,Cu}var DR;function MN(){if(DR)return Ru;DR=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.RouterExplorer=void 0;const e=xe(),t=gl(),r=lg(),a=wt(),o=ne(),n=yN(),s=YW(),i=hb(),c=ql(),u=Sn(),p=wb(),l=RN(),d=it(),f=aN(),h=sN(),m=TN(),v=wn(),g=XW(),_=e3();class b{constructor(E,x,O,S,w,T,A,P){this.container=x,this.injector=O,this.routerProxy=S,this.exceptionsFilter=w,this.routePathFactory=A,this.graphInspector=P,this.routerMethodFactory=new l.RouterMethodFactory,this.logger=new a.Logger(b.name,{timestamp:!0}),this.exceptionFiltersCache=new WeakMap,this.pathsExplorer=new m.PathsExplorer(E);const C=new g.RouteParamsFactory,D=new h.PipesContextCreator(x,T),H=new h.PipesConsumer,F=new i.GuardsContextCreator(x,T),z=new i.GuardsConsumer,Z=new f.InterceptorsContextCreator(x,T),X=new f.InterceptorsConsumer;this.executionContextCreator=new _.RouterExecutionContext(C,D,H,F,z,Z,X,x.getHttpAdapterRef())}explore(E,x,O,S,w){const{instance:T}=E,A=this.pathsExplorer.scanForPaths(T);this.applyPathsToRouterProxy(O,A,E,x,w,S)}extractRouterPath(E){const x=Reflect.getMetadata(e.PATH_METADATA,E);if((0,o.isUndefined)(x))throw new s.UnknownRequestMappingException(E);return Array.isArray(x)?x.map(O=>(0,o.addLeadingSlash)(O)):[(0,o.addLeadingSlash)(x)]}applyPathsToRouterProxy(E,x,O,S,w,T){(x||[]).forEach(A=>{const{version:P}=A;w.methodVersion=P,this.applyCallbackToRouter(E,A,O,S,w,T)})}applyCallbackToRouter(E,x,O,S,w,T){const{path:A,requestMethod:P,targetCallback:C,methodName:D}=x,{instance:H}=O,F=this.routerMethodFactory.get(E,P).bind(E),Z=!O.isDependencyTreeStatic()?this.createRequestScopedHandler(O,P,this.container.getModuleByKey(S),S,D):this.createCallbackProxy(H,C,D,S,P),X=(w.methodVersion||w.controllerVersion)&&w.versioningOptions;let k=this.applyHostFilter(T,Z);A.forEach(re=>{X&&w.versioningOptions.type!==t.VersioningType.URI&&(k=this.applyVersionFilter(E,w,k)),w.methodPath=re,this.routePathFactory.create(w,P).forEach(L=>{const $={type:"http-endpoint",methodName:D,className:O.name,classNodeId:O.id,metadata:{key:L,path:L,requestMethod:t.RequestMethod[P],methodVersion:w.methodVersion,controllerVersion:w.controllerVersion}};this.copyMetadataToCallback(C,k);const M=E.normalizePath?E.normalizePath(L):L,U=this.container.getHttpAdapterRef().getOnRouteTriggered?.();U?F(M,(...K)=>(U(P,L),k(...K))):F(M,k),this.graphInspector.insertEntrypointDefinition($,O.id)}),this.routePathFactory.create({...w,versioningOptions:void 0},P).forEach(L=>{if(X){const $=this.routePathFactory.getVersion(w);this.logger.log((0,p.VERSIONED_ROUTE_MAPPED_MESSAGE)(L,P,$))}else this.logger.log((0,p.ROUTE_MAPPED_MESSAGE)(L,P))})})}applyHostFilter(E,x){if(!E)return x;const O=this.container.getHttpAdapterRef(),w=(Array.isArray(E)?E:[E]).map(A=>{if(typeof A=="string")try{return(0,n.pathToRegexp)(A)}catch(P){throw P instanceof TypeError&&this.logger.error(`Unsupported host "${A}" 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.`),P}return{regexp:A,keys:[]}}),T=Array.isArray(E)?`HTTP adapter does not support filtering on hosts: ["${E.join('", "')}"]`:`HTTP adapter does not support filtering on host: "${E}"`;return(A,P,C)=>{A.hosts={};const D=O.getRequestHostname(A)||"";for(const H of w){const F=D.match(H.regexp);if(F){if(H.keys.length>0)H.keys.forEach((z,Z)=>A.hosts[z.name]=F[Z+1]);else if(H.regexp&&F.groups)for(const z in F.groups)A.hosts[z]=F.groups[z];return x(A,P,C)}}if(!C)throw new r.InternalServerErrorException(T);return C()}}applyVersionFilter(E,x,O){const S=this.routePathFactory.getVersion(x);return E.applyVersionFilter(O,S,x.versioningOptions)}createCallbackProxy(E,x,O,S,w,T=d.STATIC_CONTEXT,A){const P=this.executionContextCreator.create(E,x,O,S,w,T,A),C=this.exceptionsFilter.create(E,x,S,T,A);return this.routerProxy.createProxy(P,C)}createRequestScopedHandler(E,x,O,S,w){const{instance:T}=E,A=O.controllers,P=E.isDependencyTreeDurable();return async(C,D,H)=>{try{const F=this.getContextId(C,P),z=await this.injector.loadPerContext(T,O,A,F);await this.createCallbackProxy(z,z[w],w,S,x,F,E.id)(C,D,H)}catch(F){let z=this.exceptionFiltersCache.get(T[w]);z||(z=this.exceptionsFilter.create(T,T[w],S),this.exceptionFiltersCache.set(T[w],z));const Z=new u.ExecutionContextHost([C,D,H]);z.next(F,Z)}}}getContextId(E,x){const O=c.ContextIdFactory.getByRequest(E);if(!E[v.REQUEST_CONTEXT_ID]){Object.defineProperty(E,v.REQUEST_CONTEXT_ID,{value:O,enumerable:!1,writable:!1,configurable:!1});const S=x?O.payload:Object.assign(E,O.payload);this.container.registerRequestProvider(S,O)}return O}copyMetadataToCallback(E,x){for(const O of Reflect.getMetadataKeys(E))Reflect.defineMetadata(O,Reflect.getMetadata(O,E),x)}}return Ru.RouterExplorer=b,Ru}var kR;function IN(){if(kR)return Au;kR=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.RoutesResolver=void 0;const e=ve(),t=xe(),r=wt(),a=wb(),o=On(),n=PN(),s=wN(),i=MN(),c=SN();class u{constructor(l,d,f,h){this.container=l,this.applicationConfig=d,this.injector=f,this.logger=new r.Logger(u.name,{timestamp:!0}),this.routerProxy=new c.RouterProxy;const m=l.getHttpAdapterRef();this.routerExceptionsFilter=new s.RouterExceptionFilters(l,d,m),this.routePathFactory=new n.RoutePathFactory(this.applicationConfig);const v=new o.MetadataScanner;this.routerExplorer=new i.RouterExplorer(v,this.container,this.injector,this.routerProxy,this.routerExceptionsFilter,this.applicationConfig,this.routePathFactory,h)}resolve(l,d){this.container.getModules().forEach(({controllers:h,metatype:m},v)=>{const g=this.getModulePathMetadata(m);this.registerRouters(h,v,d,g,l)})}registerRouters(l,d,f,h,m){l.forEach(v=>{const{metatype:g}=v,_=this.getHostMetadata(g),b=this.routerExplorer.extractRouterPath(g),y=this.getVersionMetadata(g),E=g.name;b.forEach(x=>{const O=this.routePathFactory.create({ctrlPath:x,modulePath:h,globalPrefix:f});y?O.forEach(T=>{const A=(0,a.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(E,T,y);this.logger.log(A)}):O.forEach(T=>{const A=(0,a.CONTROLLER_MAPPING_MESSAGE)(E,T);this.logger.log(A)});const S=this.applicationConfig.getVersioning(),w={ctrlPath:x,modulePath:h,globalPrefix:f,controllerVersion:y,versioningOptions:S};this.routerExplorer.explore(v,d,m,_,w)})})}registerNotFoundHandler(){const l=this.container.getHttpAdapterRef(),d=(m,v)=>{const g=l.getRequestMethod(m),_=l.getRequestUrl(m);throw new e.NotFoundException(`Cannot ${g} ${_}`)},f=this.routerExceptionsFilter.create({},d,void 0),h=this.routerProxy.createProxy(d,f);l.setNotFoundHandler&&l.setNotFoundHandler(h,this.applicationConfig.getGlobalPrefix())}registerExceptionHandler(){const l=(m,v,g,_)=>{throw this.mapExternalException(m)},d=this.routerExceptionsFilter.create({},l,void 0),f=this.routerProxy.createExceptionLayerProxy(l,d),h=this.container.getHttpAdapterRef();h.setErrorHandler&&h.setErrorHandler(f,this.applicationConfig.getGlobalPrefix())}mapExternalException(l){switch(!0){case(l instanceof SyntaxError||l instanceof URIError):return new e.BadRequestException(l.message);case this.isHttpFastifyError(l):return new e.HttpException(l.message,l.statusCode);default:return l}}isHttpFastifyError(l){return l.statusCode!==void 0&&l instanceof Error&&l.name==="FastifyError"}getModulePathMetadata(l){const d=this.container.getModules();return Reflect.getMetadata(t.MODULE_PATH+d.applicationId,l)??Reflect.getMetadata(t.MODULE_PATH,l)}getHostMetadata(l){return Reflect.getMetadata(t.HOST_METADATA,l)}getVersionMetadata(l){const d=this.applicationConfig.getVersioning();if(d)return Reflect.getMetadata(t.VERSION_METADATA,l)??d.defaultVersion}}return Au.RoutesResolver=u,Au}const t3={},r3=Object.freeze(Object.defineProperty({__proto__:null,default:t3},Symbol.toStringTag,{value:"Module"})),n3=ci(r3),i3={},a3=Object.freeze(Object.defineProperty({__proto__:null,default:i3},Symbol.toStringTag,{value:"Module"})),o3=ci(a3),s3={},c3=Object.freeze(Object.defineProperty({__proto__:null,default:s3},Symbol.toStringTag,{value:"Module"})),CN=ci(c3);var LR;function Sb(){if(LR)return hu;LR=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.NestApplication=void 0;const e=ve(),t=wt(),r=bl(),a=ne(),o=He(),n=lp,s=pr(),i=pi(),c=FW(),u=hi(),p=DW(),l=BW(),d=xN(),f=Ob(),h=IN(),{SocketModule:m}=(0,c.optionalRequire)("@nestjs/websockets/socket-module",()=>n3),{MicroservicesModule:v}=(0,c.optionalRequire)("@nestjs/microservices/microservices-module",()=>o3);class g extends f.NestApplicationContext{constructor(b,y,E,x,O={}){super(b,O),this.httpAdapter=y,this.config=E,this.graphInspector=x,this.logger=new t.Logger(g.name,{timestamp:!0}),this.middlewareContainer=new p.MiddlewareContainer(this.container),this.microservicesModule=v&&new v,this.socketModule=m&&new m,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 l.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,o.iterate)(this.microservices).map(async b=>{b.setIsTerminated(!0),await b.close()}))}getHttpAdapter(){return this.httpAdapter}registerHttpServer(){this.httpServer=this.createServer()}getUnderlyingHttpServer(){return this.httpAdapter.getHttpServer()}applyOptions(){return!this.appOptions||!this.appOptions.cors?void 0:(0,a.isObject)(this.appOptions.cors)||(0,a.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(i.MESSAGES.APPLICATION_READY),this)}registerParserMiddleware(){const b=this.config.getGlobalPrefix(),y=!!this.appOptions?.rawBody;this.httpAdapter.registerParserMiddleware(b,y)}async registerRouter(){await this.registerMiddleware(this.httpAdapter);const b=this.config.getGlobalPrefix(),y=(0,a.addLeadingSlash)(b);this.routesResolver.resolve(this.httpAdapter,y)}async registerRouterHooks(){this.routesResolver.registerNotFoundHandler(),this.routesResolver.registerExceptionHandler()}connectMicroservice(b,y={}){const{NestMicroservice:E}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>CN),{inheritAppConfig:x}=y,O=x?this.config:new s.ApplicationConfig,S=new E(this.container,b,this.graphInspector,O);return y.deferInitialization||(S.registerListeners(),S.setIsInitialized(!0),S.setIsInitHookCalled(!0)),this.microservices.push(S),S}getMicroservices(){return this.microservices}getHttpServer(){return this.httpServer}async startAllMicroservices(){return this.assertNotInPreviewMode("startAllMicroservices"),await Promise.all(this.microservices.map(b=>b.listen())),this}use(...b){return this.httpAdapter.use(...b),this}useBodyParser(...b){if(!("useBodyParser"in this.httpAdapter))return this.logger.warn("Your HTTP Adapter does not support `.useBodyParser`."),this;const[y,...E]=b,x=!!this.appOptions.rawBody;return this.httpAdapter.useBodyParser?.(y,x,...E),this}enableCors(b){this.httpAdapter.enableCors(b)}enableVersioning(b={type:e.VersioningType.URI}){return this.config.enableVersioning(b),this}async listen(b,...y){this.assertNotInPreviewMode("listen"),this.isInitialized||await this.init();const E=this.container.getHttpAdapterHostRef();return new Promise((x,O)=>{const S=A=>{this.logger.error(A?.toString?.()),O(A)};this.httpServer.once("error",S);const w=(0,a.isFunction)(y[y.length-1]),T=w?y.slice(0,y.length-1):y;this.httpAdapter.listen(b,...T,(...A)=>{if((this.appOptions?.autoFlushLogs??!0)&&this.flushLogs(),A[0]instanceof Error)return O(A[0]);this.httpServer.address()&&(this.httpServer.removeListener("error",S),this.isListening=!0,E.listening=!0,x(this.httpServer)),w&&y[y.length-1](...A)})})}async getUrl(){return new Promise((b,y)=>{if(!this.isListening){this.logger.error(i.MESSAGES.CALL_LISTEN_FIRST),y(i.MESSAGES.CALL_LISTEN_FIRST);return}const E=this.httpServer.address();b(this.formatAddress(E))})}formatAddress(b){if((0,a.isString)(b)){if((0,n.platform)()==="win32")return b;const E=encodeURIComponent(b);return`${this.getProtocol()}+unix://${E}`}let y=this.host();return b&&b.family==="IPv6"?y==="::"?y="[::1]":y=`[${y}]`:y==="0.0.0.0"&&(y="127.0.0.1"),`${this.getProtocol()}://${y}:${b.port}`}setGlobalPrefix(b,y){if(this.config.setGlobalPrefix(b),y){const E=y?.exclude?(0,d.mapToExcludeRoute)(y.exclude):[];this.config.setGlobalPrefixOptions({...y,exclude:E})}return this}useWebSocketAdapter(b){return this.config.setIoAdapter(b),this}useGlobalFilters(...b){return this.config.useGlobalFilters(...b),b.forEach(y=>this.graphInspector.insertOrphanedEnhancer({subtype:"filter",ref:y})),this}useGlobalPipes(...b){return this.config.useGlobalPipes(...b),b.forEach(y=>this.graphInspector.insertOrphanedEnhancer({subtype:"pipe",ref:y})),this}useGlobalInterceptors(...b){return this.config.useGlobalInterceptors(...b),b.forEach(y=>this.graphInspector.insertOrphanedEnhancer({subtype:"interceptor",ref:y})),this}useGlobalGuards(...b){return this.config.useGlobalGuards(...b),b.forEach(y=>this.graphInspector.insertOrphanedEnhancer({subtype:"guard",ref:y})),this}useStaticAssets(b,y){return this.httpAdapter.useStaticAssets&&this.httpAdapter.useStaticAssets(b,y),this}setBaseViewsDir(b){return this.httpAdapter.setBaseViewsDir&&this.httpAdapter.setBaseViewsDir(b),this}setViewEngine(b){return this.httpAdapter.setViewEngine&&this.httpAdapter.setViewEngine(b),this}host(){const b=this.httpServer.address();if(!(0,a.isString)(b))return b&&b.address}getProtocol(){return this.appOptions&&this.appOptions.httpsOptions?"https":"http"}async registerMiddleware(b){await this.middlewareModule.registerMiddleware(this.middlewareContainer,b)}}return hu.NestApplication=g,hu}var an={},Nu={},Fu={},UR;function u3(){if(UR)return Fu;UR=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.ExceptionHandler=void 0;const e=wt();class t{handle(a){t.logger.error(a)}}return Fu.ExceptionHandler=t,t.logger=new e.Logger(t.name),Fu}var $R;function l3(){if($R)return Nu;$R=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.ExceptionsZone=void 0;const e=ve(),t=u3(),r=()=>process.exit(1);class a{static run(n,s=r,i){try{n()}catch(c){this.exceptionHandler.handle(c),i&&e.Logger.flush(),s(c)}}static async asyncRun(n,s=r,i){try{await n()}catch(c){this.exceptionHandler.handle(c),i&&e.Logger.flush(),s(c)}}}return Nu.ExceptionsZone=a,a.exceptionHandler=new t.ExceptionHandler,Nu}var Ud={},zR;function d3(){if(zR)return Ud;zR=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.loadAdapter=a;const e=ve(),t=(o,n)=>`No driver (${n}) has been selected. In order to take advantage of the default driver, please, ensure to install the "${o}" package ($ npm install ${o}).`,r=new e.Logger("PackageLoader");function a(o,n,s){try{return s?s():fg(o)}catch{r.error(t(o,n)),process.exit(1)}}return Ud}var Du={},BR;function p3(){if(BR)return Du;BR=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.rethrow=void 0;const e=t=>{throw t};return Du.rethrow=e,Du}var ku={},HR;function Pb(){if(HR)return ku;HR=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.InstanceLoader=void 0;const e=ve(),t=wb(),r=kp();class a{constructor(n,s,i,c=new e.Logger(a.name,{timestamp:!0})){this.container=n,this.injector=s,this.graphInspector=i,this.logger=c}setLogger(n){this.logger=n}async createInstancesOfDependencies(n=this.container.getModules()){this.createPrototypes(n);try{await this.createInstances(n)}catch(s){throw this.graphInspector.inspectModules(n),this.graphInspector.registerPartial(s),s}this.graphInspector.inspectModules(n)}createPrototypes(n){n.forEach(s=>{this.createPrototypesOfProviders(s),this.createPrototypesOfInjectables(s),this.createPrototypesOfControllers(s)})}async createInstances(n){await Promise.all([...n.values()].map(async s=>{await this.createInstancesOfProviders(s),await this.createInstancesOfInjectables(s),await this.createInstancesOfControllers(s);const{name:i}=s;this.isModuleWhitelisted(i)&&this.logger.log((0,t.MODULE_INIT_MESSAGE)`${i}`)}))}createPrototypesOfProviders(n){const{providers:s}=n;s.forEach(i=>this.injector.loadPrototype(i,s))}async createInstancesOfProviders(n){const{providers:s}=n,i=[...s.values()];await Promise.all(i.map(async c=>{await this.injector.loadProvider(c,n),this.graphInspector.inspectInstanceWrapper(c,n)}))}createPrototypesOfControllers(n){const{controllers:s}=n;s.forEach(i=>this.injector.loadPrototype(i,s))}async createInstancesOfControllers(n){const{controllers:s}=n,i=[...s.values()];await Promise.all(i.map(async c=>{await this.injector.loadController(c,n),this.graphInspector.inspectInstanceWrapper(c,n)}))}createPrototypesOfInjectables(n){const{injectables:s}=n;s.forEach(i=>this.injector.loadPrototype(i,s))}async createInstancesOfInjectables(n){const{injectables:s}=n,i=[...s.values()];await Promise.all(i.map(async c=>{await this.injector.loadInjectable(c,n),this.graphInspector.inspectInstanceWrapper(c,n)}))}isModuleWhitelisted(n){return n!==r.InternalCoreModule.name}}return ku.InstanceLoader=a,ku}var Lu={},VR;function jN(){if(VR)return Lu;VR=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.NoopGraphInspector=void 0;const e=Lp(),t=()=>{};return Lu.NoopGraphInspector=new Proxy(e.GraphInspector.prototype,{get:()=>t}),Lu}var Uu={},$u={},GR;function f3(){if(GR)return $u;GR=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.InvalidClassModuleException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o,n){super((0,e.USING_INVALID_CLASS_AS_A_MODULE_MESSAGE)(o,n))}}return $u.InvalidClassModuleException=r,$u}var zu={},WR;function h3(){if(WR)return zu;WR=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.InvalidModuleException=void 0;const e=bt(),t=et();class r extends t.RuntimeException{constructor(o,n,s){super((0,e.INVALID_MODULE_MESSAGE)(o,n,s))}}return zu.InvalidModuleException=r,zu}var Bu={},ZR;function v3(){if(ZR)return Bu;ZR=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.UndefinedModuleException=void 0;const e=et(),t=bt();class r extends e.RuntimeException{constructor(o,n,s){super((0,t.UNDEFINED_MODULE_MESSAGE)(o,n,s))}}return Bu.UndefinedModuleException=r,Bu}var Hu={},KR;function m3(){if(KR)return Hu;KR=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.InternalCoreModuleFactory=void 0;const e=ve(),t=vb(),r=jl(),a=mb(),o=Eb(),n=hi(),s=Pb(),i=yb(),c=fi(),u=kp();class p{static create(d,f,h,m,v,g){const _=()=>{const b=new e.Logger(i.LazyModuleLoader.name,{timestamp:!1}),y=new n.Injector({preview:d.contextOptions?.preview,instanceDecorator:d.contextOptions?.instrument?.instanceDecorator}),E=new s.InstanceLoader(d,y,v,b);return new i.LazyModuleLoader(f,E,h,d.getModules(),g)};return a.InitializeOnPreviewAllowlist.add(u.InternalCoreModule),u.InternalCoreModule.register([{provide:t.ExternalContextCreator,useFactory:()=>t.ExternalContextCreator.fromContainer(d)},{provide:c.ModulesContainer,useFactory:()=>d.getModules()},{provide:r.HttpAdapterHost,useFactory:()=>m},{provide:i.LazyModuleLoader,useFactory:_},{provide:o.SerializedGraph,useFactory:()=>d.serializedGraph}])}}return Hu.InternalCoreModuleFactory=p,Hu}var Vu={},Gu={},YR;function _3(){if(YR)return Gu;YR=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.TreeNode=void 0;class e{constructor({value:r,parent:a}){this.children=new Set,this.value=r,this.parent=a}addChild(r){this.children.add(r)}removeChild(r){this.children.delete(r)}relink(r){this.parent?.removeChild(this),this.parent=r,this.parent.addChild(this)}getDepth(){const r=new Set;let a=0,o=this;for(;o;){if(a++,o=o.parent,r.has(o))return-1;r.add(o)}return a}hasCycleWith(r){const a=new Set;let o=this;for(;o;){if(o.value===r)return!0;if(o=o.parent,a.has(o))return!1;a.add(o)}return!1}}return Gu.TreeNode=e,Gu}var XR;function g3(){if(XR)return Vu;XR=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.TopologyTree=void 0;const e=_3();class t{constructor(a){this.links=new Map,this.root=new e.TreeNode({value:a,parent:null}),this.links.set(a,this.root),this.traverseAndMapToTree(this.root)}walk(a){function o(n,s=1){a(n.value,s),n.children.forEach(i=>o(i,s+1))}o(this.root)}traverseAndMapToTree(a,o=1){a.value.imports&&a.value.imports.forEach(n=>{if(!n)return;if(this.links.has(n)){const i=this.links.get(n);if(a.hasCycleWith(n))return;i.getDepth()<o&&i.relink(a);return}const s=new e.TreeNode({value:n,parent:a});a.addChild(s),this.links.set(n,s),this.traverseAndMapToTree(s,o+1)})}}return Vu.TopologyTree=t,Vu}var QR;function qN(){if(QR)return Uu;QR=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.DependenciesScanner=void 0;const e=xe(),t=vp(),r=ne(),a=He(),o=pr(),n=pi(),s=lN(),i=f3(),c=h3(),u=v3(),p=Fp(),l=m3(),d=g3(),f=Fl();class h{constructor(v,g,_,b=new o.ApplicationConfig){this.container=v,this.metadataScanner=g,this.graphInspector=_,this.applicationConfig=b,this.applicationProvidersApplyMap=[]}async scan(v,g){await this.registerCoreModule(g?.overrides),await this.scanForModules({moduleDefinition:v,overrides:g?.overrides}),await this.scanModulesForDependencies(),this.addScopedEnhancersMetadata(),this.calculateModulesDistance(),this.container.bindGlobalScope()}async scanForModules({moduleDefinition:v,lazy:g,scope:_=[],ctxRegistry:b=[],overrides:y=[]}){const{moduleRef:E,inserted:x}=await this.insertOrOverrideModule(v,y,_)??{};v=this.getOverrideModuleByModule(v,y)?.newModule??v,v=v instanceof Promise?await v:v,b.push(v),this.isForwardReference(v)&&(v=v.forwardRef());const O=this.isDynamicModule(v)?[...this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v.module),...v.imports||[]]:this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v);let S=[];for(const[w,T]of O.entries()){if(T===void 0)throw new u.UndefinedModuleException(v,w,_);if(!T)throw new c.InvalidModuleException(v,w,_);if(b.includes(T))continue;const A=await this.scanForModules({moduleDefinition:T,scope:[].concat(_,v),ctxRegistry:b,overrides:y,lazy:g});S=S.concat(A)}return E?(g&&x&&this.container.bindGlobalsToImports(E),[E].concat(S)):S}async insertModule(v,g){const _=this.isForwardReference(v)?v.forwardRef():v;if(this.isInjectable(_)||this.isController(_)||this.isExceptionFilter(_))throw new i.InvalidClassModuleException(v,g);return this.container.addModule(_,g)}async scanModulesForDependencies(v=this.container.getModules()){for(const[g,{metatype:_}]of v)await this.reflectImports(_,g,_.name),this.reflectProviders(_,g),this.reflectControllers(_,g),this.reflectExports(_,g)}async reflectImports(v,g,_){const b=[...this.reflectMetadata(e.MODULE_METADATA.IMPORTS,v),...this.container.getDynamicMetadataByToken(g,e.MODULE_METADATA.IMPORTS)];for(const y of b)await this.insertImport(y,g,_)}reflectProviders(v,g){[...this.reflectMetadata(e.MODULE_METADATA.PROVIDERS,v),...this.container.getDynamicMetadataByToken(g,e.MODULE_METADATA.PROVIDERS)].forEach(b=>{this.insertProvider(b,g),this.reflectDynamicMetadata(b,g)})}reflectControllers(v,g){[...this.reflectMetadata(e.MODULE_METADATA.CONTROLLERS,v),...this.container.getDynamicMetadataByToken(g,e.MODULE_METADATA.CONTROLLERS)].forEach(b=>{this.insertController(b,g),this.reflectDynamicMetadata(b,g)})}reflectDynamicMetadata(v,g){!v||!v.prototype||(this.reflectInjectables(v,g,e.GUARDS_METADATA),this.reflectInjectables(v,g,e.INTERCEPTORS_METADATA),this.reflectInjectables(v,g,e.EXCEPTION_FILTERS_METADATA),this.reflectInjectables(v,g,e.PIPES_METADATA),this.reflectParamInjectables(v,g,e.ROUTE_ARGS_METADATA))}reflectExports(v,g){[...this.reflectMetadata(e.MODULE_METADATA.EXPORTS,v),...this.container.getDynamicMetadataByToken(g,e.MODULE_METADATA.EXPORTS)].forEach(b=>this.insertExportedProviderOrModule(b,g))}reflectInjectables(v,g,_){const b=this.reflectMetadata(_,v),y=this.metadataScanner.getAllMethodNames(v.prototype).reduce((E,x)=>{const O=this.reflectKeyMetadata(v,_,x);return O&&E.push(O),E},[]);b.forEach(E=>this.insertInjectable(E,g,v,e.ENHANCER_KEY_TO_SUBTYPE_MAP[_])),y.forEach(E=>{E.metadata.forEach(x=>this.insertInjectable(x,g,v,e.ENHANCER_KEY_TO_SUBTYPE_MAP[_],E.methodKey))})}reflectParamInjectables(v,g,_){this.metadataScanner.getAllMethodNames(v.prototype).forEach(y=>{const E=Reflect.getMetadata(_,v,y);if(!E)return;Object.values(E).map(O=>O.pipes).flat(1).forEach(O=>this.insertInjectable(O,g,v,"pipe",y))})}reflectKeyMetadata(v,g,_){let b=v.prototype;do{const y=Reflect.getOwnPropertyDescriptor(b,_);if(!y)continue;const E=Reflect.getMetadata(g,y.value);return E?{methodKey:_,metadata:E}:void 0}while((b=Reflect.getPrototypeOf(b))&&b!==Object.prototype&&b)}calculateModulesDistance(){const v=this.container.getModules().values();v.next();const g=v.next().value;if(!g)return;new d.TopologyTree(g).walk((b,y)=>{b.isGlobal||(b.distance=y)})}async insertImport(v,g,_){if((0,r.isUndefined)(v))throw new s.CircularDependencyException(_);if(this.isForwardReference(v))return this.container.addImport(v.forwardRef(),g);await this.container.addImport(v,g)}isCustomProvider(v){return v&&!(0,r.isNil)(v.provide)}insertProvider(v,g){if(!this.isCustomProvider(v))return this.container.addProvider(v,g);const b=this.getApplyProvidersMap(),y=Object.keys(b),E=v.provide;if(!y.includes(E))return this.container.addProvider(v,g);const x=f.UuidFactory.get(E.toString()),O=`${E} (UUID: ${x})`;let S=v.scope;(0,r.isNil)(S)&&v.useClass&&(S=(0,p.getClassScope)(v.useClass)),this.applicationProvidersApplyMap.push({type:E,moduleKey:g,providerKey:O,scope:S});const w={...v,provide:O,scope:S},T=n.ENHANCER_TOKEN_TO_SUBTYPE_MAP[E],A=w;if(this.isRequestOrTransient(A.scope))return this.container.addInjectable(w,g,T);this.container.addProvider(w,g,T)}insertInjectable(v,g,_,b,y){if((0,r.isFunction)(v)){const E=this.container.addInjectable(v,g,b,_);return this.graphInspector.insertEnhancerMetadataCache({moduleToken:g,classRef:_,enhancerInstanceWrapper:E,targetNodeId:E.id,subtype:b,methodKey:y}),E}else this.graphInspector.insertEnhancerMetadataCache({moduleToken:g,classRef:_,enhancerRef:v,methodKey:y,subtype:b})}insertExportedProviderOrModule(v,g){const _=this.isForwardReference(v)?v.forwardRef():v;this.container.addExportedProviderOrModule(_,g)}insertController(v,g){this.container.addController(v,g)}insertOrOverrideModule(v,g,_){const b=this.getOverrideModuleByModule(v,g);return b!==void 0?this.overrideModule(v,b.newModule,_):this.insertModule(v,_)}getOverrideModuleByModule(v,g){return this.isForwardReference(v)?g.find(_=>_.moduleToReplace===v.forwardRef()||_.moduleToReplace.forwardRef?.()===v.forwardRef()):g.find(_=>_.moduleToReplace===v)}async overrideModule(v,g,_){return this.container.replaceModule(this.isForwardReference(v)?v.forwardRef():v,this.isForwardReference(g)?g.forwardRef():g,_)}reflectMetadata(v,g){return Reflect.getMetadata(v,g)||[]}async registerCoreModule(v){const g=l.InternalCoreModuleFactory.create(this.container,this,this.container.getModuleCompiler(),this.container.getHttpAdapterHostRef(),this.graphInspector,v),[_]=await this.scanForModules({moduleDefinition:g,overrides:v});this.container.registerCoreModuleRef(_)}addScopedEnhancersMetadata(){(0,a.iterate)(this.applicationProvidersApplyMap).filter(v=>this.isRequestOrTransient(v.scope)).forEach(({moduleKey:v,providerKey:g})=>{const _=this.container.getModules(),{injectables:b}=_.get(v),y=b.get(g),E=_.values();(0,a.iterate)(E).map(x=>Array.from(x.controllers.values()).concat(x.entryProviders)).flatten().forEach(x=>x.addEnhancerMetadata(y))})}applyApplicationProviders(){const v=this.getApplyProvidersMap(),g=this.getApplyRequestProvidersMap(),_=(b,y,E)=>this.container.getModules().get(b)[E].get(y);this.applicationProvidersApplyMap.forEach(({moduleKey:b,providerKey:y,type:E,scope:x})=>{let O;if(this.isRequestOrTransient(x))return O=_(b,y,"injectables"),this.graphInspector.insertAttachedEnhancer(O),g[E](O);O=_(b,y,"providers"),this.graphInspector.insertAttachedEnhancer(O),v[E](O.instance)})}getApplyProvidersMap(){return{[n.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalInterceptor(v),[n.APP_PIPE]:v=>this.applicationConfig.addGlobalPipe(v),[n.APP_GUARD]:v=>this.applicationConfig.addGlobalGuard(v),[n.APP_FILTER]:v=>this.applicationConfig.addGlobalFilter(v)}}getApplyRequestProvidersMap(){return{[n.APP_INTERCEPTOR]:v=>this.applicationConfig.addGlobalRequestInterceptor(v),[n.APP_PIPE]:v=>this.applicationConfig.addGlobalRequestPipe(v),[n.APP_GUARD]:v=>this.applicationConfig.addGlobalRequestGuard(v),[n.APP_FILTER]:v=>this.applicationConfig.addGlobalRequestFilter(v)}}isDynamicModule(v){return v&&!!v.module}isInjectable(v){return!!Reflect.getMetadata(e.INJECTABLE_WATERMARK,v)}isController(v){return!!Reflect.getMetadata(e.CONTROLLER_WATERMARK,v)}isExceptionFilter(v){return!!Reflect.getMetadata(e.CATCH_WATERMARK,v)}isForwardReference(v){return v&&!!v.forwardRef}isRequestOrTransient(v){return v===t.Scope.REQUEST||v===t.Scope.TRANSIENT}}return Uu.DependenciesScanner=h,Uu}var Zm={},Km={},Wu={},Ym={exports:{}};/*
|
|
122
|
+
object-assign
|
|
123
|
+
(c) Sindre Sorhus
|
|
124
|
+
@license MIT
|
|
125
|
+
*/var Xm,JR;function NN(){if(JR)return Xm;JR=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function o(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var s={},i=0;i<10;i++)s["_"+String.fromCharCode(i)]=i;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xm=o()?Object.assign:function(n,s){for(var i,c=a(n),u,p=1;p<arguments.length;p++){i=Object(arguments[p]);for(var l in i)t.call(i,l)&&(c[l]=i[l]);if(e){u=e(i);for(var d=0;d<u.length;d++)r.call(i,u[d])&&(c[u[d]]=i[u[d]])}}return c},Xm}var $d={exports:{}};/*!
|
|
126
|
+
* vary
|
|
127
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
128
|
+
* MIT Licensed
|
|
129
|
+
*/var eM;function b3(){if(eM)return $d.exports;eM=1,$d.exports=a,$d.exports.append=t;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function t(o,n){if(typeof o!="string")throw new TypeError("header argument is required");if(!n)throw new TypeError("field argument is required");for(var s=Array.isArray(n)?n:r(String(n)),i=0;i<s.length;i++)if(!e.test(s[i]))throw new TypeError("field argument contains an invalid header name");if(o==="*")return o;var c=o,u=r(o.toLowerCase());if(s.indexOf("*")!==-1||u.indexOf("*")!==-1)return"*";for(var p=0;p<s.length;p++){var l=s[p].toLowerCase();u.indexOf(l)===-1&&(u.push(l),c=c?c+", "+s[p]:s[p])}return c}function r(o){for(var n=0,s=[],i=0,c=0,u=o.length;c<u;c++)switch(o.charCodeAt(c)){case 32:i===n&&(i=n=c+1);break;case 44:s.push(o.substring(i,n)),i=n=c+1;break;default:n=c+1;break}return s.push(o.substring(i,n)),s}function a(o,n){if(!o||!o.getHeader||!o.setHeader)throw new TypeError("res argument is required");var s=o.getHeader("Vary")||"",i=Array.isArray(s)?s.join(", "):String(s);(s=t(i,n))&&o.setHeader("Vary",s)}return $d.exports}var tM;function y3(){return tM||(tM=1,(function(){var e=NN(),t=b3(),r={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function a(h){return typeof h=="string"||h instanceof String}function o(h,m){if(Array.isArray(m)){for(var v=0;v<m.length;++v)if(o(h,m[v]))return!0;return!1}else return a(m)?h===m:m instanceof RegExp?m.test(h):!!m}function n(h,m){var v=m.headers.origin,g=[],_;return!h.origin||h.origin==="*"?g.push([{key:"Access-Control-Allow-Origin",value:"*"}]):a(h.origin)?(g.push([{key:"Access-Control-Allow-Origin",value:h.origin}]),g.push([{key:"Vary",value:"Origin"}])):(_=o(v,h.origin),g.push([{key:"Access-Control-Allow-Origin",value:_?v:!1}]),g.push([{key:"Vary",value:"Origin"}])),g}function s(h){var m=h.methods;return m.join&&(m=h.methods.join(",")),{key:"Access-Control-Allow-Methods",value:m}}function i(h){return h.credentials===!0?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function c(h,m){var v=h.allowedHeaders||h.headers,g=[];return v?v.join&&(v=v.join(",")):(v=m.headers["access-control-request-headers"],g.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),v&&v.length&&g.push([{key:"Access-Control-Allow-Headers",value:v}]),g}function u(h){var m=h.exposedHeaders;if(m)m.join&&(m=m.join(","));else return null;return m&&m.length?{key:"Access-Control-Expose-Headers",value:m}:null}function p(h){var m=(typeof h.maxAge=="number"||h.maxAge)&&h.maxAge.toString();return m&&m.length?{key:"Access-Control-Max-Age",value:m}:null}function l(h,m){for(var v=0,g=h.length;v<g;v++){var _=h[v];_&&(Array.isArray(_)?l(_,m):_.key==="Vary"&&_.value?t(m,_.value):_.value&&m.setHeader(_.key,_.value))}}function d(h,m,v,g){var _=[],b=m.method&&m.method.toUpperCase&&m.method.toUpperCase();b==="OPTIONS"?(_.push(n(h,m)),_.push(i(h)),_.push(s(h)),_.push(c(h,m)),_.push(p(h)),_.push(u(h)),l(_,v),h.preflightContinue?g():(v.statusCode=h.optionsSuccessStatus,v.setHeader("Content-Length","0"),v.end())):(_.push(n(h,m)),_.push(i(h)),_.push(u(h)),l(_,v),g())}function f(h){var m=null;return typeof h=="function"?m=h:m=function(v,g){g(null,h)},function(g,_,b){m(g,function(y,E){if(y)b(y);else{var x=e({},r,E),O=null;x.origin&&typeof x.origin=="function"?O=x.origin:x.origin&&(O=function(S,w){w(null,x.origin)}),O?O(g.headers.origin,function(S,w){S||!w?b(S):(x.origin=w,d(x,g,_,b))}):b()}})}}Ym.exports=f})()),Ym.exports}var vt={},rM;function E3(){if(rM)return vt;rM=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.PathError=vt.TokenData=void 0,vt.parse=u,vt.compile=p,vt.match=f,vt.pathToRegexp=h,vt.stringify=y;const e="/",t=O=>O,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function n(O){return O.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function s(O){return O.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class i{constructor(S,w){this.tokens=S,this.originalPath=w}}vt.TokenData=i;class c extends TypeError{constructor(S,w){let T=S;w&&(T+=`: ${w}`),T+="; visit https://git.new/pathToRegexpError for info",super(T),this.originalPath=w}}vt.PathError=c;function u(O,S={}){const{encodePath:w=t}=S,T=[...O],A=[];let P=0,C=0;function D(){let F="";if(r.test(T[P]))do F+=T[P++];while(a.test(T[P]));else if(T[P]==='"'){let z=P;for(;P++<T.length;){if(T[P]==='"'){P++,z=0;break}T[P]==="\\"&&P++,F+=T[P]}if(z)throw new c(`Unterminated quote at index ${z}`,O)}if(!F)throw new c(`Missing parameter name at index ${P}`,O);return F}for(;P<T.length;){const F=T[P],z=o[F];z?A.push({type:z,index:P++,value:F}):F==="\\"?A.push({type:"escape",index:P++,value:T[P++]}):F===":"?A.push({type:"param",index:P++,value:D()}):F==="*"?A.push({type:"wildcard",index:P++,value:D()}):A.push({type:"char",index:P++,value:F})}A.push({type:"end",index:P,value:""});function H(F){const z=[];for(;;){const Z=A[C++];if(Z.type===F)break;if(Z.type==="char"||Z.type==="escape"){let X=Z.value,k=A[C];for(;k.type==="char"||k.type==="escape";)X+=k.value,k=A[++C];z.push({type:"text",value:w(X)});continue}if(Z.type==="param"||Z.type==="wildcard"){z.push({type:Z.type,name:Z.value});continue}if(Z.type==="{"){z.push({type:"group",tokens:H("}")});continue}throw new c(`Unexpected ${Z.type} at index ${Z.index}, expected ${F}`,O)}return z}return new i(H("end"),O)}function p(O,S={}){const{encode:w=encodeURIComponent,delimiter:T=e}=S,A=typeof O=="object"?O:u(O,S),P=l(A.tokens,T,w);return function(D={}){const[H,...F]=P(D);if(F.length)throw new TypeError(`Missing parameters: ${F.join(", ")}`);return H}}function l(O,S,w){const T=O.map(A=>d(A,S,w));return A=>{const P=[""];for(const C of T){const[D,...H]=C(A);P[0]+=D,P.push(...H)}return P}}function d(O,S,w){if(O.type==="text")return()=>[O.value];if(O.type==="group"){const A=l(O.tokens,S,w);return P=>{const[C,...D]=A(P);return D.length?[""]:[C]}}const T=w||t;return O.type==="wildcard"&&w!==!1?A=>{const P=A[O.name];if(P==null)return["",O.name];if(!Array.isArray(P)||P.length===0)throw new TypeError(`Expected "${O.name}" to be a non-empty array`);return[P.map((C,D)=>{if(typeof C!="string")throw new TypeError(`Expected "${O.name}/${D}" to be a string`);return T(C)}).join(S)]}:A=>{const P=A[O.name];if(P==null)return["",O.name];if(typeof P!="string")throw new TypeError(`Expected "${O.name}" to be a string`);return[T(P)]}}function f(O,S={}){const{decode:w=decodeURIComponent,delimiter:T=e}=S,{regexp:A,keys:P}=h(O,S),C=P.map(D=>w===!1?t:D.type==="param"?w:H=>H.split(T).map(w));return function(H){const F=A.exec(H);if(!F)return!1;const z=F[0],Z=Object.create(null);for(let X=1;X<F.length;X++){if(F[X]===void 0)continue;const k=P[X-1],re=C[X-1];Z[k.name]=re(F[X])}return{path:z,params:Z}}}function h(O,S={}){const{delimiter:w=e,end:T=!0,sensitive:A=!1,trailing:P=!0}=S,C=[],D=A?"":"i",H=[];for(const Z of m(O,[])){const X=typeof Z=="object"?Z:u(Z,S);for(const k of v(X.tokens,0,[]))H.push(g(k,w,C,X.originalPath))}let F=`^(?:${H.join("|")})`;return P&&(F+=`(?:${s(w)}$)?`),F+=T?"$":`(?=${s(w)}|$)`,{regexp:new RegExp(F,D),keys:C}}function m(O,S){if(Array.isArray(O))for(const w of O)m(w,S);else S.push(O);return S}function*v(O,S,w){if(S===O.length)return yield w;const T=O[S];if(T.type==="group")for(const A of v(T.tokens,0,w.slice()))yield*v(O,S+1,A);else w.push(T);yield*v(O,S+1,w)}function g(O,S,w,T){let A="",P="",C=!0;for(const D of O){if(D.type==="text"){A+=s(D.value),P+=D.value,C||(C=D.value.includes(S));continue}if(D.type==="param"||D.type==="wildcard"){if(!C&&!P)throw new c(`Missing text before "${D.name}" ${D.type}`,T);D.type==="param"?A+=`(${_(S,C?"":P)}+)`:A+="([\\s\\S]+)",w.push(D),P="",C=!1;continue}}return A}function _(O,S){return S.length<2?O.length<2?`[^${s(O+S)}]`:`(?:(?!${s(O)})[^${s(S)}])`:O.length<2?`(?:(?!${s(S)})[^${s(O)}])`:`(?:(?!${s(S)}|${s(O)})[\\s\\S])`}function b(O){let S="",w=0;function T(A){return E(A)&&x(O[w])?A:JSON.stringify(A)}for(;w<O.length;){const A=O[w++];if(A.type==="text"){S+=n(A.value);continue}if(A.type==="group"){S+=`{${b(A.tokens)}}`;continue}if(A.type==="param"){S+=`:${T(A.name)}`;continue}if(A.type==="wildcard"){S+=`*${T(A.name)}`;continue}throw new TypeError(`Unknown token type: ${A.type}`)}return S}function y(O){return b(O.tokens)}function E(O){const[S,...w]=O;return r.test(S)&&w.every(T=>a.test(T))}function x(O){return O&&O.type==="text"?!a.test(O.value[0]):!0}return vt}var zd={},nM;function x3(){if(nM)return zd;nM=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.getBodyParserOptions=t;const e=(r,a,o)=>(Buffer.isBuffer(o)&&(r.rawBody=o),!0);function t(r,a){let o=a||{};return r===!0&&(o={...o,verify:e}),o}return zd}var iM;function O3(){if(iM)return Wu;iM=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.ExpressAdapter=void 0;const e=ve(),t=ne(),r=Xq(),a=RN(),o=EN(),n=y3(),s=eD,i=tD,c=rD,u=E3(),p=x3();class l extends r.AbstractHttpAdapter{constructor(f){super(f||s()),this.routerMethodFactory=new a.RouterMethodFactory,this.logger=new e.Logger(l.name),this.openConnections=new Set,this.instance.use((h,m,v)=>{this.onResponseHook&&m.on("finish",()=>{this.onResponseHook.apply(this,[h,m])}),this.onRequestHook?this.onRequestHook.apply(this,[h,m,v]):v()})}setOnRequestHook(f){this.onRequestHook=f}setOnResponseHook(f){this.onResponseHook=f}reply(f,h,m){if(m&&f.status(m),(0,t.isNil)(h))return f.send();if(h instanceof e.StreamableFile){const g=h.getHeaders();f.getHeader("Content-Type")===void 0&&g.type!==void 0&&f.setHeader("Content-Type",g.type),f.getHeader("Content-Disposition")===void 0&&g.disposition!==void 0&&f.setHeader("Content-Disposition",g.disposition),f.getHeader("Content-Length")===void 0&&g.length!==void 0&&f.setHeader("Content-Length",g.length);const _=h.getStream();return _.once("error",b=>{h.errorHandler(b,f)}),_.pipe(f).on("error",b=>h.errorLogger(b))}const v=f.getHeader("Content-Type");return typeof v=="string"&&!v.startsWith("application/json")&&h?.statusCode>=e.HttpStatus.BAD_REQUEST&&(this.logger.warn("Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses"),f.setHeader("Content-Type","application/json")),(0,t.isObject)(h)?f.json(h):f.send(String(h))}status(f,h){return f.status(h)}end(f,h){return f.end(h)}render(f,h,m){return f.render(h,m)}redirect(f,h,m){return f.redirect(h,m)}setErrorHandler(f,h){return this.use(f)}setNotFoundHandler(f,h){return this.use(f)}isHeadersSent(f){return f.headersSent}getHeader(f,h){return f.get(h)}setHeader(f,h,m){return f.set(h,m)}appendHeader(f,h,m){return f.append(h,m)}normalizePath(f){try{const h=o.LegacyRouteConverter.tryConvert(f);return(0,u.pathToRegexp)(h),h}catch(h){throw h instanceof TypeError&&o.LegacyRouteConverter.printError(f),h}}listen(f,...h){return this.httpServer.listen(f,...h)}close(){if(this.closeOpenConnections(),!!this.httpServer)return new Promise(f=>this.httpServer.close(f))}set(...f){return this.instance.set(...f)}enable(...f){return this.instance.enable(...f)}disable(...f){return this.instance.disable(...f)}engine(...f){return this.instance.engine(...f)}useStaticAssets(f,h){return h&&h.prefix?this.use(h.prefix,s.static(f,h)):this.use(s.static(f,h))}setBaseViewsDir(f){return this.set("views",f)}setViewEngine(f){return this.set("view engine",f)}getRequestHostname(f){return f.hostname}getRequestMethod(f){return f.method}getRequestUrl(f){return f.originalUrl}enableCors(f){return this.use(n(f))}createMiddlewareFactory(f){return(h,m)=>{try{const v=o.LegacyRouteConverter.tryConvert(h);return this.routerMethodFactory.get(this.instance,f).call(this.instance,v,m)}catch(v){throw v instanceof TypeError&&o.LegacyRouteConverter.printError(h),v}}}initHttpServer(f){f&&f.httpsOptions?this.httpServer=c.createServer(f.httpsOptions,this.getInstance()):this.httpServer=i.createServer(this.getInstance()),f?.forceCloseConnections&&this.trackOpenConnections()}registerParserMiddleware(f,h){const m=(0,p.getBodyParserOptions)(h),v=(0,p.getBodyParserOptions)(h,{extended:!0}),g={jsonParser:s.json(m),urlencodedParser:s.urlencoded(v)};Object.keys(g).filter(_=>!this.isMiddlewareApplied(_)).forEach(_=>this.use(g[_]))}useBodyParser(f,h,m){const v=(0,p.getBodyParserOptions)(h,m),g=s[f](v);return this.use(g),this}setLocal(f,h){return this.instance.locals[f]=h,this}getType(){return"express"}applyVersionFilter(f,h,m){const v=(g,_,b)=>{if(!b)throw new e.InternalServerErrorException("HTTP adapter does not support filtering on version");return b()};if(h===e.VERSION_NEUTRAL||m.type===e.VersioningType.URI)return(_,b,y)=>f(_,b,y);if(m.type===e.VersioningType.CUSTOM)return(_,b,y)=>{const E=m.extractor(_);if(Array.isArray(h)){if(Array.isArray(E)&&h.filter(x=>E.includes(x)).length||(0,t.isString)(E)&&h.includes(E))return f(_,b,y)}else if((0,t.isString)(h)&&(Array.isArray(E)&&E.includes(h)||(0,t.isString)(E)&&h===E))return f(_,b,y);return v(_,b,y)};if(m.type===e.VersioningType.MEDIA_TYPE)return(_,b,y)=>{const E="Accept",x=_.headers?.[E]||_.headers?.[E.toLowerCase()],O=x?x.split(";")[1]:void 0;if((0,t.isUndefined)(O)){if(Array.isArray(h)&&h.includes(e.VERSION_NEUTRAL))return f(_,b,y)}else{const S=O.split(m.key)[1];if(Array.isArray(h)){if(h.includes(S))return f(_,b,y)}else if((0,t.isString)(h)&&h===S)return f(_,b,y)}return v(_,b,y)};if(m.type===e.VersioningType.HEADER)return(_,b,y)=>{const E=_.headers?.[m.header]||_.headers?.[m.header.toLowerCase()];if((0,t.isUndefined)(E)){if(Array.isArray(h)&&h.includes(e.VERSION_NEUTRAL))return f(_,b,y)}else if(Array.isArray(h)){if(h.includes(E))return f(_,b,y)}else if((0,t.isString)(h)&&h===E)return f(_,b,y);return v(_,b,y)};throw new Error("Unsupported versioning options")}trackOpenConnections(){this.httpServer.on("connection",f=>{this.openConnections.add(f),f.on("close",()=>this.openConnections.delete(f))})}closeOpenConnections(){for(const f of this.openConnections)f.destroy(),this.openConnections.delete(f)}isMiddlewareApplied(f){const h=this.getInstance();return!!h.router&&!!h.router.stack&&(0,t.isFunction)(h.router.stack.filter)&&h.router.stack.some(m=>m&&m.handle&&m.handle.name===f)}}return Wu.ExpressAdapter=l,Wu}var aM;function w3(){return aM||(aM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(O3(),e)})(Km)),Km}var Qm={},Jm={},oM;function S3(){return oM||(oM=1,Object.defineProperty(Jm,"__esModule",{value:!0})),Jm}var e_={},sM;function P3(){return sM||(sM=1,Object.defineProperty(e_,"__esModule",{value:!0})),e_}var cM;function T3(){return cM||(cM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(S3(),e),t.__exportStar(P3(),e)})(Qm)),Qm}var t_={},r_={},Bd={},Xn={exports:{}},on={exports:{}},Hd={};/*!
|
|
130
|
+
* media-typer
|
|
131
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
132
|
+
* MIT Licensed
|
|
133
|
+
*/var uM;function A3(){if(uM)return Hd;uM=1;var e=/; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g,t=/^[\u0020-\u007e\u0080-\u00ff]+$/,r=/^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/,a=/\\([\u0000-\u007f])/g,o=/([\\"])/g,n=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,s=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,i=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;Hd.format=c,Hd.parse=u;function c(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var h=f.parameters,m=f.subtype,v=f.suffix,g=f.type;if(!g||!s.test(g))throw new TypeError("invalid type");if(!m||!n.test(m))throw new TypeError("invalid subtype");var _=g+"/"+m;if(v){if(!s.test(v))throw new TypeError("invalid suffix");_+="+"+v}if(h&&typeof h=="object")for(var b,y=Object.keys(h).sort(),E=0;E<y.length;E++){if(b=y[E],!r.test(b))throw new TypeError("invalid parameter name");_+="; "+b+"="+l(h[b])}return _}function u(f){if(!f)throw new TypeError("argument string is required");if(typeof f=="object"&&(f=p(f)),typeof f!="string")throw new TypeError("argument string is required to be a string");var h=f.indexOf(";"),m=h!==-1?f.substr(0,h):f,v,g,_=d(m),b={},y;for(e.lastIndex=h;g=e.exec(f);){if(g.index!==h)throw new TypeError("invalid parameter format");h+=g[0].length,v=g[1].toLowerCase(),y=g[2],y[0]==='"'&&(y=y.substr(1,y.length-2).replace(a,"$1")),b[v]=y}if(h!==-1&&h!==f.length)throw new TypeError("invalid parameter format");return _.parameters=b,_}function p(f){if(typeof f.getHeader=="function")return f.getHeader("content-type");if(typeof f.headers=="object")return f.headers&&f.headers["content-type"]}function l(f){var h=String(f);if(r.test(h))return h;if(h.length>0&&!t.test(h))throw new TypeError("invalid parameter value");return'"'+h.replace(o,"\\$1")+'"'}function d(f){var h=i.exec(f.toLowerCase());if(!h)throw new TypeError("invalid media type");var m=h[1],v=h[2],g,_=v.lastIndexOf("+");_!==-1&&(g=v.substr(_+1),v=v.substr(0,_));var b={type:m,subtype:v,suffix:g};return b}return Hd}var n_={};const R3={"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}};/*!
|
|
134
|
+
* mime-db
|
|
135
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
136
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
137
|
+
* MIT Licensed
|
|
138
|
+
*/var i_,lM;function M3(){return lM||(lM=1,i_=R3),i_}/*!
|
|
139
|
+
* mime-types
|
|
140
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
141
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
142
|
+
* MIT Licensed
|
|
143
|
+
*/var dM;function I3(){return dM||(dM=1,(function(e){var t=M3(),r=Yt.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=n,e.charsets={lookup:n},e.contentType=s,e.extension=i,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),u(e.extensions,e.types);function n(p){if(!p||typeof p!="string")return!1;var l=a.exec(p),d=l&&t[l[1].toLowerCase()];return d&&d.charset?d.charset:l&&o.test(l[1])?"UTF-8":!1}function s(p){if(!p||typeof p!="string")return!1;var l=p.indexOf("/")===-1?e.lookup(p):p;if(!l)return!1;if(l.indexOf("charset")===-1){var d=e.charset(l);d&&(l+="; charset="+d.toLowerCase())}return l}function i(p){if(!p||typeof p!="string")return!1;var l=a.exec(p),d=l&&e.extensions[l[1].toLowerCase()];return!d||!d.length?!1:d[0]}function c(p){if(!p||typeof p!="string")return!1;var l=r("x."+p).toLowerCase().substr(1);return l&&e.types[l]||!1}function u(p,l){var d=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(h){var m=t[h],v=m.extensions;if(!(!v||!v.length)){p[h]=v;for(var g=0;g<v.length;g++){var _=v[g];if(l[_]){var b=d.indexOf(t[l[_]].source),y=d.indexOf(m.source);if(l[_]!=="application/octet-stream"&&(b>y||b===y&&l[_].substr(0,12)==="application/"))continue}l[_]=h}}})}})(n_)),n_}/*!
|
|
144
|
+
* type-is
|
|
145
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
146
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
147
|
+
* MIT Licensed
|
|
148
|
+
*/var pM;function C3(){if(pM)return on.exports;pM=1;var e=A3(),t=I3();on.exports=o,on.exports.is=r,on.exports.hasBody=a,on.exports.normalize=n,on.exports.match=s;function r(u,p){var l,d=p,f=c(u);if(!f)return!1;if(d&&!Array.isArray(d))for(d=new Array(arguments.length-1),l=0;l<d.length;l++)d[l]=arguments[l+1];if(!d||!d.length)return f;var h;for(l=0;l<d.length;l++)if(s(n(h=d[l]),f))return h[0]==="+"||h.indexOf("*")!==-1?f:h;return!1}function a(u){return u.headers["transfer-encoding"]!==void 0||!isNaN(u.headers["content-length"])}function o(u,p){var l=p;if(!a(u))return null;if(arguments.length>2){l=new Array(arguments.length-1);for(var d=0;d<l.length;d++)l[d]=arguments[d+1]}var f=u.headers["content-type"];return r(f,l)}function n(u){if(typeof u!="string")return!1;switch(u){case"urlencoded":return"application/x-www-form-urlencoded";case"multipart":return"multipart/*"}return u[0]==="+"?"*/*"+u:u.indexOf("/")===-1?t.lookup(u):u}function s(u,p){if(u===!1)return!1;var l=p.split("/"),d=u.split("/");return l.length!==2||d.length!==2||d[0]!=="*"&&d[0]!==l[0]?!1:d[1].substr(0,2)==="*+"?d[1].length<=l[1].length+1&&d[1].substr(1)===l[1].substr(1-d[1].length):!(d[1]!=="*"&&d[1]!==l[1])}function i(u){var p=e.parse(u);return p.parameters=void 0,e.format(p)}function c(u){if(!u)return null;try{return i(u)}catch{return null}}return on.exports}var a_,fM;function Tb(){if(fM)return a_;fM=1;function e(f){if(f.length===0)return;const h=Object.create(null);let m=0;for(;m<f.length;++m){const b=f.charCodeAt(m);if(c[b]!==1){if(b!==47||m===0)return;break}}if(m===f.length)return;const v=f.slice(0,m).toLowerCase(),g=++m;for(;m<f.length;++m){const b=f.charCodeAt(m);if(c[b]!==1){if(m===g||t(f,m,h)===void 0)return;break}}if(m===g)return;const _=f.slice(g,m).toLowerCase();return{type:v,subtype:_,params:h}}function t(f,h,m){for(;h<f.length;){for(;h<f.length;++h){const y=f.charCodeAt(h);if(y!==32&&y!==9)break}if(h===f.length)break;if(f.charCodeAt(h++)!==59)return;for(;h<f.length;++h){const y=f.charCodeAt(h);if(y!==32&&y!==9)break}if(h===f.length)return;let v;const g=h;for(;h<f.length;++h){const y=f.charCodeAt(h);if(c[y]!==1){if(y!==61)return;break}}if(h===f.length||(v=f.slice(g,h),++h,h===f.length))return;let _="",b;if(f.charCodeAt(h)===34){b=++h;let y=!1;for(;h<f.length;++h){const E=f.charCodeAt(h);if(E===92){y?(b=h,y=!1):(_+=f.slice(b,h),y=!0);continue}if(E===34){if(y){b=h,y=!1;continue}_+=f.slice(b,h);break}if(y&&(b=h-1,y=!1),u[E]!==1)return}if(h===f.length)return;++h}else{for(b=h;h<f.length;++h){const y=f.charCodeAt(h);if(c[y]!==1){if(h===b)return;break}}_=f.slice(b,h)}v=v.toLowerCase(),m[v]===void 0&&(m[v]=_)}return m}function r(f,h){if(f.length===0)return;const m=Object.create(null);let v=0;for(;v<f.length;++v){const _=f.charCodeAt(v);if(c[_]!==1){if(a(f,v,m,h)===void 0)return;break}}return{type:f.slice(0,v).toLowerCase(),params:m}}function a(f,h,m,v){for(;h<f.length;){for(;h<f.length;++h){const x=f.charCodeAt(h);if(x!==32&&x!==9)break}if(h===f.length)break;if(f.charCodeAt(h++)!==59)return;for(;h<f.length;++h){const x=f.charCodeAt(h);if(x!==32&&x!==9)break}if(h===f.length)return;let g;const _=h;for(;h<f.length;++h){const x=f.charCodeAt(h);if(c[x]!==1){if(x===61)break;return}}if(h===f.length)return;let b="",y,E;if(g=f.slice(_,h),g.charCodeAt(g.length-1)===42){const x=++h;for(;h<f.length;++h){const S=f.charCodeAt(h);if(p[S]!==1){if(S!==39)return;break}}if(h===f.length)return;for(E=f.slice(x,h),++h;h<f.length&&f.charCodeAt(h)!==39;++h);if(h===f.length||(++h,h===f.length))return;y=h;let O=0;for(;h<f.length;++h){const S=f.charCodeAt(h);if(l[S]!==1){if(S===37){let w,T;if(h+2<f.length&&(w=d[f.charCodeAt(h+1)])!==-1&&(T=d[f.charCodeAt(h+2)])!==-1){const A=(w<<4)+T;b+=f.slice(y,h),b+=String.fromCharCode(A),h+=2,y=h+1,A>=128?O=2:O===0&&(O=1);continue}return}break}}if(b+=f.slice(y,h),b=s(b,E,O),b===void 0)return}else{if(++h,h===f.length)return;if(f.charCodeAt(h)===34){y=++h;let x=!1;for(;h<f.length;++h){const O=f.charCodeAt(h);if(O===92){x?(y=h,x=!1):(b+=f.slice(y,h),x=!0);continue}if(O===34){if(x){y=h,x=!1;continue}b+=f.slice(y,h);break}if(x&&(y=h-1,x=!1),u[O]!==1)return}if(h===f.length)return;++h}else{for(y=h;h<f.length;++h){const x=f.charCodeAt(h);if(c[x]!==1){if(h===y)return;break}}b=f.slice(y,h)}if(b=v(b,2),b===void 0)return}g=g.toLowerCase(),m[g]===void 0&&(m[g]=b)}return m}function o(f){let h;for(;;)switch(f){case"utf-8":case"utf8":return n.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 n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(h===void 0){h=!0,f=f.toLowerCase();continue}return n.other.bind(f)}}const n={utf8:(f,h)=>{if(f.length===0)return"";if(typeof f=="string"){if(h<2)return f;f=Buffer.from(f,"latin1")}return f.utf8Slice(0,f.length)},latin1:(f,h)=>f.length===0?"":typeof f=="string"?f:f.latin1Slice(0,f.length),utf16le:(f,h)=>f.length===0?"":(typeof f=="string"&&(f=Buffer.from(f,"latin1")),f.ucs2Slice(0,f.length)),base64:(f,h)=>f.length===0?"":(typeof f=="string"&&(f=Buffer.from(f,"latin1")),f.base64Slice(0,f.length)),other:(f,h)=>{if(f.length===0)return"";typeof f=="string"&&(f=Buffer.from(f,"latin1"));try{return new TextDecoder(this).decode(f)}catch{}}};function s(f,h,m){const v=o(h);if(v)return v(f,m)}function i(f){if(typeof f!="string")return"";for(let h=f.length-1;h>=0;--h)switch(f.charCodeAt(h)){case 47:case 92:return f=f.slice(h+1),f===".."||f==="."?"":f}return f===".."||f==="."?"":f}const c=[0,0,0,0,0,0,0,0,0,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],u=[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],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,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],l=[0,0,0,0,0,0,0,0,0,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],d=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-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];return a_={basename:i,convertToUTF8:s,getDecoder:o,parseContentType:e,parseDisposition:r},a_}var o_,hM;function j3(){if(hM)return o_;hM=1;function e(o,n,s,i,c){for(let u=0;u<c;++u)if(o[n+u]!==s[i+u])return!1;return!0}class t{constructor(n,s){if(typeof s!="function")throw new Error("Missing match callback");if(typeof n=="string")n=Buffer.from(n);else if(!Buffer.isBuffer(n))throw new Error(`Expected Buffer for needle, got ${typeof n}`);const i=n.length;if(this.maxMatches=1/0,this.matches=0,this._cb=s,this._lookbehindSize=0,this._needle=n,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(i),this._occ=[i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i],i>1)for(let c=0;c<i-1;++c)this._occ[n[c]]=i-1-c}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(n,s){let i;Buffer.isBuffer(n)||(n=Buffer.from(n,"latin1"));const c=n.length;for(this._bufPos=s||0;i!==c&&this.matches<this.maxMatches;)i=r(this,n);return i}destroy(){const n=this._lookbehindSize;n&&this._cb(!1,this._lookbehind,0,n,!1),this.reset()}}function r(o,n){const s=n.length,i=o._needle,c=i.length;let u=-o._lookbehindSize;const p=c-1,l=i[p],d=s-c,f=o._occ,h=o._lookbehind;if(u<0){for(;u<0&&u<=d;){const v=u+p,g=v<0?h[o._lookbehindSize+v]:n[v];if(g===l&&a(o,n,u,p))return o._lookbehindSize=0,++o.matches,u>-o._lookbehindSize?o._cb(!0,h,0,o._lookbehindSize+u,!1):o._cb(!0,void 0,0,0,!0),o._bufPos=u+c;u+=f[g]}for(;u<0&&!a(o,n,u,s-u);)++u;if(u<0){const v=o._lookbehindSize+u;return v>0&&o._cb(!1,h,0,v,!1),o._lookbehindSize-=v,h.copy(h,0,v,o._lookbehindSize),h.set(n,o._lookbehindSize),o._lookbehindSize+=s,o._bufPos=s,s}o._cb(!1,h,0,o._lookbehindSize,!1),o._lookbehindSize=0}u+=o._bufPos;const m=i[0];for(;u<=d;){const v=n[u+p];if(v===l&&n[u]===m&&e(i,0,n,u,p))return++o.matches,u>0?o._cb(!0,n,o._bufPos,u,!0):o._cb(!0,void 0,0,0,!0),o._bufPos=u+c;u+=f[v]}for(;u<s;){if(n[u]!==m||!e(n,u,i,0,s-u)){++u;continue}n.copy(h,0,u,s),o._lookbehindSize=s-u;break}return u>0&&o._cb(!1,n,o._bufPos,u<s?u:s,!0),o._bufPos=s,s}function a(o,n,s,i){const c=o._lookbehind,u=o._lookbehindSize,p=o._needle;for(let l=0;l<i;++l,++s)if((s<0?c[u+s]:n[s])!==p[l])return!1;return!0}return o_=t,o_}var s_,vM;function q3(){if(vM)return s_;vM=1;const{Readable:e,Writable:t}=dp,r=j3(),{basename:a,convertToUTF8:o,getDecoder:n,parseContentType:s,parseDisposition:i}=Tb(),c=Buffer.from(`\r
|
|
149
|
+
`),u=Buffer.from("\r"),p=Buffer.from("-");function l(){}const d=2e3,f=16*1024,h=0,m=1,v=2;class g{constructor(P){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=h,this.name="",this.value="",this.crlf=0,this.cb=P}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=h,this.name="",this.value="",this.crlf=0}push(P,C,D){let H=C;for(;C<D;)switch(this.state){case h:{let F=!1;for(;C<D;++C){if(this.byteCount===f)return-1;++this.byteCount;const z=P[C];if(w[z]!==1){if(z!==58||(this.name+=P.latin1Slice(H,C),this.name.length===0))return-1;++C,F=!0,this.state=m;break}}if(!F){this.name+=P.latin1Slice(H,C);break}}case m:{let F=!1;for(;C<D;++C){if(this.byteCount===f)return-1;++this.byteCount;const z=P[C];if(z!==32&&z!==9){H=C,F=!0,this.state=v;break}}if(!F)break}case v:switch(this.crlf){case 0:for(;C<D;++C){if(this.byteCount===f)return-1;++this.byteCount;const F=P[C];if(T[F]!==1){if(F!==13)return-1;++this.crlf;break}}this.value+=P.latin1Slice(H,C++);break;case 1:if(this.byteCount===f||(++this.byteCount,P[C++]!==10))return-1;++this.crlf;break;case 2:{if(this.byteCount===f)return-1;++this.byteCount;const F=P[C];F===32||F===9?(H=C,this.crlf=0):(++this.pairCount<d&&(this.name=this.name.toLowerCase(),this.header[this.name]===void 0?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),F===13?(++this.crlf,++C):(H=C,this.crlf=0,this.state=h,this.name="",this.value=""));break}case 3:{if(this.byteCount===f||(++this.byteCount,P[C++]!==10))return-1;const F=this.header;return this.reset(),this.cb(F),C}}break}return C}}class _ extends e{constructor(P,C){super(P),this.truncated=!1,this._readcb=null,this.once("end",()=>{if(this._read(),--C._fileEndsLeft===0&&C._finalcb){const D=C._finalcb;C._finalcb=null,process.nextTick(D)}})}_read(P){const C=this._readcb;C&&(this._readcb=null,C())}}const b={push:(A,P)=>{},destroy:()=>{}};function y(A,P){const C=A._writecb;A._writecb=null,C&&C()}function E(A,P){return A}class x extends t{constructor(P){const C={autoDestroy:!0,emitClose:!0,highWaterMark:typeof P.highWaterMark=="number"?P.highWaterMark:void 0};if(super(C),!P.conType.params||typeof P.conType.params.boundary!="string")throw new Error("Multipart: Boundary not found");const D=P.conType.params.boundary,H=typeof P.defParamCharset=="string"&&P.defParamCharset?n(P.defParamCharset):E,F=P.defCharset||"utf8",z=P.preservePath,Z={autoDestroy:!0,emitClose:!0,highWaterMark:typeof P.fileHwm=="number"?P.fileHwm:void 0},X=P.limits,k=X&&typeof X.fieldSize=="number"?X.fieldSize:1*1024*1024,re=X&&typeof X.fileSize=="number"?X.fileSize:1/0,q=X&&typeof X.files=="number"?X.files:1/0,N=X&&typeof X.fields=="number"?X.fields:1/0,L=X&&typeof X.parts=="number"?X.parts:1/0;let $=-1,M=0,j=0,U=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let K=0,ee,R=0,I,G,Q,oe,J=!1,le=!1,_e=!1;this._hparser=null;const ye=new g(Ee=>{this._hparser=null,U=!1,Q="text/plain",I=F,G="7bit",oe=void 0,J=!1;let Te;if(!Ee["content-disposition"]){U=!0;return}const me=i(Ee["content-disposition"][0],H);if(!me||me.type!=="form-data"){U=!0;return}if(me.params&&(me.params.name&&(oe=me.params.name),me.params["filename*"]?Te=me.params["filename*"]:me.params.filename&&(Te=me.params.filename),Te!==void 0&&!z&&(Te=a(Te))),Ee["content-type"]){const je=s(Ee["content-type"][0]);je&&(Q=`${je.type}/${je.subtype}`,je.params&&typeof je.params.charset=="string"&&(I=je.params.charset.toLowerCase()))}if(Ee["content-transfer-encoding"]&&(G=Ee["content-transfer-encoding"][0].toLowerCase()),Q==="application/octet-stream"||Te!==void 0){if(j===q){le||(le=!0,this.emit("filesLimit")),U=!0;return}if(++j,this.listenerCount("file")===0){U=!0;return}K=0,this._fileStream=new _(Z,this),++this._fileEndsLeft,this.emit("file",oe,this._fileStream,{filename:Te,encoding:G,mimeType:Q})}else{if(M===N){_e||(_e=!0,this.emit("fieldsLimit")),U=!0;return}if(++M,this.listenerCount("field")===0){U=!0;return}ee=[],R=0}});let Pe=0;const Re=(Ee,Te,me,je,Ze)=>{e:for(;Te;){if(this._hparser!==null){const be=this._hparser.push(Te,me,je);if(be===-1){this._hparser=null,ye.reset(),this.emit("error",new Error("Malformed part header"));break}me=be}if(me===je)break;if(Pe!==0){if(Pe===1){switch(Te[me]){case 45:Pe=2,++me;break;case 13:Pe=3,++me;break;default:Pe=0}if(me===je)return}if(Pe===2){if(Pe=0,Te[me]===45){this._complete=!0,this._bparser=b;return}const be=this._writecb;this._writecb=l,Re(!1,p,0,1,!1),this._writecb=be}else if(Pe===3)if(Pe=0,Te[me]===10){if(++me,$>=L||(this._hparser=ye,me===je))break;continue e}else{const be=this._writecb;this._writecb=l,Re(!1,u,0,1,!1),this._writecb=be}}if(!U){if(this._fileStream){let be;const Ve=Math.min(je-me,re-K);Ze?be=Te.slice(me,me+Ve):(be=Buffer.allocUnsafe(Ve),Te.copy(be,0,me,me+Ve)),K+=be.length,K===re?(be.length>0&&this._fileStream.push(be),this._fileStream.emit("limit"),this._fileStream.truncated=!0,U=!0):this._fileStream.push(be)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(ee!==void 0){let be;const Ve=Math.min(je-me,k-R);Ze?be=Te.slice(me,me+Ve):(be=Buffer.allocUnsafe(Ve),Te.copy(be,0,me,me+Ve)),R+=Ve,ee.push(be),R===k&&(U=!0,J=!0)}}break}if(Ee){if(Pe=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(ee!==void 0){let be;switch(ee.length){case 0:be="";break;case 1:be=o(ee[0],I,0);break;default:be=o(Buffer.concat(ee,R),I,0)}ee=void 0,R=0,this.emit("field",oe,be,{nameTruncated:!1,valueTruncated:J,encoding:G,mimeType:Q})}++$===L&&this.emit("partsLimit")}};this._bparser=new r(`\r
|
|
150
|
+
--${D}`,Re),this._writecb=null,this._finalcb=null,this.write(c)}static detect(P){return P.type==="multipart"&&P.subtype==="form-data"}_write(P,C,D){this._writecb=D,this._bparser.push(P,0),this._writecb&&y(this)}_destroy(P,C){this._hparser=null,this._bparser=b,P||(P=S(this));const D=this._fileStream;D&&(this._fileStream=null,D.destroy(P)),C(P)}_final(P){if(this._bparser.destroy(),!this._complete)return P(new Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=O.bind(null,this,P):O(this,P)}}function O(A,P,C){if(C)return P(C);C=S(A),P(C)}function S(A){if(A._hparser)return new Error("Malformed part header");const P=A._fileStream;if(P&&(A._fileStream=null,P.destroy(new Error("Unexpected end of file"))),!A._complete)return new Error("Unexpected end of form")}const w=[0,0,0,0,0,0,0,0,0,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],T=[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];return s_=x,s_}var c_,mM;function N3(){if(mM)return c_;mM=1;const{Writable:e}=dp,{getDecoder:t}=Tb();class r extends e{constructor(c){const u={autoDestroy:!0,emitClose:!0,highWaterMark:typeof c.highWaterMark=="number"?c.highWaterMark:void 0};super(u);let p=c.defCharset||"utf8";c.conType.params&&typeof c.conType.params.charset=="string"&&(p=c.conType.params.charset),this.charset=p;const l=c.limits;this.fieldSizeLimit=l&&typeof l.fieldSize=="number"?l.fieldSize:1*1024*1024,this.fieldsLimit=l&&typeof l.fields=="number"?l.fields:1/0,this.fieldNameSizeLimit=l&&typeof l.fieldNameSize=="number"?l.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=t(p)}static detect(c){return c.type==="application"&&c.subtype==="x-www-form-urlencoded"}_write(c,u,p){if(this._fields>=this.fieldsLimit)return p();let l=0;const d=c.length;if(this._lastPos=0,this._byte!==-2){if(l=a(this,c,l,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;l<d;)if(this._inKey){for(l=o(this,c,l,d);l<d;){switch(c[l]){case 61:this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,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"),p();continue;case 43:this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._key+=" ",this._lastPos=l+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l)),this._lastPos=l+1,this._byte=-1,l=a(this,c,l+1,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();++this._bytesKey,l=o(this,c,l,d);continue}++l,++this._bytesKey,l=o(this,c,l,d)}this._lastPos<l&&(this._key+=c.latin1Slice(this._lastPos,l))}else{for(l=n(this,c,l,d);l<d;){switch(c[l]){case 38:if(this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._lastPos=++l,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"),p();continue e;case 43:this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._val+=" ",this._lastPos=l+1;break;case 37:if(this._encode===0&&(this._encode=1),this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l)),this._lastPos=l+1,this._byte=-1,l=a(this,c,l+1,d),l===-1)return p(new Error("Malformed urlencoded form"));if(l>=d)return p();++this._bytesVal,l=n(this,c,l,d);continue}++l,++this._bytesVal,l=n(this,c,l,d)}this._lastPos<l&&(this._val+=c.latin1Slice(this._lastPos,l))}p()}_final(c){if(this._byte!==-2)return c(new 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"})),c()}}function a(i,c,u,p){if(u>=p)return p;if(i._byte===-1){const l=s[c[u++]];if(l===-1)return-1;if(l>=8&&(i._encode=2),u<p){const d=s[c[u++]];if(d===-1)return-1;i._inKey?i._key+=String.fromCharCode((l<<4)+d):i._val+=String.fromCharCode((l<<4)+d),i._byte=-2,i._lastPos=u}else i._byte=l}else{const l=s[c[u++]];if(l===-1)return-1;i._inKey?i._key+=String.fromCharCode((i._byte<<4)+l):i._val+=String.fromCharCode((i._byte<<4)+l),i._byte=-2,i._lastPos=u}return u}function o(i,c,u,p){if(i._bytesKey>i.fieldNameSizeLimit){for(i._keyTrunc||i._lastPos<u&&(i._key+=c.latin1Slice(i._lastPos,u-1)),i._keyTrunc=!0;u<p;++u){const l=c[u];if(l===61||l===38)break;++i._bytesKey}i._lastPos=u}return u}function n(i,c,u,p){if(i._bytesVal>i.fieldSizeLimit){for(i._valTrunc||i._lastPos<u&&(i._val+=c.latin1Slice(i._lastPos,u-1)),i._valTrunc=!0;u<p&&c[u]!==38;++u)++i._bytesVal;i._lastPos=u}return u}const s=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-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];return c_=r,c_}var u_,_M;function F3(){if(_M)return u_;_M=1;const{parseContentType:e}=Tb();function t(a){const o=a.headers,n=e(o["content-type"]);if(!n)throw new Error("Malformed content type");for(const s of r){if(!s.detect(n))continue;const c={limits:a.limits,headers:o,conType:n,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return a.highWaterMark&&(c.highWaterMark=a.highWaterMark),a.fileHwm&&(c.fileHwm=a.fileHwm),c.defCharset=a.defCharset,c.defParamCharset=a.defParamCharset,c.preservePath=a.preservePath,new s(c)}throw new Error(`Unsupported content type: ${o["content-type"]}`)}const r=[q3(),N3()].filter(function(a){return typeof a.detect=="function"});return u_=a=>{if((typeof a!="object"||a===null)&&(a={}),typeof a.headers!="object"||a.headers===null||typeof a.headers["content-type"]!="string")throw new Error("Missing Content-Type");return t(a)},u_}var l_,gM;function D3(){if(gM)return l_;gM=1,l_=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var o=arguments[a];for(var n in o)e.call(o,n)&&(r[n]=o[n])}return r}return l_}var d_,bM;function k3(){if(bM)return d_;bM=1;var e=/^[^\[]*/,t=/^\[(\d+)\]/,r=/^\[([^\]]+)\]/;function a(o){function n(){return[{type:"object",key:o,last:!0}]}var s=e.exec(o)[0];if(!s)return n();for(var i=o.length,c=s.length,u={type:"object",key:s},p=[u];c<i;){var l;if(o[c]==="["&&o[c+1]==="]"){if(c+=2,u.append=!0,c!==i)return n();continue}if(l=t.exec(o.substring(c)),l!==null){c+=l[0].length,u.nextType="array",u={type:"array",key:parseInt(l[1],10)},p.push(u);continue}if(l=r.exec(o.substring(c)),l!==null){c+=l[0].length,u.nextType="object",u={type:"object",key:l[1]},p.push(u);continue}return n()}return u.last=!0,p}return d_=a,d_}var p_,yM;function L3(){if(yM)return p_;yM=1;function e(a){return a===void 0?"undefined":Array.isArray(a)?"array":typeof a=="object"?"object":"scalar"}function t(a,o,n,s){switch(e(n)){case"undefined":o.append?a[o.key]=[s]:a[o.key]=s;break;case"array":a[o.key].push(s);break;case"object":return t(n,{key:""},n[""],s);case"scalar":a[o.key]=[a[o.key],s];break}return a}function r(a,o,n,s){if(o.last)return t(a,o,n,s);var i;switch(e(n)){case"undefined":return o.nextType==="array"?a[o.key]=[]:a[o.key]=Object.create(null),a[o.key];case"object":return a[o.key];case"array":return o.nextType==="array"?n:(i=Object.create(null),a[o.key]=i,n.forEach(function(c,u){c!==void 0&&(i[""+u]=c)}),i);case"scalar":return i=Object.create(null),i[""]=n,a[o.key]=i,i}}return p_=r,p_}var f_,EM;function U3(){if(EM)return f_;EM=1;var e=k3(),t=L3();function r(a,o,n){var s=e(o);s.reduce(function(i,c){return t(i,c,i[c.key],n)},a)}return f_=r,f_}var h_,xM;function $3(){if(xM)return h_;xM=1;var e=sg.EventEmitter;function t(){e.call(this),this.value=0}return t.prototype=Object.create(e.prototype),t.prototype.increment=function(){this.value++},t.prototype.decrement=function(){--this.value===0&&this.emit("zero")},t.prototype.isZero=function(){return this.value===0},t.prototype.onceZero=function(a){if(this.isZero())return a();this.once("zero",a)},h_=t,h_}var v_,OM;function FN(){if(OM)return v_;OM=1;var e=si,t={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 r(a,o){Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t[a],this.code=a,o&&(this.field=o)}return e.inherits(r,Error),v_=r,v_}var m_,wM;function z3(){if(wM)return m_;wM=1;var e=NN();function t(a,o){var n=a.indexOf(o);~n&&a.splice(n,1)}function r(a,o){switch(this.strategy=a,this.req=o,a){case"NONE":break;case"VALUE":break;case"ARRAY":o.files=[];break;case"OBJECT":o.files=Object.create(null);break;default:throw new Error("Unknown file strategy: "+a)}}return r.prototype.insertPlaceholder=function(a){var o={fieldname:a.fieldname};switch(this.strategy){case"NONE":break;case"VALUE":break;case"ARRAY":this.req.files.push(o);break;case"OBJECT":this.req.files[a.fieldname]?this.req.files[a.fieldname].push(o):this.req.files[a.fieldname]=[o];break}return o},r.prototype.removePlaceholder=function(a){switch(this.strategy){case"NONE":break;case"VALUE":break;case"ARRAY":t(this.req.files,a);break;case"OBJECT":this.req.files[a.fieldname].length===1?delete this.req.files[a.fieldname]:t(this.req.files[a.fieldname],a);break}},r.prototype.replacePlaceholder=function(a,o){if(this.strategy==="VALUE"){this.req.file=o;return}delete a.fieldname,e(a,o)},m_=r,m_}var __,SM;function B3(){if(SM)return __;SM=1;function e(t,r,a){var o=t.length,n=[];if(o===0)return a(null,n);function s(i){var c=t[i];r(c,function(u){u&&(u.file=c,u.field=c.fieldname,n.push(u)),i<o-1?s(i+1):a(null,n)})}s(0)}return __=e,__}var g_,PM;function H3(){if(PM)return g_;PM=1;var e=C3(),t=F3(),r=D3(),a=U3(),o=$3(),n=FN(),s=z3(),i=B3();function c(p){p.on("readable",()=>{for(;p.read()!==null;);})}function u(p){return function(d,f,h){if(!e(d,["multipart"]))return h();var m=p(),v=m.limits,g=m.storage,_=m.fileFilter,b=m.fileStrategy,y=m.preservePath;d.body=Object.create(null),d.on("error",function(F){D(F)});var E;try{E=t({headers:d.headers,limits:v,preservePath:y})}catch(F){return h(F)}var x=new s(b,d),O=!1,S=!1,w=!1,T=new o,A=[];function P(F){O||(O=!0,d.unpipe(E),c(d),d.resume(),setImmediate(()=>{E.removeAllListeners()}),h(F))}function C(){S&&T.isZero()&&!w&&P()}function D(F){w||(w=!0,T.onceZero(function(){function z(Z,X){g._removeFile(d,Z,X)}i(A,z,function(Z,X){if(Z)return P(Z);F.storageErrors=X,P(F)})}))}function H(F,z){D(new n(F,z))}E.on("field",function(F,z,{nameTruncated:Z,valueTruncated:X}){if(F==null)return H("MISSING_FIELD_NAME");if(Z)return H("LIMIT_FIELD_KEY");if(X)return H("LIMIT_FIELD_VALUE",F);if(v&&Object.prototype.hasOwnProperty.call(v,"fieldNameSize")&&F.length>v.fieldNameSize)return H("LIMIT_FIELD_KEY");a(d.body,F,z)}),E.on("file",function(F,z,{filename:Z,encoding:X,mimeType:k}){var re=!1;if(z.on("error",function(L){re&&T.decrement(),D(L)}),F==null)return H("MISSING_FIELD_NAME");if(!Z)return z.resume();if(v&&Object.prototype.hasOwnProperty.call(v,"fieldNameSize")&&F.length>v.fieldNameSize)return H("LIMIT_FIELD_KEY");var q={fieldname:F,originalname:Z,encoding:X,mimetype:k},N=x.insertPlaceholder(q);_(d,q,function(L,$){if(L)return x.removePlaceholder(N),D(L);if(!$)return x.removePlaceholder(N),z.resume();var M=!1;re=!0,T.increment(),Object.defineProperty(q,"stream",{configurable:!0,enumerable:!1,value:z}),z.on("limit",function(){M=!0,H("LIMIT_FILE_SIZE",F)}),g._handleFile(d,q,function(j,U){if(M)return x.removePlaceholder(N),A.push(r(q,U)),T.decrement();if(j)return x.removePlaceholder(N),T.decrement(),D(j);var K=r(q,U);x.replacePlaceholder(N,K),A.push(K),T.decrement(),C()})})}),E.on("error",function(F){D(F)}),E.on("partsLimit",function(){H("LIMIT_PART_COUNT")}),E.on("filesLimit",function(){H("LIMIT_FILE_COUNT")}),E.on("fieldsLimit",function(){H("LIMIT_FIELD_COUNT")}),E.on("close",function(){S=!0,C()}),d.pipe(E)}}return g_=u,g_}var b_,TM;function V3(){if(TM)return b_;TM=1;var e=Yt,t=ai,r=parseInt("0777",8);b_=a.mkdirp=a.mkdirP=a;function a(o,n,s,i){typeof n=="function"?(s=n,n={}):(!n||typeof n!="object")&&(n={mode:n});var c=n.mode,u=n.fs||t;c===void 0&&(c=r),i||(i=null);var p=s||function(){};o=e.resolve(o),u.mkdir(o,c,function(l){if(!l)return i=i||o,p(null,i);switch(l.code){case"ENOENT":if(e.dirname(o)===o)return p(l);a(e.dirname(o),n,function(d,f){d?p(d,f):a(o,n,p,f)});break;default:u.stat(o,function(d,f){d||!f.isDirectory()?p(l,i):p(null,i)});break}})}return a.sync=function o(n,s,i){(!s||typeof s!="object")&&(s={mode:s});var c=s.mode,u=s.fs||t;c===void 0&&(c=r),i||(i=null),n=e.resolve(n);try{u.mkdirSync(n,c),i=i||n}catch(l){switch(l.code){case"ENOENT":i=o(e.dirname(n),s,i),o(n,s,i);break;default:var p;try{p=u.statSync(n)}catch{throw l}if(!p.isDirectory())throw l;break}}return i},b_}var y_,AM;function G3(){if(AM)return y_;AM=1;var e=ai,t=lp,r=Yt,a=oi,o=V3();function n(c,u,p){a.randomBytes(16,function(l,d){p(l,l?void 0:d.toString("hex"))})}function s(c,u,p){p(null,t.tmpdir())}function i(c){this.getFilename=c.filename||n,typeof c.destination=="string"?(o.sync(c.destination),this.getDestination=function(u,p,l){l(null,c.destination)}):this.getDestination=c.destination||s}return i.prototype._handleFile=function(u,p,l){var d=this;d.getDestination(u,p,function(f,h){if(f)return l(f);d.getFilename(u,p,function(m,v){if(m)return l(m);var g=r.join(h,v),_=e.createWriteStream(g);p.stream.pipe(_),_.on("error",l),_.on("finish",function(){l(null,{destination:h,filename:v,path:g,size:_.bytesWritten})})})})},i.prototype._removeFile=function(u,p,l){var d=p.path;delete p.destination,delete p.filename,delete p.path,e.unlink(d,l)},y_=function(c){return new i(c)},y_}var Vd={exports:{}},E_,RM;function DN(){return RM||(RM=1,E_=sg.EventEmitter),E_}var x_,MM;function W3(){if(MM)return x_;MM=1;function e(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);m&&(g=g.filter(function(_){return Object.getOwnPropertyDescriptor(h,_).enumerable})),v.push.apply(v,g)}return v}function t(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?e(Object(v),!0).forEach(function(g){r(h,g,v[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):e(Object(v)).forEach(function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(v,g))})}return h}function r(h,m,v){return m=s(m),m in h?Object.defineProperty(h,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[m]=v,h}function a(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function o(h,m){for(var v=0;v<m.length;v++){var g=m[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,s(g.key),g)}}function n(h,m,v){return m&&o(h.prototype,m),Object.defineProperty(h,"prototype",{writable:!1}),h}function s(h){var m=i(h,"string");return typeof m=="symbol"?m:String(m)}function i(h,m){if(typeof h!="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var g=v.call(h,m);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}var c=pp,u=c.Buffer,p=si,l=p.inspect,d=l&&l.custom||"inspect";function f(h,m,v){u.prototype.copy.call(h,m,v)}return x_=(function(){function h(){a(this,h),this.head=null,this.tail=null,this.length=0}return n(h,[{key:"push",value:function(v){var g={data:v,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,_=""+g.data;g=g.next;)_+=v+g.data;return _}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var g=u.allocUnsafe(v>>>0),_=this.head,b=0;_;)f(_.data,g,b),b+=_.data.length,_=_.next;return g}},{key:"consume",value:function(v,g){var _;return v<this.head.data.length?(_=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?_=this.shift():_=g?this._getString(v):this._getBuffer(v),_}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var g=this.head,_=1,b=g.data;for(v-=b.length;g=g.next;){var y=g.data,E=v>y.length?y.length:v;if(E===y.length?b+=y:b+=y.slice(0,v),v-=E,v===0){E===y.length?(++_,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=y.slice(E));break}++_}return this.length-=_,b}},{key:"_getBuffer",value:function(v){var g=u.allocUnsafe(v),_=this.head,b=1;for(_.data.copy(g),v-=_.data.length;_=_.next;){var y=_.data,E=v>y.length?y.length:v;if(y.copy(g,g.length-v,0,E),v-=E,v===0){E===y.length?(++b,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=y.slice(E));break}++b}return this.length-=b,g}},{key:d,value:function(v,g){return l(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),h})(),x_}var O_,IM;function kN(){if(IM)return O_;IM=1;function e(s,i){var c=this,u=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return u||p?(i?i(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,s)):process.nextTick(o,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(l){!i&&l?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,l)):process.nextTick(t,c,l):i?(process.nextTick(r,c),i(l)):process.nextTick(r,c)}),this)}function t(s,i){o(s,i),r(s)}function r(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.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(s,i){s.emit("error",i)}function n(s,i){var c=s._readableState,u=s._writableState;c&&c.autoDestroy||u&&u.autoDestroy?s.destroy(i):s.emit("error",i)}return O_={destroy:e,undestroy:a,errorOrDestroy:n},O_}var w_={},CM;function vi(){if(CM)return w_;CM=1;function e(i,c){i.prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c}var t={};function r(i,c,u){u||(u=Error);function p(d,f,h){return typeof c=="string"?c:c(d,f,h)}var l=(function(d){e(f,d);function f(h,m,v){return d.call(this,p(h,m,v))||this}return f})(u);l.prototype.name=u.name,l.prototype.code=i,t[i]=l}function a(i,c){if(Array.isArray(i)){var u=i.length;return i=i.map(function(p){return String(p)}),u>2?"one of ".concat(c," ").concat(i.slice(0,u-1).join(", "),", or ")+i[u-1]:u===2?"one of ".concat(c," ").concat(i[0]," or ").concat(i[1]):"of ".concat(c," ").concat(i[0])}else return"of ".concat(c," ").concat(String(i))}function o(i,c,u){return i.substr(0,c.length)===c}function n(i,c,u){return(u===void 0||u>i.length)&&(u=i.length),i.substring(u-c.length,u)===c}function s(i,c,u){return typeof u!="number"&&(u=0),u+c.length>i.length?!1:i.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(i,c){return'The value "'+c+'" is invalid for option "'+i+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(i,c,u){var p;typeof c=="string"&&o(c,"not ")?(p="must not be",c=c.replace(/^not /,"")):p="must be";var l;if(n(i," argument"))l="The ".concat(i," ").concat(p," ").concat(a(c,"type"));else{var d=s(i,".")?"property":"argument";l='The "'.concat(i,'" ').concat(d," ").concat(p," ").concat(a(c,"type"))}return l+=". Received type ".concat(typeof u),l},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w_.codes=t,w_}var S_,jM;function LN(){if(jM)return S_;jM=1;var e=vi().codes.ERR_INVALID_OPT_VALUE;function t(a,o,n){return a.highWaterMark!=null?a.highWaterMark:o?a[n]:null}function r(a,o,n,s){var i=t(o,s,n);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var c=s?n:"highWaterMark";throw new e(c,i)}return Math.floor(i)}return a.objectMode?16:16*1024}return S_={getHighWaterMark:r},S_}var Gd={exports:{}},qM;function mi(){return qM||(qM=1,typeof Object.create=="function"?Gd.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Gd.exports=function(t,r){if(r){t.super_=r;var a=function(){};a.prototype=r.prototype,t.prototype=new a,t.prototype.constructor=t}}),Gd.exports}var P_,NM;function Z3(){if(NM)return P_;NM=1,P_=e;function e(r,a){if(t("noDeprecation"))return r;var o=!1;function n(){if(!o){if(t("throwDeprecation"))throw new Error(a);t("traceDeprecation")?console.trace(a):console.warn(a),o=!0}return r.apply(this,arguments)}return n}function t(r){try{if(!ut.localStorage)return!1}catch{return!1}var a=ut.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return P_}var T_,FM;function UN(){if(FM)return T_;FM=1,T_=S;function e(M){var j=this;this.next=null,this.entry=null,this.finish=function(){$(j,M)}}var t;S.WritableState=x;var r={deprecate:Z3()},a=DN(),o=pp.Buffer,n=(typeof ut<"u"?ut:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(M){return o.from(M)}function i(M){return o.isBuffer(M)||M instanceof n}var c=kN(),u=LN(),p=u.getHighWaterMark,l=vi().codes,d=l.ERR_INVALID_ARG_TYPE,f=l.ERR_METHOD_NOT_IMPLEMENTED,h=l.ERR_MULTIPLE_CALLBACK,m=l.ERR_STREAM_CANNOT_PIPE,v=l.ERR_STREAM_DESTROYED,g=l.ERR_STREAM_NULL_VALUES,_=l.ERR_STREAM_WRITE_AFTER_END,b=l.ERR_UNKNOWN_ENCODING,y=c.errorOrDestroy;mi()(S,a);function E(){}function x(M,j,U){t=t||ii(),M=M||{},typeof U!="boolean"&&(U=j instanceof t),this.objectMode=!!M.objectMode,U&&(this.objectMode=this.objectMode||!!M.writableObjectMode),this.highWaterMark=p(this,M,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=M.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ee){F(j,ee)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}x.prototype.getBuffer=function(){for(var j=this.bufferedRequest,U=[];j;)U.push(j),j=j.next;return U},(function(){try{Object.defineProperty(x.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(j){return O.call(this,j)?!0:this!==S?!1:j&&j._writableState instanceof x}})):O=function(j){return j instanceof this};function S(M){t=t||ii();var j=this instanceof t;if(!j&&!O.call(S,this))return new S(M);this._writableState=new x(M,this,j),this.writable=!0,M&&(typeof M.write=="function"&&(this._write=M.write),typeof M.writev=="function"&&(this._writev=M.writev),typeof M.destroy=="function"&&(this._destroy=M.destroy),typeof M.final=="function"&&(this._final=M.final)),a.call(this)}S.prototype.pipe=function(){y(this,new m)};function w(M,j){var U=new _;y(M,U),process.nextTick(j,U)}function T(M,j,U,K){var ee;return U===null?ee=new g:typeof U!="string"&&!j.objectMode&&(ee=new d("chunk",["string","Buffer"],U)),ee?(y(M,ee),process.nextTick(K,ee),!1):!0}S.prototype.write=function(M,j,U){var K=this._writableState,ee=!1,R=!K.objectMode&&i(M);return R&&!o.isBuffer(M)&&(M=s(M)),typeof j=="function"&&(U=j,j=null),R?j="buffer":j||(j=K.defaultEncoding),typeof U!="function"&&(U=E),K.ending?w(this,U):(R||T(this,K,M,U))&&(K.pendingcb++,ee=P(this,K,R,M,j,U)),ee},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,!M.writing&&!M.corked&&!M.bufferProcessing&&M.bufferedRequest&&X(this,M))},S.prototype.setDefaultEncoding=function(j){if(typeof j=="string"&&(j=j.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((j+"").toLowerCase())>-1))throw new b(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function A(M,j,U){return!M.objectMode&&M.decodeStrings!==!1&&typeof j=="string"&&(j=o.from(j,U)),j}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P(M,j,U,K,ee,R){if(!U){var I=A(j,K,ee);K!==I&&(U=!0,ee="buffer",K=I)}var G=j.objectMode?1:K.length;j.length+=G;var Q=j.length<j.highWaterMark;if(Q||(j.needDrain=!0),j.writing||j.corked){var oe=j.lastBufferedRequest;j.lastBufferedRequest={chunk:K,encoding:ee,isBuf:U,callback:R,next:null},oe?oe.next=j.lastBufferedRequest:j.bufferedRequest=j.lastBufferedRequest,j.bufferedRequestCount+=1}else C(M,j,!1,G,K,ee,R);return Q}function C(M,j,U,K,ee,R,I){j.writelen=K,j.writecb=I,j.writing=!0,j.sync=!0,j.destroyed?j.onwrite(new v("write")):U?M._writev(ee,j.onwrite):M._write(ee,R,j.onwrite),j.sync=!1}function D(M,j,U,K,ee){--j.pendingcb,U?(process.nextTick(ee,K),process.nextTick(N,M,j),M._writableState.errorEmitted=!0,y(M,K)):(ee(K),M._writableState.errorEmitted=!0,y(M,K),N(M,j))}function H(M){M.writing=!1,M.writecb=null,M.length-=M.writelen,M.writelen=0}function F(M,j){var U=M._writableState,K=U.sync,ee=U.writecb;if(typeof ee!="function")throw new h;if(H(U),j)D(M,U,K,j,ee);else{var R=k(U)||M.destroyed;!R&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&X(M,U),K?process.nextTick(z,M,U,R,ee):z(M,U,R,ee)}}function z(M,j,U,K){U||Z(M,j),j.pendingcb--,K(),N(M,j)}function Z(M,j){j.length===0&&j.needDrain&&(j.needDrain=!1,M.emit("drain"))}function X(M,j){j.bufferProcessing=!0;var U=j.bufferedRequest;if(M._writev&&U&&U.next){var K=j.bufferedRequestCount,ee=new Array(K),R=j.corkedRequestsFree;R.entry=U;for(var I=0,G=!0;U;)ee[I]=U,U.isBuf||(G=!1),U=U.next,I+=1;ee.allBuffers=G,C(M,j,!0,j.length,ee,"",R.finish),j.pendingcb++,j.lastBufferedRequest=null,R.next?(j.corkedRequestsFree=R.next,R.next=null):j.corkedRequestsFree=new e(j),j.bufferedRequestCount=0}else{for(;U;){var Q=U.chunk,oe=U.encoding,J=U.callback,le=j.objectMode?1:Q.length;if(C(M,j,!1,le,Q,oe,J),U=U.next,j.bufferedRequestCount--,j.writing)break}U===null&&(j.lastBufferedRequest=null)}j.bufferedRequest=U,j.bufferProcessing=!1}S.prototype._write=function(M,j,U){U(new f("_write()"))},S.prototype._writev=null,S.prototype.end=function(M,j,U){var K=this._writableState;return typeof M=="function"?(U=M,M=null,j=null):typeof j=="function"&&(U=j,j=null),M!=null&&this.write(M,j),K.corked&&(K.corked=1,this.uncork()),K.ending||L(this,K,U),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function k(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function re(M,j){M._final(function(U){j.pendingcb--,U&&y(M,U),j.prefinished=!0,M.emit("prefinish"),N(M,j)})}function q(M,j){!j.prefinished&&!j.finalCalled&&(typeof M._final=="function"&&!j.destroyed?(j.pendingcb++,j.finalCalled=!0,process.nextTick(re,M,j)):(j.prefinished=!0,M.emit("prefinish")))}function N(M,j){var U=k(j);if(U&&(q(M,j),j.pendingcb===0&&(j.finished=!0,M.emit("finish"),j.autoDestroy))){var K=M._readableState;(!K||K.autoDestroy&&K.endEmitted)&&M.destroy()}return U}function L(M,j,U){j.ending=!0,N(M,j),U&&(j.finished?process.nextTick(U):M.once("finish",U)),j.ended=!0,M.writable=!1}function $(M,j,U){var K=M.entry;for(M.entry=null;K;){var ee=K.callback;j.pendingcb--,ee(U),K=K.next}j.corkedRequestsFree.next=M}return Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(M,j){j(M)},T_}var A_,DM;function ii(){if(DM)return A_;DM=1;var e=Object.keys||function(u){var p=[];for(var l in u)p.push(l);return p};A_=s;var t=$N(),r=UN();mi()(s,t);for(var a=e(r.prototype),o=0;o<a.length;o++){var n=a[o];s.prototype[n]||(s.prototype[n]=r.prototype[n])}function s(u){if(!(this instanceof s))return new s(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",i)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function i(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),A_}var R_={},Wd={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var kM;function K3(){return kM||(kM=1,(function(e,t){var r=pp,a=r.Buffer;function o(s,i){for(var c in s)i[c]=s[c]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=n);function n(s,i,c){return a(s,i,c)}n.prototype=Object.create(a.prototype),o(a,n),n.from=function(s,i,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return a(s,i,c)},n.alloc=function(s,i,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=a(s);return i!==void 0?typeof c=="string"?u.fill(i,c):u.fill(i):u.fill(0),u},n.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return a(s)},n.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(Wd,Wd.exports)),Wd.exports}var LM;function UM(){if(LM)return R_;LM=1;var e=K3().Buffer,t=e.isEncoding||function(g){switch(g=""+g,g&&g.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(g){if(!g)return"utf8";for(var _;;)switch(g){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 g;default:if(_)return;g=(""+g).toLowerCase(),_=!0}}function a(g){var _=r(g);if(typeof _!="string"&&(e.isEncoding===t||!t(g)))throw new Error("Unknown encoding: "+g);return _||g}R_.StringDecoder=o;function o(g){this.encoding=a(g);var _;switch(this.encoding){case"utf16le":this.text=l,this.end=d,_=4;break;case"utf8":this.fillLast=c,_=4;break;case"base64":this.text=f,this.end=h,_=3;break;default:this.write=m,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(_)}o.prototype.write=function(g){if(g.length===0)return"";var _,b;if(this.lastNeed){if(_=this.fillLast(g),_===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<g.length?_?_+this.text(g,b):this.text(g,b):_||""},o.prototype.end=p,o.prototype.text=u,o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function n(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function s(g,_,b){var y=_.length-1;if(y<b)return 0;var E=n(_[y]);return E>=0?(E>0&&(g.lastNeed=E-1),E):--y<b||E===-2?0:(E=n(_[y]),E>=0?(E>0&&(g.lastNeed=E-2),E):--y<b||E===-2?0:(E=n(_[y]),E>=0?(E>0&&(E===2?E=0:g.lastNeed=E-3),E):0))}function i(g,_,b){if((_[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&_.length>1){if((_[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&_.length>2&&(_[2]&192)!==128)return g.lastNeed=2,"�"}}function c(g){var _=this.lastTotal-this.lastNeed,b=i(this,g);if(b!==void 0)return b;if(this.lastNeed<=g.length)return g.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,_,0,g.length),this.lastNeed-=g.length}function u(g,_){var b=s(this,g,_);if(!this.lastNeed)return g.toString("utf8",_);this.lastTotal=b;var y=g.length-(b-this.lastNeed);return g.copy(this.lastChar,0,y),g.toString("utf8",_,y)}function p(g){var _=g&&g.length?this.write(g):"";return this.lastNeed?_+"�":_}function l(g,_){if((g.length-_)%2===0){var b=g.toString("utf16le",_);if(b){var y=b.charCodeAt(b.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",_,g.length-1)}function d(g){var _=g&&g.length?this.write(g):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,b)}return _}function f(g,_){var b=(g.length-_)%3;return b===0?g.toString("base64",_):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",_,g.length-b))}function h(g){var _=g&&g.length?this.write(g):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function m(g){return g.toString(this.encoding)}function v(g){return g&&g.length?this.write(g):""}return R_}var M_,$M;function Ab(){if($M)return M_;$M=1;var e=vi().codes.ERR_STREAM_PREMATURE_CLOSE;function t(n){var s=!1;return function(){if(!s){s=!0;for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];n.apply(this,c)}}}function r(){}function a(n){return n.setHeader&&typeof n.abort=="function"}function o(n,s,i){if(typeof s=="function")return o(n,null,s);s||(s={}),i=t(i||r);var c=s.readable||s.readable!==!1&&n.readable,u=s.writable||s.writable!==!1&&n.writable,p=function(){n.writable||d()},l=n._writableState&&n._writableState.finished,d=function(){u=!1,l=!0,c||i.call(n)},f=n._readableState&&n._readableState.endEmitted,h=function(){c=!1,f=!0,u||i.call(n)},m=function(b){i.call(n,b)},v=function(){var b;if(c&&!f)return(!n._readableState||!n._readableState.ended)&&(b=new e),i.call(n,b);if(u&&!l)return(!n._writableState||!n._writableState.ended)&&(b=new e),i.call(n,b)},g=function(){n.req.on("finish",d)};return a(n)?(n.on("complete",d),n.on("abort",v),n.req?g():n.on("request",g)):u&&!n._writableState&&(n.on("end",p),n.on("close",p)),n.on("end",h),n.on("finish",d),s.error!==!1&&n.on("error",m),n.on("close",v),function(){n.removeListener("complete",d),n.removeListener("abort",v),n.removeListener("request",g),n.req&&n.req.removeListener("finish",d),n.removeListener("end",p),n.removeListener("close",p),n.removeListener("finish",d),n.removeListener("end",h),n.removeListener("error",m),n.removeListener("close",v)}}return M_=o,M_}var I_,zM;function Y3(){if(zM)return I_;zM=1;var e;function t(b,y,E){return y=r(y),y in b?Object.defineProperty(b,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):b[y]=E,b}function r(b){var y=a(b,"string");return typeof y=="symbol"?y:String(y)}function a(b,y){if(typeof b!="object"||b===null)return b;var E=b[Symbol.toPrimitive];if(E!==void 0){var x=E.call(b,y);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(b)}var o=Ab(),n=Symbol("lastResolve"),s=Symbol("lastReject"),i=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),p=Symbol("handlePromise"),l=Symbol("stream");function d(b,y){return{value:b,done:y}}function f(b){var y=b[n];if(y!==null){var E=b[l].read();E!==null&&(b[u]=null,b[n]=null,b[s]=null,y(d(E,!1)))}}function h(b){process.nextTick(f,b)}function m(b,y){return function(E,x){b.then(function(){if(y[c]){E(d(void 0,!0));return}y[p](E,x)},x)}}var v=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var y=this,E=this[i];if(E!==null)return Promise.reject(E);if(this[c])return Promise.resolve(d(void 0,!0));if(this[l].destroyed)return new Promise(function(w,T){process.nextTick(function(){y[i]?T(y[i]):w(d(void 0,!0))})});var x=this[u],O;if(x)O=new Promise(m(x,this));else{var S=this[l].read();if(S!==null)return Promise.resolve(d(S,!1));O=new Promise(this[p])}return this[u]=O,O}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var y=this;return new Promise(function(E,x){y[l].destroy(null,function(O){if(O){x(O);return}E(d(void 0,!0))})})}),e),v),_=function(y){var E,x=Object.create(g,(E={},t(E,l,{value:y,writable:!0}),t(E,n,{value:null,writable:!0}),t(E,s,{value:null,writable:!0}),t(E,i,{value:null,writable:!0}),t(E,c,{value:y._readableState.endEmitted,writable:!0}),t(E,p,{value:function(S,w){var T=x[l].read();T?(x[u]=null,x[n]=null,x[s]=null,S(d(T,!1))):(x[n]=S,x[s]=w)},writable:!0}),E));return x[u]=null,o(y,function(O){if(O&&O.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S=x[s];S!==null&&(x[u]=null,x[n]=null,x[s]=null,S(O)),x[i]=O;return}var w=x[n];w!==null&&(x[u]=null,x[n]=null,x[s]=null,w(d(void 0,!0))),x[c]=!0}),y.on("readable",h.bind(null,x)),x};return I_=_,I_}var C_,BM;function X3(){return BM||(BM=1,C_=function(){throw new Error("Readable.from is not available in the browser")}),C_}var j_,HM;function $N(){if(HM)return j_;HM=1,j_=w;var e;w.ReadableState=S,sg.EventEmitter;var t=function(I,G){return I.listeners(G).length},r=DN(),a=pp.Buffer,o=(typeof ut<"u"?ut:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(R){return a.from(R)}function s(R){return a.isBuffer(R)||R instanceof o}var i=si,c;i&&i.debuglog?c=i.debuglog("stream"):c=function(){};var u=W3(),p=kN(),l=LN(),d=l.getHighWaterMark,f=vi().codes,h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_STREAM_PUSH_AFTER_EOF,v=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_,b,y;mi()(w,r);var E=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function O(R,I,G){if(typeof R.prependListener=="function")return R.prependListener(I,G);!R._events||!R._events[I]?R.on(I,G):Array.isArray(R._events[I])?R._events[I].unshift(G):R._events[I]=[G,R._events[I]]}function S(R,I,G){e=e||ii(),R=R||{},typeof G!="boolean"&&(G=I instanceof e),this.objectMode=!!R.objectMode,G&&(this.objectMode=this.objectMode||!!R.readableObjectMode),this.highWaterMark=d(this,R,"readableHighWaterMark",G),this.buffer=new u,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=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.destroyed=!1,this.defaultEncoding=R.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,R.encoding&&(_||(_=UM().StringDecoder),this.decoder=new _(R.encoding),this.encoding=R.encoding)}function w(R){if(e=e||ii(),!(this instanceof w))return new w(R);var I=this instanceof e;this._readableState=new S(R,this,I),this.readable=!0,R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy)),r.call(this)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),w.prototype.destroy=p.destroy,w.prototype._undestroy=p.undestroy,w.prototype._destroy=function(R,I){I(R)},w.prototype.push=function(R,I){var G=this._readableState,Q;return G.objectMode?Q=!0:typeof R=="string"&&(I=I||G.defaultEncoding,I!==G.encoding&&(R=a.from(R,I),I=""),Q=!0),T(this,R,I,!1,Q)},w.prototype.unshift=function(R){return T(this,R,null,!0,!1)};function T(R,I,G,Q,oe){c("readableAddChunk",I);var J=R._readableState;if(I===null)J.reading=!1,F(R,J);else{var le;if(oe||(le=P(J,I)),le)E(R,le);else if(J.objectMode||I&&I.length>0)if(typeof I!="string"&&!J.objectMode&&Object.getPrototypeOf(I)!==a.prototype&&(I=n(I)),Q)J.endEmitted?E(R,new g):A(R,J,I,!0);else if(J.ended)E(R,new m);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!G?(I=J.decoder.write(I),J.objectMode||I.length!==0?A(R,J,I,!1):X(R,J)):A(R,J,I,!1)}else Q||(J.reading=!1,X(R,J))}return!J.ended&&(J.length<J.highWaterMark||J.length===0)}function A(R,I,G,Q){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,R.emit("data",G)):(I.length+=I.objectMode?1:G.length,Q?I.buffer.unshift(G):I.buffer.push(G),I.needReadable&&z(R)),X(R,I)}function P(R,I){var G;return!s(I)&&typeof I!="string"&&I!==void 0&&!R.objectMode&&(G=new h("chunk",["string","Buffer","Uint8Array"],I)),G}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(R){_||(_=UM().StringDecoder);var I=new _(R);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var G=this._readableState.buffer.head,Q="";G!==null;)Q+=I.write(G.data),G=G.next;return this._readableState.buffer.clear(),Q!==""&&this._readableState.buffer.push(Q),this._readableState.length=Q.length,this};var C=1073741824;function D(R){return R>=C?R=C:(R--,R|=R>>>1,R|=R>>>2,R|=R>>>4,R|=R>>>8,R|=R>>>16,R++),R}function H(R,I){return R<=0||I.length===0&&I.ended?0:I.objectMode?1:R!==R?I.flowing&&I.length?I.buffer.head.data.length:I.length:(R>I.highWaterMark&&(I.highWaterMark=D(R)),R<=I.length?R:I.ended?I.length:(I.needReadable=!0,0))}w.prototype.read=function(R){c("read",R),R=parseInt(R,10);var I=this._readableState,G=R;if(R!==0&&(I.emittedReadable=!1),R===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return c("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?U(this):z(this),null;if(R=H(R,I),R===0&&I.ended)return I.length===0&&U(this),null;var Q=I.needReadable;c("need readable",Q),(I.length===0||I.length-R<I.highWaterMark)&&(Q=!0,c("length less than watermark",Q)),I.ended||I.reading?(Q=!1,c("reading or ended",Q)):Q&&(c("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(R=H(G,I)));var oe;return R>0?oe=j(R,I):oe=null,oe===null?(I.needReadable=I.length<=I.highWaterMark,R=0):(I.length-=R,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),G!==R&&I.ended&&U(this)),oe!==null&&this.emit("data",oe),oe};function F(R,I){if(c("onEofChunk"),!I.ended){if(I.decoder){var G=I.decoder.end();G&&G.length&&(I.buffer.push(G),I.length+=I.objectMode?1:G.length)}I.ended=!0,I.sync?z(R):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,Z(R)))}}function z(R){var I=R._readableState;c("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(c("emitReadable",I.flowing),I.emittedReadable=!0,process.nextTick(Z,R))}function Z(R){var I=R._readableState;c("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(R.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,M(R)}function X(R,I){I.readingMore||(I.readingMore=!0,process.nextTick(k,R,I))}function k(R,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var G=I.length;if(c("maybeReadMore read 0"),R.read(0),G===I.length)break}I.readingMore=!1}w.prototype._read=function(R){E(this,new v("_read()"))},w.prototype.pipe=function(R,I){var G=this,Q=this._readableState;switch(Q.pipesCount){case 0:Q.pipes=R;break;case 1:Q.pipes=[Q.pipes,R];break;default:Q.pipes.push(R);break}Q.pipesCount+=1,c("pipe count=%d opts=%j",Q.pipesCount,I);var oe=(!I||I.end!==!1)&&R!==process.stdout&&R!==process.stderr,J=oe?_e:Ze;Q.endEmitted?process.nextTick(J):G.once("end",J),R.on("unpipe",le);function le(be,Ve){c("onunpipe"),be===G&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,Re())}function _e(){c("onend"),R.end()}var ye=re(G);R.on("drain",ye);var Pe=!1;function Re(){c("cleanup"),R.removeListener("close",me),R.removeListener("finish",je),R.removeListener("drain",ye),R.removeListener("error",Te),R.removeListener("unpipe",le),G.removeListener("end",_e),G.removeListener("end",Ze),G.removeListener("data",Ee),Pe=!0,Q.awaitDrain&&(!R._writableState||R._writableState.needDrain)&&ye()}G.on("data",Ee);function Ee(be){c("ondata");var Ve=R.write(be);c("dest.write",Ve),Ve===!1&&((Q.pipesCount===1&&Q.pipes===R||Q.pipesCount>1&&ee(Q.pipes,R)!==-1)&&!Pe&&(c("false write response, pause",Q.awaitDrain),Q.awaitDrain++),G.pause())}function Te(be){c("onerror",be),Ze(),R.removeListener("error",Te),t(R,"error")===0&&E(R,be)}O(R,"error",Te);function me(){R.removeListener("finish",je),Ze()}R.once("close",me);function je(){c("onfinish"),R.removeListener("close",me),Ze()}R.once("finish",je);function Ze(){c("unpipe"),G.unpipe(R)}return R.emit("pipe",G),Q.flowing||(c("pipe resume"),G.resume()),R};function re(R){return function(){var G=R._readableState;c("pipeOnDrain",G.awaitDrain),G.awaitDrain&&G.awaitDrain--,G.awaitDrain===0&&t(R,"data")&&(G.flowing=!0,M(R))}}w.prototype.unpipe=function(R){var I=this._readableState,G={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return R&&R!==I.pipes?this:(R||(R=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,R&&R.emit("unpipe",this,G),this);if(!R){var Q=I.pipes,oe=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var J=0;J<oe;J++)Q[J].emit("unpipe",this,{hasUnpiped:!1});return this}var le=ee(I.pipes,R);return le===-1?this:(I.pipes.splice(le,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),R.emit("unpipe",this,G),this)},w.prototype.on=function(R,I){var G=r.prototype.on.call(this,R,I),Q=this._readableState;return R==="data"?(Q.readableListening=this.listenerCount("readable")>0,Q.flowing!==!1&&this.resume()):R==="readable"&&!Q.endEmitted&&!Q.readableListening&&(Q.readableListening=Q.needReadable=!0,Q.flowing=!1,Q.emittedReadable=!1,c("on readable",Q.length,Q.reading),Q.length?z(this):Q.reading||process.nextTick(N,this)),G},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(R,I){var G=r.prototype.removeListener.call(this,R,I);return R==="readable"&&process.nextTick(q,this),G},w.prototype.removeAllListeners=function(R){var I=r.prototype.removeAllListeners.apply(this,arguments);return(R==="readable"||R===void 0)&&process.nextTick(q,this),I};function q(R){var I=R._readableState;I.readableListening=R.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:R.listenerCount("data")>0&&R.resume()}function N(R){c("readable nexttick read 0"),R.read(0)}w.prototype.resume=function(){var R=this._readableState;return R.flowing||(c("resume"),R.flowing=!R.readableListening,L(this,R)),R.paused=!1,this};function L(R,I){I.resumeScheduled||(I.resumeScheduled=!0,process.nextTick($,R,I))}function $(R,I){c("resume",I.reading),I.reading||R.read(0),I.resumeScheduled=!1,R.emit("resume"),M(R),I.flowing&&!I.reading&&R.read(0)}w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function M(R){var I=R._readableState;for(c("flow",I.flowing);I.flowing&&R.read()!==null;);}w.prototype.wrap=function(R){var I=this,G=this._readableState,Q=!1;R.on("end",function(){if(c("wrapped end"),G.decoder&&!G.ended){var le=G.decoder.end();le&&le.length&&I.push(le)}I.push(null)}),R.on("data",function(le){if(c("wrapped data"),G.decoder&&(le=G.decoder.write(le)),!(G.objectMode&&le==null)&&!(!G.objectMode&&(!le||!le.length))){var _e=I.push(le);_e||(Q=!0,R.pause())}});for(var oe in R)this[oe]===void 0&&typeof R[oe]=="function"&&(this[oe]=(function(_e){return function(){return R[_e].apply(R,arguments)}})(oe));for(var J=0;J<x.length;J++)R.on(x[J],this.emit.bind(this,x[J]));return this._read=function(le){c("wrapped _read",le),Q&&(Q=!1,R.resume())},this},typeof Symbol=="function"&&(w.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=Y3()),b(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I){this._readableState&&(this._readableState.flowing=I)}}),w._fromList=j,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function j(R,I){if(I.length===0)return null;var G;return I.objectMode?G=I.buffer.shift():!R||R>=I.length?(I.decoder?G=I.buffer.join(""):I.buffer.length===1?G=I.buffer.first():G=I.buffer.concat(I.length),I.buffer.clear()):G=I.buffer.consume(R,I.decoder),G}function U(R){var I=R._readableState;c("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,process.nextTick(K,I,R))}function K(R,I){if(c("endReadableNT",R.endEmitted,R.length),!R.endEmitted&&R.length===0&&(R.endEmitted=!0,I.readable=!1,I.emit("end"),R.autoDestroy)){var G=I._writableState;(!G||G.autoDestroy&&G.finished)&&I.destroy()}}typeof Symbol=="function"&&(w.from=function(R,I){return y===void 0&&(y=X3()),y(w,R,I)});function ee(R,I){for(var G=0,Q=R.length;G<Q;G++)if(R[G]===I)return G;return-1}return j_}var q_,VM;function zN(){if(VM)return q_;VM=1,q_=i;var e=vi().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,a=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,n=ii();mi()(i,n);function s(p,l){var d=this._transformState;d.transforming=!1;var f=d.writecb;if(f===null)return this.emit("error",new r);d.writechunk=null,d.writecb=null,l!=null&&this.push(l),f(p);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function i(p){if(!(this instanceof i))return new i(p);n.call(this,p),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function c(){var p=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(l,d){u(p,l,d)}):u(this,null,null)}i.prototype.push=function(p,l){return this._transformState.needTransform=!1,n.prototype.push.call(this,p,l)},i.prototype._transform=function(p,l,d){d(new t("_transform()"))},i.prototype._write=function(p,l,d){var f=this._transformState;if(f.writecb=d,f.writechunk=p,f.writeencoding=l,!f.transforming){var h=this._readableState;(f.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},i.prototype._read=function(p){var l=this._transformState;l.writechunk!==null&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},i.prototype._destroy=function(p,l){n.prototype._destroy.call(this,p,function(d){l(d)})};function u(p,l,d){if(l)return p.emit("error",l);if(d!=null&&p.push(d),p._writableState.length)throw new o;if(p._transformState.transforming)throw new a;return p.push(null)}return q_}var N_,GM;function Q3(){if(GM)return N_;GM=1,N_=t;var e=zN();mi()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,a,o){o(null,r)},N_}var F_,WM;function J3(){if(WM)return F_;WM=1;var e;function t(d){var f=!1;return function(){f||(f=!0,d.apply(void 0,arguments))}}var r=vi().codes,a=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function n(d){if(d)throw d}function s(d){return d.setHeader&&typeof d.abort=="function"}function i(d,f,h,m){m=t(m);var v=!1;d.on("close",function(){v=!0}),e===void 0&&(e=Ab()),e(d,{readable:f,writable:h},function(_){if(_)return m(_);v=!0,m()});var g=!1;return function(_){if(!v&&!g){if(g=!0,s(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();m(_||new o("pipe"))}}}function c(d){d()}function u(d,f){return d.pipe(f)}function p(d){return!d.length||typeof d[d.length-1]!="function"?n:d.pop()}function l(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var m=p(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new a("streams");var v,g=f.map(function(_,b){var y=b<f.length-1,E=b>0;return i(_,y,E,function(x){v||(v=x),x&&g.forEach(c),!y&&(g.forEach(c),m(v))})});return f.reduce(u)}return F_=l,F_}var ZM;function eZ(){return ZM||(ZM=1,(function(e,t){t=e.exports=$N(),t.Stream=t,t.Readable=t,t.Writable=UN(),t.Duplex=ii(),t.Transform=zN(),t.PassThrough=Q3(),t.finished=Ab(),t.pipeline=J3()})(Vd,Vd.exports)),Vd.exports}var D_,KM;function tZ(){if(KM)return D_;KM=1;var e=Object.prototype.toString,t=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function r(s){return e.call(s).slice(8,-1)==="ArrayBuffer"}function a(s,i,c){i>>>=0;var u=s.byteLength-i;if(u<0)throw new RangeError("'offset' is out of bounds");if(c===void 0)c=u;else if(c>>>=0,c>u)throw new RangeError("'length' is out of bounds");return t?Buffer.from(s.slice(i,i+c)):new Buffer(new Uint8Array(s.slice(i,i+c)))}function o(s,i){if((typeof i!="string"||i==="")&&(i="utf8"),!Buffer.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');return t?Buffer.from(s,i):new Buffer(s,i)}function n(s,i,c){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return r(s)?a(s,i,c):typeof s=="string"?o(s,i):t?Buffer.from(s):new Buffer(s)}return D_=n,D_}var k_={},YM;function rZ(){return YM||(YM=1,(function(e){var t=void 0,r=1e5,a=(function(){var k=Object.prototype.toString,re=Object.prototype.hasOwnProperty;return{Class:function(q){return k.call(q).replace(/^\[object *|\]$/g,"")},HasProperty:function(q,N){return N in q},HasOwnProperty:function(q,N){return re.call(q,N)},IsCallable:function(q){return typeof q=="function"},ToInt32:function(q){return q>>0},ToUint32:function(q){return q>>>0}}})(),o=Math.LN2,n=Math.abs,s=Math.floor,i=Math.log,c=Math.min,u=Math.pow,p=Math.round;function l(k){if(f&&d){var re=f(k),q;for(q=0;q<re.length;q+=1)d(k,re[q],{value:k[re[q]],writable:!1,enumerable:!1,configurable:!1})}}var d;Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}})()?d=Object.defineProperty:d=function(k,re,q){if(!k===Object(k))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(q,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(k,re,q.get),a.HasProperty(q,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(k,re,q.set),a.HasProperty(q,"value")&&(k[re]=q.value),k};var f=Object.getOwnPropertyNames||function(k){if(k!==Object(k))throw new TypeError("Object.getOwnPropertyNames called on non-object");var re=[],q;for(q in k)a.HasOwnProperty(k,q)&&re.push(q);return re};function h(k){if(!d)return;if(k.length>r)throw new RangeError("Array too large for polyfill");function re(N){d(k,N,{get:function(){return k._getter(N)},set:function(L){k._setter(N,L)},enumerable:!0,configurable:!1})}var q;for(q=0;q<k.length;q+=1)re(q)}function m(k,re){var q=32-re;return k<<q>>q}function v(k,re){var q=32-re;return k<<q>>>q}function g(k){return[k&255]}function _(k){return m(k[0],8)}function b(k){return[k&255]}function y(k){return v(k[0],8)}function E(k){return k=p(Number(k)),[k<0?0:k>255?255:k&255]}function x(k){return[k>>8&255,k&255]}function O(k){return m(k[0]<<8|k[1],16)}function S(k){return[k>>8&255,k&255]}function w(k){return v(k[0]<<8|k[1],16)}function T(k){return[k>>24&255,k>>16&255,k>>8&255,k&255]}function A(k){return m(k[0]<<24|k[1]<<16|k[2]<<8|k[3],32)}function P(k){return[k>>24&255,k>>16&255,k>>8&255,k&255]}function C(k){return v(k[0]<<24|k[1]<<16|k[2]<<8|k[3],32)}function D(k,re,q){var N=(1<<re-1)-1,L,$,M,j,U,K,ee;function R(I){var G=s(I),Q=I-G;return Q<.5?G:Q>.5||G%2?G+1:G}for(k!==k?($=(1<<re)-1,M=u(2,q-1),L=0):k===1/0||k===-1/0?($=(1<<re)-1,M=0,L=k<0?1:0):k===0?($=0,M=0,L=1/k===-1/0?1:0):(L=k<0,k=n(k),k>=u(2,1-N)?($=c(s(i(k)/o),1023),M=R(k/u(2,$)*u(2,q)),M/u(2,q)>=2&&($=$+1,M=1),$>N?($=(1<<re)-1,M=0):($=$+N,M=M-u(2,q))):($=0,M=R(k/u(2,1-N-q)))),U=[],j=q;j;j-=1)U.push(M%2?1:0),M=s(M/2);for(j=re;j;j-=1)U.push($%2?1:0),$=s($/2);for(U.push(L?1:0),U.reverse(),K=U.join(""),ee=[];K.length;)ee.push(parseInt(K.substring(0,8),2)),K=K.substring(8);return ee}function H(k,re,q){var N=[],L,$,M,j,U,K,ee,R;for(L=k.length;L;L-=1)for(M=k[L-1],$=8;$;$-=1)N.push(M%2?1:0),M=M>>1;return N.reverse(),j=N.join(""),U=(1<<re-1)-1,K=parseInt(j.substring(0,1),2)?-1:1,ee=parseInt(j.substring(1,1+re),2),R=parseInt(j.substring(1+re),2),ee===(1<<re)-1?R!==0?NaN:K*(1/0):ee>0?K*u(2,ee-U)*(1+R/u(2,q)):R!==0?K*u(2,-(U-1))*(R/u(2,q)):K<0?-0:0}function F(k){return H(k,11,52)}function z(k){return D(k,11,52)}function Z(k){return H(k,8,23)}function X(k){return D(k,8,23)}(function(){var k=function(G){if(G=a.ToInt32(G),G<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=G,this._bytes=[],this._bytes.length=G;var Q;for(Q=0;Q<this.byteLength;Q+=1)this._bytes[Q]=0;l(this)};e.ArrayBuffer=e.ArrayBuffer||k;var re=function(){};function q(I,G,Q){var oe;return oe=function(J,le,_e){var ye,Pe,Re,Ee;if(!arguments.length||typeof arguments[0]=="number"){if(this.length=a.ToInt32(arguments[0]),_e<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new k(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]=="object"&&arguments[0].constructor===oe)for(ye=arguments[0],this.length=ye.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new k(this.byteLength),this.byteOffset=0,Re=0;Re<this.length;Re+=1)this._setter(Re,ye._getter(Re));else if(typeof arguments[0]=="object"&&!(arguments[0]instanceof k||a.Class(arguments[0])==="ArrayBuffer"))for(Pe=arguments[0],this.length=a.ToUint32(Pe.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new k(this.byteLength),this.byteOffset=0,Re=0;Re<this.length;Re+=1)Ee=Pe[Re],this._setter(Re,Number(Ee));else if(typeof arguments[0]=="object"&&(arguments[0]instanceof k||a.Class(arguments[0])==="ArrayBuffer")){if(this.buffer=J,this.byteOffset=a.ToUint32(le),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new 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 new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(_e),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=oe,l(this),h(this)},oe.prototype=new re,oe.prototype.BYTES_PER_ELEMENT=I,oe.prototype._pack=G,oe.prototype._unpack=Q,oe.BYTES_PER_ELEMENT=I,oe.prototype._getter=function(J){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(J=a.ToUint32(J),J>=this.length)return t;var le=[],_e,ye;for(_e=0,ye=this.byteOffset+J*this.BYTES_PER_ELEMENT;_e<this.BYTES_PER_ELEMENT;_e+=1,ye+=1)le.push(this.buffer._bytes[ye]);return this._unpack(le)},oe.prototype.get=oe.prototype._getter,oe.prototype._setter=function(J,le){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if(J=a.ToUint32(J),J>=this.length)return t;var _e=this._pack(le),ye,Pe;for(ye=0,Pe=this.byteOffset+J*this.BYTES_PER_ELEMENT;ye<this.BYTES_PER_ELEMENT;ye+=1,Pe+=1)this.buffer._bytes[Pe]=_e[ye]},oe.prototype.set=function(J,le){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var _e,ye,Pe,Re,Ee,Te,me,je,Ze,be;if(typeof arguments[0]=="object"&&arguments[0].constructor===this.constructor){if(_e=arguments[0],Pe=a.ToUint32(arguments[1]),Pe+_e.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(je=this.byteOffset+Pe*this.BYTES_PER_ELEMENT,Ze=_e.length*this.BYTES_PER_ELEMENT,_e.buffer===this.buffer){for(be=[],Ee=0,Te=_e.byteOffset;Ee<Ze;Ee+=1,Te+=1)be[Ee]=_e.buffer._bytes[Te];for(Ee=0,me=je;Ee<Ze;Ee+=1,me+=1)this.buffer._bytes[me]=be[Ee]}else for(Ee=0,Te=_e.byteOffset,me=je;Ee<Ze;Ee+=1,Te+=1,me+=1)this.buffer._bytes[me]=_e.buffer._bytes[Te]}else if(typeof arguments[0]=="object"&&typeof arguments[0].length<"u"){if(ye=arguments[0],Re=a.ToUint32(ye.length),Pe=a.ToUint32(arguments[1]),Pe+Re>this.length)throw new RangeError("Offset plus length of array is out of range");for(Ee=0;Ee<Re;Ee+=1)Te=ye[Ee],this._setter(Pe+Ee,Number(Te))}else throw new TypeError("Unexpected argument type(s)")},oe.prototype.subarray=function(J,le){function _e(Pe,Re,Ee){return Pe<Re?Re:Pe>Ee?Ee:Pe}J=a.ToInt32(J),le=a.ToInt32(le),arguments.length<1&&(J=0),arguments.length<2&&(le=this.length),J<0&&(J=this.length+J),le<0&&(le=this.length+le),J=_e(J,0,this.length),le=_e(le,0,this.length);var ye=le-J;return ye<0&&(ye=0),new this.constructor(this.buffer,this.byteOffset+J*this.BYTES_PER_ELEMENT,ye)},oe}var N=q(1,g,_),L=q(1,b,y),$=q(1,E,y),M=q(2,x,O),j=q(2,S,w),U=q(4,T,A),K=q(4,P,C),ee=q(4,X,Z),R=q(8,z,F);e.Int8Array=e.Int8Array||N,e.Uint8Array=e.Uint8Array||L,e.Uint8ClampedArray=e.Uint8ClampedArray||$,e.Int16Array=e.Int16Array||M,e.Uint16Array=e.Uint16Array||j,e.Int32Array=e.Int32Array||U,e.Uint32Array=e.Uint32Array||K,e.Float32Array=e.Float32Array||ee,e.Float64Array=e.Float64Array||R})(),(function(){function k($,M){return a.IsCallable($.get)?$.get(M):$[M]}var re=(function(){var $=new e.Uint16Array([4660]),M=new e.Uint8Array($.buffer);return k(M,0)===18})(),q=function(M,j,U){if(arguments.length===0)M=new e.ArrayBuffer(0);else if(!(M instanceof e.ArrayBuffer||a.Class(M)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=M||new e.ArrayBuffer(0),this.byteOffset=a.ToUint32(j),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=a.ToUint32(U),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");l(this)};function N($){return function(M,j){if(M=a.ToUint32(M),M+$.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");M+=this.byteOffset;var U=new e.Uint8Array(this.buffer,M,$.BYTES_PER_ELEMENT),K=[],ee;for(ee=0;ee<$.BYTES_PER_ELEMENT;ee+=1)K.push(k(U,ee));return!!j==!!re&&K.reverse(),k(new $(new e.Uint8Array(K).buffer),0)}}q.prototype.getUint8=N(e.Uint8Array),q.prototype.getInt8=N(e.Int8Array),q.prototype.getUint16=N(e.Uint16Array),q.prototype.getInt16=N(e.Int16Array),q.prototype.getUint32=N(e.Uint32Array),q.prototype.getInt32=N(e.Int32Array),q.prototype.getFloat32=N(e.Float32Array),q.prototype.getFloat64=N(e.Float64Array);function L($){return function(M,j,U){if(M=a.ToUint32(M),M+$.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var K=new $([j]),ee=new e.Uint8Array(K.buffer),R=[],I,G;for(I=0;I<$.BYTES_PER_ELEMENT;I+=1)R.push(k(ee,I));!!U==!!re&&R.reverse(),G=new e.Uint8Array(this.buffer,M,$.BYTES_PER_ELEMENT),G.set(R)}}q.prototype.setUint8=L(e.Uint8Array),q.prototype.setInt8=L(e.Int8Array),q.prototype.setUint16=L(e.Uint16Array),q.prototype.setInt16=L(e.Int16Array),q.prototype.setUint32=L(e.Uint32Array),q.prototype.setInt32=L(e.Int32Array),q.prototype.setFloat32=L(e.Float32Array),q.prototype.setFloat64=L(e.Float64Array),e.DataView=e.DataView||q})()})(k_)),k_}var L_,XM;function nZ(){if(XM)return L_;XM=1;var e=eZ().Writable,t=mi(),r=tZ();if(typeof Uint8Array>"u")var a=rZ().Uint8Array;else var a=Uint8Array;function o(l,d){if(!(this instanceof o))return new o(l,d);typeof l=="function"&&(d=l,l={}),l||(l={});var f=l.encoding,h=!1;f?(f=String(f).toLowerCase(),(f==="u8"||f==="uint8")&&(f="uint8array")):h=!0,e.call(this,{objectMode:!0}),this.encoding=f,this.shouldInferEncoding=h,d&&this.on("finish",function(){d(this.getBody())}),this.body=[]}L_=o,t(o,e),o.prototype._write=function(l,d,f){this.body.push(l),f()},o.prototype.inferEncoding=function(l){var d=l===void 0?this.body[0]:l;return Buffer.isBuffer(d)?"buffer":typeof Uint8Array<"u"&&d instanceof Uint8Array?"uint8array":Array.isArray(d)?"array":typeof d=="string"?"string":Object.prototype.toString.call(d)==="[object Object]"?"object":"buffer"},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?u(this.body):this.encoding==="string"?i(this.body):this.encoding==="buffer"?c(this.body):this.encoding==="uint8array"?p(this.body):this.body)};function n(l){return/Array\]$/.test(Object.prototype.toString.call(l))}function s(l){return typeof l=="string"||n(l)||l&&typeof l.subarray=="function"}function i(l){for(var d=[],f=0;f<l.length;f++){var h=l[f];typeof h=="string"||Buffer.isBuffer(h)?d.push(h):s(h)?d.push(r(h)):d.push(r(String(h)))}return Buffer.isBuffer(l[0])?(d=Buffer.concat(d),d=d.toString("utf8")):d=d.join(""),d}function c(l){for(var d=[],f=0;f<l.length;f++){var h=l[f];Buffer.isBuffer(h)?d.push(h):s(h)?d.push(r(h)):d.push(r(String(h)))}return Buffer.concat(d)}function u(l){for(var d=[],f=0;f<l.length;f++)d.push.apply(d,l[f]);return d}function p(l){for(var d=0,f=0;f<l.length;f++)typeof l[f]=="string"&&(l[f]=r(l[f])),d+=l[f].length;for(var h=new a(d),f=0,m=0;f<l.length;f++)for(var v=l[f],g=0;g<v.length;g++)h[m++]=v[g];return h}return L_}var U_,QM;function iZ(){if(QM)return U_;QM=1;var e=nZ();function t(r){}return t.prototype._handleFile=function(a,o,n){o.stream.pipe(e({encoding:"buffer"},function(s){n(null,{buffer:s,size:s.length})}))},t.prototype._removeFile=function(a,o,n){delete o.buffer,n(null)},U_=function(r){return new t},U_}var JM;function Ul(){if(JM)return Xn.exports;JM=1;var e=H3(),t=G3(),r=iZ(),a=FN();function o(i,c,u){u(null,!0)}function n(i){i.storage?this.storage=i.storage:i.dest?this.storage=t({destination:i.dest}):this.storage=r(),this.limits=i.limits,this.preservePath=i.preservePath,this.fileFilter=i.fileFilter||o}n.prototype._makeMiddleware=function(i,c){function u(){var p=this.fileFilter,l=Object.create(null);i.forEach(function(f){typeof f.maxCount=="number"?l[f.name]=f.maxCount:l[f.name]=1/0});function d(f,h,m){if((l[h.fieldname]||0)<=0)return m(new a("LIMIT_UNEXPECTED_FILE",h.fieldname));l[h.fieldname]-=1,p(f,h,m)}return{limits:this.limits,preservePath:this.preservePath,storage:this.storage,fileFilter:d,fileStrategy:c}}return e(u.bind(this))},n.prototype.single=function(i){return this._makeMiddleware([{name:i,maxCount:1}],"VALUE")},n.prototype.array=function(i,c){return this._makeMiddleware([{name:i,maxCount:c}],"ARRAY")},n.prototype.fields=function(i){return this._makeMiddleware(i,"OBJECT")},n.prototype.none=function(){return this._makeMiddleware([],"NONE")},n.prototype.any=function(){function i(){return{limits:this.limits,preservePath:this.preservePath,storage:this.storage,fileFilter:this.fileFilter,fileStrategy:"ARRAY"}}return e(i.bind(this))};function s(i){if(i===void 0)return new n({});if(typeof i=="object"&&i!==null)return new n(i);throw new TypeError("Expected object for argument options")}return Xn.exports=s,Xn.exports.diskStorage=t,Xn.exports.memoryStorage=r,Xn.exports.MulterError=a,Xn.exports}var Zu={},eI;function _i(){return eI||(eI=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.MULTER_MODULE_OPTIONS=void 0,Zu.MULTER_MODULE_OPTIONS="MULTER_MODULE_OPTIONS"),Zu}var Zd={},sn={},tI;function aZ(){return tI||(tI=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.busboyExceptions=sn.multerExceptions=void 0,sn.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"},sn.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"}),sn}var rI;function $l(){if(rI)return Zd;rI=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.transformException=r;const e=ve(),t=aZ();function r(a){if(!a||a instanceof e.HttpException)return a;switch(a.message){case t.multerExceptions.LIMIT_FILE_SIZE:return new e.PayloadTooLargeException(a.message);case t.multerExceptions.LIMIT_FILE_COUNT:case t.multerExceptions.LIMIT_FIELD_KEY:case t.multerExceptions.LIMIT_FIELD_VALUE:case t.multerExceptions.LIMIT_FIELD_COUNT:case t.multerExceptions.LIMIT_UNEXPECTED_FILE:case t.multerExceptions.LIMIT_PART_COUNT:case t.multerExceptions.MISSING_FIELD_NAME:return a.field?new e.BadRequestException(`${a.message} - ${a.field}`):new e.BadRequestException(a.message);case t.busboyExceptions.MULTIPART_BOUNDARY_NOT_FOUND:return new e.BadRequestException(a.message);case t.busboyExceptions.MULTIPART_MALFORMED_PART_HEADER:case t.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FORM:case t.busboyExceptions.MULTIPART_UNEXPECTED_END_OF_FILE:return new e.BadRequestException(`Multipart: ${a.message}`)}return a}return Zd}var nI;function oZ(){if(nI)return Bd;nI=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.AnyFilesInterceptor=n;const e=ae(),t=ve(),r=Ul(),a=_i(),o=$l();function n(s){let i=class{constructor(p={}){this.multer=r({...p,...s})}async intercept(p,l){const d=p.switchToHttp();return await new Promise((f,h)=>this.multer.any()(d.getRequest(),d.getResponse(),m=>{if(m){const v=(0,o.transformException)(m);return h(v)}f()})),l.handle()}};return i=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(a.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],i),(0,t.mixin)(i)}return Bd}var Kd={},iI;function sZ(){if(iI)return Kd;iI=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.FileFieldsInterceptor=n;const e=ae(),t=ve(),r=Ul(),a=_i(),o=$l();function n(s,i){let c=class{constructor(l={}){this.multer=r({...l,...i})}async intercept(l,d){const f=l.switchToHttp();return await new Promise((h,m)=>this.multer.fields(s)(f.getRequest(),f.getResponse(),v=>{if(v){const g=(0,o.transformException)(v);return m(g)}h()})),d.handle()}};return c=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(a.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],c),(0,t.mixin)(c)}return Kd}var Yd={},aI;function cZ(){if(aI)return Yd;aI=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.FileInterceptor=n;const e=ae(),t=ve(),r=Ul(),a=_i(),o=$l();function n(s,i){let c=class{constructor(l={}){this.multer=r({...l,...i})}async intercept(l,d){const f=l.switchToHttp();return await new Promise((h,m)=>this.multer.single(s)(f.getRequest(),f.getResponse(),v=>{if(v){const g=(0,o.transformException)(v);return m(g)}h()})),d.handle()}};return c=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(a.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],c),(0,t.mixin)(c)}return Yd}var Xd={},oI;function uZ(){if(oI)return Xd;oI=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.FilesInterceptor=n;const e=ae(),t=ve(),r=Ul(),a=_i(),o=$l();function n(s,i,c){let u=class{constructor(d={}){this.multer=r({...d,...c})}async intercept(d,f){const h=d.switchToHttp();return await new Promise((m,v)=>this.multer.array(s,i)(h.getRequest(),h.getResponse(),g=>{if(g){const _=(0,o.transformException)(g);return v(_)}m()})),f.handle()}};return u=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(a.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],u),(0,t.mixin)(u)}return Xd}var Qd={},sI;function lZ(){if(sI)return Qd;sI=1,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.NoFilesInterceptor=n;const e=ae(),t=ve(),r=Ul(),a=_i(),o=$l();function n(s){let i=class{constructor(p={}){this.multer=r({...p,...s})}async intercept(p,l){const d=p.switchToHttp();return await new Promise((f,h)=>this.multer.none()(d.getRequest(),d.getResponse(),m=>{if(m){const v=(0,o.transformException)(m);return h(v)}f()})),l.handle()}};return i=e.__decorate([e.__param(0,(0,t.Optional)()),e.__param(0,(0,t.Inject)(a.MULTER_MODULE_OPTIONS)),e.__metadata("design:paramtypes",[Object])],i),(0,t.mixin)(i)}return Qd}var cI;function dZ(){return cI||(cI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(oZ(),e),t.__exportStar(sZ(),e),t.__exportStar(cZ(),e),t.__exportStar(uZ(),e),t.__exportStar(lZ(),e)})(r_)),r_}var $_={},z_={},uI;function pZ(){return uI||(uI=1,Object.defineProperty(z_,"__esModule",{value:!0})),z_}var lI;function fZ(){return lI||(lI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(pZ(),e)})($_)),$_}var Qn={},Ku={},dI;function hZ(){return dI||(dI=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.MULTER_MODULE_ID=void 0,Ku.MULTER_MODULE_ID="MULTER_MODULE_ID"),Ku}var pI;function vZ(){if(pI)return Qn;pI=1;var e;Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.MulterModule=void 0;const t=ae(),r=ve(),a=ir(),o=_i(),n=hZ();let s=e=class{static register(c={}){return{module:e,providers:[{provide:o.MULTER_MODULE_OPTIONS,useFactory:()=>c},{provide:n.MULTER_MODULE_ID,useValue:(0,a.randomStringGenerator)()}],exports:[o.MULTER_MODULE_OPTIONS]}}static registerAsync(c){return{module:e,imports:c.imports,providers:[...this.createAsyncProviders(c),{provide:n.MULTER_MODULE_ID,useValue:(0,a.randomStringGenerator)()}],exports:[o.MULTER_MODULE_OPTIONS]}}static createAsyncProviders(c){return c.useExisting||c.useFactory?[this.createAsyncOptionsProvider(c)]:[this.createAsyncOptionsProvider(c),{provide:c.useClass,useClass:c.useClass}]}static createAsyncOptionsProvider(c){return c.useFactory?{provide:o.MULTER_MODULE_OPTIONS,useFactory:c.useFactory,inject:c.inject||[]}:{provide:o.MULTER_MODULE_OPTIONS,useFactory:async u=>u.createMulterOptions(),inject:[c.useExisting||c.useClass]}}};return Qn.MulterModule=s,Qn.MulterModule=s=e=t.__decorate([(0,r.Module)({})],s),Qn}var fI;function mZ(){return fI||(fI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(dZ(),e),t.__exportStar(fZ(),e),t.__exportStar(vZ(),e)})(t_)),t_}var hI;function BN(){return hI||(hI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(w3(),e),t.__exportStar(T3(),e),t.__exportStar(mZ(),e)})(Zm)),Zm}var vI;function HN(){if(vI)return an;vI=1,Object.defineProperty(an,"__esModule",{value:!0}),an.NestFactory=an.NestFactoryStatic=void 0;const e=dg(),t=wt(),r=bl(),a=ne(),o=pr(),n=pi(),s=l3(),i=d3(),c=p3(),u=xb(),p=hi(),l=Pb(),d=Lp(),f=jN(),h=Fl(),m=On(),v=Sb(),g=Ob(),_=qN();class b{constructor(){this.logger=new t.Logger("NestFactory",{timestamp:!0}),this.abortOnError=!0,this.autoFlushLogs=!1}async create(E,x,O){const[S,w]=this.isHttpServer(x)?[x,O]:[this.createHttpAdapter(),x],T=new o.ApplicationConfig,A=new u.NestContainer(T,w),P=this.createGraphInspector(w,A);this.setAbortOnError(x,O),this.registerLoggerConfiguration(w),await this.initialize(E,A,P,T,w,S);const C=new v.NestApplication(A,S,T,P,w),D=this.createNestInstance(C);return this.createAdapterProxy(D,S)}async createMicroservice(E,x){const{NestMicroservice:O}=(0,r.loadPackage)("@nestjs/microservices","NestFactory",()=>CN),S=new o.ApplicationConfig,w=new u.NestContainer(S,x),T=this.createGraphInspector(x,w);return this.setAbortOnError(x),this.registerLoggerConfiguration(x),await this.initialize(E,w,T,S,x),this.createNestInstance(new O(w,x,T,S))}async createApplicationContext(E,x){const O=new o.ApplicationConfig,S=new u.NestContainer(O,x),w=this.createGraphInspector(x,S);this.setAbortOnError(x),this.registerLoggerConfiguration(x),await this.initialize(E,S,w,O,x);const A=S.getModules().values().next().value,P=this.createNestInstance(new g.NestApplicationContext(S,x,A));return this.autoFlushLogs&&P.flushLogsOnOverride(),P.init()}createNestInstance(E){return this.createProxy(E)}async initialize(E,x,O,S=new o.ApplicationConfig,w={},T=null){h.UuidFactory.mode=w.snapshot?h.UuidFactoryMode.Deterministic:h.UuidFactoryMode.Random;const A=new p.Injector({preview:w.preview,instanceDecorator:w.instrument?.instanceDecorator}),P=new l.InstanceLoader(x,A,O),C=new m.MetadataScanner,D=new _.DependenciesScanner(x,C,O,S);x.setHttpAdapter(T);const H=this.abortOnError===!1?c.rethrow:void 0;await T?.init?.();try{this.logger.log(n.MESSAGES.APPLICATION_START),await s.ExceptionsZone.asyncRun(async()=>{await D.scan(E),await P.createInstancesOfDependencies(),D.applyApplicationProviders()},H,this.autoFlushLogs)}catch(F){this.handleInitializationError(F)}}handleInitializationError(E){this.abortOnError&&process.abort(),(0,c.rethrow)(E)}createProxy(E){const x=this.createExceptionProxy();return new Proxy(E,{get:x,set:x})}createExceptionProxy(){return(E,x)=>{if(x in E)return(0,a.isFunction)(E[x])?this.createExceptionZone(E,x):E[x]}}createExceptionZone(E,x){const O=this.abortOnError===!1?c.rethrow:void 0;return(...S)=>{let w;return s.ExceptionsZone.run(()=>{w=E[x](...S)},O,this.autoFlushLogs),w}}registerLoggerConfiguration(E){if(!E)return;const{logger:x,bufferLogs:O,autoFlushLogs:S,forceConsole:w}=E;if(x!==!0&&!(0,a.isNil)(x))t.Logger.overrideLogger(x);else if(w){const T=new e.ConsoleLogger({forceConsole:!0});t.Logger.overrideLogger(T)}O&&t.Logger.attachBuffer(),this.autoFlushLogs=S??!0}createHttpAdapter(E){const{ExpressAdapter:x}=(0,i.loadAdapter)("@nestjs/platform-express","HTTP",()=>BN());return new x(E)}isHttpServer(E){return!!(E&&E.patch)}setAbortOnError(E,x){this.abortOnError=this.isHttpServer(E)?!(x&&x.abortOnError===!1):!(E&&E.abortOnError===!1)}createAdapterProxy(E,x){const O=new Proxy(E,{get:(S,w)=>{const T=A=>A instanceof Promise?A.then(T):A instanceof v.NestApplication?O:A;return!(w in S)&&w in x?(...A)=>{const P=this.createExceptionZone(x,w)(...A);return T(P)}:(0,a.isFunction)(S[w])?(...A)=>{const P=S[w](...A);return T(P)}:S[w]}});return O}createGraphInspector(E,x){return E?.snapshot?new d.GraphInspector(x):f.NoopGraphInspector}}return an.NestFactoryStatic=b,an.NestFactory=new b,an}var B_={},Jd={},ep={},mI;function _Z(){if(mI)return ep;mI=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.assignToObject=e;function e(t,r){return Object.defineProperties(t,Object.keys(r).reduce((a,o)=>(a[o]=Object.getOwnPropertyDescriptor(r,o),a),Object.create(null))),t}return ep}var Yu={},_I;function gZ(){return _I||(_I=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.REPL_INITIALIZED_MESSAGE=void 0,Yu.REPL_INITIALIZED_MESSAGE="REPL initialized"),Yu}var Xu={},H_={},Qu={},Ju={},gI;function gi(){if(gI)return Ju;gI=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.ReplFunction=void 0;const e=nr();class t{constructor(a){this.ctx=a,this.logger=a.logger}makeHelpMessage(){const{description:a,name:o,signature:n}=this.fnDefinition,s=`${o}${n}`;return`${e.clc.yellow(a)}
|
|
151
|
+
${e.clc.magentaBright("Interface:")} ${e.clc.bold(s)}
|
|
152
|
+
`}}return Ju.ReplFunction=t,Ju}var bI;function bZ(){if(bI)return Qu;bI=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.HelpReplFn=void 0;const e=He(),t=nr(),r=gi();class a extends r.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"help",signature:"() => void",description:"Display all available REPL native functions."}}action(){const n=(0,e.iterate)(this.ctx.nativeFunctions).map(([,s])=>s.fnDefinition).toArray().sort((s,i)=>s.name<i.name?-1:1);this.ctx.writeToStdout(`You can call ${t.clc.bold(".help")} on any function listed below (e.g.: ${t.clc.bold("help.help")}):
|
|
153
|
+
|
|
154
|
+
`+n.map(a.buildHelpMessage).join(`
|
|
155
|
+
`)+`
|
|
156
|
+
`)}}return Qu.HelpReplFn=a,a.buildHelpMessage=({name:o,description:n})=>t.clc.cyanBright(o)+(n?` ${t.clc.bold("-")} ${n}`:""),Qu}var el={},yI;function yZ(){if(yI)return el;yI=1,Object.defineProperty(el,"__esModule",{value:!0}),el.GetReplFn=void 0;const e=gi();class t extends e.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(a){return this.ctx.app.get(a)}}return el.GetReplFn=t,el}var tl={},EI;function EZ(){if(EI)return tl;EI=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.ResolveReplFn=void 0;const e=gi();class t extends e.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(a,o){return this.ctx.app.resolve(a,o)}}return tl.ResolveReplFn=t,tl}var rl={},xI;function xZ(){if(xI)return rl;xI=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.SelectReplFn=void 0;const e=gi();class t extends e.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(a){return this.ctx.app.select(a)}}return rl.SelectReplFn=t,rl}var nl={},OI;function OZ(){if(OI)return nl;OI=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.DebugReplFn=void 0;const e=nr(),t=gi();class r extends t.ReplFunction{constructor(){super(...arguments),this.fnDefinition={name:"debug",description:`Print all registered modules as a list together with their controllers and providers.
|
|
157
|
+
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(o){if(this.ctx.writeToStdout(`
|
|
158
|
+
`),o){const n=typeof o=="function"?o.name:o,s=this.ctx.debugRegistry[n];if(!s)return this.logger.error(`"${n}" has not been found in the modules registry`);this.printCtrlsAndProviders(n,s)}else Object.keys(this.ctx.debugRegistry).forEach(n=>{this.printCtrlsAndProviders(n,this.ctx.debugRegistry[n])});this.ctx.writeToStdout(`
|
|
159
|
+
`)}printCtrlsAndProviders(o,n){this.ctx.writeToStdout(`${e.clc.green(o)}:
|
|
160
|
+
`),this.printCollection("controllers",n.controllers),this.printCollection("providers",n.providers)}printCollection(o,n){const s=Object.keys(n);s.length<=0||(this.ctx.writeToStdout(` ${e.clc.yellow(`- ${o}`)}:
|
|
161
|
+
`),s.forEach(i=>this.ctx.writeToStdout(` ${e.clc.green("◻")} ${i}
|
|
162
|
+
`)))}}return nl.DebugReplFn=r,nl}var il={},wI;function wZ(){if(wI)return il;wI=1,Object.defineProperty(il,"__esModule",{value:!0}),il.MethodsReplFn=void 0;const e=nr(),t=On(),r=gi();class a 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 t.MetadataScanner}action(n){const s=typeof n!="function"?Object.getPrototypeOf(this.ctx.app.get(n)):n?.prototype,i=this.metadataScanner.getAllMethodNames(s);this.ctx.writeToStdout(`
|
|
163
|
+
`),this.ctx.writeToStdout(`${e.clc.green("Methods")}:
|
|
164
|
+
`),i.forEach(c=>this.ctx.writeToStdout(` ${e.clc.yellow("◻")} ${c}
|
|
165
|
+
`)),this.ctx.writeToStdout(`
|
|
166
|
+
`)}}return il.MethodsReplFn=a,il}var SI;function SZ(){return SI||(SI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(bZ(),e),t.__exportStar(yZ(),e),t.__exportStar(EZ(),e),t.__exportStar(xZ(),e),t.__exportStar(OZ(),e),t.__exportStar(wZ(),e)})(H_)),H_}var PI;function PZ(){if(PI)return Xu;PI=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.ReplContext=void 0;const e=ve(),t=pr(),r=gN(),a=kp(),o=SZ();class n{constructor(i,c){this.app=i,this.logger=new e.Logger(n.name),this.debugRegistry={},this.globalScope=Object.create(null),this.nativeFunctions=new Map,this.container=i.container,this.initializeContext(),this.initializeNativeFunctions(c||[])}writeToStdout(i){process.stdout.write(i)}initializeContext(){this.container.getModules().forEach(c=>{let u=c.metatype.name;u!==a.InternalCoreModule.name&&(this.globalScope[u]&&(u+=` (${c.token})`),this.introspectCollection(c,u,"providers"),this.introspectCollection(c,u,"controllers"),Object.defineProperty(this.globalScope,u,{value:c.metatype,configurable:!1,enumerable:!0}))})}introspectCollection(i,c,u){const p={};i[u].forEach(({token:l})=>{const d=this.stringifyToken(l);d===t.ApplicationConfig.name||d===i.metatype.name||(this.globalScope[d]||Object.defineProperty(this.globalScope,d,{value:l,configurable:!1,enumerable:!0}),d!==r.ModuleRef.name&&(p[d]=l))}),this.debugRegistry[c]={...this.debugRegistry?.[c],[u]:p}}stringifyToken(i){return typeof i!="string"?typeof i=="function"?i.name:i?.toString():`"${i}"`}addNativeFunction(i){const c=new i(this),u=[c];return this.nativeFunctions.set(c.fnDefinition.name,c),c.fnDefinition.aliases?.forEach(p=>{const l=Object.create(c);l.fnDefinition={name:p,description:l.fnDefinition.description,signature:l.fnDefinition.signature},this.nativeFunctions.set(p,l),u.push(l)}),u}registerFunctionIntoGlobalScope(i){this.globalScope[i.fnDefinition.name]=i.action.bind(i);const c=this.globalScope[i.fnDefinition.name];Object.defineProperty(c,"help",{enumerable:!1,configurable:!1,get:()=>this.writeToStdout(i.makeHelpMessage())})}initializeNativeFunctions(i){[o.HelpReplFn,o.GetReplFn,o.ResolveReplFn,o.SelectReplFn,o.DebugReplFn,o.MethodsReplFn].concat(i).forEach(u=>{this.addNativeFunction(u).forEach(l=>{this.registerFunctionIntoGlobalScope(l)})})}}return Xu.ReplContext=n,Xu}var al={},TI;function TZ(){if(TI)return al;TI=1,Object.defineProperty(al,"__esModule",{value:!0}),al.ReplLogger=void 0;const e=ve(),t=Sb(),r=MN(),a=IN();class o extends e.ConsoleLogger{log(s,i){if(!o.ignoredContexts.includes(i))return super.log.apply(this,Array.from(arguments))}}return al.ReplLogger=o,o.ignoredContexts=[a.RoutesResolver.name,r.RouterExplorer.name,t.NestApplication.name],al}var tp={},AI;function AZ(){if(AI)return tp;AI=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.defineDefaultCommandsOnRepl=t;function e(r){Object.keys(r.commands).sort().forEach(a=>{const o=r.commands[a];o&&r.output.write(`${a} ${o.help||""}
|
|
167
|
+
`)})}function t(r){r.defineCommand("help",{help:"Show REPL options",action(a){if(this.clearBufferedCommand(),a){const n=(this.commands[a]||this.context[a])?.help;n&&this.output.write(`${n}
|
|
168
|
+
`)}else e(this),this.output.write(`
|
|
169
|
+
|
|
170
|
+
`),this.context.help(),this.output.write(`
|
|
171
|
+
Press Ctrl+C to abort current expression, Ctrl+D to exit the REPL
|
|
172
|
+
`);this.displayPrompt()}})}return tp}var RI;function RZ(){if(RI)return Jd;RI=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.repl=c;const e=ve(),t=nr(),r=HN(),a=_Z(),o=gZ(),n=PZ(),s=TZ(),i=AZ();async function c(u,p={}){const l=await r.NestFactory.createApplicationContext(u,{abortOnError:!1,logger:new s.ReplLogger});await l.init();const d=new n.ReplContext(l);e.Logger.log(o.REPL_INITIALIZED_MESSAGE);const h=(await Promise.resolve().then(()=>nD)).start({prompt:t.clc.green("> "),ignoreUndefined:!0,...p});return(0,a.assignToObject)(h.context,d.globalScope),(0,i.defineDefaultCommandsOnRepl)(h),h.on("exit",async()=>{await l.close()}),h}return Jd}var MI;function MZ(){return MI||(MI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(RZ(),e)})(B_)),B_}var V_={},G_={},W_={},II;function IZ(){return II||(II=1,Object.defineProperty(W_,"__esModule",{value:!0})),W_}var CI;function CZ(){return CI||(CI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),ae().__exportStar(IZ(),e)})(G_)),G_}var Z_={},jI;function jZ(){return jI||(jI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.REQUEST=void 0;var t=wn();Object.defineProperty(e,"REQUEST",{enumerable:!0,get:function(){return t.REQUEST}})})(Z_)),Z_}var qI;function qZ(){return qI||(qI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RouterModule=void 0;const t=ae();t.__exportStar(CZ(),e),t.__exportStar(jZ(),e);var r=AN();Object.defineProperty(e,"RouterModule",{enumerable:!0,get:function(){return r.RouterModule}})})(V_)),V_}var NI;function VN(){return NI||(NI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NestFactory=e.APP_PIPE=e.APP_INTERCEPTOR=e.APP_GUARD=e.APP_FILTER=void 0;const t=ae();cg(),t.__exportStar(J2(),e),t.__exportStar(pr(),e);var r=pi();Object.defineProperty(e,"APP_FILTER",{enumerable:!0,get:function(){return r.APP_FILTER}}),Object.defineProperty(e,"APP_GUARD",{enumerable:!0,get:function(){return r.APP_GUARD}}),Object.defineProperty(e,"APP_INTERCEPTOR",{enumerable:!0,get:function(){return r.APP_INTERCEPTOR}}),Object.defineProperty(e,"APP_PIPE",{enumerable:!0,get:function(){return r.APP_PIPE}}),t.__exportStar(tW(),e),t.__exportStar(rW(),e),t.__exportStar(fW(),e),t.__exportStar(gN(),e),t.__exportStar(CW(),e),t.__exportStar(On(),e),t.__exportStar(NW(),e),t.__exportStar(Sb(),e),t.__exportStar(Ob(),e);var a=HN();Object.defineProperty(e,"NestFactory",{enumerable:!0,get:function(){return a.NestFactory}}),t.__exportStar(MZ(),e),t.__exportStar(qZ(),e),t.__exportStar(_N(),e)})(wm)),wm}var FI=VN(),NZ=Object.getOwnPropertyDescriptor,FZ=(e,t,r,a)=>{for(var o=a>1?void 0:a?NZ(t,r):t,n=e.length-1,s;n>=0;n--)(s=e[n])&&(o=s(o)||o);return o};let up=class{constructor(e){this.httpAdapterHost=e}logger=new Ot.Logger(up.name);mapStatusCode(e){return e instanceof Ot.HttpException?e.getStatus():Ot.HttpStatus.INTERNAL_SERVER_ERROR}mapError(e){return e instanceof Ot.HttpException?e.getResponse():{error:"internal-error"}}catch(e,t){const{httpAdapter:r}=this.httpAdapterHost,a=t.switchToHttp();this.logger.error("Unhandled exception",e);const o=this.mapStatusCode(e),n=this.mapError(e);r.reply(a.getResponse(),n,o)}};up=FZ([Ot.Catch()],up);const Rb=async({existentApp:e,existentLogger:t,appModule:r})=>{if(!e&&!r)throw new Error("Either existentApp or appModule must be provided");const a=e||await FI.NestFactory.create(r,{bufferLogs:!0,logger:t}),n=a.get(np.ConfigService).get(ni);if(!n)throw new Error(`Configuration with token ${ni} not found`);const s=t||new Ot.Logger;a.useLogger(s);const i=a.get(FI.HttpAdapterHost);return a.useGlobalFilters(new up(i)),s.setLogLevels?.(["verbose","debug","log","warn","error","fatal"]),a.enableCors({origin:n.CORS_ORIGIN,methods:n.CORS_METHODS,allowedHeaders:n.CORS_ALLOWED_HEADERS,credentials:n.CORS_CREDENTIALS,maxAge:n.CORS_MAX_AGE}),a};async function DZ(e,t=aD.resolve(__dirname,"../configuration")){pD({env:"",configPath:t});const r=await Rb({appModule:e}),o=r.get(np.ConfigService).get(ni);if(!o)throw new Error(`Configuration with token ${ni} not found`);await r.listen(o.APP_PORT),new Ot.Logger("NestJS App").log(`NestJS App is running at http://localhost:${o.APP_PORT}`)}var kZ=Object.getOwnPropertyDescriptor,LZ=(e,t,r,a)=>{for(var o=a>1?void 0:a?kZ(t,r):t,n=e.length-1,s;n>=0;n--)(s=e[n])&&(o=s(o)||o);return o};const K_={"2XX":"verbose","3XX":"debug",400:"log",401:"log",403:"log",404:"log","4XX":"warn","5XX":"error"};exports.RequestMiddleware=class{logger=new Ot.Logger(exports.RequestMiddleware.name);statusCodeToSeverity(t){const r=t.toString();return K_[r]?K_[r]:K_[`${t.toString().slice(0,1)}XX`]}use(t,r,a){if(t.headers.host!=="127.0.0.1"){const o=Date.now();r.on("finish",()=>{const n=Date.now()-o,s={method:t.method,url:t.originalUrl,statusCode:r.statusCode,timeSpentMs:n,domain:t.hostname,requestHeaders:t.headers,responseHeaders:r.getHeaders()},i=this.statusCodeToSeverity(r.statusCode);this.logger[i](`Request: ${t.method} ${t.originalUrl} ${r.statusCode}`,s)})}a()}};exports.RequestMiddleware=LZ([Ot.Injectable()],exports.RequestMiddleware);var Y_={},X_={},Q_={},DI;function UZ(){return DI||(DI=1,Object.defineProperty(Q_,"__esModule",{value:!0})),Q_}var J_={},kI;function $Z(){return kI||(kI=1,Object.defineProperty(J_,"__esModule",{value:!0})),J_}var eg={},LI;function zZ(){return LI||(LI=1,Object.defineProperty(eg,"__esModule",{value:!0})),eg}var UI;function BZ(){return UI||(UI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(UZ(),e),t.__exportStar($Z(),e),t.__exportStar(zZ(),e)})(X_)),X_}var ol={},sl={},cl={},$I;function HZ(){if($I)return cl;$I=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.TestingLogger=void 0;const e=ve();class t extends e.ConsoleLogger{constructor(){super("Testing")}log(a){}warn(a){}debug(a){}verbose(a){}error(a,...o){return super.error(a,...o)}}return cl.TestingLogger=t,cl}var ul={},zI;function VZ(){if(zI)return ul;zI=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.TestingInjector=void 0;const e=it(),t=hi(),r=Dl();class a extends t.Injector{setMocker(n){this.mocker=n}setContainer(n){this.container=n}async resolveComponentWrapper(n,s,i,c,u=e.STATIC_CONTEXT,p,l){try{return await super.resolveComponentWrapper(n,s,i,c,u,p,l)}catch(d){return this.mockWrapper(d,n,s,c)}}async resolveComponentHost(n,s,i=e.STATIC_CONTEXT,c){try{return await super.resolveComponentHost(n,s,i,c)}catch(u){return this.mockWrapper(u,n,s.name,s)}}async mockWrapper(n,s,i,c){if(!this.mocker)throw n;const u=this.mocker(i);if(!u)throw n;const p=new r.InstanceWrapper({name:i,isAlias:!1,scope:c.scope,instance:u,isResolved:!0,host:s,metatype:c.metatype}),l=this.container.getInternalCoreModuleRef();if(!l)throw new Error("Expected to have internal core module reference at this point.");return l.addCustomProvider({provide:i,useValue:u},l.providers),l.addExportedProviderOrModule(i),p}}return ul.TestingInjector=a,ul}var ll={},BI;function GZ(){if(BI)return ll;BI=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.TestingInstanceLoader=void 0;const e=Pb();class t extends e.InstanceLoader{async createInstancesOfDependencies(a=this.container.getModules(),o){this.injector.setContainer(this.container),o&&this.injector.setMocker(o),await super.createInstancesOfDependencies()}}return ll.TestingInstanceLoader=t,ll}var dl={};const WZ={},ZZ=Object.freeze(Object.defineProperty({__proto__:null,default:WZ},Symbol.toStringTag,{value:"Module"})),KZ=ci(ZZ);var HI;function GN(){if(HI)return dl;HI=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.TestingModule=void 0;const e=ve(),t=bl(),r=ne(),a=VN();class o extends a.NestApplicationContext{constructor(s,i,c,u,p=[]){const l={};super(s,l,c,p),this.applicationConfig=u,this.graphInspector=i}isHttpServer(s){return!!(s&&s.patch)}createNestApplication(s,i){const[c,u]=this.isHttpServer(s)?[s,i]:[this.createHttpAdapter(),s];this.applyLogger(u),this.container.setHttpAdapter(c);const p=new a.NestApplication(this.container,c,this.applicationConfig,this.graphInspector,u);return this.createAdapterProxy(p,c)}createNestMicroservice(s){const{NestMicroservice:i}=(0,t.loadPackage)("@nestjs/microservices","TestingModule",()=>KZ);return this.applyLogger(s),new i(this.container,s,this.graphInspector,this.applicationConfig)}createHttpAdapter(s){const{ExpressAdapter:i}=(0,t.loadPackage)("@nestjs/platform-express","NestFactory",()=>BN());return new i(s)}applyLogger(s){!s||(0,r.isUndefined)(s.logger)||e.Logger.overrideLogger(s.logger)}createAdapterProxy(s,i){return new Proxy(s,{get:(c,u)=>!(u in c)&&u in i?i[u]:c[u]})}}return dl.TestingModule=o,dl}var VI;function WN(){if(VI)return sl;VI=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.TestingModuleBuilder=void 0;const e=ve(),t=pr(),r=xb(),a=Lp(),o=jN(),n=Fl(),s=qN(),i=HZ(),c=VZ(),u=GZ(),p=GN();class l{constructor(f,h,m){this.metadataScanner=f,this.applicationConfig=new t.ApplicationConfig,this.overloadsMap=new Map,this.moduleOverloadsMap=new Map,this.container=new r.NestContainer(this.applicationConfig,m),this.module=this.createModule(h)}setLogger(f){return this.testingLogger=f,this}overridePipe(f){return this.override(f,!1)}useMocker(f){return this.mocker=f,this}overrideFilter(f){return this.override(f,!1)}overrideGuard(f){return this.override(f,!1)}overrideInterceptor(f){return this.override(f,!1)}overrideProvider(f){return this.override(f,!0)}overrideModule(f){return{useModule:h=>(this.moduleOverloadsMap.set(f,h),this)}}async compile(f={}){this.applyLogger();let h;f?.snapshot?(h=new a.GraphInspector(this.container),n.UuidFactory.mode=n.UuidFactoryMode.Deterministic):(h=o.NoopGraphInspector,n.UuidFactory.mode=n.UuidFactoryMode.Random);const m=new s.DependenciesScanner(this.container,this.metadataScanner,h,this.applicationConfig);await m.scan(this.module,{overrides:this.getModuleOverloads()}),this.applyOverloadsMap(),await this.createInstancesOfDependencies(h,f),m.applyApplicationProviders();const v=this.getRootModule();return new p.TestingModule(this.container,h,v,this.applicationConfig)}override(f,h){const m=v=>(this.overloadsMap.set(f,{...v,isProvider:h}),this);return this.createOverrideByBuilder(m)}createOverrideByBuilder(f){return{useValue:h=>f({useValue:h}),useFactory:h=>f({...h,useFactory:h.factory}),useClass:h=>f({useClass:h})}}applyOverloadsMap(){[...this.overloadsMap.entries()].forEach(([h,m])=>{this.container.replace(h,m)})}getModuleOverloads(){return[...this.moduleOverloadsMap.entries()].map(([h,m])=>({moduleToReplace:h,newModule:m}))}getRootModule(){return this.container.getModules().values().next().value}async createInstancesOfDependencies(f,h){const m=new c.TestingInjector({preview:h?.preview??!1});await new u.TestingInstanceLoader(this.container,m,f).createInstancesOfDependencies(this.container.getModules(),this.mocker)}createModule(f){class h{}return(0,e.Module)(f)(h),h}applyLogger(){e.Logger.overrideLogger(this.testingLogger||new i.TestingLogger)}}return sl.TestingModuleBuilder=l,sl}var GI;function YZ(){if(GI)return ol;GI=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.Test=void 0;const e=On(),t=WN();class r{static createTestingModule(o,n){return new t.TestingModuleBuilder(this.metadataScanner,o,n)}}return ol.Test=r,r.metadataScanner=new e.MetadataScanner,ol}var WI;function XZ(){return WI||(WI=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=ae();t.__exportStar(BZ(),e),t.__exportStar(YZ(),e),t.__exportStar(GN(),e),t.__exportStar(WN(),e)})(Y_)),Y_}var QZ=XZ();function JZ(e,t=[]){return t.forEach(r=>{e=e.overrideGuard(r.type).useValue(r.value)}),e}function e4(e,t=[]){return t.forEach(r=>{e=e.overrideProvider(r.type).useValue(r.value)}),e}async function ZN(e={},t){let r=QZ.Test.createTestingModule({imports:[t]});r=JZ(r,e.guards),r=e4(r,e.providers);const a=await r.compile();return e.logger&&a.useLogger(e.logger),a}async function t4(e,t={}){const r=await ZN(t,e);return(await Rb({existentApp:r.createNestApplication(),existentLogger:t.logger})).init()}function Up(e,t="body"){return Ot.createParamDecorator((r,a)=>{const n=a.switchToHttp().getRequest()[t],s=e.safeParse(n);if(!s.success)throw new Ot.BadRequestException({message:`Invalid ${t} data`,errors:s.error});return s.data})()}function r4(e){return Up(e,"query")}function n4(e){return Up(e,"body")}function i4(e){return Up(e,"params")}exports.APP_CONFIG_TOKEN=ni;exports.AppConfigSchema=Yq;exports.SafeBody=n4;exports.SafeParams=i4;exports.SafeQuery=r4;exports.ZodValidator=Up;exports.appConfigModuleSetup=Q2;exports.bootstrap=DZ;exports.createApp=Rb;exports.createTestingApp=t4;exports.createTestingModule=ZN;
|