@usearazzo/runner 1.0.1-alpha.34 → 1.0.1-alpha.36

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +6 -1
  3. package/dist/arazzo-runner.browser.js +2212 -1116
  4. package/dist/arazzo-runner.browser.min.js +1 -1
  5. package/package.json +78 -25
  6. package/src/errors/ExecutionError.cjs +2 -0
  7. package/src/errors/ExecutionError.mjs +2 -0
  8. package/src/executor/OpenAPIOperationExecutor.cjs +58 -47
  9. package/src/executor/OpenAPIOperationExecutor.mjs +58 -47
  10. package/src/executor/WorkflowExecutor.cjs +302 -160
  11. package/src/executor/WorkflowExecutor.mjs +302 -160
  12. package/src/index.cjs +14 -0
  13. package/src/index.mjs +2 -0
  14. package/src/observability/EventChannel.cjs +30 -20
  15. package/src/observability/EventChannel.mjs +30 -23
  16. package/src/observability/Redactor.cjs +7 -5
  17. package/src/observability/Redactor.mjs +7 -5
  18. package/src/observability/combineObservers.cjs +18 -0
  19. package/src/observability/combineObservers.mjs +12 -0
  20. package/src/observability/instrument.cjs +159 -0
  21. package/src/observability/instrument.mjs +144 -0
  22. package/src/observability/logging/LoggingObserver.cjs +177 -0
  23. package/src/observability/logging/LoggingObserver.mjs +172 -0
  24. package/src/observability/logging/index.cjs +13 -0
  25. package/src/observability/logging/index.mjs +1 -0
  26. package/src/observability/opentelemetry/ArazzoRunnerInstrumentation.cjs +321 -0
  27. package/src/observability/opentelemetry/ArazzoRunnerInstrumentation.mjs +313 -0
  28. package/src/observability/opentelemetry/index.cjs +13 -0
  29. package/src/observability/opentelemetry/index.mjs +1 -0
  30. package/src/observability/stream/EventStream.cjs +112 -0
  31. package/src/observability/stream/EventStream.mjs +107 -0
  32. package/src/observability/stream/index.cjs +13 -0
  33. package/src/observability/stream/index.mjs +1 -0
  34. package/src/registry/DocumentRegistry.cjs +14 -9
  35. package/src/registry/DocumentRegistry.mjs +14 -9
  36. package/src/vendor/swagger-client.cjs +1 -1
  37. package/src/vendor/swagger-client.mjs +1 -1
  38. package/src/version.cjs +9 -0
  39. package/src/version.mjs +3 -0
  40. package/types/observability/logging/LoggingObserver.d.cts +82 -0
  41. package/types/observability/logging/LoggingObserver.d.ts +82 -0
  42. package/types/observability/logging/index.d.cts +2 -0
  43. package/types/observability/logging/index.d.ts +2 -0
  44. package/types/observability/opentelemetry/ArazzoRunnerInstrumentation.d.cts +84 -0
  45. package/types/observability/opentelemetry/ArazzoRunnerInstrumentation.d.ts +84 -0
  46. package/types/observability/opentelemetry/index.d.cts +2 -0
  47. package/types/observability/opentelemetry/index.d.ts +2 -0
  48. package/types/observability/stream/EventStream.d.cts +68 -0
  49. package/types/observability/stream/EventStream.d.ts +68 -0
  50. package/types/observability/stream/index.d.cts +2 -0
  51. package/types/observability/stream/index.d.ts +2 -0
  52. package/types/runner.d.cts +3891 -0
  53. package/types/runner.d.ts +137 -40
