@tradelayerprotocol/tradelayer 1.9.1
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/.claude/settings.local.json +13 -0
- package/.claude/skills/tl-algo/SKILL.md +255 -0
- package/.gitattributes +2 -0
- package/.github/workflows/publish.yaml +26 -0
- package/4mm.js +163 -0
- package/LICENSE +21 -0
- package/NPMSwapRefactor.zip +0 -0
- package/README.md +217 -0
- package/address.sh +26 -0
- package/algoAPI.js +581 -0
- package/analyzepsbt.js +92 -0
- package/apiEx.js +99 -0
- package/bb_hyperscalper.js +290 -0
- package/bbo_demo.js +111 -0
- package/buyer.js +622 -0
- package/client.js +50 -0
- package/createTxTest.js +26 -0
- package/createWallet.js +75 -0
- package/daytrader.js +531 -0
- package/decodeTest.js +69 -0
- package/fundingManager.js +144 -0
- package/index.js +4 -0
- package/listener.js +27 -0
- package/litecoreTxBuilder.js +1128 -0
- package/mmEx.js +356 -0
- package/networks.js +51 -0
- package/orderbook.js +200 -0
- package/package.json +34 -0
- package/perTradeQueue.js +36 -0
- package/projectsTLNPMTLNPM/package-lock.json +162 -0
- package/projectsTLNPMTLNPM/package.json +5 -0
- package/quick.js +32 -0
- package/quickFut.js +37 -0
- package/quickSell.js +37 -0
- package/relayerClient.js +117 -0
- package/run4mm.js +80 -0
- package/run_bbo_tracker.js +241 -0
- package/seller.js +443 -0
- package/session.js +45 -0
- package/setup-lin-ltc.sh +139 -0
- package/setup-lin.sh +203 -0
- package/setup-win-ltc.bat +108 -0
- package/setup-win.bat +167 -0
- package/spam_screamer_futures.js +222 -0
- package/tradelayer.js/.gitattributes +2 -0
- package/tradelayer.js/README.md +2 -0
- package/tradelayer.js/oldTests/activationTest.js +6 -0
- package/tradelayer.js/oldTests/base58.test.js +23 -0
- package/tradelayer.js/oldTests/base64Decode.test.js +16 -0
- package/tradelayer.js/oldTests/blocksRefactor.js +140 -0
- package/tradelayer.js/oldTests/checkVestBalance.js +25 -0
- package/tradelayer.js/oldTests/consensusHashProto.js +151 -0
- package/tradelayer.js/oldTests/contractOrderbook.js +243 -0
- package/tradelayer.js/oldTests/createPayload.js +0 -0
- package/tradelayer.js/oldTests/createTestnetAddr.js +43 -0
- package/tradelayer.js/oldTests/decode.js +205 -0
- package/tradelayer.js/oldTests/decodeTest.js +50 -0
- package/tradelayer.js/oldTests/displayTallyMap.js +19 -0
- package/tradelayer.js/oldTests/encodeDecode.js +340 -0
- package/tradelayer.js/oldTests/expressTest.js +29 -0
- package/tradelayer.js/oldTests/extractBlocksVanilla.js +214 -0
- package/tradelayer.js/oldTests/extractBlocksVanillaa.js +179 -0
- package/tradelayer.js/oldTests/extractPubkeyTest.js +60 -0
- package/tradelayer.js/oldTests/fillInputCacheProto.js +111 -0
- package/tradelayer.js/oldTests/getRawTxTest.js +22 -0
- package/tradelayer.js/oldTests/indexTest.js +26 -0
- package/tradelayer.js/oldTests/initTokensTest.js +32 -0
- package/tradelayer.js/oldTests/interfaceChild.js +129 -0
- package/tradelayer.js/oldTests/listenerChild.js +112 -0
- package/tradelayer.js/oldTests/opdecode.js +26 -0
- package/tradelayer.js/oldTests/options.js +79 -0
- package/tradelayer.js/oldTests/optxtest.js +116 -0
- package/tradelayer.js/oldTests/optxtest1.js +64 -0
- package/tradelayer.js/oldTests/oracle.test.js +32 -0
- package/tradelayer.js/oldTests/orderbook.test.js +36 -0
- package/tradelayer.js/oldTests/parsing.js +93 -0
- package/tradelayer.js/oldTests/payload.js +13 -0
- package/tradelayer.js/oldTests/persistenceUnitTest.js +23 -0
- package/tradelayer.js/oldTests/property.test.js +53 -0
- package/tradelayer.js/oldTests/propertyLevel.js +75 -0
- package/tradelayer.js/oldTests/propertyTest.js +32 -0
- package/tradelayer.js/oldTests/queryAddressTest.js +17 -0
- package/tradelayer.js/oldTests/salter.js +14 -0
- package/tradelayer.js/oldTests/tally.js +81 -0
- package/tradelayer.js/oldTests/tally.test.js +48 -0
- package/tradelayer.js/oldTests/tally2.js +124 -0
- package/tradelayer.js/oldTests/tally3.js +142 -0
- package/tradelayer.js/oldTests/tallyDiag.js +38 -0
- package/tradelayer.js/oldTests/testGetRaw.js +40 -0
- package/tradelayer.js/oldTests/testHexConvert.js +47 -0
- package/tradelayer.js/oldTests/testNewEncoding.js +96 -0
- package/tradelayer.js/oldTests/testNewEncoding2.js +113 -0
- package/tradelayer.js/oldTests/testNewEncoding3 +112 -0
- package/tradelayer.js/oldTests/testNewEncoding3.js +168 -0
- package/tradelayer.js/oldTests/testOPReturn.js +102 -0
- package/tradelayer.js/oldTests/testPayload.js +23 -0
- package/tradelayer.js/oldTests/testRaw.js +50 -0
- package/tradelayer.js/oldTests/testSendTooMuch.js +20 -0
- package/tradelayer.js/oldTests/testTxBuild +28 -0
- package/tradelayer.js/oldTests/testTxBuild.js +42 -0
- package/tradelayer.js/oldTests/tokenOrderbook.js +243 -0
- package/tradelayer.js/oldTests/txUtilsA.js +515 -0
- package/tradelayer.js/oldTests/validityUnitTest.js +53 -0
- package/tradelayer.js/oldTests/vaults.js +72 -0
- package/tradelayer.js/oldTests/volumeIndex.js +117 -0
- package/tradelayer.js/oldTests/volumeIndex2.js +88 -0
- package/tradelayer.js/output_base64.txt +1 -0
- package/tradelayer.js/package-lock.json +9967 -0
- package/tradelayer.js/package.json +61 -0
- package/tradelayer.js/server/index.js +88 -0
- package/tradelayer.js/server/litecoind.exe +0 -0
- package/tradelayer.js/src/activation.js +303 -0
- package/tradelayer.js/src/adjuster.js +77 -0
- package/tradelayer.js/src/amm.js +400 -0
- package/tradelayer.js/src/base256.js +55 -0
- package/tradelayer.js/src/base94.js +79 -0
- package/tradelayer.js/src/channels.js +1163 -0
- package/tradelayer.js/src/clearing.js +3109 -0
- package/tradelayer.js/src/clearlist.js +364 -0
- package/tradelayer.js/src/client.js +295 -0
- package/tradelayer.js/src/consensus.js +613 -0
- package/tradelayer.js/src/contractRegistry.js +964 -0
- package/tradelayer.js/src/db.js +89 -0
- package/tradelayer.js/src/init.js +24 -0
- package/tradelayer.js/src/insurance.js +347 -0
- package/tradelayer.js/src/interface.js +218 -0
- package/tradelayer.js/src/interfaceExpress.js +178 -0
- package/tradelayer.js/src/iou.js +509 -0
- package/tradelayer.js/src/listener.js +226 -0
- package/tradelayer.js/src/logic.js +1702 -0
- package/tradelayer.js/src/main.js +927 -0
- package/tradelayer.js/src/marginMap.js +2165 -0
- package/tradelayer.js/src/options.js +126 -0
- package/tradelayer.js/src/oracle.js +394 -0
- package/tradelayer.js/src/orderbook.js +4123 -0
- package/tradelayer.js/src/persistence.js +554 -0
- package/tradelayer.js/src/property.js +411 -0
- package/tradelayer.js/src/reOrg.js +41 -0
- package/tradelayer.js/src/scaling.js +145 -0
- package/tradelayer.js/src/tally.js +1275 -0
- package/tradelayer.js/src/tradeHistoryManager.js +552 -0
- package/tradelayer.js/src/txDecoder.js +584 -0
- package/tradelayer.js/src/txEncoder.js +610 -0
- package/tradelayer.js/src/txIndex.js +502 -0
- package/tradelayer.js/src/txUtils.js +1392 -0
- package/tradelayer.js/src/types.js +429 -0
- package/tradelayer.js/src/validity.js +3077 -0
- package/tradelayer.js/src/vaults.js +430 -0
- package/tradelayer.js/src/vesting.js +491 -0
- package/tradelayer.js/src/volumeIndex.js +618 -0
- package/tradelayer.js/src/walletInterface.js +220 -0
- package/tradelayer.js/src/walletListener.js +665 -0
- package/tradelayer.js/tests/256decode.js +82 -0
- package/tradelayer.js/tests/UTXOracle.js +205 -0
- package/tradelayer.js/tests/base94test.js +23 -0
- package/tradelayer.js/tests/cancelTxTest.js +62 -0
- package/tradelayer.js/tests/contractInterfaceTest.js +48 -0
- package/tradelayer.js/tests/decimalTest.js +65 -0
- package/tradelayer.js/tests/decoderTest.js +100 -0
- package/tradelayer.js/tests/deltaCount.js +47 -0
- package/tradelayer.js/tests/deltaCount2.js +60 -0
- package/tradelayer.js/tests/interfaceTest.js +37 -0
- package/tradelayer.js/tests/mainTest.js +53 -0
- package/tradelayer.js/tests/makeActivationTest.js +24 -0
- package/tradelayer.js/tests/maxHeightTest.js +49 -0
- package/tradelayer.js/tests/reverseHash.js +72 -0
- package/tradelayer.js/tests/sensitiveConsoleOutput.txt +267 -0
- package/tradelayer.js/tests/tallyTest.js +40 -0
- package/tradelayer.js/tests/testBuybacks.js +46 -0
- package/tradelayer.js/tests/testCodeHash.js +49 -0
- package/tradelayer.js/tests/testConsensusHash.js +91 -0
- package/tradelayer.js/tests/testDecode.js +30 -0
- package/tradelayer.js/tests/testEncodingLengths.js +129 -0
- package/tradelayer.js/tests/testGetTx +32 -0
- package/tradelayer.js/tests/testGetTx.js +32 -0
- package/tradelayer.js/tests/testHexHash.js +32 -0
- package/tradelayer.js/tests/testIndexHash.js +35 -0
- package/tradelayer.js/tests/testInitContracts.js +38 -0
- package/tradelayer.js/tests/testMaxConsensus.js +12 -0
- package/tradelayer.js/tests/testMaxSynth.js +44 -0
- package/tradelayer.js/tests/testMint.js +21 -0
- package/tradelayer.js/tests/testNetwork.js +33 -0
- package/tradelayer.js/tests/testOrderbookLoad.js +62 -0
- package/tradelayer.js/tests/testRebates.js +32 -0
- package/tradelayer.js/tests/testRedeem.js +22 -0
- package/tradelayer.js/tests/testTokenTrade.js +39 -0
- package/tradelayer.js/tests/testTxBuild.js +42 -0
- package/tradelayer.js/tests/testUTXOTrade.js +27 -0
- package/tradelayer.js/tests/tokenTradeHistory.js +27 -0
- package/tradelayer.js/tests/tradeFutures.js +40 -0
- package/tradelayer.js/tests/tradeHistoryExample.js +35 -0
- package/tradelayer.js/tests/tradeHistoryLoad.js +15 -0
- package/tradelayer.js/tests/txScanTest.js +134 -0
- package/tradelayer.js/tests/validateTest.js +136 -0
- package/tradelayer.js/tests/vestingTest.js +37 -0
- package/tradelayer.js/utils/activateMainnet.js +59 -0
- package/tradelayer.js/utils/activateMainnetDoge.js +63 -0
- package/tradelayer.js/utils/autocompactdb.js +23 -0
- package/tradelayer.js/utils/base64toHex.js +32 -0
- package/tradelayer.js/utils/broadcastDoge.js +38 -0
- package/tradelayer.js/utils/calcRedeem.js +19 -0
- package/tradelayer.js/utils/checkNetwork.js +27 -0
- package/tradelayer.js/utils/createAddress.js +48 -0
- package/tradelayer.js/utils/createAttestation.js +133 -0
- package/tradelayer.js/utils/createContract.js +118 -0
- package/tradelayer.js/utils/createOracle.js +94 -0
- package/tradelayer.js/utils/createwallet.js +20 -0
- package/tradelayer.js/utils/crossFuturesTrades.js +57 -0
- package/tradelayer.js/utils/crossTokenTrades.js +62 -0
- package/tradelayer.js/utils/dumpPriv.js +29 -0
- package/tradelayer.js/utils/generateChannel.js +34 -0
- package/tradelayer.js/utils/getInfo.js +21 -0
- package/tradelayer.js/utils/hardWipe.js +20 -0
- package/tradelayer.js/utils/hexTo64.js +16 -0
- package/tradelayer.js/utils/importAddress.js +28 -0
- package/tradelayer.js/utils/importpriv.js +20 -0
- package/tradelayer.js/utils/issueOracleContract.js +67 -0
- package/tradelayer.js/utils/issueTokens.js +41 -0
- package/tradelayer.js/utils/listunspent.js +66 -0
- package/tradelayer.js/utils/litecoinClient.js +30 -0
- package/tradelayer.js/utils/loadwallet.js +20 -0
- package/tradelayer.js/utils/publishOracle.js +113 -0
- package/tradelayer.js/utils/sendActivation.js +21 -0
- package/tradelayer.js/utils/sendChannelContractTrade.js +34 -0
- package/tradelayer.js/utils/sendChannelTokenTrade.js +34 -0
- package/tradelayer.js/utils/sendCommit.js +24 -0
- package/tradelayer.js/utils/sendDoge.js +62 -0
- package/tradelayer.js/utils/sendDogeMain.js +67 -0
- package/tradelayer.js/utils/sendDogeTx.js +46 -0
- package/tradelayer.js/utils/sendLTC.js +63 -0
- package/tradelayer.js/utils/sendMainnet.js +62 -0
- package/tradelayer.js/utils/sendTransfer.js +19 -0
- package/tradelayer.js/utils/sendVestTest.js +88 -0
- package/tradelayer.js/utils/sendWithdrawal.js +26 -0
- package/tradelayer.js/utils/simpleStart.js +8 -0
- package/tradelayer.js/utils/startStop.js +27 -0
- package/tradelayer.js/utils/structuredTrades.js +136 -0
- package/tradelayer.js/utils/verifySignature.js +90 -0
- package/tradelayer.js/utils/verifyWitnessAndScriptPubkey.js +41 -0
- package/tradelayer.js/utils/walletCache.js +172 -0
- package/tradelayer.js/utils/walletContractInterface.js +48 -0
- package/tradelayer.js/utils/walletFetchTxs.js +66 -0
- package/tradelayer.js/utils/walletUtils.js +97 -0
- package/tradelayer.js/utils/wipeDB.js +55 -0
- package/tradelayer.js/utils/wipeDBNotTx.js +50 -0
- package/txEncoder.js +529 -0
- package/utility.js +28 -0
- package/verifymessage.js +38 -0
- package/ws-transport.js +311 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(function(){try{return require("long")}catch(e){}}(),function(){try{return require("pino-pretty")}catch(e){}}(),require("tiny-secp256k1"),function(){try{return require("bufferutil")}catch(e){}}(),function(){try{return require("utf-8-validate")}catch(e){}}());else if("function"==typeof define&&define.amd)define(["long","pino-pretty","tiny-secp256k1","bufferutil","utf-8-validate"],t);else{var r="object"==typeof exports?t(function(){try{return require("long")}catch(e){}}(),function(){try{return require("pino-pretty")}catch(e){}}(),require("tiny-secp256k1"),function(){try{return require("bufferutil")}catch(e){}}(),function(){try{return require("utf-8-validate")}catch(e){}}()):t(e.long,e["pino-pretty"],e["tiny-secp256k1"],e.bufferutil,e["utf-8-validate"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(global,((e,t,r,o,n)=>(()=>{var a={96717:(e,t,r)=>{"use strict";const o=r(28019);e.exports=function(){const e=new Map,t=new Map;return t.put=t.set,function(r,n){const a=`${JSON.stringify(r)}${JSON.stringify(n.customOptions)}`;if(e.has(a))return e.get(a);const i=function(e,t,r){const n=new o(Object.assign({coerceTypes:!0,useDefaults:!0,removeAdditional:!0,allErrors:!1,nullable:!0},t.customOptions,{cache:r}));if(t.plugins&&t.plugins.length>0)for(const e of t.plugins)Array.isArray(e)?e[0](n,e[1]):e(n);const a=Object.values(e);for(const e of a)n.addSchema(e);return function({schema:e}){if(e.$id){const t=n.getSchema(e.$id);if(t)return t}return n.compile(e)}}(r,n,t);return e.set(a,i),i}}},3812:(e,t,r)=>{"use strict";const{inherits:o,format:n}=r(39023);e.exports=function(e,t,r=500,a=Error){if(!e)throw new Error("Fastify error code must not be empty");if(!t)throw new Error("Fastify error message must not be empty");function i(o,a,s){if(!new.target)return new i(...arguments);switch(Error.captureStackTrace(this,i),this.name="FastifyError",this.code=e,arguments.length){case 3:this.message=n(t,o,a,s);break;case 2:this.message=n(t,o,a);break;case 1:this.message=n(t,o);break;case 0:this.message=t;break;default:this.message=n(t,...arguments)}this.statusCode=r||void 0}return e=e.toUpperCase(),i.prototype[Symbol.toStringTag]="Error",i.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},o(i,a),i}},39847:(e,t,r)=>{"use strict";function o(){}e=r.nmd(e);const n={fatal:o,error:o,warn:o,info:o,debug:o,trace:o};Object.defineProperty(e,"exports",{get:()=>Object.create(n)})},22594:(e,t,r)=>{"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* accepts
|
|
4
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
5
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
|
+
* MIT Licensed
|
|
7
|
+
*/var o=r(81297),n=r(86049);function a(e){if(!(this instanceof a))return new a(e);this.headers=e.headers,this.negotiator=new o(e)}function i(e){return-1===e.indexOf("/")?n.lookup(e):e}function s(e){return"string"==typeof e}e.exports=a,a.prototype.type=a.prototype.types=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var r=0;r<t.length;r++)t[r]=arguments[r]}if(!t||0===t.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return t[0];var o=t.map(i),n=this.negotiator.mediaTypes(o.filter(s)),a=n[0];return!!a&&t[o.indexOf(a)]},a.prototype.encoding=a.prototype.encodings=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var r=0;r<t.length;r++)t[r]=arguments[r]}return t&&0!==t.length?this.negotiator.encodings(t)[0]||!1:this.negotiator.encodings()},a.prototype.charset=a.prototype.charsets=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var r=0;r<t.length;r++)t[r]=arguments[r]}return t&&0!==t.length?this.negotiator.charsets(t)[0]||!1:this.negotiator.charsets()},a.prototype.lang=a.prototype.langs=a.prototype.language=a.prototype.languages=function(e){var t=e;if(t&&!Array.isArray(t)){t=new Array(arguments.length);for(var r=0;r<t.length;r++)t[r]=arguments[r]}return t&&0!==t.length?this.negotiator.languages(t)[0]||!1:this.negotiator.languages()}},28019:(e,t,r)=>{"use strict";var o=r(7354),n=r(91030),a=r(94006),i=r(2585),s=r(72492),c=r(45950),l=r(73845),u=r(24278),p=r(96740);e.exports=g,g.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var o=this._addSchema(e);r=o.validate||this._compile(o)}var n=r(t);!0!==r.$async&&(this.errors=r.errors);return n},g.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},g.prototype.addSchema=function(e,t,r,o){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,r,o);return this}var i=this._getId(e);if(void 0!==i&&"string"!=typeof i)throw new Error("schema id must be string");return _(this,t=n.normalizeId(t||i)),this._schemas[t]=this._addSchema(e,r,o,!0),this},g.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},g.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(f)?f:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(r,e);if(!o&&t){var n="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(n);this.logger.error(n)}return o},g.prototype.getSchema=function(e){var t=y(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=n.schema.call(e,{schema:{}},t);if(r){var a=r.schema,s=r.root,c=r.baseId,l=o.call(e,a,s,void 0,c);return e._fragments[t]=new i({ref:t,fragment:!0,schema:a,root:s,baseId:c,validate:l}),l}}(this,e)}},g.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=y(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,o=r?r(e):e;this._cache.del(o);var a=this._getId(e);a&&(a=n.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this},g.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},g.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,o=void 0===t.dataVar?"data":t.dataVar,n="",a=0;a<e.length;a++){var i=e[a];i&&(n+=o+i.dataPath+" "+i.message+r)}return n.slice(0,-r.length)},g.prototype._addSchema=function(e,t,r,o){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var a=this._opts.serialize,s=a?a(e):e,c=this._cache.get(s);if(c)return c;o=o||!1!==this._opts.addUsedSchema;var l=n.normalizeId(this._getId(e));l&&o&&_(this,l);var u,p=!1!==this._opts.validateSchema&&!t;p&&!(u=l&&l==n.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=n.ids.call(this,e),h=new i({id:l,schema:e,localRefs:d,cacheKey:s,meta:r});"#"!=l[0]&&o&&(this._refs[l]=h);this._cache.put(s,h),p&&u&&this.validateSchema(e,!0);return h},g.prototype._compile=function(e,t){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=t||a,!0===e.schema.$async&&(a.$async=!0),a;var r,n;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{n=o.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=n,e.refs=n.refs,e.refVal=n.refVal,e.root=n.root,n;function a(){var t=e.validate,r=t.apply(this,arguments);return a.errors=t.errors,r}},g.prototype.compileAsync=r(4686);var d=r(73635);g.prototype.addKeyword=d.add,g.prototype.getKeyword=d.get,g.prototype.removeKeyword=d.remove,g.prototype.validateKeyword=d.validate;var h=r(64551);g.ValidationError=h.Validation,g.MissingRefError=h.MissingRef,g.$dataMetaSchema=u;var f="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=p.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:E,warn:E,error:E};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new a,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=function(e){switch(e.schemaId){case"auto":return k;case"id":return w;default:return x}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=p.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(53420),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var o=r(8198);e._opts.$data&&(o=u(o,v));e.addMetaSchema(o,f,!0),e._refs["http://json-schema.org/schema"]=f}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function y(e,t){return t=n.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var o in t){var n=t[o];n.meta||r&&!r.test(o)||(e._cache.del(n.cacheKey),delete t[o])}}function w(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function x(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function k(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function _(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function E(){}},94006:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},4686:(e,t,r)=>{"use strict";var o=r(64551).MissingRef;e.exports=function e(t,r,n){var a=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(n=r,r=void 0);var i=s(t).then((function(){var e=a._addSchema(t,void 0,r);return e.validate||c(e)}));n&&i.then((function(e){n(null,e)}),n);return i;function s(t){var r=t.$schema;return r&&!a.getSchema(r)?e.call(a,{$ref:r},!0):Promise.resolve()}function c(e){try{return a._compile(e)}catch(t){if(t instanceof o)return function(t){var o=t.missingSchema;if(l(o))throw new Error("Schema "+o+" is loaded but "+t.missingRef+" cannot be resolved");var n=a._loadingSchemas[o];n||(n=a._loadingSchemas[o]=a._opts.loadSchema(o)).then(i,i);return n.then((function(e){if(!l(o))return s(e).then((function(){l(o)||a.addSchema(e,o,void 0,r)}))})).then((function(){return c(e)}));function i(){delete a._loadingSchemas[o]}function l(e){return a._refs[e]||a._schemas[e]}}(t);throw t}}}},4186:(e,t,r)=>{"use strict";e.exports=r(32017)},64551:(e,t,r)=>{"use strict";var o=r(91030);function n(e,t,r){this.message=r||n.message(e,t),this.missingRef=o.url(e,t),this.missingSchema=o.normalizeId(o.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:a((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:a(n)},n.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},45950:(e,t,r)=>{"use strict";var o=r(96740),n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,f=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",o.copy(m[e])}function v(e){var t=e.match(n);if(!t)return!1;var r=+t[1],o=+t[2],i=+t[3];return o>=1&&o<=12&&i>=1&&i<=(2==o&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:a[o])}function g(e,t){var r=e.match(i);if(!r)return!1;var o=r[1],n=r[2],a=r[3],s=r[5];return(o<=23&&n<=59&&a<=59||23==o&&59==n&&60==a)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:x,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":f},m.full={date:v,time:g,"date-time":function(e){var t=e.split(y);return 2==t.length&&v(t[0])&&g(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:x,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":f};var y=/t|\s/i;var b=/\/|:/;var w=/[^\\]\\Z/;function x(e){if(w.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},7354:(e,t,r)=>{"use strict";var o=r(91030),n=r(96740),a=r(64551),i=r(72492),s=r(51873),c=n.ucs2length,l=r(32017),u=a.Validation;function p(e,t,r){var o=h.call(this,e,t,r);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:t,baseId:r},{index:o,compiling:!1})}function d(e,t,r){var o=h.call(this,e,t,r);o>=0&&this._compilations.splice(o,1)}function h(e,t,r){for(var o=0;o<this._compilations.length;o++){var n=this._compilations[o];if(n.schema==e&&n.root==t&&n.baseId==r)return o}return-1}function f(e,t){return"var pattern"+e+" = new RegExp("+n.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function v(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function g(e){return"var customRule"+e+" = customRules["+e+"];"}function y(e,t){if(!e.length)return"";for(var r="",o=0;o<e.length;o++)r+=t(o,e);return r}e.exports=function e(t,r,h,b){var w=this,x=this._opts,k=[void 0],_={},E=[],S={},P=[],T={},O=[];r=r||{schema:t,refVal:k,refs:_};var j=p.call(this,t,r,b),R=this._compilations[j.index];if(j.compiling)return R.callValidate=function e(){var t=R.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var I=this._formats,C=this.RULES;try{var A=$(t,r,h,b);R.validate=A;var N=R.callValidate;return N&&(N.schema=A.schema,N.errors=null,N.refs=A.refs,N.refVal=A.refVal,N.root=A.root,N.$async=A.$async,x.sourceCode&&(N.source=A.source)),A}finally{d.call(this,t,r,b)}function $(t,i,p,d){var h=!i||i&&i.schema==t;if(i.schema!=r.schema)return e.call(w,t,i,p,d);var b,S=!0===t.$async,T=s({isTop:!0,schema:t,isRoot:h,baseId:d,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:a.MissingRef,RULES:C,validate:s,util:n,resolve:o,resolveRef:L,usePattern:B,useDefault:q,useCustomRule:F,opts:x,formats:I,logger:w.logger,self:w});T=y(k,v)+y(E,f)+y(P,m)+y(O,g)+T,x.processCode&&(T=x.processCode(T,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",T)(w,C,I,r,k,P,O,l,c,u),k[0]=b}catch(e){throw w.logger.error("Error compiling schema, function code:",T),e}return b.schema=t,b.errors=null,b.refs=_,b.refVal=k,b.root=h?b:i,S&&(b.$async=!0),!0===x.sourceCode&&(b.source={code:T,patterns:E,defaults:P}),b}function L(t,n,a){n=o.url(t,n);var i,s,c=_[n];if(void 0!==c)return z(i=k[c],s="refVal["+c+"]");if(!a&&r.refs){var l=r.refs[n];if(void 0!==l)return z(i=r.refVal[l],s=D(n,i))}s=D(n);var u=o.call(w,$,r,n);if(void 0===u){var p=h&&h[n];p&&(u=o.inlineRef(p,x.inlineRefs)?p:e.call(w,p,r,h,t))}if(void 0!==u)return function(e,t){var r=_[e];k[r]=t}(n,u),z(u,s);!function(e){delete _[e]}(n)}function D(e,t){var r=k.length;return k[r]=t,_[e]=r,"refVal"+r}function z(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function B(e){var t=S[e];return void 0===t&&(t=S[e]=E.length,E[t]=e),"pattern"+t}function q(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return n.toQuotedString(e);case"object":if(null===e)return"null";var t=i(e),r=T[t];return void 0===r&&(r=T[t]=P.length,P[r]=e),"default"+r}}function F(e,t,r,o){if(!1!==w._opts.validateSchema){var n=e.definition.dependencies;if(n&&!n.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+n.join(","));var a=e.definition.validateSchema;if(a)if(!a(t)){var i="keyword schema is invalid: "+w.errorsText(a.errors);if("log"!=w._opts.validateSchema)throw new Error(i);w.logger.error(i)}}var s,c=e.definition.compile,l=e.definition.inline,u=e.definition.macro;if(c)s=c.call(w,t,r,o);else if(u)s=u.call(w,t,r,o),!1!==x.validateSchema&&w.validateSchema(s,!0);else if(l)s=l.call(w,o,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=O.length;return O[p]=s,{code:"customRule"+p,validate:s}}}},91030:(e,t,r)=>{"use strict";var o=r(46579),n=r(32017),a=r(96740),i=r(2585),s=r(7106);function c(e,t,r){var o=this._refs[r];if("string"==typeof o){if(!this._refs[o])return c.call(this,e,t,o);o=this._refs[o]}if((o=o||this._schemas[r])instanceof i)return f(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var n,a,s,u=l.call(this,t,r);return u&&(n=u.schema,t=u.root,s=u.baseId),n instanceof i?a=n.validate||e.call(this,n.schema,t,void 0,s):void 0!==n&&(a=f(n,this._opts.inlineRefs)?n:e.call(this,n,t,void 0,s)),a}function l(e,t){var r=o.parse(t),n=y(r),a=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||n!==a){var s=w(n),c=this._refs[s];if("string"==typeof c)return u.call(this,e,c,r);if(c instanceof i)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof i))return;if(c.validate||this._compile(c),s==w(t))return{schema:c,root:e,baseId:a};e=c}if(!e.schema)return;a=g(this._getId(e.schema))}return d.call(this,r,a,e.schema,e)}function u(e,t,r){var o=l.call(this,e,t);if(o){var n=o.schema,a=o.baseId;e=o.root;var i=this._getId(n);return i&&(a=x(a,i)),d.call(this,r,a,n,e)}}e.exports=c,c.normalizeId=w,c.fullPath=g,c.url=x,c.ids=function(e){var t=w(this._getId(e)),r={"":t},i={"":g(t,!1)},c={},l=this;return s(e,{allKeys:!0},(function(e,t,s,u,p,d,h){if(""!==t){var f=l._getId(e),m=r[u],v=i[u]+"/"+p;if(void 0!==h&&(v+="/"+("number"==typeof h?h:a.escapeFragment(h))),"string"==typeof f){f=m=w(m?o.resolve(m,f):f);var g=l._refs[f];if("string"==typeof g&&(g=l._refs[g]),g&&g.schema){if(!n(e,g.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=w(v))if("#"==f[0]){if(c[f]&&!n(e,c[f]))throw new Error('id "'+f+'" resolves to more than one schema');c[f]=e}else l._refs[f]=v}r[t]=m,i[t]=v}})),c},c.inlineRef=f,c.schema=l;var p=a.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function d(e,t,r,o){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var n=e.fragment.split("/"),i=1;i<n.length;i++){var s=n[i];if(s){if(void 0===(r=r[s=a.unescapeFragment(s)]))break;var c;if(!p[s]&&((c=this._getId(r))&&(t=x(t,c)),r.$ref)){var u=x(t,r.$ref),d=l.call(this,o,u);d&&(r=d.schema,o=d.root,t=d.baseId)}}}return void 0!==r&&r!==o.schema?{schema:r,root:o,baseId:t}:void 0}}var h=a.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function f(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?v(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var o in e){if("$ref"==o)return!1;if("object"==typeof(t=e[o])&&!m(t))return!1}return!0}function v(e){var t,r=0;if(Array.isArray(e)){for(var o=0;o<e.length;o++)if("object"==typeof(t=e[o])&&(r+=v(t)),r==1/0)return 1/0}else for(var n in e){if("$ref"==n)return 1/0;if(h[n])r++;else if("object"==typeof(t=e[n])&&(r+=v(t)+1),r==1/0)return 1/0}return r}function g(e,t){return!1!==t&&(e=w(e)),y(o.parse(e))}function y(e){return o.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function w(e){return e?e.replace(b,""):""}function x(e,t){return t=w(t),o.resolve(e,t)}},73845:(e,t,r)=>{"use strict";var o=r(27403),n=r(96740).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=n(t),e.types=n(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var n;if("object"==typeof r){var a=Object.keys(r)[0];n=r[a],r=a,n.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:o[r],implements:n}})),e.all.$comment={keyword:"$comment",code:o.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=n(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},2585:(e,t,r)=>{"use strict";var o=r(96740);e.exports=function(e){o.copy(e,this)}},29853:e=>{"use strict";e.exports=function(e){for(var t,r=0,o=e.length,n=0;n<o;)r++,(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<o&&56320==(64512&(t=e.charCodeAt(n)))&&n++;return r}},96740:(e,t,r)=>{"use strict";function o(e,t,r,o){var n=o?" !== ":" === ",a=o?" || ":" && ",i=o?"!":"",s=o?"":"!";switch(e){case"null":return t+n+"null";case"array":return i+"Array.isArray("+t+")";case"object":return"("+i+t+a+"typeof "+t+n+'"object"'+a+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+a+s+"("+t+" % 1)"+a+t+n+t+(r?a+i+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+n+'"'+e+'"'+(r?a+i+"isFinite("+t+")":"")+")";default:return"typeof "+t+n+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:o,checkDataTypes:function(e,t,r){if(1===e.length)return o(e[0],t,r,!0);var n="",i=a(e);for(var s in i.array&&i.object&&(n=i.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+o(s,t,r,!0);return n},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],o=0;o<t.length;o++){var a=t[o];(n[a]||"array"===e&&"array"===a)&&(r[r.length]=a)}if(r.length)return r}else{if(n[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:a,getProperty:c,escapeQuotes:l,equal:r(32017),ucs2length:r(29853),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var o in e)if(o!=r&&t[o])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:u,getPathExpr:function(e,t,r,o){return h(e,r?"'/' + "+t+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var o=u(r?"/"+f(t):c(t));return h(e,o)},getData:function(e,t,r){var o,n,a,i;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);n=e,a="rootData"}else{if(!(i=e.match(d)))throw new Error("Invalid JSON-pointer: "+e);if(o=+i[1],"#"==(n=i[2])){if(o>=t)throw new Error("Cannot access property/index "+o+" levels up, current level is "+t);return r[t-o]}if(o>t)throw new Error("Cannot access data "+o+" levels up, current level is "+t);if(a="data"+(t-o||""),!n)return a}for(var s=a,l=n.split("/"),u=0;u<l.length;u++){var h=l[u];h&&(a+=c(m(h)),s+=" && "+a)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(f(e))},escapeJsonPointer:f};var n=a(["string","number","integer","boolean","null"]);function a(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var i=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":i.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function u(e){return"'"+l(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,d=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function f(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},24278:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var o=0;o<r.length;o++){e=JSON.parse(JSON.stringify(e));var n,a=r[o].split("/"),i=e;for(n=1;n<a.length;n++)i=i[a[n]];for(n=0;n<t.length;n++){var s=t[n],c=i[s];c&&(i[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},22897:(e,t,r)=>{"use strict";var o=r(8198);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:o.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:o.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},74667:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&s&&s.$data;d?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s;var h="maximum"==t,f=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[f],v=e.opts.$data&&m&&m.$data,g=h?"<":">",y=h?">":"<",b=void 0;if(!d&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!v&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(f+" must be number or boolean");if(v){var w=e.util.getData(m.$data,i,e.dataPathArr),x="exclusive"+a,k="exclType"+a,_="exclIsNumber"+a,E="' + "+(T="op"+a)+" + '";n+=" var schemaExcl"+a+" = "+w+"; ",n+=" var "+x+"; var "+k+" = typeof "+(w="schemaExcl"+a)+"; if ("+k+" != 'boolean' && "+k+" != 'undefined' && "+k+" != 'number') { ";var S;b=f;(S=S||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var P=n;n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+P+"]); ":n+=" validate.errors = ["+P+"]; return false; ":n+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'number') || "),n+=" "+k+" == 'number' ? ( ("+x+" = "+o+" === undefined || "+w+" "+g+"= "+o+") ? "+p+" "+y+"= "+w+" : "+p+" "+y+" "+o+" ) : ( ("+x+" = "+w+" === true) ? "+p+" "+y+"= "+o+" : "+p+" "+y+" "+o+" ) || "+p+" !== "+p+") { var op"+a+" = "+x+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(b=f,l=e.errSchemaPath+"/"+f,o=w,d=v)}else{E=g;if((_="number"==typeof m)&&d){var T="'"+E+"'";n+=" if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'number') || "),n+=" ( "+o+" === undefined || "+m+" "+g+"= "+o+" ? "+p+" "+y+"= "+m+" : "+p+" "+y+" "+o+" ) || "+p+" !== "+p+") { "}else{_&&void 0===s?(x=!0,b=f,l=e.errSchemaPath+"/"+f,o=m,y+="="):(_&&(o=Math[h?"min":"max"](m,s)),m===(!_||o)?(x=!0,b=f,l=e.errSchemaPath+"/"+f,y+="="):(x=!1,E+="="));T="'"+E+"'";n+=" if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'number') || "),n+=" "+p+" "+y+" "+o+" || "+p+" !== "+p+") { "}}b=b||t,(S=S||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+T+", limit: "+o+", exclusive: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be "+E+" ",n+=d?"' + "+o:o+"'"),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";P=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+P+"]); ":n+=" validate.errors = ["+P+"]; return false; ":n+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},52119:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&s&&s.$data;if(d?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");n+="if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'number') || "),n+=" "+p+".length "+("maxItems"==t?">":"<")+" "+o+") { ";var h=t,f=f||[];f.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have ",n+="maxItems"==t?"more":"fewer",n+=" than ",n+=d?"' + "+o+" + '":""+s,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=f.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},47935:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&s&&s.$data;if(d?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");var h="maxLength"==t?">":"<";n+="if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'number') || "),!1===e.opts.unicode?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+h+" "+o+") { ";var f=t,m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(f||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be ",n+="maxLength"==t?"longer":"shorter",n+=" than ",n+=d?"' + "+o+" + '":""+s,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},51298:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&s&&s.$data;if(d?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");n+="if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'number') || "),n+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+o+") { ";var h=t,f=f||[];f.push(n),n="",!1!==e.createErrors?(n+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have ",n+="maxProperties"==t?"more":"fewer",n+=" than ",n+=d?"' + "+o+" + '":""+s,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=f.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},80353:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.schema[t],a=e.schemaPath+e.util.getProperty(t),i=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),l="";c.level++;var u="valid"+c.level,p=c.baseId,d=!0,h=n;if(h)for(var f,m=-1,v=h.length-1;m<v;)f=h[m+=1],(e.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:e.util.schemaHasRules(f,e.RULES.all))&&(d=!1,c.schema=f,c.schemaPath=a+"["+m+"]",c.errSchemaPath=i+"/"+m,o+=" "+e.validate(c)+" ",c.baseId=p,s&&(o+=" if ("+u+") { ",l+="}"));return s&&(o+=d?" if (true) { ":" "+l.slice(0,-1)+" "),o}},29480:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d="errs__"+n,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,v=i.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(v){var g=h.baseId;o+=" var "+d+" = errors; var "+p+" = false; ";var y=e.compositeRule;e.compositeRule=h.compositeRule=!0;var b=i;if(b)for(var w,x=-1,k=b.length-1;x<k;)w=b[x+=1],h.schema=w,h.schemaPath=s+"["+x+"]",h.errSchemaPath=c+"/"+x,o+=" "+e.validate(h)+" ",h.baseId=g,o+=" "+p+" = "+p+" || "+m+"; if (!"+p+") { ",f+="}";e.compositeRule=h.compositeRule=y,o+=" "+f+" if (!"+p+") { var err = ",!1!==e.createErrors?(o+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; "),o+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(o+=" } ")}else l&&(o+=" if (true) { ");return o}},14278:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.schema[t],a=e.errSchemaPath+"/"+t,i=(e.opts.allErrors,e.util.toQuotedString(n));return!0===e.opts.$comment?o+=" console.log("+i+");":"function"==typeof e.opts.$comment&&(o+=" self._opts.$comment("+i+", "+e.util.toQuotedString(a)+", validate.root.schema);"),o}},10224:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d=e.opts.$data&&i&&i.$data;d&&(o+=" var schema"+n+" = "+e.util.getData(i.$data,a,e.dataPathArr)+"; "),d||(o+=" var schema"+n+" = validate.schema"+s+";"),o+="var "+p+" = equal("+u+", schema"+n+"); if (!"+p+") { ";var h=h||[];h.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be equal to constant' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var f=o;return o=h.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+f+"]); ":o+=" validate.errors = ["+f+"]; return false; ":o+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" }",l&&(o+=" else { "),o}},35674:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d="errs__"+n,h=e.util.copy(e);h.level++;var f="valid"+h.level,m="i"+n,v=h.dataLevel=e.dataLevel+1,g="data"+v,y=e.baseId,b=e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all);if(o+="var "+d+" = errors;var "+p+";",b){var w=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=i,h.schemaPath=s,h.errSchemaPath=c,o+=" var "+f+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var x=u+"["+m+"]";h.dataPathArr[v]=m;var k=e.validate(h);h.baseId=y,e.util.varOccurences(k,g)<2?o+=" "+e.util.varReplace(k,g,x)+" ":o+=" var "+g+" = "+x+"; "+k+" ",o+=" if ("+f+") break; } ",e.compositeRule=h.compositeRule=w,o+=" if (!"+f+") {"}else o+=" if ("+u+".length == 0) {";var _=_||[];_.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'should contain a valid item' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var E=o;return o=_.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+E+"]); ":o+=" validate.errors = ["+E+"]; return false; ":o+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { ",b&&(o+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } "),e.opts.allErrors&&(o+=" } "),o}},7992:e=>{"use strict";e.exports=function(e,t,r){var o,n,a=" ",i=e.level,s=e.dataLevel,c=e.schema[t],l=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,d="data"+(s||""),h="valid"+i,f="errs__"+i,m=e.opts.$data&&c&&c.$data;m?(a+=" var schema"+i+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",n="schema"+i):n=c;var v,g,y,b,w,x=this,k="definition"+i,_=x.definition,E="";if(m&&_.$data){w="keywordValidate"+i;var S=_.validateSchema;a+=" var "+k+" = RULES.custom['"+t+"'].definition; var "+w+" = "+k+".validate;"}else{if(!(b=e.useCustomRule(x,c,e.schema,e)))return;n="validate.schema"+l,w=b.code,v=_.compile,g=_.inline,y=_.macro}var P=w+".errors",T="i"+i,O="ruleErr"+i,j=_.async;if(j&&!e.async)throw new Error("async keyword in sync schema");if(g||y||(a+=P+" = null;"),a+="var "+f+" = errors;var "+h+";",m&&_.$data&&(E+="}",a+=" if ("+n+" === undefined) { "+h+" = true; } else { ",S&&(E+="}",a+=" "+h+" = "+k+".validateSchema("+n+"); if ("+h+") { ")),g)_.statements?a+=" "+b.validate+" ":a+=" "+h+" = "+b.validate+"; ";else if(y){var R=e.util.copy(e);E="";R.level++;var I="valid"+R.level;R.schema=b.validate,R.schemaPath="";var C=e.compositeRule;e.compositeRule=R.compositeRule=!0;var A=e.validate(R).replace(/validate\.schema/g,w);e.compositeRule=R.compositeRule=C,a+=" "+A}else{(D=D||[]).push(a),a="",a+=" "+w+".call( ",e.opts.passContext?a+="this":a+="self",v||!1===_.schema?a+=" , "+d+" ":a+=" , "+n+" , "+d+" , validate.schema"+e.schemaPath+" ",a+=" , (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);var N=s?"data"+(s-1||""):"parentData",$=s?e.dataPathArr[s]:"parentDataProperty",L=a+=" , "+N+" , "+$+" , rootData ) ";a=D.pop(),!1===_.errors?(a+=" "+h+" = ",j&&(a+="await "),a+=L+"; "):a+=j?" var "+(P="customErrors"+i)+" = null; try { "+h+" = await "+L+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+P+" = e.errors; else throw e; } ":" "+P+" = null; "+h+" = "+L+"; "}if(_.modifying&&(a+=" if ("+N+") "+d+" = "+N+"["+$+"];"),a+=""+E,_.valid)p&&(a+=" if (true) { ");else{var D;a+=" if ( ",void 0===_.valid?(a+=" !",a+=y?""+I:""+h):a+=" "+!_.valid+" ",a+=") { ",o=x.keyword,(D=D||[]).push(a),a="",(D=D||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(o||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ";var z=a;a=D.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+z+"]); ":a+=" validate.errors = ["+z+"]; return false; ":a+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=a;a=D.pop(),g?_.errors?"full"!=_.errors&&(a+=" for (var "+T+"="+f+"; "+T+"<errors; "+T+"++) { var "+O+" = vErrors["+T+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(a+=" "+O+".schema = "+n+"; "+O+".data = "+d+"; "),a+=" } "):!1===_.errors?a+=" "+B+" ":(a+=" if ("+f+" == errors) { "+B+" } else { for (var "+T+"="+f+"; "+T+"<errors; "+T+"++) { var "+O+" = vErrors["+T+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+O+".schemaPath === undefined) { "+O+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(a+=" "+O+".schema = "+n+"; "+O+".data = "+d+"; "),a+=" } } "):y?(a+=" var err = ",!1!==e.createErrors?(a+=" { keyword: '"+(o||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+x.keyword+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; ")):!1===_.errors?a+=" "+B+" ":(a+=" if (Array.isArray("+P+")) { if (vErrors === null) vErrors = "+P+"; else vErrors = vErrors.concat("+P+"); errors = vErrors.length; for (var "+T+"="+f+"; "+T+"<errors; "+T+"++) { var "+O+" = vErrors["+T+"]; if ("+O+".dataPath === undefined) "+O+".dataPath = (dataPath || '') + "+e.errorPath+"; "+O+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(a+=" "+O+".schema = "+n+"; "+O+".data = "+d+"; "),a+=" } } else { "+B+" } "),a+=" } ",p&&(a+=" else { ")}return a}},41926:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="errs__"+n,d=e.util.copy(e),h="";d.level++;var f="valid"+d.level,m={},v={},g=e.opts.ownProperties;for(x in i)if("__proto__"!=x){var y=i[x],b=Array.isArray(y)?v:m;b[x]=y}o+="var "+p+" = errors;";var w=e.errorPath;for(var x in o+="var missing"+n+";",v)if((b=v[x]).length){if(o+=" if ( "+u+e.util.getProperty(x)+" !== undefined ",g&&(o+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(x)+"') "),l){o+=" && ( ";var k=b;if(k)for(var _=-1,E=k.length-1;_<E;){R=k[_+=1],_&&(o+=" || "),o+=" ( ( "+(N=u+(A=e.util.getProperty(R)))+" === undefined ",g&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),o+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:A)+") ) "}o+=")) { ";var S="missing"+n,P="' + "+S+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,S,!0):w+" + "+S);var T=T||[];T.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+P+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should have ",1==b.length?o+="property "+e.util.escapeQuotes(b[0]):o+="properties "+e.util.escapeQuotes(b.join(", ")),o+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var O=o;o=T.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+O+"]); ":o+=" validate.errors = ["+O+"]; return false; ":o+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{o+=" ) { ";var j=b;if(j)for(var R,I=-1,C=j.length-1;I<C;){R=j[I+=1];var A=e.util.getProperty(R),N=(P=e.util.escapeQuotes(R),u+A);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,R,e.opts.jsonPointers)),o+=" if ( "+N+" === undefined ",g&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),o+=") { var err = ",!1!==e.createErrors?(o+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+P+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(o+=" , message: 'should have ",1==b.length?o+="property "+e.util.escapeQuotes(b[0]):o+="properties "+e.util.escapeQuotes(b.join(", ")),o+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}o+=" } ",l&&(h+="}",o+=" else { ")}e.errorPath=w;var $=d.baseId;for(var x in m){y=m[x];(e.opts.strictKeywords?"object"==typeof y&&Object.keys(y).length>0||!1===y:e.util.schemaHasRules(y,e.RULES.all))&&(o+=" "+f+" = true; if ( "+u+e.util.getProperty(x)+" !== undefined ",g&&(o+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(x)+"') "),o+=") { ",d.schema=y,d.schemaPath=s+e.util.getProperty(x),d.errSchemaPath=c+"/"+e.util.escapeFragment(x),o+=" "+e.validate(d)+" ",d.baseId=$,o+=" } ",l&&(o+=" if ("+f+") { ",h+="}"))}return l&&(o+=" "+h+" if ("+p+" == errors) {"),o}},80598:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d=e.opts.$data&&i&&i.$data;d&&(o+=" var schema"+n+" = "+e.util.getData(i.$data,a,e.dataPathArr)+"; ");var h="i"+n,f="schema"+n;d||(o+=" var "+f+" = validate.schema"+s+";"),o+="var "+p+";",d&&(o+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),o+=p+" = false;for (var "+h+"=0; "+h+"<"+f+".length; "+h+"++) if (equal("+u+", "+f+"["+h+"])) { "+p+" = true; break; }",d&&(o+=" } "),o+=" if (!"+p+") { ";var m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var v=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" }",l&&(o+=" else { "),o}},80400:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||"");if(!1===e.opts.format)return l&&(o+=" if (true) { "),o;var p,d=e.opts.$data&&i&&i.$data;d?(o+=" var schema"+n+" = "+e.util.getData(i.$data,a,e.dataPathArr)+"; ",p="schema"+n):p=i;var h=e.opts.unknownFormats,f=Array.isArray(h);if(d){o+=" var "+(m="format"+n)+" = formats["+p+"]; var "+(v="isObject"+n)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(g="formatType"+n)+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(o+=" var async"+n+" = "+m+".async; "),o+=" "+m+" = "+m+".validate; } if ( ",d&&(o+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),o+=" (","ignore"!=h&&(o+=" ("+p+" && !"+m+" ",f&&(o+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),o+=") || "),o+=" ("+m+" && "+g+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?o+=" (async"+n+" ? await "+m+"("+u+") : "+m+"("+u+")) ":o+=" "+m+"("+u+") ",o+=" : "+m+".test("+u+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==h)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),l&&(o+=" if (true) { "),o;if(f&&h.indexOf(i)>=0)return l&&(o+=" if (true) { "),o;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,g=(v="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(v){var y=!0===m.async;m=m.validate}if(g!=r)return l&&(o+=" if (true) { "),o;if(y){if(!e.async)throw new Error("async format in sync schema");o+=" if (!(await "+(b="formats"+e.util.getProperty(i)+".validate")+"("+u+"))) { "}else{o+=" if (! ";var b="formats"+e.util.getProperty(i);v&&(b+=".validate"),o+="function"==typeof m?" "+b+"("+u+") ":" "+b+".test("+u+") ",o+=") { "}}var w=w||[];w.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",o+=d?""+p:""+e.util.toQuotedString(i),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match format \"",o+=d?"' + "+p+" + '":""+e.util.escapeQuotes(i),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+s:""+e.util.toQuotedString(i),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var x=o;return o=w.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+x+"]); ":o+=" validate.errors = ["+x+"]; return false; ":o+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},88532:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d="errs__"+n,h=e.util.copy(e);h.level++;var f="valid"+h.level,m=e.schema.then,v=e.schema.else,g=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),y=void 0!==v&&(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all)),b=h.baseId;if(g||y){var w;h.createErrors=!1,h.schema=i,h.schemaPath=s,h.errSchemaPath=c,o+=" var "+d+" = errors; var "+p+" = true; ";var x=e.compositeRule;e.compositeRule=h.compositeRule=!0,o+=" "+e.validate(h)+" ",h.baseId=b,h.createErrors=!0,o+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=x,g?(o+=" if ("+f+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",o+=" "+e.validate(h)+" ",h.baseId=b,o+=" "+p+" = "+f+"; ",g&&y?o+=" var "+(w="ifClause"+n)+" = 'then'; ":w="'then'",o+=" } ",y&&(o+=" else { ")):o+=" if (!"+f+") { ",y&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",o+=" "+e.validate(h)+" ",h.baseId=b,o+=" "+p+" = "+f+"; ",g&&y?o+=" var "+(w="ifClause"+n)+" = 'else'; ":w="'else'",o+=" } "),o+=" if (!"+p+") { var err = ",!1!==e.createErrors?(o+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+w+" } ",!1!==e.opts.messages&&(o+=" , message: 'should match \"' + "+w+" + '\" schema' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; "),o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},27403:(e,t,r)=>{"use strict";e.exports={$ref:r(6990),allOf:r(80353),anyOf:r(29480),$comment:r(14278),const:r(10224),contains:r(35674),dependencies:r(41926),enum:r(80598),format:r(80400),if:r(88532),items:r(54371),maximum:r(74667),minimum:r(74667),maxItems:r(52119),minItems:r(52119),maxLength:r(47935),minLength:r(47935),maxProperties:r(51298),minProperties:r(51298),multipleOf:r(99294),not:r(48914),oneOf:r(95326),pattern:r(8317),properties:r(41374),propertyNames:r(23032),required:r(47850),uniqueItems:r(85898),validate:r(51873)}},54371:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d="errs__"+n,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,v="i"+n,g=h.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId;if(o+="var "+d+" = errors;var "+p+";",Array.isArray(i)){var w=e.schema.additionalItems;if(!1===w){o+=" "+p+" = "+u+".length <= "+i.length+"; ";var x=c;c=e.errSchemaPath+"/additionalItems",o+=" if (!"+p+") { ";var k=k||[];k.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+i.length+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have more than "+i.length+" items' "),e.opts.verbose&&(o+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var _=o;o=k.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+_+"]); ":o+=" validate.errors = ["+_+"]; return false; ":o+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",c=x,l&&(f+="}",o+=" else { ")}var E=i;if(E)for(var S,P=-1,T=E.length-1;P<T;)if(S=E[P+=1],e.opts.strictKeywords?"object"==typeof S&&Object.keys(S).length>0||!1===S:e.util.schemaHasRules(S,e.RULES.all)){o+=" "+m+" = true; if ("+u+".length > "+P+") { ";var O=u+"["+P+"]";h.schema=S,h.schemaPath=s+"["+P+"]",h.errSchemaPath=c+"/"+P,h.errorPath=e.util.getPathExpr(e.errorPath,P,e.opts.jsonPointers,!0),h.dataPathArr[g]=P;var j=e.validate(h);h.baseId=b,e.util.varOccurences(j,y)<2?o+=" "+e.util.varReplace(j,y,O)+" ":o+=" var "+y+" = "+O+"; "+j+" ",o+=" } ",l&&(o+=" if ("+m+") { ",f+="}")}if("object"==typeof w&&(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))){h.schema=w,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",o+=" "+m+" = true; if ("+u+".length > "+i.length+") { for (var "+v+" = "+i.length+"; "+v+" < "+u+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);O=u+"["+v+"]";h.dataPathArr[g]=v;j=e.validate(h);h.baseId=b,e.util.varOccurences(j,y)<2?o+=" "+e.util.varReplace(j,y,O)+" ":o+=" var "+y+" = "+O+"; "+j+" ",l&&(o+=" if (!"+m+") break; "),o+=" } } ",l&&(o+=" if ("+m+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){h.schema=i,h.schemaPath=s,h.errSchemaPath=c,o+=" for (var "+v+" = 0; "+v+" < "+u+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);O=u+"["+v+"]";h.dataPathArr[g]=v;j=e.validate(h);h.baseId=b,e.util.varOccurences(j,y)<2?o+=" "+e.util.varReplace(j,y,O)+" ":o+=" var "+y+" = "+O+"; "+j+" ",l&&(o+=" if (!"+m+") break; "),o+=" }"}return l&&(o+=" "+f+" if ("+d+" == errors) {"),o}},99294:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&s&&s.$data;if(d?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s,!d&&"number"!=typeof s)throw new Error(t+" must be number");n+="var division"+a+";if (",d&&(n+=" "+o+" !== undefined && ( typeof "+o+" != 'number' || "),n+=" (division"+a+" = "+p+" / "+o+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+a+" !== parseInt(division"+a+") ",n+=" ) ",d&&(n+=" ) "),n+=" ) { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be multiple of ",n+=d?"' + "+o:o+"'"),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},48914:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="errs__"+n,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){d.schema=i,d.schemaPath=s,d.errSchemaPath=c,o+=" var "+p+" = errors; ";var f,m=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1,d.opts.allErrors&&(f=d.opts.allErrors,d.opts.allErrors=!1),o+=" "+e.validate(d)+" ",d.createErrors=!0,f&&(d.opts.allErrors=f),e.compositeRule=d.compositeRule=m,o+=" if ("+h+") { ";var v=v||[];v.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be valid' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var g=o;o=v.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(o+=" } ")}else o+=" var err = ",!1!==e.createErrors?(o+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be valid' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(o+=" if (false) { ");return o}},95326:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d="errs__"+n,h=e.util.copy(e),f="";h.level++;var m="valid"+h.level,v=h.baseId,g="prevValid"+n,y="passingSchemas"+n;o+="var "+d+" = errors , "+g+" = false , "+p+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var w=i;if(w)for(var x,k=-1,_=w.length-1;k<_;)x=w[k+=1],(e.opts.strictKeywords?"object"==typeof x&&Object.keys(x).length>0||!1===x:e.util.schemaHasRules(x,e.RULES.all))?(h.schema=x,h.schemaPath=s+"["+k+"]",h.errSchemaPath=c+"/"+k,o+=" "+e.validate(h)+" ",h.baseId=v):o+=" var "+m+" = true; ",k&&(o+=" if ("+m+" && "+g+") { "+p+" = false; "+y+" = ["+y+", "+k+"]; } else { ",f+="}"),o+=" if ("+m+") { "+p+" = "+g+" = true; "+y+" = "+k+"; }";return e.compositeRule=h.compositeRule=b,o+=f+"if (!"+p+") { var err = ",!1!==e.createErrors?(o+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(o+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; "),o+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(o+=" } "),o}},8317:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d=e.opts.$data&&s&&s.$data;d?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s,n+="if ( ",d&&(n+=" ("+o+" !== undefined && typeof "+o+" != 'string') || "),n+=" !"+(d?"(new RegExp("+o+"))":e.usePattern(s))+".test("+p+") ) { ";var h=h||[];h.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",n+=d?""+o:""+e.util.toQuotedString(s),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match pattern \"",n+=d?"' + "+o+" + '":""+e.util.escapeQuotes(s),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=d?"validate.schema"+c:""+e.util.toQuotedString(s),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var f=n;return n=h.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+f+"]); ":n+=" validate.errors = ["+f+"]; return false; ":n+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",u&&(n+=" else { "),n}},41374:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="errs__"+n,d=e.util.copy(e),h="";d.level++;var f="valid"+d.level,m="key"+n,v="idx"+n,g=d.dataLevel=e.dataLevel+1,y="data"+g,b="dataProperties"+n,w=Object.keys(i||{}).filter(A),x=e.schema.patternProperties||{},k=Object.keys(x).filter(A),_=e.schema.additionalProperties,E=w.length||k.length,S=!1===_,P="object"==typeof _&&Object.keys(_).length,T=e.opts.removeAdditional,O=S||P||T,j=e.opts.ownProperties,R=e.baseId,I=e.schema.required;if(I&&(!e.opts.$data||!I.$data)&&I.length<e.opts.loopRequired)var C=e.util.toHash(I);function A(e){return"__proto__"!==e}if(o+="var "+p+" = errors;var "+f+" = true;",j&&(o+=" var "+b+" = undefined;"),O){if(o+=j?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; ":" for (var "+m+" in "+u+") { ",E){if(o+=" var isAdditional"+n+" = !(false ",w.length)if(w.length>8)o+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var N=w;if(N)for(var $=-1,L=N.length-1;$<L;)J=N[$+=1],o+=" || "+m+" == "+e.util.toQuotedString(J)+" "}if(k.length){var D=k;if(D)for(var z=-1,B=D.length-1;z<B;)ae=D[z+=1],o+=" || "+e.usePattern(ae)+".test("+m+") "}o+=" ); if (isAdditional"+n+") { "}if("all"==T)o+=" delete "+u+"["+m+"]; ";else{var q=e.errorPath,F="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),S)if(T)o+=" delete "+u+"["+m+"]; ";else{o+=" "+f+" = false; ";var M=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+F+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is an invalid additional property":o+="should NOT have additional properties",o+="' "),e.opts.verbose&&(o+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var U=o;o=re.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+U+"]); ":o+=" validate.errors = ["+U+"]; return false; ":o+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=M,l&&(o+=" break; ")}else if(P)if("failing"==T){o+=" var "+p+" = errors; ";var H=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=_,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=u+"["+m+"]";d.dataPathArr[g]=m;var K=e.validate(d);d.baseId=R,e.util.varOccurences(K,y)<2?o+=" "+e.util.varReplace(K,y,V)+" ":o+=" var "+y+" = "+V+"; "+K+" ",o+=" if (!"+f+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ",e.compositeRule=d.compositeRule=H}else{d.schema=_,d.schemaPath=e.schemaPath+".additionalProperties",d.errSchemaPath=e.errSchemaPath+"/additionalProperties",d.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=u+"["+m+"]";d.dataPathArr[g]=m;K=e.validate(d);d.baseId=R,e.util.varOccurences(K,y)<2?o+=" "+e.util.varReplace(K,y,V)+" ":o+=" var "+y+" = "+V+"; "+K+" ",l&&(o+=" if (!"+f+") break; ")}e.errorPath=q}E&&(o+=" } "),o+=" } ",l&&(o+=" if ("+f+") { ",h+="}")}var G=e.opts.useDefaults&&!e.compositeRule;if(w.length){var W=w;if(W)for(var J,Y=-1,X=W.length-1;Y<X;){var Q=i[J=W[Y+=1]];if(e.opts.strictKeywords?"object"==typeof Q&&Object.keys(Q).length>0||!1===Q:e.util.schemaHasRules(Q,e.RULES.all)){var Z=e.util.getProperty(J),ee=(V=u+Z,G&&void 0!==Q.default);d.schema=Q,d.schemaPath=s+Z,d.errSchemaPath=c+"/"+e.util.escapeFragment(J),d.errorPath=e.util.getPath(e.errorPath,J,e.opts.jsonPointers),d.dataPathArr[g]=e.util.toQuotedString(J);K=e.validate(d);if(d.baseId=R,e.util.varOccurences(K,y)<2){K=e.util.varReplace(K,y,V);var te=V}else{te=y;o+=" var "+y+" = "+V+"; "}if(ee)o+=" "+K+" ";else{if(C&&C[J]){o+=" if ( "+te+" === undefined ",j&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(J)+"') "),o+=") { "+f+" = false; ";q=e.errorPath,M=c;var re,oe=e.util.escapeQuotes(J);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(q,J,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+oe+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+oe+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";U=o;o=re.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+U+"]); ":o+=" validate.errors = ["+U+"]; return false; ":o+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=M,e.errorPath=q,o+=" } else { "}else l?(o+=" if ( "+te+" === undefined ",j&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(J)+"') "),o+=") { "+f+" = true; } else { "):(o+=" if ("+te+" !== undefined ",j&&(o+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(J)+"') "),o+=" ) { ");o+=" "+K+" } "}}l&&(o+=" if ("+f+") { ",h+="}")}}if(k.length){var ne=k;if(ne)for(var ae,ie=-1,se=ne.length-1;ie<se;){Q=x[ae=ne[ie+=1]];if(e.opts.strictKeywords?"object"==typeof Q&&Object.keys(Q).length>0||!1===Q:e.util.schemaHasRules(Q,e.RULES.all)){d.schema=Q,d.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ae),d.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ae),o+=j?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; ":" for (var "+m+" in "+u+") { ",o+=" if ("+e.usePattern(ae)+".test("+m+")) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=u+"["+m+"]";d.dataPathArr[g]=m;K=e.validate(d);d.baseId=R,e.util.varOccurences(K,y)<2?o+=" "+e.util.varReplace(K,y,V)+" ":o+=" var "+y+" = "+V+"; "+K+" ",l&&(o+=" if (!"+f+") break; "),o+=" } ",l&&(o+=" else "+f+" = true; "),o+=" } ",l&&(o+=" if ("+f+") { ",h+="}")}}}return l&&(o+=" "+h+" if ("+p+" == errors) {"),o}},23032:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="errs__"+n,d=e.util.copy(e);d.level++;var h="valid"+d.level;if(o+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof i&&Object.keys(i).length>0||!1===i:e.util.schemaHasRules(i,e.RULES.all)){d.schema=i,d.schemaPath=s,d.errSchemaPath=c;var f="key"+n,m="idx"+n,v="i"+n,g="' + "+f+" + '",y="data"+(d.dataLevel=e.dataLevel+1),b="dataProperties"+n,w=e.opts.ownProperties,x=e.baseId;w&&(o+=" var "+b+" = undefined; "),o+=w?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+f+" = "+b+"["+m+"]; ":" for (var "+f+" in "+u+") { ",o+=" var startErrs"+n+" = errors; ";var k=f,_=e.compositeRule;e.compositeRule=d.compositeRule=!0;var E=e.validate(d);d.baseId=x,e.util.varOccurences(E,y)<2?o+=" "+e.util.varReplace(E,y,k)+" ":o+=" var "+y+" = "+k+"; "+E+" ",e.compositeRule=d.compositeRule=_,o+=" if (!"+h+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+f+"; } var err = ",!1!==e.createErrors?(o+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+g+"' } ",!1!==e.opts.messages&&(o+=" , message: 'property name \\'"+g+"\\' is invalid' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(e.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; "),l&&(o+=" break; "),o+=" } }"}return l&&(o+=" if ("+p+" == errors) {"),o}},6990:e=>{"use strict";e.exports=function(e,t,r){var o,n,a=" ",i=e.level,s=e.dataLevel,c=e.schema[t],l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(s||""),d="valid"+i;if("#"==c||"#/"==c)e.isRoot?(o=e.async,n="validate"):(o=!0===e.root.schema.$async,n="root.refVal[0]");else{var h=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===h){var f=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(f),(y=y||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(a+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var m=a;a=y.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(a+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,f);e.logger.warn(f),u&&(a+=" if (true) { ")}}else if(h.inline){var v=e.util.copy(e);v.level++;var g="valid"+v.level;v.schema=h.schema,v.schemaPath="",v.errSchemaPath=c,a+=" "+e.validate(v).replace(/validate\.schema/g,h.code)+" ",u&&(a+=" if ("+g+") { ")}else o=!0===h.$async||e.async&&!1!==h.$async,n=h.code}if(n){var y;(y=y||[]).push(a),a="",e.opts.passContext?a+=" "+n+".call(this, ":a+=" "+n+"( ",a+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);var b=a+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(a=y.pop(),o){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(a+=" var "+d+"; "),a+=" try { await "+b+"; ",u&&(a+=" "+d+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(a+=" "+d+" = false; "),a+=" } ",u&&(a+=" if ("+d+") { ")}else a+=" if (!"+b+") { if (vErrors === null) vErrors = "+n+".errors; else vErrors = vErrors.concat("+n+".errors); errors = vErrors.length; } ",u&&(a+=" else { ")}return a}},47850:e=>{"use strict";e.exports=function(e,t,r){var o=" ",n=e.level,a=e.dataLevel,i=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,u="data"+(a||""),p="valid"+n,d=e.opts.$data&&i&&i.$data;d&&(o+=" var schema"+n+" = "+e.util.getData(i.$data,a,e.dataPathArr)+"; ");var h="schema"+n;if(!d)if(i.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var f=[],m=i;if(m)for(var v,g=-1,y=m.length-1;g<y;){v=m[g+=1];var b=e.schema.properties[v];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(f[f.length]=v)}}else f=i;if(d||f.length){var w=e.errorPath,x=d||f.length>=e.opts.loopRequired,k=e.opts.ownProperties;if(l)if(o+=" var missing"+n+"; ",x){d||(o+=" var "+h+" = validate.schema"+s+"; ");var _="' + "+(j="schema"+n+"["+(P="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,j,e.opts.jsonPointers)),o+=" var "+p+" = true; ",d&&(o+=" if (schema"+n+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+n+")) "+p+" = false; else {"),o+=" for (var "+P+" = 0; "+P+" < "+h+".length; "+P+"++) { "+p+" = "+u+"["+h+"["+P+"]] !== undefined ",k&&(o+=" && Object.prototype.hasOwnProperty.call("+u+", "+h+"["+P+"]) "),o+="; if (!"+p+") break; } ",d&&(o+=" } "),o+=" if (!"+p+") { ",(O=O||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+_+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var E=o;o=O.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+E+"]); ":o+=" validate.errors = ["+E+"]; return false; ":o+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { "}else{o+=" if ( ";var S=f;if(S)for(var P=-1,T=S.length-1;P<T;){I=S[P+=1],P&&(o+=" || "),o+=" ( ( "+($=u+(N=e.util.getProperty(I)))+" === undefined ",k&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(I)+"') "),o+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?I:N)+") ) "}o+=") { ";var O;_="' + "+(j="missing"+n)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,j,!0):w+" + "+j),(O=O||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+_+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";E=o;o=O.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+E+"]); ":o+=" validate.errors = ["+E+"]; return false; ":o+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { "}else if(x){d||(o+=" var "+h+" = validate.schema"+s+"; ");var j;_="' + "+(j="schema"+n+"["+(P="i"+n)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(w,j,e.opts.jsonPointers)),d&&(o+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",!1!==e.createErrors?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+_+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),o+=" for (var "+P+" = 0; "+P+" < "+h+".length; "+P+"++) { if ("+u+"["+h+"["+P+"]] === undefined ",k&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+h+"["+P+"]) "),o+=") { var err = ",!1!==e.createErrors?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+_+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",d&&(o+=" } ")}else{var R=f;if(R)for(var I,C=-1,A=R.length-1;C<A;){I=R[C+=1];var N=e.util.getProperty(I),$=(_=e.util.escapeQuotes(I),u+N);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(w,I,e.opts.jsonPointers)),o+=" if ( "+$+" === undefined ",k&&(o+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(I)+"') "),o+=") { var err = ",!1!==e.createErrors?(o+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+_+"' } ",!1!==e.opts.messages&&(o+=" , message: '",e.opts._errorDataPathProperty?o+="is a required property":o+="should have required property \\'"+_+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=w}else l&&(o+=" if (true) {");return o}},85898:e=>{"use strict";e.exports=function(e,t,r){var o,n=" ",a=e.level,i=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),d="valid"+a,h=e.opts.$data&&s&&s.$data;if(h?(n+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ",o="schema"+a):o=s,(s||h)&&!1!==e.opts.uniqueItems){h&&(n+=" var "+d+"; if ("+o+" === false || "+o+" === undefined) "+d+" = true; else if (typeof "+o+" != 'boolean') "+d+" = false; else { "),n+=" var i = "+p+".length , "+d+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,m=Array.isArray(f);if(!f||"object"==f||"array"==f||m&&(f.indexOf("object")>=0||f.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+d+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var v="checkDataType"+(m?"s":"");n+=" if ("+e.util[v](f,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(n+=" if (typeof item == 'string') item = '\"' + item; "),n+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",h&&(n+=" } "),n+=" if (!"+d+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+c:""+s,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},51873:e=>{"use strict";e.exports=function(e,t,r){var o="",n=!0===e.schema.$async,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),i=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(o+=" var validate = ",n&&(e.async=!0,o+="async "),o+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",i&&(e.opts.sourceCode||e.opts.processCode)&&(o+=" /*# sourceURL="+i+" */ ")),"boolean"==typeof e.schema||!a&&!e.schema.$ref){t="false schema";var l=e.level,u=e.dataLevel,p=e.schema[t],d=e.schemaPath+e.util.getProperty(t),h=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,m="data"+(u||""),v="valid"+l;if(!1===e.schema){e.isTop?f=!0:o+=" var "+v+" = false; ",(Y=Y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: 'boolean schema is false' "),e.opts.verbose&&(o+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),o+=" } "):o+=" {} ";var g=o;o=Y.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?o+=n?" return data; ":" validate.errors = null; return true; ":o+=" var "+v+" = true; ";return e.isTop&&(o+=" }; return validate; "),o}if(e.isTop){var y=e.isTop;l=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}o+=" var vErrors = null; ",o+=" var errors = 0; ",o+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=e.dataLevel)||"");if(i&&(e.baseId=e.resolve.url(e.baseId,i)),n&&!e.async)throw new Error("async schema in sync schema");o+=" var errs_"+l+" = errors;"}v="valid"+l,f=!e.opts.allErrors;var w="",x="",k=e.schema.type,_=Array.isArray(k);if(k&&e.opts.nullable&&!0===e.schema.nullable&&(_?-1==k.indexOf("null")&&(k=k.concat("null")):"null"!=k&&(k=[k,"null"],_=!0)),_&&1==k.length&&(k=k[0],_=!1),e.schema.$ref&&a){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(a=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(o+=" "+e.RULES.all.$comment.code(e,"$comment")),k){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,k);var S=e.RULES.types[k];if(E||_||!0===S||S&&!X(S)){d=e.schemaPath+".type",h=e.errSchemaPath+"/type",d=e.schemaPath+".type",h=e.errSchemaPath+"/type";var P=_?"checkDataTypes":"checkDataType";if(o+=" if ("+e.util[P](k,m,e.opts.strictNumbers,!0)+") { ",E){var T="dataType"+l,O="coerced"+l;o+=" var "+T+" = typeof "+m+"; var "+O+" = undefined; ","array"==e.opts.coerceTypes&&(o+=" if ("+T+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+T+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+O+" = "+m+"; } "),o+=" if ("+O+" !== undefined) ; ";var j=E;if(j)for(var R,I=-1,C=j.length-1;I<C;)"string"==(R=j[I+=1])?o+=" else if ("+T+" == 'number' || "+T+" == 'boolean') "+O+" = '' + "+m+"; else if ("+m+" === null) "+O+" = ''; ":"number"==R||"integer"==R?(o+=" else if ("+T+" == 'boolean' || "+m+" === null || ("+T+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==R&&(o+=" && !("+m+" % 1)"),o+=")) "+O+" = +"+m+"; "):"boolean"==R?o+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+O+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+O+" = true; ":"null"==R?o+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+O+" = null; ":"array"==e.opts.coerceTypes&&"array"==R&&(o+=" else if ("+T+" == 'string' || "+T+" == 'number' || "+T+" == 'boolean' || "+m+" == null) "+O+" = ["+m+"]; ");o+=" else { ",(Y=Y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",o+=_?""+k.join(","):""+k,o+="' } ",!1!==e.opts.messages&&(o+=" , message: 'should be ",o+=_?""+k.join(","):""+k,o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),o+=" } "):o+=" {} ";g=o;o=Y.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } if ("+O+" !== undefined) { ";var A=u?"data"+(u-1||""):"parentData";o+=" "+m+" = "+O+"; ",u||(o+="if ("+A+" !== undefined)"),o+=" "+A+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+O+"; } "}else{(Y=Y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",o+=_?""+k.join(","):""+k,o+="' } ",!1!==e.opts.messages&&(o+=" , message: 'should be ",o+=_?""+k.join(","):""+k,o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),o+=" } "):o+=" {} ";g=o;o=Y.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}o+=" } "}}if(e.schema.$ref&&!a)o+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",f&&(o+=" } if (errors === ",o+=y?"0":"errs_"+l,o+=") { ",x+="}");else{var N=e.RULES;if(N)for(var $=-1,L=N.length-1;$<L;)if(X(S=N[$+=1])){if(S.type&&(o+=" if ("+e.util.checkDataType(S.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==S.type&&e.schema.properties){p=e.schema.properties;var D=Object.keys(p);if(D)for(var z,B=-1,q=D.length-1;B<q;){if(void 0!==(U=p[z=D[B+=1]]).default){var F=m+e.util.getProperty(z);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+F;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else o+=" if ("+F+" === undefined ","empty"==e.opts.useDefaults&&(o+=" || "+F+" === null || "+F+" === '' "),o+=" ) "+F+" = ","shared"==e.opts.useDefaults?o+=" "+e.useDefault(U.default)+" ":o+=" "+JSON.stringify(U.default)+" ",o+="; "}}}else if("array"==S.type&&Array.isArray(e.schema.items)){var M=e.schema.items;if(M){I=-1;for(var U,H=M.length-1;I<H;)if(void 0!==(U=M[I+=1]).default){F=m+"["+I+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+F;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else o+=" if ("+F+" === undefined ","empty"==e.opts.useDefaults&&(o+=" || "+F+" === null || "+F+" === '' "),o+=" ) "+F+" = ","shared"==e.opts.useDefaults?o+=" "+e.useDefault(U.default)+" ":o+=" "+JSON.stringify(U.default)+" ",o+="; "}}}var V=S.rules;if(V)for(var K,G=-1,W=V.length-1;G<W;)if(Q(K=V[G+=1])){var J=K.code(e,K.keyword,S.type);J&&(o+=" "+J+" ",f&&(w+="}"))}if(f&&(o+=" "+w+" ",w=""),S.type&&(o+=" } ",k&&k===S.type&&!E)){o+=" else { ";var Y;d=e.schemaPath+".type",h=e.errSchemaPath+"/type";(Y=Y||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",o+=_?""+k.join(","):""+k,o+="' } ",!1!==e.opts.messages&&(o+=" , message: 'should be ",o+=_?""+k.join(","):""+k,o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),o+=" } "):o+=" {} ";g=o;o=Y.pop(),!e.compositeRule&&f?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } "}f&&(o+=" if (errors === ",o+=y?"0":"errs_"+l,o+=") { ",x+="}")}}function X(e){for(var t=e.rules,r=0;r<t.length;r++)if(Q(t[r]))return!0}function Q(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,o=0;o<r.length;o++)if(void 0!==e.schema[r[o]])return!0}(t)}return f&&(o+=" "+x+" "),y?(n?(o+=" if (errors === 0) return data; ",o+=" else throw new ValidationError(vErrors); "):(o+=" validate.errors = vErrors; ",o+=" return errors === 0; "),o+=" }; return validate;"):o+=" var "+v+" = errors === errs_"+l+";",o}},73635:(e,t,r)=>{"use strict";var o=/^[a-z_$][a-z0-9_$-]*$/i,n=r(7992),a=r(22897);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!o.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var i=0;i<a.length;i++)c(e,a[i],t);else c(e,a,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,o){for(var a,i=0;i<r.length;i++){var s=r[i];if(s.type==t){a=s;break}}a||(a={type:t,rules:[]},r.push(a));var c={keyword:e,definition:o,custom:!0,code:n,implements:o.implements};a.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var o=t[r].rules,n=0;n<o.length;n++)if(o[n].keyword==e){o.splice(n,1);break}return this},validate:function e(t,r){e.errors=null;var o=this._validateKeyword=this._validateKeyword||this.compile(a,!0);if(o(t))return!0;if(e.errors=o.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(o.errors));return!1}}},21048:e=>{e.exports=function e(t,r,o){void 0===r&&(r=""),o||(o={});var n=function(e){return!1===o.unicode?{"│":"|","└":"`","├":"+","─":"-","┬":"-"}[e]:e};"string"==typeof t&&(t={label:t});var a=t.nodes||[],i=(t.label||"").split("\n"),s="\n"+r+(a.length?n("│"):" ")+" ";return r+i.join(s)+"\n"+a.map((function(t,i){var s=i===a.length-1,c=t.nodes&&t.nodes.length,l=r+(s?" ":n("│"))+" ";return r+n(s?"└":"├")+n("─")+n(c?"┬":"─")+" "+e(t,l,o).slice(r.length+2)})).join("")}},57814:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){const t=new Int32Array(new SharedArrayBuffer(4));function r(e){if(!1===(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(t,0,0,Number(e))}e.exports=r}else{function o(e){if(!1===(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}const t=Date.now()+Number(e);for(;t>Date.now(););}e.exports=o}},34226:(e,t,r)=>{"use strict";const o=r(16697),n=r(24434).EventEmitter,a=r(39023).inherits,i=r(90400),s=r(66009),c=r(45753)("avvio"),l=Symbol("kAvvio"),u=Symbol("kThenifyDoNotWrap");function p(e,t,r){const o=t.expose||{},n=o.use||"use",a=o.after||"after",i=o.ready||"ready",s=o.onClose||"onClose",c=o.close||"close";if(e[n])throw new Error(n+"() is already defined, specify an expose option");if(e[a])throw new Error(a+"() is already defined, specify an expose option");if(e[i])throw new Error(i+"() is already defined, specify an expose option");e[n]=function(e,t){return r.use(e,t),this},Object.defineProperty(e,"then",{get:m.bind(r)}),e[l]=!0,e[a]=function(e){return"function"!=typeof e?r._loadRegistered():(r.after(b(e,this)),this)},e[i]=function(e){if(e&&"function"!=typeof e)throw new Error("not a function");return r.ready(e?b(e,this):void 0)},e[s]=function(e){if("function"!=typeof e)throw new Error("not a function");return r.onClose(function(e,t){return r.bind(t);function r(t,r){let o;0===e.length?(o=e(),o&&o.then?o.then((function(){process.nextTick(r)}),r):process.nextTick(r)):1===e.length?(o=e(this),o&&o.then?o.then((function(){process.nextTick(r)}),r):process.nextTick(r)):e(this,r)}}(e,this)),this},e[c]=function(e){if(e&&"function"!=typeof e)throw new Error("not a function");return e?(r.close(b(e,this)),this):r.close()}}function d(e,t,r){if("function"==typeof e&&1===arguments.length&&(r=e,t={},e=null),"function"==typeof t&&(r=t,t={}),t=t||{},!(this instanceof d)){const o=new d(e,t,r);return e&&p(e,t,o),o}!1!==t.autostart&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),r&&this.once("start",r),this.started=!1,this.booted=!1,this.pluginTree=new i,this._readyQ=o(this,v,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=f},this._closeQ=o(this,y,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=f},this._doStart=null,this._root=new s(this,h.bind(this),t,!1,0),this._root.once("start",((e,t,r)=>{const o=this.pluginTree.start(null,t,r);this._root.once("loaded",((e,t,r)=>{this.pluginTree.stop(o,r)}))})),s.loadPlugin.call(this,this._root,(e=>{c("root plugin ready");try{this.emit("preReady"),this._root=null}catch(t){e=e||this._error||t}if(e){if(this._error=e,0===this._readyQ.length())throw e}else this.booted=!0;this._readyQ.resume()}))}function h(e,t,r){this._doStart=r,t.autostart&&this.start()}function f(){}function m(){if(this.booted)c("thenify returning null because we are already booted");else{if(!this[u])return c("thenify"),(e,t)=>this._loadRegistered().then((()=>(this[u]=!0,e(this._server))),t);this[u]=!1}}function v(e,t,r){r=this._server;const o=this._error;let n;this._error=null,0===e.length?(this._error=o,n=e(),n&&!n[l]&&"function"==typeof n.then?n.then((()=>process.nextTick(t)),(e=>process.nextTick(t,e))):process.nextTick(t)):1===e.length?(n=e(o),n&&!n[l]&&"function"==typeof n.then?n.then((()=>process.nextTick(t)),(e=>process.nextTick(t,e))):process.nextTick(t)):0===this._timeout?2===e.length?e(o,t):e(o,r,t):g.call(this,e,o,r,t)}function g(e,t,r,o){const n=e.name;c("setting up ready timeout",n,this._timeout);let a=setTimeout((()=>{c("timed out",n),a=null;const t=new Error(`ERR_AVVIO_READY_TIMEOUT: plugin did not start in time: ${n}. You may have forgotten to call 'done' function or to resolve a Promise`);t.code="ERR_AVVIO_READY_TIMEOUT",t.fn=e,this._error=t,o(t)}),this._timeout);function i(e){a&&(clearTimeout(a),this._error=e,o(this._error))}2===e.length?e(t,i.bind(this)):e(t,r,i.bind(this))}function y(e,t,r){r=this._server;const o=e[this._isOnCloseHandlerKey];if(0===e.length||1===e.length){let n;n=e(o?r:this._error),n&&"function"==typeof n.then?(c("resolving close/onClose promise"),n.then((()=>process.nextTick(t)),(e=>process.nextTick(t,e)))):process.nextTick(t)}else 2===e.length?e(o?r:this._error,t):o?e(r,t):e(this._error,r,t)}function b(e,t){return function(t,r){let o;e?0===e.length?(o=e(),o&&o.then?o.then((function(){process.nextTick(r,t)}),r):process.nextTick(r,t)):1===e.length?(o=e(t),o&&o.then?o.then((function(){process.nextTick(r)}),r):process.nextTick(r)):2===e.length?e(t,r):e(t,this,r):process.nextTick(r)}.bind(t)}a(d,n),d.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this},d.prototype.override=function(e,t,r){return e},d.prototype[l]=!0,d.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this},d.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&process.nextTick((()=>this._root.q.resume())),e?e.loadedSoFar():Promise.resolve()},Object.defineProperty(d.prototype,"then",{get:m}),d.prototype._addPlugin=function(e,t,r){if(e=function(e){if(e&&"object"==typeof e&&"function"==typeof e.default&&(e=e.default),!e||"function"!=typeof e&&"function"!=typeof e.then)throw new Error("plugin must be a function or a promise");return e}(e),t=t||{},this.booted)throw new Error("root plugin has already booted");const o=this._current[0],n=new s(this,e,t,r);if(n.once("start",((e,t,r)=>{const a=this.pluginTree.start(o.name,t,r);n.once("loaded",((e,t,r)=>{this.pluginTree.stop(a,r)}))})),o.loaded)throw new Error(`Impossible to load "${n.name}" plugin because the parent "${o.name}" was already loaded`);return o.enqueue(n,(e=>{e&&(this._error=e)})),n},d.prototype.after=function(e){if(!e)return this._loadRegistered();return this._addPlugin(function(t,r,o){v.call(this,e,o)}.bind(this),{},!0),this},d.prototype.onClose=function(e){if("function"!=typeof e)throw new Error("not a function");return e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,function(e){e&&(this._error=e)}.bind(this)),this},d.prototype.close=function(e){let t;if(e){if("function"!=typeof e)throw new Error("not a function")}else t=new Promise((function(t,r){e=function(e){if(e)return r(e);t()}}));return this.ready((()=>{this._error=null,this._closeQ.push(e),process.nextTick(this._closeQ.resume.bind(this._closeQ))})),t},d.prototype.ready=function(e){if(e){if("function"!=typeof e)throw new Error("not a function");return this._readyQ.push(e),void this.start()}return new Promise(((e,t)=>{this._readyQ.push((function(o,n,a){o?t(o):e(r);process.nextTick(a)})),this.start();const r=this._current[0].server}))},d.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()},d.prototype.toJSON=function(){return this.pluginTree.toJSON()},e.exports=d,e.exports.express=function(e){return d(e,{expose:{use:"load"}})}},66009:(e,t,r)=>{"use strict";const o=r(79596),n=r(16697),a=r(24434).EventEmitter,i=r(39023).inherits,s=r(45753)("avvio"),c="ERR_AVVIO_PLUGIN_TIMEOUT";function l(e,t,o,a,i){this.started=!1,this.func=t,this.opts=o,this.onFinish=null,this.parent=e,this.timeout=void 0===i?e._timeout:i,this.name=function(e){const t=r.c,o=Object.keys(t);for(var n=0;n<o.length;n++)if(t[o[n]].exports===e)return o[n];return e.name?e.name:e.toString().split("\n").slice(0,2).map((e=>e.trim())).join(" -- ")}(t),this.isAfter=a,this.q=n(e,u,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}function u(e,t){process.nextTick(p.bind(this),e,t)}function p(e,t){if("function"==typeof e.func.then)return void e.func.then((r=>{"function"==typeof r.default&&(r=r.default),e.func=r,p.call(this,e,t)}),t);const r=this._current[0];this._current.unshift(e),e.exec(r&&r.server||this._server,(r=>{e.finish(r,(e=>{this._current.shift(),t(e)}))}))}function d(){}i(l,a),l.prototype.exec=function(e,t){const r=this.func;let o=!1;const n=this.name;if(this.parent._error&&!this.isAfter)return s("skipping loading of plugin as parent errored and it is not an after",n),void process.nextTick(t);if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,r,this.opts)}catch(e){return s("override errored",n),t(e)}let a;this.opts="function"==typeof this.opts?this.opts(this.server):this.opts,s("exec",n);const i=e=>{o?s("loading complete",n):(this._error=e,s(e?"exec errored":"exec completed",n),o=!0,a&&clearTimeout(a),t(e))};this.timeout>0&&(s("setting up timeout",n,this.timeout),a=setTimeout((function(){s("timed out",n),a=null;const e=new Error(`${c}: plugin did not start in time: ${n}. You may have forgotten to call 'done' function or to resolve a Promise`);e.code=c,e.fn=r,i(e)}),this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const l=r(this.server,this.opts,i);l&&"function"==typeof l.then&&(s("exec: resolving promise",n),l.then((()=>process.nextTick(i)),(e=>process.nextTick(i,e))))},l.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after(((e,t)=>{this._error=e,this.q.pause(),e?(s("rejecting promise",this.name,e),this._promise.reject(e)):(s("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(t,e)})),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=function(){const e={};return e.promise=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),e}(),t=this._promise.promise,this.server?e():this.on("start",e)),t},l.prototype.enqueue=function(e,t){s("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)},l.prototype.finish=function(e,t){s("finish",this.name,e);const r=()=>{this.loaded||(s("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e)return this._promise&&(this._promise.reject(e),this._promise=null),void r();const n=()=>{if(s("check",this.name,this.q.length(),this.q.running(),this._promise),0===this.q.length()&&0===this.q.running())if(this._promise){const e=()=>{s("wrap"),o(n)};this._promise.resolve(),this._promise.promise.then(e,e),this._promise=null}else r();else s("delayed",this.name),this.q.drain=()=>{s("drain",this.name),this.q.drain=d,o(n)}};o(n),this.q.resume()},e.exports=l,e.exports.loadPlugin=p},90400:(e,t,r)=>{"use strict";const o=r(21048);function n(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}n.prototype.trackNode=function(e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])},n.prototype.untrackNode=function(e){this.tableId.delete(e.id);const t=this.tableLabel.get(e.label);t.id?this.tableLabel.delete(e.label):(t.pop(),0===t.length&&this.tableLabel.delete(e.label))},n.prototype.getParent=function(e){if(null===e)return this.root;const t=this.tableLabel.get(e);return t.id?t:t[t.length-1]},n.prototype.getNode=function(e){return this.tableId.get(e)},n.prototype.add=function(e,t,r){if(null===e)return this.root={id:"root",label:t,start:r,nodes:[]},this.trackNode(this.root),this.root.id;const o=this.getParent(e),n=`${t}-${Math.random()}`,a={id:n,parent:e,start:r,label:t,nodes:[]};return o.nodes.push(a),this.trackNode(a),n},n.prototype.start=function(e,t,r){return this.add(e,t,r||Date.now())},n.prototype.stop=function(e,t){const r=this.getNode(e);r&&(r.stop=t||Date.now(),r.diff=r.stop-r.start||0,this.untrackNode(r))},n.prototype.toJSON=function(){return Object.assign({},this.root)},n.prototype.prittyPrint=function(){const e=t=>(t.label=`${t.label} ${t.diff} ms`,t.nodes.length>0&&(t.nodes=t.nodes.map((t=>e(t)))),t),t=e(this.toJSON());return o(t)},e.exports=n},72505:(e,t,r)=>{e.exports=r(18015)},87960:(e,t,r)=>{"use strict";var o=r(9516),n=r(7522),a=r(99615),i=r(79106),s=r(58611),c=r(65692),l=r(43164).http,u=r(43164).https,p=r(87016),d=r(43106),h=r(49641).version,f=r(47763),m=r(5449),v=r(96987),g=r(31928),y=/https:?/;function b(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var o=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+o}e.beforeRedirect=function(e){e.headers.host=e.host,b(e,t,e.href)}}e.exports=function(e){return new Promise((function(t,r){var w;function x(){e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w)}var k=function(e){x(),t(e)},_=function(e){x(),r(e)},E=e.data,S=e.headers,P={};if(Object.keys(S).forEach((function(e){P[e.toLowerCase()]=e})),"user-agent"in P?S[P["user-agent"]]||delete S[P["user-agent"]]:S["User-Agent"]="axios/"+h,E&&!o.isStream(E)){if(Buffer.isBuffer(E));else if(o.isArrayBuffer(E))E=Buffer.from(new Uint8Array(E));else{if(!o.isString(E))return _(f("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));E=Buffer.from(E,"utf-8")}P["content-length"]||(S["Content-Length"]=E.length)}var T=void 0;e.auth&&(T=(e.auth.username||"")+":"+(e.auth.password||""));var O=a(e.baseURL,e.url),j=p.parse(O),R=j.protocol||"http:";if(!T&&j.auth){var I=j.auth.split(":");T=(I[0]||"")+":"+(I[1]||"")}T&&P.authorization&&delete S[P.authorization];var C=y.test(R),A=C?e.httpsAgent:e.httpAgent,N={path:i(j.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:S,agent:A,agents:{http:e.httpAgent,https:e.httpsAgent},auth:T};e.socketPath?N.socketPath=e.socketPath:(N.hostname=j.hostname,N.port=j.port);var $,L=e.proxy;if(!L&&!1!==L){var D=R.slice(0,-1)+"_proxy",z=process.env[D]||process.env[D.toUpperCase()];if(z){var B=p.parse(z),q=process.env.no_proxy||process.env.NO_PROXY,F=!0;if(q)F=!q.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&j.hostname.substr(j.hostname.length-e.length)===e||j.hostname===e))}));if(F&&(L={host:B.hostname,port:B.port,protocol:B.protocol},B.auth)){var M=B.auth.split(":");L.auth={username:M[0],password:M[1]}}}}L&&(N.headers.host=j.hostname+(j.port?":"+j.port:""),b(N,L,R+"//"+j.hostname+(j.port?":"+j.port:"")+N.path));var U=C&&(!L||y.test(L.protocol));e.transport?$=e.transport:0===e.maxRedirects?$=U?c:s:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),$=U?u:l),e.maxBodyLength>-1&&(N.maxBodyLength=e.maxBodyLength),e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser);var H=$.request(N,(function(t){if(!H.aborted){var r=t,a=t.req||H;if(204!==t.statusCode&&"HEAD"!==a.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:a};if("stream"===e.responseType)i.data=r,n(k,_,i);else{var s=[],c=0;r.on("data",(function(t){s.push(t),c+=t.length,e.maxContentLength>-1&&c>e.maxContentLength&&(r.destroy(),_(f("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a)))})),r.on("error",(function(t){H.aborted||_(m(t,e,null,a))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=o.stripBOM(t))),i.data=t,n(k,_,i)}))}}}));if(H.on("error",(function(t){H.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||_(m(t,e,null,H))})),e.timeout){var V=parseInt(e.timeout,10);if(isNaN(V))return void _(f("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",H));H.setTimeout(V,(function(){H.abort();var t=e.transitional||v.transitional;_(f("timeout of "+V+"ms exceeded",e,t.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",H))}))}(e.cancelToken||e.signal)&&(w=function(e){H.aborted||(H.abort(),_(!e||e&&e.type?new g("canceled"):e))},e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),o.isStream(E)?E.on("error",(function(t){_(m(t,e,null,H))})).pipe(H):H.end(E)}))}},35592:(e,t,r)=>{"use strict";var o=r(9516),n=r(7522),a=r(33948),i=r(79106),s=r(99615),c=r(62012),l=r(64202),u=r(47763),p=r(96987),d=r(31928);e.exports=function(e){return new Promise((function(t,r){var h,f=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}o.isFormData(f)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var x=s(e.baseURL,e.url);function k(){if(y){var o="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,a={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:o,config:e,request:y};n((function(e){t(e),g()}),(function(e){r(e),g()}),a),y=null}}if(y.open(e.method.toUpperCase(),i(x,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(k)},y.onabort=function(){y&&(r(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||p.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(u(t,e,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},o.isStandardBrowserEnv()){var _=(e.withCredentials||l(x))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;_&&(m[e.xsrfHeaderName]=_)}"setRequestHeader"in y&&o.forEach(m,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(r(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),y.send(f)}))}},18015:(e,t,r)=>{"use strict";var o=r(9516),n=r(69012),a=r(35155),i=r(85343);var s=function e(t){var r=new a(t),s=n(a.prototype.request,r);return o.extend(s,a.prototype,r),o.extend(s,r),s.create=function(r){return e(i(t,r))},s}(r(96987));s.Axios=a,s.Cancel=r(31928),s.CancelToken=r(3191),s.isCancel=r(93864),s.VERSION=r(49641).version,s.all=function(e){return Promise.all(e)},s.spread=r(17980),s.isAxiosError=r(45019),e.exports=s,e.exports.default=s},31928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},3191:(e,t,r)=>{"use strict";var o=r(31928);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,o=r._listeners.length;for(t=0;t<o;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,o=new Promise((function(e){r.subscribe(e),t=e})).then(e);return o.cancel=function(){r.unsubscribe(t)},o},e((function(e){r.reason||(r.reason=new o(e),t(r.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},n.source=function(){var e;return{token:new n((function(t){e=t})),cancel:e}},e.exports=n},93864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},35155:(e,t,r)=>{"use strict";var o=r(9516),n=r(79106),a=r(83471),i=r(64490),s=r(85343),c=r(34841),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var n,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var u=[i,void 0];for(Array.prototype.unshift.apply(u,r),u=u.concat(a),n=Promise.resolve(e);u.length;)n=n.then(u.shift(),u.shift());return n}for(var p=e;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(e);break}}try{n=i(p)}catch(e){return Promise.reject(e)}for(;a.length;)n=n.then(a.shift(),a.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),n(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,r,o){return this.request(s(o||{},{method:e,url:t,data:r}))}})),e.exports=u},83471:(e,t,r)=>{"use strict";var o=r(9516);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},99615:(e,t,r)=>{"use strict";var o=r(29137),n=r(84680);e.exports=function(e,t){return e&&!o(t)?n(e,t):t}},47763:(e,t,r)=>{"use strict";var o=r(5449);e.exports=function(e,t,r,n,a){var i=new Error(e);return o(i,t,r,n,a)}},64490:(e,t,r)=>{"use strict";var o=r(9516),n=r(82881),a=r(93864),i=r(96987),s=r(31928);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return c(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5449:e=>{"use strict";e.exports=function(e,t,r,o,n){return e.config=t,r&&(e.code=r),e.request=o,e.response=n,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},85343:(e,t,r)=>{"use strict";var o=r(9516);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function a(r){return o.isUndefined(t[r])?o.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!o.isUndefined(t[e]))return n(void 0,t[e])}function s(r){return o.isUndefined(t[r])?o.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function c(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return o.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||a,n=t(e);o.isUndefined(n)&&t!==c||(r[e]=n)})),r}},7522:(e,t,r)=>{"use strict";var o=r(47763);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},82881:(e,t,r)=>{"use strict";var o=r(9516),n=r(96987);e.exports=function(e,t,r){var a=this||n;return o.forEach(r,(function(r){e=r.call(a,e,t)})),e}},96987:(e,t,r)=>{"use strict";var o=r(9516),n=r(7018),a=r(5449),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?c=r(35592):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(c=r(87960)),c),transformRequest:[function(e,t){return n(t,"Accept"),n(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(i)})),e.exports=l},49641:e=>{e.exports={version:"0.24.0"}},69012:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return e.apply(t,r)}}},79106:(e,t,r)=>{"use strict";var o=r(9516);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var a;if(r)a=r(t);else if(o.isURLSearchParams(t))a=t.toString();else{var i=[];o.forEach(t,(function(e,t){null!=e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(n(t)+"="+n(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},84680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},33948:(e,t,r)=>{"use strict";var o=r(9516);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,r,n,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),o.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),o.isString(n)&&s.push("path="+n),o.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},29137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},45019:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},64202:(e,t,r)=>{"use strict";var o=r(9516);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var o=e;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=o.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},7018:(e,t,r)=>{"use strict";var o=r(9516);e.exports=function(e,t){o.forEach(e,(function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[o])}))}},62012:(e,t,r)=>{"use strict";var o=r(9516),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,a,i={};return e?(o.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=o.trim(e.substr(0,a)).toLowerCase(),r=o.trim(e.substr(a+1)),t){if(i[t]&&n.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([r]):i[t]?i[t]+", "+r:r}})),i):i}},17980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},34841:(e,t,r)=>{"use strict";var o=r(49641).version,n={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){n[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};n.transitional=function(e,t,r){function n(e,t){return"[Axios v"+o+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!a[o]&&(a[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var o=Object.keys(e),n=o.length;n-- >0;){var a=o[n],i=t[a];if(i){var s=e[a],c=void 0===s||i(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:n}},9516:(e,t,r)=>{"use strict";var o=r(69012),n=Object.prototype.toString;function a(e){return"[object Array]"===n.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==n.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===n.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===n.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===n.call(e)},isFile:function(e){return"[object File]"===n.call(e)},isBlob:function(e){return"[object Blob]"===n.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function r(r,o){c(t[o])&&c(r)?t[o]=e(t[o],r):c(r)?t[o]=e({},r):a(r)?t[o]=r.slice():t[o]=r}for(var o=0,n=arguments.length;o<n;o++)u(arguments[o],r);return t},extend:function(e,t,r){return u(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},95364:(e,t,r)=>{"use strict";var o=r(92861).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var n=0;n<e.length;n++){var a=e.charAt(n),i=a.charCodeAt(0);if(255!==t[i])throw new TypeError(a+" is ambiguous");t[i]=n}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function p(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return o.alloc(0);for(var r=0,n=0,a=0;e[r]===c;)n++,r++;for(var i=(e.length-r)*l+1>>>0,u=new Uint8Array(i);e[r];){var p=t[e.charCodeAt(r)];if(255===p)return;for(var d=0,h=i-1;(0!==p||d<a)&&-1!==h;h--,d++)p+=s*u[h]>>>0,u[h]=p%256>>>0,p=p/256>>>0;if(0!==p)throw new Error("Non-zero carry");a=d,r++}for(var f=i-a;f!==i&&0===u[f];)f++;var m=o.allocUnsafe(n+(i-f));m.fill(0,0,n);for(var v=n;f!==i;)m[v++]=u[f++];return m}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=o.from(t)),!o.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,a=0,i=t.length;a!==i&&0===t[a];)a++,r++;for(var l=(i-a)*u+1>>>0,p=new Uint8Array(l);a!==i;){for(var d=t[a],h=0,f=l-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*p[f]>>>0,p[f]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");n=h,a++}for(var m=l-n;m!==l&&0===p[m];)m++;for(var v=c.repeat(r);m<l;++m)v+=e.charAt(p[m]);return v},decodeUnsafe:p,decode:function(e){var t=p(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},74845:(e,t,r)=>{
|
|
8
|
+
/*!
|
|
9
|
+
* base64id v0.1.0
|
|
10
|
+
*/
|
|
11
|
+
var o=r(76982),n=function(){};n.prototype.getRandomBytes=function(e){var t=4096,r=this;if((e=e||12)>t)return o.randomBytes(e);var n=parseInt(t/e),a=parseInt(.85*n);if(!a)return o.randomBytes(e);if(null==this.bytesBufferIndex&&(this.bytesBufferIndex=-1),this.bytesBufferIndex==n&&(this.bytesBuffer=null,this.bytesBufferIndex=-1),(-1==this.bytesBufferIndex||this.bytesBufferIndex>a)&&(this.isGeneratingBytes||(this.isGeneratingBytes=!0,o.randomBytes(t,(function(e,t){r.bytesBuffer=t,r.bytesBufferIndex=0,r.isGeneratingBytes=!1}))),-1==this.bytesBufferIndex))return o.randomBytes(e);var i=this.bytesBuffer.slice(e*this.bytesBufferIndex,e*(this.bytesBufferIndex+1));return this.bytesBufferIndex++,i},n.prototype.generateId=function(){var e=Buffer.alloc(15);return e.writeInt32BE?(this.sequenceNumber=this.sequenceNumber+1|0,e.writeInt32BE(this.sequenceNumber,11),o.randomBytes?this.getRandomBytes(12).copy(e):[0,4,8].forEach((function(t){e.writeInt32BE(Math.random()*Math.pow(2,32)|0,t)})),e.toString("base64").replace(/\//g,"_").replace(/\+/g,"-")):Math.abs(Math.random()*Math.random()*Date.now()|0).toString()+Math.abs(Math.random()*Math.random()*Date.now()|0).toString()},e.exports=new n},22343:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bech32m=t.bech32=void 0;const r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={};for(let e=0;e<r.length;e++){const t=r.charAt(e);o[t]=e}function n(e){const t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){let t=1;for(let r=0;r<e.length;++r){const o=e.charCodeAt(r);if(o<33||o>126)return"Invalid prefix ("+e+")";t=n(t)^o>>5}t=n(t);for(let r=0;r<e.length;++r){const o=e.charCodeAt(r);t=n(t)^31&o}return t}function i(e,t,r,o){let n=0,a=0;const i=(1<<r)-1,s=[];for(let o=0;o<e.length;++o)for(n=n<<t|e[o],a+=t;a>=r;)a-=r,s.push(n>>a&i);if(o)a>0&&s.push(n<<r-a&i);else{if(a>=t)return"Excess padding";if(n<<r-a&i)return"Non-zero padding"}return s}function s(e){return i(e,8,5,!0)}function c(e){const t=i(e,5,8,!1);if(Array.isArray(t))return t}function l(e){const t=i(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}function u(e){let t;function i(e,r){if(r=r||90,e.length<8)return e+" too short";if(e.length>r)return"Exceeds length limit";const i=e.toLowerCase(),s=e.toUpperCase();if(e!==i&&e!==s)return"Mixed-case string "+e;const c=(e=i).lastIndexOf("1");if(-1===c)return"No separator character for "+e;if(0===c)return"Missing prefix for "+e;const l=e.slice(0,c),u=e.slice(c+1);if(u.length<6)return"Data too short";let p=a(l);if("string"==typeof p)return p;const d=[];for(let e=0;e<u.length;++e){const t=u.charAt(e),r=o[t];if(void 0===r)return"Unknown character "+t;p=n(p)^r,e+6>=u.length||d.push(r)}return p!==t?"Invalid checksum for "+e:{prefix:l,words:d}}return t="bech32"===e?1:734539939,{decodeUnsafe:function(e,t){const r=i(e,t);if("object"==typeof r)return r},decode:function(e,t){const r=i(e,t);if("object"==typeof r)return r;throw new Error(r)},encode:function(e,o,i){if(i=i||90,e.length+7+o.length>i)throw new TypeError("Exceeds length limit");let s=a(e=e.toLowerCase());if("string"==typeof s)throw new Error(s);let c=e+"1";for(let e=0;e<o.length;++e){const t=o[e];if(t>>5!=0)throw new Error("Non 5-bit word");s=n(s)^t,c+=r.charAt(t)}for(let e=0;e<6;++e)s=n(s);s^=t;for(let e=0;e<6;++e){c+=r.charAt(s>>5*(5-e)&31)}return c},toWords:s,fromWordsUnsafe:c,fromWords:l}}t.bech32=u("bech32"),t.bech32m=u("bech32m")},64863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(91457);function n(e,t,r){return o=>{if(e.has(o))return;const n=r.filter((e=>e.key.toString("hex")===o))[0];t.push(n),e.add(o)}}function a(e){return e.globalMap.unsignedTx}function i(e){const t=new Set;return e.forEach((e=>{const r=e.key.toString("hex");if(t.has(r))throw new Error("Combine: KeyValue Map keys should be unique");t.add(r)})),t}t.combine=function(e){const t=e[0],r=o.psbtToKeyVals(t),s=e.slice(1);if(0===s.length)throw new Error("Combine: Nothing to combine");const c=a(t);if(void 0===c)throw new Error("Combine: Self missing transaction");const l=i(r.globalKeyVals),u=r.inputKeyVals.map(i),p=r.outputKeyVals.map(i);for(const e of s){const t=a(e);if(void 0===t||!t.toBuffer().equals(c.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const s=o.psbtToKeyVals(e);i(s.globalKeyVals).forEach(n(l,r.globalKeyVals,s.globalKeyVals));s.inputKeyVals.map(i).forEach(((e,t)=>e.forEach(n(u[t],r.inputKeyVals[t],s.inputKeyVals[t]))));s.outputKeyVals.map(i).forEach(((e,t)=>e.forEach(n(p[t],r.outputKeyVals[t],s.outputKeyVals[t]))))}return o.psbtFromKeyVals(c,{globalMapKeyVals:r.globalKeyVals,inputKeyVals:r.inputKeyVals,outputKeyVals:r.outputKeyVals})}},4834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+e.key.toString("hex"));if(79!==e.key.length||![2,3].includes(e.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+e.key.toString("hex"));if(e.value.length/4%1!=0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const t=e.key.slice(1),r={masterFingerprint:e.value.slice(0,4),extendedPubkey:t,path:"m"};for(const t of(n=e.value.length/4-1,[...Array(n).keys()])){const o=e.value.readUInt32LE(4*t+4),n=!!(2147483648&o),a=2147483647&o;r.path+="/"+a.toString(10)+(n?"'":"")}var n;return r},t.encode=function(e){const t=Buffer.from([o.GlobalTypes.GLOBAL_XPUB]),r=Buffer.concat([t,e.extendedPubkey]),n=e.path.split("/"),a=Buffer.allocUnsafe(4*n.length);e.masterFingerprint.copy(a,0);let i=4;return n.slice(1).forEach((e=>{const t="'"===e.slice(-1);let r=2147483647&parseInt(t?e.slice(0,-1):e,10);t&&(r+=2147483648),a.writeUInt32LE(r,i),i+=4})),{key:r,value:a}},t.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }",t.check=function(e){const t=e.extendedPubkey,r=e.masterFingerprint,o=e.path;return Buffer.isBuffer(t)&&78===t.length&&[2,3].indexOf(t[45])>-1&&Buffer.isBuffer(r)&&4===r.length&&"string"==typeof o&&!!o.match(/^m(\/\d+'?)*$/)},t.canAddToArray=function(e,t,r){const o=t.extendedPubkey.toString("hex");return!r.has(o)&&(r.add(o),0===e.filter((e=>e.extendedPubkey.equals(t.extendedPubkey))).length)}},4213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.encode=function(e){return{key:Buffer.from([o.GlobalTypes.UNSIGNED_TX]),value:e.toBuffer()}}},22706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080),n=r(4834),a=r(4213),i=r(76605),s=r(71795),c=r(4431),l=r(66907),u=r(95949),p=r(59344),d=r(72760),h=r(81695),f=r(98454),m=r(19034),v=r(82926),g=r(77851),y=r(97545),b=r(22412),w=r(54307),x=r(87636),k=r(22223),_=r(75578),E={unsignedTx:a,globalXpub:n,checkPubkey:b.makeChecker([])};t.globals=E;const S={nonWitnessUtxo:c,partialSig:l,sighashType:p,finalScriptSig:i,finalScriptWitness:s,porCommitment:u,witnessUtxo:v,bip32Derivation:y.makeConverter(o.InputTypes.BIP32_DERIVATION),redeemScript:w.makeConverter(o.InputTypes.REDEEM_SCRIPT),witnessScript:_.makeConverter(o.InputTypes.WITNESS_SCRIPT),checkPubkey:b.makeChecker([o.InputTypes.PARTIAL_SIG,o.InputTypes.BIP32_DERIVATION]),tapKeySig:d,tapScriptSig:m,tapLeafScript:h,tapBip32Derivation:x.makeConverter(o.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:k.makeConverter(o.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot:f};t.inputs=S;const P={bip32Derivation:y.makeConverter(o.OutputTypes.BIP32_DERIVATION),redeemScript:w.makeConverter(o.OutputTypes.REDEEM_SCRIPT),witnessScript:_.makeConverter(o.OutputTypes.WITNESS_SCRIPT),checkPubkey:b.makeChecker([o.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:x.makeConverter(o.OutputTypes.TAP_BIP32_DERIVATION),tapTree:g,tapInternalKey:k.makeConverter(o.OutputTypes.TAP_INTERNAL_KEY)};t.outputs=P},76605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+e.key.toString("hex"));return e.value},t.encode=function(e){return{key:Buffer.from([o.InputTypes.FINAL_SCRIPTSIG]),value:e}},t.expected="Buffer",t.check=function(e){return Buffer.isBuffer(e)},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.finalScriptSig}},71795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+e.key.toString("hex"));return e.value},t.encode=function(e){return{key:Buffer.from([o.InputTypes.FINAL_SCRIPTWITNESS]),value:e}},t.expected="Buffer",t.check=function(e){return Buffer.isBuffer(e)},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.finalScriptWitness}},4431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+e.key.toString("hex"));return e.value},t.encode=function(e){return{key:Buffer.from([o.InputTypes.NON_WITNESS_UTXO]),value:e}},t.expected="Buffer",t.check=function(e){return Buffer.isBuffer(e)},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.nonWitnessUtxo}},66907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+e.key.toString("hex"));if(34!==e.key.length&&66!==e.key.length||![2,3,4].includes(e.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+e.key.toString("hex"));return{pubkey:e.key.slice(1),signature:e.value}},t.encode=function(e){const t=Buffer.from([o.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([t,e.pubkey]),value:e.signature}},t.expected="{ pubkey: Buffer; signature: Buffer; }",t.check=function(e){return Buffer.isBuffer(e.pubkey)&&Buffer.isBuffer(e.signature)&&[33,65].includes(e.pubkey.length)&&[2,3,4].includes(e.pubkey[0])&&function(e){if(!Buffer.isBuffer(e)||e.length<9)return!1;if(48!==e[0])return!1;if(e.length!==e[1]+3)return!1;if(2!==e[2])return!1;const t=e[3];if(t>33||t<1)return!1;if(2!==e[3+t+1])return!1;const r=e[3+t+2];return!(r>33||r<1)&&e.length===3+t+2+r+2}(e.signature)},t.canAddToArray=function(e,t,r){const o=t.pubkey.toString("hex");return!r.has(o)&&(r.add(o),0===e.filter((e=>e.pubkey.equals(t.pubkey))).length)}},95949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+e.key.toString("hex"));return e.value.toString("utf8")},t.encode=function(e){return{key:Buffer.from([o.InputTypes.POR_COMMITMENT]),value:Buffer.from(e,"utf8")}},t.expected="string",t.check=function(e){return"string"==typeof e},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.porCommitment}},59344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+e.key.toString("hex"));return e.value.readUInt32LE(0)},t.encode=function(e){const t=Buffer.from([o.InputTypes.SIGHASH_TYPE]),r=Buffer.allocUnsafe(4);return r.writeUInt32LE(e,0),{key:t,value:r}},t.expected="number",t.check=function(e){return"number"==typeof e},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.sighashType}},72760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);function n(e){return Buffer.isBuffer(e)&&(64===e.length||65===e.length)}t.decode=function(e){if(e.key[0]!==o.InputTypes.TAP_KEY_SIG||1!==e.key.length)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+e.key.toString("hex"));if(!n(e.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return e.value},t.encode=function(e){return{key:Buffer.from([o.InputTypes.TAP_KEY_SIG]),value:e}},t.expected="Buffer",t.check=n,t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.tapKeySig}},81695:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+e.key.toString("hex"));if((e.key.length-2)%32!=0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+e.key.toString("hex"));const t=e.value[e.value.length-1];if((254&e.key[1])!==t)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+e.key.toString("hex"));const r=e.value.slice(0,-1);return{controlBlock:e.key.slice(1),script:r,leafVersion:t}},t.encode=function(e){const t=Buffer.from([o.InputTypes.TAP_LEAF_SCRIPT]),r=Buffer.from([e.leafVersion]);return{key:Buffer.concat([t,e.controlBlock]),value:Buffer.concat([e.script,r])}},t.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }",t.check=function(e){return Buffer.isBuffer(e.controlBlock)&&(e.controlBlock.length-1)%32==0&&(254&e.controlBlock[0])===e.leafVersion&&Buffer.isBuffer(e.script)},t.canAddToArray=function(e,t,r){const o=t.controlBlock.toString("hex");return!r.has(o)&&(r.add(o),0===e.filter((e=>e.controlBlock.equals(t.controlBlock))).length)}},98454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);function n(e){return Buffer.isBuffer(e)&&32===e.length}t.decode=function(e){if(e.key[0]!==o.InputTypes.TAP_MERKLE_ROOT||1!==e.key.length)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+e.key.toString("hex"));if(!n(e.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return e.value},t.encode=function(e){return{key:Buffer.from([o.InputTypes.TAP_MERKLE_ROOT]),value:e}},t.expected="Buffer",t.check=n,t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.tapMerkleRoot}},19034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080);t.decode=function(e){if(e.key[0]!==o.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+e.key.toString("hex"));if(65!==e.key.length)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+e.key.toString("hex"));if(64!==e.value.length&&65!==e.value.length)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+e.key.toString("hex"));return{pubkey:e.key.slice(1,33),leafHash:e.key.slice(33),signature:e.value}},t.encode=function(e){const t=Buffer.from([o.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([t,e.pubkey,e.leafHash]),value:e.signature}},t.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }",t.check=function(e){return Buffer.isBuffer(e.pubkey)&&Buffer.isBuffer(e.leafHash)&&Buffer.isBuffer(e.signature)&&32===e.pubkey.length&&32===e.leafHash.length&&(64===e.signature.length||65===e.signature.length)},t.canAddToArray=function(e,t,r){const o=t.pubkey.toString("hex")+t.leafHash.toString("hex");return!r.has(o)&&(r.add(o),0===e.filter((e=>e.pubkey.equals(t.pubkey)&&e.leafHash.equals(t.leafHash))).length)}},82926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080),n=r(78133),a=r(40394);t.decode=function(e){if(e.key[0]!==o.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+e.key.toString("hex"));const t=n.readUInt64LE(e.value,0);let r=8;const i=a.decode(e.value,r);r+=a.encodingLength(i);const s=e.value.slice(r);if(s.length!==i)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:s,value:t}},t.encode=function(e){const{script:t,value:r}=e,i=a.encodingLength(t.length),s=Buffer.allocUnsafe(8+i+t.length);return n.writeUInt64LE(s,r,0),a.encode(t.length,s,8),t.copy(s,8+i),{key:Buffer.from([o.InputTypes.WITNESS_UTXO]),value:s}},t.expected="{ script: Buffer; value: number; }",t.check=function(e){return Buffer.isBuffer(e.script)&&"number"==typeof e.value},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.witnessUtxo}},77851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99080),n=r(40394);t.decode=function(e){if(e.key[0]!==o.OutputTypes.TAP_TREE||1!==e.key.length)throw new Error("Decode Error: could not decode tapTree with key 0x"+e.key.toString("hex"));let t=0;const r=[];for(;t<e.value.length;){const o=e.value[t++],a=e.value[t++],i=n.decode(e.value,t);t+=n.encodingLength(i),r.push({depth:o,leafVersion:a,script:e.value.slice(t,t+i)}),t+=i}return{leaves:r}},t.encode=function(e){const t=Buffer.from([o.OutputTypes.TAP_TREE]),r=[].concat(...e.leaves.map((e=>[Buffer.of(e.depth,e.leafVersion),n.encode(e.script.length),e.script])));return{key:t,value:Buffer.concat(r)}},t.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }",t.check=function(e){return Array.isArray(e.leaves)&&e.leaves.every((e=>e.depth>=0&&e.depth<=128&&(254&e.leafVersion)===e.leafVersion&&Buffer.isBuffer(e.script)))},t.canAdd=function(e,t){return!!e&&!!t&&void 0===e.tapTree}},97545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e=>33===e.length&&[2,3].includes(e[0])||65===e.length&&4===e[0];t.makeConverter=function(e,t=r){return{decode:function(r){if(r.key[0]!==e)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+r.key.toString("hex"));const o=r.key.slice(1);if(!t(o))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+r.key.toString("hex"));if(r.value.length/4%1!=0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const n={masterFingerprint:r.value.slice(0,4),pubkey:o,path:"m"};for(const e of(a=r.value.length/4-1,[...Array(a).keys()])){const t=r.value.readUInt32LE(4*e+4),o=!!(2147483648&t),a=2147483647&t;n.path+="/"+a.toString(10)+(o?"'":"")}var a;return n},encode:function(t){const r=Buffer.from([e]),o=Buffer.concat([r,t.pubkey]),n=t.path.split("/"),a=Buffer.allocUnsafe(4*n.length);t.masterFingerprint.copy(a,0);let i=4;return n.slice(1).forEach((e=>{const t="'"===e.slice(-1);let r=2147483647&parseInt(t?e.slice(0,-1):e,10);t&&(r+=2147483648),a.writeUInt32LE(r,i),i+=4})),{key:o,value:a}},check:function(e){return Buffer.isBuffer(e.pubkey)&&Buffer.isBuffer(e.masterFingerprint)&&"string"==typeof e.path&&t(e.pubkey)&&4===e.masterFingerprint.length},expected:"{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }",canAddToArray:function(e,t,r){const o=t.pubkey.toString("hex");return!r.has(o)&&(r.add(o),0===e.filter((e=>e.pubkey.equals(t.pubkey))).length)}}}},22412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeChecker=function(e){return function(t){let r;if(e.includes(t.key[0])&&(r=t.key.slice(1),33!==r.length&&65!==r.length||![2,3,4].includes(r[0])))throw new Error("Format Error: invalid pubkey in key 0x"+t.key.toString("hex"));return r}}},54307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeConverter=function(e){return{decode:function(t){if(t.key[0]!==e)throw new Error("Decode Error: could not decode redeemScript with key 0x"+t.key.toString("hex"));return t.value},encode:function(t){return{key:Buffer.from([e]),value:t}},check:function(e){return Buffer.isBuffer(e)},expected:"Buffer",canAdd:function(e,t){return!!e&&!!t&&void 0===e.redeemScript}}}},87636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(40394),n=r(97545),a=e=>32===e.length;t.makeConverter=function(e){const t=n.makeConverter(e,a);return{decode:function(e){const r=o.decode(e.value),n=o.encodingLength(r),a=t.decode({key:e.key,value:e.value.slice(n+32*r)}),i=new Array(r);for(let t=0,o=n;t<r;t++,o+=32)i[t]=e.value.slice(o,o+32);return Object.assign({},a,{leafHashes:i})},encode:function(e){const r=t.encode(e),n=o.encodingLength(e.leafHashes.length),a=Buffer.allocUnsafe(n);o.encode(e.leafHashes.length,a);const i=Buffer.concat([a,...e.leafHashes,r.value]);return Object.assign({},r,{value:i})},check:function(e){return Array.isArray(e.leafHashes)&&e.leafHashes.every((e=>Buffer.isBuffer(e)&&32===e.length))&&t.check(e)},expected:"{ masterFingerprint: Buffer; pubkey: Buffer; path: string; leafHashes: Buffer[]; }",canAddToArray:t.canAddToArray}}},22223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeConverter=function(e){return{decode:function(t){if(t.key[0]!==e||1!==t.key.length)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+t.key.toString("hex"));if(32!==t.value.length)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return t.value},encode:function(t){return{key:Buffer.from([e]),value:t}},check:function(e){return Buffer.isBuffer(e)&&32===e.length},expected:"Buffer",canAdd:function(e,t){return!!e&&!!t&&void 0===e.tapInternalKey}}}},75578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeConverter=function(e){return{decode:function(t){if(t.key[0]!==e)throw new Error("Decode Error: could not decode witnessScript with key 0x"+t.key.toString("hex"));return t.value},encode:function(t){return{key:Buffer.from([e]),value:t}},check:function(e){return Buffer.isBuffer(e)},expected:"Buffer",canAdd:function(e,t){return!!e&&!!t&&void 0===e.witnessScript}}}},78133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(40394);function n(e){const t=e.key.length,r=e.value.length,n=o.encodingLength(t),a=o.encodingLength(r),i=Buffer.allocUnsafe(n+t+a+r);return o.encode(t,i,0),e.key.copy(i,n),o.encode(r,i,n+t),e.value.copy(i,n+t+a),i}function a(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}t.range=e=>[...Array(e).keys()],t.reverseBuffer=function(e){if(e.length<1)return e;let t=e.length-1,r=0;for(let o=0;o<e.length/2;o++)r=e[o],e[o]=e[t],e[t]=r,t--;return e},t.keyValsToBuffer=function(e){const t=e.map(n);return t.push(Buffer.from([0])),Buffer.concat(t)},t.keyValToBuffer=n,t.readUInt64LE=function(e,t){const r=e.readUInt32LE(t);let o=e.readUInt32LE(t+4);return o*=4294967296,a(o+r,9007199254740991),o+r},t.writeUInt64LE=function(e,t,r){return a(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8}},40394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){if(e<0||e>9007199254740991||e%1!=0)throw new RangeError("value out of range")}function o(e){return r(e),e<253?1:e<=65535?3:e<=4294967295?5:9}t.encode=function e(t,n,a){if(r(t),n||(n=Buffer.allocUnsafe(o(t))),!Buffer.isBuffer(n))throw new TypeError("buffer must be a Buffer instance");return a||(a=0),t<253?(n.writeUInt8(t,a),Object.assign(e,{bytes:1})):t<=65535?(n.writeUInt8(253,a),n.writeUInt16LE(t,a+1),Object.assign(e,{bytes:3})):t<=4294967295?(n.writeUInt8(254,a),n.writeUInt32LE(t,a+1),Object.assign(e,{bytes:5})):(n.writeUInt8(255,a),n.writeUInt32LE(t>>>0,a+1),n.writeUInt32LE(t/4294967296|0,a+5),Object.assign(e,{bytes:9})),n},t.decode=function e(t,o){if(!Buffer.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");o||(o=0);const n=t.readUInt8(o);if(n<253)return Object.assign(e,{bytes:1}),n;if(253===n)return Object.assign(e,{bytes:3}),t.readUInt16LE(o+1);if(254===n)return Object.assign(e,{bytes:5}),t.readUInt32LE(o+1);{Object.assign(e,{bytes:9});const n=t.readUInt32LE(o+1),a=4294967296*t.readUInt32LE(o+5)+n;return r(a),a}},t.encodingLength=o},76263:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(22706),n=r(78133),a=r(40394),i=r(99080);function s(e,t,r){if(!t.equals(Buffer.from([r])))throw new Error(`Format Error: Invalid ${e} key: ${t.toString("hex")}`)}function c(e,{globalMapKeyVals:t,inputKeyVals:r,outputKeyVals:a}){const c={unsignedTx:e};let l=0;for(const e of t)switch(e.key[0]){case i.GlobalTypes.UNSIGNED_TX:if(s("global",e.key,i.GlobalTypes.UNSIGNED_TX),l>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");l++;break;case i.GlobalTypes.GLOBAL_XPUB:void 0===c.globalXpub&&(c.globalXpub=[]),c.globalXpub.push(o.globals.globalXpub.decode(e));break;default:c.unknownKeyVals||(c.unknownKeyVals=[]),c.unknownKeyVals.push(e)}const u=r.length,p=a.length,d=[],h=[];for(const e of n.range(u)){const t={};for(const n of r[e])switch(o.inputs.checkPubkey(n),n.key[0]){case i.InputTypes.NON_WITNESS_UTXO:if(s("input",n.key,i.InputTypes.NON_WITNESS_UTXO),void 0!==t.nonWitnessUtxo)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");t.nonWitnessUtxo=o.inputs.nonWitnessUtxo.decode(n);break;case i.InputTypes.WITNESS_UTXO:if(s("input",n.key,i.InputTypes.WITNESS_UTXO),void 0!==t.witnessUtxo)throw new Error("Format Error: Input has multiple WITNESS_UTXO");t.witnessUtxo=o.inputs.witnessUtxo.decode(n);break;case i.InputTypes.PARTIAL_SIG:void 0===t.partialSig&&(t.partialSig=[]),t.partialSig.push(o.inputs.partialSig.decode(n));break;case i.InputTypes.SIGHASH_TYPE:if(s("input",n.key,i.InputTypes.SIGHASH_TYPE),void 0!==t.sighashType)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");t.sighashType=o.inputs.sighashType.decode(n);break;case i.InputTypes.REDEEM_SCRIPT:if(s("input",n.key,i.InputTypes.REDEEM_SCRIPT),void 0!==t.redeemScript)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");t.redeemScript=o.inputs.redeemScript.decode(n);break;case i.InputTypes.WITNESS_SCRIPT:if(s("input",n.key,i.InputTypes.WITNESS_SCRIPT),void 0!==t.witnessScript)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");t.witnessScript=o.inputs.witnessScript.decode(n);break;case i.InputTypes.BIP32_DERIVATION:void 0===t.bip32Derivation&&(t.bip32Derivation=[]),t.bip32Derivation.push(o.inputs.bip32Derivation.decode(n));break;case i.InputTypes.FINAL_SCRIPTSIG:s("input",n.key,i.InputTypes.FINAL_SCRIPTSIG),t.finalScriptSig=o.inputs.finalScriptSig.decode(n);break;case i.InputTypes.FINAL_SCRIPTWITNESS:s("input",n.key,i.InputTypes.FINAL_SCRIPTWITNESS),t.finalScriptWitness=o.inputs.finalScriptWitness.decode(n);break;case i.InputTypes.POR_COMMITMENT:s("input",n.key,i.InputTypes.POR_COMMITMENT),t.porCommitment=o.inputs.porCommitment.decode(n);break;case i.InputTypes.TAP_KEY_SIG:s("input",n.key,i.InputTypes.TAP_KEY_SIG),t.tapKeySig=o.inputs.tapKeySig.decode(n);break;case i.InputTypes.TAP_SCRIPT_SIG:void 0===t.tapScriptSig&&(t.tapScriptSig=[]),t.tapScriptSig.push(o.inputs.tapScriptSig.decode(n));break;case i.InputTypes.TAP_LEAF_SCRIPT:void 0===t.tapLeafScript&&(t.tapLeafScript=[]),t.tapLeafScript.push(o.inputs.tapLeafScript.decode(n));break;case i.InputTypes.TAP_BIP32_DERIVATION:void 0===t.tapBip32Derivation&&(t.tapBip32Derivation=[]),t.tapBip32Derivation.push(o.inputs.tapBip32Derivation.decode(n));break;case i.InputTypes.TAP_INTERNAL_KEY:s("input",n.key,i.InputTypes.TAP_INTERNAL_KEY),t.tapInternalKey=o.inputs.tapInternalKey.decode(n);break;case i.InputTypes.TAP_MERKLE_ROOT:s("input",n.key,i.InputTypes.TAP_MERKLE_ROOT),t.tapMerkleRoot=o.inputs.tapMerkleRoot.decode(n);break;default:t.unknownKeyVals||(t.unknownKeyVals=[]),t.unknownKeyVals.push(n)}d.push(t)}for(const e of n.range(p)){const t={};for(const r of a[e])switch(o.outputs.checkPubkey(r),r.key[0]){case i.OutputTypes.REDEEM_SCRIPT:if(s("output",r.key,i.OutputTypes.REDEEM_SCRIPT),void 0!==t.redeemScript)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");t.redeemScript=o.outputs.redeemScript.decode(r);break;case i.OutputTypes.WITNESS_SCRIPT:if(s("output",r.key,i.OutputTypes.WITNESS_SCRIPT),void 0!==t.witnessScript)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");t.witnessScript=o.outputs.witnessScript.decode(r);break;case i.OutputTypes.BIP32_DERIVATION:void 0===t.bip32Derivation&&(t.bip32Derivation=[]),t.bip32Derivation.push(o.outputs.bip32Derivation.decode(r));break;case i.OutputTypes.TAP_INTERNAL_KEY:s("output",r.key,i.OutputTypes.TAP_INTERNAL_KEY),t.tapInternalKey=o.outputs.tapInternalKey.decode(r);break;case i.OutputTypes.TAP_TREE:s("output",r.key,i.OutputTypes.TAP_TREE),t.tapTree=o.outputs.tapTree.decode(r);break;case i.OutputTypes.TAP_BIP32_DERIVATION:void 0===t.tapBip32Derivation&&(t.tapBip32Derivation=[]),t.tapBip32Derivation.push(o.outputs.tapBip32Derivation.decode(r));break;default:t.unknownKeyVals||(t.unknownKeyVals=[]),t.unknownKeyVals.push(r)}h.push(t)}return{globalMap:c,inputs:d,outputs:h}}t.psbtFromBuffer=function(e,t){let r=0;function o(){const t=a.decode(e,r);r+=a.encodingLength(t);const o=e.slice(r,r+t);return r+=t,o}function s(){return{key:o(),value:o()}}function l(){if(r>=e.length)throw new Error("Format Error: Unexpected End of PSBT");const t=0===e.readUInt8(r);return t&&r++,t}if(1886610036!==function(){const t=e.readUInt32BE(r);return r+=4,t}())throw new Error("Format Error: Invalid Magic Number");if(255!==function(){const t=e.readUInt8(r);return r+=1,t}())throw new Error("Format Error: Magic Number must be followed by 0xff separator");const u=[],p={};for(;!l();){const e=s(),t=e.key.toString("hex");if(p[t])throw new Error("Format Error: Keys must be unique for global keymap: key "+t);p[t]=1,u.push(e)}const d=u.filter((e=>e.key[0]===i.GlobalTypes.UNSIGNED_TX));if(1!==d.length)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const h=t(d[0].value),{inputCount:f,outputCount:m}=h.getInputOutputCounts(),v=[],g=[];for(const e of n.range(f)){const t={},r=[];for(;!l();){const o=s(),n=o.key.toString("hex");if(t[n])throw new Error("Format Error: Keys must be unique for each input: input index "+e+" key "+n);t[n]=1,r.push(o)}v.push(r)}for(const e of n.range(m)){const t={},r=[];for(;!l();){const o=s(),n=o.key.toString("hex");if(t[n])throw new Error("Format Error: Keys must be unique for each output: output index "+e+" key "+n);t[n]=1,r.push(o)}g.push(r)}return c(h,{globalMapKeyVals:u,inputKeyVals:v,outputKeyVals:g})},t.checkKeyBuffer=s,t.psbtFromKeyVals=c},91457:(e,t,r)=>{"use strict";function o(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),o(r(76263)),o(r(238))},238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(22706),n=r(78133);t.psbtToBuffer=function({globalMap:e,inputs:t,outputs:r}){const{globalKeyVals:o,inputKeyVals:a,outputKeyVals:i}=s({globalMap:e,inputs:t,outputs:r}),c=n.keyValsToBuffer(o),l=e=>0===e.length?[Buffer.from([0])]:e.map(n.keyValsToBuffer),u=l(a),p=l(i),d=Buffer.allocUnsafe(5);return d.writeUIntBE(482972169471,0,5),Buffer.concat([d,c].concat(u,p))};const a=(e,t)=>e.key.compare(t.key);function i(e,t){const r=new Set,o=Object.entries(e).reduce(((e,[o,n])=>{if("unknownKeyVals"===o)return e;const a=t[o];if(void 0===a)return e;const i=(Array.isArray(n)?n:[n]).map(a.encode);return i.map((e=>e.key.toString("hex"))).forEach((e=>{if(r.has(e))throw new Error("Serialize Error: Duplicate key: "+e);r.add(e)})),e.concat(i)}),[]),n=e.unknownKeyVals?e.unknownKeyVals.filter((e=>!r.has(e.key.toString("hex")))):[];return o.concat(n).sort(a)}function s({globalMap:e,inputs:t,outputs:r}){return{globalKeyVals:i(e,o.globals),inputKeyVals:t.map((e=>i(e,o.inputs))),outputKeyVals:r.map((e=>i(e,o.outputs)))}}t.psbtToKeyVals=s},1614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(64863),n=r(91457),a=r(99080),i=r(45080);t.Psbt=class{constructor(e){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:e}}static fromBase64(e,t){const r=Buffer.from(e,"base64");return this.fromBuffer(r,t)}static fromHex(e,t){const r=Buffer.from(e,"hex");return this.fromBuffer(r,t)}static fromBuffer(e,t){const r=n.psbtFromBuffer(e,t),o=new this(r.globalMap.unsignedTx);return Object.assign(o,r),o}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return n.psbtToBuffer(this)}updateGlobal(e){return i.updateGlobal(e,this.globalMap),this}updateInput(e,t){const r=i.checkForInput(this.inputs,e);return i.updateInput(t,r),this}updateOutput(e,t){const r=i.checkForOutput(this.outputs,e);return i.updateOutput(t,r),this}addUnknownKeyValToGlobal(e){return i.checkHasKey(e,this.globalMap.unknownKeyVals,i.getEnumLength(a.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(e),this}addUnknownKeyValToInput(e,t){const r=i.checkForInput(this.inputs,e);return i.checkHasKey(t,r.unknownKeyVals,i.getEnumLength(a.InputTypes)),r.unknownKeyVals||(r.unknownKeyVals=[]),r.unknownKeyVals.push(t),this}addUnknownKeyValToOutput(e,t){const r=i.checkForOutput(this.outputs,e);return i.checkHasKey(t,r.unknownKeyVals,i.getEnumLength(a.OutputTypes)),r.unknownKeyVals||(r.unknownKeyVals=[]),r.unknownKeyVals.push(t),this}addInput(e){this.globalMap.unsignedTx.addInput(e),this.inputs.push({unknownKeyVals:[]});const t=e.unknownKeyVals||[],r=this.inputs.length-1;if(!Array.isArray(t))throw new Error("unknownKeyVals must be an Array");return t.forEach((e=>this.addUnknownKeyValToInput(r,e))),i.addInputAttributes(this.inputs,e),this}addOutput(e){this.globalMap.unsignedTx.addOutput(e),this.outputs.push({unknownKeyVals:[]});const t=e.unknownKeyVals||[],r=this.outputs.length-1;if(!Array.isArray(t))throw new Error("unknownKeyVals must be an Array");return t.forEach((e=>this.addUnknownKeyValToInput(r,e))),i.addOutputAttributes(this.outputs,e),this}clearFinalizedInput(e){const t=i.checkForInput(this.inputs,e);i.inputCheckUncleanFinalized(e,t);for(const e of Object.keys(t))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(e)||delete t[e];return this}combine(...e){const t=o.combine([this].concat(e));return Object.assign(this,t),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}}},99080:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.UNSIGNED_TX=0]="UNSIGNED_TX",e[e.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(t.GlobalTypes||(t.GlobalTypes={})),t.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(e){e[e.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",e[e.WITNESS_UTXO=1]="WITNESS_UTXO",e[e.PARTIAL_SIG=2]="PARTIAL_SIG",e[e.SIGHASH_TYPE=3]="SIGHASH_TYPE",e[e.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",e[e.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",e[e.BIP32_DERIVATION=6]="BIP32_DERIVATION",e[e.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",e[e.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",e[e.POR_COMMITMENT=9]="POR_COMMITMENT",e[e.TAP_KEY_SIG=19]="TAP_KEY_SIG",e[e.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",e[e.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",e[e.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",e[e.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",e[e.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(t.InputTypes||(t.InputTypes={})),t.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(e){e[e.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",e[e.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",e[e.BIP32_DERIVATION=2]="BIP32_DERIVATION",e[e.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",e[e.TAP_TREE=6]="TAP_TREE",e[e.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(t.OutputTypes||(t.OutputTypes={})),t.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]},45080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(22706);function n(e,t){const r=e[t];if(void 0===r)throw new Error(`No input #${t}`);return r}function a(e,t){const r=e[t];if(void 0===r)throw new Error(`No output #${t}`);return r}function i(e,t,r,o){throw new Error(`Data for ${e} key ${t} is incorrect: Expected ${r} and got ${JSON.stringify(o)}`)}function s(e){return(t,r)=>{for(const n of Object.keys(t)){const a=t[n],{canAdd:s,canAddToArray:c,check:l,expected:u}=o[e+"s"][n]||{},p=!!c;if(l)if(p){if(!Array.isArray(a)||r[n]&&!Array.isArray(r[n]))throw new Error(`Key type ${n} must be an array`);a.every(l)||i(e,n,u,a);const t=r[n]||[],o=new Set;if(!a.every((e=>c(t,e,o))))throw new Error("Can not add duplicate data to array");r[n]=t.concat(a)}else{if(l(a)||i(e,n,u,a),!s(r,a))throw new Error(`Can not add duplicate data to ${e}`);r[n]=a}}}}t.checkForInput=n,t.checkForOutput=a,t.checkHasKey=function(e,t,r){if(e.key[0]<r)throw new Error("Use the method for your specific key instead of addUnknownKeyVal*");if(t&&0!==t.filter((t=>t.key.equals(e.key))).length)throw new Error(`Duplicate Key: ${e.key.toString("hex")}`)},t.getEnumLength=function(e){let t=0;return Object.keys(e).forEach((e=>{Number(isNaN(Number(e)))&&t++})),t},t.inputCheckUncleanFinalized=function(e,t){let r=!1;if(t.nonWitnessUtxo||t.witnessUtxo){const e=!!t.redeemScript,o=!!t.witnessScript,n=!e||!!t.finalScriptSig,a=!o||!!t.finalScriptWitness,i=!!t.finalScriptSig||!!t.finalScriptWitness;r=n&&a&&i}if(!1===r)throw new Error(`Input #${e} has too much or too little data to clean`)},t.updateGlobal=s("global"),t.updateInput=s("input"),t.updateOutput=s("output"),t.addInputAttributes=function(e,r){const o=n(e,e.length-1);t.updateInput(r,o)},t.addOutputAttributes=function(e,r){const o=a(e,e.length-1);t.updateOutput(r,o)},t.defaultVersionSetter=function(e,t){if(!Buffer.isBuffer(t)||t.length<4)throw new Error("Set Version: Invalid Transaction");return t.writeUInt32LE(e,0),t},t.defaultLocktimeSetter=function(e,t){if(!Buffer.isBuffer(t)||t.length<4)throw new Error("Set Locktime: Invalid Transaction");return t.writeUInt32LE(e,t.length-4),t}},94642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(19571),n=r(37757),a=r(91889),i=r(8676),s=r(57513);t.BIP32Factory=function(e){n.testEcc(e);const t=i.BufferN(32),r=i.compile({wif:i.UInt8,bip32:{public:i.UInt32,private:i.UInt32}}),c={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},l=2147483648,u=Math.pow(2,31)-1;function p(e){return i.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function d(e){return i.UInt32(e)&&e<=u}class h{constructor(e,t,o,n,a=0,s=0,c=0){this.__D=e,this.__Q=t,this.chainCode=o,this.network=n,this.__DEPTH=a,this.__INDEX=s,this.__PARENT_FINGERPRINT=c,i(r,n),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=Buffer.from(e.pointFromScalar(this.__D,!0))),this.__Q}get privateKey(){return this.__D}get identifier(){return o.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return void 0===this.__D}neutered(){return v(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=Buffer.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),a.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return s.encode(this.network.wif,this.privateKey,!0)}derive(t){i(i.UInt32,t);const r=t>=l,n=Buffer.allocUnsafe(37);if(r){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");n[0]=0,this.privateKey.copy(n,1),n.writeUInt32BE(t,33)}else this.publicKey.copy(n,0),n.writeUInt32BE(t,33);const a=o.hmacSHA512(this.chainCode,n),s=a.slice(0,32),c=a.slice(32);if(!e.isPrivate(s))return this.derive(t+1);let u;if(this.isNeutered()){const r=Buffer.from(e.pointAddScalar(this.publicKey,s,!0));if(null===r)return this.derive(t+1);u=v(r,c,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}else{const r=Buffer.from(e.privateAdd(this.privateKey,s));if(null==r)return this.derive(t+1);u=m(r,c,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}return u}deriveHardened(e){return i(d,e),this.derive(e+l)}derivePath(e){i(p,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce(((e,t)=>{let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))}),this)}sign(t,r){if(!this.privateKey)throw new Error("Missing private key");if(void 0===r&&(r=this.lowR),!1===r)return Buffer.from(e.sign(t,this.privateKey));{let r=Buffer.from(e.sign(t,this.privateKey));const o=Buffer.alloc(32,0);let n=0;for(;r[0]>127;)n++,o.writeUIntLE(n,0,6),r=Buffer.from(e.sign(t,this.privateKey,o));return r}}signSchnorr(t){if(!this.privateKey)throw new Error("Missing private key");if(!e.signSchnorr)throw new Error("signSchnorr not supported by ecc library");return Buffer.from(e.signSchnorr(t,this.privateKey))}verify(t,r){return e.verify(t,this.publicKey,r)}verifySchnorr(t,r){if(!e.verifySchnorr)throw new Error("verifySchnorr not supported by ecc library");return e.verifySchnorr(t,this.publicKey.subarray(1,33),r)}}function f(e,t,r){return m(e,t,r)}function m(r,o,n,a,s,l){if(i({privateKey:t,chainCode:t},{privateKey:r,chainCode:o}),n=n||c,!e.isPrivate(r))throw new TypeError("Private key not in range [1, n)");return new h(r,void 0,o,n,a,s,l)}function v(r,o,n,a,s,l){if(i({publicKey:i.BufferN(33),chainCode:t},{publicKey:r,chainCode:o}),n=n||c,!e.isPoint(r))throw new TypeError("Point is not on the curve");return new h(void 0,r,o,n,a,s,l)}return{fromSeed:function(e,t){if(i(i.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||c;const r=o.hmacSHA512(Buffer.from("Bitcoin seed","utf8"),e);return f(r.slice(0,32),r.slice(32),t)},fromBase58:function(e,t){const r=a.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||c;const o=r.readUInt32BE(0);if(o!==t.bip32.private&&o!==t.bip32.public)throw new TypeError("Invalid network version");const n=r[4],i=r.readUInt32BE(5);if(0===n&&0!==i)throw new TypeError("Invalid parent fingerprint");const s=r.readUInt32BE(9);if(0===n&&0!==s)throw new TypeError("Invalid index");const l=r.slice(13,45);let u;if(o===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");u=m(r.slice(46,78),l,t,n,s,i)}else{u=v(r.slice(45,78),l,t,n,s,i)}return u},fromPublicKey:function(e,t,r){return v(e,t,r)},fromPrivateKey:f}}},19571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(31240),n=r(6815);t.hash160=function(e){const t=o("sha256").update(e).digest();try{return o("rmd160").update(t).digest()}catch(e){return o("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return n("sha512",e).update(t).digest()}},852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(94642);t.default=o.BIP32Factory,t.BIP32Factory=o.BIP32Factory},37757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e=>Buffer.from(e,"hex");function o(e){if(!e)throw new Error("ecc library invalid")}t.testEcc=function(e){o(e.isPoint(r("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),o(!e.isPoint(r("030000000000000000000000000000000000000000000000000000000000000005"))),o(e.isPrivate(r("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),o(e.isPrivate(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140"))),o(!e.isPrivate(r("0000000000000000000000000000000000000000000000000000000000000000"))),o(!e.isPrivate(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"))),o(!e.isPrivate(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364142"))),o(Buffer.from(e.pointFromScalar(r("b1121e4088a66a28f5b6b0f5844943ecd9f610196d7bb83b25214b60452c09af"))).equals(r("02b07ba9dca9523b7ef4bd97703d43d20399eb698e194704791a25ce77a400df99"))),o(Buffer.from(e.pointAddScalar(r("0379be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),r("0000000000000000000000000000000000000000000000000000000000000003"))).equals(r("02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5"))),o(Buffer.from(e.privateAdd(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd036413e"),r("0000000000000000000000000000000000000000000000000000000000000002"))).equals(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140"))),o(Buffer.from(e.sign(r("5e9f0a0d593efdcf78ac923bc3313e4e7d408d574354ee2b3288c0da9fbba6ed"),r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140"))).equals(r("54c4a33c6423d689378f160a7ff8b61330444abb58fb470f96ea16d99d4a2fed07082304410efa6b2943111b6a4e0aaa7b7db55a07e9861d1fb3cb1f421044a5"))),o(e.verify(r("5e9f0a0d593efdcf78ac923bc3313e4e7d408d574354ee2b3288c0da9fbba6ed"),r("0379be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),r("54c4a33c6423d689378f160a7ff8b61330444abb58fb470f96ea16d99d4a2fed07082304410efa6b2943111b6a4e0aaa7b7db55a07e9861d1fb3cb1f421044a5"))),e.signSchnorr&&o(Buffer.from(e.signSchnorr(r("7e2d58d8b3bcdf1abadec7829054f90dda9805aab56c77333024b9d0a508b75c"),r("c90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b14e5c9"),r("c87aa53824b4d7ae2eb035a2b5bbbccc080e76cdc6d1692c4b0b62d798e6d906"))).equals(r("5831aaeed7b44bb74e5eab94ba9d4294c49bcf2a60728d8b4c200f50dd313c1bab745879a5ad954a72c45a91c3a51d3c7adea98d82f8481e0e1e03674a6f3fb7"))),e.verifySchnorr&&o(e.verifySchnorr(r("7e2d58d8b3bcdf1abadec7829054f90dda9805aab56c77333024b9d0a508b75c"),r("dd308afec5777e13121fa72b9cc1b7cc0139715309b086c960e18fd969774eb8"),r("5831aaeed7b44bb74e5eab94ba9d4294c49bcf2a60728d8b4c200f50dd313c1bab745879a5ad954a72c45a91c3a51d3c7adea98d82f8481e0e1e03674a6f3fb7")))}},96907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o={};let n;t.wordlists=o,t._default=n;try{t._default=n=r(12607),o.czech=n}catch(e){}try{t._default=n=r(55898),o.chinese_simplified=n}catch(e){}try{t._default=n=r(70081),o.chinese_traditional=n}catch(e){}try{t._default=n=r(55428),o.korean=n}catch(e){}try{t._default=n=r(95040),o.french=n}catch(e){}try{t._default=n=r(65576),o.italian=n}catch(e){}try{t._default=n=r(75376),o.spanish=n}catch(e){}try{t._default=n=r(37967),o.japanese=n,o.JA=n}catch(e){}try{t._default=n=r(87357),o.portuguese=n}catch(e){}try{t._default=n=r(87736),o.english=n,o.EN=n}catch(e){}},90749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(31240),n=r(35488),a=r(44137),i=r(96907);let s=i._default;const c="Invalid mnemonic",l="Invalid entropy",u="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function p(e){return(e||"").normalize("NFKD")}function d(e,t,r){for(;e.length<r;)e=t+e;return e}function h(e){return parseInt(e,2)}function f(e){return e.map((e=>d(e.toString(2),"0",8))).join("")}function m(e){const t=8*e.length/32,r=o("sha256").update(e).digest();return f(Array.from(r)).slice(0,t)}function v(e){return"mnemonic"+(e||"")}function g(e,t){if(!(t=t||s))throw new Error(u);const r=p(e).split(" ");if(r.length%3!=0)throw new Error(c);const o=r.map((e=>{const r=t.indexOf(e);if(-1===r)throw new Error(c);return d(r.toString(2),"0",11)})).join(""),n=32*Math.floor(o.length/33),a=o.slice(0,n),i=o.slice(n),f=a.match(/(.{1,8})/g).map(h);if(f.length<16)throw new Error(l);if(f.length>32)throw new Error(l);if(f.length%4!=0)throw new Error(l);const v=Buffer.from(f);if(m(v)!==i)throw new Error("Invalid mnemonic checksum");return v.toString("hex")}function y(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),!(t=t||s))throw new Error(u);if(e.length<16)throw new TypeError(l);if(e.length>32)throw new TypeError(l);if(e.length%4!=0)throw new TypeError(l);const r=(f(Array.from(e))+m(e)).match(/(.{1,11})/g).map((e=>{const r=h(e);return t[r]}));return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Buffer.from(p(e),"utf8"),o=Buffer.from(v(p(t)),"utf8");return n.pbkdf2Sync(r,o,2048,64,"sha512")},t.mnemonicToSeed=function(e,t){return Promise.resolve().then((()=>function(e,t,r,o,a){return Promise.resolve().then((()=>new Promise(((i,s)=>{n.pbkdf2(e,t,r,o,a,((e,t)=>e?s(e):i(t)))}))))}(Buffer.from(p(e),"utf8"),Buffer.from(v(p(t)),"utf8"),2048,64,"sha512")))},t.mnemonicToEntropy=g,t.entropyToMnemonic=y,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(l);return y((t=t||a)(e/8),r)},t.validateMnemonic=function(e,t){try{g(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=i.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');s=t},t.getDefaultWordlist=function(){if(!s)throw new Error("No Default Wordlist set");return Object.keys(i.wordlists).filter((e=>"JA"!==e&&"EN"!==e&&i.wordlists[e].every(((e,t)=>e===s[t]))))[0]};var b=r(96907);t.wordlists=b.wordlists},70057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toOutputScript=t.fromOutputScript=t.toBech32=t.toBase58Check=t.fromBech32=t.fromBase58Check=void 0;const o=r(50622),n=r(30885),a=r(67038),i=r(98116),s=r(22343),c=r(91889),{typeforce:l}=i,u="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function p(e){const t=c.decode(e);if(t.length<21)throw new TypeError(e+" is too short");if(t.length>21)throw new TypeError(e+" is too long");return{version:t.readUInt8(0),hash:t.slice(1)}}function d(e){let t,r;try{t=s.bech32.decode(e)}catch(e){}if(t){if(r=t.words[0],0!==r)throw new TypeError(e+" uses wrong encoding")}else if(t=s.bech32m.decode(e),r=t.words[0],0===r)throw new TypeError(e+" uses wrong encoding");const o=s.bech32.fromWords(t.words.slice(1));return{version:r,prefix:t.prefix,data:Buffer.from(o)}}function h(e,t,r){const o=s.bech32.toWords(e);return o.unshift(t),0===t?s.bech32.encode(r,o):s.bech32m.encode(r,o)}t.fromBase58Check=p,t.fromBech32=d,t.toBase58Check=function(e,t){l(i.tuple(i.Hash160bit,i.UInt8),arguments);const r=Buffer.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),c.encode(r)},t.toBech32=h,t.fromOutputScript=function(e,t){t=t||o.bitcoin;try{return n.p2pkh({output:e,network:t}).address}catch(e){}try{return n.p2sh({output:e,network:t}).address}catch(e){}try{return n.p2wpkh({output:e,network:t}).address}catch(e){}try{return n.p2wsh({output:e,network:t}).address}catch(e){}try{return function(e,t){const r=e.slice(2);if(r.length<2||r.length>40)throw new TypeError("Invalid program length for segwit address");const o=e[0]-80;if(o<1||o>16)throw new TypeError("Invalid version for segwit address");if(e[1]!==r.length)throw new TypeError("Invalid script for segwit address");return console.warn(u),h(r,o,t.bech32)}(e,t)}catch(e){}throw new Error(a.toASM(e)+" has no matching Address")},t.toOutputScript=function(e,t){let r,i;t=t||o.bitcoin;try{r=p(e)}catch(e){}if(r){if(r.version===t.pubKeyHash)return n.p2pkh({hash:r.hash}).output;if(r.version===t.scriptHash)return n.p2sh({hash:r.hash}).output}else{try{i=d(e)}catch(e){}if(i){if(i.prefix!==t.bech32)throw new Error(e+" has an invalid prefix");if(0===i.version){if(20===i.data.length)return n.p2wpkh({hash:i.data}).output;if(32===i.data.length)return n.p2wsh({hash:i.data}).output}else if(i.version>=1&&i.version<=16&&i.data.length>=2&&i.data.length<=40)return console.warn(u),a.compile([i.version+80,i.data])}}throw new Error(e+" has no matching Script")}},13966:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=t.decode=t.check=void 0,t.check=function(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;const t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;const r=e[5+t];return 0!==r&&(6+t+r===e.length&&(!(128&e[4])&&(!(t>1&&0===e[4]&&!(128&e[5]))&&(!(128&e[t+6])&&!(r>1&&0===e[t+6]&&!(128&e[t+7]))))))},t.decode=function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");const t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");const r=e[5+t];if(0===r)throw new Error("S length is zero");if(6+t+r!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(r>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},t.encode=function(e,t){const r=e.length,o=t.length;if(0===r)throw new Error("R length is zero");if(0===o)throw new Error("S length is zero");if(r>33)throw new Error("R length is too long");if(o>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(r>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(o>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");const n=Buffer.allocUnsafe(6+r+o);return n[0]=48,n[1]=n.length-2,n[2]=2,n[3]=e.length,e.copy(n,4),n[4+r]=2,n[5+r]=t.length,t.copy(n,6+r),n}},41696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;const o=r(30606),n=r(91944),a=r(31015),i=r(22021),s=r(98116),{typeforce:c}=s,l=new TypeError("Cannot compute merkle root for zero transactions"),u=new TypeError("Cannot compute witness commit for non-segwit block");class p{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(e){if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");const t=new o.BufferReader(e),r=new p;if(r.version=t.readInt32(),r.prevHash=t.readSlice(32),r.merkleRoot=t.readSlice(32),r.timestamp=t.readUInt32(),r.bits=t.readUInt32(),r.nonce=t.readUInt32(),80===e.length)return r;const n=()=>{const e=i.Transaction.fromBuffer(t.buffer.slice(t.offset),!0);return t.offset+=e.byteLength(),e},a=t.readVarInt();r.transactions=[];for(let e=0;e<a;++e){const e=n();r.transactions.push(e)}const s=r.getWitnessCommit();return s&&(r.witnessCommit=s),r}static fromHex(e){return p.fromBuffer(Buffer.from(e,"hex"))}static calculateTarget(e){const t=((4278190080&e)>>24)-3,r=8388607&e,o=Buffer.alloc(32,0);return o.writeUIntBE(r,29-t,3),o}static calculateMerkleRoot(e,t){if(c([{getHash:s.Function}],e),0===e.length)throw l;if(t&&!d(e))throw u;const r=e.map((e=>e.getHash(t))),o=(0,a.fastMerkleRoot)(r,n.hash256);return t?n.hash256(Buffer.concat([o,e[0].ins[0].witness[0]])):o}getWitnessCommit(){if(!d(this.transactions))return null;const e=this.transactions[0].outs.filter((e=>e.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex")))).map((e=>e.script.slice(6,38)));if(0===e.length)return null;const t=e[e.length-1];return t instanceof Buffer&&32===t.length?t:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&32===this.witnessCommit.length||null!==this.getWitnessCommit()}hasWitness(){return(e=this.transactions)instanceof Array&&e.some((e=>"object"==typeof e&&e.ins instanceof Array&&e.ins.some((e=>"object"==typeof e&&e.witness instanceof Array&&e.witness.length>0))));var e}weight(){return 3*this.byteLength(!1,!1)+this.byteLength(!1,!0)}byteLength(e,t=!0){return e||!this.transactions?80:80+o.varuint.encodingLength(this.transactions.length)+this.transactions.reduce(((e,r)=>e+r.byteLength(t)),0)}getHash(){return n.hash256(this.toBuffer(!0))}getId(){return(0,o.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const e=new Date(0);return e.setUTCSeconds(this.timestamp),e}toBuffer(e){const t=Buffer.allocUnsafe(this.byteLength(e)),r=new o.BufferWriter(t);return r.writeInt32(this.version),r.writeSlice(this.prevHash),r.writeSlice(this.merkleRoot),r.writeUInt32(this.timestamp),r.writeUInt32(this.bits),r.writeUInt32(this.nonce),e||!this.transactions||(o.varuint.encode(this.transactions.length,t,r.offset),r.offset+=o.varuint.encode.bytes,this.transactions.forEach((e=>{const o=e.byteLength();e.toBuffer(t,r.offset),r.offset+=o}))),t}toHex(e){return this.toBuffer(e).toString("hex")}checkTxRoots(){const e=this.hasWitnessCommit();return!(!e&&this.hasWitness())&&(this.__checkMerkleRoot()&&(!e||this.__checkWitnessCommit()))}checkProofOfWork(){const e=(0,o.reverseBuffer)(this.getHash()),t=p.calculateTarget(this.bits);return e.compare(t)<=0}__checkMerkleRoot(){if(!this.transactions)throw l;const e=p.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)}__checkWitnessCommit(){if(!this.transactions)throw l;if(!this.hasWitnessCommit())throw u;const e=p.calculateMerkleRoot(this.transactions,!0);return 0===this.witnessCommit.compare(e)}}function d(e){return e instanceof Array&&e[0]&&e[0].ins&&e[0].ins instanceof Array&&e[0].ins[0]&&e[0].ins[0].witness&&e[0].ins[0].witness instanceof Array&&e[0].ins[0].witness.length>0}t.Block=p},30606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferReader=t.BufferWriter=t.cloneBuffer=t.reverseBuffer=t.writeUInt64LE=t.readUInt64LE=t.varuint=void 0;const o=r(98116),{typeforce:n}=o,a=r(68469);function i(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}function s(e,t){const r=e.readUInt32LE(t);let o=e.readUInt32LE(t+4);return o*=4294967296,i(o+r,9007199254740991),o+r}function c(e,t,r){return i(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8}t.varuint=a,t.readUInt64LE=s,t.writeUInt64LE=c,t.reverseBuffer=function(e){if(e.length<1)return e;let t=e.length-1,r=0;for(let o=0;o<e.length/2;o++)r=e[o],e[o]=e[t],e[t]=r,t--;return e},t.cloneBuffer=function(e){const t=Buffer.allocUnsafe(e.length);return e.copy(t),t};class l{constructor(e,t=0){this.buffer=e,this.offset=t,n(o.tuple(o.Buffer,o.UInt32),[e,t])}static withCapacity(e){return new l(Buffer.alloc(e))}writeUInt8(e){this.offset=this.buffer.writeUInt8(e,this.offset)}writeInt32(e){this.offset=this.buffer.writeInt32LE(e,this.offset)}writeUInt32(e){this.offset=this.buffer.writeUInt32LE(e,this.offset)}writeUInt64(e){this.offset=c(this.buffer,e,this.offset)}writeVarInt(e){a.encode(e,this.buffer,this.offset),this.offset+=a.encode.bytes}writeSlice(e){if(this.buffer.length<this.offset+e.length)throw new Error("Cannot write slice out of bounds");this.offset+=e.copy(this.buffer,this.offset)}writeVarSlice(e){this.writeVarInt(e.length),this.writeSlice(e)}writeVector(e){this.writeVarInt(e.length),e.forEach((e=>this.writeVarSlice(e)))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}t.BufferWriter=l;t.BufferReader=class{constructor(e,t=0){this.buffer=e,this.offset=t,n(o.tuple(o.Buffer,o.UInt32),[e,t])}readUInt8(){const e=this.buffer.readUInt8(this.offset);return this.offset++,e}readInt32(){const e=this.buffer.readInt32LE(this.offset);return this.offset+=4,e}readUInt32(){const e=this.buffer.readUInt32LE(this.offset);return this.offset+=4,e}readUInt64(){const e=s(this.buffer,this.offset);return this.offset+=8,e}readVarInt(){const e=a.decode(this.buffer,this.offset);return this.offset+=a.decode.bytes,e}readSlice(e){if(this.buffer.length<this.offset+e)throw new Error("Cannot read slice out of bounds");const t=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}readVarSlice(){return this.readSlice(this.readVarInt())}readVector(){const e=this.readVarInt(),t=[];for(let r=0;r<e;r++)t.push(this.readVarSlice());return t}}},91944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taggedHash=t.hash256=t.hash160=t.sha256=t.sha1=t.ripemd160=void 0;const o=r(31240);function n(e){try{return o("rmd160").update(e).digest()}catch(t){return o("ripemd160").update(e).digest()}}function a(e){return o("sha256").update(e).digest()}t.ripemd160=n,t.sha1=function(e){return o("sha1").update(e).digest()},t.sha256=a,t.hash160=function(e){return n(a(e))},t.hash256=function(e){return a(a(e))};const i=Object.fromEntries(["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"].map((e=>{const t=a(Buffer.from(e));return[e,Buffer.concat([t,t])]})));t.taggedHash=function(e,t){return a(Buffer.concat([i[e],t]))}},21757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.opcodes=t.Psbt=t.Block=t.script=t.payments=t.networks=t.crypto=t.address=void 0;const o=r(70057);t.address=o;const n=r(91944);t.crypto=n;const a=r(50622);t.networks=a;const i=r(30885);t.payments=i;const s=r(67038);t.script=s;var c=r(41696);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return c.Block}});var l=r(59646);Object.defineProperty(t,"Psbt",{enumerable:!0,get:function(){return l.Psbt}});var u=r(68417);Object.defineProperty(t,"opcodes",{enumerable:!0,get:function(){return u.OPS}});var p=r(22021);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return p.Transaction}})},31015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastMerkleRoot=void 0,t.fastMerkleRoot=function(e,t){if(!Array.isArray(e))throw TypeError("Expected values Array");if("function"!=typeof t)throw TypeError("Expected digest Function");let r=e.length;const o=e.concat();for(;r>1;){let e=0;for(let n=0;n<r;n+=2,++e){const a=o[n],i=n+1===r?a:o[n+1],s=Buffer.concat([a,i]);o[e]=t(s)}r=e}return o[0]}},50622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testnet=t.regtest=t.bitcoin=void 0,t.bitcoin={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},t.regtest={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},t.testnet={messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}},68417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REVERSE_OPS=t.OPS=void 0;const r={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};t.OPS=r;const o={};t.REVERSE_OPS=o;for(const e of Object.keys(r)){o[r[e]]=e}},55472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2data=void 0;const o=r(50622),n=r(67038),a=r(98116),i=r(97883),s=n.OPS;t.p2data=function(e,t){if(!e.data&&!e.output)throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),(0,a.typeforce)({network:a.typeforce.maybe(a.typeforce.Object),output:a.typeforce.maybe(a.typeforce.Buffer),data:a.typeforce.maybe(a.typeforce.arrayOf(a.typeforce.Buffer))},e);const r={name:"embed",network:e.network||o.bitcoin};if(i.prop(r,"output",(()=>{if(e.data)return n.compile([s.OP_RETURN].concat(e.data))})),i.prop(r,"data",(()=>{if(e.output)return n.decompile(e.output).slice(1)})),t.validate&&e.output){const t=n.decompile(e.output);if(t[0]!==s.OP_RETURN)throw new TypeError("Output is invalid");if(!t.slice(1).every(a.typeforce.Buffer))throw new TypeError("Output is invalid");if(e.data&&!function(e,t){return e.length===t.length&&e.every(((e,r)=>e.equals(t[r])))}(e.data,r.data))throw new TypeError("Data mismatch")}return Object.assign(r,e)}},30885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2wsh=t.p2wpkh=t.p2sh=t.p2pkh=t.p2pk=t.p2ms=t.embed=void 0;const o=r(55472);Object.defineProperty(t,"embed",{enumerable:!0,get:function(){return o.p2data}});const n=r(91395);Object.defineProperty(t,"p2ms",{enumerable:!0,get:function(){return n.p2ms}});const a=r(4930);Object.defineProperty(t,"p2pk",{enumerable:!0,get:function(){return a.p2pk}});const i=r(23504);Object.defineProperty(t,"p2pkh",{enumerable:!0,get:function(){return i.p2pkh}});const s=r(8368);Object.defineProperty(t,"p2sh",{enumerable:!0,get:function(){return s.p2sh}});const c=r(77027);Object.defineProperty(t,"p2wpkh",{enumerable:!0,get:function(){return c.p2wpkh}});const l=r(79041);Object.defineProperty(t,"p2wsh",{enumerable:!0,get:function(){return l.p2wsh}})},97883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.value=t.prop=void 0,t.prop=function(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){const e=r.call(this);return this[t]=e,e},set(e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e,writable:!0})}})},t.value=function(e){let t;return()=>(void 0!==t||(t=e()),t)}},91395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2ms=void 0;const o=r(50622),n=r(67038),a=r(98116),i=r(97883),s=n.OPS,c=s.OP_RESERVED;function l(e,t){return e.length===t.length&&e.every(((e,r)=>e.equals(t[r])))}t.p2ms=function(e,t){if(!(e.input||e.output||e.pubkeys&&void 0!==e.m||e.signatures))throw new TypeError("Not enough data");function r(e){return n.isCanonicalScriptSignature(e)||void 0!==(t.allowIncomplete&&e===s.OP_0)}t=Object.assign({validate:!0},t||{}),(0,a.typeforce)({network:a.typeforce.maybe(a.typeforce.Object),m:a.typeforce.maybe(a.typeforce.Number),n:a.typeforce.maybe(a.typeforce.Number),output:a.typeforce.maybe(a.typeforce.Buffer),pubkeys:a.typeforce.maybe(a.typeforce.arrayOf(a.isPoint)),signatures:a.typeforce.maybe(a.typeforce.arrayOf(r)),input:a.typeforce.maybe(a.typeforce.Buffer)},e);const u={network:e.network||o.bitcoin};let p=[],d=!1;function h(e){d||(d=!0,p=n.decompile(e),u.m=p[0]-c,u.n=p[p.length-2]-c,u.pubkeys=p.slice(1,-2))}if(i.prop(u,"output",(()=>{if(e.m&&u.n&&e.pubkeys)return n.compile([].concat(c+e.m,e.pubkeys,c+u.n,s.OP_CHECKMULTISIG))})),i.prop(u,"m",(()=>{if(u.output)return h(u.output),u.m})),i.prop(u,"n",(()=>{if(u.pubkeys)return u.pubkeys.length})),i.prop(u,"pubkeys",(()=>{if(e.output)return h(e.output),u.pubkeys})),i.prop(u,"signatures",(()=>{if(e.input)return n.decompile(e.input).slice(1)})),i.prop(u,"input",(()=>{if(e.signatures)return n.compile([s.OP_0].concat(e.signatures))})),i.prop(u,"witness",(()=>{if(u.input)return[]})),i.prop(u,"name",(()=>{if(u.m&&u.n)return`p2ms(${u.m} of ${u.n})`})),t.validate){if(e.output){if(h(e.output),!a.typeforce.Number(p[0]))throw new TypeError("Output is invalid");if(!a.typeforce.Number(p[p.length-2]))throw new TypeError("Output is invalid");if(p[p.length-1]!==s.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(u.m<=0||u.n>16||u.m>u.n||u.n!==p.length-3)throw new TypeError("Output is invalid");if(!u.pubkeys.every((e=>(0,a.isPoint)(e))))throw new TypeError("Output is invalid");if(void 0!==e.m&&e.m!==u.m)throw new TypeError("m mismatch");if(void 0!==e.n&&e.n!==u.n)throw new TypeError("n mismatch");if(e.pubkeys&&!l(e.pubkeys,u.pubkeys))throw new TypeError("Pubkeys mismatch")}if(e.pubkeys){if(void 0!==e.n&&e.n!==e.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(u.n=e.pubkeys.length,u.n<u.m)throw new TypeError("Pubkey count cannot be less than m")}if(e.signatures){if(e.signatures.length<u.m)throw new TypeError("Not enough signatures provided");if(e.signatures.length>u.m)throw new TypeError("Too many signatures provided")}if(e.input){if(e.input[0]!==s.OP_0)throw new TypeError("Input is invalid");if(0===u.signatures.length||!u.signatures.every(r))throw new TypeError("Input has invalid signature(s)");if(e.signatures&&!l(e.signatures,u.signatures))throw new TypeError("Signature mismatch");if(void 0!==e.m&&e.m!==e.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(u,e)}},4930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2pk=void 0;const o=r(50622),n=r(67038),a=r(98116),i=r(97883),s=n.OPS;t.p2pk=function(e,t){if(!(e.input||e.output||e.pubkey||e.input||e.signature))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),(0,a.typeforce)({network:a.typeforce.maybe(a.typeforce.Object),output:a.typeforce.maybe(a.typeforce.Buffer),pubkey:a.typeforce.maybe(a.isPoint),signature:a.typeforce.maybe(n.isCanonicalScriptSignature),input:a.typeforce.maybe(a.typeforce.Buffer)},e);const r=i.value((()=>n.decompile(e.input))),c={name:"p2pk",network:e.network||o.bitcoin};if(i.prop(c,"output",(()=>{if(e.pubkey)return n.compile([e.pubkey,s.OP_CHECKSIG])})),i.prop(c,"pubkey",(()=>{if(e.output)return e.output.slice(1,-1)})),i.prop(c,"signature",(()=>{if(e.input)return r()[0]})),i.prop(c,"input",(()=>{if(e.signature)return n.compile([e.signature])})),i.prop(c,"witness",(()=>{if(c.input)return[]})),t.validate){if(e.output){if(e.output[e.output.length-1]!==s.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,a.isPoint)(c.pubkey))throw new TypeError("Output pubkey is invalid");if(e.pubkey&&!e.pubkey.equals(c.pubkey))throw new TypeError("Pubkey mismatch")}if(e.signature&&e.input&&!e.input.equals(c.input))throw new TypeError("Signature mismatch");if(e.input){if(1!==r().length)throw new TypeError("Input is invalid");if(!n.isCanonicalScriptSignature(c.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(c,e)}},23504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2pkh=void 0;const o=r(91944),n=r(50622),a=r(67038),i=r(98116),s=r(97883),c=r(91889),l=a.OPS;t.p2pkh=function(e,t){if(!(e.address||e.hash||e.output||e.pubkey||e.input))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),(0,i.typeforce)({network:i.typeforce.maybe(i.typeforce.Object),address:i.typeforce.maybe(i.typeforce.String),hash:i.typeforce.maybe(i.typeforce.BufferN(20)),output:i.typeforce.maybe(i.typeforce.BufferN(25)),pubkey:i.typeforce.maybe(i.isPoint),signature:i.typeforce.maybe(a.isCanonicalScriptSignature),input:i.typeforce.maybe(i.typeforce.Buffer)},e);const r=s.value((()=>{const t=c.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}})),u=s.value((()=>a.decompile(e.input))),p=e.network||n.bitcoin,d={name:"p2pkh",network:p};if(s.prop(d,"address",(()=>{if(!d.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(p.pubKeyHash,0),d.hash.copy(e,1),c.encode(e)})),s.prop(d,"hash",(()=>e.output?e.output.slice(3,23):e.address?r().hash:e.pubkey||d.pubkey?o.hash160(e.pubkey||d.pubkey):void 0)),s.prop(d,"output",(()=>{if(d.hash)return a.compile([l.OP_DUP,l.OP_HASH160,d.hash,l.OP_EQUALVERIFY,l.OP_CHECKSIG])})),s.prop(d,"pubkey",(()=>{if(e.input)return u()[1]})),s.prop(d,"signature",(()=>{if(e.input)return u()[0]})),s.prop(d,"input",(()=>{if(e.pubkey&&e.signature)return a.compile([e.signature,e.pubkey])})),s.prop(d,"witness",(()=>{if(d.input)return[]})),t.validate){let t=Buffer.from([]);if(e.address){if(r().version!==p.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(20!==r().hash.length)throw new TypeError("Invalid address");t=r().hash}if(e.hash){if(t.length>0&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(25!==e.output.length||e.output[0]!==l.OP_DUP||e.output[1]!==l.OP_HASH160||20!==e.output[2]||e.output[23]!==l.OP_EQUALVERIFY||e.output[24]!==l.OP_CHECKSIG)throw new TypeError("Output is invalid");const r=e.output.slice(3,23);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.pubkey){const r=o.hash160(e.pubkey);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.input){const r=u();if(2!==r.length)throw new TypeError("Input is invalid");if(!a.isCanonicalScriptSignature(r[0]))throw new TypeError("Input has invalid signature");if(!(0,i.isPoint)(r[1]))throw new TypeError("Input has invalid pubkey");if(e.signature&&!e.signature.equals(r[0]))throw new TypeError("Signature mismatch");if(e.pubkey&&!e.pubkey.equals(r[1]))throw new TypeError("Pubkey mismatch");const n=o.hash160(r[1]);if(t.length>0&&!t.equals(n))throw new TypeError("Hash mismatch")}}return Object.assign(d,e)}},8368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2sh=void 0;const o=r(91944),n=r(50622),a=r(67038),i=r(98116),s=r(97883),c=r(91889),l=a.OPS;t.p2sh=function(e,t){if(!(e.address||e.hash||e.output||e.redeem||e.input))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),(0,i.typeforce)({network:i.typeforce.maybe(i.typeforce.Object),address:i.typeforce.maybe(i.typeforce.String),hash:i.typeforce.maybe(i.typeforce.BufferN(20)),output:i.typeforce.maybe(i.typeforce.BufferN(23)),redeem:i.typeforce.maybe({network:i.typeforce.maybe(i.typeforce.Object),output:i.typeforce.maybe(i.typeforce.Buffer),input:i.typeforce.maybe(i.typeforce.Buffer),witness:i.typeforce.maybe(i.typeforce.arrayOf(i.typeforce.Buffer))}),input:i.typeforce.maybe(i.typeforce.Buffer),witness:i.typeforce.maybe(i.typeforce.arrayOf(i.typeforce.Buffer))},e);let r=e.network;r||(r=e.redeem&&e.redeem.network||n.bitcoin);const u={network:r},p=s.value((()=>{const t=c.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}})),d=s.value((()=>a.decompile(e.input))),h=s.value((()=>{const t=d();return{network:r,output:t[t.length-1],input:a.compile(t.slice(0,-1)),witness:e.witness||[]}}));if(s.prop(u,"address",(()=>{if(!u.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(u.network.scriptHash,0),u.hash.copy(e,1),c.encode(e)})),s.prop(u,"hash",(()=>e.output?e.output.slice(2,22):e.address?p().hash:u.redeem&&u.redeem.output?o.hash160(u.redeem.output):void 0)),s.prop(u,"output",(()=>{if(u.hash)return a.compile([l.OP_HASH160,u.hash,l.OP_EQUAL])})),s.prop(u,"redeem",(()=>{if(e.input)return h()})),s.prop(u,"input",(()=>{if(e.redeem&&e.redeem.input&&e.redeem.output)return a.compile([].concat(a.decompile(e.redeem.input),e.redeem.output))})),s.prop(u,"witness",(()=>u.redeem&&u.redeem.witness?u.redeem.witness:u.input?[]:void 0)),s.prop(u,"name",(()=>{const e=["p2sh"];return void 0!==u.redeem&&void 0!==u.redeem.name&&e.push(u.redeem.name),e.join("-")})),t.validate){let t=Buffer.from([]);if(e.address){if(p().version!==r.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(20!==p().hash.length)throw new TypeError("Invalid address");t=p().hash}if(e.hash){if(t.length>0&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(23!==e.output.length||e.output[0]!==l.OP_HASH160||20!==e.output[1]||e.output[22]!==l.OP_EQUAL)throw new TypeError("Output is invalid");const r=e.output.slice(2,22);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}const n=e=>{if(e.output){const r=a.decompile(e.output);if(!r||r.length<1)throw new TypeError("Redeem.output too short");const n=o.hash160(e.output);if(t.length>0&&!t.equals(n))throw new TypeError("Hash mismatch");t=n}if(e.input){const t=e.input.length>0,r=e.witness&&e.witness.length>0;if(!t&&!r)throw new TypeError("Empty input");if(t&&r)throw new TypeError("Input and witness provided");if(t){const t=a.decompile(e.input);if(!a.isPushOnly(t))throw new TypeError("Non push-only scriptSig")}}};if(e.input){const e=d();if(!e||e.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(h().output))throw new TypeError("Input is invalid");n(h())}if(e.redeem){if(e.redeem.network&&e.redeem.network!==r)throw new TypeError("Network mismatch");if(e.input){const t=h();if(e.redeem.output&&!e.redeem.output.equals(t.output))throw new TypeError("Redeem.output mismatch");if(e.redeem.input&&!e.redeem.input.equals(t.input))throw new TypeError("Redeem.input mismatch")}n(e.redeem)}if(e.witness&&e.redeem&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(((e,r)=>e.equals(t[r])))}(e.redeem.witness,e.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(u,e)}},77027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2wpkh=void 0;const o=r(91944),n=r(50622),a=r(67038),i=r(98116),s=r(97883),c=r(22343),l=a.OPS,u=Buffer.alloc(0);t.p2wpkh=function(e,t){if(!(e.address||e.hash||e.output||e.pubkey||e.witness))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),(0,i.typeforce)({address:i.typeforce.maybe(i.typeforce.String),hash:i.typeforce.maybe(i.typeforce.BufferN(20)),input:i.typeforce.maybe(i.typeforce.BufferN(0)),network:i.typeforce.maybe(i.typeforce.Object),output:i.typeforce.maybe(i.typeforce.BufferN(22)),pubkey:i.typeforce.maybe(i.isPoint),signature:i.typeforce.maybe(a.isCanonicalScriptSignature),witness:i.typeforce.maybe(i.typeforce.arrayOf(i.typeforce.Buffer))},e);const r=s.value((()=>{const t=c.bech32.decode(e.address),r=t.words.shift(),o=c.bech32.fromWords(t.words);return{version:r,prefix:t.prefix,data:Buffer.from(o)}})),p=e.network||n.bitcoin,d={name:"p2wpkh",network:p};if(s.prop(d,"address",(()=>{if(!d.hash)return;const e=c.bech32.toWords(d.hash);return e.unshift(0),c.bech32.encode(p.bech32,e)})),s.prop(d,"hash",(()=>e.output?e.output.slice(2,22):e.address?r().data:e.pubkey||d.pubkey?o.hash160(e.pubkey||d.pubkey):void 0)),s.prop(d,"output",(()=>{if(d.hash)return a.compile([l.OP_0,d.hash])})),s.prop(d,"pubkey",(()=>e.pubkey?e.pubkey:e.witness?e.witness[1]:void 0)),s.prop(d,"signature",(()=>{if(e.witness)return e.witness[0]})),s.prop(d,"input",(()=>{if(d.witness)return u})),s.prop(d,"witness",(()=>{if(e.pubkey&&e.signature)return[e.signature,e.pubkey]})),t.validate){let t=Buffer.from([]);if(e.address){if(p&&p.bech32!==r().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(0!==r().version)throw new TypeError("Invalid address version");if(20!==r().data.length)throw new TypeError("Invalid address data");t=r().data}if(e.hash){if(t.length>0&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(22!==e.output.length||e.output[0]!==l.OP_0||20!==e.output[1])throw new TypeError("Output is invalid");if(t.length>0&&!t.equals(e.output.slice(2)))throw new TypeError("Hash mismatch");t=e.output.slice(2)}if(e.pubkey){const r=o.hash160(e.pubkey);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch");if(t=r,!(0,i.isPoint)(e.pubkey)||33!==e.pubkey.length)throw new TypeError("Invalid pubkey for p2wpkh")}if(e.witness){if(2!==e.witness.length)throw new TypeError("Witness is invalid");if(!a.isCanonicalScriptSignature(e.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,i.isPoint)(e.witness[1])||33!==e.witness[1].length)throw new TypeError("Witness has invalid pubkey");if(e.signature&&!e.signature.equals(e.witness[0]))throw new TypeError("Signature mismatch");if(e.pubkey&&!e.pubkey.equals(e.witness[1]))throw new TypeError("Pubkey mismatch");const r=o.hash160(e.witness[1]);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch")}}return Object.assign(d,e)}},79041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.p2wsh=void 0;const o=r(91944),n=r(50622),a=r(67038),i=r(98116),s=r(97883),c=r(22343),l=a.OPS,u=Buffer.alloc(0);function p(e){return!(!Buffer.isBuffer(e)||65!==e.length||4!==e[0]||!(0,i.isPoint)(e))}t.p2wsh=function(e,t){if(!(e.address||e.hash||e.output||e.redeem||e.witness))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),(0,i.typeforce)({network:i.typeforce.maybe(i.typeforce.Object),address:i.typeforce.maybe(i.typeforce.String),hash:i.typeforce.maybe(i.typeforce.BufferN(32)),output:i.typeforce.maybe(i.typeforce.BufferN(34)),redeem:i.typeforce.maybe({input:i.typeforce.maybe(i.typeforce.Buffer),network:i.typeforce.maybe(i.typeforce.Object),output:i.typeforce.maybe(i.typeforce.Buffer),witness:i.typeforce.maybe(i.typeforce.arrayOf(i.typeforce.Buffer))}),input:i.typeforce.maybe(i.typeforce.BufferN(0)),witness:i.typeforce.maybe(i.typeforce.arrayOf(i.typeforce.Buffer))},e);const r=s.value((()=>{const t=c.bech32.decode(e.address),r=t.words.shift(),o=c.bech32.fromWords(t.words);return{version:r,prefix:t.prefix,data:Buffer.from(o)}})),d=s.value((()=>a.decompile(e.redeem.input)));let h=e.network;h||(h=e.redeem&&e.redeem.network||n.bitcoin);const f={network:h};if(s.prop(f,"address",(()=>{if(!f.hash)return;const e=c.bech32.toWords(f.hash);return e.unshift(0),c.bech32.encode(h.bech32,e)})),s.prop(f,"hash",(()=>e.output?e.output.slice(2):e.address?r().data:f.redeem&&f.redeem.output?o.sha256(f.redeem.output):void 0)),s.prop(f,"output",(()=>{if(f.hash)return a.compile([l.OP_0,f.hash])})),s.prop(f,"redeem",(()=>{if(e.witness)return{output:e.witness[e.witness.length-1],input:u,witness:e.witness.slice(0,-1)}})),s.prop(f,"input",(()=>{if(f.witness)return u})),s.prop(f,"witness",(()=>{if(e.redeem&&e.redeem.input&&e.redeem.input.length>0&&e.redeem.output&&e.redeem.output.length>0){const t=a.toStack(d());return f.redeem=Object.assign({witness:t},e.redeem),f.redeem.input=u,[].concat(t,e.redeem.output)}if(e.redeem&&e.redeem.output&&e.redeem.witness)return[].concat(e.redeem.witness,e.redeem.output)})),s.prop(f,"name",(()=>{const e=["p2wsh"];return void 0!==f.redeem&&void 0!==f.redeem.name&&e.push(f.redeem.name),e.join("-")})),t.validate){let t=Buffer.from([]);if(e.address){if(r().prefix!==h.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(0!==r().version)throw new TypeError("Invalid address version");if(32!==r().data.length)throw new TypeError("Invalid address data");t=r().data}if(e.hash){if(t.length>0&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(34!==e.output.length||e.output[0]!==l.OP_0||32!==e.output[1])throw new TypeError("Output is invalid");const r=e.output.slice(2);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.redeem){if(e.redeem.network&&e.redeem.network!==h)throw new TypeError("Network mismatch");if(e.redeem.input&&e.redeem.input.length>0&&e.redeem.witness&&e.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(e.redeem.output){if(0===a.decompile(e.redeem.output).length)throw new TypeError("Redeem.output is invalid");const r=o.sha256(e.redeem.output);if(t.length>0&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.redeem.input&&!a.isPushOnly(d()))throw new TypeError("Non push-only scriptSig");if(e.witness&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(((e,r)=>e.equals(t[r])))}(e.witness,e.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(e.redeem.input&&d().some(p)||e.redeem.output&&(a.decompile(e.redeem.output)||[]).some(p))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(e.witness&&e.witness.length>0){const t=e.witness[e.witness.length-1];if(e.redeem&&e.redeem.output&&!e.redeem.output.equals(t))throw new TypeError("Witness and redeem.output mismatch");if(e.witness.some(p)||(a.decompile(t)||[]).some(p))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(f,e)}},59646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Psbt=void 0;const o=r(1614),n=r(40394),a=r(45080),i=r(70057),s=r(30606),c=r(91944),l=r(50622),u=r(30885),p=r(67038),d=r(22021),h={network:l.bitcoin,maximumFeeRate:5e3};class f{constructor(e={},t=new o.Psbt(new v)){this.data=t,this.opts=Object.assign({},h,e),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},0===this.data.inputs.length&&this.setVersion(2);const r=(e,t,r,o)=>Object.defineProperty(e,t,{enumerable:r,writable:o});r(this,"__CACHE",!1,!0),r(this,"opts",!1,!0)}static fromBase64(e,t={}){const r=Buffer.from(e,"base64");return this.fromBuffer(r,t)}static fromHex(e,t={}){const r=Buffer.from(e,"hex");return this.fromBuffer(r,t)}static fromBuffer(e,t={}){const r=o.Psbt.fromBuffer(e,m),n=new f(t,r);var a,i;return a=n.__CACHE.__TX,i=n.__CACHE,a.ins.forEach((e=>{I(i,e)})),n}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(e){this.setVersion(e)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(e){this.setLocktime(e)}get txInputs(){return this.__CACHE.__TX.ins.map((e=>({hash:(0,s.cloneBuffer)(e.hash),index:e.index,sequence:e.sequence})))}get txOutputs(){return this.__CACHE.__TX.outs.map((e=>{let t;try{t=(0,i.fromOutputScript)(e.script,this.opts.network)}catch(e){}return{script:(0,s.cloneBuffer)(e.script),value:e.value,address:t}}))}combine(...e){return this.data.combine(...e.map((e=>e.data))),this}clone(){const e=f.fromBuffer(this.data.toBuffer());return e.opts=JSON.parse(JSON.stringify(this.opts)),e}setMaximumFeeRate(e){O(e),this.opts.maximumFeeRate=e}setVersion(e){O(e),j(this.data.inputs,"setVersion");const t=this.__CACHE;return t.__TX.version=e,t.__EXTRACTED_TX=void 0,this}setLocktime(e){O(e),j(this.data.inputs,"setLocktime");const t=this.__CACHE;return t.__TX.locktime=e,t.__EXTRACTED_TX=void 0,this}setInputSequence(e,t){O(t),j(this.data.inputs,"setInputSequence");const r=this.__CACHE;if(r.__TX.ins.length<=e)throw new Error("Input index too high");return r.__TX.ins[e].sequence=t,r.__EXTRACTED_TX=void 0,this}addInputs(e){return e.forEach((e=>this.addInput(e))),this}addInput(e){if(arguments.length>1||!e||void 0===e.hash||void 0===e.index)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");j(this.data.inputs,"addInput"),e.witnessScript&&W(e.witnessScript);const t=this.__CACHE;this.data.addInput(e);I(t,t.__TX.ins[t.__TX.ins.length-1]);const r=this.data.inputs.length-1,o=this.data.inputs[r];return o.nonWitnessUtxo&&M(this.__CACHE,o,r),t.__FEE=void 0,t.__FEE_RATE=void 0,t.__EXTRACTED_TX=void 0,this}addOutputs(e){return e.forEach((e=>this.addOutput(e))),this}addOutput(e){if(arguments.length>1||!e||void 0===e.value||void 0===e.address&&void 0===e.script)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");j(this.data.inputs,"addOutput");const{address:t}=e;if("string"==typeof t){const{network:r}=this.opts,o=(0,i.toOutputScript)(t,r);e=Object.assign(e,{script:o})}const r=this.__CACHE;return this.data.addOutput(e),r.__FEE=void 0,r.__FEE_RATE=void 0,r.__EXTRACTED_TX=void 0,this}extractTransaction(e){if(!this.data.inputs.every(b))throw new Error("Not finalized");const t=this.__CACHE;if(e||function(e,t,r){const o=t.__FEE_RATE||e.getFeeRate(),n=t.__EXTRACTED_TX.virtualSize(),a=o*n;if(o>=r.maximumFeeRate)throw new Error(`Warning: You are paying around ${(a/1e8).toFixed(8)} in fees, which is ${o} satoshi per byte for a transaction with a VSize of ${n} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}(this,t,this.opts),t.__EXTRACTED_TX)return t.__EXTRACTED_TX;const r=t.__TX.clone();return U(this.data.inputs,r,t,!0),r}getFeeRate(){return $("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return $("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,a.checkForInput)(this.data.inputs,0),X(this.data.inputs.length).forEach((e=>this.finalizeInput(e))),this}finalizeInput(e,t=L){const r=(0,a.checkForInput)(this.data.inputs,e),{script:o,isP2SH:n,isP2WSH:i,isSegwit:s}=function(e,t,r){const o=r.__TX,n={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(n.isP2SH=!!t.redeemScript,n.isP2WSH=!!t.witnessScript,t.witnessScript)n.script=t.witnessScript;else if(t.redeemScript)n.script=t.redeemScript;else if(t.nonWitnessUtxo){const a=H(r,t,e),i=o.ins[e].index;n.script=a.outs[i].script}else t.witnessUtxo&&(n.script=t.witnessUtxo.script);(t.witnessScript||E(n.script))&&(n.isSegwit=!0);return n}(e,r,this.__CACHE);if(!o)throw new Error(`No script found for input #${e}`);!function(e){if(!e.sighashType||!e.partialSig)return;const{partialSig:t,sighashType:r}=e;t.forEach((e=>{const{hashType:t}=p.signature.decode(e.signature);if(r!==t)throw new Error("Signature sighash does not match input sighash type")}))}(r);const{finalScriptSig:c,finalScriptWitness:l}=t(e,r,o,s,n,i);if(c&&this.data.updateInput(e,{finalScriptSig:c}),l&&this.data.updateInput(e,{finalScriptWitness:l}),!c&&!l)throw new Error(`Unknown error finalizing input #${e}`);return this.data.clearFinalizedInput(e),this}getInputType(e){const t=(0,a.checkForInput)(this.data.inputs,e),r=G(V(e,t,this.__CACHE),e,"input",t.redeemScript||function(e){if(!e)return;const t=p.decompile(e);if(!t)return;const r=t[t.length-1];if(!Buffer.isBuffer(r)||K(r)||(o=r,p.isCanonicalScriptSignature(o)))return;var o;if(!p.decompile(r))return;return r}(t.finalScriptSig),t.witnessScript||function(e){if(!e)return;const t=q(e),r=t[t.length-1];if(K(r))return;if(!p.decompile(r))return;return r}(t.finalScriptWitness));return("raw"===r.type?"":r.type+"-")+Y(r.meaningfulScript)}inputHasPubkey(e,t){return function(e,t,r,o){const n=V(r,t,o),{meaningfulScript:a}=G(n,r,"input",t.redeemScript,t.witnessScript);return J(e,a)}(t,(0,a.checkForInput)(this.data.inputs,e),e,this.__CACHE)}inputHasHDKey(e,t){const r=(0,a.checkForInput)(this.data.inputs,e),o=T(t);return!!r.bip32Derivation&&r.bip32Derivation.some(o)}outputHasPubkey(e,t){return function(e,t,r,o){const n=o.__TX.outs[r].script,{meaningfulScript:a}=G(n,r,"output",t.redeemScript,t.witnessScript);return J(e,a)}(t,(0,a.checkForOutput)(this.data.outputs,e),e,this.__CACHE)}outputHasHDKey(e,t){const r=(0,a.checkForOutput)(this.data.outputs,e),o=T(t);return!!r.bip32Derivation&&r.bip32Derivation.some(o)}validateSignaturesOfAllInputs(e){(0,a.checkForInput)(this.data.inputs,0);return X(this.data.inputs.length).map((t=>this.validateSignaturesOfInput(t,e))).reduce(((e,t)=>!0===t&&e),!0)}validateSignaturesOfInput(e,t,r){const o=this.data.inputs[e],n=(o||{}).partialSig;if(!o||!n||n.length<1)throw new Error("No signatures to validate");if("function"!=typeof t)throw new Error("Need validator function to validate signatures");const a=r?n.filter((e=>e.pubkey.equals(r))):n;if(a.length<1)throw new Error("No signatures for this pubkey");const i=[];let s,c,l;for(const r of a){const n=p.signature.decode(r.signature),{hash:a,script:u}=l!==n.hashType?z(e,Object.assign({},o,{sighashType:n.hashType}),this.__CACHE,!0):{hash:s,script:c};l=n.hashType,s=a,c=u,R(r.pubkey,u,"verify"),i.push(t(r.pubkey,a,n.signature))}return i.every((e=>!0===e))}signAllInputsHD(e,t=[d.Transaction.SIGHASH_ALL]){if(!e||!e.publicKey||!e.fingerprint)throw new Error("Need HDSigner to sign input");const r=[];for(const o of X(this.data.inputs.length))try{this.signInputHD(o,e,t),r.push(!0)}catch(e){r.push(!1)}if(r.every((e=>!1===e)))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(e,t=[d.Transaction.SIGHASH_ALL]){return new Promise(((r,o)=>{if(!e||!e.publicKey||!e.fingerprint)return o(new Error("Need HDSigner to sign input"));const n=[],a=[];for(const r of X(this.data.inputs.length))a.push(this.signInputHDAsync(r,e,t).then((()=>{n.push(!0)}),(()=>{n.push(!1)})));return Promise.all(a).then((()=>{if(n.every((e=>!1===e)))return o(new Error("No inputs were signed"));r()}))}))}signInputHD(e,t,r=[d.Transaction.SIGHASH_ALL]){if(!t||!t.publicKey||!t.fingerprint)throw new Error("Need HDSigner to sign input");return B(e,this.data.inputs,t).forEach((t=>this.signInput(e,t,r))),this}signInputHDAsync(e,t,r=[d.Transaction.SIGHASH_ALL]){return new Promise(((o,n)=>{if(!t||!t.publicKey||!t.fingerprint)return n(new Error("Need HDSigner to sign input"));const a=B(e,this.data.inputs,t).map((t=>this.signInputAsync(e,t,r)));return Promise.all(a).then((()=>{o()})).catch(n)}))}signAllInputs(e,t=[d.Transaction.SIGHASH_ALL]){if(!e||!e.publicKey)throw new Error("Need Signer to sign input");const r=[];for(const o of X(this.data.inputs.length))try{this.signInput(o,e,t),r.push(!0)}catch(e){r.push(!1)}if(r.every((e=>!1===e)))throw new Error("No inputs were signed");return this}signAllInputsAsync(e,t=[d.Transaction.SIGHASH_ALL]){return new Promise(((r,o)=>{if(!e||!e.publicKey)return o(new Error("Need Signer to sign input"));const n=[],a=[];for(const[r]of this.data.inputs.entries())a.push(this.signInputAsync(r,e,t).then((()=>{n.push(!0)}),(()=>{n.push(!1)})));return Promise.all(a).then((()=>{if(n.every((e=>!1===e)))return o(new Error("No inputs were signed"));r()}))}))}signInput(e,t,r=[d.Transaction.SIGHASH_ALL]){if(!t||!t.publicKey)throw new Error("Need Signer to sign input");const{hash:o,sighashType:n}=D(this.data.inputs,e,t.publicKey,this.__CACHE,r),a=[{pubkey:t.publicKey,signature:p.signature.encode(t.sign(o),n)}];return this.data.updateInput(e,{partialSig:a}),this}signInputAsync(e,t,r=[d.Transaction.SIGHASH_ALL]){return Promise.resolve().then((()=>{if(!t||!t.publicKey)throw new Error("Need Signer to sign input");const{hash:o,sighashType:n}=D(this.data.inputs,e,t.publicKey,this.__CACHE,r);return Promise.resolve(t.sign(o)).then((r=>{const o=[{pubkey:t.publicKey,signature:p.signature.encode(r,n)}];this.data.updateInput(e,{partialSig:o})}))}))}toBuffer(){return g(this.__CACHE),this.data.toBuffer()}toHex(){return g(this.__CACHE),this.data.toHex()}toBase64(){return g(this.__CACHE),this.data.toBase64()}updateGlobal(e){return this.data.updateGlobal(e),this}updateInput(e,t){return t.witnessScript&&W(t.witnessScript),this.data.updateInput(e,t),t.nonWitnessUtxo&&M(this.__CACHE,this.data.inputs[e],e),this}updateOutput(e,t){return this.data.updateOutput(e,t),this}addUnknownKeyValToGlobal(e){return this.data.addUnknownKeyValToGlobal(e),this}addUnknownKeyValToInput(e,t){return this.data.addUnknownKeyValToInput(e,t),this}addUnknownKeyValToOutput(e,t){return this.data.addUnknownKeyValToOutput(e,t),this}clearFinalizedInput(e){return this.data.clearFinalizedInput(e),this}}t.Psbt=f;const m=e=>new v(e);class v{constructor(e=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=d.Transaction.fromBuffer(e),function(e){if(!e.ins.every((e=>e.script&&0===e.script.length&&e.witness&&0===e.witness.length)))throw new Error("Format Error: Transaction ScriptSigs are not empty")}(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(e){if(void 0===e.hash||void 0===e.index||!Buffer.isBuffer(e.hash)&&"string"!=typeof e.hash||"number"!=typeof e.index)throw new Error("Error adding input.");const t="string"==typeof e.hash?(0,s.reverseBuffer)(Buffer.from(e.hash,"hex")):e.hash;this.tx.addInput(t,e.index,e.sequence)}addOutput(e){if(void 0===e.script||void 0===e.value||!Buffer.isBuffer(e.script)||"number"!=typeof e.value)throw new Error("Error adding output.");this.tx.addOutput(e.script,e.value)}toBuffer(){return this.tx.toBuffer()}}function g(e){if(!1!==e.__UNSAFE_SIGN_NONSEGWIT)throw new Error("Not BIP174 compliant, can not export")}function y(e,t,r){if(!t)return!1;let o;if(o=r?r.map((e=>{const r=function(e){if(65===e.length){const t=1&e[64],r=e.slice(0,33);return r[0]=2|t,r}return e.slice()}(e);return t.find((e=>e.pubkey.equals(r)))})).filter((e=>!!e)):t,o.length>e)throw new Error("Too many signatures");return o.length===e}function b(e){return!!e.finalScriptSig||!!e.finalScriptWitness}function w(e){return t=>{try{return e({output:t}),!0}catch(e){return!1}}}const x=w(u.p2ms),k=w(u.p2pk),_=w(u.p2pkh),E=w(u.p2wpkh),S=w(u.p2wsh),P=w(u.p2sh);function T(e){return t=>!!t.masterFingerprint.equals(e.fingerprint)&&!!e.derivePath(t.path).publicKey.equals(t.pubkey)}function O(e){if("number"!=typeof e||e!==Math.floor(e)||e>4294967295||e<0)throw new Error("Invalid 32 bit integer")}function j(e,t){e.forEach((e=>{let r=!1,o=[];if(0===(e.partialSig||[]).length){if(!e.finalScriptSig&&!e.finalScriptWitness)return;o=function(e){const t=e.finalScriptSig&&p.decompile(e.finalScriptSig)||[],r=e.finalScriptWitness&&p.decompile(e.finalScriptWitness)||[];return t.concat(r).filter((e=>Buffer.isBuffer(e)&&p.isCanonicalScriptSignature(e))).map((e=>({signature:e})))}(e)}else o=e.partialSig;if(o.forEach((e=>{const{hashType:o}=p.signature.decode(e.signature),n=[];o&d.Transaction.SIGHASH_ANYONECANPAY&&n.push("addInput");switch(31&o){case d.Transaction.SIGHASH_ALL:break;case d.Transaction.SIGHASH_SINGLE:case d.Transaction.SIGHASH_NONE:n.push("addOutput"),n.push("setInputSequence")}-1===n.indexOf(t)&&(r=!0)})),r)throw new Error("Can not modify transaction, signatures exist.")}))}function R(e,t,r){if(!J(e,t))throw new Error(`Can not ${r} for this input with the key ${e.toString("hex")}`)}function I(e,t){const r=(0,s.reverseBuffer)(Buffer.from(t.hash)).toString("hex")+":"+t.index;if(e.__TX_IN_CACHE[r])throw new Error("Duplicate input detected.");e.__TX_IN_CACHE[r]=1}function C(e,t){return(r,o,n,a)=>{const i=e({redeem:{output:n}}).output;if(!o.equals(i))throw new Error(`${t} for ${a} #${r} doesn't match the scriptPubKey in the prevout`)}}const A=C(u.p2sh,"Redeem script"),N=C(u.p2wsh,"Witness script");function $(e,t,r,o){if(!r.every(b))throw new Error(`PSBT must be finalized to calculate ${t}`);if("__FEE_RATE"===e&&o.__FEE_RATE)return o.__FEE_RATE;if("__FEE"===e&&o.__FEE)return o.__FEE;let n,a=!0;return o.__EXTRACTED_TX?(n=o.__EXTRACTED_TX,a=!1):n=o.__TX.clone(),U(r,n,o,a),"__FEE_RATE"===e?o.__FEE_RATE:"__FEE"===e?o.__FEE:void 0}function L(e,t,r,o,n,a){const i=Y(r);if(!function(e,t,r){switch(r){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return y(1,e.partialSig);case"multisig":const r=u.p2ms({output:t});return y(r.m,e.partialSig,r.pubkeys);default:return!1}}(t,r,i))throw new Error(`Can not finalize input #${e}`);return function(e,t,r,o,n,a){let i,s;const c=function(e,t,r){let o;switch(t){case"multisig":const t=function(e,t){return u.p2ms({output:e}).pubkeys.map((e=>(t.filter((t=>t.pubkey.equals(e)))[0]||{}).signature)).filter((e=>!!e))}(e,r);o=u.p2ms({output:e,signatures:t});break;case"pubkey":o=u.p2pk({output:e,signature:r[0].signature});break;case"pubkeyhash":o=u.p2pkh({output:e,pubkey:r[0].pubkey,signature:r[0].signature});break;case"witnesspubkeyhash":o=u.p2wpkh({output:e,pubkey:r[0].pubkey,signature:r[0].signature})}return o}(e,t,r),l=a?u.p2wsh({redeem:c}):null,p=n?u.p2sh({redeem:l||c}):null;o?(s=F(l?l.witness:c.witness),p&&(i=p.input)):i=p?p.input:c.input;return{finalScriptSig:i,finalScriptWitness:s}}(r,i,t.partialSig,o,n,a)}function D(e,t,r,o,n){const i=(0,a.checkForInput)(e,t),{hash:s,sighashType:c,script:l}=z(t,i,o,!1,n);return R(r,l,"sign"),{hash:s,sighashType:c}}function z(e,t,r,o,n){const a=r.__TX,i=t.sighashType||d.Transaction.SIGHASH_ALL;if(n&&n.indexOf(i)<0){const e=function(e){let t=e&d.Transaction.SIGHASH_ANYONECANPAY?"SIGHASH_ANYONECANPAY | ":"";switch(31&e){case d.Transaction.SIGHASH_ALL:t+="SIGHASH_ALL";break;case d.Transaction.SIGHASH_SINGLE:t+="SIGHASH_SINGLE";break;case d.Transaction.SIGHASH_NONE:t+="SIGHASH_NONE"}return t}(i);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${e}`)}let s,c;if(t.nonWitnessUtxo){const o=H(r,t,e),n=a.ins[e].hash,i=o.getHash();if(!n.equals(i))throw new Error(`Non-witness UTXO hash for input #${e} doesn't match the hash specified in the prevout`);const s=a.ins[e].index;c=o.outs[s]}else{if(!t.witnessUtxo)throw new Error("Need a Utxo input item for signing");c=t.witnessUtxo}const{meaningfulScript:l,type:p}=G(c.script,e,"input",t.redeemScript,t.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(p)>=0)s=a.hashForWitnessV0(e,l,c.value,i);else if(E(l)){const t=u.p2pkh({hash:l.slice(2)}).output;s=a.hashForWitnessV0(e,t,c.value,i)}else{if(void 0===t.nonWitnessUtxo&&!1===r.__UNSAFE_SIGN_NONSEGWIT)throw new Error(`Input #${e} has witnessUtxo but non-segwit script: ${l.toString("hex")}`);o||!1===r.__UNSAFE_SIGN_NONSEGWIT||console.warn("Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant.\n*********************\nPROCEED WITH CAUTION!\n*********************"),s=a.hashForSignature(e,l,i)}return{script:l,sighashType:i,hash:s}}function B(e,t,r){const o=(0,a.checkForInput)(t,e);if(!o.bip32Derivation||0===o.bip32Derivation.length)throw new Error("Need bip32Derivation to sign with HD");const n=o.bip32Derivation.map((e=>e.masterFingerprint.equals(r.fingerprint)?e:void 0)).filter((e=>!!e));if(0===n.length)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return n.map((e=>{const t=r.derivePath(e.path);if(!e.pubkey.equals(t.publicKey))throw new Error("pubkey did not match bip32Derivation");return t}))}function q(e){let t=0;function r(){const r=n.decode(e,t);return t+=n.decode.bytes,r}function o(){return o=r(),t+=o,e.slice(t-o,t);var o}return function(){const e=r(),t=[];for(let r=0;r<e;r++)t.push(o());return t}()}function F(e){let t=Buffer.allocUnsafe(0);function r(e){const r=t.length,o=n.encodingLength(e);t=Buffer.concat([t,Buffer.allocUnsafe(o)]),n.encode(e,t,r)}function o(e){r(e.length),function(e){t=Buffer.concat([t,Buffer.from(e)])}(e)}var a;return r((a=e).length),a.forEach(o),t}function M(e,t,r){e.__NON_WITNESS_UTXO_BUF_CACHE[r]=t.nonWitnessUtxo;const o=d.Transaction.fromBuffer(t.nonWitnessUtxo);e.__NON_WITNESS_UTXO_TX_CACHE[r]=o;const n=e,a=r;delete t.nonWitnessUtxo,Object.defineProperty(t,"nonWitnessUtxo",{enumerable:!0,get(){const e=n.__NON_WITNESS_UTXO_BUF_CACHE[a],t=n.__NON_WITNESS_UTXO_TX_CACHE[a];if(void 0!==e)return e;{const e=t.toBuffer();return n.__NON_WITNESS_UTXO_BUF_CACHE[a]=e,e}},set(e){n.__NON_WITNESS_UTXO_BUF_CACHE[a]=e}})}function U(e,t,r,o){let n=0;e.forEach(((e,a)=>{if(o&&e.finalScriptSig&&(t.ins[a].script=e.finalScriptSig),o&&e.finalScriptWitness&&(t.ins[a].witness=q(e.finalScriptWitness)),e.witnessUtxo)n+=e.witnessUtxo.value;else if(e.nonWitnessUtxo){const o=H(r,e,a),i=t.ins[a].index,s=o.outs[i];n+=s.value}}));const a=t.outs.reduce(((e,t)=>e+t.value),0),i=n-a;if(i<0)throw new Error("Outputs are spending more than Inputs");const s=t.virtualSize();r.__FEE=i,r.__EXTRACTED_TX=t,r.__FEE_RATE=Math.floor(i/s)}function H(e,t,r){const o=e.__NON_WITNESS_UTXO_TX_CACHE;return o[r]||M(e,t,r),o[r]}function V(e,t,r){if(void 0!==t.witnessUtxo)return t.witnessUtxo.script;if(void 0!==t.nonWitnessUtxo){return H(r,t,e).outs[r.__TX.ins[e].index].script}throw new Error("Can't find pubkey in input without Utxo data")}function K(e){return 33===e.length&&p.isCanonicalPubKey(e)}function G(e,t,r,o,n){const a=P(e),i=a&&o&&S(o),s=S(e);if(a&&void 0===o)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((s||i)&&void 0===n)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let c;return i?(c=n,A(t,e,o,r),N(t,o,n,r),W(c)):s?(c=n,N(t,e,n,r),W(c)):a?(c=o,A(t,e,o,r)):c=e,{meaningfulScript:c,type:i?"p2sh-p2wsh":a?"p2sh":s?"p2wsh":"raw"}}function W(e){if(E(e)||P(e))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function J(e,t){const r=(0,c.hash160)(e),o=p.decompile(t);if(null===o)throw new Error("Unknown script error");return o.some((t=>"number"!=typeof t&&(t.equals(e)||t.equals(r))))}function Y(e){return E(e)?"witnesspubkeyhash":_(e)?"pubkeyhash":x(e)?"multisig":k(e)?"pubkey":"nonstandard"}function X(e){return[...Array(e).keys()]}},34344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=t.encodingLength=void 0;const o=r(68417);function n(e){return e<o.OPS.OP_PUSHDATA1?1:e<=255?2:e<=65535?3:5}t.encodingLength=n,t.encode=function(e,t,r){const a=n(t);return 1===a?e.writeUInt8(t,r):2===a?(e.writeUInt8(o.OPS.OP_PUSHDATA1,r),e.writeUInt8(t,r+1)):3===a?(e.writeUInt8(o.OPS.OP_PUSHDATA2,r),e.writeUInt16LE(t,r+1)):(e.writeUInt8(o.OPS.OP_PUSHDATA4,r),e.writeUInt32LE(t,r+1)),a},t.decode=function(e,t){const r=e.readUInt8(t);let n,a;if(r<o.OPS.OP_PUSHDATA1)n=r,a=1;else if(r===o.OPS.OP_PUSHDATA1){if(t+2>e.length)return null;n=e.readUInt8(t+1),a=2}else if(r===o.OPS.OP_PUSHDATA2){if(t+3>e.length)return null;n=e.readUInt16LE(t+1),a=3}else{if(t+5>e.length)return null;if(r!==o.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");n=e.readUInt32LE(t+1),a=5}return{opcode:r,number:n,size:a}}},67038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signature=t.number=t.isCanonicalScriptSignature=t.isDefinedHashType=t.isCanonicalPubKey=t.toStack=t.fromASM=t.toASM=t.decompile=t.compile=t.isPushOnly=t.OPS=void 0;const o=r(13966),n=r(68417);Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return n.OPS}});const a=r(34344),i=r(19464),s=r(41043),c=r(98116),{typeforce:l}=c,u=n.OPS.OP_RESERVED;function p(e){return c.Buffer(e)||function(e){return c.Number(e)&&(e===n.OPS.OP_0||e>=n.OPS.OP_1&&e<=n.OPS.OP_16||e===n.OPS.OP_1NEGATE)}(e)}function d(e){return c.Array(e)&&e.every(p)}function h(e){return 0===e.length?n.OPS.OP_0:1===e.length?e[0]>=1&&e[0]<=16?u+e[0]:129===e[0]?n.OPS.OP_1NEGATE:void 0:void 0}function f(e){return Buffer.isBuffer(e)}function m(e){return Buffer.isBuffer(e)}function v(e){if(f(e))return e;l(c.Array,e);const t=e.reduce(((e,t)=>m(t)?1===t.length&&void 0!==h(t)?e+1:e+a.encodingLength(t.length)+t.length:e+1),0),r=Buffer.allocUnsafe(t);let o=0;if(e.forEach((e=>{if(m(e)){const t=h(e);if(void 0!==t)return r.writeUInt8(t,o),void(o+=1);o+=a.encode(r,e.length,o),e.copy(r,o),o+=e.length}else r.writeUInt8(e,o),o+=1})),o!==r.length)throw new Error("Could not decode chunks");return r}function g(e){if(t=e,c.Array(t))return e;var t;l(c.Buffer,e);const r=[];let o=0;for(;o<e.length;){const t=e[o];if(t>n.OPS.OP_0&&t<=n.OPS.OP_PUSHDATA4){const t=a.decode(e,o);if(null===t)return null;if(o+=t.size,o+t.number>e.length)return null;const n=e.slice(o,o+t.number);o+=t.number;const i=h(n);void 0!==i?r.push(i):r.push(n)}else r.push(t),o+=1}return r}function y(e){const t=-129&e;return t>0&&t<4}t.isPushOnly=d,t.compile=v,t.decompile=g,t.toASM=function(e){return f(e)&&(e=g(e)),e.map((e=>{if(m(e)){const t=h(e);if(void 0===t)return e.toString("hex");e=t}return n.REVERSE_OPS[e]})).join(" ")},t.fromASM=function(e){return l(c.String,e),v(e.split(" ").map((e=>void 0!==n.OPS[e]?n.OPS[e]:(l(c.Hex,e),Buffer.from(e,"hex")))))},t.toStack=function(e){return e=g(e),l(d,e),e.map((e=>m(e)?e:e===n.OPS.OP_0?Buffer.allocUnsafe(0):i.encode(e-u)))},t.isCanonicalPubKey=function(e){return c.isPoint(e)},t.isDefinedHashType=y,t.isCanonicalScriptSignature=function(e){return!!Buffer.isBuffer(e)&&(!!y(e[e.length-1])&&o.check(e.slice(0,-1)))},t.number=i,t.signature=s},19464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=t.decode=void 0,t.decode=function(e,t,r){t=t||4,r=void 0===r||r;const o=e.length;if(0===o)return 0;if(o>t)throw new TypeError("Script number overflow");if(r&&0==(127&e[o-1])&&(o<=1||0==(128&e[o-2])))throw new Error("Non-minimally encoded script number");if(5===o){const t=e.readUInt32LE(0),r=e.readUInt8(4);return 128&r?-(4294967296*(-129&r)+t):4294967296*r+t}let n=0;for(let t=0;t<o;++t)n|=e[t]<<8*t;return 128&e[o-1]?-(n&~(128<<8*(o-1))):n},t.encode=function(e){let t=Math.abs(e);const r=(o=t)>2147483647?5:o>8388607?4:o>32767?3:o>127?2:o>0?1:0;var o;const n=Buffer.allocUnsafe(r),a=e<0;for(let e=0;e<r;++e)n.writeUInt8(255&t,e),t>>=8;return 128&n[r-1]?n.writeUInt8(a?128:0,r-1):a&&(n[r-1]|=128),n}},41043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=t.decode=void 0;const o=r(13966),n=r(98116),{typeforce:a}=n,i=Buffer.alloc(1,0);function s(e){let t=0;for(;0===e[t];)++t;return t===e.length?i:128&(e=e.slice(t))[0]?Buffer.concat([i,e],1+e.length):e}function c(e){0===e[0]&&(e=e.slice(1));const t=Buffer.alloc(32,0),r=Math.max(0,32-e.length);return e.copy(t,r),t}t.decode=function(e){const t=e.readUInt8(e.length-1),r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);const n=o.decode(e.slice(0,-1)),a=c(n.r),i=c(n.s);return{signature:Buffer.concat([a,i],64),hashType:t}},t.encode=function(e,t){a({signature:n.BufferN(64),hashType:n.UInt8},{signature:e,hashType:t});const r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);const i=Buffer.allocUnsafe(1);i.writeUInt8(t,0);const c=s(e.slice(0,32)),l=s(e.slice(32,64));return Buffer.concat([o.encode(c,l),i])}},22021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const o=r(30606),n=r(91944),a=r(67038),i=r(67038),s=r(98116),{typeforce:c}=s;function l(e){const t=e.length;return o.varuint.encodingLength(t)+t}const u=Buffer.allocUnsafe(0),p=[],d=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),h=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),f=Buffer.from("ffffffffffffffff","hex"),m={script:u,valueBuffer:f};class v{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(e,t){const r=new o.BufferReader(e),n=new v;n.version=r.readInt32();const a=r.readUInt8(),i=r.readUInt8();let s=!1;a===v.ADVANCED_TRANSACTION_MARKER&&i===v.ADVANCED_TRANSACTION_FLAG?s=!0:r.offset-=2;const c=r.readVarInt();for(let e=0;e<c;++e)n.ins.push({hash:r.readSlice(32),index:r.readUInt32(),script:r.readVarSlice(),sequence:r.readUInt32(),witness:p});const l=r.readVarInt();for(let e=0;e<l;++e)n.outs.push({value:r.readUInt64(),script:r.readVarSlice()});if(s){for(let e=0;e<c;++e)n.ins[e].witness=r.readVector();if(!n.hasWitnesses())throw new Error("Transaction has superfluous witness data")}if(n.locktime=r.readUInt32(),t)return n;if(r.offset!==e.length)throw new Error("Transaction has unexpected data");return n}static fromHex(e){return v.fromBuffer(Buffer.from(e,"hex"),!1)}static isCoinbaseHash(e){c(s.Hash256bit,e);for(let t=0;t<32;++t)if(0!==e[t])return!1;return!0}isCoinbase(){return 1===this.ins.length&&v.isCoinbaseHash(this.ins[0].hash)}addInput(e,t,r,o){return c(s.tuple(s.Hash256bit,s.UInt32,s.maybe(s.UInt32),s.maybe(s.Buffer)),arguments),s.Null(r)&&(r=v.DEFAULT_SEQUENCE),this.ins.push({hash:e,index:t,script:o||u,sequence:r,witness:p})-1}addOutput(e,t){return c(s.tuple(s.Buffer,s.Satoshi),arguments),this.outs.push({script:e,value:t})-1}hasWitnesses(){return this.ins.some((e=>0!==e.witness.length))}weight(){return 3*this.byteLength(!1)+this.byteLength(!0)}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(e=!0){const t=e&&this.hasWitnesses();return(t?10:8)+o.varuint.encodingLength(this.ins.length)+o.varuint.encodingLength(this.outs.length)+this.ins.reduce(((e,t)=>e+40+l(t.script)),0)+this.outs.reduce(((e,t)=>e+8+l(t.script)),0)+(t?this.ins.reduce(((e,t)=>e+function(e){const t=e.length;return o.varuint.encodingLength(t)+e.reduce(((e,t)=>e+l(t)),0)}(t.witness)),0):0)}clone(){const e=new v;return e.version=this.version,e.locktime=this.locktime,e.ins=this.ins.map((e=>({hash:e.hash,index:e.index,script:e.script,sequence:e.sequence,witness:e.witness}))),e.outs=this.outs.map((e=>({script:e.script,value:e.value}))),e}hashForSignature(e,t,r){if(c(s.tuple(s.UInt32,s.Buffer,s.Number),arguments),e>=this.ins.length)return h;const o=a.compile(a.decompile(t).filter((e=>e!==i.OPS.OP_CODESEPARATOR))),l=this.clone();if((31&r)===v.SIGHASH_NONE)l.outs=[],l.ins.forEach(((t,r)=>{r!==e&&(t.sequence=0)}));else if((31&r)===v.SIGHASH_SINGLE){if(e>=this.outs.length)return h;l.outs.length=e+1;for(let t=0;t<e;t++)l.outs[t]=m;l.ins.forEach(((t,r)=>{r!==e&&(t.sequence=0)}))}r&v.SIGHASH_ANYONECANPAY?(l.ins=[l.ins[e]],l.ins[0].script=o):(l.ins.forEach((e=>{e.script=u})),l.ins[e].script=o);const p=Buffer.allocUnsafe(l.byteLength(!1)+4);return p.writeInt32LE(r,p.length-4),l.__toBuffer(p,0,!1),n.hash256(p)}hashForWitnessV1(e,t,r,a,i,p){if(c(s.tuple(s.UInt32,c.arrayOf(s.Buffer),c.arrayOf(s.Satoshi),s.UInt32),arguments),r.length!==this.ins.length||t.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const d=a===v.SIGHASH_DEFAULT?v.SIGHASH_ALL:a&v.SIGHASH_OUTPUT_MASK,h=(a&v.SIGHASH_INPUT_MASK)===v.SIGHASH_ANYONECANPAY,f=d===v.SIGHASH_NONE,m=d===v.SIGHASH_SINGLE;let g=u,y=u,b=u,w=u,x=u;if(!h){let e=o.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach((t=>{e.writeSlice(t.hash),e.writeUInt32(t.index)})),g=n.sha256(e.end()),e=o.BufferWriter.withCapacity(8*this.ins.length),r.forEach((t=>e.writeUInt64(t))),y=n.sha256(e.end()),e=o.BufferWriter.withCapacity(t.map(l).reduce(((e,t)=>e+t))),t.forEach((t=>e.writeVarSlice(t))),b=n.sha256(e.end()),e=o.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach((t=>e.writeUInt32(t.sequence))),w=n.sha256(e.end())}if(f||m){if(m&&e<this.outs.length){const t=this.outs[e],r=o.BufferWriter.withCapacity(8+l(t.script));r.writeUInt64(t.value),r.writeVarSlice(t.script),x=n.sha256(r.end())}}else{const e=this.outs.map((e=>8+l(e.script))).reduce(((e,t)=>e+t)),t=o.BufferWriter.withCapacity(e);this.outs.forEach((e=>{t.writeUInt64(e.value),t.writeVarSlice(e.script)})),x=n.sha256(t.end())}const k=(i?2:0)+(p?1:0),_=174-(h?49:0)-(f?32:0)+(p?32:0)+(i?37:0),E=o.BufferWriter.withCapacity(_);if(E.writeUInt8(a),E.writeInt32(this.version),E.writeUInt32(this.locktime),E.writeSlice(g),E.writeSlice(y),E.writeSlice(b),E.writeSlice(w),f||m||E.writeSlice(x),E.writeUInt8(k),h){const o=this.ins[e];E.writeSlice(o.hash),E.writeUInt32(o.index),E.writeUInt64(r[e]),E.writeVarSlice(t[e]),E.writeUInt32(o.sequence)}else E.writeUInt32(e);if(p){const e=o.BufferWriter.withCapacity(l(p));e.writeVarSlice(p),E.writeSlice(n.sha256(e.end()))}return m&&E.writeSlice(x),i&&(E.writeSlice(i),E.writeUInt8(0),E.writeUInt32(4294967295)),n.taggedHash("TapSighash",Buffer.concat([Buffer.of(0),E.end()]))}hashForWitnessV0(e,t,r,a){c(s.tuple(s.UInt32,s.Buffer,s.Satoshi,s.UInt32),arguments);let i,u=Buffer.from([]),p=d,h=d,f=d;if(a&v.SIGHASH_ANYONECANPAY||(u=Buffer.allocUnsafe(36*this.ins.length),i=new o.BufferWriter(u,0),this.ins.forEach((e=>{i.writeSlice(e.hash),i.writeUInt32(e.index)})),h=n.hash256(u)),a&v.SIGHASH_ANYONECANPAY||(31&a)===v.SIGHASH_SINGLE||(31&a)===v.SIGHASH_NONE||(u=Buffer.allocUnsafe(4*this.ins.length),i=new o.BufferWriter(u,0),this.ins.forEach((e=>{i.writeUInt32(e.sequence)})),f=n.hash256(u)),(31&a)!==v.SIGHASH_SINGLE&&(31&a)!==v.SIGHASH_NONE){const e=this.outs.reduce(((e,t)=>e+8+l(t.script)),0);u=Buffer.allocUnsafe(e),i=new o.BufferWriter(u,0),this.outs.forEach((e=>{i.writeUInt64(e.value),i.writeVarSlice(e.script)})),p=n.hash256(u)}else if((31&a)===v.SIGHASH_SINGLE&&e<this.outs.length){const t=this.outs[e];u=Buffer.allocUnsafe(8+l(t.script)),i=new o.BufferWriter(u,0),i.writeUInt64(t.value),i.writeVarSlice(t.script),p=n.hash256(u)}u=Buffer.allocUnsafe(156+l(t)),i=new o.BufferWriter(u,0);const m=this.ins[e];return i.writeInt32(this.version),i.writeSlice(h),i.writeSlice(f),i.writeSlice(m.hash),i.writeUInt32(m.index),i.writeVarSlice(t),i.writeUInt64(r),i.writeUInt32(m.sequence),i.writeSlice(p),i.writeUInt32(this.locktime),i.writeUInt32(a),n.hash256(u)}getHash(e){return e&&this.isCoinbase()?Buffer.alloc(32,0):n.hash256(this.__toBuffer(void 0,void 0,e))}getId(){return(0,o.reverseBuffer)(this.getHash(!1)).toString("hex")}toBuffer(e,t){return this.__toBuffer(e,t,!0)}toHex(){return this.toBuffer(void 0,void 0).toString("hex")}setInputScript(e,t){c(s.tuple(s.Number,s.Buffer),arguments),this.ins[e].script=t}setWitness(e,t){c(s.tuple(s.Number,[s.Buffer]),arguments),this.ins[e].witness=t}__toBuffer(e,t,r=!1){e||(e=Buffer.allocUnsafe(this.byteLength(r)));const n=new o.BufferWriter(e,t||0);n.writeInt32(this.version);const a=r&&this.hasWitnesses();return a&&(n.writeUInt8(v.ADVANCED_TRANSACTION_MARKER),n.writeUInt8(v.ADVANCED_TRANSACTION_FLAG)),n.writeVarInt(this.ins.length),this.ins.forEach((e=>{n.writeSlice(e.hash),n.writeUInt32(e.index),n.writeVarSlice(e.script),n.writeUInt32(e.sequence)})),n.writeVarInt(this.outs.length),this.outs.forEach((e=>{void 0!==e.value?n.writeUInt64(e.value):n.writeSlice(e.valueBuffer),n.writeVarSlice(e.script)})),a&&this.ins.forEach((e=>{n.writeVector(e.witness)})),n.writeUInt32(this.locktime),void 0!==t?e.slice(t,n.offset):e}}t.Transaction=v,v.DEFAULT_SEQUENCE=4294967295,v.SIGHASH_DEFAULT=0,v.SIGHASH_ALL=1,v.SIGHASH_NONE=2,v.SIGHASH_SINGLE=3,v.SIGHASH_ANYONECANPAY=128,v.SIGHASH_OUTPUT_MASK=3,v.SIGHASH_INPUT_MASK=128,v.ADVANCED_TRANSACTION_MARKER=0,v.ADVANCED_TRANSACTION_FLAG=1},98116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oneOf=t.Null=t.BufferN=t.Function=t.UInt32=t.UInt8=t.tuple=t.maybe=t.Hex=t.Buffer=t.String=t.Boolean=t.Array=t.Number=t.Hash256bit=t.Hash160bit=t.Buffer256bit=t.Network=t.ECPoint=t.Satoshi=t.Signer=t.BIP32Path=t.UInt31=t.isPoint=t.typeforce=void 0;const o=r(20181);t.typeforce=r(8676);const n=o.Buffer.alloc(32,0),a=o.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");t.isPoint=function(e){if(!o.Buffer.isBuffer(e))return!1;if(e.length<33)return!1;const t=e[0],r=e.slice(1,33);if(0===r.compare(n))return!1;if(r.compare(a)>=0)return!1;if((2===t||3===t)&&33===e.length)return!0;const i=e.slice(33);return 0!==i.compare(n)&&(!(i.compare(a)>=0)&&(4===t&&65===e.length))};const i=Math.pow(2,31)-1;function s(e){return t.typeforce.String(e)&&!!e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}t.UInt31=function(e){return t.typeforce.UInt32(e)&&e<=i},t.BIP32Path=s,s.toJSON=()=>"BIP32 derivation path",t.Signer=function(e){return(t.typeforce.Buffer(e.publicKey)||"function"==typeof e.getPublicKey)&&"function"==typeof e.sign};t.Satoshi=function(e){return t.typeforce.UInt53(e)&&e<=21e14},t.ECPoint=t.typeforce.quacksLike("Point"),t.Network=t.typeforce.compile({messagePrefix:t.typeforce.oneOf(t.typeforce.Buffer,t.typeforce.String),bip32:{public:t.typeforce.UInt32,private:t.typeforce.UInt32},pubKeyHash:t.typeforce.UInt8,scriptHash:t.typeforce.UInt8,wif:t.typeforce.UInt8}),t.Buffer256bit=t.typeforce.BufferN(32),t.Hash160bit=t.typeforce.BufferN(20),t.Hash256bit=t.typeforce.BufferN(32),t.Number=t.typeforce.Number,t.Array=t.typeforce.Array,t.Boolean=t.typeforce.Boolean,t.String=t.typeforce.String,t.Buffer=t.typeforce.Buffer,t.Hex=t.typeforce.Hex,t.maybe=t.typeforce.maybe,t.tuple=t.typeforce.tuple,t.UInt8=t.typeforce.UInt8,t.UInt32=t.typeforce.UInt32,t.Function=t.typeforce.Function,t.BufferN=t.typeforce.BufferN,t.Null=t.typeforce.Null,t.oneOf=t.typeforce.oneOf},16763:(e,t,r)=>{var o=r(95364);e.exports=o("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},59204:(e,t,r)=>{"use strict";var o=r(16763),n=r(92861).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),o=t.slice(-4),n=e(r);if(!(o[0]^n[0]|o[1]^n[1]|o[2]^n[2]|o[3]^n[3]))return r}return{encode:function(t){var r=e(t);return o.encode(n.concat([t,r],t.length+4))},decode:function(e){var r=t(o.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=o.decodeUnsafe(e);if(r)return t(r)}}}},91889:(e,t,r)=>{"use strict";var o=r(31240),n=r(59204);e.exports=n((function(e){var t=o("sha256").update(e).digest();return o("sha256").update(t).digest()}))},5971:e=>{function t(e){if(e)return function(e){for(var r in t.prototype)e[r]=t.prototype[r];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+e];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n<o.length;n++)if((r=o[n])===t||r.fn===t){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},57427:(e,t)=>{"use strict";
|
|
12
|
+
/*!
|
|
13
|
+
* cookie
|
|
14
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
15
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
16
|
+
* MIT Licensed
|
|
17
|
+
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||n,a=0;for(;a<e.length;){var s=e.indexOf("=",a);if(-1===s)break;var c=e.indexOf(";",a);if(-1===c)c=e.length;else if(c<s){a=e.lastIndexOf(";",s-1)+1;continue}var l=e.slice(a,s).trim();if(void 0===r[l]){var u=e.slice(s+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=i(u,o)}a=c+1}return r},t.serialize=function(e,t,n){var i=n||{},s=i.encode||a;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!o.test(e))throw new TypeError("argument name is invalid");var c=s(t);if(c&&!o.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=i.maxAge){var u=i.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(i.domain){if(!o.test(i.domain))throw new TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw new TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){var p=i.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}i.httpOnly&&(l+="; HttpOnly");i.secure&&(l+="; Secure");if(i.priority){switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(i.sameSite){switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function a(e){return encodeURIComponent(e)}function i(e,t){try{return t(e)}catch(t){return e}}},19728:(e,t,r)=>{!function(){"use strict";var t=r(45228),o=r(30677),n={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function a(e){return"string"==typeof e||e instanceof String}function i(e,t){if(Array.isArray(t)){for(var r=0;r<t.length;++r)if(i(e,t[r]))return!0;return!1}return a(t)?e===t:t instanceof RegExp?t.test(e):!!t}function s(e,t){var r,o=t.headers.origin,n=[];return e.origin&&"*"!==e.origin?a(e.origin)?(n.push([{key:"Access-Control-Allow-Origin",value:e.origin}]),n.push([{key:"Vary",value:"Origin"}])):(r=i(o,e.origin),n.push([{key:"Access-Control-Allow-Origin",value:!!r&&o}]),n.push([{key:"Vary",value:"Origin"}])):n.push([{key:"Access-Control-Allow-Origin",value:"*"}]),n}function c(e){return!0===e.credentials?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function l(e){var t=e.exposedHeaders;return t?(t.join&&(t=t.join(",")),t&&t.length?{key:"Access-Control-Expose-Headers",value:t}:null):null}function u(e,t){for(var r=0,n=e.length;r<n;r++){var a=e[r];a&&(Array.isArray(a)?u(a,t):"Vary"===a.key&&a.value?o(t,a.value):a.value&&t.setHeader(a.key,a.value))}}e.exports=function(e){var r=null;return r="function"==typeof e?e:function(t,r){r(null,e)},function(e,o,a){r(e,(function(r,i){if(r)a(r);else{var p=t({},n,i),d=null;p.origin&&"function"==typeof p.origin?d=p.origin:p.origin&&(d=function(e,t){t(null,p.origin)}),d?d(e.headers.origin,(function(t,r){t||!r?a(t):(p.origin=r,function(e,t,r,o){var n=[];"OPTIONS"===(t.method&&t.method.toUpperCase&&t.method.toUpperCase())?(n.push(s(e,t)),n.push(c(e)),n.push(function(e){var t=e.methods;return t.join&&(t=e.methods.join(",")),{key:"Access-Control-Allow-Methods",value:t}}(e)),n.push(function(e,t){var r=e.allowedHeaders||e.headers,o=[];return r?r.join&&(r=r.join(",")):(r=t.headers["access-control-request-headers"],o.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),r&&r.length&&o.push([{key:"Access-Control-Allow-Headers",value:r}]),o}(e,t)),n.push(function(e){var t=("number"==typeof e.maxAge||e.maxAge)&&e.maxAge.toString();return t&&t.length?{key:"Access-Control-Max-Age",value:t}:null}(e)),n.push(l(e)),u(n,r),e.preflightContinue?o():(r.statusCode=e.optionsSuccessStatus,r.setHeader("Content-Length","0"),r.end())):(n.push(s(e,t)),n.push(c(e)),n.push(l(e)),u(n,r),o())}(p,e,o,a))})):a()}}))}}}()},31240:(e,t,r)=>{e.exports=r(76982).createHash},6815:(e,t,r)=>{e.exports=r(76982).createHmac},17833:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let o=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(n=o))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(40736)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40736:(e,t,r)=>{e.exports=function(e){function t(e){let r,n,a,i=null;function s(...e){if(!s.enabled)return;const o=s,n=Number(new Date),a=n-(r||n);o.diff=a,o.prev=r,o.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,n)=>{if("%%"===r)return"%";i++;const a=t.formatters[n];if("function"==typeof a){const t=e[i];r=a.call(o,t),e.splice(i,1),i--}return r})),t.formatArgs.call(o,e);(o.log||t.log).apply(o,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==t.namespaces&&(n=t.namespaces,a=t.enabled(e)),a),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,r){const o=t(this.namespace+(void 0===r?":":r)+e);return o.log=this.log,o}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),n=o.length;for(r=0;r<n;r++)o[r]&&("-"===(e=o[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,o;for(r=0,o=t.skips.length;r<o;r++)if(t.skips[r].test(e))return!1;for(r=0,o=t.names.length;r<o;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},45753:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(17833):e.exports=r(76033)},76033:(e,t,r)=>{const o=r(52018),n=r(39023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let o=0;o<r.length;o++)e.inspectOpts[r[o]]=t.inspectOpts[r[o]]},t.log=function(...e){return process.stderr.write(n.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:o,useColors:n}=this;if(n){const t=this.color,n="[3"+(t<8?t:"8;5;"+t),a=` ${n};1m${o} [0m`;r[0]=a+r[0].split("\n").join("\n"+a),r.push(n+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+o+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(27687);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];return o=!!/^(yes|on|true|enabled)$/i.test(o)||!/^(no|off|false|disabled)$/i.test(o)&&("null"===o?null:Number(o)),e[r]=o,e}),{}),e.exports=r(40736)(t);const{formatters:a}=e.exports;a.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},a.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},14744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return o(e,r)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function s(e,t,r){var n={};return r.isMergeableObject(e)&&a(e).forEach((function(t){n[t]=o(e[t],r)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&r.isMergeableObject(t[a])?n[a]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(a,r)(e[a],t[a],r):n[a]=o(t[a],r))})),n}function c(e,r,a){(a=a||{}).arrayMerge=a.arrayMerge||n,a.isMergeableObject=a.isMergeableObject||t,a.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(r);return i===Array.isArray(e)?i?a.arrayMerge(e,r,a):s(e,r,a):o(r,a)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},25170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ECPairFactory=t.networks=void 0;const o=r(95249);t.networks=o;const n=r(90953),a=r(44137),i=r(57513),s=r(80709),c=n.typeforce.maybe(n.typeforce.compile({compressed:n.maybe(n.Boolean),network:n.maybe(n.Network)}));t.ECPairFactory=function(e){function t(t,o){if(n.typeforce(n.Buffer256bit,t),!e.isPrivate(t))throw new TypeError("Private key not in range [1, n)");return n.typeforce(c,o),new r(t,void 0,o)}(0,s.testEcc)(e);class r{__D;__Q;compressed;network;lowR;constructor(t,r,n){this.__D=t,this.__Q=r,this.lowR=!1,void 0===n&&(n={}),this.compressed=void 0===n.compressed||n.compressed,this.network=n.network||o.bitcoin,void 0!==r&&(this.__Q=Buffer.from(e.pointCompress(r,this.compressed)))}get privateKey(){return this.__D}get publicKey(){if(!this.__Q){const t=e.pointFromScalar(this.__D,this.compressed);this.__Q=Buffer.from(t)}return this.__Q}toWIF(){if(!this.__D)throw new Error("Missing private key");return i.encode(this.network.wif,this.__D,this.compressed)}sign(t,r){if(!this.__D)throw new Error("Missing private key");if(void 0===r&&(r=this.lowR),!1===r)return Buffer.from(e.sign(t,this.__D));{let r=e.sign(t,this.__D);const o=Buffer.alloc(32,0);let n=0;for(;r[0]>127;)n++,o.writeUIntLE(n,0,6),r=e.sign(t,this.__D,o);return Buffer.from(r)}}signSchnorr(t){if(!this.privateKey)throw new Error("Missing private key");if(!e.signSchnorr)throw new Error("signSchnorr not supported by ecc library");return Buffer.from(e.signSchnorr(t,this.privateKey))}verify(t,r){return e.verify(t,this.publicKey,r)}verifySchnorr(t,r){if(!e.verifySchnorr)throw new Error("verifySchnorr not supported by ecc library");return e.verifySchnorr(t,this.publicKey.subarray(1,33),r)}}return{isPoint:function(t){return e.isPoint(t)},fromPrivateKey:t,fromPublicKey:function(t,o){return n.typeforce(e.isPoint,t),n.typeforce(c,o),new r(void 0,t,o)},fromWIF:function(e,r){const a=i.decode(e),s=a.version;if(n.Array(r)){if(!(r=r.filter((e=>s===e.wif)).pop()))throw new Error("Unknown network version")}else if(r=r||o.bitcoin,s!==r.wif)throw new Error("Invalid network version");return t(a.privateKey,{compressed:a.compressed,network:r})},makeRandom:function(r){n.typeforce(c,r),void 0===r&&(r={});const o=r.rng||a;let i;do{i=o(32),n.typeforce(n.Buffer256bit,i)}while(!e.isPrivate(i));return t(i,r)}}}},38700:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.networks=t.ECPairFactory=t.default=void 0;var o=r(25170);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.ECPairFactory}}),Object.defineProperty(t,"ECPairFactory",{enumerable:!0,get:function(){return o.ECPairFactory}}),Object.defineProperty(t,"networks",{enumerable:!0,get:function(){return o.networks}})},95249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testnet=t.bitcoin=void 0,t.bitcoin={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},t.testnet={messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}},80709:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testEcc=void 0;const r=e=>Buffer.from(e,"hex");function o(e){if(!e)throw new Error("ecc library invalid")}t.testEcc=function(e){o(e.isPoint(r("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),o(!e.isPoint(r("030000000000000000000000000000000000000000000000000000000000000005"))),o(e.isPrivate(r("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),o(e.isPrivate(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140"))),o(!e.isPrivate(r("0000000000000000000000000000000000000000000000000000000000000000"))),o(!e.isPrivate(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"))),o(!e.isPrivate(r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364142"))),o(Buffer.from(e.pointCompress(r("0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"),!0)).equals(r("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),o(Buffer.from(e.pointCompress(r("0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"),!1)).equals(r("0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"))),o(Buffer.from(e.pointCompress(r("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),!0)).equals(r("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),o(Buffer.from(e.pointCompress(r("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),!1)).equals(r("0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"))),o(Buffer.from(e.pointFromScalar(r("b1121e4088a66a28f5b6b0f5844943ecd9f610196d7bb83b25214b60452c09af"))).equals(r("02b07ba9dca9523b7ef4bd97703d43d20399eb698e194704791a25ce77a400df99"))),o(Buffer.from(e.sign(r("5e9f0a0d593efdcf78ac923bc3313e4e7d408d574354ee2b3288c0da9fbba6ed"),r("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140"))).equals(r("54c4a33c6423d689378f160a7ff8b61330444abb58fb470f96ea16d99d4a2fed07082304410efa6b2943111b6a4e0aaa7b7db55a07e9861d1fb3cb1f421044a5"))),o(e.verify(r("5e9f0a0d593efdcf78ac923bc3313e4e7d408d574354ee2b3288c0da9fbba6ed"),r("0379be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),r("54c4a33c6423d689378f160a7ff8b61330444abb58fb470f96ea16d99d4a2fed07082304410efa6b2943111b6a4e0aaa7b7db55a07e9861d1fb3cb1f421044a5"))),e.signSchnorr&&o(Buffer.from(e.signSchnorr(r("7e2d58d8b3bcdf1abadec7829054f90dda9805aab56c77333024b9d0a508b75c"),r("c90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b14e5c9"),r("c87aa53824b4d7ae2eb035a2b5bbbccc080e76cdc6d1692c4b0b62d798e6d906"))).equals(r("5831aaeed7b44bb74e5eab94ba9d4294c49bcf2a60728d8b4c200f50dd313c1bab745879a5ad954a72c45a91c3a51d3c7adea98d82f8481e0e1e03674a6f3fb7"))),e.verifySchnorr&&o(e.verifySchnorr(r("7e2d58d8b3bcdf1abadec7829054f90dda9805aab56c77333024b9d0a508b75c"),r("dd308afec5777e13121fa72b9cc1b7cc0139715309b086c960e18fd969774eb8"),r("5831aaeed7b44bb74e5eab94ba9d4294c49bcf2a60728d8b4c200f50dd313c1bab745879a5ad954a72c45a91c3a51d3c7adea98d82f8481e0e1e03674a6f3fb7")))}},90953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybe=t.Boolean=t.Array=t.Buffer256bit=t.Network=t.typeforce=void 0,t.typeforce=r(8676),t.Network=t.typeforce.compile({messagePrefix:t.typeforce.oneOf(t.typeforce.Buffer,t.typeforce.String),bip32:{public:t.typeforce.UInt32,private:t.typeforce.UInt32},pubKeyHash:t.typeforce.UInt8,scriptHash:t.typeforce.UInt8,wif:t.typeforce.UInt8}),t.Buffer256bit=t.typeforce.BufferN(32),t.Array=t.typeforce.Array,t.Boolean=t.typeforce.Boolean,t.maybe=t.typeforce.maybe},81349:(e,t)=>{"use strict";
|
|
18
|
+
/*!
|
|
19
|
+
* cookie
|
|
20
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
21
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
22
|
+
* MIT Licensed
|
|
23
|
+
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var o={},n=t||{},i=e.split(";"),s=n.decode||r,c=0;c<i.length;c++){var l=i[c],u=l.indexOf("=");if(!(u<0)){var p=l.substring(0,u).trim();if(null==o[p]){var d=l.substring(u+1,l.length).trim();'"'===d[0]&&(d=d.slice(1,-1)),o[p]=a(d,s)}}}return o},t.serialize=function(e,t,r){var a=r||{},i=a.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!n.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(a.domain){if(!n.test(a.domain))throw new TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw new TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+a.expires.toUTCString()}a.httpOnly&&(c+="; HttpOnly");a.secure&&(c+="; Secure");if(a.sameSite){switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var r=decodeURIComponent,o=encodeURIComponent,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(t){return e}}},84406:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(90784),i=r(65757);t.backOff=function(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,(function(){var r;return n(this,(function(o){switch(o.label){case 0:return r=a.getSanitizedOptions(t),[4,new s(e,r).execute()];case 1:return[2,o.sent()]}}))}))};var s=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return o(this,void 0,void 0,(function(){var e;return n(this,(function(t){switch(t.label){case 0:if(this.attemptLimitReached)return[3,7];t.label=1;case 1:return t.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return t.sent(),[4,this.request()];case 3:return[2,t.sent()];case 4:return e=t.sent(),this.attemptNumber++,[4,this.options.retry(e,this.attemptNumber)];case 5:if(!t.sent()||this.attemptLimitReached)throw e;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}}))}))},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,i.DelayFactory(this.options,this.attemptNumber).apply()];case 1:return e.sent(),[2]}}))}))},e}()},88348:function(e,t,r){"use strict";var o,n=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},o(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(r(36698).Delay);t.AlwaysDelay=a},36698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(66071),n=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise((function(t){return setTimeout(t,e.jitteredDelay)}))},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return o.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,r=this.numOfDelayedAttempts,o=e*Math.pow(t,r);return Math.min(o,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=n},65757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(7510),n=r(88348);t.DelayFactory=function(e,t){var r=function(e){if(!e.delayFirstAttempt)return new o.SkipFirstDelay(e);return new n.AlwaysDelay(e)}(e);return r.setAttemptNumber(t),r}},7510:function(e,t,r){"use strict";var o,n=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},o(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.apply=function(){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,!!this.isFirstAttempt||e.prototype.apply.call(this)]}))}))},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(r(36698).Delay);t.SkipFirstDelay=s},38500:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullJitter=function(e){var t=Math.random()*e;return Math.round(t)}},66071:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(38500),n=r(14764);t.JitterFactory=function(e){return"full"===e.jitter?o.fullJitter:n.noJitter}},14764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noJitter=function(e){return e}},90784:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=r(r({},o),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},57429:e=>{"use strict";var t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];var r={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function o(e,t){var o=r[e];return void 0===o?255:o<<t}e.exports=function(e){var r=e.indexOf("%");if(-1===r)return e;for(var n=e.length,a="",i=0,s=0,c=r,l=12;r>-1&&r<n;){var u=o(e[r+1],4)|o(e[r+2],0),p=t[u];if(s=s<<6|u&t[364+p],12!==(l=t[256+l+p])){if(0===l)return null;if((r+=3)<n&&37===e.charCodeAt(r))continue;return null}a+=e.slice(i,c),a+=s<=65535?String.fromCharCode(s):String.fromCharCode(55232+(s>>10),56320+(1023&s)),s=0,i=r+3,r=c=e.indexOf("%",i)}return a+e.slice(i)}},32017:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(t)){if((o=t.length)!=r.length)return!1;for(n=o;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((o=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;0!=n--;){var i=a[n];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},72492:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,o="boolean"==typeof t.cycles&&t.cycles,n=t.cmp&&(r=t.cmp,function(e){return function(t,o){var n={key:t,value:e[t]},a={key:o,value:e[o]};return r(n,a)}}),a=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,i;if(Array.isArray(t)){for(i="[",r=0;r<t.length;r++)r&&(i+=","),i+=e(t[r])||"null";return i+"]"}if(null===t)return"null";if(-1!==a.indexOf(t)){if(o)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=a.push(t)-1,c=Object.keys(t).sort(n&&n(t));for(i="",r=0;r<c.length;r++){var l=c[r],u=e(t[l]);u&&(i&&(i+=","),i+=JSON.stringify(l)+":"+u)}return a.splice(s,1),"{"+i+"}"}}(e)}},84052:(e,t,r)=>{"use strict";const o=r(28019),n=r(14744),a=r(89844)({proto:!0}),i=Symbol("fast-json-stringify.cloned"),s=r(89090);let c,l=null;try{c=r(36994).isLong}catch(e){c=null}const u="\n if (addComma) {\n json += ','\n } else {\n addComma = true\n }\n";function p(e,t){if(!s(e)){t=t?`"${t}" `:"";const e=s.errors[0],r=new Error(`${t}schema is invalid: data${e.dataPath} ${e.message}`);throw r.errors=p.errors,r}}function d(e,t){return{schema:t.schema||e.schema,root:t.root||e.root,externalSchema:t.externalSchema||e.externalSchema}}const h=new Map,f=new Map;const m=["maxProperties","minProperties","required","properties","patternProperties","additionalProperties","dependencies"],v=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],g=["maxLength","minLength","pattern"],y=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function b(e){for(var t of m)if(t in e)return"object";for(var t of v)if(t in e)return"array";for(var t of g)if(t in e)return"string";for(var t of y)if(t in e)return"number";return e.type}const w={"date-time":"$asDatetime",date:"$asDate",time:"$asTime"};function x(e){return w[e]||"$asString"}function k(e){return w[e]}const _="\nfunction $pad2Zeros (num) {\n const s = '00' + num\n return s[s.length - 2] + s[s.length - 1]\n}\n\nfunction $asAny (i) {\n return JSON.stringify(i)\n}\n\nfunction $asNull () {\n return 'null'\n}\n\nfunction $asInteger (i) {\n if (isLong && isLong(i)) {\n return i.toString()\n } else if (typeof i === 'bigint') {\n return i.toString()\n } else if (Number.isInteger(i)) {\n return $asNumber(i)\n } else {\n /* eslint no-undef: \"off\" */\n return $asNumber(parseInteger(i))\n }\n}\n\nfunction $asIntegerNullable (i) {\n return i === null ? null : $asInteger(i)\n}\n\nfunction $asNumber (i) {\n const num = Number(i)\n if (isNaN(num)) {\n return 'null'\n } else {\n return '' + num\n }\n}\n\nfunction $asNumberNullable (i) {\n return i === null ? null : $asNumber(i)\n}\n\nfunction $asBoolean (bool) {\n return bool && 'true' || 'false' // eslint-disable-line\n}\n\nfunction $asBooleanNullable (bool) {\n return bool === null ? null : $asBoolean(bool)\n}\n\nfunction $asDatetime (date, skipQuotes) {\n const quotes = skipQuotes === true ? '' : '\"'\n if (date instanceof Date) {\n return quotes + date.toISOString() + quotes\n } else if (date && typeof date.toISOString === 'function') {\n return quotes + date.toISOString() + quotes\n } else {\n return $asString(date, skipQuotes)\n }\n}\n\nfunction $asDate (date, skipQuotes) {\n const quotes = skipQuotes === true ? '' : '\"'\n if (date instanceof Date) {\n return quotes + new Date(date.getTime() - (date.getTimezoneOffset() * 60000 )).toISOString().slice(0, 10) + quotes\n } else if (date && typeof date.format === 'function') {\n return quotes + date.format('YYYY-MM-DD') + quotes\n } else {\n return $asString(date, skipQuotes)\n }\n}\n\nfunction $asTime (date, skipQuotes) {\n const quotes = skipQuotes === true ? '' : '\"'\n if (date instanceof Date) {\n const hour = new Intl.DateTimeFormat('en', { hour: 'numeric', hour12: false }).format(date)\n const minute = new Intl.DateTimeFormat('en', { minute: 'numeric' }).format(date)\n const second = new Intl.DateTimeFormat('en', { second: 'numeric' }).format(date)\n return quotes + $pad2Zeros(hour) + ':' + $pad2Zeros(minute) + ':' + $pad2Zeros(second) + quotes\n } else if (date && typeof date.format === 'function') {\n return quotes + date.format('HH:mm:ss') + quotes\n } else {\n return $asString(date, skipQuotes)\n }\n}\n\nfunction $asString (str, skipQuotes) {\n const quotes = skipQuotes === true ? '' : '\"'\n if (str instanceof Date) {\n return quotes + str.toISOString() + quotes\n } else if (str === null) {\n return quotes + quotes\n } else if (str instanceof RegExp) {\n str = str.source\n } else if (typeof str !== 'string') {\n str = str.toString()\n }\n // If we skipQuotes it means that we are using it as test\n // no need to test the string length for the render\n if (skipQuotes) {\n return str\n }\n\n if (str.length < 42) {\n return $asStringSmall(str)\n } else {\n return JSON.stringify(str)\n }\n}\n\nfunction $asStringNullable (str) {\n return str === null ? null : $asString(str)\n}\n\n// magically escape strings for json\n// relying on their charCodeAt\n// everything below 32 needs JSON.stringify()\n// every string that contain surrogate needs JSON.stringify()\n// 34 and 92 happens all the time, so we\n// have a fast case for them\nfunction $asStringSmall (str) {\n const l = str.length\n let result = ''\n let last = 0\n let found = false\n let surrogateFound = false\n let point = 255\n // eslint-disable-next-line\n for (var i = 0; i < l && point >= 32; i++) {\n point = str.charCodeAt(i)\n if (point >= 0xD800 && point <= 0xDFFF) {\n // The current character is a surrogate.\n surrogateFound = true\n }\n if (point === 34 || point === 92) {\n result += str.slice(last, i) + '\\\\'\n last = i\n found = true\n }\n }\n\n if (!found) {\n result = str\n } else {\n result += str.slice(last)\n }\n return ((point < 32) || (surrogateFound === true)) ? JSON.stringify(str) : '\"' + result + '\"'\n}\n";function E(e){let t=e.schema.additionalProperties,r="";if(!0===t)return`\n if (obj[keys[i]] !== undefined && typeof obj[keys[i]] !== 'function' && typeof obj[keys[i]] !== 'symbol') {\n ${u}\n json += $asString(keys[i]) + ':' + JSON.stringify(obj[keys[i]])\n }\n `;let o=d(e,{schema:t});t.$ref&&(o=P(t.$ref,e),t=o.schema);const n=t.type,a=x(t.format);return"object"===n?r+=`${I(o,"","buildObjectAP")}\n ${u}\n json += $asString(keys[i]) + ':' + buildObjectAP(obj[keys[i]])\n `:"array"===n?r+=`${C(o,"","buildArrayAP")}\n ${u}\n json += $asString(keys[i]) + ':' + buildArrayAP(obj[keys[i]])\n `:"null"===n?r+=`\n ${u}\n json += $asString(keys[i]) +':null'\n `:"string"===n?r+=`\n ${u}\n json += $asString(keys[i]) + ':' + ${a}(obj[keys[i]])\n `:"integer"===n?(r+="\n var t = Number(obj[keys[i]])\n ",r+=c?`\n if (isLong(obj[keys[i]]) || !isNaN(t)) {\n ${u}\n json += $asString(keys[i]) + ':' + $asInteger(obj[keys[i]])\n }\n `:`\n if (!isNaN(t)) {\n ${u}\n json += $asString(keys[i]) + ':' + t\n }\n `):r+="number"===n?`\n var t = Number(obj[keys[i]])\n if (!isNaN(t)) {\n ${u}\n json += $asString(keys[i]) + ':' + t\n }\n `:"boolean"===n?`\n ${u}\n json += $asString(keys[i]) + ':' + $asBoolean(obj[keys[i]])\n `:void 0===n?`\n ${u}\n json += $asString(keys[i]) + ':' + $asAny(obj[keys[i]])\n `:`\n throw new Error('Cannot coerce ' + obj[keys[i]] + ' to ' + ${JSON.stringify(n)})\n `,r}function S(e,t){let r;const o=(e,t)=>{Object.keys(e||{}).forEach(((n,a,i)=>{"$id"===n&&e[n]===t?r=e:void 0===r&&"object"==typeof e[n]&&o(e[n],t)}))};return o(e,t),r}function P(e,t){const o=t.externalSchema;let n=t.root,a=t.schema;if(o&&o[e])return{schema:o[e],root:o[e],externalSchema:o};if((e=e.split("#"))[0]&&(a=o[e[0]],n=o[e[0]],void 0===a&&p(o,[e[0]]),a.$ref))return P(a.$ref,{schema:a,root:n,externalSchema:o});let i,s="return schema";if(e[1]){const t=e[1].split("/");if(1===t.length){const t=`#${e[1]}`;let r=S(a,t);if(void 0===r&&!e[0])for(var c of Object.keys(o))if(r=S(o[c],t),void 0!==r){n=o[c];break}return{schema:r,root:n,externalSchema:o}}for(var u=1;u<t.length;u++)s+=`[${JSON.stringify(t[u])}]`}try{i=new Function("schema",s)(n)}catch(e){}if(void 0===i&&e[1]){p(a,e[1].split("/").slice(1))}return i.$ref?P(i.$ref,{schema:a,root:n,externalSchema:o}):{schema:i,root:n,externalSchema:o};function p(e,t){if(0===t.length)return null;const o=t.shift();if(void 0===e[o]){l=l||r(25721);const{bestMatch:t}=l.findBestMatch(o,Object.keys(e));throw t.rating>=.5?new Error(`Cannot find reference ${JSON.stringify(o)}, did you mean ${JSON.stringify(t.target)}?`):new Error(`Cannot find reference ${JSON.stringify(o)}`)}return p(e[o],t)}}function T(e,t){return e?e.filter((e=>e!==t)):e}function O(e,t,r,o){if(e.schema.allOf)e.schema.allOf.forEach((n=>{const a=O(d(e,{schema:n}),t,r,o);t=a.code,r=a.laterCode}));else{const n=function(e,t,r,o){e.schema.$ref&&(e=P(e.schema.$ref,e));const n=e.schema;let a=n.required;if(Object.keys(n.properties||{}).forEach(((i,s,l)=>{let p=d(e,{schema:n.properties[i]});n.properties[i].$ref&&(p=P(n.properties[i].$ref,e),n.properties[i]=p.schema);const h=n.properties[i].type,f=n.properties[i].nullable,m=JSON.stringify(i),v=JSON.stringify(m);if(f&&(t+=`\n if (obj[${m}] === null) {\n ${u}\n json += ${v} + ':null'\n var rendered = true\n } else {\n `),"number"===h)t+=`\n var t = Number(obj[${m}])\n if (!isNaN(t)) {\n ${u}\n json += ${v} + ':' + t\n `;else if("integer"===h)t+="\n var rendered = false\n ",t+=c?`\n if (isLong(obj[${m}])) {\n ${u}\n json += ${v} + ':' + obj[${m}].toString()\n rendered = true\n } else {\n var t = Number(obj[${m}])\n if (!isNaN(t)) {\n ${u}\n json += ${v} + ':' + t\n rendered = true\n }\n }\n `:`\n var t = $asInteger(obj[${m}])\n if (!isNaN(t)) {\n ${u}\n json += ${v} + ':' + t\n rendered = true\n }\n `,t+="\n if (rendered) {\n ";else{t+=`\n if (obj[${m}] !== undefined) {\n ${u}\n json += ${v} + ':'\n `;const e=D(r,o,i,d(p,{schema:n.properties[i]}),void 0,!1);t+=e.code,r=e.laterCode}const g=n.properties[i].default;void 0!==g?(a=T(a,i),t+=`\n } else {\n ${u}\n json += ${v} + ':' + ${JSON.stringify(JSON.stringify(g))}\n `):a&&-1!==a.indexOf(i)&&(a=T(a,i),t+=`\n } else {\n throw new Error('${m} is required!')\n `),t+="\n }\n ",f&&(t+="\n }\n ")})),a&&a.length>0){t+="var required = [";for(var i=0;i<a.length;i++)i>0&&(t+=","),t+=`${JSON.stringify(a[i])}`;t+="]\n for (var i = 0; i < required.length; i++) {\n if (obj[required[i]] === undefined) throw new Error('\"' + required[i] + '\" is required!')\n }\n "}if(n.allOf){const n=O(e,t,r,o);t=n.code,r=n.laterCode}return{code:t,laterCode:r}}(e,t,r,o);t=n.code,r=n.laterCode}return{code:t,laterCode:r}}function j(e,t){const r=e.schema,o=O(e,"","",t);return r.patternProperties?o.code+=function(e){const t=e.schema,r=t.patternProperties;let o=`\n var properties = ${JSON.stringify(t.properties)} || {}\n var keys = Object.keys(obj)\n for (var i = 0; i < keys.length; i++) {\n if (properties[keys[i]]) continue\n `;return Object.keys(r).forEach(((t,n)=>{let a=d(e,{schema:r[t]});r[t].$ref&&(a=P(r[t].$ref,e),r[t]=a.schema);const i=r[t].type,s=x(r[t].format);try{RegExp(t)}catch(e){throw new Error(`${e.message}. Found at ${t} matching ${JSON.stringify(r[t])}`)}const c=`if (/${t.replace(/\\*\//g,"\\/")}/.test(keys[i])) {`;o+="object"===i?`${I(a,"","buildObjectPP"+n)}\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + buildObjectPP${n}(obj[keys[i]])\n `:"array"===i?`${C(a,"","buildArrayPP"+n)}\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + buildArrayPP${n}(obj[keys[i]])\n `:"null"===i?`\n ${c}\n ${u}\n json += $asString(keys[i]) +':null'\n `:"string"===i?`\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + ${s}(obj[keys[i]])\n `:"integer"===i?`\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + $asInteger(obj[keys[i]])\n `:"number"===i?`\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + $asNumber(obj[keys[i]])\n `:"boolean"===i?`\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + $asBoolean(obj[keys[i]])\n `:void 0===i?`\n ${c}\n ${u}\n json += $asString(keys[i]) + ':' + $asAny(obj[keys[i]])\n `:`\n ${c}\n throw new Error('Cannot coerce ' + obj[keys[i]] + ' to ' + ${JSON.stringify(i)})\n `,o+="\n continue\n }\n "})),t.additionalProperties&&(o+=E(e)),o+="\n }\n ",o}(e):r.additionalProperties&&!r.patternProperties&&(o.code+=function(e){return`\n var properties = ${JSON.stringify(e.schema.properties)} || {}\n var keys = Object.keys(obj)\n for (var i = 0; i < keys.length; i++) {\n if (properties[keys[i]]) continue\n ${E(e)}\n }\n `}(e)),o}function R(e,t){let r,o,a="",i="";const s=e.schema,c=n({},s),l=c.if,u=c.then,p=c.else?c.else:{additionalProperties:!0};delete c.if,delete c.then,delete c.else;let h=n(c,u),f=d(e,{schema:h});return a+=`\n valid = ajv.validate(${JSON.stringify(l)}, obj)\n if (valid) {\n `,h.if&&h.then&&(o=R(f,t+"Then"),a+=o.code,i=o.laterCode),r=j(f,t+"Then"),a+=r.code,i+=r.laterCode,a+="\n }\n ",h=n(c,p),f=d(f,{schema:h}),a+="\n else {\n ",h.if&&h.then&&(o=R(f,t+"Else"),a+=o.code,i+=o.laterCode),r=j(f,t+"Else"),a+=r.code,i+=r.laterCode,a+="\n }\n ",{code:a,laterCode:i}}function I(e,t,r){const o=e.schema;if(t+=`\n function ${r} (input) {\n `,o.nullable&&(t+="\n if(input === null) {\n return 'null';\n }\n "),f.has(o))return t+=`\n return ${f.get(o)}(input)\n }\n `;var n;let a;return f.set(o,r),t+=`\n var obj = ${n="input",`(${n} && typeof ${n}.toJSON === 'function')\n ? ${n}.toJSON()\n : ${n}\n `}\n var json = '{'\n var addComma = false\n `,o.if&&o.then?(t+="\n var valid\n ",a=R(e,r)):a=j(e,r),t+=`${a.code}\n json += '}'\n return json\n }\n ${a.laterCode}\n `}function C(e,t,r,o=null){let n=e.schema;t+=`\n function ${r} (obj) {\n `,n.nullable&&(t+="\n if(obj === null) {\n return 'null';\n }\n ");if(n.items||(n.items={}),n.items.$ref){if(n[i]||(e.schema=a(e.schema),n=e.schema,n[i]=!0),e=P(n.items.$ref,e),n.items=e.schema,h.has(n.items))return t+=`\n return ${h.get(n.items)}(obj)\n }\n `;h.set(n.items,r)}let s={code:"",laterCode:""};const c="[i]";if(Array.isArray(n.items)){if(s=n.items.reduce(((t,o,n)=>{const a=D("",r,c,d(e,{schema:o}),n,!0),i=`i === ${n} && ${A(o.type,c)}`;return{code:`${t.code}\n ${n>0?"else":""} if (${i}) {\n ${a.code}\n }`,laterCode:`${t.laterCode}\n ${a.laterCode}`}}),s),n.additionalItems){const t=D("",r,c,d(e,{schema:n.items}),void 0,!0);s.code+=`\n else if (i >= ${n.items.length}) {\n ${t.code}\n }\n `}s.code+="\n else {\n throw new Error(`Item at ${i} does not match schema definition.`)\n }\n "}else s=D("",r,c,d(e,{schema:n.items}),void 0,!0);return o&&(t+=`\n if(!Array.isArray(obj)) {\n throw new TypeError(\`Property '${o}' should be of type array, received '\${obj}' instead.\`)\n }\n `),t+=`\n var l = obj.length\n var jsonOutput= ''\n for (var i = 0; i < l; i++) {\n var json = ''\n ${s.code}\n jsonOutput += json\n\n if (json.length > 0 && i < l - 1) {\n jsonOutput += ','\n }\n }\n return \`[\${jsonOutput}]\`\n }\n ${s.laterCode}\n `}function A(e,t){let r;switch(e){case"null":r=`obj${t} === null`;break;case"string":r=`typeof obj${t} === 'string'`;break;case"integer":r=`Number.isInteger(obj${t})`;break;case"number":r=`Number.isFinite(obj${t})`;break;case"boolean":r=`typeof obj${t} === 'boolean'`;break;case"object":r=`obj${t} && typeof obj${t} === 'object' && obj${t}.constructor === Object`;break;case"array":r=`Array.isArray(obj${t})`;break;default:if(!Array.isArray(e))throw new Error(`${e} unsupported`);r=`(${e.map((e=>A(e,t))).join(" || ")})`}return r}function N(e,t){if(!e.schema[i]){const t=a(e.schema);t[i]=!0,e.schema=t}const r=e.schema,o=[];return r[t].forEach(((n,a)=>{let i=d(e,{schema:n});for(;n.$ref;)i=P(n.$ref,i),r[t][a]=i.schema,n=r[t][a];o[a]=i})),o}let $=0;function L(e){let t=e.replace(/[^a-zA-Z0-9$_]/g,"");return 0===t.length?"anan"+$++:(t!==e&&(t+=$++),t)}function D(e,t,r,o,n,a){let i,s="";n=n||"";let c=o.schema;if(c.$ref&&(c=P(c.$ref,o)),void 0===c.type){const e=b(c);e&&(c.type=e)}const l=c.type,u=!0===c.nullable,p=a?r:`[${JSON.stringify(r)}]`;switch(l){case"null":s+="\n json += $asNull()\n ";break;case"string":{const e=x(c.format);s+=u?`json += obj${p} === null ? null : ${e}(obj${p})`:`json += ${e}(obj${p})`;break}case"integer":s+=u?`json += obj${p} === null ? null : $asInteger(obj${p})`:`json += $asInteger(obj${p})`;break;case"number":s+=u?`json += obj${p} === null ? null : $asNumber(obj${p})`:`json += $asNumber(obj${p})`;break;case"boolean":s+=u?`json += obj${p} === null ? null : $asBoolean(obj${p})`:`json += $asBoolean(obj${p})`;break;case"object":i=L(t+r+n),e=I(o,e,i),s+=`\n json += ${i}(obj${p})\n `;break;case"array":i=L("$arr"+t+r+n),e=C(o,e,i,r),s+=`\n json += ${i}(obj${p})\n `;break;case void 0:if("anyOf"in c){N(o,"anyOf").forEach(((o,i)=>{const c=D(e,t,r,o,""!==n?n:"i"+i,a),l=k(o.schema.format),u=void 0!==l?`${l}(obj${p}, true)`:`obj${p}`;s+=`\n ${0===i?"if":"else if"}(ajv.validate(${JSON.stringify(o.schema)}, ${u}))\n ${c.code}\n `,e=c.laterCode})),s+="\n else json+= null\n "}else if("oneOf"in c){N(o,"oneOf").forEach(((o,i)=>{const c=D(e,t,r,o,""!==n?n:"i"+i,a),l=k(o.schema.format),u=void 0!==l?`${l}(obj${p}, true)`:`obj${p}`;s+=`\n ${0===i?"if":"else if"}(ajv.validate(${JSON.stringify(o.schema)}, ${u}))\n ${c.code}\n `,e=c.laterCode})),a||(s+="\n else json+= null\n ")}else if(function(e){for(var t in e)if(e.hasOwnProperty(t)&&void 0!==e[t])return!1;return!0}(c))s+=`\n json += JSON.stringify(obj${p})\n `;else if("const"in c)s+=`\n if(ajv.validate(${JSON.stringify(c)}, obj${p}))\n json += '${JSON.stringify(c.const)}'\n else\n throw new Error(\`Item \${JSON.stringify(obj${p})} does not match schema definition.\`)\n `;else{if(void 0!==c.type)throw new Error(`${c.type} unsupported`);s+=`\n json += JSON.stringify(obj${p})\n `}break;default:if(!Array.isArray(l))throw new Error(`${l} unsupported`);{const i=l.indexOf("null");(-1!==i?[l[i]].concat(l.slice(0,i)).concat(l.slice(i+1)):l).forEach(((i,l)=>{const u=0===l?"if":"else if",h=Object.assign({},c,{type:i}),f=D(e,t,r,d(o,{schema:h}),n,a);switch(i){case"string":s+=`\n ${u}(obj${p} === null || typeof obj${p} === "${i}" || obj${p} instanceof Date || typeof obj${p}.toISOString === "function" || obj${p} instanceof RegExp || (typeof obj${p} === "object" && Object.hasOwnProperty.call(obj${p}, "toString")))\n ${f.code}\n `;break;case"null":s+=`\n ${u}(obj${p} == null)\n ${f.code}\n `;break;case"array":s+=`\n ${u}(Array.isArray(obj${p}))\n ${f.code}\n `;break;case"integer":s+=`\n ${u}(Number.isInteger(obj${p}) || obj${p} === null)\n ${f.code}\n `;break;case"number":s+=`\n ${u}(isNaN(obj${p}) === false)\n ${f.code}\n `;break;default:s+=`\n ${u}(typeof obj${p} === "${i}")\n ${f.code}\n `}e=f.laterCode})),s+="\n else json+= null\n "}}return{code:s,laterCode:e}}e.exports=function(e,t){if(h.clear(),f.clear(),t=t||{},p(e),t.schema)for(var r of Object.keys(t.schema))p(t.schema[r],r);let n="trunc";if(t.rounding){if(!["floor","ceil","round"].includes(t.rounding))throw new Error(`Unsupported integer rounding method ${t.rounding}`);n=t.rounding}let a="\n 'use strict'\n ";a+=`\n ${_}\n\n var isLong = ${!!c&&c.toString()}\n\n function parseInteger(int) { return Math.${n}(int) }\n `;let i,s={schema:e,root:e,externalSchema:t.schema};switch(e.$ref&&(s=P(e.$ref,s),e=s.schema),void 0===e.type&&(e.type=b(e)),e.type){case"object":i="$main",a=I(s,a,i);break;case"string":i=e.nullable?"$asStringNullable":x(e.format);break;case"integer":i=e.nullable?"$asIntegerNullable":"$asInteger";break;case"number":i=e.nullable?"$asNumberNullable":"$asNumber";break;case"boolean":i=e.nullable?"$asBooleanNullable":"$asBoolean";break;case"null":i="$asNull";break;case"array":i="$main",a=C(s,a,i),e=s.schema;break;case void 0:i="$asAny";break;default:throw new Error(`${e.type} unsupported`)}a+=`\n ;\n return ${i}\n `;const l=[new o(t.ajv)],u=["ajv"];return u.push(a),t.debugMode?(u.toString=function(){return u.join("\n")},u):(h.clear(),f.clear(),Function.apply(null,u).apply(null,l))},e.exports.restore=function(e,t={}){const r=[e],n=[];return e.startsWith("ajv")&&(r.unshift("ajv"),n.push(new o(t.ajv))),Function.apply(null,["ajv",e]).apply(null,n)}},89090:(e,t,r)=>{var o=r(45950)(),n=r(4186),a=function(){var e=[];e[1]={type:"integer",minimum:0};var t=function e(t,r,o,n,a){"use strict";return"number"!=typeof t||t%1||t!=t?(e.errors=[{keyword:"type",dataPath:(r||"")+"",schemaPath:"#/definitions/nonNegativeInteger/type",params:{type:"integer"},message:"should be integer"}],!1):"number"==typeof t&&(t<0||t!=t)?(e.errors=[{keyword:"minimum",dataPath:(r||"")+"",schemaPath:"#/definitions/nonNegativeInteger/minimum",params:{comparison:">=",limit:0,exclusive:!1},message:"should be >= 0"}],!1):(e.errors=null,!0)};t.schema={allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},t.errors=null,e[2]=t;var r=function e(t,r,o,n,a){"use strict";var i=null,s=0;if(void 0===a&&(a=t),!Array.isArray(t))return e.errors=[{keyword:"type",dataPath:(r||"")+"",schemaPath:"#/type",params:{type:"array"},message:"should be array"}],!1;if(t.length<1)return e.errors=[{keyword:"minItems",dataPath:(r||"")+"",schemaPath:"#/minItems",params:{limit:1},message:"should NOT have fewer than 1 items"}],!1;for(var c=0;c<t.length;c++){var l=s;if(t[c],s!==l)break}return e.errors=i,0===s};r.schema={type:"array",minItems:1,items:{$ref:"#"}},r.errors=null,e[3]=r;e[4]={type:"array",items:{type:"string"},uniqueItems:!0,default:[]};var a={enum:["array","boolean","integer","null","number","object","string"]};return e[5]=a,function i(s,c,l,u,p){"use strict";var d=null,h=0;if(void 0===p&&(p=s),(!s||"object"!=typeof s||Array.isArray(s))&&"boolean"!=typeof s)return i.errors=[{keyword:"type",dataPath:(c||"")+"",schemaPath:"#/type",params:{type:"object,boolean"},message:"should be object,boolean"}],!1;if(s&&"object"==typeof s&&!Array.isArray(s)){var f=!0;if(void 0===($=s.$id))f=!0;else{if(h===(m=h)){if("string"!=typeof $)return i.errors=[{keyword:"type",dataPath:(c||"")+".$id",schemaPath:"#/properties/%24id/type",params:{type:"string"},message:"should be string"}],!1;if(!o["uri-reference"].test($))return i.errors=[{keyword:"format",dataPath:(c||"")+".$id",schemaPath:"#/properties/%24id/format",params:{format:"uri-reference"},message:'should match format "uri-reference"'}],!1}f=h===m}if(f){if(void 0===($=s.$schema))f=!0;else{if(h===(m=h)){if("string"!=typeof $)return i.errors=[{keyword:"type",dataPath:(c||"")+".$schema",schemaPath:"#/properties/%24schema/type",params:{type:"string"},message:"should be string"}],!1;if(!o.uri.test($))return i.errors=[{keyword:"format",dataPath:(c||"")+".$schema",schemaPath:"#/properties/%24schema/format",params:{format:"uri"},message:'should match format "uri"'}],!1}f=h===m}if(f){if(void 0===($=s.$ref))f=!0;else{if(h===(m=h)){if("string"!=typeof $)return i.errors=[{keyword:"type",dataPath:(c||"")+".$ref",schemaPath:"#/properties/%24ref/type",params:{type:"string"},message:"should be string"}],!1;if(!o["uri-reference"].test($))return i.errors=[{keyword:"format",dataPath:(c||"")+".$ref",schemaPath:"#/properties/%24ref/format",params:{format:"uri-reference"},message:'should match format "uri-reference"'}],!1}f=h===m}if(f){if(void 0===s.$comment)f=!0;else{var m=h;if("string"!=typeof s.$comment)return i.errors=[{keyword:"type",dataPath:(c||"")+".$comment",schemaPath:"#/properties/%24comment/type",params:{type:"string"},message:"should be string"}],!1;f=h===m}if(f){if(void 0===s.title)f=!0;else{m=h;if("string"!=typeof s.title)return i.errors=[{keyword:"type",dataPath:(c||"")+".title",schemaPath:"#/properties/title/type",params:{type:"string"},message:"should be string"}],!1;f=h===m}if(f){if(void 0===s.description)f=!0;else{m=h;if("string"!=typeof s.description)return i.errors=[{keyword:"type",dataPath:(c||"")+".description",schemaPath:"#/properties/description/type",params:{type:"string"},message:"should be string"}],!1;f=h===m}if(f&&f){if(void 0===s.readOnly)f=!0;else{m=h;if("boolean"!=typeof s.readOnly)return i.errors=[{keyword:"type",dataPath:(c||"")+".readOnly",schemaPath:"#/properties/readOnly/type",params:{type:"boolean"},message:"should be boolean"}],!1;f=h===m}if(f){if(void 0===s.examples)f=!0;else{m=h;if(!Array.isArray(s.examples))return i.errors=[{keyword:"type",dataPath:(c||"")+".examples",schemaPath:"#/properties/examples/type",params:{type:"array"},message:"should be array"}],!1;var v=h;f=h===m}if(f){if(void 0===($=s.multipleOf))f=!0;else{m=h;if("number"!=typeof $)return i.errors=[{keyword:"type",dataPath:(c||"")+".multipleOf",schemaPath:"#/properties/multipleOf/type",params:{type:"number"},message:"should be number"}],!1;if($<=0||$!=$)return i.errors=[{keyword:"exclusiveMinimum",dataPath:(c||"")+".multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",params:{comparison:">",limit:0,exclusive:!0},message:"should be > 0"}],!1;f=h===m}if(f){if(void 0===s.maximum)f=!0;else{m=h;if("number"!=typeof s.maximum)return i.errors=[{keyword:"type",dataPath:(c||"")+".maximum",schemaPath:"#/properties/maximum/type",params:{type:"number"},message:"should be number"}],!1;f=h===m}if(f){if(void 0===s.exclusiveMaximum)f=!0;else{m=h;if("number"!=typeof s.exclusiveMaximum)return i.errors=[{keyword:"type",dataPath:(c||"")+".exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",params:{type:"number"},message:"should be number"}],!1;f=h===m}if(f){if(void 0===s.minimum)f=!0;else{m=h;if("number"!=typeof s.minimum)return i.errors=[{keyword:"type",dataPath:(c||"")+".minimum",schemaPath:"#/properties/minimum/type",params:{type:"number"},message:"should be number"}],!1;f=h===m}if(f){if(void 0===s.exclusiveMinimum)f=!0;else{m=h;if("number"!=typeof s.exclusiveMinimum)return i.errors=[{keyword:"type",dataPath:(c||"")+".exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",params:{type:"number"},message:"should be number"}],!1;f=h===m}if(f){if(void 0===($=s.maxLength))f=!0;else{m=h;var g=h;if("number"!=typeof $||$%1||$!=$)return i.errors=[{keyword:"type",dataPath:(c||"")+".maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",params:{type:"integer"},message:"should be integer"}],!1;if("number"==typeof $&&($<0||$!=$))return i.errors=[{keyword:"minimum",dataPath:(c||"")+".maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",params:{comparison:">=",limit:0,exclusive:!1},message:"should be >= 0"}],!1;var y=h===g;f=h===m}if(f){if(void 0===s.minLength)f=!0;else{m=h;t(s.minLength,(c||"")+".minLength",s,"minLength",p)||(h=(d=null===d?t.errors:d.concat(t.errors)).length);f=h===m}if(f){if(void 0===($=s.pattern))f=!0;else{if(h===(m=h)){if("string"!=typeof $)return i.errors=[{keyword:"type",dataPath:(c||"")+".pattern",schemaPath:"#/properties/pattern/type",params:{type:"string"},message:"should be string"}],!1;if(!o.regex($))return i.errors=[{keyword:"format",dataPath:(c||"")+".pattern",schemaPath:"#/properties/pattern/format",params:{format:"regex"},message:'should match format "regex"'}],!1}f=h===m}if(f){if(void 0===s.additionalItems)f=!0;else{m=h;i(s.additionalItems,(c||"")+".additionalItems",s,"additionalItems",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f){if(void 0===($=s.items))f=!0;else{m=h,v=h,f=!1,g=h;i($,(c||"")+".items",s,"items",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);y=h===g;if(!(f=f||y)){g=h;r($,(c||"")+".items",s,"items",p)||(h=(d=null===d?r.errors:d.concat(r.errors)).length);y=h===g;f=f||y}if(!f){var b={keyword:"anyOf",dataPath:(c||"")+".items",schemaPath:"#/properties/items/anyOf",params:{},message:"should match some schema in anyOf"};return null===d?d=[b]:d.push(b),h++,i.errors=d,!1}h=v,null!==d&&(v?d.length=v:d=null);f=h===m}if(f){if(void 0===($=s.maxItems))f=!0;else{m=h,g=h;if("number"!=typeof $||$%1||$!=$)return i.errors=[{keyword:"type",dataPath:(c||"")+".maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",params:{type:"integer"},message:"should be integer"}],!1;if("number"==typeof $&&($<0||$!=$))return i.errors=[{keyword:"minimum",dataPath:(c||"")+".maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",params:{comparison:">=",limit:0,exclusive:!1},message:"should be >= 0"}],!1;y=h===g,f=h===m}if(f){if(void 0===s.minItems)f=!0;else{m=h;e[2](s.minItems,(c||"")+".minItems",s,"minItems",p)||(h=(d=null===d?e[2].errors:d.concat(e[2].errors)).length);f=h===m}if(f){if(void 0===s.uniqueItems)f=!0;else{m=h;if("boolean"!=typeof s.uniqueItems)return i.errors=[{keyword:"type",dataPath:(c||"")+".uniqueItems",schemaPath:"#/properties/uniqueItems/type",params:{type:"boolean"},message:"should be boolean"}],!1;f=h===m}if(f){if(void 0===s.contains)f=!0;else{m=h;i(s.contains,(c||"")+".contains",s,"contains",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f){if(void 0===($=s.maxProperties))f=!0;else{m=h,g=h;if("number"!=typeof $||$%1||$!=$)return i.errors=[{keyword:"type",dataPath:(c||"")+".maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",params:{type:"integer"},message:"should be integer"}],!1;if("number"==typeof $&&($<0||$!=$))return i.errors=[{keyword:"minimum",dataPath:(c||"")+".maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",params:{comparison:">=",limit:0,exclusive:!1},message:"should be >= 0"}],!1;y=h===g,f=h===m}if(f){if(void 0===s.minProperties)f=!0;else{m=h;e[2](s.minProperties,(c||"")+".minProperties",s,"minProperties",p)||(h=(d=null===d?e[2].errors:d.concat(e[2].errors)).length);f=h===m}if(f){if(void 0===($=s.required))f=!0;else{m=h,g=h;if(!Array.isArray($))return i.errors=[{keyword:"type",dataPath:(c||"")+".required",schemaPath:"#/definitions/stringArray/type",params:{type:"array"},message:"should be array"}],!1;for(var w=h,x=0;x<$.length;x++){var k=h;if("string"!=typeof $[x])return i.errors=[{keyword:"type",dataPath:(c||"")+".required["+x+"]",schemaPath:"#/definitions/stringArray/items/type",params:{type:"string"},message:"should be string"}],!1;if(!(O=h===k))break}if(w==h){y=!0;if((B=$.length)>1)for(var _={};B--;){if("string"==typeof(N=$[B])){if("number"==typeof _[N]){y=!1,q=_[N];break}_[N]=B}}if(!y)return i.errors=[{keyword:"uniqueItems",dataPath:(c||"")+".required",schemaPath:"#/definitions/stringArray/uniqueItems",params:{i:B,j:q},message:"should NOT have duplicate items (items ## "+q+" and "+B+" are identical)"}],!1}y=h===g,f=h===m}if(f){if(void 0===s.additionalProperties)f=!0;else{m=h;i(s.additionalProperties,(c||"")+".additionalProperties",s,"additionalProperties",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f){if(void 0===($=s.definitions))f=!0;else{m=h;if(!$||"object"!=typeof $||Array.isArray($))return i.errors=[{keyword:"type",dataPath:(c||"")+".definitions",schemaPath:"#/properties/definitions/type",params:{type:"object"},message:"should be object"}],!1;v=h,y=!0;for(var E in $){g=h;if(i($[E],(c||"")+".definitions['"+E+"']",$,E,p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length),!(y=h===g))break}f=h===m}if(f){if(void 0===($=s.properties))f=!0;else{m=h;if(!$||"object"!=typeof $||Array.isArray($))return i.errors=[{keyword:"type",dataPath:(c||"")+".properties",schemaPath:"#/properties/properties/type",params:{type:"object"},message:"should be object"}],!1;v=h,y=!0;for(var E in $){g=h;if(i($[E],(c||"")+".properties['"+E+"']",$,E,p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length),!(y=h===g))break}f=h===m}if(f){if(void 0===($=s.patternProperties))f=!0;else{m=h;if(!$||"object"!=typeof $||Array.isArray($))return i.errors=[{keyword:"type",dataPath:(c||"")+".patternProperties",schemaPath:"#/properties/patternProperties/type",params:{type:"object"},message:"should be object"}],!1;v=h;for(var E in $){var S=h,P=E;if(h===(g=h)&&"string"==typeof P&&!o.regex(P)){b={keyword:"format",dataPath:(c||"")+".patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",params:{format:"regex"},message:'should match format "regex"'};null===d?d=[b]:d.push(b),h++}if(!(y=h===g)){for(var T=S;T<h;T++)d[T].propertyName=E;b={keyword:"propertyNames",dataPath:(c||"")+".patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",params:{propertyName:""+E},message:"property name '"+E+"' is invalid"};return null===d?d=[b]:d.push(b),h++,i.errors=d,!1}}if(v==h){v=h,y=!0;for(var E in $){g=h;if(i($[E],(c||"")+".patternProperties['"+E+"']",$,E,p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length),!(y=h===g))break}}f=h===m}if(f){if(void 0===($=s.dependencies))f=!0;else{m=h;if(!$||"object"!=typeof $||Array.isArray($))return i.errors=[{keyword:"type",dataPath:(c||"")+".dependencies",schemaPath:"#/properties/dependencies/type",params:{type:"object"},message:"should be object"}],!1;v=h,y=!0;for(var E in $){g=h,w=h,y=!1,k=h;i(P=$[E],(c||"")+".dependencies['"+E+"']",$,E,p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);var O=h===k;if(!(y=y||O)){k=h;var j=h;if(Array.isArray(P)){for(var R=h,I=0;I<P.length;I++){var C=h;if("string"!=typeof P[I]){b={keyword:"type",dataPath:(c||"")+".dependencies['"+E+"']["+I+"]",schemaPath:"#/definitions/stringArray/items/type",params:{type:"string"},message:"should be string"};null===d?d=[b]:d.push(b),h++}if(!(h===C))break}if(R==h){var A=!0;if((B=P.length)>1)for(_={};B--;){var N;if("string"==typeof(N=P[B])){if("number"==typeof _[N]){A=!1,q=_[N];break}_[N]=B}}if(!A){b={keyword:"uniqueItems",dataPath:(c||"")+".dependencies['"+E+"']",schemaPath:"#/definitions/stringArray/uniqueItems",params:{i:B,j:q},message:"should NOT have duplicate items (items ## "+q+" and "+B+" are identical)"};null===d?d=[b]:d.push(b),h++}}}else{b={keyword:"type",dataPath:(c||"")+".dependencies['"+E+"']",schemaPath:"#/definitions/stringArray/type",params:{type:"array"},message:"should be array"};null===d?d=[b]:d.push(b),h++}A=h===j,O=h===k;y=y||O}if(!y){b={keyword:"anyOf",dataPath:(c||"")+".dependencies['"+E+"']",schemaPath:"#/properties/dependencies/additionalProperties/anyOf",params:{},message:"should match some schema in anyOf"};return null===d?d=[b]:d.push(b),h++,i.errors=d,!1}if(h=w,null!==d&&(w?d.length=w:d=null),!(y=h===g))break}f=h===m}if(f){if(void 0===s.propertyNames)f=!0;else{m=h;i(s.propertyNames,(c||"")+".propertyNames",s,"propertyNames",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f&&f){if(void 0===($=s.enum))f=!0;else{m=h;if(!Array.isArray($))return i.errors=[{keyword:"type",dataPath:(c||"")+".enum",schemaPath:"#/properties/enum/type",params:{type:"array"},message:"should be array"}],!1;if($.length<1)return i.errors=[{keyword:"minItems",dataPath:(c||"")+".enum",schemaPath:"#/properties/enum/minItems",params:{limit:1},message:"should NOT have fewer than 1 items"}],!1;if((v=h)==h){f=!0;if((B=$.length)>1)e:for(;B--;)for(q=B;q--;)if(n($[B],$[q])){f=!1;break e}if(!f)return i.errors=[{keyword:"uniqueItems",dataPath:(c||"")+".enum",schemaPath:"#/properties/enum/uniqueItems",params:{i:B,j:q},message:"should NOT have duplicate items (items ## "+q+" and "+B+" are identical)"}],!1}f=h===m}if(f){var $;if(void 0===($=s.type))f=!0;else{m=h,v=h,f=!1,g=h,k=h;var L=a.enum;O=!1;for(var D=0;D<L.length;D++)if(n($,L[D])){O=!0;break}if(!O){b={keyword:"enum",dataPath:(c||"")+".type",schemaPath:"#/definitions/simpleTypes/enum",params:{allowedValues:L},message:"should be equal to one of the allowed values"};null===d?d=[b]:d.push(b),h++}O=h===k,y=h===g;if(!(f=f||y)){g=h;if(Array.isArray($))if($.length<1){b={keyword:"minItems",dataPath:(c||"")+".type",schemaPath:"#/properties/type/anyOf/1/minItems",params:{limit:1},message:"should NOT have fewer than 1 items"};null===d?d=[b]:d.push(b),h++}else{for(w=h,x=0;x<$.length;x++){k=h,j=h;var z=e[5].enum;A=!1;for(I=0;I<z.length;I++)if(n($[x],z[I])){A=!0;break}if(!A){b={keyword:"enum",dataPath:(c||"")+".type["+x+"]",schemaPath:"#/definitions/simpleTypes/enum",params:{allowedValues:z},message:"should be equal to one of the allowed values"};null===d?d=[b]:d.push(b),h++}A=h===j;if(!(O=h===k))break}if(w==h){var B,q;y=!0;if((B=$.length)>1)e:for(;B--;)for(q=B;q--;)if(n($[B],$[q])){y=!1;break e}if(!y){b={keyword:"uniqueItems",dataPath:(c||"")+".type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",params:{i:B,j:q},message:"should NOT have duplicate items (items ## "+q+" and "+B+" are identical)"};null===d?d=[b]:d.push(b),h++}}}else{b={keyword:"type",dataPath:(c||"")+".type",schemaPath:"#/properties/type/anyOf/1/type",params:{type:"array"},message:"should be array"};null===d?d=[b]:d.push(b),h++}y=h===g;f=f||y}if(!f){b={keyword:"anyOf",dataPath:(c||"")+".type",schemaPath:"#/properties/type/anyOf",params:{},message:"should match some schema in anyOf"};return null===d?d=[b]:d.push(b),h++,i.errors=d,!1}h=v,null!==d&&(v?d.length=v:d=null);f=h===m}if(f){if(void 0===s.format)f=!0;else{m=h;if("string"!=typeof s.format)return i.errors=[{keyword:"type",dataPath:(c||"")+".format",schemaPath:"#/properties/format/type",params:{type:"string"},message:"should be string"}],!1;f=h===m}if(f){if(void 0===s.contentMediaType)f=!0;else{m=h;if("string"!=typeof s.contentMediaType)return i.errors=[{keyword:"type",dataPath:(c||"")+".contentMediaType",schemaPath:"#/properties/contentMediaType/type",params:{type:"string"},message:"should be string"}],!1;f=h===m}if(f){if(void 0===s.contentEncoding)f=!0;else{m=h;if("string"!=typeof s.contentEncoding)return i.errors=[{keyword:"type",dataPath:(c||"")+".contentEncoding",schemaPath:"#/properties/contentEncoding/type",params:{type:"string"},message:"should be string"}],!1;f=h===m}if(f){if(void 0===s.if)f=!0;else{m=h;i(s.if,(c||"")+".if",s,"if",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f){if(void 0===s.then)f=!0;else{m=h;i(s.then,(c||"")+".then",s,"then",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f){if(void 0===s.else)f=!0;else{m=h;i(s.else,(c||"")+".else",s,"else",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}if(f){if(void 0===s.allOf)f=!0;else{m=h;e[3](s.allOf,(c||"")+".allOf",s,"allOf",p)||(h=(d=null===d?e[3].errors:d.concat(e[3].errors)).length);f=h===m}if(f){if(void 0===s.anyOf)f=!0;else{m=h;e[3](s.anyOf,(c||"")+".anyOf",s,"anyOf",p)||(h=(d=null===d?e[3].errors:d.concat(e[3].errors)).length);f=h===m}if(f){if(void 0===s.oneOf)f=!0;else{m=h;e[3](s.oneOf,(c||"")+".oneOf",s,"oneOf",p)||(h=(d=null===d?e[3].errors:d.concat(e[3].errors)).length);f=h===m}if(f)if(void 0===s.not)f=!0;else{m=h;i(s.not,(c||"")+".not",s,"not",p)||(h=(d=null===d?i.errors:d.concat(i.errors)).length);f=h===m}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return i.errors=d,0===h}}();a.schema={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},a.errors=null,e.exports=a},81423:(e,t,r)=>{"use strict";const o=r(33925),n=r(3288),a=r(78103),i=r(2187),{groupRedact:s,nestedRedact:c}=r(97157),l=r(86754),u=r(41753),p=o(),d=e=>e;d.restore=d;function h(e={}){const t=Array.from(new Set(e.paths||[])),r="serialize"in e&&(!1===e.serialize||"function"==typeof e.serialize)?e.serialize:JSON.stringify,o=e.remove;if(!0===o&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");const u=!0===o?void 0:"censor"in e?e.censor:"[REDACTED]",h="function"==typeof u,f=h&&u.length>1;if(0===t.length)return r||d;p({paths:t,serialize:r,censor:u});const{wildcards:m,wcLen:v,secret:g}=n({paths:t,censor:u}),y=i({secret:g,wcLen:v}),b=!("strict"in e)||e.strict;return a({secret:g,wcLen:v,serialize:r,strict:b,isCensorFct:h,censorFctTakesPath:f},l({secret:g,censor:u,compileRestore:y,serialize:r,groupRedact:s,nestedRedact:c,wildcards:m,wcLen:v}))}h.rx=u,h.validator=o,e.exports=h},97157:e=>{"use strict";function t(e,t){return null!=e&&("hasOwn"in Object?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t))}function r(e,r,o,n,a,i,s){const c=n.length,l=c-1,u=r;var p,d,h,f=-1,m=null,v=!0,g=null;if(h=p=e[r],"object"!=typeof p)return{value:null,parent:null,exists:v};for(;null!=p&&++f<c;){if(m=h,!("*"===(r=n[f])||g||"object"==typeof p&&r in p)){v=!1;break}if("*"!==r||(g=r,f===l)){if(g){const e=Object.keys(p);for(var y=0;y<e.length;y++){const c=e[y],m=p[c],v="*"===r;(v||"object"==typeof m&&null!==m&&r in m)&&(h=v?m:m[r],d=f!==l?h:i?s?a(h,[...o,u,...n]):a(h):a,v?p[c]=d:m[r]=void 0===d&&void 0!==a||t(m,r)&&d===h?m[r]:d)}g=null}else h=p[r],d=f!==l?h:i?s?a(h,[...o,u,...n]):a(h):a,p[r]=t(p,r)&&d===h||void 0===d&&void 0!==a?p[r]:d,p=p[r];if("object"!=typeof p)break}}return{value:h,parent:m,exists:v}}function o(e,t){for(var r=-1,o=t.length,n=e;null!=n&&++r<o;)n=n[t[r]];return n}e.exports={groupRedact:function(e,t,r,n,a){const i=o(e,t);if(null==i)return{keys:null,values:null,target:null,flat:!0};const s=Object.keys(i),c=s.length,l=t.length,u=a?[...t]:void 0,p=new Array(c);for(var d=0;d<c;d++){const e=s[d];p[d]=i[e],a?(u[l]=e,i[e]=r(i[e],u)):i[e]=n?r(i[e]):r}return{keys:s,values:p,target:i,flat:!0}},groupRestore:function({keys:e,values:t,target:r}){if(null==r)return;const o=e.length;for(var n=0;n<o;n++){const o=e[n];r[o]=t[n]}},nestedRedact:function(e,t,n,a,i,s,c){const l=o(t,n);if(null==l)return;const u=Object.keys(l),p=u.length;for(var d=0;d<p;d++){const t=u[d],{value:o,parent:p,exists:h}=r(l,t,n,a,i,s,c);!0===h&&null!==p&&e.push({key:a[a.length-1],target:p,value:o})}return e},nestedRestore:function(e){const r=e.length;for(var o=0;o<r;o++){const{key:r,target:a,value:i}=e[o];if(t(a,r)&&(a[r]=i),"object"==typeof a){const e=Object.keys(a);for(var n=0;n<e.length;n++){const o=e[n],s=a[o];t(s,r)&&(s[r]=i)}}}}}},3288:(e,t,r)=>{"use strict";const o=r(41753);e.exports=function({paths:e}){const t=[];var r=0;const n=e.reduce((function(e,n,a){var i=n.match(o).map((e=>e.replace(/'|"|`/g,"")));const s="["===n[0],c=(i=i.map((e=>"["===e[0]?e.substr(1,e.length-2):e))).indexOf("*");if(c>-1){const e=i.slice(0,c),o=e.join("."),n=i.slice(c+1,i.length),a=n.length>0;r++,t.push({before:e,beforeStr:o,after:n,nested:a})}else e[n]={path:i,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(n),leadingBracket:s};return e}),{});return{wildcards:t,wcLen:r,secret:n}}},78103:(e,t,r)=>{"use strict";const o=r(41753);e.exports=function({secret:e,serialize:t,wcLen:r,strict:n,isCensorFct:a,censorFctTakesPath:i},s){const c=Function("o",`\n if (typeof o !== 'object' || o == null) {\n ${function(e,t){return!0===e?"throw Error('fast-redact: primitives cannot be redacted')":!1===t?"return o":"return this.serialize(o)"}(n,t)}\n }\n const { censor, secret } = this\n ${function(e,t,r){return Object.keys(e).map((n=>{const{escPath:a,leadingBracket:i,path:s}=e[n],c=i?1:0,l=i?"":".",u=[];for(var p;null!==(p=o.exec(n));){const[,e]=p,{index:t,input:r}=p;t>c&&u.push(r.substring(0,t-(e?0:1)))}var d=u.map((e=>`o${l}${e}`)).join(" && ");0===d.length?d+=`o${l}${n} != null`:d+=` && o${l}${n} != null`;const h=`\n switch (true) {\n ${u.reverse().map((e=>`\n case o${l}${e} === censor:\n secret[${a}].circle = ${JSON.stringify(e)}\n break\n `)).join("\n")}\n }\n `,f=r?`val, ${JSON.stringify(s)}`:"val";return`\n if (${d}) {\n const val = o${l}${n}\n if (val === censor) {\n secret[${a}].precensored = true\n } else {\n secret[${a}].val = val\n o${l}${n} = ${t?`censor(${f})`:"censor"}\n ${h}\n }\n }\n `})).join("\n")}(e,a,i)}\n this.compileRestore()\n ${function(e,t,r){return!0===e?`\n {\n const { wildcards, wcLen, groupRedact, nestedRedact } = this\n for (var i = 0; i < wcLen; i++) {\n const { before, beforeStr, after, nested } = wildcards[i]\n if (nested === true) {\n secret[beforeStr] = secret[beforeStr] || []\n nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r})\n } else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r})\n }\n }\n `:""}(r>0,a,i)}\n ${function(e){return!1===e?"return o":"\n var s = this.serialize(o)\n this.restore(o)\n return s\n "}(t)}\n `).bind(s);!1===t&&(c.restore=e=>s.restore(e));return c}},2187:(e,t,r)=>{"use strict";const{groupRestore:o,nestedRestore:n}=r(97157);e.exports=function({secret:e,wcLen:t}){return function(){if(this.restore)return;const r=Object.keys(e),a=function(e,t){return t.map((t=>{const{circle:r,escPath:o,leadingBracket:n}=e[t];return`\n if (secret[${o}].val !== undefined) {\n try { ${r?`o.${r} = secret[${o}].val`:`o${n?"":"."}${t} = secret[${o}].val`} } catch (e) {}\n ${`secret[${o}].val = undefined`}\n }\n `})).join("")}(e,r),i=t>0,s=i?{secret:e,groupRestore:o,nestedRestore:n}:{secret:e};this.restore=Function("o",function(e,t,r){return`\n const secret = this.secret\n ${!0===r?`\n const keys = Object.keys(secret)\n const len = keys.length\n for (var i = len - 1; i >= ${t.length}; i--) {\n const k = keys[i]\n const o = secret[k]\n if (o.flat === true) this.groupRestore(o)\n else this.nestedRestore(o)\n secret[k] = null\n }\n `:""}\n ${e}\n return o\n `}(a,r,i)).bind(s)}}},41753:e=>{"use strict";e.exports=/[^.[\]]+|\[((?:.)*?)\]/g},86754:e=>{"use strict";e.exports=function(e){const{secret:t,censor:r,compileRestore:o,serialize:n,groupRedact:a,nestedRedact:i,wildcards:s,wcLen:c}=e,l=[{secret:t,censor:r,compileRestore:o}];!1!==n&&l.push({serialize:n});c>0&&l.push({groupRedact:a,nestedRedact:i,wildcards:s,wcLen:c});return Object.assign(...l)}},33925:(e,t,r)=>{"use strict";const{createContext:o,runInContext:n}=r(69154);e.exports=function(e={}){const{ERR_PATHS_MUST_BE_STRINGS:t=(()=>"fast-redact - Paths must be (non-empty) strings"),ERR_INVALID_PATH:r=(e=>`fast-redact – Invalid path (${e})`)}=e;return function({paths:e}){e.forEach((e=>{if("string"!=typeof e)throw Error(t());try{if(/〇/.test(e))throw Error();const t=new Proxy({},{get:()=>t,set:()=>{throw Error()}}),r=("["===e[0]?"":".")+e.replace(/^\*/,"〇").replace(/\.\*/g,".〇").replace(/\[\*\]/g,"[〇]");if(/\n|\r|;/.test(r))throw Error();if(/\/\*/.test(r))throw Error();n(`\n (function () {\n 'use strict'\n o${r}\n if ([o${r}].length !== 1) throw Error()\n })()\n `,o({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}}))}}},78463:e=>{e.exports=i,i.default=i,i.stable=u,i.stableStringify=u;var t="[...]",r="[Circular]",o=[],n=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(e,t,r,i){var s;void 0===i&&(i=a()),c(e,"",0,[],void 0,0,i);try{s=0===n.length?JSON.stringify(e,t,r):JSON.stringify(e,d(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function s(e,t,r,a){var i=Object.getOwnPropertyDescriptor(a,r);void 0!==i.get?i.configurable?(Object.defineProperty(a,r,{value:e}),o.push([a,r,t,i])):n.push([t,r,e]):(a[r]=e,o.push([a,r,t]))}function c(e,o,n,a,i,l,u){var p;if(l+=1,"object"==typeof e&&null!==e){for(p=0;p<a.length;p++)if(a[p]===e)return void s(r,e,o,i);if(void 0!==u.depthLimit&&l>u.depthLimit)return void s(t,e,o,i);if(void 0!==u.edgesLimit&&n+1>u.edgesLimit)return void s(t,e,o,i);if(a.push(e),Array.isArray(e))for(p=0;p<e.length;p++)c(e[p],p,p,a,e,l,u);else{var d=Object.keys(e);for(p=0;p<d.length;p++){var h=d[p];c(e[h],h,p,a,e,l,u)}}a.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function u(e,t,r,i){void 0===i&&(i=a());var s,c=p(e,"",0,[],void 0,0,i)||e;try{s=0===n.length?JSON.stringify(c,t,r):JSON.stringify(c,d(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function p(e,n,a,i,c,u,d){var h;if(u+=1,"object"==typeof e&&null!==e){for(h=0;h<i.length;h++)if(i[h]===e)return void s(r,e,n,c);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&u>d.depthLimit)return void s(t,e,n,c);if(void 0!==d.edgesLimit&&a+1>d.edgesLimit)return void s(t,e,n,c);if(i.push(e),Array.isArray(e))for(h=0;h<e.length;h++)p(e[h],h,h,i,e,u,d);else{var f={},m=Object.keys(e).sort(l);for(h=0;h<m.length;h++){var v=m[h];p(e[v],v,h,i,e,u,d),f[v]=e[v]}if(void 0===c)return f;o.push([c,n,e]),c[n]=f}i.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var o=0;o<n.length;o++){var a=n[o];if(a[1]===t&&a[0]===r){r=a[2],n.splice(o,1);break}}return e.call(this,t,r)}}},53766:(e,t,r)=>{const o=Symbol("SemVer ANY");class n{static get ANY(){return o}constructor(e,t){if(t=a(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===o?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=o}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===o||e===o)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&i||s||l}}e.exports=n;const a=r(79065),{re:i,t:s}=r(11076),c=r(89017),l=r(43614),u=r(23586),p=r(20873)},20873:(e,t,r)=>{class o{constructor(e,t){if(t=a(t),e instanceof o)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new o(e.raw,t);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const o=this.options.loose,a=o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(a,T(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),s("comparator trim",e);let c=(e=(e=(e=e.replace(l[u.TILDETRIM],d)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>P(e,this.options)));o&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const m=new Map,v=c.map((e=>new i(e,this.options)));for(const e of v){if(f(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const y=[...m.values()];return n.set(t,y),y}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}e.exports=o;const n=new(r(69749))({max:1e3}),a=r(79065),i=r(53766),s=r(43614),c=r(23586),{re:l,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=r(11076),f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,v=(e,t)=>{let r=!0;const o=e.slice();let n=o.pop();for(;r&&o.length;)r=o.every((e=>n.intersects(e,t))),n=o.pop();return r},g=(e,t)=>(s("comp",e,t),e=x(e,t),s("caret",e),e=b(e,t),s("tildes",e),e=_(e,t),s("xrange",e),e=S(e,t),s("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,o,n,a)=>{let i;return s("tilde",e,t,r,o,n,a),y(r)?i="":y(o)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:y(n)?i=`>=${r}.${o}.0 <${r}.${+o+1}.0-0`:a?(s("replaceTilde pr",a),i=`>=${r}.${o}.${n}-${a} <${r}.${+o+1}.0-0`):i=`>=${r}.${o}.${n} <${r}.${+o+1}.0-0`,s("tilde return",i),i}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{s("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET],o=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,a,i)=>{let c;return s("caret",e,t,r,n,a,i),y(r)?c="":y(n)?c=`>=${r}.0.0${o} <${+r+1}.0.0-0`:y(a)?c="0"===r?`>=${r}.${n}.0${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${o} <${+r+1}.0.0-0`:i?(s("replaceCaret pr",i),c="0"===r?"0"===n?`>=${r}.${n}.${a}-${i} <${r}.${n}.${+a+1}-0`:`>=${r}.${n}.${a}-${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${a}-${i} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===n?`>=${r}.${n}.${a}${o} <${r}.${n}.${+a+1}-0`:`>=${r}.${n}.${a}${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${a} <${+r+1}.0.0-0`),s("caret return",c),c}))},_=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,o,n,a,i,c)=>{s("xRange",e,r,o,n,a,i,c);const l=y(n),u=l||y(a),p=u||y(i),d=p;return"="===o&&d&&(o=""),c=t.includePrerelease?"-0":"",l?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(a=0),i=0,">"===o?(o=">=",u?(n=+n+1,a=0,i=0):(a=+a+1,i=0)):"<="===o&&(o="<",u?n=+n+1:a=+a+1),"<"===o&&(c="-0"),r=`${o+n}.${a}.${i}${c}`):u?r=`>=${n}.0.0${c} <${+n+1}.0.0-0`:p&&(r=`>=${n}.${a}.0${c} <${n}.${+a+1}.0-0`),s("xRange return",r),r}))},S=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),P=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,o,n,a,i,s,c,l,u,p,d,h)=>`${r=y(o)?"":y(n)?`>=${o}.0.0${e?"-0":""}`:y(a)?`>=${o}.${n}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:`<=${c}`}`.trim(),O=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==i.ANY&&e[r].semver.prerelease.length>0){const o=e[r].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}},23586:(e,t,r)=>{const o=r(43614),{MAX_LENGTH:n,MAX_SAFE_INTEGER:a}=r(9128),{re:i,t:s}=r(11076),c=r(79065),{compareIdentifiers:l}=r(84281);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);o("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(o("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],n=e.prerelease[t];if(o("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],n=e.build[t];if(o("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},68556:(e,t,r)=>{const o=r(97574);e.exports=(e,t)=>{const r=o(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},89017:(e,t,r)=>{const o=r(82219),n=r(65289),a=r(52042),i=r(39203),s=r(17277),c=r(78878);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return o(e,r,l);case"!=":return n(e,r,l);case">":return a(e,r,l);case">=":return i(e,r,l);case"<":return s(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},79220:(e,t,r)=>{const o=r(23586),n=r(97574),{re:a,t:i}=r(11076);e.exports=(e,t)=>{if(e instanceof o)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=a[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),a[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;a[i.COERCERTL].lastIndex=-1}else r=e.match(a[i.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},63459:(e,t,r)=>{const o=r(23586);e.exports=(e,t,r)=>{const n=new o(e,r),a=new o(t,r);return n.compare(a)||n.compareBuild(a)}},71217:(e,t,r)=>{const o=r(64082);e.exports=(e,t)=>o(e,t,!0)},64082:(e,t,r)=>{const o=r(23586);e.exports=(e,t,r)=>new o(e,r).compare(new o(t,r))},14842:(e,t,r)=>{const o=r(97574),n=r(82219);e.exports=(e,t)=>{if(n(e,t))return null;{const r=o(e),n=o(t),a=r.prerelease.length||n.prerelease.length,i=a?"pre":"",s=a?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return i+e;return s}}},82219:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>0===o(e,t,r)},52042:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>o(e,t,r)>0},39203:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>o(e,t,r)>=0},66781:(e,t,r)=>{const o=r(23586);e.exports=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new o(e instanceof o?e.version:e,r).inc(t,n).version}catch(e){return null}}},17277:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>o(e,t,r)<0},78878:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>o(e,t,r)<=0},91404:(e,t,r)=>{const o=r(23586);e.exports=(e,t)=>new o(e,t).major},7904:(e,t,r)=>{const o=r(23586);e.exports=(e,t)=>new o(e,t).minor},65289:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>0!==o(e,t,r)},97574:(e,t,r)=>{const{MAX_LENGTH:o}=r(9128),{re:n,t:a}=r(11076),i=r(23586),s=r(79065);e.exports=(e,t)=>{if(t=s(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>o)return null;if(!(t.loose?n[a.LOOSE]:n[a.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},89671:(e,t,r)=>{const o=r(23586);e.exports=(e,t)=>new o(e,t).patch},13727:(e,t,r)=>{const o=r(97574);e.exports=(e,t)=>{const r=o(e,t);return r&&r.prerelease.length?r.prerelease:null}},76580:(e,t,r)=>{const o=r(64082);e.exports=(e,t,r)=>o(t,e,r)},81723:(e,t,r)=>{const o=r(63459);e.exports=(e,t)=>e.sort(((e,r)=>o(r,e,t)))},20988:(e,t,r)=>{const o=r(20873);e.exports=(e,t,r)=>{try{t=new o(t,r)}catch(e){return!1}return t.test(e)}},26085:(e,t,r)=>{const o=r(63459);e.exports=(e,t)=>e.sort(((e,r)=>o(e,r,t)))},62699:(e,t,r)=>{const o=r(97574);e.exports=(e,t)=>{const r=o(e,t);return r?r.version:null}},84675:(e,t,r)=>{const o=r(11076);e.exports={re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:r(9128).SEMVER_SPEC_VERSION,SemVer:r(23586),compareIdentifiers:r(84281).compareIdentifiers,rcompareIdentifiers:r(84281).rcompareIdentifiers,parse:r(97574),valid:r(62699),clean:r(68556),inc:r(66781),diff:r(14842),major:r(91404),minor:r(7904),patch:r(89671),prerelease:r(13727),compare:r(64082),rcompare:r(76580),compareLoose:r(71217),compareBuild:r(63459),sort:r(26085),rsort:r(81723),gt:r(52042),lt:r(17277),eq:r(82219),neq:r(65289),gte:r(39203),lte:r(78878),cmp:r(89017),coerce:r(79220),Comparator:r(53766),Range:r(20873),satisfies:r(20988),toComparators:r(75905),maxSatisfying:r(93230),minSatisfying:r(85836),minVersion:r(58767),validRange:r(81248),outside:r(81437),gtr:r(54493),ltr:r(90244),intersects:r(45870),simplifyRange:r(2867),subset:r(14258)}},9128:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},43614:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},84281:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const o=t.test(e),n=t.test(r);return o&&n&&(e=+e,r=+r),e===r?0:o&&!n?-1:n&&!o?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},79065:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},11076:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:o}=r(9128),n=r(43614),a=(t=e.exports={}).re=[],i=t.src=[],s=t.t={};let c=0;const l=(e,t,r)=>{const o=c++;n(e,o,t),s[e]=o,i[o]=t,a[o]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),l("FULL",`^${i[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),l("LOOSE",`^${i[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),l("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),l("COERCERTL",i[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},54493:(e,t,r)=>{const o=r(81437);e.exports=(e,t,r)=>o(e,t,">",r)},45870:(e,t,r)=>{const o=r(20873);e.exports=(e,t,r)=>(e=new o(e,r),t=new o(t,r),e.intersects(t))},90244:(e,t,r)=>{const o=r(81437);e.exports=(e,t,r)=>o(e,t,"<",r)},93230:(e,t,r)=>{const o=r(23586),n=r(20873);e.exports=(e,t,r)=>{let a=null,i=null,s=null;try{s=new n(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(a&&-1!==i.compare(e)||(a=e,i=new o(a,r)))})),a}},85836:(e,t,r)=>{const o=r(23586),n=r(20873);e.exports=(e,t,r)=>{let a=null,i=null,s=null;try{s=new n(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(a&&1!==i.compare(e)||(a=e,i=new o(a,r)))})),a}},58767:(e,t,r)=>{const o=r(23586),n=r(20873),a=r(52042);e.exports=(e,t)=>{e=new n(e,t);let r=new o("0.0.0");if(e.test(r))return r;if(r=new o("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let i=null;n.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!a(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||r&&!a(r,i)||(r=i)}return r&&e.test(r)?r:null}},81437:(e,t,r)=>{const o=r(23586),n=r(53766),{ANY:a}=n,i=r(20873),s=r(20988),c=r(52042),l=r(17277),u=r(78878),p=r(39203);e.exports=(e,t,r,d)=>{let h,f,m,v,g;switch(e=new o(e,d),t=new i(t,d),r){case">":h=c,f=u,m=l,v=">",g=">=";break;case"<":h=l,f=p,m=c,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const o=t.set[r];let i=null,s=null;if(o.forEach((e=>{e.semver===a&&(e=new n(">=0.0.0")),i=i||e,s=s||e,h(e.semver,i.semver,d)?i=e:m(e.semver,s.semver,d)&&(s=e)})),i.operator===v||i.operator===g)return!1;if((!s.operator||s.operator===v)&&f(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},2867:(e,t,r)=>{const o=r(20988),n=r(64082);e.exports=(e,t,r)=>{const a=[];let i=null,s=null;const c=e.sort(((e,t)=>n(e,t,r)));for(const e of c){o(e,t,r)?(s=e,i||(i=e)):(s&&a.push([i,s]),s=null,i=null)}i&&a.push([i,null]);const l=[];for(const[e,t]of a)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const u=l.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length<p.length?u:t}},14258:(e,t,r)=>{const o=r(20873),n=r(53766),{ANY:a}=n,i=r(20988),s=r(64082),c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===a){if(1===t.length&&t[0].semver===a)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===a){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const o=new Set;let c,p,d,h,f,m,v;for(const t of e)">"===t.operator||">="===t.operator?c=l(c,t,r):"<"===t.operator||"<="===t.operator?p=u(p,t,r):o.add(t.semver);if(o.size>1)return null;if(c&&p){if(d=s(c.semver,p.semver,r),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==p.operator))return null}for(const e of o){if(c&&!i(e,String(c),r))return null;if(p&&!i(e,String(p),r))return null;for(const o of t)if(!i(e,String(o),r))return!1;return!0}let g=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,y=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver;g&&1===g.prerelease.length&&"<"===p.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,c)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=l(c,e,r),h===e&&h!==c)return!1}else if(">="===c.operator&&!i(c.semver,String(e),r))return!1;if(p)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(f=u(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!i(p.semver,String(e),r))return!1;if(!e.operator&&(p||c)&&0!==d)return!1}return!(c&&m&&!p&&0!==d)&&(!(p&&v&&!c&&0!==d)&&(!y&&!g))},l=(e,t,r)=>{if(!e)return t;const o=s(e.semver,t.semver,r);return o>0?e:o<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,r)=>{if(!e)return t;const o=s(e.semver,t.semver,r);return o<0?e:o>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new o(e,r),t=new o(t,r);let n=!1;e:for(const o of e.set){for(const e of t.set){const t=c(o,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}},75905:(e,t,r)=>{const o=r(20873);e.exports=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},81248:(e,t,r)=>{const o=r(20873);e.exports=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}}},16697:(e,t,r)=>{"use strict";var o=r(69027);function n(e,t,r){if("function"==typeof e&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=o(i),s=null,c=null,l=0,u=null,p={push:function(r,o){var i=n.get();i.context=e,i.release=d,i.value=r,i.callback=o||a,i.errorHandler=u,l===p.concurrency||p.paused?c?(c.next=i,c=i):(s=i,c=i,p.saturated()):(l++,t.call(e,i.value,i.worked))},drain:a,saturated:a,pause:function(){p.paused=!0},paused:!1,concurrency:r,running:function(){return l},resume:function(){if(!p.paused)return;p.paused=!1;for(var e=0;e<p.concurrency;e++)l++,d()},idle:function(){return 0===l&&0===p.length()},length:function(){var e=s,t=0;for(;e;)e=e.next,t++;return t},getQueue:function(){var e=s,t=[];for(;e;)t.push(e.value),e=e.next;return t},unshift:function(r,o){var i=n.get();i.context=e,i.release=d,i.value=r,i.callback=o||a,l===p.concurrency||p.paused?s?(i.next=s,s=i):(s=i,c=i,p.saturated()):(l++,t.call(e,i.value,i.worked))},empty:a,kill:function(){s=null,c=null,p.drain=a},killAndDrain:function(){s=null,c=null,p.drain(),p.drain=a},error:function(e){u=e}};return p;function d(r){r&&n.release(r);var o=s;o?p.paused?l--:(c===s&&(c=null),s=o.next,o.next=null,t.call(e,o.value,o.worked),null===c&&p.empty()):0==--l&&p.drain()}}function a(){}function i(){this.value=null,this.callback=a,this.next=null,this.release=a,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,r){var o=e.callback,n=e.errorHandler,i=e.value;e.value=null,e.callback=a,e.errorHandler&&n(t,i),o.call(e.context,t,r),e.release(e)}}e.exports=n,e.exports.promise=function(e,t,r){"function"==typeof e&&(r=t,t=e,e=null);var o=n(e,(function(e,r){t.call(this,e).then((function(e){r(null,e)}),r)}),r),i=o.push,s=o.unshift;return o.push=function(e){var t=new Promise((function(t,r){i(e,(function(e,o){e?r(e):t(o)}))}));return t.catch(a),t},o.unshift=function(e){var t=new Promise((function(t,r){s(e,(function(e,o){e?r(e):t(o)}))}));return t.catch(a),t},o.drained=function(){var e=o.drain;return new Promise((function(t){o.drain=function(){e(),t()}}))},o}},22929:(e,t,r)=>{"use strict";const o=r(42613),n=r(58611),a=r(57429),i=r(81940),{flattenNode:s,compressFlattenedNode:c,prettyPrintFlattenedNode:l,prettyPrintRoutesArray:u}=r(81755),p=r(28729),d=r(5059),h=p.prototype.types,f=n.METHODS,m=/^https?:\/\/.*?\//,v=/(\/:[^/()]*?)\?(\/?)/;if(!i(m))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!i(v))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function g(e){if(!(this instanceof g))return new g(e);(e=e||{}).defaultRoute?(o("function"==typeof e.defaultRoute,"The default route must be a function"),this.defaultRoute=e.defaultRoute):this.defaultRoute=null,e.onBadUrl?(o("function"==typeof e.onBadUrl,"The bad url handler must be a function"),this.onBadUrl=e.onBadUrl):this.onBadUrl=null,e.buildPrettyMeta?(o("function"==typeof e.buildPrettyMeta,"buildPrettyMeta must be a function"),this.buildPrettyMeta=e.buildPrettyMeta):this.buildPrettyMeta=w,this.caseSensitive=void 0===e.caseSensitive||e.caseSensitive,this.ignoreTrailingSlash=e.ignoreTrailingSlash||!1,this.maxParamLength=e.maxParamLength||100,this.allowUnsafeRegex=e.allowUnsafeRegex||!1,this.constrainer=new d(e.constraints),this.trees={},this.routes=[]}for(var y in g.prototype.on=function(e,t,r,n,a){"function"==typeof r&&(void 0!==n&&(a=n),n=r,r={}),o("string"==typeof t,"Path should be a string"),o(t.length>0,"The path could not be empty"),o("/"===t[0]||"*"===t[0],"The first character of a path should be `/` or `*`"),o("function"==typeof n,"Handler should be a function");const i=t.match(v);if(i){o(t.length===i.index+i[0].length,"Optional Parameter needs to be the last parameter of the path");const s=t.replace(v,"$1$2"),c=t.replace(v,"$2");return this.on(e,s,r,n,a),void this.on(e,c,r,n,a)}this._on(e,t,r,n,a),this.ignoreTrailingSlash&&"/"!==t&&!t.endsWith("*")&&(t.endsWith("/")?this._on(e,t.slice(0,-1),r,n,a):this._on(e,t+"/",r,n,a))},g.prototype._on=function(e,t,r,n,a){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this._on(e[s],t,r,n,a);return}o("string"==typeof e,"Method should be a string"),o(-1!==f.indexOf(e),`Method '${e}' is not an http method.`);let c={};void 0!==r.constraints&&(o("object"==typeof r.constraints&&null!==r.constraints,"Constraints should be an object"),0!==Object.keys(r.constraints).length&&(c=r.constraints)),this.constrainer.validateConstraints(c),this.constrainer.noteUsage(c);const l=[];var u=0;this.routes.push({method:e,path:t,opts:r,handler:n,store:a});for(var p=0,d=t.length;p<d;p++)if(58===t.charCodeAt(p)){if(p!==d-1&&58===t.charCodeAt(p+1)){d=(t=t.slice(0,p)+t.slice(p+1)).length;continue}var m=h.PARAM;u=p+1;var v=t.slice(0,p);!1===this.caseSensitive&&(v=v.toLowerCase()),this._insert(e,v,h.STATIC,null,null,null,null,c);for(var g=!1;p<d&&47!==t.charCodeAt(p);){if(g=g||"("===t[p]){p=b(t,p)+1;break}if(45===t.charCodeAt(p)||46===t.charCodeAt(p))break;p++}!g||p!==d&&47!==t.charCodeAt(p)?p<d&&47!==t.charCodeAt(p)&&(m=h.MULTI_PARAM):m=h.REGEX;var y=t.slice(u,p),w=g?y.slice(y.indexOf("("),p):null;if(g&&(w=new RegExp(w),this.allowUnsafeRegex||o(i(w),`The regex '${w.toString()}' is not safe!`)),l.push(y.slice(0,g?y.indexOf("("):p)),t=t.slice(0,u)+t.slice(p),(p=u)===(d=t.length)){var x=t.slice(0,p);return!1===this.caseSensitive&&(x=x.toLowerCase()),this._insert(e,x,m,l,n,a,w,c)}v=t.slice(0,p),!1===this.caseSensitive&&(v=v.toLowerCase()),this._insert(e,v,m,l,null,null,w,c),p--}else if(42===t.charCodeAt(p))return this._insert(e,t.slice(0,p),h.STATIC,null,null,null,null,c),l.push("*"),this._insert(e,t.slice(0,d),h.MATCH_ALL,l,n,a,null,c);!1===this.caseSensitive&&(t=t.toLowerCase()),this._insert(e,t,h.STATIC,l,n,a,null,c)},g.prototype._insert=function(e,t,r,n,a,i,s,c){const l=t;var u="",d=0,h=0,f=0,m=0,v=null,g=this.trees[e];for(void 0===g&&(g=new p({method:e,constrainer:this.constrainer}),this.trees[e]=g);;){for(h=(u=g.prefix).length,f=0,m=(d=t.length)<h?d:h;f<m&&t[f]===u[f];)f++;if(f<h)v=g.split(f),f===d?(o(!g.getHandler(c),`Method '${e}' already declared for route '${l}' with constraints '${JSON.stringify(c)}'`),g.addHandler(a,n,i,c),g.kind=r):((v=new p({method:e,prefix:t.slice(f),kind:r,handlers:null,regex:s,constrainer:this.constrainer})).addHandler(a,n,i,c),g.addChild(v));else if(f<d){if(t=t.slice(f),v=g.findByLabel(t)){g=v;continue}(v=new p({method:e,prefix:t,kind:r,handlers:null,regex:s,constrainer:this.constrainer})).addHandler(a,n,i,c),g.addChild(v)}else a&&(o(!g.getHandler(c),`Method '${e}' already declared for route '${l}' with constraints '${JSON.stringify(c)}'`),g.addHandler(a,n,i,c));return}},g.prototype.reset=function(){this.trees={},this.routes=[]},g.prototype.off=function(e,t){var r=this;if(Array.isArray(e))return e.map((function(e){return r.off(e,t)}));o("string"==typeof e,"Method should be a string"),o(-1!==f.indexOf(e),`Method '${e}' is not an http method.`),o("string"==typeof t,"Path should be a string"),o(t.length>0,"The path could not be empty"),o("/"===t[0]||"*"===t[0],"The first character of a path should be `/` or `*`");const n=t.match(v);if(n){o(t.length===n.index+n[0].length,"Optional Parameter needs to be the last parameter of the path");const r=t.replace(v,"$1$2"),a=t.replace(v,"$2");return this.off(e,r),void this.off(e,a)}const a=this.ignoreTrailingSlash;var i=r.routes.filter((function(r){if(!a)return!(e===r.method&&t===r.path);if(t.endsWith("/")){const o=t===r.path||t.slice(0,-1)===r.path;return!(e===r.method&&o)}const o=t===r.path||t+"/"===r.path;return!(e===r.method&&o)}));a&&(i=i.filter((function(e,t,r){return e.path.endsWith("/")&&t<r.length-1?e.path.slice(0,-1)!==r[t+1].path:!(!1===e.path.endsWith("/")&&t<r.length-1)||e.path+"/"!==r[t+1].path}))),r.reset(),i.forEach((function(e){r.on(e.method,e.path,e.opts,e.handler,e.store)}))},g.prototype.lookup=function(e,t,r){var o=this.find(e.method,function(e){for(var t=0,r=e.length;t<r;t++){var o=e.charCodeAt(t);if(63===o||59===o||35===o)return e.slice(0,t)}return e}(e.url),this.constrainer.deriveConstraints(e,r));return null===o?this._defaultRoute(e,t,r):void 0===r?o.handler(e,t,o.params,o.store):o.handler.call(r,e,t,o.params,o.store)},g.prototype.find=function(e,t,r){var o=this.trees[e];if(void 0===o)return null;47!==t.charCodeAt(0)&&(t=t.replace(m,"/"));var n=t,i=t.length;!1===this.caseSensitive&&(t=t.toLowerCase());for(var s=this.maxParamLength,c=null,l=0,u=null,p=0,d=null,f=0,v=0;;){var g=t.length,y=o.prefix;if(0===g||t===y){var b=void 0!==r?o.getMatchingHandler(r):o.unconstrainedHandler;if(null!=b){var w={};if(b.paramsLength>0){var x=b.params;for(f=0;f<b.paramsLength;f++)w[x[f]]=d[f]}return{handler:b.handler,params:w,store:b.store}}}var k=y.length,_=0,E=t;for(f=g<k?g:k;_<f&&t.charCodeAt(_)===y.charCodeAt(_);)_++;_===k&&(g=(t=t.slice(_)).length,v+=_);var S=o.findMatchingChild(r,t);if(null===S){if(null===(S=o.parametricBrother))return this._getWildcardNode(c,n,l,r,d);var P=47===E.charCodeAt(0)?E:"/"+E;if(-1===n.indexOf(P)){var T=n.slice(0,i-g);E=T.slice(T.lastIndexOf("/")+1,T.length)+t}v-=E.length-t.length,t=E,g=E.length,_=k}var O=S.kind;if(O!==h.STATIC){if(_!==k)return this._getWildcardNode(c,n,l,r,d);if(null!==o.wildcardChild&&(c=o.wildcardChild,l=g),O!==h.PARAM)if(O!==h.MATCH_ALL)if(O!==h.REGEX)if(O!==h.MULTI_PARAM)c=null;else{if(o=S,f=0,null!==S.regex){var j=t.match(S.regex);if(null===j)return null;f=j[1].length}else{for(;f<g&&47!==t.charCodeAt(f)&&45!==t.charCodeAt(f)&&46!==t.charCodeAt(f);)f++;if(f>s)return null}if(null===(u=a(n.slice(v,v+f))))return null!==this.onBadUrl?this._onBadUrl(n.slice(v,v+f)):null;d||(d=[]),d[p++]=u,t=t.slice(f),v+=f}else{if(o=S,-1===(f=t.indexOf("/"))&&(f=g),f>s)return null;if(null===(u=a(n.slice(v,v+f))))return null!==this.onBadUrl?this._onBadUrl(n.slice(v,v+f)):null;if(!S.regex.test(u))return null;d||(d=[]),d[p++]=u,t=t.slice(f),v+=f}else{if(null===(u=a(n.slice(v))))return null!==this.onBadUrl?this._onBadUrl(n.slice(v)):null;d||(d=[]),d[p]=u,o=S,t=""}else{if(o=S,-1===(f=t.indexOf("/"))&&(f=g),f>s)return null;if(null===(u=a(n.slice(v,v+f))))return null!==this.onBadUrl?this._onBadUrl(n.slice(v,v+f)):null;d||(d=[]),d[p++]=u,t=t.slice(f),v+=f}}else null!==o.wildcardChild&&(c=o.wildcardChild,l=g),o=S}},g.prototype._getWildcardNode=function(e,t,r,o,n){if(null===e)return null;var i=a(t.slice(-r));if(null===i)return null!==this.onBadUrl?this._onBadUrl(t.slice(-r)):null;var s=void 0!==o?e.getMatchingHandler(o):e.unconstrainedHandler;if(null!=s){var c={};if(s.paramsLength>0&&null!==n){var l=s.params;for(y=0;y<s.paramsLength;y++)c[l[y]]=n[y]}return c["*"]=i,{handler:s.handler,params:c,store:s.store}}return null},g.prototype._defaultRoute=function(e,t,r){if(null!==this.defaultRoute)return void 0===r?this.defaultRoute(e,t):this.defaultRoute.call(r,e,t);t.statusCode=404,t.end()},g.prototype._onBadUrl=function(e){const t=this.onBadUrl;return{handler:(r,o,n)=>t(e,r,o),params:{},store:null}},g.prototype.prettyPrint=function(e={}){if(e.commonPrefix=void 0===e.commonPrefix||e.commonPrefix,!e.commonPrefix)return u.call(this,this.routes,e);const t={prefix:"/",nodes:[],children:{}};for(const e of Object.values(this.trees))e&&s(t,e);return c(t),l.call(this,t,"",!0,e)},n.METHODS){if(!n.METHODS.hasOwnProperty(y))continue;const e=n.METHODS[y],t=e.toLowerCase();if(g.prototype[t])throw new Error("Method already exists: "+t);g.prototype[t]=function(t,r,o){return this.on(e,t,r,o)}}function b(e,t){for(var r=1;t<e.length;)if("\\"!==e[++t]){if(")"===e[t]?r--:"("===e[t]&&r++,!r)return t}else t++;throw new TypeError('Invalid regexp expression in "'+e+'"')}function w(e){return e&&e.store?Object.assign({},e.store):{}}g.prototype.all=function(e,t,r){this.on(f,e,t,r)},e.exports=g},5059:(e,t,r)=>{"use strict";const o=r(81966),n=r(4534),a=r(42613);e.exports=class{constructor(e){if(this.strategies={version:o,host:n},this.strategiesInUse=new Set,e)for(var t,r=Object.keys(e),i=0;i<r.length;i++)t=e[r[i]],a("string"==typeof t.name&&""!==t.name,"strategy.name is required."),a(t.storage&&"function"==typeof t.storage,"strategy.storage function is required."),a(t.deriveConstraint&&"function"==typeof t.deriveConstraint,"strategy.deriveConstraint function is required."),t.isCustom=!0,this.strategies[t.name]=t,t.mustMatchWhenDerived&&this.noteUsage({[r[i]]:t})}deriveConstraints(e,t){}noteUsage(e){if(e){const t=this.strategiesInUse.size;for(const t in e)this.strategiesInUse.add(t);t!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(e){if(!this.strategies[e])throw new Error(`No strategy registered for constraint key ${e}`);return this.strategies[e].storage()}validateConstraints(e){for(const t in e){const r=e[t];if(void 0===r)throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");const o=this.strategies[t];if(!o)throw new Error(`No strategy registered for constraint key ${t}`);o.validate&&o.validate(r)}}_buildDeriveConstraints(){if(0===this.strategiesInUse.size)return;const e=["\n const derivedConstraints = {\n __hasMustMatchValues: false,\n "],t=[];for(const r of this.strategiesInUse){const o=this.strategies[r];if(o.isCustom)e.push(` ${o.name}: this.strategies.${r}.deriveConstraint(req, ctx),`);else if("version"===r)e.push(" version: req.headers['accept-version'],");else{if("host"!==r)throw new Error("unknown non-custom strategy for compiling constraint derivation function");e.push(" host: req.headers.host || req.headers[':authority'],")}o.mustMatchWhenDerived&&t.push(r)}e.push("}"),t.length>0&&e.push(`derivedConstraints.__hasMustMatchValues = !!(${t.map((e=>`derivedConstraints.${e}`)).join(" || ")})`),e.push("return derivedConstraints"),this.deriveConstraints=new Function("req","ctx",e.join("\n")).bind(this)}}},81755:e=>{"use strict";const t=" ",r="│ ",o="├── ",n="└── ",a="/",i=/(?=\/)/;function s(e){return Array.isArray(e)?e.map((e=>s(e))):"symbol"==typeof e?e.toString():"function"==typeof e?function(e){let t=e.name||"";return t=t.replace("bound","").trim(),t=(t||"anonymous")+"()",t}(e):e}function c(e,t){const r={},o=this.buildPrettyMeta(e);return Array.isArray(t)||(t=o?Reflect.ownKeys(o):[]),t.forEach((e=>{const t="symbol"==typeof e?e.toString():e;o&&o[e]&&(r[t]=s(o[e]))})),r}function l(e,a,i,s,c){let u="";if(s||c||(u+="\n"),s||(u+=`${a||""}${i?n:o}`),u+=`${e.path}`,e.handlers){const o=e.handlers.reduce(((e,t)=>{const r=e.findIndex((e=>JSON.stringify(e.opts)===JSON.stringify(t.opts)));return-1!==r?e[r].method=[e[r].method,t.method].join(", "):e.push(t),e}),[]);o.forEach(((n,c)=>{c>0&&(u+=`${s?"":a||""}${i?t:r}${e.path}`),u+=` (${n.method||"-"})`,n.opts&&"{}"!==JSON.stringify(n.opts)&&(u+=` ${JSON.stringify(n.opts)}`),n.meta&&Reflect.ownKeys(n.meta).forEach(((e,o)=>{u+=`\n${s?"":a||""}${i?t:r}`,u+=`• (${e}) ${JSON.stringify(n.meta[e])}`})),o.length>1&&c!==o.length-1&&(u+="\n")}))}else e.children.length>1&&(u+=" (-)");return s||(a=`${a||""}${i?t:r}`),e.children.forEach(((t,r)=>{const o=r===e.children.length-1,n=!e.handlers&&1===e.children.length;u+=l(t,a,o,n)})),u}e.exports={flattenNode:function e(t,r){if(r.handlers.length>0&&t.nodes.push(r),r.children)for(const o of Object.values(r.children)){const r=o.prefix.split(i);let n,a=t;for(const e of r)n=a,a=a.children[e],a||(a={prefix:e,nodes:[],children:{}},n.children[e]=a);e(a,o)}},compressFlattenedNode:function e(t){const r=Object.keys(t.children);if(0===t.nodes.length&&1===r.length){const o=t.children[r[0]];if(o.nodes.length<=1)return e(o),t.nodes=o.nodes,t.prefix+=o.prefix,t.children=o.children,t}for(const r of Object.keys(t.children))e(t.children[r]);return t},prettyPrintFlattenedNode:function e(a,i,s,l){if(!this.buildPrettyMeta)throw new Error("buildPrettyMeta not defined");l.includeMeta=l.includeMeta||null;let u="";const p=[];for(const e of a.nodes)for(const t of e.handlers)p.push({method:e.method,...t});p.length?p.forEach(((e,o)=>{let n=`(${e.method||"-"})`;Object.keys(e.constraints).length>0&&(n+=" "+JSON.stringify(e.constraints));let p="";const d=a.prefix.split("").map(((e,t)=>":"===e?t:null)).filter((e=>null!==e));if(d.length){let t=0;d.forEach(((r,o)=>{p+=a.prefix.slice(t,r+1),p+=e.params[e.params.length-d.length+o],o===d.length-1&&(p+=a.prefix.slice(r+1)),t=r+1}))}else p=a.prefix;if(u+=0===o?`${p} ${n}`:`\n${i}${s?t:r}${p} ${n}`,l.includeMeta){const o=c.call(this,e,l.includeMeta);Object.keys(o).forEach(((e,n)=>{u+=`\n${i||""}${s?t:r}`,u+=`• (${e}) ${JSON.stringify(o[e])}`}))}})):u=a.prefix;let d=`${i}${s?n:o}${u}\n`;i=`${i}${s?t:r}`;const h=Object.keys(a.children);for(let t=0;t<h.length;t++){const r=a.children[h[t]];d+=e.call(this,r,i,t===h.length-1,l)}return d},prettyPrintRoutesArray:function(e,t={}){if(!this.buildPrettyMeta)throw new Error("buildPrettyMeta not defined");t.includeMeta=t.includeMeta||null;const r=[];let o="";e.sort(((e,t)=>e.path&&t.path?e.path.localeCompare(t.path):0));for(let o=0;o<e.length;o++){const n=e[o],a=r.find((e=>n.path===e.path));if(a){a.handlers.push({method:n.method,opts:n.opts.constraints||void 0,meta:t.includeMeta?c.call(this,n,t.includeMeta):null});continue}const i={method:n.method,opts:n.opts.constraints||void 0,meta:t.includeMeta?c.call(this,n,t.includeMeta):null};r.push({path:n.path,methods:[n.method],opts:[n.opts],handlers:[i]})}if(!r.filter((e=>e.path===a)).length){const e={path:a,truncatedPath:"",methods:[],opts:[],handlers:[{}]};r.filter((e=>"*"===e.path)).length?r.splice(1,0,e):r.unshift(e)}const n=function(e,t){t=t||a;const r=[],o={result:r};return e.forEach(((e,t)=>{let r=e.path.split(i);r[0]!==a&&"*"!==r[0]&&(r=[a,r[0].slice(1),...r.slice(1)]),r.reduce(((t,o,n)=>{if(!t[o]){t[o]={result:[]};const a={path:o,children:t[o].result};n===r.length-1&&(a.handlers=e.handlers),t.result.push(a)}return t[o]}),o)})),r}(r);return n.forEach(((e,t)=>{o+=l(e,null,t===n.length-1,!1,!0),o+="\n"})),o}}},4534:(e,t,r)=>{"use strict";const o=r(42613);e.exports={name:"host",mustMatchWhenDerived:!1,storage:function(){var e={},t=[];return{get:r=>{var o,n=e[r];if(n)return n;for(var a=0;a<t.length;a++)if((o=t[a]).host.test(r))return o.value},set:(r,o)=>{r instanceof RegExp?t.push({host:r,value:o}):e[r]=o},del:r=>{delete e[r],t=t.filter((e=>String(e.host)!==String(r)))},empty:()=>{e={},t=[]}}},validate(e){o("string"==typeof e||"[object RegExp]"===Object.prototype.toString.call(e),"Host should be a string or a RegExp")}}},81966:(e,t,r)=>{"use strict";const o=r(22385),n=r(42613);e.exports={name:"version",mustMatchWhenDerived:!0,storage:o,validate(e){n("string"==typeof e,"Version should be a string")}}},28729:(e,t,r)=>{"use strict";const o=r(42613),n=r(32017);function a(e){e=e||{},this.prefix=e.prefix||"/",this.label=this.prefix[0],this.method=e.method,this.handlers=e.handlers||[],this.unconstrainedHandler=e.unconstrainedHandler||null,this.children=e.children||{},this.numberOfChildren=Object.keys(this.children).length,this.kind=e.kind||this.types.STATIC,this.regex=e.regex||null,this.wildcardChild=null,this.parametricBrother=null,this.constrainer=e.constrainer,this.hasConstraints=e.hasConstraints||!1,this.constrainedHandlerStores=null}function i(e){return this._compileGetHandlerMatchingConstraints(),this._getHandlerMatchingConstraints(e)}Object.defineProperty(a.prototype,"types",{value:{STATIC:0,PARAM:1,MATCH_ALL:2,REGEX:3,MULTI_PARAM:4}}),a.prototype.getLabel=function(){return this.prefix[0]},a.prototype.addChild=function(e){var t="";switch(e.kind){case this.types.STATIC:t=e.getLabel();break;case this.types.PARAM:case this.types.REGEX:case this.types.MULTI_PARAM:t=":";break;case this.types.MATCH_ALL:this.wildcardChild=e,t="*";break;default:throw new Error(`Unknown node kind: ${e.kind}`)}o(void 0===this.children[t],`There is already a child with label '${t}'`),this.children[t]=e;const r=Object.values(this.children);return this.numberOfChildren=r.length,this._saveParametricBrother(),this},a.prototype._saveParametricBrother=function(){let e=this.parametricBrother;for(const t of Object.values(this.children))if(":"===t.prefix){e=t;break}if(e)for(const t of Object.values(this.children))t&&t.kind===this.types.STATIC&&(t.parametricBrother=e,t._saveParametricBrother(e))},a.prototype.reset=function(e){return this.prefix=e,this.children={},this.handlers=[],this.unconstrainedHandler=null,this.kind=this.types.STATIC,this.numberOfChildren=0,this.regex=null,this.wildcardChild=null,this.hasConstraints=!1,this._decompileGetHandlerMatchingConstraints(),this},a.prototype.split=function(e){const t=new a({prefix:this.prefix.slice(e),children:this.children,kind:this.kind,method:this.method,handlers:this.handlers.slice(0),regex:this.regex,constrainer:this.constrainer,hasConstraints:this.hasConstraints,unconstrainedHandler:this.unconstrainedHandler});return null!==this.wildcardChild&&(t.wildcardChild=this.wildcardChild),this.reset(this.prefix.slice(0,e)),this.addChild(t),t},a.prototype.findByLabel=function(e){return this.children[e[0]]},a.prototype.findMatchingChild=function(e,t){var r=this.children[t[0]];return void 0!==r&&(r.numberOfChildren>0||null!==r.getMatchingHandler(e))&&t.slice(0,r.prefix.length)===r.prefix||void 0!==(r=this.children[":"])&&(r.numberOfChildren>0||null!==r.getMatchingHandler(e))||void 0!==(r=this.children["*"])&&(r.numberOfChildren>0||null!==r.getMatchingHandler(e))?r:null},a.prototype.addHandler=function(e,t,r,n){if(!e)return;o(!this.getHandler(n),`There is already a handler with constraints '${JSON.stringify(n)}' and method '${this.method}'`);const a={handler:e,params:t,constraints:n,store:r||null,paramsLength:t.length};if(this.handlers.push(a),this.handlers.sort(((e,t)=>Object.keys(e.constraints).length-Object.keys(t.constraints).length)),Object.keys(n).length>0?this.hasConstraints=!0:this.unconstrainedHandler=a,this.hasConstraints&&this.handlers.length>32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this._decompileGetHandlerMatchingConstraints()},a.prototype.getHandler=function(e){return this.handlers.filter((t=>n(e,t.constraints)))[0]},a.prototype.getMatchingHandler=function(e){return this.hasConstraints?this._getHandlerMatchingConstraints(e):e&&e.__hasMustMatchValues?null:this.unconstrainedHandler},a.prototype._getHandlerMatchingConstraints=i,a.prototype._decompileGetHandlerMatchingConstraints=function(){return this._getHandlerMatchingConstraints=i,null},a.prototype._buildConstraintStore=function(e){const t=this.constrainer.newStoreForConstraint(e);for(let r=0;r<this.handlers.length;r++){const o=this.handlers[r].constraints[e];if(void 0!==o){let e=t.get(o);e||(e=0),e|=1<<r,t.set(o,e)}}return t},a.prototype._constrainedIndexBitmask=function(e){let t=0;for(let r=0;r<this.handlers.length;r++){const o=this.handlers[r];o.constraints&&e in o.constraints&&(t|=1<<r)}return~t},a.prototype._compileGetHandlerMatchingConstraints=function(){this.constrainedHandlerStores={};let e=new Set;for(const t of this.handlers)for(const r of Object.keys(t.constraints))e.add(r);e=Array.from(e);const t=[];e.sort(((e,t)=>"version"===e?1:0));for(const t of e)this.constrainedHandlerStores[t]=this._buildConstraintStore(t);t.push(`\n let candidates = 0b${"1".repeat(this.handlers.length)}\n let mask, matches\n `);for(const r of e)t.push(`\n mask = ${this._constrainedIndexBitmask(r)}\n value = derivedConstraints.${r}\n `),t.push(`\n if (typeof value === "undefined") {\n candidates &= mask\n } else {\n matches = this.constrainedHandlerStores.${r}.get(value) || 0\n candidates &= (matches | mask)\n }\n if (candidates === 0) return null;\n `);t.push("\n const handler = this.handlers[Math.floor(Math.log2(candidates))]\n if (handler && derivedConstraints.__hasMustMatchValues && handler === this.unconstrainedHandler) {\n return null;\n }\n return handler;\n "),this._getHandlerMatchingConstraints=new Function("derivedConstraints",t.join("\n"))},e.exports=a},10061:e=>{"use strict";e.exports=function(e){return e}},77507:(e,t,r)=>{var o;e.exports=function(){if(!o){try{o=r(45753)("follow-redirects")}catch(e){}"function"!=typeof o&&(o=function(){})}o.apply(null,arguments)}},43164:(e,t,r)=>{var o=r(87016),n=o.URL,a=r(58611),i=r(65692),s=r(2203).Writable,c=r(42613),l=r(77507),u=["abort","aborted","connect","error","socket","timeout"],p=Object.create(null);u.forEach((function(e){p[e]=function(t,r,o){this._redirectable.emit(e,t,r,o)}}));var d=x("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),h=x("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),f=x("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),m=x("ERR_STREAM_WRITE_AFTER_END","write after end");function v(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function g(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(a){var i=a+":",s=r[i]=e[a],u=t[a]=Object.create(s);Object.defineProperties(u,{request:{value:function(e,a,s){if("string"==typeof e){var u=e;try{e=b(new n(u))}catch(t){e=o.parse(u)}}else n&&e instanceof n?e=b(e):(s=a,a=e,e={protocol:i});return"function"==typeof a&&(s=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=r,c.equal(a.protocol,i,"protocol mismatch"),l("options",a),new v(a,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var o=u.request(e,t,r);return o.end(),o},configurable:!0,enumerable:!0,writable:!0}})})),t}function y(){}function b(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function w(e,t){var r;for(var o in t)e.test(o)&&(r=t[o],delete t[o]);return null==r?void 0:String(r).trim()}function x(e,t){function r(e){Error.captureStackTrace(this,this.constructor),e?(this.message=t+": "+e.message,this.cause=e):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function k(e){for(var t of u)e.removeListener(t,p[t]);e.on("error",y),e.abort()}v.prototype=Object.create(s.prototype),v.prototype.abort=function(){k(this._currentRequest),this.emit("abort")},v.prototype.write=function(e,t,r){if(this._ending)throw new m;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new f),this.abort()):r&&r()},v.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var o=this,n=this._currentRequest;this.write(e,t,(function(){o._ended=!0,n.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},v.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},v.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},v.prototype.setTimeout=function(e,t){var r=this;function o(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function n(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),o(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",o),this.on("abort",a),this.on("error",a),this.on("response",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){v.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(v.prototype,e,{get:function(){return this._currentRequest[e]}})})),v.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},v.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(n._redirectable=this,u))n.on(a,p[a]);if(this._currentUrl=/^\//.test(this._options.path)?o.format(this._options):this._currentUrl=this._options.path,this._isRedirect){var i=0,s=this,c=this._requestBodyBuffers;!function e(t){if(n===s._currentRequest)if(t)s.emit("error",t);else if(i<c.length){var r=c[i++];n.finished||n.write(r.data,r.encoding,e)}else s._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},v.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(k(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new h);else{var n,a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var i=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],w(/^content-/i,this._options.headers));var s,c=w(/^host$/i,this._options.headers),u=o.parse(this._currentUrl),p=c||u.host,f=/^\w+:/.test(r)?this._currentUrl:o.format(Object.assign(u,{host:p}));try{s=o.resolve(f,r)}catch(e){return void this.emit("error",new d(e))}l("redirecting to",s),this._isRedirect=!0;var m=o.parse(s);if(Object.assign(this._options,m),(m.protocol!==u.protocol&&"https:"!==m.protocol||m.host!==p&&!function(e,t){const r=e.length-t.length-1;return r>0&&"."===e[r]&&e.endsWith(t)}(m.host,p))&&w(/^(?:authorization|cookie)$/i,this._options.headers),"function"==typeof a){var v={headers:e.headers,statusCode:t},g={url:f,method:i,headers:n};try{a(this._options,v,g)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new d(e))}}},e.exports=g({http:a,https:i}),e.exports.wrap=g},78295:e=>{"use strict";
|
|
24
|
+
/*!
|
|
25
|
+
* forwarded
|
|
26
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
27
|
+
* MIT Licensed
|
|
28
|
+
*/function t(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}e.exports=function(e){if(!e)throw new TypeError("argument req is required");var r=function(e){for(var t=e.length,r=[],o=e.length,n=e.length-1;n>=0;n--)switch(e.charCodeAt(n)){case 32:o===t&&(o=t=n);break;case 44:o!==t&&r.push(e.substring(o,t)),o=t=n;break;default:o=n}o!==t&&r.push(e.substring(o,t));return r}(e.headers["x-forwarded-for"]||"");return[t(e)].concat(r)}},25884:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",o=t.indexOf(r+e),n=t.indexOf("--");return-1!==o&&(-1===n||o<n)}},30640:function(e,t,r){e=r.nmd(e),function(){var t,r,o,n,a,i,s,c;r={},null!==e&&e.exports?e.exports=r:this.ipaddr=r,s=function(e,t,r,o){var n,a;if(e.length!==t.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(n=0;o>0;){if((a=r-o)<0&&(a=0),e[n]>>a!=t[n]>>a)return!1;o-=r,n+=1}return!0},r.subnetMatch=function(e,t,r){var o,n,a,i,s;for(a in null==r&&(r="unicast"),t)for(!(i=t[a])[0]||i[0]instanceof Array||(i=[i]),o=0,n=i.length;o<n;o++)if(s=i[o],e.kind()===s[0].kind()&&e.match.apply(e,s))return a;return r},r.IPv4=function(){function e(e){var t,r,o;if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");for(t=0,r=e.length;t<r;t++)if(!(0<=(o=e[t])&&o<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.kind=function(){return"ipv4"},e.prototype.toString=function(){return this.octets.join(".")},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.match=function(e,t){var r;if(void 0===t&&(e=(r=e)[0],t=r[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return s(this.octets,e.octets,8,t)},e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges)},e.prototype.toIPv4MappedAddress=function(){return r.IPv6.parse("::ffff:"+this.toString())},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o,n,a,i;for(i={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},e=0,n=!1,t=r=3;r>=0;t=r+=-1){if(!((o=this.octets[t])in i))return null;if(a=i[o],n&&0!==a)return null;8!==a&&(n=!0),e+=a}return 32-e},e}(),o="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp("^"+o+"\\."+o+"\\."+o+"\\."+o+"$","i"),longValue:new RegExp("^"+o+"$","i")},r.IPv4.parser=function(e){var t,r,o,a,i;if(r=function(e){return"0"===e[0]&&"x"!==e[1]?parseInt(e,8):parseInt(e)},t=e.match(n.fourOctet))return function(){var e,n,a,i;for(i=[],e=0,n=(a=t.slice(1,6)).length;e<n;e++)o=a[e],i.push(r(o));return i}();if(t=e.match(n.longValue)){if((i=r(t[1]))>4294967295||i<0)throw new Error("ipaddr: address outside defined range");return function(){var e,t;for(t=[],a=e=0;e<=24;a=e+=8)t.push(i>>a&255);return t}().reverse()}return null},r.IPv6=function(){function e(e,t){var r,o,n,a,i,s;if(16===e.length)for(this.parts=[],r=o=0;o<=14;r=o+=2)this.parts.push(e[r]<<8|e[r+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(n=0,a=(s=this.parts).length;n<a;n++)if(!(0<=(i=s[n])&&i<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");t&&(this.zoneId=t)}return e.prototype.kind=function(){return"ipv6"},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e.prototype.toRFC5952String=function(){var e,t,r,o,n;for(o=/((^|:)(0(:|$)){2,})/g,n=this.toNormalizedString(),e=0,t=-1;r=o.exec(n);)r[0].length>t&&(e=r.index,t=r[0].length);return t<0?n:n.substring(0,e)+"::"+n.substring(e+t)},e.prototype.toByteArray=function(){var e,t,r,o,n;for(e=[],t=0,r=(n=this.parts).length;t<r;t++)o=n[t],e.push(o>>8),e.push(255&o);return e},e.prototype.toNormalizedString=function(){var e,t,r;return e=function(){var e,r,o,n;for(n=[],e=0,r=(o=this.parts).length;e<r;e++)t=o[e],n.push(t.toString(16));return n}.call(this).join(":"),r="",this.zoneId&&(r="%"+this.zoneId),e+r},e.prototype.toFixedLengthString=function(){var e,t,r;return e=function(){var e,r,o,n;for(n=[],e=0,r=(o=this.parts).length;e<r;e++)t=o[e],n.push(t.toString(16).padStart(4,"0"));return n}.call(this).join(":"),r="",this.zoneId&&(r="%"+this.zoneId),e+r},e.prototype.match=function(e,t){var r;if(void 0===t&&(e=(r=e)[0],t=r[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return s(this.parts,e.parts,16,t)},e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.range=function(){return r.subnetMatch(this,this.SpecialRanges)},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.toIPv4Address=function(){var e,t,o;if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");return e=(o=this.parts.slice(-2))[0],t=o[1],new r.IPv4([e>>8,255&e,t>>8,255&t])},e.prototype.prefixLengthFromSubnetMask=function(){var e,t,r,o,n,a,i;for(i={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},e=0,n=!1,t=r=7;r>=0;t=r+=-1){if(!((o=this.parts[t])in i))return null;if(a=i[o],n&&0!==a)return null;16!==a&&(n=!0),e+=a}return 128-e},e}(),a="(?:[0-9a-f]+::?)+",c="%[0-9a-z]{1,}",i={zoneIndex:new RegExp(c,"i"),native:new RegExp("^(::)?("+a+")?([0-9a-f]+)?(::)?("+c+")?$","i"),transitional:new RegExp("^((?:"+a+")|(?:::)(?:"+a+")?)"+o+"\\."+o+"\\."+o+"\\."+o+"(%[0-9a-z]{1,})?$","i")},t=function(e,t){var r,o,n,a,s,c;if(e.indexOf("::")!==e.lastIndexOf("::"))return null;for((c=(e.match(i.zoneIndex)||[])[0])&&(c=c.substring(1),e=e.replace(/%.+$/,"")),r=0,o=-1;(o=e.indexOf(":",o+1))>=0;)r++;if("::"===e.substr(0,2)&&r--,"::"===e.substr(-2,2)&&r--,r>t)return null;for(s=t-r,a=":";s--;)a+="0:";return":"===(e=e.replace("::",a))[0]&&(e=e.slice(1)),":"===e[e.length-1]&&(e=e.slice(0,-1)),{parts:t=function(){var t,r,o,a;for(a=[],t=0,r=(o=e.split(":")).length;t<r;t++)n=o[t],a.push(parseInt(n,16));return a}(),zoneId:c}},r.IPv6.parser=function(e){var r,o,n,a,s,c,l;if(i.native.test(e))return t(e,8);if((a=e.match(i.transitional))&&(l=a[6]||"",(r=t(a[1].slice(0,-1)+l,6)).parts)){for(o=0,n=(c=[parseInt(a[2]),parseInt(a[3]),parseInt(a[4]),parseInt(a[5])]).length;o<n;o++)if(!(0<=(s=c[o])&&s<=255))return null;return r.parts.push(c[0]<<8|c[1]),r.parts.push(c[2]<<8|c[3]),{parts:r.parts,zoneId:r.zoneId}}return null},r.IPv4.isIPv4=r.IPv6.isIPv6=function(e){return null!==this.parser(e)},r.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch(e){return e,!1}},r.IPv4.isValidFourPartDecimal=function(e){return!(!r.IPv4.isValid(e)||!e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},r.IPv6.isValid=function(e){var t;if("string"==typeof e&&-1===e.indexOf(":"))return!1;try{return new this((t=this.parser(e)).parts,t.zoneId),!0}catch(e){return e,!1}},r.IPv4.parse=function(e){var t;if(null===(t=this.parser(e)))throw new Error("ipaddr: string is not formatted like ip address");return new this(t)},r.IPv6.parse=function(e){var t;if(null===(t=this.parser(e)).parts)throw new Error("ipaddr: string is not formatted like ip address");return new this(t.parts,t.zoneId)},r.IPv4.parseCIDR=function(e){var t,r,o;if((r=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(r[2]))>=0&&t<=32)return o=[this.parse(r[1]),t],Object.defineProperty(o,"toString",{value:function(){return this.join("/")}}),o;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},r.IPv4.subnetMaskFromPrefixLength=function(e){var t,r,o;if((e=parseInt(e))<0||e>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(o=[0,0,0,0],r=0,t=Math.floor(e/8);r<t;)o[r]=255,r++;return t<4&&(o[t]=Math.pow(2,e%8)-1<<8-e%8),new this(o)},r.IPv4.broadcastAddressFromCIDR=function(e){var t,r,o,n,a;try{for(o=(t=this.parseCIDR(e))[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),n=[],r=0;r<4;)n.push(parseInt(o[r],10)|255^parseInt(a[r],10)),r++;return new this(n)}catch(e){throw e,new Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv4.networkAddressFromCIDR=function(e){var t,r,o,n,a;try{for(o=(t=this.parseCIDR(e))[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),n=[],r=0;r<4;)n.push(parseInt(o[r],10)&parseInt(a[r],10)),r++;return new this(n)}catch(e){throw e,new Error("ipaddr: the address does not have IPv4 CIDR format")}},r.IPv6.parseCIDR=function(e){var t,r,o;if((r=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(r[2]))>=0&&t<=128)return o=[this.parse(r[1]),t],Object.defineProperty(o,"toString",{value:function(){return this.join("/")}}),o;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},r.isValid=function(e){return r.IPv6.isValid(e)||r.IPv4.isValid(e)},r.parse=function(e){if(r.IPv6.isValid(e))return r.IPv6.parse(e);if(r.IPv4.isValid(e))return r.IPv4.parse(e);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},r.parseCIDR=function(e){try{return r.IPv6.parseCIDR(e)}catch(t){t;try{return r.IPv4.parseCIDR(e)}catch(e){throw e,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},r.fromByteArray=function(e){var t;if(4===(t=e.length))return new r.IPv4(e);if(16===t)return new r.IPv6(e);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},r.process=function(e){var t;return"ipv6"===(t=this.parse(e)).kind()&&t.isIPv4MappedAddress()?t.toIPv4Address():t}}.call(this)},7106:e=>{"use strict";var t=e.exports=function(e,t,o){"function"==typeof t&&(o=t,t={}),r(t,"function"==typeof(o=t.cb||o)?o:o.pre||function(){},o.post||function(){},e,"",e)};function r(e,o,n,a,i,s,c,l,u,p){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var d in o(a,i,s,c,l,u,p),a){var h=a[d];if(Array.isArray(h)){if(d in t.arrayKeywords)for(var f=0;f<h.length;f++)r(e,o,n,h[f],i+"/"+d+"/"+f,s,i,d,a,f)}else if(d in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)r(e,o,n,h[m],i+"/"+d+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,i,d,a,m)}else(d in t.keywords||e.allKeys&&!(d in t.skipKeywords))&&r(e,o,n,h,i+"/"+d,s,i,d,a)}n(a,i,s,c,l,u,p)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},43971:(e,t,r)=>{"use strict";const o=r(27109);e.exports=function(e,t="tcp"){return(e=Number.parseInt(e))?"win32"===process.platform?o("netstat -nao").then((r=>{const{stdout:n}=r;if(!n)return r;const a=n.split("\n"),i=new RegExp(`^ *${t.toUpperCase()} *[^ ]*:${e}`,"gm"),s=a.filter((e=>e.match(i))).reduce(((e,t)=>{const r=t.match(/(\d*)\w*(\n|$)/gm);return r&&r[0]&&!e.includes(r[0])?e.concat(r[0]):e}),[]);return o(`TaskKill /F /PID ${s.join(" /PID ")}`)})):o(`lsof -i ${"udp"===t?"udp":"tcp"}:${e} | grep ${"udp"===t?"UDP":"LISTEN"} | awk '{print $2}' | xargs kill -9`):Promise.reject(new Error("Invalid argument provided for port"))}},73824:(e,t,r)=>{"use strict";const o=r(42613),n=r(58611),a=r(50679),i=r(62049),s=r(50037),c="The dispatch function has already been invoked",l={oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},u=new a;u.addKeyword({keyword:"prototypedType",validate:(e,t)=>t&&t.prototype&&"object"==typeof t.prototype});const p={type:"object",properties:{url:l,path:l,cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{type:"object",additionalProperties:!0},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:n.METHODS.concat(n.METHODS.map((function(e){return e.toLowerCase()})))},validate:{type:"boolean"},Request:{prototypedType:!0}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]},d=u.compile(p);function h(e,t,r){return void 0===r?new v(e,t):m(e,t,r)}function f(e,t,r,o){return r.once("error",(function(e){this.destroyed&&o.destroy(e)})),r.once("close",(function(){this.destroyed&&!this._error&&o.destroy()})),r.prepare((()=>e.call(t,r,o)))}function m(e,t,r){if(!1!==(t="string"==typeof t?{url:t}:t).validate){o("function"==typeof e,"dispatchFunc should be a function");if(!d(t))throw new Error(d.errors.map((e=>e.message)))}const n=t.server||{},a=t.Request?i.CustomRequest:i;if("function"==typeof r){const o=new a(t),i=new s(o,r);return f(e,n,o,i)}return new Promise(((r,o)=>{const i=new a(t),c=new s(i,r,o);f(e,n,i,c)}))}function v(e,t){this.option="string"==typeof t?{url:t}:Object.assign({},t),this.dispatch=e,this._hasInvoked=!1,this._promise=null,!1!==this.option.autoStart&&process.nextTick((()=>{this._hasInvoked||this.end()}))}["delete","get","head","options","patch","post","put","trace"].forEach((e=>{v.prototype[e]=function(t){if(!0===this._hasInvoked||this._promise)throw new Error(c);return this.option.url=t,this.option.method=e.toUpperCase(),this}}));["body","cookies","headers","payload","query"].forEach((e=>{v.prototype[e]=function(t){if(!0===this._hasInvoked||this._promise)throw new Error(c);return this.option[e]=t,this}})),v.prototype.end=function(e){if(!0===this._hasInvoked||this._promise)throw new Error(c);if(this._hasInvoked=!0,"function"!=typeof e)return this._promise=m(this.dispatch,this.option),this._promise;m(this.dispatch,this.option,e)},Object.getOwnPropertyNames(Promise.prototype).forEach((e=>{"constructor"!==e&&(v.prototype[e]=function(...t){if(!this._promise){if(!0===this._hasInvoked)throw new Error(c);this._hasInvoked=!0,this._promise=m(this.dispatch,this.option)}return this._promise[e](...t)})})),e.exports=h,e.exports.inject=h,e.exports.isInjection=function(e){return e instanceof i||e instanceof s||e&&e.constructor&&"_CustomLMRRequest"===e.constructor.name}},97458:(e,t,r)=>{"use strict";const{URL:o}=r(87016),n="http://localhost";e.exports=function(e,t){"string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e)||!e.startsWith("//")||(e=n+e);const r="object"==typeof e?Object.assign(new o(n),e):new o(e,n),a=Object.assign({},e.query,t);for(const e in a){const t=a[e];if(Array.isArray(t)){r.searchParams.delete(e);for(const o of t)r.searchParams.append(e,o)}else r.searchParams.set(e,t)}return r}},62049:(e,t,r)=>{"use strict";const{Readable:o}=r(2203),n=r(39023),a=r(57427),i=r(42613),s=r(6187)(),c=r(97458),{EventEmitter:l}=r(24434);s.create("FastifyDeprecationLightMyRequest","FST_LIGHTMYREQUEST_DEP01",'You are accessing "request.connection", use "request.socket" instead.');class u extends l{constructor(e){super(),this.remoteAddress=e}}function p(e){return new function(t){d.call(t,{...e,Request:void 0}),Object.assign(this,t);for(const e of Object.keys(d.prototype))this.constructor.prototype[e]=d.prototype[e];return n.inherits(this.constructor,e.Request),this}(this)}function d(e){o.call(this,{autoDestroy:!1});const t=c(e.url||e.path,e.query);this.url=t.pathname+t.search,this.httpVersion="1.1",this.method=e.method?e.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];const r=e.headers||{};for(const e in r){const t=r[e];i(void 0!==t,'invalid value "undefined" for header '+e),this.headers[e.toLowerCase()]=""+t}if(this.headers["user-agent"]=this.headers["user-agent"]||"lightMyRequest",this.headers.host=this.headers.host||e.authority||function(e){return e.port?e.host:e.hostname+("https:"===e.protocol?":443":":80")}(t),e.cookies){const{cookies:t}=e,r=Object.keys(t).map((e=>a.serialize(e,t[e])));this.headers.cookie&&r.unshift(this.headers.cookie),this.headers.cookie=r.join("; ")}this.socket=new u(e.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return s.emit("FST_LIGHTMYREQUEST_DEP01"),this.socket},configurable:!0});let n=e.payload||e.body||null;const l=n&&"function"==typeof n.resume;!n||"string"==typeof n||l||Buffer.isBuffer(n)||(n=JSON.stringify(n),this.headers["content-type"]=this.headers["content-type"]||"application/json"),!n||l||this.headers.hasOwnProperty("content-length")||(this.headers["content-length"]=(Buffer.isBuffer(n)?n.length:Buffer.byteLength(n)).toString());for(const e of Object.keys(this.headers))this.rawHeaders.push(e,this.headers[e]);return this._lightMyRequest={payload:n,isDone:!1,simulate:e.simulate||{}},this}n.inherits(d,o),n.inherits(p,d),d.prototype.prepare=function(e){const t=this._lightMyRequest.payload;if(!t||"function"!=typeof t.resume)return e();const r=[];t.on("data",(e=>r.push(Buffer.from(e)))),t.on("end",(()=>{const t=Buffer.concat(r);return this.headers["content-length"]=this.headers["content-length"]||""+t.length,this._lightMyRequest.payload=t,e()})),t.resume()},d.prototype._read=function(e){setImmediate((()=>{this._lightMyRequest.isDone||(this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close")),!1!==this._lightMyRequest.simulate.end&&this.push(null)}))},d.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,e&&(this._error=!0,process.nextTick((()=>this.emit("error",e)))),process.nextTick((()=>this.emit("close"))))},e.exports=d,e.exports.Request=d,e.exports.CustomRequest=p},50037:(e,t,r)=>{"use strict";const o=r(58611),{Writable:n}=r(2203),a=r(39023),i=r(34635);function s(e,t,r){o.ServerResponse.call(this,{method:e.method,httpVersionMajor:1,httpVersionMinor:1}),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(new n({write(e,t,r){setImmediate(r)}})),this._promiseCallback="function"==typeof r;let a=!1;const s=e=>{if(a=!0,this._promiseCallback)return process.nextTick((()=>t(e)));process.nextTick((()=>t(null,e)))},l=e=>{if(!a){if(a=!0,this._promiseCallback)return process.nextTick((()=>r(e)));process.nextTick((()=>t(e,null)))}};this.once("finish",(()=>{const t=function(e){null===e._lightMyRequest.headers&&c(e);const t={raw:{res:e},headers:e._lightMyRequest.headers,statusCode:e.statusCode,statusMessage:e.statusMessage,trailers:{},get cookies(){return i.parse(this)}},r=Buffer.concat(e._lightMyRequest.payloadChunks);return t.rawPayload=r,t.payload=r.toString(),t.body=t.payload,t.trailers=e._lightMyRequest.trailers,t.json=function(){if(t.headers["content-type"].indexOf("application/json")<0)throw new Error("The content-type of the response is not application/json");return JSON.parse(t.payload)},t}(this);t.raw.req=e,s(t)})),this.connection.once("error",l),this.once("error",l),this.once("close",l)}function c(e){e._lightMyRequest.headers=Object.assign({},e.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach((t=>{const r=new RegExp("\\r\\n"+t+": ([^\\r]*)\\r\\n"),o=e._header.match(r);o&&(e._lightMyRequest.headers[t.toLowerCase()]=o[1])}))}a.inherits(s,o.ServerResponse),s.prototype.setTimeout=function(e,t){return this.timeoutHandle=setTimeout((()=>{this.emit("timeout")}),e),this.on("timeout",t),this},s.prototype.writeHead=function(){const e=o.ServerResponse.prototype.writeHead.apply(this,arguments);return c(this),e},s.prototype.write=function(e,t,r){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),o.ServerResponse.prototype.write.call(this,e,t,r),this._lightMyRequest.payloadChunks.push(Buffer.from(e,t)),!0},s.prototype.end=function(e,t,r){e&&this.write(e,t),o.ServerResponse.prototype.end.call(this,r),this.emit("finish"),this.destroy()},s.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,e&&process.nextTick((()=>this.emit("error",e))),process.nextTick((()=>this.emit("close"))))},s.prototype.addTrailers=function(e){for(const t in e)this._lightMyRequest.trailers[t.toLowerCase().trim()]=e[t].toString().trim()},e.exports=s},50679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const o=r(81053),n=r(365),a=r(82894),i=r(69474),s=["/properties"],c="http://json-schema.org/draft-07/schema";class l extends o.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=r(98545);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var p=r(78036);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}})},74495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class o extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=o;class n extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof o&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function a(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)c(r,t[o]),r.push(e[++o]);return new n(r)}t._Code=n,t.nil=new n(""),t._=a;const i=new n("+");function s(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(i),c(r,t[o]),r.push(i,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function c(e,t){var r;t instanceof n?e.push(...t._items):t instanceof o?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof o||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof o?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=s,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},t.stringify=function(e){return new n(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new n(`.${e}`):a`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new n(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new n(e.toString())}},78036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const o=r(74495),n=r(44852);var a=r(74495);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}});var i=r(44852);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new o._Code(">"),GTE:new o._Code(">="),LT:new o._Code("<"),LTE:new o._Code("<="),EQ:new o._Code("==="),NEQ:new o._Code("!=="),NOT:new o._Code("!"),OR:new o._Code("||"),AND:new o._Code("&&"),ADD:new o._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends s{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof o._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof o.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return R(this.lhs instanceof o.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,t,r,o){super(e,r,o),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class p extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class h extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof o._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let o=r.length;for(;o--;){const n=r[o];n.optimizeNames(e,t)||(C(e,n.names),r.splice(o,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class v extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class y extends v{}y.kind="else";class b extends v{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(A(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return R(e,this.condition),this.else&&j(e,this.else.names),e}}b.kind="if";class w extends v{}w.kind="for";class x extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class k extends w{constructor(e,t,r,o){super(),this.varKind=e,this.name=t,this.from=r,this.to=o}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:o,to:a}=this;return`for(${t} ${r}=${o}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=R(super.names,this.from);return R(e,this.to)}}class _ extends w{constructor(e,t,r,o){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class E extends v{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class P extends v{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,o;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(o=this.finally)||void 0===o||o.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class T extends v{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}T.kind="catch";class O extends v{render(e){return"finally"+super.render(e)}}O.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function R(e,t){return t instanceof o._CodeOrName?j(e,t.names):e}function I(e,t,r){return e instanceof o.Name?a(e):(n=e)instanceof o._Code&&n._items.some((e=>e instanceof o.Name&&1===t[e.str]&&void 0!==r[e.str]))?new o._Code(e._items.reduce(((e,t)=>(t instanceof o.Name&&(t=a(t)),t instanceof o._Code?e.push(...t._items):e.push(t),e)),[])):e;var n;function a(e){const o=r[e.str];return void 0===o||1!==t[e.str]?e:(delete t[e.str],o)}}function C(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function A(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:o._`!${D(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,o){const n=this._scope.toName(t);return void 0!==r&&o&&(this._constants[n.str]=r),this._leafNode(new c(e,n,r)),n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new l(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==o.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[r,n]of e)t.length>1&&t.push(","),t.push(r),(r!==n||this.opts.es5)&&(t.push(":"),(0,o.addCodeArg)(t,n));return t.push("}"),new o._Code(t)}if(e,t,r){if(this._blockNode(new b(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(b,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,r,o,a=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const i=this._scope.toName(e);return this._for(new k(a,i,t,r),(()=>o(i)))}forOf(e,t,r,a=n.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=t instanceof o.Name?t:this.var("_arr",t);return this.forRange("_i",0,o._`${e}.length`,(t=>{this.var(i,o._`${e}[${t}]`),r(i)}))}return this._for(new _("of",a,i,t),(()=>r(i)))}forIn(e,t,r,a=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,o._`Object.keys(${t})`,r);const i=this._scope.toName(e);return this._for(new _("in",a,i,t),(()=>r(i)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new p(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const o=new P;if(this._blockNode(o),this.code(e),t){const e=this.name("e");this._currNode=o.catch=new T(e),t(e)}return r&&(this._currNode=o.finally=new O,this.code(r)),this._endBlockNode(T,O)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=o.nil,r,n){return this._blockNode(new E(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=A;const N=L(t.operators.AND);t.and=function(...e){return e.reduce(N)};const $=L(t.operators.OR);function L(e){return(t,r)=>t===o.nil?r:r===o.nil?t:o._`${D(t)} ${e} ${D(r)}`}function D(e){return e instanceof o.Name?e:o._`(${e})`}t.or=function(...e){return e.reduce($)}},44852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const o=r(74495);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var a;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(a=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new o.Name("const"),let:new o.Name("let"),var:new o.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof o.Name?e:this.name(e)}name(e){return new o.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class s extends o.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=o._`.${new o.Name(t)}[${r}]`}}t.ValueScopeName=s;const c=o._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:o.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const o=this.toName(e),{prefix:n}=o,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[n];if(i){const e=i.get(a);if(e)return e}else i=this._values[n]=new Map;i.set(a,o);const s=this._scope[n]||(this._scope[n]=[]),c=s.length;return s[c]=t.ref,o.setValue(t,{property:n,itemIndex:c}),o}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return o._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,i={},s){let c=o.nil;for(const l in e){const u=e[l];if(!u)continue;const p=i[l]=i[l]||new Map;u.forEach((e=>{if(p.has(e))return;p.set(e,a.Started);let i=r(e);if(i){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=o._`${c}${r} ${e} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(e)))throw new n(e);c=o._`${c}${i}${this.opts._n}`}p.set(e,a.Completed)}))}return c}}},35899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const o=r(78036),n=r(44824),a=r(414);function i(e,t){const r=e.const("err",t);e.if(o._`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,o._`[${r}]`)),o._`${a.default.vErrors}.push(${r})`),e.code(o._`${a.default.errors}++`)}function s(e,t){const{gen:r,validateName:n,schemaEnv:a}=e;a.$async?r.throw(o._`new ${e.ValidationError}(${t})`):(r.assign(o._`${n}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>o.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?o.str`"${e}" keyword must be ${t} ($data)`:o.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,n,a){const{it:c}=e,{gen:u,compositeRule:p,allErrors:d}=c,h=l(e,r,n);(null!=a?a:p||d)?i(u,h):s(c,o._`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,o){const{it:n}=e,{gen:c,compositeRule:u,allErrors:p}=n;i(c,l(e,r,o)),u||p||s(n,a.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(a.default.errors,t),e.if(o._`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(o._`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",i,a.default.errors,(i=>{e.const(c,o._`${a.default.vErrors}[${i}]`),e.if(o._`${c}.instancePath === undefined`,(()=>e.assign(o._`${c}.instancePath`,(0,o.strConcat)(a.default.instancePath,s.errorPath)))),e.assign(o._`${c}.schemaPath`,o.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(o._`${c}.schema`,r),e.assign(o._`${c}.data`,n))}))};const c={keyword:new o.Name("keyword"),schemaPath:new o.Name("schemaPath"),params:new o.Name("params"),propertyName:new o.Name("propertyName"),message:new o.Name("message"),schema:new o.Name("schema"),parentSchema:new o.Name("parentSchema")};function l(e,t,r){const{createErrors:n}=e.it;return!1===n?o._`{}`:function(e,t,r={}){const{gen:n,it:i}=e,s=[u(i,r),p(e,r)];return function(e,{params:t,message:r},n){const{keyword:i,data:s,schemaValue:l,it:u}=e,{opts:p,propertyName:d,topSchemaRef:h,schemaPath:f}=u;n.push([c.keyword,i],[c.params,"function"==typeof t?t(e):t||o._`{}`]),p.messages&&n.push([c.message,"function"==typeof r?r(e):r]);p.verbose&&n.push([c.schema,l],[c.parentSchema,o._`${h}${f}`],[a.default.data,s]);d&&n.push([c.propertyName,d])}(e,t,s),n.object(...s)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?o.str`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[a.default.instancePath,(0,o.strConcat)(a.default.instancePath,r)]}function p({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let i=a?t:o.str`${t}/${e}`;return r&&(i=o.str`${i}${(0,n.getErrorPath)(r,n.Type.Str)}`),[c.schemaPath,i]}},51750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const o=r(78036),n=r(16965),a=r(414),i=r(4274),s=r(44824),c=r(98545);class l{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,i.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function u(e){const t=d.call(this,e);if(t)return t;const r=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:l}=this.opts.code,{ownProperties:u}=this.opts,p=new o.CodeGen(this.scope,{es5:s,lines:l,ownProperties:u});let h;e.$async&&(h=p.scopeValue("Error",{ref:n.default,code:o._`require("ajv/dist/runtime/validation_error").default`}));const f=p.scopeName("validate");e.validateName=f;const m={gen:p,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[o.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,o.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:o.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:o._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),p.optimize(this.opts.code.optimize);const t=p.toString();v=`${p.scopeRefs(a.default.scope)}return ${t}`,this.opts.code.process&&(v=this.opts.code.process(v,e));const r=new Function(`${a.default.self}`,`${a.default.scope}`,v)(this,this.scope.get());if(this.scope.value(f,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:f,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof o.Name?void 0:e,items:t instanceof o.Name?void 0:t,dynamicProps:e instanceof o.Name,dynamicItems:t instanceof o.Name},r.source&&(r.source.evaluated=(0,o.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,v&&this.logger.error("Error compiling schema, function code:",v),t}finally{this._compilations.delete(e)}}function p(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function d(e){for(const o of this._compilations)if(r=e,(t=o).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return o;var t,r}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||f.call(this,e,t)}function f(e,t){const r=this.opts.uriResolver.parse(t),o=(0,i._getFullPath)(this.opts.uriResolver,r);let n=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===n)return v.call(this,r,e);const a=(0,i.normalizeId)(o),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=f.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return v.call(this,r,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),a===(0,i.normalizeId)(t)){const{schema:t}=s,{schemaId:r}=this.opts,o=t[r];return o&&(n=(0,i.resolveUrl)(this.opts.uriResolver,n,o)),new l({schema:t,schemaId:r,root:e,baseId:n})}return v.call(this,r,s)}}t.SchemaEnv=l,t.compileSchema=u,t.resolveRef=function(e,t,r){var o;r=(0,i.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let a=h.call(this,e,r);if(void 0===a){const n=null===(o=e.localRefs)||void 0===o?void 0:o[r],{schemaId:i}=this.opts;n&&(a=new l({schema:n,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=p.call(this,a):void 0},t.getCompilingSchema=d,t.resolveSchema=f;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(e,{baseId:t,schema:r,root:o}){var n;if("/"!==(null===(n=e.fragment)||void 0===n?void 0:n[0]))return;for(const o of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,s.unescapeFragment)(o)];if(void 0===e)return;const n="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(o)&&n&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,n))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,s.schemaHasRulesButRef)(r,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=f.call(this,o,e)}const{schemaId:c}=this.opts;return a=a||new l({schema:r,schemaId:c,root:o,baseId:t}),a.schema!==a.root.schema?a:void 0}},414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n={data:new o.Name("data"),valCxt:new o.Name("valCxt"),instancePath:new o.Name("instancePath"),parentData:new o.Name("parentData"),parentDataProperty:new o.Name("parentDataProperty"),rootData:new o.Name("rootData"),dynamicAnchors:new o.Name("dynamicAnchors"),vErrors:new o.Name("vErrors"),errors:new o.Name("errors"),this:new o.Name("this"),self:new o.Name("self"),scope:new o.Name("scope"),json:new o.Name("json"),jsonPos:new o.Name("jsonPos"),jsonLen:new o.Name("jsonLen"),jsonPart:new o.Name("jsonPart")};t.default=n},84482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(4274);class n extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,o.resolveUrl)(e,t,r),this.missingSchema=(0,o.normalizeId)((0,o.getFullPath)(e,this.missingRef))}}t.default=n},4274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const o=r(44824),n=r(32017),a=r(51879),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&l(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(s.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function l(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&(0,o.eachItem)(e[r],(e=>t+=l(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=h(t));const o=e.parse(t);return p(e,o)}function p(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=p;const d=/#\/?$/;function h(e){return e?e.replace(d,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,r){return r=h(r),e.resolve(t,r)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:o}=this.opts,i=h(e[r]||t),s={"":i},c=u(o,i,!1),l={},p=new Set;return a(e,{allKeys:!0},((e,t,o,n)=>{if(void 0===n)return;const a=c+t;let i=s[n];function u(t){const r=this.opts.uriResolver.resolve;if(t=h(i?r(i,t):t),p.has(t))throw m(t);p.add(t);let o=this.refs[t];return"string"==typeof o&&(o=this.refs[o]),"object"==typeof o?d(e,o.schema,t):t!==h(a)&&("#"===t[0]?(d(e,l[t],t),l[t]=e):this.refs[t]=a),t}function v(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(i=u.call(this,e[r])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),s[t]=i})),l;function d(e,t,r){if(void 0!==t&&!n(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},14529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},44824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const o=r(78036),n=r(74495);function a(e,t=e.schema){const{opts:r,self:o}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const n=o.RULES.keywords;for(const r in t)n[r]||f(e,`unknown keyword: "${r}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(a,i,s,c)=>{const l=void 0===s?i:s instanceof o.Name?(i instanceof o.Name?e(a,i,s):t(a,i,s),s):i instanceof o.Name?(t(a,s,i),i):r(i,s);return c!==o.Name||l instanceof o.Name?l:n(a,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",o._`{}`);return void 0!==t&&p(e,r,t),r}function p(e,t,r){Object.keys(r).forEach((r=>e.assign(o._`${t}${(0,o.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(a(e,t),!i(t,e.self.RULES.all))},t.checkUnknownRules=a,t.schemaHasRules=i,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,a){if(!a){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return o._`${r}`}return o._`${e}${t}${(0,o.getProperty)(n)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,r)=>e.if(o._`${r} !== true && ${t} !== undefined`,(()=>{e.if(o._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,o._`${r} || {}`).code(o._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(o._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,o._`${r} || {}`),p(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,r)=>e.if(o._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,o._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(o._`${r} !== true`,(()=>e.assign(r,!0===t||o._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=p;const d={};var h;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new n._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(h=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof o.Name){const n=t===h.Num;return r?n?o._`"[" + ${e} + "]"`:o._`"['" + ${e} + "']"`:n?o._`"/" + ${e}`:o._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,o.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=f},61812:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>o(e,t)))}function o(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},o){const n=t.RULES.types[o];return n&&!0!==n&&r(e,n)},t.shouldUseGroup=r,t.shouldUseRule=o},7562:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const o=r(35899),n=r(78036),a=r(414),i={message:"boolean schema is false"};function s(e,t){const{gen:r,data:n}=e,a={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,o.reportError)(a,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:o}=e;!1===r?s(e,!1):"object"==typeof r&&!0===r.$async?t.return(a.default.data):(t.assign(n._`${o}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:o}=e;!1===o?(r.var(t,!1),s(e)):r.var(t,!0)}},4085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const o=r(14529),n=r(61812),a=r(35899),i=r(78036),s=r(44824);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(o.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:o,opts:a}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,a.coerceTypes),l=t.length>0&&!(0===s.length&&1===t.length&&(0,n.schemaHasRulesForType)(e,t[0]));if(l){const n=d(t,o,a.strictNumbers,c.Wrong);r.if(n,(()=>{s.length?function(e,t,r){const{gen:o,data:n,opts:a}=e,s=o.let("dataType",i._`typeof ${n}`),c=o.let("coerced",i._`undefined`);"array"===a.coerceTypes&&o.if(i._`${s} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,(()=>o.assign(n,i._`${n}[0]`).assign(s,i._`typeof ${n}`).if(d(t,n,a.strictNumbers),(()=>o.assign(c,n)))));o.if(i._`${c} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===a.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void o.elseIf(i._`${s} == "number" || ${s} == "boolean"`).assign(c,i._`"" + ${n}`).elseIf(i._`${n} === null`).assign(c,i._`""`);case"number":return void o.elseIf(i._`${s} == "boolean" || ${n} === null
|
|
29
|
+
|| (${s} == "string" && ${n} && ${n} == +${n})`).assign(c,i._`+${n}`);case"integer":return void o.elseIf(i._`${s} === "boolean" || ${n} === null
|
|
30
|
+
|| (${s} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,i._`+${n}`);case"boolean":return void o.elseIf(i._`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,!1).elseIf(i._`${n} === "true" || ${n} === 1`).assign(c,!0);case"null":return o.elseIf(i._`${n} === "" || ${n} === 0 || ${n} === false`),void o.assign(c,null);case"array":o.elseIf(i._`${s} === "string" || ${s} === "number"
|
|
31
|
+
|| ${s} === "boolean" || ${n} === null`).assign(c,i._`[${n}]`)}}o.else(),f(e),o.endIf(),o.if(i._`${c} !== undefined`,(()=>{o.assign(n,c),function({gen:e,parentData:t,parentDataProperty:r},o){e.if(i._`${t} !== undefined`,(()=>e.assign(i._`${t}[${r}]`,o)))}(e,c)}))}(e,t,s):f(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function p(e,t,r,o=c.Correct){const n=o===c.Correct?i.operators.EQ:i.operators.NEQ;let a;switch(e){case"null":return i._`${t} ${n} null`;case"array":a=i._`Array.isArray(${t})`;break;case"object":a=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=s(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=s();break;default:return i._`typeof ${t} ${n} ${e}`}return o===c.Correct?a:(0,i.not)(a);function s(e=i.nil){return(0,i.and)(i._`typeof ${t} == "number"`,e,r?i._`isFinite(${t})`:i.nil)}}function d(e,t,r,o){if(1===e.length)return p(e[0],t,r,o);let n;const a=(0,s.toHash)(e);if(a.array&&a.object){const e=i._`typeof ${t} != "object"`;n=a.null?e:i._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else n=i.nil;a.number&&delete a.integer;for(const e in a)n=(0,i.and)(n,p(e,t,r,o));return n}t.checkDataType=p,t.checkDataTypes=d;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:o}=e,n=(0,s.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:r,schema:o.type,schemaCode:n,schemaValue:n,parentSchema:o,params:{},it:e}}(e);(0,a.reportError)(t,h)}t.reportTypeError=f},30251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const o=r(78036),n=r(44824);function a(e,t,r){const{gen:a,compositeRule:i,data:s,opts:c}=e;if(void 0===r)return;const l=o._`${s}${(0,o.getProperty)(t)}`;if(i)return void(0,n.checkStrictMode)(e,`default is ignored for: ${l}`);let u=o._`${l} === undefined`;"empty"===c.useDefaults&&(u=o._`${u} || ${l} === null || ${l} === ""`),a.if(u,o._`${l} = ${(0,o.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:o}=e.schema;if("object"===t&&r)for(const t in r)a(e,t,r[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,r)=>a(e,r,t.default)))}},98545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const o=r(7562),n=r(4085),a=r(61812),i=r(4085),s=r(30251),c=r(85802),l=r(82832),u=r(78036),p=r(414),d=r(4274),h=r(44824),f=r(35899);function m({gen:e,validateName:t,schema:r,schemaEnv:o,opts:n},a){n.code.es5?e.func(t,u._`${p.default.data}, ${p.default.valCxt}`,o.$async,(()=>{e.code(u._`"use strict"; ${v(r,n)}`),function(e,t){e.if(p.default.valCxt,(()=>{e.var(p.default.instancePath,u._`${p.default.valCxt}.${p.default.instancePath}`),e.var(p.default.parentData,u._`${p.default.valCxt}.${p.default.parentData}`),e.var(p.default.parentDataProperty,u._`${p.default.valCxt}.${p.default.parentDataProperty}`),e.var(p.default.rootData,u._`${p.default.valCxt}.${p.default.rootData}`),t.dynamicRef&&e.var(p.default.dynamicAnchors,u._`${p.default.valCxt}.${p.default.dynamicAnchors}`)}),(()=>{e.var(p.default.instancePath,u._`""`),e.var(p.default.parentData,u._`undefined`),e.var(p.default.parentDataProperty,u._`undefined`),e.var(p.default.rootData,p.default.data),t.dynamicRef&&e.var(p.default.dynamicAnchors,u._`{}`)}))}(e,n),e.code(a)})):e.func(t,u._`${p.default.data}, ${function(e){return u._`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${e.dynamicRef?u._`, ${p.default.dynamicAnchors}={}`:u.nil}}={}`}(n)}`,o.$async,(()=>e.code(v(r,n)).code(a)))}function v(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function g(e,t){b(e)&&(w(e),y(e))?function(e,t){const{schema:r,gen:o,opts:n}=e;n.$comment&&r.$comment&&k(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=o.const("_errs",p.default.errors);x(e,a),o.var(t,u._`${a} === ${p.default.errors}`)}(e,t):(0,o.boolOrEmptySchema)(e,t)}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function w(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:o,self:n}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function x(e,t){if(e.opts.jtd)return _(e,[],!1,t);const r=(0,n.getSchemaTypes)(e.schema);_(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function k({gen:e,schemaEnv:t,schema:r,errSchemaPath:o,opts:n}){const a=r.$comment;if(!0===n.$comment)e.code(u._`${p.default.self}.logger.log(${a})`);else if("function"==typeof n.$comment){const r=u.str`${o}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(u._`${p.default.self}.opts.$comment(${a}, ${r}, ${n}.schema)`)}}function _(e,t,r,o){const{gen:n,schema:s,data:c,allErrors:l,opts:d,self:f}=e,{RULES:m}=f;function v(h){(0,a.shouldUseGroup)(s,h)&&(h.type?(n.if((0,i.checkDataType)(h.type,c,d.strictNumbers)),E(e,h),1===t.length&&t[0]===h.type&&r&&(n.else(),(0,i.reportTypeError)(e)),n.endIf()):E(e,h),l||n.if(u._`${p.default.errors} === ${o||0}`))}!s.$ref||!d.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(s,m)?(d.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{P(e.dataTypes,t)||T(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>P(t,e)))})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&T(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const o in r){const n=r[o];if("object"==typeof n&&(0,a.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;r.length&&!r.some((e=>S(t,e)))&&T(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),n.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):n.block((()=>j(e,"$ref",m.all.$ref.definition)))}function E(e,t){const{gen:r,schema:o,opts:{useDefaults:n}}=e;n&&(0,s.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,a.shouldUseRule)(o,r)&&j(e,r.keyword,r.definition,t.type)}))}function S(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function P(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function T(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(w(e),y(e))?function(e){const{schema:t,opts:r,gen:o}=e;m(e,(()=>{r.$comment&&t.$comment&&k(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),o.let(p.default.vErrors,null),o.let(p.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),x(e),function(e){const{gen:t,schemaEnv:r,validateName:o,ValidationError:n,opts:a}=e;r.$async?t.if(u._`${p.default.errors} === 0`,(()=>t.return(p.default.data)),(()=>t.throw(u._`new ${n}(${p.default.vErrors})`))):(t.assign(u._`${o}.errors`,p.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:o}){r instanceof u.Name&&e.assign(u._`${t}.props`,r);o instanceof u.Name&&e.assign(u._`${t}.items`,o)}(e),t.return(u._`${p.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,o.topBoolOrEmptySchema)(e)))};class O{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",C(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",p.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:o,schemaType:n,def:a}=this;r.if((0,u.or)(u._`${o} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(n.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:n}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,i.checkDataTypes)(e,t,n.opts.strictNumbers,i.DataType.Wrong)}`}return u.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(r,this.it,e),(0,l.extendSubschemaMode)(r,e);const o={...this.it,...r,items:void 0,props:void 0};return g(o,t),o}mergeEvaluated(e,t){const{it:r,gen:o}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(o,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(o,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:o}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return o.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function j(e,t,r,o){const n=new O(e,r,t);"code"in r?r.code(n,o):n.$data&&r.validate?(0,c.funcKeywordCode)(n,r):"macro"in r?(0,c.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(n,r)}t.KeywordCxt=O;const R=/^\/(?:[^~]|~0|~1)*$/,I=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function C(e,{dataLevel:t,dataNames:r,dataPathArr:o}){let n,a;if(""===e)return p.default.rootData;if("/"===e[0]){if(!R.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,a=p.default.rootData}else{const i=I.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(n=i[2],"#"===n){if(s>=t)throw new Error(c("property/index",s));return o[t-s]}if(s>t)throw new Error(c("data",s));if(a=r[t-s],!n)return a}let i=a;const s=n.split("/");for(const e of s)e&&(a=u._`${a}${(0,u.getProperty)((0,h.unescapeJsonPointer)(e))}`,i=u._`${i} && ${a}`);return i;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=C},85802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const o=r(78036),n=r(414),a=r(67612),i=r(35899);function s(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,o._`${n.parentData}[${n.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,o.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:a,parentSchema:i,it:s}=e,l=t.macro.call(s.self,a,i,s),u=c(r,n,l);!1!==s.opts.validateSchema&&s.self.validateSchema(l,!0);const p=r.name("valid");e.subschema({schema:l,schemaPath:o.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},p),e.pass(p,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:l,keyword:u,schema:p,parentSchema:d,$data:h,it:f}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(f,t);const m=!h&&t.compile?t.compile.call(f.self,p,d,f):t.validate,v=c(l,u,m),g=l.let("valid");function y(r=(t.async?o._`await `:o.nil)){const i=f.opts.passContext?n.default.this:n.default.self,s=!("compile"in t&&!h||!1===t.schema);l.assign(g,o._`${r}${(0,a.callValidateCode)(e,v,i,s)}`,t.modifying)}function b(e){var r;l.if((0,o.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)y(),t.modifying&&s(e),b((()=>e.error()));else{const r=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>y(o._`await `)),(t=>l.assign(g,!1).if(o._`${t} instanceof ${f.ValidationError}`,(()=>l.assign(e,o._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=o._`${v}.errors`;return l.assign(e,null),y(o.nil),e}();t.modifying&&s(e),b((()=>function(e,t){const{gen:r}=e;r.if(o._`Array.isArray(${t})`,(()=>{r.assign(n.default.vErrors,o._`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,o._`${n.default.vErrors}.length`),(0,i.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:o},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a)throw new Error("ajv implementation error");const i=n.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${o}": `+r.errorsText(n.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},82832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const o=r(78036),n=r(44824);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:c}){if(void 0!==t&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const a=e.schema[t];return void 0===r?{schema:a,schemaPath:o._`${e.schemaPath}${(0,o.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:o._`${e.schemaPath}${(0,o.getProperty)(t)}${(0,o.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:c,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:a,data:i,dataTypes:s,propertyName:c}){if(void 0!==i&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:i,dataPathArr:s,opts:c}=t;u(l.let("data",o._`${t.data}${(0,o.getProperty)(r)}`,!0)),e.errorPath=o.str`${i}${(0,n.getErrorPath)(r,a,c.jsPropertySyntax)}`,e.parentDataProperty=o._`${r}`,e.dataPathArr=[...s,e.parentDataProperty]}if(void 0!==i){u(i instanceof o.Name?i:l.let("data",i,!0)),void 0!==c&&(e.propertyName=c)}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:o,createErrors:n,allErrors:a}){void 0!==o&&(e.compositeRule=o),void 0!==n&&(e.createErrors=n),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}},81053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var o=r(98545);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var n=r(78036);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const a=r(16965),i=r(84482),s=r(14529),c=r(51750),l=r(78036),u=r(4274),p=r(4085),d=r(44824),h=r(18480),f=r(27957),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,o,n,a,i,s,c,l,u,p,d,h,v,g,y,b,w,x,k,_,E,S,P,T;const O=e.strict,j=null===(t=e.code)||void 0===t?void 0:t.optimize,R=!0===j||void 0===j?1:j||0,I=null!==(o=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==o?o:m,C=null!==(n=e.uriResolver)&&void 0!==n?n:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:O)||void 0===i||i,strictNumbers:null===(c=null!==(s=e.strictNumbers)&&void 0!==s?s:O)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:O)&&void 0!==u?u:"log",strictTuples:null!==(d=null!==(p=e.strictTuples)&&void 0!==p?p:O)&&void 0!==d?d:"log",strictRequired:null!==(v=null!==(h=e.strictRequired)&&void 0!==h?h:O)&&void 0!==v&&v,code:e.code?{...e.code,optimize:R,regExp:I}:{optimize:R,regExp:I},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===(E=e.validateSchema)||void 0===E||E,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(T=e.int32range)||void 0===T||T,uriResolver:C}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return O;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),k.call(this,y,e,"NOT SUPPORTED"),k.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=T.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),E.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let o=h;"id"===r&&(o={...h},o.id=o.$id,delete o.$id),t&&e&&this.addMetaSchema(o,o[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const o=r(t);return"$async"in r||(this.errors=r.errors),o}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return o.call(this,e,t);async function o(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function n(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await l.call(this,e);this.refs[e]||await n.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,o=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,o);return this}let n;if("object"==typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,o,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const o=this.validate(r,e);if(!o&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return o}getSchema(e){let t;for(;"string"==typeof(t=_.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,o=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,o,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=_.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(R.call(this,r,t),!t)return(0,d.eachItem)(r,(e=>I.call(this,e))),this;A.call(this,t);const o={...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===o.type.length?e=>I.call(this,e,o):e=>o.type.forEach((t=>I.call(this,e,o,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const o of t){const t=o.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:o}=t.definition,a=n[e];o&&a&&(n[e]=$(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const o=e[r];t&&!t.test(r)||("string"==typeof o?delete e[r]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[r]))}}_addSchema(e,t,r,o=this.opts.validateSchema,n=this.opts.addUsedSchema){let a;const{schemaId:i}=this.opts;if("object"==typeof e)a=e[i];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;r=(0,u.normalizeId)(a||r);const l=u.getSchemaRefs.call(this,e,r);return s=new c.SchemaEnv({schema:e,schemaId:i,meta:t,baseId:r,localRefs:l}),this._cache.set(s.schema,s),n&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=s),o&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function k(e,t,r,o="error"){for(const n in e){const a=n;a in t&&this.logger[o](`${r}: option ${n}. ${e[a]}`)}}function _(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function E(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function S(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function T(){const e={...this.opts};for(const t of v)delete e[t];return e}t.default=x,x.ValidationError=a.default,x.MissingRefError=i.default;const O={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function R(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,r){var o;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=n?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)}};t.before?C.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(o=t.implements)||void 0===o||o.forEach((e=>this.addKeyword(e)))}function C(e,t,r){const o=e.rules.findIndex((e=>e.keyword===r));o>=0?e.rules.splice(o,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function A(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=$(t)),e.validateSchema=this.compile(t,!0))}const N={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function $(e){return{anyOf:[e,N]}}},28015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(32017);o.code='require("ajv/dist/runtime/equal").default',t.default=o},75870:(e,t)=>{"use strict";function r(e){const t=e.length;let r,o=0,n=0;for(;n<t;)o++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},27957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(46579);o.code='require("ajv/dist/runtime/uri").default',t.default=o},16965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},69664:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const o=r(78036),n=r(44824),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>o.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>o._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:o}=t;Array.isArray(o)?i(e,o):(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:r,schema:a,data:i,keyword:s,it:c}=e;c.items=!0;const l=r.const("len",o._`${i}.length`);if(!1===a)e.setParams({len:t.length}),e.pass(o._`${l} <= ${t.length}`);else if("object"==typeof a&&!(0,n.alwaysValidSchema)(c,a)){const a=r.var("valid",o._`${l} <= ${t.length}`);r.if((0,o.not)(a),(()=>function(a){r.forRange("i",t.length,l,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:n.Type.Num},a),c.allErrors||r.if((0,o.not)(a),(()=>r.break()))}))}(a))),e.ok(a)}}t.validateAdditionalItems=i,t.default=a},42279:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(67612),n=r(78036),a=r(414),i=r(44824),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>n._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:p,opts:d}=u;if(u.props=!0,"all"!==d.removeAdditional&&(0,i.alwaysValidSchema)(u,r))return;const h=(0,o.allSchemaProperties)(s.properties),f=(0,o.allSchemaProperties)(s.patternProperties);function m(e){t.code(n._`delete ${c}[${e}]`)}function v(o){if("all"===d.removeAdditional||d.removeAdditional&&!1===r)m(o);else{if(!1===r)return e.setParams({additionalProperty:o}),e.error(),void(p||t.break());if("object"==typeof r&&!(0,i.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===d.removeAdditional?(g(o,r,!1),t.if((0,n.not)(r),(()=>{e.reset(),m(o)}))):(g(o,r),p||t.if((0,n.not)(r),(()=>t.break())))}}}function g(t,r,o){const n={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===o&&Object.assign(n,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(n,r)}t.forIn("key",c,(r=>{h.length||f.length?t.if(function(r){let a;if(h.length>8){const e=(0,i.schemaRefOrVal)(u,s.properties,"properties");a=(0,o.isOwnProperty)(t,e,r)}else a=h.length?(0,n.or)(...h.map((e=>n._`${r} === ${e}`))):n.nil;return f.length&&(a=(0,n.or)(a,...f.map((t=>n._`${(0,o.usePattern)(e,t)}.test(${r})`)))),(0,n.not)(a)}(r),(()=>v(r))):v(r)})),e.ok(n._`${l} === ${a.default.errors}`)}};t.default=s},89469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(44824),n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,o.alwaysValidSchema)(n,t))return;const i=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a),e.mergeEvaluated(i)}))}};t.default=n},52668:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(67612).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=o},30318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?o.str`must contain at least ${e} valid item(s)`:o.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?o._`{minContains: ${e}}`:o._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:i,it:s}=e;let c,l;const{minContains:u,maxContains:p}=a;s.opts.next?(c=void 0===u?1:u,l=p):c=1;const d=t.const("len",o._`${i}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,n.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,n.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,n.alwaysValidSchema)(s,r)){let t=o._`${d} >= ${c}`;return void 0!==l&&(t=o._`${t} && ${d} <= ${l}`),void e.pass(t)}s.items=!0;const h=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(o._`${e}++`),void 0===l?t.if(o._`${e} >= ${c}`,(()=>t.assign(h,!0).break())):(t.if(o._`${e} > ${l}`,(()=>t.assign(h,!1).break())),1===c?t.assign(h,!0):t.if(o._`${e} >= ${c}`,(()=>t.assign(h,!0))))}(r)))))}function m(r,o){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:!0},r),o()}))}void 0===l&&1===c?m(h,(()=>t.if(h,(()=>t.break())))):0===c?(t.let(h,!0),void 0!==l&&t.if(o._`${i}.length > 0`,f)):(t.let(h,!1),f()),e.result(h,(()=>e.reset()))}};t.default=a},22138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const o=r(78036),n=r(44824),a=r(67612);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=1===t?"property":"properties";return o.str`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>o._`{property: ${e},
|
|
32
|
+
missingProperty: ${n},
|
|
33
|
+
depsCount: ${t},
|
|
34
|
+
deps: ${r}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const o in e){if("__proto__"===o)continue;(Array.isArray(e[o])?t:r)[o]=e[o]}return[t,r]}(e);s(e,t),c(e,r)}};function s(e,t=e.schema){const{gen:r,data:n,it:i}=e;if(0===Object.keys(t).length)return;const s=r.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,a.propertyInData)(r,n,c,i.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),i.allErrors?r.if(u,(()=>{for(const t of l)(0,a.checkReportMissingProp)(e,t)})):(r.if(o._`${u} && (${(0,a.checkMissingProp)(e,l,s)})`),(0,a.reportMissingProp)(e,s),r.else())}}function c(e,t=e.schema){const{gen:r,data:o,keyword:i,it:s}=e,c=r.name("valid");for(const l in t)(0,n.alwaysValidSchema)(s,t[l])||(r.if((0,a.propertyInData)(r,o,l,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=s,t.validateSchemaDeps=c,t.default=i},32784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>o.str`must match "${e.ifClause}" schema`,params:({params:e})=>o._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:a}=e;void 0===r.then&&void 0===r.else&&(0,n.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const s=i(a,"then"),c=i(a,"else");if(!s&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,p("then",r),p("else",r))}else s?t.if(u,p("then")):t.if((0,o.not)(u),p("else"));function p(r,n){return()=>{const a=e.subschema({keyword:r},u);t.assign(l,u),e.mergeValidEvaluated(a,l),n?t.assign(n,o._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function i(e,t){const r=e.schema[t];return void 0!==r&&!(0,n.alwaysValidSchema)(e,r)}t.default=a},84415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(69664),n=r(97291),a=r(85751),i=r(66983),s=r(30318),c=r(22138),l=r(65908),u=r(42279),p=r(88258),d=r(17312),h=r(29062),f=r(52668),m=r(27154),v=r(89469),g=r(32784),y=r(44949);t.default=function(e=!1){const t=[h.default,f.default,m.default,v.default,g.default,y.default,l.default,u.default,c.default,p.default,d.default];return e?t.push(n.default,i.default):t.push(o.default,a.default),t.push(s.default),t}},85751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const o=r(78036),n=r(44824),a=r(67612),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return s(e,"additionalItems",t);r.items=!0,(0,n.alwaysValidSchema)(r,t)||e.ok((0,a.validateArray)(e))}};function s(e,t,r=e.schema){const{gen:a,parentSchema:i,data:s,keyword:c,it:l}=e;!function(e){const{opts:o,errSchemaPath:a}=l,i=r.length,s=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(o.strictTuples&&!s){const e=`"${c}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(l,e,o.strictTuples)}}(i),l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=n.mergeEvaluated.items(a,r.length,l.items));const u=a.name("valid"),p=a.const("len",o._`${s}.length`);r.forEach(((t,r)=>{(0,n.alwaysValidSchema)(l,t)||(a.if(o._`${p} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=s,t.default=i},66983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a=r(67612),i=r(69664),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>o.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>o._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:o}=e,{prefixItems:s}=r;o.items=!0,(0,n.alwaysValidSchema)(o,t)||(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,a.validateArray)(e)))}};t.default=s},29062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(44824),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,o.alwaysValidSchema)(n,r))return void e.fail();const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=n},27154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>o._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:a,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&a.discriminator)return;const s=r,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){s.forEach(((r,a)=>{let s;(0,n.alwaysValidSchema)(i,r)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},u),a>0&&t.if(o._`${u} && ${c}`).assign(c,!1).assign(l,o._`[${l}, ${a}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,a),s&&e.mergeEvaluated(s,o.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=a},17312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(67612),n=r(78036),a=r(44824),i=r(44824),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:s,parentSchema:c,it:l}=e,{opts:u}=l,p=(0,o.allSchemaProperties)(r),d=p.filter((e=>(0,a.alwaysValidSchema)(l,r[e])));if(0===p.length||d.length===p.length&&(!l.opts.unevaluated||!0===l.props))return;const h=u.strictSchema&&!u.allowMatchingProperties&&c.properties,f=t.name("valid");!0===l.props||l.props instanceof n.Name||(l.props=(0,i.evaluatedPropsToName)(t,l.props));const{props:m}=l;function v(e){for(const t in h)new RegExp(e).test(t)&&(0,a.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",s,(a=>{t.if(n._`${(0,o.usePattern)(e,r)}.test(${a})`,(()=>{const o=d.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:i.Type.Str},f),l.opts.unevaluated&&!0!==m?t.assign(n._`${m}[${a}]`,!0):o||l.allErrors||t.if((0,n.not)(f),(()=>t.break()))}))}))}!function(){for(const e of p)h&&v(e),l.allErrors?g(e):(t.var(f,!0),g(e),t.if(f))}()}};t.default=s},97291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(85751),n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,o.validateTuple)(e,"items")};t.default=n},88258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(98545),n=r(67612),a=r(44824),i=r(42279),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:s,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===s.additionalProperties&&i.default.code(new o.KeywordCxt(l,i.default,"additionalProperties"));const u=(0,n.allSchemaProperties)(r);for(const e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=a.mergeEvaluated.props(t,(0,a.toHash)(u),l.props));const p=u.filter((e=>!(0,a.alwaysValidSchema)(l,r[e])));if(0===p.length)return;const d=t.name("valid");for(const r of p)h(r)?f(r):(t.if((0,n.propertyInData)(t,c,r,l.opts.ownProperties)),f(r),l.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(d);function h(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function f(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=s},65908:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>o._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:a,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return;const s=t.name("valid");t.forIn("key",a,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},s),t.if((0,o.not)(s),(()=>{e.error(!0),i.allErrors||t.break()}))})),e.ok(s)}};t.default=a},44949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(44824),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,o.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=n},67612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const o=r(78036),n=r(44824),a=r(414),i=r(44824);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:o._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return o._`${s(e)}.call(${t}, ${r})`}function l(e,t,r,n){const a=o._`${t}${(0,o.getProperty)(r)} === undefined`;return n?(0,o.or)(a,(0,o.not)(c(e,t,r))):a}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:n,it:a}=e;r.if(l(r,n,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:o._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},n,a){return(0,o.or)(...n.map((n=>(0,o.and)(l(e,t,n,r.ownProperties),o._`${a} = ${n}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=c,t.propertyInData=function(e,t,r,n){const a=o._`${t}${(0,o.getProperty)(r)} !== undefined`;return n?o._`${a} && ${c(e,t,r)}`:a},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,n.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:c},l,u,p){const d=p?o._`${e}, ${t}, ${n}${i}`:t,h=[[a.default.instancePath,(0,o.strConcat)(a.default.instancePath,s)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];c.opts.dynamicRef&&h.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const f=o._`${d}, ${r.object(...h)}`;return u!==o.nil?o._`${l}.call(${u}, ${f})`:o._`${l}(${f})`};const p=o._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:a}=t.code,s=a(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:o._`${"new RegExp"===a.code?p:(0,i.useFunc)(e,a)}(${r}, ${n})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:a,it:i}=e,s=t.name("valid");if(i.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(s,!0),c((()=>t.break())),s;function c(i){const c=t.const("len",o._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:n.Type.Num},s),t.if((0,o.not)(s),i)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:a,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,n.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,n)=>{const i=e.subschema({keyword:a,schemaProp:n,compositeRule:!0},c);t.assign(s,o._`${s} || ${c}`);e.mergeValidEvaluated(i,c)||t.if((0,o.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},37720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},87853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(37720),n=r(45196),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",o.default,n.default];t.default=a},45196:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const o=r(84482),n=r(67612),a=r(78036),i=r(414),s=r(51750),c=r(44824),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:c,validateName:l,opts:d,self:h}=n,{root:f}=c;if(("#"===r||"#/"===r)&&i===f.baseId)return function(){if(c===f)return p(e,l,c,c.$async);const r=t.scopeValue("root",{ref:f});return p(e,a._`${r}.validate`,f,f.$async)}();const m=s.resolveRef.call(h,f,i,r);if(void 0===m)throw new o.default(n.opts.uriResolver,i,r);return m instanceof s.SchemaEnv?function(t){const r=u(e,t);p(e,r,t,t.$async)}(m):function(o){const n=t.scopeValue("schema",!0===d.code.source?{ref:o,code:(0,a.stringify)(o)}:{ref:o}),i=t.name("valid"),s=e.subschema({schema:o,dataTypes:[],schemaPath:a.nil,topSchemaRef:n,errSchemaPath:r},i);e.mergeEvaluated(s),e.ok(i)}(m)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):a._`${r.scopeValue("wrapper",{ref:t})}.validate`}function p(e,t,r,o){const{gen:s,it:l}=e,{allErrors:u,schemaEnv:p,opts:d}=l,h=d.passContext?i.default.this:a.nil;function f(e){const t=a._`${e}.errors`;s.assign(i.default.vErrors,a._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),s.assign(i.default.errors,a._`${i.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const o=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(o&&!o.dynamicProps)void 0!==o.props&&(l.props=c.mergeEvaluated.props(s,o.props,l.props));else{const t=s.var("props",a._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(s,t,l.props,a.Name)}if(!0!==l.items)if(o&&!o.dynamicItems)void 0!==o.items&&(l.items=c.mergeEvaluated.items(s,o.items,l.items));else{const t=s.var("items",a._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(s,t,l.items,a.Name)}}o?function(){if(!p.$async)throw new Error("async schema referenced by sync schema");const r=s.let("valid");s.try((()=>{s.code(a._`await ${(0,n.callValidateCode)(e,t,h)}`),m(t),u||s.assign(r,!0)}),(e=>{s.if(a._`!(${e} instanceof ${l.ValidationError})`,(()=>s.throw(e))),f(e),u||s.assign(r,!1)})),e.ok(r)}():e.result((0,n.callValidateCode)(e,t,h),(()=>m(t)),(()=>f(t)))}t.getValidate=u,t.callRef=p,t.default=l},82894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(69891),a=r(51750),i=r(44824),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>o._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:s,parentSchema:c,it:l}=e,{oneOf:u}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=s.propertyName;if("string"!=typeof p)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),h=t.const("tag",o._`${r}${(0,o.getProperty)(p)}`);function f(r){const n=t.name("valid"),a=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(a,o.Name),n}t.if(o._`typeof ${h} == "string"`,(()=>function(){const r=function(){var e;const t={},r=n(c);let o=!0;for(let t=0;t<u.length;t++){let c=u[t];(null==c?void 0:c.$ref)&&!(0,i.schemaHasRulesButRef)(c,l.self.RULES)&&(c=a.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,null==c?void 0:c.$ref),c instanceof a.SchemaEnv&&(c=c.schema));const d=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[p];if("object"!=typeof d)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);o=o&&(r||n(c)),s(d,t)}if(!o)throw new Error(`discriminator: "${p}" must be required`);return t;function n({required:e}){return Array.isArray(e)&&e.includes(p)}function s(e,t){if(e.const)d(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`);for(const r of e.enum)d(r,t)}}function d(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${p}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(o._`${h} === ${e}`),t.assign(d,f(r[e]));t.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:h,tagName:p}),t.endIf()}()),(()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:h,tagName:p}))),e.ok(d)}};t.default=s},69891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(87853),n=r(6913),a=r(84415),i=r(20129),s=r(23844),c=[o.default,n.default,(0,a.default)(),i.default,s.metadataVocabulary,s.contentVocabulary];t.default=c},18602:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match format "${e}"`,params:({schemaCode:e})=>o._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:a,schema:i,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:p,self:d}=c;l.validateFormats&&(a?function(){const a=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),i=r.const("fDef",o._`${a}[${s}]`),c=r.let("fType"),u=r.let("format");r.if(o._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>r.assign(c,o._`${i}.type || "string"`).assign(u,o._`${i}.validate`)),(()=>r.assign(c,o._`"string"`).assign(u,i))),e.fail$data((0,o.or)(!1===l.strictSchema?o.nil:o._`${s} && !${u}`,function(){const e=p.$async?o._`(${i}.async ? await ${u}(${n}) : ${u}(${n}))`:o._`${u}(${n})`,r=o._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return o._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const a=d.formats[i];if(!a)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${u}"`}}();if(!0===a)return;const[s,c,h]=function(e){const t=e instanceof RegExp?(0,o.regexpCode)(e):l.code.formats?o._`${l.code.formats}${(0,o.getProperty)(i)}`:void 0,n=r.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,o._`${n}.validate`];return["string",e,n]}(a);s===t&&e.pass(function(){if("object"==typeof a&&!(a instanceof RegExp)&&a.async){if(!p.$async)throw new Error("async format in sync schema");return o._`await ${h}(${n})`}return"function"==typeof c?o._`${h}(${n})`:o._`${h}.test(${n})`}())}())}};t.default=n},20129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=[r(18602).default];t.default=o},23844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},18482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a=r(28015),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>o._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:i,schemaCode:s,schema:c}=e;i||c&&"object"==typeof c?e.fail$data(o._`!${(0,n.useFunc)(t,a.default)}(${r}, ${s})`):e.fail(o._`${c} !== ${r}`)}};t.default=i},38920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a=r(28015),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>o._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:i,schema:s,schemaCode:c,it:l}=e;if(!i&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=l.opts.loopEnum;let p;const d=()=>null!=p?p:p=(0,n.useFunc)(t,a.default);let h;if(u||i)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",c,(e=>t.if(o._`${d()}(${r}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,o.or)(...s.map(((t,n)=>function(e,t){const n=s[t];return"object"==typeof n&&null!==n?o._`${d()}(${r}, ${e}[${t}])`:o._`${r} === ${n}`}(e,n))))}e.pass(h)}};t.default=i},6913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(84435),n=r(70428),a=r(45770),i=r(90799),s=r(82151),c=r(56208),l=r(8448),u=r(38676),p=r(18482),d=r(38920),h=[o.default,n.default,a.default,i.default,s.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];t.default=h},8448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return o.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>o._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,a="maxItems"===t?o.operators.GT:o.operators.LT;e.fail$data(o._`${r}.length ${a} ${n}`)}};t.default=n},45770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=r(44824),a=r(75870),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return o.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>o._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i,it:s}=e,c="maxLength"===t?o.operators.GT:o.operators.LT,l=!1===s.opts.unicode?o._`${r}.length`:o._`${(0,n.useFunc)(e.gen,a.default)}(${r})`;e.fail$data(o._`${l} ${c} ${i}`)}};t.default=i},84435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n=o.operators,a={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:e,schemaCode:t})=>o.str`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>o._`{comparison: ${a[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(o._`${r} ${a[t].fail} ${n} || isNaN(${r})`)}};t.default=s},82151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return o.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>o._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,a="maxProperties"===t?o.operators.GT:o.operators.LT;e.fail$data(o._`Object.keys(${r}).length ${a} ${n}`)}};t.default=n},70428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(78036),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>o.str`must be multiple of ${e}`,params:({schemaCode:e})=>o._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:a}=e,i=a.opts.multipleOfPrecision,s=t.let("res"),c=i?o._`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:o._`${s} !== parseInt(${s})`;e.fail$data(o._`(${n} === 0 || (${s} = ${r}/${n}, ${c}))`)}};t.default=n},90799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(67612),n=r(78036),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match pattern "${e}"`,params:({schemaCode:e})=>n._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:a,schemaCode:i,it:s}=e,c=s.opts.unicodeRegExp?"u":"",l=r?n._`(new RegExp(${i}, ${c}))`:(0,o.usePattern)(e,a);e.fail$data(n._`!${l}.test(${t})`)}};t.default=a},56208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(67612),n=r(78036),a=r(44824),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>n.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>n._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:i,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===r.length)return;const p=r.length>=u.loopRequired;if(l.allErrors?function(){if(p||c)e.block$data(n.nil,d);else for(const t of r)(0,o.checkReportMissingProp)(e,t)}():function(){const a=t.let("missing");if(p||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,i,(()=>{t.assign(a,(0,o.propertyInData)(t,s,r,u.ownProperties)),t.if((0,n.not)(a),(()=>{e.error(),t.break()}))}),n.nil)}(a,r))),e.ok(r)}else t.if((0,o.checkMissingProp)(e,r,a)),(0,o.reportMissingProp)(e,a),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:o}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!o.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,a.checkStrictMode)(l,t,l.opts.strictRequired)}}function d(){t.forOf("prop",i,(r=>{e.setParams({missingProperty:r}),t.if((0,o.noPropertyInData)(t,s,r,u.ownProperties),(()=>e.error()))}))}}};t.default=i},38676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(4085),n=r(78036),a=r(44824),i=r(28015),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>n.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>n._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:s,schema:c,parentSchema:l,schemaCode:u,it:p}=e;if(!s&&!c)return;const d=t.let("valid"),h=l.items?(0,o.getSchemaTypes)(l.items):[];function f(a,i){const s=t.name("item"),c=(0,o.checkDataTypes)(h,s,p.opts.strictNumbers,o.DataType.Wrong),l=t.const("indices",n._`{}`);t.for(n._`;${a}--;`,(()=>{t.let(s,n._`${r}[${a}]`),t.if(c,n._`continue`),h.length>1&&t.if(n._`typeof ${s} == "string"`,n._`${s} += "_"`),t.if(n._`typeof ${l}[${s}] == "number"`,(()=>{t.assign(i,n._`${l}[${s}]`),e.error(),t.assign(d,!1).break()})).code(n._`${l}[${s}] = ${a}`)}))}function m(o,s){const c=(0,a.useFunc)(t,i.default),l=t.name("outer");t.label(l).for(n._`;${o}--;`,(()=>t.for(n._`${s} = ${o}; ${s}--;`,(()=>t.if(n._`${c}(${r}[${o}], ${r}[${s}])`,(()=>{e.error(),t.assign(d,!1).break(l)}))))))}e.block$data(d,(function(){const o=t.let("i",n._`${r}.length`),a=t.let("j");e.setParams({i:o,j:a}),t.assign(d,!0),t.if(n._`${o} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?f:m)(o,a)))}),n._`${u} === false`),e.ok(d)}};t.default=s},51879:e=>{"use strict";var t=e.exports=function(e,t,o){"function"==typeof t&&(o=t,t={}),r(t,"function"==typeof(o=t.cb||o)?o:o.pre||function(){},o.post||function(){},e,"",e)};function r(e,o,n,a,i,s,c,l,u,p){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var d in o(a,i,s,c,l,u,p),a){var h=a[d];if(Array.isArray(h)){if(d in t.arrayKeywords)for(var f=0;f<h.length;f++)r(e,o,n,h[f],i+"/"+d+"/"+f,s,i,d,a,f)}else if(d in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)r(e,o,n,h[m],i+"/"+d+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),s,i,d,a,m)}else(d in t.keywords||e.allKeys&&!(d in t.skipKeywords))&&r(e,o,n,h,i+"/"+d,s,i,d,a)}n(a,i,s,c,l,u,p)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},69749:(e,t,r)=>{"use strict";const o=r(28799),n=Symbol("max"),a=Symbol("length"),i=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),f=()=>1;const m=(e,t,r)=>{const o=e[d].get(t);if(o){const t=o.value;if(v(e,t)){if(y(e,o),!e[s])return}else r&&(e[h]&&(o.value.now=Date.now()),e[p].unshiftNode(o));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},g=e=>{if(e[a]>e[n])for(let t=e[p].tail;e[a]>e[n]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[a]-=r.length,e[d].delete(r.key),e[p].removeNode(t)}};class b{constructor(e,t,r,o,n){this.key=e,this.value=t,this.length=r,this.now=o,this.maxAge=n||0}}const w=(e,t,r,o)=>{let n=r.value;v(e,n)&&(y(e,r),e[s]||(n=void 0)),n&&t.call(o,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||f;if(this[i]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,g(this)}get max(){return this[n]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,g(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[i]&&(this[i]=e,this[a]=0,this[p].forEach((e=>{e.length=this[i](e.value,e.key),this[a]+=e.length}))),g(this)}get lengthCalculator(){return this[i]}get length(){return this[a]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let r=this[p].tail;null!==r;){const o=r.prev;w(this,e,r,t),r=o}}forEach(e,t){t=t||this;for(let r=this[p].head;null!==r;){const o=r.next;w(this,e,r,t),r=o}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[l]&&this[p]&&this[p].length&&this[p].forEach((e=>this[l](e.key,e.value))),this[d]=new Map,this[p]=new o,this[a]=0}dump(){return this[p].map((e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const o=r?Date.now():0,s=this[i](t,e);if(this[d].has(e)){if(s>this[n])return y(this,this[d].get(e)),!1;const i=this[d].get(e).value;return this[l]&&(this[u]||this[l](e,i.value)),i.now=o,i.maxAge=r,i.value=t,this[a]+=s-i.length,i.length=s,this.get(e),g(this),!0}const h=new b(e,t,s,o,r);return h.length>this[n]?(this[l]&&this[l](e,t),!1):(this[a]+=h.length,this[p].unshift(h),this[d].set(e,this[p].head),g(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[p].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const o=e[r],n=o.e||0;if(0===n)this.set(o.k,o.v);else{const e=n-t;e>0&&this.set(o.k,o.v,e)}}}prune(){this[d].forEach(((e,t)=>m(this,t,!1)))}}},7598:(e,t,r)=>{
|
|
35
|
+
/*!
|
|
36
|
+
* mime-db
|
|
37
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
38
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
39
|
+
* MIT Licensed
|
|
40
|
+
*/
|
|
41
|
+
e.exports=r(81813)},86049:(e,t,r)=>{"use strict";
|
|
42
|
+
/*!
|
|
43
|
+
* mime-types
|
|
44
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
45
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
46
|
+
* MIT Licensed
|
|
47
|
+
*/var o,n,a,i=r(7598),s=r(16928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),r=t&&i[t[1].toLowerCase()];return r&&r.charset?r.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=u,t.charsets={lookup:u},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var r=-1===e.indexOf("/")?t.lookup(e):e;if(!r)return!1;if(-1===r.indexOf("charset")){var o=t.charset(r);o&&(r+="; charset="+o.toLowerCase())}return r},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var r=c.exec(e),o=r&&t.extensions[r[1].toLowerCase()];if(!o||!o.length)return!1;return o[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var r=s("x."+e).toLowerCase().substr(1);if(!r)return!1;return t.types[r]||!1},t.types=Object.create(null),o=t.extensions,n=t.types,a=["nginx","apache",void 0,"iana"],Object.keys(i).forEach((function(e){var t=i[e],r=t.extensions;if(r&&r.length){o[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(n[c]){var l=a.indexOf(i[n[c]].source),u=a.indexOf(t.source);if("application/octet-stream"!==n[c]&&(l>u||l===u&&"application/"===n[c].substr(0,12)))continue}n[c]=e}}}))},6585:e=>{var t=1e3,r=60*t,o=60*r,n=24*o,a=7*n,i=365.25*n;function s(e,t,r,o){var n=t>=1.5*r;return Math.round(e/r)+" "+o+(n?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var a=Math.abs(e);if(a>=n)return s(e,a,n,"day");if(a>=o)return s(e,a,o,"hour");if(a>=r)return s(e,a,r,"minute");if(a>=t)return s(e,a,t,"second");return e+" ms"}(e):function(e){var a=Math.abs(e);if(a>=n)return Math.round(e/n)+"d";if(a>=o)return Math.round(e/o)+"h";if(a>=r)return Math.round(e/r)+"m";if(a>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},81297:(e,t,r)=>{"use strict";
|
|
48
|
+
/*!
|
|
49
|
+
* negotiator
|
|
50
|
+
* Copyright(c) 2012 Federico Romero
|
|
51
|
+
* Copyright(c) 2012-2014 Isaac Z. Schlueter
|
|
52
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
53
|
+
* MIT Licensed
|
|
54
|
+
*/var o=r(25097),n=r(38736),a=r(56199),i=r(84493);function s(e){if(!(this instanceof s))return new s(e);this.request=e}e.exports=s,e.exports.Negotiator=s,s.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},s.prototype.charsets=function(e){return o(this.request.headers["accept-charset"],e)},s.prototype.encoding=function(e){var t=this.encodings(e);return t&&t[0]},s.prototype.encodings=function(e){return n(this.request.headers["accept-encoding"],e)},s.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},s.prototype.languages=function(e){return a(this.request.headers["accept-language"],e)},s.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},s.prototype.mediaTypes=function(e){return i(this.request.headers.accept,e)},s.prototype.preferredCharset=s.prototype.charset,s.prototype.preferredCharsets=s.prototype.charsets,s.prototype.preferredEncoding=s.prototype.encoding,s.prototype.preferredEncodings=s.prototype.encodings,s.prototype.preferredLanguage=s.prototype.language,s.prototype.preferredLanguages=s.prototype.languages,s.prototype.preferredMediaType=s.prototype.mediaType,s.prototype.preferredMediaTypes=s.prototype.mediaTypes},25097:e=>{"use strict";e.exports=n,e.exports.preferredCharsets=n;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e,r){var o=t.exec(e);if(!o)return null;var n=o[1],a=1;if(o[2])for(var i=o[2].split(";"),s=0;s<i.length;s++){var c=i[s].trim().split("=");if("q"===c[0]){a=parseFloat(c[1]);break}}return{charset:n,q:a,i:r}}function o(e,t,r){var o=0;if(t.charset.toLowerCase()===e.toLowerCase())o|=1;else if("*"!==t.charset)return null;return{i:r,o:t.i,q:t.q,s:o}}function n(e,t){var n=function(e){for(var t=e.split(","),o=0,n=0;o<t.length;o++){var a=r(t[o].trim(),o);a&&(t[n++]=a)}return t.length=n,t}(void 0===e?"*":e||"");if(!t)return n.filter(s).sort(a).map(i);var c=t.map((function(e,t){return function(e,t,r){for(var n={o:-1,q:0,s:0},a=0;a<t.length;a++){var i=o(e,t[a],r);i&&(n.s-i.s||n.q-i.q||n.o-i.o)<0&&(n=i)}return n}(e,n,t)}));return c.filter(s).sort(a).map((function(e){return t[c.indexOf(e)]}))}function a(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function i(e){return e.charset}function s(e){return e.q>0}},38736:e=>{"use strict";e.exports=n,e.exports.preferredEncodings=n;var t=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function r(e,r){var o=t.exec(e);if(!o)return null;var n=o[1],a=1;if(o[2])for(var i=o[2].split(";"),s=0;s<i.length;s++){var c=i[s].trim().split("=");if("q"===c[0]){a=parseFloat(c[1]);break}}return{encoding:n,q:a,i:r}}function o(e,t,r){var o=0;if(t.encoding.toLowerCase()===e.toLowerCase())o|=1;else if("*"!==t.encoding)return null;return{i:r,o:t.i,q:t.q,s:o}}function n(e,t){var n=function(e){for(var t=e.split(","),n=!1,a=1,i=0,s=0;i<t.length;i++){var c=r(t[i].trim(),i);c&&(t[s++]=c,n=n||o("identity",c),a=Math.min(a,c.q||1))}return n||(t[s++]={encoding:"identity",q:a,i}),t.length=s,t}(e||"");if(!t)return n.filter(s).sort(a).map(i);var c=t.map((function(e,t){return function(e,t,r){for(var n={o:-1,q:0,s:0},a=0;a<t.length;a++){var i=o(e,t[a],r);i&&(n.s-i.s||n.q-i.q||n.o-i.o)<0&&(n=i)}return n}(e,n,t)}));return c.filter(s).sort(a).map((function(e){return t[c.indexOf(e)]}))}function a(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function i(e){return e.encoding}function s(e){return e.q>0}},56199:e=>{"use strict";e.exports=n,e.exports.preferredLanguages=n;var t=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function r(e,r){var o=t.exec(e);if(!o)return null;var n=o[1],a=o[2],i=n;a&&(i+="-"+a);var s=1;if(o[3])for(var c=o[3].split(";"),l=0;l<c.length;l++){var u=c[l].split("=");"q"===u[0]&&(s=parseFloat(u[1]))}return{prefix:n,suffix:a,q:s,i:r,full:i}}function o(e,t,o){var n=r(e);if(!n)return null;var a=0;if(t.full.toLowerCase()===n.full.toLowerCase())a|=4;else if(t.prefix.toLowerCase()===n.full.toLowerCase())a|=2;else if(t.full.toLowerCase()===n.prefix.toLowerCase())a|=1;else if("*"!==t.full)return null;return{i:o,o:t.i,q:t.q,s:a}}function n(e,t){var n=function(e){for(var t=e.split(","),o=0,n=0;o<t.length;o++){var a=r(t[o].trim(),o);a&&(t[n++]=a)}return t.length=n,t}(void 0===e?"*":e||"");if(!t)return n.filter(s).sort(a).map(i);var c=t.map((function(e,t){return function(e,t,r){for(var n={o:-1,q:0,s:0},a=0;a<t.length;a++){var i=o(e,t[a],r);i&&(n.s-i.s||n.q-i.q||n.o-i.o)<0&&(n=i)}return n}(e,n,t)}));return c.filter(s).sort(a).map((function(e){return t[c.indexOf(e)]}))}function a(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function i(e){return e.full}function s(e){return e.q>0}},84493:e=>{"use strict";e.exports=a,e.exports.preferredMediaTypes=a;var t=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function r(e){for(var t=function(e){for(var t=e.split(","),r=1,o=0;r<t.length;r++)l(t[o])%2==0?t[++o]=t[r]:t[o]+=","+t[r];return t.length=o+1,t}(e),r=0,n=0;r<t.length;r++){var a=o(t[r].trim(),r);a&&(t[n++]=a)}return t.length=n,t}function o(e,r){var o=t.exec(e);if(!o)return null;var n=Object.create(null),a=1,i=o[2],s=o[1];if(o[3])for(var c=function(e){for(var t=e.split(";"),r=1,o=0;r<t.length;r++)l(t[o])%2==0?t[++o]=t[r]:t[o]+=";"+t[r];t.length=o+1;for(r=0;r<t.length;r++)t[r]=t[r].trim();return t}(o[3]).map(u),p=0;p<c.length;p++){var d=c[p],h=d[0].toLowerCase(),f=d[1],m=f&&'"'===f[0]&&'"'===f[f.length-1]?f.substr(1,f.length-2):f;if("q"===h){a=parseFloat(m);break}n[h]=m}return{type:s,subtype:i,params:n,q:a,i:r}}function n(e,t,r){var n=o(e),a=0;if(!n)return null;if(t.type.toLowerCase()==n.type.toLowerCase())a|=4;else if("*"!=t.type)return null;if(t.subtype.toLowerCase()==n.subtype.toLowerCase())a|=2;else if("*"!=t.subtype)return null;var i=Object.keys(t.params);if(i.length>0){if(!i.every((function(e){return"*"==t.params[e]||(t.params[e]||"").toLowerCase()==(n.params[e]||"").toLowerCase()})))return null;a|=1}return{i:r,o:t.i,q:t.q,s:a}}function a(e,t){var o=r(void 0===e?"*/*":e||"");if(!t)return o.filter(c).sort(i).map(s);var a=t.map((function(e,t){return function(e,t,r){for(var o={o:-1,q:0,s:0},a=0;a<t.length;a++){var i=n(e,t[a],r);i&&(o.s-i.s||o.q-i.q||o.o-i.o)<0&&(o=i)}return o}(e,o,t)}));return a.filter(c).sort(i).map((function(e){return t[a.indexOf(e)]}))}function i(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function s(e){return e.type+"/"+e.subtype}function c(e){return e.q>0}function l(e){for(var t=0,r=0;-1!==(r=e.indexOf('"',r));)t++,r++;return t}function u(e){var t,r,o=e.indexOf("=");return-1===o?t=e:(t=e.substr(0,o),r=e.substr(o+1)),[t,r]}},45228:e=>{"use strict";
|
|
55
|
+
/*
|
|
56
|
+
object-assign
|
|
57
|
+
(c) Sindre Sorhus
|
|
58
|
+
@license MIT
|
|
59
|
+
*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,s,c=n(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))r.call(i,u)&&(c[u]=i[u]);if(t){s=t(i);for(var p=0;p<s.length;p++)o.call(i,s[p])&&(c[s[p]]=i[s[p]])}}return c}},35488:(e,t,r)=>{var o=r(76982),n=r(64196),a=r(2455),i=r(93382);o.pbkdf2Sync&&-1!==o.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=function(e,t,r,s,c){return n(r,s),e=i(e,a,"Password"),t=i(t,a,"Salt"),c=c||"sha1",o.pbkdf2Sync(e,t,r,s,c)},t.pbkdf2=function(e,t,r,s,c,l){if(n(r,s),e=i(e,a,"Password"),t=i(t,a,"Salt"),"function"==typeof c&&(l=c,c="sha1"),"function"!=typeof l)throw new Error("No callback provided to pbkdf2");return o.pbkdf2(e,t,r,s,c,l)}):(t.pbkdf2Sync=r(40681),t.pbkdf2=r(43832))},43832:(e,t,r)=>{var o,n,a=r(92861).Buffer,i=r(64196),s=r(2455),c=r(40681),l=r(93382),u=global.crypto&&global.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return n||(n=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function f(e,t,r,o,n){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,o<<3)})).then((function(e){return a.from(e)}))}e.exports=function(e,t,r,n,m,v){"function"==typeof m&&(v=m,m=void 0);var g=p[(m=m||"sha1").toLowerCase()];if(g&&"function"==typeof global.Promise){if(i(r,n),e=l(e,s,"Password"),t=l(t,s,"Salt"),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(global.process&&!global.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=f(o=o||a.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=t,t}(g).then((function(o){return o?f(e,t,r,n,g):c(e,t,r,n,m)})),v)}else h()((function(){var o;try{o=c(e,t,r,n,m)}catch(e){return v(e)}v(null,o)}))}},2455:e=>{var t;if(global.process&&global.process.browser)t="utf-8";else if(global.process&&global.process.version){t=parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else t="utf-8";e.exports=t},64196:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!=r)throw new TypeError("Bad key length")}},40681:(e,t,r)=>{var o={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},n=r(6815),a=r(92861).Buffer,i=r(64196),s=r(2455),c=r(93382);e.exports=function(e,t,r,l,u){i(r,l),e=c(e,s,"Password"),t=c(t,s,"Salt"),u=u||"sha1";var p=a.allocUnsafe(l),d=a.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,f=o[u],m=Math.ceil(l/f),v=1;v<=m;v++){d.writeUInt32BE(v,t.length);for(var g=n(u,e).update(d).digest(),y=g,b=1;b<r;b++){y=n(u,e).update(y).digest();for(var w=0;w<f;w++)g[w]^=y[w]}g.copy(p,h),h+=f}return p}},93382:(e,t,r)=>{var o=r(92861).Buffer;e.exports=function(e,t,r){if(o.isBuffer(e))return e;if("string"==typeof e)return o.from(e,t);if(ArrayBuffer.isView(e))return o.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},16437:(e,t,r)=>{"use strict";const o=r(55026),n=r(98409),a=r(47079);e.exports={err:o,mapHttpRequest:n.mapHttpRequest,mapHttpResponse:a.mapHttpResponse,req:n.reqSerializer,res:a.resSerializer,wrapErrorSerializer:function(e){return e===o?e:function(t){return e(o(t))}},wrapRequestSerializer:function(e){return e===n.reqSerializer?e:function(t){return e(n.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===a.resSerializer?e:function(t){return e(a.resSerializer(t))}}}},55026:e=>{"use strict";e.exports=function e(o){if(!(o instanceof Error))return o;o[r]=void 0;const a=Object.create(n);a.type="[object Function]"===t.call(o.constructor)?o.constructor.name:o.name,a.message=o.message,a.stack=o.stack;for(const t in o)if(void 0===a[t]){const n=o[t];n instanceof Error?n.hasOwnProperty(r)||(a[t]=e(n)):a[t]=n}return delete o[r],a.raw=o,a};const{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),o=Symbol("pino-raw-err-ref"),n=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[o]},set:function(e){this[o]=e}}});Object.defineProperty(n,o,{writable:!0,value:{}})},98409:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:o(e)}},reqSerializer:o};const t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function o(e){const t=e.info||e.socket,o=Object.create(r);return o.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),o.method=e.method,e.originalUrl?(o.url=e.originalUrl,o.query=e.query,o.params=e.params):o.url=e.path||(e.url?e.url.path||e.url:void 0),o.headers=e.headers,o.remoteAddress=t&&t.remoteAddress,o.remotePort=t&&t.remotePort,o.raw=e.raw||e,o}Object.defineProperty(r,t,{writable:!0,value:{}})},47079:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:o(e)}},resSerializer:o};const t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function o(e){const t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},39502:(e,t,r)=>{"use strict";const o=r(6187)();e.exports=o;const n="PinoWarning";o.create(n,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),o.create(n,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),o.create(n,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),o.create(n,"PINODEP007","bindings.level is deprecated, use options.level option instead")},10754:(e,t,r)=>{"use strict";const o=r(10061),{lsCacheSym:n,levelValSym:a,useOnlyCustomLevelsSym:i,streamSym:s,formattersSym:c,hooksSym:l}=r(70544),{noop:u,genLog:p}=r(76526),d={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},h={fatal:e=>{const t=p(d.fatal,e);return function(...e){const r=this[s];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>p(d.error,e),warn:e=>p(d.warn,e),info:e=>p(d.info,e),debug:e=>p(d.debug,e),trace:e=>p(d.trace,e)},f=Object.keys(d).reduce(((e,t)=>(e[d[t]]=t,e)),{}),m=Object.keys(f).reduce(((e,t)=>(e[t]=o('{"level":'+Number(t)),e)),{});function v(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}e.exports={initialLsCache:m,genLsCache:function(e){const t=e[c].level,{labels:r}=e.levels,o={};for(const e in r){const n=t(r[e],Number(e));o[e]=JSON.stringify(n).slice(0,-1)}return e[n]=o,e},levelMethods:h,getLevel:function(e){const{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""},setLevel:function(e){const{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);const o=this[a],n=this[a]=r[e],s=this[i],c=this[l].logMethod;for(const e in r)n>r[e]?this[e]=u:this[e]=v(e,s)?h[e](c):p(r[e],c);this.emit("level-change",e,n,t[o],o)},isLevelEnabled:function(e){const{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[a]},mappings:function(e=null,t=!1){const r=e?Object.keys(e).reduce(((t,r)=>(t[e[r]]=r,t)),{}):null;return{labels:Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:f,r),values:Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:d,e)}},assertNoLevelCollisions:function(e,t){const{labels:r,values:o}=e;for(const e in t){if(e in o)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}},assertDefaultLevelFound:function(e,t,r){if("number"==typeof e){if(![].concat(Object.keys(t||{}).map((e=>t[e])),r?[]:Object.keys(f).map((e=>+e)),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}if(!(e in Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:d,t)))throw Error(`default level:${e} must be included in custom levels`)}}},55660:(e,t,r)=>{"use strict";const{version:o}=r(53550);e.exports={version:o}},38687:(e,t,r)=>{"use strict";const{EventEmitter:o}=r(24434),n=r(4037),a=r(10061),i=r(39502),{lsCacheSym:s,levelValSym:c,setLevelSym:l,getLevelSym:u,chindingsSym:p,parsedChindingsSym:d,mixinSym:h,asJsonSym:f,writeSym:m,mixinMergeStrategySym:v,timeSym:g,timeSliceIndexSym:y,streamSym:b,serializersSym:w,formattersSym:x,useOnlyCustomLevelsSym:k,needsMetadataGsym:_,redactFmtSym:E,stringifySym:S,formatOptsSym:P,stringifiersSym:T}=r(70544),{getLevel:O,setLevel:j,isLevelEnabled:R,mappings:I,initialLsCache:C,genLsCache:A,assertNoLevelCollisions:N}=r(10754),{asChindings:$,asJson:L,buildFormatters:D,stringify:z}=r(76526),{version:B}=r(55660),q=r(28624),F={constructor:class{},child:function(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};const r=this[w],o=this[x],n=Object.create(this);!0===e.hasOwnProperty("serializers")&&(i.emit("PINODEP004"),t.serializers=e.serializers);!0===e.hasOwnProperty("formatters")&&(i.emit("PINODEP005"),t.formatters=e.formatters);!0===e.hasOwnProperty("customLevels")&&(i.emit("PINODEP006"),t.customLevels=e.customLevels);!0===e.hasOwnProperty("level")&&(i.emit("PINODEP007"),t.level=e.level);if(!0===t.hasOwnProperty("serializers")){n[w]=Object.create(null);for(const e in r)n[w][e]=r[e];const e=Object.getOwnPropertySymbols(r);for(var a=0;a<e.length;a++){const t=e[a];n[w][t]=r[t]}for(const e in t.serializers)n[w][e]=t.serializers[e];const o=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<o.length;s++){const e=o[s];n[w][e]=t.serializers[e]}}else n[w]=r;if(t.hasOwnProperty("formatters")){const{level:e,bindings:r,log:a}=t.formatters;n[x]=D(e||o.level,r||M,a||o.log)}else n[x]=D(o.level,M,o.log);!0===t.hasOwnProperty("customLevels")&&(N(this.levels,t.customLevels),n.levels=I(t.customLevels,n[k]),A(n));if("object"==typeof t.redact&&null!==t.redact||Array.isArray(t.redact)){n.redact=t.redact;const e=q(n.redact,z),r={stringify:e[E]};n[S]=z,n[T]=e,n[P]=r}n[p]=$(n,e);const c=t.level||this.level;return n[l](c),n},bindings:function(){const e=`{${this[p].substr(1)}}`,t=JSON.parse(e);return delete t.pid,delete t.hostname,t},setBindings:function(e){const t=$(this,e);this[p]=t,delete this[d]},flush:function(){const e=this[b];"flush"in e&&e.flush()},isLevelEnabled:R,version:B,get level(){return this[u]()},set level(e){this[l](e)},get levelVal(){return this[c]},set levelVal(e){throw Error("levelVal is read-only")},[s]:C,[m]:function(e,t,r){const o=this[g](),i=this[h],s=this[v]||U,c=e instanceof Error;let l;null==e?l=i?i({}):{}:(l=s(e,i?i(e):{}),!t&&c&&(t=e.message),c&&(l.stack=e.stack,l.type||(l.type="Error")));const u=this[f](l,t,r,o),p=this[b];!0===p[_]&&(p.lastLevel=r,p.lastObj=l,p.lastMsg=t,p.lastTime=o.slice(this[y]),p.lastLogger=this);p instanceof n?p.write(u):p.write(a(u))},[f]:L,[u]:O,[l]:j};Object.setPrototypeOf(F,o.prototype),e.exports=function(){return Object.create(F)};const M=e=>e;function U(e,t){return Object.assign(t,e)}},28624:(e,t,r)=>{"use strict";const o=r(81423),{redactFmtSym:n,wildcardFirstSym:a}=r(70544),{rx:i,validator:s}=o,c=s({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),l="[Redacted]";e.exports=function(e,t){const{paths:r,censor:s}=function(e){if(Array.isArray(e))return c(e={paths:e,censor:l}),e;let{paths:t,censor:r=l,remove:o}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");!0===o&&(r=void 0);return c({paths:t,censor:r}),{paths:t,censor:r}}(e),u=r.reduce(((e,t)=>{i.lastIndex=0;const r=i.exec(t),o=i.exec(t);let n=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===n&&(n=a),null===o)return e[n]=null,e;if(null===e[n])return e;const{index:s}=o,c=`${t.substr(s,t.length-1)}`;return e[n]=e[n]||[],n!==a&&0===e[n].length&&e[n].push(...e[a]||[]),n===a&&Object.keys(e).forEach((function(t){e[t]&&e[t].push(c)})),e[n].push(c),e}),{}),p={[n]:o({paths:r,censor:s,serialize:t,strict:false})};return[...Object.keys(u),...Object.getOwnPropertySymbols(u)].reduce(((e,r)=>{if(null===u[r])e[r]=e=>((...e)=>t("function"==typeof s?s(...e):s))(e,[r]);else{const n="function"==typeof s?(e,t)=>s(e,[r,...t]):s;e[r]=o({paths:u[r],censor:n,serialize:t,strict:false})}return e}),p)}},70544:e=>{"use strict";const t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),o=Symbol("pino.levelVal"),n=Symbol("pino.useLevelLabels"),a=Symbol("pino.useOnlyCustomLevels"),i=Symbol("pino.mixin"),s=Symbol("pino.lsCache"),c=Symbol("pino.chindings"),l=Symbol("pino.parsedChindings"),u=Symbol("pino.asJson"),p=Symbol("pino.write"),d=Symbol("pino.redactFmt"),h=Symbol("pino.time"),f=Symbol("pino.timeSliceIndex"),m=Symbol("pino.stream"),v=Symbol("pino.stringify"),g=Symbol("pino.stringifiers"),y=Symbol("pino.end"),b=Symbol("pino.formatOpts"),w=Symbol("pino.messageKey"),x=Symbol("pino.nestedKey"),k=Symbol("pino.mixinMergeStrategy"),_=Symbol("pino.wildcardFirst"),E=Symbol.for("pino.serializers"),S=Symbol.for("pino.formatters"),P=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:o,useLevelLabelsSym:n,mixinSym:i,lsCacheSym:s,chindingsSym:c,parsedChindingsSym:l,asJsonSym:u,writeSym:p,serializersSym:E,redactFmtSym:d,timeSym:h,timeSliceIndexSym:f,streamSym:m,stringifySym:v,stringifiersSym:g,endSym:y,formatOptsSym:b,messageKeySym:w,nestedKeySym:x,wildcardFirstSym:_,needsMetadataGsym:T,useOnlyCustomLevelsSym:a,formattersSym:S,hooksSym:P,mixinMergeStrategySym:k}},64216:e=>{"use strict";e.exports={nullTime:()=>"",epochTime:()=>`,"time":${Date.now()}`,unixTime:()=>`,"time":${Math.round(Date.now()/1e3)}`,isoTime:()=>`,"time":"${new Date(Date.now()).toISOString()}"`}},76526:(e,t,r)=>{"use strict";const o=r(40793),{mapHttpRequest:n,mapHttpResponse:a}=r(16437),i=r(4037),s=r(78463),{lsCacheSym:c,chindingsSym:l,parsedChindingsSym:u,writeSym:p,serializersSym:d,formatOptsSym:h,endSym:f,stringifiersSym:m,stringifySym:v,wildcardFirstSym:g,needsMetadataGsym:y,redactFmtSym:b,streamSym:w,nestedKeySym:x,formattersSym:k,messageKeySym:_}=r(70544);function E(){}function S(e){let t="",r=0,o=!1,n=255;const a=e.length;if(a>100)return JSON.stringify(e);for(var i=0;i<a&&n>=32;i++)n=e.charCodeAt(i),34!==n&&92!==n||(t+=e.slice(r,i)+"\\",r=i,o=!0);return o?t+=e.slice(r):t=e,n<32?JSON.stringify(e):'"'+t+'"'}function P(e,t,o,n){if(t&&"function"==typeof t)return T((t=t.bind(n))(e),o,e);try{const t=r(8475).prettyFactory||r(8475);return t.asMetaWrapper=T,T(t(e),o,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function T(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let o=!1;return{[y]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||o||(o=!0,j(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){const e=this.lastLogger;let t=null;return e?(e.hasOwnProperty(u)?t=e[u]:(t=JSON.parse("{"+e[l].substr(1)+"}"),e[u]=t),t):null},write(r){const o=this.lastLogger,n=this.chindings();let a=this.lastTime;a=a.match(/^\d+/)?parseInt(a):a.slice(1,-1);const i=this.lastObj,s=this.lastMsg,c=o[k],l=c.log?c.log(i):i,u=o[_];s&&l&&!l.hasOwnProperty(u)&&(l[u]=s);const p=Object.assign({level:this.lastLevel,time:a},l,null),h=o[d],f=Object.keys(h);for(var v=0;v<f.length;v++){const e=f[v];void 0!==p[e]&&(p[e]=h[e](p[e]))}for(const e in n)p.hasOwnProperty(e)||(p[e]=n[e]);const g=o[m][b],y=e("function"==typeof g?g(p):p);void 0!==y&&(j(t,this),t.write(y))}}}function O(e){const t=new i(e);return t.on("error",(function e(r){if("EPIPE"===r.code)return t.write=E,t.end=E,t.flushSync=E,void(t.destroy=E);t.removeListener("error",e),t.emit("error",r)})),t}function j(e,t){!0===e[y]&&(e.lastLevel=t.lastLevel,e.lastMsg=t.lastMsg,e.lastObj=t.lastObj,e.lastTime=t.lastTime,e.lastLogger=t.lastLogger)}e.exports={noop:E,buildSafeSonicBoom:O,getPrettyStream:P,asChindings:function(e,t){let r,o=e[l];const n=e[v],a=e[m],i=a[g],s=e[d];t=(0,e[k].bindings)(t);for(const e in t){r=t[e];if(!0===("level"!==e&&"serializers"!==e&&"formatters"!==e&&"customLevels"!==e&&t.hasOwnProperty(e)&&void 0!==r)){if(r=s[e]?s[e](r):r,r=(a[e]||i||n)(r),void 0===r)continue;o+=',"'+e+'":'+r}}return o},asJson:function(e,t,r,o){const n=this[v],a=this[m],i=this[f],s=this[l],u=this[d],p=this[k],h=this[_];let y,b=this[c][r]+o;b+=s;const w=void 0===e.hasOwnProperty;p.log&&(e=p.log(e)),void 0!==t&&(e[h]=t);const x=a[g];for(const t in e)if(y=e[t],(w||e.hasOwnProperty(t))&&void 0!==y){y=u[t]?u[t](y):y;const e=a[t]||x;switch(typeof y){case"undefined":case"function":continue;case"number":!1===Number.isFinite(y)&&(y=null);case"boolean":e&&(y=e(y));break;case"string":y=(e||S)(y);break;default:y=(e||n)(y)}if(void 0===y)continue;b+=',"'+t+'":'+y}return b+i},genLog:function(e,t){return t?function(...o){t.call(this,o,r,e)}:r;function r(t,...r){if("object"==typeof t){let i,s=t;null!==t&&(t.method&&t.headers&&t.socket?t=n(t):"function"==typeof t.setHeader&&(t=a(t))),this[x]&&(t={[this[x]]:t}),null===s&&0===r.length?i=[null]:(s=r.shift(),i=r),this[p](t,o(s,i,this[h]),e)}else this[p](null,o(t,r,this[h]),e)}},createArgsNormalizer:function(e){return function(t,r={},o){if("string"==typeof r?(o=O({dest:r,sync:!0}),r={}):"string"==typeof o?o=O({dest:o,sync:!0}):(r instanceof i||r.writable||r._writableState)&&(o=r,r=null),"extreme"in(r=Object.assign({},e,r)))throw Error("The extreme option has been removed, use pino.destination({ sync: false }) instead");if("onTerminated"in r)throw Error("The onTerminated option has been removed, use pino.final instead");"changeLevelName"in r&&(process.emitWarning("The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.",{code:"changeLevelName_deprecation"}),r.levelKey=r.changeLevelName,delete r.changeLevelName);const{enabled:n,prettyPrint:a,prettifier:s,messageKey:c}=r;if(!1===n&&(r.level="silent"),(o=o||process.stdout)===process.stdout&&o.fd>=0&&!function(e){return e.write!==e.constructor.prototype.write}(o)&&(o=O({fd:o.fd,sync:!0})),a){o=P(Object.assign({messageKey:c},a),s,o,t)}return{opts:r,stream:o}}},final:function(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");const r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");const o=e[w];if("function"!=typeof o.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");const n=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),o.flushSync()}:e[t]});return r?(e=null,...r)=>{try{o.flushSync()}catch(e){}return t(e,n,...r)}:n},stringify:function(e){try{return JSON.stringify(e)}catch(t){return s(e)}},buildFormatters:function(e,t,r){return{level:e,bindings:t,log:r}}}},73125:(e,t,r)=>{"use strict";const o=r(70857),n=r(16437),a=r(28624),i=r(64216),s=r(38687),c=r(70544),{assertDefaultLevelFound:l,mappings:u,genLsCache:p}=r(10754),{createArgsNormalizer:d,asChindings:h,final:f,stringify:m,buildSafeSonicBoom:v,buildFormatters:g,noop:y}=r(76526),{version:b}=r(55660),{mixinMergeStrategySym:w}=r(70544),{chindingsSym:x,redactFmtSym:k,serializersSym:_,timeSym:E,timeSliceIndexSym:S,streamSym:P,stringifySym:T,stringifiersSym:O,setLevelSym:j,endSym:R,formatOptsSym:I,messageKeySym:C,nestedKeySym:A,mixinSym:N,useOnlyCustomLevelsSym:$,formattersSym:L,hooksSym:D}=c,{epochTime:z,nullTime:B}=i,{pid:q}=process,F=o.hostname(),M=n.err,U={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:q,hostname:F},serializers:Object.assign(Object.create(null),{err:M}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:z,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},H=d(U),V=Object.assign(Object.create(null),n);function K(...e){const t={},{opts:r,stream:o}=H(t,...e),{redact:n,crlf:i,serializers:c,timestamp:d,messageKey:f,nestedKey:v,base:b,name:q,level:F,customLevels:M,useLevelLabels:V,changeLevelName:K,levelKey:W,mixin:J,mixinMergeStrategy:Y,useOnlyCustomLevels:X,formatters:Q,hooks:Z}=r,ee=g(Q.level,Q.bindings,Q.log);!V||K||W?!K&&!W||V?(K||W)&&V&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ee.level=function(e){return function(t,r){return{[e]:t}}}(K||W)):(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ee.level=function(e){return function(t,r){return{[e]:r}}}(K||W)):(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ee.level=G),c[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ee.log=c[Symbol.for("pino.*")]),ee.bindings||(ee.bindings=U.formatters.bindings),ee.level||(ee.level=U.formatters.level);const te=n?a(n,m):{},re=n?{stringify:te[k]}:{stringify:m},oe="}"+(i?"\r\n":"\n"),ne=h.bind(null,{[x]:"",[_]:c,[O]:te,[T]:m,[L]:ee});let ae="";null!==b&&(ae=ne(void 0===q?b:Object.assign({},b,{name:q})));const ie=d instanceof Function?d:d?z:B,se=ie().indexOf(":")+1;if(X&&!M)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(J&&"function"!=typeof J)throw Error(`Unknown mixin type "${typeof J}" - expected "function"`);l(F,M,X);const ce=u(M,X);return Object.assign(t,{levels:ce,[$]:X,[P]:o,[E]:ie,[S]:se,[T]:m,[O]:te,[R]:oe,[I]:re,[C]:f,[A]:v,[_]:c,[N]:J,[w]:Y,[x]:ae,[L]:ee,[D]:Z,silent:y}),Object.setPrototypeOf(t,s()),p(t),t[j](F),t}function G(e,t){return{level:e}}e.exports=K,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),v({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,v(e)):v({dest:e,minLength:0,sync:!0}),e.exports.final=f,e.exports.levels=u(),e.exports.stdSerializers=V,e.exports.stdTimeFunctions=Object.assign({},i),e.exports.symbols=c,e.exports.version=b,e.exports.default=K,e.exports.pino=K},6187:(e,t,r)=>{"use strict";const{format:o}=r(39023);e.exports=function(){const e={},t=new Map;return{create:function(r,n,a){if(!r)throw new Error("Warning name must not be empty");if(!n)throw new Error("Warning code must not be empty");if(!a)throw new Error("Warning message must not be empty");if(n=n.toUpperCase(),void 0!==e[n])throw new Error(`The code '${n}' already exist`);return t.set(n,!1),e[n]=function(e,t,i){let s;return s=e&&t&&i?o(a,e,t,i):e&&t?o(a,e,t):e?o(a,e):a,{code:n,name:r,message:s}},e[n]},emit:function(r,o,n,a){if(void 0===e[r])throw new Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);const i=e[r](o,n,a);process.emitWarning(i.message,i.name,i.code)},emitted:t}}},21729:(e,t,r)=>{"use strict";
|
|
60
|
+
/*!
|
|
61
|
+
* proxy-addr
|
|
62
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
63
|
+
* MIT Licensed
|
|
64
|
+
*/e.exports=function(e,t){if(!e)throw new TypeError("req argument is required");if(!t)throw new TypeError("trust argument is required");var r=l(e,t);return r[r.length-1]},e.exports.all=l,e.exports.compile=u;var o=r(78295),n=r(30640),a=/^[0-9]+$/,i=n.isValid,s=n.parse,c={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function l(e,t){var r=o(e);if(!t)return r;"function"!=typeof t&&(t=u(t));for(var n=0;n<r.length-1;n++)t(r[n],n)||(r.length=n+1);return r}function u(e){if(!e)throw new TypeError("argument is required");var t,r,o,n,a,l,u,h,f;if("string"==typeof e)t=[e];else{if(!Array.isArray(e))throw new TypeError("unsupported trust argument");t=e.slice()}for(var m=0;m<t.length;m++)e=t[m],Object.prototype.hasOwnProperty.call(c,e)&&(e=c[e],t.splice.apply(t,[m,1].concat(e)),m+=e.length-1);return r=function(e){for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=p(e[r]);return t}(t),0===(o=r.length)?d:1===o?(a=r[0],l=a[0],u=l.kind(),h="ipv4"===u,f=a[1],function(e){if(!i(e))return!1;var t=s(e);if(t.kind()!==u){if(h&&!t.isIPv4MappedAddress())return!1;t=h?t.toIPv4Address():t.toIPv4MappedAddress()}return t.match(l,f)}):(n=r,function(e){if(!i(e))return!1;for(var t,r=s(e),o=r.kind(),a=0;a<n.length;a++){var c=n[a],l=c[0],u=l.kind(),p=c[1],d=r;if(o!==u){if("ipv4"===u&&!r.isIPv4MappedAddress())continue;t||(t="ipv4"===u?r.toIPv4Address():r.toIPv4MappedAddress()),d=t}if(d.match(l,p))return!0}return!1})}function p(e){var t=e.lastIndexOf("/"),r=-1!==t?e.substring(0,t):e;if(!i(r))throw new TypeError("invalid IP address: "+r);var o=s(r);-1===t&&"ipv6"===o.kind()&&o.isIPv4MappedAddress()&&(o=o.toIPv4Address());var n="ipv6"===o.kind()?128:32,c=-1!==t?e.substring(t+1,e.length):null;if((c=null===c?n:a.test(c)?parseInt(c,10):"ipv4"===o.kind()&&i(c)?function(e){var t=s(e);return"ipv4"===t.kind()?t.prefixLengthFromSubnetMask():null}(c):null)<=0||c>n)throw new TypeError("invalid range on address: "+e);return[o,c]}function d(){return!1}},79596:e=>{
|
|
65
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
66
|
+
let t;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:global):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},40793:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,o){var n=o&&o.stringify||t;if("object"==typeof e&&null!==e){var a=r.length+1;if(1===a)return e;var i=new Array(a);i[0]=n(e);for(var s=1;s<a;s++)i[s]=n(r[s]);return i.join(" ")}if("string"!=typeof e)return e;var c=r.length;if(0===c)return e;for(var l="",u=0,p=-1,d=e&&e.length||0,h=0;h<d;){if(37===e.charCodeAt(h)&&h+1<d){switch(p=p>-1?p:0,e.charCodeAt(h+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;p<h&&(l+=e.slice(p,h)),l+=Number(r[u]),p=h+2,h++;break;case 105:if(u>=c)break;if(null==r[u])break;p<h&&(l+=e.slice(p,h)),l+=Math.floor(Number(r[u])),p=h+2,h++;break;case 79:case 111:case 106:if(u>=c)break;if(void 0===r[u])break;p<h&&(l+=e.slice(p,h));var f=typeof r[u];if("string"===f){l+="'"+r[u]+"'",p=h+2,h++;break}if("function"===f){l+=r[u].name||"<anonymous>",p=h+2,h++;break}l+=n(r[u]),p=h+2,h++;break;case 115:if(u>=c)break;p<h&&(l+=e.slice(p,h)),l+=String(r[u]),p=h+2,h++;break;case 37:p<h&&(l+=e.slice(p,h)),l+="%",p=h+2,h++,u--}++u}++h}if(-1===p)return e;p<d&&(l+=e.slice(p));return l}},44137:(e,t,r)=>{e.exports=r(76982).randomBytes},27096:(e,t,r)=>{const o=r(87586),n=r(6205),a=r(10023),i=r(8048);e.exports=e=>{var t,r,s=0,c={type:n.ROOT,stack:[]},l=c,u=c.stack,p=[],d=t=>{o.error(e,"Nothing to repeat at column "+(t-1))},h=o.strToChars(e);for(t=h.length;s<t;)switch(r=h[s++]){case"\\":switch(r=h[s++]){case"b":u.push(i.wordBoundary());break;case"B":u.push(i.nonWordBoundary());break;case"w":u.push(a.words());break;case"W":u.push(a.notWords());break;case"d":u.push(a.ints());break;case"D":u.push(a.notInts());break;case"s":u.push(a.whitespace());break;case"S":u.push(a.notWhitespace());break;default:/\d/.test(r)?u.push({type:n.REFERENCE,value:parseInt(r,10)}):u.push({type:n.CHAR,value:r.charCodeAt(0)})}break;case"^":u.push(i.begin());break;case"$":u.push(i.end());break;case"[":var f;"^"===h[s]?(f=!0,s++):f=!1;var m=o.tokenizeClass(h.slice(s),e);s+=m[1],u.push({type:n.SET,set:m[0],not:f});break;case".":u.push(a.anyChar());break;case"(":var v={type:n.GROUP,stack:[],remember:!0};"?"===(r=h[s])&&(r=h[s+1],s+=2,"="===r?v.followedBy=!0:"!"===r?v.notFollowedBy=!0:":"!==r&&o.error(e,`Invalid group, character '${r}' after '?' at column `+(s-1)),v.remember=!1),u.push(v),p.push(l),l=v,u=v.stack;break;case")":0===p.length&&o.error(e,"Unmatched ) at column "+(s-1)),u=(l=p.pop()).options?l.options[l.options.length-1]:l.stack;break;case"|":l.options||(l.options=[l.stack],delete l.stack);var g=[];l.options.push(g),u=g;break;case"{":var y,b,w=/^(\d+)(,(\d+)?)?\}/.exec(h.slice(s));null!==w?(0===u.length&&d(s),y=parseInt(w[1],10),b=w[2]?w[3]?parseInt(w[3],10):1/0:y,s+=w[0].length,u.push({type:n.REPETITION,min:y,max:b,value:u.pop()})):u.push({type:n.CHAR,value:123});break;case"?":0===u.length&&d(s),u.push({type:n.REPETITION,min:0,max:1,value:u.pop()});break;case"+":0===u.length&&d(s),u.push({type:n.REPETITION,min:1,max:1/0,value:u.pop()});break;case"*":0===u.length&&d(s),u.push({type:n.REPETITION,min:0,max:1/0,value:u.pop()});break;default:u.push({type:n.CHAR,value:r.charCodeAt(0)})}return 0!==p.length&&o.error(e,"Unterminated group"),c},e.exports.types=n},8048:(e,t,r)=>{const o=r(6205);t.wordBoundary=()=>({type:o.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:o.POSITION,value:"B"}),t.begin=()=>({type:o.POSITION,value:"^"}),t.end=()=>({type:o.POSITION,value:"$"})},10023:(e,t,r)=>{const o=r(6205),n=()=>[{type:o.RANGE,from:48,to:57}],a=()=>[{type:o.CHAR,value:95},{type:o.RANGE,from:97,to:122},{type:o.RANGE,from:65,to:90}].concat(n()),i=()=>[{type:o.CHAR,value:9},{type:o.CHAR,value:10},{type:o.CHAR,value:11},{type:o.CHAR,value:12},{type:o.CHAR,value:13},{type:o.CHAR,value:32},{type:o.CHAR,value:160},{type:o.CHAR,value:5760},{type:o.RANGE,from:8192,to:8202},{type:o.CHAR,value:8232},{type:o.CHAR,value:8233},{type:o.CHAR,value:8239},{type:o.CHAR,value:8287},{type:o.CHAR,value:12288},{type:o.CHAR,value:65279}];t.words=()=>({type:o.SET,set:a(),not:!1}),t.notWords=()=>({type:o.SET,set:a(),not:!0}),t.ints=()=>({type:o.SET,set:n(),not:!1}),t.notInts=()=>({type:o.SET,set:n(),not:!0}),t.whitespace=()=>({type:o.SET,set:i(),not:!1}),t.notWhitespace=()=>({type:o.SET,set:i(),not:!0}),t.anyChar=()=>({type:o.SET,set:[{type:o.CHAR,value:10},{type:o.CHAR,value:13},{type:o.CHAR,value:8232},{type:o.CHAR,value:8233}],not:!0})},6205:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},87586:(e,t,r)=>{const o=r(6205),n=r(10023),a={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(e,t,r,o,n,i,s,c){if(r)return e;var l=t?8:o?parseInt(o,16):n?parseInt(n,16):i?parseInt(i,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):a[c],u=String.fromCharCode(l);return/[[\]{}^$.|?*+()]/.test(u)&&(u="\\"+u),u}))},t.tokenizeClass=(e,r)=>{for(var a,i,s=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(a=c.exec(e));)if(a[1])s.push(n.words());else if(a[2])s.push(n.ints());else if(a[3])s.push(n.whitespace());else if(a[4])s.push(n.notWords());else if(a[5])s.push(n.notInts());else if(a[6])s.push(n.notWhitespace());else if(a[7])s.push({type:o.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)});else{if(!(i=a[12]))return[s,c.lastIndex];s.push({type:o.CHAR,value:i.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},69027:e=>{"use strict";e.exports=function(e){var t=new e,r=t;return{get:function(){var o=t;return o.next?t=o.next:(t=new e,r=t),o.next=null,o},release:function(e){r.next=e,r=e}}}},89844:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){const r=[],o=[],n=new Map;if(n.set(Date,(e=>new Date(e))),n.set(Map,((e,t)=>new Map(i(Array.from(e),t)))),n.set(Set,((e,t)=>new Set(i(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)n.set(t[0],t[1]);let a=null;return e.proto?c:s;function i(e,i){const s=Object.keys(e),c=new Array(s.length);for(let l=0;l<s.length;l++){const u=s[l],p=e[u];if("object"!=typeof p||null===p)c[u]=p;else if(p.constructor!==Object&&(a=n.get(p.constructor)))c[u]=a(p,i);else if(ArrayBuffer.isView(p))c[u]=t(p);else{const e=r.indexOf(p);c[u]=-1!==e?o[e]:i(p)}}return c}function s(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return i(e,s);if(e.constructor!==Object&&(a=n.get(e.constructor)))return a(e,s);const c={};r.push(e),o.push(c);for(const i in e){if(!1===Object.hasOwnProperty.call(e,i))continue;const l=e[i];if("object"!=typeof l||null===l)c[i]=l;else if(l.constructor!==Object&&(a=n.get(l.constructor)))c[i]=a(l,s);else if(ArrayBuffer.isView(l))c[i]=t(l);else{const e=r.indexOf(l);c[i]=-1!==e?o[e]:s(l)}}return r.pop(),o.pop(),c}function c(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return i(e,c);if(e.constructor!==Object&&(a=n.get(e.constructor)))return a(e,c);const s={};r.push(e),o.push(s);for(const i in e){const l=e[i];if("object"!=typeof l||null===l)s[i]=l;else if(l.constructor!==Object&&(a=n.get(l.constructor)))s[i]=a(l,c);else if(ArrayBuffer.isView(l))s[i]=t(l);else{const e=r.indexOf(l);s[i]=-1!==e?o[e]:c(l)}}return r.pop(),o.pop(),s}}(e);const r=new Map;if(r.set(Date,(e=>new Date(e))),r.set(Map,((e,t)=>new Map(n(Array.from(e),t)))),r.set(Set,((e,t)=>new Set(n(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)r.set(t[0],t[1]);let o=null;return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return n(a,e);if(a.constructor!==Object&&(o=r.get(a.constructor)))return o(a,e);const i={};for(const n in a){const s=a[n];"object"!=typeof s||null===s?i[n]=s:s.constructor!==Object&&(o=r.get(s.constructor))?i[n]=o(s,e):ArrayBuffer.isView(s)?i[n]=t(s):i[n]=e(s)}return i}:function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return n(a,e);if(a.constructor!==Object&&(o=r.get(a.constructor)))return o(a,e);const i={};for(const n in a){if(!1===Object.hasOwnProperty.call(a,n))continue;const s=a[n];"object"!=typeof s||null===s?i[n]=s:s.constructor!==Object&&(o=r.get(s.constructor))?i[n]=o(s,e):ArrayBuffer.isView(s)?i[n]=t(s):i[n]=e(s)}return i};function n(e,n){const a=Object.keys(e),i=new Array(a.length);for(let s=0;s<a.length;s++){const c=a[s],l=e[c];"object"!=typeof l||null===l?i[c]=l:l.constructor!==Object&&(o=r.get(l.constructor))?i[c]=o(l,n):ArrayBuffer.isView(l)?i[c]=t(l):i[c]=n(l)}return i}}},92861:(e,t,r)=>{var o=r(20181),n=o.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=o:(a(o,t),t.Buffer=i),a(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},81940:(e,t,r)=>{"use strict";var o=r(27096),n=o.types;e.exports=function(e,t){t||(t={});var r,a=void 0===t.limit?25:t.limit;r=e,"[object RegExp]"==={}.toString.call(r)?e=e.source:"string"!=typeof e&&(e=String(e));try{e=o(e)}catch(e){return!1}var i=0;return function e(t,r){var o,s;if(t.type===n.REPETITION){if(r++,i++,r>1)return!1;if(i>a)return!1}if(t.options)for(o=0,s=t.options.length;o<s;o++)if(!e({stack:t.options[o]},r))return!1;var c=t.stack||t.value&&t.value.stack;if(!c)return!0;for(o=0;o<c.length;o++)if(!e(c[o],r))return!1;return!0}(e,0)}},42699:e=>{"use strict";const t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function n(e,n,i){null==i&&(null!==n&&"object"==typeof n?(i=n,n=void 0):i={});const s=i.protoAction||"error",c=i.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));const l=JSON.parse(e,n);if("ignore"===s&&"ignore"===c)return l;if(null===l||"object"!=typeof l)return l;if("ignore"!==s&&"ignore"!==c){if(!1===r.test(e)&&!1===o.test(e))return l}else if("ignore"!==s&&"ignore"===c){if(!1===r.test(e))return l}else if(!1===o.test(e))return l;return a(l,{protoAction:s,constructorAction:c}),l}function a(e,{protoAction:t="error",constructorAction:r="error"}={}){let o=[e];for(;o.length;){const e=o;o=[];for(const n of e){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(n,"__proto__")){if("error"===t)throw new SyntaxError("Object contains forbidden prototype property");delete n.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype")){if("error"===r)throw new SyntaxError("Object contains forbidden prototype property");delete n.constructor}for(const e in n){const t=n[e];t&&"object"==typeof t&&o.push(n[e])}}}}e.exports={parse:n,scan:a,safeParse:function(e,t){try{return n(e,t)}catch(e){return null}}}},22385:e=>{"use strict";function t(){if(!(this instanceof t))return new t;this.tree=new r}function r(e,t,r){this.prefix=Number(e)||0,this.children=t||null,this.childrenPrefixes=t?Object.keys(t):[],this.store=r||null}t.prototype.set=function(e,t){if("string"!=typeof e)throw new TypeError("Version should be a string");var o=this.tree;for(e=e.split(".");e.length;)o=o.addChild(new r(e.shift()));return o.setStore(t),this},t.prototype.get=function(e){if("string"!=typeof e)return null;"*"===e&&(e="x.x.x");var t=this.tree,r=e.indexOf("."),o=e.indexOf(".",r+1),n=e.slice(0,r),a=-1===o?e.slice(r+1):e.slice(r+1,o),i=-1===o?"x":e.slice(o+1);return null===(t=t.getChild(n))||null===(t=t.getChild(a))||null===(t=t.getChild(i))?null:t.store},t.prototype.del=function(e){if("string"!=typeof e)throw new TypeError("Version should be a string");var t=e.indexOf("."),r=e.indexOf(".",t+1),o=e.slice(0,t),n=-1===r?e.slice(t+1):e.slice(t+1,r),a=-1===r?"x":e.slice(r+1),i=this.tree.children[o];if(null==i)return this;if("x"===n)return this.tree.removeChild(o),this;var s=i.children[n];return null==s?this:"x"===a?(this.tree.children[o].removeChild(n),0===this.tree.children[o].length&&this.tree.removeChild(o),this):(null==s.children[a]||(this.tree.children[o].children[n].removeChild(a),0===this.tree.children[o].children[n].length&&(this.tree.children[o].removeChild(n),0===this.tree.children[o].length&&this.tree.removeChild(o))),this)},t.prototype.empty=function(){return this.tree=new r,this},r.prototype.getChild=function(e){if(null===this.children)return null;if("x"===e){var t=function(e){for(var t=e.length,r=e[0],o=1;o<t;o++)e[o]>r&&(r=e[o]);return r}(this.childrenPrefixes);return this.children[t]}return this.children[e]||null},r.prototype.addChild=function(e){this.children=this.children||{};var t=this.getChild(e.prefix);return null===t&&(this.children[e.prefix]=e,this.childrenPrefixes.push(e.prefix)),t||e},r.prototype.removeChild=function(e){return"x"===e?(this.children=null,this.childrenPrefixes=[],this):(void 0!==this.children[e]&&(e=Number(e),delete this.children[e],this.childrenPrefixes.splice(this.childrenPrefixes.indexOf(e),1)),this)},r.prototype.setStore=function(e){return this.store=e,this},Object.defineProperty(r.prototype,"length",{get:function(){return this.childrenPrefixes.length}}),e.exports=t},34635:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function o(e,o){var n=e.split(";").filter(r),a=n.shift().split("="),i=a.shift(),s=a.join("=");o=o?Object.assign({},t,o):t;try{s=o.decodeValues?decodeURIComponent(s):s}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",e)}var c={name:i,value:s};return n.forEach((function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),o=t.join("=");"expires"===r?c.expires=new Date(o):"max-age"===r?c.maxAge=parseInt(o,10):"secure"===r?c.secure=!0:"httponly"===r?c.httpOnly=!0:"samesite"===r?c.sameSite=o:c[r]=o})),c}function n(e,n){if(n=n?Object.assign({},t,n):t,!e)return n.map?{}:[];if(e.headers&&e.headers["set-cookie"])e=e.headers["set-cookie"];else if(e.headers){var a=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];a||!e.headers.cookie||n.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=a}if(Array.isArray(e)||(e=[e]),(n=n?Object.assign({},t,n):t).map){return e.filter(r).reduce((function(e,t){var r=o(t,n);return e[r.name]=r,e}),{})}return e.filter(r).map((function(e){return o(e,n)}))}e.exports=n,e.exports.parse=n,e.exports.parseString=o,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,o,n,a,i=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;c();)if(","===(r=e.charAt(s))){for(o=s,s+=1,c(),n=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=n,i.push(e.substring(t,o)),t=s):s=o+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}},27109:(e,t,r)=>{"use strict";const o=r(35317);e.exports=function(e="",t={}){let r;Array.isArray(e)&&(e=e.join(";")),t=Object.assign({stdio:"pipe",cwd:process.cwd()},t);const n="win32"===process.platform?{cmd:"cmd",arg:"/C"}:{cmd:"sh",arg:"-c"};try{r=o.spawn(n.cmd,[n.arg,e],t)}catch(e){return Promise.reject(e)}return new Promise((t=>{let o="",n="";r.stdout&&r.stdout.on("data",(e=>{o+=e})),r.stderr&&r.stderr.on("data",(e=>{n+=e})),r.on("error",(r=>{t({error:r,stdout:o,stderr:n,cmd:e})})),r.on("close",(r=>{t({stdout:o,stderr:n,cmd:e,code:r})}))}))}},95841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Adapter=void 0;const o=r(24434);class n extends o.EventEmitter{constructor(e){super(),this.nsp=e,this.rooms=new Map,this.sids=new Map,this.encoder=e.server.encoder}init(){}close(){}serverCount(){return Promise.resolve(1)}addAll(e,t){this.sids.has(e)||this.sids.set(e,new Set);for(const r of t)this.sids.get(e).add(r),this.rooms.has(r)||(this.rooms.set(r,new Set),this.emit("create-room",r)),this.rooms.get(r).has(e)||(this.rooms.get(r).add(e),this.emit("join-room",r,e))}del(e,t){this.sids.has(e)&&this.sids.get(e).delete(t),this._del(t,e)}_del(e,t){const r=this.rooms.get(e);if(null!=r){r.delete(t)&&this.emit("leave-room",e,t),0===r.size&&this.rooms.delete(e)&&this.emit("delete-room",e)}}delAll(e){if(this.sids.has(e)){for(const t of this.sids.get(e))this._del(t,e);this.sids.delete(e)}}broadcast(e,t){const r=t.flags||{},o={preEncoded:!0,volatile:r.volatile,compress:r.compress};e.nsp=this.nsp.name;const n=this.encoder.encode(e);this.apply(t,(t=>{"function"==typeof t.notifyOutgoingListeners&&t.notifyOutgoingListeners(e),t.client.writeToEngine(n,o)}))}broadcastWithAck(e,t,r,o){const n=t.flags||{},a={preEncoded:!0,volatile:n.volatile,compress:n.compress};e.nsp=this.nsp.name,e.id=this.nsp._ids++;const i=this.encoder.encode(e);let s=0;this.apply(t,(t=>{s++,t.acks.set(e.id,o),"function"==typeof t.notifyOutgoingListeners&&t.notifyOutgoingListeners(e),t.client.writeToEngine(i,a)})),r(s)}sockets(e){const t=new Set;return this.apply({rooms:e},(e=>{t.add(e.id)})),Promise.resolve(t)}socketRooms(e){return this.sids.get(e)}fetchSockets(e){const t=[];return this.apply(e,(e=>{t.push(e)})),Promise.resolve(t)}addSockets(e,t){this.apply(e,(e=>{e.join(t)}))}delSockets(e,t){this.apply(e,(e=>{t.forEach((t=>e.leave(t)))}))}disconnectSockets(e,t){this.apply(e,(e=>{e.disconnect(t)}))}apply(e,t){const r=e.rooms,o=this.computeExceptSids(e.except);if(r.size){const e=new Set;for(const n of r)if(this.rooms.has(n))for(const r of this.rooms.get(n)){if(e.has(r)||o.has(r))continue;const n=this.nsp.sockets.get(r);n&&(t(n),e.add(r))}}else for(const[e]of this.sids){if(o.has(e))continue;const r=this.nsp.sockets.get(e);r&&t(r)}}computeExceptSids(e){const t=new Set;if(e&&e.size>0)for(const r of e)this.rooms.has(r)&&this.rooms.get(r).forEach((e=>t.add(e)));return t}serverSideEmit(e){console.warn("this adapter does not support the serverSideEmit() functionality")}}t.Adapter=n},6930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const o=r(2785);function n(e,t){if(!e)return e;if(o.isBinary(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=n(e[o],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const o in e)e.hasOwnProperty(o)&&(r[o]=n(e[o],t));return r}return e}function a(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=a(e[r],t);else if("object"==typeof e)for(const r in e)e.hasOwnProperty(r)&&(e[r]=a(e[r],t));return e}t.deconstructPacket=function(e){const t=[],r=e.data,o=e;return o.data=n(r,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=a(e.data,t),e.attachments=void 0,e}},57519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const o=r(5971),n=r(6930),a=r(2785),i=r(45753)("socket.io-parser");var s;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(s=t.PacketType||(t.PacketType={}));t.Encoder=class{encode(e){return i("encoding packet %j",e),e.type!==s.EVENT&&e.type!==s.ACK||!a.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==s.BINARY_EVENT&&e.type!==s.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),i("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=n.deconstructPacket(e),r=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(r),o}};class c extends o{constructor(){super()}add(e){let t;if("string"==typeof e)t=this.decodeString(e),t.type===s.BINARY_EVENT||t.type===s.BINARY_ACK?(this.reconstructor=new l(t),0===t.attachments&&super.emit("decoded",t)):super.emit("decoded",t);else{if(!a.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emit("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===s[r.type])throw new Error("unknown packet type "+r.type);if(r.type===s.BINARY_EVENT||r.type===s.BINARY_ACK){const o=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const n=e.substring(o,t);if(n!=Number(n)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(n)}if("/"===e.charAt(t+1)){const o=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(o,t)}else r.nsp="/";const o=e.charAt(t+1);if(""!==o&&Number(o)==o){const o=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!c.isPayloadValid(r.type,o))throw new Error("invalid payload");r.data=o}return i("decoded %s as %j",e,r),r}static isPayloadValid(e,t){switch(e){case s.CONNECT:return"object"==typeof t;case s.DISCONNECT:return void 0===t;case s.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case s.EVENT:case s.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case s.ACK:case s.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=c;class l{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},2785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const r="function"==typeof ArrayBuffer,o=Object.prototype.toString,n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function i(e){return r&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||n&&e instanceof Blob||a&&e instanceof File}t.isBinary=i,t.hasBinary=function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,o=t.length;r<o;r++)if(e(t[r]))return!0;return!1}if(i(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0;return!1}},4037:(e,t,r)=>{"use strict";const o=r(79896),n=r(24434),a=r(10061),i=r(39023).inherits,s=r(57814),c=16777216;function l(e,t){function r(r,o){if(r)return t._reopening=!1,t._writing=!1,t._opening=!1,void(t.sync?process.nextTick((()=>{t.listenerCount("error")>0&&t.emit("error",r)})):t.emit("error",r));if(t.fd=o,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick((()=>t.emit("ready"))):t.emit("ready"),t._reopening)return;const n=t._buf.length;n>0&&n>t.minLength&&!t.destroyed&&d(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{r(null,o.openSync(e,"a"))}catch(e){throw r(e),e}else o.open(e,"a",r)}function u(e){if(!(this instanceof u))return new u(e);let{fd:t,dest:r,minLength:n,sync:a}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=a||!1,this.minLength=n||0,"number"==typeof t)this.fd=t,process.nextTick((()=>this.emit("ready")));else{if("string"!=typeof t)throw new Error("SonicBoom supports only file descriptors and files");l(t,this)}this.release=(e,t)=>{if(e){if("EAGAIN"===e.code)if(this.sync)try{s(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout((()=>{o.write(this.fd,this._writingBuf,"utf8",this.release)}),100);else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),!this.sync)return void o.write(this.fd,this._writingBuf,"utf8",this.release);try{do{t=o.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t)}while(0!==this._writingBuf.length)}catch(e){return void this.release(e)}}if(this._writingBuf="",this.destroyed)return;const r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?d(this):this._ending?r>0?d(this):(this._writing=!1,h(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(p,this)):this.emit("drain"))},this.on("newListener",(function(e){"drain"===e&&(this._asyncDrainScheduled=!1)}))}function p(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function d(e){e._writing=!0;let t=e._buf;const r=e.release;if(t.length>c?(t=t.slice(0,c),e._buf=e._buf.slice(c)):e._buf="",a(t),e._writingBuf=t,e.sync)try{r(null,o.writeSync(e.fd,t,"utf8"))}catch(e){r(e)}else o.write(e.fd,t,"utf8",r)}function h(e){-1!==e.fd?(o.close(e.fd,(t=>{t?e.emit("error",t):(e._ending&&!e._writing&&e.emit("finish"),e.emit("close"))})),e.destroyed=!0,e._buf=""):e.once("ready",h.bind(null,e))}i(u,n),u.prototype.write=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");this._buf+=e;const t=this._buf.length;return!this._writing&&t>this.minLength&&d(this),t<16384},u.prototype.flush=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");this._writing||this.minLength<=0||d(this)},u.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening)return void this.once("ready",(()=>{this.reopen(e)}));if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;const t=this.fd;this.once("ready",(()=>{t!==this.fd&&o.close(t,(e=>{if(e)return this.emit("error",e)}))})),l(e||this.file,this)},u.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");this._opening?this.once("ready",(()=>{this.end()})):this._ending||(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0?d(this):this._writing||h(this))},u.prototype.flushSync=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{o.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;s(100)}},u.prototype.destroy=function(){this.destroyed||h(this)},e.exports=u},25721:e=>{function t(e,t){if((e=e.replace(/\s+/g,""))===(t=t.replace(/\s+/g,"")))return 1;if(e.length<2||t.length<2)return 0;let r=new Map;for(let t=0;t<e.length-1;t++){const o=e.substring(t,t+2),n=r.has(o)?r.get(o)+1:1;r.set(o,n)}let o=0;for(let e=0;e<t.length-1;e++){const n=t.substring(e,e+2),a=r.has(n)?r.get(n):0;a>0&&(r.set(n,a-1),o++)}return 2*o/(e.length+t.length-2)}e.exports={compareTwoStrings:t,findBestMatch:function(e,r){if(!function(e,t){return"string"==typeof e&&(!!Array.isArray(t)&&(!!t.length&&!t.find((function(e){return"string"!=typeof e}))))}(e,r))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const o=[];let n=0;for(let a=0;a<r.length;a++){const i=r[a],s=t(e,i);o.push({target:i,rating:s}),s>o[n].rating&&(n=a)}const a=o[n];return{ratings:o,bestMatch:a,bestMatchIndex:n}}}},27687:(e,t,r)=>{"use strict";const o=r(70857),n=r(52018),a=r(25884),{env:i}=process;let s;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===s)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===s)return 0;const r=s||0;if("dumb"===i.TERM)return r;if("win32"===process.platform){const e=o.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||"codeship"===i.CI_NAME?1:r;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:r}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?s=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(s=1),"FORCE_COLOR"in i&&(s="true"===i.FORCE_COLOR?1:"false"===i.FORCE_COLOR?0:0===i.FORCE_COLOR.length?1:Math.min(parseInt(i.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,n.isatty(1))),stderr:c(l(!0,n.isatty(2)))}},84528:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});class o{constructor(e=0,t=0){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.size=0,this.ttl=t}has(e){return e in this.items}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){const t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}return this}evict(e=!1){if(e||this.size>0){const e=this.first;delete this.items[e.key],this.size--,0===this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}return this}get(e){let t;if(this.has(e)){const r=this.items[e];this.ttl>0&&r.expiry<=(new Date).getTime()?this.delete(e):(t=r.value,this.set(e,t,!0))}return t}keys(){return Object.keys(this.items)}set(e,t,r=!1){let o;if(r||this.has(e)){if(o=this.items[e],o.value=t,this.last!==o){const e=this.last,t=o.next,r=o.prev;this.first===o&&(this.first=o.next),o.next=null,o.prev=this.last,e.next=o,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),o=this.items[e]={expiry:this.ttl>0?(new Date).getTime()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},1==++this.size?this.first=o:this.last.next=o;return this.last=o,this}}function n(e=1e3,t=0){if(isNaN(e)||e<0)throw new TypeError("Invalid max value");if(isNaN(t)||t<0)throw new TypeError("Invalid ttl value");return new o(e,t)}},72895:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RpcClient=void 0;var o=r(89744);Object.defineProperty(t,"RpcClient",{enumerable:!0,get:function(){return o.RpcClient}})},77101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Complex=void 0;t.Complex=class{rpcClient;constructor(e){this.rpcClient=e}async bestBlock(){try{const e=await this.rpcClient.call("getbestblockhash");if(e.error||!e.data)throw new Error(`getbestblockhash Error: ${e.error}`);const t=await this.rpcClient.call("getblock",e.data);if(t.error||!t.data?.height)throw new Error(`getblock Error: ${t.error}`);return{data:t.data.height}}catch(e){return{error:e.message}}}}},89744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RpcClient=void 0;const o=r(58611),n=r(77101);t.RpcClient=class{_complex;options={username:"root",password:"passsword",host:"localhost",port:9332,timeout:3e3};constructor(e){this.options={...this.options,...e},this._complex=new n.Complex(this)}get complex(){return this._complex}async call(e,...t){const r={id:Date.now(),method:e,params:t},n=JSON.stringify(r),{host:a,port:i,username:s,password:c,timeout:l}=this.options,u={host:a,port:i,method:"POST",headers:{Host:"localhost","Content-Length":n.length},agent:!1,auth:s+":"+c},p=o.request(u);return new Promise(((e,t)=>{const r=setTimeout((()=>e({error:"ETIMEDOUT"})),l);p.on("error",(t=>e({error:t.message}))),p.on("response",(t=>{clearTimeout(r);let o="";t.on("data",(e=>o+=e)),t.on("end",(()=>{const{statusCode:r}=t;try{if(401===r)return e({error:"Unauthorized",statusCode:r,IECode:4});const t=JSON.parse(o);t.hasOwnProperty("error")&&null!==t.error?e({error:t.error.message,statusCode:r,IECode:2,EECode:t.error.code||0}):t.hasOwnProperty("result")?e({data:t.result,statusCode:r}):e({error:t.error?.message||"Undefined Error",statusCode:r,IECode:3,EECode:t.error?.code||0})}catch(t){e(200!==r?{error:t.message,statusCode:r}:{error:t.message,statusCode:r,IECode:1})}}))})),p.end(n)}))}}},17074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreFilePathObj=t.defaultDirObj=void 0;var o=r(70857),n=r(16928);t.defaultDirObj=o.homedir()+"/AppData/Roaming/Litecoin",t.coreFilePathObj={LTC:n.join(__dirname,"litecoind.exe")}},85352:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FastifyServer=void 0;var a=r(95902),i=r(3349),s=r(29663),c=r(43752),l=r(43971),u=r(75237),p=function(){function e(e,t,r){this.port=e,this.safeClose=r,this.relayerApiUrl=null,this._server=a.default(t),this.mainSocketService=new s.SocketService,this.tradelayerService=new u.TradeLayerService}return Object.defineProperty(e.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),e.prototype.start=function(){var e=this;i.handleRoutes(this.server),this.mainSocketService.init(this.server),this.server.listen(this.port).catch((function(t){return e.stop()}))},e.prototype.stop=function(){return o(this,void 0,void 0,(function(){var e,t,r,o=this;return n(this,(function(n){switch(n.label){case 0:return this.rpcClient?[4,this.rpcClient.call("getblockchaininfo")]:[3,6];case 1:return e=n.sent(),t=!!e.data,[4,this.tradelayerService.stop()];case 2:return n.sent(),t?[4,this.rpcClient.call("stop")]:[3,4];case 3:n.sent(),n.label=4;case 4:return t?[3,6]:[4,l(this.rpcPort)];case 5:n.sent(),n.label=6;case 6:return this.safeStop(),r=setInterval((function(){o.rpcClient||o.rpcPort||(clearInterval(r),o.safeStop())}),500),[2]}}))}))},e.prototype.safeStop=function(){this.rpcClient||this.rpcPort||(this.clearOBSocketConnection(),this.safeClose(),this.clearMainSocketConnection())},e.prototype.initOBSocketConnection=function(e){this.clearOBSocketConnection(),this.obSocketService=new c.OBSocketService(e)},e.prototype.clearMainSocketConnection=function(){var e,t,r;(null===(e=this.mainSocketService)||void 0===e?void 0:e.currentSocket)&&(null===(t=this.mainSocketService)||void 0===t||t.currentSocket.offAny(),null===(r=this.mainSocketService)||void 0===r||r.currentSocket.disconnect()),this.mainSocketService=null},e.prototype.clearOBSocketConnection=function(){var e;(null===(e=this.obSocketService)||void 0===e?void 0:e.socket)&&(this.obSocketService.socket.offAny(),this.obSocketService.socket.disconnect()),this.obSocketService=null},e}();t.FastifyServer=p},31314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initLoclaServer=t.fasitfyServer=void 0;var o=r(85352);t.initLoclaServer=function(e){return t.fasitfyServer=new o.FastifyServer(1986,{logger:!1},e),t.fasitfyServer},t.default={fasitfyServer:t.fasitfyServer,initLoclaServer:t.initLoclaServer}},3349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleRoutes=void 0;var o=r(39222),n=r(94555),a=r(99525);t.handleRoutes=function(e){e.register(o.keysRoutes,{prefix:"/keys/"}),e.register(n.mainRoutes,{prefix:"/api/"}),e.register(a.tlRoutes,{prefix:"/tl/"})}},39222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keysRoutes=void 0;var o=r(83545);t.keysRoutes=function(e,t,r){e.post("new-wallet",(function(e,t){try{var r=e.body.network,n=o.generateNewWallet(r);if(n.error)throw new Error(n.error);t.status(200).send(n)}catch(e){t.status(500).send({error:e.message||"Undefined Error"})}})),e.post("get-address",(function(e,t){try{var r=e.body,n=r.network,a=r.mnemonic,i=r.derivatePath,s=o.getKeyPair(n,a,i);if(s.error)throw new Error(s.error);t.status(200).send(s)}catch(e){t.status(500).send({error:e.message||"Undefined Error"})}})),e.post("get-address-file",(function(e,t){try{var r=e.body,n=r.network,a=r.mnemonic,i=r.walletObjRaw,s=o.getManyKeyPair(n,a,i);if(s.error)throw new Error(s.error);t.status(200).send(s)}catch(e){t.status(500).send({error:e.message||"Undefined Error"})}})),r()}},94555:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mainRoutes=void 0;var i=r(31314),s=r(2182),c=r(25088),l=r(83545),u=r(84406),p={maxDelay:1e4,numOfAttempts:5};t.mainRoutes=function(e,t,r){e.post("rpc-call",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,s,c,l,d;return n(this,(function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),r=e.body,o=r.method,s=r.params,!i.fasitfyServer.rpcClient)throw new Error("No RPC Client initialized");return c=(null==s?void 0:s.length)?s:[],[4,u.backOff((function(){var e;return(e=i.fasitfyServer.rpcClient).call.apply(e,a([o],c))}),p)];case 1:return l=n.sent(),t.status(200).send(l),[3,3];case 2:return d=n.sent(),t.status(500).send({error:d||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("start-wallet-node",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,a,i,c,l,u,p,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=e.body,o=r.network,a=r.startclean,i=r.reindex,c=r.path,l=o.endsWith("TEST"),u={testnet:l,datadir:c,reindex:i,startclean:a},[4,s.startWalletNode(u)];case 1:return p=n.sent(),t.status(200).send(p),[3,3];case 2:return d=n.sent(),t.status(500).send({error:d.message||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("stop-wallet-node",(function(e,t){return o(void 0,void 0,void 0,(function(){var e,r;return n(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,s.stopWalletNode()];case 1:return e=o.sent(),t.status(200).send(e),[3,3];case 2:return r=o.sent(),t.status(500).send({error:(null==r?void 0:r.message)||r||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("new-config",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,a,i,c,l,u,p;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=e.body,o=r.username,a=r.password,i=r.port,c=r.path,l={username:o,password:a,port:i,path:c},[4,s.createConfigFile(l)];case 1:return u=n.sent(),t.status(200).send(u),[3,3];case 2:return p=n.sent(),t.status(500).send({error:p.message||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("build-tx",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,a,i,s,l,u,p,d,h,f,m;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=e.body,o=r.fromKeyPair,a=r.toKeyPair,i=r.payload,s=r.amount,l=r.inputs,u=r.addPsbt,p=r.network,d=e.body.isApiMode,h={fromKeyPair:o,toKeyPair:a,payload:i,amount:s,inputs:l,addPsbt:u,network:p},[4,c.buildTx(h,d)];case 1:return f=n.sent(),t.status(200).send(f),[3,3];case 2:return m=n.sent(),t.status(500).send({error:m.message||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("build-ltcit-tx",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,a,i,s,l,u,p,d,h,f;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=e.body,o=r.buyerKeyPair,a=r.sellerKeyPair,i=r.payload,s=r.amount,l=r.commitUTXOs,u=r.network,p=e.body.isApiMode,d={buyerKeyPair:o,sellerKeyPair:a,payload:i,amount:s,commitUTXOs:l,network:u},[4,c.buildLTCInstatTx(d,p)];case 1:return h=n.sent(),t.status(200).send(h),[3,3];case 2:return f=n.sent(),t.status(500).send({error:f.message||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("sign-tx",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,a,i,s,l,u,p;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=e.body,o=r.rawtx,a=r.wif,i=r.network,s=r.inputs,l=r.psbtHex,[4,c.signTx({rawtx:o,wif:a,network:i,inputs:s,psbtHex:l})];case 1:return u=n.sent(),t.status(200).send(u),[3,3];case 2:return p=n.sent(),t.status(500).send({error:p.message||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("sign-psbt",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,a,i,s;return n(this,(function(n){try{r=e.body,o=r.wif,a=r.network,i=r.psbtHex,s=l.signPsbtRawtTx({wif:o,network:a,psbtHex:i}),t.status(200).send(s)}catch(e){t.status(500).send({error:e.message||"Undefined Error"})}return[2]}))}))})),e.post("set-api-url",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o;return n(this,(function(n){try{r=e.body.apiUrl,i.fasitfyServer.relayerApiUrl=r,o={data:!0},t.status(200).send(o)}catch(e){t.status(500).send({error:e.message||"Undefined Error"})}return[2]}))}))})),r()}},99525:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.tlRoutes=void 0;var a=r(72505),i="http://localhost:3000/";t.tlRoutes=function(e,t,r){e.post("/init",(function(e,t){return o(void 0,void 0,void 0,(function(){var e,r;return n(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,a.default.post(i+"tl_initmain",{test:!0})];case 1:if((e=o.sent()).data.error)throw new Error(e.data.error);return t.status(200).send({message:e.data}),[3,3];case 2:return r=o.sent(),t.status(500).send({error:r.message||"Undefined Error"}),[3,3];case 3:return[2]}}))}))})),e.post("/getAllBalancesForAddress",(function(e,t){return o(void 0,void 0,void 0,(function(){var r,o,s,c,l;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),r=e.body,o=r.params,s=o[0],[4,a.default.post(i+"tl_getallbalancesforaddress",{params:s})];case 1:return c=n.sent(),t.status(200).send(c.data),[3,3];case 2:return l=n.sent(),console.error(l),t.status(500).send("Error: "+l.message),[3,3];case 3:return[2]}}))}))})),e.post("/listProperties",(function(e,t){return o(void 0,void 0,void 0,(function(){return n(this,(function(e){try{throw new Error("Not implemented")}catch(e){t.status(500).send("Error: "+e.message)}return[2]}))}))})),e.post("/getMaxProcessedHeight",(function(e,t){return o(void 0,void 0,void 0,(function(){var e,r;return n(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,a.default.post(i+"tl_getMaxProcessedHeight")];case 1:return e=o.sent(),t.status(200).send(e.data||0),[3,3];case 2:return r=o.sent(),t.status(500).send("Error: "+r.message),[3,3];case 3:return[2]}}))}))})),r()}},2182:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.stopWalletNode=t.startWalletNode=t.createConfigFile=void 0;var a=r(35317),i=r(79896),s=r(16928),c=r(17074),l=r(72895),u=r(31314),p=function(e){this.testnet=0,this.txindex=0,this.startclean=0,this.reindex=0,this.addnode=null,this.datadir=null,this.connect=null;var t=function(e){return e?1:0};this.testnet=t(!!e.testnet),this.txindex=t(!!e.txindex),this.startclean=t(!!e.startclean),this.reindex=t(!!e.reindex),this.addnode=e.addnode,this.datadir=e.datadir};t.createConfigFile=function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,a,l,u;return n(this,(function(n){try{if(t=e.username,r=e.password,e.port,o=e.path,a=s.join(o||c.defaultDirObj),!i.existsSync(a)){if(o)throw"Provided Directory Dont exist";i.mkdirSync(c.defaultDirObj)}if(l=s.join(a,"litecoin.conf"),i.existsSync(l))throw"litecoin.conf file Already exist in provided directory!";return u="rpcuser="+t+"\nrpcpassword="+r+"\ntxindex=1\n[test]\nrpcport=18332",i.writeFileSync(l,u),[2,{data:"litecoin.conf file was created"}]}catch(e){return[2,{error:e||"Creating Config File Undefined Error"}]}return[2]}))}))};t.startWalletNode=function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,a,l,u,m,v,g,y;return n(this,(function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),t=e.testnet,r=new p(e),o=s.join(r.datadir||c.defaultDirObj),a=s.join(o,"litecoin.conf"),!i.existsSync(a))throw"Config file (litecoin.conf) doesn't exist in: "+o;if(l=i.readFileSync(a,{encoding:"utf8"}),!(u=h(l)).rpcuser||!u.rpcpassword)throw"Incorrect Config File "+o;if(m=d(r),v='"'+c.coreFilePathObj.LTC+'"',!(g=""+v+m))throw"Error with Starting Node. Code 1";return[4,f(g,u,t)];case 1:return[2,n.sent()];case 2:return[2,{error:(y=n.sent()).message||y||"Undefined Error"}];case 3:return[2]}}))}))};t.stopWalletNode=function(){return o(void 0,void 0,void 0,(function(){var e,t;return n(this,(function(r){switch(r.label){case 0:return[4,null===(t=u.fasitfyServer.rpcClient)||void 0===t?void 0:t.call("stop")];case 1:return r.sent(),e=new Promise((function(t){return o(void 0,void 0,void 0,(function(){var r,o;return n(this,(function(n){switch(n.label){case 0:return[4,u.fasitfyServer.rpcClient.call("getblockchaininfo")];case 1:return r=n.sent(),(null===(o=null==r?void 0:r.error)||void 0===o?void 0:o.includes("ECONNREFUSED"))?(t(!0),[3,4]):[3,2];case 2:return[4,e];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))})),u.fasitfyServer.mainSocketService.stopBlockCounting(),u.fasitfyServer.rpcClient=null,u.fasitfyServer.rpcPort=null,[2,{data:!0}]}}))}))};var d=function(e){var t=function(e,t){return" -"+e+"="+t},r=" -txindex=1 -printtoconsole=0";return Object.keys(e).forEach((function(o){return"datadir"===o&&e[o]?r+=t(o,'"'+e[o]+'"'):e[o]?r+=t(o,e[o]):void 0})),r||""},h=function(e){var t={};return e.split("\n").forEach((function(e){var r=e.split("=");!e.startsWith("#")&&r[0]&&r[1]&&(t[r[0]]=r[1].replace("\r",""))})),t},f=function(e,t,r){return o(void 0,void 0,void 0,(function(){return n(this,(function(i){return[2,new Promise((function(i){return o(void 0,void 0,void 0,(function(){var s,c,p,d,h,f,m,v,g,y;return n(this,(function(b){switch(b.label){case 0:return s=t.rpcuser,c=t.rpcport,p=t.rpcpassword,d=t.rpchost,f={username:s,password:p,host:d||"localhost",port:h=c||(r?18332:8332),timeout:2e4},m=new l.RpcClient(f),v=function(){return new Promise((function(e){return o(void 0,void 0,void 0,(function(){var t;return n(this,(function(r){switch(r.label){case 0:return[4,m.call("getblockchaininfo")];case 1:return(t=r.sent()).data&&e(2),t.error&&!t.error.includes("ECONNREFUSED")&&e(t),t.error&&t.error.includes("ECONNREFUSED")&&e(0),[2]}}))}))}))},[4,v()];case 1:return 0!==b.sent()?[2,i({error:"The core is probably Already Running"})]:[4,u.fasitfyServer.tradelayerService.init().catch((function(e){return i({error:e}),!1}))];case 2:return b.sent()?(a.exec(e,(function(e,t,r){u.fasitfyServer.mainSocketService.currentSocket.emit("core-error",r||(null==e?void 0:e.message)||e||t),u.fasitfyServer.rpcClient=null,u.fasitfyServer.rpcPort=null})),setTimeout((function(){return o(void 0,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,u.fasitfyServer.tradelayerService.stop()];case 1:return e.sent(),i({error:"Core Starting TimedOut: 10 seconds"}),[2]}}))}))}),1e4),g=function(){return new Promise((function(e){return o(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,m.call("getblockchaininfo").then((function(t){return o(void 0,void 0,void 0,(function(){var r,o;return n(this,(function(n){switch(n.label){case 0:return(null===(o=null==t?void 0:t.error)||void 0===o?void 0:o.includes("ECONNREFUSED"))?[3,1]:(u.fasitfyServer.rpcClient=m,u.fasitfyServer.rpcPort=h,u.fasitfyServer.mainSocketService.startBlockCounting(2e3),e({data:!0}),[3,4]);case 1:return[4,new Promise((function(e){return setTimeout((function(){return e(!0)}),1e3)}))];case 2:return n.sent(),[4,g()];case 3:r=n.sent(),e(r),n.label=4;case 4:return[2]}}))}))}))];case 1:return t.sent(),[2]}}))}))}))},[4,g()]):[2];case 3:return y=b.sent(),i({data:y}),[2]}}))}))}))]}))}))}},43752:function(e,t,r){"use strict";var o=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.OBSocketService=void 0;var n=r(38007),a=r(31314),i=function(){function e(e){var t=this;this.options=e,this.socket=n.io(this.options.url,{reconnection:!1});["connect","disconnect","connect_error"].forEach((function(e){t.socket.on(e,(function(){"connect"===e&&t.handleEvents();var r="OB_SOCKET::"+e;t.walletSocket.emit(r)}))}))}return Object.defineProperty(e.prototype,"walletSocket",{get:function(){return a.fasitfyServer.mainSocketService.currentSocket},enumerable:!1,configurable:!0}),e.prototype.handleEvents=function(){var e=this;o([],["order:error","order:saved","placed-orders","orderbook-data","update-orders-request","new-channel"]).forEach((function(t){e.socket.on(t,(function(r){var o="OB_SOCKET::"+t;e.walletSocket.emit(o,r)}))})),["update-orderbook","new-order","close-order","many-orders"].forEach((function(t){e.walletSocket.on(t,(function(r){e.socket.emit(t,r)}))}));var t="swap";this.walletSocket.on(this.socket.id+"::"+t,(function(r){e.socket.emit(e.socket.id+"::"+t,r)})),this.socket.on("new-channel",(function(r){var o=r.isBuyer?r.tradeInfo.seller.socketId:r.tradeInfo.buyer.socketId;e.socket.removeAllListeners(o+"::"+t),e.socket.on(o+"::"+t,(function(r){e.walletSocket.emit(o+"::"+t,r)}))}))},e}();t.OBSocketService=i},29663:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SocketService=void 0;var a=r(91244),i=r(31314),s=function(){function e(){this.lastBlock=0,this.lastHeader=0}return e.prototype.init=function(e){this.io=new a.Server(e.server,{cors:{origin:"*",methods:["GET","POST"]}}),this.handleEvents()},e.prototype.handleEvents=function(){this.io.on("connection",this.onConnection.bind(this))},e.prototype.onConnection=function(e){this.currentSocket&&this.currentSocket.offAny(),this.currentSocket=e,this.currentSocket.on("ob-sockets-connect",(function(e){i.fasitfyServer.initOBSocketConnection({url:e})})),this.currentSocket.on("ob-sockets-disconnect",(function(){i.fasitfyServer.clearOBSocketConnection()}))},e.prototype.startBlockCounting=function(e){var t=this;this.blockCountingInterval&&this.stopBlockCounting();var r=i.fasitfyServer.rpcClient;r&&(this.blockCountingInterval=setInterval((function(){return o(t,void 0,void 0,(function(){var e,t,o,a,i,s;return n(this,(function(n){switch(n.label){case 0:return[4,r.call("getblockchaininfo")];case 1:return!(e=n.sent()).error&&e.data?[3,3]:e.error&&e.error.includes("ECONNREFUSED")?[4,r.call("getblockchaininfo")]:[3,3];case 2:!(t=n.sent()).error&&t.data||(this.currentSocket.emit("core-error",t.error||"Undefined Error. code 3"),this.stopBlockCounting()),n.label=3;case 3:return o=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.blocks,a=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.headers,(o&&this.lastBlock<o||a&&this.lastHeader<a)&&(this.lastBlock=o,this.lastHeader=a,this.currentSocket.emit("new-block",{height:o,header:a})),[2]}}))}))}),e))},e.prototype.stopBlockCounting=function(){this.lastBlock&&(this.lastBlock=0),this.blockCountingInterval&&clearInterval(this.blockCountingInterval)},e}();t.SocketService=s},75237:function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},n=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TradeLayerService=void 0;var a=r(35317),i=r(16928),s=r(43971),c=function(){function e(){this.port=3e3,this.isStarted=!1}return e.prototype.init=function(){return new Promise((function(e,t){var r=i.join(__dirname,"..","tradelayer","walletListener.js"),o=a.spawn("node",[r],{});o.stdout.on("data",(function(t){console.log(t.toString()),e(!0)})),o.stderr.on("data",(function(e){t(e.toString())}))}))},e.prototype.start=function(){return o(this,void 0,void 0,(function(){return n(this,(function(e){return this.isStarted||(this.isStarted=!0),[2]}))}))},e.prototype.stop=function(){return o(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return this.isStarted?(this.isStarted=!1,[4,s(this.port)]):[2];case 1:return e.sent(),[2]}}))}))},e}();t.TradeLayerService=c},25088:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)},n=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function s(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((o=o.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,o,n,a,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.signTx=t.buildTx=t.buildLTCInstatTx=t.jsTlApi=t.smartRpc=void 0;var s=r(31314),c=r(72505),l=r(83545),u=r(33017);t.smartRpc=function(e,t,r){return void 0===t&&(t=[]),void 0===r&&(r=!1),n(void 0,void 0,void 0,(function(){var o,n;return a(this,(function(a){switch(a.label){case 0:return!s.fasitfyServer.rpcClient||r?[3,2]:[4,(n=s.fasitfyServer.rpcClient).call.apply(n,i([e],t))];case 1:case 3:return[2,a.sent()];case 2:return s.fasitfyServer.relayerApiUrl?(o=s.fasitfyServer.relayerApiUrl+"/rpc/"+e,[4,c.default.post(o,{params:t}).then((function(e){return e.data}))]):[3,4];case 4:return[2,{error:"Relayer API url not found"}]}}))}))};t.jsTlApi=function(e,t){return void 0===t&&(t=[]),n(void 0,void 0,void 0,(function(){var r;return a(this,(function(o){switch(o.label){case 0:return r="http://localhost:3000/"+e,[4,c.default.post(r,{params:t}).then((function(e){return e.data}))];case 1:return[2,o.sent()]}}))}))};t.buildLTCInstatTx=function(e,r){return n(void 0,void 0,void 0,(function(){var n,s,c,d,f,m,v,g,y,b,w,x,k,_,E,S,P,T,O,j,R,I,C,A,N,$,L,D,z,B,q,F,M,U;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,7,,8]),n=e.buyerKeyPair,s=e.sellerKeyPair,c=e.amount,d=e.payload,f=e.commitUTXOs,m=e.network,v=n.address,g=s.address,[4,t.smartRpc("validateaddress",[v],r)];case 1:if((y=a.sent()).error||!(null===(M=y.data)||void 0===M?void 0:M.isvalid))throw new Error("validateaddress: "+y.error);return[4,t.smartRpc("validateaddress",[g],r)];case 2:if((b=a.sent()).error||!(null===(U=b.data)||void 0===U?void 0:U.isvalid))throw new Error("validateaddress: "+b.error);return[4,t.smartRpc("listunspent",[0,999999999,[v]],!1)];case 3:if((w=a.sent()).error||!w.data)throw new Error("listunspent: "+w.error);return x=w.data.map((function(e){return o(o({},e),{pubkey:n.pubkey})})).sort((function(e,t){return t.amount-e.amount})),k=i(i([],f),x),[4,h(g,r)];case 4:if((_=a.sent()).error||!_.data)throw new Error("getMinVoutAmount: "+_.error);if(E=_.data,S=E,P=Math.max(c,E),T=u.safeNumber(S+P),O=p(k,T),j=O.finalInputs,R=O.fee,I=j.map((function(e){return e.amount})).reduce((function(e,t){return e+t}),0),C=u.safeNumber(I),A=u.safeNumber(C-P-R)>S?u.safeNumber(C-P-R):S,C<u.safeNumber(R+P+A))throw new Error("Not Enaugh coins for paying fees. Code 1");if(!j.length)throw new Error("Not Enaugh coins for paying fees. Code 3");return N=j.map((function(e){return{txid:e.txid,vout:e.vout}})),(F={})[v]=A,F[g]=P,$=F,[4,t.smartRpc("createrawtransaction",[N,$],r)];case 5:if((L=a.sent()).error||!L.data)throw new Error("createrawtransaction: "+L.error);return[4,t.jsTlApi("tl_createrawtx_opreturn",[L.data,d])];case 6:if((D=a.sent()).error||!D.data)throw new Error("tl_createrawtx_opreturn: "+D.error);if(z=D.data,B={rawtx:z,inputs:j,network:m},(q=l.buildPsbt(B)).error||!q.data)throw new Error("buildPsbt: "+q.error);return[2,{data:{rawtx:z,inputs:j,psbtHex:q.data}}];case 7:return[2,{error:a.sent().message||"Undefined build Tx Error"}];case 8:return[2]}}))}))};t.buildTx=function(e,r){return n(void 0,void 0,void 0,(function(){var n,s,c,p,f,m,v,g,y,b,w,x,k,_,E,S,P,T,O,j,R,I,C,A,N,$,L,D,z,B,q,F,M,U,H,V,K;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,8,,9]),n=e.fromKeyPair,s=e.toKeyPair,c=e.amount,p=e.payload,f=e.inputs,m=e.addPsbt,v=e.network,g=n.address,y=s.address,[4,t.smartRpc("validateaddress",[g],r)];case 1:if((b=a.sent()).error||!(null===(V=b.data)||void 0===V?void 0:V.isvalid))throw new Error("validateaddress: "+b.error);return[4,t.smartRpc("validateaddress",[y],r)];case 2:if((w=a.sent()).error||!(null===(K=w.data)||void 0===K?void 0:K.isvalid))throw new Error("validateaddress: "+w.error);return[4,t.smartRpc("listunspent",[0,999999999,[g]],r)];case 3:if((x=a.sent()).error||!x.data)throw new Error("listunspent: "+x.error);return k=x.data.map((function(e){return o(o({},e),{pubkey:n.pubkey})})).sort((function(e,t){return t.amount-e.amount})),_=(null==f?void 0:f.length)?f:[],E=i(i([],_),k),[4,h(y,r)];case 4:if((S=a.sent()).error||!S.data)throw new Error("getMinVoutAmount: "+S.error);if((P=S.data)>c&&!p)throw new Error("Minimum amount is: "+P);if(T=Math.max(c||0,P),O=d(E,T),j=O.finalInputs,R=O.fee,I=j.map((function(e){return e.amount})).reduce((function(e,t){return e+t}),0),C=u.safeNumber(I),A=u.safeNumber(T-R),N=Math.max(P,A),$=p?u.safeNumber(C-T-R):u.safeNumber(C-T),C<u.safeNumber(R+N+$))throw new Error("Not Enaugh coins for paying fees. Code 1");if(C<T)throw new Error("Not Enaugh coins for paying fees. Code 2");if(!j.length)throw new Error("Not Enaugh coins for paying fees. Code 3");return L=j.map((function(e){return{txid:e.txid,vout:e.vout}})),(H={})[y]=N,D=H,$>0&&(D[g]=$),[4,t.smartRpc("createrawtransaction",[L,D],r)];case 5:if((z=a.sent()).error||!z.data)throw new Error("createrawtransaction: "+z.error);return B=z.data,p?[4,t.jsTlApi("tl_createrawtx_opreturn",[B,p],r)]:[3,7];case 6:if((q=a.sent()).error||!q.data)throw new Error("tl_createrawtx_opreturn: "+q.error);B=q.data,a.label=7;case 7:if(F={rawtx:B,inputs:j},m){if(M={rawtx:B,inputs:j,network:v},(U=l.buildPsbt(M)).error||!U.data)throw new Error("buildPsbt: "+U.error);F.psbtHex=U.data}return[2,{data:F}];case 8:return[2,{error:a.sent().message||"Undefined build Tx Error"}];case 9:return[2]}}))}))};var p=function(e,t){var r=[];e.forEach((function(e){var o=r.map((function(e){return e.amount})).reduce((function(e,t){return e+t}),0),n=u.safeNumber(o),a=u.safeNumber(6e-4*(r.length+1));n<u.safeNumber(t+a)&&r.push(e)}));var o=u.safeNumber(6e-4*r.length);return{finalInputs:r,fee:o}},d=function(e,t){var r=[];e.forEach((function(e){var o=r.map((function(e){return e.amount})).reduce((function(e,t){return e+t}),0);u.safeNumber(o)<t&&r.push(e)}));var o=u.safeNumber(6e-4*r.length);return{finalInputs:r,fee:o}},h=function(e,r){return n(void 0,void 0,void 0,(function(){var e,o;return a(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[2,{data:564e-6}];case 1:if((e=n.sent()).error||!e.data)throw new Error("tl_createrawtx_reference: "+e.error);return[4,t.smartRpc("decoderawtransaction",[e.data],r)];case 2:if((o=n.sent()).error||!o.data)throw new Error("decoderawtransaction: "+o.error);return[2,{data:parseFloat(o.data.vout[0].value)}];case 3:return[2,{error:n.sent().message||"Undefined getMinVoutAmount Error"}];case 4:return[2]}}))}))};t.signTx=function(e){return n(void 0,void 0,void 0,(function(){var t,r,o,n;return a(this,(function(a){try{return t=e.rawtx,r=e.wif,o=e.network,n=e.inputs,[2,l.signRawTransction({rawtx:t,wif:r,network:o,inputs:n})]}catch(e){return[2,{error:e.message}]}return[2]}))}))}},33017:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeNumber=void 0;t.safeNumber=function(e,t){return void 0===t&&(t=8),parseFloat(e.toFixed(t))}},83545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildPsbt=t.signRawTransction=t.signPsbtRawtTx=t.getManyKeyPair=t.getKeyPair=t.generateNewWallet=void 0;var o=r(90749),n=r(852),a=r(21757),i=r(59705),s=r(38700),c=r(31067),l=r(33017),u=s.ECPairFactory(c),p=n.BIP32Factory(c),d=a.payments.p2wpkh,h=a.payments.p2sh,f=a.payments.p2ms,m=a.payments.p2wsh;t.generateNewWallet=function(e){return i.networks[e]?{mnemonic:o.generateMnemonic()}:{error:"Network not found!"}};t.getKeyPair=function(e,t,r){var n=i.networks[e];if(!n)return{error:"Network not found!"};var a=o.mnemonicToSeedSync(t),s=p.fromSeed(a,n).derivePath(r),c=d({pubkey:s.publicKey,network:n});return{address:h({redeem:c}).address,privkey:s.privateKey.toString("hex"),pubkey:s.publicKey.toString("hex"),wif:s.toWIF()}};t.getManyKeyPair=function(e,r,o){if(!i.networks[e])return{error:"Network not found!"};var n=Object.keys(o),a={};return n.forEach((function(n){a[n]=[],o[n].forEach((function(o){var i=t.getKeyPair(e,r,o);a[n].push(i)}))})),a};var v=function(e,t,r){return u.fromPublicKey(e).verify(t,r)};t.signPsbtRawtTx=function(e){try{var t=e.wif,r=e.network,o=e.psbtHex,n=i.networks[r],s=u.fromWIF(t,n),c=a.Psbt.fromHex(o);c.signAllInputs(s);var l=c.toHex();try{return c.finalizeAllInputs(),{data:{psbtHex:l,isFinished:!0,finalHex:c.extractTransaction().toHex()}}}catch(e){return{data:{psbtHex:l,isFinished:!1}}}}catch(e){return{error:e.message}}};t.signRawTransction=function(e){try{var t=e.rawtx,r=e.wif,o=e.inputs,n=e.network,s=i.networks[n],c=u.fromWIF(r,s),p=d({pubkey:c.publicKey,network:s}).output,h=a.Transaction.fromHex(t),g=function(e){var t=f({output:Buffer.from(e,"hex"),network:s});return m({redeem:t}).output},y=new a.Psbt({network:s});o.forEach((function(e){var t=e.txid,r=e.vout,o=l.safeNumber(e.amount*Math.pow(10,8),0),n={hash:t,index:r,witnessUtxo:{script:e.redeemScript?g(e.redeemScript):p,value:o}};e.redeemScript&&(n.witnessScript=Buffer.from(e.redeemScript,"hex")),e.redeemScript?n.redeemScript=g(e.redeemScript):n.redeemScript=p,y.addInput(n)})),y.addOutputs(h.outs),y.signAllInputs(c);var b=y.validateSignaturesOfAllInputs(v);try{return y.finalizeAllInputs(),{data:{signedHex:y.extractTransaction().toHex(),isValid:b,isFinished:!0}}}catch(e){return{data:{signedHex:y.toHex(),isValid:b,isFinished:!1}}}}catch(e){return{error:e.message}}};t.buildPsbt=function(e){try{var t=e.rawtx,r=e.inputs,o=e.network,n=i.networks[o],s=a.Transaction.fromHex(t),c=new a.Psbt({network:n});return r.forEach((function(e){var t=e.txid,r=e.vout,o=l.safeNumber(e.amount*Math.pow(10,8),0),n={hash:t,index:r,witnessUtxo:{script:Buffer.from(e.scriptPubKey,"hex"),value:o}};e.redeemScript&&(n.witnessScript=Buffer.from(e.redeemScript,"hex")),c.addInput(n)})),c.addOutputs(s.outs),{data:c.toHex()}}catch(e){return{error:e.message}}}},59705:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.networks=void 0;t.networks={BTC:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},LTC:{messagePrefix:"Litecoin Signed Message:\n",bech32:"ltc",bip32:{public:27108450,private:27106558},pubKeyHash:48,scriptHash:50,wif:176},LTCTEST:{messagePrefix:"Litecoin Testnet Signed Message:\n",bech32:"tltc",bip32:{public:70711009,private:70709117},pubKeyHash:111,scriptHash:58,wif:239},BTCTEST:{messagePrefix:"Bitcoin Testnet Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}}},1061:(e,t,r)=>{var o=r(12113);function n(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function a(e){return o.Nil(e)?"":n(e.constructor)}function i(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e){return o.Function(e)?e.toJSON?e.toJSON():n(e):o.Array(e)?"Array":e&&o.Object(e)?"Object":void 0!==e?e:""}function c(e,t,r){var n=function(e){return o.Function(e)?"":o.String(e)?JSON.stringify(e):e&&o.Object(e)?"":e}(t);return"Expected "+s(e)+", got"+(""!==r?" "+r:"")+(""!==n?" "+n:"")}function l(e,t,r){r=r||a(t),this.message=c(e,t,r),i(this,l),this.__type=e,this.__value=t,this.__valueTypeName=r}function u(e,t,r,o,n){e?(n=n||a(o),this.message=function(e,t,r,o,n){var a='" of type ';return"key"===t&&(a='" with key type '),c('property "'+s(r)+a+s(e),o,n)}(e,r,t,o,n)):this.message='Unexpected property "'+t+'"',i(this,l),this.__label=r,this.__property=t,this.__type=e,this.__value=o,this.__valueTypeName=n}l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,u.prototype=Object.create(Error.prototype),u.prototype.constructor=l,e.exports={TfTypeError:l,TfPropertyTypeError:u,tfCustomError:function(e,t){return new l(e,{},t)},tfSubError:function(e,t,r){return e instanceof u?(t=t+"."+e.__property,e=new u(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof l&&(e=new u(e.__type,t,r,e.__value,e.__valueTypeName)),i(e),e},tfJSON:s,getValueTypeName:a}},69542:(e,t,r)=>{var o=r(12113),n=r(1061);function a(e){return Buffer.isBuffer(e)}function i(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function s(e,t){var r=e.toJSON();function o(o){if(!e(o))return!1;if(o.length===t)return!0;throw n.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+o.length+")")}return o.toJSON=function(){return r},o}var c=s.bind(null,o.Array),l=s.bind(null,a),u=s.bind(null,i),p=s.bind(null,o.String);var d=Math.pow(2,53)-1;var h={ArrayN:c,Buffer:a,BufferN:l,Finite:function(e){return"number"==typeof e&&isFinite(e)},Hex:i,HexN:u,Int8:function(e){return e<<24>>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-d&&e<=d&&Math.floor(e)===e},Range:function(e,t,r){function n(o,n){return r(o,n)&&o>e&&o<t}return r=r||o.Number,n.toJSON=function(){return`${r.toJSON()} between [${e}, ${t}]`},n},StringN:p,UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=d&&Math.floor(e)===e}};for(var f in h)h[f].toJSON=function(e){return e}.bind(null,f);e.exports=h},8676:(e,t,r)=>{var o=r(1061),n=r(12113),a=o.tfJSON,i=o.TfTypeError,s=o.TfPropertyTypeError,c=o.tfSubError,l=o.getValueTypeName,u={arrayOf:function(e,t){function r(r,o){return!!n.Array(r)&&(!n.Nil(r)&&(!(void 0!==t.minLength&&r.length<t.minLength)&&(!(void 0!==t.maxLength&&r.length>t.maxLength)&&((void 0===t.length||r.length===t.length)&&r.every((function(t,r){try{return d(e,t,o)}catch(e){throw c(e,r)}}))))))}return e=p(e),t=t||{},r.toJSON=function(){var r="["+a(e)+"]";return void 0!==t.length?r+="{"+t.length+"}":void 0===t.minLength&&void 0===t.maxLength||(r+="{"+(void 0===t.minLength?0:t.minLength)+","+(void 0===t.maxLength?1/0:t.maxLength)+"}"),r},r},maybe:function e(t){function r(r,o){return n.Nil(r)||t(r,o,e)}return t=p(t),r.toJSON=function(){return"?"+a(t)},r},map:function(e,t){function r(r,o){if(!n.Object(r))return!1;if(n.Nil(r))return!1;for(var a in r){try{t&&d(t,a,o)}catch(e){throw c(e,a,"key")}try{var i=r[a];d(e,i,o)}catch(e){throw c(e,a)}}return!0}return e=p(e),t&&(t=p(t)),r.toJSON=t?function(){return"{"+a(t)+": "+a(e)+"}"}:function(){return"{"+a(e)+"}"},r},object:function(e){var t={};for(var r in e)t[r]=p(e[r]);function o(e,r){if(!n.Object(e))return!1;if(n.Nil(e))return!1;var o;try{for(o in t){d(t[o],e[o],r)}}catch(e){throw c(e,o)}if(r)for(o in e)if(!t[o])throw new s(void 0,o);return!0}return o.toJSON=function(){return a(t)},o},anyOf:function(){var e=[].slice.call(arguments).map(p);function t(t,r){return e.some((function(e){try{return d(e,t,r)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(a).join("|")},t},allOf:function(){var e=[].slice.call(arguments).map(p);function t(t,r){return e.every((function(e){try{return d(e,t,r)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(a).join(" & ")},t},quacksLike:function(e){function t(t){return e===l(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(p);function t(t,r){return!n.Nil(t)&&(!n.Nil(t.length)&&((!r||t.length===e.length)&&e.every((function(e,o){try{return d(e,t[o],r)}catch(e){throw c(e,o)}}))))}return t.toJSON=function(){return"("+e.map(a).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function p(e){if(n.String(e))return"?"===e[0]?u.maybe(e.slice(1)):n[e]||u.quacksLike(e);if(e&&n.Object(e)){if(n.Array(e)){if(1!==e.length)throw new TypeError("Expected compile() parameter of type Array of length 1");return u.arrayOf(e[0])}return u.object(e)}return n.Function(e)?e:u.value(e)}function d(e,t,r,o){if(n.Function(e)){if(e(t,r))return!0;throw new i(o||e,t)}return d(p(e),t,r)}for(var h in u.oneOf=u.anyOf,n)d[h]=n[h];for(h in u)d[h]=u[h];var f=r(69542);for(h in f)d[h]=f[h];d.compile=p,d.TfTypeError=i,d.TfPropertyTypeError=s,e.exports=d},12113:e=>{var t={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var r in t.Null=t.Nil,t)t[r].toJSON=function(e){return e}.bind(null,r);e.exports=t},46579:function(e,t){
|
|
67
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
68
|
+
!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var o=t.length-1,n=1;n<o;++n)t[n]=t[n].slice(1,-1);return t[o]=t[o].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function o(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function n(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var o in t)r[o]=t[o];return r}function s(e){var o="[A-Za-z]",n="[0-9]",a=t(n,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",u=t(o,n,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),p=r(o+t(o,n,"[\\+\\-\\.]")+"*"),d=r(r(i+"|"+t(u,s,"[\\:]"))+"*"),h=(r(r("25[0-5]")+"|"+r("2[0-4]"+n)+"|"+r("1"+n+n)+"|"+r("[1-9]"+n)+"|"+n),r(r("25[0-5]")+"|"+r("2[0-4]"+n)+"|"+r("1"+n+n)+"|"+r("0?[1-9]"+n)+"|0?0?"+n)),f=r(h+"\\."+h+"\\."+h+"\\."+h),m=r(a+"{1,4}"),v=r(r(m+"\\:"+m)+"|"+f),g=r(r(m+"\\:")+"{6}"+v),y=r("\\:\\:"+r(m+"\\:")+"{5}"+v),b=r(r(m)+"?\\:\\:"+r(m+"\\:")+"{4}"+v),w=r(r(r(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+r(m+"\\:")+"{3}"+v),x=r(r(r(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+r(m+"\\:")+"{2}"+v),k=r(r(r(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+v),_=r(r(r(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+v),E=r(r(r(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),S=r(r(r(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),P=r([g,y,b,w,x,k,_,E,S].join("|")),T=r(r(u+"|"+i)+"+"),O=(r(P+"\\%25"+T),r(P+r("\\%25|\\%(?!"+a+"{2})")+T)),j=r("[vV]"+a+"+\\."+t(u,s,"[\\:]")+"+"),R=r("\\["+r(O+"|"+P+"|"+j)+"\\]"),I=r(r(i+"|"+t(u,s))+"*"),C=r(R+"|"+f+"(?!"+I+")|"+I),A=r(n+"*"),N=r(r(d+"@")+"?"+C+r("\\:"+A)+"?"),$=r(i+"|"+t(u,s,"[\\:\\@]")),L=r($+"*"),D=r($+"+"),z=r(r(i+"|"+t(u,s,"[\\@]"))+"+"),B=r(r("\\/"+L)+"*"),q=r("\\/"+r(D+B)+"?"),F=r(z+B),M=r(D+B),U="(?!"+$+")",H=(r(B+"|"+q+"|"+F+"|"+M+"|"+U),r(r($+"|"+t("[\\/\\?]",l))+"*")),V=r(r($+"|[\\/\\?]")+"*"),K=r(r("\\/\\/"+N+B)+"|"+q+"|"+M+"|"+U),G=r(p+"\\:"+K+r("\\?"+H)+"?"+r("\\#"+V)+"?"),W=r(r("\\/\\/"+N+B)+"|"+q+"|"+F+"|"+U),J=r(W+r("\\?"+H)+"?"+r("\\#"+V)+"?");return r(G+"|"+J),r(p+"\\:"+K+r("\\?"+H)+"?"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+A+")")+"?)")+"?("+B+"|"+q+"|"+M+"|"+U+")"),r("\\?("+H+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+A+")")+"?)")+"?("+B+"|"+q+"|"+F+"|"+U+")"),r("\\?("+H+")"),r("\\#("+V+")"),r(r("\\/\\/("+r("("+d+")@")+"?("+C+")"+r("\\:("+A+")")+"?)")+"?("+B+"|"+q+"|"+M+"|"+U+")"),r("\\?("+H+")"),r("\\#("+V+")"),r("("+d+")@"),r("\\:("+A+")"),{NOT_SCHEME:new RegExp(t("[^]",o,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",u,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",u,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",u,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",u,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",u,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",u,s),"g"),UNRESERVED:new RegExp(u,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",u,c),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+P+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+T+")")+"?\\]?$")}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var r=[],o=!0,n=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(e){n=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(n)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},d=2147483647,h=36,f=1,m=26,v=38,g=700,y=72,b=128,w="-",x=/^xn--/,k=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=h-f,P=Math.floor,T=String.fromCharCode;function O(e){throw new RangeError(E[e])}function j(e,t){for(var r=[],o=e.length;o--;)r[o]=t(e[o]);return r}function R(e,t){var r=e.split("@"),o="";return r.length>1&&(o=r[0]+"@",e=r[1]),o+j((e=e.replace(_,".")).split("."),t).join(".")}function I(e){for(var t=[],r=0,o=e.length;r<o;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<o){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&n)<<10)+(1023&a)+65536):(t.push(n),r--)}else t.push(n)}return t}var C=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h},A=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},N=function(e,t,r){var o=0;for(e=r?P(e/g):e>>1,e+=P(e/t);e>S*m>>1;o+=h)e=P(e/S);return P(o+(S+1)*e/(e+v))},$=function(e){var t=[],r=e.length,o=0,n=b,a=y,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&O("not-basic"),t.push(e.charCodeAt(s));for(var c=i>0?i+1:0;c<r;){for(var l=o,u=1,p=h;;p+=h){c>=r&&O("invalid-input");var v=C(e.charCodeAt(c++));(v>=h||v>P((d-o)/u))&&O("overflow"),o+=v*u;var g=p<=a?f:p>=a+m?m:p-a;if(v<g)break;var x=h-g;u>P(d/x)&&O("overflow"),u*=x}var k=t.length+1;a=N(o-l,k,0==l),P(o/k)>d-n&&O("overflow"),n+=P(o/k),o%=k,t.splice(o++,0,n)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[],r=(e=I(e)).length,o=b,n=0,a=y,i=!0,s=!1,c=void 0;try{for(var l,u=e[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var p=l.value;p<128&&t.push(T(p))}}catch(e){s=!0,c=e}finally{try{!i&&u.return&&u.return()}finally{if(s)throw c}}var v=t.length,g=v;for(v&&t.push(w);g<r;){var x=d,k=!0,_=!1,E=void 0;try{for(var S,j=e[Symbol.iterator]();!(k=(S=j.next()).done);k=!0){var R=S.value;R>=o&&R<x&&(x=R)}}catch(e){_=!0,E=e}finally{try{!k&&j.return&&j.return()}finally{if(_)throw E}}var C=g+1;x-o>P((d-n)/C)&&O("overflow"),n+=(x-o)*C,o=x;var $=!0,L=!1,D=void 0;try{for(var z,B=e[Symbol.iterator]();!($=(z=B.next()).done);$=!0){var q=z.value;if(q<o&&++n>d&&O("overflow"),q==o){for(var F=n,M=h;;M+=h){var U=M<=a?f:M>=a+m?m:M-a;if(F<U)break;var H=F-U,V=h-U;t.push(T(A(U+H%V,0))),F=P(H/V)}t.push(T(A(F,0))),a=N(n,C,g==v),n=0,++g}}}catch(e){L=!0,D=e}finally{try{!$&&B.return&&B.return()}finally{if(L)throw D}}++n,++o}return t.join("")},D=function(e){return R(e,(function(e){return x.test(e)?$(e.slice(4).toLowerCase()):e}))},z=function(e){return R(e,(function(e){return k.test(e)?"xn--"+L(e):e}))},B={version:"2.1.0",ucs2:{decode:I,encode:function(e){return String.fromCodePoint.apply(String,p(e))}},decode:$,encode:L,toASCII:z,toUnicode:D},q={};function F(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function M(e){for(var t="",r=0,o=e.length;r<o;){var n=parseInt(e.substr(r+1,2),16);if(n<128)t+=String.fromCharCode(n),r+=3;else if(n>=194&&n<224){if(o-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&n)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(n>=224){if(o-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&n)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=M(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,F).replace(t.PCT_ENCODED,n)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,F).replace(t.PCT_ENCODED,n)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,F).replace(t.PCT_ENCODED,n)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,F).replace(t.PCT_ENCODED,n)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,F).replace(t.PCT_ENCODED,n)),e}function H(e){return e.replace(/^0*(.*)/,"$1")||"0"}function V(e,t){var r=e.match(t.IPV4ADDRESS)||[],o=u(r,2)[1];return o?o.split(".").map(H).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],o=u(r,3),n=o[1],a=o[2];if(n){for(var i=n.toLowerCase().split("::").reverse(),s=u(i,2),c=s[0],l=s[1],p=l?l.split(":").map(H):[],d=c.split(":").map(H),h=t.IPV4ADDRESS.test(d[d.length-1]),f=h?7:8,m=d.length-f,v=Array(f),g=0;g<f;++g)v[g]=p[g]||d[m+g]||"";h&&(v[f-1]=V(v[f-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var o=e[e.length-1];o&&o.index+o.length===r?o.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=v.slice(0,y.index),x=v.slice(y.index+y.length);b=w.join(":")+"::"+x.join(":")}else b=v.join(":");return a&&(b+="%"+a),b}return e}var G=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,W=void 0==="".match(/(){0}/)[1];function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},o=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var n=e.match(G);if(n){W?(r.scheme=n[1],r.userinfo=n[3],r.host=n[4],r.port=parseInt(n[5],10),r.path=n[6]||"",r.query=n[7],r.fragment=n[8],isNaN(r.port)&&(r.port=n[5])):(r.scheme=n[1]||void 0,r.userinfo=-1!==e.indexOf("@")?n[3]:void 0,r.host=-1!==e.indexOf("//")?n[4]:void 0,r.port=parseInt(n[5],10),r.path=n[6]||"",r.query=-1!==e.indexOf("?")?n[7]:void 0,r.fragment=-1!==e.indexOf("#")?n[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:void 0)),r.host&&(r.host=K(V(r.host,o),o)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=q[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,o);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=B.toASCII(r.host.replace(o.PCT_ENCODED,M).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,c)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Y(e,t){var r=!1!==t.iri?l:c,o=[];return void 0!==e.userinfo&&(o.push(e.userinfo),o.push("@")),void 0!==e.host&&o.push(K(V(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(o.push(":"),o.push(String(e.port))),o.length?o.join(""):void 0}var X=/^\.\.?\//,Q=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(X))e=e.replace(X,"");else if(e.match(Q))e=e.replace(Q,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var o=r[0];e=e.slice(o.length),t.push(o)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?l:c,o=[],n=q[(t.scheme||e.scheme||"").toLowerCase()];if(n&&n.serialize&&n.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||n&&n.domainHost)try{e.host=t.iri?B.toUnicode(e.host):B.toASCII(e.host.replace(r.PCT_ENCODED,M).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(o.push(e.scheme),o.push(":"));var a=Y(e,t);if(void 0!==a&&("suffix"!==t.reference&&o.push("//"),o.push(a),e.path&&"/"!==e.path.charAt(0)&&o.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||n&&n.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),o.push(i)}return void 0!==e.query&&(o.push("?"),o.push(e.query)),void 0!==e.fragment&&(o.push("#"),o.push(e.fragment)),o.join("")}function oe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={};return arguments[3]||(e=J(re(e,r),r),t=J(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=te(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=te(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=te(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function ne(e,t,r){var o=i({scheme:"null"},r);return re(oe(J(e,o),J(t,o),o,!0),o)}function ae(e,t){return"string"==typeof e?e=re(J(e,t),t):"object"===o(e)&&(e=J(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(J(e,r),r):"object"===o(e)&&(e=re(e,r)),"string"==typeof t?t=re(J(t,r),r):"object"===o(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,F)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,M)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ue={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function pe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var de={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=pe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(pe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),o=u(r,2),n=o[0],a=o[1];e.path=n&&"/"!==n?n:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:de.domainHost,parse:de.parse,serialize:de.serialize},fe={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",xe=new RegExp(me,"g"),ke=new RegExp(ge,"g"),_e=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),Ee=new RegExp(t("[^]",me,we),"g"),Se=Ee;function Pe(e){var t=M(e);return t.match(xe)?t:e}var Te={scheme:"mailto",parse:function(e,t){var r=e,o=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var n=!1,a={},i=r.query.split("&"),s=0,c=i.length;s<c;++s){var l=i[s].split("=");switch(l[0]){case"to":for(var u=l[1].split(","),p=0,d=u.length;p<d;++p)o.push(u[p]);break;case"subject":r.subject=ce(l[1],t);break;case"body":r.body=ce(l[1],t);break;default:n=!0,a[ce(l[0],t)]=ce(l[1],t)}}n&&(r.headers=a)}r.query=void 0;for(var h=0,f=o.length;h<f;++h){var m=o[h].split("@");if(m[0]=ce(m[0]),t.unicodeSupport)m[1]=ce(m[1],t).toLowerCase();else try{m[1]=B.toASCII(ce(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}o[h]=m.join("@")}return r},serialize:function(e,t){var r=e,o=a(e.to);if(o){for(var i=0,s=o.length;i<s;++i){var c=String(o[i]),l=c.lastIndexOf("@"),u=c.slice(0,l).replace(ke,Pe).replace(ke,n).replace(_e,F),p=c.slice(l+1);try{p=t.iri?B.toUnicode(p):B.toASCII(ce(p,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}o[i]=u+"@"+p}r.path=o.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var f in d)d[f]!==fe[f]&&h.push(f.replace(ke,Pe).replace(ke,n).replace(Ee,F)+"="+d[f].replace(ke,Pe).replace(ke,n).replace(Se,F));return h.length&&(r.query=h.join("&")),r}},Oe=/^([^\:]+)\:(.*)/,je={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Oe),o=e;if(r){var n=t.scheme||o.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=n+":"+(t.nid||a),c=q[s];o.nid=a,o.nss=i,o.path=void 0,c&&(o=c.parse(o,t))}else o.error=o.error||"URN can not be parsed.";return o},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",o=e.nid,n=r+":"+(t.nid||o),a=q[n];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(o||t.nid)+":"+s,i}},Re=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ie={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Re)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};q[le.scheme]=le,q[ue.scheme]=ue,q[de.scheme]=de,q[he.scheme]=he,q[Te.scheme]=Te,q[je.scheme]=je,q[Ie.scheme]=Ie,e.SCHEMES=q,e.pctEncChar=F,e.pctDecChars=M,e.parse=J,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=oe,e.resolve=ne,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},68469:(e,t,r)=>{"use strict";var o=r(92861).Buffer;function n(e){if(e<0||e>9007199254740991||e%1!=0)throw new RangeError("value out of range")}function a(e){return n(e),e<253?1:e<=65535?3:e<=4294967295?5:9}e.exports={encode:function e(t,r,i){if(n(t),r||(r=o.allocUnsafe(a(t))),!o.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");return i||(i=0),t<253?(r.writeUInt8(t,i),e.bytes=1):t<=65535?(r.writeUInt8(253,i),r.writeUInt16LE(t,i+1),e.bytes=3):t<=4294967295?(r.writeUInt8(254,i),r.writeUInt32LE(t,i+1),e.bytes=5):(r.writeUInt8(255,i),r.writeUInt32LE(t>>>0,i+1),r.writeUInt32LE(t/4294967296|0,i+5),e.bytes=9),r},decode:function e(t,r){if(!o.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");r||(r=0);var a=t.readUInt8(r);if(a<253)return e.bytes=1,a;if(253===a)return e.bytes=3,t.readUInt16LE(r+1);if(254===a)return e.bytes=5,t.readUInt32LE(r+1);e.bytes=9;var i=t.readUInt32LE(r+1),s=4294967296*t.readUInt32LE(r+5)+i;return n(s),s},encodingLength:a}},30677:e=>{"use strict";
|
|
69
|
+
/*!
|
|
70
|
+
* vary
|
|
71
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
72
|
+
* MIT Licensed
|
|
73
|
+
*/e.exports=function(e,t){if(!e||!e.getHeader||!e.setHeader)throw new TypeError("res argument is required");var o=e.getHeader("Vary")||"",n=Array.isArray(o)?o.join(", "):String(o);(o=r(n,t))&&e.setHeader("Vary",o)},e.exports.append=r;var t=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function r(e,r){if("string"!=typeof e)throw new TypeError("header argument is required");if(!r)throw new TypeError("field argument is required");for(var n=Array.isArray(r)?r:o(String(r)),a=0;a<n.length;a++)if(!t.test(n[a]))throw new TypeError("field argument contains an invalid header name");if("*"===e)return e;var i=e,s=o(e.toLowerCase());if(-1!==n.indexOf("*")||-1!==s.indexOf("*"))return"*";for(var c=0;c<n.length;c++){var l=n[c].toLowerCase();-1===s.indexOf(l)&&(s.push(l),i=i?i+", "+n[c]:n[c])}return i}function o(e){for(var t=0,r=[],o=0,n=0,a=e.length;n<a;n++)switch(e.charCodeAt(n)){case 32:o===t&&(o=t=n+1);break;case 44:r.push(e.substring(o,t)),o=t=n+1;break;default:t=n+1}return r.push(e.substring(o,t)),r}},57513:(e,t,r)=>{var o=r(91889);function n(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function a(e,t,r){var o=new Buffer(r?34:33);return o.writeUInt8(e,0),t.copy(o,1),r&&(o[33]=1),o}e.exports={decode:function(e,t){return n(o.decode(e),t)},decodeRaw:n,encode:function(e,t,r){return"number"==typeof e?o.encode(a(e,t,r)):o.encode(a(e.version,e.privateKey,e.compressed))},encodeRaw:a}},17699:(e,t,r)=>{"use strict";const o=r(91060);o.createWebSocketStream=r(3719),o.Server=r(61722),o.Receiver=r(46286),o.Sender=r(80914),o.WebSocket=o,o.WebSocketServer=o.Server,e.exports=o},93338:(e,t,r)=>{"use strict";const{EMPTY_BUFFER:o}=r(32614);function n(e,t){if(0===e.length)return o;if(1===e.length)return e[0];const r=Buffer.allocUnsafe(t);let n=0;for(let t=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return n<t?r.slice(0,n):r}function a(e,t,r,o,n){for(let a=0;a<n;a++)r[o+a]=e[a]^t[3&a]}function i(e,t){for(let r=0;r<e.length;r++)e[r]^=t[3&r]}function s(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=Buffer.from(e):ArrayBuffer.isView(e)?t=Buffer.from(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}try{const t=r(95294);e.exports={concat:n,mask(e,r,o,n,i){i<48?a(e,r,o,n,i):t.mask(e,r,o,n,i)},toArrayBuffer:s,toBuffer:c,unmask(e,r){e.length<32?i(e,r):t.unmask(e,r)}}}catch(t){e.exports={concat:n,mask:a,toArrayBuffer:s,toBuffer:c,unmask:i}}},32614:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},90597:(e,t,r)=>{"use strict";const{kForOnEventAttribute:o,kListener:n}=r(32614),a=Symbol("kCode"),i=Symbol("kData"),s=Symbol("kError"),c=Symbol("kMessage"),l=Symbol("kReason"),u=Symbol("kTarget"),p=Symbol("kType"),d=Symbol("kWasClean");class h{constructor(e){this[u]=null,this[p]=e}get target(){return this[u]}get type(){return this[p]}}Object.defineProperty(h.prototype,"target",{enumerable:!0}),Object.defineProperty(h.prototype,"type",{enumerable:!0});class f extends h{constructor(e,t={}){super(e),this[a]=void 0===t.code?0:t.code,this[l]=void 0===t.reason?"":t.reason,this[d]=void 0!==t.wasClean&&t.wasClean}get code(){return this[a]}get reason(){return this[l]}get wasClean(){return this[d]}}Object.defineProperty(f.prototype,"code",{enumerable:!0}),Object.defineProperty(f.prototype,"reason",{enumerable:!0}),Object.defineProperty(f.prototype,"wasClean",{enumerable:!0});class m extends h{constructor(e,t={}){super(e),this[s]=void 0===t.error?null:t.error,this[c]=void 0===t.message?"":t.message}get error(){return this[s]}get message(){return this[c]}}Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});class v extends h{constructor(e,t={}){super(e),this[i]=void 0===t.data?null:t.data}get data(){return this[i]}}Object.defineProperty(v.prototype,"data",{enumerable:!0});const g={addEventListener(e,t,r={}){let a;if("message"===e)a=function(e,r){const o=new v("message",{data:r?e:e.toString()});o[u]=this,t.call(this,o)};else if("close"===e)a=function(e,r){const o=new f("close",{code:e,reason:r.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[u]=this,t.call(this,o)};else if("error"===e)a=function(e){const r=new m("error",{error:e,message:e.message});r[u]=this,t.call(this,r)};else{if("open"!==e)return;a=function(){const e=new h("open");e[u]=this,t.call(this,e)}}a[o]=!!r[o],a[n]=t,r.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(const r of this.listeners(e))if(r[n]===t&&!r[o]){this.removeListener(e,r);break}}};e.exports={CloseEvent:f,ErrorEvent:m,Event:h,EventTarget:g,MessageEvent:v}},55926:(e,t,r)=>{"use strict";const{tokenChars:o}=r(95880);function n(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}e.exports={format:function(e){return Object.keys(e).map((t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map((e=>[t].concat(Object.keys(e).map((t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map((e=>!0===e?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")},parse:function(e){const t=Object.create(null);let r,a,i=Object.create(null),s=!1,c=!1,l=!1,u=-1,p=-1,d=-1,h=0;for(;h<e.length;h++)if(p=e.charCodeAt(h),void 0===r)if(-1===d&&1===o[p])-1===u&&(u=h);else if(0===h||32!==p&&9!==p){if(59!==p&&44!==p)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===u)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);const o=e.slice(u,d);44===p?(n(t,o,i),i=Object.create(null)):r=o,u=d=-1}}else-1===d&&-1!==u&&(d=h);else if(void 0===a)if(-1===d&&1===o[p])-1===u&&(u=h);else if(32===p||9===p)-1===d&&-1!==u&&(d=h);else if(59===p||44===p){if(-1===u)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h),n(i,e.slice(u,d),!0),44===p&&(n(t,r,i),i=Object.create(null),r=void 0),u=d=-1}else{if(61!==p||-1===u||-1!==d)throw new SyntaxError(`Unexpected character at index ${h}`);a=e.slice(u,h),u=d=-1}else if(c){if(1!==o[p])throw new SyntaxError(`Unexpected character at index ${h}`);-1===u?u=h:s||(s=!0),c=!1}else if(l)if(1===o[p])-1===u&&(u=h);else if(34===p&&-1!==u)l=!1,d=h;else{if(92!==p)throw new SyntaxError(`Unexpected character at index ${h}`);c=!0}else if(34===p&&61===e.charCodeAt(h-1))l=!0;else if(-1===d&&1===o[p])-1===u&&(u=h);else if(-1===u||32!==p&&9!==p){if(59!==p&&44!==p)throw new SyntaxError(`Unexpected character at index ${h}`);{if(-1===u)throw new SyntaxError(`Unexpected character at index ${h}`);-1===d&&(d=h);let o=e.slice(u,d);s&&(o=o.replace(/\\/g,""),s=!1),n(i,a,o),44===p&&(n(t,r,i),i=Object.create(null),r=void 0),a=void 0,u=d=-1}}else-1===d&&(d=h);if(-1===u||l||32===p||9===p)throw new SyntaxError("Unexpected end of input");-1===d&&(d=h);const f=e.slice(u,d);return void 0===r?n(t,f,i):(void 0===a?n(i,f,!0):n(i,a,s?f.replace(/\\/g,""):f),n(t,r,i)),t}}},4759:e=>{"use strict";const t=Symbol("kDone"),r=Symbol("kRun");e.exports=class{constructor(e){this[t]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[t])}}}},42971:(e,t,r)=>{"use strict";const o=r(43106),n=r(93338),a=r(4759),{kStatusCode:i}=r(32614),s=Buffer.from([0,0,255,255]),c=Symbol("permessage-deflate"),l=Symbol("total-length"),u=Symbol("callback"),p=Symbol("buffers"),d=Symbol("error");let h;function f(e){this[p].push(e),this[l]+=e.length}function m(e){this[l]+=e.length,this[c]._maxPayload<1||this[l]<=this[c]._maxPayload?this[p].push(e):(this[d]=new RangeError("Max payload size exceeded"),this[d].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[d][i]=1009,this.removeListener("data",m),this.reset())}function v(e){this[c]._inflate=null,e[i]=1007,this[u](e)}e.exports=class{constructor(e,t,r){if(this._maxPayload=0|r,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!h){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;h=new a(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,r=e.find((e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits)));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(r.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?r.client_max_window_bits=t.clientMaxWindowBits:!0!==r.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete r.client_max_window_bits,r}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach((e=>{Object.keys(e).forEach((t=>{let r=e[t];if(r.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(r=r[0],"client_max_window_bits"===t){if(!0!==r){const e=+r;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}else if("server_max_window_bits"===t){const e=+r;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${r}`);r=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==r)throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}e[t]=r}))})),e}decompress(e,t,r){h.add((o=>{this._decompress(e,t,((e,t)=>{o(),r(e,t)}))}))}compress(e,t,r){h.add((o=>{this._compress(e,t,((e,t)=>{o(),r(e,t)}))}))}_decompress(e,t,r){const a=this._isServer?"client":"server";if(!this._inflate){const e=`${a}_max_window_bits`,t="number"!=typeof this.params[e]?o.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=o.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[l]=0,this._inflate[p]=[],this._inflate.on("error",v),this._inflate.on("data",m)}this._inflate[u]=r,this._inflate.write(e),t&&this._inflate.write(s),this._inflate.flush((()=>{const e=this._inflate[d];if(e)return this._inflate.close(),this._inflate=null,void r(e);const o=n.concat(this._inflate[p],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[p]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),r(null,o)}))}_compress(e,t,r){const a=this._isServer?"server":"client";if(!this._deflate){const e=`${a}_max_window_bits`,t="number"!=typeof this.params[e]?o.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=o.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[p]=[],this._deflate.on("data",f)}this._deflate[u]=r,this._deflate.write(e),this._deflate.flush(o.Z_SYNC_FLUSH,(()=>{if(!this._deflate)return;let e=n.concat(this._deflate[p],this._deflate[l]);t&&(e=e.slice(0,e.length-4)),this._deflate[u]=null,this._deflate[l]=0,this._deflate[p]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),r(null,e)}))}}},46286:(e,t,r)=>{"use strict";const{Writable:o}=r(2203),n=r(42971),{BINARY_TYPES:a,EMPTY_BUFFER:i,kStatusCode:s,kWebSocket:c}=r(32614),{concat:l,toArrayBuffer:u,unmask:p}=r(93338),{isValidStatusCode:d,isValidUTF8:h}=r(95880);function f(e,t,r,o,n){const a=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,f),a.code=n,a[s]=o,a}e.exports=class extends o{constructor(e={}){super(),this._binaryType=e.binaryType||a[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=0,this._loop=!1}_write(e,t,r){if(8===this._opcode&&0==this._state)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=t.slice(e),t.slice(0,e)}const t=Buffer.allocUnsafe(e);do{const r=this._buffers[0],o=t.length-e;e>=r.length?t.set(this._buffers.shift(),o):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),o),this._buffers[0]=r.slice(e)),e-=r.length}while(e>0);return t}startLoop(e){let t;this._loop=!0;do{switch(this._state){case 0:t=this.getInfo();break;case 1:t=this.getPayloadLength16();break;case 2:t=this.getPayloadLength64();break;case 3:this.getMask();break;case 4:t=this.getData(e);break;default:return void(this._loop=!1)}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2)return void(this._loop=!1);const e=this.consume(2);if(0!=(48&e[0]))return this._loop=!1,f(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");const t=64==(64&e[0]);if(t&&!this._extensions[n.extensionName])return this._loop=!1,f(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=128==(128&e[0]),this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(t)return this._loop=!1,f(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,f(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return this._loop=!1,f(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=t}else{if(!(this._opcode>7&&this._opcode<11))return this._loop=!1,f(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin)return this._loop=!1,f(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(t)return this._loop=!1,f(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,f(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=128==(128&e[1]),this._isServer){if(!this._masked)return this._loop=!1,f(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,f(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(126===this._payloadLength)this._state=1;else{if(127!==this._payloadLength)return this.haveLength();this._state=2}}getPayloadLength16(){if(!(this._bufferedBytes<2))return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength();this._loop=!1}getPayloadLength64(){if(this._bufferedBytes<8)return void(this._loop=!1);const e=this.consume(8),t=e.readUInt32BE(0);return t>Math.pow(2,21)-1?(this._loop=!1,f(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,f(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=i;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&p(t,this._mask)}return this._opcode>7?this.controlMessage(t):this._compressed?(this._state=5,void this.decompress(t,e)):(t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage())}decompress(e,t){this._extensions[n.extensionName].decompress(e,this._fin,((e,r)=>{if(e)return t(e);if(r.length){if(this._messageLength+=r.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return t(f(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(r)}const o=this.dataMessage();if(o)return t(o);this.startLoop(t)}))}dataMessage(){if(this._fin){const e=this._messageLength,t=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?l(t,e):"arraybuffer"===this._binaryType?u(l(t,e)):t,this.emit("message",r,!0)}else{const r=l(t,e);if(!this._skipUTF8Validation&&!h(r))return this._loop=!1,f(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",r,!1)}}this._state=0}controlMessage(e){if(8===this._opcode)if(this._loop=!1,0===e.length)this.emit("conclude",1005,i),this.end();else{if(1===e.length)return f(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");{const t=e.readUInt16BE(0);if(!d(t))return f(RangeError,`invalid status code ${t}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");const r=e.slice(2);if(!this._skipUTF8Validation&&!h(r))return f(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",t,r),this.end()}}else 9===this._opcode?this.emit("ping",e):this.emit("pong",e);this._state=0}}},80914:(e,t,r)=>{"use strict";r(69278),r(64756);const{randomFillSync:o}=r(76982),n=r(42971),{EMPTY_BUFFER:a}=r(32614),{isValidStatusCode:i}=r(95880),{mask:s,toBuffer:c}=r(93338),l=Buffer.alloc(4);class u{constructor(e,t){this._extensions=t||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){const r=t.mask&&t.readOnly;let n=t.mask?6:2,a=e.length;e.length>=65536?(n+=8,a=127):e.length>125&&(n+=2,a=126);const i=Buffer.allocUnsafe(r?e.length+n:n);return i[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(i[0]|=64),i[1]=a,126===a?i.writeUInt16BE(e.length,2):127===a&&(i.writeUInt32BE(0,2),i.writeUInt32BE(e.length,6)),t.mask?(o(l,0,4),i[1]|=128,i[n-4]=l[0],i[n-3]=l[1],i[n-2]=l[2],i[n-1]=l[3],r?(s(e,l,i,n,e.length),[i]):(s(e,l,e,0,e.length),[i,e])):[i,e]}close(e,t,r,o){let n;if(void 0===e)n=a;else{if("number"!=typeof e||!i(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const r=Buffer.byteLength(t);if(r>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+r),n.writeUInt16BE(e,0),"string"==typeof t?n.write(t,2):n.set(t,2)}else n=Buffer.allocUnsafe(2),n.writeUInt16BE(e,0)}this._deflating?this.enqueue([this.doClose,n,r,o]):this.doClose(n,r,o)}doClose(e,t,r){this.sendFrame(u.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:t,readOnly:!1}),r)}ping(e,t,r){const o=c(e);if(o.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,o,t,c.readOnly,r]):this.doPing(o,t,c.readOnly,r)}doPing(e,t,r,o){this.sendFrame(u.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:t,readOnly:r}),o)}pong(e,t,r){const o=c(e);if(o.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,o,t,c.readOnly,r]):this.doPong(o,t,c.readOnly,r)}doPong(e,t,r,o){this.sendFrame(u.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:t,readOnly:r}),o)}send(e,t,r){const o=c(e),a=this._extensions[n.extensionName];let i=t.binary?2:1,s=t.compress;if(this._firstFragment?(this._firstFragment=!1,s&&a&&a.params[a._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(s=o.length>=a._threshold),this._compress=s):(s=!1,i=0),t.fin&&(this._firstFragment=!0),a){const e={fin:t.fin,rsv1:s,opcode:i,mask:t.mask,readOnly:c.readOnly};this._deflating?this.enqueue([this.dispatch,o,this._compress,e,r]):this.dispatch(o,this._compress,e,r)}else this.sendFrame(u.frame(o,{fin:t.fin,rsv1:!1,opcode:i,mask:t.mask,readOnly:c.readOnly}),r)}dispatch(e,t,r,o){if(!t)return void this.sendFrame(u.frame(e,r),o);const a=this._extensions[n.extensionName];this._bufferedBytes+=e.length,this._deflating=!0,a.compress(e,r.fin,((t,n)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof o&&o(e);for(let t=0;t<this._queue.length;t++){const r=this._queue[t][4];"function"==typeof r&&r(e)}}else this._bufferedBytes-=e.length,this._deflating=!1,r.readOnly=!1,this.sendFrame(u.frame(n,r),o),this.dequeue()}))}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[1].length,Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length,this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}e.exports=u},3719:(e,t,r)=>{"use strict";const{Duplex:o}=r(2203);function n(e){e.emit("close")}function a(){!this.destroyed&&this._writableState.finished&&this.destroy()}function i(e){this.removeListener("error",i),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let r=!0,s=!0;function c(){r&&e._socket.resume()}e.readyState===e.CONNECTING?e.once("open",(function(){e._receiver.removeAllListeners("drain"),e._receiver.on("drain",c)})):(e._receiver.removeAllListeners("drain"),e._receiver.on("drain",c));const l=new o({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",(function(t,o){const n=!o&&l._readableState.objectMode?t.toString():t;l.push(n)||(r=!1,e._socket.pause())})),e.once("error",(function(e){l.destroyed||(s=!1,l.destroy(e))})),e.once("close",(function(){l.destroyed||l.push(null)})),l._destroy=function(t,r){if(e.readyState===e.CLOSED)return r(t),void process.nextTick(n,l);let o=!1;e.once("error",(function(e){o=!0,r(e)})),e.once("close",(function(){o||r(t),process.nextTick(n,l)})),s&&e.terminate()},l._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),l._readableState.endEmitted&&l.destroy()):(e._socket.once("finish",(function(){t()})),e.close())):e.once("open",(function(){l._final(t)}))},l._read=function(){e.readyState!==e.OPEN||r||(r=!0,e._receiver._writableState.needDrain||e._socket.resume())},l._write=function(t,r,o){e.readyState!==e.CONNECTING?e.send(t,o):e.once("open",(function(){l._write(t,r,o)}))},l.on("end",a),l.on("error",i),l}},28237:(e,t,r)=>{"use strict";const{tokenChars:o}=r(95880);e.exports={parse:function(e){const t=new Set;let r=-1,n=-1,a=0;for(;a<e.length;a++){const i=e.charCodeAt(a);if(-1===n&&1===o[i])-1===r&&(r=a);else if(0===a||32!==i&&9!==i){if(44!==i)throw new SyntaxError(`Unexpected character at index ${a}`);{if(-1===r)throw new SyntaxError(`Unexpected character at index ${a}`);-1===n&&(n=a);const o=e.slice(r,n);if(t.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);t.add(o),r=n=-1}}else-1===n&&-1!==r&&(n=a)}if(-1===r||-1!==n)throw new SyntaxError("Unexpected end of input");const i=e.slice(r,a);if(t.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return t.add(i),t}}},95880:(e,t,r)=>{"use strict";const o=[0,0,0,0,0,0,0,0,0,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];function n(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999}function a(e){const t=e.length;let r=0;for(;r<t;)if(0==(128&e[r]))r++;else if(192==(224&e[r])){if(r+1===t||128!=(192&e[r+1])||192==(254&e[r]))return!1;r+=2}else if(224==(240&e[r])){if(r+2>=t||128!=(192&e[r+1])||128!=(192&e[r+2])||224===e[r]&&128==(224&e[r+1])||237===e[r]&&160==(224&e[r+1]))return!1;r+=3}else{if(240!=(248&e[r]))return!1;if(r+3>=t||128!=(192&e[r+1])||128!=(192&e[r+2])||128!=(192&e[r+3])||240===e[r]&&128==(240&e[r+1])||244===e[r]&&e[r+1]>143||e[r]>244)return!1;r+=4}return!0}try{const t=r(24581);e.exports={isValidStatusCode:n,isValidUTF8:e=>e.length<150?a(e):t(e),tokenChars:o}}catch(t){e.exports={isValidStatusCode:n,isValidUTF8:a,tokenChars:o}}},61722:(e,t,r)=>{"use strict";const o=r(24434),n=r(58611),{createHash:a}=(r(65692),r(69278),r(64756),r(76982)),i=r(55926),s=r(42971),c=r(28237),l=r(91060),{GUID:u,kWebSocket:p}=r(32614),d=/^[+/0-9A-Za-z]{22}==$/;function h(e){e._state=2,e.emit("close")}function f(){this.destroy()}function m(e,t,r,o){e.writable&&(r=r||n.STATUS_CODES[t],o={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...o},e.write(`HTTP/1.1 ${t} ${n.STATUS_CODES[t]}\r\n`+Object.keys(o).map((e=>`${e}: ${o[e]}`)).join("\r\n")+"\r\n\r\n"+r)),e.removeListener("error",f),e.destroy()}e.exports=class extends o{constructor(e,t){if(super(),null==(e={maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=n.createServer(((e,t)=>{const r=n.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"}),t.end(r)})),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const r of Object.keys(t))e.on(r,t[r]);return function(){for(const r of Object.keys(t))e.removeListener(r,t[r])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,o)=>{this.handleUpgrade(t,r,o,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",(()=>{e(new Error("The server is not running"))})),void process.nextTick(h,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(h,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close((()=>{h(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,r,o){t.on("error",f);const n=void 0!==e.headers["sec-websocket-key"]&&e.headers["sec-websocket-key"],a=+e.headers["sec-websocket-version"];if("GET"!==e.method||"websocket"!==e.headers.upgrade.toLowerCase()||!n||!d.test(n)||8!==a&&13!==a||!this.shouldHandle(e))return m(t,400);const l=e.headers["sec-websocket-protocol"];let u=new Set;if(void 0!==l)try{u=c.parse(l)}catch(e){return m(t,400)}const p=e.headers["sec-websocket-extensions"],h={};if(this.options.perMessageDeflate&&void 0!==p){const e=new s(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const t=i.parse(p);t[s.extensionName]&&(e.accept(t[s.extensionName]),h[s.extensionName]=e)}catch(e){return m(t,400)}}if(this.options.verifyClient){const i={origin:e.headers[""+(8===a?"sec-websocket-origin":"origin")],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(i,((a,i,s,c)=>{if(!a)return m(t,i||401,s,c);this.completeUpgrade(h,n,u,e,t,r,o)}));if(!this.options.verifyClient(i))return m(t,401)}this.completeUpgrade(h,n,u,e,t,r,o)}completeUpgrade(e,t,r,o,n,c,d){if(!n.readable||!n.writable)return n.destroy();if(n[p])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return m(n,503);const v=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${a("sha1").update(t+u).digest("base64")}`],g=new l(null);if(r.size){const e=this.options.handleProtocols?this.options.handleProtocols(r,o):r.values().next().value;e&&(v.push(`Sec-WebSocket-Protocol: ${e}`),g._protocol=e)}if(e[s.extensionName]){const t=e[s.extensionName].params,r=i.format({[s.extensionName]:[t]});v.push(`Sec-WebSocket-Extensions: ${r}`),g._extensions=e}this.emit("headers",v,o),n.write(v.concat("\r\n").join("\r\n")),n.removeListener("error",f),g.setSocket(n,c,{maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(g),g.on("close",(()=>{this.clients.delete(g),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)}))),d(g,o)}}},91060:(e,t,r)=>{"use strict";const o=r(24434),n=r(65692),a=r(58611),i=r(69278),s=r(64756),{randomBytes:c,createHash:l}=r(76982),{Readable:u}=r(2203),{URL:p}=r(87016),d=r(42971),h=r(46286),f=r(80914),{BINARY_TYPES:m,EMPTY_BUFFER:v,GUID:g,kForOnEventAttribute:y,kListener:b,kStatusCode:w,kWebSocket:x,NOOP:k}=r(32614),{EventTarget:{addEventListener:_,removeEventListener:E}}=r(90597),{format:S,parse:P}=r(55926),{toBuffer:T}=r(93338),O=["CONNECTING","OPEN","CLOSING","CLOSED"],j=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,R=[8,13];class I extends o{constructor(e,t,r){super(),this._binaryType=m[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=I.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(r=t,t=[]):t=[t]),C(this,e,t,r)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){m.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){const o=new h({binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new f(e,this._extensions),this._receiver=o,this._socket=e,o[x]=this,e[x]=this,o.on("conclude",D),o.on("drain",z),o.on("error",B),o.on("message",F),o.on("ping",M),o.on("pong",U),e.setTimeout(0),e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",V),e.on("data",K),e.on("end",G),e.on("error",W),this._readyState=I.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=I.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[d.extensionName]&&this._extensions[d.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=I.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==I.CLOSED){if(this.readyState===I.CONNECTING){const e="WebSocket was closed before the connection was established";return $(this,this._req,e)}this.readyState!==I.CLOSING?(this._readyState=I.CLOSING,this._sender.close(e,t,!this._isServer,(e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())})),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}ping(e,t,r){if(this.readyState===I.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===I.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||v,t,r)):L(this,e,r)}pong(e,t,r){if(this.readyState===I.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(r=e,e=t=void 0):"function"==typeof t&&(r=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===I.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||v,t,r)):L(this,e,r)}send(e,t,r){if(this.readyState===I.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(r=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==I.OPEN)return void L(this,e,r);const o={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[d.extensionName]||(o.compress=!1),this._sender.send(e||v,o,r)}terminate(){if(this.readyState!==I.CLOSED){if(this.readyState===I.CONNECTING){const e="WebSocket was closed before the connection was established";return $(this,this._req,e)}this._socket&&(this._readyState=I.CLOSING,this._socket.destroy())}}}function C(e,t,r,o){const i={protocolVersion:R[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...o,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,host:void 0,path:void 0,port:void 0};if(!R.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${R.join(", ")})`);let s;if(t instanceof p)s=t,e._url=t.href;else{try{s=new p(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}e._url=t}const u="wss:"===s.protocol,h="ws+unix:"===s.protocol;if("ws:"!==s.protocol&&!u&&!h)throw new SyntaxError('The URL\'s protocol must be one of "ws:", "wss:", or "ws+unix:"');if(h&&!s.pathname)throw new SyntaxError("The URL's pathname is empty");if(s.hash)throw new SyntaxError("The URL contains a fragment identifier");const f=u?443:80,m=c(16).toString("base64"),v=u?n.get:a.get,y=new Set;let b;if(i.createConnection=u?N:A,i.defaultPort=i.defaultPort||f,i.port=s.port||f,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":m,Connection:"Upgrade",Upgrade:"websocket",...i.headers},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(b=new d(!0!==i.perMessageDeflate?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=S({[d.extensionName]:b.offer()})),r.length){for(const e of r){if("string"!=typeof e||!j.test(e)||y.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");y.add(e)}i.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),h){const e=i.path.split(":");i.socketPath=e[0],i.path=e[1]}let w=e._req=v(i);i.timeout&&w.on("timeout",(()=>{$(e,w,"Opening handshake has timed out")})),w.on("error",(t=>{null===w||w.aborted||(w=e._req=null,e._readyState=I.CLOSING,e.emit("error",t),e.emitClose())})),w.on("response",(n=>{const a=n.headers.location,s=n.statusCode;if(a&&i.followRedirects&&s>=300&&s<400){if(++e._redirects>i.maxRedirects)return void $(e,w,"Maximum redirects exceeded");w.abort();const n=new p(a,t);C(e,n,r,o)}else e.emit("unexpected-response",w,n)||$(e,w,`Unexpected server response: ${n.statusCode}`)})),w.on("upgrade",((t,r,o)=>{if(e.emit("upgrade",t),e.readyState!==I.CONNECTING)return;w=e._req=null;const n=l("sha1").update(m+g).digest("base64");if(t.headers["sec-websocket-accept"]!==n)return void $(e,r,"Invalid Sec-WebSocket-Accept header");const a=t.headers["sec-websocket-protocol"];let s;if(void 0!==a?y.size?y.has(a)||(s="Server sent an invalid subprotocol"):s="Server sent a subprotocol but none was requested":y.size&&(s="Server sent no subprotocol"),s)return void $(e,r,s);a&&(e._protocol=a);const c=t.headers["sec-websocket-extensions"];if(void 0!==c){if(!b){return void $(e,r,"Server sent a Sec-WebSocket-Extensions header but no extension was requested")}let t;try{t=P(c)}catch(t){return void $(e,r,"Invalid Sec-WebSocket-Extensions header")}const o=Object.keys(t);if(1!==o.length||o[0]!==d.extensionName){return void $(e,r,"Server indicated an extension that was not requested")}try{b.accept(t[d.extensionName])}catch(t){return void $(e,r,"Invalid Sec-WebSocket-Extensions header")}e._extensions[d.extensionName]=b}e.setSocket(r,o,{maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}))}function A(e){return e.path=e.socketPath,i.connect(e)}function N(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=i.isIP(e.host)?"":e.host),s.connect(e)}function $(e,t,r){e._readyState=I.CLOSING;const o=new Error(r);Error.captureStackTrace(o,$),t.setHeader?(t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),t.once("abort",e.emitClose.bind(e)),e.emit("error",o)):(t.destroy(o),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function L(e,t,r){if(t){const r=T(t).length;e._socket?e._sender._bufferedBytes+=r:e._bufferedAmount+=r}if(r){r(new Error(`WebSocket is not open: readyState ${e.readyState} (${O[e.readyState]})`))}}function D(e,t){const r=this[x];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,void 0!==r._socket[x]&&(r._socket.removeListener("data",K),process.nextTick(H,r._socket),1005===e?r.close():r.close(e,t))}function z(){this[x]._socket.resume()}function B(e){const t=this[x];void 0!==t._socket[x]&&(t._socket.removeListener("data",K),process.nextTick(H,t._socket),t.close(e[w])),t.emit("error",e)}function q(){this[x].emitClose()}function F(e,t){this[x].emit("message",e,t)}function M(e){const t=this[x];t.pong(e,!t._isServer,k),t.emit("ping",e)}function U(e){this[x].emit("pong",e)}function H(e){e.resume()}function V(){const e=this[x];let t;this.removeListener("close",V),this.removeListener("data",K),this.removeListener("end",G),e._readyState=I.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[x]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",q),e._receiver.on("finish",q))}function K(e){this[x]._receiver.write(e)||this.pause()}function G(){const e=this[x];e._readyState=I.CLOSING,e._receiver.end(),this.end()}function W(){const e=this[x];this.removeListener("error",W),this.on("error",k),e&&(e._readyState=I.CLOSING,this.destroy())}Object.defineProperty(I,"CONNECTING",{enumerable:!0,value:O.indexOf("CONNECTING")}),Object.defineProperty(I.prototype,"CONNECTING",{enumerable:!0,value:O.indexOf("CONNECTING")}),Object.defineProperty(I,"OPEN",{enumerable:!0,value:O.indexOf("OPEN")}),Object.defineProperty(I.prototype,"OPEN",{enumerable:!0,value:O.indexOf("OPEN")}),Object.defineProperty(I,"CLOSING",{enumerable:!0,value:O.indexOf("CLOSING")}),Object.defineProperty(I.prototype,"CLOSING",{enumerable:!0,value:O.indexOf("CLOSING")}),Object.defineProperty(I,"CLOSED",{enumerable:!0,value:O.indexOf("CLOSED")}),Object.defineProperty(I.prototype,"CLOSED",{enumerable:!0,value:O.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach((e=>{Object.defineProperty(I.prototype,e,{enumerable:!0})})),["open","error","close","message"].forEach((e=>{Object.defineProperty(I.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[y])return t[b];return null},set(t){for(const t of this.listeners(e))if(t[y]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[y]:!0})}})})),I.prototype.addEventListener=_,I.prototype.removeEventListener=E,e.exports=I},85480:(e,t,r)=>{
|
|
74
|
+
/**
|
|
75
|
+
* Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
|
|
76
|
+
*
|
|
77
|
+
* This can be used with JS designed for browsers to improve reuse of code and
|
|
78
|
+
* allow the use of existing libraries.
|
|
79
|
+
*
|
|
80
|
+
* Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
|
|
81
|
+
*
|
|
82
|
+
* @author Dan DeFelippi <dan@driverdan.com>
|
|
83
|
+
* @contributor David Ellis <d.f.ellis@ieee.org>
|
|
84
|
+
* @license MIT
|
|
85
|
+
*/
|
|
86
|
+
var o=r(79896),n=r(87016),a=r(35317).spawn;function i(e){"use strict";e=e||{};var t,i,s=this,c=r(58611),l=r(65692),u={},p=!1,d={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},h=Object.assign({},d),f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],m=["TRACE","TRACK","CONNECT"],v=!1,g=!1,y=!1,b={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null;this.open=function(e,t,r,o,n){if(this.abort(),g=!1,y=!1,!function(e){return e&&-1===m.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");u={method:e,url:t.toString(),async:"boolean"!=typeof r||r,user:o||null,password:n||null},w(this.OPENED)},this.setDisableHeaderCheck=function(e){p=e},this.setRequestHeader=function(e,t){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(!function(e){return p||e&&-1===f.indexOf(e.toLowerCase())}(e))return console.warn('Refused to set unsafe header "'+e+'"'),!1;if(v)throw new Error("INVALID_STATE_ERR: send flag is true");return h[e]=t,!0},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&i.headers[e.toLowerCase()]&&!g?i.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||g)return"";var e="";for(var t in i.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+i.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&h[e]?h[e]:""},this.send=function(r){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(v)throw new Error("INVALID_STATE_ERR: send has already been called");var p,d=!1,f=!1,m=n.parse(u.url);switch(m.protocol){case"https:":d=!0;case"http:":p=m.hostname;break;case"file:":f=!0;break;case void 0:case"":p="localhost";break;default:throw new Error("Protocol not supported.")}if(f){if("GET"!==u.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(u.async)o.readFile(unescape(m.pathname),"utf8",(function(e,t){e?s.handleError(e,e.errno||-1):(s.status=200,s.responseText=t,w(s.DONE))}));else try{this.responseText=o.readFileSync(unescape(m.pathname),"utf8"),this.status=200,w(s.DONE)}catch(e){this.handleError(e,e.errno||-1)}}else{var y=m.port||(d?443:80),b=m.pathname+(m.search?m.search:"");if(h.Host=p,d&&443===y||80===y||(h.Host+=":"+m.port),u.user){void 0===u.password&&(u.password="");var x=new Buffer(u.user+":"+u.password);h.Authorization="Basic "+x.toString("base64")}"GET"===u.method||"HEAD"===u.method?r=null:r?(h["Content-Length"]=Buffer.isBuffer(r)?r.length:Buffer.byteLength(r),h["Content-Type"]||(h["Content-Type"]="text/plain;charset=UTF-8")):"POST"===u.method&&(h["Content-Length"]=0);var k=e.agent||!1,_={host:p,port:y,path:b,method:u.method,headers:h,agent:k};if(d&&(_.pfx=e.pfx,_.key=e.key,_.passphrase=e.passphrase,_.cert=e.cert,_.ca=e.ca,_.ciphers=e.ciphers,_.rejectUnauthorized=!1!==e.rejectUnauthorized),g=!1,u.async){var E=d?l.request:c.request;v=!0,s.dispatchEvent("readystatechange");var S=function(r){if(302===(i=r).statusCode||303===i.statusCode||307===i.statusCode){u.url=i.headers.location;var o=n.parse(u.url);p=o.hostname;var a={hostname:o.hostname,port:o.port,path:o.path,method:303===i.statusCode?"GET":u.method,headers:h};return d&&(a.pfx=e.pfx,a.key=e.key,a.passphrase=e.passphrase,a.cert=e.cert,a.ca=e.ca,a.ciphers=e.ciphers,a.rejectUnauthorized=!1!==e.rejectUnauthorized),void(t=E(a,S).on("error",P)).end()}i&&i.setEncoding&&i.setEncoding("utf8"),w(s.HEADERS_RECEIVED),s.status=i.statusCode,i.on("data",(function(e){e&&(s.responseText+=e),v&&w(s.LOADING)})),i.on("end",(function(){v&&(v=!1,w(s.DONE))})),i.on("error",(function(e){s.handleError(e)}))},P=function(e){s.handleError(e)};t=E(_,S).on("error",P),e.autoUnref&&t.on("socket",(e=>{e.unref()})),r&&t.write(r),t.end(),s.dispatchEvent("loadstart")}else{var T=".node-xmlhttprequest-content-"+process.pid,O=".node-xmlhttprequest-sync-"+process.pid;o.writeFileSync(O,"","utf8");for(var j="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(d?"s":"")+".request;var options = "+JSON.stringify(_)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+T+"', 'NODE-XMLHTTPREQUEST-STATUS:' + response.statusCode + ',' + responseText, 'utf8');fs.unlinkSync('"+O+"');});response.on('error', function(error) {fs.writeFileSync('"+T+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+O+"');});}).on('error', function(error) {fs.writeFileSync('"+T+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+O+"');});"+(r?"req.write('"+JSON.stringify(r).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",R=a(process.argv[0],["-e",j]);o.existsSync(O););if(s.responseText=o.readFileSync(T,"utf8"),R.stdin.end(),o.unlinkSync(T),s.responseText.match(/^NODE-XMLHTTPREQUEST-ERROR:/)){var I=s.responseText.replace(/^NODE-XMLHTTPREQUEST-ERROR:/,"");s.handleError(I,503)}else s.status=s.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:([0-9]*),.*/,"$1"),s.responseText=s.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:[0-9]*,(.*)/,"$1"),w(s.DONE)}}},this.handleError=function(e,t){this.status=t||0,this.statusText=e,this.responseText=e.stack,g=!0,w(this.DONE)},this.abort=function(){t&&(t.abort(),t=null),h=Object.assign({},d),this.responseText="",this.responseXML="",g=y=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!v||this.readyState===this.DONE||(v=!1,w(this.DONE)),this.readyState=this.UNSENT},this.addEventListener=function(e,t){e in b||(b[e]=[]),b[e].push(t)},this.removeEventListener=function(e,t){e in b&&(b[e]=b[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof s["on"+e]&&(this.readyState===this.DONE?setImmediate((function(){s["on"+e]()})):s["on"+e]()),e in b)for(let t=0,r=b[e].length;t<r;t++)this.readyState===this.DONE?setImmediate((function(){b[e][t].call(s)})):b[e][t].call(s)};var w=function(e){if(!(s.readyState===e||s.readyState===s.UNSENT&&y)&&(s.readyState=e,(u.async||s.readyState<s.OPENED||s.readyState===s.DONE)&&s.dispatchEvent("readystatechange"),s.readyState===s.DONE)){let e;e=y?"abort":g?"error":"load",s.dispatchEvent(e),s.dispatchEvent("loadend")}}}e.exports=i,i.XMLHttpRequest=i},40259:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},28799:(e,t,r)=>{"use strict";function o(e){var t=this;if(t instanceof o||(t=new o),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}function n(e,t,r){var o=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===o.next&&(e.tail=o),null===o.prev&&(e.head=o),e.length++,o}function a(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function i(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,o){if(!(this instanceof s))return new s(e,t,r,o);this.list=o,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=o,o.Node=s,o.create=o,o.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},o.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},o.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},o.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},o.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},o.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},o.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},o.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,o=0;null!==r;o++)e.call(t,r.value,o,this),r=r.next},o.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,o=this.length-1;null!==r;o--)e.call(t,r.value,o,this),r=r.prev},o.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},o.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},o.prototype.map=function(e,t){t=t||this;for(var r=new o,n=this.head;null!==n;)r.push(e.call(t,n.value,this)),n=n.next;return r},o.prototype.mapReverse=function(e,t){t=t||this;for(var r=new o,n=this.tail;null!==n;)r.push(e.call(t,n.value,this)),n=n.prev;return r},o.prototype.reduce=function(e,t){var r,o=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,r=this.head.value}for(var n=0;null!==o;n++)r=e(r,o.value,n),o=o.next;return r},o.prototype.reduceReverse=function(e,t){var r,o=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==o;n--)r=e(r,o.value,n),o=o.prev;return r},o.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},o.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},o.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new o;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,a=this.head;null!==a&&n<e;n++)a=a.next;for(;null!==a&&n<t;n++,a=a.next)r.push(a.value);return r},o.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new o;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,a=this.tail;null!==a&&n>t;n--)a=a.prev;for(;null!==a&&n>e;n--,a=a.prev)r.push(a.value);return r},o.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var o=0,a=this.head;null!==a&&o<e;o++)a=a.next;var i=[];for(o=0;a&&o<t;o++)i.push(a.value),a=this.removeNode(a);null===a&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(o=0;o<r.length;o++)a=n(this,a,r[o]);return i},o.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var o=r.prev;r.prev=r.next,r.next=o}return this.head=t,this.tail=e,this};try{r(40259)(o)}catch(e){}},42613:e=>{"use strict";e.exports=require("assert")},90290:e=>{"use strict";e.exports=require("async_hooks")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},76982:e=>{"use strict";e.exports=require("crypto")},31637:e=>{"use strict";e.exports=require("diagnostics_channel")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},85675:e=>{"use strict";e.exports=require("http2")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},83480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},53557:e=>{"use strict";e.exports=require("timers")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},69154:e=>{"use strict";e.exports=require("vm")},43106:e=>{"use strict";e.exports=require("zlib")},95294:e=>{"use strict";if(void 0===o){var t=new Error("Cannot find module 'bufferutil'");throw t.code="MODULE_NOT_FOUND",t}e.exports=o},36994:t=>{"use strict";if(void 0===e){var r=new Error("Cannot find module 'long'");throw r.code="MODULE_NOT_FOUND",r}t.exports=e},8475:e=>{"use strict";if(void 0===t){var r=new Error("Cannot find module 'pino-pretty'");throw r.code="MODULE_NOT_FOUND",r}e.exports=t},31067:e=>{"use strict";e.exports=r},24581:e=>{"use strict";if(void 0===n){var t=new Error("Cannot find module 'utf-8-validate'");throw t.code="MODULE_NOT_FOUND",t}e.exports=n},28661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t},t.decode=function(e){let t={},r=e.split("&");for(let e=0,o=r.length;e<o;e++){let o=r[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},91015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.parse=function(e){const t=e,n=e.indexOf("["),a=e.indexOf("]");-1!=n&&-1!=a&&(e=e.substring(0,n)+e.substring(n,a).replace(/:/g,";")+e.substring(a,e.length));let i=r.exec(e||""),s={},c=14;for(;c--;)s[o[c]]=i[c]||"";return-1!=n&&-1!=a&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(e,t){const r=/\/{2,9}/g,o=t.replace(r,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1);"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1);return o}(0,s.path),s.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(r[t]=o)})),r}(0,s.query),s}},80732:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={};let n,a=0,i=0;function s(e){let t="";do{t=r[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}for(t.encode=s,t.decode=function(e){let t=0;for(i=0;i<e.length;i++)t=64*t+o[e.charAt(i)];return t},t.yeast=function(){const e=s(+new Date);return e!==n?(a=0,n=e):e+"."+s(a++)};i<64;i++)o[r[i]]=i},3517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim=global},4956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.installTimerFunctions=t.transports=t.Transport=t.protocol=t.Socket=void 0;const o=r(78223);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return o.Socket}}),t.protocol=o.Socket.protocol;var n=r(44689);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return n.Transport}});var a=r(19419);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return a.transports}});var i=r(85374);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return i.installTimerFunctions}});var s=r(91015);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.parse}})},78223:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const n=r(19419),a=r(85374),i=r(28661),s=r(91015),c=o(r(45753)),l=r(27285),u=r(46376),p=(0,c.default)("engine.io-client:socket");class d extends l.Emitter{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,s.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,s.parse)(t.host).host),(0,a.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=(0,i.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",(()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())}),!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){p('creating transport "%s"',e);const t=Object.assign({},this.opts.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return p("options: %j",r),new n.transports[e](r)}open(){let e;if(this.opts.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return p("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){p("setting transport %s",e.name),this.transport&&(p("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){p('probing transport "%s"',e);let t=this.createTransport(e),r=!1;d.priorWebsocketSuccess=!1;const o=()=>{r||(p('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(o=>{if(!r)if("pong"===o.type&&"probe"===o.data){if(p('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;d.priorWebsocketSuccess="websocket"===t.name,p('pausing current transport "%s"',this.transport.name),this.transport.pause((()=>{r||"closed"!==this.readyState&&(p("changing transport and sending upgrade packet"),l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{p('probe transport "%s" failed',e);const r=new Error("probe error");r.transport=t.name,this.emitReserved("upgradeError",r)}})))};function n(){r||(r=!0,l(),t.close(),t=null)}const a=r=>{const o=new Error("probe error: "+r);o.transport=t.name,n(),p('probe transport "%s" failed because of error: %s',e,r),this.emitReserved("upgradeError",o)};function i(){a("transport closed")}function s(){a("socket closed")}function c(e){t&&e.name!==t.name&&(p('"%s" works - aborting "%s"',e.name,t.name),n())}const l=()=>{t.removeListener("open",o),t.removeListener("error",a),t.removeListener("close",i),this.off("close",s),this.off("upgrading",c)};t.once("open",o),t.once("error",a),t.once("close",i),this.once("close",s),this.once("upgrading",c),t.open()}onOpen(){if(p("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){p("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(p('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else p('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();p("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const r=this.writeBuffer[t].data;if(r&&(e+=(0,a.byteLength)(r)),t>0&&e>this.maxPayload)return p("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return p("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,o){if("function"==typeof t&&(o=t,t=void 0),"function"==typeof r&&(o=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),p("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){p("socket error %j",e),d.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(p('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const o=e.length;for(;r<o;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}t.Socket=d,d.protocol=u.protocol},44689:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const n=r(46376),a=r(27285),i=r(85374),s=(0,o(r(45753)).default)("engine.io-client:transport");class c extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class l extends a.Emitter{constructor(e){super(),this.writable=!1,(0,i.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new c(e,t,r)),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=(0,n.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}t.Transport=l},19419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;const o=r(30528),n=r(38716);t.transports={websocket:n.WS,polling:o.Polling}},30528:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;const n=r(44689),a=o(r(45753)),i=r(80732),s=r(28661),c=r(46376),l=r(88849),u=r(27285),p=r(85374),d=r(3517),h=(0,a.default)("engine.io-client:polling");function f(){}const m=null!=new l.XHR({xdomain:!1}).responseType;class v extends n.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=m&&!t}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{h("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(h("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){h("pre-pause polling complete"),--e||t()}))),this.writable||(h("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){h("pre-pause writing complete"),--e||t()})))}else t()}poll(){h("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){h("polling got data %s",e);(0,c.decodePayload)(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=()=>{h("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(h("transport open - closing"),e()):(h("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,c.encodePayload)(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let r="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,i.yeast)()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(r=":"+this.opts.port);const o=(0,s.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new g(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){h("xhr poll");const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}t.Polling=v;class g extends u.Emitter{constructor(e,t){super(),(0,p.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=(0,p.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new l.XHR(e);try{h("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof t.status?t.status:0)}),0))},h("xhr data %s",this.data),t.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=g.requestsCount++,g.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=f,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete g.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(t.Request=g,g.requestsCount=0,g.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",y);else if("function"==typeof addEventListener){const e="onpagehide"in d.globalThisShim?"pagehide":"unload";addEventListener(e,y,!1)}function y(){for(let e in g.requests)g.requests.hasOwnProperty(e)&&g.requests[e].abort()}},43449:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=void 0;const n=o(r(17699));t.WebSocket=n.default,t.usingBrowserWebSocket=!1,t.defaultBinaryType="nodebuffer",t.nextTick=process.nextTick},38716:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;const n=r(44689),a=r(28661),i=r(80732),s=r(85374),c=r(43449),l=o(r(45753)),u=r(46376),p=(0,l.default)("engine.io-client:websocket"),d="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class h extends n.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=d?{}:(0,s.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=c.usingBrowserWebSocket&&!d?t?new c.WebSocket(e,t):new c.WebSocket(e):new c.WebSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||c.defaultBinaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],o=t===e.length-1;(0,u.encodePacket)(r,this.supportsBinary,(e=>{const t={};if(!c.usingBrowserWebSocket&&(r.options&&(t.compress=r.options.compress),this.opts.perMessageDeflate)){("string"==typeof e?Buffer.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1)}try{c.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){p("websocket closed before onclose event")}o&&(0,c.nextTick)((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let r="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,i.yeast)()),this.supportsBinary||(e.b64=1);const o=(0,a.encode)(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!c.WebSocket}}t.WS=h},88849:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.XHR=void 0;const i=a(r(85480));t.XHR=i.default||i},85374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;const o=r(3517);t.pick=function(e,...t){return t.reduce(((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})};const n=setTimeout,a=clearTimeout;t.installTimerFunctions=function(e,t){t.useNativeTimers?(e.setTimeoutFn=n.bind(o.globalThisShim),e.clearTimeoutFn=a.bind(o.globalThisShim)):(e.setTimeoutFn=setTimeout.bind(o.globalThisShim),e.clearTimeoutFn=clearTimeout.bind(o.globalThisShim))};t.byteLength=function(e){return"string"==typeof e?function(e){let t=0,r=0;for(let o=0,n=e.length;o<n;o++)t=e.charCodeAt(o),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(o++,r+=4);return r}(e):Math.ceil(1.33*(e.byteLength||e.size))}},62046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;const r=Object.create(null);t.PACKET_TYPES=r,r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const o=Object.create(null);t.PACKET_TYPES_REVERSE=o,Object.keys(r).forEach((e=>{o[r[e]]=e}));t.ERROR_PACKET={type:"error",data:"parser error"}},87696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(62046),n=(e,t)=>{const r=Buffer.isBuffer(e);return"arraybuffer"===t&&r?a(e):e},a=e=>{const t=new ArrayBuffer(e.length),r=new Uint8Array(t);for(let t=0;t<e.length;t++)r[t]=e[t];return t};t.default=(e,t)=>{if("string"!=typeof e)return{type:"message",data:n(e,t)};const r=e.charAt(0);if("b"===r){const r=Buffer.from(e.substring(1),"base64");return{type:"message",data:n(r,t)}}return o.PACKET_TYPES_REVERSE[r]?e.length>1?{type:o.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:o.PACKET_TYPES_REVERSE[r]}:o.ERROR_PACKET}},13944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(62046),n=e=>Buffer.isBuffer(e)?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength),a=(e,t)=>t?e:"b"+e.toString("base64");t.default=({type:e,data:t},r,i)=>{if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){const e=n(t);return i(a(e,r))}return i(o.PACKET_TYPES[e]+(t||""))}},46376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=void 0;const o=r(13944);t.encodePacket=o.default;const n=r(87696);t.decodePacket=n.default;const a=String.fromCharCode(30);t.encodePayload=(e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,s)=>{(0,o.default)(e,!1,(e=>{n[s]=e,++i===r&&t(n.join(a))}))}))};t.decodePayload=(e,t)=>{const r=e.split(a),o=[];for(let e=0;e<r.length;e++){const a=(0,n.default)(r[e],t);if(o.push(a),"error"===a.type)break}return o},t.protocol=4},48701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protocol=t.Transport=t.Socket=t.uServer=t.parser=t.attach=t.listen=t.transports=t.Server=void 0;const o=r(58611),n=r(15038);Object.defineProperty(t,"Server",{enumerable:!0,get:function(){return n.Server}});const a=r(73036);t.transports=a.default;const i=r(46376);t.parser=i;var s=r(57741);Object.defineProperty(t,"uServer",{enumerable:!0,get:function(){return s.uServer}});var c=r(84520);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return c.Socket}});var l=r(56716);function u(e,t){const r=new n.Server(t);return r.attach(e,t),r}Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return l.Transport}}),t.protocol=i.protocol,t.listen=function(e,t,r){"function"==typeof t&&(r=t,t={});const n=(0,o.createServer)((function(e,t){t.writeHead(501),t.end("Not Implemented")})),a=u(n,t);return a.httpServer=n,n.listen(e,r),a},t.attach=u},1319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayloadAsBinary=t.encodePayloadAsBinary=t.decodePayload=t.encodePayload=t.decodeBase64Packet=t.decodePacket=t.encodeBase64Packet=t.encodePacket=t.packets=t.protocol=void 0;var o=r(3256);t.protocol=3;t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6};var n=Object.keys(t.packets),a={type:"error",data:"parser error"};const i=Buffer.concat([]);function s(e,r,n,a){if("function"==typeof r&&(a=r,r=null),"function"==typeof n&&(a=n,n=null),Buffer.isBuffer(e.data))return c(e,r,a);if(e.data&&(e.data.buffer||e.data)instanceof ArrayBuffer)return c({type:e.type,data:m(e.data)},r,a);var i=t.packets[e.type];return void 0!==e.data&&(i+=n?o.encode(String(e.data),{strict:!1}):String(e.data)),a(""+i)}function c(e,r,o){if(!r)return l(e,o);var n=e.data,a=Buffer.allocUnsafe(1);return a[0]=t.packets[e.type],o(Buffer.concat([a,n]))}function l(e,r){var o=Buffer.isBuffer(e.data)?e.data:m(e.data),n="b"+t.packets[e.type];return r(n+=o.toString("base64"))}function u(e,t,r){if(void 0===e)return a;var i;if("string"==typeof e)return"b"===(i=e.charAt(0))?p(e.substr(1),t):r&&!1===(e=function(e){try{e=o.decode(e,{strict:!1})}catch(e){return!1}return e}(e))?a:Number(i)==i&&n[i]?e.length>1?{type:n[i],data:e.substring(1)}:{type:n[i]}:a;if("arraybuffer"===t){var s=new Uint8Array(e);return i=s[0],{type:n[i],data:s.buffer.slice(1)}}return e instanceof ArrayBuffer&&(e=m(e)),i=e[0],{type:n[i],data:e.slice(1)}}function p(e,t){var r=n[e.charAt(0)],o=Buffer.from(e.substr(1),"base64");if("arraybuffer"===t){for(var a=new Uint8Array(o.length),i=0;i<a.length;i++)a[i]=o[i];o=a.buffer}return{type:r,data:o}}function d(e,t,r){const o=new Array(e.length);let n=0;for(let a=0;a<e.length;a++)t(e[a],((t,i)=>{o[a]=i,++n===e.length&&r(null,o)}))}function h(e){for(var t="",r=0,o=e.length;r<o;r++)t+=String.fromCharCode(e[r]);return t}function f(e){for(var t=Buffer.allocUnsafe(e.length),r=0,o=e.length;r<o;r++)t.writeUInt8(e.charCodeAt(r),r);return t}function m(e){var t=e.byteLength||e.length,r=e.byteOffset||0;return Buffer.from(e.buffer||e,r,t)}function v(e,t){if(!e.length)return t(i);d(e,g,(function(e,r){return t(Buffer.concat(r))}))}function g(e,t){s(e,!0,!0,(function(e){var r,o=""+e.length;if("string"==typeof e){(r=Buffer.allocUnsafe(o.length+2))[0]=0;for(var n=0;n<o.length;n++)r[n+1]=parseInt(o[n],10);return r[r.length-1]=255,t(null,Buffer.concat([r,f(e)]))}for((r=Buffer.allocUnsafe(o.length+2))[0]=1,n=0;n<o.length;n++)r[n+1]=parseInt(o[n],10);r[r.length-1]=255,t(null,Buffer.concat([r,e]))}))}function y(e,t,r){"function"==typeof t&&(r=t,t=null);for(var o,n=e,i=[];n.length>0;){var s="",c=0===n[0];for(o=1;255!==n[o];o++){if(s.length>310)return r(a,0,1);s+=""+n[o]}n=n.slice(s.length+1);var l=parseInt(s,10),p=n.slice(1,l+1);c&&(p=h(p)),i.push(p),n=n.slice(l+1)}var d=i.length;for(o=0;o<d;o++){r(u(i[o],t,!0),o,d)}}t.encodePacket=s,t.encodeBase64Packet=l,t.decodePacket=u,t.decodeBase64Packet=p,t.encodePayload=function(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&(e=>{for(const t of e)if(t.data instanceof ArrayBuffer||ArrayBuffer.isView(t.data))return!0;return!1})(e))return v(e,r);if(!e.length)return r("0:");d(e,(function(e,r){s(e,t,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))}))},t.decodePayload=function(e,t,r){if("string"!=typeof e)return y(e,t,r);if("function"==typeof t&&(r=t,t=null),""===e)return r(a,0,1);for(var o,n,i,s="",c=0,l=e.length;c<l;c++){var p=e.charAt(c);if(":"===p){if(""===s||s!=(o=Number(s)))return r(a,0,1);if(s!=(n=e.substr(c+1,o)).length)return r(a,0,1);if(n.length){if(i=u(n,t,!1),a.type===i.type&&a.data===i.data)return r(a,0,1);if(!1===r(i,c+o,l))return}c+=o,s=""}else s+=p}return""!==s?r(a,0,1):void 0},t.encodePayloadAsBinary=v,t.decodePayloadAsBinary=y},3256:e=>{
|
|
87
|
+
/*! https://mths.be/utf8js v2.1.2 by @mathias */
|
|
88
|
+
var t,r,o,n=String.fromCharCode;function a(e){for(var t,r,o=[],n=0,a=e.length;n<a;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<a?56320==(64512&(r=e.charCodeAt(n++)))?o.push(((1023&t)<<10)+(1023&r)+65536):(o.push(t),n--):o.push(t);return o}function i(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function s(e,t){return n(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return n(e);var r="";return 0==(4294965248&e)?r=n(e>>6&31|192):0==(4294901760&e)?(i(e,t)||(e=65533),r=n(e>>12&15|224),r+=s(e,6)):0==(4292870144&e)&&(r=n(e>>18&7|240),r+=s(e,12),r+=s(e,6)),r+=n(63&e|128)}function l(){if(o>=r)throw Error("Invalid byte index");var e=255&t[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function u(e){var n,a;if(o>r)throw Error("Invalid byte index");if(o==r)return!1;if(n=255&t[o],o++,0==(128&n))return n;if(192==(224&n)){if((a=(31&n)<<6|l())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&n)){if((a=(15&n)<<12|l()<<6|l())>=2048)return i(a,e)?a:65533;throw Error("Invalid continuation byte")}if(240==(248&n)&&(a=(7&n)<<18|l()<<12|l()<<6|l())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var r=!1!==(t=t||{}).strict,o=a(e),n=o.length,i=-1,s="";++i<n;)s+=c(o[i],r);return s},decode:function(e,i){var s=!1!==(i=i||{}).strict;t=a(e),r=t.length,o=0;for(var c,l=[];!1!==(c=u(s));)l.push(c);return function(e){for(var t,r=e.length,o=-1,a="";++o<r;)(t=e[o])>65535&&(a+=n((t-=65536)>>>10&1023|55296),t=56320|1023&t),a+=n(t);return a}(l)}}},15038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=t.BaseServer=void 0;const o=r(83480),n=r(87016),a=r(74845),i=r(73036),s=r(24434),c=r(84520),l=r(45753),u=r(81349),p=r(17699),d=(0,l.default)("engine");class h extends s.EventEmitter{constructor(e={}){super(),this.clients={},this.clientsCount=0,this.opts=Object.assign({wsEngine:p.Server,pingTimeout:2e4,pingInterval:25e3,upgradeTimeout:1e4,maxHttpBufferSize:1e6,transports:Object.keys(i.default),allowUpgrades:!0,httpCompression:{threshold:1024},cors:!1,allowEIO3:!1},e),e.cookie&&(this.opts.cookie=Object.assign({name:"io",path:"/",httpOnly:!1!==e.cookie.path,sameSite:"lax"},e.cookie)),this.opts.cors&&(this.corsMiddleware=r(19728)(this.opts.cors)),e.perMessageDeflate&&(this.opts.perMessageDeflate=Object.assign({threshold:1024},e.perMessageDeflate)),this.init()}upgrades(e){return this.opts.allowUpgrades&&i.default[e].upgradesTo||[]}verify(e,t,r){const o=e._query.transport;if(!~this.opts.transports.indexOf(o))return d('unknown transport "%s"',o),r(f.errors.UNKNOWN_TRANSPORT,{transport:o});if(function(e){if((e+="").length<1)return!1;if(!g[e.charCodeAt(0)])return d('invalid header, index 0, char "%s"',e.charCodeAt(0)),!0;if(e.length<2)return!1;if(!g[e.charCodeAt(1)])return d('invalid header, index 1, char "%s"',e.charCodeAt(1)),!0;if(e.length<3)return!1;if(!g[e.charCodeAt(2)])return d('invalid header, index 2, char "%s"',e.charCodeAt(2)),!0;if(e.length<4)return!1;if(!g[e.charCodeAt(3)])return d('invalid header, index 3, char "%s"',e.charCodeAt(3)),!0;for(let t=4;t<e.length;++t)if(!g[e.charCodeAt(t)])return d('invalid header, index "%i", char "%s"',t,e.charCodeAt(t)),!0;return!1}(e.headers.origin)){const t=e.headers.origin;return e.headers.origin=null,d("origin header invalid"),r(f.errors.BAD_REQUEST,{name:"INVALID_ORIGIN",origin:t})}const n=e._query.sid;if(!n)return"GET"!==e.method?r(f.errors.BAD_HANDSHAKE_METHOD,{method:e.method}):"websocket"!==o||t?this.opts.allowRequest?this.opts.allowRequest(e,((e,t)=>{if(!t)return r(f.errors.FORBIDDEN,{message:e});r()})):r():(d("invalid transport upgrade"),r(f.errors.BAD_REQUEST,{name:"TRANSPORT_HANDSHAKE_ERROR"}));{if(!this.clients.hasOwnProperty(n))return d('unknown sid "%s"',n),r(f.errors.UNKNOWN_SID,{sid:n});const e=this.clients[n].transport.name;if(!t&&e!==o)return d("bad request: unexpected transport without upgrade"),r(f.errors.BAD_REQUEST,{name:"TRANSPORT_MISMATCH",transport:o,previousTransport:e})}r()}close(){d("closing all open clients");for(let e in this.clients)this.clients.hasOwnProperty(e)&&this.clients[e].close(!0);return this.cleanup(),this}generateId(e){return a.generateId()}async handshake(e,t,r){const o="4"===t._query.EIO?4:3;if(3===o&&!this.opts.allowEIO3)return d("unsupported protocol version"),this.emit("connection_error",{req:t,code:f.errors.UNSUPPORTED_PROTOCOL_VERSION,message:f.errorMessages[f.errors.UNSUPPORTED_PROTOCOL_VERSION],context:{protocol:o}}),void r(f.errors.UNSUPPORTED_PROTOCOL_VERSION);let n;try{n=await this.generateId(t)}catch(e){return d("error while generating an id"),this.emit("connection_error",{req:t,code:f.errors.BAD_REQUEST,message:f.errorMessages[f.errors.BAD_REQUEST],context:{name:"ID_GENERATION_ERROR",error:e}}),void r(f.errors.BAD_REQUEST)}d('handshaking client "%s"',n);try{var a=this.createTransport(e,t);"polling"===e?(a.maxHttpBufferSize=this.opts.maxHttpBufferSize,a.httpCompression=this.opts.httpCompression):"websocket"===e&&(a.perMessageDeflate=this.opts.perMessageDeflate),t._query&&t._query.b64?a.supportsBinary=!1:a.supportsBinary=!0}catch(o){return d('error handshaking to transport "%s"',e),this.emit("connection_error",{req:t,code:f.errors.BAD_REQUEST,message:f.errorMessages[f.errors.BAD_REQUEST],context:{name:"TRANSPORT_HANDSHAKE_ERROR",error:o}}),void r(f.errors.BAD_REQUEST)}const i=new c.Socket(n,this,a,t,o);return a.on("headers",((e,t)=>{!t._query.sid&&(this.opts.cookie&&(e["Set-Cookie"]=[(0,u.serialize)(this.opts.cookie.name,n,this.opts.cookie)]),this.emit("initial_headers",e,t)),this.emit("headers",e,t)})),a.onRequest(t),this.clients[n]=i,this.clientsCount++,i.once("close",(()=>{delete this.clients[n],this.clientsCount--})),this.emit("connection",i),a}}t.BaseServer=h,h.errors={UNKNOWN_TRANSPORT:0,UNKNOWN_SID:1,BAD_HANDSHAKE_METHOD:2,BAD_REQUEST:3,FORBIDDEN:4,UNSUPPORTED_PROTOCOL_VERSION:5},h.errorMessages={0:"Transport unknown",1:"Session ID unknown",2:"Bad handshake method",3:"Bad request",4:"Forbidden",5:"Unsupported protocol version"};class f extends h{init(){~this.opts.transports.indexOf("websocket")&&(this.ws&&this.ws.close(),this.ws=new this.opts.wsEngine({noServer:!0,clientTracking:!1,perMessageDeflate:this.opts.perMessageDeflate,maxPayload:this.opts.maxHttpBufferSize}),"function"==typeof this.ws.on&&this.ws.on("headers",((e,t)=>{const r={};!t._query.sid&&this.emit("initial_headers",r,t),this.emit("headers",r,t),Object.keys(r).forEach((t=>{e.push(`${t}: ${r[t]}`)}))})))}cleanup(){this.ws&&(d("closing webSocketServer"),this.ws.close())}prepare(e){e._query||(e._query=~e.url.indexOf("?")?o.parse((0,n.parse)(e.url).query):{})}createTransport(e,t){return new i.default[e](t)}handleRequest(e,t){d('handling "%s" http request "%s"',e.method,e.url),this.prepare(e),e.res=t;const r=(r,o)=>{if(void 0!==r)return this.emit("connection_error",{req:e,code:r,message:f.errorMessages[r],context:o}),void m(t,r,o);if(e._query.sid)d("setting new request for existing client"),this.clients[e._query.sid].transport.onRequest(e);else{const r=(e,r)=>m(t,e,r);this.handshake(e._query.transport,e,r)}};this.corsMiddleware?this.corsMiddleware.call(null,e,t,(()=>{this.verify(e,!1,r)})):this.verify(e,!1,r)}handleUpgrade(e,t,r){this.prepare(e),this.verify(e,!0,((o,n)=>{if(o)return this.emit("connection_error",{req:e,code:o,message:f.errorMessages[o],context:n}),void v(t,o,n);const a=Buffer.from(r);r=null,this.ws.handleUpgrade(e,t,a,(r=>{this.onWebSocket(e,t,r)}))}))}onWebSocket(e,t,r){if(r.on("error",n),void 0!==i.default[e._query.transport]&&!i.default[e._query.transport].prototype.handlesUpgrades)return d("transport doesnt handle upgraded requests"),void r.close();const o=e._query.sid;if(e.websocket=r,o){const t=this.clients[o];if(t)if(t.upgrading)d("transport has already been trying to upgrade"),r.close();else if(t.upgraded)d("transport had already been upgraded"),r.close();else{d("upgrading existing transport"),r.removeListener("error",n);const o=this.createTransport(e._query.transport,e);e._query&&e._query.b64?o.supportsBinary=!1:o.supportsBinary=!0,o.perMessageDeflate=this.opts.perMessageDeflate,t.maybeUpgrade(o)}else d("upgrade attempt for closed client"),r.close()}else{const r=(e,r)=>v(t,e,r);this.handshake(e._query.transport,e,r)}function n(){d("websocket error before upgrade")}}attach(e,t={}){let r=(t.path||"/engine.io").replace(/\/$/,"");const o=t.destroyUpgradeTimeout||1e3;function n(e){return r===e.url.substr(0,r.length)}r+="/";const a=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("close",this.close.bind(this)),e.on("listening",this.init.bind(this)),e.on("request",((t,o)=>{if(n(t))d('intercepting request for path "%s"',r),this.handleRequest(t,o);else{let r=0;const n=a.length;for(;r<n;r++)a[r].call(e,t,o)}})),~this.opts.transports.indexOf("websocket")&&e.on("upgrade",((e,r,a)=>{n(e)?this.handleUpgrade(e,r,a):!1!==t.destroyUpgrade&&setTimeout((function(){if(r.writable&&r.bytesWritten<=0)return r.end()}),o)}))}}function m(e,t,r){const o=t===f.errors.FORBIDDEN?403:400,n=r&&r.message?r.message:f.errorMessages[t];e.writeHead(o,{"Content-Type":"application/json"}),e.end(JSON.stringify({code:t,message:n}))}function v(e,t,r={}){if(e.on("error",(()=>{d("ignoring error from closed connection")})),e.writable){const o=r.message||f.errorMessages[t],n=Buffer.byteLength(o);e.write("HTTP/1.1 400 Bad Request\r\nConnection: close\r\nContent-type: text/html\r\nContent-Length: "+n+"\r\n\r\n"+o)}e.destroy()}t.Server=f;const g=[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]},84520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const o=r(24434),n=r(45753),a=r(53557),i=(0,n.default)("engine:socket");class s extends o.EventEmitter{constructor(e,t,r,o,n){super(),this.id=e,this.server=t,this.upgrading=!1,this.upgraded=!1,this.readyState="opening",this.writeBuffer=[],this.packetsFn=[],this.sentCallbackFn=[],this.cleanupFn=[],this.request=o,this.protocol=n,o.websocket&&o.websocket._socket?this.remoteAddress=o.websocket._socket.remoteAddress:this.remoteAddress=o.connection.remoteAddress,this.checkIntervalTimer=null,this.upgradeTimeoutTimer=null,this.pingTimeoutTimer=null,this.pingIntervalTimer=null,this.setTransport(r),this.onOpen()}get readyState(){return this._readyState}set readyState(e){i("readyState updated from %s to %s",this._readyState,e),this._readyState=e}onOpen(){this.readyState="open",this.transport.sid=this.id,this.sendPacket("open",JSON.stringify({sid:this.id,upgrades:this.getAvailableUpgrades(),pingInterval:this.server.opts.pingInterval,pingTimeout:this.server.opts.pingTimeout,maxPayload:this.server.opts.maxHttpBufferSize})),this.server.opts.initialPacket&&this.sendPacket("message",this.server.opts.initialPacket),this.emit("open"),3===this.protocol?this.resetPingTimeout(this.server.opts.pingInterval+this.server.opts.pingTimeout):this.schedulePing()}onPacket(e){if("open"!==this.readyState)return i("packet received with closed socket");switch(i(`received packet ${e.type}`),this.emit("packet",e),this.resetPingTimeout(this.server.opts.pingInterval+this.server.opts.pingTimeout),e.type){case"ping":if(3!==this.transport.protocol)return void this.onError("invalid heartbeat direction");i("got ping"),this.sendPacket("pong"),this.emit("heartbeat");break;case"pong":if(3===this.transport.protocol)return void this.onError("invalid heartbeat direction");i("got pong"),this.pingIntervalTimer.refresh(),this.emit("heartbeat");break;case"error":this.onClose("parse error");break;case"message":this.emit("data",e.data),this.emit("message",e.data)}}onError(e){i("transport error"),this.onClose("transport error",e)}schedulePing(){this.pingIntervalTimer=(0,a.setTimeout)((()=>{i("writing ping packet - expecting pong within %sms",this.server.opts.pingTimeout),this.sendPacket("ping"),this.resetPingTimeout(this.server.opts.pingTimeout)}),this.server.opts.pingInterval)}resetPingTimeout(e){(0,a.clearTimeout)(this.pingTimeoutTimer),this.pingTimeoutTimer=(0,a.setTimeout)((()=>{"closed"!==this.readyState&&this.onClose("ping timeout")}),e)}setTransport(e){const t=this.onError.bind(this),r=this.onPacket.bind(this),o=this.flush.bind(this),n=this.onClose.bind(this,"transport close");this.transport=e,this.transport.once("error",t),this.transport.on("packet",r),this.transport.on("drain",o),this.transport.once("close",n),this.setupSendCallback(),this.cleanupFn.push((function(){e.removeListener("error",t),e.removeListener("packet",r),e.removeListener("drain",o),e.removeListener("close",n)}))}maybeUpgrade(e){i('might upgrade socket transport from "%s" to "%s"',this.transport.name,e.name),this.upgrading=!0,this.upgradeTimeoutTimer=(0,a.setTimeout)((()=>{i("client did not complete upgrade - closing transport"),o(),"open"===e.readyState&&e.close()}),this.server.opts.upgradeTimeout);const t=t=>{"ping"===t.type&&"probe"===t.data?(i("got probe ping packet, sending pong"),e.send([{type:"pong",data:"probe"}]),this.emit("upgrading",e),clearInterval(this.checkIntervalTimer),this.checkIntervalTimer=setInterval(r,100)):"upgrade"===t.type&&"closed"!==this.readyState?(i("got upgrade packet - upgrading"),o(),this.transport.discard(),this.upgraded=!0,this.clearTransport(),this.setTransport(e),this.emit("upgrade",e),this.flush(),"closing"===this.readyState&&e.close((()=>{this.onClose("forced close")}))):(o(),e.close())},r=()=>{"polling"===this.transport.name&&this.transport.writable&&(i("writing a noop packet to polling for fast upgrade"),this.transport.send([{type:"noop"}]))},o=()=>{this.upgrading=!1,clearInterval(this.checkIntervalTimer),this.checkIntervalTimer=null,(0,a.clearTimeout)(this.upgradeTimeoutTimer),this.upgradeTimeoutTimer=null,e.removeListener("packet",t),e.removeListener("close",s),e.removeListener("error",n),this.removeListener("close",c)},n=t=>{i("client did not complete upgrade - %s",t),o(),e.close(),e=null},s=()=>{n("transport closed")},c=()=>{n("socket closed")};e.on("packet",t),e.once("close",s),e.once("error",n),this.once("close",c)}clearTransport(){let e;const t=this.cleanupFn.length;for(let r=0;r<t;r++)e=this.cleanupFn.shift(),e();this.transport.on("error",(function(){i("error triggered by discarded transport")})),this.transport.close(),(0,a.clearTimeout)(this.pingTimeoutTimer)}onClose(e,t){"closed"!==this.readyState&&(this.readyState="closed",(0,a.clearTimeout)(this.pingIntervalTimer),(0,a.clearTimeout)(this.pingTimeoutTimer),clearInterval(this.checkIntervalTimer),this.checkIntervalTimer=null,(0,a.clearTimeout)(this.upgradeTimeoutTimer),process.nextTick((()=>{this.writeBuffer=[]})),this.packetsFn=[],this.sentCallbackFn=[],this.clearTransport(),this.emit("close",e,t))}setupSendCallback(){const e=()=>{if(this.sentCallbackFn.length>0){const e=this.sentCallbackFn.splice(0,1)[0];if("function"==typeof e)i("executing send callback"),e(this.transport);else if(Array.isArray(e)){i("executing batch send callback");const t=e.length;let r=0;for(;r<t;r++)"function"==typeof e[r]&&e[r](this.transport)}}};this.transport.on("drain",e),this.cleanupFn.push((()=>{this.transport.removeListener("drain",e)}))}send(e,t,r){return this.sendPacket("message",e,t,r),this}write(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,o){if("function"==typeof r&&(o=r,r=null),(r=r||{}).compress=!1!==r.compress,"closing"!==this.readyState&&"closed"!==this.readyState){i('sending packet "%s" (%s)',e,t);const n={type:e,options:r};t&&(n.data=t),this.emit("packetCreate",n),this.writeBuffer.push(n),o&&this.packetsFn.push(o),this.flush()}}flush(){if("closed"!==this.readyState&&this.transport.writable&&this.writeBuffer.length){i("flushing buffer to transport"),this.emit("flush",this.writeBuffer),this.server.emit("flush",this,this.writeBuffer);const e=this.writeBuffer;this.writeBuffer=[],this.transport.supportsFraming?this.sentCallbackFn.push.apply(this.sentCallbackFn,this.packetsFn):this.sentCallbackFn.push(this.packetsFn),this.packetsFn=[],this.transport.send(e),this.emit("drain"),this.server.emit("drain",this)}}getAvailableUpgrades(){const e=[],t=this.server.upgrades(this.transport.name);let r=0;const o=t.length;for(;r<o;++r){const o=t[r];-1!==this.server.opts.transports.indexOf(o)&&e.push(o)}return e}close(e){"open"===this.readyState&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",this.closeTransport.bind(this,e)):this.closeTransport(e))}closeTransport(e){e&&this.transport.discard(),this.transport.close(this.onClose.bind(this,"forced close"))}}t.Socket=s},56716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const o=r(24434),n=r(46376),a=r(1319),i=(0,r(45753).default)("engine:transport");function s(){}class c extends o.EventEmitter{constructor(e){super(),this.readyState="open",this.discarded=!1,this.protocol="4"===e._query.EIO?4:3,this.parser=4===this.protocol?n:a}get readyState(){return this._readyState}set readyState(e){i("readyState updated from %s to %s (%s)",this._readyState,e,this.name),this._readyState=e}discard(){this.discarded=!0}onRequest(e){i("setting request"),this.req=e}close(e){"closed"!==this.readyState&&"closing"!==this.readyState&&(this.readyState="closing",this.doClose(e||s))}onError(e,t){if(this.listeners("error").length){const r=new Error(e);r.type="TransportError",r.description=t,this.emit("error",r)}else i("ignored transport error %s (%s)",e,t)}onPacket(e){this.emit("packet",e)}onData(e){this.onPacket(this.parser.decodePacket(e))}onClose(){this.readyState="closed",this.emit("close")}}t.Transport=c},40940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(16459),n=r(21419);t.default={polling:o.Polling,websocket:n.WebSocket}},16459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const o=r(56716),n=r(43106),a=r(22594),i=(0,r(45753).default)("engine:polling"),s={gzip:n.createGzip,deflate:n.createDeflate};class c extends o.Transport{constructor(e){super(e),this.closeTimeout=3e4}get name(){return"polling"}get supportsFraming(){return!1}onRequest(e){const t=e.res;"get"===e.getMethod()?this.onPollRequest(e,t):"post"===e.getMethod()?this.onDataRequest(e,t):(t.writeStatus("500 Internal Server Error"),t.end())}onPollRequest(e,t){if(this.req)return i("request overlap"),this.onError("overlap from client"),t.writeStatus("500 Internal Server Error"),void t.end();i("setting request"),this.req=e,this.res=t;e.cleanup=()=>{this.req=this.res=null},t.onAborted((()=>{this.writable=!1,this.onError("poll connection closed prematurely")})),this.writable=!0,this.emit("drain"),this.writable&&this.shouldClose&&(i("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeStatus("500 Internal Server Error"),void t.end();const r=Number(e.headers["content-length"]);if(!r)return this.onError("content-length header required"),void t.writeStatus("411 Length Required").end();if(r>this.maxHttpBufferSize)return this.onError("payload too large"),void t.writeStatus("413 Payload Too Large").end();if("application/octet-stream"===e.headers["content-type"]&&4===this.protocol)return this.onError("invalid content");let o;this.dataReq=e,this.dataRes=t;let n=0;const a={"Content-Type":"text/html"};this.headers(e,a);for(let e in a)t.writeHeader(e,String(a[e]));const i=e=>{this.onData(e.toString()),this.onDataRequestCleanup(),t.end("ok")};t.onAborted((()=>{this.onDataRequestCleanup(),this.onError("data request connection closed prematurely")})),t.onData(((e,a)=>{const s=n+e.byteLength;if(s>r)return this.onError("content-length mismatch"),void t.close();if(!o){if(a)return void i(Buffer.from(e));o=Buffer.allocUnsafe(r)}if(Buffer.from(e).copy(o,n),a)return s!=r?(this.onError("content-length mismatch"),t.writeStatus("400 Content-Length Mismatch").end(),void this.onDataRequestCleanup()):void i(o);n=s}))}onDataRequestCleanup(){this.dataReq=this.dataRes=null}onData(e){i('received "%s"',e);const t=e=>{if("close"===e.type)return i("got xhr close packet"),this.onClose(),!1;this.onPacket(e)};3===this.protocol?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(i("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);const t=t=>{const r=e.some((e=>e.options&&e.options.compress));this.write(t,{compress:r})};3===this.protocol?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){i('writing "%s"',e),this.doWrite(e,t,(()=>{this.req.cleanup()}))}doWrite(e,t,r){const o="string"==typeof e,n={"Content-Type":o?"text/plain; charset=UTF-8":"application/octet-stream"},i=e=>{this.headers(this.req,n),Object.keys(n).forEach((e=>{this.res.writeHeader(e,String(n[e]))})),this.res.end(e),r()};if(!this.httpCompression||!t.compress)return void i(e);if((o?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)return void i(e);const s=a(this.req).encodings(["gzip","deflate"]);s?this.compress(e,s,((e,t)=>{if(e)return this.res.writeStatus("500 Internal Server Error"),this.res.end(),void r(e);n["Content-Encoding"]=s,i(t)})):i(e)}compress(e,t,r){i("compressing");const o=[];let n=0;s[t](this.httpCompression).on("error",r).on("data",(function(e){o.push(e),n+=e.length})).on("end",(function(){r(null,Buffer.concat(o,n))})).end(e)}doClose(e){let t;i("closing");const r=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(i("transport writable - closing right away"),this.send([{type:"close"}]),r()):this.discarded?(i("transport discarded - closing right away"),r()):(i("transport not writable - buffering orderly close"),this.shouldClose=r,t=setTimeout(r,this.closeTimeout))}headers(e,t){t=t||{};const r=e.headers["user-agent"];return r&&(~r.indexOf(";MSIE")||~r.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),this.emit("headers",t,e),t}}t.Polling=c},21419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const o=r(56716),n=(0,r(45753).default)("engine:ws");class a extends o.Transport{constructor(e){super(e),this.writable=!1,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}get supportsFraming(){return!0}send(e){const t=e.shift();if(void 0===t)return this.writable=!0,void this.emit("drain");const r={};t.options&&(r.compress=t.options.compress);const o=t=>{const r="string"!=typeof t,o=this.perMessageDeflate&&Buffer.byteLength(t)>this.perMessageDeflate.threshold;n('writing "%s"',t),this.writable=!1,this.socket.send(t,r,o),this.send(e)};t.options&&"string"==typeof t.options.wsPreEncoded?o(t.options.wsPreEncoded):this.parser.encodePacket(t,this.supportsBinary,o)}doClose(e){n("closing"),e&&e(),this.socket.close()}}t.WebSocket=a},73036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(99627),n=r(53672),a=r(80427);function i(e){return"string"==typeof e._query.j?new n.JSONP(e):new o.Polling(e)}t.default={polling:i,websocket:a.WebSocket},i.upgradesTo=["websocket"]},53672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONP=void 0;const o=r(99627),n=r(83480),a=/\\\\n/g,i=/(\\)?\\n/g;class s extends o.Polling{constructor(e){super(e),this.head="___eio["+(e._query.j||"").replace(/[^0-9]/g,"")+"](",this.foot=");"}onData(e){"string"==typeof(e=n.parse(e).d)&&(e=e.replace(i,(function(e,t){return t?e:"\n"})),super.onData(e.replace(a,"\\n")))}doWrite(e,t,r){const o=JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");e=this.head+o+this.foot,super.doWrite(e,t,r)}}t.JSONP=s},99627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polling=void 0;const o=r(56716),n=r(43106),a=r(22594),i=(0,r(45753).default)("engine:polling"),s={gzip:n.createGzip,deflate:n.createDeflate};class c extends o.Transport{constructor(e){super(e),this.closeTimeout=3e4}get name(){return"polling"}get supportsFraming(){return!1}onRequest(e){const t=e.res;"GET"===e.method?this.onPollRequest(e,t):"POST"===e.method?this.onDataRequest(e,t):(t.writeHead(500),t.end())}onPollRequest(e,t){if(this.req)return i("request overlap"),this.onError("overlap from client"),t.writeHead(500),void t.end();i("setting request"),this.req=e,this.res=t;const r=()=>{this.onError("poll connection closed prematurely")};e.cleanup=()=>{e.removeListener("close",r),this.req=this.res=null},e.on("close",r),this.writable=!0,this.emit("drain"),this.writable&&this.shouldClose&&(i("triggering empty send to append close packet"),this.send([{type:"noop"}]))}onDataRequest(e,t){if(this.dataReq)return this.onError("data request overlap from client"),t.writeHead(500),void t.end();const r="application/octet-stream"===e.headers["content-type"];if(r&&4===this.protocol)return this.onError("invalid content");this.dataReq=e,this.dataRes=t;let o=r?Buffer.concat([]):"";const n=()=>{e.removeListener("data",i),e.removeListener("end",s),e.removeListener("close",a),this.dataReq=this.dataRes=o=null},a=()=>{n(),this.onError("data request connection closed prematurely")},i=e=>{let a;r?(o=Buffer.concat([o,e]),a=o.length):(o+=e,a=Buffer.byteLength(o)),a>this.maxHttpBufferSize&&(t.writeHead(413).end(),n())},s=()=>{this.onData(o);t.writeHead(200,this.headers(e,{"Content-Type":"text/html","Content-Length":2})),t.end("ok"),n()};e.on("close",a),r||e.setEncoding("utf8"),e.on("data",i),e.on("end",s)}onData(e){i('received "%s"',e);const t=e=>{if("close"===e.type)return i("got xhr close packet"),this.onClose(),!1;this.onPacket(e)};3===this.protocol?this.parser.decodePayload(e,t):this.parser.decodePayload(e).forEach(t)}onClose(){this.writable&&this.send([{type:"noop"}]),super.onClose()}send(e){this.writable=!1,this.shouldClose&&(i("appending close packet to payload"),e.push({type:"close"}),this.shouldClose(),this.shouldClose=null);const t=t=>{const r=e.some((e=>e.options&&e.options.compress));this.write(t,{compress:r})};3===this.protocol?this.parser.encodePayload(e,this.supportsBinary,t):this.parser.encodePayload(e,t)}write(e,t){i('writing "%s"',e),this.doWrite(e,t,(()=>{this.req.cleanup()}))}doWrite(e,t,r){const o="string"==typeof e,n={"Content-Type":o?"text/plain; charset=UTF-8":"application/octet-stream"},i=e=>{n["Content-Length"]="string"==typeof e?Buffer.byteLength(e):e.length,this.res.writeHead(200,this.headers(this.req,n)),this.res.end(e),r()};if(!this.httpCompression||!t.compress)return void i(e);if((o?Buffer.byteLength(e):e.length)<this.httpCompression.threshold)return void i(e);const s=a(this.req).encodings(["gzip","deflate"]);s?this.compress(e,s,((e,t)=>{if(e)return this.res.writeHead(500),this.res.end(),void r(e);n["Content-Encoding"]=s,i(t)})):i(e)}compress(e,t,r){i("compressing");const o=[];let n=0;s[t](this.httpCompression).on("error",r).on("data",(function(e){o.push(e),n+=e.length})).on("end",(function(){r(null,Buffer.concat(o,n))})).end(e)}doClose(e){let t;i("closing"),this.dataReq&&(i("aborting ongoing data request"),this.dataReq.destroy());const r=()=>{clearTimeout(t),e(),this.onClose()};this.writable?(i("transport writable - closing right away"),this.send([{type:"close"}]),r()):this.discarded?(i("transport discarded - closing right away"),r()):(i("transport not writable - buffering orderly close"),this.shouldClose=r,t=setTimeout(r,this.closeTimeout))}headers(e,t){t=t||{};const r=e.headers["user-agent"];return r&&(~r.indexOf(";MSIE")||~r.indexOf("Trident/"))&&(t["X-XSS-Protection"]="0"),this.emit("headers",t,e),t}}t.Polling=c},80427:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const o=r(56716),n=(0,r(45753).default)("engine:ws");class a extends o.Transport{constructor(e){super(e),this.socket=e.websocket,this.socket.on("message",((e,t)=>{const r=t?e:e.toString();n('received "%s"',r),super.onData(r)})),this.socket.once("close",this.onClose.bind(this)),this.socket.on("error",this.onError.bind(this)),this.writable=!0,this.perMessageDeflate=null}get name(){return"websocket"}get handlesUpgrades(){return!0}get supportsFraming(){return!0}send(e){const t=e.shift();if(void 0===t)return this.writable=!0,void this.emit("drain");const r={};t.options&&(r.compress=t.options.compress);const o=t=>{if(this.perMessageDeflate){("string"==typeof t?Buffer.byteLength(t):t.length)<this.perMessageDeflate.threshold&&(r.compress=!1)}n('writing "%s"',t),this.writable=!1,this.socket.send(t,r,(t=>{if(t)return this.onError("write error",t.stack);this.send(e)}))};t.options&&"string"==typeof t.options.wsPreEncoded?o(t.options.wsPreEncoded):this.parser.encodePacket(t,this.supportsBinary,o)}doClose(e){n("closing"),this.socket.close(),e&&e()}}t.WebSocket=a},57741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uServer=void 0;const o=r(45753),n=r(15038),a=r(40940),i=(0,o.default)("engine:uws");class s extends n.BaseServer{init(){}cleanup(){}prepare(e,t){e.method=e.getMethod().toUpperCase();const r=new URLSearchParams(e.getQuery());e._query=Object.fromEntries(r.entries()),e.headers={},e.forEach(((t,r)=>{e.headers[t]=r})),e.connection={remoteAddress:Buffer.from(t.getRemoteAddressAsText()).toString()},t.onAborted((()=>{i("response has been aborted")}))}createTransport(e,t){return new a.default[e](t)}attach(e,t={}){const r=(t.path||"/engine.io").replace(/\/$/,"")+"/";e.any(r,this.handleRequest.bind(this)).ws(r,{compression:t.compression,idleTimeout:t.idleTimeout,maxBackpressure:t.maxBackpressure,maxPayloadLength:this.opts.maxHttpBufferSize,upgrade:this.handleUpgrade.bind(this),open:e=>{e.transport.socket=e,e.transport.writable=!0,e.transport.emit("drain")},message:(e,t,r)=>{e.transport.onData(r?t:Buffer.from(t).toString())},close:(e,t,r)=>{e.transport.onClose(t,r)}})}handleRequest(e,t){i('handling "%s" http request "%s"',t.getMethod(),t.getUrl()),this.prepare(t,e),t.res=e;const r=(r,o)=>{if(void 0!==r)return this.emit("connection_error",{req:t,code:r,message:n.Server.errorMessages[r],context:o}),void this.abortRequest(t.res,r,o);if(t._query.sid)i("setting new request for existing client"),this.clients[t._query.sid].transport.onRequest(t);else{const r=(t,r)=>this.abortRequest(e,t,r);this.handshake(t._query.transport,t,r)}};this.corsMiddleware?(t.res=new c(e),this.corsMiddleware.call(null,t,t.res,(()=>{this.verify(t,!1,r)}))):this.verify(t,!1,r)}handleUpgrade(e,t,r){i("on upgrade"),this.prepare(t,e),t.res=e,this.verify(t,!0,(async(o,a)=>{if(o)return this.emit("connection_error",{req:t,code:o,message:n.Server.errorMessages[o],context:a}),void this.abortRequest(e,o,a);const s=t._query.sid;let c;if(s){const r=this.clients[s];r?r.upgrading?(i("transport has already been trying to upgrade"),e.close()):r.upgraded?(i("transport had already been upgraded"),e.close()):(i("upgrading existing transport"),c=this.createTransport(t._query.transport,t),r.maybeUpgrade(c)):(i("upgrade attempt for closed client"),e.close())}else if(c=await this.handshake(t._query.transport,t,((t,r)=>this.abortRequest(e,t,r))),!c)return;e.upgrade({transport:c},t.getHeader("sec-websocket-key"),t.getHeader("sec-websocket-protocol"),t.getHeader("sec-websocket-extensions"),r)}))}abortRequest(e,t,r){const o=t===n.Server.errors.FORBIDDEN?"403 Forbidden":"400 Bad Request",a=r&&r.message?r.message:n.Server.errorMessages[t];e.writeStatus(o),e.writeHeader("Content-Type","application/json"),e.end(JSON.stringify({code:t,message:a}))}}t.uServer=s;class c{constructor(e){this.res=e,this.statusWritten=!1,this.headers=[]}set statusCode(e){this.writeStatus(200===e?"200 OK":"204 No Content")}setHeader(e,t){this.writeHeader(e,t)}getHeader(){}writeStatus(e){this.res.writeStatus(e),this.statusWritten=!0,this.writeBufferedHeaders()}writeHeader(e,t){"Content-Length"!==e&&(this.statusWritten?this.res.writeHeader(e,t):this.headers.push([e,t]))}writeBufferedHeaders(){this.headers.forEach((([e,t])=>{this.res.writeHeader(e,t)}))}end(e){this.statusWritten||this.writeBufferedHeaders(),this.res.end(e)}onData(e){this.res.onData(e)}onAborted(e){this.res.onAborted(e)}}},95902:(e,t,r)=>{"use strict";const o=r(34226),n=r(58611),a=r(83480);let i;const{kAvvioBoot:s,kChildren:c,kBodyLimit:l,kRoutePrefix:u,kLogLevel:p,kLogSerializers:d,kHooks:h,kSchemaController:f,kRequestAcceptVersion:m,kReplySerializerDefault:v,kContentTypeParser:g,kReply:y,kRequest:b,kFourOhFour:w,kState:x,kOptions:k,kPluginNameChain:_,kSchemaErrorFormatter:E,kErrorHandler:S,kKeepAliveConnections:P,kFourOhFourContext:T}=r(78731),{createServer:O}=r(93067),j=r(80930),R=r(46911),I=["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS"],C=r(89595),A=r(61596),N=r(35728),{Hooks:$,hookRunnerApplication:L,supportedHooks:D}=r(77130),{createLogger:z}=r(53772),B=r(47698),q=r(63747),{buildRouting:F,validateBodyLimitOption:M}=r(38779),U=r(76239),H=r(53655),V=r(81155),K=r(5793),G=r(48133),{defaultInitOptions:W}=H,{FST_ERR_BAD_URL:J,FST_ERR_MISSING_MIDDLEWARE:Y}=r(81907),X={config:{},onSend:[],onError:[],[T]:null};function Q(e){const t={};return["errorHandler","logLevel","logSerializers"].concat(D).forEach((r=>{t[r]=e.store[r]})),Object.assign({},t)}function Z(e,t,r){r.statusCode<500?r.log.info({res:r,err:e},e&&e.message):r.log.error({req:t,res:r,err:e},e&&e.message),r.send(e)}function ee(e){if("object"!=typeof(e=e||{}))throw new TypeError("Options must be an object");if(e.querystringParser&&"function"!=typeof e.querystringParser)throw new Error(`querystringParser option should be a function, instead got '${typeof e.querystringParser}'`);if(e.schemaController&&e.schemaController.bucket&&"function"!=typeof e.schemaController.bucket)throw new Error(`schemaController.bucket option should be a function, instead got '${typeof e.schemaController.bucket}'`);M(e.bodyLimit);const t=e.requestIdHeader||W.requestIdHeader,T=e.querystringParser||a.parse,ee=e.genReqId||q(),re=e.requestIdLogLabel||"reqId",oe=e.bodyLimit||W.bodyLimit,ne=e.disableRequestLogging||!1,ae=null!=e.exposeHeadRoutes&&e.exposeHeadRoutes,ie=Object.assign({customOptions:{},plugins:[]},e.ajv),se=e.frameworkErrors;if(!ie.customOptions||"[object Object]"!==Object.prototype.toString.call(ie.customOptions))throw new Error(`ajv.customOptions option should be an object, instead got '${typeof ie.customOptions}'`);if(!ie.plugins||!Array.isArray(ie.plugins))throw new Error(`ajv.plugins option should be an array, instead got '${typeof ie.plugins}'`);const{logger:ce,hasLogger:le}=z(e);e.connectionTimeout=e.connectionTimeout||W.connectionTimeout,e.keepAliveTimeout=e.keepAliveTimeout||W.keepAliveTimeout,e.forceCloseConnections="boolean"==typeof e.forceCloseConnections?e.forceCloseConnections:W.forceCloseConnections,e.maxRequestsPerSocket=e.maxRequestsPerSocket||W.maxRequestsPerSocket,e.requestTimeout=e.requestTimeout||W.requestTimeout,e.logger=ce,e.genReqId=ee,e.requestIdHeader=t,e.querystringParser=T,e.requestIdLogLabel=re,e.disableRequestLogging=ne,e.ajv=ie,e.clientErrorHandler=e.clientErrorHandler||function(e,t){if("ECONNRESET"===e.code||t.destroyed)return;const r=JSON.stringify({error:n.STATUS_CODES[400],message:"Client Error",statusCode:400});this.log.trace({err:e},"client error"),t.writable&&0===t.bytesWritten&&t.write(`HTTP/1.1 400 Bad Request\r\nContent-Length: ${r.length}\r\nContent-Type: application/json\r\n\r\n${r}`);t.destroy(e)},e.exposeHeadRoutes=ae;const ue=H(e),pe=!0===e.forceCloseConnections?new Set:G();let de=e.constraints;e.versioning&&(K.emit("FSTDEP009"),de={...de,version:{name:"version",mustMatchWhenDerived:!0,storage:e.versioning.storage,deriveConstraint:e.versioning.deriveVersion,validate(e){if("string"!=typeof e)throw new Error("Version constraint should be a string.")}}});const he=F({config:{defaultRoute:function(e,t){void 0!==e.headers["accept-version"]&&(e.headers[m]=e.headers["accept-version"],e.headers["accept-version"]=void 0);fe.router.lookup(e,t)},onBadUrl:function(e,t,r){if(se){const o=ee(t),n=ce.child({reqId:o});n.info({req:t},"incoming request");const a=new R(o,null,t,null,n,X),i=new j(r,a,n);return se(new J(e),a,i)}const o=`{"error":"Bad Request","message":"'${e}' is not a valid url component","statusCode":400}`;r.writeHead(400,{"Content-Type":"application/json","Content-Length":o.length}),r.end(o)},constraints:de,ignoreTrailingSlash:e.ignoreTrailingSlash||W.ignoreTrailingSlash,maxParamLength:e.maxParamLength||W.maxParamLength,caseSensitive:e.caseSensitive,buildPrettyMeta:Q},keepAliveConnections:pe}),fe=U(e),me=function(e,{rewriteUrl:t,logger:r}){if(!t)return e;return function(o,n){const a=o.url,i=t(o);a!==i&&(r.debug({originalUrl:a,url:i},"rewrite url"),"string"==typeof i?o.url=i:o.destroy(new Error(`Rewrite url for "${o.url}" needs to be of type "string" but received "${typeof i}"`))),e(o,n)}}(he.routing,e);e.http2SessionTimeout=ue.http2SessionTimeout;const{server:ve,listen:ge}=O(e,me),ye=j.setupResponseListeners,be=N.buildSchemaController(null,e.schemaController),we={[x]:{listening:!1,closing:!1,started:!1},[P]:pe,[k]:e,[c]:[],[l]:oe,[u]:"",[p]:"",[d]:null,[h]:new $,[f]:be,[E]:null,[S]:Z,[v]:null,[g]:new A(oe,e.onProtoPoisoning||W.onProtoPoisoning,e.onConstructorPoisoning||W.onConstructorPoisoning),[y]:j.buildReply(j),[b]:R.buildRequest(R,e.trustProxy),[w]:fe,[B.registeredPlugins]:[],[_]:[],[s]:null,routing:me,getDefaultRoute:he.getDefaultRoute.bind(he),setDefaultRoute:he.setDefaultRoute.bind(he),delete:function(e,t,r){return he.prepareRoute.call(this,"DELETE",e,t,r)},get:function(e,t,r){return he.prepareRoute.call(this,"GET",e,t,r)},head:function(e,t,r){return he.prepareRoute.call(this,"HEAD",e,t,r)},patch:function(e,t,r){return he.prepareRoute.call(this,"PATCH",e,t,r)},post:function(e,t,r){return he.prepareRoute.call(this,"POST",e,t,r)},put:function(e,t,r){return he.prepareRoute.call(this,"PUT",e,t,r)},options:function(e,t,r){return he.prepareRoute.call(this,"OPTIONS",e,t,r)},all:function(e,t,r){return he.prepareRoute.call(this,I,e,t,r)},route:function(e){return he.route.call(this,e)},log:ce,addHook:function(e,t){if(ke('Cannot call "addHook" when fastify instance is already started!'),"onSend"===e||"preSerialization"===e||"onError"===e){if("AsyncFunction"===t.constructor.name&&4===t.length)throw new Error("Async function has too many arguments. Async hooks should not use the 'done' argument.")}else if("onReady"===e){if("AsyncFunction"===t.constructor.name&&0!==t.length)throw new Error("Async function has too many arguments. Async hooks should not use the 'done' argument.")}else if("preParsing"!==e&&"AsyncFunction"===t.constructor.name&&3===t.length)throw new Error("Async function has too many arguments. Async hooks should not use the 'done' argument.");"onClose"===e?this.onClose(t):"onReady"===e?this[h].add(e,t):this.after(((o,n)=>{r.call(this,e,t),n(o)}));return this;function r(e,t){this[h].add(e,t),this[c].forEach((o=>r.call(o,e,t)))}},addSchema:function(e){return ke('Cannot call "addSchema" when fastify instance is already started!'),this[f].add(e),this[c].forEach((t=>t.addSchema(e))),this},getSchema:be.getSchema.bind(be),getSchemas:be.getSchemas.bind(be),setValidatorCompiler:function(e){return ke('Cannot call "setValidatorCompiler" when fastify instance is already started!'),this[f].setValidatorCompiler(e),this},setSerializerCompiler:function(e){return ke('Cannot call "setSerializerCompiler" when fastify instance is already started!'),this[f].setSerializerCompiler(e),this},setSchemaController:function(e){ke('Cannot call "setSchemaController" when fastify instance is already started!');const t=this[f],r=N.buildSchemaController(t,Object.assign({},t.opts,e));return this[f]=r,this.getSchema=r.getSchema.bind(r),this.getSchemas=r.getSchemas.bind(r),this},setReplySerializer:function(e){return ke('Cannot call "setReplySerializer" when fastify instance is already started!'),this[v]=e,this},setSchemaErrorFormatter:function(e){return ke('Cannot call "setSchemaErrorFormatter" when fastify instance is already started!'),te(e),this[E]=e.bind(this),this},addContentTypeParser:A.helpers.addContentTypeParser,hasContentTypeParser:A.helpers.hasContentTypeParser,getDefaultJsonParser:A.defaultParsers.getDefaultJsonParser,defaultTextParser:A.defaultParsers.defaultTextParser,removeContentTypeParser:A.helpers.removeContentTypeParser,removeAllContentTypeParsers:A.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,listen:ge,server:ve,decorate:C.add,hasDecorator:C.exist,decorateReply:C.decorateReply,decorateRequest:C.decorateRequest,hasRequestDecorator:C.existRequest,hasReplyDecorator:C.existReply,inject:function(e,t){void 0===i&&(i=r(73824));if(we[x].started){if(we[x].closing){const e=new Error("Server is closed");return t?void t(e):Promise.reject(e)}return i(me,e,t)}if(!t)return i(((e,t)=>{this.ready((function(r){r?t.emit("error",r):me(e,t)}))}),e);this.ready((r=>{r?t(r,null):i(me,e,t)}))},printRoutes:function(e={}){return e.includeMeta=e.includeHooks?e.includeMeta?D.concat(e.includeMeta):D:e.includeMeta,he.printRoutes(e)},setNotFoundHandler:function(e,t){return ke('Cannot call "setNotFoundHandler" when fastify instance is already started!'),fe.setNotFoundHandler.call(this,e,t,xe,he.routeHandler),this},setErrorHandler:function(e){return ke('Cannot call "setErrorHandler" when fastify instance is already started!'),this[S]=e.bind(this),this},initialConfig:ue};we[y].prototype.server=we,we[b].prototype.server=we,Object.defineProperties(we,{pluginName:{get(){return this[_].length>1?this[_].join(" -> "):this[_][0]}},prefix:{get(){return this[u]}},validatorCompiler:{get(){return this[f].getValidatorCompiler()}},serializerCompiler:{get(){return this[f].getSerializerCompiler()}},version:{get:()=>"3.29.0"},errorHandler:{get(){return this[S]}}}),Object.setPrototypeOf(we,{use:function(){throw new Y}}),e.schemaErrorFormatter&&(te(e.schemaErrorFormatter),we[E]=e.schemaErrorFormatter.bind(we));const xe=o(we,{autostart:!1,timeout:Number(e.pluginTimeout)||W.pluginTimeout,expose:{use:"register"}});xe.override=V,xe.on("start",(()=>we[x].started=!0)),we[s]=we.ready,we.ready=function(e){let t,r;if(process.nextTick((function(){we[s](((e,t)=>{e||we[x].started?o(e):L("onReady",we[s],we,o),t()}))})),!e)return new Promise((function(e,o){t=e,r=o}));function o(o){if(e)o?e(o):e(void 0,we);else{if(o)return r(o);t(we)}}},we.printPlugins=xe.prettyPrint.bind(xe),xe.once("preReady",(()=>{we.onClose(((e,t)=>{if(we[x].closing=!0,he.closeRoutes(),we[x].listening){e.server.close(t);for(const e of we[P])e.destroy(),we[P].delete(e)}else t(null)}))})),we.setNotFoundHandler(),fe.arrange404(we),he.setup(e,{avvio:xe,fourOhFour:fe,logger:ce,hasLogger:le,setupResponseListeners:ye,throwIfAlreadyStarted:ke}),ve.on("clientError",e.clientErrorHandler.bind(we));try{const e=r(31637).channel("fastify.initialization");e.hasSubscribers&&e.publish({fastify:we})}catch(e){}return we;function ke(e){if(we[x].started)throw new Error(e)}}function te(e){if("function"!=typeof e)throw new Error("schemaErrorFormatter option should be a function, instead got "+typeof e);if("AsyncFunction"===e.constructor.name)throw new Error("schemaErrorFormatter option should not be an async function")}e.exports=ee,e.exports.fastify=ee,e.exports.default=ee},75626:e=>{const t={};var r=function e(r,n,a,i,s){"use strict";var c=null,l=0;if(void 0===s&&(s=r),!r||"object"!=typeof r||Array.isArray(r))return e.errors=[{keyword:"type",dataPath:(n||"")+"",schemaPath:"#/type",params:{type:"object"},message:"should be object"}],!1;void 0===r.connectionTimeout&&(r.connectionTimeout=0),void 0===r.keepAliveTimeout&&(r.keepAliveTimeout=5e3),void 0===r.maxRequestsPerSocket&&(r.maxRequestsPerSocket=0),void 0===r.requestTimeout&&(r.requestTimeout=0),void 0===r.bodyLimit&&(r.bodyLimit=1048576),void 0===r.caseSensitive&&(r.caseSensitive=!0),void 0===r.ignoreTrailingSlash&&(r.ignoreTrailingSlash=!1),void 0===r.disableRequestLogging&&(r.disableRequestLogging=!1),void 0===r.jsonShorthand&&(r.jsonShorthand=!0),void 0===r.maxParamLength&&(r.maxParamLength=100),void 0===r.onProtoPoisoning&&(r.onProtoPoisoning="error"),void 0===r.onConstructorPoisoning&&(r.onConstructorPoisoning="error"),void 0===r.pluginTimeout&&(r.pluginTimeout=1e4),void 0===r.requestIdHeader&&(r.requestIdHeader="request-id"),void 0===r.requestIdLogLabel&&(r.requestIdLogLabel="reqId"),void 0===r.http2SessionTimeout&&(r.http2SessionTimeout=5e3);var u=!0;for(var p in r)!e.schema.properties.hasOwnProperty(p)&&delete r[p];if(u){var d=l;if("number"!=typeof(C=r.connectionTimeout)||C%1||C!=C){var h=typeof C;if(void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.connectionTimeout=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.keepAliveTimeout)||C%1||C!=C){if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.keepAliveTimeout=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.maxRequestsPerSocket)||C%1||C!=C){if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.maxRequestsPerSocket=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.requestTimeout)||C%1||C!=C){if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".requestTimeout",schemaPath:"#/properties/requestTimeout/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.requestTimeout=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.bodyLimit)||C%1||C!=C){if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".bodyLimit",schemaPath:"#/properties/bodyLimit/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.bodyLimit=I)}if(u=l===d){if(d=l,"boolean"!=typeof(C=r.caseSensitive)){if(h=typeof C,void 0!==(I=void 0));else if("false"===C||0===C||null===C)I=!1;else{if("true"!==C&&1!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".caseSensitive",schemaPath:"#/properties/caseSensitive/type",params:{type:"boolean"},message:"should be boolean"}],!1;I=!0}void 0!==I&&(C=I,r.caseSensitive=I)}if(u=l===d){if(void 0===(C=r.http2))u=!0;else{if(d=l,"boolean"!=typeof C){if(h=typeof C,void 0!==(I=void 0));else if("false"===C||0===C||null===C)I=!1;else{if("true"!==C&&1!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".http2",schemaPath:"#/properties/http2/type",params:{type:"boolean"},message:"should be boolean"}],!1;I=!0}void 0!==I&&(C=I,r.http2=I)}u=l===d}if(u){if(void 0===(C=r.https))u=!0;else{d=l;var f,m=l,v=(u=!0,l),g=l,y=l,b=l,w=!1,x=!1,k=null,_=l;if("boolean"!=typeof C){if(void 0!==(f=void 0));else if("false"===C||0===C||null===C)f=!1;else if("true"===C||1===C)f=!0;else{var E={};null===c?c=[E]:c.push(E),l++}void 0!==f&&(C=f,r.https=f)}if((S=l===_)&&(x=w=!0,k=0),_=l,null!==C)void 0!==(f=void 0)||(""===C||0===C||!1===C?f=null:(E={},null===c?c=[E]:c.push(E),l++)),void 0!==f&&(C=f,r.https=f);if((S=l===_)&&w)x=!1,k=[k,1];else{var S;if(S&&(x=w=!0,k=1),_=l,C&&"object"==typeof C&&!Array.isArray(C)){var P=!0;for(var T in C)"allowHTTP1"!=T&&delete C[T];if(P)if(void 0===($=C.allowHTTP1))P=!1,E={},null===c?c=[E]:c.push(E),l++;else{var O=l;if("boolean"!=typeof $){var j=void 0;void 0!==j||("false"===$||0===$||null===$?j=!1:"true"===$||1===$?j=!0:(E={},null===c?c=[E]:c.push(E),l++)),void 0!==j&&($=j,C.allowHTTP1=j)}P=l===O}}else E={},null===c?c=[E]:c.push(E),l++;(S=l===_)&&w?(x=!1,k=[k,2]):S&&(x=w=!0,k=2)}x?(l=b,null!==c&&(b?c.length=b:c=null)):(E={},null===c?c=[E]:c.push(E),l++),(x=l===y)?(E={},null===c?c=[E]:c.push(E),l++):(l=g,null!==c&&(g?c.length=g:c=null));var R=l===v;if(l=m,null!==c&&(m?c.length=m:c=null),R){if(v=l,o.errors=null,g=l,R=o.call(t,e.schema.properties.https.then.setDefaultValue,C,e.schema.properties.https.then,(n||"")+".https",r,"https",s),r&&(C=r.https),!R)return e.errors=[{keyword:"setDefaultValue",dataPath:(n||"")+".https",schemaPath:"#/properties/https/then/setDefaultValue",params:{keyword:"setDefaultValue"},message:'should pass "setDefaultValue" keyword validation'}],!1;u=R=l===v}if(!u)return E={keyword:"if",dataPath:(n||"")+".https",schemaPath:"#/properties/https/if",params:{failingKeyword:"then"},message:'should match "then" schema'},null===c?c=[E]:c.push(E),l++,e.errors=c,!1;u=l===d}if(u){if(d=l,"boolean"!=typeof(C=r.ignoreTrailingSlash)){if(h=typeof C,void 0!==(I=void 0));else if("false"===C||0===C||null===C)I=!1;else{if("true"!==C&&1!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",params:{type:"boolean"},message:"should be boolean"}],!1;I=!0}void 0!==I&&(C=I,r.ignoreTrailingSlash=I)}if(u=l===d){if(d=l,"boolean"!=typeof(C=r.disableRequestLogging)){if(h=typeof C,void 0!==(I=void 0));else if("false"===C||0===C||null===C)I=!1;else{if("true"!==C&&1!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",params:{type:"boolean"},message:"should be boolean"}],!1;I=!0}void 0!==I&&(C=I,r.disableRequestLogging=I)}if(u=l===d){if(d=l,"boolean"!=typeof(C=r.jsonShorthand)){if(h=typeof C,void 0!==(I=void 0));else if("false"===C||0===C||null===C)I=!1;else{if("true"!==C&&1!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",params:{type:"boolean"},message:"should be boolean"}],!1;I=!0}void 0!==I&&(C=I,r.jsonShorthand=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.maxParamLength)||C%1||C!=C){if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".maxParamLength",schemaPath:"#/properties/maxParamLength/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.maxParamLength=I)}if(u=l===d){if(d=l,"string"!=typeof(C=r.onProtoPoisoning)){if(h=typeof C,void 0!==(I=void 0));else if("number"==h||"boolean"==h)I=""+C;else{if(null!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",params:{type:"string"},message:"should be string"}],!1;I=""}void 0!==I&&(C=I,r.onProtoPoisoning=I)}if(u=l===d){if(d=l,"string"!=typeof(C=r.onConstructorPoisoning)){if(h=typeof C,void 0!==(I=void 0));else if("number"==h||"boolean"==h)I=""+C;else{if(null!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",params:{type:"string"},message:"should be string"}],!1;I=""}void 0!==I&&(C=I,r.onConstructorPoisoning=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.pluginTimeout)||C%1||C!=C){if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.pluginTimeout=I)}if(u=l===d){if(d=l,"string"!=typeof(C=r.requestIdHeader)){if(h=typeof C,void 0!==(I=void 0));else if("number"==h||"boolean"==h)I=""+C;else{if(null!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".requestIdHeader",schemaPath:"#/properties/requestIdHeader/type",params:{type:"string"},message:"should be string"}],!1;I=""}void 0!==I&&(C=I,r.requestIdHeader=I)}if(u=l===d){if(d=l,"string"!=typeof(C=r.requestIdLogLabel)){if(h=typeof C,void 0!==(I=void 0));else if("number"==h||"boolean"==h)I=""+C;else{if(null!==C)return e.errors=[{keyword:"type",dataPath:(n||"")+".requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",params:{type:"string"},message:"should be string"}],!1;I=""}void 0!==I&&(C=I,r.requestIdLogLabel=I)}if(u=l===d){if(d=l,"number"!=typeof(C=r.http2SessionTimeout)||C%1||C!=C){var I;if(h=typeof C,void 0!==(I=void 0));else{if("boolean"!=h&&null!==C&&("string"!=h||!C||C!=+C||C%1))return e.errors=[{keyword:"type",dataPath:(n||"")+".http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",params:{type:"integer"},message:"should be integer"}],!1;I=+C}void 0!==I&&(C=I,r.http2SessionTimeout=I)}if(u=l===d){var C;if(void 0===(C=r.versioning))u=!0;else{var A;if(d=l,!C||"object"!=typeof C||Array.isArray(C))return e.errors=[{keyword:"type",dataPath:(n||"")+".versioning",schemaPath:"#/properties/versioning/type",params:{type:"object"},message:"should be object"}],!1;if(void 0===C.storage&&(A=".storage")||void 0===C.deriveVersion&&(A=".deriveVersion"))return e.errors=[{keyword:"required",dataPath:(n||"")+".versioning",schemaPath:"#/properties/versioning/required",params:{missingProperty:""+A},message:"should have required property '"+A+"'"}],!1;for(var N in m=l,R=!0,C);u=l===d}if(u)if(void 0===(C=r.constraints))u=!0;else{if(d=l,!C||"object"!=typeof C||Array.isArray(C))return e.errors=[{keyword:"type",dataPath:(n||"")+".constraints",schemaPath:"#/properties/constraints/type",params:{type:"object"},message:"should be object"}],!1;for(var N in m=l,R=!0,C){var $,L;if(v=l,!($=C[N])||"object"!=typeof $||Array.isArray($))return e.errors=[{keyword:"type",dataPath:(n||"")+".constraints['"+N+"']",schemaPath:"#/properties/constraints/additionalProperties/type",params:{type:"object"},message:"should be object"}],!1;if(void 0===$.storage&&(L=".storage")||void 0===$.validate&&(L=".validate")||void 0===$.deriveConstraint&&(L=".deriveConstraint"))return e.errors=[{keyword:"required",dataPath:(n||"")+".constraints['"+N+"']",schemaPath:"#/properties/constraints/additionalProperties/required",params:{missingProperty:""+L},message:"should have required property '"+L+"'"}],!1;for(var D in g=l,x=!0,$);if(x){var z=$.name;if(void 0===z)return x=!1,e.errors=[{keyword:"required",dataPath:(n||"")+".constraints['"+N+"']",schemaPath:"#/properties/constraints/additionalProperties/required",params:{missingProperty:"name"},message:"should have required property 'name'"}],!1;if(y=l,"string"!=typeof z){var B=typeof z,q=void 0;if(void 0!==q);else if("number"==B||"boolean"==B)q=""+z;else{if(null!==z)return e.errors=[{keyword:"type",dataPath:(n||"")+".constraints['"+N+"'].name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",params:{type:"string"},message:"should be string"}],!1;q=""}void 0!==q&&(z=q,$.name=q)}x=l===y}if(!(R=l===v))break}u=l===d}}}}}}}}}}}}}}}}}}}}return e.errors=c,0===l};function o(e,t,r,o,n,a){return n[a]=e,!0}r.schema={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:5e3},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{type:"string",default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:5e3},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},r.errors=null,e.exports=r,e.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:5e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:5e3}},61596:(e,t,r)=>{"use strict";const{AsyncResource:o}=r(90290);let n=r(84528);n="function"==typeof n?n:n.default;const a=r(42699),{kDefaultJsonParse:i,kContentTypeParser:s,kBodyLimit:c,kRequestPayloadStream:l,kState:u,kTestInternals:p}=r(78731),{FST_ERR_CTP_INVALID_TYPE:d,FST_ERR_CTP_EMPTY_TYPE:h,FST_ERR_CTP_ALREADY_PRESENT:f,FST_ERR_CTP_INVALID_HANDLER:m,FST_ERR_CTP_INVALID_PARSE_TYPE:v,FST_ERR_CTP_BODY_TOO_LARGE:g,FST_ERR_CTP_INVALID_MEDIA_TYPE:y,FST_ERR_CTP_INVALID_CONTENT_LENGTH:b,FST_ERR_CTP_EMPTY_JSON_BODY:w}=r(81907),x=r(5793);function k(e,t,r){this[i]=E(t,r),this.customParsers={},this.customParsers["application/json"]=new P(!0,!1,e,this[i]),this.customParsers["text/plain"]=new P(!0,!1,e,S),this.parserList=["application/json","text/plain"],this.parserRegExpList=[],this.cache=n(100)}function _(e,t,r,o,n){const a=o.asString,i=null===r.limit?o.bodyLimit:r.limit,s=void 0===e.headers["content-length"]?NaN:Number.parseInt(e.headers["content-length"],10);if(s>i)return void t.send(new g);let c=0,u=!0===a?"":[];const p=e[l]||e.raw;function d(e){if(c+=e.length,(p.receivedEncodedLength||c)>i)return p.removeListener("data",d),p.removeListener("end",h),p.removeListener("error",h),void t.send(new g);!0===a?u+=e:u.push(e)}function h(r){if(p.removeListener("data",d),p.removeListener("end",h),p.removeListener("error",h),void 0!==r)return r.statusCode=400,void t.code(r.statusCode).send(r);if(!0===a&&(c=Buffer.byteLength(u)),!Number.isNaN(s)&&(p.receivedEncodedLength||c)!==s)return void t.send(new b);!1===a&&(u=Buffer.concat(u));const i=o.fn(e,u,n);i&&"function"==typeof i.then&&i.then((e=>n(null,e)),n)}!0===a&&p.setEncoding("utf8"),p.on("data",d),p.on("end",h),p.on("error",h),p.resume()}function E(e,t){return function(r,o,n){if(""===o||null==o)return n(new w,void 0);let i;try{i=a.parse(o,{protoAction:e,constructorAction:t})}catch(e){return e.statusCode=400,n(e,void 0)}n(null,i)}}function S(e,t,r){r(null,t)}function P(e,t,r,o){this.asString=e,this.asBuffer=t,this.bodyLimit=r,this.fn=o,o.length===("AsyncFunction"===o.constructor.name?1:2)&&(x.emit("FSTDEP003"),this.isDeprecatedSignature=!0)}k.prototype.add=function(e,t,r){const o="string"==typeof e;if(!(o||e instanceof RegExp))throw new d;if(o&&0===e.length)throw new h;if("function"!=typeof r)throw new m;if(this.existingParser(e))throw new f(e);if(void 0!==t.parseAs&&"string"!==t.parseAs&&"buffer"!==t.parseAs)throw new v(t.parseAs);const n=new P("string"===t.parseAs,"buffer"===t.parseAs,t.bodyLimit,r);o&&"*"===e?this.customParsers[""]=n:(o?this.parserList.unshift(e):this.parserRegExpList.unshift(e),this.customParsers[e]=n)},k.prototype.hasParser=function(e){return e in this.customParsers},k.prototype.existingParser=function(e){return"application/json"===e?this.customParsers["application/json"]&&this.customParsers["application/json"].fn!==this[i]:"text/plain"===e?this.customParsers["text/plain"]&&this.customParsers["text/plain"].fn!==S:e in this.customParsers},k.prototype.getParser=function(e){for(var t=0;t!==this.parserList.length;++t){const r=this.parserList[t];if(e.indexOf(r)>-1){const t=this.customParsers[r];return this.cache.set(e,t),t}}for(var r=0;r!==this.parserRegExpList.length;++r){const t=this.parserRegExpList[r];if(t.test(e)){const r=this.customParsers[t];return this.cache.set(e,r),r}}return this.customParsers[""]},k.prototype.removeAll=function(){this.customParsers={},this.parserRegExpList=[],this.parserList=[],this.cache=n(100)},k.prototype.remove=function(e){if(!("string"==typeof e||e instanceof RegExp))throw new d;delete this.customParsers[e];const t="string"==typeof e?this.parserList:this.parserRegExpList,r=t.findIndex((t=>t.toString()===e.toString()));r>-1&&t.splice(r,1)},k.prototype.run=function(e,t,r,n){const a=this.cache.get(e)||this.getParser(e),i=new o("content-type-parser:run",r);if(void 0===a)n.send(new y(e));else if(!0===a.asString||!0===a.asBuffer)_(r,n,n.context._parserOptions,a,s);else{let e;e=a.isDeprecatedSignature?a.fn(r[l],s):a.fn(r,r[l],s),e&&"function"==typeof e.then&&e.then((e=>s(null,e)),s)}function s(e,o){i.runInAsyncScope((()=>{e?n.send(e):(r.body=o,t(r,n))}))}},e.exports=k,e.exports.helpers={buildContentTypeParser:function(e){const t=new k;return t[i]=e[i],Object.assign(t.customParsers,e.customParsers),t.parserList=e.parserList.slice(),t},addContentTypeParser:function(e,t,r){if(this[u].started)throw new Error('Cannot call "addContentTypeParser" when fastify instance is already started!');return"function"==typeof t&&(r=t,t={}),t||(t={}),t.bodyLimit||(t.bodyLimit=this[c]),Array.isArray(e)?e.forEach((e=>this[s].add(e,t,r))):this[s].add(e,t,r),this},hasContentTypeParser:function(e){return this[s].hasParser(e)},removeContentTypeParser:function(e){if(this[u].started)throw new Error('Cannot call "removeContentTypeParser" when fastify instance is already started!');if(Array.isArray(e))for(const t of e)this[s].remove(t);else this[s].remove(e)},removeAllContentTypeParsers:function(){if(this[u].started)throw new Error('Cannot call "removeAllContentTypeParsers" when fastify instance is already started!');this[s].removeAll()}},e.exports.defaultParsers={getDefaultJsonParser:E,defaultTextParser:S},e.exports[p]={rawBody:_}},86985:(e,t,r)=>{"use strict";const{kFourOhFourContext:o,kReplySerializerDefault:n}=r(78731);function a(e,t){let r="";for(var o=0;o!==e.length;++o){const n=e[o];r+=t+(n.dataPath||"")+" "+n.message+", "}return new Error(r.slice(0,-", ".length))}e.exports=function(e,t,r,i,s,c,l,u,p,d,h,f,m){this.schema=e,this.handler=t,this.Reply=r,this.Request=i,this.contentTypeParser=s,this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.config=c,this.errorHandler=l,this._middie=null,this._parserOptions={limit:u||null},this.logLevel=p,this.logSerializers=d,this[o]=null,this.attachValidation=h,this[n]=f,this.schemaErrorFormatter=m||a}},89595:(e,t,r)=>{"use strict";const{kReply:o,kRequest:n,kState:a}=r(78731),{FST_ERR_DEC_ALREADY_PRESENT:i,FST_ERR_DEC_MISSING_DEPENDENCY:s,FST_ERR_DEC_AFTER_START:c,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:l}=r(81907),u=r(5793);function p(e,t,r,o){const n=e.prototype;if(n.hasOwnProperty(t)||f(e,t))throw new i(t);m(e,t,o),!r||"function"!=typeof r.getter&&"function"!=typeof r.setter?"function"==typeof r?n[t]=r:e.props.push({key:t,value:r}):Object.defineProperty(n,t,{get:r.getter,set:r.setter})}function d(e,t){"object"==typeof t&&t&&"function"!=typeof t.getter&&"function"!=typeof t.setter&&u.emit("FSTDEP006",e)}function h(e,t){return t?t in e||e.prototype&&t in e.prototype||f(e,t):e in this}function f(e,t){return!!e.props&&e.props.find((({key:e})=>e===t))}function m(e,t,r){if(null!=r){if(!Array.isArray(r))throw new l(t);for(var o=0;o!==r.length;++o)if(!h(e,r[o]))throw new s(r[o])}}function v(e,t){if(e[a].started)throw new c(t)}e.exports={add:function(e,t,r){return v(this,e),function(e,t,r,o){if(e.hasOwnProperty(t))throw new i(t);m(e,t,o),!r||"function"!=typeof r.getter&&"function"!=typeof r.setter?e[t]=r:Object.defineProperty(e,t,{get:r.getter,set:r.setter})}(this,e,t,r),this},exist:h,existRequest:function(e){return!(!e||!f(this[n],e))||h(this[n].prototype,e)},existReply:function(e){return!(!e||!f(this[o],e))||h(this[o].prototype,e)},dependencies:m,decorateReply:function(e,t,r){return v(this,e),d(e,t),p(this[o],e,t,r),this},decorateRequest:function(e,t,r){return v(this,e),d(e,t),p(this[n],e,t,r),this}}},81907:(e,t,r)=>{"use strict";const o=r(3812),n={FST_ERR_NOT_FOUND:o("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_CTP_ALREADY_PRESENT:o("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:o("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:o("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:o("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:o("FST_ERR_CTP_INVALID_PARSE_TYPE","The body parser can only parse your data as 'string' or 'buffer', you asked '%s' which is not supported.",500,TypeError),FST_ERR_CTP_BODY_TOO_LARGE:o("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:o("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:o("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:o("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_DEC_ALREADY_PRESENT:o("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:o("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array."),FST_ERR_DEC_MISSING_DEPENDENCY:o("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:o("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:o("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:o("FST_ERR_HOOK_INVALID_HANDLER","The hook callback must be a function",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:o("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.io/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_LOG_INVALID_DESTINATION:o("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_REP_INVALID_PAYLOAD_TYPE:o("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_ALREADY_SENT:o("FST_ERR_REP_ALREADY_SENT","Reply was already sent."),FST_ERR_REP_SENT_VALUE:o("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true."),FST_ERR_SEND_INSIDE_ONERR:o("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:o("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:o("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:o("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:o("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_SCH_MISSING_ID:o("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:o("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_DUPLICATE:o("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:o("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:o("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_PROMISE_NOT_FULFILLED:o("FST_ERR_PROMISE_NOT_FULFILLED","Promise may not be fulfilled with 'undefined' when statusCode is not 204"),FST_ERR_HTTP2_INVALID_VERSION:o("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:o("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_BAD_URL:o("FST_ERR_BAD_URL","'%s' is not a valid url component",400),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:o("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:o("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400),FST_ERR_REOPENED_CLOSE_SERVER:o("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:o("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_PLUGIN_VERSION_MISMATCH:o("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed")};e.exports=n},76239:(e,t,r)=>{"use strict";const o=r(22929),n=r(80930),a=r(46911),i=r(86985),{kRoutePrefix:s,kCanSetNotFoundHandler:c,kFourOhFourLevelInstance:l,kReply:u,kRequest:p,kContentTypeParser:d,kBodyLimit:h,kLogLevel:f,kFourOhFourContext:m,kHooks:v,kErrorHandler:g}=r(78731),{lifecycleHooks:y}=r(77130),b={config:{},onSend:[],onError:[]};e.exports=function(e){const{logger:t,genReqId:r}=e,w=o({onBadUrl:function(e,o,i){const s=r(o),c=t.child({reqId:s}),u=this[l][m],p=new a(s,null,o,null,c,u),d=new n(i,p,c);x(p,d)},defaultRoute:function(e,o){const i=r(e),s=t.child({reqId:i});s.info({req:e},"incoming request");const c=new a(i,null,e,null,s,b),l=new n(o,c,s);c.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),c.log.warn(w.prettyPrint()),l.code(404).send(new Error("Not Found"))}});let x=null;return{router:w,setNotFoundHandler:function(e,t,r,o){void 0===this[c]&&(this[c]=!0);void 0===this[m]&&(this[m]=null);const n=this,a=this[s]||"/";if(!1===this[c])throw new Error(`Not found handler already set for Fastify instance with prefix: '${a}'`);"object"==typeof e&&(e.preHandler&&(Array.isArray(e.preHandler)?e.preHandler=e.preHandler.map((e=>e.bind(n))):e.preHandler=e.preHandler.bind(n)),e.preValidation&&(Array.isArray(e.preValidation)?e.preValidation=e.preValidation.map((e=>e.bind(n))):e.preValidation=e.preValidation.bind(n)));"function"==typeof e&&(t=e,e=void 0);e=e||{},t?(this[l][c]=!1,t=t.bind(this),x=t):(t=k,x=k);this.after(((n,i)=>{_.call(this,a,e,t,r,o),i(n)}))},setContext:function(e,t){const r=Object.assign({},e[m]);r.onSend=t.onSend,t[m]=r},arrange404:function(e){e[l]=e,e[c]=!0,w.onBadUrl=w.onBadUrl.bind(e)}};function k(e,t){const{url:r,method:o}=e.raw,n=`Route ${o}:${r} not found`;e.log.info(n),t.code(404).send({message:n,error:"Not Found",statusCode:404})}function _(e,t,r,o,n){const a=new i(t.schema,r,this[u],this[p],this[d],t.config||{},this[g],this[h],this[f]);o.once("preReady",(()=>{const e=this[m];for(const r of y){const o=this[v][r].concat(t[r]||[]).map((e=>e.bind(this)));e[r]=o.length?o:null}})),null===this[m]||"/"!==e?(this[l][m]=a,w.all(e+(e.endsWith("/")?"*":"/*"),n,a),w.all(e,n,a)):Object.assign(this[m],a)}}},55921:(e,t,r)=>{"use strict";const{validate:o}=r(57223),{hookRunner:n,hookIterator:a}=r(77130),i=r(30987),{kReplyIsError:s}=r(78731);function c(e,t){try{null!==t.context.preValidation?n(t.context.preValidation,a,e,t,l):l(null,e,t)}catch(r){l(r,e,t)}}function l(e,t,r){if(!0===r.sent||!0===r.raw.writableEnded||!1===r.raw.writable)return;if(null!=e)return void r.send(e);const i=o(r.context,t);if(i){if(!1===r.context.attachValidation)return void r.code(400).send(i);r.request.validationError=i}null!==r.context.preHandler?n(r.context.preHandler,a,t,r,u):u(null,t,r)}function u(e,t,r){if(r.sent||!0===r.raw.writableEnded||!1===r.raw.writable)return;if(null!=e)return void r.send(e);let o;try{o=r.context.handler(t,r)}catch(e){return e instanceof Error||(r[s]=!0),void r.send(e)}void 0!==o&&(null!==o&&"function"==typeof o.then?i(o,r):r.send(o))}e.exports=function(e,t,r){if(!0===r.sent)return;if(null!=e)return void r.send(e);const o=t.raw.method,n=t.headers;if("GET"===o||"HEAD"===o)return void c(t,r);const a=n["content-type"];"POST"!==o&&"PUT"!==o&&"PATCH"!==o?"OPTIONS"!==o&&"DELETE"!==o?r.code(404).send(new Error("Not Found")):void 0===a||void 0===n["transfer-encoding"]&&void 0===n["content-length"]?c(t,r):r.context.contentTypeParser.run(a,c,t,r):void 0===a?void 0!==n["transfer-encoding"]||"0"!==n["content-length"]&&void 0!==n["content-length"]?r.context.contentTypeParser.run("",c,t,r):c(t,r):r.context.contentTypeParser.run(a,c,t,r)},e.exports[Symbol.for("internals")]={handler:c,preHandlerCallback:u}},12265:e=>{"use strict";function t(e,t,r,o){if(void 0===r)return t.header("content-length","0"),o(null,null);if("function"==typeof r.resume)return r.on("error",(e=>{t.log.error({err:e},"Error on Stream found for HEAD route")})),r.resume(),o(null,null);const n=""+Buffer.byteLength(r);t.header("content-length",n),o(null,null)}e.exports={parseHeadOnSendHandlers:function(e){return null==e?t:Array.isArray(e)?[...e,t]:[e,t]}}},77130:(e,t,r)=>{"use strict";const o=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"],n=o.concat(["onRoute","onRegister","onReady","onClose"]),{FST_ERR_HOOK_INVALID_TYPE:a,FST_ERR_HOOK_INVALID_HANDLER:i,FST_ERR_SEND_UNDEFINED_ERR:s}=r(81907),{kReplyIsError:c,kChildren:l,kHooks:u}=r(78731);function p(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onTimeout=[]}p.prototype.validate=function(e,t){if("string"!=typeof e)throw new a;if("function"!=typeof t)throw new i;if(-1===n.indexOf(e))throw new Error(`${e} hook not supported!`)},p.prototype.add=function(e,t){this.validate(e,t),this[e].push(t)},e.exports={Hooks:p,buildHooks:function(e){const t=new p;return t.onRequest=e.onRequest.slice(),t.preParsing=e.preParsing.slice(),t.preValidation=e.preValidation.slice(),t.preSerialization=e.preSerialization.slice(),t.preHandler=e.preHandler.slice(),t.onSend=e.onSend.slice(),t.onResponse=e.onResponse.slice(),t.onError=e.onError.slice(),t.onRoute=e.onRoute.slice(),t.onRegister=e.onRegister.slice(),t.onTimeout=e.onTimeout.slice(),t.onReady=[],t},hookRunner:function(e,t,r,o,n){let a=0;function i(s){if(s||a===e.length)return void n(s,r,o);let c;try{c=t(e[a++],r,o,i)}catch(e){return void i(e)}c&&"function"==typeof c.then&&c.then(l,u)}function l(){i()}function u(e){e?e instanceof Error||(o[c]=!0):e=new s,n(e,r,o)}i()},onSendHookRunner:function(e,t,r,o,n){let a=0;function i(l,u){if(l)return void n(l,t,r,o);if(void 0!==u&&(o=u),a===e.length){try{n(null,t,r,o)}catch(l){c(l)}return}let p;try{p=e[a++](t,r,o,i)}catch(e){return void i(e)}p&&"function"==typeof p.then&&p.then(s,c)}function s(e){i(null,e)}function c(e){n(e,t,r,o)}i()},hookIterator:function(e,t,r,o){if(!0!==r.sent)return e(t,r,o)},hookRunnerApplication:function e(t,r,o,n){const a=o[u][t];let i=0,s=0;function c(e){e?n(e):n()}!function n(u){if(u)return void c(u);if(i===a.length&&s===o[l].length)return void(0===i&&0===s?c():r((function(e,t){c(e),t(e)})));if(i===a.length&&s<o[l].length){const a=o[l][s++];return void e(t,r,a,n)}r(function(e,t){return function(r,o){if(r)return void o(r);if(1===e.length){try{e.call(t,o)}catch(e){o(e)}return}const n=e.call(t);n&&"function"==typeof n.then?n.then(o,o):o(r)}}(a[i++],o)),n()}()},lifecycleHooks:o,supportedHooks:n}},53655:(e,t,r)=>{"use strict";const o=r(75626),n=r(89844)({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:a}=r(81907);function i(e){const t=Object.getOwnPropertyNames(e);for(const r of t){const t=e[r];(!ArrayBuffer.isView(t)||t instanceof DataView)&&(e[r]=t&&"object"==typeof t?i(t):t)}return Object.freeze(e)}e.exports=function(e){const t=n(e);if(!o(t)){const e=new a(JSON.stringify(o.errors.map((e=>e.message))));throw e.errors=o.errors,e}return i(t)},e.exports.defaultInitOptions=o.defaultInitOptions,e.exports.utils={deepFreezeObject:i}},53772:(e,t,r)=>{"use strict";const o=r(39847),n=r(73125),{serializersSym:a}=n.symbols,{FST_ERR_LOG_INVALID_DESTINATION:i}=r(81907);function s(e,t){if(t=t||e.stream,delete e.stream,t&&e.file)throw new i;e.file&&(t=n.destination(e.file),delete e.file);const r=e.logger,o=e.genReqId;let s=null;return r?(e.logger=void 0,e.genReqId=void 0,r[a]&&(e.serializers=Object.assign({},e.serializers,r[a])),s=r.child({},e),e.logger=r,e.genReqId=o):s=n(e,t),s}const c={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:n.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};e.exports={createLogger:function(e){if(function(e){if(!e)return!1;let t=!0;const r=["info","error","debug","fatal","warn","trace","child"];for(let o=0;o<r.length;o+=1)if(!e[r[o]]||"function"!=typeof e[r[o]]){t=!1;break}return t}(e.logger)){return{logger:s({logger:e.logger,serializers:Object.assign({},c,e.logger.serializers)}),hasLogger:!0}}if(e.logger){const t={};"[object Object]"===Object.prototype.toString.call(e.logger)&&Reflect.ownKeys(e.logger).forEach((r=>{Object.defineProperty(t,r,{value:e.logger[r],writable:!0,enumerable:!0,configurable:!0})})),t.level=t.level||"info",t.serializers=Object.assign({},c,t.serializers),e.logger=t;return{logger:s(e.logger),hasLogger:!0}}{const e=o;return e.child=()=>e,{logger:e,hasLogger:!1}}},serializers:c,now:function(){const e=process.hrtime();return 1e3*e[0]+e[1]/1e6}}},48133:e=>{"use strict";e.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has:()=>!0}}},81155:(e,t,r)=>{"use strict";const{kAvvioBoot:o,kChildren:n,kRoutePrefix:a,kLogLevel:i,kLogSerializers:s,kHooks:c,kSchemaController:l,kContentTypeParser:u,kReply:p,kRequest:d,kFourOhFour:h,kPluginNameChain:f}=r(78731),m=r(80930),v=r(46911),g=r(35728),y=r(61596),{buildHooks:b}=r(77130),w=r(47698);e.exports=function(e,t,r){if(w.registerPlugin.call(e,t))return e[f].push(w.getDisplayName(t)),e;const x=Object.create(e);e[n].push(x),x.ready=e[o].bind(x),x[n]=[],x[p]=m.buildReply(x[p]),x[p].prototype.server=x,x[d]=v.buildRequest(x[d]),x[d].prototype.server=x,x[u]=y.helpers.buildContentTypeParser(x[u]),x[c]=b(x[c]),x[a]=function(e,t){if(!t)return e;e.endsWith("/")&&"/"===t[0]?t=t.slice(1):"/"!==t[0]&&(t="/"+t);return e+t}(x[a],r.prefix),x[i]=r.logLevel||x[i],x[l]=g.buildSchemaController(e[l]),x.getSchema=x[l].getSchema.bind(x[l]),x.getSchemas=x[l].getSchemas.bind(x[l]),x[w.registeredPlugins]=Object.create(x[w.registeredPlugins]),x[f]=[w.getPluginName(t)||w.getFuncPreview(t)],(x[s]||r.logSerializers)&&(x[s]=Object.assign(Object.create(x[s]),r.logSerializers)),r.prefix&&x[h].arrange404(x);for(const e of x[c].onRegister)e.call(this,x,r);return x}},47698:(e,t,r)=>{"use strict";const o=r(84675),n=r(42613),a=Symbol.for("registered-plugin"),{kTestInternals:i}=r(78731),{exist:s,existReply:c,existRequest:l}=r(89595),{FST_ERR_PLUGIN_VERSION_MISMATCH:u}=r(81907);function p(e){return e[Symbol.for("plugin-meta")]}function d(e){return e[Symbol.for("fastify.display-name")]}function h(e){return!!e[Symbol.for("skip-override")]}function f(e){const t=p(e);if(!t)return;const r=t.dependencies;r&&(n(Array.isArray(r),"The dependencies should be an array of strings"),r.forEach((e=>{n(this[a].indexOf(e)>-1,`The dependency '${e}' of plugin '${t.name}' is not registered`)})))}function m(e){const t=p(e);if(!t)return;const{decorators:r,name:o}=t;r&&(r.fastify&&g(this,"Fastify",r.fastify,o),r.reply&&g(this,"Reply",r.reply,o),r.request&&g(this,"Request",r.request,o))}const v={Fastify:s,Request:l,Reply:c};function g(e,t,r,o){n(Array.isArray(r),"The decorators should be an array of strings"),r.forEach((r=>{const n="string"==typeof o?` required by '${o}'`:"";if(!v[t].call(e,r))throw new Error(`The decorator '${r}'${n} is not present in ${t}`)}))}function y(e){const t=p(e);if(!t)return;const r=t.fastify;if(r&&!o.satisfies(this.version,r))throw new u(t.name,r,this.version)}function b(e){const t=p(e);if(!t)return;const r=t.name;r&&this[a].push(r)}e.exports={getPluginName:function(e){const t=d(e);if(t)return t;const o=r.c,n=Object.keys(o);for(let t=0;t<n.length;t++){const r=n[t];if(o[r].exports===e)return r}return e.name?e.name:null},getFuncPreview:function(e){return e.toString().split("\n").slice(0,2).map((e=>e.trim())).join(" -- ")},registeredPlugins:a,getDisplayName:d,registerPlugin:function(e){return b.call(this,e),y.call(this,e),m.call(this,e),f.call(this,e),h(e)}},e.exports[i]={shouldSkipOverride:h,getMeta:p,checkDecorators:m,checkDependencies:f}},80930:(e,t,r)=>{"use strict";const o=r(2203).finished,n=r(58611).STATUS_CODES,a=r(10061),i=r(84052),{kSchemaResponse:s,kFourOhFourContext:c,kReplyErrorHandlerCalled:l,kReplySent:u,kReplySentOverwritten:p,kReplyStartTime:d,kReplyEndTime:h,kReplySerializer:f,kReplySerializerDefault:m,kReplyIsError:v,kReplyHeaders:g,kReplyTrailers:y,kReplyHasStatusCode:b,kReplyIsRunningOnErrorHook:w,kDisableRequestLogging:x}=r(78731),{hookRunner:k,hookIterator:_,onSendHookRunner:E}=r(77130),S=r(55921)[Symbol.for("internals")],P=r(53772).now,T=r(30987),O=i({type:"object",properties:{statusCode:{type:"number"},code:{type:"string"},error:{type:"string"},message:{type:"string"}}}),j={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:R,FST_ERR_REP_ALREADY_SENT:I,FST_ERR_REP_SENT_VALUE:C,FST_ERR_SEND_INSIDE_ONERR:A,FST_ERR_BAD_STATUS_CODE:N,FST_ERR_BAD_TRAILER_NAME:$,FST_ERR_BAD_TRAILER_VALUE:L}=r(81907),D=r(5793);function z(e,t,r){this.raw=e,this[u]=!1,this[f]=null,this[l]=!1,this[v]=!1,this[w]=!1,this.request=t,this[g]={},this[y]=null,this[b]=!1,this[d]=void 0,this.log=r}z.props=[],Object.defineProperties(z.prototype,{context:{get(){return this.request.context}},res:{get(){return D.emit("FSTDEP002"),this.raw}},sent:{enumerable:!0,get(){return this[u]},set(e){if(!0!==e)throw new C;if(this[u])throw new I;this[p]=!0,this[u]=!0}},statusCode:{get(){return this.raw.statusCode},set(e){this.code(e)}},server:{value:null,writable:!0}}),z.prototype.hijack=function(){return this[u]=!0,this},z.prototype.send=function(e){if(!0===this[w])throw new A;if(this[u])return this.log.warn({err:new I},"Reply already sent"),this;if(e instanceof Error||!0===this[v])return G(this,e,M),this;if(void 0===e)return M(this,e),this;const t=this.getHeader("content-type"),r=void 0!==t;if(null!==e){if(Buffer.isBuffer(e)||"function"==typeof e.pipe)return!1===r&&(this[g]["content-type"]=j.OCTET),M(this,e),this;if(!1===r&&"string"==typeof e)return this[g]["content-type"]=j.PLAIN,M(this,e),this}if(null!==this[f]){if("string"!=typeof e)return q(this,e),this;e=this[f](e)}else if(!1===r||t.indexOf("json")>-1){if(!1===r)this[g]["content-type"]=j.JSON;else if(-1===t.indexOf("charset"))if(t.indexOf("/json")>-1)this[g]["content-type"]=j.JSON;else{const e=this[g]["content-type"],t=e.substring(e.indexOf("/"),e.indexOf("json")+4);this[g]["content-type"]=j.JSON.replace("/json",t)}if("string"!=typeof e)return q(this,e),this}return M(this,e),this},z.prototype.getHeader=function(e){e=e.toLowerCase();const t=this.raw;let r=this[g][e];return void 0===r&&t.hasHeader(e)&&(r=t.getHeader(e)),r},z.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[g]}},z.prototype.hasHeader=function(e){return e=e.toLowerCase(),void 0!==this[g][e]||this.raw.hasHeader(e)},z.prototype.removeHeader=function(e){return delete this[g][e.toLowerCase()],this},z.prototype.header=function(e,t){const r=e.toLowerCase();return t=void 0===t?"":t,this[g][r]&&"set-cookie"===r?("string"==typeof this[g][r]&&(this[g][r]=[this[g][r]]),Array.isArray(t)?Array.prototype.push.apply(this[g][r],t):this[g][r].push(t)):this[g][r]=t,this},z.prototype.headers=function(e){const t=Object.keys(e);for(var r=0;r!==t.length;++r){const o=t[r];this.header(o,e[o])}return this};const B=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);function q(e,t){null!==e.context.preSerialization?E(e.context.preSerialization,e.request,e,t,F):F(null,e.request,e,t)}function F(e,t,r,o){if(null==e){try{o=null!==r[f]?r[f](o):r.context&&r.context[m]?r.context[m](o,r.raw.statusCode):X(r.context,o,r.raw.statusCode)}catch(e){return function(e,t){e.serialization=t.context.config}(e,r),void G(r,e)}a(o),M(r,o)}else G(r,e)}function M(e,t){null!==e.context.onSend?(e[u]=!0,E(e.context.onSend,e.request,e,t,U)):H(e,t)}function U(e,t,r,o){null!=e?G(r,e):H(r,o)}function H(e,t){const r=e.raw,n=e.request,a=r.statusCode;if(null!==e[y]){const t=Object.keys(e[y]);let r="";for(const o of t)"function"==typeof e[y][o]&&(r+=" ",r+=o);e.header("Transfer-Encoding","chunked"),e.header("Trailer",r.trim())}if(null==t)return e[u]=!0,a>=200&&204!==a&&304!==a&&"HEAD"!==n.method&&null===e[y]&&(e[g]["content-length"]="0"),r.writeHead(a,e[g]),K(t,r,e),void r.end(null,null,null);if("function"==typeof t.pipe)return e[u]=!0,void function(e,t,r){let n=!0,a=!1;if(function(e,t,r){if(null===r[y])return;e.on("end",(()=>K(null,t,r)))}(e,t,r),o(e,{readable:!0,writable:!1},(function(e){n=!1,null!=e&&(t.headersSent?(a||(a=!0,V(r.log,e,t)),t.destroy()):G(r,e))})),o(t,(function(o){n&&(null!=o&&t.headersSent&&!a&&(a=!0,V(r.log,o,t)),"function"==typeof e.destroy?e.destroy():"function"==typeof e.close?e.close(Z):"function"==typeof e.abort?e.abort():r.log.warn("stream payload does not end properly"))})),t.headersSent)r.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(const e in r[g])t.setHeader(e,r[g][e]);e.pipe(t)}(t,r,e);if("string"!=typeof t&&!Buffer.isBuffer(t))throw new R(typeof t);null===e[y]&&(e[g]["content-length"]?"HEAD"!==n.raw.method&&e[g]["content-length"]!==Buffer.byteLength(t)&&(e[g]["content-length"]=""+Buffer.byteLength(t)):e[g]["content-length"]=""+Buffer.byteLength(t)),e[u]=!0,r.writeHead(a,e[g]),r.write(t),K(t,r,e),r.end(null,null,null)}function V(e,t,r){"ERR_STREAM_PREMATURE_CLOSE"===t.code?e[x]||e.info({res:r},"stream closed prematurely"):e.warn({err:t},"response terminated with an error with headers already sent")}function K(e,t,r){if(null===r[y])return;const o=Object.keys(r[y]),n={};for(const t of o)"function"==typeof r[y][t]&&(n[t]=r[y][t](r,e));t.addTrailers(n)}function G(e,t,r){e[u]=!0,null!==e.context.onError&&!0===e[l]?(e[w]=!0,E(e.context.onError,e.request,e,t,(()=>W(e,t,r)))):W(e,t,r)}function W(e,t,r){e[w]=!1;const o=e.raw;let i=o.statusCode;i=i>=400?i:500,null!=t&&(void 0!==t.headers&&e.headers(t.headers),t.status>=400?i=t.status:t.statusCode>=400&&(i=t.statusCode)),o.statusCode=i;const s=e.context.errorHandler;if(s&&!1===e[l]){e[u]=!1,e[v]=!1,e[l]=!0,e.removeHeader("content-length");const r=s(t,e.request,e);return void(void 0!==r&&(null!==r&&"function"==typeof r.then?T(r,e):e.send(r)))}let c;try{const r=Q(e.context,i);if(c=!1===r?O({error:n[i+""],code:t.code,message:t.message||"",statusCode:i}):r(Object.create(t,{error:{value:n[i+""]},message:{value:t.message||""},statusCode:{value:i}})),!1!==r&&"string"!=typeof c)throw new R(typeof c)}catch(t){e.log.error({err:t,statusCode:o.statusCode},"The serializer for the given status code failed"),o.statusCode=500,c=O({error:n[500],code:t.code,message:t.message,statusCode:500})}a(c),e[g]["content-type"]=j.JSON,e[g]["content-length"]=""+Buffer.byteLength(c),r?r(e,c):(e[u]=!0,o.writeHead(o.statusCode,e[g]),o.end(c))}function J(e,t,r,o){return e(t,r,o)}function Y(e,t,r){if(r.log[x])return;const o=r.getResponseTime();null==e?r.log.info({res:r,responseTime:o},"request completed"):r.log.error({res:r,err:e,responseTime:o},"request errored")}function X(e,t,r){const o=Q(e,r);return o?o(t):JSON.stringify(t)}function Q(e,t){const r=e[s];if(!r)return!1;if(r[t])return r[t];const o=(t+"")[0]+"xx";return!!r[o]&&r[o]}function Z(){}z.prototype.trailer=function(e,t){if(e=e.toLowerCase(),B.has(e))throw new $(e);if("function"!=typeof t)throw new L(e,typeof t);return null===this[y]&&(this[y]={}),this[y][e]=t,this},z.prototype.hasTrailer=function(e){return null!==this[y]&&void 0!==this[y][e.toLowerCase()]},z.prototype.removeTrailer=function(e){return null===this[y]||(this[y][e.toLowerCase()]=void 0),this},z.prototype.code=function(e){const t=parseInt(e);if(isNaN(t)||t<100||t>600)throw new N(e||String(e));return this.raw.statusCode=t,this[b]=!0,this},z.prototype.status=z.prototype.code,z.prototype.serialize=function(e){return null!==this[f]?this[f](e):this.context&&this.context[m]?this.context[m](e,this.raw.statusCode):X(this.context,e,this.raw.statusCode)},z.prototype.serializer=function(e){return this[f]=e,this},z.prototype.type=function(e){return this[g]["content-type"]=e,this},z.prototype.redirect=function(e,t){"string"==typeof e&&(t=e,e=this[b]?this.raw.statusCode:302),this.header("location",t).code(e).send()},z.prototype.callNotFound=function(){!function(e){if(e[u]=!1,e[v]=!1,null===e.context[c])return e.log.warn("Trying to send a NotFound error inside a 404 handler. Sending basic 404 response."),void e.code(404).send("404 Not Found");e.request.context=e.context[c],null!==e.context.preHandler?k(e.context.preHandler,_,e.request,e,S.preHandlerCallback):S.preHandlerCallback(null,e.request,e)}(this)},z.prototype.getResponseTime=function(){let e=0;return void 0!==this[d]&&(e=(this[h]||P())-this[d]),e},z.prototype.then=function(e,t){this.sent?e():o(this.raw,(r=>{r&&"ERR_STREAM_PREMATURE_CLOSE"!==r.code?t?t(r):this.log&&this.log.warn("unhandled rejection on reply.then"):e()}))},e.exports=z,e.exports.buildReply=function(e){const t=[...e.props];function r(e,r,o){var n;this.raw=e,this[v]=!1,this[l]=!1,this[u]=!1,this[p]=!1,this[f]=null,this.request=r,this[g]={},this[y]=null,this[d]=void 0,this[h]=void 0,this.log=o;for(var a=0;a<t.length;a++)this[(n=t[a]).key]=n.value}return r.prototype=new e,r.props=t,r},e.exports.setupResponseListeners=function(e){e[d]=P();const t=r=>{e[h]=P(),e.raw.removeListener("finish",t),e.raw.removeListener("error",t);const o=e.context;o&&null!==o.onResponse?k(o.onResponse,J,e.request,e,Y):Y(r,e.request,e)};e.raw.on("finish",t),e.raw.on("error",t)}},63747:e=>{"use strict";e.exports=function(){let e=0;return function(t){return e=e+1&2147483647,`req-${e.toString(36)}`}}},46911:(e,t,r)=>{"use strict";const o=r(21729),n=r(84675),a=r(5793);function i(e,t,r,o,n,a){this.id=e,this.context=a,this.params=t,this.raw=r,this.query=o,this.log=n,this.body=null}function s(e){const t=[...e.props];function r(e,r,o,n,a,i){var s;this.id=e,this.context=i,this.params=r,this.raw=o,this.query=n,this.log=a,this.body=null;for(var c=0;c<t.length;c++)this[(s=t[c]).key]=s.value}return r.prototype=new e,r.props=t,r}function c(e){const t=e.lastIndexOf(",");return-1===t?e.trim():e.slice(t+1).trim()}i.props=[],Object.defineProperties(i.prototype,{req:{get(){return a.emit("FSTDEP001"),this.raw}},url:{get(){return this.raw.url}},method:{get(){return this.raw.method}},routerPath:{get(){return this.context.config.url}},routerMethod:{get(){return this.context.config.method}},is404:{get(){return void 0===this.context.config.url}},connection:{get(){return n.gte(process.versions.node,"13.0.0")&&a.emit("FSTDEP005"),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(e){this.additionalHeaders=e}},server:{value:null,writable:!0}}),e.exports=i,e.exports.buildRequest=function(e,t){return t?function(e,t){const r=s(e),n=function(e){if("function"==typeof e)return e;if(!0===e)return function(){return!0};if("number"==typeof e)return function(t,r){return r<e};if("string"==typeof e){const t=e.split(",").map((e=>e.trim()));return o.compile(t)}return o.compile(e)}(t);return Object.defineProperties(r.prototype,{ip:{get(){return o(this.raw,n)}},ips:{get(){return o.all(this.raw,n)}},hostname:{get(){return void 0!==this.ip&&this.headers["x-forwarded-host"]?c(this.headers["x-forwarded-host"]):this.headers.host||this.headers[":authority"]}},protocol:{get(){return this.headers["x-forwarded-proto"]?c(this.headers["x-forwarded-proto"]):this.socket?this.socket.encrypted?"https":"http":void 0}}}),r}(e,t):s(e)}},38779:(e,t,r)=>{"use strict";const o=r(22929),n=r(86985),a=r(55921),{hookRunner:i,hookIterator:s,lifecycleHooks:c}=r(77130),l=["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS"],{normalizeSchema:u}=r(26434),{parseHeadOnSendHandlers:p}=r(12265),d=r(5793),{kRequestAcceptVersion:h}=r(78731),{compileSchemasForValidation:f,compileSchemasForSerialization:m}=r(57223),{FST_ERR_SCH_VALIDATION_BUILD:v,FST_ERR_SCH_SERIALIZATION_BUILD:g,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:y,FST_ERR_INVALID_URL:b}=r(81907),{kRoutePrefix:w,kLogLevel:x,kLogSerializers:k,kHooks:_,kHooksDeprecatedPreParsing:E,kSchemaController:S,kOptions:P,kContentTypeParser:T,kReply:O,kReplySerializerDefault:j,kReplyIsError:R,kRequest:I,kRequestPayloadStream:C,kDisableRequestLogging:A,kSchemaErrorFormatter:N,kErrorHandler:$}=r(78731);function L(){const{context:e,request:t,reply:r}=this._meta;i(e.onTimeout,s,t,r,q)}function D(e){if(void 0!==e&&(!Number.isInteger(e)||e<=0))throw new TypeError(`'bodyLimit' option must be an integer > 0. Got '${e}'`)}function z(e,t,r){!0!==r.sent&&(null==e?(t[C]=t.raw,null!==r.context.preParsing?function(e,t,r,o){let n=0;function a(c,l){if(r.sent)return;if(void 0!==l&&(t[C]=l),c||n===e.length)return!c||c instanceof Error||(r[R]=!0),void o(c,t,r);const u=e[n++];let p;try{p=u[E]?u(t,r,a):u(t,r,t[C],a)}catch(e){return void a(e)}p&&"function"==typeof p.then&&p.then(i,s)}function i(e){a(null,e)}function s(e){a(e)}a(null,t[C])}(r.context.preParsing,t,r,a):a(null,t,r)):r.send(e))}function B(){this.keepAliveConnections.delete(this.socket)}function q(){}e.exports={buildRouting:function(e){const{keepAliveConnections:t}=e,r=o(e.config);let a,R,C,q,F,M,U,H,V,K,G,W,J,Y,X=!1;return{setup(e,t){a=t.avvio,R=t.fourOhFour,M=t.logger,U=t.hasLogger,H=t.setupResponseListeners,V=t.throwIfAlreadyStarted,Y=e.exposeHeadRoutes,C=e.requestIdHeader,q=e.querystringParser,F=e.requestIdLogLabel,K=e.genReqId,G=e.disableRequestLogging,W=e.ignoreTrailingSlash,J=!Object.prototype.hasOwnProperty.call(e,"return503OnClosing")||e.return503OnClosing},routing:r.lookup.bind(r),route:Z,prepareRoute:Q,getDefaultRoute:function(){return r.defaultRoute},setDefaultRoute:function(e){if("function"!=typeof e)throw new y;r.defaultRoute=e},routeHandler:ee,closeRoutes:()=>{X=!0},printRoutes:r.prettyPrint.bind(r)};function Q(e,t,r,o){if("string"!=typeof t)throw new b(typeof t);if(o||"function"!=typeof r){if(o&&"function"==typeof o){if("[object Object]"!==Object.prototype.toString.call(r))throw new Error(`Options for ${e}:${t} route must be an object`);if(r.handler)throw"function"==typeof r.handler?new Error(`Duplicate handler for ${e}:${t} route is not allowed!`):new Error(`Handler for ${e}:${t} route must be a function`)}}else o=r,r={};return r=Object.assign({},r,{method:e,url:t,path:t,handler:o||r&&r.handler}),Z.call(this,r)}function Z(e){const t={...e};if(V("Cannot add route when fastify instance is already started!"),Array.isArray(t.method))for(var o=0;o<t.method.length;++o){const e=t.method[o];if(-1===l.indexOf(e))throw new Error(`${e} method is not supported!`)}else if(-1===l.indexOf(t.method))throw new Error(`${t.method} method is not supported!`);const i=t.url||t.path;if(!t.handler)throw new Error(`Missing handler function for ${t.method}:${i} route.`);if(void 0!==t.errorHandler&&"function"!=typeof t.errorHandler)throw new Error(`Error Handler for ${t.method}:${i} route, if defined, must be a function`);D(t.bodyLimit);const s=this[w];return this.after(((e,r)=>{if("/"===i&&s.length&&"HEAD"!==t.method)switch(t.prefixTrailingSlash){case"slash":h.call(this,{path:i},e,r);break;case"no-slash":h.call(this,{path:""},e,r);break;default:h.call(this,{path:""},e,r),!0!==W&&h.call(this,{path:i,prefixing:!0},e,r)}else i&&"/"===i[0]&&s.endsWith("/")?h.call(this,{path:i.slice(1)},e,r):h.call(this,{path:i},e,r)})),this;function h({path:o,prefixing:i=!1},l,h){const y=s+o;if(t.url=y,t.path=y,t.routePath=o,t.prefix=s,t.logLevel=t.logLevel||this[x],(this[k]||t.logSerializers)&&(t.logSerializers=Object.assign(Object.create(this[k]),t.logSerializers)),null==t.attachValidation&&(t.attachValidation=!1),!1===i)for(const e of this[_].onRoute)try{e.call(this,t)}catch(e){return void h(e)}const b={...t.config,url:y,method:t.method},w=t.constraints||{};t.version&&(d.emit("FSTDEP008"),w.version=t.version);const C=new n(t.schema,t.handler.bind(this),this[O],this[I],this[T],b,t.errorHandler||this[$],t.bodyLimit,t.logLevel,t.logSerializers,t.attachValidation,this[j],t.schemaErrorFormatter||this[N]),A=null!=r.find("HEAD",y,w);try{r.on(t.method,t.url,{constraints:w},ee,C)}catch(e){return void h(e)}const{exposeHeadRoute:L}=t;if((null!=L?L:Y)&&"GET"===e.method&&!A){const e=p(t.onSend);Q.call(this,"HEAD",o,{...t,onSend:e})}else A&&L&&d.emit("FSTDEP007");a.once("preReady",(()=>{for(const e of c){const r=this[_][e].concat(t[e]||[]).map((t=>{const r=t.bind(this);return"preParsing"===e&&t.length===("AsyncFunction"===t.constructor.name?2:3)&&(d.emit("FSTDEP004"),r[E]=!0),r}));C[e]=r.length?r:null}if(R.setContext(this,C),t.schema){C.schema=u(C.schema,this.initialConfig);const e=this[S];!t.validatorCompiler&&(t.schema.body||t.schema.headers||t.schema.querystring||t.schema.params)&&e.setupValidator(this[P]);try{f(C,t.validatorCompiler||e.validatorCompiler)}catch(e){throw new v(t.method,y,e.message)}t.schema.response&&!t.serializerCompiler&&e.setupSerializer(this[P]);try{m(C,t.serializerCompiler||e.serializerCompiler)}catch(e){throw new g(t.method,y,e.message)}}})),h(l)}}function ee(e,r,o,n){if(!0===X&&(2!==e.httpVersionMajor&&(r.once("finish",(()=>e.destroy())),r.setHeader("Connection","close")),J)){const e={"Content-Type":"application/json","Content-Length":"80"};return r.writeHead(503,e),void r.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}')}"keep-alive"===String.prototype.toLowerCase.call(e.headers.connection||"")&&!1===t.has(e.socket)&&(t.add(e.socket),e.socket.on("close",B.bind({keepAliveConnections:t,socket:e.socket}))),void 0!==e.headers[h]&&(e.headers["accept-version"]=e.headers[h],e.headers[h]=void 0);const a=e.headers[C]||K(e),c={[F]:a},l={level:n.logLevel};n.logSerializers&&(l.serializers=n.logSerializers);const u=M.child(c,l);u[A]=G;const p=e.url.indexOf("?"),d=q(p>-1?e.url.slice(p+1):""),f=new n.Request(a,o,e,d,u,n),m=new n.Reply(r,f,u);!1===G&&u.info({req:f},"incoming request"),!0!==U&&null===n.onResponse||H(m),null!==n.onRequest?i(n.onRequest,s,f,m,z):z(null,f,m),null!==n.onTimeout&&(f.raw.socket._meta||f.raw.socket.on("timeout",L),f.raw.socket._meta={context:n,request:f,reply:m})}},validateBodyLimitOption:D}},2528:(e,t,r)=>{"use strict";const o=r(84052);e.exports.serializerCompiler=function(e,t){const r=Object.assign({},t,{schema:e});return function({schema:e}){return o(e,r)}}},35728:(e,t,r)=>{"use strict";const{buildSchemas:o}=r(26434),{serializerCompiler:n}=r(2528),a=r(96717);class i{constructor(e,t){this.opts=t||e&&e.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,e?(this.schemaBucket=this.opts.bucket(e.getSchemas()),this.validatorCompiler=e.getValidatorCompiler(),this.serializerCompiler=e.getSerializerCompiler(),this.parent=e):this.schemaBucket=this.opts.bucket()}add(e){return this.addedSchemas=!0,this.schemaBucket.add(e)}getSchema(e){return this.schemaBucket.getSchema(e)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(e){this.validatorCompiler=e}setSerializerCompiler(e){this.serializerCompiler=e}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(e){void 0!==this.validatorCompiler&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),e.ajv))}setupSerializer(e){void 0!==this.serializerCompiler&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),e.serializerOpts))}}i.buildSchemaController=function(e,t){if(e)return new i(e,t);let r={buildValidator:a(),buildSerializer:n};t&&t.compilersFactory&&(r=Object.assign(r,t.compilersFactory));const s={bucket:t&&t.bucket||o,compilersFactory:r};return new i(void 0,s)},e.exports=i},26434:(e,t,r)=>{"use strict";const o=r(89844)({circles:!1,proto:!0}),{kSchemaVisited:n}=r(78731),a=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:i,FST_ERR_SCH_ALREADY_PRESENT:s,FST_ERR_SCH_DUPLICATE:c}=r(81907),l=["params","body","querystring","query","headers"];function u(e){this.store=e||{}}function p(e,t){return!t||e.$ref||e.oneOf||e.allOf||e.anyOf||e.$merge||e.$patch||e.type||e.properties?e:{type:"object",properties:e}}u.prototype.add=function(e){const t=o(e.isFluentSchema||e.isFluentJSONSchema||e[a]?e.valueOf():e),r=t.$id;if(!r)throw new i;if(this.store[r])throw new s(r);this.store[r]=t},u.prototype.getSchemas=function(){return Object.assign({},this.store)},u.prototype.getSchema=function(e){return this.store[e]},e.exports={buildSchemas:e=>new u(e),normalizeSchema:function(e,t){if(e[n])return e;if(e.query){if(e.querystring)throw new c("querystring");e.querystring=e.query}!function(e){for(const t of l)e[t]&&(e[t].isFluentSchema||e[t][a])&&(e[t]=e[t].valueOf());if(e.response){const t=Object.keys(e.response);for(const r of t)(e.response[r].isFluentSchema||e.response[r][a])&&(e.response[r]=e.response[r].valueOf())}}(e);for(const t of["headers","querystring","params","body"])if("object"==typeof e[t]&&Object.getPrototypeOf(e[t])!==Object.prototype)return e;if(e.body&&(e.body=p(e.body,t.jsonShorthand)),e.headers&&(e.headers=p(e.headers,t.jsonShorthand)),e.querystring&&(e.querystring=p(e.querystring,t.jsonShorthand)),e.params&&(e.params=p(e.params,t.jsonShorthand)),e.response){const r=Object.keys(e.response);for(const o of r)e.response[o]=p(e.response[o],t.jsonShorthand)}return e[n]=!0,e}}},93067:(e,t,r)=>{"use strict";const o=r(42613),n=r(58611),a=r(65692),{kState:i,kOptions:s}=r(78731),{FST_ERR_HTTP2_INVALID_VERSION:c,FST_ERR_REOPENED_CLOSE_SERVER:l,FST_ERR_REOPENED_SERVER:u}=r(81907);function p(){try{return r(85675)}catch(e){throw new c}}function d(){this.close()}e.exports={createServer:function(e,t){o(e,"Missing options"),o(t,"Missing http handler");let r=null;var c;return e.serverFactory?r=e.serverFactory(t,e):e.http2?(r=e.https?p().createSecureServer(e.https,t):p().createServer(t),r.on("session",(c=e.http2SessionTimeout,function(e){e.setTimeout(c,d)}))):(r=e.https?a.createServer(e.https,t):n.createServer(t),r.keepAliveTimeout=e.keepAliveTimeout,r.requestTimeout=e.requestTimeout,e.maxRequestsPerSocket>0&&(r.maxRequestsPerSocket=e.maxRequestsPerSocket)),e.serverFactory||r.setTimeout(e.connectionTimeout),{server:r,listen:function(){const e=e=>{if(0===e.length)return{port:0,host:"localhost"};const t={cb:"function"==typeof e[e.length-1]?e.pop():void 0},r=e[0],o=e.length,n=e[o-1];return"object"==typeof r&&null!==r?(t.backlog=o>1?n:void 0,Object.assign(t,r)):"string"==typeof r&&isNaN(r)?(t.path=r,t.backlog=o>1?n:void 0):(t.port=o>=1&&r?r:0,t.host=o>=2&&e[1]?e[1]:"localhost",t.backlog=o>=3?e[2]:void 0),t},t=e(Array.from(arguments)),o=t.cb,n=e=>{if(r.removeListener("error",n),e)this[i].listening=!1,o(e,null);else{const e=c();o(null,e)}},a=e=>this[i].listening&&this[i].closing?Promise.reject(new l):this[i].listening?Promise.reject(new u):this.ready().then((()=>{let t;const o=new Promise(((e,o)=>{t=e=>{this[i].listening=!1,o(e)},r.once("error",t)})),n=new Promise(((o,n)=>{r.listen(e,(()=>{r.removeListener("error",t),o(c())})),this[i].listening=!0}));return Promise.race([o,n])})),c=()=>{let e=r.address();const t="string"==typeof e;return t||(e=-1===e.address.indexOf(":")?e.address+":"+e.port:"["+e.address+"]:"+e.port),e=(t?"":"http"+(this[s].https?"s":"")+"://")+e,this.log.info("Server listening at "+e),e};if(void 0===o)return a(t);this.ready((e=>null!=e?o(e):this[i].listening&&this[i].closing?o(new l,null):this[i].listening?o(new u,null):(r.once("error",n),r.listen(t,n),void(this[i].listening=!0))))}}}}},78731:e=>{"use strict";const t={kAvvioBoot:Symbol("fastify.avvioBoot"),kChildren:Symbol("fastify.children"),kBodyLimit:Symbol("fastify.bodyLimit"),kRoutePrefix:Symbol("fastify.routePrefix"),kLogLevel:Symbol("fastify.logLevel"),kLogSerializers:Symbol("fastify.logSerializers"),kHooks:Symbol("fastify.hooks"),kHooksDeprecatedPreParsing:Symbol("fastify.hooks.DeprecatedPreParsing"),kSchemaController:Symbol("fastify.schemaController"),kSchemaHeaders:Symbol("headers-schema"),kSchemaParams:Symbol("params-schema"),kSchemaQuerystring:Symbol("querystring-schema"),kSchemaBody:Symbol("body-schema"),kSchemaResponse:Symbol("response-schema"),kSchemaErrorFormatter:Symbol("fastify.schemaErrorFormatter"),kReplySerializerDefault:Symbol("fastify.replySerializerDefault"),kContentTypeParser:Symbol("fastify.contentTypeParser"),kReply:Symbol("fastify.Reply"),kRequest:Symbol("fastify.Request"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kCanSetNotFoundHandler:Symbol("fastify.canSetNotFoundHandler"),kFourOhFour:Symbol("fastify.404"),kFourOhFourLevelInstance:Symbol("fastify.404LogLevelInstance"),kFourOhFourContext:Symbol("fastify.404ContextKey"),kDefaultJsonParse:Symbol("fastify.defaultJSONParse"),kReplySerializer:Symbol("fastify.reply.serializer"),kReplyIsError:Symbol("fastify.reply.isError"),kReplyHeaders:Symbol("fastify.reply.headers"),kReplyTrailers:Symbol("fastify.reply.trailers"),kReplyHasStatusCode:Symbol("fastify.reply.hasStatusCode"),kReplySent:Symbol("fastify.reply.sent"),kReplySentOverwritten:Symbol("fastify.reply.sentOverwritten"),kReplyStartTime:Symbol("fastify.reply.startTime"),kReplyEndTime:Symbol("fastify.reply.endTime"),kReplyErrorHandlerCalled:Symbol("fastify.reply.errorHandlerCalled"),kReplyIsRunningOnErrorHook:Symbol("fastify.reply.isRunningOnErrorHook"),kSchemaVisited:Symbol("fastify.schemas.visited"),kState:Symbol("fastify.state"),kOptions:Symbol("fastify.options"),kDisableRequestLogging:Symbol("fastify.disableRequestLogging"),kPluginNameChain:Symbol("fastify.pluginNameChain"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections")};e.exports=t},57223:(e,t,r)=>{"use strict";const{kSchemaHeaders:o,kSchemaParams:n,kSchemaQuerystring:a,kSchemaBody:i,kSchemaResponse:s}=r(78731);function c(e,t,r){const o=e&&e(t[r]);return!1===o?e.errors:o&&o.error?o.error:(o&&o.value&&(t[r]=o.value),!1)}function l(e,t,r){if(e instanceof Error)return e.validationContext=e.validationContext||t,e;const o=r(e,t);return o.validation=e,o.validationContext=t,o}e.exports={symbols:{bodySchema:i,querystringSchema:a,responseSchema:s,paramsSchema:n,headersSchema:o},compileSchemasForValidation:function(e,t){if(!e.schema)return;const{method:r,url:s}=e.config||{},c=e.schema.headers;if(c&&Object.getPrototypeOf(c)!==Object.prototype)e[o]=t({schema:c,method:r,url:s,httpPart:"headers"});else if(c){const n={};Object.keys(c).forEach((e=>{n[e]=c[e]})),n.required instanceof Array&&(n.required=n.required.map((e=>e.toLowerCase()))),c.properties&&(n.properties={},Object.keys(c.properties).forEach((e=>{n.properties[e.toLowerCase()]=c.properties[e]}))),e[o]=t({schema:n,method:r,url:s,httpPart:"headers"})}e.schema.body&&(e[i]=t({schema:e.schema.body,method:r,url:s,httpPart:"body"})),e.schema.querystring&&(e[a]=t({schema:e.schema.querystring,method:r,url:s,httpPart:"querystring"})),e.schema.params&&(e[n]=t({schema:e.schema.params,method:r,url:s,httpPart:"params"}))},compileSchemasForSerialization:function(e,t){if(!e.schema||!e.schema.response)return;const{method:r,url:o}=e.config||{};e[s]=Object.keys(e.schema.response).reduce((function(n,a){return n[a]=t({schema:e.schema.response[a],url:o,method:r,httpStatus:a}),n}),{})},validate:function(e,t){const r=c(e[n],t,"params");if(r)return l(r,"params",e.schemaErrorFormatter);const s=c(e[i],t,"body");if(s)return l(s,"body",e.schemaErrorFormatter);const u=c(e[a],t,"query");if(u)return l(u,"querystring",e.schemaErrorFormatter);const p=c(e[o],t,"headers");return p?l(p,"headers",e.schemaErrorFormatter):null}}},5793:(e,t,r)=>{"use strict";const o=r(6187)();o.create("FastifyDeprecation","FSTDEP001",'You are accessing the Node.js core request object via "request.req", Use "request.raw" instead.'),o.create("FastifyDeprecation","FSTDEP002",'You are accessing the Node.js core response object via "reply.res", Use "reply.raw" instead.'),o.create("FastifyDeprecation","FSTDEP003","You are using the legacy Content Type Parser function signature. Use the one suggested in the documentation instead."),o.create("FastifyDeprecation","FSTDEP004","You are using the legacy preParsing hook signature. Use the one suggested in the documentation instead."),o.create("FastifyDeprecation","FSTDEP005",'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'),o.create("FastifyDeprecation","FSTDEP006","You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"),o.create("FastifyDeprecation","FSTDEP007",'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'),o.create("FastifyDeprecation","FSTDEP008",'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'),o.create("FastifyDeprecation","FSTDEP009",'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'),e.exports=o},30987:(e,t,r)=>{"use strict";const{kReplyIsError:o,kReplySent:n,kReplySentOverwritten:a}=r(78731),{FST_ERR_PROMISE_NOT_FULFILLED:i}=r(81907);e.exports=function(e,t){e.then((function(e){if(!0!==t[a])if(void 0!==e||204===t.raw.statusCode&&!1===t[n])try{t.send(e)}catch(e){t[n]=!1,t[o]=!0,t.send(e)}else!1===t[n]&&t.log.error({err:new i},"Promise may not be fulfilled with 'undefined' when statusCode is not 204")}),(function(e){!0!==t[a]&&!0!==t.sent?(t[n]=!1,t[o]=!0,t.send(e)):t.log.error({err:e},"Promise errored, but reply.sent = true was set")}))}},57743:(e,t)=>{"use strict";function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},38007:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const n=r(76894),a=r(23776);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return a.Manager}});const i=r(56214);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=o(r(45753)).default("socket.io-client"),c={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const r=n.url(e,t.path||"/socket.io"),o=r.source,i=r.id,l=r.path,u=c[i]&&l in c[i].nsps;let p;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(s("ignoring socket cache for %s",o),p=new a.Manager(o,t)):(c[i]||(s("new io instance for %s",o),c[i]=new a.Manager(o,t)),p=c[i]),r.query&&!t.query&&(t.query=r.queryKey),p.socket(r.path,t)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:a.Manager,Socket:i.Socket,io:l,connect:l});var u=r(85284);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l},23776:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const s=r(4956),c=r(56214),l=a(r(85284)),u=r(25942),p=r(57743),d=r(27285),h=i(r(45753)).default("socket.io-client:manager");class f extends d.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,s.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new p.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||l;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new s.Socket(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=u.on(t,"open",(function(){r.onopen(),e&&e()})),n=u.on(t,"error",(t=>{h("error"),r.cleanup(),r._readyState="closed",this.emitReserved("error",t),e?e(t):r.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;h("connect attempt will timeout after %d",e),0===e&&o();const r=this.setTimeoutFn((()=>{h("connect attempt timed out after %d",e),o(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&r.unref(),this.subs.push((function(){clearTimeout(r)}))}return this.subs.push(o),this.subs.push(n),this}connect(e){return this.open(e)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(u.on(e,"ping",this.onping.bind(this)),u.on(e,"data",this.ondata.bind(this)),u.on(e,"error",this.onerror.bind(this)),u.on(e,"close",this.onclose.bind(this)),u.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){h("error",e),this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r||(r=new c.Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void h("socket %s is still active, skipping close",e)}this._close()}_packet(e){h("writing packet %j",e);const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){h("cleanup"),this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){h("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();h("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(h("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(h("reconnect success"),e.onreconnect())})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((function(){clearTimeout(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=f},25942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,r){return e.on(t,r),function(){e.off(t,r)}}},56214:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const n=r(85284),a=r(25942),i=r(27285),s=o(r(45753)).default("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends i.Emitter{constructor(e,t,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[a.on(e,"open",this.onopen.bind(this)),a.on(e,"packet",this.onpacket.bind(this)),a.on(e,"error",this.onerror.bind(this)),a.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(c.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const r={type:n.PacketType.EVENT,data:t,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++;s("emitting packet with ack id %d",e);const o=t.pop();this._registerAckCallback(e,o),r.id=e}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)?s("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r),this.flags={},this}_registerAckCallback(e,t){const r=this.flags.timeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(s("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));s("event with ack id %d has timed out after %d ms",e,r),t.call(this,new Error("operation has timed out"))}),r);this.acks[e]=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,[null,...e])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){s("transport is open - connecting"),"function"==typeof this.auth?this.auth((e=>{this.packet({type:n.PacketType.CONNECT,data:e})})):this.packet({type:n.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){s("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case n.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.PacketType.EVENT:case n.PacketType.BINARY_EVENT:this.onevent(e);break;case n.PacketType.ACK:case n.PacketType.BINARY_ACK:this.onack(e);break;case n.PacketType.DISCONNECT:this.ondisconnect();break;case n.PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let r=!1;return function(...o){r||(r=!0,s("sending ack %j",o),t.packet({type:n.PacketType.ACK,id:e,data:o}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(s("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):s("bad ack %s",e.id)}onconnect(e){s("socket connected with id %s",e),this.id=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:n.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}t.Socket=l},76894:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const n=r(4956),a=o(r(45753)).default("socket.io-client:url");t.url=function(e,t="",r){let o=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(a("protocol-less url %s",e),e=void 0!==r?r.protocol+"//"+e:"https://"+e),a("parse %s",e),o=n.parse(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const i=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(r&&r.port===o.port?"":":"+o.port),o}},17495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const o=r(94562);function n(e,t){if(!e)return e;if(o.isBinary(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){const r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=n(e[o],t);return r}if("object"==typeof e&&!(e instanceof Date)){const r={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=n(e[o],t));return r}return e}function a(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=a(e[r],t);else if("object"==typeof e)for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=a(e[r],t));return e}t.deconstructPacket=function(e){const t=[],r=e.data,o=e;return o.data=n(r,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=a(e.data,t),e.attachments=void 0,e}},85284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const o=r(27285),n=r(17495),a=r(94562),i=r(45753).default("socket.io-parser");var s;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(s=t.PacketType||(t.PacketType={}));t.Encoder=class{constructor(e){this.replacer=e}encode(e){return i("encoding packet %j",e),e.type!==s.EVENT&&e.type!==s.ACK||!a.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==s.BINARY_EVENT&&e.type!==s.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),i("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=n.deconstructPacket(e),r=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(r),o}};class c extends o.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e)t=this.decodeString(e),t.type===s.BINARY_EVENT||t.type===s.BINARY_ACK?(this.reconstructor=new l(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else{if(!a.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(void 0===s[r.type])throw new Error("unknown packet type "+r.type);if(r.type===s.BINARY_EVENT||r.type===s.BINARY_ACK){const o=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const n=e.substring(o,t);if(n!=Number(n)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(n)}if("/"===e.charAt(t+1)){const o=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}r.nsp=e.substring(o,t)}else r.nsp="/";const o=e.charAt(t+1);if(""!==o&&Number(o)==o){const o=t+1;for(;++t;){const r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(!c.isPayloadValid(r.type,o))throw new Error("invalid payload");r.data=o}return i("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case s.CONNECT:return"object"==typeof t;case s.DISCONNECT:return void 0===t;case s.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case s.EVENT:case s.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case s.ACK:case s.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=c;class l{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},94562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const r="function"==typeof ArrayBuffer,o=Object.prototype.toString,n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function i(e){return r&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||n&&e instanceof Blob||a&&e instanceof File}t.isBinary=i,t.hasBinary=function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,o=t.length;r<o;r++)if(e(t[r]))return!0;return!1}if(i(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0;return!1}},27740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteSocket=t.BroadcastOperator=void 0;const o=r(62079),n=r(57519);class a{constructor(e,t=new Set,r=new Set,o={}){this.adapter=e,this.rooms=t,this.exceptRooms=r,this.flags=o}to(e){const t=new Set(this.rooms);return Array.isArray(e)?e.forEach((e=>t.add(e))):t.add(e),new a(this.adapter,t,this.exceptRooms,this.flags)}in(e){return this.to(e)}except(e){const t=new Set(this.exceptRooms);return Array.isArray(e)?e.forEach((e=>t.add(e))):t.add(e),new a(this.adapter,this.rooms,t,this.flags)}compress(e){const t=Object.assign({},this.flags,{compress:e});return new a(this.adapter,this.rooms,this.exceptRooms,t)}get volatile(){const e=Object.assign({},this.flags,{volatile:!0});return new a(this.adapter,this.rooms,this.exceptRooms,e)}get local(){const e=Object.assign({},this.flags,{local:!0});return new a(this.adapter,this.rooms,this.exceptRooms,e)}timeout(e){const t=Object.assign({},this.flags,{timeout:e});return new a(this.adapter,this.rooms,this.exceptRooms,t)}emit(e,...t){if(o.RESERVED_EVENTS.has(e))throw new Error(`"${e}" is a reserved event name`);const r=[e,...t],a={type:n.PacketType.EVENT,data:r};if(!("function"==typeof r[r.length-1]))return this.adapter.broadcast(a,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags}),!0;const i=r.pop();let s=!1,c=[];const l=setTimeout((()=>{s=!0,i.apply(this,[new Error("operation has timed out"),c])}),this.flags.timeout);let u=-1,p=0,d=0;const h=()=>{s||u!==p||c.length!==d||(clearTimeout(l),i.apply(this,[null,c]))};return this.adapter.broadcastWithAck(a,{rooms:this.rooms,except:this.exceptRooms,flags:this.flags},(e=>{d+=e,p++,h()}),(e=>{c.push(e),h()})),this.adapter.serverCount().then((e=>{u=e,h()})),!0}allSockets(){if(!this.adapter)throw new Error("No adapter for this namespace, are you trying to get the list of clients of a dynamic namespace?");return this.adapter.sockets(this.rooms)}fetchSockets(){return this.adapter.fetchSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags}).then((e=>e.map((e=>e instanceof o.Socket?e:new i(this.adapter,e)))))}socketsJoin(e){this.adapter.addSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}socketsLeave(e){this.adapter.delSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},Array.isArray(e)?e:[e])}disconnectSockets(e=!1){this.adapter.disconnectSockets({rooms:this.rooms,except:this.exceptRooms,flags:this.flags},e)}}t.BroadcastOperator=a;class i{constructor(e,t){this.id=t.id,this.handshake=t.handshake,this.rooms=new Set(t.rooms),this.data=t.data,this.operator=new a(e,new Set([this.id]))}emit(e,...t){return this.operator.emit(e,...t)}join(e){return this.operator.socketsJoin(e)}leave(e){return this.operator.socketsLeave(e)}disconnect(e=!1){return this.operator.disconnectSockets(e),this}}t.RemoteSocket=i},54837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const o=r(57519),n=r(45753),a=r(87016),i=n("socket.io:client");t.Client=class{constructor(e,t){this.sockets=new Map,this.nsps=new Map,this.server=e,this.conn=t,this.encoder=e.encoder,this.decoder=new e._parser.Decoder,this.id=t.id,this.setup()}get request(){return this.conn.request}setup(){this.onclose=this.onclose.bind(this),this.ondata=this.ondata.bind(this),this.onerror=this.onerror.bind(this),this.ondecoded=this.ondecoded.bind(this),this.decoder.on("decoded",this.ondecoded),this.conn.on("data",this.ondata),this.conn.on("error",this.onerror),this.conn.on("close",this.onclose),this.connectTimeout=setTimeout((()=>{0===this.nsps.size?(i("no namespace joined yet, close the client"),this.close()):i("the client has already joined a namespace, nothing to do")}),this.server._connectTimeout)}connect(e,t={}){if(this.server._nsps.has(e))return i("connecting to namespace %s",e),this.doConnect(e,t);this.server._checkNamespace(e,t,(r=>{r?this.doConnect(e,t):(i("creation of namespace %s was denied",e),this._packet({type:o.PacketType.CONNECT_ERROR,nsp:e,data:{message:"Invalid namespace"}}))}))}doConnect(e,t){const r=this.server.of(e),o=r._add(this,t,(()=>{this.sockets.set(o.id,o),this.nsps.set(r.name,o),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}))}_disconnect(){for(const e of this.sockets.values())e.disconnect();this.sockets.clear(),this.close()}_remove(e){if(this.sockets.has(e.id)){const t=this.sockets.get(e.id).nsp.name;this.sockets.delete(e.id),this.nsps.delete(t)}else i("ignoring remove for %s",e.id)}close(){"open"===this.conn.readyState&&(i("forcing transport close"),this.conn.close(),this.onclose("forced server close"))}_packet(e,t={}){if("open"!==this.conn.readyState)return void i("ignoring packet write %j",e);const r=t.preEncoded?e:this.encoder.encode(e);this.writeToEngine(r,t)}writeToEngine(e,t){if(t.volatile&&!this.conn.transport.writable)return void i("volatile packet is discarded since the transport is not currently writable");const r=Array.isArray(e)?e:[e];for(const e of r)this.conn.write(e,t)}ondata(e){try{this.decoder.add(e)}catch(e){i("invalid packet format"),this.onerror(e)}}ondecoded(e){let t,r;if(3===this.conn.protocol){const o=a.parse(e.nsp,!0);t=o.pathname,r=o.query}else t=e.nsp,r=e.data;const n=this.nsps.get(t);n||e.type!==o.PacketType.CONNECT?n&&e.type!==o.PacketType.CONNECT&&e.type!==o.PacketType.CONNECT_ERROR?process.nextTick((function(){n._onpacket(e)})):(i("invalid state (packet type: %s)",e.type),this.close()):this.connect(t,r)}onerror(e){for(const t of this.sockets.values())t._onerror(e);this.conn.close()}onclose(e){i("client close with reason %s",e),this.destroy();for(const t of this.sockets.values())t._onclose(e);this.sockets.clear(),this.decoder.destroy()}destroy(){this.conn.removeListener("data",this.ondata),this.conn.removeListener("error",this.onerror),this.conn.removeListener("close",this.onclose),this.decoder.removeListener("decoded",this.ondecoded),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0)}}},91244:function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Namespace=t.Socket=t.Server=void 0;const s=r(58611),c=r(79896),l=r(43106),u=r(22594),p=r(2203),d=r(16928),h=r(48701),f=r(54837),m=r(24434),v=r(45851);Object.defineProperty(t,"Namespace",{enumerable:!0,get:function(){return v.Namespace}});const g=r(18856),y=r(95841),b=a(r(57519)),w=i(r(45753)),x=r(62079);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return x.Socket}});const k=r(1520),_=r(67985),E=(0,w.default)("socket.io:server"),S=r(53733).rE,P=/\.map/;class T extends k.StrictEventEmitter{constructor(e,t={}){super(),this._nsps=new Map,this.parentNsps=new Map,"object"==typeof e&&e instanceof Object&&!e.listen&&(t=e,e=void 0),this.path(t.path||"/socket.io"),this.connectTimeout(t.connectTimeout||45e3),this.serveClient(!1!==t.serveClient),this._parser=t.parser||b,this.encoder=new this._parser.Encoder,this.adapter(t.adapter||y.Adapter),this.sockets=this.of("/"),this.opts=t,(e||"number"==typeof e)&&this.attach(e)}serveClient(e){return arguments.length?(this._serveClient=e,this):this._serveClient}_checkNamespace(e,t,r){if(0===this.parentNsps.size)return r(!1);const o=this.parentNsps.keys(),n=()=>{const a=o.next();if(a.done)return r(!1);a.value(e,t,((t,o)=>{if(t||!o)return n();if(this._nsps.has(e))return E("dynamic namespace %s already exists",e),r(this._nsps.get(e));const i=this.parentNsps.get(a.value).createChild(e);E("dynamic namespace %s was created",e),this.sockets.emitReserved("new_namespace",i),r(i)}))};n()}path(e){if(!arguments.length)return this._path;this._path=e.replace(/\/$/,"");const t=this._path.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return this.clientPathRegex=new RegExp("^"+t+"/socket\\.io(\\.msgpack|\\.esm)?(\\.min)?\\.js(\\.map)?(?:\\?|$)"),this}connectTimeout(e){return void 0===e?this._connectTimeout:(this._connectTimeout=e,this)}adapter(e){if(!arguments.length)return this._adapter;this._adapter=e;for(const e of this._nsps.values())e._initAdapter();return this}listen(e,t={}){return this.attach(e,t)}attach(e,t={}){if("function"==typeof e){throw new Error("You are trying to attach socket.io to an express request handler function. Please pass a http.Server instance.")}if(Number(e)==e&&(e=Number(e)),"number"==typeof e){E("creating http server and binding to %d",e);const t=e;(e=s.createServer(((e,t)=>{t.writeHead(404),t.end()}))).listen(t)}return Object.assign(t,this.opts),t.path=t.path||this._path,this.initEngine(e,t),this}attachApp(e,t={}){Object.assign(t,this.opts),t.path=t.path||this._path,E("creating uWebSockets.js-based engine with opts %j",t);const r=new h.uServer(t);r.attach(e,t),this.bind(r),this._serveClient&&e.get(`${this._path}/*`,((e,t)=>{if(!this.clientPathRegex.test(t.getUrl()))return void t.setYield(!0);const r=t.getUrl().replace(this._path,"").replace(/\?.*$/,"").replace(/^\//,""),o=P.test(r),n=o?"map":"source",a='"'+S+'"',i="W/"+a,s=t.getHeader("if-none-match");if(s&&(a===s||i===s))return E("serve client %s 304",n),e.writeStatus("304 Not Modified"),void e.end();E("serve client %s",n),e.writeHeader("cache-control","public, max-age=0"),e.writeHeader("content-type","application/"+(o?"json":"javascript")),e.writeHeader("etag",a);const c=d.join(__dirname,"../client-dist/",r);(0,_.serveFile)(e,c)})),(0,_.patchAdapter)(e)}initEngine(e,t){E("creating engine.io instance with opts %j",t),this.eio=(0,h.attach)(e,t),this._serveClient&&this.attachServe(e),this.httpServer=e,this.bind(this.eio)}attachServe(e){E("attaching client serving req handler");const t=e.listeners("request").slice(0);e.removeAllListeners("request"),e.on("request",((r,o)=>{if(this.clientPathRegex.test(r.url))this.serve(r,o);else for(let n=0;n<t.length;n++)t[n].call(e,r,o)}))}serve(e,t){const r=e.url.replace(this._path,"").replace(/\?.*$/,""),o=P.test(r),n=o?"map":"source",a='"'+S+'"',i="W/"+a,s=e.headers["if-none-match"];if(s&&(a===s||i===s))return E("serve client %s 304",n),t.writeHead(304),void t.end();E("serve client %s",n),t.setHeader("Cache-Control","public, max-age=0"),t.setHeader("Content-Type","application/"+(o?"json":"javascript")),t.setHeader("ETag",a),T.sendFile(r,e,t)}static sendFile(e,t,r){const o=(0,c.createReadStream)(d.join(__dirname,"../client-dist/",e)),n=e=>{e&&r.end()};switch(u(t).encodings(["br","gzip","deflate"])){case"br":r.writeHead(200,{"content-encoding":"br"}),o.pipe((0,l.createBrotliCompress)()).pipe(r),(0,p.pipeline)(o,(0,l.createBrotliCompress)(),r,n);break;case"gzip":r.writeHead(200,{"content-encoding":"gzip"}),(0,p.pipeline)(o,(0,l.createGzip)(),r,n);break;case"deflate":r.writeHead(200,{"content-encoding":"deflate"}),(0,p.pipeline)(o,(0,l.createDeflate)(),r,n);break;default:r.writeHead(200),(0,p.pipeline)(o,r,n)}}bind(e){return this.engine=e,this.engine.on("connection",this.onconnection.bind(this)),this}onconnection(e){E("incoming connection with id %s",e.id);const t=new f.Client(this,e);return 3===e.protocol&&t.connect("/"),this}of(e,t){if("function"==typeof e||e instanceof RegExp){const r=new g.ParentNamespace(this);return E("initializing parent namespace %s",r.name),"function"==typeof e?this.parentNsps.set(e,r):this.parentNsps.set(((t,r,o)=>o(null,e.test(t))),r),t&&r.on("connect",t),r}"/"!==String(e)[0]&&(e="/"+e);let r=this._nsps.get(e);return r||(E("initializing namespace %s",e),r=new v.Namespace(this,e),this._nsps.set(e,r),"/"!==e&&this.sockets.emitReserved("new_namespace",r)),t&&r.on("connect",t),r}close(e){for(const e of this.sockets.sockets.values())e._onclose("server shutting down");this.engine.close(),(0,_.restoreAdapter)(),this.httpServer?this.httpServer.close(e):e&&e()}use(e){return this.sockets.use(e),this}to(e){return this.sockets.to(e)}in(e){return this.sockets.in(e)}except(e){return this.sockets.except(e)}send(...e){return this.sockets.emit("message",...e),this}write(...e){return this.sockets.emit("message",...e),this}serverSideEmit(e,...t){return this.sockets.serverSideEmit(e,...t)}allSockets(){return this.sockets.allSockets()}compress(e){return this.sockets.compress(e)}get volatile(){return this.sockets.volatile}get local(){return this.sockets.local}timeout(e){return this.sockets.timeout(e)}fetchSockets(){return this.sockets.fetchSockets()}socketsJoin(e){return this.sockets.socketsJoin(e)}socketsLeave(e){return this.sockets.socketsLeave(e)}disconnectSockets(e=!1){return this.sockets.disconnectSockets(e)}}t.Server=T;Object.keys(m.EventEmitter.prototype).filter((function(e){return"function"==typeof m.EventEmitter.prototype[e]})).forEach((function(e){T.prototype[e]=function(){return this.sockets[e].apply(this.sockets,arguments)}})),e.exports=(e,t)=>new T(e,t),e.exports.Server=T,e.exports.Namespace=v.Namespace,e.exports.Socket=x.Socket},45851:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Namespace=t.RESERVED_EVENTS=void 0;const n=r(62079),a=r(1520),i=o(r(45753)),s=r(27740),c=(0,i.default)("socket.io:namespace");t.RESERVED_EVENTS=new Set(["connect","connection","new_namespace"]);class l extends a.StrictEventEmitter{constructor(e,t){super(),this.sockets=new Map,this._fns=[],this._ids=0,this.server=e,this.name=t,this._initAdapter()}_initAdapter(){this.adapter=new(this.server.adapter())(this)}use(e){return this._fns.push(e),this}run(e,t){const r=this._fns.slice(0);if(!r.length)return t(null);!function o(n){r[n](e,(function(e){return e?t(e):r[n+1]?void o(n+1):t(null)}))}(0)}to(e){return new s.BroadcastOperator(this.adapter).to(e)}in(e){return new s.BroadcastOperator(this.adapter).in(e)}except(e){return new s.BroadcastOperator(this.adapter).except(e)}_add(e,t,r){c("adding socket to nsp %s",this.name);const o=new n.Socket(this,e,t);return this.run(o,(t=>{process.nextTick((()=>{if("open"==e.conn.readyState){if(t)return 3===e.conn.protocol?o._error(t.data||t.message):o._error({message:t.message,data:t.data});this.sockets.set(o.id,o),o._onconnect(),r&&r(),this.emitReserved("connect",o),this.emitReserved("connection",o)}else c("next called after client was closed - ignoring socket")}))})),o}_remove(e){this.sockets.has(e.id)?this.sockets.delete(e.id):c("ignoring remove for %s",e.id)}emit(e,...t){return new s.BroadcastOperator(this.adapter).emit(e,...t)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}serverSideEmit(e,...r){if(t.RESERVED_EVENTS.has(e))throw new Error(`"${e}" is a reserved event name`);return r.unshift(e),this.adapter.serverSideEmit(r),!0}_onServerSideEmit(e){super.emitUntyped.apply(this,e)}allSockets(){return new s.BroadcastOperator(this.adapter).allSockets()}compress(e){return new s.BroadcastOperator(this.adapter).compress(e)}get volatile(){return new s.BroadcastOperator(this.adapter).volatile}get local(){return new s.BroadcastOperator(this.adapter).local}timeout(e){return new s.BroadcastOperator(this.adapter).timeout(e)}fetchSockets(){return new s.BroadcastOperator(this.adapter).fetchSockets()}socketsJoin(e){return new s.BroadcastOperator(this.adapter).socketsJoin(e)}socketsLeave(e){return new s.BroadcastOperator(this.adapter).socketsLeave(e)}disconnectSockets(e=!1){return new s.BroadcastOperator(this.adapter).disconnectSockets(e)}}t.Namespace=l},18856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParentNamespace=void 0;const o=r(45851);class n extends o.Namespace{constructor(e){super(e,"/_"+n.count++),this.children=new Set}_initAdapter(){this.adapter={broadcast:(e,t)=>{this.children.forEach((r=>{r.adapter.broadcast(e,t)}))}}}emit(e,...t){return this.children.forEach((r=>{r.emit(e,...t)})),!0}createChild(e){const t=new o.Namespace(this.server,e);return t._fns=this._fns.slice(0),this.listeners("connect").forEach((e=>t.on("connect",e))),this.listeners("connection").forEach((e=>t.on("connection",e))),this.children.add(t),this.server._nsps.set(e,t),t}fetchSockets(){throw new Error("fetchSockets() is not supported on parent namespaces")}}t.ParentNamespace=n,n.count=0},62079:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.RESERVED_EVENTS=void 0;const n=r(57519),a=o(r(45753)),i=r(1520),s=o(r(74845)),c=r(27740),l=(0,a.default)("socket.io:socket");t.RESERVED_EVENTS=new Set(["connect","connect_error","disconnect","disconnecting","newListener","removeListener"]);class u extends i.StrictEventEmitter{constructor(e,t,r){super(),this.nsp=e,this.client=t,this.data={},this.connected=!1,this.acks=new Map,this.fns=[],this.flags={},this.server=e.server,this.adapter=this.nsp.adapter,3===t.conn.protocol?this.id="/"!==e.name?e.name+"#"+t.id:t.id:this.id=s.default.generateId(),this.handshake=this.buildHandshake(r)}buildHandshake(e){return{headers:this.request.headers,time:new Date+"",address:this.conn.remoteAddress,xdomain:!!this.request.headers.origin,secure:!!this.request.connection.encrypted,issued:+new Date,url:this.request.url,query:this.request._query,auth:e}}emit(e,...r){if(t.RESERVED_EVENTS.has(e))throw new Error(`"${e}" is a reserved event name`);const o=[e,...r],a={type:n.PacketType.EVENT,data:o};if("function"==typeof o[o.length-1]){const e=this.nsp._ids++;l("emitting packet with ack id %d",e),this.registerAckCallback(e,o.pop()),a.id=e}const i=Object.assign({},this.flags);return this.flags={},this.notifyOutgoingListeners(a),this.packet(a,i),!0}registerAckCallback(e,t){const r=this.flags.timeout;if(void 0===r)return void this.acks.set(e,t);const o=setTimeout((()=>{l("event with ack id %d has timed out after %d ms",e,r),this.acks.delete(e),t.call(this,new Error("operation has timed out"))}),r);this.acks.set(e,((...e)=>{clearTimeout(o),t.apply(this,[null,...e])}))}to(e){return this.newBroadcastOperator().to(e)}in(e){return this.newBroadcastOperator().in(e)}except(e){return this.newBroadcastOperator().except(e)}send(...e){return this.emit("message",...e),this}write(...e){return this.emit("message",...e),this}packet(e,t={}){e.nsp=this.nsp.name,t.compress=!1!==t.compress,this.client._packet(e,t)}join(e){return l("join room %s",e),this.adapter.addAll(this.id,new Set(Array.isArray(e)?e:[e]))}leave(e){return l("leave room %s",e),this.adapter.del(this.id,e)}leaveAll(){this.adapter.delAll(this.id)}_onconnect(){l("socket connected - writing packet"),this.connected=!0,this.join(this.id),3===this.conn.protocol?this.packet({type:n.PacketType.CONNECT}):this.packet({type:n.PacketType.CONNECT,data:{sid:this.id}})}_onpacket(e){switch(l("got packet %j",e),e.type){case n.PacketType.EVENT:case n.PacketType.BINARY_EVENT:this.onevent(e);break;case n.PacketType.ACK:case n.PacketType.BINARY_ACK:this.onack(e);break;case n.PacketType.DISCONNECT:this.ondisconnect()}}onevent(e){const t=e.data||[];if(l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const r of e)r.apply(this,t)}this.dispatch(t)}ack(e){const t=this;let r=!1;return function(){if(r)return;const o=Array.prototype.slice.call(arguments);l("sending ack %j",o),t.packet({id:e,type:n.PacketType.ACK,data:o}),r=!0}}onack(e){const t=this.acks.get(e.id);"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),this.acks.delete(e.id)):l("bad ack %s",e.id)}ondisconnect(){l("got disconnect packet"),this._onclose("client namespace disconnect")}_onerror(e){this.listeners("error").length?this.emitReserved("error",e):(console.error("Missing error handler on `socket`."),console.error(e.stack))}_onclose(e){if(!this.connected)return this;l("closing socket - reason %s",e),this.emitReserved("disconnecting",e),this.leaveAll(),this.nsp._remove(this),this.client._remove(this),this.connected=!1,this.emitReserved("disconnect",e)}_error(e){this.packet({type:n.PacketType.CONNECT_ERROR,data:e})}disconnect(e=!1){return this.connected?(e?this.client._disconnect():(this.packet({type:n.PacketType.DISCONNECT}),this._onclose("server namespace disconnect")),this):this}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}get broadcast(){return this.newBroadcastOperator()}get local(){return this.newBroadcastOperator().local}timeout(e){return this.flags.timeout=e,this}dispatch(e){l("dispatching an event %j",e),this.run(e,(t=>{process.nextTick((()=>{if(t)return this._onerror(t);this.connected?super.emitUntyped.apply(this,e):l("ignore packet received after disconnection")}))}))}use(e){return this.fns.push(e),this}run(e,t){const r=this.fns.slice(0);if(!r.length)return t(null);!function o(n){r[n](e,(function(e){return e?t(e):r[n+1]?void o(n+1):t(null)}))}(0)}get disconnected(){return!this.connected}get request(){return this.client.request}get conn(){return this.client.conn}get rooms(){return this.adapter.socketRooms(this.id)||new Set}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}newBroadcastOperator(){const e=Object.assign({},this.flags);return this.flags={},new c.BroadcastOperator(this.adapter,new Set,new Set([this.id]),e)}}t.Socket=u},1520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StrictEventEmitter=void 0;const o=r(24434);class n extends o.EventEmitter{on(e,t){return super.on(e,t)}once(e,t){return super.once(e,t)}emit(e,...t){return super.emit(e,...t)}emitReserved(e,...t){return super.emit(e,...t)}emitUntyped(e,...t){return super.emit(e,...t)}listeners(e){return super.listeners(e)}}t.StrictEventEmitter=n},67985:function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.serveFile=t.restoreAdapter=t.patchAdapter=void 0;const n=r(95841),a=r(79896),i=(0,o(r(45753)).default)("socket.io:adapter-uws"),{addAll:s,del:c,broadcast:l}=n.Adapter.prototype;function u(e,t,r,o){const n=t.conn.id,a=t.conn.transport.socket;r&&(i("subscribe connection %s to topic %s",n,e),a.subscribe(e)),o.forEach((t=>{const r=`${e}${t}`;i("subscribe connection %s to topic %s",n,r),a.subscribe(r)}))}t.patchAdapter=function(e){n.Adapter.prototype.addAll=function(e,t){const r=!this.sids.has(e);s.call(this,e,t);const o=this.nsp.sockets.get(e);o&&("websocket"!==o.conn.transport.name?r&&o.conn.on("upgrade",(()=>{const t=this.sids.get(e);u(this.nsp.name,o,r,t)})):u(this.nsp.name,o,r,t))},n.Adapter.prototype.del=function(e,t){c.call(this,e,t);const r=this.nsp.sockets.get(e);if(r&&"websocket"===r.conn.transport.name){const e=r.conn.id,o=r.conn.transport.socket,n=`${this.nsp.name}${t}`;i("unsubscribe connection %s from topic %s",e,n),o.unsubscribe(n)}},n.Adapter.prototype.broadcast=function(t,r){if(!(r.rooms.size<=1&&0===r.except.size))return void l.call(this,t,r);const o=r.flags||{},n={preEncoded:!0,volatile:o.volatile,compress:o.compress};t.nsp=this.nsp.name;const a=this.encoder.encode(t),s=0===r.rooms.size?this.nsp.name:`${this.nsp.name}${r.rooms.keys().next().value}`;i("fast publish to %s",s),a.forEach((t=>{const r="string"!=typeof t;e.publish(s,r?t:"4"+t,r)})),this.apply(r,(e=>{"websocket"!==e.conn.transport.name&&e.client.writeToEngine(a,n)}))}},t.restoreAdapter=function(){n.Adapter.prototype.addAll=s,n.Adapter.prototype.del=c,n.Adapter.prototype.broadcast=l};t.serveFile=function(e,t){const{size:r}=(0,a.statSync)(t),o=(0,a.createReadStream)(t),n=()=>!o.destroyed&&o.destroy();e.onAborted(n),o.on("data",(t=>{const n=(e=>{const{buffer:t,byteOffset:r,byteLength:o}=e;return t.slice(r,r+o)})(t),a=e.getWriteOffset(),[i,s]=e.tryEnd(n,r);s||i||(o.pause(),e.onWritable((t=>{const[i,s]=e.tryEnd(n.slice(t-a),r);return!s&&i&&o.resume(),i})))})).on("error",(e=>{throw n(),e})).on("end",n)}},27285:(e,t,r)=>{"use strict";function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}r.r(t),r.d(t,{Emitter:()=>o}),o.prototype.on=o.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},o.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+e];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n<o.length;n++)if((r=o[n])===t||r.fn===t){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+e],this},o.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,t)}return this},o.prototype.emitReserved=o.prototype.emit,o.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},o.prototype.hasListeners=function(e){return!!this.listeners(e).length}},53420:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8198:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},55898:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},70081:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},12607:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},87736:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},95040:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},65576:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},37967:e=>{"use strict";e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},55428:e=>{"use strict";e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},87357:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},75376:e=>{"use strict";e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},18480:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},69474:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},81813:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"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":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"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":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"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":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"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":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"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":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"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":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"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":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"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":true},"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":false,"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":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"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":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"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":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"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":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"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":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"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":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"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":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"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":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"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":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"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":false,"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":true,"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":true},"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":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"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":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"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":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"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":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"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":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"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":true,"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":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"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":true},"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":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"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":true,"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":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"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":true},"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":true},"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":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"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":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"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":false},"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":false},"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":false},"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":true},"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":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"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":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"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":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"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":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"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":false},"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":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"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":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"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":true},"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":true},"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":true,"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":false,"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":true,"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":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"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":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"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":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"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":false,"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":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"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":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"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":true},"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":false,"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":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"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":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"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":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"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":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"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":true},"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":true},"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":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"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":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"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":true,"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":true},"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":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"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":true},"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":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"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":true,"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":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"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":true,"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":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"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":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"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":true,"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":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"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":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"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":true},"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":true,"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":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"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":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"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":false,"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":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"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":false},"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":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"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":true,"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":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"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":false},"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":true,"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":false,"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":false,"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":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"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":true,"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":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"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":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"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":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"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":false,"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":false,"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":false},"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":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"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":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"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":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"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":false,"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":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"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":false},"image/png":{"source":"iana","compressible":false,"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":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"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":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"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":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"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":false},"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":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"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":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"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":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"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":true},"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":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"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":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"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":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"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":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"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":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"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":true,"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":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"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":true,"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":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"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":true,"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":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"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":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"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":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"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":false,"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":true},"x-shader/x-vertex":{"compressible":true}}')},53550:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina <hello@matteocollina.com>","contributors":["David Mark Clements <huperekchuno@googlemail.com>","James Sumners <james.sumners@gmail.com>","Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},53733:e=>{"use strict";e.exports={rE:"4.5.1"}}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return a[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.c=i,s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var c=s(31314);return c=c.default})()));
|