@usearazzo/runner 1.0.1-alpha.21 → 1.0.1-alpha.22

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.
@@ -11288,11 +11288,12 @@ __webpack_require__.r(__webpack_exports__);
11288
11288
  * The `type` declared on a source description is not trusted (it may be
11289
11289
  * absent or wrong); a source is classified by what it actually parses to,
11290
11290
  * the same convention the OpenAPI operation locator follows. Source
11291
- * documents are acquired from the registry on demand. Whether the resolved
11292
- * document *defines* the workflow is deliberately left to the caller, which
11293
- * owns the timing of that check (eager for a `dependsOn` list validated
11294
- * before any prerequisite runs, lazy for a sub-workflow step resolved per
11295
- * attempt).
11291
+ * documents are acquired from the registry on demand. A reference to a
11292
+ * workflow the resolved document does not define is rejected here, so every
11293
+ * returned locator names an existing workflow; a caller controls when that
11294
+ * check happens by when it normalizes (eagerly for a `dependsOn` list
11295
+ * validated before any prerequisite runs, lazily for a sub-workflow step
11296
+ * resolved on its first attempt).
11296
11297
  * @public
11297
11298
  */
11298
11299
  class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormalizer_ts__WEBPACK_IMPORTED_MODULE_2__["default"] {
@@ -11300,10 +11301,20 @@ class ArazzoWorkflowLocatorNormalizer extends _SourceDescriptionsLocatorNormaliz
11300
11301
  * Resolves a reference — a plain workflowId or a
11301
11302
  * `$sourceDescriptions.{name}.{workflowId}` expression, as written — to the
11302
11303
  * canonical locator: the Arazzo document that owns the target workflow,
11303
- * and the bare id within it.
11304
+ * and the bare id within it. Rejects a workflow that document does not
11305
+ * define as `workflow-not-found`, attributed to the referencing context
11306
+ * like every other error raised here.
11304
11307
  */
11305
11308
  async normalize(reference, document, context) {
11306
- return this.#resolve(this.#parseReference(reference, context), document, context);
11309
+ const locator = await this.#resolve(this.#parseReference(reference, context), document, context);
11310
+ if (!locator.document.workflowIndex.has(locator.workflowId)) {
11311
+ throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_1__["default"](`workflow reference "${reference}" in workflow "${context.workflowId}" names workflow "${locator.workflowId}", which the Arazzo document at "${locator.document.uri}" does not define`, {
11312
+ workflowId: context.workflowId,
11313
+ stepId: context.stepId,
11314
+ reason: 'workflow-not-found'
11315
+ });
11316
+ }
11317
+ return locator;
11307
11318
  }
11308
11319
 
11309
11320
  /**
@@ -12341,6 +12352,16 @@ const STEP_TARGET_FIELDS = ['operationId', 'operationPath', 'workflowId'];
12341
12352
  * @public
12342
12353
  */
12343
12354
 
12355
+ /**
12356
+ * What one attempt at a step produced.
12357
+ *
12358
+ * Both kinds of step reduce to this — an operation step (whose richer
12359
+ * {@link StepExecutionResult} satisfies this shape) and a sub-workflow step
12360
+ * (synthesized from the sub-run's outcome) — so the retry loop drives them
12361
+ * identically and knows nothing about either.
12362
+ * @internal
12363
+ */
12364
+
12344
12365
  /**
12345
12366
  * Executes a single Arazzo step that invokes an OpenAPI operation.
12346
12367
  *
@@ -12733,16 +12754,6 @@ __webpack_require__.r(__webpack_exports__);
12733
12754
 
12734
12755
 
12735
12756
 
12736
- /**
12737
- * What one attempt at a step produced.
12738
- *
12739
- * Both kinds of step reduce to this — an operation step (whose richer
12740
- * `StepExecutionResult` satisfies this shape) and a sub-workflow step
12741
- * (synthesized from the sub-run's outcome) — so the retry loop drives them
12742
- * identically and knows nothing about either.
12743
- * @internal
12744
- */
12745
-
12746
12757
  /**
12747
12758
  * The terminal outcome of a step once its retries are settled.
12748
12759
  * @internal
@@ -14045,12 +14056,6 @@ class WorkflowExecutor {
14045
14056
  const locator = await this.#workflowLocatorNormalizer.normalize(reference, document, {
14046
14057
  workflowId
14047
14058
  });
14048
- if (!locator.document.workflowIndex.has(locator.workflowId)) {
14049
- throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${workflowId}" depends on "${reference}", which the Arazzo document at "${locator.document.uri}" does not define`, {
14050
- workflowId,
14051
- reason: 'workflow-not-found'
14052
- });
14053
- }
14054
14059
  refs.push({
14055
14060
  locator,
14056
14061
  inputsKey: reference
@@ -14239,24 +14244,14 @@ class WorkflowExecutor {
14239
14244
  *
14240
14245
  * Shared rather than duplicated by its two callers, which otherwise repeat
14241
14246
  * the identical "resolve the reference, then run with no inputs" sequence.
14242
- * Rejects a target its document does not define with the calling `stepId`
14243
- * attached, unlike {@link WorkflowExecutor.#resolveWorkflow}'s own
14244
- * `workflow-not-found` (reached only once `#run` itself resolves the
14245
- * target) — which carries no caller context at all, since it is reached
14246
- * generically from every kind of nested call.
14247
+ * A target its document does not define is rejected by the normalizer,
14248
+ * attributed to the calling workflow and `stepId`.
14247
14249
  */
14248
14250
  async #runReferencedWorkflow(reference, stepId, invocation, scope, via) {
14249
14251
  const locator = await this.#workflowLocatorNormalizer.normalize(reference, invocation.document, {
14250
14252
  workflowId: invocation.workflowId,
14251
14253
  stepId
14252
14254
  });
14253
- if (!locator.document.workflowIndex.has(locator.workflowId)) {
14254
- throw new _errors_ExecutionError_ts__WEBPACK_IMPORTED_MODULE_14__["default"](`workflow "${locator.workflowId}" not found in Arazzo document at "${locator.document.uri}"`, {
14255
- workflowId: locator.workflowId,
14256
- stepId,
14257
- reason: 'workflow-not-found'
14258
- });
14259
- }
14260
14255
  return this.#run(locator, {}, scope, invocation.callStack, via);
14261
14256
  }
14262
14257
 
@@ -14264,7 +14259,11 @@ class WorkflowExecutor {
14264
14259
  * Extracts and normalizes the workflow a locator names. A workflow its
14265
14260
  * document does not define is the executor-level `workflow-not-found`
14266
14261
  * authoring error, raised here rather than leaking the extractor's
14267
- * `ExtractionError`.
14262
+ * `ExtractionError`. Only the root {@link WorkflowExecutor.execute} id
14263
+ * reaches this check unvalidated — every reference position goes through
14264
+ * the locator normalizer, which already rejects a missing workflow with
14265
+ * the referencing context attached — so the error's `workflowId` is the
14266
+ * missing id itself.
14268
14267
  */
14269
14268
  async #resolveWorkflow(locator, scope) {
14270
14269
  const {
@@ -72322,22 +72321,62 @@ const test = runtimeExpression => {
72322
72321
 
72323
72322
  /***/ },
72324
72323
 
72325
- /***/ 95878
72324
+ /***/ 54142
72326
72325
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72327
72326
 
72328
72327
  "use strict";
72329
72328
  __webpack_require__.r(__webpack_exports__);
72330
72329
  /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
72331
72330
 
72332
- const cookieName = (state, chars, phraseIndex, phraseLength, data) => {
72333
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
72334
- data.push(['cookie-name', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
72335
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
72336
- /* not used in this example */
72337
- }
72338
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
72331
+ const cst = nodeType => {
72332
+ return (state, chars, phraseIndex, phraseLength, data) => {
72333
+ if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
72334
+ const node = {
72335
+ type: nodeType,
72336
+ text: apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength),
72337
+ start: phraseIndex,
72338
+ length: phraseLength,
72339
+ children: []
72340
+ };
72341
+ if (data.stack.length > 0) {
72342
+ data.stack[data.stack.length - 1].children.push(node);
72343
+ } else {
72344
+ data.root = node;
72345
+ }
72346
+ data.stack.push(node);
72347
+ }
72348
+ if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
72349
+ data.stack.pop();
72350
+ }
72351
+ };
72352
+ };
72353
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cst);
72354
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72355
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72356
+ /* harmony export */ ]);
72357
+
72358
+
72359
+ /***/ },
72360
+
72361
+ /***/ 65696
72362
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72363
+
72364
+ "use strict";
72365
+ __webpack_require__.r(__webpack_exports__);
72366
+ /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
72367
+
72368
+ const list = nodeType => {
72369
+ return (state, chars, phraseIndex, phraseLength, data) => {
72370
+ if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
72371
+ if (Array.isArray(data) === false) {
72372
+ throw new Error("parser's user data must be an array");
72373
+ }
72374
+ data.push([nodeType, apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
72375
+ }
72376
+ return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
72377
+ };
72339
72378
  };
72340
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieName);
72379
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (list);
72341
72380
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72342
72381
  /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72343
72382
  /* harmony export */ ]);
@@ -72345,22 +72384,92 @@ const cookieName = (state, chars, phraseIndex, phraseLength, data) => {
72345
72384
 
72346
72385
  /***/ },
72347
72386
 
72348
- /***/ 19511
72387
+ /***/ 5789
72349
72388
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72350
72389
 
72351
72390
  "use strict";
72352
72391
  __webpack_require__.r(__webpack_exports__);
72353
72392
  /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
72393
+ /* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67789);
72394
+ /* harmony import */ var _translators_ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48359);
72395
+ /* harmony import */ var _translators_ListTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14485);
72396
+ /* harmony import */ var _trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20084);
72397
+ /* harmony import */ var _errors_CookieParseError_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33625);
72398
+
72399
+
72400
+
72354
72401
 
72355
- const cookiePair = (state, chars, phraseIndex, phraseLength, data) => {
72356
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
72357
- data.push(['cookie-pair', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
72358
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
72359
- /* not used in this example */
72402
+
72403
+
72404
+ const grammar = new _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
72405
+ const parse = (cookieString, {
72406
+ strict = true,
72407
+ decoders = {},
72408
+ translator = new _translators_ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]({
72409
+ decoders
72410
+ }),
72411
+ stats = false,
72412
+ trace = false
72413
+ } = {}) => {
72414
+ if (typeof cookieString !== 'string') {
72415
+ throw new TypeError('Cookie string must be a string');
72416
+ }
72417
+ try {
72418
+ const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
72419
+ const startRule = strict ? 'cookie-string' : 'lenient-cookie-string';
72420
+ if (translator) parser.ast = translator;
72421
+ if (stats) parser.stats = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Stats();
72422
+ if (trace) parser.trace = new _trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
72423
+ const result = parser.parse(grammar, startRule, cookieString);
72424
+ // avoid parsing twice when the deprecated `ast` can be served by the provided translator
72425
+ let ast = translator && translator.constructor === _translators_ListTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__["default"] ? parser.ast : undefined;
72426
+ return {
72427
+ result,
72428
+ tree: result.success && translator ? parser.ast.getTree() : undefined,
72429
+ stats: parser.stats,
72430
+ trace: parser.trace,
72431
+ /**
72432
+ * @deprecated retained for backward compatibility, use `tree` instead
72433
+ */
72434
+ get ast() {
72435
+ if (ast === undefined) {
72436
+ const listParser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
72437
+ listParser.ast = new _translators_ListTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
72438
+ listParser.parse(grammar, startRule, cookieString);
72439
+ ast = listParser.ast;
72440
+ }
72441
+ return ast;
72442
+ },
72443
+ set ast(value) {
72444
+ ast = value;
72445
+ }
72446
+ };
72447
+ } catch (error) {
72448
+ throw new _errors_CookieParseError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]('Unexpected error during Cookie parsing', {
72449
+ cause: error,
72450
+ cookieString
72451
+ });
72360
72452
  }
72361
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
72362
72453
  };
72363
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookiePair);
72454
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
72455
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72456
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72457
+ /* harmony export */ ]);
72458
+
72459
+
72460
+ /***/ },
72461
+
72462
+ /***/ 38016
72463
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72464
+
72465
+ "use strict";
72466
+ __webpack_require__.r(__webpack_exports__);
72467
+ class Expectations extends Array {
72468
+ toString() {
72469
+ return this.map(c => `"${String(c)}"`).join(', ');
72470
+ }
72471
+ }
72472
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Expectations);
72364
72473
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72365
72474
  /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72366
72475
  /* harmony export */ ]);
@@ -72368,23 +72477,124 @@ const cookiePair = (state, chars, phraseIndex, phraseLength, data) => {
72368
72477
 
72369
72478
  /***/ },
72370
72479
 
72371
- /***/ 12556
72480
+ /***/ 20084
72372
72481
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72373
72482
 
72374
72483
  "use strict";
72375
72484
  __webpack_require__.r(__webpack_exports__);
72376
72485
  /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
72486
+ /* harmony import */ var _Expectations_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38016);
72487
+
72488
+
72489
+ class Trace extends apg_lite__WEBPACK_IMPORTED_MODULE_0__.Trace {
72490
+ inferExpectations() {
72491
+ const lines = this.displayTrace().split('\n');
72492
+ const expectations = new Set();
72493
+ let lastMatchedIndex = -1;
72494
+ for (let i = 0; i < lines.length; i++) {
72495
+ const line = lines[i];
72496
+
72497
+ // capture the max match line (first one that ends in a single character match)
72498
+ if (line.includes('M|')) {
72499
+ const textMatch = line.match(/]'(.*)'$/);
72500
+ if (textMatch && textMatch[1]) {
72501
+ lastMatchedIndex = i;
72502
+ }
72503
+ }
72504
+
72505
+ // collect terminal failures after the deepest successful match
72506
+ if (i > lastMatchedIndex) {
72507
+ const terminalFailMatch = line.match(/N\|\[TLS\(([^)]+)\)]/);
72508
+ if (terminalFailMatch) {
72509
+ expectations.add(terminalFailMatch[1]);
72510
+ }
72511
+ }
72512
+ }
72513
+ return new _Expectations_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](...expectations);
72514
+ }
72515
+ }
72516
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Trace);
72517
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72518
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72519
+ /* harmony export */ ]);
72520
+
72521
+
72522
+ /***/ },
72523
+
72524
+ /***/ 48359
72525
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72526
+
72527
+ "use strict";
72528
+ __webpack_require__.r(__webpack_exports__);
72529
+ /* harmony import */ var _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66785);
72530
+ /* harmony import */ var _set_cookie_parse_attributes_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15711);
72531
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93913);
72532
+
72377
72533
 
72378
- const cookieString = (state, chars, phraseIndex, phraseLength, data) => {
72379
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
72380
- if (Array.isArray(data) === false) {
72381
- throw new Error("parser's user data must be an array");
72534
+
72535
+ class ASTTranslator extends _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
72536
+ constructor({
72537
+ decoders = {}
72538
+ } = {}) {
72539
+ super();
72540
+ this.decoders = {
72541
+ name: _utils_mjs__WEBPACK_IMPORTED_MODULE_2__.identity,
72542
+ value: _utils_mjs__WEBPACK_IMPORTED_MODULE_2__.identity,
72543
+ ...decoders
72544
+ };
72545
+ }
72546
+ transformCookiePair(node) {
72547
+ const cookieName = node.children.find(({
72548
+ type
72549
+ }) => type === 'cookie-name');
72550
+ const cookieValue = node.children.find(({
72551
+ type
72552
+ }) => type === 'cookie-value');
72553
+ return {
72554
+ name: this.decoders.name(cookieName.text),
72555
+ value: this.decoders.value(cookieValue.text)
72556
+ };
72557
+ }
72558
+ getTree() {
72559
+ const cst = super.getTree();
72560
+ if (cst.type === 'set-cookie-string') {
72561
+ const cookiePair = cst.children.find(({
72562
+ type
72563
+ }) => type === 'cookie-pair');
72564
+ const cookieAvs = cst.children.filter(({
72565
+ type
72566
+ }) => type === 'cookie-av').map(({
72567
+ text
72568
+ }) => text);
72569
+ const {
72570
+ name,
72571
+ value
72572
+ } = this.transformCookiePair(cookiePair);
72573
+ const {
72574
+ attributes,
72575
+ extensions
72576
+ } = (0,_set_cookie_parse_attributes_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(cookieAvs);
72577
+ return {
72578
+ type: 'SetCookie',
72579
+ name,
72580
+ value,
72581
+ attributes,
72582
+ extensions
72583
+ };
72382
72584
  }
72383
- data.push(['cookie-string', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
72585
+ const pairs = cst.children.filter(({
72586
+ type
72587
+ }) => type === 'cookie-pair').map(node => ({
72588
+ type: 'CookiePair',
72589
+ ...this.transformCookiePair(node)
72590
+ }));
72591
+ return {
72592
+ type: 'CookieString',
72593
+ pairs
72594
+ };
72384
72595
  }
72385
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
72386
- };
72387
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieString);
72596
+ }
72597
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ASTTranslator);
72388
72598
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72389
72599
  /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72390
72600
  /* harmony export */ ]);
@@ -72392,22 +72602,52 @@ const cookieString = (state, chars, phraseIndex, phraseLength, data) => {
72392
72602
 
72393
72603
  /***/ },
72394
72604
 
72395
- /***/ 18494
72605
+ /***/ 66785
72396
72606
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72397
72607
 
72398
72608
  "use strict";
72399
72609
  __webpack_require__.r(__webpack_exports__);
72400
72610
  /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
72611
+ /* harmony import */ var _callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54142);
72612
+
72401
72613
 
72402
- const cookieValue = (state, chars, phraseIndex, phraseLength, data) => {
72403
- if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
72404
- data.push(['cookie-value', apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength)]);
72405
- } else if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
72406
- /* not used in this example */
72614
+ class CSTTranslator extends apg_lite__WEBPACK_IMPORTED_MODULE_0__.Ast {
72615
+ constructor() {
72616
+ super();
72617
+
72618
+ // strict rules
72619
+ this.callbacks['cookie-string'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-string');
72620
+ this.callbacks['cookie-pair'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-pair');
72621
+ this.callbacks['cookie-name'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-name');
72622
+ this.callbacks['cookie-value'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-value');
72623
+
72624
+ // lenient rules
72625
+ this.callbacks['lenient-cookie-string'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-string');
72626
+ this.callbacks['lenient-cookie-pair'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-pair');
72627
+ this.callbacks['lenient-cookie-name'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-name');
72628
+ this.callbacks['lenient-cookie-value'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-value');
72629
+
72630
+ // Set-Cookie strict rules (cookie-pair, cookie-name and cookie-value are shared with Cookie)
72631
+ this.callbacks['set-cookie-string'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('set-cookie-string');
72632
+ this.callbacks['cookie-av'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-av');
72633
+
72634
+ // Set-Cookie lenient rules
72635
+ this.callbacks['lenient-set-cookie-string'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('set-cookie-string');
72636
+ this.callbacks['lenient-set-cookie-pair'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-pair');
72637
+ this.callbacks['lenient-set-cookie-name'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-name');
72638
+ this.callbacks['lenient-set-cookie-value'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-value');
72639
+ this.callbacks['lenient-cookie-av'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-av');
72407
72640
  }
72408
- return apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_OK;
72409
- };
72410
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieValue);
72641
+ getTree() {
72642
+ const data = {
72643
+ stack: [],
72644
+ root: null
72645
+ };
72646
+ this.translate(data);
72647
+ return data.root;
72648
+ }
72649
+ }
72650
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CSTTranslator);
72411
72651
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72412
72652
  /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72413
72653
  /* harmony export */ ]);
@@ -72415,48 +72655,135 @@ const cookieValue = (state, chars, phraseIndex, phraseLength, data) => {
72415
72655
 
72416
72656
  /***/ },
72417
72657
 
72418
- /***/ 5789
72658
+ /***/ 1943
72659
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72660
+
72661
+ "use strict";
72662
+ __webpack_require__.r(__webpack_exports__);
72663
+ /* harmony import */ var _ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48359);
72664
+
72665
+ /**
72666
+ * Translates cookie pairs into a list of [name, value] entries, in order of appearance.
72667
+ * Unlike ObjectTranslator, all cookie pairs are retained, including duplicate cookie names.
72668
+ */
72669
+ class EntriesTranslator extends _ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
72670
+ getTree() {
72671
+ const ast = super.getTree();
72672
+ const pairs = ast.type === 'SetCookie' ? [ast] : ast.pairs;
72673
+ return pairs.map(({
72674
+ name,
72675
+ value
72676
+ }) => [name, value]);
72677
+ }
72678
+ }
72679
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EntriesTranslator);
72680
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72681
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72682
+ /* harmony export */ ]);
72683
+
72684
+
72685
+ /***/ },
72686
+
72687
+ /***/ 14485
72419
72688
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72420
72689
 
72421
72690
  "use strict";
72422
72691
  __webpack_require__.r(__webpack_exports__);
72423
72692
  /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
72424
- /* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67789);
72425
- /* harmony import */ var _callbacks_cookie_string_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12556);
72426
- /* harmony import */ var _callbacks_cookie_pair_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19511);
72427
- /* harmony import */ var _callbacks_cookie_name_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95878);
72428
- /* harmony import */ var _callbacks_cookie_value_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18494);
72693
+ /* harmony import */ var _callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65696);
72429
72694
 
72430
72695
 
72696
+ class ListTranslator extends apg_lite__WEBPACK_IMPORTED_MODULE_0__.Ast {
72697
+ constructor() {
72698
+ super();
72431
72699
 
72700
+ // strict rules
72701
+ this.callbacks['cookie-string'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-string');
72702
+ this.callbacks['cookie-pair'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-pair');
72703
+ this.callbacks['cookie-name'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-name');
72704
+ this.callbacks['cookie-value'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-value');
72705
+
72706
+ // lenient rules
72707
+ this.callbacks['lenient-cookie-string'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-string');
72708
+ this.callbacks['lenient-cookie-pair'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-pair');
72709
+ this.callbacks['lenient-cookie-name'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-name');
72710
+ this.callbacks['lenient-cookie-value'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-value');
72711
+
72712
+ // Set-Cookie strict rules (cookie-pair, cookie-name and cookie-value are shared with Cookie)
72713
+ this.callbacks['set-cookie-string'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('set-cookie-string');
72714
+ this.callbacks['cookie-av'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-av');
72715
+
72716
+ // Set-Cookie lenient rules
72717
+ this.callbacks['lenient-set-cookie-string'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('set-cookie-string');
72718
+ this.callbacks['lenient-set-cookie-pair'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-pair');
72719
+ this.callbacks['lenient-set-cookie-name'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-name');
72720
+ this.callbacks['lenient-set-cookie-value'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-value');
72721
+ this.callbacks['lenient-cookie-av'] = (0,_callbacks_list_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('cookie-av');
72722
+ }
72723
+ getTree() {
72724
+ const parts = [];
72725
+ this.translate(parts);
72726
+ return parts;
72727
+ }
72728
+ }
72729
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ListTranslator);
72730
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72731
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72732
+ /* harmony export */ ]);
72432
72733
 
72433
72734
 
72735
+ /***/ },
72434
72736
 
72435
- const grammar = new _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
72436
- const parse = (cookieString, {
72437
- strict = true
72438
- } = {}) => {
72439
- const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
72440
- parser.ast = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Ast();
72441
- if (strict) {
72442
- parser.ast.callbacks['cookie-string'] = _callbacks_cookie_string_mjs__WEBPACK_IMPORTED_MODULE_2__["default"];
72443
- parser.ast.callbacks['cookie-pair'] = _callbacks_cookie_pair_mjs__WEBPACK_IMPORTED_MODULE_3__["default"];
72444
- parser.ast.callbacks['cookie-name'] = _callbacks_cookie_name_mjs__WEBPACK_IMPORTED_MODULE_4__["default"];
72445
- parser.ast.callbacks['cookie-value'] = _callbacks_cookie_value_mjs__WEBPACK_IMPORTED_MODULE_5__["default"];
72446
- } else {
72447
- parser.ast.callbacks['lenient-cookie-string'] = _callbacks_cookie_string_mjs__WEBPACK_IMPORTED_MODULE_2__["default"];
72448
- parser.ast.callbacks['lenient-cookie-pair'] = _callbacks_cookie_pair_mjs__WEBPACK_IMPORTED_MODULE_3__["default"];
72449
- parser.ast.callbacks['lenient-cookie-name'] = _callbacks_cookie_name_mjs__WEBPACK_IMPORTED_MODULE_4__["default"];
72450
- parser.ast.callbacks['lenient-cookie-value'] = _callbacks_cookie_value_mjs__WEBPACK_IMPORTED_MODULE_5__["default"];
72737
+ /***/ 69292
72738
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72739
+
72740
+ "use strict";
72741
+ __webpack_require__.r(__webpack_exports__);
72742
+ /* harmony import */ var _EntriesTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1943);
72743
+
72744
+ /**
72745
+ * Translates cookie pairs into an object mapping cookie names to cookie values.
72746
+ *
72747
+ * When cookie name appears multiple times, the first cookie value wins. This is a convention:
72748
+ * user agents SHOULD send cookies with longer paths first (https://datatracker.ietf.org/doc/html/rfc6265#section-5.4),
72749
+ * but servers SHOULD NOT rely on the order (https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.2).
72750
+ *
72751
+ * The object has null prototype, so cookie names like "__proto__" or "constructor" are plain own properties
72752
+ * and lookups of absent cookie names never return inherited Object.prototype members.
72753
+ */
72754
+ class ObjectTranslator extends _EntriesTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
72755
+ getTree() {
72756
+ const entries = super.getTree();
72757
+ const cookies = Object.create(null);
72758
+ for (const [name, value] of entries) {
72759
+ if (!Object.prototype.hasOwnProperty.call(cookies, name)) {
72760
+ cookies[name] = value;
72761
+ }
72762
+ }
72763
+ return cookies;
72451
72764
  }
72452
- const startRule = strict ? 'cookie-string' : 'lenient-cookie-string';
72453
- const result = parser.parse(grammar, startRule, cookieString);
72454
- return {
72455
- result,
72456
- ast: parser.ast
72457
- };
72458
- };
72459
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
72765
+ }
72766
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ObjectTranslator);
72767
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72768
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72769
+ /* harmony export */ ]);
72770
+
72771
+
72772
+ /***/ },
72773
+
72774
+ /***/ 22188
72775
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72776
+
72777
+ "use strict";
72778
+ __webpack_require__.r(__webpack_exports__);
72779
+ /* harmony import */ var _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66785);
72780
+
72781
+ class XMLTranslator extends _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
72782
+ getTree() {
72783
+ return this.toXml();
72784
+ }
72785
+ }
72786
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (XMLTranslator);
72460
72787
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72461
72788
  /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72462
72789
  /* harmony export */ ]);
@@ -72471,9 +72798,17 @@ const parse = (cookieString, {
72471
72798
  __webpack_require__.r(__webpack_exports__);
72472
72799
  /* harmony import */ var _set_cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51575);
72473
72800
 
72474
- const serialize = (cookiePairs, options = {}) => {
72801
+ const serialize = (cookiePairs, {
72802
+ encoders,
72803
+ validators
72804
+ } = {}) => {
72475
72805
  const cookiePairEntries = Array.isArray(cookiePairs) ? cookiePairs : typeof cookiePairs === 'object' && cookiePairs !== null ? Object.entries(cookiePairs) : [];
72476
- return cookiePairEntries.map(([name, value]) => (0,_set_cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(name, value, options)).join('; ');
72806
+ return cookiePairEntries
72807
+ // Cookie header consists of cookie pairs only, Set-Cookie specific options must not be passed
72808
+ .map(([name, value]) => (0,_set_cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(name, value, {
72809
+ encoders,
72810
+ validators
72811
+ })).join('; ');
72477
72812
  };
72478
72813
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serialize);
72479
72814
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
@@ -72546,6 +72881,119 @@ const testCookieValue = (cookieValue, {
72546
72881
  /* harmony export */ ]);
72547
72882
 
72548
72883
 
72884
+ /***/ },
72885
+
72886
+ /***/ 1106
72887
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72888
+
72889
+ "use strict";
72890
+ __webpack_require__.r(__webpack_exports__);
72891
+ /* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5789);
72892
+
72893
+ /**
72894
+ * Test if a string is a valid cookie string.
72895
+ *
72896
+ * @param {string} cookieString
72897
+ * @param {Object} [options={}] - An object.
72898
+ * @param {boolean} [options.strict=true] - A boolean indicating whether to use strict RFC 6265 cookie-string grammar or lenient one.
72899
+ * @returns {boolean}
72900
+ */
72901
+ const testCookie = (cookieString, {
72902
+ strict = true
72903
+ } = {}) => {
72904
+ try {
72905
+ return (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(cookieString, {
72906
+ strict,
72907
+ translator: null
72908
+ }).result.success;
72909
+ } catch {
72910
+ return false;
72911
+ }
72912
+ };
72913
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (testCookie);
72914
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72915
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72916
+ /* harmony export */ ]);
72917
+
72918
+
72919
+ /***/ },
72920
+
72921
+ /***/ 43998
72922
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72923
+
72924
+ "use strict";
72925
+ __webpack_require__.r(__webpack_exports__);
72926
+ class CookieError extends Error {
72927
+ constructor(message, options = undefined) {
72928
+ super(message, options);
72929
+ this.name = this.constructor.name;
72930
+ if (typeof message === 'string') {
72931
+ this.message = message;
72932
+ }
72933
+ if (typeof Error.captureStackTrace === 'function') {
72934
+ Error.captureStackTrace(this, this.constructor);
72935
+ } else {
72936
+ this.stack = new Error(message).stack;
72937
+ }
72938
+
72939
+ /**
72940
+ * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
72941
+ * Node.js is >= 16.9.0 supports error causes natively.
72942
+ */
72943
+ if (options != null && typeof options === 'object' && Object.prototype.hasOwnProperty.call(options, 'cause') && !('cause' in this)) {
72944
+ const {
72945
+ cause
72946
+ } = options;
72947
+ this.cause = cause;
72948
+ if (cause instanceof Error && 'stack' in cause) {
72949
+ this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
72950
+ }
72951
+ }
72952
+
72953
+ /**
72954
+ * Allows to assign arbitrary properties to the error object.
72955
+ */
72956
+ if (options != null && typeof options === 'object') {
72957
+ const {
72958
+ cause,
72959
+ ...causelessOptions
72960
+ } = options;
72961
+ Object.assign(this, causelessOptions);
72962
+ }
72963
+ }
72964
+ }
72965
+
72966
+ /**
72967
+ * Class names are not reliable at runtime, as minifiers mangle them.
72968
+ */
72969
+ Object.defineProperty(CookieError, 'name', {
72970
+ value: 'CookieError'
72971
+ });
72972
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CookieError);
72973
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72974
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72975
+ /* harmony export */ ]);
72976
+
72977
+
72978
+ /***/ },
72979
+
72980
+ /***/ 33625
72981
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
72982
+
72983
+ "use strict";
72984
+ __webpack_require__.r(__webpack_exports__);
72985
+ /* harmony import */ var _CookieError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43998);
72986
+
72987
+ class CookieParseError extends _CookieError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
72988
+ Object.defineProperty(CookieParseError, 'name', {
72989
+ value: 'CookieParseError'
72990
+ });
72991
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CookieParseError);
72992
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
72993
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
72994
+ /* harmony export */ ]);
72995
+
72996
+
72549
72997
  /***/ },
72550
72998
 
72551
72999
  /***/ 67789
@@ -72563,22 +73011,22 @@ __webpack_require__.r(__webpack_exports__);
72563
73011
  function grammar() {
72564
73012
  // ```
72565
73013
  // SUMMARY
72566
- // rules = 30
73014
+ // rules = 61
72567
73015
  // udts = 0
72568
- // opcodes = 139
73016
+ // opcodes = 308
72569
73017
  // --- ABNF original opcodes
72570
- // ALT = 12
72571
- // CAT = 12
72572
- // REP = 13
72573
- // RNM = 41
72574
- // TLS = 35
72575
- // TBS = 10
72576
- // TRG = 16
73018
+ // ALT = 18
73019
+ // CAT = 38
73020
+ // REP = 46
73021
+ // RNM = 100
73022
+ // TLS = 50
73023
+ // TBS = 31
73024
+ // TRG = 25
72577
73025
  // --- SABNF superset opcodes
72578
73026
  // UDT = 0
72579
73027
  // AND = 0
72580
73028
  // NOT = 0
72581
- // characters = [0 - 127]
73029
+ // characters = [0 - 1114111]
72582
73030
  // ```
72583
73031
  /* OBJECT IDENTIFIER (for internal parser use) */
72584
73032
  this.grammarObject = 'grammarObject';
@@ -72640,129 +73088,315 @@ function grammar() {
72640
73088
  isBkr: false
72641
73089
  };
72642
73090
  this.rules[9] = {
72643
- name: 'cookie-string',
72644
- lower: 'cookie-string',
73091
+ name: 'lenient-set-cookie-string',
73092
+ lower: 'lenient-set-cookie-string',
72645
73093
  index: 9,
72646
73094
  isBkr: false
72647
73095
  };
72648
73096
  this.rules[10] = {
72649
- name: 'cookie-pair',
72650
- lower: 'cookie-pair',
73097
+ name: 'lenient-set-cookie-pair',
73098
+ lower: 'lenient-set-cookie-pair',
72651
73099
  index: 10,
72652
73100
  isBkr: false
72653
73101
  };
72654
73102
  this.rules[11] = {
72655
- name: 'cookie-name',
72656
- lower: 'cookie-name',
73103
+ name: 'lenient-set-cookie-name',
73104
+ lower: 'lenient-set-cookie-name',
72657
73105
  index: 11,
72658
73106
  isBkr: false
72659
73107
  };
72660
73108
  this.rules[12] = {
72661
- name: 'cookie-value',
72662
- lower: 'cookie-value',
73109
+ name: 'lenient-set-cookie-value',
73110
+ lower: 'lenient-set-cookie-value',
72663
73111
  index: 12,
72664
73112
  isBkr: false
72665
73113
  };
72666
73114
  this.rules[13] = {
72667
- name: 'cookie-octet',
72668
- lower: 'cookie-octet',
73115
+ name: 'lenient-cookie-av',
73116
+ lower: 'lenient-cookie-av',
72669
73117
  index: 13,
72670
73118
  isBkr: false
72671
73119
  };
72672
73120
  this.rules[14] = {
72673
- name: 'OWS',
72674
- lower: 'ows',
73121
+ name: 'lenient-cookie-av-name',
73122
+ lower: 'lenient-cookie-av-name',
72675
73123
  index: 14,
72676
73124
  isBkr: false
72677
73125
  };
72678
73126
  this.rules[15] = {
72679
- name: 'token',
72680
- lower: 'token',
73127
+ name: 'lenient-cookie-av-value',
73128
+ lower: 'lenient-cookie-av-value',
72681
73129
  index: 15,
72682
73130
  isBkr: false
72683
73131
  };
72684
73132
  this.rules[16] = {
72685
- name: 'tchar',
72686
- lower: 'tchar',
73133
+ name: 'lenient-name-char',
73134
+ lower: 'lenient-name-char',
72687
73135
  index: 16,
72688
73136
  isBkr: false
72689
73137
  };
72690
73138
  this.rules[17] = {
72691
- name: 'CHAR',
72692
- lower: 'char',
73139
+ name: 'lenient-value-char',
73140
+ lower: 'lenient-value-char',
72693
73141
  index: 17,
72694
73142
  isBkr: false
72695
73143
  };
72696
73144
  this.rules[18] = {
72697
- name: 'CTL',
72698
- lower: 'ctl',
73145
+ name: 'cookie-string',
73146
+ lower: 'cookie-string',
72699
73147
  index: 18,
72700
73148
  isBkr: false
72701
73149
  };
72702
73150
  this.rules[19] = {
72703
- name: 'separators',
72704
- lower: 'separators',
73151
+ name: 'cookie-pair',
73152
+ lower: 'cookie-pair',
72705
73153
  index: 19,
72706
73154
  isBkr: false
72707
73155
  };
72708
73156
  this.rules[20] = {
72709
- name: 'SP',
72710
- lower: 'sp',
73157
+ name: 'cookie-name',
73158
+ lower: 'cookie-name',
72711
73159
  index: 20,
72712
73160
  isBkr: false
72713
73161
  };
72714
73162
  this.rules[21] = {
72715
- name: 'HT',
72716
- lower: 'ht',
73163
+ name: 'cookie-value',
73164
+ lower: 'cookie-value',
72717
73165
  index: 21,
72718
73166
  isBkr: false
72719
73167
  };
72720
73168
  this.rules[22] = {
72721
- name: 'ALPHA',
72722
- lower: 'alpha',
73169
+ name: 'cookie-octet',
73170
+ lower: 'cookie-octet',
72723
73171
  index: 22,
72724
73172
  isBkr: false
72725
73173
  };
72726
73174
  this.rules[23] = {
72727
- name: 'DIGIT',
72728
- lower: 'digit',
73175
+ name: 'set-cookie-string',
73176
+ lower: 'set-cookie-string',
72729
73177
  index: 23,
72730
73178
  isBkr: false
72731
73179
  };
72732
73180
  this.rules[24] = {
72733
- name: 'DQUOTE',
72734
- lower: 'dquote',
73181
+ name: 'cookie-av',
73182
+ lower: 'cookie-av',
72735
73183
  index: 24,
72736
73184
  isBkr: false
72737
73185
  };
72738
73186
  this.rules[25] = {
72739
- name: 'WSP',
72740
- lower: 'wsp',
73187
+ name: 'expires-av',
73188
+ lower: 'expires-av',
72741
73189
  index: 25,
72742
73190
  isBkr: false
72743
73191
  };
72744
73192
  this.rules[26] = {
72745
- name: 'HTAB',
72746
- lower: 'htab',
73193
+ name: 'sane-cookie-date',
73194
+ lower: 'sane-cookie-date',
72747
73195
  index: 26,
72748
73196
  isBkr: false
72749
73197
  };
72750
73198
  this.rules[27] = {
72751
- name: 'CRLF',
72752
- lower: 'crlf',
73199
+ name: 'max-age-av',
73200
+ lower: 'max-age-av',
72753
73201
  index: 27,
72754
73202
  isBkr: false
72755
73203
  };
72756
73204
  this.rules[28] = {
72757
- name: 'CR',
72758
- lower: 'cr',
73205
+ name: 'non-zero-digit',
73206
+ lower: 'non-zero-digit',
72759
73207
  index: 28,
72760
73208
  isBkr: false
72761
73209
  };
72762
73210
  this.rules[29] = {
73211
+ name: 'domain-av',
73212
+ lower: 'domain-av',
73213
+ index: 29,
73214
+ isBkr: false
73215
+ };
73216
+ this.rules[30] = {
73217
+ name: 'domain-value',
73218
+ lower: 'domain-value',
73219
+ index: 30,
73220
+ isBkr: false
73221
+ };
73222
+ this.rules[31] = {
73223
+ name: 'path-av',
73224
+ lower: 'path-av',
73225
+ index: 31,
73226
+ isBkr: false
73227
+ };
73228
+ this.rules[32] = {
73229
+ name: 'path-value',
73230
+ lower: 'path-value',
73231
+ index: 32,
73232
+ isBkr: false
73233
+ };
73234
+ this.rules[33] = {
73235
+ name: 'secure-av',
73236
+ lower: 'secure-av',
73237
+ index: 33,
73238
+ isBkr: false
73239
+ };
73240
+ this.rules[34] = {
73241
+ name: 'httponly-av',
73242
+ lower: 'httponly-av',
73243
+ index: 34,
73244
+ isBkr: false
73245
+ };
73246
+ this.rules[35] = {
73247
+ name: 'extension-av',
73248
+ lower: 'extension-av',
73249
+ index: 35,
73250
+ isBkr: false
73251
+ };
73252
+ this.rules[36] = {
73253
+ name: 'av-octet',
73254
+ lower: 'av-octet',
73255
+ index: 36,
73256
+ isBkr: false
73257
+ };
73258
+ this.rules[37] = {
73259
+ name: 'subdomain',
73260
+ lower: 'subdomain',
73261
+ index: 37,
73262
+ isBkr: false
73263
+ };
73264
+ this.rules[38] = {
73265
+ name: 'label',
73266
+ lower: 'label',
73267
+ index: 38,
73268
+ isBkr: false
73269
+ };
73270
+ this.rules[39] = {
73271
+ name: 'let-dig',
73272
+ lower: 'let-dig',
73273
+ index: 39,
73274
+ isBkr: false
73275
+ };
73276
+ this.rules[40] = {
73277
+ name: 'rfc1123-date',
73278
+ lower: 'rfc1123-date',
73279
+ index: 40,
73280
+ isBkr: false
73281
+ };
73282
+ this.rules[41] = {
73283
+ name: 'date1',
73284
+ lower: 'date1',
73285
+ index: 41,
73286
+ isBkr: false
73287
+ };
73288
+ this.rules[42] = {
73289
+ name: 'time',
73290
+ lower: 'time',
73291
+ index: 42,
73292
+ isBkr: false
73293
+ };
73294
+ this.rules[43] = {
73295
+ name: 'wkday',
73296
+ lower: 'wkday',
73297
+ index: 43,
73298
+ isBkr: false
73299
+ };
73300
+ this.rules[44] = {
73301
+ name: 'month',
73302
+ lower: 'month',
73303
+ index: 44,
73304
+ isBkr: false
73305
+ };
73306
+ this.rules[45] = {
73307
+ name: 'OWS',
73308
+ lower: 'ows',
73309
+ index: 45,
73310
+ isBkr: false
73311
+ };
73312
+ this.rules[46] = {
73313
+ name: 'token',
73314
+ lower: 'token',
73315
+ index: 46,
73316
+ isBkr: false
73317
+ };
73318
+ this.rules[47] = {
73319
+ name: 'tchar',
73320
+ lower: 'tchar',
73321
+ index: 47,
73322
+ isBkr: false
73323
+ };
73324
+ this.rules[48] = {
73325
+ name: 'CHAR',
73326
+ lower: 'char',
73327
+ index: 48,
73328
+ isBkr: false
73329
+ };
73330
+ this.rules[49] = {
73331
+ name: 'CTL',
73332
+ lower: 'ctl',
73333
+ index: 49,
73334
+ isBkr: false
73335
+ };
73336
+ this.rules[50] = {
73337
+ name: 'separators',
73338
+ lower: 'separators',
73339
+ index: 50,
73340
+ isBkr: false
73341
+ };
73342
+ this.rules[51] = {
73343
+ name: 'SP',
73344
+ lower: 'sp',
73345
+ index: 51,
73346
+ isBkr: false
73347
+ };
73348
+ this.rules[52] = {
73349
+ name: 'HT',
73350
+ lower: 'ht',
73351
+ index: 52,
73352
+ isBkr: false
73353
+ };
73354
+ this.rules[53] = {
73355
+ name: 'ALPHA',
73356
+ lower: 'alpha',
73357
+ index: 53,
73358
+ isBkr: false
73359
+ };
73360
+ this.rules[54] = {
73361
+ name: 'DIGIT',
73362
+ lower: 'digit',
73363
+ index: 54,
73364
+ isBkr: false
73365
+ };
73366
+ this.rules[55] = {
73367
+ name: 'DQUOTE',
73368
+ lower: 'dquote',
73369
+ index: 55,
73370
+ isBkr: false
73371
+ };
73372
+ this.rules[56] = {
73373
+ name: 'WSP',
73374
+ lower: 'wsp',
73375
+ index: 56,
73376
+ isBkr: false
73377
+ };
73378
+ this.rules[57] = {
73379
+ name: 'HTAB',
73380
+ lower: 'htab',
73381
+ index: 57,
73382
+ isBkr: false
73383
+ };
73384
+ this.rules[58] = {
73385
+ name: 'CRLF',
73386
+ lower: 'crlf',
73387
+ index: 58,
73388
+ isBkr: false
73389
+ };
73390
+ this.rules[59] = {
73391
+ name: 'CR',
73392
+ lower: 'cr',
73393
+ index: 59,
73394
+ isBkr: false
73395
+ };
73396
+ this.rules[60] = {
72763
73397
  name: 'LF',
72764
73398
  lower: 'lf',
72765
- index: 29,
73399
+ index: 60,
72766
73400
  isBkr: false
72767
73401
  };
72768
73402
 
@@ -72795,7 +73429,7 @@ function grammar() {
72795
73429
  }; // TLS
72796
73430
  this.rules[0].opcodes[5] = {
72797
73431
  type: 4,
72798
- index: 14
73432
+ index: 45
72799
73433
  }; // RNM(OWS)
72800
73434
  this.rules[0].opcodes[6] = {
72801
73435
  type: 4,
@@ -72825,7 +73459,7 @@ function grammar() {
72825
73459
  }; // CAT
72826
73460
  this.rules[2].opcodes[1] = {
72827
73461
  type: 4,
72828
- index: 14
73462
+ index: 45
72829
73463
  }; // RNM(OWS)
72830
73464
  this.rules[2].opcodes[2] = {
72831
73465
  type: 4,
@@ -72833,7 +73467,7 @@ function grammar() {
72833
73467
  }; // RNM(lenient-cookie-name)
72834
73468
  this.rules[2].opcodes[3] = {
72835
73469
  type: 4,
72836
- index: 14
73470
+ index: 45
72837
73471
  }; // RNM(OWS)
72838
73472
  this.rules[2].opcodes[4] = {
72839
73473
  type: 7,
@@ -72841,7 +73475,7 @@ function grammar() {
72841
73475
  }; // TLS
72842
73476
  this.rules[2].opcodes[5] = {
72843
73477
  type: 4,
72844
- index: 14
73478
+ index: 45
72845
73479
  }; // RNM(OWS)
72846
73480
  this.rules[2].opcodes[6] = {
72847
73481
  type: 4,
@@ -72849,7 +73483,7 @@ function grammar() {
72849
73483
  }; // RNM(lenient-cookie-value)
72850
73484
  this.rules[2].opcodes[7] = {
72851
73485
  type: 4,
72852
- index: 14
73486
+ index: 45
72853
73487
  }; // RNM(OWS)
72854
73488
 
72855
73489
  /* lenient-cookie-pair-invalid */
@@ -72860,7 +73494,7 @@ function grammar() {
72860
73494
  }; // CAT
72861
73495
  this.rules[3].opcodes[1] = {
72862
73496
  type: 4,
72863
- index: 14
73497
+ index: 45
72864
73498
  }; // RNM(OWS)
72865
73499
  this.rules[3].opcodes[2] = {
72866
73500
  type: 3,
@@ -72869,11 +73503,11 @@ function grammar() {
72869
73503
  }; // REP
72870
73504
  this.rules[3].opcodes[3] = {
72871
73505
  type: 4,
72872
- index: 16
73506
+ index: 47
72873
73507
  }; // RNM(tchar)
72874
73508
  this.rules[3].opcodes[4] = {
72875
73509
  type: 4,
72876
- index: 14
73510
+ index: 45
72877
73511
  }; // RNM(OWS)
72878
73512
 
72879
73513
  /* lenient-cookie-name */
@@ -72948,7 +73582,7 @@ function grammar() {
72948
73582
  }; // CAT
72949
73583
  this.rules[6].opcodes[1] = {
72950
73584
  type: 4,
72951
- index: 24
73585
+ index: 55
72952
73586
  }; // RNM(DQUOTE)
72953
73587
  this.rules[6].opcodes[2] = {
72954
73588
  type: 3,
@@ -72961,7 +73595,7 @@ function grammar() {
72961
73595
  }; // RNM(lenient-quoted-char)
72962
73596
  this.rules[6].opcodes[4] = {
72963
73597
  type: 4,
72964
- index: 24
73598
+ index: 55
72965
73599
  }; // RNM(DQUOTE)
72966
73600
 
72967
73601
  /* lenient-quoted-char */
@@ -73003,7 +73637,7 @@ function grammar() {
73003
73637
  max: 126
73004
73638
  }; // TRG
73005
73639
 
73006
- /* cookie-string */
73640
+ /* lenient-set-cookie-string */
73007
73641
  this.rules[9].opcodes = [];
73008
73642
  this.rules[9].opcodes[0] = {
73009
73643
  type: 2,
@@ -73012,7 +73646,7 @@ function grammar() {
73012
73646
  this.rules[9].opcodes[1] = {
73013
73647
  type: 4,
73014
73648
  index: 10
73015
- }; // RNM(cookie-pair)
73649
+ }; // RNM(lenient-set-cookie-pair)
73016
73650
  this.rules[9].opcodes[2] = {
73017
73651
  type: 3,
73018
73652
  min: 0,
@@ -73020,7 +73654,7 @@ function grammar() {
73020
73654
  }; // REP
73021
73655
  this.rules[9].opcodes[3] = {
73022
73656
  type: 2,
73023
- children: [4, 5, 6]
73657
+ children: [4, 5]
73024
73658
  }; // CAT
73025
73659
  this.rules[9].opcodes[4] = {
73026
73660
  type: 7,
@@ -73028,419 +73662,1230 @@ function grammar() {
73028
73662
  }; // TLS
73029
73663
  this.rules[9].opcodes[5] = {
73030
73664
  type: 4,
73031
- index: 20
73032
- }; // RNM(SP)
73033
- this.rules[9].opcodes[6] = {
73034
- type: 4,
73035
- index: 10
73036
- }; // RNM(cookie-pair)
73665
+ index: 13
73666
+ }; // RNM(lenient-cookie-av)
73037
73667
 
73038
- /* cookie-pair */
73668
+ /* lenient-set-cookie-pair */
73039
73669
  this.rules[10].opcodes = [];
73040
73670
  this.rules[10].opcodes[0] = {
73041
73671
  type: 2,
73042
- children: [1, 2, 3]
73672
+ children: [1, 3, 4, 6, 7, 9, 10]
73043
73673
  }; // CAT
73044
73674
  this.rules[10].opcodes[1] = {
73675
+ type: 3,
73676
+ min: 0,
73677
+ max: Infinity
73678
+ }; // REP
73679
+ this.rules[10].opcodes[2] = {
73680
+ type: 4,
73681
+ index: 56
73682
+ }; // RNM(WSP)
73683
+ this.rules[10].opcodes[3] = {
73045
73684
  type: 4,
73046
73685
  index: 11
73047
- }; // RNM(cookie-name)
73048
- this.rules[10].opcodes[2] = {
73686
+ }; // RNM(lenient-set-cookie-name)
73687
+ this.rules[10].opcodes[4] = {
73688
+ type: 3,
73689
+ min: 0,
73690
+ max: Infinity
73691
+ }; // REP
73692
+ this.rules[10].opcodes[5] = {
73693
+ type: 4,
73694
+ index: 56
73695
+ }; // RNM(WSP)
73696
+ this.rules[10].opcodes[6] = {
73049
73697
  type: 7,
73050
73698
  string: [61]
73051
73699
  }; // TLS
73052
- this.rules[10].opcodes[3] = {
73700
+ this.rules[10].opcodes[7] = {
73701
+ type: 3,
73702
+ min: 0,
73703
+ max: Infinity
73704
+ }; // REP
73705
+ this.rules[10].opcodes[8] = {
73706
+ type: 4,
73707
+ index: 56
73708
+ }; // RNM(WSP)
73709
+ this.rules[10].opcodes[9] = {
73053
73710
  type: 4,
73054
73711
  index: 12
73055
- }; // RNM(cookie-value)
73712
+ }; // RNM(lenient-set-cookie-value)
73713
+ this.rules[10].opcodes[10] = {
73714
+ type: 3,
73715
+ min: 0,
73716
+ max: Infinity
73717
+ }; // REP
73718
+ this.rules[10].opcodes[11] = {
73719
+ type: 4,
73720
+ index: 56
73721
+ }; // RNM(WSP)
73056
73722
 
73057
- /* cookie-name */
73723
+ /* lenient-set-cookie-name */
73058
73724
  this.rules[11].opcodes = [];
73059
73725
  this.rules[11].opcodes[0] = {
73726
+ type: 2,
73727
+ children: [1, 2]
73728
+ }; // CAT
73729
+ this.rules[11].opcodes[1] = {
73060
73730
  type: 4,
73061
- index: 15
73062
- }; // RNM(token)
73731
+ index: 16
73732
+ }; // RNM(lenient-name-char)
73733
+ this.rules[11].opcodes[2] = {
73734
+ type: 3,
73735
+ min: 0,
73736
+ max: Infinity
73737
+ }; // REP
73738
+ this.rules[11].opcodes[3] = {
73739
+ type: 2,
73740
+ children: [4, 6]
73741
+ }; // CAT
73742
+ this.rules[11].opcodes[4] = {
73743
+ type: 3,
73744
+ min: 0,
73745
+ max: Infinity
73746
+ }; // REP
73747
+ this.rules[11].opcodes[5] = {
73748
+ type: 4,
73749
+ index: 56
73750
+ }; // RNM(WSP)
73751
+ this.rules[11].opcodes[6] = {
73752
+ type: 4,
73753
+ index: 16
73754
+ }; // RNM(lenient-name-char)
73063
73755
 
73064
- /* cookie-value */
73756
+ /* lenient-set-cookie-value */
73065
73757
  this.rules[12].opcodes = [];
73066
73758
  this.rules[12].opcodes[0] = {
73067
- type: 1,
73068
- children: [1, 6]
73069
- }; // ALT
73759
+ type: 3,
73760
+ min: 0,
73761
+ max: 1
73762
+ }; // REP
73070
73763
  this.rules[12].opcodes[1] = {
73071
73764
  type: 2,
73072
- children: [2, 3, 5]
73765
+ children: [2, 3]
73073
73766
  }; // CAT
73074
73767
  this.rules[12].opcodes[2] = {
73075
73768
  type: 4,
73076
- index: 24
73077
- }; // RNM(DQUOTE)
73769
+ index: 17
73770
+ }; // RNM(lenient-value-char)
73078
73771
  this.rules[12].opcodes[3] = {
73079
73772
  type: 3,
73080
73773
  min: 0,
73081
73774
  max: Infinity
73082
73775
  }; // REP
73083
73776
  this.rules[12].opcodes[4] = {
73084
- type: 4,
73085
- index: 13
73086
- }; // RNM(cookie-octet)
73777
+ type: 2,
73778
+ children: [5, 7]
73779
+ }; // CAT
73087
73780
  this.rules[12].opcodes[5] = {
73088
- type: 4,
73089
- index: 24
73090
- }; // RNM(DQUOTE)
73091
- this.rules[12].opcodes[6] = {
73092
73781
  type: 3,
73093
73782
  min: 0,
73094
73783
  max: Infinity
73095
73784
  }; // REP
73785
+ this.rules[12].opcodes[6] = {
73786
+ type: 4,
73787
+ index: 56
73788
+ }; // RNM(WSP)
73096
73789
  this.rules[12].opcodes[7] = {
73097
73790
  type: 4,
73098
- index: 13
73099
- }; // RNM(cookie-octet)
73791
+ index: 17
73792
+ }; // RNM(lenient-value-char)
73100
73793
 
73101
- /* cookie-octet */
73794
+ /* lenient-cookie-av */
73102
73795
  this.rules[13].opcodes = [];
73103
73796
  this.rules[13].opcodes[0] = {
73104
- type: 1,
73105
- children: [1, 2, 3, 4, 5]
73106
- }; // ALT
73797
+ type: 2,
73798
+ children: [1, 3, 4, 6]
73799
+ }; // CAT
73107
73800
  this.rules[13].opcodes[1] = {
73108
- type: 6,
73109
- string: [33]
73110
- }; // TBS
73801
+ type: 3,
73802
+ min: 0,
73803
+ max: Infinity
73804
+ }; // REP
73111
73805
  this.rules[13].opcodes[2] = {
73112
- type: 5,
73113
- min: 35,
73114
- max: 43
73115
- }; // TRG
73806
+ type: 4,
73807
+ index: 56
73808
+ }; // RNM(WSP)
73116
73809
  this.rules[13].opcodes[3] = {
73117
- type: 5,
73118
- min: 45,
73119
- max: 58
73120
- }; // TRG
73810
+ type: 4,
73811
+ index: 14
73812
+ }; // RNM(lenient-cookie-av-name)
73121
73813
  this.rules[13].opcodes[4] = {
73122
- type: 5,
73123
- min: 60,
73124
- max: 91
73125
- }; // TRG
73126
- this.rules[13].opcodes[5] = {
73127
- type: 5,
73128
- min: 93,
73129
- max: 126
73130
- }; // TRG
73131
-
73132
- /* OWS */
73133
- this.rules[14].opcodes = [];
73134
- this.rules[14].opcodes[0] = {
73135
73814
  type: 3,
73136
73815
  min: 0,
73137
73816
  max: Infinity
73138
73817
  }; // REP
73139
- this.rules[14].opcodes[1] = {
73818
+ this.rules[13].opcodes[5] = {
73819
+ type: 4,
73820
+ index: 56
73821
+ }; // RNM(WSP)
73822
+ this.rules[13].opcodes[6] = {
73823
+ type: 3,
73824
+ min: 0,
73825
+ max: 1
73826
+ }; // REP
73827
+ this.rules[13].opcodes[7] = {
73140
73828
  type: 2,
73141
- children: [2, 4]
73829
+ children: [8, 9, 11, 12]
73142
73830
  }; // CAT
73143
- this.rules[14].opcodes[2] = {
73831
+ this.rules[13].opcodes[8] = {
73832
+ type: 7,
73833
+ string: [61]
73834
+ }; // TLS
73835
+ this.rules[13].opcodes[9] = {
73144
73836
  type: 3,
73145
73837
  min: 0,
73146
- max: 1
73838
+ max: Infinity
73147
73839
  }; // REP
73148
- this.rules[14].opcodes[3] = {
73840
+ this.rules[13].opcodes[10] = {
73149
73841
  type: 4,
73150
- index: 27
73151
- }; // RNM(CRLF)
73152
- this.rules[14].opcodes[4] = {
73842
+ index: 56
73843
+ }; // RNM(WSP)
73844
+ this.rules[13].opcodes[11] = {
73153
73845
  type: 4,
73154
- index: 25
73846
+ index: 15
73847
+ }; // RNM(lenient-cookie-av-value)
73848
+ this.rules[13].opcodes[12] = {
73849
+ type: 3,
73850
+ min: 0,
73851
+ max: Infinity
73852
+ }; // REP
73853
+ this.rules[13].opcodes[13] = {
73854
+ type: 4,
73855
+ index: 56
73155
73856
  }; // RNM(WSP)
73156
73857
 
73157
- /* token */
73158
- this.rules[15].opcodes = [];
73159
- this.rules[15].opcodes[0] = {
73858
+ /* lenient-cookie-av-name */
73859
+ this.rules[14].opcodes = [];
73860
+ this.rules[14].opcodes[0] = {
73160
73861
  type: 3,
73161
- min: 1,
73162
- max: Infinity
73862
+ min: 0,
73863
+ max: 1
73163
73864
  }; // REP
73164
- this.rules[15].opcodes[1] = {
73865
+ this.rules[14].opcodes[1] = {
73866
+ type: 2,
73867
+ children: [2, 3]
73868
+ }; // CAT
73869
+ this.rules[14].opcodes[2] = {
73165
73870
  type: 4,
73166
73871
  index: 16
73167
- }; // RNM(tchar)
73168
-
73169
- /* tchar */
73170
- this.rules[16].opcodes = [];
73872
+ }; // RNM(lenient-name-char)
73873
+ this.rules[14].opcodes[3] = {
73874
+ type: 3,
73875
+ min: 0,
73876
+ max: Infinity
73877
+ }; // REP
73878
+ this.rules[14].opcodes[4] = {
73879
+ type: 2,
73880
+ children: [5, 7]
73881
+ }; // CAT
73882
+ this.rules[14].opcodes[5] = {
73883
+ type: 3,
73884
+ min: 0,
73885
+ max: Infinity
73886
+ }; // REP
73887
+ this.rules[14].opcodes[6] = {
73888
+ type: 4,
73889
+ index: 56
73890
+ }; // RNM(WSP)
73891
+ this.rules[14].opcodes[7] = {
73892
+ type: 4,
73893
+ index: 16
73894
+ }; // RNM(lenient-name-char)
73895
+
73896
+ /* lenient-cookie-av-value */
73897
+ this.rules[15].opcodes = [];
73898
+ this.rules[15].opcodes[0] = {
73899
+ type: 3,
73900
+ min: 0,
73901
+ max: 1
73902
+ }; // REP
73903
+ this.rules[15].opcodes[1] = {
73904
+ type: 2,
73905
+ children: [2, 3]
73906
+ }; // CAT
73907
+ this.rules[15].opcodes[2] = {
73908
+ type: 4,
73909
+ index: 17
73910
+ }; // RNM(lenient-value-char)
73911
+ this.rules[15].opcodes[3] = {
73912
+ type: 3,
73913
+ min: 0,
73914
+ max: Infinity
73915
+ }; // REP
73916
+ this.rules[15].opcodes[4] = {
73917
+ type: 2,
73918
+ children: [5, 7]
73919
+ }; // CAT
73920
+ this.rules[15].opcodes[5] = {
73921
+ type: 3,
73922
+ min: 0,
73923
+ max: Infinity
73924
+ }; // REP
73925
+ this.rules[15].opcodes[6] = {
73926
+ type: 4,
73927
+ index: 56
73928
+ }; // RNM(WSP)
73929
+ this.rules[15].opcodes[7] = {
73930
+ type: 4,
73931
+ index: 17
73932
+ }; // RNM(lenient-value-char)
73933
+
73934
+ /* lenient-name-char */
73935
+ this.rules[16].opcodes = [];
73171
73936
  this.rules[16].opcodes[0] = {
73172
73937
  type: 1,
73173
- children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
73938
+ children: [1, 2, 3, 4]
73174
73939
  }; // ALT
73175
73940
  this.rules[16].opcodes[1] = {
73941
+ type: 5,
73942
+ min: 33,
73943
+ max: 58
73944
+ }; // TRG
73945
+ this.rules[16].opcodes[2] = {
73946
+ type: 6,
73947
+ string: [60]
73948
+ }; // TBS
73949
+ this.rules[16].opcodes[3] = {
73950
+ type: 5,
73951
+ min: 62,
73952
+ max: 126
73953
+ }; // TRG
73954
+ this.rules[16].opcodes[4] = {
73955
+ type: 5,
73956
+ min: 128,
73957
+ max: 1114111
73958
+ }; // TRG
73959
+
73960
+ /* lenient-value-char */
73961
+ this.rules[17].opcodes = [];
73962
+ this.rules[17].opcodes[0] = {
73963
+ type: 1,
73964
+ children: [1, 2, 3]
73965
+ }; // ALT
73966
+ this.rules[17].opcodes[1] = {
73967
+ type: 5,
73968
+ min: 33,
73969
+ max: 58
73970
+ }; // TRG
73971
+ this.rules[17].opcodes[2] = {
73972
+ type: 5,
73973
+ min: 60,
73974
+ max: 126
73975
+ }; // TRG
73976
+ this.rules[17].opcodes[3] = {
73977
+ type: 5,
73978
+ min: 128,
73979
+ max: 1114111
73980
+ }; // TRG
73981
+
73982
+ /* cookie-string */
73983
+ this.rules[18].opcodes = [];
73984
+ this.rules[18].opcodes[0] = {
73985
+ type: 2,
73986
+ children: [1, 2]
73987
+ }; // CAT
73988
+ this.rules[18].opcodes[1] = {
73989
+ type: 4,
73990
+ index: 19
73991
+ }; // RNM(cookie-pair)
73992
+ this.rules[18].opcodes[2] = {
73993
+ type: 3,
73994
+ min: 0,
73995
+ max: Infinity
73996
+ }; // REP
73997
+ this.rules[18].opcodes[3] = {
73998
+ type: 2,
73999
+ children: [4, 5, 6]
74000
+ }; // CAT
74001
+ this.rules[18].opcodes[4] = {
73176
74002
  type: 7,
74003
+ string: [59]
74004
+ }; // TLS
74005
+ this.rules[18].opcodes[5] = {
74006
+ type: 4,
74007
+ index: 51
74008
+ }; // RNM(SP)
74009
+ this.rules[18].opcodes[6] = {
74010
+ type: 4,
74011
+ index: 19
74012
+ }; // RNM(cookie-pair)
74013
+
74014
+ /* cookie-pair */
74015
+ this.rules[19].opcodes = [];
74016
+ this.rules[19].opcodes[0] = {
74017
+ type: 2,
74018
+ children: [1, 2, 3]
74019
+ }; // CAT
74020
+ this.rules[19].opcodes[1] = {
74021
+ type: 4,
74022
+ index: 20
74023
+ }; // RNM(cookie-name)
74024
+ this.rules[19].opcodes[2] = {
74025
+ type: 7,
74026
+ string: [61]
74027
+ }; // TLS
74028
+ this.rules[19].opcodes[3] = {
74029
+ type: 4,
74030
+ index: 21
74031
+ }; // RNM(cookie-value)
74032
+
74033
+ /* cookie-name */
74034
+ this.rules[20].opcodes = [];
74035
+ this.rules[20].opcodes[0] = {
74036
+ type: 4,
74037
+ index: 46
74038
+ }; // RNM(token)
74039
+
74040
+ /* cookie-value */
74041
+ this.rules[21].opcodes = [];
74042
+ this.rules[21].opcodes[0] = {
74043
+ type: 1,
74044
+ children: [1, 6]
74045
+ }; // ALT
74046
+ this.rules[21].opcodes[1] = {
74047
+ type: 2,
74048
+ children: [2, 3, 5]
74049
+ }; // CAT
74050
+ this.rules[21].opcodes[2] = {
74051
+ type: 4,
74052
+ index: 55
74053
+ }; // RNM(DQUOTE)
74054
+ this.rules[21].opcodes[3] = {
74055
+ type: 3,
74056
+ min: 0,
74057
+ max: Infinity
74058
+ }; // REP
74059
+ this.rules[21].opcodes[4] = {
74060
+ type: 4,
74061
+ index: 22
74062
+ }; // RNM(cookie-octet)
74063
+ this.rules[21].opcodes[5] = {
74064
+ type: 4,
74065
+ index: 55
74066
+ }; // RNM(DQUOTE)
74067
+ this.rules[21].opcodes[6] = {
74068
+ type: 3,
74069
+ min: 0,
74070
+ max: Infinity
74071
+ }; // REP
74072
+ this.rules[21].opcodes[7] = {
74073
+ type: 4,
74074
+ index: 22
74075
+ }; // RNM(cookie-octet)
74076
+
74077
+ /* cookie-octet */
74078
+ this.rules[22].opcodes = [];
74079
+ this.rules[22].opcodes[0] = {
74080
+ type: 1,
74081
+ children: [1, 2, 3, 4, 5]
74082
+ }; // ALT
74083
+ this.rules[22].opcodes[1] = {
74084
+ type: 6,
73177
74085
  string: [33]
74086
+ }; // TBS
74087
+ this.rules[22].opcodes[2] = {
74088
+ type: 5,
74089
+ min: 35,
74090
+ max: 43
74091
+ }; // TRG
74092
+ this.rules[22].opcodes[3] = {
74093
+ type: 5,
74094
+ min: 45,
74095
+ max: 58
74096
+ }; // TRG
74097
+ this.rules[22].opcodes[4] = {
74098
+ type: 5,
74099
+ min: 60,
74100
+ max: 91
74101
+ }; // TRG
74102
+ this.rules[22].opcodes[5] = {
74103
+ type: 5,
74104
+ min: 93,
74105
+ max: 126
74106
+ }; // TRG
74107
+
74108
+ /* set-cookie-string */
74109
+ this.rules[23].opcodes = [];
74110
+ this.rules[23].opcodes[0] = {
74111
+ type: 2,
74112
+ children: [1, 2]
74113
+ }; // CAT
74114
+ this.rules[23].opcodes[1] = {
74115
+ type: 4,
74116
+ index: 19
74117
+ }; // RNM(cookie-pair)
74118
+ this.rules[23].opcodes[2] = {
74119
+ type: 3,
74120
+ min: 0,
74121
+ max: Infinity
74122
+ }; // REP
74123
+ this.rules[23].opcodes[3] = {
74124
+ type: 2,
74125
+ children: [4, 5, 6]
74126
+ }; // CAT
74127
+ this.rules[23].opcodes[4] = {
74128
+ type: 7,
74129
+ string: [59]
73178
74130
  }; // TLS
73179
- this.rules[16].opcodes[2] = {
74131
+ this.rules[23].opcodes[5] = {
74132
+ type: 4,
74133
+ index: 51
74134
+ }; // RNM(SP)
74135
+ this.rules[23].opcodes[6] = {
74136
+ type: 4,
74137
+ index: 24
74138
+ }; // RNM(cookie-av)
74139
+
74140
+ /* cookie-av */
74141
+ this.rules[24].opcodes = [];
74142
+ this.rules[24].opcodes[0] = {
74143
+ type: 4,
74144
+ index: 35
74145
+ }; // RNM(extension-av)
74146
+
74147
+ /* expires-av */
74148
+ this.rules[25].opcodes = [];
74149
+ this.rules[25].opcodes[0] = {
74150
+ type: 2,
74151
+ children: [1, 2]
74152
+ }; // CAT
74153
+ this.rules[25].opcodes[1] = {
74154
+ type: 7,
74155
+ string: [101, 120, 112, 105, 114, 101, 115, 61]
74156
+ }; // TLS
74157
+ this.rules[25].opcodes[2] = {
74158
+ type: 4,
74159
+ index: 26
74160
+ }; // RNM(sane-cookie-date)
74161
+
74162
+ /* sane-cookie-date */
74163
+ this.rules[26].opcodes = [];
74164
+ this.rules[26].opcodes[0] = {
74165
+ type: 4,
74166
+ index: 40
74167
+ }; // RNM(rfc1123-date)
74168
+
74169
+ /* max-age-av */
74170
+ this.rules[27].opcodes = [];
74171
+ this.rules[27].opcodes[0] = {
74172
+ type: 2,
74173
+ children: [1, 2, 3]
74174
+ }; // CAT
74175
+ this.rules[27].opcodes[1] = {
74176
+ type: 7,
74177
+ string: [109, 97, 120, 45, 97, 103, 101, 61]
74178
+ }; // TLS
74179
+ this.rules[27].opcodes[2] = {
74180
+ type: 4,
74181
+ index: 28
74182
+ }; // RNM(non-zero-digit)
74183
+ this.rules[27].opcodes[3] = {
74184
+ type: 3,
74185
+ min: 0,
74186
+ max: Infinity
74187
+ }; // REP
74188
+ this.rules[27].opcodes[4] = {
74189
+ type: 4,
74190
+ index: 54
74191
+ }; // RNM(DIGIT)
74192
+
74193
+ /* non-zero-digit */
74194
+ this.rules[28].opcodes = [];
74195
+ this.rules[28].opcodes[0] = {
74196
+ type: 5,
74197
+ min: 49,
74198
+ max: 57
74199
+ }; // TRG
74200
+
74201
+ /* domain-av */
74202
+ this.rules[29].opcodes = [];
74203
+ this.rules[29].opcodes[0] = {
74204
+ type: 2,
74205
+ children: [1, 2]
74206
+ }; // CAT
74207
+ this.rules[29].opcodes[1] = {
74208
+ type: 7,
74209
+ string: [100, 111, 109, 97, 105, 110, 61]
74210
+ }; // TLS
74211
+ this.rules[29].opcodes[2] = {
74212
+ type: 4,
74213
+ index: 30
74214
+ }; // RNM(domain-value)
74215
+
74216
+ /* domain-value */
74217
+ this.rules[30].opcodes = [];
74218
+ this.rules[30].opcodes[0] = {
74219
+ type: 4,
74220
+ index: 37
74221
+ }; // RNM(subdomain)
74222
+
74223
+ /* path-av */
74224
+ this.rules[31].opcodes = [];
74225
+ this.rules[31].opcodes[0] = {
74226
+ type: 2,
74227
+ children: [1, 2]
74228
+ }; // CAT
74229
+ this.rules[31].opcodes[1] = {
74230
+ type: 7,
74231
+ string: [112, 97, 116, 104, 61]
74232
+ }; // TLS
74233
+ this.rules[31].opcodes[2] = {
74234
+ type: 4,
74235
+ index: 32
74236
+ }; // RNM(path-value)
74237
+
74238
+ /* path-value */
74239
+ this.rules[32].opcodes = [];
74240
+ this.rules[32].opcodes[0] = {
74241
+ type: 3,
74242
+ min: 0,
74243
+ max: Infinity
74244
+ }; // REP
74245
+ this.rules[32].opcodes[1] = {
74246
+ type: 4,
74247
+ index: 36
74248
+ }; // RNM(av-octet)
74249
+
74250
+ /* secure-av */
74251
+ this.rules[33].opcodes = [];
74252
+ this.rules[33].opcodes[0] = {
74253
+ type: 7,
74254
+ string: [115, 101, 99, 117, 114, 101]
74255
+ }; // TLS
74256
+
74257
+ /* httponly-av */
74258
+ this.rules[34].opcodes = [];
74259
+ this.rules[34].opcodes[0] = {
74260
+ type: 7,
74261
+ string: [104, 116, 116, 112, 111, 110, 108, 121]
74262
+ }; // TLS
74263
+
74264
+ /* extension-av */
74265
+ this.rules[35].opcodes = [];
74266
+ this.rules[35].opcodes[0] = {
74267
+ type: 3,
74268
+ min: 0,
74269
+ max: Infinity
74270
+ }; // REP
74271
+ this.rules[35].opcodes[1] = {
74272
+ type: 4,
74273
+ index: 36
74274
+ }; // RNM(av-octet)
74275
+
74276
+ /* av-octet */
74277
+ this.rules[36].opcodes = [];
74278
+ this.rules[36].opcodes[0] = {
74279
+ type: 1,
74280
+ children: [1, 2]
74281
+ }; // ALT
74282
+ this.rules[36].opcodes[1] = {
74283
+ type: 5,
74284
+ min: 32,
74285
+ max: 58
74286
+ }; // TRG
74287
+ this.rules[36].opcodes[2] = {
74288
+ type: 5,
74289
+ min: 60,
74290
+ max: 126
74291
+ }; // TRG
74292
+
74293
+ /* subdomain */
74294
+ this.rules[37].opcodes = [];
74295
+ this.rules[37].opcodes[0] = {
74296
+ type: 2,
74297
+ children: [1, 2]
74298
+ }; // CAT
74299
+ this.rules[37].opcodes[1] = {
74300
+ type: 4,
74301
+ index: 38
74302
+ }; // RNM(label)
74303
+ this.rules[37].opcodes[2] = {
74304
+ type: 3,
74305
+ min: 0,
74306
+ max: Infinity
74307
+ }; // REP
74308
+ this.rules[37].opcodes[3] = {
74309
+ type: 2,
74310
+ children: [4, 5]
74311
+ }; // CAT
74312
+ this.rules[37].opcodes[4] = {
74313
+ type: 7,
74314
+ string: [46]
74315
+ }; // TLS
74316
+ this.rules[37].opcodes[5] = {
74317
+ type: 4,
74318
+ index: 38
74319
+ }; // RNM(label)
74320
+
74321
+ /* label */
74322
+ this.rules[38].opcodes = [];
74323
+ this.rules[38].opcodes[0] = {
74324
+ type: 2,
74325
+ children: [1, 2]
74326
+ }; // CAT
74327
+ this.rules[38].opcodes[1] = {
74328
+ type: 4,
74329
+ index: 39
74330
+ }; // RNM(let-dig)
74331
+ this.rules[38].opcodes[2] = {
74332
+ type: 3,
74333
+ min: 0,
74334
+ max: Infinity
74335
+ }; // REP
74336
+ this.rules[38].opcodes[3] = {
74337
+ type: 2,
74338
+ children: [4, 6]
74339
+ }; // CAT
74340
+ this.rules[38].opcodes[4] = {
74341
+ type: 3,
74342
+ min: 0,
74343
+ max: Infinity
74344
+ }; // REP
74345
+ this.rules[38].opcodes[5] = {
74346
+ type: 7,
74347
+ string: [45]
74348
+ }; // TLS
74349
+ this.rules[38].opcodes[6] = {
74350
+ type: 4,
74351
+ index: 39
74352
+ }; // RNM(let-dig)
74353
+
74354
+ /* let-dig */
74355
+ this.rules[39].opcodes = [];
74356
+ this.rules[39].opcodes[0] = {
74357
+ type: 1,
74358
+ children: [1, 2]
74359
+ }; // ALT
74360
+ this.rules[39].opcodes[1] = {
74361
+ type: 4,
74362
+ index: 53
74363
+ }; // RNM(ALPHA)
74364
+ this.rules[39].opcodes[2] = {
74365
+ type: 4,
74366
+ index: 54
74367
+ }; // RNM(DIGIT)
74368
+
74369
+ /* rfc1123-date */
74370
+ this.rules[40].opcodes = [];
74371
+ this.rules[40].opcodes[0] = {
74372
+ type: 2,
74373
+ children: [1, 2, 3, 4, 5, 6, 7, 8]
74374
+ }; // CAT
74375
+ this.rules[40].opcodes[1] = {
74376
+ type: 4,
74377
+ index: 43
74378
+ }; // RNM(wkday)
74379
+ this.rules[40].opcodes[2] = {
74380
+ type: 7,
74381
+ string: [44]
74382
+ }; // TLS
74383
+ this.rules[40].opcodes[3] = {
74384
+ type: 4,
74385
+ index: 51
74386
+ }; // RNM(SP)
74387
+ this.rules[40].opcodes[4] = {
74388
+ type: 4,
74389
+ index: 41
74390
+ }; // RNM(date1)
74391
+ this.rules[40].opcodes[5] = {
74392
+ type: 4,
74393
+ index: 51
74394
+ }; // RNM(SP)
74395
+ this.rules[40].opcodes[6] = {
74396
+ type: 4,
74397
+ index: 42
74398
+ }; // RNM(time)
74399
+ this.rules[40].opcodes[7] = {
74400
+ type: 4,
74401
+ index: 51
74402
+ }; // RNM(SP)
74403
+ this.rules[40].opcodes[8] = {
74404
+ type: 6,
74405
+ string: [71, 77, 84]
74406
+ }; // TBS
74407
+
74408
+ /* date1 */
74409
+ this.rules[41].opcodes = [];
74410
+ this.rules[41].opcodes[0] = {
74411
+ type: 2,
74412
+ children: [1, 3, 4, 5, 6]
74413
+ }; // CAT
74414
+ this.rules[41].opcodes[1] = {
74415
+ type: 3,
74416
+ min: 2,
74417
+ max: 2
74418
+ }; // REP
74419
+ this.rules[41].opcodes[2] = {
74420
+ type: 4,
74421
+ index: 54
74422
+ }; // RNM(DIGIT)
74423
+ this.rules[41].opcodes[3] = {
74424
+ type: 4,
74425
+ index: 51
74426
+ }; // RNM(SP)
74427
+ this.rules[41].opcodes[4] = {
74428
+ type: 4,
74429
+ index: 44
74430
+ }; // RNM(month)
74431
+ this.rules[41].opcodes[5] = {
74432
+ type: 4,
74433
+ index: 51
74434
+ }; // RNM(SP)
74435
+ this.rules[41].opcodes[6] = {
74436
+ type: 3,
74437
+ min: 4,
74438
+ max: 4
74439
+ }; // REP
74440
+ this.rules[41].opcodes[7] = {
74441
+ type: 4,
74442
+ index: 54
74443
+ }; // RNM(DIGIT)
74444
+
74445
+ /* time */
74446
+ this.rules[42].opcodes = [];
74447
+ this.rules[42].opcodes[0] = {
74448
+ type: 2,
74449
+ children: [1, 3, 4, 6, 7]
74450
+ }; // CAT
74451
+ this.rules[42].opcodes[1] = {
74452
+ type: 3,
74453
+ min: 2,
74454
+ max: 2
74455
+ }; // REP
74456
+ this.rules[42].opcodes[2] = {
74457
+ type: 4,
74458
+ index: 54
74459
+ }; // RNM(DIGIT)
74460
+ this.rules[42].opcodes[3] = {
74461
+ type: 7,
74462
+ string: [58]
74463
+ }; // TLS
74464
+ this.rules[42].opcodes[4] = {
74465
+ type: 3,
74466
+ min: 2,
74467
+ max: 2
74468
+ }; // REP
74469
+ this.rules[42].opcodes[5] = {
74470
+ type: 4,
74471
+ index: 54
74472
+ }; // RNM(DIGIT)
74473
+ this.rules[42].opcodes[6] = {
74474
+ type: 7,
74475
+ string: [58]
74476
+ }; // TLS
74477
+ this.rules[42].opcodes[7] = {
74478
+ type: 3,
74479
+ min: 2,
74480
+ max: 2
74481
+ }; // REP
74482
+ this.rules[42].opcodes[8] = {
74483
+ type: 4,
74484
+ index: 54
74485
+ }; // RNM(DIGIT)
74486
+
74487
+ /* wkday */
74488
+ this.rules[43].opcodes = [];
74489
+ this.rules[43].opcodes[0] = {
74490
+ type: 1,
74491
+ children: [1, 2, 3, 4, 5, 6, 7]
74492
+ }; // ALT
74493
+ this.rules[43].opcodes[1] = {
74494
+ type: 6,
74495
+ string: [77, 111, 110]
74496
+ }; // TBS
74497
+ this.rules[43].opcodes[2] = {
74498
+ type: 6,
74499
+ string: [84, 117, 101]
74500
+ }; // TBS
74501
+ this.rules[43].opcodes[3] = {
74502
+ type: 6,
74503
+ string: [87, 101, 100]
74504
+ }; // TBS
74505
+ this.rules[43].opcodes[4] = {
74506
+ type: 6,
74507
+ string: [84, 104, 117]
74508
+ }; // TBS
74509
+ this.rules[43].opcodes[5] = {
74510
+ type: 6,
74511
+ string: [70, 114, 105]
74512
+ }; // TBS
74513
+ this.rules[43].opcodes[6] = {
74514
+ type: 6,
74515
+ string: [83, 97, 116]
74516
+ }; // TBS
74517
+ this.rules[43].opcodes[7] = {
74518
+ type: 6,
74519
+ string: [83, 117, 110]
74520
+ }; // TBS
74521
+
74522
+ /* month */
74523
+ this.rules[44].opcodes = [];
74524
+ this.rules[44].opcodes[0] = {
74525
+ type: 1,
74526
+ children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
74527
+ }; // ALT
74528
+ this.rules[44].opcodes[1] = {
74529
+ type: 6,
74530
+ string: [74, 97, 110]
74531
+ }; // TBS
74532
+ this.rules[44].opcodes[2] = {
74533
+ type: 6,
74534
+ string: [70, 101, 98]
74535
+ }; // TBS
74536
+ this.rules[44].opcodes[3] = {
74537
+ type: 6,
74538
+ string: [77, 97, 114]
74539
+ }; // TBS
74540
+ this.rules[44].opcodes[4] = {
74541
+ type: 6,
74542
+ string: [65, 112, 114]
74543
+ }; // TBS
74544
+ this.rules[44].opcodes[5] = {
74545
+ type: 6,
74546
+ string: [77, 97, 121]
74547
+ }; // TBS
74548
+ this.rules[44].opcodes[6] = {
74549
+ type: 6,
74550
+ string: [74, 117, 110]
74551
+ }; // TBS
74552
+ this.rules[44].opcodes[7] = {
74553
+ type: 6,
74554
+ string: [74, 117, 108]
74555
+ }; // TBS
74556
+ this.rules[44].opcodes[8] = {
74557
+ type: 6,
74558
+ string: [65, 117, 103]
74559
+ }; // TBS
74560
+ this.rules[44].opcodes[9] = {
74561
+ type: 6,
74562
+ string: [83, 101, 112]
74563
+ }; // TBS
74564
+ this.rules[44].opcodes[10] = {
74565
+ type: 6,
74566
+ string: [79, 99, 116]
74567
+ }; // TBS
74568
+ this.rules[44].opcodes[11] = {
74569
+ type: 6,
74570
+ string: [78, 111, 118]
74571
+ }; // TBS
74572
+ this.rules[44].opcodes[12] = {
74573
+ type: 6,
74574
+ string: [68, 101, 99]
74575
+ }; // TBS
74576
+
74577
+ /* OWS */
74578
+ this.rules[45].opcodes = [];
74579
+ this.rules[45].opcodes[0] = {
74580
+ type: 3,
74581
+ min: 0,
74582
+ max: Infinity
74583
+ }; // REP
74584
+ this.rules[45].opcodes[1] = {
74585
+ type: 2,
74586
+ children: [2, 4]
74587
+ }; // CAT
74588
+ this.rules[45].opcodes[2] = {
74589
+ type: 3,
74590
+ min: 0,
74591
+ max: 1
74592
+ }; // REP
74593
+ this.rules[45].opcodes[3] = {
74594
+ type: 4,
74595
+ index: 58
74596
+ }; // RNM(CRLF)
74597
+ this.rules[45].opcodes[4] = {
74598
+ type: 4,
74599
+ index: 56
74600
+ }; // RNM(WSP)
74601
+
74602
+ /* token */
74603
+ this.rules[46].opcodes = [];
74604
+ this.rules[46].opcodes[0] = {
74605
+ type: 3,
74606
+ min: 1,
74607
+ max: Infinity
74608
+ }; // REP
74609
+ this.rules[46].opcodes[1] = {
74610
+ type: 4,
74611
+ index: 47
74612
+ }; // RNM(tchar)
74613
+
74614
+ /* tchar */
74615
+ this.rules[47].opcodes = [];
74616
+ this.rules[47].opcodes[0] = {
74617
+ type: 1,
74618
+ children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
74619
+ }; // ALT
74620
+ this.rules[47].opcodes[1] = {
74621
+ type: 7,
74622
+ string: [33]
74623
+ }; // TLS
74624
+ this.rules[47].opcodes[2] = {
73180
74625
  type: 7,
73181
74626
  string: [35]
73182
74627
  }; // TLS
73183
- this.rules[16].opcodes[3] = {
74628
+ this.rules[47].opcodes[3] = {
73184
74629
  type: 7,
73185
74630
  string: [36]
73186
74631
  }; // TLS
73187
- this.rules[16].opcodes[4] = {
74632
+ this.rules[47].opcodes[4] = {
73188
74633
  type: 7,
73189
74634
  string: [37]
73190
74635
  }; // TLS
73191
- this.rules[16].opcodes[5] = {
74636
+ this.rules[47].opcodes[5] = {
73192
74637
  type: 7,
73193
74638
  string: [38]
73194
74639
  }; // TLS
73195
- this.rules[16].opcodes[6] = {
74640
+ this.rules[47].opcodes[6] = {
73196
74641
  type: 7,
73197
74642
  string: [39]
73198
74643
  }; // TLS
73199
- this.rules[16].opcodes[7] = {
74644
+ this.rules[47].opcodes[7] = {
73200
74645
  type: 7,
73201
74646
  string: [42]
73202
74647
  }; // TLS
73203
- this.rules[16].opcodes[8] = {
74648
+ this.rules[47].opcodes[8] = {
73204
74649
  type: 7,
73205
74650
  string: [43]
73206
74651
  }; // TLS
73207
- this.rules[16].opcodes[9] = {
74652
+ this.rules[47].opcodes[9] = {
73208
74653
  type: 7,
73209
74654
  string: [45]
73210
74655
  }; // TLS
73211
- this.rules[16].opcodes[10] = {
74656
+ this.rules[47].opcodes[10] = {
73212
74657
  type: 7,
73213
74658
  string: [46]
73214
74659
  }; // TLS
73215
- this.rules[16].opcodes[11] = {
74660
+ this.rules[47].opcodes[11] = {
73216
74661
  type: 7,
73217
74662
  string: [94]
73218
74663
  }; // TLS
73219
- this.rules[16].opcodes[12] = {
74664
+ this.rules[47].opcodes[12] = {
73220
74665
  type: 7,
73221
74666
  string: [95]
73222
74667
  }; // TLS
73223
- this.rules[16].opcodes[13] = {
74668
+ this.rules[47].opcodes[13] = {
73224
74669
  type: 7,
73225
74670
  string: [96]
73226
74671
  }; // TLS
73227
- this.rules[16].opcodes[14] = {
74672
+ this.rules[47].opcodes[14] = {
73228
74673
  type: 7,
73229
74674
  string: [124]
73230
74675
  }; // TLS
73231
- this.rules[16].opcodes[15] = {
74676
+ this.rules[47].opcodes[15] = {
73232
74677
  type: 7,
73233
74678
  string: [126]
73234
74679
  }; // TLS
73235
- this.rules[16].opcodes[16] = {
74680
+ this.rules[47].opcodes[16] = {
73236
74681
  type: 4,
73237
- index: 23
74682
+ index: 54
73238
74683
  }; // RNM(DIGIT)
73239
- this.rules[16].opcodes[17] = {
74684
+ this.rules[47].opcodes[17] = {
73240
74685
  type: 4,
73241
- index: 22
74686
+ index: 53
73242
74687
  }; // RNM(ALPHA)
73243
74688
 
73244
74689
  /* CHAR */
73245
- this.rules[17].opcodes = [];
73246
- this.rules[17].opcodes[0] = {
74690
+ this.rules[48].opcodes = [];
74691
+ this.rules[48].opcodes[0] = {
73247
74692
  type: 5,
73248
74693
  min: 1,
73249
74694
  max: 127
73250
74695
  }; // TRG
73251
74696
 
73252
74697
  /* CTL */
73253
- this.rules[18].opcodes = [];
73254
- this.rules[18].opcodes[0] = {
74698
+ this.rules[49].opcodes = [];
74699
+ this.rules[49].opcodes[0] = {
73255
74700
  type: 1,
73256
74701
  children: [1, 2]
73257
74702
  }; // ALT
73258
- this.rules[18].opcodes[1] = {
74703
+ this.rules[49].opcodes[1] = {
73259
74704
  type: 5,
73260
74705
  min: 0,
73261
74706
  max: 31
73262
74707
  }; // TRG
73263
- this.rules[18].opcodes[2] = {
74708
+ this.rules[49].opcodes[2] = {
73264
74709
  type: 6,
73265
74710
  string: [127]
73266
74711
  }; // TBS
73267
74712
 
73268
74713
  /* separators */
73269
- this.rules[19].opcodes = [];
73270
- this.rules[19].opcodes[0] = {
74714
+ this.rules[50].opcodes = [];
74715
+ this.rules[50].opcodes[0] = {
73271
74716
  type: 1,
73272
74717
  children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
73273
74718
  }; // ALT
73274
- this.rules[19].opcodes[1] = {
74719
+ this.rules[50].opcodes[1] = {
73275
74720
  type: 7,
73276
74721
  string: [40]
73277
74722
  }; // TLS
73278
- this.rules[19].opcodes[2] = {
74723
+ this.rules[50].opcodes[2] = {
73279
74724
  type: 7,
73280
74725
  string: [41]
73281
74726
  }; // TLS
73282
- this.rules[19].opcodes[3] = {
74727
+ this.rules[50].opcodes[3] = {
73283
74728
  type: 7,
73284
74729
  string: [60]
73285
74730
  }; // TLS
73286
- this.rules[19].opcodes[4] = {
74731
+ this.rules[50].opcodes[4] = {
73287
74732
  type: 7,
73288
74733
  string: [62]
73289
74734
  }; // TLS
73290
- this.rules[19].opcodes[5] = {
74735
+ this.rules[50].opcodes[5] = {
73291
74736
  type: 7,
73292
74737
  string: [64]
73293
74738
  }; // TLS
73294
- this.rules[19].opcodes[6] = {
74739
+ this.rules[50].opcodes[6] = {
73295
74740
  type: 7,
73296
74741
  string: [44]
73297
74742
  }; // TLS
73298
- this.rules[19].opcodes[7] = {
74743
+ this.rules[50].opcodes[7] = {
73299
74744
  type: 7,
73300
74745
  string: [59]
73301
74746
  }; // TLS
73302
- this.rules[19].opcodes[8] = {
74747
+ this.rules[50].opcodes[8] = {
73303
74748
  type: 7,
73304
74749
  string: [58]
73305
74750
  }; // TLS
73306
- this.rules[19].opcodes[9] = {
74751
+ this.rules[50].opcodes[9] = {
73307
74752
  type: 7,
73308
74753
  string: [92]
73309
74754
  }; // TLS
73310
- this.rules[19].opcodes[10] = {
74755
+ this.rules[50].opcodes[10] = {
73311
74756
  type: 6,
73312
74757
  string: [34]
73313
74758
  }; // TBS
73314
- this.rules[19].opcodes[11] = {
74759
+ this.rules[50].opcodes[11] = {
73315
74760
  type: 7,
73316
74761
  string: [47]
73317
74762
  }; // TLS
73318
- this.rules[19].opcodes[12] = {
74763
+ this.rules[50].opcodes[12] = {
73319
74764
  type: 7,
73320
74765
  string: [91]
73321
74766
  }; // TLS
73322
- this.rules[19].opcodes[13] = {
74767
+ this.rules[50].opcodes[13] = {
73323
74768
  type: 7,
73324
74769
  string: [93]
73325
74770
  }; // TLS
73326
- this.rules[19].opcodes[14] = {
74771
+ this.rules[50].opcodes[14] = {
73327
74772
  type: 7,
73328
74773
  string: [63]
73329
74774
  }; // TLS
73330
- this.rules[19].opcodes[15] = {
74775
+ this.rules[50].opcodes[15] = {
73331
74776
  type: 7,
73332
74777
  string: [61]
73333
74778
  }; // TLS
73334
- this.rules[19].opcodes[16] = {
74779
+ this.rules[50].opcodes[16] = {
73335
74780
  type: 7,
73336
74781
  string: [123]
73337
74782
  }; // TLS
73338
- this.rules[19].opcodes[17] = {
74783
+ this.rules[50].opcodes[17] = {
73339
74784
  type: 7,
73340
74785
  string: [125]
73341
74786
  }; // TLS
73342
- this.rules[19].opcodes[18] = {
74787
+ this.rules[50].opcodes[18] = {
73343
74788
  type: 4,
73344
- index: 20
74789
+ index: 51
73345
74790
  }; // RNM(SP)
73346
- this.rules[19].opcodes[19] = {
74791
+ this.rules[50].opcodes[19] = {
73347
74792
  type: 4,
73348
- index: 21
74793
+ index: 52
73349
74794
  }; // RNM(HT)
73350
74795
 
73351
74796
  /* SP */
73352
- this.rules[20].opcodes = [];
73353
- this.rules[20].opcodes[0] = {
74797
+ this.rules[51].opcodes = [];
74798
+ this.rules[51].opcodes[0] = {
73354
74799
  type: 6,
73355
74800
  string: [32]
73356
74801
  }; // TBS
73357
74802
 
73358
74803
  /* HT */
73359
- this.rules[21].opcodes = [];
73360
- this.rules[21].opcodes[0] = {
74804
+ this.rules[52].opcodes = [];
74805
+ this.rules[52].opcodes[0] = {
73361
74806
  type: 6,
73362
74807
  string: [9]
73363
74808
  }; // TBS
73364
74809
 
73365
74810
  /* ALPHA */
73366
- this.rules[22].opcodes = [];
73367
- this.rules[22].opcodes[0] = {
74811
+ this.rules[53].opcodes = [];
74812
+ this.rules[53].opcodes[0] = {
73368
74813
  type: 1,
73369
74814
  children: [1, 2]
73370
74815
  }; // ALT
73371
- this.rules[22].opcodes[1] = {
74816
+ this.rules[53].opcodes[1] = {
73372
74817
  type: 5,
73373
74818
  min: 65,
73374
74819
  max: 90
73375
74820
  }; // TRG
73376
- this.rules[22].opcodes[2] = {
74821
+ this.rules[53].opcodes[2] = {
73377
74822
  type: 5,
73378
74823
  min: 97,
73379
74824
  max: 122
73380
74825
  }; // TRG
73381
74826
 
73382
74827
  /* DIGIT */
73383
- this.rules[23].opcodes = [];
73384
- this.rules[23].opcodes[0] = {
74828
+ this.rules[54].opcodes = [];
74829
+ this.rules[54].opcodes[0] = {
73385
74830
  type: 5,
73386
74831
  min: 48,
73387
74832
  max: 57
73388
74833
  }; // TRG
73389
74834
 
73390
74835
  /* DQUOTE */
73391
- this.rules[24].opcodes = [];
73392
- this.rules[24].opcodes[0] = {
74836
+ this.rules[55].opcodes = [];
74837
+ this.rules[55].opcodes[0] = {
73393
74838
  type: 6,
73394
74839
  string: [34]
73395
74840
  }; // TBS
73396
74841
 
73397
74842
  /* WSP */
73398
- this.rules[25].opcodes = [];
73399
- this.rules[25].opcodes[0] = {
74843
+ this.rules[56].opcodes = [];
74844
+ this.rules[56].opcodes[0] = {
73400
74845
  type: 1,
73401
74846
  children: [1, 2]
73402
74847
  }; // ALT
73403
- this.rules[25].opcodes[1] = {
74848
+ this.rules[56].opcodes[1] = {
73404
74849
  type: 4,
73405
- index: 20
74850
+ index: 51
73406
74851
  }; // RNM(SP)
73407
- this.rules[25].opcodes[2] = {
74852
+ this.rules[56].opcodes[2] = {
73408
74853
  type: 4,
73409
- index: 26
74854
+ index: 57
73410
74855
  }; // RNM(HTAB)
73411
74856
 
73412
74857
  /* HTAB */
73413
- this.rules[26].opcodes = [];
73414
- this.rules[26].opcodes[0] = {
74858
+ this.rules[57].opcodes = [];
74859
+ this.rules[57].opcodes[0] = {
73415
74860
  type: 6,
73416
74861
  string: [9]
73417
74862
  }; // TBS
73418
74863
 
73419
74864
  /* CRLF */
73420
- this.rules[27].opcodes = [];
73421
- this.rules[27].opcodes[0] = {
74865
+ this.rules[58].opcodes = [];
74866
+ this.rules[58].opcodes[0] = {
73422
74867
  type: 2,
73423
74868
  children: [1, 2]
73424
74869
  }; // CAT
73425
- this.rules[27].opcodes[1] = {
74870
+ this.rules[58].opcodes[1] = {
73426
74871
  type: 4,
73427
- index: 28
74872
+ index: 59
73428
74873
  }; // RNM(CR)
73429
- this.rules[27].opcodes[2] = {
74874
+ this.rules[58].opcodes[2] = {
73430
74875
  type: 4,
73431
- index: 29
74876
+ index: 60
73432
74877
  }; // RNM(LF)
73433
74878
 
73434
74879
  /* CR */
73435
- this.rules[28].opcodes = [];
73436
- this.rules[28].opcodes[0] = {
74880
+ this.rules[59].opcodes = [];
74881
+ this.rules[59].opcodes[0] = {
73437
74882
  type: 6,
73438
74883
  string: [13]
73439
74884
  }; // TBS
73440
74885
 
73441
74886
  /* LF */
73442
- this.rules[29].opcodes = [];
73443
- this.rules[29].opcodes[0] = {
74887
+ this.rules[60].opcodes = [];
74888
+ this.rules[60].opcodes[0] = {
73444
74889
  type: 6,
73445
74890
  string: [10]
73446
74891
  }; // TBS
@@ -73460,6 +74905,19 @@ function grammar() {
73460
74905
  str += "lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n";
73461
74906
  str += " ; Allow all printable characters except CTLs, semicolon and SP\n";
73462
74907
  str += "\n";
74908
+ str += "; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n";
74909
+ str += "; following parsing algorithm of https://datatracker.ietf.org/doc/html/rfc6265#section-5.2\n";
74910
+ str += "lenient-set-cookie-string = lenient-set-cookie-pair *( \";\" lenient-cookie-av )\n";
74911
+ str += "lenient-set-cookie-pair = *WSP lenient-set-cookie-name *WSP \"=\" *WSP lenient-set-cookie-value *WSP\n";
74912
+ str += "lenient-set-cookie-name = lenient-name-char *( *WSP lenient-name-char ) ; leading and trailing WSP is not part of the name\n";
74913
+ str += "lenient-set-cookie-value = [ lenient-value-char *( *WSP lenient-value-char ) ] ; leading and trailing WSP is not part of the value\n";
74914
+ str += "lenient-cookie-av = *WSP lenient-cookie-av-name *WSP [ \"=\" *WSP lenient-cookie-av-value *WSP ]\n";
74915
+ str += "lenient-cookie-av-name = [ lenient-name-char *( *WSP lenient-name-char ) ]\n";
74916
+ str += "lenient-cookie-av-value = [ lenient-value-char *( *WSP lenient-value-char ) ]\n";
74917
+ str += "; CTLs (except HTAB) are not allowed, as they are not allowed in HTTP field values (https://www.rfc-editor.org/rfc/rfc9110#section-5.5)\n";
74918
+ str += "lenient-name-char = %x21-3A / %x3C / %x3E-7E / %x80-10FFFF ; any CHAR except CTLs, WSP, \";\" and \"=\"\n";
74919
+ str += "lenient-value-char = %x21-3A / %x3C-7E / %x80-10FFFF ; any CHAR except CTLs, WSP and \";\"\n";
74920
+ str += "\n";
73463
74921
  str += "; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n";
73464
74922
  str += "cookie-string = cookie-pair *( \";\" SP cookie-pair )\n";
73465
74923
  str += "\n";
@@ -73474,6 +74932,64 @@ function grammar() {
73474
74932
  str += " ; whitespace, DQUOTE, comma, semicolon,\n";
73475
74933
  str += " ; and backslash\n";
73476
74934
  str += "\n";
74935
+ str += "; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n";
74936
+ str += "set-cookie-string = cookie-pair *( \";\" SP cookie-av )\n";
74937
+ str += "cookie-av = extension-av\n";
74938
+ str += " ; MODIFICATION: originally\n";
74939
+ str += " ; cookie-av = expires-av / max-age-av / domain-av /\n";
74940
+ str += " ; path-av / secure-av / httponly-av /\n";
74941
+ str += " ; extension-av\n";
74942
+ str += " ; All the alternatives are subsets of extension-av. Parsers processing alternatives\n";
74943
+ str += " ; left-to-right without backtracking would commit to a partial match of a specific\n";
74944
+ str += " ; alternative (e.g. \"Secure \" or \"Max-Age=60 \") and fail, instead of matching extension-av.\n";
74945
+ str += "expires-av = \"Expires=\" sane-cookie-date\n";
74946
+ str += "sane-cookie-date = rfc1123-date\n";
74947
+ str += " ; defined in [RFC2616], Section 3.3.1\n";
74948
+ str += "max-age-av = \"Max-Age=\" non-zero-digit *DIGIT\n";
74949
+ str += " ; In practice, both expires-av and max-age-av\n";
74950
+ str += " ; are limited to dates representable by the\n";
74951
+ str += " ; user agent.\n";
74952
+ str += "non-zero-digit = %x31-39\n";
74953
+ str += " ; digits 1 through 9\n";
74954
+ str += "domain-av = \"Domain=\" domain-value\n";
74955
+ str += "domain-value = subdomain\n";
74956
+ str += " ; defined in [RFC1034], Section 3.5, as\n";
74957
+ str += " ; enhanced by [RFC1123], Section 2.1\n";
74958
+ str += "path-av = \"Path=\" path-value\n";
74959
+ str += "path-value = *av-octet\n";
74960
+ str += " ; https://www.rfc-editor.org/errata/eid3444\n";
74961
+ str += "secure-av = \"Secure\"\n";
74962
+ str += "httponly-av = \"HttpOnly\"\n";
74963
+ str += "extension-av = *av-octet\n";
74964
+ str += " ; https://www.rfc-editor.org/errata/eid3444\n";
74965
+ str += "av-octet = %x20-3A / %x3C-7E\n";
74966
+ str += " ; any CHAR except CTLs or \";\"\n";
74967
+ str += "\n";
74968
+ str += "; https://datatracker.ietf.org/doc/html/rfc1034#section-3.5\n";
74969
+ str += "; https://datatracker.ietf.org/doc/html/rfc1123#section-2.1\n";
74970
+ str += "subdomain = label *( \".\" label )\n";
74971
+ str += "label = let-dig *( *\"-\" let-dig )\n";
74972
+ str += " ; MODIFICATION: originally\n";
74973
+ str += " ; <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]\n";
74974
+ str += " ; <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n";
74975
+ str += " ; <let-dig-hyp> ::= <let-dig> | \"-\"\n";
74976
+ str += " ; RFC 1123 allows the first character to be either a letter or a digit.\n";
74977
+ str += " ; Rewritten as an equivalent grammar, as greedy repetition doesn't backtrack.\n";
74978
+ str += "let-dig = ALPHA / DIGIT\n";
74979
+ str += "\n";
74980
+ str += "; https://datatracker.ietf.org/doc/html/rfc2616#section-3.3.1\n";
74981
+ str += "; HTTP-date is case sensitive\n";
74982
+ str += "rfc1123-date = wkday \",\" SP date1 SP time SP %s\"GMT\"\n";
74983
+ str += "date1 = 2DIGIT SP month SP 4DIGIT\n";
74984
+ str += " ; day month year (e.g., 02 Jun 1982)\n";
74985
+ str += "time = 2DIGIT \":\" 2DIGIT \":\" 2DIGIT\n";
74986
+ str += " ; 00:00:00 - 23:59:59\n";
74987
+ str += "wkday = %s\"Mon\" / %s\"Tue\" / %s\"Wed\"\n";
74988
+ str += " / %s\"Thu\" / %s\"Fri\" / %s\"Sat\" / %s\"Sun\"\n";
74989
+ str += "month = %s\"Jan\" / %s\"Feb\" / %s\"Mar\" / %s\"Apr\"\n";
74990
+ str += " / %s\"May\" / %s\"Jun\" / %s\"Jul\" / %s\"Aug\"\n";
74991
+ str += " / %s\"Sep\" / %s\"Oct\" / %s\"Nov\" / %s\"Dec\"\n";
74992
+ str += "\n";
73477
74993
  str += "; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\n";
73478
74994
  str += "OWS = *( [ CRLF ] WSP ) ; \"optional\" whitespace\n";
73479
74995
  str += "\n";
@@ -73512,44 +75028,102 @@ function grammar() {
73512
75028
  "use strict";
73513
75029
  __webpack_require__.r(__webpack_exports__);
73514
75030
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
75031
+ /* harmony export */ ASTTranslator: () => (/* reexport safe */ _cookie_parse_translators_ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
75032
+ /* harmony export */ CSTTranslator: () => (/* reexport safe */ _cookie_parse_translators_CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]),
75033
+ /* harmony export */ CookieError: () => (/* reexport safe */ _errors_CookieError_mjs__WEBPACK_IMPORTED_MODULE_38__["default"]),
75034
+ /* harmony export */ CookieParseError: () => (/* reexport safe */ _errors_CookieParseError_mjs__WEBPACK_IMPORTED_MODULE_39__["default"]),
75035
+ /* harmony export */ EntriesTranslator: () => (/* reexport safe */ _cookie_parse_translators_EntriesTranslator_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
73515
75036
  /* harmony export */ Grammar: () => (/* reexport safe */ _grammar_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]),
73516
- /* harmony export */ base64Encoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_base64_node_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]),
73517
- /* harmony export */ base64urlEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_base64url_node_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
73518
- /* harmony export */ cookieNameLenientPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_name_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
73519
- /* harmony export */ cookieNameLenientValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_name_lenient_mjs__WEBPACK_IMPORTED_MODULE_14__["default"]),
73520
- /* harmony export */ cookieNameStrictPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_name_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
73521
- /* harmony export */ cookieNameStrictValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_name_strict_mjs__WEBPACK_IMPORTED_MODULE_13__["default"]),
73522
- /* harmony export */ cookieValueLenientBase64Encoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_lenient_base64_mjs__WEBPACK_IMPORTED_MODULE_11__["default"]),
73523
- /* harmony export */ cookieValueLenientBase64urlEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_lenient_base64url_mjs__WEBPACK_IMPORTED_MODULE_12__["default"]),
73524
- /* harmony export */ cookieValueLenientPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_10__["default"]),
73525
- /* harmony export */ cookieValueLenientValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_value_lenient_mjs__WEBPACK_IMPORTED_MODULE_16__["default"]),
73526
- /* harmony export */ cookieValueStrictBase64Encoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_strict_base64_mjs__WEBPACK_IMPORTED_MODULE_8__["default"]),
73527
- /* harmony export */ cookieValueStrictBase64urlEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_strict_base64url_mjs__WEBPACK_IMPORTED_MODULE_9__["default"]),
73528
- /* harmony export */ cookieValueStrictPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
73529
- /* harmony export */ cookieValueStrictValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_value_strict_mjs__WEBPACK_IMPORTED_MODULE_15__["default"]),
73530
- /* harmony export */ identity: () => (/* reexport safe */ _utils_mjs__WEBPACK_IMPORTED_MODULE_17__.identity),
73531
- /* harmony export */ noop: () => (/* reexport safe */ _utils_mjs__WEBPACK_IMPORTED_MODULE_17__.noop),
75037
+ /* harmony export */ ListTranslator: () => (/* reexport safe */ _cookie_parse_translators_ListTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]),
75038
+ /* harmony export */ ObjectTranslator: () => (/* reexport safe */ _cookie_parse_translators_ObjectTranslator_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
75039
+ /* harmony export */ Trace: () => (/* reexport safe */ _cookie_parse_trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_8__["default"]),
75040
+ /* harmony export */ XMLTranslator: () => (/* reexport safe */ _cookie_parse_translators_XMLTranslator_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
75041
+ /* harmony export */ base64Decoder: () => (/* reexport safe */ _set_cookie_parse_decoders_base64_node_mjs__WEBPACK_IMPORTED_MODULE_26__["default"]),
75042
+ /* harmony export */ base64Encoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_base64_node_mjs__WEBPACK_IMPORTED_MODULE_16__["default"]),
75043
+ /* harmony export */ base64urlDecoder: () => (/* reexport safe */ _set_cookie_parse_decoders_base64url_node_mjs__WEBPACK_IMPORTED_MODULE_27__["default"]),
75044
+ /* harmony export */ base64urlEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_base64url_node_mjs__WEBPACK_IMPORTED_MODULE_17__["default"]),
75045
+ /* harmony export */ cookieNameLenientPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_name_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_19__["default"]),
75046
+ /* harmony export */ cookieNameLenientValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_name_lenient_mjs__WEBPACK_IMPORTED_MODULE_34__["default"]),
75047
+ /* harmony export */ cookieNamePercentDecoder: () => (/* reexport safe */ _set_cookie_parse_decoders_cookie_name_percent_mjs__WEBPACK_IMPORTED_MODULE_28__["default"]),
75048
+ /* harmony export */ cookieNameStrictPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_name_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_18__["default"]),
75049
+ /* harmony export */ cookieNameStrictValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_name_strict_mjs__WEBPACK_IMPORTED_MODULE_33__["default"]),
75050
+ /* harmony export */ cookieValueBase64Decoder: () => (/* reexport safe */ _set_cookie_parse_decoders_cookie_value_base64_mjs__WEBPACK_IMPORTED_MODULE_30__["default"]),
75051
+ /* harmony export */ cookieValueBase64urlDecoder: () => (/* reexport safe */ _set_cookie_parse_decoders_cookie_value_base64url_mjs__WEBPACK_IMPORTED_MODULE_31__["default"]),
75052
+ /* harmony export */ cookieValueLenientBase64Encoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_lenient_base64_mjs__WEBPACK_IMPORTED_MODULE_24__["default"]),
75053
+ /* harmony export */ cookieValueLenientBase64urlEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_lenient_base64url_mjs__WEBPACK_IMPORTED_MODULE_25__["default"]),
75054
+ /* harmony export */ cookieValueLenientPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_23__["default"]),
75055
+ /* harmony export */ cookieValueLenientValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_value_lenient_mjs__WEBPACK_IMPORTED_MODULE_36__["default"]),
75056
+ /* harmony export */ cookieValuePercentDecoder: () => (/* reexport safe */ _set_cookie_parse_decoders_cookie_value_percent_mjs__WEBPACK_IMPORTED_MODULE_29__["default"]),
75057
+ /* harmony export */ cookieValueRotatingDecoder: () => (/* reexport safe */ _set_cookie_parse_decoders_cookie_value_rotating_mjs__WEBPACK_IMPORTED_MODULE_32__["default"]),
75058
+ /* harmony export */ cookieValueStrictBase64Encoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_strict_base64_mjs__WEBPACK_IMPORTED_MODULE_21__["default"]),
75059
+ /* harmony export */ cookieValueStrictBase64urlEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_strict_base64url_mjs__WEBPACK_IMPORTED_MODULE_22__["default"]),
75060
+ /* harmony export */ cookieValueStrictPercentEncoder: () => (/* reexport safe */ _set_cookie_serialize_encoders_cookie_value_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_20__["default"]),
75061
+ /* harmony export */ cookieValueStrictValidator: () => (/* reexport safe */ _set_cookie_serialize_validators_cookie_value_strict_mjs__WEBPACK_IMPORTED_MODULE_35__["default"]),
75062
+ /* harmony export */ createCookieValueRotatingDecoder: () => (/* reexport safe */ _set_cookie_parse_decoders_cookie_value_rotating_mjs__WEBPACK_IMPORTED_MODULE_32__.createCookieValueRotatingDecoder),
75063
+ /* harmony export */ identity: () => (/* reexport safe */ _utils_mjs__WEBPACK_IMPORTED_MODULE_37__.identity),
75064
+ /* harmony export */ noop: () => (/* reexport safe */ _utils_mjs__WEBPACK_IMPORTED_MODULE_37__.noop),
73532
75065
  /* harmony export */ parseCookie: () => (/* reexport safe */ _cookie_parse_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]),
73533
- /* harmony export */ serializeCookie: () => (/* reexport safe */ _cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])
75066
+ /* harmony export */ parseSetCookie: () => (/* reexport safe */ _set_cookie_parse_index_mjs__WEBPACK_IMPORTED_MODULE_13__["default"]),
75067
+ /* harmony export */ serializeCookie: () => (/* reexport safe */ _cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_12__["default"]),
75068
+ /* harmony export */ serializeSetCookie: () => (/* reexport safe */ _set_cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_15__["default"]),
75069
+ /* harmony export */ testCookie: () => (/* reexport safe */ _cookie_test_index_mjs__WEBPACK_IMPORTED_MODULE_9__["default"]),
75070
+ /* harmony export */ testCookieName: () => (/* reexport safe */ _cookie_test_cookie_name_mjs__WEBPACK_IMPORTED_MODULE_10__["default"]),
75071
+ /* harmony export */ testCookieValue: () => (/* reexport safe */ _cookie_test_cookie_value_mjs__WEBPACK_IMPORTED_MODULE_11__["default"]),
75072
+ /* harmony export */ testSetCookie: () => (/* reexport safe */ _set_cookie_test_index_mjs__WEBPACK_IMPORTED_MODULE_14__["default"])
73534
75073
  /* harmony export */ });
73535
75074
  /* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67789);
73536
75075
  /* harmony import */ var _cookie_parse_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5789);
73537
- /* harmony import */ var _cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70074);
73538
- /* harmony import */ var _set_cookie_serialize_encoders_base64_node_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99710);
73539
- /* harmony import */ var _set_cookie_serialize_encoders_base64url_node_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5221);
73540
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_name_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25753);
73541
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_name_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64871);
73542
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8655);
73543
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_strict_base64_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29057);
73544
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_strict_base64url_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1428);
73545
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(20541);
73546
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_lenient_base64_mjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(93083);
73547
- /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_lenient_base64url_mjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34822);
73548
- /* harmony import */ var _set_cookie_serialize_validators_cookie_name_strict_mjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(46319);
73549
- /* harmony import */ var _set_cookie_serialize_validators_cookie_name_lenient_mjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(74297);
73550
- /* harmony import */ var _set_cookie_serialize_validators_cookie_value_strict_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(77901);
73551
- /* harmony import */ var _set_cookie_serialize_validators_cookie_value_lenient_mjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(55959);
73552
- /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(93913);
75076
+ /* harmony import */ var _cookie_parse_translators_ListTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14485);
75077
+ /* harmony import */ var _cookie_parse_translators_CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66785);
75078
+ /* harmony import */ var _cookie_parse_translators_ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48359);
75079
+ /* harmony import */ var _cookie_parse_translators_XMLTranslator_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(22188);
75080
+ /* harmony import */ var _cookie_parse_translators_ObjectTranslator_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(69292);
75081
+ /* harmony import */ var _cookie_parse_translators_EntriesTranslator_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1943);
75082
+ /* harmony import */ var _cookie_parse_trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20084);
75083
+ /* harmony import */ var _cookie_test_index_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1106);
75084
+ /* harmony import */ var _cookie_test_cookie_name_mjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(16552);
75085
+ /* harmony import */ var _cookie_test_cookie_value_mjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(23396);
75086
+ /* harmony import */ var _cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(70074);
75087
+ /* harmony import */ var _set_cookie_parse_index_mjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(24912);
75088
+ /* harmony import */ var _set_cookie_test_index_mjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2809);
75089
+ /* harmony import */ var _set_cookie_serialize_index_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(51575);
75090
+ /* harmony import */ var _set_cookie_serialize_encoders_base64_node_mjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(99710);
75091
+ /* harmony import */ var _set_cookie_serialize_encoders_base64url_node_mjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(5221);
75092
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_name_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(25753);
75093
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_name_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(64871);
75094
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_strict_percent_mjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(8655);
75095
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_strict_base64_mjs__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29057);
75096
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_strict_base64url_mjs__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(1428);
75097
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_lenient_percent_mjs__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(20541);
75098
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_lenient_base64_mjs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(93083);
75099
+ /* harmony import */ var _set_cookie_serialize_encoders_cookie_value_lenient_base64url_mjs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(34822);
75100
+ /* harmony import */ var _set_cookie_parse_decoders_base64_node_mjs__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(75213);
75101
+ /* harmony import */ var _set_cookie_parse_decoders_base64url_node_mjs__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(89452);
75102
+ /* harmony import */ var _set_cookie_parse_decoders_cookie_name_percent_mjs__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(39248);
75103
+ /* harmony import */ var _set_cookie_parse_decoders_cookie_value_percent_mjs__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(30516);
75104
+ /* harmony import */ var _set_cookie_parse_decoders_cookie_value_base64_mjs__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(39092);
75105
+ /* harmony import */ var _set_cookie_parse_decoders_cookie_value_base64url_mjs__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(49963);
75106
+ /* harmony import */ var _set_cookie_parse_decoders_cookie_value_rotating_mjs__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(42965);
75107
+ /* harmony import */ var _set_cookie_serialize_validators_cookie_name_strict_mjs__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(46319);
75108
+ /* harmony import */ var _set_cookie_serialize_validators_cookie_name_lenient_mjs__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(74297);
75109
+ /* harmony import */ var _set_cookie_serialize_validators_cookie_value_strict_mjs__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(77901);
75110
+ /* harmony import */ var _set_cookie_serialize_validators_cookie_value_lenient_mjs__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(55959);
75111
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(93913);
75112
+ /* harmony import */ var _errors_CookieError_mjs__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(43998);
75113
+ /* harmony import */ var _errors_CookieParseError_mjs__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(33625);
75114
+
75115
+
75116
+
75117
+
75118
+
75119
+
75120
+
75121
+
75122
+
75123
+
75124
+
75125
+
75126
+
73553
75127
 
73554
75128
 
73555
75129
 
@@ -73566,6 +75140,16 @@ __webpack_require__.r(__webpack_exports__);
73566
75140
 
73567
75141
 
73568
75142
 
75143
+ /**
75144
+ * Decoders
75145
+ */
75146
+
75147
+
75148
+
75149
+
75150
+
75151
+
75152
+
73569
75153
  /**
73570
75154
  * Validators
73571
75155
  */
@@ -73577,6 +75161,575 @@ __webpack_require__.r(__webpack_exports__);
73577
75161
  * Utils
73578
75162
  */
73579
75163
 
75164
+ /**
75165
+ * Errors
75166
+ */
75167
+
75168
+
75169
+
75170
+ /***/ },
75171
+
75172
+ /***/ 15711
75173
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75174
+
75175
+ "use strict";
75176
+ __webpack_require__.r(__webpack_exports__);
75177
+ /* harmony import */ var _cookie_date_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66843);
75178
+
75179
+ /**
75180
+ * Interprets cookie-av following https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.
75181
+ * Attribute names are matched case-insensitively. Attributes with values that cannot be processed
75182
+ * are ignored. When attribute appears multiple times, the last one wins.
75183
+ * SameSite, Partitioned and Priority are not part of RFC 6265, but are recognized as well.
75184
+ */
75185
+ const trimWSP = value => value.replace(/^[\t ]+|[\t ]+$/g, '');
75186
+ const sameSiteValues = {
75187
+ strict: 'strict',
75188
+ lax: 'lax',
75189
+ none: 'none'
75190
+ };
75191
+ const priorityValues = {
75192
+ low: 'low',
75193
+ medium: 'medium',
75194
+ high: 'high'
75195
+ };
75196
+ const processors = {
75197
+ // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.1
75198
+ expires: value => {
75199
+ const date = (0,_cookie_date_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(value);
75200
+ return date === undefined ? undefined : ['expires', date];
75201
+ },
75202
+ // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.2
75203
+ // values beyond safe integer range are clamped, -0 is normalized to 0
75204
+ 'max-age': value => {
75205
+ if (!/^-?\d+$/.test(value)) return undefined;
75206
+ const maxAge = Math.min(Math.max(Number(value), Number.MIN_SAFE_INTEGER), Number.MAX_SAFE_INTEGER);
75207
+ return ['maxAge', maxAge === 0 ? 0 : maxAge];
75208
+ },
75209
+ // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.3
75210
+ // empty domain (e.g. "Domain=.") means host-only cookie (https://datatracker.ietf.org/doc/html/rfc6265#section-5.3)
75211
+ domain: value => {
75212
+ if (value === '') return undefined;
75213
+ const domain = value.startsWith('.') ? value.slice(1) : value;
75214
+ return ['domain', domain === '' ? undefined : domain.toLowerCase()];
75215
+ },
75216
+ // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.4
75217
+ // empty path or path not starting with "/" means default-path, which depends on request-uri
75218
+ path: value => ['path', value.startsWith('/') ? value : undefined],
75219
+ // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.5
75220
+ secure: () => ['secure', true],
75221
+ // https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.6
75222
+ httponly: () => ['httpOnly', true],
75223
+ // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.6.7
75224
+ samesite: value => {
75225
+ const sameSite = sameSiteValues[value.toLowerCase()];
75226
+ return sameSite === undefined ? undefined : ['sameSite', sameSite];
75227
+ },
75228
+ // https://datatracker.ietf.org/doc/html/draft-cutler-httpbis-partitioned-cookies
75229
+ partitioned: () => ['partitioned', true],
75230
+ // https://datatracker.ietf.org/doc/html/draft-west-cookie-priority-00#section-4.1
75231
+ priority: value => {
75232
+ const priority = priorityValues[value.toLowerCase()];
75233
+ return priority === undefined ? undefined : ['priority', priority];
75234
+ }
75235
+ };
75236
+
75237
+ /**
75238
+ * @param {string[]} cookieAvs - list of raw cookie-av strings
75239
+ * @returns {{ attributes: Object, extensions: Array<{ name: string, value?: string }> }}
75240
+ */
75241
+ const interpretAttributes = cookieAvs => {
75242
+ const attributes = {};
75243
+ const extensions = [];
75244
+ for (const cookieAv of cookieAvs) {
75245
+ const separatorIndex = cookieAv.indexOf('=');
75246
+ const hasValue = separatorIndex !== -1;
75247
+ const name = trimWSP(hasValue ? cookieAv.slice(0, separatorIndex) : cookieAv);
75248
+ const value = hasValue ? trimWSP(cookieAv.slice(separatorIndex + 1)) : '';
75249
+
75250
+ // empty attributes, e.g. caused by trailing ";", are ignored
75251
+ if (name === '' && !hasValue) continue;
75252
+ const processor = Object.prototype.hasOwnProperty.call(processors, name.toLowerCase()) ? processors[name.toLowerCase()] : undefined;
75253
+ if (processor === undefined) {
75254
+ extensions.push(hasValue ? {
75255
+ type: 'CookieAttribute',
75256
+ name,
75257
+ value
75258
+ } : {
75259
+ type: 'CookieAttribute',
75260
+ name
75261
+ });
75262
+ continue;
75263
+ }
75264
+ const processed = processor(value);
75265
+ if (processed !== undefined) {
75266
+ const [attributeName, attributeValue] = processed;
75267
+ // undefined value resets attribute to its default, as the last attribute wins
75268
+ if (attributeValue === undefined) {
75269
+ delete attributes[attributeName];
75270
+ } else {
75271
+ attributes[attributeName] = attributeValue;
75272
+ }
75273
+ }
75274
+ }
75275
+ return {
75276
+ attributes,
75277
+ extensions
75278
+ };
75279
+ };
75280
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (interpretAttributes);
75281
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75282
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75283
+ /* harmony export */ ]);
75284
+
75285
+
75286
+ /***/ },
75287
+
75288
+ /***/ 66843
75289
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75290
+
75291
+ "use strict";
75292
+ __webpack_require__.r(__webpack_exports__);
75293
+ /**
75294
+ * Parses cookie-date using algorithm defined in https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.1.
75295
+ * The algorithm is lenient and recognizes various date formats used in the wild,
75296
+ * e.g. rfc1123-date, rfc850-date or asctime-date.
75297
+ *
75298
+ * @param {string} cookieDate
75299
+ * @returns {Date | undefined} - undefined when cookie-date cannot be parsed
75300
+ */
75301
+
75302
+ // eslint-disable-next-line no-control-regex
75303
+ const delimiter = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]+/;
75304
+ const timeProduction = /^(\d{1,2}):(\d{1,2}):(\d{1,2})(?:\D[\s\S]*)?$/;
75305
+ const dayOfMonthProduction = /^(\d{1,2})(?:\D[\s\S]*)?$/;
75306
+ const monthProduction = /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i;
75307
+ const yearProduction = /^(\d{2,4})(?:\D[\s\S]*)?$/;
75308
+ const months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
75309
+ const parseCookieDate = cookieDate => {
75310
+ const tokens = String(cookieDate).split(delimiter).filter(token => token.length > 0);
75311
+ let time;
75312
+ let dayOfMonth;
75313
+ let month;
75314
+ let year;
75315
+ for (const token of tokens) {
75316
+ let match;
75317
+ if (time === undefined && (match = timeProduction.exec(token)) !== null) {
75318
+ time = match.slice(1, 4).map(Number);
75319
+ } else if (dayOfMonth === undefined && (match = dayOfMonthProduction.exec(token)) !== null) {
75320
+ dayOfMonth = Number(match[1]);
75321
+ } else if (month === undefined && (match = monthProduction.exec(token)) !== null) {
75322
+ month = months.indexOf(match[1].toLowerCase());
75323
+ } else if (year === undefined && (match = yearProduction.exec(token)) !== null) {
75324
+ year = Number(match[1]);
75325
+ }
75326
+ }
75327
+ if (time === undefined || dayOfMonth === undefined || month === undefined) return undefined;
75328
+ if (year === undefined) return undefined;
75329
+ if (year >= 70 && year <= 99) year += 1900;
75330
+ if (year >= 0 && year <= 69) year += 2000;
75331
+ const [hour, minute, second] = time;
75332
+ if (dayOfMonth < 1 || dayOfMonth > 31) return undefined;
75333
+ if (year < 1601) return undefined;
75334
+ if (hour > 23 || minute > 59 || second > 59) return undefined;
75335
+ const date = new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));
75336
+
75337
+ // reject non-existent dates, e.g. 31 Feb
75338
+ if (date.getUTCMonth() !== month || date.getUTCDate() !== dayOfMonth) return undefined;
75339
+ return date;
75340
+ };
75341
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parseCookieDate);
75342
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75343
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75344
+ /* harmony export */ ]);
75345
+
75346
+
75347
+ /***/ },
75348
+
75349
+ /***/ 75213
75350
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75351
+
75352
+ "use strict";
75353
+ __webpack_require__.r(__webpack_exports__);
75354
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93913);
75355
+
75356
+ const base64Decoder = input => {
75357
+ const value = String(input);
75358
+ if (!(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.isBase64)(value)) {
75359
+ throw new TypeError('Input must be a base64 encoded string.');
75360
+ }
75361
+ const binaryString = atob(value);
75362
+
75363
+ // reject non-canonical encodings (e.g. non-zero padding bits)
75364
+ if (btoa(binaryString) !== value) {
75365
+ throw new TypeError('Input must be a canonically base64 encoded string.');
75366
+ }
75367
+ const bytes = new Uint8Array([...binaryString].map(char => char.charCodeAt(0)));
75368
+ return (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.decodeUTF8)(bytes);
75369
+ };
75370
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (base64Decoder);
75371
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75372
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75373
+ /* harmony export */ ]);
75374
+
75375
+
75376
+ /***/ },
75377
+
75378
+ /***/ 89452
75379
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75380
+
75381
+ "use strict";
75382
+ __webpack_require__.r(__webpack_exports__);
75383
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93913);
75384
+ /* harmony import */ var _base64_browser_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(75213);
75385
+
75386
+
75387
+ const base64urlDecoder = input => {
75388
+ const value = String(input);
75389
+ if (!(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.isBase64url)(value)) {
75390
+ throw new TypeError('Input must be a base64url encoded string.');
75391
+ }
75392
+ return (0,_base64_browser_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.toBase64)(value));
75393
+ };
75394
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (base64urlDecoder);
75395
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75396
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75397
+ /* harmony export */ ]);
75398
+
75399
+
75400
+ /***/ },
75401
+
75402
+ /***/ 39248
75403
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75404
+
75405
+ "use strict";
75406
+ __webpack_require__.r(__webpack_exports__);
75407
+ const cookieNamePercentDecoder = cookieName => {
75408
+ const value = String(cookieName);
75409
+ try {
75410
+ return decodeURIComponent(value);
75411
+ } catch (error) {
75412
+ throw new TypeError(`Invalid percent-encoded cookie name: ${value}`, {
75413
+ cause: error
75414
+ });
75415
+ }
75416
+ };
75417
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieNamePercentDecoder);
75418
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75419
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75420
+ /* harmony export */ ]);
75421
+
75422
+
75423
+ /***/ },
75424
+
75425
+ /***/ 39092
75426
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75427
+
75428
+ "use strict";
75429
+ __webpack_require__.r(__webpack_exports__);
75430
+ /* harmony import */ var _base64_node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75213);
75431
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93913);
75432
+
75433
+
75434
+ const cookieValueBase64Decoder = (cookieValue, decoder = _base64_node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]) => {
75435
+ const value = String(cookieValue);
75436
+
75437
+ // detect if the value is quoted
75438
+ const isQuoted = (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.isQuoted)(value);
75439
+
75440
+ // remove quotes if present for processing
75441
+ const valueToDecode = isQuoted ? (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.unquote)(value) : value;
75442
+
75443
+ // decode the value
75444
+ const result = decoder(valueToDecode);
75445
+
75446
+ // return quoted if input was quoted, unquoted otherwise
75447
+ return isQuoted ? (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.quote)(result) : result;
75448
+ };
75449
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieValueBase64Decoder);
75450
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75451
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75452
+ /* harmony export */ ]);
75453
+
75454
+
75455
+ /***/ },
75456
+
75457
+ /***/ 49963
75458
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75459
+
75460
+ "use strict";
75461
+ __webpack_require__.r(__webpack_exports__);
75462
+ /* harmony import */ var _cookie_value_base64_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39092);
75463
+ /* harmony import */ var _base64url_node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89452);
75464
+
75465
+
75466
+ const cookieValueBase64urlDecoder = cookieValue => {
75467
+ return (0,_cookie_value_base64_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(cookieValue, _base64url_node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
75468
+ };
75469
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieValueBase64urlDecoder);
75470
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75471
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75472
+ /* harmony export */ ]);
75473
+
75474
+
75475
+ /***/ },
75476
+
75477
+ /***/ 30516
75478
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75479
+
75480
+ "use strict";
75481
+ __webpack_require__.r(__webpack_exports__);
75482
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93913);
75483
+
75484
+ const cookieValuePercentDecoder = cookieValue => {
75485
+ const value = String(cookieValue);
75486
+
75487
+ // detect if the value is quoted
75488
+ const isQuoted = (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.isQuoted)(value);
75489
+
75490
+ // remove quotes if present for processing
75491
+ const valueToDecode = isQuoted ? (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.unquote)(value) : value;
75492
+ let result;
75493
+ try {
75494
+ result = decodeURIComponent(valueToDecode);
75495
+ } catch (error) {
75496
+ throw new TypeError(`Invalid percent-encoded cookie value: ${value}`, {
75497
+ cause: error
75498
+ });
75499
+ }
75500
+
75501
+ // return quoted if input was quoted, unquoted otherwise
75502
+ return isQuoted ? (0,_utils_mjs__WEBPACK_IMPORTED_MODULE_0__.quote)(result) : result;
75503
+ };
75504
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieValuePercentDecoder);
75505
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75506
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75507
+ /* harmony export */ ]);
75508
+
75509
+
75510
+ /***/ },
75511
+
75512
+ /***/ 42965
75513
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75514
+
75515
+ "use strict";
75516
+ __webpack_require__.r(__webpack_exports__);
75517
+ /* harmony import */ var _cookie_value_base64url_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49963);
75518
+ /* harmony import */ var _cookie_value_base64_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39092);
75519
+ /* harmony import */ var _cookie_value_percent_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30516);
75520
+
75521
+
75522
+ // eslint-disable-next-line no-control-regex
75523
+ const hasControlChars = value => /[\u0000-\u0008\u000A-\u001F\u007F]/.test(value);
75524
+
75525
+ /**
75526
+ * Creates a decoder which tries the provided decoders in order and returns the result
75527
+ * of the first one that succeeds. Results containing control characters are considered
75528
+ * as false positives (e.g. a plain value that happens to be valid base64). When no decoder
75529
+ * succeeds, the cookie value is returned as is.
75530
+ *
75531
+ * NOTE: this is a best-effort heuristic. Encoding of a cookie value cannot be reliably detected,
75532
+ * as the same value can be valid in multiple encodings (e.g. `Ow` is both plain value and base64url encoded `;`).
75533
+ */
75534
+ const createCookieValueRotatingDecoder = decoders => cookieValue => {
75535
+ const value = String(cookieValue);
75536
+ for (const decoder of decoders) {
75537
+ try {
75538
+ const result = decoder(value);
75539
+ if (!hasControlChars(result)) return result;
75540
+ } catch {
75541
+ // try next decoder
75542
+ }
75543
+ }
75544
+ return value;
75545
+ };
75546
+ const cookieValueRotatingDecoder = createCookieValueRotatingDecoder([_cookie_value_base64url_mjs__WEBPACK_IMPORTED_MODULE_0__["default"], _cookie_value_base64_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _cookie_value_percent_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]]);
75547
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cookieValueRotatingDecoder);
75548
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75549
+ /* harmony export */ "createCookieValueRotatingDecoder", 0, /* binding */ createCookieValueRotatingDecoder,
75550
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75551
+ /* harmony export */ ]);
75552
+
75553
+
75554
+ /***/ },
75555
+
75556
+ /***/ 24912
75557
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75558
+
75559
+ "use strict";
75560
+ __webpack_require__.r(__webpack_exports__);
75561
+ /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
75562
+ /* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67789);
75563
+ /* harmony import */ var _cookie_parse_translators_ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(48359);
75564
+ /* harmony import */ var _cookie_parse_trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20084);
75565
+ /* harmony import */ var _errors_CookieParseError_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33625);
75566
+
75567
+
75568
+
75569
+
75570
+
75571
+ const grammar = new _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
75572
+ const parse = (setCookieString, {
75573
+ strict = true,
75574
+ decoders = {},
75575
+ translator = new _cookie_parse_translators_ASTTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]({
75576
+ decoders
75577
+ }),
75578
+ stats = false,
75579
+ trace = false
75580
+ } = {}) => {
75581
+ if (typeof setCookieString !== 'string') {
75582
+ throw new TypeError('Set-Cookie string must be a string');
75583
+ }
75584
+ try {
75585
+ const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
75586
+ const startRule = strict ? 'set-cookie-string' : 'lenient-set-cookie-string';
75587
+ if (translator) parser.ast = translator;
75588
+ if (stats) parser.stats = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Stats();
75589
+ if (trace) parser.trace = new _cookie_parse_trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
75590
+ const result = parser.parse(grammar, startRule, setCookieString);
75591
+ return {
75592
+ result,
75593
+ tree: result.success && translator ? parser.ast.getTree() : undefined,
75594
+ stats: parser.stats,
75595
+ trace: parser.trace
75596
+ };
75597
+ } catch (error) {
75598
+ throw new _errors_CookieParseError_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]('Unexpected error during Set-Cookie parsing', {
75599
+ cause: error,
75600
+ setCookieString
75601
+ });
75602
+ }
75603
+ };
75604
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
75605
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75606
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75607
+ /* harmony export */ ]);
75608
+
75609
+
75610
+ /***/ },
75611
+
75612
+ /***/ 87986
75613
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75614
+
75615
+ "use strict";
75616
+ __webpack_require__.r(__webpack_exports__);
75617
+ /* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
75618
+ /* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67789);
75619
+
75620
+
75621
+ const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
75622
+ const grammar = new _grammar_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
75623
+ const test = (startRule, value) => {
75624
+ try {
75625
+ return parser.parse(grammar, startRule, value).success;
75626
+ } catch {
75627
+ return false;
75628
+ }
75629
+ };
75630
+ const sameSiteValues = {
75631
+ strict: 'Strict',
75632
+ lax: 'Lax',
75633
+ none: 'None'
75634
+ };
75635
+ const priorityValues = {
75636
+ low: 'Low',
75637
+ medium: 'Medium',
75638
+ high: 'High'
75639
+ };
75640
+ const serializeExpires = expires => {
75641
+ // instanceof is not used, as it fails for Date objects from other realms (e.g. iframes)
75642
+ const isDate = Object.prototype.toString.call(expires) === '[object Date]';
75643
+ const isValidDate = isDate && !Number.isNaN(expires.getTime());
75644
+ // Date.prototype.toUTCString returns rfc1123-date (IMF-fixdate), e.g. "Thu, 21 Oct 2027 07:28:00 GMT"
75645
+ const date = isValidDate ? expires.toUTCString() : '';
75646
+ if (!test('sane-cookie-date', date)) {
75647
+ throw new TypeError(`Invalid Set-Cookie Expires attribute: ${String(expires)}`);
75648
+ }
75649
+ return `Expires=${date}`;
75650
+ };
75651
+
75652
+ /**
75653
+ * Max-Age must be a safe integer, so that it is serialized as a sequence of digits (not e.g. "1e+21").
75654
+ * RFC 6265 grammar requires non-zero positive integer, but the user agent processing
75655
+ * (https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.2) defines zero and negative values
75656
+ * as immediate expiration, which is the common way of deleting a cookie.
75657
+ */
75658
+ const serializeMaxAge = maxAge => {
75659
+ if (typeof maxAge !== 'number' || !Number.isSafeInteger(maxAge)) {
75660
+ throw new TypeError(`Invalid Set-Cookie Max-Age attribute: ${String(maxAge)}`);
75661
+ }
75662
+ return `Max-Age=${maxAge}`;
75663
+ };
75664
+
75665
+ /**
75666
+ * Leading "." is not permitted by the grammar, but is ignored by user agents
75667
+ * (https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.3), so it is tolerated.
75668
+ */
75669
+ const serializeDomain = domain => {
75670
+ const value = String(domain);
75671
+ const domainValue = value.startsWith('.') ? value.slice(1) : value;
75672
+ if (!test('domain-value', domainValue)) {
75673
+ throw new TypeError(`Invalid Set-Cookie Domain attribute: ${value}`);
75674
+ }
75675
+ return `Domain=${value}`;
75676
+ };
75677
+ const serializePath = path => {
75678
+ const value = String(path);
75679
+ if (!test('path-value', value)) {
75680
+ throw new TypeError(`Invalid Set-Cookie Path attribute: ${value}`);
75681
+ }
75682
+ return `Path=${value}`;
75683
+ };
75684
+ const serializeSameSite = sameSite => {
75685
+ const value = sameSiteValues[String(sameSite).toLowerCase()];
75686
+ if (value === undefined) {
75687
+ throw new TypeError(`Invalid Set-Cookie SameSite attribute: ${String(sameSite)}`);
75688
+ }
75689
+ return `SameSite=${value}`;
75690
+ };
75691
+ const serializePriority = priority => {
75692
+ const value = priorityValues[String(priority).toLowerCase()];
75693
+ if (value === undefined) {
75694
+ throw new TypeError(`Invalid Set-Cookie Priority attribute: ${String(priority)}`);
75695
+ }
75696
+ return `Priority=${value}`;
75697
+ };
75698
+
75699
+ /**
75700
+ * Serializes Set-Cookie attributes. Attributes with `undefined` value are omitted.
75701
+ *
75702
+ * https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
75703
+ * SameSite, Partitioned and Priority are not part of RFC 6265 and are serialized as extension-av.
75704
+ */
75705
+ const serializeAttributes = ({
75706
+ expires,
75707
+ maxAge,
75708
+ domain,
75709
+ path,
75710
+ secure,
75711
+ httpOnly,
75712
+ sameSite,
75713
+ partitioned,
75714
+ priority
75715
+ }) => {
75716
+ const attributes = [];
75717
+ if (expires !== undefined) attributes.push(serializeExpires(expires));
75718
+ if (maxAge !== undefined) attributes.push(serializeMaxAge(maxAge));
75719
+ if (domain !== undefined) attributes.push(serializeDomain(domain));
75720
+ if (path !== undefined) attributes.push(serializePath(path));
75721
+ if (secure) attributes.push('Secure');
75722
+ if (httpOnly) attributes.push('HttpOnly');
75723
+ if (sameSite !== undefined) attributes.push(serializeSameSite(sameSite));
75724
+ if (partitioned) attributes.push('Partitioned');
75725
+ if (priority !== undefined) attributes.push(serializePriority(priority));
75726
+ return attributes;
75727
+ };
75728
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serializeAttributes);
75729
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
75730
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
75731
+ /* harmony export */ ]);
75732
+
73580
75733
 
73581
75734
  /***/ },
73582
75735
 
@@ -73881,14 +76034,16 @@ __webpack_require__.r(__webpack_exports__);
73881
76034
  /* harmony import */ var _encoders_cookie_value_strict_base64url_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1428);
73882
76035
  /* harmony import */ var _validators_cookie_name_strict_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46319);
73883
76036
  /* harmony import */ var _validators_cookie_value_strict_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77901);
73884
- /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(93913);
76037
+ /* harmony import */ var _attributes_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87986);
76038
+ /* harmony import */ var _utils_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(93913);
76039
+
73885
76040
 
73886
76041
 
73887
76042
 
73888
76043
 
73889
76044
  const defaultOptions = {
73890
76045
  encoders: {
73891
- name: _utils_mjs__WEBPACK_IMPORTED_MODULE_3__.identity,
76046
+ name: _utils_mjs__WEBPACK_IMPORTED_MODULE_4__.identity,
73892
76047
  value: _encoders_cookie_value_strict_base64url_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]
73893
76048
  },
73894
76049
  validators: {
@@ -73913,7 +76068,8 @@ const serialize = (name, value, options = {}) => {
73913
76068
  const encodedValue = mergedOptions.encoders.value(value);
73914
76069
  mergedOptions.validators.name(encodedName);
73915
76070
  mergedOptions.validators.value(encodedValue);
73916
- return `${encodedName}=${encodedValue}`;
76071
+ const attributes = (0,_attributes_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])(mergedOptions);
76072
+ return [`${encodedName}=${encodedValue}`, ...attributes].join('; ');
73917
76073
  };
73918
76074
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serialize);
73919
76075
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
@@ -74005,6 +76161,41 @@ const cookieValueStrictValidator = cookieValue => {
74005
76161
  /* harmony export */ ]);
74006
76162
 
74007
76163
 
76164
+ /***/ },
76165
+
76166
+ /***/ 2809
76167
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
76168
+
76169
+ "use strict";
76170
+ __webpack_require__.r(__webpack_exports__);
76171
+ /* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24912);
76172
+
76173
+ /**
76174
+ * Test if a string is a valid Set-Cookie string.
76175
+ *
76176
+ * @param {string} setCookieString
76177
+ * @param {Object} [options={}] - An object.
76178
+ * @param {boolean} [options.strict=true] - A boolean indicating whether to use strict RFC 6265 set-cookie-string grammar or lenient one.
76179
+ * @returns {boolean}
76180
+ */
76181
+ const testSetCookie = (setCookieString, {
76182
+ strict = true
76183
+ } = {}) => {
76184
+ try {
76185
+ return (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(setCookieString, {
76186
+ strict,
76187
+ translator: null
76188
+ }).result.success;
76189
+ } catch {
76190
+ return false;
76191
+ }
76192
+ };
76193
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (testSetCookie);
76194
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, [
76195
+ /* harmony export */ "default", 0, __WEBPACK_DEFAULT_EXPORT__
76196
+ /* harmony export */ ]);
76197
+
76198
+
74008
76199
  /***/ },
74009
76200
 
74010
76201
  /***/ 93913
@@ -74044,8 +76235,20 @@ const quote = value => {
74044
76235
  };
74045
76236
  const identity = a => a;
74046
76237
  const noop = () => {};
76238
+ const isBase64 = value => value.length % 4 === 0 && /^[A-Za-z0-9+/]*={0,2}$/.test(value) && !/=[^=]/.test(value);
76239
+ const isBase64url = value => value.length % 4 !== 1 && /^[A-Za-z0-9_-]*$/.test(value);
76240
+
76241
+ /**
76242
+ * Decodes bytes as UTF-8, throws TypeError on invalid UTF-8 sequences.
76243
+ */
76244
+ const decodeUTF8 = bytes => new TextDecoder('utf-8', {
76245
+ fatal: true
76246
+ }).decode(bytes);
74047
76247
  /* harmony export */ __webpack_require__.d(__webpack_exports__, [
76248
+ /* harmony export */ "decodeUTF8", 0, /* binding */ decodeUTF8,
74048
76249
  /* harmony export */ "identity", 0, /* binding */ identity,
76250
+ /* harmony export */ "isBase64", 0, /* binding */ isBase64,
76251
+ /* harmony export */ "isBase64url", 0, /* binding */ isBase64url,
74049
76252
  /* harmony export */ "isQuoted", 0, /* binding */ isQuoted,
74050
76253
  /* harmony export */ "noop", 0, /* binding */ noop,
74051
76254
  /* harmony export */ "percentEncodeChar", 0, /* binding */ percentEncodeChar,
@@ -84872,6 +87075,11 @@ const Ast = function fnast() {
84872
87075
  let depth = 0;
84873
87076
  xml += '<?xml version="1.0" encoding="utf-8"?>\n';
84874
87077
  xml += `<root nodes="${records.length / 2}" characters="${chars.length}">\n`;
87078
+ xml += `<!--\n`;
87079
+ xml += ` Caveat: AST node phrases may not be faithfully represented.\n`;
87080
+ xml += ` Invalid XML characters are replaced with 0xFFFD.\n`;
87081
+ xml += ` Special characters &<>"\' are escaped with XML entities.\n`;
87082
+ xml += `-->\n`;
84875
87083
  xml += `<!-- input string -->\n`;
84876
87084
  xml += indent(depth + 2);
84877
87085
  xml += utils.charsToXmlString(chars);
@@ -85264,14 +87472,49 @@ const utilities = {
85264
87472
  }
85265
87473
  return String.fromCodePoint(...subChars);
85266
87474
  },
85267
- charsToXmlString: (chars, beg, len) =>
85268
- utilities
85269
- .charsToString(chars, beg, len)
87475
+ charsToXmlString: (chars, beg, len) => {
87476
+ function isInvalidXmlCodePoint(code) {
87477
+ return (
87478
+ !Number.isFinite(code) ||
87479
+ code < 0 ||
87480
+ code > 0x10ffff ||
87481
+ (code >= 0x0000 && code <= 0x0008) ||
87482
+ (code >= 0x000b && code <= 0x000c) ||
87483
+ (code >= 0x000e && code <= 0x001f) ||
87484
+ (code >= 0xd800 && code <= 0xdfff) ||
87485
+ (code >= 0xfffe && code <= 0xffff)
87486
+ );
87487
+ }
87488
+ let start = 0;
87489
+ let finish = chars.length;
87490
+
87491
+ if (typeof beg === 'number') {
87492
+ if (beg >= chars.length) {
87493
+ return '';
87494
+ }
87495
+ start = beg < 0 ? 0 : beg;
87496
+ }
87497
+ if (typeof len === 'number') {
87498
+ if (len <= 0) {
87499
+ return '';
87500
+ }
87501
+ finish = len > chars.length - start ? chars.length : start + len;
87502
+ }
87503
+
87504
+ const sanitized = chars.slice(start, finish).map((code) => (isInvalidXmlCodePoint(code) ? 0xfffd : code));
87505
+ const CHUNK = 0x8000;
87506
+ let out = '';
87507
+ for (let i = 0; i < sanitized.length; i += CHUNK) {
87508
+ out += String.fromCodePoint.apply(null, sanitized.slice(i, i + CHUNK));
87509
+ }
87510
+
87511
+ return out
85270
87512
  .replace(/&/g, '&amp;')
85271
87513
  .replace(/</g, '&lt;')
85272
87514
  .replace(/>/g, '&gt;')
85273
87515
  .replace(/'/g, '&apos;')
85274
- .replace(/"/g, '&quot;'),
87516
+ .replace(/"/g, '&quot;');
87517
+ },
85275
87518
  };
85276
87519
 
85277
87520
  const identifiers = {
@@ -115209,15 +117452,15 @@ class DereferenceError extends _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0
115209
117452
  "use strict";
115210
117453
  __webpack_require__.r(__webpack_exports__);
115211
117454
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
115212
- /* harmony export */ buildRequest: () => (/* binding */ Zo),
115213
- /* harmony export */ deserializeResponse: () => (/* binding */ Ar),
115214
- /* harmony export */ idFromPathMethodLegacy: () => (/* binding */ zo)
117455
+ /* harmony export */ buildRequest: () => (/* binding */ fs),
117456
+ /* harmony export */ deserializeResponse: () => (/* binding */ kr),
117457
+ /* harmony export */ idFromPathMethodLegacy: () => (/* binding */ is)
115215
117458
  /* harmony export */ });
115216
117459
  /* harmony import */ var _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56960);
115217
117460
  /* harmony import */ var _speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30698);
115218
117461
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1048);
115219
- var r={8341(e,t,n){n(7603);var r=n(2856);e.exports=r("Array","includes")},5161(e,t,n){var r=n(4317),o=n(8341),s=n(1019),i=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===i||r(i,e)&&t===i.includes?o:"string"==typeof e||e===a||r(a,e)&&t===a.includes?s:t}},1019(e,t,n){n(3855);var r=n(2856);e.exports=r("String","includes")},814(e,t,n){var r=n(2769),o=n(459),s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(o(e)+" is not a function")}},8137(e){e.exports=function(){}},7235(e,t,n){var r=n(262),o=String,s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(o(e)+" is not an object")}},1005(e,t,n){var r=n(3273),o=n(4574),s=n(8130),i=function(e){return function(t,n,i){var a=r(t),c=s(a);if(0===c)return!e&&-1;var l,u=o(i,c);if(e&&n!=n){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}};e.exports={m:i(!0),...void i(!1)}},9932(e,t,n){var r=n(6100),o=r({}.toString),s=r("".slice);e.exports=function(e){return s(o(e),8,-1)}},8407(e,t,n){var r=n(4904),o=n(2769),s=n(9932),i=n(8655)("toStringTag"),a=Object,c="Arguments"===s(function(){return arguments}());e.exports=r?s:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),i))?n:c?s(t):"Object"===(r=s(t))&&o(t.callee)?"Arguments":r}},4240(e,t,n){var r=n(8655)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},3999(e,t,n){var r=n(5024),o=n(9989),s=n(480);e.exports=r?function(e,t,n){return o.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},480(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7525(e,t,n){var r=n(8900),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024(e,t,n){var r=n(1203);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9619(e,t,n){var r=n(8900),o=n(262),s=r.document,i=o(s)&&o(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},3531(e,t,n){var r=n(8900).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},5547(e,t,n){var r,o,s=n(8900),i=n(3531),a=s.process,c=s.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},9098(e,t,n){var r=n(8900),o=n(7013),s=n(9344),i=n(2769),a=n(4543).f,c=n(8696),l=n(8099),u=n(4572),p=n(3999),d=n(701),h=function(e){var t=function(n,r,s){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,s)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,f,m,y,g,x,b,v,w=e.target,A=e.global,k=e.stat,T=e.proto,F=A?r:k?r[w]:r[w]&&r[w].prototype,S=A?l:l[w]||p(l,w,{})[w],O=S.prototype;for(m in t)o=!(n=c(A?m:w+(k?".":"#")+m,e.forced))&&F&&d(F,m),g=S[m],o&&(x=e.dontCallGetSet?(v=a(F,m))&&v.value:F[m]),y=o&&x?x:t[m],(n||T||typeof g!=typeof y)&&(b=e.bind&&o?u(y,r):e.wrap&&o?h(y):T&&i(y)?s(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(S,m,b),T&&(d(l,f=w+"Prototype")||p(l,f,{}),p(l[f],m,y),e.real&&O&&(n||!O[m])&&p(O,m,y)))}},1203(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013(e,t,n){var r=n(1780),o=Function.prototype,s=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(s):function(){return i.apply(s,arguments)})},4572(e,t,n){var r=n(9344),o=n(814),s=n(1780),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?i(e,t):function(){return e.apply(t,arguments)}}},1780(e,t,n){var r=n(1203);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},4713(e,t,n){var r=n(1780),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9344(e,t,n){var r=n(9932),o=n(6100);e.exports=function(e){if("Function"===r(e))return o(e)}},6100(e,t,n){var r=n(1780),o=Function.prototype,s=o.call,i=r&&o.bind.bind(s,s);e.exports=r?i:function(e){return function(){return s.apply(e,arguments)}}},2856(e,t,n){var r=n(8900),o=n(8099);e.exports=function(e,t){var n=o[e+"Prototype"],s=n&&n[t];if(s)return s;var i=r[e],a=i&&i.prototype;return a&&a[t]}},1003(e,t,n){var r=n(8099),o=n(8900),s=n(2769),i=function(e){return s(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},4674(e,t,n){var r=n(814),o=n(3057);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},8900(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof globalThis&&globalThis)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701(e,t,n){var r=n(6100),o=n(2137),s=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},9665(e,t,n){var r=n(5024),o=n(1203),s=n(9619);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1395(e,t,n){var r=n(6100),o=n(1203),s=n(9932),i=Object,a=r("".split);e.exports=o(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):i(e)}:i},2769(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696(e,t,n){var r=n(1203),o=n(2769),s=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n===u||n!==l&&(o(t)?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},3057(e){e.exports=function(e){return null==e}},262(e,t,n){var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},4871(e){e.exports=!0},7752(e,t,n){var r=n(262),o=n(9932),s=n(8655)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"===o(e))}},6281(e,t,n){var r=n(1003),o=n(2769),s=n(4317),i=n(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&s(t.prototype,a(e))}},8130(e,t,n){var r=n(8146);e.exports=function(e){return r(e.length)}},5777(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5947(e,t,n){var r=n(7752),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},9989(e,t,n){var r=n(5024),o=n(9665),s=n(1330),i=n(7235),a=n(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";t.f=r?s?function(e,t,n){if(i(e),t=a(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=u(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:p in n?n[p]:r[p],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(i(e),t=a(t),i(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543(e,t,n){var r=n(5024),o=n(4713),s=n(7161),i=n(480),a=n(3273),c=n(5341),l=n(701),u=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return i(!o(s.f,e,t),e[t])}},4317(e,t,n){var r=n(6100);e.exports=r({}.isPrototypeOf)},7161(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9258(e,t,n){var r=n(4713),o=n(2769),s=n(262),i=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!s(a=r(n,e)))return a;if(o(n=e.valueOf)&&!s(a=r(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!s(a=r(n,e)))return a;throw new i("Can't convert object to primitive value")}},8099(e){e.exports={}},5426(e,t,n){var r=n(3057),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},3753(e,t,n){var r=n(4871),o=n(8900),s=n(7525),i="__core-js_shared__",a=e.exports=o[i]||s(i,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141(e,t,n){var r=n(3753),o=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||o(null))}},4603(e,t,n){var r=n(5547),o=n(1203),s=n(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4574(e,t,n){var r=n(9903),o=Math.max,s=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):s(n,t)}},3273(e,t,n){var r=n(1395),o=n(5426);e.exports=function(e){return r(o(e))}},9903(e,t,n){var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146(e,t,n){var r=n(9903),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},2137(e,t,n){var r=n(5426),o=Object;e.exports=function(e){return o(r(e))}},493(e,t,n){var r=n(4713),o=n(262),s=n(6281),i=n(4674),a=n(9258),c=n(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var n,c=i(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||s(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341(e,t,n){var r=n(493),o=n(6281);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},4904(e,t,n){var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139(e,t,n){var r=n(8407),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},459(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268(e,t,n){var r=n(6100),o=0,s=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+s,36)}},7460(e,t,n){var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330(e,t,n){var r=n(5024),o=n(1203);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8655(e,t,n){var r=n(8900),o=n(8141),s=n(701),i=n(1268),a=n(4603),c=n(7460),l=r.Symbol,u=o("wks"),p=c?l.for||l:l&&l.withoutSetter||i;e.exports=function(e){return s(u,e)||(u[e]=a&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},7603(e,t,n){var r=n(9098),o=n(1005).m,s=n(1203),i=n(8137),a=s(function(){return!Array(1).includes()}),c=s(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:a||c},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},3855(e,t,n){var r=n(9098),o=n(6100),s=n(5947),i=n(5426),a=n(1139),c=n(4240),l=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(a(i(this)),a(s(e)),arguments.length>1?arguments[1]:void 0)}})},1726(e,t,n){var r=n(5161);e.exports=r},5965(e,t,n){e.exports=n(1726)}};const o={};function s(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.hasOwn(e,t),s.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};s.r(i),s.d(i,{cookie:()=>Mo,header:()=>Lo,path:()=>Io,query:()=>Do});var a=s(5965),c=s.n(a);function l(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function u(e){return function t(n){return 0===arguments.length||l(n)?t:e.apply(this,arguments)}}function p(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return l(n)?t:u(function(t){return e(n,t)});default:return l(n)&&l(r)?t:l(n)?u(function(t){return e(t,r)}):l(r)?u(function(t){return e(n,t)}):e(n,r)}}}function d(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const h=u(function(e){return null==e});var f=p(function(e,t){if(0===e.length||h(t))return!1;for(var n=t,r=0;r<e.length;){if(h(n)||!d(e[r],n))return!1;n=n[e[r]],r+=1}return!0});const m=f;var y=p(function(e,t){return m([e],t)});const g=y;function x(e){return e}const b=u(x);function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,s){return t.apply(this,arguments)};case 6:return function(e,n,r,o,s,i){return t.apply(this,arguments)};case 7:return function(e,n,r,o,s,i,a){return t.apply(this,arguments)};case 8:return function(e,n,r,o,s,i,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,s,i,a,c,l){return t.apply(this,arguments)};case 10:return function(e,n,r,o,s,i,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function w(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function A(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return l(n)?t:p(function(t,r){return e(n,t,r)});case 2:return l(n)&&l(r)?t:l(n)?p(function(t,n){return e(t,r,n)}):l(r)?p(function(t,r){return e(n,t,r)}):u(function(t){return e(n,r,t)});default:return l(n)&&l(r)&&l(o)?t:l(n)&&l(r)?p(function(t,n){return e(t,n,o)}):l(n)&&l(o)?p(function(t,n){return e(t,r,n)}):l(r)&&l(o)?p(function(t,r){return e(n,t,r)}):l(n)?u(function(t){return e(t,r,o)}):l(r)?u(function(t){return e(n,t,o)}):l(o)?u(function(t){return e(n,r,t)}):e(n,r,o)}}}const k=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function T(e){return"[object String]"===Object.prototype.toString.call(e)}const F=u(function(e){return!!k(e)||!!e&&("object"==typeof e&&(!T(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var S="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function O(e,t,n){return function(r,o,s){if(F(s))return e(r,o,s);if(null==s)return o;if("function"==typeof s["fantasy-land/reduce"])return t(r,o,s,"fantasy-land/reduce");if(null!=s[S])return n(r,o,s[S]());if("function"==typeof s.next)return n(r,o,s);if("function"==typeof s.reduce)return t(r,o,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function E(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const C=p(function(e,t){return v(e.length,function(){return e.apply(t,arguments)})});function j(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function I(e,t,n,r){return e["@@transducer/result"](n[r](C(e["@@transducer/step"],e),t))}const D=O(E,I,j);var $=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var L=A(function(e,t,n){return D("function"==typeof e?new $(e):e,t,n)});const M=L;function N(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return k(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var P=A(N("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));const B=u(N("tail",P(1,1/0)));function U(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,M(w,arguments[0],B(arguments)))}const R=u(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const H="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var q=function(e,t){switch(arguments.length){case 0:return q;case 1:return function t(n){return 0===arguments.length?t:H(e,n)};default:return H(e,t)}};const _=q;function G(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function z(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}var Y=Object.prototype.toString;const V=function(){return"[object Arguments]"===Y.call(arguments)?function(e){return"[object Arguments]"===Y.call(e)}:function(e){return d("callee",e)}}();var W=!{toString:null}.propertyIsEnumerable("toString"),K=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],X=function(){return arguments.propertyIsEnumerable("length")}(),Q=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},J="function"!=typeof Object.keys||X?u(function(e){if(Object(e)!==e)return[];var t,n,r=[],o=X&&V(e);for(t in e)!d(t,e)||o&&"length"===t||(r[r.length]=t);if(W)for(n=K.length-1;n>=0;)d(t=K[n],e)&&!Q(r,t)&&(r[r.length]=t),n-=1;return r}):u(function(e){return Object(e)!==e?[]:Object.keys(e)});const Z=J;function ee(e,t,n,r){var o=G(e);function s(e,t){return te(e,t,n.slice(),r.slice())}return!z(function(e,t){return!z(s,t,e)},G(t),o)}function te(e,t,n,r){if(H(e,t))return!0;var o=R(e);if(o!==R(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!H(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!H(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var s=n.length-1;s>=0;){if(n[s]===e)return r[s]===t;s-=1}switch(o){case"Map":return e.size===t.size&&ee(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&ee(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=Z(e);if(i.length!==Z(t).length)return!1;var a=n.concat([e]),c=r.concat([t]);for(s=i.length-1;s>=0;){var l=i[s];if(!d(l,t)||!te(t[l],e[l],a,c))return!1;s-=1}return!0}const ne=p(function(e,t){return te(e,t,[],[])});function re(e,t){return function(e,t,n){var r,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(o=e[n])&&1/o===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(ne(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function oe(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}function se(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ie=function(e){return(e<10?"0":"")+e};const ae="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ie(e.getUTCMonth()+1)+"-"+ie(e.getUTCDate())+"T"+ie(e.getUTCHours())+":"+ie(e.getUTCMinutes())+":"+ie(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ce(e,t,n){for(var r=0,o=n.length;r<o;)t=e(t,n[r]),r+=1;return t}function le(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!k(r)){for(var o=0;o<e.length;){if("function"==typeof r[e[o]])return r[e[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function ue(e){return"[object Object]"===Object.prototype.toString.call(e)}const pe=function(){return this.xf["@@transducer/init"]()},de=function(e){return this.xf["@@transducer/result"](e)};var he=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=pe,e.prototype["@@transducer/result"]=de,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function fe(e){return function(t){return new he(e,t)}}var me=p(le(["fantasy-land/filter","filter"],fe,function(e,t){return ue(t)?ce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},Z(t)):function(e,t){for(var n=0,r=t.length,o=[];n<r;)e(t[n])&&(o[o.length]=t[n]),n+=1;return o}(e,t)}));const ye=me;const ge=p(function(e,t){return ye((n=e,function(){return!n.apply(this,arguments)}),t);// removed by dead control flow
115220
- var n; });function xe(e,t){var n=function(n){var r=t.concat([e]);return re(n,r)?"<Circular>":xe(n,r)},r=function(e,t){return oe(function(t){return se(t)+": "+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+oe(n,e).join(", ")+"))";case"[object Array]":return"["+oe(n,e).concat(r(e,ge(function(e){return/^\d+$/.test(e)},Z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):se(ae(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":se(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var o=e.toString();if("[object Object]"!==o)return o}return"{"+r(e,Z(e)).join(", ")+"}"}}const be=u(function(e){return xe(e,[])}),ve=Number.isInteger||function(e){return(e|0)===e};function we(e,t){var n=e<0?t.length+e:e;return T(t)?t.charAt(n):t[n]}const Ae=A(function(e,t,n){return e(function(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var o=e[r];n=ve(o)?we(o,n):n[o]}return n}(t,n))});function ke(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Te=p(function(e,t){return e&&t});function Fe(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function Se(e,t,n,r){return n[r](e,t)}const Oe=O(ce,Se,Fe);var Ee=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=pe,e.prototype["@@transducer/result"]=de,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ce=function(e){return function(t){return new Ee(e,t)}};function je(e,t,n){return function(){for(var r=[],o=0,s=e,i=0,a=!1;i<t.length||o<arguments.length;){var c;i<t.length&&(!l(t[i])||o>=arguments.length)?c=t[i]:(c=arguments[o],o+=1),r[i]=c,l(c)?a=!0:s-=1,i+=1}return!a&&s<=0?n.apply(this,r):v(Math.max(0,s),je(e,r,n))}}const Ie=p(function(e,t){return 1===e?u(t):v(e,je(e,[],t))});const De=p(le(["fantasy-land/map","map"],Ce,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Ie(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return ce(function(n,r){return n[r]=e(t[r]),n},{},Z(t));default:return oe(e,t)}}));const $e=p(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:Oe(function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,o=t.length,s=[];for(n=0;n<r;)s[s.length]=e[n],n+=1;for(n=0;n<o;)s[s.length]=t[n],n+=1;return s}(e,De(n,t))},[],e)});const Le=p(function(e,t){var n=Ie(e,t);return Ie(e,function(){return ce($e,De(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});const Me=u(function(e){return Le(e.length,e)});const Ne=p(function(e,t){return ke(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Me(Te)(e,t)});const Pe=ne(null);const Be=Me(u(function(e){return!e}));const Ue=Be(Pe);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}const He=function(e){return"object"===Re(e)};const qe=Ie(1,Ne(Ue,He));const _e=p(function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var o=n(typeof e,typeof t);if(void 0!==o)return o===typeof e?e:t;var s=be(e),i=n(s,be(t));return void 0!==i&&i===s?e:t});const Ge=p(function(e,t){if(null!=t)return ve(e)?we(e,t):t[e]});var ze=p(function(e,t){return De(Ge(e),t)});const Ye=ze;const Ve=u(function(e){return Ie(M(_e,0,Ye("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const We=Ie(1,U(R,_("GeneratorFunction")));const Ke=Ie(1,U(R,_("AsyncFunction")));const Xe=Ve([U(R,_("Function")),We,Ke]);var Qe=U(R,_("Object")),Je=Ae(Ne(Xe,U(be,ne(be(Object)))),["constructor"]);const Ze=Ie(1,function(e){if(!qe(e)||!Qe(e))return!1;var t=Object.getPrototypeOf(e);return!!Pe(t)||Je(t)});const et=u(function(e){return Ie(M(_e,0,Ye("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var tt=u(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():k(e)?[]:T(e)?"":ue(e)?{}:V(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0});const nt=tt;const rt=u(function(e){return null!=e&&ne(e,nt(e))});const ot=u(function(e){return!rt(e)});const st=Ie(1,U(R,_("String")));const it=p(function(e,t){return e||t});const at=et([st,Be(Ie(1,Ne(Ue,p(function(e,t){return ke(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Me(it)(e,t)})(He,Xe)))),ot]),ct=function(){const e=ht,t=dt,n=this,r="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let o,s,i,a,c,l,u,p=0,d=0,h=0,f=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.parse=(g,x,v,w)=>{const A=`${r}parse(): `;p=0,d=0,h=0,f=0,m=0,o=void 0,s=void 0,i=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(v),o=g.rules,s=g.udts;const k=x.toLowerCase();let T;for(const e in o)if(o.hasOwnProperty(e)&&k===o[e].lower){T=o[e].index;break}if(void 0===T)throw new Error(`${A}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,i;for(c=[],l=[],t=0;t<o.length;t+=1)c[t]=void 0;for(t=0;t<s.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<o.length;t+=1)a.push(o[t].lower);for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(const r in n.callbacks)if(n.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(i=n.callbacks[r]?n.callbacks[r]:void 0,"function"!=typeof i&&void 0!==i)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<o.length?c[t]=i:l[t-o.length]=i}})(),n.trace&&n.trace.init(o,s,a),n.stats&&n.stats.init(o,s),n.ast&&n.ast.init(o,s,a),u=w,i=[{type:e.RNM,index:T}],b(0,0),i=void 0;let F=!1;switch(y.state){case e.ACTIVE:throw new Error(`${A}final state should never be 'ACTIVE'`);case e.NOMATCH:F=!1;break;case e.EMPTY:case e.MATCH:F=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:F,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:h,nodeHits:f}};const g=(t,n,o,s)=>{if(n.phraseLength>o){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${o}`,new Error(e)}switch(n.state){case e.ACTIVE:if(!s)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:n.phraseLength=0;break;case e.MATCH:0===n.phraseLength&&(n.state=e.EMPTY);break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},x=(t,c)=>{let d,h,f;const m=i[t],g=s[m.index];y.UdtIndex=g.index,p||(f=n.ast&&n.ast.udtDefined(m.index),f&&(h=o.length+m.index,d=n.ast.getLength(),n.ast.down(h,g.name)));const x=a.length-c;l[m.index](y,a,c,u),((t,n,o)=>{if(n.phraseLength>o){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${o}`,new Error(e)}switch(n.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);n.phraseLength=0;break;case e.MATCH:if(0===n.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);n.state=e.EMPTY}break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}})(g,y,x),p||f&&(y.state===e.NOMATCH?n.ast.setLength(d):n.ast.up(h,g.name,c,y.phraseLength))},b=(t,s)=>{const l=`${r}opExecute(): `,v=i[t];switch(f+=1,d>h&&(h=d),d+=1,y.refresh(),n.trace&&n.trace.down(v,s),v.type){case e.ALT:((t,n)=>{const r=i[t];for(let t=0;t<r.children.length&&(b(r.children[t],n),y.state===e.NOMATCH);t+=1);})(t,s);break;case e.CAT:((t,r)=>{let o,s,a,c;const l=i[t];n.ast&&(s=n.ast.getLength()),o=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){o=!1;break}a+=y.phraseLength,c+=y.phraseLength}o?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(s))})(t,s);break;case e.REP:((t,r)=>{let o,s,c,l;const u=i[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(s=r,c=0,l=0,n.ast&&(o=n.ast.getLength());!(s>=a.length)&&(b(t+1,s),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,s+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(o))})(t,s);break;case e.RNM:((t,r)=>{let s,l,d;const h=i[t],f=o[h.index],m=c[f.index];if(p||(l=n.ast&&n.ast.ruleDefined(h.index),l&&(s=n.ast.getLength(),n.ast.down(h.index,o[h.index].name))),m){const t=a.length-r;m(y,a,r,u),g(f,y,t,!0),y.state===e.ACTIVE&&(d=i,i=f.opcodes,b(0,r),i=d,m(y,a,r,u),g(f,y,t,!1))}else d=i,i=f.opcodes,b(0,r,y),i=d;p||l&&(y.state===e.NOMATCH?n.ast.setLength(s):n.ast.up(h.index,f.name,r,y.phraseLength))})(t,s);break;case e.TRG:((t,n)=>{const r=i[t];y.state=e.NOMATCH,n<a.length&&r.min<=a[n]&&a[n]<=r.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,s);break;case e.TBS:((t,n)=>{const r=i[t],o=r.string.length;if(y.state=e.NOMATCH,n+o<=a.length){for(let e=0;e<o;e+=1)if(a[n+e]!==r.string[e])return;y.state=e.MATCH,y.phraseLength=o}})(t,s);break;case e.TLS:((t,n)=>{let r;const o=i[t];y.state=e.NOMATCH;const s=o.string.length;if(0!==s){if(n+s<=a.length){for(let e=0;e<s;e+=1)if(r=a[n+e],r>=65&&r<=90&&(r+=32),r!==o.string[e])return;y.state=e.MATCH,y.phraseLength=s}}else y.state=e.EMPTY})(t,s);break;case e.UDT:x(t,s);break;case e.AND:((t,n)=>{switch(p+=1,b(t+1,n),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,s);break;case e.NOT:((t,n)=>{switch(p+=1,b(t+1,n),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,s);break;default:throw new Error(`${l}unrecognized operator`)}p||s+y.phraseLength>m&&(m=s+y.phraseLength),n.stats&&n.stats.collect(v,y),n.trace&&n.trace.up(v,y.state,s,y.phraseLength),d-=1}},lt=function(){const e=ht,t=dt,n=this;let r,o,s,i=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}n.callbacks=[],n.init=(e,t,u)=>{let p;c.length=0,l.length=0,i=0,r=e,o=t,s=u;const d=[];for(p=0;p<r.length;p+=1)d.push(r[p].lower);for(p=0;p<o.length;p+=1)d.push(o[p].lower);for(i=r.length+o.length,p=0;p<i;p+=1)a[p]=void 0;for(const e in n.callbacks)if(n.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(p=d.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[p]=n.callbacks[e]}},n.ruleDefined=e=>!!a[e],n.udtDefined=e=>!!a[r.length+e],n.down=(t,n)=>{const r=l.length;return c.push(r),l.push({name:n,thisIndex:r,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),r},n.up=(t,n,r,o)=>{const s=l.length,i=c.pop();return l.push({name:n,thisIndex:s,thatIndex:i,state:e.SEM_POST,callbackIndex:t,phraseIndex:r,phraseLength:o,stack:c.length}),l[i].thatIndex=s,l[i].phraseIndex=r,l[i].phraseLength=o,s},n.translate=t=>{let n,r;for(let o=0;o<l.length;o+=1)r=l[o],n=a[r.callbackIndex],n&&(r.state===e.SEM_PRE?n(e.SEM_PRE,s,r.phraseIndex,r.phraseLength,t):n&&n(e.SEM_POST,s,r.phraseIndex,r.phraseLength,t))},n.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},n.getLength=()=>l.length,n.toXml=()=>{let n="",r=0;return n+='<?xml version="1.0" encoding="utf-8"?>\n',n+=`<root nodes="${l.length/2}" characters="${s.length}">\n`,n+="\x3c!-- input string --\x3e\n",n+=u(r+2),n+=t.charsToXmlString(s),n+="\n",l.forEach(o=>{o.state===e.SEM_PRE?(r+=1,n+=u(r),n+=`<node name="${o.name}" index="${o.phraseIndex}" length="${o.phraseLength}">\n`,n+=u(r+2),n+=t.charsToXmlString(s,o.phraseIndex,o.phraseLength),n+="\n"):(n+=u(r),n+=`</node>\x3c!-- name="${o.name}" --\x3e\n`,r-=1)}),n+="</root>\n",n}},ut=function(){const e=ht,t=dt,n="parser.js: Trace(): ";let r,o,s,i="",a=0;const c=this,l=e=>{let t="",n=0;if(e>=0)for(;e--;)n+=1,5===n?(t+="|",n=0):t+=".";return t};c.init=(e,t,n)=>{o=e,s=t,r=n};const u=r=>{let i;switch(r.type){case e.ALT:i="ALT";break;case e.CAT:i="CAT";break;case e.REP:i=r.max===1/0?`REP(${r.min},inf)`:`REP(${r.min},${r.max})`;break;case e.RNM:i=`RNM(${o[r.index].name})`;break;case e.TRG:i=`TRG(${r.min},${r.max})`;break;case e.TBS:i=r.string.length>6?`TBS(${t.charsToString(r.string,0,3)}...)`:`TBS(${t.charsToString(r.string,0,6)})`;break;case e.TLS:i=r.string.length>6?`TLS(${t.charsToString(r.string,0,3)}...)`:`TLS(${t.charsToString(r.string,0,6)})`;break;case e.UDT:i=`UDT(${s[r.index].name})`;break;case e.AND:i="AND";break;case e.NOT:i="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return i};c.down=(e,n)=>{const o=l(a),s=Math.min(100,r.length-n);let c=t.charsToString(r,n,s);s<r.length-n&&(c+="..."),c=`${o}|-|[${u(e)}]${c}\n`,i+=c,a+=1},c.up=(o,s,c,p)=>{const d=`${n}trace.up: `;a-=1;const h=l(a);let f,m,y;switch(s){case e.EMPTY:y="|E|",m="''";break;case e.MATCH:y="|M|",f=Math.min(100,p),m=f<p?`'${t.charsToString(r,c,f)}...'`:`'${t.charsToString(r,c,f)}'`;break;case e.NOMATCH:y="|N|",m="";break;default:throw new Error(`${d} unrecognized state`)}m=`${h}${y}[${u(o)}]${m}\n`,i+=m},c.displayTrace=()=>i},pt=function(){const e=ht;let t,n,r;const o=[],s=[],i=[];this.init=(e,r)=>{t=e,n=r,d()},this.collect=(t,n)=>{h(r,n.state,n.phraseLength),h(o[t.type],n.state,n.phraseLength),t.type===e.RNM&&h(s[t.index],n.state,n.phraseLength),t.type===e.UDT&&h(i[t.index],n.state,n.phraseLength)},this.displayStats=()=>{let t="";const n={match:0,empty:0,nomatch:0,total:0},r=(e,t,r,o,s)=>{n.match+=t,n.empty+=r,n.nomatch+=o,n.total+=s;return`${e} | ${a(t)} | ${a(r)} | ${a(o)} | ${a(s)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=r(" ALT",o[e.ALT].match,o[e.ALT].empty,o[e.ALT].nomatch,o[e.ALT].total),t+=r(" CAT",o[e.CAT].match,o[e.CAT].empty,o[e.CAT].nomatch,o[e.CAT].total),t+=r(" REP",o[e.REP].match,o[e.REP].empty,o[e.REP].nomatch,o[e.REP].total),t+=r(" RNM",o[e.RNM].match,o[e.RNM].empty,o[e.RNM].nomatch,o[e.RNM].total),t+=r(" TRG",o[e.TRG].match,o[e.TRG].empty,o[e.TRG].nomatch,o[e.TRG].total),t+=r(" TBS",o[e.TBS].match,o[e.TBS].empty,o[e.TBS].nomatch,o[e.TBS].total),t+=r(" TLS",o[e.TLS].match,o[e.TLS].empty,o[e.TLS].nomatch,o[e.TLS].total),t+=r(" UDT",o[e.UDT].match,o[e.UDT].empty,o[e.UDT].nomatch,o[e.UDT].total),t+=r(" AND",o[e.AND].match,o[e.AND].empty,o[e.AND].nomatch,o[e.AND].total),t+=r(" NOT",o[e.NOT].match,o[e.NOT].empty,o[e.NOT].nomatch,o[e.NOT].total),t+=r("TOTAL",n.match,n.empty,n.nomatch,n.total),t},this.displayHits=e=>{let t="";const n=(e,t,n,o,s)=>{r.match+=e,r.empty+=t,r.nomatch+=n,r.total+=o;return`| ${a(e)} | ${a(t)} | ${a(n)} | ${a(o)} | ${s}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(s.sort(c),i.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(s.sort(u),i.sort(u),t+=" RULES/UDTS BY INDEX\n"):(s.sort(l),i.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<s.length;e+=1){let r=s[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}for(let e=0;e<i.length;e+=1){let r=i[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}return t};const a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),u=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,p=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},d=()=>{o.length=0,r=new p,o[e.ALT]=new p,o[e.CAT]=new p,o[e.REP]=new p,o[e.RNM]=new p,o[e.TRG]=new p,o[e.TBS]=new p,o[e.TLS]=new p,o[e.UDT]=new p,o[e.AND]=new p,o[e.NOT]=new p,s.length=0;for(let e=0;e<t.length;e+=1)s.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(n.length>0){i.length=0;for(let e=0;e<n.length;e+=1)i.push({empty:0,match:0,nomatch:0,total:0,name:n[e].name,lower:n[e].lower,index:n[e].index})}},h=(t,n)=>{switch(t.total+=1,n){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${n}`)}}},dt={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,n)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===n){r=e.slice(t);break}if(n<=0)return"";r=e.slice(t,t+n);break}return String.fromCodePoint(...r)},charsToXmlString:(e,t,n)=>dt.charsToString(e,t,n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")},ht={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case ht.ALT:return"ALT";case ht.CAT:return"CAT";case ht.REP:return"REP";case ht.RNM:return"RNM";case ht.TRG:return"TRG";case ht.TBS:return"TBS";case ht.TLS:return"TLS";case ht.UDT:return"UDT";case ht.AND:return"AND";case ht.NOT:return"NOT";case ht.ACTIVE:return"ACTIVE";case ht.EMPTY:return"EMPTY";case ht.MATCH:return"MATCH";case ht.NOMATCH:return"NOMATCH";case ht.SEM_PRE:return"SEM_PRE";case ht.SEM_POST:return"SEM_POST";case ht.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const ft=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-url-template",dt.charsToString(t,n,r)])}return ht.SEM_OK},mt=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-variable",dt.charsToString(t,n,r)])}return ht.SEM_OK},yt=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-variable-name",dt.charsToString(t,n,r)])}return ht.SEM_OK},gt=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["literals",dt.charsToString(t,n,r)])}return ht.SEM_OK},xt=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\n",e+='server-variable = "{" server-variable-name "}"\n',e+="server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n",e+="; https://www.rfc-editor.org/errata/eid6937\n",e+="literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n',e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n; https://www.rfc-editor.org/errata/eid6937\nliterals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},bt=e=>{const t=new ct;t.ast=new lt,t.ast.callbacks["server-url-template"]=ft,t.ast.callbacks["server-variable"]=mt,t.ast.callbacks["server-variable-name"]=yt,t.ast.callbacks.literals=gt;return{result:t.parse(xt,"server-url-template",e),ast:t.ast}},vt=(e,{strict:t=!1}={})=>{try{const n=bt(e);if(!n.result.success)return!1;const r=[];n.ast.translate(r);const o=r.some(([e])=>"server-variable"===e);if(!t&&!o)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||o}catch{return!1}},wt=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),At=["literals","server-variable-name"],kt=(e,t,n={})=>{const r={...{encoder:wt},...n},o=bt(e);if(!o.result.success)return e;const s=[];o.ast.translate(s);const i=s.filter(([e])=>At.includes(e)).map(([e,n])=>"server-variable-name"===e?Object.hasOwn(t,n)?r.encoder(t[n],n):`{${n}}`:n);return i.join("")},Tt=Object.freeze({url:"/"});function Ft(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function St(e,t){return Array.isArray(e)&&e.some(e=>Ft(e,t))}class Ot extends File{constructor(e,t="",n={}){super([e],t,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const Et=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Ct=e=>/^[a-z0-9\-._~]+$/i.test(e);function jt(e,t="reserved"){return[...e].map(e=>{if(Ct(e))return e;if(Et(e)&&"unsafe"===t)return e;const n=new TextEncoder;return Array.from(n.encode(e)).map(e=>`0${e.toString(16).toUpperCase()}`.slice(-2)).map(e=>`%${e}`).join("")}).join("")}function It(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:n,explode:r,escape:o}){if("simple"===n)return t.map(e=>Dt(e,o)).join(",");if("label"===n)return`.${t.map(e=>Dt(e,o)).join(".")}`;if("matrix"===n)return t.map(e=>Dt(e,o)).reduce((t,n)=>!t||r?`${t||""};${e}=${n}`:`${t},${n}`,"");if("form"===n){const n=r?`&${e}=`:",";return t.map(e=>Dt(e,o)).join(n)}if("spaceDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>Dt(e,o)).join(` ${n}`)}if("pipeDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>Dt(e,o)).join(`|${n}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:n,explode:r,escape:o}){const s=Object.keys(t);if("simple"===n)return s.reduce((e,n)=>{const s=Dt(t[n],o);return`${e?`${e},`:""}${n}${r?"=":","}${s}`},"");if("label"===n)return s.reduce((e,n)=>{const s=Dt(t[n],o);return`${e?`${e}.`:"."}${n}${r?"=":"."}${s}`},"");if("matrix"===n&&r)return s.reduce((e,n)=>`${e?`${e};`:";"}${n}=${Dt(t[n],o)}`,"");if("matrix"===n)return s.reduce((n,r)=>{const s=Dt(t[r],o);return`${n?`${n},`:`;${e}=`}${r},${s}`},"");if("form"===n)return s.reduce((e,n)=>{const s=Dt(t[n],o);return`${e?`${e}${r?"&":","}`:""}${n}${r?"=":","}${s}`},"");return}(e):function({key:e,value:t,style:n,escape:r}){if("simple"===n)return Dt(t,r);if("label"===n)return`.${Dt(t,r)}`;if("matrix"===n)return`;${e}=${Dt(t,r)}`;if("form"===n)return Dt(t,r);if("deepObject"===n)return Dt(t,r);return}(e)}function Dt(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&"string"==typeof e&&e.length>0?jt(e,t):e??""}const $t={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Lt={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Mt(e,t,n=!1){const{collectionFormat:r,allowEmptyValue:o,serializationOption:s,encoding:i}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=n?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&o)return[[l,""]];if(Ft(a)||St(a))return[[l,a]];if(s)return Nt(e,a,n,s);if(i){if([typeof i.style,typeof i.explode,typeof i.allowReserved].some(e=>"undefined"!==e)){const{style:t,explode:r,allowReserved:o}=i;return Nt(e,a,n,{style:t,explode:r,allowReserved:o})}if("string"==typeof i.contentType){if(i.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new Ot(e,"blob",{type:i.contentType})]]}const e=c(String(a));return[[l,new Ot(e,"blob",{type:i.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every(e=>"object"!=typeof e)?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===r?[[l,a.map(c)]]:[[l,a.map(c).join(Lt[r||"csv"])]]:[[l,""]]}function Nt(e,t,n,r){const o=r.style||"form",s=void 0===r.explode?"form"===o:r.explode,i=!n&&(r&&r.allowReserved?"unsafe":"reserved"),a=e=>Dt(e,i),c=n?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?s?[[c(e),t.map(a)]]:[[c(e),t.map(a).join($t[o])]]:"deepObject"===o?Object.keys(t).map(n=>[c(`${e}[${n}]`),a(t[n])]):s?Object.keys(t).map(e=>[c(e),a(t[e])]):[[c(e),Object.keys(t).map(e=>[`${c(e)},${a(t[e])}`]).join(",")]]}function Pt(e){return((e,{encode:t=!0}={})=>{const n=(e,t,r)=>(Array.isArray(r)?r.reduce((r,o)=>n(e,t,o),e):r instanceof Date?e.append(t,r.toISOString()):"object"==typeof r?Object.entries(r).reduce((r,[o,s])=>n(e,`${t}[${o}]`,s),e):e.append(t,r),e),r=Object.entries(e).reduce((e,[t,r])=>n(e,t,r),new URLSearchParams),o=String(r);return t?o:decodeURIComponent(o)})(Object.keys(e).reduce((t,n)=>{for(const[r,o]of Mt(n,e[n]))t[r]=o instanceof Ot?o.valueOf():o;return t},{}),{encode:!1})}function Bt(e={}){const{url:t="",query:n,form:r}=e;if(r){const t=Object.keys(r).some(e=>{const{value:t}=r[e];return Ft(t)||St(t)}),n=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(n)){const t=(o=e.form,Object.entries(o).reduce((e,[t,n])=>{for(const[r,o]of Mt(t,n,!0))if(Array.isArray(o))for(const t of o)if(ArrayBuffer.isView(t)){const n=new Blob([t]);e.append(r,n)}else e.append(r,t);else if(ArrayBuffer.isView(o)){const t=new Blob([o]);e.append(r,t)}else e.append(r,o);return e},new FormData));e.formdata=t,e.body=t}else e.body=Pt(r);delete e.form}var o;if(n){const[r,o]=t.split("?");let s="";if(o){const e=new URLSearchParams(o);Object.keys(n).forEach(t=>e.delete(t)),s=String(e)}const i=((...e)=>{const t=e.filter(e=>e).join("&");return t?`?${t}`:""})(s,Pt(n));e.url=r+i,delete e.query}return e}function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt,Ht,qt,_t,Gt,zt,Yt,Vt,Wt,Kt,Xt,Qt,Jt,Zt,en,tn,nn,rn,on,sn,an,cn,ln,un,pn,dn,hn,fn,mn,yn,gn,xn,bn,vn,wn,An,kn,Tn,Fn,Sn,On,En,Cn,jn,In={},Dn={},$n={};function Ln(){if(Rt)return $n;function e(e){return null==e}return Rt=1,$n.isNothing=e,$n.isObject=function(e){return"object"==typeof e&&null!==e},$n.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},$n.repeat=function(e,t){let n="";for(let r=0;r<t;r+=1)n+=e;return n},$n.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},$n.extend=function(e,t){if(t){const n=Object.keys(t);for(let r=0,o=n.length;r<o;r+=1){const o=n[r];e[o]=t[o]}}return e},$n}function Mn(){if(qt)return Ht;function e(e,t){let n="";const r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function t(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return qt=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},Ht=t}function Nn(){if(Yt)return zt;Yt=1;const e=Mn(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return zt=function(r,o){if(o=o||{},Object.keys(o).forEach(function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}),this.options=o,this.tag=r,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(e){return e},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=function(e){const t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(o.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}function Pn(){if(Wt)return Vt;Wt=1;const e=Mn(),t=Nn();function n(e,t){const n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(e){return this.extend(e)}return r.prototype.extend=function(o){let s=[],i=[];if(o instanceof t)i.push(o);else if(Array.isArray(o))i=i.concat(o);else{if(!o||!Array.isArray(o.implicit)&&!Array.isArray(o.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.implicit&&(s=s.concat(o.implicit)),o.explicit&&(i=i.concat(o.explicit))}s.forEach(function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const a=Object.create(r.prototype);return a.implicit=(this.implicit||[]).concat(s),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=n(a,"implicit"),a.compiledExplicit=n(a,"explicit"),a.compiledTypeMap=function(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}(a.compiledImplicit,a.compiledExplicit),a},Vt=r}function Bn(){if(Xt)return Kt;Xt=1;const e=Nn();return Kt=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Un(){if(Jt)return Qt;Jt=1;const e=Nn();return Qt=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function Rn(){if(en)return Zt;en=1;const e=Nn();return Zt=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function Hn(){if(nn)return tn;nn=1;const e=Pn();return tn=new e({explicit:[Bn(),Un(),Rn()]})}function qn(){if(on)return rn;on=1;const e=Nn();return rn=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;const t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),rn}function _n(){if(an)return sn;an=1;const e=Nn();return sn=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),sn}function Gn(){if(ln)return cn;ln=1;const e=Ln(),t=Nn();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function o(e){return e>=48&&e<=57}function s(e){let t=e,n=1,r=t[0];if("-"!==r&&"+"!==r||("-"===r&&(n=-1),t=t.slice(1),r=t[0]),"0"===t)return 0;if("0"===r){if("b"===t[1])return n*parseInt(t.slice(2),2);if("x"===t[1])return n*parseInt(t.slice(2),16);if("o"===t[1])return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}return cn=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;let i=0,a=!1;if(!t)return!1;let c=e[i];if("-"!==c&&"+"!==c||(c=e[++i]),"0"===c){if(i+1===t)return!0;if(c=e[++i],"b"===c){for(i++;i<t;i++){if(c=e[i],"0"!==c&&"1"!==c)return!1;a=!0}return a&&isFinite(s(e))}if("x"===c){for(i++;i<t;i++){if(!n(e.charCodeAt(i)))return!1;a=!0}return a&&isFinite(s(e))}if("o"===c){for(i++;i<t;i++){if(!r(e.charCodeAt(i)))return!1;a=!0}return a&&isFinite(s(e))}}for(;i<t;i++){if(!o(e.charCodeAt(i)))return!1;a=!0}return!!a&&isFinite(s(e))},construct:function(e){return s(e)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cn}function zn(){if(pn)return un;pn=1;const e=Ln(),t=Nn(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),r=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");const o=/^[-+]?[0-9]+e/;return un=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&(!!n.test(e)&&(!!isFinite(parseFloat(e,10))||r.test(e)))},construct:function(e){let t=e.toLowerCase();const n="-"===t[0]?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,n){if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";const r=t.toString(10);return o.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})}function Yn(){return hn?dn:(hn=1,dn=Hn().extend({implicit:[qn(),_n(),Gn(),zn()]}))}function Vn(){return mn?fn:(mn=1,fn=Yn())}function Wn(){if(gn)return yn;gn=1;const e=Nn(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return yn=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==n.exec(e))},construct:function(e){let r=0,o=null,s=t.exec(e);if(null===s&&(s=n.exec(e)),null===s)throw new Error("Date resolve error");const i=+s[1],a=+s[2]-1,c=+s[3];if(!s[4])return new Date(Date.UTC(i,a,c));const l=+s[4],u=+s[5],p=+s[6];if(s[7]){for(r=s[7].slice(0,3);r.length<3;)r+="0";r=+r}if(s[9]){o=6e4*(60*+s[10]+ +(s[11]||0)),"-"===s[9]&&(o=-o)}const d=new Date(Date.UTC(i,a,c,l,u,p,r));return o&&d.setTime(d.getTime()-o),d},instanceOf:Date,represent:function(e){return e.toISOString()}}),yn}function Kn(){if(bn)return xn;bn=1;const e=Nn();return xn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function Xn(){if(wn)return vn;wn=1;const e=Nn(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return vn=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let n=0;const r=e.length,o=t;for(let t=0;t<r;t++){const r=o.indexOf(e.charAt(t));if(!(r>64)){if(r<0)return!1;n+=6}}return n%8==0},construct:function(e){const n=e.replace(/[\r\n=]/g,""),r=n.length,o=t;let s=0;const i=[];for(let e=0;e<r;e++)e%4==0&&e&&(i.push(s>>16&255),i.push(s>>8&255),i.push(255&s)),s=s<<6|o.indexOf(n.charAt(e));const a=r%4*6;return 0===a?(i.push(s>>16&255),i.push(s>>8&255),i.push(255&s)):18===a?(i.push(s>>10&255),i.push(s>>2&255)):12===a&&i.push(s>>4&255),new Uint8Array(i)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let n="",r=0;const o=e.length,s=t;for(let t=0;t<o;t++)t%3==0&&t&&(n+=s[r>>18&63],n+=s[r>>12&63],n+=s[r>>6&63],n+=s[63&r]),r=(r<<8)+e[t];const i=o%3;return 0===i?(n+=s[r>>18&63],n+=s[r>>12&63],n+=s[r>>6&63],n+=s[63&r]):2===i?(n+=s[r>>10&63],n+=s[r>>4&63],n+=s[r<<2&63],n+=s[64]):1===i&&(n+=s[r>>2&63],n+=s[r<<4&63],n+=s[64],n+=s[64]),n}}),vn}function Qn(){if(kn)return An;kn=1;const e=Nn(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return An=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const r={},o=e;for(let e=0,s=o.length;e<s;e+=1){const s=o[e];let i,a=!1;if("[object Object]"!==n.call(s))return!1;for(i in s)if(t.call(s,i)){if(a)return!1;a=!0}if(!a)return!1;if(t.call(r,i))return!1;Object.defineProperty(r,i,{value:!0})}return!0},construct:function(e){return null!==e?e:[]}})}function Jn(){if(Fn)return Tn;Fn=1;const e=Nn(),t=Object.prototype.toString;return Tn=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;const n=e,r=new Array(n.length);for(let e=0,o=n.length;e<o;e+=1){const o=n[e];if("[object Object]"!==t.call(o))return!1;const s=Object.keys(o);if(1!==s.length)return!1;r[e]=[s[0],o[s[0]]]}return!0},construct:function(e){if(null===e)return[];const t=e,n=new Array(t.length);for(let e=0,r=t.length;e<r;e+=1){const r=t[e],o=Object.keys(r);n[e]=[o[0],r[o[0]]]}return n}}),Tn}function Zn(){if(On)return Sn;On=1;const e=Nn(),t=Object.prototype.hasOwnProperty;return Sn=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;const n=e;for(const e in n)if(t.call(n,e)&&null!==n[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function er(){return Cn?En:(Cn=1,En=Vn().extend({implicit:[Wn(),Kn()],explicit:[Xn(),Qn(),Jn(),Zn()]}))}function tr(){if(jn)return Dn;jn=1;const e=Ln(),t=Mn(),n=function(){if(Gt)return _t;Gt=1;const e=Ln();function t(e,t,n,r,o){let s="",i="";const a=Math.floor(o/2)-1;return r-t>a&&(s=" ... ",t=r-a+s.length),n-r>a&&(i=" ...",n=r+a-i.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+s.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}return _t=function(r,o){if(o=Object.create(o||null),!r.buffer)return null;o.maxLength||(o.maxLength=79),"number"!=typeof o.indent&&(o.indent=1),"number"!=typeof o.linesBefore&&(o.linesBefore=3),"number"!=typeof o.linesAfter&&(o.linesAfter=2);const s=/\r?\n|\r|\0/g,i=[0],a=[];let c,l=-1;for(;c=s.exec(r.buffer);)a.push(c.index),i.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=i.length-2);l<0&&(l=i.length-1);let u="";const p=Math.min(r.line+o.linesAfter,a.length).toString().length,d=o.maxLength-(o.indent+p+3);for(let s=1;s<=o.linesBefore&&!(l-s<0);s++){const c=t(r.buffer,i[l-s],a[l-s],r.position-(i[l]-i[l-s]),d);u=e.repeat(" ",o.indent)+n((r.line-s+1).toString(),p)+" | "+c.str+"\n"+u}const h=t(r.buffer,i[l],a[l],r.position,d);u+=e.repeat(" ",o.indent)+n((r.line+1).toString(),p)+" | "+h.str+"\n",u+=e.repeat("-",o.indent+p+3+h.pos)+"^\n";for(let s=1;s<=o.linesAfter&&!(l+s>=a.length);s++){const c=t(r.buffer,i[l+s],a[l+s],r.position-(i[l]-i[l+s]),d);u+=e.repeat(" ",o.indent)+n((r.line+s+1).toString(),p)+" | "+c.str+"\n"}return u.replace(/\n$/,"")},_t}(),r=er(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,i=/[\x85\u2028\u2029]/,a=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function d(e){return 9===e||32===e}function h(e){return 9===e||32===e||10===e||13===e}function f(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function g(e){return e>=48&&e<=57?e-48:-1}function x(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function v(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}const w=new Array(256),A=new Array(256);for(let e=0;e<256;e++)w[e]=x(e)?1:0,A[e]=x(e);function k(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function T(e,r){const o={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return o.snippet=n(o),new t(r,o)}function F(e,t){throw T(e,t)}function S(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}function O(e,t,n){const r=e.anchorMapTransactions;if(0!==r.length){const n=r[r.length-1];o.call(n,t)||(n[t]={existed:o.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function E(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function C(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}const j={YAML:function(e,t,n){null!==e.version&&F(e,"duplication of %YAML directive"),1!==n.length&&F(e,"YAML directive accepts exactly one argument");const r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);null===r&&F(e,"ill-formed argument of the YAML directive");const o=parseInt(r[1],10),s=parseInt(r[2],10);1!==o&&F(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,1!==s&&2!==s&&S(e,"unsupported YAML version of the document")},TAG:function(e,t,n){let r;2!==n.length&&F(e,"TAG directive accepts exactly two arguments");const s=n[0];r=n[1],c.test(s)||F(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,s)&&F(e,'there is a previously declared suffix for "'+s+'" tag handle'),l.test(r)||F(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){F(e,"tag prefix is malformed: "+r)}e.tagMap[s]=r}};function I(e,t,n,r){if(t<n){const o=e.input.slice(t,n);if(r)for(let t=0,n=o.length;t<n;t+=1){const n=o.charCodeAt(t);9===n||n>=32&&n<=1114111||F(e,"expected valid JSON character")}else s.test(o)&&F(e,"the stream contains non-printable characters");e.result+=o}}function D(e){e.totalMergeKeys++,-1!==e.maxTotalMergeKeys&&e.totalMergeKeys>e.maxTotalMergeKeys&&F(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function $(t,n,r,s){e.isObject(r)||F(t,"cannot merge mappings; the provided source object is unacceptable"),D(t);const i=Object.keys(r);for(let e=0,a=i.length;e<a;e+=1){const a=i[e];D(t),o.call(n,a)||(v(n,a,r[a]),s[a]=!0)}}function L(e,t,n,r,s,i,a,c,l){if(Array.isArray(s))for(let t=0,n=(s=Array.prototype.slice.call(s)).length;t<n;t+=1)Array.isArray(s[t])&&F(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===u(s[t])&&(s[t]="[object Object]");if("object"==typeof s&&"[object Object]"===u(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i)){i.length>100&&F(e,"abnormal merge sequence size");for(let r=0,o=i.length;r<o;r+=1)$(e,t,i[r],n)}else $(e,t,i,n);else e.json||o.call(n,s)||!o.call(t,s)||(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,F(e,"duplicated mapping key")),v(t,s,i),delete n[s];return t}function M(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):F(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function N(e,t,n){let r=0,o=e.input.charCodeAt(e.position);for(;0!==o;){for(;d(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!p(o))break;for(M(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&S(e,"deficient indentation"),r}function P(e){let t=e.position,n=e.input.charCodeAt(t);return!(45!==n&&46!==n||n!==e.input.charCodeAt(t+1)||n!==e.input.charCodeAt(t+2)||(t+=3,n=e.input.charCodeAt(t),0!==n&&!h(n)))}function B(t,n){1===n?t.result+=" ":n>1&&(t.result+=e.repeat("\n",n-1))}function U(e,t){const n=e.tag,r=e.anchor,o=[];let s=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&O(e,e.anchor,o);let i=e.input.charCodeAt(e.position);for(;0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,F(e,"tab characters must not be used in indentation")),45===i);){if(!h(e.input.charCodeAt(e.position+1)))break;if(s=!0,e.position++,N(e,!0,-1)&&e.lineIndent<=t){o.push(null),i=e.input.charCodeAt(e.position);continue}const n=e.line;if(G(e,t,3,!1,!0),o.push(e.result),N(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)F(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!s&&(e.tag=n,e.anchor=r,e.kind="sequence",e.result=o,!0)}function R(e,t,n){let r,o,s,i;const a=e.tag,c=e.anchor,l={},u=Object.create(null);let p=null,f=null,m=null,y=!1,g=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&O(e,e.anchor,l);let x=e.input.charCodeAt(e.position);for(;0!==x;){y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,F(e,"tab characters must not be used in indentation"));const b=e.input.charCodeAt(e.position+1),v=e.line;if(63!==x&&58!==x||!h(b)){if(o=e.line,s=e.lineStart,i=e.position,!G(e,n,2,!1,!0))break;if(e.line===v){for(x=e.input.charCodeAt(e.position);d(x);)x=e.input.charCodeAt(++e.position);if(58===x)x=e.input.charCodeAt(++e.position),h(x)||F(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(L(e,l,u,p,f,null,o,s,i),p=f=m=null),g=!0,y=!1,r=!1,p=e.tag,f=e.result;else{if(!g)return e.tag=a,e.anchor=c,!0;F(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=a,e.anchor=c,!0;F(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===x?(y&&(L(e,l,u,p,f,null,o,s,i),p=f=m=null),g=!0,y=!0,r=!0):y?(y=!1,r=!0):F(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=b;if((e.line===v||e.lineIndent>t)&&(y&&(o=e.line,s=e.lineStart,i=e.position),G(e,t,4,!0,r)&&(y?f=e.result:m=e.result),y||(L(e,l,u,p,f,m,o,s,i),p=f=m=null),N(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===v||e.lineIndent>t)&&0!==x)F(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&L(e,l,u,p,f,null,o,s,i),g&&(e.tag=a,e.anchor=c,e.kind="mapping",e.result=l),g}function H(e){let t,n,r=!1,s=!1,i=e.input.charCodeAt(e.position);if(33!==i)return!1;null!==e.tag&&F(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),60===i?(r=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,t="!!",i=e.input.charCodeAt(++e.position)):t="!";let u=e.position;if(r){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(u,e.position),i=e.input.charCodeAt(++e.position)):F(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!h(i);)33===i&&(s?F(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(u-1,e.position+1),c.test(t)||F(e,"named tag handle cannot contain such characters"),s=!0,u=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(u,e.position),a.test(n)&&F(e,"tag suffix cannot contain flow indicator characters")}n&&!l.test(n)&&F(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){F(e,"tag name is malformed: "+n)}return r?e.tag=n:o.call(e.tagMap,t)?e.tag=e.tagMap[t]+n:"!"===t?e.tag="!"+n:"!!"===t?e.tag="tag:yaml.org,2002:"+n:F(e,'undeclared tag handle "'+t+'"'),!0}function q(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&F(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!h(t)&&!f(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&F(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function _(e,t,n,r){const s=E(e);return function(e){e.anchorMapTransactions.push(Object.create(null))}(e),C(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,R(e,n,r)&&"mapping"===e.kind?(function(e){const t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(0===n.length)return;const r=n[n.length-1],s=Object.keys(t);for(let e=0,n=s.length;e<n;e+=1){const n=s[e];o.call(r,n)||(r[n]=t[n])}}(e),!0):(function(e){const t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;r-=1){const o=t[n[r]];o.existed?e.anchorMap[n[r]]=o.value:delete e.anchorMap[n[r]]}}(e),C(e,s),!1)}function G(t,n,r,s,i){let a,c,l,u,x,v=1,k=!1,T=!1,S=null;t.depth>=t.maxDepth&&F(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;const C=a=c=4===r||3===r;if(s&&N(t,!0,-1)&&(k=!0,t.lineIndent>n?v=1:t.lineIndent===n?v=0:t.lineIndent<n&&(v=-1)),1===v)for(;;){const e=t.input.charCodeAt(t.position),r=E(t);if(k&&(33===e&&null!==t.tag||38===e&&null!==t.anchor))break;if(!H(t)&&!q(t))break;null===S&&(S=r),N(t,!0,-1)?(k=!0,c=C,t.lineIndent>n?v=1:t.lineIndent===n?v=0:t.lineIndent<n&&(v=-1)):c=!1}if(c&&(c=k||i),1===v||4===r)if(u=1===r||2===r?n:n+1,x=t.position-t.lineStart,1===v)if(c&&(U(t,x)||R(t,x,u))||function(e,t){let n,r,o,s=!0;const i=e.tag;let a;const c=e.anchor;let l,u,p,d;const f=Object.create(null);let m,y,g,x=e.input.charCodeAt(e.position);if(91===x)l=93,d=!1,a=[];else{if(123!==x)return!1;l=125,d=!0,a={}}for(null!==e.anchor&&O(e,e.anchor,a),x=e.input.charCodeAt(++e.position);0!==x;){if(N(e,!0,t),x=e.input.charCodeAt(e.position),x===l)return e.position++,e.tag=i,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=a,!0;s?44===x&&F(e,"expected the node content, but found ','"):F(e,"missed comma between flow collection entries"),y=m=g=null,u=p=!1,63===x&&h(e.input.charCodeAt(e.position+1))&&(u=p=!0,e.position++,N(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,G(e,t,1,!1,!0),y=e.tag,m=e.result,N(e,!0,t),x=e.input.charCodeAt(e.position),!p&&e.line!==n||58!==x||(u=!0,x=e.input.charCodeAt(++e.position),N(e,!0,t),G(e,t,1,!1,!0),g=e.result),d?L(e,a,f,y,m,g,n,r,o):u?a.push(L(e,null,f,y,m,g,n,r,o)):a.push(m),N(e,!0,t),x=e.input.charCodeAt(e.position),44===x?(s=!0,x=e.input.charCodeAt(++e.position)):s=!1}F(e,"unexpected end of the stream within a flow collection")}(t,u))T=!0;else{const n=t.input.charCodeAt(t.position);null!==S&&C&&!c&&124!==n&&62!==n&&_(t,S,S.position-S.lineStart,u)||a&&function(t,n){let r,o,s=1,i=!1,a=!1,c=n,l=0,u=!1,h=t.input.charCodeAt(t.position);if(124===h)r=!1;else{if(62!==h)return!1;r=!0}for(t.kind="scalar",t.result="";0!==h;)if(h=t.input.charCodeAt(++t.position),43===h||45===h)1===s?s=43===h?3:2:F(t,"repeat of a chomping mode identifier");else{if(!((o=g(h))>=0))break;0===o?F(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?F(t,"repeat of an indentation width identifier"):(c=n+o-1,a=!0)}if(d(h)){do{h=t.input.charCodeAt(++t.position)}while(d(h));if(35===h)do{h=t.input.charCodeAt(++t.position)}while(!p(h)&&0!==h)}for(;0!==h;){for(M(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!a||t.lineIndent<c)&&32===h;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>c&&(c=t.lineIndent),p(h)){l++;continue}if(a||0!==c||F(t,"missing indentation for block scalar"),t.lineIndent<c){3===s?t.result+=e.repeat("\n",i?1+l:l):1===s&&i&&(t.result+="\n");break}r?d(h)?(u=!0,t.result+=e.repeat("\n",i?1+l:l)):u?(u=!1,t.result+=e.repeat("\n",l+1)):0===l?i&&(t.result+=" "):t.result+=e.repeat("\n",l):t.result+=e.repeat("\n",i?1+l:l),i=!0,a=!0,l=0;const n=t.position;for(;!p(h)&&0!==h;)h=t.input.charCodeAt(++t.position);I(t,n,t.position,!1)}return!0}(t,u)||function(e,t){let n,r,o=e.input.charCodeAt(e.position);if(39!==o)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));)if(39===o){if(I(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),39!==o)return!0;n=e.position,e.position++,r=e.position}else p(o)?(I(e,n,r,!0),B(e,N(e,!1,t)),n=r=e.position):e.position===e.lineStart&&P(e)?F(e,"unexpected end of the document within a single quoted scalar"):(e.position++,d(o)||(r=e.position));F(e,"unexpected end of the stream within a single quoted scalar")}(t,u)||function(e,t){let n,r,o,s=e.input.charCodeAt(e.position);if(34!==s)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return I(e,n,e.position,!0),e.position++,!0;if(92===s){if(I(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),p(s))N(e,!1,t);else if(s<256&&w[s])e.result+=A[s],e.position++;else if((o=y(s))>0){let t=o,n=0;for(;t>0;t--)s=e.input.charCodeAt(++e.position),(o=m(s))>=0?n=(n<<4)+o:F(e,"expected hexadecimal character");e.result+=b(n),e.position++}else F(e,"unknown escape sequence");n=r=e.position}else p(s)?(I(e,n,r,!0),B(e,N(e,!1,t)),n=r=e.position):e.position===e.lineStart&&P(e)?F(e,"unexpected end of the document within a double quoted scalar"):(e.position++,d(s)||(r=e.position))}F(e,"unexpected end of the stream within a double quoted scalar")}(t,u)?T=!0:!function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!h(t)&&!f(t);)t=e.input.charCodeAt(++e.position);e.position===n&&F(e,"name of an alias node must contain at least one character");const r=e.input.slice(n,e.position);return o.call(e.anchorMap,r)||F(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],N(e,!0,-1),!0}(t)?function(e,t,n){let r,o,s,i,a,c;const l=e.kind,u=e.result;let m=e.input.charCodeAt(e.position);if(h(m)||f(m)||35===m||38===m||42===m||33===m||124===m||62===m||39===m||34===m||37===m||64===m||96===m)return!1;if(63===m||45===m){const t=e.input.charCodeAt(e.position+1);if(h(t)||n&&f(t))return!1}for(e.kind="scalar",e.result="",r=o=e.position,s=!1;0!==m;){if(58===m){const t=e.input.charCodeAt(e.position+1);if(h(t)||n&&f(t))break}else if(35===m){if(h(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&P(e)||n&&f(m))break;if(p(m)){if(i=e.line,a=e.lineStart,c=e.lineIndent,N(e,!1,-1),e.lineIndent>=t){s=!0,m=e.input.charCodeAt(e.position);continue}e.position=o,e.line=i,e.lineStart=a,e.lineIndent=c;break}}s&&(I(e,r,o,!1),B(e,e.line-i),r=o=e.position,s=!1),d(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return I(e,r,o,!1),!!e.result||(e.kind=l,e.result=u,!1)}(t,u,1===r)&&(T=!0,null===t.tag&&(t.tag="?")):(T=!0,null===t.tag&&null===t.anchor||F(t,"alias node should not have any properties")),null!==t.anchor&&O(t,t.anchor,t.result)}else 0===v&&(T=c&&U(t,x));if(null===t.tag)null!==t.anchor&&O(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&F(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,n=t.implicitTypes.length;e<n;e+=1)if(l=t.implicitTypes[e],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&O(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(o.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;const e=t.typeMap.multi[t.kind||"fallback"];for(let n=0,r=e.length;n<r;n+=1)if(t.tag.slice(0,e[n].tag.length)===e[n].tag){l=e[n];break}}l||F(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&F(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&O(t,t.anchor,t.result)):F(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||T}function z(e){const t=e.position;let n,r=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(N(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){r=!0,n=e.input.charCodeAt(++e.position);let t=e.position;for(;0!==n&&!h(n);)n=e.input.charCodeAt(++e.position);const s=e.input.slice(t,e.position),i=[];for(s.length<1&&F(e,"directive name must not be less than one character in length");0!==n;){for(;d(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!p(n));break}if(p(n))break;for(t=e.position;0!==n&&!h(n);)n=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==n&&M(e),o.call(j,s)?j[s](e,s,i):S(e,'unknown document directive "'+s+'"')}N(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,N(e,!0,-1)):r&&F(e,"directives end mark is expected"),G(e,e.lineIndent-1,4,!1,!0),N(e,!0,-1),e.checkLineBreaks&&i.test(e.input.slice(t,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&P(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,N(e,!0,-1)):e.position<e.length-1&&F(e,"end of the stream or a document separator is expected")}function Y(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));const n=new k(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,F(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)z(n);return n.documents}return Dn.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);const r=Y(e,n);if("function"!=typeof t)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])},Dn.load=function(e,n){const r=Y(e,n);if(0!==r.length){if(1===r.length)return r[0];throw new t("expected a single document in the stream, but found more")}},Dn}var nr,rr,or={};function sr(){if(nr)return or;nr=1;const e=Ln(),t=Mn(),n=er(),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=65279,i={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(n){let r,o;const s=n.toString(16).toUpperCase();if(n<=255)r="x",o=2;else if(n<=65535)r="u",o=4;else{if(!(n<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+e.repeat("0",o-s.length)+s}function u(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){if(null===t)return{};const n={},r=Object.keys(t);for(let s=0,i=r.length;s<i;s+=1){let i=r[s],a=String(t[i]);"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2));const c=e.compiledTypeMap.fallback[i];c&&o.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[i]=a}return n}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function p(t,n){const r=e.repeat(" ",n);let o=0,s="";const i=t.length;for(;o<i;){let e;const n=t.indexOf("\n",o);-1===n?(e=t.slice(o),o=i):(e=t.slice(o,n+1),o=n+1),e.length&&"\n"!==e&&(s+=r),s+=e}return s}function d(t,n){return"\n"+e.repeat(" ",t.indent*n)}function h(e){return 32===e||9===e}function f(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==s||e>=65536&&e<=1114111}function m(e){return f(e)&&e!==s&&13!==e&&10!==e}function y(e,t,n){const r=m(e),o=r&&!h(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||m(t)&&!h(t)&&35===e||58===t&&o}function g(e,t){const n=e.charCodeAt(t);let r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}function x(e){return/^\n* /.test(e)}function b(e,t,n,r,o,i,a,c){let l,u=0,p=null,d=!1,m=!1;const b=-1!==r;let v=-1,w=f(A=g(e,0))&&A!==s&&!h(A)&&45!==A&&63!==A&&58!==A&&44!==A&&91!==A&&93!==A&&123!==A&&125!==A&&35!==A&&38!==A&&42!==A&&33!==A&&124!==A&&61!==A&&62!==A&&39!==A&&34!==A&&37!==A&&64!==A&&96!==A&&function(e){return!h(e)&&58!==e}(g(e,e.length-1));var A;if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=g(e,l),!f(u))return 5;w=w&&y(u,p,c),p=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=g(e,l),10===u)d=!0,b&&(m=m||l-v-1>r&&" "!==e[v+1],v=l);else if(!f(u))return 5;w=w&&y(u,p,c),p=u}m=m||b&&l-v-1>r&&" "!==e[v+1]}return d||m?n>9&&x(e)?5:a?2===i?5:2:m?4:3:!w||a||o(e)?2===i?5:2:1}function v(e,n,r,o,s){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==a.indexOf(n)||c.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";const u=e.indent*Math.max(1,r),d=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),h=o||e.flowLevel>-1&&r>=e.flowLevel;switch(b(n,h,e.indent,d,function(t){return function(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!o,s)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+w(n,e.indent)+A(p(n,u));case 4:return">"+w(n,e.indent)+A(p(function(e,t){const n=/(\n+)([^\n]*)/g;let r,o,s=function(){let r=e.indexOf("\n");return r=-1!==r?r:e.length,n.lastIndex=r,k(e.slice(0,r),t)}(),i="\n"===e[0]||" "===e[0];for(;o=n.exec(e);){const e=o[1],n=o[2];r=" "===n[0],s+=e+(i||r||""===n?"":"\n")+k(n,t),i=r}return s}(n,d),u));case 5:return'"'+function(e){let t="",n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=g(e,r);const o=i[n];!o&&f(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=o||l(n)}return t}(n)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function w(e,t){const n=x(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function A(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function k(e,t){if(""===e||" "===e[0])return e;const n=/ [^ ]/g;let r,o,s=0,i=0,a=0,c="";for(;r=n.exec(e);)a=r.index,a-s>t&&(o=i>s?i:a,c+="\n"+e.slice(s,o),s=o+1),i=a;return c+="\n",e.length-s>t&&i>s?c+=e.slice(s,i)+"\n"+e.slice(i+1):c+=e.slice(s),c.slice(1)}function T(e,t,n,r){let o="";const s=e.tag;for(let s=0,i=n.length;s<i;s+=1){let i=n[s];e.replacer&&(i=e.replacer.call(n,String(s),i)),(S(e,t+1,i,!0,!0,!1,!0)||void 0===i&&S(e,t+1,null,!0,!0,!1,!0))&&(r&&""===o||(o+=d(e,t)),e.dump&&10===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump)}e.tag=s,e.dump=o||"[]"}function F(e,n,s){const i=s?e.explicitTypes:e.implicitTypes;for(let a=0,c=i.length;a<c;a+=1){const c=i[a];if((c.instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof n&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(s?c.multi&&c.representName?e.tag=c.representName(n):e.tag=c.tag:e.tag="?",c.represent){const s=e.styleMap[c.tag]||c.defaultStyle;let i;if("[object Function]"===r.call(c.represent))i=c.represent(n,s);else{if(!o.call(c.represent,s))throw new t("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');i=c.represent[s](n,s)}e.dump=i}return!0}}return!1}function S(e,n,o,s,i,a,c){e.tag=null,e.dump=o,F(e,o,!1)||F(e,o,!0);const l=r.call(e.dump),u=s;s&&(s=e.flowLevel<0||e.flowLevel>n);const p="[object Object]"===l||"[object Array]"===l;let h,f;if(p&&(h=e.duplicates.indexOf(o),f=-1!==h),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&n>0)&&(i=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(p&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===l)s&&0!==Object.keys(e.dump).length?(!function(e,n,r,o){let s="";const i=e.tag,a=Object.keys(r);if(!0===e.sortKeys)a.sort();else if("function"==typeof e.sortKeys)a.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,i=a.length;t<i;t+=1){let i="";o&&""===s||(i+=d(e,n));const c=a[t];let l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!S(e,n+1,c,!0,!0,!0))continue;const u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;u&&(e.dump&&10===e.dump.charCodeAt(0)?i+="?":i+="? "),i+=e.dump,u&&(i+=d(e,n)),S(e,n+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?i+=":":i+=": ",i+=e.dump,s+=i)}e.tag=i,e.dump=s||"{}"}(e,n,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const o=e.tag,s=Object.keys(n);for(let o=0,i=s.length;o<i;o+=1){let i="";""!==r&&(i+=", "),e.condenseFlow&&(i+='"');const a=s[o];let c=n[a];e.replacer&&(c=e.replacer.call(n,a,c)),S(e,t,a,!1,!1)&&(e.dump.length>1024&&(i+="? "),i+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,c,!1,!1)&&(i+=e.dump,r+=i))}e.tag=o,e.dump="{"+r+"}"}(e,n,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===l)s&&0!==e.dump.length?(e.noArrayIndent&&!c&&n>0?T(e,n-1,e.dump,i):T(e,n,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const o=e.tag;for(let o=0,s=n.length;o<s;o+=1){let s=n[o];e.replacer&&(s=e.replacer.call(n,String(o),s)),(S(e,t,s,!1,!1)||void 0===s&&S(e,t,null,!1,!1))&&(""!==r&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump)}e.tag=o,e.dump="["+r+"]"}(e,n,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&v(e,e.dump,n,a,u)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function O(e,t){const n=[],r=[];E(e,n,r);const o=r.length;for(let e=0;e<o;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=new Array(o)}function E(e,t,n){if(null!==e&&"object"==typeof e){const r=t.indexOf(e);if(-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,o=e.length;r<o;r+=1)E(e[r],t,n);else{const r=Object.keys(e);for(let o=0,s=r.length;o<s;o+=1)E(e[r[o]],t,n)}}}return or.dump=function(e,t){const n=new u(t=t||{});n.noRefs||O(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),S(n,0,r,!0,!0)?n.dump+"\n":""},or}const ir=Ut(function(){if(rr)return In;rr=1;const e=tr(),t=sr();function n(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return In.Type=Nn(),In.Schema=Pn(),In.FAILSAFE_SCHEMA=Hn(),In.JSON_SCHEMA=Yn(),In.CORE_SCHEMA=Vn(),In.DEFAULT_SCHEMA=er(),In.load=e.load,In.loadAll=e.loadAll,In.dump=t.dump,In.YAMLException=Mn(),In.types={binary:Xn(),float:zn(),map:Rn(),null:qn(),pairs:Jn(),set:Zn(),timestamp:Wn(),bool:_n(),int:Gn(),merge:Kn(),omap:Qn(),seq:Un(),str:Bn()},In.safeLoad=n("safeLoad","load"),In.safeLoadAll=n("safeLoadAll","loadAll"),In.safeDump=n("safeDump","dump"),In}()),{Type:ar,Schema:cr,FAILSAFE_SCHEMA:lr,JSON_SCHEMA:ur,CORE_SCHEMA:pr,DEFAULT_SCHEMA:dr,load:hr,loadAll:fr,dump:mr,YAMLException:yr,types:gr,safeLoad:xr,safeLoadAll:br,safeDump:vr}=ir;function wr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=function(e){return c()(e).call(e,", ")?e.split(", "):e}(n),e),{})}function Ar(e,t,{loadSpec:n=!1}={}){const r={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:wr(e.headers)},o=r.headers["content-type"],s=n||((e="")=>/(json|xml|yaml|text)\b/.test(e))(o);return(s?e.text:e.blob||e.buffer).call(e).then(e=>{if(r.text=e,r.data=e,s)try{const t=function(e,t){if(t){if(0===t.indexOf("application/json")||t.indexOf("+json")>0)return JSON.parse(e);if(0===t.indexOf("application/xml")||t.indexOf("+xml")>0)return e}return ir.load(e)}(e,o);r.body=t,r.obj=t}catch(e){r.parseError=e}return r})}function kr(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+="path-template = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+='slash = "/"\n',e+="path-literal = 1*pchar\n",e+='template-expression = "{" template-expression-param-name "}"\n',e+="template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+='pchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\n",e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\n; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npath-template = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nslash = "/"\npath-literal = 1*pchar\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\npct-encoded = "%" HEXDIG HEXDIG\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}}const Tr=e=>(t,n,r,o,s)=>{if(t===ht.SEM_PRE){const t={type:e,text:dt.charsToString(n,r,o),start:r,length:o,children:[]};s.stack.length>0?s.stack[s.stack.length-1].children.push(t):s.root=t,s.stack.push(t)}t===ht.SEM_POST&&s.stack.pop()};const Fr=class extends lt{constructor(){super(),this.callbacks["path-template"]=Tr("path-template"),this.callbacks["path-segment"]=Tr("path-segment"),this.callbacks.slash=Tr("slash"),this.callbacks["path-literal"]=Tr("path-literal"),this.callbacks["template-expression"]=Tr("template-expression"),this.callbacks["template-expression-param-name"]=Tr("template-expression-param-name")}getTree(){const e={stack:[],root:null};return this.translate(e),e.root}},Sr=e=>{if("path-literal"===e.type)return{type:"PathLiteral",value:e.text};const t=e.children.find(({type:e})=>"template-expression-param-name"===e);return{type:"TemplateExpression",name:t.text}};const Or=class extends Fr{getTree(){const e=super.getTree(),t=e.children.filter(({type:e})=>"path-segment"===e).map(e=>({type:"PathSegment",parts:e.children.map(Sr)})),n=e.children[e.children.length-1];return{type:"PathTemplate",segments:t,trailingSlash:t.length>0&&"slash"===n.type}}},Er=e=>(t,n,r,o,s)=>{if(t===ht.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push([e,dt.charsToString(n,r,o)])}return ht.SEM_OK};const Cr=class extends lt{constructor(){super(),this.callbacks["path-template"]=Er("path-template"),this.callbacks.slash=Er("slash"),this.callbacks["path-literal"]=Er("path-literal"),this.callbacks["template-expression"]=Er("template-expression"),this.callbacks["template-expression-param-name"]=Er("template-expression-param-name")}getTree(){const e=[];return this.translate(e),e}};const jr=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}};const Ir=class extends ut{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let n=-1;for(let r=0;r<e.length;r++){const o=e[r];if(o.includes("M|")){const e=o.match(/]'(.*)'$/);e&&e[1]&&(n=r)}if(r>n){const e=o.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new jr(...t)}};class Dr extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}const $r=Dr;const Lr=class extends $r{},Mr=new kr,Nr=(e,{translator:t=new Or,stats:n=!1,trace:r=!1}={})=>{if("string"!=typeof e)throw new TypeError("Path template must be a string");try{const o=new ct;t&&(o.ast=t),n&&(o.stats=new pt),r&&(o.trace=new Ir);const s=o.parse(Mr,"path-template",e);let i;return{result:s,tree:s.success&&t?o.ast.getTree():void 0,stats:o.stats,trace:o.trace,get ast(){if(void 0===i){const t=new ct;t.ast=new Cr,t.parse(Mr,"path-template",e),i=t.ast}return i}}}catch(t){throw new Lr("Unexpected error during OpenAPI Path Templating parsing",{cause:t,pathTemplate:e})}};const Pr=({style:e="simple",allowReserved:t=!1})=>{switch(e){case"simple":return t?"+":"";case"label":return".";case"matrix":return";";default:throw new TypeError(`Unsupported style of path parameter: "${e}"`)}},Br=e=>{const t=(e=>{const t=new Map;return e.filter(e=>"string"==typeof(null==e?void 0:e.name)&&(void 0===e.in||"path"===e.in)).forEach(e=>{t.has(e.name)||t.set(e.name,e)}),t})(null!=e?e:[]);return e=>{var n;const r=null!==(n=t.get(e))&&void 0!==n?n:{};return{type:"Expression",operator:Pr(r),variables:[{name:e,prefix:void 0,explode:Boolean(r.explode)}]}}};new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"URI-Template",lower:"uri-template",index:0,isBkr:!1},this.rules[1]={name:"literals",lower:"literals",index:1,isBkr:!1},this.rules[2]={name:"expression",lower:"expression",index:2,isBkr:!1},this.rules[3]={name:"operator",lower:"operator",index:3,isBkr:!1},this.rules[4]={name:"op-level2",lower:"op-level2",index:4,isBkr:!1},this.rules[5]={name:"op-level3",lower:"op-level3",index:5,isBkr:!1},this.rules[6]={name:"op-reserve",lower:"op-reserve",index:6,isBkr:!1},this.rules[7]={name:"variable-list",lower:"variable-list",index:7,isBkr:!1},this.rules[8]={name:"varspec",lower:"varspec",index:8,isBkr:!1},this.rules[9]={name:"varname",lower:"varname",index:9,isBkr:!1},this.rules[10]={name:"varchar",lower:"varchar",index:10,isBkr:!1},this.rules[11]={name:"modifier-level4",lower:"modifier-level4",index:11,isBkr:!1},this.rules[12]={name:"prefix",lower:"prefix",index:12,isBkr:!1},this.rules[13]={name:"max-length",lower:"max-length",index:13,isBkr:!1},this.rules[14]={name:"explode",lower:"explode",index:14,isBkr:!1},this.rules[15]={name:"pct-encoded",lower:"pct-encoded",index:15,isBkr:!1},this.rules[16]={name:"ucschar",lower:"ucschar",index:16,isBkr:!1},this.rules[17]={name:"iprivate",lower:"iprivate",index:17,isBkr:!1},this.rules[18]={name:"ALPHA",lower:"alpha",index:18,isBkr:!1},this.rules[19]={name:"DIGIT",lower:"digit",index:19,isBkr:!1},this.rules[20]={name:"HEXDIG",lower:"hexdig",index:20,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:4,index:2},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[1].opcodes[1]={type:6,string:[33]},this.rules[1].opcodes[2]={type:5,min:35,max:36},this.rules[1].opcodes[3]={type:5,min:38,max:59},this.rules[1].opcodes[4]={type:6,string:[61]},this.rules[1].opcodes[5]={type:5,min:63,max:91},this.rules[1].opcodes[6]={type:6,string:[93]},this.rules[1].opcodes[7]={type:6,string:[95]},this.rules[1].opcodes[8]={type:5,min:97,max:122},this.rules[1].opcodes[9]={type:6,string:[126]},this.rules[1].opcodes[10]={type:4,index:16},this.rules[1].opcodes[11]={type:4,index:17},this.rules[1].opcodes[12]={type:4,index:15},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,4,5]},this.rules[2].opcodes[1]={type:7,string:[123]},this.rules[2].opcodes[2]={type:3,min:0,max:1},this.rules[2].opcodes[3]={type:4,index:3},this.rules[2].opcodes[4]={type:4,index:7},this.rules[2].opcodes[5]={type:7,string:[125]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:1,children:[1,2,3]},this.rules[3].opcodes[1]={type:4,index:4},this.rules[3].opcodes[2]={type:4,index:5},this.rules[3].opcodes[3]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:7,string:[43]},this.rules[4].opcodes[2]={type:7,string:[35]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:7,string:[46]},this.rules[5].opcodes[2]={type:7,string:[47]},this.rules[5].opcodes[3]={type:7,string:[59]},this.rules[5].opcodes[4]={type:7,string:[63]},this.rules[5].opcodes[5]={type:7,string:[38]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:7,string:[61]},this.rules[6].opcodes[2]={type:7,string:[44]},this.rules[6].opcodes[3]={type:7,string:[33]},this.rules[6].opcodes[4]={type:7,string:[64]},this.rules[6].opcodes[5]={type:7,string:[124]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2]},this.rules[7].opcodes[1]={type:4,index:8},this.rules[7].opcodes[2]={type:3,min:0,max:1/0},this.rules[7].opcodes[3]={type:2,children:[4,5]},this.rules[7].opcodes[4]={type:7,string:[44]},this.rules[7].opcodes[5]={type:4,index:8},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2]},this.rules[8].opcodes[1]={type:4,index:9},this.rules[8].opcodes[2]={type:3,min:0,max:1},this.rules[8].opcodes[3]={type:4,index:11},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,6]},this.rules[9].opcodes[4]={type:3,min:0,max:1},this.rules[9].opcodes[5]={type:7,string:[46]},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[10].opcodes[1]={type:4,index:18},this.rules[10].opcodes[2]={type:4,index:19},this.rules[10].opcodes[3]={type:7,string:[95]},this.rules[10].opcodes[4]={type:4,index:15},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2]},this.rules[11].opcodes[1]={type:4,index:12},this.rules[11].opcodes[2]={type:4,index:14},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,2]},this.rules[12].opcodes[1]={type:7,string:[58]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:2,children:[1,2]},this.rules[13].opcodes[1]={type:5,min:49,max:57},this.rules[13].opcodes[2]={type:3,min:0,max:3},this.rules[13].opcodes[3]={type:4,index:19},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:7,string:[42]},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,3]},this.rules[15].opcodes[1]={type:7,string:[37]},this.rules[15].opcodes[2]={type:4,index:20},this.rules[15].opcodes[3]={type:4,index:20},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:5,min:160,max:55295},this.rules[16].opcodes[2]={type:5,min:63744,max:64975},this.rules[16].opcodes[3]={type:5,min:65008,max:65519},this.rules[16].opcodes[4]={type:5,min:65536,max:131069},this.rules[16].opcodes[5]={type:5,min:131072,max:196605},this.rules[16].opcodes[6]={type:5,min:196608,max:262141},this.rules[16].opcodes[7]={type:5,min:262144,max:327677},this.rules[16].opcodes[8]={type:5,min:327680,max:393213},this.rules[16].opcodes[9]={type:5,min:393216,max:458749},this.rules[16].opcodes[10]={type:5,min:458752,max:524285},this.rules[16].opcodes[11]={type:5,min:524288,max:589821},this.rules[16].opcodes[12]={type:5,min:589824,max:655357},this.rules[16].opcodes[13]={type:5,min:655360,max:720893},this.rules[16].opcodes[14]={type:5,min:720896,max:786429},this.rules[16].opcodes[15]={type:5,min:786432,max:851965},this.rules[16].opcodes[16]={type:5,min:851968,max:917501},this.rules[16].opcodes[17]={type:5,min:921600,max:983037},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3]},this.rules[17].opcodes[1]={type:5,min:57344,max:63743},this.rules[17].opcodes[2]={type:5,min:983040,max:1048573},this.rules[17].opcodes[3]={type:5,min:1048576,max:1114109},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:65,max:90},this.rules[18].opcodes[2]={type:5,min:97,max:122},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:5,min:48,max:57},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[20].opcodes[1]={type:4,index:19},this.rules[20].opcodes[2]={type:7,string:[97]},this.rules[20].opcodes[3]={type:7,string:[98]},this.rules[20].opcodes[4]={type:7,string:[99]},this.rules[20].opcodes[5]={type:7,string:[100]},this.rules[20].opcodes[6]={type:7,string:[101]},this.rules[20].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; URI Template ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2\n",e+="URI-Template = *( literals / expression )\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.1\n",e+='; with verified erratum allowing "\'" (https://www.rfc-editor.org/errata/eid6937)\n',e+="literals = %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.2\n",e+='expression = "{" [ operator ] variable-list "}"\n',e+="operator = op-level2 / op-level3 / op-reserve\n",e+='op-level2 = "+" / "#"\n',e+='op-level3 = "." / "/" / ";" / "?" / "&"\n',e+='op-reserve = "=" / "," / "!" / "@" / "|"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.3\n",e+='variable-list = varspec *( "," varspec )\n',e+="varspec = varname [ modifier-level4 ]\n",e+='varname = varchar *( ["."] varchar )\n',e+='varchar = ALPHA / DIGIT / "_" / pct-encoded\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.4\n",e+="modifier-level4 = prefix / explode\n",e+='prefix = ":" max-length\n',e+="max-length = %x31-39 0*3DIGIT ; positive integer < 10000\n",e+='explode = "*"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-1.5\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; URI Template ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2\nURI-Template = *( literals / expression )\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.1\n; with verified erratum allowing "\'" (https://www.rfc-editor.org/errata/eid6937)\nliterals = %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.2\nexpression = "{" [ operator ] variable-list "}"\noperator = op-level2 / op-level3 / op-reserve\nop-level2 = "+" / "#"\nop-level3 = "." / "/" / ";" / "?" / "&"\nop-reserve = "=" / "," / "!" / "@" / "|"\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.3\nvariable-list = varspec *( "," varspec )\nvarspec = varname [ modifier-level4 ]\nvarname = varchar *( ["."] varchar )\nvarchar = ALPHA / DIGIT / "_" / pct-encoded\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.4\nmodifier-level4 = prefix / explode\nprefix = ":" max-length\nmax-length = %x31-39 0*3DIGIT ; positive integer < 10000\nexplode = "*"\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-1.5\npct-encoded = "%" HEXDIG HEXDIG\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}};const Ur=Object.freeze({"":{first:"",sep:",",named:!1,ifemp:"",allowReserved:!1},"+":{first:"",sep:",",named:!1,ifemp:"",allowReserved:!0},".":{first:".",sep:".",named:!1,ifemp:"",allowReserved:!1},"/":{first:"/",sep:"/",named:!1,ifemp:"",allowReserved:!1},";":{first:";",sep:";",named:!0,ifemp:"",allowReserved:!1},"?":{first:"?",sep:"&",named:!0,ifemp:"=",allowReserved:!1},"&":{first:"&",sep:"&",named:!0,ifemp:"=",allowReserved:!1},"#":{first:"#",sep:",",named:!1,ifemp:"",allowReserved:!0}});const Rr=e=>/^[A-Za-z0-9\-._~]$/.test(e),Hr=e=>/^[:/?#[\]@!$&'()*+,;=]$/.test(e),qr=e=>void 0!==e&&/^[0-9A-Fa-f]$/.test(e),_r=e=>{const t=e.codePointAt(0);if(t>=55296&&t<=57343)throw new URIError("Lone surrogate cannot be encoded as UTF-8");return(e=>e<128?[e]:e<2048?[192|e>>6,128|63&e]:e<65536?[224|e>>12,128|e>>6&63,128|63&e]:[240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e])(t).map(e=>`%${e.toString(16).toUpperCase().padStart(2,"0")}`).join("")},Gr=(e,t)=>{const n=Array.from(e);let r="";for(let e=0;e<n.length;e+=1){const o=n[e];Rr(o)||t&&Hr(o)?r+=o:t&&"%"===o&&qr(n[e+1])&&qr(n[e+2])?(r+=`%${n[e+1]}${n[e+2]}`,e+=2):r+=_r(o)}return r},zr=e=>Gr(e,!1),Yr=e=>Gr(e,!0),Vr=e=>null!=e,Wr=e=>{if(Vr(e)){if(Array.isArray(e)){const t=e.filter(Vr).map(String);return 0===t.length?void 0:t}if((e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t})(e)){const t=Object.entries(e).filter(([,e])=>Vr(e)).map(([e,t])=>[e,String(t)]);return 0===t.length?void 0:t}return String(e)}},Kr=({name:e,prefix:t,explode:n},r,o,s)=>{const{sep:i,named:a,ifemp:c,allowReserved:l}=o,u=l?Yr:zr,p=Yr(e),d=(e,t)=>""===t?`${e}${c}`:`${e}=${t}`;if("string"==typeof r){const e=void 0===t?r:Array.from(r).slice(0,t).join("");return a?d(p,u(e)):u(e)}if(void 0!==t)throw new $r(`Prefix modifier is not applicable to composite value of variable "${e}"`,{uriTemplate:s});const h="string"==typeof r[0];if(!n){const e=h?r.map(u):r.flatMap(([e,t])=>[u(e),u(t)]);return a?d(p,e.join(",")):e.join(",")}return h?r.map(e=>a?d(p,u(e)):u(e)).join(i):r.map(([e,t])=>a?d(u(e),u(t)):`${u(e)}=${u(t)}`).join(i)},Xr=({operator:e,variables:t},n,r)=>{const o=Ur[e];if(void 0===o)throw new Lr(`Unsupported operator "${e}" in URI Template: "${r}"`,{uriTemplate:r});const s=t.flatMap(e=>{const t=Object.prototype.hasOwnProperty.call(n,e.name)?Wr(n[e.name]):void 0;return void 0===t?[]:[Kr(e,t,o,r)]});return 0===s.length?"":`${o.first}${s.join(o.sep)}`},Qr=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Jr=(e,t,n={})=>{const{parameterObjects:r,encoder:o}=n,s=null!=r;if(s&&void 0!==o)throw new TypeError("Options encoder and parameterObjects cannot be used together");const i=s?((e,t)=>{const n=Br(e);return(e,r)=>{const o=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(void 0===Wr(o))return`{${r}}`;try{return Xr(n(r),{[r]:o},t)}catch(e){if(e instanceof URIError)throw new $r("Malformed Unicode in path parameter serialization",{cause:e,pathTemplate:t});throw e}}})(r,e):(e=>(t,n)=>Object.prototype.hasOwnProperty.call(t,n)?e(t[n],n):`{${n}}`)(null!=o?o:Qr),a=Nr(e);if(!a.result.success)return e;const{segments:c,trailingSlash:l}=a.tree;return`/${c.map(({parts:e})=>e.map(e=>"PathLiteral"===e.type?e.value:i(t,e.name)).join("")).join("/")}${l?"/":""}`};new kr,new ct;Symbol("template-expression"),Symbol("fresh-char");const Zr={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:n}){e.headers=e.headers||{},void 0!==n&&(e.headers[t.name]=n)},query:function({req:e,value:t,parameter:n}){e.query=e.query||{},!1===t&&"boolean"===n.type&&(t="false");0===t&&["number","integer"].indexOf(n.type)>-1&&(t="0");if(t)e.query[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&void 0!==t){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:n,baseURL:r}){if(void 0!==t){const o=e.url.replace(r,""),s=Jr(o,{[n.name]:t});e.url=r+s}},formData:function({req:e,value:t,parameter:n}){!1===t&&"boolean"===n.type&&(t="false");0===t&&["number","integer"].indexOf(n.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=n.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function eo(e,t){return c()(t).call(t,"application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map(e=>{try{return JSON.parse(e)}catch(t){return e}})),JSON.stringify(e)):String(e)}const to=A(function(e,t,n){var r,o={};for(r in n=n||{},t=t||{})d(r,t)&&(o[r]=d(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)d(r,n)&&!d(r,o)&&(o[r]=n[r]);return o});const no=A(function e(t,n,r){return to(function(n,r,o){return ue(r)&&ue(o)?e(t,r,o):t(n,r,o)},n,r)});const ro=p(function(e,t){return no(function(e,t,n){return n},e,t)});function oo(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+="; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\n',e+="lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\n",e+='lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\n',e+='lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\n',e+='lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\n',e+="lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\n",e+="lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\n",e+="lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\n",e+="lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n",e+=" ; Allow all printable characters except CTLs, semicolon and SP\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='cookie-string = cookie-pair *( ";" SP cookie-pair )\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+="; https://www.rfc-editor.org/errata/eid5518\n",e+='cookie-pair = cookie-name "=" cookie-value\n',e+="cookie-name = token\n",e+="cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid8242\n",e+="cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n",e+=" ; US-ASCII characters excluding CTLs,\n",e+=" ; whitespace, DQUOTE, comma, semicolon,\n",e+=" ; and backslash\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\n",e+='OWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\n",e+="token = 1*(tchar)\n",e+='tchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n',e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=" / DIGIT / ALPHA\n",e+=" ; any VCHAR, except delimiters\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\n",e+="CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\n",e+="CTL = %x00-1F / %x7F ; any US-ASCII control character\n",e+='separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\n',e+="SP = %x20 ; US-ASCII SP, space (32)\n",e+="HT = %x09 ; US-ASCII HT, horizontal-tab (9)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='DQUOTE = %x22 ; " (Double Quote)\n',e+="WSP = SP / HTAB ; white space\n",e+="HTAB = %x09 ; horizontal tab\n",e+="CRLF = CR LF ; Internet standard newline\n",e+="CR = %x0D ; carriage return\n",e+="LF = %x0A ; linefeed\n",'; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\nlenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\nlenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\nlenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\nlenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\nlenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\nlenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\nlenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\nlenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\nlenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n ; Allow all printable characters except CTLs, semicolon and SP\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\ncookie-string = cookie-pair *( ";" SP cookie-pair )\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n; https://www.rfc-editor.org/errata/eid5518\ncookie-pair = cookie-name "=" cookie-value\ncookie-name = token\ncookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n ; https://www.rfc-editor.org/errata/eid8242\ncookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace, DQUOTE, comma, semicolon,\n ; and backslash\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\nOWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n\n; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\ntoken = 1*(tchar)\ntchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n / DIGIT / ALPHA\n ; any VCHAR, except delimiters\n\n; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\nCHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\nCTL = %x00-1F / %x7F ; any US-ASCII control character\nseparators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\nSP = %x20 ; US-ASCII SP, space (32)\nHT = %x09 ; US-ASCII HT, horizontal-tab (9)\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nDQUOTE = %x22 ; " (Double Quote)\nWSP = SP / HTAB ; white space\nHTAB = %x09 ; horizontal tab\nCRLF = CR LF ; Internet standard newline\nCR = %x0D ; carriage return\nLF = %x0A ; linefeed\n'}}new oo;const so=e=>{if("string"!=typeof e||1!==[...e].length)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},io=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),ao=e=>io(e)?e.slice(1,-1):e,co=e=>`"${e}"`,lo=e=>e,uo=new ct,po=new oo,ho=(e,{strict:t=!0,quoted:n=null}={})=>{try{const r=t?"cookie-value":"lenient-cookie-value",o=uo.parse(po,r,e);return"boolean"==typeof n?o.success&&n===io(e):o.success}catch{return!1}},fo=e=>buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer.from(e).toString("base64"),mo=(e,t=fo)=>{const n=String(e);if(ho(n))return n;const r=io(n),o=t(r?ao(n):n);return r?co(o):o},yo=e=>fo(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),go=e=>mo(e,yo),xo=new ct,bo=new oo,vo=(e,{strict:t=!0}={})=>{try{const n=t?"cookie-name":"lenient-cookie-name";return xo.parse(bo,n,e).success}catch{return!1}},wo=e=>{if(!ho(e))throw new TypeError(`Invalid cookie value: ${e}`)},Ao={encoders:{name:lo,value:go},validators:{name:e=>{if(!vo(e))throw new TypeError(`Invalid cookie name: ${e}`)},value:wo}},ko=(e,t,n={})=>{const r={...Ao,...n,encoders:{...Ao.encoders,...n.encoders},validators:{...Ao.validators,...n.validators}},o=r.encoders.name(e),s=r.encoders.value(t);return r.validators.name(o),r.validators.value(s),`${o}=${s}`},To=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,n])=>ko(e,n,t)).join("; ");const Fo=new ct,So=new oo,Oo=e=>{const t=String(e);if(ho(t))return t;const n=io(t),r=n?ao(t):t;let o="";for(const e of r)o+=Fo.parse(So,"cookie-octet",e).success?e:so(e);return n?co(o):o};new ct,new oo;const Eo=e=>{if(!vo(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const Co=e=>Oo(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),jo=(e,t={})=>To(e,ro({encoders:{name:lo,value:Co},validators:{name:Eo,value:wo}},t));function Io({req:e,value:t,parameter:n,baseURL:r}){const{name:o,style:s,explode:i,content:a}=n;if(void 0===t)return;const c=e.url.replace(r,"");let l;if(a){const e=Object.keys(a)[0];l=Jr(c,{[o]:t},{encoder:t=>jt(eo(t,e))})}else l=Jr(c,{[o]:t},{encoder:e=>It({key:n.name,value:e,style:s||"simple",explode:i??!1,escape:"reserved"})});e.url=r+l}function Do({req:e,value:t,parameter:n}){if(e.query=e.query||{},void 0!==t&&n.content){const r=eo(t,Object.keys(n.content)[0]);if(r)e.query[n.name]=r;else if(n.allowEmptyValue){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}return}if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:r,explode:o,allowReserved:s}=n;e.query[n.name]={value:t,serializationOption:{style:r,explode:o,allowReserved:s}}}else if(n.allowEmptyValue&&void 0!==t){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const $o=["accept","authorization","content-type"];function Lo({req:e,parameter:t,value:n}){if(e.headers=e.headers||{},!($o.indexOf(t.name.toLowerCase())>-1)){if(void 0!==n&&t.content){const r=Object.keys(t.content)[0];return void(e.headers[t.name]=eo(n,r))}void 0===n||Array.isArray(n)&&0===n.length||(e.headers[t.name]=It({key:t.name,value:n,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}}function Mo({req:e,parameter:t,value:n}){const{name:r}=t;if(e.headers=e.headers||{},void 0!==n&&t.content){const o=eo(n,Object.keys(t.content)[0]);return void(e.headers.Cookie=jo({[r]:o}))}if(void 0!==n&&(!Array.isArray(n)||0!==n.length)){const o=It({key:t.name,value:n,escape:!1,style:t.style||"form",explode:t.explode??!1}),s=Array.isArray(n)&&t.explode?`${r}=${o}`:o;e.headers.Cookie=jo({[r]:s})}}const No=e=>{let t;return t=e instanceof buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer?e:buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer.from(e.toString(),"binary"),t.toString("base64")};function Po(e,t){const{operation:n,requestBody:r,securities:o,spec:s,attachContentTypeForEmptyPayload:i}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:n={},spec:r}){const o={...e},{authorized:s={}}=t,i=n.security||r.security||[],a=s&&!!Object.keys(s).length,c=r?.components?.securitySchemes||{};if(o.headers=o.headers||{},o.query=o.query||{},!Object.keys(t).length||!a||!i||Array.isArray(n.security)&&!n.security.length)return e;return i.forEach(e=>{Object.keys(e).forEach(e=>{const t=s[e],n=c[e];if(!t)return;const r=t.value||t,{type:i}=n;if(t)if("apiKey"===i)"query"===n.in&&(o.query[n.name]=r),"header"===n.in&&(o.headers[n.name]=r),"cookie"===n.in&&(o.cookies[n.name]=r);else if("http"===i){if(/^basic$/i.test(n.scheme)){const e=r.username||"",t=r.password||"",n=No(`${e}:${t}`);o.headers.Authorization=`Basic ${n}`}/^bearer$/i.test(n.scheme)&&(o.headers.Authorization=`Bearer ${r}`)}else if("oauth2"===i||"openIdConnect"===i){const e=t.token||{},r=e[n["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),o.headers.Authorization=`${s} ${r}`}})}),o}({request:t,securities:o,operation:n,spec:s});const c=n.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(r||i){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&n.responses){const e=Object.entries(n.responses).filter(([e,t])=>{const n=parseInt(e,10);return n>=200&&n<300&&Ze(t.content)}).reduce((e,[,t])=>e.concat(Object.keys(t.content)),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(r)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof r){const e=c.content[a]?.encoding??{};t.form={},Object.keys(r).forEach(n=>{let o;try{o=JSON.parse(r[n])}catch{o=r[n]}t.form[n]={value:o,encoding:e[n]||{}}})}else if("string"==typeof r){const e=c.content[a]?.encoding??{};try{t.form={};const n=JSON.parse(r);Object.entries(n).forEach(([n,r])=>{t.form[n]={value:r,encoding:e[n]||{}}})}catch{t.form=r}}else t.form=r;else t.body=r}else t.body=r;return t}function Bo(e,t){const{spec:n,operation:r,securities:o,requestContentType:s,responseContentType:i,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:n={},spec:r}){const o={...e},{authorized:s={},specSecurity:i=[]}=t,a=n.security||i,c=s&&!!Object.keys(s).length,l=r.securityDefinitions;if(o.headers=o.headers||{},o.query=o.query||{},!Object.keys(t).length||!c||!a||Array.isArray(n.security)&&!n.security.length)return e;return a.forEach(e=>{Object.keys(e).forEach(e=>{const t=s[e];if(!t)return;const{token:n}=t,r=t.value||t,i=l[e],{type:a}=i,c=i["x-tokenName"]||"access_token",u=n&&n[c];let p=n&&n.token_type;if(t)if("apiKey"===a){const e="query"===i.in?"query":"headers";o[e]=o[e]||{},o[e][i.name]=r}else if("basic"===a)if(r.header)o.headers.authorization=r.header;else{const e=r.username||"",t=r.password||"";r.base64=No(`${e}:${t}`),o.headers.authorization=`Basic ${r.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",o.headers.authorization=`${p} ${u}`)})}),o}({request:t,securities:o,operation:r,spec:n}),t.body||t.form||a)s?t.headers["Content-Type"]=s:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:r.parameters&&r.parameters.filter(e=>"file"===e.type).length?t.headers["Content-Type"]="multipart/form-data":r.parameters&&r.parameters.filter(e=>"formData"===e.in).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){const e=r.parameters&&r.parameters.filter(e=>"body"===e.in).length>0,n=r.parameters&&r.parameters.filter(e=>"formData"===e.in).length>0;(e||n)&&(t.headers["Content-Type"]=s)}return!i&&Array.isArray(r.produces)&&r.produces.length>0&&(t.headers.accept=r.produces.join(", ")),t}const Uo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ro=e=>(e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}})(e)||(e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}})(e)||Uo(e);function Ho(e,t){return function(e,t,n){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:r}=e,o=Uo(e);for(const s in r){for(const o in r[s]){if("PARAMETERS"===o.toUpperCase()||"additionalOperations"===o)continue;const i=r[s][o];if(!i||"object"!=typeof i)continue;const a={spec:e,pathName:s,method:o.toUpperCase(),operation:i},c=t(a);if(n&&c)return a}const{additionalOperations:i}=r[s];if(o&&i&&"object"==typeof i)for(const r of Object.keys(i)){const o=i[r];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:s,method:r,operation:o},c=t(a);if(n&&c)return a}}}(e,t,!0)||null}const qo=e=>e.replace(/\W/gi,"_"),_o=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function Go(e,t,n="",{v2OperationIdCompatibilityMode:r}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?qo(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:n}={}){if(n){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${_o.has(t.toLowerCase())?t.toLowerCase():t}${qo(e)}`}(t,n,{v2OperationIdCompatibilityMode:r})}function zo(e,t){return`${t.toLowerCase()}-${e}`}const{isHttpUrl:Yo}=_speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_1__;const Vo=e=>Array.isArray(e)?e:[],Wo=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,Ko=(e,{recurse:t=!0,depth:n=1}={})=>{var r,o;if(Ze(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(c()(r=e.type).call(r,"object")||c()(o=e.type).call(o,"array")))return e;if(!(n>3e3)&&t){const r=Array.isArray(e.oneOf)?e.oneOf.find(e=>Ko(e,{recurse:t,depth:n+1})):void 0;if(r)return r;const o=Array.isArray(e.anyOf)?e.anyOf.find(e=>Ko(e,{recurse:t,depth:n+1})):void 0;if(o)return o}}},Xo=({value:e,silentFail:t=!1})=>{try{const n=JSON.parse(e);if(Ze(n)||Array.isArray(n))return n;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},Qo=e=>{try{return new URL(e)}catch{const t=new URL(e,"https://swagger.io"),n=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:n,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class Jo extends _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]{}function Zo(e){const{spec:n,operationId:r,responseContentType:o,scheme:s,requestInterceptor:a,responseInterceptor:c,contextUrl:l,userFetch:u,server:p,serverVariables:d,http:h,signal:f,serverVariableEncoder:m}=e;let{parameters:y,parameterBuilders:x,baseURL:v}=e;const w=Ro(n);x||(x=w?i:Zr);let A={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(A.signal=f),a&&(A.requestInterceptor=a),c&&(A.responseInterceptor=c),u&&(A.userFetch=u);const k=function(e,t){return e&&e.paths?Ho(e,({pathName:e,method:n,operation:r})=>{if(!r||"object"!=typeof r)return!1;const o=r.operationId;return[Go(r,e,n),zo(e,n),o].some(e=>e&&e===t)}):null}(n,r);if(!k)throw new Jo(`Operation ${r} not found`);const{operation:T={},method:F,pathName:S}=k;if(!(e=>"string"==typeof e&&Wo.test(e))(F))throw new Error("Invalid HTTP method");if(v=v??function(e){const n=Ro(e.spec);return n?function({spec:e,pathName:n,method:r,operation:o,server:s,contextUrl:i,serverVariables:a={},serverVariableEncoder:c}){let l,u=[],p="";const d=o?.servers??e?.paths?.[n]?.[(r||"").toLowerCase()]?.servers,h=e?.paths?.[n]?.servers,f=e?.servers;u=ts(d)?d:ts(h)?h:ts(f)?f:[Tt],s&&(l=u.find(e=>e.url===s),l&&(p=s));p||([l]=u,p=l.url);if(vt(p,{strict:!0})){const e=Object.entries({...l.variables}).reduce((e,[t,n])=>(e[t]=n.default,e),{});p=kt(p,{...e,...a},{encoder:"function"==typeof c?c:b})}return function(e="",n=""){const r=Qo(e&&n?_speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_1__.resolve(n,e):e),o=Qo(n),s=es(r.protocol)||es(o.protocol),i=r.host||o.host,a=r.pathname;let c;c=s&&i?`${s}://${i+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(p,i)}(e):function({spec:e,scheme:t,contextUrl:n=""}){const r=Qo(n),o=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||o||es(r.protocol)||"http",i=e.host||r.host||"",a=e.basePath||"";let c;c=s&&i?`${s}://${i+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}({spec:n,scheme:s,contextUrl:l,server:p,serverVariables:d,pathName:S,method:F,operation:T,serverVariableEncoder:m}),A.url+=v,!r)return delete A.cookies,A;A.url+=S,A.method=F,y=y||{};const O=n.paths[S]||{};o&&(A.headers.accept=o);const E=(e=>{const t={};e.forEach(e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});const n=[];return Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{n.push(t[e][r])})}),n})([].concat(Vo(T.parameters)).concat(Vo(O.parameters)));E.forEach(e=>{const t=x[e.in];let r;if("body"===e.in&&e.schema&&e.schema.properties&&(r=y),r=e&&e.name&&y[e.name],void 0===r?r=e&&e.name&&y[`${e.in}.${e.name}`]:((e,t)=>t.filter(t=>t.name===e))(e.name,E).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==r){if(void 0!==e.default&&void 0===r&&(r=e.default),void 0===r&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);w&&"string"==typeof r&&(g("type",e.schema)&&"string"==typeof e.schema.type&&Ko(e.schema,{recurse:!1})?r=Xo({value:r,silentFail:!1}):(g("type",e.schema)&&Array.isArray(e.schema.type)&&Ko(e.schema,{recurse:!1})||!g("type",e.schema)&&Ko(e.schema,{recurse:!0}))&&(r=Xo({value:r,silentFail:!0}))),t&&t({req:A,parameter:e,value:r,operation:T,spec:n,baseURL:v})}});const C={...e,operation:T};if(A=w?Po(C,A):Bo(C,A),A.cookies&&Object.keys(A.cookies).length>0){const e=jo(A.cookies);at(A.headers.Cookie)?A.headers.Cookie+=`; ${e}`:A.headers.Cookie=e}return A.cookies&&delete A.cookies,Bt(A)}const es=e=>e?e.replace(/\W/g,""):null;const ts=e=>Array.isArray(e)&&e.length>0;
117462
+ var r={8341(e,t,n){n(7603);var r=n(2856);e.exports=r("Array","includes")},5161(e,t,n){var r=n(4317),o=n(8341),s=n(1019),i=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===i||r(i,e)&&t===i.includes?o:"string"==typeof e||e===a||r(a,e)&&t===a.includes?s:t}},1019(e,t,n){n(3855);var r=n(2856);e.exports=r("String","includes")},814(e,t,n){var r=n(2769),o=n(459),s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(o(e)+" is not a function")}},8137(e){e.exports=function(){}},7235(e,t,n){var r=n(262),o=String,s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(o(e)+" is not an object")}},1005(e,t,n){var r=n(3273),o=n(4574),s=n(8130),i=function(e){return function(t,n,i){var a=r(t),c=s(a);if(0===c)return!e&&-1;var l,p=o(i,c);if(e&&n!=n){for(;c>p;)if((l=a[p++])!=l)return!0}else for(;c>p;p++)if((e||p in a)&&a[p]===n)return e||p||0;return!e&&-1}};e.exports={m:i(!0),...void i(!1)}},9932(e,t,n){var r=n(6100),o=r({}.toString),s=r("".slice);e.exports=function(e){return s(o(e),8,-1)}},8407(e,t,n){var r=n(4904),o=n(2769),s=n(9932),i=n(8655)("toStringTag"),a=Object,c="Arguments"===s(function(){return arguments}());e.exports=r?s:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),i))?n:c?s(t):"Object"===(r=s(t))&&o(t.callee)?"Arguments":r}},4240(e,t,n){var r=n(8655)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},3999(e,t,n){var r=n(5024),o=n(9989),s=n(480);e.exports=r?function(e,t,n){return o.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},480(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7525(e,t,n){var r=n(8900),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024(e,t,n){var r=n(1203);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9619(e,t,n){var r=n(8900),o=n(262),s=r.document,i=o(s)&&o(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},3531(e,t,n){var r=n(8900).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},5547(e,t,n){var r,o,s=n(8900),i=n(3531),a=s.process,c=s.Deno,l=a&&a.versions||c&&c.version,p=l&&l.v8;p&&(o=(r=p.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},9098(e,t,n){var r=n(8900),o=n(7013),s=n(9344),i=n(2769),a=n(4543).f,c=n(8696),l=n(8099),p=n(4572),u=n(3999),d=n(701),h=function(e){var t=function(n,r,s){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,s)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,f,m,y,g,x,v,b,w=e.target,k=e.global,A=e.stat,T=e.proto,S=k?r:A?r[w]:r[w]&&r[w].prototype,F=k?l:l[w]||u(l,w,{})[w],O=F.prototype;for(m in t)o=!(n=c(k?m:w+(A?".":"#")+m,e.forced))&&S&&d(S,m),g=F[m],o&&(x=e.dontCallGetSet?(b=a(S,m))&&b.value:S[m]),y=o&&x?x:t[m],(n||T||typeof g!=typeof y)&&(v=e.bind&&o?p(y,r):e.wrap&&o?h(y):T&&i(y)?s(y):y,(e.sham||y&&y.sham||g&&g.sham)&&u(v,"sham",!0),u(F,m,v),T&&(d(l,f=w+"Prototype")||u(l,f,{}),u(l[f],m,y),e.real&&O&&(n||!O[m])&&u(O,m,y)))}},1203(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013(e,t,n){var r=n(1780),o=Function.prototype,s=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(s):function(){return i.apply(s,arguments)})},4572(e,t,n){var r=n(9344),o=n(814),s=n(1780),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?i(e,t):function(){return e.apply(t,arguments)}}},1780(e,t,n){var r=n(1203);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},4713(e,t,n){var r=n(1780),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9344(e,t,n){var r=n(9932),o=n(6100);e.exports=function(e){if("Function"===r(e))return o(e)}},6100(e,t,n){var r=n(1780),o=Function.prototype,s=o.call,i=r&&o.bind.bind(s,s);e.exports=r?i:function(e){return function(){return s.apply(e,arguments)}}},2856(e,t,n){var r=n(8900),o=n(8099);e.exports=function(e,t){var n=o[e+"Prototype"],s=n&&n[t];if(s)return s;var i=r[e],a=i&&i.prototype;return a&&a[t]}},1003(e,t,n){var r=n(8099),o=n(8900),s=n(2769),i=function(e){return s(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},4674(e,t,n){var r=n(814),o=n(3057);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},8900(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof globalThis&&globalThis)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701(e,t,n){var r=n(6100),o=n(2137),s=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},9665(e,t,n){var r=n(5024),o=n(1203),s=n(9619);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1395(e,t,n){var r=n(6100),o=n(1203),s=n(9932),i=Object,a=r("".split);e.exports=o(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):i(e)}:i},2769(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696(e,t,n){var r=n(1203),o=n(2769),s=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n===p||n!==l&&(o(t)?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",p=i.POLYFILL="P";e.exports=i},3057(e){e.exports=function(e){return null==e}},262(e,t,n){var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},4871(e){e.exports=!0},7752(e,t,n){var r=n(262),o=n(9932),s=n(8655)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[s])?!!t:"RegExp"===o(e))}},6281(e,t,n){var r=n(1003),o=n(2769),s=n(4317),i=n(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&s(t.prototype,a(e))}},8130(e,t,n){var r=n(8146);e.exports=function(e){return r(e.length)}},5777(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5947(e,t,n){var r=n(7752),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},9989(e,t,n){var r=n(5024),o=n(9665),s=n(1330),i=n(7235),a=n(5341),c=TypeError,l=Object.defineProperty,p=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",h="writable";t.f=r?s?function(e,t,n){if(i(e),t=a(t),i(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=p(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:u in n?n[u]:r[u],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(i(e),t=a(t),i(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543(e,t,n){var r=n(5024),o=n(4713),s=n(7161),i=n(480),a=n(3273),c=n(5341),l=n(701),p=n(9665),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=c(t),p)try{return u(e,t)}catch(e){}if(l(e,t))return i(!o(s.f,e,t),e[t])}},4317(e,t,n){var r=n(6100);e.exports=r({}.isPrototypeOf)},7161(e,t){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9258(e,t,n){var r=n(4713),o=n(2769),s=n(262),i=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!s(a=r(n,e)))return a;if(o(n=e.valueOf)&&!s(a=r(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!s(a=r(n,e)))return a;throw new i("Can't convert object to primitive value")}},8099(e){e.exports={}},5426(e,t,n){var r=n(3057),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},3753(e,t,n){var r=n(4871),o=n(8900),s=n(7525),i="__core-js_shared__",a=e.exports=o[i]||s(i,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8141(e,t,n){var r=n(3753),o=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||o(null))}},4603(e,t,n){var r=n(5547),o=n(1203),s=n(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4574(e,t,n){var r=n(9903),o=Math.max,s=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):s(n,t)}},3273(e,t,n){var r=n(1395),o=n(5426);e.exports=function(e){return r(o(e))}},9903(e,t,n){var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146(e,t,n){var r=n(9903),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},2137(e,t,n){var r=n(5426),o=Object;e.exports=function(e){return o(r(e))}},493(e,t,n){var r=n(4713),o=n(262),s=n(6281),i=n(4674),a=n(9258),c=n(8655),l=TypeError,p=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var n,c=i(e,p);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||s(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341(e,t,n){var r=n(493),o=n(6281);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},4904(e,t,n){var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139(e,t,n){var r=n(8407),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},459(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268(e,t,n){var r=n(6100),o=0,s=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+s,36)}},7460(e,t,n){var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330(e,t,n){var r=n(5024),o=n(1203);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8655(e,t,n){var r=n(8900),o=n(8141),s=n(701),i=n(1268),a=n(4603),c=n(7460),l=r.Symbol,p=o("wks"),u=c?l.for||l:l&&l.withoutSetter||i;e.exports=function(e){return s(p,e)||(p[e]=a&&s(l,e)?l[e]:u("Symbol."+e)),p[e]}},7603(e,t,n){var r=n(9098),o=n(1005).m,s=n(1203),i=n(8137),a=s(function(){return!Array(1).includes()}),c=s(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:a||c},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},3855(e,t,n){var r=n(9098),o=n(6100),s=n(5947),i=n(5426),a=n(1139),c=n(4240),l=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(a(i(this)),a(s(e)),arguments.length>1?arguments[1]:void 0)}})},1726(e,t,n){var r=n(5161);e.exports=r},5965(e,t,n){e.exports=n(1726)}};const o={};function s(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.hasOwn(e,t),s.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};s.r(i),s.d(i,{cookie:()=>Xo,header:()=>Ko,path:()=>zo,query:()=>Yo});var a=s(5965),c=s.n(a);function l(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function p(e){return function t(n){return 0===arguments.length||l(n)?t:e.apply(this,arguments)}}function u(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return l(n)?t:p(function(t){return e(n,t)});default:return l(n)&&l(r)?t:l(n)?p(function(t){return e(t,r)}):l(r)?p(function(t){return e(n,t)}):e(n,r)}}}function d(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const h=p(function(e){return null==e});var f=u(function(e,t){if(0===e.length||h(t))return!1;for(var n=t,r=0;r<e.length;){if(h(n)||!d(e[r],n))return!1;n=n[e[r]],r+=1}return!0});const m=f;var y=u(function(e,t){return m([e],t)});const g=y;function x(e){return e}const v=p(x);function b(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,o){return t.apply(this,arguments)};case 5:return function(e,n,r,o,s){return t.apply(this,arguments)};case 6:return function(e,n,r,o,s,i){return t.apply(this,arguments)};case 7:return function(e,n,r,o,s,i,a){return t.apply(this,arguments)};case 8:return function(e,n,r,o,s,i,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,o,s,i,a,c,l){return t.apply(this,arguments)};case 10:return function(e,n,r,o,s,i,a,c,l,p){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function w(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function k(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return l(n)?t:u(function(t,r){return e(n,t,r)});case 2:return l(n)&&l(r)?t:l(n)?u(function(t,n){return e(t,r,n)}):l(r)?u(function(t,r){return e(n,t,r)}):p(function(t){return e(n,r,t)});default:return l(n)&&l(r)&&l(o)?t:l(n)&&l(r)?u(function(t,n){return e(t,n,o)}):l(n)&&l(o)?u(function(t,n){return e(t,r,n)}):l(r)&&l(o)?u(function(t,r){return e(n,t,r)}):l(n)?p(function(t){return e(t,r,o)}):l(r)?p(function(t){return e(n,t,o)}):l(o)?p(function(t){return e(n,r,t)}):e(n,r,o)}}}const A=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function T(e){return"[object String]"===Object.prototype.toString.call(e)}const S=p(function(e){return!!A(e)||!!e&&("object"==typeof e&&(!T(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var F="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function O(e,t,n){return function(r,o,s){if(S(s))return e(r,o,s);if(null==s)return o;if("function"==typeof s["fantasy-land/reduce"])return t(r,o,s,"fantasy-land/reduce");if(null!=s[F])return n(r,o,s[F]());if("function"==typeof s.next)return n(r,o,s);if("function"==typeof s.reduce)return t(r,o,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function C(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const E=u(function(e,t){return b(e.length,function(){return e.apply(t,arguments)})});function I(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function j(e,t,n,r){return e["@@transducer/result"](n[r](E(e["@@transducer/step"],e),t))}const D=O(C,j,I);var $=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var L=k(function(e,t,n){return D("function"==typeof e?new $(e):e,t,n)});const P=L;function M(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return A(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var B=k(M("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));const N=p(M("tail",B(1,1/0)));function R(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return b(arguments[0].length,P(w,arguments[0],N(arguments)))}const U=p(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const H="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var q=function(e,t){switch(arguments.length){case 0:return q;case 1:return function t(n){return 0===arguments.length?t:H(e,n)};default:return H(e,t)}};const _=q;function G(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function W(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}var z=Object.prototype.toString;const Y=function(){return"[object Arguments]"===z.call(arguments)?function(e){return"[object Arguments]"===z.call(e)}:function(e){return d("callee",e)}}();var V=!{toString:null}.propertyIsEnumerable("toString"),K=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],X=function(){return arguments.propertyIsEnumerable("length")}(),J=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},Q="function"!=typeof Object.keys||X?p(function(e){if(Object(e)!==e)return[];var t,n,r=[],o=X&&Y(e);for(t in e)!d(t,e)||o&&"length"===t||(r[r.length]=t);if(V)for(n=K.length-1;n>=0;)d(t=K[n],e)&&!J(r,t)&&(r[r.length]=t),n-=1;return r}):p(function(e){return Object(e)!==e?[]:Object.keys(e)});const Z=Q;function ee(e,t,n,r){var o=G(e);function s(e,t){return te(e,t,n.slice(),r.slice())}return!W(function(e,t){return!W(s,t,e)},G(t),o)}function te(e,t,n,r){if(H(e,t))return!0;var o=U(e);if(o!==U(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!H(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!H(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var s=n.length-1;s>=0;){if(n[s]===e)return r[s]===t;s-=1}switch(o){case"Map":return e.size===t.size&&ee(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&ee(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=Z(e);if(i.length!==Z(t).length)return!1;var a=n.concat([e]),c=r.concat([t]);for(s=i.length-1;s>=0;){var l=i[s];if(!d(l,t)||!te(t[l],e[l],a,c))return!1;s-=1}return!0}const ne=u(function(e,t){return te(e,t,[],[])});function re(e,t){return function(e,t,n){var r,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(o=e[n])&&1/o===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(ne(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function oe(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}function se(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ie=function(e){return(e<10?"0":"")+e};const ae="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ie(e.getUTCMonth()+1)+"-"+ie(e.getUTCDate())+"T"+ie(e.getUTCHours())+":"+ie(e.getUTCMinutes())+":"+ie(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ce(e,t,n){for(var r=0,o=n.length;r<o;)t=e(t,n[r]),r+=1;return t}function le(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!A(r)){for(var o=0;o<e.length;){if("function"==typeof r[e[o]])return r[e[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function pe(e){return"[object Object]"===Object.prototype.toString.call(e)}const ue=function(){return this.xf["@@transducer/init"]()},de=function(e){return this.xf["@@transducer/result"](e)};var he=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ue,e.prototype["@@transducer/result"]=de,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function fe(e){return function(t){return new he(e,t)}}var me=u(le(["fantasy-land/filter","filter"],fe,function(e,t){return pe(t)?ce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},Z(t)):function(e,t){for(var n=0,r=t.length,o=[];n<r;)e(t[n])&&(o[o.length]=t[n]),n+=1;return o}(e,t)}));const ye=me;const ge=u(function(e,t){return ye((n=e,function(){return!n.apply(this,arguments)}),t);// removed by dead control flow
117463
+ var n; });function xe(e,t){var n=function(n){var r=t.concat([e]);return re(n,r)?"<Circular>":xe(n,r)},r=function(e,t){return oe(function(t){return se(t)+": "+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+oe(n,e).join(", ")+"))";case"[object Array]":return"["+oe(n,e).concat(r(e,ge(function(e){return/^\d+$/.test(e)},Z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):se(ae(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":se(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var o=e.toString();if("[object Object]"!==o)return o}return"{"+r(e,Z(e)).join(", ")+"}"}}const ve=p(function(e){return xe(e,[])}),be=Number.isInteger||function(e){return(e|0)===e};function we(e,t){var n=e<0?t.length+e:e;return T(t)?t.charAt(n):t[n]}const ke=k(function(e,t,n){return e(function(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var o=e[r];n=be(o)?we(o,n):n[o]}return n}(t,n))});function Ae(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Te=u(function(e,t){return e&&t});function Se(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function Fe(e,t,n,r){return n[r](e,t)}const Oe=O(ce,Fe,Se);var Ce=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ue,e.prototype["@@transducer/result"]=de,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ee=function(e){return function(t){return new Ce(e,t)}};function Ie(e,t,n){return function(){for(var r=[],o=0,s=e,i=0,a=!1;i<t.length||o<arguments.length;){var c;i<t.length&&(!l(t[i])||o>=arguments.length)?c=t[i]:(c=arguments[o],o+=1),r[i]=c,l(c)?a=!0:s-=1,i+=1}return!a&&s<=0?n.apply(this,r):b(Math.max(0,s),Ie(e,r,n))}}const je=u(function(e,t){return 1===e?p(t):b(e,Ie(e,[],t))});const De=u(le(["fantasy-land/map","map"],Ee,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return je(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return ce(function(n,r){return n[r]=e(t[r]),n},{},Z(t));default:return oe(e,t)}}));const $e=u(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:Oe(function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,o=t.length,s=[];for(n=0;n<r;)s[s.length]=e[n],n+=1;for(n=0;n<o;)s[s.length]=t[n],n+=1;return s}(e,De(n,t))},[],e)});const Le=u(function(e,t){var n=je(e,t);return je(e,function(){return ce($e,De(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});const Pe=p(function(e){return Le(e.length,e)});const Me=u(function(e,t){return Ae(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Pe(Te)(e,t)});const Be=ne(null);const Ne=Pe(p(function(e){return!e}));const Re=Ne(Be);function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}const He=function(e){return"object"===Ue(e)};const qe=je(1,Me(Re,He));const _e=u(function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var o=n(typeof e,typeof t);if(void 0!==o)return o===typeof e?e:t;var s=ve(e),i=n(s,ve(t));return void 0!==i&&i===s?e:t});const Ge=u(function(e,t){if(null!=t)return be(e)?we(e,t):t[e]});var We=u(function(e,t){return De(Ge(e),t)});const ze=We;const Ye=p(function(e){return je(P(_e,0,ze("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const Ve=je(1,R(U,_("GeneratorFunction")));const Ke=je(1,R(U,_("AsyncFunction")));const Xe=Ye([R(U,_("Function")),Ve,Ke]);var Je=R(U,_("Object")),Qe=ke(Me(Xe,R(ve,ne(ve(Object)))),["constructor"]);const Ze=je(1,function(e){if(!qe(e)||!Je(e))return!1;var t=Object.getPrototypeOf(e);return!!Be(t)||Qe(t)});const et=p(function(e){return je(P(_e,0,ze("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var tt=p(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():A(e)?[]:T(e)?"":pe(e)?{}:Y(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0});const nt=tt;const rt=p(function(e){return null!=e&&ne(e,nt(e))});const ot=p(function(e){return!rt(e)});const st=je(1,R(U,_("String")));const it=u(function(e,t){return e||t});const at=et([st,Ne(je(1,Me(Re,u(function(e,t){return Ae(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Pe(it)(e,t)})(He,Xe)))),ot]),ct=function(){const e=ht,t=dt,n=this,r="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let o,s,i,a,c,l,p,u=0,d=0,h=0,f=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.parse=(g,x,b,w)=>{const k=`${r}parse(): `;u=0,d=0,h=0,f=0,m=0,o=void 0,s=void 0,i=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,p=void 0,a=t.stringToChars(b),o=g.rules,s=g.udts;const A=x.toLowerCase();let T;for(const e in o)if(o.hasOwnProperty(e)&&A===o[e].lower){T=o[e].index;break}if(void 0===T)throw new Error(`${k}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,i;for(c=[],l=[],t=0;t<o.length;t+=1)c[t]=void 0;for(t=0;t<s.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<o.length;t+=1)a.push(o[t].lower);for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(const r in n.callbacks)if(n.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(i=n.callbacks[r]?n.callbacks[r]:void 0,"function"!=typeof i&&void 0!==i)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<o.length?c[t]=i:l[t-o.length]=i}})(),n.trace&&n.trace.init(o,s,a),n.stats&&n.stats.init(o,s),n.ast&&n.ast.init(o,s,a),p=w,i=[{type:e.RNM,index:T}],v(0,0),i=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${k}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:S,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:h,nodeHits:f}};const g=(t,n,o,s)=>{if(n.phraseLength>o){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${o}`,new Error(e)}switch(n.state){case e.ACTIVE:if(!s)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:n.phraseLength=0;break;case e.MATCH:0===n.phraseLength&&(n.state=e.EMPTY);break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},x=(t,c)=>{let d,h,f;const m=i[t],g=s[m.index];y.UdtIndex=g.index,u||(f=n.ast&&n.ast.udtDefined(m.index),f&&(h=o.length+m.index,d=n.ast.getLength(),n.ast.down(h,g.name)));const x=a.length-c;l[m.index](y,a,c,p),((t,n,o)=>{if(n.phraseLength>o){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${o}`,new Error(e)}switch(n.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);n.phraseLength=0;break;case e.MATCH:if(0===n.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);n.state=e.EMPTY}break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}})(g,y,x),u||f&&(y.state===e.NOMATCH?n.ast.setLength(d):n.ast.up(h,g.name,c,y.phraseLength))},v=(t,s)=>{const l=`${r}opExecute(): `,b=i[t];switch(f+=1,d>h&&(h=d),d+=1,y.refresh(),n.trace&&n.trace.down(b,s),b.type){case e.ALT:((t,n)=>{const r=i[t];for(let t=0;t<r.children.length&&(v(r.children[t],n),y.state===e.NOMATCH);t+=1);})(t,s);break;case e.CAT:((t,r)=>{let o,s,a,c;const l=i[t];n.ast&&(s=n.ast.getLength()),o=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),y.state===e.NOMATCH){o=!1;break}a+=y.phraseLength,c+=y.phraseLength}o?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(s))})(t,s);break;case e.REP:((t,r)=>{let o,s,c,l;const p=i[t];if(0===p.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(s=r,c=0,l=0,n.ast&&(o=n.ast.getLength());!(s>=a.length)&&(v(t+1,s),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,s+=y.phraseLength,l!==p.max););y.state===e.EMPTY||l>=p.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(o))})(t,s);break;case e.RNM:((t,r)=>{let s,l,d;const h=i[t],f=o[h.index],m=c[f.index];if(u||(l=n.ast&&n.ast.ruleDefined(h.index),l&&(s=n.ast.getLength(),n.ast.down(h.index,o[h.index].name))),m){const t=a.length-r;m(y,a,r,p),g(f,y,t,!0),y.state===e.ACTIVE&&(d=i,i=f.opcodes,v(0,r),i=d,m(y,a,r,p),g(f,y,t,!1))}else d=i,i=f.opcodes,v(0,r,y),i=d;u||l&&(y.state===e.NOMATCH?n.ast.setLength(s):n.ast.up(h.index,f.name,r,y.phraseLength))})(t,s);break;case e.TRG:((t,n)=>{const r=i[t];y.state=e.NOMATCH,n<a.length&&r.min<=a[n]&&a[n]<=r.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,s);break;case e.TBS:((t,n)=>{const r=i[t],o=r.string.length;if(y.state=e.NOMATCH,n+o<=a.length){for(let e=0;e<o;e+=1)if(a[n+e]!==r.string[e])return;y.state=e.MATCH,y.phraseLength=o}})(t,s);break;case e.TLS:((t,n)=>{let r;const o=i[t];y.state=e.NOMATCH;const s=o.string.length;if(0!==s){if(n+s<=a.length){for(let e=0;e<s;e+=1)if(r=a[n+e],r>=65&&r<=90&&(r+=32),r!==o.string[e])return;y.state=e.MATCH,y.phraseLength=s}}else y.state=e.EMPTY})(t,s);break;case e.UDT:x(t,s);break;case e.AND:((t,n)=>{switch(u+=1,v(t+1,n),u-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,s);break;case e.NOT:((t,n)=>{switch(u+=1,v(t+1,n),u-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,s);break;default:throw new Error(`${l}unrecognized operator`)}u||s+y.phraseLength>m&&(m=s+y.phraseLength),n.stats&&n.stats.collect(b,y),n.trace&&n.trace.up(b,y.state,s,y.phraseLength),d-=1}},lt=function(){const e=ht,t=dt,n=this;let r,o,s,i=0;const a=[],c=[],l=[];function p(e){let t="";for(;e-- >0;)t+=" ";return t}n.callbacks=[],n.init=(e,t,p)=>{let u;c.length=0,l.length=0,i=0,r=e,o=t,s=p;const d=[];for(u=0;u<r.length;u+=1)d.push(r[u].lower);for(u=0;u<o.length;u+=1)d.push(o[u].lower);for(i=r.length+o.length,u=0;u<i;u+=1)a[u]=void 0;for(const e in n.callbacks)if(n.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(u=d.indexOf(t),u<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[u]=n.callbacks[e]}},n.ruleDefined=e=>!!a[e],n.udtDefined=e=>!!a[r.length+e],n.down=(t,n)=>{const r=l.length;return c.push(r),l.push({name:n,thisIndex:r,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),r},n.up=(t,n,r,o)=>{const s=l.length,i=c.pop();return l.push({name:n,thisIndex:s,thatIndex:i,state:e.SEM_POST,callbackIndex:t,phraseIndex:r,phraseLength:o,stack:c.length}),l[i].thatIndex=s,l[i].phraseIndex=r,l[i].phraseLength=o,s},n.translate=t=>{let n,r;for(let o=0;o<l.length;o+=1)r=l[o],n=a[r.callbackIndex],n&&(r.state===e.SEM_PRE?n(e.SEM_PRE,s,r.phraseIndex,r.phraseLength,t):n&&n(e.SEM_POST,s,r.phraseIndex,r.phraseLength,t))},n.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},n.getLength=()=>l.length,n.toXml=()=>{let n="",r=0;return n+='<?xml version="1.0" encoding="utf-8"?>\n',n+=`<root nodes="${l.length/2}" characters="${s.length}">\n`,n+="\x3c!--\n",n+=" Caveat: AST node phrases may not be faithfully represented.\n",n+=" Invalid XML characters are replaced with 0xFFFD.\n",n+=" Special characters &<>\"' are escaped with XML entities.\n",n+="--\x3e\n",n+="\x3c!-- input string --\x3e\n",n+=p(r+2),n+=t.charsToXmlString(s),n+="\n",l.forEach(o=>{o.state===e.SEM_PRE?(r+=1,n+=p(r),n+=`<node name="${o.name}" index="${o.phraseIndex}" length="${o.phraseLength}">\n`,n+=p(r+2),n+=t.charsToXmlString(s,o.phraseIndex,o.phraseLength),n+="\n"):(n+=p(r),n+=`</node>\x3c!-- name="${o.name}" --\x3e\n`,r-=1)}),n+="</root>\n",n}},pt=function(){const e=ht,t=dt,n="parser.js: Trace(): ";let r,o,s,i="",a=0;const c=this,l=e=>{let t="",n=0;if(e>=0)for(;e--;)n+=1,5===n?(t+="|",n=0):t+=".";return t};c.init=(e,t,n)=>{o=e,s=t,r=n};const p=r=>{let i;switch(r.type){case e.ALT:i="ALT";break;case e.CAT:i="CAT";break;case e.REP:i=r.max===1/0?`REP(${r.min},inf)`:`REP(${r.min},${r.max})`;break;case e.RNM:i=`RNM(${o[r.index].name})`;break;case e.TRG:i=`TRG(${r.min},${r.max})`;break;case e.TBS:i=r.string.length>6?`TBS(${t.charsToString(r.string,0,3)}...)`:`TBS(${t.charsToString(r.string,0,6)})`;break;case e.TLS:i=r.string.length>6?`TLS(${t.charsToString(r.string,0,3)}...)`:`TLS(${t.charsToString(r.string,0,6)})`;break;case e.UDT:i=`UDT(${s[r.index].name})`;break;case e.AND:i="AND";break;case e.NOT:i="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return i};c.down=(e,n)=>{const o=l(a),s=Math.min(100,r.length-n);let c=t.charsToString(r,n,s);s<r.length-n&&(c+="..."),c=`${o}|-|[${p(e)}]${c}\n`,i+=c,a+=1},c.up=(o,s,c,u)=>{const d=`${n}trace.up: `;a-=1;const h=l(a);let f,m,y;switch(s){case e.EMPTY:y="|E|",m="''";break;case e.MATCH:y="|M|",f=Math.min(100,u),m=f<u?`'${t.charsToString(r,c,f)}...'`:`'${t.charsToString(r,c,f)}'`;break;case e.NOMATCH:y="|N|",m="";break;default:throw new Error(`${d} unrecognized state`)}m=`${h}${y}[${p(o)}]${m}\n`,i+=m},c.displayTrace=()=>i},ut=function(){const e=ht;let t,n,r;const o=[],s=[],i=[];this.init=(e,r)=>{t=e,n=r,d()},this.collect=(t,n)=>{h(r,n.state,n.phraseLength),h(o[t.type],n.state,n.phraseLength),t.type===e.RNM&&h(s[t.index],n.state,n.phraseLength),t.type===e.UDT&&h(i[t.index],n.state,n.phraseLength)},this.displayStats=()=>{let t="";const n={match:0,empty:0,nomatch:0,total:0},r=(e,t,r,o,s)=>{n.match+=t,n.empty+=r,n.nomatch+=o,n.total+=s;return`${e} | ${a(t)} | ${a(r)} | ${a(o)} | ${a(s)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=r(" ALT",o[e.ALT].match,o[e.ALT].empty,o[e.ALT].nomatch,o[e.ALT].total),t+=r(" CAT",o[e.CAT].match,o[e.CAT].empty,o[e.CAT].nomatch,o[e.CAT].total),t+=r(" REP",o[e.REP].match,o[e.REP].empty,o[e.REP].nomatch,o[e.REP].total),t+=r(" RNM",o[e.RNM].match,o[e.RNM].empty,o[e.RNM].nomatch,o[e.RNM].total),t+=r(" TRG",o[e.TRG].match,o[e.TRG].empty,o[e.TRG].nomatch,o[e.TRG].total),t+=r(" TBS",o[e.TBS].match,o[e.TBS].empty,o[e.TBS].nomatch,o[e.TBS].total),t+=r(" TLS",o[e.TLS].match,o[e.TLS].empty,o[e.TLS].nomatch,o[e.TLS].total),t+=r(" UDT",o[e.UDT].match,o[e.UDT].empty,o[e.UDT].nomatch,o[e.UDT].total),t+=r(" AND",o[e.AND].match,o[e.AND].empty,o[e.AND].nomatch,o[e.AND].total),t+=r(" NOT",o[e.NOT].match,o[e.NOT].empty,o[e.NOT].nomatch,o[e.NOT].total),t+=r("TOTAL",n.match,n.empty,n.nomatch,n.total),t},this.displayHits=e=>{let t="";const n=(e,t,n,o,s)=>{r.match+=e,r.empty+=t,r.nomatch+=n,r.total+=o;return`| ${a(e)} | ${a(t)} | ${a(n)} | ${a(o)} | ${s}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(s.sort(c),i.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(s.sort(p),i.sort(p),t+=" RULES/UDTS BY INDEX\n"):(s.sort(l),i.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<s.length;e+=1){let r=s[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}for(let e=0;e<i.length;e+=1){let r=i[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}return t};const a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),p=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,u=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},d=()=>{o.length=0,r=new u,o[e.ALT]=new u,o[e.CAT]=new u,o[e.REP]=new u,o[e.RNM]=new u,o[e.TRG]=new u,o[e.TBS]=new u,o[e.TLS]=new u,o[e.UDT]=new u,o[e.AND]=new u,o[e.NOT]=new u,s.length=0;for(let e=0;e<t.length;e+=1)s.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(n.length>0){i.length=0;for(let e=0;e<n.length;e+=1)i.push({empty:0,match:0,nomatch:0,total:0,name:n[e].name,lower:n[e].lower,index:n[e].index})}},h=(t,n)=>{switch(t.total+=1,n){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${n}`)}}},dt={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,n)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===n){r=e.slice(t);break}if(n<=0)return"";r=e.slice(t,t+n);break}return String.fromCodePoint(...r)},charsToXmlString:(e,t,n)=>{let r=0,o=e.length;if("number"==typeof t){if(t>=e.length)return"";r=t<0?0:t}if("number"==typeof n){if(n<=0)return"";o=n>e.length-r?e.length:r+n}const s=e.slice(r,o).map(e=>function(e){return!Number.isFinite(e)||e<0||e>1114111||e>=0&&e<=8||e>=11&&e<=12||e>=14&&e<=31||e>=55296&&e<=57343||e>=65534&&e<=65535}(e)?65533:e);let i="";for(let e=0;e<s.length;e+=32768)i+=String.fromCodePoint.apply(null,s.slice(e,e+32768));return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")}},ht={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case ht.ALT:return"ALT";case ht.CAT:return"CAT";case ht.REP:return"REP";case ht.RNM:return"RNM";case ht.TRG:return"TRG";case ht.TBS:return"TBS";case ht.TLS:return"TLS";case ht.UDT:return"UDT";case ht.AND:return"AND";case ht.NOT:return"NOT";case ht.ACTIVE:return"ACTIVE";case ht.EMPTY:return"EMPTY";case ht.MATCH:return"MATCH";case ht.NOMATCH:return"NOMATCH";case ht.SEM_PRE:return"SEM_PRE";case ht.SEM_POST:return"SEM_POST";case ht.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const ft=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-url-template",dt.charsToString(t,n,r)])}return ht.SEM_OK},mt=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-variable",dt.charsToString(t,n,r)])}return ht.SEM_OK},yt=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-variable-name",dt.charsToString(t,n,r)])}return ht.SEM_OK},gt=(e,t,n,r,o)=>{if(e===ht.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["literals",dt.charsToString(t,n,r)])}return ht.SEM_OK},xt=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\n",e+='server-variable = "{" server-variable-name "}"\n',e+="server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n",e+="; https://www.rfc-editor.org/errata/eid6937\n",e+="literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n',e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n; https://www.rfc-editor.org/errata/eid6937\nliterals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},vt=e=>{const t=new ct;t.ast=new lt,t.ast.callbacks["server-url-template"]=ft,t.ast.callbacks["server-variable"]=mt,t.ast.callbacks["server-variable-name"]=yt,t.ast.callbacks.literals=gt;return{result:t.parse(xt,"server-url-template",e),ast:t.ast}},bt=(e,{strict:t=!1}={})=>{try{const n=vt(e);if(!n.result.success)return!1;const r=[];n.ast.translate(r);const o=r.some(([e])=>"server-variable"===e);if(!t&&!o)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||o}catch{return!1}},wt=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),kt=["literals","server-variable-name"],At=(e,t,n={})=>{const r={...{encoder:wt},...n},o=vt(e);if(!o.result.success)return e;const s=[];o.ast.translate(s);const i=s.filter(([e])=>kt.includes(e)).map(([e,n])=>"server-variable-name"===e?Object.hasOwn(t,n)?r.encoder(t[n],n):`{${n}}`:n);return i.join("")},Tt=Object.freeze({url:"/"});function St(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function Ft(e,t){return Array.isArray(e)&&e.some(e=>St(e,t))}class Ot extends File{constructor(e,t="",n={}){super([e],t,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const Ct=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Et=e=>/^[a-z0-9\-._~]+$/i.test(e);function It(e,t="reserved"){return[...e].map(e=>{if(Et(e))return e;if(Ct(e)&&"unsafe"===t)return e;const n=new TextEncoder;return Array.from(n.encode(e)).map(e=>`0${e.toString(16).toUpperCase()}`.slice(-2)).map(e=>`%${e}`).join("")}).join("")}function jt(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:n,explode:r,escape:o}){if("simple"===n)return t.map(e=>Dt(e,o)).join(",");if("label"===n)return`.${t.map(e=>Dt(e,o)).join(".")}`;if("matrix"===n)return t.map(e=>Dt(e,o)).reduce((t,n)=>!t||r?`${t||""};${e}=${n}`:`${t},${n}`,"");if("form"===n){const n=r?`&${e}=`:",";return t.map(e=>Dt(e,o)).join(n)}if("spaceDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>Dt(e,o)).join(` ${n}`)}if("pipeDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>Dt(e,o)).join(`|${n}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:n,explode:r,escape:o}){const s=Object.keys(t);if("simple"===n)return s.reduce((e,n)=>{const s=Dt(t[n],o);return`${e?`${e},`:""}${n}${r?"=":","}${s}`},"");if("label"===n)return s.reduce((e,n)=>{const s=Dt(t[n],o);return`${e?`${e}.`:"."}${n}${r?"=":"."}${s}`},"");if("matrix"===n&&r)return s.reduce((e,n)=>`${e?`${e};`:";"}${n}=${Dt(t[n],o)}`,"");if("matrix"===n)return s.reduce((n,r)=>{const s=Dt(t[r],o);return`${n?`${n},`:`;${e}=`}${r},${s}`},"");if("form"===n)return s.reduce((e,n)=>{const s=Dt(t[n],o);return`${e?`${e}${r?"&":","}`:""}${n}${r?"=":","}${s}`},"");return}(e):function({key:e,value:t,style:n,escape:r}){if("simple"===n)return Dt(t,r);if("label"===n)return`.${Dt(t,r)}`;if("matrix"===n)return`;${e}=${Dt(t,r)}`;if("form"===n)return Dt(t,r);if("deepObject"===n)return Dt(t,r);return}(e)}function Dt(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&"string"==typeof e&&e.length>0?It(e,t):e??""}const $t={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Lt={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Pt(e,t,n=!1){const{collectionFormat:r,allowEmptyValue:o,serializationOption:s,encoding:i}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=n?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&o)return[[l,""]];if(St(a)||Ft(a))return[[l,a]];if(s)return Mt(e,a,n,s);if(i){if([typeof i.style,typeof i.explode,typeof i.allowReserved].some(e=>"undefined"!==e)){const{style:t,explode:r,allowReserved:o}=i;return Mt(e,a,n,{style:t,explode:r,allowReserved:o})}if("string"==typeof i.contentType){if(i.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new Ot(e,"blob",{type:i.contentType})]]}const e=c(String(a));return[[l,new Ot(e,"blob",{type:i.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every(e=>"object"!=typeof e)?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===r?[[l,a.map(c)]]:[[l,a.map(c).join(Lt[r||"csv"])]]:[[l,""]]}function Mt(e,t,n,r){const o=r.style||"form",s=void 0===r.explode?"form"===o:r.explode,i=!n&&(r&&r.allowReserved?"unsafe":"reserved"),a=e=>Dt(e,i),c=n?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?s?[[c(e),t.map(a)]]:[[c(e),t.map(a).join($t[o])]]:"deepObject"===o?Object.keys(t).map(n=>[c(`${e}[${n}]`),a(t[n])]):s?Object.keys(t).map(e=>[c(e),a(t[e])]):[[c(e),Object.keys(t).map(e=>[`${c(e)},${a(t[e])}`]).join(",")]]}function Bt(e){return((e,{encode:t=!0}={})=>{const n=(e,t,r)=>(Array.isArray(r)?r.reduce((r,o)=>n(e,t,o),e):r instanceof Date?e.append(t,r.toISOString()):"object"==typeof r?Object.entries(r).reduce((r,[o,s])=>n(e,`${t}[${o}]`,s),e):e.append(t,r),e),r=Object.entries(e).reduce((e,[t,r])=>n(e,t,r),new URLSearchParams),o=String(r);return t?o:decodeURIComponent(o)})(Object.keys(e).reduce((t,n)=>{for(const[r,o]of Pt(n,e[n]))t[r]=o instanceof Ot?o.valueOf():o;return t},{}),{encode:!1})}function Nt(e={}){const{url:t="",query:n,form:r}=e;if(r){const t=Object.keys(r).some(e=>{const{value:t}=r[e];return St(t)||Ft(t)}),n=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(n)){const t=(o=e.form,Object.entries(o).reduce((e,[t,n])=>{for(const[r,o]of Pt(t,n,!0))if(Array.isArray(o))for(const t of o)if(ArrayBuffer.isView(t)){const n=new Blob([t]);e.append(r,n)}else e.append(r,t);else if(ArrayBuffer.isView(o)){const t=new Blob([o]);e.append(r,t)}else e.append(r,o);return e},new FormData));e.formdata=t,e.body=t}else e.body=Bt(r);delete e.form}var o;if(n){const[r,o]=t.split("?");let s="";if(o){const e=new URLSearchParams(o);Object.keys(n).forEach(t=>e.delete(t)),s=String(e)}const i=((...e)=>{const t=e.filter(e=>e).join("&");return t?`?${t}`:""})(s,Bt(n));e.url=r+i,delete e.query}return e}function Rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut,Ht,qt,_t,Gt,Wt,zt,Yt,Vt,Kt,Xt,Jt,Qt,Zt,en,tn,nn,rn,on,sn,an,cn,ln,pn,un,dn,hn,fn,mn,yn,gn,xn,vn,bn,wn,kn,An,Tn,Sn,Fn,On,Cn,En,In,jn={},Dn={},$n={};function Ln(){if(Ut)return $n;function e(e){return null==e}return Ut=1,$n.isNothing=e,$n.isObject=function(e){return"object"==typeof e&&null!==e},$n.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},$n.repeat=function(e,t){let n="";for(let r=0;r<t;r+=1)n+=e;return n},$n.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},$n.extend=function(e,t){if(t){const n=Object.keys(t);for(let r=0,o=n.length;r<o;r+=1){const o=n[r];e[o]=t[o]}}return e},$n}function Pn(){if(qt)return Ht;function e(e,t){let n="";const r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function t(t,n){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return qt=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},Ht=t}function Mn(){if(zt)return Wt;zt=1;const e=Pn(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return Wt=function(r,o){if(o=o||{},Object.keys(o).forEach(function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}),this.options=o,this.tag=r,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(e){return e},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=function(e){const t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(o.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}function Bn(){if(Vt)return Yt;Vt=1;const e=Pn(),t=Mn();function n(e,t){const n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(e){return this.extend(e)}return r.prototype.extend=function(o){let s=[],i=[];if(o instanceof t)i.push(o);else if(Array.isArray(o))i=i.concat(o);else{if(!o||!Array.isArray(o.implicit)&&!Array.isArray(o.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.implicit&&(s=s.concat(o.implicit)),o.explicit&&(i=i.concat(o.explicit))}s.forEach(function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const a=Object.create(r.prototype);return a.implicit=(this.implicit||[]).concat(s),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=n(a,"implicit"),a.compiledExplicit=n(a,"explicit"),a.compiledTypeMap=function(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}(a.compiledImplicit,a.compiledExplicit),a},Yt=r}function Nn(){if(Xt)return Kt;Xt=1;const e=Mn();return Kt=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Rn(){if(Qt)return Jt;Qt=1;const e=Mn();return Jt=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function Un(){if(en)return Zt;en=1;const e=Mn();return Zt=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function Hn(){if(nn)return tn;nn=1;const e=Bn();return tn=new e({explicit:[Nn(),Rn(),Un()]})}function qn(){if(on)return rn;on=1;const e=Mn();return rn=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;const t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),rn}function _n(){if(an)return sn;an=1;const e=Mn();return sn=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),sn}function Gn(){if(ln)return cn;ln=1;const e=Ln(),t=Mn();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function o(e){return e>=48&&e<=57}function s(e){let t=e,n=1,r=t[0];if("-"!==r&&"+"!==r||("-"===r&&(n=-1),t=t.slice(1),r=t[0]),"0"===t)return 0;if("0"===r){if("b"===t[1])return n*parseInt(t.slice(2),2);if("x"===t[1])return n*parseInt(t.slice(2),16);if("o"===t[1])return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}return cn=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;let i=0,a=!1;if(!t)return!1;let c=e[i];if("-"!==c&&"+"!==c||(c=e[++i]),"0"===c){if(i+1===t)return!0;if(c=e[++i],"b"===c){for(i++;i<t;i++){if(c=e[i],"0"!==c&&"1"!==c)return!1;a=!0}return a&&isFinite(s(e))}if("x"===c){for(i++;i<t;i++){if(!n(e.charCodeAt(i)))return!1;a=!0}return a&&isFinite(s(e))}if("o"===c){for(i++;i<t;i++){if(!r(e.charCodeAt(i)))return!1;a=!0}return a&&isFinite(s(e))}}for(;i<t;i++){if(!o(e.charCodeAt(i)))return!1;a=!0}return!!a&&isFinite(s(e))},construct:function(e){return s(e)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),cn}function Wn(){if(un)return pn;un=1;const e=Ln(),t=Mn(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),r=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");const o=/^[-+]?[0-9]+e/;return pn=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&(!!n.test(e)&&(!!isFinite(parseFloat(e,10))||r.test(e)))},construct:function(e){let t=e.toLowerCase();const n="-"===t[0]?-1:1;return"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,n){if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";const r=t.toString(10);return o.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})}function zn(){return hn?dn:(hn=1,dn=Hn().extend({implicit:[qn(),_n(),Gn(),Wn()]}))}function Yn(){return mn?fn:(mn=1,fn=zn())}function Vn(){if(gn)return yn;gn=1;const e=Mn(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return yn=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==n.exec(e))},construct:function(e){let r=0,o=null,s=t.exec(e);if(null===s&&(s=n.exec(e)),null===s)throw new Error("Date resolve error");const i=+s[1],a=+s[2]-1,c=+s[3];if(!s[4])return new Date(Date.UTC(i,a,c));const l=+s[4],p=+s[5],u=+s[6];if(s[7]){for(r=s[7].slice(0,3);r.length<3;)r+="0";r=+r}if(s[9]){o=6e4*(60*+s[10]+ +(s[11]||0)),"-"===s[9]&&(o=-o)}const d=new Date(Date.UTC(i,a,c,l,p,u,r));return o&&d.setTime(d.getTime()-o),d},instanceOf:Date,represent:function(e){return e.toISOString()}}),yn}function Kn(){if(vn)return xn;vn=1;const e=Mn();return xn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function Xn(){if(wn)return bn;wn=1;const e=Mn(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return bn=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let n=0;const r=e.length,o=t;for(let t=0;t<r;t++){const r=o.indexOf(e.charAt(t));if(!(r>64)){if(r<0)return!1;n+=6}}return n%8==0},construct:function(e){const n=e.replace(/[\r\n=]/g,""),r=n.length,o=t;let s=0;const i=[];for(let e=0;e<r;e++)e%4==0&&e&&(i.push(s>>16&255),i.push(s>>8&255),i.push(255&s)),s=s<<6|o.indexOf(n.charAt(e));const a=r%4*6;return 0===a?(i.push(s>>16&255),i.push(s>>8&255),i.push(255&s)):18===a?(i.push(s>>10&255),i.push(s>>2&255)):12===a&&i.push(s>>4&255),new Uint8Array(i)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let n="",r=0;const o=e.length,s=t;for(let t=0;t<o;t++)t%3==0&&t&&(n+=s[r>>18&63],n+=s[r>>12&63],n+=s[r>>6&63],n+=s[63&r]),r=(r<<8)+e[t];const i=o%3;return 0===i?(n+=s[r>>18&63],n+=s[r>>12&63],n+=s[r>>6&63],n+=s[63&r]):2===i?(n+=s[r>>10&63],n+=s[r>>4&63],n+=s[r<<2&63],n+=s[64]):1===i&&(n+=s[r>>2&63],n+=s[r<<4&63],n+=s[64],n+=s[64]),n}}),bn}function Jn(){if(An)return kn;An=1;const e=Mn(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return kn=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const r={},o=e;for(let e=0,s=o.length;e<s;e+=1){const s=o[e];let i,a=!1;if("[object Object]"!==n.call(s))return!1;for(i in s)if(t.call(s,i)){if(a)return!1;a=!0}if(!a)return!1;if(t.call(r,i))return!1;Object.defineProperty(r,i,{value:!0})}return!0},construct:function(e){return null!==e?e:[]}})}function Qn(){if(Sn)return Tn;Sn=1;const e=Mn(),t=Object.prototype.toString;return Tn=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;const n=e,r=new Array(n.length);for(let e=0,o=n.length;e<o;e+=1){const o=n[e];if("[object Object]"!==t.call(o))return!1;const s=Object.keys(o);if(1!==s.length)return!1;r[e]=[s[0],o[s[0]]]}return!0},construct:function(e){if(null===e)return[];const t=e,n=new Array(t.length);for(let e=0,r=t.length;e<r;e+=1){const r=t[e],o=Object.keys(r);n[e]=[o[0],r[o[0]]]}return n}}),Tn}function Zn(){if(On)return Fn;On=1;const e=Mn(),t=Object.prototype.hasOwnProperty;return Fn=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;const n=e;for(const e in n)if(t.call(n,e)&&null!==n[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function er(){return En?Cn:(En=1,Cn=Yn().extend({implicit:[Vn(),Kn()],explicit:[Xn(),Jn(),Qn(),Zn()]}))}function tr(){if(In)return Dn;In=1;const e=Ln(),t=Pn(),n=function(){if(Gt)return _t;Gt=1;const e=Ln();function t(e,t,n,r,o){let s="",i="";const a=Math.floor(o/2)-1;return r-t>a&&(s=" ... ",t=r-a+s.length),n-r>a&&(i=" ...",n=r+a-i.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+s.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}return _t=function(r,o){if(o=Object.create(o||null),!r.buffer)return null;o.maxLength||(o.maxLength=79),"number"!=typeof o.indent&&(o.indent=1),"number"!=typeof o.linesBefore&&(o.linesBefore=3),"number"!=typeof o.linesAfter&&(o.linesAfter=2);const s=/\r?\n|\r|\0/g,i=[0],a=[];let c,l=-1;for(;c=s.exec(r.buffer);)a.push(c.index),i.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=i.length-2);l<0&&(l=i.length-1);let p="";const u=Math.min(r.line+o.linesAfter,a.length).toString().length,d=o.maxLength-(o.indent+u+3);for(let s=1;s<=o.linesBefore&&!(l-s<0);s++){const c=t(r.buffer,i[l-s],a[l-s],r.position-(i[l]-i[l-s]),d);p=e.repeat(" ",o.indent)+n((r.line-s+1).toString(),u)+" | "+c.str+"\n"+p}const h=t(r.buffer,i[l],a[l],r.position,d);p+=e.repeat(" ",o.indent)+n((r.line+1).toString(),u)+" | "+h.str+"\n",p+=e.repeat("-",o.indent+u+3+h.pos)+"^\n";for(let s=1;s<=o.linesAfter&&!(l+s>=a.length);s++){const c=t(r.buffer,i[l+s],a[l+s],r.position-(i[l]-i[l+s]),d);p+=e.repeat(" ",o.indent)+n((r.line+s+1).toString(),u)+" | "+c.str+"\n"}return p.replace(/\n$/,"")},_t}(),r=er(),o=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,i=/[\x85\u2028\u2029]/,a=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function p(e){return Object.prototype.toString.call(e)}function u(e){return 10===e||13===e}function d(e){return 9===e||32===e}function h(e){return 9===e||32===e||10===e||13===e}function f(e){return 44===e||91===e||93===e||123===e||125===e}function m(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function g(e){return e>=48&&e<=57?e-48:-1}function x(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function v(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function b(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}const w=new Array(256),k=new Array(256);for(let e=0;e<256;e++)w[e]=x(e)?1:0,k[e]=x(e);function A(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function T(e,r){const o={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return o.snippet=n(o),new t(r,o)}function S(e,t){throw T(e,t)}function F(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}function O(e,t,n){const r=e.anchorMapTransactions;if(0!==r.length){const n=r[r.length-1];o.call(n,t)||(n[t]={existed:o.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function C(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function E(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}const I={YAML:function(e,t,n){null!==e.version&&S(e,"duplication of %YAML directive"),1!==n.length&&S(e,"YAML directive accepts exactly one argument");const r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);null===r&&S(e,"ill-formed argument of the YAML directive");const o=parseInt(r[1],10),s=parseInt(r[2],10);1!==o&&S(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,1!==s&&2!==s&&F(e,"unsupported YAML version of the document")},TAG:function(e,t,n){let r;2!==n.length&&S(e,"TAG directive accepts exactly two arguments");const s=n[0];r=n[1],c.test(s)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,s)&&S(e,'there is a previously declared suffix for "'+s+'" tag handle'),l.test(r)||S(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){S(e,"tag prefix is malformed: "+r)}e.tagMap[s]=r}};function j(e,t,n,r){if(t<n){const o=e.input.slice(t,n);if(r)for(let t=0,n=o.length;t<n;t+=1){const n=o.charCodeAt(t);9===n||n>=32&&n<=1114111||S(e,"expected valid JSON character")}else s.test(o)&&S(e,"the stream contains non-printable characters");e.result+=o}}function D(e){e.totalMergeKeys++,-1!==e.maxTotalMergeKeys&&e.totalMergeKeys>e.maxTotalMergeKeys&&S(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function $(t,n,r,s){e.isObject(r)||S(t,"cannot merge mappings; the provided source object is unacceptable"),D(t);const i=Object.keys(r);for(let e=0,a=i.length;e<a;e+=1){const a=i[e];D(t),o.call(n,a)||(b(n,a,r[a]),s[a]=!0)}}function L(e,t,n,r,s,i,a,c,l){if(Array.isArray(s))for(let t=0,n=(s=Array.prototype.slice.call(s)).length;t<n;t+=1)Array.isArray(s[t])&&S(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===p(s[t])&&(s[t]="[object Object]");if("object"==typeof s&&"[object Object]"===p(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i)){i.length>100&&S(e,"abnormal merge sequence size");for(let r=0,o=i.length;r<o;r+=1)$(e,t,i[r],n)}else $(e,t,i,n);else e.json||o.call(n,s)||!o.call(t,s)||(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,S(e,"duplicated mapping key")),b(t,s,i),delete n[s];return t}function P(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):S(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function M(e,t,n){let r=0,o=e.input.charCodeAt(e.position);for(;0!==o;){for(;d(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!u(o))break;for(P(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&F(e,"deficient indentation"),r}function B(e){let t=e.position,n=e.input.charCodeAt(t);return!(45!==n&&46!==n||n!==e.input.charCodeAt(t+1)||n!==e.input.charCodeAt(t+2)||(t+=3,n=e.input.charCodeAt(t),0!==n&&!h(n)))}function N(t,n){1===n?t.result+=" ":n>1&&(t.result+=e.repeat("\n",n-1))}function R(e,t){const n=e.tag,r=e.anchor,o=[];let s=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&O(e,e.anchor,o);let i=e.input.charCodeAt(e.position);for(;0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation")),45===i);){if(!h(e.input.charCodeAt(e.position+1)))break;if(s=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t){o.push(null),i=e.input.charCodeAt(e.position);continue}const n=e.line;if(G(e,t,3,!1,!0),o.push(e.result),M(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)S(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!s&&(e.tag=n,e.anchor=r,e.kind="sequence",e.result=o,!0)}function U(e,t,n){let r,o,s,i;const a=e.tag,c=e.anchor,l={},p=Object.create(null);let u=null,f=null,m=null,y=!1,g=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&O(e,e.anchor,l);let x=e.input.charCodeAt(e.position);for(;0!==x;){y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,S(e,"tab characters must not be used in indentation"));const v=e.input.charCodeAt(e.position+1),b=e.line;if(63!==x&&58!==x||!h(v)){if(o=e.line,s=e.lineStart,i=e.position,!G(e,n,2,!1,!0))break;if(e.line===b){for(x=e.input.charCodeAt(e.position);d(x);)x=e.input.charCodeAt(++e.position);if(58===x)x=e.input.charCodeAt(++e.position),h(x)||S(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(L(e,l,p,u,f,null,o,s,i),u=f=m=null),g=!0,y=!1,r=!1,u=e.tag,f=e.result;else{if(!g)return e.tag=a,e.anchor=c,!0;S(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=a,e.anchor=c,!0;S(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===x?(y&&(L(e,l,p,u,f,null,o,s,i),u=f=m=null),g=!0,y=!0,r=!0):y?(y=!1,r=!0):S(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=v;if((e.line===b||e.lineIndent>t)&&(y&&(o=e.line,s=e.lineStart,i=e.position),G(e,t,4,!0,r)&&(y?f=e.result:m=e.result),y||(L(e,l,p,u,f,m,o,s,i),u=f=m=null),M(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&0!==x)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&L(e,l,p,u,f,null,o,s,i),g&&(e.tag=a,e.anchor=c,e.kind="mapping",e.result=l),g}function H(e){let t,n,r=!1,s=!1,i=e.input.charCodeAt(e.position);if(33!==i)return!1;null!==e.tag&&S(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),60===i?(r=!0,i=e.input.charCodeAt(++e.position)):33===i?(s=!0,t="!!",i=e.input.charCodeAt(++e.position)):t="!";let p=e.position;if(r){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(p,e.position),i=e.input.charCodeAt(++e.position)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!h(i);)33===i&&(s?S(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(p-1,e.position+1),c.test(t)||S(e,"named tag handle cannot contain such characters"),s=!0,p=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(p,e.position),a.test(n)&&S(e,"tag suffix cannot contain flow indicator characters")}n&&!l.test(n)&&S(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){S(e,"tag name is malformed: "+n)}return r?e.tag=n:o.call(e.tagMap,t)?e.tag=e.tagMap[t]+n:"!"===t?e.tag="!"+n:"!!"===t?e.tag="tag:yaml.org,2002:"+n:S(e,'undeclared tag handle "'+t+'"'),!0}function q(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&S(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!h(t)&&!f(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&S(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function _(e,t,n,r){const s=C(e);return function(e){e.anchorMapTransactions.push(Object.create(null))}(e),E(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,U(e,n,r)&&"mapping"===e.kind?(function(e){const t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(0===n.length)return;const r=n[n.length-1],s=Object.keys(t);for(let e=0,n=s.length;e<n;e+=1){const n=s[e];o.call(r,n)||(r[n]=t[n])}}(e),!0):(function(e){const t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;r-=1){const o=t[n[r]];o.existed?e.anchorMap[n[r]]=o.value:delete e.anchorMap[n[r]]}}(e),E(e,s),!1)}function G(t,n,r,s,i){let a,c,l,p,x,b=1,A=!1,T=!1,F=null;t.depth>=t.maxDepth&&S(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;const E=a=c=4===r||3===r;if(s&&M(t,!0,-1)&&(A=!0,t.lineIndent>n?b=1:t.lineIndent===n?b=0:t.lineIndent<n&&(b=-1)),1===b)for(;;){const e=t.input.charCodeAt(t.position),r=C(t);if(A&&(33===e&&null!==t.tag||38===e&&null!==t.anchor))break;if(!H(t)&&!q(t))break;null===F&&(F=r),M(t,!0,-1)?(A=!0,c=E,t.lineIndent>n?b=1:t.lineIndent===n?b=0:t.lineIndent<n&&(b=-1)):c=!1}if(c&&(c=A||i),1===b||4===r)if(p=1===r||2===r?n:n+1,x=t.position-t.lineStart,1===b)if(c&&(R(t,x)||U(t,x,p))||function(e,t){let n,r,o,s=!0;const i=e.tag;let a;const c=e.anchor;let l,p,u,d;const f=Object.create(null);let m,y,g,x=e.input.charCodeAt(e.position);if(91===x)l=93,d=!1,a=[];else{if(123!==x)return!1;l=125,d=!0,a={}}for(null!==e.anchor&&O(e,e.anchor,a),x=e.input.charCodeAt(++e.position);0!==x;){if(M(e,!0,t),x=e.input.charCodeAt(e.position),x===l)return e.position++,e.tag=i,e.anchor=c,e.kind=d?"mapping":"sequence",e.result=a,!0;s?44===x&&S(e,"expected the node content, but found ','"):S(e,"missed comma between flow collection entries"),y=m=g=null,p=u=!1,63===x&&h(e.input.charCodeAt(e.position+1))&&(p=u=!0,e.position++,M(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,G(e,t,1,!1,!0),y=e.tag,m=e.result,M(e,!0,t),x=e.input.charCodeAt(e.position),!u&&e.line!==n||58!==x||(p=!0,x=e.input.charCodeAt(++e.position),M(e,!0,t),G(e,t,1,!1,!0),g=e.result),d?L(e,a,f,y,m,g,n,r,o):p?a.push(L(e,null,f,y,m,g,n,r,o)):a.push(m),M(e,!0,t),x=e.input.charCodeAt(e.position),44===x?(s=!0,x=e.input.charCodeAt(++e.position)):s=!1}S(e,"unexpected end of the stream within a flow collection")}(t,p))T=!0;else{const n=t.input.charCodeAt(t.position);null!==F&&E&&!c&&124!==n&&62!==n&&_(t,F,F.position-F.lineStart,p)||a&&function(t,n){let r,o,s=1,i=!1,a=!1,c=n,l=0,p=!1,h=t.input.charCodeAt(t.position);if(124===h)r=!1;else{if(62!==h)return!1;r=!0}for(t.kind="scalar",t.result="";0!==h;)if(h=t.input.charCodeAt(++t.position),43===h||45===h)1===s?s=43===h?3:2:S(t,"repeat of a chomping mode identifier");else{if(!((o=g(h))>=0))break;0===o?S(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?S(t,"repeat of an indentation width identifier"):(c=n+o-1,a=!0)}if(d(h)){do{h=t.input.charCodeAt(++t.position)}while(d(h));if(35===h)do{h=t.input.charCodeAt(++t.position)}while(!u(h)&&0!==h)}for(;0!==h;){for(P(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!a||t.lineIndent<c)&&32===h;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>c&&(c=t.lineIndent),u(h)){l++;continue}if(a||0!==c||S(t,"missing indentation for block scalar"),t.lineIndent<c){3===s?t.result+=e.repeat("\n",i?1+l:l):1===s&&i&&(t.result+="\n");break}r?d(h)?(p=!0,t.result+=e.repeat("\n",i?1+l:l)):p?(p=!1,t.result+=e.repeat("\n",l+1)):0===l?i&&(t.result+=" "):t.result+=e.repeat("\n",l):t.result+=e.repeat("\n",i?1+l:l),i=!0,a=!0,l=0;const n=t.position;for(;!u(h)&&0!==h;)h=t.input.charCodeAt(++t.position);j(t,n,t.position,!1)}return!0}(t,p)||function(e,t){let n,r,o=e.input.charCodeAt(e.position);if(39!==o)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));)if(39===o){if(j(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),39!==o)return!0;n=e.position,e.position++,r=e.position}else u(o)?(j(e,n,r,!0),N(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&B(e)?S(e,"unexpected end of the document within a single quoted scalar"):(e.position++,d(o)||(r=e.position));S(e,"unexpected end of the stream within a single quoted scalar")}(t,p)||function(e,t){let n,r,o,s=e.input.charCodeAt(e.position);if(34!==s)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return j(e,n,e.position,!0),e.position++,!0;if(92===s){if(j(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),u(s))M(e,!1,t);else if(s<256&&w[s])e.result+=k[s],e.position++;else if((o=y(s))>0){let t=o,n=0;for(;t>0;t--)s=e.input.charCodeAt(++e.position),(o=m(s))>=0?n=(n<<4)+o:S(e,"expected hexadecimal character");e.result+=v(n),e.position++}else S(e,"unknown escape sequence");n=r=e.position}else u(s)?(j(e,n,r,!0),N(e,M(e,!1,t)),n=r=e.position):e.position===e.lineStart&&B(e)?S(e,"unexpected end of the document within a double quoted scalar"):(e.position++,d(s)||(r=e.position))}S(e,"unexpected end of the stream within a double quoted scalar")}(t,p)?T=!0:!function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);const n=e.position;for(;0!==t&&!h(t)&&!f(t);)t=e.input.charCodeAt(++e.position);e.position===n&&S(e,"name of an alias node must contain at least one character");const r=e.input.slice(n,e.position);return o.call(e.anchorMap,r)||S(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],M(e,!0,-1),!0}(t)?function(e,t,n){let r,o,s,i,a,c;const l=e.kind,p=e.result;let m=e.input.charCodeAt(e.position);if(h(m)||f(m)||35===m||38===m||42===m||33===m||124===m||62===m||39===m||34===m||37===m||64===m||96===m)return!1;if(63===m||45===m){const t=e.input.charCodeAt(e.position+1);if(h(t)||n&&f(t))return!1}for(e.kind="scalar",e.result="",r=o=e.position,s=!1;0!==m;){if(58===m){const t=e.input.charCodeAt(e.position+1);if(h(t)||n&&f(t))break}else if(35===m){if(h(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&B(e)||n&&f(m))break;if(u(m)){if(i=e.line,a=e.lineStart,c=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){s=!0,m=e.input.charCodeAt(e.position);continue}e.position=o,e.line=i,e.lineStart=a,e.lineIndent=c;break}}s&&(j(e,r,o,!1),N(e,e.line-i),r=o=e.position,s=!1),d(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return j(e,r,o,!1),!!e.result||(e.kind=l,e.result=p,!1)}(t,p,1===r)&&(T=!0,null===t.tag&&(t.tag="?")):(T=!0,null===t.tag&&null===t.anchor||S(t,"alias node should not have any properties")),null!==t.anchor&&O(t,t.anchor,t.result)}else 0===b&&(T=c&&R(t,x));if(null===t.tag)null!==t.anchor&&O(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&S(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,n=t.implicitTypes.length;e<n;e+=1)if(l=t.implicitTypes[e],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&O(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(o.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;const e=t.typeMap.multi[t.kind||"fallback"];for(let n=0,r=e.length;n<r;n+=1)if(t.tag.slice(0,e[n].tag.length)===e[n].tag){l=e[n];break}}l||S(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&S(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&O(t,t.anchor,t.result)):S(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||T}function W(e){const t=e.position;let n,r=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(M(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){r=!0,n=e.input.charCodeAt(++e.position);let t=e.position;for(;0!==n&&!h(n);)n=e.input.charCodeAt(++e.position);const s=e.input.slice(t,e.position),i=[];for(s.length<1&&S(e,"directive name must not be less than one character in length");0!==n;){for(;d(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!u(n));break}if(u(n))break;for(t=e.position;0!==n&&!h(n);)n=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==n&&P(e),o.call(I,s)?I[s](e,s,i):F(e,'unknown document directive "'+s+'"')}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):r&&S(e,"directives end mark is expected"),G(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&i.test(e.input.slice(t,e.position))&&F(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&B(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position<e.length-1&&S(e,"end of the stream or a document separator is expected")}function z(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));const n=new A(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,S(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)W(n);return n.documents}return Dn.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);const r=z(e,n);if("function"!=typeof t)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])},Dn.load=function(e,n){const r=z(e,n);if(0!==r.length){if(1===r.length)return r[0];throw new t("expected a single document in the stream, but found more")}},Dn}var nr,rr,or={};function sr(){if(nr)return or;nr=1;const e=Ln(),t=Pn(),n=er(),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=65279,i={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(n){let r,o;const s=n.toString(16).toUpperCase();if(n<=255)r="x",o=2;else if(n<=65535)r="u",o=4;else{if(!(n<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+e.repeat("0",o-s.length)+s}function p(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){if(null===t)return{};const n={},r=Object.keys(t);for(let s=0,i=r.length;s<i;s+=1){let i=r[s],a=String(t[i]);"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2));const c=e.compiledTypeMap.fallback[i];c&&o.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[i]=a}return n}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(t,n){const r=e.repeat(" ",n);let o=0,s="";const i=t.length;for(;o<i;){let e;const n=t.indexOf("\n",o);-1===n?(e=t.slice(o),o=i):(e=t.slice(o,n+1),o=n+1),e.length&&"\n"!==e&&(s+=r),s+=e}return s}function d(t,n){return"\n"+e.repeat(" ",t.indent*n)}function h(e){return 32===e||9===e}function f(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==s||e>=65536&&e<=1114111}function m(e){return f(e)&&e!==s&&13!==e&&10!==e}function y(e,t,n){const r=m(e),o=r&&!h(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||m(t)&&!h(t)&&35===e||58===t&&o}function g(e,t){const n=e.charCodeAt(t);let r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}function x(e){return/^\n* /.test(e)}function v(e,t,n,r,o,i,a,c){let l,p=0,u=null,d=!1,m=!1;const v=-1!==r;let b=-1,w=f(k=g(e,0))&&k!==s&&!h(k)&&45!==k&&63!==k&&58!==k&&44!==k&&91!==k&&93!==k&&123!==k&&125!==k&&35!==k&&38!==k&&42!==k&&33!==k&&124!==k&&61!==k&&62!==k&&39!==k&&34!==k&&37!==k&&64!==k&&96!==k&&function(e){return!h(e)&&58!==e}(g(e,e.length-1));var k;if(t||a)for(l=0;l<e.length;p>=65536?l+=2:l++){if(p=g(e,l),!f(p))return 5;w=w&&y(p,u,c),u=p}else{for(l=0;l<e.length;p>=65536?l+=2:l++){if(p=g(e,l),10===p)d=!0,v&&(m=m||l-b-1>r&&" "!==e[b+1],b=l);else if(!f(p))return 5;w=w&&y(p,u,c),u=p}m=m||v&&l-b-1>r&&" "!==e[b+1]}return d||m?n>9&&x(e)?5:a?2===i?5:2:m?4:3:!w||a||o(e)?2===i?5:2:1}function b(e,n,r,o,s){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==a.indexOf(n)||c.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";const p=e.indent*Math.max(1,r),d=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-p),h=o||e.flowLevel>-1&&r>=e.flowLevel;switch(v(n,h,e.indent,d,function(t){return function(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!o,s)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+w(n,e.indent)+k(u(n,p));case 4:return">"+w(n,e.indent)+k(u(function(e,t){const n=/(\n+)([^\n]*)/g;let r,o,s=function(){let r=e.indexOf("\n");return r=-1!==r?r:e.length,n.lastIndex=r,A(e.slice(0,r),t)}(),i="\n"===e[0]||" "===e[0];for(;o=n.exec(e);){const e=o[1],n=o[2];r=" "===n[0],s+=e+(i||r||""===n?"":"\n")+A(n,t),i=r}return s}(n,d),p));case 5:return'"'+function(e){let t="",n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=g(e,r);const o=i[n];!o&&f(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=o||l(n)}return t}(n)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function w(e,t){const n=x(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function k(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function A(e,t){if(""===e||" "===e[0])return e;const n=/ [^ ]/g;let r,o,s=0,i=0,a=0,c="";for(;r=n.exec(e);)a=r.index,a-s>t&&(o=i>s?i:a,c+="\n"+e.slice(s,o),s=o+1),i=a;return c+="\n",e.length-s>t&&i>s?c+=e.slice(s,i)+"\n"+e.slice(i+1):c+=e.slice(s),c.slice(1)}function T(e,t,n,r){let o="";const s=e.tag;for(let s=0,i=n.length;s<i;s+=1){let i=n[s];e.replacer&&(i=e.replacer.call(n,String(s),i)),(F(e,t+1,i,!0,!0,!1,!0)||void 0===i&&F(e,t+1,null,!0,!0,!1,!0))&&(r&&""===o||(o+=d(e,t)),e.dump&&10===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump)}e.tag=s,e.dump=o||"[]"}function S(e,n,s){const i=s?e.explicitTypes:e.implicitTypes;for(let a=0,c=i.length;a<c;a+=1){const c=i[a];if((c.instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof n&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(s?c.multi&&c.representName?e.tag=c.representName(n):e.tag=c.tag:e.tag="?",c.represent){const s=e.styleMap[c.tag]||c.defaultStyle;let i;if("[object Function]"===r.call(c.represent))i=c.represent(n,s);else{if(!o.call(c.represent,s))throw new t("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');i=c.represent[s](n,s)}e.dump=i}return!0}}return!1}function F(e,n,o,s,i,a,c){e.tag=null,e.dump=o,S(e,o,!1)||S(e,o,!0);const l=r.call(e.dump),p=s;s&&(s=e.flowLevel<0||e.flowLevel>n);const u="[object Object]"===l||"[object Array]"===l;let h,f;if(u&&(h=e.duplicates.indexOf(o),f=-1!==h),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&n>0)&&(i=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(u&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===l)s&&0!==Object.keys(e.dump).length?(!function(e,n,r,o){let s="";const i=e.tag,a=Object.keys(r);if(!0===e.sortKeys)a.sort();else if("function"==typeof e.sortKeys)a.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,i=a.length;t<i;t+=1){let i="";o&&""===s||(i+=d(e,n));const c=a[t];let l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!F(e,n+1,c,!0,!0,!0))continue;const p=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;p&&(e.dump&&10===e.dump.charCodeAt(0)?i+="?":i+="? "),i+=e.dump,p&&(i+=d(e,n)),F(e,n+1,l,!0,p)&&(e.dump&&10===e.dump.charCodeAt(0)?i+=":":i+=": ",i+=e.dump,s+=i)}e.tag=i,e.dump=s||"{}"}(e,n,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const o=e.tag,s=Object.keys(n);for(let o=0,i=s.length;o<i;o+=1){let i="";""!==r&&(i+=", "),e.condenseFlow&&(i+='"');const a=s[o];let c=n[a];e.replacer&&(c=e.replacer.call(n,a,c)),F(e,t,a,!1,!1)&&(e.dump.length>1024&&(i+="? "),i+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),F(e,t,c,!1,!1)&&(i+=e.dump,r+=i))}e.tag=o,e.dump="{"+r+"}"}(e,n,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===l)s&&0!==e.dump.length?(e.noArrayIndent&&!c&&n>0?T(e,n-1,e.dump,i):T(e,n,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const o=e.tag;for(let o=0,s=n.length;o<s;o+=1){let s=n[o];e.replacer&&(s=e.replacer.call(n,String(o),s)),(F(e,t,s,!1,!1)||void 0===s&&F(e,t,null,!1,!1))&&(""!==r&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump)}e.tag=o,e.dump="["+r+"]"}(e,n,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&b(e,e.dump,n,a,p)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function O(e,t){const n=[],r=[];C(e,n,r);const o=r.length;for(let e=0;e<o;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=new Array(o)}function C(e,t,n){if(null!==e&&"object"==typeof e){const r=t.indexOf(e);if(-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,o=e.length;r<o;r+=1)C(e[r],t,n);else{const r=Object.keys(e);for(let o=0,s=r.length;o<s;o+=1)C(e[r[o]],t,n)}}}return or.dump=function(e,t){const n=new p(t=t||{});n.noRefs||O(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),F(n,0,r,!0,!0)?n.dump+"\n":""},or}const ir=Rt(function(){if(rr)return jn;rr=1;const e=tr(),t=sr();function n(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return jn.Type=Mn(),jn.Schema=Bn(),jn.FAILSAFE_SCHEMA=Hn(),jn.JSON_SCHEMA=zn(),jn.CORE_SCHEMA=Yn(),jn.DEFAULT_SCHEMA=er(),jn.load=e.load,jn.loadAll=e.loadAll,jn.dump=t.dump,jn.YAMLException=Pn(),jn.types={binary:Xn(),float:Wn(),map:Un(),null:qn(),pairs:Qn(),set:Zn(),timestamp:Vn(),bool:_n(),int:Gn(),merge:Kn(),omap:Jn(),seq:Rn(),str:Nn()},jn.safeLoad=n("safeLoad","load"),jn.safeLoadAll=n("safeLoadAll","loadAll"),jn.safeDump=n("safeDump","dump"),jn}()),{Type:ar,Schema:cr,FAILSAFE_SCHEMA:lr,JSON_SCHEMA:pr,CORE_SCHEMA:ur,DEFAULT_SCHEMA:dr,load:hr,loadAll:fr,dump:mr,YAMLException:yr,types:gr,safeLoad:xr,safeLoadAll:vr,safeDump:br}=ir;function wr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=function(e){return c()(e).call(e,", ")?e.split(", "):e}(n),e),{})}function kr(e,t,{loadSpec:n=!1}={}){const r={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:wr(e.headers)},o=r.headers["content-type"],s=n||((e="")=>/(json|xml|yaml|text)\b/.test(e))(o);return(s?e.text:e.blob||e.buffer).call(e).then(e=>{if(r.text=e,r.data=e,s)try{const t=function(e,t){if(t){if(0===t.indexOf("application/json")||t.indexOf("+json")>0)return JSON.parse(e);if(0===t.indexOf("application/xml")||t.indexOf("+xml")>0)return e}return ir.load(e)}(e,o);r.body=t,r.obj=t}catch(e){r.parseError=e}return r})}function Ar(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+="path-template = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+='slash = "/"\n',e+="path-literal = 1*pchar\n",e+='template-expression = "{" template-expression-param-name "}"\n',e+="template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+='pchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\n",e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\n; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npath-template = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nslash = "/"\npath-literal = 1*pchar\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\npct-encoded = "%" HEXDIG HEXDIG\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}}const Tr=e=>(t,n,r,o,s)=>{if(t===ht.SEM_PRE){const t={type:e,text:dt.charsToString(n,r,o),start:r,length:o,children:[]};s.stack.length>0?s.stack[s.stack.length-1].children.push(t):s.root=t,s.stack.push(t)}t===ht.SEM_POST&&s.stack.pop()};const Sr=class extends lt{constructor(){super(),this.callbacks["path-template"]=Tr("path-template"),this.callbacks["path-segment"]=Tr("path-segment"),this.callbacks.slash=Tr("slash"),this.callbacks["path-literal"]=Tr("path-literal"),this.callbacks["template-expression"]=Tr("template-expression"),this.callbacks["template-expression-param-name"]=Tr("template-expression-param-name")}getTree(){const e={stack:[],root:null};return this.translate(e),e.root}},Fr=e=>{if("path-literal"===e.type)return{type:"PathLiteral",value:e.text};const t=e.children.find(({type:e})=>"template-expression-param-name"===e);return{type:"TemplateExpression",name:t.text}};const Or=class extends Sr{getTree(){const e=super.getTree(),t=e.children.filter(({type:e})=>"path-segment"===e).map(e=>({type:"PathSegment",parts:e.children.map(Fr)})),n=e.children[e.children.length-1];return{type:"PathTemplate",segments:t,trailingSlash:t.length>0&&"slash"===n.type}}},Cr=e=>(t,n,r,o,s)=>{if(t===ht.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push([e,dt.charsToString(n,r,o)])}return ht.SEM_OK};const Er=class extends lt{constructor(){super(),this.callbacks["path-template"]=Cr("path-template"),this.callbacks.slash=Cr("slash"),this.callbacks["path-literal"]=Cr("path-literal"),this.callbacks["template-expression"]=Cr("template-expression"),this.callbacks["template-expression-param-name"]=Cr("template-expression-param-name")}getTree(){const e=[];return this.translate(e),e}};const Ir=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}};const jr=class extends pt{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let n=-1;for(let r=0;r<e.length;r++){const o=e[r];if(o.includes("M|")){const e=o.match(/]'(.*)'$/);e&&e[1]&&(n=r)}if(r>n){const e=o.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new Ir(...t)}};class Dr extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}const $r=Dr;const Lr=class extends $r{},Pr=new Ar,Mr=(e,{translator:t=new Or,stats:n=!1,trace:r=!1}={})=>{if("string"!=typeof e)throw new TypeError("Path template must be a string");try{const o=new ct;t&&(o.ast=t),n&&(o.stats=new ut),r&&(o.trace=new jr);const s=o.parse(Pr,"path-template",e);let i;return{result:s,tree:s.success&&t?o.ast.getTree():void 0,stats:o.stats,trace:o.trace,get ast(){if(void 0===i){const t=new ct;t.ast=new Er,t.parse(Pr,"path-template",e),i=t.ast}return i}}}catch(t){throw new Lr("Unexpected error during OpenAPI Path Templating parsing",{cause:t,pathTemplate:e})}};const Br=({style:e="simple",allowReserved:t=!1})=>{switch(e){case"simple":return t?"+":"";case"label":return".";case"matrix":return";";default:throw new TypeError(`Unsupported style of path parameter: "${e}"`)}},Nr=e=>{const t=(e=>{const t=new Map;return e.filter(e=>"string"==typeof(null==e?void 0:e.name)&&(void 0===e.in||"path"===e.in)).forEach(e=>{t.has(e.name)||t.set(e.name,e)}),t})(null!=e?e:[]);return e=>{var n;const r=null!==(n=t.get(e))&&void 0!==n?n:{};return{type:"Expression",operator:Br(r),variables:[{name:e,prefix:void 0,explode:Boolean(r.explode)}]}}};new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"URI-Template",lower:"uri-template",index:0,isBkr:!1},this.rules[1]={name:"literals",lower:"literals",index:1,isBkr:!1},this.rules[2]={name:"expression",lower:"expression",index:2,isBkr:!1},this.rules[3]={name:"operator",lower:"operator",index:3,isBkr:!1},this.rules[4]={name:"op-level2",lower:"op-level2",index:4,isBkr:!1},this.rules[5]={name:"op-level3",lower:"op-level3",index:5,isBkr:!1},this.rules[6]={name:"op-reserve",lower:"op-reserve",index:6,isBkr:!1},this.rules[7]={name:"variable-list",lower:"variable-list",index:7,isBkr:!1},this.rules[8]={name:"varspec",lower:"varspec",index:8,isBkr:!1},this.rules[9]={name:"varname",lower:"varname",index:9,isBkr:!1},this.rules[10]={name:"varchar",lower:"varchar",index:10,isBkr:!1},this.rules[11]={name:"modifier-level4",lower:"modifier-level4",index:11,isBkr:!1},this.rules[12]={name:"prefix",lower:"prefix",index:12,isBkr:!1},this.rules[13]={name:"max-length",lower:"max-length",index:13,isBkr:!1},this.rules[14]={name:"explode",lower:"explode",index:14,isBkr:!1},this.rules[15]={name:"pct-encoded",lower:"pct-encoded",index:15,isBkr:!1},this.rules[16]={name:"ucschar",lower:"ucschar",index:16,isBkr:!1},this.rules[17]={name:"iprivate",lower:"iprivate",index:17,isBkr:!1},this.rules[18]={name:"ALPHA",lower:"alpha",index:18,isBkr:!1},this.rules[19]={name:"DIGIT",lower:"digit",index:19,isBkr:!1},this.rules[20]={name:"HEXDIG",lower:"hexdig",index:20,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:4,index:2},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[1].opcodes[1]={type:6,string:[33]},this.rules[1].opcodes[2]={type:5,min:35,max:36},this.rules[1].opcodes[3]={type:5,min:38,max:59},this.rules[1].opcodes[4]={type:6,string:[61]},this.rules[1].opcodes[5]={type:5,min:63,max:91},this.rules[1].opcodes[6]={type:6,string:[93]},this.rules[1].opcodes[7]={type:6,string:[95]},this.rules[1].opcodes[8]={type:5,min:97,max:122},this.rules[1].opcodes[9]={type:6,string:[126]},this.rules[1].opcodes[10]={type:4,index:16},this.rules[1].opcodes[11]={type:4,index:17},this.rules[1].opcodes[12]={type:4,index:15},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,4,5]},this.rules[2].opcodes[1]={type:7,string:[123]},this.rules[2].opcodes[2]={type:3,min:0,max:1},this.rules[2].opcodes[3]={type:4,index:3},this.rules[2].opcodes[4]={type:4,index:7},this.rules[2].opcodes[5]={type:7,string:[125]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:1,children:[1,2,3]},this.rules[3].opcodes[1]={type:4,index:4},this.rules[3].opcodes[2]={type:4,index:5},this.rules[3].opcodes[3]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:7,string:[43]},this.rules[4].opcodes[2]={type:7,string:[35]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:7,string:[46]},this.rules[5].opcodes[2]={type:7,string:[47]},this.rules[5].opcodes[3]={type:7,string:[59]},this.rules[5].opcodes[4]={type:7,string:[63]},this.rules[5].opcodes[5]={type:7,string:[38]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:7,string:[61]},this.rules[6].opcodes[2]={type:7,string:[44]},this.rules[6].opcodes[3]={type:7,string:[33]},this.rules[6].opcodes[4]={type:7,string:[64]},this.rules[6].opcodes[5]={type:7,string:[124]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2]},this.rules[7].opcodes[1]={type:4,index:8},this.rules[7].opcodes[2]={type:3,min:0,max:1/0},this.rules[7].opcodes[3]={type:2,children:[4,5]},this.rules[7].opcodes[4]={type:7,string:[44]},this.rules[7].opcodes[5]={type:4,index:8},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2]},this.rules[8].opcodes[1]={type:4,index:9},this.rules[8].opcodes[2]={type:3,min:0,max:1},this.rules[8].opcodes[3]={type:4,index:11},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,6]},this.rules[9].opcodes[4]={type:3,min:0,max:1},this.rules[9].opcodes[5]={type:7,string:[46]},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[10].opcodes[1]={type:4,index:18},this.rules[10].opcodes[2]={type:4,index:19},this.rules[10].opcodes[3]={type:7,string:[95]},this.rules[10].opcodes[4]={type:4,index:15},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2]},this.rules[11].opcodes[1]={type:4,index:12},this.rules[11].opcodes[2]={type:4,index:14},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,2]},this.rules[12].opcodes[1]={type:7,string:[58]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:2,children:[1,2]},this.rules[13].opcodes[1]={type:5,min:49,max:57},this.rules[13].opcodes[2]={type:3,min:0,max:3},this.rules[13].opcodes[3]={type:4,index:19},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:7,string:[42]},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,3]},this.rules[15].opcodes[1]={type:7,string:[37]},this.rules[15].opcodes[2]={type:4,index:20},this.rules[15].opcodes[3]={type:4,index:20},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:5,min:160,max:55295},this.rules[16].opcodes[2]={type:5,min:63744,max:64975},this.rules[16].opcodes[3]={type:5,min:65008,max:65519},this.rules[16].opcodes[4]={type:5,min:65536,max:131069},this.rules[16].opcodes[5]={type:5,min:131072,max:196605},this.rules[16].opcodes[6]={type:5,min:196608,max:262141},this.rules[16].opcodes[7]={type:5,min:262144,max:327677},this.rules[16].opcodes[8]={type:5,min:327680,max:393213},this.rules[16].opcodes[9]={type:5,min:393216,max:458749},this.rules[16].opcodes[10]={type:5,min:458752,max:524285},this.rules[16].opcodes[11]={type:5,min:524288,max:589821},this.rules[16].opcodes[12]={type:5,min:589824,max:655357},this.rules[16].opcodes[13]={type:5,min:655360,max:720893},this.rules[16].opcodes[14]={type:5,min:720896,max:786429},this.rules[16].opcodes[15]={type:5,min:786432,max:851965},this.rules[16].opcodes[16]={type:5,min:851968,max:917501},this.rules[16].opcodes[17]={type:5,min:921600,max:983037},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3]},this.rules[17].opcodes[1]={type:5,min:57344,max:63743},this.rules[17].opcodes[2]={type:5,min:983040,max:1048573},this.rules[17].opcodes[3]={type:5,min:1048576,max:1114109},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:65,max:90},this.rules[18].opcodes[2]={type:5,min:97,max:122},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:5,min:48,max:57},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[20].opcodes[1]={type:4,index:19},this.rules[20].opcodes[2]={type:7,string:[97]},this.rules[20].opcodes[3]={type:7,string:[98]},this.rules[20].opcodes[4]={type:7,string:[99]},this.rules[20].opcodes[5]={type:7,string:[100]},this.rules[20].opcodes[6]={type:7,string:[101]},this.rules[20].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; URI Template ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2\n",e+="URI-Template = *( literals / expression )\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.1\n",e+='; with verified erratum allowing "\'" (https://www.rfc-editor.org/errata/eid6937)\n',e+="literals = %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.2\n",e+='expression = "{" [ operator ] variable-list "}"\n',e+="operator = op-level2 / op-level3 / op-reserve\n",e+='op-level2 = "+" / "#"\n',e+='op-level3 = "." / "/" / ";" / "?" / "&"\n',e+='op-reserve = "=" / "," / "!" / "@" / "|"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.3\n",e+='variable-list = varspec *( "," varspec )\n',e+="varspec = varname [ modifier-level4 ]\n",e+='varname = varchar *( ["."] varchar )\n',e+='varchar = ALPHA / DIGIT / "_" / pct-encoded\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-2.4\n",e+="modifier-level4 = prefix / explode\n",e+='prefix = ":" max-length\n',e+="max-length = %x31-39 0*3DIGIT ; positive integer < 10000\n",e+='explode = "*"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6570#section-1.5\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; URI Template ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2\nURI-Template = *( literals / expression )\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.1\n; with verified erratum allowing "\'" (https://www.rfc-editor.org/errata/eid6937)\nliterals = %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.2\nexpression = "{" [ operator ] variable-list "}"\noperator = op-level2 / op-level3 / op-reserve\nop-level2 = "+" / "#"\nop-level3 = "." / "/" / ";" / "?" / "&"\nop-reserve = "=" / "," / "!" / "@" / "|"\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.3\nvariable-list = varspec *( "," varspec )\nvarspec = varname [ modifier-level4 ]\nvarname = varchar *( ["."] varchar )\nvarchar = ALPHA / DIGIT / "_" / pct-encoded\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-2.4\nmodifier-level4 = prefix / explode\nprefix = ":" max-length\nmax-length = %x31-39 0*3DIGIT ; positive integer < 10000\nexplode = "*"\n\n; https://datatracker.ietf.org/doc/html/rfc6570#section-1.5\npct-encoded = "%" HEXDIG HEXDIG\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}};const Rr=Object.freeze({"":{first:"",sep:",",named:!1,ifemp:"",allowReserved:!1},"+":{first:"",sep:",",named:!1,ifemp:"",allowReserved:!0},".":{first:".",sep:".",named:!1,ifemp:"",allowReserved:!1},"/":{first:"/",sep:"/",named:!1,ifemp:"",allowReserved:!1},";":{first:";",sep:";",named:!0,ifemp:"",allowReserved:!1},"?":{first:"?",sep:"&",named:!0,ifemp:"=",allowReserved:!1},"&":{first:"&",sep:"&",named:!0,ifemp:"=",allowReserved:!1},"#":{first:"#",sep:",",named:!1,ifemp:"",allowReserved:!0}});const Ur=e=>/^[A-Za-z0-9\-._~]$/.test(e),Hr=e=>/^[:/?#[\]@!$&'()*+,;=]$/.test(e),qr=e=>void 0!==e&&/^[0-9A-Fa-f]$/.test(e),_r=e=>{const t=e.codePointAt(0);if(t>=55296&&t<=57343)throw new URIError("Lone surrogate cannot be encoded as UTF-8");return(e=>e<128?[e]:e<2048?[192|e>>6,128|63&e]:e<65536?[224|e>>12,128|e>>6&63,128|63&e]:[240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e])(t).map(e=>`%${e.toString(16).toUpperCase().padStart(2,"0")}`).join("")},Gr=(e,t)=>{const n=Array.from(e);let r="";for(let e=0;e<n.length;e+=1){const o=n[e];Ur(o)||t&&Hr(o)?r+=o:t&&"%"===o&&qr(n[e+1])&&qr(n[e+2])?(r+=`%${n[e+1]}${n[e+2]}`,e+=2):r+=_r(o)}return r},Wr=e=>Gr(e,!1),zr=e=>Gr(e,!0),Yr=e=>null!=e,Vr=e=>{if(Yr(e)){if(Array.isArray(e)){const t=e.filter(Yr).map(String);return 0===t.length?void 0:t}if((e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t})(e)){const t=Object.entries(e).filter(([,e])=>Yr(e)).map(([e,t])=>[e,String(t)]);return 0===t.length?void 0:t}return String(e)}},Kr=({name:e,prefix:t,explode:n},r,o,s)=>{const{sep:i,named:a,ifemp:c,allowReserved:l}=o,p=l?zr:Wr,u=zr(e),d=(e,t)=>""===t?`${e}${c}`:`${e}=${t}`;if("string"==typeof r){const e=void 0===t?r:Array.from(r).slice(0,t).join("");return a?d(u,p(e)):p(e)}if(void 0!==t)throw new $r(`Prefix modifier is not applicable to composite value of variable "${e}"`,{uriTemplate:s});const h="string"==typeof r[0];if(!n){const e=h?r.map(p):r.flatMap(([e,t])=>[p(e),p(t)]);return a?d(u,e.join(",")):e.join(",")}return h?r.map(e=>a?d(u,p(e)):p(e)).join(i):r.map(([e,t])=>a?d(p(e),p(t)):`${p(e)}=${p(t)}`).join(i)},Xr=({operator:e,variables:t},n,r)=>{const o=Rr[e];if(void 0===o)throw new Lr(`Unsupported operator "${e}" in URI Template: "${r}"`,{uriTemplate:r});const s=t.flatMap(e=>{const t=Object.prototype.hasOwnProperty.call(n,e.name)?Vr(n[e.name]):void 0;return void 0===t?[]:[Kr(e,t,o,r)]});return 0===s.length?"":`${o.first}${s.join(o.sep)}`},Jr=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Qr=(e,t,n={})=>{const{parameterObjects:r,encoder:o}=n,s=null!=r;if(s&&void 0!==o)throw new TypeError("Options encoder and parameterObjects cannot be used together");const i=s?((e,t)=>{const n=Nr(e);return(e,r)=>{const o=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(void 0===Vr(o))return`{${r}}`;try{return Xr(n(r),{[r]:o},t)}catch(e){if(e instanceof URIError)throw new $r("Malformed Unicode in path parameter serialization",{cause:e,pathTemplate:t});throw e}}})(r,e):(e=>(t,n)=>Object.prototype.hasOwnProperty.call(t,n)?e(t[n],n):`{${n}}`)(null!=o?o:Jr),a=Mr(e);if(!a.result.success)return e;const{segments:c,trailingSlash:l}=a.tree;return`/${c.map(({parts:e})=>e.map(e=>"PathLiteral"===e.type?e.value:i(t,e.name)).join("")).join("/")}${l?"/":""}`};new Ar,new ct;Symbol("template-expression"),Symbol("fresh-char");const Zr={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:n}){e.headers=e.headers||{},void 0!==n&&(e.headers[t.name]=n)},query:function({req:e,value:t,parameter:n}){e.query=e.query||{},!1===t&&"boolean"===n.type&&(t="false");0===t&&["number","integer"].indexOf(n.type)>-1&&(t="0");if(t)e.query[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&void 0!==t){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:n,baseURL:r}){if(void 0!==t){const o=e.url.replace(r,""),s=Qr(o,{[n.name]:t});e.url=r+s}},formData:function({req:e,value:t,parameter:n}){!1===t&&"boolean"===n.type&&(t="false");0===t&&["number","integer"].indexOf(n.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=n.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function eo(e,t){return c()(t).call(t,"application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map(e=>{try{return JSON.parse(e)}catch(t){return e}})),JSON.stringify(e)):String(e)}const to=k(function(e,t,n){var r,o={};for(r in n=n||{},t=t||{})d(r,t)&&(o[r]=d(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)d(r,n)&&!d(r,o)&&(o[r]=n[r]);return o});const no=k(function e(t,n,r){return to(function(n,r,o){return pe(r)&&pe(o)?e(t,r,o):t(n,r,o)},n,r)});const ro=u(function(e,t){return no(function(e,t,n){return n},e,t)});function oo(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"lenient-set-cookie-string",lower:"lenient-set-cookie-string",index:9,isBkr:!1},this.rules[10]={name:"lenient-set-cookie-pair",lower:"lenient-set-cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"lenient-set-cookie-name",lower:"lenient-set-cookie-name",index:11,isBkr:!1},this.rules[12]={name:"lenient-set-cookie-value",lower:"lenient-set-cookie-value",index:12,isBkr:!1},this.rules[13]={name:"lenient-cookie-av",lower:"lenient-cookie-av",index:13,isBkr:!1},this.rules[14]={name:"lenient-cookie-av-name",lower:"lenient-cookie-av-name",index:14,isBkr:!1},this.rules[15]={name:"lenient-cookie-av-value",lower:"lenient-cookie-av-value",index:15,isBkr:!1},this.rules[16]={name:"lenient-name-char",lower:"lenient-name-char",index:16,isBkr:!1},this.rules[17]={name:"lenient-value-char",lower:"lenient-value-char",index:17,isBkr:!1},this.rules[18]={name:"cookie-string",lower:"cookie-string",index:18,isBkr:!1},this.rules[19]={name:"cookie-pair",lower:"cookie-pair",index:19,isBkr:!1},this.rules[20]={name:"cookie-name",lower:"cookie-name",index:20,isBkr:!1},this.rules[21]={name:"cookie-value",lower:"cookie-value",index:21,isBkr:!1},this.rules[22]={name:"cookie-octet",lower:"cookie-octet",index:22,isBkr:!1},this.rules[23]={name:"set-cookie-string",lower:"set-cookie-string",index:23,isBkr:!1},this.rules[24]={name:"cookie-av",lower:"cookie-av",index:24,isBkr:!1},this.rules[25]={name:"expires-av",lower:"expires-av",index:25,isBkr:!1},this.rules[26]={name:"sane-cookie-date",lower:"sane-cookie-date",index:26,isBkr:!1},this.rules[27]={name:"max-age-av",lower:"max-age-av",index:27,isBkr:!1},this.rules[28]={name:"non-zero-digit",lower:"non-zero-digit",index:28,isBkr:!1},this.rules[29]={name:"domain-av",lower:"domain-av",index:29,isBkr:!1},this.rules[30]={name:"domain-value",lower:"domain-value",index:30,isBkr:!1},this.rules[31]={name:"path-av",lower:"path-av",index:31,isBkr:!1},this.rules[32]={name:"path-value",lower:"path-value",index:32,isBkr:!1},this.rules[33]={name:"secure-av",lower:"secure-av",index:33,isBkr:!1},this.rules[34]={name:"httponly-av",lower:"httponly-av",index:34,isBkr:!1},this.rules[35]={name:"extension-av",lower:"extension-av",index:35,isBkr:!1},this.rules[36]={name:"av-octet",lower:"av-octet",index:36,isBkr:!1},this.rules[37]={name:"subdomain",lower:"subdomain",index:37,isBkr:!1},this.rules[38]={name:"label",lower:"label",index:38,isBkr:!1},this.rules[39]={name:"let-dig",lower:"let-dig",index:39,isBkr:!1},this.rules[40]={name:"rfc1123-date",lower:"rfc1123-date",index:40,isBkr:!1},this.rules[41]={name:"date1",lower:"date1",index:41,isBkr:!1},this.rules[42]={name:"time",lower:"time",index:42,isBkr:!1},this.rules[43]={name:"wkday",lower:"wkday",index:43,isBkr:!1},this.rules[44]={name:"month",lower:"month",index:44,isBkr:!1},this.rules[45]={name:"OWS",lower:"ows",index:45,isBkr:!1},this.rules[46]={name:"token",lower:"token",index:46,isBkr:!1},this.rules[47]={name:"tchar",lower:"tchar",index:47,isBkr:!1},this.rules[48]={name:"CHAR",lower:"char",index:48,isBkr:!1},this.rules[49]={name:"CTL",lower:"ctl",index:49,isBkr:!1},this.rules[50]={name:"separators",lower:"separators",index:50,isBkr:!1},this.rules[51]={name:"SP",lower:"sp",index:51,isBkr:!1},this.rules[52]={name:"HT",lower:"ht",index:52,isBkr:!1},this.rules[53]={name:"ALPHA",lower:"alpha",index:53,isBkr:!1},this.rules[54]={name:"DIGIT",lower:"digit",index:54,isBkr:!1},this.rules[55]={name:"DQUOTE",lower:"dquote",index:55,isBkr:!1},this.rules[56]={name:"WSP",lower:"wsp",index:56,isBkr:!1},this.rules[57]={name:"HTAB",lower:"htab",index:57,isBkr:!1},this.rules[58]={name:"CRLF",lower:"crlf",index:58,isBkr:!1},this.rules[59]={name:"CR",lower:"cr",index:59,isBkr:!1},this.rules[60]={name:"LF",lower:"lf",index:60,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:45},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:45},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:45},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:45},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:45},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:45},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:47},this.rules[3].opcodes[4]={type:4,index:45},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:55},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:55},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:13},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,3,4,6,7,9,10]},this.rules[10].opcodes[1]={type:3,min:0,max:1/0},this.rules[10].opcodes[2]={type:4,index:56},this.rules[10].opcodes[3]={type:4,index:11},this.rules[10].opcodes[4]={type:3,min:0,max:1/0},this.rules[10].opcodes[5]={type:4,index:56},this.rules[10].opcodes[6]={type:7,string:[61]},this.rules[10].opcodes[7]={type:3,min:0,max:1/0},this.rules[10].opcodes[8]={type:4,index:56},this.rules[10].opcodes[9]={type:4,index:12},this.rules[10].opcodes[10]={type:3,min:0,max:1/0},this.rules[10].opcodes[11]={type:4,index:56},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2]},this.rules[11].opcodes[1]={type:4,index:16},this.rules[11].opcodes[2]={type:3,min:0,max:1/0},this.rules[11].opcodes[3]={type:2,children:[4,6]},this.rules[11].opcodes[4]={type:3,min:0,max:1/0},this.rules[11].opcodes[5]={type:4,index:56},this.rules[11].opcodes[6]={type:4,index:16},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:0,max:1},this.rules[12].opcodes[1]={type:2,children:[2,3]},this.rules[12].opcodes[2]={type:4,index:17},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:2,children:[5,7]},this.rules[12].opcodes[5]={type:3,min:0,max:1/0},this.rules[12].opcodes[6]={type:4,index:56},this.rules[12].opcodes[7]={type:4,index:17},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:2,children:[1,3,4,6]},this.rules[13].opcodes[1]={type:3,min:0,max:1/0},this.rules[13].opcodes[2]={type:4,index:56},this.rules[13].opcodes[3]={type:4,index:14},this.rules[13].opcodes[4]={type:3,min:0,max:1/0},this.rules[13].opcodes[5]={type:4,index:56},this.rules[13].opcodes[6]={type:3,min:0,max:1},this.rules[13].opcodes[7]={type:2,children:[8,9,11,12]},this.rules[13].opcodes[8]={type:7,string:[61]},this.rules[13].opcodes[9]={type:3,min:0,max:1/0},this.rules[13].opcodes[10]={type:4,index:56},this.rules[13].opcodes[11]={type:4,index:15},this.rules[13].opcodes[12]={type:3,min:0,max:1/0},this.rules[13].opcodes[13]={type:4,index:56},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1},this.rules[14].opcodes[1]={type:2,children:[2,3]},this.rules[14].opcodes[2]={type:4,index:16},this.rules[14].opcodes[3]={type:3,min:0,max:1/0},this.rules[14].opcodes[4]={type:2,children:[5,7]},this.rules[14].opcodes[5]={type:3,min:0,max:1/0},this.rules[14].opcodes[6]={type:4,index:56},this.rules[14].opcodes[7]={type:4,index:16},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:0,max:1},this.rules[15].opcodes[1]={type:2,children:[2,3]},this.rules[15].opcodes[2]={type:4,index:17},this.rules[15].opcodes[3]={type:3,min:0,max:1/0},this.rules[15].opcodes[4]={type:2,children:[5,7]},this.rules[15].opcodes[5]={type:3,min:0,max:1/0},this.rules[15].opcodes[6]={type:4,index:56},this.rules[15].opcodes[7]={type:4,index:17},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[16].opcodes[1]={type:5,min:33,max:58},this.rules[16].opcodes[2]={type:6,string:[60]},this.rules[16].opcodes[3]={type:5,min:62,max:126},this.rules[16].opcodes[4]={type:5,min:128,max:1114111},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3]},this.rules[17].opcodes[1]={type:5,min:33,max:58},this.rules[17].opcodes[2]={type:5,min:60,max:126},this.rules[17].opcodes[3]={type:5,min:128,max:1114111},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:2,children:[1,2]},this.rules[18].opcodes[1]={type:4,index:19},this.rules[18].opcodes[2]={type:3,min:0,max:1/0},this.rules[18].opcodes[3]={type:2,children:[4,5,6]},this.rules[18].opcodes[4]={type:7,string:[59]},this.rules[18].opcodes[5]={type:4,index:51},this.rules[18].opcodes[6]={type:4,index:19},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:2,children:[1,2,3]},this.rules[19].opcodes[1]={type:4,index:20},this.rules[19].opcodes[2]={type:7,string:[61]},this.rules[19].opcodes[3]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:4,index:46},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:1,children:[1,6]},this.rules[21].opcodes[1]={type:2,children:[2,3,5]},this.rules[21].opcodes[2]={type:4,index:55},this.rules[21].opcodes[3]={type:3,min:0,max:1/0},this.rules[21].opcodes[4]={type:4,index:22},this.rules[21].opcodes[5]={type:4,index:55},this.rules[21].opcodes[6]={type:3,min:0,max:1/0},this.rules[21].opcodes[7]={type:4,index:22},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[22].opcodes[1]={type:6,string:[33]},this.rules[22].opcodes[2]={type:5,min:35,max:43},this.rules[22].opcodes[3]={type:5,min:45,max:58},this.rules[22].opcodes[4]={type:5,min:60,max:91},this.rules[22].opcodes[5]={type:5,min:93,max:126},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:2,children:[1,2]},this.rules[23].opcodes[1]={type:4,index:19},this.rules[23].opcodes[2]={type:3,min:0,max:1/0},this.rules[23].opcodes[3]={type:2,children:[4,5,6]},this.rules[23].opcodes[4]={type:7,string:[59]},this.rules[23].opcodes[5]={type:4,index:51},this.rules[23].opcodes[6]={type:4,index:24},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:4,index:35},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2]},this.rules[25].opcodes[1]={type:7,string:[101,120,112,105,114,101,115,61]},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:4,index:40},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2,3]},this.rules[27].opcodes[1]={type:7,string:[109,97,120,45,97,103,101,61]},this.rules[27].opcodes[2]={type:4,index:28},this.rules[27].opcodes[3]={type:3,min:0,max:1/0},this.rules[27].opcodes[4]={type:4,index:54},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:5,min:49,max:57},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:2,children:[1,2]},this.rules[29].opcodes[1]={type:7,string:[100,111,109,97,105,110,61]},this.rules[29].opcodes[2]={type:4,index:30},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:4,index:37},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,2]},this.rules[31].opcodes[1]={type:7,string:[112,97,116,104,61]},this.rules[31].opcodes[2]={type:4,index:32},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:3,min:0,max:1/0},this.rules[32].opcodes[1]={type:4,index:36},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:7,string:[115,101,99,117,114,101]},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:7,string:[104,116,116,112,111,110,108,121]},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:3,min:0,max:1/0},this.rules[35].opcodes[1]={type:4,index:36},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:1,children:[1,2]},this.rules[36].opcodes[1]={type:5,min:32,max:58},this.rules[36].opcodes[2]={type:5,min:60,max:126},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2]},this.rules[37].opcodes[1]={type:4,index:38},this.rules[37].opcodes[2]={type:3,min:0,max:1/0},this.rules[37].opcodes[3]={type:2,children:[4,5]},this.rules[37].opcodes[4]={type:7,string:[46]},this.rules[37].opcodes[5]={type:4,index:38},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2]},this.rules[38].opcodes[1]={type:4,index:39},this.rules[38].opcodes[2]={type:3,min:0,max:1/0},this.rules[38].opcodes[3]={type:2,children:[4,6]},this.rules[38].opcodes[4]={type:3,min:0,max:1/0},this.rules[38].opcodes[5]={type:7,string:[45]},this.rules[38].opcodes[6]={type:4,index:39},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:1,children:[1,2]},this.rules[39].opcodes[1]={type:4,index:53},this.rules[39].opcodes[2]={type:4,index:54},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:2,children:[1,2,3,4,5,6,7,8]},this.rules[40].opcodes[1]={type:4,index:43},this.rules[40].opcodes[2]={type:7,string:[44]},this.rules[40].opcodes[3]={type:4,index:51},this.rules[40].opcodes[4]={type:4,index:41},this.rules[40].opcodes[5]={type:4,index:51},this.rules[40].opcodes[6]={type:4,index:42},this.rules[40].opcodes[7]={type:4,index:51},this.rules[40].opcodes[8]={type:6,string:[71,77,84]},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:2,children:[1,3,4,5,6]},this.rules[41].opcodes[1]={type:3,min:2,max:2},this.rules[41].opcodes[2]={type:4,index:54},this.rules[41].opcodes[3]={type:4,index:51},this.rules[41].opcodes[4]={type:4,index:44},this.rules[41].opcodes[5]={type:4,index:51},this.rules[41].opcodes[6]={type:3,min:4,max:4},this.rules[41].opcodes[7]={type:4,index:54},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,3,4,6,7]},this.rules[42].opcodes[1]={type:3,min:2,max:2},this.rules[42].opcodes[2]={type:4,index:54},this.rules[42].opcodes[3]={type:7,string:[58]},this.rules[42].opcodes[4]={type:3,min:2,max:2},this.rules[42].opcodes[5]={type:4,index:54},this.rules[42].opcodes[6]={type:7,string:[58]},this.rules[42].opcodes[7]={type:3,min:2,max:2},this.rules[42].opcodes[8]={type:4,index:54},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[43].opcodes[1]={type:6,string:[77,111,110]},this.rules[43].opcodes[2]={type:6,string:[84,117,101]},this.rules[43].opcodes[3]={type:6,string:[87,101,100]},this.rules[43].opcodes[4]={type:6,string:[84,104,117]},this.rules[43].opcodes[5]={type:6,string:[70,114,105]},this.rules[43].opcodes[6]={type:6,string:[83,97,116]},this.rules[43].opcodes[7]={type:6,string:[83,117,110]},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[44].opcodes[1]={type:6,string:[74,97,110]},this.rules[44].opcodes[2]={type:6,string:[70,101,98]},this.rules[44].opcodes[3]={type:6,string:[77,97,114]},this.rules[44].opcodes[4]={type:6,string:[65,112,114]},this.rules[44].opcodes[5]={type:6,string:[77,97,121]},this.rules[44].opcodes[6]={type:6,string:[74,117,110]},this.rules[44].opcodes[7]={type:6,string:[74,117,108]},this.rules[44].opcodes[8]={type:6,string:[65,117,103]},this.rules[44].opcodes[9]={type:6,string:[83,101,112]},this.rules[44].opcodes[10]={type:6,string:[79,99,116]},this.rules[44].opcodes[11]={type:6,string:[78,111,118]},this.rules[44].opcodes[12]={type:6,string:[68,101,99]},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:3,min:0,max:1/0},this.rules[45].opcodes[1]={type:2,children:[2,4]},this.rules[45].opcodes[2]={type:3,min:0,max:1},this.rules[45].opcodes[3]={type:4,index:58},this.rules[45].opcodes[4]={type:4,index:56},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:3,min:1,max:1/0},this.rules[46].opcodes[1]={type:4,index:47},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[47].opcodes[1]={type:7,string:[33]},this.rules[47].opcodes[2]={type:7,string:[35]},this.rules[47].opcodes[3]={type:7,string:[36]},this.rules[47].opcodes[4]={type:7,string:[37]},this.rules[47].opcodes[5]={type:7,string:[38]},this.rules[47].opcodes[6]={type:7,string:[39]},this.rules[47].opcodes[7]={type:7,string:[42]},this.rules[47].opcodes[8]={type:7,string:[43]},this.rules[47].opcodes[9]={type:7,string:[45]},this.rules[47].opcodes[10]={type:7,string:[46]},this.rules[47].opcodes[11]={type:7,string:[94]},this.rules[47].opcodes[12]={type:7,string:[95]},this.rules[47].opcodes[13]={type:7,string:[96]},this.rules[47].opcodes[14]={type:7,string:[124]},this.rules[47].opcodes[15]={type:7,string:[126]},this.rules[47].opcodes[16]={type:4,index:54},this.rules[47].opcodes[17]={type:4,index:53},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:5,min:1,max:127},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:1,children:[1,2]},this.rules[49].opcodes[1]={type:5,min:0,max:31},this.rules[49].opcodes[2]={type:6,string:[127]},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[50].opcodes[1]={type:7,string:[40]},this.rules[50].opcodes[2]={type:7,string:[41]},this.rules[50].opcodes[3]={type:7,string:[60]},this.rules[50].opcodes[4]={type:7,string:[62]},this.rules[50].opcodes[5]={type:7,string:[64]},this.rules[50].opcodes[6]={type:7,string:[44]},this.rules[50].opcodes[7]={type:7,string:[59]},this.rules[50].opcodes[8]={type:7,string:[58]},this.rules[50].opcodes[9]={type:7,string:[92]},this.rules[50].opcodes[10]={type:6,string:[34]},this.rules[50].opcodes[11]={type:7,string:[47]},this.rules[50].opcodes[12]={type:7,string:[91]},this.rules[50].opcodes[13]={type:7,string:[93]},this.rules[50].opcodes[14]={type:7,string:[63]},this.rules[50].opcodes[15]={type:7,string:[61]},this.rules[50].opcodes[16]={type:7,string:[123]},this.rules[50].opcodes[17]={type:7,string:[125]},this.rules[50].opcodes[18]={type:4,index:51},this.rules[50].opcodes[19]={type:4,index:52},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[32]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[9]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:1,children:[1,2]},this.rules[53].opcodes[1]={type:5,min:65,max:90},this.rules[53].opcodes[2]={type:5,min:97,max:122},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:5,min:48,max:57},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:6,string:[34]},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:1,children:[1,2]},this.rules[56].opcodes[1]={type:4,index:51},this.rules[56].opcodes[2]={type:4,index:57},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:6,string:[9]},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:2,children:[1,2]},this.rules[58].opcodes[1]={type:4,index:59},this.rules[58].opcodes[2]={type:4,index:60},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:6,string:[13]},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+="; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\n',e+="lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\n",e+='lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\n',e+='lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\n',e+='lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\n',e+="lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\n",e+="lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\n",e+="lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\n",e+="lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n",e+=" ; Allow all printable characters except CTLs, semicolon and SP\n",e+="\n",e+="; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+="; following parsing algorithm of https://datatracker.ietf.org/doc/html/rfc6265#section-5.2\n",e+='lenient-set-cookie-string = lenient-set-cookie-pair *( ";" lenient-cookie-av )\n',e+='lenient-set-cookie-pair = *WSP lenient-set-cookie-name *WSP "=" *WSP lenient-set-cookie-value *WSP\n',e+="lenient-set-cookie-name = lenient-name-char *( *WSP lenient-name-char ) ; leading and trailing WSP is not part of the name\n",e+="lenient-set-cookie-value = [ lenient-value-char *( *WSP lenient-value-char ) ] ; leading and trailing WSP is not part of the value\n",e+='lenient-cookie-av = *WSP lenient-cookie-av-name *WSP [ "=" *WSP lenient-cookie-av-value *WSP ]\n',e+="lenient-cookie-av-name = [ lenient-name-char *( *WSP lenient-name-char ) ]\n",e+="lenient-cookie-av-value = [ lenient-value-char *( *WSP lenient-value-char ) ]\n",e+="; CTLs (except HTAB) are not allowed, as they are not allowed in HTTP field values (https://www.rfc-editor.org/rfc/rfc9110#section-5.5)\n",e+='lenient-name-char = %x21-3A / %x3C / %x3E-7E / %x80-10FFFF ; any CHAR except CTLs, WSP, ";" and "="\n',e+='lenient-value-char = %x21-3A / %x3C-7E / %x80-10FFFF ; any CHAR except CTLs, WSP and ";"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='cookie-string = cookie-pair *( ";" SP cookie-pair )\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+="; https://www.rfc-editor.org/errata/eid5518\n",e+='cookie-pair = cookie-name "=" cookie-value\n',e+="cookie-name = token\n",e+="cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid8242\n",e+="cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n",e+=" ; US-ASCII characters excluding CTLs,\n",e+=" ; whitespace, DQUOTE, comma, semicolon,\n",e+=" ; and backslash\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+='set-cookie-string = cookie-pair *( ";" SP cookie-av )\n',e+="cookie-av = extension-av\n",e+=" ; MODIFICATION: originally\n",e+=" ; cookie-av = expires-av / max-age-av / domain-av /\n",e+=" ; path-av / secure-av / httponly-av /\n",e+=" ; extension-av\n",e+=" ; All the alternatives are subsets of extension-av. Parsers processing alternatives\n",e+=" ; left-to-right without backtracking would commit to a partial match of a specific\n",e+=' ; alternative (e.g. "Secure " or "Max-Age=60 ") and fail, instead of matching extension-av.\n',e+='expires-av = "Expires=" sane-cookie-date\n',e+="sane-cookie-date = rfc1123-date\n",e+=" ; defined in [RFC2616], Section 3.3.1\n",e+='max-age-av = "Max-Age=" non-zero-digit *DIGIT\n',e+=" ; In practice, both expires-av and max-age-av\n",e+=" ; are limited to dates representable by the\n",e+=" ; user agent.\n",e+="non-zero-digit = %x31-39\n",e+=" ; digits 1 through 9\n",e+='domain-av = "Domain=" domain-value\n',e+="domain-value = subdomain\n",e+=" ; defined in [RFC1034], Section 3.5, as\n",e+=" ; enhanced by [RFC1123], Section 2.1\n",e+='path-av = "Path=" path-value\n',e+="path-value = *av-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid3444\n",e+='secure-av = "Secure"\n',e+='httponly-av = "HttpOnly"\n',e+="extension-av = *av-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid3444\n",e+="av-octet = %x20-3A / %x3C-7E\n",e+=' ; any CHAR except CTLs or ";"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc1034#section-3.5\n",e+="; https://datatracker.ietf.org/doc/html/rfc1123#section-2.1\n",e+='subdomain = label *( "." label )\n',e+='label = let-dig *( *"-" let-dig )\n',e+=" ; MODIFICATION: originally\n",e+=" ; <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]\n",e+=" ; <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n",e+=' ; <let-dig-hyp> ::= <let-dig> | "-"\n',e+=" ; RFC 1123 allows the first character to be either a letter or a digit.\n",e+=" ; Rewritten as an equivalent grammar, as greedy repetition doesn't backtrack.\n",e+="let-dig = ALPHA / DIGIT\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc2616#section-3.3.1\n",e+="; HTTP-date is case sensitive\n",e+='rfc1123-date = wkday "," SP date1 SP time SP %s"GMT"\n',e+="date1 = 2DIGIT SP month SP 4DIGIT\n",e+=" ; day month year (e.g., 02 Jun 1982)\n",e+='time = 2DIGIT ":" 2DIGIT ":" 2DIGIT\n',e+=" ; 00:00:00 - 23:59:59\n",e+='wkday = %s"Mon" / %s"Tue" / %s"Wed"\n',e+=' / %s"Thu" / %s"Fri" / %s"Sat" / %s"Sun"\n',e+='month = %s"Jan" / %s"Feb" / %s"Mar" / %s"Apr"\n',e+=' / %s"May" / %s"Jun" / %s"Jul" / %s"Aug"\n',e+=' / %s"Sep" / %s"Oct" / %s"Nov" / %s"Dec"\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\n",e+='OWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\n",e+="token = 1*(tchar)\n",e+='tchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n',e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=" / DIGIT / ALPHA\n",e+=" ; any VCHAR, except delimiters\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\n",e+="CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\n",e+="CTL = %x00-1F / %x7F ; any US-ASCII control character\n",e+='separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\n',e+="SP = %x20 ; US-ASCII SP, space (32)\n",e+="HT = %x09 ; US-ASCII HT, horizontal-tab (9)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='DQUOTE = %x22 ; " (Double Quote)\n',e+="WSP = SP / HTAB ; white space\n",e+="HTAB = %x09 ; horizontal tab\n",e+="CRLF = CR LF ; Internet standard newline\n",e+="CR = %x0D ; carriage return\n",e+="LF = %x0A ; linefeed\n",'; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\nlenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\nlenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\nlenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\nlenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\nlenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\nlenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\nlenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\nlenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\nlenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n ; Allow all printable characters except CTLs, semicolon and SP\n\n; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n; following parsing algorithm of https://datatracker.ietf.org/doc/html/rfc6265#section-5.2\nlenient-set-cookie-string = lenient-set-cookie-pair *( ";" lenient-cookie-av )\nlenient-set-cookie-pair = *WSP lenient-set-cookie-name *WSP "=" *WSP lenient-set-cookie-value *WSP\nlenient-set-cookie-name = lenient-name-char *( *WSP lenient-name-char ) ; leading and trailing WSP is not part of the name\nlenient-set-cookie-value = [ lenient-value-char *( *WSP lenient-value-char ) ] ; leading and trailing WSP is not part of the value\nlenient-cookie-av = *WSP lenient-cookie-av-name *WSP [ "=" *WSP lenient-cookie-av-value *WSP ]\nlenient-cookie-av-name = [ lenient-name-char *( *WSP lenient-name-char ) ]\nlenient-cookie-av-value = [ lenient-value-char *( *WSP lenient-value-char ) ]\n; CTLs (except HTAB) are not allowed, as they are not allowed in HTTP field values (https://www.rfc-editor.org/rfc/rfc9110#section-5.5)\nlenient-name-char = %x21-3A / %x3C / %x3E-7E / %x80-10FFFF ; any CHAR except CTLs, WSP, ";" and "="\nlenient-value-char = %x21-3A / %x3C-7E / %x80-10FFFF ; any CHAR except CTLs, WSP and ";"\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\ncookie-string = cookie-pair *( ";" SP cookie-pair )\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n; https://www.rfc-editor.org/errata/eid5518\ncookie-pair = cookie-name "=" cookie-value\ncookie-name = token\ncookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n ; https://www.rfc-editor.org/errata/eid8242\ncookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace, DQUOTE, comma, semicolon,\n ; and backslash\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\nset-cookie-string = cookie-pair *( ";" SP cookie-av )\ncookie-av = extension-av\n ; MODIFICATION: originally\n ; cookie-av = expires-av / max-age-av / domain-av /\n ; path-av / secure-av / httponly-av /\n ; extension-av\n ; All the alternatives are subsets of extension-av. Parsers processing alternatives\n ; left-to-right without backtracking would commit to a partial match of a specific\n ; alternative (e.g. "Secure " or "Max-Age=60 ") and fail, instead of matching extension-av.\nexpires-av = "Expires=" sane-cookie-date\nsane-cookie-date = rfc1123-date\n ; defined in [RFC2616], Section 3.3.1\nmax-age-av = "Max-Age=" non-zero-digit *DIGIT\n ; In practice, both expires-av and max-age-av\n ; are limited to dates representable by the\n ; user agent.\nnon-zero-digit = %x31-39\n ; digits 1 through 9\ndomain-av = "Domain=" domain-value\ndomain-value = subdomain\n ; defined in [RFC1034], Section 3.5, as\n ; enhanced by [RFC1123], Section 2.1\npath-av = "Path=" path-value\npath-value = *av-octet\n ; https://www.rfc-editor.org/errata/eid3444\nsecure-av = "Secure"\nhttponly-av = "HttpOnly"\nextension-av = *av-octet\n ; https://www.rfc-editor.org/errata/eid3444\nav-octet = %x20-3A / %x3C-7E\n ; any CHAR except CTLs or ";"\n\n; https://datatracker.ietf.org/doc/html/rfc1034#section-3.5\n; https://datatracker.ietf.org/doc/html/rfc1123#section-2.1\nsubdomain = label *( "." label )\nlabel = let-dig *( *"-" let-dig )\n ; MODIFICATION: originally\n ; <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]\n ; <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n ; <let-dig-hyp> ::= <let-dig> | "-"\n ; RFC 1123 allows the first character to be either a letter or a digit.\n ; Rewritten as an equivalent grammar, as greedy repetition doesn\'t backtrack.\nlet-dig = ALPHA / DIGIT\n\n; https://datatracker.ietf.org/doc/html/rfc2616#section-3.3.1\n; HTTP-date is case sensitive\nrfc1123-date = wkday "," SP date1 SP time SP %s"GMT"\ndate1 = 2DIGIT SP month SP 4DIGIT\n ; day month year (e.g., 02 Jun 1982)\ntime = 2DIGIT ":" 2DIGIT ":" 2DIGIT\n ; 00:00:00 - 23:59:59\nwkday = %s"Mon" / %s"Tue" / %s"Wed"\n / %s"Thu" / %s"Fri" / %s"Sat" / %s"Sun"\nmonth = %s"Jan" / %s"Feb" / %s"Mar" / %s"Apr"\n / %s"May" / %s"Jun" / %s"Jul" / %s"Aug"\n / %s"Sep" / %s"Oct" / %s"Nov" / %s"Dec"\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\nOWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n\n; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\ntoken = 1*(tchar)\ntchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n / DIGIT / ALPHA\n ; any VCHAR, except delimiters\n\n; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\nCHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\nCTL = %x00-1F / %x7F ; any US-ASCII control character\nseparators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\nSP = %x20 ; US-ASCII SP, space (32)\nHT = %x09 ; US-ASCII HT, horizontal-tab (9)\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nDQUOTE = %x22 ; " (Double Quote)\nWSP = SP / HTAB ; white space\nHTAB = %x09 ; horizontal tab\nCRLF = CR LF ; Internet standard newline\nCR = %x0D ; carriage return\nLF = %x0A ; linefeed\n'}}const so=e=>{if("string"!=typeof e||1!==[...e].length)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},io=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),ao=e=>io(e)?e.slice(1,-1):e,co=e=>`"${e}"`,lo=e=>e;class po extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}}Object.defineProperty(po,"name",{value:"CookieError"});const uo=po;class ho extends uo{}Object.defineProperty(ho,"name",{value:"CookieParseError"});new oo;const fo=new ct,mo=new oo,yo=(e,{strict:t=!0}={})=>{try{const n=t?"cookie-name":"lenient-cookie-name";return fo.parse(mo,n,e).success}catch{return!1}},go=new ct,xo=new oo,vo=(e,{strict:t=!0,quoted:n=null}={})=>{try{const r=t?"cookie-value":"lenient-cookie-value",o=go.parse(xo,r,e);return"boolean"==typeof n?o.success&&n===io(e):o.success}catch{return!1}},bo=e=>buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer.from(e).toString("base64"),wo=(e,t=bo)=>{const n=String(e);if(vo(n))return n;const r=io(n),o=t(r?ao(n):n);return r?co(o):o},ko=e=>bo(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),Ao=e=>wo(e,ko),To=e=>{if(!yo(e))throw new TypeError(`Invalid cookie name: ${e}`)},So=e=>{if(!vo(e))throw new TypeError(`Invalid cookie value: ${e}`)},Fo=new ct,Oo=new oo,Co=(e,t)=>{try{return Fo.parse(Oo,e,t).success}catch{return!1}},Eo={strict:"Strict",lax:"Lax",none:"None"},Io={low:"Low",medium:"Medium",high:"High"},jo=({expires:e,maxAge:t,domain:n,path:r,secure:o,httpOnly:s,sameSite:i,partitioned:a,priority:c})=>{const l=[];return void 0!==e&&l.push((e=>{const t="[object Date]"!==Object.prototype.toString.call(e)||Number.isNaN(e.getTime())?"":e.toUTCString();if(!Co("sane-cookie-date",t))throw new TypeError(`Invalid Set-Cookie Expires attribute: ${String(e)}`);return`Expires=${t}`})(e)),void 0!==t&&l.push((e=>{if("number"!=typeof e||!Number.isSafeInteger(e))throw new TypeError(`Invalid Set-Cookie Max-Age attribute: ${String(e)}`);return`Max-Age=${e}`})(t)),void 0!==n&&l.push((e=>{const t=String(e),n=t.startsWith(".")?t.slice(1):t;if(!Co("domain-value",n))throw new TypeError(`Invalid Set-Cookie Domain attribute: ${t}`);return`Domain=${t}`})(n)),void 0!==r&&l.push((e=>{const t=String(e);if(!Co("path-value",t))throw new TypeError(`Invalid Set-Cookie Path attribute: ${t}`);return`Path=${t}`})(r)),o&&l.push("Secure"),s&&l.push("HttpOnly"),void 0!==i&&l.push((e=>{const t=Eo[String(e).toLowerCase()];if(void 0===t)throw new TypeError(`Invalid Set-Cookie SameSite attribute: ${String(e)}`);return`SameSite=${t}`})(i)),a&&l.push("Partitioned"),void 0!==c&&l.push((e=>{const t=Io[String(e).toLowerCase()];if(void 0===t)throw new TypeError(`Invalid Set-Cookie Priority attribute: ${String(e)}`);return`Priority=${t}`})(c)),l},Do={encoders:{name:lo,value:Ao},validators:{name:To,value:So}},$o=(e,t,n={})=>{const r={...Do,...n,encoders:{...Do.encoders,...n.encoders},validators:{...Do.validators,...n.validators}},o=r.encoders.name(e),s=r.encoders.value(t);r.validators.name(o),r.validators.value(s);return[`${o}=${s}`,...jo(r)].join("; ")},Lo=(e,{encoders:t,validators:n}={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,r])=>$o(e,r,{encoders:t,validators:n})).join("; ");new oo;const Po=new ct,Mo=new oo,Bo=e=>{const t=String(e);if(vo(t))return t;const n=io(t),r=n?ao(t):t;let o="";for(const e of r)o+=Po.parse(Mo,"cookie-octet",e).success?e:so(e);return n?co(o):o};new ct,new oo;const No=e=>{const t=String(e);if(!(e=>e.length%4==0&&/^[A-Za-z0-9+/]*={0,2}$/.test(e)&&!/=[^=]/.test(e))(t))throw new TypeError("Input must be a base64 encoded string.");const r=buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer.from(t,"base64");if(r.toString("base64")!==t)throw new TypeError("Input must be a canonically base64 encoded string.");return(e=>new TextDecoder("utf-8",{fatal:!0}).decode(e))(r)},Ro=e=>{const t=String(e);if(!(e=>e.length%4!=1&&/^[A-Za-z0-9_-]*$/.test(e))(t))throw new TypeError("Input must be a base64url encoded string.");return No((e=>{const t=e.replace(/-/g,"+").replace(/_/g,"/");return`${t}${"=".repeat((4-t.length%4)%4)}`})(t))},Uo=(e,t=No)=>{const n=String(e),r=io(n),o=t(r?ao(n):n);return r?co(o):o},Ho=e=>/[\u0000-\u0008\u000A-\u001F\u007F]/.test(e);qo=[e=>Uo(e,Ro),Uo,e=>{const t=String(e),n=io(t),r=n?ao(t):t;let o;try{o=decodeURIComponent(r)}catch(e){throw new TypeError(`Invalid percent-encoded cookie value: ${t}`,{cause:e})}return n?co(o):o}];var qo;const _o=e=>{if(!yo(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const Go=e=>Bo(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),Wo=(e,t={})=>Lo(e,ro({encoders:{name:lo,value:Go},validators:{name:_o,value:So}},t));function zo({req:e,value:t,parameter:n,baseURL:r}){const{name:o,style:s,explode:i,content:a}=n;if(void 0===t)return;const c=e.url.replace(r,"");let l;if(a){const e=Object.keys(a)[0];l=Qr(c,{[o]:t},{encoder:t=>It(eo(t,e))})}else l=Qr(c,{[o]:t},{encoder:e=>jt({key:n.name,value:e,style:s||"simple",explode:i??!1,escape:"reserved"})});e.url=r+l}function Yo({req:e,value:t,parameter:n}){if(e.query=e.query||{},void 0!==t&&n.content){const r=eo(t,Object.keys(n.content)[0]);if(r)e.query[n.name]=r;else if(n.allowEmptyValue){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}return}if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:r,explode:o,allowReserved:s}=n;e.query[n.name]={value:t,serializationOption:{style:r,explode:o,allowReserved:s}}}else if(n.allowEmptyValue&&void 0!==t){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const Vo=["accept","authorization","content-type"];function Ko({req:e,parameter:t,value:n}){if(e.headers=e.headers||{},!(Vo.indexOf(t.name.toLowerCase())>-1)){if(void 0!==n&&t.content){const r=Object.keys(t.content)[0];return void(e.headers[t.name]=eo(n,r))}void 0===n||Array.isArray(n)&&0===n.length||(e.headers[t.name]=jt({key:t.name,value:n,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}}function Xo({req:e,parameter:t,value:n}){const{name:r}=t;if(e.headers=e.headers||{},void 0!==n&&t.content){const o=eo(n,Object.keys(t.content)[0]);return void(e.headers.Cookie=Wo({[r]:o}))}if(void 0!==n&&(!Array.isArray(n)||0!==n.length)){const o=jt({key:t.name,value:n,escape:!1,style:t.style||"form",explode:t.explode??!1}),s=Array.isArray(n)&&t.explode?`${r}=${o}`:o;e.headers.Cookie=Wo({[r]:s})}}const Jo=e=>{let t;return t=e instanceof buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer?e:buffer__WEBPACK_IMPORTED_MODULE_2__.Buffer.from(e.toString(),"binary"),t.toString("base64")};function Qo(e,t){const{operation:n,requestBody:r,securities:o,spec:s,attachContentTypeForEmptyPayload:i}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:n={},spec:r}){const o={...e},{authorized:s={}}=t,i=n.security||r.security||[],a=s&&!!Object.keys(s).length,c=r?.components?.securitySchemes||{};if(o.headers=o.headers||{},o.query=o.query||{},!Object.keys(t).length||!a||!i||Array.isArray(n.security)&&!n.security.length)return e;return i.forEach(e=>{Object.keys(e).forEach(e=>{const t=s[e],n=c[e];if(!t)return;const r=t.value||t,{type:i}=n;if(t)if("apiKey"===i)"query"===n.in&&(o.query[n.name]=r),"header"===n.in&&(o.headers[n.name]=r),"cookie"===n.in&&(o.cookies[n.name]=r);else if("http"===i){if(/^basic$/i.test(n.scheme)){const e=r.username||"",t=r.password||"",n=Jo(`${e}:${t}`);o.headers.Authorization=`Basic ${n}`}/^bearer$/i.test(n.scheme)&&(o.headers.Authorization=`Bearer ${r}`)}else if("oauth2"===i||"openIdConnect"===i){const e=t.token||{},r=e[n["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),o.headers.Authorization=`${s} ${r}`}})}),o}({request:t,securities:o,operation:n,spec:s});const c=n.requestBody||{},l=Object.keys(c.content||{}),p=a&&l.indexOf(a)>-1;if(r||i){if(a&&p)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&p&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&n.responses){const e=Object.entries(n.responses).filter(([e,t])=>{const n=parseInt(e,10);return n>=200&&n<300&&Ze(t.content)}).reduce((e,[,t])=>e.concat(Object.keys(t.content)),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(r)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof r){const e=c.content[a]?.encoding??{};t.form={},Object.keys(r).forEach(n=>{let o;try{o=JSON.parse(r[n])}catch{o=r[n]}t.form[n]={value:o,encoding:e[n]||{}}})}else if("string"==typeof r){const e=c.content[a]?.encoding??{};try{t.form={};const n=JSON.parse(r);Object.entries(n).forEach(([n,r])=>{t.form[n]={value:r,encoding:e[n]||{}}})}catch{t.form=r}}else t.form=r;else t.body=r}else t.body=r;return t}function Zo(e,t){const{spec:n,operation:r,securities:o,requestContentType:s,responseContentType:i,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:n={},spec:r}){const o={...e},{authorized:s={},specSecurity:i=[]}=t,a=n.security||i,c=s&&!!Object.keys(s).length,l=r.securityDefinitions;if(o.headers=o.headers||{},o.query=o.query||{},!Object.keys(t).length||!c||!a||Array.isArray(n.security)&&!n.security.length)return e;return a.forEach(e=>{Object.keys(e).forEach(e=>{const t=s[e];if(!t)return;const{token:n}=t,r=t.value||t,i=l[e],{type:a}=i,c=i["x-tokenName"]||"access_token",p=n&&n[c];let u=n&&n.token_type;if(t)if("apiKey"===a){const e="query"===i.in?"query":"headers";o[e]=o[e]||{},o[e][i.name]=r}else if("basic"===a)if(r.header)o.headers.authorization=r.header;else{const e=r.username||"",t=r.password||"";r.base64=Jo(`${e}:${t}`),o.headers.authorization=`Basic ${r.base64}`}else"oauth2"===a&&p&&(u=u&&"bearer"!==u.toLowerCase()?u:"Bearer",o.headers.authorization=`${u} ${p}`)})}),o}({request:t,securities:o,operation:r,spec:n}),t.body||t.form||a)s?t.headers["Content-Type"]=s:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:r.parameters&&r.parameters.filter(e=>"file"===e.type).length?t.headers["Content-Type"]="multipart/form-data":r.parameters&&r.parameters.filter(e=>"formData"===e.in).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){const e=r.parameters&&r.parameters.filter(e=>"body"===e.in).length>0,n=r.parameters&&r.parameters.filter(e=>"formData"===e.in).length>0;(e||n)&&(t.headers["Content-Type"]=s)}return!i&&Array.isArray(r.produces)&&r.produces.length>0&&(t.headers.accept=r.produces.join(", ")),t}const es=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},ts=e=>(e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}})(e)||(e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}})(e)||es(e);function ns(e,t){return function(e,t,n){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:r}=e,o=es(e);for(const s in r){for(const o in r[s]){if("PARAMETERS"===o.toUpperCase()||"additionalOperations"===o)continue;const i=r[s][o];if(!i||"object"!=typeof i)continue;const a={spec:e,pathName:s,method:o.toUpperCase(),operation:i},c=t(a);if(n&&c)return a}const{additionalOperations:i}=r[s];if(o&&i&&"object"==typeof i)for(const r of Object.keys(i)){const o=i[r];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:s,method:r,operation:o},c=t(a);if(n&&c)return a}}}(e,t,!0)||null}const rs=e=>e.replace(/\W/gi,"_"),os=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function ss(e,t,n="",{v2OperationIdCompatibilityMode:r}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?rs(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:n}={}){if(n){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${os.has(t.toLowerCase())?t.toLowerCase():t}${rs(e)}`}(t,n,{v2OperationIdCompatibilityMode:r})}function is(e,t){return`${t.toLowerCase()}-${e}`}const{isHttpUrl:as}=_speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_1__;const cs=e=>Array.isArray(e)?e:[],ls=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,ps=(e,{recurse:t=!0,depth:n=1}={})=>{var r,o;if(Ze(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(c()(r=e.type).call(r,"object")||c()(o=e.type).call(o,"array")))return e;if(!(n>3e3)&&t){const r=Array.isArray(e.oneOf)?e.oneOf.find(e=>ps(e,{recurse:t,depth:n+1})):void 0;if(r)return r;const o=Array.isArray(e.anyOf)?e.anyOf.find(e=>ps(e,{recurse:t,depth:n+1})):void 0;if(o)return o}}},us=({value:e,silentFail:t=!1})=>{try{const n=JSON.parse(e);if(Ze(n)||Array.isArray(n))return n;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},ds=e=>{try{return new URL(e)}catch{const t=new URL(e,"https://swagger.io"),n=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:n,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class hs extends _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]{}function fs(e){const{spec:n,operationId:r,responseContentType:o,scheme:s,requestInterceptor:a,responseInterceptor:c,contextUrl:l,userFetch:p,server:u,serverVariables:d,http:h,signal:f,serverVariableEncoder:m}=e;let{parameters:y,parameterBuilders:x,baseURL:b}=e;const w=ts(n);x||(x=w?i:Zr);let k={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(k.signal=f),a&&(k.requestInterceptor=a),c&&(k.responseInterceptor=c),p&&(k.userFetch=p);const A=function(e,t){return e&&e.paths?ns(e,({pathName:e,method:n,operation:r})=>{if(!r||"object"!=typeof r)return!1;const o=r.operationId;return[ss(r,e,n),is(e,n),o].some(e=>e&&e===t)}):null}(n,r);if(!A)throw new hs(`Operation ${r} not found`);const{operation:T={},method:S,pathName:F}=A;if(!(e=>"string"==typeof e&&ls.test(e))(S))throw new Error("Invalid HTTP method");if(b=b??function(e){const n=ts(e.spec);return n?function({spec:e,pathName:n,method:r,operation:o,server:s,contextUrl:i,serverVariables:a={},serverVariableEncoder:c}){let l,p=[],u="";const d=o?.servers??e?.paths?.[n]?.[(r||"").toLowerCase()]?.servers,h=e?.paths?.[n]?.servers,f=e?.servers;p=ys(d)?d:ys(h)?h:ys(f)?f:[Tt],s&&(l=p.find(e=>e.url===s),l&&(u=s));u||([l]=p,u=l.url);if(bt(u,{strict:!0})){const e=Object.entries({...l.variables}).reduce((e,[t,n])=>(e[t]=n.default,e),{});u=At(u,{...e,...a},{encoder:"function"==typeof c?c:v})}return function(e="",n=""){const r=ds(e&&n?_speclynx_apidom_reference_configuration_empty__WEBPACK_IMPORTED_MODULE_1__.resolve(n,e):e),o=ds(n),s=ms(r.protocol)||ms(o.protocol),i=r.host||o.host,a=r.pathname;let c;c=s&&i?`${s}://${i+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(u,i)}(e):function({spec:e,scheme:t,contextUrl:n=""}){const r=ds(n),o=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||o||ms(r.protocol)||"http",i=e.host||r.host||"",a=e.basePath||"";let c;c=s&&i?`${s}://${i+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}({spec:n,scheme:s,contextUrl:l,server:u,serverVariables:d,pathName:F,method:S,operation:T,serverVariableEncoder:m}),k.url+=b,!r)return delete k.cookies,k;k.url+=F,k.method=S,y=y||{};const O=n.paths[F]||{};o&&(k.headers.accept=o);const C=(e=>{const t={};e.forEach(e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});const n=[];return Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{n.push(t[e][r])})}),n})([].concat(cs(T.parameters)).concat(cs(O.parameters)));C.forEach(e=>{const t=x[e.in];let r;if("body"===e.in&&e.schema&&e.schema.properties&&(r=y),r=e&&e.name&&y[e.name],void 0===r?r=e&&e.name&&y[`${e.in}.${e.name}`]:((e,t)=>t.filter(t=>t.name===e))(e.name,C).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==r){if(void 0!==e.default&&void 0===r&&(r=e.default),void 0===r&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);w&&"string"==typeof r&&(g("type",e.schema)&&"string"==typeof e.schema.type&&ps(e.schema,{recurse:!1})?r=us({value:r,silentFail:!1}):(g("type",e.schema)&&Array.isArray(e.schema.type)&&ps(e.schema,{recurse:!1})||!g("type",e.schema)&&ps(e.schema,{recurse:!0}))&&(r=us({value:r,silentFail:!0}))),t&&t({req:k,parameter:e,value:r,operation:T,spec:n,baseURL:b})}});const E={...e,operation:T};if(k=w?Qo(E,k):Zo(E,k),k.cookies&&Object.keys(k.cookies).length>0){const e=Wo(k.cookies);at(k.headers.Cookie)?k.headers.Cookie+=`; ${e}`:k.headers.Cookie=e}return k.cookies&&delete k.cookies,Nt(k)}const ms=e=>e?e.replace(/\W/g,""):null;const ys=e=>Array.isArray(e)&&e.length>0;
115221
117464
 
115222
117465
  /***/ }
115223
117466