@@ -1 +1 @@
1
- (()=>{var e={8341(e,t,n){"use strict";n(7603);var r=n(2856);e.exports=r("Array","includes")},5161(e,t,n){"use strict";var r=n(4317),s=n(8341),o=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?s:"string"==typeof e||e===a||r(a,e)&&t===a.includes?o:t}},1019(e,t,n){"use strict";n(3855);var r=n(2856);e.exports=r("String","includes")},814(e,t,n){"use strict";var r=n(2769),s=n(459),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(s(e)+" is not a function")}},8137(e){"use strict";e.exports=function(){}},7235(e,t,n){"use strict";var r=n(262),s=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(s(e)+" is not an object")}},1005(e,t,n){"use strict";var r=n(3273),s=n(4574),o=n(8130),i=function(e){return function(t,n,i){var a=r(t),c=o(a);if(0===c)return!e&&-1;var l,u=s(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){"use strict";var r=n(6100),s=r({}.toString),o=r("".slice);e.exports=function(e){return o(s(e),8,-1)}},8407(e,t,n){"use strict";var r=n(4904),s=n(2769),o=n(9932),i=n(8655)("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());e.exports=r?o: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?o(t):"Object"===(r=o(t))&&s(t.callee)?"Arguments":r}},4240(e,t,n){"use strict";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){"use strict";var r=n(5024),s=n(9989),o=n(480);e.exports=r?function(e,t,n){return s.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},480(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7525(e,t,n){"use strict";var r=n(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024(e,t,n){"use strict";var r=n(1203);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9619(e,t,n){"use strict";var r=n(8900),s=n(262),o=r.document,i=s(o)&&s(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},3531(e,t,n){"use strict";var r=n(8900).navigator,s=r&&r.userAgent;e.exports=s?String(s):""},5547(e,t,n){"use strict";var r,s,o=n(8900),i=n(3531),a=o.process,c=o.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},9098(e,t,n){"use strict";var r=n(8900),s=n(7013),o=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,o){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,o)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,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]||p(l,w,{})[w],O=F.prototype;for(m in t)s=!(n=c(k?m:w+(A?".":"#")+m,e.forced))&&S&&d(S,m),g=F[m],s&&(x=e.dontCallGetSet?(b=a(S,m))&&b.value:S[m]),y=s&&x?x:t[m],(n||T||typeof g!=typeof y)&&(v=e.bind&&s?u(y,r):e.wrap&&s?h(y):T&&i(y)?o(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(v,"sham",!0),p(F,m,v),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){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013(e,t,n){"use strict";var r=n(1780),s=Function.prototype,o=s.apply,i=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(o):function(){return i.apply(o,arguments)})},4572(e,t,n){"use strict";var r=n(9344),s=n(814),o=n(1780),i=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},1780(e,t,n){"use strict";var r=n(1203);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},4713(e,t,n){"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},9344(e,t,n){"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},6100(e,t,n){"use strict";var r=n(1780),s=Function.prototype,o=s.call,i=r&&s.bind.bind(o,o);e.exports=r?i:function(e){return function(){return o.apply(e,arguments)}}},2856(e,t,n){"use strict";var r=n(8900),s=n(8099);e.exports=function(e,t){var n=s[e+"Prototype"],o=n&&n[t];if(o)return o;var i=r[e],a=i&&i.prototype;return a&&a[t]}},1003(e,t,n){"use strict";var r=n(8099),s=n(8900),o=n(2769),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},4674(e,t,n){"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},8900(e){"use strict";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){"use strict";var r=n(6100),s=n(2137),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},9665(e,t,n){"use strict";var r=n(5024),s=n(1203),o=n(9619);e.exports=!r&&!s(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1395(e,t,n){"use strict";var r=n(6100),s=n(1203),o=n(9932),i=Object,a=r("".split);e.exports=s(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):i(e)}:i},2769(e){"use strict";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){"use strict";var r=n(1203),s=n(2769),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n===u||n!==l&&(s(t)?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},3057(e){"use strict";e.exports=function(e){return null==e}},262(e,t,n){"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},4871(e){"use strict";e.exports=!0},7752(e,t,n){"use strict";var r=n(262),s=n(9932),o=n(8655)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===s(e))}},6281(e,t,n){"use strict";var r=n(1003),s=n(2769),o=n(4317),i=n(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&o(t.prototype,a(e))}},8130(e,t,n){"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777(e){"use strict";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){"use strict";var r=n(7752),s=TypeError;e.exports=function(e){if(r(e))throw new s("The method doesn't accept regular expressions");return e}},9989(e,t,n){"use strict";var r=n(5024),s=n(9665),o=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?o?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),s)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){"use strict";var r=n(5024),s=n(4713),o=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(!s(o.f,e,t),e[t])}},4317(e,t,n){"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},7161(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9258(e,t,n){"use strict";var r=n(4713),s=n(2769),o=n(262),i=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!o(a=r(n,e)))return a;if(s(n=e.valueOf)&&!o(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!o(a=r(n,e)))return a;throw new i("Can't convert object to primitive value")}},8099(e){"use strict";e.exports={}},5426(e,t,n){"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},3753(e,t,n){"use strict";var r=n(4871),s=n(8900),o=n(7525),i="__core-js_shared__",a=e.exports=s[i]||o(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){"use strict";var r=n(3753),s=Object.create||Object;e.exports=function(e,t){return r[e]||(r[e]=t||s(null))}},4603(e,t,n){"use strict";var r=n(5547),s=n(1203),o=n(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4574(e,t,n){"use strict";var r=n(9903),s=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):o(n,t)}},3273(e,t,n){"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},9903(e,t,n){"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146(e,t,n){"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},2137(e,t,n){"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},493(e,t,n){"use strict";var r=n(4713),s=n(262),o=n(6281),i=n(4674),a=n(9258),c=n(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var n,c=i(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||o(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){"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},4904(e,t,n){"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139(e,t,n){"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268(e,t,n){"use strict";var r=n(6100),s=0,o=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++s+o,36)}},7460(e,t,n){"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330(e,t,n){"use strict";var r=n(5024),s=n(1203);e.exports=r&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8655(e,t,n){"use strict";var r=n(8900),s=n(8141),o=n(701),i=n(1268),a=n(4603),c=n(7460),l=r.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||i;e.exports=function(e){return o(u,e)||(u[e]=a&&o(l,e)?l[e]:p("Symbol."+e)),u[e]}},7603(e,t,n){"use strict";var r=n(9098),s=n(1005).m,o=n(1203),i=n(8137),a=o(function(){return!Array(1).includes()}),c=o(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:a||c},{includes:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},3855(e,t,n){"use strict";var r=n(9098),s=n(6100),o=n(5947),i=n(5426),a=n(1139),c=n(4240),l=s("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(a(i(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},1726(e,t,n){"use strict";var r=n(5161);e.exports=r},5965(e,t,n){e.exports=n(1726)}};const t={};function n(r){const s=t[r];if(void 0!==s)return s.exports;const o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.hasOwn(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let r={};(()=>{"use strict";n.r(r),n.d(r,{buildRequest:()=>xo,deserializeResponse:()=>kr,idFromPathMethodLegacy:()=>io});var e={};n.r(e),n.d(e,{cookie:()=>Xs,header:()=>Ks,path:()=>zs,query:()=>Ys});var t=n(5965),s=n.n(t);function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}function a(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t){return e(n,t)});default:return o(n)&&o(r)?t:o(n)?i(function(t){return e(t,r)}):o(r)?i(function(t){return e(n,t)}):e(n,r)}}}function c(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const l=i(function(e){return null==e});var u=a(function(e,t){if(0===e.length||l(t))return!1;for(var n=t,r=0;r<e.length;){if(l(n)||!c(e[r],n))return!1;n=n[e[r]],r+=1}return!0});const p=u;var d=a(function(e,t){return p([e],t)});const h=d;function f(e){return e}const m=i(f);function y(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,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,o){return t.apply(this,arguments)};case 6:return function(e,n,r,s,o,i){return t.apply(this,arguments)};case 7:return function(e,n,r,s,o,i,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,o,i,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,o,i,a,c,l){return t.apply(this,arguments)};case 10:return function(e,n,r,s,o,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 g(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function x(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:a(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(r)?t:o(n)?a(function(t,n){return e(t,r,n)}):o(r)?a(function(t,r){return e(n,t,r)}):i(function(t){return e(n,r,t)});default:return o(n)&&o(r)&&o(s)?t:o(n)&&o(r)?a(function(t,n){return e(t,n,s)}):o(n)&&o(s)?a(function(t,n){return e(t,r,n)}):o(r)&&o(s)?a(function(t,r){return e(n,t,r)}):o(n)?i(function(t){return e(t,r,s)}):o(r)?i(function(t){return e(n,t,s)}):o(s)?i(function(t){return e(n,r,t)}):e(n,r,s)}}}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function b(e){return"[object String]"===Object.prototype.toString.call(e)}const w=i(function(e){return!!v(e)||!!e&&("object"==typeof e&&(!b(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var k="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function A(e,t,n){return function(r,s,o){if(w(o))return e(r,s,o);if(null==o)return s;if("function"==typeof o["fantasy-land/reduce"])return t(r,s,o,"fantasy-land/reduce");if(null!=o[k])return n(r,s,o[k]());if("function"==typeof o.next)return n(r,s,o);if("function"==typeof o.reduce)return t(r,s,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function T(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const S=a(function(e,t){return y(e.length,function(){return e.apply(t,arguments)})});function F(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 O(e,t,n,r){return e["@@transducer/result"](n[r](S(e["@@transducer/step"],e),t))}const C=A(T,O,F);var E=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 I=x(function(e,t,n){return C("function"==typeof e?new E(e):e,t,n)});const j=I;function D(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var $=x(D("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));const L=i(D("tail",$(1,1/0)));function P(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return y(arguments[0].length,j(g,arguments[0],L(arguments)))}const M=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const B="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var N=function(e,t){switch(arguments.length){case 0:return N;case 1:return function t(n){return 0===arguments.length?t:B(e,n)};default:return B(e,t)}};const R=N;function U(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function H(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}var q=Object.prototype.toString;const _=function(){return"[object Arguments]"===q.call(arguments)?function(e){return"[object Arguments]"===q.call(e)}:function(e){return c("callee",e)}}();var G=!{toString:null}.propertyIsEnumerable("toString"),W=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],z=function(){return arguments.propertyIsEnumerable("length")}(),Y=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},V="function"!=typeof Object.keys||z?i(function(e){if(Object(e)!==e)return[];var t,n,r=[],s=z&&_(e);for(t in e)!c(t,e)||s&&"length"===t||(r[r.length]=t);if(G)for(n=W.length-1;n>=0;)c(t=W[n],e)&&!Y(r,t)&&(r[r.length]=t),n-=1;return r}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const K=V;function X(e,t,n,r){var s=U(e);function o(e,t){return J(e,t,n.slice(),r.slice())}return!H(function(e,t){return!H(o,t,e)},U(t),s)}function J(e,t,n,r){if(B(e,t))return!0;var s=M(e);if(s!==M(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(s){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||!B(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!B(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 o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(s){case"Map":return e.size===t.size&&X(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&X(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=K(e);if(i.length!==K(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=i.length-1;o>=0;){var u=i[o];if(!c(u,t)||!J(t[u],e[u],a,l))return!1;o-=1}return!0}const Q=a(function(e,t){return J(e,t,[],[])});function Z(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)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(Q(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function ee(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}function te(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 ne=function(e){return(e<10?"0":"")+e};const re="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ne(e.getUTCMonth()+1)+"-"+ne(e.getUTCDate())+"T"+ne(e.getUTCHours())+":"+ne(e.getUTCMinutes())+":"+ne(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function se(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}function oe(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=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 ie(e){return"[object Object]"===Object.prototype.toString.call(e)}const ae=function(){return this.xf["@@transducer/init"]()},ce=function(e){return this.xf["@@transducer/result"](e)};var le=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ae,e.prototype["@@transducer/result"]=ce,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function ue(e){return function(t){return new le(e,t)}}var pe=a(oe(["fantasy-land/filter","filter"],ue,function(e,t){return ie(t)?se(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},K(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)}));const de=pe;const he=a(function(e,t){return de((n=e,function(){return!n.apply(this,arguments)}),t);var n});function fe(e,t){var n=function(n){var r=t.concat([e]);return Z(n,r)?"<Circular>":fe(n,r)},r=function(e,t){return ee(function(t){return te(t)+": "+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ee(n,e).join(", ")+"))";case"[object Array]":return"["+ee(n,e).concat(r(e,he(function(e){return/^\d+$/.test(e)},K(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):te(re(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())+")":te(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,K(e)).join(", ")+"}"}}const me=i(function(e){return fe(e,[])}),ye=Number.isInteger||function(e){return(e|0)===e};function ge(e,t){var n=e<0?t.length+e:e;return b(t)?t.charAt(n):t[n]}const xe=x(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 s=e[r];n=ye(s)?ge(s,n):n[s]}return n}(t,n))});function ve(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const be=a(function(e,t){return e&&t});function we(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function ke(e,t,n,r){return n[r](e,t)}const Ae=A(se,ke,we);var Te=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ae,e.prototype["@@transducer/result"]=ce,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Se=function(e){return function(t){return new Te(e,t)}};function Fe(e,t,n){return function(){for(var r=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var l;a<t.length&&(!o(t[a])||s>=arguments.length)?l=t[a]:(l=arguments[s],s+=1),r[a]=l,o(l)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):y(Math.max(0,i),Fe(e,r,n))}}const Oe=a(function(e,t){return 1===e?i(t):y(e,Fe(e,[],t))});const Ce=a(oe(["fantasy-land/map","map"],Se,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Oe(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return se(function(n,r){return n[r]=e(t[r]),n},{},K(t));default:return ee(e,t)}}));const Ee=a(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))}:Ae(function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<s;)o[o.length]=t[n],n+=1;return o}(e,Ce(n,t))},[],e)});const Ie=a(function(e,t){var n=Oe(e,t);return Oe(e,function(){return se(Ee,Ce(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});const je=i(function(e){return Ie(e.length,e)});const De=a(function(e,t){return ve(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:je(be)(e,t)});const $e=Q(null);const Le=je(i(function(e){return!e}));const Pe=Le($e);function Me(e){return Me="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},Me(e)}const Be=function(e){return"object"===Me(e)};const Ne=Oe(1,De(Pe,Be));const Re=a(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 s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var o=me(e),i=n(o,me(t));return void 0!==i&&i===o?e:t});const Ue=a(function(e,t){if(null!=t)return ye(e)?ge(e,t):t[e]});var He=a(function(e,t){return Ce(Ue(e),t)});const qe=He;const _e=i(function(e){return Oe(j(Re,0,qe("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 Ge=Oe(1,P(M,R("GeneratorFunction")));const We=Oe(1,P(M,R("AsyncFunction")));const ze=_e([P(M,R("Function")),Ge,We]);var Ye=P(M,R("Object")),Ve=xe(De(ze,P(me,Q(me(Object)))),["constructor"]);const Ke=Oe(1,function(e){if(!Ne(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!$e(t)||Ve(t)});const Xe=i(function(e){return Oe(j(Re,0,qe("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 Je=i(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():v(e)?[]:b(e)?"":ie(e)?{}:_(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 Qe=Je;const Ze=i(function(e){return null!=e&&Q(e,Qe(e))});const et=i(function(e){return!Ze(e)});const tt=Oe(1,P(M,R("String")));const nt=a(function(e,t){return e||t});const rt=Xe([tt,Le(Oe(1,De(Pe,a(function(e,t){return ve(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:je(nt)(e,t)})(Be,ze)))),et]),st=function(){const e=lt,t=ct,n=this,r="parser.js: Parser(): ";n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let s,o,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,b,w)=>{const k=`${r}parse(): `;p=0,d=0,h=0,f=0,m=0,s=void 0,o=void 0,i=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),s=g.rules,o=g.udts;const A=x.toLowerCase();let T;for(const e in s)if(s.hasOwnProperty(e)&&A===s[e].lower){T=s[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<s.length;t+=1)c[t]=void 0;for(t=0;t<o.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(t=0;t<o.length;t+=1)a.push(o[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<s.length?c[t]=i:l[t-s.length]=i}})(),n.trace&&n.trace.init(s,o,a),n.stats&&n.stats.init(s,o),n.ast&&n.ast.init(s,o,a),u=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,s,o)=>{if(n.phraseLength>s){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(n.state){case e.ACTIVE:if(!o)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=o[m.index];y.UdtIndex=g.index,p||(f=n.ast&&n.ast.udtDefined(m.index),f&&(h=s.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,s)=>{if(n.phraseLength>s){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${s}`,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))},v=(t,o)=>{const l=`${r}opExecute(): `,b=i[t];switch(f+=1,d>h&&(h=d),d+=1,y.refresh(),n.trace&&n.trace.down(b,o),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,o);break;case e.CAT:((t,r)=>{let s,o,a,c;const l=i[t];n.ast&&(o=n.ast.getLength()),s=!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){s=!1;break}a+=y.phraseLength,c+=y.phraseLength}s?(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,o);break;case e.REP:((t,r)=>{let s,o,c,l;const u=i[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(o=r,c=0,l=0,n.ast&&(s=n.ast.getLength());!(o>=a.length)&&(v(t+1,o),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,o+=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(s))})(t,o);break;case e.RNM:((t,r)=>{let o,l,d;const h=i[t],f=s[h.index],m=c[f.index];if(p||(l=n.ast&&n.ast.ruleDefined(h.index),l&&(o=n.ast.getLength(),n.ast.down(h.index,s[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,v(0,r),i=d,m(y,a,r,u),g(f,y,t,!1))}else d=i,i=f.opcodes,v(0,r,y),i=d;p||l&&(y.state===e.NOMATCH?n.ast.setLength(o):n.ast.up(h.index,f.name,r,y.phraseLength))})(t,o);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,o);break;case e.TBS:((t,n)=>{const r=i[t],s=r.string.length;if(y.state=e.NOMATCH,n+s<=a.length){for(let e=0;e<s;e+=1)if(a[n+e]!==r.string[e])return;y.state=e.MATCH,y.phraseLength=s}})(t,o);break;case e.TLS:((t,n)=>{let r;const s=i[t];y.state=e.NOMATCH;const o=s.string.length;if(0!==o){if(n+o<=a.length){for(let e=0;e<o;e+=1)if(r=a[n+e],r>=65&&r<=90&&(r+=32),r!==s.string[e])return;y.state=e.MATCH,y.phraseLength=o}}else y.state=e.EMPTY})(t,o);break;case e.UDT:x(t,o);break;case e.AND:((t,n)=>{switch(p+=1,v(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,o);break;case e.NOT:((t,n)=>{switch(p+=1,v(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,o);break;default:throw new Error(`${l}unrecognized operator`)}p||o+y.phraseLength>m&&(m=o+y.phraseLength),n.stats&&n.stats.collect(b,y),n.trace&&n.trace.up(b,y.state,o,y.phraseLength),d-=1}},ot=function(){const e=lt,t=ct,n=this;let r,s,o,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,s=t,o=u;const d=[];for(p=0;p<r.length;p+=1)d.push(r[p].lower);for(p=0;p<s.length;p+=1)d.push(s[p].lower);for(i=r.length+s.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,s)=>{const o=l.length,i=c.pop();return l.push({name:n,thisIndex:o,thatIndex:i,state:e.SEM_POST,callbackIndex:t,phraseIndex:r,phraseLength:s,stack:c.length}),l[i].thatIndex=o,l[i].phraseIndex=r,l[i].phraseLength=s,o},n.translate=t=>{let n,r;for(let s=0;s<l.length;s+=1)r=l[s],n=a[r.callbackIndex],n&&(r.state===e.SEM_PRE?n(e.SEM_PRE,o,r.phraseIndex,r.phraseLength,t):n&&n(e.SEM_POST,o,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="${o.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+=u(r+2),n+=t.charsToXmlString(o),n+="\n",l.forEach(s=>{s.state===e.SEM_PRE?(r+=1,n+=u(r),n+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,n+=u(r+2),n+=t.charsToXmlString(o,s.phraseIndex,s.phraseLength),n+="\n"):(n+=u(r),n+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,r-=1)}),n+="</root>\n",n}},it=function(){const e=lt,t=ct,n="parser.js: Trace(): ";let r,s,o,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)=>{s=e,o=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(${s[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(${o[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 s=l(a),o=Math.min(100,r.length-n);let c=t.charsToString(r,n,o);o<r.length-n&&(c+="..."),c=`${s}|-|[${u(e)}]${c}\n`,i+=c,a+=1},c.up=(s,o,c,p)=>{const d=`${n}trace.up: `;a-=1;const h=l(a);let f,m,y;switch(o){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(s)}]${m}\n`,i+=m},c.displayTrace=()=>i},at=function(){const e=lt;let t,n,r;const s=[],o=[],i=[];this.init=(e,r)=>{t=e,n=r,d()},this.collect=(t,n)=>{h(r,n.state,n.phraseLength),h(s[t.type],n.state,n.phraseLength),t.type===e.RNM&&h(o[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,s,o)=>{n.match+=t,n.empty+=r,n.nomatch+=s,n.total+=o;return`${e} | ${a(t)} | ${a(r)} | ${a(s)} | ${a(o)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=r(" ALT",s[e.ALT].match,s[e.ALT].empty,s[e.ALT].nomatch,s[e.ALT].total),t+=r(" CAT",s[e.CAT].match,s[e.CAT].empty,s[e.CAT].nomatch,s[e.CAT].total),t+=r(" REP",s[e.REP].match,s[e.REP].empty,s[e.REP].nomatch,s[e.REP].total),t+=r(" RNM",s[e.RNM].match,s[e.RNM].empty,s[e.RNM].nomatch,s[e.RNM].total),t+=r(" TRG",s[e.TRG].match,s[e.TRG].empty,s[e.TRG].nomatch,s[e.TRG].total),t+=r(" TBS",s[e.TBS].match,s[e.TBS].empty,s[e.TBS].nomatch,s[e.TBS].total),t+=r(" TLS",s[e.TLS].match,s[e.TLS].empty,s[e.TLS].nomatch,s[e.TLS].total),t+=r(" UDT",s[e.UDT].match,s[e.UDT].empty,s[e.UDT].nomatch,s[e.UDT].total),t+=r(" AND",s[e.AND].match,s[e.AND].empty,s[e.AND].nomatch,s[e.AND].total),t+=r(" NOT",s[e.NOT].match,s[e.NOT].empty,s[e.NOT].nomatch,s[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,s,o)=>{r.match+=e,r.empty+=t,r.nomatch+=n,r.total+=s;return`| ${a(e)} | ${a(t)} | ${a(n)} | ${a(s)} | ${o}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(o.sort(c),i.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(o.sort(u),i.sort(u),t+=" RULES/UDTS BY INDEX\n"):(o.sort(l),i.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<o.length;e+=1){let r=o[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=()=>{s.length=0,r=new p,s[e.ALT]=new p,s[e.CAT]=new p,s[e.REP]=new p,s[e.RNM]=new p,s[e.TRG]=new p,s[e.TBS]=new p,s[e.TLS]=new p,s[e.UDT]=new p,s[e.AND]=new p,s[e.NOT]=new p,o.length=0;for(let e=0;e<t.length;e+=1)o.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}`)}}},ct={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,s=e.length;if("number"==typeof t){if(t>=e.length)return"";r=t<0?0:t}if("number"==typeof n){if(n<=0)return"";s=n>e.length-r?e.length:r+n}const o=e.slice(r,s).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<o.length;e+=32768)i+=String.fromCodePoint.apply(null,o.slice(e,e+32768));return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")}},lt={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 lt.ALT:return"ALT";case lt.CAT:return"CAT";case lt.REP:return"REP";case lt.RNM:return"RNM";case lt.TRG:return"TRG";case lt.TBS:return"TBS";case lt.TLS:return"TLS";case lt.UDT:return"UDT";case lt.AND:return"AND";case lt.NOT:return"NOT";case lt.ACTIVE:return"ACTIVE";case lt.EMPTY:return"EMPTY";case lt.MATCH:return"MATCH";case lt.NOMATCH:return"NOMATCH";case lt.SEM_PRE:return"SEM_PRE";case lt.SEM_POST:return"SEM_POST";case lt.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const ut=(e,t,n,r,s)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-url-template",ct.charsToString(t,n,r)])}return lt.SEM_OK},pt=(e,t,n,r,s)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable",ct.charsToString(t,n,r)])}return lt.SEM_OK},dt=(e,t,n,r,s)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable-name",ct.charsToString(t,n,r)])}return lt.SEM_OK},ht=(e,t,n,r,s)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["literals",ct.charsToString(t,n,r)])}return lt.SEM_OK},ft=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'}},mt=e=>{const t=new st;t.ast=new ot,t.ast.callbacks["server-url-template"]=ut,t.ast.callbacks["server-variable"]=pt,t.ast.callbacks["server-variable-name"]=dt,t.ast.callbacks.literals=ht;return{result:t.parse(ft,"server-url-template",e),ast:t.ast}},yt=(e,{strict:t=!1}={})=>{try{const n=mt(e);if(!n.result.success)return!1;const r=[];n.ast.translate(r);const s=r.some(([e])=>"server-variable"===e);if(!t&&!s)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||s}catch{return!1}},gt=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),xt=["literals","server-variable-name"],vt=(e,t,n={})=>{const r={...{encoder:gt},...n},s=mt(e);if(!s.result.success)return e;const o=[];s.ast.translate(o);const i=o.filter(([e])=>xt.includes(e)).map(([e,n])=>"server-variable-name"===e?Object.hasOwn(t,n)?r.encoder(t[n],n):`{${n}}`:n);return i.join("")},bt=require("@speclynx/apidom-error"),wt=require("@speclynx/apidom-reference/configuration/empty"),kt=Object.freeze({url:"/"});function At(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 Tt(e,t){return Array.isArray(e)&&e.some(e=>At(e,t))}class St extends File{constructor(e,t="",n={}){super([e],t,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const Ft=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Ot=e=>/^[a-z0-9\-._~]+$/i.test(e);function Ct(e,t="reserved"){return[...e].map(e=>{if(Ot(e))return e;if(Ft(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 Et(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:n,explode:r,escape:s}){if("simple"===n)return t.map(e=>It(e,s)).join(",");if("label"===n)return`.${t.map(e=>It(e,s)).join(".")}`;if("matrix"===n)return t.map(e=>It(e,s)).reduce((t,n)=>!t||r?`${t||""};${e}=${n}`:`${t},${n}`,"");if("form"===n){const n=r?`&${e}=`:",";return t.map(e=>It(e,s)).join(n)}if("spaceDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>It(e,s)).join(` ${n}`)}if("pipeDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>It(e,s)).join(`|${n}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:n,explode:r,escape:s}){const o=Object.keys(t);if("simple"===n)return o.reduce((e,n)=>{const o=It(t[n],s);return`${e?`${e},`:""}${n}${r?"=":","}${o}`},"");if("label"===n)return o.reduce((e,n)=>{const o=It(t[n],s);return`${e?`${e}.`:"."}${n}${r?"=":"."}${o}`},"");if("matrix"===n&&r)return o.reduce((e,n)=>`${e?`${e};`:";"}${n}=${It(t[n],s)}`,"");if("matrix"===n)return o.reduce((n,r)=>{const o=It(t[r],s);return`${n?`${n},`:`;${e}=`}${r},${o}`},"");if("form"===n)return o.reduce((e,n)=>{const o=It(t[n],s);return`${e?`${e}${r?"&":","}`:""}${n}${r?"=":","}${o}`},"");return}(e):function({key:e,value:t,style:n,escape:r}){if("simple"===n)return It(t,r);if("label"===n)return`.${It(t,r)}`;if("matrix"===n)return`;${e}=${It(t,r)}`;if("form"===n)return It(t,r);if("deepObject"===n)return It(t,r);return}(e)}function It(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?Ct(e,t):e??""}const jt={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Dt={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function $t(e,t,n=!1){const{collectionFormat:r,allowEmptyValue:s,serializationOption:o,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&&s)return[[l,""]];if(At(a)||Tt(a))return[[l,a]];if(o)return Lt(e,a,n,o);if(i){if([typeof i.style,typeof i.explode,typeof i.allowReserved].some(e=>"undefined"!==e)){const{style:t,explode:r,allowReserved:s}=i;return Lt(e,a,n,{style:t,explode:r,allowReserved:s})}if("string"==typeof i.contentType){if(i.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new St(e,"blob",{type:i.contentType})]]}const e=c(String(a));return[[l,new St(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(Dt[r||"csv"])]]:[[l,""]]}function Lt(e,t,n,r){const s=r.style||"form",o=void 0===r.explode?"form"===s:r.explode,i=!n&&(r&&r.allowReserved?"unsafe":"reserved"),a=e=>It(e,i),c=n?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?o?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(jt[s])]]:"deepObject"===s?Object.keys(t).map(n=>[c(`${e}[${n}]`),a(t[n])]):o?Object.keys(t).map(e=>[c(e),a(t[e])]):[[c(e),Object.keys(t).map(e=>[`${c(e)},${a(t[e])}`]).join(",")]]}const Pt=(e,{encode:t=!0}={})=>{const n=(e,t,r)=>(Array.isArray(r)?r.reduce((r,s)=>n(e,t,s),e):r instanceof Date?e.append(t,r.toISOString()):"object"==typeof r?Object.entries(r).reduce((r,[s,o])=>n(e,`${t}[${s}]`,o),e):e.append(t,r),e),r=Object.entries(e).reduce((e,[t,r])=>n(e,t,r),new URLSearchParams),s=String(r);return t?s:decodeURIComponent(s)};function Mt(e){const t=Object.keys(e).reduce((t,n)=>{for(const[r,s]of $t(n,e[n]))t[r]=s instanceof St?s.valueOf():s;return t},{});return Pt(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 At(t)||Tt(t)}),n=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(n)){const t=(s=e.form,Object.entries(s).reduce((e,[t,n])=>{for(const[r,s]of $t(t,n,!0))if(Array.isArray(s))for(const t of s)if(ArrayBuffer.isView(t)){const n=new Blob([t]);e.append(r,n)}else e.append(r,t);else if(ArrayBuffer.isView(s)){const t=new Blob([s]);e.append(r,t)}else e.append(r,s);return e},new FormData));e.formdata=t,e.body=t}else e.body=Mt(r);delete e.form}var s;if(n){const[r,s]=t.split("?");let o="";if(s){const e=new URLSearchParams(s);Object.keys(n).forEach(t=>e.delete(t)),o=String(e)}const i=((...e)=>{const t=e.filter(e=>e).join("&");return t?`?${t}`:""})(o,Mt(n));e.url=r+i,delete e.query}return e}function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt,Ut,Ht,qt,_t,Gt,Wt,zt,Yt,Vt,Kt,Xt,Jt,Qt,Zt,en,tn,nn,rn,sn,on,an,cn,ln,un,pn,dn,hn,fn,mn,yn,gn,xn,vn,bn,wn,kn,An,Tn,Sn,Fn,On,Cn,En,In={},jn={},Dn={};function $n(){if(Rt)return Dn;function e(e){return null==e}return Rt=1,Dn.isNothing=e,Dn.isObject=function(e){return"object"==typeof e&&null!==e},Dn.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},Dn.repeat=function(e,t){let n="";for(let r=0;r<t;r+=1)n+=e;return n},Dn.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},Dn.extend=function(e,t){if(t){const n=Object.keys(t);for(let r=0,s=n.length;r<s;r+=1){const s=n[r];e[s]=t[s]}}return e},Dn}function Ln(){if(Ht)return Ut;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 Ht=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},Ut=t}function Pn(){if(Wt)return Gt;Wt=1;const e=Ln(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return Gt=function(r,s){if(s=s||{},Object.keys(s).forEach(function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}),this.options=s,this.tag=r,this.kind=s.kind||null,this.resolve=s.resolve||function(){return!0},this.construct=s.construct||function(e){return e},this.instanceOf=s.instanceOf||null,this.predicate=s.predicate||null,this.represent=s.represent||null,this.representName=s.representName||null,this.defaultStyle=s.defaultStyle||null,this.multi=s.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}(s.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}function Mn(){if(Yt)return zt;Yt=1;const e=Ln(),t=Pn();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(s){let o=[],i=[];if(s instanceof t)i.push(s);else if(Array.isArray(s))i=i.concat(s);else{if(!s||!Array.isArray(s.implicit)&&!Array.isArray(s.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.implicit&&(o=o.concat(s.implicit)),s.explicit&&(i=i.concat(s.explicit))}o.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(o),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},zt=r}function Bn(){if(Kt)return Vt;Kt=1;const e=Pn();return Vt=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Nn(){if(Jt)return Xt;Jt=1;const e=Pn();return Xt=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function Rn(){if(Zt)return Qt;Zt=1;const e=Pn();return Qt=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function Un(){if(tn)return en;tn=1;const e=Mn();return en=new e({explicit:[Bn(),Nn(),Rn()]})}function Hn(){if(rn)return nn;rn=1;const e=Pn();return nn=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"}),nn}function qn(){if(on)return sn;on=1;const e=Pn();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 _n(){if(cn)return an;cn=1;const e=$n(),t=Pn();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 s(e){return e>=48&&e<=57}function o(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 an=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(o(e))}if("x"===c){for(i++;i<t;i++){if(!n(e.charCodeAt(i)))return!1;a=!0}return a&&isFinite(o(e))}if("o"===c){for(i++;i<t;i++){if(!r(e.charCodeAt(i)))return!1;a=!0}return a&&isFinite(o(e))}}for(;i<t;i++){if(!s(e.charCodeAt(i)))return!1;a=!0}return!!a&&isFinite(o(e))},construct:function(e){return o(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"]}}),an}function Gn(){if(un)return ln;un=1;const e=$n(),t=Pn(),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 s=/^[-+]?[0-9]+e/;return ln=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 s.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})}function Wn(){return dn?pn:(dn=1,pn=Un().extend({implicit:[Hn(),qn(),_n(),Gn()]}))}function zn(){return fn?hn:(fn=1,hn=Wn())}function Yn(){if(yn)return mn;yn=1;const e=Pn(),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 mn=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,s=null,o=t.exec(e);if(null===o&&(o=n.exec(e)),null===o)throw new Error("Date resolve error");const i=+o[1],a=+o[2]-1,c=+o[3];if(!o[4])return new Date(Date.UTC(i,a,c));const l=+o[4],u=+o[5],p=+o[6];if(o[7]){for(r=o[7].slice(0,3);r.length<3;)r+="0";r=+r}if(o[9]){s=6e4*(60*+o[10]+ +(o[11]||0)),"-"===o[9]&&(s=-s)}const d=new Date(Date.UTC(i,a,c,l,u,p,r));return s&&d.setTime(d.getTime()-s),d},instanceOf:Date,represent:function(e){return e.toISOString()}}),mn}function Vn(){if(xn)return gn;xn=1;const e=Pn();return gn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function Kn(){if(bn)return vn;bn=1;const e=Pn(),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,s=t;for(let t=0;t<r;t++){const r=s.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,s=t;let o=0;const i=[];for(let e=0;e<r;e++)e%4==0&&e&&(i.push(o>>16&255),i.push(o>>8&255),i.push(255&o)),o=o<<6|s.indexOf(n.charAt(e));const a=r%4*6;return 0===a?(i.push(o>>16&255),i.push(o>>8&255),i.push(255&o)):18===a?(i.push(o>>10&255),i.push(o>>2&255)):12===a&&i.push(o>>4&255),new Uint8Array(i)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let n="",r=0;const s=e.length,o=t;for(let t=0;t<s;t++)t%3==0&&t&&(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]),r=(r<<8)+e[t];const i=s%3;return 0===i?(n+=o[r>>18&63],n+=o[r>>12&63],n+=o[r>>6&63],n+=o[63&r]):2===i?(n+=o[r>>10&63],n+=o[r>>4&63],n+=o[r<<2&63],n+=o[64]):1===i&&(n+=o[r>>2&63],n+=o[r<<4&63],n+=o[64],n+=o[64]),n}}),vn}function Xn(){if(kn)return wn;kn=1;const e=Pn(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return wn=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const r={},s=e;for(let e=0,o=s.length;e<o;e+=1){const o=s[e];let i,a=!1;if("[object Object]"!==n.call(o))return!1;for(i in o)if(t.call(o,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(Tn)return An;Tn=1;const e=Pn(),t=Object.prototype.toString;return An=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,s=n.length;e<s;e+=1){const s=n[e];if("[object Object]"!==t.call(s))return!1;const o=Object.keys(s);if(1!==o.length)return!1;r[e]=[o[0],s[o[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],s=Object.keys(r);n[e]=[s[0],r[s[0]]]}return n}}),An}function Qn(){if(Fn)return Sn;Fn=1;const e=Pn(),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 Zn(){return Cn?On:(Cn=1,On=zn().extend({implicit:[Yn(),Vn()],explicit:[Kn(),Xn(),Jn(),Qn()]}))}function er(){if(En)return jn;En=1;const e=$n(),t=Ln(),n=function(){if(_t)return qt;_t=1;const e=$n();function t(e,t,n,r,s){let o="",i="";const a=Math.floor(s/2)-1;return r-t>a&&(o=" ... ",t=r-a+o.length),n-r>a&&(i=" ...",n=r+a-i.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+o.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}return qt=function(r,s){if(s=Object.create(s||null),!r.buffer)return null;s.maxLength||(s.maxLength=79),"number"!=typeof s.indent&&(s.indent=1),"number"!=typeof s.linesBefore&&(s.linesBefore=3),"number"!=typeof s.linesAfter&&(s.linesAfter=2);const o=/\r?\n|\r|\0/g,i=[0],a=[];let c,l=-1;for(;c=o.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+s.linesAfter,a.length).toString().length,d=s.maxLength-(s.indent+p+3);for(let o=1;o<=s.linesBefore&&!(l-o<0);o++){const c=t(r.buffer,i[l-o],a[l-o],r.position-(i[l]-i[l-o]),d);u=e.repeat(" ",s.indent)+n((r.line-o+1).toString(),p)+" | "+c.str+"\n"+u}const h=t(r.buffer,i[l],a[l],r.position,d);u+=e.repeat(" ",s.indent)+n((r.line+1).toString(),p)+" | "+h.str+"\n",u+=e.repeat("-",s.indent+p+3+h.pos)+"^\n";for(let o=1;o<=s.linesAfter&&!(l+o>=a.length);o++){const c=t(r.buffer,i[l+o],a[l+o],r.position-(i[l]-i[l+o]),d);u+=e.repeat(" ",s.indent)+n((r.line+o+1).toString(),p)+" | "+c.str+"\n"}return u.replace(/\n$/,"")},qt}(),r=Zn(),s=Object.prototype.hasOwnProperty,o=/[\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 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 s={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return s.snippet=n(s),new t(r,s)}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];s.call(n,t)||(n[t]={existed:s.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 s=parseInt(r[1],10),o=parseInt(r[2],10);1!==s&&S(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&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 o=n[0];r=n[1],c.test(o)||S(e,"ill-formed tag handle (first argument) of the TAG directive"),s.call(e.tagMap,o)&&S(e,'there is a previously declared suffix for "'+o+'" 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[o]=r}};function j(e,t,n,r){if(t<n){const s=e.input.slice(t,n);if(r)for(let t=0,n=s.length;t<n;t+=1){const n=s.charCodeAt(t);9===n||n>=32&&n<=1114111||S(e,"expected valid JSON character")}else o.test(s)&&S(e,"the stream contains non-printable characters");e.result+=s}}function D(e){e.totalMergeKeys++,-1!==e.maxTotalMergeKeys&&e.totalMergeKeys>e.maxTotalMergeKeys&&S(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function $(t,n,r,o){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),s.call(n,a)||(b(n,a,r[a]),o[a]=!0)}}function L(e,t,n,r,o,i,a,c,l){if(Array.isArray(o))for(let t=0,n=(o=Array.prototype.slice.call(o)).length;t<n;t+=1)Array.isArray(o[t])&&S(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===u(o[t])&&(o[t]="[object Object]");if("object"==typeof o&&"[object Object]"===u(o)&&(o="[object Object]"),o=String(o),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,s=i.length;r<s;r+=1)$(e,t,i[r],n)}else $(e,t,i,n);else e.json||s.call(n,o)||!s.call(t,o)||(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,S(e,"duplicated mapping key")),b(t,o,i),delete n[o];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,s=e.input.charCodeAt(e.position);for(;0!==s;){for(;d(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!p(s))break;for(P(e),s=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===s;)e.lineIndent++,s=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,s=[];let o=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&O(e,e.anchor,s);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(o=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t){s.push(null),i=e.input.charCodeAt(e.position);continue}const n=e.line;if(G(e,t,3,!1,!0),s.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!!o&&(e.tag=n,e.anchor=r,e.kind="sequence",e.result=s,!0)}function U(e,t,n){let r,s,o,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,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(s=e.line,o=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,u,p,f,null,s,o,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;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,u,p,f,null,s,o,i),p=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&&(s=e.line,o=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,s,o,i),p=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,u,p,f,null,s,o,i),g&&(e.tag=a,e.anchor=c,e.kind="mapping",e.result=l),g}function H(e){let t,n,r=!1,o=!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?(o=!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)):S(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!h(i);)33===i&&(o?S(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(u-1,e.position+1),c.test(t)||S(e,"named tag handle cannot contain such characters"),o=!0,u=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(u,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:s.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 o=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],o=Object.keys(t);for(let e=0,n=o.length;e<n;e+=1){const n=o[e];s.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 s=t[n[r]];s.existed?e.anchorMap[n[r]]=s.value:delete e.anchorMap[n[r]]}}(e),E(e,o),!1)}function G(t,n,r,o,i){let a,c,l,u,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(o&&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(u=1===r||2===r?n:n+1,x=t.position-t.lineStart,1===b)if(c&&(R(t,x)||U(t,x,u))||function(e,t){let n,r,s,o=!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(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;o?44===x&&S(e,"expected the node content, but found ','"):S(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++,M(e,!0,t)),n=e.line,r=e.lineStart,s=e.position,G(e,t,1,!1,!0),y=e.tag,m=e.result,M(e,!0,t),x=e.input.charCodeAt(e.position),!p&&e.line!==n||58!==x||(u=!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,s):u?a.push(L(e,null,f,y,m,g,n,r,s)):a.push(m),M(e,!0,t),x=e.input.charCodeAt(e.position),44===x?(o=!0,x=e.input.charCodeAt(++e.position)):o=!1}S(e,"unexpected end of the stream within a flow collection")}(t,u))T=!0;else{const n=t.input.charCodeAt(t.position);null!==F&&E&&!c&&124!==n&&62!==n&&_(t,F,F.position-F.lineStart,u)||a&&function(t,n){let r,s,o=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===o?o=43===h?3:2:S(t,"repeat of a chomping mode identifier");else{if(!((s=g(h))>=0))break;0===s?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+s-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(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),p(h)){l++;continue}if(a||0!==c||S(t,"missing indentation for block scalar"),t.lineIndent<c){3===o?t.result+=e.repeat("\n",i?1+l:l):1===o&&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);j(t,n,t.position,!1)}return!0}(t,u)||function(e,t){let n,r,s=e.input.charCodeAt(e.position);if(39!==s)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));)if(39===s){if(j(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),39!==s)return!0;n=e.position,e.position++,r=e.position}else p(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 single quoted scalar"):(e.position++,d(s)||(r=e.position));S(e,"unexpected end of the stream within a single quoted scalar")}(t,u)||function(e,t){let n,r,s,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(o=e.input.charCodeAt(e.position));){if(34===o)return j(e,n,e.position,!0),e.position++,!0;if(92===o){if(j(e,n,e.position,!0),o=e.input.charCodeAt(++e.position),p(o))M(e,!1,t);else if(o<256&&w[o])e.result+=k[o],e.position++;else if((s=y(o))>0){let t=s,n=0;for(;t>0;t--)o=e.input.charCodeAt(++e.position),(s=m(o))>=0?n=(n<<4)+s:S(e,"expected hexadecimal character");e.result+=v(n),e.position++}else S(e,"unknown escape sequence");n=r=e.position}else p(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 double quoted scalar"):(e.position++,d(o)||(r=e.position))}S(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&&S(e,"name of an alias node must contain at least one character");const r=e.input.slice(n,e.position);return s.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,s,o,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=s=e.position,o=!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(p(m)){if(i=e.line,a=e.lineStart,c=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){o=!0,m=e.input.charCodeAt(e.position);continue}e.position=s,e.line=i,e.lineStart=a,e.lineIndent=c;break}}o&&(j(e,r,s,!1),N(e,e.line-i),r=s=e.position,o=!1),d(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return j(e,r,s,!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||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(s.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 o=e.input.slice(t,e.position),i=[];for(o.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&&!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&&P(e),s.call(I,o)?I[o](e,o,i):F(e,'unknown document directive "'+o+'"')}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 jn.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])},jn.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")}},jn}var tr,nr,rr={};function sr(){if(tr)return rr;tr=1;const e=$n(),t=Ln(),n=Zn(),r=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=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,s;const o=n.toString(16).toUpperCase();if(n<=255)r="x",s=2;else if(n<=65535)r="u",s=4;else{if(!(n<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+e.repeat("0",s-o.length)+o}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 o=0,i=r.length;o<i;o+=1){let i=r[o],a=String(t[i]);"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2));const c=e.compiledTypeMap.fallback[i];c&&s.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 s=0,o="";const i=t.length;for(;s<i;){let e;const n=t.indexOf("\n",s);-1===n?(e=t.slice(s),s=i):(e=t.slice(s,n+1),s=n+1),e.length&&"\n"!==e&&(o+=r),o+=e}return o}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!==o||e>=65536&&e<=1114111}function m(e){return f(e)&&e!==o&&13!==e&&10!==e}function y(e,t,n){const r=m(e),s=r&&!h(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!s)||m(t)&&!h(t)&&35===e||58===t&&s}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,s,i,a,c){let l,u=0,p=null,d=!1,m=!1;const v=-1!==r;let b=-1,w=f(k=g(e,0))&&k!==o&&!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;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,v&&(m=m||l-b-1>r&&" "!==e[b+1],b=l);else if(!f(u))return 5;w=w&&y(u,p,c),p=u}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||s(e)?2===i?5:2:1}function b(e,n,r,s,o){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=s||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&&!s,o)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+w(n,e.indent)+k(p(n,u));case 4:return">"+w(n,e.indent)+k(p(function(e,t){const n=/(\n+)([^\n]*)/g;let r,s,o=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(;s=n.exec(e);){const e=s[1],n=s[2];r=" "===n[0],o+=e+(i||r||""===n?"":"\n")+A(n,t),i=r}return o}(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 s=i[n];!s&&f(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=s||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,s,o=0,i=0,a=0,c="";for(;r=n.exec(e);)a=r.index,a-o>t&&(s=i>o?i:a,c+="\n"+e.slice(o,s),o=s+1),i=a;return c+="\n",e.length-o>t&&i>o?c+=e.slice(o,i)+"\n"+e.slice(i+1):c+=e.slice(o),c.slice(1)}function T(e,t,n,r){let s="";const o=e.tag;for(let o=0,i=n.length;o<i;o+=1){let i=n[o];e.replacer&&(i=e.replacer.call(n,String(o),i)),(F(e,t+1,i,!0,!0,!1,!0)||void 0===i&&F(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=d(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump)}e.tag=o,e.dump=s||"[]"}function S(e,n,o){const i=o?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(o?c.multi&&c.representName?e.tag=c.representName(n):e.tag=c.tag:e.tag="?",c.represent){const o=e.styleMap[c.tag]||c.defaultStyle;let i;if("[object Function]"===r.call(c.represent))i=c.represent(n,o);else{if(!s.call(c.represent,o))throw new t("!<"+c.tag+'> tag resolver accepts not "'+o+'" style');i=c.represent[o](n,o)}e.dump=i}return!0}}return!1}function F(e,n,s,o,i,a,c){e.tag=null,e.dump=s,S(e,s,!1)||S(e,s,!0);const l=r.call(e.dump),u=o;o&&(o=e.flowLevel<0||e.flowLevel>n);const p="[object Object]"===l||"[object Array]"===l;let h,f;if(p&&(h=e.duplicates.indexOf(s),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)o&&0!==Object.keys(e.dump).length?(!function(e,n,r,s){let o="";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="";s&&""===o||(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 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)),F(e,n+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?i+=":":i+=": ",i+=e.dump,o+=i)}e.tag=i,e.dump=o||"{}"}(e,n,e.dump,i),f&&(e.dump="&ref_"+h+e.dump)):(!function(e,t,n){let r="";const s=e.tag,o=Object.keys(n);for(let s=0,i=o.length;s<i;s+=1){let i="";""!==r&&(i+=", "),e.condenseFlow&&(i+='"');const a=o[s];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=s,e.dump="{"+r+"}"}(e,n,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===l)o&&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 s=e.tag;for(let s=0,o=n.length;s<o;s+=1){let o=n[s];e.replacer&&(o=e.replacer.call(n,String(s),o)),(F(e,t,o,!1,!1)||void 0===o&&F(e,t,null,!1,!1))&&(""!==r&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump)}e.tag=s,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,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=[];C(e,n,r);const s=r.length;for(let e=0;e<s;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=new Array(s)}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,s=e.length;r<s;r+=1)C(e[r],t,n);else{const r=Object.keys(e);for(let s=0,o=r.length;s<o;s+=1)C(e[r[s]],t,n)}}}return rr.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)),F(n,0,r,!0,!0)?n.dump+"\n":""},rr}const or=Nt(function(){if(nr)return In;nr=1;const e=er(),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=Pn(),In.Schema=Mn(),In.FAILSAFE_SCHEMA=Un(),In.JSON_SCHEMA=Wn(),In.CORE_SCHEMA=zn(),In.DEFAULT_SCHEMA=Zn(),In.load=e.load,In.loadAll=e.loadAll,In.dump=t.dump,In.YAMLException=Ln(),In.types={binary:Kn(),float:Gn(),map:Rn(),null:Hn(),pairs:Jn(),set:Qn(),timestamp:Yn(),bool:qn(),int:_n(),merge:Vn(),omap:Xn(),seq:Nn(),str:Bn()},In.safeLoad=n("safeLoad","load"),In.safeLoadAll=n("safeLoadAll","loadAll"),In.safeDump=n("safeDump","dump"),In}()),{Type:ir,Schema:ar,FAILSAFE_SCHEMA:cr,JSON_SCHEMA:lr,CORE_SCHEMA:ur,DEFAULT_SCHEMA:pr,load:dr,loadAll:hr,dump:fr,YAMLException:mr,types:yr,safeLoad:gr,safeLoadAll:xr,safeDump:vr}=or,br=(e="")=>/(json|xml|yaml|text)\b/.test(e);function wr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=function(e){return s()(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)},s=r.headers["content-type"],o=n||br(s);return(o?e.text:e.blob||e.buffer).call(e).then(e=>{if(r.text=e,r.data=e,o)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 or.load(e)}(e,s);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,s,o)=>{if(t===lt.SEM_PRE){const t={type:e,text:ct.charsToString(n,r,s),start:r,length:s,children:[]};o.stack.length>0?o.stack[o.stack.length-1].children.push(t):o.root=t,o.stack.push(t)}t===lt.SEM_POST&&o.stack.pop()};const Sr=class extends ot{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,s,o)=>{if(t===lt.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push([e,ct.charsToString(n,r,s)])}return lt.SEM_OK};const Er=class extends ot{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 it{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let n=-1;for(let r=0;r<e.length;r++){const s=e[r];if(s.includes("M|")){const e=s.match(/]'(.*)'$/);e&&e[1]&&(n=r)}if(r>n){const e=s.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 s=new st;t&&(s.ast=t),n&&(s.stats=new at),r&&(s.trace=new jr);const o=s.parse(Pr,"path-template",e);let i;return{result:o,tree:o.success&&t?s.ast.getTree():void 0,stats:s.stats,trace:s.trace,get ast(){if(void 0===i){const t=new st;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 s=n[e];Ur(s)||t&&Hr(s)?r+=s:t&&"%"===s&&qr(n[e+1])&&qr(n[e+2])?(r+=`%${n[e+1]}${n[e+2]}`,e+=2):r+=_r(s)}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,s,o)=>{const{sep:i,named:a,ifemp:c,allowReserved:l}=s,u=l?zr:Wr,p=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(p,u(e)):u(e)}if(void 0!==t)throw new $r(`Prefix modifier is not applicable to composite value of variable "${e}"`,{uriTemplate:o});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 s=Rr[e];if(void 0===s)throw new Lr(`Unsupported operator "${e}" in URI Template: "${r}"`,{uriTemplate:r});const o=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,s,r)]});return 0===o.length?"":`${s.first}${o.join(s.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:s}=n,o=null!=r;if(o&&void 0!==s)throw new TypeError("Options encoder and parameterObjects cannot be used together");const i=o?((e,t)=>{const n=Nr(e);return(e,r)=>{const s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(void 0===Vr(s))return`{${r}}`;try{return Xr(n(r),{[r]:s},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!=s?s: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 st;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 s=e.url.replace(r,""),o=Qr(s,{[n.name]:t});e.url=r+o}},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 es(e,t){return s()(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 ts=x(function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})c(r,t)&&(s[r]=c(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)c(r,n)&&!c(r,s)&&(s[r]=n[r]);return s});const ns=x(function e(t,n,r){return ts(function(n,r,s){return ie(r)&&ie(s)?e(t,r,s):t(n,r,s)},n,r)});const rs=a(function(e,t){return ns(function(e,t,n){return n},e,t)});function ss(){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 os=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)},is=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),as=e=>is(e)?e.slice(1,-1):e,cs=e=>`"${e}"`,ls=e=>e;class us 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(us,"name",{value:"CookieError"});const ps=us;class ds extends ps{}Object.defineProperty(ds,"name",{value:"CookieParseError"});new ss;const hs=new st,fs=new ss,ms=(e,{strict:t=!0}={})=>{try{const n=t?"cookie-name":"lenient-cookie-name";return hs.parse(fs,n,e).success}catch{return!1}},ys=new st,gs=new ss,xs=(e,{strict:t=!0,quoted:n=null}={})=>{try{const r=t?"cookie-value":"lenient-cookie-value",s=ys.parse(gs,r,e);return"boolean"==typeof n?s.success&&n===is(e):s.success}catch{return!1}},vs=require("buffer"),bs=e=>vs.Buffer.from(e).toString("base64"),ws=(e,t=bs)=>{const n=String(e);if(xs(n))return n;const r=is(n),s=t(r?as(n):n);return r?cs(s):s},ks=e=>bs(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),As=e=>ws(e,ks),Ts=e=>{if(!ms(e))throw new TypeError(`Invalid cookie name: ${e}`)},Ss=e=>{if(!xs(e))throw new TypeError(`Invalid cookie value: ${e}`)},Fs=new st,Os=new ss,Cs=(e,t)=>{try{return Fs.parse(Os,e,t).success}catch{return!1}},Es={strict:"Strict",lax:"Lax",none:"None"},Is={low:"Low",medium:"Medium",high:"High"},js=({expires:e,maxAge:t,domain:n,path:r,secure:s,httpOnly:o,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(!Cs("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(!Cs("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(!Cs("path-value",t))throw new TypeError(`Invalid Set-Cookie Path attribute: ${t}`);return`Path=${t}`})(r)),s&&l.push("Secure"),o&&l.push("HttpOnly"),void 0!==i&&l.push((e=>{const t=Es[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=Is[String(e).toLowerCase()];if(void 0===t)throw new TypeError(`Invalid Set-Cookie Priority attribute: ${String(e)}`);return`Priority=${t}`})(c)),l},Ds={encoders:{name:ls,value:As},validators:{name:Ts,value:Ss}},$s=(e,t,n={})=>{const r={...Ds,...n,encoders:{...Ds.encoders,...n.encoders},validators:{...Ds.validators,...n.validators}},s=r.encoders.name(e),o=r.encoders.value(t);r.validators.name(s),r.validators.value(o);return[`${s}=${o}`,...js(r)].join("; ")},Ls=(e,{encoders:t,validators:n}={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,r])=>$s(e,r,{encoders:t,validators:n})).join("; ");new ss;const Ps=new st,Ms=new ss,Bs=e=>{const t=String(e);if(xs(t))return t;const n=is(t),r=n?as(t):t;let s="";for(const e of r)s+=Ps.parse(Ms,"cookie-octet",e).success?e:os(e);return n?cs(s):s};new st,new ss;const Ns=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 n=vs.Buffer.from(t,"base64");if(n.toString("base64")!==t)throw new TypeError("Input must be a canonically base64 encoded string.");return(e=>new TextDecoder("utf-8",{fatal:!0}).decode(e))(n)},Rs=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 Ns((e=>{const t=e.replace(/-/g,"+").replace(/_/g,"/");return`${t}${"=".repeat((4-t.length%4)%4)}`})(t))},Us=(e,t=Ns)=>{const n=String(e),r=is(n),s=t(r?as(n):n);return r?cs(s):s},Hs=e=>/[\u0000-\u0008\u000A-\u001F\u007F]/.test(e);qs=[e=>Us(e,Rs),Us,e=>{const t=String(e),n=is(t),r=n?as(t):t;let s;try{s=decodeURIComponent(r)}catch(e){throw new TypeError(`Invalid percent-encoded cookie value: ${t}`,{cause:e})}return n?cs(s):s}];var qs;const _s=e=>{if(!ms(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const Gs=e=>Bs(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),Ws=(e,t={})=>Ls(e,rs({encoders:{name:ls,value:Gs},validators:{name:_s,value:Ss}},t));function zs({req:e,value:t,parameter:n,baseURL:r}){const{name:s,style:o,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,{[s]:t},{encoder:t=>Ct(es(t,e))})}else l=Qr(c,{[s]:t},{encoder:e=>Et({key:n.name,value:e,style:o||"simple",explode:i??!1,escape:"reserved"})});e.url=r+l}function Ys({req:e,value:t,parameter:n}){if(e.query=e.query||{},void 0!==t&&n.content){const r=es(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:s,allowReserved:o}=n;e.query[n.name]={value:t,serializationOption:{style:r,explode:s,allowReserved:o}}}else if(n.allowEmptyValue&&void 0!==t){const t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const Vs=["accept","authorization","content-type"];function Ks({req:e,parameter:t,value:n}){if(e.headers=e.headers||{},!(Vs.indexOf(t.name.toLowerCase())>-1)){if(void 0!==n&&t.content){const r=Object.keys(t.content)[0];return void(e.headers[t.name]=es(n,r))}void 0===n||Array.isArray(n)&&0===n.length||(e.headers[t.name]=Et({key:t.name,value:n,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}}function Xs({req:e,parameter:t,value:n}){const{name:r}=t;if(e.headers=e.headers||{},void 0!==n&&t.content){const s=es(n,Object.keys(t.content)[0]);return void(e.headers.Cookie=Ws({[r]:s}))}if(void 0!==n&&(!Array.isArray(n)||0!==n.length)){const s=Et({key:t.name,value:n,escape:!1,style:t.style||"form",explode:t.explode??!1}),o=Array.isArray(n)&&t.explode?`${r}=${s}`:s;e.headers.Cookie=Ws({[r]:o})}}const Js=e=>{let t;return t=e instanceof vs.Buffer?e:vs.Buffer.from(e.toString(),"binary"),t.toString("base64")};function Qs(e,t){const{operation:n,requestBody:r,securities:s,spec:o,attachContentTypeForEmptyPayload:i}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:n={},spec:r}){const s={...e},{authorized:o={}}=t,i=n.security||r.security||[],a=o&&!!Object.keys(o).length,c=r?.components?.securitySchemes||{};if(s.headers=s.headers||{},s.query=s.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=o[e],n=c[e];if(!t)return;const r=t.value||t,{type:i}=n;if(t)if("apiKey"===i)"query"===n.in&&(s.query[n.name]=r),"header"===n.in&&(s.headers[n.name]=r),"cookie"===n.in&&(s.cookies[n.name]=r);else if("http"===i){if(/^basic$/i.test(n.scheme)){const e=r.username||"",t=r.password||"",n=Js(`${e}:${t}`);s.headers.Authorization=`Basic ${n}`}/^bearer$/i.test(n.scheme)&&(s.headers.Authorization=`Bearer ${r}`)}else if("oauth2"===i||"openIdConnect"===i){const e=t.token||{},r=e[n["x-tokenName"]||"access_token"];let o=e.token_type;o&&"bearer"!==o.toLowerCase()||(o="Bearer"),s.headers.Authorization=`${o} ${r}`}})}),s}({request:t,securities:s,operation:n,spec:o});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&&Ke(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 s;try{s=JSON.parse(r[n])}catch{s=r[n]}t.form[n]={value:s,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 Zs(e,t){const{spec:n,operation:r,securities:s,requestContentType:o,responseContentType:i,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:n={},spec:r}){const s={...e},{authorized:o={},specSecurity:i=[]}=t,a=n.security||i,c=o&&!!Object.keys(o).length,l=r.securityDefinitions;if(s.headers=s.headers||{},s.query=s.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=o[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";s[e]=s[e]||{},s[e][i.name]=r}else if("basic"===a)if(r.header)s.headers.authorization=r.header;else{const e=r.username||"",t=r.password||"";r.base64=Js(`${e}:${t}`),s.headers.authorization=`Basic ${r.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",s.headers.authorization=`${p} ${u}`)})}),s}({request:t,securities:s,operation:r,spec:n}),t.body||t.form||a)o?t.headers["Content-Type"]=o: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(o){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"]=o)}return!i&&Array.isArray(r.produces)&&r.produces.length>0&&(t.headers.accept=r.produces.join(", ")),t}const eo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},to=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)||eo(e);function no(e,t){return function(e,t,n){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:r}=e,s=eo(e);for(const o in r){for(const s in r[o]){if("PARAMETERS"===s.toUpperCase()||"additionalOperations"===s)continue;const i=r[o][s];if(!i||"object"!=typeof i)continue;const a={spec:e,pathName:o,method:s.toUpperCase(),operation:i},c=t(a);if(n&&c)return a}const{additionalOperations:i}=r[o];if(s&&i&&"object"==typeof i)for(const r of Object.keys(i)){const s=i[r];if(!s||"object"!=typeof s)continue;const a={spec:e,pathName:o,method:r,operation:s},c=t(a);if(n&&c)return a}}}(e,t,!0)||null}const ro=e=>e.replace(/\W/gi,"_"),so=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function oo(e,t,n="",{v2OperationIdCompatibilityMode:r}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?ro(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`${so.has(t.toLowerCase())?t.toLowerCase():t}${ro(e)}`}(t,n,{v2OperationIdCompatibilityMode:r})}function io(e,t){return`${t.toLowerCase()}-${e}`}const{isHttpUrl:ao}=wt.url;const co=e=>Array.isArray(e)?e:[],lo=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,uo=e=>"string"==typeof e&&lo.test(e),po=(e,{recurse:t=!0,depth:n=1}={})=>{var r,o;if(Ke(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(s()(r=e.type).call(r,"object")||s()(o=e.type).call(o,"array")))return e;if(!(n>3e3)&&t){const r=Array.isArray(e.oneOf)?e.oneOf.find(e=>po(e,{recurse:t,depth:n+1})):void 0;if(r)return r;const s=Array.isArray(e.anyOf)?e.anyOf.find(e=>po(e,{recurse:t,depth:n+1})):void 0;if(s)return s}}},ho=({value:e,silentFail:t=!1})=>{try{const n=JSON.parse(e);if(Ke(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},fo=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 mo extends bt.ApiDOMStructuredError{}const yo=(e,t)=>t.filter(t=>t.name===e),go=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};function xo(t){const{spec:n,operationId:r,responseContentType:s,scheme:o,requestInterceptor:i,responseInterceptor:a,contextUrl:c,userFetch:l,server:u,serverVariables:p,http:d,signal:f,serverVariableEncoder:y}=t;let{parameters:g,parameterBuilders:x,baseURL:v}=t;const b=to(n);x||(x=b?e:Zr);let w={url:"",credentials:d&&d.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(w.signal=f),i&&(w.requestInterceptor=i),a&&(w.responseInterceptor=a),l&&(w.userFetch=l);const k=function(e,t){return e&&e.paths?no(e,({pathName:e,method:n,operation:r})=>{if(!r||"object"!=typeof r)return!1;const s=r.operationId;return[oo(r,e,n),io(e,n),s].some(e=>e&&e===t)}):null}(n,r);if(!k)throw new mo(`Operation ${r} not found`);const{operation:A={},method:T,pathName:S}=k;if(!uo(T))throw new Error("Invalid HTTP method");if(v=v??function(e){const t=to(e.spec);return t?function({spec:e,pathName:t,method:n,operation:r,server:s,contextUrl:o,serverVariables:i={},serverVariableEncoder:a}){let c,l=[],u="";const p=r?.servers??e?.paths?.[t]?.[(n||"").toLowerCase()]?.servers,d=e?.paths?.[t]?.servers,h=e?.servers;l=bo(p)?p:bo(d)?d:bo(h)?h:[kt],s&&(c=l.find(e=>e.url===s),c&&(u=s));u||([c]=l,u=c.url);if(yt(u,{strict:!0})){const e=Object.entries({...c.variables}).reduce((e,[t,n])=>(e[t]=n.default,e),{});u=vt(u,{...e,...i},{encoder:"function"==typeof a?a:m})}return function(e="",t=""){const n=fo(e&&t?wt.url.resolve(t,e):e),r=fo(t),s=vo(n.protocol)||vo(r.protocol),o=n.host||r.host,i=n.pathname;let a;a=s&&o?`${s}://${o+i}`:i;return"/"===a[a.length-1]?a.slice(0,-1):a}(u,o)}(e):function({spec:e,scheme:t,contextUrl:n=""}){const r=fo(n),s=Array.isArray(e.schemes)?e.schemes[0]:null,o=t||s||vo(r.protocol)||"http",i=e.host||r.host||"",a=e.basePath||"";let c;c=o&&i?`${o}://${i+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}({spec:n,scheme:o,contextUrl:c,server:u,serverVariables:p,pathName:S,method:T,operation:A,serverVariableEncoder:y}),w.url+=v,!r)return delete w.cookies,w;w.url+=S,w.method=T,g=g||{};const F=n.paths[S]||{};s&&(w.headers.accept=s);const O=go([].concat(co(A.parameters)).concat(co(F.parameters)));O.forEach(e=>{const t=x[e.in];let r;if("body"===e.in&&e.schema&&e.schema.properties&&(r=g),r=e&&e.name&&g[e.name],void 0===r?r=e&&e.name&&g[`${e.in}.${e.name}`]:yo(e.name,O).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`);b&&"string"==typeof r&&(h("type",e.schema)&&"string"==typeof e.schema.type&&po(e.schema,{recurse:!1})?r=ho({value:r,silentFail:!1}):(h("type",e.schema)&&Array.isArray(e.schema.type)&&po(e.schema,{recurse:!1})||!h("type",e.schema)&&po(e.schema,{recurse:!0}))&&(r=ho({value:r,silentFail:!0}))),t&&t({req:w,parameter:e,value:r,operation:A,spec:n,baseURL:v})}});const C={...t,operation:A};if(w=b?Qs(C,w):Zs(C,w),w.cookies&&Object.keys(w.cookies).length>0){const e=Ws(w.cookies);rt(w.headers.Cookie)?w.headers.Cookie+=`; ${e}`:w.headers.Cookie=e}return w.cookies&&delete w.cookies,Bt(w)}const vo=e=>e?e.replace(/\W/g,""):null;const bo=e=>Array.isArray(e)&&e.length>0})(),module.exports=r})();
1
+ (()=>{var e={8341(e,t,n){"use strict";n(7603);var r=n(2856);e.exports=r("Array","includes")},5161(e,t,n){"use strict";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){"use strict";n(3855);var r=n(2856);e.exports=r("String","includes")},814(e,t,n){"use strict";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){"use strict";e.exports=function(){}},7235(e,t,n){"use strict";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){"use strict";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){"use strict";var r=n(6100),o=r({}.toString),s=r("".slice);e.exports=function(e){return s(o(e),8,-1)}},8407(e,t,n){"use strict";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){"use strict";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){"use strict";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){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7525(e,t,n){"use strict";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){"use strict";var r=n(1203);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9619(e,t,n){"use strict";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){"use strict";var r=n(8900).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},5547(e,t,n){"use strict";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){"use strict";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,k,b=e.target,w=e.global,A=e.stat,T=e.proto,S=w?r:A?r[b]:r[b]&&r[b].prototype,F=w?l:l[b]||u(l,b,{})[b],O=F.prototype;for(m in t)o=!(n=c(w?m:b+(A?".":"#")+m,e.forced))&&S&&d(S,m),g=F[m],o&&(x=e.dontCallGetSet?(k=a(S,m))&&k.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=b+"Prototype")||u(l,f,{}),u(l[f],m,y),e.real&&O&&(n||!O[m])&&u(O,m,y)))}},1203(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013(e,t,n){"use strict";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){"use strict";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){"use strict";var r=n(1203);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},4713(e,t,n){"use strict";var r=n(1780),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9344(e,t,n){"use strict";var r=n(9932),o=n(6100);e.exports=function(e){if("Function"===r(e))return o(e)}},6100(e,t,n){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";e.exports=function(e){return null==e}},262(e,t,n){"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},4871(e){"use strict";e.exports=!0},7752(e,t,n){"use strict";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){"use strict";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){"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777(e){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},7161(e,t){"use strict";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){"use strict";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){"use strict";e.exports={}},5426(e,t,n){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";var r=n(1395),o=n(5426);e.exports=function(e){return r(o(e))}},9903(e,t,n){"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146(e,t,n){"use strict";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){"use strict";var r=n(5426),o=Object;e.exports=function(e){return o(r(e))}},493(e,t,n){"use strict";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){"use strict";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){"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139(e,t,n){"use strict";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){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268(e,t,n){"use strict";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){"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330(e,t,n){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";var r=n(5161);e.exports=r},5965(e,t,n){e.exports=n(1726)}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,n),s.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.hasOwn(e,t),n.r=e=>{Object.defineProperties(e,{[Symbol.toStringTag]:{value:"Module"},__esModule:{value:!0}})};let r={};(()=>{"use strict";n.r(r),n.d(r,{buildRequest:()=>xs,deserializeResponse:()=>wr,idFromPathMethodLegacy:()=>as});var e={};n.r(e),n.d(e,{cookie:()=>Qo,header:()=>Xo,path:()=>Yo,query:()=>Vo});var t=n(5965),o=n.n(t);function s(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(n){return 0===arguments.length||s(n)?t:e.apply(this,arguments)}}function a(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return s(n)?t:i(function(t){return e(n,t)});default:return s(n)&&s(r)?t:s(n)?i(function(t){return e(t,r)}):s(r)?i(function(t){return e(n,t)}):e(n,r)}}}function c(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const l=i(function(e){return null==e});var p=a(function(e,t){if(0===e.length||l(t))return!1;for(var n=t,r=0;r<e.length;){if(l(n)||!c(e[r],n))return!1;n=n[e[r]],r+=1}return!0});const u=p;var d=a(function(e,t){return u([e],t)});const h=d;function f(e){return e}const m=i(f);function y(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 g(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function x(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return s(n)?t:a(function(t,r){return e(n,t,r)});case 2:return s(n)&&s(r)?t:s(n)?a(function(t,n){return e(t,r,n)}):s(r)?a(function(t,r){return e(n,t,r)}):i(function(t){return e(n,r,t)});default:return s(n)&&s(r)&&s(o)?t:s(n)&&s(r)?a(function(t,n){return e(t,n,o)}):s(n)&&s(o)?a(function(t,n){return e(t,r,n)}):s(r)&&s(o)?a(function(t,r){return e(n,t,r)}):s(n)?i(function(t){return e(t,r,o)}):s(r)?i(function(t){return e(n,t,o)}):s(o)?i(function(t){return e(n,r,t)}):e(n,r,o)}}}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function k(e){return"[object String]"===Object.prototype.toString.call(e)}const b=i(function(e){return!!v(e)||!!e&&("object"==typeof e&&(!k(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function A(e,t,n){return function(r,o,s){if(b(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[w])return n(r,o,s[w]());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 T(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 S=a(function(e,t){return y(e.length,function(){return e.apply(t,arguments)})});function F(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 O(e,t,n,r){return e["@@transducer/result"](n[r](S(e["@@transducer/step"],e),t))}const E=A(T,O,F);var C=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 I=x(function(e,t,n){return E("function"==typeof e?new C(e):e,t,n)});const j=I;function D(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var $=x(D("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));const P=i(D("tail",$(1,1/0)));function L(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return y(arguments[0].length,j(g,arguments[0],P(arguments)))}const M=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const B="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var N=function(e,t){switch(arguments.length){case 0:return N;case 1:return function t(n){return 0===arguments.length?t:B(e,n)};default:return B(e,t)}};const R=N;function U(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function H(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}var q=Object.prototype.toString;const _=function(){return"[object Arguments]"===q.call(arguments)?function(e){return"[object Arguments]"===q.call(e)}:function(e){return c("callee",e)}}();var W=!{toString:null}.propertyIsEnumerable("toString"),G=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],z=function(){return arguments.propertyIsEnumerable("length")}(),Y=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},V="function"!=typeof Object.keys||z?i(function(e){if(Object(e)!==e)return[];var t,n,r=[],o=z&&_(e);for(t in e)!c(t,e)||o&&"length"===t||(r[r.length]=t);if(W)for(n=G.length-1;n>=0;)c(t=G[n],e)&&!Y(r,t)&&(r[r.length]=t),n-=1;return r}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const K=V;function X(e,t,n,r){var o=U(e);function s(e,t){return Q(e,t,n.slice(),r.slice())}return!H(function(e,t){return!H(s,t,e)},U(t),o)}function Q(e,t,n,r){if(B(e,t))return!0;var o=M(e);if(o!==M(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||!B(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!B(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&&X(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&X(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=K(e);if(i.length!==K(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(s=i.length-1;s>=0;){var p=i[s];if(!c(p,t)||!Q(t[p],e[p],a,l))return!1;s-=1}return!0}const J=a(function(e,t){return Q(e,t,[],[])});function Z(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(J(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function ee(e,t){for(var n=0,r=t.length,o=Array(r);n<r;)o[n]=e(t[n]),n+=1;return o}function te(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 ne=function(e){return(e<10?"0":"")+e};const re="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+ne(e.getUTCMonth()+1)+"-"+ne(e.getUTCDate())+"T"+ne(e.getUTCHours())+":"+ne(e.getUTCMinutes())+":"+ne(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function oe(e,t,n){for(var r=0,o=n.length;r<o;)t=e(t,n[r]),r+=1;return t}function se(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(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 ie(e){return"[object Object]"===Object.prototype.toString.call(e)}const ae=function(){return this.xf["@@transducer/init"]()},ce=function(e){return this.xf["@@transducer/result"](e)};var le=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ae,e.prototype["@@transducer/result"]=ce,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function pe(e){return function(t){return new le(e,t)}}var ue=a(se(["fantasy-land/filter","filter"],pe,function(e,t){return ie(t)?oe(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},K(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 de=ue;const he=a(function(e,t){return de((n=e,function(){return!n.apply(this,arguments)}),t);var n});function fe(e,t){var n=function(n){var r=t.concat([e]);return Z(n,r)?"<Circular>":fe(n,r)},r=function(e,t){return ee(function(t){return te(t)+": "+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ee(n,e).join(", ")+"))";case"[object Array]":return"["+ee(n,e).concat(r(e,he(function(e){return/^\d+$/.test(e)},K(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):te(re(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())+")":te(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,K(e)).join(", ")+"}"}}const me=i(function(e){return fe(e,[])}),ye=Number.isInteger||function(e){return(e|0)===e};function ge(e,t){var n=e<0?t.length+e:e;return k(t)?t.charAt(n):t[n]}const xe=x(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=ye(o)?ge(o,n):n[o]}return n}(t,n))});function ve(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ke=a(function(e,t){return e&&t});function be(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function we(e,t,n,r){return n[r](e,t)}const Ae=A(oe,we,be);var Te=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ae,e.prototype["@@transducer/result"]=ce,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Se=function(e){return function(t){return new Te(e,t)}};function Fe(e,t,n){return function(){for(var r=[],o=0,i=e,a=0,c=!1;a<t.length||o<arguments.length;){var l;a<t.length&&(!s(t[a])||o>=arguments.length)?l=t[a]:(l=arguments[o],o+=1),r[a]=l,s(l)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):y(Math.max(0,i),Fe(e,r,n))}}const Oe=a(function(e,t){return 1===e?i(t):y(e,Fe(e,[],t))});const Ee=a(se(["fantasy-land/map","map"],Se,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Oe(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return oe(function(n,r){return n[r]=e(t[r]),n},{},K(t));default:return ee(e,t)}}));const Ce=a(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))}:Ae(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,Ee(n,t))},[],e)});const Ie=a(function(e,t){var n=Oe(e,t);return Oe(e,function(){return oe(Ce,Ee(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});const je=i(function(e){return Ie(e.length,e)});const De=a(function(e,t){return ve(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:je(ke)(e,t)});const $e=J(null);const Pe=je(i(function(e){return!e}));const Le=Pe($e);function Me(e){return Me="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},Me(e)}const Be=function(e){return"object"===Me(e)};const Ne=Oe(1,De(Le,Be));const Re=a(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=me(e),i=n(s,me(t));return void 0!==i&&i===s?e:t});const Ue=a(function(e,t){if(null!=t)return ye(e)?ge(e,t):t[e]});var He=a(function(e,t){return Ee(Ue(e),t)});const qe=He;const _e=i(function(e){return Oe(j(Re,0,qe("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=Oe(1,L(M,R("GeneratorFunction")));const Ge=Oe(1,L(M,R("AsyncFunction")));const ze=_e([L(M,R("Function")),We,Ge]);var Ye=L(M,R("Object")),Ve=xe(De(ze,L(me,J(me(Object)))),["constructor"]);const Ke=Oe(1,function(e){if(!Ne(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!$e(t)||Ve(t)});const Xe=i(function(e){return Oe(j(Re,0,qe("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 Qe=i(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():v(e)?[]:k(e)?"":ie(e)?{}:_(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 Je=Qe;const Ze=i(function(e){return null!=e&&J(e,Je(e))});const et=i(function(e){return!Ze(e)});const tt=Oe(1,L(M,R("String")));const nt=a(function(e,t){return e||t});const rt=Xe([tt,Pe(Oe(1,De(Le,a(function(e,t){return ve(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:je(nt)(e,t)})(Be,ze)))),et]),ot=function(){const e=lt,t=ct,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,k,b)=>{const w=`${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(k),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(`${w}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=b,i=[{type:e.RNM,index:T}],v(0,0),i=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${w}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(): `,k=i[t];switch(f+=1,d>h&&(h=d),d+=1,y.refresh(),n.trace&&n.trace.down(k,s),k.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(k,y),n.trace&&n.trace.up(k,y.state,s,y.phraseLength),d-=1}},st=function(){const e=lt,t=ct,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}},it=function(){const e=lt,t=ct,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},at=function(){const e=lt;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}`)}}},ct={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}let o="";for(let e=0;e<r.length;e+=32768)o+=String.fromCodePoint.apply(null,r.slice(e,e+32768));return o},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;")}},lt={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 lt.ALT:return"ALT";case lt.CAT:return"CAT";case lt.REP:return"REP";case lt.RNM:return"RNM";case lt.TRG:return"TRG";case lt.TBS:return"TBS";case lt.TLS:return"TLS";case lt.UDT:return"UDT";case lt.AND:return"AND";case lt.NOT:return"NOT";case lt.ACTIVE:return"ACTIVE";case lt.EMPTY:return"EMPTY";case lt.MATCH:return"MATCH";case lt.NOMATCH:return"NOMATCH";case lt.SEM_PRE:return"SEM_PRE";case lt.SEM_POST:return"SEM_POST";case lt.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const pt=(e,t,n,r,o)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-url-template",ct.charsToString(t,n,r)])}return lt.SEM_OK},ut=(e,t,n,r,o)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-variable",ct.charsToString(t,n,r)])}return lt.SEM_OK},dt=(e,t,n,r,o)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["server-variable-name",ct.charsToString(t,n,r)])}return lt.SEM_OK},ht=(e,t,n,r,o)=>{if(e===lt.SEM_PRE){if(!1===Array.isArray(o))throw new Error("parser's user data must be an array");o.push(["literals",ct.charsToString(t,n,r)])}return lt.SEM_OK},ft=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'}},mt=e=>{const t=new ot;t.ast=new st,t.ast.callbacks["server-url-template"]=pt,t.ast.callbacks["server-variable"]=ut,t.ast.callbacks["server-variable-name"]=dt,t.ast.callbacks.literals=ht;return{result:t.parse(ft,"server-url-template",e),ast:t.ast}},yt=(e,{strict:t=!1}={})=>{try{const n=mt(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}},gt=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),xt=["literals","server-variable-name"],vt=(e,t,n={})=>{const r={...{encoder:gt},...n},o=mt(e);if(!o.result.success)return e;const s=[];o.ast.translate(s);const i=s.filter(([e])=>xt.includes(e)).map(([e,n])=>"server-variable-name"===e?Object.hasOwn(t,n)?r.encoder(t[n],n):`{${n}}`:n);return i.join("")},kt=require("@speclynx/apidom-error"),bt=require("@speclynx/apidom-reference/configuration/empty"),wt=Object.freeze({url:"/"});function At(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 Tt(e,t){return Array.isArray(e)&&e.some(e=>At(e,t))}class St extends File{constructor(e,t="",n={}){super([e],t,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const Ft=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Ot=e=>/^[a-z0-9\-._~]+$/i.test(e);function Et(e,t="reserved"){return[...e].map(e=>{if(Ot(e))return e;if(Ft(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 Ct(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=>It(e,o)).join(",");if("label"===n)return`.${t.map(e=>It(e,o)).join(".")}`;if("matrix"===n)return t.map(e=>It(e,o)).reduce((t,n)=>!t||r?`${t||""};${e}=${n}`:`${t},${n}`,"");if("form"===n){const n=r?`&${e}=`:",";return t.map(e=>It(e,o)).join(n)}if("spaceDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>It(e,o)).join(` ${n}`)}if("pipeDelimited"===n){const n=r?`${e}=`:"";return t.map(e=>It(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=It(t[n],o);return`${e?`${e},`:""}${n}${r?"=":","}${s}`},"");if("label"===n)return s.reduce((e,n)=>{const s=It(t[n],o);return`${e?`${e}.`:"."}${n}${r?"=":"."}${s}`},"");if("matrix"===n&&r)return s.reduce((e,n)=>`${e?`${e};`:";"}${n}=${It(t[n],o)}`,"");if("matrix"===n)return s.reduce((n,r)=>{const s=It(t[r],o);return`${n?`${n},`:`;${e}=`}${r},${s}`},"");if("form"===n)return s.reduce((e,n)=>{const s=It(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 It(t,r);if("label"===n)return`.${It(t,r)}`;if("matrix"===n)return`;${e}=${It(t,r)}`;if("form"===n)return It(t,r);if("deepObject"===n)return It(t,r);return}(e)}function It(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?Et(e,t):e??""}const jt={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Dt={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function $t(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(At(a)||Tt(a))return[[l,a]];if(s)return Pt(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 Pt(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 St(e,"blob",{type:i.contentType})]]}const e=c(String(a));return[[l,new St(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(Dt[r||"csv"])]]:[[l,""]]}function Pt(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=>It(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(jt[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(",")]]}const Lt=(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)};function Mt(e){const t=Object.keys(e).reduce((t,n)=>{for(const[r,o]of $t(n,e[n]))t[r]=o instanceof St?o.valueOf():o;return t},{});return Lt(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 At(t)||Tt(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 $t(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=Mt(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,Mt(n));e.url=r+i,delete e.query}return e}function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt,Ut,Ht,qt,_t,Wt,Gt,zt,Yt,Vt,Kt,Xt,Qt,Jt,Zt,en,tn,nn,rn,on,sn,an,cn,ln,pn,un,dn,hn,fn,mn,yn,gn,xn,vn,kn,bn,wn,An,Tn,Sn,Fn,On,En,Cn,In={},jn={},Dn={};function $n(){if(Rt)return Dn;function e(e){return null==e}return Rt=1,Dn.isNothing=e,Dn.isObject=function(e){return"object"==typeof e&&null!==e},Dn.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},Dn.repeat=function(e,t){let n="";for(let r=0;r<t;r+=1)n+=e;return n},Dn.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},Dn.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},Dn}function Pn(){if(Ht)return Ut;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 Ht=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},Ut=t}function Ln(){if(Gt)return Wt;Gt=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 Mn(){if(Yt)return zt;Yt=1;const e=Pn(),t=Ln();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},zt=r}function Bn(){if(Kt)return Vt;Kt=1;const e=Ln();return Vt=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Nn(){if(Qt)return Xt;Qt=1;const e=Ln();return Xt=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function Rn(){if(Zt)return Jt;Zt=1;const e=Ln();return Jt=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function Un(){if(tn)return en;tn=1;const e=Mn();return en=new e({explicit:[Bn(),Nn(),Rn()]})}function Hn(){if(rn)return nn;rn=1;const e=Ln();return nn=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"}),nn}function qn(){if(sn)return on;sn=1;const e=Ln();return on=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"}),on}function _n(){if(cn)return an;cn=1;const e=$n(),t=Ln();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 an=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"]}}),an}function Wn(){if(pn)return ln;pn=1;const e=$n(),t=Ln(),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 ln=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 Gn(){return dn?un:(dn=1,un=Un().extend({implicit:[Hn(),qn(),_n(),Wn()]}))}function zn(){return fn?hn:(fn=1,hn=Gn())}function Yn(){if(yn)return mn;yn=1;const e=Ln(),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 mn=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()}}),mn}function Vn(){if(xn)return gn;xn=1;const e=Ln();return gn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function Kn(){if(kn)return vn;kn=1;const e=Ln(),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 Xn(){if(wn)return bn;wn=1;const e=Ln(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return bn=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(Tn)return An;Tn=1;const e=Ln(),t=Object.prototype.toString;return An=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}}),An}function Jn(){if(Fn)return Sn;Fn=1;const e=Ln(),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 Zn(){return En?On:(En=1,On=zn().extend({implicit:[Yn(),Vn()],explicit:[Kn(),Xn(),Qn(),Jn()]}))}function er(){if(Cn)return jn;Cn=1;const e=$n(),t=Pn(),n=function(){if(_t)return qt;_t=1;const e=$n();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 qt=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$/,"")},qt}(),r=Zn(),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 k(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}const b=new Array(256),w=new Array(256);for(let e=0;e<256;e++)b[e]=x(e)?1:0,w[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 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 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)||(k(n,a,r[a]),s[a]=!0)}}function P(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")),k(t,s,i),delete n[s];return t}function L(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(L(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(W(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),k=e.line;if(63!==x&&58!==x||!h(v)){if(o=e.line,s=e.lineStart,i=e.position,!W(e,n,2,!1,!0))break;if(e.line===k){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&&(P(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&&(P(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===k||e.lineIndent>t)&&(y&&(o=e.line,s=e.lineStart,i=e.position),W(e,t,4,!0,r)&&(y?f=e.result:m=e.result),y||(P(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===k||e.lineIndent>t)&&0!==x)S(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&P(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=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,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),C(e,s),!1)}function W(t,n,r,s,i){let a,c,l,p,x,k=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 C=a=c=4===r||3===r;if(s&&M(t,!0,-1)&&(A=!0,t.lineIndent>n?k=1:t.lineIndent===n?k=0:t.lineIndent<n&&(k=-1)),1===k)for(;;){const e=t.input.charCodeAt(t.position),r=E(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=C,t.lineIndent>n?k=1:t.lineIndent===n?k=0:t.lineIndent<n&&(k=-1)):c=!1}if(c&&(c=A||i),1===k||4===r)if(p=1===r||2===r?n:n+1,x=t.position-t.lineStart,1===k)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,W(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),W(e,t,1,!1,!0),g=e.result),d?P(e,a,f,y,m,g,n,r,o):p?a.push(P(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&&C&&!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(L(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&&b[s])e.result+=w[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===k&&(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 G(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&&L(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"),W(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;)G(n);return n.documents}return jn.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])},jn.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")}},jn}var tr,nr,rr={};function or(){if(tr)return rr;tr=1;const e=$n(),t=Pn(),n=Zn(),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 k=-1,b=f(w=g(e,0))&&w!==s&&!h(w)&&45!==w&&63!==w&&58!==w&&44!==w&&91!==w&&93!==w&&123!==w&&125!==w&&35!==w&&38!==w&&42!==w&&33!==w&&124!==w&&61!==w&&62!==w&&39!==w&&34!==w&&37!==w&&64!==w&&96!==w&&function(e){return!h(e)&&58!==e}(g(e,e.length-1));var w;if(t||a)for(l=0;l<e.length;p>=65536?l+=2:l++){if(p=g(e,l),!f(p))return 5;b=b&&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-k-1>r&&" "!==e[k+1],k=l);else if(!f(p))return 5;b=b&&y(p,u,c),u=p}m=m||v&&l-k-1>r&&" "!==e[k+1]}return d||m?n>9&&x(e)?5:a?2===i?5:2:m?4:3:!b||a||o(e)?2===i?5:2:1}function k(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"|"+b(n,e.indent)+w(u(n,p));case 4:return">"+b(n,e.indent)+w(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 b(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 w(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&&k(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=[];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 rr.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":""},rr}const sr=Nt(function(){if(nr)return In;nr=1;const e=er(),t=or();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=Ln(),In.Schema=Mn(),In.FAILSAFE_SCHEMA=Un(),In.JSON_SCHEMA=Gn(),In.CORE_SCHEMA=zn(),In.DEFAULT_SCHEMA=Zn(),In.load=e.load,In.loadAll=e.loadAll,In.dump=t.dump,In.YAMLException=Pn(),In.types={binary:Kn(),float:Wn(),map:Rn(),null:Hn(),pairs:Qn(),set:Jn(),timestamp:Yn(),bool:qn(),int:_n(),merge:Vn(),omap:Xn(),seq:Nn(),str:Bn()},In.safeLoad=n("safeLoad","load"),In.safeLoadAll=n("safeLoadAll","loadAll"),In.safeDump=n("safeDump","dump"),In}()),{Type:ir,Schema:ar,FAILSAFE_SCHEMA:cr,JSON_SCHEMA:lr,CORE_SCHEMA:pr,DEFAULT_SCHEMA:ur,load:dr,loadAll:hr,dump:fr,YAMLException:mr,types:yr,safeLoad:gr,safeLoadAll:xr,safeDump:vr}=sr,kr=(e="")=>/(json|xml|yaml|text)\b/.test(e);function br(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=function(e){return o()(e).call(e,", ")?e.split(", "):e}(n),e),{})}function wr(e,t,{loadSpec:n=!1}={}){const r={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:br(e.headers)},o=r.headers["content-type"],s=n||kr(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 sr.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===lt.SEM_PRE){const t={type:e,text:ct.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===lt.SEM_POST&&s.stack.pop()};const Sr=class extends st{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}}},Er=e=>(t,n,r,o,s)=>{if(t===lt.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push([e,ct.charsToString(n,r,o)])}return lt.SEM_OK};const Cr=class extends st{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 Ir=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}};const jr=class extends it{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 Pr=class extends $r{},Lr=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 ot;t&&(o.ast=t),n&&(o.stats=new at),r&&(o.trace=new jr);const s=o.parse(Lr,"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 ot;t.ast=new Cr,t.parse(Lr,"path-template",e),i=t.ast}return i}}}catch(t){throw new Pr("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("")},Wr=(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},Gr=e=>Wr(e,!1),zr=e=>Wr(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:Gr,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 Pr(`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)}`},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=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:Qr),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 ot;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 o()(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=x(function(e,t,n){var r,o={};for(r in n=n||{},t=t||{})c(r,t)&&(o[r]=c(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o});const no=x(function e(t,n,r){return to(function(n,r,o){return ie(r)&&ie(o)?e(t,r,o):t(n,r,o)},n,r)});const ro=a(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:"recovering-cookie-string",lower:"recovering-cookie-string",index:9,isBkr:!1},this.rules[10]={name:"recovering-cookie-segment",lower:"recovering-cookie-segment",index:10,isBkr:!1},this.rules[11]={name:"recovering-cookie-pair",lower:"recovering-cookie-pair",index:11,isBkr:!1},this.rules[12]={name:"recovering-lenient-cookie-string",lower:"recovering-lenient-cookie-string",index:12,isBkr:!1},this.rules[13]={name:"recovering-lenient-cookie-segment",lower:"recovering-lenient-cookie-segment",index:13,isBkr:!1},this.rules[14]={name:"recovering-lenient-cookie-pair",lower:"recovering-lenient-cookie-pair",index:14,isBkr:!1},this.rules[15]={name:"recovering-lenient-cookie-value",lower:"recovering-lenient-cookie-value",index:15,isBkr:!1},this.rules[16]={name:"recovering-lenient-quoted-value",lower:"recovering-lenient-quoted-value",index:16,isBkr:!1},this.rules[17]={name:"recovering-lenient-quoted-char",lower:"recovering-lenient-quoted-char",index:17,isBkr:!1},this.rules[18]={name:"recovering-cookie-pair-end",lower:"recovering-cookie-pair-end",index:18,isBkr:!1},this.rules[19]={name:"recovering-cookie-skipped",lower:"recovering-cookie-skipped",index:19,isBkr:!1},this.rules[20]={name:"recovering-cookie-skipped-char",lower:"recovering-cookie-skipped-char",index:20,isBkr:!1},this.rules[21]={name:"lenient-set-cookie-string",lower:"lenient-set-cookie-string",index:21,isBkr:!1},this.rules[22]={name:"lenient-set-cookie-pair",lower:"lenient-set-cookie-pair",index:22,isBkr:!1},this.rules[23]={name:"lenient-set-cookie-name",lower:"lenient-set-cookie-name",index:23,isBkr:!1},this.rules[24]={name:"lenient-set-cookie-value",lower:"lenient-set-cookie-value",index:24,isBkr:!1},this.rules[25]={name:"lenient-cookie-av",lower:"lenient-cookie-av",index:25,isBkr:!1},this.rules[26]={name:"lenient-cookie-av-name",lower:"lenient-cookie-av-name",index:26,isBkr:!1},this.rules[27]={name:"lenient-cookie-av-value",lower:"lenient-cookie-av-value",index:27,isBkr:!1},this.rules[28]={name:"lenient-name-char",lower:"lenient-name-char",index:28,isBkr:!1},this.rules[29]={name:"lenient-value-char",lower:"lenient-value-char",index:29,isBkr:!1},this.rules[30]={name:"cookie-string",lower:"cookie-string",index:30,isBkr:!1},this.rules[31]={name:"cookie-pair",lower:"cookie-pair",index:31,isBkr:!1},this.rules[32]={name:"cookie-name",lower:"cookie-name",index:32,isBkr:!1},this.rules[33]={name:"cookie-value",lower:"cookie-value",index:33,isBkr:!1},this.rules[34]={name:"cookie-octet",lower:"cookie-octet",index:34,isBkr:!1},this.rules[35]={name:"set-cookie-string",lower:"set-cookie-string",index:35,isBkr:!1},this.rules[36]={name:"cookie-av",lower:"cookie-av",index:36,isBkr:!1},this.rules[37]={name:"expires-av",lower:"expires-av",index:37,isBkr:!1},this.rules[38]={name:"sane-cookie-date",lower:"sane-cookie-date",index:38,isBkr:!1},this.rules[39]={name:"max-age-av",lower:"max-age-av",index:39,isBkr:!1},this.rules[40]={name:"non-zero-digit",lower:"non-zero-digit",index:40,isBkr:!1},this.rules[41]={name:"domain-av",lower:"domain-av",index:41,isBkr:!1},this.rules[42]={name:"domain-value",lower:"domain-value",index:42,isBkr:!1},this.rules[43]={name:"path-av",lower:"path-av",index:43,isBkr:!1},this.rules[44]={name:"path-value",lower:"path-value",index:44,isBkr:!1},this.rules[45]={name:"secure-av",lower:"secure-av",index:45,isBkr:!1},this.rules[46]={name:"httponly-av",lower:"httponly-av",index:46,isBkr:!1},this.rules[47]={name:"extension-av",lower:"extension-av",index:47,isBkr:!1},this.rules[48]={name:"av-octet",lower:"av-octet",index:48,isBkr:!1},this.rules[49]={name:"subdomain",lower:"subdomain",index:49,isBkr:!1},this.rules[50]={name:"label",lower:"label",index:50,isBkr:!1},this.rules[51]={name:"let-dig",lower:"let-dig",index:51,isBkr:!1},this.rules[52]={name:"rfc1123-date",lower:"rfc1123-date",index:52,isBkr:!1},this.rules[53]={name:"date1",lower:"date1",index:53,isBkr:!1},this.rules[54]={name:"time",lower:"time",index:54,isBkr:!1},this.rules[55]={name:"wkday",lower:"wkday",index:55,isBkr:!1},this.rules[56]={name:"month",lower:"month",index:56,isBkr:!1},this.rules[57]={name:"OWS",lower:"ows",index:57,isBkr:!1},this.rules[58]={name:"token",lower:"token",index:58,isBkr:!1},this.rules[59]={name:"tchar",lower:"tchar",index:59,isBkr:!1},this.rules[60]={name:"CHAR",lower:"char",index:60,isBkr:!1},this.rules[61]={name:"CTL",lower:"ctl",index:61,isBkr:!1},this.rules[62]={name:"separators",lower:"separators",index:62,isBkr:!1},this.rules[63]={name:"SP",lower:"sp",index:63,isBkr:!1},this.rules[64]={name:"HT",lower:"ht",index:64,isBkr:!1},this.rules[65]={name:"ALPHA",lower:"alpha",index:65,isBkr:!1},this.rules[66]={name:"DIGIT",lower:"digit",index:66,isBkr:!1},this.rules[67]={name:"DQUOTE",lower:"dquote",index:67,isBkr:!1},this.rules[68]={name:"WSP",lower:"wsp",index:68,isBkr:!1},this.rules[69]={name:"HTAB",lower:"htab",index:69,isBkr:!1},this.rules[70]={name:"CRLF",lower:"crlf",index:70,isBkr:!1},this.rules[71]={name:"CR",lower:"cr",index:71,isBkr:!1},this.rules[72]={name:"LF",lower:"lf",index:72,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:57},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:57},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:57},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:57},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:57},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:57},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:59},this.rules[3].opcodes[4]={type:4,index:57},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:67},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:67},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:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,6]},this.rules[10].opcodes[1]={type:4,index:57},this.rules[10].opcodes[2]={type:3,min:0,max:1},this.rules[10].opcodes[3]={type:1,children:[4,5]},this.rules[10].opcodes[4]={type:4,index:11},this.rules[10].opcodes[5]={type:4,index:19},this.rules[10].opcodes[6]={type:4,index:57},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2]},this.rules[11].opcodes[1]={type:4,index:31},this.rules[11].opcodes[2]={type:12},this.rules[11].opcodes[3]={type:4,index:18},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,2]},this.rules[12].opcodes[1]={type:4,index:13},this.rules[12].opcodes[2]={type:3,min:0,max:1/0},this.rules[12].opcodes[3]={type:2,children:[4,5]},this.rules[12].opcodes[4]={type:7,string:[59]},this.rules[12].opcodes[5]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:2,children:[1,2,6]},this.rules[13].opcodes[1]={type:4,index:57},this.rules[13].opcodes[2]={type:3,min:0,max:1},this.rules[13].opcodes[3]={type:1,children:[4,5]},this.rules[13].opcodes[4]={type:4,index:14},this.rules[13].opcodes[5]={type:4,index:19},this.rules[13].opcodes[6]={type:4,index:57},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3,4,5,6]},this.rules[14].opcodes[1]={type:4,index:4},this.rules[14].opcodes[2]={type:4,index:57},this.rules[14].opcodes[3]={type:7,string:[61]},this.rules[14].opcodes[4]={type:4,index:57},this.rules[14].opcodes[5]={type:4,index:15},this.rules[14].opcodes[6]={type:12},this.rules[14].opcodes[7]={type:4,index:18},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,6]},this.rules[15].opcodes[1]={type:2,children:[2,3]},this.rules[15].opcodes[2]={type:4,index:16},this.rules[15].opcodes[3]={type:3,min:0,max:1},this.rules[15].opcodes[4]={type:3,min:0,max:1/0},this.rules[15].opcodes[5]={type:4,index:8},this.rules[15].opcodes[6]={type:3,min:0,max:1/0},this.rules[15].opcodes[7]={type:4,index:8},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,2,4]},this.rules[16].opcodes[1]={type:4,index:67},this.rules[16].opcodes[2]={type:3,min:0,max:1/0},this.rules[16].opcodes[3]={type:4,index:17},this.rules[16].opcodes[4]={type:4,index:67},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3]},this.rules[17].opcodes[1]={type:5,min:32,max:33},this.rules[17].opcodes[2]={type:5,min:35,max:58},this.rules[17].opcodes[3]={type:5,min:60,max:126},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:2,children:[1,2]},this.rules[18].opcodes[1]={type:4,index:57},this.rules[18].opcodes[2]={type:1,children:[3,4]},this.rules[18].opcodes[3]={type:7,string:[59]},this.rules[18].opcodes[4]={type:13},this.rules[18].opcodes[5]={type:5,min:0,max:1114111},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:2,children:[1,2]},this.rules[19].opcodes[1]={type:4,index:20},this.rules[19].opcodes[2]={type:3,min:0,max:1/0},this.rules[19].opcodes[3]={type:2,children:[4,5]},this.rules[19].opcodes[4]={type:4,index:57},this.rules[19].opcodes[5]={type:4,index:20},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[20].opcodes[1]={type:5,min:0,max:8},this.rules[20].opcodes[2]={type:5,min:10,max:31},this.rules[20].opcodes[3]={type:5,min:33,max:58},this.rules[20].opcodes[4]={type:5,min:60,max:1114111},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2]},this.rules[21].opcodes[1]={type:4,index:22},this.rules[21].opcodes[2]={type:3,min:0,max:1/0},this.rules[21].opcodes[3]={type:2,children:[4,5]},this.rules[21].opcodes[4]={type:7,string:[59]},this.rules[21].opcodes[5]={type:4,index:25},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,3,4,6,7,9,10]},this.rules[22].opcodes[1]={type:3,min:0,max:1/0},this.rules[22].opcodes[2]={type:4,index:68},this.rules[22].opcodes[3]={type:4,index:23},this.rules[22].opcodes[4]={type:3,min:0,max:1/0},this.rules[22].opcodes[5]={type:4,index:68},this.rules[22].opcodes[6]={type:7,string:[61]},this.rules[22].opcodes[7]={type:3,min:0,max:1/0},this.rules[22].opcodes[8]={type:4,index:68},this.rules[22].opcodes[9]={type:4,index:24},this.rules[22].opcodes[10]={type:3,min:0,max:1/0},this.rules[22].opcodes[11]={type:4,index:68},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:2,children:[1,2]},this.rules[23].opcodes[1]={type:4,index:28},this.rules[23].opcodes[2]={type:3,min:0,max:1/0},this.rules[23].opcodes[3]={type:2,children:[4,6]},this.rules[23].opcodes[4]={type:3,min:0,max:1/0},this.rules[23].opcodes[5]={type:4,index:68},this.rules[23].opcodes[6]={type:4,index:28},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:3,min:0,max:1},this.rules[24].opcodes[1]={type:2,children:[2,3]},this.rules[24].opcodes[2]={type:4,index:29},this.rules[24].opcodes[3]={type:3,min:0,max:1/0},this.rules[24].opcodes[4]={type:2,children:[5,7]},this.rules[24].opcodes[5]={type:3,min:0,max:1/0},this.rules[24].opcodes[6]={type:4,index:68},this.rules[24].opcodes[7]={type:4,index:29},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,3,4,6]},this.rules[25].opcodes[1]={type:3,min:0,max:1/0},this.rules[25].opcodes[2]={type:4,index:68},this.rules[25].opcodes[3]={type:4,index:26},this.rules[25].opcodes[4]={type:3,min:0,max:1/0},this.rules[25].opcodes[5]={type:4,index:68},this.rules[25].opcodes[6]={type:3,min:0,max:1},this.rules[25].opcodes[7]={type:2,children:[8,9,11,12]},this.rules[25].opcodes[8]={type:7,string:[61]},this.rules[25].opcodes[9]={type:3,min:0,max:1/0},this.rules[25].opcodes[10]={type:4,index:68},this.rules[25].opcodes[11]={type:4,index:27},this.rules[25].opcodes[12]={type:3,min:0,max:1/0},this.rules[25].opcodes[13]={type:4,index:68},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:3,min:0,max:1},this.rules[26].opcodes[1]={type:2,children:[2,3]},this.rules[26].opcodes[2]={type:4,index:28},this.rules[26].opcodes[3]={type:3,min:0,max:1/0},this.rules[26].opcodes[4]={type:2,children:[5,7]},this.rules[26].opcodes[5]={type:3,min:0,max:1/0},this.rules[26].opcodes[6]={type:4,index:68},this.rules[26].opcodes[7]={type:4,index:28},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:3,min:0,max:1},this.rules[27].opcodes[1]={type:2,children:[2,3]},this.rules[27].opcodes[2]={type:4,index:29},this.rules[27].opcodes[3]={type:3,min:0,max:1/0},this.rules[27].opcodes[4]={type:2,children:[5,7]},this.rules[27].opcodes[5]={type:3,min:0,max:1/0},this.rules[27].opcodes[6]={type:4,index:68},this.rules[27].opcodes[7]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[28].opcodes[1]={type:5,min:33,max:58},this.rules[28].opcodes[2]={type:6,string:[60]},this.rules[28].opcodes[3]={type:5,min:62,max:126},this.rules[28].opcodes[4]={type:5,min:128,max:1114111},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:1,children:[1,2,3]},this.rules[29].opcodes[1]={type:5,min:33,max:58},this.rules[29].opcodes[2]={type:5,min:60,max:126},this.rules[29].opcodes[3]={type:5,min:128,max:1114111},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2]},this.rules[30].opcodes[1]={type:4,index:31},this.rules[30].opcodes[2]={type:3,min:0,max:1/0},this.rules[30].opcodes[3]={type:2,children:[4,5,6]},this.rules[30].opcodes[4]={type:7,string:[59]},this.rules[30].opcodes[5]={type:4,index:63},this.rules[30].opcodes[6]={type:4,index:31},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,2,3]},this.rules[31].opcodes[1]={type:4,index:32},this.rules[31].opcodes[2]={type:7,string:[61]},this.rules[31].opcodes[3]={type:4,index:33},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:4,index:58},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:1,children:[1,6]},this.rules[33].opcodes[1]={type:2,children:[2,3,5]},this.rules[33].opcodes[2]={type:4,index:67},this.rules[33].opcodes[3]={type:3,min:0,max:1/0},this.rules[33].opcodes[4]={type:4,index:34},this.rules[33].opcodes[5]={type:4,index:67},this.rules[33].opcodes[6]={type:3,min:0,max:1/0},this.rules[33].opcodes[7]={type:4,index:34},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[34].opcodes[1]={type:6,string:[33]},this.rules[34].opcodes[2]={type:5,min:35,max:43},this.rules[34].opcodes[3]={type:5,min:45,max:58},this.rules[34].opcodes[4]={type:5,min:60,max:91},this.rules[34].opcodes[5]={type:5,min:93,max:126},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:2,children:[1,2]},this.rules[35].opcodes[1]={type:4,index:31},this.rules[35].opcodes[2]={type:3,min:0,max:1/0},this.rules[35].opcodes[3]={type:2,children:[4,5,6]},this.rules[35].opcodes[4]={type:7,string:[59]},this.rules[35].opcodes[5]={type:4,index:63},this.rules[35].opcodes[6]={type:4,index:36},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:4,index:47},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2]},this.rules[37].opcodes[1]={type:7,string:[101,120,112,105,114,101,115,61]},this.rules[37].opcodes[2]={type:4,index:38},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:4,index:52},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2,3]},this.rules[39].opcodes[1]={type:7,string:[109,97,120,45,97,103,101,61]},this.rules[39].opcodes[2]={type:4,index:40},this.rules[39].opcodes[3]={type:3,min:0,max:1/0},this.rules[39].opcodes[4]={type:4,index:66},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:5,min:49,max:57},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:2,children:[1,2]},this.rules[41].opcodes[1]={type:7,string:[100,111,109,97,105,110,61]},this.rules[41].opcodes[2]={type:4,index:42},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:4,index:49},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:2,children:[1,2]},this.rules[43].opcodes[1]={type:7,string:[112,97,116,104,61]},this.rules[43].opcodes[2]={type:4,index:44},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:4,index:48},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:7,string:[115,101,99,117,114,101]},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:7,string:[104,116,116,112,111,110,108,121]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:3,min:0,max:1/0},this.rules[47].opcodes[1]={type:4,index:48},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:1,children:[1,2]},this.rules[48].opcodes[1]={type:5,min:32,max:58},this.rules[48].opcodes[2]={type:5,min:60,max:126},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2]},this.rules[49].opcodes[1]={type:4,index:50},this.rules[49].opcodes[2]={type:3,min:0,max:1/0},this.rules[49].opcodes[3]={type:2,children:[4,5]},this.rules[49].opcodes[4]={type:7,string:[46]},this.rules[49].opcodes[5]={type:4,index:50},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:2,children:[1,2]},this.rules[50].opcodes[1]={type:4,index:51},this.rules[50].opcodes[2]={type:3,min:0,max:1/0},this.rules[50].opcodes[3]={type:2,children:[4,6]},this.rules[50].opcodes[4]={type:3,min:0,max:1/0},this.rules[50].opcodes[5]={type:7,string:[45]},this.rules[50].opcodes[6]={type:4,index:51},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:1,children:[1,2]},this.rules[51].opcodes[1]={type:4,index:65},this.rules[51].opcodes[2]={type:4,index:66},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:2,children:[1,2,3,4,5,6,7,8]},this.rules[52].opcodes[1]={type:4,index:55},this.rules[52].opcodes[2]={type:7,string:[44]},this.rules[52].opcodes[3]={type:4,index:63},this.rules[52].opcodes[4]={type:4,index:53},this.rules[52].opcodes[5]={type:4,index:63},this.rules[52].opcodes[6]={type:4,index:54},this.rules[52].opcodes[7]={type:4,index:63},this.rules[52].opcodes[8]={type:6,string:[71,77,84]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,3,4,5,6]},this.rules[53].opcodes[1]={type:3,min:2,max:2},this.rules[53].opcodes[2]={type:4,index:66},this.rules[53].opcodes[3]={type:4,index:63},this.rules[53].opcodes[4]={type:4,index:56},this.rules[53].opcodes[5]={type:4,index:63},this.rules[53].opcodes[6]={type:3,min:4,max:4},this.rules[53].opcodes[7]={type:4,index:66},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:2,children:[1,3,4,6,7]},this.rules[54].opcodes[1]={type:3,min:2,max:2},this.rules[54].opcodes[2]={type:4,index:66},this.rules[54].opcodes[3]={type:7,string:[58]},this.rules[54].opcodes[4]={type:3,min:2,max:2},this.rules[54].opcodes[5]={type:4,index:66},this.rules[54].opcodes[6]={type:7,string:[58]},this.rules[54].opcodes[7]={type:3,min:2,max:2},this.rules[54].opcodes[8]={type:4,index:66},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[55].opcodes[1]={type:6,string:[77,111,110]},this.rules[55].opcodes[2]={type:6,string:[84,117,101]},this.rules[55].opcodes[3]={type:6,string:[87,101,100]},this.rules[55].opcodes[4]={type:6,string:[84,104,117]},this.rules[55].opcodes[5]={type:6,string:[70,114,105]},this.rules[55].opcodes[6]={type:6,string:[83,97,116]},this.rules[55].opcodes[7]={type:6,string:[83,117,110]},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12]},this.rules[56].opcodes[1]={type:6,string:[74,97,110]},this.rules[56].opcodes[2]={type:6,string:[70,101,98]},this.rules[56].opcodes[3]={type:6,string:[77,97,114]},this.rules[56].opcodes[4]={type:6,string:[65,112,114]},this.rules[56].opcodes[5]={type:6,string:[77,97,121]},this.rules[56].opcodes[6]={type:6,string:[74,117,110]},this.rules[56].opcodes[7]={type:6,string:[74,117,108]},this.rules[56].opcodes[8]={type:6,string:[65,117,103]},this.rules[56].opcodes[9]={type:6,string:[83,101,112]},this.rules[56].opcodes[10]={type:6,string:[79,99,116]},this.rules[56].opcodes[11]={type:6,string:[78,111,118]},this.rules[56].opcodes[12]={type:6,string:[68,101,99]},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:3,min:0,max:1/0},this.rules[57].opcodes[1]={type:2,children:[2,4]},this.rules[57].opcodes[2]={type:3,min:0,max:1},this.rules[57].opcodes[3]={type:4,index:70},this.rules[57].opcodes[4]={type:4,index:68},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:3,min:1,max:1/0},this.rules[58].opcodes[1]={type:4,index:59},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[59].opcodes[1]={type:7,string:[33]},this.rules[59].opcodes[2]={type:7,string:[35]},this.rules[59].opcodes[3]={type:7,string:[36]},this.rules[59].opcodes[4]={type:7,string:[37]},this.rules[59].opcodes[5]={type:7,string:[38]},this.rules[59].opcodes[6]={type:7,string:[39]},this.rules[59].opcodes[7]={type:7,string:[42]},this.rules[59].opcodes[8]={type:7,string:[43]},this.rules[59].opcodes[9]={type:7,string:[45]},this.rules[59].opcodes[10]={type:7,string:[46]},this.rules[59].opcodes[11]={type:7,string:[94]},this.rules[59].opcodes[12]={type:7,string:[95]},this.rules[59].opcodes[13]={type:7,string:[96]},this.rules[59].opcodes[14]={type:7,string:[124]},this.rules[59].opcodes[15]={type:7,string:[126]},this.rules[59].opcodes[16]={type:4,index:66},this.rules[59].opcodes[17]={type:4,index:65},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:5,min:1,max:127},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:1,children:[1,2]},this.rules[61].opcodes[1]={type:5,min:0,max:31},this.rules[61].opcodes[2]={type:6,string:[127]},this.rules[62].opcodes=[],this.rules[62].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[62].opcodes[1]={type:7,string:[40]},this.rules[62].opcodes[2]={type:7,string:[41]},this.rules[62].opcodes[3]={type:7,string:[60]},this.rules[62].opcodes[4]={type:7,string:[62]},this.rules[62].opcodes[5]={type:7,string:[64]},this.rules[62].opcodes[6]={type:7,string:[44]},this.rules[62].opcodes[7]={type:7,string:[59]},this.rules[62].opcodes[8]={type:7,string:[58]},this.rules[62].opcodes[9]={type:7,string:[92]},this.rules[62].opcodes[10]={type:6,string:[34]},this.rules[62].opcodes[11]={type:7,string:[47]},this.rules[62].opcodes[12]={type:7,string:[91]},this.rules[62].opcodes[13]={type:7,string:[93]},this.rules[62].opcodes[14]={type:7,string:[63]},this.rules[62].opcodes[15]={type:7,string:[61]},this.rules[62].opcodes[16]={type:7,string:[123]},this.rules[62].opcodes[17]={type:7,string:[125]},this.rules[62].opcodes[18]={type:4,index:63},this.rules[62].opcodes[19]={type:4,index:64},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:6,string:[32]},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:6,string:[9]},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:1,children:[1,2]},this.rules[65].opcodes[1]={type:5,min:65,max:90},this.rules[65].opcodes[2]={type:5,min:97,max:122},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:5,min:48,max:57},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:6,string:[34]},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:1,children:[1,2]},this.rules[68].opcodes[1]={type:4,index:63},this.rules[68].opcodes[2]={type:4,index:69},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:6,string:[9]},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:2,children:[1,2]},this.rules[70].opcodes[1]={type:4,index:71},this.rules[70].opcodes[2]={type:4,index:72},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:6,string:[13]},this.rules[72].opcodes=[],this.rules[72].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+="; Recovering versions of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='; The cookie string is cut into segments at every ";". Each segment is either a cookie pair followed by\n',e+="; the end of the segment, or skipped whole. Empty segments are allowed, so any input matches.\n",e+='recovering-cookie-string = recovering-cookie-segment *( ";" recovering-cookie-segment )\n',e+="recovering-cookie-segment = OWS [ recovering-cookie-pair / recovering-cookie-skipped ] OWS\n",e+="recovering-cookie-pair = cookie-pair &recovering-cookie-pair-end\n",e+='recovering-lenient-cookie-string = recovering-lenient-cookie-segment *( ";" recovering-lenient-cookie-segment )\n',e+="recovering-lenient-cookie-segment = OWS [ recovering-lenient-cookie-pair / recovering-cookie-skipped ] OWS\n",e+='recovering-lenient-cookie-pair = lenient-cookie-name OWS "=" OWS recovering-lenient-cookie-value &recovering-cookie-pair-end\n',e+="recovering-lenient-cookie-value = recovering-lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\n",e+="recovering-lenient-quoted-value = DQUOTE *( recovering-lenient-quoted-char ) DQUOTE\n",e+='recovering-lenient-quoted-char = %x20-21 / %x23-3A / %x3C-7E ; lenient-quoted-char except ";"\n',e+='recovering-cookie-pair-end = OWS ( ";" / !%x00-10FFFF ) ; followed by ";" or by the end of the cookie string\n',e+="recovering-cookie-skipped = recovering-cookie-skipped-char *( OWS recovering-cookie-skipped-char )\n",e+=" ; leading and trailing whitespace is not part of the skipped segment\n",e+='recovering-cookie-skipped-char = %x00-08 / %x0A-1F / %x21-3A / %x3C-10FFFF ; any character except SP, HTAB and ";"\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; Recovering versions of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n; The cookie string is cut into segments at every ";". Each segment is either a cookie pair followed by\n; the end of the segment, or skipped whole. Empty segments are allowed, so any input matches.\nrecovering-cookie-string = recovering-cookie-segment *( ";" recovering-cookie-segment )\nrecovering-cookie-segment = OWS [ recovering-cookie-pair / recovering-cookie-skipped ] OWS\nrecovering-cookie-pair = cookie-pair &recovering-cookie-pair-end\nrecovering-lenient-cookie-string = recovering-lenient-cookie-segment *( ";" recovering-lenient-cookie-segment )\nrecovering-lenient-cookie-segment = OWS [ recovering-lenient-cookie-pair / recovering-cookie-skipped ] OWS\nrecovering-lenient-cookie-pair = lenient-cookie-name OWS "=" OWS recovering-lenient-cookie-value &recovering-cookie-pair-end\nrecovering-lenient-cookie-value = recovering-lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\nrecovering-lenient-quoted-value = DQUOTE *( recovering-lenient-quoted-char ) DQUOTE\nrecovering-lenient-quoted-char = %x20-21 / %x23-3A / %x3C-7E ; lenient-quoted-char except ";"\nrecovering-cookie-pair-end = OWS ( ";" / !%x00-10FFFF ) ; followed by ";" or by the end of the cookie string\nrecovering-cookie-skipped = recovering-cookie-skipped-char *( OWS recovering-cookie-skipped-char )\n ; leading and trailing whitespace is not part of the skipped segment\nrecovering-cookie-skipped-char = %x00-08 / %x0A-1F / %x21-3A / %x3C-10FFFF ; any character except SP, HTAB and ";"\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 ot,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 ot,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}},ko=require("buffer"),bo=e=>ko.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},Ao=e=>bo(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),To=e=>wo(e,Ao),So=e=>{if(!yo(e))throw new TypeError(`Invalid cookie name: ${e}`)},Fo=e=>{if(!vo(e))throw new TypeError(`Invalid cookie value: ${e}`)},Oo=new ot,Eo=new oo,Co=(e,t)=>{try{return Oo.parse(Eo,e,t).success}catch{return!1}},Io={strict:"Strict",lax:"Lax",none:"None"},jo={low:"Low",medium:"Medium",high:"High"},Do=({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=Io[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=jo[String(e).toLowerCase()];if(void 0===t)throw new TypeError(`Invalid Set-Cookie Priority attribute: ${String(e)}`);return`Priority=${t}`})(c)),l},$o={encoders:{name:lo,value:To},validators:{name:So,value:Fo}},Po=(e,t,n={})=>{const r={...$o,...n,encoders:{...$o.encoders,...n.encoders},validators:{...$o.validators,...n.validators}},o=r.encoders.name(e),s=r.encoders.value(t);r.validators.name(o),r.validators.value(s);return[`${o}=${s}`,...Do(r)].join("; ")},Lo=(e,{encoders:t,validators:n}={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,r])=>Po(e,r,{encoders:t,validators:n})).join("; ");new oo;const Mo=new ot,Bo=new oo,No=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+=Mo.parse(Bo,"cookie-octet",e).success?e:so(e);return n?co(o):o};new ot,new oo;const Ro=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 n=ko.Buffer.from(t,"base64");if(n.toString("base64")!==t)throw new TypeError("Input must be a canonically base64 encoded string.");return(e=>new TextDecoder("utf-8",{fatal:!0}).decode(e))(n)},Uo=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 Ro((e=>{const t=e.replace(/-/g,"+").replace(/_/g,"/");return`${t}${"=".repeat((4-t.length%4)%4)}`})(t))},Ho=(e,t=Ro)=>{const n=String(e),r=io(n),o=t(r?ao(n):n);return r?co(o):o},qo=e=>/[\u0000-\u0008\u000A-\u001F\u007F]/.test(e);_o=[e=>Ho(e,Uo),Ho,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 _o;const Wo=e=>{if(!yo(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const Go=e=>No(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),zo=(e,t={})=>Lo(e,ro({encoders:{name:lo,value:Go},validators:{name:Wo,value:Fo}},t));function Yo({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=>Et(eo(t,e))})}else l=Jr(c,{[o]:t},{encoder:e=>Ct({key:n.name,value:e,style:s||"simple",explode:i??!1,escape:"reserved"})});e.url=r+l}function Vo({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 Ko=["accept","authorization","content-type"];function Xo({req:e,parameter:t,value:n}){if(e.headers=e.headers||{},!(Ko.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]=Ct({key:t.name,value:n,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}}function Qo({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=zo({[r]:o}))}if(void 0!==n&&(!Array.isArray(n)||0!==n.length)){const o=Ct({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=zo({[r]:s})}}const Jo=e=>{let t;return t=e instanceof ko.Buffer?e:ko.Buffer.from(e.toString(),"binary"),t.toString("base64")};function Zo(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&&Ke(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 es(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 ts=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},ns=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)||ts(e);function rs(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=ts(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 os=e=>e.replace(/\W/gi,"_"),ss=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function is(e,t,n="",{v2OperationIdCompatibilityMode:r}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?os(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`${ss.has(t.toLowerCase())?t.toLowerCase():t}${os(e)}`}(t,n,{v2OperationIdCompatibilityMode:r})}function as(e,t){return`${t.toLowerCase()}-${e}`}const{isHttpUrl:cs}=bt.url;const ls=e=>Array.isArray(e)?e:[],ps=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,us=e=>"string"==typeof e&&ps.test(e),ds=(e,{recurse:t=!0,depth:n=1}={})=>{var r,s;if(Ke(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(o()(r=e.type).call(r,"object")||o()(s=e.type).call(s,"array")))return e;if(!(n>3e3)&&t){const r=Array.isArray(e.oneOf)?e.oneOf.find(e=>ds(e,{recurse:t,depth:n+1})):void 0;if(r)return r;const o=Array.isArray(e.anyOf)?e.anyOf.find(e=>ds(e,{recurse:t,depth:n+1})):void 0;if(o)return o}}},hs=({value:e,silentFail:t=!1})=>{try{const n=JSON.parse(e);if(Ke(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},fs=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 ms extends kt.ApiDOMStructuredError{}const ys=(e,t)=>t.filter(t=>t.name===e),gs=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};function xs(t){const{spec:n,operationId:r,responseContentType:o,scheme:s,requestInterceptor:i,responseInterceptor:a,contextUrl:c,userFetch:l,server:p,serverVariables:u,http:d,signal:f,serverVariableEncoder:y}=t;let{parameters:g,parameterBuilders:x,baseURL:v}=t;const k=ns(n);x||(x=k?e:Zr);let b={url:"",credentials:d&&d.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(b.signal=f),i&&(b.requestInterceptor=i),a&&(b.responseInterceptor=a),l&&(b.userFetch=l);const w=function(e,t){return e&&e.paths?rs(e,({pathName:e,method:n,operation:r})=>{if(!r||"object"!=typeof r)return!1;const o=r.operationId;return[is(r,e,n),as(e,n),o].some(e=>e&&e===t)}):null}(n,r);if(!w)throw new ms(`Operation ${r} not found`);const{operation:A={},method:T,pathName:S}=w;if(!us(T))throw new Error("Invalid HTTP method");if(v=v??function(e){const t=ns(e.spec);return t?function({spec:e,pathName:t,method:n,operation:r,server:o,contextUrl:s,serverVariables:i={},serverVariableEncoder:a}){let c,l=[],p="";const u=r?.servers??e?.paths?.[t]?.[(n||"").toLowerCase()]?.servers,d=e?.paths?.[t]?.servers,h=e?.servers;l=ks(u)?u:ks(d)?d:ks(h)?h:[wt],o&&(c=l.find(e=>e.url===o),c&&(p=o));p||([c]=l,p=c.url);if(yt(p,{strict:!0})){const e=Object.entries({...c.variables}).reduce((e,[t,n])=>(e[t]=n.default,e),{});p=vt(p,{...e,...i},{encoder:"function"==typeof a?a:m})}return function(e="",t=""){const n=fs(e&&t?bt.url.resolve(t,e):e),r=fs(t),o=vs(n.protocol)||vs(r.protocol),s=n.host||r.host,i=n.pathname;let a;a=o&&s?`${o}://${s+i}`:i;return"/"===a[a.length-1]?a.slice(0,-1):a}(p,s)}(e):function({spec:e,scheme:t,contextUrl:n=""}){const r=fs(n),o=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||o||vs(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:c,server:p,serverVariables:u,pathName:S,method:T,operation:A,serverVariableEncoder:y}),b.url+=v,!r)return delete b.cookies,b;b.url+=S,b.method=T,g=g||{};const F=n.paths[S]||{};o&&(b.headers.accept=o);const O=gs([].concat(ls(A.parameters)).concat(ls(F.parameters)));O.forEach(e=>{const t=x[e.in];let r;if("body"===e.in&&e.schema&&e.schema.properties&&(r=g),r=e&&e.name&&g[e.name],void 0===r?r=e&&e.name&&g[`${e.in}.${e.name}`]:ys(e.name,O).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`);k&&"string"==typeof r&&(h("type",e.schema)&&"string"==typeof e.schema.type&&ds(e.schema,{recurse:!1})?r=hs({value:r,silentFail:!1}):(h("type",e.schema)&&Array.isArray(e.schema.type)&&ds(e.schema,{recurse:!1})||!h("type",e.schema)&&ds(e.schema,{recurse:!0}))&&(r=hs({value:r,silentFail:!0}))),t&&t({req:b,parameter:e,value:r,operation:A,spec:n,baseURL:v})}});const E={...t,operation:A};if(b=k?Zo(E,b):es(E,b),b.cookies&&Object.keys(b.cookies).length>0){const e=zo(b.cookies);rt(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,Bt(b)}const vs=e=>e?e.replace(/\W/g,""):null;const ks=e=>Array.isArray(e)&&e.length>0})(),module.exports=r})();